@encatch/ws-react 0.0.17 → 0.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(tn,rr){typeof exports=="object"&&typeof module<"u"?rr(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],rr):(tn=typeof globalThis<"u"?globalThis:tn||self,rr(tn.WsReact={},tn.React))})(this,(function(tn,rr){"use strict";function Db(e,r){for(var o=0;o<r.length;o++){const s=r[o];if(typeof s!="string"&&!Array.isArray(s)){for(const t in s)if(t!=="default"&&!(t in e)){const a=Object.getOwnPropertyDescriptor(s,t);a&&Object.defineProperty(e,t,a.get?a:{enumerable:!0,get:()=>s[t]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Lb(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var r=e.default;if(typeof r=="function"){var o=function s(){var t=!1;try{t=this instanceof s}catch{}return t?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};o.prototype=r.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(e).forEach(function(s){var t=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(o,s,t.get?t:{enumerable:!0,get:function(){return e[s]}})}),o}var jo={exports:{}},Mi={};/**
1
+ (function(tn,rr){typeof exports=="object"&&typeof module<"u"?rr(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],rr):(tn=typeof globalThis<"u"?globalThis:tn||self,rr(tn.WsReact={},tn.React))})(this,(function(tn,rr){"use strict";function Ab(e,r){for(var o=0;o<r.length;o++){const s=r[o];if(typeof s!="string"&&!Array.isArray(s)){for(const t in s)if(t!=="default"&&!(t in e)){const a=Object.getOwnPropertyDescriptor(s,t);a&&Object.defineProperty(e,t,a.get?a:{enumerable:!0,get:()=>s[t]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Db(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var r=e.default;if(typeof r=="function"){var o=function s(){var t=!1;try{t=this instanceof s}catch{}return t?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};o.prototype=r.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(e).forEach(function(s){var t=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(o,s,t.get?t:{enumerable:!0,get:function(){return e[s]}})}),o}var jo={exports:{}},Mi={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var sl;function Ab(){if(sl)return Mi;sl=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(s,t,a){var f=null;if(a!==void 0&&(f=""+a),t.key!==void 0&&(f=""+t.key),"key"in t){a={};for(var _ in t)_!=="key"&&(a[_]=t[_])}else a=t;return t=a.ref,{$$typeof:e,type:s,key:f,ref:t!==void 0?t:null,props:a}}return Mi.Fragment=r,Mi.jsx=o,Mi.jsxs=o,Mi}var Di={};/**
9
+ */var ul;function Lb(){if(ul)return Mi;ul=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(s,t,a){var f=null;if(a!==void 0&&(f=""+a),t.key!==void 0&&(f=""+t.key),"key"in t){a={};for(var _ in t)_!=="key"&&(a[_]=t[_])}else a=t;return t=a.ref,{$$typeof:e,type:s,key:f,ref:t!==void 0?t:null,props:a}}return Mi.Fragment=r,Mi.jsx=o,Mi.jsxs=o,Mi}var Ai={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,15 +14,15 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var ul;function Zb(){return ul||(ul=1,process.env.NODE_ENV!=="production"&&(function(){function e(pe){if(pe==null)return null;if(typeof pe=="function")return pe.$$typeof===ya?null:pe.displayName||pe.name||null;if(typeof pe=="string")return pe;switch(pe){case ye:return"Fragment";case pt:return"Profiler";case Me:return"StrictMode";case lr:return"Suspense";case Br:return"SuspenseList";case ic:return"Activity"}if(typeof pe=="object")switch(typeof pe.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),pe.$$typeof){case A:return"Portal";case dt:return(pe.displayName||"Context")+".Provider";case ct:return(pe._context.displayName||"Context")+".Consumer";case bt:var Ve=pe.render;return pe=pe.displayName,pe||(pe=Ve.displayName||Ve.name||"",pe=pe!==""?"ForwardRef("+pe+")":"ForwardRef"),pe;case Qt:return Ve=pe.displayName||null,Ve!==null?Ve:e(pe.type)||"Memo";case ba:Ve=pe._payload,pe=pe._init;try{return e(pe(Ve))}catch{}}return null}function r(pe){return""+pe}function o(pe){try{r(pe);var Ve=!1}catch{Ve=!0}if(Ve){Ve=console;var Nt=Ve.error,Lt=typeof Symbol=="function"&&Symbol.toStringTag&&pe[Symbol.toStringTag]||pe.constructor.name||"Object";return Nt.call(Ve,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Lt),r(pe)}}function s(pe){if(pe===ye)return"<>";if(typeof pe=="object"&&pe!==null&&pe.$$typeof===ba)return"<...>";try{var Ve=e(pe);return Ve?"<"+Ve+">":"<...>"}catch{return"<...>"}}function t(){var pe=oo.A;return pe===null?null:pe.getOwner()}function a(){return Error("react-stack-top-frame")}function f(pe){if(_n.call(pe,"key")){var Ve=Object.getOwnPropertyDescriptor(pe,"key").get;if(Ve&&Ve.isReactWarning)return!1}return pe.key!==void 0}function _(pe,Ve){function Nt(){Gn||(Gn=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",Ve))}Nt.isReactWarning=!0,Object.defineProperty(pe,"key",{get:Nt,configurable:!0})}function q(){var pe=e(this.type);return Yr[pe]||(Yr[pe]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),pe=this.props.ref,pe!==void 0?pe:null}function X(pe,Ve,Nt,Lt,gt,Tr,Vn,bi){return Nt=Tr.ref,pe={$$typeof:ge,type:pe,key:Ve,props:Tr,_owner:gt},(Nt!==void 0?Nt:null)!==null?Object.defineProperty(pe,"ref",{enumerable:!1,get:q}):Object.defineProperty(pe,"ref",{enumerable:!1,value:null}),pe._store={},Object.defineProperty(pe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(pe,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(pe,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Vn}),Object.defineProperty(pe,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:bi}),Object.freeze&&(Object.freeze(pe.props),Object.freeze(pe)),pe}function ce(pe,Ve,Nt,Lt,gt,Tr,Vn,bi){var Yt=Ve.children;if(Yt!==void 0)if(Lt)if(oc(Yt)){for(Lt=0;Lt<Yt.length;Lt++)ue(Yt[Lt]);Object.freeze&&Object.freeze(Yt)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ue(Yt);if(_n.call(Ve,"key")){Yt=e(pe);var Zt=Object.keys(Ve).filter(function(yi){return yi!=="key"});Lt=0<Zt.length?"{key: someKey, "+Zt.join(": ..., ")+": ...}":"{key: someKey}",so[Yt+Lt]||(Zt=0<Zt.length?"{"+Zt.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var cl;function Zb(){return cl||(cl=1,process.env.NODE_ENV!=="production"&&(function(){function e(pe){if(pe==null)return null;if(typeof pe=="function")return pe.$$typeof===ya?null:pe.displayName||pe.name||null;if(typeof pe=="string")return pe;switch(pe){case ye:return"Fragment";case pt:return"Profiler";case Me:return"StrictMode";case lr:return"Suspense";case Br:return"SuspenseList";case ic:return"Activity"}if(typeof pe=="object")switch(typeof pe.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),pe.$$typeof){case L:return"Portal";case dt:return(pe.displayName||"Context")+".Provider";case ct:return(pe._context.displayName||"Context")+".Consumer";case bt:var Ge=pe.render;return pe=pe.displayName,pe||(pe=Ge.displayName||Ge.name||"",pe=pe!==""?"ForwardRef("+pe+")":"ForwardRef"),pe;case Vt:return Ge=pe.displayName||null,Ge!==null?Ge:e(pe.type)||"Memo";case ba:Ge=pe._payload,pe=pe._init;try{return e(pe(Ge))}catch{}}return null}function r(pe){return""+pe}function o(pe){try{r(pe);var Ge=!1}catch{Ge=!0}if(Ge){Ge=console;var Nt=Ge.error,Dt=typeof Symbol=="function"&&Symbol.toStringTag&&pe[Symbol.toStringTag]||pe.constructor.name||"Object";return Nt.call(Ge,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Dt),r(pe)}}function s(pe){if(pe===ye)return"<>";if(typeof pe=="object"&&pe!==null&&pe.$$typeof===ba)return"<...>";try{var Ge=e(pe);return Ge?"<"+Ge+">":"<...>"}catch{return"<...>"}}function t(){var pe=oo.A;return pe===null?null:pe.getOwner()}function a(){return Error("react-stack-top-frame")}function f(pe){if(_n.call(pe,"key")){var Ge=Object.getOwnPropertyDescriptor(pe,"key").get;if(Ge&&Ge.isReactWarning)return!1}return pe.key!==void 0}function _(pe,Ge){function Nt(){Qn||(Qn=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",Ge))}Nt.isReactWarning=!0,Object.defineProperty(pe,"key",{get:Nt,configurable:!0})}function q(){var pe=e(this.type);return Yr[pe]||(Yr[pe]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),pe=this.props.ref,pe!==void 0?pe:null}function X(pe,Ge,Nt,Dt,gt,Tr,Gn,bi){return Nt=Tr.ref,pe={$$typeof:ge,type:pe,key:Ge,props:Tr,_owner:gt},(Nt!==void 0?Nt:null)!==null?Object.defineProperty(pe,"ref",{enumerable:!1,get:q}):Object.defineProperty(pe,"ref",{enumerable:!1,value:null}),pe._store={},Object.defineProperty(pe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(pe,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(pe,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Gn}),Object.defineProperty(pe,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:bi}),Object.freeze&&(Object.freeze(pe.props),Object.freeze(pe)),pe}function ce(pe,Ge,Nt,Dt,gt,Tr,Gn,bi){var Yt=Ge.children;if(Yt!==void 0)if(Dt)if(oc(Yt)){for(Dt=0;Dt<Yt.length;Dt++)ue(Yt[Dt]);Object.freeze&&Object.freeze(Yt)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ue(Yt);if(_n.call(Ge,"key")){Yt=e(pe);var Zt=Object.keys(Ge).filter(function(yi){return yi!=="key"});Dt=0<Zt.length?"{key: someKey, "+Zt.join(": ..., ")+": ...}":"{key: someKey}",so[Yt+Dt]||(Zt=0<Zt.length?"{"+Zt.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
18
  let props = %s;
19
19
  <%s {...props} />
20
20
  React keys must be passed directly to JSX without using spread:
21
21
  let props = %s;
22
- <%s key={someKey} {...props} />`,Lt,Yt,Zt,Yt),so[Yt+Lt]=!0)}if(Yt=null,Nt!==void 0&&(o(Nt),Yt=""+Nt),f(Ve)&&(o(Ve.key),Yt=""+Ve.key),"key"in Ve){Nt={};for(var Jn in Ve)Jn!=="key"&&(Nt[Jn]=Ve[Jn])}else Nt=Ve;return Yt&&_(Nt,typeof pe=="function"?pe.displayName||pe.name||"Unknown":pe),X(pe,Yt,Tr,gt,t(),Nt,Vn,bi)}function ue(pe){typeof pe=="object"&&pe!==null&&pe.$$typeof===ge&&pe._store&&(pe._store.validated=1)}var ze=rr,ge=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),ye=Symbol.for("react.fragment"),Me=Symbol.for("react.strict_mode"),pt=Symbol.for("react.profiler"),ct=Symbol.for("react.consumer"),dt=Symbol.for("react.context"),bt=Symbol.for("react.forward_ref"),lr=Symbol.for("react.suspense"),Br=Symbol.for("react.suspense_list"),Qt=Symbol.for("react.memo"),ba=Symbol.for("react.lazy"),ic=Symbol.for("react.activity"),ya=Symbol.for("react.client.reference"),oo=ze.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_n=Object.prototype.hasOwnProperty,oc=Array.isArray,Qn=console.createTask?console.createTask:function(){return null};ze={react_stack_bottom_frame:function(pe){return pe()}};var Gn,Yr={},jr=ze.react_stack_bottom_frame.bind(ze,a)(),ao=Qn(s(a)),so={};Di.Fragment=ye,Di.jsx=function(pe,Ve,Nt,Lt,gt){var Tr=1e4>oo.recentlyCreatedOwnerStacks++;return ce(pe,Ve,Nt,!1,Lt,gt,Tr?Error("react-stack-top-frame"):jr,Tr?Qn(s(pe)):ao)},Di.jsxs=function(pe,Ve,Nt,Lt,gt){var Tr=1e4>oo.recentlyCreatedOwnerStacks++;return ce(pe,Ve,Nt,!0,Lt,gt,Tr?Error("react-stack-top-frame"):jr,Tr?Qn(s(pe)):ao)}})()),Di}var cl;function Rb(){return cl||(cl=1,process.env.NODE_ENV==="production"?jo.exports=Ab():jo.exports=Zb()),jo.exports}var Fb=Rb();class qb extends EventTarget{subscriptions=new Map;targetOrigin="*";matchesFilter(r,o){return!o||o==="*"||o===null||o===void 0?!0:typeof o=="string"?r===o:Array.isArray(o)?o.includes(r||""):typeof o=="function"?o(r||""):!1}getFormIdFromPayload(r){return r?.feedbackConfigurationId}publish(r,o,s){const t=this.getFormIdFromPayload(o);console.log(`[FormEventPublisher] 📢 Publishing "${r}"`,{formId:t,payload:o}),typeof window<"u"&&(window.dispatchEvent(new CustomEvent(r,{detail:o,bubbles:!0})),console.log("[FormEventPublisher] ✅ Event dispatched on window")),s?.usePostMessage!==!1&&this.sendPostMessage(r,o)}subscribe(r,o,s){const t=Symbol("subscription"),a={eventType:r,handler:o,filter:s?.formId,id:t,once:s?.once};this.subscriptions.has(r)||this.subscriptions.set(r,[]),this.subscriptions.get(r).push(a),console.log(`[FormEventPublisher] Subscribed to "${r}"`,{formId:s?.formId,once:s?.once,totalSubscriptions:this.subscriptions.get(r).length});const f=_=>{const q=_,X=this.getFormIdFromPayload(q.detail);this.matchesFilter(X,s?.formId)&&(o(q.detail),s?.once&&typeof window<"u"&&window.removeEventListener(r,f))};return typeof window<"u"&&window.addEventListener(r,f),()=>{console.log(`[FormEventPublisher] Unsubscribed from "${r}"`,{formId:s?.formId,remainingSubscriptions:(this.subscriptions.get(r)?.length||1)-1}),this.unsubscribe(t),typeof window<"u"&&window.removeEventListener(r,f)}}unsubscribe(r){for(const[o,s]of this.subscriptions.entries()){const t=s.findIndex(a=>a.id===r);if(t!==-1){s.splice(t,1),s.length===0&&this.subscriptions.delete(o);break}}}subscribeAll(r,o){console.log("[FormEventPublisher] Subscribing to ALL events",{formId:o?.formId,once:o?.once});const s=["form:view","form:submit","form:close","form:section:change","form:question:answered","form:error"],t=[];return s.forEach(a=>{const f=this.subscribe(a,_=>r(a,_),o);t.push(f)}),()=>{console.log("[FormEventPublisher] Unsubscribing from ALL events",{formId:o?.formId}),t.forEach(a=>a())}}getSubscriptionCount(r){return r?this.subscriptions.get(r)?.length||0:Array.from(this.subscriptions.values()).reduce((o,s)=>o+s.length,0)}clearSubscriptions(r){r?this.subscriptions.delete(r):this.subscriptions.clear()}sendPostMessage(r,o){const s={type:`encatch:${r}`,payload:o,source:"encatch-form-engine"};window.parent&&window.parent!==window&&window.parent.postMessage(s,this.targetOrigin),document.querySelectorAll("iframe").forEach(t=>{t.contentWindow&&t.contentWindow.postMessage(s,this.targetOrigin)}),typeof window.ReactNativeWebView<"u"&&window.ReactNativeWebView.postMessage(JSON.stringify({action:r.replace("form:",""),data:JSON.stringify(o)}))}}console.log("[FormEventPublisher] Creating singleton instance");const yn=new qb;typeof window<"u"&&Promise.resolve().then(()=>Ck).then(({EncatchAppElement:e})=>{try{customElements.get("encatch-app")||customElements.define("encatch-app",e)}catch(r){console.debug("Custom element registration:",r)}});const Wb=({formData:e,cssLink:r,scale:o=100,persistMode:s="none",instanceId:t,onFormEvent:a})=>{const[f,_]=rr.useState(!1),[q,X]=rr.useState(!0),ce=rr.useRef(null),ue=rr.useRef(null),ze=rr.useRef({});rr.useEffect(()=>{if(!a)return;a({onSubmit:ye=>{ze.current.onSubmit=ye},onView:ye=>{ze.current.onView=ye},onClose:ye=>{ze.current.onClose=ye},onSectionChange:ye=>{ze.current.onSectionChange=ye},onQuestionAnswered:ye=>{ze.current.onQuestionAnswered=ye},onError:ye=>{ze.current.onError=ye}})},[a]),rr.useEffect(()=>{if(!t)return;const A=[];return ze.current.onSubmit&&A.push(yn.subscribe("form:submit",ze.current.onSubmit,{formId:t})),ze.current.onView&&A.push(yn.subscribe("form:view",ze.current.onView,{formId:t})),ze.current.onClose&&A.push(yn.subscribe("form:close",ze.current.onClose,{formId:t})),ze.current.onSectionChange&&A.push(yn.subscribe("form:section:change",ze.current.onSectionChange,{formId:t})),ze.current.onQuestionAnswered&&A.push(yn.subscribe("form:question:answered",ze.current.onQuestionAnswered,{formId:t})),ze.current.onError&&A.push(yn.subscribe("form:error",ze.current.onError,{formId:t})),()=>{A.forEach(ye=>ye())}},[t]),rr.useEffect(()=>{(()=>{try{return e?!0:(console.warn("[EncatchPreview] formData is not defined"),!1)}catch(ye){return console.error("[EncatchPreview] Error during data validation:",ye),!1}})()?_(!0):console.warn("[EncatchPreview] Data validation failed, retrying in 100ms...")},[e]);const ge=rr.useCallback(()=>{e.onClose&&e.onClose(),X(!1)},[e.onClose]);return rr.useEffect(()=>{if(!f||!ce.current)return;const A=document.createElement("encatch-app");return A.theme=e.theme,A.currentMode=e.currentMode,A.currentLanguage=e.currentLanguage,A.questions=e.questions,A.questionLanguages=e.questionLanguages,A.otherConfigurationProperties=e.otherConfigurationProperties,A.welcomeScreenProperties=e.welcomeScreenProperties,A.endScreenProperties=e.endScreenProperties,A.translations=e.translations,A.sections=e.sections,A.themeSettings=e.themeSettings,A.onClose=ge,A.onSectionChange=e.onSectionChange,A.apiKey=e.apiKey,A.hostUrl=e.hostUrl,A.feedbackConfigId=e.feedbackConfigId,A.identifier=e.identifier,A.cssLink=r,A.scale=o,A.persistMode=s,t&&(A.instanceId=t),ue.current=A,ce.current.appendChild(A),()=>{ce.current&&ue.current&&ce.current.removeChild(ue.current),ue.current=null}},[f,e,r,o,ge,s,t]),q?Fb.jsx("div",{ref:ce}):null};function Qb(e,r,o){rr.useEffect(()=>yn.subscribe(e,r,o),[e,o?.formId,r])}function Gb(e,r){rr.useEffect(()=>yn.subscribeAll(e,r),[r?.formId,e])}var Li={exports:{}};const ll=Object.freeze({status:"aborted"});function D(e,r,o){function s(_,q){var X;Object.defineProperty(_,"_zod",{value:_._zod??{},enumerable:!1}),(X=_._zod).traits??(X.traits=new Set),_._zod.traits.add(e),r(_,q);for(const ce in f.prototype)ce in _||Object.defineProperty(_,ce,{value:f.prototype[ce].bind(_)});_._zod.constr=f,_._zod.def=q}const t=o?.Parent??Object;class a extends t{}Object.defineProperty(a,"name",{value:e});function f(_){var q;const X=o?.Parent?new a:this;s(X,_),(q=X._zod).deferred??(q.deferred=[]);for(const ce of X._zod.deferred)ce();return X}return Object.defineProperty(f,"init",{value:s}),Object.defineProperty(f,Symbol.hasInstance,{value:_=>o?.Parent&&_ instanceof o.Parent?!0:_?._zod?.traits?.has(e)}),Object.defineProperty(f,"name",{value:e}),f}const dl=Symbol("zod_brand");class Mn extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class To extends Error{constructor(r){super(`Encountered unidirectional transform during encode: ${r}`),this.name="ZodEncodeError"}}const Oo={};function cr(e){return e&&Object.assign(Oo,e),Oo}function Vb(e){return e}function Jb(e){return e}function Bb(e){}function Yb(e){throw new Error}function Kb(e){}function Ba(e){const r=Object.values(e).filter(s=>typeof s=="number");return Object.entries(e).filter(([s,t])=>r.indexOf(+s)===-1).map(([s,t])=>t)}function he(e,r="|"){return e.map(o=>Fe(o)).join(r)}function Eo(e,r){return typeof r=="bigint"?r.toString():r}function Ai(e){return{get value(){{const r=e();return Object.defineProperty(this,"value",{value:r}),r}}}}function Dn(e){return e==null}function Po(e){const r=e.startsWith("^")?1:0,o=e.endsWith("$")?e.length-1:e.length;return e.slice(r,o)}function fl(e,r){const o=(e.toString().split(".")[1]||"").length,s=r.toString();let t=(s.split(".")[1]||"").length;if(t===0&&/\d?e-\d?/.test(s)){const q=s.match(/\d?e-(\d?)/);q?.[1]&&(t=Number.parseInt(q[1]))}const a=o>t?o:t,f=Number.parseInt(e.toFixed(a).replace(".","")),_=Number.parseInt(r.toFixed(a).replace(".",""));return f%_/10**a}const ml=Symbol("evaluating");function ot(e,r,o){let s;Object.defineProperty(e,r,{get(){if(s!==ml)return s===void 0&&(s=ml,s=o()),s},set(t){Object.defineProperty(e,r,{value:t})},configurable:!0})}function Co(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Dr(e,r,o){Object.defineProperty(e,r,{value:o,writable:!0,enumerable:!0,configurable:!0})}function $n(...e){const r={};for(const o of e){const s=Object.getOwnPropertyDescriptors(o);Object.assign(r,s)}return Object.defineProperties({},r)}function Hb(e){return $n(e._zod.def)}function Xb(e,r){return r?r.reduce((o,s)=>o?.[s],e):e}function ey(e){const r=Object.keys(e),o=r.map(s=>e[s]);return Promise.all(o).then(s=>{const t={};for(let a=0;a<r.length;a++)t[r[a]]=s[a];return t})}function ty(e=10){const r="abcdefghijklmnopqrstuvwxyz";let o="";for(let s=0;s<e;s++)o+=r[Math.floor(Math.random()*r.length)];return o}function Ya(e){return JSON.stringify(e)}const Ka="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function fi(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const pl=Ai(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Ln(e){if(fi(e)===!1)return!1;const r=e.constructor;if(r===void 0)return!0;const o=r.prototype;return!(fi(o)===!1||Object.prototype.hasOwnProperty.call(o,"isPrototypeOf")===!1)}function Uo(e){return Ln(e)?{...e}:Array.isArray(e)?[...e]:e}function ry(e){let r=0;for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&r++;return r}const ny=e=>{const r=typeof e;switch(r){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${r}`)}},Mo=new Set(["string","number","symbol"]),gl=new Set(["string","number","bigint","boolean","symbol","undefined"]);function wn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Nr(e,r,o){const s=new e._zod.constr(r??e._zod.def);return(!r||o?.parent)&&(s._zod.parent=e),s}function se(e){const r=e;if(!r)return{};if(typeof r=="string")return{error:()=>r};if(r?.message!==void 0){if(r?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");r.error=r.message}return delete r.message,typeof r.error=="string"?{...r,error:()=>r.error}:r}function iy(e){let r;return new Proxy({},{get(o,s,t){return r??(r=e()),Reflect.get(r,s,t)},set(o,s,t,a){return r??(r=e()),Reflect.set(r,s,t,a)},has(o,s){return r??(r=e()),Reflect.has(r,s)},deleteProperty(o,s){return r??(r=e()),Reflect.deleteProperty(r,s)},ownKeys(o){return r??(r=e()),Reflect.ownKeys(r)},getOwnPropertyDescriptor(o,s){return r??(r=e()),Reflect.getOwnPropertyDescriptor(r,s)},defineProperty(o,s,t){return r??(r=e()),Reflect.defineProperty(r,s,t)}})}function Fe(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function hl(e){return Object.keys(e).filter(r=>e[r]._zod.optin==="optional"&&e[r]._zod.optout==="optional")}const vl={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]},bl={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function yl(e,r){const o=e._zod.def,s=$n(e._zod.def,{get shape(){const t={};for(const a in r){if(!(a in o.shape))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(t[a]=o.shape[a])}return Dr(this,"shape",t),t},checks:[]});return Nr(e,s)}function $l(e,r){const o=e._zod.def,s=$n(e._zod.def,{get shape(){const t={...e._zod.def.shape};for(const a in r){if(!(a in o.shape))throw new Error(`Unrecognized key: "${a}"`);r[a]&&delete t[a]}return Dr(this,"shape",t),t},checks:[]});return Nr(e,s)}function wl(e,r){if(!Ln(r))throw new Error("Invalid input to extend: expected a plain object");const o=e._zod.def.checks;if(o&&o.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const t=$n(e._zod.def,{get shape(){const a={...e._zod.def.shape,...r};return Dr(this,"shape",a),a},checks:[]});return Nr(e,t)}function _l(e,r){if(!Ln(r))throw new Error("Invalid input to safeExtend: expected a plain object");const o={...e._zod.def,get shape(){const s={...e._zod.def.shape,...r};return Dr(this,"shape",s),s},checks:e._zod.def.checks};return Nr(e,o)}function kl(e,r){const o=$n(e._zod.def,{get shape(){const s={...e._zod.def.shape,...r._zod.def.shape};return Dr(this,"shape",s),s},get catchall(){return r._zod.def.catchall},checks:[]});return Nr(e,o)}function xl(e,r,o){const s=$n(r._zod.def,{get shape(){const t=r._zod.def.shape,a={...t};if(o)for(const f in o){if(!(f in t))throw new Error(`Unrecognized key: "${f}"`);o[f]&&(a[f]=e?new e({type:"optional",innerType:t[f]}):t[f])}else for(const f in t)a[f]=e?new e({type:"optional",innerType:t[f]}):t[f];return Dr(this,"shape",a),a},checks:[]});return Nr(r,s)}function Sl(e,r,o){const s=$n(r._zod.def,{get shape(){const t=r._zod.def.shape,a={...t};if(o)for(const f in o){if(!(f in a))throw new Error(`Unrecognized key: "${f}"`);o[f]&&(a[f]=new e({type:"nonoptional",innerType:t[f]}))}else for(const f in t)a[f]=new e({type:"nonoptional",innerType:t[f]});return Dr(this,"shape",a),a},checks:[]});return Nr(r,s)}function An(e,r=0){if(e.aborted===!0)return!0;for(let o=r;o<e.issues.length;o++)if(e.issues[o]?.continue!==!0)return!0;return!1}function Lr(e,r){return r.map(o=>{var s;return(s=o).path??(s.path=[]),o.path.unshift(e),o})}function Zi(e){return typeof e=="string"?e:e?.message}function Ar(e,r,o){const s={...e,path:e.path??[]};if(!e.message){const t=Zi(e.inst?._zod.def?.error?.(e))??Zi(r?.error?.(e))??Zi(o.customError?.(e))??Zi(o.localeError?.(e))??"Invalid input";s.message=t}return delete s.inst,delete s.continue,r?.reportInput||delete s.input,s}function Do(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Lo(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function mi(...e){const[r,o,s]=e;return typeof r=="string"?{message:r,code:"custom",input:o,inst:s}:{...r}}function oy(e){return Object.entries(e).filter(([r,o])=>Number.isNaN(Number.parseInt(r,10))).map(r=>r[1])}function Il(e){const r=atob(e),o=new Uint8Array(r.length);for(let s=0;s<r.length;s++)o[s]=r.charCodeAt(s);return o}function zl(e){let r="";for(let o=0;o<e.length;o++)r+=String.fromCharCode(e[o]);return btoa(r)}function ay(e){const r=e.replace(/-/g,"+").replace(/_/g,"/"),o="=".repeat((4-r.length%4)%4);return Il(r+o)}function sy(e){return zl(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function uy(e){const r=e.replace(/^0x/,"");if(r.length%2!==0)throw new Error("Invalid hex string length");const o=new Uint8Array(r.length/2);for(let s=0;s<r.length;s+=2)o[s/2]=Number.parseInt(r.slice(s,s+2),16);return o}function cy(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join("")}class ly{constructor(...r){}}const Nl=Object.freeze(Object.defineProperty({__proto__:null,BIGINT_FORMAT_RANGES:bl,Class:ly,NUMBER_FORMAT_RANGES:vl,aborted:An,allowsEval:pl,assert:Kb,assertEqual:Vb,assertIs:Bb,assertNever:Yb,assertNotEqual:Jb,assignProp:Dr,base64ToUint8Array:Il,base64urlToUint8Array:ay,cached:Ai,captureStackTrace:Ka,cleanEnum:oy,cleanRegex:Po,clone:Nr,cloneDef:Hb,createTransparentProxy:iy,defineLazy:ot,esc:Ya,escapeRegex:wn,extend:wl,finalizeIssue:Ar,floatSafeRemainder:fl,getElementAtPath:Xb,getEnumValues:Ba,getLengthableOrigin:Lo,getParsedType:ny,getSizableOrigin:Do,hexToUint8Array:uy,isObject:fi,isPlainObject:Ln,issue:mi,joinValues:he,jsonStringifyReplacer:Eo,merge:kl,mergeDefs:$n,normalizeParams:se,nullish:Dn,numKeys:ry,objectClone:Co,omit:$l,optionalKeys:hl,partial:xl,pick:yl,prefixIssues:Lr,primitiveTypes:gl,promiseAllObject:ey,propertyKeyTypes:Mo,randomString:ty,required:Sl,safeExtend:_l,shallowClone:Uo,stringifyPrimitive:Fe,uint8ArrayToBase64:zl,uint8ArrayToBase64url:sy,uint8ArrayToHex:cy,unwrapMessage:Zi},Symbol.toStringTag,{value:"Module"})),jl=(e,r)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:r,enumerable:!1}),e.message=JSON.stringify(r,Eo,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Ha=D("$ZodError",jl),br=D("$ZodError",jl,{Parent:Error});function Xa(e,r=o=>o.message){const o={},s=[];for(const t of e.issues)t.path.length>0?(o[t.path[0]]=o[t.path[0]]||[],o[t.path[0]].push(r(t))):s.push(r(t));return{formErrors:s,fieldErrors:o}}function es(e,r){const o=r||function(a){return a.message},s={_errors:[]},t=a=>{for(const f of a.issues)if(f.code==="invalid_union"&&f.errors.length)f.errors.map(_=>t({issues:_}));else if(f.code==="invalid_key")t({issues:f.issues});else if(f.code==="invalid_element")t({issues:f.issues});else if(f.path.length===0)s._errors.push(o(f));else{let _=s,q=0;for(;q<f.path.length;){const X=f.path[q];q===f.path.length-1?(_[X]=_[X]||{_errors:[]},_[X]._errors.push(o(f))):_[X]=_[X]||{_errors:[]},_=_[X],q++}}};return t(e),s}function Tl(e,r){const o=r||function(a){return a.message},s={errors:[]},t=(a,f=[])=>{var _,q;for(const X of a.issues)if(X.code==="invalid_union"&&X.errors.length)X.errors.map(ce=>t({issues:ce},X.path));else if(X.code==="invalid_key")t({issues:X.issues},X.path);else if(X.code==="invalid_element")t({issues:X.issues},X.path);else{const ce=[...f,...X.path];if(ce.length===0){s.errors.push(o(X));continue}let ue=s,ze=0;for(;ze<ce.length;){const ge=ce[ze],A=ze===ce.length-1;typeof ge=="string"?(ue.properties??(ue.properties={}),(_=ue.properties)[ge]??(_[ge]={errors:[]}),ue=ue.properties[ge]):(ue.items??(ue.items=[]),(q=ue.items)[ge]??(q[ge]={errors:[]}),ue=ue.items[ge]),A&&ue.errors.push(o(X)),ze++}}};return t(e),s}function Ol(e){const r=[],o=e.map(s=>typeof s=="object"?s.key:s);for(const s of o)typeof s=="number"?r.push(`[${s}]`):typeof s=="symbol"?r.push(`[${JSON.stringify(String(s))}]`):/[^\w$]/.test(s)?r.push(`[${JSON.stringify(s)}]`):(r.length&&r.push("."),r.push(s));return r.join("")}function El(e){const r=[],o=[...e.issues].sort((s,t)=>(s.path??[]).length-(t.path??[]).length);for(const s of o)r.push(`✖ ${s.message}`),s.path?.length&&r.push(` → at ${Ol(s.path)}`);return r.join(`
23
- `)}const Ri=e=>(r,o,s,t)=>{const a=s?Object.assign(s,{async:!1}):{async:!1},f=r._zod.run({value:o,issues:[]},a);if(f instanceof Promise)throw new Mn;if(f.issues.length){const _=new(t?.Err??e)(f.issues.map(q=>Ar(q,a,cr())));throw Ka(_,t?.callee),_}return f.value},ts=Ri(br),Fi=e=>async(r,o,s,t)=>{const a=s?Object.assign(s,{async:!0}):{async:!0};let f=r._zod.run({value:o,issues:[]},a);if(f instanceof Promise&&(f=await f),f.issues.length){const _=new(t?.Err??e)(f.issues.map(q=>Ar(q,a,cr())));throw Ka(_,t?.callee),_}return f.value},rs=Fi(br),qi=e=>(r,o,s)=>{const t=s?{...s,async:!1}:{async:!1},a=r._zod.run({value:o,issues:[]},t);if(a instanceof Promise)throw new Mn;return a.issues.length?{success:!1,error:new(e??Ha)(a.issues.map(f=>Ar(f,t,cr())))}:{success:!0,data:a.value}},Pl=qi(br),Wi=e=>async(r,o,s)=>{const t=s?Object.assign(s,{async:!0}):{async:!0};let a=r._zod.run({value:o,issues:[]},t);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(f=>Ar(f,t,cr())))}:{success:!0,data:a.value}},Cl=Wi(br),ns=e=>(r,o,s)=>{const t=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return Ri(e)(r,o,t)},dy=ns(br),is=e=>(r,o,s)=>Ri(e)(r,o,s),fy=is(br),os=e=>async(r,o,s)=>{const t=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return Fi(e)(r,o,t)},my=os(br),as=e=>async(r,o,s)=>Fi(e)(r,o,s),py=as(br),ss=e=>(r,o,s)=>{const t=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return qi(e)(r,o,t)},gy=ss(br),us=e=>(r,o,s)=>qi(e)(r,o,s),hy=us(br),cs=e=>async(r,o,s)=>{const t=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return Wi(e)(r,o,t)},vy=cs(br),ls=e=>async(r,o,s)=>Wi(e)(r,o,s),by=ls(br),Ul=/^[cC][^\s-]{8,}$/,Ml=/^[0-9a-z]+$/,Dl=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Ll=/^[0-9a-vA-V]{20}$/,Al=/^[A-Za-z0-9]{27}$/,Zl=/^[a-zA-Z0-9_-]{21}$/,Rl=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,yy=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Fl=/^([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})$/,pi=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)$/,$y=pi(4),wy=pi(6),_y=pi(7),ql=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,ky=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,xy=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Wl=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Sy=Wl,Iy=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,zy="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Ql(){return new RegExp(zy,"u")}const Gl=/^(?:(?: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])$/,Vl=/^(([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}|:))$/,Jl=/^((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])$/,Bl=/^(([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])$/,Yl=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ds=/^[A-Za-z0-9_-]*$/,fs=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,Kl=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Hl=/^\+(?:[0-9]){6,14}[0-9]$/,Xl="(?:(?:\\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])))",ed=new RegExp(`^${Xl}$`);function td(e){const r="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${r}`:e.precision===0?`${r}:[0-5]\\d`:`${r}:[0-5]\\d\\.\\d{${e.precision}}`:`${r}(?::[0-5]\\d(?:\\.\\d+)?)?`}function rd(e){return new RegExp(`^${td(e)}$`)}function nd(e){const r=td({precision:e.precision}),o=["Z"];e.local&&o.push(""),e.offset&&o.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const s=`${r}(?:${o.join("|")})`;return new RegExp(`^${Xl}T(?:${s})$`)}const id=e=>{const r=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)},od=/^-?\d+n?$/,ad=/^-?\d+$/,sd=/^-?\d+(?:\.\d+)?/,ud=/^(?:true|false)$/i,cd=/^null$/i,ld=/^undefined$/i,dd=/^[^A-Z]*$/,fd=/^[^a-z]*$/,md=/^[0-9a-fA-F]*$/;function Qi(e,r){return new RegExp(`^[A-Za-z0-9+/]{${e}}${r}$`)}function Gi(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}const ms=Object.freeze(Object.defineProperty({__proto__:null,base64:Yl,base64url:ds,bigint:od,boolean:ud,browserEmail:Iy,cidrv4:Jl,cidrv6:Bl,cuid:Ul,cuid2:Ml,date:ed,datetime:nd,domain:Kl,duration:Rl,e164:Hl,email:ql,emoji:Ql,extendedDuration:yy,guid:Fl,hex:md,hostname:fs,html5Email:ky,idnEmail:Sy,integer:ad,ipv4:Gl,ipv6:Vl,ksuid:Al,lowercase:dd,md5_base64:Qi(22,"=="),md5_base64url:Gi(22),md5_hex:/^[0-9a-fA-F]{32}$/,nanoid:Zl,null:cd,number:sd,rfc5322Email:xy,sha1_base64:Qi(27,"="),sha1_base64url:Gi(27),sha1_hex:/^[0-9a-fA-F]{40}$/,sha256_base64:Qi(43,"="),sha256_base64url:Gi(43),sha256_hex:/^[0-9a-fA-F]{64}$/,sha384_base64:Qi(64,""),sha384_base64url:Gi(64),sha384_hex:/^[0-9a-fA-F]{96}$/,sha512_base64:Qi(86,"=="),sha512_base64url:Gi(86),sha512_hex:/^[0-9a-fA-F]{128}$/,string:id,time:rd,ulid:Dl,undefined:ld,unicodeEmail:Wl,uppercase:fd,uuid:pi,uuid4:$y,uuid6:wy,uuid7:_y,xid:Ll},Symbol.toStringTag,{value:"Module"})),Mt=D("$ZodCheck",(e,r)=>{var o;e._zod??(e._zod={}),e._zod.def=r,(o=e._zod).onattach??(o.onattach=[])}),pd={number:"number",bigint:"bigint",object:"date"},ps=D("$ZodCheckLessThan",(e,r)=>{Mt.init(e,r);const o=pd[typeof r.value];e._zod.onattach.push(s=>{const t=s._zod.bag,a=(r.inclusive?t.maximum:t.exclusiveMaximum)??Number.POSITIVE_INFINITY;r.value<a&&(r.inclusive?t.maximum=r.value:t.exclusiveMaximum=r.value)}),e._zod.check=s=>{(r.inclusive?s.value<=r.value:s.value<r.value)||s.issues.push({origin:o,code:"too_big",maximum:r.value,input:s.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),gs=D("$ZodCheckGreaterThan",(e,r)=>{Mt.init(e,r);const o=pd[typeof r.value];e._zod.onattach.push(s=>{const t=s._zod.bag,a=(r.inclusive?t.minimum:t.exclusiveMinimum)??Number.NEGATIVE_INFINITY;r.value>a&&(r.inclusive?t.minimum=r.value:t.exclusiveMinimum=r.value)}),e._zod.check=s=>{(r.inclusive?s.value>=r.value:s.value>r.value)||s.issues.push({origin:o,code:"too_small",minimum:r.value,input:s.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),gd=D("$ZodCheckMultipleOf",(e,r)=>{Mt.init(e,r),e._zod.onattach.push(o=>{var s;(s=o._zod.bag).multipleOf??(s.multipleOf=r.value)}),e._zod.check=o=>{if(typeof o.value!=typeof r.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof o.value=="bigint"?o.value%r.value===BigInt(0):fl(o.value,r.value)===0)||o.issues.push({origin:typeof o.value,code:"not_multiple_of",divisor:r.value,input:o.value,inst:e,continue:!r.abort})}}),hd=D("$ZodCheckNumberFormat",(e,r)=>{Mt.init(e,r),r.format=r.format||"float64";const o=r.format?.includes("int"),s=o?"int":"number",[t,a]=vl[r.format];e._zod.onattach.push(f=>{const _=f._zod.bag;_.format=r.format,_.minimum=t,_.maximum=a,o&&(_.pattern=ad)}),e._zod.check=f=>{const _=f.value;if(o){if(!Number.isInteger(_)){f.issues.push({expected:s,format:r.format,code:"invalid_type",continue:!1,input:_,inst:e});return}if(!Number.isSafeInteger(_)){_>0?f.issues.push({input:_,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:s,continue:!r.abort}):f.issues.push({input:_,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:s,continue:!r.abort});return}}_<t&&f.issues.push({origin:"number",input:_,code:"too_small",minimum:t,inclusive:!0,inst:e,continue:!r.abort}),_>a&&f.issues.push({origin:"number",input:_,code:"too_big",maximum:a,inst:e})}}),vd=D("$ZodCheckBigIntFormat",(e,r)=>{Mt.init(e,r);const[o,s]=bl[r.format];e._zod.onattach.push(t=>{const a=t._zod.bag;a.format=r.format,a.minimum=o,a.maximum=s}),e._zod.check=t=>{const a=t.value;a<o&&t.issues.push({origin:"bigint",input:a,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!r.abort}),a>s&&t.issues.push({origin:"bigint",input:a,code:"too_big",maximum:s,inst:e})}}),bd=D("$ZodCheckMaxSize",(e,r)=>{var o;Mt.init(e,r),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!Dn(t)&&t.size!==void 0}),e._zod.onattach.push(s=>{const t=s._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<t&&(s._zod.bag.maximum=r.maximum)}),e._zod.check=s=>{const t=s.value;t.size<=r.maximum||s.issues.push({origin:Do(t),code:"too_big",maximum:r.maximum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),yd=D("$ZodCheckMinSize",(e,r)=>{var o;Mt.init(e,r),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!Dn(t)&&t.size!==void 0}),e._zod.onattach.push(s=>{const t=s._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>t&&(s._zod.bag.minimum=r.minimum)}),e._zod.check=s=>{const t=s.value;t.size>=r.minimum||s.issues.push({origin:Do(t),code:"too_small",minimum:r.minimum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),$d=D("$ZodCheckSizeEquals",(e,r)=>{var o;Mt.init(e,r),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!Dn(t)&&t.size!==void 0}),e._zod.onattach.push(s=>{const t=s._zod.bag;t.minimum=r.size,t.maximum=r.size,t.size=r.size}),e._zod.check=s=>{const t=s.value,a=t.size;if(a===r.size)return;const f=a>r.size;s.issues.push({origin:Do(t),...f?{code:"too_big",maximum:r.size}:{code:"too_small",minimum:r.size},inclusive:!0,exact:!0,input:s.value,inst:e,continue:!r.abort})}}),wd=D("$ZodCheckMaxLength",(e,r)=>{var o;Mt.init(e,r),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!Dn(t)&&t.length!==void 0}),e._zod.onattach.push(s=>{const t=s._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<t&&(s._zod.bag.maximum=r.maximum)}),e._zod.check=s=>{const t=s.value;if(t.length<=r.maximum)return;const f=Lo(t);s.issues.push({origin:f,code:"too_big",maximum:r.maximum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),_d=D("$ZodCheckMinLength",(e,r)=>{var o;Mt.init(e,r),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!Dn(t)&&t.length!==void 0}),e._zod.onattach.push(s=>{const t=s._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>t&&(s._zod.bag.minimum=r.minimum)}),e._zod.check=s=>{const t=s.value;if(t.length>=r.minimum)return;const f=Lo(t);s.issues.push({origin:f,code:"too_small",minimum:r.minimum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),kd=D("$ZodCheckLengthEquals",(e,r)=>{var o;Mt.init(e,r),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!Dn(t)&&t.length!==void 0}),e._zod.onattach.push(s=>{const t=s._zod.bag;t.minimum=r.length,t.maximum=r.length,t.length=r.length}),e._zod.check=s=>{const t=s.value,a=t.length;if(a===r.length)return;const f=Lo(t),_=a>r.length;s.issues.push({origin:f,..._?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:!0,exact:!0,input:s.value,inst:e,continue:!r.abort})}}),Vi=D("$ZodCheckStringFormat",(e,r)=>{var o,s;Mt.init(e,r),e._zod.onattach.push(t=>{const a=t._zod.bag;a.format=r.format,r.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(r.pattern))}),r.pattern?(o=e._zod).check??(o.check=t=>{r.pattern.lastIndex=0,!r.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:r.format,input:t.value,...r.pattern?{pattern:r.pattern.toString()}:{},inst:e,continue:!r.abort})}):(s=e._zod).check??(s.check=()=>{})}),xd=D("$ZodCheckRegex",(e,r)=>{Vi.init(e,r),e._zod.check=o=>{r.pattern.lastIndex=0,!r.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:"regex",input:o.value,pattern:r.pattern.toString(),inst:e,continue:!r.abort})}}),Sd=D("$ZodCheckLowerCase",(e,r)=>{r.pattern??(r.pattern=dd),Vi.init(e,r)}),Id=D("$ZodCheckUpperCase",(e,r)=>{r.pattern??(r.pattern=fd),Vi.init(e,r)}),zd=D("$ZodCheckIncludes",(e,r)=>{Mt.init(e,r);const o=wn(r.includes),s=new RegExp(typeof r.position=="number"?`^.{${r.position}}${o}`:o);r.pattern=s,e._zod.onattach.push(t=>{const a=t._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(s)}),e._zod.check=t=>{t.value.includes(r.includes,r.position)||t.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:r.includes,input:t.value,inst:e,continue:!r.abort})}}),Nd=D("$ZodCheckStartsWith",(e,r)=>{Mt.init(e,r);const o=new RegExp(`^${wn(r.prefix)}.*`);r.pattern??(r.pattern=o),e._zod.onattach.push(s=>{const t=s._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(o)}),e._zod.check=s=>{s.value.startsWith(r.prefix)||s.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:s.value,inst:e,continue:!r.abort})}}),jd=D("$ZodCheckEndsWith",(e,r)=>{Mt.init(e,r);const o=new RegExp(`.*${wn(r.suffix)}$`);r.pattern??(r.pattern=o),e._zod.onattach.push(s=>{const t=s._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(o)}),e._zod.check=s=>{s.value.endsWith(r.suffix)||s.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:s.value,inst:e,continue:!r.abort})}});function Td(e,r,o){e.issues.length&&r.issues.push(...Lr(o,e.issues))}const Od=D("$ZodCheckProperty",(e,r)=>{Mt.init(e,r),e._zod.check=o=>{const s=r.schema._zod.run({value:o.value[r.property],issues:[]},{});if(s instanceof Promise)return s.then(t=>Td(t,o,r.property));Td(s,o,r.property)}}),Ed=D("$ZodCheckMimeType",(e,r)=>{Mt.init(e,r);const o=new Set(r.mime);e._zod.onattach.push(s=>{s._zod.bag.mime=r.mime}),e._zod.check=s=>{o.has(s.value.type)||s.issues.push({code:"invalid_value",values:r.mime,input:s.value.type,inst:e,continue:!r.abort})}}),Pd=D("$ZodCheckOverwrite",(e,r)=>{Mt.init(e,r),e._zod.check=o=>{o.value=r.tx(o.value)}});class Cd{constructor(r=[]){this.content=[],this.indent=0,this&&(this.args=r)}indented(r){this.indent+=1,r(this),this.indent-=1}write(r){if(typeof r=="function"){r(this,{execution:"sync"}),r(this,{execution:"async"});return}const s=r.split(`
22
+ <%s key={someKey} {...props} />`,Dt,Yt,Zt,Yt),so[Yt+Dt]=!0)}if(Yt=null,Nt!==void 0&&(o(Nt),Yt=""+Nt),f(Ge)&&(o(Ge.key),Yt=""+Ge.key),"key"in Ge){Nt={};for(var Jn in Ge)Jn!=="key"&&(Nt[Jn]=Ge[Jn])}else Nt=Ge;return Yt&&_(Nt,typeof pe=="function"?pe.displayName||pe.name||"Unknown":pe),X(pe,Yt,Tr,gt,t(),Nt,Gn,bi)}function ue(pe){typeof pe=="object"&&pe!==null&&pe.$$typeof===ge&&pe._store&&(pe._store.validated=1)}var ze=rr,ge=Symbol.for("react.transitional.element"),L=Symbol.for("react.portal"),ye=Symbol.for("react.fragment"),Me=Symbol.for("react.strict_mode"),pt=Symbol.for("react.profiler"),ct=Symbol.for("react.consumer"),dt=Symbol.for("react.context"),bt=Symbol.for("react.forward_ref"),lr=Symbol.for("react.suspense"),Br=Symbol.for("react.suspense_list"),Vt=Symbol.for("react.memo"),ba=Symbol.for("react.lazy"),ic=Symbol.for("react.activity"),ya=Symbol.for("react.client.reference"),oo=ze.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_n=Object.prototype.hasOwnProperty,oc=Array.isArray,Vn=console.createTask?console.createTask:function(){return null};ze={react_stack_bottom_frame:function(pe){return pe()}};var Qn,Yr={},jr=ze.react_stack_bottom_frame.bind(ze,a)(),ao=Vn(s(a)),so={};Ai.Fragment=ye,Ai.jsx=function(pe,Ge,Nt,Dt,gt){var Tr=1e4>oo.recentlyCreatedOwnerStacks++;return ce(pe,Ge,Nt,!1,Dt,gt,Tr?Error("react-stack-top-frame"):jr,Tr?Vn(s(pe)):ao)},Ai.jsxs=function(pe,Ge,Nt,Dt,gt){var Tr=1e4>oo.recentlyCreatedOwnerStacks++;return ce(pe,Ge,Nt,!0,Dt,gt,Tr?Error("react-stack-top-frame"):jr,Tr?Vn(s(pe)):ao)}})()),Ai}var ll;function Rb(){return ll||(ll=1,process.env.NODE_ENV==="production"?jo.exports=Lb():jo.exports=Zb()),jo.exports}var qb=Rb();class Fb extends EventTarget{subscriptions=new Map;targetOrigin="*";matchesFilter(r,o){return!o||o==="*"||o===null||o===void 0?!0:typeof o=="string"?r===o:Array.isArray(o)?o.includes(r||""):typeof o=="function"?o(r||""):!1}getFormIdFromPayload(r){return r?.feedbackConfigurationId}publish(r,o,s){const t=this.getFormIdFromPayload(o);console.log(`[FormEventPublisher] 📢 Publishing "${r}"`,{formId:t,payload:o}),typeof window<"u"&&(window.dispatchEvent(new CustomEvent(r,{detail:o,bubbles:!0})),console.log("[FormEventPublisher] ✅ Event dispatched on window")),s?.usePostMessage!==!1&&this.sendPostMessage(r,o)}subscribe(r,o,s){const t=Symbol("subscription"),a={eventType:r,handler:o,filter:s?.formId,id:t,once:s?.once};this.subscriptions.has(r)||this.subscriptions.set(r,[]),this.subscriptions.get(r).push(a),console.log(`[FormEventPublisher] Subscribed to "${r}"`,{formId:s?.formId,once:s?.once,totalSubscriptions:this.subscriptions.get(r).length});const f=_=>{const q=_,X=this.getFormIdFromPayload(q.detail);this.matchesFilter(X,s?.formId)&&(o(q.detail),s?.once&&typeof window<"u"&&window.removeEventListener(r,f))};return typeof window<"u"&&window.addEventListener(r,f),()=>{console.log(`[FormEventPublisher] Unsubscribed from "${r}"`,{formId:s?.formId,remainingSubscriptions:(this.subscriptions.get(r)?.length||1)-1}),this.unsubscribe(t),typeof window<"u"&&window.removeEventListener(r,f)}}unsubscribe(r){for(const[o,s]of this.subscriptions.entries()){const t=s.findIndex(a=>a.id===r);if(t!==-1){s.splice(t,1),s.length===0&&this.subscriptions.delete(o);break}}}subscribeAll(r,o){console.log("[FormEventPublisher] Subscribing to ALL events",{formId:o?.formId,once:o?.once});const s=["form:view","form:submit","form:close","form:section:change","form:question:answered","form:error"],t=[];return s.forEach(a=>{const f=this.subscribe(a,_=>r(a,_),o);t.push(f)}),()=>{console.log("[FormEventPublisher] Unsubscribing from ALL events",{formId:o?.formId}),t.forEach(a=>a())}}getSubscriptionCount(r){return r?this.subscriptions.get(r)?.length||0:Array.from(this.subscriptions.values()).reduce((o,s)=>o+s.length,0)}clearSubscriptions(r){r?this.subscriptions.delete(r):this.subscriptions.clear()}sendPostMessage(r,o){const s={type:`encatch:${r}`,payload:o,source:"encatch-form-engine"};window.parent&&window.parent!==window&&window.parent.postMessage(s,this.targetOrigin),document.querySelectorAll("iframe").forEach(t=>{t.contentWindow&&t.contentWindow.postMessage(s,this.targetOrigin)}),typeof window.ReactNativeWebView<"u"&&window.ReactNativeWebView.postMessage(JSON.stringify({action:r.replace("form:",""),data:JSON.stringify(o)}))}}console.log("[FormEventPublisher] Creating singleton instance");const yn=new Fb;typeof window<"u"&&Promise.resolve().then(()=>Ck).then(({EncatchAppElement:e})=>{try{customElements.get("encatch-app")||customElements.define("encatch-app",e)}catch(r){console.debug("Custom element registration:",r)}});const Wb=({formData:e,cssLink:r,scale:o=100,persistMode:s="none",instanceId:t,onFormEvent:a})=>{const[f,_]=rr.useState(!1),[q,X]=rr.useState(!0),ce=rr.useRef(null),ue=rr.useRef(null),ze=rr.useRef({});rr.useEffect(()=>{if(!a)return;a({onSubmit:ye=>{ze.current.onSubmit=ye},onView:ye=>{ze.current.onView=ye},onClose:ye=>{ze.current.onClose=ye},onSectionChange:ye=>{ze.current.onSectionChange=ye},onQuestionAnswered:ye=>{ze.current.onQuestionAnswered=ye},onError:ye=>{ze.current.onError=ye}})},[a]),rr.useEffect(()=>{if(!t)return;const L=[];return ze.current.onSubmit&&L.push(yn.subscribe("form:submit",ze.current.onSubmit,{formId:t})),ze.current.onView&&L.push(yn.subscribe("form:view",ze.current.onView,{formId:t})),ze.current.onClose&&L.push(yn.subscribe("form:close",ze.current.onClose,{formId:t})),ze.current.onSectionChange&&L.push(yn.subscribe("form:section:change",ze.current.onSectionChange,{formId:t})),ze.current.onQuestionAnswered&&L.push(yn.subscribe("form:question:answered",ze.current.onQuestionAnswered,{formId:t})),ze.current.onError&&L.push(yn.subscribe("form:error",ze.current.onError,{formId:t})),()=>{L.forEach(ye=>ye())}},[t]),rr.useEffect(()=>{(()=>{try{return e?!0:(console.warn("[EncatchPreview] formData is not defined"),!1)}catch(ye){return console.error("[EncatchPreview] Error during data validation:",ye),!1}})()?_(!0):console.warn("[EncatchPreview] Data validation failed, retrying in 100ms...")},[e]);const ge=rr.useCallback(()=>{e.onClose&&e.onClose(),X(!1)},[e.onClose]);return rr.useEffect(()=>{if(!f||!ce.current)return;const L=document.createElement("encatch-app");return L.theme=e.theme,L.currentMode=e.currentMode,L.currentLanguage=e.currentLanguage,L.questions=e.questions,L.questionLanguages=e.questionLanguages,L.otherConfigurationProperties=e.otherConfigurationProperties,L.welcomeScreenProperties=e.welcomeScreenProperties,L.endScreenProperties=e.endScreenProperties,L.translations=e.translations,L.sections=e.sections,L.themeSettings=e.themeSettings,L.onClose=ge,L.onSectionChange=e.onSectionChange,L.apiKey=e.apiKey,L.hostUrl=e.hostUrl,L.feedbackConfigId=e.feedbackConfigId,L.identifier=e.identifier,L.cssLink=r,L.scale=o,L.persistMode=s,t&&(L.instanceId=t),ue.current=L,ce.current.appendChild(L),()=>{ce.current&&ue.current&&ce.current.removeChild(ue.current),ue.current=null}},[f,e,r,o,ge,s,t]),q?qb.jsx("div",{ref:ce}):null};function Vb(e,r,o){rr.useEffect(()=>yn.subscribe(e,r,o),[e,o?.formId,r])}function Qb(e,r){rr.useEffect(()=>yn.subscribeAll(e,r),[r?.formId,e])}var Di={exports:{}};const dl=Object.freeze({status:"aborted"});function M(e,r,o){function s(_,q){var X;Object.defineProperty(_,"_zod",{value:_._zod??{},enumerable:!1}),(X=_._zod).traits??(X.traits=new Set),_._zod.traits.add(e),r(_,q);for(const ce in f.prototype)ce in _||Object.defineProperty(_,ce,{value:f.prototype[ce].bind(_)});_._zod.constr=f,_._zod.def=q}const t=o?.Parent??Object;class a extends t{}Object.defineProperty(a,"name",{value:e});function f(_){var q;const X=o?.Parent?new a:this;s(X,_),(q=X._zod).deferred??(q.deferred=[]);for(const ce of X._zod.deferred)ce();return X}return Object.defineProperty(f,"init",{value:s}),Object.defineProperty(f,Symbol.hasInstance,{value:_=>o?.Parent&&_ instanceof o.Parent?!0:_?._zod?.traits?.has(e)}),Object.defineProperty(f,"name",{value:e}),f}const fl=Symbol("zod_brand");class Mn extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class To extends Error{constructor(r){super(`Encountered unidirectional transform during encode: ${r}`),this.name="ZodEncodeError"}}const Oo={};function cr(e){return e&&Object.assign(Oo,e),Oo}function Gb(e){return e}function Jb(e){return e}function Bb(e){}function Yb(e){throw new Error}function Kb(e){}function Ba(e){const r=Object.values(e).filter(s=>typeof s=="number");return Object.entries(e).filter(([s,t])=>r.indexOf(+s)===-1).map(([s,t])=>t)}function he(e,r="|"){return e.map(o=>qe(o)).join(r)}function Eo(e,r){return typeof r=="bigint"?r.toString():r}function Li(e){return{get value(){{const r=e();return Object.defineProperty(this,"value",{value:r}),r}}}}function An(e){return e==null}function Po(e){const r=e.startsWith("^")?1:0,o=e.endsWith("$")?e.length-1:e.length;return e.slice(r,o)}function ml(e,r){const o=(e.toString().split(".")[1]||"").length,s=r.toString();let t=(s.split(".")[1]||"").length;if(t===0&&/\d?e-\d?/.test(s)){const q=s.match(/\d?e-(\d?)/);q?.[1]&&(t=Number.parseInt(q[1]))}const a=o>t?o:t,f=Number.parseInt(e.toFixed(a).replace(".","")),_=Number.parseInt(r.toFixed(a).replace(".",""));return f%_/10**a}const pl=Symbol("evaluating");function ot(e,r,o){let s;Object.defineProperty(e,r,{get(){if(s!==pl)return s===void 0&&(s=pl,s=o()),s},set(t){Object.defineProperty(e,r,{value:t})},configurable:!0})}function Co(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Ar(e,r,o){Object.defineProperty(e,r,{value:o,writable:!0,enumerable:!0,configurable:!0})}function $n(...e){const r={};for(const o of e){const s=Object.getOwnPropertyDescriptors(o);Object.assign(r,s)}return Object.defineProperties({},r)}function Hb(e){return $n(e._zod.def)}function Xb(e,r){return r?r.reduce((o,s)=>o?.[s],e):e}function ey(e){const r=Object.keys(e),o=r.map(s=>e[s]);return Promise.all(o).then(s=>{const t={};for(let a=0;a<r.length;a++)t[r[a]]=s[a];return t})}function ty(e=10){const r="abcdefghijklmnopqrstuvwxyz";let o="";for(let s=0;s<e;s++)o+=r[Math.floor(Math.random()*r.length)];return o}function Ya(e){return JSON.stringify(e)}const Ka="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function fi(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const gl=Li(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Dn(e){if(fi(e)===!1)return!1;const r=e.constructor;if(r===void 0)return!0;const o=r.prototype;return!(fi(o)===!1||Object.prototype.hasOwnProperty.call(o,"isPrototypeOf")===!1)}function Uo(e){return Dn(e)?{...e}:Array.isArray(e)?[...e]:e}function ry(e){let r=0;for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&r++;return r}const ny=e=>{const r=typeof e;switch(r){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${r}`)}},Mo=new Set(["string","number","symbol"]),hl=new Set(["string","number","bigint","boolean","symbol","undefined"]);function wn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Nr(e,r,o){const s=new e._zod.constr(r??e._zod.def);return(!r||o?.parent)&&(s._zod.parent=e),s}function se(e){const r=e;if(!r)return{};if(typeof r=="string")return{error:()=>r};if(r?.message!==void 0){if(r?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");r.error=r.message}return delete r.message,typeof r.error=="string"?{...r,error:()=>r.error}:r}function iy(e){let r;return new Proxy({},{get(o,s,t){return r??(r=e()),Reflect.get(r,s,t)},set(o,s,t,a){return r??(r=e()),Reflect.set(r,s,t,a)},has(o,s){return r??(r=e()),Reflect.has(r,s)},deleteProperty(o,s){return r??(r=e()),Reflect.deleteProperty(r,s)},ownKeys(o){return r??(r=e()),Reflect.ownKeys(r)},getOwnPropertyDescriptor(o,s){return r??(r=e()),Reflect.getOwnPropertyDescriptor(r,s)},defineProperty(o,s,t){return r??(r=e()),Reflect.defineProperty(r,s,t)}})}function qe(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function vl(e){return Object.keys(e).filter(r=>e[r]._zod.optin==="optional"&&e[r]._zod.optout==="optional")}const bl={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]},yl={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function $l(e,r){const o=e._zod.def,s=$n(e._zod.def,{get shape(){const t={};for(const a in r){if(!(a in o.shape))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(t[a]=o.shape[a])}return Ar(this,"shape",t),t},checks:[]});return Nr(e,s)}function wl(e,r){const o=e._zod.def,s=$n(e._zod.def,{get shape(){const t={...e._zod.def.shape};for(const a in r){if(!(a in o.shape))throw new Error(`Unrecognized key: "${a}"`);r[a]&&delete t[a]}return Ar(this,"shape",t),t},checks:[]});return Nr(e,s)}function _l(e,r){if(!Dn(r))throw new Error("Invalid input to extend: expected a plain object");const o=e._zod.def.checks;if(o&&o.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const t=$n(e._zod.def,{get shape(){const a={...e._zod.def.shape,...r};return Ar(this,"shape",a),a},checks:[]});return Nr(e,t)}function kl(e,r){if(!Dn(r))throw new Error("Invalid input to safeExtend: expected a plain object");const o={...e._zod.def,get shape(){const s={...e._zod.def.shape,...r};return Ar(this,"shape",s),s},checks:e._zod.def.checks};return Nr(e,o)}function xl(e,r){const o=$n(e._zod.def,{get shape(){const s={...e._zod.def.shape,...r._zod.def.shape};return Ar(this,"shape",s),s},get catchall(){return r._zod.def.catchall},checks:[]});return Nr(e,o)}function Sl(e,r,o){const s=$n(r._zod.def,{get shape(){const t=r._zod.def.shape,a={...t};if(o)for(const f in o){if(!(f in t))throw new Error(`Unrecognized key: "${f}"`);o[f]&&(a[f]=e?new e({type:"optional",innerType:t[f]}):t[f])}else for(const f in t)a[f]=e?new e({type:"optional",innerType:t[f]}):t[f];return Ar(this,"shape",a),a},checks:[]});return Nr(r,s)}function Il(e,r,o){const s=$n(r._zod.def,{get shape(){const t=r._zod.def.shape,a={...t};if(o)for(const f in o){if(!(f in a))throw new Error(`Unrecognized key: "${f}"`);o[f]&&(a[f]=new e({type:"nonoptional",innerType:t[f]}))}else for(const f in t)a[f]=new e({type:"nonoptional",innerType:t[f]});return Ar(this,"shape",a),a},checks:[]});return Nr(r,s)}function Ln(e,r=0){if(e.aborted===!0)return!0;for(let o=r;o<e.issues.length;o++)if(e.issues[o]?.continue!==!0)return!0;return!1}function Dr(e,r){return r.map(o=>{var s;return(s=o).path??(s.path=[]),o.path.unshift(e),o})}function Zi(e){return typeof e=="string"?e:e?.message}function Lr(e,r,o){const s={...e,path:e.path??[]};if(!e.message){const t=Zi(e.inst?._zod.def?.error?.(e))??Zi(r?.error?.(e))??Zi(o.customError?.(e))??Zi(o.localeError?.(e))??"Invalid input";s.message=t}return delete s.inst,delete s.continue,r?.reportInput||delete s.input,s}function Ao(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Do(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function mi(...e){const[r,o,s]=e;return typeof r=="string"?{message:r,code:"custom",input:o,inst:s}:{...r}}function oy(e){return Object.entries(e).filter(([r,o])=>Number.isNaN(Number.parseInt(r,10))).map(r=>r[1])}function zl(e){const r=atob(e),o=new Uint8Array(r.length);for(let s=0;s<r.length;s++)o[s]=r.charCodeAt(s);return o}function Nl(e){let r="";for(let o=0;o<e.length;o++)r+=String.fromCharCode(e[o]);return btoa(r)}function ay(e){const r=e.replace(/-/g,"+").replace(/_/g,"/"),o="=".repeat((4-r.length%4)%4);return zl(r+o)}function sy(e){return Nl(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function uy(e){const r=e.replace(/^0x/,"");if(r.length%2!==0)throw new Error("Invalid hex string length");const o=new Uint8Array(r.length/2);for(let s=0;s<r.length;s+=2)o[s/2]=Number.parseInt(r.slice(s,s+2),16);return o}function cy(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join("")}class ly{constructor(...r){}}const jl=Object.freeze(Object.defineProperty({__proto__:null,BIGINT_FORMAT_RANGES:yl,Class:ly,NUMBER_FORMAT_RANGES:bl,aborted:Ln,allowsEval:gl,assert:Kb,assertEqual:Gb,assertIs:Bb,assertNever:Yb,assertNotEqual:Jb,assignProp:Ar,base64ToUint8Array:zl,base64urlToUint8Array:ay,cached:Li,captureStackTrace:Ka,cleanEnum:oy,cleanRegex:Po,clone:Nr,cloneDef:Hb,createTransparentProxy:iy,defineLazy:ot,esc:Ya,escapeRegex:wn,extend:_l,finalizeIssue:Lr,floatSafeRemainder:ml,getElementAtPath:Xb,getEnumValues:Ba,getLengthableOrigin:Do,getParsedType:ny,getSizableOrigin:Ao,hexToUint8Array:uy,isObject:fi,isPlainObject:Dn,issue:mi,joinValues:he,jsonStringifyReplacer:Eo,merge:xl,mergeDefs:$n,normalizeParams:se,nullish:An,numKeys:ry,objectClone:Co,omit:wl,optionalKeys:vl,partial:Sl,pick:$l,prefixIssues:Dr,primitiveTypes:hl,promiseAllObject:ey,propertyKeyTypes:Mo,randomString:ty,required:Il,safeExtend:kl,shallowClone:Uo,stringifyPrimitive:qe,uint8ArrayToBase64:Nl,uint8ArrayToBase64url:sy,uint8ArrayToHex:cy,unwrapMessage:Zi},Symbol.toStringTag,{value:"Module"})),Tl=(e,r)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:r,enumerable:!1}),e.message=JSON.stringify(r,Eo,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Ha=M("$ZodError",Tl),br=M("$ZodError",Tl,{Parent:Error});function Xa(e,r=o=>o.message){const o={},s=[];for(const t of e.issues)t.path.length>0?(o[t.path[0]]=o[t.path[0]]||[],o[t.path[0]].push(r(t))):s.push(r(t));return{formErrors:s,fieldErrors:o}}function es(e,r){const o=r||function(a){return a.message},s={_errors:[]},t=a=>{for(const f of a.issues)if(f.code==="invalid_union"&&f.errors.length)f.errors.map(_=>t({issues:_}));else if(f.code==="invalid_key")t({issues:f.issues});else if(f.code==="invalid_element")t({issues:f.issues});else if(f.path.length===0)s._errors.push(o(f));else{let _=s,q=0;for(;q<f.path.length;){const X=f.path[q];q===f.path.length-1?(_[X]=_[X]||{_errors:[]},_[X]._errors.push(o(f))):_[X]=_[X]||{_errors:[]},_=_[X],q++}}};return t(e),s}function Ol(e,r){const o=r||function(a){return a.message},s={errors:[]},t=(a,f=[])=>{var _,q;for(const X of a.issues)if(X.code==="invalid_union"&&X.errors.length)X.errors.map(ce=>t({issues:ce},X.path));else if(X.code==="invalid_key")t({issues:X.issues},X.path);else if(X.code==="invalid_element")t({issues:X.issues},X.path);else{const ce=[...f,...X.path];if(ce.length===0){s.errors.push(o(X));continue}let ue=s,ze=0;for(;ze<ce.length;){const ge=ce[ze],L=ze===ce.length-1;typeof ge=="string"?(ue.properties??(ue.properties={}),(_=ue.properties)[ge]??(_[ge]={errors:[]}),ue=ue.properties[ge]):(ue.items??(ue.items=[]),(q=ue.items)[ge]??(q[ge]={errors:[]}),ue=ue.items[ge]),L&&ue.errors.push(o(X)),ze++}}};return t(e),s}function El(e){const r=[],o=e.map(s=>typeof s=="object"?s.key:s);for(const s of o)typeof s=="number"?r.push(`[${s}]`):typeof s=="symbol"?r.push(`[${JSON.stringify(String(s))}]`):/[^\w$]/.test(s)?r.push(`[${JSON.stringify(s)}]`):(r.length&&r.push("."),r.push(s));return r.join("")}function Pl(e){const r=[],o=[...e.issues].sort((s,t)=>(s.path??[]).length-(t.path??[]).length);for(const s of o)r.push(`✖ ${s.message}`),s.path?.length&&r.push(` → at ${El(s.path)}`);return r.join(`
23
+ `)}const Ri=e=>(r,o,s,t)=>{const a=s?Object.assign(s,{async:!1}):{async:!1},f=r._zod.run({value:o,issues:[]},a);if(f instanceof Promise)throw new Mn;if(f.issues.length){const _=new(t?.Err??e)(f.issues.map(q=>Lr(q,a,cr())));throw Ka(_,t?.callee),_}return f.value},ts=Ri(br),qi=e=>async(r,o,s,t)=>{const a=s?Object.assign(s,{async:!0}):{async:!0};let f=r._zod.run({value:o,issues:[]},a);if(f instanceof Promise&&(f=await f),f.issues.length){const _=new(t?.Err??e)(f.issues.map(q=>Lr(q,a,cr())));throw Ka(_,t?.callee),_}return f.value},rs=qi(br),Fi=e=>(r,o,s)=>{const t=s?{...s,async:!1}:{async:!1},a=r._zod.run({value:o,issues:[]},t);if(a instanceof Promise)throw new Mn;return a.issues.length?{success:!1,error:new(e??Ha)(a.issues.map(f=>Lr(f,t,cr())))}:{success:!0,data:a.value}},Cl=Fi(br),Wi=e=>async(r,o,s)=>{const t=s?Object.assign(s,{async:!0}):{async:!0};let a=r._zod.run({value:o,issues:[]},t);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(f=>Lr(f,t,cr())))}:{success:!0,data:a.value}},Ul=Wi(br),ns=e=>(r,o,s)=>{const t=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return Ri(e)(r,o,t)},dy=ns(br),is=e=>(r,o,s)=>Ri(e)(r,o,s),fy=is(br),os=e=>async(r,o,s)=>{const t=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return qi(e)(r,o,t)},my=os(br),as=e=>async(r,o,s)=>qi(e)(r,o,s),py=as(br),ss=e=>(r,o,s)=>{const t=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return Fi(e)(r,o,t)},gy=ss(br),us=e=>(r,o,s)=>Fi(e)(r,o,s),hy=us(br),cs=e=>async(r,o,s)=>{const t=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return Wi(e)(r,o,t)},vy=cs(br),ls=e=>async(r,o,s)=>Wi(e)(r,o,s),by=ls(br),Ml=/^[cC][^\s-]{8,}$/,Al=/^[0-9a-z]+$/,Dl=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Ll=/^[0-9a-vA-V]{20}$/,Zl=/^[A-Za-z0-9]{27}$/,Rl=/^[a-zA-Z0-9_-]{21}$/,ql=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,yy=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Fl=/^([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})$/,pi=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)$/,$y=pi(4),wy=pi(6),_y=pi(7),Wl=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,ky=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,xy=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Vl=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Sy=Vl,Iy=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,zy="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Ql(){return new RegExp(zy,"u")}const Gl=/^(?:(?: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])$/,Jl=/^(([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}|:))$/,Bl=/^((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])$/,Yl=/^(([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])$/,Kl=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ds=/^[A-Za-z0-9_-]*$/,fs=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,Hl=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Xl=/^\+(?:[0-9]){6,14}[0-9]$/,ed="(?:(?:\\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])))",td=new RegExp(`^${ed}$`);function rd(e){const r="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${r}`:e.precision===0?`${r}:[0-5]\\d`:`${r}:[0-5]\\d\\.\\d{${e.precision}}`:`${r}(?::[0-5]\\d(?:\\.\\d+)?)?`}function nd(e){return new RegExp(`^${rd(e)}$`)}function id(e){const r=rd({precision:e.precision}),o=["Z"];e.local&&o.push(""),e.offset&&o.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const s=`${r}(?:${o.join("|")})`;return new RegExp(`^${ed}T(?:${s})$`)}const od=e=>{const r=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)},ad=/^-?\d+n?$/,sd=/^-?\d+$/,ud=/^-?\d+(?:\.\d+)?/,cd=/^(?:true|false)$/i,ld=/^null$/i,dd=/^undefined$/i,fd=/^[^A-Z]*$/,md=/^[^a-z]*$/,pd=/^[0-9a-fA-F]*$/;function Vi(e,r){return new RegExp(`^[A-Za-z0-9+/]{${e}}${r}$`)}function Qi(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}const ms=Object.freeze(Object.defineProperty({__proto__:null,base64:Kl,base64url:ds,bigint:ad,boolean:cd,browserEmail:Iy,cidrv4:Bl,cidrv6:Yl,cuid:Ml,cuid2:Al,date:td,datetime:id,domain:Hl,duration:ql,e164:Xl,email:Wl,emoji:Ql,extendedDuration:yy,guid:Fl,hex:pd,hostname:fs,html5Email:ky,idnEmail:Sy,integer:sd,ipv4:Gl,ipv6:Jl,ksuid:Zl,lowercase:fd,md5_base64:Vi(22,"=="),md5_base64url:Qi(22),md5_hex:/^[0-9a-fA-F]{32}$/,nanoid:Rl,null:ld,number:ud,rfc5322Email:xy,sha1_base64:Vi(27,"="),sha1_base64url:Qi(27),sha1_hex:/^[0-9a-fA-F]{40}$/,sha256_base64:Vi(43,"="),sha256_base64url:Qi(43),sha256_hex:/^[0-9a-fA-F]{64}$/,sha384_base64:Vi(64,""),sha384_base64url:Qi(64),sha384_hex:/^[0-9a-fA-F]{96}$/,sha512_base64:Vi(86,"=="),sha512_base64url:Qi(86),sha512_hex:/^[0-9a-fA-F]{128}$/,string:od,time:nd,ulid:Dl,undefined:dd,unicodeEmail:Vl,uppercase:md,uuid:pi,uuid4:$y,uuid6:wy,uuid7:_y,xid:Ll},Symbol.toStringTag,{value:"Module"})),Mt=M("$ZodCheck",(e,r)=>{var o;e._zod??(e._zod={}),e._zod.def=r,(o=e._zod).onattach??(o.onattach=[])}),gd={number:"number",bigint:"bigint",object:"date"},ps=M("$ZodCheckLessThan",(e,r)=>{Mt.init(e,r);const o=gd[typeof r.value];e._zod.onattach.push(s=>{const t=s._zod.bag,a=(r.inclusive?t.maximum:t.exclusiveMaximum)??Number.POSITIVE_INFINITY;r.value<a&&(r.inclusive?t.maximum=r.value:t.exclusiveMaximum=r.value)}),e._zod.check=s=>{(r.inclusive?s.value<=r.value:s.value<r.value)||s.issues.push({origin:o,code:"too_big",maximum:r.value,input:s.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),gs=M("$ZodCheckGreaterThan",(e,r)=>{Mt.init(e,r);const o=gd[typeof r.value];e._zod.onattach.push(s=>{const t=s._zod.bag,a=(r.inclusive?t.minimum:t.exclusiveMinimum)??Number.NEGATIVE_INFINITY;r.value>a&&(r.inclusive?t.minimum=r.value:t.exclusiveMinimum=r.value)}),e._zod.check=s=>{(r.inclusive?s.value>=r.value:s.value>r.value)||s.issues.push({origin:o,code:"too_small",minimum:r.value,input:s.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),hd=M("$ZodCheckMultipleOf",(e,r)=>{Mt.init(e,r),e._zod.onattach.push(o=>{var s;(s=o._zod.bag).multipleOf??(s.multipleOf=r.value)}),e._zod.check=o=>{if(typeof o.value!=typeof r.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof o.value=="bigint"?o.value%r.value===BigInt(0):ml(o.value,r.value)===0)||o.issues.push({origin:typeof o.value,code:"not_multiple_of",divisor:r.value,input:o.value,inst:e,continue:!r.abort})}}),vd=M("$ZodCheckNumberFormat",(e,r)=>{Mt.init(e,r),r.format=r.format||"float64";const o=r.format?.includes("int"),s=o?"int":"number",[t,a]=bl[r.format];e._zod.onattach.push(f=>{const _=f._zod.bag;_.format=r.format,_.minimum=t,_.maximum=a,o&&(_.pattern=sd)}),e._zod.check=f=>{const _=f.value;if(o){if(!Number.isInteger(_)){f.issues.push({expected:s,format:r.format,code:"invalid_type",continue:!1,input:_,inst:e});return}if(!Number.isSafeInteger(_)){_>0?f.issues.push({input:_,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:s,continue:!r.abort}):f.issues.push({input:_,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:s,continue:!r.abort});return}}_<t&&f.issues.push({origin:"number",input:_,code:"too_small",minimum:t,inclusive:!0,inst:e,continue:!r.abort}),_>a&&f.issues.push({origin:"number",input:_,code:"too_big",maximum:a,inst:e})}}),bd=M("$ZodCheckBigIntFormat",(e,r)=>{Mt.init(e,r);const[o,s]=yl[r.format];e._zod.onattach.push(t=>{const a=t._zod.bag;a.format=r.format,a.minimum=o,a.maximum=s}),e._zod.check=t=>{const a=t.value;a<o&&t.issues.push({origin:"bigint",input:a,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!r.abort}),a>s&&t.issues.push({origin:"bigint",input:a,code:"too_big",maximum:s,inst:e})}}),yd=M("$ZodCheckMaxSize",(e,r)=>{var o;Mt.init(e,r),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!An(t)&&t.size!==void 0}),e._zod.onattach.push(s=>{const t=s._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<t&&(s._zod.bag.maximum=r.maximum)}),e._zod.check=s=>{const t=s.value;t.size<=r.maximum||s.issues.push({origin:Ao(t),code:"too_big",maximum:r.maximum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),$d=M("$ZodCheckMinSize",(e,r)=>{var o;Mt.init(e,r),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!An(t)&&t.size!==void 0}),e._zod.onattach.push(s=>{const t=s._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>t&&(s._zod.bag.minimum=r.minimum)}),e._zod.check=s=>{const t=s.value;t.size>=r.minimum||s.issues.push({origin:Ao(t),code:"too_small",minimum:r.minimum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),wd=M("$ZodCheckSizeEquals",(e,r)=>{var o;Mt.init(e,r),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!An(t)&&t.size!==void 0}),e._zod.onattach.push(s=>{const t=s._zod.bag;t.minimum=r.size,t.maximum=r.size,t.size=r.size}),e._zod.check=s=>{const t=s.value,a=t.size;if(a===r.size)return;const f=a>r.size;s.issues.push({origin:Ao(t),...f?{code:"too_big",maximum:r.size}:{code:"too_small",minimum:r.size},inclusive:!0,exact:!0,input:s.value,inst:e,continue:!r.abort})}}),_d=M("$ZodCheckMaxLength",(e,r)=>{var o;Mt.init(e,r),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!An(t)&&t.length!==void 0}),e._zod.onattach.push(s=>{const t=s._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<t&&(s._zod.bag.maximum=r.maximum)}),e._zod.check=s=>{const t=s.value;if(t.length<=r.maximum)return;const f=Do(t);s.issues.push({origin:f,code:"too_big",maximum:r.maximum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),kd=M("$ZodCheckMinLength",(e,r)=>{var o;Mt.init(e,r),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!An(t)&&t.length!==void 0}),e._zod.onattach.push(s=>{const t=s._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>t&&(s._zod.bag.minimum=r.minimum)}),e._zod.check=s=>{const t=s.value;if(t.length>=r.minimum)return;const f=Do(t);s.issues.push({origin:f,code:"too_small",minimum:r.minimum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),xd=M("$ZodCheckLengthEquals",(e,r)=>{var o;Mt.init(e,r),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!An(t)&&t.length!==void 0}),e._zod.onattach.push(s=>{const t=s._zod.bag;t.minimum=r.length,t.maximum=r.length,t.length=r.length}),e._zod.check=s=>{const t=s.value,a=t.length;if(a===r.length)return;const f=Do(t),_=a>r.length;s.issues.push({origin:f,..._?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:!0,exact:!0,input:s.value,inst:e,continue:!r.abort})}}),Gi=M("$ZodCheckStringFormat",(e,r)=>{var o,s;Mt.init(e,r),e._zod.onattach.push(t=>{const a=t._zod.bag;a.format=r.format,r.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(r.pattern))}),r.pattern?(o=e._zod).check??(o.check=t=>{r.pattern.lastIndex=0,!r.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:r.format,input:t.value,...r.pattern?{pattern:r.pattern.toString()}:{},inst:e,continue:!r.abort})}):(s=e._zod).check??(s.check=()=>{})}),Sd=M("$ZodCheckRegex",(e,r)=>{Gi.init(e,r),e._zod.check=o=>{r.pattern.lastIndex=0,!r.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:"regex",input:o.value,pattern:r.pattern.toString(),inst:e,continue:!r.abort})}}),Id=M("$ZodCheckLowerCase",(e,r)=>{r.pattern??(r.pattern=fd),Gi.init(e,r)}),zd=M("$ZodCheckUpperCase",(e,r)=>{r.pattern??(r.pattern=md),Gi.init(e,r)}),Nd=M("$ZodCheckIncludes",(e,r)=>{Mt.init(e,r);const o=wn(r.includes),s=new RegExp(typeof r.position=="number"?`^.{${r.position}}${o}`:o);r.pattern=s,e._zod.onattach.push(t=>{const a=t._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(s)}),e._zod.check=t=>{t.value.includes(r.includes,r.position)||t.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:r.includes,input:t.value,inst:e,continue:!r.abort})}}),jd=M("$ZodCheckStartsWith",(e,r)=>{Mt.init(e,r);const o=new RegExp(`^${wn(r.prefix)}.*`);r.pattern??(r.pattern=o),e._zod.onattach.push(s=>{const t=s._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(o)}),e._zod.check=s=>{s.value.startsWith(r.prefix)||s.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:s.value,inst:e,continue:!r.abort})}}),Td=M("$ZodCheckEndsWith",(e,r)=>{Mt.init(e,r);const o=new RegExp(`.*${wn(r.suffix)}$`);r.pattern??(r.pattern=o),e._zod.onattach.push(s=>{const t=s._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(o)}),e._zod.check=s=>{s.value.endsWith(r.suffix)||s.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:s.value,inst:e,continue:!r.abort})}});function Od(e,r,o){e.issues.length&&r.issues.push(...Dr(o,e.issues))}const Ed=M("$ZodCheckProperty",(e,r)=>{Mt.init(e,r),e._zod.check=o=>{const s=r.schema._zod.run({value:o.value[r.property],issues:[]},{});if(s instanceof Promise)return s.then(t=>Od(t,o,r.property));Od(s,o,r.property)}}),Pd=M("$ZodCheckMimeType",(e,r)=>{Mt.init(e,r);const o=new Set(r.mime);e._zod.onattach.push(s=>{s._zod.bag.mime=r.mime}),e._zod.check=s=>{o.has(s.value.type)||s.issues.push({code:"invalid_value",values:r.mime,input:s.value.type,inst:e,continue:!r.abort})}}),Cd=M("$ZodCheckOverwrite",(e,r)=>{Mt.init(e,r),e._zod.check=o=>{o.value=r.tx(o.value)}});class Ud{constructor(r=[]){this.content=[],this.indent=0,this&&(this.args=r)}indented(r){this.indent+=1,r(this),this.indent-=1}write(r){if(typeof r=="function"){r(this,{execution:"sync"}),r(this,{execution:"async"});return}const s=r.split(`
24
24
  `).filter(f=>f),t=Math.min(...s.map(f=>f.length-f.trimStart().length)),a=s.map(f=>f.slice(t)).map(f=>" ".repeat(this.indent*2)+f);for(const f of a)this.content.push(f)}compile(){const r=Function,o=this?.args,t=[...(this?.content??[""]).map(a=>` ${a}`)];return new r(...o,t.join(`
25
- `))}}const Ud={major:4,minor:1,patch:8},Qe=D("$ZodType",(e,r)=>{var o;e??(e={}),e._zod.def=r,e._zod.bag=e._zod.bag||{},e._zod.version=Ud;const s=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&s.unshift(e);for(const t of s)for(const a of t._zod.onattach)a(e);if(s.length===0)(o=e._zod).deferred??(o.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const t=(f,_,q)=>{let X=An(f),ce;for(const ue of _){if(ue._zod.def.when){if(!ue._zod.def.when(f))continue}else if(X)continue;const ze=f.issues.length,ge=ue._zod.check(f);if(ge instanceof Promise&&q?.async===!1)throw new Mn;if(ce||ge instanceof Promise)ce=(ce??Promise.resolve()).then(async()=>{await ge,f.issues.length!==ze&&(X||(X=An(f,ze)))});else{if(f.issues.length===ze)continue;X||(X=An(f,ze))}}return ce?ce.then(()=>f):f},a=(f,_,q)=>{if(An(f))return f.aborted=!0,f;const X=t(_,s,q);if(X instanceof Promise){if(q.async===!1)throw new Mn;return X.then(ce=>e._zod.parse(ce,q))}return e._zod.parse(X,q)};e._zod.run=(f,_)=>{if(_.skipChecks)return e._zod.parse(f,_);if(_.direction==="backward"){const X=e._zod.parse({value:f.value,issues:[]},{..._,skipChecks:!0});return X instanceof Promise?X.then(ce=>a(ce,f,_)):a(X,f,_)}const q=e._zod.parse(f,_);if(q instanceof Promise){if(_.async===!1)throw new Mn;return q.then(X=>t(X,s,_))}return t(q,s,_)}}e["~standard"]={validate:t=>{try{const a=Pl(e,t);return a.success?{value:a.data}:{issues:a.error?.issues}}catch{return Cl(e,t).then(f=>f.success?{value:f.data}:{issues:f.error?.issues})}},vendor:"zod",version:1}}),Ji=D("$ZodString",(e,r)=>{Qe.init(e,r),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??id(e._zod.bag),e._zod.parse=(o,s)=>{if(r.coerce)try{o.value=String(o.value)}catch{}return typeof o.value=="string"||o.issues.push({expected:"string",code:"invalid_type",input:o.value,inst:e}),o}}),zt=D("$ZodStringFormat",(e,r)=>{Vi.init(e,r),Ji.init(e,r)}),Md=D("$ZodGUID",(e,r)=>{r.pattern??(r.pattern=Fl),zt.init(e,r)}),Dd=D("$ZodUUID",(e,r)=>{if(r.version){const s={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(s===void 0)throw new Error(`Invalid UUID version: "${r.version}"`);r.pattern??(r.pattern=pi(s))}else r.pattern??(r.pattern=pi());zt.init(e,r)}),Ld=D("$ZodEmail",(e,r)=>{r.pattern??(r.pattern=ql),zt.init(e,r)}),Ad=D("$ZodURL",(e,r)=>{zt.init(e,r),e._zod.check=o=>{try{const s=o.value.trim(),t=new URL(s);r.hostname&&(r.hostname.lastIndex=0,r.hostname.test(t.hostname)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:fs.source,input:o.value,inst:e,continue:!r.abort})),r.protocol&&(r.protocol.lastIndex=0,r.protocol.test(t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:o.value,inst:e,continue:!r.abort})),r.normalize?o.value=t.href:o.value=s;return}catch{o.issues.push({code:"invalid_format",format:"url",input:o.value,inst:e,continue:!r.abort})}}}),Zd=D("$ZodEmoji",(e,r)=>{r.pattern??(r.pattern=Ql()),zt.init(e,r)}),Rd=D("$ZodNanoID",(e,r)=>{r.pattern??(r.pattern=Zl),zt.init(e,r)}),Fd=D("$ZodCUID",(e,r)=>{r.pattern??(r.pattern=Ul),zt.init(e,r)}),qd=D("$ZodCUID2",(e,r)=>{r.pattern??(r.pattern=Ml),zt.init(e,r)}),Wd=D("$ZodULID",(e,r)=>{r.pattern??(r.pattern=Dl),zt.init(e,r)}),Qd=D("$ZodXID",(e,r)=>{r.pattern??(r.pattern=Ll),zt.init(e,r)}),Gd=D("$ZodKSUID",(e,r)=>{r.pattern??(r.pattern=Al),zt.init(e,r)}),Vd=D("$ZodISODateTime",(e,r)=>{r.pattern??(r.pattern=nd(r)),zt.init(e,r)}),Jd=D("$ZodISODate",(e,r)=>{r.pattern??(r.pattern=ed),zt.init(e,r)}),Bd=D("$ZodISOTime",(e,r)=>{r.pattern??(r.pattern=rd(r)),zt.init(e,r)}),Yd=D("$ZodISODuration",(e,r)=>{r.pattern??(r.pattern=Rl),zt.init(e,r)}),Kd=D("$ZodIPv4",(e,r)=>{r.pattern??(r.pattern=Gl),zt.init(e,r),e._zod.onattach.push(o=>{const s=o._zod.bag;s.format="ipv4"})}),Hd=D("$ZodIPv6",(e,r)=>{r.pattern??(r.pattern=Vl),zt.init(e,r),e._zod.onattach.push(o=>{const s=o._zod.bag;s.format="ipv6"}),e._zod.check=o=>{try{new URL(`http://[${o.value}]`)}catch{o.issues.push({code:"invalid_format",format:"ipv6",input:o.value,inst:e,continue:!r.abort})}}}),Xd=D("$ZodCIDRv4",(e,r)=>{r.pattern??(r.pattern=Jl),zt.init(e,r)}),ef=D("$ZodCIDRv6",(e,r)=>{r.pattern??(r.pattern=Bl),zt.init(e,r),e._zod.check=o=>{const s=o.value.split("/");try{if(s.length!==2)throw new Error;const[t,a]=s;if(!a)throw new Error;const f=Number(a);if(`${f}`!==a)throw new Error;if(f<0||f>128)throw new Error;new URL(`http://[${t}]`)}catch{o.issues.push({code:"invalid_format",format:"cidrv6",input:o.value,inst:e,continue:!r.abort})}}});function hs(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const tf=D("$ZodBase64",(e,r)=>{r.pattern??(r.pattern=Yl),zt.init(e,r),e._zod.onattach.push(o=>{o._zod.bag.contentEncoding="base64"}),e._zod.check=o=>{hs(o.value)||o.issues.push({code:"invalid_format",format:"base64",input:o.value,inst:e,continue:!r.abort})}});function rf(e){if(!ds.test(e))return!1;const r=e.replace(/[-_]/g,s=>s==="-"?"+":"/"),o=r.padEnd(Math.ceil(r.length/4)*4,"=");return hs(o)}const nf=D("$ZodBase64URL",(e,r)=>{r.pattern??(r.pattern=ds),zt.init(e,r),e._zod.onattach.push(o=>{o._zod.bag.contentEncoding="base64url"}),e._zod.check=o=>{rf(o.value)||o.issues.push({code:"invalid_format",format:"base64url",input:o.value,inst:e,continue:!r.abort})}}),of=D("$ZodE164",(e,r)=>{r.pattern??(r.pattern=Hl),zt.init(e,r)});function af(e,r=null){try{const o=e.split(".");if(o.length!==3)return!1;const[s]=o;if(!s)return!1;const t=JSON.parse(atob(s));return!("typ"in t&&t?.typ!=="JWT"||!t.alg||r&&(!("alg"in t)||t.alg!==r))}catch{return!1}}const sf=D("$ZodJWT",(e,r)=>{zt.init(e,r),e._zod.check=o=>{af(o.value,r.alg)||o.issues.push({code:"invalid_format",format:"jwt",input:o.value,inst:e,continue:!r.abort})}}),uf=D("$ZodCustomStringFormat",(e,r)=>{zt.init(e,r),e._zod.check=o=>{r.fn(o.value)||o.issues.push({code:"invalid_format",format:r.format,input:o.value,inst:e,continue:!r.abort})}}),vs=D("$ZodNumber",(e,r)=>{Qe.init(e,r),e._zod.pattern=e._zod.bag.pattern??sd,e._zod.parse=(o,s)=>{if(r.coerce)try{o.value=Number(o.value)}catch{}const t=o.value;if(typeof t=="number"&&!Number.isNaN(t)&&Number.isFinite(t))return o;const a=typeof t=="number"?Number.isNaN(t)?"NaN":Number.isFinite(t)?void 0:"Infinity":void 0;return o.issues.push({expected:"number",code:"invalid_type",input:t,inst:e,...a?{received:a}:{}}),o}}),cf=D("$ZodNumber",(e,r)=>{hd.init(e,r),vs.init(e,r)}),bs=D("$ZodBoolean",(e,r)=>{Qe.init(e,r),e._zod.pattern=ud,e._zod.parse=(o,s)=>{if(r.coerce)try{o.value=!!o.value}catch{}const t=o.value;return typeof t=="boolean"||o.issues.push({expected:"boolean",code:"invalid_type",input:t,inst:e}),o}}),ys=D("$ZodBigInt",(e,r)=>{Qe.init(e,r),e._zod.pattern=od,e._zod.parse=(o,s)=>{if(r.coerce)try{o.value=BigInt(o.value)}catch{}return typeof o.value=="bigint"||o.issues.push({expected:"bigint",code:"invalid_type",input:o.value,inst:e}),o}}),lf=D("$ZodBigInt",(e,r)=>{vd.init(e,r),ys.init(e,r)}),df=D("$ZodSymbol",(e,r)=>{Qe.init(e,r),e._zod.parse=(o,s)=>{const t=o.value;return typeof t=="symbol"||o.issues.push({expected:"symbol",code:"invalid_type",input:t,inst:e}),o}}),ff=D("$ZodUndefined",(e,r)=>{Qe.init(e,r),e._zod.pattern=ld,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(o,s)=>{const t=o.value;return typeof t>"u"||o.issues.push({expected:"undefined",code:"invalid_type",input:t,inst:e}),o}}),mf=D("$ZodNull",(e,r)=>{Qe.init(e,r),e._zod.pattern=cd,e._zod.values=new Set([null]),e._zod.parse=(o,s)=>{const t=o.value;return t===null||o.issues.push({expected:"null",code:"invalid_type",input:t,inst:e}),o}}),pf=D("$ZodAny",(e,r)=>{Qe.init(e,r),e._zod.parse=o=>o}),gf=D("$ZodUnknown",(e,r)=>{Qe.init(e,r),e._zod.parse=o=>o}),hf=D("$ZodNever",(e,r)=>{Qe.init(e,r),e._zod.parse=(o,s)=>(o.issues.push({expected:"never",code:"invalid_type",input:o.value,inst:e}),o)}),vf=D("$ZodVoid",(e,r)=>{Qe.init(e,r),e._zod.parse=(o,s)=>{const t=o.value;return typeof t>"u"||o.issues.push({expected:"void",code:"invalid_type",input:t,inst:e}),o}}),bf=D("$ZodDate",(e,r)=>{Qe.init(e,r),e._zod.parse=(o,s)=>{if(r.coerce)try{o.value=new Date(o.value)}catch{}const t=o.value,a=t instanceof Date;return a&&!Number.isNaN(t.getTime())||o.issues.push({expected:"date",code:"invalid_type",input:t,...a?{received:"Invalid Date"}:{},inst:e}),o}});function yf(e,r,o){e.issues.length&&r.issues.push(...Lr(o,e.issues)),r.value[o]=e.value}const $f=D("$ZodArray",(e,r)=>{Qe.init(e,r),e._zod.parse=(o,s)=>{const t=o.value;if(!Array.isArray(t))return o.issues.push({expected:"array",code:"invalid_type",input:t,inst:e}),o;o.value=Array(t.length);const a=[];for(let f=0;f<t.length;f++){const _=t[f],q=r.element._zod.run({value:_,issues:[]},s);q instanceof Promise?a.push(q.then(X=>yf(X,o,f))):yf(q,o,f)}return a.length?Promise.all(a).then(()=>o):o}});function Ao(e,r,o,s){e.issues.length&&r.issues.push(...Lr(o,e.issues)),e.value===void 0?o in s&&(r.value[o]=void 0):r.value[o]=e.value}function wf(e){const r=Object.keys(e.shape);for(const s of r)if(!e.shape?.[s]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${s}": expected a Zod schema`);const o=hl(e.shape);return{...e,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(o)}}function _f(e,r,o,s,t,a){const f=[],_=t.keySet,q=t.catchall._zod,X=q.def.type;for(const ce of Object.keys(r)){if(_.has(ce))continue;if(X==="never"){f.push(ce);continue}const ue=q.run({value:r[ce],issues:[]},s);ue instanceof Promise?e.push(ue.then(ze=>Ao(ze,o,ce,r))):Ao(ue,o,ce,r)}return f.length&&o.issues.push({code:"unrecognized_keys",keys:f,input:r,inst:a}),e.length?Promise.all(e).then(()=>o):o}const kf=D("$ZodObject",(e,r)=>{Qe.init(e,r);const o=Ai(()=>wf(r));ot(e._zod,"propValues",()=>{const f=r.shape,_={};for(const q in f){const X=f[q]._zod;if(X.values){_[q]??(_[q]=new Set);for(const ce of X.values)_[q].add(ce)}}return _});const s=fi,t=r.catchall;let a;e._zod.parse=(f,_)=>{a??(a=o.value);const q=f.value;if(!s(q))return f.issues.push({expected:"object",code:"invalid_type",input:q,inst:e}),f;f.value={};const X=[],ce=a.shape;for(const ue of a.keys){const ge=ce[ue]._zod.run({value:q[ue],issues:[]},_);ge instanceof Promise?X.push(ge.then(A=>Ao(A,f,ue,q))):Ao(ge,f,ue,q)}return t?_f(X,q,f,_,o.value,e):X.length?Promise.all(X).then(()=>f):f}}),xf=D("$ZodObjectJIT",(e,r)=>{kf.init(e,r);const o=e._zod.parse,s=Ai(()=>wf(r)),t=ze=>{const ge=new Cd(["shape","payload","ctx"]),A=s.value,ye=dt=>{const bt=Ya(dt);return`shape[${bt}]._zod.run({ value: input[${bt}], issues: [] }, ctx)`};ge.write("const input = payload.value;");const Me=Object.create(null);let pt=0;for(const dt of A.keys)Me[dt]=`key_${pt++}`;ge.write("const newResult = {};");for(const dt of A.keys){const bt=Me[dt],lr=Ya(dt);ge.write(`const ${bt} = ${ye(dt)};`),ge.write(`
25
+ `))}}const Md={major:4,minor:1,patch:8},Ve=M("$ZodType",(e,r)=>{var o;e??(e={}),e._zod.def=r,e._zod.bag=e._zod.bag||{},e._zod.version=Md;const s=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&s.unshift(e);for(const t of s)for(const a of t._zod.onattach)a(e);if(s.length===0)(o=e._zod).deferred??(o.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const t=(f,_,q)=>{let X=Ln(f),ce;for(const ue of _){if(ue._zod.def.when){if(!ue._zod.def.when(f))continue}else if(X)continue;const ze=f.issues.length,ge=ue._zod.check(f);if(ge instanceof Promise&&q?.async===!1)throw new Mn;if(ce||ge instanceof Promise)ce=(ce??Promise.resolve()).then(async()=>{await ge,f.issues.length!==ze&&(X||(X=Ln(f,ze)))});else{if(f.issues.length===ze)continue;X||(X=Ln(f,ze))}}return ce?ce.then(()=>f):f},a=(f,_,q)=>{if(Ln(f))return f.aborted=!0,f;const X=t(_,s,q);if(X instanceof Promise){if(q.async===!1)throw new Mn;return X.then(ce=>e._zod.parse(ce,q))}return e._zod.parse(X,q)};e._zod.run=(f,_)=>{if(_.skipChecks)return e._zod.parse(f,_);if(_.direction==="backward"){const X=e._zod.parse({value:f.value,issues:[]},{..._,skipChecks:!0});return X instanceof Promise?X.then(ce=>a(ce,f,_)):a(X,f,_)}const q=e._zod.parse(f,_);if(q instanceof Promise){if(_.async===!1)throw new Mn;return q.then(X=>t(X,s,_))}return t(q,s,_)}}e["~standard"]={validate:t=>{try{const a=Cl(e,t);return a.success?{value:a.data}:{issues:a.error?.issues}}catch{return Ul(e,t).then(f=>f.success?{value:f.data}:{issues:f.error?.issues})}},vendor:"zod",version:1}}),Ji=M("$ZodString",(e,r)=>{Ve.init(e,r),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??od(e._zod.bag),e._zod.parse=(o,s)=>{if(r.coerce)try{o.value=String(o.value)}catch{}return typeof o.value=="string"||o.issues.push({expected:"string",code:"invalid_type",input:o.value,inst:e}),o}}),zt=M("$ZodStringFormat",(e,r)=>{Gi.init(e,r),Ji.init(e,r)}),Ad=M("$ZodGUID",(e,r)=>{r.pattern??(r.pattern=Fl),zt.init(e,r)}),Dd=M("$ZodUUID",(e,r)=>{if(r.version){const s={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(s===void 0)throw new Error(`Invalid UUID version: "${r.version}"`);r.pattern??(r.pattern=pi(s))}else r.pattern??(r.pattern=pi());zt.init(e,r)}),Ld=M("$ZodEmail",(e,r)=>{r.pattern??(r.pattern=Wl),zt.init(e,r)}),Zd=M("$ZodURL",(e,r)=>{zt.init(e,r),e._zod.check=o=>{try{const s=o.value.trim(),t=new URL(s);r.hostname&&(r.hostname.lastIndex=0,r.hostname.test(t.hostname)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:fs.source,input:o.value,inst:e,continue:!r.abort})),r.protocol&&(r.protocol.lastIndex=0,r.protocol.test(t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:o.value,inst:e,continue:!r.abort})),r.normalize?o.value=t.href:o.value=s;return}catch{o.issues.push({code:"invalid_format",format:"url",input:o.value,inst:e,continue:!r.abort})}}}),Rd=M("$ZodEmoji",(e,r)=>{r.pattern??(r.pattern=Ql()),zt.init(e,r)}),qd=M("$ZodNanoID",(e,r)=>{r.pattern??(r.pattern=Rl),zt.init(e,r)}),Fd=M("$ZodCUID",(e,r)=>{r.pattern??(r.pattern=Ml),zt.init(e,r)}),Wd=M("$ZodCUID2",(e,r)=>{r.pattern??(r.pattern=Al),zt.init(e,r)}),Vd=M("$ZodULID",(e,r)=>{r.pattern??(r.pattern=Dl),zt.init(e,r)}),Qd=M("$ZodXID",(e,r)=>{r.pattern??(r.pattern=Ll),zt.init(e,r)}),Gd=M("$ZodKSUID",(e,r)=>{r.pattern??(r.pattern=Zl),zt.init(e,r)}),Jd=M("$ZodISODateTime",(e,r)=>{r.pattern??(r.pattern=id(r)),zt.init(e,r)}),Bd=M("$ZodISODate",(e,r)=>{r.pattern??(r.pattern=td),zt.init(e,r)}),Yd=M("$ZodISOTime",(e,r)=>{r.pattern??(r.pattern=nd(r)),zt.init(e,r)}),Kd=M("$ZodISODuration",(e,r)=>{r.pattern??(r.pattern=ql),zt.init(e,r)}),Hd=M("$ZodIPv4",(e,r)=>{r.pattern??(r.pattern=Gl),zt.init(e,r),e._zod.onattach.push(o=>{const s=o._zod.bag;s.format="ipv4"})}),Xd=M("$ZodIPv6",(e,r)=>{r.pattern??(r.pattern=Jl),zt.init(e,r),e._zod.onattach.push(o=>{const s=o._zod.bag;s.format="ipv6"}),e._zod.check=o=>{try{new URL(`http://[${o.value}]`)}catch{o.issues.push({code:"invalid_format",format:"ipv6",input:o.value,inst:e,continue:!r.abort})}}}),ef=M("$ZodCIDRv4",(e,r)=>{r.pattern??(r.pattern=Bl),zt.init(e,r)}),tf=M("$ZodCIDRv6",(e,r)=>{r.pattern??(r.pattern=Yl),zt.init(e,r),e._zod.check=o=>{const s=o.value.split("/");try{if(s.length!==2)throw new Error;const[t,a]=s;if(!a)throw new Error;const f=Number(a);if(`${f}`!==a)throw new Error;if(f<0||f>128)throw new Error;new URL(`http://[${t}]`)}catch{o.issues.push({code:"invalid_format",format:"cidrv6",input:o.value,inst:e,continue:!r.abort})}}});function hs(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const rf=M("$ZodBase64",(e,r)=>{r.pattern??(r.pattern=Kl),zt.init(e,r),e._zod.onattach.push(o=>{o._zod.bag.contentEncoding="base64"}),e._zod.check=o=>{hs(o.value)||o.issues.push({code:"invalid_format",format:"base64",input:o.value,inst:e,continue:!r.abort})}});function nf(e){if(!ds.test(e))return!1;const r=e.replace(/[-_]/g,s=>s==="-"?"+":"/"),o=r.padEnd(Math.ceil(r.length/4)*4,"=");return hs(o)}const of=M("$ZodBase64URL",(e,r)=>{r.pattern??(r.pattern=ds),zt.init(e,r),e._zod.onattach.push(o=>{o._zod.bag.contentEncoding="base64url"}),e._zod.check=o=>{nf(o.value)||o.issues.push({code:"invalid_format",format:"base64url",input:o.value,inst:e,continue:!r.abort})}}),af=M("$ZodE164",(e,r)=>{r.pattern??(r.pattern=Xl),zt.init(e,r)});function sf(e,r=null){try{const o=e.split(".");if(o.length!==3)return!1;const[s]=o;if(!s)return!1;const t=JSON.parse(atob(s));return!("typ"in t&&t?.typ!=="JWT"||!t.alg||r&&(!("alg"in t)||t.alg!==r))}catch{return!1}}const uf=M("$ZodJWT",(e,r)=>{zt.init(e,r),e._zod.check=o=>{sf(o.value,r.alg)||o.issues.push({code:"invalid_format",format:"jwt",input:o.value,inst:e,continue:!r.abort})}}),cf=M("$ZodCustomStringFormat",(e,r)=>{zt.init(e,r),e._zod.check=o=>{r.fn(o.value)||o.issues.push({code:"invalid_format",format:r.format,input:o.value,inst:e,continue:!r.abort})}}),vs=M("$ZodNumber",(e,r)=>{Ve.init(e,r),e._zod.pattern=e._zod.bag.pattern??ud,e._zod.parse=(o,s)=>{if(r.coerce)try{o.value=Number(o.value)}catch{}const t=o.value;if(typeof t=="number"&&!Number.isNaN(t)&&Number.isFinite(t))return o;const a=typeof t=="number"?Number.isNaN(t)?"NaN":Number.isFinite(t)?void 0:"Infinity":void 0;return o.issues.push({expected:"number",code:"invalid_type",input:t,inst:e,...a?{received:a}:{}}),o}}),lf=M("$ZodNumber",(e,r)=>{vd.init(e,r),vs.init(e,r)}),bs=M("$ZodBoolean",(e,r)=>{Ve.init(e,r),e._zod.pattern=cd,e._zod.parse=(o,s)=>{if(r.coerce)try{o.value=!!o.value}catch{}const t=o.value;return typeof t=="boolean"||o.issues.push({expected:"boolean",code:"invalid_type",input:t,inst:e}),o}}),ys=M("$ZodBigInt",(e,r)=>{Ve.init(e,r),e._zod.pattern=ad,e._zod.parse=(o,s)=>{if(r.coerce)try{o.value=BigInt(o.value)}catch{}return typeof o.value=="bigint"||o.issues.push({expected:"bigint",code:"invalid_type",input:o.value,inst:e}),o}}),df=M("$ZodBigInt",(e,r)=>{bd.init(e,r),ys.init(e,r)}),ff=M("$ZodSymbol",(e,r)=>{Ve.init(e,r),e._zod.parse=(o,s)=>{const t=o.value;return typeof t=="symbol"||o.issues.push({expected:"symbol",code:"invalid_type",input:t,inst:e}),o}}),mf=M("$ZodUndefined",(e,r)=>{Ve.init(e,r),e._zod.pattern=dd,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(o,s)=>{const t=o.value;return typeof t>"u"||o.issues.push({expected:"undefined",code:"invalid_type",input:t,inst:e}),o}}),pf=M("$ZodNull",(e,r)=>{Ve.init(e,r),e._zod.pattern=ld,e._zod.values=new Set([null]),e._zod.parse=(o,s)=>{const t=o.value;return t===null||o.issues.push({expected:"null",code:"invalid_type",input:t,inst:e}),o}}),gf=M("$ZodAny",(e,r)=>{Ve.init(e,r),e._zod.parse=o=>o}),hf=M("$ZodUnknown",(e,r)=>{Ve.init(e,r),e._zod.parse=o=>o}),vf=M("$ZodNever",(e,r)=>{Ve.init(e,r),e._zod.parse=(o,s)=>(o.issues.push({expected:"never",code:"invalid_type",input:o.value,inst:e}),o)}),bf=M("$ZodVoid",(e,r)=>{Ve.init(e,r),e._zod.parse=(o,s)=>{const t=o.value;return typeof t>"u"||o.issues.push({expected:"void",code:"invalid_type",input:t,inst:e}),o}}),yf=M("$ZodDate",(e,r)=>{Ve.init(e,r),e._zod.parse=(o,s)=>{if(r.coerce)try{o.value=new Date(o.value)}catch{}const t=o.value,a=t instanceof Date;return a&&!Number.isNaN(t.getTime())||o.issues.push({expected:"date",code:"invalid_type",input:t,...a?{received:"Invalid Date"}:{},inst:e}),o}});function $f(e,r,o){e.issues.length&&r.issues.push(...Dr(o,e.issues)),r.value[o]=e.value}const wf=M("$ZodArray",(e,r)=>{Ve.init(e,r),e._zod.parse=(o,s)=>{const t=o.value;if(!Array.isArray(t))return o.issues.push({expected:"array",code:"invalid_type",input:t,inst:e}),o;o.value=Array(t.length);const a=[];for(let f=0;f<t.length;f++){const _=t[f],q=r.element._zod.run({value:_,issues:[]},s);q instanceof Promise?a.push(q.then(X=>$f(X,o,f))):$f(q,o,f)}return a.length?Promise.all(a).then(()=>o):o}});function Lo(e,r,o,s){e.issues.length&&r.issues.push(...Dr(o,e.issues)),e.value===void 0?o in s&&(r.value[o]=void 0):r.value[o]=e.value}function _f(e){const r=Object.keys(e.shape);for(const s of r)if(!e.shape?.[s]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${s}": expected a Zod schema`);const o=vl(e.shape);return{...e,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(o)}}function kf(e,r,o,s,t,a){const f=[],_=t.keySet,q=t.catchall._zod,X=q.def.type;for(const ce of Object.keys(r)){if(_.has(ce))continue;if(X==="never"){f.push(ce);continue}const ue=q.run({value:r[ce],issues:[]},s);ue instanceof Promise?e.push(ue.then(ze=>Lo(ze,o,ce,r))):Lo(ue,o,ce,r)}return f.length&&o.issues.push({code:"unrecognized_keys",keys:f,input:r,inst:a}),e.length?Promise.all(e).then(()=>o):o}const xf=M("$ZodObject",(e,r)=>{Ve.init(e,r);const o=Li(()=>_f(r));ot(e._zod,"propValues",()=>{const f=r.shape,_={};for(const q in f){const X=f[q]._zod;if(X.values){_[q]??(_[q]=new Set);for(const ce of X.values)_[q].add(ce)}}return _});const s=fi,t=r.catchall;let a;e._zod.parse=(f,_)=>{a??(a=o.value);const q=f.value;if(!s(q))return f.issues.push({expected:"object",code:"invalid_type",input:q,inst:e}),f;f.value={};const X=[],ce=a.shape;for(const ue of a.keys){const ge=ce[ue]._zod.run({value:q[ue],issues:[]},_);ge instanceof Promise?X.push(ge.then(L=>Lo(L,f,ue,q))):Lo(ge,f,ue,q)}return t?kf(X,q,f,_,o.value,e):X.length?Promise.all(X).then(()=>f):f}}),Sf=M("$ZodObjectJIT",(e,r)=>{xf.init(e,r);const o=e._zod.parse,s=Li(()=>_f(r)),t=ze=>{const ge=new Ud(["shape","payload","ctx"]),L=s.value,ye=dt=>{const bt=Ya(dt);return`shape[${bt}]._zod.run({ value: input[${bt}], issues: [] }, ctx)`};ge.write("const input = payload.value;");const Me=Object.create(null);let pt=0;for(const dt of L.keys)Me[dt]=`key_${pt++}`;ge.write("const newResult = {};");for(const dt of L.keys){const bt=Me[dt],lr=Ya(dt);ge.write(`const ${bt} = ${ye(dt)};`),ge.write(`
26
26
  if (${bt}.issues.length) {
27
27
  payload.issues = payload.issues.concat(${bt}.issues.map(iss => ({
28
28
  ...iss,
@@ -39,11 +39,11 @@ React keys must be passed directly to JSX without using spread:
39
39
  newResult[${lr}] = ${bt}.value;
40
40
  }
41
41
 
42
- `)}ge.write("payload.value = newResult;"),ge.write("return payload;");const ct=ge.compile();return(dt,bt)=>ct(ze,dt,bt)};let a;const f=fi,_=!Oo.jitless,X=_&&pl.value,ce=r.catchall;let ue;e._zod.parse=(ze,ge)=>{ue??(ue=s.value);const A=ze.value;return f(A)?_&&X&&ge?.async===!1&&ge.jitless!==!0?(a||(a=t(r.shape)),ze=a(ze,ge),ce?_f([],A,ze,ge,ue,e):ze):o(ze,ge):(ze.issues.push({expected:"object",code:"invalid_type",input:A,inst:e}),ze)}});function Sf(e,r,o,s){for(const a of e)if(a.issues.length===0)return r.value=a.value,r;const t=e.filter(a=>!An(a));return t.length===1?(r.value=t[0].value,t[0]):(r.issues.push({code:"invalid_union",input:r.value,inst:o,errors:e.map(a=>a.issues.map(f=>Ar(f,s,cr())))}),r)}const $s=D("$ZodUnion",(e,r)=>{Qe.init(e,r),ot(e._zod,"optin",()=>r.options.some(t=>t._zod.optin==="optional")?"optional":void 0),ot(e._zod,"optout",()=>r.options.some(t=>t._zod.optout==="optional")?"optional":void 0),ot(e._zod,"values",()=>{if(r.options.every(t=>t._zod.values))return new Set(r.options.flatMap(t=>Array.from(t._zod.values)))}),ot(e._zod,"pattern",()=>{if(r.options.every(t=>t._zod.pattern)){const t=r.options.map(a=>a._zod.pattern);return new RegExp(`^(${t.map(a=>Po(a.source)).join("|")})$`)}});const o=r.options.length===1,s=r.options[0]._zod.run;e._zod.parse=(t,a)=>{if(o)return s(t,a);let f=!1;const _=[];for(const q of r.options){const X=q._zod.run({value:t.value,issues:[]},a);if(X instanceof Promise)_.push(X),f=!0;else{if(X.issues.length===0)return X;_.push(X)}}return f?Promise.all(_).then(q=>Sf(q,t,e,a)):Sf(_,t,e,a)}}),If=D("$ZodDiscriminatedUnion",(e,r)=>{$s.init(e,r);const o=e._zod.parse;ot(e._zod,"propValues",()=>{const t={};for(const a of r.options){const f=a._zod.propValues;if(!f||Object.keys(f).length===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(a)}"`);for(const[_,q]of Object.entries(f)){t[_]||(t[_]=new Set);for(const X of q)t[_].add(X)}}return t});const s=Ai(()=>{const t=r.options,a=new Map;for(const f of t){const _=f._zod.propValues?.[r.discriminator];if(!_||_.size===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(f)}"`);for(const q of _){if(a.has(q))throw new Error(`Duplicate discriminator value "${String(q)}"`);a.set(q,f)}}return a});e._zod.parse=(t,a)=>{const f=t.value;if(!fi(f))return t.issues.push({code:"invalid_type",expected:"object",input:f,inst:e}),t;const _=s.value.get(f?.[r.discriminator]);return _?_._zod.run(t,a):r.unionFallback?o(t,a):(t.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:r.discriminator,input:f,path:[r.discriminator],inst:e}),t)}}),zf=D("$ZodIntersection",(e,r)=>{Qe.init(e,r),e._zod.parse=(o,s)=>{const t=o.value,a=r.left._zod.run({value:t,issues:[]},s),f=r.right._zod.run({value:t,issues:[]},s);return a instanceof Promise||f instanceof Promise?Promise.all([a,f]).then(([q,X])=>Nf(o,q,X)):Nf(o,a,f)}});function ws(e,r){if(e===r)return{valid:!0,data:e};if(e instanceof Date&&r instanceof Date&&+e==+r)return{valid:!0,data:e};if(Ln(e)&&Ln(r)){const o=Object.keys(r),s=Object.keys(e).filter(a=>o.indexOf(a)!==-1),t={...e,...r};for(const a of s){const f=ws(e[a],r[a]);if(!f.valid)return{valid:!1,mergeErrorPath:[a,...f.mergeErrorPath]};t[a]=f.data}return{valid:!0,data:t}}if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return{valid:!1,mergeErrorPath:[]};const o=[];for(let s=0;s<e.length;s++){const t=e[s],a=r[s],f=ws(t,a);if(!f.valid)return{valid:!1,mergeErrorPath:[s,...f.mergeErrorPath]};o.push(f.data)}return{valid:!0,data:o}}return{valid:!1,mergeErrorPath:[]}}function Nf(e,r,o){if(r.issues.length&&e.issues.push(...r.issues),o.issues.length&&e.issues.push(...o.issues),An(e))return e;const s=ws(r.value,o.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return e.value=s.data,e}const _s=D("$ZodTuple",(e,r)=>{Qe.init(e,r);const o=r.items,s=o.length-[...o].reverse().findIndex(t=>t._zod.optin!=="optional");e._zod.parse=(t,a)=>{const f=t.value;if(!Array.isArray(f))return t.issues.push({input:f,inst:e,expected:"tuple",code:"invalid_type"}),t;t.value=[];const _=[];if(!r.rest){const X=f.length>o.length,ce=f.length<s-1;if(X||ce)return t.issues.push({...X?{code:"too_big",maximum:o.length}:{code:"too_small",minimum:o.length},input:f,inst:e,origin:"array"}),t}let q=-1;for(const X of o){if(q++,q>=f.length&&q>=s)continue;const ce=X._zod.run({value:f[q],issues:[]},a);ce instanceof Promise?_.push(ce.then(ue=>Zo(ue,t,q))):Zo(ce,t,q)}if(r.rest){const X=f.slice(o.length);for(const ce of X){q++;const ue=r.rest._zod.run({value:ce,issues:[]},a);ue instanceof Promise?_.push(ue.then(ze=>Zo(ze,t,q))):Zo(ue,t,q)}}return _.length?Promise.all(_).then(()=>t):t}});function Zo(e,r,o){e.issues.length&&r.issues.push(...Lr(o,e.issues)),r.value[o]=e.value}const jf=D("$ZodRecord",(e,r)=>{Qe.init(e,r),e._zod.parse=(o,s)=>{const t=o.value;if(!Ln(t))return o.issues.push({expected:"record",code:"invalid_type",input:t,inst:e}),o;const a=[];if(r.keyType._zod.values){const f=r.keyType._zod.values;o.value={};for(const q of f)if(typeof q=="string"||typeof q=="number"||typeof q=="symbol"){const X=r.valueType._zod.run({value:t[q],issues:[]},s);X instanceof Promise?a.push(X.then(ce=>{ce.issues.length&&o.issues.push(...Lr(q,ce.issues)),o.value[q]=ce.value})):(X.issues.length&&o.issues.push(...Lr(q,X.issues)),o.value[q]=X.value)}let _;for(const q in t)f.has(q)||(_=_??[],_.push(q));_&&_.length>0&&o.issues.push({code:"unrecognized_keys",input:t,inst:e,keys:_})}else{o.value={};for(const f of Reflect.ownKeys(t)){if(f==="__proto__")continue;const _=r.keyType._zod.run({value:f,issues:[]},s);if(_ instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(_.issues.length){o.issues.push({code:"invalid_key",origin:"record",issues:_.issues.map(X=>Ar(X,s,cr())),input:f,path:[f],inst:e}),o.value[_.value]=_.value;continue}const q=r.valueType._zod.run({value:t[f],issues:[]},s);q instanceof Promise?a.push(q.then(X=>{X.issues.length&&o.issues.push(...Lr(f,X.issues)),o.value[_.value]=X.value})):(q.issues.length&&o.issues.push(...Lr(f,q.issues)),o.value[_.value]=q.value)}}return a.length?Promise.all(a).then(()=>o):o}}),Tf=D("$ZodMap",(e,r)=>{Qe.init(e,r),e._zod.parse=(o,s)=>{const t=o.value;if(!(t instanceof Map))return o.issues.push({expected:"map",code:"invalid_type",input:t,inst:e}),o;const a=[];o.value=new Map;for(const[f,_]of t){const q=r.keyType._zod.run({value:f,issues:[]},s),X=r.valueType._zod.run({value:_,issues:[]},s);q instanceof Promise||X instanceof Promise?a.push(Promise.all([q,X]).then(([ce,ue])=>{Of(ce,ue,o,f,t,e,s)})):Of(q,X,o,f,t,e,s)}return a.length?Promise.all(a).then(()=>o):o}});function Of(e,r,o,s,t,a,f){e.issues.length&&(Mo.has(typeof s)?o.issues.push(...Lr(s,e.issues)):o.issues.push({code:"invalid_key",origin:"map",input:t,inst:a,issues:e.issues.map(_=>Ar(_,f,cr()))})),r.issues.length&&(Mo.has(typeof s)?o.issues.push(...Lr(s,r.issues)):o.issues.push({origin:"map",code:"invalid_element",input:t,inst:a,key:s,issues:r.issues.map(_=>Ar(_,f,cr()))})),o.value.set(e.value,r.value)}const Ef=D("$ZodSet",(e,r)=>{Qe.init(e,r),e._zod.parse=(o,s)=>{const t=o.value;if(!(t instanceof Set))return o.issues.push({input:t,inst:e,expected:"set",code:"invalid_type"}),o;const a=[];o.value=new Set;for(const f of t){const _=r.valueType._zod.run({value:f,issues:[]},s);_ instanceof Promise?a.push(_.then(q=>Pf(q,o))):Pf(_,o)}return a.length?Promise.all(a).then(()=>o):o}});function Pf(e,r){e.issues.length&&r.issues.push(...e.issues),r.value.add(e.value)}const Cf=D("$ZodEnum",(e,r)=>{Qe.init(e,r);const o=Ba(r.entries),s=new Set(o);e._zod.values=s,e._zod.pattern=new RegExp(`^(${o.filter(t=>Mo.has(typeof t)).map(t=>typeof t=="string"?wn(t):t.toString()).join("|")})$`),e._zod.parse=(t,a)=>{const f=t.value;return s.has(f)||t.issues.push({code:"invalid_value",values:o,input:f,inst:e}),t}}),Uf=D("$ZodLiteral",(e,r)=>{if(Qe.init(e,r),r.values.length===0)throw new Error("Cannot create literal schema with no valid values");e._zod.values=new Set(r.values),e._zod.pattern=new RegExp(`^(${r.values.map(o=>typeof o=="string"?wn(o):o?wn(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,s)=>{const t=o.value;return e._zod.values.has(t)||o.issues.push({code:"invalid_value",values:r.values,input:t,inst:e}),o}}),Mf=D("$ZodFile",(e,r)=>{Qe.init(e,r),e._zod.parse=(o,s)=>{const t=o.value;return t instanceof File||o.issues.push({expected:"file",code:"invalid_type",input:t,inst:e}),o}}),Df=D("$ZodTransform",(e,r)=>{Qe.init(e,r),e._zod.parse=(o,s)=>{if(s.direction==="backward")throw new To(e.constructor.name);const t=r.transform(o.value,o);if(s.async)return(t instanceof Promise?t:Promise.resolve(t)).then(f=>(o.value=f,o));if(t instanceof Promise)throw new Mn;return o.value=t,o}});function Lf(e,r){return e.issues.length&&r===void 0?{issues:[],value:void 0}:e}const Af=D("$ZodOptional",(e,r)=>{Qe.init(e,r),e._zod.optin="optional",e._zod.optout="optional",ot(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),ot(e._zod,"pattern",()=>{const o=r.innerType._zod.pattern;return o?new RegExp(`^(${Po(o.source)})?$`):void 0}),e._zod.parse=(o,s)=>{if(r.innerType._zod.optin==="optional"){const t=r.innerType._zod.run(o,s);return t instanceof Promise?t.then(a=>Lf(a,o.value)):Lf(t,o.value)}return o.value===void 0?o:r.innerType._zod.run(o,s)}}),Zf=D("$ZodNullable",(e,r)=>{Qe.init(e,r),ot(e._zod,"optin",()=>r.innerType._zod.optin),ot(e._zod,"optout",()=>r.innerType._zod.optout),ot(e._zod,"pattern",()=>{const o=r.innerType._zod.pattern;return o?new RegExp(`^(${Po(o.source)}|null)$`):void 0}),ot(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),e._zod.parse=(o,s)=>o.value===null?o:r.innerType._zod.run(o,s)}),Rf=D("$ZodDefault",(e,r)=>{Qe.init(e,r),e._zod.optin="optional",ot(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(o,s)=>{if(s.direction==="backward")return r.innerType._zod.run(o,s);if(o.value===void 0)return o.value=r.defaultValue,o;const t=r.innerType._zod.run(o,s);return t instanceof Promise?t.then(a=>Ff(a,r)):Ff(t,r)}});function Ff(e,r){return e.value===void 0&&(e.value=r.defaultValue),e}const qf=D("$ZodPrefault",(e,r)=>{Qe.init(e,r),e._zod.optin="optional",ot(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(o,s)=>(s.direction==="backward"||o.value===void 0&&(o.value=r.defaultValue),r.innerType._zod.run(o,s))}),Wf=D("$ZodNonOptional",(e,r)=>{Qe.init(e,r),ot(e._zod,"values",()=>{const o=r.innerType._zod.values;return o?new Set([...o].filter(s=>s!==void 0)):void 0}),e._zod.parse=(o,s)=>{const t=r.innerType._zod.run(o,s);return t instanceof Promise?t.then(a=>Qf(a,e)):Qf(t,e)}});function Qf(e,r){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:r}),e}const Gf=D("$ZodSuccess",(e,r)=>{Qe.init(e,r),e._zod.parse=(o,s)=>{if(s.direction==="backward")throw new To("ZodSuccess");const t=r.innerType._zod.run(o,s);return t instanceof Promise?t.then(a=>(o.value=a.issues.length===0,o)):(o.value=t.issues.length===0,o)}}),Vf=D("$ZodCatch",(e,r)=>{Qe.init(e,r),ot(e._zod,"optin",()=>r.innerType._zod.optin),ot(e._zod,"optout",()=>r.innerType._zod.optout),ot(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(o,s)=>{if(s.direction==="backward")return r.innerType._zod.run(o,s);const t=r.innerType._zod.run(o,s);return t instanceof Promise?t.then(a=>(o.value=a.value,a.issues.length&&(o.value=r.catchValue({...o,error:{issues:a.issues.map(f=>Ar(f,s,cr()))},input:o.value}),o.issues=[]),o)):(o.value=t.value,t.issues.length&&(o.value=r.catchValue({...o,error:{issues:t.issues.map(a=>Ar(a,s,cr()))},input:o.value}),o.issues=[]),o)}}),Jf=D("$ZodNaN",(e,r)=>{Qe.init(e,r),e._zod.parse=(o,s)=>((typeof o.value!="number"||!Number.isNaN(o.value))&&o.issues.push({input:o.value,inst:e,expected:"nan",code:"invalid_type"}),o)}),Bf=D("$ZodPipe",(e,r)=>{Qe.init(e,r),ot(e._zod,"values",()=>r.in._zod.values),ot(e._zod,"optin",()=>r.in._zod.optin),ot(e._zod,"optout",()=>r.out._zod.optout),ot(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(o,s)=>{if(s.direction==="backward"){const a=r.out._zod.run(o,s);return a instanceof Promise?a.then(f=>Ro(f,r.in,s)):Ro(a,r.in,s)}const t=r.in._zod.run(o,s);return t instanceof Promise?t.then(a=>Ro(a,r.out,s)):Ro(t,r.out,s)}});function Ro(e,r,o){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:e.value,issues:e.issues},o)}const ks=D("$ZodCodec",(e,r)=>{Qe.init(e,r),ot(e._zod,"values",()=>r.in._zod.values),ot(e._zod,"optin",()=>r.in._zod.optin),ot(e._zod,"optout",()=>r.out._zod.optout),ot(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(o,s)=>{if((s.direction||"forward")==="forward"){const a=r.in._zod.run(o,s);return a instanceof Promise?a.then(f=>Fo(f,r,s)):Fo(a,r,s)}else{const a=r.out._zod.run(o,s);return a instanceof Promise?a.then(f=>Fo(f,r,s)):Fo(a,r,s)}}});function Fo(e,r,o){if(e.issues.length)return e.aborted=!0,e;if((o.direction||"forward")==="forward"){const t=r.transform(e.value,e);return t instanceof Promise?t.then(a=>qo(e,a,r.out,o)):qo(e,t,r.out,o)}else{const t=r.reverseTransform(e.value,e);return t instanceof Promise?t.then(a=>qo(e,a,r.in,o)):qo(e,t,r.in,o)}}function qo(e,r,o,s){return e.issues.length?(e.aborted=!0,e):o._zod.run({value:r,issues:e.issues},s)}const Yf=D("$ZodReadonly",(e,r)=>{Qe.init(e,r),ot(e._zod,"propValues",()=>r.innerType._zod.propValues),ot(e._zod,"values",()=>r.innerType._zod.values),ot(e._zod,"optin",()=>r.innerType._zod.optin),ot(e._zod,"optout",()=>r.innerType._zod.optout),e._zod.parse=(o,s)=>{if(s.direction==="backward")return r.innerType._zod.run(o,s);const t=r.innerType._zod.run(o,s);return t instanceof Promise?t.then(Kf):Kf(t)}});function Kf(e){return e.value=Object.freeze(e.value),e}const Hf=D("$ZodTemplateLiteral",(e,r)=>{Qe.init(e,r);const o=[];for(const s of r.parts)if(typeof s=="object"&&s!==null){if(!s._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...s._zod.traits].shift()}`);const t=s._zod.pattern instanceof RegExp?s._zod.pattern.source:s._zod.pattern;if(!t)throw new Error(`Invalid template literal part: ${s._zod.traits}`);const a=t.startsWith("^")?1:0,f=t.endsWith("$")?t.length-1:t.length;o.push(t.slice(a,f))}else if(s===null||gl.has(typeof s))o.push(wn(`${s}`));else throw new Error(`Invalid template literal part: ${s}`);e._zod.pattern=new RegExp(`^${o.join("")}$`),e._zod.parse=(s,t)=>typeof s.value!="string"?(s.issues.push({input:s.value,inst:e,expected:"template_literal",code:"invalid_type"}),s):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(s.value)||s.issues.push({input:s.value,inst:e,code:"invalid_format",format:r.format??"template_literal",pattern:e._zod.pattern.source}),s)}),Xf=D("$ZodFunction",(e,r)=>(Qe.init(e,r),e._def=r,e._zod.def=r,e.implement=o=>{if(typeof o!="function")throw new Error("implement() must be called with a function");return function(...s){const t=e._def.input?ts(e._def.input,s):s,a=Reflect.apply(o,this,t);return e._def.output?ts(e._def.output,a):a}},e.implementAsync=o=>{if(typeof o!="function")throw new Error("implementAsync() must be called with a function");return async function(...s){const t=e._def.input?await rs(e._def.input,s):s,a=await Reflect.apply(o,this,t);return e._def.output?await rs(e._def.output,a):a}},e._zod.parse=(o,s)=>typeof o.value!="function"?(o.issues.push({code:"invalid_type",expected:"function",input:o.value,inst:e}),o):(e._def.output&&e._def.output._zod.def.type==="promise"?o.value=e.implementAsync(o.value):o.value=e.implement(o.value),o),e.input=(...o)=>{const s=e.constructor;return Array.isArray(o[0])?new s({type:"function",input:new _s({type:"tuple",items:o[0],rest:o[1]}),output:e._def.output}):new s({type:"function",input:o[0],output:e._def.output})},e.output=o=>{const s=e.constructor;return new s({type:"function",input:e._def.input,output:o})},e)),em=D("$ZodPromise",(e,r)=>{Qe.init(e,r),e._zod.parse=(o,s)=>Promise.resolve(o.value).then(t=>r.innerType._zod.run({value:t,issues:[]},s))}),tm=D("$ZodLazy",(e,r)=>{Qe.init(e,r),ot(e._zod,"innerType",()=>r.getter()),ot(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),ot(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),ot(e._zod,"optin",()=>e._zod.innerType._zod.optin??void 0),ot(e._zod,"optout",()=>e._zod.innerType._zod.optout??void 0),e._zod.parse=(o,s)=>e._zod.innerType._zod.run(o,s)}),rm=D("$ZodCustom",(e,r)=>{Mt.init(e,r),Qe.init(e,r),e._zod.parse=(o,s)=>o,e._zod.check=o=>{const s=o.value,t=r.fn(s);if(t instanceof Promise)return t.then(a=>nm(a,o,s,e));nm(t,o,s,e)}});function nm(e,r,o,s){if(!e){const t={code:"custom",input:o,inst:s,path:[...s._zod.def.path??[]],continue:!s._zod.def.abort};s._zod.def.params&&(t.params=s._zod.def.params),r.issues.push(mi(t))}}const Ny=()=>{const e={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"};return t=>{switch(t.code){case"invalid_type":return`مدخلات غير مقبولة: يفترض إدخال ${t.expected}، ولكن تم إدخال ${o(t.input)}`;case"invalid_value":return t.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${Fe(t.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?` أكبر من اللازم: يفترض أن تكون ${t.origin??"القيمة"} ${a} ${t.maximum.toString()} ${f.unit??"عنصر"}`:`أكبر من اللازم: يفترض أن تكون ${t.origin??"القيمة"} ${a} ${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`أصغر من اللازم: يفترض لـ ${t.origin} أن يكون ${a} ${t.minimum.toString()} ${f.unit}`:`أصغر من اللازم: يفترض لـ ${t.origin} أن يكون ${a} ${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`نَص غير مقبول: يجب أن يبدأ بـ "${t.prefix}"`:a.format==="ends_with"?`نَص غير مقبول: يجب أن ينتهي بـ "${a.suffix}"`:a.format==="includes"?`نَص غير مقبول: يجب أن يتضمَّن "${a.includes}"`:a.format==="regex"?`نَص غير مقبول: يجب أن يطابق النمط ${a.pattern}`:`${s[a.format]??t.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${t.divisor}`;case"unrecognized_keys":return`معرف${t.keys.length>1?"ات":""} غريب${t.keys.length>1?"ة":""}: ${he(t.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${t.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${t.origin}`;default:return"مدخل غير مقبول"}}};function jy(){return{localeError:Ny()}}const Ty=()=>{const e={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return t=>{switch(t.code){case"invalid_type":return`Yanlış dəyər: gözlənilən ${t.expected}, daxil olan ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Yanlış dəyər: gözlənilən ${Fe(t.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Çox böyük: gözlənilən ${t.origin??"dəyər"} ${a}${t.maximum.toString()} ${f.unit??"element"}`:`Çox böyük: gözlənilən ${t.origin??"dəyər"} ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Çox kiçik: gözlənilən ${t.origin} ${a}${t.minimum.toString()} ${f.unit}`:`Çox kiçik: gözlənilən ${t.origin} ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Yanlış mətn: "${a.prefix}" ilə başlamalıdır`:a.format==="ends_with"?`Yanlış mətn: "${a.suffix}" ilə bitməlidir`:a.format==="includes"?`Yanlış mətn: "${a.includes}" daxil olmalıdır`:a.format==="regex"?`Yanlış mətn: ${a.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${s[a.format]??t.format}`}case"not_multiple_of":return`Yanlış ədəd: ${t.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${t.keys.length>1?"lar":""}: ${he(t.keys,", ")}`;case"invalid_key":return`${t.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${t.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};function Oy(){return{localeError:Ty()}}function im(e,r,o,s){const t=Math.abs(e),a=t%10,f=t%100;return f>=11&&f<=19?s:a===1?r:a>=2&&a<=4?o:s}const Ey=()=>{const e={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"лік";case"object":{if(Array.isArray(t))return"масіў";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",jwt:"JWT",template_literal:"увод"};return t=>{switch(t.code){case"invalid_type":return`Няправільны ўвод: чакаўся ${t.expected}, атрымана ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Няправільны ўвод: чакалася ${Fe(t.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);if(f){const _=Number(t.maximum),q=im(_,f.unit.one,f.unit.few,f.unit.many);return`Занадта вялікі: чакалася, што ${t.origin??"значэнне"} павінна ${f.verb} ${a}${t.maximum.toString()} ${q}`}return`Занадта вялікі: чакалася, што ${t.origin??"значэнне"} павінна быць ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);if(f){const _=Number(t.minimum),q=im(_,f.unit.one,f.unit.few,f.unit.many);return`Занадта малы: чакалася, што ${t.origin} павінна ${f.verb} ${a}${t.minimum.toString()} ${q}`}return`Занадта малы: чакалася, што ${t.origin} павінна быць ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Няправільны радок: павінен пачынацца з "${a.prefix}"`:a.format==="ends_with"?`Няправільны радок: павінен заканчвацца на "${a.suffix}"`:a.format==="includes"?`Няправільны радок: павінен змяшчаць "${a.includes}"`:a.format==="regex"?`Няправільны радок: павінен адпавядаць шаблону ${a.pattern}`:`Няправільны ${s[a.format]??t.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${t.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${t.keys.length>1?"ключы":"ключ"}: ${he(t.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${t.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${t.origin}`;default:return"Няправільны ўвод"}}};function Py(){return{localeError:Ey()}}const Cy=()=>{const e={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"entrada",email:"adreça electrònica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adreça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return t=>{switch(t.code){case"invalid_type":return`Tipus invàlid: s'esperava ${t.expected}, s'ha rebut ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Valor invàlid: s'esperava ${Fe(t.values[0])}`:`Opció invàlida: s'esperava una de ${he(t.values," o ")}`;case"too_big":{const a=t.inclusive?"com a màxim":"menys de",f=r(t.origin);return f?`Massa gran: s'esperava que ${t.origin??"el valor"} contingués ${a} ${t.maximum.toString()} ${f.unit??"elements"}`:`Massa gran: s'esperava que ${t.origin??"el valor"} fos ${a} ${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?"com a mínim":"més de",f=r(t.origin);return f?`Massa petit: s'esperava que ${t.origin} contingués ${a} ${t.minimum.toString()} ${f.unit}`:`Massa petit: s'esperava que ${t.origin} fos ${a} ${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Format invàlid: ha de començar amb "${a.prefix}"`:a.format==="ends_with"?`Format invàlid: ha d'acabar amb "${a.suffix}"`:a.format==="includes"?`Format invàlid: ha d'incloure "${a.includes}"`:a.format==="regex"?`Format invàlid: ha de coincidir amb el patró ${a.pattern}`:`Format invàlid per a ${s[a.format]??t.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${t.divisor}`;case"unrecognized_keys":return`Clau${t.keys.length>1?"s":""} no reconeguda${t.keys.length>1?"s":""}: ${he(t.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${t.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${t.origin}`;default:return"Entrada invàlida"}}};function Uy(){return{localeError:Cy()}}const My=()=>{const e={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"číslo";case"string":return"řetězec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":{if(Array.isArray(t))return"pole";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"regulární výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",jwt:"JWT",template_literal:"vstup"};return t=>{switch(t.code){case"invalid_type":return`Neplatný vstup: očekáváno ${t.expected}, obdrženo ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Neplatný vstup: očekáváno ${Fe(t.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Hodnota je příliš velká: ${t.origin??"hodnota"} musí mít ${a}${t.maximum.toString()} ${f.unit??"prvků"}`:`Hodnota je příliš velká: ${t.origin??"hodnota"} musí být ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Hodnota je příliš malá: ${t.origin??"hodnota"} musí mít ${a}${t.minimum.toString()} ${f.unit??"prvků"}`:`Hodnota je příliš malá: ${t.origin??"hodnota"} musí být ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Neplatný řetězec: musí začínat na "${a.prefix}"`:a.format==="ends_with"?`Neplatný řetězec: musí končit na "${a.suffix}"`:a.format==="includes"?`Neplatný řetězec: musí obsahovat "${a.includes}"`:a.format==="regex"?`Neplatný řetězec: musí odpovídat vzoru ${a.pattern}`:`Neplatný formát ${s[a.format]??t.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${t.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${he(t.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${t.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${t.origin}`;default:return"Neplatný vstup"}}};function Dy(){return{localeError:My()}}const Ly=()=>{const e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}},r={string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};function o(f){return e[f]??null}function s(f){return r[f]??f}const t=f=>{const _=typeof f;switch(_){case"number":return Number.isNaN(f)?"NaN":"tal";case"object":return Array.isArray(f)?"liste":f===null?"null":Object.getPrototypeOf(f)!==Object.prototype&&f.constructor?f.constructor.name:"objekt"}return _},a={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslæt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return f=>{switch(f.code){case"invalid_type":return`Ugyldigt input: forventede ${s(f.expected)}, fik ${s(t(f.input))}`;case"invalid_value":return f.values.length===1?`Ugyldig værdi: forventede ${Fe(f.values[0])}`:`Ugyldigt valg: forventede en af følgende ${he(f.values,"|")}`;case"too_big":{const _=f.inclusive?"<=":"<",q=o(f.origin),X=s(f.origin);return q?`For stor: forventede ${X??"value"} ${q.verb} ${_} ${f.maximum.toString()} ${q.unit??"elementer"}`:`For stor: forventede ${X??"value"} havde ${_} ${f.maximum.toString()}`}case"too_small":{const _=f.inclusive?">=":">",q=o(f.origin),X=s(f.origin);return q?`For lille: forventede ${X} ${q.verb} ${_} ${f.minimum.toString()} ${q.unit}`:`For lille: forventede ${X} havde ${_} ${f.minimum.toString()}`}case"invalid_format":{const _=f;return _.format==="starts_with"?`Ugyldig streng: skal starte med "${_.prefix}"`:_.format==="ends_with"?`Ugyldig streng: skal ende med "${_.suffix}"`:_.format==="includes"?`Ugyldig streng: skal indeholde "${_.includes}"`:_.format==="regex"?`Ugyldig streng: skal matche mønsteret ${_.pattern}`:`Ugyldig ${a[_.format]??f.format}`}case"not_multiple_of":return`Ugyldigt tal: skal være deleligt med ${f.divisor}`;case"unrecognized_keys":return`${f.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${he(f.keys,", ")}`;case"invalid_key":return`Ugyldig nøgle i ${f.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig værdi i ${f.origin}`;default:return"Ugyldigt input"}}};function Ay(){return{localeError:Ly()}}const Zy=()=>{const e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"Zahl";case"object":{if(Array.isArray(t))return"Array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"};return t=>{switch(t.code){case"invalid_type":return`Ungültige Eingabe: erwartet ${t.expected}, erhalten ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Ungültige Eingabe: erwartet ${Fe(t.values[0])}`:`Ungültige Option: erwartet eine von ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Zu groß: erwartet, dass ${t.origin??"Wert"} ${a}${t.maximum.toString()} ${f.unit??"Elemente"} hat`:`Zu groß: erwartet, dass ${t.origin??"Wert"} ${a}${t.maximum.toString()} ist`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Zu klein: erwartet, dass ${t.origin} ${a}${t.minimum.toString()} ${f.unit} hat`:`Zu klein: erwartet, dass ${t.origin} ${a}${t.minimum.toString()} ist`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Ungültiger String: muss mit "${a.prefix}" beginnen`:a.format==="ends_with"?`Ungültiger String: muss mit "${a.suffix}" enden`:a.format==="includes"?`Ungültiger String: muss "${a.includes}" enthalten`:a.format==="regex"?`Ungültiger String: muss dem Muster ${a.pattern} entsprechen`:`Ungültig: ${s[a.format]??t.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${t.divisor} sein`;case"unrecognized_keys":return`${t.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${he(t.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${t.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${t.origin}`;default:return"Ungültige Eingabe"}}};function Ry(){return{localeError:Zy()}}const Fy=e=>{const r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return r},qy=()=>{const e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"}};function r(s){return e[s]??null}const o={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return s=>{switch(s.code){case"invalid_type":return`Invalid input: expected ${s.expected}, received ${Fy(s.input)}`;case"invalid_value":return s.values.length===1?`Invalid input: expected ${Fe(s.values[0])}`:`Invalid option: expected one of ${he(s.values,"|")}`;case"too_big":{const t=s.inclusive?"<=":"<",a=r(s.origin);return a?`Too big: expected ${s.origin??"value"} to have ${t}${s.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${s.origin??"value"} to be ${t}${s.maximum.toString()}`}case"too_small":{const t=s.inclusive?">=":">",a=r(s.origin);return a?`Too small: expected ${s.origin} to have ${t}${s.minimum.toString()} ${a.unit}`:`Too small: expected ${s.origin} to be ${t}${s.minimum.toString()}`}case"invalid_format":{const t=s;return t.format==="starts_with"?`Invalid string: must start with "${t.prefix}"`:t.format==="ends_with"?`Invalid string: must end with "${t.suffix}"`:t.format==="includes"?`Invalid string: must include "${t.includes}"`:t.format==="regex"?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${o[t.format]??s.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${s.divisor}`;case"unrecognized_keys":return`Unrecognized key${s.keys.length>1?"s":""}: ${he(s.keys,", ")}`;case"invalid_key":return`Invalid key in ${s.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${s.origin}`;default:return"Invalid input"}}};function om(){return{localeError:qy()}}const Wy=e=>{const r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"nombro";case"object":{if(Array.isArray(e))return"tabelo";if(e===null)return"senvalora";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return r},Qy=()=>{const e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function r(s){return e[s]??null}const o={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"};return s=>{switch(s.code){case"invalid_type":return`Nevalida enigo: atendiĝis ${s.expected}, riceviĝis ${Wy(s.input)}`;case"invalid_value":return s.values.length===1?`Nevalida enigo: atendiĝis ${Fe(s.values[0])}`:`Nevalida opcio: atendiĝis unu el ${he(s.values,"|")}`;case"too_big":{const t=s.inclusive?"<=":"<",a=r(s.origin);return a?`Tro granda: atendiĝis ke ${s.origin??"valoro"} havu ${t}${s.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendiĝis ke ${s.origin??"valoro"} havu ${t}${s.maximum.toString()}`}case"too_small":{const t=s.inclusive?">=":">",a=r(s.origin);return a?`Tro malgranda: atendiĝis ke ${s.origin} havu ${t}${s.minimum.toString()} ${a.unit}`:`Tro malgranda: atendiĝis ke ${s.origin} estu ${t}${s.minimum.toString()}`}case"invalid_format":{const t=s;return t.format==="starts_with"?`Nevalida karaktraro: devas komenciĝi per "${t.prefix}"`:t.format==="ends_with"?`Nevalida karaktraro: devas finiĝi per "${t.suffix}"`:t.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${t.includes}"`:t.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${t.pattern}`:`Nevalida ${o[t.format]??s.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${s.divisor}`;case"unrecognized_keys":return`Nekonata${s.keys.length>1?"j":""} ŝlosilo${s.keys.length>1?"j":""}: ${he(s.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${s.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${s.origin}`;default:return"Nevalida enigo"}}};function Gy(){return{localeError:Qy()}}const Vy=()=>{const e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}},r={string:"texto",number:"número",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"número grande",symbol:"símbolo",undefined:"indefinido",null:"nulo",function:"función",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeración",union:"unión",literal:"literal",promise:"promesa",void:"vacío",never:"nunca",unknown:"desconocido",any:"cualquiera"};function o(f){return e[f]??null}function s(f){return r[f]??f}const t=f=>{const _=typeof f;switch(_){case"number":return Number.isNaN(f)?"NaN":"number";case"object":return Array.isArray(f)?"array":f===null?"null":Object.getPrototypeOf(f)!==Object.prototype?f.constructor.name:"object"}return _},a={regex:"entrada",email:"dirección de correo electrónico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duración ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return f=>{switch(f.code){case"invalid_type":return`Entrada inválida: se esperaba ${s(f.expected)}, recibido ${s(t(f.input))}`;case"invalid_value":return f.values.length===1?`Entrada inválida: se esperaba ${Fe(f.values[0])}`:`Opción inválida: se esperaba una de ${he(f.values,"|")}`;case"too_big":{const _=f.inclusive?"<=":"<",q=o(f.origin),X=s(f.origin);return q?`Demasiado grande: se esperaba que ${X??"valor"} tuviera ${_}${f.maximum.toString()} ${q.unit??"elementos"}`:`Demasiado grande: se esperaba que ${X??"valor"} fuera ${_}${f.maximum.toString()}`}case"too_small":{const _=f.inclusive?">=":">",q=o(f.origin),X=s(f.origin);return q?`Demasiado pequeño: se esperaba que ${X} tuviera ${_}${f.minimum.toString()} ${q.unit}`:`Demasiado pequeño: se esperaba que ${X} fuera ${_}${f.minimum.toString()}`}case"invalid_format":{const _=f;return _.format==="starts_with"?`Cadena inválida: debe comenzar con "${_.prefix}"`:_.format==="ends_with"?`Cadena inválida: debe terminar en "${_.suffix}"`:_.format==="includes"?`Cadena inválida: debe incluir "${_.includes}"`:_.format==="regex"?`Cadena inválida: debe coincidir con el patrón ${_.pattern}`:`Inválido ${a[_.format]??f.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${f.divisor}`;case"unrecognized_keys":return`Llave${f.keys.length>1?"s":""} desconocida${f.keys.length>1?"s":""}: ${he(f.keys,", ")}`;case"invalid_key":return`Llave inválida en ${s(f.origin)}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${s(f.origin)}`;default:return"Entrada inválida"}}};function Jy(){return{localeError:Vy()}}const By=()=>{const e={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"عدد";case"object":{if(Array.isArray(t))return"آرایه";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",jwt:"JWT",template_literal:"ورودی"};return t=>{switch(t.code){case"invalid_type":return`ورودی نامعتبر: می‌بایست ${t.expected} می‌بود، ${o(t.input)} دریافت شد`;case"invalid_value":return t.values.length===1?`ورودی نامعتبر: می‌بایست ${Fe(t.values[0])} می‌بود`:`گزینه نامعتبر: می‌بایست یکی از ${he(t.values,"|")} می‌بود`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`خیلی بزرگ: ${t.origin??"مقدار"} باید ${a}${t.maximum.toString()} ${f.unit??"عنصر"} باشد`:`خیلی بزرگ: ${t.origin??"مقدار"} باید ${a}${t.maximum.toString()} باشد`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`خیلی کوچک: ${t.origin} باید ${a}${t.minimum.toString()} ${f.unit} باشد`:`خیلی کوچک: ${t.origin} باید ${a}${t.minimum.toString()} باشد`}case"invalid_format":{const a=t;return a.format==="starts_with"?`رشته نامعتبر: باید با "${a.prefix}" شروع شود`:a.format==="ends_with"?`رشته نامعتبر: باید با "${a.suffix}" تمام شود`:a.format==="includes"?`رشته نامعتبر: باید شامل "${a.includes}" باشد`:a.format==="regex"?`رشته نامعتبر: باید با الگوی ${a.pattern} مطابقت داشته باشد`:`${s[a.format]??t.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${t.divisor} باشد`;case"unrecognized_keys":return`کلید${t.keys.length>1?"های":""} ناشناس: ${he(t.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${t.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${t.origin}`;default:return"ورودی نامعتبر"}}};function Yy(){return{localeError:By()}}const Ky=()=>{const e={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"säännöllinen lauseke",email:"sähköpostiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-päivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"};return t=>{switch(t.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${t.expected}, oli ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Virheellinen syöte: täytyy olla ${Fe(t.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Liian suuri: ${f.subject} täytyy olla ${a}${t.maximum.toString()} ${f.unit}`.trim():`Liian suuri: arvon täytyy olla ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Liian pieni: ${f.subject} täytyy olla ${a}${t.minimum.toString()} ${f.unit}`.trim():`Liian pieni: arvon täytyy olla ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Virheellinen syöte: täytyy alkaa "${a.prefix}"`:a.format==="ends_with"?`Virheellinen syöte: täytyy loppua "${a.suffix}"`:a.format==="includes"?`Virheellinen syöte: täytyy sisältää "${a.includes}"`:a.format==="regex"?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${a.pattern}`:`Virheellinen ${s[a.format]??t.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${t.divisor} monikerta`;case"unrecognized_keys":return`${t.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${he(t.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen syöte"}}};function Hy(){return{localeError:Ky()}}const Xy=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"nombre";case"object":{if(Array.isArray(t))return"tableau";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"entrée",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"};return t=>{switch(t.code){case"invalid_type":return`Entrée invalide : ${t.expected} attendu, ${o(t.input)} reçu`;case"invalid_value":return t.values.length===1?`Entrée invalide : ${Fe(t.values[0])} attendu`:`Option invalide : une valeur parmi ${he(t.values,"|")} attendue`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Trop grand : ${t.origin??"valeur"} doit ${f.verb} ${a}${t.maximum.toString()} ${f.unit??"élément(s)"}`:`Trop grand : ${t.origin??"valeur"} doit être ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Trop petit : ${t.origin} doit ${f.verb} ${a}${t.minimum.toString()} ${f.unit}`:`Trop petit : ${t.origin} doit être ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Chaîne invalide : doit commencer par "${a.prefix}"`:a.format==="ends_with"?`Chaîne invalide : doit se terminer par "${a.suffix}"`:a.format==="includes"?`Chaîne invalide : doit inclure "${a.includes}"`:a.format==="regex"?`Chaîne invalide : doit correspondre au modèle ${a.pattern}`:`${s[a.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${t.divisor}`;case"unrecognized_keys":return`Clé${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${he(t.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${t.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entrée invalide"}}};function e$(){return{localeError:Xy()}}const t$=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"entrée",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"};return t=>{switch(t.code){case"invalid_type":return`Entrée invalide : attendu ${t.expected}, reçu ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Entrée invalide : attendu ${Fe(t.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"≤":"<",f=r(t.origin);return f?`Trop grand : attendu que ${t.origin??"la valeur"} ait ${a}${t.maximum.toString()} ${f.unit}`:`Trop grand : attendu que ${t.origin??"la valeur"} soit ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?"≥":">",f=r(t.origin);return f?`Trop petit : attendu que ${t.origin} ait ${a}${t.minimum.toString()} ${f.unit}`:`Trop petit : attendu que ${t.origin} soit ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Chaîne invalide : doit commencer par "${a.prefix}"`:a.format==="ends_with"?`Chaîne invalide : doit se terminer par "${a.suffix}"`:a.format==="includes"?`Chaîne invalide : doit inclure "${a.includes}"`:a.format==="regex"?`Chaîne invalide : doit correspondre au motif ${a.pattern}`:`${s[a.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${t.divisor}`;case"unrecognized_keys":return`Clé${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${he(t.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${t.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entrée invalide"}}};function r$(){return{localeError:t$()}}const n$=()=>{const e={string:{unit:"אותיות",verb:"לכלול"},file:{unit:"בייטים",verb:"לכלול"},array:{unit:"פריטים",verb:"לכלול"},set:{unit:"פריטים",verb:"לכלול"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"קלט",email:"כתובת אימייל",url:"כתובת רשת",emoji:"אימוג'י",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"תאריך וזמן ISO",date:"תאריך ISO",time:"זמן ISO",duration:"משך זמן ISO",ipv4:"כתובת IPv4",ipv6:"כתובת IPv6",cidrv4:"טווח IPv4",cidrv6:"טווח IPv6",base64:"מחרוזת בבסיס 64",base64url:"מחרוזת בבסיס 64 לכתובות רשת",json_string:"מחרוזת JSON",e164:"מספר E.164",jwt:"JWT",template_literal:"קלט"};return t=>{switch(t.code){case"invalid_type":return`קלט לא תקין: צריך ${t.expected}, התקבל ${o(t.input)}`;case"invalid_value":return t.values.length===1?`קלט לא תקין: צריך ${Fe(t.values[0])}`:`קלט לא תקין: צריך אחת מהאפשרויות ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`גדול מדי: ${t.origin??"value"} צריך להיות ${a}${t.maximum.toString()} ${f.unit??"elements"}`:`גדול מדי: ${t.origin??"value"} צריך להיות ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`קטן מדי: ${t.origin} צריך להיות ${a}${t.minimum.toString()} ${f.unit}`:`קטן מדי: ${t.origin} צריך להיות ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`מחרוזת לא תקינה: חייבת להתחיל ב"${a.prefix}"`:a.format==="ends_with"?`מחרוזת לא תקינה: חייבת להסתיים ב "${a.suffix}"`:a.format==="includes"?`מחרוזת לא תקינה: חייבת לכלול "${a.includes}"`:a.format==="regex"?`מחרוזת לא תקינה: חייבת להתאים לתבנית ${a.pattern}`:`${s[a.format]??t.format} לא תקין`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${t.divisor}`;case"unrecognized_keys":return`מפתח${t.keys.length>1?"ות":""} לא מזוה${t.keys.length>1?"ים":"ה"}: ${he(t.keys,", ")}`;case"invalid_key":return`מפתח לא תקין ב${t.origin}`;case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${t.origin}`;default:return"קלט לא תקין"}}};function i$(){return{localeError:n$()}}const o$=()=>{const e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"szám";case"object":{if(Array.isArray(t))return"tömb";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"bemenet",email:"email cím",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO időbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"};return t=>{switch(t.code){case"invalid_type":return`Érvénytelen bemenet: a várt érték ${t.expected}, a kapott érték ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Érvénytelen bemenet: a várt érték ${Fe(t.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Túl nagy: ${t.origin??"érték"} mérete túl nagy ${a}${t.maximum.toString()} ${f.unit??"elem"}`:`Túl nagy: a bemeneti érték ${t.origin??"érték"} túl nagy: ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Túl kicsi: a bemeneti érték ${t.origin} mérete túl kicsi ${a}${t.minimum.toString()} ${f.unit}`:`Túl kicsi: a bemeneti érték ${t.origin} túl kicsi ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Érvénytelen string: "${a.prefix}" értékkel kell kezdődnie`:a.format==="ends_with"?`Érvénytelen string: "${a.suffix}" értékkel kell végződnie`:a.format==="includes"?`Érvénytelen string: "${a.includes}" értéket kell tartalmaznia`:a.format==="regex"?`Érvénytelen string: ${a.pattern} mintának kell megfelelnie`:`Érvénytelen ${s[a.format]??t.format}`}case"not_multiple_of":return`Érvénytelen szám: ${t.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${t.keys.length>1?"s":""}: ${he(t.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${t.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${t.origin}`;default:return"Érvénytelen bemenet"}}};function a$(){return{localeError:o$()}}const s$=()=>{const e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"};return t=>{switch(t.code){case"invalid_type":return`Input tidak valid: diharapkan ${t.expected}, diterima ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Input tidak valid: diharapkan ${Fe(t.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Terlalu besar: diharapkan ${t.origin??"value"} memiliki ${a}${t.maximum.toString()} ${f.unit??"elemen"}`:`Terlalu besar: diharapkan ${t.origin??"value"} menjadi ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Terlalu kecil: diharapkan ${t.origin} memiliki ${a}${t.minimum.toString()} ${f.unit}`:`Terlalu kecil: diharapkan ${t.origin} menjadi ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`String tidak valid: harus dimulai dengan "${a.prefix}"`:a.format==="ends_with"?`String tidak valid: harus berakhir dengan "${a.suffix}"`:a.format==="includes"?`String tidak valid: harus menyertakan "${a.includes}"`:a.format==="regex"?`String tidak valid: harus sesuai pola ${a.pattern}`:`${s[a.format]??t.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${t.keys.length>1?"s":""}: ${he(t.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${t.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${t.origin}`;default:return"Input tidak valid"}}};function u$(){return{localeError:s$()}}const c$=e=>{const r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"númer";case"object":{if(Array.isArray(e))return"fylki";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return r},l$=()=>{const e={string:{unit:"stafi",verb:"að hafa"},file:{unit:"bæti",verb:"að hafa"},array:{unit:"hluti",verb:"að hafa"},set:{unit:"hluti",verb:"að hafa"}};function r(s){return e[s]??null}const o={regex:"gildi",email:"netfang",url:"vefslóð",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og tími",date:"ISO dagsetning",time:"ISO tími",duration:"ISO tímalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 tölugildi",jwt:"JWT",template_literal:"gildi"};return s=>{switch(s.code){case"invalid_type":return`Rangt gildi: Þú slóst inn ${c$(s.input)} þar sem á að vera ${s.expected}`;case"invalid_value":return s.values.length===1?`Rangt gildi: gert ráð fyrir ${Fe(s.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${he(s.values,"|")}`;case"too_big":{const t=s.inclusive?"<=":"<",a=r(s.origin);return a?`Of stórt: gert er ráð fyrir að ${s.origin??"gildi"} hafi ${t}${s.maximum.toString()} ${a.unit??"hluti"}`:`Of stórt: gert er ráð fyrir að ${s.origin??"gildi"} sé ${t}${s.maximum.toString()}`}case"too_small":{const t=s.inclusive?">=":">",a=r(s.origin);return a?`Of lítið: gert er ráð fyrir að ${s.origin} hafi ${t}${s.minimum.toString()} ${a.unit}`:`Of lítið: gert er ráð fyrir að ${s.origin} sé ${t}${s.minimum.toString()}`}case"invalid_format":{const t=s;return t.format==="starts_with"?`Ógildur strengur: verður að byrja á "${t.prefix}"`:t.format==="ends_with"?`Ógildur strengur: verður að enda á "${t.suffix}"`:t.format==="includes"?`Ógildur strengur: verður að innihalda "${t.includes}"`:t.format==="regex"?`Ógildur strengur: verður að fylgja mynstri ${t.pattern}`:`Rangt ${o[t.format]??s.format}`}case"not_multiple_of":return`Röng tala: verður að vera margfeldi af ${s.divisor}`;case"unrecognized_keys":return`Óþekkt ${s.keys.length>1?"ir lyklar":"ur lykill"}: ${he(s.keys,", ")}`;case"invalid_key":return`Rangur lykill í ${s.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi í ${s.origin}`;default:return"Rangt gildi"}}};function d$(){return{localeError:l$()}}const f$=()=>{const e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"numero";case"object":{if(Array.isArray(t))return"vettore";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"};return t=>{switch(t.code){case"invalid_type":return`Input non valido: atteso ${t.expected}, ricevuto ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Input non valido: atteso ${Fe(t.values[0])}`:`Opzione non valida: atteso uno tra ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Troppo grande: ${t.origin??"valore"} deve avere ${a}${t.maximum.toString()} ${f.unit??"elementi"}`:`Troppo grande: ${t.origin??"valore"} deve essere ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Troppo piccolo: ${t.origin} deve avere ${a}${t.minimum.toString()} ${f.unit}`:`Troppo piccolo: ${t.origin} deve essere ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Stringa non valida: deve iniziare con "${a.prefix}"`:a.format==="ends_with"?`Stringa non valida: deve terminare con "${a.suffix}"`:a.format==="includes"?`Stringa non valida: deve includere "${a.includes}"`:a.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${a.pattern}`:`Invalid ${s[a.format]??t.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${t.divisor}`;case"unrecognized_keys":return`Chiav${t.keys.length>1?"i":"e"} non riconosciut${t.keys.length>1?"e":"a"}: ${he(t.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${t.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${t.origin}`;default:return"Input non valido"}}};function m$(){return{localeError:f$()}}const p$=()=>{const e={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"数値";case"object":{if(Array.isArray(t))return"配列";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",jwt:"JWT",template_literal:"入力値"};return t=>{switch(t.code){case"invalid_type":return`無効な入力: ${t.expected}が期待されましたが、${o(t.input)}が入力されました`;case"invalid_value":return t.values.length===1?`無効な入力: ${Fe(t.values[0])}が期待されました`:`無効な選択: ${he(t.values,"、")}のいずれかである必要があります`;case"too_big":{const a=t.inclusive?"以下である":"より小さい",f=r(t.origin);return f?`大きすぎる値: ${t.origin??"値"}は${t.maximum.toString()}${f.unit??"要素"}${a}必要があります`:`大きすぎる値: ${t.origin??"値"}は${t.maximum.toString()}${a}必要があります`}case"too_small":{const a=t.inclusive?"以上である":"より大きい",f=r(t.origin);return f?`小さすぎる値: ${t.origin}は${t.minimum.toString()}${f.unit}${a}必要があります`:`小さすぎる値: ${t.origin}は${t.minimum.toString()}${a}必要があります`}case"invalid_format":{const a=t;return a.format==="starts_with"?`無効な文字列: "${a.prefix}"で始まる必要があります`:a.format==="ends_with"?`無効な文字列: "${a.suffix}"で終わる必要があります`:a.format==="includes"?`無効な文字列: "${a.includes}"を含む必要があります`:a.format==="regex"?`無効な文字列: パターン${a.pattern}に一致する必要があります`:`無効な${s[a.format]??t.format}`}case"not_multiple_of":return`無効な数値: ${t.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${t.keys.length>1?"群":""}: ${he(t.keys,"、")}`;case"invalid_key":return`${t.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${t.origin}内の無効な値`;default:return"無効な入力"}}};function g$(){return{localeError:p$()}}const h$=e=>{const r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"რიცხვი";case"object":{if(Array.isArray(e))return"მასივი";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return{string:"სტრინგი",boolean:"ბულეანი",undefined:"undefined",bigint:"bigint",symbol:"symbol",function:"ფუნქცია"}[r]??r},v$=()=>{const e={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function r(s){return e[s]??null}const o={regex:"შეყვანა",email:"ელ-ფოსტის მისამართი",url:"URL",emoji:"ემოჯი",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"თარიღი-დრო",date:"თარიღი",time:"დრო",duration:"ხანგრძლივობა",ipv4:"IPv4 მისამართი",ipv6:"IPv6 მისამართი",cidrv4:"IPv4 დიაპაზონი",cidrv6:"IPv6 დიაპაზონი",base64:"base64-კოდირებული სტრინგი",base64url:"base64url-კოდირებული სტრინგი",json_string:"JSON სტრინგი",e164:"E.164 ნომერი",jwt:"JWT",template_literal:"შეყვანა"};return s=>{switch(s.code){case"invalid_type":return`არასწორი შეყვანა: მოსალოდნელი ${s.expected}, მიღებული ${h$(s.input)}`;case"invalid_value":return s.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${Fe(s.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${he(s.values,"|")}-დან`;case"too_big":{const t=s.inclusive?"<=":"<",a=r(s.origin);return a?`ზედმეტად დიდი: მოსალოდნელი ${s.origin??"მნიშვნელობა"} ${a.verb} ${t}${s.maximum.toString()} ${a.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${s.origin??"მნიშვნელობა"} იყოს ${t}${s.maximum.toString()}`}case"too_small":{const t=s.inclusive?">=":">",a=r(s.origin);return a?`ზედმეტად პატარა: მოსალოდნელი ${s.origin} ${a.verb} ${t}${s.minimum.toString()} ${a.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${s.origin} იყოს ${t}${s.minimum.toString()}`}case"invalid_format":{const t=s;return t.format==="starts_with"?`არასწორი სტრინგი: უნდა იწყებოდეს "${t.prefix}"-ით`:t.format==="ends_with"?`არასწორი სტრინგი: უნდა მთავრდებოდეს "${t.suffix}"-ით`:t.format==="includes"?`არასწორი სტრინგი: უნდა შეიცავდეს "${t.includes}"-ს`:t.format==="regex"?`არასწორი სტრინგი: უნდა შეესაბამებოდეს შაბლონს ${t.pattern}`:`არასწორი ${o[t.format]??s.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${s.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${s.keys.length>1?"ები":"ი"}: ${he(s.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${s.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${s.origin}-ში`;default:return"არასწორი შეყვანა"}}};function b$(){return{localeError:v$()}}const y$=()=>{const e={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"មិនមែនជាលេខ (NaN)":"លេខ";case"object":{if(Array.isArray(t))return"អារេ (Array)";if(t===null)return"គ្មានតម្លៃ (null)";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"};return t=>{switch(t.code){case"invalid_type":return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${t.expected} ប៉ុន្តែទទួលបាន ${o(t.input)}`;case"invalid_value":return t.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${Fe(t.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`ធំពេក៖ ត្រូវការ ${t.origin??"តម្លៃ"} ${a} ${t.maximum.toString()} ${f.unit??"ធាតុ"}`:`ធំពេក៖ ត្រូវការ ${t.origin??"តម្លៃ"} ${a} ${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`តូចពេក៖ ត្រូវការ ${t.origin} ${a} ${t.minimum.toString()} ${f.unit}`:`តូចពេក៖ ត្រូវការ ${t.origin} ${a} ${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${a.prefix}"`:a.format==="ends_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${a.suffix}"`:a.format==="includes"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${a.includes}"`:a.format==="regex"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${a.pattern}`:`មិនត្រឹមត្រូវ៖ ${s[a.format]??t.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${t.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${he(t.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${t.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${t.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function am(){return{localeError:y$()}}function $$(){return am()}const w$=()=>{const e={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",jwt:"JWT",template_literal:"입력"};return t=>{switch(t.code){case"invalid_type":return`잘못된 입력: 예상 타입은 ${t.expected}, 받은 타입은 ${o(t.input)}입니다`;case"invalid_value":return t.values.length===1?`잘못된 입력: 값은 ${Fe(t.values[0])} 이어야 합니다`:`잘못된 옵션: ${he(t.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{const a=t.inclusive?"이하":"미만",f=a==="미만"?"이어야 합니다":"여야 합니다",_=r(t.origin),q=_?.unit??"요소";return _?`${t.origin??"값"}이 너무 큽니다: ${t.maximum.toString()}${q} ${a}${f}`:`${t.origin??"값"}이 너무 큽니다: ${t.maximum.toString()} ${a}${f}`}case"too_small":{const a=t.inclusive?"이상":"초과",f=a==="이상"?"이어야 합니다":"여야 합니다",_=r(t.origin),q=_?.unit??"요소";return _?`${t.origin??"값"}이 너무 작습니다: ${t.minimum.toString()}${q} ${a}${f}`:`${t.origin??"값"}이 너무 작습니다: ${t.minimum.toString()} ${a}${f}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`잘못된 문자열: "${a.prefix}"(으)로 시작해야 합니다`:a.format==="ends_with"?`잘못된 문자열: "${a.suffix}"(으)로 끝나야 합니다`:a.format==="includes"?`잘못된 문자열: "${a.includes}"을(를) 포함해야 합니다`:a.format==="regex"?`잘못된 문자열: 정규식 ${a.pattern} 패턴과 일치해야 합니다`:`잘못된 ${s[a.format]??t.format}`}case"not_multiple_of":return`잘못된 숫자: ${t.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${he(t.keys,", ")}`;case"invalid_key":return`잘못된 키: ${t.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${t.origin}`;default:return"잘못된 입력"}}};function _$(){return{localeError:w$()}}const k$=e=>Bi(typeof e,e),Bi=(e,r=void 0)=>{switch(e){case"number":return Number.isNaN(r)?"NaN":"skaičius";case"bigint":return"sveikasis skaičius";case"string":return"eilutė";case"boolean":return"loginė reikšmė";case"undefined":case"void":return"neapibrėžta reikšmė";case"function":return"funkcija";case"symbol":return"simbolis";case"object":return r===void 0?"nežinomas objektas":r===null?"nulinė reikšmė":Array.isArray(r)?"masyvas":Object.getPrototypeOf(r)!==Object.prototype&&r.constructor?r.constructor.name:"objektas";case"null":return"nulinė reikšmė"}return e},Yi=e=>e.charAt(0).toUpperCase()+e.slice(1);function sm(e){const r=Math.abs(e),o=r%10,s=r%100;return s>=11&&s<=19||o===0?"many":o===1?"one":"few"}const x$=()=>{const e={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi būti ne ilgesnė kaip",notInclusive:"turi būti trumpesnė kaip"},bigger:{inclusive:"turi būti ne trumpesnė kaip",notInclusive:"turi būti ilgesnė kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi būti ne didesnis kaip",notInclusive:"turi būti mažesnis kaip"},bigger:{inclusive:"turi būti ne mažesnis kaip",notInclusive:"turi būti didesnis kaip"}}},array:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}},set:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}}};function r(s,t,a,f){const _=e[s]??null;return _===null?_:{unit:_.unit[t],verb:_.verb[f][a?"inclusive":"notInclusive"]}}const o={regex:"įvestis",email:"el. pašto adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukmė",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutė",base64url:"base64url užkoduota eilutė",json_string:"JSON eilutė",e164:"E.164 numeris",jwt:"JWT",template_literal:"įvestis"};return s=>{switch(s.code){case"invalid_type":return`Gautas tipas ${k$(s.input)}, o tikėtasi - ${Bi(s.expected)}`;case"invalid_value":return s.values.length===1?`Privalo būti ${Fe(s.values[0])}`:`Privalo būti vienas iš ${he(s.values,"|")} pasirinkimų`;case"too_big":{const t=Bi(s.origin),a=r(s.origin,sm(Number(s.maximum)),s.inclusive??!1,"smaller");if(a?.verb)return`${Yi(t??s.origin??"reikšmė")} ${a.verb} ${s.maximum.toString()} ${a.unit??"elementų"}`;const f=s.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${Yi(t??s.origin??"reikšmė")} turi būti ${f} ${s.maximum.toString()} ${a?.unit}`}case"too_small":{const t=Bi(s.origin),a=r(s.origin,sm(Number(s.minimum)),s.inclusive??!1,"bigger");if(a?.verb)return`${Yi(t??s.origin??"reikšmė")} ${a.verb} ${s.minimum.toString()} ${a.unit??"elementų"}`;const f=s.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${Yi(t??s.origin??"reikšmė")} turi būti ${f} ${s.minimum.toString()} ${a?.unit}`}case"invalid_format":{const t=s;return t.format==="starts_with"?`Eilutė privalo prasidėti "${t.prefix}"`:t.format==="ends_with"?`Eilutė privalo pasibaigti "${t.suffix}"`:t.format==="includes"?`Eilutė privalo įtraukti "${t.includes}"`:t.format==="regex"?`Eilutė privalo atitikti ${t.pattern}`:`Neteisingas ${o[t.format]??s.format}`}case"not_multiple_of":return`Skaičius privalo būti ${s.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${s.keys.length>1?"i":"as"} rakt${s.keys.length>1?"ai":"as"}: ${he(s.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga įvestis";case"invalid_element":{const t=Bi(s.origin);return`${Yi(t??s.origin??"reikšmė")} turi klaidingą įvestį`}default:return"Klaidinga įvestis"}}};function S$(){return{localeError:x$()}}const I$=()=>{const e={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"број";case"object":{if(Array.isArray(t))return"низа";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",jwt:"JWT",template_literal:"внес"};return t=>{switch(t.code){case"invalid_type":return`Грешен внес: се очекува ${t.expected}, примено ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Invalid input: expected ${Fe(t.values[0])}`:`Грешана опција: се очекува една ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Премногу голем: се очекува ${t.origin??"вредноста"} да има ${a}${t.maximum.toString()} ${f.unit??"елементи"}`:`Премногу голем: се очекува ${t.origin??"вредноста"} да биде ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Премногу мал: се очекува ${t.origin} да има ${a}${t.minimum.toString()} ${f.unit}`:`Премногу мал: се очекува ${t.origin} да биде ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Неважечка низа: мора да започнува со "${a.prefix}"`:a.format==="ends_with"?`Неважечка низа: мора да завршува со "${a.suffix}"`:a.format==="includes"?`Неважечка низа: мора да вклучува "${a.includes}"`:a.format==="regex"?`Неважечка низа: мора да одгоара на патернот ${a.pattern}`:`Invalid ${s[a.format]??t.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${he(t.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${t.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${t.origin}`;default:return"Грешен внес"}}};function z$(){return{localeError:I$()}}const N$=()=>{const e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"nombor";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"};return t=>{switch(t.code){case"invalid_type":return`Input tidak sah: dijangka ${t.expected}, diterima ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Input tidak sah: dijangka ${Fe(t.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Terlalu besar: dijangka ${t.origin??"nilai"} ${f.verb} ${a}${t.maximum.toString()} ${f.unit??"elemen"}`:`Terlalu besar: dijangka ${t.origin??"nilai"} adalah ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Terlalu kecil: dijangka ${t.origin} ${f.verb} ${a}${t.minimum.toString()} ${f.unit}`:`Terlalu kecil: dijangka ${t.origin} adalah ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`String tidak sah: mesti bermula dengan "${a.prefix}"`:a.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${a.suffix}"`:a.format==="includes"?`String tidak sah: mesti mengandungi "${a.includes}"`:a.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${a.pattern}`:`${s[a.format]??t.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${he(t.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${t.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${t.origin}`;default:return"Input tidak sah"}}};function j$(){return{localeError:N$()}}const T$=()=>{const e={string:{unit:"tekens"},file:{unit:"bytes"},array:{unit:"elementen"},set:{unit:"elementen"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"getal";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"};return t=>{switch(t.code){case"invalid_type":return`Ongeldige invoer: verwacht ${t.expected}, ontving ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Ongeldige invoer: verwacht ${Fe(t.values[0])}`:`Ongeldige optie: verwacht één van ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Te lang: verwacht dat ${t.origin??"waarde"} ${a}${t.maximum.toString()} ${f.unit??"elementen"} bevat`:`Te lang: verwacht dat ${t.origin??"waarde"} ${a}${t.maximum.toString()} is`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Te kort: verwacht dat ${t.origin} ${a}${t.minimum.toString()} ${f.unit} bevat`:`Te kort: verwacht dat ${t.origin} ${a}${t.minimum.toString()} is`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Ongeldige tekst: moet met "${a.prefix}" beginnen`:a.format==="ends_with"?`Ongeldige tekst: moet op "${a.suffix}" eindigen`:a.format==="includes"?`Ongeldige tekst: moet "${a.includes}" bevatten`:a.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${a.pattern}`:`Ongeldig: ${s[a.format]??t.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${t.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${t.keys.length>1?"s":""}: ${he(t.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${t.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${t.origin}`;default:return"Ongeldige invoer"}}};function O$(){return{localeError:T$()}}const E$=()=>{const e={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"tall";case"object":{if(Array.isArray(t))return"liste";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return t=>{switch(t.code){case"invalid_type":return`Ugyldig input: forventet ${t.expected}, fikk ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Ugyldig verdi: forventet ${Fe(t.values[0])}`:`Ugyldig valg: forventet en av ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`For stor(t): forventet ${t.origin??"value"} til å ha ${a}${t.maximum.toString()} ${f.unit??"elementer"}`:`For stor(t): forventet ${t.origin??"value"} til å ha ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`For lite(n): forventet ${t.origin} til å ha ${a}${t.minimum.toString()} ${f.unit}`:`For lite(n): forventet ${t.origin} til å ha ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Ugyldig streng: må starte med "${a.prefix}"`:a.format==="ends_with"?`Ugyldig streng: må ende med "${a.suffix}"`:a.format==="includes"?`Ugyldig streng: må inneholde "${a.includes}"`:a.format==="regex"?`Ugyldig streng: må matche mønsteret ${a.pattern}`:`Ugyldig ${s[a.format]??t.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${he(t.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${t.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${t.origin}`;default:return"Ugyldig input"}}};function P$(){return{localeError:E$()}}const C$=()=>{const e={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"numara";case"object":{if(Array.isArray(t))return"saf";if(t===null)return"gayb";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"giren",email:"epostagâh",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO hengâmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"};return t=>{switch(t.code){case"invalid_type":return`Fâsit giren: umulan ${t.expected}, alınan ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Fâsit giren: umulan ${Fe(t.values[0])}`:`Fâsit tercih: mûteberler ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Fazla büyük: ${t.origin??"value"}, ${a}${t.maximum.toString()} ${f.unit??"elements"} sahip olmalıydı.`:`Fazla büyük: ${t.origin??"value"}, ${a}${t.maximum.toString()} olmalıydı.`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Fazla küçük: ${t.origin}, ${a}${t.minimum.toString()} ${f.unit} sahip olmalıydı.`:`Fazla küçük: ${t.origin}, ${a}${t.minimum.toString()} olmalıydı.`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Fâsit metin: "${a.prefix}" ile başlamalı.`:a.format==="ends_with"?`Fâsit metin: "${a.suffix}" ile bitmeli.`:a.format==="includes"?`Fâsit metin: "${a.includes}" ihtivâ etmeli.`:a.format==="regex"?`Fâsit metin: ${a.pattern} nakşına uymalı.`:`Fâsit ${s[a.format]??t.format}`}case"not_multiple_of":return`Fâsit sayı: ${t.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${t.keys.length>1?"s":""}: ${he(t.keys,", ")}`;case"invalid_key":return`${t.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${t.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};function U$(){return{localeError:C$()}}const M$=()=>{const e={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"عدد";case"object":{if(Array.isArray(t))return"ارې";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",jwt:"JWT",template_literal:"ورودي"};return t=>{switch(t.code){case"invalid_type":return`ناسم ورودي: باید ${t.expected} وای, مګر ${o(t.input)} ترلاسه شو`;case"invalid_value":return t.values.length===1?`ناسم ورودي: باید ${Fe(t.values[0])} وای`:`ناسم انتخاب: باید یو له ${he(t.values,"|")} څخه وای`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`ډیر لوی: ${t.origin??"ارزښت"} باید ${a}${t.maximum.toString()} ${f.unit??"عنصرونه"} ولري`:`ډیر لوی: ${t.origin??"ارزښت"} باید ${a}${t.maximum.toString()} وي`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`ډیر کوچنی: ${t.origin} باید ${a}${t.minimum.toString()} ${f.unit} ولري`:`ډیر کوچنی: ${t.origin} باید ${a}${t.minimum.toString()} وي`}case"invalid_format":{const a=t;return a.format==="starts_with"?`ناسم متن: باید د "${a.prefix}" سره پیل شي`:a.format==="ends_with"?`ناسم متن: باید د "${a.suffix}" سره پای ته ورسيږي`:a.format==="includes"?`ناسم متن: باید "${a.includes}" ولري`:a.format==="regex"?`ناسم متن: باید د ${a.pattern} سره مطابقت ولري`:`${s[a.format]??t.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${t.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${t.keys.length>1?"کلیډونه":"کلیډ"}: ${he(t.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${t.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${t.origin} کې`;default:return"ناسمه ورودي"}}};function D$(){return{localeError:M$()}}const L$=()=>{const e={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"liczba";case"object":{if(Array.isArray(t))return"tablica";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejście"};return t=>{switch(t.code){case"invalid_type":return`Nieprawidłowe dane wejściowe: oczekiwano ${t.expected}, otrzymano ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${Fe(t.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Za duża wartość: oczekiwano, że ${t.origin??"wartość"} będzie mieć ${a}${t.maximum.toString()} ${f.unit??"elementów"}`:`Zbyt duż(y/a/e): oczekiwano, że ${t.origin??"wartość"} będzie wynosić ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Za mała wartość: oczekiwano, że ${t.origin??"wartość"} będzie mieć ${a}${t.minimum.toString()} ${f.unit??"elementów"}`:`Zbyt mał(y/a/e): oczekiwano, że ${t.origin??"wartość"} będzie wynosić ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${a.prefix}"`:a.format==="ends_with"?`Nieprawidłowy ciąg znaków: musi kończyć się na "${a.suffix}"`:a.format==="includes"?`Nieprawidłowy ciąg znaków: musi zawierać "${a.includes}"`:a.format==="regex"?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${a.pattern}`:`Nieprawidłow(y/a/e) ${s[a.format]??t.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${t.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${t.keys.length>1?"s":""}: ${he(t.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${t.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${t.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};function A$(){return{localeError:L$()}}const Z$=()=>{const e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"número";case"object":{if(Array.isArray(t))return"array";if(t===null)return"nulo";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"padrão",email:"endereço de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"duração ISO",ipv4:"endereço IPv4",ipv6:"endereço IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return t=>{switch(t.code){case"invalid_type":return`Tipo inválido: esperado ${t.expected}, recebido ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Entrada inválida: esperado ${Fe(t.values[0])}`:`Opção inválida: esperada uma das ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Muito grande: esperado que ${t.origin??"valor"} tivesse ${a}${t.maximum.toString()} ${f.unit??"elementos"}`:`Muito grande: esperado que ${t.origin??"valor"} fosse ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Muito pequeno: esperado que ${t.origin} tivesse ${a}${t.minimum.toString()} ${f.unit}`:`Muito pequeno: esperado que ${t.origin} fosse ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Texto inválido: deve começar com "${a.prefix}"`:a.format==="ends_with"?`Texto inválido: deve terminar com "${a.suffix}"`:a.format==="includes"?`Texto inválido: deve incluir "${a.includes}"`:a.format==="regex"?`Texto inválido: deve corresponder ao padrão ${a.pattern}`:`${s[a.format]??t.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${t.divisor}`;case"unrecognized_keys":return`Chave${t.keys.length>1?"s":""} desconhecida${t.keys.length>1?"s":""}: ${he(t.keys,", ")}`;case"invalid_key":return`Chave inválida em ${t.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${t.origin}`;default:return"Campo inválido"}}};function R$(){return{localeError:Z$()}}function um(e,r,o,s){const t=Math.abs(e),a=t%10,f=t%100;return f>=11&&f<=19?s:a===1?r:a>=2&&a<=4?o:s}const F$=()=>{const e={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"число";case"object":{if(Array.isArray(t))return"массив";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",jwt:"JWT",template_literal:"ввод"};return t=>{switch(t.code){case"invalid_type":return`Неверный ввод: ожидалось ${t.expected}, получено ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Неверный ввод: ожидалось ${Fe(t.values[0])}`:`Неверный вариант: ожидалось одно из ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);if(f){const _=Number(t.maximum),q=um(_,f.unit.one,f.unit.few,f.unit.many);return`Слишком большое значение: ожидалось, что ${t.origin??"значение"} будет иметь ${a}${t.maximum.toString()} ${q}`}return`Слишком большое значение: ожидалось, что ${t.origin??"значение"} будет ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);if(f){const _=Number(t.minimum),q=um(_,f.unit.one,f.unit.few,f.unit.many);return`Слишком маленькое значение: ожидалось, что ${t.origin} будет иметь ${a}${t.minimum.toString()} ${q}`}return`Слишком маленькое значение: ожидалось, что ${t.origin} будет ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Неверная строка: должна начинаться с "${a.prefix}"`:a.format==="ends_with"?`Неверная строка: должна заканчиваться на "${a.suffix}"`:a.format==="includes"?`Неверная строка: должна содержать "${a.includes}"`:a.format==="regex"?`Неверная строка: должна соответствовать шаблону ${a.pattern}`:`Неверный ${s[a.format]??t.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${t.divisor}`;case"unrecognized_keys":return`Нераспознанн${t.keys.length>1?"ые":"ый"} ключ${t.keys.length>1?"и":""}: ${he(t.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${t.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${t.origin}`;default:return"Неверные входные данные"}}};function q$(){return{localeError:F$()}}const W$=()=>{const e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"število";case"object":{if(Array.isArray(t))return"tabela";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"vnos",email:"e-poštni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",jwt:"JWT",template_literal:"vnos"};return t=>{switch(t.code){case"invalid_type":return`Neveljaven vnos: pričakovano ${t.expected}, prejeto ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Neveljaven vnos: pričakovano ${Fe(t.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Preveliko: pričakovano, da bo ${t.origin??"vrednost"} imelo ${a}${t.maximum.toString()} ${f.unit??"elementov"}`:`Preveliko: pričakovano, da bo ${t.origin??"vrednost"} ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Premajhno: pričakovano, da bo ${t.origin} imelo ${a}${t.minimum.toString()} ${f.unit}`:`Premajhno: pričakovano, da bo ${t.origin} ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Neveljaven niz: mora se začeti z "${a.prefix}"`:a.format==="ends_with"?`Neveljaven niz: mora se končati z "${a.suffix}"`:a.format==="includes"?`Neveljaven niz: mora vsebovati "${a.includes}"`:a.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${a.pattern}`:`Neveljaven ${s[a.format]??t.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${t.divisor}`;case"unrecognized_keys":return`Neprepoznan${t.keys.length>1?"i ključi":" ključ"}: ${he(t.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${t.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${t.origin}`;default:return"Neveljaven vnos"}}};function Q$(){return{localeError:W$()}}const G$=()=>{const e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"antal";case"object":{if(Array.isArray(t))return"lista";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"};return t=>{switch(t.code){case"invalid_type":return`Ogiltig inmatning: förväntat ${t.expected}, fick ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Ogiltig inmatning: förväntat ${Fe(t.values[0])}`:`Ogiltigt val: förväntade en av ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`För stor(t): förväntade ${t.origin??"värdet"} att ha ${a}${t.maximum.toString()} ${f.unit??"element"}`:`För stor(t): förväntat ${t.origin??"värdet"} att ha ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`För lite(t): förväntade ${t.origin??"värdet"} att ha ${a}${t.minimum.toString()} ${f.unit}`:`För lite(t): förväntade ${t.origin??"värdet"} att ha ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Ogiltig sträng: måste börja med "${a.prefix}"`:a.format==="ends_with"?`Ogiltig sträng: måste sluta med "${a.suffix}"`:a.format==="includes"?`Ogiltig sträng: måste innehålla "${a.includes}"`:a.format==="regex"?`Ogiltig sträng: måste matcha mönstret "${a.pattern}"`:`Ogiltig(t) ${s[a.format]??t.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${he(t.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${t.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${t.origin??"värdet"}`;default:return"Ogiltig input"}}};function V$(){return{localeError:G$()}}const J$=()=>{const e={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"எண் அல்லாதது":"எண்";case"object":{if(Array.isArray(t))return"அணி";if(t===null)return"வெறுமை";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",jwt:"JWT",template_literal:"input"};return t=>{switch(t.code){case"invalid_type":return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${t.expected}, பெறப்பட்டது ${o(t.input)}`;case"invalid_value":return t.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${Fe(t.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${he(t.values,"|")} இல் ஒன்று`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${t.origin??"மதிப்பு"} ${a}${t.maximum.toString()} ${f.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${t.origin??"மதிப்பு"} ${a}${t.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${t.origin} ${a}${t.minimum.toString()} ${f.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${t.origin} ${a}${t.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{const a=t;return a.format==="starts_with"?`தவறான சரம்: "${a.prefix}" இல் தொடங்க வேண்டும்`:a.format==="ends_with"?`தவறான சரம்: "${a.suffix}" இல் முடிவடைய வேண்டும்`:a.format==="includes"?`தவறான சரம்: "${a.includes}" ஐ உள்ளடக்க வேண்டும்`:a.format==="regex"?`தவறான சரம்: ${a.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${s[a.format]??t.format}`}case"not_multiple_of":return`தவறான எண்: ${t.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${t.keys.length>1?"கள்":""}: ${he(t.keys,", ")}`;case"invalid_key":return`${t.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${t.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};function B$(){return{localeError:J$()}}const Y$=()=>{const e={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"ไม่ใช่ตัวเลข (NaN)":"ตัวเลข";case"object":{if(Array.isArray(t))return"อาร์เรย์ (Array)";if(t===null)return"ไม่มีค่า (null)";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"};return t=>{switch(t.code){case"invalid_type":return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${t.expected} แต่ได้รับ ${o(t.input)}`;case"invalid_value":return t.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${Fe(t.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"ไม่เกิน":"น้อยกว่า",f=r(t.origin);return f?`เกินกำหนด: ${t.origin??"ค่า"} ควรมี${a} ${t.maximum.toString()} ${f.unit??"รายการ"}`:`เกินกำหนด: ${t.origin??"ค่า"} ควรมี${a} ${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?"อย่างน้อย":"มากกว่า",f=r(t.origin);return f?`น้อยกว่ากำหนด: ${t.origin} ควรมี${a} ${t.minimum.toString()} ${f.unit}`:`น้อยกว่ากำหนด: ${t.origin} ควรมี${a} ${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${a.prefix}"`:a.format==="ends_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${a.suffix}"`:a.format==="includes"?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${a.includes}" อยู่ในข้อความ`:a.format==="regex"?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${a.pattern}`:`รูปแบบไม่ถูกต้อง: ${s[a.format]??t.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${t.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${he(t.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${t.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${t.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function K$(){return{localeError:Y$()}}const H$=e=>{const r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return r},X$=()=>{const e={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function r(s){return e[s]??null}const o={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO süre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Şablon dizesi"};return s=>{switch(s.code){case"invalid_type":return`Geçersiz değer: beklenen ${s.expected}, alınan ${H$(s.input)}`;case"invalid_value":return s.values.length===1?`Geçersiz değer: beklenen ${Fe(s.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${he(s.values,"|")}`;case"too_big":{const t=s.inclusive?"<=":"<",a=r(s.origin);return a?`Çok büyük: beklenen ${s.origin??"değer"} ${t}${s.maximum.toString()} ${a.unit??"öğe"}`:`Çok büyük: beklenen ${s.origin??"değer"} ${t}${s.maximum.toString()}`}case"too_small":{const t=s.inclusive?">=":">",a=r(s.origin);return a?`Çok küçük: beklenen ${s.origin} ${t}${s.minimum.toString()} ${a.unit}`:`Çok küçük: beklenen ${s.origin} ${t}${s.minimum.toString()}`}case"invalid_format":{const t=s;return t.format==="starts_with"?`Geçersiz metin: "${t.prefix}" ile başlamalı`:t.format==="ends_with"?`Geçersiz metin: "${t.suffix}" ile bitmeli`:t.format==="includes"?`Geçersiz metin: "${t.includes}" içermeli`:t.format==="regex"?`Geçersiz metin: ${t.pattern} desenine uymalı`:`Geçersiz ${o[t.format]??s.format}`}case"not_multiple_of":return`Geçersiz sayı: ${s.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${s.keys.length>1?"lar":""}: ${he(s.keys,", ")}`;case"invalid_key":return`${s.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${s.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};function ew(){return{localeError:X$()}}const tw=()=>{const e={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"число";case"object":{if(Array.isArray(t))return"масив";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",jwt:"JWT",template_literal:"вхідні дані"};return t=>{switch(t.code){case"invalid_type":return`Неправильні вхідні дані: очікується ${t.expected}, отримано ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Неправильні вхідні дані: очікується ${Fe(t.values[0])}`:`Неправильна опція: очікується одне з ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Занадто велике: очікується, що ${t.origin??"значення"} ${f.verb} ${a}${t.maximum.toString()} ${f.unit??"елементів"}`:`Занадто велике: очікується, що ${t.origin??"значення"} буде ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Занадто мале: очікується, що ${t.origin} ${f.verb} ${a}${t.minimum.toString()} ${f.unit}`:`Занадто мале: очікується, що ${t.origin} буде ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Неправильний рядок: повинен починатися з "${a.prefix}"`:a.format==="ends_with"?`Неправильний рядок: повинен закінчуватися на "${a.suffix}"`:a.format==="includes"?`Неправильний рядок: повинен містити "${a.includes}"`:a.format==="regex"?`Неправильний рядок: повинен відповідати шаблону ${a.pattern}`:`Неправильний ${s[a.format]??t.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${t.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${t.keys.length>1?"і":""}: ${he(t.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${t.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${t.origin}`;default:return"Неправильні вхідні дані"}}};function cm(){return{localeError:tw()}}function rw(){return cm()}const nw=()=>{const e={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"نمبر";case"object":{if(Array.isArray(t))return"آرے";if(t===null)return"نل";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"};return t=>{switch(t.code){case"invalid_type":return`غلط ان پٹ: ${t.expected} متوقع تھا، ${o(t.input)} موصول ہوا`;case"invalid_value":return t.values.length===1?`غلط ان پٹ: ${Fe(t.values[0])} متوقع تھا`:`غلط آپشن: ${he(t.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`بہت بڑا: ${t.origin??"ویلیو"} کے ${a}${t.maximum.toString()} ${f.unit??"عناصر"} ہونے متوقع تھے`:`بہت بڑا: ${t.origin??"ویلیو"} کا ${a}${t.maximum.toString()} ہونا متوقع تھا`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`بہت چھوٹا: ${t.origin} کے ${a}${t.minimum.toString()} ${f.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${t.origin} کا ${a}${t.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{const a=t;return a.format==="starts_with"?`غلط سٹرنگ: "${a.prefix}" سے شروع ہونا چاہیے`:a.format==="ends_with"?`غلط سٹرنگ: "${a.suffix}" پر ختم ہونا چاہیے`:a.format==="includes"?`غلط سٹرنگ: "${a.includes}" شامل ہونا چاہیے`:a.format==="regex"?`غلط سٹرنگ: پیٹرن ${a.pattern} سے میچ ہونا چاہیے`:`غلط ${s[a.format]??t.format}`}case"not_multiple_of":return`غلط نمبر: ${t.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${t.keys.length>1?"ز":""}: ${he(t.keys,"، ")}`;case"invalid_key":return`${t.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${t.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};function iw(){return{localeError:nw()}}const ow=()=>{const e={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"số";case"object":{if(Array.isArray(t))return"mảng";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"đầu vào",email:"địa chỉ email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",jwt:"JWT",template_literal:"đầu vào"};return t=>{switch(t.code){case"invalid_type":return`Đầu vào không hợp lệ: mong đợi ${t.expected}, nhận được ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Đầu vào không hợp lệ: mong đợi ${Fe(t.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Quá lớn: mong đợi ${t.origin??"giá trị"} ${f.verb} ${a}${t.maximum.toString()} ${f.unit??"phần tử"}`:`Quá lớn: mong đợi ${t.origin??"giá trị"} ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Quá nhỏ: mong đợi ${t.origin} ${f.verb} ${a}${t.minimum.toString()} ${f.unit}`:`Quá nhỏ: mong đợi ${t.origin} ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Chuỗi không hợp lệ: phải bắt đầu bằng "${a.prefix}"`:a.format==="ends_with"?`Chuỗi không hợp lệ: phải kết thúc bằng "${a.suffix}"`:a.format==="includes"?`Chuỗi không hợp lệ: phải bao gồm "${a.includes}"`:a.format==="regex"?`Chuỗi không hợp lệ: phải khớp với mẫu ${a.pattern}`:`${s[a.format]??t.format} không hợp lệ`}case"not_multiple_of":return`Số không hợp lệ: phải là bội số của ${t.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${he(t.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${t.origin}`;case"invalid_union":return"Đầu vào không hợp lệ";case"invalid_element":return`Giá trị không hợp lệ trong ${t.origin}`;default:return"Đầu vào không hợp lệ"}}};function aw(){return{localeError:ow()}}const sw=()=>{const e={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"非数字(NaN)":"数字";case"object":{if(Array.isArray(t))return"数组";if(t===null)return"空值(null)";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",jwt:"JWT",template_literal:"输入"};return t=>{switch(t.code){case"invalid_type":return`无效输入:期望 ${t.expected},实际接收 ${o(t.input)}`;case"invalid_value":return t.values.length===1?`无效输入:期望 ${Fe(t.values[0])}`:`无效选项:期望以下之一 ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`数值过大:期望 ${t.origin??"值"} ${a}${t.maximum.toString()} ${f.unit??"个元素"}`:`数值过大:期望 ${t.origin??"值"} ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`数值过小:期望 ${t.origin} ${a}${t.minimum.toString()} ${f.unit}`:`数值过小:期望 ${t.origin} ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`无效字符串:必须以 "${a.prefix}" 开头`:a.format==="ends_with"?`无效字符串:必须以 "${a.suffix}" 结尾`:a.format==="includes"?`无效字符串:必须包含 "${a.includes}"`:a.format==="regex"?`无效字符串:必须满足正则表达式 ${a.pattern}`:`无效${s[a.format]??t.format}`}case"not_multiple_of":return`无效数字:必须是 ${t.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${he(t.keys,", ")}`;case"invalid_key":return`${t.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${t.origin} 中包含无效值(value)`;default:return"无效输入"}}};function uw(){return{localeError:sw()}}const cw=()=>{const e={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",jwt:"JWT",template_literal:"輸入"};return t=>{switch(t.code){case"invalid_type":return`無效的輸入值:預期為 ${t.expected},但收到 ${o(t.input)}`;case"invalid_value":return t.values.length===1?`無效的輸入值:預期為 ${Fe(t.values[0])}`:`無效的選項:預期為以下其中之一 ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`數值過大:預期 ${t.origin??"值"} 應為 ${a}${t.maximum.toString()} ${f.unit??"個元素"}`:`數值過大:預期 ${t.origin??"值"} 應為 ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`數值過小:預期 ${t.origin} 應為 ${a}${t.minimum.toString()} ${f.unit}`:`數值過小:預期 ${t.origin} 應為 ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`無效的字串:必須以 "${a.prefix}" 開頭`:a.format==="ends_with"?`無效的字串:必須以 "${a.suffix}" 結尾`:a.format==="includes"?`無效的字串:必須包含 "${a.includes}"`:a.format==="regex"?`無效的字串:必須符合格式 ${a.pattern}`:`無效的 ${s[a.format]??t.format}`}case"not_multiple_of":return`無效的數字:必須為 ${t.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${t.keys.length>1?"們":""}:${he(t.keys,"、")}`;case"invalid_key":return`${t.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${t.origin} 中有無效的值`;default:return"無效的輸入值"}}};function lw(){return{localeError:cw()}}const dw=()=>{const e={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"nọ́mbà";case"object":{if(Array.isArray(t))return"akopọ";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"ẹ̀rọ ìbáwọlé",email:"àdírẹ́sì ìmẹ́lì",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"àkókò ISO",date:"ọjọ́ ISO",time:"àkókò ISO",duration:"àkókò tó pé ISO",ipv4:"àdírẹ́sì IPv4",ipv6:"àdírẹ́sì IPv6",cidrv4:"àgbègbè IPv4",cidrv6:"àgbègbè IPv6",base64:"ọ̀rọ̀ tí a kọ́ ní base64",base64url:"ọ̀rọ̀ base64url",json_string:"ọ̀rọ̀ JSON",e164:"nọ́mbà E.164",jwt:"JWT",template_literal:"ẹ̀rọ ìbáwọlé"};return t=>{switch(t.code){case"invalid_type":return`Ìbáwọlé aṣìṣe: a ní láti fi ${t.expected}, àmọ̀ a rí ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${Fe(t.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Tó pọ̀ jù: a ní láti jẹ́ pé ${t.origin??"iye"} ${f.verb} ${a}${t.maximum} ${f.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${a}${t.maximum}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Kéré ju: a ní láti jẹ́ pé ${t.origin} ${f.verb} ${a}${t.minimum} ${f.unit}`:`Kéré ju: a ní láti jẹ́ ${a}${t.minimum}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${a.prefix}"`:a.format==="ends_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${a.suffix}"`:a.format==="includes"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${a.includes}"`:a.format==="regex"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${a.pattern}`:`Aṣìṣe: ${s[a.format]??t.format}`}case"not_multiple_of":return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${t.divisor}`;case"unrecognized_keys":return`Bọtìnì àìmọ̀: ${he(t.keys,", ")}`;case"invalid_key":return`Bọtìnì aṣìṣe nínú ${t.origin}`;case"invalid_union":return"Ìbáwọlé aṣìṣe";case"invalid_element":return`Iye aṣìṣe nínú ${t.origin}`;default:return"Ìbáwọlé aṣìṣe"}}};function fw(){return{localeError:dw()}}const lm=Object.freeze(Object.defineProperty({__proto__:null,ar:jy,az:Oy,be:Py,ca:Uy,cs:Dy,da:Ay,de:Ry,en:om,eo:Gy,es:Jy,fa:Yy,fi:Hy,fr:e$,frCA:r$,he:i$,hu:a$,id:u$,is:d$,it:m$,ja:g$,ka:b$,kh:$$,km:am,ko:_$,lt:S$,mk:z$,ms:j$,nl:O$,no:P$,ota:U$,pl:A$,ps:D$,pt:R$,ru:q$,sl:Q$,sv:V$,ta:B$,th:K$,tr:ew,ua:rw,uk:cm,ur:iw,vi:aw,yo:fw,zhCN:uw,zhTW:lw},Symbol.toStringTag,{value:"Module"})),dm=Symbol("ZodOutput"),fm=Symbol("ZodInput");class xs{constructor(){this._map=new WeakMap,this._idmap=new Map}add(r,...o){const s=o[0];if(this._map.set(r,s),s&&typeof s=="object"&&"id"in s){if(this._idmap.has(s.id))throw new Error(`ID ${s.id} already exists in the registry`);this._idmap.set(s.id,r)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(r){const o=this._map.get(r);return o&&typeof o=="object"&&"id"in o&&this._idmap.delete(o.id),this._map.delete(r),this}get(r){const o=r._zod.parent;if(o){const s={...this.get(o)??{}};delete s.id;const t={...s,...this._map.get(r)};return Object.keys(t).length?t:void 0}return this._map.get(r)}has(r){return this._map.has(r)}}function Ss(){return new xs}const Zn=Ss();function mm(e,r){return new e({type:"string",...se(r)})}function pm(e,r){return new e({type:"string",coerce:!0,...se(r)})}function Is(e,r){return new e({type:"string",format:"email",check:"string_format",abort:!1,...se(r)})}function Wo(e,r){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...se(r)})}function zs(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...se(r)})}function Ns(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...se(r)})}function js(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...se(r)})}function Ts(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...se(r)})}function Qo(e,r){return new e({type:"string",format:"url",check:"string_format",abort:!1,...se(r)})}function Os(e,r){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...se(r)})}function Es(e,r){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...se(r)})}function Ps(e,r){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...se(r)})}function Cs(e,r){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...se(r)})}function Us(e,r){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...se(r)})}function Ms(e,r){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...se(r)})}function Ds(e,r){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...se(r)})}function Ls(e,r){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...se(r)})}function As(e,r){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...se(r)})}function Zs(e,r){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...se(r)})}function Rs(e,r){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...se(r)})}function Fs(e,r){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...se(r)})}function qs(e,r){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...se(r)})}function Ws(e,r){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...se(r)})}function Qs(e,r){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...se(r)})}const gm={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function hm(e,r){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...se(r)})}function vm(e,r){return new e({type:"string",format:"date",check:"string_format",...se(r)})}function bm(e,r){return new e({type:"string",format:"time",check:"string_format",precision:null,...se(r)})}function ym(e,r){return new e({type:"string",format:"duration",check:"string_format",...se(r)})}function $m(e,r){return new e({type:"number",checks:[],...se(r)})}function wm(e,r){return new e({type:"number",coerce:!0,checks:[],...se(r)})}function _m(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...se(r)})}function km(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...se(r)})}function xm(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...se(r)})}function Sm(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...se(r)})}function Im(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...se(r)})}function zm(e,r){return new e({type:"boolean",...se(r)})}function Nm(e,r){return new e({type:"boolean",coerce:!0,...se(r)})}function jm(e,r){return new e({type:"bigint",...se(r)})}function Tm(e,r){return new e({type:"bigint",coerce:!0,...se(r)})}function Om(e,r){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...se(r)})}function Em(e,r){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...se(r)})}function Pm(e,r){return new e({type:"symbol",...se(r)})}function Cm(e,r){return new e({type:"undefined",...se(r)})}function Um(e,r){return new e({type:"null",...se(r)})}function Mm(e){return new e({type:"any"})}function Dm(e){return new e({type:"unknown"})}function Lm(e,r){return new e({type:"never",...se(r)})}function Am(e,r){return new e({type:"void",...se(r)})}function Zm(e,r){return new e({type:"date",...se(r)})}function Rm(e,r){return new e({type:"date",coerce:!0,...se(r)})}function Fm(e,r){return new e({type:"nan",...se(r)})}function Rn(e,r){return new ps({check:"less_than",...se(r),value:e,inclusive:!1})}function Zr(e,r){return new ps({check:"less_than",...se(r),value:e,inclusive:!0})}function Fn(e,r){return new gs({check:"greater_than",...se(r),value:e,inclusive:!1})}function yr(e,r){return new gs({check:"greater_than",...se(r),value:e,inclusive:!0})}function qm(e){return Fn(0,e)}function Wm(e){return Rn(0,e)}function Qm(e){return Zr(0,e)}function Gm(e){return yr(0,e)}function Ki(e,r){return new gd({check:"multiple_of",...se(r),value:e})}function Go(e,r){return new bd({check:"max_size",...se(r),maximum:e})}function Hi(e,r){return new yd({check:"min_size",...se(r),minimum:e})}function Gs(e,r){return new $d({check:"size_equals",...se(r),size:e})}function Vo(e,r){return new wd({check:"max_length",...se(r),maximum:e})}function gi(e,r){return new _d({check:"min_length",...se(r),minimum:e})}function Jo(e,r){return new kd({check:"length_equals",...se(r),length:e})}function Vs(e,r){return new xd({check:"string_format",format:"regex",...se(r),pattern:e})}function Js(e){return new Sd({check:"string_format",format:"lowercase",...se(e)})}function Bs(e){return new Id({check:"string_format",format:"uppercase",...se(e)})}function Ys(e,r){return new zd({check:"string_format",format:"includes",...se(r),includes:e})}function Ks(e,r){return new Nd({check:"string_format",format:"starts_with",...se(r),prefix:e})}function Hs(e,r){return new jd({check:"string_format",format:"ends_with",...se(r),suffix:e})}function Vm(e,r,o){return new Od({check:"property",property:e,schema:r,...se(o)})}function Xs(e,r){return new Ed({check:"mime_type",mime:e,...se(r)})}function qn(e){return new Pd({check:"overwrite",tx:e})}function eu(e){return qn(r=>r.normalize(e))}function tu(){return qn(e=>e.trim())}function ru(){return qn(e=>e.toLowerCase())}function nu(){return qn(e=>e.toUpperCase())}function Jm(e,r,o){return new e({type:"array",element:r,...se(o)})}function mw(e,r,o){return new e({type:"union",options:r,...se(o)})}function pw(e,r,o,s){return new e({type:"union",options:o,discriminator:r,...se(s)})}function gw(e,r,o){return new e({type:"intersection",left:r,right:o})}function hw(e,r,o,s){const t=o instanceof Qe,a=t?s:o,f=t?o:null;return new e({type:"tuple",items:r,rest:f,...se(a)})}function vw(e,r,o,s){return new e({type:"record",keyType:r,valueType:o,...se(s)})}function bw(e,r,o,s){return new e({type:"map",keyType:r,valueType:o,...se(s)})}function yw(e,r,o){return new e({type:"set",valueType:r,...se(o)})}function $w(e,r,o){const s=Array.isArray(r)?Object.fromEntries(r.map(t=>[t,t])):r;return new e({type:"enum",entries:s,...se(o)})}function ww(e,r,o){return new e({type:"enum",entries:r,...se(o)})}function _w(e,r,o){return new e({type:"literal",values:Array.isArray(r)?r:[r],...se(o)})}function Bm(e,r){return new e({type:"file",...se(r)})}function kw(e,r){return new e({type:"transform",transform:r})}function xw(e,r){return new e({type:"optional",innerType:r})}function Sw(e,r){return new e({type:"nullable",innerType:r})}function Iw(e,r,o){return new e({type:"default",innerType:r,get defaultValue(){return typeof o=="function"?o():Uo(o)}})}function zw(e,r,o){return new e({type:"nonoptional",innerType:r,...se(o)})}function Nw(e,r){return new e({type:"success",innerType:r})}function jw(e,r,o){return new e({type:"catch",innerType:r,catchValue:typeof o=="function"?o:()=>o})}function Tw(e,r,o){return new e({type:"pipe",in:r,out:o})}function Ow(e,r){return new e({type:"readonly",innerType:r})}function Ew(e,r,o){return new e({type:"template_literal",parts:r,...se(o)})}function Pw(e,r){return new e({type:"lazy",getter:r})}function Cw(e,r){return new e({type:"promise",innerType:r})}function Ym(e,r,o){const s=se(o);return s.abort??(s.abort=!0),new e({type:"custom",check:"custom",fn:r,...s})}function Km(e,r,o){return new e({type:"custom",check:"custom",fn:r,...se(o)})}function Hm(e){const r=Xm(o=>(o.addIssue=s=>{if(typeof s=="string")o.issues.push(mi(s,o.value,r._zod.def));else{const t=s;t.fatal&&(t.continue=!1),t.code??(t.code="custom"),t.input??(t.input=o.value),t.inst??(t.inst=r),t.continue??(t.continue=!r._zod.def.abort),o.issues.push(mi(t))}},e(o.value,o)));return r}function Xm(e,r){const o=new Mt({check:"custom",...se(r)});return o._zod.check=e,o}function ep(e,r){const o=se(r);let s=o.truthy??["true","1","yes","on","y","enabled"],t=o.falsy??["false","0","no","off","n","disabled"];o.case!=="sensitive"&&(s=s.map(ge=>typeof ge=="string"?ge.toLowerCase():ge),t=t.map(ge=>typeof ge=="string"?ge.toLowerCase():ge));const a=new Set(s),f=new Set(t),_=e.Codec??ks,q=e.Boolean??bs,X=e.String??Ji,ce=new X({type:"string",error:o.error}),ue=new q({type:"boolean",error:o.error}),ze=new _({type:"pipe",in:ce,out:ue,transform:((ge,A)=>{let ye=ge;return o.case!=="sensitive"&&(ye=ye.toLowerCase()),a.has(ye)?!0:f.has(ye)?!1:(A.issues.push({code:"invalid_value",expected:"stringbool",values:[...a,...f],input:A.value,inst:ze,continue:!1}),{})}),reverseTransform:((ge,A)=>ge===!0?s[0]||"true":t[0]||"false"),error:o.error});return ze}function Xi(e,r,o,s={}){const t=se(s),a={...se(s),check:"string_format",type:"string",format:r,fn:typeof o=="function"?o:_=>o.test(_),...t};return o instanceof RegExp&&(a.pattern=o),new e(a)}class iu{constructor(r){this.counter=0,this.metadataRegistry=r?.metadata??Zn,this.target=r?.target??"draft-2020-12",this.unrepresentable=r?.unrepresentable??"throw",this.override=r?.override??(()=>{}),this.io=r?.io??"output",this.seen=new Map}process(r,o={path:[],schemaPath:[]}){var s;const t=r._zod.def,a={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},f=this.seen.get(r);if(f)return f.count++,o.schemaPath.includes(r)&&(f.cycle=o.path),f.schema;const _={schema:{},count:1,cycle:void 0,path:o.path};this.seen.set(r,_);const q=r._zod.toJSONSchema?.();if(q)_.schema=q;else{const ue={...o,schemaPath:[...o.schemaPath,r],path:o.path},ze=r._zod.parent;if(ze)_.ref=ze,this.process(ze,ue),this.seen.get(ze).isParent=!0;else{const ge=_.schema;switch(t.type){case"string":{const A=ge;A.type="string";const{minimum:ye,maximum:Me,format:pt,patterns:ct,contentEncoding:dt}=r._zod.bag;if(typeof ye=="number"&&(A.minLength=ye),typeof Me=="number"&&(A.maxLength=Me),pt&&(A.format=a[pt]??pt,A.format===""&&delete A.format),dt&&(A.contentEncoding=dt),ct&&ct.size>0){const bt=[...ct];bt.length===1?A.pattern=bt[0].source:bt.length>1&&(_.schema.allOf=[...bt.map(lr=>({...this.target==="draft-7"||this.target==="draft-4"||this.target==="openapi-3.0"?{type:"string"}:{},pattern:lr.source}))])}break}case"number":{const A=ge,{minimum:ye,maximum:Me,format:pt,multipleOf:ct,exclusiveMaximum:dt,exclusiveMinimum:bt}=r._zod.bag;typeof pt=="string"&&pt.includes("int")?A.type="integer":A.type="number",typeof bt=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?(A.minimum=bt,A.exclusiveMinimum=!0):A.exclusiveMinimum=bt),typeof ye=="number"&&(A.minimum=ye,typeof bt=="number"&&this.target!=="draft-4"&&(bt>=ye?delete A.minimum:delete A.exclusiveMinimum)),typeof dt=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?(A.maximum=dt,A.exclusiveMaximum=!0):A.exclusiveMaximum=dt),typeof Me=="number"&&(A.maximum=Me,typeof dt=="number"&&this.target!=="draft-4"&&(dt<=Me?delete A.maximum:delete A.exclusiveMaximum)),typeof ct=="number"&&(A.multipleOf=ct);break}case"boolean":{const A=ge;A.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break}case"null":{this.target==="openapi-3.0"?(ge.type="string",ge.nullable=!0,ge.enum=[null]):ge.type="null";break}case"any":break;case"unknown":break;case"undefined":{if(this.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema");break}case"void":{if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break}case"never":{ge.not={};break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{const A=ge,{minimum:ye,maximum:Me}=r._zod.bag;typeof ye=="number"&&(A.minItems=ye),typeof Me=="number"&&(A.maxItems=Me),A.type="array",A.items=this.process(t.element,{...ue,path:[...ue.path,"items"]});break}case"object":{const A=ge;A.type="object",A.properties={};const ye=t.shape;for(const ct in ye)A.properties[ct]=this.process(ye[ct],{...ue,path:[...ue.path,"properties",ct]});const Me=new Set(Object.keys(ye)),pt=new Set([...Me].filter(ct=>{const dt=t.shape[ct]._zod;return this.io==="input"?dt.optin===void 0:dt.optout===void 0}));pt.size>0&&(A.required=Array.from(pt)),t.catchall?._zod.def.type==="never"?A.additionalProperties=!1:t.catchall?t.catchall&&(A.additionalProperties=this.process(t.catchall,{...ue,path:[...ue.path,"additionalProperties"]})):this.io==="output"&&(A.additionalProperties=!1);break}case"union":{const A=ge,ye=t.options.map((Me,pt)=>this.process(Me,{...ue,path:[...ue.path,"anyOf",pt]}));A.anyOf=ye;break}case"intersection":{const A=ge,ye=this.process(t.left,{...ue,path:[...ue.path,"allOf",0]}),Me=this.process(t.right,{...ue,path:[...ue.path,"allOf",1]}),pt=dt=>"allOf"in dt&&Object.keys(dt).length===1,ct=[...pt(ye)?ye.allOf:[ye],...pt(Me)?Me.allOf:[Me]];A.allOf=ct;break}case"tuple":{const A=ge;A.type="array";const ye=this.target==="draft-2020-12"?"prefixItems":"items",Me=this.target==="draft-2020-12"||this.target==="openapi-3.0"?"items":"additionalItems",pt=t.items.map((lr,Br)=>this.process(lr,{...ue,path:[...ue.path,ye,Br]})),ct=t.rest?this.process(t.rest,{...ue,path:[...ue.path,Me,...this.target==="openapi-3.0"?[t.items.length]:[]]}):null;this.target==="draft-2020-12"?(A.prefixItems=pt,ct&&(A.items=ct)):this.target==="openapi-3.0"?(A.items={anyOf:pt},ct&&A.items.anyOf.push(ct),A.minItems=pt.length,ct||(A.maxItems=pt.length)):(A.items=pt,ct&&(A.additionalItems=ct));const{minimum:dt,maximum:bt}=r._zod.bag;typeof dt=="number"&&(A.minItems=dt),typeof bt=="number"&&(A.maxItems=bt);break}case"record":{const A=ge;A.type="object",(this.target==="draft-7"||this.target==="draft-2020-12")&&(A.propertyNames=this.process(t.keyType,{...ue,path:[...ue.path,"propertyNames"]})),A.additionalProperties=this.process(t.valueType,{...ue,path:[...ue.path,"additionalProperties"]});break}case"map":{if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break}case"enum":{const A=ge,ye=Ba(t.entries);ye.every(Me=>typeof Me=="number")&&(A.type="number"),ye.every(Me=>typeof Me=="string")&&(A.type="string"),A.enum=ye;break}case"literal":{const A=ge,ye=[];for(const Me of t.values)if(Me===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof Me=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");ye.push(Number(Me))}else ye.push(Me);if(ye.length!==0)if(ye.length===1){const Me=ye[0];A.type=Me===null?"null":typeof Me,this.target==="draft-4"||this.target==="openapi-3.0"?A.enum=[Me]:A.const=Me}else ye.every(Me=>typeof Me=="number")&&(A.type="number"),ye.every(Me=>typeof Me=="string")&&(A.type="string"),ye.every(Me=>typeof Me=="boolean")&&(A.type="string"),ye.every(Me=>Me===null)&&(A.type="null"),A.enum=ye;break}case"file":{const A=ge,ye={type:"string",format:"binary",contentEncoding:"binary"},{minimum:Me,maximum:pt,mime:ct}=r._zod.bag;Me!==void 0&&(ye.minLength=Me),pt!==void 0&&(ye.maxLength=pt),ct?ct.length===1?(ye.contentMediaType=ct[0],Object.assign(A,ye)):A.anyOf=ct.map(dt=>({...ye,contentMediaType:dt})):Object.assign(A,ye);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{const A=this.process(t.innerType,ue);this.target==="openapi-3.0"?(_.ref=t.innerType,ge.nullable=!0):ge.anyOf=[A,{type:"null"}];break}case"nonoptional":{this.process(t.innerType,ue),_.ref=t.innerType;break}case"success":{const A=ge;A.type="boolean";break}case"default":{this.process(t.innerType,ue),_.ref=t.innerType,ge.default=JSON.parse(JSON.stringify(t.defaultValue));break}case"prefault":{this.process(t.innerType,ue),_.ref=t.innerType,this.io==="input"&&(ge._prefault=JSON.parse(JSON.stringify(t.defaultValue)));break}case"catch":{this.process(t.innerType,ue),_.ref=t.innerType;let A;try{A=t.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}ge.default=A;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{const A=ge,ye=r._zod.pattern;if(!ye)throw new Error("Pattern not found in template literal");A.type="string",A.pattern=ye.source;break}case"pipe":{const A=this.io==="input"?t.in._zod.def.type==="transform"?t.out:t.in:t.out;this.process(A,ue),_.ref=A;break}case"readonly":{this.process(t.innerType,ue),_.ref=t.innerType,ge.readOnly=!0;break}case"promise":{this.process(t.innerType,ue),_.ref=t.innerType;break}case"optional":{this.process(t.innerType,ue),_.ref=t.innerType;break}case"lazy":{const A=r._zod.innerType;this.process(A,ue),_.ref=A;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}case"function":{if(this.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema");break}}}}const X=this.metadataRegistry.get(r);return X&&Object.assign(_.schema,X),this.io==="input"&&Jt(r)&&(delete _.schema.examples,delete _.schema.default),this.io==="input"&&_.schema._prefault&&((s=_.schema).default??(s.default=_.schema._prefault)),delete _.schema._prefault,this.seen.get(r).schema}emit(r,o){const s={cycles:o?.cycles??"ref",reused:o?.reused??"inline",external:o?.external??void 0},t=this.seen.get(r);if(!t)throw new Error("Unprocessed schema. This is a bug in Zod.");const a=ce=>{const ue=this.target==="draft-2020-12"?"$defs":"definitions";if(s.external){const ye=s.external.registry.get(ce[0])?.id,Me=s.external.uri??(ct=>ct);if(ye)return{ref:Me(ye)};const pt=ce[1].defId??ce[1].schema.id??`schema${this.counter++}`;return ce[1].defId=pt,{defId:pt,ref:`${Me("__shared")}#/${ue}/${pt}`}}if(ce[1]===t)return{ref:"#"};const ge=`#/${ue}/`,A=ce[1].schema.id??`__schema${this.counter++}`;return{defId:A,ref:ge+A}},f=ce=>{if(ce[1].schema.$ref)return;const ue=ce[1],{ref:ze,defId:ge}=a(ce);ue.def={...ue.schema},ge&&(ue.defId=ge);const A=ue.schema;for(const ye in A)delete A[ye];A.$ref=ze};if(s.cycles==="throw")for(const ce of this.seen.entries()){const ue=ce[1];if(ue.cycle)throw new Error(`Cycle detected: #/${ue.cycle?.join("/")}/<root>
42
+ `)}ge.write("payload.value = newResult;"),ge.write("return payload;");const ct=ge.compile();return(dt,bt)=>ct(ze,dt,bt)};let a;const f=fi,_=!Oo.jitless,X=_&&gl.value,ce=r.catchall;let ue;e._zod.parse=(ze,ge)=>{ue??(ue=s.value);const L=ze.value;return f(L)?_&&X&&ge?.async===!1&&ge.jitless!==!0?(a||(a=t(r.shape)),ze=a(ze,ge),ce?kf([],L,ze,ge,ue,e):ze):o(ze,ge):(ze.issues.push({expected:"object",code:"invalid_type",input:L,inst:e}),ze)}});function If(e,r,o,s){for(const a of e)if(a.issues.length===0)return r.value=a.value,r;const t=e.filter(a=>!Ln(a));return t.length===1?(r.value=t[0].value,t[0]):(r.issues.push({code:"invalid_union",input:r.value,inst:o,errors:e.map(a=>a.issues.map(f=>Lr(f,s,cr())))}),r)}const $s=M("$ZodUnion",(e,r)=>{Ve.init(e,r),ot(e._zod,"optin",()=>r.options.some(t=>t._zod.optin==="optional")?"optional":void 0),ot(e._zod,"optout",()=>r.options.some(t=>t._zod.optout==="optional")?"optional":void 0),ot(e._zod,"values",()=>{if(r.options.every(t=>t._zod.values))return new Set(r.options.flatMap(t=>Array.from(t._zod.values)))}),ot(e._zod,"pattern",()=>{if(r.options.every(t=>t._zod.pattern)){const t=r.options.map(a=>a._zod.pattern);return new RegExp(`^(${t.map(a=>Po(a.source)).join("|")})$`)}});const o=r.options.length===1,s=r.options[0]._zod.run;e._zod.parse=(t,a)=>{if(o)return s(t,a);let f=!1;const _=[];for(const q of r.options){const X=q._zod.run({value:t.value,issues:[]},a);if(X instanceof Promise)_.push(X),f=!0;else{if(X.issues.length===0)return X;_.push(X)}}return f?Promise.all(_).then(q=>If(q,t,e,a)):If(_,t,e,a)}}),zf=M("$ZodDiscriminatedUnion",(e,r)=>{$s.init(e,r);const o=e._zod.parse;ot(e._zod,"propValues",()=>{const t={};for(const a of r.options){const f=a._zod.propValues;if(!f||Object.keys(f).length===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(a)}"`);for(const[_,q]of Object.entries(f)){t[_]||(t[_]=new Set);for(const X of q)t[_].add(X)}}return t});const s=Li(()=>{const t=r.options,a=new Map;for(const f of t){const _=f._zod.propValues?.[r.discriminator];if(!_||_.size===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(f)}"`);for(const q of _){if(a.has(q))throw new Error(`Duplicate discriminator value "${String(q)}"`);a.set(q,f)}}return a});e._zod.parse=(t,a)=>{const f=t.value;if(!fi(f))return t.issues.push({code:"invalid_type",expected:"object",input:f,inst:e}),t;const _=s.value.get(f?.[r.discriminator]);return _?_._zod.run(t,a):r.unionFallback?o(t,a):(t.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:r.discriminator,input:f,path:[r.discriminator],inst:e}),t)}}),Nf=M("$ZodIntersection",(e,r)=>{Ve.init(e,r),e._zod.parse=(o,s)=>{const t=o.value,a=r.left._zod.run({value:t,issues:[]},s),f=r.right._zod.run({value:t,issues:[]},s);return a instanceof Promise||f instanceof Promise?Promise.all([a,f]).then(([q,X])=>jf(o,q,X)):jf(o,a,f)}});function ws(e,r){if(e===r)return{valid:!0,data:e};if(e instanceof Date&&r instanceof Date&&+e==+r)return{valid:!0,data:e};if(Dn(e)&&Dn(r)){const o=Object.keys(r),s=Object.keys(e).filter(a=>o.indexOf(a)!==-1),t={...e,...r};for(const a of s){const f=ws(e[a],r[a]);if(!f.valid)return{valid:!1,mergeErrorPath:[a,...f.mergeErrorPath]};t[a]=f.data}return{valid:!0,data:t}}if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return{valid:!1,mergeErrorPath:[]};const o=[];for(let s=0;s<e.length;s++){const t=e[s],a=r[s],f=ws(t,a);if(!f.valid)return{valid:!1,mergeErrorPath:[s,...f.mergeErrorPath]};o.push(f.data)}return{valid:!0,data:o}}return{valid:!1,mergeErrorPath:[]}}function jf(e,r,o){if(r.issues.length&&e.issues.push(...r.issues),o.issues.length&&e.issues.push(...o.issues),Ln(e))return e;const s=ws(r.value,o.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return e.value=s.data,e}const _s=M("$ZodTuple",(e,r)=>{Ve.init(e,r);const o=r.items,s=o.length-[...o].reverse().findIndex(t=>t._zod.optin!=="optional");e._zod.parse=(t,a)=>{const f=t.value;if(!Array.isArray(f))return t.issues.push({input:f,inst:e,expected:"tuple",code:"invalid_type"}),t;t.value=[];const _=[];if(!r.rest){const X=f.length>o.length,ce=f.length<s-1;if(X||ce)return t.issues.push({...X?{code:"too_big",maximum:o.length}:{code:"too_small",minimum:o.length},input:f,inst:e,origin:"array"}),t}let q=-1;for(const X of o){if(q++,q>=f.length&&q>=s)continue;const ce=X._zod.run({value:f[q],issues:[]},a);ce instanceof Promise?_.push(ce.then(ue=>Zo(ue,t,q))):Zo(ce,t,q)}if(r.rest){const X=f.slice(o.length);for(const ce of X){q++;const ue=r.rest._zod.run({value:ce,issues:[]},a);ue instanceof Promise?_.push(ue.then(ze=>Zo(ze,t,q))):Zo(ue,t,q)}}return _.length?Promise.all(_).then(()=>t):t}});function Zo(e,r,o){e.issues.length&&r.issues.push(...Dr(o,e.issues)),r.value[o]=e.value}const Tf=M("$ZodRecord",(e,r)=>{Ve.init(e,r),e._zod.parse=(o,s)=>{const t=o.value;if(!Dn(t))return o.issues.push({expected:"record",code:"invalid_type",input:t,inst:e}),o;const a=[];if(r.keyType._zod.values){const f=r.keyType._zod.values;o.value={};for(const q of f)if(typeof q=="string"||typeof q=="number"||typeof q=="symbol"){const X=r.valueType._zod.run({value:t[q],issues:[]},s);X instanceof Promise?a.push(X.then(ce=>{ce.issues.length&&o.issues.push(...Dr(q,ce.issues)),o.value[q]=ce.value})):(X.issues.length&&o.issues.push(...Dr(q,X.issues)),o.value[q]=X.value)}let _;for(const q in t)f.has(q)||(_=_??[],_.push(q));_&&_.length>0&&o.issues.push({code:"unrecognized_keys",input:t,inst:e,keys:_})}else{o.value={};for(const f of Reflect.ownKeys(t)){if(f==="__proto__")continue;const _=r.keyType._zod.run({value:f,issues:[]},s);if(_ instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(_.issues.length){o.issues.push({code:"invalid_key",origin:"record",issues:_.issues.map(X=>Lr(X,s,cr())),input:f,path:[f],inst:e}),o.value[_.value]=_.value;continue}const q=r.valueType._zod.run({value:t[f],issues:[]},s);q instanceof Promise?a.push(q.then(X=>{X.issues.length&&o.issues.push(...Dr(f,X.issues)),o.value[_.value]=X.value})):(q.issues.length&&o.issues.push(...Dr(f,q.issues)),o.value[_.value]=q.value)}}return a.length?Promise.all(a).then(()=>o):o}}),Of=M("$ZodMap",(e,r)=>{Ve.init(e,r),e._zod.parse=(o,s)=>{const t=o.value;if(!(t instanceof Map))return o.issues.push({expected:"map",code:"invalid_type",input:t,inst:e}),o;const a=[];o.value=new Map;for(const[f,_]of t){const q=r.keyType._zod.run({value:f,issues:[]},s),X=r.valueType._zod.run({value:_,issues:[]},s);q instanceof Promise||X instanceof Promise?a.push(Promise.all([q,X]).then(([ce,ue])=>{Ef(ce,ue,o,f,t,e,s)})):Ef(q,X,o,f,t,e,s)}return a.length?Promise.all(a).then(()=>o):o}});function Ef(e,r,o,s,t,a,f){e.issues.length&&(Mo.has(typeof s)?o.issues.push(...Dr(s,e.issues)):o.issues.push({code:"invalid_key",origin:"map",input:t,inst:a,issues:e.issues.map(_=>Lr(_,f,cr()))})),r.issues.length&&(Mo.has(typeof s)?o.issues.push(...Dr(s,r.issues)):o.issues.push({origin:"map",code:"invalid_element",input:t,inst:a,key:s,issues:r.issues.map(_=>Lr(_,f,cr()))})),o.value.set(e.value,r.value)}const Pf=M("$ZodSet",(e,r)=>{Ve.init(e,r),e._zod.parse=(o,s)=>{const t=o.value;if(!(t instanceof Set))return o.issues.push({input:t,inst:e,expected:"set",code:"invalid_type"}),o;const a=[];o.value=new Set;for(const f of t){const _=r.valueType._zod.run({value:f,issues:[]},s);_ instanceof Promise?a.push(_.then(q=>Cf(q,o))):Cf(_,o)}return a.length?Promise.all(a).then(()=>o):o}});function Cf(e,r){e.issues.length&&r.issues.push(...e.issues),r.value.add(e.value)}const Uf=M("$ZodEnum",(e,r)=>{Ve.init(e,r);const o=Ba(r.entries),s=new Set(o);e._zod.values=s,e._zod.pattern=new RegExp(`^(${o.filter(t=>Mo.has(typeof t)).map(t=>typeof t=="string"?wn(t):t.toString()).join("|")})$`),e._zod.parse=(t,a)=>{const f=t.value;return s.has(f)||t.issues.push({code:"invalid_value",values:o,input:f,inst:e}),t}}),Mf=M("$ZodLiteral",(e,r)=>{if(Ve.init(e,r),r.values.length===0)throw new Error("Cannot create literal schema with no valid values");e._zod.values=new Set(r.values),e._zod.pattern=new RegExp(`^(${r.values.map(o=>typeof o=="string"?wn(o):o?wn(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,s)=>{const t=o.value;return e._zod.values.has(t)||o.issues.push({code:"invalid_value",values:r.values,input:t,inst:e}),o}}),Af=M("$ZodFile",(e,r)=>{Ve.init(e,r),e._zod.parse=(o,s)=>{const t=o.value;return t instanceof File||o.issues.push({expected:"file",code:"invalid_type",input:t,inst:e}),o}}),Df=M("$ZodTransform",(e,r)=>{Ve.init(e,r),e._zod.parse=(o,s)=>{if(s.direction==="backward")throw new To(e.constructor.name);const t=r.transform(o.value,o);if(s.async)return(t instanceof Promise?t:Promise.resolve(t)).then(f=>(o.value=f,o));if(t instanceof Promise)throw new Mn;return o.value=t,o}});function Lf(e,r){return e.issues.length&&r===void 0?{issues:[],value:void 0}:e}const Zf=M("$ZodOptional",(e,r)=>{Ve.init(e,r),e._zod.optin="optional",e._zod.optout="optional",ot(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),ot(e._zod,"pattern",()=>{const o=r.innerType._zod.pattern;return o?new RegExp(`^(${Po(o.source)})?$`):void 0}),e._zod.parse=(o,s)=>{if(r.innerType._zod.optin==="optional"){const t=r.innerType._zod.run(o,s);return t instanceof Promise?t.then(a=>Lf(a,o.value)):Lf(t,o.value)}return o.value===void 0?o:r.innerType._zod.run(o,s)}}),Rf=M("$ZodNullable",(e,r)=>{Ve.init(e,r),ot(e._zod,"optin",()=>r.innerType._zod.optin),ot(e._zod,"optout",()=>r.innerType._zod.optout),ot(e._zod,"pattern",()=>{const o=r.innerType._zod.pattern;return o?new RegExp(`^(${Po(o.source)}|null)$`):void 0}),ot(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),e._zod.parse=(o,s)=>o.value===null?o:r.innerType._zod.run(o,s)}),qf=M("$ZodDefault",(e,r)=>{Ve.init(e,r),e._zod.optin="optional",ot(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(o,s)=>{if(s.direction==="backward")return r.innerType._zod.run(o,s);if(o.value===void 0)return o.value=r.defaultValue,o;const t=r.innerType._zod.run(o,s);return t instanceof Promise?t.then(a=>Ff(a,r)):Ff(t,r)}});function Ff(e,r){return e.value===void 0&&(e.value=r.defaultValue),e}const Wf=M("$ZodPrefault",(e,r)=>{Ve.init(e,r),e._zod.optin="optional",ot(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(o,s)=>(s.direction==="backward"||o.value===void 0&&(o.value=r.defaultValue),r.innerType._zod.run(o,s))}),Vf=M("$ZodNonOptional",(e,r)=>{Ve.init(e,r),ot(e._zod,"values",()=>{const o=r.innerType._zod.values;return o?new Set([...o].filter(s=>s!==void 0)):void 0}),e._zod.parse=(o,s)=>{const t=r.innerType._zod.run(o,s);return t instanceof Promise?t.then(a=>Qf(a,e)):Qf(t,e)}});function Qf(e,r){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:r}),e}const Gf=M("$ZodSuccess",(e,r)=>{Ve.init(e,r),e._zod.parse=(o,s)=>{if(s.direction==="backward")throw new To("ZodSuccess");const t=r.innerType._zod.run(o,s);return t instanceof Promise?t.then(a=>(o.value=a.issues.length===0,o)):(o.value=t.issues.length===0,o)}}),Jf=M("$ZodCatch",(e,r)=>{Ve.init(e,r),ot(e._zod,"optin",()=>r.innerType._zod.optin),ot(e._zod,"optout",()=>r.innerType._zod.optout),ot(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(o,s)=>{if(s.direction==="backward")return r.innerType._zod.run(o,s);const t=r.innerType._zod.run(o,s);return t instanceof Promise?t.then(a=>(o.value=a.value,a.issues.length&&(o.value=r.catchValue({...o,error:{issues:a.issues.map(f=>Lr(f,s,cr()))},input:o.value}),o.issues=[]),o)):(o.value=t.value,t.issues.length&&(o.value=r.catchValue({...o,error:{issues:t.issues.map(a=>Lr(a,s,cr()))},input:o.value}),o.issues=[]),o)}}),Bf=M("$ZodNaN",(e,r)=>{Ve.init(e,r),e._zod.parse=(o,s)=>((typeof o.value!="number"||!Number.isNaN(o.value))&&o.issues.push({input:o.value,inst:e,expected:"nan",code:"invalid_type"}),o)}),Yf=M("$ZodPipe",(e,r)=>{Ve.init(e,r),ot(e._zod,"values",()=>r.in._zod.values),ot(e._zod,"optin",()=>r.in._zod.optin),ot(e._zod,"optout",()=>r.out._zod.optout),ot(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(o,s)=>{if(s.direction==="backward"){const a=r.out._zod.run(o,s);return a instanceof Promise?a.then(f=>Ro(f,r.in,s)):Ro(a,r.in,s)}const t=r.in._zod.run(o,s);return t instanceof Promise?t.then(a=>Ro(a,r.out,s)):Ro(t,r.out,s)}});function Ro(e,r,o){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:e.value,issues:e.issues},o)}const ks=M("$ZodCodec",(e,r)=>{Ve.init(e,r),ot(e._zod,"values",()=>r.in._zod.values),ot(e._zod,"optin",()=>r.in._zod.optin),ot(e._zod,"optout",()=>r.out._zod.optout),ot(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(o,s)=>{if((s.direction||"forward")==="forward"){const a=r.in._zod.run(o,s);return a instanceof Promise?a.then(f=>qo(f,r,s)):qo(a,r,s)}else{const a=r.out._zod.run(o,s);return a instanceof Promise?a.then(f=>qo(f,r,s)):qo(a,r,s)}}});function qo(e,r,o){if(e.issues.length)return e.aborted=!0,e;if((o.direction||"forward")==="forward"){const t=r.transform(e.value,e);return t instanceof Promise?t.then(a=>Fo(e,a,r.out,o)):Fo(e,t,r.out,o)}else{const t=r.reverseTransform(e.value,e);return t instanceof Promise?t.then(a=>Fo(e,a,r.in,o)):Fo(e,t,r.in,o)}}function Fo(e,r,o,s){return e.issues.length?(e.aborted=!0,e):o._zod.run({value:r,issues:e.issues},s)}const Kf=M("$ZodReadonly",(e,r)=>{Ve.init(e,r),ot(e._zod,"propValues",()=>r.innerType._zod.propValues),ot(e._zod,"values",()=>r.innerType._zod.values),ot(e._zod,"optin",()=>r.innerType._zod.optin),ot(e._zod,"optout",()=>r.innerType._zod.optout),e._zod.parse=(o,s)=>{if(s.direction==="backward")return r.innerType._zod.run(o,s);const t=r.innerType._zod.run(o,s);return t instanceof Promise?t.then(Hf):Hf(t)}});function Hf(e){return e.value=Object.freeze(e.value),e}const Xf=M("$ZodTemplateLiteral",(e,r)=>{Ve.init(e,r);const o=[];for(const s of r.parts)if(typeof s=="object"&&s!==null){if(!s._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...s._zod.traits].shift()}`);const t=s._zod.pattern instanceof RegExp?s._zod.pattern.source:s._zod.pattern;if(!t)throw new Error(`Invalid template literal part: ${s._zod.traits}`);const a=t.startsWith("^")?1:0,f=t.endsWith("$")?t.length-1:t.length;o.push(t.slice(a,f))}else if(s===null||hl.has(typeof s))o.push(wn(`${s}`));else throw new Error(`Invalid template literal part: ${s}`);e._zod.pattern=new RegExp(`^${o.join("")}$`),e._zod.parse=(s,t)=>typeof s.value!="string"?(s.issues.push({input:s.value,inst:e,expected:"template_literal",code:"invalid_type"}),s):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(s.value)||s.issues.push({input:s.value,inst:e,code:"invalid_format",format:r.format??"template_literal",pattern:e._zod.pattern.source}),s)}),em=M("$ZodFunction",(e,r)=>(Ve.init(e,r),e._def=r,e._zod.def=r,e.implement=o=>{if(typeof o!="function")throw new Error("implement() must be called with a function");return function(...s){const t=e._def.input?ts(e._def.input,s):s,a=Reflect.apply(o,this,t);return e._def.output?ts(e._def.output,a):a}},e.implementAsync=o=>{if(typeof o!="function")throw new Error("implementAsync() must be called with a function");return async function(...s){const t=e._def.input?await rs(e._def.input,s):s,a=await Reflect.apply(o,this,t);return e._def.output?await rs(e._def.output,a):a}},e._zod.parse=(o,s)=>typeof o.value!="function"?(o.issues.push({code:"invalid_type",expected:"function",input:o.value,inst:e}),o):(e._def.output&&e._def.output._zod.def.type==="promise"?o.value=e.implementAsync(o.value):o.value=e.implement(o.value),o),e.input=(...o)=>{const s=e.constructor;return Array.isArray(o[0])?new s({type:"function",input:new _s({type:"tuple",items:o[0],rest:o[1]}),output:e._def.output}):new s({type:"function",input:o[0],output:e._def.output})},e.output=o=>{const s=e.constructor;return new s({type:"function",input:e._def.input,output:o})},e)),tm=M("$ZodPromise",(e,r)=>{Ve.init(e,r),e._zod.parse=(o,s)=>Promise.resolve(o.value).then(t=>r.innerType._zod.run({value:t,issues:[]},s))}),rm=M("$ZodLazy",(e,r)=>{Ve.init(e,r),ot(e._zod,"innerType",()=>r.getter()),ot(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),ot(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),ot(e._zod,"optin",()=>e._zod.innerType._zod.optin??void 0),ot(e._zod,"optout",()=>e._zod.innerType._zod.optout??void 0),e._zod.parse=(o,s)=>e._zod.innerType._zod.run(o,s)}),nm=M("$ZodCustom",(e,r)=>{Mt.init(e,r),Ve.init(e,r),e._zod.parse=(o,s)=>o,e._zod.check=o=>{const s=o.value,t=r.fn(s);if(t instanceof Promise)return t.then(a=>im(a,o,s,e));im(t,o,s,e)}});function im(e,r,o,s){if(!e){const t={code:"custom",input:o,inst:s,path:[...s._zod.def.path??[]],continue:!s._zod.def.abort};s._zod.def.params&&(t.params=s._zod.def.params),r.issues.push(mi(t))}}const Ny=()=>{const e={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"};return t=>{switch(t.code){case"invalid_type":return`مدخلات غير مقبولة: يفترض إدخال ${t.expected}، ولكن تم إدخال ${o(t.input)}`;case"invalid_value":return t.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${qe(t.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?` أكبر من اللازم: يفترض أن تكون ${t.origin??"القيمة"} ${a} ${t.maximum.toString()} ${f.unit??"عنصر"}`:`أكبر من اللازم: يفترض أن تكون ${t.origin??"القيمة"} ${a} ${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`أصغر من اللازم: يفترض لـ ${t.origin} أن يكون ${a} ${t.minimum.toString()} ${f.unit}`:`أصغر من اللازم: يفترض لـ ${t.origin} أن يكون ${a} ${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`نَص غير مقبول: يجب أن يبدأ بـ "${t.prefix}"`:a.format==="ends_with"?`نَص غير مقبول: يجب أن ينتهي بـ "${a.suffix}"`:a.format==="includes"?`نَص غير مقبول: يجب أن يتضمَّن "${a.includes}"`:a.format==="regex"?`نَص غير مقبول: يجب أن يطابق النمط ${a.pattern}`:`${s[a.format]??t.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${t.divisor}`;case"unrecognized_keys":return`معرف${t.keys.length>1?"ات":""} غريب${t.keys.length>1?"ة":""}: ${he(t.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${t.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${t.origin}`;default:return"مدخل غير مقبول"}}};function jy(){return{localeError:Ny()}}const Ty=()=>{const e={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return t=>{switch(t.code){case"invalid_type":return`Yanlış dəyər: gözlənilən ${t.expected}, daxil olan ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Yanlış dəyər: gözlənilən ${qe(t.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Çox böyük: gözlənilən ${t.origin??"dəyər"} ${a}${t.maximum.toString()} ${f.unit??"element"}`:`Çox böyük: gözlənilən ${t.origin??"dəyər"} ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Çox kiçik: gözlənilən ${t.origin} ${a}${t.minimum.toString()} ${f.unit}`:`Çox kiçik: gözlənilən ${t.origin} ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Yanlış mətn: "${a.prefix}" ilə başlamalıdır`:a.format==="ends_with"?`Yanlış mətn: "${a.suffix}" ilə bitməlidir`:a.format==="includes"?`Yanlış mətn: "${a.includes}" daxil olmalıdır`:a.format==="regex"?`Yanlış mətn: ${a.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${s[a.format]??t.format}`}case"not_multiple_of":return`Yanlış ədəd: ${t.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${t.keys.length>1?"lar":""}: ${he(t.keys,", ")}`;case"invalid_key":return`${t.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${t.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};function Oy(){return{localeError:Ty()}}function om(e,r,o,s){const t=Math.abs(e),a=t%10,f=t%100;return f>=11&&f<=19?s:a===1?r:a>=2&&a<=4?o:s}const Ey=()=>{const e={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"лік";case"object":{if(Array.isArray(t))return"масіў";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",jwt:"JWT",template_literal:"увод"};return t=>{switch(t.code){case"invalid_type":return`Няправільны ўвод: чакаўся ${t.expected}, атрымана ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Няправільны ўвод: чакалася ${qe(t.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);if(f){const _=Number(t.maximum),q=om(_,f.unit.one,f.unit.few,f.unit.many);return`Занадта вялікі: чакалася, што ${t.origin??"значэнне"} павінна ${f.verb} ${a}${t.maximum.toString()} ${q}`}return`Занадта вялікі: чакалася, што ${t.origin??"значэнне"} павінна быць ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);if(f){const _=Number(t.minimum),q=om(_,f.unit.one,f.unit.few,f.unit.many);return`Занадта малы: чакалася, што ${t.origin} павінна ${f.verb} ${a}${t.minimum.toString()} ${q}`}return`Занадта малы: чакалася, што ${t.origin} павінна быць ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Няправільны радок: павінен пачынацца з "${a.prefix}"`:a.format==="ends_with"?`Няправільны радок: павінен заканчвацца на "${a.suffix}"`:a.format==="includes"?`Няправільны радок: павінен змяшчаць "${a.includes}"`:a.format==="regex"?`Няправільны радок: павінен адпавядаць шаблону ${a.pattern}`:`Няправільны ${s[a.format]??t.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${t.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${t.keys.length>1?"ключы":"ключ"}: ${he(t.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${t.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${t.origin}`;default:return"Няправільны ўвод"}}};function Py(){return{localeError:Ey()}}const Cy=()=>{const e={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"entrada",email:"adreça electrònica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adreça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return t=>{switch(t.code){case"invalid_type":return`Tipus invàlid: s'esperava ${t.expected}, s'ha rebut ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Valor invàlid: s'esperava ${qe(t.values[0])}`:`Opció invàlida: s'esperava una de ${he(t.values," o ")}`;case"too_big":{const a=t.inclusive?"com a màxim":"menys de",f=r(t.origin);return f?`Massa gran: s'esperava que ${t.origin??"el valor"} contingués ${a} ${t.maximum.toString()} ${f.unit??"elements"}`:`Massa gran: s'esperava que ${t.origin??"el valor"} fos ${a} ${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?"com a mínim":"més de",f=r(t.origin);return f?`Massa petit: s'esperava que ${t.origin} contingués ${a} ${t.minimum.toString()} ${f.unit}`:`Massa petit: s'esperava que ${t.origin} fos ${a} ${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Format invàlid: ha de començar amb "${a.prefix}"`:a.format==="ends_with"?`Format invàlid: ha d'acabar amb "${a.suffix}"`:a.format==="includes"?`Format invàlid: ha d'incloure "${a.includes}"`:a.format==="regex"?`Format invàlid: ha de coincidir amb el patró ${a.pattern}`:`Format invàlid per a ${s[a.format]??t.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${t.divisor}`;case"unrecognized_keys":return`Clau${t.keys.length>1?"s":""} no reconeguda${t.keys.length>1?"s":""}: ${he(t.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${t.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${t.origin}`;default:return"Entrada invàlida"}}};function Uy(){return{localeError:Cy()}}const My=()=>{const e={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"číslo";case"string":return"řetězec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":{if(Array.isArray(t))return"pole";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"regulární výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",jwt:"JWT",template_literal:"vstup"};return t=>{switch(t.code){case"invalid_type":return`Neplatný vstup: očekáváno ${t.expected}, obdrženo ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Neplatný vstup: očekáváno ${qe(t.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Hodnota je příliš velká: ${t.origin??"hodnota"} musí mít ${a}${t.maximum.toString()} ${f.unit??"prvků"}`:`Hodnota je příliš velká: ${t.origin??"hodnota"} musí být ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Hodnota je příliš malá: ${t.origin??"hodnota"} musí mít ${a}${t.minimum.toString()} ${f.unit??"prvků"}`:`Hodnota je příliš malá: ${t.origin??"hodnota"} musí být ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Neplatný řetězec: musí začínat na "${a.prefix}"`:a.format==="ends_with"?`Neplatný řetězec: musí končit na "${a.suffix}"`:a.format==="includes"?`Neplatný řetězec: musí obsahovat "${a.includes}"`:a.format==="regex"?`Neplatný řetězec: musí odpovídat vzoru ${a.pattern}`:`Neplatný formát ${s[a.format]??t.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${t.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${he(t.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${t.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${t.origin}`;default:return"Neplatný vstup"}}};function Ay(){return{localeError:My()}}const Dy=()=>{const e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}},r={string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};function o(f){return e[f]??null}function s(f){return r[f]??f}const t=f=>{const _=typeof f;switch(_){case"number":return Number.isNaN(f)?"NaN":"tal";case"object":return Array.isArray(f)?"liste":f===null?"null":Object.getPrototypeOf(f)!==Object.prototype&&f.constructor?f.constructor.name:"objekt"}return _},a={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslæt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return f=>{switch(f.code){case"invalid_type":return`Ugyldigt input: forventede ${s(f.expected)}, fik ${s(t(f.input))}`;case"invalid_value":return f.values.length===1?`Ugyldig værdi: forventede ${qe(f.values[0])}`:`Ugyldigt valg: forventede en af følgende ${he(f.values,"|")}`;case"too_big":{const _=f.inclusive?"<=":"<",q=o(f.origin),X=s(f.origin);return q?`For stor: forventede ${X??"value"} ${q.verb} ${_} ${f.maximum.toString()} ${q.unit??"elementer"}`:`For stor: forventede ${X??"value"} havde ${_} ${f.maximum.toString()}`}case"too_small":{const _=f.inclusive?">=":">",q=o(f.origin),X=s(f.origin);return q?`For lille: forventede ${X} ${q.verb} ${_} ${f.minimum.toString()} ${q.unit}`:`For lille: forventede ${X} havde ${_} ${f.minimum.toString()}`}case"invalid_format":{const _=f;return _.format==="starts_with"?`Ugyldig streng: skal starte med "${_.prefix}"`:_.format==="ends_with"?`Ugyldig streng: skal ende med "${_.suffix}"`:_.format==="includes"?`Ugyldig streng: skal indeholde "${_.includes}"`:_.format==="regex"?`Ugyldig streng: skal matche mønsteret ${_.pattern}`:`Ugyldig ${a[_.format]??f.format}`}case"not_multiple_of":return`Ugyldigt tal: skal være deleligt med ${f.divisor}`;case"unrecognized_keys":return`${f.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${he(f.keys,", ")}`;case"invalid_key":return`Ugyldig nøgle i ${f.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig værdi i ${f.origin}`;default:return"Ugyldigt input"}}};function Ly(){return{localeError:Dy()}}const Zy=()=>{const e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"Zahl";case"object":{if(Array.isArray(t))return"Array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"};return t=>{switch(t.code){case"invalid_type":return`Ungültige Eingabe: erwartet ${t.expected}, erhalten ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Ungültige Eingabe: erwartet ${qe(t.values[0])}`:`Ungültige Option: erwartet eine von ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Zu groß: erwartet, dass ${t.origin??"Wert"} ${a}${t.maximum.toString()} ${f.unit??"Elemente"} hat`:`Zu groß: erwartet, dass ${t.origin??"Wert"} ${a}${t.maximum.toString()} ist`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Zu klein: erwartet, dass ${t.origin} ${a}${t.minimum.toString()} ${f.unit} hat`:`Zu klein: erwartet, dass ${t.origin} ${a}${t.minimum.toString()} ist`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Ungültiger String: muss mit "${a.prefix}" beginnen`:a.format==="ends_with"?`Ungültiger String: muss mit "${a.suffix}" enden`:a.format==="includes"?`Ungültiger String: muss "${a.includes}" enthalten`:a.format==="regex"?`Ungültiger String: muss dem Muster ${a.pattern} entsprechen`:`Ungültig: ${s[a.format]??t.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${t.divisor} sein`;case"unrecognized_keys":return`${t.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${he(t.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${t.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${t.origin}`;default:return"Ungültige Eingabe"}}};function Ry(){return{localeError:Zy()}}const qy=e=>{const r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return r},Fy=()=>{const e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"}};function r(s){return e[s]??null}const o={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return s=>{switch(s.code){case"invalid_type":return`Invalid input: expected ${s.expected}, received ${qy(s.input)}`;case"invalid_value":return s.values.length===1?`Invalid input: expected ${qe(s.values[0])}`:`Invalid option: expected one of ${he(s.values,"|")}`;case"too_big":{const t=s.inclusive?"<=":"<",a=r(s.origin);return a?`Too big: expected ${s.origin??"value"} to have ${t}${s.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${s.origin??"value"} to be ${t}${s.maximum.toString()}`}case"too_small":{const t=s.inclusive?">=":">",a=r(s.origin);return a?`Too small: expected ${s.origin} to have ${t}${s.minimum.toString()} ${a.unit}`:`Too small: expected ${s.origin} to be ${t}${s.minimum.toString()}`}case"invalid_format":{const t=s;return t.format==="starts_with"?`Invalid string: must start with "${t.prefix}"`:t.format==="ends_with"?`Invalid string: must end with "${t.suffix}"`:t.format==="includes"?`Invalid string: must include "${t.includes}"`:t.format==="regex"?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${o[t.format]??s.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${s.divisor}`;case"unrecognized_keys":return`Unrecognized key${s.keys.length>1?"s":""}: ${he(s.keys,", ")}`;case"invalid_key":return`Invalid key in ${s.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${s.origin}`;default:return"Invalid input"}}};function am(){return{localeError:Fy()}}const Wy=e=>{const r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"nombro";case"object":{if(Array.isArray(e))return"tabelo";if(e===null)return"senvalora";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return r},Vy=()=>{const e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function r(s){return e[s]??null}const o={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"};return s=>{switch(s.code){case"invalid_type":return`Nevalida enigo: atendiĝis ${s.expected}, riceviĝis ${Wy(s.input)}`;case"invalid_value":return s.values.length===1?`Nevalida enigo: atendiĝis ${qe(s.values[0])}`:`Nevalida opcio: atendiĝis unu el ${he(s.values,"|")}`;case"too_big":{const t=s.inclusive?"<=":"<",a=r(s.origin);return a?`Tro granda: atendiĝis ke ${s.origin??"valoro"} havu ${t}${s.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendiĝis ke ${s.origin??"valoro"} havu ${t}${s.maximum.toString()}`}case"too_small":{const t=s.inclusive?">=":">",a=r(s.origin);return a?`Tro malgranda: atendiĝis ke ${s.origin} havu ${t}${s.minimum.toString()} ${a.unit}`:`Tro malgranda: atendiĝis ke ${s.origin} estu ${t}${s.minimum.toString()}`}case"invalid_format":{const t=s;return t.format==="starts_with"?`Nevalida karaktraro: devas komenciĝi per "${t.prefix}"`:t.format==="ends_with"?`Nevalida karaktraro: devas finiĝi per "${t.suffix}"`:t.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${t.includes}"`:t.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${t.pattern}`:`Nevalida ${o[t.format]??s.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${s.divisor}`;case"unrecognized_keys":return`Nekonata${s.keys.length>1?"j":""} ŝlosilo${s.keys.length>1?"j":""}: ${he(s.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${s.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${s.origin}`;default:return"Nevalida enigo"}}};function Qy(){return{localeError:Vy()}}const Gy=()=>{const e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}},r={string:"texto",number:"número",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"número grande",symbol:"símbolo",undefined:"indefinido",null:"nulo",function:"función",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeración",union:"unión",literal:"literal",promise:"promesa",void:"vacío",never:"nunca",unknown:"desconocido",any:"cualquiera"};function o(f){return e[f]??null}function s(f){return r[f]??f}const t=f=>{const _=typeof f;switch(_){case"number":return Number.isNaN(f)?"NaN":"number";case"object":return Array.isArray(f)?"array":f===null?"null":Object.getPrototypeOf(f)!==Object.prototype?f.constructor.name:"object"}return _},a={regex:"entrada",email:"dirección de correo electrónico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duración ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return f=>{switch(f.code){case"invalid_type":return`Entrada inválida: se esperaba ${s(f.expected)}, recibido ${s(t(f.input))}`;case"invalid_value":return f.values.length===1?`Entrada inválida: se esperaba ${qe(f.values[0])}`:`Opción inválida: se esperaba una de ${he(f.values,"|")}`;case"too_big":{const _=f.inclusive?"<=":"<",q=o(f.origin),X=s(f.origin);return q?`Demasiado grande: se esperaba que ${X??"valor"} tuviera ${_}${f.maximum.toString()} ${q.unit??"elementos"}`:`Demasiado grande: se esperaba que ${X??"valor"} fuera ${_}${f.maximum.toString()}`}case"too_small":{const _=f.inclusive?">=":">",q=o(f.origin),X=s(f.origin);return q?`Demasiado pequeño: se esperaba que ${X} tuviera ${_}${f.minimum.toString()} ${q.unit}`:`Demasiado pequeño: se esperaba que ${X} fuera ${_}${f.minimum.toString()}`}case"invalid_format":{const _=f;return _.format==="starts_with"?`Cadena inválida: debe comenzar con "${_.prefix}"`:_.format==="ends_with"?`Cadena inválida: debe terminar en "${_.suffix}"`:_.format==="includes"?`Cadena inválida: debe incluir "${_.includes}"`:_.format==="regex"?`Cadena inválida: debe coincidir con el patrón ${_.pattern}`:`Inválido ${a[_.format]??f.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${f.divisor}`;case"unrecognized_keys":return`Llave${f.keys.length>1?"s":""} desconocida${f.keys.length>1?"s":""}: ${he(f.keys,", ")}`;case"invalid_key":return`Llave inválida en ${s(f.origin)}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${s(f.origin)}`;default:return"Entrada inválida"}}};function Jy(){return{localeError:Gy()}}const By=()=>{const e={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"عدد";case"object":{if(Array.isArray(t))return"آرایه";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",jwt:"JWT",template_literal:"ورودی"};return t=>{switch(t.code){case"invalid_type":return`ورودی نامعتبر: می‌بایست ${t.expected} می‌بود، ${o(t.input)} دریافت شد`;case"invalid_value":return t.values.length===1?`ورودی نامعتبر: می‌بایست ${qe(t.values[0])} می‌بود`:`گزینه نامعتبر: می‌بایست یکی از ${he(t.values,"|")} می‌بود`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`خیلی بزرگ: ${t.origin??"مقدار"} باید ${a}${t.maximum.toString()} ${f.unit??"عنصر"} باشد`:`خیلی بزرگ: ${t.origin??"مقدار"} باید ${a}${t.maximum.toString()} باشد`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`خیلی کوچک: ${t.origin} باید ${a}${t.minimum.toString()} ${f.unit} باشد`:`خیلی کوچک: ${t.origin} باید ${a}${t.minimum.toString()} باشد`}case"invalid_format":{const a=t;return a.format==="starts_with"?`رشته نامعتبر: باید با "${a.prefix}" شروع شود`:a.format==="ends_with"?`رشته نامعتبر: باید با "${a.suffix}" تمام شود`:a.format==="includes"?`رشته نامعتبر: باید شامل "${a.includes}" باشد`:a.format==="regex"?`رشته نامعتبر: باید با الگوی ${a.pattern} مطابقت داشته باشد`:`${s[a.format]??t.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${t.divisor} باشد`;case"unrecognized_keys":return`کلید${t.keys.length>1?"های":""} ناشناس: ${he(t.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${t.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${t.origin}`;default:return"ورودی نامعتبر"}}};function Yy(){return{localeError:By()}}const Ky=()=>{const e={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"säännöllinen lauseke",email:"sähköpostiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-päivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"};return t=>{switch(t.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${t.expected}, oli ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Virheellinen syöte: täytyy olla ${qe(t.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Liian suuri: ${f.subject} täytyy olla ${a}${t.maximum.toString()} ${f.unit}`.trim():`Liian suuri: arvon täytyy olla ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Liian pieni: ${f.subject} täytyy olla ${a}${t.minimum.toString()} ${f.unit}`.trim():`Liian pieni: arvon täytyy olla ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Virheellinen syöte: täytyy alkaa "${a.prefix}"`:a.format==="ends_with"?`Virheellinen syöte: täytyy loppua "${a.suffix}"`:a.format==="includes"?`Virheellinen syöte: täytyy sisältää "${a.includes}"`:a.format==="regex"?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${a.pattern}`:`Virheellinen ${s[a.format]??t.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${t.divisor} monikerta`;case"unrecognized_keys":return`${t.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${he(t.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen syöte"}}};function Hy(){return{localeError:Ky()}}const Xy=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"nombre";case"object":{if(Array.isArray(t))return"tableau";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"entrée",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"};return t=>{switch(t.code){case"invalid_type":return`Entrée invalide : ${t.expected} attendu, ${o(t.input)} reçu`;case"invalid_value":return t.values.length===1?`Entrée invalide : ${qe(t.values[0])} attendu`:`Option invalide : une valeur parmi ${he(t.values,"|")} attendue`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Trop grand : ${t.origin??"valeur"} doit ${f.verb} ${a}${t.maximum.toString()} ${f.unit??"élément(s)"}`:`Trop grand : ${t.origin??"valeur"} doit être ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Trop petit : ${t.origin} doit ${f.verb} ${a}${t.minimum.toString()} ${f.unit}`:`Trop petit : ${t.origin} doit être ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Chaîne invalide : doit commencer par "${a.prefix}"`:a.format==="ends_with"?`Chaîne invalide : doit se terminer par "${a.suffix}"`:a.format==="includes"?`Chaîne invalide : doit inclure "${a.includes}"`:a.format==="regex"?`Chaîne invalide : doit correspondre au modèle ${a.pattern}`:`${s[a.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${t.divisor}`;case"unrecognized_keys":return`Clé${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${he(t.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${t.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entrée invalide"}}};function e$(){return{localeError:Xy()}}const t$=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"entrée",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"};return t=>{switch(t.code){case"invalid_type":return`Entrée invalide : attendu ${t.expected}, reçu ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Entrée invalide : attendu ${qe(t.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"≤":"<",f=r(t.origin);return f?`Trop grand : attendu que ${t.origin??"la valeur"} ait ${a}${t.maximum.toString()} ${f.unit}`:`Trop grand : attendu que ${t.origin??"la valeur"} soit ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?"≥":">",f=r(t.origin);return f?`Trop petit : attendu que ${t.origin} ait ${a}${t.minimum.toString()} ${f.unit}`:`Trop petit : attendu que ${t.origin} soit ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Chaîne invalide : doit commencer par "${a.prefix}"`:a.format==="ends_with"?`Chaîne invalide : doit se terminer par "${a.suffix}"`:a.format==="includes"?`Chaîne invalide : doit inclure "${a.includes}"`:a.format==="regex"?`Chaîne invalide : doit correspondre au motif ${a.pattern}`:`${s[a.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${t.divisor}`;case"unrecognized_keys":return`Clé${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${he(t.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${t.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entrée invalide"}}};function r$(){return{localeError:t$()}}const n$=()=>{const e={string:{unit:"אותיות",verb:"לכלול"},file:{unit:"בייטים",verb:"לכלול"},array:{unit:"פריטים",verb:"לכלול"},set:{unit:"פריטים",verb:"לכלול"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"קלט",email:"כתובת אימייל",url:"כתובת רשת",emoji:"אימוג'י",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"תאריך וזמן ISO",date:"תאריך ISO",time:"זמן ISO",duration:"משך זמן ISO",ipv4:"כתובת IPv4",ipv6:"כתובת IPv6",cidrv4:"טווח IPv4",cidrv6:"טווח IPv6",base64:"מחרוזת בבסיס 64",base64url:"מחרוזת בבסיס 64 לכתובות רשת",json_string:"מחרוזת JSON",e164:"מספר E.164",jwt:"JWT",template_literal:"קלט"};return t=>{switch(t.code){case"invalid_type":return`קלט לא תקין: צריך ${t.expected}, התקבל ${o(t.input)}`;case"invalid_value":return t.values.length===1?`קלט לא תקין: צריך ${qe(t.values[0])}`:`קלט לא תקין: צריך אחת מהאפשרויות ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`גדול מדי: ${t.origin??"value"} צריך להיות ${a}${t.maximum.toString()} ${f.unit??"elements"}`:`גדול מדי: ${t.origin??"value"} צריך להיות ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`קטן מדי: ${t.origin} צריך להיות ${a}${t.minimum.toString()} ${f.unit}`:`קטן מדי: ${t.origin} צריך להיות ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`מחרוזת לא תקינה: חייבת להתחיל ב"${a.prefix}"`:a.format==="ends_with"?`מחרוזת לא תקינה: חייבת להסתיים ב "${a.suffix}"`:a.format==="includes"?`מחרוזת לא תקינה: חייבת לכלול "${a.includes}"`:a.format==="regex"?`מחרוזת לא תקינה: חייבת להתאים לתבנית ${a.pattern}`:`${s[a.format]??t.format} לא תקין`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${t.divisor}`;case"unrecognized_keys":return`מפתח${t.keys.length>1?"ות":""} לא מזוה${t.keys.length>1?"ים":"ה"}: ${he(t.keys,", ")}`;case"invalid_key":return`מפתח לא תקין ב${t.origin}`;case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${t.origin}`;default:return"קלט לא תקין"}}};function i$(){return{localeError:n$()}}const o$=()=>{const e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"szám";case"object":{if(Array.isArray(t))return"tömb";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"bemenet",email:"email cím",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO időbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"};return t=>{switch(t.code){case"invalid_type":return`Érvénytelen bemenet: a várt érték ${t.expected}, a kapott érték ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Érvénytelen bemenet: a várt érték ${qe(t.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Túl nagy: ${t.origin??"érték"} mérete túl nagy ${a}${t.maximum.toString()} ${f.unit??"elem"}`:`Túl nagy: a bemeneti érték ${t.origin??"érték"} túl nagy: ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Túl kicsi: a bemeneti érték ${t.origin} mérete túl kicsi ${a}${t.minimum.toString()} ${f.unit}`:`Túl kicsi: a bemeneti érték ${t.origin} túl kicsi ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Érvénytelen string: "${a.prefix}" értékkel kell kezdődnie`:a.format==="ends_with"?`Érvénytelen string: "${a.suffix}" értékkel kell végződnie`:a.format==="includes"?`Érvénytelen string: "${a.includes}" értéket kell tartalmaznia`:a.format==="regex"?`Érvénytelen string: ${a.pattern} mintának kell megfelelnie`:`Érvénytelen ${s[a.format]??t.format}`}case"not_multiple_of":return`Érvénytelen szám: ${t.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${t.keys.length>1?"s":""}: ${he(t.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${t.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${t.origin}`;default:return"Érvénytelen bemenet"}}};function a$(){return{localeError:o$()}}const s$=()=>{const e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"};return t=>{switch(t.code){case"invalid_type":return`Input tidak valid: diharapkan ${t.expected}, diterima ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Input tidak valid: diharapkan ${qe(t.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Terlalu besar: diharapkan ${t.origin??"value"} memiliki ${a}${t.maximum.toString()} ${f.unit??"elemen"}`:`Terlalu besar: diharapkan ${t.origin??"value"} menjadi ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Terlalu kecil: diharapkan ${t.origin} memiliki ${a}${t.minimum.toString()} ${f.unit}`:`Terlalu kecil: diharapkan ${t.origin} menjadi ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`String tidak valid: harus dimulai dengan "${a.prefix}"`:a.format==="ends_with"?`String tidak valid: harus berakhir dengan "${a.suffix}"`:a.format==="includes"?`String tidak valid: harus menyertakan "${a.includes}"`:a.format==="regex"?`String tidak valid: harus sesuai pola ${a.pattern}`:`${s[a.format]??t.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${t.keys.length>1?"s":""}: ${he(t.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${t.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${t.origin}`;default:return"Input tidak valid"}}};function u$(){return{localeError:s$()}}const c$=e=>{const r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"númer";case"object":{if(Array.isArray(e))return"fylki";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return r},l$=()=>{const e={string:{unit:"stafi",verb:"að hafa"},file:{unit:"bæti",verb:"að hafa"},array:{unit:"hluti",verb:"að hafa"},set:{unit:"hluti",verb:"að hafa"}};function r(s){return e[s]??null}const o={regex:"gildi",email:"netfang",url:"vefslóð",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og tími",date:"ISO dagsetning",time:"ISO tími",duration:"ISO tímalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 tölugildi",jwt:"JWT",template_literal:"gildi"};return s=>{switch(s.code){case"invalid_type":return`Rangt gildi: Þú slóst inn ${c$(s.input)} þar sem á að vera ${s.expected}`;case"invalid_value":return s.values.length===1?`Rangt gildi: gert ráð fyrir ${qe(s.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${he(s.values,"|")}`;case"too_big":{const t=s.inclusive?"<=":"<",a=r(s.origin);return a?`Of stórt: gert er ráð fyrir að ${s.origin??"gildi"} hafi ${t}${s.maximum.toString()} ${a.unit??"hluti"}`:`Of stórt: gert er ráð fyrir að ${s.origin??"gildi"} sé ${t}${s.maximum.toString()}`}case"too_small":{const t=s.inclusive?">=":">",a=r(s.origin);return a?`Of lítið: gert er ráð fyrir að ${s.origin} hafi ${t}${s.minimum.toString()} ${a.unit}`:`Of lítið: gert er ráð fyrir að ${s.origin} sé ${t}${s.minimum.toString()}`}case"invalid_format":{const t=s;return t.format==="starts_with"?`Ógildur strengur: verður að byrja á "${t.prefix}"`:t.format==="ends_with"?`Ógildur strengur: verður að enda á "${t.suffix}"`:t.format==="includes"?`Ógildur strengur: verður að innihalda "${t.includes}"`:t.format==="regex"?`Ógildur strengur: verður að fylgja mynstri ${t.pattern}`:`Rangt ${o[t.format]??s.format}`}case"not_multiple_of":return`Röng tala: verður að vera margfeldi af ${s.divisor}`;case"unrecognized_keys":return`Óþekkt ${s.keys.length>1?"ir lyklar":"ur lykill"}: ${he(s.keys,", ")}`;case"invalid_key":return`Rangur lykill í ${s.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi í ${s.origin}`;default:return"Rangt gildi"}}};function d$(){return{localeError:l$()}}const f$=()=>{const e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"numero";case"object":{if(Array.isArray(t))return"vettore";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"};return t=>{switch(t.code){case"invalid_type":return`Input non valido: atteso ${t.expected}, ricevuto ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Input non valido: atteso ${qe(t.values[0])}`:`Opzione non valida: atteso uno tra ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Troppo grande: ${t.origin??"valore"} deve avere ${a}${t.maximum.toString()} ${f.unit??"elementi"}`:`Troppo grande: ${t.origin??"valore"} deve essere ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Troppo piccolo: ${t.origin} deve avere ${a}${t.minimum.toString()} ${f.unit}`:`Troppo piccolo: ${t.origin} deve essere ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Stringa non valida: deve iniziare con "${a.prefix}"`:a.format==="ends_with"?`Stringa non valida: deve terminare con "${a.suffix}"`:a.format==="includes"?`Stringa non valida: deve includere "${a.includes}"`:a.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${a.pattern}`:`Invalid ${s[a.format]??t.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${t.divisor}`;case"unrecognized_keys":return`Chiav${t.keys.length>1?"i":"e"} non riconosciut${t.keys.length>1?"e":"a"}: ${he(t.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${t.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${t.origin}`;default:return"Input non valido"}}};function m$(){return{localeError:f$()}}const p$=()=>{const e={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"数値";case"object":{if(Array.isArray(t))return"配列";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",jwt:"JWT",template_literal:"入力値"};return t=>{switch(t.code){case"invalid_type":return`無効な入力: ${t.expected}が期待されましたが、${o(t.input)}が入力されました`;case"invalid_value":return t.values.length===1?`無効な入力: ${qe(t.values[0])}が期待されました`:`無効な選択: ${he(t.values,"、")}のいずれかである必要があります`;case"too_big":{const a=t.inclusive?"以下である":"より小さい",f=r(t.origin);return f?`大きすぎる値: ${t.origin??"値"}は${t.maximum.toString()}${f.unit??"要素"}${a}必要があります`:`大きすぎる値: ${t.origin??"値"}は${t.maximum.toString()}${a}必要があります`}case"too_small":{const a=t.inclusive?"以上である":"より大きい",f=r(t.origin);return f?`小さすぎる値: ${t.origin}は${t.minimum.toString()}${f.unit}${a}必要があります`:`小さすぎる値: ${t.origin}は${t.minimum.toString()}${a}必要があります`}case"invalid_format":{const a=t;return a.format==="starts_with"?`無効な文字列: "${a.prefix}"で始まる必要があります`:a.format==="ends_with"?`無効な文字列: "${a.suffix}"で終わる必要があります`:a.format==="includes"?`無効な文字列: "${a.includes}"を含む必要があります`:a.format==="regex"?`無効な文字列: パターン${a.pattern}に一致する必要があります`:`無効な${s[a.format]??t.format}`}case"not_multiple_of":return`無効な数値: ${t.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${t.keys.length>1?"群":""}: ${he(t.keys,"、")}`;case"invalid_key":return`${t.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${t.origin}内の無効な値`;default:return"無効な入力"}}};function g$(){return{localeError:p$()}}const h$=e=>{const r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"რიცხვი";case"object":{if(Array.isArray(e))return"მასივი";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return{string:"სტრინგი",boolean:"ბულეანი",undefined:"undefined",bigint:"bigint",symbol:"symbol",function:"ფუნქცია"}[r]??r},v$=()=>{const e={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function r(s){return e[s]??null}const o={regex:"შეყვანა",email:"ელ-ფოსტის მისამართი",url:"URL",emoji:"ემოჯი",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"თარიღი-დრო",date:"თარიღი",time:"დრო",duration:"ხანგრძლივობა",ipv4:"IPv4 მისამართი",ipv6:"IPv6 მისამართი",cidrv4:"IPv4 დიაპაზონი",cidrv6:"IPv6 დიაპაზონი",base64:"base64-კოდირებული სტრინგი",base64url:"base64url-კოდირებული სტრინგი",json_string:"JSON სტრინგი",e164:"E.164 ნომერი",jwt:"JWT",template_literal:"შეყვანა"};return s=>{switch(s.code){case"invalid_type":return`არასწორი შეყვანა: მოსალოდნელი ${s.expected}, მიღებული ${h$(s.input)}`;case"invalid_value":return s.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${qe(s.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${he(s.values,"|")}-დან`;case"too_big":{const t=s.inclusive?"<=":"<",a=r(s.origin);return a?`ზედმეტად დიდი: მოსალოდნელი ${s.origin??"მნიშვნელობა"} ${a.verb} ${t}${s.maximum.toString()} ${a.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${s.origin??"მნიშვნელობა"} იყოს ${t}${s.maximum.toString()}`}case"too_small":{const t=s.inclusive?">=":">",a=r(s.origin);return a?`ზედმეტად პატარა: მოსალოდნელი ${s.origin} ${a.verb} ${t}${s.minimum.toString()} ${a.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${s.origin} იყოს ${t}${s.minimum.toString()}`}case"invalid_format":{const t=s;return t.format==="starts_with"?`არასწორი სტრინგი: უნდა იწყებოდეს "${t.prefix}"-ით`:t.format==="ends_with"?`არასწორი სტრინგი: უნდა მთავრდებოდეს "${t.suffix}"-ით`:t.format==="includes"?`არასწორი სტრინგი: უნდა შეიცავდეს "${t.includes}"-ს`:t.format==="regex"?`არასწორი სტრინგი: უნდა შეესაბამებოდეს შაბლონს ${t.pattern}`:`არასწორი ${o[t.format]??s.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${s.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${s.keys.length>1?"ები":"ი"}: ${he(s.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${s.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${s.origin}-ში`;default:return"არასწორი შეყვანა"}}};function b$(){return{localeError:v$()}}const y$=()=>{const e={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"មិនមែនជាលេខ (NaN)":"លេខ";case"object":{if(Array.isArray(t))return"អារេ (Array)";if(t===null)return"គ្មានតម្លៃ (null)";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"};return t=>{switch(t.code){case"invalid_type":return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${t.expected} ប៉ុន្តែទទួលបាន ${o(t.input)}`;case"invalid_value":return t.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${qe(t.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`ធំពេក៖ ត្រូវការ ${t.origin??"តម្លៃ"} ${a} ${t.maximum.toString()} ${f.unit??"ធាតុ"}`:`ធំពេក៖ ត្រូវការ ${t.origin??"តម្លៃ"} ${a} ${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`តូចពេក៖ ត្រូវការ ${t.origin} ${a} ${t.minimum.toString()} ${f.unit}`:`តូចពេក៖ ត្រូវការ ${t.origin} ${a} ${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${a.prefix}"`:a.format==="ends_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${a.suffix}"`:a.format==="includes"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${a.includes}"`:a.format==="regex"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${a.pattern}`:`មិនត្រឹមត្រូវ៖ ${s[a.format]??t.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${t.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${he(t.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${t.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${t.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function sm(){return{localeError:y$()}}function $$(){return sm()}const w$=()=>{const e={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",jwt:"JWT",template_literal:"입력"};return t=>{switch(t.code){case"invalid_type":return`잘못된 입력: 예상 타입은 ${t.expected}, 받은 타입은 ${o(t.input)}입니다`;case"invalid_value":return t.values.length===1?`잘못된 입력: 값은 ${qe(t.values[0])} 이어야 합니다`:`잘못된 옵션: ${he(t.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{const a=t.inclusive?"이하":"미만",f=a==="미만"?"이어야 합니다":"여야 합니다",_=r(t.origin),q=_?.unit??"요소";return _?`${t.origin??"값"}이 너무 큽니다: ${t.maximum.toString()}${q} ${a}${f}`:`${t.origin??"값"}이 너무 큽니다: ${t.maximum.toString()} ${a}${f}`}case"too_small":{const a=t.inclusive?"이상":"초과",f=a==="이상"?"이어야 합니다":"여야 합니다",_=r(t.origin),q=_?.unit??"요소";return _?`${t.origin??"값"}이 너무 작습니다: ${t.minimum.toString()}${q} ${a}${f}`:`${t.origin??"값"}이 너무 작습니다: ${t.minimum.toString()} ${a}${f}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`잘못된 문자열: "${a.prefix}"(으)로 시작해야 합니다`:a.format==="ends_with"?`잘못된 문자열: "${a.suffix}"(으)로 끝나야 합니다`:a.format==="includes"?`잘못된 문자열: "${a.includes}"을(를) 포함해야 합니다`:a.format==="regex"?`잘못된 문자열: 정규식 ${a.pattern} 패턴과 일치해야 합니다`:`잘못된 ${s[a.format]??t.format}`}case"not_multiple_of":return`잘못된 숫자: ${t.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${he(t.keys,", ")}`;case"invalid_key":return`잘못된 키: ${t.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${t.origin}`;default:return"잘못된 입력"}}};function _$(){return{localeError:w$()}}const k$=e=>Bi(typeof e,e),Bi=(e,r=void 0)=>{switch(e){case"number":return Number.isNaN(r)?"NaN":"skaičius";case"bigint":return"sveikasis skaičius";case"string":return"eilutė";case"boolean":return"loginė reikšmė";case"undefined":case"void":return"neapibrėžta reikšmė";case"function":return"funkcija";case"symbol":return"simbolis";case"object":return r===void 0?"nežinomas objektas":r===null?"nulinė reikšmė":Array.isArray(r)?"masyvas":Object.getPrototypeOf(r)!==Object.prototype&&r.constructor?r.constructor.name:"objektas";case"null":return"nulinė reikšmė"}return e},Yi=e=>e.charAt(0).toUpperCase()+e.slice(1);function um(e){const r=Math.abs(e),o=r%10,s=r%100;return s>=11&&s<=19||o===0?"many":o===1?"one":"few"}const x$=()=>{const e={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi būti ne ilgesnė kaip",notInclusive:"turi būti trumpesnė kaip"},bigger:{inclusive:"turi būti ne trumpesnė kaip",notInclusive:"turi būti ilgesnė kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi būti ne didesnis kaip",notInclusive:"turi būti mažesnis kaip"},bigger:{inclusive:"turi būti ne mažesnis kaip",notInclusive:"turi būti didesnis kaip"}}},array:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}},set:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}}};function r(s,t,a,f){const _=e[s]??null;return _===null?_:{unit:_.unit[t],verb:_.verb[f][a?"inclusive":"notInclusive"]}}const o={regex:"įvestis",email:"el. pašto adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukmė",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutė",base64url:"base64url užkoduota eilutė",json_string:"JSON eilutė",e164:"E.164 numeris",jwt:"JWT",template_literal:"įvestis"};return s=>{switch(s.code){case"invalid_type":return`Gautas tipas ${k$(s.input)}, o tikėtasi - ${Bi(s.expected)}`;case"invalid_value":return s.values.length===1?`Privalo būti ${qe(s.values[0])}`:`Privalo būti vienas iš ${he(s.values,"|")} pasirinkimų`;case"too_big":{const t=Bi(s.origin),a=r(s.origin,um(Number(s.maximum)),s.inclusive??!1,"smaller");if(a?.verb)return`${Yi(t??s.origin??"reikšmė")} ${a.verb} ${s.maximum.toString()} ${a.unit??"elementų"}`;const f=s.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${Yi(t??s.origin??"reikšmė")} turi būti ${f} ${s.maximum.toString()} ${a?.unit}`}case"too_small":{const t=Bi(s.origin),a=r(s.origin,um(Number(s.minimum)),s.inclusive??!1,"bigger");if(a?.verb)return`${Yi(t??s.origin??"reikšmė")} ${a.verb} ${s.minimum.toString()} ${a.unit??"elementų"}`;const f=s.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${Yi(t??s.origin??"reikšmė")} turi būti ${f} ${s.minimum.toString()} ${a?.unit}`}case"invalid_format":{const t=s;return t.format==="starts_with"?`Eilutė privalo prasidėti "${t.prefix}"`:t.format==="ends_with"?`Eilutė privalo pasibaigti "${t.suffix}"`:t.format==="includes"?`Eilutė privalo įtraukti "${t.includes}"`:t.format==="regex"?`Eilutė privalo atitikti ${t.pattern}`:`Neteisingas ${o[t.format]??s.format}`}case"not_multiple_of":return`Skaičius privalo būti ${s.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${s.keys.length>1?"i":"as"} rakt${s.keys.length>1?"ai":"as"}: ${he(s.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga įvestis";case"invalid_element":{const t=Bi(s.origin);return`${Yi(t??s.origin??"reikšmė")} turi klaidingą įvestį`}default:return"Klaidinga įvestis"}}};function S$(){return{localeError:x$()}}const I$=()=>{const e={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"број";case"object":{if(Array.isArray(t))return"низа";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",jwt:"JWT",template_literal:"внес"};return t=>{switch(t.code){case"invalid_type":return`Грешен внес: се очекува ${t.expected}, примено ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Invalid input: expected ${qe(t.values[0])}`:`Грешана опција: се очекува една ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Премногу голем: се очекува ${t.origin??"вредноста"} да има ${a}${t.maximum.toString()} ${f.unit??"елементи"}`:`Премногу голем: се очекува ${t.origin??"вредноста"} да биде ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Премногу мал: се очекува ${t.origin} да има ${a}${t.minimum.toString()} ${f.unit}`:`Премногу мал: се очекува ${t.origin} да биде ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Неважечка низа: мора да започнува со "${a.prefix}"`:a.format==="ends_with"?`Неважечка низа: мора да завршува со "${a.suffix}"`:a.format==="includes"?`Неважечка низа: мора да вклучува "${a.includes}"`:a.format==="regex"?`Неважечка низа: мора да одгоара на патернот ${a.pattern}`:`Invalid ${s[a.format]??t.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${he(t.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${t.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${t.origin}`;default:return"Грешен внес"}}};function z$(){return{localeError:I$()}}const N$=()=>{const e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"nombor";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"};return t=>{switch(t.code){case"invalid_type":return`Input tidak sah: dijangka ${t.expected}, diterima ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Input tidak sah: dijangka ${qe(t.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Terlalu besar: dijangka ${t.origin??"nilai"} ${f.verb} ${a}${t.maximum.toString()} ${f.unit??"elemen"}`:`Terlalu besar: dijangka ${t.origin??"nilai"} adalah ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Terlalu kecil: dijangka ${t.origin} ${f.verb} ${a}${t.minimum.toString()} ${f.unit}`:`Terlalu kecil: dijangka ${t.origin} adalah ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`String tidak sah: mesti bermula dengan "${a.prefix}"`:a.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${a.suffix}"`:a.format==="includes"?`String tidak sah: mesti mengandungi "${a.includes}"`:a.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${a.pattern}`:`${s[a.format]??t.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${he(t.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${t.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${t.origin}`;default:return"Input tidak sah"}}};function j$(){return{localeError:N$()}}const T$=()=>{const e={string:{unit:"tekens"},file:{unit:"bytes"},array:{unit:"elementen"},set:{unit:"elementen"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"getal";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"};return t=>{switch(t.code){case"invalid_type":return`Ongeldige invoer: verwacht ${t.expected}, ontving ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Ongeldige invoer: verwacht ${qe(t.values[0])}`:`Ongeldige optie: verwacht één van ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Te lang: verwacht dat ${t.origin??"waarde"} ${a}${t.maximum.toString()} ${f.unit??"elementen"} bevat`:`Te lang: verwacht dat ${t.origin??"waarde"} ${a}${t.maximum.toString()} is`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Te kort: verwacht dat ${t.origin} ${a}${t.minimum.toString()} ${f.unit} bevat`:`Te kort: verwacht dat ${t.origin} ${a}${t.minimum.toString()} is`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Ongeldige tekst: moet met "${a.prefix}" beginnen`:a.format==="ends_with"?`Ongeldige tekst: moet op "${a.suffix}" eindigen`:a.format==="includes"?`Ongeldige tekst: moet "${a.includes}" bevatten`:a.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${a.pattern}`:`Ongeldig: ${s[a.format]??t.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${t.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${t.keys.length>1?"s":""}: ${he(t.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${t.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${t.origin}`;default:return"Ongeldige invoer"}}};function O$(){return{localeError:T$()}}const E$=()=>{const e={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"tall";case"object":{if(Array.isArray(t))return"liste";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return t=>{switch(t.code){case"invalid_type":return`Ugyldig input: forventet ${t.expected}, fikk ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Ugyldig verdi: forventet ${qe(t.values[0])}`:`Ugyldig valg: forventet en av ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`For stor(t): forventet ${t.origin??"value"} til å ha ${a}${t.maximum.toString()} ${f.unit??"elementer"}`:`For stor(t): forventet ${t.origin??"value"} til å ha ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`For lite(n): forventet ${t.origin} til å ha ${a}${t.minimum.toString()} ${f.unit}`:`For lite(n): forventet ${t.origin} til å ha ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Ugyldig streng: må starte med "${a.prefix}"`:a.format==="ends_with"?`Ugyldig streng: må ende med "${a.suffix}"`:a.format==="includes"?`Ugyldig streng: må inneholde "${a.includes}"`:a.format==="regex"?`Ugyldig streng: må matche mønsteret ${a.pattern}`:`Ugyldig ${s[a.format]??t.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${he(t.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${t.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${t.origin}`;default:return"Ugyldig input"}}};function P$(){return{localeError:E$()}}const C$=()=>{const e={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"numara";case"object":{if(Array.isArray(t))return"saf";if(t===null)return"gayb";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"giren",email:"epostagâh",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO hengâmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"};return t=>{switch(t.code){case"invalid_type":return`Fâsit giren: umulan ${t.expected}, alınan ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Fâsit giren: umulan ${qe(t.values[0])}`:`Fâsit tercih: mûteberler ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Fazla büyük: ${t.origin??"value"}, ${a}${t.maximum.toString()} ${f.unit??"elements"} sahip olmalıydı.`:`Fazla büyük: ${t.origin??"value"}, ${a}${t.maximum.toString()} olmalıydı.`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Fazla küçük: ${t.origin}, ${a}${t.minimum.toString()} ${f.unit} sahip olmalıydı.`:`Fazla küçük: ${t.origin}, ${a}${t.minimum.toString()} olmalıydı.`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Fâsit metin: "${a.prefix}" ile başlamalı.`:a.format==="ends_with"?`Fâsit metin: "${a.suffix}" ile bitmeli.`:a.format==="includes"?`Fâsit metin: "${a.includes}" ihtivâ etmeli.`:a.format==="regex"?`Fâsit metin: ${a.pattern} nakşına uymalı.`:`Fâsit ${s[a.format]??t.format}`}case"not_multiple_of":return`Fâsit sayı: ${t.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${t.keys.length>1?"s":""}: ${he(t.keys,", ")}`;case"invalid_key":return`${t.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${t.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};function U$(){return{localeError:C$()}}const M$=()=>{const e={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"عدد";case"object":{if(Array.isArray(t))return"ارې";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",jwt:"JWT",template_literal:"ورودي"};return t=>{switch(t.code){case"invalid_type":return`ناسم ورودي: باید ${t.expected} وای, مګر ${o(t.input)} ترلاسه شو`;case"invalid_value":return t.values.length===1?`ناسم ورودي: باید ${qe(t.values[0])} وای`:`ناسم انتخاب: باید یو له ${he(t.values,"|")} څخه وای`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`ډیر لوی: ${t.origin??"ارزښت"} باید ${a}${t.maximum.toString()} ${f.unit??"عنصرونه"} ولري`:`ډیر لوی: ${t.origin??"ارزښت"} باید ${a}${t.maximum.toString()} وي`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`ډیر کوچنی: ${t.origin} باید ${a}${t.minimum.toString()} ${f.unit} ولري`:`ډیر کوچنی: ${t.origin} باید ${a}${t.minimum.toString()} وي`}case"invalid_format":{const a=t;return a.format==="starts_with"?`ناسم متن: باید د "${a.prefix}" سره پیل شي`:a.format==="ends_with"?`ناسم متن: باید د "${a.suffix}" سره پای ته ورسيږي`:a.format==="includes"?`ناسم متن: باید "${a.includes}" ولري`:a.format==="regex"?`ناسم متن: باید د ${a.pattern} سره مطابقت ولري`:`${s[a.format]??t.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${t.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${t.keys.length>1?"کلیډونه":"کلیډ"}: ${he(t.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${t.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${t.origin} کې`;default:return"ناسمه ورودي"}}};function A$(){return{localeError:M$()}}const D$=()=>{const e={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"liczba";case"object":{if(Array.isArray(t))return"tablica";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejście"};return t=>{switch(t.code){case"invalid_type":return`Nieprawidłowe dane wejściowe: oczekiwano ${t.expected}, otrzymano ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${qe(t.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Za duża wartość: oczekiwano, że ${t.origin??"wartość"} będzie mieć ${a}${t.maximum.toString()} ${f.unit??"elementów"}`:`Zbyt duż(y/a/e): oczekiwano, że ${t.origin??"wartość"} będzie wynosić ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Za mała wartość: oczekiwano, że ${t.origin??"wartość"} będzie mieć ${a}${t.minimum.toString()} ${f.unit??"elementów"}`:`Zbyt mał(y/a/e): oczekiwano, że ${t.origin??"wartość"} będzie wynosić ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${a.prefix}"`:a.format==="ends_with"?`Nieprawidłowy ciąg znaków: musi kończyć się na "${a.suffix}"`:a.format==="includes"?`Nieprawidłowy ciąg znaków: musi zawierać "${a.includes}"`:a.format==="regex"?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${a.pattern}`:`Nieprawidłow(y/a/e) ${s[a.format]??t.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${t.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${t.keys.length>1?"s":""}: ${he(t.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${t.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${t.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};function L$(){return{localeError:D$()}}const Z$=()=>{const e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"número";case"object":{if(Array.isArray(t))return"array";if(t===null)return"nulo";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"padrão",email:"endereço de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"duração ISO",ipv4:"endereço IPv4",ipv6:"endereço IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return t=>{switch(t.code){case"invalid_type":return`Tipo inválido: esperado ${t.expected}, recebido ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Entrada inválida: esperado ${qe(t.values[0])}`:`Opção inválida: esperada uma das ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Muito grande: esperado que ${t.origin??"valor"} tivesse ${a}${t.maximum.toString()} ${f.unit??"elementos"}`:`Muito grande: esperado que ${t.origin??"valor"} fosse ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Muito pequeno: esperado que ${t.origin} tivesse ${a}${t.minimum.toString()} ${f.unit}`:`Muito pequeno: esperado que ${t.origin} fosse ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Texto inválido: deve começar com "${a.prefix}"`:a.format==="ends_with"?`Texto inválido: deve terminar com "${a.suffix}"`:a.format==="includes"?`Texto inválido: deve incluir "${a.includes}"`:a.format==="regex"?`Texto inválido: deve corresponder ao padrão ${a.pattern}`:`${s[a.format]??t.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${t.divisor}`;case"unrecognized_keys":return`Chave${t.keys.length>1?"s":""} desconhecida${t.keys.length>1?"s":""}: ${he(t.keys,", ")}`;case"invalid_key":return`Chave inválida em ${t.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${t.origin}`;default:return"Campo inválido"}}};function R$(){return{localeError:Z$()}}function cm(e,r,o,s){const t=Math.abs(e),a=t%10,f=t%100;return f>=11&&f<=19?s:a===1?r:a>=2&&a<=4?o:s}const q$=()=>{const e={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"число";case"object":{if(Array.isArray(t))return"массив";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",jwt:"JWT",template_literal:"ввод"};return t=>{switch(t.code){case"invalid_type":return`Неверный ввод: ожидалось ${t.expected}, получено ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Неверный ввод: ожидалось ${qe(t.values[0])}`:`Неверный вариант: ожидалось одно из ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);if(f){const _=Number(t.maximum),q=cm(_,f.unit.one,f.unit.few,f.unit.many);return`Слишком большое значение: ожидалось, что ${t.origin??"значение"} будет иметь ${a}${t.maximum.toString()} ${q}`}return`Слишком большое значение: ожидалось, что ${t.origin??"значение"} будет ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);if(f){const _=Number(t.minimum),q=cm(_,f.unit.one,f.unit.few,f.unit.many);return`Слишком маленькое значение: ожидалось, что ${t.origin} будет иметь ${a}${t.minimum.toString()} ${q}`}return`Слишком маленькое значение: ожидалось, что ${t.origin} будет ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Неверная строка: должна начинаться с "${a.prefix}"`:a.format==="ends_with"?`Неверная строка: должна заканчиваться на "${a.suffix}"`:a.format==="includes"?`Неверная строка: должна содержать "${a.includes}"`:a.format==="regex"?`Неверная строка: должна соответствовать шаблону ${a.pattern}`:`Неверный ${s[a.format]??t.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${t.divisor}`;case"unrecognized_keys":return`Нераспознанн${t.keys.length>1?"ые":"ый"} ключ${t.keys.length>1?"и":""}: ${he(t.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${t.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${t.origin}`;default:return"Неверные входные данные"}}};function F$(){return{localeError:q$()}}const W$=()=>{const e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"število";case"object":{if(Array.isArray(t))return"tabela";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"vnos",email:"e-poštni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",jwt:"JWT",template_literal:"vnos"};return t=>{switch(t.code){case"invalid_type":return`Neveljaven vnos: pričakovano ${t.expected}, prejeto ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Neveljaven vnos: pričakovano ${qe(t.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Preveliko: pričakovano, da bo ${t.origin??"vrednost"} imelo ${a}${t.maximum.toString()} ${f.unit??"elementov"}`:`Preveliko: pričakovano, da bo ${t.origin??"vrednost"} ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Premajhno: pričakovano, da bo ${t.origin} imelo ${a}${t.minimum.toString()} ${f.unit}`:`Premajhno: pričakovano, da bo ${t.origin} ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Neveljaven niz: mora se začeti z "${a.prefix}"`:a.format==="ends_with"?`Neveljaven niz: mora se končati z "${a.suffix}"`:a.format==="includes"?`Neveljaven niz: mora vsebovati "${a.includes}"`:a.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${a.pattern}`:`Neveljaven ${s[a.format]??t.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${t.divisor}`;case"unrecognized_keys":return`Neprepoznan${t.keys.length>1?"i ključi":" ključ"}: ${he(t.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${t.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${t.origin}`;default:return"Neveljaven vnos"}}};function V$(){return{localeError:W$()}}const Q$=()=>{const e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"antal";case"object":{if(Array.isArray(t))return"lista";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"};return t=>{switch(t.code){case"invalid_type":return`Ogiltig inmatning: förväntat ${t.expected}, fick ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Ogiltig inmatning: förväntat ${qe(t.values[0])}`:`Ogiltigt val: förväntade en av ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`För stor(t): förväntade ${t.origin??"värdet"} att ha ${a}${t.maximum.toString()} ${f.unit??"element"}`:`För stor(t): förväntat ${t.origin??"värdet"} att ha ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`För lite(t): förväntade ${t.origin??"värdet"} att ha ${a}${t.minimum.toString()} ${f.unit}`:`För lite(t): förväntade ${t.origin??"värdet"} att ha ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Ogiltig sträng: måste börja med "${a.prefix}"`:a.format==="ends_with"?`Ogiltig sträng: måste sluta med "${a.suffix}"`:a.format==="includes"?`Ogiltig sträng: måste innehålla "${a.includes}"`:a.format==="regex"?`Ogiltig sträng: måste matcha mönstret "${a.pattern}"`:`Ogiltig(t) ${s[a.format]??t.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${he(t.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${t.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${t.origin??"värdet"}`;default:return"Ogiltig input"}}};function G$(){return{localeError:Q$()}}const J$=()=>{const e={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"எண் அல்லாதது":"எண்";case"object":{if(Array.isArray(t))return"அணி";if(t===null)return"வெறுமை";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",jwt:"JWT",template_literal:"input"};return t=>{switch(t.code){case"invalid_type":return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${t.expected}, பெறப்பட்டது ${o(t.input)}`;case"invalid_value":return t.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${qe(t.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${he(t.values,"|")} இல் ஒன்று`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${t.origin??"மதிப்பு"} ${a}${t.maximum.toString()} ${f.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${t.origin??"மதிப்பு"} ${a}${t.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${t.origin} ${a}${t.minimum.toString()} ${f.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${t.origin} ${a}${t.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{const a=t;return a.format==="starts_with"?`தவறான சரம்: "${a.prefix}" இல் தொடங்க வேண்டும்`:a.format==="ends_with"?`தவறான சரம்: "${a.suffix}" இல் முடிவடைய வேண்டும்`:a.format==="includes"?`தவறான சரம்: "${a.includes}" ஐ உள்ளடக்க வேண்டும்`:a.format==="regex"?`தவறான சரம்: ${a.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${s[a.format]??t.format}`}case"not_multiple_of":return`தவறான எண்: ${t.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${t.keys.length>1?"கள்":""}: ${he(t.keys,", ")}`;case"invalid_key":return`${t.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${t.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};function B$(){return{localeError:J$()}}const Y$=()=>{const e={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"ไม่ใช่ตัวเลข (NaN)":"ตัวเลข";case"object":{if(Array.isArray(t))return"อาร์เรย์ (Array)";if(t===null)return"ไม่มีค่า (null)";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"};return t=>{switch(t.code){case"invalid_type":return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${t.expected} แต่ได้รับ ${o(t.input)}`;case"invalid_value":return t.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${qe(t.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"ไม่เกิน":"น้อยกว่า",f=r(t.origin);return f?`เกินกำหนด: ${t.origin??"ค่า"} ควรมี${a} ${t.maximum.toString()} ${f.unit??"รายการ"}`:`เกินกำหนด: ${t.origin??"ค่า"} ควรมี${a} ${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?"อย่างน้อย":"มากกว่า",f=r(t.origin);return f?`น้อยกว่ากำหนด: ${t.origin} ควรมี${a} ${t.minimum.toString()} ${f.unit}`:`น้อยกว่ากำหนด: ${t.origin} ควรมี${a} ${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${a.prefix}"`:a.format==="ends_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${a.suffix}"`:a.format==="includes"?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${a.includes}" อยู่ในข้อความ`:a.format==="regex"?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${a.pattern}`:`รูปแบบไม่ถูกต้อง: ${s[a.format]??t.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${t.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${he(t.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${t.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${t.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function K$(){return{localeError:Y$()}}const H$=e=>{const r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return r},X$=()=>{const e={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function r(s){return e[s]??null}const o={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO süre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Şablon dizesi"};return s=>{switch(s.code){case"invalid_type":return`Geçersiz değer: beklenen ${s.expected}, alınan ${H$(s.input)}`;case"invalid_value":return s.values.length===1?`Geçersiz değer: beklenen ${qe(s.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${he(s.values,"|")}`;case"too_big":{const t=s.inclusive?"<=":"<",a=r(s.origin);return a?`Çok büyük: beklenen ${s.origin??"değer"} ${t}${s.maximum.toString()} ${a.unit??"öğe"}`:`Çok büyük: beklenen ${s.origin??"değer"} ${t}${s.maximum.toString()}`}case"too_small":{const t=s.inclusive?">=":">",a=r(s.origin);return a?`Çok küçük: beklenen ${s.origin} ${t}${s.minimum.toString()} ${a.unit}`:`Çok küçük: beklenen ${s.origin} ${t}${s.minimum.toString()}`}case"invalid_format":{const t=s;return t.format==="starts_with"?`Geçersiz metin: "${t.prefix}" ile başlamalı`:t.format==="ends_with"?`Geçersiz metin: "${t.suffix}" ile bitmeli`:t.format==="includes"?`Geçersiz metin: "${t.includes}" içermeli`:t.format==="regex"?`Geçersiz metin: ${t.pattern} desenine uymalı`:`Geçersiz ${o[t.format]??s.format}`}case"not_multiple_of":return`Geçersiz sayı: ${s.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${s.keys.length>1?"lar":""}: ${he(s.keys,", ")}`;case"invalid_key":return`${s.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${s.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};function ew(){return{localeError:X$()}}const tw=()=>{const e={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"число";case"object":{if(Array.isArray(t))return"масив";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",jwt:"JWT",template_literal:"вхідні дані"};return t=>{switch(t.code){case"invalid_type":return`Неправильні вхідні дані: очікується ${t.expected}, отримано ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Неправильні вхідні дані: очікується ${qe(t.values[0])}`:`Неправильна опція: очікується одне з ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Занадто велике: очікується, що ${t.origin??"значення"} ${f.verb} ${a}${t.maximum.toString()} ${f.unit??"елементів"}`:`Занадто велике: очікується, що ${t.origin??"значення"} буде ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Занадто мале: очікується, що ${t.origin} ${f.verb} ${a}${t.minimum.toString()} ${f.unit}`:`Занадто мале: очікується, що ${t.origin} буде ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Неправильний рядок: повинен починатися з "${a.prefix}"`:a.format==="ends_with"?`Неправильний рядок: повинен закінчуватися на "${a.suffix}"`:a.format==="includes"?`Неправильний рядок: повинен містити "${a.includes}"`:a.format==="regex"?`Неправильний рядок: повинен відповідати шаблону ${a.pattern}`:`Неправильний ${s[a.format]??t.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${t.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${t.keys.length>1?"і":""}: ${he(t.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${t.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${t.origin}`;default:return"Неправильні вхідні дані"}}};function lm(){return{localeError:tw()}}function rw(){return lm()}const nw=()=>{const e={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"نمبر";case"object":{if(Array.isArray(t))return"آرے";if(t===null)return"نل";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"};return t=>{switch(t.code){case"invalid_type":return`غلط ان پٹ: ${t.expected} متوقع تھا، ${o(t.input)} موصول ہوا`;case"invalid_value":return t.values.length===1?`غلط ان پٹ: ${qe(t.values[0])} متوقع تھا`:`غلط آپشن: ${he(t.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`بہت بڑا: ${t.origin??"ویلیو"} کے ${a}${t.maximum.toString()} ${f.unit??"عناصر"} ہونے متوقع تھے`:`بہت بڑا: ${t.origin??"ویلیو"} کا ${a}${t.maximum.toString()} ہونا متوقع تھا`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`بہت چھوٹا: ${t.origin} کے ${a}${t.minimum.toString()} ${f.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${t.origin} کا ${a}${t.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{const a=t;return a.format==="starts_with"?`غلط سٹرنگ: "${a.prefix}" سے شروع ہونا چاہیے`:a.format==="ends_with"?`غلط سٹرنگ: "${a.suffix}" پر ختم ہونا چاہیے`:a.format==="includes"?`غلط سٹرنگ: "${a.includes}" شامل ہونا چاہیے`:a.format==="regex"?`غلط سٹرنگ: پیٹرن ${a.pattern} سے میچ ہونا چاہیے`:`غلط ${s[a.format]??t.format}`}case"not_multiple_of":return`غلط نمبر: ${t.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${t.keys.length>1?"ز":""}: ${he(t.keys,"، ")}`;case"invalid_key":return`${t.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${t.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};function iw(){return{localeError:nw()}}const ow=()=>{const e={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"số";case"object":{if(Array.isArray(t))return"mảng";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"đầu vào",email:"địa chỉ email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",jwt:"JWT",template_literal:"đầu vào"};return t=>{switch(t.code){case"invalid_type":return`Đầu vào không hợp lệ: mong đợi ${t.expected}, nhận được ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Đầu vào không hợp lệ: mong đợi ${qe(t.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Quá lớn: mong đợi ${t.origin??"giá trị"} ${f.verb} ${a}${t.maximum.toString()} ${f.unit??"phần tử"}`:`Quá lớn: mong đợi ${t.origin??"giá trị"} ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Quá nhỏ: mong đợi ${t.origin} ${f.verb} ${a}${t.minimum.toString()} ${f.unit}`:`Quá nhỏ: mong đợi ${t.origin} ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Chuỗi không hợp lệ: phải bắt đầu bằng "${a.prefix}"`:a.format==="ends_with"?`Chuỗi không hợp lệ: phải kết thúc bằng "${a.suffix}"`:a.format==="includes"?`Chuỗi không hợp lệ: phải bao gồm "${a.includes}"`:a.format==="regex"?`Chuỗi không hợp lệ: phải khớp với mẫu ${a.pattern}`:`${s[a.format]??t.format} không hợp lệ`}case"not_multiple_of":return`Số không hợp lệ: phải là bội số của ${t.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${he(t.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${t.origin}`;case"invalid_union":return"Đầu vào không hợp lệ";case"invalid_element":return`Giá trị không hợp lệ trong ${t.origin}`;default:return"Đầu vào không hợp lệ"}}};function aw(){return{localeError:ow()}}const sw=()=>{const e={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"非数字(NaN)":"数字";case"object":{if(Array.isArray(t))return"数组";if(t===null)return"空值(null)";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",jwt:"JWT",template_literal:"输入"};return t=>{switch(t.code){case"invalid_type":return`无效输入:期望 ${t.expected},实际接收 ${o(t.input)}`;case"invalid_value":return t.values.length===1?`无效输入:期望 ${qe(t.values[0])}`:`无效选项:期望以下之一 ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`数值过大:期望 ${t.origin??"值"} ${a}${t.maximum.toString()} ${f.unit??"个元素"}`:`数值过大:期望 ${t.origin??"值"} ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`数值过小:期望 ${t.origin} ${a}${t.minimum.toString()} ${f.unit}`:`数值过小:期望 ${t.origin} ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`无效字符串:必须以 "${a.prefix}" 开头`:a.format==="ends_with"?`无效字符串:必须以 "${a.suffix}" 结尾`:a.format==="includes"?`无效字符串:必须包含 "${a.includes}"`:a.format==="regex"?`无效字符串:必须满足正则表达式 ${a.pattern}`:`无效${s[a.format]??t.format}`}case"not_multiple_of":return`无效数字:必须是 ${t.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${he(t.keys,", ")}`;case"invalid_key":return`${t.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${t.origin} 中包含无效值(value)`;default:return"无效输入"}}};function uw(){return{localeError:sw()}}const cw=()=>{const e={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",jwt:"JWT",template_literal:"輸入"};return t=>{switch(t.code){case"invalid_type":return`無效的輸入值:預期為 ${t.expected},但收到 ${o(t.input)}`;case"invalid_value":return t.values.length===1?`無效的輸入值:預期為 ${qe(t.values[0])}`:`無效的選項:預期為以下其中之一 ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`數值過大:預期 ${t.origin??"值"} 應為 ${a}${t.maximum.toString()} ${f.unit??"個元素"}`:`數值過大:預期 ${t.origin??"值"} 應為 ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`數值過小:預期 ${t.origin} 應為 ${a}${t.minimum.toString()} ${f.unit}`:`數值過小:預期 ${t.origin} 應為 ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`無效的字串:必須以 "${a.prefix}" 開頭`:a.format==="ends_with"?`無效的字串:必須以 "${a.suffix}" 結尾`:a.format==="includes"?`無效的字串:必須包含 "${a.includes}"`:a.format==="regex"?`無效的字串:必須符合格式 ${a.pattern}`:`無效的 ${s[a.format]??t.format}`}case"not_multiple_of":return`無效的數字:必須為 ${t.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${t.keys.length>1?"們":""}:${he(t.keys,"、")}`;case"invalid_key":return`${t.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${t.origin} 中有無效的值`;default:return"無效的輸入值"}}};function lw(){return{localeError:cw()}}const dw=()=>{const e={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"nọ́mbà";case"object":{if(Array.isArray(t))return"akopọ";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"ẹ̀rọ ìbáwọlé",email:"àdírẹ́sì ìmẹ́lì",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"àkókò ISO",date:"ọjọ́ ISO",time:"àkókò ISO",duration:"àkókò tó pé ISO",ipv4:"àdírẹ́sì IPv4",ipv6:"àdírẹ́sì IPv6",cidrv4:"àgbègbè IPv4",cidrv6:"àgbègbè IPv6",base64:"ọ̀rọ̀ tí a kọ́ ní base64",base64url:"ọ̀rọ̀ base64url",json_string:"ọ̀rọ̀ JSON",e164:"nọ́mbà E.164",jwt:"JWT",template_literal:"ẹ̀rọ ìbáwọlé"};return t=>{switch(t.code){case"invalid_type":return`Ìbáwọlé aṣìṣe: a ní láti fi ${t.expected}, àmọ̀ a rí ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${qe(t.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Tó pọ̀ jù: a ní láti jẹ́ pé ${t.origin??"iye"} ${f.verb} ${a}${t.maximum} ${f.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${a}${t.maximum}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Kéré ju: a ní láti jẹ́ pé ${t.origin} ${f.verb} ${a}${t.minimum} ${f.unit}`:`Kéré ju: a ní láti jẹ́ ${a}${t.minimum}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${a.prefix}"`:a.format==="ends_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${a.suffix}"`:a.format==="includes"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${a.includes}"`:a.format==="regex"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${a.pattern}`:`Aṣìṣe: ${s[a.format]??t.format}`}case"not_multiple_of":return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${t.divisor}`;case"unrecognized_keys":return`Bọtìnì àìmọ̀: ${he(t.keys,", ")}`;case"invalid_key":return`Bọtìnì aṣìṣe nínú ${t.origin}`;case"invalid_union":return"Ìbáwọlé aṣìṣe";case"invalid_element":return`Iye aṣìṣe nínú ${t.origin}`;default:return"Ìbáwọlé aṣìṣe"}}};function fw(){return{localeError:dw()}}const dm=Object.freeze(Object.defineProperty({__proto__:null,ar:jy,az:Oy,be:Py,ca:Uy,cs:Ay,da:Ly,de:Ry,en:am,eo:Qy,es:Jy,fa:Yy,fi:Hy,fr:e$,frCA:r$,he:i$,hu:a$,id:u$,is:d$,it:m$,ja:g$,ka:b$,kh:$$,km:sm,ko:_$,lt:S$,mk:z$,ms:j$,nl:O$,no:P$,ota:U$,pl:L$,ps:A$,pt:R$,ru:F$,sl:V$,sv:G$,ta:B$,th:K$,tr:ew,ua:rw,uk:lm,ur:iw,vi:aw,yo:fw,zhCN:uw,zhTW:lw},Symbol.toStringTag,{value:"Module"})),fm=Symbol("ZodOutput"),mm=Symbol("ZodInput");class xs{constructor(){this._map=new WeakMap,this._idmap=new Map}add(r,...o){const s=o[0];if(this._map.set(r,s),s&&typeof s=="object"&&"id"in s){if(this._idmap.has(s.id))throw new Error(`ID ${s.id} already exists in the registry`);this._idmap.set(s.id,r)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(r){const o=this._map.get(r);return o&&typeof o=="object"&&"id"in o&&this._idmap.delete(o.id),this._map.delete(r),this}get(r){const o=r._zod.parent;if(o){const s={...this.get(o)??{}};delete s.id;const t={...s,...this._map.get(r)};return Object.keys(t).length?t:void 0}return this._map.get(r)}has(r){return this._map.has(r)}}function Ss(){return new xs}const Zn=Ss();function pm(e,r){return new e({type:"string",...se(r)})}function gm(e,r){return new e({type:"string",coerce:!0,...se(r)})}function Is(e,r){return new e({type:"string",format:"email",check:"string_format",abort:!1,...se(r)})}function Wo(e,r){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...se(r)})}function zs(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...se(r)})}function Ns(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...se(r)})}function js(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...se(r)})}function Ts(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...se(r)})}function Vo(e,r){return new e({type:"string",format:"url",check:"string_format",abort:!1,...se(r)})}function Os(e,r){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...se(r)})}function Es(e,r){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...se(r)})}function Ps(e,r){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...se(r)})}function Cs(e,r){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...se(r)})}function Us(e,r){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...se(r)})}function Ms(e,r){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...se(r)})}function As(e,r){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...se(r)})}function Ds(e,r){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...se(r)})}function Ls(e,r){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...se(r)})}function Zs(e,r){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...se(r)})}function Rs(e,r){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...se(r)})}function qs(e,r){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...se(r)})}function Fs(e,r){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...se(r)})}function Ws(e,r){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...se(r)})}function Vs(e,r){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...se(r)})}const hm={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function vm(e,r){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...se(r)})}function bm(e,r){return new e({type:"string",format:"date",check:"string_format",...se(r)})}function ym(e,r){return new e({type:"string",format:"time",check:"string_format",precision:null,...se(r)})}function $m(e,r){return new e({type:"string",format:"duration",check:"string_format",...se(r)})}function wm(e,r){return new e({type:"number",checks:[],...se(r)})}function _m(e,r){return new e({type:"number",coerce:!0,checks:[],...se(r)})}function km(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...se(r)})}function xm(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...se(r)})}function Sm(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...se(r)})}function Im(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...se(r)})}function zm(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...se(r)})}function Nm(e,r){return new e({type:"boolean",...se(r)})}function jm(e,r){return new e({type:"boolean",coerce:!0,...se(r)})}function Tm(e,r){return new e({type:"bigint",...se(r)})}function Om(e,r){return new e({type:"bigint",coerce:!0,...se(r)})}function Em(e,r){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...se(r)})}function Pm(e,r){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...se(r)})}function Cm(e,r){return new e({type:"symbol",...se(r)})}function Um(e,r){return new e({type:"undefined",...se(r)})}function Mm(e,r){return new e({type:"null",...se(r)})}function Am(e){return new e({type:"any"})}function Dm(e){return new e({type:"unknown"})}function Lm(e,r){return new e({type:"never",...se(r)})}function Zm(e,r){return new e({type:"void",...se(r)})}function Rm(e,r){return new e({type:"date",...se(r)})}function qm(e,r){return new e({type:"date",coerce:!0,...se(r)})}function Fm(e,r){return new e({type:"nan",...se(r)})}function Rn(e,r){return new ps({check:"less_than",...se(r),value:e,inclusive:!1})}function Zr(e,r){return new ps({check:"less_than",...se(r),value:e,inclusive:!0})}function qn(e,r){return new gs({check:"greater_than",...se(r),value:e,inclusive:!1})}function yr(e,r){return new gs({check:"greater_than",...se(r),value:e,inclusive:!0})}function Wm(e){return qn(0,e)}function Vm(e){return Rn(0,e)}function Qm(e){return Zr(0,e)}function Gm(e){return yr(0,e)}function Ki(e,r){return new hd({check:"multiple_of",...se(r),value:e})}function Qo(e,r){return new yd({check:"max_size",...se(r),maximum:e})}function Hi(e,r){return new $d({check:"min_size",...se(r),minimum:e})}function Qs(e,r){return new wd({check:"size_equals",...se(r),size:e})}function Go(e,r){return new _d({check:"max_length",...se(r),maximum:e})}function gi(e,r){return new kd({check:"min_length",...se(r),minimum:e})}function Jo(e,r){return new xd({check:"length_equals",...se(r),length:e})}function Gs(e,r){return new Sd({check:"string_format",format:"regex",...se(r),pattern:e})}function Js(e){return new Id({check:"string_format",format:"lowercase",...se(e)})}function Bs(e){return new zd({check:"string_format",format:"uppercase",...se(e)})}function Ys(e,r){return new Nd({check:"string_format",format:"includes",...se(r),includes:e})}function Ks(e,r){return new jd({check:"string_format",format:"starts_with",...se(r),prefix:e})}function Hs(e,r){return new Td({check:"string_format",format:"ends_with",...se(r),suffix:e})}function Jm(e,r,o){return new Ed({check:"property",property:e,schema:r,...se(o)})}function Xs(e,r){return new Pd({check:"mime_type",mime:e,...se(r)})}function Fn(e){return new Cd({check:"overwrite",tx:e})}function eu(e){return Fn(r=>r.normalize(e))}function tu(){return Fn(e=>e.trim())}function ru(){return Fn(e=>e.toLowerCase())}function nu(){return Fn(e=>e.toUpperCase())}function Bm(e,r,o){return new e({type:"array",element:r,...se(o)})}function mw(e,r,o){return new e({type:"union",options:r,...se(o)})}function pw(e,r,o,s){return new e({type:"union",options:o,discriminator:r,...se(s)})}function gw(e,r,o){return new e({type:"intersection",left:r,right:o})}function hw(e,r,o,s){const t=o instanceof Ve,a=t?s:o,f=t?o:null;return new e({type:"tuple",items:r,rest:f,...se(a)})}function vw(e,r,o,s){return new e({type:"record",keyType:r,valueType:o,...se(s)})}function bw(e,r,o,s){return new e({type:"map",keyType:r,valueType:o,...se(s)})}function yw(e,r,o){return new e({type:"set",valueType:r,...se(o)})}function $w(e,r,o){const s=Array.isArray(r)?Object.fromEntries(r.map(t=>[t,t])):r;return new e({type:"enum",entries:s,...se(o)})}function ww(e,r,o){return new e({type:"enum",entries:r,...se(o)})}function _w(e,r,o){return new e({type:"literal",values:Array.isArray(r)?r:[r],...se(o)})}function Ym(e,r){return new e({type:"file",...se(r)})}function kw(e,r){return new e({type:"transform",transform:r})}function xw(e,r){return new e({type:"optional",innerType:r})}function Sw(e,r){return new e({type:"nullable",innerType:r})}function Iw(e,r,o){return new e({type:"default",innerType:r,get defaultValue(){return typeof o=="function"?o():Uo(o)}})}function zw(e,r,o){return new e({type:"nonoptional",innerType:r,...se(o)})}function Nw(e,r){return new e({type:"success",innerType:r})}function jw(e,r,o){return new e({type:"catch",innerType:r,catchValue:typeof o=="function"?o:()=>o})}function Tw(e,r,o){return new e({type:"pipe",in:r,out:o})}function Ow(e,r){return new e({type:"readonly",innerType:r})}function Ew(e,r,o){return new e({type:"template_literal",parts:r,...se(o)})}function Pw(e,r){return new e({type:"lazy",getter:r})}function Cw(e,r){return new e({type:"promise",innerType:r})}function Km(e,r,o){const s=se(o);return s.abort??(s.abort=!0),new e({type:"custom",check:"custom",fn:r,...s})}function Hm(e,r,o){return new e({type:"custom",check:"custom",fn:r,...se(o)})}function Xm(e){const r=ep(o=>(o.addIssue=s=>{if(typeof s=="string")o.issues.push(mi(s,o.value,r._zod.def));else{const t=s;t.fatal&&(t.continue=!1),t.code??(t.code="custom"),t.input??(t.input=o.value),t.inst??(t.inst=r),t.continue??(t.continue=!r._zod.def.abort),o.issues.push(mi(t))}},e(o.value,o)));return r}function ep(e,r){const o=new Mt({check:"custom",...se(r)});return o._zod.check=e,o}function tp(e,r){const o=se(r);let s=o.truthy??["true","1","yes","on","y","enabled"],t=o.falsy??["false","0","no","off","n","disabled"];o.case!=="sensitive"&&(s=s.map(ge=>typeof ge=="string"?ge.toLowerCase():ge),t=t.map(ge=>typeof ge=="string"?ge.toLowerCase():ge));const a=new Set(s),f=new Set(t),_=e.Codec??ks,q=e.Boolean??bs,X=e.String??Ji,ce=new X({type:"string",error:o.error}),ue=new q({type:"boolean",error:o.error}),ze=new _({type:"pipe",in:ce,out:ue,transform:((ge,L)=>{let ye=ge;return o.case!=="sensitive"&&(ye=ye.toLowerCase()),a.has(ye)?!0:f.has(ye)?!1:(L.issues.push({code:"invalid_value",expected:"stringbool",values:[...a,...f],input:L.value,inst:ze,continue:!1}),{})}),reverseTransform:((ge,L)=>ge===!0?s[0]||"true":t[0]||"false"),error:o.error});return ze}function Xi(e,r,o,s={}){const t=se(s),a={...se(s),check:"string_format",type:"string",format:r,fn:typeof o=="function"?o:_=>o.test(_),...t};return o instanceof RegExp&&(a.pattern=o),new e(a)}class iu{constructor(r){this.counter=0,this.metadataRegistry=r?.metadata??Zn,this.target=r?.target??"draft-2020-12",this.unrepresentable=r?.unrepresentable??"throw",this.override=r?.override??(()=>{}),this.io=r?.io??"output",this.seen=new Map}process(r,o={path:[],schemaPath:[]}){var s;const t=r._zod.def,a={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},f=this.seen.get(r);if(f)return f.count++,o.schemaPath.includes(r)&&(f.cycle=o.path),f.schema;const _={schema:{},count:1,cycle:void 0,path:o.path};this.seen.set(r,_);const q=r._zod.toJSONSchema?.();if(q)_.schema=q;else{const ue={...o,schemaPath:[...o.schemaPath,r],path:o.path},ze=r._zod.parent;if(ze)_.ref=ze,this.process(ze,ue),this.seen.get(ze).isParent=!0;else{const ge=_.schema;switch(t.type){case"string":{const L=ge;L.type="string";const{minimum:ye,maximum:Me,format:pt,patterns:ct,contentEncoding:dt}=r._zod.bag;if(typeof ye=="number"&&(L.minLength=ye),typeof Me=="number"&&(L.maxLength=Me),pt&&(L.format=a[pt]??pt,L.format===""&&delete L.format),dt&&(L.contentEncoding=dt),ct&&ct.size>0){const bt=[...ct];bt.length===1?L.pattern=bt[0].source:bt.length>1&&(_.schema.allOf=[...bt.map(lr=>({...this.target==="draft-7"||this.target==="draft-4"||this.target==="openapi-3.0"?{type:"string"}:{},pattern:lr.source}))])}break}case"number":{const L=ge,{minimum:ye,maximum:Me,format:pt,multipleOf:ct,exclusiveMaximum:dt,exclusiveMinimum:bt}=r._zod.bag;typeof pt=="string"&&pt.includes("int")?L.type="integer":L.type="number",typeof bt=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?(L.minimum=bt,L.exclusiveMinimum=!0):L.exclusiveMinimum=bt),typeof ye=="number"&&(L.minimum=ye,typeof bt=="number"&&this.target!=="draft-4"&&(bt>=ye?delete L.minimum:delete L.exclusiveMinimum)),typeof dt=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?(L.maximum=dt,L.exclusiveMaximum=!0):L.exclusiveMaximum=dt),typeof Me=="number"&&(L.maximum=Me,typeof dt=="number"&&this.target!=="draft-4"&&(dt<=Me?delete L.maximum:delete L.exclusiveMaximum)),typeof ct=="number"&&(L.multipleOf=ct);break}case"boolean":{const L=ge;L.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break}case"null":{this.target==="openapi-3.0"?(ge.type="string",ge.nullable=!0,ge.enum=[null]):ge.type="null";break}case"any":break;case"unknown":break;case"undefined":{if(this.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema");break}case"void":{if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break}case"never":{ge.not={};break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{const L=ge,{minimum:ye,maximum:Me}=r._zod.bag;typeof ye=="number"&&(L.minItems=ye),typeof Me=="number"&&(L.maxItems=Me),L.type="array",L.items=this.process(t.element,{...ue,path:[...ue.path,"items"]});break}case"object":{const L=ge;L.type="object",L.properties={};const ye=t.shape;for(const ct in ye)L.properties[ct]=this.process(ye[ct],{...ue,path:[...ue.path,"properties",ct]});const Me=new Set(Object.keys(ye)),pt=new Set([...Me].filter(ct=>{const dt=t.shape[ct]._zod;return this.io==="input"?dt.optin===void 0:dt.optout===void 0}));pt.size>0&&(L.required=Array.from(pt)),t.catchall?._zod.def.type==="never"?L.additionalProperties=!1:t.catchall?t.catchall&&(L.additionalProperties=this.process(t.catchall,{...ue,path:[...ue.path,"additionalProperties"]})):this.io==="output"&&(L.additionalProperties=!1);break}case"union":{const L=ge,ye=t.options.map((Me,pt)=>this.process(Me,{...ue,path:[...ue.path,"anyOf",pt]}));L.anyOf=ye;break}case"intersection":{const L=ge,ye=this.process(t.left,{...ue,path:[...ue.path,"allOf",0]}),Me=this.process(t.right,{...ue,path:[...ue.path,"allOf",1]}),pt=dt=>"allOf"in dt&&Object.keys(dt).length===1,ct=[...pt(ye)?ye.allOf:[ye],...pt(Me)?Me.allOf:[Me]];L.allOf=ct;break}case"tuple":{const L=ge;L.type="array";const ye=this.target==="draft-2020-12"?"prefixItems":"items",Me=this.target==="draft-2020-12"||this.target==="openapi-3.0"?"items":"additionalItems",pt=t.items.map((lr,Br)=>this.process(lr,{...ue,path:[...ue.path,ye,Br]})),ct=t.rest?this.process(t.rest,{...ue,path:[...ue.path,Me,...this.target==="openapi-3.0"?[t.items.length]:[]]}):null;this.target==="draft-2020-12"?(L.prefixItems=pt,ct&&(L.items=ct)):this.target==="openapi-3.0"?(L.items={anyOf:pt},ct&&L.items.anyOf.push(ct),L.minItems=pt.length,ct||(L.maxItems=pt.length)):(L.items=pt,ct&&(L.additionalItems=ct));const{minimum:dt,maximum:bt}=r._zod.bag;typeof dt=="number"&&(L.minItems=dt),typeof bt=="number"&&(L.maxItems=bt);break}case"record":{const L=ge;L.type="object",(this.target==="draft-7"||this.target==="draft-2020-12")&&(L.propertyNames=this.process(t.keyType,{...ue,path:[...ue.path,"propertyNames"]})),L.additionalProperties=this.process(t.valueType,{...ue,path:[...ue.path,"additionalProperties"]});break}case"map":{if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break}case"enum":{const L=ge,ye=Ba(t.entries);ye.every(Me=>typeof Me=="number")&&(L.type="number"),ye.every(Me=>typeof Me=="string")&&(L.type="string"),L.enum=ye;break}case"literal":{const L=ge,ye=[];for(const Me of t.values)if(Me===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof Me=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");ye.push(Number(Me))}else ye.push(Me);if(ye.length!==0)if(ye.length===1){const Me=ye[0];L.type=Me===null?"null":typeof Me,this.target==="draft-4"||this.target==="openapi-3.0"?L.enum=[Me]:L.const=Me}else ye.every(Me=>typeof Me=="number")&&(L.type="number"),ye.every(Me=>typeof Me=="string")&&(L.type="string"),ye.every(Me=>typeof Me=="boolean")&&(L.type="string"),ye.every(Me=>Me===null)&&(L.type="null"),L.enum=ye;break}case"file":{const L=ge,ye={type:"string",format:"binary",contentEncoding:"binary"},{minimum:Me,maximum:pt,mime:ct}=r._zod.bag;Me!==void 0&&(ye.minLength=Me),pt!==void 0&&(ye.maxLength=pt),ct?ct.length===1?(ye.contentMediaType=ct[0],Object.assign(L,ye)):L.anyOf=ct.map(dt=>({...ye,contentMediaType:dt})):Object.assign(L,ye);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{const L=this.process(t.innerType,ue);this.target==="openapi-3.0"?(_.ref=t.innerType,ge.nullable=!0):ge.anyOf=[L,{type:"null"}];break}case"nonoptional":{this.process(t.innerType,ue),_.ref=t.innerType;break}case"success":{const L=ge;L.type="boolean";break}case"default":{this.process(t.innerType,ue),_.ref=t.innerType,ge.default=JSON.parse(JSON.stringify(t.defaultValue));break}case"prefault":{this.process(t.innerType,ue),_.ref=t.innerType,this.io==="input"&&(ge._prefault=JSON.parse(JSON.stringify(t.defaultValue)));break}case"catch":{this.process(t.innerType,ue),_.ref=t.innerType;let L;try{L=t.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}ge.default=L;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{const L=ge,ye=r._zod.pattern;if(!ye)throw new Error("Pattern not found in template literal");L.type="string",L.pattern=ye.source;break}case"pipe":{const L=this.io==="input"?t.in._zod.def.type==="transform"?t.out:t.in:t.out;this.process(L,ue),_.ref=L;break}case"readonly":{this.process(t.innerType,ue),_.ref=t.innerType,ge.readOnly=!0;break}case"promise":{this.process(t.innerType,ue),_.ref=t.innerType;break}case"optional":{this.process(t.innerType,ue),_.ref=t.innerType;break}case"lazy":{const L=r._zod.innerType;this.process(L,ue),_.ref=L;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}case"function":{if(this.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema");break}}}}const X=this.metadataRegistry.get(r);return X&&Object.assign(_.schema,X),this.io==="input"&&Jt(r)&&(delete _.schema.examples,delete _.schema.default),this.io==="input"&&_.schema._prefault&&((s=_.schema).default??(s.default=_.schema._prefault)),delete _.schema._prefault,this.seen.get(r).schema}emit(r,o){const s={cycles:o?.cycles??"ref",reused:o?.reused??"inline",external:o?.external??void 0},t=this.seen.get(r);if(!t)throw new Error("Unprocessed schema. This is a bug in Zod.");const a=ce=>{const ue=this.target==="draft-2020-12"?"$defs":"definitions";if(s.external){const ye=s.external.registry.get(ce[0])?.id,Me=s.external.uri??(ct=>ct);if(ye)return{ref:Me(ye)};const pt=ce[1].defId??ce[1].schema.id??`schema${this.counter++}`;return ce[1].defId=pt,{defId:pt,ref:`${Me("__shared")}#/${ue}/${pt}`}}if(ce[1]===t)return{ref:"#"};const ge=`#/${ue}/`,L=ce[1].schema.id??`__schema${this.counter++}`;return{defId:L,ref:ge+L}},f=ce=>{if(ce[1].schema.$ref)return;const ue=ce[1],{ref:ze,defId:ge}=a(ce);ue.def={...ue.schema},ge&&(ue.defId=ge);const L=ue.schema;for(const ye in L)delete L[ye];L.$ref=ze};if(s.cycles==="throw")for(const ce of this.seen.entries()){const ue=ce[1];if(ue.cycle)throw new Error(`Cycle detected: #/${ue.cycle?.join("/")}/<root>
43
43
 
44
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const ce of this.seen.entries()){const ue=ce[1];if(r===ce[0]){f(ce);continue}if(s.external){const ge=s.external.registry.get(ce[0])?.id;if(r!==ce[0]&&ge){f(ce);continue}}if(this.metadataRegistry.get(ce[0])?.id){f(ce);continue}if(ue.cycle){f(ce);continue}if(ue.count>1&&s.reused==="ref"){f(ce);continue}}const _=(ce,ue)=>{const ze=this.seen.get(ce),ge=ze.def??ze.schema,A={...ge};if(ze.ref===null)return;const ye=ze.ref;if(ze.ref=null,ye){_(ye,ue);const Me=this.seen.get(ye).schema;Me.$ref&&(ue.target==="draft-7"||ue.target==="draft-4"||ue.target==="openapi-3.0")?(ge.allOf=ge.allOf??[],ge.allOf.push(Me)):(Object.assign(ge,Me),Object.assign(ge,A))}ze.isParent||this.override({zodSchema:ce,jsonSchema:ge,path:ze.path??[]})};for(const ce of[...this.seen.entries()].reverse())_(ce[0],{target:this.target});const q={};if(this.target==="draft-2020-12"?q.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?q.$schema="http://json-schema.org/draft-07/schema#":this.target==="draft-4"?q.$schema="http://json-schema.org/draft-04/schema#":this.target==="openapi-3.0"||console.warn(`Invalid target: ${this.target}`),s.external?.uri){const ce=s.external.registry.get(r)?.id;if(!ce)throw new Error("Schema is missing an `id` property");q.$id=s.external.uri(ce)}Object.assign(q,t.def);const X=s.external?.defs??{};for(const ce of this.seen.entries()){const ue=ce[1];ue.def&&ue.defId&&(X[ue.defId]=ue.def)}s.external||Object.keys(X).length>0&&(this.target==="draft-2020-12"?q.$defs=X:q.definitions=X);try{return JSON.parse(JSON.stringify(q))}catch{throw new Error("Error converting schema to JSON.")}}}function tp(e,r){if(e instanceof xs){const s=new iu(r),t={};for(const _ of e._idmap.entries()){const[q,X]=_;s.process(X)}const a={},f={registry:e,uri:r?.uri,defs:t};for(const _ of e._idmap.entries()){const[q,X]=_;a[q]=s.emit(X,{...r,external:f})}if(Object.keys(t).length>0){const _=s.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[_]:t}}return{schemas:a}}const o=new iu(r);return o.process(e),o.emit(e,r)}function Jt(e,r){const o=r??{seen:new Set};if(o.seen.has(e))return!1;o.seen.add(e);const t=e._zod.def;switch(t.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":return!1;case"array":return Jt(t.element,o);case"object":{for(const a in t.shape)if(Jt(t.shape[a],o))return!0;return!1}case"union":{for(const a of t.options)if(Jt(a,o))return!0;return!1}case"intersection":return Jt(t.left,o)||Jt(t.right,o);case"tuple":{for(const a of t.items)if(Jt(a,o))return!0;return!!(t.rest&&Jt(t.rest,o))}case"record":return Jt(t.keyType,o)||Jt(t.valueType,o);case"map":return Jt(t.keyType,o)||Jt(t.valueType,o);case"set":return Jt(t.valueType,o);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return Jt(t.innerType,o);case"lazy":return Jt(t.getter(),o);case"default":return Jt(t.innerType,o);case"prefault":return Jt(t.innerType,o);case"custom":return!1;case"transform":return!0;case"pipe":return Jt(t.in,o)||Jt(t.out,o);case"success":return!1;case"catch":return!1;case"function":return!1}throw new Error(`Unknown schema type: ${t.type}`)}const Uw=Object.freeze(Object.defineProperty({__proto__:null,$ZodAny:pf,$ZodArray:$f,$ZodAsyncError:Mn,$ZodBase64:tf,$ZodBase64URL:nf,$ZodBigInt:ys,$ZodBigIntFormat:lf,$ZodBoolean:bs,$ZodCIDRv4:Xd,$ZodCIDRv6:ef,$ZodCUID:Fd,$ZodCUID2:qd,$ZodCatch:Vf,$ZodCheck:Mt,$ZodCheckBigIntFormat:vd,$ZodCheckEndsWith:jd,$ZodCheckGreaterThan:gs,$ZodCheckIncludes:zd,$ZodCheckLengthEquals:kd,$ZodCheckLessThan:ps,$ZodCheckLowerCase:Sd,$ZodCheckMaxLength:wd,$ZodCheckMaxSize:bd,$ZodCheckMimeType:Ed,$ZodCheckMinLength:_d,$ZodCheckMinSize:yd,$ZodCheckMultipleOf:gd,$ZodCheckNumberFormat:hd,$ZodCheckOverwrite:Pd,$ZodCheckProperty:Od,$ZodCheckRegex:xd,$ZodCheckSizeEquals:$d,$ZodCheckStartsWith:Nd,$ZodCheckStringFormat:Vi,$ZodCheckUpperCase:Id,$ZodCodec:ks,$ZodCustom:rm,$ZodCustomStringFormat:uf,$ZodDate:bf,$ZodDefault:Rf,$ZodDiscriminatedUnion:If,$ZodE164:of,$ZodEmail:Ld,$ZodEmoji:Zd,$ZodEncodeError:To,$ZodEnum:Cf,$ZodError:Ha,$ZodFile:Mf,$ZodFunction:Xf,$ZodGUID:Md,$ZodIPv4:Kd,$ZodIPv6:Hd,$ZodISODate:Jd,$ZodISODateTime:Vd,$ZodISODuration:Yd,$ZodISOTime:Bd,$ZodIntersection:zf,$ZodJWT:sf,$ZodKSUID:Gd,$ZodLazy:tm,$ZodLiteral:Uf,$ZodMap:Tf,$ZodNaN:Jf,$ZodNanoID:Rd,$ZodNever:hf,$ZodNonOptional:Wf,$ZodNull:mf,$ZodNullable:Zf,$ZodNumber:vs,$ZodNumberFormat:cf,$ZodObject:kf,$ZodObjectJIT:xf,$ZodOptional:Af,$ZodPipe:Bf,$ZodPrefault:qf,$ZodPromise:em,$ZodReadonly:Yf,$ZodRealError:br,$ZodRecord:jf,$ZodRegistry:xs,$ZodSet:Ef,$ZodString:Ji,$ZodStringFormat:zt,$ZodSuccess:Gf,$ZodSymbol:df,$ZodTemplateLiteral:Hf,$ZodTransform:Df,$ZodTuple:_s,$ZodType:Qe,$ZodULID:Wd,$ZodURL:Ad,$ZodUUID:Dd,$ZodUndefined:ff,$ZodUnion:$s,$ZodUnknown:gf,$ZodVoid:vf,$ZodXID:Qd,$brand:dl,$constructor:D,$input:fm,$output:dm,Doc:Cd,JSONSchema:Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),JSONSchemaGenerator:iu,NEVER:ll,TimePrecision:gm,_any:Mm,_array:Jm,_base64:Fs,_base64url:qs,_bigint:jm,_boolean:zm,_catch:jw,_check:Xm,_cidrv4:Zs,_cidrv6:Rs,_coercedBigint:Tm,_coercedBoolean:Nm,_coercedDate:Rm,_coercedNumber:wm,_coercedString:pm,_cuid:Ps,_cuid2:Cs,_custom:Ym,_date:Zm,_decode:is,_decodeAsync:as,_default:Iw,_discriminatedUnion:pw,_e164:Ws,_email:Is,_emoji:Os,_encode:ns,_encodeAsync:os,_endsWith:Hs,_enum:$w,_file:Bm,_float32:km,_float64:xm,_gt:Fn,_gte:yr,_guid:Wo,_includes:Ys,_int:_m,_int32:Sm,_int64:Om,_intersection:gw,_ipv4:Ls,_ipv6:As,_isoDate:vm,_isoDateTime:hm,_isoDuration:ym,_isoTime:bm,_jwt:Qs,_ksuid:Ds,_lazy:Pw,_length:Jo,_literal:_w,_lowercase:Js,_lt:Rn,_lte:Zr,_map:bw,_max:Zr,_maxLength:Vo,_maxSize:Go,_mime:Xs,_min:yr,_minLength:gi,_minSize:Hi,_multipleOf:Ki,_nan:Fm,_nanoid:Es,_nativeEnum:ww,_negative:Wm,_never:Lm,_nonnegative:Gm,_nonoptional:zw,_nonpositive:Qm,_normalize:eu,_null:Um,_nullable:Sw,_number:$m,_optional:xw,_overwrite:qn,_parse:Ri,_parseAsync:Fi,_pipe:Tw,_positive:qm,_promise:Cw,_property:Vm,_readonly:Ow,_record:vw,_refine:Km,_regex:Vs,_safeDecode:us,_safeDecodeAsync:ls,_safeEncode:ss,_safeEncodeAsync:cs,_safeParse:qi,_safeParseAsync:Wi,_set:yw,_size:Gs,_startsWith:Ks,_string:mm,_stringFormat:Xi,_stringbool:ep,_success:Nw,_superRefine:Hm,_symbol:Pm,_templateLiteral:Ew,_toLowerCase:ru,_toUpperCase:nu,_transform:kw,_trim:tu,_tuple:hw,_uint32:Im,_uint64:Em,_ulid:Us,_undefined:Cm,_union:mw,_unknown:Dm,_uppercase:Bs,_url:Qo,_uuid:zs,_uuidv4:Ns,_uuidv6:js,_uuidv7:Ts,_void:Am,_xid:Ms,clone:Nr,config:cr,decode:fy,decodeAsync:py,encode:dy,encodeAsync:my,flattenError:Xa,formatError:es,globalConfig:Oo,globalRegistry:Zn,isValidBase64:hs,isValidBase64URL:rf,isValidJWT:af,locales:lm,parse:ts,parseAsync:rs,prettifyError:El,regexes:ms,registry:Ss,safeDecode:hy,safeDecodeAsync:by,safeEncode:gy,safeEncodeAsync:vy,safeParse:Pl,safeParseAsync:Cl,toDotPath:Ol,toJSONSchema:tp,treeifyError:Tl,util:Nl,version:Ud},Symbol.toStringTag,{value:"Module"})),ou=D("ZodISODateTime",(e,r)=>{Vd.init(e,r),jt.init(e,r)});function rp(e){return hm(ou,e)}const au=D("ZodISODate",(e,r)=>{Jd.init(e,r),jt.init(e,r)});function np(e){return vm(au,e)}const su=D("ZodISOTime",(e,r)=>{Bd.init(e,r),jt.init(e,r)});function ip(e){return bm(su,e)}const uu=D("ZodISODuration",(e,r)=>{Yd.init(e,r),jt.init(e,r)});function op(e){return ym(uu,e)}const Mw=Object.freeze(Object.defineProperty({__proto__:null,ZodISODate:au,ZodISODateTime:ou,ZodISODuration:uu,ZodISOTime:su,date:np,datetime:rp,duration:op,time:ip},Symbol.toStringTag,{value:"Module"})),ap=(e,r)=>{Ha.init(e,r),e.name="ZodError",Object.defineProperties(e,{format:{value:o=>es(e,o)},flatten:{value:o=>Xa(e,o)},addIssue:{value:o=>{e.issues.push(o),e.message=JSON.stringify(e.issues,Eo,2)}},addIssues:{value:o=>{e.issues.push(...o),e.message=JSON.stringify(e.issues,Eo,2)}},isEmpty:{get(){return e.issues.length===0}}})},Dw=D("ZodError",ap),$r=D("ZodError",ap,{Parent:Error}),sp=Ri($r),up=Fi($r),cp=qi($r),lp=Wi($r),dp=ns($r),fp=is($r),mp=os($r),pp=as($r),gp=ss($r),hp=us($r),vp=cs($r),bp=ls($r),et=D("ZodType",(e,r)=>(Qe.init(e,r),e.def=r,e.type=r.type,Object.defineProperty(e,"_def",{value:r}),e.check=(...o)=>e.clone({...r,checks:[...r.checks??[],...o.map(s=>typeof s=="function"?{_zod:{check:s,def:{check:"custom"},onattach:[]}}:s)]}),e.clone=(o,s)=>Nr(e,o,s),e.brand=()=>e,e.register=((o,s)=>(o.add(e,s),e)),e.parse=(o,s)=>sp(e,o,s,{callee:e.parse}),e.safeParse=(o,s)=>cp(e,o,s),e.parseAsync=async(o,s)=>up(e,o,s,{callee:e.parseAsync}),e.safeParseAsync=async(o,s)=>lp(e,o,s),e.spa=e.safeParseAsync,e.encode=(o,s)=>dp(e,o,s),e.decode=(o,s)=>fp(e,o,s),e.encodeAsync=async(o,s)=>mp(e,o,s),e.decodeAsync=async(o,s)=>pp(e,o,s),e.safeEncode=(o,s)=>gp(e,o,s),e.safeDecode=(o,s)=>hp(e,o,s),e.safeEncodeAsync=async(o,s)=>vp(e,o,s),e.safeDecodeAsync=async(o,s)=>bp(e,o,s),e.refine=(o,s)=>e.check(tg(o,s)),e.superRefine=o=>e.check(rg(o)),e.overwrite=o=>e.check(qn(o)),e.optional=()=>na(e),e.nullable=()=>ia(e),e.nullish=()=>na(ia(e)),e.nonoptional=o=>Wp(e,o),e.array=()=>$t(e),e.or=o=>nn([e,o]),e.and=o=>Op(e,o),e.transform=o=>oa(e,Pu(o)),e.default=o=>Rp(e,o),e.prefault=o=>qp(e,o),e.catch=o=>Vp(e,o),e.pipe=o=>oa(e,o),e.readonly=()=>Yp(e),e.describe=o=>{const s=e.clone();return Zn.add(s,{description:o}),s},Object.defineProperty(e,"description",{get(){return Zn.get(e)?.description},configurable:!0}),e.meta=(...o)=>{if(o.length===0)return Zn.get(e);const s=e.clone();return Zn.add(s,o[0]),s},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),cu=D("_ZodString",(e,r)=>{Ji.init(e,r),et.init(e,r);const o=e._zod.bag;e.format=o.format??null,e.minLength=o.minimum??null,e.maxLength=o.maximum??null,e.regex=(...s)=>e.check(Vs(...s)),e.includes=(...s)=>e.check(Ys(...s)),e.startsWith=(...s)=>e.check(Ks(...s)),e.endsWith=(...s)=>e.check(Hs(...s)),e.min=(...s)=>e.check(gi(...s)),e.max=(...s)=>e.check(Vo(...s)),e.length=(...s)=>e.check(Jo(...s)),e.nonempty=(...s)=>e.check(gi(1,...s)),e.lowercase=s=>e.check(Js(s)),e.uppercase=s=>e.check(Bs(s)),e.trim=()=>e.check(tu()),e.normalize=(...s)=>e.check(eu(...s)),e.toLowerCase=()=>e.check(ru()),e.toUpperCase=()=>e.check(nu())}),Bo=D("ZodString",(e,r)=>{Ji.init(e,r),cu.init(e,r),e.email=o=>e.check(Is(lu,o)),e.url=o=>e.check(Qo(Ko,o)),e.jwt=o=>e.check(Qs(Su,o)),e.emoji=o=>e.check(Os(du,o)),e.guid=o=>e.check(Wo(Yo,o)),e.uuid=o=>e.check(zs(rn,o)),e.uuidv4=o=>e.check(Ns(rn,o)),e.uuidv6=o=>e.check(js(rn,o)),e.uuidv7=o=>e.check(Ts(rn,o)),e.nanoid=o=>e.check(Es(fu,o)),e.guid=o=>e.check(Wo(Yo,o)),e.cuid=o=>e.check(Ps(mu,o)),e.cuid2=o=>e.check(Cs(pu,o)),e.ulid=o=>e.check(Us(gu,o)),e.base64=o=>e.check(Fs(_u,o)),e.base64url=o=>e.check(qs(ku,o)),e.xid=o=>e.check(Ms(hu,o)),e.ksuid=o=>e.check(Ds(vu,o)),e.ipv4=o=>e.check(Ls(bu,o)),e.ipv6=o=>e.check(As(yu,o)),e.cidrv4=o=>e.check(Zs($u,o)),e.cidrv6=o=>e.check(Rs(wu,o)),e.e164=o=>e.check(Ws(xu,o)),e.datetime=o=>e.check(rp(o)),e.date=o=>e.check(np(o)),e.time=o=>e.check(ip(o)),e.duration=o=>e.check(op(o))});function P(e){return mm(Bo,e)}const jt=D("ZodStringFormat",(e,r)=>{zt.init(e,r),cu.init(e,r)}),lu=D("ZodEmail",(e,r)=>{Ld.init(e,r),jt.init(e,r)});function Lw(e){return Is(lu,e)}const Yo=D("ZodGUID",(e,r)=>{Md.init(e,r),jt.init(e,r)});function Aw(e){return Wo(Yo,e)}const rn=D("ZodUUID",(e,r)=>{Dd.init(e,r),jt.init(e,r)});function yp(e){return zs(rn,e)}function Zw(e){return Ns(rn,e)}function Rw(e){return js(rn,e)}function Fw(e){return Ts(rn,e)}const Ko=D("ZodURL",(e,r)=>{Ad.init(e,r),jt.init(e,r)});function qw(e){return Qo(Ko,e)}function Ww(e){return Qo(Ko,{protocol:/^https?$/,hostname:Kl,...se(e)})}const du=D("ZodEmoji",(e,r)=>{Zd.init(e,r),jt.init(e,r)});function Qw(e){return Os(du,e)}const fu=D("ZodNanoID",(e,r)=>{Rd.init(e,r),jt.init(e,r)});function Gw(e){return Es(fu,e)}const mu=D("ZodCUID",(e,r)=>{Fd.init(e,r),jt.init(e,r)});function Vw(e){return Ps(mu,e)}const pu=D("ZodCUID2",(e,r)=>{qd.init(e,r),jt.init(e,r)});function Jw(e){return Cs(pu,e)}const gu=D("ZodULID",(e,r)=>{Wd.init(e,r),jt.init(e,r)});function Bw(e){return Us(gu,e)}const hu=D("ZodXID",(e,r)=>{Qd.init(e,r),jt.init(e,r)});function Yw(e){return Ms(hu,e)}const vu=D("ZodKSUID",(e,r)=>{Gd.init(e,r),jt.init(e,r)});function Kw(e){return Ds(vu,e)}const bu=D("ZodIPv4",(e,r)=>{Kd.init(e,r),jt.init(e,r)});function Hw(e){return Ls(bu,e)}const yu=D("ZodIPv6",(e,r)=>{Hd.init(e,r),jt.init(e,r)});function Xw(e){return As(yu,e)}const $u=D("ZodCIDRv4",(e,r)=>{Xd.init(e,r),jt.init(e,r)});function e_(e){return Zs($u,e)}const wu=D("ZodCIDRv6",(e,r)=>{ef.init(e,r),jt.init(e,r)});function t_(e){return Rs(wu,e)}const _u=D("ZodBase64",(e,r)=>{tf.init(e,r),jt.init(e,r)});function r_(e){return Fs(_u,e)}const ku=D("ZodBase64URL",(e,r)=>{nf.init(e,r),jt.init(e,r)});function n_(e){return qs(ku,e)}const xu=D("ZodE164",(e,r)=>{of.init(e,r),jt.init(e,r)});function i_(e){return Ws(xu,e)}const Su=D("ZodJWT",(e,r)=>{sf.init(e,r),jt.init(e,r)});function o_(e){return Qs(Su,e)}const eo=D("ZodCustomStringFormat",(e,r)=>{uf.init(e,r),jt.init(e,r)});function a_(e,r,o={}){return Xi(eo,e,r,o)}function s_(e){return Xi(eo,"hostname",fs,e)}function u_(e){return Xi(eo,"hex",md,e)}function c_(e,r){const o=r?.enc??"hex",s=`${e}_${o}`,t=ms[s];if(!t)throw new Error(`Unrecognized hash format: ${s}`);return Xi(eo,s,t,r)}const Ho=D("ZodNumber",(e,r)=>{vs.init(e,r),et.init(e,r),e.gt=(s,t)=>e.check(Fn(s,t)),e.gte=(s,t)=>e.check(yr(s,t)),e.min=(s,t)=>e.check(yr(s,t)),e.lt=(s,t)=>e.check(Rn(s,t)),e.lte=(s,t)=>e.check(Zr(s,t)),e.max=(s,t)=>e.check(Zr(s,t)),e.int=s=>e.check(Iu(s)),e.safe=s=>e.check(Iu(s)),e.positive=s=>e.check(Fn(0,s)),e.nonnegative=s=>e.check(yr(0,s)),e.negative=s=>e.check(Rn(0,s)),e.nonpositive=s=>e.check(Zr(0,s)),e.multipleOf=(s,t)=>e.check(Ki(s,t)),e.step=(s,t)=>e.check(Ki(s,t)),e.finite=()=>e;const o=e._zod.bag;e.minValue=Math.max(o.minimum??Number.NEGATIVE_INFINITY,o.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(o.maximum??Number.POSITIVE_INFINITY,o.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(o.format??"").includes("int")||Number.isSafeInteger(o.multipleOf??.5),e.isFinite=!0,e.format=o.format??null});function mt(e){return $m(Ho,e)}const hi=D("ZodNumberFormat",(e,r)=>{cf.init(e,r),Ho.init(e,r)});function Iu(e){return _m(hi,e)}function l_(e){return km(hi,e)}function d_(e){return xm(hi,e)}function f_(e){return Sm(hi,e)}function m_(e){return Im(hi,e)}const Xo=D("ZodBoolean",(e,r)=>{bs.init(e,r),et.init(e,r)});function rt(e){return zm(Xo,e)}const ea=D("ZodBigInt",(e,r)=>{ys.init(e,r),et.init(e,r),e.gte=(s,t)=>e.check(yr(s,t)),e.min=(s,t)=>e.check(yr(s,t)),e.gt=(s,t)=>e.check(Fn(s,t)),e.gte=(s,t)=>e.check(yr(s,t)),e.min=(s,t)=>e.check(yr(s,t)),e.lt=(s,t)=>e.check(Rn(s,t)),e.lte=(s,t)=>e.check(Zr(s,t)),e.max=(s,t)=>e.check(Zr(s,t)),e.positive=s=>e.check(Fn(BigInt(0),s)),e.negative=s=>e.check(Rn(BigInt(0),s)),e.nonpositive=s=>e.check(Zr(BigInt(0),s)),e.nonnegative=s=>e.check(yr(BigInt(0),s)),e.multipleOf=(s,t)=>e.check(Ki(s,t));const o=e._zod.bag;e.minValue=o.minimum??null,e.maxValue=o.maximum??null,e.format=o.format??null});function p_(e){return jm(ea,e)}const zu=D("ZodBigIntFormat",(e,r)=>{lf.init(e,r),ea.init(e,r)});function g_(e){return Om(zu,e)}function h_(e){return Em(zu,e)}const $p=D("ZodSymbol",(e,r)=>{df.init(e,r),et.init(e,r)});function v_(e){return Pm($p,e)}const wp=D("ZodUndefined",(e,r)=>{ff.init(e,r),et.init(e,r)});function b_(e){return Cm(wp,e)}const _p=D("ZodNull",(e,r)=>{mf.init(e,r),et.init(e,r)});function kp(e){return Um(_p,e)}const xp=D("ZodAny",(e,r)=>{pf.init(e,r),et.init(e,r)});function ta(){return Mm(xp)}const Sp=D("ZodUnknown",(e,r)=>{gf.init(e,r),et.init(e,r)});function Wn(){return Dm(Sp)}const Ip=D("ZodNever",(e,r)=>{hf.init(e,r),et.init(e,r)});function Nu(e){return Lm(Ip,e)}const zp=D("ZodVoid",(e,r)=>{vf.init(e,r),et.init(e,r)});function ju(e){return Am(zp,e)}const Tu=D("ZodDate",(e,r)=>{bf.init(e,r),et.init(e,r),e.min=(s,t)=>e.check(yr(s,t)),e.max=(s,t)=>e.check(Zr(s,t));const o=e._zod.bag;e.minDate=o.minimum?new Date(o.minimum):null,e.maxDate=o.maximum?new Date(o.maximum):null});function y_(e){return Zm(Tu,e)}const Np=D("ZodArray",(e,r)=>{$f.init(e,r),et.init(e,r),e.element=r.element,e.min=(o,s)=>e.check(gi(o,s)),e.nonempty=o=>e.check(gi(1,o)),e.max=(o,s)=>e.check(Vo(o,s)),e.length=(o,s)=>e.check(Jo(o,s)),e.unwrap=()=>e.element});function $t(e,r){return Jm(Np,e,r)}function $_(e){const r=e._zod.def.shape;return Dt(Object.keys(r))}const ra=D("ZodObject",(e,r)=>{xf.init(e,r),et.init(e,r),ot(e,"shape",()=>r.shape),e.keyof=()=>Dt(Object.keys(e._zod.def.shape)),e.catchall=o=>e.clone({...e._zod.def,catchall:o}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Wn()}),e.loose=()=>e.clone({...e._zod.def,catchall:Wn()}),e.strict=()=>e.clone({...e._zod.def,catchall:Nu()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=o=>wl(e,o),e.safeExtend=o=>_l(e,o),e.merge=o=>kl(e,o),e.pick=o=>yl(e,o),e.omit=o=>$l(e,o),e.partial=(...o)=>xl(Cu,e,o[0]),e.required=(...o)=>Sl(Uu,e,o[0])});function we(e,r){const o={type:"object",get shape(){return Dr(this,"shape",e?Co(e):{}),this.shape},...se(r)};return new ra(o)}function w_(e,r){return new ra({type:"object",get shape(){return Dr(this,"shape",Co(e)),this.shape},catchall:Nu(),...se(r)})}function __(e,r){return new ra({type:"object",get shape(){return Dr(this,"shape",Co(e)),this.shape},catchall:Wn(),...se(r)})}const Ou=D("ZodUnion",(e,r)=>{$s.init(e,r),et.init(e,r),e.options=r.options});function nn(e,r){return new Ou({type:"union",options:e,...se(r)})}const jp=D("ZodDiscriminatedUnion",(e,r)=>{Ou.init(e,r),If.init(e,r)});function to(e,r,o){return new jp({type:"union",options:r,discriminator:e,...se(o)})}const Tp=D("ZodIntersection",(e,r)=>{zf.init(e,r),et.init(e,r)});function Op(e,r){return new Tp({type:"intersection",left:e,right:r})}const Ep=D("ZodTuple",(e,r)=>{_s.init(e,r),et.init(e,r),e.rest=o=>e.clone({...e._zod.def,rest:o})});function Pp(e,r,o){const s=r instanceof Qe,t=s?o:r,a=s?r:null;return new Ep({type:"tuple",items:e,rest:a,...se(t)})}const Eu=D("ZodRecord",(e,r)=>{jf.init(e,r),et.init(e,r),e.keyType=r.keyType,e.valueType=r.valueType});function Bt(e,r,o){return new Eu({type:"record",keyType:e,valueType:r,...se(o)})}function k_(e,r,o){const s=Nr(e);return s._zod.values=void 0,new Eu({type:"record",keyType:s,valueType:r,...se(o)})}const Cp=D("ZodMap",(e,r)=>{Tf.init(e,r),et.init(e,r),e.keyType=r.keyType,e.valueType=r.valueType});function x_(e,r,o){return new Cp({type:"map",keyType:e,valueType:r,...se(o)})}const Up=D("ZodSet",(e,r)=>{Ef.init(e,r),et.init(e,r),e.min=(...o)=>e.check(Hi(...o)),e.nonempty=o=>e.check(Hi(1,o)),e.max=(...o)=>e.check(Go(...o)),e.size=(...o)=>e.check(Gs(...o))});function S_(e,r){return new Up({type:"set",valueType:e,...se(r)})}const ro=D("ZodEnum",(e,r)=>{Cf.init(e,r),et.init(e,r),e.enum=r.entries,e.options=Object.values(r.entries);const o=new Set(Object.keys(r.entries));e.extract=(s,t)=>{const a={};for(const f of s)if(o.has(f))a[f]=r.entries[f];else throw new Error(`Key ${f} not found in enum`);return new ro({...r,checks:[],...se(t),entries:a})},e.exclude=(s,t)=>{const a={...r.entries};for(const f of s)if(o.has(f))delete a[f];else throw new Error(`Key ${f} not found in enum`);return new ro({...r,checks:[],...se(t),entries:a})}});function Dt(e,r){const o=Array.isArray(e)?Object.fromEntries(e.map(s=>[s,s])):e;return new ro({type:"enum",entries:o,...se(r)})}function I_(e,r){return new ro({type:"enum",entries:e,...se(r)})}const Mp=D("ZodLiteral",(e,r)=>{Uf.init(e,r),et.init(e,r),e.values=new Set(r.values),Object.defineProperty(e,"value",{get(){if(r.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return r.values[0]}})});function xt(e,r){return new Mp({type:"literal",values:Array.isArray(e)?e:[e],...se(r)})}const Dp=D("ZodFile",(e,r)=>{Mf.init(e,r),et.init(e,r),e.min=(o,s)=>e.check(Hi(o,s)),e.max=(o,s)=>e.check(Go(o,s)),e.mime=(o,s)=>e.check(Xs(Array.isArray(o)?o:[o],s))});function z_(e){return Bm(Dp,e)}const Lp=D("ZodTransform",(e,r)=>{Df.init(e,r),et.init(e,r),e._zod.parse=(o,s)=>{if(s.direction==="backward")throw new To(e.constructor.name);o.addIssue=a=>{if(typeof a=="string")o.issues.push(mi(a,o.value,r));else{const f=a;f.fatal&&(f.continue=!1),f.code??(f.code="custom"),f.input??(f.input=o.value),f.inst??(f.inst=e),o.issues.push(mi(f))}};const t=r.transform(o.value,o);return t instanceof Promise?t.then(a=>(o.value=a,o)):(o.value=t,o)}});function Pu(e){return new Lp({type:"transform",transform:e})}const Cu=D("ZodOptional",(e,r)=>{Af.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType});function na(e){return new Cu({type:"optional",innerType:e})}const Ap=D("ZodNullable",(e,r)=>{Zf.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType});function ia(e){return new Ap({type:"nullable",innerType:e})}function N_(e){return na(ia(e))}const Zp=D("ZodDefault",(e,r)=>{Rf.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Rp(e,r){return new Zp({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():Uo(r)}})}const Fp=D("ZodPrefault",(e,r)=>{qf.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType});function qp(e,r){return new Fp({type:"prefault",innerType:e,get defaultValue(){return typeof r=="function"?r():Uo(r)}})}const Uu=D("ZodNonOptional",(e,r)=>{Wf.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Wp(e,r){return new Uu({type:"nonoptional",innerType:e,...se(r)})}const Qp=D("ZodSuccess",(e,r)=>{Gf.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType});function j_(e){return new Qp({type:"success",innerType:e})}const Gp=D("ZodCatch",(e,r)=>{Vf.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Vp(e,r){return new Gp({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}const Jp=D("ZodNaN",(e,r)=>{Jf.init(e,r),et.init(e,r)});function T_(e){return Fm(Jp,e)}const Mu=D("ZodPipe",(e,r)=>{Bf.init(e,r),et.init(e,r),e.in=r.in,e.out=r.out});function oa(e,r){return new Mu({type:"pipe",in:e,out:r})}const Du=D("ZodCodec",(e,r)=>{Mu.init(e,r),ks.init(e,r)});function O_(e,r,o){return new Du({type:"pipe",in:e,out:r,transform:o.decode,reverseTransform:o.encode})}const Bp=D("ZodReadonly",(e,r)=>{Yf.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Yp(e){return new Bp({type:"readonly",innerType:e})}const Kp=D("ZodTemplateLiteral",(e,r)=>{Hf.init(e,r),et.init(e,r)});function E_(e,r){return new Kp({type:"template_literal",parts:e,...se(r)})}const Hp=D("ZodLazy",(e,r)=>{tm.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.getter()});function Lu(e){return new Hp({type:"lazy",getter:e})}const Xp=D("ZodPromise",(e,r)=>{em.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType});function P_(e){return new Xp({type:"promise",innerType:e})}const eg=D("ZodFunction",(e,r)=>{Xf.init(e,r),et.init(e,r)});function aa(e){return new eg({type:"function",input:Array.isArray(e?.input)?Pp(e?.input):e?.input??$t(Wn()),output:e?.output??Wn()})}const sa=D("ZodCustom",(e,r)=>{rm.init(e,r),et.init(e,r)});function C_(e){const r=new Mt({check:"custom"});return r._zod.check=e,r}function U_(e,r){return Ym(sa,e??(()=>!0),r)}function tg(e,r={}){return Km(sa,e,r)}function rg(e){return Hm(e)}function M_(e,r={error:`Input not instance of ${e.name}`}){const o=new sa({type:"custom",check:"custom",fn:s=>s instanceof e,abort:!0,...se(r)});return o._zod.bag.Class=e,o}const D_=(...e)=>ep({Codec:Du,Boolean:Xo,String:Bo},...e);function L_(e){const r=Lu(()=>nn([P(e),mt(),rt(),kp(),$t(r),Bt(P(),r)]));return r}function A_(e,r){return oa(Pu(e),r)}const Z_={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function R_(e){cr({customError:e})}function F_(){return cr().customError}var Au;Au||(Au={});function q_(e){return pm(Bo,e)}function W_(e){return wm(Ho,e)}function Q_(e){return Nm(Xo,e)}function G_(e){return Tm(ea,e)}function V_(e){return Rm(Tu,e)}const J_=Object.freeze(Object.defineProperty({__proto__:null,bigint:G_,boolean:Q_,date:V_,number:W_,string:q_},Symbol.toStringTag,{value:"Module"}));cr(om());const B_=Object.freeze(Object.defineProperty({__proto__:null,$brand:dl,$input:fm,$output:dm,NEVER:ll,TimePrecision:gm,ZodAny:xp,ZodArray:Np,ZodBase64:_u,ZodBase64URL:ku,ZodBigInt:ea,ZodBigIntFormat:zu,ZodBoolean:Xo,ZodCIDRv4:$u,ZodCIDRv6:wu,ZodCUID:mu,ZodCUID2:pu,ZodCatch:Gp,ZodCodec:Du,ZodCustom:sa,ZodCustomStringFormat:eo,ZodDate:Tu,ZodDefault:Zp,ZodDiscriminatedUnion:jp,ZodE164:xu,ZodEmail:lu,ZodEmoji:du,ZodEnum:ro,ZodError:Dw,ZodFile:Dp,get ZodFirstPartyTypeKind(){return Au},ZodFunction:eg,ZodGUID:Yo,ZodIPv4:bu,ZodIPv6:yu,ZodISODate:au,ZodISODateTime:ou,ZodISODuration:uu,ZodISOTime:su,ZodIntersection:Tp,ZodIssueCode:Z_,ZodJWT:Su,ZodKSUID:vu,ZodLazy:Hp,ZodLiteral:Mp,ZodMap:Cp,ZodNaN:Jp,ZodNanoID:fu,ZodNever:Ip,ZodNonOptional:Uu,ZodNull:_p,ZodNullable:Ap,ZodNumber:Ho,ZodNumberFormat:hi,ZodObject:ra,ZodOptional:Cu,ZodPipe:Mu,ZodPrefault:Fp,ZodPromise:Xp,ZodReadonly:Bp,ZodRealError:$r,ZodRecord:Eu,ZodSet:Up,ZodString:Bo,ZodStringFormat:jt,ZodSuccess:Qp,ZodSymbol:$p,ZodTemplateLiteral:Kp,ZodTransform:Lp,ZodTuple:Ep,ZodType:et,ZodULID:gu,ZodURL:Ko,ZodUUID:rn,ZodUndefined:wp,ZodUnion:Ou,ZodUnknown:Sp,ZodVoid:zp,ZodXID:hu,_ZodString:cu,_default:Rp,_function:aa,any:ta,array:$t,base64:r_,base64url:n_,bigint:p_,boolean:rt,catch:Vp,check:C_,cidrv4:e_,cidrv6:t_,clone:Nr,codec:O_,coerce:J_,config:cr,core:Uw,cuid:Vw,cuid2:Jw,custom:U_,date:y_,decode:fp,decodeAsync:pp,discriminatedUnion:to,e164:i_,email:Lw,emoji:Qw,encode:dp,encodeAsync:mp,endsWith:Hs,enum:Dt,file:z_,flattenError:Xa,float32:l_,float64:d_,formatError:es,function:aa,getErrorMap:F_,globalRegistry:Zn,gt:Fn,gte:yr,guid:Aw,hash:c_,hex:u_,hostname:s_,httpUrl:Ww,includes:Ys,instanceof:M_,int:Iu,int32:f_,int64:g_,intersection:Op,ipv4:Hw,ipv6:Xw,iso:Mw,json:L_,jwt:o_,keyof:$_,ksuid:Kw,lazy:Lu,length:Jo,literal:xt,locales:lm,looseObject:__,lowercase:Js,lt:Rn,lte:Zr,map:x_,maxLength:Vo,maxSize:Go,mime:Xs,minLength:gi,minSize:Hi,multipleOf:Ki,nan:T_,nanoid:Gw,nativeEnum:I_,negative:Wm,never:Nu,nonnegative:Gm,nonoptional:Wp,nonpositive:Qm,normalize:eu,null:kp,nullable:ia,nullish:N_,number:mt,object:we,optional:na,overwrite:qn,parse:sp,parseAsync:up,partialRecord:k_,pipe:oa,positive:qm,prefault:qp,preprocess:A_,prettifyError:El,promise:P_,property:Vm,readonly:Yp,record:Bt,refine:tg,regex:Vs,regexes:ms,registry:Ss,safeDecode:hp,safeDecodeAsync:bp,safeEncode:gp,safeEncodeAsync:vp,safeParse:cp,safeParseAsync:lp,set:S_,setErrorMap:R_,size:Gs,startsWith:Ks,strictObject:w_,string:P,stringFormat:a_,stringbool:D_,success:j_,superRefine:rg,symbol:v_,templateLiteral:E_,toJSONSchema:tp,toLowerCase:ru,toUpperCase:nu,transform:Pu,treeifyError:Tl,trim:tu,tuple:Pp,uint32:m_,uint64:h_,ulid:Bw,undefined:b_,union:nn,unknown:Wn,uppercase:Bs,url:qw,util:Nl,uuid:yp,uuidv4:Zw,uuidv6:Rw,uuidv7:Fw,void:ju,xid:Yw},Symbol.toStringTag,{value:"Module"}));var Y_=Object.defineProperty,on=(e,r)=>Y_(e,"name",{value:r,configurable:!0}),ng=Dt(["rating","single_choice","nps","nested_selection","multiple_choice_multiple","short_answer","long_text","annotation"]).describe("Enumeration of all supported question types for form fields"),K_={RATING:"rating",SINGLE_CHOICE:"single_choice",NPS:"nps",NESTED_SELECTION:"nested_selection",MULTIPLE_CHOICE_MULTIPLE:"multiple_choice_multiple",SHORT_ANSWER:"short_answer",LONG_TEXT:"long_text",ANNOTATION:"annotation"},ig=Dt(["required","min","max","minLength","maxLength","pattern","email","url","custom"]).describe("Enumeration of all supported validation rule types"),H_={REQUIRED:"required",MIN:"min",MAX:"max",MIN_LENGTH:"minLength",MAX_LENGTH:"maxLength",PATTERN:"pattern",EMAIL:"email",URL:"url",CUSTOM:"custom"},og=we({type:ig.describe("Type of validation rule to apply"),value:nn([P(),mt(),rt()]).optional().describe("Value for the validation rule (string, number, or boolean)"),message:P().optional().describe("Custom error message when validation fails"),describe:P().max(500).optional().describe("LLM tool call description for this validation rule")}).describe("Schema defining validation rules for question responses"),X_=Dt(["equals","not_equals","contains","not_contains","greater_than","less_than","is_empty","is_not_empty"]).describe("Enumeration of all supported visibility condition operators"),ek={EQUALS:"equals",NOT_EQUALS:"not_equals",CONTAINS:"contains",NOT_CONTAINS:"not_contains",GREATER_THAN:"greater_than",LESS_THAN:"less_than",IS_EMPTY:"is_empty",IS_NOT_EMPTY:"is_not_empty"},ag=we({field:P().describe("ID of the field to check against"),operator:X_.describe("Comparison operator for the condition"),value:nn([P(),mt(),rt()]).optional().describe("Value to compare against (string, number, or boolean)"),describe:P().max(500).optional().describe("LLM tool call description for this visibility condition")}).describe("Schema defining conditions that control when questions are visible"),ua=we({id:P().describe("Unique identifier for the section"),title:P().min(1).max(200).describe("Display title for the section"),questionIds:$t(P()).min(1).describe("Array of question IDs that belong to this section")}).describe("Schema defining sections that organize questions into logical groups"),sg=Dt(["D","P","A","S"]),tk={DRAFT:"D",PUBLISHED:"P",ARCHIVED:"A",SUSPENDED:"S"},ug=Dt(["star","heart","thumbs-up","diamond","emoji","emoji-exp"]),rk={STAR:"star",HEART:"heart",THUMBS_UP:"thumbs_up",DIAMOND:"diamond",EMOJI:"emoji",EMOJI_EXP:"emoji_exp"},cg=Dt(["small","medium","large"]),nk={SMALL:"small",MEDIUM:"medium",LARGE:"large"},lg=Dt(["radio","list","chip","dropdown"]),ik={RADIO:"radio",LIST:"list",CHIP:"chip",DROPDOWN:"dropdown"},dg=Dt(["checkbox","list","chip"]),ok={CHECKBOX:"checkbox",LIST:"list",CHIP:"chip"},fg=Dt(["randomize","flip","rotate","ascending","none"]),ak={RANDOMIZE:"randomize",FLIP:"flip",ROTATE:"rotate",ASCENDING:"ascending",NONE:"none"},an=we({id:P().describe("Unique identifier for the question"),type:ng.describe("The type of question (rating, single_choice, etc.)"),title:P().min(1).max(200).describe("The main title/question text displayed to users"),description:P().max(1e3).optional().describe("Optional detailed description or help text"),describe:P().max(2e3).optional().describe("LLM tool call description for better AI understanding and context"),required:rt().default(!1).describe("Whether this question must be answered"),errorMessage:P().max(500).optional().describe("Custom error message when validation fails"),validations:$t(og).optional().default([]).describe("Array of validation rules to apply"),visibility:$t(ag).optional().default([]).describe("Conditions that control when this question is shown"),isFixed:rt().describe("Whether this question position is fixed or can be reordered"),sectionId:P().optional().describe("ID of the section this question belongs to"),status:sg.describe("Current status of the question (Draft, Published, etc.)")}).describe("Base schema for all question types with common properties"),mg=an.extend({type:xt("rating").describe("Must be exactly 'rating'"),showLabels:rt().optional().describe("Whether to show min/max labels"),minLabel:P().max(100).optional().describe("Label for the minimum rating value"),maxLabel:P().max(100).optional().describe("Label for the maximum rating value"),displayStyle:ug.optional().describe("Visual style for rating display"),numberOfRatings:mt().int().min(1).max(10).describe("Number of rating options (1-10)"),representationSize:cg.optional().describe("Size of rating visual elements"),color:P().regex(/^#[0-9A-F]{6}$/i,"Must be a valid hex color").optional().describe("Hex color for rating elements")}).describe("Schema for rating questions with customizable display options"),pg=an.extend({type:xt("annotation").describe("Must be exactly 'annotation'"),annotationText:P().max(1e3).optional().describe("Text to display when annotation is provided"),noAnnotationText:P().max(500).optional().describe("Text to display when no annotation is provided")}).describe("Schema for annotation questions that provide additional context or instructions"),Zu=we({id:P().describe("Unique identifier for this option (system time milliseconds)"),value:P().min(1).max(100).describe("The internal value used for this option"),label:P().min(1).max(200).describe("The display text shown to users for this option"),describe:P().max(500).optional().describe("LLM tool call description providing context about this option"),imageUrl:P().url().optional().describe("Optional image URL to display with this option")}).describe("Schema for individual options in choice-based questions"),Ru=Lu(()=>we({id:P().describe("Unique identifier for this nested option (system time milliseconds)"),value:P().min(1).max(100).describe("The internal value used for this nested option"),label:P().min(1).max(200).describe("The display text shown for this nested option"),describe:P().max(500).optional().describe("LLM tool call description for this nested option context"),imageUrl:P().url().optional().describe("Optional image URL for this nested option"),hint:P().max(500).optional().describe("Optional hint text to help users understand this nested option"),children:$t(Ru).optional().default([]).describe("Array of child options for hierarchical structure")}).describe("Schema for nested options with hierarchical structure support")),gg=an.extend({type:xt("single_choice").describe("Must be exactly 'single_choice'"),displayStyle:lg.optional().describe("Visual style for displaying options"),randomizeOptions:rt().optional().default(!1).describe("Whether to randomize the order of options"),options:$t(Zu).min(1).max(50).describe("Array of options for user selection (1-50 options)")}).describe("Schema for single-choice multiple selection questions"),hg=an.extend({type:xt("multiple_choice_multiple").describe("Must be exactly 'multiple_choice_multiple'"),displayStyle:dg.optional().describe("Visual style for displaying multiple options"),minSelections:mt().int().min(0).optional().describe("Minimum number of options that must be selected"),maxSelections:mt().int().min(1).optional().describe("Maximum number of options that can be selected"),randomizeOptions:rt().optional().default(!1).describe("Whether to randomize the order of options"),options:$t(Zu).min(1).max(50).describe("Array of options for user selection (1-50 options)")}).refine(e=>e.minSelections!==void 0&&e.maxSelections!==void 0?e.minSelections<=e.maxSelections:!0,{message:"minSelections cannot be greater than maxSelections",path:["minSelections"]}).describe("Schema for multiple-choice questions allowing multiple selections"),vg=an.extend({type:xt("nps").describe("Must be exactly 'nps'"),min:xt(0).describe("NPS always starts at 0"),max:xt(10).describe("NPS always ends at 10"),minLabel:P().max(100).optional().describe("Label for the minimum NPS value (0)"),maxLabel:P().max(100).optional().describe("Label for the maximum NPS value (10)"),scaleLabels:Bt(P().regex(/^\d+$/),P().max(50)).optional().describe("Custom labels for specific NPS values (0-10)"),prepopulatedValue:mt().int().min(0).max(10).optional().describe("Default value to pre-select (0-10)")}).refine(e=>e.scaleLabels?Object.keys(e.scaleLabels).every(o=>{const s=Number(o);return!isNaN(s)&&s>=0&&s<=10}):!0,{message:"scaleLabels keys must be between 0 and 10 (inclusive)",path:["scaleLabels"]}).describe("Schema for Net Promoter Score questions with 0-10 scale"),bg=an.extend({type:xt("short_answer").describe("Must be exactly 'short_answer'"),maxCharacters:mt().int().min(1).max(1e4).optional().describe("Maximum number of characters allowed"),minCharacters:mt().int().min(0).optional().describe("Minimum number of characters required"),placeholder:P().max(200).optional().describe("Placeholder text shown in the input field"),enableRegexValidation:rt().optional().default(!1).describe("Whether to enable regex pattern validation"),regexPattern:P().optional().describe("Regular expression pattern for validation"),enableEnhanceWithAi:rt().optional().default(!1).describe("Whether to enable AI enhancement features"),promptTemplate:P().max(2e3).optional().describe("Template for AI enhancement prompts"),cooldownSeconds:mt().int().min(0).max(3600).optional().describe("Cooldown period between AI enhancements (0-3600 seconds)"),maxEnhancements:mt().int().min(1).max(10).optional().describe("Maximum number of AI enhancements allowed"),maxTokenAllowed:mt().int().min(1).max(1e4).optional().describe("Maximum tokens allowed for AI processing"),minCharactersToEnhance:mt().int().min(1).optional().describe("Minimum characters needed to trigger AI enhancement")}).refine(e=>e.minCharacters!==void 0&&e.maxCharacters!==void 0?e.minCharacters<=e.maxCharacters:!0,{message:"minCharacters cannot be greater than maxCharacters",path:["minCharacters"]}).refine(e=>!(e.enableRegexValidation&&!e.regexPattern),{message:"regexPattern is required when enableRegexValidation is true",path:["regexPattern"]}).refine(e=>!(e.enableEnhanceWithAi&&!e.promptTemplate),{message:"promptTemplate is required when enableEnhanceWithAi is true",path:["promptTemplate"]}).describe("Schema for short answer questions with optional AI enhancement"),yg=an.extend({type:xt("long_text").describe("Must be exactly 'long_text'"),maxCharacters:mt().int().min(1).max(5e4).optional().describe("Maximum number of characters allowed (higher limit for long text)"),minCharacters:mt().int().min(0).optional().describe("Minimum number of characters required"),rows:mt().int().min(1).max(20).optional().describe("Number of textarea rows to display (1-20)"),placeholder:P().max(500).optional().describe("Placeholder text for the textarea (longer for long text)"),enableEnhanceWithAi:rt().optional().default(!1).describe("Whether to enable AI enhancement features"),promptTemplate:P().max(2e3).optional().describe("Template for AI enhancement prompts"),cooldownSeconds:mt().int().min(0).max(3600).optional().describe("Cooldown period between AI enhancements (0-3600 seconds)"),maxEnhancements:mt().int().min(1).max(10).optional().describe("Maximum number of AI enhancements allowed"),maxTokenAllowed:mt().int().min(1).max(25e3).optional().describe("Maximum tokens allowed for AI processing (higher for long text)"),minCharactersToEnhance:mt().int().min(1).optional().describe("Minimum characters needed to trigger AI enhancement")}).refine(e=>e.minCharacters!==void 0&&e.maxCharacters!==void 0?e.minCharacters<=e.maxCharacters:!0,{message:"minCharacters cannot be greater than maxCharacters",path:["minCharacters"]}).refine(e=>!(e.enableEnhanceWithAi&&!e.promptTemplate),{message:"promptTemplate is required when enableEnhanceWithAi is true",path:["promptTemplate"]}).describe("Schema for long answer questions with rich text support and AI enhancement"),$g=an.extend({type:xt("nested_selection").describe("Must be exactly 'nested_selection'"),placeholder:P().max(200).optional().describe("Placeholder text for the nested dropdown"),options:$t(Ru).min(1).max(100).describe("Array of nested options for hierarchical selection (1-100 options)"),displayStyle:xt("list").describe("Fixed display style for nested dropdowns"),choiceOrderOption:fg.optional().default("none").describe("How to order the nested choices"),preserveLastChoices:mt().int().min(0).max(10).optional().describe("Number of choice levels to preserve (0-10)"),prepopulatedValue:P().max(1e3).optional().describe("Default value to pre-populate"),allowOther:rt().optional().default(!1).describe('Whether to allow custom "other" options'),otherColumnName:P().max(100).optional().describe('Column name for storing custom "other" values'),maxDepth:mt().int().min(1).max(10).optional().describe("Maximum nesting depth allowed (1-10)"),cascadeLabels:rt().optional().default(!1).describe("Whether to cascade labels from parent options")}).refine(e=>!(e.allowOther&&!e.otherColumnName),{message:"otherColumnName is required when allowOther is true",path:["otherColumnName"]}).describe("Schema for nested dropdown questions with hierarchical option structure"),ca=to("type",[mg,pg,gg,hg,vg,bg,yg,$g]),wg=we({markerNo:P(),timeline:P(),comment:P()}),_g=we({fileType:P(),fileName:P(),markers:$t(wg)}),kg=we({nps:mt().optional().describe("Net Promoter Score value (e.g., 0-10)"),nestedSelection:$t(P()).optional().describe("Array of selected nested option IDs"),longText:P().optional().describe("Long text answer, e.g., paragraph or essay"),shortAnswer:P().optional().describe("Short text answer, e.g., single sentence or word"),singleChoice:P().optional().describe("single selected option ID (for single choice questions)"),rating:mt().optional().describe("Star rating value (e.g., 1-5)"),multipleChoiceMultiple:$t(P()).optional().describe("Array of selected option IDs for multiple choice questions"),annotation:_g.optional().describe("Annotation object containing file and marker details"),others:P().optional().describe("For multiple choice questions and single choice questions, this is the value of the other option")}).describe("Flexible answer item supporting various question types and custom fields"),xg=kg,Sg=Dt(["R","S"]).describe("Enumeration of feedback types: R=Recurring, O=One-time"),sk={RECURRING:"R",ONE_TIME:"S"},Ig=Dt(["Y","N"]).describe("Yes/No enumeration using Y/N values"),uk={YES:"Y",NO:"N"},zg=Dt(["minutes","hours","days","weeks","months","years"]).describe("Time units for recurring feedback schedules"),ck={MINUTES:"minutes",HOURS:"hours",DAYS:"days",WEEKS:"weeks",MONTHS:"months",YEARS:"years"},Ng=we({surveyType:Sg.describe("Type of feedback: R for recurring, O for one-time"),showOnce:Ig.describe("Whether the feedback should be shown only once per user"),stopWhenResponsesCount:P().regex(/^\d+$/,"Must be a valid number string").describe("Stop feedback when this number of responses is reached (as string)"),recurringValue:P().regex(/^\d+$/,"Must be a valid number string").describe("Value for recurring schedule (e.g., every 15 days)"),recurringUnit:zg.describe("Time unit for recurring schedule"),startDate:P().regex(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(\+|\-)\d{2}:\d{2}$/,"Must be a valid ISO date string with timezone").describe("Start date and time for the feedback in ISO format"),stopDate:P().regex(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(\+|\-)\d{2}:\d{2}$/,"Must be a valid ISO date string with timezone").describe("Stop date and time for the feedback in ISO format")}).refine(e=>!(e.surveyType==="S"&&e.showOnce==="N"),{message:"One-time feedback must have showOnce set to 'Y'",path:["showOnce"]}).refine(e=>e.surveyType==="R"?parseInt(e.recurringValue)>0:!0,{message:"Recurring feedback must have a positive recurring value",path:["recurringValue"]}).refine(e=>{const r=new Date(e.startDate);return new Date(e.stopDate)>r},{message:"Stop date must be after start date",path:["stopDate"]}).describe("Schema defining frequency and scheduling properties for feedback"),jg=we({isShareable:rt().describe("Whether the feedback results can be shared externally"),isEmailShareable:rt().describe("Whether the feedback can be shared via email")}).describe("Schema defining external publishing and sharing properties for feedback"),Tg=Dt(["P","D","A","S"]).describe("Publication status: P=Published, D=Draft, A=Archived, S=Stopped"),lk={PUBLISHED:"P",DRAFT:"D",ARCHIVED:"A",STOPPED:"S"},Og=we({formTitle:P().describe("Title of the feedback form"),formDescription:P().describe("Description of the feedback form"),isPublished:Tg.describe("Publication status of the feedback form")}).describe("Schema defining feedback configuration properties"),tt=P().min(1).describe("Translated text content"),Eg=we({type:xt("rating").describe("Question type identifier"),title:tt.describe("Question title translation"),description:tt.optional().describe("Question description translation"),errorMessage:tt.optional().describe("Error message translation"),minLabel:tt.optional().describe("Minimum rating label translation"),maxLabel:tt.optional().describe("Maximum rating label translation")}).describe("Translation schema for rating questions"),Pg=we({type:xt("single_choice").describe("Question type identifier"),title:tt.describe("Question title translation"),description:tt.optional().describe("Question description translation"),errorMessage:tt.optional().describe("Error message translation"),placeholder:tt.optional().describe("Input placeholder translation")}).catchall(tt).refine(e=>Object.keys(e).filter(o=>!["type","title","description","errorMessage","placeholder"].includes(o)).every(o=>/^option\..+\.(label|value)$/.test(o)),{message:"Additional keys must follow the pattern 'option.{id}.{label|value}'"}).describe("Translation schema for single choice questions"),Cg=we({type:xt("multiple_choice_multiple").describe("Question type identifier"),title:tt.describe("Question title translation"),description:tt.optional().describe("Question description translation"),errorMessage:tt.optional().describe("Error message translation"),placeholder:tt.optional().describe("Input placeholder translation")}).catchall(tt).refine(e=>Object.keys(e).filter(o=>!["type","title","description","errorMessage","placeholder"].includes(o)).every(o=>/^option\..+\.(label|value)$/.test(o)),{message:"Additional keys must follow the pattern 'option.{id}.{label|value}'"}).describe("Translation schema for multiple choice questions"),Ug=we({type:xt("nps").describe("Question type identifier"),title:tt.describe("Question title translation"),description:tt.optional().describe("Question description translation"),errorMessage:tt.optional().describe("Error message translation"),minLabel:tt.optional().describe("Minimum NPS label (0) translation"),maxLabel:tt.optional().describe("Maximum NPS label (10) translation")}).catchall(tt).refine(e=>Object.keys(e).filter(o=>!["type","title","description","errorMessage","minLabel","maxLabel"].includes(o)).every(o=>/^scaleLabel\.\d+$/.test(o)),{message:"Additional keys must follow the pattern 'scaleLabel.{number}'"}).describe("Translation schema for NPS questions"),Mg=we({type:xt("short_answer").describe("Question type identifier"),title:tt.describe("Question title translation"),description:tt.optional().describe("Question description translation"),errorMessage:tt.optional().describe("Error message translation"),placeholder:tt.optional().describe("Input placeholder translation")}).describe("Translation schema for short answer questions"),Dg=we({type:xt("long_text").describe("Question type identifier"),title:tt.describe("Question title translation"),description:tt.optional().describe("Question description translation"),errorMessage:tt.optional().describe("Error message translation"),placeholder:tt.optional().describe("Textarea placeholder translation")}).describe("Translation schema for long answer questions"),Lg=we({type:xt("nested_selection").describe("Question type identifier"),title:tt.describe("Question title translation"),description:tt.optional().describe("Question description translation"),errorMessage:tt.optional().describe("Error message translation"),placeholder:tt.optional().describe("Dropdown placeholder translation")}).catchall(tt).refine(e=>Object.keys(e).filter(o=>!["type","title","description","errorMessage","placeholder"].includes(o)).every(o=>/^nestedOption\..+\.(label|hint)$/.test(o)),{message:"Additional keys must follow the pattern 'nestedOption.{id}.{label|hint}'"}).describe("Translation schema for nested selection questions"),Ag=we({type:xt("annotation").describe("Question type identifier"),title:tt.describe("Question title translation"),description:tt.optional().describe("Question description translation"),errorMessage:tt.optional().describe("Error message translation"),annotationText:tt.optional().describe("Annotation display text translation"),noAnnotationText:tt.optional().describe("No annotation display text translation")}).describe("Translation schema for annotation questions"),Zg=nn([Eg,Pg,Cg,Ug,Mg,Dg,Lg,Ag]).describe("Union of all question type translation schemas"),dk=P().min(2).max(10).describe("Language code (e.g., 'en', 'es', 'hi')"),fk=Bt(dk,Zg).describe("Question translations keyed by language code"),Rg=Bt(P().uuid(),fk).describe("Question-centric translations keyed by question ID, then by language code"),Fu=Rg.describe("Question-centric translations at root level"),Fg=class{constructor(r,o="en"){this.translations=r,this.defaultLanguage=o}getQuestionTranslations(r,o){const s=this.translations[r];if(!s)return null;let t=s[o];return t||(t=s[this.defaultLanguage]),t||null}getTranslationText(r,o,s){const t=this.getQuestionTranslations(r,o);if(!t)return null;if(s in t){const a=t[s];return typeof a=="string"?a:null}return null}getQuestionLanguages(r){const o=this.translations[r];return o?Object.keys(o):[]}getAvailableLanguages(){const r=new Set;return Object.values(this.translations).forEach(o=>{Object.keys(o).forEach(s=>{r.add(s)})}),Array.from(r)}isLanguageSupportedForQuestion(r,o){const s=this.translations[r];return s?o in s:!1}isLanguageSupported(r){return this.getAvailableLanguages().includes(r)}getDefaultLanguage(){return this.defaultLanguage}getQuestionIds(){return Object.keys(this.translations)}getQuestionType(r,o){const s=o||this.defaultLanguage;return this.getQuestionTranslations(r,s)?.type||null}};on(Fg,"TranslationProvider");var qg=Fg;function Wg(e,r="en"){return new qg(e,r)}on(Wg,"createTranslationProvider");var Qg=Dt(["fade","manual"]).describe("How the end screen should be dismissed (fade out or manual dismissal)"),mk={FADE:"fade",MANUAL:"manual"},qu=we({title:P().min(1).max(200).describe("The main title displayed on the welcome screen"),description:P().min(1).max(1e3).describe("Description text shown on the welcome screen"),buttonLabel:P().min(1).max(50).describe("Text displayed on the welcome screen button")}).describe("Schema for welcome screen configuration fields"),Wu=we({title:P().min(1).max(200).describe("The main title displayed on the end screen"),message:P().min(1).max(1e3).describe("Message text shown on the end screen"),buttonLabel:P().min(1).max(50).describe("Text displayed on the end screen button"),dismissBehavior:Qg.describe("How the end screen should be dismissed (fade out or manual dismissal)"),fadeDuration:mt().int().min(0).max(1e4).describe("Duration in milliseconds for fade dismissal (0-10000)")}).describe("Schema for end screen configuration fields"),Qu=we({title:P().min(1).max(200).describe("Translated title text for welcome screen"),description:P().min(1).max(1e3).describe("Translated description text for welcome screen"),buttonLabel:P().min(1).max(50).describe("Translated text for the welcome button label")}).describe("Schema for welcome screen translation fields"),Gu=we({buttonLabel:P().min(1).max(50).describe("Translated text for the end button label"),title:P().min(1).max(200).describe("Translated title text for end screen"),message:P().min(1).max(1e3).describe("Translated message text for end screen")}).describe("Schema for end screen translation fields"),Vu=we({pagination:rt().describe("Whether to show pagination for multi-page forms"),questionNumber:rt().describe("Whether to display question numbers"),pageTitle:rt().describe("Whether to show page titles in multi-page forms"),blockerFeedback:rt().describe("Whether to show blocker feedback for validation errors"),submitButtonLabel:P().min(1).max(50).describe("Text for the submit button"),previousButtonLabel:P().min(1).max(50).describe("Text for the previous button in pagination"),nextButtonLabel:P().min(1).max(50).describe("Text for the next button in pagination"),aiEnhancementSuccessMessage:P().min(1).max(100).describe("Message shown when AI enhancement is successful (max 100 characters)"),aiEnhancementCooldownErrorMessage:P().min(1).max(100).describe("Message shown when AI enhancement is on cooldown (max 100 characters)"),aiEnhancementMaxReachedErrorMessage:P().min(1).max(100).describe("Message shown when maximum AI enhancements reached (max 100 characters)")}).describe("Schema for other form configuration fields"),Ju=we({value:P().min(1).max(10).describe("Language code (e.g., 'en', 'es', 'fr')"),label:P().min(1).max(50).describe("Display name for the language (e.g., 'English', 'Spanish', 'French')"),isFixed:rt().default(!1).describe("Whether this language is fixed and cannot be deleted by users")}).describe("Schema for individual language field with value, label, and fixed status"),la=$t(Ju).describe("Schema for array of available languages"),Bu=we({submitButtonLabel:P().min(1).max(50).describe("Translated text for the submit button"),previousButtonLabel:P().min(1).max(50).describe("Translated text for the previous button in pagination"),nextButtonLabel:P().min(1).max(50).describe("Translated text for the next button in pagination"),aiEnhancementSuccessMessage:P().min(1).max(100).describe("Translated message shown when AI enhancement is successful (max 100 characters)"),aiEnhancementCooldownErrorMessage:P().min(1).max(100).describe("Translated message shown when AI enhancement is on cooldown (max 100 characters)"),aiEnhancementMaxReachedErrorMessage:P().min(1).max(100).describe("Translated message shown when maximum AI enhancements reached (max 100 characters)")}).describe("Schema for other form configuration field translations"),Yu=Dt(["top-left","top-center","top-right","middle-left","middle-center","middle-right","bottom-left","bottom-center","bottom-right"]).describe("Available positions for widget placement"),pk={TOP_LEFT:"top-left",TOP_CENTER:"top-center",TOP_RIGHT:"top-right",MIDDLE_LEFT:"middle-left",MIDDLE_CENTER:"middle-center",MIDDLE_RIGHT:"middle-right",BOTTOM_LEFT:"bottom-left",BOTTOM_CENTER:"bottom-center",BOTTOM_RIGHT:"bottom-right"},gk=Dt(["light","dark"]).describe("Available theme modes for the widget"),hk={LIGHT:"light",DARK:"dark"},Gg=we({darkOverlay:rt().describe("Whether to show a dark overlay behind the widget"),closeButton:rt().describe("Whether to display a close button on the widget"),progressBar:rt().describe("Whether to show a progress bar indicating completion status"),showBranding:rt().describe("Whether to display branding elements on the widget"),customPosition:rt().describe("Whether custom positioning is enabled"),customIconPosition:rt().describe("Whether custom icon positioning is enabled"),customCss:P().optional().describe("Custom CSS link to apply for the feedback form")}).describe("Feature settings controlling widget UI behavior and appearance"),Ku=we({brandColor:P().regex(/^#([0-9A-F]{3}|[0-9A-F]{6})$/i,"Must be a valid hex color (e.g., #3366CC)").describe("Primary brand color in hex format"),overlayColor:P().regex(/^#([0-9A-F]{3}|[0-9A-F]{6})$/i,"Must be a valid hex color (e.g., #FFFFFF)").describe("Overlay background color in hex format"),textColor:P().regex(/^#([0-9A-F]{3}|[0-9A-F]{6})$/i,"Must be a valid hex color (e.g., #333333)").describe("Primary text color in hex format"),backgroundColor:nn([P().regex(/^#([0-9A-F]{3}|[0-9A-F]{6})$/i),P().regex(/^rgba?\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*(?:,\s*[01](?:\.\d+)?)?\s*\)$/i)]).describe("Background color in hex format or rgba format (e.g., #1A1A1A or rgba(255,255,255, 1))")}).describe("Color scheme for a single theme"),Hu=we({light:Ku,dark:Ku}).describe("Complete theme configuration with light and dark variants"),Xu=we({themes:Hu.describe("Color themes for light and dark modes"),featureSettings:Gg.describe("UI feature settings controlling widget behavior"),selectedPosition:Yu.describe("Selected position for the main widget"),selectedIconPosition:Yu.describe("Selected position for the widget icon")}).describe("Complete theme and UI configuration including colors, features, and positioning"),Vg=we({name:P().describe("The operator name (e.g., '=', '!=', 'contains', 'beginsWith', 'matches')"),label:P().describe("Human-readable label for the operator (e.g., 'equals', 'not equals', 'contains')")}).describe("Schema defining an operator for custom event fields"),Jg=we({name:P().describe("The field name (e.g., 'event_name', 'add_to_cart', 'cart_item_number')"),label:P().describe("Human-readable label for the field"),placeholder:P().describe("Placeholder text for input fields"),operators:$t(Vg).min(1).describe("Array of available operators for this field")}).describe("Schema defining a custom event field with its operators"),Bg=we({customEventFields:$t(Jg).optional().describe("Array of custom event fields with their operators and labels")}).describe("Schema defining metadata for conditional if clauses"),Yg=we({query:P().describe("The structured query definition as a JSON string"),naturalLanguage:P().describe("Human-readable description of the query conditions"),jsonLogic:P().describe("JSON Logic representation of the query as a JSON string"),sqlQuery:P().describe("SQL representation of the query for database operations")}).describe("Schema defining query output structure with all fields as strings"),Kg=we({id:P().describe("Unique identifier for this condition"),event:P().describe("The event that triggers evaluation of this condition (e.g., 'pageLoad', 'pageView', 'scroll', 'custom')"),queryOutput:Yg.describe("The query conditions to evaluate when the event occurs"),metadata:Bg.optional().describe("Optional metadata containing custom event fields and their configurations")}).describe("Schema defining the 'if' condition for auto-trigger logic"),Hg=we({triggerType:P().describe("The type of action to perform (e.g., 'delay', 'scroll', 'immediately')"),delay:mt().int().min(0).optional().describe("Delay in seconds before performing the action"),scroll:nn([P(),mt()]).optional().describe("Scroll position (percentage as string like '75%' or pixel value as number)")}).describe("Schema defining the action to perform when conditions are met"),Xg=we({if:Kg.describe("The condition that must be met"),then:Hg.describe("The action to perform when the condition is met")}).describe("Schema defining a conditional when clause with if-then logic"),da=we({id:P().describe("Unique identifier for this filter condition"),category:P().describe("The category this filter belongs to (e.g., 'device', 'user', 'geo_location')"),property:P().describe("The property to filter on (e.g., 'device_type', 'age', 'country')"),operator:P().describe("The comparison operator (e.g., 'equals', 'greaterThan', 'lessThan')"),values:$t(P()).min(1).describe("Array of values to compare against"),tbl_key:P().describe("The database table key for this property")}).describe("Schema defining a single filter condition within a category"),eh=we({device:$t(da).optional().describe("Array of device-specific filter conditions"),user:$t(da).optional().describe("Array of user-specific filter conditions"),geo_location:$t(da).optional().describe("Array of geo-location specific filter conditions")}).describe("Schema defining category-specific filters for audience targeting"),th=we({applications:$t(P()).min(1).describe("Array of application names this targeting applies to"),userType:P().describe("The type of user this targeting applies to (e.g., 'both', 'new', 'returning')"),categorySpecificFilters:eh.optional().describe("Optional category-specific filters for more granular targeting")}).describe("Schema defining who the audience targeting applies to"),rh=we({id:P().describe("Unique identifier for the audience segment"),name:P().min(1).max(200).describe("Display name for the audience segment"),isImportant:rt().describe("Whether this segment is marked as important for targeting"),when:$t(Xg).min(1).describe("Array of conditional when clauses with if-then logic"),who:th.describe("User criteria and conditions defining who belongs to this segment")}).describe("Schema defining an audience segment for targeting with conditional logic"),ec=we({isAuto:rt().describe("Whether automatic triggering is enabled for this audience"),isManual:rt().describe("Whether manual triggering is enabled for this audience"),segments:$t(rh).min(0).describe("Array of audience segments for targeting conditions")}).refine(e=>e.isAuto||e.isManual,{message:"At least one of isAuto or isManual must be true",path:["isAuto"]}).describe("Schema defining audience trigger properties for form targeting"),fa=to("isEnabled",[we({isEnabled:xt(!1).describe("Whether other configuration properties are enabled"),otherFields:Vu.describe("Other form configuration fields including pagination, buttons, and display options"),translations:Bt(P(),Bu).optional().describe("Translations for other configuration field labels and buttons keyed by language code")}),we({isEnabled:xt(!0).describe("Whether other configuration properties are enabled"),otherFields:Vu.describe("Other form configuration fields including pagination, buttons, and display options"),translations:Bt(P(),Bu).describe("Translations for other configuration field labels and buttons keyed by language code")})]).describe("Schema for other configuration properties including fields and translations"),ma=to("isEnabled",[we({isEnabled:xt(!1).describe("Whether welcome screen is enabled"),welcomeFields:qu.optional().describe("Welcome screen configuration fields including title, description, and button label"),translations:Bt(P(),Qu).optional().describe("Translations for welcome screen content keyed by language code")}),we({isEnabled:xt(!0).describe("Whether welcome screen is enabled"),welcomeFields:qu.describe("Welcome screen configuration fields including title, description, and button label"),translations:Bt(P(),Qu).describe("Translations for welcome screen content keyed by language code")})]).describe("Schema for welcome screen properties including fields and translations"),pa=to("isEnabled",[we({isEnabled:xt(!1).describe("Whether end screen is enabled"),endFields:Wu.optional().describe("End screen configuration fields including title, message, button label, and dismissal behavior"),translations:Bt(P(),Gu).optional().describe("Translations for end screen content keyed by language code")}),we({isEnabled:xt(!0).describe("Whether end screen is enabled"),endFields:Wu.describe("End screen configuration fields including title, message, button label, and dismissal behavior"),translations:Bt(P(),Gu).describe("Translations for end screen content keyed by language code")})]).describe("Schema for end screen properties including fields and translations"),nh=we({themeConfiguration:Xu.describe("Theme configuration including colors, features, and positioning")}).describe("Schema for appearance properties including theme configuration"),vk=we({feedbackConfigurationId:yp().describe("Unique identifier for the feedback configuration"),feedbackConfiguration:Og.describe("Configuration properties for the feedback form"),questionnaireFields:we({questions:Bt(P(),ca).describe("Collection of questions keyed by their string identifiers"),sections:$t(ua).describe("Array of sections that organize questions into logical groups"),selectedLanguages:la.describe("Array of languages selected for this questionnaire"),translations:Fu.describe("Multi-language translations for questions and form content")}).describe("Fields defining the questionnaire structure, questions, sections, selected languages, and translations"),frequencyAndSchedulingProperties:Ng.describe("Properties controlling when and how often the feedback is shown"),externalPublishingProperties:jg.describe("Properties controlling external sharing and publishing of feedback results"),audienceTriggerProperties:ec.describe("Properties defining audience targeting and trigger conditions for the feedback form"),otherConfigurationProperties:fa.describe("Additional configuration properties including form display options and translations"),welcomeScreenProperties:ma.describe("Welcome screen configuration including content and translations"),endScreenProperties:pa.describe("End screen configuration including content, dismissal behavior, and translations"),appearanceProperties:nh.describe("Appearance configuration including themes, colors, and UI feature settings")}).describe("Complete schema for all feedback-level properties including scheduling, publishing, audience targeting, configuration, screens, and appearance"),ih=we({mandatoryFetchConfigAtPaths:$t(P()).describe("Array of paths where configuration must be fetched from server when navigated by user"),configSyncIntervalSeconds:mt().int().positive().describe("Interval in seconds for configuration synchronization between client and server"),disableAllSurvey:rt().describe("Flag to disable all surveys globally"),feedbackIntervalDuration:mt().int().positive().describe("Duration in seconds for feedback interval between two auto triggered feedbacks")}).describe("Master properties configuration for global survey settings"),oh=Dt(["light","dark","system"]).describe("Enumeration of supported theme modes"),bk={LIGHT:"light",DARK:"dark",SYSTEM:"system"},no=we({$deviceType:P().describe("Type of device being used"),$timezone:P().describe("Device timezone (e.g., 'Asia/Calcutta')"),$theme:oh.describe("Current theme mode preference"),$os:P().describe("Operating system running on the device"),$osVersion:P().describe("Version of the operating system"),$appVersion:P().describe("Version of the application"),$app:P().describe("Browser or application being used"),$language:P().describe("Language preference (e.g., 'en-GB')")}).describe("Device information collected from the client"),io=we({$sessionId:P().uuid().describe("Unique session identifier"),$timestamp:P().optional().describe("ISO timestamp of the session")}).describe("Session information for tracking user sessions"),yk=we({deviceInfo:no.describe("Device information"),sessionInfo:io.describe("Session information")}).describe("Combined device and session information"),ah=we({$counter:Bt(P(),mt().int()).describe("Counter properties for user tracking (can be positive or negative)").optional(),$set:Bt(P(),ta()).describe("Properties to set for the user").optional(),$setOnce:Bt(P(),ta()).describe("Properties to set once for the user (won't overwrite existing values)").optional(),$unset:$t(P()).describe("Array of property names to unset/remove from the user").optional()}).loose().describe("User properties including counters, set operations, and other dynamic data"),ga=we({userName:P().email().describe("User's email address as username"),properties:ah.describe("User properties and counters")}).describe("User information including identification and properties"),sh=Dt(["V","S"]).describe("User action: V for view, S for submit"),$k={VIEW:"V",SUBMIT:"S"},ha=we({feedbackIdentifier:P().uuid().describe("Unique identifier for the feedback instance"),feedbackConfigurationId:P().uuid().describe("Unique identifier for the feedback configuration"),completionTimeInSeconds:mt().int().min(0).describe("Time taken to complete the feedback in seconds"),userAction:sh.describe("Action performed by the user"),responseLanguageCode:P().length(2).describe("Language code for the response (e.g., 'en', 'es')")}).describe("Configuration information for the feedback form"),uh=we({questionId:P().uuid().describe("Unique identifier for the question"),answer:xg.describe("The answer provided for this question"),type:P().describe("Type of the question (e.g., 'rating', 'single_choice')"),error:P().optional().describe("Error message if any validation failed")}).describe("Response to a specific question in the feedback form"),ch=we({questions:$t(uh).min(1).describe("Array of question responses")}).describe("User responses to feedback questions"),lh=we({customEventName:P().nullable().describe("Custom event name that triggered the feedback"),currentPath:P().describe("Current page path where feedback was triggered"),eventType:P().describe("Type of event that triggered the feedback")}).passthrough().describe("Properties of the trigger that matched for this feedback"),tc=we({formConfig:ha.describe("Form configuration information"),deviceInfo:no.describe("Device information"),sessionInfo:io.describe("Session information"),userInfo:ga.optional().describe("User information (optional)"),matchedTriggerProperties:lh.describe("Properties of the matched trigger"),customProperties:Bt(P(),Wn()).optional().describe("Custom properties for advanced use cases")}).describe("Base submit feedback request schema"),dh=tc.extend({formConfig:ha.extend({userAction:xt("V").describe("Action performed by the user (view)")})}).strict().describe("View feedback request schema (no response required)"),fh=tc.extend({formConfig:ha.extend({userAction:xt("S").describe("Action performed by the user (submit)")}),response:ch.describe("User responses (required for submit)")}).strict().describe("Submit feedback request schema (response required)"),wk=nn([dh,fh]).describe("Union schema for both view and submit feedback requests"),mh=we({feedbackConfigurationId:P().uuid().describe("Unique identifier for the feedback configuration"),feedbackTitle:P().describe("Title of the feedback configuration"),triggerProperties:ec.describe("Trigger properties including auto/manual settings and audience segments"),appearanceProperties:we({themes:we({light:we({brandColor:P().describe("Brand color for light theme"),overlayColor:P().describe("Overlay color for light theme"),textColor:P().describe("Text color for light theme"),backgroundColor:P().describe("Background color for light theme")}).describe("Light theme colors"),dark:we({brandColor:P().describe("Brand color for dark theme"),overlayColor:P().describe("Overlay color for dark theme"),textColor:P().describe("Text color for dark theme"),backgroundColor:P().describe("Background color for dark theme")}).describe("Dark theme colors")}).nullable().optional().describe("Theme configuration (optional)"),featureSettings:we({darkOverlay:rt().describe("Whether to show dark overlay"),closeButton:rt().describe("Whether to show close button"),progressBar:rt().describe("Whether to show progress bar"),showBranding:rt().describe("Whether to show branding"),customPosition:rt().describe("Whether custom position is enabled"),customIconPosition:rt().describe("Whether custom icon position is enabled"),customCss:P().nullable().optional().describe("Custom CSS link (optional)")}).describe("Feature settings for the feedback form"),selectedIconPosition:P().describe("Selected position for the feedback icon"),selectedPosition:P().describe("Selected position for the feedback form")}).describe("Appearance properties for the feedback form")}).describe("Individual feedback configuration item in the list"),ph=we({feedbackConfigurationId:P().uuid().describe("Unique identifier for the feedback configuration"),responseLanguageCode:P().length(2).describe("Language code for the response (e.g., 'en', 'es')")}).describe("Form configuration for fetching feedback details"),_k=we({deviceInfo:no.describe("Device information"),sessionInfo:io.describe("Session information"),userInfo:ga.optional().describe("User information (optional)"),force:rt().optional().describe("Forcefully fetch eligible feedback list (optional)")}).strict().describe("Request schema for fetching available feedback configurations"),kk=we({formConfig:ph.describe("Form configuration for the specific feedback"),deviceInfo:no.describe("Device information"),sessionInfo:io.describe("Session information"),userInfo:ga.optional().describe("User information (optional)")}).strict().describe("Request schema for fetching specific feedback form details"),gh=we({formTitle:P().describe("Title of the feedback form"),formDescription:P().describe("Description of the feedback form")}).describe("Form configuration response with title and description"),hh=we({questions:Bt(P(),ca).describe("Collection of questions keyed by their string identifiers"),sections:$t(ua).describe("Array of sections that organize questions into logical groups"),translations:Bt(P(),ta()).describe("Translations object (can be empty or contain language-specific translations)"),selectedLanguages:la.describe("Array of languages selected for this questionnaire")}).describe("Questionnaire fields response including questions, sections, translations, and selected languages"),xk=we({feedbackConfigurationId:P().uuid().describe("Unique identifier for the feedback configuration"),feedbackIdentifier:P().uuid().describe("Unique identifier for this specific feedback instance"),formConfiguration:gh.describe("Form configuration with title and description"),questionnaireFields:hh.describe("Questionnaire structure including questions, sections, translations, and languages"),otherConfigurationProperties:fa.describe("Other configuration properties using existing schema"),welcomeScreenProperties:ma.describe("Welcome screen properties using existing schema"),endScreenProperties:pa.describe("End screen properties using existing schema")}).strict().describe("Complete response schema for fetchFeedbackDetails API using existing field schemas"),Sk=we({masterProperties:ih.describe("Master properties for global survey settings"),feedbackConfiguration:$t(mh).describe("Array of available feedback configurations")}).strict().describe("Response schema for fetchConfigurationList API"),Ik=we({questionId:P().describe("Unique identifier for the question"),identifier:P().uuid().describe("Unique identifier for the feedback instance"),feedbackConfigurationId:P().uuid().describe("Unique identifier for the feedback configuration"),userText:P().describe("Original text input from the user")}).strict().describe("Request schema for refining user text input"),vh=we({userText:P().describe("Original text input from the user"),refinedText:P().describe("Refined/improved version of the user text")}).describe("Data containing original and refined text"),zk=we({success:rt().describe("Indicates whether the operation was successful"),code:P().describe("Response code indicating the status"),message:P().describe("Human-readable message describing the result"),messageId:P().describe("Unique identifier for the response message"),data:vh.describe("Response data containing original and refined text"),error:P().optional().describe("Error message if the operation failed (optional)")}).strict().describe("Response schema for refine text API operation");function vi(e,r){if(e===null||typeof e>"u"||typeof e!="object")return e;const o=Array.isArray(e)?[]:{};for(const[s,t]of Object.entries(e)){let a=s;typeof s=="string"&&!s.includes("-")&&(a=r(s)),o[a]=Array.isArray(t)?t.map(f=>typeof f=="object"&&!(f instanceof Uint8Array)&&!(f instanceof Date)?vi(f,r):f):t instanceof Uint8Array||t instanceof Date?t:typeof t=="object"?vi(t,r):t}return o}on(vi,"convertObject");function va(e){return e.length===1?e.toLowerCase():e.replace(/^([A-Z])/,r=>r[0].toLowerCase()).replace(/[_-]([a-z0-9])/g,r=>r[1].toUpperCase())}on(va,"toCamel");function bh(e){return vi(e,va)}on(bh,"objectToCamel");function rc(e){let r=e,o=0;for(;(/([a-z])([0-9])/.exec(r)?.length||0)>2&&o<10;)r=r.replace(/([a-z])([0-9])/,(s,t,a)=>`${t.toLowerCase()}_${a.toLowerCase()}`),o+=1;for(;(/(.+?)([A-Z])/.exec(r)?.length||0)>2&&o<10;)r=r.replace(/(.+?)([A-Z])/,(s,t,a)=>`${t.toLowerCase()}_${a.toLowerCase()}`),o+=1;return r.toLowerCase()}on(rc,"toSnake");function yh(e){return vi(e,rc)}on(yh,"objectToSnake");function nc(e){return va(e).replace(/^([a-z])/,r=>r[0].toUpperCase())}on(nc,"toPascal");function $h(e){return vi(e,nc)}on($h,"objectToPascal");var wh=Dt(["light","dark"]).describe("Current theme mode of the application"),Nk={LIGHT:"light",DARK:"dark"},jk=we({theme:Hu.describe("Theme configuration including light and dark theme colors"),currentMode:wh.describe("Current theme mode (light or dark)"),currentLanguage:Ju.describe("Currently selected language configuration"),questions:Bt(P(),ca).describe("Collection of questions keyed by their string identifiers"),questionLanguages:la.describe("Available languages for questions"),otherConfigurationProperties:fa.describe("Other configuration properties including form display options and translations"),welcomeScreenProperties:ma.optional().describe("Welcome screen configuration (optional)"),endScreenProperties:pa.optional().describe("End screen configuration (optional)"),translations:Fu.optional().describe("Multi-language translations for questions and form content (optional)"),onSectionChange:aa({input:[mt()],output:ju()}).optional().describe("Optional callback function triggered when section changes"),onClose:aa({input:[],output:ju()}).optional().describe("Optional callback function triggered when the form is closed"),sections:$t(ua).describe("Array of sections that organize questions into logical groups"),themeSettings:Xu.describe("Complete theme configuration including colors, features, and positioning")}).describe("Schema for application props interface containing all form configuration and state");const Tk=Lb(Object.freeze(Object.defineProperty({__proto__:null,AnnotationMarkerSchema:wg,AnnotationSchema:_g,AnswerItemSchema:kg,AnswerSchema:xg,ChoiceOrderOptions:ak,CurrentModes:Nk,DeviceThemes:bk,DismissBehaviors:mk,EndFieldsTranslationSchema:Gu,EndScreenFieldsSchema:Wu,LanguageFieldSchema:Ju,LanguagesSchema:la,MultipleChoiceDisplayStyles:ik,MultipleChoiceMultipleDisplayStyles:ok,OtherFieldsSchema:Vu,OtherFieldsTranslationSchema:Bu,Positions:pk,PublicationStatuses:lk,QuestionStatuses:tk,QuestionTypes:K_,RatingDisplayStyles:rk,RatingRepresentationSizes:nk,RecurringUnits:ck,SurveyTypes:sk,ThemeModes:hk,TranslationProvider:qg,UserActions:$k,ValidationRuleTypes:H_,VisibilityConditionOperators:ek,WelcomeFieldsTranslationSchema:Qu,WelcomeScreenFieldsSchema:qu,YesNoValues:uk,annotationQuestionSchema:pg,annotationQuestionTranslationSchema:Ag,appPropsSchema:jk,appearancePropertiesSchema:nh,audienceSegmentSchema:rh,audienceTriggerPropertiesSchema:ec,baseSubmitFeedbackSchema:tc,categorySpecificFiltersSchema:eh,choiceOrderOptionSchema:fg,combinedQuestionSchema:ca,conditionalIfMetadataSchema:Bg,conditionalIfSchema:Kg,conditionalWhenSchema:Xg,createTranslationProvider:Wg,currentModeSchema:wh,customEventFieldOperatorSchema:Vg,customEventFieldSchema:Jg,deviceInfoSchema:no,deviceSessionInfoSchema:yk,deviceThemeSchema:oh,dismissBehaviorSchema:Qg,endScreenPropertiesSchema:pa,externalPublishingPropertiesSchema:jg,featureSettingsSchema:Gg,feedbackConfigurationItemSchema:mh,feedbackConfigurationSchema:Og,feedbackRequestSchema:wk,fetchConfigurationListResponseSchema:Sk,fetchConfigurationListSchema:_k,fetchFeedbackDetailsResponseSchema:xk,fetchFeedbackDetailsSchema:kk,fetchFormConfigSchema:ph,filterConditionSchema:da,formConfigSchema:ha,formConfigurationResponseSchema:gh,formPropertiesSchema:vk,frequencyAndSchedulingPropertiesSchema:Ng,longAnswerQuestionSchema:yg,longAnswerQuestionTranslationSchema:Dg,masterPropertiesSchema:ih,matchedTriggerPropertiesSchema:lh,multipleChoiceDisplayStyleSchema:lg,multipleChoiceMultipleDisplayStyleSchema:dg,multipleChoiceMultipleQuestionSchema:hg,multipleChoiceQuestionTranslationSchema:Cg,multipleChoiceSingleQuestionSchema:gg,nestedDropdownQuestionSchema:$g,nestedOptionSchema:Ru,nestedSelectionQuestionTranslationSchema:Lg,npsQuestionSchema:vg,npsQuestionTranslationSchema:Ug,objectToCamel:bh,objectToPascal:$h,objectToSnake:yh,otherConfigurationPropertiesSchema:fa,positionSchema:Yu,publicationStatusSchema:Tg,queryOutputSchema:Yg,questionCentricTranslationsSchema:Rg,questionOptionSchema:Zu,questionResponseSchema:uh,questionSchema:an,questionStatusSchema:sg,questionTranslationSchema:Zg,questionTypeSchema:ng,questionnaireFieldsResponseSchema:hh,ratingDisplayStyleSchema:ug,ratingQuestionSchema:mg,ratingQuestionTranslationSchema:Eg,ratingRepresentationSizeSchema:cg,recurringUnitSchema:zg,refineTextDataSchema:vh,refineTextParamsSchema:Ik,refineTextResponseSchema:zk,responseSchema:ch,sectionSchema:ua,sessionInfoSchema:io,shortAnswerQuestionSchema:bg,shortAnswerQuestionTranslationSchema:Mg,singleChoiceQuestionTranslationSchema:Pg,submitFeedbackSchema:fh,surveyTypeSchema:Sg,themeColorsSchema:Ku,themeConfigurationSchema:Xu,themeModeSchema:gk,themesSchema:Hu,toCamel:va,toPascal:nc,toSnake:rc,translationEntrySchema:tt,translationsSchema:Fu,triggerActionSchema:Hg,userActionSchema:sh,userInfoSchema:ga,userPropertiesSchema:ah,validationRuleSchema:og,validationRuleTypeSchema:ig,viewFeedbackSchema:dh,visibilityConditionSchema:ag,welcomeScreenPropertiesSchema:ma,whoSchema:th,yesNoSchema:Ig,z:B_},Symbol.toStringTag,{value:"Module"})));var Ok=Li.exports,_h;function Ek(){return _h||(_h=1,(function(e,r){(function(o,s){s(r,Tk)})(Ok,(function(o,s){typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");let t=!1,a=!1;function f(){t=!0}f();const _=1,q=2,X=4,ce=8,ue=16,ze=1,ge=2,A=4,ye=8,Me=16,pt=1,ct=2,dt="[",bt="[!",lr="]",Br={},Qt=Symbol(),ba="http://www.w3.org/1999/xhtml",ic="http://www.w3.org/2000/svg",ya="@attach",oo=!1;var _n=Array.isArray,oc=Array.prototype.indexOf,Qn=Array.from,Gn=Object.keys,Yr=Object.defineProperty,jr=Object.getOwnPropertyDescriptor,ao=Object.getOwnPropertyDescriptors,so=Object.prototype,pe=Array.prototype,Ve=Object.getPrototypeOf,Nt=Object.isExtensible;function Lt(i){return typeof i=="function"}const gt=()=>{};function Tr(i){return i()}function Vn(i){for(var n=0;n<i.length;n++)i[n]()}function bi(){var i,n,u=new Promise((c,d)=>{i=c,n=d});return{promise:u,resolve:i,reject:n}}function Yt(i,n){if(Array.isArray(i))return i;if(!(Symbol.iterator in i))return Array.from(i);const u=[];for(const c of i)if(u.push(c),u.length===n)break;return u}const Zt=2,Jn=4,yi=8,Bn=16,sn=32,kn=64,ac=128,Or=256,$a=512,nr=1024,wr=2048,un=4096,Rr=8192,Yn=16384,sc=32768,Kn=65536,kh=1<<17,Uk=1<<18,Hn=1<<19,xh=1<<20,uc=1<<21,wa=1<<22,Xn=1<<23,Kr=Symbol("$state"),cc=Symbol("legacy props"),Mk=Symbol(""),uo=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Dk=1,_a=3,ei=8;function lc(i){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Lk(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Ak(i){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Zk(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Rk(i){throw new Error("https://svelte.dev/e/effect_orphan")}function Fk(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function qk(){throw new Error("https://svelte.dev/e/hydration_failed")}function Wk(i){throw new Error("https://svelte.dev/e/props_invalid_value")}function Qk(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Gk(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Vk(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Jk(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ka(i){console.warn("https://svelte.dev/e/hydration_mismatch")}function Bk(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Yk(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let Le=!1;function dr(i){Le=i}let Ge;function Ht(i){if(i===null)throw ka(),Br;return Ge=i}function cn(){return Ht(Xr(Ge))}function L(i){if(Le){if(Xr(Ge)!==null)throw ka(),Br;Ge=i}}function _r(i=1){if(Le){for(var n=i,u=Ge;n--;)u=Xr(u);Ge=u}}function xa(i=!0){for(var n=0,u=Ge;;){if(u.nodeType===ei){var c=u.data;if(c===lr){if(n===0)return u;n-=1}else(c===dt||c===bt)&&(n+=1)}var d=Xr(u);i&&u.remove(),u=d}}function Sh(i){if(!i||i.nodeType!==ei)throw ka(),Br;return i.data}function Ih(i){return i===this.v}function zh(i,n){return i!=i?n==n:i!==n||i!==null&&typeof i=="object"||typeof i=="function"}function Nh(i){return!zh(i,this.v)}const Kk=[];function Hk(i,n=!1,u=!1){return Sa(i,new Map,"",Kk,null,u)}function Sa(i,n,u,c,d=null,m=!1){if(typeof i=="object"&&i!==null){var p=n.get(i);if(p!==void 0)return p;if(i instanceof Map)return new Map(i);if(i instanceof Set)return new Set(i);if(_n(i)){var g=Array(i.length);n.set(i,g),d!==null&&n.set(d,g);for(var h=0;h<i.length;h+=1){var b=i[h];h in i&&(g[h]=Sa(b,n,u,c,null,m))}return g}if(Ve(i)===so){g={},n.set(i,g),d!==null&&n.set(d,g);for(var y in i)g[y]=Sa(i[y],n,u,c,null,m);return g}if(i instanceof Date)return structuredClone(i);if(typeof i.toJSON=="function"&&!m)return Sa(i.toJSON(),n,u,c,i)}if(i instanceof EventTarget)return i;try{return structuredClone(i)}catch{return i}}let St=null;function $i(i){St=i}function dc(i){return fc().get(i)}function jh(i,n){return fc().set(i,n),n}function Xk(i){return fc().has(i)}function Je(i,n=!1,u){St={p:St,c:null,e:null,s:i,x:null,l:t&&!n?{s:null,u:null,$:[]}:null}}function Be(i){var n=St,u=n.e;if(u!==null){n.e=null;for(var c of u)ev(c)}return i!==void 0&&(n.x=i),St=n.p,i??{}}function co(){return!t||St!==null&&St.l===null}function fc(i){return St===null&&lc(),St.c??=new Map(e0(St)||void 0)}function e0(i){let n=i.p;for(;n!==null;){const u=n.c;if(u!==null)return u;n=n.p}return null}let ti=[];function Th(){var i=ti;ti=[],Vn(i)}function ln(i){if(ti.length===0&&!lo){var n=ti;queueMicrotask(()=>{n===ti&&Th()})}ti.push(i)}function t0(){for(;ti.length>0;)Th()}const r0=new WeakMap;function Oh(i){var n=Xe;if(n===null)return st.f|=Xn,i;if((n.f&sc)===0){if((n.f&ac)===0)throw!n.parent&&i instanceof Error&&Eh(i),i;n.b.error(i)}else wi(i,n)}function wi(i,n){for(;n!==null;){if((n.f&ac)!==0)try{n.b.error(i);return}catch(u){i=u}n=n.parent}throw i instanceof Error&&Eh(i),i}function Eh(i){const n=r0.get(i);n&&(Yr(i,"message",{value:n.message}),Yr(i,"stack",{value:n.stack}))}const Ia=new Set;let Ot=null,za=null,mc=new Set,Hr=[],Na=null,pc=!1,lo=!1;class Fr{current=new Map;#e=new Map;#t=new Set;#n=0;#o=null;#i=[];#a=[];#r=[];#s=[];#u=[];#l=[];skipped_effects=new Set;process(n){Hr=[],za=null;for(const d of n)this.#d(d);if(this.#n===0){this.#f();var u=this.#a,c=this.#r;this.#a=[],this.#r=[],this.#s=[],za=this,Ot=null,Ch(u),Ch(c),za=null,this.#o?.resolve()}else this.#c(this.#a),this.#c(this.#r),this.#c(this.#s);for(const d of this.#i)xi(d);this.#i=[]}#d(n){n.f^=nr;for(var u=n.first;u!==null;){var c=u.f,d=(c&(sn|kn))!==0,m=d&&(c&nr)!==0,p=m||(c&Rr)!==0||this.skipped_effects.has(u);if(!p&&u.fn!==null){d?u.f^=nr:(c&Jn)!==0?this.#r.push(u):(c&nr)===0&&((c&wa)!==0&&u.b?.is_pending()?this.#i.push(u):ho(u)&&((u.f&Bn)!==0&&this.#s.push(u),xi(u)));var g=u.first;if(g!==null){u=g;continue}}var h=u.parent;for(u=u.next;u===null&&h!==null;)u=h.next,h=h.parent}}#c(n){for(const u of n)((u.f&wr)!==0?this.#u:this.#l).push(u),sr(u,nr);n.length=0}capture(n,u){this.#e.has(n)||this.#e.set(n,u),this.current.set(n,n.v)}activate(){Ot=this}deactivate(){Ot=null}flush(){if(Hr.length>0){if(this.activate(),Ph(),Ot!==null&&Ot!==this)return}else this.#n===0&&this.#f();this.deactivate();for(const n of mc)if(mc.delete(n),n(),Ot!==null)break}#f(){for(const n of this.#t)n();if(this.#t.clear(),Ia.size>1){this.#e.clear();let n=!0;for(const u of Ia){if(u===this){n=!1;continue}for(const[c,d]of this.current){if(u.current.has(c))if(n)u.current.set(c,d);else continue;Uh(c)}if(Hr.length>0){Ot=u;for(const c of Hr)u.#d(c);Hr=[]}}Ot=null}Ia.delete(this)}increment(){this.#n+=1}decrement(){this.#n-=1;for(const n of this.#u)sr(n,wr),ni(n);for(const n of this.#l)sr(n,un),ni(n);this.flush()}add_callback(n){this.#t.add(n)}settled(){return(this.#o??=bi()).promise}static ensure(){if(Ot===null){const n=Ot=new Fr;Ia.add(Ot),lo||Fr.enqueue(()=>{Ot===n&&n.flush()})}return Ot}static enqueue(n){ln(n)}static apply(n){return gt}}function at(i){var n=lo;lo=!0;try{for(var u;;){if(t0(),Hr.length===0&&(Ot?.flush(),Hr.length===0))return Na=null,u;Ph()}}finally{lo=n}}function Ph(){var i=ki;pc=!0;try{var n=0;for(sv(!0);Hr.length>0;){var u=Fr.ensure();if(n++>1e3){var c,d;n0()}u.process(Hr),xn.clear()}}finally{pc=!1,sv(i),Na=null}}function n0(){try{Fk()}catch(i){wi(i,Na)}}let ri=null;function Ch(i){var n=i.length;if(n!==0){for(var u=0;u<n;){var c=i[u++];if((c.f&(Yn|Rr))===0&&ho(c)&&(ri=[],xi(c),c.deps===null&&c.first===null&&c.nodes_start===null&&(c.teardown===null&&c.ac===null?iv(c):c.fn=null),ri?.length>0)){xn.clear();for(const d of ri)xi(d);ri=[]}}ri=null}}function Uh(i){if(i.reactions!==null)for(const n of i.reactions){const u=n.f;(u&Zt)!==0?Uh(n):(u&(wa|Bn))!==0&&(sr(n,wr),ni(n))}}function ni(i){for(var n=Na=i;n.parent!==null;){n=n.parent;var u=n.f;if(pc&&n===Xe&&(u&Bn)!==0)return;if((u&(kn|sn))!==0){if((u&nr)===0)return;n.f^=nr}}Hr.push(n)}function Mh(i){let n=0,u=Sn(0),c;return()=>{g0()&&(l(u),ii(()=>(n===0&&(c=M(()=>i(()=>mo(u)))),n+=1,()=>{ln(()=>{n-=1,n===0&&(c?.(),c=void 0,mo(u))})})))}}var i0=Kn|Hn|ac;function o0(i,n,u){new a0(i,n,u)}class a0{parent;#e=!1;#t;#n=Le?Ge:null;#o;#i;#a;#r=null;#s=null;#u=null;#l=null;#d=0;#c=0;#f=!1;#m=null;#v=()=>{this.#m&&_i(this.#m,this.#d)};#b=Mh(()=>(this.#m=Sn(this.#d),()=>{this.#m=null}));constructor(n,u,c){this.#t=n,this.#o=u,this.#i=c,this.parent=Xe.b,this.#e=!!this.#o.pending,this.#a=zn(()=>{if(Xe.b=this,Le){const d=this.#n;cn(),d.nodeType===ei&&d.data===bt?this.#$():this.#y()}else{try{this.#r=ir(()=>c(this.#t))}catch(d){this.error(d)}this.#c>0?this.#g():this.#e=!1}},i0),Le&&(this.#t=Ge)}#y(){try{this.#r=ir(()=>this.#i(this.#t))}catch(n){this.error(n)}this.#e=!1}#$(){const n=this.#o.pending;n&&(this.#s=ir(()=>n(this.#t)),Fr.enqueue(()=>{this.#r=this.#p(()=>(Fr.ensure(),ir(()=>this.#i(this.#t)))),this.#c>0?this.#g():(Nn(this.#s,()=>{this.#s=null}),this.#e=!1)}))}is_pending(){return this.#e||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#o.pending}#p(n){var u=Xe,c=st,d=St;Pr(this.#a),pr(this.#a),$i(this.#a.ctx);try{return n()}catch(m){return Oh(m),null}finally{Pr(u),pr(c),$i(d)}}#g(){const n=this.#o.pending;this.#r!==null&&(this.#l=document.createDocumentFragment(),s0(this.#r,this.#l)),this.#s===null&&(this.#s=ir(()=>n(this.#t)))}#h(n){if(!this.has_pending_snippet()){this.parent&&this.parent.#h(n);return}this.#c+=n,this.#c===0&&(this.#e=!1,this.#s&&Nn(this.#s,()=>{this.#s=null}),this.#l&&(this.#t.before(this.#l),this.#l=null),ln(()=>{Fr.ensure().flush()}))}update_pending_count(n){this.#h(n),this.#d+=n,mc.add(this.#v)}get_effect_pending(){return this.#b(),l(this.#m)}error(n){var u=this.#o.onerror;let c=this.#o.failed;if(this.#f||!u&&!c)throw n;this.#r&&(Xt(this.#r),this.#r=null),this.#s&&(Xt(this.#s),this.#s=null),this.#u&&(Xt(this.#u),this.#u=null),Le&&(Ht(this.#n),_r(),Ht(xa()));var d=!1,m=!1;const p=()=>{if(d){Yk();return}d=!0,m&&Jk(),Fr.ensure(),this.#d=0,this.#u!==null&&Nn(this.#u,()=>{this.#u=null}),this.#e=this.has_pending_snippet(),this.#r=this.#p(()=>(this.#f=!1,ir(()=>this.#i(this.#t)))),this.#c>0?this.#g():this.#e=!1};var g=st;try{pr(null),m=!0,u?.(n,p),m=!1}catch(h){wi(h,this.#a&&this.#a.parent)}finally{pr(g)}c&&ln(()=>{this.#u=this.#p(()=>{this.#f=!0;try{return ir(()=>{c(this.#t,()=>n,()=>p)})}catch(h){return wi(h,this.#a.parent),null}finally{this.#f=!1}})})}}function s0(i,n){for(var u=i.nodes_start,c=i.nodes_end;u!==null;){var d=u===c?null:Xr(u);n.append(u),u=d}}function Dh(i,n,u){const c=co()?fo:Ae;if(n.length===0){u(i.map(c));return}var d=Ot,m=Xe,p=u0(),g=Le;Promise.all(n.map(h=>c0(h))).then(h=>{p();try{u([...i.map(c),...h])}catch(b){(m.f&Yn)===0&&wi(b,m)}g&&dr(!1),d?.deactivate(),Lh()}).catch(h=>{wi(h,m)})}function u0(){var i=Xe,n=st,u=St,c=Ot,d=Le;if(d)var m=Ge;return function(){Pr(i),pr(n),$i(u),c?.activate(),d&&(dr(!0),Ht(m))}}function Lh(){Pr(null),pr(null),$i(null)}function fo(i){var n=Zt|wr,u=st!==null&&(st.f&Zt)!==0?st:null;return Xe===null||u!==null&&(u.f&Or)!==0?n|=Or:Xe.f|=Hn,{ctx:St,deps:null,effects:null,equals:Ih,f:n,fn:i,reactions:null,rv:0,v:Qt,wv:0,parent:u??Xe,ac:null}}function c0(i,n){let u=Xe;u===null&&Lk();var c=u.b,d=void 0,m=Sn(Qt),p=!st,g=new Map;return b0(()=>{var h=bi();d=h.promise;try{Promise.resolve(i()).then(h.resolve,h.reject)}catch(v){h.reject(v)}var b=Ot,y=c.is_pending();p&&(c.update_pending_count(1),y||(b.increment(),g.get(b)?.reject(uo),g.set(b,h)));const k=(v,x=void 0)=>{y||b.activate(),x?x!==uo&&(m.f|=Xn,_i(m,x)):((m.f&Xn)!==0&&(m.f^=Xn),_i(m,v)),p&&(c.update_pending_count(-1),y||b.decrement()),Lh()};h.promise.then(k,v=>k(null,v||"unknown"))}),bc(()=>{for(const h of g.values())h.reject(uo)}),new Promise(h=>{function b(y){function k(){y===d?h(m):b(d)}y.then(k,k)}b(d)})}function lt(i){const n=fo(i);return cv(n),n}function Ae(i){const n=fo(i);return n.equals=Nh,n}function Ah(i){var n=i.effects;if(n!==null){i.effects=null;for(var u=0;u<n.length;u+=1)Xt(n[u])}}function l0(i){for(var n=i.parent;n!==null;){if((n.f&Zt)===0)return n;n=n.parent}return null}function gc(i){var n,u=Xe;Pr(l0(i));try{Ah(i),n=pv(i)}finally{Pr(u)}return n}function Zh(i){var n=gc(i);if(i.equals(n)||(i.v=n,i.wv=fv()),!oi){var u=(jn||(i.f&Or)!==0)&&i.deps!==null?un:nr;sr(i,u)}}const xn=new Map;function Sn(i,n){var u={f:0,v:i,reactions:null,equals:Ih,rv:0,wv:0};return u}function qr(i,n){const u=Sn(i);return cv(u),u}function ee(i,n=!1,u=!0){const c=Sn(i);return n||(c.equals=Nh),t&&u&&St!==null&&St.l!==null&&(St.l.s??=[]).push(c),c}function Rh(i,n){return $(i,M(()=>l(i))),n}function $(i,n,u=!1){st!==null&&(!Gr||(st.f&kh)!==0)&&co()&&(st.f&(Zt|Bn|wa|kh))!==0&&!dn?.includes(i)&&Vk();let c=u?In(n):n;return _i(i,c)}function _i(i,n){if(!i.equals(n)){var u=i.v;oi?xn.set(i,n):xn.set(i,u),i.v=n;var c=Fr.ensure();c.capture(i,u),(i.f&Zt)!==0&&((i.f&wr)!==0&&gc(i),sr(i,(i.f&Or)===0?nr:un)),i.wv=fv(),qh(i,wr),co()&&Xe!==null&&(Xe.f&nr)!==0&&(Xe.f&(sn|kn))===0&&(Cr===null?w0([i]):Cr.push(i))}return n}function Fh(i,n=1){var u=l(i),c=n===1?u++:u--;return $(i,u),c}function mo(i){$(i,i.v+1)}function qh(i,n){var u=i.reactions;if(u!==null)for(var c=co(),d=u.length,m=0;m<d;m++){var p=u[m],g=p.f;if(!(!c&&p===Xe)){var h=(g&wr)===0;h&&sr(p,n),(g&Zt)!==0?qh(p,un):h&&((g&Bn)!==0&&ri!==null&&ri.push(p),ni(p))}}}function In(i){if(typeof i!="object"||i===null||Kr in i)return i;const n=Ve(i);if(n!==so&&n!==pe)return i;var u=new Map,c=_n(i),d=qr(0),m=ai,p=g=>{if(ai===m)return g();var h=st,b=ai;pr(null),dv(m);var y=g();return pr(h),dv(b),y};return c&&u.set("length",qr(i.length)),new Proxy(i,{defineProperty(g,h,b){(!("value"in b)||b.configurable===!1||b.enumerable===!1||b.writable===!1)&&Qk();var y=u.get(h);return y===void 0?y=p(()=>{var k=qr(b.value);return u.set(h,k),k}):$(y,b.value,!0),!0},deleteProperty(g,h){var b=u.get(h);if(b===void 0){if(h in g){const y=p(()=>qr(Qt));u.set(h,y),mo(d)}}else $(b,Qt),mo(d);return!0},get(g,h,b){if(h===Kr)return i;var y=u.get(h),k=h in g;if(y===void 0&&(!k||jr(g,h)?.writable)&&(y=p(()=>{var x=In(k?g[h]:Qt),S=qr(x);return S}),u.set(h,y)),y!==void 0){var v=l(y);return v===Qt?void 0:v}return Reflect.get(g,h,b)},getOwnPropertyDescriptor(g,h){var b=Reflect.getOwnPropertyDescriptor(g,h);if(b&&"value"in b){var y=u.get(h);y&&(b.value=l(y))}else if(b===void 0){var k=u.get(h),v=k?.v;if(k!==void 0&&v!==Qt)return{enumerable:!0,configurable:!0,value:v,writable:!0}}return b},has(g,h){if(h===Kr)return!0;var b=u.get(h),y=b!==void 0&&b.v!==Qt||Reflect.has(g,h);if(b!==void 0||Xe!==null&&(!y||jr(g,h)?.writable)){b===void 0&&(b=p(()=>{var v=y?In(g[h]):Qt,x=qr(v);return x}),u.set(h,b));var k=l(b);if(k===Qt)return!1}return y},set(g,h,b,y){var k=u.get(h),v=h in g;if(c&&h==="length")for(var x=b;x<k.v;x+=1){var S=u.get(x+"");S!==void 0?$(S,Qt):x in g&&(S=p(()=>qr(Qt)),u.set(x+"",S))}if(k===void 0)(!v||jr(g,h)?.writable)&&(k=p(()=>qr(void 0)),$(k,In(b)),u.set(h,k));else{v=k.v!==Qt;var O=p(()=>In(b));$(k,O)}var U=Reflect.getOwnPropertyDescriptor(g,h);if(U?.set&&U.set.call(y,b),!v){if(c&&typeof h=="string"){var B=u.get("length"),oe=Number(h);Number.isInteger(oe)&&oe>=B.v&&$(B,oe+1)}mo(d)}return!0},ownKeys(g){l(d);var h=Reflect.ownKeys(g).filter(k=>{var v=u.get(k);return v===void 0||v.v!==Qt});for(var[b,y]of u)y.v!==Qt&&!(b in g)&&h.push(b);return h},setPrototypeOf(){Gk()}})}function Wh(i){try{if(i!==null&&typeof i=="object"&&Kr in i)return i[Kr]}catch{}return i}function d0(i,n){return Object.is(Wh(i),Wh(n))}var Qh,Gh,Vh,Jh;function hc(){if(Qh===void 0){Qh=window,Gh=/Firefox/.test(navigator.userAgent);var i=Element.prototype,n=Node.prototype,u=Text.prototype;Vh=jr(n,"firstChild").get,Jh=jr(n,"nextSibling").get,Nt(i)&&(i.__click=void 0,i.__className=void 0,i.__attributes=null,i.__style=void 0,i.__e=void 0),Nt(u)&&(u.__t=void 0)}}function Er(i=""){return document.createTextNode(i)}function Wr(i){return Vh.call(i)}function Xr(i){return Jh.call(i)}function R(i,n){if(!Le)return Wr(i);var u=Wr(Ge);if(u===null)u=Ge.appendChild(Er());else if(n&&u.nodeType!==_a){var c=Er();return u?.before(c),Ht(c),c}return Ht(u),u}function Te(i,n=!1){if(!Le){var u=Wr(i);return u instanceof Comment&&u.data===""?Xr(u):u}if(n&&Ge?.nodeType!==_a){var c=Er();return Ge?.before(c),Ht(c),c}return Ge}function de(i,n=1,u=!1){let c=Le?Ge:i;for(var d;n--;)d=c,c=Xr(c);if(!Le)return c;if(u&&c?.nodeType!==_a){var m=Er();return c===null?d?.after(m):c.before(m),Ht(m),m}return Ht(c),c}function vc(i){i.textContent=""}function Bh(){return!1}function f0(i,n){if(n){const u=document.body;i.autofocus=!0,ln(()=>{document.activeElement===u&&i.focus()})}}function m0(i){Le&&Wr(i)!==null&&vc(i)}let Yh=!1;function Kh(){Yh||(Yh=!0,document.addEventListener("reset",i=>{Promise.resolve().then(()=>{if(!i.defaultPrevented)for(const n of i.target.elements)n.__on_r?.()})},{capture:!0}))}function ja(i){var n=st,u=Xe;pr(null),Pr(null);try{return i()}finally{pr(n),Pr(u)}}function Hh(i,n,u,c=u){i.addEventListener(n,()=>ja(u));const d=i.__on_r;d?i.__on_r=()=>{d(),c(!0)}:i.__on_r=()=>c(!0),Kh()}function Xh(i){Xe===null&&st===null&&Rk(),st!==null&&(st.f&Or)!==0&&Xe===null&&Zk(),oi&&Ak()}function p0(i,n){var u=n.last;u===null?n.last=n.first=i:(u.next=i,i.prev=u,n.last=i)}function Qr(i,n,u,c=!0){var d=Xe;d!==null&&(d.f&Rr)!==0&&(i|=Rr);var m={ctx:St,deps:null,nodes_start:null,nodes_end:null,f:i|wr,first:null,fn:n,last:null,next:null,parent:d,b:d&&d.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(u)try{xi(m),m.f|=sc}catch(h){throw Xt(m),h}else n!==null&&ni(m);if(c){var p=m;if(u&&p.deps===null&&p.teardown===null&&p.nodes_start===null&&p.first===p.last&&(p.f&Hn)===0&&(p=p.first),p!==null&&(p.parent=d,d!==null&&p0(p,d),st!==null&&(st.f&Zt)!==0&&(i&kn)===0)){var g=st;(g.effects??=[]).push(p)}}return m}function g0(){return st!==null&&!Gr}function bc(i){const n=Qr(yi,null,!1);return sr(n,nr),n.teardown=i,n}function po(i){Xh();var n=Xe.f,u=!st&&(n&sn)!==0&&(n&sc)===0;if(u){var c=St;(c.e??=[]).push(i)}else return ev(i)}function ev(i){return Qr(Jn|xh,i,!1)}function tv(i){return Xh(),Qr(yi|xh,i,!0)}function h0(i){Fr.ensure();const n=Qr(kn|Hn,i,!0);return()=>{Xt(n)}}function v0(i){Fr.ensure();const n=Qr(kn|Hn,i,!0);return(u={})=>new Promise(c=>{u.outro?Nn(n,()=>{Xt(n),c(void 0)}):(Xt(n),c(void 0))})}function yc(i){return Qr(Jn,i,!1)}function ve(i,n){var u=St,c={effect:null,ran:!1,deps:i};u.l.$.push(c),c.effect=ii(()=>{i(),!c.ran&&(c.ran=!0,M(n))})}function fr(){var i=St;ii(()=>{for(var n of i.l.$){n.deps();var u=n.effect;(u.f&nr)!==0&&sr(u,un),ho(u)&&xi(u),n.ran=!1}})}function b0(i){return Qr(wa|Hn,i,!0)}function ii(i,n=0){return Qr(yi|n,i,!0)}function je(i,n=[],u=[]){Dh(n,u,c=>{Qr(yi,()=>i(...c.map(l)),!0)})}function zn(i,n=0){var u=Qr(Bn|n,i,!0);return u}function ir(i,n=!0){return Qr(sn|Hn,i,!0,n)}function rv(i){var n=i.teardown;if(n!==null){const u=oi,c=st;uv(!0),pr(null);try{n.call(null)}finally{uv(u),pr(c)}}}function nv(i,n=!1){var u=i.first;for(i.first=i.last=null;u!==null;){const d=u.ac;d!==null&&ja(()=>{d.abort(uo)});var c=u.next;(u.f&kn)!==0?u.parent=null:Xt(u,n),u=c}}function y0(i){for(var n=i.first;n!==null;){var u=n.next;(n.f&sn)===0&&Xt(n),n=u}}function Xt(i,n=!0){var u=!1;(n||(i.f&Uk)!==0)&&i.nodes_start!==null&&i.nodes_end!==null&&($0(i.nodes_start,i.nodes_end),u=!0),nv(i,n&&!u),Oa(i,0),sr(i,Yn);var c=i.transitions;if(c!==null)for(const m of c)m.stop();rv(i);var d=i.parent;d!==null&&d.first!==null&&iv(i),i.next=i.prev=i.teardown=i.ctx=i.deps=i.fn=i.nodes_start=i.nodes_end=i.ac=null}function $0(i,n){for(;i!==null;){var u=i===n?null:Xr(i);i.remove(),i=u}}function iv(i){var n=i.parent,u=i.prev,c=i.next;u!==null&&(u.next=c),c!==null&&(c.prev=u),n!==null&&(n.first===i&&(n.first=c),n.last===i&&(n.last=u))}function Nn(i,n){var u=[];$c(i,u,!0),ov(u,()=>{Xt(i),n&&n()})}function ov(i,n){var u=i.length;if(u>0){var c=()=>--u||n();for(var d of i)d.out(c)}else n()}function $c(i,n,u){if((i.f&Rr)===0){if(i.f^=Rr,i.transitions!==null)for(const p of i.transitions)(p.is_global||u)&&n.push(p);for(var c=i.first;c!==null;){var d=c.next,m=(c.f&Kn)!==0||(c.f&sn)!==0;$c(c,n,m?u:!1),c=d}}}function Ta(i){av(i,!0)}function av(i,n){if((i.f&Rr)!==0){i.f^=Rr,(i.f&nr)===0&&(sr(i,wr),ni(i));for(var u=i.first;u!==null;){var c=u.next,d=(u.f&Kn)!==0||(u.f&sn)!==0;av(u,d?n:!1),u=c}if(i.transitions!==null)for(const m of i.transitions)(m.is_global||n)&&m.in()}}let ki=!1;function sv(i){ki=i}let oi=!1;function uv(i){oi=i}let st=null,Gr=!1;function pr(i){st=i}let Xe=null;function Pr(i){Xe=i}let dn=null;function cv(i){st!==null&&(dn===null?dn=[i]:dn.push(i))}let mr=null,kr=0,Cr=null;function w0(i){Cr=i}let lv=1,go=0,ai=go;function dv(i){ai=i}let jn=!1;function fv(){return++lv}function ho(i){var n=i.f;if((n&wr)!==0)return!0;if((n&un)!==0){var u=i.deps,c=(n&Or)!==0;if(u!==null){var d,m,p=(n&$a)!==0,g=c&&Xe!==null&&!jn,h=u.length;if((p||g)&&(Xe===null||(Xe.f&Yn)===0)){var b=i,y=b.parent;for(d=0;d<h;d++)m=u[d],(p||!m?.reactions?.includes(b))&&(m.reactions??=[]).push(b);p&&(b.f^=$a),g&&y!==null&&(y.f&Or)===0&&(b.f^=Or)}for(d=0;d<h;d++)if(m=u[d],ho(m)&&Zh(m),m.wv>i.wv)return!0}(!c||Xe!==null&&!jn)&&sr(i,nr)}return!1}function mv(i,n,u=!0){var c=i.reactions;if(c!==null&&!dn?.includes(i))for(var d=0;d<c.length;d++){var m=c[d];(m.f&Zt)!==0?mv(m,n,!1):n===m&&(u?sr(m,wr):(m.f&nr)!==0&&sr(m,un),ni(m))}}function pv(i){var n=mr,u=kr,c=Cr,d=st,m=jn,p=dn,g=St,h=Gr,b=ai,y=i.f;mr=null,kr=0,Cr=null,jn=(y&Or)!==0&&(Gr||!ki||st===null),st=(y&(sn|kn))===0?i:null,dn=null,$i(i.ctx),Gr=!1,ai=++go,i.ac!==null&&(ja(()=>{i.ac.abort(uo)}),i.ac=null);try{i.f|=uc;var k=i.fn,v=k(),x=i.deps;if(mr!==null){var S;if(Oa(i,kr),x!==null&&kr>0)for(x.length=kr+mr.length,S=0;S<mr.length;S++)x[kr+S]=mr[S];else i.deps=x=mr;if(!jn||(y&Zt)!==0&&i.reactions!==null)for(S=kr;S<x.length;S++)(x[S].reactions??=[]).push(i)}else x!==null&&kr<x.length&&(Oa(i,kr),x.length=kr);if(co()&&Cr!==null&&!Gr&&x!==null&&(i.f&(Zt|un|wr))===0)for(S=0;S<Cr.length;S++)mv(Cr[S],i);return d!==null&&d!==i&&(go++,Cr!==null&&(c===null?c=Cr:c.push(...Cr))),(i.f&Xn)!==0&&(i.f^=Xn),v}catch(O){return Oh(O)}finally{i.f^=uc,mr=n,kr=u,Cr=c,st=d,jn=m,dn=p,$i(g),Gr=h,ai=b}}function _0(i,n){let u=n.reactions;if(u!==null){var c=oc.call(u,i);if(c!==-1){var d=u.length-1;d===0?u=n.reactions=null:(u[c]=u[d],u.pop())}}u===null&&(n.f&Zt)!==0&&(mr===null||!mr.includes(n))&&(sr(n,un),(n.f&(Or|$a))===0&&(n.f^=$a),Ah(n),Oa(n,0))}function Oa(i,n){var u=i.deps;if(u!==null)for(var c=n;c<u.length;c++)_0(i,u[c])}function xi(i){var n=i.f;if((n&Yn)===0){sr(i,nr);var u=Xe,c=ki;Xe=i,ki=!0;try{(n&Bn)!==0?y0(i):nv(i),rv(i);var d=pv(i);i.teardown=typeof d=="function"?d:null,i.wv=lv;var m;oo&&a&&(i.f&wr)!==0&&i.deps}finally{ki=c,Xe=u}}}async function k0(){await Promise.resolve(),at()}function l(i){var n=i.f,u=(n&Zt)!==0;if(st!==null&&!Gr){var c=Xe!==null&&(Xe.f&Yn)!==0;if(!c&&!dn?.includes(i)){var d=st.deps;if((st.f&uc)!==0)i.rv<go&&(i.rv=go,mr===null&&d!==null&&d[kr]===i?kr++:mr===null?mr=[i]:(!jn||!mr.includes(i))&&mr.push(i));else{(st.deps??=[]).push(i);var m=i.reactions;m===null?i.reactions=[st]:m.includes(st)||m.push(st)}}}else if(u&&i.deps===null&&i.effects===null){var p=i,g=p.parent;g!==null&&(g.f&Or)===0&&(p.f^=Or)}if(oi){if(xn.has(i))return xn.get(i);if(u){p=i;var h=p.v;return((p.f&nr)===0&&p.reactions!==null||gv(p))&&(h=gc(p)),xn.set(p,h),h}}else u&&(p=i,ho(p)&&Zh(p));if((i.f&Xn)!==0)throw i.v;return i.v}function gv(i){if(i.v===Qt)return!0;if(i.deps===null)return!1;for(const n of i.deps)if(xn.has(n)||(n.f&Zt)!==0&&gv(n))return!0;return!1}function M(i){var n=Gr;try{return Gr=!0,i()}finally{Gr=n}}const x0=-7169;function sr(i,n){i.f=i.f&x0|n}function z(i){if(!(typeof i!="object"||!i||i instanceof EventTarget)){if(Kr in i)wc(i);else if(!Array.isArray(i))for(let n in i){const u=i[n];typeof u=="object"&&u&&Kr in u&&wc(u)}}}function wc(i,n=new Set){if(typeof i=="object"&&i!==null&&!(i instanceof EventTarget)&&!n.has(i)){n.add(i),i instanceof Date&&i.getTime();for(let c in i)try{wc(i[c],n)}catch{}const u=Ve(i);if(u!==Object.prototype&&u!==Array.prototype&&u!==Map.prototype&&u!==Set.prototype&&u!==Date.prototype){const c=ao(u);for(let d in c){const m=c[d].get;if(m)try{m.call(i)}catch{}}}}}const hv=new Set,_c=new Set;function vv(i,n,u,c={}){function d(m){if(c.capture||vo.call(n,m),!m.cancelBubble)return ja(()=>u?.call(this,m))}return i.startsWith("pointer")||i.startsWith("touch")||i==="wheel"?ln(()=>{n.addEventListener(i,d,c)}):n.addEventListener(i,d,c),d}function bv(i,n,u,c={}){var d=vv(n,i,u,c);return()=>{i.removeEventListener(n,d,c)}}function kc(i){for(var n=0;n<i.length;n++)hv.add(i[n]);for(var u of _c)u(i)}let yv=null;function vo(i){var n=this,u=n.ownerDocument,c=i.type,d=i.composedPath?.()||[],m=d[0]||i.target;yv=i;var p=0,g=yv===i&&i.__root;if(g){var h=d.indexOf(g);if(h!==-1&&(n===document||n===window)){i.__root=n;return}var b=d.indexOf(n);if(b===-1)return;h<=b&&(p=h)}if(m=d[p]||i.target,m!==n){Yr(i,"currentTarget",{configurable:!0,get(){return m||u}});var y=st,k=Xe;pr(null),Pr(null);try{for(var v,x=[];m!==null;){var S=m.assignedSlot||m.parentNode||m.host||null;try{var O=m["__"+c];if(O!=null&&(!m.disabled||i.target===m))if(_n(O)){var[U,...B]=O;U.apply(m,[i,...B])}else O.call(m,i)}catch(oe){v?x.push(oe):v=oe}if(i.cancelBubble||S===n||S===null)break;m=S}if(v){for(let oe of x)queueMicrotask(()=>{throw oe});throw v}}finally{i.__root=n,delete i.currentTarget,pr(y),Pr(k)}}}function $v(i){var n=document.createElement("template");return n.innerHTML=i.replaceAll("<!>","<!---->"),n.content}function Vr(i,n){var u=Xe;u.nodes_start===null&&(u.nodes_start=i,u.nodes_end=n)}function te(i,n){var u=(n&pt)!==0,c=(n&ct)!==0,d,m=!i.startsWith("<!>");return()=>{if(Le)return Vr(Ge,null),Ge;d===void 0&&(d=$v(m?i:"<!>"+i),u||(d=Wr(d)));var p=c||Gh?document.importNode(d,!0):d.cloneNode(!0);if(u){var g=Wr(p),h=p.lastChild;Vr(g,h)}else Vr(p,p);return p}}function S0(i,n,u="svg"){var c=!i.startsWith("<!>"),d=`<${u}>${c?i:"<!>"+i}</${u}>`,m;return()=>{if(Le)return Vr(Ge,null),Ge;if(!m){var p=$v(d),g=Wr(p);m=Wr(g)}var h=m.cloneNode(!0);return Vr(h,h),h}}function Tn(i,n){return S0(i,n,"svg")}function On(i=""){if(!Le){var n=Er(i+"");return Vr(n,n),n}var u=Ge;return u.nodeType!==_a&&(u.before(u=Er()),Ht(u)),Vr(u,u),u}function Ze(){if(Le)return Vr(Ge,null),Ge;var i=document.createDocumentFragment(),n=document.createComment(""),u=Er();return i.append(n,u),Vr(n,u),i}function T(i,n){if(Le){Xe.nodes_end=Ge,cn();return}i!==null&&i.before(n)}function Ea(){if(Le&&Ge&&Ge.nodeType===ei&&Ge.textContent?.startsWith("$")){const i=Ge.textContent.substring(1);return cn(),i}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}function I0(i){return i.endsWith("capture")&&i!=="gotpointercapture"&&i!=="lostpointercapture"}const z0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function N0(i){return z0.includes(i)}const j0={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function T0(i){return i=i.toLowerCase(),j0[i]??i}const O0=["touchstart","touchmove"];function E0(i){return O0.includes(i)}const P0=["textarea","script","style","title"];function C0(i){return P0.includes(i)}function Oe(i,n){var u=n==null?"":typeof n=="object"?n+"":n;u!==(i.__t??=i.nodeValue)&&(i.__t=u,i.nodeValue=u+"")}function wv(i,n){return _v(i,n)}function U0(i,n){hc(),n.intro=n.intro??!1;const u=n.target,c=Le,d=Ge;try{for(var m=Wr(u);m&&(m.nodeType!==ei||m.data!==dt);)m=Xr(m);if(!m)throw Br;dr(!0),Ht(m);const p=_v(i,{...n,anchor:m});return dr(!1),p}catch(p){if(p instanceof Error&&p.message.split(`
45
- `).some(g=>g.startsWith("https://svelte.dev/e/")))throw p;return p!==Br&&console.warn("Failed to hydrate: ",p),n.recover===!1&&qk(),hc(),vc(u),dr(!1),wv(i,n)}finally{dr(c),Ht(d)}}const Si=new Map;function _v(i,{target:n,anchor:u,props:c={},events:d,context:m,intro:p=!0}){hc();var g=new Set,h=k=>{for(var v=0;v<k.length;v++){var x=k[v];if(!g.has(x)){g.add(x);var S=E0(x);n.addEventListener(x,vo,{passive:S});var O=Si.get(x);O===void 0?(document.addEventListener(x,vo,{passive:S}),Si.set(x,1)):Si.set(x,O+1)}}};h(Qn(hv)),_c.add(h);var b=void 0,y=v0(()=>{var k=u??n.appendChild(Er());return o0(k,{pending:()=>{}},v=>{if(m){Je({});var x=St;x.c=m}if(d&&(c.$$events=d),Le&&Vr(v,null),b=i(v,c)||{},Le&&(Xe.nodes_end=Ge,Ge===null||Ge.nodeType!==ei||Ge.data!==lr))throw ka(),Br;m&&Be()}),()=>{for(var v of g){n.removeEventListener(v,vo);var x=Si.get(v);--x===0?(document.removeEventListener(v,vo),Si.delete(v)):Si.set(v,x)}_c.delete(h),k!==u&&k.parentNode?.removeChild(k)}});return xc.set(b,y),b}let xc=new WeakMap;function M0(i,n){const u=xc.get(i);return u?(xc.delete(i),u(n)):Promise.resolve()}function Rt(i,n,...u){var c=i,d=gt,m;zn(()=>{d!==(d=n())&&(m&&(Xt(m),m=null),m=ir(()=>d(c,...u)))},Kn),Le&&(c=Ge)}function En(i){St===null&&lc(),t&&St.l!==null?D0(St).m.push(i):po(()=>{const n=M(i);if(typeof n=="function")return n})}function bo(i){St===null&&lc(),En(()=>()=>M(i))}function D0(i){var n=i.l;return n.u??={a:[],b:[],m:[]}}function L0(){return Symbol(ya)}function ae(i,n,u=!1){Le&&cn();var c=i,d=null,m=null,p=Qt,g=u?Kn:0,h=!1;const b=(v,x=!0)=>{h=!0,k(x,v)};function y(){var v=p?d:m,x=p?m:d;v&&Ta(v),x&&Nn(x,()=>{p?m=null:d=null})}const k=(v,x)=>{if(p===(p=v))return;let S=!1;if(Le){const B=Sh(c)===bt;!!p===B&&(c=xa(),Ht(c),dr(!1),S=!0)}var O=Bh(),U=c;p?d??=x&&ir(()=>x(U)):m??=x&&ir(()=>x(U)),O||y(),S&&dr(!0)};zn(()=>{h=!1,n(b),h||k(null,null)},g),Le&&(c=Ge)}function xr(i,n){return n}function A0(i,n,u){for(var c=i.items,d=[],m=n.length,p=0;p<m;p++)$c(n[p].e,d,!0);var g=m>0&&d.length===0&&u!==null;if(g){var h=u.parentNode;vc(h),h.append(u),c.clear(),en(i,n[0].prev,n[m-1].next)}ov(d,()=>{for(var b=0;b<m;b++){var y=n[b];g||(c.delete(y.k),en(i,y.prev,y.next)),Xt(y.e,!g)}})}function gr(i,n,u,c,d,m=null){var p=i,g={flags:n,items:new Map,first:null},h=(n&X)!==0;if(h){var b=i;p=Le?Ht(Wr(b)):b.appendChild(Er())}Le&&cn();var y=null,k=!1,v=new Map,x=Ae(()=>{var B=u();return _n(B)?B:B==null?[]:Qn(B)}),S,O;function U(){Z0(O,S,g,v,p,d,n,c,u),m!==null&&(S.length===0?y?Ta(y):y=ir(()=>m(p)):y!==null&&Nn(y,()=>{y=null}))}zn(()=>{O??=Xe,S=l(x);var B=S.length;if(k&&B===0)return;k=B===0;let oe=!1;if(Le){var J=Sh(p)===bt;J!==(B===0)&&(p=xa(),Ht(p),dr(!1),oe=!0)}if(Le){for(var Y=null,G,F=0;F<B;F++){if(Ge.nodeType===ei&&Ge.data===lr){p=Ge,oe=!0,dr(!1);break}var K=S[F],H=c(K,F);G=kv(Ge,g,Y,null,K,H,F,d,n,u),g.items.set(H,G),Y=G}B>0&&Ht(xa())}Le?B===0&&m&&(y=ir(()=>m(p))):U(),oe&&dr(!0),l(x)}),Le&&(p=Ge)}function Z0(i,n,u,c,d,m,p,g,h){var b=(p&ce)!==0,y=(p&(_|q))!==0,k=n.length,v=u.items,x=u.first,S=x,O,U=null,B,oe=[],J=[],Y,G,F,K;if(b)for(K=0;K<k;K+=1)Y=n[K],G=g(Y,K),F=v.get(G),F!==void 0&&(F.a?.measure(),(B??=new Set).add(F));for(K=0;K<k;K+=1){if(Y=n[K],G=g(Y,K),F=v.get(G),F===void 0){var H=c.get(G);if(H!==void 0){c.delete(G),v.set(G,H);var $e=U?U.next:S;en(u,U,H),en(u,H,$e),Sc(H,$e,d),U=H}else{var Ie=S?S.e.nodes_start:d;U=kv(Ie,u,U,U===null?u.first:U.next,Y,G,K,m,p,h)}v.set(G,U),oe=[],J=[],S=U.next;continue}if(y&&R0(F,Y,K,p),(F.e.f&Rr)!==0&&(Ta(F.e),b&&(F.a?.unfix(),(B??=new Set).delete(F))),F!==S){if(O!==void 0&&O.has(F)){if(oe.length<J.length){var ke=J[0],fe;U=ke.prev;var Se=oe[0],me=oe[oe.length-1];for(fe=0;fe<oe.length;fe+=1)Sc(oe[fe],ke,d);for(fe=0;fe<J.length;fe+=1)O.delete(J[fe]);en(u,Se.prev,me.next),en(u,U,Se),en(u,me,ke),S=ke,U=me,K-=1,oe=[],J=[]}else O.delete(F),Sc(F,S,d),en(u,F.prev,F.next),en(u,F,U===null?u.first:U.next),en(u,U,F),U=F;continue}for(oe=[],J=[];S!==null&&S.k!==G;)(S.e.f&Rr)===0&&(O??=new Set).add(S),J.push(S),S=S.next;if(S===null)continue;F=S}oe.push(F),U=F,S=F.next}if(S!==null||O!==void 0){for(var ne=O===void 0?[]:Qn(O);S!==null;)(S.e.f&Rr)===0&&ne.push(S),S=S.next;var re=ne.length;if(re>0){var W=(p&X)!==0&&k===0?d:null;if(b){for(K=0;K<re;K+=1)ne[K].a?.measure();for(K=0;K<re;K+=1)ne[K].a?.fix()}A0(u,ne,W)}}b&&ln(()=>{if(B!==void 0)for(F of B)F.a?.apply()}),i.first=u.first&&u.first.e,i.last=U&&U.e;for(var N of c.values())Xt(N.e);c.clear()}function R0(i,n,u,c){(c&_)!==0&&_i(i.v,n),(c&q)!==0?_i(i.i,u):i.i=u}function kv(i,n,u,c,d,m,p,g,h,b,y){var k=(h&_)!==0,v=(h&ue)===0,x=k?v?ee(d,!1,!1):Sn(d):d,S=(h&q)===0?p:Sn(p),O={i:S,v:x,k:m,a:null,e:null,prev:u,next:c};try{if(i===null){var U=document.createDocumentFragment();U.append(i=Er())}return O.e=ir(()=>g(i,x,S,b),Le),O.e.prev=u&&u.e,O.e.next=c&&c.e,u===null?y||(n.first=O):(u.next=O,u.e.next=O.e),c!==null&&(c.prev=O,c.e.prev=O.e),O}finally{}}function Sc(i,n,u){for(var c=i.next?i.next.e.nodes_start:u,d=n?n.e.nodes_start:u,m=i.e.nodes_start;m!==null&&m!==c;){var p=Xr(m);d.before(m),m=p}}function en(i,n,u){n===null?i.first=u:(n.next=u,n.e.next=u&&u.e),u!==null&&(u.prev=n,u.e.prev=n&&n.e)}function Pn(i,n,u,c,d){Le&&cn();var m=n.$$slots?.[u],p=!1;m===!0&&(m=n.children,p=!0),m===void 0||m(i,p?()=>c:c)}function Pa(i,n,u){Le&&cn();var c=i,d,m,p=null,g=null;function h(){m&&(Nn(m),m=null),p&&(p.lastChild.remove(),c.before(p),p=null),m=g,g=null}zn(()=>{if(d!==(d=n())){var b=Bh();if(d){var y=c;b&&(p=document.createDocumentFragment(),p.append(y=Er()),m&&Ot.skipped_effects.add(m)),g=ir(()=>u(y,d))}b?Ot.add_callback(h):h()}},Kn),Le&&(c=Ge)}function xv(i,n,u,c,d,m){let p=Le;Le&&cn();var g,h,b=null;Le&&Ge.nodeType===Dk&&(b=Ge,cn());var y=Le?Ge:i,k;zn(()=>{const v=n()||null;var x=ic;v!==g&&(k&&(v===null?Nn(k,()=>{k=null,h=null}):v===h?Ta(k):Xt(k)),v&&v!==h&&(k=ir(()=>{if(b=Le?b:document.createElementNS(x,v),Vr(b,b),c){Le&&C0(v)&&b.append(document.createComment(""));var S=Le?Wr(b):b.appendChild(Er());Le&&(S===null?dr(!1):Ht(S)),c(b,S)}Xe.nodes_end=b,y.before(b)})),g=v,g&&(h=g))},Kn),p&&(dr(!0),Ht(y))}function F0(i,n){var u=void 0,c;zn(()=>{u!==(u=n())&&(c&&(Xt(c),c=null),u&&(c=ir(()=>{yc(()=>u(i))})))})}function Sv(i){var n,u,c="";if(typeof i=="string"||typeof i=="number")c+=i;else if(typeof i=="object")if(Array.isArray(i)){var d=i.length;for(n=0;n<d;n++)i[n]&&(u=Sv(i[n]))&&(c&&(c+=" "),c+=u)}else for(u in i)i[u]&&(c&&(c+=" "),c+=u);return c}function yo(){for(var i,n,u=0,c="",d=arguments.length;u<d;u++)(i=arguments[u])&&(n=Sv(i))&&(c&&(c+=" "),c+=n);return c}function q0(i){return typeof i=="object"?yo(i):i??""}const Iv=[...`
46
- \r\f \v\uFEFF`];function W0(i,n,u){var c=i==null?"":""+i;if(u){for(var d in u)if(u[d])c=c?c+" "+d:d;else if(c.length)for(var m=d.length,p=0;(p=c.indexOf(d,p))>=0;){var g=p+m;(p===0||Iv.includes(c[p-1]))&&(g===c.length||Iv.includes(c[g]))?c=(p===0?"":c.substring(0,p))+c.substring(g+1):p=g}}return c===""?null:c}function zv(i,n=!1){var u=n?" !important;":";",c="";for(var d in i){var m=i[d];m!=null&&m!==""&&(c+=" "+d+": "+m+u)}return c}function Ic(i){return i[0]!=="-"||i[1]!=="-"?i.toLowerCase():i}function Q0(i,n){if(n){var u="",c,d;if(Array.isArray(n)?(c=n[0],d=n[1]):c=n,i){i=String(i).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var m=!1,p=0,g=!1,h=[];c&&h.push(...Object.keys(c).map(Ic)),d&&h.push(...Object.keys(d).map(Ic));var b=0,y=-1;const O=i.length;for(var k=0;k<O;k++){var v=i[k];if(g?v==="/"&&i[k-1]==="*"&&(g=!1):m?m===v&&(m=!1):v==="/"&&i[k+1]==="*"?g=!0:v==='"'||v==="'"?m=v:v==="("?p++:v===")"&&p--,!g&&m===!1&&p===0){if(v===":"&&y===-1)y=k;else if(v===";"||k===O-1){if(y!==-1){var x=Ic(i.substring(b,y).trim());if(!h.includes(x)){v!==";"&&k++;var S=i.substring(b,k).trim();u+=" "+S+";"}}b=k+1,y=-1}}}}return c&&(u+=zv(c)),d&&(u+=zv(d,!0)),u=u.trim(),u===""?null:u}return i==null?null:String(i)}function fn(i,n,u,c,d,m){var p=i.__className;if(Le||p!==u||p===void 0){var g=W0(u,c,m);(!Le||g!==i.getAttribute("class"))&&(g==null?i.removeAttribute("class"):n?i.className=g:i.setAttribute("class",g)),i.__className=u}else if(m&&d!==m)for(var h in m){var b=!!m[h];(d==null||b!==!!d[h])&&i.classList.toggle(h,b)}return m}function zc(i,n={},u,c){for(var d in u){var m=u[d];n[d]!==m&&(u[d]==null?i.style.removeProperty(d):i.style.setProperty(d,m,c))}}function $o(i,n,u,c){var d=i.__style;if(Le||d!==n){var m=Q0(n,c);(!Le||m!==i.getAttribute("style"))&&(m==null?i.removeAttribute("style"):i.style.cssText=m),i.__style=n}else c&&(Array.isArray(c)?(zc(i,u?.[0],c[0]),zc(i,u?.[1],c[1],"important")):zc(i,u,c));return c}function Nc(i,n,u=!1){if(i.multiple){if(n==null)return;if(!_n(n))return Bk();for(var c of i.options)c.selected=n.includes(Nv(c));return}for(c of i.options){var d=Nv(c);if(d0(d,n)){c.selected=!0;return}}(!u||n!==void 0)&&(i.selectedIndex=-1)}function G0(i){var n=new MutationObserver(()=>{Nc(i,i.__value)});n.observe(i,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),bc(()=>{n.disconnect()})}function Nv(i){return"__value"in i?i.__value:i.value}const wo=Symbol("class"),_o=Symbol("style"),jv=Symbol("is custom element"),Tv=Symbol("is html");function V0(i){if(Le){var n=!1,u=()=>{if(!n){if(n=!0,i.hasAttribute("value")){var c=i.value;si(i,"value",null),i.value=c}if(i.hasAttribute("checked")){var d=i.checked;si(i,"checked",null),i.checked=d}}};i.__on_r=u,ln(u),Kh()}}function J0(i,n){n?i.hasAttribute("selected")||i.setAttribute("selected",""):i.removeAttribute("selected")}function si(i,n,u,c){var d=Ov(i);Le&&(d[n]=i.getAttribute(n),n==="src"||n==="srcset"||n==="href"&&i.nodeName==="LINK")||d[n]!==(d[n]=u)&&(n==="loading"&&(i[Mk]=u),u==null?i.removeAttribute(n):typeof u!="string"&&Pv(i).includes(n)?i[n]=u:i.setAttribute(n,u))}function B0(i,n,u,c,d=!1,m=!1){if(Le&&d&&i.tagName==="INPUT"){var p=i,g=p.type==="checkbox"?"defaultChecked":"defaultValue";g in u||V0(p)}var h=Ov(i),b=h[jv],y=!h[Tv];let k=Le&&b;k&&dr(!1);var v=n||{},x=i.tagName==="OPTION";for(var S in n)S in u||(u[S]=null);u.class?u.class=q0(u.class):u[wo]&&(u.class=null),u[_o]&&(u.style??=null);var O=Pv(i);for(const F in u){let K=u[F];if(x&&F==="value"&&K==null){i.value=i.__value="",v[F]=K;continue}if(F==="class"){var U=i.namespaceURI==="http://www.w3.org/1999/xhtml";fn(i,U,K,c,n?.[wo],u[wo]),v[F]=K,v[wo]=u[wo];continue}if(F==="style"){$o(i,K,n?.[_o],u[_o]),v[F]=K,v[_o]=u[_o];continue}var B=v[F];if(!(K===B&&!(K===void 0&&i.hasAttribute(F)))){v[F]=K;var oe=F[0]+F[1];if(oe!=="$$")if(oe==="on"){const H={},$e="$$"+F;let Ie=F.slice(2);var J=N0(Ie);if(I0(Ie)&&(Ie=Ie.slice(0,-7),H.capture=!0),!J&&B){if(K!=null)continue;i.removeEventListener(Ie,v[$e],H),v[$e]=null}if(K!=null)if(J)i[`__${Ie}`]=K,kc([Ie]);else{let ke=function(fe){v[F].call(this,fe)};v[$e]=vv(Ie,i,ke,H)}else J&&(i[`__${Ie}`]=void 0)}else if(F==="style")si(i,F,K);else if(F==="autofocus")f0(i,!!K);else if(!b&&(F==="__value"||F==="value"&&K!=null))i.value=i.__value=K;else if(F==="selected"&&x)J0(i,K);else{var Y=F;y||(Y=T0(Y));var G=Y==="defaultValue"||Y==="defaultChecked";if(K==null&&!b&&!G)if(h[F]=null,Y==="value"||Y==="checked"){let H=i;const $e=n===void 0;if(Y==="value"){let Ie=H.defaultValue;H.removeAttribute(Y),H.defaultValue=Ie,H.value=H.__value=$e?Ie:null}else{let Ie=H.defaultChecked;H.removeAttribute(Y),H.defaultChecked=Ie,H.checked=$e?Ie:!1}}else i.removeAttribute(F);else G||O.includes(Y)&&(b||typeof K!="string")?(i[Y]=K,Y in h&&(h[Y]=Qt)):typeof K!="function"&&si(i,Y,K)}}}return k&&dr(!0),v}function Gt(i,n,u=[],c=[],d,m=!1,p=!1){Dh(u,c,g=>{var h=void 0,b={},y=i.nodeName==="SELECT",k=!1;if(zn(()=>{var x=n(...g.map(l)),S=B0(i,h,x,d,m,p);k&&y&&"value"in x&&Nc(i,x.value);for(let U of Object.getOwnPropertySymbols(b))x[U]||Xt(b[U]);for(let U of Object.getOwnPropertySymbols(x)){var O=x[U];U.description===ya&&(!h||O!==h[U])&&(b[U]&&Xt(b[U]),b[U]=ir(()=>F0(i,()=>O))),S[U]=O}h=S}),y){var v=i;yc(()=>{Nc(v,h.value,!0),G0(v)})}k=!0})}function Ov(i){return i.__attributes??={[jv]:i.nodeName.includes("-"),[Tv]:i.namespaceURI===ba}}var Ev=new Map;function Pv(i){var n=i.getAttribute("is")||i.nodeName,u=Ev.get(n);if(u)return u;Ev.set(n,u=[]);for(var c,d=i,m=Element.prototype;m!==d;){c=ao(d);for(var p in c)c[p].set&&u.push(p);d=Ve(d)}return u}function Ca(i,n,u=n){var c=new WeakSet;Hh(i,"input",async d=>{var m=d?i.defaultValue:i.value;if(m=jc(i)?Tc(m):m,u(m),Ot!==null&&c.add(Ot),await k0(),m!==(m=n())){var p=i.selectionStart,g=i.selectionEnd,h=i.value.length;if(i.value=m??"",g!==null){var b=i.value.length;p===g&&g===h&&b>h?(i.selectionStart=b,i.selectionEnd=b):(i.selectionStart=p,i.selectionEnd=Math.min(g,b))}}}),(Le&&i.defaultValue!==i.value||M(n)==null&&i.value)&&(u(jc(i)?Tc(i.value):i.value),Ot!==null&&c.add(Ot)),ii(()=>{var d=n();if(i===document.activeElement){var m=za??Ot;if(c.has(m))return}jc(i)&&d===Tc(i.value)||i.type==="date"&&!d&&!i.value||d!==i.value&&(i.value=d??"")})}function jc(i){var n=i.type;return n==="number"||n==="range"}function Tc(i){return i===""?null:+i}function Y0(i,n,u=n){Hh(i,"change",()=>{u(i.files)}),Le&&i.files&&u(i.files),ii(()=>{i.files=n()})}function Cv(i,n){return i===n||i?.[Kr]===n}function Ur(i={},n,u,c){return yc(()=>{var d,m;return ii(()=>{d=m,m=[],M(()=>{i!==u(...m)&&(n(i,...m),d&&Cv(u(...d),i)&&n(null,...d))})}),()=>{ln(()=>{m&&Cv(u(...m),i)&&n(null,...m)})}}),i}function er(i=!1){const n=St,u=n.l.u;if(!u)return;let c=()=>z(n.s);if(i){let d=0,m={};const p=fo(()=>{let g=!1;const h=n.s;for(const b in h)h[b]!==m[b]&&(m[b]=h[b],g=!0);return g&&d++,d});c=()=>l(p)}u.b.length&&tv(()=>{Uv(n,c),Vn(u.b)}),po(()=>{const d=M(()=>u.m.map(Tr));return()=>{for(const m of d)typeof m=="function"&&m()}}),u.a.length&&po(()=>{Uv(n,c),Vn(u.a)})}function Uv(i,n){if(i.l.s)for(const u of i.l.s)l(u);n()}function Mv(i,n,u){if(i==null)return n(void 0),gt;const c=M(()=>i.subscribe(n,u));return c.unsubscribe?()=>c.unsubscribe():c}const Ii=[];function K0(i,n=gt){let u=null;const c=new Set;function d(g){if(zh(i,g)&&(i=g,u)){const h=!Ii.length;for(const b of c)b[1](),Ii.push(b,i);if(h){for(let b=0;b<Ii.length;b+=2)Ii[b][0](Ii[b+1]);Ii.length=0}}}function m(g){d(g(i))}function p(g,h=gt){const b=[g,h];return c.add(b),c.size===1&&(u=n(d,m)||gt),g(i),()=>{c.delete(b),c.size===0&&u&&(u(),u=null)}}return{set:d,update:m,subscribe:p}}function ko(i){let n;return Mv(i,u=>n=u)(),n}let Ua=!1,Oc=Symbol();function H0(i,n,u){const c=u[n]??={store:null,source:ee(void 0),unsubscribe:gt};if(c.store!==i&&!(Oc in u))if(c.unsubscribe(),c.store=i??null,i==null)c.source.v=void 0,c.unsubscribe=gt;else{var d=!0;c.unsubscribe=Mv(i,m=>{d?c.source.v=m:$(c.source,m)}),d=!1}return i&&Oc in u?ko(i):l(c.source)}function X0(){const i={};function n(){bc(()=>{for(var u in i)i[u].unsubscribe();Yr(i,Oc,{enumerable:!1,value:!0})})}return[i,n]}function ex(i){var n=Ua;try{return Ua=!1,[i(),Ua]}finally{Ua=n}}const tx={get(i,n){if(!i.exclude.includes(n))return i.props[n]},set(i,n){return!1},getOwnPropertyDescriptor(i,n){if(!i.exclude.includes(n)&&n in i.props)return{enumerable:!0,configurable:!0,value:i.props[n]}},has(i,n){return i.exclude.includes(n)?!1:n in i.props},ownKeys(i){return Reflect.ownKeys(i.props).filter(n=>!i.exclude.includes(n))}};function At(i,n,u){return new Proxy({props:i,exclude:n},tx)}const rx={get(i,n){if(!i.exclude.includes(n))return l(i.version),n in i.special?i.special[n]():i.props[n]},set(i,n,u){if(!(n in i.special)){var c=Xe;try{Pr(i.parent_effect),i.special[n]=w({get[n](){return i.props[n]}},n,A)}finally{Pr(c)}}return i.special[n](u),Fh(i.version),!0},getOwnPropertyDescriptor(i,n){if(!i.exclude.includes(n)&&n in i.props)return{enumerable:!0,configurable:!0,value:i.props[n]}},deleteProperty(i,n){return i.exclude.includes(n)||(i.exclude.push(n),Fh(i.version)),!0},has(i,n){return i.exclude.includes(n)?!1:n in i.props},ownKeys(i){return Reflect.ownKeys(i.props).filter(n=>!i.exclude.includes(n))}};function mn(i,n){return new Proxy({props:i,exclude:n,special:{},version:Sn(0),parent_effect:Xe},rx)}const nx={get(i,n){let u=i.props.length;for(;u--;){let c=i.props[u];if(Lt(c)&&(c=c()),typeof c=="object"&&c!==null&&n in c)return c[n]}},set(i,n,u){let c=i.props.length;for(;c--;){let d=i.props[c];Lt(d)&&(d=d());const m=jr(d,n);if(m&&m.set)return m.set(u),!0}return!1},getOwnPropertyDescriptor(i,n){let u=i.props.length;for(;u--;){let c=i.props[u];if(Lt(c)&&(c=c()),typeof c=="object"&&c!==null&&n in c){const d=jr(c,n);return d&&!d.configurable&&(d.configurable=!0),d}}},has(i,n){if(n===Kr||n===cc)return!1;for(let u of i.props)if(Lt(u)&&(u=u()),u!=null&&n in u)return!0;return!1},ownKeys(i){const n=[];for(let u of i.props)if(Lt(u)&&(u=u()),!!u){for(const c in u)n.includes(c)||n.push(c);for(const c of Object.getOwnPropertySymbols(u))n.includes(c)||n.push(c)}return n}};function Tt(...i){return new Proxy({props:i},nx)}function w(i,n,u,c){var d=!t||(u&ge)!==0,m=(u&ye)!==0,p=(u&Me)!==0,g=c,h=!0,b=()=>(h&&(h=!1,g=p?M(c):c),g),y;if(m){var k=Kr in i||cc in i;y=jr(i,n)?.set??(k&&n in i?J=>i[n]=J:void 0)}var v,x=!1;m?[v,x]=ex(()=>i[n]):v=i[n],v===void 0&&c!==void 0&&(v=b(),y&&(d&&Wk(),y(v)));var S;if(d?S=()=>{var J=i[n];return J===void 0?b():(h=!0,J)}:S=()=>{var J=i[n];return J!==void 0&&(g=void 0),J===void 0?g:J},d&&(u&A)===0)return S;if(y){var O=i.$$legacy;return(function(J,Y){return arguments.length>0?((!d||!Y||O||x)&&y(Y?S():J),J):S()})}var U=!1,B=((u&ze)!==0?fo:Ae)(()=>(U=!1,S()));m&&l(B);var oe=Xe;return(function(J,Y){if(arguments.length>0){const G=Y?l(B):d&&m?In(J):J;return $(B,G),U=!0,g!==void 0&&(g=G),J}return oi&&U||(oe.f&Yn)!==0?B.v:l(B)})}function ix(i){return new ox(i)}class ox{#e;#t;constructor(n){var u=new Map,c=(m,p)=>{var g=ee(p,!1,!1);return u.set(m,g),g};const d=new Proxy({...n.props||{},$$events:{}},{get(m,p){return l(u.get(p)??c(p,Reflect.get(m,p)))},has(m,p){return p===cc?!0:(l(u.get(p)??c(p,Reflect.get(m,p))),Reflect.has(m,p))},set(m,p,g){return $(u.get(p)??c(p,g),g),Reflect.set(m,p,g)}});this.#t=(n.hydrate?U0:wv)(n.component,{target:n.target,anchor:n.anchor,props:d,context:n.context,intro:n.intro??!1,recover:n.recover}),(!n?.props?.$$host||n.sync===!1)&&at(),this.#e=d.$$events;for(const m of Object.keys(this.#t))m==="$set"||m==="$destroy"||m==="$on"||Yr(this,m,{get(){return this.#t[m]},set(p){this.#t[m]=p},enumerable:!0});this.#t.$set=m=>{Object.assign(d,m)},this.#t.$destroy=()=>{M0(this.#t)}}$set(n){this.#t.$set(n)}$on(n,u){this.#e[n]=this.#e[n]||[];const c=(...d)=>u.call(this,...d);return this.#e[n].push(c),()=>{this.#e[n]=this.#e[n].filter(d=>d!==c)}}$destroy(){this.#t.$destroy()}}let Dv;typeof HTMLElement=="function"&&(Dv=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(i,n,u){super(),this.$$ctor=i,this.$$s=n,u&&this.attachShadow({mode:"open"})}addEventListener(i,n,u){if(this.$$l[i]=this.$$l[i]||[],this.$$l[i].push(n),this.$$c){const c=this.$$c.$on(i,n);this.$$l_u.set(n,c)}super.addEventListener(i,n,u)}removeEventListener(i,n,u){if(super.removeEventListener(i,n,u),this.$$c){const c=this.$$l_u.get(n);c&&(c(),this.$$l_u.delete(n))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(c){return d=>{const m=document.createElement("slot");c!=="default"&&(m.name=c),T(d,m)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const n={},u=ax(this);for(const c of this.$$s)c in u&&(c==="default"&&!this.$$d.children?(this.$$d.children=i(c),n.default=!0):n[c]=i(c));for(const c of this.attributes){const d=this.$$g_p(c.name);d in this.$$d||(this.$$d[d]=Ma(d,c.value,this.$$p_d,"toProp"))}for(const c in this.$$p_d)!(c in this.$$d)&&this[c]!==void 0&&(this.$$d[c]=this[c],delete this[c]);this.$$c=ix({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$host:this}}),this.$$me=h0(()=>{ii(()=>{this.$$r=!0;for(const c of Gn(this.$$c)){if(!this.$$p_d[c]?.reflect)continue;this.$$d[c]=this.$$c[c];const d=Ma(c,this.$$d[c],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[c].attribute||c):this.setAttribute(this.$$p_d[c].attribute||c,d)}this.$$r=!1})});for(const c in this.$$l)for(const d of this.$$l[c]){const m=this.$$c.$on(c,d);this.$$l_u.set(d,m)}this.$$l={}}}attributeChangedCallback(i,n,u){this.$$r||(i=this.$$g_p(i),this.$$d[i]=Ma(i,u,this.$$p_d,"toProp"),this.$$c?.$set({[i]:this.$$d[i]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(i){return Gn(this.$$p_d).find(n=>this.$$p_d[n].attribute===i||!this.$$p_d[n].attribute&&n.toLowerCase()===i)||i}});function Ma(i,n,u,c){const d=u[i]?.type;if(n=d==="Boolean"&&typeof n!="boolean"?n!=null:n,!c||!u[i])return n;if(c==="toAttribute")switch(d){case"Object":case"Array":return n==null?null:JSON.stringify(n);case"Boolean":return n?"":null;case"Number":return n??null;default:return n}else switch(d){case"Object":case"Array":return n&&JSON.parse(n);case"Boolean":return n;case"Number":return n!=null?+n:n;default:return n}}function ax(i){const n={};return i.childNodes.forEach(u=>{n[u.slot||"default"]=!0}),n}function Lv(i,n,u,c,d,m){let p=class extends Dv{constructor(){super(i,u,d),this.$$p_d=n}static get observedAttributes(){return Gn(n).map(g=>(n[g].attribute||g).toLowerCase())}};return Gn(n).forEach(g=>{Yr(p.prototype,g,{get(){return this.$$c&&g in this.$$c?this.$$c[g]:this.$$d[g]},set(h){h=Ma(g,h,n),this.$$d[g]=h;var b=this.$$c;if(b){var y=jr(b,g)?.get;y?b[g]=h:b.$set({[g]:h})}}})}),c.forEach(g=>{Yr(p.prototype,g,{get(){return this.$$c?.[g]}})}),i.element=p,p}const sx={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};var ux=Tn("<svg><!><!></svg>");function ui(i,n){const u=mn(n,["children","$$slots","$$events","$$legacy"]),c=mn(u,["type","name","color","size","stroke","iconNode"]);Je(n,!1);let d=w(n,"type",8),m=w(n,"name",8),p=w(n,"color",8,"currentColor"),g=w(n,"size",8,24),h=w(n,"stroke",8,2),b=w(n,"iconNode",8);er();var y=ux();Gt(y,()=>({...sx[d()],...c,width:g(),height:g(),class:(z(m()),z(u),M(()=>`tabler-icon tabler-icon-${m()} ${u.class??""}`)),...d()==="filled"?{fill:p()}:{"stroke-width":h(),stroke:p()}}));var k=R(y);gr(k,1,b,xr,(x,S)=>{var O=lt(()=>Yt(l(S),2));let U=()=>l(O)[0],B=()=>l(O)[1];var oe=Ze(),J=Te(oe);xv(J,U,!0,(Y,G)=>{Gt(Y,()=>({...B()}))}),T(x,oe)});var v=de(k);Pn(v,n,"default",{}),L(y),T(i,y),Be()}function Av(i,n){const u=mn(n,["children","$$slots","$$events","$$legacy"]),c=[["path",{d:"M9 14l-4 -4l4 -4"}],["path",{d:"M5 10h11a4 4 0 1 1 0 8h-1"}]];ui(i,Tt({type:"outline",name:"arrow-back-up"},()=>u,{get iconNode(){return c},children:(d,m)=>{var p=Ze(),g=Te(p);Pn(g,n,"default",{}),T(d,p)},$$slots:{default:!0}}))}function Zv(i,n){const u=mn(n,["children","$$slots","$$events","$$legacy"]),c=[["path",{d:"M15 6l-6 6l6 6"}]];ui(i,Tt({type:"outline",name:"chevron-left"},()=>u,{get iconNode(){return c},children:(d,m)=>{var p=Ze(),g=Te(p);Pn(g,n,"default",{}),T(d,p)},$$slots:{default:!0}}))}function Da(i,n){const u=mn(n,["children","$$slots","$$events","$$legacy"]),c=[["path",{d:"M9 6l6 6l-6 6"}]];ui(i,Tt({type:"outline",name:"chevron-right"},()=>u,{get iconNode(){return c},children:(d,m)=>{var p=Ze(),g=Te(p);Pn(g,n,"default",{}),T(d,p)},$$slots:{default:!0}}))}function cx(i,n){const u=mn(n,["children","$$slots","$$events","$$legacy"]),c=[["path",{d:"M5 12l-2 0l9 -9l9 9l-2 0"}],["path",{d:"M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7"}],["path",{d:"M10 12h4v4h-4z"}]];ui(i,Tt({type:"outline",name:"home-2"},()=>u,{get iconNode(){return c},children:(d,m)=>{var p=Ze(),g=Te(p);Pn(g,n,"default",{}),T(d,p)},$$slots:{default:!0}}))}function Rv(i,n){const u=mn(n,["children","$$slots","$$events","$$legacy"]),c=[["path",{d:"M15 8h.01"}],["path",{d:"M3 6a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3v-12z"}],["path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5"}],["path",{d:"M14 14l1 -1c.928 -.893 2.072 -.893 3 0l3 3"}]];ui(i,Tt({type:"outline",name:"photo"},()=>u,{get iconNode(){return c},children:(d,m)=>{var p=Ze(),g=Te(p);Pn(g,n,"default",{}),T(d,p)},$$slots:{default:!0}}))}function Fv(i,n){const u=mn(n,["children","$$slots","$$events","$$legacy"]),c=[["path",{d:"M6 21l15 -15l-3 -3l-15 15l3 3"}],["path",{d:"M15 6l3 3"}],["path",{d:"M9 3a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2"}],["path",{d:"M19 13a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2"}]];ui(i,Tt({type:"outline",name:"wand"},()=>u,{get iconNode(){return c},children:(d,m)=>{var p=Ze(),g=Te(p);Pn(g,n,"default",{}),T(d,p)},$$slots:{default:!0}}))}function qv(i,n){const u=mn(n,["children","$$slots","$$events","$$legacy"]),c=[["path",{d:"M18 6l-12 12"}],["path",{d:"M6 6l12 12"}]];ui(i,Tt({type:"outline",name:"x"},()=>u,{get iconNode(){return c},children:(d,m)=>{var p=Ze(),g=Te(p);Pn(g,n,"default",{}),T(d,p)},$$slots:{default:!0}}))}const lx={questions:[],questionsData:{}},Wv=Symbol("formResponses"),dx=()=>{const i=K0(lx),n=(g,h,b,y)=>{if((h==null||h===""||Array.isArray(h)&&h.length===0)&&!y){m(g);return}let k;switch(b){case"rating":k={rating:h};break;case"nps":k={nps:h};break;case"long_text":k={longText:h};break;case"short_answer":k={shortAnswer:h};break;case"single_choice":k={singleChoice:h};break;case"multiple_choice_multiple":k={multipleChoiceMultiple:Array.isArray(h)?h:[h]};break;case"nested_selection":k={nestedSelection:Array.isArray(h)?h:[h]};break;case"annotation":k={annotation:h};break;default:k=h}i.update(v=>{const x=v.questions.findIndex(S=>S.questionId===g);return x!==-1?{...v,questions:v.questions.map((S,O)=>O===x?{...S,answer:k,type:b,error:y}:S)}:{...v,questions:[...v.questions,{questionId:g,answer:k,type:b,error:y}]}})},u=(g,h)=>{p(g)&&i.update(b=>({...b,questions:b.questions.map(y=>y.questionId===g?{...y,error:h}:y)}))},c=()=>{i.update(g=>({...g,questions:g.questions.map(h=>({...h,error:void 0}))}))},d=()=>ko(i).questions.some(g=>g.error!==void 0&&g.error!==null&&g.error!==""),m=g=>{i.update(h=>({...h,questions:h.questions.filter(b=>b.questionId!==g)}))},p=g=>ko(i).questions.find(h=>h.questionId===g);return{formResponses:i,updateQuestionResponse:n,getQuestionResponse:p,removeQuestionResponse:m,setQuestionError:u,hasValidationErrors:d,clearValidationErrors:c,clearResponses:()=>{i.update(g=>({...g,questions:[]}))},bulkUpdateResponses:g=>{i.update(h=>({...h,questions:g}))},storeQuestions:g=>{i.update(h=>({...h,questionsData:g}))},getQuestionData:g=>ko(i).questionsData[g]}},Qv=()=>{const i=dx();return jh(Wv,i),i},pn=()=>dc(Wv),Ec="-",fx=i=>{const n=px(i),{conflictingClassGroups:u,conflictingClassGroupModifiers:c}=i;return{getClassGroupId:d=>{const m=d.split(Ec);return m[0]===""&&m.length!==1&&m.shift(),Gv(m,n)||mx(d)},getConflictingClassGroupIds:(d,m)=>{const p=u[d]||[];return m&&c[d]?[...p,...c[d]]:p}}},Gv=(i,n)=>{if(i.length===0)return n.classGroupId;const u=i[0],c=n.nextPart.get(u),d=c?Gv(i.slice(1),c):void 0;if(d)return d;if(n.validators.length===0)return;const m=i.join(Ec);return n.validators.find(({validator:p})=>p(m))?.classGroupId},Vv=/^\[(.+)\]$/,mx=i=>{if(Vv.test(i)){const n=Vv.exec(i)[1],u=n?.substring(0,n.indexOf(":"));if(u)return"arbitrary.."+u}},px=i=>{const{theme:n,classGroups:u}=i,c={nextPart:new Map,validators:[]};for(const d in u)Pc(u[d],c,d,n);return c},Pc=(i,n,u,c)=>{i.forEach(d=>{if(typeof d=="string"){const m=d===""?n:Jv(n,d);m.classGroupId=u;return}if(typeof d=="function"){if(gx(d)){Pc(d(c),n,u,c);return}n.validators.push({validator:d,classGroupId:u});return}Object.entries(d).forEach(([m,p])=>{Pc(p,Jv(n,m),u,c)})})},Jv=(i,n)=>{let u=i;return n.split(Ec).forEach(c=>{u.nextPart.has(c)||u.nextPart.set(c,{nextPart:new Map,validators:[]}),u=u.nextPart.get(c)}),u},gx=i=>i.isThemeGetter,hx=i=>{if(i<1)return{get:()=>{},set:()=>{}};let n=0,u=new Map,c=new Map;const d=(m,p)=>{u.set(m,p),n++,n>i&&(n=0,c=u,u=new Map)};return{get(m){let p=u.get(m);if(p!==void 0)return p;if((p=c.get(m))!==void 0)return d(m,p),p},set(m,p){u.has(m)?u.set(m,p):d(m,p)}}},Cc="!",Uc=":",vx=Uc.length,bx=i=>{const{prefix:n,experimentalParseClassName:u}=i;let c=d=>{const m=[];let p=0,g=0,h=0,b;for(let S=0;S<d.length;S++){let O=d[S];if(p===0&&g===0){if(O===Uc){m.push(d.slice(h,S)),h=S+vx;continue}if(O==="/"){b=S;continue}}O==="["?p++:O==="]"?p--:O==="("?g++:O===")"&&g--}const y=m.length===0?d:d.substring(h),k=yx(y),v=k!==y,x=b&&b>h?b-h:void 0;return{modifiers:m,hasImportantModifier:v,baseClassName:k,maybePostfixModifierPosition:x}};if(n){const d=n+Uc,m=c;c=p=>p.startsWith(d)?m(p.substring(d.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:p,maybePostfixModifierPosition:void 0}}if(u){const d=c;c=m=>u({className:m,parseClassName:d})}return c},yx=i=>i.endsWith(Cc)?i.substring(0,i.length-1):i.startsWith(Cc)?i.substring(1):i,$x=i=>{const n=Object.fromEntries(i.orderSensitiveModifiers.map(u=>[u,!0]));return u=>{if(u.length<=1)return u;const c=[];let d=[];return u.forEach(m=>{m[0]==="["||n[m]?(c.push(...d.sort(),m),d=[]):d.push(m)}),c.push(...d.sort()),c}},wx=i=>({cache:hx(i.cacheSize),parseClassName:bx(i),sortModifiers:$x(i),...fx(i)}),_x=/\s+/,kx=(i,n)=>{const{parseClassName:u,getClassGroupId:c,getConflictingClassGroupIds:d,sortModifiers:m}=n,p=[],g=i.trim().split(_x);let h="";for(let b=g.length-1;b>=0;b-=1){const y=g[b],{isExternal:k,modifiers:v,hasImportantModifier:x,baseClassName:S,maybePostfixModifierPosition:O}=u(y);if(k){h=y+(h.length>0?" "+h:h);continue}let U=!!O,B=c(U?S.substring(0,O):S);if(!B){if(!U){h=y+(h.length>0?" "+h:h);continue}if(B=c(S),!B){h=y+(h.length>0?" "+h:h);continue}U=!1}const oe=m(v).join(":"),J=x?oe+Cc:oe,Y=J+B;if(p.includes(Y))continue;p.push(Y);const G=d(B,U);for(let F=0;F<G.length;++F){const K=G[F];p.push(J+K)}h=y+(h.length>0?" "+h:h)}return h};function xx(){let i=0,n,u,c="";for(;i<arguments.length;)(n=arguments[i++])&&(u=Bv(n))&&(c&&(c+=" "),c+=u);return c}const Bv=i=>{if(typeof i=="string")return i;let n,u="";for(let c=0;c<i.length;c++)i[c]&&(n=Bv(i[c]))&&(u&&(u+=" "),u+=n);return u};function Mc(i,...n){let u,c,d,m=p;function p(h){const b=n.reduce((y,k)=>k(y),i());return u=wx(b),c=u.cache.get,d=u.cache.set,m=g,g(h)}function g(h){const b=c(h);if(b)return b;const y=kx(h,u);return d(h,y),y}return function(){return m(xx.apply(null,arguments))}}const Kt=i=>{const n=u=>u[i]||[];return n.isThemeGetter=!0,n},Yv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Kv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Sx=/^\d+\/\d+$/,Ix=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,zx=/\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$/,Nx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,jx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Tx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,zi=i=>Sx.test(i),nt=i=>!!i&&!Number.isNaN(Number(i)),Cn=i=>!!i&&Number.isInteger(Number(i)),Dc=i=>i.endsWith("%")&&nt(i.slice(0,-1)),gn=i=>Ix.test(i),Ox=()=>!0,Ex=i=>zx.test(i)&&!Nx.test(i),Hv=()=>!1,Px=i=>jx.test(i),Cx=i=>Tx.test(i),Ux=i=>!Ee(i)&&!Pe(i),Mx=i=>Ni(i,nb,Hv),Ee=i=>Yv.test(i),ci=i=>Ni(i,ib,Ex),Lc=i=>Ni(i,Rx,nt),Xv=i=>Ni(i,tb,Hv),Dx=i=>Ni(i,rb,Cx),La=i=>Ni(i,ob,Px),Pe=i=>Kv.test(i),xo=i=>ji(i,ib),Lx=i=>ji(i,Fx),eb=i=>ji(i,tb),Ax=i=>ji(i,nb),Zx=i=>ji(i,rb),Aa=i=>ji(i,ob,!0),Ni=(i,n,u)=>{const c=Yv.exec(i);return c?c[1]?n(c[1]):u(c[2]):!1},ji=(i,n,u=!1)=>{const c=Kv.exec(i);return c?c[1]?n(c[1]):u:!1},tb=i=>i==="position"||i==="percentage",rb=i=>i==="image"||i==="url",nb=i=>i==="length"||i==="size"||i==="bg-size",ib=i=>i==="length",Rx=i=>i==="number",Fx=i=>i==="family-name",ob=i=>i==="shadow",Ac=()=>{const i=Kt("color"),n=Kt("font"),u=Kt("text"),c=Kt("font-weight"),d=Kt("tracking"),m=Kt("leading"),p=Kt("breakpoint"),g=Kt("container"),h=Kt("spacing"),b=Kt("radius"),y=Kt("shadow"),k=Kt("inset-shadow"),v=Kt("text-shadow"),x=Kt("drop-shadow"),S=Kt("blur"),O=Kt("perspective"),U=Kt("aspect"),B=Kt("ease"),oe=Kt("animate"),J=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],G=()=>[...Y(),Pe,Ee],F=()=>["auto","hidden","clip","visible","scroll"],K=()=>["auto","contain","none"],H=()=>[Pe,Ee,h],$e=()=>[zi,"full","auto",...H()],Ie=()=>[Cn,"none","subgrid",Pe,Ee],ke=()=>["auto",{span:["full",Cn,Pe,Ee]},Cn,Pe,Ee],fe=()=>[Cn,"auto",Pe,Ee],Se=()=>["auto","min","max","fr",Pe,Ee],me=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ne=()=>["start","end","center","stretch","center-safe","end-safe"],re=()=>["auto",...H()],W=()=>[zi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...H()],N=()=>[i,Pe,Ee],C=()=>[...Y(),eb,Xv,{position:[Pe,Ee]}],E=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Z=()=>["auto","cover","contain",Ax,Mx,{size:[Pe,Ee]}],ie=()=>[Dc,xo,ci],Q=()=>["","none","full",b,Pe,Ee],Ce=()=>["",nt,xo,ci],_e=()=>["solid","dashed","dotted","double"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],le=()=>[nt,Dc,eb,Xv],Ne=()=>["","none",S,Pe,Ee],xe=()=>["none",nt,Pe,Ee],Re=()=>["none",nt,Pe,Ee],Ye=()=>[nt,Pe,Ee],ut=()=>[zi,"full",...H()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[gn],breakpoint:[gn],color:[Ox],container:[gn],"drop-shadow":[gn],ease:["in","out","in-out"],font:[Ux],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[gn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[gn],shadow:[gn],spacing:["px",nt],text:[gn],"text-shadow":[gn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",zi,Ee,Pe,U]}],container:["container"],columns:[{columns:[nt,Ee,Pe,g]}],"break-after":[{"break-after":J()}],"break-before":[{"break-before":J()}],"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:G()}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:K()}],"overscroll-x":[{"overscroll-x":K()}],"overscroll-y":[{"overscroll-y":K()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$e()}],"inset-x":[{"inset-x":$e()}],"inset-y":[{"inset-y":$e()}],start:[{start:$e()}],end:[{end:$e()}],top:[{top:$e()}],right:[{right:$e()}],bottom:[{bottom:$e()}],left:[{left:$e()}],visibility:["visible","invisible","collapse"],z:[{z:[Cn,"auto",Pe,Ee]}],basis:[{basis:[zi,"full","auto",g,...H()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[nt,zi,"auto","initial","none",Ee]}],grow:[{grow:["",nt,Pe,Ee]}],shrink:[{shrink:["",nt,Pe,Ee]}],order:[{order:[Cn,"first","last","none",Pe,Ee]}],"grid-cols":[{"grid-cols":Ie()}],"col-start-end":[{col:ke()}],"col-start":[{"col-start":fe()}],"col-end":[{"col-end":fe()}],"grid-rows":[{"grid-rows":Ie()}],"row-start-end":[{row:ke()}],"row-start":[{"row-start":fe()}],"row-end":[{"row-end":fe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Se()}],"auto-rows":[{"auto-rows":Se()}],gap:[{gap:H()}],"gap-x":[{"gap-x":H()}],"gap-y":[{"gap-y":H()}],"justify-content":[{justify:[...me(),"normal"]}],"justify-items":[{"justify-items":[...ne(),"normal"]}],"justify-self":[{"justify-self":["auto",...ne()]}],"align-content":[{content:["normal",...me()]}],"align-items":[{items:[...ne(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ne(),{baseline:["","last"]}]}],"place-content":[{"place-content":me()}],"place-items":[{"place-items":[...ne(),"baseline"]}],"place-self":[{"place-self":["auto",...ne()]}],p:[{p:H()}],px:[{px:H()}],py:[{py:H()}],ps:[{ps:H()}],pe:[{pe:H()}],pt:[{pt:H()}],pr:[{pr:H()}],pb:[{pb:H()}],pl:[{pl:H()}],m:[{m:re()}],mx:[{mx:re()}],my:[{my:re()}],ms:[{ms:re()}],me:[{me:re()}],mt:[{mt:re()}],mr:[{mr:re()}],mb:[{mb:re()}],ml:[{ml:re()}],"space-x":[{"space-x":H()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":H()}],"space-y-reverse":["space-y-reverse"],size:[{size:W()}],w:[{w:[g,"screen",...W()]}],"min-w":[{"min-w":[g,"screen","none",...W()]}],"max-w":[{"max-w":[g,"screen","none","prose",{screen:[p]},...W()]}],h:[{h:["screen","lh",...W()]}],"min-h":[{"min-h":["screen","lh","none",...W()]}],"max-h":[{"max-h":["screen","lh",...W()]}],"font-size":[{text:["base",u,xo,ci]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[c,Pe,Lc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Dc,Ee]}],"font-family":[{font:[Lx,Ee,n]}],"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:[d,Pe,Ee]}],"line-clamp":[{"line-clamp":[nt,"none",Pe,Lc]}],leading:[{leading:[m,...H()]}],"list-image":[{"list-image":["none",Pe,Ee]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Pe,Ee]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:N()}],"text-color":[{text:N()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[..._e(),"wavy"]}],"text-decoration-thickness":[{decoration:[nt,"from-font","auto",Pe,ci]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[nt,"auto",Pe,Ee]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Pe,Ee]}],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",Pe,Ee]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:C()}],"bg-repeat":[{bg:E()}],"bg-size":[{bg:Z()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Cn,Pe,Ee],radial:["",Pe,Ee],conic:[Cn,Pe,Ee]},Zx,Dx]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:ie()}],"gradient-via-pos":[{via:ie()}],"gradient-to-pos":[{to:ie()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],rounded:[{rounded:Q()}],"rounded-s":[{"rounded-s":Q()}],"rounded-e":[{"rounded-e":Q()}],"rounded-t":[{"rounded-t":Q()}],"rounded-r":[{"rounded-r":Q()}],"rounded-b":[{"rounded-b":Q()}],"rounded-l":[{"rounded-l":Q()}],"rounded-ss":[{"rounded-ss":Q()}],"rounded-se":[{"rounded-se":Q()}],"rounded-ee":[{"rounded-ee":Q()}],"rounded-es":[{"rounded-es":Q()}],"rounded-tl":[{"rounded-tl":Q()}],"rounded-tr":[{"rounded-tr":Q()}],"rounded-br":[{"rounded-br":Q()}],"rounded-bl":[{"rounded-bl":Q()}],"border-w":[{border:Ce()}],"border-w-x":[{"border-x":Ce()}],"border-w-y":[{"border-y":Ce()}],"border-w-s":[{"border-s":Ce()}],"border-w-e":[{"border-e":Ce()}],"border-w-t":[{"border-t":Ce()}],"border-w-r":[{"border-r":Ce()}],"border-w-b":[{"border-b":Ce()}],"border-w-l":[{"border-l":Ce()}],"divide-x":[{"divide-x":Ce()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Ce()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[..._e(),"hidden","none"]}],"divide-style":[{divide:[..._e(),"hidden","none"]}],"border-color":[{border:N()}],"border-color-x":[{"border-x":N()}],"border-color-y":[{"border-y":N()}],"border-color-s":[{"border-s":N()}],"border-color-e":[{"border-e":N()}],"border-color-t":[{"border-t":N()}],"border-color-r":[{"border-r":N()}],"border-color-b":[{"border-b":N()}],"border-color-l":[{"border-l":N()}],"divide-color":[{divide:N()}],"outline-style":[{outline:[..._e(),"none","hidden"]}],"outline-offset":[{"outline-offset":[nt,Pe,Ee]}],"outline-w":[{outline:["",nt,xo,ci]}],"outline-color":[{outline:N()}],shadow:[{shadow:["","none",y,Aa,La]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":["none",k,Aa,La]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:Ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[nt,ci]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":Ce()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":["none",v,Aa,La]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[nt,Pe,Ee]}],"mix-blend":[{"mix-blend":[...V(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":V()}],"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":[nt]}],"mask-image-linear-from-pos":[{"mask-linear-from":le()}],"mask-image-linear-to-pos":[{"mask-linear-to":le()}],"mask-image-linear-from-color":[{"mask-linear-from":N()}],"mask-image-linear-to-color":[{"mask-linear-to":N()}],"mask-image-t-from-pos":[{"mask-t-from":le()}],"mask-image-t-to-pos":[{"mask-t-to":le()}],"mask-image-t-from-color":[{"mask-t-from":N()}],"mask-image-t-to-color":[{"mask-t-to":N()}],"mask-image-r-from-pos":[{"mask-r-from":le()}],"mask-image-r-to-pos":[{"mask-r-to":le()}],"mask-image-r-from-color":[{"mask-r-from":N()}],"mask-image-r-to-color":[{"mask-r-to":N()}],"mask-image-b-from-pos":[{"mask-b-from":le()}],"mask-image-b-to-pos":[{"mask-b-to":le()}],"mask-image-b-from-color":[{"mask-b-from":N()}],"mask-image-b-to-color":[{"mask-b-to":N()}],"mask-image-l-from-pos":[{"mask-l-from":le()}],"mask-image-l-to-pos":[{"mask-l-to":le()}],"mask-image-l-from-color":[{"mask-l-from":N()}],"mask-image-l-to-color":[{"mask-l-to":N()}],"mask-image-x-from-pos":[{"mask-x-from":le()}],"mask-image-x-to-pos":[{"mask-x-to":le()}],"mask-image-x-from-color":[{"mask-x-from":N()}],"mask-image-x-to-color":[{"mask-x-to":N()}],"mask-image-y-from-pos":[{"mask-y-from":le()}],"mask-image-y-to-pos":[{"mask-y-to":le()}],"mask-image-y-from-color":[{"mask-y-from":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[Pe,Ee]}],"mask-image-radial-from-pos":[{"mask-radial-from":le()}],"mask-image-radial-to-pos":[{"mask-radial-to":le()}],"mask-image-radial-from-color":[{"mask-radial-from":N()}],"mask-image-radial-to-color":[{"mask-radial-to":N()}],"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":[nt]}],"mask-image-conic-from-pos":[{"mask-conic-from":le()}],"mask-image-conic-to-pos":[{"mask-conic-to":le()}],"mask-image-conic-from-color":[{"mask-conic-from":N()}],"mask-image-conic-to-color":[{"mask-conic-to":N()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:C()}],"mask-repeat":[{mask:E()}],"mask-size":[{mask:Z()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Pe,Ee]}],filter:[{filter:["","none",Pe,Ee]}],blur:[{blur:Ne()}],brightness:[{brightness:[nt,Pe,Ee]}],contrast:[{contrast:[nt,Pe,Ee]}],"drop-shadow":[{"drop-shadow":["","none",x,Aa,La]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:["",nt,Pe,Ee]}],"hue-rotate":[{"hue-rotate":[nt,Pe,Ee]}],invert:[{invert:["",nt,Pe,Ee]}],saturate:[{saturate:[nt,Pe,Ee]}],sepia:[{sepia:["",nt,Pe,Ee]}],"backdrop-filter":[{"backdrop-filter":["","none",Pe,Ee]}],"backdrop-blur":[{"backdrop-blur":Ne()}],"backdrop-brightness":[{"backdrop-brightness":[nt,Pe,Ee]}],"backdrop-contrast":[{"backdrop-contrast":[nt,Pe,Ee]}],"backdrop-grayscale":[{"backdrop-grayscale":["",nt,Pe,Ee]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[nt,Pe,Ee]}],"backdrop-invert":[{"backdrop-invert":["",nt,Pe,Ee]}],"backdrop-opacity":[{"backdrop-opacity":[nt,Pe,Ee]}],"backdrop-saturate":[{"backdrop-saturate":[nt,Pe,Ee]}],"backdrop-sepia":[{"backdrop-sepia":["",nt,Pe,Ee]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":H()}],"border-spacing-x":[{"border-spacing-x":H()}],"border-spacing-y":[{"border-spacing-y":H()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Pe,Ee]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[nt,"initial",Pe,Ee]}],ease:[{ease:["linear","initial",B,Pe,Ee]}],delay:[{delay:[nt,Pe,Ee]}],animate:[{animate:["none",oe,Pe,Ee]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[O,Pe,Ee]}],"perspective-origin":[{"perspective-origin":G()}],rotate:[{rotate:xe()}],"rotate-x":[{"rotate-x":xe()}],"rotate-y":[{"rotate-y":xe()}],"rotate-z":[{"rotate-z":xe()}],scale:[{scale:Re()}],"scale-x":[{"scale-x":Re()}],"scale-y":[{"scale-y":Re()}],"scale-z":[{"scale-z":Re()}],"scale-3d":["scale-3d"],skew:[{skew:Ye()}],"skew-x":[{"skew-x":Ye()}],"skew-y":[{"skew-y":Ye()}],transform:[{transform:[Pe,Ee,"","none","gpu","cpu"]}],"transform-origin":[{origin:G()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ut()}],"translate-x":[{"translate-x":ut()}],"translate-y":[{"translate-y":ut()}],"translate-z":[{"translate-z":ut()}],"translate-none":["translate-none"],accent:[{accent:N()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:N()}],"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",Pe,Ee]}],"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":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"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",Pe,Ee]}],fill:[{fill:["none",...N()]}],"stroke-w":[{stroke:[nt,xo,ci,Lc]}],stroke:[{stroke:["none",...N()]}],"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"]}},qx=(i,{cacheSize:n,prefix:u,experimentalParseClassName:c,extend:d={},override:m={}})=>(So(i,"cacheSize",n),So(i,"prefix",u),So(i,"experimentalParseClassName",c),Za(i.theme,m.theme),Za(i.classGroups,m.classGroups),Za(i.conflictingClassGroups,m.conflictingClassGroups),Za(i.conflictingClassGroupModifiers,m.conflictingClassGroupModifiers),So(i,"orderSensitiveModifiers",m.orderSensitiveModifiers),Ra(i.theme,d.theme),Ra(i.classGroups,d.classGroups),Ra(i.conflictingClassGroups,d.conflictingClassGroups),Ra(i.conflictingClassGroupModifiers,d.conflictingClassGroupModifiers),ab(i,d,"orderSensitiveModifiers"),i),So=(i,n,u)=>{u!==void 0&&(i[n]=u)},Za=(i,n)=>{if(n)for(const u in n)So(i,u,n[u])},Ra=(i,n)=>{if(n)for(const u in n)ab(i,n,u)},ab=(i,n,u)=>{const c=n[u];c!==void 0&&(i[u]=i[u]?i[u].concat(c):c)},Wx=(i,...n)=>typeof i=="function"?Mc(Ac,i,...n):Mc(()=>qx(Ac(),i),...n),sb=Mc(Ac);function Sr(...i){return sb(yo(i))}var Qx=/\s+/g,Zc=i=>typeof i!="string"||!i?i:i.replace(Qx," ").trim(),Fa=(...i)=>{let n=[],u=c=>{if(!c&&c!==0&&c!==0n)return;if(Array.isArray(c)){for(let m=0,p=c.length;m<p;m++)u(c[m]);return}let d=typeof c;if(d==="string"||d==="number"||d==="bigint"){if(d==="number"&&c!==c)return;n.push(String(c))}else if(d==="object"){let m=Object.keys(c);for(let p=0,g=m.length;p<g;p++){let h=m[p];c[h]&&n.push(h)}}};for(let c=0,d=i.length;c<d;c++){let m=i[c];m!=null&&u(m)}return n.length>0?Zc(n.join(" ")):void 0},ub=i=>i===!1?"false":i===!0?"true":i===0?"0":i,hr=i=>{if(!i||typeof i!="object")return!0;for(let n in i)return!1;return!0},Gx=(i,n)=>{if(i===n)return!0;if(!i||!n)return!1;let u=Object.keys(i),c=Object.keys(n);if(u.length!==c.length)return!1;for(let d=0;d<u.length;d++){let m=u[d];if(!c.includes(m)||i[m]!==n[m])return!1}return!0},cb=(i,n)=>{for(let u in n)if(Object.prototype.hasOwnProperty.call(n,u)){let c=n[u];u in i?i[u]=Fa(i[u],c):i[u]=c}return i},lb=(i,n)=>{for(let u=0;u<i.length;u++){let c=i[u];Array.isArray(c)?lb(c,n):c&&n.push(c)}},db=(...i)=>{let n=[];lb(i,n);let u=[];for(let c=0;c<n.length;c++)n[c]&&u.push(n[c]);return u},Rc=(i,n)=>{let u={};for(let c in i){let d=i[c];if(c in n){let m=n[c];Array.isArray(d)||Array.isArray(m)?u[c]=db(m,d):typeof d=="object"&&typeof m=="object"&&d&&m?u[c]=Rc(d,m):u[c]=m+" "+d}else u[c]=d}for(let c in n)c in i||(u[c]=n[c]);return u},Vx={twMerge:!0,twMergeConfig:{},responsiveVariants:!1};function Jx(){let i=null,n={},u=!1;return{get cachedTwMerge(){return i},set cachedTwMerge(c){i=c},get cachedTwMergeConfig(){return n},set cachedTwMergeConfig(c){n=c},get didTwMergeConfigChange(){return u},set didTwMergeConfigChange(c){u=c},reset(){i=null,n={},u=!1}}}var hn=Jx(),Bx=i=>{let n=(u,c)=>{let{extend:d=null,slots:m={},variants:p={},compoundVariants:g=[],compoundSlots:h=[],defaultVariants:b={}}=u,y={...Vx,...c},k=d?.base?Fa(d.base,u?.base):u?.base,v=d?.variants&&!hr(d.variants)?Rc(p,d.variants):p,x=d?.defaultVariants&&!hr(d.defaultVariants)?{...d.defaultVariants,...b}:b;!hr(y.twMergeConfig)&&!Gx(y.twMergeConfig,hn.cachedTwMergeConfig)&&(hn.didTwMergeConfigChange=!0,hn.cachedTwMergeConfig=y.twMergeConfig);let S=hr(d?.slots),O=hr(m)?{}:{base:Fa(u?.base,S&&d?.base),...m},U=S?O:cb({...d?.slots},hr(O)?{base:u?.base}:O),B=hr(d?.compoundVariants)?g:db(d?.compoundVariants,g),oe=Y=>{if(hr(v)&&hr(m)&&S)return i(k,Y?.class,Y?.className)(y);if(B&&!Array.isArray(B))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof B}`);if(h&&!Array.isArray(h))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof h}`);let G=(me,ne,re=[],W)=>{let N=re;if(typeof ne=="string"){let C=Zc(ne).split(" ");for(let E=0;E<C.length;E++)N.push(`${me}:${C[E]}`)}else if(Array.isArray(ne))for(let C=0;C<ne.length;C++)N.push(`${me}:${ne[C]}`);else if(typeof ne=="object"&&typeof W=="string"&&W in ne){let C=ne[W];if(C&&typeof C=="string"){let E=Zc(C).split(" "),Z=[];for(let ie=0;ie<E.length;ie++)Z.push(`${me}:${E[ie]}`);N[W]=N[W]?N[W].concat(Z):Z}else if(Array.isArray(C)&&C.length>0){let E=[];for(let Z=0;Z<C.length;Z++)E.push(`${me}:${C[Z]}`);N[W]=E}}return N},F=(me,ne=v,re=null,W=null)=>{let N=ne[me];if(!N||hr(N))return null;let C=W?.[me]??Y?.[me];if(C===null)return null;let E=ub(C),Z=Array.isArray(y.responsiveVariants)&&y.responsiveVariants.length>0||y.responsiveVariants===!0,ie=x?.[me],Q=[];if(typeof E=="object"&&Z)for(let[V,le]of Object.entries(E)){let Ne=N[le];if(V==="initial"){ie=le;continue}Array.isArray(y.responsiveVariants)&&!y.responsiveVariants.includes(V)||(Q=G(V,Ne,Q,re))}let Ce=E!=null&&typeof E!="object"?E:ub(ie),_e=N[Ce||"false"];return typeof Q=="object"&&typeof re=="string"&&Q[re]?cb(Q,_e):Q.length>0?(Q.push(_e),re==="base"?Q.join(" "):Q):_e},K=()=>{if(!v)return null;let me=Object.keys(v),ne=[];for(let re=0;re<me.length;re++){let W=F(me[re],v);W&&ne.push(W)}return ne},H=(me,ne)=>{if(!v||typeof v!="object")return null;let re=[];for(let W in v){let N=F(W,v,me,ne),C=me==="base"&&typeof N=="string"?N:N&&N[me];C&&re.push(C)}return re},$e={};for(let me in Y){let ne=Y[me];ne!==void 0&&($e[me]=ne)}let Ie=(me,ne)=>{let re=typeof Y?.[me]=="object"?{[me]:Y[me]?.initial}:{};return{...x,...$e,...re,...ne}},ke=(me=[],ne)=>{let re=[],W=me.length;for(let N=0;N<W;N++){let{class:C,className:E,...Z}=me[N],ie=!0,Q=Ie(null,ne);for(let Ce in Z){let _e=Z[Ce],V=Q[Ce];if(Array.isArray(_e)){if(!_e.includes(V)){ie=!1;break}}else{if((_e==null||_e===!1)&&(V==null||V===!1))continue;if(V!==_e){ie=!1;break}}}ie&&(C&&re.push(C),E&&re.push(E))}return re},fe=me=>{let ne=ke(B,me);if(!Array.isArray(ne))return ne;let re={},W=i;for(let N=0;N<ne.length;N++){let C=ne[N];if(typeof C=="string")re.base=W(re.base,C)(y);else if(typeof C=="object")for(let E in C)re[E]=W(re[E],C[E])(y)}return re},Se=me=>{if(h.length<1)return null;let ne={},re=Ie(null,me);for(let W=0;W<h.length;W++){let{slots:N=[],class:C,className:E,...Z}=h[W];if(!hr(Z)){let ie=!0;for(let Q in Z){let Ce=re[Q],_e=Z[Q];if(Ce===void 0||(Array.isArray(_e)?!_e.includes(Ce):_e!==Ce)){ie=!1;break}}if(!ie)continue}for(let ie=0;ie<N.length;ie++){let Q=N[ie];ne[Q]||(ne[Q]=[]),ne[Q].push([C,E])}}return ne};if(!hr(m)||!S){let me={};if(typeof U=="object"&&!hr(U)){let ne=i;for(let re in U)me[re]=W=>{let N=fe(W),C=Se(W);return ne(U[re],H(re,W),N?N[re]:void 0,C?C[re]:void 0,W?.class,W?.className)(y)}}return me}return i(k,K(),ke(B),Y?.class,Y?.className)(y)},J=()=>{if(!(!v||typeof v!="object"))return Object.keys(v)};return oe.variantKeys=J(),oe.extend=d,oe.base=k,oe.slots=U,oe.variants=v,oe.defaultVariants=x,oe.compoundSlots=h,oe.compoundVariants=B,oe};return{tv:n,createTV:u=>(c,d)=>n(c,d?Rc(u,d):u)}},Yx=i=>hr(i)?sb:Wx({...i,extend:{theme:i.theme,classGroups:i.classGroups,conflictingClassGroupModifiers:i.conflictingClassGroupModifiers,conflictingClassGroups:i.conflictingClassGroups,...i.extend}}),Kx=(...i)=>n=>{let u=Fa(i);return!u||!n.twMerge?u:((!hn.cachedTwMerge||hn.didTwMergeConfigChange)&&(hn.didTwMergeConfigChange=!1,hn.cachedTwMerge=Yx(hn.cachedTwMergeConfig)),hn.cachedTwMerge(u)||void 0)},{tv:Hx}=Bx(Kx);const fb=Hx({base:"focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium outline-none transition-all focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 text-white",outline:"bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 border",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});var Xx=te("<a><!></a>"),eS=te("<button><!></button>");function Ft(i,n){Je(n,!0);let u=w(n,"variant",3,"default"),c=w(n,"size",3,"default"),d=w(n,"ref",15,null),m=w(n,"href",3,void 0),p=w(n,"type",3,"button"),g=At(n,["$$slots","$$events","$$legacy","class","variant","size","ref","href","type","disabled","children","onclick"]);var h=Ze(),b=Te(h);{var y=v=>{var x=Xx();Gt(x,O=>({"data-slot":"button",class:O,href:n.disabled?void 0:m(),"aria-disabled":n.disabled,role:n.disabled?"link":void 0,tabindex:n.disabled?-1:void 0,...g}),[()=>Sr(fb({variant:u(),size:c()}),n.class)]);var S=R(x);Rt(S,()=>n.children??gt),L(x),Ur(x,O=>d(O),()=>d()),T(v,x)},k=v=>{var x=eS();Gt(x,O=>({"data-slot":"button",class:O,type:p(),disabled:n.disabled,onclick:n.onclick,...g}),[()=>Sr(fb({variant:u(),size:c()}),n.class)]);var S=R(x);Rt(S,()=>n.children??gt),L(x),Ur(x,O=>d(O),()=>d()),T(v,x)};ae(b,v=>{m()?v(y):v(k,!1)})}T(i,h),Be()}var tS=te('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),rS=te('<span class="text-destructive ml-1">*</span>'),nS=te('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),iS=te('<span class="text-xs xs:text-xs text-muted-foreground font-medium"> </span>'),oS=te('<span class="text-xs xs:text-xs text-muted-foreground font-medium text-right"> </span>'),aS=te('<div class="flex justify-between items-center px-1 sm:px-2"><!> <!></div>'),sS=te('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><span class="font-medium"> </span></div>'),uS=te('<div class="w-full space-y-4"><div class="flex text-left items-start gap-3"><!> <div class="flex-1 space-y-1.5"><label class="text-lg font-semibold text-foreground leading-tight"> <!></label> <!></div></div> <div class="flex flex-col gap-3 pt-2"><div class="flex gap-0.5 xs:gap-1 sm:gap-1.5 md:gap-2 justify-center items-center w-full"></div> <!></div> <!></div>');function cS(i,n){Je(n,!1);const u=ee(),c=ee(),{updateQuestionResponse:d,removeQuestionResponse:m}=pn();let p=w(n,"question",8),g=w(n,"value",24,()=>-1),h=w(n,"onChange",8),b=w(n,"error",8,void 0),y=w(n,"currentMode",8,void 0),k=w(n,"questionNumber",8,void 0);w(n,"themeSettings",8,void 0),w(n,"currentLanguage",8,void 0);let v=ee(g()??-1);function x(ne){l(v)===ne?($(v,-1),h()(-1),m(p().id)):($(v,ne),h()(ne),d(p().id,ne,s.QuestionTypes.NPS))}ve(()=>z(y()),()=>{$(u,y()==="dark")}),ve(()=>z(g()),()=>{g()!==void 0&&$(v,g())}),ve(()=>z(p()),()=>{$(c,Array.from({length:(p().max??10)-(p().min??0)+1},(ne,re)=>re+(p().min??0)))}),fr(),er();var S=uS(),O=R(S),U=R(O);{var B=ne=>{var re=tS(),W=R(re);L(re),je(()=>Oe(W,`${k()??""}.`)),T(ne,re)};ae(U,ne=>{k()!==void 0&&ne(B)})}var oe=de(U,2),J=R(oe),Y=R(J),G=de(Y);{var F=ne=>{var re=rS();T(ne,re)};ae(G,ne=>{z(p()),M(()=>p().required)&&ne(F)})}L(J);var K=de(J,2);{var H=ne=>{var re=nS(),W=R(re,!0);L(re),je(()=>Oe(W,(z(p()),M(()=>p().description)))),T(ne,re)};ae(K,ne=>{z(p()),M(()=>p().description)&&ne(H)})}L(oe),L(O);var $e=de(O,2),Ie=R($e);gr(Ie,5,()=>l(c),xr,(ne,re)=>{{let W=Ae(()=>`flex-1 min-w-0 h-8 xs:h-9 sm:h-10 text-xs xs:text-sm sm:text-base font-semibold transition-all ${l(v)===l(re)?"bg-primary text-primary-foreground border-primary shadow-md hover:bg-primary/90 scale-105 dark:border-primary/90 dark:bg-primary dark:hover:bg-primary dark:hover:text-primary-foreground hover:text-primary-foreground":"bg-card text-card-foreground border-border hover:border-primary/50 hover:bg-accent/50 dark:hover:bg-primary/20 dark:hover:text-card-foreground"}`);Ft(ne,{type:"button",variant:"outline",size:"sm",get class(){return l(W)},onclick:()=>x(l(re)),children:(N,C)=>{_r();var E=On();je(()=>Oe(E,l(re))),T(N,E)},$$slots:{default:!0}})}}),L(Ie);var ke=de(Ie,2);{var fe=ne=>{var re=aS(),W=R(re);{var N=Z=>{var ie=iS(),Q=R(ie,!0);L(ie),je(()=>Oe(Q,(z(p()),M(()=>p().minLabel)))),T(Z,ie)};ae(W,Z=>{z(p()),M(()=>p().minLabel)&&Z(N)})}var C=de(W,2);{var E=Z=>{var ie=oS(),Q=R(ie,!0);L(ie),je(()=>Oe(Q,(z(p()),M(()=>p().maxLabel)))),T(Z,ie)};ae(C,Z=>{z(p()),M(()=>p().maxLabel)&&Z(E)})}L(re),T(ne,re)};ae(ke,ne=>{z(p()),M(()=>p().minLabel||p().maxLabel)&&ne(fe)})}L($e);var Se=de($e,2);{var me=ne=>{var re=sS(),W=R(re),N=R(W,!0);L(W),L(re),je(()=>Oe(N,b())),T(ne,re)};ae(Se,ne=>{b()&&ne(me)})}L(S),je(()=>Oe(Y,`${z(p()),M(()=>p().title)??""} `)),T(i,S),Be()}var lS=te("<nav><!></nav>");function dS(i,n){Je(n,!0);let u=w(n,"ref",15,null),c=At(n,["$$slots","$$events","$$legacy","ref","class","children"]);var d=lS();Gt(d,()=>({"data-slot":"breadcrumb",class:n.class,"aria-label":"breadcrumb",...c}));var m=R(d);Rt(m,()=>n.children??gt),L(d),Ur(d,p=>u(p),()=>u()),T(i,d),Be()}/**
44
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const ce of this.seen.entries()){const ue=ce[1];if(r===ce[0]){f(ce);continue}if(s.external){const ge=s.external.registry.get(ce[0])?.id;if(r!==ce[0]&&ge){f(ce);continue}}if(this.metadataRegistry.get(ce[0])?.id){f(ce);continue}if(ue.cycle){f(ce);continue}if(ue.count>1&&s.reused==="ref"){f(ce);continue}}const _=(ce,ue)=>{const ze=this.seen.get(ce),ge=ze.def??ze.schema,L={...ge};if(ze.ref===null)return;const ye=ze.ref;if(ze.ref=null,ye){_(ye,ue);const Me=this.seen.get(ye).schema;Me.$ref&&(ue.target==="draft-7"||ue.target==="draft-4"||ue.target==="openapi-3.0")?(ge.allOf=ge.allOf??[],ge.allOf.push(Me)):(Object.assign(ge,Me),Object.assign(ge,L))}ze.isParent||this.override({zodSchema:ce,jsonSchema:ge,path:ze.path??[]})};for(const ce of[...this.seen.entries()].reverse())_(ce[0],{target:this.target});const q={};if(this.target==="draft-2020-12"?q.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?q.$schema="http://json-schema.org/draft-07/schema#":this.target==="draft-4"?q.$schema="http://json-schema.org/draft-04/schema#":this.target==="openapi-3.0"||console.warn(`Invalid target: ${this.target}`),s.external?.uri){const ce=s.external.registry.get(r)?.id;if(!ce)throw new Error("Schema is missing an `id` property");q.$id=s.external.uri(ce)}Object.assign(q,t.def);const X=s.external?.defs??{};for(const ce of this.seen.entries()){const ue=ce[1];ue.def&&ue.defId&&(X[ue.defId]=ue.def)}s.external||Object.keys(X).length>0&&(this.target==="draft-2020-12"?q.$defs=X:q.definitions=X);try{return JSON.parse(JSON.stringify(q))}catch{throw new Error("Error converting schema to JSON.")}}}function rp(e,r){if(e instanceof xs){const s=new iu(r),t={};for(const _ of e._idmap.entries()){const[q,X]=_;s.process(X)}const a={},f={registry:e,uri:r?.uri,defs:t};for(const _ of e._idmap.entries()){const[q,X]=_;a[q]=s.emit(X,{...r,external:f})}if(Object.keys(t).length>0){const _=s.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[_]:t}}return{schemas:a}}const o=new iu(r);return o.process(e),o.emit(e,r)}function Jt(e,r){const o=r??{seen:new Set};if(o.seen.has(e))return!1;o.seen.add(e);const t=e._zod.def;switch(t.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":return!1;case"array":return Jt(t.element,o);case"object":{for(const a in t.shape)if(Jt(t.shape[a],o))return!0;return!1}case"union":{for(const a of t.options)if(Jt(a,o))return!0;return!1}case"intersection":return Jt(t.left,o)||Jt(t.right,o);case"tuple":{for(const a of t.items)if(Jt(a,o))return!0;return!!(t.rest&&Jt(t.rest,o))}case"record":return Jt(t.keyType,o)||Jt(t.valueType,o);case"map":return Jt(t.keyType,o)||Jt(t.valueType,o);case"set":return Jt(t.valueType,o);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return Jt(t.innerType,o);case"lazy":return Jt(t.getter(),o);case"default":return Jt(t.innerType,o);case"prefault":return Jt(t.innerType,o);case"custom":return!1;case"transform":return!0;case"pipe":return Jt(t.in,o)||Jt(t.out,o);case"success":return!1;case"catch":return!1;case"function":return!1}throw new Error(`Unknown schema type: ${t.type}`)}const Uw=Object.freeze(Object.defineProperty({__proto__:null,$ZodAny:gf,$ZodArray:wf,$ZodAsyncError:Mn,$ZodBase64:rf,$ZodBase64URL:of,$ZodBigInt:ys,$ZodBigIntFormat:df,$ZodBoolean:bs,$ZodCIDRv4:ef,$ZodCIDRv6:tf,$ZodCUID:Fd,$ZodCUID2:Wd,$ZodCatch:Jf,$ZodCheck:Mt,$ZodCheckBigIntFormat:bd,$ZodCheckEndsWith:Td,$ZodCheckGreaterThan:gs,$ZodCheckIncludes:Nd,$ZodCheckLengthEquals:xd,$ZodCheckLessThan:ps,$ZodCheckLowerCase:Id,$ZodCheckMaxLength:_d,$ZodCheckMaxSize:yd,$ZodCheckMimeType:Pd,$ZodCheckMinLength:kd,$ZodCheckMinSize:$d,$ZodCheckMultipleOf:hd,$ZodCheckNumberFormat:vd,$ZodCheckOverwrite:Cd,$ZodCheckProperty:Ed,$ZodCheckRegex:Sd,$ZodCheckSizeEquals:wd,$ZodCheckStartsWith:jd,$ZodCheckStringFormat:Gi,$ZodCheckUpperCase:zd,$ZodCodec:ks,$ZodCustom:nm,$ZodCustomStringFormat:cf,$ZodDate:yf,$ZodDefault:qf,$ZodDiscriminatedUnion:zf,$ZodE164:af,$ZodEmail:Ld,$ZodEmoji:Rd,$ZodEncodeError:To,$ZodEnum:Uf,$ZodError:Ha,$ZodFile:Af,$ZodFunction:em,$ZodGUID:Ad,$ZodIPv4:Hd,$ZodIPv6:Xd,$ZodISODate:Bd,$ZodISODateTime:Jd,$ZodISODuration:Kd,$ZodISOTime:Yd,$ZodIntersection:Nf,$ZodJWT:uf,$ZodKSUID:Gd,$ZodLazy:rm,$ZodLiteral:Mf,$ZodMap:Of,$ZodNaN:Bf,$ZodNanoID:qd,$ZodNever:vf,$ZodNonOptional:Vf,$ZodNull:pf,$ZodNullable:Rf,$ZodNumber:vs,$ZodNumberFormat:lf,$ZodObject:xf,$ZodObjectJIT:Sf,$ZodOptional:Zf,$ZodPipe:Yf,$ZodPrefault:Wf,$ZodPromise:tm,$ZodReadonly:Kf,$ZodRealError:br,$ZodRecord:Tf,$ZodRegistry:xs,$ZodSet:Pf,$ZodString:Ji,$ZodStringFormat:zt,$ZodSuccess:Gf,$ZodSymbol:ff,$ZodTemplateLiteral:Xf,$ZodTransform:Df,$ZodTuple:_s,$ZodType:Ve,$ZodULID:Vd,$ZodURL:Zd,$ZodUUID:Dd,$ZodUndefined:mf,$ZodUnion:$s,$ZodUnknown:hf,$ZodVoid:bf,$ZodXID:Qd,$brand:fl,$constructor:M,$input:mm,$output:fm,Doc:Ud,JSONSchema:Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),JSONSchemaGenerator:iu,NEVER:dl,TimePrecision:hm,_any:Am,_array:Bm,_base64:qs,_base64url:Fs,_bigint:Tm,_boolean:Nm,_catch:jw,_check:ep,_cidrv4:Zs,_cidrv6:Rs,_coercedBigint:Om,_coercedBoolean:jm,_coercedDate:qm,_coercedNumber:_m,_coercedString:gm,_cuid:Ps,_cuid2:Cs,_custom:Km,_date:Rm,_decode:is,_decodeAsync:as,_default:Iw,_discriminatedUnion:pw,_e164:Ws,_email:Is,_emoji:Os,_encode:ns,_encodeAsync:os,_endsWith:Hs,_enum:$w,_file:Ym,_float32:xm,_float64:Sm,_gt:qn,_gte:yr,_guid:Wo,_includes:Ys,_int:km,_int32:Im,_int64:Em,_intersection:gw,_ipv4:Ds,_ipv6:Ls,_isoDate:bm,_isoDateTime:vm,_isoDuration:$m,_isoTime:ym,_jwt:Vs,_ksuid:As,_lazy:Pw,_length:Jo,_literal:_w,_lowercase:Js,_lt:Rn,_lte:Zr,_map:bw,_max:Zr,_maxLength:Go,_maxSize:Qo,_mime:Xs,_min:yr,_minLength:gi,_minSize:Hi,_multipleOf:Ki,_nan:Fm,_nanoid:Es,_nativeEnum:ww,_negative:Vm,_never:Lm,_nonnegative:Gm,_nonoptional:zw,_nonpositive:Qm,_normalize:eu,_null:Mm,_nullable:Sw,_number:wm,_optional:xw,_overwrite:Fn,_parse:Ri,_parseAsync:qi,_pipe:Tw,_positive:Wm,_promise:Cw,_property:Jm,_readonly:Ow,_record:vw,_refine:Hm,_regex:Gs,_safeDecode:us,_safeDecodeAsync:ls,_safeEncode:ss,_safeEncodeAsync:cs,_safeParse:Fi,_safeParseAsync:Wi,_set:yw,_size:Qs,_startsWith:Ks,_string:pm,_stringFormat:Xi,_stringbool:tp,_success:Nw,_superRefine:Xm,_symbol:Cm,_templateLiteral:Ew,_toLowerCase:ru,_toUpperCase:nu,_transform:kw,_trim:tu,_tuple:hw,_uint32:zm,_uint64:Pm,_ulid:Us,_undefined:Um,_union:mw,_unknown:Dm,_uppercase:Bs,_url:Vo,_uuid:zs,_uuidv4:Ns,_uuidv6:js,_uuidv7:Ts,_void:Zm,_xid:Ms,clone:Nr,config:cr,decode:fy,decodeAsync:py,encode:dy,encodeAsync:my,flattenError:Xa,formatError:es,globalConfig:Oo,globalRegistry:Zn,isValidBase64:hs,isValidBase64URL:nf,isValidJWT:sf,locales:dm,parse:ts,parseAsync:rs,prettifyError:Pl,regexes:ms,registry:Ss,safeDecode:hy,safeDecodeAsync:by,safeEncode:gy,safeEncodeAsync:vy,safeParse:Cl,safeParseAsync:Ul,toDotPath:El,toJSONSchema:rp,treeifyError:Ol,util:jl,version:Md},Symbol.toStringTag,{value:"Module"})),ou=M("ZodISODateTime",(e,r)=>{Jd.init(e,r),jt.init(e,r)});function np(e){return vm(ou,e)}const au=M("ZodISODate",(e,r)=>{Bd.init(e,r),jt.init(e,r)});function ip(e){return bm(au,e)}const su=M("ZodISOTime",(e,r)=>{Yd.init(e,r),jt.init(e,r)});function op(e){return ym(su,e)}const uu=M("ZodISODuration",(e,r)=>{Kd.init(e,r),jt.init(e,r)});function ap(e){return $m(uu,e)}const Mw=Object.freeze(Object.defineProperty({__proto__:null,ZodISODate:au,ZodISODateTime:ou,ZodISODuration:uu,ZodISOTime:su,date:ip,datetime:np,duration:ap,time:op},Symbol.toStringTag,{value:"Module"})),sp=(e,r)=>{Ha.init(e,r),e.name="ZodError",Object.defineProperties(e,{format:{value:o=>es(e,o)},flatten:{value:o=>Xa(e,o)},addIssue:{value:o=>{e.issues.push(o),e.message=JSON.stringify(e.issues,Eo,2)}},addIssues:{value:o=>{e.issues.push(...o),e.message=JSON.stringify(e.issues,Eo,2)}},isEmpty:{get(){return e.issues.length===0}}})},Aw=M("ZodError",sp),$r=M("ZodError",sp,{Parent:Error}),up=Ri($r),cp=qi($r),lp=Fi($r),dp=Wi($r),fp=ns($r),mp=is($r),pp=os($r),gp=as($r),hp=ss($r),vp=us($r),bp=cs($r),yp=ls($r),et=M("ZodType",(e,r)=>(Ve.init(e,r),e.def=r,e.type=r.type,Object.defineProperty(e,"_def",{value:r}),e.check=(...o)=>e.clone({...r,checks:[...r.checks??[],...o.map(s=>typeof s=="function"?{_zod:{check:s,def:{check:"custom"},onattach:[]}}:s)]}),e.clone=(o,s)=>Nr(e,o,s),e.brand=()=>e,e.register=((o,s)=>(o.add(e,s),e)),e.parse=(o,s)=>up(e,o,s,{callee:e.parse}),e.safeParse=(o,s)=>lp(e,o,s),e.parseAsync=async(o,s)=>cp(e,o,s,{callee:e.parseAsync}),e.safeParseAsync=async(o,s)=>dp(e,o,s),e.spa=e.safeParseAsync,e.encode=(o,s)=>fp(e,o,s),e.decode=(o,s)=>mp(e,o,s),e.encodeAsync=async(o,s)=>pp(e,o,s),e.decodeAsync=async(o,s)=>gp(e,o,s),e.safeEncode=(o,s)=>hp(e,o,s),e.safeDecode=(o,s)=>vp(e,o,s),e.safeEncodeAsync=async(o,s)=>bp(e,o,s),e.safeDecodeAsync=async(o,s)=>yp(e,o,s),e.refine=(o,s)=>e.check(rg(o,s)),e.superRefine=o=>e.check(ng(o)),e.overwrite=o=>e.check(Fn(o)),e.optional=()=>na(e),e.nullable=()=>ia(e),e.nullish=()=>na(ia(e)),e.nonoptional=o=>Vp(e,o),e.array=()=>$t(e),e.or=o=>nn([e,o]),e.and=o=>Ep(e,o),e.transform=o=>oa(e,Pu(o)),e.default=o=>qp(e,o),e.prefault=o=>Wp(e,o),e.catch=o=>Jp(e,o),e.pipe=o=>oa(e,o),e.readonly=()=>Kp(e),e.describe=o=>{const s=e.clone();return Zn.add(s,{description:o}),s},Object.defineProperty(e,"description",{get(){return Zn.get(e)?.description},configurable:!0}),e.meta=(...o)=>{if(o.length===0)return Zn.get(e);const s=e.clone();return Zn.add(s,o[0]),s},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),cu=M("_ZodString",(e,r)=>{Ji.init(e,r),et.init(e,r);const o=e._zod.bag;e.format=o.format??null,e.minLength=o.minimum??null,e.maxLength=o.maximum??null,e.regex=(...s)=>e.check(Gs(...s)),e.includes=(...s)=>e.check(Ys(...s)),e.startsWith=(...s)=>e.check(Ks(...s)),e.endsWith=(...s)=>e.check(Hs(...s)),e.min=(...s)=>e.check(gi(...s)),e.max=(...s)=>e.check(Go(...s)),e.length=(...s)=>e.check(Jo(...s)),e.nonempty=(...s)=>e.check(gi(1,...s)),e.lowercase=s=>e.check(Js(s)),e.uppercase=s=>e.check(Bs(s)),e.trim=()=>e.check(tu()),e.normalize=(...s)=>e.check(eu(...s)),e.toLowerCase=()=>e.check(ru()),e.toUpperCase=()=>e.check(nu())}),Bo=M("ZodString",(e,r)=>{Ji.init(e,r),cu.init(e,r),e.email=o=>e.check(Is(lu,o)),e.url=o=>e.check(Vo(Ko,o)),e.jwt=o=>e.check(Vs(Su,o)),e.emoji=o=>e.check(Os(du,o)),e.guid=o=>e.check(Wo(Yo,o)),e.uuid=o=>e.check(zs(rn,o)),e.uuidv4=o=>e.check(Ns(rn,o)),e.uuidv6=o=>e.check(js(rn,o)),e.uuidv7=o=>e.check(Ts(rn,o)),e.nanoid=o=>e.check(Es(fu,o)),e.guid=o=>e.check(Wo(Yo,o)),e.cuid=o=>e.check(Ps(mu,o)),e.cuid2=o=>e.check(Cs(pu,o)),e.ulid=o=>e.check(Us(gu,o)),e.base64=o=>e.check(qs(_u,o)),e.base64url=o=>e.check(Fs(ku,o)),e.xid=o=>e.check(Ms(hu,o)),e.ksuid=o=>e.check(As(vu,o)),e.ipv4=o=>e.check(Ds(bu,o)),e.ipv6=o=>e.check(Ls(yu,o)),e.cidrv4=o=>e.check(Zs($u,o)),e.cidrv6=o=>e.check(Rs(wu,o)),e.e164=o=>e.check(Ws(xu,o)),e.datetime=o=>e.check(np(o)),e.date=o=>e.check(ip(o)),e.time=o=>e.check(op(o)),e.duration=o=>e.check(ap(o))});function P(e){return pm(Bo,e)}const jt=M("ZodStringFormat",(e,r)=>{zt.init(e,r),cu.init(e,r)}),lu=M("ZodEmail",(e,r)=>{Ld.init(e,r),jt.init(e,r)});function Dw(e){return Is(lu,e)}const Yo=M("ZodGUID",(e,r)=>{Ad.init(e,r),jt.init(e,r)});function Lw(e){return Wo(Yo,e)}const rn=M("ZodUUID",(e,r)=>{Dd.init(e,r),jt.init(e,r)});function $p(e){return zs(rn,e)}function Zw(e){return Ns(rn,e)}function Rw(e){return js(rn,e)}function qw(e){return Ts(rn,e)}const Ko=M("ZodURL",(e,r)=>{Zd.init(e,r),jt.init(e,r)});function Fw(e){return Vo(Ko,e)}function Ww(e){return Vo(Ko,{protocol:/^https?$/,hostname:Hl,...se(e)})}const du=M("ZodEmoji",(e,r)=>{Rd.init(e,r),jt.init(e,r)});function Vw(e){return Os(du,e)}const fu=M("ZodNanoID",(e,r)=>{qd.init(e,r),jt.init(e,r)});function Qw(e){return Es(fu,e)}const mu=M("ZodCUID",(e,r)=>{Fd.init(e,r),jt.init(e,r)});function Gw(e){return Ps(mu,e)}const pu=M("ZodCUID2",(e,r)=>{Wd.init(e,r),jt.init(e,r)});function Jw(e){return Cs(pu,e)}const gu=M("ZodULID",(e,r)=>{Vd.init(e,r),jt.init(e,r)});function Bw(e){return Us(gu,e)}const hu=M("ZodXID",(e,r)=>{Qd.init(e,r),jt.init(e,r)});function Yw(e){return Ms(hu,e)}const vu=M("ZodKSUID",(e,r)=>{Gd.init(e,r),jt.init(e,r)});function Kw(e){return As(vu,e)}const bu=M("ZodIPv4",(e,r)=>{Hd.init(e,r),jt.init(e,r)});function Hw(e){return Ds(bu,e)}const yu=M("ZodIPv6",(e,r)=>{Xd.init(e,r),jt.init(e,r)});function Xw(e){return Ls(yu,e)}const $u=M("ZodCIDRv4",(e,r)=>{ef.init(e,r),jt.init(e,r)});function e_(e){return Zs($u,e)}const wu=M("ZodCIDRv6",(e,r)=>{tf.init(e,r),jt.init(e,r)});function t_(e){return Rs(wu,e)}const _u=M("ZodBase64",(e,r)=>{rf.init(e,r),jt.init(e,r)});function r_(e){return qs(_u,e)}const ku=M("ZodBase64URL",(e,r)=>{of.init(e,r),jt.init(e,r)});function n_(e){return Fs(ku,e)}const xu=M("ZodE164",(e,r)=>{af.init(e,r),jt.init(e,r)});function i_(e){return Ws(xu,e)}const Su=M("ZodJWT",(e,r)=>{uf.init(e,r),jt.init(e,r)});function o_(e){return Vs(Su,e)}const eo=M("ZodCustomStringFormat",(e,r)=>{cf.init(e,r),jt.init(e,r)});function a_(e,r,o={}){return Xi(eo,e,r,o)}function s_(e){return Xi(eo,"hostname",fs,e)}function u_(e){return Xi(eo,"hex",pd,e)}function c_(e,r){const o=r?.enc??"hex",s=`${e}_${o}`,t=ms[s];if(!t)throw new Error(`Unrecognized hash format: ${s}`);return Xi(eo,s,t,r)}const Ho=M("ZodNumber",(e,r)=>{vs.init(e,r),et.init(e,r),e.gt=(s,t)=>e.check(qn(s,t)),e.gte=(s,t)=>e.check(yr(s,t)),e.min=(s,t)=>e.check(yr(s,t)),e.lt=(s,t)=>e.check(Rn(s,t)),e.lte=(s,t)=>e.check(Zr(s,t)),e.max=(s,t)=>e.check(Zr(s,t)),e.int=s=>e.check(Iu(s)),e.safe=s=>e.check(Iu(s)),e.positive=s=>e.check(qn(0,s)),e.nonnegative=s=>e.check(yr(0,s)),e.negative=s=>e.check(Rn(0,s)),e.nonpositive=s=>e.check(Zr(0,s)),e.multipleOf=(s,t)=>e.check(Ki(s,t)),e.step=(s,t)=>e.check(Ki(s,t)),e.finite=()=>e;const o=e._zod.bag;e.minValue=Math.max(o.minimum??Number.NEGATIVE_INFINITY,o.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(o.maximum??Number.POSITIVE_INFINITY,o.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(o.format??"").includes("int")||Number.isSafeInteger(o.multipleOf??.5),e.isFinite=!0,e.format=o.format??null});function mt(e){return wm(Ho,e)}const hi=M("ZodNumberFormat",(e,r)=>{lf.init(e,r),Ho.init(e,r)});function Iu(e){return km(hi,e)}function l_(e){return xm(hi,e)}function d_(e){return Sm(hi,e)}function f_(e){return Im(hi,e)}function m_(e){return zm(hi,e)}const Xo=M("ZodBoolean",(e,r)=>{bs.init(e,r),et.init(e,r)});function rt(e){return Nm(Xo,e)}const ea=M("ZodBigInt",(e,r)=>{ys.init(e,r),et.init(e,r),e.gte=(s,t)=>e.check(yr(s,t)),e.min=(s,t)=>e.check(yr(s,t)),e.gt=(s,t)=>e.check(qn(s,t)),e.gte=(s,t)=>e.check(yr(s,t)),e.min=(s,t)=>e.check(yr(s,t)),e.lt=(s,t)=>e.check(Rn(s,t)),e.lte=(s,t)=>e.check(Zr(s,t)),e.max=(s,t)=>e.check(Zr(s,t)),e.positive=s=>e.check(qn(BigInt(0),s)),e.negative=s=>e.check(Rn(BigInt(0),s)),e.nonpositive=s=>e.check(Zr(BigInt(0),s)),e.nonnegative=s=>e.check(yr(BigInt(0),s)),e.multipleOf=(s,t)=>e.check(Ki(s,t));const o=e._zod.bag;e.minValue=o.minimum??null,e.maxValue=o.maximum??null,e.format=o.format??null});function p_(e){return Tm(ea,e)}const zu=M("ZodBigIntFormat",(e,r)=>{df.init(e,r),ea.init(e,r)});function g_(e){return Em(zu,e)}function h_(e){return Pm(zu,e)}const wp=M("ZodSymbol",(e,r)=>{ff.init(e,r),et.init(e,r)});function v_(e){return Cm(wp,e)}const _p=M("ZodUndefined",(e,r)=>{mf.init(e,r),et.init(e,r)});function b_(e){return Um(_p,e)}const kp=M("ZodNull",(e,r)=>{pf.init(e,r),et.init(e,r)});function xp(e){return Mm(kp,e)}const Sp=M("ZodAny",(e,r)=>{gf.init(e,r),et.init(e,r)});function ta(){return Am(Sp)}const Ip=M("ZodUnknown",(e,r)=>{hf.init(e,r),et.init(e,r)});function Wn(){return Dm(Ip)}const zp=M("ZodNever",(e,r)=>{vf.init(e,r),et.init(e,r)});function Nu(e){return Lm(zp,e)}const Np=M("ZodVoid",(e,r)=>{bf.init(e,r),et.init(e,r)});function ju(e){return Zm(Np,e)}const Tu=M("ZodDate",(e,r)=>{yf.init(e,r),et.init(e,r),e.min=(s,t)=>e.check(yr(s,t)),e.max=(s,t)=>e.check(Zr(s,t));const o=e._zod.bag;e.minDate=o.minimum?new Date(o.minimum):null,e.maxDate=o.maximum?new Date(o.maximum):null});function y_(e){return Rm(Tu,e)}const jp=M("ZodArray",(e,r)=>{wf.init(e,r),et.init(e,r),e.element=r.element,e.min=(o,s)=>e.check(gi(o,s)),e.nonempty=o=>e.check(gi(1,o)),e.max=(o,s)=>e.check(Go(o,s)),e.length=(o,s)=>e.check(Jo(o,s)),e.unwrap=()=>e.element});function $t(e,r){return Bm(jp,e,r)}function $_(e){const r=e._zod.def.shape;return At(Object.keys(r))}const ra=M("ZodObject",(e,r)=>{Sf.init(e,r),et.init(e,r),ot(e,"shape",()=>r.shape),e.keyof=()=>At(Object.keys(e._zod.def.shape)),e.catchall=o=>e.clone({...e._zod.def,catchall:o}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Wn()}),e.loose=()=>e.clone({...e._zod.def,catchall:Wn()}),e.strict=()=>e.clone({...e._zod.def,catchall:Nu()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=o=>_l(e,o),e.safeExtend=o=>kl(e,o),e.merge=o=>xl(e,o),e.pick=o=>$l(e,o),e.omit=o=>wl(e,o),e.partial=(...o)=>Sl(Cu,e,o[0]),e.required=(...o)=>Il(Uu,e,o[0])});function we(e,r){const o={type:"object",get shape(){return Ar(this,"shape",e?Co(e):{}),this.shape},...se(r)};return new ra(o)}function w_(e,r){return new ra({type:"object",get shape(){return Ar(this,"shape",Co(e)),this.shape},catchall:Nu(),...se(r)})}function __(e,r){return new ra({type:"object",get shape(){return Ar(this,"shape",Co(e)),this.shape},catchall:Wn(),...se(r)})}const Ou=M("ZodUnion",(e,r)=>{$s.init(e,r),et.init(e,r),e.options=r.options});function nn(e,r){return new Ou({type:"union",options:e,...se(r)})}const Tp=M("ZodDiscriminatedUnion",(e,r)=>{Ou.init(e,r),zf.init(e,r)});function to(e,r,o){return new Tp({type:"union",options:r,discriminator:e,...se(o)})}const Op=M("ZodIntersection",(e,r)=>{Nf.init(e,r),et.init(e,r)});function Ep(e,r){return new Op({type:"intersection",left:e,right:r})}const Pp=M("ZodTuple",(e,r)=>{_s.init(e,r),et.init(e,r),e.rest=o=>e.clone({...e._zod.def,rest:o})});function Cp(e,r,o){const s=r instanceof Ve,t=s?o:r,a=s?r:null;return new Pp({type:"tuple",items:e,rest:a,...se(t)})}const Eu=M("ZodRecord",(e,r)=>{Tf.init(e,r),et.init(e,r),e.keyType=r.keyType,e.valueType=r.valueType});function Bt(e,r,o){return new Eu({type:"record",keyType:e,valueType:r,...se(o)})}function k_(e,r,o){const s=Nr(e);return s._zod.values=void 0,new Eu({type:"record",keyType:s,valueType:r,...se(o)})}const Up=M("ZodMap",(e,r)=>{Of.init(e,r),et.init(e,r),e.keyType=r.keyType,e.valueType=r.valueType});function x_(e,r,o){return new Up({type:"map",keyType:e,valueType:r,...se(o)})}const Mp=M("ZodSet",(e,r)=>{Pf.init(e,r),et.init(e,r),e.min=(...o)=>e.check(Hi(...o)),e.nonempty=o=>e.check(Hi(1,o)),e.max=(...o)=>e.check(Qo(...o)),e.size=(...o)=>e.check(Qs(...o))});function S_(e,r){return new Mp({type:"set",valueType:e,...se(r)})}const ro=M("ZodEnum",(e,r)=>{Uf.init(e,r),et.init(e,r),e.enum=r.entries,e.options=Object.values(r.entries);const o=new Set(Object.keys(r.entries));e.extract=(s,t)=>{const a={};for(const f of s)if(o.has(f))a[f]=r.entries[f];else throw new Error(`Key ${f} not found in enum`);return new ro({...r,checks:[],...se(t),entries:a})},e.exclude=(s,t)=>{const a={...r.entries};for(const f of s)if(o.has(f))delete a[f];else throw new Error(`Key ${f} not found in enum`);return new ro({...r,checks:[],...se(t),entries:a})}});function At(e,r){const o=Array.isArray(e)?Object.fromEntries(e.map(s=>[s,s])):e;return new ro({type:"enum",entries:o,...se(r)})}function I_(e,r){return new ro({type:"enum",entries:e,...se(r)})}const Ap=M("ZodLiteral",(e,r)=>{Mf.init(e,r),et.init(e,r),e.values=new Set(r.values),Object.defineProperty(e,"value",{get(){if(r.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return r.values[0]}})});function xt(e,r){return new Ap({type:"literal",values:Array.isArray(e)?e:[e],...se(r)})}const Dp=M("ZodFile",(e,r)=>{Af.init(e,r),et.init(e,r),e.min=(o,s)=>e.check(Hi(o,s)),e.max=(o,s)=>e.check(Qo(o,s)),e.mime=(o,s)=>e.check(Xs(Array.isArray(o)?o:[o],s))});function z_(e){return Ym(Dp,e)}const Lp=M("ZodTransform",(e,r)=>{Df.init(e,r),et.init(e,r),e._zod.parse=(o,s)=>{if(s.direction==="backward")throw new To(e.constructor.name);o.addIssue=a=>{if(typeof a=="string")o.issues.push(mi(a,o.value,r));else{const f=a;f.fatal&&(f.continue=!1),f.code??(f.code="custom"),f.input??(f.input=o.value),f.inst??(f.inst=e),o.issues.push(mi(f))}};const t=r.transform(o.value,o);return t instanceof Promise?t.then(a=>(o.value=a,o)):(o.value=t,o)}});function Pu(e){return new Lp({type:"transform",transform:e})}const Cu=M("ZodOptional",(e,r)=>{Zf.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType});function na(e){return new Cu({type:"optional",innerType:e})}const Zp=M("ZodNullable",(e,r)=>{Rf.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType});function ia(e){return new Zp({type:"nullable",innerType:e})}function N_(e){return na(ia(e))}const Rp=M("ZodDefault",(e,r)=>{qf.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function qp(e,r){return new Rp({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():Uo(r)}})}const Fp=M("ZodPrefault",(e,r)=>{Wf.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Wp(e,r){return new Fp({type:"prefault",innerType:e,get defaultValue(){return typeof r=="function"?r():Uo(r)}})}const Uu=M("ZodNonOptional",(e,r)=>{Vf.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Vp(e,r){return new Uu({type:"nonoptional",innerType:e,...se(r)})}const Qp=M("ZodSuccess",(e,r)=>{Gf.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType});function j_(e){return new Qp({type:"success",innerType:e})}const Gp=M("ZodCatch",(e,r)=>{Jf.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Jp(e,r){return new Gp({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}const Bp=M("ZodNaN",(e,r)=>{Bf.init(e,r),et.init(e,r)});function T_(e){return Fm(Bp,e)}const Mu=M("ZodPipe",(e,r)=>{Yf.init(e,r),et.init(e,r),e.in=r.in,e.out=r.out});function oa(e,r){return new Mu({type:"pipe",in:e,out:r})}const Au=M("ZodCodec",(e,r)=>{Mu.init(e,r),ks.init(e,r)});function O_(e,r,o){return new Au({type:"pipe",in:e,out:r,transform:o.decode,reverseTransform:o.encode})}const Yp=M("ZodReadonly",(e,r)=>{Kf.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Kp(e){return new Yp({type:"readonly",innerType:e})}const Hp=M("ZodTemplateLiteral",(e,r)=>{Xf.init(e,r),et.init(e,r)});function E_(e,r){return new Hp({type:"template_literal",parts:e,...se(r)})}const Xp=M("ZodLazy",(e,r)=>{rm.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.getter()});function Du(e){return new Xp({type:"lazy",getter:e})}const eg=M("ZodPromise",(e,r)=>{tm.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType});function P_(e){return new eg({type:"promise",innerType:e})}const tg=M("ZodFunction",(e,r)=>{em.init(e,r),et.init(e,r)});function aa(e){return new tg({type:"function",input:Array.isArray(e?.input)?Cp(e?.input):e?.input??$t(Wn()),output:e?.output??Wn()})}const sa=M("ZodCustom",(e,r)=>{nm.init(e,r),et.init(e,r)});function C_(e){const r=new Mt({check:"custom"});return r._zod.check=e,r}function U_(e,r){return Km(sa,e??(()=>!0),r)}function rg(e,r={}){return Hm(sa,e,r)}function ng(e){return Xm(e)}function M_(e,r={error:`Input not instance of ${e.name}`}){const o=new sa({type:"custom",check:"custom",fn:s=>s instanceof e,abort:!0,...se(r)});return o._zod.bag.Class=e,o}const A_=(...e)=>tp({Codec:Au,Boolean:Xo,String:Bo},...e);function D_(e){const r=Du(()=>nn([P(e),mt(),rt(),xp(),$t(r),Bt(P(),r)]));return r}function L_(e,r){return oa(Pu(e),r)}const Z_={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function R_(e){cr({customError:e})}function q_(){return cr().customError}var Lu;Lu||(Lu={});function F_(e){return gm(Bo,e)}function W_(e){return _m(Ho,e)}function V_(e){return jm(Xo,e)}function Q_(e){return Om(ea,e)}function G_(e){return qm(Tu,e)}const J_=Object.freeze(Object.defineProperty({__proto__:null,bigint:Q_,boolean:V_,date:G_,number:W_,string:F_},Symbol.toStringTag,{value:"Module"}));cr(am());const B_=Object.freeze(Object.defineProperty({__proto__:null,$brand:fl,$input:mm,$output:fm,NEVER:dl,TimePrecision:hm,ZodAny:Sp,ZodArray:jp,ZodBase64:_u,ZodBase64URL:ku,ZodBigInt:ea,ZodBigIntFormat:zu,ZodBoolean:Xo,ZodCIDRv4:$u,ZodCIDRv6:wu,ZodCUID:mu,ZodCUID2:pu,ZodCatch:Gp,ZodCodec:Au,ZodCustom:sa,ZodCustomStringFormat:eo,ZodDate:Tu,ZodDefault:Rp,ZodDiscriminatedUnion:Tp,ZodE164:xu,ZodEmail:lu,ZodEmoji:du,ZodEnum:ro,ZodError:Aw,ZodFile:Dp,get ZodFirstPartyTypeKind(){return Lu},ZodFunction:tg,ZodGUID:Yo,ZodIPv4:bu,ZodIPv6:yu,ZodISODate:au,ZodISODateTime:ou,ZodISODuration:uu,ZodISOTime:su,ZodIntersection:Op,ZodIssueCode:Z_,ZodJWT:Su,ZodKSUID:vu,ZodLazy:Xp,ZodLiteral:Ap,ZodMap:Up,ZodNaN:Bp,ZodNanoID:fu,ZodNever:zp,ZodNonOptional:Uu,ZodNull:kp,ZodNullable:Zp,ZodNumber:Ho,ZodNumberFormat:hi,ZodObject:ra,ZodOptional:Cu,ZodPipe:Mu,ZodPrefault:Fp,ZodPromise:eg,ZodReadonly:Yp,ZodRealError:$r,ZodRecord:Eu,ZodSet:Mp,ZodString:Bo,ZodStringFormat:jt,ZodSuccess:Qp,ZodSymbol:wp,ZodTemplateLiteral:Hp,ZodTransform:Lp,ZodTuple:Pp,ZodType:et,ZodULID:gu,ZodURL:Ko,ZodUUID:rn,ZodUndefined:_p,ZodUnion:Ou,ZodUnknown:Ip,ZodVoid:Np,ZodXID:hu,_ZodString:cu,_default:qp,_function:aa,any:ta,array:$t,base64:r_,base64url:n_,bigint:p_,boolean:rt,catch:Jp,check:C_,cidrv4:e_,cidrv6:t_,clone:Nr,codec:O_,coerce:J_,config:cr,core:Uw,cuid:Gw,cuid2:Jw,custom:U_,date:y_,decode:mp,decodeAsync:gp,discriminatedUnion:to,e164:i_,email:Dw,emoji:Vw,encode:fp,encodeAsync:pp,endsWith:Hs,enum:At,file:z_,flattenError:Xa,float32:l_,float64:d_,formatError:es,function:aa,getErrorMap:q_,globalRegistry:Zn,gt:qn,gte:yr,guid:Lw,hash:c_,hex:u_,hostname:s_,httpUrl:Ww,includes:Ys,instanceof:M_,int:Iu,int32:f_,int64:g_,intersection:Ep,ipv4:Hw,ipv6:Xw,iso:Mw,json:D_,jwt:o_,keyof:$_,ksuid:Kw,lazy:Du,length:Jo,literal:xt,locales:dm,looseObject:__,lowercase:Js,lt:Rn,lte:Zr,map:x_,maxLength:Go,maxSize:Qo,mime:Xs,minLength:gi,minSize:Hi,multipleOf:Ki,nan:T_,nanoid:Qw,nativeEnum:I_,negative:Vm,never:Nu,nonnegative:Gm,nonoptional:Vp,nonpositive:Qm,normalize:eu,null:xp,nullable:ia,nullish:N_,number:mt,object:we,optional:na,overwrite:Fn,parse:up,parseAsync:cp,partialRecord:k_,pipe:oa,positive:Wm,prefault:Wp,preprocess:L_,prettifyError:Pl,promise:P_,property:Jm,readonly:Kp,record:Bt,refine:rg,regex:Gs,regexes:ms,registry:Ss,safeDecode:vp,safeDecodeAsync:yp,safeEncode:hp,safeEncodeAsync:bp,safeParse:lp,safeParseAsync:dp,set:S_,setErrorMap:R_,size:Qs,startsWith:Ks,strictObject:w_,string:P,stringFormat:a_,stringbool:A_,success:j_,superRefine:ng,symbol:v_,templateLiteral:E_,toJSONSchema:rp,toLowerCase:ru,toUpperCase:nu,transform:Pu,treeifyError:Ol,trim:tu,tuple:Cp,uint32:m_,uint64:h_,ulid:Bw,undefined:b_,union:nn,unknown:Wn,uppercase:Bs,url:Fw,util:jl,uuid:$p,uuidv4:Zw,uuidv6:Rw,uuidv7:qw,void:ju,xid:Yw},Symbol.toStringTag,{value:"Module"}));var Y_=Object.defineProperty,on=(e,r)=>Y_(e,"name",{value:r,configurable:!0}),ig=At(["rating","single_choice","nps","nested_selection","multiple_choice_multiple","short_answer","long_text","annotation"]).describe("Enumeration of all supported question types for form fields"),K_={RATING:"rating",SINGLE_CHOICE:"single_choice",NPS:"nps",NESTED_SELECTION:"nested_selection",MULTIPLE_CHOICE_MULTIPLE:"multiple_choice_multiple",SHORT_ANSWER:"short_answer",LONG_TEXT:"long_text",ANNOTATION:"annotation"},og=At(["required","min","max","minLength","maxLength","pattern","email","url","custom"]).describe("Enumeration of all supported validation rule types"),H_={REQUIRED:"required",MIN:"min",MAX:"max",MIN_LENGTH:"minLength",MAX_LENGTH:"maxLength",PATTERN:"pattern",EMAIL:"email",URL:"url",CUSTOM:"custom"},ag=we({type:og.describe("Type of validation rule to apply"),value:nn([P(),mt(),rt()]).optional().describe("Value for the validation rule (string, number, or boolean)"),message:P().optional().describe("Custom error message when validation fails"),describe:P().max(500).optional().describe("LLM tool call description for this validation rule")}).describe("Schema defining validation rules for question responses"),X_=At(["equals","not_equals","contains","not_contains","greater_than","less_than","is_empty","is_not_empty"]).describe("Enumeration of all supported visibility condition operators"),ek={EQUALS:"equals",NOT_EQUALS:"not_equals",CONTAINS:"contains",NOT_CONTAINS:"not_contains",GREATER_THAN:"greater_than",LESS_THAN:"less_than",IS_EMPTY:"is_empty",IS_NOT_EMPTY:"is_not_empty"},sg=we({field:P().describe("ID of the field to check against"),operator:X_.describe("Comparison operator for the condition"),value:nn([P(),mt(),rt()]).optional().describe("Value to compare against (string, number, or boolean)"),describe:P().max(500).optional().describe("LLM tool call description for this visibility condition")}).describe("Schema defining conditions that control when questions are visible"),ua=we({id:P().describe("Unique identifier for the section"),title:P().min(1).max(200).describe("Display title for the section"),questionIds:$t(P()).min(1).describe("Array of question IDs that belong to this section")}).describe("Schema defining sections that organize questions into logical groups"),ug=At(["D","P","A","S"]),tk={DRAFT:"D",PUBLISHED:"P",ARCHIVED:"A",SUSPENDED:"S"},cg=At(["star","heart","thumbs-up","diamond","emoji","emoji-exp"]),rk={STAR:"star",HEART:"heart",THUMBS_UP:"thumbs_up",DIAMOND:"diamond",EMOJI:"emoji",EMOJI_EXP:"emoji_exp"},lg=At(["small","medium","large"]),nk={SMALL:"small",MEDIUM:"medium",LARGE:"large"},dg=At(["radio","list","chip","dropdown"]),ik={RADIO:"radio",LIST:"list",CHIP:"chip",DROPDOWN:"dropdown"},fg=At(["checkbox","list","chip"]),ok={CHECKBOX:"checkbox",LIST:"list",CHIP:"chip"},mg=At(["randomize","flip","rotate","ascending","none"]),ak={RANDOMIZE:"randomize",FLIP:"flip",ROTATE:"rotate",ASCENDING:"ascending",NONE:"none"},an=we({id:P().describe("Unique identifier for the question"),type:ig.describe("The type of question (rating, single_choice, etc.)"),title:P().min(1).max(200).describe("The main title/question text displayed to users"),description:P().max(1e3).optional().describe("Optional detailed description or help text"),describe:P().max(2e3).optional().describe("LLM tool call description for better AI understanding and context"),required:rt().default(!1).describe("Whether this question must be answered"),errorMessage:P().max(500).optional().describe("Custom error message when validation fails"),validations:$t(ag).optional().default([]).describe("Array of validation rules to apply"),visibility:$t(sg).optional().default([]).describe("Conditions that control when this question is shown"),isFixed:rt().describe("Whether this question position is fixed or can be reordered"),sectionId:P().optional().describe("ID of the section this question belongs to"),status:ug.describe("Current status of the question (Draft, Published, etc.)")}).describe("Base schema for all question types with common properties"),pg=an.extend({type:xt("rating").describe("Must be exactly 'rating'"),showLabels:rt().optional().describe("Whether to show min/max labels"),minLabel:P().max(100).optional().describe("Label for the minimum rating value"),maxLabel:P().max(100).optional().describe("Label for the maximum rating value"),displayStyle:cg.optional().describe("Visual style for rating display"),numberOfRatings:mt().int().min(1).max(10).describe("Number of rating options (1-10)"),representationSize:lg.optional().describe("Size of rating visual elements"),color:P().regex(/^#[0-9A-F]{6}$/i,"Must be a valid hex color").optional().describe("Hex color for rating elements")}).describe("Schema for rating questions with customizable display options"),gg=an.extend({type:xt("annotation").describe("Must be exactly 'annotation'"),annotationText:P().max(1e3).optional().describe("Text to display when annotation is provided"),noAnnotationText:P().max(500).optional().describe("Text to display when no annotation is provided")}).describe("Schema for annotation questions that provide additional context or instructions"),Zu=we({id:P().describe("Unique identifier for this option (system time milliseconds)"),value:P().min(1).max(100).describe("The internal value used for this option"),label:P().min(1).max(200).describe("The display text shown to users for this option"),describe:P().max(500).optional().describe("LLM tool call description providing context about this option"),imageUrl:P().url().optional().describe("Optional image URL to display with this option")}).describe("Schema for individual options in choice-based questions"),Ru=Du(()=>we({id:P().describe("Unique identifier for this nested option (system time milliseconds)"),value:P().min(1).max(100).describe("The internal value used for this nested option"),label:P().min(1).max(200).describe("The display text shown for this nested option"),describe:P().max(500).optional().describe("LLM tool call description for this nested option context"),imageUrl:P().url().optional().describe("Optional image URL for this nested option"),hint:P().max(500).optional().describe("Optional hint text to help users understand this nested option"),children:$t(Ru).optional().default([]).describe("Array of child options for hierarchical structure")}).describe("Schema for nested options with hierarchical structure support")),hg=an.extend({type:xt("single_choice").describe("Must be exactly 'single_choice'"),displayStyle:dg.optional().describe("Visual style for displaying options"),randomizeOptions:rt().optional().default(!1).describe("Whether to randomize the order of options"),options:$t(Zu).min(1).max(50).describe("Array of options for user selection (1-50 options)")}).describe("Schema for single-choice multiple selection questions"),vg=an.extend({type:xt("multiple_choice_multiple").describe("Must be exactly 'multiple_choice_multiple'"),displayStyle:fg.optional().describe("Visual style for displaying multiple options"),minSelections:mt().int().min(0).optional().describe("Minimum number of options that must be selected"),maxSelections:mt().int().min(1).optional().describe("Maximum number of options that can be selected"),randomizeOptions:rt().optional().default(!1).describe("Whether to randomize the order of options"),options:$t(Zu).min(1).max(50).describe("Array of options for user selection (1-50 options)")}).refine(e=>e.minSelections!==void 0&&e.maxSelections!==void 0?e.minSelections<=e.maxSelections:!0,{message:"minSelections cannot be greater than maxSelections",path:["minSelections"]}).describe("Schema for multiple-choice questions allowing multiple selections"),bg=an.extend({type:xt("nps").describe("Must be exactly 'nps'"),min:xt(0).describe("NPS always starts at 0"),max:xt(10).describe("NPS always ends at 10"),minLabel:P().max(100).optional().describe("Label for the minimum NPS value (0)"),maxLabel:P().max(100).optional().describe("Label for the maximum NPS value (10)"),scaleLabels:Bt(P().regex(/^\d+$/),P().max(50)).optional().describe("Custom labels for specific NPS values (0-10)"),prepopulatedValue:mt().int().min(0).max(10).optional().describe("Default value to pre-select (0-10)")}).refine(e=>e.scaleLabels?Object.keys(e.scaleLabels).every(o=>{const s=Number(o);return!isNaN(s)&&s>=0&&s<=10}):!0,{message:"scaleLabels keys must be between 0 and 10 (inclusive)",path:["scaleLabels"]}).describe("Schema for Net Promoter Score questions with 0-10 scale"),yg=an.extend({type:xt("short_answer").describe("Must be exactly 'short_answer'"),maxCharacters:mt().int().min(1).max(1e4).optional().describe("Maximum number of characters allowed"),minCharacters:mt().int().min(0).optional().describe("Minimum number of characters required"),placeholder:P().max(200).optional().describe("Placeholder text shown in the input field"),enableRegexValidation:rt().optional().default(!1).describe("Whether to enable regex pattern validation"),regexPattern:P().optional().describe("Regular expression pattern for validation"),enableEnhanceWithAi:rt().optional().default(!1).describe("Whether to enable AI enhancement features"),promptTemplate:P().max(2e3).optional().describe("Template for AI enhancement prompts"),cooldownSeconds:mt().int().min(0).max(3600).optional().describe("Cooldown period between AI enhancements (0-3600 seconds)"),maxEnhancements:mt().int().min(1).max(10).optional().describe("Maximum number of AI enhancements allowed"),maxTokenAllowed:mt().int().min(1).max(1e4).optional().describe("Maximum tokens allowed for AI processing"),minCharactersToEnhance:mt().int().min(1).optional().describe("Minimum characters needed to trigger AI enhancement")}).refine(e=>e.minCharacters!==void 0&&e.maxCharacters!==void 0?e.minCharacters<=e.maxCharacters:!0,{message:"minCharacters cannot be greater than maxCharacters",path:["minCharacters"]}).refine(e=>!(e.enableRegexValidation&&!e.regexPattern),{message:"regexPattern is required when enableRegexValidation is true",path:["regexPattern"]}).refine(e=>!(e.enableEnhanceWithAi&&!e.promptTemplate),{message:"promptTemplate is required when enableEnhanceWithAi is true",path:["promptTemplate"]}).describe("Schema for short answer questions with optional AI enhancement"),$g=an.extend({type:xt("long_text").describe("Must be exactly 'long_text'"),maxCharacters:mt().int().min(1).max(5e4).optional().describe("Maximum number of characters allowed (higher limit for long text)"),minCharacters:mt().int().min(0).optional().describe("Minimum number of characters required"),rows:mt().int().min(1).max(20).optional().describe("Number of textarea rows to display (1-20)"),placeholder:P().max(500).optional().describe("Placeholder text for the textarea (longer for long text)"),enableEnhanceWithAi:rt().optional().default(!1).describe("Whether to enable AI enhancement features"),promptTemplate:P().max(2e3).optional().describe("Template for AI enhancement prompts"),cooldownSeconds:mt().int().min(0).max(3600).optional().describe("Cooldown period between AI enhancements (0-3600 seconds)"),maxEnhancements:mt().int().min(1).max(10).optional().describe("Maximum number of AI enhancements allowed"),maxTokenAllowed:mt().int().min(1).max(25e3).optional().describe("Maximum tokens allowed for AI processing (higher for long text)"),minCharactersToEnhance:mt().int().min(1).optional().describe("Minimum characters needed to trigger AI enhancement")}).refine(e=>e.minCharacters!==void 0&&e.maxCharacters!==void 0?e.minCharacters<=e.maxCharacters:!0,{message:"minCharacters cannot be greater than maxCharacters",path:["minCharacters"]}).refine(e=>!(e.enableEnhanceWithAi&&!e.promptTemplate),{message:"promptTemplate is required when enableEnhanceWithAi is true",path:["promptTemplate"]}).describe("Schema for long answer questions with rich text support and AI enhancement"),wg=an.extend({type:xt("nested_selection").describe("Must be exactly 'nested_selection'"),placeholder:P().max(200).optional().describe("Placeholder text for the nested dropdown"),options:$t(Ru).min(1).max(100).describe("Array of nested options for hierarchical selection (1-100 options)"),displayStyle:xt("list").describe("Fixed display style for nested dropdowns"),choiceOrderOption:mg.optional().default("none").describe("How to order the nested choices"),preserveLastChoices:mt().int().min(0).max(10).optional().describe("Number of choice levels to preserve (0-10)"),prepopulatedValue:P().max(1e3).optional().describe("Default value to pre-populate"),allowOther:rt().optional().default(!1).describe('Whether to allow custom "other" options'),otherColumnName:P().max(100).optional().describe('Column name for storing custom "other" values'),maxDepth:mt().int().min(1).max(10).optional().describe("Maximum nesting depth allowed (1-10)"),cascadeLabels:rt().optional().default(!1).describe("Whether to cascade labels from parent options")}).refine(e=>!(e.allowOther&&!e.otherColumnName),{message:"otherColumnName is required when allowOther is true",path:["otherColumnName"]}).describe("Schema for nested dropdown questions with hierarchical option structure"),ca=to("type",[pg,gg,hg,vg,bg,yg,$g,wg]),_g=we({markerNo:P(),timeline:P(),comment:P()}),kg=we({fileType:P(),fileName:P(),markers:$t(_g)}),xg=we({nps:mt().optional().describe("Net Promoter Score value (e.g., 0-10)"),nestedSelection:$t(P()).optional().describe("Array of selected nested option IDs"),longText:P().optional().describe("Long text answer, e.g., paragraph or essay"),shortAnswer:P().optional().describe("Short text answer, e.g., single sentence or word"),singleChoice:P().optional().describe("single selected option ID (for single choice questions)"),rating:mt().optional().describe("Star rating value (e.g., 1-5)"),multipleChoiceMultiple:$t(P()).optional().describe("Array of selected option IDs for multiple choice questions"),annotation:kg.optional().describe("Annotation object containing file and marker details"),others:P().optional().describe("For multiple choice questions and single choice questions, this is the value of the other option")}).describe("Flexible answer item supporting various question types and custom fields"),Sg=xg,Ig=At(["R","S"]).describe("Enumeration of feedback types: R=Recurring, O=One-time"),sk={RECURRING:"R",ONE_TIME:"S"},zg=At(["Y","N"]).describe("Yes/No enumeration using Y/N values"),uk={YES:"Y",NO:"N"},Ng=At(["minutes","hours","days","weeks","months","years"]).describe("Time units for recurring feedback schedules"),ck={MINUTES:"minutes",HOURS:"hours",DAYS:"days",WEEKS:"weeks",MONTHS:"months",YEARS:"years"},jg=we({surveyType:Ig.describe("Type of feedback: R for recurring, O for one-time"),showOnce:zg.describe("Whether the feedback should be shown only once per user"),stopWhenResponsesCount:P().regex(/^\d+$/,"Must be a valid number string").describe("Stop feedback when this number of responses is reached (as string)"),recurringValue:P().regex(/^\d+$/,"Must be a valid number string").describe("Value for recurring schedule (e.g., every 15 days)"),recurringUnit:Ng.describe("Time unit for recurring schedule"),startDate:P().regex(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(\+|\-)\d{2}:\d{2}$/,"Must be a valid ISO date string with timezone").describe("Start date and time for the feedback in ISO format"),stopDate:P().regex(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(\+|\-)\d{2}:\d{2}$/,"Must be a valid ISO date string with timezone").describe("Stop date and time for the feedback in ISO format")}).refine(e=>!(e.surveyType==="S"&&e.showOnce==="N"),{message:"One-time feedback must have showOnce set to 'Y'",path:["showOnce"]}).refine(e=>e.surveyType==="R"?parseInt(e.recurringValue)>0:!0,{message:"Recurring feedback must have a positive recurring value",path:["recurringValue"]}).refine(e=>{const r=new Date(e.startDate);return new Date(e.stopDate)>r},{message:"Stop date must be after start date",path:["stopDate"]}).describe("Schema defining frequency and scheduling properties for feedback"),Tg=we({isShareable:rt().describe("Whether the feedback results can be shared externally"),isEmailShareable:rt().describe("Whether the feedback can be shared via email")}).describe("Schema defining external publishing and sharing properties for feedback"),Og=At(["P","D","A","S"]).describe("Publication status: P=Published, D=Draft, A=Archived, S=Stopped"),lk={PUBLISHED:"P",DRAFT:"D",ARCHIVED:"A",STOPPED:"S"},Eg=we({formTitle:P().describe("Title of the feedback form"),formDescription:P().describe("Description of the feedback form"),isPublished:Og.describe("Publication status of the feedback form")}).describe("Schema defining feedback configuration properties"),tt=P().min(1).describe("Translated text content"),Pg=we({type:xt("rating").describe("Question type identifier"),title:tt.describe("Question title translation"),description:tt.optional().describe("Question description translation"),errorMessage:tt.optional().describe("Error message translation"),minLabel:tt.optional().describe("Minimum rating label translation"),maxLabel:tt.optional().describe("Maximum rating label translation")}).describe("Translation schema for rating questions"),Cg=we({type:xt("single_choice").describe("Question type identifier"),title:tt.describe("Question title translation"),description:tt.optional().describe("Question description translation"),errorMessage:tt.optional().describe("Error message translation"),placeholder:tt.optional().describe("Input placeholder translation")}).catchall(tt).refine(e=>Object.keys(e).filter(o=>!["type","title","description","errorMessage","placeholder"].includes(o)).every(o=>/^option\..+\.(label|value)$/.test(o)),{message:"Additional keys must follow the pattern 'option.{id}.{label|value}'"}).describe("Translation schema for single choice questions"),Ug=we({type:xt("multiple_choice_multiple").describe("Question type identifier"),title:tt.describe("Question title translation"),description:tt.optional().describe("Question description translation"),errorMessage:tt.optional().describe("Error message translation"),placeholder:tt.optional().describe("Input placeholder translation")}).catchall(tt).refine(e=>Object.keys(e).filter(o=>!["type","title","description","errorMessage","placeholder"].includes(o)).every(o=>/^option\..+\.(label|value)$/.test(o)),{message:"Additional keys must follow the pattern 'option.{id}.{label|value}'"}).describe("Translation schema for multiple choice questions"),Mg=we({type:xt("nps").describe("Question type identifier"),title:tt.describe("Question title translation"),description:tt.optional().describe("Question description translation"),errorMessage:tt.optional().describe("Error message translation"),minLabel:tt.optional().describe("Minimum NPS label (0) translation"),maxLabel:tt.optional().describe("Maximum NPS label (10) translation")}).catchall(tt).refine(e=>Object.keys(e).filter(o=>!["type","title","description","errorMessage","minLabel","maxLabel"].includes(o)).every(o=>/^scaleLabel\.\d+$/.test(o)),{message:"Additional keys must follow the pattern 'scaleLabel.{number}'"}).describe("Translation schema for NPS questions"),Ag=we({type:xt("short_answer").describe("Question type identifier"),title:tt.describe("Question title translation"),description:tt.optional().describe("Question description translation"),errorMessage:tt.optional().describe("Error message translation"),placeholder:tt.optional().describe("Input placeholder translation")}).describe("Translation schema for short answer questions"),Dg=we({type:xt("long_text").describe("Question type identifier"),title:tt.describe("Question title translation"),description:tt.optional().describe("Question description translation"),errorMessage:tt.optional().describe("Error message translation"),placeholder:tt.optional().describe("Textarea placeholder translation")}).describe("Translation schema for long answer questions"),Lg=we({type:xt("nested_selection").describe("Question type identifier"),title:tt.describe("Question title translation"),description:tt.optional().describe("Question description translation"),errorMessage:tt.optional().describe("Error message translation"),placeholder:tt.optional().describe("Dropdown placeholder translation")}).catchall(tt).refine(e=>Object.keys(e).filter(o=>!["type","title","description","errorMessage","placeholder"].includes(o)).every(o=>/^nestedOption\..+\.(label|hint)$/.test(o)),{message:"Additional keys must follow the pattern 'nestedOption.{id}.{label|hint}'"}).describe("Translation schema for nested selection questions"),Zg=we({type:xt("annotation").describe("Question type identifier"),title:tt.describe("Question title translation"),description:tt.optional().describe("Question description translation"),errorMessage:tt.optional().describe("Error message translation"),annotationText:tt.optional().describe("Annotation display text translation"),noAnnotationText:tt.optional().describe("No annotation display text translation")}).describe("Translation schema for annotation questions"),Rg=nn([Pg,Cg,Ug,Mg,Ag,Dg,Lg,Zg]).describe("Union of all question type translation schemas"),dk=P().min(2).max(10).describe("Language code (e.g., 'en', 'es', 'hi')"),fk=Bt(dk,Rg).describe("Question translations keyed by language code"),qg=Bt(P().uuid(),fk).describe("Question-centric translations keyed by question ID, then by language code"),qu=qg.describe("Question-centric translations at root level"),Fg=class{constructor(r,o="en"){this.translations=r,this.defaultLanguage=o}getQuestionTranslations(r,o){const s=this.translations[r];if(!s)return null;let t=s[o];return t||(t=s[this.defaultLanguage]),t||null}getTranslationText(r,o,s){const t=this.getQuestionTranslations(r,o);if(!t)return null;if(s in t){const a=t[s];return typeof a=="string"?a:null}return null}getQuestionLanguages(r){const o=this.translations[r];return o?Object.keys(o):[]}getAvailableLanguages(){const r=new Set;return Object.values(this.translations).forEach(o=>{Object.keys(o).forEach(s=>{r.add(s)})}),Array.from(r)}isLanguageSupportedForQuestion(r,o){const s=this.translations[r];return s?o in s:!1}isLanguageSupported(r){return this.getAvailableLanguages().includes(r)}getDefaultLanguage(){return this.defaultLanguage}getQuestionIds(){return Object.keys(this.translations)}getQuestionType(r,o){const s=o||this.defaultLanguage;return this.getQuestionTranslations(r,s)?.type||null}};on(Fg,"TranslationProvider");var Wg=Fg;function Vg(e,r="en"){return new Wg(e,r)}on(Vg,"createTranslationProvider");var Qg=At(["fade","manual"]).describe("How the end screen should be dismissed (fade out or manual dismissal)"),mk={FADE:"fade",MANUAL:"manual"},Fu=we({title:P().min(1).max(200).describe("The main title displayed on the welcome screen"),description:P().min(1).max(1e3).describe("Description text shown on the welcome screen"),buttonLabel:P().min(1).max(50).describe("Text displayed on the welcome screen button")}).describe("Schema for welcome screen configuration fields"),Wu=we({title:P().min(1).max(200).describe("The main title displayed on the end screen"),message:P().min(1).max(1e3).describe("Message text shown on the end screen"),buttonLabel:P().min(1).max(50).describe("Text displayed on the end screen button"),dismissBehavior:Qg.describe("How the end screen should be dismissed (fade out or manual dismissal)"),fadeDuration:mt().int().min(0).max(1e4).describe("Duration in milliseconds for fade dismissal (0-10000)")}).describe("Schema for end screen configuration fields"),Vu=we({title:P().min(1).max(200).describe("Translated title text for welcome screen"),description:P().min(1).max(1e3).describe("Translated description text for welcome screen"),buttonLabel:P().min(1).max(50).describe("Translated text for the welcome button label")}).describe("Schema for welcome screen translation fields"),Qu=we({buttonLabel:P().min(1).max(50).describe("Translated text for the end button label"),title:P().min(1).max(200).describe("Translated title text for end screen"),message:P().min(1).max(1e3).describe("Translated message text for end screen")}).describe("Schema for end screen translation fields"),Gu=we({pagination:rt().describe("Whether to show pagination for multi-page forms"),questionNumber:rt().describe("Whether to display question numbers"),pageTitle:rt().describe("Whether to show page titles in multi-page forms"),blockerFeedback:rt().describe("Whether to show blocker feedback for validation errors"),submitButtonLabel:P().min(1).max(50).describe("Text for the submit button"),previousButtonLabel:P().min(1).max(50).describe("Text for the previous button in pagination"),nextButtonLabel:P().min(1).max(50).describe("Text for the next button in pagination"),aiEnhancementSuccessMessage:P().min(1).max(100).describe("Message shown when AI enhancement is successful (max 100 characters)"),aiEnhancementCooldownErrorMessage:P().min(1).max(100).describe("Message shown when AI enhancement is on cooldown (max 100 characters)"),aiEnhancementMaxReachedErrorMessage:P().min(1).max(100).describe("Message shown when maximum AI enhancements reached (max 100 characters)")}).describe("Schema for other form configuration fields"),Ju=we({value:P().min(1).max(10).describe("Language code (e.g., 'en', 'es', 'fr')"),label:P().min(1).max(50).describe("Display name for the language (e.g., 'English', 'Spanish', 'French')"),isFixed:rt().default(!1).describe("Whether this language is fixed and cannot be deleted by users")}).describe("Schema for individual language field with value, label, and fixed status"),la=$t(Ju).describe("Schema for array of available languages"),Bu=we({submitButtonLabel:P().min(1).max(50).describe("Translated text for the submit button"),previousButtonLabel:P().min(1).max(50).describe("Translated text for the previous button in pagination"),nextButtonLabel:P().min(1).max(50).describe("Translated text for the next button in pagination"),aiEnhancementSuccessMessage:P().min(1).max(100).describe("Translated message shown when AI enhancement is successful (max 100 characters)"),aiEnhancementCooldownErrorMessage:P().min(1).max(100).describe("Translated message shown when AI enhancement is on cooldown (max 100 characters)"),aiEnhancementMaxReachedErrorMessage:P().min(1).max(100).describe("Translated message shown when maximum AI enhancements reached (max 100 characters)")}).describe("Schema for other form configuration field translations"),Yu=At(["top-left","top-center","top-right","middle-left","middle-center","middle-right","bottom-left","bottom-center","bottom-right"]).describe("Available positions for widget placement"),pk={TOP_LEFT:"top-left",TOP_CENTER:"top-center",TOP_RIGHT:"top-right",MIDDLE_LEFT:"middle-left",MIDDLE_CENTER:"middle-center",MIDDLE_RIGHT:"middle-right",BOTTOM_LEFT:"bottom-left",BOTTOM_CENTER:"bottom-center",BOTTOM_RIGHT:"bottom-right"},gk=At(["light","dark"]).describe("Available theme modes for the widget"),hk={LIGHT:"light",DARK:"dark"},Gg=we({darkOverlay:rt().describe("Whether to show a dark overlay behind the widget"),closeButton:rt().describe("Whether to display a close button on the widget"),progressBar:rt().describe("Whether to show a progress bar indicating completion status"),showBranding:rt().describe("Whether to display branding elements on the widget"),customPosition:rt().describe("Whether custom positioning is enabled"),customIconPosition:rt().describe("Whether custom icon positioning is enabled"),customCss:P().optional().describe("Custom CSS link to apply for the feedback form")}).describe("Feature settings controlling widget UI behavior and appearance"),Ku=we({brandColor:P().regex(/^#([0-9A-F]{3}|[0-9A-F]{6})$/i,"Must be a valid hex color (e.g., #3366CC)").describe("Primary brand color in hex format"),overlayColor:P().regex(/^#([0-9A-F]{3}|[0-9A-F]{6})$/i,"Must be a valid hex color (e.g., #FFFFFF)").describe("Overlay background color in hex format"),textColor:P().regex(/^#([0-9A-F]{3}|[0-9A-F]{6})$/i,"Must be a valid hex color (e.g., #333333)").describe("Primary text color in hex format"),backgroundColor:nn([P().regex(/^#([0-9A-F]{3}|[0-9A-F]{6})$/i),P().regex(/^rgba?\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*(?:,\s*[01](?:\.\d+)?)?\s*\)$/i)]).describe("Background color in hex format or rgba format (e.g., #1A1A1A or rgba(255,255,255, 1))")}).describe("Color scheme for a single theme"),Hu=we({light:Ku,dark:Ku}).describe("Complete theme configuration with light and dark variants"),Xu=we({themes:Hu.describe("Color themes for light and dark modes"),featureSettings:Gg.describe("UI feature settings controlling widget behavior"),selectedPosition:Yu.describe("Selected position for the main widget"),selectedIconPosition:Yu.describe("Selected position for the widget icon")}).describe("Complete theme and UI configuration including colors, features, and positioning"),Jg=we({name:P().describe("The operator name (e.g., '=', '!=', 'contains', 'beginsWith', 'matches')"),label:P().describe("Human-readable label for the operator (e.g., 'equals', 'not equals', 'contains')")}).describe("Schema defining an operator for custom event fields"),Bg=we({name:P().describe("The field name (e.g., 'event_name', 'add_to_cart', 'cart_item_number')"),label:P().describe("Human-readable label for the field"),placeholder:P().describe("Placeholder text for input fields"),operators:$t(Jg).min(1).describe("Array of available operators for this field")}).describe("Schema defining a custom event field with its operators"),Yg=we({customEventFields:$t(Bg).optional().describe("Array of custom event fields with their operators and labels")}).describe("Schema defining metadata for conditional if clauses"),Kg=we({query:P().describe("The structured query definition as a JSON string"),naturalLanguage:P().describe("Human-readable description of the query conditions"),jsonLogic:P().describe("JSON Logic representation of the query as a JSON string"),sqlQuery:P().describe("SQL representation of the query for database operations")}).describe("Schema defining query output structure with all fields as strings"),Hg=we({id:P().describe("Unique identifier for this condition"),event:P().describe("The event that triggers evaluation of this condition (e.g., 'pageLoad', 'pageView', 'scroll', 'custom')"),queryOutput:Kg.describe("The query conditions to evaluate when the event occurs"),metadata:Yg.optional().describe("Optional metadata containing custom event fields and their configurations")}).describe("Schema defining the 'if' condition for auto-trigger logic"),Xg=we({triggerType:P().describe("The type of action to perform (e.g., 'delay', 'scroll', 'immediately')"),delay:mt().int().min(0).optional().describe("Delay in seconds before performing the action"),scroll:nn([P(),mt()]).optional().describe("Scroll position (percentage as string like '75%' or pixel value as number)")}).describe("Schema defining the action to perform when conditions are met"),eh=we({if:Hg.describe("The condition that must be met"),then:Xg.describe("The action to perform when the condition is met")}).describe("Schema defining a conditional when clause with if-then logic"),da=we({id:P().describe("Unique identifier for this filter condition"),category:P().describe("The category this filter belongs to (e.g., 'device', 'user', 'geo_location')"),property:P().describe("The property to filter on (e.g., 'device_type', 'age', 'country')"),operator:P().describe("The comparison operator (e.g., 'equals', 'greaterThan', 'lessThan')"),values:$t(P()).min(1).describe("Array of values to compare against"),tbl_key:P().describe("The database table key for this property")}).describe("Schema defining a single filter condition within a category"),th=we({device:$t(da).optional().describe("Array of device-specific filter conditions"),user:$t(da).optional().describe("Array of user-specific filter conditions"),geo_location:$t(da).optional().describe("Array of geo-location specific filter conditions")}).describe("Schema defining category-specific filters for audience targeting"),rh=we({applications:$t(P()).min(1).describe("Array of application names this targeting applies to"),userType:P().describe("The type of user this targeting applies to (e.g., 'both', 'new', 'returning')"),categorySpecificFilters:th.optional().describe("Optional category-specific filters for more granular targeting")}).describe("Schema defining who the audience targeting applies to"),nh=we({id:P().describe("Unique identifier for the audience segment"),name:P().min(1).max(200).describe("Display name for the audience segment"),isImportant:rt().describe("Whether this segment is marked as important for targeting"),when:$t(eh).min(1).describe("Array of conditional when clauses with if-then logic"),who:rh.describe("User criteria and conditions defining who belongs to this segment")}).describe("Schema defining an audience segment for targeting with conditional logic"),ec=we({isAuto:rt().describe("Whether automatic triggering is enabled for this audience"),isManual:rt().describe("Whether manual triggering is enabled for this audience"),segments:$t(nh).min(0).describe("Array of audience segments for targeting conditions")}).refine(e=>e.isAuto||e.isManual,{message:"At least one of isAuto or isManual must be true",path:["isAuto"]}).describe("Schema defining audience trigger properties for form targeting"),fa=to("isEnabled",[we({isEnabled:xt(!1).describe("Whether other configuration properties are enabled"),otherFields:Gu.describe("Other form configuration fields including pagination, buttons, and display options"),translations:Bt(P(),Bu).optional().describe("Translations for other configuration field labels and buttons keyed by language code")}),we({isEnabled:xt(!0).describe("Whether other configuration properties are enabled"),otherFields:Gu.describe("Other form configuration fields including pagination, buttons, and display options"),translations:Bt(P(),Bu).describe("Translations for other configuration field labels and buttons keyed by language code")})]).describe("Schema for other configuration properties including fields and translations"),ma=to("isEnabled",[we({isEnabled:xt(!1).describe("Whether welcome screen is enabled"),welcomeFields:Fu.optional().describe("Welcome screen configuration fields including title, description, and button label"),translations:Bt(P(),Vu).optional().describe("Translations for welcome screen content keyed by language code")}),we({isEnabled:xt(!0).describe("Whether welcome screen is enabled"),welcomeFields:Fu.describe("Welcome screen configuration fields including title, description, and button label"),translations:Bt(P(),Vu).describe("Translations for welcome screen content keyed by language code")})]).describe("Schema for welcome screen properties including fields and translations"),pa=to("isEnabled",[we({isEnabled:xt(!1).describe("Whether end screen is enabled"),endFields:Wu.optional().describe("End screen configuration fields including title, message, button label, and dismissal behavior"),translations:Bt(P(),Qu).optional().describe("Translations for end screen content keyed by language code")}),we({isEnabled:xt(!0).describe("Whether end screen is enabled"),endFields:Wu.describe("End screen configuration fields including title, message, button label, and dismissal behavior"),translations:Bt(P(),Qu).describe("Translations for end screen content keyed by language code")})]).describe("Schema for end screen properties including fields and translations"),ih=we({themeConfiguration:Xu.describe("Theme configuration including colors, features, and positioning")}).describe("Schema for appearance properties including theme configuration"),vk=we({feedbackConfigurationId:$p().describe("Unique identifier for the feedback configuration"),feedbackConfiguration:Eg.describe("Configuration properties for the feedback form"),questionnaireFields:we({questions:Bt(P(),ca).describe("Collection of questions keyed by their string identifiers"),sections:$t(ua).describe("Array of sections that organize questions into logical groups"),selectedLanguages:la.describe("Array of languages selected for this questionnaire"),translations:qu.describe("Multi-language translations for questions and form content")}).describe("Fields defining the questionnaire structure, questions, sections, selected languages, and translations"),frequencyAndSchedulingProperties:jg.describe("Properties controlling when and how often the feedback is shown"),externalPublishingProperties:Tg.describe("Properties controlling external sharing and publishing of feedback results"),audienceTriggerProperties:ec.describe("Properties defining audience targeting and trigger conditions for the feedback form"),otherConfigurationProperties:fa.describe("Additional configuration properties including form display options and translations"),welcomeScreenProperties:ma.describe("Welcome screen configuration including content and translations"),endScreenProperties:pa.describe("End screen configuration including content, dismissal behavior, and translations"),appearanceProperties:ih.describe("Appearance configuration including themes, colors, and UI feature settings")}).describe("Complete schema for all feedback-level properties including scheduling, publishing, audience targeting, configuration, screens, and appearance"),oh=we({mandatoryFetchConfigAtPaths:$t(P()).describe("Array of paths where configuration must be fetched from server when navigated by user"),configSyncIntervalSeconds:mt().int().positive().describe("Interval in seconds for configuration synchronization between client and server"),disableAllSurvey:rt().describe("Flag to disable all surveys globally"),feedbackIntervalDuration:mt().int().positive().describe("Duration in seconds for feedback interval between two auto triggered feedbacks")}).describe("Master properties configuration for global survey settings"),ah=At(["light","dark","system"]).describe("Enumeration of supported theme modes"),bk={LIGHT:"light",DARK:"dark",SYSTEM:"system"},no=we({$deviceType:P().describe("Type of device being used"),$timezone:P().describe("Device timezone (e.g., 'Asia/Calcutta')"),$theme:ah.describe("Current theme mode preference"),$os:P().describe("Operating system running on the device"),$osVersion:P().describe("Version of the operating system"),$appVersion:P().describe("Version of the application"),$app:P().describe("Browser or application being used"),$language:P().describe("Language preference (e.g., 'en-GB')")}).describe("Device information collected from the client"),io=we({$sessionId:P().uuid().describe("Unique session identifier"),$timestamp:P().optional().describe("ISO timestamp of the session")}).describe("Session information for tracking user sessions"),yk=we({deviceInfo:no.describe("Device information"),sessionInfo:io.describe("Session information")}).describe("Combined device and session information"),sh=we({$counter:Bt(P(),mt().int()).describe("Counter properties for user tracking (can be positive or negative)").optional(),$set:Bt(P(),ta()).describe("Properties to set for the user").optional(),$setOnce:Bt(P(),ta()).describe("Properties to set once for the user (won't overwrite existing values)").optional(),$unset:$t(P()).describe("Array of property names to unset/remove from the user").optional()}).loose().describe("User properties including counters, set operations, and other dynamic data"),ga=we({userName:P().email().describe("User's email address as username"),properties:sh.describe("User properties and counters")}).describe("User information including identification and properties"),uh=At(["V","S"]).describe("User action: V for view, S for submit"),$k={VIEW:"V",SUBMIT:"S"},ha=we({feedbackIdentifier:P().uuid().describe("Unique identifier for the feedback instance"),feedbackConfigurationId:P().uuid().describe("Unique identifier for the feedback configuration"),completionTimeInSeconds:mt().int().min(0).describe("Time taken to complete the feedback in seconds"),userAction:uh.describe("Action performed by the user"),responseLanguageCode:P().length(2).describe("Language code for the response (e.g., 'en', 'es')")}).describe("Configuration information for the feedback form"),ch=we({questionId:P().uuid().describe("Unique identifier for the question"),answer:Sg.describe("The answer provided for this question"),type:P().describe("Type of the question (e.g., 'rating', 'single_choice')"),error:P().optional().describe("Error message if any validation failed")}).describe("Response to a specific question in the feedback form"),lh=we({questions:$t(ch).min(1).describe("Array of question responses")}).describe("User responses to feedback questions"),dh=we({customEventName:P().nullable().describe("Custom event name that triggered the feedback"),currentPath:P().describe("Current page path where feedback was triggered"),eventType:P().describe("Type of event that triggered the feedback")}).passthrough().describe("Properties of the trigger that matched for this feedback"),tc=we({formConfig:ha.describe("Form configuration information"),deviceInfo:no.describe("Device information"),sessionInfo:io.describe("Session information"),userInfo:ga.optional().describe("User information (optional)"),matchedTriggerProperties:dh.describe("Properties of the matched trigger"),customProperties:Bt(P(),Wn()).optional().describe("Custom properties for advanced use cases")}).describe("Base submit feedback request schema"),fh=tc.extend({formConfig:ha.extend({userAction:xt("V").describe("Action performed by the user (view)")})}).strict().describe("View feedback request schema (no response required)"),mh=tc.extend({formConfig:ha.extend({userAction:xt("S").describe("Action performed by the user (submit)")}),response:lh.describe("User responses (required for submit)")}).strict().describe("Submit feedback request schema (response required)"),wk=nn([fh,mh]).describe("Union schema for both view and submit feedback requests"),ph=we({feedbackConfigurationId:P().uuid().describe("Unique identifier for the feedback configuration"),feedbackTitle:P().describe("Title of the feedback configuration"),triggerProperties:ec.describe("Trigger properties including auto/manual settings and audience segments"),appearanceProperties:we({themes:we({light:we({brandColor:P().describe("Brand color for light theme"),overlayColor:P().describe("Overlay color for light theme"),textColor:P().describe("Text color for light theme"),backgroundColor:P().describe("Background color for light theme")}).describe("Light theme colors"),dark:we({brandColor:P().describe("Brand color for dark theme"),overlayColor:P().describe("Overlay color for dark theme"),textColor:P().describe("Text color for dark theme"),backgroundColor:P().describe("Background color for dark theme")}).describe("Dark theme colors")}).nullable().optional().describe("Theme configuration (optional)"),featureSettings:we({darkOverlay:rt().describe("Whether to show dark overlay"),closeButton:rt().describe("Whether to show close button"),progressBar:rt().describe("Whether to show progress bar"),showBranding:rt().describe("Whether to show branding"),customPosition:rt().describe("Whether custom position is enabled"),customIconPosition:rt().describe("Whether custom icon position is enabled"),customCss:P().nullable().optional().describe("Custom CSS link (optional)")}).describe("Feature settings for the feedback form"),selectedIconPosition:P().describe("Selected position for the feedback icon"),selectedPosition:P().describe("Selected position for the feedback form")}).describe("Appearance properties for the feedback form")}).describe("Individual feedback configuration item in the list"),gh=we({feedbackConfigurationId:P().uuid().describe("Unique identifier for the feedback configuration"),responseLanguageCode:P().length(2).describe("Language code for the response (e.g., 'en', 'es')")}).describe("Form configuration for fetching feedback details"),_k=we({deviceInfo:no.describe("Device information"),sessionInfo:io.describe("Session information"),userInfo:ga.optional().describe("User information (optional)"),force:rt().optional().describe("Forcefully fetch eligible feedback list (optional)")}).strict().describe("Request schema for fetching available feedback configurations"),kk=we({formConfig:gh.describe("Form configuration for the specific feedback"),deviceInfo:no.describe("Device information"),sessionInfo:io.describe("Session information"),userInfo:ga.optional().describe("User information (optional)")}).strict().describe("Request schema for fetching specific feedback form details"),hh=we({formTitle:P().describe("Title of the feedback form"),formDescription:P().describe("Description of the feedback form")}).describe("Form configuration response with title and description"),vh=we({questions:Bt(P(),ca).describe("Collection of questions keyed by their string identifiers"),sections:$t(ua).describe("Array of sections that organize questions into logical groups"),translations:Bt(P(),ta()).describe("Translations object (can be empty or contain language-specific translations)"),selectedLanguages:la.describe("Array of languages selected for this questionnaire")}).describe("Questionnaire fields response including questions, sections, translations, and selected languages"),xk=we({feedbackConfigurationId:P().uuid().describe("Unique identifier for the feedback configuration"),feedbackIdentifier:P().uuid().describe("Unique identifier for this specific feedback instance"),formConfiguration:hh.describe("Form configuration with title and description"),questionnaireFields:vh.describe("Questionnaire structure including questions, sections, translations, and languages"),otherConfigurationProperties:fa.describe("Other configuration properties using existing schema"),welcomeScreenProperties:ma.describe("Welcome screen properties using existing schema"),endScreenProperties:pa.describe("End screen properties using existing schema")}).strict().describe("Complete response schema for fetchFeedbackDetails API using existing field schemas"),Sk=we({masterProperties:oh.describe("Master properties for global survey settings"),feedbackConfiguration:$t(ph).describe("Array of available feedback configurations")}).strict().describe("Response schema for fetchConfigurationList API"),Ik=we({questionId:P().describe("Unique identifier for the question"),identifier:P().uuid().describe("Unique identifier for the feedback instance"),feedbackConfigurationId:P().uuid().describe("Unique identifier for the feedback configuration"),userText:P().describe("Original text input from the user")}).strict().describe("Request schema for refining user text input"),bh=we({userText:P().describe("Original text input from the user"),refinedText:P().describe("Refined/improved version of the user text")}).describe("Data containing original and refined text"),zk=we({success:rt().describe("Indicates whether the operation was successful"),code:P().describe("Response code indicating the status"),message:P().describe("Human-readable message describing the result"),messageId:P().describe("Unique identifier for the response message"),data:bh.describe("Response data containing original and refined text"),error:P().optional().describe("Error message if the operation failed (optional)")}).strict().describe("Response schema for refine text API operation");function vi(e,r){if(e===null||typeof e>"u"||typeof e!="object")return e;const o=Array.isArray(e)?[]:{};for(const[s,t]of Object.entries(e)){let a=s;typeof s=="string"&&!s.includes("-")&&(a=r(s)),o[a]=Array.isArray(t)?t.map(f=>typeof f=="object"&&!(f instanceof Uint8Array)&&!(f instanceof Date)?vi(f,r):f):t instanceof Uint8Array||t instanceof Date?t:typeof t=="object"?vi(t,r):t}return o}on(vi,"convertObject");function va(e){return e.length===1?e.toLowerCase():e.replace(/^([A-Z])/,r=>r[0].toLowerCase()).replace(/[_-]([a-z0-9])/g,r=>r[1].toUpperCase())}on(va,"toCamel");function yh(e){return vi(e,va)}on(yh,"objectToCamel");function rc(e){let r=e,o=0;for(;(/([a-z])([0-9])/.exec(r)?.length||0)>2&&o<10;)r=r.replace(/([a-z])([0-9])/,(s,t,a)=>`${t.toLowerCase()}_${a.toLowerCase()}`),o+=1;for(;(/(.+?)([A-Z])/.exec(r)?.length||0)>2&&o<10;)r=r.replace(/(.+?)([A-Z])/,(s,t,a)=>`${t.toLowerCase()}_${a.toLowerCase()}`),o+=1;return r.toLowerCase()}on(rc,"toSnake");function $h(e){return vi(e,rc)}on($h,"objectToSnake");function nc(e){return va(e).replace(/^([a-z])/,r=>r[0].toUpperCase())}on(nc,"toPascal");function wh(e){return vi(e,nc)}on(wh,"objectToPascal");var _h=At(["light","dark"]).describe("Current theme mode of the application"),Nk={LIGHT:"light",DARK:"dark"},jk=we({theme:Hu.describe("Theme configuration including light and dark theme colors"),currentMode:_h.describe("Current theme mode (light or dark)"),currentLanguage:Ju.describe("Currently selected language configuration"),questions:Bt(P(),ca).describe("Collection of questions keyed by their string identifiers"),questionLanguages:la.describe("Available languages for questions"),otherConfigurationProperties:fa.describe("Other configuration properties including form display options and translations"),welcomeScreenProperties:ma.optional().describe("Welcome screen configuration (optional)"),endScreenProperties:pa.optional().describe("End screen configuration (optional)"),translations:qu.optional().describe("Multi-language translations for questions and form content (optional)"),onSectionChange:aa({input:[mt()],output:ju()}).optional().describe("Optional callback function triggered when section changes"),onClose:aa({input:[],output:ju()}).optional().describe("Optional callback function triggered when the form is closed"),sections:$t(ua).describe("Array of sections that organize questions into logical groups"),themeSettings:Xu.describe("Complete theme configuration including colors, features, and positioning")}).describe("Schema for application props interface containing all form configuration and state");const Tk=Db(Object.freeze(Object.defineProperty({__proto__:null,AnnotationMarkerSchema:_g,AnnotationSchema:kg,AnswerItemSchema:xg,AnswerSchema:Sg,ChoiceOrderOptions:ak,CurrentModes:Nk,DeviceThemes:bk,DismissBehaviors:mk,EndFieldsTranslationSchema:Qu,EndScreenFieldsSchema:Wu,LanguageFieldSchema:Ju,LanguagesSchema:la,MultipleChoiceDisplayStyles:ik,MultipleChoiceMultipleDisplayStyles:ok,OtherFieldsSchema:Gu,OtherFieldsTranslationSchema:Bu,Positions:pk,PublicationStatuses:lk,QuestionStatuses:tk,QuestionTypes:K_,RatingDisplayStyles:rk,RatingRepresentationSizes:nk,RecurringUnits:ck,SurveyTypes:sk,ThemeModes:hk,TranslationProvider:Wg,UserActions:$k,ValidationRuleTypes:H_,VisibilityConditionOperators:ek,WelcomeFieldsTranslationSchema:Vu,WelcomeScreenFieldsSchema:Fu,YesNoValues:uk,annotationQuestionSchema:gg,annotationQuestionTranslationSchema:Zg,appPropsSchema:jk,appearancePropertiesSchema:ih,audienceSegmentSchema:nh,audienceTriggerPropertiesSchema:ec,baseSubmitFeedbackSchema:tc,categorySpecificFiltersSchema:th,choiceOrderOptionSchema:mg,combinedQuestionSchema:ca,conditionalIfMetadataSchema:Yg,conditionalIfSchema:Hg,conditionalWhenSchema:eh,createTranslationProvider:Vg,currentModeSchema:_h,customEventFieldOperatorSchema:Jg,customEventFieldSchema:Bg,deviceInfoSchema:no,deviceSessionInfoSchema:yk,deviceThemeSchema:ah,dismissBehaviorSchema:Qg,endScreenPropertiesSchema:pa,externalPublishingPropertiesSchema:Tg,featureSettingsSchema:Gg,feedbackConfigurationItemSchema:ph,feedbackConfigurationSchema:Eg,feedbackRequestSchema:wk,fetchConfigurationListResponseSchema:Sk,fetchConfigurationListSchema:_k,fetchFeedbackDetailsResponseSchema:xk,fetchFeedbackDetailsSchema:kk,fetchFormConfigSchema:gh,filterConditionSchema:da,formConfigSchema:ha,formConfigurationResponseSchema:hh,formPropertiesSchema:vk,frequencyAndSchedulingPropertiesSchema:jg,longAnswerQuestionSchema:$g,longAnswerQuestionTranslationSchema:Dg,masterPropertiesSchema:oh,matchedTriggerPropertiesSchema:dh,multipleChoiceDisplayStyleSchema:dg,multipleChoiceMultipleDisplayStyleSchema:fg,multipleChoiceMultipleQuestionSchema:vg,multipleChoiceQuestionTranslationSchema:Ug,multipleChoiceSingleQuestionSchema:hg,nestedDropdownQuestionSchema:wg,nestedOptionSchema:Ru,nestedSelectionQuestionTranslationSchema:Lg,npsQuestionSchema:bg,npsQuestionTranslationSchema:Mg,objectToCamel:yh,objectToPascal:wh,objectToSnake:$h,otherConfigurationPropertiesSchema:fa,positionSchema:Yu,publicationStatusSchema:Og,queryOutputSchema:Kg,questionCentricTranslationsSchema:qg,questionOptionSchema:Zu,questionResponseSchema:ch,questionSchema:an,questionStatusSchema:ug,questionTranslationSchema:Rg,questionTypeSchema:ig,questionnaireFieldsResponseSchema:vh,ratingDisplayStyleSchema:cg,ratingQuestionSchema:pg,ratingQuestionTranslationSchema:Pg,ratingRepresentationSizeSchema:lg,recurringUnitSchema:Ng,refineTextDataSchema:bh,refineTextParamsSchema:Ik,refineTextResponseSchema:zk,responseSchema:lh,sectionSchema:ua,sessionInfoSchema:io,shortAnswerQuestionSchema:yg,shortAnswerQuestionTranslationSchema:Ag,singleChoiceQuestionTranslationSchema:Cg,submitFeedbackSchema:mh,surveyTypeSchema:Ig,themeColorsSchema:Ku,themeConfigurationSchema:Xu,themeModeSchema:gk,themesSchema:Hu,toCamel:va,toPascal:nc,toSnake:rc,translationEntrySchema:tt,translationsSchema:qu,triggerActionSchema:Xg,userActionSchema:uh,userInfoSchema:ga,userPropertiesSchema:sh,validationRuleSchema:ag,validationRuleTypeSchema:og,viewFeedbackSchema:fh,visibilityConditionSchema:sg,welcomeScreenPropertiesSchema:ma,whoSchema:rh,yesNoSchema:zg,z:B_},Symbol.toStringTag,{value:"Module"})));var Ok=Di.exports,kh;function Ek(){return kh||(kh=1,(function(e,r){(function(o,s){s(r,Tk)})(Ok,(function(o,s){typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");let t=!1,a=!1;function f(){t=!0}f();const _=1,q=2,X=4,ce=8,ue=16,ze=1,ge=2,L=4,ye=8,Me=16,pt=1,ct=2,dt="[",bt="[!",lr="]",Br={},Vt=Symbol(),ba="http://www.w3.org/1999/xhtml",ic="http://www.w3.org/2000/svg",ya="@attach",oo=!1;var _n=Array.isArray,oc=Array.prototype.indexOf,Vn=Array.from,Qn=Object.keys,Yr=Object.defineProperty,jr=Object.getOwnPropertyDescriptor,ao=Object.getOwnPropertyDescriptors,so=Object.prototype,pe=Array.prototype,Ge=Object.getPrototypeOf,Nt=Object.isExtensible;function Dt(i){return typeof i=="function"}const gt=()=>{};function Tr(i){return i()}function Gn(i){for(var n=0;n<i.length;n++)i[n]()}function bi(){var i,n,u=new Promise((c,d)=>{i=c,n=d});return{promise:u,resolve:i,reject:n}}function Yt(i,n){if(Array.isArray(i))return i;if(!(Symbol.iterator in i))return Array.from(i);const u=[];for(const c of i)if(u.push(c),u.length===n)break;return u}const Zt=2,Jn=4,yi=8,Bn=16,sn=32,kn=64,ac=128,Or=256,$a=512,nr=1024,wr=2048,un=4096,Rr=8192,Yn=16384,sc=32768,Kn=65536,xh=1<<17,Uk=1<<18,Hn=1<<19,Sh=1<<20,uc=1<<21,wa=1<<22,Xn=1<<23,Kr=Symbol("$state"),cc=Symbol("legacy props"),Mk=Symbol(""),uo=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Ak=1,_a=3,ei=8;function lc(i){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Dk(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Lk(i){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Zk(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Rk(i){throw new Error("https://svelte.dev/e/effect_orphan")}function qk(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Fk(){throw new Error("https://svelte.dev/e/hydration_failed")}function Wk(i){throw new Error("https://svelte.dev/e/props_invalid_value")}function Vk(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Qk(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Gk(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Jk(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ka(i){console.warn("https://svelte.dev/e/hydration_mismatch")}function Bk(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Yk(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let De=!1;function dr(i){De=i}let Qe;function Ht(i){if(i===null)throw ka(),Br;return Qe=i}function cn(){return Ht(Xr(Qe))}function A(i){if(De){if(Xr(Qe)!==null)throw ka(),Br;Qe=i}}function _r(i=1){if(De){for(var n=i,u=Qe;n--;)u=Xr(u);Qe=u}}function xa(i=!0){for(var n=0,u=Qe;;){if(u.nodeType===ei){var c=u.data;if(c===lr){if(n===0)return u;n-=1}else(c===dt||c===bt)&&(n+=1)}var d=Xr(u);i&&u.remove(),u=d}}function Ih(i){if(!i||i.nodeType!==ei)throw ka(),Br;return i.data}function zh(i){return i===this.v}function Nh(i,n){return i!=i?n==n:i!==n||i!==null&&typeof i=="object"||typeof i=="function"}function jh(i){return!Nh(i,this.v)}const Kk=[];function Hk(i,n=!1,u=!1){return Sa(i,new Map,"",Kk,null,u)}function Sa(i,n,u,c,d=null,m=!1){if(typeof i=="object"&&i!==null){var p=n.get(i);if(p!==void 0)return p;if(i instanceof Map)return new Map(i);if(i instanceof Set)return new Set(i);if(_n(i)){var g=Array(i.length);n.set(i,g),d!==null&&n.set(d,g);for(var h=0;h<i.length;h+=1){var b=i[h];h in i&&(g[h]=Sa(b,n,u,c,null,m))}return g}if(Ge(i)===so){g={},n.set(i,g),d!==null&&n.set(d,g);for(var y in i)g[y]=Sa(i[y],n,u,c,null,m);return g}if(i instanceof Date)return structuredClone(i);if(typeof i.toJSON=="function"&&!m)return Sa(i.toJSON(),n,u,c,i)}if(i instanceof EventTarget)return i;try{return structuredClone(i)}catch{return i}}let St=null;function $i(i){St=i}function dc(i){return fc().get(i)}function Th(i,n){return fc().set(i,n),n}function Xk(i){return fc().has(i)}function Je(i,n=!1,u){St={p:St,c:null,e:null,s:i,x:null,l:t&&!n?{s:null,u:null,$:[]}:null}}function Be(i){var n=St,u=n.e;if(u!==null){n.e=null;for(var c of u)tv(c)}return i!==void 0&&(n.x=i),St=n.p,i??{}}function co(){return!t||St!==null&&St.l===null}function fc(i){return St===null&&lc(),St.c??=new Map(ex(St)||void 0)}function ex(i){let n=i.p;for(;n!==null;){const u=n.c;if(u!==null)return u;n=n.p}return null}let ti=[];function Oh(){var i=ti;ti=[],Gn(i)}function ln(i){if(ti.length===0&&!lo){var n=ti;queueMicrotask(()=>{n===ti&&Oh()})}ti.push(i)}function tx(){for(;ti.length>0;)Oh()}const rx=new WeakMap;function Eh(i){var n=Xe;if(n===null)return st.f|=Xn,i;if((n.f&sc)===0){if((n.f&ac)===0)throw!n.parent&&i instanceof Error&&Ph(i),i;n.b.error(i)}else wi(i,n)}function wi(i,n){for(;n!==null;){if((n.f&ac)!==0)try{n.b.error(i);return}catch(u){i=u}n=n.parent}throw i instanceof Error&&Ph(i),i}function Ph(i){const n=rx.get(i);n&&(Yr(i,"message",{value:n.message}),Yr(i,"stack",{value:n.stack}))}const Ia=new Set;let Ot=null,za=null,mc=new Set,Hr=[],Na=null,pc=!1,lo=!1;class qr{current=new Map;#e=new Map;#t=new Set;#n=0;#o=null;#i=[];#a=[];#r=[];#s=[];#u=[];#l=[];skipped_effects=new Set;process(n){Hr=[],za=null;for(const d of n)this.#d(d);if(this.#n===0){this.#f();var u=this.#a,c=this.#r;this.#a=[],this.#r=[],this.#s=[],za=this,Ot=null,Uh(u),Uh(c),za=null,this.#o?.resolve()}else this.#c(this.#a),this.#c(this.#r),this.#c(this.#s);for(const d of this.#i)xi(d);this.#i=[]}#d(n){n.f^=nr;for(var u=n.first;u!==null;){var c=u.f,d=(c&(sn|kn))!==0,m=d&&(c&nr)!==0,p=m||(c&Rr)!==0||this.skipped_effects.has(u);if(!p&&u.fn!==null){d?u.f^=nr:(c&Jn)!==0?this.#r.push(u):(c&nr)===0&&((c&wa)!==0&&u.b?.is_pending()?this.#i.push(u):ho(u)&&((u.f&Bn)!==0&&this.#s.push(u),xi(u)));var g=u.first;if(g!==null){u=g;continue}}var h=u.parent;for(u=u.next;u===null&&h!==null;)u=h.next,h=h.parent}}#c(n){for(const u of n)((u.f&wr)!==0?this.#u:this.#l).push(u),sr(u,nr);n.length=0}capture(n,u){this.#e.has(n)||this.#e.set(n,u),this.current.set(n,n.v)}activate(){Ot=this}deactivate(){Ot=null}flush(){if(Hr.length>0){if(this.activate(),Ch(),Ot!==null&&Ot!==this)return}else this.#n===0&&this.#f();this.deactivate();for(const n of mc)if(mc.delete(n),n(),Ot!==null)break}#f(){for(const n of this.#t)n();if(this.#t.clear(),Ia.size>1){this.#e.clear();let n=!0;for(const u of Ia){if(u===this){n=!1;continue}for(const[c,d]of this.current){if(u.current.has(c))if(n)u.current.set(c,d);else continue;Mh(c)}if(Hr.length>0){Ot=u;for(const c of Hr)u.#d(c);Hr=[]}}Ot=null}Ia.delete(this)}increment(){this.#n+=1}decrement(){this.#n-=1;for(const n of this.#u)sr(n,wr),ni(n);for(const n of this.#l)sr(n,un),ni(n);this.flush()}add_callback(n){this.#t.add(n)}settled(){return(this.#o??=bi()).promise}static ensure(){if(Ot===null){const n=Ot=new qr;Ia.add(Ot),lo||qr.enqueue(()=>{Ot===n&&n.flush()})}return Ot}static enqueue(n){ln(n)}static apply(n){return gt}}function at(i){var n=lo;lo=!0;try{for(var u;;){if(tx(),Hr.length===0&&(Ot?.flush(),Hr.length===0))return Na=null,u;Ch()}}finally{lo=n}}function Ch(){var i=ki;pc=!0;try{var n=0;for(uv(!0);Hr.length>0;){var u=qr.ensure();if(n++>1e3){var c,d;nx()}u.process(Hr),xn.clear()}}finally{pc=!1,uv(i),Na=null}}function nx(){try{qk()}catch(i){wi(i,Na)}}let ri=null;function Uh(i){var n=i.length;if(n!==0){for(var u=0;u<n;){var c=i[u++];if((c.f&(Yn|Rr))===0&&ho(c)&&(ri=[],xi(c),c.deps===null&&c.first===null&&c.nodes_start===null&&(c.teardown===null&&c.ac===null?ov(c):c.fn=null),ri?.length>0)){xn.clear();for(const d of ri)xi(d);ri=[]}}ri=null}}function Mh(i){if(i.reactions!==null)for(const n of i.reactions){const u=n.f;(u&Zt)!==0?Mh(n):(u&(wa|Bn))!==0&&(sr(n,wr),ni(n))}}function ni(i){for(var n=Na=i;n.parent!==null;){n=n.parent;var u=n.f;if(pc&&n===Xe&&(u&Bn)!==0)return;if((u&(kn|sn))!==0){if((u&nr)===0)return;n.f^=nr}}Hr.push(n)}function Ah(i){let n=0,u=Sn(0),c;return()=>{gx()&&(l(u),ii(()=>(n===0&&(c=U(()=>i(()=>mo(u)))),n+=1,()=>{ln(()=>{n-=1,n===0&&(c?.(),c=void 0,mo(u))})})))}}var ix=Kn|Hn|ac;function ox(i,n,u){new ax(i,n,u)}class ax{parent;#e=!1;#t;#n=De?Qe:null;#o;#i;#a;#r=null;#s=null;#u=null;#l=null;#d=0;#c=0;#f=!1;#m=null;#v=()=>{this.#m&&_i(this.#m,this.#d)};#b=Ah(()=>(this.#m=Sn(this.#d),()=>{this.#m=null}));constructor(n,u,c){this.#t=n,this.#o=u,this.#i=c,this.parent=Xe.b,this.#e=!!this.#o.pending,this.#a=zn(()=>{if(Xe.b=this,De){const d=this.#n;cn(),d.nodeType===ei&&d.data===bt?this.#$():this.#y()}else{try{this.#r=ir(()=>c(this.#t))}catch(d){this.error(d)}this.#c>0?this.#g():this.#e=!1}},ix),De&&(this.#t=Qe)}#y(){try{this.#r=ir(()=>this.#i(this.#t))}catch(n){this.error(n)}this.#e=!1}#$(){const n=this.#o.pending;n&&(this.#s=ir(()=>n(this.#t)),qr.enqueue(()=>{this.#r=this.#p(()=>(qr.ensure(),ir(()=>this.#i(this.#t)))),this.#c>0?this.#g():(Nn(this.#s,()=>{this.#s=null}),this.#e=!1)}))}is_pending(){return this.#e||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#o.pending}#p(n){var u=Xe,c=st,d=St;Pr(this.#a),pr(this.#a),$i(this.#a.ctx);try{return n()}catch(m){return Eh(m),null}finally{Pr(u),pr(c),$i(d)}}#g(){const n=this.#o.pending;this.#r!==null&&(this.#l=document.createDocumentFragment(),sx(this.#r,this.#l)),this.#s===null&&(this.#s=ir(()=>n(this.#t)))}#h(n){if(!this.has_pending_snippet()){this.parent&&this.parent.#h(n);return}this.#c+=n,this.#c===0&&(this.#e=!1,this.#s&&Nn(this.#s,()=>{this.#s=null}),this.#l&&(this.#t.before(this.#l),this.#l=null),ln(()=>{qr.ensure().flush()}))}update_pending_count(n){this.#h(n),this.#d+=n,mc.add(this.#v)}get_effect_pending(){return this.#b(),l(this.#m)}error(n){var u=this.#o.onerror;let c=this.#o.failed;if(this.#f||!u&&!c)throw n;this.#r&&(Xt(this.#r),this.#r=null),this.#s&&(Xt(this.#s),this.#s=null),this.#u&&(Xt(this.#u),this.#u=null),De&&(Ht(this.#n),_r(),Ht(xa()));var d=!1,m=!1;const p=()=>{if(d){Yk();return}d=!0,m&&Jk(),qr.ensure(),this.#d=0,this.#u!==null&&Nn(this.#u,()=>{this.#u=null}),this.#e=this.has_pending_snippet(),this.#r=this.#p(()=>(this.#f=!1,ir(()=>this.#i(this.#t)))),this.#c>0?this.#g():this.#e=!1};var g=st;try{pr(null),m=!0,u?.(n,p),m=!1}catch(h){wi(h,this.#a&&this.#a.parent)}finally{pr(g)}c&&ln(()=>{this.#u=this.#p(()=>{this.#f=!0;try{return ir(()=>{c(this.#t,()=>n,()=>p)})}catch(h){return wi(h,this.#a.parent),null}finally{this.#f=!1}})})}}function sx(i,n){for(var u=i.nodes_start,c=i.nodes_end;u!==null;){var d=u===c?null:Xr(u);n.append(u),u=d}}function Dh(i,n,u){const c=co()?fo:Le;if(n.length===0){u(i.map(c));return}var d=Ot,m=Xe,p=ux(),g=De;Promise.all(n.map(h=>cx(h))).then(h=>{p();try{u([...i.map(c),...h])}catch(b){(m.f&Yn)===0&&wi(b,m)}g&&dr(!1),d?.deactivate(),Lh()}).catch(h=>{wi(h,m)})}function ux(){var i=Xe,n=st,u=St,c=Ot,d=De;if(d)var m=Qe;return function(){Pr(i),pr(n),$i(u),c?.activate(),d&&(dr(!0),Ht(m))}}function Lh(){Pr(null),pr(null),$i(null)}function fo(i){var n=Zt|wr,u=st!==null&&(st.f&Zt)!==0?st:null;return Xe===null||u!==null&&(u.f&Or)!==0?n|=Or:Xe.f|=Hn,{ctx:St,deps:null,effects:null,equals:zh,f:n,fn:i,reactions:null,rv:0,v:Vt,wv:0,parent:u??Xe,ac:null}}function cx(i,n){let u=Xe;u===null&&Dk();var c=u.b,d=void 0,m=Sn(Vt),p=!st,g=new Map;return bx(()=>{var h=bi();d=h.promise;try{Promise.resolve(i()).then(h.resolve,h.reject)}catch(v){h.reject(v)}var b=Ot,y=c.is_pending();p&&(c.update_pending_count(1),y||(b.increment(),g.get(b)?.reject(uo),g.set(b,h)));const k=(v,x=void 0)=>{y||b.activate(),x?x!==uo&&(m.f|=Xn,_i(m,x)):((m.f&Xn)!==0&&(m.f^=Xn),_i(m,v)),p&&(c.update_pending_count(-1),y||b.decrement()),Lh()};h.promise.then(k,v=>k(null,v||"unknown"))}),bc(()=>{for(const h of g.values())h.reject(uo)}),new Promise(h=>{function b(y){function k(){y===d?h(m):b(d)}y.then(k,k)}b(d)})}function lt(i){const n=fo(i);return lv(n),n}function Le(i){const n=fo(i);return n.equals=jh,n}function Zh(i){var n=i.effects;if(n!==null){i.effects=null;for(var u=0;u<n.length;u+=1)Xt(n[u])}}function lx(i){for(var n=i.parent;n!==null;){if((n.f&Zt)===0)return n;n=n.parent}return null}function gc(i){var n,u=Xe;Pr(lx(i));try{Zh(i),n=gv(i)}finally{Pr(u)}return n}function Rh(i){var n=gc(i);if(i.equals(n)||(i.v=n,i.wv=mv()),!oi){var u=(jn||(i.f&Or)!==0)&&i.deps!==null?un:nr;sr(i,u)}}const xn=new Map;function Sn(i,n){var u={f:0,v:i,reactions:null,equals:zh,rv:0,wv:0};return u}function Fr(i,n){const u=Sn(i);return lv(u),u}function te(i,n=!1,u=!0){const c=Sn(i);return n||(c.equals=jh),t&&u&&St!==null&&St.l!==null&&(St.l.s??=[]).push(c),c}function qh(i,n){return $(i,U(()=>l(i))),n}function $(i,n,u=!1){st!==null&&(!Qr||(st.f&xh)!==0)&&co()&&(st.f&(Zt|Bn|wa|xh))!==0&&!dn?.includes(i)&&Gk();let c=u?In(n):n;return _i(i,c)}function _i(i,n){if(!i.equals(n)){var u=i.v;oi?xn.set(i,n):xn.set(i,u),i.v=n;var c=qr.ensure();c.capture(i,u),(i.f&Zt)!==0&&((i.f&wr)!==0&&gc(i),sr(i,(i.f&Or)===0?nr:un)),i.wv=mv(),Wh(i,wr),co()&&Xe!==null&&(Xe.f&nr)!==0&&(Xe.f&(sn|kn))===0&&(Cr===null?wx([i]):Cr.push(i))}return n}function Fh(i,n=1){var u=l(i),c=n===1?u++:u--;return $(i,u),c}function mo(i){$(i,i.v+1)}function Wh(i,n){var u=i.reactions;if(u!==null)for(var c=co(),d=u.length,m=0;m<d;m++){var p=u[m],g=p.f;if(!(!c&&p===Xe)){var h=(g&wr)===0;h&&sr(p,n),(g&Zt)!==0?Wh(p,un):h&&((g&Bn)!==0&&ri!==null&&ri.push(p),ni(p))}}}function In(i){if(typeof i!="object"||i===null||Kr in i)return i;const n=Ge(i);if(n!==so&&n!==pe)return i;var u=new Map,c=_n(i),d=Fr(0),m=ai,p=g=>{if(ai===m)return g();var h=st,b=ai;pr(null),fv(m);var y=g();return pr(h),fv(b),y};return c&&u.set("length",Fr(i.length)),new Proxy(i,{defineProperty(g,h,b){(!("value"in b)||b.configurable===!1||b.enumerable===!1||b.writable===!1)&&Vk();var y=u.get(h);return y===void 0?y=p(()=>{var k=Fr(b.value);return u.set(h,k),k}):$(y,b.value,!0),!0},deleteProperty(g,h){var b=u.get(h);if(b===void 0){if(h in g){const y=p(()=>Fr(Vt));u.set(h,y),mo(d)}}else $(b,Vt),mo(d);return!0},get(g,h,b){if(h===Kr)return i;var y=u.get(h),k=h in g;if(y===void 0&&(!k||jr(g,h)?.writable)&&(y=p(()=>{var x=In(k?g[h]:Vt),S=Fr(x);return S}),u.set(h,y)),y!==void 0){var v=l(y);return v===Vt?void 0:v}return Reflect.get(g,h,b)},getOwnPropertyDescriptor(g,h){var b=Reflect.getOwnPropertyDescriptor(g,h);if(b&&"value"in b){var y=u.get(h);y&&(b.value=l(y))}else if(b===void 0){var k=u.get(h),v=k?.v;if(k!==void 0&&v!==Vt)return{enumerable:!0,configurable:!0,value:v,writable:!0}}return b},has(g,h){if(h===Kr)return!0;var b=u.get(h),y=b!==void 0&&b.v!==Vt||Reflect.has(g,h);if(b!==void 0||Xe!==null&&(!y||jr(g,h)?.writable)){b===void 0&&(b=p(()=>{var v=y?In(g[h]):Vt,x=Fr(v);return x}),u.set(h,b));var k=l(b);if(k===Vt)return!1}return y},set(g,h,b,y){var k=u.get(h),v=h in g;if(c&&h==="length")for(var x=b;x<k.v;x+=1){var S=u.get(x+"");S!==void 0?$(S,Vt):x in g&&(S=p(()=>Fr(Vt)),u.set(x+"",S))}if(k===void 0)(!v||jr(g,h)?.writable)&&(k=p(()=>Fr(void 0)),$(k,In(b)),u.set(h,k));else{v=k.v!==Vt;var E=p(()=>In(b));$(k,E)}var C=Reflect.getOwnPropertyDescriptor(g,h);if(C?.set&&C.set.call(y,b),!v){if(c&&typeof h=="string"){var Y=u.get("length"),oe=Number(h);Number.isInteger(oe)&&oe>=Y.v&&$(Y,oe+1)}mo(d)}return!0},ownKeys(g){l(d);var h=Reflect.ownKeys(g).filter(k=>{var v=u.get(k);return v===void 0||v.v!==Vt});for(var[b,y]of u)y.v!==Vt&&!(b in g)&&h.push(b);return h},setPrototypeOf(){Qk()}})}function Vh(i){try{if(i!==null&&typeof i=="object"&&Kr in i)return i[Kr]}catch{}return i}function dx(i,n){return Object.is(Vh(i),Vh(n))}var Qh,Gh,Jh,Bh;function hc(){if(Qh===void 0){Qh=window,Gh=/Firefox/.test(navigator.userAgent);var i=Element.prototype,n=Node.prototype,u=Text.prototype;Jh=jr(n,"firstChild").get,Bh=jr(n,"nextSibling").get,Nt(i)&&(i.__click=void 0,i.__className=void 0,i.__attributes=null,i.__style=void 0,i.__e=void 0),Nt(u)&&(u.__t=void 0)}}function Er(i=""){return document.createTextNode(i)}function Wr(i){return Jh.call(i)}function Xr(i){return Bh.call(i)}function Z(i,n){if(!De)return Wr(i);var u=Wr(Qe);if(u===null)u=Qe.appendChild(Er());else if(n&&u.nodeType!==_a){var c=Er();return u?.before(c),Ht(c),c}return Ht(u),u}function Te(i,n=!1){if(!De){var u=Wr(i);return u instanceof Comment&&u.data===""?Xr(u):u}if(n&&Qe?.nodeType!==_a){var c=Er();return Qe?.before(c),Ht(c),c}return Qe}function fe(i,n=1,u=!1){let c=De?Qe:i;for(var d;n--;)d=c,c=Xr(c);if(!De)return c;if(u&&c?.nodeType!==_a){var m=Er();return c===null?d?.after(m):c.before(m),Ht(m),m}return Ht(c),c}function vc(i){i.textContent=""}function Yh(){return!1}function fx(i,n){if(n){const u=document.body;i.autofocus=!0,ln(()=>{document.activeElement===u&&i.focus()})}}function mx(i){De&&Wr(i)!==null&&vc(i)}let Kh=!1;function Hh(){Kh||(Kh=!0,document.addEventListener("reset",i=>{Promise.resolve().then(()=>{if(!i.defaultPrevented)for(const n of i.target.elements)n.__on_r?.()})},{capture:!0}))}function ja(i){var n=st,u=Xe;pr(null),Pr(null);try{return i()}finally{pr(n),Pr(u)}}function Xh(i,n,u,c=u){i.addEventListener(n,()=>ja(u));const d=i.__on_r;d?i.__on_r=()=>{d(),c(!0)}:i.__on_r=()=>c(!0),Hh()}function ev(i){Xe===null&&st===null&&Rk(),st!==null&&(st.f&Or)!==0&&Xe===null&&Zk(),oi&&Lk()}function px(i,n){var u=n.last;u===null?n.last=n.first=i:(u.next=i,i.prev=u,n.last=i)}function Vr(i,n,u,c=!0){var d=Xe;d!==null&&(d.f&Rr)!==0&&(i|=Rr);var m={ctx:St,deps:null,nodes_start:null,nodes_end:null,f:i|wr,first:null,fn:n,last:null,next:null,parent:d,b:d&&d.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(u)try{xi(m),m.f|=sc}catch(h){throw Xt(m),h}else n!==null&&ni(m);if(c){var p=m;if(u&&p.deps===null&&p.teardown===null&&p.nodes_start===null&&p.first===p.last&&(p.f&Hn)===0&&(p=p.first),p!==null&&(p.parent=d,d!==null&&px(p,d),st!==null&&(st.f&Zt)!==0&&(i&kn)===0)){var g=st;(g.effects??=[]).push(p)}}return m}function gx(){return st!==null&&!Qr}function bc(i){const n=Vr(yi,null,!1);return sr(n,nr),n.teardown=i,n}function po(i){ev();var n=Xe.f,u=!st&&(n&sn)!==0&&(n&sc)===0;if(u){var c=St;(c.e??=[]).push(i)}else return tv(i)}function tv(i){return Vr(Jn|Sh,i,!1)}function rv(i){return ev(),Vr(yi|Sh,i,!0)}function hx(i){qr.ensure();const n=Vr(kn|Hn,i,!0);return()=>{Xt(n)}}function vx(i){qr.ensure();const n=Vr(kn|Hn,i,!0);return(u={})=>new Promise(c=>{u.outro?Nn(n,()=>{Xt(n),c(void 0)}):(Xt(n),c(void 0))})}function yc(i){return Vr(Jn,i,!1)}function ve(i,n){var u=St,c={effect:null,ran:!1,deps:i};u.l.$.push(c),c.effect=ii(()=>{i(),!c.ran&&(c.ran=!0,U(n))})}function fr(){var i=St;ii(()=>{for(var n of i.l.$){n.deps();var u=n.effect;(u.f&nr)!==0&&sr(u,un),ho(u)&&xi(u),n.ran=!1}})}function bx(i){return Vr(wa|Hn,i,!0)}function ii(i,n=0){return Vr(yi|n,i,!0)}function je(i,n=[],u=[]){Dh(n,u,c=>{Vr(yi,()=>i(...c.map(l)),!0)})}function zn(i,n=0){var u=Vr(Bn|n,i,!0);return u}function ir(i,n=!0){return Vr(sn|Hn,i,!0,n)}function nv(i){var n=i.teardown;if(n!==null){const u=oi,c=st;cv(!0),pr(null);try{n.call(null)}finally{cv(u),pr(c)}}}function iv(i,n=!1){var u=i.first;for(i.first=i.last=null;u!==null;){const d=u.ac;d!==null&&ja(()=>{d.abort(uo)});var c=u.next;(u.f&kn)!==0?u.parent=null:Xt(u,n),u=c}}function yx(i){for(var n=i.first;n!==null;){var u=n.next;(n.f&sn)===0&&Xt(n),n=u}}function Xt(i,n=!0){var u=!1;(n||(i.f&Uk)!==0)&&i.nodes_start!==null&&i.nodes_end!==null&&($x(i.nodes_start,i.nodes_end),u=!0),iv(i,n&&!u),Oa(i,0),sr(i,Yn);var c=i.transitions;if(c!==null)for(const m of c)m.stop();nv(i);var d=i.parent;d!==null&&d.first!==null&&ov(i),i.next=i.prev=i.teardown=i.ctx=i.deps=i.fn=i.nodes_start=i.nodes_end=i.ac=null}function $x(i,n){for(;i!==null;){var u=i===n?null:Xr(i);i.remove(),i=u}}function ov(i){var n=i.parent,u=i.prev,c=i.next;u!==null&&(u.next=c),c!==null&&(c.prev=u),n!==null&&(n.first===i&&(n.first=c),n.last===i&&(n.last=u))}function Nn(i,n){var u=[];$c(i,u,!0),av(u,()=>{Xt(i),n&&n()})}function av(i,n){var u=i.length;if(u>0){var c=()=>--u||n();for(var d of i)d.out(c)}else n()}function $c(i,n,u){if((i.f&Rr)===0){if(i.f^=Rr,i.transitions!==null)for(const p of i.transitions)(p.is_global||u)&&n.push(p);for(var c=i.first;c!==null;){var d=c.next,m=(c.f&Kn)!==0||(c.f&sn)!==0;$c(c,n,m?u:!1),c=d}}}function Ta(i){sv(i,!0)}function sv(i,n){if((i.f&Rr)!==0){i.f^=Rr,(i.f&nr)===0&&(sr(i,wr),ni(i));for(var u=i.first;u!==null;){var c=u.next,d=(u.f&Kn)!==0||(u.f&sn)!==0;sv(u,d?n:!1),u=c}if(i.transitions!==null)for(const m of i.transitions)(m.is_global||n)&&m.in()}}let ki=!1;function uv(i){ki=i}let oi=!1;function cv(i){oi=i}let st=null,Qr=!1;function pr(i){st=i}let Xe=null;function Pr(i){Xe=i}let dn=null;function lv(i){st!==null&&(dn===null?dn=[i]:dn.push(i))}let mr=null,kr=0,Cr=null;function wx(i){Cr=i}let dv=1,go=0,ai=go;function fv(i){ai=i}let jn=!1;function mv(){return++dv}function ho(i){var n=i.f;if((n&wr)!==0)return!0;if((n&un)!==0){var u=i.deps,c=(n&Or)!==0;if(u!==null){var d,m,p=(n&$a)!==0,g=c&&Xe!==null&&!jn,h=u.length;if((p||g)&&(Xe===null||(Xe.f&Yn)===0)){var b=i,y=b.parent;for(d=0;d<h;d++)m=u[d],(p||!m?.reactions?.includes(b))&&(m.reactions??=[]).push(b);p&&(b.f^=$a),g&&y!==null&&(y.f&Or)===0&&(b.f^=Or)}for(d=0;d<h;d++)if(m=u[d],ho(m)&&Rh(m),m.wv>i.wv)return!0}(!c||Xe!==null&&!jn)&&sr(i,nr)}return!1}function pv(i,n,u=!0){var c=i.reactions;if(c!==null&&!dn?.includes(i))for(var d=0;d<c.length;d++){var m=c[d];(m.f&Zt)!==0?pv(m,n,!1):n===m&&(u?sr(m,wr):(m.f&nr)!==0&&sr(m,un),ni(m))}}function gv(i){var n=mr,u=kr,c=Cr,d=st,m=jn,p=dn,g=St,h=Qr,b=ai,y=i.f;mr=null,kr=0,Cr=null,jn=(y&Or)!==0&&(Qr||!ki||st===null),st=(y&(sn|kn))===0?i:null,dn=null,$i(i.ctx),Qr=!1,ai=++go,i.ac!==null&&(ja(()=>{i.ac.abort(uo)}),i.ac=null);try{i.f|=uc;var k=i.fn,v=k(),x=i.deps;if(mr!==null){var S;if(Oa(i,kr),x!==null&&kr>0)for(x.length=kr+mr.length,S=0;S<mr.length;S++)x[kr+S]=mr[S];else i.deps=x=mr;if(!jn||(y&Zt)!==0&&i.reactions!==null)for(S=kr;S<x.length;S++)(x[S].reactions??=[]).push(i)}else x!==null&&kr<x.length&&(Oa(i,kr),x.length=kr);if(co()&&Cr!==null&&!Qr&&x!==null&&(i.f&(Zt|un|wr))===0)for(S=0;S<Cr.length;S++)pv(Cr[S],i);return d!==null&&d!==i&&(go++,Cr!==null&&(c===null?c=Cr:c.push(...Cr))),(i.f&Xn)!==0&&(i.f^=Xn),v}catch(E){return Eh(E)}finally{i.f^=uc,mr=n,kr=u,Cr=c,st=d,jn=m,dn=p,$i(g),Qr=h,ai=b}}function _x(i,n){let u=n.reactions;if(u!==null){var c=oc.call(u,i);if(c!==-1){var d=u.length-1;d===0?u=n.reactions=null:(u[c]=u[d],u.pop())}}u===null&&(n.f&Zt)!==0&&(mr===null||!mr.includes(n))&&(sr(n,un),(n.f&(Or|$a))===0&&(n.f^=$a),Zh(n),Oa(n,0))}function Oa(i,n){var u=i.deps;if(u!==null)for(var c=n;c<u.length;c++)_x(i,u[c])}function xi(i){var n=i.f;if((n&Yn)===0){sr(i,nr);var u=Xe,c=ki;Xe=i,ki=!0;try{(n&Bn)!==0?yx(i):iv(i),nv(i);var d=gv(i);i.teardown=typeof d=="function"?d:null,i.wv=dv;var m;oo&&a&&(i.f&wr)!==0&&i.deps}finally{ki=c,Xe=u}}}async function kx(){await Promise.resolve(),at()}function l(i){var n=i.f,u=(n&Zt)!==0;if(st!==null&&!Qr){var c=Xe!==null&&(Xe.f&Yn)!==0;if(!c&&!dn?.includes(i)){var d=st.deps;if((st.f&uc)!==0)i.rv<go&&(i.rv=go,mr===null&&d!==null&&d[kr]===i?kr++:mr===null?mr=[i]:(!jn||!mr.includes(i))&&mr.push(i));else{(st.deps??=[]).push(i);var m=i.reactions;m===null?i.reactions=[st]:m.includes(st)||m.push(st)}}}else if(u&&i.deps===null&&i.effects===null){var p=i,g=p.parent;g!==null&&(g.f&Or)===0&&(p.f^=Or)}if(oi){if(xn.has(i))return xn.get(i);if(u){p=i;var h=p.v;return((p.f&nr)===0&&p.reactions!==null||hv(p))&&(h=gc(p)),xn.set(p,h),h}}else u&&(p=i,ho(p)&&Rh(p));if((i.f&Xn)!==0)throw i.v;return i.v}function hv(i){if(i.v===Vt)return!0;if(i.deps===null)return!1;for(const n of i.deps)if(xn.has(n)||(n.f&Zt)!==0&&hv(n))return!0;return!1}function U(i){var n=Qr;try{return Qr=!0,i()}finally{Qr=n}}const xx=-7169;function sr(i,n){i.f=i.f&xx|n}function N(i){if(!(typeof i!="object"||!i||i instanceof EventTarget)){if(Kr in i)wc(i);else if(!Array.isArray(i))for(let n in i){const u=i[n];typeof u=="object"&&u&&Kr in u&&wc(u)}}}function wc(i,n=new Set){if(typeof i=="object"&&i!==null&&!(i instanceof EventTarget)&&!n.has(i)){n.add(i),i instanceof Date&&i.getTime();for(let c in i)try{wc(i[c],n)}catch{}const u=Ge(i);if(u!==Object.prototype&&u!==Array.prototype&&u!==Map.prototype&&u!==Set.prototype&&u!==Date.prototype){const c=ao(u);for(let d in c){const m=c[d].get;if(m)try{m.call(i)}catch{}}}}}const vv=new Set,_c=new Set;function bv(i,n,u,c={}){function d(m){if(c.capture||vo.call(n,m),!m.cancelBubble)return ja(()=>u?.call(this,m))}return i.startsWith("pointer")||i.startsWith("touch")||i==="wheel"?ln(()=>{n.addEventListener(i,d,c)}):n.addEventListener(i,d,c),d}function yv(i,n,u,c={}){var d=bv(n,i,u,c);return()=>{i.removeEventListener(n,d,c)}}function kc(i){for(var n=0;n<i.length;n++)vv.add(i[n]);for(var u of _c)u(i)}let $v=null;function vo(i){var n=this,u=n.ownerDocument,c=i.type,d=i.composedPath?.()||[],m=d[0]||i.target;$v=i;var p=0,g=$v===i&&i.__root;if(g){var h=d.indexOf(g);if(h!==-1&&(n===document||n===window)){i.__root=n;return}var b=d.indexOf(n);if(b===-1)return;h<=b&&(p=h)}if(m=d[p]||i.target,m!==n){Yr(i,"currentTarget",{configurable:!0,get(){return m||u}});var y=st,k=Xe;pr(null),Pr(null);try{for(var v,x=[];m!==null;){var S=m.assignedSlot||m.parentNode||m.host||null;try{var E=m["__"+c];if(E!=null&&(!m.disabled||i.target===m))if(_n(E)){var[C,...Y]=E;C.apply(m,[i,...Y])}else E.call(m,i)}catch(oe){v?x.push(oe):v=oe}if(i.cancelBubble||S===n||S===null)break;m=S}if(v){for(let oe of x)queueMicrotask(()=>{throw oe});throw v}}finally{i.__root=n,delete i.currentTarget,pr(y),Pr(k)}}}function wv(i){var n=document.createElement("template");return n.innerHTML=i.replaceAll("<!>","<!---->"),n.content}function Gr(i,n){var u=Xe;u.nodes_start===null&&(u.nodes_start=i,u.nodes_end=n)}function re(i,n){var u=(n&pt)!==0,c=(n&ct)!==0,d,m=!i.startsWith("<!>");return()=>{if(De)return Gr(Qe,null),Qe;d===void 0&&(d=wv(m?i:"<!>"+i),u||(d=Wr(d)));var p=c||Gh?document.importNode(d,!0):d.cloneNode(!0);if(u){var g=Wr(p),h=p.lastChild;Gr(g,h)}else Gr(p,p);return p}}function Sx(i,n,u="svg"){var c=!i.startsWith("<!>"),d=`<${u}>${c?i:"<!>"+i}</${u}>`,m;return()=>{if(De)return Gr(Qe,null),Qe;if(!m){var p=wv(d),g=Wr(p);m=Wr(g)}var h=m.cloneNode(!0);return Gr(h,h),h}}function Tn(i,n){return Sx(i,n,"svg")}function On(i=""){if(!De){var n=Er(i+"");return Gr(n,n),n}var u=Qe;return u.nodeType!==_a&&(u.before(u=Er()),Ht(u)),Gr(u,u),u}function Ze(){if(De)return Gr(Qe,null),Qe;var i=document.createDocumentFragment(),n=document.createComment(""),u=Er();return i.append(n,u),Gr(n,u),i}function O(i,n){if(De){Xe.nodes_end=Qe,cn();return}i!==null&&i.before(n)}function Ea(){if(De&&Qe&&Qe.nodeType===ei&&Qe.textContent?.startsWith("$")){const i=Qe.textContent.substring(1);return cn(),i}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}function Ix(i){return i.endsWith("capture")&&i!=="gotpointercapture"&&i!=="lostpointercapture"}const zx=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Nx(i){return zx.includes(i)}const jx={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Tx(i){return i=i.toLowerCase(),jx[i]??i}const Ox=["touchstart","touchmove"];function Ex(i){return Ox.includes(i)}const Px=["textarea","script","style","title"];function Cx(i){return Px.includes(i)}function Oe(i,n){var u=n==null?"":typeof n=="object"?n+"":n;u!==(i.__t??=i.nodeValue)&&(i.__t=u,i.nodeValue=u+"")}function _v(i,n){return kv(i,n)}function Ux(i,n){hc(),n.intro=n.intro??!1;const u=n.target,c=De,d=Qe;try{for(var m=Wr(u);m&&(m.nodeType!==ei||m.data!==dt);)m=Xr(m);if(!m)throw Br;dr(!0),Ht(m);const p=kv(i,{...n,anchor:m});return dr(!1),p}catch(p){if(p instanceof Error&&p.message.split(`
45
+ `).some(g=>g.startsWith("https://svelte.dev/e/")))throw p;return p!==Br&&console.warn("Failed to hydrate: ",p),n.recover===!1&&Fk(),hc(),vc(u),dr(!1),_v(i,n)}finally{dr(c),Ht(d)}}const Si=new Map;function kv(i,{target:n,anchor:u,props:c={},events:d,context:m,intro:p=!0}){hc();var g=new Set,h=k=>{for(var v=0;v<k.length;v++){var x=k[v];if(!g.has(x)){g.add(x);var S=Ex(x);n.addEventListener(x,vo,{passive:S});var E=Si.get(x);E===void 0?(document.addEventListener(x,vo,{passive:S}),Si.set(x,1)):Si.set(x,E+1)}}};h(Vn(vv)),_c.add(h);var b=void 0,y=vx(()=>{var k=u??n.appendChild(Er());return ox(k,{pending:()=>{}},v=>{if(m){Je({});var x=St;x.c=m}if(d&&(c.$$events=d),De&&Gr(v,null),b=i(v,c)||{},De&&(Xe.nodes_end=Qe,Qe===null||Qe.nodeType!==ei||Qe.data!==lr))throw ka(),Br;m&&Be()}),()=>{for(var v of g){n.removeEventListener(v,vo);var x=Si.get(v);--x===0?(document.removeEventListener(v,vo),Si.delete(v)):Si.set(v,x)}_c.delete(h),k!==u&&k.parentNode?.removeChild(k)}});return xc.set(b,y),b}let xc=new WeakMap;function Mx(i,n){const u=xc.get(i);return u?(xc.delete(i),u(n)):Promise.resolve()}function Rt(i,n,...u){var c=i,d=gt,m;zn(()=>{d!==(d=n())&&(m&&(Xt(m),m=null),m=ir(()=>d(c,...u)))},Kn),De&&(c=Qe)}function En(i){St===null&&lc(),t&&St.l!==null?Ax(St).m.push(i):po(()=>{const n=U(i);if(typeof n=="function")return n})}function bo(i){St===null&&lc(),En(()=>()=>U(i))}function Ax(i){var n=i.l;return n.u??={a:[],b:[],m:[]}}function Dx(){return Symbol(ya)}function ae(i,n,u=!1){De&&cn();var c=i,d=null,m=null,p=Vt,g=u?Kn:0,h=!1;const b=(v,x=!0)=>{h=!0,k(x,v)};function y(){var v=p?d:m,x=p?m:d;v&&Ta(v),x&&Nn(x,()=>{p?m=null:d=null})}const k=(v,x)=>{if(p===(p=v))return;let S=!1;if(De){const Y=Ih(c)===bt;!!p===Y&&(c=xa(),Ht(c),dr(!1),S=!0)}var E=Yh(),C=c;p?d??=x&&ir(()=>x(C)):m??=x&&ir(()=>x(C)),E||y(),S&&dr(!0)};zn(()=>{h=!1,n(b),h||k(null,null)},g),De&&(c=Qe)}function xr(i,n){return n}function Lx(i,n,u){for(var c=i.items,d=[],m=n.length,p=0;p<m;p++)$c(n[p].e,d,!0);var g=m>0&&d.length===0&&u!==null;if(g){var h=u.parentNode;vc(h),h.append(u),c.clear(),en(i,n[0].prev,n[m-1].next)}av(d,()=>{for(var b=0;b<m;b++){var y=n[b];g||(c.delete(y.k),en(i,y.prev,y.next)),Xt(y.e,!g)}})}function gr(i,n,u,c,d,m=null){var p=i,g={flags:n,items:new Map,first:null},h=(n&X)!==0;if(h){var b=i;p=De?Ht(Wr(b)):b.appendChild(Er())}De&&cn();var y=null,k=!1,v=new Map,x=Le(()=>{var Y=u();return _n(Y)?Y:Y==null?[]:Vn(Y)}),S,E;function C(){Zx(E,S,g,v,p,d,n,c,u),m!==null&&(S.length===0?y?Ta(y):y=ir(()=>m(p)):y!==null&&Nn(y,()=>{y=null}))}zn(()=>{E??=Xe,S=l(x);var Y=S.length;if(k&&Y===0)return;k=Y===0;let oe=!1;if(De){var J=Ih(p)===bt;J!==(Y===0)&&(p=xa(),Ht(p),dr(!1),oe=!0)}if(De){for(var B=null,G,R=0;R<Y;R++){if(Qe.nodeType===ei&&Qe.data===lr){p=Qe,oe=!0,dr(!1);break}var H=S[R],K=c(H,R);G=xv(Qe,g,B,null,H,K,R,d,n,u),g.items.set(K,G),B=G}Y>0&&Ht(xa())}De?Y===0&&m&&(y=ir(()=>m(p))):C(),oe&&dr(!0),l(x)}),De&&(p=Qe)}function Zx(i,n,u,c,d,m,p,g,h){var b=(p&ce)!==0,y=(p&(_|q))!==0,k=n.length,v=u.items,x=u.first,S=x,E,C=null,Y,oe=[],J=[],B,G,R,H;if(b)for(H=0;H<k;H+=1)B=n[H],G=g(B,H),R=v.get(G),R!==void 0&&(R.a?.measure(),(Y??=new Set).add(R));for(H=0;H<k;H+=1){if(B=n[H],G=g(B,H),R=v.get(G),R===void 0){var K=c.get(G);if(K!==void 0){c.delete(G),v.set(G,K);var $e=C?C.next:S;en(u,C,K),en(u,K,$e),Sc(K,$e,d),C=K}else{var Ie=S?S.e.nodes_start:d;C=xv(Ie,u,C,C===null?u.first:C.next,B,G,H,m,p,h)}v.set(G,C),oe=[],J=[],S=C.next;continue}if(y&&Rx(R,B,H,p),(R.e.f&Rr)!==0&&(Ta(R.e),b&&(R.a?.unfix(),(Y??=new Set).delete(R))),R!==S){if(E!==void 0&&E.has(R)){if(oe.length<J.length){var ke=J[0],me;C=ke.prev;var Se=oe[0],le=oe[oe.length-1];for(me=0;me<oe.length;me+=1)Sc(oe[me],ke,d);for(me=0;me<J.length;me+=1)E.delete(J[me]);en(u,Se.prev,le.next),en(u,C,Se),en(u,le,ke),S=ke,C=le,H-=1,oe=[],J=[]}else E.delete(R),Sc(R,S,d),en(u,R.prev,R.next),en(u,R,C===null?u.first:C.next),en(u,C,R),C=R;continue}for(oe=[],J=[];S!==null&&S.k!==G;)(S.e.f&Rr)===0&&(E??=new Set).add(S),J.push(S),S=S.next;if(S===null)continue;R=S}oe.push(R),C=R,S=R.next}if(S!==null||E!==void 0){for(var ie=E===void 0?[]:Vn(E);S!==null;)(S.e.f&Rr)===0&&ie.push(S),S=S.next;var ee=ie.length;if(ee>0){var W=(p&X)!==0&&k===0?d:null;if(b){for(H=0;H<ee;H+=1)ie[H].a?.measure();for(H=0;H<ee;H+=1)ie[H].a?.fix()}Lx(u,ie,W)}}b&&ln(()=>{if(Y!==void 0)for(R of Y)R.a?.apply()}),i.first=u.first&&u.first.e,i.last=C&&C.e;for(var F of c.values())Xt(F.e);c.clear()}function Rx(i,n,u,c){(c&_)!==0&&_i(i.v,n),(c&q)!==0?_i(i.i,u):i.i=u}function xv(i,n,u,c,d,m,p,g,h,b,y){var k=(h&_)!==0,v=(h&ue)===0,x=k?v?te(d,!1,!1):Sn(d):d,S=(h&q)===0?p:Sn(p),E={i:S,v:x,k:m,a:null,e:null,prev:u,next:c};try{if(i===null){var C=document.createDocumentFragment();C.append(i=Er())}return E.e=ir(()=>g(i,x,S,b),De),E.e.prev=u&&u.e,E.e.next=c&&c.e,u===null?y||(n.first=E):(u.next=E,u.e.next=E.e),c!==null&&(c.prev=E,c.e.prev=E.e),E}finally{}}function Sc(i,n,u){for(var c=i.next?i.next.e.nodes_start:u,d=n?n.e.nodes_start:u,m=i.e.nodes_start;m!==null&&m!==c;){var p=Xr(m);d.before(m),m=p}}function en(i,n,u){n===null?i.first=u:(n.next=u,n.e.next=u&&u.e),u!==null&&(u.prev=n,u.e.prev=n&&n.e)}function Pn(i,n,u,c,d){De&&cn();var m=n.$$slots?.[u],p=!1;m===!0&&(m=n.children,p=!0),m===void 0||m(i,p?()=>c:c)}function Pa(i,n,u){De&&cn();var c=i,d,m,p=null,g=null;function h(){m&&(Nn(m),m=null),p&&(p.lastChild.remove(),c.before(p),p=null),m=g,g=null}zn(()=>{if(d!==(d=n())){var b=Yh();if(d){var y=c;b&&(p=document.createDocumentFragment(),p.append(y=Er()),m&&Ot.skipped_effects.add(m)),g=ir(()=>u(y,d))}b?Ot.add_callback(h):h()}},Kn),De&&(c=Qe)}function Sv(i,n,u,c,d,m){let p=De;De&&cn();var g,h,b=null;De&&Qe.nodeType===Ak&&(b=Qe,cn());var y=De?Qe:i,k;zn(()=>{const v=n()||null;var x=ic;v!==g&&(k&&(v===null?Nn(k,()=>{k=null,h=null}):v===h?Ta(k):Xt(k)),v&&v!==h&&(k=ir(()=>{if(b=De?b:document.createElementNS(x,v),Gr(b,b),c){De&&Cx(v)&&b.append(document.createComment(""));var S=De?Wr(b):b.appendChild(Er());De&&(S===null?dr(!1):Ht(S)),c(b,S)}Xe.nodes_end=b,y.before(b)})),g=v,g&&(h=g))},Kn),p&&(dr(!0),Ht(y))}function qx(i,n){var u=void 0,c;zn(()=>{u!==(u=n())&&(c&&(Xt(c),c=null),u&&(c=ir(()=>{yc(()=>u(i))})))})}function Iv(i){var n,u,c="";if(typeof i=="string"||typeof i=="number")c+=i;else if(typeof i=="object")if(Array.isArray(i)){var d=i.length;for(n=0;n<d;n++)i[n]&&(u=Iv(i[n]))&&(c&&(c+=" "),c+=u)}else for(u in i)i[u]&&(c&&(c+=" "),c+=u);return c}function yo(){for(var i,n,u=0,c="",d=arguments.length;u<d;u++)(i=arguments[u])&&(n=Iv(i))&&(c&&(c+=" "),c+=n);return c}function Fx(i){return typeof i=="object"?yo(i):i??""}const zv=[...`
46
+ \r\f \v\uFEFF`];function Wx(i,n,u){var c=i==null?"":""+i;if(u){for(var d in u)if(u[d])c=c?c+" "+d:d;else if(c.length)for(var m=d.length,p=0;(p=c.indexOf(d,p))>=0;){var g=p+m;(p===0||zv.includes(c[p-1]))&&(g===c.length||zv.includes(c[g]))?c=(p===0?"":c.substring(0,p))+c.substring(g+1):p=g}}return c===""?null:c}function Nv(i,n=!1){var u=n?" !important;":";",c="";for(var d in i){var m=i[d];m!=null&&m!==""&&(c+=" "+d+": "+m+u)}return c}function Ic(i){return i[0]!=="-"||i[1]!=="-"?i.toLowerCase():i}function Vx(i,n){if(n){var u="",c,d;if(Array.isArray(n)?(c=n[0],d=n[1]):c=n,i){i=String(i).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var m=!1,p=0,g=!1,h=[];c&&h.push(...Object.keys(c).map(Ic)),d&&h.push(...Object.keys(d).map(Ic));var b=0,y=-1;const E=i.length;for(var k=0;k<E;k++){var v=i[k];if(g?v==="/"&&i[k-1]==="*"&&(g=!1):m?m===v&&(m=!1):v==="/"&&i[k+1]==="*"?g=!0:v==='"'||v==="'"?m=v:v==="("?p++:v===")"&&p--,!g&&m===!1&&p===0){if(v===":"&&y===-1)y=k;else if(v===";"||k===E-1){if(y!==-1){var x=Ic(i.substring(b,y).trim());if(!h.includes(x)){v!==";"&&k++;var S=i.substring(b,k).trim();u+=" "+S+";"}}b=k+1,y=-1}}}}return c&&(u+=Nv(c)),d&&(u+=Nv(d,!0)),u=u.trim(),u===""?null:u}return i==null?null:String(i)}function fn(i,n,u,c,d,m){var p=i.__className;if(De||p!==u||p===void 0){var g=Wx(u,c,m);(!De||g!==i.getAttribute("class"))&&(g==null?i.removeAttribute("class"):n?i.className=g:i.setAttribute("class",g)),i.__className=u}else if(m&&d!==m)for(var h in m){var b=!!m[h];(d==null||b!==!!d[h])&&i.classList.toggle(h,b)}return m}function zc(i,n={},u,c){for(var d in u){var m=u[d];n[d]!==m&&(u[d]==null?i.style.removeProperty(d):i.style.setProperty(d,m,c))}}function $o(i,n,u,c){var d=i.__style;if(De||d!==n){var m=Vx(n,c);(!De||m!==i.getAttribute("style"))&&(m==null?i.removeAttribute("style"):i.style.cssText=m),i.__style=n}else c&&(Array.isArray(c)?(zc(i,u?.[0],c[0]),zc(i,u?.[1],c[1],"important")):zc(i,u,c));return c}function Nc(i,n,u=!1){if(i.multiple){if(n==null)return;if(!_n(n))return Bk();for(var c of i.options)c.selected=n.includes(jv(c));return}for(c of i.options){var d=jv(c);if(dx(d,n)){c.selected=!0;return}}(!u||n!==void 0)&&(i.selectedIndex=-1)}function Qx(i){var n=new MutationObserver(()=>{Nc(i,i.__value)});n.observe(i,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),bc(()=>{n.disconnect()})}function jv(i){return"__value"in i?i.__value:i.value}const wo=Symbol("class"),_o=Symbol("style"),Tv=Symbol("is custom element"),Ov=Symbol("is html");function Gx(i){if(De){var n=!1,u=()=>{if(!n){if(n=!0,i.hasAttribute("value")){var c=i.value;si(i,"value",null),i.value=c}if(i.hasAttribute("checked")){var d=i.checked;si(i,"checked",null),i.checked=d}}};i.__on_r=u,ln(u),Hh()}}function Jx(i,n){n?i.hasAttribute("selected")||i.setAttribute("selected",""):i.removeAttribute("selected")}function si(i,n,u,c){var d=Ev(i);De&&(d[n]=i.getAttribute(n),n==="src"||n==="srcset"||n==="href"&&i.nodeName==="LINK")||d[n]!==(d[n]=u)&&(n==="loading"&&(i[Mk]=u),u==null?i.removeAttribute(n):typeof u!="string"&&Cv(i).includes(n)?i[n]=u:i.setAttribute(n,u))}function Bx(i,n,u,c,d=!1,m=!1){if(De&&d&&i.tagName==="INPUT"){var p=i,g=p.type==="checkbox"?"defaultChecked":"defaultValue";g in u||Gx(p)}var h=Ev(i),b=h[Tv],y=!h[Ov];let k=De&&b;k&&dr(!1);var v=n||{},x=i.tagName==="OPTION";for(var S in n)S in u||(u[S]=null);u.class?u.class=Fx(u.class):u[wo]&&(u.class=null),u[_o]&&(u.style??=null);var E=Cv(i);for(const R in u){let H=u[R];if(x&&R==="value"&&H==null){i.value=i.__value="",v[R]=H;continue}if(R==="class"){var C=i.namespaceURI==="http://www.w3.org/1999/xhtml";fn(i,C,H,c,n?.[wo],u[wo]),v[R]=H,v[wo]=u[wo];continue}if(R==="style"){$o(i,H,n?.[_o],u[_o]),v[R]=H,v[_o]=u[_o];continue}var Y=v[R];if(!(H===Y&&!(H===void 0&&i.hasAttribute(R)))){v[R]=H;var oe=R[0]+R[1];if(oe!=="$$")if(oe==="on"){const K={},$e="$$"+R;let Ie=R.slice(2);var J=Nx(Ie);if(Ix(Ie)&&(Ie=Ie.slice(0,-7),K.capture=!0),!J&&Y){if(H!=null)continue;i.removeEventListener(Ie,v[$e],K),v[$e]=null}if(H!=null)if(J)i[`__${Ie}`]=H,kc([Ie]);else{let ke=function(me){v[R].call(this,me)};v[$e]=bv(Ie,i,ke,K)}else J&&(i[`__${Ie}`]=void 0)}else if(R==="style")si(i,R,H);else if(R==="autofocus")fx(i,!!H);else if(!b&&(R==="__value"||R==="value"&&H!=null))i.value=i.__value=H;else if(R==="selected"&&x)Jx(i,H);else{var B=R;y||(B=Tx(B));var G=B==="defaultValue"||B==="defaultChecked";if(H==null&&!b&&!G)if(h[R]=null,B==="value"||B==="checked"){let K=i;const $e=n===void 0;if(B==="value"){let Ie=K.defaultValue;K.removeAttribute(B),K.defaultValue=Ie,K.value=K.__value=$e?Ie:null}else{let Ie=K.defaultChecked;K.removeAttribute(B),K.defaultChecked=Ie,K.checked=$e?Ie:!1}}else i.removeAttribute(R);else G||E.includes(B)&&(b||typeof H!="string")?(i[B]=H,B in h&&(h[B]=Vt)):typeof H!="function"&&si(i,B,H)}}}return k&&dr(!0),v}function Qt(i,n,u=[],c=[],d,m=!1,p=!1){Dh(u,c,g=>{var h=void 0,b={},y=i.nodeName==="SELECT",k=!1;if(zn(()=>{var x=n(...g.map(l)),S=Bx(i,h,x,d,m,p);k&&y&&"value"in x&&Nc(i,x.value);for(let C of Object.getOwnPropertySymbols(b))x[C]||Xt(b[C]);for(let C of Object.getOwnPropertySymbols(x)){var E=x[C];C.description===ya&&(!h||E!==h[C])&&(b[C]&&Xt(b[C]),b[C]=ir(()=>qx(i,()=>E))),S[C]=E}h=S}),y){var v=i;yc(()=>{Nc(v,h.value,!0),Qx(v)})}k=!0})}function Ev(i){return i.__attributes??={[Tv]:i.nodeName.includes("-"),[Ov]:i.namespaceURI===ba}}var Pv=new Map;function Cv(i){var n=i.getAttribute("is")||i.nodeName,u=Pv.get(n);if(u)return u;Pv.set(n,u=[]);for(var c,d=i,m=Element.prototype;m!==d;){c=ao(d);for(var p in c)c[p].set&&u.push(p);d=Ge(d)}return u}function Ca(i,n,u=n){var c=new WeakSet;Xh(i,"input",async d=>{var m=d?i.defaultValue:i.value;if(m=jc(i)?Tc(m):m,u(m),Ot!==null&&c.add(Ot),await kx(),m!==(m=n())){var p=i.selectionStart,g=i.selectionEnd,h=i.value.length;if(i.value=m??"",g!==null){var b=i.value.length;p===g&&g===h&&b>h?(i.selectionStart=b,i.selectionEnd=b):(i.selectionStart=p,i.selectionEnd=Math.min(g,b))}}}),(De&&i.defaultValue!==i.value||U(n)==null&&i.value)&&(u(jc(i)?Tc(i.value):i.value),Ot!==null&&c.add(Ot)),ii(()=>{var d=n();if(i===document.activeElement){var m=za??Ot;if(c.has(m))return}jc(i)&&d===Tc(i.value)||i.type==="date"&&!d&&!i.value||d!==i.value&&(i.value=d??"")})}function jc(i){var n=i.type;return n==="number"||n==="range"}function Tc(i){return i===""?null:+i}function Yx(i,n,u=n){Xh(i,"change",()=>{u(i.files)}),De&&i.files&&u(i.files),ii(()=>{i.files=n()})}function Uv(i,n){return i===n||i?.[Kr]===n}function Ur(i={},n,u,c){return yc(()=>{var d,m;return ii(()=>{d=m,m=[],U(()=>{i!==u(...m)&&(n(i,...m),d&&Uv(u(...d),i)&&n(null,...d))})}),()=>{ln(()=>{m&&Uv(u(...m),i)&&n(null,...m)})}}),i}function er(i=!1){const n=St,u=n.l.u;if(!u)return;let c=()=>N(n.s);if(i){let d=0,m={};const p=fo(()=>{let g=!1;const h=n.s;for(const b in h)h[b]!==m[b]&&(m[b]=h[b],g=!0);return g&&d++,d});c=()=>l(p)}u.b.length&&rv(()=>{Mv(n,c),Gn(u.b)}),po(()=>{const d=U(()=>u.m.map(Tr));return()=>{for(const m of d)typeof m=="function"&&m()}}),u.a.length&&po(()=>{Mv(n,c),Gn(u.a)})}function Mv(i,n){if(i.l.s)for(const u of i.l.s)l(u);n()}function Av(i,n,u){if(i==null)return n(void 0),gt;const c=U(()=>i.subscribe(n,u));return c.unsubscribe?()=>c.unsubscribe():c}const Ii=[];function Kx(i,n=gt){let u=null;const c=new Set;function d(g){if(Nh(i,g)&&(i=g,u)){const h=!Ii.length;for(const b of c)b[1](),Ii.push(b,i);if(h){for(let b=0;b<Ii.length;b+=2)Ii[b][0](Ii[b+1]);Ii.length=0}}}function m(g){d(g(i))}function p(g,h=gt){const b=[g,h];return c.add(b),c.size===1&&(u=n(d,m)||gt),g(i),()=>{c.delete(b),c.size===0&&u&&(u(),u=null)}}return{set:d,update:m,subscribe:p}}function ko(i){let n;return Av(i,u=>n=u)(),n}let Ua=!1,Oc=Symbol();function Hx(i,n,u){const c=u[n]??={store:null,source:te(void 0),unsubscribe:gt};if(c.store!==i&&!(Oc in u))if(c.unsubscribe(),c.store=i??null,i==null)c.source.v=void 0,c.unsubscribe=gt;else{var d=!0;c.unsubscribe=Av(i,m=>{d?c.source.v=m:$(c.source,m)}),d=!1}return i&&Oc in u?ko(i):l(c.source)}function Xx(){const i={};function n(){bc(()=>{for(var u in i)i[u].unsubscribe();Yr(i,Oc,{enumerable:!1,value:!0})})}return[i,n]}function e0(i){var n=Ua;try{return Ua=!1,[i(),Ua]}finally{Ua=n}}const t0={get(i,n){if(!i.exclude.includes(n))return i.props[n]},set(i,n){return!1},getOwnPropertyDescriptor(i,n){if(!i.exclude.includes(n)&&n in i.props)return{enumerable:!0,configurable:!0,value:i.props[n]}},has(i,n){return i.exclude.includes(n)?!1:n in i.props},ownKeys(i){return Reflect.ownKeys(i.props).filter(n=>!i.exclude.includes(n))}};function Lt(i,n,u){return new Proxy({props:i,exclude:n},t0)}const r0={get(i,n){if(!i.exclude.includes(n))return l(i.version),n in i.special?i.special[n]():i.props[n]},set(i,n,u){if(!(n in i.special)){var c=Xe;try{Pr(i.parent_effect),i.special[n]=w({get[n](){return i.props[n]}},n,L)}finally{Pr(c)}}return i.special[n](u),Fh(i.version),!0},getOwnPropertyDescriptor(i,n){if(!i.exclude.includes(n)&&n in i.props)return{enumerable:!0,configurable:!0,value:i.props[n]}},deleteProperty(i,n){return i.exclude.includes(n)||(i.exclude.push(n),Fh(i.version)),!0},has(i,n){return i.exclude.includes(n)?!1:n in i.props},ownKeys(i){return Reflect.ownKeys(i.props).filter(n=>!i.exclude.includes(n))}};function mn(i,n){return new Proxy({props:i,exclude:n,special:{},version:Sn(0),parent_effect:Xe},r0)}const n0={get(i,n){let u=i.props.length;for(;u--;){let c=i.props[u];if(Dt(c)&&(c=c()),typeof c=="object"&&c!==null&&n in c)return c[n]}},set(i,n,u){let c=i.props.length;for(;c--;){let d=i.props[c];Dt(d)&&(d=d());const m=jr(d,n);if(m&&m.set)return m.set(u),!0}return!1},getOwnPropertyDescriptor(i,n){let u=i.props.length;for(;u--;){let c=i.props[u];if(Dt(c)&&(c=c()),typeof c=="object"&&c!==null&&n in c){const d=jr(c,n);return d&&!d.configurable&&(d.configurable=!0),d}}},has(i,n){if(n===Kr||n===cc)return!1;for(let u of i.props)if(Dt(u)&&(u=u()),u!=null&&n in u)return!0;return!1},ownKeys(i){const n=[];for(let u of i.props)if(Dt(u)&&(u=u()),!!u){for(const c in u)n.includes(c)||n.push(c);for(const c of Object.getOwnPropertySymbols(u))n.includes(c)||n.push(c)}return n}};function Tt(...i){return new Proxy({props:i},n0)}function w(i,n,u,c){var d=!t||(u&ge)!==0,m=(u&ye)!==0,p=(u&Me)!==0,g=c,h=!0,b=()=>(h&&(h=!1,g=p?U(c):c),g),y;if(m){var k=Kr in i||cc in i;y=jr(i,n)?.set??(k&&n in i?J=>i[n]=J:void 0)}var v,x=!1;m?[v,x]=e0(()=>i[n]):v=i[n],v===void 0&&c!==void 0&&(v=b(),y&&(d&&Wk(),y(v)));var S;if(d?S=()=>{var J=i[n];return J===void 0?b():(h=!0,J)}:S=()=>{var J=i[n];return J!==void 0&&(g=void 0),J===void 0?g:J},d&&(u&L)===0)return S;if(y){var E=i.$$legacy;return(function(J,B){return arguments.length>0?((!d||!B||E||x)&&y(B?S():J),J):S()})}var C=!1,Y=((u&ze)!==0?fo:Le)(()=>(C=!1,S()));m&&l(Y);var oe=Xe;return(function(J,B){if(arguments.length>0){const G=B?l(Y):d&&m?In(J):J;return $(Y,G),C=!0,g!==void 0&&(g=G),J}return oi&&C||(oe.f&Yn)!==0?Y.v:l(Y)})}function i0(i){return new o0(i)}class o0{#e;#t;constructor(n){var u=new Map,c=(m,p)=>{var g=te(p,!1,!1);return u.set(m,g),g};const d=new Proxy({...n.props||{},$$events:{}},{get(m,p){return l(u.get(p)??c(p,Reflect.get(m,p)))},has(m,p){return p===cc?!0:(l(u.get(p)??c(p,Reflect.get(m,p))),Reflect.has(m,p))},set(m,p,g){return $(u.get(p)??c(p,g),g),Reflect.set(m,p,g)}});this.#t=(n.hydrate?Ux:_v)(n.component,{target:n.target,anchor:n.anchor,props:d,context:n.context,intro:n.intro??!1,recover:n.recover}),(!n?.props?.$$host||n.sync===!1)&&at(),this.#e=d.$$events;for(const m of Object.keys(this.#t))m==="$set"||m==="$destroy"||m==="$on"||Yr(this,m,{get(){return this.#t[m]},set(p){this.#t[m]=p},enumerable:!0});this.#t.$set=m=>{Object.assign(d,m)},this.#t.$destroy=()=>{Mx(this.#t)}}$set(n){this.#t.$set(n)}$on(n,u){this.#e[n]=this.#e[n]||[];const c=(...d)=>u.call(this,...d);return this.#e[n].push(c),()=>{this.#e[n]=this.#e[n].filter(d=>d!==c)}}$destroy(){this.#t.$destroy()}}let Dv;typeof HTMLElement=="function"&&(Dv=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(i,n,u){super(),this.$$ctor=i,this.$$s=n,u&&this.attachShadow({mode:"open"})}addEventListener(i,n,u){if(this.$$l[i]=this.$$l[i]||[],this.$$l[i].push(n),this.$$c){const c=this.$$c.$on(i,n);this.$$l_u.set(n,c)}super.addEventListener(i,n,u)}removeEventListener(i,n,u){if(super.removeEventListener(i,n,u),this.$$c){const c=this.$$l_u.get(n);c&&(c(),this.$$l_u.delete(n))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(c){return d=>{const m=document.createElement("slot");c!=="default"&&(m.name=c),O(d,m)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const n={},u=a0(this);for(const c of this.$$s)c in u&&(c==="default"&&!this.$$d.children?(this.$$d.children=i(c),n.default=!0):n[c]=i(c));for(const c of this.attributes){const d=this.$$g_p(c.name);d in this.$$d||(this.$$d[d]=Ma(d,c.value,this.$$p_d,"toProp"))}for(const c in this.$$p_d)!(c in this.$$d)&&this[c]!==void 0&&(this.$$d[c]=this[c],delete this[c]);this.$$c=i0({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$host:this}}),this.$$me=hx(()=>{ii(()=>{this.$$r=!0;for(const c of Qn(this.$$c)){if(!this.$$p_d[c]?.reflect)continue;this.$$d[c]=this.$$c[c];const d=Ma(c,this.$$d[c],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[c].attribute||c):this.setAttribute(this.$$p_d[c].attribute||c,d)}this.$$r=!1})});for(const c in this.$$l)for(const d of this.$$l[c]){const m=this.$$c.$on(c,d);this.$$l_u.set(d,m)}this.$$l={}}}attributeChangedCallback(i,n,u){this.$$r||(i=this.$$g_p(i),this.$$d[i]=Ma(i,u,this.$$p_d,"toProp"),this.$$c?.$set({[i]:this.$$d[i]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(i){return Qn(this.$$p_d).find(n=>this.$$p_d[n].attribute===i||!this.$$p_d[n].attribute&&n.toLowerCase()===i)||i}});function Ma(i,n,u,c){const d=u[i]?.type;if(n=d==="Boolean"&&typeof n!="boolean"?n!=null:n,!c||!u[i])return n;if(c==="toAttribute")switch(d){case"Object":case"Array":return n==null?null:JSON.stringify(n);case"Boolean":return n?"":null;case"Number":return n??null;default:return n}else switch(d){case"Object":case"Array":return n&&JSON.parse(n);case"Boolean":return n;case"Number":return n!=null?+n:n;default:return n}}function a0(i){const n={};return i.childNodes.forEach(u=>{n[u.slot||"default"]=!0}),n}function Lv(i,n,u,c,d,m){let p=class extends Dv{constructor(){super(i,u,d),this.$$p_d=n}static get observedAttributes(){return Qn(n).map(g=>(n[g].attribute||g).toLowerCase())}};return Qn(n).forEach(g=>{Yr(p.prototype,g,{get(){return this.$$c&&g in this.$$c?this.$$c[g]:this.$$d[g]},set(h){h=Ma(g,h,n),this.$$d[g]=h;var b=this.$$c;if(b){var y=jr(b,g)?.get;y?b[g]=h:b.$set({[g]:h})}}})}),c.forEach(g=>{Yr(p.prototype,g,{get(){return this.$$c?.[g]}})}),i.element=p,p}const s0={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};var u0=Tn("<svg><!><!></svg>");function ui(i,n){const u=mn(n,["children","$$slots","$$events","$$legacy"]),c=mn(u,["type","name","color","size","stroke","iconNode"]);Je(n,!1);let d=w(n,"type",8),m=w(n,"name",8),p=w(n,"color",8,"currentColor"),g=w(n,"size",8,24),h=w(n,"stroke",8,2),b=w(n,"iconNode",8);er();var y=u0();Qt(y,()=>({...s0[d()],...c,width:g(),height:g(),class:(N(m()),N(u),U(()=>`tabler-icon tabler-icon-${m()} ${u.class??""}`)),...d()==="filled"?{fill:p()}:{"stroke-width":h(),stroke:p()}}));var k=Z(y);gr(k,1,b,xr,(x,S)=>{var E=lt(()=>Yt(l(S),2));let C=()=>l(E)[0],Y=()=>l(E)[1];var oe=Ze(),J=Te(oe);Sv(J,C,!0,(B,G)=>{Qt(B,()=>({...Y()}))}),O(x,oe)});var v=fe(k);Pn(v,n,"default",{}),A(y),O(i,y),Be()}function Zv(i,n){const u=mn(n,["children","$$slots","$$events","$$legacy"]),c=[["path",{d:"M9 14l-4 -4l4 -4"}],["path",{d:"M5 10h11a4 4 0 1 1 0 8h-1"}]];ui(i,Tt({type:"outline",name:"arrow-back-up"},()=>u,{get iconNode(){return c},children:(d,m)=>{var p=Ze(),g=Te(p);Pn(g,n,"default",{}),O(d,p)},$$slots:{default:!0}}))}function Rv(i,n){const u=mn(n,["children","$$slots","$$events","$$legacy"]),c=[["path",{d:"M15 6l-6 6l6 6"}]];ui(i,Tt({type:"outline",name:"chevron-left"},()=>u,{get iconNode(){return c},children:(d,m)=>{var p=Ze(),g=Te(p);Pn(g,n,"default",{}),O(d,p)},$$slots:{default:!0}}))}function Aa(i,n){const u=mn(n,["children","$$slots","$$events","$$legacy"]),c=[["path",{d:"M9 6l6 6l-6 6"}]];ui(i,Tt({type:"outline",name:"chevron-right"},()=>u,{get iconNode(){return c},children:(d,m)=>{var p=Ze(),g=Te(p);Pn(g,n,"default",{}),O(d,p)},$$slots:{default:!0}}))}function c0(i,n){const u=mn(n,["children","$$slots","$$events","$$legacy"]),c=[["path",{d:"M5 12l-2 0l9 -9l9 9l-2 0"}],["path",{d:"M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7"}],["path",{d:"M10 12h4v4h-4z"}]];ui(i,Tt({type:"outline",name:"home-2"},()=>u,{get iconNode(){return c},children:(d,m)=>{var p=Ze(),g=Te(p);Pn(g,n,"default",{}),O(d,p)},$$slots:{default:!0}}))}function qv(i,n){const u=mn(n,["children","$$slots","$$events","$$legacy"]),c=[["path",{d:"M15 8h.01"}],["path",{d:"M3 6a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3v-12z"}],["path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5"}],["path",{d:"M14 14l1 -1c.928 -.893 2.072 -.893 3 0l3 3"}]];ui(i,Tt({type:"outline",name:"photo"},()=>u,{get iconNode(){return c},children:(d,m)=>{var p=Ze(),g=Te(p);Pn(g,n,"default",{}),O(d,p)},$$slots:{default:!0}}))}function Fv(i,n){const u=mn(n,["children","$$slots","$$events","$$legacy"]),c=[["path",{d:"M6 21l15 -15l-3 -3l-15 15l3 3"}],["path",{d:"M15 6l3 3"}],["path",{d:"M9 3a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2"}],["path",{d:"M19 13a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2"}]];ui(i,Tt({type:"outline",name:"wand"},()=>u,{get iconNode(){return c},children:(d,m)=>{var p=Ze(),g=Te(p);Pn(g,n,"default",{}),O(d,p)},$$slots:{default:!0}}))}function Wv(i,n){const u=mn(n,["children","$$slots","$$events","$$legacy"]),c=[["path",{d:"M18 6l-12 12"}],["path",{d:"M6 6l12 12"}]];ui(i,Tt({type:"outline",name:"x"},()=>u,{get iconNode(){return c},children:(d,m)=>{var p=Ze(),g=Te(p);Pn(g,n,"default",{}),O(d,p)},$$slots:{default:!0}}))}const l0={questions:[],questionsData:{}},Vv=Symbol("formResponses"),d0=()=>{const i=Kx(l0),n=(g,h,b,y)=>{if((h==null||h===""||Array.isArray(h)&&h.length===0)&&!y){m(g);return}let k;switch(b){case"rating":k={rating:h};break;case"nps":k={nps:h};break;case"long_text":k={longText:h};break;case"short_answer":k={shortAnswer:h};break;case"single_choice":k={singleChoice:h};break;case"multiple_choice_multiple":k={multipleChoiceMultiple:Array.isArray(h)?h:[h]};break;case"nested_selection":k={nestedSelection:Array.isArray(h)?h:[h]};break;case"annotation":k={annotation:h};break;default:k=h}i.update(v=>{const x=v.questions.findIndex(S=>S.questionId===g);return x!==-1?{...v,questions:v.questions.map((S,E)=>E===x?{...S,answer:k,type:b,error:y}:S)}:{...v,questions:[...v.questions,{questionId:g,answer:k,type:b,error:y}]}})},u=(g,h)=>{p(g)&&i.update(b=>({...b,questions:b.questions.map(y=>y.questionId===g?{...y,error:h}:y)}))},c=()=>{i.update(g=>({...g,questions:g.questions.map(h=>({...h,error:void 0}))}))},d=()=>ko(i).questions.some(g=>g.error!==void 0&&g.error!==null&&g.error!==""),m=g=>{i.update(h=>({...h,questions:h.questions.filter(b=>b.questionId!==g)}))},p=g=>ko(i).questions.find(h=>h.questionId===g);return{formResponses:i,updateQuestionResponse:n,getQuestionResponse:p,removeQuestionResponse:m,setQuestionError:u,hasValidationErrors:d,clearValidationErrors:c,clearResponses:()=>{i.update(g=>({...g,questions:[]}))},bulkUpdateResponses:g=>{i.update(h=>({...h,questions:g}))},storeQuestions:g=>{i.update(h=>({...h,questionsData:g}))},getQuestionData:g=>ko(i).questionsData[g]}},Qv=()=>{const i=d0();return Th(Vv,i),i},pn=()=>dc(Vv),Ec="-",f0=i=>{const n=p0(i),{conflictingClassGroups:u,conflictingClassGroupModifiers:c}=i;return{getClassGroupId:d=>{const m=d.split(Ec);return m[0]===""&&m.length!==1&&m.shift(),Gv(m,n)||m0(d)},getConflictingClassGroupIds:(d,m)=>{const p=u[d]||[];return m&&c[d]?[...p,...c[d]]:p}}},Gv=(i,n)=>{if(i.length===0)return n.classGroupId;const u=i[0],c=n.nextPart.get(u),d=c?Gv(i.slice(1),c):void 0;if(d)return d;if(n.validators.length===0)return;const m=i.join(Ec);return n.validators.find(({validator:p})=>p(m))?.classGroupId},Jv=/^\[(.+)\]$/,m0=i=>{if(Jv.test(i)){const n=Jv.exec(i)[1],u=n?.substring(0,n.indexOf(":"));if(u)return"arbitrary.."+u}},p0=i=>{const{theme:n,classGroups:u}=i,c={nextPart:new Map,validators:[]};for(const d in u)Pc(u[d],c,d,n);return c},Pc=(i,n,u,c)=>{i.forEach(d=>{if(typeof d=="string"){const m=d===""?n:Bv(n,d);m.classGroupId=u;return}if(typeof d=="function"){if(g0(d)){Pc(d(c),n,u,c);return}n.validators.push({validator:d,classGroupId:u});return}Object.entries(d).forEach(([m,p])=>{Pc(p,Bv(n,m),u,c)})})},Bv=(i,n)=>{let u=i;return n.split(Ec).forEach(c=>{u.nextPart.has(c)||u.nextPart.set(c,{nextPart:new Map,validators:[]}),u=u.nextPart.get(c)}),u},g0=i=>i.isThemeGetter,h0=i=>{if(i<1)return{get:()=>{},set:()=>{}};let n=0,u=new Map,c=new Map;const d=(m,p)=>{u.set(m,p),n++,n>i&&(n=0,c=u,u=new Map)};return{get(m){let p=u.get(m);if(p!==void 0)return p;if((p=c.get(m))!==void 0)return d(m,p),p},set(m,p){u.has(m)?u.set(m,p):d(m,p)}}},Cc="!",Uc=":",v0=Uc.length,b0=i=>{const{prefix:n,experimentalParseClassName:u}=i;let c=d=>{const m=[];let p=0,g=0,h=0,b;for(let S=0;S<d.length;S++){let E=d[S];if(p===0&&g===0){if(E===Uc){m.push(d.slice(h,S)),h=S+v0;continue}if(E==="/"){b=S;continue}}E==="["?p++:E==="]"?p--:E==="("?g++:E===")"&&g--}const y=m.length===0?d:d.substring(h),k=y0(y),v=k!==y,x=b&&b>h?b-h:void 0;return{modifiers:m,hasImportantModifier:v,baseClassName:k,maybePostfixModifierPosition:x}};if(n){const d=n+Uc,m=c;c=p=>p.startsWith(d)?m(p.substring(d.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:p,maybePostfixModifierPosition:void 0}}if(u){const d=c;c=m=>u({className:m,parseClassName:d})}return c},y0=i=>i.endsWith(Cc)?i.substring(0,i.length-1):i.startsWith(Cc)?i.substring(1):i,$0=i=>{const n=Object.fromEntries(i.orderSensitiveModifiers.map(u=>[u,!0]));return u=>{if(u.length<=1)return u;const c=[];let d=[];return u.forEach(m=>{m[0]==="["||n[m]?(c.push(...d.sort(),m),d=[]):d.push(m)}),c.push(...d.sort()),c}},w0=i=>({cache:h0(i.cacheSize),parseClassName:b0(i),sortModifiers:$0(i),...f0(i)}),_0=/\s+/,k0=(i,n)=>{const{parseClassName:u,getClassGroupId:c,getConflictingClassGroupIds:d,sortModifiers:m}=n,p=[],g=i.trim().split(_0);let h="";for(let b=g.length-1;b>=0;b-=1){const y=g[b],{isExternal:k,modifiers:v,hasImportantModifier:x,baseClassName:S,maybePostfixModifierPosition:E}=u(y);if(k){h=y+(h.length>0?" "+h:h);continue}let C=!!E,Y=c(C?S.substring(0,E):S);if(!Y){if(!C){h=y+(h.length>0?" "+h:h);continue}if(Y=c(S),!Y){h=y+(h.length>0?" "+h:h);continue}C=!1}const oe=m(v).join(":"),J=x?oe+Cc:oe,B=J+Y;if(p.includes(B))continue;p.push(B);const G=d(Y,C);for(let R=0;R<G.length;++R){const H=G[R];p.push(J+H)}h=y+(h.length>0?" "+h:h)}return h};function x0(){let i=0,n,u,c="";for(;i<arguments.length;)(n=arguments[i++])&&(u=Yv(n))&&(c&&(c+=" "),c+=u);return c}const Yv=i=>{if(typeof i=="string")return i;let n,u="";for(let c=0;c<i.length;c++)i[c]&&(n=Yv(i[c]))&&(u&&(u+=" "),u+=n);return u};function Mc(i,...n){let u,c,d,m=p;function p(h){const b=n.reduce((y,k)=>k(y),i());return u=w0(b),c=u.cache.get,d=u.cache.set,m=g,g(h)}function g(h){const b=c(h);if(b)return b;const y=k0(h,u);return d(h,y),y}return function(){return m(x0.apply(null,arguments))}}const Kt=i=>{const n=u=>u[i]||[];return n.isThemeGetter=!0,n},Kv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Hv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,S0=/^\d+\/\d+$/,I0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,z0=/\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$/,N0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,j0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,T0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,zi=i=>S0.test(i),nt=i=>!!i&&!Number.isNaN(Number(i)),Cn=i=>!!i&&Number.isInteger(Number(i)),Ac=i=>i.endsWith("%")&&nt(i.slice(0,-1)),gn=i=>I0.test(i),O0=()=>!0,E0=i=>z0.test(i)&&!N0.test(i),Xv=()=>!1,P0=i=>j0.test(i),C0=i=>T0.test(i),U0=i=>!Ee(i)&&!Pe(i),M0=i=>Ni(i,ib,Xv),Ee=i=>Kv.test(i),ci=i=>Ni(i,ob,E0),Dc=i=>Ni(i,R0,nt),eb=i=>Ni(i,rb,Xv),A0=i=>Ni(i,nb,C0),Da=i=>Ni(i,ab,P0),Pe=i=>Hv.test(i),xo=i=>ji(i,ob),D0=i=>ji(i,q0),tb=i=>ji(i,rb),L0=i=>ji(i,ib),Z0=i=>ji(i,nb),La=i=>ji(i,ab,!0),Ni=(i,n,u)=>{const c=Kv.exec(i);return c?c[1]?n(c[1]):u(c[2]):!1},ji=(i,n,u=!1)=>{const c=Hv.exec(i);return c?c[1]?n(c[1]):u:!1},rb=i=>i==="position"||i==="percentage",nb=i=>i==="image"||i==="url",ib=i=>i==="length"||i==="size"||i==="bg-size",ob=i=>i==="length",R0=i=>i==="number",q0=i=>i==="family-name",ab=i=>i==="shadow",Lc=()=>{const i=Kt("color"),n=Kt("font"),u=Kt("text"),c=Kt("font-weight"),d=Kt("tracking"),m=Kt("leading"),p=Kt("breakpoint"),g=Kt("container"),h=Kt("spacing"),b=Kt("radius"),y=Kt("shadow"),k=Kt("inset-shadow"),v=Kt("text-shadow"),x=Kt("drop-shadow"),S=Kt("blur"),E=Kt("perspective"),C=Kt("aspect"),Y=Kt("ease"),oe=Kt("animate"),J=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],G=()=>[...B(),Pe,Ee],R=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto","contain","none"],K=()=>[Pe,Ee,h],$e=()=>[zi,"full","auto",...K()],Ie=()=>[Cn,"none","subgrid",Pe,Ee],ke=()=>["auto",{span:["full",Cn,Pe,Ee]},Cn,Pe,Ee],me=()=>[Cn,"auto",Pe,Ee],Se=()=>["auto","min","max","fr",Pe,Ee],le=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ie=()=>["start","end","center","stretch","center-safe","end-safe"],ee=()=>["auto",...K()],W=()=>[zi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...K()],F=()=>[i,Pe,Ee],I=()=>[...B(),tb,eb,{position:[Pe,Ee]}],j=()=>["no-repeat",{repeat:["","x","y","space","round"]}],D=()=>["auto","cover","contain",L0,M0,{size:[Pe,Ee]}],ne=()=>[Ac,xo,ci],V=()=>["","none","full",b,Pe,Ee],Ce=()=>["",nt,xo,ci],_e=()=>["solid","dashed","dotted","double"],Q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],de=()=>[nt,Ac,tb,eb],Ne=()=>["","none",S,Pe,Ee],xe=()=>["none",nt,Pe,Ee],Re=()=>["none",nt,Pe,Ee],Ye=()=>[nt,Pe,Ee],ut=()=>[zi,"full",...K()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[gn],breakpoint:[gn],color:[O0],container:[gn],"drop-shadow":[gn],ease:["in","out","in-out"],font:[U0],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[gn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[gn],shadow:[gn],spacing:["px",nt],text:[gn],"text-shadow":[gn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",zi,Ee,Pe,C]}],container:["container"],columns:[{columns:[nt,Ee,Pe,g]}],"break-after":[{"break-after":J()}],"break-before":[{"break-before":J()}],"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:G()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$e()}],"inset-x":[{"inset-x":$e()}],"inset-y":[{"inset-y":$e()}],start:[{start:$e()}],end:[{end:$e()}],top:[{top:$e()}],right:[{right:$e()}],bottom:[{bottom:$e()}],left:[{left:$e()}],visibility:["visible","invisible","collapse"],z:[{z:[Cn,"auto",Pe,Ee]}],basis:[{basis:[zi,"full","auto",g,...K()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[nt,zi,"auto","initial","none",Ee]}],grow:[{grow:["",nt,Pe,Ee]}],shrink:[{shrink:["",nt,Pe,Ee]}],order:[{order:[Cn,"first","last","none",Pe,Ee]}],"grid-cols":[{"grid-cols":Ie()}],"col-start-end":[{col:ke()}],"col-start":[{"col-start":me()}],"col-end":[{"col-end":me()}],"grid-rows":[{"grid-rows":Ie()}],"row-start-end":[{row:ke()}],"row-start":[{"row-start":me()}],"row-end":[{"row-end":me()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Se()}],"auto-rows":[{"auto-rows":Se()}],gap:[{gap:K()}],"gap-x":[{"gap-x":K()}],"gap-y":[{"gap-y":K()}],"justify-content":[{justify:[...le(),"normal"]}],"justify-items":[{"justify-items":[...ie(),"normal"]}],"justify-self":[{"justify-self":["auto",...ie()]}],"align-content":[{content:["normal",...le()]}],"align-items":[{items:[...ie(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ie(),{baseline:["","last"]}]}],"place-content":[{"place-content":le()}],"place-items":[{"place-items":[...ie(),"baseline"]}],"place-self":[{"place-self":["auto",...ie()]}],p:[{p:K()}],px:[{px:K()}],py:[{py:K()}],ps:[{ps:K()}],pe:[{pe:K()}],pt:[{pt:K()}],pr:[{pr:K()}],pb:[{pb:K()}],pl:[{pl:K()}],m:[{m:ee()}],mx:[{mx:ee()}],my:[{my:ee()}],ms:[{ms:ee()}],me:[{me:ee()}],mt:[{mt:ee()}],mr:[{mr:ee()}],mb:[{mb:ee()}],ml:[{ml:ee()}],"space-x":[{"space-x":K()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":K()}],"space-y-reverse":["space-y-reverse"],size:[{size:W()}],w:[{w:[g,"screen",...W()]}],"min-w":[{"min-w":[g,"screen","none",...W()]}],"max-w":[{"max-w":[g,"screen","none","prose",{screen:[p]},...W()]}],h:[{h:["screen","lh",...W()]}],"min-h":[{"min-h":["screen","lh","none",...W()]}],"max-h":[{"max-h":["screen","lh",...W()]}],"font-size":[{text:["base",u,xo,ci]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[c,Pe,Dc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ac,Ee]}],"font-family":[{font:[D0,Ee,n]}],"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:[d,Pe,Ee]}],"line-clamp":[{"line-clamp":[nt,"none",Pe,Dc]}],leading:[{leading:[m,...K()]}],"list-image":[{"list-image":["none",Pe,Ee]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Pe,Ee]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[..._e(),"wavy"]}],"text-decoration-thickness":[{decoration:[nt,"from-font","auto",Pe,ci]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[nt,"auto",Pe,Ee]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:K()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Pe,Ee]}],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",Pe,Ee]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:I()}],"bg-repeat":[{bg:j()}],"bg-size":[{bg:D()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Cn,Pe,Ee],radial:["",Pe,Ee],conic:[Cn,Pe,Ee]},Z0,A0]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:ne()}],"gradient-via-pos":[{via:ne()}],"gradient-to-pos":[{to:ne()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:V()}],"rounded-s":[{"rounded-s":V()}],"rounded-e":[{"rounded-e":V()}],"rounded-t":[{"rounded-t":V()}],"rounded-r":[{"rounded-r":V()}],"rounded-b":[{"rounded-b":V()}],"rounded-l":[{"rounded-l":V()}],"rounded-ss":[{"rounded-ss":V()}],"rounded-se":[{"rounded-se":V()}],"rounded-ee":[{"rounded-ee":V()}],"rounded-es":[{"rounded-es":V()}],"rounded-tl":[{"rounded-tl":V()}],"rounded-tr":[{"rounded-tr":V()}],"rounded-br":[{"rounded-br":V()}],"rounded-bl":[{"rounded-bl":V()}],"border-w":[{border:Ce()}],"border-w-x":[{"border-x":Ce()}],"border-w-y":[{"border-y":Ce()}],"border-w-s":[{"border-s":Ce()}],"border-w-e":[{"border-e":Ce()}],"border-w-t":[{"border-t":Ce()}],"border-w-r":[{"border-r":Ce()}],"border-w-b":[{"border-b":Ce()}],"border-w-l":[{"border-l":Ce()}],"divide-x":[{"divide-x":Ce()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Ce()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[..._e(),"hidden","none"]}],"divide-style":[{divide:[..._e(),"hidden","none"]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[..._e(),"none","hidden"]}],"outline-offset":[{"outline-offset":[nt,Pe,Ee]}],"outline-w":[{outline:["",nt,xo,ci]}],"outline-color":[{outline:F()}],shadow:[{shadow:["","none",y,La,Da]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":["none",k,La,Da]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:Ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[nt,ci]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":Ce()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":["none",v,La,Da]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[nt,Pe,Ee]}],"mix-blend":[{"mix-blend":[...Q(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Q()}],"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":[nt]}],"mask-image-linear-from-pos":[{"mask-linear-from":de()}],"mask-image-linear-to-pos":[{"mask-linear-to":de()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":de()}],"mask-image-t-to-pos":[{"mask-t-to":de()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":de()}],"mask-image-r-to-pos":[{"mask-r-to":de()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":de()}],"mask-image-b-to-pos":[{"mask-b-to":de()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":de()}],"mask-image-l-to-pos":[{"mask-l-to":de()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":de()}],"mask-image-x-to-pos":[{"mask-x-to":de()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":de()}],"mask-image-y-to-pos":[{"mask-y-to":de()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[Pe,Ee]}],"mask-image-radial-from-pos":[{"mask-radial-from":de()}],"mask-image-radial-to-pos":[{"mask-radial-to":de()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"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":B()}],"mask-image-conic-pos":[{"mask-conic":[nt]}],"mask-image-conic-from-pos":[{"mask-conic-from":de()}],"mask-image-conic-to-pos":[{"mask-conic-to":de()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:I()}],"mask-repeat":[{mask:j()}],"mask-size":[{mask:D()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Pe,Ee]}],filter:[{filter:["","none",Pe,Ee]}],blur:[{blur:Ne()}],brightness:[{brightness:[nt,Pe,Ee]}],contrast:[{contrast:[nt,Pe,Ee]}],"drop-shadow":[{"drop-shadow":["","none",x,La,Da]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:["",nt,Pe,Ee]}],"hue-rotate":[{"hue-rotate":[nt,Pe,Ee]}],invert:[{invert:["",nt,Pe,Ee]}],saturate:[{saturate:[nt,Pe,Ee]}],sepia:[{sepia:["",nt,Pe,Ee]}],"backdrop-filter":[{"backdrop-filter":["","none",Pe,Ee]}],"backdrop-blur":[{"backdrop-blur":Ne()}],"backdrop-brightness":[{"backdrop-brightness":[nt,Pe,Ee]}],"backdrop-contrast":[{"backdrop-contrast":[nt,Pe,Ee]}],"backdrop-grayscale":[{"backdrop-grayscale":["",nt,Pe,Ee]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[nt,Pe,Ee]}],"backdrop-invert":[{"backdrop-invert":["",nt,Pe,Ee]}],"backdrop-opacity":[{"backdrop-opacity":[nt,Pe,Ee]}],"backdrop-saturate":[{"backdrop-saturate":[nt,Pe,Ee]}],"backdrop-sepia":[{"backdrop-sepia":["",nt,Pe,Ee]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":K()}],"border-spacing-x":[{"border-spacing-x":K()}],"border-spacing-y":[{"border-spacing-y":K()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Pe,Ee]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[nt,"initial",Pe,Ee]}],ease:[{ease:["linear","initial",Y,Pe,Ee]}],delay:[{delay:[nt,Pe,Ee]}],animate:[{animate:["none",oe,Pe,Ee]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,Pe,Ee]}],"perspective-origin":[{"perspective-origin":G()}],rotate:[{rotate:xe()}],"rotate-x":[{"rotate-x":xe()}],"rotate-y":[{"rotate-y":xe()}],"rotate-z":[{"rotate-z":xe()}],scale:[{scale:Re()}],"scale-x":[{"scale-x":Re()}],"scale-y":[{"scale-y":Re()}],"scale-z":[{"scale-z":Re()}],"scale-3d":["scale-3d"],skew:[{skew:Ye()}],"skew-x":[{"skew-x":Ye()}],"skew-y":[{"skew-y":Ye()}],transform:[{transform:[Pe,Ee,"","none","gpu","cpu"]}],"transform-origin":[{origin:G()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ut()}],"translate-x":[{"translate-x":ut()}],"translate-y":[{"translate-y":ut()}],"translate-z":[{"translate-z":ut()}],"translate-none":["translate-none"],accent:[{accent:F()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:F()}],"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",Pe,Ee]}],"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":K()}],"scroll-mx":[{"scroll-mx":K()}],"scroll-my":[{"scroll-my":K()}],"scroll-ms":[{"scroll-ms":K()}],"scroll-me":[{"scroll-me":K()}],"scroll-mt":[{"scroll-mt":K()}],"scroll-mr":[{"scroll-mr":K()}],"scroll-mb":[{"scroll-mb":K()}],"scroll-ml":[{"scroll-ml":K()}],"scroll-p":[{"scroll-p":K()}],"scroll-px":[{"scroll-px":K()}],"scroll-py":[{"scroll-py":K()}],"scroll-ps":[{"scroll-ps":K()}],"scroll-pe":[{"scroll-pe":K()}],"scroll-pt":[{"scroll-pt":K()}],"scroll-pr":[{"scroll-pr":K()}],"scroll-pb":[{"scroll-pb":K()}],"scroll-pl":[{"scroll-pl":K()}],"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",Pe,Ee]}],fill:[{fill:["none",...F()]}],"stroke-w":[{stroke:[nt,xo,ci,Dc]}],stroke:[{stroke:["none",...F()]}],"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"]}},F0=(i,{cacheSize:n,prefix:u,experimentalParseClassName:c,extend:d={},override:m={}})=>(So(i,"cacheSize",n),So(i,"prefix",u),So(i,"experimentalParseClassName",c),Za(i.theme,m.theme),Za(i.classGroups,m.classGroups),Za(i.conflictingClassGroups,m.conflictingClassGroups),Za(i.conflictingClassGroupModifiers,m.conflictingClassGroupModifiers),So(i,"orderSensitiveModifiers",m.orderSensitiveModifiers),Ra(i.theme,d.theme),Ra(i.classGroups,d.classGroups),Ra(i.conflictingClassGroups,d.conflictingClassGroups),Ra(i.conflictingClassGroupModifiers,d.conflictingClassGroupModifiers),sb(i,d,"orderSensitiveModifiers"),i),So=(i,n,u)=>{u!==void 0&&(i[n]=u)},Za=(i,n)=>{if(n)for(const u in n)So(i,u,n[u])},Ra=(i,n)=>{if(n)for(const u in n)sb(i,n,u)},sb=(i,n,u)=>{const c=n[u];c!==void 0&&(i[u]=i[u]?i[u].concat(c):c)},W0=(i,...n)=>typeof i=="function"?Mc(Lc,i,...n):Mc(()=>F0(Lc(),i),...n),ub=Mc(Lc);function Sr(...i){return ub(yo(i))}var V0=/\s+/g,Zc=i=>typeof i!="string"||!i?i:i.replace(V0," ").trim(),qa=(...i)=>{let n=[],u=c=>{if(!c&&c!==0&&c!==0n)return;if(Array.isArray(c)){for(let m=0,p=c.length;m<p;m++)u(c[m]);return}let d=typeof c;if(d==="string"||d==="number"||d==="bigint"){if(d==="number"&&c!==c)return;n.push(String(c))}else if(d==="object"){let m=Object.keys(c);for(let p=0,g=m.length;p<g;p++){let h=m[p];c[h]&&n.push(h)}}};for(let c=0,d=i.length;c<d;c++){let m=i[c];m!=null&&u(m)}return n.length>0?Zc(n.join(" ")):void 0},cb=i=>i===!1?"false":i===!0?"true":i===0?"0":i,hr=i=>{if(!i||typeof i!="object")return!0;for(let n in i)return!1;return!0},Q0=(i,n)=>{if(i===n)return!0;if(!i||!n)return!1;let u=Object.keys(i),c=Object.keys(n);if(u.length!==c.length)return!1;for(let d=0;d<u.length;d++){let m=u[d];if(!c.includes(m)||i[m]!==n[m])return!1}return!0},lb=(i,n)=>{for(let u in n)if(Object.prototype.hasOwnProperty.call(n,u)){let c=n[u];u in i?i[u]=qa(i[u],c):i[u]=c}return i},db=(i,n)=>{for(let u=0;u<i.length;u++){let c=i[u];Array.isArray(c)?db(c,n):c&&n.push(c)}},fb=(...i)=>{let n=[];db(i,n);let u=[];for(let c=0;c<n.length;c++)n[c]&&u.push(n[c]);return u},Rc=(i,n)=>{let u={};for(let c in i){let d=i[c];if(c in n){let m=n[c];Array.isArray(d)||Array.isArray(m)?u[c]=fb(m,d):typeof d=="object"&&typeof m=="object"&&d&&m?u[c]=Rc(d,m):u[c]=m+" "+d}else u[c]=d}for(let c in n)c in i||(u[c]=n[c]);return u},G0={twMerge:!0,twMergeConfig:{},responsiveVariants:!1};function J0(){let i=null,n={},u=!1;return{get cachedTwMerge(){return i},set cachedTwMerge(c){i=c},get cachedTwMergeConfig(){return n},set cachedTwMergeConfig(c){n=c},get didTwMergeConfigChange(){return u},set didTwMergeConfigChange(c){u=c},reset(){i=null,n={},u=!1}}}var hn=J0(),B0=i=>{let n=(u,c)=>{let{extend:d=null,slots:m={},variants:p={},compoundVariants:g=[],compoundSlots:h=[],defaultVariants:b={}}=u,y={...G0,...c},k=d?.base?qa(d.base,u?.base):u?.base,v=d?.variants&&!hr(d.variants)?Rc(p,d.variants):p,x=d?.defaultVariants&&!hr(d.defaultVariants)?{...d.defaultVariants,...b}:b;!hr(y.twMergeConfig)&&!Q0(y.twMergeConfig,hn.cachedTwMergeConfig)&&(hn.didTwMergeConfigChange=!0,hn.cachedTwMergeConfig=y.twMergeConfig);let S=hr(d?.slots),E=hr(m)?{}:{base:qa(u?.base,S&&d?.base),...m},C=S?E:lb({...d?.slots},hr(E)?{base:u?.base}:E),Y=hr(d?.compoundVariants)?g:fb(d?.compoundVariants,g),oe=B=>{if(hr(v)&&hr(m)&&S)return i(k,B?.class,B?.className)(y);if(Y&&!Array.isArray(Y))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof Y}`);if(h&&!Array.isArray(h))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof h}`);let G=(le,ie,ee=[],W)=>{let F=ee;if(typeof ie=="string"){let I=Zc(ie).split(" ");for(let j=0;j<I.length;j++)F.push(`${le}:${I[j]}`)}else if(Array.isArray(ie))for(let I=0;I<ie.length;I++)F.push(`${le}:${ie[I]}`);else if(typeof ie=="object"&&typeof W=="string"&&W in ie){let I=ie[W];if(I&&typeof I=="string"){let j=Zc(I).split(" "),D=[];for(let ne=0;ne<j.length;ne++)D.push(`${le}:${j[ne]}`);F[W]=F[W]?F[W].concat(D):D}else if(Array.isArray(I)&&I.length>0){let j=[];for(let D=0;D<I.length;D++)j.push(`${le}:${I[D]}`);F[W]=j}}return F},R=(le,ie=v,ee=null,W=null)=>{let F=ie[le];if(!F||hr(F))return null;let I=W?.[le]??B?.[le];if(I===null)return null;let j=cb(I),D=Array.isArray(y.responsiveVariants)&&y.responsiveVariants.length>0||y.responsiveVariants===!0,ne=x?.[le],V=[];if(typeof j=="object"&&D)for(let[Q,de]of Object.entries(j)){let Ne=F[de];if(Q==="initial"){ne=de;continue}Array.isArray(y.responsiveVariants)&&!y.responsiveVariants.includes(Q)||(V=G(Q,Ne,V,ee))}let Ce=j!=null&&typeof j!="object"?j:cb(ne),_e=F[Ce||"false"];return typeof V=="object"&&typeof ee=="string"&&V[ee]?lb(V,_e):V.length>0?(V.push(_e),ee==="base"?V.join(" "):V):_e},H=()=>{if(!v)return null;let le=Object.keys(v),ie=[];for(let ee=0;ee<le.length;ee++){let W=R(le[ee],v);W&&ie.push(W)}return ie},K=(le,ie)=>{if(!v||typeof v!="object")return null;let ee=[];for(let W in v){let F=R(W,v,le,ie),I=le==="base"&&typeof F=="string"?F:F&&F[le];I&&ee.push(I)}return ee},$e={};for(let le in B){let ie=B[le];ie!==void 0&&($e[le]=ie)}let Ie=(le,ie)=>{let ee=typeof B?.[le]=="object"?{[le]:B[le]?.initial}:{};return{...x,...$e,...ee,...ie}},ke=(le=[],ie)=>{let ee=[],W=le.length;for(let F=0;F<W;F++){let{class:I,className:j,...D}=le[F],ne=!0,V=Ie(null,ie);for(let Ce in D){let _e=D[Ce],Q=V[Ce];if(Array.isArray(_e)){if(!_e.includes(Q)){ne=!1;break}}else{if((_e==null||_e===!1)&&(Q==null||Q===!1))continue;if(Q!==_e){ne=!1;break}}}ne&&(I&&ee.push(I),j&&ee.push(j))}return ee},me=le=>{let ie=ke(Y,le);if(!Array.isArray(ie))return ie;let ee={},W=i;for(let F=0;F<ie.length;F++){let I=ie[F];if(typeof I=="string")ee.base=W(ee.base,I)(y);else if(typeof I=="object")for(let j in I)ee[j]=W(ee[j],I[j])(y)}return ee},Se=le=>{if(h.length<1)return null;let ie={},ee=Ie(null,le);for(let W=0;W<h.length;W++){let{slots:F=[],class:I,className:j,...D}=h[W];if(!hr(D)){let ne=!0;for(let V in D){let Ce=ee[V],_e=D[V];if(Ce===void 0||(Array.isArray(_e)?!_e.includes(Ce):_e!==Ce)){ne=!1;break}}if(!ne)continue}for(let ne=0;ne<F.length;ne++){let V=F[ne];ie[V]||(ie[V]=[]),ie[V].push([I,j])}}return ie};if(!hr(m)||!S){let le={};if(typeof C=="object"&&!hr(C)){let ie=i;for(let ee in C)le[ee]=W=>{let F=me(W),I=Se(W);return ie(C[ee],K(ee,W),F?F[ee]:void 0,I?I[ee]:void 0,W?.class,W?.className)(y)}}return le}return i(k,H(),ke(Y),B?.class,B?.className)(y)},J=()=>{if(!(!v||typeof v!="object"))return Object.keys(v)};return oe.variantKeys=J(),oe.extend=d,oe.base=k,oe.slots=C,oe.variants=v,oe.defaultVariants=x,oe.compoundSlots=h,oe.compoundVariants=Y,oe};return{tv:n,createTV:u=>(c,d)=>n(c,d?Rc(u,d):u)}},Y0=i=>hr(i)?ub:W0({...i,extend:{theme:i.theme,classGroups:i.classGroups,conflictingClassGroupModifiers:i.conflictingClassGroupModifiers,conflictingClassGroups:i.conflictingClassGroups,...i.extend}}),K0=(...i)=>n=>{let u=qa(i);return!u||!n.twMerge?u:((!hn.cachedTwMerge||hn.didTwMergeConfigChange)&&(hn.didTwMergeConfigChange=!1,hn.cachedTwMerge=Y0(hn.cachedTwMergeConfig)),hn.cachedTwMerge(u)||void 0)},{tv:H0}=B0(K0);const mb=H0({base:"focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium outline-none transition-all focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 text-white",outline:"bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 border",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});var X0=re("<a><!></a>"),eS=re("<button><!></button>");function qt(i,n){Je(n,!0);let u=w(n,"variant",3,"default"),c=w(n,"size",3,"default"),d=w(n,"ref",15,null),m=w(n,"href",3,void 0),p=w(n,"type",3,"button"),g=Lt(n,["$$slots","$$events","$$legacy","class","variant","size","ref","href","type","disabled","children","onclick"]);var h=Ze(),b=Te(h);{var y=v=>{var x=X0();Qt(x,E=>({"data-slot":"button",class:E,href:n.disabled?void 0:m(),"aria-disabled":n.disabled,role:n.disabled?"link":void 0,tabindex:n.disabled?-1:void 0,...g}),[()=>Sr(mb({variant:u(),size:c()}),n.class)]);var S=Z(x);Rt(S,()=>n.children??gt),A(x),Ur(x,E=>d(E),()=>d()),O(v,x)},k=v=>{var x=eS();Qt(x,E=>({"data-slot":"button",class:E,type:p(),disabled:n.disabled,onclick:n.onclick,...g}),[()=>Sr(mb({variant:u(),size:c()}),n.class)]);var S=Z(x);Rt(S,()=>n.children??gt),A(x),Ur(x,E=>d(E),()=>d()),O(v,x)};ae(b,v=>{m()?v(y):v(k,!1)})}O(i,h),Be()}var tS=re('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),rS=re('<span class="text-destructive ml-1">*</span>'),nS=re('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),iS=re('<span class="text-xs xs:text-xs text-muted-foreground font-medium"> </span>'),oS=re('<span class="text-xs xs:text-xs text-muted-foreground font-medium text-right"> </span>'),aS=re('<div class="flex justify-between items-center px-1 sm:px-2"><!> <!></div>'),sS=re('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><span class="font-medium"> </span></div>'),uS=re('<div class="w-full space-y-4"><div class="flex text-left items-start gap-3"><!> <div class="flex-1 space-y-1.5"><label class="text-lg font-semibold text-foreground leading-tight"> <!></label> <!></div></div> <div class="flex flex-col gap-3 pt-2"><div class="flex gap-0.5 xs:gap-1 sm:gap-1.5 md:gap-2 justify-center items-center w-full"></div> <!></div> <!></div>');function cS(i,n){Je(n,!1);const u=te(),c=te(),{updateQuestionResponse:d,removeQuestionResponse:m}=pn();let p=w(n,"question",8),g=w(n,"value",24,()=>-1),h=w(n,"onChange",8),b=w(n,"error",8,void 0),y=w(n,"currentMode",8,void 0),k=w(n,"questionNumber",8,void 0);w(n,"themeSettings",8,void 0),w(n,"currentLanguage",8,void 0);let v=te(g()??-1);function x(ie){l(v)===ie?($(v,-1),h()(-1),m(p().id)):($(v,ie),h()(ie),d(p().id,ie,s.QuestionTypes.NPS))}ve(()=>N(y()),()=>{$(u,y()==="dark")}),ve(()=>N(g()),()=>{g()!==void 0&&$(v,g())}),ve(()=>N(p()),()=>{$(c,Array.from({length:(p().max??10)-(p().min??0)+1},(ie,ee)=>ee+(p().min??0)))}),fr(),er();var S=uS(),E=Z(S),C=Z(E);{var Y=ie=>{var ee=tS(),W=Z(ee);A(ee),je(()=>Oe(W,`${k()??""}.`)),O(ie,ee)};ae(C,ie=>{k()!==void 0&&ie(Y)})}var oe=fe(C,2),J=Z(oe),B=Z(J),G=fe(B);{var R=ie=>{var ee=rS();O(ie,ee)};ae(G,ie=>{N(p()),U(()=>p().required)&&ie(R)})}A(J);var H=fe(J,2);{var K=ie=>{var ee=nS(),W=Z(ee,!0);A(ee),je(()=>Oe(W,(N(p()),U(()=>p().description)))),O(ie,ee)};ae(H,ie=>{N(p()),U(()=>p().description)&&ie(K)})}A(oe),A(E);var $e=fe(E,2),Ie=Z($e);gr(Ie,5,()=>l(c),xr,(ie,ee)=>{{let W=Le(()=>`flex-1 min-w-0 h-8 xs:h-9 sm:h-10 text-xs xs:text-sm sm:text-base font-semibold transition-all ${l(v)===l(ee)?"bg-primary text-primary-foreground border-primary shadow-md hover:bg-primary/90 scale-105 dark:border-primary/90 dark:bg-primary dark:hover:bg-primary dark:hover:text-primary-foreground hover:text-primary-foreground":"bg-card text-card-foreground border-border hover:border-primary/50 hover:bg-accent/50 dark:hover:bg-primary/20 dark:hover:text-card-foreground"}`);qt(ie,{type:"button",variant:"outline",size:"sm",get class(){return l(W)},onclick:()=>x(l(ee)),children:(F,I)=>{_r();var j=On();je(()=>Oe(j,l(ee))),O(F,j)},$$slots:{default:!0}})}}),A(Ie);var ke=fe(Ie,2);{var me=ie=>{var ee=aS(),W=Z(ee);{var F=D=>{var ne=iS(),V=Z(ne,!0);A(ne),je(()=>Oe(V,(N(p()),U(()=>p().minLabel)))),O(D,ne)};ae(W,D=>{N(p()),U(()=>p().minLabel)&&D(F)})}var I=fe(W,2);{var j=D=>{var ne=oS(),V=Z(ne,!0);A(ne),je(()=>Oe(V,(N(p()),U(()=>p().maxLabel)))),O(D,ne)};ae(I,D=>{N(p()),U(()=>p().maxLabel)&&D(j)})}A(ee),O(ie,ee)};ae(ke,ie=>{N(p()),U(()=>p().minLabel||p().maxLabel)&&ie(me)})}A($e);var Se=fe($e,2);{var le=ie=>{var ee=sS(),W=Z(ee),F=Z(W,!0);A(W),A(ee),je(()=>Oe(F,b())),O(ie,ee)};ae(Se,ie=>{b()&&ie(le)})}A(S),je(()=>Oe(B,`${N(p()),U(()=>p().title)??""} `)),O(i,S),Be()}var lS=re("<nav><!></nav>");function dS(i,n){Je(n,!0);let u=w(n,"ref",15,null),c=Lt(n,["$$slots","$$events","$$legacy","ref","class","children"]);var d=lS();Qt(d,()=>({"data-slot":"breadcrumb",class:n.class,"aria-label":"breadcrumb",...c}));var m=Z(d);Rt(m,()=>n.children??gt),A(d),Ur(d,p=>u(p),()=>u()),O(i,d),Be()}/**
47
47
  * @license @lucide/svelte v0.544.0 - ISC
48
48
  *
49
49
  * ISC License
@@ -86,7 +86,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
86
86
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
87
87
  * SOFTWARE.
88
88
  *
89
- */const fS={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};var mS=Tn("<svg><!><!></svg>");function qa(i,n){Je(n,!0);const u=w(n,"color",3,"currentColor"),c=w(n,"size",3,24),d=w(n,"strokeWidth",3,2),m=w(n,"absoluteStrokeWidth",3,!1),p=w(n,"iconNode",19,()=>[]),g=At(n,["$$slots","$$events","$$legacy","name","color","size","strokeWidth","absoluteStrokeWidth","iconNode","children"]);var h=mS();Gt(h,k=>({...fS,...g,width:c(),height:c(),stroke:u(),"stroke-width":k,class:["lucide-icon lucide",n.name&&`lucide-${n.name}`,n.class]}),[()=>m()?Number(d())*24/Number(c()):d()]);var b=R(h);gr(b,17,p,xr,(k,v)=>{var x=lt(()=>Yt(l(v),2));let S=()=>l(x)[0],O=()=>l(x)[1];var U=Ze(),B=Te(U);xv(B,S,!0,(oe,J)=>{Gt(oe,()=>({...O()}))}),T(k,U)});var y=de(b);Rt(y,()=>n.children??gt),L(h),T(i,h),Be()}var pS=te("<li><!></li>");function mb(i,n){Je(n,!0);let u=w(n,"ref",15,null),c=At(n,["$$slots","$$events","$$legacy","ref","class","children"]);var d=pS();Gt(d,p=>({"data-slot":"breadcrumb-item",class:p,...c}),[()=>Sr("inline-flex items-center gap-1.5",n.class)]);var m=R(d);Rt(m,()=>n.children??gt),L(d),Ur(d,p=>u(p),()=>u()),T(i,d),Be()}function gS(i,n){Je(n,!0);/**
89
+ */const fS={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};var mS=Tn("<svg><!><!></svg>");function Fa(i,n){Je(n,!0);const u=w(n,"color",3,"currentColor"),c=w(n,"size",3,24),d=w(n,"strokeWidth",3,2),m=w(n,"absoluteStrokeWidth",3,!1),p=w(n,"iconNode",19,()=>[]),g=Lt(n,["$$slots","$$events","$$legacy","name","color","size","strokeWidth","absoluteStrokeWidth","iconNode","children"]);var h=mS();Qt(h,k=>({...fS,...g,width:c(),height:c(),stroke:u(),"stroke-width":k,class:["lucide-icon lucide",n.name&&`lucide-${n.name}`,n.class]}),[()=>m()?Number(d())*24/Number(c()):d()]);var b=Z(h);gr(b,17,p,xr,(k,v)=>{var x=lt(()=>Yt(l(v),2));let S=()=>l(x)[0],E=()=>l(x)[1];var C=Ze(),Y=Te(C);Sv(Y,S,!0,(oe,J)=>{Qt(oe,()=>({...E()}))}),O(k,C)});var y=fe(b);Rt(y,()=>n.children??gt),A(h),O(i,h),Be()}var pS=re("<li><!></li>");function pb(i,n){Je(n,!0);let u=w(n,"ref",15,null),c=Lt(n,["$$slots","$$events","$$legacy","ref","class","children"]);var d=pS();Qt(d,p=>({"data-slot":"breadcrumb-item",class:p,...c}),[()=>Sr("inline-flex items-center gap-1.5",n.class)]);var m=Z(d);Rt(m,()=>n.children??gt),A(d),Ur(d,p=>u(p),()=>u()),O(i,d),Be()}function gS(i,n){Je(n,!0);/**
90
90
  * @license @lucide/svelte v0.544.0 - ISC
91
91
  *
92
92
  * ISC License
@@ -129,11 +129,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
129
129
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
130
130
  * SOFTWARE.
131
131
  *
132
- */let u=At(n,["$$slots","$$events","$$legacy"]);const c=[["path",{d:"m9 18 6-6-6-6"}]];qa(i,Tt({name:"chevron-right"},()=>u,{get iconNode(){return c},children:(d,m)=>{var p=Ze(),g=Te(p);Rt(g,()=>n.children??gt),T(d,p)},$$slots:{default:!0}})),Be()}var hS=te("<li><!></li>");function vS(i,n){Je(n,!0);let u=w(n,"ref",15,null),c=At(n,["$$slots","$$events","$$legacy","ref","class","children"]);var d=hS();Gt(d,h=>({"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",class:h,...c}),[()=>Sr("[&>svg]:size-3.5",n.class)]);var m=R(d);{var p=h=>{var b=Ze(),y=Te(b);Rt(y,()=>n.children??gt),T(h,b)},g=h=>{gS(h,{})};ae(m,h=>{n.children?h(p):h(g,!1)})}L(d),Ur(d,h=>u(h),()=>u()),T(i,d),Be()}var bS=te("<a><!></a>");function yS(i,n){Je(n,!0);let u=w(n,"ref",15,null),c=w(n,"href",3,void 0),d=At(n,["$$slots","$$events","$$legacy","ref","class","href","child","children"]);const m=lt(()=>({"data-slot":"breadcrumb-link",class:Sr("hover:text-foreground transition-colors",n.class),href:c(),...d}));var p=Ze(),g=Te(p);{var h=y=>{var k=Ze(),v=Te(k);Rt(v,()=>n.child,()=>({props:l(m)})),T(y,k)},b=y=>{var k=bS();Gt(k,()=>({...l(m)}));var v=R(k);Rt(v,()=>n.children??gt),L(k),Ur(k,x=>u(x),()=>u()),T(y,k)};ae(g,y=>{n.child?y(h):y(b,!1)})}T(i,p),Be()}var $S=te("<ol><!></ol>");function wS(i,n){Je(n,!0);let u=w(n,"ref",15,null),c=At(n,["$$slots","$$events","$$legacy","ref","class","children"]);var d=$S();Gt(d,p=>({"data-slot":"breadcrumb-list",class:p,...c}),[()=>Sr("text-muted-foreground flex flex-wrap items-center gap-1.5 break-words text-sm sm:gap-2.5",n.class)]);var m=R(d);Rt(m,()=>n.children??gt),L(d),Ur(d,p=>u(p),()=>u()),T(i,d),Be()}var _S=te('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),kS=te('<span class="text-destructive ml-1">*</span>'),xS=te('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),SS=te("<!> <!>",1),IS=te("<!> <!>",1),zS=Tn('<svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M5 13l4 4L19 7"></path></svg>'),NS=te('<span class="flex items-center gap-3 w-full"><span class="flex-1 text-sm font-medium"> </span> <!></span>'),jS=te('<div class="p-2 space-y-1"></div>'),TS=te('<div class="flex flex-col items-center justify-center py-12 px-4"><div class="w-12 h-12 rounded-full bg-muted flex items-center justify-center mb-3"><svg class="w-6 h-6 text-muted-foreground" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"></path></svg></div> <p class="text-sm font-medium text-muted-foreground">No options available</p></div>'),OS=te('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> <span class="font-medium"> </span></div>'),ES=te('<div class="w-full space-y-4"><div class="flex text-left items-start gap-3"><!> <div class="flex-1 space-y-1.5"><label class="text-lg font-semibold text-foreground leading-tight"> <!></label> <!></div></div> <div class="border border-border rounded-xl bg-card shadow-sm overflow-hidden"><div class="px-4 py-3 bg-accent/30 border-b border-border backdrop-blur-sm"><!></div> <div class="max-h-[420px] overflow-y-auto scrollbar-thin"><!></div></div> <!></div>');function PS(i,n){Je(n,!1);const u=ee();let c=w(n,"question",8),d=w(n,"value",24,()=>[]),m=w(n,"onChange",8),p=w(n,"error",8,void 0),g=w(n,"currentMode",8,void 0),h=w(n,"questionNumber",8,void 0);w(n,"themeSettings",8,void 0),w(n,"currentLanguage",8,void 0);const b=d()?Array.isArray(d())?d():[d()]:[];let y=ee(b),k=ee(O()),v=ee(!1),x=ee([]),S=ee([]);function O(){return b.length===0?[]:b.slice(0,-1)}function U(V,le){$(v,!0),V.children&&V.children.length>0?$(k,le):($(y,le),$(k,le.slice(0,-1)),m()(le))}function B(V){const le=l(y);return le.length!==V.length?!1:V.every((Ne,xe)=>le[xe]===Ne)}function oe(V){let le=c().options;for(let Ne=0;Ne<V.length;Ne++){const xe=le.find(Re=>Re.value===V[Ne]);if(xe&&xe.children)le=xe.children;else return[]}return le}function J(V){const le=[];let Ne=c().options;for(let xe=0;xe<V.length;xe++){const Re=Ne.find(Ye=>Ye.value===V[xe]);Re&&(le.push({value:V[xe],label:Re.label,index:xe}),Re.children&&(Ne=Re.children))}return le}function Y(V){$(v,!0),$(k,l(k).slice(0,V+1))}function G(){$(v,!0),$(k,[]),$(y,[]),m()([])}ve(()=>z(g()),()=>{$(u,g()==="dark")}),ve(()=>(z(d()),l(v)),()=>{if(d()!==void 0&&!l(v)){const V=Array.isArray(d())?d():[d()];$(y,V),V.length>0?$(k,V.slice(0,-1)):$(k,[])}else d()===void 0&&!l(v)&&($(y,[]),$(k,[]))}),ve(()=>l(k),()=>{$(x,oe(l(k)))}),ve(()=>l(k),()=>{$(S,J(l(k)))}),fr(),er();var F=ES(),K=R(F),H=R(K);{var $e=V=>{var le=_S(),Ne=R(le);L(le),je(()=>Oe(Ne,`${h()??""}.`)),T(V,le)};ae(H,V=>{h()!==void 0&&V($e)})}var Ie=de(H,2),ke=R(Ie),fe=R(ke),Se=de(fe);{var me=V=>{var le=kS();T(V,le)};ae(Se,V=>{z(c()),M(()=>c().required)&&V(me)})}L(ke);var ne=de(ke,2);{var re=V=>{var le=xS(),Ne=R(le,!0);L(le),je(()=>Oe(Ne,(z(c()),M(()=>c().description)))),T(V,le)};ae(ne,V=>{z(c()),M(()=>c().description)&&V(re)})}L(Ie),L(K);var W=de(K,2),N=R(W),C=R(N);dS(C,{children:(V,le)=>{wS(V,{class:"flex items-center gap-1.5 flex-wrap",children:(Ne,xe)=>{var Re=IS(),Ye=Te(Re);mb(Ye,{children:(qe,it)=>{Ft(qe,{type:"button",variant:"ghost",size:"sm",class:"h-8 w-8 p-0 hover:bg-background/80 rounded-md transition-colors",onclick:G,"aria-label":"Home",children:(ht,Ue)=>{cx(ht,{size:18,class:"text-muted-foreground hover:text-foreground transition-colors"})},$$slots:{default:!0}})},$$slots:{default:!0}});var ut=de(Ye,2);gr(ut,1,()=>l(S),xr,(qe,it)=>{var ht=SS(),Ue=Te(ht);vS(Ue,{class:"text-muted-foreground/50",children:(Ct,qt)=>{Da(Ct,{size:14})},$$slots:{default:!0}});var Pt=de(Ue,2);mb(Pt,{children:(Ct,qt)=>{yS(Ct,{onclick:()=>Y(l(it).index),class:"cursor-pointer text-sm font-medium text-foreground/80 hover:text-primary transition-colors px-2 py-1 rounded-md hover:bg-background/50",children:(Vt,Et)=>{_r();var _t=On();je(()=>Oe(_t,(l(it),M(()=>l(it).label)))),T(Vt,_t)},$$slots:{default:!0}})},$$slots:{default:!0}}),T(qe,ht)}),T(Ne,Re)},$$slots:{default:!0}})},$$slots:{default:!0}}),L(N);var E=de(N,2),Z=R(E);{var ie=V=>{var le=jS();gr(le,5,()=>l(x),xr,(Ne,xe)=>{const Re=Ae(()=>(l(k),l(xe),M(()=>B([...l(k),l(xe).value])))),Ye=Ae(()=>(l(xe),M(()=>l(xe).children&&l(xe).children.length>0)));{let ut=Ae(()=>`w-full justify-start px-4 py-3.5 h-auto rounded-lg text-left transition-all relative group ${l(Re)&&!l(Ye)?"bg-primary text-primary-foreground border-primary shadow-md hover:shadow-lg hover:bg-primary/90 hover:text-primary-foreground dark:hover:bg-primary":"text-foreground hover:bg-accent/50 hover:border-border/50 border border-transparent"}`);Ft(Ne,{type:"button",variant:"ghost",get class(){return l(ut)},onclick:()=>U(l(xe),[...l(k),l(xe).value]),children:(qe,it)=>{var ht=NS(),Ue=R(ht),Pt=R(Ue,!0);L(Ue);var Ct=de(Ue,2);{var qt=Et=>{{let _t=Ae(()=>`flex-shrink-0 transition-transform group-hover:translate-x-0.5 ${l(Re)?"text-primary":"text-muted-foreground"}`);Da(Et,{size:18,get class(){return l(_t)}})}},Vt=Et=>{var _t=Ze(),yt=Te(_t);{var Ir=Mr=>{var vn=zS();T(Mr,vn)};ae(yt,Mr=>{l(Re)&&Mr(Ir)},!0)}T(Et,_t)};ae(Ct,Et=>{l(Ye)?Et(qt):Et(Vt,!1)})}L(ht),je(()=>Oe(Pt,(l(xe),M(()=>l(xe).label)))),T(qe,ht)},$$slots:{default:!0}})}}),L(le),T(V,le)},Q=V=>{var le=TS();T(V,le)};ae(Z,V=>{l(x),M(()=>l(x).length>0)?V(ie):V(Q,!1)})}L(E),L(W);var Ce=de(W,2);{var _e=V=>{var le=OS(),Ne=de(R(le),2),xe=R(Ne,!0);L(Ne),L(le),je(()=>Oe(xe,p())),T(V,le)};ae(Ce,V=>{p()&&V(_e)})}L(F),je(()=>Oe(fe,`${z(c()),M(()=>c().title)??""} `)),T(i,F),Be()}var CS=te("<textarea></textarea>");function US(i,n){Je(n,!0);let u=w(n,"ref",15,null),c=w(n,"value",15),d=w(n,"data-slot",3,"textarea"),m=At(n,["$$slots","$$events","$$legacy","ref","value","class","data-slot"]);var p=CS();m0(p),Gt(p,g=>({"data-slot":d(),class:g,...m}),[()=>Sr("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 field-sizing-content shadow-xs flex min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base outline-none transition-[color,box-shadow] focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",n.class)]),Ur(p,g=>u(g),()=>u()),Ca(p,c),T(i,p),Be()}function pb(i){if(!i)return{code:null,message:""};const n=i.split("|").map(u=>u.trim());if(n.length>=2){const u=n[0],c=n.slice(1).join("|").trim(),d=c.match(/(\d+)\s+seconds?/i),m=d?parseInt(d[1],10):void 0;return{code:u,message:c,seconds:m}}return{code:null,message:i}}function gb(i,n,u){let c=i;n(c);const d=setInterval(()=>{c--,n(c),c<=0&&(clearInterval(d),u())},1e3);return d}function hb(i,n,u,c){if(!u?.otherFields)return n;const{otherFields:d}=u;switch(i){case"1001":{const m=d.aiEnhancementCooldownErrorMessage||n;return c!==void 0?`${m} (${c}s)`:m}case"1002":return d.aiEnhancementMaxReachedErrorMessage||n;default:return n}}async function vb(i){return await window.encatch._internal.refineText({questionId:i.questionId,identifier:i.identifier,feedbackConfigurationId:i.feedbackConfigurationId,userText:i.userText})}var MS=te('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),DS=te('<span class="text-destructive ml-1">*</span>'),LS=te('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),AS=te('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><span class="font-medium"> </span></div>'),ZS=Tn('<svg class="w-4 h-4 animate-spin" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg>'),RS=te('<div class="flex items-center gap-1 border border-border rounded-lg p-0.5"><!> <span class="text-xs font-medium text-muted-foreground px-2"> </span> <!></div>'),FS=te("<!> <span>Reset</span>",1),qS=te('<div class="flex items-center gap-2 text-sm text-green-700 dark:text-green-400 bg-green-50 dark:bg-green-950/30 px-3 py-2 rounded-md border border-green-200 dark:border-green-900"><svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path></svg> <span class="font-medium"> </span></div>'),WS=te('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> <span class="font-medium"> </span></div>'),QS=te('<div class="flex items-center gap-2 flex-wrap"><!> <!> <!></div> <!> <!>',1),GS=te('<div class="w-full space-y-4"><div class="flex text-left items-start gap-3"><!> <div class="flex-1 space-y-1.5"><label class="text-lg font-semibold text-foreground leading-tight"> <!></label> <!></div></div> <!> <div class="relative"><!> <div> </div></div> <!></div>');function VS(i,n){Je(n,!1);const u=ee(),c=ee(),d=ee(),m=ee(),p=ee(),g=ee(),h=ee(),b=ee();let y=w(n,"question",8),k=w(n,"value",8,""),v=w(n,"onChange",8),x=w(n,"error",8,void 0),S=w(n,"currentMode",8,void 0),O=w(n,"questionNumber",8,void 0);w(n,"themeSettings",8,void 0),w(n,"currentLanguage",8,void 0),w(n,"apiKey",8,void 0),w(n,"hostUrl",8,void 0);let U=w(n,"identifier",8,void 0),B=w(n,"feedbackConfigurationId",8,void 0),oe=w(n,"otherConfigurationProperties",8,void 0),J=ee(k()??""),Y=ee(null),G=ee(0),F=ee(x()),K=ee(!1),H=ee(!1),$e=ee(!1),Ie=ee(null),ke=ee(null),fe=ee(!1),Se=ee(!1),me=ee(""),ne=ee(0),re=null,W=ee(l(J));const{updateQuestionResponse:N,setQuestionError:C}=pn();En(()=>{setTimeout(()=>{const I=Z(l(J));$(F,I),I&&C(y().id,I),$(fe,!0)},0)}),bo(()=>{re!==null&&clearInterval(re)});function E(){l(K)||$(K,!0)}function Z(I){if(y().required&&(!I||I.trim()===""))return y().errorMessage||"This field is required";if(y().maxCharacters!==void 0&&I.length>y().maxCharacters||y().minCharacters!==void 0&&I.length>0&&I.length<y().minCharacters)return y().errorMessage}function ie(I){re!==null&&clearInterval(re),re=gb(I,j=>{$(ne,j)},()=>{re=null,$(Ie,null)})}async function Q(){if(!le()||!U()||!B())return;const I=l(J);try{$($e,!0),$(Ie,null);const j=await vb({questionId:y().id,identifier:U(),feedbackConfigurationId:B(),userText:I});if(j?.data?.refinedText){const be=j.data.refinedText;$(ke,oe()?.otherFields?.aiEnhancementSuccessMessage||j.message||"Text refined successfully"),l(Y)?($(Y,{original:l(Y).original,enhanced:[...l(Y).enhanced,be]}),$(G,l(Y).enhanced.length)):($(Y,{original:I,enhanced:[be]}),$(G,1)),$(J,be),$(H,!0);const De=Z(be);$(F,De),v()(be),N(y().id,be,s.QuestionTypes.LONG_TEXT,De)}else{if(j?.message){const{code:be,message:De,seconds:Ke}=pb(j.message);be==="1001"&&Ke!==void 0&&ie(Ke),$(Ie,hb(be,De,oe(),Ke))}$(H,!1)}}catch(j){console.error("Error enhancing text:",j),$(Ie,"An error occurred while enhancing text"),$(H,!1)}finally{$($e,!1)}}function Ce(){if(!l(Y))return;const I=l(Y).original;$(J,I),$(G,0);const j=Z(I);$(F,j),v()(I),N(y().id,I,s.QuestionTypes.LONG_TEXT,j)}function _e(I){if(!l(Y))return;let j;if(I===0)j=l(Y).original;else{const De=I-1;if(De>=l(Y).enhanced.length)return;j=l(Y).enhanced[De]}$(J,j),$(G,I);const be=Z(j);$(F,be),v()(j),N(y().id,j,s.QuestionTypes.LONG_TEXT,be)}function V(){return l(Y)?l(Y).enhanced.length+1:0}function le(){const I=l(J).trim();return I?y().minCharactersToEnhance!==void 0?I.length>=y().minCharactersToEnhance:!0:!1}ve(()=>z(S()),()=>{$(u,S()==="dark")}),ve(()=>(z(k()),l(J),l(K)),()=>{k()!==void 0&&k()!==l(J)&&!l(K)&&($(J,k()),$(W,k()))}),ve(()=>l(J),()=>{$(c,l(J).length)}),ve(()=>z(y()),()=>{$(d,y().minCharacters)}),ve(()=>z(y()),()=>{$(m,y().maxCharacters)}),ve(()=>(l(m),l(c)),()=>{$(p,l(m)!==void 0&&l(c)>l(m))}),ve(()=>(l(d),l(c)),()=>{$(g,l(d)!==void 0&&l(c)<l(d)&&l(c)>0)}),ve(()=>(l(p),l(g)),()=>{$(h,l(p)||l(g))}),ve(()=>(l(d),l(m)),()=>{$(b,l(d)!==void 0||l(m)!==void 0)}),ve(()=>(l(J),z(y())),()=>{const I=l(J).trim();I?y().minCharactersToEnhance!==void 0?$(Se,I.length>=y().minCharactersToEnhance):$(Se,!0):$(Se,!1)}),ve(()=>(l(d),l(m),l(c),z(y())),()=>{l(d)!==void 0&&l(m)!==void 0?$(me,`${l(c)} / (${l(d)} - ${l(m)})`):l(m)!==void 0&&y().required?$(me,`${l(c)} / (1 - ${l(m)})`):l(d)!==void 0?$(me,`${l(c)} / (${l(d)} - 5000)`):$(me,"")}),ve(()=>(l(ne),z(oe())),()=>{l(ne)>0&&oe()?.otherFields?.aiEnhancementCooldownErrorMessage&&$(Ie,`${oe().otherFields.aiEnhancementCooldownErrorMessage} (${l(ne)}s)`)}),ve(()=>z(x()),()=>{x()!==void 0&&$(F,x())}),ve(()=>(l(fe),l(K),l(J),l(W),z(y()),s.QuestionTypes),()=>{if(l(fe)&&l(K)&&l(J)!==l(W)){$(W,l(J));const I=Z(l(J));$(F,I),N(y().id,l(J),s.QuestionTypes.LONG_TEXT,I)}}),fr(),er();var Ne=GS(),xe=R(Ne),Re=R(xe);{var Ye=I=>{var j=MS(),be=R(j);L(j),je(()=>Oe(be,`${O()??""}.`)),T(I,j)};ae(Re,I=>{O()!==void 0&&I(Ye)})}var ut=de(Re,2),qe=R(ut),it=R(qe),ht=de(it);{var Ue=I=>{var j=DS();T(I,j)};ae(ht,I=>{z(y()),M(()=>y().required)&&I(Ue)})}L(qe);var Pt=de(qe,2);{var Ct=I=>{var j=LS(),be=R(j,!0);L(j),je(()=>Oe(be,(z(y()),M(()=>y().description)))),T(I,j)};ae(Pt,I=>{z(y()),M(()=>y().description)&&I(Ct)})}L(ut),L(xe);var qt=de(xe,2);{var Vt=I=>{var j=AS(),be=R(j),De=R(be,!0);L(be),L(j),je(()=>Oe(De,l(F))),T(I,j)};ae(qt,I=>{l(F)&&l(K)&&I(Vt)})}var Et=de(qt,2),_t=R(Et);{let I=Ae(()=>(z(y()),M(()=>y().rows||4)));US(_t,{class:"w-full min-h-[120px] text-secondary-foreground focus-visible:ring-0 focus-visible:ring-offset-0 resize-y",onfocus:E,get placeholder(){return z(y()),M(()=>y().placeholder)},get rows(){return l(I)},onblur:()=>{if(l(fe)){const j=Z(l(J));$(F,j),C(y().id,j),v()(l(J))}},get value(){return l(J)},set value(j){$(J,j)},$$legacy:!0})}var yt=de(_t,2),Ir=R(yt);L(yt),L(Et);var Mr=de(Et,2);{var vn=I=>{var j=QS(),be=Te(j),De=R(be);{let He=Ae(()=>l($e)||!l(Se));Ft(De,{type:"button",variant:"secondary",size:"sm",class:"gap-2",onclick:Q,get disabled(){return l(He)},children:(ft,Ut)=>{var kt=Ze(),zr=Te(kt);{var vr=It=>{var bn=ZS();T(It,bn)},tr=It=>{Fv(It,{size:16})};ae(zr,It=>{l($e)?It(vr):It(tr,!1)})}T(ft,kt)},$$slots:{default:!0}})}var Ke=de(De,2);{var We=He=>{var ft=RS(),Ut=R(ft);{let tr=Ae(()=>l(G)===0);Ft(Ut,{type:"button",class:"p-1.5 rounded hover:bg-accent disabled:opacity-50 disabled:cursor-not-allowed transition-colors",onclick:()=>{l(G)>0&&_e(l(G)-1)},get disabled(){return l(tr)},title:"Previous version",children:(It,bn)=>{Zv(It,{size:14,class:"text-muted-foreground"})},$$slots:{default:!0}})}var kt=de(Ut,2),zr=R(kt);L(kt);var vr=de(kt,2);{let tr=Ae(()=>(l(G),M(()=>l(G)>=V()-1)));Ft(vr,{type:"button",class:"p-1.5 rounded hover:bg-accent disabled:opacity-50 disabled:cursor-not-allowed transition-colors",onclick:()=>{const It=V();l(G)<It-1&&_e(l(G)+1)},get disabled(){return l(tr)},title:"Next version",children:(It,bn)=>{Da(It,{size:14,class:"text-muted-foreground"})},$$slots:{default:!0}})}L(ft),je(tr=>Oe(zr,`${l(G)+1} / ${tr??""}`),[()=>M(V)]),T(He,ft)};ae(Ke,He=>{l(Y),l($e),M(()=>l(Y)&&!l($e)&&l(Y).enhanced&&l(Y).enhanced.length>1)&&He(We)})}var vt=de(Ke,2);{var Wt=He=>{Ft(He,{type:"button",variant:"ghost",size:"sm",class:"gap-2",onclick:Ce,title:"Back to original text",children:(ft,Ut)=>{var kt=FS(),zr=Te(kt);Av(zr,{size:16}),_r(2),T(ft,kt)},$$slots:{default:!0}})};ae(vt,He=>{l(Y)&&!l($e)&&l(G)!==0&&He(Wt)})}L(be);var ur=de(be,2);{var or=He=>{var ft=qS(),Ut=de(R(ft),2),kt=R(Ut,!0);L(Ut),L(ft),je(()=>Oe(kt,l(ke))),T(He,ft)};ae(ur,He=>{l(H)&&!l(Ie)&&He(or)})}var ar=de(ur,2);{var Jr=He=>{var ft=WS(),Ut=de(R(ft),2),kt=R(Ut,!0);L(Ut),L(ft),je(()=>Oe(kt,l(Ie))),T(He,ft)};ae(ar,He=>{l(Ie)&&He(Jr)})}T(I,j)};ae(Mr,I=>{z(y()),M(()=>y().enableEnhanceWithAi)&&I(vn)})}L(Ne),je(I=>{Oe(it,`${z(y()),M(()=>y().title)??""} `),fn(yt,1,`absolute right-3 bottom-3 text-xs font-medium px-2 py-1 rounded-full transition-colors whitespace-nowrap ${l(h)?"bg-destructive/10 text-destructive border border-destructive/20":"bg-muted text-muted-foreground"}`),Oe(Ir,`${l(J),M(()=>l(J)?.length||0)??""}${I??""}`)},[()=>(l(me),M(()=>l(me)?` ${l(me).split("/")[1]||""}`:""))]),T(i,Ne),Be()}var JS=te("<input/>"),BS=te("<input/>");function YS(i,n){Je(n,!0);let u=w(n,"ref",15,null),c=w(n,"value",15),d=w(n,"files",15),m=w(n,"data-slot",3,"input"),p=At(n,["$$slots","$$events","$$legacy","ref","value","type","files","class","data-slot"]);var g=Ze(),h=Te(g);{var b=k=>{var v=JS();Gt(v,x=>({"data-slot":m(),class:x,type:"file",...p}),[()=>Sr("selection:bg-primary dark:bg-input/30 selection:text-primary-foreground border-input ring-offset-background placeholder:text-muted-foreground shadow-xs flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 pt-1.5 text-sm font-medium outline-none transition-[color,box-shadow] disabled:cursor-not-allowed disabled:opacity-50","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",n.class)],void 0,void 0,!0),Ur(v,x=>u(x),()=>u()),Y0(v,d),Ca(v,c),T(k,v)},y=k=>{var v=BS();Gt(v,x=>({"data-slot":m(),class:x,type:n.type,...p}),[()=>Sr("border-input bg-background selection:bg-primary dark:bg-input/30 selection:text-primary-foreground ring-offset-background placeholder:text-muted-foreground shadow-xs flex h-9 w-full min-w-0 rounded-md border px-3 py-1 text-base outline-none transition-[color,box-shadow] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",n.class)],void 0,void 0,!0),Ur(v,x=>u(x),()=>u()),Ca(v,c),T(k,v)};ae(h,k=>{n.type==="file"?k(b):k(y,!1)})}T(i,g),Be()}var KS=te('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),HS=te('<span class="text-destructive ml-1">*</span>'),XS=te('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),eI=te('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><span class="font-medium"> </span></div>'),tI=Tn('<svg class="w-4 h-4 animate-spin" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg>'),rI=te('<div class="flex items-center gap-1 border border-border rounded-lg p-0.5"><!> <span class="text-xs font-medium text-muted-foreground px-2"> </span> <!></div>'),nI=te("<!> <span>Reset</span>",1),iI=te('<div class="flex items-center gap-2 text-sm text-green-700 dark:text-green-400 bg-green-50 dark:bg-green-950/30 px-3 py-2 rounded-md border border-green-200 dark:border-green-900"><svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path></svg> <span class="font-medium"> </span></div>'),oI=te('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> <span class="font-medium"> </span></div>'),aI=te('<div class="flex items-center gap-2 flex-wrap"><!> <!> <!></div> <!> <!>',1),sI=te('<div class="w-full space-y-4"><div class="flex text-left items-start gap-3"><!> <div class="flex-1 space-y-1.5"><label class="text-lg font-semibold text-foreground leading-tight"> <!></label> <!></div></div> <!> <div class="relative"><!> <div> </div></div> <!></div>');function uI(i,n){Je(n,!1);const u=ee(),c=ee(),d=ee(),m=ee(),p=ee(),g=ee(),h=ee(),b=ee(),{updateQuestionResponse:y,setQuestionError:k}=pn();let v=w(n,"question",8),x=w(n,"value",8,""),S=w(n,"onChange",8),O=w(n,"error",8,void 0),U=w(n,"currentMode",8,void 0),B=w(n,"questionNumber",8,void 0);w(n,"themeSettings",8,void 0),w(n,"currentLanguage",8,void 0),w(n,"apiKey",8,void 0),w(n,"hostUrl",8,void 0);let oe=w(n,"identifier",8,void 0),J=w(n,"feedbackConfigurationId",8,void 0),Y=w(n,"otherConfigurationProperties",8,void 0),G=ee(x()||""),F=ee(null),K=ee(0),H=ee(O()),$e=ee(!1),Ie=ee(!1),ke=ee(!1),fe=ee(null),Se=ee(null),me=ee(!1),ne=ee(!1),re=ee(""),W=ee(0),N=null,C=ee(l(G));En(()=>{setTimeout(()=>{const I=V(l(G));$(H,I),I&&k(v().id,I),$(me,!0)},0)}),bo(()=>{N!==null&&clearInterval(N)});function E(){l($e)||$($e,!0)}function Z(I){N!==null&&clearInterval(N),N=gb(I,j=>{$(W,j)},()=>{N=null,$(fe,null)})}async function ie(){if(!le())return;const I=l(G);try{$(ke,!0),$(fe,null);const j=await vb({questionId:v().id,identifier:oe(),feedbackConfigurationId:J(),userText:I});if(j?.data?.refinedText){const be=j.data.refinedText;$(Se,Y()?.otherFields?.aiEnhancementSuccessMessage||j.message||"Text refined successfully"),l(F)?($(F,{original:l(F).original,enhanced:[...l(F).enhanced,be]}),$(K,l(F).enhanced.length)):($(F,{original:I,enhanced:[be]}),$(K,1)),$(G,be),$(Ie,!0);const De=V(be);$(H,De),S()(be),y(v().id,be,s.QuestionTypes.SHORT_ANSWER,De)}else{if(j?.message){const{code:be,message:De,seconds:Ke}=pb(j.message);be==="1001"&&Ke!==void 0&&Z(Ke),$(fe,hb(be,De,Y(),Ke))}$(Ie,!1)}}catch(j){console.error("Error enhancing text:",j),$(fe,"An error occurred while enhancing text!"),$(Ie,!1)}finally{$(ke,!1)}}function Q(){if(!l(F))return;const I=l(F).original;$(G,I),$(K,0);const j=V(I);$(H,j),S()(I),y(v().id,I,s.QuestionTypes.SHORT_ANSWER,j)}function Ce(I){if(!l(F))return;let j;if(I===0)j=l(F).original;else{const De=I-1;if(De>=l(F).enhanced.length)return;j=l(F).enhanced[De]}$(G,j),$(K,I);const be=V(j);$(H,be),S()(j),y(v().id,j,s.QuestionTypes.SHORT_ANSWER,be)}function _e(){return l(F)?l(F).enhanced.length+1:0}function V(I){if(v().required&&(!I||I.trim()===""))return v().errorMessage||"This field is required";if(v().maxCharacters!==void 0&&I.length>v().maxCharacters||v().minCharacters!==void 0&&I.length>0&&I.length<v().minCharacters)return v().errorMessage;if(v().enableRegexValidation&&v().regexPattern)try{const j=new RegExp(v().regexPattern);if(I.length>0&&!j.test(I))return v().errorMessage||"Input does not match required pattern"}catch{}}function le(){const I=l(G).trim();return I?v().minCharactersToEnhance!==void 0?I.length>=v().minCharactersToEnhance:!0:!1}ve(()=>z(U()),()=>{$(u,U()==="dark")}),ve(()=>(z(x()),l(G),l($e)),()=>{x()!==void 0&&x()!==l(G)&&!l($e)&&($(G,x()),$(C,x()))}),ve(()=>l(G),()=>{$(c,l(G).length||0)}),ve(()=>z(v()),()=>{$(d,v().minCharacters)}),ve(()=>z(v()),()=>{$(m,v().maxCharacters)}),ve(()=>(l(m),l(c)),()=>{$(p,l(m)!==void 0&&l(c)>l(m))}),ve(()=>(l(d),l(c)),()=>{$(g,l(d)!==void 0&&l(c)<l(d)&&l(c)>0)}),ve(()=>(l(p),l(g)),()=>{$(h,l(p)||l(g))}),ve(()=>(l(d),l(m)),()=>{$(b,l(d)!==void 0||l(m)!==void 0)}),ve(()=>(l(G),z(v())),()=>{const I=l(G).trim();I?v().minCharactersToEnhance!==void 0?$(ne,I.length>=v().minCharactersToEnhance):$(ne,!0):$(ne,!1)}),ve(()=>(l(G),l(d),l(m),z(v())),()=>{const I=l(G)?.length||0;l(d)!==void 0&&l(m)!==void 0?$(re,`${I} / (${l(d)} - ${l(m)})`):l(m)!==void 0&&v().required?$(re,`${I} / (1 - ${l(m)})`):l(d)!==void 0?$(re,`${I} / (${l(d)} - 5000)`):$(re,`${I}`)}),ve(()=>(l(W),z(Y())),()=>{l(W)>0&&Y()?.otherFields?.aiEnhancementCooldownErrorMessage&&$(fe,`${Y().otherFields.aiEnhancementCooldownErrorMessage} (${l(W)}s)`)}),ve(()=>z(O()),()=>{O()!==void 0&&$(H,O())}),ve(()=>(l(me),l($e),l(G),l(C),z(v()),s.QuestionTypes),()=>{if(l(me)&&l($e)&&l(G)!==l(C)){$(C,l(G));const I=V(l(G));$(H,I),y(v().id,l(G),s.QuestionTypes.SHORT_ANSWER,I)}}),fr(),er();var Ne=sI(),xe=R(Ne),Re=R(xe);{var Ye=I=>{var j=KS(),be=R(j);L(j),je(()=>Oe(be,`${B()??""}.`)),T(I,j)};ae(Re,I=>{B()!==void 0&&I(Ye)})}var ut=de(Re,2),qe=R(ut),it=R(qe),ht=de(it);{var Ue=I=>{var j=HS();T(I,j)};ae(ht,I=>{z(v()),M(()=>v().required)&&I(Ue)})}L(qe);var Pt=de(qe,2);{var Ct=I=>{var j=XS(),be=R(j,!0);L(j),je(()=>Oe(be,(z(v()),M(()=>v().description)))),T(I,j)};ae(Pt,I=>{z(v()),M(()=>v().description)&&I(Ct)})}L(ut),L(xe);var qt=de(xe,2);{var Vt=I=>{var j=eI(),be=R(j),De=R(be,!0);L(be),L(j),je(()=>Oe(De,l(H))),T(I,j)};ae(qt,I=>{l(H)&&l($e)&&I(Vt)})}var Et=de(qt,2),_t=R(Et);{let I=Ae(()=>`w-full pr-20 text-secondary-foreground focus-visible:ring-0 focus-visible:ring-offset-0 ${l(b)?"pr-20":""}`);YS(_t,{get class(){return l(I)},onfocus:E,get placeholder(){return z(v()),M(()=>v().placeholder)},onblur:()=>{if(l(me)){const j=V(l(G));$(H,j),k(v().id,j),S()(l(G))}},get value(){return l(G)},set value(j){$(G,j)},$$legacy:!0})}var yt=de(_t,2),Ir=R(yt,!0);L(yt),L(Et);var Mr=de(Et,2);{var vn=I=>{var j=aI(),be=Te(j),De=R(be);{let He=Ae(()=>l(ke)||!l(ne));Ft(De,{type:"button",variant:"secondary",size:"sm",class:"gap-2",onclick:ie,get disabled(){return l(He)},children:(ft,Ut)=>{var kt=Ze(),zr=Te(kt);{var vr=It=>{var bn=tI();T(It,bn)},tr=It=>{Fv(It,{size:16})};ae(zr,It=>{l(ke)?It(vr):It(tr,!1)})}T(ft,kt)},$$slots:{default:!0}})}var Ke=de(De,2);{var We=He=>{var ft=rI(),Ut=R(ft);{let tr=Ae(()=>l(K)===0);Ft(Ut,{type:"button",class:"p-1.5 rounded hover:bg-accent disabled:opacity-50 disabled:cursor-not-allowed transition-colors",onclick:()=>{l(K)>0&&Ce(l(K)-1)},get disabled(){return l(tr)},title:"Previous version",children:(It,bn)=>{Zv(It,{size:14,class:"text-muted-foreground"})},$$slots:{default:!0}})}var kt=de(Ut,2),zr=R(kt);L(kt);var vr=de(kt,2);{let tr=Ae(()=>(l(K),M(()=>l(K)>=_e()-1)));Ft(vr,{type:"button",class:"p-1.5 rounded hover:bg-accent disabled:opacity-50 disabled:cursor-not-allowed transition-colors",onclick:()=>{const It=_e();l(K)<It-1&&Ce(l(K)+1)},get disabled(){return l(tr)},title:"Next version",children:(It,bn)=>{Da(It,{size:14,class:"text-muted-foreground"})},$$slots:{default:!0}})}L(ft),je(tr=>Oe(zr,`${l(K)+1} / ${tr??""}`),[()=>M(_e)]),T(He,ft)};ae(Ke,He=>{l(F),l(ke),M(()=>l(F)&&!l(ke)&&l(F).enhanced&&l(F).enhanced.length>1)&&He(We)})}var vt=de(Ke,2);{var Wt=He=>{Ft(He,{type:"button",variant:"ghost",size:"sm",class:"gap-2",onclick:Q,title:"Back to original text",children:(ft,Ut)=>{var kt=nI(),zr=Te(kt);Av(zr,{size:16}),_r(2),T(ft,kt)},$$slots:{default:!0}})};ae(vt,He=>{l(F)&&!l(ke)&&l(K)!==0&&He(Wt)})}L(be);var ur=de(be,2);{var or=He=>{var ft=iI(),Ut=de(R(ft),2),kt=R(Ut,!0);L(Ut),L(ft),je(()=>Oe(kt,l(Se))),T(He,ft)};ae(ur,He=>{l(Ie)&&!l(fe)&&He(or)})}var ar=de(ur,2);{var Jr=He=>{var ft=oI(),Ut=de(R(ft),2),kt=R(Ut,!0);L(Ut),L(ft),je(()=>Oe(kt,l(fe))),T(He,ft)};ae(ar,He=>{l(fe)&&He(Jr)})}T(I,j)};ae(Mr,I=>{z(v()),M(()=>v().enableEnhanceWithAi)&&I(vn)})}L(Ne),je(()=>{Oe(it,`${z(v()),M(()=>v().title)??""} `),fn(yt,1,`absolute right-3 top-1/2 -translate-y-1/2 text-xs font-medium px-2 py-1 rounded-full transition-colors whitespace-nowrap ${l(h)?"bg-destructive/10 text-destructive border border-destructive/20":"bg-muted text-muted-foreground"}`),Oe(Ir,(l(G),M(()=>l(G)?.length||0)))}),T(i,Ne),Be()}function cI(i){return typeof i=="function"}function lI(i){return i!==null&&typeof i=="object"}const dI=["string","number","bigint","boolean"];function Fc(i){return i==null||dI.includes(typeof i)?!0:Array.isArray(i)?i.every(n=>Fc(n)):typeof i=="object"?Object.getPrototypeOf(i)===Object.prototype:!1}const Ti=Symbol("box"),Wa=Symbol("is-writable");function wt(i,n){const u=lt(i);return n?{[Ti]:!0,[Wa]:!0,get current(){return l(u)},set current(c){n(c)}}:{[Ti]:!0,get current(){return i()}}}function Io(i){return lI(i)&&Ti in i}function qc(i){return Io(i)&&Wa in i}function fI(i){return Io(i)?i:cI(i)?wt(i):gI(i)}function mI(i){return Object.entries(i).reduce((n,[u,c])=>Io(c)?(qc(c)?Object.defineProperty(n,u,{get(){return c.current},set(d){c.current=d}}):Object.defineProperty(n,u,{get(){return c.current}}),n):Object.assign(n,{[u]:c}),{})}function pI(i){return qc(i)?{[Ti]:!0,get current(){return i.current}}:i}function gI(i){let n=qr(In(i));return{[Ti]:!0,[Wa]:!0,get current(){return l(n)},set current(u){$(n,u,!0)}}}function li(i){let n=qr(In(i));return{[Ti]:!0,[Wa]:!0,get current(){return l(n)},set current(u){$(n,u,!0)}}}li.from=fI,li.with=wt,li.flatten=mI,li.readonly=pI,li.isBox=Io,li.isWritableBox=qc;function hI(...i){return function(n){for(const u of i)if(u){if(n.defaultPrevented)return;typeof u=="function"?u.call(this,n):u.current?.call(this,n)}}}var bb=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,vI=/\n/g,bI=/^\s*/,yI=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,$I=/^:\s*/,wI=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,_I=/^[;\s]*/,kI=/^\s+|\s+$/g,xI=`
133
- `,yb="/",$b="*",di="",SI="comment",II="declaration";function zI(i,n){if(typeof i!="string")throw new TypeError("First argument must be a string");if(!i)return[];n=n||{};var u=1,c=1;function d(S){var O=S.match(vI);O&&(u+=O.length);var U=S.lastIndexOf(xI);c=~U?S.length-U:c+S.length}function m(){var S={line:u,column:c};return function(O){return O.position=new p(S),b(),O}}function p(S){this.start=S,this.end={line:u,column:c},this.source=n.source}p.prototype.content=i;function g(S){var O=new Error(n.source+":"+u+":"+c+": "+S);if(O.reason=S,O.filename=n.source,O.line=u,O.column=c,O.source=i,!n.silent)throw O}function h(S){var O=S.exec(i);if(O){var U=O[0];return d(U),i=i.slice(U.length),O}}function b(){h(bI)}function y(S){var O;for(S=S||[];O=k();)O!==!1&&S.push(O);return S}function k(){var S=m();if(!(yb!=i.charAt(0)||$b!=i.charAt(1))){for(var O=2;di!=i.charAt(O)&&($b!=i.charAt(O)||yb!=i.charAt(O+1));)++O;if(O+=2,di===i.charAt(O-1))return g("End of comment missing");var U=i.slice(2,O-2);return c+=2,d(U),i=i.slice(O),c+=2,S({type:SI,comment:U})}}function v(){var S=m(),O=h(yI);if(O){if(k(),!h($I))return g("property missing ':'");var U=h(wI),B=S({type:II,property:wb(O[0].replace(bb,di)),value:U?wb(U[0].replace(bb,di)):di});return h(_I),B}}function x(){var S=[];y(S);for(var O;O=v();)O!==!1&&(S.push(O),y(S));return S}return b(),x()}function wb(i){return i?i.replace(kI,di):di}function NI(i,n){let u=null;if(!i||typeof i!="string")return u;const c=zI(i),d=typeof n=="function";return c.forEach(m=>{if(m.type!=="declaration")return;const{property:p,value:g}=m;d?n(p,g,m):g&&(u=u||{},u[p]=g)}),u}const jI=/\d/,TI=["-","_","/","."];function OI(i=""){if(!jI.test(i))return i!==i.toLowerCase()}function EI(i){const n=[];let u="",c,d;for(const m of i){const p=TI.includes(m);if(p===!0){n.push(u),u="",c=void 0;continue}const g=OI(m);if(d===!1){if(c===!1&&g===!0){n.push(u),u=m,c=g;continue}if(c===!0&&g===!1&&u.length>1){const h=u.at(-1);n.push(u.slice(0,Math.max(0,u.length-1))),u=h+m,c=g;continue}}u+=m,c=g,d=p}return n.push(u),n}function _b(i){return i?EI(i).map(n=>CI(n)).join(""):""}function PI(i){return UI(_b(i||""))}function CI(i){return i?i[0].toUpperCase()+i.slice(1):""}function UI(i){return i?i[0].toLowerCase()+i.slice(1):""}function Qa(i){if(!i)return{};const n={};function u(c,d){if(c.startsWith("-moz-")||c.startsWith("-webkit-")||c.startsWith("-ms-")||c.startsWith("-o-")){n[_b(c)]=d;return}if(c.startsWith("--")){n[c]=d;return}n[PI(c)]=d}return NI(i,u),n}function MI(...i){return(...n)=>{for(const u of i)typeof u=="function"&&u(...n)}}function DI(i,n){const u=RegExp(i,"g");return c=>{if(typeof c!="string")throw new TypeError(`expected an argument of type string, but got ${typeof c}`);return c.match(u)?c.replace(u,n):c}}const LI=DI(/[A-Z]/,i=>`-${i.toLowerCase()}`);function AI(i){if(!i||typeof i!="object"||Array.isArray(i))throw new TypeError(`expected an argument of type object, but got ${typeof i}`);return Object.keys(i).map(n=>`${LI(n)}: ${i[n]};`).join(`
134
- `)}function kb(i={}){return AI(i).replace(`
135
- `," ")}const ZI=["onabort","onanimationcancel","onanimationend","onanimationiteration","onanimationstart","onauxclick","onbeforeinput","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncompositionend","oncompositionstart","oncompositionupdate","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onfocusin","onfocusout","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onselectionchange","onselectstart","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onvolumechange","onwaiting","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkittransitionend","onwheel"],RI=new Set(ZI);function FI(i){return RI.has(i)}function zo(...i){const n={...i[0]};for(let u=1;u<i.length;u++){const c=i[u];if(c){for(const d of Object.keys(c)){const m=n[d],p=c[d],g=typeof m=="function",h=typeof p=="function";if(g&&FI(d)){const b=m,y=p;n[d]=hI(b,y)}else if(g&&h)n[d]=MI(m,p);else if(d==="class"){const b=Fc(m),y=Fc(p);b&&y?n[d]=yo(m,p):b?n[d]=yo(m):y&&(n[d]=yo(p))}else if(d==="style"){const b=typeof m=="object",y=typeof p=="object",k=typeof m=="string",v=typeof p=="string";if(b&&y)n[d]={...m,...p};else if(b&&v){const x=Qa(p);n[d]={...m,...x}}else if(k&&y){const x=Qa(m);n[d]={...x,...p}}else if(k&&v){const x=Qa(m),S=Qa(p);n[d]={...x,...S}}else b?n[d]=m:y?n[d]=p:k?n[d]=m:v&&(n[d]=p)}else n[d]=p!==void 0?p:m}for(const d of Object.getOwnPropertySymbols(c)){const m=n[d],p=c[d];n[d]=p!==void 0?p:m}}}return typeof n.style=="object"&&(n.style=kb(n.style).replaceAll(`
136
- `," ")),n.hidden===!1&&(n.hidden=void 0,delete n.hidden),n.disabled===!1&&(n.disabled=void 0,delete n.disabled),n}const qI=kb({position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"}),WI=typeof window<"u"?window:void 0;function QI(i){let n=i.activeElement;for(;n?.shadowRoot;){const u=n.shadowRoot.activeElement;if(u===n)break;n=u}return n}class GI{#e;#t;constructor(n={}){const{window:u=WI,document:c=u?.document}=n;u!==void 0&&(this.#e=c,this.#t=Mh(d=>{const m=bv(u,"focusin",d),p=bv(u,"focusout",d);return()=>{m(),p()}}))}get current(){return this.#t?.(),this.#e?QI(this.#e):null}}new GI;class Wc{#e;#t;constructor(n){this.#e=n,this.#t=Symbol(n)}get key(){return this.#t}exists(){return Xk(this.#t)}get(){const n=dc(this.#t);if(n===void 0)throw new Error(`Context "${this.#e}" not found`);return n}getOr(n){const u=dc(this.#t);return u===void 0?n:u}set(n){return jh(this.#t,n)}}function VI(i,n){switch(i){case"post":po(n);break;case"pre":tv(n);break}}function xb(i,n,u,c={}){const{lazy:d=!1}=c;let m=!d,p=Array.isArray(i)?[]:void 0;VI(n,()=>{const g=Array.isArray(i)?i.map(b=>b()):i();if(!m){m=!0,p=g;return}const h=M(()=>u(g,p));return p=g,h})}function No(i,n,u){xb(i,"post",n,u)}function JI(i,n,u){xb(i,"pre",n,u)}No.pre=JI;function Ga(i,n){return{[L0()]:u=>Io(i)?(i.current=u,M(()=>n?.(u)),()=>{"isConnected"in u&&u.isConnected||(i.current=null)}):(i(u),M(()=>n?.(u)),()=>{"isConnected"in u&&u.isConnected||i(null)})}}function Va(i){return i?"true":"false"}function Oi(i){return i?"":void 0}function Sb(i,n){return n?"mixed":i?"true":"false"}class BI{#e;#t;attrs;constructor(n){this.#e=n.getVariant?n.getVariant():null,this.#t=this.#e?`data-${this.#e}-`:`data-${n.component}-`,this.getAttr=this.getAttr.bind(this),this.selector=this.selector.bind(this),this.attrs=Object.fromEntries(n.parts.map(u=>[u,this.getAttr(u)]))}getAttr(n,u){return u?`data-${u}-${n}`:`${this.#t}${n}`}selector(n,u){return`[${this.getAttr(n,u)}]`}}function Qc(i){const n=new BI(i);return{...n.attrs,selector:n.selector,getAttr:n.getAttr}}const Gc="ArrowDown",Vc="ArrowLeft",Jc="ArrowRight",Bc="ArrowUp",YI="End",KI="Enter",HI="Home",Ib=" ";function XI(i){return window.getComputedStyle(i).getPropertyValue("direction")}function e1(i="ltr",n="horizontal"){return{horizontal:i==="rtl"?Vc:Jc,vertical:Gc}[n]}function t1(i="ltr",n="horizontal"){return{horizontal:i==="rtl"?Jc:Vc,vertical:Bc}[n]}function r1(i="ltr",n="horizontal"){return["ltr","rtl"].includes(i)||(i="ltr"),["horizontal","vertical"].includes(n)||(n="horizontal"),{nextKey:e1(i,n),prevKey:t1(i,n)}}function zb(i){return i instanceof HTMLElement}class n1{#e;#t=li(null);constructor(n){this.#e=n}getCandidateNodes(){return this.#e.rootNode.current?this.#e.candidateSelector?Array.from(this.#e.rootNode.current.querySelectorAll(this.#e.candidateSelector)):this.#e.candidateAttr?Array.from(this.#e.rootNode.current.querySelectorAll(`[${this.#e.candidateAttr}]:not([data-disabled])`)):[]:[]}focusFirstCandidate(){const n=this.getCandidateNodes();n.length&&n[0]?.focus()}handleKeydown(n,u,c=!1){const d=this.#e.rootNode.current;if(!d||!n)return;const m=this.getCandidateNodes();if(!m.length)return;const p=m.indexOf(n),g=XI(d),{nextKey:h,prevKey:b}=r1(g,this.#e.orientation.current),y=this.#e.loop.current,k={[h]:p+1,[b]:p-1,[HI]:0,[YI]:m.length-1};if(c){const S=h===Gc?Jc:Gc,O=b===Bc?Vc:Bc;k[S]=p+1,k[O]=p-1}let v=k[u.key];if(v===void 0)return;u.preventDefault(),v<0&&y?v=m.length-1:v===m.length&&y&&(v=0);const x=m[v];if(x)return x.focus(),this.#t.current=x.id,this.#e.onCandidateFocus?.(x),x}getTabIndex(n){const u=this.getCandidateNodes(),c=this.#t.current!==null;return n&&!c&&u[0]===n?(this.#t.current=n.id,0):n?.id===this.#t.current?0:-1}setCurrentTabStopId(n){this.#t.current=n}focusCurrentTabStop(){const n=this.#t.current;if(!n)return;const u=this.#e.rootNode.current?.querySelector(`#${n}`);!u||!zb(u)||u.focus()}}function i1(){}function Ja(i,n){return`bits-${i}`}const o1=Qc({component:"checkbox",parts:["root","group","group-label","input"]}),a1=new Wc("Checkbox.Group"),Nb=new Wc("Checkbox.Root");class Yc{static create(n,u=null){return Nb.set(new Yc(n,u))}opts;group;#e=lt(()=>this.group&&this.group.opts.name.current?this.group.opts.name.current:this.opts.name.current);get trueName(){return l(this.#e)}set trueName(n){$(this.#e,n)}#t=lt(()=>this.group&&this.group.opts.required.current?!0:this.opts.required.current);get trueRequired(){return l(this.#t)}set trueRequired(n){$(this.#t,n)}#n=lt(()=>this.group&&this.group.opts.disabled.current?!0:this.opts.disabled.current);get trueDisabled(){return l(this.#n)}set trueDisabled(n){$(this.#n,n)}#o=lt(()=>this.group&&this.group.opts.readonly.current?!0:this.opts.readonly.current);get trueReadonly(){return l(this.#o)}set trueReadonly(n){$(this.#o,n)}attachment;constructor(n,u){this.opts=n,this.group=u,this.attachment=Ga(this.opts.ref),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),No.pre([()=>Hk(this.group?.opts.value.current),()=>this.opts.value.current],([c,d])=>{!c||!d||(this.opts.checked.current=c.includes(d))}),No.pre(()=>this.opts.checked.current,c=>{this.group&&(c?this.group?.addValue(this.opts.value.current):this.group?.removeValue(this.opts.value.current))})}onkeydown(n){this.trueDisabled||this.trueReadonly||(n.key===KI&&n.preventDefault(),n.key===Ib&&(n.preventDefault(),this.#i()))}#i(){this.opts.indeterminate.current?(this.opts.indeterminate.current=!1,this.opts.checked.current=!0):this.opts.checked.current=!this.opts.checked.current}onclick(n){if(!(this.trueDisabled||this.trueReadonly)){if(this.opts.type.current==="submit"){this.#i();return}n.preventDefault(),this.#i()}}#a=lt(()=>({checked:this.opts.checked.current,indeterminate:this.opts.indeterminate.current}));get snippetProps(){return l(this.#a)}set snippetProps(n){$(this.#a,n)}#r=lt(()=>({id:this.opts.id.current,role:"checkbox",type:this.opts.type.current,disabled:this.trueDisabled,"aria-checked":Sb(this.opts.checked.current,this.opts.indeterminate.current),"aria-required":Va(this.trueRequired),"aria-readonly":Va(this.trueReadonly),"data-disabled":Oi(this.trueDisabled),"data-readonly":Oi(this.trueReadonly),"data-state":s1(this.opts.checked.current,this.opts.indeterminate.current),[o1.root]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment}));get props(){return l(this.#r)}set props(n){$(this.#r,n)}}class Kc{static create(){return new Kc(Nb.get())}root;#e=lt(()=>this.root.group?!!(this.root.opts.value.current!==void 0&&this.root.group.opts.value.current.includes(this.root.opts.value.current)):this.root.opts.checked.current);get trueChecked(){return l(this.#e)}set trueChecked(n){$(this.#e,n)}#t=lt(()=>!!this.root.trueName);get shouldRender(){return l(this.#t)}set shouldRender(n){$(this.#t,n)}constructor(n){this.root=n,this.onfocus=this.onfocus.bind(this)}onfocus(n){zb(this.root.opts.ref.current)&&this.root.opts.ref.current.focus()}#n=lt(()=>({type:"checkbox",checked:this.root.opts.checked.current===!0,disabled:this.root.trueDisabled,required:this.root.trueRequired,name:this.root.trueName,value:this.root.opts.value.current,readonly:this.root.trueReadonly,onfocus:this.onfocus}));get props(){return l(this.#n)}set props(n){$(this.#n,n)}}function s1(i,n){return n?"indeterminate":i?"checked":"unchecked"}var u1=te("<input/>"),c1=te("<input/>");function jb(i,n){Je(n,!0);let u=w(n,"value",15),c=At(n,["$$slots","$$events","$$legacy","value"]);const d=lt(()=>zo(c,{"aria-hidden":"true",tabindex:-1,style:qI}));var m=Ze(),p=Te(m);{var g=b=>{var y=u1();Gt(y,()=>({...l(d),value:u()}),void 0,void 0,void 0,!0),T(b,y)},h=b=>{var y=c1();Gt(y,()=>({...l(d)}),void 0,void 0,void 0,!0),Ca(y,u),T(b,y)};ae(p,b=>{l(d).type==="checkbox"?b(g):b(h,!1)})}T(i,m),Be()}function l1(i,n){Je(n,!1);const u=Kc.create();er();var c=Ze(),d=Te(c);{var m=p=>{jb(p,Tt(()=>u.props))};ae(d,p=>{u.shouldRender&&p(m)})}T(i,c),Be()}var d1=te("<button><!></button>"),f1=te("<!> <!>",1);function m1(i,n){const u=Ea();Je(n,!0);let c=w(n,"checked",15,!1),d=w(n,"ref",15,null),m=w(n,"disabled",3,!1),p=w(n,"required",3,!1),g=w(n,"name",3,void 0),h=w(n,"value",3,"on"),b=w(n,"id",19,()=>Ja(u)),y=w(n,"indeterminate",15,!1),k=w(n,"type",3,"button"),v=At(n,["$$slots","$$events","$$legacy","checked","ref","onCheckedChange","children","disabled","required","name","value","id","indeterminate","onIndeterminateChange","child","type","readonly"]);const x=a1.getOr(null);x&&h()&&(x.opts.value.current.includes(h())?c(!0):c(!1)),No.pre(()=>h(),()=>{x&&h()&&(x.opts.value.current.includes(h())?c(!0):c(!1))});const S=Yc.create({checked:wt(()=>c(),G=>{c(G),n.onCheckedChange?.(G)}),disabled:wt(()=>m()??!1),required:wt(()=>p()),name:wt(()=>g()),value:wt(()=>h()),id:wt(()=>b()),ref:wt(()=>d(),G=>d(G)),indeterminate:wt(()=>y(),G=>{y(G),n.onIndeterminateChange?.(G)}),type:wt(()=>k()),readonly:wt(()=>!!n.readonly)},x),O=lt(()=>zo({...v},S.props));var U=f1(),B=Te(U);{var oe=G=>{var F=Ze(),K=Te(F);{let H=lt(()=>({props:l(O),...S.snippetProps}));Rt(K,()=>n.child,()=>l(H))}T(G,F)},J=G=>{var F=d1();Gt(F,()=>({...l(O)}));var K=R(F);Rt(K,()=>n.children??gt,()=>S.snippetProps),L(F),T(G,F)};ae(B,G=>{n.child?G(oe):G(J,!1)})}var Y=de(B,2);l1(Y,{}),T(i,U),Be()}const p1=Qc({component:"progress",parts:["root"]});class Hc{static create(n){return new Hc(n)}opts;attachment;constructor(n){this.opts=n,this.attachment=Ga(this.opts.ref)}#e=lt(()=>({role:"progressbar",value:this.opts.value.current,"aria-valuemin":this.opts.min.current,"aria-valuemax":this.opts.max.current,"aria-valuenow":this.opts.value.current===null?void 0:this.opts.value.current,"data-value":this.opts.value.current===null?void 0:this.opts.value.current,"data-state":g1(this.opts.value.current,this.opts.max.current),"data-max":this.opts.max.current,"data-min":this.opts.min.current,"data-indeterminate":this.opts.value.current===null?"":void 0,[p1.root]:"",...this.attachment}));get props(){return l(this.#e)}set props(n){$(this.#e,n)}}function g1(i,n){return i===null?"indeterminate":i===n?"loaded":"loading"}var h1=te("<div><!></div>");function v1(i,n){const u=Ea();Je(n,!0);let c=w(n,"value",3,0),d=w(n,"max",3,100),m=w(n,"min",3,0),p=w(n,"id",19,()=>Ja(u)),g=w(n,"ref",15,null),h=At(n,["$$slots","$$events","$$legacy","child","children","value","max","min","id","ref"]);const b=Hc.create({value:wt(()=>c()),max:wt(()=>d()),min:wt(()=>m()),id:wt(()=>p()),ref:wt(()=>g(),O=>g(O))}),y=lt(()=>zo(h,b.props));var k=Ze(),v=Te(k);{var x=O=>{var U=Ze(),B=Te(U);Rt(B,()=>n.child,()=>({props:l(y)})),T(O,U)},S=O=>{var U=h1();Gt(U,()=>({...l(y)}));var B=R(U);Rt(B,()=>n.children??gt),L(U),T(O,U)};ae(v,O=>{n.child?O(x):O(S,!1)})}T(i,k),Be()}const Xc=Qc({component:"radio-group",parts:["root","item"]}),el=new Wc("RadioGroup.Root");class tl{static create(n){return el.set(new tl(n))}opts;#e=lt(()=>this.opts.value.current!=="");get hasValue(){return l(this.#e)}set hasValue(n){$(this.#e,n)}rovingFocusGroup;attachment;constructor(n){this.opts=n,this.attachment=Ga(this.opts.ref),this.rovingFocusGroup=new n1({rootNode:this.opts.ref,candidateAttr:Xc.item,loop:this.opts.loop,orientation:this.opts.orientation})}isChecked(n){return this.opts.value.current===n}setValue(n){this.opts.value.current=n}#t=lt(()=>({id:this.opts.id.current,role:"radiogroup","aria-required":Va(this.opts.required.current),"aria-disabled":Va(this.opts.disabled.current),"aria-readonly":this.opts.readonly.current?"true":void 0,"data-disabled":Oi(this.opts.disabled.current),"data-readonly":Oi(this.opts.readonly.current),"data-orientation":this.opts.orientation.current,[Xc.root]:"",...this.attachment}));get props(){return l(this.#t)}set props(n){$(this.#t,n)}}class rl{static create(n){return new rl(n,el.get())}opts;root;attachment;#e=lt(()=>this.root.opts.value.current===this.opts.value.current);get checked(){return l(this.#e)}set checked(n){$(this.#e,n)}#t=lt(()=>this.opts.disabled.current||this.root.opts.disabled.current);#n=lt(()=>this.root.opts.readonly.current);#o=lt(()=>this.root.isChecked(this.opts.value.current));#i=qr(-1);constructor(n,u){this.opts=n,this.root=u,this.attachment=Ga(this.opts.ref),this.opts.value.current===this.root.opts.value.current?(this.root.rovingFocusGroup.setCurrentTabStopId(this.opts.id.current),$(this.#i,0)):this.root.opts.value.current||$(this.#i,0),po(()=>{$(this.#i,this.root.rovingFocusGroup.getTabIndex(this.opts.ref.current),!0)}),No([()=>this.opts.value.current,()=>this.root.opts.value.current],()=>{this.opts.value.current===this.root.opts.value.current&&(this.root.rovingFocusGroup.setCurrentTabStopId(this.opts.id.current),$(this.#i,0))}),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onfocus=this.onfocus.bind(this)}onclick(n){this.opts.disabled.current||l(this.#n)||this.root.setValue(this.opts.value.current)}onfocus(n){!this.root.hasValue||l(this.#n)||this.root.setValue(this.opts.value.current)}onkeydown(n){if(!l(this.#t)){if(n.key===Ib){n.preventDefault(),l(this.#n)||this.root.setValue(this.opts.value.current);return}this.root.rovingFocusGroup.handleKeydown(this.opts.ref.current,n,!0)}}#a=lt(()=>({checked:l(this.#o)}));get snippetProps(){return l(this.#a)}set snippetProps(n){$(this.#a,n)}#r=lt(()=>({id:this.opts.id.current,disabled:l(this.#t)?!0:void 0,"data-value":this.opts.value.current,"data-orientation":this.root.opts.orientation.current,"data-disabled":Oi(l(this.#t)),"data-readonly":Oi(l(this.#n)),"data-state":l(this.#o)?"checked":"unchecked","aria-checked":Sb(l(this.#o),!1),[Xc.item]:"",type:"button",role:"radio",tabindex:l(this.#i),onkeydown:this.onkeydown,onfocus:this.onfocus,onclick:this.onclick,...this.attachment}));get props(){return l(this.#r)}set props(n){$(this.#r,n)}}class nl{static create(){return new nl(el.get())}root;#e=lt(()=>this.root.opts.name.current!==void 0);get shouldRender(){return l(this.#e)}set shouldRender(n){$(this.#e,n)}constructor(n){this.root=n,this.onfocus=this.onfocus.bind(this)}onfocus(n){this.root.rovingFocusGroup.focusCurrentTabStop()}#t=lt(()=>({name:this.root.opts.name.current,value:this.root.opts.value.current,required:this.root.opts.required.current,disabled:this.root.opts.disabled.current,onfocus:this.onfocus}));get props(){return l(this.#t)}set props(n){$(this.#t,n)}}function b1(i,n){Je(n,!1);const u=nl.create();er();var c=Ze(),d=Te(c);{var m=p=>{jb(p,Tt(()=>u.props))};ae(d,p=>{u.shouldRender&&p(m)})}T(i,c),Be()}var y1=te("<div><!></div>"),$1=te("<!> <!>",1);function w1(i,n){const u=Ea();Je(n,!0);let c=w(n,"disabled",3,!1),d=w(n,"value",15,""),m=w(n,"ref",15,null),p=w(n,"orientation",3,"vertical"),g=w(n,"loop",3,!0),h=w(n,"name",3,void 0),b=w(n,"required",3,!1),y=w(n,"readonly",3,!1),k=w(n,"id",19,()=>Ja(u)),v=w(n,"onValueChange",3,i1),x=At(n,["$$slots","$$events","$$legacy","disabled","children","child","value","ref","orientation","loop","name","required","readonly","id","onValueChange"]);const S=tl.create({orientation:wt(()=>p()),disabled:wt(()=>c()),loop:wt(()=>g()),name:wt(()=>h()),required:wt(()=>b()),readonly:wt(()=>y()),id:wt(()=>k()),value:wt(()=>d(),G=>{G!==d()&&(d(G),v()?.(G))}),ref:wt(()=>m(),G=>m(G))}),O=lt(()=>zo(x,S.props));var U=$1(),B=Te(U);{var oe=G=>{var F=Ze(),K=Te(F);Rt(K,()=>n.child,()=>({props:l(O)})),T(G,F)},J=G=>{var F=y1();Gt(F,()=>({...l(O)}));var K=R(F);Rt(K,()=>n.children??gt),L(F),T(G,F)};ae(B,G=>{n.child?G(oe):G(J,!1)})}var Y=de(B,2);b1(Y,{}),T(i,U),Be()}var _1=te("<button><!></button>");function k1(i,n){const u=Ea();Je(n,!0);let c=w(n,"id",19,()=>Ja(u)),d=w(n,"disabled",3,!1),m=w(n,"ref",15,null),p=At(n,["$$slots","$$events","$$legacy","id","children","child","value","disabled","ref"]);const g=rl.create({value:wt(()=>n.value),disabled:wt(()=>d()??!1),id:wt(()=>c()),ref:wt(()=>m(),x=>m(x))}),h=lt(()=>zo(p,g.props));var b=Ze(),y=Te(b);{var k=x=>{var S=Ze(),O=Te(S);{let U=lt(()=>({props:l(h),...g.snippetProps}));Rt(O,()=>n.child,()=>l(U))}T(x,S)},v=x=>{var S=_1();Gt(S,()=>({...l(h)}));var O=R(S);Rt(O,()=>n.children??gt,()=>g.snippetProps),L(S),T(x,S)};ae(y,x=>{n.child?x(k):x(v,!1)})}T(i,b),Be()}function x1(i,n){Je(n,!0);let u=w(n,"ref",15,null),c=w(n,"value",15,""),d=At(n,["$$slots","$$events","$$legacy","ref","class","value"]);var m=Ze(),p=Te(m);{let g=lt(()=>Sr("grid gap-3",n.class));Pa(p,()=>w1,(h,b)=>{b(h,Tt({"data-slot":"radio-group",get class(){return l(g)}},()=>d,{get ref(){return u()},set ref(y){u(y)},get value(){return c()},set value(y){c(y)}}))})}T(i,m),Be()}function S1(i,n){Je(n,!0);/**
132
+ */let u=Lt(n,["$$slots","$$events","$$legacy"]);const c=[["path",{d:"m9 18 6-6-6-6"}]];Fa(i,Tt({name:"chevron-right"},()=>u,{get iconNode(){return c},children:(d,m)=>{var p=Ze(),g=Te(p);Rt(g,()=>n.children??gt),O(d,p)},$$slots:{default:!0}})),Be()}var hS=re("<li><!></li>");function vS(i,n){Je(n,!0);let u=w(n,"ref",15,null),c=Lt(n,["$$slots","$$events","$$legacy","ref","class","children"]);var d=hS();Qt(d,h=>({"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",class:h,...c}),[()=>Sr("[&>svg]:size-3.5",n.class)]);var m=Z(d);{var p=h=>{var b=Ze(),y=Te(b);Rt(y,()=>n.children??gt),O(h,b)},g=h=>{gS(h,{})};ae(m,h=>{n.children?h(p):h(g,!1)})}A(d),Ur(d,h=>u(h),()=>u()),O(i,d),Be()}var bS=re("<a><!></a>");function yS(i,n){Je(n,!0);let u=w(n,"ref",15,null),c=w(n,"href",3,void 0),d=Lt(n,["$$slots","$$events","$$legacy","ref","class","href","child","children"]);const m=lt(()=>({"data-slot":"breadcrumb-link",class:Sr("hover:text-foreground transition-colors",n.class),href:c(),...d}));var p=Ze(),g=Te(p);{var h=y=>{var k=Ze(),v=Te(k);Rt(v,()=>n.child,()=>({props:l(m)})),O(y,k)},b=y=>{var k=bS();Qt(k,()=>({...l(m)}));var v=Z(k);Rt(v,()=>n.children??gt),A(k),Ur(k,x=>u(x),()=>u()),O(y,k)};ae(g,y=>{n.child?y(h):y(b,!1)})}O(i,p),Be()}var $S=re("<ol><!></ol>");function wS(i,n){Je(n,!0);let u=w(n,"ref",15,null),c=Lt(n,["$$slots","$$events","$$legacy","ref","class","children"]);var d=$S();Qt(d,p=>({"data-slot":"breadcrumb-list",class:p,...c}),[()=>Sr("text-muted-foreground flex flex-wrap items-center gap-1.5 break-words text-sm sm:gap-2.5",n.class)]);var m=Z(d);Rt(m,()=>n.children??gt),A(d),Ur(d,p=>u(p),()=>u()),O(i,d),Be()}var _S=re('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),kS=re('<span class="text-destructive ml-1">*</span>'),xS=re('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),SS=re("<!> <!>",1),IS=re("<!> <!>",1),zS=Tn('<svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M5 13l4 4L19 7"></path></svg>'),NS=re('<span class="flex items-center gap-3 w-full"><span class="flex-1 text-sm font-medium"> </span> <!></span>'),jS=re('<div class="p-2 space-y-1"></div>'),TS=re('<div class="flex flex-col items-center justify-center py-12 px-4"><div class="w-12 h-12 rounded-full bg-muted flex items-center justify-center mb-3"><svg class="w-6 h-6 text-muted-foreground" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"></path></svg></div> <p class="text-sm font-medium text-muted-foreground">No options available</p></div>'),OS=re('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> <span class="font-medium"> </span></div>'),ES=re('<div class="w-full space-y-4"><div class="flex text-left items-start gap-3"><!> <div class="flex-1 space-y-1.5"><label class="text-lg font-semibold text-foreground leading-tight"> <!></label> <!></div></div> <div class="border border-border rounded-xl bg-card shadow-sm overflow-hidden"><div class="px-4 py-3 bg-accent/30 border-b border-border backdrop-blur-sm"><!></div> <div class="max-h-[420px] overflow-y-auto scrollbar-thin"><!></div></div> <!></div>');function PS(i,n){Je(n,!1);const u=te();let c=w(n,"question",8),d=w(n,"value",24,()=>[]),m=w(n,"onChange",8),p=w(n,"error",8,void 0),g=w(n,"currentMode",8,void 0),h=w(n,"questionNumber",8,void 0);w(n,"themeSettings",8,void 0),w(n,"currentLanguage",8,void 0);const b=d()?Array.isArray(d())?d():[d()]:[];let y=te(b),k=te(E()),v=te(!1),x=te([]),S=te([]);function E(){return b.length===0?[]:b.slice(0,-1)}function C(Q,de){$(v,!0),Q.children&&Q.children.length>0?$(k,de):($(y,de),$(k,de.slice(0,-1)),m()(de))}function Y(Q){const de=l(y);return de.length!==Q.length?!1:Q.every((Ne,xe)=>de[xe]===Ne)}function oe(Q){let de=c().options;for(let Ne=0;Ne<Q.length;Ne++){const xe=de.find(Re=>Re.value===Q[Ne]);if(xe&&xe.children)de=xe.children;else return[]}return de}function J(Q){const de=[];let Ne=c().options;for(let xe=0;xe<Q.length;xe++){const Re=Ne.find(Ye=>Ye.value===Q[xe]);Re&&(de.push({value:Q[xe],label:Re.label,index:xe}),Re.children&&(Ne=Re.children))}return de}function B(Q){$(v,!0),$(k,l(k).slice(0,Q+1))}function G(){$(v,!0),$(k,[]),$(y,[]),m()([])}ve(()=>N(g()),()=>{$(u,g()==="dark")}),ve(()=>(N(d()),l(v)),()=>{if(d()!==void 0&&!l(v)){const Q=Array.isArray(d())?d():[d()];$(y,Q),Q.length>0?$(k,Q.slice(0,-1)):$(k,[])}else d()===void 0&&!l(v)&&($(y,[]),$(k,[]))}),ve(()=>l(k),()=>{$(x,oe(l(k)))}),ve(()=>l(k),()=>{$(S,J(l(k)))}),fr(),er();var R=ES(),H=Z(R),K=Z(H);{var $e=Q=>{var de=_S(),Ne=Z(de);A(de),je(()=>Oe(Ne,`${h()??""}.`)),O(Q,de)};ae(K,Q=>{h()!==void 0&&Q($e)})}var Ie=fe(K,2),ke=Z(Ie),me=Z(ke),Se=fe(me);{var le=Q=>{var de=kS();O(Q,de)};ae(Se,Q=>{N(c()),U(()=>c().required)&&Q(le)})}A(ke);var ie=fe(ke,2);{var ee=Q=>{var de=xS(),Ne=Z(de,!0);A(de),je(()=>Oe(Ne,(N(c()),U(()=>c().description)))),O(Q,de)};ae(ie,Q=>{N(c()),U(()=>c().description)&&Q(ee)})}A(Ie),A(H);var W=fe(H,2),F=Z(W),I=Z(F);dS(I,{children:(Q,de)=>{wS(Q,{class:"flex items-center gap-1.5 flex-wrap",children:(Ne,xe)=>{var Re=IS(),Ye=Te(Re);pb(Ye,{children:(Fe,it)=>{qt(Fe,{type:"button",variant:"ghost",size:"sm",class:"h-8 w-8 p-0 hover:bg-background/80 rounded-md transition-colors",onclick:G,"aria-label":"Home",children:(ht,Ue)=>{c0(ht,{size:18,class:"text-muted-foreground hover:text-foreground transition-colors"})},$$slots:{default:!0}})},$$slots:{default:!0}});var ut=fe(Ye,2);gr(ut,1,()=>l(S),xr,(Fe,it)=>{var ht=SS(),Ue=Te(ht);vS(Ue,{class:"text-muted-foreground/50",children:(Ct,Ft)=>{Aa(Ct,{size:14})},$$slots:{default:!0}});var Pt=fe(Ue,2);pb(Pt,{children:(Ct,Ft)=>{yS(Ct,{onclick:()=>B(l(it).index),class:"cursor-pointer text-sm font-medium text-foreground/80 hover:text-primary transition-colors px-2 py-1 rounded-md hover:bg-background/50",children:(Gt,Et)=>{_r();var _t=On();je(()=>Oe(_t,(l(it),U(()=>l(it).label)))),O(Gt,_t)},$$slots:{default:!0}})},$$slots:{default:!0}}),O(Fe,ht)}),O(Ne,Re)},$$slots:{default:!0}})},$$slots:{default:!0}}),A(F);var j=fe(F,2),D=Z(j);{var ne=Q=>{var de=jS();gr(de,5,()=>l(x),xr,(Ne,xe)=>{const Re=Le(()=>(l(k),l(xe),U(()=>Y([...l(k),l(xe).value])))),Ye=Le(()=>(l(xe),U(()=>l(xe).children&&l(xe).children.length>0)));{let ut=Le(()=>`w-full justify-start px-4 py-3.5 h-auto rounded-lg text-left transition-all relative group ${l(Re)&&!l(Ye)?"bg-primary text-primary-foreground border-primary shadow-md hover:shadow-lg hover:bg-primary/90 hover:text-primary-foreground dark:hover:bg-primary":"text-foreground hover:bg-accent/50 hover:border-border/50 border border-transparent"}`);qt(Ne,{type:"button",variant:"ghost",get class(){return l(ut)},onclick:()=>C(l(xe),[...l(k),l(xe).value]),children:(Fe,it)=>{var ht=NS(),Ue=Z(ht),Pt=Z(Ue,!0);A(Ue);var Ct=fe(Ue,2);{var Ft=Et=>{{let _t=Le(()=>`flex-shrink-0 transition-transform group-hover:translate-x-0.5 ${l(Re)?"text-primary":"text-muted-foreground"}`);Aa(Et,{size:18,get class(){return l(_t)}})}},Gt=Et=>{var _t=Ze(),yt=Te(_t);{var Ir=Mr=>{var vn=zS();O(Mr,vn)};ae(yt,Mr=>{l(Re)&&Mr(Ir)},!0)}O(Et,_t)};ae(Ct,Et=>{l(Ye)?Et(Ft):Et(Gt,!1)})}A(ht),je(()=>Oe(Pt,(l(xe),U(()=>l(xe).label)))),O(Fe,ht)},$$slots:{default:!0}})}}),A(de),O(Q,de)},V=Q=>{var de=TS();O(Q,de)};ae(D,Q=>{l(x),U(()=>l(x).length>0)?Q(ne):Q(V,!1)})}A(j),A(W);var Ce=fe(W,2);{var _e=Q=>{var de=OS(),Ne=fe(Z(de),2),xe=Z(Ne,!0);A(Ne),A(de),je(()=>Oe(xe,p())),O(Q,de)};ae(Ce,Q=>{p()&&Q(_e)})}A(R),je(()=>Oe(me,`${N(c()),U(()=>c().title)??""} `)),O(i,R),Be()}var CS=re("<textarea></textarea>");function US(i,n){Je(n,!0);let u=w(n,"ref",15,null),c=w(n,"value",15),d=w(n,"data-slot",3,"textarea"),m=Lt(n,["$$slots","$$events","$$legacy","ref","value","class","data-slot"]);var p=CS();mx(p),Qt(p,g=>({"data-slot":d(),class:g,...m}),[()=>Sr("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 field-sizing-content shadow-xs flex min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base outline-none transition-[color,box-shadow] focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",n.class)]),Ur(p,g=>u(g),()=>u()),Ca(p,c),O(i,p),Be()}function gb(i){if(!i)return{code:null,message:""};const n=i.split("|").map(u=>u.trim());if(n.length>=2){const u=n[0],c=n.slice(1).join("|").trim(),d=c.match(/(\d+)\s+seconds?/i),m=d?parseInt(d[1],10):void 0;return{code:u,message:c,seconds:m}}return{code:null,message:i}}function hb(i,n,u){let c=i;n(c);const d=setInterval(()=>{c--,n(c),c<=0&&(clearInterval(d),u())},1e3);return d}function vb(i,n,u,c){if(!u?.otherFields)return n;const{otherFields:d}=u;switch(i){case"1001":{const m=d.aiEnhancementCooldownErrorMessage||n;return c!==void 0?`${m} (${c}s)`:m}case"1002":return d.aiEnhancementMaxReachedErrorMessage||n;default:return n}}async function bb(i){return await window.encatch._internal.refineText({questionId:i.questionId,identifier:i.identifier,feedbackConfigurationId:i.feedbackConfigurationId,userText:i.userText})}var MS=re('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),AS=re('<span class="text-destructive ml-1">*</span>'),DS=re('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),LS=re('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><span class="font-medium"> </span></div>'),ZS=Tn('<svg class="w-4 h-4 animate-spin" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg>'),RS=re('<div class="flex items-center gap-1 border border-border rounded-lg p-0.5"><!> <span class="text-xs font-medium text-muted-foreground px-2"> </span> <!></div>'),qS=re("<!> <span>Reset</span>",1),FS=re('<div class="flex items-center gap-2 text-sm text-green-700 dark:text-green-400 bg-green-50 dark:bg-green-950/30 px-3 py-2 rounded-md border border-green-200 dark:border-green-900"><svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path></svg> <span class="font-medium"> </span></div>'),WS=re('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> <span class="font-medium"> </span></div>'),VS=re('<div class="flex items-center gap-2 flex-wrap"><!> <!> <!></div> <!> <!>',1),QS=re('<div class="w-full space-y-4"><div class="flex text-left items-start gap-3"><!> <div class="flex-1 space-y-1.5"><label class="text-lg font-semibold text-foreground leading-tight"> <!></label> <!></div></div> <!> <div class="relative"><!> <div> </div></div> <!></div>');function GS(i,n){Je(n,!1);const u=te(),c=te(),d=te(),m=te(),p=te(),g=te(),h=te(),b=te();let y=w(n,"question",8),k=w(n,"value",8,""),v=w(n,"onChange",8),x=w(n,"error",8,void 0),S=w(n,"currentMode",8,void 0),E=w(n,"questionNumber",8,void 0);w(n,"themeSettings",8,void 0),w(n,"currentLanguage",8,void 0),w(n,"apiKey",8,void 0),w(n,"hostUrl",8,void 0);let C=w(n,"identifier",8,void 0),Y=w(n,"feedbackConfigurationId",8,void 0),oe=w(n,"otherConfigurationProperties",8,void 0),J=te(k()??""),B=te(null),G=te(0),R=te(x()),H=te(!1),K=te(!1),$e=te(!1),Ie=te(null),ke=te(null),me=te(!1),Se=te(!1),le=te(""),ie=te(0),ee=null,W=te(l(J));const{updateQuestionResponse:F,setQuestionError:I}=pn();En(()=>{setTimeout(()=>{const z=D(l(J));$(R,z),z&&I(y().id,z),$(me,!0)},0)}),bo(()=>{ee!==null&&clearInterval(ee)});function j(){l(H)||$(H,!0)}function D(z){if(y().required&&(!z||z.trim()===""))return y().errorMessage||"This field is required";if(y().maxCharacters!==void 0&&z.length>y().maxCharacters||y().minCharacters!==void 0&&z.length>0&&z.length<y().minCharacters)return y().errorMessage}function ne(z){ee!==null&&clearInterval(ee),ee=hb(z,T=>{$(ie,T)},()=>{ee=null,$(Ie,null)})}async function V(){if(!de()||!C()||!Y())return;const z=l(J);try{$($e,!0),$(Ie,null);const T=await bb({questionId:y().id,identifier:C(),feedbackConfigurationId:Y(),userText:z});if(T?.data?.refinedText){const be=T.data.refinedText;$(ke,oe()?.otherFields?.aiEnhancementSuccessMessage||T.message||"Text refined successfully"),l(B)?($(B,{original:l(B).original,enhanced:[...l(B).enhanced,be]}),$(G,l(B).enhanced.length)):($(B,{original:z,enhanced:[be]}),$(G,1)),$(J,be),$(K,!0);const Ae=D(be);$(R,Ae),v()(be),F(y().id,be,s.QuestionTypes.LONG_TEXT,Ae)}else{if(T?.message){const{code:be,message:Ae,seconds:Ke}=gb(T.message);be==="1001"&&Ke!==void 0&&ne(Ke),$(Ie,vb(be,Ae,oe(),Ke))}$(K,!1)}}catch(T){console.error("Error enhancing text:",T),$(Ie,"An error occurred while enhancing text"),$(K,!1)}finally{$($e,!1)}}function Ce(){if(!l(B))return;const z=l(B).original;$(J,z),$(G,0);const T=D(z);$(R,T),v()(z),F(y().id,z,s.QuestionTypes.LONG_TEXT,T)}function _e(z){if(!l(B))return;let T;if(z===0)T=l(B).original;else{const Ae=z-1;if(Ae>=l(B).enhanced.length)return;T=l(B).enhanced[Ae]}$(J,T),$(G,z);const be=D(T);$(R,be),v()(T),F(y().id,T,s.QuestionTypes.LONG_TEXT,be)}function Q(){return l(B)?l(B).enhanced.length+1:0}function de(){const z=l(J).trim();return z?y().minCharactersToEnhance!==void 0?z.length>=y().minCharactersToEnhance:!0:!1}ve(()=>N(S()),()=>{$(u,S()==="dark")}),ve(()=>(N(k()),l(J),l(H)),()=>{k()!==void 0&&k()!==l(J)&&!l(H)&&($(J,k()),$(W,k()))}),ve(()=>l(J),()=>{$(c,l(J).length)}),ve(()=>N(y()),()=>{$(d,y().minCharacters)}),ve(()=>N(y()),()=>{$(m,y().maxCharacters)}),ve(()=>(l(m),l(c)),()=>{$(p,l(m)!==void 0&&l(c)>l(m))}),ve(()=>(l(d),l(c)),()=>{$(g,l(d)!==void 0&&l(c)<l(d)&&l(c)>0)}),ve(()=>(l(p),l(g)),()=>{$(h,l(p)||l(g))}),ve(()=>(l(d),l(m)),()=>{$(b,l(d)!==void 0||l(m)!==void 0)}),ve(()=>(l(J),N(y())),()=>{const z=l(J).trim();z?y().minCharactersToEnhance!==void 0?$(Se,z.length>=y().minCharactersToEnhance):$(Se,!0):$(Se,!1)}),ve(()=>(l(d),l(m),l(c),N(y())),()=>{l(d)!==void 0&&l(m)!==void 0?$(le,`${l(c)} / (${l(d)} - ${l(m)})`):l(m)!==void 0&&y().required?$(le,`${l(c)} / (1 - ${l(m)})`):l(d)!==void 0?$(le,`${l(c)} / (${l(d)} - 5000)`):$(le,"")}),ve(()=>(l(ie),N(oe())),()=>{l(ie)>0&&oe()?.otherFields?.aiEnhancementCooldownErrorMessage&&$(Ie,`${oe().otherFields.aiEnhancementCooldownErrorMessage} (${l(ie)}s)`)}),ve(()=>N(x()),()=>{x()!==void 0&&$(R,x())}),ve(()=>(l(me),l(H),l(J),l(W),N(y()),s.QuestionTypes),()=>{if(l(me)&&l(H)&&l(J)!==l(W)){$(W,l(J));const z=D(l(J));$(R,z),F(y().id,l(J),s.QuestionTypes.LONG_TEXT,z)}}),fr(),er();var Ne=QS(),xe=Z(Ne),Re=Z(xe);{var Ye=z=>{var T=MS(),be=Z(T);A(T),je(()=>Oe(be,`${E()??""}.`)),O(z,T)};ae(Re,z=>{E()!==void 0&&z(Ye)})}var ut=fe(Re,2),Fe=Z(ut),it=Z(Fe),ht=fe(it);{var Ue=z=>{var T=AS();O(z,T)};ae(ht,z=>{N(y()),U(()=>y().required)&&z(Ue)})}A(Fe);var Pt=fe(Fe,2);{var Ct=z=>{var T=DS(),be=Z(T,!0);A(T),je(()=>Oe(be,(N(y()),U(()=>y().description)))),O(z,T)};ae(Pt,z=>{N(y()),U(()=>y().description)&&z(Ct)})}A(ut),A(xe);var Ft=fe(xe,2);{var Gt=z=>{var T=LS(),be=Z(T),Ae=Z(be,!0);A(be),A(T),je(()=>Oe(Ae,l(R))),O(z,T)};ae(Ft,z=>{l(R)&&l(H)&&z(Gt)})}var Et=fe(Ft,2),_t=Z(Et);{let z=Le(()=>(N(y()),U(()=>y().rows||4)));US(_t,{class:"w-full min-h-[120px] text-secondary-foreground focus-visible:ring-0 focus-visible:ring-offset-0 resize-y",onfocus:j,get placeholder(){return N(y()),U(()=>y().placeholder)},get rows(){return l(z)},onblur:()=>{if(l(me)){const T=D(l(J));$(R,T),I(y().id,T),v()(l(J))}},get value(){return l(J)},set value(T){$(J,T)},$$legacy:!0})}var yt=fe(_t,2),Ir=Z(yt);A(yt),A(Et);var Mr=fe(Et,2);{var vn=z=>{var T=VS(),be=Te(T),Ae=Z(be);{let He=Le(()=>l($e)||!l(Se));qt(Ae,{type:"button",variant:"secondary",size:"sm",class:"gap-2",onclick:V,get disabled(){return l(He)},children:(ft,Ut)=>{var kt=Ze(),zr=Te(kt);{var vr=It=>{var bn=ZS();O(It,bn)},tr=It=>{Fv(It,{size:16})};ae(zr,It=>{l($e)?It(vr):It(tr,!1)})}O(ft,kt)},$$slots:{default:!0}})}var Ke=fe(Ae,2);{var We=He=>{var ft=RS(),Ut=Z(ft);{let tr=Le(()=>l(G)===0);qt(Ut,{type:"button",class:"p-1.5 rounded hover:bg-accent disabled:opacity-50 disabled:cursor-not-allowed transition-colors",onclick:()=>{l(G)>0&&_e(l(G)-1)},get disabled(){return l(tr)},title:"Previous version",children:(It,bn)=>{Rv(It,{size:14,class:"text-muted-foreground"})},$$slots:{default:!0}})}var kt=fe(Ut,2),zr=Z(kt);A(kt);var vr=fe(kt,2);{let tr=Le(()=>(l(G),U(()=>l(G)>=Q()-1)));qt(vr,{type:"button",class:"p-1.5 rounded hover:bg-accent disabled:opacity-50 disabled:cursor-not-allowed transition-colors",onclick:()=>{const It=Q();l(G)<It-1&&_e(l(G)+1)},get disabled(){return l(tr)},title:"Next version",children:(It,bn)=>{Aa(It,{size:14,class:"text-muted-foreground"})},$$slots:{default:!0}})}A(ft),je(tr=>Oe(zr,`${l(G)+1} / ${tr??""}`),[()=>U(Q)]),O(He,ft)};ae(Ke,He=>{l(B),l($e),U(()=>l(B)&&!l($e)&&l(B).enhanced&&l(B).enhanced.length>1)&&He(We)})}var vt=fe(Ke,2);{var Wt=He=>{qt(He,{type:"button",variant:"ghost",size:"sm",class:"gap-2",onclick:Ce,title:"Back to original text",children:(ft,Ut)=>{var kt=qS(),zr=Te(kt);Zv(zr,{size:16}),_r(2),O(ft,kt)},$$slots:{default:!0}})};ae(vt,He=>{l(B)&&!l($e)&&l(G)!==0&&He(Wt)})}A(be);var ur=fe(be,2);{var or=He=>{var ft=FS(),Ut=fe(Z(ft),2),kt=Z(Ut,!0);A(Ut),A(ft),je(()=>Oe(kt,l(ke))),O(He,ft)};ae(ur,He=>{l(K)&&!l(Ie)&&He(or)})}var ar=fe(ur,2);{var Jr=He=>{var ft=WS(),Ut=fe(Z(ft),2),kt=Z(Ut,!0);A(Ut),A(ft),je(()=>Oe(kt,l(Ie))),O(He,ft)};ae(ar,He=>{l(Ie)&&He(Jr)})}O(z,T)};ae(Mr,z=>{N(y()),U(()=>y().enableEnhanceWithAi)&&z(vn)})}A(Ne),je(z=>{Oe(it,`${N(y()),U(()=>y().title)??""} `),fn(yt,1,`absolute right-3 bottom-3 text-xs font-medium px-2 py-1 rounded-full transition-colors whitespace-nowrap ${l(h)?"bg-destructive/10 text-destructive border border-destructive/20":"bg-muted text-muted-foreground"}`),Oe(Ir,`${l(J),U(()=>l(J)?.length||0)??""}${z??""}`)},[()=>(l(le),U(()=>l(le)?` ${l(le).split("/")[1]||""}`:""))]),O(i,Ne),Be()}var JS=re("<input/>"),BS=re("<input/>");function YS(i,n){Je(n,!0);let u=w(n,"ref",15,null),c=w(n,"value",15),d=w(n,"files",15),m=w(n,"data-slot",3,"input"),p=Lt(n,["$$slots","$$events","$$legacy","ref","value","type","files","class","data-slot"]);var g=Ze(),h=Te(g);{var b=k=>{var v=JS();Qt(v,x=>({"data-slot":m(),class:x,type:"file",...p}),[()=>Sr("selection:bg-primary dark:bg-input/30 selection:text-primary-foreground border-input ring-offset-background placeholder:text-muted-foreground shadow-xs flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 pt-1.5 text-sm font-medium outline-none transition-[color,box-shadow] disabled:cursor-not-allowed disabled:opacity-50","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",n.class)],void 0,void 0,!0),Ur(v,x=>u(x),()=>u()),Yx(v,d),Ca(v,c),O(k,v)},y=k=>{var v=BS();Qt(v,x=>({"data-slot":m(),class:x,type:n.type,...p}),[()=>Sr("border-input bg-background selection:bg-primary dark:bg-input/30 selection:text-primary-foreground ring-offset-background placeholder:text-muted-foreground shadow-xs flex h-9 w-full min-w-0 rounded-md border px-3 py-1 text-base outline-none transition-[color,box-shadow] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",n.class)],void 0,void 0,!0),Ur(v,x=>u(x),()=>u()),Ca(v,c),O(k,v)};ae(h,k=>{n.type==="file"?k(b):k(y,!1)})}O(i,g),Be()}var KS=re('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),HS=re('<span class="text-destructive ml-1">*</span>'),XS=re('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),eI=re('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><span class="font-medium"> </span></div>'),tI=Tn('<svg class="w-4 h-4 animate-spin" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg>'),rI=re('<div class="flex items-center gap-1 border border-border rounded-lg p-0.5"><!> <span class="text-xs font-medium text-muted-foreground px-2"> </span> <!></div>'),nI=re("<!> <span>Reset</span>",1),iI=re('<div class="flex items-center gap-2 text-sm text-green-700 dark:text-green-400 bg-green-50 dark:bg-green-950/30 px-3 py-2 rounded-md border border-green-200 dark:border-green-900"><svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path></svg> <span class="font-medium"> </span></div>'),oI=re('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> <span class="font-medium"> </span></div>'),aI=re('<div class="flex items-center gap-2 flex-wrap"><!> <!> <!></div> <!> <!>',1),sI=re('<div class="w-full space-y-4"><div class="flex text-left items-start gap-3"><!> <div class="flex-1 space-y-1.5"><label class="text-lg font-semibold text-foreground leading-tight"> <!></label> <!></div></div> <!> <div class="relative"><!> <div> </div></div> <!></div>');function uI(i,n){Je(n,!1);const u=te(),c=te(),d=te(),m=te(),p=te(),g=te(),h=te(),b=te(),{updateQuestionResponse:y,setQuestionError:k}=pn();let v=w(n,"question",8),x=w(n,"value",8,""),S=w(n,"onChange",8),E=w(n,"error",8,void 0),C=w(n,"currentMode",8,void 0),Y=w(n,"questionNumber",8,void 0);w(n,"themeSettings",8,void 0),w(n,"currentLanguage",8,void 0),w(n,"apiKey",8,void 0),w(n,"hostUrl",8,void 0);let oe=w(n,"identifier",8,void 0),J=w(n,"feedbackConfigurationId",8,void 0),B=w(n,"otherConfigurationProperties",8,void 0),G=te(x()||""),R=te(null),H=te(0),K=te(E()),$e=te(!1),Ie=te(!1),ke=te(!1),me=te(null),Se=te(null),le=te(!1),ie=te(!1),ee=te(""),W=te(0),F=null,I=te(l(G));En(()=>{setTimeout(()=>{const z=Q(l(G));$(K,z),z&&k(v().id,z),$(le,!0)},0)}),bo(()=>{F!==null&&clearInterval(F)});function j(){l($e)||$($e,!0)}function D(z){F!==null&&clearInterval(F),F=hb(z,T=>{$(W,T)},()=>{F=null,$(me,null)})}async function ne(){if(!de())return;const z=l(G);try{$(ke,!0),$(me,null);const T=await bb({questionId:v().id,identifier:oe(),feedbackConfigurationId:J(),userText:z});if(T?.data?.refinedText){const be=T.data.refinedText;$(Se,B()?.otherFields?.aiEnhancementSuccessMessage||T.message||"Text refined successfully"),l(R)?($(R,{original:l(R).original,enhanced:[...l(R).enhanced,be]}),$(H,l(R).enhanced.length)):($(R,{original:z,enhanced:[be]}),$(H,1)),$(G,be),$(Ie,!0);const Ae=Q(be);$(K,Ae),S()(be),y(v().id,be,s.QuestionTypes.SHORT_ANSWER,Ae)}else{if(T?.message){const{code:be,message:Ae,seconds:Ke}=gb(T.message);be==="1001"&&Ke!==void 0&&D(Ke),$(me,vb(be,Ae,B(),Ke))}$(Ie,!1)}}catch(T){console.error("Error enhancing text:",T),$(me,"An error occurred while enhancing text!"),$(Ie,!1)}finally{$(ke,!1)}}function V(){if(!l(R))return;const z=l(R).original;$(G,z),$(H,0);const T=Q(z);$(K,T),S()(z),y(v().id,z,s.QuestionTypes.SHORT_ANSWER,T)}function Ce(z){if(!l(R))return;let T;if(z===0)T=l(R).original;else{const Ae=z-1;if(Ae>=l(R).enhanced.length)return;T=l(R).enhanced[Ae]}$(G,T),$(H,z);const be=Q(T);$(K,be),S()(T),y(v().id,T,s.QuestionTypes.SHORT_ANSWER,be)}function _e(){return l(R)?l(R).enhanced.length+1:0}function Q(z){if(v().required&&(!z||z.trim()===""))return v().errorMessage||"This field is required";if(v().maxCharacters!==void 0&&z.length>v().maxCharacters||v().minCharacters!==void 0&&z.length>0&&z.length<v().minCharacters)return v().errorMessage;if(v().enableRegexValidation&&v().regexPattern)try{const T=new RegExp(v().regexPattern);if(z.length>0&&!T.test(z))return v().errorMessage||"Input does not match required pattern"}catch{}}function de(){const z=l(G).trim();return z?v().minCharactersToEnhance!==void 0?z.length>=v().minCharactersToEnhance:!0:!1}ve(()=>N(C()),()=>{$(u,C()==="dark")}),ve(()=>(N(x()),l(G),l($e)),()=>{x()!==void 0&&x()!==l(G)&&!l($e)&&($(G,x()),$(I,x()))}),ve(()=>l(G),()=>{$(c,l(G).length||0)}),ve(()=>N(v()),()=>{$(d,v().minCharacters)}),ve(()=>N(v()),()=>{$(m,v().maxCharacters)}),ve(()=>(l(m),l(c)),()=>{$(p,l(m)!==void 0&&l(c)>l(m))}),ve(()=>(l(d),l(c)),()=>{$(g,l(d)!==void 0&&l(c)<l(d)&&l(c)>0)}),ve(()=>(l(p),l(g)),()=>{$(h,l(p)||l(g))}),ve(()=>(l(d),l(m)),()=>{$(b,l(d)!==void 0||l(m)!==void 0)}),ve(()=>(l(G),N(v())),()=>{const z=l(G).trim();z?v().minCharactersToEnhance!==void 0?$(ie,z.length>=v().minCharactersToEnhance):$(ie,!0):$(ie,!1)}),ve(()=>(l(G),l(d),l(m),N(v())),()=>{const z=l(G)?.length||0;l(d)!==void 0&&l(m)!==void 0?$(ee,`${z} / (${l(d)} - ${l(m)})`):l(m)!==void 0&&v().required?$(ee,`${z} / (1 - ${l(m)})`):l(d)!==void 0?$(ee,`${z} / (${l(d)} - 5000)`):$(ee,`${z}`)}),ve(()=>(l(W),N(B())),()=>{l(W)>0&&B()?.otherFields?.aiEnhancementCooldownErrorMessage&&$(me,`${B().otherFields.aiEnhancementCooldownErrorMessage} (${l(W)}s)`)}),ve(()=>N(E()),()=>{E()!==void 0&&$(K,E())}),ve(()=>(l(le),l($e),l(G),l(I),N(v()),s.QuestionTypes),()=>{if(l(le)&&l($e)&&l(G)!==l(I)){$(I,l(G));const z=Q(l(G));$(K,z),y(v().id,l(G),s.QuestionTypes.SHORT_ANSWER,z)}}),fr(),er();var Ne=sI(),xe=Z(Ne),Re=Z(xe);{var Ye=z=>{var T=KS(),be=Z(T);A(T),je(()=>Oe(be,`${Y()??""}.`)),O(z,T)};ae(Re,z=>{Y()!==void 0&&z(Ye)})}var ut=fe(Re,2),Fe=Z(ut),it=Z(Fe),ht=fe(it);{var Ue=z=>{var T=HS();O(z,T)};ae(ht,z=>{N(v()),U(()=>v().required)&&z(Ue)})}A(Fe);var Pt=fe(Fe,2);{var Ct=z=>{var T=XS(),be=Z(T,!0);A(T),je(()=>Oe(be,(N(v()),U(()=>v().description)))),O(z,T)};ae(Pt,z=>{N(v()),U(()=>v().description)&&z(Ct)})}A(ut),A(xe);var Ft=fe(xe,2);{var Gt=z=>{var T=eI(),be=Z(T),Ae=Z(be,!0);A(be),A(T),je(()=>Oe(Ae,l(K))),O(z,T)};ae(Ft,z=>{l(K)&&l($e)&&z(Gt)})}var Et=fe(Ft,2),_t=Z(Et);{let z=Le(()=>`w-full pr-20 text-secondary-foreground focus-visible:ring-0 focus-visible:ring-offset-0 ${l(b)?"pr-20":""}`);YS(_t,{get class(){return l(z)},onfocus:j,get placeholder(){return N(v()),U(()=>v().placeholder)},onblur:()=>{if(l(le)){const T=Q(l(G));$(K,T),k(v().id,T),S()(l(G))}},get value(){return l(G)},set value(T){$(G,T)},$$legacy:!0})}var yt=fe(_t,2),Ir=Z(yt,!0);A(yt),A(Et);var Mr=fe(Et,2);{var vn=z=>{var T=aI(),be=Te(T),Ae=Z(be);{let He=Le(()=>l(ke)||!l(ie));qt(Ae,{type:"button",variant:"secondary",size:"sm",class:"gap-2",onclick:ne,get disabled(){return l(He)},children:(ft,Ut)=>{var kt=Ze(),zr=Te(kt);{var vr=It=>{var bn=tI();O(It,bn)},tr=It=>{Fv(It,{size:16})};ae(zr,It=>{l(ke)?It(vr):It(tr,!1)})}O(ft,kt)},$$slots:{default:!0}})}var Ke=fe(Ae,2);{var We=He=>{var ft=rI(),Ut=Z(ft);{let tr=Le(()=>l(H)===0);qt(Ut,{type:"button",class:"p-1.5 rounded hover:bg-accent disabled:opacity-50 disabled:cursor-not-allowed transition-colors",onclick:()=>{l(H)>0&&Ce(l(H)-1)},get disabled(){return l(tr)},title:"Previous version",children:(It,bn)=>{Rv(It,{size:14,class:"text-muted-foreground"})},$$slots:{default:!0}})}var kt=fe(Ut,2),zr=Z(kt);A(kt);var vr=fe(kt,2);{let tr=Le(()=>(l(H),U(()=>l(H)>=_e()-1)));qt(vr,{type:"button",class:"p-1.5 rounded hover:bg-accent disabled:opacity-50 disabled:cursor-not-allowed transition-colors",onclick:()=>{const It=_e();l(H)<It-1&&Ce(l(H)+1)},get disabled(){return l(tr)},title:"Next version",children:(It,bn)=>{Aa(It,{size:14,class:"text-muted-foreground"})},$$slots:{default:!0}})}A(ft),je(tr=>Oe(zr,`${l(H)+1} / ${tr??""}`),[()=>U(_e)]),O(He,ft)};ae(Ke,He=>{l(R),l(ke),U(()=>l(R)&&!l(ke)&&l(R).enhanced&&l(R).enhanced.length>1)&&He(We)})}var vt=fe(Ke,2);{var Wt=He=>{qt(He,{type:"button",variant:"ghost",size:"sm",class:"gap-2",onclick:V,title:"Back to original text",children:(ft,Ut)=>{var kt=nI(),zr=Te(kt);Zv(zr,{size:16}),_r(2),O(ft,kt)},$$slots:{default:!0}})};ae(vt,He=>{l(R)&&!l(ke)&&l(H)!==0&&He(Wt)})}A(be);var ur=fe(be,2);{var or=He=>{var ft=iI(),Ut=fe(Z(ft),2),kt=Z(Ut,!0);A(Ut),A(ft),je(()=>Oe(kt,l(Se))),O(He,ft)};ae(ur,He=>{l(Ie)&&!l(me)&&He(or)})}var ar=fe(ur,2);{var Jr=He=>{var ft=oI(),Ut=fe(Z(ft),2),kt=Z(Ut,!0);A(Ut),A(ft),je(()=>Oe(kt,l(me))),O(He,ft)};ae(ar,He=>{l(me)&&He(Jr)})}O(z,T)};ae(Mr,z=>{N(v()),U(()=>v().enableEnhanceWithAi)&&z(vn)})}A(Ne),je(()=>{Oe(it,`${N(v()),U(()=>v().title)??""} `),fn(yt,1,`absolute right-3 top-1/2 -translate-y-1/2 text-xs font-medium px-2 py-1 rounded-full transition-colors whitespace-nowrap ${l(h)?"bg-destructive/10 text-destructive border border-destructive/20":"bg-muted text-muted-foreground"}`),Oe(Ir,(l(G),U(()=>l(G)?.length||0)))}),O(i,Ne),Be()}function cI(i){return typeof i=="function"}function lI(i){return i!==null&&typeof i=="object"}const dI=["string","number","bigint","boolean"];function qc(i){return i==null||dI.includes(typeof i)?!0:Array.isArray(i)?i.every(n=>qc(n)):typeof i=="object"?Object.getPrototypeOf(i)===Object.prototype:!1}const Ti=Symbol("box"),Wa=Symbol("is-writable");function wt(i,n){const u=lt(i);return n?{[Ti]:!0,[Wa]:!0,get current(){return l(u)},set current(c){n(c)}}:{[Ti]:!0,get current(){return i()}}}function Io(i){return lI(i)&&Ti in i}function Fc(i){return Io(i)&&Wa in i}function fI(i){return Io(i)?i:cI(i)?wt(i):gI(i)}function mI(i){return Object.entries(i).reduce((n,[u,c])=>Io(c)?(Fc(c)?Object.defineProperty(n,u,{get(){return c.current},set(d){c.current=d}}):Object.defineProperty(n,u,{get(){return c.current}}),n):Object.assign(n,{[u]:c}),{})}function pI(i){return Fc(i)?{[Ti]:!0,get current(){return i.current}}:i}function gI(i){let n=Fr(In(i));return{[Ti]:!0,[Wa]:!0,get current(){return l(n)},set current(u){$(n,u,!0)}}}function li(i){let n=Fr(In(i));return{[Ti]:!0,[Wa]:!0,get current(){return l(n)},set current(u){$(n,u,!0)}}}li.from=fI,li.with=wt,li.flatten=mI,li.readonly=pI,li.isBox=Io,li.isWritableBox=Fc;function hI(...i){return function(n){for(const u of i)if(u){if(n.defaultPrevented)return;typeof u=="function"?u.call(this,n):u.current?.call(this,n)}}}var yb=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,vI=/\n/g,bI=/^\s*/,yI=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,$I=/^:\s*/,wI=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,_I=/^[;\s]*/,kI=/^\s+|\s+$/g,xI=`
133
+ `,$b="/",wb="*",di="",SI="comment",II="declaration";function zI(i,n){if(typeof i!="string")throw new TypeError("First argument must be a string");if(!i)return[];n=n||{};var u=1,c=1;function d(S){var E=S.match(vI);E&&(u+=E.length);var C=S.lastIndexOf(xI);c=~C?S.length-C:c+S.length}function m(){var S={line:u,column:c};return function(E){return E.position=new p(S),b(),E}}function p(S){this.start=S,this.end={line:u,column:c},this.source=n.source}p.prototype.content=i;function g(S){var E=new Error(n.source+":"+u+":"+c+": "+S);if(E.reason=S,E.filename=n.source,E.line=u,E.column=c,E.source=i,!n.silent)throw E}function h(S){var E=S.exec(i);if(E){var C=E[0];return d(C),i=i.slice(C.length),E}}function b(){h(bI)}function y(S){var E;for(S=S||[];E=k();)E!==!1&&S.push(E);return S}function k(){var S=m();if(!($b!=i.charAt(0)||wb!=i.charAt(1))){for(var E=2;di!=i.charAt(E)&&(wb!=i.charAt(E)||$b!=i.charAt(E+1));)++E;if(E+=2,di===i.charAt(E-1))return g("End of comment missing");var C=i.slice(2,E-2);return c+=2,d(C),i=i.slice(E),c+=2,S({type:SI,comment:C})}}function v(){var S=m(),E=h(yI);if(E){if(k(),!h($I))return g("property missing ':'");var C=h(wI),Y=S({type:II,property:_b(E[0].replace(yb,di)),value:C?_b(C[0].replace(yb,di)):di});return h(_I),Y}}function x(){var S=[];y(S);for(var E;E=v();)E!==!1&&(S.push(E),y(S));return S}return b(),x()}function _b(i){return i?i.replace(kI,di):di}function NI(i,n){let u=null;if(!i||typeof i!="string")return u;const c=zI(i),d=typeof n=="function";return c.forEach(m=>{if(m.type!=="declaration")return;const{property:p,value:g}=m;d?n(p,g,m):g&&(u=u||{},u[p]=g)}),u}const jI=/\d/,TI=["-","_","/","."];function OI(i=""){if(!jI.test(i))return i!==i.toLowerCase()}function EI(i){const n=[];let u="",c,d;for(const m of i){const p=TI.includes(m);if(p===!0){n.push(u),u="",c=void 0;continue}const g=OI(m);if(d===!1){if(c===!1&&g===!0){n.push(u),u=m,c=g;continue}if(c===!0&&g===!1&&u.length>1){const h=u.at(-1);n.push(u.slice(0,Math.max(0,u.length-1))),u=h+m,c=g;continue}}u+=m,c=g,d=p}return n.push(u),n}function kb(i){return i?EI(i).map(n=>CI(n)).join(""):""}function PI(i){return UI(kb(i||""))}function CI(i){return i?i[0].toUpperCase()+i.slice(1):""}function UI(i){return i?i[0].toLowerCase()+i.slice(1):""}function Va(i){if(!i)return{};const n={};function u(c,d){if(c.startsWith("-moz-")||c.startsWith("-webkit-")||c.startsWith("-ms-")||c.startsWith("-o-")){n[kb(c)]=d;return}if(c.startsWith("--")){n[c]=d;return}n[PI(c)]=d}return NI(i,u),n}function MI(...i){return(...n)=>{for(const u of i)typeof u=="function"&&u(...n)}}function AI(i,n){const u=RegExp(i,"g");return c=>{if(typeof c!="string")throw new TypeError(`expected an argument of type string, but got ${typeof c}`);return c.match(u)?c.replace(u,n):c}}const DI=AI(/[A-Z]/,i=>`-${i.toLowerCase()}`);function LI(i){if(!i||typeof i!="object"||Array.isArray(i))throw new TypeError(`expected an argument of type object, but got ${typeof i}`);return Object.keys(i).map(n=>`${DI(n)}: ${i[n]};`).join(`
134
+ `)}function xb(i={}){return LI(i).replace(`
135
+ `," ")}const ZI=["onabort","onanimationcancel","onanimationend","onanimationiteration","onanimationstart","onauxclick","onbeforeinput","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncompositionend","oncompositionstart","oncompositionupdate","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onfocusin","onfocusout","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onselectionchange","onselectstart","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onvolumechange","onwaiting","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkittransitionend","onwheel"],RI=new Set(ZI);function qI(i){return RI.has(i)}function zo(...i){const n={...i[0]};for(let u=1;u<i.length;u++){const c=i[u];if(c){for(const d of Object.keys(c)){const m=n[d],p=c[d],g=typeof m=="function",h=typeof p=="function";if(g&&qI(d)){const b=m,y=p;n[d]=hI(b,y)}else if(g&&h)n[d]=MI(m,p);else if(d==="class"){const b=qc(m),y=qc(p);b&&y?n[d]=yo(m,p):b?n[d]=yo(m):y&&(n[d]=yo(p))}else if(d==="style"){const b=typeof m=="object",y=typeof p=="object",k=typeof m=="string",v=typeof p=="string";if(b&&y)n[d]={...m,...p};else if(b&&v){const x=Va(p);n[d]={...m,...x}}else if(k&&y){const x=Va(m);n[d]={...x,...p}}else if(k&&v){const x=Va(m),S=Va(p);n[d]={...x,...S}}else b?n[d]=m:y?n[d]=p:k?n[d]=m:v&&(n[d]=p)}else n[d]=p!==void 0?p:m}for(const d of Object.getOwnPropertySymbols(c)){const m=n[d],p=c[d];n[d]=p!==void 0?p:m}}}return typeof n.style=="object"&&(n.style=xb(n.style).replaceAll(`
136
+ `," ")),n.hidden===!1&&(n.hidden=void 0,delete n.hidden),n.disabled===!1&&(n.disabled=void 0,delete n.disabled),n}const FI=xb({position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"}),WI=typeof window<"u"?window:void 0;function VI(i){let n=i.activeElement;for(;n?.shadowRoot;){const u=n.shadowRoot.activeElement;if(u===n)break;n=u}return n}class QI{#e;#t;constructor(n={}){const{window:u=WI,document:c=u?.document}=n;u!==void 0&&(this.#e=c,this.#t=Ah(d=>{const m=yv(u,"focusin",d),p=yv(u,"focusout",d);return()=>{m(),p()}}))}get current(){return this.#t?.(),this.#e?VI(this.#e):null}}new QI;class Wc{#e;#t;constructor(n){this.#e=n,this.#t=Symbol(n)}get key(){return this.#t}exists(){return Xk(this.#t)}get(){const n=dc(this.#t);if(n===void 0)throw new Error(`Context "${this.#e}" not found`);return n}getOr(n){const u=dc(this.#t);return u===void 0?n:u}set(n){return Th(this.#t,n)}}function GI(i,n){switch(i){case"post":po(n);break;case"pre":rv(n);break}}function Sb(i,n,u,c={}){const{lazy:d=!1}=c;let m=!d,p=Array.isArray(i)?[]:void 0;GI(n,()=>{const g=Array.isArray(i)?i.map(b=>b()):i();if(!m){m=!0,p=g;return}const h=U(()=>u(g,p));return p=g,h})}function No(i,n,u){Sb(i,"post",n,u)}function JI(i,n,u){Sb(i,"pre",n,u)}No.pre=JI;function Qa(i,n){return{[Dx()]:u=>Io(i)?(i.current=u,U(()=>n?.(u)),()=>{"isConnected"in u&&u.isConnected||(i.current=null)}):(i(u),U(()=>n?.(u)),()=>{"isConnected"in u&&u.isConnected||i(null)})}}function Ga(i){return i?"true":"false"}function Oi(i){return i?"":void 0}function Ib(i,n){return n?"mixed":i?"true":"false"}class BI{#e;#t;attrs;constructor(n){this.#e=n.getVariant?n.getVariant():null,this.#t=this.#e?`data-${this.#e}-`:`data-${n.component}-`,this.getAttr=this.getAttr.bind(this),this.selector=this.selector.bind(this),this.attrs=Object.fromEntries(n.parts.map(u=>[u,this.getAttr(u)]))}getAttr(n,u){return u?`data-${u}-${n}`:`${this.#t}${n}`}selector(n,u){return`[${this.getAttr(n,u)}]`}}function Vc(i){const n=new BI(i);return{...n.attrs,selector:n.selector,getAttr:n.getAttr}}const Qc="ArrowDown",Gc="ArrowLeft",Jc="ArrowRight",Bc="ArrowUp",YI="End",KI="Enter",HI="Home",zb=" ";function XI(i){return window.getComputedStyle(i).getPropertyValue("direction")}function e1(i="ltr",n="horizontal"){return{horizontal:i==="rtl"?Gc:Jc,vertical:Qc}[n]}function t1(i="ltr",n="horizontal"){return{horizontal:i==="rtl"?Jc:Gc,vertical:Bc}[n]}function r1(i="ltr",n="horizontal"){return["ltr","rtl"].includes(i)||(i="ltr"),["horizontal","vertical"].includes(n)||(n="horizontal"),{nextKey:e1(i,n),prevKey:t1(i,n)}}function Nb(i){return i instanceof HTMLElement}class n1{#e;#t=li(null);constructor(n){this.#e=n}getCandidateNodes(){return this.#e.rootNode.current?this.#e.candidateSelector?Array.from(this.#e.rootNode.current.querySelectorAll(this.#e.candidateSelector)):this.#e.candidateAttr?Array.from(this.#e.rootNode.current.querySelectorAll(`[${this.#e.candidateAttr}]:not([data-disabled])`)):[]:[]}focusFirstCandidate(){const n=this.getCandidateNodes();n.length&&n[0]?.focus()}handleKeydown(n,u,c=!1){const d=this.#e.rootNode.current;if(!d||!n)return;const m=this.getCandidateNodes();if(!m.length)return;const p=m.indexOf(n),g=XI(d),{nextKey:h,prevKey:b}=r1(g,this.#e.orientation.current),y=this.#e.loop.current,k={[h]:p+1,[b]:p-1,[HI]:0,[YI]:m.length-1};if(c){const S=h===Qc?Jc:Qc,E=b===Bc?Gc:Bc;k[S]=p+1,k[E]=p-1}let v=k[u.key];if(v===void 0)return;u.preventDefault(),v<0&&y?v=m.length-1:v===m.length&&y&&(v=0);const x=m[v];if(x)return x.focus(),this.#t.current=x.id,this.#e.onCandidateFocus?.(x),x}getTabIndex(n){const u=this.getCandidateNodes(),c=this.#t.current!==null;return n&&!c&&u[0]===n?(this.#t.current=n.id,0):n?.id===this.#t.current?0:-1}setCurrentTabStopId(n){this.#t.current=n}focusCurrentTabStop(){const n=this.#t.current;if(!n)return;const u=this.#e.rootNode.current?.querySelector(`#${n}`);!u||!Nb(u)||u.focus()}}function i1(){}function Ja(i,n){return`bits-${i}`}const o1=Vc({component:"checkbox",parts:["root","group","group-label","input"]}),a1=new Wc("Checkbox.Group"),jb=new Wc("Checkbox.Root");class Yc{static create(n,u=null){return jb.set(new Yc(n,u))}opts;group;#e=lt(()=>this.group&&this.group.opts.name.current?this.group.opts.name.current:this.opts.name.current);get trueName(){return l(this.#e)}set trueName(n){$(this.#e,n)}#t=lt(()=>this.group&&this.group.opts.required.current?!0:this.opts.required.current);get trueRequired(){return l(this.#t)}set trueRequired(n){$(this.#t,n)}#n=lt(()=>this.group&&this.group.opts.disabled.current?!0:this.opts.disabled.current);get trueDisabled(){return l(this.#n)}set trueDisabled(n){$(this.#n,n)}#o=lt(()=>this.group&&this.group.opts.readonly.current?!0:this.opts.readonly.current);get trueReadonly(){return l(this.#o)}set trueReadonly(n){$(this.#o,n)}attachment;constructor(n,u){this.opts=n,this.group=u,this.attachment=Qa(this.opts.ref),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),No.pre([()=>Hk(this.group?.opts.value.current),()=>this.opts.value.current],([c,d])=>{!c||!d||(this.opts.checked.current=c.includes(d))}),No.pre(()=>this.opts.checked.current,c=>{this.group&&(c?this.group?.addValue(this.opts.value.current):this.group?.removeValue(this.opts.value.current))})}onkeydown(n){this.trueDisabled||this.trueReadonly||(n.key===KI&&n.preventDefault(),n.key===zb&&(n.preventDefault(),this.#i()))}#i(){this.opts.indeterminate.current?(this.opts.indeterminate.current=!1,this.opts.checked.current=!0):this.opts.checked.current=!this.opts.checked.current}onclick(n){if(!(this.trueDisabled||this.trueReadonly)){if(this.opts.type.current==="submit"){this.#i();return}n.preventDefault(),this.#i()}}#a=lt(()=>({checked:this.opts.checked.current,indeterminate:this.opts.indeterminate.current}));get snippetProps(){return l(this.#a)}set snippetProps(n){$(this.#a,n)}#r=lt(()=>({id:this.opts.id.current,role:"checkbox",type:this.opts.type.current,disabled:this.trueDisabled,"aria-checked":Ib(this.opts.checked.current,this.opts.indeterminate.current),"aria-required":Ga(this.trueRequired),"aria-readonly":Ga(this.trueReadonly),"data-disabled":Oi(this.trueDisabled),"data-readonly":Oi(this.trueReadonly),"data-state":s1(this.opts.checked.current,this.opts.indeterminate.current),[o1.root]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment}));get props(){return l(this.#r)}set props(n){$(this.#r,n)}}class Kc{static create(){return new Kc(jb.get())}root;#e=lt(()=>this.root.group?!!(this.root.opts.value.current!==void 0&&this.root.group.opts.value.current.includes(this.root.opts.value.current)):this.root.opts.checked.current);get trueChecked(){return l(this.#e)}set trueChecked(n){$(this.#e,n)}#t=lt(()=>!!this.root.trueName);get shouldRender(){return l(this.#t)}set shouldRender(n){$(this.#t,n)}constructor(n){this.root=n,this.onfocus=this.onfocus.bind(this)}onfocus(n){Nb(this.root.opts.ref.current)&&this.root.opts.ref.current.focus()}#n=lt(()=>({type:"checkbox",checked:this.root.opts.checked.current===!0,disabled:this.root.trueDisabled,required:this.root.trueRequired,name:this.root.trueName,value:this.root.opts.value.current,readonly:this.root.trueReadonly,onfocus:this.onfocus}));get props(){return l(this.#n)}set props(n){$(this.#n,n)}}function s1(i,n){return n?"indeterminate":i?"checked":"unchecked"}var u1=re("<input/>"),c1=re("<input/>");function Tb(i,n){Je(n,!0);let u=w(n,"value",15),c=Lt(n,["$$slots","$$events","$$legacy","value"]);const d=lt(()=>zo(c,{"aria-hidden":"true",tabindex:-1,style:FI}));var m=Ze(),p=Te(m);{var g=b=>{var y=u1();Qt(y,()=>({...l(d),value:u()}),void 0,void 0,void 0,!0),O(b,y)},h=b=>{var y=c1();Qt(y,()=>({...l(d)}),void 0,void 0,void 0,!0),Ca(y,u),O(b,y)};ae(p,b=>{l(d).type==="checkbox"?b(g):b(h,!1)})}O(i,m),Be()}function l1(i,n){Je(n,!1);const u=Kc.create();er();var c=Ze(),d=Te(c);{var m=p=>{Tb(p,Tt(()=>u.props))};ae(d,p=>{u.shouldRender&&p(m)})}O(i,c),Be()}var d1=re("<button><!></button>"),f1=re("<!> <!>",1);function m1(i,n){const u=Ea();Je(n,!0);let c=w(n,"checked",15,!1),d=w(n,"ref",15,null),m=w(n,"disabled",3,!1),p=w(n,"required",3,!1),g=w(n,"name",3,void 0),h=w(n,"value",3,"on"),b=w(n,"id",19,()=>Ja(u)),y=w(n,"indeterminate",15,!1),k=w(n,"type",3,"button"),v=Lt(n,["$$slots","$$events","$$legacy","checked","ref","onCheckedChange","children","disabled","required","name","value","id","indeterminate","onIndeterminateChange","child","type","readonly"]);const x=a1.getOr(null);x&&h()&&(x.opts.value.current.includes(h())?c(!0):c(!1)),No.pre(()=>h(),()=>{x&&h()&&(x.opts.value.current.includes(h())?c(!0):c(!1))});const S=Yc.create({checked:wt(()=>c(),G=>{c(G),n.onCheckedChange?.(G)}),disabled:wt(()=>m()??!1),required:wt(()=>p()),name:wt(()=>g()),value:wt(()=>h()),id:wt(()=>b()),ref:wt(()=>d(),G=>d(G)),indeterminate:wt(()=>y(),G=>{y(G),n.onIndeterminateChange?.(G)}),type:wt(()=>k()),readonly:wt(()=>!!n.readonly)},x),E=lt(()=>zo({...v},S.props));var C=f1(),Y=Te(C);{var oe=G=>{var R=Ze(),H=Te(R);{let K=lt(()=>({props:l(E),...S.snippetProps}));Rt(H,()=>n.child,()=>l(K))}O(G,R)},J=G=>{var R=d1();Qt(R,()=>({...l(E)}));var H=Z(R);Rt(H,()=>n.children??gt,()=>S.snippetProps),A(R),O(G,R)};ae(Y,G=>{n.child?G(oe):G(J,!1)})}var B=fe(Y,2);l1(B,{}),O(i,C),Be()}const p1=Vc({component:"progress",parts:["root"]});class Hc{static create(n){return new Hc(n)}opts;attachment;constructor(n){this.opts=n,this.attachment=Qa(this.opts.ref)}#e=lt(()=>({role:"progressbar",value:this.opts.value.current,"aria-valuemin":this.opts.min.current,"aria-valuemax":this.opts.max.current,"aria-valuenow":this.opts.value.current===null?void 0:this.opts.value.current,"data-value":this.opts.value.current===null?void 0:this.opts.value.current,"data-state":g1(this.opts.value.current,this.opts.max.current),"data-max":this.opts.max.current,"data-min":this.opts.min.current,"data-indeterminate":this.opts.value.current===null?"":void 0,[p1.root]:"",...this.attachment}));get props(){return l(this.#e)}set props(n){$(this.#e,n)}}function g1(i,n){return i===null?"indeterminate":i===n?"loaded":"loading"}var h1=re("<div><!></div>");function v1(i,n){const u=Ea();Je(n,!0);let c=w(n,"value",3,0),d=w(n,"max",3,100),m=w(n,"min",3,0),p=w(n,"id",19,()=>Ja(u)),g=w(n,"ref",15,null),h=Lt(n,["$$slots","$$events","$$legacy","child","children","value","max","min","id","ref"]);const b=Hc.create({value:wt(()=>c()),max:wt(()=>d()),min:wt(()=>m()),id:wt(()=>p()),ref:wt(()=>g(),E=>g(E))}),y=lt(()=>zo(h,b.props));var k=Ze(),v=Te(k);{var x=E=>{var C=Ze(),Y=Te(C);Rt(Y,()=>n.child,()=>({props:l(y)})),O(E,C)},S=E=>{var C=h1();Qt(C,()=>({...l(y)}));var Y=Z(C);Rt(Y,()=>n.children??gt),A(C),O(E,C)};ae(v,E=>{n.child?E(x):E(S,!1)})}O(i,k),Be()}const Xc=Vc({component:"radio-group",parts:["root","item"]}),el=new Wc("RadioGroup.Root");class tl{static create(n){return el.set(new tl(n))}opts;#e=lt(()=>this.opts.value.current!=="");get hasValue(){return l(this.#e)}set hasValue(n){$(this.#e,n)}rovingFocusGroup;attachment;constructor(n){this.opts=n,this.attachment=Qa(this.opts.ref),this.rovingFocusGroup=new n1({rootNode:this.opts.ref,candidateAttr:Xc.item,loop:this.opts.loop,orientation:this.opts.orientation})}isChecked(n){return this.opts.value.current===n}setValue(n){this.opts.value.current=n}#t=lt(()=>({id:this.opts.id.current,role:"radiogroup","aria-required":Ga(this.opts.required.current),"aria-disabled":Ga(this.opts.disabled.current),"aria-readonly":this.opts.readonly.current?"true":void 0,"data-disabled":Oi(this.opts.disabled.current),"data-readonly":Oi(this.opts.readonly.current),"data-orientation":this.opts.orientation.current,[Xc.root]:"",...this.attachment}));get props(){return l(this.#t)}set props(n){$(this.#t,n)}}class rl{static create(n){return new rl(n,el.get())}opts;root;attachment;#e=lt(()=>this.root.opts.value.current===this.opts.value.current);get checked(){return l(this.#e)}set checked(n){$(this.#e,n)}#t=lt(()=>this.opts.disabled.current||this.root.opts.disabled.current);#n=lt(()=>this.root.opts.readonly.current);#o=lt(()=>this.root.isChecked(this.opts.value.current));#i=Fr(-1);constructor(n,u){this.opts=n,this.root=u,this.attachment=Qa(this.opts.ref),this.opts.value.current===this.root.opts.value.current?(this.root.rovingFocusGroup.setCurrentTabStopId(this.opts.id.current),$(this.#i,0)):this.root.opts.value.current||$(this.#i,0),po(()=>{$(this.#i,this.root.rovingFocusGroup.getTabIndex(this.opts.ref.current),!0)}),No([()=>this.opts.value.current,()=>this.root.opts.value.current],()=>{this.opts.value.current===this.root.opts.value.current&&(this.root.rovingFocusGroup.setCurrentTabStopId(this.opts.id.current),$(this.#i,0))}),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onfocus=this.onfocus.bind(this)}onclick(n){this.opts.disabled.current||l(this.#n)||this.root.setValue(this.opts.value.current)}onfocus(n){!this.root.hasValue||l(this.#n)||this.root.setValue(this.opts.value.current)}onkeydown(n){if(!l(this.#t)){if(n.key===zb){n.preventDefault(),l(this.#n)||this.root.setValue(this.opts.value.current);return}this.root.rovingFocusGroup.handleKeydown(this.opts.ref.current,n,!0)}}#a=lt(()=>({checked:l(this.#o)}));get snippetProps(){return l(this.#a)}set snippetProps(n){$(this.#a,n)}#r=lt(()=>({id:this.opts.id.current,disabled:l(this.#t)?!0:void 0,"data-value":this.opts.value.current,"data-orientation":this.root.opts.orientation.current,"data-disabled":Oi(l(this.#t)),"data-readonly":Oi(l(this.#n)),"data-state":l(this.#o)?"checked":"unchecked","aria-checked":Ib(l(this.#o),!1),[Xc.item]:"",type:"button",role:"radio",tabindex:l(this.#i),onkeydown:this.onkeydown,onfocus:this.onfocus,onclick:this.onclick,...this.attachment}));get props(){return l(this.#r)}set props(n){$(this.#r,n)}}class nl{static create(){return new nl(el.get())}root;#e=lt(()=>this.root.opts.name.current!==void 0);get shouldRender(){return l(this.#e)}set shouldRender(n){$(this.#e,n)}constructor(n){this.root=n,this.onfocus=this.onfocus.bind(this)}onfocus(n){this.root.rovingFocusGroup.focusCurrentTabStop()}#t=lt(()=>({name:this.root.opts.name.current,value:this.root.opts.value.current,required:this.root.opts.required.current,disabled:this.root.opts.disabled.current,onfocus:this.onfocus}));get props(){return l(this.#t)}set props(n){$(this.#t,n)}}function b1(i,n){Je(n,!1);const u=nl.create();er();var c=Ze(),d=Te(c);{var m=p=>{Tb(p,Tt(()=>u.props))};ae(d,p=>{u.shouldRender&&p(m)})}O(i,c),Be()}var y1=re("<div><!></div>"),$1=re("<!> <!>",1);function w1(i,n){const u=Ea();Je(n,!0);let c=w(n,"disabled",3,!1),d=w(n,"value",15,""),m=w(n,"ref",15,null),p=w(n,"orientation",3,"vertical"),g=w(n,"loop",3,!0),h=w(n,"name",3,void 0),b=w(n,"required",3,!1),y=w(n,"readonly",3,!1),k=w(n,"id",19,()=>Ja(u)),v=w(n,"onValueChange",3,i1),x=Lt(n,["$$slots","$$events","$$legacy","disabled","children","child","value","ref","orientation","loop","name","required","readonly","id","onValueChange"]);const S=tl.create({orientation:wt(()=>p()),disabled:wt(()=>c()),loop:wt(()=>g()),name:wt(()=>h()),required:wt(()=>b()),readonly:wt(()=>y()),id:wt(()=>k()),value:wt(()=>d(),G=>{G!==d()&&(d(G),v()?.(G))}),ref:wt(()=>m(),G=>m(G))}),E=lt(()=>zo(x,S.props));var C=$1(),Y=Te(C);{var oe=G=>{var R=Ze(),H=Te(R);Rt(H,()=>n.child,()=>({props:l(E)})),O(G,R)},J=G=>{var R=y1();Qt(R,()=>({...l(E)}));var H=Z(R);Rt(H,()=>n.children??gt),A(R),O(G,R)};ae(Y,G=>{n.child?G(oe):G(J,!1)})}var B=fe(Y,2);b1(B,{}),O(i,C),Be()}var _1=re("<button><!></button>");function k1(i,n){const u=Ea();Je(n,!0);let c=w(n,"id",19,()=>Ja(u)),d=w(n,"disabled",3,!1),m=w(n,"ref",15,null),p=Lt(n,["$$slots","$$events","$$legacy","id","children","child","value","disabled","ref"]);const g=rl.create({value:wt(()=>n.value),disabled:wt(()=>d()??!1),id:wt(()=>c()),ref:wt(()=>m(),x=>m(x))}),h=lt(()=>zo(p,g.props));var b=Ze(),y=Te(b);{var k=x=>{var S=Ze(),E=Te(S);{let C=lt(()=>({props:l(h),...g.snippetProps}));Rt(E,()=>n.child,()=>l(C))}O(x,S)},v=x=>{var S=_1();Qt(S,()=>({...l(h)}));var E=Z(S);Rt(E,()=>n.children??gt,()=>g.snippetProps),A(S),O(x,S)};ae(y,x=>{n.child?x(k):x(v,!1)})}O(i,b),Be()}function x1(i,n){Je(n,!0);let u=w(n,"ref",15,null),c=w(n,"value",15,""),d=Lt(n,["$$slots","$$events","$$legacy","ref","class","value"]);var m=Ze(),p=Te(m);{let g=lt(()=>Sr("grid gap-3",n.class));Pa(p,()=>w1,(h,b)=>{b(h,Tt({"data-slot":"radio-group",get class(){return l(g)}},()=>d,{get ref(){return u()},set ref(y){u(y)},get value(){return c()},set value(y){c(y)}}))})}O(i,m),Be()}function S1(i,n){Je(n,!0);/**
137
137
  * @license @lucide/svelte v0.544.0 - ISC
138
138
  *
139
139
  * ISC License
@@ -176,7 +176,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
176
176
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
177
177
  * SOFTWARE.
178
178
  *
179
- */let u=At(n,["$$slots","$$events","$$legacy"]);const c=[["circle",{cx:"12",cy:"12",r:"10"}]];qa(i,Tt({name:"circle"},()=>u,{get iconNode(){return c},children:(d,m)=>{var p=Ze(),g=Te(p);Rt(g,()=>n.children??gt),T(d,p)},$$slots:{default:!0}})),Be()}var I1=te('<div data-slot="radio-group-indicator" class="relative flex items-center justify-center"><!></div>');function z1(i,n){Je(n,!0);let u=w(n,"ref",15,null),c=At(n,["$$slots","$$events","$$legacy","ref","class"]);var d=Ze(),m=Te(d);{const p=(h,b)=>{let y=()=>b?.().checked;var k=I1(),v=R(k);{var x=S=>{S1(S,{class:"fill-primary absolute left-1/2 top-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})};ae(v,S=>{y()&&S(x)})}L(k),T(h,k)};let g=lt(()=>Sr("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 shadow-xs aspect-square size-4 shrink-0 rounded-full border outline-none transition-[color,box-shadow] focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",n.class));Pa(m,()=>k1,(h,b)=>{b(h,Tt({"data-slot":"radio-group-item",get class(){return l(g)}},()=>c,{get ref(){return u()},set ref(y){u(y)},children:p,$$slots:{default:!0}}))})}T(i,d),Be()}var N1=te('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),j1=te('<span class="text-destructive ml-1">*</span>'),T1=te('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),O1=te('<div class="flex items-center space-x-3"><!> <label class="text-sm font-medium cursor-pointer text-foreground hover:text-primary transition-colors select-none"> </label></div>'),E1=te('<div class="flex flex-wrap gap-2"></div>'),P1=Tn('<svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M5 13l4 4L19 7"></path></svg>'),C1=te('<span class="flex-1"> </span> <!>',1),U1=te('<div class="flex flex-col gap-2 w-full"></div>'),M1=te('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><span class="font-medium"> </span></div>'),D1=te('<div class="w-full space-y-4"><div class="flex text-left items-start gap-3"><!> <div class="flex-1 space-y-1.5"><label class="text-lg font-semibold text-foreground leading-tight"> <!></label> <!></div></div> <!> <!></div>');function L1(i,n){Je(n,!1);const u=ee();let c=w(n,"question",8),d=w(n,"value",8,""),m=w(n,"onChange",8),p=w(n,"error",8,void 0),g=w(n,"currentMode",8,void 0),h=w(n,"questionNumber",8,void 0);w(n,"themeSettings",8,void 0),w(n,"currentLanguage",8,void 0);let b=ee(d()||"");function y(ke){l(b)===ke?($(b,""),m()("")):($(b,ke),m()(ke))}ve(()=>z(g()),()=>{$(u,g()==="dark")}),ve(()=>z(d()),()=>{d()!==void 0&&$(b,d())}),fr(),er();var k=D1(),v=R(k),x=R(v);{var S=ke=>{var fe=N1(),Se=R(fe);L(fe),je(()=>Oe(Se,`${h()??""}.`)),T(ke,fe)};ae(x,ke=>{h()!==void 0&&ke(S)})}var O=de(x,2),U=R(O),B=R(U),oe=de(B);{var J=ke=>{var fe=j1();T(ke,fe)};ae(oe,ke=>{z(c()),M(()=>c().required)&&ke(J)})}L(U);var Y=de(U,2);{var G=ke=>{var fe=T1(),Se=R(fe,!0);L(fe),je(()=>Oe(Se,(z(c()),M(()=>c().description)))),T(ke,fe)};ae(Y,ke=>{z(c()),M(()=>c().description)&&ke(G)})}L(O),L(v);var F=de(v,2);{var K=ke=>{x1(ke,{get value(){return l(b)},class:"flex flex-col gap-3",children:(fe,Se)=>{var me=Ze(),ne=Te(me);gr(ne,1,()=>(z(c()),M(()=>c().options)),xr,(re,W)=>{var N=O1(),C=R(N);{let ie=Ae(()=>(z(c()),l(W),M(()=>`${c().id}-${l(W).value}`)));z1(C,{get value(){return l(W),M(()=>l(W).value)},get id(){return l(ie)},onclick:()=>y(l(W).value),class:`h-5 w-5 rounded-full border-2 cursor-pointer transition-all
179
+ */let u=Lt(n,["$$slots","$$events","$$legacy"]);const c=[["circle",{cx:"12",cy:"12",r:"10"}]];Fa(i,Tt({name:"circle"},()=>u,{get iconNode(){return c},children:(d,m)=>{var p=Ze(),g=Te(p);Rt(g,()=>n.children??gt),O(d,p)},$$slots:{default:!0}})),Be()}var I1=re('<div data-slot="radio-group-indicator" class="relative flex items-center justify-center"><!></div>');function z1(i,n){Je(n,!0);let u=w(n,"ref",15,null),c=Lt(n,["$$slots","$$events","$$legacy","ref","class"]);var d=Ze(),m=Te(d);{const p=(h,b)=>{let y=()=>b?.().checked;var k=I1(),v=Z(k);{var x=S=>{S1(S,{class:"fill-primary absolute left-1/2 top-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})};ae(v,S=>{y()&&S(x)})}A(k),O(h,k)};let g=lt(()=>Sr("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 shadow-xs aspect-square size-4 shrink-0 rounded-full border outline-none transition-[color,box-shadow] focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",n.class));Pa(m,()=>k1,(h,b)=>{b(h,Tt({"data-slot":"radio-group-item",get class(){return l(g)}},()=>c,{get ref(){return u()},set ref(y){u(y)},children:p,$$slots:{default:!0}}))})}O(i,d),Be()}var N1=re('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),j1=re('<span class="text-destructive ml-1">*</span>'),T1=re('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),O1=re('<div class="flex items-center space-x-3"><!> <label class="text-sm font-medium cursor-pointer text-foreground hover:text-primary transition-colors select-none"> </label></div>'),E1=re('<div class="flex flex-wrap gap-2"></div>'),P1=Tn('<svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M5 13l4 4L19 7"></path></svg>'),C1=re('<span class="flex-1"> </span> <!>',1),U1=re('<div class="flex flex-col gap-2 w-full"></div>'),M1=re('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><span class="font-medium"> </span></div>'),A1=re('<div class="w-full space-y-4"><div class="flex text-left items-start gap-3"><!> <div class="flex-1 space-y-1.5"><label class="text-lg font-semibold text-foreground leading-tight"> <!></label> <!></div></div> <!> <!></div>');function D1(i,n){Je(n,!1);const u=te();let c=w(n,"question",8),d=w(n,"value",8,""),m=w(n,"onChange",8),p=w(n,"error",8,void 0),g=w(n,"currentMode",8,void 0),h=w(n,"questionNumber",8,void 0);w(n,"themeSettings",8,void 0),w(n,"currentLanguage",8,void 0);let b=te(d()||"");function y(ke){l(b)===ke?($(b,""),m()("")):($(b,ke),m()(ke))}ve(()=>N(g()),()=>{$(u,g()==="dark")}),ve(()=>N(d()),()=>{d()!==void 0&&$(b,d())}),fr(),er();var k=A1(),v=Z(k),x=Z(v);{var S=ke=>{var me=N1(),Se=Z(me);A(me),je(()=>Oe(Se,`${h()??""}.`)),O(ke,me)};ae(x,ke=>{h()!==void 0&&ke(S)})}var E=fe(x,2),C=Z(E),Y=Z(C),oe=fe(Y);{var J=ke=>{var me=j1();O(ke,me)};ae(oe,ke=>{N(c()),U(()=>c().required)&&ke(J)})}A(C);var B=fe(C,2);{var G=ke=>{var me=T1(),Se=Z(me,!0);A(me),je(()=>Oe(Se,(N(c()),U(()=>c().description)))),O(ke,me)};ae(B,ke=>{N(c()),U(()=>c().description)&&ke(G)})}A(E),A(v);var R=fe(v,2);{var H=ke=>{x1(ke,{get value(){return l(b)},class:"flex flex-col gap-3",children:(me,Se)=>{var le=Ze(),ie=Te(le);gr(ie,1,()=>(N(c()),U(()=>c().options)),xr,(ee,W)=>{var F=O1(),I=Z(F);{let ne=Le(()=>(N(c()),l(W),U(()=>`${c().id}-${l(W).value}`)));z1(I,{get value(){return l(W),U(()=>l(W).value)},get id(){return l(ne)},onclick:()=>y(l(W).value),class:`h-5 w-5 rounded-full border-2 cursor-pointer transition-all
180
180
  data-[state=checked]:border-primary
181
181
  data-[state=checked]:bg-primary
182
182
  dark:data-[state=checked]:bg-primary
@@ -189,7 +189,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
189
189
  [&_[data-slot=radio-group-indicator]_svg]:fill-primary-foreground
190
190
  [&_[data-slot=radio-group-indicator]_svg]:stroke-primary-foreground
191
191
  dark:[&_[data-slot=radio-group-indicator]_svg]:fill-primary-foreground
192
- dark:[&_[data-slot=radio-group-indicator]_svg]:stroke-primary-foreground`})}var E=de(C,2),Z=R(E,!0);L(E),L(N),je(()=>{si(E,"for",(z(c()),l(W),M(()=>`${c().id}-${l(W).value}`))),Oe(Z,(l(W),M(()=>l(W).label)))}),T(re,N)}),T(fe,me)},$$slots:{default:!0}})},H=ke=>{var fe=Ze(),Se=Te(fe);{var me=re=>{var W=E1();gr(W,5,()=>(z(c()),M(()=>c().options)),xr,(N,C)=>{{let E=Ae(()=>(l(b),l(C),M(()=>`rounded-full px-4 py-2 text-sm font-medium transition-all hover:scale-105 ${l(b)===l(C).value?"bg-primary text-primary-foreground border-primary hover:bg-primary/90 shadow-md dark:shadow-primary/20":"bg-card text-card-foreground border-border hover:bg-accent hover:text-accent-foreground"}`)));Ft(N,{type:"button",variant:"outline",get class(){return l(E)},onclick:()=>y(l(C).value),children:(Z,ie)=>{_r();var Q=On();je(()=>Oe(Q,(l(C),M(()=>l(C).label)))),T(Z,Q)},$$slots:{default:!0}})}}),L(W),T(re,W)},ne=re=>{var W=Ze(),N=Te(W);{var C=E=>{var Z=U1();gr(Z,5,()=>(z(c()),M(()=>c().options)),xr,(ie,Q)=>{{let Ce=Ae(()=>(l(b),l(Q),M(()=>`justify-start text-left px-4 py-3.5 text-sm font-medium transition-all rounded-lg relative ${l(b)===l(Q).value?"bg-primary text-primary-foreground border-primary shadow-md hover:shadow-lg hover:bg-primary/90 hover:text-primary-foreground dark:border-primary/90 dark:bg-primary dark:hover:bg-primary":"bg-card text-card-foreground border-border hover:border-primary/50 hover:bg-accent/50 shadow-sm dark:hover:bg-primary/20 dark:hover:text-card-foreground"}`)));Ft(ie,{type:"button",variant:"outline",get class(){return l(Ce)},onclick:()=>y(l(Q).value),onkeydown:_e=>_e.key==="Enter"&&y(l(Q).value),children:(_e,V)=>{var le=C1(),Ne=Te(le),xe=R(Ne,!0);L(Ne);var Re=de(Ne,2);{var Ye=ut=>{var qe=P1();T(ut,qe)};ae(Re,ut=>{l(b),l(Q),M(()=>l(b)===l(Q).value)&&ut(Ye)})}je(()=>Oe(xe,(l(Q),M(()=>l(Q).label)))),T(_e,le)},$$slots:{default:!0}})}}),L(Z),T(E,Z)};ae(N,E=>{z(c()),M(()=>c().displayStyle==="list")&&E(C)},!0)}T(re,W)};ae(Se,re=>{z(c()),M(()=>c().displayStyle==="chip")?re(me):re(ne,!1)},!0)}T(ke,fe)};ae(F,ke=>{z(c()),M(()=>c().displayStyle==="radio"||!c().displayStyle)?ke(K):ke(H,!1)})}var $e=de(F,2);{var Ie=ke=>{var fe=M1(),Se=R(fe),me=R(Se,!0);L(Se),L(fe),je(()=>Oe(me,p())),T(ke,fe)};ae($e,ke=>{p()&&ke(Ie)})}L(k),je(()=>Oe(B,`${z(c()),M(()=>c().title)??""} `)),T(i,k),Be()}var A1=te('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),Z1=te('<span class="text-destructive ml-1">*</span>'),R1=te('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),F1=te("<span> </span>"),q1=te('<span class="text-xs xs:text-xs text-muted-foreground font-medium"> </span>'),W1=te('<span class="text-xs xs:text-xs text-muted-foreground font-medium text-right"> </span>'),Q1=te('<div class="flex justify-between items-center px-1 sm:px-2"><!> <!></div>'),G1=te('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><span class="font-medium"> </span></div>'),V1=te('<div class="w-full space-y-4"><div class="flex text-left items-start gap-3"><!> <div class="flex-1 space-y-1.5"><label class="text-lg font-semibold text-foreground leading-tight"> <!></label> <!></div></div> <div class="flex flex-col gap-3 pt-2"><div></div> <!></div> <!></div>');function J1(i,n){Je(n,!1);const u=ee(),c=ee(),d=ee(),{removeQuestionResponse:m}=pn();let p=w(n,"question",8),g=w(n,"value",8,0),h=w(n,"onChange",8),b=w(n,"error",8,void 0),y=w(n,"currentMode",8,void 0),k=w(n,"questionNumber",8,void 0),v=w(n,"themeSettings",8,void 0);w(n,"currentLanguage",8,void 0);let x=ee(g()??0),S=ee(g()??0),O=ee(0);function U(C){l(S)===C?($(x,0),$(S,0),h()(0),m(p().id)):($(x,C),$(S,C),h()(C))}function B(C,E,Z){const{displayStyle:ie="star",representationSize:Q="medium",numberOfRatings:Ce=5,color:_e}=p(),V=typeof window<"u"&&window.innerWidth<640?"small":Q,le=E>=C,Ne=E===C,xe=Z===C,Re=Z>=C,Ye=`rating-icon ${V}-size ${le?"selected":""} ${l(c)?"dark-mode":""}`,ut=ie==="emoji"||ie==="thumbs-up",qe=_e??l(d)?.brandColor??"var(--brand-color)";let it="";if(ut?it=`opacity: ${(ie==="thumbs-up"?le||Re:Ne||xe)?"1":"0.4"}; transform: scale(${ie==="thumbs-up"&&Ne||ie==="emoji"&&Ne?"1.1":"1"}); transition: opacity 0.2s ease, transform 0.2s ease;`:it=`color: ${le?qe:l(c)?"#4b5563":"#d1d5db"}; transition: color 0.25s ease;`,ie==="emoji"){const Ue=["😡","😞","😕","😐","🙂","😊","😄","😁","🤩","😍"],Pt=Math.floor((C-1)*(Ue.length/Ce)),Ct=Math.min(Math.max(Pt,0),Ue.length-1);return{content:Ue[Ct],type:"emoji",style:it,baseClass:`${Ye} rating-${ie}-icon`}}const ht={star:"★",heart:"♥","thumbs-up":"👍",diamond:"◆"}[ie];return ht?{content:ht,type:ie,style:it,baseClass:`${Ye} rating-${ie}-icon`}:null}ve(()=>z(p()),()=>{$(u,p().displayStyle==="emoji"||p().displayStyle==="thumbs-up")}),ve(()=>z(y()),()=>{$(c,y()==="dark")}),ve(()=>(z(v()),z(y())),()=>{$(d,v()?.[y()==="dark"?"dark":"light"]||null)}),ve(()=>z(g()),()=>{g()!==void 0&&($(x,g()),$(S,g()))}),fr(),er();var oe=V1(),J=R(oe),Y=R(J);{var G=C=>{var E=A1(),Z=R(E);L(E),je(()=>Oe(Z,`${k()??""}.`)),T(C,E)};ae(Y,C=>{k()!==void 0&&C(G)})}var F=de(Y,2),K=R(F),H=R(K),$e=de(H);{var Ie=C=>{var E=Z1();T(C,E)};ae($e,C=>{z(p()),M(()=>p().required)&&C(Ie)})}L(K);var ke=de(K,2);{var fe=C=>{var E=R1(),Z=R(E,!0);L(E),je(()=>Oe(Z,(z(p()),M(()=>p().description)))),T(C,E)};ae(ke,C=>{z(p()),M(()=>p().description)&&C(fe)})}L(F),L(J);var Se=de(J,2),me=R(Se);gr(me,5,()=>(z(p()),M(()=>Array.from({length:p().numberOfRatings??5},(C,E)=>E+1))),xr,(C,E)=>{const Z=Ae(()=>(l(E),l(x),l(O),M(()=>B(l(E),l(x),l(O))))),ie=Ae(()=>(z(p()),M(()=>p().numberOfRatings??5))),Q=Ae(()=>l(ie)>10?"p-0.5 xs:p-1 sm:p-1.5":l(ie)>7?"p-1 xs:p-1.5 sm:p-2":"p-1.5 xs:p-2 sm:p-2.5"),Ce=Ae(()=>l(ie)>10?"text-base xs:text-lg sm:text-xl":l(ie)>7?"text-lg xs:text-xl sm:text-2xl":"text-xl xs:text-2xl sm:text-3xl");var _e=Ze(),V=Te(_e);{var le=Ne=>{{let xe=Ae(()=>l(Q)),Re=Ae(()=>l(u)?"":"hover:scale-110");Ft(Ne,{type:"button",variant:"ghost",size:"icon",get class(){return`h-auto w-auto ${l(xe)??""} rounded-lg hover:bg-accent transition-all flex-shrink-0 ${l(Re)??""}`},onclick:()=>U(l(E)),onmouseenter:()=>{$(x,l(E)),$(O,l(E))},onmouseleave:()=>{$(O,0),$(x,l(S))},children:(Ye,ut)=>{var qe=F1(),it=R(qe,!0);L(qe),je(()=>{fn(qe,1,`${z(l(Z)),M(()=>l(Z).baseClass)??""} ${l(u)?`${l(Ce)} leading-none`:""}`),$o(qe,(z(l(Z)),M(()=>l(Z).style))),Oe(it,(z(l(Z)),M(()=>l(Z).content)))}),T(Ye,qe)},$$slots:{default:!0}})}};ae(V,Ne=>{l(Z)&&Ne(le)})}T(C,_e)}),L(me);var ne=de(me,2);{var re=C=>{var E=Q1(),Z=R(E);{var ie=_e=>{var V=q1(),le=R(V,!0);L(V),je(()=>Oe(le,(z(p()),M(()=>p().minLabel)))),T(_e,V)};ae(Z,_e=>{z(p()),M(()=>p().minLabel)&&_e(ie)})}var Q=de(Z,2);{var Ce=_e=>{var V=W1(),le=R(V,!0);L(V),je(()=>Oe(le,(z(p()),M(()=>p().maxLabel)))),T(_e,V)};ae(Q,_e=>{z(p()),M(()=>p().maxLabel)&&_e(Ce)})}L(E),T(C,E)};ae(ne,C=>{z(p()),M(()=>p().showLabels)&&C(re)})}L(Se);var W=de(Se,2);{var N=C=>{var E=G1(),Z=R(E),ie=R(Z,!0);L(Z),L(E),je(()=>Oe(ie,b())),T(C,E)};ae(W,C=>{b()&&C(N)})}L(oe),je(()=>{Oe(H,`${z(p()),M(()=>p().title)??""} `),fn(me,1,`flex ${l(u)?"gap-0":"gap-0.5 xs:gap-1 sm:gap-1.5 md:gap-2"} justify-center items-center w-full`)}),T(i,oe),Be()}function B1(i,n){Je(n,!0);/**
192
+ dark:[&_[data-slot=radio-group-indicator]_svg]:stroke-primary-foreground`})}var j=fe(I,2),D=Z(j,!0);A(j),A(F),je(()=>{si(j,"for",(N(c()),l(W),U(()=>`${c().id}-${l(W).value}`))),Oe(D,(l(W),U(()=>l(W).label)))}),O(ee,F)}),O(me,le)},$$slots:{default:!0}})},K=ke=>{var me=Ze(),Se=Te(me);{var le=ee=>{var W=E1();gr(W,5,()=>(N(c()),U(()=>c().options)),xr,(F,I)=>{{let j=Le(()=>(l(b),l(I),U(()=>`rounded-full px-4 py-2 text-sm font-medium transition-all hover:scale-105 ${l(b)===l(I).value?"bg-primary text-primary-foreground border-primary hover:bg-primary/90 shadow-md dark:shadow-primary/20":"bg-card text-card-foreground border-border hover:bg-accent hover:text-accent-foreground"}`)));qt(F,{type:"button",variant:"outline",get class(){return l(j)},onclick:()=>y(l(I).value),children:(D,ne)=>{_r();var V=On();je(()=>Oe(V,(l(I),U(()=>l(I).label)))),O(D,V)},$$slots:{default:!0}})}}),A(W),O(ee,W)},ie=ee=>{var W=Ze(),F=Te(W);{var I=j=>{var D=U1();gr(D,5,()=>(N(c()),U(()=>c().options)),xr,(ne,V)=>{{let Ce=Le(()=>(l(b),l(V),U(()=>`justify-start text-left px-4 py-3.5 text-sm font-medium transition-all rounded-lg relative ${l(b)===l(V).value?"bg-primary text-primary-foreground border-primary shadow-md hover:shadow-lg hover:bg-primary/90 hover:text-primary-foreground dark:border-primary/90 dark:bg-primary dark:hover:bg-primary":"bg-card text-card-foreground border-border hover:border-primary/50 hover:bg-accent/50 shadow-sm dark:hover:bg-primary/20 dark:hover:text-card-foreground"}`)));qt(ne,{type:"button",variant:"outline",get class(){return l(Ce)},onclick:()=>y(l(V).value),onkeydown:_e=>_e.key==="Enter"&&y(l(V).value),children:(_e,Q)=>{var de=C1(),Ne=Te(de),xe=Z(Ne,!0);A(Ne);var Re=fe(Ne,2);{var Ye=ut=>{var Fe=P1();O(ut,Fe)};ae(Re,ut=>{l(b),l(V),U(()=>l(b)===l(V).value)&&ut(Ye)})}je(()=>Oe(xe,(l(V),U(()=>l(V).label)))),O(_e,de)},$$slots:{default:!0}})}}),A(D),O(j,D)};ae(F,j=>{N(c()),U(()=>c().displayStyle==="list")&&j(I)},!0)}O(ee,W)};ae(Se,ee=>{N(c()),U(()=>c().displayStyle==="chip")?ee(le):ee(ie,!1)},!0)}O(ke,me)};ae(R,ke=>{N(c()),U(()=>c().displayStyle==="radio"||!c().displayStyle)?ke(H):ke(K,!1)})}var $e=fe(R,2);{var Ie=ke=>{var me=M1(),Se=Z(me),le=Z(Se,!0);A(Se),A(me),je(()=>Oe(le,p())),O(ke,me)};ae($e,ke=>{p()&&ke(Ie)})}A(k),je(()=>Oe(Y,`${N(c()),U(()=>c().title)??""} `)),O(i,k),Be()}var L1=re('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),Z1=re('<span class="text-destructive ml-1">*</span>'),R1=re('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),q1=re("<span> </span>"),F1=re('<span class="text-xs xs:text-xs text-muted-foreground font-medium"> </span>'),W1=re('<span class="text-xs xs:text-xs text-muted-foreground font-medium text-right"> </span>'),V1=re('<div class="flex justify-between items-center px-1 sm:px-2"><!> <!></div>'),Q1=re('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><span class="font-medium"> </span></div>'),G1=re('<div class="w-full space-y-4"><div class="flex text-left items-start gap-3"><!> <div class="flex-1 space-y-1.5"><label class="text-lg font-semibold text-foreground leading-tight"> <!></label> <!></div></div> <div class="flex flex-col gap-3 pt-2"><div></div> <!></div> <!></div>');function J1(i,n){Je(n,!1);const u=te(),c=te(),d=te(),{removeQuestionResponse:m}=pn();let p=w(n,"question",8),g=w(n,"value",8,0),h=w(n,"onChange",8),b=w(n,"error",8,void 0),y=w(n,"currentMode",8,void 0),k=w(n,"questionNumber",8,void 0),v=w(n,"themeSettings",8,void 0);w(n,"currentLanguage",8,void 0);let x=te(g()??0),S=te(g()??0),E=te(0);function C(I){l(S)===I?($(x,0),$(S,0),h()(0),m(p().id)):($(x,I),$(S,I),h()(I))}function Y(I,j,D){const{displayStyle:ne="star",representationSize:V="medium",numberOfRatings:Ce=5,color:_e}=p(),Q=typeof window<"u"&&window.innerWidth<640?"small":V,de=j>=I,Ne=j===I,xe=D===I,Re=D>=I,Ye=`rating-icon ${Q}-size ${de?"selected":""} ${l(c)?"dark-mode":""}`,ut=ne==="emoji"||ne==="thumbs-up",Fe=_e??l(d)?.brandColor??"var(--brand-color)";let it="";if(ut?it=`opacity: ${(ne==="thumbs-up"?de||Re:Ne||xe)?"1":"0.4"}; transform: scale(${ne==="thumbs-up"&&Ne||ne==="emoji"&&Ne?"1.1":"1"}); transition: opacity 0.2s ease, transform 0.2s ease;`:it=`color: ${de?Fe:l(c)?"#4b5563":"#d1d5db"}; transition: color 0.25s ease;`,ne==="emoji"){const Ue=["😡","😞","😕","😐","🙂","😊","😄","😁","🤩","😍"],Pt=Math.floor((I-1)*(Ue.length/Ce)),Ct=Math.min(Math.max(Pt,0),Ue.length-1);return{content:Ue[Ct],type:"emoji",style:it,baseClass:`${Ye} rating-${ne}-icon`}}const ht={star:"★",heart:"♥","thumbs-up":"👍",diamond:"◆"}[ne];return ht?{content:ht,type:ne,style:it,baseClass:`${Ye} rating-${ne}-icon`}:null}ve(()=>N(p()),()=>{$(u,p().displayStyle==="emoji"||p().displayStyle==="thumbs-up")}),ve(()=>N(y()),()=>{$(c,y()==="dark")}),ve(()=>(N(v()),N(y())),()=>{$(d,v()?.[y()==="dark"?"dark":"light"]||null)}),ve(()=>N(g()),()=>{g()!==void 0&&($(x,g()),$(S,g()))}),fr(),er();var oe=G1(),J=Z(oe),B=Z(J);{var G=I=>{var j=L1(),D=Z(j);A(j),je(()=>Oe(D,`${k()??""}.`)),O(I,j)};ae(B,I=>{k()!==void 0&&I(G)})}var R=fe(B,2),H=Z(R),K=Z(H),$e=fe(K);{var Ie=I=>{var j=Z1();O(I,j)};ae($e,I=>{N(p()),U(()=>p().required)&&I(Ie)})}A(H);var ke=fe(H,2);{var me=I=>{var j=R1(),D=Z(j,!0);A(j),je(()=>Oe(D,(N(p()),U(()=>p().description)))),O(I,j)};ae(ke,I=>{N(p()),U(()=>p().description)&&I(me)})}A(R),A(J);var Se=fe(J,2),le=Z(Se);gr(le,5,()=>(N(p()),U(()=>Array.from({length:p().numberOfRatings??5},(I,j)=>j+1))),xr,(I,j)=>{const D=Le(()=>(l(j),l(x),l(E),U(()=>Y(l(j),l(x),l(E))))),ne=Le(()=>(N(p()),U(()=>p().numberOfRatings??5))),V=Le(()=>l(ne)>10?"p-0.5 xs:p-1 sm:p-1.5":l(ne)>7?"p-1 xs:p-1.5 sm:p-2":"p-1.5 xs:p-2 sm:p-2.5"),Ce=Le(()=>l(ne)>10?"text-base xs:text-lg sm:text-xl":l(ne)>7?"text-lg xs:text-xl sm:text-2xl":"text-xl xs:text-2xl sm:text-3xl");var _e=Ze(),Q=Te(_e);{var de=Ne=>{{let xe=Le(()=>l(V)),Re=Le(()=>l(u)?"":"hover:scale-110");qt(Ne,{type:"button",variant:"ghost",size:"icon",get class(){return`h-auto w-auto ${l(xe)??""} rounded-lg hover:bg-accent transition-all flex-shrink-0 ${l(Re)??""}`},onclick:()=>C(l(j)),onmouseenter:()=>{$(x,l(j)),$(E,l(j))},onmouseleave:()=>{$(E,0),$(x,l(S))},children:(Ye,ut)=>{var Fe=q1(),it=Z(Fe,!0);A(Fe),je(()=>{fn(Fe,1,`${N(l(D)),U(()=>l(D).baseClass)??""} ${l(u)?`${l(Ce)} leading-none`:""}`),$o(Fe,(N(l(D)),U(()=>l(D).style))),Oe(it,(N(l(D)),U(()=>l(D).content)))}),O(Ye,Fe)},$$slots:{default:!0}})}};ae(Q,Ne=>{l(D)&&Ne(de)})}O(I,_e)}),A(le);var ie=fe(le,2);{var ee=I=>{var j=V1(),D=Z(j);{var ne=_e=>{var Q=F1(),de=Z(Q,!0);A(Q),je(()=>Oe(de,(N(p()),U(()=>p().minLabel)))),O(_e,Q)};ae(D,_e=>{N(p()),U(()=>p().minLabel)&&_e(ne)})}var V=fe(D,2);{var Ce=_e=>{var Q=W1(),de=Z(Q,!0);A(Q),je(()=>Oe(de,(N(p()),U(()=>p().maxLabel)))),O(_e,Q)};ae(V,_e=>{N(p()),U(()=>p().maxLabel)&&_e(Ce)})}A(j),O(I,j)};ae(ie,I=>{N(p()),U(()=>p().showLabels)&&I(ee)})}A(Se);var W=fe(Se,2);{var F=I=>{var j=Q1(),D=Z(j),ne=Z(D,!0);A(D),A(j),je(()=>Oe(ne,b())),O(I,j)};ae(W,I=>{b()&&I(F)})}A(oe),je(()=>{Oe(K,`${N(p()),U(()=>p().title)??""} `),fn(le,1,`flex ${l(u)?"gap-0":"gap-0.5 xs:gap-1 sm:gap-1.5 md:gap-2"} justify-center items-center w-full`)}),O(i,oe),Be()}function B1(i,n){Je(n,!0);/**
193
193
  * @license @lucide/svelte v0.544.0 - ISC
194
194
  *
195
195
  * ISC License
@@ -232,7 +232,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
232
232
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
233
233
  * SOFTWARE.
234
234
  *
235
- */let u=At(n,["$$slots","$$events","$$legacy"]);const c=[["path",{d:"M20 6 9 17l-5-5"}]];qa(i,Tt({name:"check"},()=>u,{get iconNode(){return c},children:(d,m)=>{var p=Ze(),g=Te(p);Rt(g,()=>n.children??gt),T(d,p)},$$slots:{default:!0}})),Be()}function Y1(i,n){Je(n,!0);/**
235
+ */let u=Lt(n,["$$slots","$$events","$$legacy"]);const c=[["path",{d:"M20 6 9 17l-5-5"}]];Fa(i,Tt({name:"check"},()=>u,{get iconNode(){return c},children:(d,m)=>{var p=Ze(),g=Te(p);Rt(g,()=>n.children??gt),O(d,p)},$$slots:{default:!0}})),Be()}function Y1(i,n){Je(n,!0);/**
236
236
  * @license @lucide/svelte v0.544.0 - ISC
237
237
  *
238
238
  * ISC License
@@ -275,8 +275,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
275
275
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
276
276
  * SOFTWARE.
277
277
  *
278
- */let u=At(n,["$$slots","$$events","$$legacy"]);const c=[["path",{d:"M5 12h14"}]];qa(i,Tt({name:"minus"},()=>u,{get iconNode(){return c},children:(d,m)=>{var p=Ze(),g=Te(p);Rt(g,()=>n.children??gt),T(d,p)},$$slots:{default:!0}})),Be()}var K1=te('<div data-slot="checkbox-indicator" class="text-current transition-none"><!></div>');function H1(i,n){Je(n,!0);let u=w(n,"ref",15,null),c=w(n,"checked",15,!1),d=w(n,"indeterminate",15,!1),m=At(n,["$$slots","$$events","$$legacy","ref","checked","indeterminate","class"]);var p=Ze(),g=Te(p);{const h=(y,k)=>{let v=()=>k?.().checked,x=()=>k?.().indeterminate;var S=K1(),O=R(S);{var U=oe=>{B1(oe,{class:"size-3.5"})},B=oe=>{var J=Ze(),Y=Te(J);{var G=F=>{Y1(F,{class:"size-3.5"})};ae(Y,F=>{x()&&F(G)},!0)}T(oe,J)};ae(O,oe=>{v()?oe(U):oe(B,!1)})}L(S),T(y,S)};let b=lt(()=>Sr("border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive shadow-xs peer flex size-4 shrink-0 items-center justify-center rounded-[4px] border outline-none transition-shadow focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",n.class));Pa(g,()=>m1,(y,k)=>{k(y,Tt({"data-slot":"checkbox",get class(){return l(b)}},()=>m,{get ref(){return u()},set ref(v){u(v)},get checked(){return c()},set checked(v){c(v)},get indeterminate(){return d()},set indeterminate(v){d(v)},children:h,$$slots:{default:!0}}))})}T(i,p),Be()}var X1=te('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),ez=te('<span class="text-destructive ml-1">*</span>'),tz=te('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),rz=te('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><span class="font-medium"> </span></div>'),nz=te('<div class="flex items-center gap-2 text-sm text-amber-600 bg-amber-50 dark:bg-amber-950/30 dark:text-amber-500 px-3 py-2 rounded-md border border-amber-200 dark:border-amber-900"><span class="font-medium"> </span></div>'),iz=te('<div class="flex items-center space-x-3"><!> <label> </label></div>'),oz=te('<div class="flex flex-col gap-3"></div>'),az=(i,n,u)=>n(l(u).value),sz=te('<button type="button"> </button>'),uz=te('<div class="flex flex-wrap gap-2"></div>'),cz=Tn('<svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M5 13l4 4L19 7"></path></svg>'),lz=te('<span class="flex-1"> </span> <!>',1),dz=te('<div class="flex flex-col gap-2 w-full"></div>'),fz=te('<div class="w-full space-y-4"><div class="flex text-left items-start gap-3"><!> <div class="flex-1 space-y-1.5"><label class="text-lg font-semibold text-foreground leading-tight"> <!></label> <!></div></div> <!> <!> <!></div>');function mz(i,n){Je(n,!1);const u=ee(),{updateQuestionResponse:c,setQuestionError:d}=pn();let m=w(n,"question",8),p=w(n,"value",24,()=>[]),g=w(n,"onChange",8),h=w(n,"error",8,void 0),b=w(n,"currentMode",8,void 0),y=w(n,"questionNumber",8,void 0);w(n,"themeSettings",8,void 0),w(n,"currentLanguage",8,void 0);let k=ee(p()||[]),v=ee(h()),x=ee(void 0),S=!1,O=ee(!1);En(()=>{setTimeout(()=>{const E=U(l(k));$(v,E),E&&d(m().id,E),S=!0},0)});function U(E){if(m().required&&(!E||E.length===0))return m().errorMessage;const Z=m().maxSelections;if(Z!==void 0&&E.length>Z)return m().errorMessage;const ie=m().minSelections;if(ie!==void 0&&E.length>0&&E.length<ie)return m().errorMessage}function B(E){if(!S)return;$(O,!0);const Z=[...l(k)];if(Z.includes(E)){const ie=Z.filter(Ce=>Ce!==E);$(k,ie),g()(ie),$(x,void 0);const Q=U(ie);$(v,Q),c(m().id,ie,s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE,Q)}else{const ie=m().maxSelections;if(ie!==void 0&&Z.length>=ie){const Q=m().errorMessage;$(x,Q),c(m().id,Z,s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE,void 0)}else{const Q=[...Z,E];$(k,Q),g()(Q),$(x,void 0);const Ce=U(Q);$(v,Ce),c(m().id,Q,s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE,Ce)}}}ve(()=>z(b()),()=>{$(u,b()==="dark")}),ve(()=>(z(p()),l(O)),()=>{p()!==void 0&&!l(O)&&$(k,p())}),ve(()=>z(h()),()=>{h()!==void 0&&$(v,h())}),fr(),er();var oe=fz(),J=R(oe),Y=R(J);{var G=E=>{var Z=X1(),ie=R(Z);L(Z),je(()=>Oe(ie,`${y()??""}.`)),T(E,Z)};ae(Y,E=>{y()!==void 0&&E(G)})}var F=de(Y,2),K=R(F),H=R(K),$e=de(H);{var Ie=E=>{var Z=ez();T(E,Z)};ae($e,E=>{z(m()),M(()=>m().required)&&E(Ie)})}L(K);var ke=de(K,2);{var fe=E=>{var Z=tz(),ie=R(Z,!0);L(Z),je(()=>Oe(ie,(z(m()),M(()=>m().description)))),T(E,Z)};ae(ke,E=>{z(m()),M(()=>m().description)&&E(fe)})}L(F),L(J);var Se=de(J,2);{var me=E=>{var Z=rz(),ie=R(Z),Q=R(ie,!0);L(ie),L(Z),je(()=>Oe(Q,l(v))),T(E,Z)};ae(Se,E=>{l(v)&&E(me)})}var ne=de(Se,2);{var re=E=>{var Z=nz(),ie=R(Z),Q=R(ie,!0);L(ie),L(Z),je(()=>Oe(Q,l(x))),T(E,Z)};ae(ne,E=>{l(x)&&E(re)})}var W=de(ne,2);{var N=E=>{var Z=oz();gr(Z,5,()=>(z(m()),M(()=>m().options)),xr,(ie,Q)=>{const Ce=Ae(()=>(l(k),l(Q),M(()=>l(k).includes(l(Q).value)))),_e=Ae(()=>(z(m()),l(k),z(l(Ce)),M(()=>m().maxSelections!==void 0&&l(k).length>=m().maxSelections&&!l(Ce))));var V=iz(),le=R(V);{let Re=Ae(()=>(z(m()),l(Q),M(()=>`${m().id}-${l(Q).value}`))),Ye=Ae(()=>(l(k),l(Q),M(()=>l(k).includes(l(Q).value))));H1(le,{get id(){return l(Re)},get checked(){return l(Ye)},onCheckedChange:()=>B(l(Q).value),get disabled(){return l(_e)},class:"h-5 w-5 rounded border-2 cursor-pointer transition-all data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=unchecked]:border-input data-[state=unchecked]:bg-background data-[state=checked]:text-primary-foreground disabled:opacity-50 disabled:cursor-not-allowed"})}var Ne=de(le,2),xe=R(Ne,!0);L(Ne),L(V),je(()=>{si(Ne,"for",(z(m()),l(Q),M(()=>`${m().id}-${l(Q).value}`))),fn(Ne,1,`text-sm font-medium cursor-pointer text-foreground hover:text-primary transition-colors select-none ${l(_e)?"opacity-50 cursor-not-allowed":""}`),Oe(xe,(l(Q),M(()=>l(Q).label)))}),T(ie,V)}),L(Z),T(E,Z)},C=E=>{var Z=Ze(),ie=Te(Z);{var Q=_e=>{var V=uz();gr(V,5,()=>(z(m()),M(()=>m().options)),xr,(le,Ne)=>{const xe=Ae(()=>(l(k),l(Ne),M(()=>l(k).includes(l(Ne).value)))),Re=Ae(()=>(z(m()),l(k),z(l(xe)),M(()=>m().maxSelections!==void 0&&l(k).length>=m().maxSelections&&!l(xe))));var Ye=sz();Ye.__click=[az,B,Ne];var ut=R(Ye,!0);L(Ye),je(()=>{Ye.disabled=l(Re),fn(Ye,1,`rounded-full px-4 py-2 text-sm font-medium transition-all border-2 ${l(xe)?"bg-primary text-primary-foreground border-primary hover:bg-primary/90 shadow-md dark:shadow-primary/20":"bg-card text-card-foreground border-border hover:bg-accent hover:text-accent-foreground hover:border-primary/50"} ${l(Re)?"opacity-50 cursor-not-allowed":"hover:scale-105 cursor-pointer"}`),Oe(ut,(l(Ne),M(()=>l(Ne).label)))}),T(le,Ye)}),L(V),T(_e,V)},Ce=_e=>{var V=Ze(),le=Te(V);{var Ne=xe=>{var Re=dz();gr(Re,5,()=>(z(m()),M(()=>m().options)),xr,(Ye,ut)=>{const qe=Ae(()=>(l(k),l(ut),M(()=>l(k).includes(l(ut).value)))),it=Ae(()=>(z(m()),l(k),z(l(qe)),M(()=>m().maxSelections!==void 0&&l(k).length>=m().maxSelections&&!l(qe))));{let ht=Ae(()=>`justify-start text-left px-4 py-3.5 text-sm font-medium transition-all rounded-lg relative ${l(qe)?"bg-primary text-primary-foreground border-primary shadow-md hover:shadow-lg hover:bg-primary/90 hover:text-primary-foreground dark:border-primary/90 dark:bg-primary dark:hover:bg-primary":"bg-card text-card-foreground border-border hover:border-primary/50 hover:bg-accent/50 dark:hover:bg-primary/20 dark:hover:text-card-foreground"} ${l(it)?"opacity-50 cursor-not-allowed":""}`);Ft(Ye,{type:"button",variant:"outline",get disabled(){return l(it)},get class(){return l(ht)},onclick:()=>B(l(ut).value),onkeydown:Ue=>Ue.key==="Enter"&&B(l(ut).value),children:(Ue,Pt)=>{var Ct=lz(),qt=Te(Ct),Vt=R(qt,!0);L(qt);var Et=de(qt,2);{var _t=yt=>{var Ir=cz();T(yt,Ir)};ae(Et,yt=>{l(qe)&&yt(_t)})}je(()=>Oe(Vt,(l(ut),M(()=>l(ut).label)))),T(Ue,Ct)},$$slots:{default:!0}})}}),L(Re),T(xe,Re)};ae(le,xe=>{z(m()),M(()=>m().displayStyle==="list")&&xe(Ne)},!0)}T(_e,V)};ae(ie,_e=>{z(m()),M(()=>m().displayStyle==="chip")?_e(Q):_e(Ce,!1)},!0)}T(E,Z)};ae(W,E=>{z(m()),M(()=>m().displayStyle==="checkbox"||!m().displayStyle)?E(N):E(C,!1)})}L(oe),je(()=>Oe(H,`${z(m()),M(()=>m().title)??""} `)),T(i,oe),Be()}kc(["click"]);function pz(i,n,u,c,d,m,p,g,h){l(n)||$(n,!0),$(u,!1),$(c,void 0),d()(void 0);const b=m(void 0);$(p,b),g(h().id,void 0,s.QuestionTypes.ANNOTATION,b)}var gz=te('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),hz=te('<span class="text-destructive ml-1">*</span>'),vz=te('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),bz=te('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> <span class="font-medium"> </span></div>'),yz=te('<div class="group relative border-2 border-dashed border-border hover:border-primary/50 rounded-xl bg-muted/30 hover:bg-muted/50 transition-all cursor-pointer overflow-hidden"><div class="flex items-center justify-center gap-3 px-6 py-8"><div class="w-12 h-12 rounded-full bg-background shadow-sm flex items-center justify-center group-hover:scale-110 transition-transform"><!></div> <div class="flex flex-col"><span class="text-sm font-semibold text-foreground"> </span> <span class="text-xs text-muted-foreground">Click to add annotation</span></div></div></div>'),$z=te('<div class="relative border-2 border-primary/20 rounded-xl bg-primary/5 overflow-hidden shadow-sm hover:shadow-md transition-all"><div class="flex items-center justify-between gap-3 px-6 py-4"><div class="flex items-center gap-3 flex-1 min-w-0"><div class="w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center flex-shrink-0"><!></div> <div class="flex flex-col flex-1 min-w-0"><span class="text-sm font-semibold text-foreground truncate"> </span> <span class="text-xs text-muted-foreground">Annotation added</span></div></div> <button class="w-8 h-8 rounded-full bg-destructive/10 hover:bg-destructive/20 text-destructive flex items-center justify-center transition-colors flex-shrink-0" type="button" aria-label="Remove annotation"><!></button></div></div>'),wz=te('<div class="w-full space-y-4"><div class="flex text-left items-start gap-3"><!> <div class="flex-1 space-y-1.5"><div class="text-lg font-semibold text-foreground leading-tight"> <!></div> <!></div></div> <!> <div class="w-full"><!> <!></div></div>');function _z(i,n){Je(n,!1);const u=ee(),{updateQuestionResponse:c,setQuestionError:d,formResponses:m}=pn();let p=w(n,"question",8),g=w(n,"value",8,void 0),h=w(n,"onChange",8),b=w(n,"error",8,void 0),y=w(n,"currentMode",8,void 0),k=w(n,"questionNumber",8,void 0);w(n,"themeSettings",8,void 0),w(n,"currentLanguage",8,void 0);let v=ee(!1),x=ee(void 0),S=ee(b()),O=ee(!1);En(()=>{const C=ko(m).questions.find(E=>E.questionId===p().id);if(C?.answer&&"annotation"in C.answer){const E=C.answer.annotation;$(x,E),$(v,!0),typeof E=="object"&&E!==null&&h()(E)}setTimeout(()=>{const E=l(x),Z=U(E);$(S,Z),Z&&d(p().id,Z)},0)});function U(C){let E="";if(typeof C=="string"?E=C:C&&typeof C=="object"&&(E="has_annotation_data"),p().required&&(!E||E.trim()===""))return p().errorMessage??"This field is required"}ve(()=>z(y()),()=>{$(u,y()==="dark")}),ve(()=>(z(g()),z(h())),()=>{if(g()!==void 0){if(typeof g()=="string"){const C=g().trim()!=="";$(v,C),$(x,g())}else if(typeof g()=="object"&&g()!==null&&"annotation"in g()){const C=g().annotation;$(v,!0),$(x,C),h()(C)}}else $(x,void 0),$(v,!1)}),ve(()=>z(b()),()=>{b()!==void 0&&$(S,b())}),fr(),er();var B=wz(),oe=R(B),J=R(oe);{var Y=C=>{var E=gz(),Z=R(E);L(E),je(()=>Oe(Z,`${k()??""}.`)),T(C,E)};ae(J,C=>{k()!==void 0&&C(Y)})}var G=de(J,2),F=R(G),K=R(F),H=de(K);{var $e=C=>{var E=hz();T(C,E)};ae(H,C=>{z(p()),M(()=>p().required)&&C($e)})}L(F);var Ie=de(F,2);{var ke=C=>{var E=vz(),Z=R(E,!0);L(E),je(()=>Oe(Z,(z(p()),M(()=>p().description)))),T(C,E)};ae(Ie,C=>{z(p()),M(()=>p().description)&&C(ke)})}L(G),L(oe);var fe=de(oe,2);{var Se=C=>{var E=bz(),Z=de(R(E),2),ie=R(Z,!0);L(Z),L(E),je(()=>Oe(ie,l(S))),T(C,E)};ae(fe,C=>{l(S)&&l(O)&&C(Se)})}var me=de(fe,2),ne=R(me);{var re=C=>{var E=yz(),Z=R(E),ie=R(Z),Q=R(ie);Rv(Q,{size:24,class:"text-muted-foreground group-hover:text-primary transition-colors"}),L(ie);var Ce=de(ie,2),_e=R(Ce),V=R(_e,!0);L(_e),_r(2),L(Ce),L(Z),L(E),je(()=>Oe(V,(z(p()),M(()=>p().noAnnotationText??"No Annotation")))),T(C,E)};ae(ne,C=>{l(v)||C(re)})}var W=de(ne,2);{var N=C=>{var E=$z(),Z=R(E),ie=R(Z),Q=R(ie),Ce=R(Q);Rv(Ce,{size:20,class:"text-primary"}),L(Q);var _e=de(Q,2),V=R(_e),le=R(V,!0);L(V),_r(2),L(_e),L(ie);var Ne=de(ie,2);Ne.__click=[pz,O,v,x,h,U,S,c,p];var xe=R(Ne);qv(xe,{size:16}),L(Ne),L(Z),L(E),je(()=>Oe(le,(z(p()),M(()=>p().annotationText??"Annotation")))),T(C,E)};ae(W,C=>{l(v)&&C(N)})}L(me),L(B),je(()=>Oe(K,`${z(p()),M(()=>p().title)??""} `)),T(i,B),Be()}kc(["click"]);var kz=te('<p class="text-primary text-[1rem] leading-[1.5rem]"> </p>'),xz=te('<div class="flex flex-col items-center text-center mb-0 w-full mt-[8px]"><h2 class="text-primary font-[600] text-[1.5rem] mb-[1rem]"> </h2> <!></div>');function Sz(i,n){Je(n,!1);const u=ee(),c=ee();let d=w(n,"welcomeScreenProperties",8);w(n,"onStart",8,void 0);let m=w(n,"currentMode",8,void 0),p=w(n,"currentLanguage",8,void 0);w(n,"themeSettings",8,void 0),ve(()=>z(m()),()=>{$(u,m()==="dark")}),ve(()=>(z(d()),z(p())),()=>{$(c,d().translations&&p()&&d().translations[p()]?d().translations[p()]:d().welcomeFields??{title:"Welcome to our survey!",description:"We value your feedback and appreciate your time.",buttonLabel:"Start"})}),fr(),er();var g=xz(),h=R(g),b=R(h,!0);L(h);var y=de(h,2);{var k=v=>{var x=kz(),S=R(x,!0);L(x),je(()=>Oe(S,(l(c),M(()=>l(c).description)))),T(v,x)};ae(y,v=>{l(c),M(()=>l(c).description)&&v(k)})}L(g),je(()=>Oe(b,(l(c),M(()=>l(c).title)))),T(i,g),Be()}var Iz=te('<p class="text-primary text-[1rem] leading-[1.5rem]"> </p>'),zz=te('<div class="flex flex-col items-center text-center mb-0 w-full mt-[8px]"><h2 class="text-primary font-[600] text-[1.5rem] mb-[1rem]"> </h2> <!></div>');function Nz(i,n){Je(n,!1);const u=ee(),c=ee(),d=ee(),m=ee(),p=ee();let g=w(n,"endScreenProperties",8),h=w(n,"onExit",8,void 0),b=w(n,"currentMode",8,void 0),y=w(n,"currentLanguage",8,void 0);w(n,"themeSettings",8,void 0);let k=w(n,"isScreenVisible",8,void 0),v=ee(null);bo(()=>{l(v)!==null&&clearTimeout(l(v))}),ve(()=>z(b()),()=>{$(u,b()==="dark")}),ve(()=>(z(g()),z(y())),()=>{$(c,g().translations&&y()&&g().translations[y()]?g().translations[y()]:g().endFields??{title:"Thank you for participating!",message:"Your feedback is important to us.",buttonLabel:"Exit",dismissBehavior:"close",fadeDuration:300})}),ve(()=>z(k()),()=>{$(d,k()===!0)}),ve(()=>z(g()),()=>{$(m,g().endFields?.dismissBehavior)}),ve(()=>z(g()),()=>{$(p,g().endFields?.fadeDuration||0)}),ve(()=>(l(v),l(d),l(m),z(h()),l(p)),()=>{l(v)!==null&&(clearTimeout(l(v)),$(v,null)),l(d)&&l(m)==="fade"&&typeof h()=="function"&&l(p)>0&&$(v,setTimeout(()=>{h()?.()},l(p)*1e3))}),fr(),er();var x=zz(),S=R(x),O=R(S,!0);L(S);var U=de(S,2);{var B=oe=>{var J=Iz(),Y=R(J,!0);L(J),je(()=>Oe(Y,(l(c),M(()=>l(c).message)))),T(oe,J)};ae(U,oe=>{l(c),M(()=>l(c).message)&&oe(B)})}L(x),je(()=>Oe(O,(l(c),M(()=>l(c).title)))),T(i,x),Be()}var jz=te("<h2> </h2>"),Tz=te('<div class="question-wrapper"><div class="question-container"><!></div></div>'),Oz=te("<!> <!>",1),Ez=te('<div id="section-container"><!> <!> <!></div>');function Pz(i,n){Je(n,!1);const u=ee(),c=ee(),{storeQuestions:d,getQuestionData:m}=pn();let p=w(n,"questions",8),g=w(n,"sections",8),h=w(n,"formData",8),b=w(n,"errors",8),y=w(n,"onChange",8),k=w(n,"currentMode",8,void 0),v=w(n,"welcomeScreenProperties",8),x=w(n,"otherConfigurationProperties",8),S=w(n,"currentSectionIndex",8),O=w(n,"endScreenProperties",8,void 0),U=w(n,"currentLanguage",8,void 0),B=w(n,"themeSettings",8),oe=w(n,"onClose",8,void 0),J=w(n,"isScreenVisible",8,void 0),Y=w(n,"apiKey",8,void 0),G=w(n,"hostUrl",8,void 0),F=w(n,"identifier",8,void 0),K=w(n,"feedbackConfigurationId",8,void 0);function H(W){return l(u).get(W)??-1}function $e(W){switch(W){case s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE:return[];case s.QuestionTypes.NPS:case s.QuestionTypes.RATING:return-1;case s.QuestionTypes.SHORT_ANSWER:case s.QuestionTypes.LONG_TEXT:case s.QuestionTypes.SINGLE_CHOICE:return"";default:return}}function Ie(W){return Array.isArray(W)?W:typeof W=="object"&&W!==null?Object.values(W).filter(N=>N!==void 0):typeof W=="string"?[W]:[]}function ke(W){return typeof W=="number"?W:typeof W=="string"?Number(W):0}function fe(W){return typeof W=="string"?W:String(typeof W=="object"&&W!==null?Object.values(W)[0]||"":W||"")}function Se(W,N){if(W==null){const C=$e(N);return C!==void 0?C:W}switch(N){case s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE:return Ie(W);case s.QuestionTypes.NPS:case s.QuestionTypes.RATING:return ke(W);case s.QuestionTypes.SINGLE_CHOICE:return fe(W);default:return W}}ve(()=>z(p()),()=>{p()&&Object.keys(p()).length>0&&d(p())}),ve(()=>z(g()),()=>{$(u,(()=>{const W=new Map;let N=0;return g().forEach(C=>{C.id!=="welcome_screen"&&C.id!=="thankyou_screen"&&C.questionIds.forEach(E=>{W.set(E,N++)})}),W})())}),ve(()=>(z(g()),z(S())),()=>{$(c,g()[S()])}),fr(),er();var me=Ze(),ne=Te(me);{var re=W=>{var N=Ze(),C=Te(N);gr(C,1,()=>(z(g()),z(S()),M(()=>[g()[S()]])),E=>E.id,(E,Z)=>{var ie=Ez(),Q=R(ie);{var Ce=xe=>{Sz(xe,{get welcomeScreenProperties(){return v()},get currentMode(){return k()},get currentLanguage(){return U()},get themeSettings(){return B()}})};ae(Q,xe=>{l(Z),M(()=>l(Z).id==="welcome_screen")&&xe(Ce)})}var _e=de(Q,2);{var V=xe=>{{let Re=Ae(()=>O()?O():{});Nz(xe,{get endScreenProperties(){return l(Re)},get onExit(){return oe()},get currentMode(){return k()},get currentLanguage(){return U()},get themeSettings(){return B()},get isScreenVisible(){return J()}})}};ae(_e,xe=>{l(Z),M(()=>l(Z).id==="thankyou_screen")&&xe(V)})}var le=de(_e,2);{var Ne=xe=>{var Re=Oz(),Ye=Te(Re);{var ut=it=>{var ht=jz(),Ue=R(ht,!0);L(ht),je(()=>{fn(ht,1,`section-title ${k()==="dark"?"dark-mode":""}`),Oe(Ue,(l(Z),M(()=>l(Z).title)))}),T(it,ht)};ae(Ye,it=>{z(x()),M(()=>x().isEnabled&&x().otherFields.pageTitle)&&it(ut)})}var qe=de(Ye,2);gr(qe,1,()=>(l(Z),M(()=>l(Z).questionIds)),xr,(it,ht)=>{const Ue=Ae(()=>(l(ht),M(()=>m(l(ht)))));var Pt=Ze(),Ct=Te(Pt);{var qt=Vt=>{const Et=Ae(()=>(z(x()),M(()=>x()?.isEnabled&&x().otherFields.questionNumber))),_t=Ae(()=>(z(l(Ue)),M(()=>H(l(Ue).id)))),yt=Ae(()=>(z(l(Ue)),z(h()),z(y()),z(b()),z(k()),z(U()),z(B()),z(l(Et)),z(l(_t)),M(()=>({question:l(Ue),value:Se(h()[l(Ue).id],l(Ue).type),onChange:be=>y()(l(Ue).id,be,l(Ue).type),error:b()[l(Ue).id],currentMode:k(),currentLanguage:U(),themeSettings:B(),questionNumber:l(Et)?l(_t)+1:void 0}))));var Ir=Tz(),Mr=R(Ir),vn=R(Mr);{var I=be=>{cS(be,Tt(()=>l(yt),{get question(){return l(Ue)}}))},j=be=>{var De=Ze(),Ke=Te(De);{var We=Wt=>{PS(Wt,Tt(()=>l(yt),{get question(){return l(Ue)}}))},vt=Wt=>{var ur=Ze(),or=Te(ur);{var ar=He=>{VS(He,Tt(()=>l(yt),{get question(){return l(Ue)},get apiKey(){return Y()},get hostUrl(){return G()},get identifier(){return F()},get feedbackConfigurationId(){return K()},get otherConfigurationProperties(){return x()}}))},Jr=He=>{var ft=Ze(),Ut=Te(ft);{var kt=vr=>{uI(vr,Tt(()=>l(yt),{get question(){return l(Ue)},get apiKey(){return Y()},get hostUrl(){return G()},get identifier(){return F()},get feedbackConfigurationId(){return K()},get otherConfigurationProperties(){return x()}}))},zr=vr=>{var tr=Ze(),It=Te(tr);{var bn=Pi=>{L1(Pi,Tt(()=>l(yt),{get question(){return l(Ue)}}))},o4=Pi=>{var Cb=Ze(),a4=Te(Cb);{var s4=Ci=>{J1(Ci,Tt(()=>l(yt),{get question(){return l(Ue)}}))},u4=Ci=>{var Ub=Ze(),c4=Te(Ub);{var l4=Ui=>{mz(Ui,Tt(()=>l(yt),{get question(){return l(Ue)}}))},d4=Ui=>{var Mb=Ze(),f4=Te(Mb);{var m4=al=>{_z(al,Tt(()=>l(yt),{get question(){return l(Ue)}}))};ae(f4,al=>{z(l(Ue)),z(s.QuestionTypes),M(()=>l(Ue).type===s.QuestionTypes.ANNOTATION)&&al(m4)},!0)}T(Ui,Mb)};ae(c4,Ui=>{z(l(Ue)),z(s.QuestionTypes),M(()=>l(Ue).type===s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE)?Ui(l4):Ui(d4,!1)},!0)}T(Ci,Ub)};ae(a4,Ci=>{z(l(Ue)),z(s.QuestionTypes),M(()=>l(Ue).type===s.QuestionTypes.RATING)?Ci(s4):Ci(u4,!1)},!0)}T(Pi,Cb)};ae(It,Pi=>{z(l(Ue)),z(s.QuestionTypes),M(()=>l(Ue).type===s.QuestionTypes.SINGLE_CHOICE)?Pi(bn):Pi(o4,!1)},!0)}T(vr,tr)};ae(Ut,vr=>{z(l(Ue)),z(s.QuestionTypes),M(()=>l(Ue).type===s.QuestionTypes.SHORT_ANSWER)?vr(kt):vr(zr,!1)},!0)}T(He,ft)};ae(or,He=>{z(l(Ue)),z(s.QuestionTypes),M(()=>l(Ue).type===s.QuestionTypes.LONG_TEXT)?He(ar):He(Jr,!1)},!0)}T(Wt,ur)};ae(Ke,Wt=>{z(l(Ue)),z(s.QuestionTypes),M(()=>l(Ue).type===s.QuestionTypes.NESTED_SELECTION)?Wt(We):Wt(vt,!1)},!0)}T(be,De)};ae(vn,be=>{z(l(Ue)),z(s.QuestionTypes),M(()=>l(Ue).type===s.QuestionTypes.NPS)?be(I):be(j,!1)})}L(Mr),L(Ir),T(Vt,Ir)};ae(Ct,Vt=>{l(Ue)&&Vt(qt)})}T(it,Pt)}),T(xe,Re)};ae(le,xe=>{l(Z),M(()=>l(Z).id!=="welcome_screen"&&l(Z).id!=="thankyou_screen")&&xe(Ne)})}L(ie),T(E,ie)}),T(W,N)};ae(ne,W=>{z(S()),z(g()),M(()=>S()<g().length&&g().length>0)&&W(re)})}T(i,me),Be()}var Cz=te('<div class="flex justify-center"><!></div>'),Uz=te('<div class="flex justify-center"><!></div>'),Mz=te('<div class="flex-1"></div>'),Dz=Tn('<svg class="w-5 h-5 animate-spin" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg>'),Lz=te('<div class="flex items-center justify-between gap-3"><!> <!></div>'),Az=te('<div class="w-full py-6 px-4 bg-primary-foreground"><!></div>');function Zz(i,n){Je(n,!1);const u=ee(),c=ee(),d=ee(),m=ee(),p=ee(),g=ee(),{hasValidationErrors:h,clearValidationErrors:b}=pn();let y=w(n,"isWelcomeScreen",8),k=w(n,"isThankYouScreen",8),v=w(n,"isFirstSection",8),x=w(n,"isFirstPageAfterWelcome",8,!1),S=w(n,"isLastSection",8),O=w(n,"welcomeScreenProperties",8),U=w(n,"endScreenProperties",8,void 0),B=w(n,"otherConfigurationProperties",8),oe=w(n,"currentMode",8),J=w(n,"currentLanguage",8),Y=w(n,"handlePrevious",8),G=w(n,"handleNext",8),F=w(n,"handleSubmit",8),K=w(n,"onClose",8,void 0);w(n,"themeSettings",8);let H=w(n,"nextButtonDisabled",8,!1),$e=w(n,"submitButtonDisabled",8,!1),Ie=w(n,"isSinglePageSurvey",8,!1),ke=ee(!1);const fe=()=>{K()&&K()()},Se=()=>{if(!k()&&!U()?.isEnabled){$(ke,!0),window.setTimeout(()=>{$(ke,!1),K()&&K()()},3e3);try{F()()}catch(E){console.error("Error during form submission:",E)}}else F()()},me=()=>{b(),Y()()},ne=()=>{G()()};ve(()=>(z(B()),z(J())),()=>{$(u,(()=>{const E={previousButtonLabel:"Previous",nextButtonLabel:"Next",submitButtonLabel:"Submit"};return B().isEnabled?B().translations&&J()&&B().translations[J()]?B().translations[J()]:B().otherFields??E:E})())}),ve(()=>(z(O()),z(J())),()=>{$(c,O().translations&&J()&&O().translations[J()]?O().translations[J()]:O().welcomeFields??{title:"Welcome to our survey!",description:"We value your feedback and appreciate your time.",buttonLabel:"Start"})}),ve(()=>(z(U()),z(J())),()=>{$(d,U()?.translations&&J()&&U().translations[J()]?U().translations[J()]:U()?.endFields??{buttonLabel:"Exit",dismissBehavior:"close"})}),ve(()=>z(oe()),()=>{$(m,oe()==="dark")}),ve(()=>z(H()),()=>{$(p,h()||H())}),ve(()=>z($e()),()=>{$(g,h()||$e())}),fr(),er();var re=Az(),W=R(re);{var N=E=>{var Z=Cz(),ie=R(Z);Ft(ie,{onclick:ne,size:"lg",class:"px-8 py-6 text-base font-semibold min-w-[160px] rounded-lg shadow-md hover:shadow-lg transition-all",children:(Q,Ce)=>{_r();var _e=On();je(()=>Oe(_e,(l(c),M(()=>l(c).buttonLabel)))),T(Q,_e)},$$slots:{default:!0}}),L(Z),T(E,Z)},C=E=>{var Z=Ze(),ie=Te(Z);{var Q=_e=>{var V=Uz(),le=R(V);Ft(le,{onclick:()=>fe(),size:"lg",class:"px-8 py-6 text-base font-semibold min-w-[160px] rounded-lg shadow-md hover:shadow-lg transition-all",children:(Ne,xe)=>{_r();var Re=On();je(()=>Oe(Re,(l(d),M(()=>l(d).buttonLabel)))),T(Ne,Re)},$$slots:{default:!0}}),L(V),T(_e,V)},Ce=_e=>{var V=Lz(),le=R(V);{var Ne=qe=>{{let it=Ae(()=>v()||x());Ft(qe,{onclick:()=>me(),get disabled(){return l(it)},variant:"outline",size:"lg",class:"px-6 py-5 text-sm text-secondary-foreground min-w-[140px] font-semibold rounded-lg transition-all disabled:opacity-50 disabled:cursor-not-allowed",children:(ht,Ue)=>{_r();var Pt=On();je(()=>Oe(Pt,(l(u),M(()=>l(u).previousButtonLabel)))),T(ht,Pt)},$$slots:{default:!0}})}},xe=qe=>{var it=Mz();T(qe,it)};ae(le,qe=>{Ie()?qe(xe,!1):qe(Ne)})}var Re=de(le,2);{var Ye=qe=>{{let it=Ae(()=>l(g)||l(ke)),ht=Ae(()=>Ie()?"mx-auto":"");Ft(qe,{onclick:()=>Se(),get disabled(){return l(it)},size:"lg",get class(){return`px-6 py-5 text-base font-semibold min-w-[140px] rounded-lg shadow-md hover:shadow-lg transition-all disabled:opacity-50 disabled:cursor-not-allowed ${l(ht)??""}`},children:(Ue,Pt)=>{var Ct=Ze(),qt=Te(Ct);{var Vt=_t=>{var yt=Dz();T(_t,yt)},Et=_t=>{var yt=On();je(()=>Oe(yt,(l(u),M(()=>l(u).submitButtonLabel)))),T(_t,yt)};ae(qt,_t=>{l(ke)?_t(Vt):_t(Et,!1)})}T(Ue,Ct)},$$slots:{default:!0}})}},ut=qe=>{var it=Ze(),ht=Te(it);{var Ue=Pt=>{Ft(Pt,{onclick:ne,get disabled(){return l(p)},size:"lg",class:"px-6 py-5 text-base font-semibold min-w-[140px] rounded-lg shadow-md hover:shadow-lg transition-all disabled:opacity-50 disabled:cursor-not-allowed",children:(Ct,qt)=>{_r();var Vt=On();je(()=>Oe(Vt,(l(u),M(()=>l(u).nextButtonLabel)))),T(Ct,Vt)},$$slots:{default:!0}})};ae(ht,Pt=>{Ie()||Pt(Ue)},!0)}T(qe,it)};ae(Re,qe=>{S()?qe(Ye):qe(ut,!1)})}L(V),T(_e,V)};ae(ie,_e=>{k()?_e(Q):_e(Ce,!1)},!0)}T(E,Z)};ae(W,E=>{y()?E(N):E(C,!1)})}L(re),T(i,re),Be()}var Rz=te('<div data-slot="progress-indicator" class="bg-primary h-full w-full flex-1 transition-all"></div>');function Fz(i,n){Je(n,!0);let u=w(n,"ref",15,null),c=w(n,"max",3,100),d=At(n,["$$slots","$$events","$$legacy","ref","class","max","value"]);var m=Ze(),p=Te(m);{let g=lt(()=>Sr("bg-primary/20 relative w-full overflow-hidden rounded-full",n.class));Pa(p,()=>v1,(h,b)=>{b(h,Tt({"data-slot":"progress",get class(){return l(g)},get value(){return n.value},get max(){return c()}},()=>d,{get ref(){return u()},set ref(y){u(y)},children:(y,k)=>{var v=Rz();je(()=>$o(v,`transform: translateX(-${100-100*(n.value??0)/(c()??1)}%)`)),T(y,v)},$$slots:{default:!0}}))})}T(i,m),Be()}const qz="encatch-forms",Un="form-responses",Wz=1;async function il(){return new Promise((i,n)=>{if(typeof window>"u"||!window.indexedDB){n(new Error("IndexedDB is not available in this environment"));return}const u=indexedDB.open(qz,Wz);u.onerror=()=>{console.error("[IndexedDB] Error opening database:",u.error),n(u.error)},u.onsuccess=()=>{i(u.result)},u.onupgradeneeded=c=>{const d=c.target.result;d.objectStoreNames.contains(Un)||d.createObjectStore(Un,{keyPath:"id"})}})}async function Qz(i,n){try{const u=await il();return new Promise((c,d)=>{const m=u.transaction([Un],"readwrite"),p=m.objectStore(Un),g={id:i,responses:n,timestamp:Date.now()},h=p.put(g);h.onsuccess=()=>{c()},h.onerror=()=>{console.error("[IndexedDB] Error saving data:",h.error),d(h.error)},m.oncomplete=()=>{u.close()}})}catch(u){throw console.error("[IndexedDB] Error in saveFormData:",u),u}}async function Gz(i){try{const n=await il();return new Promise((u,c)=>{const d=n.transaction([Un],"readonly"),m=d.objectStore(Un).get(i);m.onsuccess=()=>{const p=m.result;p&&p.responses?u(p.responses):u(null)},m.onerror=()=>{console.error("[IndexedDB] Error loading data:",m.error),c(m.error)},d.oncomplete=()=>{n.close()}})}catch(n){throw console.error("[IndexedDB] Error in loadFormData:",n),n}}async function Tb(i){try{const n=await il();return new Promise((u,c)=>{const d=n.transaction([Un],"readwrite"),m=d.objectStore(Un).delete(i);m.onsuccess=()=>{u()},m.onerror=()=>{console.error("[IndexedDB] Error clearing data:",m.error),c(m.error)},d.oncomplete=()=>{n.close()}})}catch(n){throw console.error("[IndexedDB] Error in clearFormData:",n),n}}class Vz extends EventTarget{subscriptions=new Map;targetOrigin="*";matchesFilter(n,u){return!u||u==="*"||u===null||u===void 0?!0:typeof u=="string"?n===u:Array.isArray(u)?u.includes(n||""):typeof u=="function"?u(n||""):!1}getFormIdFromPayload(n){return n?.feedbackConfigurationId}publish(n,u,c){const d=this.getFormIdFromPayload(u);console.log(`[FormEventPublisher] 📢 Publishing "${n}"`,{formId:d,payload:u}),typeof window<"u"&&(window.dispatchEvent(new CustomEvent(n,{detail:u,bubbles:!0})),console.log("[FormEventPublisher] ✅ Event dispatched on window")),c?.usePostMessage!==!1&&this.sendPostMessage(n,u)}subscribe(n,u,c){const d=Symbol("subscription"),m={eventType:n,handler:u,filter:c?.formId,id:d,once:c?.once};this.subscriptions.has(n)||this.subscriptions.set(n,[]),this.subscriptions.get(n).push(m),console.log(`[FormEventPublisher] Subscribed to "${n}"`,{formId:c?.formId,once:c?.once,totalSubscriptions:this.subscriptions.get(n).length});const p=g=>{const h=g,b=this.getFormIdFromPayload(h.detail);this.matchesFilter(b,c?.formId)&&(u(h.detail),c?.once&&typeof window<"u"&&window.removeEventListener(n,p))};return typeof window<"u"&&window.addEventListener(n,p),()=>{console.log(`[FormEventPublisher] Unsubscribed from "${n}"`,{formId:c?.formId,remainingSubscriptions:(this.subscriptions.get(n)?.length||1)-1}),this.unsubscribe(d),typeof window<"u"&&window.removeEventListener(n,p)}}unsubscribe(n){for(const[u,c]of this.subscriptions.entries()){const d=c.findIndex(m=>m.id===n);if(d!==-1){c.splice(d,1),c.length===0&&this.subscriptions.delete(u);break}}}subscribeAll(n,u){console.log("[FormEventPublisher] Subscribing to ALL events",{formId:u?.formId,once:u?.once});const c=["form:view","form:submit","form:close","form:section:change","form:question:answered","form:error"],d=[];return c.forEach(m=>{const p=this.subscribe(m,g=>n(m,g),u);d.push(p)}),()=>{console.log("[FormEventPublisher] Unsubscribing from ALL events",{formId:u?.formId}),d.forEach(m=>m())}}getSubscriptionCount(n){return n?this.subscriptions.get(n)?.length||0:Array.from(this.subscriptions.values()).reduce((u,c)=>u+c.length,0)}clearSubscriptions(n){n?this.subscriptions.delete(n):this.subscriptions.clear()}sendPostMessage(n,u){const c={type:`encatch:${n}`,payload:u,source:"encatch-form-engine"};window.parent&&window.parent!==window&&window.parent.postMessage(c,this.targetOrigin),document.querySelectorAll("iframe").forEach(d=>{d.contentWindow&&d.contentWindow.postMessage(c,this.targetOrigin)}),typeof window.ReactNativeWebView<"u"&&window.ReactNativeWebView.postMessage(JSON.stringify({action:n.replace("form:",""),data:JSON.stringify(u)}))}}console.log("[FormEventPublisher] Creating singleton instance");const Ei=new Vz;var Jz=te('<div class="flex items-center justify-center min-h-[400px] bg-primary-foreground"><div class="text-center"><div class="inline-block animate-spin rounded-full h-8 w-8 border-b-2 border-primary mb-4"></div> <p class="text-sm text-muted-foreground">Loading your previous responses...</p></div></div>'),Bz=te('<div class="flex-shrink-0" style="height: 3px; min-height: 3px; max-height: 3px;"><!></div>'),Yz=te('<div class="bg-primary-foreground flex items-center justify-center py-2"><img alt="encatch Logo" class="mr-2 h-5 w-5"/> <p class="m-0 text-xs font-medium text-muted-foreground">Powered by encatch</p></div>'),Kz=te('<!> <div class="form-content-container custom-scrollbar bg-primary-foreground"><!></div> <!> <!>',1),Hz=te('<div id="encatch-form-id"><!></div>');function ol(i,n){Je(n,!1);const u=()=>H0(O,"$formResponses",c),[c,d]=X0(),m=ee(),p=ee(),g=ee(),h=ee(),b=ee(),y=ee(),k=ee(),v=ee(),x=ee(),S=ee(),{formResponses:O,updateQuestionResponse:U,bulkUpdateResponses:B}=pn();let oe=w(n,"theme",28,()=>({dark:{brandColor:"#000",overlayColor:"#000",textColor:"#fff",backgroundColor:"#000"},light:{brandColor:"#fff",overlayColor:"#fff",textColor:"#000",backgroundColor:"#fff"}})),J=w(n,"currentMode",12,"light"),Y=w(n,"currentLanguage",28,()=>({value:"en",label:"en"})),G=w(n,"questions",28,()=>({})),F=w(n,"questionLanguages",28,()=>[]),K=w(n,"otherConfigurationProperties",12,null),H=w(n,"welcomeScreenProperties",12,null),$e=w(n,"endScreenProperties",12,null),Ie=w(n,"translations",28,()=>({})),ke=w(n,"sections",24,()=>[]),fe=w(n,"themeSettings",12,null),Se=w(n,"onClose",12,void 0),me=w(n,"onSectionChange",8,void 0),ne=w(n,"apiKey",8,void 0),re=w(n,"hostUrl",8,void 0),W=w(n,"feedbackConfigId",8,void 0),N=w(n,"identifier",8,void 0),C=w(n,"persistMode",8,"none"),E=w(n,"instanceId",8,void 0),Z=ee(0),ie=ee(!1),Q=ee(0),Ce=ee(!1),_e=ee({}),V=ee((()=>{let I=[...ke()||[]];const j=H()?.isEnabled??!0,be=$e()?.isEnabled??!0;return j&&I.unshift({id:"welcome_screen",title:"Welcome",questionIds:[]}),be&&I.push({id:"thankyou_screen",title:"Thank You",questionIds:[]}),I})()),le=ee(!1);const Ne=()=>{const I=window;return typeof window<"u"&&I.encatchAnnotate!==void 0&&typeof I.encatchAnnotate=="object"&&I.encatchAnnotate!==null&&typeof I.encatchAnnotate.getAnnotation=="function"},xe=()=>{if(Ne()){const I=window.encatchAnnotate?.getAnnotation?.();I&&Object.entries(G()).forEach(([j,be])=>{be.type===s.QuestionTypes.ANNOTATION&&U(j,I,s.QuestionTypes.ANNOTATION)})}},Re=(I,j,be,De,Ke="")=>I.map(We=>{let vt=Ke?`${Ke}.children.${We.id}.label`:`option.${We.id}.label`,Wt=De[j]?.[be]?.[vt],ur={...We};return Wt&&(ur.label=Wt),We.children&&We.children.length>0&&(ur.children=Re(We.children,j,be,De,Ke?`${Ke}.children.${We.id}`:`option.${We.id}`)),ur}),Ye=I=>{const j=Ie()||{},be=Object.fromEntries(Object.entries(G()).map(([De,Ke])=>{const We=j[De]?.[I]||{};let vt={...Ke};return We.title&&(vt.title=We.title),We.description&&(vt.description=We.description),We.errorMessage&&(vt.errorMessage=We.errorMessage),We.placeholder&&(vt.placeholder=We.placeholder),We.minLabel&&(vt.minLabel=We.minLabel),We.maxLabel&&(vt.maxLabel=We.maxLabel),We.annotationText&&(vt.annotationText=We.annotationText),We.noAnnotationText&&(vt.noAnnotationText=We.noAnnotationText),Ke.options&&Array.isArray(Ke.options)&&(vt.options=Re(Ke.options,De,I,j)),[De,vt]}));G(be)},ut=()=>l(V).reduce((I,j)=>I+j.questionIds.length,0),qe=()=>u().questions.filter(I=>{try{if(I.type===s.QuestionTypes.SHORT_ANSWER){if(!I.answer||typeof I.answer!="object")return!1;const j=I.answer.shortAnswer;if(j==null||typeof j=="string"&&j.trim()==="")return!1}if(I.type===s.QuestionTypes.LONG_TEXT){if(!I.answer||typeof I.answer!="object")return!1;const j=I.answer.longText;if(j==null||typeof j=="string"&&j.trim()==="")return!1}return!0}catch(j){return console.error("Error checking answer:",I.questionId,j),!0}}).length,it=()=>qe()/ut()*100,ht=(I,j,be)=>{let De=j;Array.isArray(j)&&(De=[...j]),U(I,De,be),$(_e,{...l(_e),[I]:""}),Ei.publish("form:question:answered",{feedbackConfigurationId:E()||"",questionId:I,questionType:be,answer:De,timestamp:Date.now()})},Ue=()=>{if(l(Q)>0){const I=l(Q)-1;$(Q,I),me()?.(I),Ei.publish("form:section:change",{feedbackConfigurationId:E()||"",sectionIndex:I,sectionId:l(V)[I]?.id||"",timestamp:Date.now()})}},Pt=()=>{if(l(Q)<l(V).length-1){const I=l(Q)+1;$(Q,I),me()?.(I),Ei.publish("form:section:change",{feedbackConfigurationId:E()||"",sectionIndex:I,sectionId:l(V)[I]?.id||"",timestamp:Date.now()})}},Ct=()=>{console.log("instanceId",E()),Ei.publish("form:submit",{feedbackConfigurationId:E()||"",feedbackIdentifier:N()||"",response:{questions:u().questions},timestamp:Date.now()});const I=l(V).findIndex(j=>j.id==="thankyou_screen");if(I!==-1&&($(Q,I),me()?.(I)),$(Ce,!0),window.encatch?._internal?.submitFeedback?window.encatch._internal.submitFeedback({response:{questions:u().questions},action:"S",feedbackConfigurationId:W()||"",feedbackIdentifier:N()||"",duration:0}):console.error("window.encatch._internal.submitFeedback is not available"),C()==="retain"&&W()&&N()){const j=`${W()}_${N()}`;Tb(j).then(()=>{}).catch(be=>{console.error("[App] Error clearing saved data after submission:",be)})}},qt=()=>{Ei.publish("form:close",{feedbackConfigurationId:E()||"",feedbackIdentifier:N(),timestamp:Date.now()}),Se()?.()},Vt="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI4LjMuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDEwMDAgMTAwMDsiIAogIGhlaWdodD0iMjAiCiAgd2lkdGg9IjIwIgogIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiMzODQ4OUQ7fQoJLnN0MXtmaWxsOiMxRjFCNEY7fQoJLnN0MntmaWxsOiNGN0I5Mjg7fQoJLnN0M3tmaWxsOiMwMEI4N0E7fQoJLnN0NHtmaWxsOiNFMDI0NUU7fQoJLnN0NXtmaWxsOiNGRkZGRkY7fQoJLnN0NntmaWxsOiNGOEZFRkY7fQo8L3N0eWxlPgo8Zz4KCTxwYXRoIGNsYXNzPSJzdDUiIGQ9Ik00MDQuOCwyMTAuOEMzMDkuMSwyNDEuOSwyMzQsMzE3LjYsMjAzLjIsNDEzLjRjLTYxLjMsMTkwLjEsNDcuOSwzNjguNSwyMTIuNSw0MjBjNS43LDEuOCwxMS42LTIuNSwxMS42LTguNQoJCXYtNjkuN2MwLTMuNi0yLjItNi44LTUuNi04LjJDMzMyLjQsNzEwLjcsMjY5LjMsNjIzLDI2OS4zLDUyMC44YzAtMTM0LjcsMTA5LjYtMjQ0LjIsMjQ0LjItMjQ0LjJjMTE5LjMsMCwyMTguOCw4NS43LDIzOS45LDE5OC45CgkJYzAuMywxLjktMS4xLDMuNi0zLDMuNmgtMzcuNGMtOC44LDAtMTUuOSw3LjEtMTUuOSwxNS45djQ3LjJjMCwxMS4xLDMuOSwyMC42LDE1LDIwLjZsNDUuNi0wLjNoNDEuN3YtMC4yaDM0LjEKCQljNC4yLDAsNy42LTMuNCw3LjYtNy42di0zMy44Qzg0MS4xLDMwNC45LDYzMS40LDEzNy4yLDQwNC44LDIxMC44eiIvPgoJPHBhdGggY2xhc3M9InN0NSIgZD0iTTI2NSw3MTYuOGwtMTUuNCwxMTYuNmMtMC40LDIuOCwyLjUsNC45LDUsMy43TDM2OCw3ODUuN2MyLjYtMS4yLDIuOC00LjcsMC41LTYuMmwtOTcuOS02NS4yCgkJQzI2OC40LDcxMi44LDI2NS40LDcxNC4xLDI2NSw3MTYuOHoiLz4KCTxwYXRoIGNsYXNzPSJzdDUiIGQ9Ik02NjYuMyw1NjMuM2gtNzguNmMtMi41LDAtNC41LTItNC41LTQuNXYtNzguNmMwLTIuNSwyLTQuNSw0LjUtNC41aDc4LjZjMi41LDAsNC41LDIsNC41LDQuNXY3OC42CgkJQzY3MC45LDU2MS4yLDY2OC44LDU2My4zLDY2Ni4zLDU2My4zeiIvPgoJPHBhdGggY2xhc3M9InN0NSIgZD0iTTQ0NC4yLDU2My4zaC03Ni41Yy0zLjEsMC01LjUtMi41LTUuNS01LjV2LTc2LjVjMC0zLjEsMi41LTUuNSw1LjUtNS41aDc2LjVjMy4xLDAsNS41LDIuNSw1LjUsNS41djc2LjUKCQlDNDQ5LjcsNTYwLjgsNDQ3LjIsNTYzLjMsNDQ0LjIsNTYzLjN6Ii8+Cgk8cGF0aCBjbGFzcz0ic3Q1IiBkPSJNNTU1LjMsNTYzLjNoLTc3LjZjLTIuOCwwLTUtMi4zLTUtNXYtNzcuNmMwLTIuOCwyLjMtNSw1LTVoNzcuNmMyLjgsMCw1LDIuMyw1LDV2NzcuNgoJCUM1NjAuMyw1NjEsNTU4LDU2My4zLDU1NS4zLDU2My4zeiIvPgoJPHBhdGggY2xhc3M9InN0NSIgZD0iTTY4My45LDI1NC45Yy0xODMuOS0xMTMuMi00MzUuMi0zNi41LTQ5MS4zLDE5NWMtMjMuNyw5Ny44LDEuNSwyMDEuNCw2Ni45LDI3Ny45CgkJYzEyOS44LDE1MS44LDMzOSwxNTIuMyw0NjkuMSwzOS4xYzQuNS0zLjksMy45LTExLjItMS4yLTE0LjNsLTU5LjMtMzYuNWMtMy4xLTEuOS03LTEuNy05LjksMC41Yy03Ny43LDU3LTE4NS41LDY0LjgtMjcyLjUsMTEuMwoJCWMtMTE0LjgtNzAuNi0xNTAuNi0yMjEuMy04MC0zMzZjNjIuNS0xMDEuNiwxODcuNy0xNDEuNCwyOTUuMS0xMDAuMSIvPgo8L2c+Cjwvc3ZnPgo=",Et="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI4LjMuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDEwMDAgMTAwMDsiIAogIGhlaWdodD0iMjAiCiAgd2lkdGg9IjIwIgogIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiMzODQ4OUQ7fQoJLnN0MXtmaWxsOiMxRjFCNEY7fQoJLnN0MntmaWxsOiNGN0I5Mjg7fQoJLnN0M3tmaWxsOiMwMEI4N0E7fQoJLnN0NHtmaWxsOiNFMDI0NUU7fQoJLnN0NXtmaWxsOiNGRkZGRkY7fQoJLnN0NntmaWxsOiNGOEZFRkY7fQo8L3N0eWxlPgo8Zz4KCTxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0zODEuOSwxOTkuNmMtOTUuNywzMS4xLTE3MC44LDEwNi44LTIwMS43LDIwMi42Yy02MS4zLDE5MC4xLDQ3LjksMzY4LjUsMjEyLjUsNDIwYzUuNywxLjgsMTEuNi0yLjUsMTEuNi04LjUKCQlWNzQ0YzAtMy42LTIuMi02LjgtNS42LTguMmMtODkuMy0zNi4zLTE1Mi40LTEyNC4xLTE1Mi40LTIyNi4yYzAtMTM0LjcsMTA5LjYtMjQ0LjIsMjQ0LjItMjQ0LjJjMTE5LjMsMCwyMTguOCw4NS43LDIzOS45LDE5OC45CgkJYzAuMywxLjktMS4xLDMuNi0zLDMuNmgtMzcuNGMtOC44LDAtMTUuOSw3LjEtMTUuOSwxNS45VjUzMWMwLDExLjEsMy45LDIwLjYsMTUsMjAuNmw0NS42LTAuM2g0MS43di0wLjJoMzQuMQoJCWM0LjIsMCw3LjYtMy40LDcuNi03LjZ2LTMzLjhDODE4LjIsMjkzLjcsNjA4LjUsMTI2LDM4MS45LDE5OS42eiIvPgoJPHBhdGggY2xhc3M9InN0MSIgZD0iTTI0Mi4xLDcwNS42bC0xNS40LDExNi42Yy0wLjQsMi44LDIuNSw0LjksNSwzLjdMMzQ1LDc3NC41YzIuNi0xLjIsMi44LTQuNywwLjUtNi4yTDI0Ny42LDcwMwoJCUMyNDUuNCw3MDEuNiwyNDIuNCw3MDIuOSwyNDIuMSw3MDUuNnoiLz4KCTxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik02NDMuNCw1NTIuMWgtNzguNmMtMi41LDAtNC41LTItNC41LTQuNXYtNzguNmMwLTIuNSwyLTQuNSw0LjUtNC41aDc4LjZjMi41LDAsNC41LDIsNC41LDQuNXY3OC42CgkJQzY0Ny45LDU1MCw2NDUuOSw1NTIuMSw2NDMuNCw1NTIuMXoiLz4KCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik00MjEuMiw1NTIuMWgtNzYuNWMtMy4xLDAtNS41LTIuNS01LjUtNS41VjQ3MGMwLTMuMSwyLjUtNS41LDUuNS01LjVoNzYuNWMzLjEsMCw1LjUsMi41LDUuNSw1LjV2NzYuNQoJCUM0MjYuOCw1NDkuNiw0MjQuMyw1NTIuMSw0MjEuMiw1NTIuMXoiLz4KCTxwYXRoIGNsYXNzPSJzdDQiIGQ9Ik01MzIuMyw1NTIuMWgtNzcuNmMtMi44LDAtNS0yLjMtNS01di03Ny42YzAtMi44LDIuMy01LDUtNWg3Ny42YzIuOCwwLDUsMi4zLDUsNVY1NDcKCQlDNTM3LjQsNTQ5LjgsNTM1LjEsNTUyLjEsNTMyLjMsNTUyLjF6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QxIiBkPSJNNjYxLDI0My42Yy0xODMuOS0xMTMuMi00MzUuMi0zNi41LTQ5MS4zLDE5NWMtMjMuNyw5Ny44LDEuNSwyMDEuNCw2Ni45LDI3Ny45CgkJYzEyOS44LDE1MS44LDMzOSwxNTIuMyw0NjkuMSwzOS4xYzQuNS0zLjksMy45LTExLjItMS4yLTE0LjNsLTU5LjMtMzYuNWMtMy4xLTEuOS03LTEuNy05LjksMC41Yy03Ny43LDU3LTE4NS41LDY0LjgtMjcyLjUsMTEuMwoJCWMtMTE0LjgtNzAuNi0xNTAuNi0yMjEuMy04MC0zMzZDMzQ1LjIsMjc5LDQ3MC40LDIzOS4yLDU3Ny45LDI4MC41Ii8+CjwvZz4KPC9zdmc+Cg==";let _t=ee();ve(()=>(z(E()),z(N()),z(W()),z(C()),z(Y()),z(H()),z($e()),l(V),l(Q)),()=>{En(async()=>{Ei.publish("form:view",{feedbackConfigurationId:E()||"",feedbackIdentifier:N()||"",timestamp:Date.now()});const I=`${W()||"default"}_${N()||"default"}`;if(C()==="retain"){$(ie,!0);try{const j=await Gz(I);j&&j.length>0&&B(j)}catch(j){console.error("[App] Error loading saved data:",j)}finally{$(ie,!1)}}else if(C()==="reset")try{await Tb(I)}catch(j){console.error("[App] Error clearing saved data:",j)}xe(),window.updateEncatchForm=j=>{if(j.theme&&oe(j.theme),j.currentMode&&J(j.currentMode),j.currentLanguage&&(Y(j.currentLanguage),Y()?.value&&Ye(Y().value)),j.questions&&G(j.questions),j.questionLanguages&&F(j.questionLanguages),j.otherConfigurationProperties&&K(j.otherConfigurationProperties),j.welcomeScreenProperties&&H(j.welcomeScreenProperties),j.endScreenProperties){const be=$e()?.isEnabled,De=j.endScreenProperties.isEnabled;if(be&&!De){const Ke=l(V).findIndex(We=>We.id==="thankyou_screen");Ke===l(Q)&&$(Q,Math.max(0,Ke-1))}$e(j.endScreenProperties)}if(j.sections){const be=[...j.sections],De=j.welcomeScreenProperties?.isEnabled??H()?.isEnabled??!0,Ke=j.endScreenProperties?.isEnabled??$e()?.isEnabled??!0;De&&!be.some(We=>We.id==="welcome_screen")&&be.unshift({id:"welcome_screen",title:"Welcome",questionIds:[]}),Ke&&!be.some(We=>We.id==="thankyou_screen")&&be.push({id:"thankyou_screen",title:"Thank You",questionIds:[]}),$(V,be),De&&l(Q)===0&&$(Q,0)}j.translations&&(Ie(j.translations),Y()?.value&&Ye(Y().value)),j.themeSettings&&fe(j.themeSettings),j.onClose&&Se(j.onClose)}})}),ve(()=>(z(fe()),z(J())),()=>{if(fe()&&fe().themes&&J()&&fe().themes[J()]){const I=document.documentElement,j=fe().themes[J()];j&&(I.style.setProperty("--brand-color",j.brandColor||"#2563eb"),I.style.setProperty("--text-color",j.textColor||"#333"),I.style.setProperty("--background-color",j.backgroundColor||"#ffffff"))}}),ve(()=>z(J()),()=>{$(m,J()==="dark"?Vt:Et)}),ve(()=>(z(Y()),z(H()),z($e()),z(K())),()=>{if(Y()&&Y().value){const I=Y().value;Ye(I),H()?.translations?.[I]&&H({...H(),welcomeFields:{...H().welcomeFields,...H().translations[I]}}),$e()?.translations?.[I]&&$e({...$e(),endFields:{...$e().endFields,...$e().translations[I]}}),K()?.translations?.[I]&&K({...K(),otherFields:{...K().otherFields,...K().translations[I]}})}}),ve(()=>(z(ke()),z(H()),z($e()),l(Q),l(le),l(Ce)),()=>{const I=[...ke()];let j=!1;const be=I.some(vt=>vt.id==="welcome_screen"),De=I.some(vt=>vt.id==="thankyou_screen"),Ke=H()?.isEnabled??!0,We=$e()?.isEnabled??!0;if(Ke&&!be)I.unshift({id:"welcome_screen",title:"Welcome",questionIds:[]}),j=!0;else if(!Ke&&be){const vt=I.filter(Wt=>Wt.id!=="welcome_screen");vt.length!==I.length&&($(V,vt),j=!0)}if(We&&!De)I.push({id:"thankyou_screen",title:"Thank You",questionIds:[]}),j=!0;else if(!We&&De){const vt=I.filter(Wt=>Wt.id!=="thankyou_screen");if(vt.length!==I.length){const Wt=I.findIndex(ur=>ur.id==="thankyou_screen");(l(Q)===Wt||l(Q)>=vt.length)&&$(Q,Math.max(0,vt.length-1)),$(V,vt),j=!0}}j&&($(V,I),l(le)||(!l(Ce)&&!(!We&&De)&&$(Q,0),$(le,!0)))}),ve(()=>(z($e()),l(Q),l(V)),()=>{$(p,$e()?.isEnabled&&l(Q)===l(V).length-1)}),ve(()=>l(V),()=>{$(g,l(V).filter(I=>I.id!=="welcome_screen"&&I.id!=="thankyou_screen").length===1)}),ve(()=>(l(Q),l(V)),()=>{$(h,l(Q)===0&&l(V)[0]?.id==="welcome_screen")}),ve(()=>(l(V),l(Q)),()=>{$(b,l(V)[l(Q)]?.id==="thankyou_screen")}),ve(()=>l(Q),()=>{$(y,l(Q)===0)}),ve(()=>(l(V),l(Q)),()=>{$(k,l(V)[0]?.id==="welcome_screen"&&l(Q)===1)}),ve(()=>(l(V),l(Q)),()=>{$(v,(()=>{const I=l(V).findIndex(j=>j.id==="thankyou_screen");return I!==-1?l(Q)===I-1:l(Q)===l(V).length-1})())}),ve(()=>(l(V),l(Q),l(h),l(b),u(),z(G())),()=>{$(x,(()=>{const I=l(V)[l(Q)];if(!I||l(h)||l(b))return!1;const j=I.questionIds||[],be=u().questions.reduce((De,Ke)=>(De[Ke.questionId]=Ke,De),{});for(const De of j){const Ke=G()[De],We=!!be[De];if(Ke?.required&&!We)return!0}return!1})())}),ve(()=>(l(Q),l(V)),()=>{l(Q)>=0&&l(Q)<l(V).length}),ve(()=>(u(),s.QuestionTypes),()=>{$(S,u().questions.reduce((I,j)=>{if(j.answer)switch(j.type){case s.QuestionTypes.RATING:I[j.questionId]=j.answer.rating;break;case s.QuestionTypes.NPS:I[j.questionId]=j.answer.nps;break;case s.QuestionTypes.LONG_TEXT:I[j.questionId]=j.answer.longText;break;case s.QuestionTypes.SHORT_ANSWER:I[j.questionId]=j.answer.shortAnswer;break;case s.QuestionTypes.SINGLE_CHOICE:I[j.questionId]=j.answer.singleChoice;break;case s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE:I[j.questionId]=[...j.answer.multipleChoiceMultiple||[]];break;case s.QuestionTypes.NESTED_SELECTION:I[j.questionId]=[...j.answer.nestedSelection||[]];break;default:I[j.questionId]=j.answer}else I[j.questionId]=null;return I},{}))}),ve(()=>u(),()=>{u();const I=it();$(Z,I)}),ve(()=>(z(C()),z(W()),z(N()),l(ie),l(_t),u()),()=>{if(C()==="retain"&&W()&&N()&&!l(ie)){const I=`${W()}_${N()}`;l(_t)&&clearTimeout(l(_t)),$(_t,setTimeout(()=>{Qz(I,u().questions).then(()=>{}).catch(j=>{console.error("[App] Error auto-saving to IndexedDB:",j)})},500))}}),ve(()=>z(G()),()=>{G()&&xe()}),fr(),er();var yt=Hz(),Ir=R(yt);{var Mr=I=>{var j=Jz();T(I,j)},vn=I=>{var j=Kz(),be=Te(j);{var De=or=>{var ar=Bz(),Jr=R(ar);Fz(Jr,{get value(){return l(Z)},max:100,class:"h-full w-full rounded-none bg-muted/40 [&_[data-slot=progress-indicator]]:bg-primary [&_[data-slot=progress-indicator]]:transition-all [&_[data-slot=progress-indicator]]:duration-300 [&_[data-slot=progress-indicator]]:ease-in-out"}),L(ar),T(or,ar)};ae(be,or=>{z(fe()),l(h),l(b),M(()=>fe()?.featureSettings?.progressBar&&!l(h)&&!l(b))&&or(De)})}var Ke=de(be,2),We=R(Ke);{let or=Ae(()=>(z(Y()),M(()=>Y()?.value||"en"))),ar=Ae(()=>(z(fe()),M(()=>fe()?.themes||null))),Jr=Ae(()=>l(p)===!0);Pz(We,{get questions(){return G()},get sections(){return l(V)},get formData(){return l(S)},get errors(){return l(_e)},onChange:ht,get currentMode(){return J()},get currentSectionIndex(){return l(Q)},get otherConfigurationProperties(){return K()},get welcomeScreenProperties(){return H()},get endScreenProperties(){return $e()},get currentLanguage(){return l(or)},get themeSettings(){return l(ar)},onClose:qt,get isScreenVisible(){return l(Jr)},get apiKey(){return ne()},get feedbackConfigurationId(){return W()},get hostUrl(){return re()},get identifier(){return N()}})}L(Ke);var vt=de(Ke,2);{let or=Ae(()=>(z(Y()),M(()=>Y()?.value||"en"))),ar=Ae(()=>(z(fe()),M(()=>fe()?.themes||null)));Zz(vt,{get isWelcomeScreen(){return l(h)},get isThankYouScreen(){return l(b)},get isFirstSection(){return l(y)},get isFirstPageAfterWelcome(){return l(k)},get isLastSection(){return l(v)},get welcomeScreenProperties(){return H()},get endScreenProperties(){return $e()},get otherConfigurationProperties(){return K()},get currentMode(){return J()},get currentLanguage(){return l(or)},handlePrevious:Ue,handleNext:Pt,handleSubmit:Ct,onClose:qt,get themeSettings(){return l(ar)},get nextButtonDisabled(){return l(x)},get submitButtonDisabled(){return l(x)},get isSinglePageSurvey(){return l(g)}})}var Wt=de(vt,2);{var ur=or=>{var ar=Yz(),Jr=R(ar);_r(2),L(ar),je(()=>si(Jr,"src",l(m))),T(or,ar)};ae(Wt,or=>{z(fe()),M(()=>fe()?.featureSettings?.showBranding)&&or(ur)})}T(I,j)};ae(Ir,I=>{l(ie)?I(Mr):I(vn,!1)})}L(yt),je(()=>fn(yt,1,`encatch-form ${J()==="dark"?"theme-dark dark":"theme-light"}`)),T(i,yt),Be(),d()}var Xz=te('<div class="fixed inset-0 transition-opacity duration-300"></div>'),e4=te('<!> <div id="encatch-feedback-popup" class="rounded-xl shadow-2xl overflow-hidden"><!> <!></div>',1),t4=te('<link rel="stylesheet" href="http://127.0.0.1:5500/encatch-typescript/packages/web-sdk/public/web-form-engine-core.css"/> <!>',1);function Ob(i,n){Je(n,!1);const u=ee(),c=ee(),d=Qv();let m=w(n,"themeMode",8,"light"),p=w(n,"feedbackConfiguration",8,null),g=w(n,"apiKey",8,""),h=w(n,"hostUrl",8,"");w(n,"deviceInfo",8,null),w(n,"sessionId",8,""),w(n,"userInfo",8,null);let b=w(n,"language",8,"en"),y=w(n,"configurationData",8,null),k=w(n,"onClose",8,void 0),v=w(n,"trackPopupHeight",8,void 0),x=w(n,"feedbackConfigId",8,void 0),S=w(n,"identifier",8,void 0),O=ee(document.documentElement.clientWidth),U=ee(!1),B=ee(null),oe=ee(),J;const Y=()=>{if(l(oe)){const fe=l(oe).querySelector("#section-container");if(fe){const Se=window.innerHeight*.75,me=fe.clientHeight,ne=84,re=60,W=Math.min(me+ne+re,Se);l(oe).style.transition.includes("height")||Rh(oe,l(oe).style.transition="height 0.5s cubic-bezier(0.4, 0, 0.2, 1)"),Rh(oe,l(oe).style.height=`${W}px`),fe.style.overflowY=me+ne+re>Se?"auto":"hidden"}}},G=()=>{$(O,document.documentElement.clientWidth)},F=()=>{d.clearResponses(),$(U,!1),setTimeout(()=>{k()?.()},300)},K=fe=>{const Se={position:"fixed",width:l(u),"max-width":l(u),height:"30%",transition:"transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease","transform-origin":"center center","will-change":"transform, opacity"};switch(fe){case"top-left":return{...Se,top:"12px",left:"12px",transform:"translate(0, 0)"};case"top-center":return{...Se,top:"12px",left:"50%",transform:"translate(-50%, 0)"};case"top-right":return{...Se,top:"12px",right:"12px",transform:"translate(0, 0)"};case"center-left":return{...Se,top:"50%",left:"12px",transform:"translateY(-50%)"};case"center":return{...Se,top:"50%",left:"50%",transform:"translate(-50%, -50%) scale(1)"};case"center-right":return{...Se,top:"50%",right:"12px",transform:"translateY(-50%)"};case"bottom-left":return{...Se,bottom:"12px",left:"12px",transform:"translate(0, 0)"};case"bottom-center":return{...Se,bottom:"12px",left:"50%",transform:"translate(-50%, 0)"};case"bottom-right":return{...Se,bottom:"12px",right:"12px",transform:"translate(0, 0)"};case"bottom-full":return{...Se,bottom:"0",left:"50%",width:"100%","max-width":"100%",transform:"translate(-50%, 0)"};case"top-full":return{...Se,top:"0",left:"50%",width:"100%","max-width":"100%",transform:"translate(-50%, 0)"};case"full":return{...Se,top:"0",left:"0",width:"100%","max-width":"100%",height:"100%",transform:"translate(0, 0)"};default:return Se}},H=fe=>Object.entries(fe).map(([Se,me])=>`${Se}: ${me}`).join("; ");En(()=>{window.addEventListener("resize",G),setTimeout(()=>{$(U,!0)},100),J=window.setInterval(Y,5e3),v()&&v()(Y),requestAnimationFrame(()=>{setTimeout(()=>Y(),0)})}),bo(()=>{window.removeEventListener("resize",G),J&&window.clearInterval(J)}),ve(()=>l(O),()=>{$(u,l(O)<=768?"95%":"600px")}),ve(()=>z(y()),()=>{$(B,y())}),ve(()=>l(B),()=>{l(B)?.feedbackIdentifier}),ve(()=>z(p()),()=>{$(c,p()&&p().appearanceProperties&&p().appearanceProperties.selectedPosition?K(p().appearanceProperties.selectedPosition):{})}),fr(),er();var $e=t4(),Ie=de(Te($e),2);{var ke=fe=>{var Se=e4(),me=Te(Se);{var ne=Z=>{var ie=Xz();je(()=>$o(ie,`background-color: ${z(p()),z(m()),M(()=>p().appearanceProperties.themes[m()].overlayColor)??""}; z-index: 1000; opacity: ${l(U)?"0.4":"0"};`)),T(Z,ie)};ae(me,Z=>{z(p()),M(()=>p()?.appearanceProperties?.featureSettings?.darkOverlay)&&Z(ne)})}var re=de(me,2),W=R(re);{var N=Z=>{Ft(Z,{variant:"ghost",size:"icon",class:"absolute top-3 right-3 z-10 h-8 w-8 rounded border-none bg-background text-primary hover:bg-accent hover:text-accent-foreground transition-all duration-200 active:scale-95",onclick:F,"aria-label":"Close popup",children:(ie,Q)=>{qv(ie,{size:20,stroke:2})},$$slots:{default:!0}})};ae(W,Z=>{z(p()),M(()=>p()?.appearanceProperties?.featureSettings?.closeButton)&&Z(N)})}var C=de(W,2);{var E=Z=>{{let ie=Ae(()=>({value:b(),label:b()})),Q=Ae(()=>(l(B),M(()=>l(B)?.questionnaireFields.questions||{}))),Ce=Ae(()=>(l(B),M(()=>l(B)?.questionnaireFields.selectedLanguages||[]))),_e=Ae(()=>(l(B),M(()=>l(B)?.questionnaireFields.translations||{}))),V=Ae(()=>(l(B),M(()=>l(B)?.otherConfigurationProperties))),le=Ae(()=>(l(B),M(()=>l(B)?.welcomeScreenProperties))),Ne=Ae(()=>(l(B),M(()=>l(B)?.endScreenProperties))),xe=Ae(()=>(l(B),M(()=>l(B)?.questionnaireFields.sections||[])));ol(Z,{get theme(){return z(p()),M(()=>p().appearanceProperties.themes)},get themeSettings(){return z(p()),M(()=>p().appearanceProperties)},get currentMode(){return m()},get currentLanguage(){return l(ie)},get questions(){return l(Q)},get questionLanguages(){return l(Ce)},get translations(){return l(_e)},get otherConfigurationProperties(){return l(V)},get welcomeScreenProperties(){return l(le)},get endScreenProperties(){return l(Ne)},get sections(){return l(xe)},onSectionChange:()=>{requestAnimationFrame(()=>{setTimeout(()=>Y(),0)})},onClose:F,get apiKey(){return g()},get hostUrl(){return h()},get feedbackConfigId(){return x()},get identifier(){return S()}})}};ae(C,Z=>{z(p()),l(B),M(()=>p()?.appearanceProperties&&l(B))&&Z(E)})}L(re),Ur(re,Z=>$(oe,Z),()=>l(oe)),je(Z=>$o(re,`${Z??""}; background-color: ${z(p()),z(m()),M(()=>p()?.appearanceProperties?.themes?.[m()]?.overlayColor||"transparent")??""}; z-index: 1001;`),[()=>(l(c),M(()=>H(l(c))))]),T(fe,Se)};ae(Ie,fe=>{fe(ke)})}T(i,$e),Be()}function Eb(i,n){Je(n,!1);let u=w(n,"themeMode",12,"light"),c=w(n,"feedbackConfiguration",12,null),d=w(n,"apiKey",12,""),m=w(n,"hostUrl",12,""),p=w(n,"deviceInfo",12,null),g=w(n,"sessionId",12,""),h=w(n,"userInfo",12,null),b=w(n,"language",12,"en"),y=w(n,"configurationData",12,null),k=w(n,"onClose",12,void 0),v=w(n,"trackPopupHeight",12,void 0),x=w(n,"feedbackConfigId",12,void 0),S=w(n,"identifier",12,void 0);var O={get themeMode(){return u()},set themeMode(U){u(U),at()},get feedbackConfiguration(){return c()},set feedbackConfiguration(U){c(U),at()},get apiKey(){return d()},set apiKey(U){d(U),at()},get hostUrl(){return m()},set hostUrl(U){m(U),at()},get deviceInfo(){return p()},set deviceInfo(U){p(U),at()},get sessionId(){return g()},set sessionId(U){g(U),at()},get userInfo(){return h()},set userInfo(U){h(U),at()},get language(){return b()},set language(U){b(U),at()},get configurationData(){return y()},set configurationData(U){y(U),at()},get onClose(){return k()},set onClose(U){k(U),at()},get trackPopupHeight(){return v()},set trackPopupHeight(U){v(U),at()},get feedbackConfigId(){return x()},set feedbackConfigId(U){x(U),at()},get identifier(){return S()},set identifier(U){S(U),at()}};return Ob(i,{get themeMode(){return u()},get feedbackConfiguration(){return c()},get apiKey(){return d()},get hostUrl(){return m()},get deviceInfo(){return p()},get sessionId(){return g()},get userInfo(){return h()},get language(){return b()},get configurationData(){return y()},get onClose(){return k()},get trackPopupHeight(){return v()},get feedbackConfigId(){return x()},get identifier(){return S()}}),Be(O)}customElements.define("encatch-form",Lv(Eb,{themeMode:{},feedbackConfiguration:{},apiKey:{},hostUrl:{},deviceInfo:{},sessionId:{},userInfo:{},language:{},configurationData:{},onClose:{},trackPopupHeight:{},feedbackConfigId:{},identifier:{}},[],[],!0));var r4=te('<div class="encatch-scale-wrapper"><!></div>');function Pb(i,n){Je(n,!1);const u=Qv();let c=w(n,"theme",28,()=>({dark:{brandColor:"#000",overlayColor:"#000",textColor:"#fff",backgroundColor:"#000"},light:{brandColor:"#fff",overlayColor:"#fff",textColor:"#000",backgroundColor:"#fff"}})),d=w(n,"currentMode",12,"light"),m=w(n,"currentLanguage",28,()=>({value:"en",label:"en",isFixed:!0})),p=w(n,"questions",28,()=>({})),g=w(n,"questionLanguages",28,()=>[]),h=w(n,"otherConfigurationProperties",12,null),b=w(n,"welcomeScreenProperties",12,null),y=w(n,"endScreenProperties",12,null),k=w(n,"translations",28,()=>({})),v=w(n,"sections",28,()=>[]),x=w(n,"themeSettings",12,null),S=w(n,"onClose",12,void 0),O=w(n,"onSectionChange",12,void 0),U=w(n,"apiKey",12,void 0),B=w(n,"hostUrl",12,void 0),oe=w(n,"feedbackConfigId",12,void 0),J=w(n,"identifier",12,void 0),Y=w(n,"cssLink",12,void 0),G=w(n,"scale",12,100),F=w(n,"persistMode",12,"none"),K=w(n,"instanceId",12,void 0),H=ee(!1),$e=ee(!1),Ie=ee();const ke=N=>{if(!N)return null;let C=N;for(;C;){if(C instanceof ShadowRoot)return C;C=C.parentNode}return null},fe=N=>{const C=new CSSStyleSheet,E=N/100;return C.replaceSync(`
278
+ */let u=Lt(n,["$$slots","$$events","$$legacy"]);const c=[["path",{d:"M5 12h14"}]];Fa(i,Tt({name:"minus"},()=>u,{get iconNode(){return c},children:(d,m)=>{var p=Ze(),g=Te(p);Rt(g,()=>n.children??gt),O(d,p)},$$slots:{default:!0}})),Be()}var K1=re('<div data-slot="checkbox-indicator" class="text-current transition-none"><!></div>');function H1(i,n){Je(n,!0);let u=w(n,"ref",15,null),c=w(n,"checked",15,!1),d=w(n,"indeterminate",15,!1),m=Lt(n,["$$slots","$$events","$$legacy","ref","checked","indeterminate","class"]);var p=Ze(),g=Te(p);{const h=(y,k)=>{let v=()=>k?.().checked,x=()=>k?.().indeterminate;var S=K1(),E=Z(S);{var C=oe=>{B1(oe,{class:"size-3.5"})},Y=oe=>{var J=Ze(),B=Te(J);{var G=R=>{Y1(R,{class:"size-3.5"})};ae(B,R=>{x()&&R(G)},!0)}O(oe,J)};ae(E,oe=>{v()?oe(C):oe(Y,!1)})}A(S),O(y,S)};let b=lt(()=>Sr("border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive shadow-xs peer flex size-4 shrink-0 items-center justify-center rounded-[4px] border outline-none transition-shadow focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",n.class));Pa(g,()=>m1,(y,k)=>{k(y,Tt({"data-slot":"checkbox",get class(){return l(b)}},()=>m,{get ref(){return u()},set ref(v){u(v)},get checked(){return c()},set checked(v){c(v)},get indeterminate(){return d()},set indeterminate(v){d(v)},children:h,$$slots:{default:!0}}))})}O(i,p),Be()}var X1=re('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),ez=re('<span class="text-destructive ml-1">*</span>'),tz=re('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),rz=re('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><span class="font-medium"> </span></div>'),nz=re('<div class="flex items-center gap-2 text-sm text-amber-600 bg-amber-50 dark:bg-amber-950/30 dark:text-amber-500 px-3 py-2 rounded-md border border-amber-200 dark:border-amber-900"><span class="font-medium"> </span></div>'),iz=re('<div class="flex items-center space-x-3"><!> <label> </label></div>'),oz=re('<div class="flex flex-col gap-3"></div>'),az=(i,n,u)=>n(l(u).value),sz=re('<button type="button"> </button>'),uz=re('<div class="flex flex-wrap gap-2"></div>'),cz=Tn('<svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M5 13l4 4L19 7"></path></svg>'),lz=re('<span class="flex-1"> </span> <!>',1),dz=re('<div class="flex flex-col gap-2 w-full"></div>'),fz=re('<div class="w-full space-y-4"><div class="flex text-left items-start gap-3"><!> <div class="flex-1 space-y-1.5"><label class="text-lg font-semibold text-foreground leading-tight"> <!></label> <!></div></div> <!> <!> <!></div>');function mz(i,n){Je(n,!1);const u=te(),{updateQuestionResponse:c,setQuestionError:d}=pn();let m=w(n,"question",8),p=w(n,"value",24,()=>[]),g=w(n,"onChange",8),h=w(n,"error",8,void 0),b=w(n,"currentMode",8,void 0),y=w(n,"questionNumber",8,void 0);w(n,"themeSettings",8,void 0),w(n,"currentLanguage",8,void 0);let k=te(p()||[]),v=te(h()),x=te(void 0),S=!1,E=te(!1);En(()=>{setTimeout(()=>{const j=C(l(k));$(v,j),j&&d(m().id,j),S=!0},0)});function C(j){if(m().required&&(!j||j.length===0))return m().errorMessage;const D=m().maxSelections;if(D!==void 0&&j.length>D)return m().errorMessage;const ne=m().minSelections;if(ne!==void 0&&j.length>0&&j.length<ne)return m().errorMessage}function Y(j){if(!S)return;$(E,!0);const D=[...l(k)];if(D.includes(j)){const ne=D.filter(Ce=>Ce!==j);$(k,ne),g()(ne),$(x,void 0);const V=C(ne);$(v,V),c(m().id,ne,s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE,V)}else{const ne=m().maxSelections;if(ne!==void 0&&D.length>=ne){const V=m().errorMessage;$(x,V),c(m().id,D,s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE,void 0)}else{const V=[...D,j];$(k,V),g()(V),$(x,void 0);const Ce=C(V);$(v,Ce),c(m().id,V,s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE,Ce)}}}ve(()=>N(b()),()=>{$(u,b()==="dark")}),ve(()=>(N(p()),l(E)),()=>{p()!==void 0&&!l(E)&&$(k,p())}),ve(()=>N(h()),()=>{h()!==void 0&&$(v,h())}),fr(),er();var oe=fz(),J=Z(oe),B=Z(J);{var G=j=>{var D=X1(),ne=Z(D);A(D),je(()=>Oe(ne,`${y()??""}.`)),O(j,D)};ae(B,j=>{y()!==void 0&&j(G)})}var R=fe(B,2),H=Z(R),K=Z(H),$e=fe(K);{var Ie=j=>{var D=ez();O(j,D)};ae($e,j=>{N(m()),U(()=>m().required)&&j(Ie)})}A(H);var ke=fe(H,2);{var me=j=>{var D=tz(),ne=Z(D,!0);A(D),je(()=>Oe(ne,(N(m()),U(()=>m().description)))),O(j,D)};ae(ke,j=>{N(m()),U(()=>m().description)&&j(me)})}A(R),A(J);var Se=fe(J,2);{var le=j=>{var D=rz(),ne=Z(D),V=Z(ne,!0);A(ne),A(D),je(()=>Oe(V,l(v))),O(j,D)};ae(Se,j=>{l(v)&&j(le)})}var ie=fe(Se,2);{var ee=j=>{var D=nz(),ne=Z(D),V=Z(ne,!0);A(ne),A(D),je(()=>Oe(V,l(x))),O(j,D)};ae(ie,j=>{l(x)&&j(ee)})}var W=fe(ie,2);{var F=j=>{var D=oz();gr(D,5,()=>(N(m()),U(()=>m().options)),xr,(ne,V)=>{const Ce=Le(()=>(l(k),l(V),U(()=>l(k).includes(l(V).value)))),_e=Le(()=>(N(m()),l(k),N(l(Ce)),U(()=>m().maxSelections!==void 0&&l(k).length>=m().maxSelections&&!l(Ce))));var Q=iz(),de=Z(Q);{let Re=Le(()=>(N(m()),l(V),U(()=>`${m().id}-${l(V).value}`))),Ye=Le(()=>(l(k),l(V),U(()=>l(k).includes(l(V).value))));H1(de,{get id(){return l(Re)},get checked(){return l(Ye)},onCheckedChange:()=>Y(l(V).value),get disabled(){return l(_e)},class:"h-5 w-5 rounded border-2 cursor-pointer transition-all data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=unchecked]:border-input data-[state=unchecked]:bg-background data-[state=checked]:text-primary-foreground disabled:opacity-50 disabled:cursor-not-allowed"})}var Ne=fe(de,2),xe=Z(Ne,!0);A(Ne),A(Q),je(()=>{si(Ne,"for",(N(m()),l(V),U(()=>`${m().id}-${l(V).value}`))),fn(Ne,1,`text-sm font-medium cursor-pointer text-foreground hover:text-primary transition-colors select-none ${l(_e)?"opacity-50 cursor-not-allowed":""}`),Oe(xe,(l(V),U(()=>l(V).label)))}),O(ne,Q)}),A(D),O(j,D)},I=j=>{var D=Ze(),ne=Te(D);{var V=_e=>{var Q=uz();gr(Q,5,()=>(N(m()),U(()=>m().options)),xr,(de,Ne)=>{const xe=Le(()=>(l(k),l(Ne),U(()=>l(k).includes(l(Ne).value)))),Re=Le(()=>(N(m()),l(k),N(l(xe)),U(()=>m().maxSelections!==void 0&&l(k).length>=m().maxSelections&&!l(xe))));var Ye=sz();Ye.__click=[az,Y,Ne];var ut=Z(Ye,!0);A(Ye),je(()=>{Ye.disabled=l(Re),fn(Ye,1,`rounded-full px-4 py-2 text-sm font-medium transition-all border-2 ${l(xe)?"bg-primary text-primary-foreground border-primary hover:bg-primary/90 shadow-md dark:shadow-primary/20":"bg-card text-card-foreground border-border hover:bg-accent hover:text-accent-foreground hover:border-primary/50"} ${l(Re)?"opacity-50 cursor-not-allowed":"hover:scale-105 cursor-pointer"}`),Oe(ut,(l(Ne),U(()=>l(Ne).label)))}),O(de,Ye)}),A(Q),O(_e,Q)},Ce=_e=>{var Q=Ze(),de=Te(Q);{var Ne=xe=>{var Re=dz();gr(Re,5,()=>(N(m()),U(()=>m().options)),xr,(Ye,ut)=>{const Fe=Le(()=>(l(k),l(ut),U(()=>l(k).includes(l(ut).value)))),it=Le(()=>(N(m()),l(k),N(l(Fe)),U(()=>m().maxSelections!==void 0&&l(k).length>=m().maxSelections&&!l(Fe))));{let ht=Le(()=>`justify-start text-left px-4 py-3.5 text-sm font-medium transition-all rounded-lg relative ${l(Fe)?"bg-primary text-primary-foreground border-primary shadow-md hover:shadow-lg hover:bg-primary/90 hover:text-primary-foreground dark:border-primary/90 dark:bg-primary dark:hover:bg-primary":"bg-card text-card-foreground border-border hover:border-primary/50 hover:bg-accent/50 dark:hover:bg-primary/20 dark:hover:text-card-foreground"} ${l(it)?"opacity-50 cursor-not-allowed":""}`);qt(Ye,{type:"button",variant:"outline",get disabled(){return l(it)},get class(){return l(ht)},onclick:()=>Y(l(ut).value),onkeydown:Ue=>Ue.key==="Enter"&&Y(l(ut).value),children:(Ue,Pt)=>{var Ct=lz(),Ft=Te(Ct),Gt=Z(Ft,!0);A(Ft);var Et=fe(Ft,2);{var _t=yt=>{var Ir=cz();O(yt,Ir)};ae(Et,yt=>{l(Fe)&&yt(_t)})}je(()=>Oe(Gt,(l(ut),U(()=>l(ut).label)))),O(Ue,Ct)},$$slots:{default:!0}})}}),A(Re),O(xe,Re)};ae(de,xe=>{N(m()),U(()=>m().displayStyle==="list")&&xe(Ne)},!0)}O(_e,Q)};ae(ne,_e=>{N(m()),U(()=>m().displayStyle==="chip")?_e(V):_e(Ce,!1)},!0)}O(j,D)};ae(W,j=>{N(m()),U(()=>m().displayStyle==="checkbox"||!m().displayStyle)?j(F):j(I,!1)})}A(oe),je(()=>Oe(K,`${N(m()),U(()=>m().title)??""} `)),O(i,oe),Be()}kc(["click"]);function pz(i,n,u,c,d,m,p,g,h){l(n)||$(n,!0),$(u,!1),$(c,void 0),d()(void 0);const b=m(void 0);$(p,b),g(h().id,void 0,s.QuestionTypes.ANNOTATION,b)}var gz=re('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),hz=re('<span class="text-destructive ml-1">*</span>'),vz=re('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),bz=re('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> <span class="font-medium"> </span></div>'),yz=re('<div class="group relative border-2 border-dashed border-border hover:border-primary/50 rounded-xl bg-muted/30 hover:bg-muted/50 transition-all cursor-pointer overflow-hidden"><div class="flex items-center justify-center gap-3 px-6 py-8"><div class="w-12 h-12 rounded-full bg-background shadow-sm flex items-center justify-center group-hover:scale-110 transition-transform"><!></div> <div class="flex flex-col"><span class="text-sm font-semibold text-foreground"> </span> <span class="text-xs text-muted-foreground">Click to add annotation</span></div></div></div>'),$z=re('<div class="relative border-2 border-primary/20 rounded-xl bg-primary/5 overflow-hidden shadow-sm hover:shadow-md transition-all"><div class="flex items-center justify-between gap-3 px-6 py-4"><div class="flex items-center gap-3 flex-1 min-w-0"><div class="w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center flex-shrink-0"><!></div> <div class="flex flex-col flex-1 min-w-0"><span class="text-sm font-semibold text-foreground truncate"> </span> <span class="text-xs text-muted-foreground">Annotation added</span></div></div> <button class="w-8 h-8 rounded-full bg-destructive/10 hover:bg-destructive/20 text-destructive flex items-center justify-center transition-colors flex-shrink-0" type="button" aria-label="Remove annotation"><!></button></div></div>'),wz=re('<div class="w-full space-y-4"><div class="flex text-left items-start gap-3"><!> <div class="flex-1 space-y-1.5"><div class="text-lg font-semibold text-foreground leading-tight"> <!></div> <!></div></div> <!> <div class="w-full"><!> <!></div></div>');function _z(i,n){Je(n,!1);const u=te(),{updateQuestionResponse:c,setQuestionError:d,formResponses:m}=pn();let p=w(n,"question",8),g=w(n,"value",8,void 0),h=w(n,"onChange",8),b=w(n,"error",8,void 0),y=w(n,"currentMode",8,void 0),k=w(n,"questionNumber",8,void 0);w(n,"themeSettings",8,void 0),w(n,"currentLanguage",8,void 0);let v=te(!1),x=te(void 0),S=te(b()),E=te(!1);En(()=>{const I=ko(m).questions.find(j=>j.questionId===p().id);if(I?.answer&&"annotation"in I.answer){const j=I.answer.annotation;$(x,j),$(v,!0),typeof j=="object"&&j!==null&&h()(j)}setTimeout(()=>{const j=l(x),D=C(j);$(S,D),D&&d(p().id,D)},0)});function C(I){let j="";if(typeof I=="string"?j=I:I&&typeof I=="object"&&(j="has_annotation_data"),p().required&&(!j||j.trim()===""))return p().errorMessage??"This field is required"}ve(()=>N(y()),()=>{$(u,y()==="dark")}),ve(()=>(N(g()),N(h())),()=>{if(g()!==void 0){if(typeof g()=="string"){const I=g().trim()!=="";$(v,I),$(x,g())}else if(typeof g()=="object"&&g()!==null&&"annotation"in g()){const I=g().annotation;$(v,!0),$(x,I),h()(I)}}else $(x,void 0),$(v,!1)}),ve(()=>N(b()),()=>{b()!==void 0&&$(S,b())}),fr(),er();var Y=wz(),oe=Z(Y),J=Z(oe);{var B=I=>{var j=gz(),D=Z(j);A(j),je(()=>Oe(D,`${k()??""}.`)),O(I,j)};ae(J,I=>{k()!==void 0&&I(B)})}var G=fe(J,2),R=Z(G),H=Z(R),K=fe(H);{var $e=I=>{var j=hz();O(I,j)};ae(K,I=>{N(p()),U(()=>p().required)&&I($e)})}A(R);var Ie=fe(R,2);{var ke=I=>{var j=vz(),D=Z(j,!0);A(j),je(()=>Oe(D,(N(p()),U(()=>p().description)))),O(I,j)};ae(Ie,I=>{N(p()),U(()=>p().description)&&I(ke)})}A(G),A(oe);var me=fe(oe,2);{var Se=I=>{var j=bz(),D=fe(Z(j),2),ne=Z(D,!0);A(D),A(j),je(()=>Oe(ne,l(S))),O(I,j)};ae(me,I=>{l(S)&&l(E)&&I(Se)})}var le=fe(me,2),ie=Z(le);{var ee=I=>{var j=yz(),D=Z(j),ne=Z(D),V=Z(ne);qv(V,{size:24,class:"text-muted-foreground group-hover:text-primary transition-colors"}),A(ne);var Ce=fe(ne,2),_e=Z(Ce),Q=Z(_e,!0);A(_e),_r(2),A(Ce),A(D),A(j),je(()=>Oe(Q,(N(p()),U(()=>p().noAnnotationText??"No Annotation")))),O(I,j)};ae(ie,I=>{l(v)||I(ee)})}var W=fe(ie,2);{var F=I=>{var j=$z(),D=Z(j),ne=Z(D),V=Z(ne),Ce=Z(V);qv(Ce,{size:20,class:"text-primary"}),A(V);var _e=fe(V,2),Q=Z(_e),de=Z(Q,!0);A(Q),_r(2),A(_e),A(ne);var Ne=fe(ne,2);Ne.__click=[pz,E,v,x,h,C,S,c,p];var xe=Z(Ne);Wv(xe,{size:16}),A(Ne),A(D),A(j),je(()=>Oe(de,(N(p()),U(()=>p().annotationText??"Annotation")))),O(I,j)};ae(W,I=>{l(v)&&I(F)})}A(le),A(Y),je(()=>Oe(H,`${N(p()),U(()=>p().title)??""} `)),O(i,Y),Be()}kc(["click"]);var kz=re('<p class="text-primary text-[1rem] leading-[1.5rem]"> </p>'),xz=re('<div class="flex flex-col items-center text-center mb-0 w-full mt-[8px]"><h2 class="text-primary font-[600] text-[1.5rem] mb-[1rem]"> </h2> <!></div>');function Sz(i,n){Je(n,!1);const u=te(),c=te();let d=w(n,"welcomeScreenProperties",8,null);w(n,"onStart",8,void 0);let m=w(n,"currentMode",8,void 0),p=w(n,"currentLanguage",8,void 0);w(n,"themeSettings",8,void 0),ve(()=>N(m()),()=>{$(u,m()==="dark")}),ve(()=>(N(d()),N(p())),()=>{$(c,d()?.translations&&p()&&d().translations[p()]?d().translations[p()]:d()?.welcomeFields??{title:"Welcome to our survey!",description:"We value your feedback and appreciate your time.",buttonLabel:"Start"})}),fr(),er();var g=xz(),h=Z(g),b=Z(h,!0);A(h);var y=fe(h,2);{var k=v=>{var x=kz(),S=Z(x,!0);A(x),je(()=>Oe(S,(l(c),U(()=>l(c).description)))),O(v,x)};ae(y,v=>{l(c),U(()=>l(c).description)&&v(k)})}A(g),je(()=>Oe(b,(l(c),U(()=>l(c).title)))),O(i,g),Be()}var Iz=re('<p class="text-primary text-[1rem] leading-[1.5rem]"> </p>'),zz=re('<div class="flex flex-col items-center text-center mb-0 w-full mt-[8px]"><h2 class="text-primary font-[600] text-[1.5rem] mb-[1rem]"> </h2> <!></div>');function Nz(i,n){Je(n,!1);const u=te(),c=te(),d=te(),m=te(),p=te();let g=w(n,"endScreenProperties",8,null),h=w(n,"onExit",8,void 0),b=w(n,"currentMode",8,void 0),y=w(n,"currentLanguage",8,void 0);w(n,"themeSettings",8,void 0);let k=w(n,"isScreenVisible",8,void 0),v=te(null);bo(()=>{l(v)!==null&&clearTimeout(l(v))}),ve(()=>N(b()),()=>{$(u,b()==="dark")}),ve(()=>(N(g()),N(y())),()=>{$(c,g()?.translations&&y()&&g().translations[y()]?g().translations[y()]:g()?.endFields??{title:"Thank you for participating!",message:"Your feedback is important to us.",buttonLabel:"Exit",dismissBehavior:"close",fadeDuration:300})}),ve(()=>N(k()),()=>{$(d,k()===!0)}),ve(()=>N(g()),()=>{$(m,g()?.endFields?.dismissBehavior)}),ve(()=>N(g()),()=>{$(p,g()?.endFields?.fadeDuration||0)}),ve(()=>(l(v),l(d),l(m),N(h()),l(p)),()=>{l(v)!==null&&(clearTimeout(l(v)),$(v,null)),l(d)&&l(m)==="fade"&&typeof h()=="function"&&l(p)>0&&$(v,setTimeout(()=>{h()?.()},l(p)*1e3))}),fr(),er();var x=zz(),S=Z(x),E=Z(S,!0);A(S);var C=fe(S,2);{var Y=oe=>{var J=Iz(),B=Z(J,!0);A(J),je(()=>Oe(B,(l(c),U(()=>l(c).message)))),O(oe,J)};ae(C,oe=>{l(c),U(()=>l(c).message)&&oe(Y)})}A(x),je(()=>Oe(E,(l(c),U(()=>l(c).title)))),O(i,x),Be()}var jz=re("<h2> </h2>"),Tz=re('<div class="question-wrapper"><div class="question-container"><!></div></div>'),Oz=re("<!> <!>",1),Ez=re('<div id="section-container"><!> <!> <!></div>');function Pz(i,n){Je(n,!1);const u=te(),c=te(),{storeQuestions:d,getQuestionData:m}=pn();let p=w(n,"questions",8),g=w(n,"sections",8),h=w(n,"formData",8),b=w(n,"errors",8),y=w(n,"onChange",8),k=w(n,"currentMode",8,void 0),v=w(n,"welcomeScreenProperties",8),x=w(n,"otherConfigurationProperties",8),S=w(n,"currentSectionIndex",8),E=w(n,"endScreenProperties",8,void 0),C=w(n,"currentLanguage",8,void 0),Y=w(n,"themeSettings",8),oe=w(n,"onClose",8,void 0),J=w(n,"isScreenVisible",8,void 0),B=w(n,"apiKey",8,void 0),G=w(n,"hostUrl",8,void 0),R=w(n,"identifier",8,void 0),H=w(n,"feedbackConfigurationId",8,void 0);function K(W){return l(u).get(W)??-1}function $e(W){switch(W){case s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE:return[];case s.QuestionTypes.NPS:case s.QuestionTypes.RATING:return-1;case s.QuestionTypes.SHORT_ANSWER:case s.QuestionTypes.LONG_TEXT:case s.QuestionTypes.SINGLE_CHOICE:return"";default:return}}function Ie(W){return Array.isArray(W)?W:typeof W=="object"&&W!==null?Object.values(W).filter(F=>F!==void 0):typeof W=="string"?[W]:[]}function ke(W){return typeof W=="number"?W:typeof W=="string"?Number(W):0}function me(W){return typeof W=="string"?W:String(typeof W=="object"&&W!==null?Object.values(W)[0]||"":W||"")}function Se(W,F){if(W==null){const I=$e(F);return I!==void 0?I:W}switch(F){case s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE:return Ie(W);case s.QuestionTypes.NPS:case s.QuestionTypes.RATING:return ke(W);case s.QuestionTypes.SINGLE_CHOICE:return me(W);default:return W}}ve(()=>N(p()),()=>{p()&&Object.keys(p()).length>0&&d(p())}),ve(()=>N(g()),()=>{$(u,(()=>{const W=new Map;let F=0;return g().forEach(I=>{I.id!=="welcome_screen"&&I.id!=="thankyou_screen"&&I.questionIds.forEach(j=>{W.set(j,F++)})}),W})())}),ve(()=>(N(g()),N(S())),()=>{$(c,g()[S()])}),fr(),er();var le=Ze(),ie=Te(le);{var ee=W=>{var F=Ze(),I=Te(F);gr(I,1,()=>(N(g()),N(S()),U(()=>[g()[S()]])),j=>j.id,(j,D)=>{var ne=Ez(),V=Z(ne);{var Ce=xe=>{Sz(xe,{get welcomeScreenProperties(){return v()},get currentMode(){return k()},get currentLanguage(){return C()},get themeSettings(){return Y()}})};ae(V,xe=>{l(D),U(()=>l(D).id==="welcome_screen")&&xe(Ce)})}var _e=fe(V,2);{var Q=xe=>{{let Re=Le(()=>E()?E():{});Nz(xe,{get endScreenProperties(){return l(Re)},get onExit(){return oe()},get currentMode(){return k()},get currentLanguage(){return C()},get themeSettings(){return Y()},get isScreenVisible(){return J()}})}};ae(_e,xe=>{l(D),U(()=>l(D).id==="thankyou_screen")&&xe(Q)})}var de=fe(_e,2);{var Ne=xe=>{var Re=Oz(),Ye=Te(Re);{var ut=it=>{var ht=jz(),Ue=Z(ht,!0);A(ht),je(()=>{fn(ht,1,`section-title ${k()==="dark"?"dark-mode":""}`),Oe(Ue,(l(D),U(()=>l(D).title)))}),O(it,ht)};ae(Ye,it=>{N(x()),U(()=>x().isEnabled&&x().otherFields.pageTitle)&&it(ut)})}var Fe=fe(Ye,2);gr(Fe,1,()=>(l(D),U(()=>l(D).questionIds)),xr,(it,ht)=>{const Ue=Le(()=>(l(ht),U(()=>m(l(ht)))));var Pt=Ze(),Ct=Te(Pt);{var Ft=Gt=>{const Et=Le(()=>(N(x()),U(()=>x()?.isEnabled&&x().otherFields.questionNumber))),_t=Le(()=>(N(l(Ue)),U(()=>K(l(Ue).id)))),yt=Le(()=>(N(l(Ue)),N(h()),N(y()),N(b()),N(k()),N(C()),N(Y()),N(l(Et)),N(l(_t)),U(()=>({question:l(Ue),value:Se(h()[l(Ue).id],l(Ue).type),onChange:be=>y()(l(Ue).id,be,l(Ue).type),error:b()[l(Ue).id],currentMode:k(),currentLanguage:C(),themeSettings:Y(),questionNumber:l(Et)?l(_t)+1:void 0}))));var Ir=Tz(),Mr=Z(Ir),vn=Z(Mr);{var z=be=>{cS(be,Tt(()=>l(yt),{get question(){return l(Ue)}}))},T=be=>{var Ae=Ze(),Ke=Te(Ae);{var We=Wt=>{PS(Wt,Tt(()=>l(yt),{get question(){return l(Ue)}}))},vt=Wt=>{var ur=Ze(),or=Te(ur);{var ar=He=>{GS(He,Tt(()=>l(yt),{get question(){return l(Ue)},get apiKey(){return B()},get hostUrl(){return G()},get identifier(){return R()},get feedbackConfigurationId(){return H()},get otherConfigurationProperties(){return x()}}))},Jr=He=>{var ft=Ze(),Ut=Te(ft);{var kt=vr=>{uI(vr,Tt(()=>l(yt),{get question(){return l(Ue)},get apiKey(){return B()},get hostUrl(){return G()},get identifier(){return R()},get feedbackConfigurationId(){return H()},get otherConfigurationProperties(){return x()}}))},zr=vr=>{var tr=Ze(),It=Te(tr);{var bn=Pi=>{D1(Pi,Tt(()=>l(yt),{get question(){return l(Ue)}}))},o4=Pi=>{var Cb=Ze(),a4=Te(Cb);{var s4=Ci=>{J1(Ci,Tt(()=>l(yt),{get question(){return l(Ue)}}))},u4=Ci=>{var Ub=Ze(),c4=Te(Ub);{var l4=Ui=>{mz(Ui,Tt(()=>l(yt),{get question(){return l(Ue)}}))},d4=Ui=>{var Mb=Ze(),f4=Te(Mb);{var m4=sl=>{_z(sl,Tt(()=>l(yt),{get question(){return l(Ue)}}))};ae(f4,sl=>{N(l(Ue)),N(s.QuestionTypes),U(()=>l(Ue).type===s.QuestionTypes.ANNOTATION)&&sl(m4)},!0)}O(Ui,Mb)};ae(c4,Ui=>{N(l(Ue)),N(s.QuestionTypes),U(()=>l(Ue).type===s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE)?Ui(l4):Ui(d4,!1)},!0)}O(Ci,Ub)};ae(a4,Ci=>{N(l(Ue)),N(s.QuestionTypes),U(()=>l(Ue).type===s.QuestionTypes.RATING)?Ci(s4):Ci(u4,!1)},!0)}O(Pi,Cb)};ae(It,Pi=>{N(l(Ue)),N(s.QuestionTypes),U(()=>l(Ue).type===s.QuestionTypes.SINGLE_CHOICE)?Pi(bn):Pi(o4,!1)},!0)}O(vr,tr)};ae(Ut,vr=>{N(l(Ue)),N(s.QuestionTypes),U(()=>l(Ue).type===s.QuestionTypes.SHORT_ANSWER)?vr(kt):vr(zr,!1)},!0)}O(He,ft)};ae(or,He=>{N(l(Ue)),N(s.QuestionTypes),U(()=>l(Ue).type===s.QuestionTypes.LONG_TEXT)?He(ar):He(Jr,!1)},!0)}O(Wt,ur)};ae(Ke,Wt=>{N(l(Ue)),N(s.QuestionTypes),U(()=>l(Ue).type===s.QuestionTypes.NESTED_SELECTION)?Wt(We):Wt(vt,!1)},!0)}O(be,Ae)};ae(vn,be=>{N(l(Ue)),N(s.QuestionTypes),U(()=>l(Ue).type===s.QuestionTypes.NPS)?be(z):be(T,!1)})}A(Mr),A(Ir),O(Gt,Ir)};ae(Ct,Gt=>{l(Ue)&&Gt(Ft)})}O(it,Pt)}),O(xe,Re)};ae(de,xe=>{l(D),U(()=>l(D).id!=="welcome_screen"&&l(D).id!=="thankyou_screen")&&xe(Ne)})}A(ne),O(j,ne)}),O(W,F)};ae(ie,W=>{N(S()),N(g()),U(()=>S()<g().length&&g().length>0)&&W(ee)})}O(i,le),Be()}var Cz=re('<div class="flex justify-center"><!></div>'),Uz=re('<div class="flex justify-center"><!></div>'),Mz=re('<div class="flex-1"></div>'),Az=Tn('<svg class="w-5 h-5 animate-spin" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg>'),Dz=re('<div class="flex items-center justify-between gap-3"><!> <!></div>'),Lz=re('<div class="w-full py-6 px-4 bg-primary-foreground"><!></div>');function Zz(i,n){Je(n,!1);const u=te(),c=te(),d=te(),m=te(),p=te(),g=te(),{hasValidationErrors:h,clearValidationErrors:b}=pn();let y=w(n,"isWelcomeScreen",8),k=w(n,"isThankYouScreen",8),v=w(n,"isFirstSection",8),x=w(n,"isFirstPageAfterWelcome",8,!1),S=w(n,"isLastSection",8),E=w(n,"welcomeScreenProperties",8,null),C=w(n,"endScreenProperties",8,null),Y=w(n,"otherConfigurationProperties",8,null),oe=w(n,"currentMode",8),J=w(n,"currentLanguage",8),B=w(n,"handlePrevious",8),G=w(n,"handleNext",8),R=w(n,"handleSubmit",8),H=w(n,"onClose",8,void 0);w(n,"themeSettings",8);let K=w(n,"nextButtonDisabled",8,!1),$e=w(n,"submitButtonDisabled",8,!1),Ie=w(n,"isSinglePageSurvey",8,!1),ke=te(!1);const me=()=>{H()&&H()()},Se=()=>{if(!k()&&!C()?.isEnabled){$(ke,!0),window.setTimeout(()=>{$(ke,!1),H()&&H()()},3e3);try{R()()}catch(j){console.error("Error during form submission:",j)}}else R()()},le=()=>{b(),B()()},ie=()=>{G()()};ve(()=>(N(Y()),N(J())),()=>{$(u,(()=>{const j={previousButtonLabel:"Previous",nextButtonLabel:"Next",submitButtonLabel:"Submit"};return Y()?.isEnabled?Y()?.translations&&J()&&Y().translations[J()]?Y().translations[J()]:Y()?.otherFields??j:j})())}),ve(()=>(N(E()),N(J())),()=>{$(c,E()?.translations&&J()&&E().translations[J()]?E().translations[J()]:E()?.welcomeFields??{title:"Welcome to our survey!",description:"We value your feedback and appreciate your time.",buttonLabel:"Start"})}),ve(()=>(N(C()),N(J())),()=>{$(d,C()?.translations&&J()&&C().translations[J()]?C().translations[J()]:C()?.endFields??{buttonLabel:"Exit",dismissBehavior:"close"})}),ve(()=>N(oe()),()=>{$(m,oe()==="dark")}),ve(()=>N(K()),()=>{$(p,h()||K())}),ve(()=>N($e()),()=>{$(g,h()||$e())}),fr(),er();var ee=Lz(),W=Z(ee);{var F=j=>{var D=Cz(),ne=Z(D);qt(ne,{onclick:ie,size:"lg",class:"px-8 py-6 text-base font-semibold min-w-[160px] rounded-lg shadow-md hover:shadow-lg transition-all",children:(V,Ce)=>{_r();var _e=On();je(()=>Oe(_e,(l(c),U(()=>l(c).buttonLabel)))),O(V,_e)},$$slots:{default:!0}}),A(D),O(j,D)},I=j=>{var D=Ze(),ne=Te(D);{var V=_e=>{var Q=Uz(),de=Z(Q);qt(de,{onclick:()=>me(),size:"lg",class:"px-8 py-6 text-base font-semibold min-w-[160px] rounded-lg shadow-md hover:shadow-lg transition-all",children:(Ne,xe)=>{_r();var Re=On();je(()=>Oe(Re,(l(d),U(()=>l(d).buttonLabel)))),O(Ne,Re)},$$slots:{default:!0}}),A(Q),O(_e,Q)},Ce=_e=>{var Q=Dz(),de=Z(Q);{var Ne=Fe=>{{let it=Le(()=>v()||x());qt(Fe,{onclick:()=>le(),get disabled(){return l(it)},variant:"outline",size:"lg",class:"px-6 py-5 text-sm text-secondary-foreground min-w-[140px] font-semibold rounded-lg transition-all disabled:opacity-50 disabled:cursor-not-allowed",children:(ht,Ue)=>{_r();var Pt=On();je(()=>Oe(Pt,(l(u),U(()=>l(u).previousButtonLabel)))),O(ht,Pt)},$$slots:{default:!0}})}},xe=Fe=>{var it=Mz();O(Fe,it)};ae(de,Fe=>{Ie()?Fe(xe,!1):Fe(Ne)})}var Re=fe(de,2);{var Ye=Fe=>{{let it=Le(()=>l(g)||l(ke)),ht=Le(()=>Ie()?"mx-auto":"");qt(Fe,{onclick:()=>Se(),get disabled(){return l(it)},size:"lg",get class(){return`px-6 py-5 text-base font-semibold min-w-[140px] rounded-lg shadow-md hover:shadow-lg transition-all disabled:opacity-50 disabled:cursor-not-allowed ${l(ht)??""}`},children:(Ue,Pt)=>{var Ct=Ze(),Ft=Te(Ct);{var Gt=_t=>{var yt=Az();O(_t,yt)},Et=_t=>{var yt=On();je(()=>Oe(yt,(l(u),U(()=>l(u).submitButtonLabel)))),O(_t,yt)};ae(Ft,_t=>{l(ke)?_t(Gt):_t(Et,!1)})}O(Ue,Ct)},$$slots:{default:!0}})}},ut=Fe=>{var it=Ze(),ht=Te(it);{var Ue=Pt=>{qt(Pt,{onclick:ie,get disabled(){return l(p)},size:"lg",class:"px-6 py-5 text-base font-semibold min-w-[140px] rounded-lg shadow-md hover:shadow-lg transition-all disabled:opacity-50 disabled:cursor-not-allowed",children:(Ct,Ft)=>{_r();var Gt=On();je(()=>Oe(Gt,(l(u),U(()=>l(u).nextButtonLabel)))),O(Ct,Gt)},$$slots:{default:!0}})};ae(ht,Pt=>{Ie()||Pt(Ue)},!0)}O(Fe,it)};ae(Re,Fe=>{S()?Fe(Ye):Fe(ut,!1)})}A(Q),O(_e,Q)};ae(ne,_e=>{k()?_e(V):_e(Ce,!1)},!0)}O(j,D)};ae(W,j=>{y()?j(F):j(I,!1)})}A(ee),O(i,ee),Be()}var Rz=re('<div data-slot="progress-indicator" class="bg-primary h-full w-full flex-1 transition-all"></div>');function qz(i,n){Je(n,!0);let u=w(n,"ref",15,null),c=w(n,"max",3,100),d=Lt(n,["$$slots","$$events","$$legacy","ref","class","max","value"]);var m=Ze(),p=Te(m);{let g=lt(()=>Sr("bg-primary/20 relative w-full overflow-hidden rounded-full",n.class));Pa(p,()=>v1,(h,b)=>{b(h,Tt({"data-slot":"progress",get class(){return l(g)},get value(){return n.value},get max(){return c()}},()=>d,{get ref(){return u()},set ref(y){u(y)},children:(y,k)=>{var v=Rz();je(()=>$o(v,`transform: translateX(-${100-100*(n.value??0)/(c()??1)}%)`)),O(y,v)},$$slots:{default:!0}}))})}O(i,m),Be()}const Fz="encatch-forms",Un="form-responses",Wz=1;async function il(){return new Promise((i,n)=>{if(typeof window>"u"||!window.indexedDB){n(new Error("IndexedDB is not available in this environment"));return}const u=indexedDB.open(Fz,Wz);u.onerror=()=>{console.error("[IndexedDB] Error opening database:",u.error),n(u.error)},u.onsuccess=()=>{i(u.result)},u.onupgradeneeded=c=>{const d=c.target.result;d.objectStoreNames.contains(Un)||d.createObjectStore(Un,{keyPath:"id"})}})}async function Vz(i,n){try{const u=await il();return new Promise((c,d)=>{const m=u.transaction([Un],"readwrite"),p=m.objectStore(Un),g={id:i,responses:n,timestamp:Date.now()},h=p.put(g);h.onsuccess=()=>{c()},h.onerror=()=>{console.error("[IndexedDB] Error saving data:",h.error),d(h.error)},m.oncomplete=()=>{u.close()}})}catch(u){throw console.error("[IndexedDB] Error in saveFormData:",u),u}}async function Qz(i){try{const n=await il();return new Promise((u,c)=>{const d=n.transaction([Un],"readonly"),m=d.objectStore(Un).get(i);m.onsuccess=()=>{const p=m.result;p&&p.responses?u(p.responses):u(null)},m.onerror=()=>{console.error("[IndexedDB] Error loading data:",m.error),c(m.error)},d.oncomplete=()=>{n.close()}})}catch(n){throw console.error("[IndexedDB] Error in loadFormData:",n),n}}async function Ob(i){try{const n=await il();return new Promise((u,c)=>{const d=n.transaction([Un],"readwrite"),m=d.objectStore(Un).delete(i);m.onsuccess=()=>{u()},m.onerror=()=>{console.error("[IndexedDB] Error clearing data:",m.error),c(m.error)},d.oncomplete=()=>{n.close()}})}catch(n){throw console.error("[IndexedDB] Error in clearFormData:",n),n}}class Gz extends EventTarget{subscriptions=new Map;targetOrigin="*";matchesFilter(n,u){return!u||u==="*"||u===null||u===void 0?!0:typeof u=="string"?n===u:Array.isArray(u)?u.includes(n||""):typeof u=="function"?u(n||""):!1}getFormIdFromPayload(n){return n?.feedbackConfigurationId}publish(n,u,c){const d=this.getFormIdFromPayload(u);console.log(`[FormEventPublisher] 📢 Publishing "${n}"`,{formId:d,payload:u}),typeof window<"u"&&(window.dispatchEvent(new CustomEvent(n,{detail:u,bubbles:!0})),console.log("[FormEventPublisher] ✅ Event dispatched on window")),c?.usePostMessage!==!1&&this.sendPostMessage(n,u)}subscribe(n,u,c){const d=Symbol("subscription"),m={eventType:n,handler:u,filter:c?.formId,id:d,once:c?.once};this.subscriptions.has(n)||this.subscriptions.set(n,[]),this.subscriptions.get(n).push(m),console.log(`[FormEventPublisher] Subscribed to "${n}"`,{formId:c?.formId,once:c?.once,totalSubscriptions:this.subscriptions.get(n).length});const p=g=>{const h=g,b=this.getFormIdFromPayload(h.detail);this.matchesFilter(b,c?.formId)&&(u(h.detail),c?.once&&typeof window<"u"&&window.removeEventListener(n,p))};return typeof window<"u"&&window.addEventListener(n,p),()=>{console.log(`[FormEventPublisher] Unsubscribed from "${n}"`,{formId:c?.formId,remainingSubscriptions:(this.subscriptions.get(n)?.length||1)-1}),this.unsubscribe(d),typeof window<"u"&&window.removeEventListener(n,p)}}unsubscribe(n){for(const[u,c]of this.subscriptions.entries()){const d=c.findIndex(m=>m.id===n);if(d!==-1){c.splice(d,1),c.length===0&&this.subscriptions.delete(u);break}}}subscribeAll(n,u){console.log("[FormEventPublisher] Subscribing to ALL events",{formId:u?.formId,once:u?.once});const c=["form:view","form:submit","form:close","form:section:change","form:question:answered","form:error"],d=[];return c.forEach(m=>{const p=this.subscribe(m,g=>n(m,g),u);d.push(p)}),()=>{console.log("[FormEventPublisher] Unsubscribing from ALL events",{formId:u?.formId}),d.forEach(m=>m())}}getSubscriptionCount(n){return n?this.subscriptions.get(n)?.length||0:Array.from(this.subscriptions.values()).reduce((u,c)=>u+c.length,0)}clearSubscriptions(n){n?this.subscriptions.delete(n):this.subscriptions.clear()}sendPostMessage(n,u){const c={type:`encatch:${n}`,payload:u,source:"encatch-form-engine"};window.parent&&window.parent!==window&&window.parent.postMessage(c,this.targetOrigin),document.querySelectorAll("iframe").forEach(d=>{d.contentWindow&&d.contentWindow.postMessage(c,this.targetOrigin)}),typeof window.ReactNativeWebView<"u"&&window.ReactNativeWebView.postMessage(JSON.stringify({action:n.replace("form:",""),data:JSON.stringify(u)}))}}console.log("[FormEventPublisher] Creating singleton instance");const Ei=new Gz;var Jz=re('<div class="flex items-center justify-center min-h-[400px] bg-primary-foreground"><div class="text-center"><div class="inline-block animate-spin rounded-full h-8 w-8 border-b-2 border-primary mb-4"></div> <p class="text-sm text-muted-foreground">Loading your previous responses...</p></div></div>'),Bz=re('<div class="flex-shrink-0" style="height: 3px; min-height: 3px; max-height: 3px;"><!></div>'),Yz=re('<div class="bg-primary-foreground flex items-center justify-center py-2"><img alt="encatch Logo" class="mr-2 h-5 w-5"/> <p class="m-0 text-xs font-medium text-muted-foreground">Powered by encatch</p></div>'),Kz=re('<!> <div class="form-content-container custom-scrollbar bg-primary-foreground"><!></div> <!> <!>',1),Hz=re('<div id="encatch-form-id"><!></div>');function ol(i,n){Je(n,!1);const u=()=>Hx(E,"$formResponses",c),[c,d]=Xx(),m=te(),p=te(),g=te(),h=te(),b=te(),y=te(),k=te(),v=te(),x=te(),S=te(),{formResponses:E,updateQuestionResponse:C,bulkUpdateResponses:Y}=pn();let oe=w(n,"theme",28,()=>({dark:{brandColor:"#000",overlayColor:"#000",textColor:"#fff",backgroundColor:"#000"},light:{brandColor:"#fff",overlayColor:"#fff",textColor:"#000",backgroundColor:"#fff"}})),J=w(n,"currentMode",12,"light"),B=w(n,"currentLanguage",28,()=>({value:"en",label:"en"})),G=w(n,"questions",28,()=>({})),R=w(n,"questionLanguages",28,()=>[]),H=w(n,"otherConfigurationProperties",12,null),K=w(n,"welcomeScreenProperties",12,null),$e=w(n,"endScreenProperties",12,null),Ie=w(n,"translations",28,()=>({})),ke=w(n,"sections",24,()=>[]),me=w(n,"themeSettings",12,null),Se=w(n,"onClose",12,void 0),le=w(n,"onSectionChange",8,void 0),ie=w(n,"apiKey",8,void 0),ee=w(n,"hostUrl",8,void 0),W=w(n,"feedbackConfigId",8,void 0),F=w(n,"identifier",8,void 0),I=w(n,"persistMode",8,"none"),j=w(n,"instanceId",8,void 0),D=te(0),ne=te(!1),V=te(0),Ce=te(!1),_e=te({}),Q=te((()=>{let z=[...ke()||[]];const T=K()===void 0?!0:K()?.isEnabled??!0,be=$e()===void 0?!0:$e()?.isEnabled??!0;return T&&z.unshift({id:"welcome_screen",title:"Welcome",questionIds:[]}),be&&z.push({id:"thankyou_screen",title:"Thank You",questionIds:[]}),z})()),de=te(!1);const Ne=()=>{const z=window;return typeof window<"u"&&z.encatchAnnotate!==void 0&&typeof z.encatchAnnotate=="object"&&z.encatchAnnotate!==null&&typeof z.encatchAnnotate.getAnnotation=="function"},xe=()=>{if(Ne()){const z=window.encatchAnnotate?.getAnnotation?.();z&&Object.entries(G()).forEach(([T,be])=>{be.type===s.QuestionTypes.ANNOTATION&&C(T,z,s.QuestionTypes.ANNOTATION)})}},Re=(z,T,be,Ae,Ke="")=>z.map(We=>{let vt=Ke?`${Ke}.children.${We.id}.label`:`option.${We.id}.label`,Wt=Ae[T]?.[be]?.[vt],ur={...We};return Wt&&(ur.label=Wt),We.children&&We.children.length>0&&(ur.children=Re(We.children,T,be,Ae,Ke?`${Ke}.children.${We.id}`:`option.${We.id}`)),ur}),Ye=z=>{const T=Ie()||{},be=Object.fromEntries(Object.entries(G()).map(([Ae,Ke])=>{const We=T[Ae]?.[z]||{};let vt={...Ke};return We.title&&(vt.title=We.title),We.description&&(vt.description=We.description),We.errorMessage&&(vt.errorMessage=We.errorMessage),We.placeholder&&(vt.placeholder=We.placeholder),We.minLabel&&(vt.minLabel=We.minLabel),We.maxLabel&&(vt.maxLabel=We.maxLabel),We.annotationText&&(vt.annotationText=We.annotationText),We.noAnnotationText&&(vt.noAnnotationText=We.noAnnotationText),Ke.options&&Array.isArray(Ke.options)&&(vt.options=Re(Ke.options,Ae,z,T)),[Ae,vt]}));G(be)},ut=()=>l(Q).reduce((z,T)=>z+T.questionIds.length,0),Fe=()=>u().questions.filter(z=>{try{if(z.type===s.QuestionTypes.SHORT_ANSWER){if(!z.answer||typeof z.answer!="object")return!1;const T=z.answer.shortAnswer;if(T==null||typeof T=="string"&&T.trim()==="")return!1}if(z.type===s.QuestionTypes.LONG_TEXT){if(!z.answer||typeof z.answer!="object")return!1;const T=z.answer.longText;if(T==null||typeof T=="string"&&T.trim()==="")return!1}return!0}catch(T){return console.error("Error checking answer:",z.questionId,T),!0}}).length,it=()=>Fe()/ut()*100,ht=(z,T,be)=>{let Ae=T;Array.isArray(T)&&(Ae=[...T]),C(z,Ae,be),$(_e,{...l(_e),[z]:""}),Ei.publish("form:question:answered",{feedbackConfigurationId:j()||"",questionId:z,questionType:be,answer:Ae,timestamp:Date.now()})},Ue=()=>{if(l(V)>0){const z=l(V)-1;$(V,z),le()?.(z),Ei.publish("form:section:change",{feedbackConfigurationId:j()||"",sectionIndex:z,sectionId:l(Q)[z]?.id||"",timestamp:Date.now()})}},Pt=()=>{if(l(V)<l(Q).length-1){const z=l(V)+1;$(V,z),le()?.(z),Ei.publish("form:section:change",{feedbackConfigurationId:j()||"",sectionIndex:z,sectionId:l(Q)[z]?.id||"",timestamp:Date.now()})}},Ct=()=>{console.log("instanceId",j()),Ei.publish("form:submit",{feedbackConfigurationId:j()||"",feedbackIdentifier:F()||"",response:{questions:u().questions},timestamp:Date.now()});const z=l(Q).findIndex(T=>T.id==="thankyou_screen");if(z!==-1&&($(V,z),le()?.(z)),$(Ce,!0),window.encatch?._internal?.submitFeedback?window.encatch._internal.submitFeedback({response:{questions:u().questions},action:"S",feedbackConfigurationId:W()||"",feedbackIdentifier:F()||"",duration:0}):console.error("window.encatch._internal.submitFeedback is not available"),I()==="retain"&&W()&&F()){const T=`${W()}_${F()}`;Ob(T).then(()=>{}).catch(be=>{console.error("[App] Error clearing saved data after submission:",be)})}},Ft=()=>{Ei.publish("form:close",{feedbackConfigurationId:j()||"",feedbackIdentifier:F(),timestamp:Date.now()}),Se()?.()},Gt="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI4LjMuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDEwMDAgMTAwMDsiIAogIGhlaWdodD0iMjAiCiAgd2lkdGg9IjIwIgogIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiMzODQ4OUQ7fQoJLnN0MXtmaWxsOiMxRjFCNEY7fQoJLnN0MntmaWxsOiNGN0I5Mjg7fQoJLnN0M3tmaWxsOiMwMEI4N0E7fQoJLnN0NHtmaWxsOiNFMDI0NUU7fQoJLnN0NXtmaWxsOiNGRkZGRkY7fQoJLnN0NntmaWxsOiNGOEZFRkY7fQo8L3N0eWxlPgo8Zz4KCTxwYXRoIGNsYXNzPSJzdDUiIGQ9Ik00MDQuOCwyMTAuOEMzMDkuMSwyNDEuOSwyMzQsMzE3LjYsMjAzLjIsNDEzLjRjLTYxLjMsMTkwLjEsNDcuOSwzNjguNSwyMTIuNSw0MjBjNS43LDEuOCwxMS42LTIuNSwxMS42LTguNQoJCXYtNjkuN2MwLTMuNi0yLjItNi44LTUuNi04LjJDMzMyLjQsNzEwLjcsMjY5LjMsNjIzLDI2OS4zLDUyMC44YzAtMTM0LjcsMTA5LjYtMjQ0LjIsMjQ0LjItMjQ0LjJjMTE5LjMsMCwyMTguOCw4NS43LDIzOS45LDE5OC45CgkJYzAuMywxLjktMS4xLDMuNi0zLDMuNmgtMzcuNGMtOC44LDAtMTUuOSw3LjEtMTUuOSwxNS45djQ3LjJjMCwxMS4xLDMuOSwyMC42LDE1LDIwLjZsNDUuNi0wLjNoNDEuN3YtMC4yaDM0LjEKCQljNC4yLDAsNy42LTMuNCw3LjYtNy42di0zMy44Qzg0MS4xLDMwNC45LDYzMS40LDEzNy4yLDQwNC44LDIxMC44eiIvPgoJPHBhdGggY2xhc3M9InN0NSIgZD0iTTI2NSw3MTYuOGwtMTUuNCwxMTYuNmMtMC40LDIuOCwyLjUsNC45LDUsMy43TDM2OCw3ODUuN2MyLjYtMS4yLDIuOC00LjcsMC41LTYuMmwtOTcuOS02NS4yCgkJQzI2OC40LDcxMi44LDI2NS40LDcxNC4xLDI2NSw3MTYuOHoiLz4KCTxwYXRoIGNsYXNzPSJzdDUiIGQ9Ik02NjYuMyw1NjMuM2gtNzguNmMtMi41LDAtNC41LTItNC41LTQuNXYtNzguNmMwLTIuNSwyLTQuNSw0LjUtNC41aDc4LjZjMi41LDAsNC41LDIsNC41LDQuNXY3OC42CgkJQzY3MC45LDU2MS4yLDY2OC44LDU2My4zLDY2Ni4zLDU2My4zeiIvPgoJPHBhdGggY2xhc3M9InN0NSIgZD0iTTQ0NC4yLDU2My4zaC03Ni41Yy0zLjEsMC01LjUtMi41LTUuNS01LjV2LTc2LjVjMC0zLjEsMi41LTUuNSw1LjUtNS41aDc2LjVjMy4xLDAsNS41LDIuNSw1LjUsNS41djc2LjUKCQlDNDQ5LjcsNTYwLjgsNDQ3LjIsNTYzLjMsNDQ0LjIsNTYzLjN6Ii8+Cgk8cGF0aCBjbGFzcz0ic3Q1IiBkPSJNNTU1LjMsNTYzLjNoLTc3LjZjLTIuOCwwLTUtMi4zLTUtNXYtNzcuNmMwLTIuOCwyLjMtNSw1LTVoNzcuNmMyLjgsMCw1LDIuMyw1LDV2NzcuNgoJCUM1NjAuMyw1NjEsNTU4LDU2My4zLDU1NS4zLDU2My4zeiIvPgoJPHBhdGggY2xhc3M9InN0NSIgZD0iTTY4My45LDI1NC45Yy0xODMuOS0xMTMuMi00MzUuMi0zNi41LTQ5MS4zLDE5NWMtMjMuNyw5Ny44LDEuNSwyMDEuNCw2Ni45LDI3Ny45CgkJYzEyOS44LDE1MS44LDMzOSwxNTIuMyw0NjkuMSwzOS4xYzQuNS0zLjksMy45LTExLjItMS4yLTE0LjNsLTU5LjMtMzYuNWMtMy4xLTEuOS03LTEuNy05LjksMC41Yy03Ny43LDU3LTE4NS41LDY0LjgtMjcyLjUsMTEuMwoJCWMtMTE0LjgtNzAuNi0xNTAuNi0yMjEuMy04MC0zMzZjNjIuNS0xMDEuNiwxODcuNy0xNDEuNCwyOTUuMS0xMDAuMSIvPgo8L2c+Cjwvc3ZnPgo=",Et="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI4LjMuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDEwMDAgMTAwMDsiIAogIGhlaWdodD0iMjAiCiAgd2lkdGg9IjIwIgogIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiMzODQ4OUQ7fQoJLnN0MXtmaWxsOiMxRjFCNEY7fQoJLnN0MntmaWxsOiNGN0I5Mjg7fQoJLnN0M3tmaWxsOiMwMEI4N0E7fQoJLnN0NHtmaWxsOiNFMDI0NUU7fQoJLnN0NXtmaWxsOiNGRkZGRkY7fQoJLnN0NntmaWxsOiNGOEZFRkY7fQo8L3N0eWxlPgo8Zz4KCTxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0zODEuOSwxOTkuNmMtOTUuNywzMS4xLTE3MC44LDEwNi44LTIwMS43LDIwMi42Yy02MS4zLDE5MC4xLDQ3LjksMzY4LjUsMjEyLjUsNDIwYzUuNywxLjgsMTEuNi0yLjUsMTEuNi04LjUKCQlWNzQ0YzAtMy42LTIuMi02LjgtNS42LTguMmMtODkuMy0zNi4zLTE1Mi40LTEyNC4xLTE1Mi40LTIyNi4yYzAtMTM0LjcsMTA5LjYtMjQ0LjIsMjQ0LjItMjQ0LjJjMTE5LjMsMCwyMTguOCw4NS43LDIzOS45LDE5OC45CgkJYzAuMywxLjktMS4xLDMuNi0zLDMuNmgtMzcuNGMtOC44LDAtMTUuOSw3LjEtMTUuOSwxNS45VjUzMWMwLDExLjEsMy45LDIwLjYsMTUsMjAuNmw0NS42LTAuM2g0MS43di0wLjJoMzQuMQoJCWM0LjIsMCw3LjYtMy40LDcuNi03LjZ2LTMzLjhDODE4LjIsMjkzLjcsNjA4LjUsMTI2LDM4MS45LDE5OS42eiIvPgoJPHBhdGggY2xhc3M9InN0MSIgZD0iTTI0Mi4xLDcwNS42bC0xNS40LDExNi42Yy0wLjQsMi44LDIuNSw0LjksNSwzLjdMMzQ1LDc3NC41YzIuNi0xLjIsMi44LTQuNywwLjUtNi4yTDI0Ny42LDcwMwoJCUMyNDUuNCw3MDEuNiwyNDIuNCw3MDIuOSwyNDIuMSw3MDUuNnoiLz4KCTxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik02NDMuNCw1NTIuMWgtNzguNmMtMi41LDAtNC41LTItNC41LTQuNXYtNzguNmMwLTIuNSwyLTQuNSw0LjUtNC41aDc4LjZjMi41LDAsNC41LDIsNC41LDQuNXY3OC42CgkJQzY0Ny45LDU1MCw2NDUuOSw1NTIuMSw2NDMuNCw1NTIuMXoiLz4KCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik00MjEuMiw1NTIuMWgtNzYuNWMtMy4xLDAtNS41LTIuNS01LjUtNS41VjQ3MGMwLTMuMSwyLjUtNS41LDUuNS01LjVoNzYuNWMzLjEsMCw1LjUsMi41LDUuNSw1LjV2NzYuNQoJCUM0MjYuOCw1NDkuNiw0MjQuMyw1NTIuMSw0MjEuMiw1NTIuMXoiLz4KCTxwYXRoIGNsYXNzPSJzdDQiIGQ9Ik01MzIuMyw1NTIuMWgtNzcuNmMtMi44LDAtNS0yLjMtNS01di03Ny42YzAtMi44LDIuMy01LDUtNWg3Ny42YzIuOCwwLDUsMi4zLDUsNVY1NDcKCQlDNTM3LjQsNTQ5LjgsNTM1LjEsNTUyLjEsNTMyLjMsNTUyLjF6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QxIiBkPSJNNjYxLDI0My42Yy0xODMuOS0xMTMuMi00MzUuMi0zNi41LTQ5MS4zLDE5NWMtMjMuNyw5Ny44LDEuNSwyMDEuNCw2Ni45LDI3Ny45CgkJYzEyOS44LDE1MS44LDMzOSwxNTIuMyw0NjkuMSwzOS4xYzQuNS0zLjksMy45LTExLjItMS4yLTE0LjNsLTU5LjMtMzYuNWMtMy4xLTEuOS03LTEuNy05LjksMC41Yy03Ny43LDU3LTE4NS41LDY0LjgtMjcyLjUsMTEuMwoJCWMtMTE0LjgtNzAuNi0xNTAuNi0yMjEuMy04MC0zMzZDMzQ1LjIsMjc5LDQ3MC40LDIzOS4yLDU3Ny45LDI4MC41Ii8+CjwvZz4KPC9zdmc+Cg==";let _t=te();ve(()=>(N(j()),N(F()),N(W()),N(I()),N(B()),N(K()),N($e()),l(Q),l(V)),()=>{En(async()=>{Ei.publish("form:view",{feedbackConfigurationId:j()||"",feedbackIdentifier:F()||"",timestamp:Date.now()});const z=`${W()||"default"}_${F()||"default"}`;if(I()==="retain"){$(ne,!0);try{const T=await Qz(z);T&&T.length>0&&Y(T)}catch(T){console.error("[App] Error loading saved data:",T)}finally{$(ne,!1)}}else if(I()==="reset")try{await Ob(z)}catch(T){console.error("[App] Error clearing saved data:",T)}xe(),window.updateEncatchForm=T=>{if(T.theme&&oe(T.theme),T.currentMode&&J(T.currentMode),T.currentLanguage&&(B(T.currentLanguage),B()?.value&&Ye(B().value)),T.questions&&G(T.questions),T.questionLanguages&&R(T.questionLanguages),T.otherConfigurationProperties&&H(T.otherConfigurationProperties),T.welcomeScreenProperties&&K(T.welcomeScreenProperties),T.endScreenProperties){const be=$e()?.isEnabled,Ae=T.endScreenProperties.isEnabled;if(be&&!Ae){const Ke=l(Q).findIndex(We=>We.id==="thankyou_screen");Ke===l(V)&&$(V,Math.max(0,Ke-1))}$e(T.endScreenProperties)}if(T.sections){const be=[...T.sections],Ae=T.welcomeScreenProperties?.isEnabled??K()?.isEnabled??!0,Ke=T.endScreenProperties?.isEnabled??$e()?.isEnabled??!0;Ae&&!be.some(We=>We.id==="welcome_screen")&&be.unshift({id:"welcome_screen",title:"Welcome",questionIds:[]}),Ke&&!be.some(We=>We.id==="thankyou_screen")&&be.push({id:"thankyou_screen",title:"Thank You",questionIds:[]}),$(Q,be),Ae&&l(V)===0&&$(V,0)}T.translations&&(Ie(T.translations),B()?.value&&Ye(B().value)),T.themeSettings&&me(T.themeSettings),T.onClose&&Se(T.onClose)}})}),ve(()=>(N(me()),N(J())),()=>{if(me()&&me().themes&&J()&&me().themes[J()]){const z=document.documentElement,T=me().themes[J()];T&&(z.style.setProperty("--brand-color",T.brandColor||"#2563eb"),z.style.setProperty("--text-color",T.textColor||"#333"),z.style.setProperty("--background-color",T.backgroundColor||"#ffffff"))}}),ve(()=>N(J()),()=>{$(m,J()==="dark"?Gt:Et)}),ve(()=>(N(B()),N(K()),N($e()),N(H())),()=>{if(B()&&B().value){const z=B().value;Ye(z),K()?.translations?.[z]&&K({...K(),welcomeFields:{...K().welcomeFields,...K().translations[z]}}),$e()?.translations?.[z]&&$e({...$e(),endFields:{...$e().endFields,...$e().translations[z]}}),H()?.translations?.[z]&&H({...H(),otherFields:{...H().otherFields,...H().translations[z]}})}}),ve(()=>(N(ke()),l(Q),N(K()),N($e()),l(V),l(de),l(Ce)),()=>{const z=[...ke()];let T=!1;const be=l(Q).some(vt=>vt.id==="welcome_screen"),Ae=l(Q).some(vt=>vt.id==="thankyou_screen"),Ke=K()===void 0?!0:K()?.isEnabled??!0,We=$e()===void 0?!0:$e()?.isEnabled??!0;if(Ke&&!be)z.unshift({id:"welcome_screen",title:"Welcome",questionIds:[]}),T=!0;else if(!Ke&&be){const vt=l(Q).filter(Wt=>Wt.id!=="welcome_screen");vt.length!==l(Q).length&&(l(V)===0&&be&&$(V,0),$(Q,vt),T=!0)}if(We&&!Ae)z.push({id:"thankyou_screen",title:"Thank You",questionIds:[]}),T=!0;else if(!We&&Ae){const vt=l(Q).filter(Wt=>Wt.id!=="thankyou_screen");if(vt.length!==l(Q).length){const Wt=l(Q).findIndex(ur=>ur.id==="thankyou_screen");(l(V)===Wt||l(V)>=vt.length)&&$(V,Math.max(0,vt.length-1)),$(Q,vt),T=!0}}T&&($(Q,z),l(de)||(!l(Ce)&&!(!We&&Ae)&&$(V,0),$(de,!0)))}),ve(()=>(N($e()),l(V),l(Q)),()=>{$(p,$e()?.isEnabled&&l(V)===l(Q).length-1)}),ve(()=>l(Q),()=>{$(g,l(Q).filter(z=>z.id!=="welcome_screen"&&z.id!=="thankyou_screen").length===1)}),ve(()=>(l(V),l(Q)),()=>{$(h,l(V)===0&&l(Q)[0]?.id==="welcome_screen")}),ve(()=>(l(Q),l(V)),()=>{$(b,l(Q)[l(V)]?.id==="thankyou_screen")}),ve(()=>l(V),()=>{$(y,l(V)===0)}),ve(()=>(l(Q),l(V)),()=>{$(k,l(Q)[0]?.id==="welcome_screen"&&l(V)===1)}),ve(()=>(l(Q),l(V)),()=>{$(v,(()=>{const z=l(Q).findIndex(T=>T.id==="thankyou_screen");return z!==-1?l(V)===z-1:l(V)===l(Q).length-1})())}),ve(()=>(l(Q),l(V),l(h),l(b),u(),N(G())),()=>{$(x,(()=>{const z=l(Q)[l(V)];if(!z||l(h)||l(b))return!1;const T=z.questionIds||[],be=u().questions.reduce((Ae,Ke)=>(Ae[Ke.questionId]=Ke,Ae),{});for(const Ae of T){const Ke=G()[Ae],We=!!be[Ae];if(Ke?.required&&!We)return!0}return!1})())}),ve(()=>(l(V),l(Q)),()=>{l(V)>=0&&l(V)<l(Q).length}),ve(()=>(u(),s.QuestionTypes),()=>{$(S,u().questions.reduce((z,T)=>{if(T.answer)switch(T.type){case s.QuestionTypes.RATING:z[T.questionId]=T.answer.rating;break;case s.QuestionTypes.NPS:z[T.questionId]=T.answer.nps;break;case s.QuestionTypes.LONG_TEXT:z[T.questionId]=T.answer.longText;break;case s.QuestionTypes.SHORT_ANSWER:z[T.questionId]=T.answer.shortAnswer;break;case s.QuestionTypes.SINGLE_CHOICE:z[T.questionId]=T.answer.singleChoice;break;case s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE:z[T.questionId]=[...T.answer.multipleChoiceMultiple||[]];break;case s.QuestionTypes.NESTED_SELECTION:z[T.questionId]=[...T.answer.nestedSelection||[]];break;default:z[T.questionId]=T.answer}else z[T.questionId]=null;return z},{}))}),ve(()=>u(),()=>{u();const z=it();$(D,z)}),ve(()=>(N(I()),N(W()),N(F()),l(ne),l(_t),u()),()=>{if(I()==="retain"&&W()&&F()&&!l(ne)){const z=`${W()}_${F()}`;l(_t)&&clearTimeout(l(_t)),$(_t,setTimeout(()=>{Vz(z,u().questions).then(()=>{}).catch(T=>{console.error("[App] Error auto-saving to IndexedDB:",T)})},500))}}),ve(()=>N(G()),()=>{G()&&xe()}),fr(),er();var yt=Hz(),Ir=Z(yt);{var Mr=z=>{var T=Jz();O(z,T)},vn=z=>{var T=Kz(),be=Te(T);{var Ae=or=>{var ar=Bz(),Jr=Z(ar);qz(Jr,{get value(){return l(D)},max:100,class:"h-full w-full rounded-none bg-muted/40 [&_[data-slot=progress-indicator]]:bg-primary [&_[data-slot=progress-indicator]]:transition-all [&_[data-slot=progress-indicator]]:duration-300 [&_[data-slot=progress-indicator]]:ease-in-out"}),A(ar),O(or,ar)};ae(be,or=>{N(me()),l(h),l(b),U(()=>me()?.featureSettings?.progressBar&&!l(h)&&!l(b))&&or(Ae)})}var Ke=fe(be,2),We=Z(Ke);{let or=Le(()=>(N(B()),U(()=>B()?.value||"en"))),ar=Le(()=>(N(me()),U(()=>me()?.themes||null))),Jr=Le(()=>l(p)===!0);Pz(We,{get questions(){return G()},get sections(){return l(Q)},get formData(){return l(S)},get errors(){return l(_e)},onChange:ht,get currentMode(){return J()},get currentSectionIndex(){return l(V)},get otherConfigurationProperties(){return H()},get welcomeScreenProperties(){return K()},get endScreenProperties(){return $e()},get currentLanguage(){return l(or)},get themeSettings(){return l(ar)},onClose:Ft,get isScreenVisible(){return l(Jr)},get apiKey(){return ie()},get feedbackConfigurationId(){return W()},get hostUrl(){return ee()},get identifier(){return F()}})}A(Ke);var vt=fe(Ke,2);{let or=Le(()=>(N(B()),U(()=>B()?.value||"en"))),ar=Le(()=>(N(me()),U(()=>me()?.themes||null)));Zz(vt,{get isWelcomeScreen(){return l(h)},get isThankYouScreen(){return l(b)},get isFirstSection(){return l(y)},get isFirstPageAfterWelcome(){return l(k)},get isLastSection(){return l(v)},get welcomeScreenProperties(){return K()},get endScreenProperties(){return $e()},get otherConfigurationProperties(){return H()},get currentMode(){return J()},get currentLanguage(){return l(or)},handlePrevious:Ue,handleNext:Pt,handleSubmit:Ct,onClose:Ft,get themeSettings(){return l(ar)},get nextButtonDisabled(){return l(x)},get submitButtonDisabled(){return l(x)},get isSinglePageSurvey(){return l(g)}})}var Wt=fe(vt,2);{var ur=or=>{var ar=Yz(),Jr=Z(ar);_r(2),A(ar),je(()=>si(Jr,"src",l(m))),O(or,ar)};ae(Wt,or=>{N(me()),U(()=>me()?.featureSettings?.showBranding)&&or(ur)})}O(z,T)};ae(Ir,z=>{l(ne)?z(Mr):z(vn,!1)})}A(yt),je(()=>fn(yt,1,`encatch-form ${J()==="dark"?"theme-dark dark":"theme-light"}`)),O(i,yt),Be(),d()}var Xz=re('<div class="fixed inset-0 transition-opacity duration-300"></div>'),e4=re('<!> <div id="encatch-feedback-popup" class="rounded-xl shadow-2xl overflow-hidden"><!> <!></div>',1),t4=re('<link rel="stylesheet" href="http://127.0.0.1:5500/packages/web-sdk/public/web-form-engine-core.css"/> <!>',1);function Eb(i,n){Je(n,!1);const u=te(),c=te(),d=Qv();let m=w(n,"themeMode",8,"light"),p=w(n,"feedbackConfiguration",8,null),g=w(n,"apiKey",8,""),h=w(n,"hostUrl",8,"");w(n,"deviceInfo",8,null),w(n,"sessionId",8,""),w(n,"userInfo",8,null);let b=w(n,"language",8,"en"),y=w(n,"configurationData",8,null),k=w(n,"onClose",8,void 0),v=w(n,"trackPopupHeight",8,void 0),x=w(n,"feedbackConfigId",8,void 0),S=w(n,"identifier",8,void 0),E=te(document.documentElement.clientWidth),C=te(!1),Y=te(null),oe=te(),J;const B=()=>{if(l(oe)){const me=l(oe).querySelector("#section-container");if(me){const Se=window.innerHeight*.75,le=me.clientHeight,ie=84,ee=60,W=Math.min(le+ie+ee,Se);l(oe).style.transition.includes("height")||qh(oe,l(oe).style.transition="height 0.5s cubic-bezier(0.4, 0, 0.2, 1)"),qh(oe,l(oe).style.height=`${W}px`),me.style.overflowY=le+ie+ee>Se?"auto":"hidden"}}},G=()=>{$(E,document.documentElement.clientWidth)},R=()=>{d.clearResponses(),$(C,!1),setTimeout(()=>{k()?.()},300)},H=me=>{const Se={position:"fixed",width:l(u),"max-width":l(u),height:"30%",transition:"transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease","transform-origin":"center center","will-change":"transform, opacity"};switch(me){case"top-left":return{...Se,top:"12px",left:"12px",transform:"translate(0, 0)"};case"top-center":return{...Se,top:"12px",left:"50%",transform:"translate(-50%, 0)"};case"top-right":return{...Se,top:"12px",right:"12px",transform:"translate(0, 0)"};case"center-left":return{...Se,top:"50%",left:"12px",transform:"translateY(-50%)"};case"center":return{...Se,top:"50%",left:"50%",transform:"translate(-50%, -50%) scale(1)"};case"center-right":return{...Se,top:"50%",right:"12px",transform:"translateY(-50%)"};case"bottom-left":return{...Se,bottom:"12px",left:"12px",transform:"translate(0, 0)"};case"bottom-center":return{...Se,bottom:"12px",left:"50%",transform:"translate(-50%, 0)"};case"bottom-right":return{...Se,bottom:"12px",right:"12px",transform:"translate(0, 0)"};case"bottom-full":return{...Se,bottom:"0",left:"50%",width:"100%","max-width":"100%",transform:"translate(-50%, 0)"};case"top-full":return{...Se,top:"0",left:"50%",width:"100%","max-width":"100%",transform:"translate(-50%, 0)"};case"full":return{...Se,top:"0",left:"0",width:"100%","max-width":"100%",height:"100%",transform:"translate(0, 0)"};default:return Se}},K=me=>Object.entries(me).map(([Se,le])=>`${Se}: ${le}`).join("; ");En(()=>{window.addEventListener("resize",G),setTimeout(()=>{$(C,!0)},100),J=window.setInterval(B,5e3),v()&&v()(B),requestAnimationFrame(()=>{setTimeout(()=>B(),0)})}),bo(()=>{window.removeEventListener("resize",G),J&&window.clearInterval(J)}),ve(()=>l(E),()=>{$(u,l(E)<=768?"95%":"600px")}),ve(()=>N(y()),()=>{$(Y,y())}),ve(()=>l(Y),()=>{l(Y)?.feedbackIdentifier}),ve(()=>N(p()),()=>{$(c,p()&&p().appearanceProperties&&p().appearanceProperties.selectedPosition?H(p().appearanceProperties.selectedPosition):{})}),fr(),er();var $e=t4(),Ie=fe(Te($e),2);{var ke=me=>{var Se=e4(),le=Te(Se);{var ie=D=>{var ne=Xz();je(()=>$o(ne,`background-color: ${N(p()),N(m()),U(()=>p().appearanceProperties.themes[m()].overlayColor)??""}; z-index: 1000; opacity: ${l(C)?"0.4":"0"};`)),O(D,ne)};ae(le,D=>{N(p()),U(()=>p()?.appearanceProperties?.featureSettings?.darkOverlay)&&D(ie)})}var ee=fe(le,2),W=Z(ee);{var F=D=>{qt(D,{variant:"ghost",size:"icon",class:"absolute top-3 right-3 z-10 h-8 w-8 rounded border-none bg-background text-primary hover:bg-accent hover:text-accent-foreground transition-all duration-200 active:scale-95",onclick:R,"aria-label":"Close popup",children:(ne,V)=>{Wv(ne,{size:20,stroke:2})},$$slots:{default:!0}})};ae(W,D=>{N(p()),U(()=>p()?.appearanceProperties?.featureSettings?.closeButton)&&D(F)})}var I=fe(W,2);{var j=D=>{{let ne=Le(()=>({value:b(),label:b()})),V=Le(()=>(l(Y),U(()=>l(Y)?.questionnaireFields.questions||{}))),Ce=Le(()=>(l(Y),U(()=>l(Y)?.questionnaireFields.selectedLanguages||[]))),_e=Le(()=>(l(Y),U(()=>l(Y)?.questionnaireFields.translations||{}))),Q=Le(()=>(l(Y),U(()=>l(Y)?.otherConfigurationProperties))),de=Le(()=>(l(Y),U(()=>l(Y)?.welcomeScreenProperties))),Ne=Le(()=>(l(Y),U(()=>l(Y)?.endScreenProperties))),xe=Le(()=>(l(Y),U(()=>l(Y)?.questionnaireFields.sections||[])));ol(D,{get theme(){return N(p()),U(()=>p().appearanceProperties.themes)},get themeSettings(){return N(p()),U(()=>p().appearanceProperties)},get currentMode(){return m()},get currentLanguage(){return l(ne)},get questions(){return l(V)},get questionLanguages(){return l(Ce)},get translations(){return l(_e)},get otherConfigurationProperties(){return l(Q)},get welcomeScreenProperties(){return l(de)},get endScreenProperties(){return l(Ne)},get sections(){return l(xe)},onSectionChange:()=>{requestAnimationFrame(()=>{setTimeout(()=>B(),0)})},onClose:R,get apiKey(){return g()},get hostUrl(){return h()},get feedbackConfigId(){return x()},get identifier(){return S()}})}};ae(I,D=>{N(p()),l(Y),U(()=>p()?.appearanceProperties&&l(Y))&&D(j)})}A(ee),Ur(ee,D=>$(oe,D),()=>l(oe)),je(D=>$o(ee,`${D??""}; background-color: ${N(p()),N(m()),U(()=>p()?.appearanceProperties?.themes?.[m()]?.overlayColor||"transparent")??""}; z-index: 1001;`),[()=>(l(c),U(()=>K(l(c))))]),O(me,Se)};ae(Ie,me=>{me(ke)})}O(i,$e),Be()}var r4=re('<div class="encatch-scale-wrapper"><!></div>');function al(i,n){Je(n,!1);const u=Qv();let c=w(n,"theme",28,()=>({dark:{brandColor:"#000",overlayColor:"#000",textColor:"#fff",backgroundColor:"#000"},light:{brandColor:"#fff",overlayColor:"#fff",textColor:"#000",backgroundColor:"#fff"}})),d=w(n,"currentMode",12,"light"),m=w(n,"currentLanguage",28,()=>({value:"en",label:"en",isFixed:!0})),p=w(n,"questions",28,()=>({})),g=w(n,"questionLanguages",28,()=>[]),h=w(n,"otherConfigurationProperties",12,null),b=w(n,"welcomeScreenProperties",12,null),y=w(n,"endScreenProperties",12,null),k=w(n,"translations",28,()=>({})),v=w(n,"sections",28,()=>[]),x=w(n,"themeSettings",12,null),S=w(n,"onClose",12,void 0),E=w(n,"onSectionChange",12,void 0),C=w(n,"apiKey",12,void 0),Y=w(n,"hostUrl",12,void 0),oe=w(n,"feedbackConfigId",12,void 0),J=w(n,"identifier",12,void 0),B=w(n,"cssLink",12,void 0),G=w(n,"scale",12,100),R=w(n,"persistMode",12,"none"),H=w(n,"instanceId",12,void 0),K=te(!1),$e=te(!1),Ie=te();const ke=I=>{if(!I)return null;let j=I;for(;j;){if(j instanceof ShadowRoot)return j;j=j.parentNode}return null},me=I=>{const j=new CSSStyleSheet,D=I/100;return j.replaceSync(`
279
279
  .encatch-scale-wrapper {
280
- zoom: ${E} !important;
280
+ zoom: ${D} !important;
281
281
  }
282
- `),C};let Se=ee();En(()=>{Y()||$(H,!0)}),bo(()=>{u.clearResponses()}),ve(()=>(l(Ie),l(Se),z(G())),()=>{if(l(Ie)){const N=ke(l(Ie));if(N&&l(Se)){const C=N.adoptedStyleSheets.indexOf(l(Se));C>-1&&N.adoptedStyleSheets.splice(C,1)}$(Se,fe(G())),N&&(N.adoptedStyleSheets=[...N.adoptedStyleSheets,l(Se)])}}),ve(()=>(l(Ie),z(Y()),l(H),l($e)),()=>{l(Ie)&&Y()&&!l(H)&&!l($e)&&setTimeout(()=>{const N=ke(l(Ie)),C=document.createElement("link");C.rel="stylesheet",C.href=Y(),C.onload=()=>{$(H,!0)},C.onerror=()=>{console.error("[EncatchApp] Failed to load CSS"),$($e,!0)},N?N.appendChild(C):document.head.appendChild(C)},0)}),fr();var me={get theme(){return c()},set theme(N){c(N),at()},get currentMode(){return d()},set currentMode(N){d(N),at()},get currentLanguage(){return m()},set currentLanguage(N){m(N),at()},get questions(){return p()},set questions(N){p(N),at()},get questionLanguages(){return g()},set questionLanguages(N){g(N),at()},get otherConfigurationProperties(){return h()},set otherConfigurationProperties(N){h(N),at()},get welcomeScreenProperties(){return b()},set welcomeScreenProperties(N){b(N),at()},get endScreenProperties(){return y()},set endScreenProperties(N){y(N),at()},get translations(){return k()},set translations(N){k(N),at()},get sections(){return v()},set sections(N){v(N),at()},get themeSettings(){return x()},set themeSettings(N){x(N),at()},get onClose(){return S()},set onClose(N){S(N),at()},get onSectionChange(){return O()},set onSectionChange(N){O(N),at()},get apiKey(){return U()},set apiKey(N){U(N),at()},get hostUrl(){return B()},set hostUrl(N){B(N),at()},get feedbackConfigId(){return oe()},set feedbackConfigId(N){oe(N),at()},get identifier(){return J()},set identifier(N){J(N),at()},get cssLink(){return Y()},set cssLink(N){Y(N),at()},get scale(){return G()},set scale(N){G(N),at()},get persistMode(){return F()},set persistMode(N){F(N),at()},get instanceId(){return K()},set instanceId(N){K(N),at()}};er();var ne=r4(),re=R(ne);{var W=N=>{ol(N,{get theme(){return c()},get currentMode(){return d()},get currentLanguage(){return m()},get questions(){return p()},get questionLanguages(){return g()},get otherConfigurationProperties(){return h()},get welcomeScreenProperties(){return b()},get endScreenProperties(){return y()},get translations(){return k()},get sections(){return v()},get themeSettings(){return x()},get onClose(){return S()},get onSectionChange(){return O()},get apiKey(){return U()},get hostUrl(){return B()},get feedbackConfigId(){return oe()},get identifier(){return J()},get persistMode(){return F()},get instanceId(){return K()}})};ae(re,N=>{l(H)&&N(W)})}return L(ne),Ur(ne,N=>$(Ie,N),()=>l(Ie)),T(i,ne),Be(me)}customElements.define("encatch-app",Lv(Pb,{theme:{},currentMode:{},currentLanguage:{},questions:{},questionLanguages:{},otherConfigurationProperties:{},welcomeScreenProperties:{},endScreenProperties:{},translations:{},sections:{},themeSettings:{},onClose:{},onSectionChange:{},apiKey:{},hostUrl:{},feedbackConfigId:{},identifier:{},cssLink:{},scale:{},persistMode:{},instanceId:{}},[],[],!0));const n4=Eb,i4=Pb;o.App=ol,o.EncatchAppElement=i4,o.EncatchFormElement=n4,o.PopupUi=Ob,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})}))})(Li,Li.exports)),Li.exports}var Pk=Ek();const Ck=Db({__proto__:null},[Pk]);tn.EncatchPreview=Wb,tn.useEncatchFormEvent=Qb,tn.useEncatchFormEventAll=Gb,Object.defineProperty(tn,Symbol.toStringTag,{value:"Module"})}));
282
+ `),j};let Se=te(),le=te("");En(()=>{B()||$(K,!0)}),bo(()=>{u.clearResponses()}),ve(()=>(l(Ie),l(Se),N(G())),()=>{if(l(Ie)){const I=ke(l(Ie));if(I&&l(Se)){const j=I.adoptedStyleSheets.indexOf(l(Se));j>-1&&I.adoptedStyleSheets.splice(j,1)}$(Se,me(G())),I&&(I.adoptedStyleSheets=[...I.adoptedStyleSheets,l(Se)])}}),ve(()=>(l(Ie),N(B()),l(le)),()=>{l(Ie)&&B()&&l(le)!==B()&&($(K,!1),$($e,!1),setTimeout(()=>{const I=ke(l(Ie)),j=document.createElement("link");j.rel="stylesheet",j.href=B(),j.onload=()=>{$(K,!0),$(le,B())},j.onerror=D=>{$($e,!0),$(le,B())},I?I.appendChild(j):document.head.appendChild(j)},0))}),fr();var ie={get theme(){return c()},set theme(I){c(I),at()},get currentMode(){return d()},set currentMode(I){d(I),at()},get currentLanguage(){return m()},set currentLanguage(I){m(I),at()},get questions(){return p()},set questions(I){p(I),at()},get questionLanguages(){return g()},set questionLanguages(I){g(I),at()},get otherConfigurationProperties(){return h()},set otherConfigurationProperties(I){h(I),at()},get welcomeScreenProperties(){return b()},set welcomeScreenProperties(I){b(I),at()},get endScreenProperties(){return y()},set endScreenProperties(I){y(I),at()},get translations(){return k()},set translations(I){k(I),at()},get sections(){return v()},set sections(I){v(I),at()},get themeSettings(){return x()},set themeSettings(I){x(I),at()},get onClose(){return S()},set onClose(I){S(I),at()},get onSectionChange(){return E()},set onSectionChange(I){E(I),at()},get apiKey(){return C()},set apiKey(I){C(I),at()},get hostUrl(){return Y()},set hostUrl(I){Y(I),at()},get feedbackConfigId(){return oe()},set feedbackConfigId(I){oe(I),at()},get identifier(){return J()},set identifier(I){J(I),at()},get cssLink(){return B()},set cssLink(I){B(I),at()},get scale(){return G()},set scale(I){G(I),at()},get persistMode(){return R()},set persistMode(I){R(I),at()},get instanceId(){return H()},set instanceId(I){H(I),at()}};er();var ee=r4(),W=Z(ee);{var F=I=>{ol(I,{get theme(){return c()},get currentMode(){return d()},get currentLanguage(){return m()},get questions(){return p()},get questionLanguages(){return g()},get otherConfigurationProperties(){return h()},get welcomeScreenProperties(){return b()},get endScreenProperties(){return y()},get translations(){return k()},get sections(){return v()},get themeSettings(){return x()},get onClose(){return S()},get onSectionChange(){return E()},get apiKey(){return C()},get hostUrl(){return Y()},get feedbackConfigId(){return oe()},get identifier(){return J()},get persistMode(){return R()},get instanceId(){return H()}})};ae(W,I=>{l(K)&&I(F)})}return A(ee),Ur(ee,I=>$(Ie,I),()=>l(Ie)),O(i,ee),Be(ie)}customElements.define("encatch-app",Lv(al,{theme:{},currentMode:{},currentLanguage:{},questions:{},questionLanguages:{},otherConfigurationProperties:{},welcomeScreenProperties:{},endScreenProperties:{},translations:{},sections:{},themeSettings:{},onClose:{},onSectionChange:{},apiKey:{},hostUrl:{},feedbackConfigId:{},identifier:{},cssLink:{},scale:{},persistMode:{},instanceId:{}},[],[],!0));function Pb(i,n){Je(n,!1);let u=w(n,"themeMode",12,"light"),c=w(n,"feedbackConfiguration",12,null),d=w(n,"apiKey",12,""),m=w(n,"hostUrl",12,""),p=w(n,"deviceInfo",12,null),g=w(n,"sessionId",12,""),h=w(n,"userInfo",12,null),b=w(n,"language",12,"en"),y=w(n,"configurationData",12,null),k=w(n,"onClose",12,void 0),v=w(n,"trackPopupHeight",12,void 0),x=w(n,"feedbackConfigId",12,void 0),S=w(n,"identifier",12,void 0);var E={get themeMode(){return u()},set themeMode(C){u(C),at()},get feedbackConfiguration(){return c()},set feedbackConfiguration(C){c(C),at()},get apiKey(){return d()},set apiKey(C){d(C),at()},get hostUrl(){return m()},set hostUrl(C){m(C),at()},get deviceInfo(){return p()},set deviceInfo(C){p(C),at()},get sessionId(){return g()},set sessionId(C){g(C),at()},get userInfo(){return h()},set userInfo(C){h(C),at()},get language(){return b()},set language(C){b(C),at()},get configurationData(){return y()},set configurationData(C){y(C),at()},get onClose(){return k()},set onClose(C){k(C),at()},get trackPopupHeight(){return v()},set trackPopupHeight(C){v(C),at()},get feedbackConfigId(){return x()},set feedbackConfigId(C){x(C),at()},get identifier(){return S()},set identifier(C){S(C),at()}};return Eb(i,{get themeMode(){return u()},get feedbackConfiguration(){return c()},get apiKey(){return d()},get hostUrl(){return m()},get deviceInfo(){return p()},get sessionId(){return g()},get userInfo(){return h()},get language(){return b()},get configurationData(){return y()},get onClose(){return k()},get trackPopupHeight(){return v()},get feedbackConfigId(){return x()},get identifier(){return S()}}),Be(E)}customElements.define("encatch-form",Lv(Pb,{themeMode:{},feedbackConfiguration:{},apiKey:{},hostUrl:{},deviceInfo:{},sessionId:{},userInfo:{},language:{},configurationData:{},onClose:{},trackPopupHeight:{},feedbackConfigId:{},identifier:{}},[],[],!0));const n4=Pb,i4=al;o.App=ol,o.EncatchApp=al,o.EncatchAppElement=i4,o.EncatchFormElement=n4,o.PopupUi=Eb,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})}))})(Di,Di.exports)),Di.exports}var Pk=Ek();const Ck=Ab({__proto__:null},[Pk]);tn.EncatchPreview=Wb,tn.useEncatchFormEvent=Vb,tn.useEncatchFormEventAll=Qb,Object.defineProperty(tn,Symbol.toStringTag,{value:"Module"})}));