@merittdev/horus-lens 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.cjs +99 -2
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +2 -2
- package/dist/browser.d.ts +2 -2
- package/dist/browser.js +2 -2
- package/dist/{chunk-U6GBOUCE.js → chunk-LIYEDZV7.js} +99 -2
- package/dist/chunk-LIYEDZV7.js.map +1 -0
- package/dist/{chunk-SDMTZ5Y6.js → chunk-PNY6BL4C.js} +4 -3
- package/dist/{chunk-SDMTZ5Y6.js.map → chunk-PNY6BL4C.js.map} +1 -1
- package/dist/index.cjs +99 -1
- package/dist/index.cjs.map +1 -1
- package/dist/{index.d-QzZn4EMM.d.cts → index.d-BYG_Mjs-.d.cts} +31 -1
- package/dist/{index.d-Cyvb07sp.d.cts → index.d-DTx4C384.d.cts} +18 -1
- package/dist/{index.d-Cyvb07sp.d.ts → index.d-DTx4C384.d.ts} +18 -1
- package/dist/{index.d-BtnbCqUx.d.ts → index.d-Dyzc1E9T.d.ts} +31 -1
- package/dist/index.d.cts +59 -2
- package/dist/index.d.ts +59 -2
- package/dist/index.js +3 -1
- package/dist/lens.min.js +24 -24
- package/dist/lens.min.js.map +1 -1
- package/dist/react.cjs +100 -3
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/react.js +3 -3
- package/dist/react.js.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-U6GBOUCE.js.map +0 -1
package/dist/lens.min.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";var LensSDK=(()=>{var Bo=Object.defineProperty;var lb=Object.getOwnPropertyDescriptor;var cb=Object.getOwnPropertyNames;var ub=Object.prototype.hasOwnProperty;var Ve=(e,r)=>{for(var n in r)Bo(e,n,{get:r[n],enumerable:!0})},db=(e,r,n,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of cb(r))!ub.call(e,t)&&t!==n&&Bo(e,t,{get:()=>r[t],enumerable:!(o=lb(r,t))||o.enumerable});return e};var fb=e=>db(Bo({},"__esModule",{value:!0}),e);var _0={};Ve(_0,{DEFAULT_CDN_URL:()=>ob,LOADER_SNIPPET:()=>b0,autoBoot:()=>ab,boot:()=>Fo,installGlobal:()=>xr,isGateActive:()=>tb,loaderSnippet:()=>sb,processQueue:()=>ib});var pb=Object.defineProperty,hb=(e,r,n)=>r in e?pb(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,M=(e,r,n)=>hb(e,typeof r!="symbol"?r+"":r,n),Qf,mb=Object.defineProperty,gb=(e,r,n)=>r in e?mb(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,ep=(e,r,n)=>gb(e,typeof r!="symbol"?r+"":r,n),pe=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(pe||{}),tp={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},rp={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},wn={},Sh={},vb=()=>!!globalThis.Zone;function ca(e){if(wn[e])return wn[e];let r=globalThis[e],n=r.prototype,o=e in tp?tp[e]:void 0,t=!!(o&&o.every(a=>{var c,u;return!!((u=(c=Object.getOwnPropertyDescriptor(n,a))==null?void 0:c.get)!=null&&u.toString().includes("[native code]"))})),i=e in rp?rp[e]:void 0,s=!!(i&&i.every(a=>{var c;return typeof n[a]=="function"&&((c=n[a])==null?void 0:c.toString().includes("[native code]"))}));if(t&&s&&!vb())return wn[e]=r.prototype,r.prototype;try{let a=document.createElement("iframe");a.style.display="none",document.body.appendChild(a);let c=a.contentWindow;if(!c)return r.prototype;let u=c[e].prototype;if(!u)return a.remove(),n;let l=navigator.userAgent;return l.includes("Safari")&&!l.includes("Chrome")?(a.classList.add("rr-block"),a.setAttribute("__rrwebUntaintedMutationObserver",""),Sh[e]=()=>a.remove()):a.remove(),wn[e]=u}catch{return n}}var Wo={};function Qe(e,r,n){var o;let t=`${e}.${String(n)}`;if(Wo[t])return Wo[t].call(r);let i=ca(e),s=(o=Object.getOwnPropertyDescriptor(i,n))==null?void 0:o.get;return s?(Wo[t]=s,s.call(r)):r[n]}var Vo={};function $h(e,r,n){let o=`${e}.${String(n)}`;if(Vo[o])return Vo[o].bind(r);let i=ca(e)[n];return typeof i!="function"?r[n]:(Vo[o]=i,i.bind(r))}function yb(e){return Qe("Node",e,"ownerDocument")}function bb(e){return Qe("Node",e,"childNodes")}function wb(e){return Qe("Node",e,"parentNode")}function xb(e){return Qe("Node",e,"parentElement")}function _b(e){return Qe("Node",e,"textContent")}function Sb(e,r){return $h("Node",e,"contains")(r)}function $b(e){return $h("Node",e,"getRootNode")()}function kb(e){return!e||!("host"in e)?null:Qe("ShadowRoot",e,"host")}function Ib(e){return e.styleSheets}function Eb(e){return!e||!("shadowRoot"in e)?null:Qe("Element",e,"shadowRoot")}function Cb(e,r){return Qe("Element",e,"querySelector")(r)}function Ob(e,r){return Qe("Element",e,"querySelectorAll")(r)}function Nb(){return[ca("MutationObserver").constructor,Sh.MutationObserver??(()=>{})]}var kh=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(kh=()=>new Date().getTime());function zb(e,r,n){try{if(!(r in e))return()=>{};let o=e[r],t=n(o);return typeof t=="function"&&(t.prototype=t.prototype||{},Object.defineProperties(t,{__rrweb_original__:{enumerable:!1,value:o}})),e[r]=t,()=>{e[r]=o}}catch{return()=>{}}}var ve={ownerDocument:yb,childNodes:bb,parentNode:wb,parentElement:xb,textContent:_b,contains:Sb,getRootNode:$b,host:kb,styleSheets:Ib,shadowRoot:Eb,querySelector:Cb,querySelectorAll:Ob,nowTimestamp:kh,mutationObserverCtor:Nb,patch:zb};function Ih(e){return e.nodeType===e.ELEMENT_NODE}function $r(e){let r=e&&"host"in e&&"mode"in e&&ve.host(e)||null;return!!(r&&"shadowRoot"in r&&ve.shadowRoot(r)===e)}function kr(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function Db(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function Tb(e){let{cssText:r}=e;if(r.split('"').length<3)return r;let n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function Xs(e){try{let r=e.rules||e.cssRules;if(!r)return null;let n=e.href;!n&&e.ownerNode&&(n=e.ownerNode.baseURI);let o=Array.from(r,t=>Eh(t,n)).join("");return Db(o)}catch{return null}}function Eh(e,r){if(Rb(e)){let n;try{n=Xs(e.styleSheet)||Tb(e)}catch{n=e.cssText}return e.styleSheet.href?Pn(n,e.styleSheet.href):n}else{let n=e.cssText;return Ab(e)&&e.selectorText.includes(":")&&(n=Pb(n)),r?Pn(n,r):n}}function Pb(e){let r=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(r,"$1\\$2")}function Rb(e){return"styleSheet"in e}function Ab(e){return"selectorText"in e}var zn=class{constructor(){ep(this,"idNodeMap",new Map),ep(this,"nodeMetaMap",new WeakMap)}getId(r){var n;return r?((n=this.getMeta(r))==null?void 0:n.id)??-1:-1}getNode(r){return this.idNodeMap.get(r)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(r){return this.nodeMetaMap.get(r)||null}removeNodeFromMap(r){let n=this.getId(r);this.idNodeMap.delete(n),r.childNodes&&r.childNodes.forEach(o=>this.removeNodeFromMap(o))}has(r){return this.idNodeMap.has(r)}hasNode(r){return this.nodeMetaMap.has(r)}add(r,n){let o=n.id;this.idNodeMap.set(o,r),this.nodeMetaMap.set(r,n)}replace(r,n){let o=this.getNode(r);if(o){let t=this.nodeMetaMap.get(o);t&&this.nodeMetaMap.set(n,t)}this.idNodeMap.set(r,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Mb(){return new zn}function Dn({element:e,maskInputOptions:r,tagName:n,type:o,value:t,maskInputFn:i}){let s=t||"",a=o&&_t(o);return(r[n.toLowerCase()]||a&&r[a])&&(i?s=i(s,e):s="*".repeat(s.length)),s}function _t(e){return e.toLowerCase()}var np="__rrweb_original__";function Ub(e){let r=e.getContext("2d");if(!r)return!0;let n=50;for(let o=0;o<e.width;o+=n)for(let t=0;t<e.height;t+=n){let i=r.getImageData,s=np in i?i[np]:i;if(new Uint32Array(s.call(r,o,t,Math.min(n,e.width-o),Math.min(n,e.height-t)).data.buffer).some(c=>c!==0))return!1}return!0}function Tn(e){let r=e.type;return e.hasAttribute("data-rr-is-password")?"password":r?_t(r):null}function Ch(e,r){let n;try{n=new URL(e,r??window.location.href)}catch{return null}let o=/\.([0-9a-z]+)(?:$)/i,t=n.pathname.match(o);return t?.[1]??null}function jb(e){let r="";return e.indexOf("//")>-1?r=e.split("/").slice(0,3).join("/"):r=e.split("/")[0],r=r.split("?")[0],r}var Lb=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Fb=/^(?:[a-z+]+:)?\/\//i,Zb=/^www\..*/i,Bb=/^(data:)([^,]*),(.*)/i;function Pn(e,r){return(e||"").replace(Lb,(n,o,t,i,s,a)=>{let c=t||s||a,u=o||i||"";if(!c)return n;if(Fb.test(c)||Zb.test(c))return`url(${u}${c}${u})`;if(Bb.test(c))return`url(${u}${c}${u})`;if(c[0]==="/")return`url(${u}${jb(r)+c}${u})`;let l=c.split("#")[0],p=c.substring(l.length),f=r.split("#")[0].split("/"),d=l.split("/");f.pop();for(let m of d)m!=="."&&(m===".."?f.pop():f.push(m));return`url(${u}${f.join("/")}${p}${u})`})}function xn(e,r=!1){return r?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function Wb(e,r,n=!1){let o=Array.from(r.childNodes),t=[],i=0;if(o.length>1&&e&&typeof e=="string"){let s=xn(e,n),a=s.length/e.length;for(let c=1;c<o.length;c++)if(o[c].textContent&&typeof o[c].textContent=="string"){let u=xn(o[c].textContent,n),l=100,p=3;for(;p<u.length&&(u[p].match(/[a-zA-Z0-9]/)||u.indexOf(u.substring(0,p),1)!==-1);p++);for(;p<u.length;p++){let f=u.substring(0,p),d=s.split(f),m=-1;if(d.length===2)m=d[0].length;else if(d.length>2&&d[0]===""&&o[c-1].textContent!=="")m=s.indexOf(f,1);else if(d.length===1){if(f=f.substring(0,f.length-1),d=s.split(f),d.length<=1)return t.push(e),t;p=l+1}else p===u.length-1&&(m=s.indexOf(f));if(d.length>=2&&p>l){let h=o[c-1].textContent;if(h&&typeof h=="string"){let g=xn(h).length;m=s.indexOf(f,g)}m===-1&&(m=d[0].length)}if(m!==-1){let h=Math.floor(m/a);for(;h>0&&h<e.length;){if(i+=1,i>50*o.length)return t.push(e),t;let g=xn(e.substring(0,h),n);if(g.length===m){t.push(e.substring(0,h)),e=e.substring(h),s=s.substring(m);break}else g.length<m?h+=Math.max(1,Math.floor((m-g.length)/a)):h-=Math.max(1,Math.floor((g.length-m)*a))}break}}}}return t.push(e),t}function Vb(e,r){return Wb(e,r).join("/* rr_split */")}var qb=1,Gb=new RegExp("[^a-z0-9-_:]"),Er=-2;function Oh(){return qb++}function Jb(e){if(e instanceof HTMLFormElement)return"form";let r=_t(e.tagName);return Gb.test(r)?"div":r}var Rt,ip,Hb=/^[^ \t\n\r\u000c]+/,Xb=/^[, \t\n\r\u000c]+/;function Kb(e,r){if(r.trim()==="")return r;let n=0;function o(i){let s,a=i.exec(r.substring(n));return a?(s=a[0],n+=s.length,s):""}let t=[];for(;o(Xb),!(n>=r.length);){let i=o(Hb);if(i.slice(-1)===",")i=Ut(e,i.substring(0,i.length-1)),t.push(i);else{let s="";i=Ut(e,i);let a=!1;for(;;){let c=r.charAt(n);if(c===""){t.push((i+s).trim());break}else if(a)c===")"&&(a=!1);else if(c===","){n+=1,t.push((i+s).trim());break}else c==="("&&(a=!0);s+=c,n+=1}}}return t.join(", ")}var op=new WeakMap;function Ut(e,r){return!r||r.trim()===""?r:ua(e,r)}function Yb(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function ua(e,r){let n=op.get(e);if(n||(n=e.createElement("a"),op.set(e,n)),!r)r="";else if(r.startsWith("blob:")||r.startsWith("data:"))return r;return n.setAttribute("href",r),n.href}function Nh(e,r,n,o){return o&&(n==="src"||n==="href"&&!(r==="use"&&o[0]==="#")||n==="xlink:href"&&o[0]!=="#"||n==="background"&&["table","td","th"].includes(r)?Ut(e,o):n==="srcset"?Kb(e,o):n==="style"?Pn(o,ua(e)):r==="object"&&n==="data"?Ut(e,o):o)}function zh(e,r,n){return["video","audio"].includes(e)&&r==="autoplay"}function Qb(e,r,n){try{if(typeof r=="string"){if(e.classList.contains(r))return!0}else for(let o=e.classList.length;o--;){let t=e.classList[o];if(r.test(t))return!0}if(n)return e.matches(n)}catch{}return!1}function Rn(e,r,n){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return n?Rn(ve.parentNode(e),r,n):!1;for(let o=e.classList.length;o--;){let t=e.classList[o];if(r.test(t))return!0}return n?Rn(ve.parentNode(e),r,n):!1}function Dh(e,r,n,o){let t;if(Ih(e)){if(t=e,!ve.childNodes(t).length)return!1}else{if(ve.parentElement(e)===null)return!1;t=ve.parentElement(e)}try{if(typeof r=="string"){if(o){if(t.closest(`.${r}`))return!0}else if(t.classList.contains(r))return!0}else if(Rn(t,r,o))return!0;if(n){if(o){if(t.closest(n))return!0}else if(t.matches(n))return!0}}catch{}return!1}function ew(e,r,n){let o=e.contentWindow;if(!o)return;let t=!1,i;try{i=o.document.readyState}catch{return}if(i!=="complete"){let a=setTimeout(()=>{t||(r(),t=!0)},n);e.addEventListener("load",()=>{clearTimeout(a),t=!0,r()});return}let s="about:blank";if(o.location.href!==s||e.src===s||e.src==="")return setTimeout(r,0),e.addEventListener("load",r);e.addEventListener("load",r)}function tw(e,r,n){let o=!1,t;try{t=e.sheet}catch{return}if(t)return;let i=setTimeout(()=>{o||(r(),o=!0)},n);e.addEventListener("load",()=>{clearTimeout(i),o=!0,r()})}function rw(e,r){let{doc:n,mirror:o,blockClass:t,blockSelector:i,needsMask:s,inlineStylesheet:a,maskInputOptions:c={},maskTextFn:u,maskInputFn:l,dataURLOptions:p={},inlineImages:f,recordCanvas:d,keepIframeSrcFn:m,newlyAddedElement:h=!1,cssCaptured:g=!1}=r,x=nw(n,o);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:pe.Document,childNodes:[],compatMode:e.compatMode}:{type:pe.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:pe.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:x};case e.ELEMENT_NODE:return ow(e,{doc:n,blockClass:t,blockSelector:i,inlineStylesheet:a,maskInputOptions:c,maskInputFn:l,dataURLOptions:p,inlineImages:f,recordCanvas:d,keepIframeSrcFn:m,newlyAddedElement:h,rootId:x});case e.TEXT_NODE:return iw(e,{doc:n,needsMask:s,maskTextFn:u,rootId:x,cssCaptured:g});case e.CDATA_SECTION_NODE:return{type:pe.CDATA,textContent:"",rootId:x};case e.COMMENT_NODE:return{type:pe.Comment,textContent:ve.textContent(e)||"",rootId:x};default:return!1}}function nw(e,r){if(!r.hasNode(e))return;let n=r.getId(e);return n===1?void 0:n}function iw(e,r){let{needsMask:n,maskTextFn:o,rootId:t,cssCaptured:i}=r,s=ve.parentNode(e),a=s&&s.tagName,c="",u=a==="STYLE"?!0:void 0,l=a==="SCRIPT"?!0:void 0;return l?c="SCRIPT_PLACEHOLDER":i||(c=ve.textContent(e),u&&c&&(c=Pn(c,ua(r.doc)))),!u&&!l&&c&&n&&(c=o?o(c,ve.parentElement(e)):c.replace(/[\S]/g,"*")),{type:pe.Text,textContent:c||"",rootId:t}}function ow(e,r){let{doc:n,blockClass:o,blockSelector:t,inlineStylesheet:i,maskInputOptions:s={},maskInputFn:a,dataURLOptions:c={},inlineImages:u,recordCanvas:l,keepIframeSrcFn:p,newlyAddedElement:f=!1,rootId:d}=r,m=Qb(e,o,t),h=Jb(e),g={},x=e.attributes.length;for(let y=0;y<x;y++){let _=e.attributes[y];zh(h,_.name,_.value)||(g[_.name]=Nh(n,h,_t(_.name),_.value))}if(h==="link"&&i){let y=Array.from(n.styleSheets).find(v=>v.href===e.href),_=null;y&&(_=Xs(y)),_&&(delete g.rel,delete g.href,g._cssText=_)}if(h==="style"&&e.sheet){let y=Xs(e.sheet);y&&(e.childNodes.length>1&&(y=Vb(y,e)),g._cssText=y)}if(["input","textarea","select"].includes(h)){let y=e.value,_=e.checked;g.type!=="radio"&&g.type!=="checkbox"&&g.type!=="submit"&&g.type!=="button"&&y?g.value=Dn({element:e,type:Tn(e),tagName:h,value:y,maskInputOptions:s,maskInputFn:a}):_&&(g.checked=_)}if(h==="option"&&(e.selected&&!s.select?g.selected=!0:delete g.selected),h==="dialog"&&e.open&&(g.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),h==="canvas"&&l){if(e.__context==="2d")Ub(e)||(g.rr_dataURL=e.toDataURL(c.type,c.quality));else if(!("__context"in e)){let y=e.toDataURL(c.type,c.quality),_=n.createElement("canvas");_.width=e.width,_.height=e.height;let v=_.toDataURL(c.type,c.quality);y!==v&&(g.rr_dataURL=y)}}if(h==="img"&&u){Rt||(Rt=n.createElement("canvas"),ip=Rt.getContext("2d"));let y=e,_=y.currentSrc||y.getAttribute("src")||"<unknown-src>",v=y.crossOrigin,w=()=>{y.removeEventListener("load",w);try{Rt.width=y.naturalWidth,Rt.height=y.naturalHeight,ip.drawImage(y,0,0),g.rr_dataURL=Rt.toDataURL(c.type,c.quality)}catch(S){if(y.crossOrigin!=="anonymous"){y.crossOrigin="anonymous",y.complete&&y.naturalWidth!==0?w():y.addEventListener("load",w);return}else console.warn(`Cannot inline img src=${_}! Error: ${S}`)}y.crossOrigin==="anonymous"&&(v?g.crossOrigin=v:y.removeAttribute("crossorigin"))};y.complete&&y.naturalWidth!==0?w():y.addEventListener("load",w)}if(["audio","video"].includes(h)){let y=g;y.rr_mediaState=e.paused?"paused":"played",y.rr_mediaCurrentTime=e.currentTime,y.rr_mediaPlaybackRate=e.playbackRate,y.rr_mediaMuted=e.muted,y.rr_mediaLoop=e.loop,y.rr_mediaVolume=e.volume}if(f||(e.scrollLeft&&(g.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(g.rr_scrollTop=e.scrollTop)),m){let{width:y,height:_}=e.getBoundingClientRect();g={class:g.class,rr_width:`${y}px`,rr_height:`${_}px`}}h==="iframe"&&!p(g.src)&&(e.contentDocument||(g.rr_src=g.src),delete g.src);let b;try{customElements.get(h)&&(b=!0)}catch{}return{type:pe.Element,tagName:h,attributes:g,childNodes:[],isSVG:Yb(e)||void 0,needBlock:m,rootId:d,isCustom:b}}function ie(e){return e==null?"":e.toLowerCase()}function Th(e){return e===!0||e==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:e==="all",headMetaDescKeywords:e==="all",headTitleMutations:e==="all"}:e||{}}function sw(e,r){if(r.comment&&e.type===pe.Comment)return!0;if(e.type===pe.Element){if(r.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&Ch(e.attributes.href)==="js"))return!0;if(r.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(ie(e.attributes.name).match(/^msapplication-tile(image|color)$/)||ie(e.attributes.name)==="application-name"||ie(e.attributes.rel)==="icon"||ie(e.attributes.rel)==="apple-touch-icon"||ie(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(r.headMetaDescKeywords&&ie(e.attributes.name).match(/^description|keywords$/))return!0;if(r.headMetaSocial&&(ie(e.attributes.property).match(/^(og|twitter|fb):/)||ie(e.attributes.name).match(/^(og|twitter):/)||ie(e.attributes.name)==="pinterest"))return!0;if(r.headMetaRobots&&(ie(e.attributes.name)==="robots"||ie(e.attributes.name)==="googlebot"||ie(e.attributes.name)==="bingbot"))return!0;if(r.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(r.headMetaAuthorship&&(ie(e.attributes.name)==="author"||ie(e.attributes.name)==="generator"||ie(e.attributes.name)==="framework"||ie(e.attributes.name)==="publisher"||ie(e.attributes.name)==="progid"||ie(e.attributes.property).match(/^article:/)||ie(e.attributes.property).match(/^product:/)))return!0;if(r.headMetaVerification&&(ie(e.attributes.name)==="google-site-verification"||ie(e.attributes.name)==="yandex-verification"||ie(e.attributes.name)==="csrf-token"||ie(e.attributes.name)==="p:domain_verify"||ie(e.attributes.name)==="verify-v1"||ie(e.attributes.name)==="verification"||ie(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function jt(e,r){let{doc:n,mirror:o,blockClass:t,blockSelector:i,maskTextClass:s,maskTextSelector:a,skipChild:c=!1,inlineStylesheet:u=!0,maskInputOptions:l={},maskTextFn:p,maskInputFn:f,slimDOMOptions:d,dataURLOptions:m={},inlineImages:h=!1,recordCanvas:g=!1,onSerialize:x,onIframeLoad:b,iframeLoadTimeout:y=5e3,onStylesheetLoad:_,stylesheetLoadTimeout:v=5e3,keepIframeSrcFn:w=()=>!1,newlyAddedElement:S=!1,cssCaptured:C=!1}=r,{needsMask:R}=r,{preserveWhiteSpace:O=!0}=r;R||(R=Dh(e,s,a,R===void 0));let B=rw(e,{doc:n,mirror:o,blockClass:t,blockSelector:i,needsMask:R,inlineStylesheet:u,maskInputOptions:l,maskTextFn:p,maskInputFn:f,dataURLOptions:m,inlineImages:h,recordCanvas:g,keepIframeSrcFn:w,newlyAddedElement:S,cssCaptured:C});if(!B)return console.warn(e,"not serialized"),null;let j;o.hasNode(e)?j=o.getId(e):sw(B,d)||!O&&B.type===pe.Text&&!B.textContent.replace(/^\s+|\s+$/gm,"").length?j=Er:j=Oh();let E=Object.assign(B,{id:j});if(o.add(e,E),j===Er)return null;x&&x(e);let Me=!c;if(E.type===pe.Element){Me=Me&&!E.needBlock,delete E.needBlock;let K=ve.shadowRoot(e);K&&kr(K)&&(E.isShadowHost=!0)}if((E.type===pe.Document||E.type===pe.Element)&&Me){d.headWhitespace&&E.type===pe.Element&&E.tagName==="head"&&(O=!1);let K={doc:n,mirror:o,blockClass:t,blockSelector:i,needsMask:R,maskTextClass:s,maskTextSelector:a,skipChild:c,inlineStylesheet:u,maskInputOptions:l,maskTextFn:p,maskInputFn:f,slimDOMOptions:d,dataURLOptions:m,inlineImages:h,recordCanvas:g,preserveWhiteSpace:O,onSerialize:x,onIframeLoad:b,iframeLoadTimeout:y,onStylesheetLoad:_,stylesheetLoadTimeout:v,keepIframeSrcFn:w,cssCaptured:!1};if(!(E.type===pe.Element&&E.tagName==="textarea"&&E.attributes.value!==void 0)){E.type===pe.Element&&E.attributes._cssText!==void 0&&typeof E.attributes._cssText=="string"&&(K.cssCaptured=!0);for(let ue of Array.from(ve.childNodes(e))){let ge=jt(ue,K);ge&&E.childNodes.push(ge)}}let H=null;if(Ih(e)&&(H=ve.shadowRoot(e)))for(let ue of Array.from(ve.childNodes(H))){let ge=jt(ue,K);ge&&(kr(H)&&(ge.isShadow=!0),E.childNodes.push(ge))}}let Ne=ve.parentNode(e);return Ne&&$r(Ne)&&kr(Ne)&&(E.isShadow=!0),E.type===pe.Element&&E.tagName==="iframe"&&ew(e,()=>{let K=e.contentDocument;if(K&&b){let H=jt(K,{doc:K,mirror:o,blockClass:t,blockSelector:i,needsMask:R,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:u,maskInputOptions:l,maskTextFn:p,maskInputFn:f,slimDOMOptions:d,dataURLOptions:m,inlineImages:h,recordCanvas:g,preserveWhiteSpace:O,onSerialize:x,onIframeLoad:b,iframeLoadTimeout:y,onStylesheetLoad:_,stylesheetLoadTimeout:v,keepIframeSrcFn:w});H&&b(e,H)}},y),E.type===pe.Element&&E.tagName==="link"&&typeof E.attributes.rel=="string"&&(E.attributes.rel==="stylesheet"||E.attributes.rel==="preload"&&typeof E.attributes.href=="string"&&Ch(E.attributes.href)==="css")&&tw(e,()=>{if(_){let K=jt(e,{doc:n,mirror:o,blockClass:t,blockSelector:i,needsMask:R,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:u,maskInputOptions:l,maskTextFn:p,maskInputFn:f,slimDOMOptions:d,dataURLOptions:m,inlineImages:h,recordCanvas:g,preserveWhiteSpace:O,onSerialize:x,onIframeLoad:b,iframeLoadTimeout:y,onStylesheetLoad:_,stylesheetLoadTimeout:v,keepIframeSrcFn:w});K&&_(e,K)}},v),E}function aw(e,r){let{mirror:n=new zn,blockClass:o="rr-block",blockSelector:t=null,maskTextClass:i="rr-mask",maskTextSelector:s=null,inlineStylesheet:a=!0,inlineImages:c=!1,recordCanvas:u=!1,maskAllInputs:l=!1,maskTextFn:p,maskInputFn:f,slimDOM:d=!1,dataURLOptions:m,preserveWhiteSpace:h,onSerialize:g,onIframeLoad:x,iframeLoadTimeout:b,onStylesheetLoad:y,stylesheetLoadTimeout:_,keepIframeSrcFn:v=()=>!1}=r,w=l===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:l===!1?{password:!0}:l,S=Th(d);return jt(e,{doc:e,mirror:n,blockClass:o,blockSelector:t,maskTextClass:i,maskTextSelector:s,skipChild:!1,inlineStylesheet:a,maskInputOptions:w,maskTextFn:p,maskInputFn:f,slimDOMOptions:S,dataURLOptions:m,inlineImages:c,recordCanvas:u,preserveWhiteSpace:h,onSerialize:g,onIframeLoad:x,iframeLoadTimeout:b,onStylesheetLoad:y,stylesheetLoadTimeout:_,keepIframeSrcFn:v,newlyAddedElement:!1})}var lw=/(max|min)-device-(width|height)/,$0=new RegExp(lw.source,"g");function cw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function uw(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var n=function o(){return this instanceof o?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};n.prototype=r.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var t=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,t.get?t:{enumerable:!0,get:function(){return e[o]}})}),n}var _n={exports:{}},sp;function dw(){if(sp)return _n.exports;sp=1;var e=String,r=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return _n.exports=r(),_n.exports.createColors=r,_n.exports}var fw={},pw=Object.freeze(Object.defineProperty({__proto__:null,default:fw},Symbol.toStringTag,{value:"Module"})),Le=uw(pw),qo,ap;function da(){if(ap)return qo;ap=1;let e=dw(),r=Le;class n extends Error{constructor(t,i,s,a,c,u){super(t),this.name="CssSyntaxError",this.reason=t,c&&(this.file=c),a&&(this.source=a),u&&(this.plugin=u),typeof i<"u"&&typeof s<"u"&&(typeof i=="number"?(this.line=i,this.column=s):(this.line=i.line,this.column=i.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,n)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let i=this.source;t==null&&(t=e.isColorSupported),r&&t&&(i=r(i));let s=i.split(/\r?\n/),a=Math.max(this.line-3,0),c=Math.min(this.line+2,s.length),u=String(c).length,l,p;if(t){let{bold:f,gray:d,red:m}=e.createColors(!0);l=h=>f(m(h)),p=h=>d(h)}else l=p=f=>f;return s.slice(a,c).map((f,d)=>{let m=a+1+d,h=" "+(" "+m).slice(-u)+" | ";if(m===this.line){let g=p(h.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+p(h)+f+`
|
|
1
|
+
"use strict";var LensSDK=(()=>{var Bo=Object.defineProperty;var lb=Object.getOwnPropertyDescriptor;var cb=Object.getOwnPropertyNames;var ub=Object.prototype.hasOwnProperty;var Ve=(e,r)=>{for(var n in r)Bo(e,n,{get:r[n],enumerable:!0})},db=(e,r,n,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of cb(r))!ub.call(e,t)&&t!==n&&Bo(e,t,{get:()=>r[t],enumerable:!(o=lb(r,t))||o.enumerable});return e};var fb=e=>db(Bo({},"__esModule",{value:!0}),e);var O0={};Ve(O0,{DEFAULT_CDN_URL:()=>ob,LOADER_SNIPPET:()=>I0,autoBoot:()=>ab,boot:()=>Fo,installGlobal:()=>xr,isGateActive:()=>tb,loaderSnippet:()=>sb,processQueue:()=>ib});var pb=Object.defineProperty,hb=(e,r,n)=>r in e?pb(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,M=(e,r,n)=>hb(e,typeof r!="symbol"?r+"":r,n),Qf,mb=Object.defineProperty,gb=(e,r,n)=>r in e?mb(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,ep=(e,r,n)=>gb(e,typeof r!="symbol"?r+"":r,n),pe=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(pe||{}),tp={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},rp={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},wn={},Sh={},vb=()=>!!globalThis.Zone;function ca(e){if(wn[e])return wn[e];let r=globalThis[e],n=r.prototype,o=e in tp?tp[e]:void 0,t=!!(o&&o.every(a=>{var c,u;return!!((u=(c=Object.getOwnPropertyDescriptor(n,a))==null?void 0:c.get)!=null&&u.toString().includes("[native code]"))})),i=e in rp?rp[e]:void 0,s=!!(i&&i.every(a=>{var c;return typeof n[a]=="function"&&((c=n[a])==null?void 0:c.toString().includes("[native code]"))}));if(t&&s&&!vb())return wn[e]=r.prototype,r.prototype;try{let a=document.createElement("iframe");a.style.display="none",document.body.appendChild(a);let c=a.contentWindow;if(!c)return r.prototype;let u=c[e].prototype;if(!u)return a.remove(),n;let l=navigator.userAgent;return l.includes("Safari")&&!l.includes("Chrome")?(a.classList.add("rr-block"),a.setAttribute("__rrwebUntaintedMutationObserver",""),Sh[e]=()=>a.remove()):a.remove(),wn[e]=u}catch{return n}}var Wo={};function Qe(e,r,n){var o;let t=`${e}.${String(n)}`;if(Wo[t])return Wo[t].call(r);let i=ca(e),s=(o=Object.getOwnPropertyDescriptor(i,n))==null?void 0:o.get;return s?(Wo[t]=s,s.call(r)):r[n]}var Vo={};function $h(e,r,n){let o=`${e}.${String(n)}`;if(Vo[o])return Vo[o].bind(r);let i=ca(e)[n];return typeof i!="function"?r[n]:(Vo[o]=i,i.bind(r))}function yb(e){return Qe("Node",e,"ownerDocument")}function bb(e){return Qe("Node",e,"childNodes")}function wb(e){return Qe("Node",e,"parentNode")}function xb(e){return Qe("Node",e,"parentElement")}function _b(e){return Qe("Node",e,"textContent")}function Sb(e,r){return $h("Node",e,"contains")(r)}function $b(e){return $h("Node",e,"getRootNode")()}function kb(e){return!e||!("host"in e)?null:Qe("ShadowRoot",e,"host")}function Ib(e){return e.styleSheets}function Eb(e){return!e||!("shadowRoot"in e)?null:Qe("Element",e,"shadowRoot")}function Cb(e,r){return Qe("Element",e,"querySelector")(r)}function Ob(e,r){return Qe("Element",e,"querySelectorAll")(r)}function Nb(){return[ca("MutationObserver").constructor,Sh.MutationObserver??(()=>{})]}var kh=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(kh=()=>new Date().getTime());function zb(e,r,n){try{if(!(r in e))return()=>{};let o=e[r],t=n(o);return typeof t=="function"&&(t.prototype=t.prototype||{},Object.defineProperties(t,{__rrweb_original__:{enumerable:!1,value:o}})),e[r]=t,()=>{e[r]=o}}catch{return()=>{}}}var ve={ownerDocument:yb,childNodes:bb,parentNode:wb,parentElement:xb,textContent:_b,contains:Sb,getRootNode:$b,host:kb,styleSheets:Ib,shadowRoot:Eb,querySelector:Cb,querySelectorAll:Ob,nowTimestamp:kh,mutationObserverCtor:Nb,patch:zb};function Ih(e){return e.nodeType===e.ELEMENT_NODE}function $r(e){let r=e&&"host"in e&&"mode"in e&&ve.host(e)||null;return!!(r&&"shadowRoot"in r&&ve.shadowRoot(r)===e)}function kr(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function Db(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function Tb(e){let{cssText:r}=e;if(r.split('"').length<3)return r;let n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function Xs(e){try{let r=e.rules||e.cssRules;if(!r)return null;let n=e.href;!n&&e.ownerNode&&(n=e.ownerNode.baseURI);let o=Array.from(r,t=>Eh(t,n)).join("");return Db(o)}catch{return null}}function Eh(e,r){if(Pb(e)){let n;try{n=Xs(e.styleSheet)||Tb(e)}catch{n=e.cssText}return e.styleSheet.href?Rn(n,e.styleSheet.href):n}else{let n=e.cssText;return Ab(e)&&e.selectorText.includes(":")&&(n=Rb(n)),r?Rn(n,r):n}}function Rb(e){let r=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(r,"$1\\$2")}function Pb(e){return"styleSheet"in e}function Ab(e){return"selectorText"in e}var zn=class{constructor(){ep(this,"idNodeMap",new Map),ep(this,"nodeMetaMap",new WeakMap)}getId(r){var n;return r?((n=this.getMeta(r))==null?void 0:n.id)??-1:-1}getNode(r){return this.idNodeMap.get(r)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(r){return this.nodeMetaMap.get(r)||null}removeNodeFromMap(r){let n=this.getId(r);this.idNodeMap.delete(n),r.childNodes&&r.childNodes.forEach(o=>this.removeNodeFromMap(o))}has(r){return this.idNodeMap.has(r)}hasNode(r){return this.nodeMetaMap.has(r)}add(r,n){let o=n.id;this.idNodeMap.set(o,r),this.nodeMetaMap.set(r,n)}replace(r,n){let o=this.getNode(r);if(o){let t=this.nodeMetaMap.get(o);t&&this.nodeMetaMap.set(n,t)}this.idNodeMap.set(r,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Mb(){return new zn}function Dn({element:e,maskInputOptions:r,tagName:n,type:o,value:t,maskInputFn:i}){let s=t||"",a=o&&_t(o);return(r[n.toLowerCase()]||a&&r[a])&&(i?s=i(s,e):s="*".repeat(s.length)),s}function _t(e){return e.toLowerCase()}var np="__rrweb_original__";function Ub(e){let r=e.getContext("2d");if(!r)return!0;let n=50;for(let o=0;o<e.width;o+=n)for(let t=0;t<e.height;t+=n){let i=r.getImageData,s=np in i?i[np]:i;if(new Uint32Array(s.call(r,o,t,Math.min(n,e.width-o),Math.min(n,e.height-t)).data.buffer).some(c=>c!==0))return!1}return!0}function Tn(e){let r=e.type;return e.hasAttribute("data-rr-is-password")?"password":r?_t(r):null}function Ch(e,r){let n;try{n=new URL(e,r??window.location.href)}catch{return null}let o=/\.([0-9a-z]+)(?:$)/i,t=n.pathname.match(o);return t?.[1]??null}function jb(e){let r="";return e.indexOf("//")>-1?r=e.split("/").slice(0,3).join("/"):r=e.split("/")[0],r=r.split("?")[0],r}var Lb=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Fb=/^(?:[a-z+]+:)?\/\//i,Zb=/^www\..*/i,Bb=/^(data:)([^,]*),(.*)/i;function Rn(e,r){return(e||"").replace(Lb,(n,o,t,i,s,a)=>{let c=t||s||a,u=o||i||"";if(!c)return n;if(Fb.test(c)||Zb.test(c))return`url(${u}${c}${u})`;if(Bb.test(c))return`url(${u}${c}${u})`;if(c[0]==="/")return`url(${u}${jb(r)+c}${u})`;let l=c.split("#")[0],p=c.substring(l.length),f=r.split("#")[0].split("/"),d=l.split("/");f.pop();for(let m of d)m!=="."&&(m===".."?f.pop():f.push(m));return`url(${u}${f.join("/")}${p}${u})`})}function xn(e,r=!1){return r?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function Wb(e,r,n=!1){let o=Array.from(r.childNodes),t=[],i=0;if(o.length>1&&e&&typeof e=="string"){let s=xn(e,n),a=s.length/e.length;for(let c=1;c<o.length;c++)if(o[c].textContent&&typeof o[c].textContent=="string"){let u=xn(o[c].textContent,n),l=100,p=3;for(;p<u.length&&(u[p].match(/[a-zA-Z0-9]/)||u.indexOf(u.substring(0,p),1)!==-1);p++);for(;p<u.length;p++){let f=u.substring(0,p),d=s.split(f),m=-1;if(d.length===2)m=d[0].length;else if(d.length>2&&d[0]===""&&o[c-1].textContent!=="")m=s.indexOf(f,1);else if(d.length===1){if(f=f.substring(0,f.length-1),d=s.split(f),d.length<=1)return t.push(e),t;p=l+1}else p===u.length-1&&(m=s.indexOf(f));if(d.length>=2&&p>l){let h=o[c-1].textContent;if(h&&typeof h=="string"){let g=xn(h).length;m=s.indexOf(f,g)}m===-1&&(m=d[0].length)}if(m!==-1){let h=Math.floor(m/a);for(;h>0&&h<e.length;){if(i+=1,i>50*o.length)return t.push(e),t;let g=xn(e.substring(0,h),n);if(g.length===m){t.push(e.substring(0,h)),e=e.substring(h),s=s.substring(m);break}else g.length<m?h+=Math.max(1,Math.floor((m-g.length)/a)):h-=Math.max(1,Math.floor((g.length-m)*a))}break}}}}return t.push(e),t}function Vb(e,r){return Wb(e,r).join("/* rr_split */")}var qb=1,Gb=new RegExp("[^a-z0-9-_:]"),Er=-2;function Oh(){return qb++}function Jb(e){if(e instanceof HTMLFormElement)return"form";let r=_t(e.tagName);return Gb.test(r)?"div":r}var Pt,ip,Hb=/^[^ \t\n\r\u000c]+/,Xb=/^[, \t\n\r\u000c]+/;function Kb(e,r){if(r.trim()==="")return r;let n=0;function o(i){let s,a=i.exec(r.substring(n));return a?(s=a[0],n+=s.length,s):""}let t=[];for(;o(Xb),!(n>=r.length);){let i=o(Hb);if(i.slice(-1)===",")i=Ut(e,i.substring(0,i.length-1)),t.push(i);else{let s="";i=Ut(e,i);let a=!1;for(;;){let c=r.charAt(n);if(c===""){t.push((i+s).trim());break}else if(a)c===")"&&(a=!1);else if(c===","){n+=1,t.push((i+s).trim());break}else c==="("&&(a=!0);s+=c,n+=1}}}return t.join(", ")}var op=new WeakMap;function Ut(e,r){return!r||r.trim()===""?r:ua(e,r)}function Yb(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function ua(e,r){let n=op.get(e);if(n||(n=e.createElement("a"),op.set(e,n)),!r)r="";else if(r.startsWith("blob:")||r.startsWith("data:"))return r;return n.setAttribute("href",r),n.href}function Nh(e,r,n,o){return o&&(n==="src"||n==="href"&&!(r==="use"&&o[0]==="#")||n==="xlink:href"&&o[0]!=="#"||n==="background"&&["table","td","th"].includes(r)?Ut(e,o):n==="srcset"?Kb(e,o):n==="style"?Rn(o,ua(e)):r==="object"&&n==="data"?Ut(e,o):o)}function zh(e,r,n){return["video","audio"].includes(e)&&r==="autoplay"}function Qb(e,r,n){try{if(typeof r=="string"){if(e.classList.contains(r))return!0}else for(let o=e.classList.length;o--;){let t=e.classList[o];if(r.test(t))return!0}if(n)return e.matches(n)}catch{}return!1}function Pn(e,r,n){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return n?Pn(ve.parentNode(e),r,n):!1;for(let o=e.classList.length;o--;){let t=e.classList[o];if(r.test(t))return!0}return n?Pn(ve.parentNode(e),r,n):!1}function Dh(e,r,n,o){let t;if(Ih(e)){if(t=e,!ve.childNodes(t).length)return!1}else{if(ve.parentElement(e)===null)return!1;t=ve.parentElement(e)}try{if(typeof r=="string"){if(o){if(t.closest(`.${r}`))return!0}else if(t.classList.contains(r))return!0}else if(Pn(t,r,o))return!0;if(n){if(o){if(t.closest(n))return!0}else if(t.matches(n))return!0}}catch{}return!1}function ew(e,r,n){let o=e.contentWindow;if(!o)return;let t=!1,i;try{i=o.document.readyState}catch{return}if(i!=="complete"){let a=setTimeout(()=>{t||(r(),t=!0)},n);e.addEventListener("load",()=>{clearTimeout(a),t=!0,r()});return}let s="about:blank";if(o.location.href!==s||e.src===s||e.src==="")return setTimeout(r,0),e.addEventListener("load",r);e.addEventListener("load",r)}function tw(e,r,n){let o=!1,t;try{t=e.sheet}catch{return}if(t)return;let i=setTimeout(()=>{o||(r(),o=!0)},n);e.addEventListener("load",()=>{clearTimeout(i),o=!0,r()})}function rw(e,r){let{doc:n,mirror:o,blockClass:t,blockSelector:i,needsMask:s,inlineStylesheet:a,maskInputOptions:c={},maskTextFn:u,maskInputFn:l,dataURLOptions:p={},inlineImages:f,recordCanvas:d,keepIframeSrcFn:m,newlyAddedElement:h=!1,cssCaptured:g=!1}=r,x=nw(n,o);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:pe.Document,childNodes:[],compatMode:e.compatMode}:{type:pe.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:pe.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:x};case e.ELEMENT_NODE:return ow(e,{doc:n,blockClass:t,blockSelector:i,inlineStylesheet:a,maskInputOptions:c,maskInputFn:l,dataURLOptions:p,inlineImages:f,recordCanvas:d,keepIframeSrcFn:m,newlyAddedElement:h,rootId:x});case e.TEXT_NODE:return iw(e,{doc:n,needsMask:s,maskTextFn:u,rootId:x,cssCaptured:g});case e.CDATA_SECTION_NODE:return{type:pe.CDATA,textContent:"",rootId:x};case e.COMMENT_NODE:return{type:pe.Comment,textContent:ve.textContent(e)||"",rootId:x};default:return!1}}function nw(e,r){if(!r.hasNode(e))return;let n=r.getId(e);return n===1?void 0:n}function iw(e,r){let{needsMask:n,maskTextFn:o,rootId:t,cssCaptured:i}=r,s=ve.parentNode(e),a=s&&s.tagName,c="",u=a==="STYLE"?!0:void 0,l=a==="SCRIPT"?!0:void 0;return l?c="SCRIPT_PLACEHOLDER":i||(c=ve.textContent(e),u&&c&&(c=Rn(c,ua(r.doc)))),!u&&!l&&c&&n&&(c=o?o(c,ve.parentElement(e)):c.replace(/[\S]/g,"*")),{type:pe.Text,textContent:c||"",rootId:t}}function ow(e,r){let{doc:n,blockClass:o,blockSelector:t,inlineStylesheet:i,maskInputOptions:s={},maskInputFn:a,dataURLOptions:c={},inlineImages:u,recordCanvas:l,keepIframeSrcFn:p,newlyAddedElement:f=!1,rootId:d}=r,m=Qb(e,o,t),h=Jb(e),g={},x=e.attributes.length;for(let y=0;y<x;y++){let _=e.attributes[y];zh(h,_.name,_.value)||(g[_.name]=Nh(n,h,_t(_.name),_.value))}if(h==="link"&&i){let y=Array.from(n.styleSheets).find(v=>v.href===e.href),_=null;y&&(_=Xs(y)),_&&(delete g.rel,delete g.href,g._cssText=_)}if(h==="style"&&e.sheet){let y=Xs(e.sheet);y&&(e.childNodes.length>1&&(y=Vb(y,e)),g._cssText=y)}if(["input","textarea","select"].includes(h)){let y=e.value,_=e.checked;g.type!=="radio"&&g.type!=="checkbox"&&g.type!=="submit"&&g.type!=="button"&&y?g.value=Dn({element:e,type:Tn(e),tagName:h,value:y,maskInputOptions:s,maskInputFn:a}):_&&(g.checked=_)}if(h==="option"&&(e.selected&&!s.select?g.selected=!0:delete g.selected),h==="dialog"&&e.open&&(g.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),h==="canvas"&&l){if(e.__context==="2d")Ub(e)||(g.rr_dataURL=e.toDataURL(c.type,c.quality));else if(!("__context"in e)){let y=e.toDataURL(c.type,c.quality),_=n.createElement("canvas");_.width=e.width,_.height=e.height;let v=_.toDataURL(c.type,c.quality);y!==v&&(g.rr_dataURL=y)}}if(h==="img"&&u){Pt||(Pt=n.createElement("canvas"),ip=Pt.getContext("2d"));let y=e,_=y.currentSrc||y.getAttribute("src")||"<unknown-src>",v=y.crossOrigin,w=()=>{y.removeEventListener("load",w);try{Pt.width=y.naturalWidth,Pt.height=y.naturalHeight,ip.drawImage(y,0,0),g.rr_dataURL=Pt.toDataURL(c.type,c.quality)}catch(S){if(y.crossOrigin!=="anonymous"){y.crossOrigin="anonymous",y.complete&&y.naturalWidth!==0?w():y.addEventListener("load",w);return}else console.warn(`Cannot inline img src=${_}! Error: ${S}`)}y.crossOrigin==="anonymous"&&(v?g.crossOrigin=v:y.removeAttribute("crossorigin"))};y.complete&&y.naturalWidth!==0?w():y.addEventListener("load",w)}if(["audio","video"].includes(h)){let y=g;y.rr_mediaState=e.paused?"paused":"played",y.rr_mediaCurrentTime=e.currentTime,y.rr_mediaPlaybackRate=e.playbackRate,y.rr_mediaMuted=e.muted,y.rr_mediaLoop=e.loop,y.rr_mediaVolume=e.volume}if(f||(e.scrollLeft&&(g.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(g.rr_scrollTop=e.scrollTop)),m){let{width:y,height:_}=e.getBoundingClientRect();g={class:g.class,rr_width:`${y}px`,rr_height:`${_}px`}}h==="iframe"&&!p(g.src)&&(e.contentDocument||(g.rr_src=g.src),delete g.src);let b;try{customElements.get(h)&&(b=!0)}catch{}return{type:pe.Element,tagName:h,attributes:g,childNodes:[],isSVG:Yb(e)||void 0,needBlock:m,rootId:d,isCustom:b}}function ie(e){return e==null?"":e.toLowerCase()}function Th(e){return e===!0||e==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:e==="all",headMetaDescKeywords:e==="all",headTitleMutations:e==="all"}:e||{}}function sw(e,r){if(r.comment&&e.type===pe.Comment)return!0;if(e.type===pe.Element){if(r.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&Ch(e.attributes.href)==="js"))return!0;if(r.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(ie(e.attributes.name).match(/^msapplication-tile(image|color)$/)||ie(e.attributes.name)==="application-name"||ie(e.attributes.rel)==="icon"||ie(e.attributes.rel)==="apple-touch-icon"||ie(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(r.headMetaDescKeywords&&ie(e.attributes.name).match(/^description|keywords$/))return!0;if(r.headMetaSocial&&(ie(e.attributes.property).match(/^(og|twitter|fb):/)||ie(e.attributes.name).match(/^(og|twitter):/)||ie(e.attributes.name)==="pinterest"))return!0;if(r.headMetaRobots&&(ie(e.attributes.name)==="robots"||ie(e.attributes.name)==="googlebot"||ie(e.attributes.name)==="bingbot"))return!0;if(r.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(r.headMetaAuthorship&&(ie(e.attributes.name)==="author"||ie(e.attributes.name)==="generator"||ie(e.attributes.name)==="framework"||ie(e.attributes.name)==="publisher"||ie(e.attributes.name)==="progid"||ie(e.attributes.property).match(/^article:/)||ie(e.attributes.property).match(/^product:/)))return!0;if(r.headMetaVerification&&(ie(e.attributes.name)==="google-site-verification"||ie(e.attributes.name)==="yandex-verification"||ie(e.attributes.name)==="csrf-token"||ie(e.attributes.name)==="p:domain_verify"||ie(e.attributes.name)==="verify-v1"||ie(e.attributes.name)==="verification"||ie(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function jt(e,r){let{doc:n,mirror:o,blockClass:t,blockSelector:i,maskTextClass:s,maskTextSelector:a,skipChild:c=!1,inlineStylesheet:u=!0,maskInputOptions:l={},maskTextFn:p,maskInputFn:f,slimDOMOptions:d,dataURLOptions:m={},inlineImages:h=!1,recordCanvas:g=!1,onSerialize:x,onIframeLoad:b,iframeLoadTimeout:y=5e3,onStylesheetLoad:_,stylesheetLoadTimeout:v=5e3,keepIframeSrcFn:w=()=>!1,newlyAddedElement:S=!1,cssCaptured:C=!1}=r,{needsMask:P}=r,{preserveWhiteSpace:O=!0}=r;P||(P=Dh(e,s,a,P===void 0));let B=rw(e,{doc:n,mirror:o,blockClass:t,blockSelector:i,needsMask:P,inlineStylesheet:u,maskInputOptions:l,maskTextFn:p,maskInputFn:f,dataURLOptions:m,inlineImages:h,recordCanvas:g,keepIframeSrcFn:w,newlyAddedElement:S,cssCaptured:C});if(!B)return console.warn(e,"not serialized"),null;let j;o.hasNode(e)?j=o.getId(e):sw(B,d)||!O&&B.type===pe.Text&&!B.textContent.replace(/^\s+|\s+$/gm,"").length?j=Er:j=Oh();let E=Object.assign(B,{id:j});if(o.add(e,E),j===Er)return null;x&&x(e);let Me=!c;if(E.type===pe.Element){Me=Me&&!E.needBlock,delete E.needBlock;let K=ve.shadowRoot(e);K&&kr(K)&&(E.isShadowHost=!0)}if((E.type===pe.Document||E.type===pe.Element)&&Me){d.headWhitespace&&E.type===pe.Element&&E.tagName==="head"&&(O=!1);let K={doc:n,mirror:o,blockClass:t,blockSelector:i,needsMask:P,maskTextClass:s,maskTextSelector:a,skipChild:c,inlineStylesheet:u,maskInputOptions:l,maskTextFn:p,maskInputFn:f,slimDOMOptions:d,dataURLOptions:m,inlineImages:h,recordCanvas:g,preserveWhiteSpace:O,onSerialize:x,onIframeLoad:b,iframeLoadTimeout:y,onStylesheetLoad:_,stylesheetLoadTimeout:v,keepIframeSrcFn:w,cssCaptured:!1};if(!(E.type===pe.Element&&E.tagName==="textarea"&&E.attributes.value!==void 0)){E.type===pe.Element&&E.attributes._cssText!==void 0&&typeof E.attributes._cssText=="string"&&(K.cssCaptured=!0);for(let ue of Array.from(ve.childNodes(e))){let ge=jt(ue,K);ge&&E.childNodes.push(ge)}}let H=null;if(Ih(e)&&(H=ve.shadowRoot(e)))for(let ue of Array.from(ve.childNodes(H))){let ge=jt(ue,K);ge&&(kr(H)&&(ge.isShadow=!0),E.childNodes.push(ge))}}let Ne=ve.parentNode(e);return Ne&&$r(Ne)&&kr(Ne)&&(E.isShadow=!0),E.type===pe.Element&&E.tagName==="iframe"&&ew(e,()=>{let K=e.contentDocument;if(K&&b){let H=jt(K,{doc:K,mirror:o,blockClass:t,blockSelector:i,needsMask:P,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:u,maskInputOptions:l,maskTextFn:p,maskInputFn:f,slimDOMOptions:d,dataURLOptions:m,inlineImages:h,recordCanvas:g,preserveWhiteSpace:O,onSerialize:x,onIframeLoad:b,iframeLoadTimeout:y,onStylesheetLoad:_,stylesheetLoadTimeout:v,keepIframeSrcFn:w});H&&b(e,H)}},y),E.type===pe.Element&&E.tagName==="link"&&typeof E.attributes.rel=="string"&&(E.attributes.rel==="stylesheet"||E.attributes.rel==="preload"&&typeof E.attributes.href=="string"&&Ch(E.attributes.href)==="css")&&tw(e,()=>{if(_){let K=jt(e,{doc:n,mirror:o,blockClass:t,blockSelector:i,needsMask:P,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:u,maskInputOptions:l,maskTextFn:p,maskInputFn:f,slimDOMOptions:d,dataURLOptions:m,inlineImages:h,recordCanvas:g,preserveWhiteSpace:O,onSerialize:x,onIframeLoad:b,iframeLoadTimeout:y,onStylesheetLoad:_,stylesheetLoadTimeout:v,keepIframeSrcFn:w});K&&_(e,K)}},v),E}function aw(e,r){let{mirror:n=new zn,blockClass:o="rr-block",blockSelector:t=null,maskTextClass:i="rr-mask",maskTextSelector:s=null,inlineStylesheet:a=!0,inlineImages:c=!1,recordCanvas:u=!1,maskAllInputs:l=!1,maskTextFn:p,maskInputFn:f,slimDOM:d=!1,dataURLOptions:m,preserveWhiteSpace:h,onSerialize:g,onIframeLoad:x,iframeLoadTimeout:b,onStylesheetLoad:y,stylesheetLoadTimeout:_,keepIframeSrcFn:v=()=>!1}=r,w=l===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:l===!1?{password:!0}:l,S=Th(d);return jt(e,{doc:e,mirror:n,blockClass:o,blockSelector:t,maskTextClass:i,maskTextSelector:s,skipChild:!1,inlineStylesheet:a,maskInputOptions:w,maskTextFn:p,maskInputFn:f,slimDOMOptions:S,dataURLOptions:m,inlineImages:c,recordCanvas:u,preserveWhiteSpace:h,onSerialize:g,onIframeLoad:x,iframeLoadTimeout:b,onStylesheetLoad:y,stylesheetLoadTimeout:_,keepIframeSrcFn:v,newlyAddedElement:!1})}var lw=/(max|min)-device-(width|height)/,z0=new RegExp(lw.source,"g");function cw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function uw(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var n=function o(){return this instanceof o?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};n.prototype=r.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var t=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,t.get?t:{enumerable:!0,get:function(){return e[o]}})}),n}var _n={exports:{}},sp;function dw(){if(sp)return _n.exports;sp=1;var e=String,r=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return _n.exports=r(),_n.exports.createColors=r,_n.exports}var fw={},pw=Object.freeze(Object.defineProperty({__proto__:null,default:fw},Symbol.toStringTag,{value:"Module"})),Le=uw(pw),qo,ap;function da(){if(ap)return qo;ap=1;let e=dw(),r=Le;class n extends Error{constructor(t,i,s,a,c,u){super(t),this.name="CssSyntaxError",this.reason=t,c&&(this.file=c),a&&(this.source=a),u&&(this.plugin=u),typeof i<"u"&&typeof s<"u"&&(typeof i=="number"?(this.line=i,this.column=s):(this.line=i.line,this.column=i.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,n)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let i=this.source;t==null&&(t=e.isColorSupported),r&&t&&(i=r(i));let s=i.split(/\r?\n/),a=Math.max(this.line-3,0),c=Math.min(this.line+2,s.length),u=String(c).length,l,p;if(t){let{bold:f,gray:d,red:m}=e.createColors(!0);l=h=>f(m(h)),p=h=>d(h)}else l=p=f=>f;return s.slice(a,c).map((f,d)=>{let m=a+1+d,h=" "+(" "+m).slice(-u)+" | ";if(m===this.line){let g=p(h.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+p(h)+f+`
|
|
2
2
|
`+g+l("^")}return" "+p(h)+f}).join(`
|
|
3
3
|
`)}toString(){let t=this.showSourceCode();return t&&(t=`
|
|
4
4
|
|
|
5
5
|
`+t+`
|
|
6
|
-
`),this.name+": "+this.message+t}}return qo=n,n.default=n,qo}var Sn={},lp;function fa(){return lp||(lp=1,Sn.isClean=Symbol("isClean"),Sn.my=Symbol("my")),Sn}var Go,cp;function
|
|
6
|
+
`),this.name+": "+this.message+t}}return qo=n,n.default=n,qo}var Sn={},lp;function fa(){return lp||(lp=1,Sn.isClean=Symbol("isClean"),Sn.my=Symbol("my")),Sn}var Go,cp;function Rh(){if(cp)return Go;cp=1;let e={after:`
|
|
7
7
|
`,beforeClose:`
|
|
8
8
|
`,beforeComment:`
|
|
9
9
|
`,beforeDecl:`
|
|
@@ -14,16 +14,16 @@
|
|
|
14
14
|
`)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(i,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeDecl(t,i){let s;return t.walkDecls(a=>{if(typeof a.raws.before<"u")return s=a.raws.before,s.includes(`
|
|
15
15
|
`)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(i,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeOpen(t){let i;return t.walk(s=>{if(s.type!=="decl"&&(i=s.raws.between,typeof i<"u"))return!1}),i}rawBeforeRule(t){let i;return t.walk(s=>{if(s.nodes&&(s.parent!==t||t.first!==s)&&typeof s.raws.before<"u")return i=s.raws.before,i.includes(`
|
|
16
16
|
`)&&(i=i.replace(/[^\n]+$/,"")),!1}),i&&(i=i.replace(/\S/g,"")),i}rawColon(t){let i;return t.walkDecls(s=>{if(typeof s.raws.between<"u")return i=s.raws.between.replace(/[^\s:]/g,""),!1}),i}rawEmptyBody(t){let i;return t.walk(s=>{if(s.nodes&&s.nodes.length===0&&(i=s.raws.after,typeof i<"u"))return!1}),i}rawIndent(t){if(t.raws.indent)return t.raws.indent;let i;return t.walk(s=>{let a=s.parent;if(a&&a!==t&&a.parent&&a.parent===t&&typeof s.raws.before<"u"){let c=s.raws.before.split(`
|
|
17
|
-
`);return i=c[c.length-1],i=i.replace(/\S/g,""),!1}}),i}rawSemicolon(t){let i;return t.walk(s=>{if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(i=s.raws.semicolon,typeof i<"u"))return!1}),i}rawValue(t,i){let s=t[i],a=t.raws[i];return a&&a.value===s?a.raw:s}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,i){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,i)}}return Go=n,n.default=n,Go}var Jo,up;function jn(){if(up)return Jo;up=1;let e=
|
|
18
|
-
`?(p=1,f+=1):p+=1;return{column:p,line:f}}prev(){if(!this.parent)return;let c=this.parent.index(this);return this.parent.nodes[c-1]}rangeBy(c){let u={column:this.source.start.column,line:this.source.start.line},l=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:u.column+1,line:u.line};if(c.word){let p=this.toString(),f=p.indexOf(c.word);f!==-1&&(u=this.positionInside(f,p),l=this.positionInside(f+c.word.length,p))}else c.start?u={column:c.start.column,line:c.start.line}:c.index&&(u=this.positionInside(c.index)),c.end?l={column:c.end.column,line:c.end.line}:typeof c.endIndex=="number"?l=this.positionInside(c.endIndex):c.index&&(l=this.positionInside(c.index+1));return(l.line<u.line||l.line===u.line&&l.column<=u.column)&&(l={column:u.column+1,line:u.line}),{end:l,start:u}}raw(c,u){return new o().raw(this,c,u)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...c){if(this.parent){let u=this,l=!1;for(let p of c)p===this?l=!0:l?(this.parent.insertAfter(u,p),u=p):this.parent.insertBefore(u,p);l||this.remove()}return this}root(){let c=this;for(;c.parent&&c.parent.type!=="document";)c=c.parent;return c}toJSON(c,u){let l={},p=u==null;u=u||new Map;let f=0;for(let d in this){if(!Object.prototype.hasOwnProperty.call(this,d)||d==="parent"||d==="proxyCache")continue;let m=this[d];if(Array.isArray(m))l[d]=m.map(h=>typeof h=="object"&&h.toJSON?h.toJSON(null,u):h);else if(typeof m=="object"&&m.toJSON)l[d]=m.toJSON(null,u);else if(d==="source"){let h=u.get(m.input);h==null&&(h=f,u.set(m.input,f),f++),l[d]={end:m.end,inputId:h,start:m.start}}else l[d]=m}return p&&(l.inputs=[...u.keys()].map(d=>d.toJSON())),l}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(c=t){c.stringify&&(c=c.stringify);let u="";return c(this,l=>{u+=l}),u}warn(c,u,l){let p={node:this};for(let f in l)p[f]=l[f];return c.warn(u,p)}get proxyOf(){return this}}return Ho=s,s.default=s,Ho}var Xo,fp;function Fn(){if(fp)return Xo;fp=1;let e=Ln();class r extends e{constructor(o){o&&typeof o.value<"u"&&typeof o.value!="string"&&(o={...o,value:String(o.value)}),super(o),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return Xo=r,r.default=r,Xo}var Ko,pp;function hw(){if(pp)return Ko;pp=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Ko={nanoid:(o=21)=>{let t="",i=o;for(;i--;)t+=e[Math.random()*64|0];return t},customAlphabet:(o,t=21)=>(i=t)=>{let s="",a=i;for(;a--;)s+=o[Math.random()*o.length|0];return s}},Ko}var Yo,hp;function
|
|
17
|
+
`);return i=c[c.length-1],i=i.replace(/\S/g,""),!1}}),i}rawSemicolon(t){let i;return t.walk(s=>{if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(i=s.raws.semicolon,typeof i<"u"))return!1}),i}rawValue(t,i){let s=t[i],a=t.raws[i];return a&&a.value===s?a.raw:s}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,i){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,i)}}return Go=n,n.default=n,Go}var Jo,up;function jn(){if(up)return Jo;up=1;let e=Rh();function r(n,o){new e(o).stringify(n)}return Jo=r,r.default=r,Jo}var Ho,dp;function Ln(){if(dp)return Ho;dp=1;let{isClean:e,my:r}=fa(),n=da(),o=Rh(),t=jn();function i(a,c){let u=new a.constructor;for(let l in a){if(!Object.prototype.hasOwnProperty.call(a,l)||l==="proxyCache")continue;let p=a[l],f=typeof p;l==="parent"&&f==="object"?c&&(u[l]=c):l==="source"?u[l]=p:Array.isArray(p)?u[l]=p.map(d=>i(d,u)):(f==="object"&&p!==null&&(p=i(p)),u[l]=p)}return u}class s{constructor(c={}){this.raws={},this[e]=!1,this[r]=!0;for(let u in c)if(u==="nodes"){this.nodes=[];for(let l of c[u])typeof l.clone=="function"?this.append(l.clone()):this.append(l)}else this[u]=c[u]}addToError(c){if(c.postcssNode=this,c.stack&&this.source&&/\n\s{4}at /.test(c.stack)){let u=this.source;c.stack=c.stack.replace(/\n\s{4}at /,`$&${u.input.from}:${u.start.line}:${u.start.column}$&`)}return c}after(c){return this.parent.insertAfter(this,c),this}assign(c={}){for(let u in c)this[u]=c[u];return this}before(c){return this.parent.insertBefore(this,c),this}cleanRaws(c){delete this.raws.before,delete this.raws.after,c||delete this.raws.between}clone(c={}){let u=i(this);for(let l in c)u[l]=c[l];return u}cloneAfter(c={}){let u=this.clone(c);return this.parent.insertAfter(this,u),u}cloneBefore(c={}){let u=this.clone(c);return this.parent.insertBefore(this,u),u}error(c,u={}){if(this.source){let{end:l,start:p}=this.rangeBy(u);return this.source.input.error(c,{column:p.column,line:p.line},{column:l.column,line:l.line},u)}return new n(c)}getProxyProcessor(){return{get(c,u){return u==="proxyOf"?c:u==="root"?()=>c.root().toProxy():c[u]},set(c,u,l){return c[u]===l||(c[u]=l,(u==="prop"||u==="value"||u==="name"||u==="params"||u==="important"||u==="text")&&c.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let c=this;for(;c=c.parent;)c[e]=!1}}next(){if(!this.parent)return;let c=this.parent.index(this);return this.parent.nodes[c+1]}positionBy(c,u){let l=this.source.start;if(c.index)l=this.positionInside(c.index,u);else if(c.word){u=this.toString();let p=u.indexOf(c.word);p!==-1&&(l=this.positionInside(p,u))}return l}positionInside(c,u){let l=u||this.toString(),p=this.source.start.column,f=this.source.start.line;for(let d=0;d<c;d++)l[d]===`
|
|
18
|
+
`?(p=1,f+=1):p+=1;return{column:p,line:f}}prev(){if(!this.parent)return;let c=this.parent.index(this);return this.parent.nodes[c-1]}rangeBy(c){let u={column:this.source.start.column,line:this.source.start.line},l=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:u.column+1,line:u.line};if(c.word){let p=this.toString(),f=p.indexOf(c.word);f!==-1&&(u=this.positionInside(f,p),l=this.positionInside(f+c.word.length,p))}else c.start?u={column:c.start.column,line:c.start.line}:c.index&&(u=this.positionInside(c.index)),c.end?l={column:c.end.column,line:c.end.line}:typeof c.endIndex=="number"?l=this.positionInside(c.endIndex):c.index&&(l=this.positionInside(c.index+1));return(l.line<u.line||l.line===u.line&&l.column<=u.column)&&(l={column:u.column+1,line:u.line}),{end:l,start:u}}raw(c,u){return new o().raw(this,c,u)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...c){if(this.parent){let u=this,l=!1;for(let p of c)p===this?l=!0:l?(this.parent.insertAfter(u,p),u=p):this.parent.insertBefore(u,p);l||this.remove()}return this}root(){let c=this;for(;c.parent&&c.parent.type!=="document";)c=c.parent;return c}toJSON(c,u){let l={},p=u==null;u=u||new Map;let f=0;for(let d in this){if(!Object.prototype.hasOwnProperty.call(this,d)||d==="parent"||d==="proxyCache")continue;let m=this[d];if(Array.isArray(m))l[d]=m.map(h=>typeof h=="object"&&h.toJSON?h.toJSON(null,u):h);else if(typeof m=="object"&&m.toJSON)l[d]=m.toJSON(null,u);else if(d==="source"){let h=u.get(m.input);h==null&&(h=f,u.set(m.input,f),f++),l[d]={end:m.end,inputId:h,start:m.start}}else l[d]=m}return p&&(l.inputs=[...u.keys()].map(d=>d.toJSON())),l}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(c=t){c.stringify&&(c=c.stringify);let u="";return c(this,l=>{u+=l}),u}warn(c,u,l){let p={node:this};for(let f in l)p[f]=l[f];return c.warn(u,p)}get proxyOf(){return this}}return Ho=s,s.default=s,Ho}var Xo,fp;function Fn(){if(fp)return Xo;fp=1;let e=Ln();class r extends e{constructor(o){o&&typeof o.value<"u"&&typeof o.value!="string"&&(o={...o,value:String(o.value)}),super(o),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return Xo=r,r.default=r,Xo}var Ko,pp;function hw(){if(pp)return Ko;pp=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Ko={nanoid:(o=21)=>{let t="",i=o;for(;i--;)t+=e[Math.random()*64|0];return t},customAlphabet:(o,t=21)=>(i=t)=>{let s="",a=i;for(;a--;)s+=o[Math.random()*o.length|0];return s}},Ko}var Yo,hp;function Ph(){if(hp)return Yo;hp=1;let{SourceMapConsumer:e,SourceMapGenerator:r}=Le,{existsSync:n,readFileSync:o}=Le,{dirname:t,join:i}=Le;function s(c){return Buffer?Buffer.from(c,"base64").toString():window.atob(c)}class a{constructor(u,l){if(l.map===!1)return;this.loadAnnotation(u),this.inline=this.startWith(this.annotation,"data:");let p=l.map?l.map.prev:void 0,f=this.loadMap(l.from,p);!this.mapFile&&l.from&&(this.mapFile=l.from),this.mapFile&&(this.root=t(this.mapFile)),f&&(this.text=f)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(u){let l=/^data:application\/json;charset=utf-?8;base64,/,p=/^data:application\/json;base64,/,f=/^data:application\/json;charset=utf-?8,/,d=/^data:application\/json,/;if(f.test(u)||d.test(u))return decodeURIComponent(u.substr(RegExp.lastMatch.length));if(l.test(u)||p.test(u))return s(u.substr(RegExp.lastMatch.length));let m=u.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(u){return u.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(u){return typeof u!="object"?!1:typeof u.mappings=="string"||typeof u._mappings=="string"||Array.isArray(u.sections)}loadAnnotation(u){let l=u.match(/\/\*\s*# sourceMappingURL=/gm);if(!l)return;let p=u.lastIndexOf(l.pop()),f=u.indexOf("*/",p);p>-1&&f>-1&&(this.annotation=this.getAnnotationURL(u.substring(p,f)))}loadFile(u){if(this.root=t(u),n(u))return this.mapFile=u,o(u,"utf-8").toString().trim()}loadMap(u,l){if(l===!1)return!1;if(l){if(typeof l=="string")return l;if(typeof l=="function"){let p=l(u);if(p){let f=this.loadFile(p);if(!f)throw new Error("Unable to load previous source map: "+p.toString());return f}}else{if(l instanceof e)return r.fromSourceMap(l).toString();if(l instanceof r)return l.toString();if(this.isMap(l))return JSON.stringify(l);throw new Error("Unsupported previous source map format: "+l.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let p=this.annotation;return u&&(p=i(t(u),p)),this.loadFile(p)}}}startWith(u,l){return u?u.substr(0,l.length)===l:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Yo=a,a.default=a,Yo}var Qo,mp;function Zn(){if(mp)return Qo;mp=1;let{SourceMapConsumer:e,SourceMapGenerator:r}=Le,{fileURLToPath:n,pathToFileURL:o}=Le,{isAbsolute:t,resolve:i}=Le,{nanoid:s}=hw(),a=Le,c=da(),u=Ph(),l=Symbol("fromOffsetCache"),p=!!(e&&r),f=!!(i&&t);class d{constructor(h,g={}){if(h===null||typeof h>"u"||typeof h=="object"&&!h.toString)throw new Error(`PostCSS received ${h} instead of CSS string`);if(this.css=h.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!f||/^\w+:\/\//.test(g.from)||t(g.from)?this.file=g.from:this.file=i(g.from)),f&&p){let x=new u(this.css,g);if(x.text){this.map=x;let b=x.consumer().file;!this.file&&b&&(this.file=this.mapResolve(b))}}this.file||(this.id="<input css "+s(6)+">"),this.map&&(this.map.file=this.from)}error(h,g,x,b={}){let y,_,v;if(g&&typeof g=="object"){let S=g,C=x;if(typeof S.offset=="number"){let P=this.fromOffset(S.offset);g=P.line,x=P.col}else g=S.line,x=S.column;if(typeof C.offset=="number"){let P=this.fromOffset(C.offset);_=P.line,v=P.col}else _=C.line,v=C.column}else if(!x){let S=this.fromOffset(g);g=S.line,x=S.col}let w=this.origin(g,x,_,v);return w?y=new c(h,w.endLine===void 0?w.line:{column:w.column,line:w.line},w.endLine===void 0?w.column:{column:w.endColumn,line:w.endLine},w.source,w.file,b.plugin):y=new c(h,_===void 0?g:{column:x,line:g},_===void 0?x:{column:v,line:_},this.css,this.file,b.plugin),y.input={column:x,endColumn:v,endLine:_,line:g,source:this.css},this.file&&(o&&(y.input.url=o(this.file).toString()),y.input.file=this.file),y}fromOffset(h){let g,x;if(this[l])x=this[l];else{let y=this.css.split(`
|
|
19
19
|
`);x=new Array(y.length);let _=0;for(let v=0,w=y.length;v<w;v++)x[v]=_,_+=y[v].length+1;this[l]=x}g=x[x.length-1];let b=0;if(h>=g)b=x.length-1;else{let y=x.length-2,_;for(;b<y;)if(_=b+(y-b>>1),h<x[_])y=_-1;else if(h>=x[_+1])b=_+1;else{b=_;break}}return{col:h-x[b]+1,line:b+1}}mapResolve(h){return/^\w+:\/\//.test(h)?h:i(this.map.consumer().sourceRoot||this.map.root||".",h)}origin(h,g,x,b){if(!this.map)return!1;let y=this.map.consumer(),_=y.originalPositionFor({column:g,line:h});if(!_.source)return!1;let v;typeof x=="number"&&(v=y.originalPositionFor({column:b,line:x}));let w;t(_.source)?w=o(_.source):w=new URL(_.source,this.map.consumer().sourceRoot||o(this.map.mapFile));let S={column:_.column,endColumn:v&&v.column,endLine:v&&v.line,line:_.line,url:w.toString()};if(w.protocol==="file:")if(n)S.file=n(w);else throw new Error("file: protocol is not available in this PostCSS build");let C=y.sourceContentFor(_.source);return C&&(S.source=C),S}toJSON(){let h={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(h[g]=this[g]);return this.map&&(h.map={...this.map},h.map.consumerCache&&(h.map.consumerCache=void 0)),h}get from(){return this.file||this.id}}return Qo=d,d.default=d,a&&a.registerInput&&a.registerInput(d),Qo}var es,gp;function Ah(){if(gp)return es;gp=1;let{SourceMapConsumer:e,SourceMapGenerator:r}=Le,{dirname:n,relative:o,resolve:t,sep:i}=Le,{pathToFileURL:s}=Le,a=Zn(),c=!!(e&&r),u=!!(n&&t&&o&&i);class l{constructor(f,d,m,h){this.stringify=f,this.mapOpts=m.map||{},this.root=d,this.opts=m,this.css=h,this.originalCSS=h,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let f;this.isInline()?f="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?f=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?f=this.mapOpts.annotation(this.opts.to,this.root):f=this.outputFile()+".map";let d=`
|
|
20
20
|
`;this.css.includes(`\r
|
|
21
21
|
`)&&(d=`\r
|
|
22
22
|
`),this.css+=d+"/*# sourceMappingURL="+f+" */"}applyPrevMaps(){for(let f of this.previous()){let d=this.toUrl(this.path(f.file)),m=f.root||n(f.file),h;this.mapOpts.sourcesContent===!1?(h=new e(f.text),h.sourcesContent&&(h.sourcesContent=null)):h=f.consumer(),this.map.applySourceMap(h,d,this.toUrl(this.path(m)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let f;for(let d=this.root.nodes.length-1;d>=0;d--)f=this.root.nodes[d],f.type==="comment"&&f.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(d)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),u&&c&&this.isMap())return this.generateMap();{let f="";return this.stringify(this.root,d=>{f+=d}),[f]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let f=this.previous()[0].consumer();f.file=this.outputFile(),this.map=r.fromSourceMap(f,{ignoreInvalidMapping:!0})}else this.map=new r({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new r({file:this.outputFile(),ignoreInvalidMapping:!0});let f=1,d=1,m="<no source>",h={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,x;this.stringify(this.root,(b,y,_)=>{if(this.css+=b,y&&_!=="end"&&(h.generated.line=f,h.generated.column=d-1,y.source&&y.source.start?(h.source=this.sourcePath(y),h.original.line=y.source.start.line,h.original.column=y.source.start.column-1,this.map.addMapping(h)):(h.source=m,h.original.line=1,h.original.column=0,this.map.addMapping(h))),g=b.match(/\n/g),g?(f+=g.length,x=b.lastIndexOf(`
|
|
23
|
-
`),d=b.length-x):d+=b.length,y&&_!=="start"){let v=y.parent||{raws:{}};(!(y.type==="decl"||y.type==="atrule"&&!y.nodes)||y!==v.last||v.raws.semicolon)&&(y.source&&y.source.end?(h.source=this.sourcePath(y),h.original.line=y.source.end.line,h.original.column=y.source.end.column-1,h.generated.line=f,h.generated.column=d-2,this.map.addMapping(h)):(h.source=m,h.original.line=1,h.original.column=0,h.generated.line=f,h.generated.column=d-1,this.map.addMapping(h)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(f=>f.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let f=this.mapOpts.annotation;return typeof f<"u"&&f!==!0?!1:this.previous().length?this.previous().some(d=>d.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(f=>f.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(f){if(this.mapOpts.absolute||f.charCodeAt(0)===60||/^\w+:\/\//.test(f))return f;let d=this.memoizedPaths.get(f);if(d)return d;let m=this.opts.to?n(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(m=n(t(m,this.mapOpts.annotation)));let h=o(m,f);return this.memoizedPaths.set(f,h),h}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(f=>{if(f.source&&f.source.input.map){let d=f.source.input.map;this.previousMaps.includes(d)||this.previousMaps.push(d)}});else{let f=new a(this.originalCSS,this.opts);f.map&&this.previousMaps.push(f.map)}return this.previousMaps}setSourcesContent(){let f={};if(this.root)this.root.walk(d=>{if(d.source){let m=d.source.input.from;if(m&&!f[m]){f[m]=!0;let h=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(h,d.source.input.css)}}});else if(this.css){let d=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(d,this.css)}}sourcePath(f){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(f.source.input.from):this.toUrl(this.path(f.source.input.from))}toBase64(f){return Buffer?Buffer.from(f).toString("base64"):window.btoa(unescape(encodeURIComponent(f)))}toFileUrl(f){let d=this.memoizedFileURLs.get(f);if(d)return d;if(s){let m=s(f).toString();return this.memoizedFileURLs.set(f,m),m}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(f){let d=this.memoizedURLs.get(f);if(d)return d;i==="\\"&&(f=f.replace(/\\/g,"/"));let m=encodeURI(f).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(f,m),m}}return es=l,es}var ts,vp;function Bn(){if(vp)return ts;vp=1;let e=Ln();class r extends e{constructor(o){super(o),this.type="comment"}}return ts=r,r.default=r,ts}var rs,yp;function St(){if(yp)return rs;yp=1;let{isClean:e,my:r}=fa(),n=Fn(),o=Bn(),t=Ln(),i,s,a,c;function u(f){return f.map(d=>(d.nodes&&(d.nodes=u(d.nodes)),delete d.source,d))}function l(f){if(f[e]=!1,f.proxyOf.nodes)for(let d of f.proxyOf.nodes)l(d)}class p extends t{append(...d){for(let m of d){let h=this.normalize(m,this.last);for(let g of h)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(d){if(super.cleanRaws(d),this.nodes)for(let m of this.nodes)m.cleanRaws(d)}each(d){if(!this.proxyOf.nodes)return;let m=this.getIterator(),h,g;for(;this.indexes[m]<this.proxyOf.nodes.length&&(h=this.indexes[m],g=d(this.proxyOf.nodes[h],h),g!==!1);)this.indexes[m]+=1;return delete this.indexes[m],g}every(d){return this.nodes.every(d)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let d=this.lastEach;return this.indexes[d]=0,d}getProxyProcessor(){return{get(d,m){return m==="proxyOf"?d:d[m]?m==="each"||typeof m=="string"&&m.startsWith("walk")?(...h)=>d[m](...h.map(g=>typeof g=="function"?(x,b)=>g(x.toProxy(),b):g)):m==="every"||m==="some"?h=>d[m]((g,...x)=>h(g.toProxy(),...x)):m==="root"?()=>d.root().toProxy():m==="nodes"?d.nodes.map(h=>h.toProxy()):m==="first"||m==="last"?d[m].toProxy():d[m]:d[m]},set(d,m,h){return d[m]===h||(d[m]=h,(m==="name"||m==="params"||m==="selector")&&d.markDirty()),!0}}}index(d){return typeof d=="number"?d:(d.proxyOf&&(d=d.proxyOf),this.proxyOf.nodes.indexOf(d))}insertAfter(d,m){let h=this.index(d),g=this.normalize(m,this.proxyOf.nodes[h]).reverse();h=this.index(d);for(let b of g)this.proxyOf.nodes.splice(h+1,0,b);let x;for(let b in this.indexes)x=this.indexes[b],h<x&&(this.indexes[b]=x+g.length);return this.markDirty(),this}insertBefore(d,m){let h=this.index(d),g=h===0?"prepend":!1,x=this.normalize(m,this.proxyOf.nodes[h],g).reverse();h=this.index(d);for(let y of x)this.proxyOf.nodes.splice(h,0,y);let b;for(let y in this.indexes)b=this.indexes[y],h<=b&&(this.indexes[y]=b+x.length);return this.markDirty(),this}normalize(d,m){if(typeof d=="string")d=u(i(d).nodes);else if(typeof d>"u")d=[];else if(Array.isArray(d)){d=d.slice(0);for(let g of d)g.parent&&g.parent.removeChild(g,"ignore")}else if(d.type==="root"&&this.type!=="document"){d=d.nodes.slice(0);for(let g of d)g.parent&&g.parent.removeChild(g,"ignore")}else if(d.type)d=[d];else if(d.prop){if(typeof d.value>"u")throw new Error("Value field is missed in node creation");typeof d.value!="string"&&(d.value=String(d.value)),d=[new n(d)]}else if(d.selector)d=[new s(d)];else if(d.name)d=[new a(d)];else if(d.text)d=[new o(d)];else throw new Error("Unknown node type in node creation");return d.map(g=>(g[r]||p.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&l(g),typeof g.raws.before>"u"&&m&&typeof m.raws.before<"u"&&(g.raws.before=m.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...d){d=d.reverse();for(let m of d){let h=this.normalize(m,this.first,"prepend").reverse();for(let g of h)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+h.length}return this.markDirty(),this}push(d){return d.parent=this,this.proxyOf.nodes.push(d),this}removeAll(){for(let d of this.proxyOf.nodes)d.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(d){d=this.index(d),this.proxyOf.nodes[d].parent=void 0,this.proxyOf.nodes.splice(d,1);let m;for(let h in this.indexes)m=this.indexes[h],m>=d&&(this.indexes[h]=m-1);return this.markDirty(),this}replaceValues(d,m,h){return h||(h=m,m={}),this.walkDecls(g=>{m.props&&!m.props.includes(g.prop)||m.fast&&!g.value.includes(m.fast)||(g.value=g.value.replace(d,h))}),this.markDirty(),this}some(d){return this.nodes.some(d)}walk(d){return this.each((m,h)=>{let g;try{g=d(m,h)}catch(x){throw m.addToError(x)}return g!==!1&&m.walk&&(g=m.walk(d)),g})}walkAtRules(d,m){return m?d instanceof RegExp?this.walk((h,g)=>{if(h.type==="atrule"&&d.test(h.name))return m(h,g)}):this.walk((h,g)=>{if(h.type==="atrule"&&h.name===d)return m(h,g)}):(m=d,this.walk((h,g)=>{if(h.type==="atrule")return m(h,g)}))}walkComments(d){return this.walk((m,h)=>{if(m.type==="comment")return d(m,h)})}walkDecls(d,m){return m?d instanceof RegExp?this.walk((h,g)=>{if(h.type==="decl"&&d.test(h.prop))return m(h,g)}):this.walk((h,g)=>{if(h.type==="decl"&&h.prop===d)return m(h,g)}):(m=d,this.walk((h,g)=>{if(h.type==="decl")return m(h,g)}))}walkRules(d,m){return m?d instanceof RegExp?this.walk((h,g)=>{if(h.type==="rule"&&d.test(h.selector))return m(h,g)}):this.walk((h,g)=>{if(h.type==="rule"&&h.selector===d)return m(h,g)}):(m=d,this.walk((h,g)=>{if(h.type==="rule")return m(h,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return p.registerParse=f=>{i=f},p.registerRule=f=>{s=f},p.registerAtRule=f=>{a=f},p.registerRoot=f=>{c=f},rs=p,p.default=p,p.rebuild=f=>{f.type==="atrule"?Object.setPrototypeOf(f,a.prototype):f.type==="rule"?Object.setPrototypeOf(f,s.prototype):f.type==="decl"?Object.setPrototypeOf(f,n.prototype):f.type==="comment"?Object.setPrototypeOf(f,o.prototype):f.type==="root"&&Object.setPrototypeOf(f,c.prototype),f[r]=!0,f.nodes&&f.nodes.forEach(d=>{p.rebuild(d)})},rs}var ns,bp;function pa(){if(bp)return ns;bp=1;let e=St(),r,n;class o extends e{constructor(i){super({type:"document",...i}),this.nodes||(this.nodes=[])}toResult(i={}){return new r(new n,this,i).stringify()}}return o.registerLazyResult=t=>{r=t},o.registerProcessor=t=>{n=t},ns=o,o.default=o,ns}var is,wp;function Mh(){if(wp)return is;wp=1;let e={};return is=function(n){e[n]||(e[n]=!0,typeof console<"u"&&console.warn&&console.warn(n))},is}var os,xp;function Uh(){if(xp)return os;xp=1;class e{constructor(n,o={}){if(this.type="warning",this.text=n,o.node&&o.node.source){let t=o.node.rangeBy(o);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(let t in o)this[t]=o[t]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return os=e,e.default=e,os}var ss,_p;function ha(){if(_p)return ss;_p=1;let e=Uh();class r{constructor(o,t,i){this.processor=o,this.messages=[],this.root=t,this.opts=i,this.css=void 0,this.map=void 0}toString(){return this.css}warn(o,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let i=new e(o,t);return this.messages.push(i),i}warnings(){return this.messages.filter(o=>o.type==="warning")}get content(){return this.css}}return ss=r,r.default=r,ss}var as,Sp;function mw(){if(Sp)return as;Sp=1;let e=39,r=34,n=92,o=47,t=10,i=32,s=12,a=9,c=13,u=91,l=93,p=40,f=41,d=123,m=125,h=59,g=42,x=58,b=64,y=/[\t\n\f\r "#'()/;[\\\]{}]/g,_=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,v=/.[\r\n"'(/\\]/,w=/[\da-f]/i;return as=function(C,R={}){let O=C.css.valueOf(),B=R.ignoreErrors,j,E,Me,Ne,K,H,ue,ge,de,Y,st=O.length,T=0,We=[],Pe=[];function _r(){return T}function be(F){throw C.error("Unclosed "+F,T)}function Ue(){return Pe.length===0&&T>=st}function wt(F){if(Pe.length)return Pe.pop();if(T>=st)return;let fe=F?F.ignoreUnclosed:!1;switch(j=O.charCodeAt(T),j){case t:case i:case a:case c:case s:{E=T;do E+=1,j=O.charCodeAt(E);while(j===i||j===t||j===a||j===c||j===s);Y=["space",O.slice(T,E)],T=E-1;break}case u:case l:case d:case m:case x:case h:case f:{let Q=String.fromCharCode(j);Y=[Q,Q,T];break}case p:{if(ge=We.length?We.pop()[1]:"",de=O.charCodeAt(T+1),ge==="url"&&de!==e&&de!==r&&de!==i&&de!==t&&de!==a&&de!==s&&de!==c){E=T;do{if(H=!1,E=O.indexOf(")",E+1),E===-1)if(B||fe){E=T;break}else be("bracket");for(ue=E;O.charCodeAt(ue-1)===n;)ue-=1,H=!H}while(H);Y=["brackets",O.slice(T,E+1),T,E],T=E}else E=O.indexOf(")",T+1),Ne=O.slice(T,E+1),E===-1||v.test(Ne)?Y=["(","(",T]:(Y=["brackets",Ne,T,E],T=E);break}case e:case r:{Me=j===e?"'":'"',E=T;do{if(H=!1,E=O.indexOf(Me,E+1),E===-1)if(B||fe){E=T+1;break}else be("string");for(ue=E;O.charCodeAt(ue-1)===n;)ue-=1,H=!H}while(H);Y=["string",O.slice(T,E+1),T,E],T=E;break}case b:{y.lastIndex=T+1,y.test(O),y.lastIndex===0?E=O.length-1:E=y.lastIndex-2,Y=["at-word",O.slice(T,E+1),T,E],T=E;break}case n:{for(E=T,K=!0;O.charCodeAt(E+1)===n;)E+=1,K=!K;if(j=O.charCodeAt(E+1),K&&j!==o&&j!==i&&j!==t&&j!==a&&j!==c&&j!==s&&(E+=1,w.test(O.charAt(E)))){for(;w.test(O.charAt(E+1));)E+=1;O.charCodeAt(E+1)===i&&(E+=1)}Y=["word",O.slice(T,E+1),T,E],T=E;break}default:{j===o&&O.charCodeAt(T+1)===g?(E=O.indexOf("*/",T+2)+1,E===0&&(B||fe?E=O.length:be("comment")),Y=["comment",O.slice(T,E+1),T,E],T=E):(_.lastIndex=T+1,_.test(O),_.lastIndex===0?E=O.length-1:E=_.lastIndex-2,Y=["word",O.slice(T,E+1),T,E],We.push(Y),T=E);break}}return T++,Y}function at(F){Pe.push(F)}return{back:at,endOfFile:Ue,nextToken:wt,position:_r}},as}var ls,$p;function ma(){if($p)return ls;$p=1;let e=St();class r extends e{constructor(o){super(o),this.type="atrule"}append(...o){return this.proxyOf.nodes||(this.nodes=[]),super.append(...o)}prepend(...o){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...o)}}return ls=r,r.default=r,e.registerAtRule(r),ls}var cs,kp;function Nr(){if(kp)return cs;kp=1;let e=St(),r,n;class o extends e{constructor(i){super(i),this.type="root",this.nodes||(this.nodes=[])}normalize(i,s,a){let c=super.normalize(i);if(s){if(a==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(let u of c)u.raws.before=s.raws.before}return c}removeChild(i,s){let a=this.index(i);return!s&&a===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[a].raws.before),super.removeChild(i)}toResult(i={}){return new r(new n,this,i).stringify()}}return o.registerLazyResult=t=>{r=t},o.registerProcessor=t=>{n=t},cs=o,o.default=o,e.registerRoot(o),cs}var us,Ip;function jh(){if(Ip)return us;Ip=1;let e={comma(r){return e.split(r,[","],!0)},space(r){let n=[" ",`
|
|
24
|
-
`," "];return e.split(r,n)},split(r,n,o){let t=[],i="",s=!1,a=0,c=!1,u="",l=!1;for(let p of r)l?l=!1:p==="\\"?l=!0:c?p===u&&(c=!1):p==='"'||p==="'"?(c=!0,u=p):p==="("?a+=1:p===")"?a>0&&(a-=1):a===0&&n.includes(p)&&(s=!0),s?(i!==""&&t.push(i.trim()),i="",s=!1):i+=p;return(o||i!=="")&&t.push(i.trim()),t}};return us=e,e.default=e,us}var ds,Ep;function ga(){if(Ep)return ds;Ep=1;let e=St(),r=jh();class n extends e{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return r.comma(this.selector)}set selectors(t){let i=this.selector?this.selector.match(/,\s*/):null,s=i?i[0]:","+this.raw("between","beforeOpen");this.selector=t.join(s)}}return ds=n,n.default=n,e.registerRule(n),ds}var fs,Cp;function gw(){if(Cp)return fs;Cp=1;let e=Fn(),r=mw(),n=Bn(),o=ma(),t=Nr(),i=ga(),s={empty:!0,space:!0};function a(u){for(let l=u.length-1;l>=0;l--){let p=u[l],f=p[3]||p[2];if(f)return f}}class c{constructor(l){this.input=l,this.root=new t,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:l,start:{column:1,line:1,offset:0}}}atrule(l){let p=new o;p.name=l[1].slice(1),p.name===""&&this.unnamedAtrule(p,l),this.init(p,l[2]);let f,d,m,h=!1,g=!1,x=[],b=[];for(;!this.tokenizer.endOfFile();){if(l=this.tokenizer.nextToken(),f=l[0],f==="("||f==="["?b.push(f==="("?")":"]"):f==="{"&&b.length>0?b.push("}"):f===b[b.length-1]&&b.pop(),b.length===0)if(f===";"){p.source.end=this.getPosition(l[2]),p.source.end.offset++,this.semicolon=!0;break}else if(f==="{"){g=!0;break}else if(f==="}"){if(x.length>0){for(m=x.length-1,d=x[m];d&&d[0]==="space";)d=x[--m];d&&(p.source.end=this.getPosition(d[3]||d[2]),p.source.end.offset++)}this.end(l);break}else x.push(l);else x.push(l);if(this.tokenizer.endOfFile()){h=!0;break}}p.raws.between=this.spacesAndCommentsFromEnd(x),x.length?(p.raws.afterName=this.spacesAndCommentsFromStart(x),this.raw(p,"params",x),h&&(l=x[x.length-1],p.source.end=this.getPosition(l[3]||l[2]),p.source.end.offset++,this.spaces=p.raws.between,p.raws.between="")):(p.raws.afterName="",p.params=""),g&&(p.nodes=[],this.current=p)}checkMissedSemicolon(l){let p=this.colon(l);if(p===!1)return;let f=0,d;for(let m=p-1;m>=0&&(d=l[m],!(d[0]!=="space"&&(f+=1,f===2)));m--);throw this.input.error("Missed semicolon",d[0]==="word"?d[3]+1:d[2])}colon(l){let p=0,f,d,m;for(let[h,g]of l.entries()){if(f=g,d=f[0],d==="("&&(p+=1),d===")"&&(p-=1),p===0&&d===":")if(!m)this.doubleColon(f);else{if(m[0]==="word"&&m[1]==="progid")continue;return h}m=f}return!1}comment(l){let p=new n;this.init(p,l[2]),p.source.end=this.getPosition(l[3]||l[2]),p.source.end.offset++;let f=l[1].slice(2,-2);if(/^\s*$/.test(f))p.text="",p.raws.left=f,p.raws.right="";else{let d=f.match(/^(\s*)([^]*\S)(\s*)$/);p.text=d[2],p.raws.left=d[1],p.raws.right=d[3]}}createTokenizer(){this.tokenizer=r(this.input)}decl(l,p){let f=new e;this.init(f,l[0][2]);let d=l[l.length-1];for(d[0]===";"&&(this.semicolon=!0,l.pop()),f.source.end=this.getPosition(d[3]||d[2]||a(l)),f.source.end.offset++;l[0][0]!=="word";)l.length===1&&this.unknownWord(l),f.raws.before+=l.shift()[1];for(f.source.start=this.getPosition(l[0][2]),f.prop="";l.length;){let b=l[0][0];if(b===":"||b==="space"||b==="comment")break;f.prop+=l.shift()[1]}f.raws.between="";let m;for(;l.length;)if(m=l.shift(),m[0]===":"){f.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),f.raws.between+=m[1];(f.prop[0]==="_"||f.prop[0]==="*")&&(f.raws.before+=f.prop[0],f.prop=f.prop.slice(1));let h=[],g;for(;l.length&&(g=l[0][0],!(g!=="space"&&g!=="comment"));)h.push(l.shift());this.precheckMissedSemicolon(l);for(let b=l.length-1;b>=0;b--){if(m=l[b],m[1].toLowerCase()==="!important"){f.important=!0;let y=this.stringFrom(l,b);y=this.spacesFromEnd(l)+y,y!==" !important"&&(f.raws.important=y);break}else if(m[1].toLowerCase()==="important"){let y=l.slice(0),_="";for(let v=b;v>0;v--){let w=y[v][0];if(_.trim().indexOf("!")===0&&w!=="space")break;_=y.pop()[1]+_}_.trim().indexOf("!")===0&&(f.important=!0,f.raws.important=_,l=y)}if(m[0]!=="space"&&m[0]!=="comment")break}l.some(b=>b[0]!=="space"&&b[0]!=="comment")&&(f.raws.between+=h.map(b=>b[1]).join(""),h=[]),this.raw(f,"value",h.concat(l),p),f.value.includes(":")&&!p&&this.checkMissedSemicolon(l)}doubleColon(l){throw this.input.error("Double colon",{offset:l[2]},{offset:l[2]+l[1].length})}emptyRule(l){let p=new i;this.init(p,l[2]),p.selector="",p.raws.between="",this.current=p}end(l){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(l[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(l)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(l){if(this.spaces+=l[1],this.current.nodes){let p=this.current.nodes[this.current.nodes.length-1];p&&p.type==="rule"&&!p.raws.ownSemicolon&&(p.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(l){let p=this.input.fromOffset(l);return{column:p.col,line:p.line,offset:l}}init(l,p){this.current.push(l),l.source={input:this.input,start:this.getPosition(p)},l.raws.before=this.spaces,this.spaces="",l.type!=="comment"&&(this.semicolon=!1)}other(l){let p=!1,f=null,d=!1,m=null,h=[],g=l[1].startsWith("--"),x=[],b=l;for(;b;){if(f=b[0],x.push(b),f==="("||f==="[")m||(m=b),h.push(f==="("?")":"]");else if(g&&d&&f==="{")m||(m=b),h.push("}");else if(h.length===0)if(f===";")if(d){this.decl(x,g);return}else break;else if(f==="{"){this.rule(x);return}else if(f==="}"){this.tokenizer.back(x.pop()),p=!0;break}else f===":"&&(d=!0);else f===h[h.length-1]&&(h.pop(),h.length===0&&(m=null));b=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(p=!0),h.length>0&&this.unclosedBracket(m),p&&d){if(!g)for(;x.length&&(b=x[x.length-1][0],!(b!=="space"&&b!=="comment"));)this.tokenizer.back(x.pop());this.decl(x,g)}else this.unknownWord(x)}parse(){let l;for(;!this.tokenizer.endOfFile();)switch(l=this.tokenizer.nextToken(),l[0]){case"space":this.spaces+=l[1];break;case";":this.freeSemicolon(l);break;case"}":this.end(l);break;case"comment":this.comment(l);break;case"at-word":this.atrule(l);break;case"{":this.emptyRule(l);break;default:this.other(l);break}this.endFile()}precheckMissedSemicolon(){}raw(l,p,f,d){let m,h,g=f.length,x="",b=!0,y,_;for(let v=0;v<g;v+=1)m=f[v],h=m[0],h==="space"&&v===g-1&&!d?b=!1:h==="comment"?(_=f[v-1]?f[v-1][0]:"empty",y=f[v+1]?f[v+1][0]:"empty",!s[_]&&!s[y]?x.slice(-1)===","?b=!1:x+=m[1]:b=!1):x+=m[1];if(!b){let v=f.reduce((w,S)=>w+S[1],"");l.raws[p]={raw:v,value:x}}l[p]=x}rule(l){l.pop();let p=new i;this.init(p,l[0][2]),p.raws.between=this.spacesAndCommentsFromEnd(l),this.raw(p,"selector",l),this.current=p}spacesAndCommentsFromEnd(l){let p,f="";for(;l.length&&(p=l[l.length-1][0],!(p!=="space"&&p!=="comment"));)f=l.pop()[1]+f;return f}spacesAndCommentsFromStart(l){let p,f="";for(;l.length&&(p=l[0][0],!(p!=="space"&&p!=="comment"));)f+=l.shift()[1];return f}spacesFromEnd(l){let p,f="";for(;l.length&&(p=l[l.length-1][0],p==="space");)f=l.pop()[1]+f;return f}stringFrom(l,p){let f="";for(let d=p;d<l.length;d++)f+=l[d][1];return l.splice(p,l.length-p),f}unclosedBlock(){let l=this.current.source.start;throw this.input.error("Unclosed block",l.line,l.column)}unclosedBracket(l){throw this.input.error("Unclosed bracket",{offset:l[2]},{offset:l[2]+1})}unexpectedClose(l){throw this.input.error("Unexpected }",{offset:l[2]},{offset:l[2]+1})}unknownWord(l){throw this.input.error("Unknown word",{offset:l[0][2]},{offset:l[0][2]+l[0][1].length})}unnamedAtrule(l,p){throw this.input.error("At-rule without name",{offset:p[2]},{offset:p[2]+p[1].length})}}return fs=c,fs}var ps,Op;function va(){if(Op)return ps;Op=1;let e=St(),r=gw(),n=Zn();function o(t,i){let s=new n(t,i),a=new r(s);try{a.parse()}catch(c){throw c}return a.root}return ps=o,o.default=o,e.registerParse(o),ps}var hs,Np;function Lh(){if(Np)return hs;Np=1;let{isClean:e,my:r}=fa(),n=Ah(),o=jn(),t=St(),i=pa(),s=Mh(),a=ha(),c=va(),u=Nr(),l={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},p={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},f={Once:!0,postcssPlugin:!0,prepare:!0},d=0;function m(_){return typeof _=="object"&&typeof _.then=="function"}function h(_){let v=!1,w=l[_.type];return _.type==="decl"?v=_.prop.toLowerCase():_.type==="atrule"&&(v=_.name.toLowerCase()),v&&_.append?[w,w+"-"+v,d,w+"Exit",w+"Exit-"+v]:v?[w,w+"-"+v,w+"Exit",w+"Exit-"+v]:_.append?[w,d,w+"Exit"]:[w,w+"Exit"]}function g(_){let v;return _.type==="document"?v=["Document",d,"DocumentExit"]:_.type==="root"?v=["Root",d,"RootExit"]:v=h(_),{eventIndex:0,events:v,iterator:0,node:_,visitorIndex:0,visitors:[]}}function x(_){return _[e]=!1,_.nodes&&_.nodes.forEach(v=>x(v)),_}let b={};class y{constructor(v,w,S){this.stringified=!1,this.processed=!1;let C;if(typeof w=="object"&&w!==null&&(w.type==="root"||w.type==="document"))C=x(w);else if(w instanceof y||w instanceof a)C=x(w.root),w.map&&(typeof S.map>"u"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=w.map);else{let R=c;S.syntax&&(R=S.syntax.parse),S.parser&&(R=S.parser),R.parse&&(R=R.parse);try{C=R(w,S)}catch(O){this.processed=!0,this.error=O}C&&!C[r]&&t.rebuild(C)}this.result=new a(v,C,S),this.helpers={...b,postcss:b,result:this.result},this.plugins=this.processor.plugins.map(R=>typeof R=="object"&&R.prepare?{...R,...R.prepare(this.result)}:R)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(v){return this.async().catch(v)}finally(v){return this.async().then(v,v)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(v,w){let S=this.result.lastPlugin;try{w&&w.addToError(v),this.error=v,v.name==="CssSyntaxError"&&!v.plugin?(v.plugin=S.postcssPlugin,v.setMessage()):S.postcssVersion}catch(C){console&&console.error&&console.error(C)}return v}prepareVisitors(){this.listeners={};let v=(w,S,C)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([w,C])};for(let w of this.plugins)if(typeof w=="object")for(let S in w){if(!p[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${w.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[S])if(typeof w[S]=="object")for(let C in w[S])C==="*"?v(w,S,w[S][C]):v(w,S+"-"+C.toLowerCase(),w[S][C]);else typeof w[S]=="function"&&v(w,S,w[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let v=0;v<this.plugins.length;v++){let w=this.plugins[v],S=this.runOnRoot(w);if(m(S))try{await S}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[e];){v[e]=!0;let w=[g(v)];for(;w.length>0;){let S=this.visitTick(w);if(m(S))try{await S}catch(C){let R=w[w.length-1].node;throw this.handleError(C,R)}}}if(this.listeners.OnceExit)for(let[w,S]of this.listeners.OnceExit){this.result.lastPlugin=w;try{if(v.type==="document"){let C=v.nodes.map(R=>S(R,this.helpers));await Promise.all(C)}else await S(v,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(v){this.result.lastPlugin=v;try{if(typeof v=="object"&&v.Once){if(this.result.root.type==="document"){let w=this.result.root.nodes.map(S=>v.Once(S,this.helpers));return m(w[0])?Promise.all(w):w}return v.Once(this.result.root,this.helpers)}else if(typeof v=="function")return v(this.result.root,this.result)}catch(w){throw this.handleError(w)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let v=this.result.opts,w=o;v.syntax&&(w=v.syntax.stringify),v.stringifier&&(w=v.stringifier),w.stringify&&(w=w.stringify);let C=new n(w,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let v of this.plugins){let w=this.runOnRoot(v);if(m(w))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[e];)v[e]=!0,this.walkSync(v);if(this.listeners.OnceExit)if(v.type==="document")for(let w of v.nodes)this.visitSync(this.listeners.OnceExit,w);else this.visitSync(this.listeners.OnceExit,v)}return this.result}then(v,w){return this.async().then(v,w)}toString(){return this.css}visitSync(v,w){for(let[S,C]of v){this.result.lastPlugin=S;let R;try{R=C(w,this.helpers)}catch(O){throw this.handleError(O,w.proxyOf)}if(w.type!=="root"&&w.type!=="document"&&!w.parent)return!0;if(m(R))throw this.getAsyncError()}}visitTick(v){let w=v[v.length-1],{node:S,visitors:C}=w;if(S.type!=="root"&&S.type!=="document"&&!S.parent){v.pop();return}if(C.length>0&&w.visitorIndex<C.length){let[O,B]=C[w.visitorIndex];w.visitorIndex+=1,w.visitorIndex===C.length&&(w.visitors=[],w.visitorIndex=0),this.result.lastPlugin=O;try{return B(S.toProxy(),this.helpers)}catch(j){throw this.handleError(j,S)}}if(w.iterator!==0){let O=w.iterator,B;for(;B=S.nodes[S.indexes[O]];)if(S.indexes[O]+=1,!B[e]){B[e]=!0,v.push(g(B));return}w.iterator=0,delete S.indexes[O]}let R=w.events;for(;w.eventIndex<R.length;){let O=R[w.eventIndex];if(w.eventIndex+=1,O===d){S.nodes&&S.nodes.length&&(S[e]=!0,w.iterator=S.getIterator());return}else if(this.listeners[O]){w.visitors=this.listeners[O];return}}v.pop()}walkSync(v){v[e]=!0;let w=h(v);for(let S of w)if(S===d)v.nodes&&v.each(C=>{C[e]||this.walkSync(C)});else{let C=this.listeners[S];if(C&&this.visitSync(C,v.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return y.registerPostcss=_=>{b=_},hs=y,y.default=y,u.registerLazyResult(y),i.registerLazyResult(y),hs}var ms,zp;function vw(){if(zp)return ms;zp=1;let e=Ah(),r=jn(),n=Mh(),o=va(),t=ha();class i{constructor(a,c,u){c=c.toString(),this.stringified=!1,this._processor=a,this._css=c,this._opts=u,this._map=void 0;let l,p=r;this.result=new t(this._processor,l,this._opts),this.result.css=c;let f=this;Object.defineProperty(this.result,"root",{get(){return f.root}});let d=new e(p,l,this._opts,c);if(d.isMap()){let[m,h]=d.generate();m&&(this.result.css=m),h&&(this.result.map=h)}else d.clearAnnotation(),this.result.css=d.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(a){return this.async().catch(a)}finally(a){return this.async().then(a,a)}sync(){if(this.error)throw this.error;return this.result}then(a,c){return this.async().then(a,c)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let a,c=o;try{a=c(this._css,this._opts)}catch(u){this.error=u}if(this.error)throw this.error;return this._root=a,a}get[Symbol.toStringTag](){return"NoWorkResult"}}return ms=i,i.default=i,ms}var gs,Dp;function yw(){if(Dp)return gs;Dp=1;let e=vw(),r=Lh(),n=pa(),o=Nr();class t{constructor(s=[]){this.version="8.4.38",this.plugins=this.normalize(s)}normalize(s){let a=[];for(let c of s)if(c.postcss===!0?c=c():c.postcss&&(c=c.postcss),typeof c=="object"&&Array.isArray(c.plugins))a=a.concat(c.plugins);else if(typeof c=="object"&&c.postcssPlugin)a.push(c);else if(typeof c=="function")a.push(c);else if(!(typeof c=="object"&&(c.parse||c.stringify)))throw new Error(c+" is not a PostCSS plugin");return a}process(s,a={}){return!this.plugins.length&&!a.parser&&!a.stringifier&&!a.syntax?new e(this,s,a):new r(this,s,a)}use(s){return this.plugins=this.plugins.concat(this.normalize([s])),this}}return gs=t,t.default=t,o.registerProcessor(t),n.registerProcessor(t),gs}var vs,Tp;function bw(){if(Tp)return vs;Tp=1;let e=Fn(),r=Rh(),n=Bn(),o=ma(),t=Zn(),i=Nr(),s=ga();function a(c,u){if(Array.isArray(c))return c.map(f=>a(f));let{inputs:l,...p}=c;if(l){u=[];for(let f of l){let d={...f,__proto__:t.prototype};d.map&&(d.map={...d.map,__proto__:r.prototype}),u.push(d)}}if(p.nodes&&(p.nodes=c.nodes.map(f=>a(f,u))),p.source){let{inputId:f,...d}=p.source;p.source=d,f!=null&&(p.source.input=u[f])}if(p.type==="root")return new i(p);if(p.type==="decl")return new e(p);if(p.type==="rule")return new s(p);if(p.type==="comment")return new n(p);if(p.type==="atrule")return new o(p);throw new Error("Unknown node type: "+c.type)}return vs=a,a.default=a,vs}var ys,Pp;function ww(){if(Pp)return ys;Pp=1;let e=da(),r=Fn(),n=Lh(),o=St(),t=yw(),i=jn(),s=bw(),a=pa(),c=Uh(),u=Bn(),l=ma(),p=ha(),f=Zn(),d=va(),m=jh(),h=ga(),g=Nr(),x=Ln();function b(...y){return y.length===1&&Array.isArray(y[0])&&(y=y[0]),new t(y)}return b.plugin=function(_,v){let w=!1;function S(...R){console&&console.warn&&!w&&(w=!0,console.warn(_+`: postcss.plugin was deprecated. Migration guide:
|
|
23
|
+
`),d=b.length-x):d+=b.length,y&&_!=="start"){let v=y.parent||{raws:{}};(!(y.type==="decl"||y.type==="atrule"&&!y.nodes)||y!==v.last||v.raws.semicolon)&&(y.source&&y.source.end?(h.source=this.sourcePath(y),h.original.line=y.source.end.line,h.original.column=y.source.end.column-1,h.generated.line=f,h.generated.column=d-2,this.map.addMapping(h)):(h.source=m,h.original.line=1,h.original.column=0,h.generated.line=f,h.generated.column=d-1,this.map.addMapping(h)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(f=>f.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let f=this.mapOpts.annotation;return typeof f<"u"&&f!==!0?!1:this.previous().length?this.previous().some(d=>d.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(f=>f.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(f){if(this.mapOpts.absolute||f.charCodeAt(0)===60||/^\w+:\/\//.test(f))return f;let d=this.memoizedPaths.get(f);if(d)return d;let m=this.opts.to?n(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(m=n(t(m,this.mapOpts.annotation)));let h=o(m,f);return this.memoizedPaths.set(f,h),h}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(f=>{if(f.source&&f.source.input.map){let d=f.source.input.map;this.previousMaps.includes(d)||this.previousMaps.push(d)}});else{let f=new a(this.originalCSS,this.opts);f.map&&this.previousMaps.push(f.map)}return this.previousMaps}setSourcesContent(){let f={};if(this.root)this.root.walk(d=>{if(d.source){let m=d.source.input.from;if(m&&!f[m]){f[m]=!0;let h=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(h,d.source.input.css)}}});else if(this.css){let d=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(d,this.css)}}sourcePath(f){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(f.source.input.from):this.toUrl(this.path(f.source.input.from))}toBase64(f){return Buffer?Buffer.from(f).toString("base64"):window.btoa(unescape(encodeURIComponent(f)))}toFileUrl(f){let d=this.memoizedFileURLs.get(f);if(d)return d;if(s){let m=s(f).toString();return this.memoizedFileURLs.set(f,m),m}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(f){let d=this.memoizedURLs.get(f);if(d)return d;i==="\\"&&(f=f.replace(/\\/g,"/"));let m=encodeURI(f).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(f,m),m}}return es=l,es}var ts,vp;function Bn(){if(vp)return ts;vp=1;let e=Ln();class r extends e{constructor(o){super(o),this.type="comment"}}return ts=r,r.default=r,ts}var rs,yp;function St(){if(yp)return rs;yp=1;let{isClean:e,my:r}=fa(),n=Fn(),o=Bn(),t=Ln(),i,s,a,c;function u(f){return f.map(d=>(d.nodes&&(d.nodes=u(d.nodes)),delete d.source,d))}function l(f){if(f[e]=!1,f.proxyOf.nodes)for(let d of f.proxyOf.nodes)l(d)}class p extends t{append(...d){for(let m of d){let h=this.normalize(m,this.last);for(let g of h)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(d){if(super.cleanRaws(d),this.nodes)for(let m of this.nodes)m.cleanRaws(d)}each(d){if(!this.proxyOf.nodes)return;let m=this.getIterator(),h,g;for(;this.indexes[m]<this.proxyOf.nodes.length&&(h=this.indexes[m],g=d(this.proxyOf.nodes[h],h),g!==!1);)this.indexes[m]+=1;return delete this.indexes[m],g}every(d){return this.nodes.every(d)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let d=this.lastEach;return this.indexes[d]=0,d}getProxyProcessor(){return{get(d,m){return m==="proxyOf"?d:d[m]?m==="each"||typeof m=="string"&&m.startsWith("walk")?(...h)=>d[m](...h.map(g=>typeof g=="function"?(x,b)=>g(x.toProxy(),b):g)):m==="every"||m==="some"?h=>d[m]((g,...x)=>h(g.toProxy(),...x)):m==="root"?()=>d.root().toProxy():m==="nodes"?d.nodes.map(h=>h.toProxy()):m==="first"||m==="last"?d[m].toProxy():d[m]:d[m]},set(d,m,h){return d[m]===h||(d[m]=h,(m==="name"||m==="params"||m==="selector")&&d.markDirty()),!0}}}index(d){return typeof d=="number"?d:(d.proxyOf&&(d=d.proxyOf),this.proxyOf.nodes.indexOf(d))}insertAfter(d,m){let h=this.index(d),g=this.normalize(m,this.proxyOf.nodes[h]).reverse();h=this.index(d);for(let b of g)this.proxyOf.nodes.splice(h+1,0,b);let x;for(let b in this.indexes)x=this.indexes[b],h<x&&(this.indexes[b]=x+g.length);return this.markDirty(),this}insertBefore(d,m){let h=this.index(d),g=h===0?"prepend":!1,x=this.normalize(m,this.proxyOf.nodes[h],g).reverse();h=this.index(d);for(let y of x)this.proxyOf.nodes.splice(h,0,y);let b;for(let y in this.indexes)b=this.indexes[y],h<=b&&(this.indexes[y]=b+x.length);return this.markDirty(),this}normalize(d,m){if(typeof d=="string")d=u(i(d).nodes);else if(typeof d>"u")d=[];else if(Array.isArray(d)){d=d.slice(0);for(let g of d)g.parent&&g.parent.removeChild(g,"ignore")}else if(d.type==="root"&&this.type!=="document"){d=d.nodes.slice(0);for(let g of d)g.parent&&g.parent.removeChild(g,"ignore")}else if(d.type)d=[d];else if(d.prop){if(typeof d.value>"u")throw new Error("Value field is missed in node creation");typeof d.value!="string"&&(d.value=String(d.value)),d=[new n(d)]}else if(d.selector)d=[new s(d)];else if(d.name)d=[new a(d)];else if(d.text)d=[new o(d)];else throw new Error("Unknown node type in node creation");return d.map(g=>(g[r]||p.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&l(g),typeof g.raws.before>"u"&&m&&typeof m.raws.before<"u"&&(g.raws.before=m.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...d){d=d.reverse();for(let m of d){let h=this.normalize(m,this.first,"prepend").reverse();for(let g of h)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+h.length}return this.markDirty(),this}push(d){return d.parent=this,this.proxyOf.nodes.push(d),this}removeAll(){for(let d of this.proxyOf.nodes)d.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(d){d=this.index(d),this.proxyOf.nodes[d].parent=void 0,this.proxyOf.nodes.splice(d,1);let m;for(let h in this.indexes)m=this.indexes[h],m>=d&&(this.indexes[h]=m-1);return this.markDirty(),this}replaceValues(d,m,h){return h||(h=m,m={}),this.walkDecls(g=>{m.props&&!m.props.includes(g.prop)||m.fast&&!g.value.includes(m.fast)||(g.value=g.value.replace(d,h))}),this.markDirty(),this}some(d){return this.nodes.some(d)}walk(d){return this.each((m,h)=>{let g;try{g=d(m,h)}catch(x){throw m.addToError(x)}return g!==!1&&m.walk&&(g=m.walk(d)),g})}walkAtRules(d,m){return m?d instanceof RegExp?this.walk((h,g)=>{if(h.type==="atrule"&&d.test(h.name))return m(h,g)}):this.walk((h,g)=>{if(h.type==="atrule"&&h.name===d)return m(h,g)}):(m=d,this.walk((h,g)=>{if(h.type==="atrule")return m(h,g)}))}walkComments(d){return this.walk((m,h)=>{if(m.type==="comment")return d(m,h)})}walkDecls(d,m){return m?d instanceof RegExp?this.walk((h,g)=>{if(h.type==="decl"&&d.test(h.prop))return m(h,g)}):this.walk((h,g)=>{if(h.type==="decl"&&h.prop===d)return m(h,g)}):(m=d,this.walk((h,g)=>{if(h.type==="decl")return m(h,g)}))}walkRules(d,m){return m?d instanceof RegExp?this.walk((h,g)=>{if(h.type==="rule"&&d.test(h.selector))return m(h,g)}):this.walk((h,g)=>{if(h.type==="rule"&&h.selector===d)return m(h,g)}):(m=d,this.walk((h,g)=>{if(h.type==="rule")return m(h,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return p.registerParse=f=>{i=f},p.registerRule=f=>{s=f},p.registerAtRule=f=>{a=f},p.registerRoot=f=>{c=f},rs=p,p.default=p,p.rebuild=f=>{f.type==="atrule"?Object.setPrototypeOf(f,a.prototype):f.type==="rule"?Object.setPrototypeOf(f,s.prototype):f.type==="decl"?Object.setPrototypeOf(f,n.prototype):f.type==="comment"?Object.setPrototypeOf(f,o.prototype):f.type==="root"&&Object.setPrototypeOf(f,c.prototype),f[r]=!0,f.nodes&&f.nodes.forEach(d=>{p.rebuild(d)})},rs}var ns,bp;function pa(){if(bp)return ns;bp=1;let e=St(),r,n;class o extends e{constructor(i){super({type:"document",...i}),this.nodes||(this.nodes=[])}toResult(i={}){return new r(new n,this,i).stringify()}}return o.registerLazyResult=t=>{r=t},o.registerProcessor=t=>{n=t},ns=o,o.default=o,ns}var is,wp;function Mh(){if(wp)return is;wp=1;let e={};return is=function(n){e[n]||(e[n]=!0,typeof console<"u"&&console.warn&&console.warn(n))},is}var os,xp;function Uh(){if(xp)return os;xp=1;class e{constructor(n,o={}){if(this.type="warning",this.text=n,o.node&&o.node.source){let t=o.node.rangeBy(o);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(let t in o)this[t]=o[t]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return os=e,e.default=e,os}var ss,_p;function ha(){if(_p)return ss;_p=1;let e=Uh();class r{constructor(o,t,i){this.processor=o,this.messages=[],this.root=t,this.opts=i,this.css=void 0,this.map=void 0}toString(){return this.css}warn(o,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let i=new e(o,t);return this.messages.push(i),i}warnings(){return this.messages.filter(o=>o.type==="warning")}get content(){return this.css}}return ss=r,r.default=r,ss}var as,Sp;function mw(){if(Sp)return as;Sp=1;let e=39,r=34,n=92,o=47,t=10,i=32,s=12,a=9,c=13,u=91,l=93,p=40,f=41,d=123,m=125,h=59,g=42,x=58,b=64,y=/[\t\n\f\r "#'()/;[\\\]{}]/g,_=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,v=/.[\r\n"'(/\\]/,w=/[\da-f]/i;return as=function(C,P={}){let O=C.css.valueOf(),B=P.ignoreErrors,j,E,Me,Ne,K,H,ue,ge,de,Y,st=O.length,T=0,We=[],Re=[];function _r(){return T}function be(F){throw C.error("Unclosed "+F,T)}function Ue(){return Re.length===0&&T>=st}function wt(F){if(Re.length)return Re.pop();if(T>=st)return;let fe=F?F.ignoreUnclosed:!1;switch(j=O.charCodeAt(T),j){case t:case i:case a:case c:case s:{E=T;do E+=1,j=O.charCodeAt(E);while(j===i||j===t||j===a||j===c||j===s);Y=["space",O.slice(T,E)],T=E-1;break}case u:case l:case d:case m:case x:case h:case f:{let Q=String.fromCharCode(j);Y=[Q,Q,T];break}case p:{if(ge=We.length?We.pop()[1]:"",de=O.charCodeAt(T+1),ge==="url"&&de!==e&&de!==r&&de!==i&&de!==t&&de!==a&&de!==s&&de!==c){E=T;do{if(H=!1,E=O.indexOf(")",E+1),E===-1)if(B||fe){E=T;break}else be("bracket");for(ue=E;O.charCodeAt(ue-1)===n;)ue-=1,H=!H}while(H);Y=["brackets",O.slice(T,E+1),T,E],T=E}else E=O.indexOf(")",T+1),Ne=O.slice(T,E+1),E===-1||v.test(Ne)?Y=["(","(",T]:(Y=["brackets",Ne,T,E],T=E);break}case e:case r:{Me=j===e?"'":'"',E=T;do{if(H=!1,E=O.indexOf(Me,E+1),E===-1)if(B||fe){E=T+1;break}else be("string");for(ue=E;O.charCodeAt(ue-1)===n;)ue-=1,H=!H}while(H);Y=["string",O.slice(T,E+1),T,E],T=E;break}case b:{y.lastIndex=T+1,y.test(O),y.lastIndex===0?E=O.length-1:E=y.lastIndex-2,Y=["at-word",O.slice(T,E+1),T,E],T=E;break}case n:{for(E=T,K=!0;O.charCodeAt(E+1)===n;)E+=1,K=!K;if(j=O.charCodeAt(E+1),K&&j!==o&&j!==i&&j!==t&&j!==a&&j!==c&&j!==s&&(E+=1,w.test(O.charAt(E)))){for(;w.test(O.charAt(E+1));)E+=1;O.charCodeAt(E+1)===i&&(E+=1)}Y=["word",O.slice(T,E+1),T,E],T=E;break}default:{j===o&&O.charCodeAt(T+1)===g?(E=O.indexOf("*/",T+2)+1,E===0&&(B||fe?E=O.length:be("comment")),Y=["comment",O.slice(T,E+1),T,E],T=E):(_.lastIndex=T+1,_.test(O),_.lastIndex===0?E=O.length-1:E=_.lastIndex-2,Y=["word",O.slice(T,E+1),T,E],We.push(Y),T=E);break}}return T++,Y}function at(F){Re.push(F)}return{back:at,endOfFile:Ue,nextToken:wt,position:_r}},as}var ls,$p;function ma(){if($p)return ls;$p=1;let e=St();class r extends e{constructor(o){super(o),this.type="atrule"}append(...o){return this.proxyOf.nodes||(this.nodes=[]),super.append(...o)}prepend(...o){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...o)}}return ls=r,r.default=r,e.registerAtRule(r),ls}var cs,kp;function Nr(){if(kp)return cs;kp=1;let e=St(),r,n;class o extends e{constructor(i){super(i),this.type="root",this.nodes||(this.nodes=[])}normalize(i,s,a){let c=super.normalize(i);if(s){if(a==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(let u of c)u.raws.before=s.raws.before}return c}removeChild(i,s){let a=this.index(i);return!s&&a===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[a].raws.before),super.removeChild(i)}toResult(i={}){return new r(new n,this,i).stringify()}}return o.registerLazyResult=t=>{r=t},o.registerProcessor=t=>{n=t},cs=o,o.default=o,e.registerRoot(o),cs}var us,Ip;function jh(){if(Ip)return us;Ip=1;let e={comma(r){return e.split(r,[","],!0)},space(r){let n=[" ",`
|
|
24
|
+
`," "];return e.split(r,n)},split(r,n,o){let t=[],i="",s=!1,a=0,c=!1,u="",l=!1;for(let p of r)l?l=!1:p==="\\"?l=!0:c?p===u&&(c=!1):p==='"'||p==="'"?(c=!0,u=p):p==="("?a+=1:p===")"?a>0&&(a-=1):a===0&&n.includes(p)&&(s=!0),s?(i!==""&&t.push(i.trim()),i="",s=!1):i+=p;return(o||i!=="")&&t.push(i.trim()),t}};return us=e,e.default=e,us}var ds,Ep;function ga(){if(Ep)return ds;Ep=1;let e=St(),r=jh();class n extends e{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return r.comma(this.selector)}set selectors(t){let i=this.selector?this.selector.match(/,\s*/):null,s=i?i[0]:","+this.raw("between","beforeOpen");this.selector=t.join(s)}}return ds=n,n.default=n,e.registerRule(n),ds}var fs,Cp;function gw(){if(Cp)return fs;Cp=1;let e=Fn(),r=mw(),n=Bn(),o=ma(),t=Nr(),i=ga(),s={empty:!0,space:!0};function a(u){for(let l=u.length-1;l>=0;l--){let p=u[l],f=p[3]||p[2];if(f)return f}}class c{constructor(l){this.input=l,this.root=new t,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:l,start:{column:1,line:1,offset:0}}}atrule(l){let p=new o;p.name=l[1].slice(1),p.name===""&&this.unnamedAtrule(p,l),this.init(p,l[2]);let f,d,m,h=!1,g=!1,x=[],b=[];for(;!this.tokenizer.endOfFile();){if(l=this.tokenizer.nextToken(),f=l[0],f==="("||f==="["?b.push(f==="("?")":"]"):f==="{"&&b.length>0?b.push("}"):f===b[b.length-1]&&b.pop(),b.length===0)if(f===";"){p.source.end=this.getPosition(l[2]),p.source.end.offset++,this.semicolon=!0;break}else if(f==="{"){g=!0;break}else if(f==="}"){if(x.length>0){for(m=x.length-1,d=x[m];d&&d[0]==="space";)d=x[--m];d&&(p.source.end=this.getPosition(d[3]||d[2]),p.source.end.offset++)}this.end(l);break}else x.push(l);else x.push(l);if(this.tokenizer.endOfFile()){h=!0;break}}p.raws.between=this.spacesAndCommentsFromEnd(x),x.length?(p.raws.afterName=this.spacesAndCommentsFromStart(x),this.raw(p,"params",x),h&&(l=x[x.length-1],p.source.end=this.getPosition(l[3]||l[2]),p.source.end.offset++,this.spaces=p.raws.between,p.raws.between="")):(p.raws.afterName="",p.params=""),g&&(p.nodes=[],this.current=p)}checkMissedSemicolon(l){let p=this.colon(l);if(p===!1)return;let f=0,d;for(let m=p-1;m>=0&&(d=l[m],!(d[0]!=="space"&&(f+=1,f===2)));m--);throw this.input.error("Missed semicolon",d[0]==="word"?d[3]+1:d[2])}colon(l){let p=0,f,d,m;for(let[h,g]of l.entries()){if(f=g,d=f[0],d==="("&&(p+=1),d===")"&&(p-=1),p===0&&d===":")if(!m)this.doubleColon(f);else{if(m[0]==="word"&&m[1]==="progid")continue;return h}m=f}return!1}comment(l){let p=new n;this.init(p,l[2]),p.source.end=this.getPosition(l[3]||l[2]),p.source.end.offset++;let f=l[1].slice(2,-2);if(/^\s*$/.test(f))p.text="",p.raws.left=f,p.raws.right="";else{let d=f.match(/^(\s*)([^]*\S)(\s*)$/);p.text=d[2],p.raws.left=d[1],p.raws.right=d[3]}}createTokenizer(){this.tokenizer=r(this.input)}decl(l,p){let f=new e;this.init(f,l[0][2]);let d=l[l.length-1];for(d[0]===";"&&(this.semicolon=!0,l.pop()),f.source.end=this.getPosition(d[3]||d[2]||a(l)),f.source.end.offset++;l[0][0]!=="word";)l.length===1&&this.unknownWord(l),f.raws.before+=l.shift()[1];for(f.source.start=this.getPosition(l[0][2]),f.prop="";l.length;){let b=l[0][0];if(b===":"||b==="space"||b==="comment")break;f.prop+=l.shift()[1]}f.raws.between="";let m;for(;l.length;)if(m=l.shift(),m[0]===":"){f.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),f.raws.between+=m[1];(f.prop[0]==="_"||f.prop[0]==="*")&&(f.raws.before+=f.prop[0],f.prop=f.prop.slice(1));let h=[],g;for(;l.length&&(g=l[0][0],!(g!=="space"&&g!=="comment"));)h.push(l.shift());this.precheckMissedSemicolon(l);for(let b=l.length-1;b>=0;b--){if(m=l[b],m[1].toLowerCase()==="!important"){f.important=!0;let y=this.stringFrom(l,b);y=this.spacesFromEnd(l)+y,y!==" !important"&&(f.raws.important=y);break}else if(m[1].toLowerCase()==="important"){let y=l.slice(0),_="";for(let v=b;v>0;v--){let w=y[v][0];if(_.trim().indexOf("!")===0&&w!=="space")break;_=y.pop()[1]+_}_.trim().indexOf("!")===0&&(f.important=!0,f.raws.important=_,l=y)}if(m[0]!=="space"&&m[0]!=="comment")break}l.some(b=>b[0]!=="space"&&b[0]!=="comment")&&(f.raws.between+=h.map(b=>b[1]).join(""),h=[]),this.raw(f,"value",h.concat(l),p),f.value.includes(":")&&!p&&this.checkMissedSemicolon(l)}doubleColon(l){throw this.input.error("Double colon",{offset:l[2]},{offset:l[2]+l[1].length})}emptyRule(l){let p=new i;this.init(p,l[2]),p.selector="",p.raws.between="",this.current=p}end(l){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(l[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(l)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(l){if(this.spaces+=l[1],this.current.nodes){let p=this.current.nodes[this.current.nodes.length-1];p&&p.type==="rule"&&!p.raws.ownSemicolon&&(p.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(l){let p=this.input.fromOffset(l);return{column:p.col,line:p.line,offset:l}}init(l,p){this.current.push(l),l.source={input:this.input,start:this.getPosition(p)},l.raws.before=this.spaces,this.spaces="",l.type!=="comment"&&(this.semicolon=!1)}other(l){let p=!1,f=null,d=!1,m=null,h=[],g=l[1].startsWith("--"),x=[],b=l;for(;b;){if(f=b[0],x.push(b),f==="("||f==="[")m||(m=b),h.push(f==="("?")":"]");else if(g&&d&&f==="{")m||(m=b),h.push("}");else if(h.length===0)if(f===";")if(d){this.decl(x,g);return}else break;else if(f==="{"){this.rule(x);return}else if(f==="}"){this.tokenizer.back(x.pop()),p=!0;break}else f===":"&&(d=!0);else f===h[h.length-1]&&(h.pop(),h.length===0&&(m=null));b=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(p=!0),h.length>0&&this.unclosedBracket(m),p&&d){if(!g)for(;x.length&&(b=x[x.length-1][0],!(b!=="space"&&b!=="comment"));)this.tokenizer.back(x.pop());this.decl(x,g)}else this.unknownWord(x)}parse(){let l;for(;!this.tokenizer.endOfFile();)switch(l=this.tokenizer.nextToken(),l[0]){case"space":this.spaces+=l[1];break;case";":this.freeSemicolon(l);break;case"}":this.end(l);break;case"comment":this.comment(l);break;case"at-word":this.atrule(l);break;case"{":this.emptyRule(l);break;default:this.other(l);break}this.endFile()}precheckMissedSemicolon(){}raw(l,p,f,d){let m,h,g=f.length,x="",b=!0,y,_;for(let v=0;v<g;v+=1)m=f[v],h=m[0],h==="space"&&v===g-1&&!d?b=!1:h==="comment"?(_=f[v-1]?f[v-1][0]:"empty",y=f[v+1]?f[v+1][0]:"empty",!s[_]&&!s[y]?x.slice(-1)===","?b=!1:x+=m[1]:b=!1):x+=m[1];if(!b){let v=f.reduce((w,S)=>w+S[1],"");l.raws[p]={raw:v,value:x}}l[p]=x}rule(l){l.pop();let p=new i;this.init(p,l[0][2]),p.raws.between=this.spacesAndCommentsFromEnd(l),this.raw(p,"selector",l),this.current=p}spacesAndCommentsFromEnd(l){let p,f="";for(;l.length&&(p=l[l.length-1][0],!(p!=="space"&&p!=="comment"));)f=l.pop()[1]+f;return f}spacesAndCommentsFromStart(l){let p,f="";for(;l.length&&(p=l[0][0],!(p!=="space"&&p!=="comment"));)f+=l.shift()[1];return f}spacesFromEnd(l){let p,f="";for(;l.length&&(p=l[l.length-1][0],p==="space");)f=l.pop()[1]+f;return f}stringFrom(l,p){let f="";for(let d=p;d<l.length;d++)f+=l[d][1];return l.splice(p,l.length-p),f}unclosedBlock(){let l=this.current.source.start;throw this.input.error("Unclosed block",l.line,l.column)}unclosedBracket(l){throw this.input.error("Unclosed bracket",{offset:l[2]},{offset:l[2]+1})}unexpectedClose(l){throw this.input.error("Unexpected }",{offset:l[2]},{offset:l[2]+1})}unknownWord(l){throw this.input.error("Unknown word",{offset:l[0][2]},{offset:l[0][2]+l[0][1].length})}unnamedAtrule(l,p){throw this.input.error("At-rule without name",{offset:p[2]},{offset:p[2]+p[1].length})}}return fs=c,fs}var ps,Op;function va(){if(Op)return ps;Op=1;let e=St(),r=gw(),n=Zn();function o(t,i){let s=new n(t,i),a=new r(s);try{a.parse()}catch(c){throw c}return a.root}return ps=o,o.default=o,e.registerParse(o),ps}var hs,Np;function Lh(){if(Np)return hs;Np=1;let{isClean:e,my:r}=fa(),n=Ah(),o=jn(),t=St(),i=pa(),s=Mh(),a=ha(),c=va(),u=Nr(),l={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},p={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},f={Once:!0,postcssPlugin:!0,prepare:!0},d=0;function m(_){return typeof _=="object"&&typeof _.then=="function"}function h(_){let v=!1,w=l[_.type];return _.type==="decl"?v=_.prop.toLowerCase():_.type==="atrule"&&(v=_.name.toLowerCase()),v&&_.append?[w,w+"-"+v,d,w+"Exit",w+"Exit-"+v]:v?[w,w+"-"+v,w+"Exit",w+"Exit-"+v]:_.append?[w,d,w+"Exit"]:[w,w+"Exit"]}function g(_){let v;return _.type==="document"?v=["Document",d,"DocumentExit"]:_.type==="root"?v=["Root",d,"RootExit"]:v=h(_),{eventIndex:0,events:v,iterator:0,node:_,visitorIndex:0,visitors:[]}}function x(_){return _[e]=!1,_.nodes&&_.nodes.forEach(v=>x(v)),_}let b={};class y{constructor(v,w,S){this.stringified=!1,this.processed=!1;let C;if(typeof w=="object"&&w!==null&&(w.type==="root"||w.type==="document"))C=x(w);else if(w instanceof y||w instanceof a)C=x(w.root),w.map&&(typeof S.map>"u"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=w.map);else{let P=c;S.syntax&&(P=S.syntax.parse),S.parser&&(P=S.parser),P.parse&&(P=P.parse);try{C=P(w,S)}catch(O){this.processed=!0,this.error=O}C&&!C[r]&&t.rebuild(C)}this.result=new a(v,C,S),this.helpers={...b,postcss:b,result:this.result},this.plugins=this.processor.plugins.map(P=>typeof P=="object"&&P.prepare?{...P,...P.prepare(this.result)}:P)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(v){return this.async().catch(v)}finally(v){return this.async().then(v,v)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(v,w){let S=this.result.lastPlugin;try{w&&w.addToError(v),this.error=v,v.name==="CssSyntaxError"&&!v.plugin?(v.plugin=S.postcssPlugin,v.setMessage()):S.postcssVersion}catch(C){console&&console.error&&console.error(C)}return v}prepareVisitors(){this.listeners={};let v=(w,S,C)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([w,C])};for(let w of this.plugins)if(typeof w=="object")for(let S in w){if(!p[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${w.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[S])if(typeof w[S]=="object")for(let C in w[S])C==="*"?v(w,S,w[S][C]):v(w,S+"-"+C.toLowerCase(),w[S][C]);else typeof w[S]=="function"&&v(w,S,w[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let v=0;v<this.plugins.length;v++){let w=this.plugins[v],S=this.runOnRoot(w);if(m(S))try{await S}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[e];){v[e]=!0;let w=[g(v)];for(;w.length>0;){let S=this.visitTick(w);if(m(S))try{await S}catch(C){let P=w[w.length-1].node;throw this.handleError(C,P)}}}if(this.listeners.OnceExit)for(let[w,S]of this.listeners.OnceExit){this.result.lastPlugin=w;try{if(v.type==="document"){let C=v.nodes.map(P=>S(P,this.helpers));await Promise.all(C)}else await S(v,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(v){this.result.lastPlugin=v;try{if(typeof v=="object"&&v.Once){if(this.result.root.type==="document"){let w=this.result.root.nodes.map(S=>v.Once(S,this.helpers));return m(w[0])?Promise.all(w):w}return v.Once(this.result.root,this.helpers)}else if(typeof v=="function")return v(this.result.root,this.result)}catch(w){throw this.handleError(w)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let v=this.result.opts,w=o;v.syntax&&(w=v.syntax.stringify),v.stringifier&&(w=v.stringifier),w.stringify&&(w=w.stringify);let C=new n(w,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let v of this.plugins){let w=this.runOnRoot(v);if(m(w))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[e];)v[e]=!0,this.walkSync(v);if(this.listeners.OnceExit)if(v.type==="document")for(let w of v.nodes)this.visitSync(this.listeners.OnceExit,w);else this.visitSync(this.listeners.OnceExit,v)}return this.result}then(v,w){return this.async().then(v,w)}toString(){return this.css}visitSync(v,w){for(let[S,C]of v){this.result.lastPlugin=S;let P;try{P=C(w,this.helpers)}catch(O){throw this.handleError(O,w.proxyOf)}if(w.type!=="root"&&w.type!=="document"&&!w.parent)return!0;if(m(P))throw this.getAsyncError()}}visitTick(v){let w=v[v.length-1],{node:S,visitors:C}=w;if(S.type!=="root"&&S.type!=="document"&&!S.parent){v.pop();return}if(C.length>0&&w.visitorIndex<C.length){let[O,B]=C[w.visitorIndex];w.visitorIndex+=1,w.visitorIndex===C.length&&(w.visitors=[],w.visitorIndex=0),this.result.lastPlugin=O;try{return B(S.toProxy(),this.helpers)}catch(j){throw this.handleError(j,S)}}if(w.iterator!==0){let O=w.iterator,B;for(;B=S.nodes[S.indexes[O]];)if(S.indexes[O]+=1,!B[e]){B[e]=!0,v.push(g(B));return}w.iterator=0,delete S.indexes[O]}let P=w.events;for(;w.eventIndex<P.length;){let O=P[w.eventIndex];if(w.eventIndex+=1,O===d){S.nodes&&S.nodes.length&&(S[e]=!0,w.iterator=S.getIterator());return}else if(this.listeners[O]){w.visitors=this.listeners[O];return}}v.pop()}walkSync(v){v[e]=!0;let w=h(v);for(let S of w)if(S===d)v.nodes&&v.each(C=>{C[e]||this.walkSync(C)});else{let C=this.listeners[S];if(C&&this.visitSync(C,v.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return y.registerPostcss=_=>{b=_},hs=y,y.default=y,u.registerLazyResult(y),i.registerLazyResult(y),hs}var ms,zp;function vw(){if(zp)return ms;zp=1;let e=Ah(),r=jn(),n=Mh(),o=va(),t=ha();class i{constructor(a,c,u){c=c.toString(),this.stringified=!1,this._processor=a,this._css=c,this._opts=u,this._map=void 0;let l,p=r;this.result=new t(this._processor,l,this._opts),this.result.css=c;let f=this;Object.defineProperty(this.result,"root",{get(){return f.root}});let d=new e(p,l,this._opts,c);if(d.isMap()){let[m,h]=d.generate();m&&(this.result.css=m),h&&(this.result.map=h)}else d.clearAnnotation(),this.result.css=d.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(a){return this.async().catch(a)}finally(a){return this.async().then(a,a)}sync(){if(this.error)throw this.error;return this.result}then(a,c){return this.async().then(a,c)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let a,c=o;try{a=c(this._css,this._opts)}catch(u){this.error=u}if(this.error)throw this.error;return this._root=a,a}get[Symbol.toStringTag](){return"NoWorkResult"}}return ms=i,i.default=i,ms}var gs,Dp;function yw(){if(Dp)return gs;Dp=1;let e=vw(),r=Lh(),n=pa(),o=Nr();class t{constructor(s=[]){this.version="8.4.38",this.plugins=this.normalize(s)}normalize(s){let a=[];for(let c of s)if(c.postcss===!0?c=c():c.postcss&&(c=c.postcss),typeof c=="object"&&Array.isArray(c.plugins))a=a.concat(c.plugins);else if(typeof c=="object"&&c.postcssPlugin)a.push(c);else if(typeof c=="function")a.push(c);else if(!(typeof c=="object"&&(c.parse||c.stringify)))throw new Error(c+" is not a PostCSS plugin");return a}process(s,a={}){return!this.plugins.length&&!a.parser&&!a.stringifier&&!a.syntax?new e(this,s,a):new r(this,s,a)}use(s){return this.plugins=this.plugins.concat(this.normalize([s])),this}}return gs=t,t.default=t,o.registerProcessor(t),n.registerProcessor(t),gs}var vs,Tp;function bw(){if(Tp)return vs;Tp=1;let e=Fn(),r=Ph(),n=Bn(),o=ma(),t=Zn(),i=Nr(),s=ga();function a(c,u){if(Array.isArray(c))return c.map(f=>a(f));let{inputs:l,...p}=c;if(l){u=[];for(let f of l){let d={...f,__proto__:t.prototype};d.map&&(d.map={...d.map,__proto__:r.prototype}),u.push(d)}}if(p.nodes&&(p.nodes=c.nodes.map(f=>a(f,u))),p.source){let{inputId:f,...d}=p.source;p.source=d,f!=null&&(p.source.input=u[f])}if(p.type==="root")return new i(p);if(p.type==="decl")return new e(p);if(p.type==="rule")return new s(p);if(p.type==="comment")return new n(p);if(p.type==="atrule")return new o(p);throw new Error("Unknown node type: "+c.type)}return vs=a,a.default=a,vs}var ys,Rp;function ww(){if(Rp)return ys;Rp=1;let e=da(),r=Fn(),n=Lh(),o=St(),t=yw(),i=jn(),s=bw(),a=pa(),c=Uh(),u=Bn(),l=ma(),p=ha(),f=Zn(),d=va(),m=jh(),h=ga(),g=Nr(),x=Ln();function b(...y){return y.length===1&&Array.isArray(y[0])&&(y=y[0]),new t(y)}return b.plugin=function(_,v){let w=!1;function S(...P){console&&console.warn&&!w&&(w=!0,console.warn(_+`: postcss.plugin was deprecated. Migration guide:
|
|
25
25
|
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(_+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
|
|
26
|
-
https://www.w3ctech.com/topic/2226`));let O=v(...
|
|
26
|
+
https://www.w3ctech.com/topic/2226`));let O=v(...P);return O.postcssPlugin=_,O.postcssVersion=new t().version,O}let C;return Object.defineProperty(S,"postcss",{get(){return C||(C=S()),C}}),S.process=function(P,O,B){return b([S(B)]).process(P,O)},S},b.stringify=i,b.parse=d,b.fromJSON=s,b.list=m,b.comment=y=>new u(y),b.atRule=y=>new l(y),b.decl=y=>new r(y),b.rule=y=>new h(y),b.root=y=>new g(y),b.document=y=>new a(y),b.CssSyntaxError=e,b.Declaration=r,b.Container=o,b.Processor=t,b.Document=a,b.Comment=u,b.Warning=c,b.AtRule=l,b.Result=p,b.Input=f,b.Rule=h,b.Root=g,b.Node=x,n.registerPostcss(b),ys=b,b.default=b,ys}var xw=ww(),oe=cw(xw);oe.stringify;oe.fromJSON;oe.plugin;oe.parse;oe.list;oe.document;oe.comment;oe.atRule;oe.rule;oe.decl;oe.root;oe.CssSyntaxError;oe.Declaration;oe.Container;oe.Processor;oe.Document;oe.Comment;oe.Warning;oe.AtRule;oe.Result;oe.Input;oe.Rule;oe.Root;oe.Node;var _w=Object.defineProperty,Sw=(e,r,n)=>r in e?_w(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Pe=(e,r,n)=>Sw(e,typeof r!="symbol"?r+"":r,n);Date.now().toString();function $w(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function kw(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var n=function o(){return this instanceof o?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};n.prototype=r.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var t=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,t.get?t:{enumerable:!0,get:function(){return e[o]}})}),n}var $n={exports:{}},Pp;function Iw(){if(Pp)return $n.exports;Pp=1;var e=String,r=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return $n.exports=r(),$n.exports.createColors=r,$n.exports}var Ew={},Cw=Object.freeze(Object.defineProperty({__proto__:null,default:Ew},Symbol.toStringTag,{value:"Module"})),Fe=kw(Cw),bs,Ap;function ya(){if(Ap)return bs;Ap=1;let e=Iw(),r=Fe;class n extends Error{constructor(t,i,s,a,c,u){super(t),this.name="CssSyntaxError",this.reason=t,c&&(this.file=c),a&&(this.source=a),u&&(this.plugin=u),typeof i<"u"&&typeof s<"u"&&(typeof i=="number"?(this.line=i,this.column=s):(this.line=i.line,this.column=i.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,n)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let i=this.source;t==null&&(t=e.isColorSupported),r&&t&&(i=r(i));let s=i.split(/\r?\n/),a=Math.max(this.line-3,0),c=Math.min(this.line+2,s.length),u=String(c).length,l,p;if(t){let{bold:f,gray:d,red:m}=e.createColors(!0);l=h=>f(m(h)),p=h=>d(h)}else l=p=f=>f;return s.slice(a,c).map((f,d)=>{let m=a+1+d,h=" "+(" "+m).slice(-u)+" | ";if(m===this.line){let g=p(h.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+p(h)+f+`
|
|
27
27
|
`+g+l("^")}return" "+p(h)+f}).join(`
|
|
28
28
|
`)}toString(){let t=this.showSourceCode();return t&&(t=`
|
|
29
29
|
|
|
@@ -40,17 +40,17 @@ https://www.w3ctech.com/topic/2226`));let O=v(...R);return O.postcssPlugin=_,O.p
|
|
|
40
40
|
`)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(i,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeOpen(t){let i;return t.walk(s=>{if(s.type!=="decl"&&(i=s.raws.between,typeof i<"u"))return!1}),i}rawBeforeRule(t){let i;return t.walk(s=>{if(s.nodes&&(s.parent!==t||t.first!==s)&&typeof s.raws.before<"u")return i=s.raws.before,i.includes(`
|
|
41
41
|
`)&&(i=i.replace(/[^\n]+$/,"")),!1}),i&&(i=i.replace(/\S/g,"")),i}rawColon(t){let i;return t.walkDecls(s=>{if(typeof s.raws.between<"u")return i=s.raws.between.replace(/[^\s:]/g,""),!1}),i}rawEmptyBody(t){let i;return t.walk(s=>{if(s.nodes&&s.nodes.length===0&&(i=s.raws.after,typeof i<"u"))return!1}),i}rawIndent(t){if(t.raws.indent)return t.raws.indent;let i;return t.walk(s=>{let a=s.parent;if(a&&a!==t&&a.parent&&a.parent===t&&typeof s.raws.before<"u"){let c=s.raws.before.split(`
|
|
42
42
|
`);return i=c[c.length-1],i=i.replace(/\S/g,""),!1}}),i}rawSemicolon(t){let i;return t.walk(s=>{if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(i=s.raws.semicolon,typeof i<"u"))return!1}),i}rawValue(t,i){let s=t[i],a=t.raws[i];return a&&a.value===s?a.raw:s}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,i){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,i)}}return ws=n,n.default=n,ws}var xs,jp;function Wn(){if(jp)return xs;jp=1;let e=Fh();function r(n,o){new e(o).stringify(n)}return xs=r,r.default=r,xs}var _s,Lp;function Vn(){if(Lp)return _s;Lp=1;let{isClean:e,my:r}=ba(),n=ya(),o=Fh(),t=Wn();function i(a,c){let u=new a.constructor;for(let l in a){if(!Object.prototype.hasOwnProperty.call(a,l)||l==="proxyCache")continue;let p=a[l],f=typeof p;l==="parent"&&f==="object"?c&&(u[l]=c):l==="source"?u[l]=p:Array.isArray(p)?u[l]=p.map(d=>i(d,u)):(f==="object"&&p!==null&&(p=i(p)),u[l]=p)}return u}class s{constructor(c={}){this.raws={},this[e]=!1,this[r]=!0;for(let u in c)if(u==="nodes"){this.nodes=[];for(let l of c[u])typeof l.clone=="function"?this.append(l.clone()):this.append(l)}else this[u]=c[u]}addToError(c){if(c.postcssNode=this,c.stack&&this.source&&/\n\s{4}at /.test(c.stack)){let u=this.source;c.stack=c.stack.replace(/\n\s{4}at /,`$&${u.input.from}:${u.start.line}:${u.start.column}$&`)}return c}after(c){return this.parent.insertAfter(this,c),this}assign(c={}){for(let u in c)this[u]=c[u];return this}before(c){return this.parent.insertBefore(this,c),this}cleanRaws(c){delete this.raws.before,delete this.raws.after,c||delete this.raws.between}clone(c={}){let u=i(this);for(let l in c)u[l]=c[l];return u}cloneAfter(c={}){let u=this.clone(c);return this.parent.insertAfter(this,u),u}cloneBefore(c={}){let u=this.clone(c);return this.parent.insertBefore(this,u),u}error(c,u={}){if(this.source){let{end:l,start:p}=this.rangeBy(u);return this.source.input.error(c,{column:p.column,line:p.line},{column:l.column,line:l.line},u)}return new n(c)}getProxyProcessor(){return{get(c,u){return u==="proxyOf"?c:u==="root"?()=>c.root().toProxy():c[u]},set(c,u,l){return c[u]===l||(c[u]=l,(u==="prop"||u==="value"||u==="name"||u==="params"||u==="important"||u==="text")&&c.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let c=this;for(;c=c.parent;)c[e]=!1}}next(){if(!this.parent)return;let c=this.parent.index(this);return this.parent.nodes[c+1]}positionBy(c,u){let l=this.source.start;if(c.index)l=this.positionInside(c.index,u);else if(c.word){u=this.toString();let p=u.indexOf(c.word);p!==-1&&(l=this.positionInside(p,u))}return l}positionInside(c,u){let l=u||this.toString(),p=this.source.start.column,f=this.source.start.line;for(let d=0;d<c;d++)l[d]===`
|
|
43
|
-
`?(p=1,f+=1):p+=1;return{column:p,line:f}}prev(){if(!this.parent)return;let c=this.parent.index(this);return this.parent.nodes[c-1]}rangeBy(c){let u={column:this.source.start.column,line:this.source.start.line},l=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:u.column+1,line:u.line};if(c.word){let p=this.toString(),f=p.indexOf(c.word);f!==-1&&(u=this.positionInside(f,p),l=this.positionInside(f+c.word.length,p))}else c.start?u={column:c.start.column,line:c.start.line}:c.index&&(u=this.positionInside(c.index)),c.end?l={column:c.end.column,line:c.end.line}:typeof c.endIndex=="number"?l=this.positionInside(c.endIndex):c.index&&(l=this.positionInside(c.index+1));return(l.line<u.line||l.line===u.line&&l.column<=u.column)&&(l={column:u.column+1,line:u.line}),{end:l,start:u}}raw(c,u){return new o().raw(this,c,u)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...c){if(this.parent){let u=this,l=!1;for(let p of c)p===this?l=!0:l?(this.parent.insertAfter(u,p),u=p):this.parent.insertBefore(u,p);l||this.remove()}return this}root(){let c=this;for(;c.parent&&c.parent.type!=="document";)c=c.parent;return c}toJSON(c,u){let l={},p=u==null;u=u||new Map;let f=0;for(let d in this){if(!Object.prototype.hasOwnProperty.call(this,d)||d==="parent"||d==="proxyCache")continue;let m=this[d];if(Array.isArray(m))l[d]=m.map(h=>typeof h=="object"&&h.toJSON?h.toJSON(null,u):h);else if(typeof m=="object"&&m.toJSON)l[d]=m.toJSON(null,u);else if(d==="source"){let h=u.get(m.input);h==null&&(h=f,u.set(m.input,f),f++),l[d]={end:m.end,inputId:h,start:m.start}}else l[d]=m}return p&&(l.inputs=[...u.keys()].map(d=>d.toJSON())),l}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(c=t){c.stringify&&(c=c.stringify);let u="";return c(this,l=>{u+=l}),u}warn(c,u,l){let p={node:this};for(let f in l)p[f]=l[f];return c.warn(u,p)}get proxyOf(){return this}}return _s=s,s.default=s,_s}var Ss,Fp;function qn(){if(Fp)return Ss;Fp=1;let e=Vn();class r extends e{constructor(o){o&&typeof o.value<"u"&&typeof o.value!="string"&&(o={...o,value:String(o.value)}),super(o),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return Ss=r,r.default=r,Ss}var $s,Zp;function Ow(){if(Zp)return $s;Zp=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return $s={nanoid:(o=21)=>{let t="",i=o;for(;i--;)t+=e[Math.random()*64|0];return t},customAlphabet:(o,t=21)=>(i=t)=>{let s="",a=i;for(;a--;)s+=o[Math.random()*o.length|0];return s}},$s}var ks,Bp;function Zh(){if(Bp)return ks;Bp=1;let{SourceMapConsumer:e,SourceMapGenerator:r}=Fe,{existsSync:n,readFileSync:o}=Fe,{dirname:t,join:i}=Fe;function s(c){return Buffer?Buffer.from(c,"base64").toString():window.atob(c)}class a{constructor(u,l){if(l.map===!1)return;this.loadAnnotation(u),this.inline=this.startWith(this.annotation,"data:");let p=l.map?l.map.prev:void 0,f=this.loadMap(l.from,p);!this.mapFile&&l.from&&(this.mapFile=l.from),this.mapFile&&(this.root=t(this.mapFile)),f&&(this.text=f)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(u){let l=/^data:application\/json;charset=utf-?8;base64,/,p=/^data:application\/json;base64,/,f=/^data:application\/json;charset=utf-?8,/,d=/^data:application\/json,/;if(f.test(u)||d.test(u))return decodeURIComponent(u.substr(RegExp.lastMatch.length));if(l.test(u)||p.test(u))return s(u.substr(RegExp.lastMatch.length));let m=u.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(u){return u.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(u){return typeof u!="object"?!1:typeof u.mappings=="string"||typeof u._mappings=="string"||Array.isArray(u.sections)}loadAnnotation(u){let l=u.match(/\/\*\s*# sourceMappingURL=/gm);if(!l)return;let p=u.lastIndexOf(l.pop()),f=u.indexOf("*/",p);p>-1&&f>-1&&(this.annotation=this.getAnnotationURL(u.substring(p,f)))}loadFile(u){if(this.root=t(u),n(u))return this.mapFile=u,o(u,"utf-8").toString().trim()}loadMap(u,l){if(l===!1)return!1;if(l){if(typeof l=="string")return l;if(typeof l=="function"){let p=l(u);if(p){let f=this.loadFile(p);if(!f)throw new Error("Unable to load previous source map: "+p.toString());return f}}else{if(l instanceof e)return r.fromSourceMap(l).toString();if(l instanceof r)return l.toString();if(this.isMap(l))return JSON.stringify(l);throw new Error("Unsupported previous source map format: "+l.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let p=this.annotation;return u&&(p=i(t(u),p)),this.loadFile(p)}}}startWith(u,l){return u?u.substr(0,l.length)===l:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return ks=a,a.default=a,ks}var Is,Wp;function Gn(){if(Wp)return Is;Wp=1;let{SourceMapConsumer:e,SourceMapGenerator:r}=Fe,{fileURLToPath:n,pathToFileURL:o}=Fe,{isAbsolute:t,resolve:i}=Fe,{nanoid:s}=Ow(),a=Fe,c=ya(),u=Zh(),l=Symbol("fromOffsetCache"),p=!!(e&&r),f=!!(i&&t);class d{constructor(h,g={}){if(h===null||typeof h>"u"||typeof h=="object"&&!h.toString)throw new Error(`PostCSS received ${h} instead of CSS string`);if(this.css=h.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!f||/^\w+:\/\//.test(g.from)||t(g.from)?this.file=g.from:this.file=i(g.from)),f&&p){let x=new u(this.css,g);if(x.text){this.map=x;let b=x.consumer().file;!this.file&&b&&(this.file=this.mapResolve(b))}}this.file||(this.id="<input css "+s(6)+">"),this.map&&(this.map.file=this.from)}error(h,g,x,b={}){let y,_,v;if(g&&typeof g=="object"){let S=g,C=x;if(typeof S.offset=="number"){let
|
|
43
|
+
`?(p=1,f+=1):p+=1;return{column:p,line:f}}prev(){if(!this.parent)return;let c=this.parent.index(this);return this.parent.nodes[c-1]}rangeBy(c){let u={column:this.source.start.column,line:this.source.start.line},l=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:u.column+1,line:u.line};if(c.word){let p=this.toString(),f=p.indexOf(c.word);f!==-1&&(u=this.positionInside(f,p),l=this.positionInside(f+c.word.length,p))}else c.start?u={column:c.start.column,line:c.start.line}:c.index&&(u=this.positionInside(c.index)),c.end?l={column:c.end.column,line:c.end.line}:typeof c.endIndex=="number"?l=this.positionInside(c.endIndex):c.index&&(l=this.positionInside(c.index+1));return(l.line<u.line||l.line===u.line&&l.column<=u.column)&&(l={column:u.column+1,line:u.line}),{end:l,start:u}}raw(c,u){return new o().raw(this,c,u)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...c){if(this.parent){let u=this,l=!1;for(let p of c)p===this?l=!0:l?(this.parent.insertAfter(u,p),u=p):this.parent.insertBefore(u,p);l||this.remove()}return this}root(){let c=this;for(;c.parent&&c.parent.type!=="document";)c=c.parent;return c}toJSON(c,u){let l={},p=u==null;u=u||new Map;let f=0;for(let d in this){if(!Object.prototype.hasOwnProperty.call(this,d)||d==="parent"||d==="proxyCache")continue;let m=this[d];if(Array.isArray(m))l[d]=m.map(h=>typeof h=="object"&&h.toJSON?h.toJSON(null,u):h);else if(typeof m=="object"&&m.toJSON)l[d]=m.toJSON(null,u);else if(d==="source"){let h=u.get(m.input);h==null&&(h=f,u.set(m.input,f),f++),l[d]={end:m.end,inputId:h,start:m.start}}else l[d]=m}return p&&(l.inputs=[...u.keys()].map(d=>d.toJSON())),l}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(c=t){c.stringify&&(c=c.stringify);let u="";return c(this,l=>{u+=l}),u}warn(c,u,l){let p={node:this};for(let f in l)p[f]=l[f];return c.warn(u,p)}get proxyOf(){return this}}return _s=s,s.default=s,_s}var Ss,Fp;function qn(){if(Fp)return Ss;Fp=1;let e=Vn();class r extends e{constructor(o){o&&typeof o.value<"u"&&typeof o.value!="string"&&(o={...o,value:String(o.value)}),super(o),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return Ss=r,r.default=r,Ss}var $s,Zp;function Ow(){if(Zp)return $s;Zp=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return $s={nanoid:(o=21)=>{let t="",i=o;for(;i--;)t+=e[Math.random()*64|0];return t},customAlphabet:(o,t=21)=>(i=t)=>{let s="",a=i;for(;a--;)s+=o[Math.random()*o.length|0];return s}},$s}var ks,Bp;function Zh(){if(Bp)return ks;Bp=1;let{SourceMapConsumer:e,SourceMapGenerator:r}=Fe,{existsSync:n,readFileSync:o}=Fe,{dirname:t,join:i}=Fe;function s(c){return Buffer?Buffer.from(c,"base64").toString():window.atob(c)}class a{constructor(u,l){if(l.map===!1)return;this.loadAnnotation(u),this.inline=this.startWith(this.annotation,"data:");let p=l.map?l.map.prev:void 0,f=this.loadMap(l.from,p);!this.mapFile&&l.from&&(this.mapFile=l.from),this.mapFile&&(this.root=t(this.mapFile)),f&&(this.text=f)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(u){let l=/^data:application\/json;charset=utf-?8;base64,/,p=/^data:application\/json;base64,/,f=/^data:application\/json;charset=utf-?8,/,d=/^data:application\/json,/;if(f.test(u)||d.test(u))return decodeURIComponent(u.substr(RegExp.lastMatch.length));if(l.test(u)||p.test(u))return s(u.substr(RegExp.lastMatch.length));let m=u.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(u){return u.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(u){return typeof u!="object"?!1:typeof u.mappings=="string"||typeof u._mappings=="string"||Array.isArray(u.sections)}loadAnnotation(u){let l=u.match(/\/\*\s*# sourceMappingURL=/gm);if(!l)return;let p=u.lastIndexOf(l.pop()),f=u.indexOf("*/",p);p>-1&&f>-1&&(this.annotation=this.getAnnotationURL(u.substring(p,f)))}loadFile(u){if(this.root=t(u),n(u))return this.mapFile=u,o(u,"utf-8").toString().trim()}loadMap(u,l){if(l===!1)return!1;if(l){if(typeof l=="string")return l;if(typeof l=="function"){let p=l(u);if(p){let f=this.loadFile(p);if(!f)throw new Error("Unable to load previous source map: "+p.toString());return f}}else{if(l instanceof e)return r.fromSourceMap(l).toString();if(l instanceof r)return l.toString();if(this.isMap(l))return JSON.stringify(l);throw new Error("Unsupported previous source map format: "+l.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let p=this.annotation;return u&&(p=i(t(u),p)),this.loadFile(p)}}}startWith(u,l){return u?u.substr(0,l.length)===l:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return ks=a,a.default=a,ks}var Is,Wp;function Gn(){if(Wp)return Is;Wp=1;let{SourceMapConsumer:e,SourceMapGenerator:r}=Fe,{fileURLToPath:n,pathToFileURL:o}=Fe,{isAbsolute:t,resolve:i}=Fe,{nanoid:s}=Ow(),a=Fe,c=ya(),u=Zh(),l=Symbol("fromOffsetCache"),p=!!(e&&r),f=!!(i&&t);class d{constructor(h,g={}){if(h===null||typeof h>"u"||typeof h=="object"&&!h.toString)throw new Error(`PostCSS received ${h} instead of CSS string`);if(this.css=h.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!f||/^\w+:\/\//.test(g.from)||t(g.from)?this.file=g.from:this.file=i(g.from)),f&&p){let x=new u(this.css,g);if(x.text){this.map=x;let b=x.consumer().file;!this.file&&b&&(this.file=this.mapResolve(b))}}this.file||(this.id="<input css "+s(6)+">"),this.map&&(this.map.file=this.from)}error(h,g,x,b={}){let y,_,v;if(g&&typeof g=="object"){let S=g,C=x;if(typeof S.offset=="number"){let P=this.fromOffset(S.offset);g=P.line,x=P.col}else g=S.line,x=S.column;if(typeof C.offset=="number"){let P=this.fromOffset(C.offset);_=P.line,v=P.col}else _=C.line,v=C.column}else if(!x){let S=this.fromOffset(g);g=S.line,x=S.col}let w=this.origin(g,x,_,v);return w?y=new c(h,w.endLine===void 0?w.line:{column:w.column,line:w.line},w.endLine===void 0?w.column:{column:w.endColumn,line:w.endLine},w.source,w.file,b.plugin):y=new c(h,_===void 0?g:{column:x,line:g},_===void 0?x:{column:v,line:_},this.css,this.file,b.plugin),y.input={column:x,endColumn:v,endLine:_,line:g,source:this.css},this.file&&(o&&(y.input.url=o(this.file).toString()),y.input.file=this.file),y}fromOffset(h){let g,x;if(this[l])x=this[l];else{let y=this.css.split(`
|
|
44
44
|
`);x=new Array(y.length);let _=0;for(let v=0,w=y.length;v<w;v++)x[v]=_,_+=y[v].length+1;this[l]=x}g=x[x.length-1];let b=0;if(h>=g)b=x.length-1;else{let y=x.length-2,_;for(;b<y;)if(_=b+(y-b>>1),h<x[_])y=_-1;else if(h>=x[_+1])b=_+1;else{b=_;break}}return{col:h-x[b]+1,line:b+1}}mapResolve(h){return/^\w+:\/\//.test(h)?h:i(this.map.consumer().sourceRoot||this.map.root||".",h)}origin(h,g,x,b){if(!this.map)return!1;let y=this.map.consumer(),_=y.originalPositionFor({column:g,line:h});if(!_.source)return!1;let v;typeof x=="number"&&(v=y.originalPositionFor({column:b,line:x}));let w;t(_.source)?w=o(_.source):w=new URL(_.source,this.map.consumer().sourceRoot||o(this.map.mapFile));let S={column:_.column,endColumn:v&&v.column,endLine:v&&v.line,line:_.line,url:w.toString()};if(w.protocol==="file:")if(n)S.file=n(w);else throw new Error("file: protocol is not available in this PostCSS build");let C=y.sourceContentFor(_.source);return C&&(S.source=C),S}toJSON(){let h={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(h[g]=this[g]);return this.map&&(h.map={...this.map},h.map.consumerCache&&(h.map.consumerCache=void 0)),h}get from(){return this.file||this.id}}return Is=d,d.default=d,a&&a.registerInput&&a.registerInput(d),Is}var Es,Vp;function Bh(){if(Vp)return Es;Vp=1;let{SourceMapConsumer:e,SourceMapGenerator:r}=Fe,{dirname:n,relative:o,resolve:t,sep:i}=Fe,{pathToFileURL:s}=Fe,a=Gn(),c=!!(e&&r),u=!!(n&&t&&o&&i);class l{constructor(f,d,m,h){this.stringify=f,this.mapOpts=m.map||{},this.root=d,this.opts=m,this.css=h,this.originalCSS=h,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let f;this.isInline()?f="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?f=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?f=this.mapOpts.annotation(this.opts.to,this.root):f=this.outputFile()+".map";let d=`
|
|
45
45
|
`;this.css.includes(`\r
|
|
46
46
|
`)&&(d=`\r
|
|
47
47
|
`),this.css+=d+"/*# sourceMappingURL="+f+" */"}applyPrevMaps(){for(let f of this.previous()){let d=this.toUrl(this.path(f.file)),m=f.root||n(f.file),h;this.mapOpts.sourcesContent===!1?(h=new e(f.text),h.sourcesContent&&(h.sourcesContent=null)):h=f.consumer(),this.map.applySourceMap(h,d,this.toUrl(this.path(m)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let f;for(let d=this.root.nodes.length-1;d>=0;d--)f=this.root.nodes[d],f.type==="comment"&&f.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(d)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),u&&c&&this.isMap())return this.generateMap();{let f="";return this.stringify(this.root,d=>{f+=d}),[f]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let f=this.previous()[0].consumer();f.file=this.outputFile(),this.map=r.fromSourceMap(f,{ignoreInvalidMapping:!0})}else this.map=new r({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new r({file:this.outputFile(),ignoreInvalidMapping:!0});let f=1,d=1,m="<no source>",h={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,x;this.stringify(this.root,(b,y,_)=>{if(this.css+=b,y&&_!=="end"&&(h.generated.line=f,h.generated.column=d-1,y.source&&y.source.start?(h.source=this.sourcePath(y),h.original.line=y.source.start.line,h.original.column=y.source.start.column-1,this.map.addMapping(h)):(h.source=m,h.original.line=1,h.original.column=0,this.map.addMapping(h))),g=b.match(/\n/g),g?(f+=g.length,x=b.lastIndexOf(`
|
|
48
|
-
`),d=b.length-x):d+=b.length,y&&_!=="start"){let v=y.parent||{raws:{}};(!(y.type==="decl"||y.type==="atrule"&&!y.nodes)||y!==v.last||v.raws.semicolon)&&(y.source&&y.source.end?(h.source=this.sourcePath(y),h.original.line=y.source.end.line,h.original.column=y.source.end.column-1,h.generated.line=f,h.generated.column=d-2,this.map.addMapping(h)):(h.source=m,h.original.line=1,h.original.column=0,h.generated.line=f,h.generated.column=d-1,this.map.addMapping(h)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(f=>f.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let f=this.mapOpts.annotation;return typeof f<"u"&&f!==!0?!1:this.previous().length?this.previous().some(d=>d.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(f=>f.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(f){if(this.mapOpts.absolute||f.charCodeAt(0)===60||/^\w+:\/\//.test(f))return f;let d=this.memoizedPaths.get(f);if(d)return d;let m=this.opts.to?n(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(m=n(t(m,this.mapOpts.annotation)));let h=o(m,f);return this.memoizedPaths.set(f,h),h}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(f=>{if(f.source&&f.source.input.map){let d=f.source.input.map;this.previousMaps.includes(d)||this.previousMaps.push(d)}});else{let f=new a(this.originalCSS,this.opts);f.map&&this.previousMaps.push(f.map)}return this.previousMaps}setSourcesContent(){let f={};if(this.root)this.root.walk(d=>{if(d.source){let m=d.source.input.from;if(m&&!f[m]){f[m]=!0;let h=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(h,d.source.input.css)}}});else if(this.css){let d=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(d,this.css)}}sourcePath(f){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(f.source.input.from):this.toUrl(this.path(f.source.input.from))}toBase64(f){return Buffer?Buffer.from(f).toString("base64"):window.btoa(unescape(encodeURIComponent(f)))}toFileUrl(f){let d=this.memoizedFileURLs.get(f);if(d)return d;if(s){let m=s(f).toString();return this.memoizedFileURLs.set(f,m),m}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(f){let d=this.memoizedURLs.get(f);if(d)return d;i==="\\"&&(f=f.replace(/\\/g,"/"));let m=encodeURI(f).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(f,m),m}}return Es=l,Es}var Cs,qp;function Jn(){if(qp)return Cs;qp=1;let e=Vn();class r extends e{constructor(o){super(o),this.type="comment"}}return Cs=r,r.default=r,Cs}var Os,Gp;function $t(){if(Gp)return Os;Gp=1;let{isClean:e,my:r}=ba(),n=qn(),o=Jn(),t=Vn(),i,s,a,c;function u(f){return f.map(d=>(d.nodes&&(d.nodes=u(d.nodes)),delete d.source,d))}function l(f){if(f[e]=!1,f.proxyOf.nodes)for(let d of f.proxyOf.nodes)l(d)}class p extends t{append(...d){for(let m of d){let h=this.normalize(m,this.last);for(let g of h)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(d){if(super.cleanRaws(d),this.nodes)for(let m of this.nodes)m.cleanRaws(d)}each(d){if(!this.proxyOf.nodes)return;let m=this.getIterator(),h,g;for(;this.indexes[m]<this.proxyOf.nodes.length&&(h=this.indexes[m],g=d(this.proxyOf.nodes[h],h),g!==!1);)this.indexes[m]+=1;return delete this.indexes[m],g}every(d){return this.nodes.every(d)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let d=this.lastEach;return this.indexes[d]=0,d}getProxyProcessor(){return{get(d,m){return m==="proxyOf"?d:d[m]?m==="each"||typeof m=="string"&&m.startsWith("walk")?(...h)=>d[m](...h.map(g=>typeof g=="function"?(x,b)=>g(x.toProxy(),b):g)):m==="every"||m==="some"?h=>d[m]((g,...x)=>h(g.toProxy(),...x)):m==="root"?()=>d.root().toProxy():m==="nodes"?d.nodes.map(h=>h.toProxy()):m==="first"||m==="last"?d[m].toProxy():d[m]:d[m]},set(d,m,h){return d[m]===h||(d[m]=h,(m==="name"||m==="params"||m==="selector")&&d.markDirty()),!0}}}index(d){return typeof d=="number"?d:(d.proxyOf&&(d=d.proxyOf),this.proxyOf.nodes.indexOf(d))}insertAfter(d,m){let h=this.index(d),g=this.normalize(m,this.proxyOf.nodes[h]).reverse();h=this.index(d);for(let b of g)this.proxyOf.nodes.splice(h+1,0,b);let x;for(let b in this.indexes)x=this.indexes[b],h<x&&(this.indexes[b]=x+g.length);return this.markDirty(),this}insertBefore(d,m){let h=this.index(d),g=h===0?"prepend":!1,x=this.normalize(m,this.proxyOf.nodes[h],g).reverse();h=this.index(d);for(let y of x)this.proxyOf.nodes.splice(h,0,y);let b;for(let y in this.indexes)b=this.indexes[y],h<=b&&(this.indexes[y]=b+x.length);return this.markDirty(),this}normalize(d,m){if(typeof d=="string")d=u(i(d).nodes);else if(typeof d>"u")d=[];else if(Array.isArray(d)){d=d.slice(0);for(let g of d)g.parent&&g.parent.removeChild(g,"ignore")}else if(d.type==="root"&&this.type!=="document"){d=d.nodes.slice(0);for(let g of d)g.parent&&g.parent.removeChild(g,"ignore")}else if(d.type)d=[d];else if(d.prop){if(typeof d.value>"u")throw new Error("Value field is missed in node creation");typeof d.value!="string"&&(d.value=String(d.value)),d=[new n(d)]}else if(d.selector)d=[new s(d)];else if(d.name)d=[new a(d)];else if(d.text)d=[new o(d)];else throw new Error("Unknown node type in node creation");return d.map(g=>(g[r]||p.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&l(g),typeof g.raws.before>"u"&&m&&typeof m.raws.before<"u"&&(g.raws.before=m.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...d){d=d.reverse();for(let m of d){let h=this.normalize(m,this.first,"prepend").reverse();for(let g of h)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+h.length}return this.markDirty(),this}push(d){return d.parent=this,this.proxyOf.nodes.push(d),this}removeAll(){for(let d of this.proxyOf.nodes)d.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(d){d=this.index(d),this.proxyOf.nodes[d].parent=void 0,this.proxyOf.nodes.splice(d,1);let m;for(let h in this.indexes)m=this.indexes[h],m>=d&&(this.indexes[h]=m-1);return this.markDirty(),this}replaceValues(d,m,h){return h||(h=m,m={}),this.walkDecls(g=>{m.props&&!m.props.includes(g.prop)||m.fast&&!g.value.includes(m.fast)||(g.value=g.value.replace(d,h))}),this.markDirty(),this}some(d){return this.nodes.some(d)}walk(d){return this.each((m,h)=>{let g;try{g=d(m,h)}catch(x){throw m.addToError(x)}return g!==!1&&m.walk&&(g=m.walk(d)),g})}walkAtRules(d,m){return m?d instanceof RegExp?this.walk((h,g)=>{if(h.type==="atrule"&&d.test(h.name))return m(h,g)}):this.walk((h,g)=>{if(h.type==="atrule"&&h.name===d)return m(h,g)}):(m=d,this.walk((h,g)=>{if(h.type==="atrule")return m(h,g)}))}walkComments(d){return this.walk((m,h)=>{if(m.type==="comment")return d(m,h)})}walkDecls(d,m){return m?d instanceof RegExp?this.walk((h,g)=>{if(h.type==="decl"&&d.test(h.prop))return m(h,g)}):this.walk((h,g)=>{if(h.type==="decl"&&h.prop===d)return m(h,g)}):(m=d,this.walk((h,g)=>{if(h.type==="decl")return m(h,g)}))}walkRules(d,m){return m?d instanceof RegExp?this.walk((h,g)=>{if(h.type==="rule"&&d.test(h.selector))return m(h,g)}):this.walk((h,g)=>{if(h.type==="rule"&&h.selector===d)return m(h,g)}):(m=d,this.walk((h,g)=>{if(h.type==="rule")return m(h,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return p.registerParse=f=>{i=f},p.registerRule=f=>{s=f},p.registerAtRule=f=>{a=f},p.registerRoot=f=>{c=f},Os=p,p.default=p,p.rebuild=f=>{f.type==="atrule"?Object.setPrototypeOf(f,a.prototype):f.type==="rule"?Object.setPrototypeOf(f,s.prototype):f.type==="decl"?Object.setPrototypeOf(f,n.prototype):f.type==="comment"?Object.setPrototypeOf(f,o.prototype):f.type==="root"&&Object.setPrototypeOf(f,c.prototype),f[r]=!0,f.nodes&&f.nodes.forEach(d=>{p.rebuild(d)})},Os}var Ns,Jp;function wa(){if(Jp)return Ns;Jp=1;let e=$t(),r,n;class o extends e{constructor(i){super({type:"document",...i}),this.nodes||(this.nodes=[])}toResult(i={}){return new r(new n,this,i).stringify()}}return o.registerLazyResult=t=>{r=t},o.registerProcessor=t=>{n=t},Ns=o,o.default=o,Ns}var zs,Hp;function Wh(){if(Hp)return zs;Hp=1;let e={};return zs=function(n){e[n]||(e[n]=!0,typeof console<"u"&&console.warn&&console.warn(n))},zs}var Ds,Xp;function Vh(){if(Xp)return Ds;Xp=1;class e{constructor(n,o={}){if(this.type="warning",this.text=n,o.node&&o.node.source){let t=o.node.rangeBy(o);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(let t in o)this[t]=o[t]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Ds=e,e.default=e,Ds}var Ts,Kp;function xa(){if(Kp)return Ts;Kp=1;let e=Vh();class r{constructor(o,t,i){this.processor=o,this.messages=[],this.root=t,this.opts=i,this.css=void 0,this.map=void 0}toString(){return this.css}warn(o,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let i=new e(o,t);return this.messages.push(i),i}warnings(){return this.messages.filter(o=>o.type==="warning")}get content(){return this.css}}return Ts=r,r.default=r,Ts}var Ps,Yp;function Nw(){if(Yp)return Ps;Yp=1;let e=39,r=34,n=92,o=47,t=10,i=32,s=12,a=9,c=13,u=91,l=93,p=40,f=41,d=123,m=125,h=59,g=42,x=58,b=64,y=/[\t\n\f\r "#'()/;[\\\]{}]/g,_=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,v=/.[\r\n"'(/\\]/,w=/[\da-f]/i;return Ps=function(C,R={}){let O=C.css.valueOf(),B=R.ignoreErrors,j,E,Me,Ne,K,H,ue,ge,de,Y,st=O.length,T=0,We=[],Pe=[];function _r(){return T}function be(F){throw C.error("Unclosed "+F,T)}function Ue(){return Pe.length===0&&T>=st}function wt(F){if(Pe.length)return Pe.pop();if(T>=st)return;let fe=F?F.ignoreUnclosed:!1;switch(j=O.charCodeAt(T),j){case t:case i:case a:case c:case s:{E=T;do E+=1,j=O.charCodeAt(E);while(j===i||j===t||j===a||j===c||j===s);Y=["space",O.slice(T,E)],T=E-1;break}case u:case l:case d:case m:case x:case h:case f:{let Q=String.fromCharCode(j);Y=[Q,Q,T];break}case p:{if(ge=We.length?We.pop()[1]:"",de=O.charCodeAt(T+1),ge==="url"&&de!==e&&de!==r&&de!==i&&de!==t&&de!==a&&de!==s&&de!==c){E=T;do{if(H=!1,E=O.indexOf(")",E+1),E===-1)if(B||fe){E=T;break}else be("bracket");for(ue=E;O.charCodeAt(ue-1)===n;)ue-=1,H=!H}while(H);Y=["brackets",O.slice(T,E+1),T,E],T=E}else E=O.indexOf(")",T+1),Ne=O.slice(T,E+1),E===-1||v.test(Ne)?Y=["(","(",T]:(Y=["brackets",Ne,T,E],T=E);break}case e:case r:{Me=j===e?"'":'"',E=T;do{if(H=!1,E=O.indexOf(Me,E+1),E===-1)if(B||fe){E=T+1;break}else be("string");for(ue=E;O.charCodeAt(ue-1)===n;)ue-=1,H=!H}while(H);Y=["string",O.slice(T,E+1),T,E],T=E;break}case b:{y.lastIndex=T+1,y.test(O),y.lastIndex===0?E=O.length-1:E=y.lastIndex-2,Y=["at-word",O.slice(T,E+1),T,E],T=E;break}case n:{for(E=T,K=!0;O.charCodeAt(E+1)===n;)E+=1,K=!K;if(j=O.charCodeAt(E+1),K&&j!==o&&j!==i&&j!==t&&j!==a&&j!==c&&j!==s&&(E+=1,w.test(O.charAt(E)))){for(;w.test(O.charAt(E+1));)E+=1;O.charCodeAt(E+1)===i&&(E+=1)}Y=["word",O.slice(T,E+1),T,E],T=E;break}default:{j===o&&O.charCodeAt(T+1)===g?(E=O.indexOf("*/",T+2)+1,E===0&&(B||fe?E=O.length:be("comment")),Y=["comment",O.slice(T,E+1),T,E],T=E):(_.lastIndex=T+1,_.test(O),_.lastIndex===0?E=O.length-1:E=_.lastIndex-2,Y=["word",O.slice(T,E+1),T,E],We.push(Y),T=E);break}}return T++,Y}function at(F){Pe.push(F)}return{back:at,endOfFile:Ue,nextToken:wt,position:_r}},Ps}var Rs,Qp;function _a(){if(Qp)return Rs;Qp=1;let e=$t();class r extends e{constructor(o){super(o),this.type="atrule"}append(...o){return this.proxyOf.nodes||(this.nodes=[]),super.append(...o)}prepend(...o){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...o)}}return Rs=r,r.default=r,e.registerAtRule(r),Rs}var As,eh;function zr(){if(eh)return As;eh=1;let e=$t(),r,n;class o extends e{constructor(i){super(i),this.type="root",this.nodes||(this.nodes=[])}normalize(i,s,a){let c=super.normalize(i);if(s){if(a==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(let u of c)u.raws.before=s.raws.before}return c}removeChild(i,s){let a=this.index(i);return!s&&a===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[a].raws.before),super.removeChild(i)}toResult(i={}){return new r(new n,this,i).stringify()}}return o.registerLazyResult=t=>{r=t},o.registerProcessor=t=>{n=t},As=o,o.default=o,e.registerRoot(o),As}var Ms,th;function qh(){if(th)return Ms;th=1;let e={comma(r){return e.split(r,[","],!0)},space(r){let n=[" ",`
|
|
49
|
-
`," "];return e.split(r,n)},split(r,n,o){let t=[],i="",s=!1,a=0,c=!1,u="",l=!1;for(let p of r)l?l=!1:p==="\\"?l=!0:c?p===u&&(c=!1):p==='"'||p==="'"?(c=!0,u=p):p==="("?a+=1:p===")"?a>0&&(a-=1):a===0&&n.includes(p)&&(s=!0),s?(i!==""&&t.push(i.trim()),i="",s=!1):i+=p;return(o||i!=="")&&t.push(i.trim()),t}};return Ms=e,e.default=e,Ms}var Us,rh;function Sa(){if(rh)return Us;rh=1;let e=$t(),r=qh();class n extends e{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return r.comma(this.selector)}set selectors(t){let i=this.selector?this.selector.match(/,\s*/):null,s=i?i[0]:","+this.raw("between","beforeOpen");this.selector=t.join(s)}}return Us=n,n.default=n,e.registerRule(n),Us}var js,nh;function zw(){if(nh)return js;nh=1;let e=qn(),r=Nw(),n=Jn(),o=_a(),t=zr(),i=Sa(),s={empty:!0,space:!0};function a(u){for(let l=u.length-1;l>=0;l--){let p=u[l],f=p[3]||p[2];if(f)return f}}class c{constructor(l){this.input=l,this.root=new t,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:l,start:{column:1,line:1,offset:0}}}atrule(l){let p=new o;p.name=l[1].slice(1),p.name===""&&this.unnamedAtrule(p,l),this.init(p,l[2]);let f,d,m,h=!1,g=!1,x=[],b=[];for(;!this.tokenizer.endOfFile();){if(l=this.tokenizer.nextToken(),f=l[0],f==="("||f==="["?b.push(f==="("?")":"]"):f==="{"&&b.length>0?b.push("}"):f===b[b.length-1]&&b.pop(),b.length===0)if(f===";"){p.source.end=this.getPosition(l[2]),p.source.end.offset++,this.semicolon=!0;break}else if(f==="{"){g=!0;break}else if(f==="}"){if(x.length>0){for(m=x.length-1,d=x[m];d&&d[0]==="space";)d=x[--m];d&&(p.source.end=this.getPosition(d[3]||d[2]),p.source.end.offset++)}this.end(l);break}else x.push(l);else x.push(l);if(this.tokenizer.endOfFile()){h=!0;break}}p.raws.between=this.spacesAndCommentsFromEnd(x),x.length?(p.raws.afterName=this.spacesAndCommentsFromStart(x),this.raw(p,"params",x),h&&(l=x[x.length-1],p.source.end=this.getPosition(l[3]||l[2]),p.source.end.offset++,this.spaces=p.raws.between,p.raws.between="")):(p.raws.afterName="",p.params=""),g&&(p.nodes=[],this.current=p)}checkMissedSemicolon(l){let p=this.colon(l);if(p===!1)return;let f=0,d;for(let m=p-1;m>=0&&(d=l[m],!(d[0]!=="space"&&(f+=1,f===2)));m--);throw this.input.error("Missed semicolon",d[0]==="word"?d[3]+1:d[2])}colon(l){let p=0,f,d,m;for(let[h,g]of l.entries()){if(f=g,d=f[0],d==="("&&(p+=1),d===")"&&(p-=1),p===0&&d===":")if(!m)this.doubleColon(f);else{if(m[0]==="word"&&m[1]==="progid")continue;return h}m=f}return!1}comment(l){let p=new n;this.init(p,l[2]),p.source.end=this.getPosition(l[3]||l[2]),p.source.end.offset++;let f=l[1].slice(2,-2);if(/^\s*$/.test(f))p.text="",p.raws.left=f,p.raws.right="";else{let d=f.match(/^(\s*)([^]*\S)(\s*)$/);p.text=d[2],p.raws.left=d[1],p.raws.right=d[3]}}createTokenizer(){this.tokenizer=r(this.input)}decl(l,p){let f=new e;this.init(f,l[0][2]);let d=l[l.length-1];for(d[0]===";"&&(this.semicolon=!0,l.pop()),f.source.end=this.getPosition(d[3]||d[2]||a(l)),f.source.end.offset++;l[0][0]!=="word";)l.length===1&&this.unknownWord(l),f.raws.before+=l.shift()[1];for(f.source.start=this.getPosition(l[0][2]),f.prop="";l.length;){let b=l[0][0];if(b===":"||b==="space"||b==="comment")break;f.prop+=l.shift()[1]}f.raws.between="";let m;for(;l.length;)if(m=l.shift(),m[0]===":"){f.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),f.raws.between+=m[1];(f.prop[0]==="_"||f.prop[0]==="*")&&(f.raws.before+=f.prop[0],f.prop=f.prop.slice(1));let h=[],g;for(;l.length&&(g=l[0][0],!(g!=="space"&&g!=="comment"));)h.push(l.shift());this.precheckMissedSemicolon(l);for(let b=l.length-1;b>=0;b--){if(m=l[b],m[1].toLowerCase()==="!important"){f.important=!0;let y=this.stringFrom(l,b);y=this.spacesFromEnd(l)+y,y!==" !important"&&(f.raws.important=y);break}else if(m[1].toLowerCase()==="important"){let y=l.slice(0),_="";for(let v=b;v>0;v--){let w=y[v][0];if(_.trim().indexOf("!")===0&&w!=="space")break;_=y.pop()[1]+_}_.trim().indexOf("!")===0&&(f.important=!0,f.raws.important=_,l=y)}if(m[0]!=="space"&&m[0]!=="comment")break}l.some(b=>b[0]!=="space"&&b[0]!=="comment")&&(f.raws.between+=h.map(b=>b[1]).join(""),h=[]),this.raw(f,"value",h.concat(l),p),f.value.includes(":")&&!p&&this.checkMissedSemicolon(l)}doubleColon(l){throw this.input.error("Double colon",{offset:l[2]},{offset:l[2]+l[1].length})}emptyRule(l){let p=new i;this.init(p,l[2]),p.selector="",p.raws.between="",this.current=p}end(l){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(l[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(l)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(l){if(this.spaces+=l[1],this.current.nodes){let p=this.current.nodes[this.current.nodes.length-1];p&&p.type==="rule"&&!p.raws.ownSemicolon&&(p.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(l){let p=this.input.fromOffset(l);return{column:p.col,line:p.line,offset:l}}init(l,p){this.current.push(l),l.source={input:this.input,start:this.getPosition(p)},l.raws.before=this.spaces,this.spaces="",l.type!=="comment"&&(this.semicolon=!1)}other(l){let p=!1,f=null,d=!1,m=null,h=[],g=l[1].startsWith("--"),x=[],b=l;for(;b;){if(f=b[0],x.push(b),f==="("||f==="[")m||(m=b),h.push(f==="("?")":"]");else if(g&&d&&f==="{")m||(m=b),h.push("}");else if(h.length===0)if(f===";")if(d){this.decl(x,g);return}else break;else if(f==="{"){this.rule(x);return}else if(f==="}"){this.tokenizer.back(x.pop()),p=!0;break}else f===":"&&(d=!0);else f===h[h.length-1]&&(h.pop(),h.length===0&&(m=null));b=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(p=!0),h.length>0&&this.unclosedBracket(m),p&&d){if(!g)for(;x.length&&(b=x[x.length-1][0],!(b!=="space"&&b!=="comment"));)this.tokenizer.back(x.pop());this.decl(x,g)}else this.unknownWord(x)}parse(){let l;for(;!this.tokenizer.endOfFile();)switch(l=this.tokenizer.nextToken(),l[0]){case"space":this.spaces+=l[1];break;case";":this.freeSemicolon(l);break;case"}":this.end(l);break;case"comment":this.comment(l);break;case"at-word":this.atrule(l);break;case"{":this.emptyRule(l);break;default:this.other(l);break}this.endFile()}precheckMissedSemicolon(){}raw(l,p,f,d){let m,h,g=f.length,x="",b=!0,y,_;for(let v=0;v<g;v+=1)m=f[v],h=m[0],h==="space"&&v===g-1&&!d?b=!1:h==="comment"?(_=f[v-1]?f[v-1][0]:"empty",y=f[v+1]?f[v+1][0]:"empty",!s[_]&&!s[y]?x.slice(-1)===","?b=!1:x+=m[1]:b=!1):x+=m[1];if(!b){let v=f.reduce((w,S)=>w+S[1],"");l.raws[p]={raw:v,value:x}}l[p]=x}rule(l){l.pop();let p=new i;this.init(p,l[0][2]),p.raws.between=this.spacesAndCommentsFromEnd(l),this.raw(p,"selector",l),this.current=p}spacesAndCommentsFromEnd(l){let p,f="";for(;l.length&&(p=l[l.length-1][0],!(p!=="space"&&p!=="comment"));)f=l.pop()[1]+f;return f}spacesAndCommentsFromStart(l){let p,f="";for(;l.length&&(p=l[0][0],!(p!=="space"&&p!=="comment"));)f+=l.shift()[1];return f}spacesFromEnd(l){let p,f="";for(;l.length&&(p=l[l.length-1][0],p==="space");)f=l.pop()[1]+f;return f}stringFrom(l,p){let f="";for(let d=p;d<l.length;d++)f+=l[d][1];return l.splice(p,l.length-p),f}unclosedBlock(){let l=this.current.source.start;throw this.input.error("Unclosed block",l.line,l.column)}unclosedBracket(l){throw this.input.error("Unclosed bracket",{offset:l[2]},{offset:l[2]+1})}unexpectedClose(l){throw this.input.error("Unexpected }",{offset:l[2]},{offset:l[2]+1})}unknownWord(l){throw this.input.error("Unknown word",{offset:l[0][2]},{offset:l[0][2]+l[0][1].length})}unnamedAtrule(l,p){throw this.input.error("At-rule without name",{offset:p[2]},{offset:p[2]+p[1].length})}}return js=c,js}var Ls,ih;function $a(){if(ih)return Ls;ih=1;let e=$t(),r=zw(),n=Gn();function o(t,i){let s=new n(t,i),a=new r(s);try{a.parse()}catch(c){throw c}return a.root}return Ls=o,o.default=o,e.registerParse(o),Ls}var Fs,oh;function Gh(){if(oh)return Fs;oh=1;let{isClean:e,my:r}=ba(),n=Bh(),o=Wn(),t=$t(),i=wa(),s=Wh(),a=xa(),c=$a(),u=zr(),l={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},p={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},f={Once:!0,postcssPlugin:!0,prepare:!0},d=0;function m(_){return typeof _=="object"&&typeof _.then=="function"}function h(_){let v=!1,w=l[_.type];return _.type==="decl"?v=_.prop.toLowerCase():_.type==="atrule"&&(v=_.name.toLowerCase()),v&&_.append?[w,w+"-"+v,d,w+"Exit",w+"Exit-"+v]:v?[w,w+"-"+v,w+"Exit",w+"Exit-"+v]:_.append?[w,d,w+"Exit"]:[w,w+"Exit"]}function g(_){let v;return _.type==="document"?v=["Document",d,"DocumentExit"]:_.type==="root"?v=["Root",d,"RootExit"]:v=h(_),{eventIndex:0,events:v,iterator:0,node:_,visitorIndex:0,visitors:[]}}function x(_){return _[e]=!1,_.nodes&&_.nodes.forEach(v=>x(v)),_}let b={};class y{constructor(v,w,S){this.stringified=!1,this.processed=!1;let C;if(typeof w=="object"&&w!==null&&(w.type==="root"||w.type==="document"))C=x(w);else if(w instanceof y||w instanceof a)C=x(w.root),w.map&&(typeof S.map>"u"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=w.map);else{let R=c;S.syntax&&(R=S.syntax.parse),S.parser&&(R=S.parser),R.parse&&(R=R.parse);try{C=R(w,S)}catch(O){this.processed=!0,this.error=O}C&&!C[r]&&t.rebuild(C)}this.result=new a(v,C,S),this.helpers={...b,postcss:b,result:this.result},this.plugins=this.processor.plugins.map(R=>typeof R=="object"&&R.prepare?{...R,...R.prepare(this.result)}:R)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(v){return this.async().catch(v)}finally(v){return this.async().then(v,v)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(v,w){let S=this.result.lastPlugin;try{w&&w.addToError(v),this.error=v,v.name==="CssSyntaxError"&&!v.plugin?(v.plugin=S.postcssPlugin,v.setMessage()):S.postcssVersion}catch(C){console&&console.error&&console.error(C)}return v}prepareVisitors(){this.listeners={};let v=(w,S,C)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([w,C])};for(let w of this.plugins)if(typeof w=="object")for(let S in w){if(!p[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${w.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[S])if(typeof w[S]=="object")for(let C in w[S])C==="*"?v(w,S,w[S][C]):v(w,S+"-"+C.toLowerCase(),w[S][C]);else typeof w[S]=="function"&&v(w,S,w[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let v=0;v<this.plugins.length;v++){let w=this.plugins[v],S=this.runOnRoot(w);if(m(S))try{await S}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[e];){v[e]=!0;let w=[g(v)];for(;w.length>0;){let S=this.visitTick(w);if(m(S))try{await S}catch(C){let R=w[w.length-1].node;throw this.handleError(C,R)}}}if(this.listeners.OnceExit)for(let[w,S]of this.listeners.OnceExit){this.result.lastPlugin=w;try{if(v.type==="document"){let C=v.nodes.map(R=>S(R,this.helpers));await Promise.all(C)}else await S(v,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(v){this.result.lastPlugin=v;try{if(typeof v=="object"&&v.Once){if(this.result.root.type==="document"){let w=this.result.root.nodes.map(S=>v.Once(S,this.helpers));return m(w[0])?Promise.all(w):w}return v.Once(this.result.root,this.helpers)}else if(typeof v=="function")return v(this.result.root,this.result)}catch(w){throw this.handleError(w)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let v=this.result.opts,w=o;v.syntax&&(w=v.syntax.stringify),v.stringifier&&(w=v.stringifier),w.stringify&&(w=w.stringify);let C=new n(w,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let v of this.plugins){let w=this.runOnRoot(v);if(m(w))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[e];)v[e]=!0,this.walkSync(v);if(this.listeners.OnceExit)if(v.type==="document")for(let w of v.nodes)this.visitSync(this.listeners.OnceExit,w);else this.visitSync(this.listeners.OnceExit,v)}return this.result}then(v,w){return this.async().then(v,w)}toString(){return this.css}visitSync(v,w){for(let[S,C]of v){this.result.lastPlugin=S;let R;try{R=C(w,this.helpers)}catch(O){throw this.handleError(O,w.proxyOf)}if(w.type!=="root"&&w.type!=="document"&&!w.parent)return!0;if(m(R))throw this.getAsyncError()}}visitTick(v){let w=v[v.length-1],{node:S,visitors:C}=w;if(S.type!=="root"&&S.type!=="document"&&!S.parent){v.pop();return}if(C.length>0&&w.visitorIndex<C.length){let[O,B]=C[w.visitorIndex];w.visitorIndex+=1,w.visitorIndex===C.length&&(w.visitors=[],w.visitorIndex=0),this.result.lastPlugin=O;try{return B(S.toProxy(),this.helpers)}catch(j){throw this.handleError(j,S)}}if(w.iterator!==0){let O=w.iterator,B;for(;B=S.nodes[S.indexes[O]];)if(S.indexes[O]+=1,!B[e]){B[e]=!0,v.push(g(B));return}w.iterator=0,delete S.indexes[O]}let R=w.events;for(;w.eventIndex<R.length;){let O=R[w.eventIndex];if(w.eventIndex+=1,O===d){S.nodes&&S.nodes.length&&(S[e]=!0,w.iterator=S.getIterator());return}else if(this.listeners[O]){w.visitors=this.listeners[O];return}}v.pop()}walkSync(v){v[e]=!0;let w=h(v);for(let S of w)if(S===d)v.nodes&&v.each(C=>{C[e]||this.walkSync(C)});else{let C=this.listeners[S];if(C&&this.visitSync(C,v.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return y.registerPostcss=_=>{b=_},Fs=y,y.default=y,u.registerLazyResult(y),i.registerLazyResult(y),Fs}var Zs,sh;function Dw(){if(sh)return Zs;sh=1;let e=Bh(),r=Wn(),n=Wh(),o=$a(),t=xa();class i{constructor(a,c,u){c=c.toString(),this.stringified=!1,this._processor=a,this._css=c,this._opts=u,this._map=void 0;let l,p=r;this.result=new t(this._processor,l,this._opts),this.result.css=c;let f=this;Object.defineProperty(this.result,"root",{get(){return f.root}});let d=new e(p,l,this._opts,c);if(d.isMap()){let[m,h]=d.generate();m&&(this.result.css=m),h&&(this.result.map=h)}else d.clearAnnotation(),this.result.css=d.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(a){return this.async().catch(a)}finally(a){return this.async().then(a,a)}sync(){if(this.error)throw this.error;return this.result}then(a,c){return this.async().then(a,c)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let a,c=o;try{a=c(this._css,this._opts)}catch(u){this.error=u}if(this.error)throw this.error;return this._root=a,a}get[Symbol.toStringTag](){return"NoWorkResult"}}return Zs=i,i.default=i,Zs}var Bs,ah;function Tw(){if(ah)return Bs;ah=1;let e=Dw(),r=Gh(),n=wa(),o=zr();class t{constructor(s=[]){this.version="8.4.38",this.plugins=this.normalize(s)}normalize(s){let a=[];for(let c of s)if(c.postcss===!0?c=c():c.postcss&&(c=c.postcss),typeof c=="object"&&Array.isArray(c.plugins))a=a.concat(c.plugins);else if(typeof c=="object"&&c.postcssPlugin)a.push(c);else if(typeof c=="function")a.push(c);else if(!(typeof c=="object"&&(c.parse||c.stringify)))throw new Error(c+" is not a PostCSS plugin");return a}process(s,a={}){return!this.plugins.length&&!a.parser&&!a.stringifier&&!a.syntax?new e(this,s,a):new r(this,s,a)}use(s){return this.plugins=this.plugins.concat(this.normalize([s])),this}}return Bs=t,t.default=t,o.registerProcessor(t),n.registerProcessor(t),Bs}var Ws,lh;function Pw(){if(lh)return Ws;lh=1;let e=qn(),r=Zh(),n=Jn(),o=_a(),t=Gn(),i=zr(),s=Sa();function a(c,u){if(Array.isArray(c))return c.map(f=>a(f));let{inputs:l,...p}=c;if(l){u=[];for(let f of l){let d={...f,__proto__:t.prototype};d.map&&(d.map={...d.map,__proto__:r.prototype}),u.push(d)}}if(p.nodes&&(p.nodes=c.nodes.map(f=>a(f,u))),p.source){let{inputId:f,...d}=p.source;p.source=d,f!=null&&(p.source.input=u[f])}if(p.type==="root")return new i(p);if(p.type==="decl")return new e(p);if(p.type==="rule")return new s(p);if(p.type==="comment")return new n(p);if(p.type==="atrule")return new o(p);throw new Error("Unknown node type: "+c.type)}return Ws=a,a.default=a,Ws}var Vs,ch;function Rw(){if(ch)return Vs;ch=1;let e=ya(),r=qn(),n=Gh(),o=$t(),t=Tw(),i=Wn(),s=Pw(),a=wa(),c=Vh(),u=Jn(),l=_a(),p=xa(),f=Gn(),d=$a(),m=qh(),h=Sa(),g=zr(),x=Vn();function b(...y){return y.length===1&&Array.isArray(y[0])&&(y=y[0]),new t(y)}return b.plugin=function(_,v){let w=!1;function S(...R){console&&console.warn&&!w&&(w=!0,console.warn(_+`: postcss.plugin was deprecated. Migration guide:
|
|
48
|
+
`),d=b.length-x):d+=b.length,y&&_!=="start"){let v=y.parent||{raws:{}};(!(y.type==="decl"||y.type==="atrule"&&!y.nodes)||y!==v.last||v.raws.semicolon)&&(y.source&&y.source.end?(h.source=this.sourcePath(y),h.original.line=y.source.end.line,h.original.column=y.source.end.column-1,h.generated.line=f,h.generated.column=d-2,this.map.addMapping(h)):(h.source=m,h.original.line=1,h.original.column=0,h.generated.line=f,h.generated.column=d-1,this.map.addMapping(h)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(f=>f.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let f=this.mapOpts.annotation;return typeof f<"u"&&f!==!0?!1:this.previous().length?this.previous().some(d=>d.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(f=>f.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(f){if(this.mapOpts.absolute||f.charCodeAt(0)===60||/^\w+:\/\//.test(f))return f;let d=this.memoizedPaths.get(f);if(d)return d;let m=this.opts.to?n(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(m=n(t(m,this.mapOpts.annotation)));let h=o(m,f);return this.memoizedPaths.set(f,h),h}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(f=>{if(f.source&&f.source.input.map){let d=f.source.input.map;this.previousMaps.includes(d)||this.previousMaps.push(d)}});else{let f=new a(this.originalCSS,this.opts);f.map&&this.previousMaps.push(f.map)}return this.previousMaps}setSourcesContent(){let f={};if(this.root)this.root.walk(d=>{if(d.source){let m=d.source.input.from;if(m&&!f[m]){f[m]=!0;let h=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(h,d.source.input.css)}}});else if(this.css){let d=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(d,this.css)}}sourcePath(f){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(f.source.input.from):this.toUrl(this.path(f.source.input.from))}toBase64(f){return Buffer?Buffer.from(f).toString("base64"):window.btoa(unescape(encodeURIComponent(f)))}toFileUrl(f){let d=this.memoizedFileURLs.get(f);if(d)return d;if(s){let m=s(f).toString();return this.memoizedFileURLs.set(f,m),m}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(f){let d=this.memoizedURLs.get(f);if(d)return d;i==="\\"&&(f=f.replace(/\\/g,"/"));let m=encodeURI(f).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(f,m),m}}return Es=l,Es}var Cs,qp;function Jn(){if(qp)return Cs;qp=1;let e=Vn();class r extends e{constructor(o){super(o),this.type="comment"}}return Cs=r,r.default=r,Cs}var Os,Gp;function $t(){if(Gp)return Os;Gp=1;let{isClean:e,my:r}=ba(),n=qn(),o=Jn(),t=Vn(),i,s,a,c;function u(f){return f.map(d=>(d.nodes&&(d.nodes=u(d.nodes)),delete d.source,d))}function l(f){if(f[e]=!1,f.proxyOf.nodes)for(let d of f.proxyOf.nodes)l(d)}class p extends t{append(...d){for(let m of d){let h=this.normalize(m,this.last);for(let g of h)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(d){if(super.cleanRaws(d),this.nodes)for(let m of this.nodes)m.cleanRaws(d)}each(d){if(!this.proxyOf.nodes)return;let m=this.getIterator(),h,g;for(;this.indexes[m]<this.proxyOf.nodes.length&&(h=this.indexes[m],g=d(this.proxyOf.nodes[h],h),g!==!1);)this.indexes[m]+=1;return delete this.indexes[m],g}every(d){return this.nodes.every(d)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let d=this.lastEach;return this.indexes[d]=0,d}getProxyProcessor(){return{get(d,m){return m==="proxyOf"?d:d[m]?m==="each"||typeof m=="string"&&m.startsWith("walk")?(...h)=>d[m](...h.map(g=>typeof g=="function"?(x,b)=>g(x.toProxy(),b):g)):m==="every"||m==="some"?h=>d[m]((g,...x)=>h(g.toProxy(),...x)):m==="root"?()=>d.root().toProxy():m==="nodes"?d.nodes.map(h=>h.toProxy()):m==="first"||m==="last"?d[m].toProxy():d[m]:d[m]},set(d,m,h){return d[m]===h||(d[m]=h,(m==="name"||m==="params"||m==="selector")&&d.markDirty()),!0}}}index(d){return typeof d=="number"?d:(d.proxyOf&&(d=d.proxyOf),this.proxyOf.nodes.indexOf(d))}insertAfter(d,m){let h=this.index(d),g=this.normalize(m,this.proxyOf.nodes[h]).reverse();h=this.index(d);for(let b of g)this.proxyOf.nodes.splice(h+1,0,b);let x;for(let b in this.indexes)x=this.indexes[b],h<x&&(this.indexes[b]=x+g.length);return this.markDirty(),this}insertBefore(d,m){let h=this.index(d),g=h===0?"prepend":!1,x=this.normalize(m,this.proxyOf.nodes[h],g).reverse();h=this.index(d);for(let y of x)this.proxyOf.nodes.splice(h,0,y);let b;for(let y in this.indexes)b=this.indexes[y],h<=b&&(this.indexes[y]=b+x.length);return this.markDirty(),this}normalize(d,m){if(typeof d=="string")d=u(i(d).nodes);else if(typeof d>"u")d=[];else if(Array.isArray(d)){d=d.slice(0);for(let g of d)g.parent&&g.parent.removeChild(g,"ignore")}else if(d.type==="root"&&this.type!=="document"){d=d.nodes.slice(0);for(let g of d)g.parent&&g.parent.removeChild(g,"ignore")}else if(d.type)d=[d];else if(d.prop){if(typeof d.value>"u")throw new Error("Value field is missed in node creation");typeof d.value!="string"&&(d.value=String(d.value)),d=[new n(d)]}else if(d.selector)d=[new s(d)];else if(d.name)d=[new a(d)];else if(d.text)d=[new o(d)];else throw new Error("Unknown node type in node creation");return d.map(g=>(g[r]||p.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&l(g),typeof g.raws.before>"u"&&m&&typeof m.raws.before<"u"&&(g.raws.before=m.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...d){d=d.reverse();for(let m of d){let h=this.normalize(m,this.first,"prepend").reverse();for(let g of h)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+h.length}return this.markDirty(),this}push(d){return d.parent=this,this.proxyOf.nodes.push(d),this}removeAll(){for(let d of this.proxyOf.nodes)d.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(d){d=this.index(d),this.proxyOf.nodes[d].parent=void 0,this.proxyOf.nodes.splice(d,1);let m;for(let h in this.indexes)m=this.indexes[h],m>=d&&(this.indexes[h]=m-1);return this.markDirty(),this}replaceValues(d,m,h){return h||(h=m,m={}),this.walkDecls(g=>{m.props&&!m.props.includes(g.prop)||m.fast&&!g.value.includes(m.fast)||(g.value=g.value.replace(d,h))}),this.markDirty(),this}some(d){return this.nodes.some(d)}walk(d){return this.each((m,h)=>{let g;try{g=d(m,h)}catch(x){throw m.addToError(x)}return g!==!1&&m.walk&&(g=m.walk(d)),g})}walkAtRules(d,m){return m?d instanceof RegExp?this.walk((h,g)=>{if(h.type==="atrule"&&d.test(h.name))return m(h,g)}):this.walk((h,g)=>{if(h.type==="atrule"&&h.name===d)return m(h,g)}):(m=d,this.walk((h,g)=>{if(h.type==="atrule")return m(h,g)}))}walkComments(d){return this.walk((m,h)=>{if(m.type==="comment")return d(m,h)})}walkDecls(d,m){return m?d instanceof RegExp?this.walk((h,g)=>{if(h.type==="decl"&&d.test(h.prop))return m(h,g)}):this.walk((h,g)=>{if(h.type==="decl"&&h.prop===d)return m(h,g)}):(m=d,this.walk((h,g)=>{if(h.type==="decl")return m(h,g)}))}walkRules(d,m){return m?d instanceof RegExp?this.walk((h,g)=>{if(h.type==="rule"&&d.test(h.selector))return m(h,g)}):this.walk((h,g)=>{if(h.type==="rule"&&h.selector===d)return m(h,g)}):(m=d,this.walk((h,g)=>{if(h.type==="rule")return m(h,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return p.registerParse=f=>{i=f},p.registerRule=f=>{s=f},p.registerAtRule=f=>{a=f},p.registerRoot=f=>{c=f},Os=p,p.default=p,p.rebuild=f=>{f.type==="atrule"?Object.setPrototypeOf(f,a.prototype):f.type==="rule"?Object.setPrototypeOf(f,s.prototype):f.type==="decl"?Object.setPrototypeOf(f,n.prototype):f.type==="comment"?Object.setPrototypeOf(f,o.prototype):f.type==="root"&&Object.setPrototypeOf(f,c.prototype),f[r]=!0,f.nodes&&f.nodes.forEach(d=>{p.rebuild(d)})},Os}var Ns,Jp;function wa(){if(Jp)return Ns;Jp=1;let e=$t(),r,n;class o extends e{constructor(i){super({type:"document",...i}),this.nodes||(this.nodes=[])}toResult(i={}){return new r(new n,this,i).stringify()}}return o.registerLazyResult=t=>{r=t},o.registerProcessor=t=>{n=t},Ns=o,o.default=o,Ns}var zs,Hp;function Wh(){if(Hp)return zs;Hp=1;let e={};return zs=function(n){e[n]||(e[n]=!0,typeof console<"u"&&console.warn&&console.warn(n))},zs}var Ds,Xp;function Vh(){if(Xp)return Ds;Xp=1;class e{constructor(n,o={}){if(this.type="warning",this.text=n,o.node&&o.node.source){let t=o.node.rangeBy(o);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(let t in o)this[t]=o[t]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Ds=e,e.default=e,Ds}var Ts,Kp;function xa(){if(Kp)return Ts;Kp=1;let e=Vh();class r{constructor(o,t,i){this.processor=o,this.messages=[],this.root=t,this.opts=i,this.css=void 0,this.map=void 0}toString(){return this.css}warn(o,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let i=new e(o,t);return this.messages.push(i),i}warnings(){return this.messages.filter(o=>o.type==="warning")}get content(){return this.css}}return Ts=r,r.default=r,Ts}var Rs,Yp;function Nw(){if(Yp)return Rs;Yp=1;let e=39,r=34,n=92,o=47,t=10,i=32,s=12,a=9,c=13,u=91,l=93,p=40,f=41,d=123,m=125,h=59,g=42,x=58,b=64,y=/[\t\n\f\r "#'()/;[\\\]{}]/g,_=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,v=/.[\r\n"'(/\\]/,w=/[\da-f]/i;return Rs=function(C,P={}){let O=C.css.valueOf(),B=P.ignoreErrors,j,E,Me,Ne,K,H,ue,ge,de,Y,st=O.length,T=0,We=[],Re=[];function _r(){return T}function be(F){throw C.error("Unclosed "+F,T)}function Ue(){return Re.length===0&&T>=st}function wt(F){if(Re.length)return Re.pop();if(T>=st)return;let fe=F?F.ignoreUnclosed:!1;switch(j=O.charCodeAt(T),j){case t:case i:case a:case c:case s:{E=T;do E+=1,j=O.charCodeAt(E);while(j===i||j===t||j===a||j===c||j===s);Y=["space",O.slice(T,E)],T=E-1;break}case u:case l:case d:case m:case x:case h:case f:{let Q=String.fromCharCode(j);Y=[Q,Q,T];break}case p:{if(ge=We.length?We.pop()[1]:"",de=O.charCodeAt(T+1),ge==="url"&&de!==e&&de!==r&&de!==i&&de!==t&&de!==a&&de!==s&&de!==c){E=T;do{if(H=!1,E=O.indexOf(")",E+1),E===-1)if(B||fe){E=T;break}else be("bracket");for(ue=E;O.charCodeAt(ue-1)===n;)ue-=1,H=!H}while(H);Y=["brackets",O.slice(T,E+1),T,E],T=E}else E=O.indexOf(")",T+1),Ne=O.slice(T,E+1),E===-1||v.test(Ne)?Y=["(","(",T]:(Y=["brackets",Ne,T,E],T=E);break}case e:case r:{Me=j===e?"'":'"',E=T;do{if(H=!1,E=O.indexOf(Me,E+1),E===-1)if(B||fe){E=T+1;break}else be("string");for(ue=E;O.charCodeAt(ue-1)===n;)ue-=1,H=!H}while(H);Y=["string",O.slice(T,E+1),T,E],T=E;break}case b:{y.lastIndex=T+1,y.test(O),y.lastIndex===0?E=O.length-1:E=y.lastIndex-2,Y=["at-word",O.slice(T,E+1),T,E],T=E;break}case n:{for(E=T,K=!0;O.charCodeAt(E+1)===n;)E+=1,K=!K;if(j=O.charCodeAt(E+1),K&&j!==o&&j!==i&&j!==t&&j!==a&&j!==c&&j!==s&&(E+=1,w.test(O.charAt(E)))){for(;w.test(O.charAt(E+1));)E+=1;O.charCodeAt(E+1)===i&&(E+=1)}Y=["word",O.slice(T,E+1),T,E],T=E;break}default:{j===o&&O.charCodeAt(T+1)===g?(E=O.indexOf("*/",T+2)+1,E===0&&(B||fe?E=O.length:be("comment")),Y=["comment",O.slice(T,E+1),T,E],T=E):(_.lastIndex=T+1,_.test(O),_.lastIndex===0?E=O.length-1:E=_.lastIndex-2,Y=["word",O.slice(T,E+1),T,E],We.push(Y),T=E);break}}return T++,Y}function at(F){Re.push(F)}return{back:at,endOfFile:Ue,nextToken:wt,position:_r}},Rs}var Ps,Qp;function _a(){if(Qp)return Ps;Qp=1;let e=$t();class r extends e{constructor(o){super(o),this.type="atrule"}append(...o){return this.proxyOf.nodes||(this.nodes=[]),super.append(...o)}prepend(...o){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...o)}}return Ps=r,r.default=r,e.registerAtRule(r),Ps}var As,eh;function zr(){if(eh)return As;eh=1;let e=$t(),r,n;class o extends e{constructor(i){super(i),this.type="root",this.nodes||(this.nodes=[])}normalize(i,s,a){let c=super.normalize(i);if(s){if(a==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(let u of c)u.raws.before=s.raws.before}return c}removeChild(i,s){let a=this.index(i);return!s&&a===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[a].raws.before),super.removeChild(i)}toResult(i={}){return new r(new n,this,i).stringify()}}return o.registerLazyResult=t=>{r=t},o.registerProcessor=t=>{n=t},As=o,o.default=o,e.registerRoot(o),As}var Ms,th;function qh(){if(th)return Ms;th=1;let e={comma(r){return e.split(r,[","],!0)},space(r){let n=[" ",`
|
|
49
|
+
`," "];return e.split(r,n)},split(r,n,o){let t=[],i="",s=!1,a=0,c=!1,u="",l=!1;for(let p of r)l?l=!1:p==="\\"?l=!0:c?p===u&&(c=!1):p==='"'||p==="'"?(c=!0,u=p):p==="("?a+=1:p===")"?a>0&&(a-=1):a===0&&n.includes(p)&&(s=!0),s?(i!==""&&t.push(i.trim()),i="",s=!1):i+=p;return(o||i!=="")&&t.push(i.trim()),t}};return Ms=e,e.default=e,Ms}var Us,rh;function Sa(){if(rh)return Us;rh=1;let e=$t(),r=qh();class n extends e{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return r.comma(this.selector)}set selectors(t){let i=this.selector?this.selector.match(/,\s*/):null,s=i?i[0]:","+this.raw("between","beforeOpen");this.selector=t.join(s)}}return Us=n,n.default=n,e.registerRule(n),Us}var js,nh;function zw(){if(nh)return js;nh=1;let e=qn(),r=Nw(),n=Jn(),o=_a(),t=zr(),i=Sa(),s={empty:!0,space:!0};function a(u){for(let l=u.length-1;l>=0;l--){let p=u[l],f=p[3]||p[2];if(f)return f}}class c{constructor(l){this.input=l,this.root=new t,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:l,start:{column:1,line:1,offset:0}}}atrule(l){let p=new o;p.name=l[1].slice(1),p.name===""&&this.unnamedAtrule(p,l),this.init(p,l[2]);let f,d,m,h=!1,g=!1,x=[],b=[];for(;!this.tokenizer.endOfFile();){if(l=this.tokenizer.nextToken(),f=l[0],f==="("||f==="["?b.push(f==="("?")":"]"):f==="{"&&b.length>0?b.push("}"):f===b[b.length-1]&&b.pop(),b.length===0)if(f===";"){p.source.end=this.getPosition(l[2]),p.source.end.offset++,this.semicolon=!0;break}else if(f==="{"){g=!0;break}else if(f==="}"){if(x.length>0){for(m=x.length-1,d=x[m];d&&d[0]==="space";)d=x[--m];d&&(p.source.end=this.getPosition(d[3]||d[2]),p.source.end.offset++)}this.end(l);break}else x.push(l);else x.push(l);if(this.tokenizer.endOfFile()){h=!0;break}}p.raws.between=this.spacesAndCommentsFromEnd(x),x.length?(p.raws.afterName=this.spacesAndCommentsFromStart(x),this.raw(p,"params",x),h&&(l=x[x.length-1],p.source.end=this.getPosition(l[3]||l[2]),p.source.end.offset++,this.spaces=p.raws.between,p.raws.between="")):(p.raws.afterName="",p.params=""),g&&(p.nodes=[],this.current=p)}checkMissedSemicolon(l){let p=this.colon(l);if(p===!1)return;let f=0,d;for(let m=p-1;m>=0&&(d=l[m],!(d[0]!=="space"&&(f+=1,f===2)));m--);throw this.input.error("Missed semicolon",d[0]==="word"?d[3]+1:d[2])}colon(l){let p=0,f,d,m;for(let[h,g]of l.entries()){if(f=g,d=f[0],d==="("&&(p+=1),d===")"&&(p-=1),p===0&&d===":")if(!m)this.doubleColon(f);else{if(m[0]==="word"&&m[1]==="progid")continue;return h}m=f}return!1}comment(l){let p=new n;this.init(p,l[2]),p.source.end=this.getPosition(l[3]||l[2]),p.source.end.offset++;let f=l[1].slice(2,-2);if(/^\s*$/.test(f))p.text="",p.raws.left=f,p.raws.right="";else{let d=f.match(/^(\s*)([^]*\S)(\s*)$/);p.text=d[2],p.raws.left=d[1],p.raws.right=d[3]}}createTokenizer(){this.tokenizer=r(this.input)}decl(l,p){let f=new e;this.init(f,l[0][2]);let d=l[l.length-1];for(d[0]===";"&&(this.semicolon=!0,l.pop()),f.source.end=this.getPosition(d[3]||d[2]||a(l)),f.source.end.offset++;l[0][0]!=="word";)l.length===1&&this.unknownWord(l),f.raws.before+=l.shift()[1];for(f.source.start=this.getPosition(l[0][2]),f.prop="";l.length;){let b=l[0][0];if(b===":"||b==="space"||b==="comment")break;f.prop+=l.shift()[1]}f.raws.between="";let m;for(;l.length;)if(m=l.shift(),m[0]===":"){f.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),f.raws.between+=m[1];(f.prop[0]==="_"||f.prop[0]==="*")&&(f.raws.before+=f.prop[0],f.prop=f.prop.slice(1));let h=[],g;for(;l.length&&(g=l[0][0],!(g!=="space"&&g!=="comment"));)h.push(l.shift());this.precheckMissedSemicolon(l);for(let b=l.length-1;b>=0;b--){if(m=l[b],m[1].toLowerCase()==="!important"){f.important=!0;let y=this.stringFrom(l,b);y=this.spacesFromEnd(l)+y,y!==" !important"&&(f.raws.important=y);break}else if(m[1].toLowerCase()==="important"){let y=l.slice(0),_="";for(let v=b;v>0;v--){let w=y[v][0];if(_.trim().indexOf("!")===0&&w!=="space")break;_=y.pop()[1]+_}_.trim().indexOf("!")===0&&(f.important=!0,f.raws.important=_,l=y)}if(m[0]!=="space"&&m[0]!=="comment")break}l.some(b=>b[0]!=="space"&&b[0]!=="comment")&&(f.raws.between+=h.map(b=>b[1]).join(""),h=[]),this.raw(f,"value",h.concat(l),p),f.value.includes(":")&&!p&&this.checkMissedSemicolon(l)}doubleColon(l){throw this.input.error("Double colon",{offset:l[2]},{offset:l[2]+l[1].length})}emptyRule(l){let p=new i;this.init(p,l[2]),p.selector="",p.raws.between="",this.current=p}end(l){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(l[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(l)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(l){if(this.spaces+=l[1],this.current.nodes){let p=this.current.nodes[this.current.nodes.length-1];p&&p.type==="rule"&&!p.raws.ownSemicolon&&(p.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(l){let p=this.input.fromOffset(l);return{column:p.col,line:p.line,offset:l}}init(l,p){this.current.push(l),l.source={input:this.input,start:this.getPosition(p)},l.raws.before=this.spaces,this.spaces="",l.type!=="comment"&&(this.semicolon=!1)}other(l){let p=!1,f=null,d=!1,m=null,h=[],g=l[1].startsWith("--"),x=[],b=l;for(;b;){if(f=b[0],x.push(b),f==="("||f==="[")m||(m=b),h.push(f==="("?")":"]");else if(g&&d&&f==="{")m||(m=b),h.push("}");else if(h.length===0)if(f===";")if(d){this.decl(x,g);return}else break;else if(f==="{"){this.rule(x);return}else if(f==="}"){this.tokenizer.back(x.pop()),p=!0;break}else f===":"&&(d=!0);else f===h[h.length-1]&&(h.pop(),h.length===0&&(m=null));b=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(p=!0),h.length>0&&this.unclosedBracket(m),p&&d){if(!g)for(;x.length&&(b=x[x.length-1][0],!(b!=="space"&&b!=="comment"));)this.tokenizer.back(x.pop());this.decl(x,g)}else this.unknownWord(x)}parse(){let l;for(;!this.tokenizer.endOfFile();)switch(l=this.tokenizer.nextToken(),l[0]){case"space":this.spaces+=l[1];break;case";":this.freeSemicolon(l);break;case"}":this.end(l);break;case"comment":this.comment(l);break;case"at-word":this.atrule(l);break;case"{":this.emptyRule(l);break;default:this.other(l);break}this.endFile()}precheckMissedSemicolon(){}raw(l,p,f,d){let m,h,g=f.length,x="",b=!0,y,_;for(let v=0;v<g;v+=1)m=f[v],h=m[0],h==="space"&&v===g-1&&!d?b=!1:h==="comment"?(_=f[v-1]?f[v-1][0]:"empty",y=f[v+1]?f[v+1][0]:"empty",!s[_]&&!s[y]?x.slice(-1)===","?b=!1:x+=m[1]:b=!1):x+=m[1];if(!b){let v=f.reduce((w,S)=>w+S[1],"");l.raws[p]={raw:v,value:x}}l[p]=x}rule(l){l.pop();let p=new i;this.init(p,l[0][2]),p.raws.between=this.spacesAndCommentsFromEnd(l),this.raw(p,"selector",l),this.current=p}spacesAndCommentsFromEnd(l){let p,f="";for(;l.length&&(p=l[l.length-1][0],!(p!=="space"&&p!=="comment"));)f=l.pop()[1]+f;return f}spacesAndCommentsFromStart(l){let p,f="";for(;l.length&&(p=l[0][0],!(p!=="space"&&p!=="comment"));)f+=l.shift()[1];return f}spacesFromEnd(l){let p,f="";for(;l.length&&(p=l[l.length-1][0],p==="space");)f=l.pop()[1]+f;return f}stringFrom(l,p){let f="";for(let d=p;d<l.length;d++)f+=l[d][1];return l.splice(p,l.length-p),f}unclosedBlock(){let l=this.current.source.start;throw this.input.error("Unclosed block",l.line,l.column)}unclosedBracket(l){throw this.input.error("Unclosed bracket",{offset:l[2]},{offset:l[2]+1})}unexpectedClose(l){throw this.input.error("Unexpected }",{offset:l[2]},{offset:l[2]+1})}unknownWord(l){throw this.input.error("Unknown word",{offset:l[0][2]},{offset:l[0][2]+l[0][1].length})}unnamedAtrule(l,p){throw this.input.error("At-rule without name",{offset:p[2]},{offset:p[2]+p[1].length})}}return js=c,js}var Ls,ih;function $a(){if(ih)return Ls;ih=1;let e=$t(),r=zw(),n=Gn();function o(t,i){let s=new n(t,i),a=new r(s);try{a.parse()}catch(c){throw c}return a.root}return Ls=o,o.default=o,e.registerParse(o),Ls}var Fs,oh;function Gh(){if(oh)return Fs;oh=1;let{isClean:e,my:r}=ba(),n=Bh(),o=Wn(),t=$t(),i=wa(),s=Wh(),a=xa(),c=$a(),u=zr(),l={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},p={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},f={Once:!0,postcssPlugin:!0,prepare:!0},d=0;function m(_){return typeof _=="object"&&typeof _.then=="function"}function h(_){let v=!1,w=l[_.type];return _.type==="decl"?v=_.prop.toLowerCase():_.type==="atrule"&&(v=_.name.toLowerCase()),v&&_.append?[w,w+"-"+v,d,w+"Exit",w+"Exit-"+v]:v?[w,w+"-"+v,w+"Exit",w+"Exit-"+v]:_.append?[w,d,w+"Exit"]:[w,w+"Exit"]}function g(_){let v;return _.type==="document"?v=["Document",d,"DocumentExit"]:_.type==="root"?v=["Root",d,"RootExit"]:v=h(_),{eventIndex:0,events:v,iterator:0,node:_,visitorIndex:0,visitors:[]}}function x(_){return _[e]=!1,_.nodes&&_.nodes.forEach(v=>x(v)),_}let b={};class y{constructor(v,w,S){this.stringified=!1,this.processed=!1;let C;if(typeof w=="object"&&w!==null&&(w.type==="root"||w.type==="document"))C=x(w);else if(w instanceof y||w instanceof a)C=x(w.root),w.map&&(typeof S.map>"u"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=w.map);else{let P=c;S.syntax&&(P=S.syntax.parse),S.parser&&(P=S.parser),P.parse&&(P=P.parse);try{C=P(w,S)}catch(O){this.processed=!0,this.error=O}C&&!C[r]&&t.rebuild(C)}this.result=new a(v,C,S),this.helpers={...b,postcss:b,result:this.result},this.plugins=this.processor.plugins.map(P=>typeof P=="object"&&P.prepare?{...P,...P.prepare(this.result)}:P)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(v){return this.async().catch(v)}finally(v){return this.async().then(v,v)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(v,w){let S=this.result.lastPlugin;try{w&&w.addToError(v),this.error=v,v.name==="CssSyntaxError"&&!v.plugin?(v.plugin=S.postcssPlugin,v.setMessage()):S.postcssVersion}catch(C){console&&console.error&&console.error(C)}return v}prepareVisitors(){this.listeners={};let v=(w,S,C)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([w,C])};for(let w of this.plugins)if(typeof w=="object")for(let S in w){if(!p[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${w.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[S])if(typeof w[S]=="object")for(let C in w[S])C==="*"?v(w,S,w[S][C]):v(w,S+"-"+C.toLowerCase(),w[S][C]);else typeof w[S]=="function"&&v(w,S,w[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let v=0;v<this.plugins.length;v++){let w=this.plugins[v],S=this.runOnRoot(w);if(m(S))try{await S}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[e];){v[e]=!0;let w=[g(v)];for(;w.length>0;){let S=this.visitTick(w);if(m(S))try{await S}catch(C){let P=w[w.length-1].node;throw this.handleError(C,P)}}}if(this.listeners.OnceExit)for(let[w,S]of this.listeners.OnceExit){this.result.lastPlugin=w;try{if(v.type==="document"){let C=v.nodes.map(P=>S(P,this.helpers));await Promise.all(C)}else await S(v,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(v){this.result.lastPlugin=v;try{if(typeof v=="object"&&v.Once){if(this.result.root.type==="document"){let w=this.result.root.nodes.map(S=>v.Once(S,this.helpers));return m(w[0])?Promise.all(w):w}return v.Once(this.result.root,this.helpers)}else if(typeof v=="function")return v(this.result.root,this.result)}catch(w){throw this.handleError(w)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let v=this.result.opts,w=o;v.syntax&&(w=v.syntax.stringify),v.stringifier&&(w=v.stringifier),w.stringify&&(w=w.stringify);let C=new n(w,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let v of this.plugins){let w=this.runOnRoot(v);if(m(w))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[e];)v[e]=!0,this.walkSync(v);if(this.listeners.OnceExit)if(v.type==="document")for(let w of v.nodes)this.visitSync(this.listeners.OnceExit,w);else this.visitSync(this.listeners.OnceExit,v)}return this.result}then(v,w){return this.async().then(v,w)}toString(){return this.css}visitSync(v,w){for(let[S,C]of v){this.result.lastPlugin=S;let P;try{P=C(w,this.helpers)}catch(O){throw this.handleError(O,w.proxyOf)}if(w.type!=="root"&&w.type!=="document"&&!w.parent)return!0;if(m(P))throw this.getAsyncError()}}visitTick(v){let w=v[v.length-1],{node:S,visitors:C}=w;if(S.type!=="root"&&S.type!=="document"&&!S.parent){v.pop();return}if(C.length>0&&w.visitorIndex<C.length){let[O,B]=C[w.visitorIndex];w.visitorIndex+=1,w.visitorIndex===C.length&&(w.visitors=[],w.visitorIndex=0),this.result.lastPlugin=O;try{return B(S.toProxy(),this.helpers)}catch(j){throw this.handleError(j,S)}}if(w.iterator!==0){let O=w.iterator,B;for(;B=S.nodes[S.indexes[O]];)if(S.indexes[O]+=1,!B[e]){B[e]=!0,v.push(g(B));return}w.iterator=0,delete S.indexes[O]}let P=w.events;for(;w.eventIndex<P.length;){let O=P[w.eventIndex];if(w.eventIndex+=1,O===d){S.nodes&&S.nodes.length&&(S[e]=!0,w.iterator=S.getIterator());return}else if(this.listeners[O]){w.visitors=this.listeners[O];return}}v.pop()}walkSync(v){v[e]=!0;let w=h(v);for(let S of w)if(S===d)v.nodes&&v.each(C=>{C[e]||this.walkSync(C)});else{let C=this.listeners[S];if(C&&this.visitSync(C,v.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return y.registerPostcss=_=>{b=_},Fs=y,y.default=y,u.registerLazyResult(y),i.registerLazyResult(y),Fs}var Zs,sh;function Dw(){if(sh)return Zs;sh=1;let e=Bh(),r=Wn(),n=Wh(),o=$a(),t=xa();class i{constructor(a,c,u){c=c.toString(),this.stringified=!1,this._processor=a,this._css=c,this._opts=u,this._map=void 0;let l,p=r;this.result=new t(this._processor,l,this._opts),this.result.css=c;let f=this;Object.defineProperty(this.result,"root",{get(){return f.root}});let d=new e(p,l,this._opts,c);if(d.isMap()){let[m,h]=d.generate();m&&(this.result.css=m),h&&(this.result.map=h)}else d.clearAnnotation(),this.result.css=d.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(a){return this.async().catch(a)}finally(a){return this.async().then(a,a)}sync(){if(this.error)throw this.error;return this.result}then(a,c){return this.async().then(a,c)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let a,c=o;try{a=c(this._css,this._opts)}catch(u){this.error=u}if(this.error)throw this.error;return this._root=a,a}get[Symbol.toStringTag](){return"NoWorkResult"}}return Zs=i,i.default=i,Zs}var Bs,ah;function Tw(){if(ah)return Bs;ah=1;let e=Dw(),r=Gh(),n=wa(),o=zr();class t{constructor(s=[]){this.version="8.4.38",this.plugins=this.normalize(s)}normalize(s){let a=[];for(let c of s)if(c.postcss===!0?c=c():c.postcss&&(c=c.postcss),typeof c=="object"&&Array.isArray(c.plugins))a=a.concat(c.plugins);else if(typeof c=="object"&&c.postcssPlugin)a.push(c);else if(typeof c=="function")a.push(c);else if(!(typeof c=="object"&&(c.parse||c.stringify)))throw new Error(c+" is not a PostCSS plugin");return a}process(s,a={}){return!this.plugins.length&&!a.parser&&!a.stringifier&&!a.syntax?new e(this,s,a):new r(this,s,a)}use(s){return this.plugins=this.plugins.concat(this.normalize([s])),this}}return Bs=t,t.default=t,o.registerProcessor(t),n.registerProcessor(t),Bs}var Ws,lh;function Rw(){if(lh)return Ws;lh=1;let e=qn(),r=Zh(),n=Jn(),o=_a(),t=Gn(),i=zr(),s=Sa();function a(c,u){if(Array.isArray(c))return c.map(f=>a(f));let{inputs:l,...p}=c;if(l){u=[];for(let f of l){let d={...f,__proto__:t.prototype};d.map&&(d.map={...d.map,__proto__:r.prototype}),u.push(d)}}if(p.nodes&&(p.nodes=c.nodes.map(f=>a(f,u))),p.source){let{inputId:f,...d}=p.source;p.source=d,f!=null&&(p.source.input=u[f])}if(p.type==="root")return new i(p);if(p.type==="decl")return new e(p);if(p.type==="rule")return new s(p);if(p.type==="comment")return new n(p);if(p.type==="atrule")return new o(p);throw new Error("Unknown node type: "+c.type)}return Ws=a,a.default=a,Ws}var Vs,ch;function Pw(){if(ch)return Vs;ch=1;let e=ya(),r=qn(),n=Gh(),o=$t(),t=Tw(),i=Wn(),s=Rw(),a=wa(),c=Vh(),u=Jn(),l=_a(),p=xa(),f=Gn(),d=$a(),m=qh(),h=Sa(),g=zr(),x=Vn();function b(...y){return y.length===1&&Array.isArray(y[0])&&(y=y[0]),new t(y)}return b.plugin=function(_,v){let w=!1;function S(...P){console&&console.warn&&!w&&(w=!0,console.warn(_+`: postcss.plugin was deprecated. Migration guide:
|
|
50
50
|
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(_+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
|
|
51
|
-
https://www.w3ctech.com/topic/2226`));let O=v(...
|
|
51
|
+
https://www.w3ctech.com/topic/2226`));let O=v(...P);return O.postcssPlugin=_,O.postcssVersion=new t().version,O}let C;return Object.defineProperty(S,"postcss",{get(){return C||(C=S()),C}}),S.process=function(P,O,B){return b([S(B)]).process(P,O)},S},b.stringify=i,b.parse=d,b.fromJSON=s,b.list=m,b.comment=y=>new u(y),b.atRule=y=>new l(y),b.decl=y=>new r(y),b.rule=y=>new h(y),b.root=y=>new g(y),b.document=y=>new a(y),b.CssSyntaxError=e,b.Declaration=r,b.Container=o,b.Processor=t,b.Document=a,b.Comment=u,b.Warning=c,b.AtRule=l,b.Result=p,b.Input=f,b.Rule=h,b.Root=g,b.Node=x,n.registerPostcss(b),Vs=b,b.default=b,Vs}var Aw=Pw(),se=$w(Aw);se.stringify;se.fromJSON;se.plugin;se.parse;se.list;se.document;se.comment;se.atRule;se.rule;se.decl;se.root;se.CssSyntaxError;se.Declaration;se.Container;se.Processor;se.Document;se.Comment;se.Warning;se.AtRule;se.Result;se.Input;se.Rule;se.Root;se.Node;var Ks=class e{constructor(...r){Pe(this,"parentElement",null),Pe(this,"parentNode",null),Pe(this,"ownerDocument"),Pe(this,"firstChild",null),Pe(this,"lastChild",null),Pe(this,"previousSibling",null),Pe(this,"nextSibling",null),Pe(this,"ELEMENT_NODE",1),Pe(this,"TEXT_NODE",3),Pe(this,"nodeType"),Pe(this,"nodeName"),Pe(this,"RRNodeType")}get childNodes(){let r=[],n=this.firstChild;for(;n;)r.push(n),n=n.nextSibling;return r}contains(r){if(r instanceof e){if(r.ownerDocument!==this.ownerDocument)return!1;if(r===this)return!0}else return!1;for(;r.parentNode;){if(r.parentNode===this)return!0;r=r.parentNode}return!1}appendChild(r){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(r,n){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(r){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}};var uh={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},dh={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},In={},Jh={},Mw=()=>!!globalThis.Zone;function ka(e){if(In[e])return In[e];let r=globalThis[e],n=r.prototype,o=e in uh?uh[e]:void 0,t=!!(o&&o.every(a=>{var c,u;return!!((u=(c=Object.getOwnPropertyDescriptor(n,a))==null?void 0:c.get)!=null&&u.toString().includes("[native code]"))})),i=e in dh?dh[e]:void 0,s=!!(i&&i.every(a=>{var c;return typeof n[a]=="function"&&((c=n[a])==null?void 0:c.toString().includes("[native code]"))}));if(t&&s&&!Mw())return In[e]=r.prototype,r.prototype;try{let a=document.createElement("iframe");a.style.display="none",document.body.appendChild(a);let c=a.contentWindow;if(!c)return r.prototype;let u=c[e].prototype;if(!u)return a.remove(),n;let l=navigator.userAgent;return l.includes("Safari")&&!l.includes("Chrome")?(a.classList.add("rr-block"),a.setAttribute("__rrwebUntaintedMutationObserver",""),Jh[e]=()=>a.remove()):a.remove(),In[e]=u}catch{return n}}var qs={};function et(e,r,n){var o;let t=`${e}.${String(n)}`;if(qs[t])return qs[t].call(r);let i=ka(e),s=(o=Object.getOwnPropertyDescriptor(i,n))==null?void 0:o.get;return s?(qs[t]=s,s.call(r)):r[n]}var Gs={};function Hh(e,r,n){let o=`${e}.${String(n)}`;if(Gs[o])return Gs[o].bind(r);let i=ka(e)[n];return typeof i!="function"?r[n]:(Gs[o]=i,i.bind(r))}function Uw(e){return et("Node",e,"ownerDocument")}function jw(e){return et("Node",e,"childNodes")}function Lw(e){return et("Node",e,"parentNode")}function Fw(e){return et("Node",e,"parentElement")}function Zw(e){return et("Node",e,"textContent")}function Bw(e,r){return Hh("Node",e,"contains")(r)}function Ww(e){return Hh("Node",e,"getRootNode")()}function Vw(e){return!e||!("host"in e)?null:et("ShadowRoot",e,"host")}function qw(e){return e.styleSheets}function Gw(e){return!e||!("shadowRoot"in e)?null:et("Element",e,"shadowRoot")}function Jw(e,r){return et("Element",e,"querySelector")(r)}function Hw(e,r){return et("Element",e,"querySelectorAll")(r)}function Xh(){return[ka("MutationObserver").constructor,Jh.MutationObserver??(()=>{})]}var Cr=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Cr=()=>new Date().getTime());function kt(e,r,n){try{if(!(r in e))return()=>{};let o=e[r],t=n(o);return typeof t=="function"&&(t.prototype=t.prototype||{},Object.defineProperties(t,{__rrweb_original__:{enumerable:!1,value:o}})),e[r]=t,()=>{e[r]=o}}catch{return()=>{}}}var V={ownerDocument:Uw,childNodes:jw,parentNode:Lw,parentElement:Fw,textContent:Zw,contains:Bw,getRootNode:Ww,host:Vw,styleSheets:qw,shadowRoot:Gw,querySelector:Jw,querySelectorAll:Hw,nowTimestamp:Cr,mutationObserverCtor:Xh,patch:kt};function we(e,r,n=document){let o={capture:!0,passive:!0};return n.addEventListener(e,r,o),()=>n.removeEventListener(e,r,o)}var At=`Please stop import mirror directly. Instead of that,\r
|
|
52
52
|
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
53
|
-
or you can use record.mirror to access the mirror instance during recording.`,fh={map:{},getId(){return console.error(At),-1},getNode(){return console.error(At),null},removeNodeFromMap(){console.error(At)},has(){return console.error(At),!1},reset(){console.error(At)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(fh=new Proxy(fh,{get(e,r,n){return r==="map"&&console.error(At),Reflect.get(e,r,n)}}));function Or(e,r,n={}){let o=null,t=0;return function(...i){let s=Date.now();!t&&n.leading===!1&&(t=s);let a=r-(s-t),c=this;a<=0||a>r?(o&&(clearTimeout(o),o=null),t=s,e.apply(c,i)):!o&&n.trailing!==!1&&(o=setTimeout(()=>{t=n.leading===!1?0:Date.now(),o=null,e.apply(c,i)},a))}}function Hn(e,r,n,o,t=window){let i=t.Object.getOwnPropertyDescriptor(e,r);return t.Object.defineProperty(e,r,o?n:{set(s){setTimeout(()=>{n.set.call(this,s)},0),i&&i.set&&i.set.call(this,s)}}),()=>Hn(e,r,i||{},!0)}function Kh(e){var r,n,o,t;let i=e.document;return{left:i.scrollingElement?i.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:i.documentElement.scrollLeft||i?.body&&((r=V.parentElement(i.body))==null?void 0:r.scrollLeft)||((n=i?.body)==null?void 0:n.scrollLeft)||0,top:i.scrollingElement?i.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:i?.documentElement.scrollTop||i?.body&&((o=V.parentElement(i.body))==null?void 0:o.scrollTop)||((t=i?.body)==null?void 0:t.scrollTop)||0}}function Yh(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Qh(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function em(e){return e?e.nodeType===e.ELEMENT_NODE?e:V.parentElement(e):null}function xe(e,r,n,o){if(!e)return!1;let t=em(e);if(!t)return!1;try{if(typeof r=="string"){if(t.classList.contains(r)||o&&t.closest("."+r)!==null)return!0}else if(Rn(t,r,o))return!0}catch{}return!!(n&&(t.matches(n)||o&&t.closest(n)!==null))}function Xw(e,r){return r.getId(e)!==-1}function Js(e,r,n){return e.tagName==="TITLE"&&n.headTitleMutations?!0:r.getId(e)===Er}function tm(e,r){if($r(e))return!1;let n=r.getId(e);if(!r.has(n))return!0;let o=V.parentNode(e);return o&&o.nodeType===e.DOCUMENT_NODE?!1:o?tm(o,r):!0}function Ys(e){return!!e.changedTouches}function Kw(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function rm(e,r){return!!(e.nodeName==="IFRAME"&&r.getMeta(e))}function nm(e,r){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&r.getMeta(e))}function Qs(e){return e?e instanceof Ks&&"shadowRoot"in e?!!e.shadowRoot:!!V.shadowRoot(e):!1}var ea=class{constructor(){M(this,"id",1),M(this,"styleIDMap",new WeakMap),M(this,"idStyleMap",new Map)}getId(r){return this.styleIDMap.get(r)??-1}has(r){return this.styleIDMap.has(r)}add(r,n){if(this.has(r))return this.getId(r);let o;return n===void 0?o=this.id++:o=n,this.styleIDMap.set(r,o),this.idStyleMap.set(o,r),o}getStyle(r){return this.idStyleMap.get(r)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function im(e){var r;let n=null;return"getRootNode"in e&&((r=V.getRootNode(e))==null?void 0:r.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&V.host(V.getRootNode(e))&&(n=V.host(V.getRootNode(e))),n}function Yw(e){let r=e,n;for(;n=im(r);)r=n;return r}function Qw(e){let r=V.ownerDocument(e);if(!r)return!1;let n=Yw(e);return V.contains(r,n)}function om(e){let r=V.ownerDocument(e);return r?V.contains(r,e)||Qw(e):!1}var J=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e[e.Asset=7]="Asset",e))(J||{}),q=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(q||{}),Ie=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(Ie||{}),Ye=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Ye||{}),Ft=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Ft||{}),Mt=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(Mt||{});var sm=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(sm||{});function ph(e){return"__ln"in e}var ta=class{constructor(){M(this,"length",0),M(this,"head",null),M(this,"tail",null)}get(r){if(r>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let o=0;o<r;o++)n=n?.next||null;return n}addNode(r){let n={value:r,previous:null,next:null};if(r.__ln=n,r.previousSibling&&ph(r.previousSibling)){let o=r.previousSibling.__ln.next;n.next=o,n.previous=r.previousSibling.__ln,r.previousSibling.__ln.next=n,o&&(o.previous=n)}else if(r.nextSibling&&ph(r.nextSibling)&&r.nextSibling.__ln.previous){let o=r.nextSibling.__ln.previous;n.previous=o,n.next=r.nextSibling.__ln,r.nextSibling.__ln.previous=n,o&&(o.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(r){let n=r.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),r.__ln&&delete r.__ln,this.length--)}},hh=(e,r)=>`${e}@${r}`,ra=class{constructor(){M(this,"frozen",!1),M(this,"locked",!1),M(this,"texts",[]),M(this,"attributes",[]),M(this,"attributeMap",new WeakMap),M(this,"removes",[]),M(this,"mapRemoves",[]),M(this,"movedMap",{}),M(this,"addedSet",new Set),M(this,"movedSet",new Set),M(this,"droppedSet",new Set),M(this,"removesSubTreeCache",new Set),M(this,"mutationCb"),M(this,"blockClass"),M(this,"blockSelector"),M(this,"maskTextClass"),M(this,"maskTextSelector"),M(this,"inlineStylesheet"),M(this,"maskInputOptions"),M(this,"maskTextFn"),M(this,"maskInputFn"),M(this,"keepIframeSrcFn"),M(this,"recordCanvas"),M(this,"inlineImages"),M(this,"slimDOMOptions"),M(this,"dataURLOptions"),M(this,"doc"),M(this,"mirror"),M(this,"iframeManager"),M(this,"stylesheetManager"),M(this,"shadowDomManager"),M(this,"canvasManager"),M(this,"processedNodeManager"),M(this,"unattachedDoc"),M(this,"processMutations",r=>{r.forEach(this.processMutation),this.emit()}),M(this,"emit",()=>{if(this.frozen||this.locked)return;let r=[],n=new Set,o=new ta,t=c=>{let u=c,l=Er;for(;l===Er;)u=u&&u.nextSibling,l=u&&this.mirror.getId(u);return l},i=c=>{let u=V.parentNode(c);if(!u||!om(c))return;let l=!1;if(c.nodeType===Node.TEXT_NODE){let m=u.tagName;if(m==="TEXTAREA")return;m==="STYLE"&&this.addedSet.has(u)&&(l=!0)}let p=$r(u)?this.mirror.getId(im(c)):this.mirror.getId(u),f=t(c);if(p===-1||f===-1)return o.addNode(c);let d=jt(c,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:m=>{rm(m,this.mirror)&&this.iframeManager.addIframe(m),nm(m,this.mirror)&&this.stylesheetManager.trackLinkElement(m),Qs(c)&&this.shadowDomManager.addShadowRoot(V.shadowRoot(c),this.doc)},onIframeLoad:(m,h)=>{this.iframeManager.attachIframe(m,h),this.shadowDomManager.observeAttachShadow(m)},onStylesheetLoad:(m,h)=>{this.stylesheetManager.attachLinkElement(m,h)},cssCaptured:l});d&&(r.push({parentId:p,nextId:f,node:d}),n.add(d.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let c of this.movedSet)mh(this.removesSubTreeCache,c,this.mirror)&&!this.movedSet.has(V.parentNode(c))||i(c);for(let c of this.addedSet)!gh(this.droppedSet,c)&&!mh(this.removesSubTreeCache,c,this.mirror)||gh(this.movedSet,c)?i(c):this.droppedSet.add(c);let s=null;for(;o.length;){let c=null;if(s){let u=this.mirror.getId(V.parentNode(s.value)),l=t(s.value);u!==-1&&l!==-1&&(c=s)}if(!c){let u=o.tail;for(;u;){let l=u;if(u=u.previous,l){let p=this.mirror.getId(V.parentNode(l.value));if(t(l.value)===-1)continue;if(p!==-1){c=l;break}else{let d=l.value,m=V.parentNode(d);if(m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let h=V.host(m);if(this.mirror.getId(h)!==-1){c=l;break}}}}}}if(!c){for(;o.head;)o.removeNode(o.head.value);break}s=c.previous,o.removeNode(c.value),i(c.value)}let a={texts:this.texts.map(c=>{let u=c.node,l=V.parentNode(u);return l&&l.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(l),{id:this.mirror.getId(u),value:c.value}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{let{attributes:u}=c;if(typeof u.style=="string"){let l=JSON.stringify(c.styleDiff),p=JSON.stringify(c._unchangedStyles);l.length<u.style.length&&(l+p).split("var(").length===u.style.split("var(").length&&(u.style=c.styleDiff)}return{id:this.mirror.getId(c.node),attributes:u}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:r};!a.texts.length&&!a.attributes.length&&!a.removes.length&&!a.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(a))}),M(this,"genTextAreaValueMutation",r=>{let n=this.attributeMap.get(r);n||(n={node:r,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(n),this.attributeMap.set(r,n));let o=Array.from(V.childNodes(r),t=>V.textContent(t)||"").join("");n.attributes.value=Dn({element:r,maskInputOptions:this.maskInputOptions,tagName:r.tagName,type:Tn(r),value:o,maskInputFn:this.maskInputFn})}),M(this,"processMutation",r=>{if(!Js(r.target,this.mirror,this.slimDOMOptions))switch(r.type){case"characterData":{let n=V.textContent(r.target);!xe(r.target,this.blockClass,this.blockSelector,!1)&&n!==r.oldValue&&this.texts.push({value:Dh(r.target,this.maskTextClass,this.maskTextSelector,!0)&&n?this.maskTextFn?this.maskTextFn(n,em(r.target)):n.replace(/[\S]/g,"*"):n,node:r.target});break}case"attributes":{let n=r.target,o=r.attributeName,t=r.target.getAttribute(o);if(o==="value"){let s=Tn(n);t=Dn({element:n,maskInputOptions:this.maskInputOptions,tagName:n.tagName,type:s,value:t,maskInputFn:this.maskInputFn})}if(xe(r.target,this.blockClass,this.blockSelector,!1)||t===r.oldValue)return;let i=this.attributeMap.get(r.target);if(n.tagName==="IFRAME"&&o==="src"&&!this.keepIframeSrcFn(t))if(!n.contentDocument)o="rr_src";else return;if(i||(i={node:r.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(r.target,i)),o==="type"&&n.tagName==="INPUT"&&(r.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!zh(n.tagName,o))if(i.attributes[o]=Nh(this.doc,_t(n.tagName),_t(o),t),o==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}let s=this.unattachedDoc.createElement("span");r.oldValue&&s.setAttribute("style",r.oldValue);for(let a of Array.from(n.style)){let c=n.style.getPropertyValue(a),u=n.style.getPropertyPriority(a);c!==s.style.getPropertyValue(a)||u!==s.style.getPropertyPriority(a)?u===""?i.styleDiff[a]=c:i.styleDiff[a]=[c,u]:i._unchangedStyles[a]=[c,u]}for(let a of Array.from(s.style))n.style.getPropertyValue(a)===""&&(i.styleDiff[a]=!1)}else o==="open"&&n.tagName==="DIALOG"&&(n.matches("dialog:modal")?i.attributes.rr_open_mode="modal":i.attributes.rr_open_mode="non-modal");break}case"childList":{if(xe(r.target,this.blockClass,this.blockSelector,!0))return;if(r.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(r.target);return}r.addedNodes.forEach(n=>this.genAdds(n,r.target)),r.removedNodes.forEach(n=>{let o=this.mirror.getId(n),t=$r(r.target)?this.mirror.getId(V.host(r.target)):this.mirror.getId(r.target);xe(r.target,this.blockClass,this.blockSelector,!1)||Js(n,this.mirror,this.slimDOMOptions)||!Xw(n,this.mirror)||(this.addedSet.has(n)?(na(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(r.target)&&o===-1||tm(r.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[hh(o,t)]?na(this.movedSet,n):(this.removes.push({parentId:t,id:o,isShadow:$r(r.target)&&kr(r.target)?!0:void 0}),ex(n,this.removesSubTreeCache))),this.mapRemoves.push(n))});break}}}),M(this,"genAdds",(r,n)=>{if(!this.processedNodeManager.inOtherBuffer(r,this)&&!(this.addedSet.has(r)||this.movedSet.has(r))){if(this.mirror.hasNode(r)){if(Js(r,this.mirror,this.slimDOMOptions))return;this.movedSet.add(r);let o=null;n&&this.mirror.hasNode(n)&&(o=this.mirror.getId(n)),o&&o!==-1&&(this.movedMap[hh(this.mirror.getId(r),o)]=!0)}else this.addedSet.add(r),this.droppedSet.delete(r);xe(r,this.blockClass,this.blockSelector,!1)||(V.childNodes(r).forEach(o=>this.genAdds(o)),Qs(r)&&V.childNodes(V.shadowRoot(r)).forEach(o=>{this.processedNodeManager.add(o,this),this.genAdds(o,r)}))}})}init(r){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(n=>{this[n]=r[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}};function na(e,r){e.delete(r),V.childNodes(r).forEach(n=>na(e,n))}function ex(e,r){let n=[e];for(;n.length;){let o=n.pop();r.has(o)||(r.add(o),V.childNodes(o).forEach(t=>n.push(t)))}}function mh(e,r,n){return e.size===0?!1:tx(e,r)}function tx(e,r,n){let o=V.parentNode(r);return o?e.has(o):!1}function gh(e,r){return e.size===0?!1:am(e,r)}function am(e,r){let n=V.parentNode(r);return n?e.has(n)?!0:am(e,n):!1}var Ir;function rx(e){Ir=e}function nx(){Ir=void 0}var G=e=>Ir?(...n)=>{try{return e(...n)}catch(o){if(Ir&&Ir(o)===!0)return;throw o}}:e,xt=[];function Dr(e){try{if("composedPath"in e){let r=e.composedPath();if(r.length)return r[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function lm(e,r){let n=new ra;xt.push(n),n.init(e);let[o,t]=Xh(),i=new o(G(n.processMutations.bind(n)));return i.observe(r,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),[i,t]}function ix({mousemoveCb:e,sampling:r,doc:n,mirror:o}){if(r.mousemove===!1)return()=>{};let t=typeof r.mousemove=="number"?r.mousemove:50,i=typeof r.mousemoveCallback=="number"?r.mousemoveCallback:500,s=[],a,c=Or(G(p=>{let f=Date.now()-a;e(s.map(d=>(d.timeOffset-=f,d)),p),s=[],a=null}),i),u=G(Or(G(p=>{let f=Dr(p),{clientX:d,clientY:m}=Ys(p)?p.changedTouches[0]:p;a||(a=Cr()),s.push({x:d,y:m,id:o.getId(f),timeOffset:Cr()-a}),c(typeof DragEvent<"u"&&p instanceof DragEvent?q.Drag:p instanceof MouseEvent?q.MouseMove:q.TouchMove)}),t,{trailing:!1})),l=[we("mousemove",u,n),we("touchmove",u,n),we("drag",u,n)];return G(()=>{l.forEach(p=>p())})}function ox({mouseInteractionCb:e,doc:r,mirror:n,blockClass:o,blockSelector:t,sampling:i}){if(i.mouseInteraction===!1)return()=>{};let s=i.mouseInteraction===!0||i.mouseInteraction===void 0?{}:i.mouseInteraction,a=[],c=null,u=l=>p=>{let f=Dr(p);if(xe(f,o,t,!0))return;let d=null,m=l;if("pointerType"in p){switch(p.pointerType){case"mouse":d=Ye.Mouse;break;case"touch":d=Ye.Touch;break;case"pen":d=Ye.Pen;break}d===Ye.Touch?Ie[l]===Ie.MouseDown?m="TouchStart":Ie[l]===Ie.MouseUp&&(m="TouchEnd"):Ye.Pen}else Ys(p)&&(d=Ye.Touch);d!==null?(c=d,(m.startsWith("Touch")&&d===Ye.Touch||m.startsWith("Mouse")&&d===Ye.Mouse)&&(d=null)):Ie[l]===Ie.Click&&(d=c,c=null);let h=Ys(p)?p.changedTouches[0]:p;if(!h)return;let g=n.getId(f),{clientX:x,clientY:b}=h;G(e)({type:Ie[m],id:g,x,y:b,...d!==null&&{pointerType:d}})};return Object.keys(Ie).filter(l=>Number.isNaN(Number(l))&&!l.endsWith("_Departed")&&s[l]!==!1).forEach(l=>{let p=_t(l),f=u(l);if(window.PointerEvent)switch(Ie[l]){case Ie.MouseDown:case Ie.MouseUp:p=p.replace("mouse","pointer");break;case Ie.TouchStart:case Ie.TouchEnd:return}a.push(we(p,f,r))}),G(()=>{a.forEach(l=>l())})}function cm({scrollCb:e,doc:r,mirror:n,blockClass:o,blockSelector:t,sampling:i}){let s=G(Or(G(a=>{let c=Dr(a);if(!c||xe(c,o,t,!0))return;let u=n.getId(c);if(c===r&&r.defaultView){let l=Kh(r.defaultView);e({id:u,x:l.left,y:l.top})}else e({id:u,x:c.scrollLeft,y:c.scrollTop})}),i.scroll||100));return we("scroll",s,r)}function sx({viewportResizeCb:e},{win:r}){let n=-1,o=-1,t=G(Or(G(()=>{let i=Yh(),s=Qh();(n!==i||o!==s)&&(e({width:Number(s),height:Number(i)}),n=i,o=s)}),200));return we("resize",t,r)}var ax=["INPUT","TEXTAREA","SELECT"],vh=new WeakMap;function lx({inputCb:e,doc:r,mirror:n,blockClass:o,blockSelector:t,ignoreClass:i,ignoreSelector:s,maskInputOptions:a,maskInputFn:c,sampling:u,userTriggeredOnInput:l}){function p(b){let y=Dr(b),_=b.isTrusted,v=y&&y.tagName;if(y&&v==="OPTION"&&(y=V.parentElement(y)),!y||!v||ax.indexOf(v)<0||xe(y,o,t,!0)||y.classList.contains(i)||s&&y.matches(s))return;let w=y.value,S=!1,C=Tn(y)||"";C==="radio"||C==="checkbox"?S=y.checked:(a[v.toLowerCase()]||a[C])&&(w=Dn({element:y,maskInputOptions:a,tagName:v,type:C,value:w,maskInputFn:c})),f(y,l?{text:w,isChecked:S,userTriggered:_}:{text:w,isChecked:S});let R=y.name;C==="radio"&&R&&S&&r.querySelectorAll(`input[type="radio"][name="${R}"]`).forEach(O=>{if(O!==y){let B=O.value;f(O,l?{text:B,isChecked:!S,userTriggered:!1}:{text:B,isChecked:!S})}})}function f(b,y){let _=vh.get(b);if(!_||_.text!==y.text||_.isChecked!==y.isChecked){vh.set(b,y);let v=n.getId(b);G(e)({...y,id:v})}}let m=(u.input==="last"?["change"]:["input","change"]).map(b=>we(b,G(p),r)),h=r.defaultView;if(!h)return()=>{m.forEach(b=>b())};let g=h.Object.getOwnPropertyDescriptor(h.HTMLInputElement.prototype,"value"),x=[[h.HTMLInputElement.prototype,"value"],[h.HTMLInputElement.prototype,"checked"],[h.HTMLSelectElement.prototype,"value"],[h.HTMLTextAreaElement.prototype,"value"],[h.HTMLSelectElement.prototype,"selectedIndex"],[h.HTMLOptionElement.prototype,"selected"]];return g&&g.set&&m.push(...x.map(b=>Hn(b[0],b[1],{set(){G(p)({target:this,isTrusted:!1})}},!1,h))),G(()=>{m.forEach(b=>b())})}function An(e){let r=[];function n(o,t){if(En("CSSGroupingRule")&&o.parentRule instanceof CSSGroupingRule||En("CSSMediaRule")&&o.parentRule instanceof CSSMediaRule||En("CSSSupportsRule")&&o.parentRule instanceof CSSSupportsRule||En("CSSConditionRule")&&o.parentRule instanceof CSSConditionRule){let s=Array.from(o.parentRule.cssRules).indexOf(o);return t.unshift(s),n(o.parentRule,t)}else if(o.parentStyleSheet){let s=Array.from(o.parentStyleSheet.cssRules).indexOf(o);t.unshift(s)}return t}return n(e,r)}function lt(e,r,n){let o,t;return e?(e.ownerNode?o=r.getId(e.ownerNode):t=n.getId(e),{styleId:t,id:o}):{}}function cx({styleSheetRuleCb:e,mirror:r,stylesheetManager:n},{win:o}){if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return()=>{};let t=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=new Proxy(t,{apply:G((l,p,f)=>{let[d,m]=f,{id:h,styleId:g}=lt(p,r,n.styleMirror);return(h&&h!==-1||g&&g!==-1)&&e({id:h,styleId:g,adds:[{rule:d,index:m}]}),l.apply(p,f)})}),o.CSSStyleSheet.prototype.addRule=function(l,p,f=this.cssRules.length){let d=`${l} { ${p} }`;return o.CSSStyleSheet.prototype.insertRule.apply(this,[d,f])};let i=o.CSSStyleSheet.prototype.deleteRule;o.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:G((l,p,f)=>{let[d]=f,{id:m,styleId:h}=lt(p,r,n.styleMirror);return(m&&m!==-1||h&&h!==-1)&&e({id:m,styleId:h,removes:[{index:d}]}),l.apply(p,f)})}),o.CSSStyleSheet.prototype.removeRule=function(l){return o.CSSStyleSheet.prototype.deleteRule.apply(this,[l])};let s;o.CSSStyleSheet.prototype.replace&&(s=o.CSSStyleSheet.prototype.replace,o.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:G((l,p,f)=>{let[d]=f,{id:m,styleId:h}=lt(p,r,n.styleMirror);return(m&&m!==-1||h&&h!==-1)&&e({id:m,styleId:h,replace:d}),l.apply(p,f)})}));let a;o.CSSStyleSheet.prototype.replaceSync&&(a=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:G((l,p,f)=>{let[d]=f,{id:m,styleId:h}=lt(p,r,n.styleMirror);return(m&&m!==-1||h&&h!==-1)&&e({id:m,styleId:h,replaceSync:d}),l.apply(p,f)})}));let c={};Cn("CSSGroupingRule")?c.CSSGroupingRule=o.CSSGroupingRule:(Cn("CSSMediaRule")&&(c.CSSMediaRule=o.CSSMediaRule),Cn("CSSConditionRule")&&(c.CSSConditionRule=o.CSSConditionRule),Cn("CSSSupportsRule")&&(c.CSSSupportsRule=o.CSSSupportsRule));let u={};return Object.entries(c).forEach(([l,p])=>{u[l]={insertRule:p.prototype.insertRule,deleteRule:p.prototype.deleteRule},p.prototype.insertRule=new Proxy(u[l].insertRule,{apply:G((f,d,m)=>{let[h,g]=m,{id:x,styleId:b}=lt(d.parentStyleSheet,r,n.styleMirror);return(x&&x!==-1||b&&b!==-1)&&e({id:x,styleId:b,adds:[{rule:h,index:[...An(d),g||0]}]}),f.apply(d,m)})}),p.prototype.deleteRule=new Proxy(u[l].deleteRule,{apply:G((f,d,m)=>{let[h]=m,{id:g,styleId:x}=lt(d.parentStyleSheet,r,n.styleMirror);return(g&&g!==-1||x&&x!==-1)&&e({id:g,styleId:x,removes:[{index:[...An(d),h]}]}),f.apply(d,m)})})}),G(()=>{o.CSSStyleSheet.prototype.insertRule=t,o.CSSStyleSheet.prototype.deleteRule=i,s&&(o.CSSStyleSheet.prototype.replace=s),a&&(o.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach(([l,p])=>{p.prototype.insertRule=u[l].insertRule,p.prototype.deleteRule=u[l].deleteRule})})}function um({mirror:e,stylesheetManager:r},n){var o,t,i;let s=null;n.nodeName==="#document"?s=e.getId(n):s=e.getId(V.host(n));let a=n.nodeName==="#document"?(o=n.defaultView)==null?void 0:o.Document:(i=(t=n.ownerDocument)==null?void 0:t.defaultView)==null?void 0:i.ShadowRoot,c=a?.prototype?Object.getOwnPropertyDescriptor(a?.prototype,"adoptedStyleSheets"):void 0;return s===null||s===-1||!a||!c?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get(){var u;return(u=c.get)==null?void 0:u.call(this)},set(u){var l;let p=(l=c.set)==null?void 0:l.call(this,u);if(s!==null&&s!==-1)try{r.adoptStyleSheets(u,s)}catch{}return p}}),G(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})}))}function ux({styleDeclarationCb:e,mirror:r,ignoreCSSAttributes:n,stylesheetManager:o},{win:t}){let i=t.CSSStyleDeclaration.prototype.setProperty;t.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:G((a,c,u)=>{var l;let[p,f,d]=u;if(n.has(p))return i.apply(c,[p,f,d]);let{id:m,styleId:h}=lt((l=c.parentRule)==null?void 0:l.parentStyleSheet,r,o.styleMirror);return(m&&m!==-1||h&&h!==-1)&&e({id:m,styleId:h,set:{property:p,value:f,priority:d},index:An(c.parentRule)}),a.apply(c,u)})});let s=t.CSSStyleDeclaration.prototype.removeProperty;return t.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:G((a,c,u)=>{var l;let[p]=u;if(n.has(p))return s.apply(c,[p]);let{id:f,styleId:d}=lt((l=c.parentRule)==null?void 0:l.parentStyleSheet,r,o.styleMirror);return(f&&f!==-1||d&&d!==-1)&&e({id:f,styleId:d,remove:{property:p},index:An(c.parentRule)}),a.apply(c,u)})}),G(()=>{t.CSSStyleDeclaration.prototype.setProperty=i,t.CSSStyleDeclaration.prototype.removeProperty=s})}function dx({mediaInteractionCb:e,blockClass:r,blockSelector:n,mirror:o,sampling:t,doc:i}){let s=G(c=>Or(G(u=>{let l=Dr(u);if(!l||xe(l,r,n,!0))return;let{currentTime:p,volume:f,muted:d,playbackRate:m,loop:h}=l;e({type:c,id:o.getId(l),currentTime:p,volume:f,muted:d,playbackRate:m,loop:h})}),t.media||500)),a=[we("play",s(Mt.Play),i),we("pause",s(Mt.Pause),i),we("seeked",s(Mt.Seeked),i),we("volumechange",s(Mt.VolumeChange),i),we("ratechange",s(Mt.RateChange),i)];return G(()=>{a.forEach(c=>c())})}function fx({fontCb:e,doc:r}){let n=r.defaultView;if(!n)return()=>{};let o=[],t=new WeakMap,i=n.FontFace;n.FontFace=function(c,u,l){let p=new i(c,u,l);return t.set(p,{family:c,buffer:typeof u!="string",descriptors:l,fontSource:typeof u=="string"?u:JSON.stringify(Array.from(new Uint8Array(u)))}),p};let s=kt(r.fonts,"add",function(a){return function(c){return setTimeout(G(()=>{let u=t.get(c);u&&(e(u),t.delete(c))}),0),a.apply(this,[c])}});return o.push(()=>{n.FontFace=i}),o.push(s),G(()=>{o.forEach(a=>a())})}function px(e){let{doc:r,mirror:n,blockClass:o,blockSelector:t,selectionCb:i}=e,s=!0,a=G(()=>{let c=r.getSelection();if(!c||s&&c?.isCollapsed)return;s=c.isCollapsed||!1;let u=[],l=c.rangeCount||0;for(let p=0;p<l;p++){let f=c.getRangeAt(p),{startContainer:d,startOffset:m,endContainer:h,endOffset:g}=f;xe(d,o,t,!0)||xe(h,o,t,!0)||u.push({start:n.getId(d),startOffset:m,end:n.getId(h),endOffset:g})}i({ranges:u})});return a(),we("selectionchange",a)}function hx({doc:e,customElementCb:r}){let n=e.defaultView;return!n||!n.customElements?()=>{}:kt(n.customElements,"define",function(t){return function(i,s,a){try{r({define:{name:i}})}catch{console.warn(`Custom element callback failed for ${i}`)}return t.apply(this,[i,s,a])}})}function mx(e,r){let{mutationCb:n,mousemoveCb:o,mouseInteractionCb:t,scrollCb:i,viewportResizeCb:s,inputCb:a,mediaInteractionCb:c,styleSheetRuleCb:u,styleDeclarationCb:l,canvasMutationCb:p,fontCb:f,selectionCb:d,customElementCb:m}=e;e.mutationCb=(...h)=>{r.mutation&&r.mutation(...h),n(...h)},e.mousemoveCb=(...h)=>{r.mousemove&&r.mousemove(...h),o(...h)},e.mouseInteractionCb=(...h)=>{r.mouseInteraction&&r.mouseInteraction(...h),t(...h)},e.scrollCb=(...h)=>{r.scroll&&r.scroll(...h),i(...h)},e.viewportResizeCb=(...h)=>{r.viewportResize&&r.viewportResize(...h),s(...h)},e.inputCb=(...h)=>{r.input&&r.input(...h),a(...h)},e.mediaInteractionCb=(...h)=>{r.mediaInteaction&&r.mediaInteaction(...h),c(...h)},e.styleSheetRuleCb=(...h)=>{r.styleSheetRule&&r.styleSheetRule(...h),u(...h)},e.styleDeclarationCb=(...h)=>{r.styleDeclaration&&r.styleDeclaration(...h),l(...h)},e.canvasMutationCb=(...h)=>{r.canvasMutation&&r.canvasMutation(...h),p(...h)},e.fontCb=(...h)=>{r.font&&r.font(...h),f(...h)},e.selectionCb=(...h)=>{r.selection&&r.selection(...h),d(...h)},e.customElementCb=(...h)=>{r.customElement&&r.customElement(...h),m(...h)}}function gx(e,r={}){let n=e.doc.defaultView;if(!n)return()=>{};mx(e,r);let o,t=()=>{};e.recordDOM&&([o,t]=lm(e,e.doc));let i=ix(e),s=ox(e),a=cm(e),c=sx(e,{win:n}),u=lx(e),l=dx(e),p=()=>{},f=()=>{},d=()=>{},m=()=>{};e.recordDOM&&(p=cx(e,{win:n}),f=um(e,e.doc),d=ux(e,{win:n}),e.collectFonts&&(m=fx(e)));let h=px(e),g=hx(e),x=[];for(let b of e.plugins)x.push(b.observer(b.callback,n,b.options));return G(()=>{xt.forEach(b=>b.reset()),o?.disconnect(),t(),i(),s(),a(),c(),u(),l(),p(),f(),d(),m(),h(),g(),x.forEach(b=>b())})}function En(e){return typeof window[e]<"u"}function Cn(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}var Mn=class{constructor(r){M(this,"iframeIdToRemoteIdMap",new WeakMap),M(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=r}getId(r,n,o,t){let i=o||this.getIdToRemoteIdMap(r),s=t||this.getRemoteIdToIdMap(r),a=i.get(n);return a||(a=this.generateIdFn(),i.set(n,a),s.set(a,n)),a}getIds(r,n){let o=this.getIdToRemoteIdMap(r),t=this.getRemoteIdToIdMap(r);return n.map(i=>this.getId(r,i,o,t))}getRemoteId(r,n,o){let t=o||this.getRemoteIdToIdMap(r);if(typeof n!="number")return n;let i=t.get(n);return i||-1}getRemoteIds(r,n){let o=this.getRemoteIdToIdMap(r);return n.map(t=>this.getRemoteId(r,t,o))}reset(r){if(!r){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(r),this.iframeRemoteIdToIdMap.delete(r)}getIdToRemoteIdMap(r){let n=this.iframeIdToRemoteIdMap.get(r);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(r,n)),n}getRemoteIdToIdMap(r){let n=this.iframeRemoteIdToIdMap.get(r);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(r,n)),n}},ia=class{constructor(r){M(this,"iframes",new WeakMap),M(this,"crossOriginIframeMap",new WeakMap),M(this,"crossOriginIframeMirror",new Mn(Oh)),M(this,"crossOriginIframeStyleMirror"),M(this,"crossOriginIframeRootIdMap",new WeakMap),M(this,"mirror"),M(this,"mutationCb"),M(this,"wrappedEmit"),M(this,"loadListener"),M(this,"stylesheetManager"),M(this,"recordCrossOriginIframes"),this.mutationCb=r.mutationCb,this.wrappedEmit=r.wrappedEmit,this.stylesheetManager=r.stylesheetManager,this.recordCrossOriginIframes=r.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Mn(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=r.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(r){this.iframes.set(r,!0),r.contentWindow&&this.crossOriginIframeMap.set(r.contentWindow,r)}addLoadListener(r){this.loadListener=r}attachIframe(r,n){var o,t;this.mutationCb({adds:[{parentId:this.mirror.getId(r),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((o=r.contentWindow)==null||o.addEventListener("message",this.handleMessage.bind(this))),(t=this.loadListener)==null||t.call(this,r),r.contentDocument&&r.contentDocument.adoptedStyleSheets&&r.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.contentDocument.adoptedStyleSheets,this.mirror.getId(r.contentDocument))}handleMessage(r){let n=r;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!r.source)return;let t=this.crossOriginIframeMap.get(r.source);if(!t)return;let i=this.transformCrossOriginEvent(t,n.data.event);i&&this.wrappedEmit(i,n.data.isCheckout)}transformCrossOriginEvent(r,n){var o;switch(n.type){case J.FullSnapshot:{this.crossOriginIframeMirror.reset(r),this.crossOriginIframeStyleMirror.reset(r),this.replaceIdOnNode(n.data.node,r);let t=n.data.node.id;return this.crossOriginIframeRootIdMap.set(r,t),this.patchRootIdOnNode(n.data.node,t),{timestamp:n.timestamp,type:J.IncrementalSnapshot,data:{source:q.Mutation,adds:[{parentId:this.mirror.getId(r),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case J.Meta:case J.Load:case J.DomContentLoaded:return!1;case J.Plugin:return n;case J.Custom:return this.replaceIds(n.data.payload,r,["id","parentId","previousId","nextId"]),n;case J.IncrementalSnapshot:switch(n.data.source){case q.Mutation:return n.data.adds.forEach(t=>{this.replaceIds(t,r,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,r);let i=this.crossOriginIframeRootIdMap.get(r);i&&this.patchRootIdOnNode(t.node,i)}),n.data.removes.forEach(t=>{this.replaceIds(t,r,["parentId","id"])}),n.data.attributes.forEach(t=>{this.replaceIds(t,r,["id"])}),n.data.texts.forEach(t=>{this.replaceIds(t,r,["id"])}),n;case q.Drag:case q.TouchMove:case q.MouseMove:return n.data.positions.forEach(t=>{this.replaceIds(t,r,["id"])}),n;case q.ViewportResize:return!1;case q.MediaInteraction:case q.MouseInteraction:case q.Scroll:case q.CanvasMutation:case q.Input:return this.replaceIds(n.data,r,["id"]),n;case q.StyleSheetRule:case q.StyleDeclaration:return this.replaceIds(n.data,r,["id"]),this.replaceStyleIds(n.data,r,["styleId"]),n;case q.Font:return n;case q.Selection:return n.data.ranges.forEach(t=>{this.replaceIds(t,r,["start","end"])}),n;case q.AdoptedStyleSheet:return this.replaceIds(n.data,r,["id"]),this.replaceStyleIds(n.data,r,["styleIds"]),(o=n.data.styles)==null||o.forEach(t=>{this.replaceStyleIds(t,r,["styleId"])}),n}}return!1}replace(r,n,o,t){for(let i of t)!Array.isArray(n[i])&&typeof n[i]!="number"||(Array.isArray(n[i])?n[i]=r.getIds(o,n[i]):n[i]=r.getId(o,n[i]));return n}replaceIds(r,n,o){return this.replace(this.crossOriginIframeMirror,r,n,o)}replaceStyleIds(r,n,o){return this.replace(this.crossOriginIframeStyleMirror,r,n,o)}replaceIdOnNode(r,n){this.replaceIds(r,n,["id","rootId"]),"childNodes"in r&&r.childNodes.forEach(o=>{this.replaceIdOnNode(o,n)})}patchRootIdOnNode(r,n){r.type!==sm.Document&&!r.rootId&&(r.rootId=n),"childNodes"in r&&r.childNodes.forEach(o=>{this.patchRootIdOnNode(o,n)})}},oa=class{constructor(r){M(this,"shadowDoms",new WeakSet),M(this,"mutationCb"),M(this,"scrollCb"),M(this,"bypassOptions"),M(this,"mirror"),M(this,"restoreHandlers",[]),this.mutationCb=r.mutationCb,this.scrollCb=r.scrollCb,this.bypassOptions=r.bypassOptions,this.mirror=r.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(r,n){if(!kr(r)||this.shadowDoms.has(r))return;this.shadowDoms.add(r);let[o]=lm({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},r);this.restoreHandlers.push(()=>o.disconnect()),this.restoreHandlers.push(cm({...this.bypassOptions,scrollCb:this.scrollCb,doc:r,mirror:this.mirror})),setTimeout(()=>{r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(V.host(r))),this.restoreHandlers.push(um({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},r))},0)}observeAttachShadow(r){!r.contentWindow||!r.contentDocument||this.patchAttachShadow(r.contentWindow.Element,r.contentDocument)}patchAttachShadow(r,n){let o=this;this.restoreHandlers.push(kt(r.prototype,"attachShadow",function(t){return function(i){let s=t.call(this,i),a=V.shadowRoot(this);return a&&om(this)&&o.addShadowRoot(a,n),s}}))}reset(){this.restoreHandlers.forEach(r=>{try{r()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}},Lt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vx=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(Sr=0;Sr<Lt.length;Sr++)vx[Lt.charCodeAt(Sr)]=Sr;var Sr,yx=function(e){var r=new Uint8Array(e),n,o=r.length,t="";for(n=0;n<o;n+=3)t+=Lt[r[n]>>2],t+=Lt[(r[n]&3)<<4|r[n+1]>>4],t+=Lt[(r[n+1]&15)<<2|r[n+2]>>6],t+=Lt[r[n+2]&63];return o%3===2?t=t.substring(0,t.length-1)+"=":o%3===1&&(t=t.substring(0,t.length-2)+"=="),t};var yh=new Map;function bx(e,r){let n=yh.get(e);return n||(n=new Map,yh.set(e,n)),n.has(r)||n.set(r,[]),n.get(r)}var dm=(e,r,n)=>{if(!e||!(pm(e,r)||typeof e=="object"))return;let o=e.constructor.name,t=bx(n,o),i=t.indexOf(e);return i===-1&&(i=t.length,t.push(e)),i};function On(e,r,n){if(e instanceof Array)return e.map(o=>On(o,r,n));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){let o=e.constructor.name,t=yx(e);return{rr_type:o,base64:t}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[On(e.buffer,r,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){let o=e.constructor.name,{src:t}=e;return{rr_type:o,src:t}}else if(e instanceof HTMLCanvasElement){let o="HTMLImageElement",t=e.toDataURL();return{rr_type:o,src:t}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[On(e.data,r,n),e.width,e.height]};if(pm(e,r)||typeof e=="object"){let o=e.constructor.name,t=dm(e,r,n);return{rr_type:o,index:t}}}}return e}var fm=(e,r,n)=>e.map(o=>On(o,r,n)),pm=(e,r)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(t=>typeof r[t]=="function").find(t=>e instanceof r[t]);function wx(e,r,n,o){let t=[],i=Object.getOwnPropertyNames(r.CanvasRenderingContext2D.prototype);for(let s of i)try{if(typeof r.CanvasRenderingContext2D.prototype[s]!="function")continue;let a=kt(r.CanvasRenderingContext2D.prototype,s,function(c){return function(...u){return xe(this.canvas,n,o,!0)||setTimeout(()=>{let l=fm(u,r,this);e(this.canvas,{type:Ft["2D"],property:s,args:l})},0),c.apply(this,u)}});t.push(a)}catch{let a=Hn(r.CanvasRenderingContext2D.prototype,s,{set(c){e(this.canvas,{type:Ft["2D"],property:s,args:[c],setter:!0})}});t.push(a)}return()=>{t.forEach(s=>s())}}function xx(e){return e==="experimental-webgl"?"webgl":e}function bh(e,r,n,o){let t=[];try{let i=kt(e.HTMLCanvasElement.prototype,"getContext",function(s){return function(a,...c){if(!xe(this,r,n,!0)){let u=xx(a);if("__context"in this||(this.__context=u),o&&["webgl","webgl2"].includes(u))if(c[0]&&typeof c[0]=="object"){let l=c[0];l.preserveDrawingBuffer||(l.preserveDrawingBuffer=!0)}else c.splice(0,1,{preserveDrawingBuffer:!0})}return s.apply(this,[a,...c])}});t.push(i)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{t.forEach(i=>i())}}function wh(e,r,n,o,t,i){let s=[],a=Object.getOwnPropertyNames(e);for(let c of a)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(c))try{if(typeof e[c]!="function")continue;let u=kt(e,c,function(l){return function(...p){let f=l.apply(this,p);if(dm(f,i,this),"tagName"in this.canvas&&!xe(this.canvas,o,t,!0)){let d=fm(p,i,this),m={type:r,property:c,args:d};n(this.canvas,m)}return f}});s.push(u)}catch{let u=Hn(e,c,{set(l){n(this.canvas,{type:r,property:c,args:[l],setter:!0})}});s.push(u)}return s}function _x(e,r,n,o){let t=[];return typeof r.WebGLRenderingContext<"u"&&t.push(...wh(r.WebGLRenderingContext.prototype,Ft.WebGL,e,n,o,r)),typeof r.WebGL2RenderingContext<"u"&&t.push(...wh(r.WebGL2RenderingContext.prototype,Ft.WebGL2,e,n,o,r)),()=>{t.forEach(i=>i())}}var hm=`(function() {
|
|
53
|
+
or you can use record.mirror to access the mirror instance during recording.`,fh={map:{},getId(){return console.error(At),-1},getNode(){return console.error(At),null},removeNodeFromMap(){console.error(At)},has(){return console.error(At),!1},reset(){console.error(At)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(fh=new Proxy(fh,{get(e,r,n){return r==="map"&&console.error(At),Reflect.get(e,r,n)}}));function Or(e,r,n={}){let o=null,t=0;return function(...i){let s=Date.now();!t&&n.leading===!1&&(t=s);let a=r-(s-t),c=this;a<=0||a>r?(o&&(clearTimeout(o),o=null),t=s,e.apply(c,i)):!o&&n.trailing!==!1&&(o=setTimeout(()=>{t=n.leading===!1?0:Date.now(),o=null,e.apply(c,i)},a))}}function Hn(e,r,n,o,t=window){let i=t.Object.getOwnPropertyDescriptor(e,r);return t.Object.defineProperty(e,r,o?n:{set(s){setTimeout(()=>{n.set.call(this,s)},0),i&&i.set&&i.set.call(this,s)}}),()=>Hn(e,r,i||{},!0)}function Kh(e){var r,n,o,t;let i=e.document;return{left:i.scrollingElement?i.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:i.documentElement.scrollLeft||i?.body&&((r=V.parentElement(i.body))==null?void 0:r.scrollLeft)||((n=i?.body)==null?void 0:n.scrollLeft)||0,top:i.scrollingElement?i.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:i?.documentElement.scrollTop||i?.body&&((o=V.parentElement(i.body))==null?void 0:o.scrollTop)||((t=i?.body)==null?void 0:t.scrollTop)||0}}function Yh(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Qh(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function em(e){return e?e.nodeType===e.ELEMENT_NODE?e:V.parentElement(e):null}function xe(e,r,n,o){if(!e)return!1;let t=em(e);if(!t)return!1;try{if(typeof r=="string"){if(t.classList.contains(r)||o&&t.closest("."+r)!==null)return!0}else if(Pn(t,r,o))return!0}catch{}return!!(n&&(t.matches(n)||o&&t.closest(n)!==null))}function Xw(e,r){return r.getId(e)!==-1}function Js(e,r,n){return e.tagName==="TITLE"&&n.headTitleMutations?!0:r.getId(e)===Er}function tm(e,r){if($r(e))return!1;let n=r.getId(e);if(!r.has(n))return!0;let o=V.parentNode(e);return o&&o.nodeType===e.DOCUMENT_NODE?!1:o?tm(o,r):!0}function Ys(e){return!!e.changedTouches}function Kw(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function rm(e,r){return!!(e.nodeName==="IFRAME"&&r.getMeta(e))}function nm(e,r){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&r.getMeta(e))}function Qs(e){return e?e instanceof Ks&&"shadowRoot"in e?!!e.shadowRoot:!!V.shadowRoot(e):!1}var ea=class{constructor(){M(this,"id",1),M(this,"styleIDMap",new WeakMap),M(this,"idStyleMap",new Map)}getId(r){return this.styleIDMap.get(r)??-1}has(r){return this.styleIDMap.has(r)}add(r,n){if(this.has(r))return this.getId(r);let o;return n===void 0?o=this.id++:o=n,this.styleIDMap.set(r,o),this.idStyleMap.set(o,r),o}getStyle(r){return this.idStyleMap.get(r)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function im(e){var r;let n=null;return"getRootNode"in e&&((r=V.getRootNode(e))==null?void 0:r.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&V.host(V.getRootNode(e))&&(n=V.host(V.getRootNode(e))),n}function Yw(e){let r=e,n;for(;n=im(r);)r=n;return r}function Qw(e){let r=V.ownerDocument(e);if(!r)return!1;let n=Yw(e);return V.contains(r,n)}function om(e){let r=V.ownerDocument(e);return r?V.contains(r,e)||Qw(e):!1}var J=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e[e.Asset=7]="Asset",e))(J||{}),q=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(q||{}),Ie=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(Ie||{}),Ye=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Ye||{}),Ft=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Ft||{}),Mt=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(Mt||{});var sm=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(sm||{});function ph(e){return"__ln"in e}var ta=class{constructor(){M(this,"length",0),M(this,"head",null),M(this,"tail",null)}get(r){if(r>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let o=0;o<r;o++)n=n?.next||null;return n}addNode(r){let n={value:r,previous:null,next:null};if(r.__ln=n,r.previousSibling&&ph(r.previousSibling)){let o=r.previousSibling.__ln.next;n.next=o,n.previous=r.previousSibling.__ln,r.previousSibling.__ln.next=n,o&&(o.previous=n)}else if(r.nextSibling&&ph(r.nextSibling)&&r.nextSibling.__ln.previous){let o=r.nextSibling.__ln.previous;n.previous=o,n.next=r.nextSibling.__ln,r.nextSibling.__ln.previous=n,o&&(o.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(r){let n=r.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),r.__ln&&delete r.__ln,this.length--)}},hh=(e,r)=>`${e}@${r}`,ra=class{constructor(){M(this,"frozen",!1),M(this,"locked",!1),M(this,"texts",[]),M(this,"attributes",[]),M(this,"attributeMap",new WeakMap),M(this,"removes",[]),M(this,"mapRemoves",[]),M(this,"movedMap",{}),M(this,"addedSet",new Set),M(this,"movedSet",new Set),M(this,"droppedSet",new Set),M(this,"removesSubTreeCache",new Set),M(this,"mutationCb"),M(this,"blockClass"),M(this,"blockSelector"),M(this,"maskTextClass"),M(this,"maskTextSelector"),M(this,"inlineStylesheet"),M(this,"maskInputOptions"),M(this,"maskTextFn"),M(this,"maskInputFn"),M(this,"keepIframeSrcFn"),M(this,"recordCanvas"),M(this,"inlineImages"),M(this,"slimDOMOptions"),M(this,"dataURLOptions"),M(this,"doc"),M(this,"mirror"),M(this,"iframeManager"),M(this,"stylesheetManager"),M(this,"shadowDomManager"),M(this,"canvasManager"),M(this,"processedNodeManager"),M(this,"unattachedDoc"),M(this,"processMutations",r=>{r.forEach(this.processMutation),this.emit()}),M(this,"emit",()=>{if(this.frozen||this.locked)return;let r=[],n=new Set,o=new ta,t=c=>{let u=c,l=Er;for(;l===Er;)u=u&&u.nextSibling,l=u&&this.mirror.getId(u);return l},i=c=>{let u=V.parentNode(c);if(!u||!om(c))return;let l=!1;if(c.nodeType===Node.TEXT_NODE){let m=u.tagName;if(m==="TEXTAREA")return;m==="STYLE"&&this.addedSet.has(u)&&(l=!0)}let p=$r(u)?this.mirror.getId(im(c)):this.mirror.getId(u),f=t(c);if(p===-1||f===-1)return o.addNode(c);let d=jt(c,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:m=>{rm(m,this.mirror)&&this.iframeManager.addIframe(m),nm(m,this.mirror)&&this.stylesheetManager.trackLinkElement(m),Qs(c)&&this.shadowDomManager.addShadowRoot(V.shadowRoot(c),this.doc)},onIframeLoad:(m,h)=>{this.iframeManager.attachIframe(m,h),this.shadowDomManager.observeAttachShadow(m)},onStylesheetLoad:(m,h)=>{this.stylesheetManager.attachLinkElement(m,h)},cssCaptured:l});d&&(r.push({parentId:p,nextId:f,node:d}),n.add(d.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let c of this.movedSet)mh(this.removesSubTreeCache,c,this.mirror)&&!this.movedSet.has(V.parentNode(c))||i(c);for(let c of this.addedSet)!gh(this.droppedSet,c)&&!mh(this.removesSubTreeCache,c,this.mirror)||gh(this.movedSet,c)?i(c):this.droppedSet.add(c);let s=null;for(;o.length;){let c=null;if(s){let u=this.mirror.getId(V.parentNode(s.value)),l=t(s.value);u!==-1&&l!==-1&&(c=s)}if(!c){let u=o.tail;for(;u;){let l=u;if(u=u.previous,l){let p=this.mirror.getId(V.parentNode(l.value));if(t(l.value)===-1)continue;if(p!==-1){c=l;break}else{let d=l.value,m=V.parentNode(d);if(m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let h=V.host(m);if(this.mirror.getId(h)!==-1){c=l;break}}}}}}if(!c){for(;o.head;)o.removeNode(o.head.value);break}s=c.previous,o.removeNode(c.value),i(c.value)}let a={texts:this.texts.map(c=>{let u=c.node,l=V.parentNode(u);return l&&l.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(l),{id:this.mirror.getId(u),value:c.value}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{let{attributes:u}=c;if(typeof u.style=="string"){let l=JSON.stringify(c.styleDiff),p=JSON.stringify(c._unchangedStyles);l.length<u.style.length&&(l+p).split("var(").length===u.style.split("var(").length&&(u.style=c.styleDiff)}return{id:this.mirror.getId(c.node),attributes:u}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:r};!a.texts.length&&!a.attributes.length&&!a.removes.length&&!a.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(a))}),M(this,"genTextAreaValueMutation",r=>{let n=this.attributeMap.get(r);n||(n={node:r,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(n),this.attributeMap.set(r,n));let o=Array.from(V.childNodes(r),t=>V.textContent(t)||"").join("");n.attributes.value=Dn({element:r,maskInputOptions:this.maskInputOptions,tagName:r.tagName,type:Tn(r),value:o,maskInputFn:this.maskInputFn})}),M(this,"processMutation",r=>{if(!Js(r.target,this.mirror,this.slimDOMOptions))switch(r.type){case"characterData":{let n=V.textContent(r.target);!xe(r.target,this.blockClass,this.blockSelector,!1)&&n!==r.oldValue&&this.texts.push({value:Dh(r.target,this.maskTextClass,this.maskTextSelector,!0)&&n?this.maskTextFn?this.maskTextFn(n,em(r.target)):n.replace(/[\S]/g,"*"):n,node:r.target});break}case"attributes":{let n=r.target,o=r.attributeName,t=r.target.getAttribute(o);if(o==="value"){let s=Tn(n);t=Dn({element:n,maskInputOptions:this.maskInputOptions,tagName:n.tagName,type:s,value:t,maskInputFn:this.maskInputFn})}if(xe(r.target,this.blockClass,this.blockSelector,!1)||t===r.oldValue)return;let i=this.attributeMap.get(r.target);if(n.tagName==="IFRAME"&&o==="src"&&!this.keepIframeSrcFn(t))if(!n.contentDocument)o="rr_src";else return;if(i||(i={node:r.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(r.target,i)),o==="type"&&n.tagName==="INPUT"&&(r.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!zh(n.tagName,o))if(i.attributes[o]=Nh(this.doc,_t(n.tagName),_t(o),t),o==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}let s=this.unattachedDoc.createElement("span");r.oldValue&&s.setAttribute("style",r.oldValue);for(let a of Array.from(n.style)){let c=n.style.getPropertyValue(a),u=n.style.getPropertyPriority(a);c!==s.style.getPropertyValue(a)||u!==s.style.getPropertyPriority(a)?u===""?i.styleDiff[a]=c:i.styleDiff[a]=[c,u]:i._unchangedStyles[a]=[c,u]}for(let a of Array.from(s.style))n.style.getPropertyValue(a)===""&&(i.styleDiff[a]=!1)}else o==="open"&&n.tagName==="DIALOG"&&(n.matches("dialog:modal")?i.attributes.rr_open_mode="modal":i.attributes.rr_open_mode="non-modal");break}case"childList":{if(xe(r.target,this.blockClass,this.blockSelector,!0))return;if(r.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(r.target);return}r.addedNodes.forEach(n=>this.genAdds(n,r.target)),r.removedNodes.forEach(n=>{let o=this.mirror.getId(n),t=$r(r.target)?this.mirror.getId(V.host(r.target)):this.mirror.getId(r.target);xe(r.target,this.blockClass,this.blockSelector,!1)||Js(n,this.mirror,this.slimDOMOptions)||!Xw(n,this.mirror)||(this.addedSet.has(n)?(na(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(r.target)&&o===-1||tm(r.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[hh(o,t)]?na(this.movedSet,n):(this.removes.push({parentId:t,id:o,isShadow:$r(r.target)&&kr(r.target)?!0:void 0}),ex(n,this.removesSubTreeCache))),this.mapRemoves.push(n))});break}}}),M(this,"genAdds",(r,n)=>{if(!this.processedNodeManager.inOtherBuffer(r,this)&&!(this.addedSet.has(r)||this.movedSet.has(r))){if(this.mirror.hasNode(r)){if(Js(r,this.mirror,this.slimDOMOptions))return;this.movedSet.add(r);let o=null;n&&this.mirror.hasNode(n)&&(o=this.mirror.getId(n)),o&&o!==-1&&(this.movedMap[hh(this.mirror.getId(r),o)]=!0)}else this.addedSet.add(r),this.droppedSet.delete(r);xe(r,this.blockClass,this.blockSelector,!1)||(V.childNodes(r).forEach(o=>this.genAdds(o)),Qs(r)&&V.childNodes(V.shadowRoot(r)).forEach(o=>{this.processedNodeManager.add(o,this),this.genAdds(o,r)}))}})}init(r){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(n=>{this[n]=r[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}};function na(e,r){e.delete(r),V.childNodes(r).forEach(n=>na(e,n))}function ex(e,r){let n=[e];for(;n.length;){let o=n.pop();r.has(o)||(r.add(o),V.childNodes(o).forEach(t=>n.push(t)))}}function mh(e,r,n){return e.size===0?!1:tx(e,r)}function tx(e,r,n){let o=V.parentNode(r);return o?e.has(o):!1}function gh(e,r){return e.size===0?!1:am(e,r)}function am(e,r){let n=V.parentNode(r);return n?e.has(n)?!0:am(e,n):!1}var Ir;function rx(e){Ir=e}function nx(){Ir=void 0}var G=e=>Ir?(...n)=>{try{return e(...n)}catch(o){if(Ir&&Ir(o)===!0)return;throw o}}:e,xt=[];function Dr(e){try{if("composedPath"in e){let r=e.composedPath();if(r.length)return r[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function lm(e,r){let n=new ra;xt.push(n),n.init(e);let[o,t]=Xh(),i=new o(G(n.processMutations.bind(n)));return i.observe(r,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),[i,t]}function ix({mousemoveCb:e,sampling:r,doc:n,mirror:o}){if(r.mousemove===!1)return()=>{};let t=typeof r.mousemove=="number"?r.mousemove:50,i=typeof r.mousemoveCallback=="number"?r.mousemoveCallback:500,s=[],a,c=Or(G(p=>{let f=Date.now()-a;e(s.map(d=>(d.timeOffset-=f,d)),p),s=[],a=null}),i),u=G(Or(G(p=>{let f=Dr(p),{clientX:d,clientY:m}=Ys(p)?p.changedTouches[0]:p;a||(a=Cr()),s.push({x:d,y:m,id:o.getId(f),timeOffset:Cr()-a}),c(typeof DragEvent<"u"&&p instanceof DragEvent?q.Drag:p instanceof MouseEvent?q.MouseMove:q.TouchMove)}),t,{trailing:!1})),l=[we("mousemove",u,n),we("touchmove",u,n),we("drag",u,n)];return G(()=>{l.forEach(p=>p())})}function ox({mouseInteractionCb:e,doc:r,mirror:n,blockClass:o,blockSelector:t,sampling:i}){if(i.mouseInteraction===!1)return()=>{};let s=i.mouseInteraction===!0||i.mouseInteraction===void 0?{}:i.mouseInteraction,a=[],c=null,u=l=>p=>{let f=Dr(p);if(xe(f,o,t,!0))return;let d=null,m=l;if("pointerType"in p){switch(p.pointerType){case"mouse":d=Ye.Mouse;break;case"touch":d=Ye.Touch;break;case"pen":d=Ye.Pen;break}d===Ye.Touch?Ie[l]===Ie.MouseDown?m="TouchStart":Ie[l]===Ie.MouseUp&&(m="TouchEnd"):Ye.Pen}else Ys(p)&&(d=Ye.Touch);d!==null?(c=d,(m.startsWith("Touch")&&d===Ye.Touch||m.startsWith("Mouse")&&d===Ye.Mouse)&&(d=null)):Ie[l]===Ie.Click&&(d=c,c=null);let h=Ys(p)?p.changedTouches[0]:p;if(!h)return;let g=n.getId(f),{clientX:x,clientY:b}=h;G(e)({type:Ie[m],id:g,x,y:b,...d!==null&&{pointerType:d}})};return Object.keys(Ie).filter(l=>Number.isNaN(Number(l))&&!l.endsWith("_Departed")&&s[l]!==!1).forEach(l=>{let p=_t(l),f=u(l);if(window.PointerEvent)switch(Ie[l]){case Ie.MouseDown:case Ie.MouseUp:p=p.replace("mouse","pointer");break;case Ie.TouchStart:case Ie.TouchEnd:return}a.push(we(p,f,r))}),G(()=>{a.forEach(l=>l())})}function cm({scrollCb:e,doc:r,mirror:n,blockClass:o,blockSelector:t,sampling:i}){let s=G(Or(G(a=>{let c=Dr(a);if(!c||xe(c,o,t,!0))return;let u=n.getId(c);if(c===r&&r.defaultView){let l=Kh(r.defaultView);e({id:u,x:l.left,y:l.top})}else e({id:u,x:c.scrollLeft,y:c.scrollTop})}),i.scroll||100));return we("scroll",s,r)}function sx({viewportResizeCb:e},{win:r}){let n=-1,o=-1,t=G(Or(G(()=>{let i=Yh(),s=Qh();(n!==i||o!==s)&&(e({width:Number(s),height:Number(i)}),n=i,o=s)}),200));return we("resize",t,r)}var ax=["INPUT","TEXTAREA","SELECT"],vh=new WeakMap;function lx({inputCb:e,doc:r,mirror:n,blockClass:o,blockSelector:t,ignoreClass:i,ignoreSelector:s,maskInputOptions:a,maskInputFn:c,sampling:u,userTriggeredOnInput:l}){function p(b){let y=Dr(b),_=b.isTrusted,v=y&&y.tagName;if(y&&v==="OPTION"&&(y=V.parentElement(y)),!y||!v||ax.indexOf(v)<0||xe(y,o,t,!0)||y.classList.contains(i)||s&&y.matches(s))return;let w=y.value,S=!1,C=Tn(y)||"";C==="radio"||C==="checkbox"?S=y.checked:(a[v.toLowerCase()]||a[C])&&(w=Dn({element:y,maskInputOptions:a,tagName:v,type:C,value:w,maskInputFn:c})),f(y,l?{text:w,isChecked:S,userTriggered:_}:{text:w,isChecked:S});let P=y.name;C==="radio"&&P&&S&&r.querySelectorAll(`input[type="radio"][name="${P}"]`).forEach(O=>{if(O!==y){let B=O.value;f(O,l?{text:B,isChecked:!S,userTriggered:!1}:{text:B,isChecked:!S})}})}function f(b,y){let _=vh.get(b);if(!_||_.text!==y.text||_.isChecked!==y.isChecked){vh.set(b,y);let v=n.getId(b);G(e)({...y,id:v})}}let m=(u.input==="last"?["change"]:["input","change"]).map(b=>we(b,G(p),r)),h=r.defaultView;if(!h)return()=>{m.forEach(b=>b())};let g=h.Object.getOwnPropertyDescriptor(h.HTMLInputElement.prototype,"value"),x=[[h.HTMLInputElement.prototype,"value"],[h.HTMLInputElement.prototype,"checked"],[h.HTMLSelectElement.prototype,"value"],[h.HTMLTextAreaElement.prototype,"value"],[h.HTMLSelectElement.prototype,"selectedIndex"],[h.HTMLOptionElement.prototype,"selected"]];return g&&g.set&&m.push(...x.map(b=>Hn(b[0],b[1],{set(){G(p)({target:this,isTrusted:!1})}},!1,h))),G(()=>{m.forEach(b=>b())})}function An(e){let r=[];function n(o,t){if(En("CSSGroupingRule")&&o.parentRule instanceof CSSGroupingRule||En("CSSMediaRule")&&o.parentRule instanceof CSSMediaRule||En("CSSSupportsRule")&&o.parentRule instanceof CSSSupportsRule||En("CSSConditionRule")&&o.parentRule instanceof CSSConditionRule){let s=Array.from(o.parentRule.cssRules).indexOf(o);return t.unshift(s),n(o.parentRule,t)}else if(o.parentStyleSheet){let s=Array.from(o.parentStyleSheet.cssRules).indexOf(o);t.unshift(s)}return t}return n(e,r)}function lt(e,r,n){let o,t;return e?(e.ownerNode?o=r.getId(e.ownerNode):t=n.getId(e),{styleId:t,id:o}):{}}function cx({styleSheetRuleCb:e,mirror:r,stylesheetManager:n},{win:o}){if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return()=>{};let t=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=new Proxy(t,{apply:G((l,p,f)=>{let[d,m]=f,{id:h,styleId:g}=lt(p,r,n.styleMirror);return(h&&h!==-1||g&&g!==-1)&&e({id:h,styleId:g,adds:[{rule:d,index:m}]}),l.apply(p,f)})}),o.CSSStyleSheet.prototype.addRule=function(l,p,f=this.cssRules.length){let d=`${l} { ${p} }`;return o.CSSStyleSheet.prototype.insertRule.apply(this,[d,f])};let i=o.CSSStyleSheet.prototype.deleteRule;o.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:G((l,p,f)=>{let[d]=f,{id:m,styleId:h}=lt(p,r,n.styleMirror);return(m&&m!==-1||h&&h!==-1)&&e({id:m,styleId:h,removes:[{index:d}]}),l.apply(p,f)})}),o.CSSStyleSheet.prototype.removeRule=function(l){return o.CSSStyleSheet.prototype.deleteRule.apply(this,[l])};let s;o.CSSStyleSheet.prototype.replace&&(s=o.CSSStyleSheet.prototype.replace,o.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:G((l,p,f)=>{let[d]=f,{id:m,styleId:h}=lt(p,r,n.styleMirror);return(m&&m!==-1||h&&h!==-1)&&e({id:m,styleId:h,replace:d}),l.apply(p,f)})}));let a;o.CSSStyleSheet.prototype.replaceSync&&(a=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:G((l,p,f)=>{let[d]=f,{id:m,styleId:h}=lt(p,r,n.styleMirror);return(m&&m!==-1||h&&h!==-1)&&e({id:m,styleId:h,replaceSync:d}),l.apply(p,f)})}));let c={};Cn("CSSGroupingRule")?c.CSSGroupingRule=o.CSSGroupingRule:(Cn("CSSMediaRule")&&(c.CSSMediaRule=o.CSSMediaRule),Cn("CSSConditionRule")&&(c.CSSConditionRule=o.CSSConditionRule),Cn("CSSSupportsRule")&&(c.CSSSupportsRule=o.CSSSupportsRule));let u={};return Object.entries(c).forEach(([l,p])=>{u[l]={insertRule:p.prototype.insertRule,deleteRule:p.prototype.deleteRule},p.prototype.insertRule=new Proxy(u[l].insertRule,{apply:G((f,d,m)=>{let[h,g]=m,{id:x,styleId:b}=lt(d.parentStyleSheet,r,n.styleMirror);return(x&&x!==-1||b&&b!==-1)&&e({id:x,styleId:b,adds:[{rule:h,index:[...An(d),g||0]}]}),f.apply(d,m)})}),p.prototype.deleteRule=new Proxy(u[l].deleteRule,{apply:G((f,d,m)=>{let[h]=m,{id:g,styleId:x}=lt(d.parentStyleSheet,r,n.styleMirror);return(g&&g!==-1||x&&x!==-1)&&e({id:g,styleId:x,removes:[{index:[...An(d),h]}]}),f.apply(d,m)})})}),G(()=>{o.CSSStyleSheet.prototype.insertRule=t,o.CSSStyleSheet.prototype.deleteRule=i,s&&(o.CSSStyleSheet.prototype.replace=s),a&&(o.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach(([l,p])=>{p.prototype.insertRule=u[l].insertRule,p.prototype.deleteRule=u[l].deleteRule})})}function um({mirror:e,stylesheetManager:r},n){var o,t,i;let s=null;n.nodeName==="#document"?s=e.getId(n):s=e.getId(V.host(n));let a=n.nodeName==="#document"?(o=n.defaultView)==null?void 0:o.Document:(i=(t=n.ownerDocument)==null?void 0:t.defaultView)==null?void 0:i.ShadowRoot,c=a?.prototype?Object.getOwnPropertyDescriptor(a?.prototype,"adoptedStyleSheets"):void 0;return s===null||s===-1||!a||!c?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get(){var u;return(u=c.get)==null?void 0:u.call(this)},set(u){var l;let p=(l=c.set)==null?void 0:l.call(this,u);if(s!==null&&s!==-1)try{r.adoptStyleSheets(u,s)}catch{}return p}}),G(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})}))}function ux({styleDeclarationCb:e,mirror:r,ignoreCSSAttributes:n,stylesheetManager:o},{win:t}){let i=t.CSSStyleDeclaration.prototype.setProperty;t.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:G((a,c,u)=>{var l;let[p,f,d]=u;if(n.has(p))return i.apply(c,[p,f,d]);let{id:m,styleId:h}=lt((l=c.parentRule)==null?void 0:l.parentStyleSheet,r,o.styleMirror);return(m&&m!==-1||h&&h!==-1)&&e({id:m,styleId:h,set:{property:p,value:f,priority:d},index:An(c.parentRule)}),a.apply(c,u)})});let s=t.CSSStyleDeclaration.prototype.removeProperty;return t.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:G((a,c,u)=>{var l;let[p]=u;if(n.has(p))return s.apply(c,[p]);let{id:f,styleId:d}=lt((l=c.parentRule)==null?void 0:l.parentStyleSheet,r,o.styleMirror);return(f&&f!==-1||d&&d!==-1)&&e({id:f,styleId:d,remove:{property:p},index:An(c.parentRule)}),a.apply(c,u)})}),G(()=>{t.CSSStyleDeclaration.prototype.setProperty=i,t.CSSStyleDeclaration.prototype.removeProperty=s})}function dx({mediaInteractionCb:e,blockClass:r,blockSelector:n,mirror:o,sampling:t,doc:i}){let s=G(c=>Or(G(u=>{let l=Dr(u);if(!l||xe(l,r,n,!0))return;let{currentTime:p,volume:f,muted:d,playbackRate:m,loop:h}=l;e({type:c,id:o.getId(l),currentTime:p,volume:f,muted:d,playbackRate:m,loop:h})}),t.media||500)),a=[we("play",s(Mt.Play),i),we("pause",s(Mt.Pause),i),we("seeked",s(Mt.Seeked),i),we("volumechange",s(Mt.VolumeChange),i),we("ratechange",s(Mt.RateChange),i)];return G(()=>{a.forEach(c=>c())})}function fx({fontCb:e,doc:r}){let n=r.defaultView;if(!n)return()=>{};let o=[],t=new WeakMap,i=n.FontFace;n.FontFace=function(c,u,l){let p=new i(c,u,l);return t.set(p,{family:c,buffer:typeof u!="string",descriptors:l,fontSource:typeof u=="string"?u:JSON.stringify(Array.from(new Uint8Array(u)))}),p};let s=kt(r.fonts,"add",function(a){return function(c){return setTimeout(G(()=>{let u=t.get(c);u&&(e(u),t.delete(c))}),0),a.apply(this,[c])}});return o.push(()=>{n.FontFace=i}),o.push(s),G(()=>{o.forEach(a=>a())})}function px(e){let{doc:r,mirror:n,blockClass:o,blockSelector:t,selectionCb:i}=e,s=!0,a=G(()=>{let c=r.getSelection();if(!c||s&&c?.isCollapsed)return;s=c.isCollapsed||!1;let u=[],l=c.rangeCount||0;for(let p=0;p<l;p++){let f=c.getRangeAt(p),{startContainer:d,startOffset:m,endContainer:h,endOffset:g}=f;xe(d,o,t,!0)||xe(h,o,t,!0)||u.push({start:n.getId(d),startOffset:m,end:n.getId(h),endOffset:g})}i({ranges:u})});return a(),we("selectionchange",a)}function hx({doc:e,customElementCb:r}){let n=e.defaultView;return!n||!n.customElements?()=>{}:kt(n.customElements,"define",function(t){return function(i,s,a){try{r({define:{name:i}})}catch{console.warn(`Custom element callback failed for ${i}`)}return t.apply(this,[i,s,a])}})}function mx(e,r){let{mutationCb:n,mousemoveCb:o,mouseInteractionCb:t,scrollCb:i,viewportResizeCb:s,inputCb:a,mediaInteractionCb:c,styleSheetRuleCb:u,styleDeclarationCb:l,canvasMutationCb:p,fontCb:f,selectionCb:d,customElementCb:m}=e;e.mutationCb=(...h)=>{r.mutation&&r.mutation(...h),n(...h)},e.mousemoveCb=(...h)=>{r.mousemove&&r.mousemove(...h),o(...h)},e.mouseInteractionCb=(...h)=>{r.mouseInteraction&&r.mouseInteraction(...h),t(...h)},e.scrollCb=(...h)=>{r.scroll&&r.scroll(...h),i(...h)},e.viewportResizeCb=(...h)=>{r.viewportResize&&r.viewportResize(...h),s(...h)},e.inputCb=(...h)=>{r.input&&r.input(...h),a(...h)},e.mediaInteractionCb=(...h)=>{r.mediaInteaction&&r.mediaInteaction(...h),c(...h)},e.styleSheetRuleCb=(...h)=>{r.styleSheetRule&&r.styleSheetRule(...h),u(...h)},e.styleDeclarationCb=(...h)=>{r.styleDeclaration&&r.styleDeclaration(...h),l(...h)},e.canvasMutationCb=(...h)=>{r.canvasMutation&&r.canvasMutation(...h),p(...h)},e.fontCb=(...h)=>{r.font&&r.font(...h),f(...h)},e.selectionCb=(...h)=>{r.selection&&r.selection(...h),d(...h)},e.customElementCb=(...h)=>{r.customElement&&r.customElement(...h),m(...h)}}function gx(e,r={}){let n=e.doc.defaultView;if(!n)return()=>{};mx(e,r);let o,t=()=>{};e.recordDOM&&([o,t]=lm(e,e.doc));let i=ix(e),s=ox(e),a=cm(e),c=sx(e,{win:n}),u=lx(e),l=dx(e),p=()=>{},f=()=>{},d=()=>{},m=()=>{};e.recordDOM&&(p=cx(e,{win:n}),f=um(e,e.doc),d=ux(e,{win:n}),e.collectFonts&&(m=fx(e)));let h=px(e),g=hx(e),x=[];for(let b of e.plugins)x.push(b.observer(b.callback,n,b.options));return G(()=>{xt.forEach(b=>b.reset()),o?.disconnect(),t(),i(),s(),a(),c(),u(),l(),p(),f(),d(),m(),h(),g(),x.forEach(b=>b())})}function En(e){return typeof window[e]<"u"}function Cn(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}var Mn=class{constructor(r){M(this,"iframeIdToRemoteIdMap",new WeakMap),M(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=r}getId(r,n,o,t){let i=o||this.getIdToRemoteIdMap(r),s=t||this.getRemoteIdToIdMap(r),a=i.get(n);return a||(a=this.generateIdFn(),i.set(n,a),s.set(a,n)),a}getIds(r,n){let o=this.getIdToRemoteIdMap(r),t=this.getRemoteIdToIdMap(r);return n.map(i=>this.getId(r,i,o,t))}getRemoteId(r,n,o){let t=o||this.getRemoteIdToIdMap(r);if(typeof n!="number")return n;let i=t.get(n);return i||-1}getRemoteIds(r,n){let o=this.getRemoteIdToIdMap(r);return n.map(t=>this.getRemoteId(r,t,o))}reset(r){if(!r){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(r),this.iframeRemoteIdToIdMap.delete(r)}getIdToRemoteIdMap(r){let n=this.iframeIdToRemoteIdMap.get(r);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(r,n)),n}getRemoteIdToIdMap(r){let n=this.iframeRemoteIdToIdMap.get(r);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(r,n)),n}},ia=class{constructor(r){M(this,"iframes",new WeakMap),M(this,"crossOriginIframeMap",new WeakMap),M(this,"crossOriginIframeMirror",new Mn(Oh)),M(this,"crossOriginIframeStyleMirror"),M(this,"crossOriginIframeRootIdMap",new WeakMap),M(this,"mirror"),M(this,"mutationCb"),M(this,"wrappedEmit"),M(this,"loadListener"),M(this,"stylesheetManager"),M(this,"recordCrossOriginIframes"),this.mutationCb=r.mutationCb,this.wrappedEmit=r.wrappedEmit,this.stylesheetManager=r.stylesheetManager,this.recordCrossOriginIframes=r.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Mn(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=r.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(r){this.iframes.set(r,!0),r.contentWindow&&this.crossOriginIframeMap.set(r.contentWindow,r)}addLoadListener(r){this.loadListener=r}attachIframe(r,n){var o,t;this.mutationCb({adds:[{parentId:this.mirror.getId(r),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((o=r.contentWindow)==null||o.addEventListener("message",this.handleMessage.bind(this))),(t=this.loadListener)==null||t.call(this,r),r.contentDocument&&r.contentDocument.adoptedStyleSheets&&r.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.contentDocument.adoptedStyleSheets,this.mirror.getId(r.contentDocument))}handleMessage(r){let n=r;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!r.source)return;let t=this.crossOriginIframeMap.get(r.source);if(!t)return;let i=this.transformCrossOriginEvent(t,n.data.event);i&&this.wrappedEmit(i,n.data.isCheckout)}transformCrossOriginEvent(r,n){var o;switch(n.type){case J.FullSnapshot:{this.crossOriginIframeMirror.reset(r),this.crossOriginIframeStyleMirror.reset(r),this.replaceIdOnNode(n.data.node,r);let t=n.data.node.id;return this.crossOriginIframeRootIdMap.set(r,t),this.patchRootIdOnNode(n.data.node,t),{timestamp:n.timestamp,type:J.IncrementalSnapshot,data:{source:q.Mutation,adds:[{parentId:this.mirror.getId(r),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case J.Meta:case J.Load:case J.DomContentLoaded:return!1;case J.Plugin:return n;case J.Custom:return this.replaceIds(n.data.payload,r,["id","parentId","previousId","nextId"]),n;case J.IncrementalSnapshot:switch(n.data.source){case q.Mutation:return n.data.adds.forEach(t=>{this.replaceIds(t,r,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,r);let i=this.crossOriginIframeRootIdMap.get(r);i&&this.patchRootIdOnNode(t.node,i)}),n.data.removes.forEach(t=>{this.replaceIds(t,r,["parentId","id"])}),n.data.attributes.forEach(t=>{this.replaceIds(t,r,["id"])}),n.data.texts.forEach(t=>{this.replaceIds(t,r,["id"])}),n;case q.Drag:case q.TouchMove:case q.MouseMove:return n.data.positions.forEach(t=>{this.replaceIds(t,r,["id"])}),n;case q.ViewportResize:return!1;case q.MediaInteraction:case q.MouseInteraction:case q.Scroll:case q.CanvasMutation:case q.Input:return this.replaceIds(n.data,r,["id"]),n;case q.StyleSheetRule:case q.StyleDeclaration:return this.replaceIds(n.data,r,["id"]),this.replaceStyleIds(n.data,r,["styleId"]),n;case q.Font:return n;case q.Selection:return n.data.ranges.forEach(t=>{this.replaceIds(t,r,["start","end"])}),n;case q.AdoptedStyleSheet:return this.replaceIds(n.data,r,["id"]),this.replaceStyleIds(n.data,r,["styleIds"]),(o=n.data.styles)==null||o.forEach(t=>{this.replaceStyleIds(t,r,["styleId"])}),n}}return!1}replace(r,n,o,t){for(let i of t)!Array.isArray(n[i])&&typeof n[i]!="number"||(Array.isArray(n[i])?n[i]=r.getIds(o,n[i]):n[i]=r.getId(o,n[i]));return n}replaceIds(r,n,o){return this.replace(this.crossOriginIframeMirror,r,n,o)}replaceStyleIds(r,n,o){return this.replace(this.crossOriginIframeStyleMirror,r,n,o)}replaceIdOnNode(r,n){this.replaceIds(r,n,["id","rootId"]),"childNodes"in r&&r.childNodes.forEach(o=>{this.replaceIdOnNode(o,n)})}patchRootIdOnNode(r,n){r.type!==sm.Document&&!r.rootId&&(r.rootId=n),"childNodes"in r&&r.childNodes.forEach(o=>{this.patchRootIdOnNode(o,n)})}},oa=class{constructor(r){M(this,"shadowDoms",new WeakSet),M(this,"mutationCb"),M(this,"scrollCb"),M(this,"bypassOptions"),M(this,"mirror"),M(this,"restoreHandlers",[]),this.mutationCb=r.mutationCb,this.scrollCb=r.scrollCb,this.bypassOptions=r.bypassOptions,this.mirror=r.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(r,n){if(!kr(r)||this.shadowDoms.has(r))return;this.shadowDoms.add(r);let[o]=lm({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},r);this.restoreHandlers.push(()=>o.disconnect()),this.restoreHandlers.push(cm({...this.bypassOptions,scrollCb:this.scrollCb,doc:r,mirror:this.mirror})),setTimeout(()=>{r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(V.host(r))),this.restoreHandlers.push(um({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},r))},0)}observeAttachShadow(r){!r.contentWindow||!r.contentDocument||this.patchAttachShadow(r.contentWindow.Element,r.contentDocument)}patchAttachShadow(r,n){let o=this;this.restoreHandlers.push(kt(r.prototype,"attachShadow",function(t){return function(i){let s=t.call(this,i),a=V.shadowRoot(this);return a&&om(this)&&o.addShadowRoot(a,n),s}}))}reset(){this.restoreHandlers.forEach(r=>{try{r()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}},Lt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vx=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(Sr=0;Sr<Lt.length;Sr++)vx[Lt.charCodeAt(Sr)]=Sr;var Sr,yx=function(e){var r=new Uint8Array(e),n,o=r.length,t="";for(n=0;n<o;n+=3)t+=Lt[r[n]>>2],t+=Lt[(r[n]&3)<<4|r[n+1]>>4],t+=Lt[(r[n+1]&15)<<2|r[n+2]>>6],t+=Lt[r[n+2]&63];return o%3===2?t=t.substring(0,t.length-1)+"=":o%3===1&&(t=t.substring(0,t.length-2)+"=="),t};var yh=new Map;function bx(e,r){let n=yh.get(e);return n||(n=new Map,yh.set(e,n)),n.has(r)||n.set(r,[]),n.get(r)}var dm=(e,r,n)=>{if(!e||!(pm(e,r)||typeof e=="object"))return;let o=e.constructor.name,t=bx(n,o),i=t.indexOf(e);return i===-1&&(i=t.length,t.push(e)),i};function On(e,r,n){if(e instanceof Array)return e.map(o=>On(o,r,n));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){let o=e.constructor.name,t=yx(e);return{rr_type:o,base64:t}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[On(e.buffer,r,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){let o=e.constructor.name,{src:t}=e;return{rr_type:o,src:t}}else if(e instanceof HTMLCanvasElement){let o="HTMLImageElement",t=e.toDataURL();return{rr_type:o,src:t}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[On(e.data,r,n),e.width,e.height]};if(pm(e,r)||typeof e=="object"){let o=e.constructor.name,t=dm(e,r,n);return{rr_type:o,index:t}}}}return e}var fm=(e,r,n)=>e.map(o=>On(o,r,n)),pm=(e,r)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(t=>typeof r[t]=="function").find(t=>e instanceof r[t]);function wx(e,r,n,o){let t=[],i=Object.getOwnPropertyNames(r.CanvasRenderingContext2D.prototype);for(let s of i)try{if(typeof r.CanvasRenderingContext2D.prototype[s]!="function")continue;let a=kt(r.CanvasRenderingContext2D.prototype,s,function(c){return function(...u){return xe(this.canvas,n,o,!0)||setTimeout(()=>{let l=fm(u,r,this);e(this.canvas,{type:Ft["2D"],property:s,args:l})},0),c.apply(this,u)}});t.push(a)}catch{let a=Hn(r.CanvasRenderingContext2D.prototype,s,{set(c){e(this.canvas,{type:Ft["2D"],property:s,args:[c],setter:!0})}});t.push(a)}return()=>{t.forEach(s=>s())}}function xx(e){return e==="experimental-webgl"?"webgl":e}function bh(e,r,n,o){let t=[];try{let i=kt(e.HTMLCanvasElement.prototype,"getContext",function(s){return function(a,...c){if(!xe(this,r,n,!0)){let u=xx(a);if("__context"in this||(this.__context=u),o&&["webgl","webgl2"].includes(u))if(c[0]&&typeof c[0]=="object"){let l=c[0];l.preserveDrawingBuffer||(l.preserveDrawingBuffer=!0)}else c.splice(0,1,{preserveDrawingBuffer:!0})}return s.apply(this,[a,...c])}});t.push(i)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{t.forEach(i=>i())}}function wh(e,r,n,o,t,i){let s=[],a=Object.getOwnPropertyNames(e);for(let c of a)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(c))try{if(typeof e[c]!="function")continue;let u=kt(e,c,function(l){return function(...p){let f=l.apply(this,p);if(dm(f,i,this),"tagName"in this.canvas&&!xe(this.canvas,o,t,!0)){let d=fm(p,i,this),m={type:r,property:c,args:d};n(this.canvas,m)}return f}});s.push(u)}catch{let u=Hn(e,c,{set(l){n(this.canvas,{type:r,property:c,args:[l],setter:!0})}});s.push(u)}return s}function _x(e,r,n,o){let t=[];return typeof r.WebGLRenderingContext<"u"&&t.push(...wh(r.WebGLRenderingContext.prototype,Ft.WebGL,e,n,o,r)),typeof r.WebGL2RenderingContext<"u"&&t.push(...wh(r.WebGL2RenderingContext.prototype,Ft.WebGL2,e,n,o,r)),()=>{t.forEach(i=>i())}}var hm=`(function() {
|
|
54
54
|
"use strict";
|
|
55
55
|
var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
56
56
|
var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);
|
|
@@ -125,21 +125,21 @@ or you can use record.mirror to access the mirror instance during recording.`,fh
|
|
|
125
125
|
};
|
|
126
126
|
})();
|
|
127
127
|
//# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map
|
|
128
|
-
`,xh=typeof self<"u"&&self.Blob&&new Blob([hm],{type:"text/javascript;charset=utf-8"});function Sx(e){let r;try{if(r=xh&&(self.URL||self.webkitURL).createObjectURL(xh),!r)throw"";let n=new Worker(r,{name:e?.name});return n.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(r)}),n}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(hm),{name:e?.name})}finally{r&&(self.URL||self.webkitURL).revokeObjectURL(r)}}var sa=class{constructor(r){M(this,"pendingCanvasMutations",new Map),M(this,"rafStamps",{latestId:0,invokeId:null}),M(this,"mirror"),M(this,"mutationCb"),M(this,"resetObservers"),M(this,"frozen",!1),M(this,"locked",!1),M(this,"processMutation",(c,u)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(c)||this.pendingCanvasMutations.set(c,[]),this.pendingCanvasMutations.get(c).push(u)});let{sampling:n="all",win:o,blockClass:t,blockSelector:i,recordCanvas:s,dataURLOptions:a}=r;this.mutationCb=r.mutationCb,this.mirror=r.mirror,s&&n==="all"&&this.initCanvasMutationObserver(o,t,i),s&&typeof n=="number"&&this.initCanvasFPSObserver(n,o,t,i,{dataURLOptions:a})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(r,n,o,t,i){let s=bh(n,o,t,!0),a=new Map,c=new Sx;c.onmessage=m=>{let{id:h}=m.data;if(a.set(h,!1),!("base64"in m.data))return;let{base64:g,type:x,width:b,height:y}=m.data;this.mutationCb({id:h,type:Ft["2D"],commands:[{property:"clearRect",args:[0,0,b,y]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:g}],type:x}]},0,0]}]})};let u=1e3/r,l=0,p,f=()=>{let m=[];return n.document.querySelectorAll("canvas").forEach(h=>{xe(h,o,t,!0)||m.push(h)}),m},d=m=>{if(l&&m-l<u){p=requestAnimationFrame(d);return}l=m,f().forEach(async h=>{var g;let x=this.mirror.getId(h);if(a.get(x)||h.width===0||h.height===0)return;if(a.set(x,!0),["webgl","webgl2"].includes(h.__context)){let y=h.getContext(h.__context);((g=y?.getContextAttributes())==null?void 0:g.preserveDrawingBuffer)===!1&&y.clear(y.COLOR_BUFFER_BIT)}let b=await createImageBitmap(h);c.postMessage({id:x,bitmap:b,width:h.width,height:h.height,dataURLOptions:i.dataURLOptions},[b])}),p=requestAnimationFrame(d)};p=requestAnimationFrame(d),this.resetObservers=()=>{s(),cancelAnimationFrame(p)}}initCanvasMutationObserver(r,n,o){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let t=bh(r,n,o,!1),i=wx(this.processMutation.bind(this),r,n,o),s=_x(this.processMutation.bind(this),r,n,o);this.resetObservers=()=>{t(),i(),s()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let r=n=>{this.rafStamps.latestId=n,requestAnimationFrame(r)};requestAnimationFrame(r)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((r,n)=>{let o=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,o)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(r,n){if(this.frozen||this.locked)return;let o=this.pendingCanvasMutations.get(r);if(!o||n===-1)return;let t=o.map(s=>{let{type:a,...c}=s;return c}),{type:i}=o[0];this.mutationCb({id:n,type:i,commands:t}),this.pendingCanvasMutations.delete(r)}},aa=class{constructor(r){M(this,"trackedLinkElements",new WeakSet),M(this,"mutationCb"),M(this,"adoptedStyleSheetCb"),M(this,"styleMirror",new ea),this.mutationCb=r.mutationCb,this.adoptedStyleSheetCb=r.adoptedStyleSheetCb}attachLinkElement(r,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(r)}trackLinkElement(r){this.trackedLinkElements.has(r)||(this.trackedLinkElements.add(r),this.trackStylesheetInLinkElement(r))}adoptStyleSheets(r,n){if(r.length===0)return;let o={id:n,styleIds:[]},t=[];for(let i of r){let s;this.styleMirror.has(i)?s=this.styleMirror.getId(i):(s=this.styleMirror.add(i),t.push({styleId:s,rules:Array.from(i.rules||CSSRule,(a,c)=>({rule:Eh(a,i.href),index:c}))})),o.styleIds.push(s)}t.length>0&&(o.styles=t),this.adoptedStyleSheetCb(o)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(r){}},la=class{constructor(){M(this,"nodeMap",new WeakMap),M(this,"active",!1)}inOtherBuffer(r,n){let o=this.nodeMap.get(r);return o&&Array.from(o).some(t=>t!==n)}add(r,n){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(r,(this.nodeMap.get(r)||new Set).add(n))}destroy(){}},le,Nn,Hs,Un=!1;try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=((Qf=e.contentWindow)==null?void 0:Qf.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}var je=Mb();function qe(e={}){let{emit:r,checkoutEveryNms:n,checkoutEveryNth:o,blockClass:t="rr-block",blockSelector:i=null,ignoreClass:s="rr-ignore",ignoreSelector:a=null,maskTextClass:c="rr-mask",maskTextSelector:u=null,inlineStylesheet:l=!0,maskAllInputs:p,maskInputOptions:f,slimDOMOptions:d,maskInputFn:m,maskTextFn:h,hooks:g,packFn:x,sampling:b={},dataURLOptions:y={},mousemoveWait:_,recordDOM:v=!0,recordCanvas:w=!1,recordCrossOriginIframes:S=!1,recordAfter:C=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:R=!1,collectFonts:O=!1,inlineImages:B=!1,plugins:j,keepIframeSrcFn:E=()=>!1,ignoreCSSAttributes:Me=new Set([]),errorHandler:Ne}=e;rx(Ne);let K=S?window.parent===window:!0,H=!1;if(!K)try{window.parent.document&&(H=!1)}catch{H=!0}if(K&&!r)throw new Error("emit function is required");if(!K&&!H)return()=>{};_!==void 0&&b.mousemove===void 0&&(b.mousemove=_),je.reset();let ue=p===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:f!==void 0?f:{password:!0},ge=Th(d);Kw();let de,Y=0,st=F=>{for(let fe of j||[])fe.eventProcessor&&(F=fe.eventProcessor(F));return x&&!H&&(F=x(F)),F};le=(F,fe)=>{var Q;let ae=F;if(ae.timestamp=Cr(),(Q=xt[0])!=null&&Q.isFrozen()&&ae.type!==J.FullSnapshot&&!(ae.type===J.IncrementalSnapshot&&ae.data.source===q.Mutation)&&xt.forEach(ze=>ze.unfreeze()),K)r?.(st(ae),fe);else if(H){let ze={type:"rrweb",event:st(ae),origin:window.location.origin,isCheckout:fe};window.parent.postMessage(ze,"*")}if(ae.type===J.FullSnapshot)de=ae,Y=0;else if(ae.type===J.IncrementalSnapshot){if(ae.data.source===q.Mutation&&ae.data.isAttachIframe)return;Y++;let ze=o&&Y>=o,ee=n&&ae.timestamp-de.timestamp>n;(ze||ee)&&Nn(!0)}};let T=F=>{le({type:J.IncrementalSnapshot,data:{source:q.Mutation,...F}})},We=F=>le({type:J.IncrementalSnapshot,data:{source:q.Scroll,...F}}),Pe=F=>le({type:J.IncrementalSnapshot,data:{source:q.CanvasMutation,...F}}),_r=F=>le({type:J.IncrementalSnapshot,data:{source:q.AdoptedStyleSheet,...F}}),be=new aa({mutationCb:T,adoptedStyleSheetCb:_r}),Ue=new ia({mirror:je,mutationCb:T,stylesheetManager:be,recordCrossOriginIframes:S,wrappedEmit:le});for(let F of j||[])F.getMirror&&F.getMirror({nodeMirror:je,crossOriginIframeMirror:Ue.crossOriginIframeMirror,crossOriginIframeStyleMirror:Ue.crossOriginIframeStyleMirror});let wt=new la;Hs=new sa({recordCanvas:w,mutationCb:Pe,win:window,blockClass:t,blockSelector:i,mirror:je,sampling:b.canvas,dataURLOptions:y});let at=new oa({mutationCb:T,scrollCb:We,bypassOptions:{blockClass:t,blockSelector:i,maskTextClass:c,maskTextSelector:u,inlineStylesheet:l,maskInputOptions:ue,dataURLOptions:y,maskTextFn:h,maskInputFn:m,recordCanvas:w,inlineImages:B,sampling:b,slimDOMOptions:ge,iframeManager:Ue,stylesheetManager:be,canvasManager:Hs,keepIframeSrcFn:E,processedNodeManager:wt},mirror:je});Nn=(F=!1)=>{if(!v)return;le({type:J.Meta,data:{href:window.location.href,width:Qh(),height:Yh()}},F),be.reset(),at.init(),xt.forEach(Q=>Q.lock());let fe=aw(document,{mirror:je,blockClass:t,blockSelector:i,maskTextClass:c,maskTextSelector:u,inlineStylesheet:l,maskAllInputs:ue,maskTextFn:h,maskInputFn:m,slimDOM:ge,dataURLOptions:y,recordCanvas:w,inlineImages:B,onSerialize:Q=>{rm(Q,je)&&Ue.addIframe(Q),nm(Q,je)&&be.trackLinkElement(Q),Qs(Q)&&at.addShadowRoot(V.shadowRoot(Q),document)},onIframeLoad:(Q,ae)=>{Ue.attachIframe(Q,ae),at.observeAttachShadow(Q)},onStylesheetLoad:(Q,ae)=>{be.attachLinkElement(Q,ae)},keepIframeSrcFn:E});if(!fe)return console.warn("Failed to snapshot the document");le({type:J.FullSnapshot,data:{node:fe,initialOffset:Kh(window)}},F),xt.forEach(Q=>Q.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&be.adoptStyleSheets(document.adoptedStyleSheets,je.getId(document))};try{let F=[],fe=ae=>{var ze;return G(gx)({mutationCb:T,mousemoveCb:(ee,Zo)=>le({type:J.IncrementalSnapshot,data:{source:Zo,positions:ee}}),mouseInteractionCb:ee=>le({type:J.IncrementalSnapshot,data:{source:q.MouseInteraction,...ee}}),scrollCb:We,viewportResizeCb:ee=>le({type:J.IncrementalSnapshot,data:{source:q.ViewportResize,...ee}}),inputCb:ee=>le({type:J.IncrementalSnapshot,data:{source:q.Input,...ee}}),mediaInteractionCb:ee=>le({type:J.IncrementalSnapshot,data:{source:q.MediaInteraction,...ee}}),styleSheetRuleCb:ee=>le({type:J.IncrementalSnapshot,data:{source:q.StyleSheetRule,...ee}}),styleDeclarationCb:ee=>le({type:J.IncrementalSnapshot,data:{source:q.StyleDeclaration,...ee}}),canvasMutationCb:Pe,fontCb:ee=>le({type:J.IncrementalSnapshot,data:{source:q.Font,...ee}}),selectionCb:ee=>{le({type:J.IncrementalSnapshot,data:{source:q.Selection,...ee}})},customElementCb:ee=>{le({type:J.IncrementalSnapshot,data:{source:q.CustomElement,...ee}})},blockClass:t,ignoreClass:s,ignoreSelector:a,maskTextClass:c,maskTextSelector:u,maskInputOptions:ue,inlineStylesheet:l,sampling:b,recordDOM:v,recordCanvas:w,inlineImages:B,userTriggeredOnInput:R,collectFonts:O,doc:ae,maskInputFn:m,maskTextFn:h,keepIframeSrcFn:E,blockSelector:i,slimDOMOptions:ge,dataURLOptions:y,mirror:je,iframeManager:Ue,stylesheetManager:be,shadowDomManager:at,processedNodeManager:wt,canvasManager:Hs,ignoreCSSAttributes:Me,plugins:((ze=j?.filter(ee=>ee.observer))==null?void 0:ze.map(ee=>({observer:ee.observer,options:ee.options,callback:Zo=>le({type:J.Plugin,data:{plugin:ee.name,payload:Zo}})})))||[]},g)};Ue.addLoadListener(ae=>{try{F.push(fe(ae.contentDocument))}catch(ze){console.warn(ze)}});let Q=()=>{Nn(),F.push(fe(document)),Un=!0};return["interactive","complete"].includes(document.readyState)?Q():(F.push(we("DOMContentLoaded",()=>{le({type:J.DomContentLoaded,data:{}}),C==="DOMContentLoaded"&&Q()})),F.push(we("load",()=>{le({type:J.Load,data:{}}),C==="load"&&Q()},window))),()=>{F.forEach(ae=>{try{ae()}catch(ze){String(ze).toLowerCase().includes("cross-origin")||console.warn(ze)}}),wt.destroy(),Un=!1,nx()}}catch(F){console.warn(F)}}qe.addCustomEvent=(e,r)=>{if(!Un)throw new Error("please add custom event after start recording");le({type:J.Custom,data:{tag:e,payload:r}})};qe.freezePage=()=>{xt.forEach(e=>e.freeze())};qe.takeFullSnapshot=e=>{if(!Un)throw new Error("please take full snapshot after start recording");Nn(e)};qe.mirror=je;var _h;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(_h||(_h={}));var k0=5*1e3;var{addCustomEvent:I0}=qe,{freezePage:E0}=qe,{takeFullSnapshot:C0}=qe;function $x(e,r){return e[13]=1,e[14]=r>>8,e[15]=r&255,e[16]=r>>8,e[17]=r&255,e}var xm=112,_m=72,Sm=89,$m=115,Ia;function kx(){let e=new Int32Array(256);for(let r=0;r<256;r++){let n=r;for(let o=0;o<8;o++)n=n&1?3988292384^n>>>1:n>>>1;e[r]=n}return e}function Ix(e){let r=-1;Ia||(Ia=kx());for(let n=0;n<e.length;n++)r=Ia[(r^e[n])&255]^r>>>8;return r^-1}function Ex(e){let r=e.length-1;for(let n=r;n>=4;n--)if(e[n-4]===9&&e[n-3]===xm&&e[n-2]===_m&&e[n-1]===Sm&&e[n]===$m)return n-3;return 0}function Cx(e,r,n=!1){let o=new Uint8Array(13);r*=39.3701,o[0]=xm,o[1]=_m,o[2]=Sm,o[3]=$m,o[4]=r>>>24,o[5]=r>>>16,o[6]=r>>>8,o[7]=r&255,o[8]=o[4],o[9]=o[5],o[10]=o[6],o[11]=o[7],o[12]=1;let t=Ix(o),i=new Uint8Array(4);if(i[0]=t>>>24,i[1]=t>>>16,i[2]=t>>>8,i[3]=t&255,n){let s=Ex(e);return e.set(o,s),e.set(i,s+13),e}else{let s=new Uint8Array(4);s[0]=0,s[1]=0,s[2]=0,s[3]=9;let a=new Uint8Array(54);return a.set(e,0),a.set(s,33),a.set(o,37),a.set(i,50),a}}var km="[modern-screenshot]",ct=typeof window<"u",Ox=ct&&"Worker"in window,Nx=ct&&"atob"in window,N0=ct&&"btoa"in window,Oa=ct?window.navigator?.userAgent:"",Im=Oa.includes("Chrome"),Xn=Oa.includes("AppleWebKit")&&!Im,Na=Oa.includes("Firefox"),zx=e=>e&&"__CONTEXT__"in e,Dx=e=>e.constructor.name==="CSSFontFaceRule",Tx=e=>e.constructor.name==="CSSImportRule",Px=e=>e.constructor.name==="CSSLayerBlockRule",Ge=e=>e.nodeType===1,Ar=e=>typeof e.className=="object",Em=e=>e.tagName==="image",Rx=e=>e.tagName==="use",Tr=e=>Ge(e)&&typeof e.style<"u"&&!Ar(e),Ax=e=>e.nodeType===8,Mx=e=>e.nodeType===3,Bt=e=>e.tagName==="IMG",Kn=e=>e.tagName==="VIDEO",Ux=e=>e.tagName==="CANVAS",jx=e=>e.tagName==="TEXTAREA",Lx=e=>e.tagName==="INPUT",Fx=e=>e.tagName==="STYLE",Zx=e=>e.tagName==="SCRIPT",Bx=e=>e.tagName==="SELECT",Wx=e=>e.tagName==="SLOT",Vx=e=>e.tagName==="IFRAME",qx=(...e)=>console.warn(km,...e);function Gx(e){let r=e?.createElement?.("canvas");return r&&(r.height=r.width=1),!!r&&"toDataURL"in r&&!!r.toDataURL("image/webp").includes("image/webp")}var Ea=e=>e.startsWith("data:");function Cm(e,r){if(e.match(/^[a-z]+:\/\//i))return e;if(ct&&e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i)||!ct)return e;let n=Yn().implementation.createHTMLDocument(),o=n.createElement("base"),t=n.createElement("a");return n.head.appendChild(o),n.body.appendChild(t),r&&(o.href=r),t.href=e,t.href}function Yn(e){return(e&&Ge(e)?e?.ownerDocument:e)??window.document}var Qn="http://www.w3.org/2000/svg";function Jx(e,r,n){let o=Yn(n).createElementNS(Qn,"svg");return o.setAttributeNS(null,"width",e.toString()),o.setAttributeNS(null,"height",r.toString()),o.setAttributeNS(null,"viewBox",`0 0 ${e} ${r}`),o}function Hx(e,r){let n=new XMLSerializer().serializeToString(e);return r&&(n=n.replace(/[\u0000-\u0008\v\f\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]/gu,"")),`data:image/svg+xml;charset=utf-8,${encodeURIComponent(n)}`}async function Xx(e,r="image/png",n=1){try{return await new Promise((o,t)=>{e.toBlob(i=>{i?o(i):t(new Error("Blob is null"))},r,n)})}catch(o){if(Nx)return Kx(e.toDataURL(r,n));throw o}}function Kx(e){let[r,n]=e.split(","),o=r.match(/data:(.+);/)?.[1]??void 0,t=window.atob(n),i=t.length,s=new Uint8Array(i);for(let a=0;a<i;a+=1)s[a]=t.charCodeAt(a);return new Blob([s],{type:o})}function Om(e,r){return new Promise((n,o)=>{let t=new FileReader;t.onload=()=>n(t.result),t.onerror=()=>o(t.error),t.onabort=()=>o(new Error(`Failed read blob to ${r}`)),r==="dataUrl"?t.readAsDataURL(e):r==="arrayBuffer"&&t.readAsArrayBuffer(e)})}var Yx=e=>Om(e,"dataUrl"),Qx=e=>Om(e,"arrayBuffer");function Zt(e,r){let n=Yn(r).createElement("img");return n.decoding="sync",n.loading="eager",n.src=e,n}function Pr(e,r){return new Promise(n=>{let{timeout:o,ownerDocument:t,onError:i,onWarn:s}=r??{},a=typeof e=="string"?Zt(e,Yn(t)):e,c=null,u=null;function l(){n(a),c&&clearTimeout(c),u?.()}if(o&&(c=setTimeout(l,o)),Kn(a)){let p=a.currentSrc||a.src;if(!p)return a.poster?Pr(a.poster,r).then(n):l();if(a.readyState>=2)return l();let f=l,d=m=>{s?.("Failed video load",p,m),i?.(m),l()};u=()=>{a.removeEventListener("loadeddata",f),a.removeEventListener("error",d)},a.addEventListener("loadeddata",f,{once:!0}),a.addEventListener("error",d,{once:!0})}else{let p=Em(a)?a.href.baseVal:a.currentSrc||a.src;if(!p)return l();let f=async()=>{if(Bt(a)&&"decode"in a)try{await a.decode()}catch(m){s?.("Failed to decode image, trying to render anyway",a.dataset.originalSrc||p,m)}l()},d=m=>{s?.("Failed image load",a.dataset.originalSrc||p,m),l()};if(Bt(a)&&a.complete)return f();u=()=>{a.removeEventListener("load",f),a.removeEventListener("error",d)},a.addEventListener("load",f,{once:!0}),a.addEventListener("error",d,{once:!0})}})}async function e_(e,r){Tr(e)&&(Bt(e)||Kn(e)?await Pr(e,r):await Promise.all(["img","video"].flatMap(n=>Array.from(e.querySelectorAll(n)).map(o=>Pr(o,r)))))}var Nm=(function(){let r=0,n=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(r+=1,`u${n()}${r}`)})();function zm(e){return e?.split(",").map(r=>r.trim().replace(/"|'/g,"").toLowerCase()).filter(Boolean)}var mm=0;function t_(e){let r=`${km}[#${mm}]`;return mm++,{time:n=>e&&console.time(`${r} ${n}`),timeEnd:n=>e&&console.timeEnd(`${r} ${n}`),warn:(...n)=>e&&qx(...n)}}function r_(e){return{cache:e?"no-cache":"force-cache"}}async function za(e,r){return zx(e)?e:n_(e,{...r,autoDestruct:!0})}async function n_(e,r){let{scale:n=1,workerUrl:o,workerNumber:t=1}=r||{},i=!!r?.debug,s=r?.features??!0,a=e.ownerDocument??(ct?window.document:void 0),c=e.ownerDocument?.defaultView??(ct?window:void 0),u=new Map,l={width:0,height:0,quality:1,type:"image/png",scale:n,backgroundColor:null,style:null,filter:null,maximumCanvasSize:0,timeout:3e4,progress:null,debug:i,fetch:{requestInit:r_(r?.fetch?.bypassingCache),placeholderImage:"data:image/png;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",bypassingCache:!1,...r?.fetch},fetchFn:null,font:{},drawImageInterval:100,workerUrl:null,workerNumber:t,onCloneEachNode:null,onCloneNode:null,onEmbedNode:null,onCreateForeignObjectSvg:null,includeStyleProperties:null,autoDestruct:!1,...r,__CONTEXT__:!0,log:t_(i),node:e,ownerDocument:a,ownerWindow:c,dpi:n===1?null:96*n,svgStyleElement:Dm(a),svgDefsElement:a?.createElementNS(Qn,"defs"),svgStyles:new Map,defaultComputedStyles:new Map,workers:[...Array.from({length:Ox&&o&&t?t:0})].map(()=>{try{let d=new Worker(o);return d.onmessage=async m=>{let{url:h,result:g}=m.data;g?u.get(h)?.resolve?.(g):u.get(h)?.reject?.(new Error(`Error receiving message from worker: ${h}`))},d.onmessageerror=m=>{let{url:h}=m.data;u.get(h)?.reject?.(new Error(`Error receiving message from worker: ${h}`))},d}catch(d){return l.log.warn("Failed to new Worker",d),null}}).filter(Boolean),fontFamilies:new Map,fontCssTexts:new Map,acceptOfImage:`${[Gx(a)&&"image/webp","image/svg+xml","image/*","*/*"].filter(Boolean).join(",")};q=0.8`,requests:u,drawImageCount:0,tasks:[],features:s,isEnable:d=>d==="restoreScrollPosition"?typeof s=="boolean"?!1:s[d]??!1:typeof s=="boolean"?s:s[d]??!0,shadowRoots:[]};l.log.time("wait until load"),await e_(e,{timeout:l.timeout,onWarn:l.log.warn}),l.log.timeEnd("wait until load");let{width:p,height:f}=i_(e,l);return l.width=p,l.height=f,l}function Dm(e){if(!e)return;let r=e.createElement("style"),n=r.ownerDocument.createTextNode(`
|
|
128
|
+
`,xh=typeof self<"u"&&self.Blob&&new Blob([hm],{type:"text/javascript;charset=utf-8"});function Sx(e){let r;try{if(r=xh&&(self.URL||self.webkitURL).createObjectURL(xh),!r)throw"";let n=new Worker(r,{name:e?.name});return n.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(r)}),n}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(hm),{name:e?.name})}finally{r&&(self.URL||self.webkitURL).revokeObjectURL(r)}}var sa=class{constructor(r){M(this,"pendingCanvasMutations",new Map),M(this,"rafStamps",{latestId:0,invokeId:null}),M(this,"mirror"),M(this,"mutationCb"),M(this,"resetObservers"),M(this,"frozen",!1),M(this,"locked",!1),M(this,"processMutation",(c,u)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(c)||this.pendingCanvasMutations.set(c,[]),this.pendingCanvasMutations.get(c).push(u)});let{sampling:n="all",win:o,blockClass:t,blockSelector:i,recordCanvas:s,dataURLOptions:a}=r;this.mutationCb=r.mutationCb,this.mirror=r.mirror,s&&n==="all"&&this.initCanvasMutationObserver(o,t,i),s&&typeof n=="number"&&this.initCanvasFPSObserver(n,o,t,i,{dataURLOptions:a})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(r,n,o,t,i){let s=bh(n,o,t,!0),a=new Map,c=new Sx;c.onmessage=m=>{let{id:h}=m.data;if(a.set(h,!1),!("base64"in m.data))return;let{base64:g,type:x,width:b,height:y}=m.data;this.mutationCb({id:h,type:Ft["2D"],commands:[{property:"clearRect",args:[0,0,b,y]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:g}],type:x}]},0,0]}]})};let u=1e3/r,l=0,p,f=()=>{let m=[];return n.document.querySelectorAll("canvas").forEach(h=>{xe(h,o,t,!0)||m.push(h)}),m},d=m=>{if(l&&m-l<u){p=requestAnimationFrame(d);return}l=m,f().forEach(async h=>{var g;let x=this.mirror.getId(h);if(a.get(x)||h.width===0||h.height===0)return;if(a.set(x,!0),["webgl","webgl2"].includes(h.__context)){let y=h.getContext(h.__context);((g=y?.getContextAttributes())==null?void 0:g.preserveDrawingBuffer)===!1&&y.clear(y.COLOR_BUFFER_BIT)}let b=await createImageBitmap(h);c.postMessage({id:x,bitmap:b,width:h.width,height:h.height,dataURLOptions:i.dataURLOptions},[b])}),p=requestAnimationFrame(d)};p=requestAnimationFrame(d),this.resetObservers=()=>{s(),cancelAnimationFrame(p)}}initCanvasMutationObserver(r,n,o){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let t=bh(r,n,o,!1),i=wx(this.processMutation.bind(this),r,n,o),s=_x(this.processMutation.bind(this),r,n,o);this.resetObservers=()=>{t(),i(),s()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let r=n=>{this.rafStamps.latestId=n,requestAnimationFrame(r)};requestAnimationFrame(r)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((r,n)=>{let o=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,o)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(r,n){if(this.frozen||this.locked)return;let o=this.pendingCanvasMutations.get(r);if(!o||n===-1)return;let t=o.map(s=>{let{type:a,...c}=s;return c}),{type:i}=o[0];this.mutationCb({id:n,type:i,commands:t}),this.pendingCanvasMutations.delete(r)}},aa=class{constructor(r){M(this,"trackedLinkElements",new WeakSet),M(this,"mutationCb"),M(this,"adoptedStyleSheetCb"),M(this,"styleMirror",new ea),this.mutationCb=r.mutationCb,this.adoptedStyleSheetCb=r.adoptedStyleSheetCb}attachLinkElement(r,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(r)}trackLinkElement(r){this.trackedLinkElements.has(r)||(this.trackedLinkElements.add(r),this.trackStylesheetInLinkElement(r))}adoptStyleSheets(r,n){if(r.length===0)return;let o={id:n,styleIds:[]},t=[];for(let i of r){let s;this.styleMirror.has(i)?s=this.styleMirror.getId(i):(s=this.styleMirror.add(i),t.push({styleId:s,rules:Array.from(i.rules||CSSRule,(a,c)=>({rule:Eh(a,i.href),index:c}))})),o.styleIds.push(s)}t.length>0&&(o.styles=t),this.adoptedStyleSheetCb(o)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(r){}},la=class{constructor(){M(this,"nodeMap",new WeakMap),M(this,"active",!1)}inOtherBuffer(r,n){let o=this.nodeMap.get(r);return o&&Array.from(o).some(t=>t!==n)}add(r,n){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(r,(this.nodeMap.get(r)||new Set).add(n))}destroy(){}},le,Nn,Hs,Un=!1;try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=((Qf=e.contentWindow)==null?void 0:Qf.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}var je=Mb();function qe(e={}){let{emit:r,checkoutEveryNms:n,checkoutEveryNth:o,blockClass:t="rr-block",blockSelector:i=null,ignoreClass:s="rr-ignore",ignoreSelector:a=null,maskTextClass:c="rr-mask",maskTextSelector:u=null,inlineStylesheet:l=!0,maskAllInputs:p,maskInputOptions:f,slimDOMOptions:d,maskInputFn:m,maskTextFn:h,hooks:g,packFn:x,sampling:b={},dataURLOptions:y={},mousemoveWait:_,recordDOM:v=!0,recordCanvas:w=!1,recordCrossOriginIframes:S=!1,recordAfter:C=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:P=!1,collectFonts:O=!1,inlineImages:B=!1,plugins:j,keepIframeSrcFn:E=()=>!1,ignoreCSSAttributes:Me=new Set([]),errorHandler:Ne}=e;rx(Ne);let K=S?window.parent===window:!0,H=!1;if(!K)try{window.parent.document&&(H=!1)}catch{H=!0}if(K&&!r)throw new Error("emit function is required");if(!K&&!H)return()=>{};_!==void 0&&b.mousemove===void 0&&(b.mousemove=_),je.reset();let ue=p===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:f!==void 0?f:{password:!0},ge=Th(d);Kw();let de,Y=0,st=F=>{for(let fe of j||[])fe.eventProcessor&&(F=fe.eventProcessor(F));return x&&!H&&(F=x(F)),F};le=(F,fe)=>{var Q;let ae=F;if(ae.timestamp=Cr(),(Q=xt[0])!=null&&Q.isFrozen()&&ae.type!==J.FullSnapshot&&!(ae.type===J.IncrementalSnapshot&&ae.data.source===q.Mutation)&&xt.forEach(ze=>ze.unfreeze()),K)r?.(st(ae),fe);else if(H){let ze={type:"rrweb",event:st(ae),origin:window.location.origin,isCheckout:fe};window.parent.postMessage(ze,"*")}if(ae.type===J.FullSnapshot)de=ae,Y=0;else if(ae.type===J.IncrementalSnapshot){if(ae.data.source===q.Mutation&&ae.data.isAttachIframe)return;Y++;let ze=o&&Y>=o,ee=n&&ae.timestamp-de.timestamp>n;(ze||ee)&&Nn(!0)}};let T=F=>{le({type:J.IncrementalSnapshot,data:{source:q.Mutation,...F}})},We=F=>le({type:J.IncrementalSnapshot,data:{source:q.Scroll,...F}}),Re=F=>le({type:J.IncrementalSnapshot,data:{source:q.CanvasMutation,...F}}),_r=F=>le({type:J.IncrementalSnapshot,data:{source:q.AdoptedStyleSheet,...F}}),be=new aa({mutationCb:T,adoptedStyleSheetCb:_r}),Ue=new ia({mirror:je,mutationCb:T,stylesheetManager:be,recordCrossOriginIframes:S,wrappedEmit:le});for(let F of j||[])F.getMirror&&F.getMirror({nodeMirror:je,crossOriginIframeMirror:Ue.crossOriginIframeMirror,crossOriginIframeStyleMirror:Ue.crossOriginIframeStyleMirror});let wt=new la;Hs=new sa({recordCanvas:w,mutationCb:Re,win:window,blockClass:t,blockSelector:i,mirror:je,sampling:b.canvas,dataURLOptions:y});let at=new oa({mutationCb:T,scrollCb:We,bypassOptions:{blockClass:t,blockSelector:i,maskTextClass:c,maskTextSelector:u,inlineStylesheet:l,maskInputOptions:ue,dataURLOptions:y,maskTextFn:h,maskInputFn:m,recordCanvas:w,inlineImages:B,sampling:b,slimDOMOptions:ge,iframeManager:Ue,stylesheetManager:be,canvasManager:Hs,keepIframeSrcFn:E,processedNodeManager:wt},mirror:je});Nn=(F=!1)=>{if(!v)return;le({type:J.Meta,data:{href:window.location.href,width:Qh(),height:Yh()}},F),be.reset(),at.init(),xt.forEach(Q=>Q.lock());let fe=aw(document,{mirror:je,blockClass:t,blockSelector:i,maskTextClass:c,maskTextSelector:u,inlineStylesheet:l,maskAllInputs:ue,maskTextFn:h,maskInputFn:m,slimDOM:ge,dataURLOptions:y,recordCanvas:w,inlineImages:B,onSerialize:Q=>{rm(Q,je)&&Ue.addIframe(Q),nm(Q,je)&&be.trackLinkElement(Q),Qs(Q)&&at.addShadowRoot(V.shadowRoot(Q),document)},onIframeLoad:(Q,ae)=>{Ue.attachIframe(Q,ae),at.observeAttachShadow(Q)},onStylesheetLoad:(Q,ae)=>{be.attachLinkElement(Q,ae)},keepIframeSrcFn:E});if(!fe)return console.warn("Failed to snapshot the document");le({type:J.FullSnapshot,data:{node:fe,initialOffset:Kh(window)}},F),xt.forEach(Q=>Q.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&be.adoptStyleSheets(document.adoptedStyleSheets,je.getId(document))};try{let F=[],fe=ae=>{var ze;return G(gx)({mutationCb:T,mousemoveCb:(ee,Zo)=>le({type:J.IncrementalSnapshot,data:{source:Zo,positions:ee}}),mouseInteractionCb:ee=>le({type:J.IncrementalSnapshot,data:{source:q.MouseInteraction,...ee}}),scrollCb:We,viewportResizeCb:ee=>le({type:J.IncrementalSnapshot,data:{source:q.ViewportResize,...ee}}),inputCb:ee=>le({type:J.IncrementalSnapshot,data:{source:q.Input,...ee}}),mediaInteractionCb:ee=>le({type:J.IncrementalSnapshot,data:{source:q.MediaInteraction,...ee}}),styleSheetRuleCb:ee=>le({type:J.IncrementalSnapshot,data:{source:q.StyleSheetRule,...ee}}),styleDeclarationCb:ee=>le({type:J.IncrementalSnapshot,data:{source:q.StyleDeclaration,...ee}}),canvasMutationCb:Re,fontCb:ee=>le({type:J.IncrementalSnapshot,data:{source:q.Font,...ee}}),selectionCb:ee=>{le({type:J.IncrementalSnapshot,data:{source:q.Selection,...ee}})},customElementCb:ee=>{le({type:J.IncrementalSnapshot,data:{source:q.CustomElement,...ee}})},blockClass:t,ignoreClass:s,ignoreSelector:a,maskTextClass:c,maskTextSelector:u,maskInputOptions:ue,inlineStylesheet:l,sampling:b,recordDOM:v,recordCanvas:w,inlineImages:B,userTriggeredOnInput:P,collectFonts:O,doc:ae,maskInputFn:m,maskTextFn:h,keepIframeSrcFn:E,blockSelector:i,slimDOMOptions:ge,dataURLOptions:y,mirror:je,iframeManager:Ue,stylesheetManager:be,shadowDomManager:at,processedNodeManager:wt,canvasManager:Hs,ignoreCSSAttributes:Me,plugins:((ze=j?.filter(ee=>ee.observer))==null?void 0:ze.map(ee=>({observer:ee.observer,options:ee.options,callback:Zo=>le({type:J.Plugin,data:{plugin:ee.name,payload:Zo}})})))||[]},g)};Ue.addLoadListener(ae=>{try{F.push(fe(ae.contentDocument))}catch(ze){console.warn(ze)}});let Q=()=>{Nn(),F.push(fe(document)),Un=!0};return["interactive","complete"].includes(document.readyState)?Q():(F.push(we("DOMContentLoaded",()=>{le({type:J.DomContentLoaded,data:{}}),C==="DOMContentLoaded"&&Q()})),F.push(we("load",()=>{le({type:J.Load,data:{}}),C==="load"&&Q()},window))),()=>{F.forEach(ae=>{try{ae()}catch(ze){String(ze).toLowerCase().includes("cross-origin")||console.warn(ze)}}),wt.destroy(),Un=!1,nx()}}catch(F){console.warn(F)}}qe.addCustomEvent=(e,r)=>{if(!Un)throw new Error("please add custom event after start recording");le({type:J.Custom,data:{tag:e,payload:r}})};qe.freezePage=()=>{xt.forEach(e=>e.freeze())};qe.takeFullSnapshot=e=>{if(!Un)throw new Error("please take full snapshot after start recording");Nn(e)};qe.mirror=je;var _h;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(_h||(_h={}));var D0=5*1e3;var{addCustomEvent:T0}=qe,{freezePage:R0}=qe,{takeFullSnapshot:P0}=qe;function $x(e,r){return e[13]=1,e[14]=r>>8,e[15]=r&255,e[16]=r>>8,e[17]=r&255,e}var xm=112,_m=72,Sm=89,$m=115,Ia;function kx(){let e=new Int32Array(256);for(let r=0;r<256;r++){let n=r;for(let o=0;o<8;o++)n=n&1?3988292384^n>>>1:n>>>1;e[r]=n}return e}function Ix(e){let r=-1;Ia||(Ia=kx());for(let n=0;n<e.length;n++)r=Ia[(r^e[n])&255]^r>>>8;return r^-1}function Ex(e){let r=e.length-1;for(let n=r;n>=4;n--)if(e[n-4]===9&&e[n-3]===xm&&e[n-2]===_m&&e[n-1]===Sm&&e[n]===$m)return n-3;return 0}function Cx(e,r,n=!1){let o=new Uint8Array(13);r*=39.3701,o[0]=xm,o[1]=_m,o[2]=Sm,o[3]=$m,o[4]=r>>>24,o[5]=r>>>16,o[6]=r>>>8,o[7]=r&255,o[8]=o[4],o[9]=o[5],o[10]=o[6],o[11]=o[7],o[12]=1;let t=Ix(o),i=new Uint8Array(4);if(i[0]=t>>>24,i[1]=t>>>16,i[2]=t>>>8,i[3]=t&255,n){let s=Ex(e);return e.set(o,s),e.set(i,s+13),e}else{let s=new Uint8Array(4);s[0]=0,s[1]=0,s[2]=0,s[3]=9;let a=new Uint8Array(54);return a.set(e,0),a.set(s,33),a.set(o,37),a.set(i,50),a}}var km="[modern-screenshot]",ct=typeof window<"u",Ox=ct&&"Worker"in window,Nx=ct&&"atob"in window,M0=ct&&"btoa"in window,Oa=ct?window.navigator?.userAgent:"",Im=Oa.includes("Chrome"),Xn=Oa.includes("AppleWebKit")&&!Im,Na=Oa.includes("Firefox"),zx=e=>e&&"__CONTEXT__"in e,Dx=e=>e.constructor.name==="CSSFontFaceRule",Tx=e=>e.constructor.name==="CSSImportRule",Rx=e=>e.constructor.name==="CSSLayerBlockRule",Ge=e=>e.nodeType===1,Ar=e=>typeof e.className=="object",Em=e=>e.tagName==="image",Px=e=>e.tagName==="use",Tr=e=>Ge(e)&&typeof e.style<"u"&&!Ar(e),Ax=e=>e.nodeType===8,Mx=e=>e.nodeType===3,Bt=e=>e.tagName==="IMG",Kn=e=>e.tagName==="VIDEO",Ux=e=>e.tagName==="CANVAS",jx=e=>e.tagName==="TEXTAREA",Lx=e=>e.tagName==="INPUT",Fx=e=>e.tagName==="STYLE",Zx=e=>e.tagName==="SCRIPT",Bx=e=>e.tagName==="SELECT",Wx=e=>e.tagName==="SLOT",Vx=e=>e.tagName==="IFRAME",qx=(...e)=>console.warn(km,...e);function Gx(e){let r=e?.createElement?.("canvas");return r&&(r.height=r.width=1),!!r&&"toDataURL"in r&&!!r.toDataURL("image/webp").includes("image/webp")}var Ea=e=>e.startsWith("data:");function Cm(e,r){if(e.match(/^[a-z]+:\/\//i))return e;if(ct&&e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i)||!ct)return e;let n=Yn().implementation.createHTMLDocument(),o=n.createElement("base"),t=n.createElement("a");return n.head.appendChild(o),n.body.appendChild(t),r&&(o.href=r),t.href=e,t.href}function Yn(e){return(e&&Ge(e)?e?.ownerDocument:e)??window.document}var Qn="http://www.w3.org/2000/svg";function Jx(e,r,n){let o=Yn(n).createElementNS(Qn,"svg");return o.setAttributeNS(null,"width",e.toString()),o.setAttributeNS(null,"height",r.toString()),o.setAttributeNS(null,"viewBox",`0 0 ${e} ${r}`),o}function Hx(e,r){let n=new XMLSerializer().serializeToString(e);return r&&(n=n.replace(/[\u0000-\u0008\v\f\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]/gu,"")),`data:image/svg+xml;charset=utf-8,${encodeURIComponent(n)}`}async function Xx(e,r="image/png",n=1){try{return await new Promise((o,t)=>{e.toBlob(i=>{i?o(i):t(new Error("Blob is null"))},r,n)})}catch(o){if(Nx)return Kx(e.toDataURL(r,n));throw o}}function Kx(e){let[r,n]=e.split(","),o=r.match(/data:(.+);/)?.[1]??void 0,t=window.atob(n),i=t.length,s=new Uint8Array(i);for(let a=0;a<i;a+=1)s[a]=t.charCodeAt(a);return new Blob([s],{type:o})}function Om(e,r){return new Promise((n,o)=>{let t=new FileReader;t.onload=()=>n(t.result),t.onerror=()=>o(t.error),t.onabort=()=>o(new Error(`Failed read blob to ${r}`)),r==="dataUrl"?t.readAsDataURL(e):r==="arrayBuffer"&&t.readAsArrayBuffer(e)})}var Yx=e=>Om(e,"dataUrl"),Qx=e=>Om(e,"arrayBuffer");function Zt(e,r){let n=Yn(r).createElement("img");return n.decoding="sync",n.loading="eager",n.src=e,n}function Rr(e,r){return new Promise(n=>{let{timeout:o,ownerDocument:t,onError:i,onWarn:s}=r??{},a=typeof e=="string"?Zt(e,Yn(t)):e,c=null,u=null;function l(){n(a),c&&clearTimeout(c),u?.()}if(o&&(c=setTimeout(l,o)),Kn(a)){let p=a.currentSrc||a.src;if(!p)return a.poster?Rr(a.poster,r).then(n):l();if(a.readyState>=2)return l();let f=l,d=m=>{s?.("Failed video load",p,m),i?.(m),l()};u=()=>{a.removeEventListener("loadeddata",f),a.removeEventListener("error",d)},a.addEventListener("loadeddata",f,{once:!0}),a.addEventListener("error",d,{once:!0})}else{let p=Em(a)?a.href.baseVal:a.currentSrc||a.src;if(!p)return l();let f=async()=>{if(Bt(a)&&"decode"in a)try{await a.decode()}catch(m){s?.("Failed to decode image, trying to render anyway",a.dataset.originalSrc||p,m)}l()},d=m=>{s?.("Failed image load",a.dataset.originalSrc||p,m),l()};if(Bt(a)&&a.complete)return f();u=()=>{a.removeEventListener("load",f),a.removeEventListener("error",d)},a.addEventListener("load",f,{once:!0}),a.addEventListener("error",d,{once:!0})}})}async function e_(e,r){Tr(e)&&(Bt(e)||Kn(e)?await Rr(e,r):await Promise.all(["img","video"].flatMap(n=>Array.from(e.querySelectorAll(n)).map(o=>Rr(o,r)))))}var Nm=(function(){let r=0,n=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(r+=1,`u${n()}${r}`)})();function zm(e){return e?.split(",").map(r=>r.trim().replace(/"|'/g,"").toLowerCase()).filter(Boolean)}var mm=0;function t_(e){let r=`${km}[#${mm}]`;return mm++,{time:n=>e&&console.time(`${r} ${n}`),timeEnd:n=>e&&console.timeEnd(`${r} ${n}`),warn:(...n)=>e&&qx(...n)}}function r_(e){return{cache:e?"no-cache":"force-cache"}}async function za(e,r){return zx(e)?e:n_(e,{...r,autoDestruct:!0})}async function n_(e,r){let{scale:n=1,workerUrl:o,workerNumber:t=1}=r||{},i=!!r?.debug,s=r?.features??!0,a=e.ownerDocument??(ct?window.document:void 0),c=e.ownerDocument?.defaultView??(ct?window:void 0),u=new Map,l={width:0,height:0,quality:1,type:"image/png",scale:n,backgroundColor:null,style:null,filter:null,maximumCanvasSize:0,timeout:3e4,progress:null,debug:i,fetch:{requestInit:r_(r?.fetch?.bypassingCache),placeholderImage:"data:image/png;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",bypassingCache:!1,...r?.fetch},fetchFn:null,font:{},drawImageInterval:100,workerUrl:null,workerNumber:t,onCloneEachNode:null,onCloneNode:null,onEmbedNode:null,onCreateForeignObjectSvg:null,includeStyleProperties:null,autoDestruct:!1,...r,__CONTEXT__:!0,log:t_(i),node:e,ownerDocument:a,ownerWindow:c,dpi:n===1?null:96*n,svgStyleElement:Dm(a),svgDefsElement:a?.createElementNS(Qn,"defs"),svgStyles:new Map,defaultComputedStyles:new Map,workers:[...Array.from({length:Ox&&o&&t?t:0})].map(()=>{try{let d=new Worker(o);return d.onmessage=async m=>{let{url:h,result:g}=m.data;g?u.get(h)?.resolve?.(g):u.get(h)?.reject?.(new Error(`Error receiving message from worker: ${h}`))},d.onmessageerror=m=>{let{url:h}=m.data;u.get(h)?.reject?.(new Error(`Error receiving message from worker: ${h}`))},d}catch(d){return l.log.warn("Failed to new Worker",d),null}}).filter(Boolean),fontFamilies:new Map,fontCssTexts:new Map,acceptOfImage:`${[Gx(a)&&"image/webp","image/svg+xml","image/*","*/*"].filter(Boolean).join(",")};q=0.8`,requests:u,drawImageCount:0,tasks:[],features:s,isEnable:d=>d==="restoreScrollPosition"?typeof s=="boolean"?!1:s[d]??!1:typeof s=="boolean"?s:s[d]??!0,shadowRoots:[]};l.log.time("wait until load"),await e_(e,{timeout:l.timeout,onWarn:l.log.warn}),l.log.timeEnd("wait until load");let{width:p,height:f}=i_(e,l);return l.width=p,l.height=f,l}function Dm(e){if(!e)return;let r=e.createElement("style"),n=r.ownerDocument.createTextNode(`
|
|
129
129
|
.______background-clip--text {
|
|
130
130
|
background-clip: text;
|
|
131
131
|
-webkit-background-clip: text;
|
|
132
132
|
}
|
|
133
|
-
`);return r.appendChild(n),r}function i_(e,r){let{width:n,height:o}=r;if(Ge(e)&&(!n||!o)){let t=e.getBoundingClientRect();n=n||t.width||Number(e.getAttribute("width"))||0,o=o||t.height||Number(e.getAttribute("height"))||0}return{width:n,height:o}}async function o_(e,r){let{log:n,timeout:o,drawImageCount:t,drawImageInterval:i}=r;n.time("image to canvas");let s=await
|
|
134
|
-
`),b=a.get(x);b||(b=[],a.set(x,b)),b.push(`.${d[0]}${l}`)}g_.forEach(u),n&&v_.forEach(u)}var gm=new Set(["symbol"]);async function vm(e,r,n,o,t){if(Ge(n)&&(Fx(n)||Zx(n))||o.filter&&!o.filter(n))return;gm.has(r.nodeName)||gm.has(n.nodeName)?o.currentParentNodeStyle=void 0:o.currentParentNodeStyle=o.currentNodeStyle;let i=await Da(n,o,!1,t);o.isEnable("restoreScrollPosition")&&b_(e,i),r.appendChild(i)}async function ym(e,r,n,o){let t=e.firstChild;Ge(e)&&e.shadowRoot&&(t=e.shadowRoot?.firstChild,n.shadowRoots.push(e.shadowRoot));for(let i=t;i;i=i.nextSibling)if(!Ax(i))if(Ge(i)&&Wx(i)&&typeof i.assignedNodes=="function"){let s=i.assignedNodes();for(let a=0;a<s.length;a++)await vm(e,r,s[a],n,o)}else await vm(e,r,i,n,o)}function b_(e,r){if(!Tr(e)||!Tr(r))return;let{scrollTop:n,scrollLeft:o}=e;if(!n&&!o)return;let{transform:t}=r.style,i=new DOMMatrix(t),{a:s,b:a,c,d:u}=i;i.a=1,i.b=0,i.c=0,i.d=1,i.translateSelf(-o,-n),i.a=s,i.b=a,i.c=c,i.d=u,r.style.transform=i.toString()}function w_(e,r){let{backgroundColor:n,width:o,height:t,style:i}=r,s=e.style;if(n&&s.setProperty("background-color",n,"important"),o&&s.setProperty("width",`${o}px`,"important"),t&&s.setProperty("height",`${t}px`,"important"),i)for(let a in i)s[a]=i[a]}var x_=/^[\w-:]+$/;async function Da(e,r,n=!1,o){let{ownerDocument:t,ownerWindow:i,fontFamilies:s,onCloneEachNode:a}=r;if(t&&Mx(e))return o&&/\S/.test(e.data)&&o(e.data),t.createTextNode(e.data);if(t&&i&&Ge(e)&&(Tr(e)||Ar(e))){let u=await u_(e,r);if(r.isEnable("removeAbnormalAttributes")){let h=u.getAttributeNames();for(let g=h.length,x=0;x<g;x++){let b=h[x];x_.test(b)||u.removeAttribute(b)}}let l=r.currentNodeStyle=h_(e,u,n,r);n&&w_(u,r);let p=!1;if(r.isEnable("copyScrollbar")){let h=[l.get("overflow-x")?.[0],l.get("overflow-y")?.[0]];p=h.includes("scroll")||(h.includes("auto")||h.includes("overlay"))&&(e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth)}let f=l.get("text-transform")?.[0],d=zm(l.get("font-family")?.[0]),m=d?h=>{f==="uppercase"?h=h.toUpperCase():f==="lowercase"?h=h.toLowerCase():f==="capitalize"&&(h=h[0].toUpperCase()+h.substring(1)),d.forEach(g=>{let x=s.get(g);x||s.set(g,x=new Set),h.split("").forEach(b=>x.add(b))})}:void 0;return y_(e,u,p,r,m),m_(e,u),Kn(e)||await ym(e,u,r,m),await a?.(u),u}let c=e.cloneNode(!1);return await ym(e,c,r),await a?.(c),c}function __(e){if(e.ownerDocument=void 0,e.ownerWindow=void 0,e.svgStyleElement=void 0,e.svgDefsElement=void 0,e.svgStyles.clear(),e.defaultComputedStyles.clear(),e.sandbox){try{e.sandbox.remove()}catch(r){e.log.warn("Failed to destroyContext",r)}e.sandbox=void 0}e.workers=[],e.fontFamilies.clear(),e.fontCssTexts.clear(),e.requests.clear(),e.tasks=[],e.shadowRoots=[]}function S_(e){let{url:r,timeout:n,responseType:o,...t}=e,i=new AbortController,s=n?setTimeout(()=>i.abort(),n):void 0;return fetch(r,{signal:i.signal,...t}).then(a=>{if(!a.ok)throw new Error("Failed fetch, not 2xx response",{cause:a});switch(o){case"arrayBuffer":return a.arrayBuffer();case"dataUrl":return a.blob().then(Yx);default:return a.text()}}).finally(()=>clearTimeout(s))}function
|
|
135
|
-
`))}else{let c=Array.from(n.styleSheets).filter(d=>{try{return"cssRules"in d&&!!d.cssRules.length}catch(m){return r.log.warn(`Error while reading CSS rules from ${d.href}`,m),!1}}),u=n.implementation.createHTMLDocument(""),l=u.createElement("style");u.head.appendChild(l);let p=l.sheet;await Promise.all(c.flatMap(d=>Array.from(d.cssRules).map(async m=>{if(Tx(m)){let h=m.href,g="";try{g=await
|
|
133
|
+
`);return r.appendChild(n),r}function i_(e,r){let{width:n,height:o}=r;if(Ge(e)&&(!n||!o)){let t=e.getBoundingClientRect();n=n||t.width||Number(e.getAttribute("width"))||0,o=o||t.height||Number(e.getAttribute("height"))||0}return{width:n,height:o}}async function o_(e,r){let{log:n,timeout:o,drawImageCount:t,drawImageInterval:i}=r;n.time("image to canvas");let s=await Rr(e,{timeout:o,onWarn:r.log.warn}),{canvas:a,context2d:c}=s_(e.ownerDocument,r),u=()=>{try{c?.drawImage(s,0,0,a.width,a.height)}catch(l){r.log.warn("Failed to drawImage",l)}};if(u(),r.isEnable("fixSvgXmlDecode"))for(let l=0;l<t;l++)await new Promise(p=>{setTimeout(()=>{c?.clearRect(0,0,a.width,a.height),u(),p()},l+i)});return r.drawImageCount=0,n.timeEnd("image to canvas"),a}function s_(e,r){let{width:n,height:o,scale:t,backgroundColor:i,maximumCanvasSize:s}=r,a=e.createElement("canvas");a.width=Math.floor(n*t),a.height=Math.floor(o*t),a.style.width=`${n}px`,a.style.height=`${o}px`,s&&(a.width>s||a.height>s)&&(a.width>s&&a.height>s?a.width>a.height?(a.height*=s/a.width,a.width=s):(a.width*=s/a.height,a.height=s):a.width>s?(a.height*=s/a.width,a.width=s):(a.width*=s/a.height,a.height=s));let c=a.getContext("2d");return c&&i&&(c.fillStyle=i,c.fillRect(0,0,a.width,a.height)),{canvas:a,context2d:c}}function Tm(e,r){if(e.ownerDocument)try{let i=e.toDataURL();if(i!=="data:,")return Zt(i,e.ownerDocument)}catch(i){r.log.warn("Failed to clone canvas",i)}let n=e.cloneNode(!1),o=e.getContext("2d"),t=n.getContext("2d");try{return o&&t&&t.putImageData(o.getImageData(0,0,e.width,e.height),0,0),n}catch(i){r.log.warn("Failed to clone canvas",i)}return n}function a_(e,r){try{if(e?.contentDocument?.documentElement)return Da(e.contentDocument.documentElement,r)}catch(n){r.log.warn("Failed to clone iframe",n)}return e.cloneNode(!1)}function l_(e){let r=e.cloneNode(!1);return e.currentSrc&&e.currentSrc!==e.src&&(r.src=e.currentSrc,r.srcset=""),r.loading==="lazy"&&(r.loading="eager"),r}async function c_(e,r){if(e.ownerDocument&&!e.currentSrc&&e.poster)return Zt(e.poster,e.ownerDocument);let n=e.cloneNode(!1);n.crossOrigin="anonymous",e.currentSrc&&e.currentSrc!==e.src&&(n.src=e.currentSrc);let o=n.ownerDocument;if(o){let t=!0;if(await Rr(n,{onError:()=>t=!1,onWarn:r.log.warn}),!t)return e.poster?Zt(e.poster,e.ownerDocument):n;n.currentTime=e.currentTime,await new Promise(s=>{n.addEventListener("seeked",s,{once:!0})});let i=o.createElement("canvas");i.width=e.offsetWidth,i.height=e.offsetHeight;try{let s=i.getContext("2d");s&&s.drawImage(n,0,0,i.width,i.height)}catch(s){return r.log.warn("Failed to clone video",s),e.poster?Zt(e.poster,e.ownerDocument):n}return Tm(i,r)}return n}function u_(e,r){return Ux(e)?Tm(e,r):Vx(e)?a_(e,r):Bt(e)?l_(e):Kn(e)?c_(e,r):e.cloneNode(!1)}function d_(e){let r=e.sandbox;if(!r){let{ownerDocument:n}=e;try{n&&(r=n.createElement("iframe"),r.id=`__SANDBOX__${Nm()}`,r.width="0",r.height="0",r.style.visibility="hidden",r.style.position="fixed",n.body.appendChild(r),r.srcdoc='<!DOCTYPE html><meta charset="UTF-8"><title></title><body>',e.sandbox=r)}catch(o){e.log.warn("Failed to getSandBox",o)}}return r}var f_=["width","height","-webkit-text-fill-color"],p_=["stroke","fill"];function Rm(e,r,n){let{defaultComputedStyles:o}=n,t=e.nodeName.toLowerCase(),i=Ar(e)&&t!=="svg",s=i?p_.map(h=>[h,e.getAttribute(h)]).filter(([,h])=>h!==null):[],a=[i&&"svg",t,s.map((h,g)=>`${h}=${g}`).join(","),r].filter(Boolean).join(":");if(o.has(a))return o.get(a);let u=d_(n)?.contentWindow;if(!u)return new Map;let l=u?.document,p,f;i?(p=l.createElementNS(Qn,"svg"),f=p.ownerDocument.createElementNS(p.namespaceURI,t),s.forEach(([h,g])=>{f.setAttributeNS(null,h,g)}),p.appendChild(f)):p=f=l.createElement(t),f.textContent=" ",l.body.appendChild(p);let d=u.getComputedStyle(f,r),m=new Map;for(let h=d.length,g=0;g<h;g++){let x=d.item(g);f_.includes(x)||m.set(x,d.getPropertyValue(x))}return l.body.removeChild(p),o.set(a,m),m}function Pm(e,r,n){let o=new Map,t=[],i=new Map;if(n)for(let a of n)s(a);else for(let a=e.length,c=0;c<a;c++){let u=e.item(c);s(u)}for(let a=t.length,c=0;c<a;c++)i.get(t[c])?.forEach((u,l)=>o.set(l,u));function s(a){let c=e.getPropertyValue(a),u=e.getPropertyPriority(a),l=a.lastIndexOf("-"),p=l>-1?a.substring(0,l):void 0;if(p){let f=i.get(p);f||(f=new Map,i.set(p,f)),f.set(a,[c,u])}r.get(a)===c&&!u||(p?t.push(p):o.set(a,[c,u]))}return o}function h_(e,r,n,o){let{ownerWindow:t,includeStyleProperties:i,currentParentNodeStyle:s}=o,a=r.style,c=t.getComputedStyle(e),u=Rm(e,null,o);s?.forEach((p,f)=>{u.delete(f)});let l=Pm(c,u,i);l.delete("transition-property"),l.delete("all"),l.delete("d"),l.delete("content"),n&&(l.delete("position"),l.delete("margin-top"),l.delete("margin-right"),l.delete("margin-bottom"),l.delete("margin-left"),l.delete("margin-block-start"),l.delete("margin-block-end"),l.delete("margin-inline-start"),l.delete("margin-inline-end"),l.set("box-sizing",["border-box",""])),l.get("background-clip")?.[0]==="text"&&r.classList.add("______background-clip--text"),Im&&(l.has("font-kerning")||l.set("font-kerning",["normal",""]),(l.get("overflow-x")?.[0]==="hidden"||l.get("overflow-y")?.[0]==="hidden")&&l.get("text-overflow")?.[0]==="ellipsis"&&e.scrollWidth===e.clientWidth&&l.set("text-overflow",["clip",""]));for(let p=a.length,f=0;f<p;f++)a.removeProperty(a.item(f));return l.forEach(([p,f],d)=>{a.setProperty(d,p,f)}),l}function m_(e,r){(jx(e)||Lx(e)||Bx(e))&&r.setAttribute("value",e.value)}var g_=["::before","::after"],v_=["::-webkit-scrollbar","::-webkit-scrollbar-button","::-webkit-scrollbar-thumb","::-webkit-scrollbar-track","::-webkit-scrollbar-track-piece","::-webkit-scrollbar-corner","::-webkit-resizer"];function y_(e,r,n,o,t){let{ownerWindow:i,svgStyleElement:s,svgStyles:a,currentNodeStyle:c}=o;if(!s||!i)return;function u(l){let p=i.getComputedStyle(e,l),f=p.getPropertyValue("content");if(!f||f==="none")return;t?.(f),f=f.replace(/(')|(")|(counter\(.+\))/g,"");let d=[Nm()],m=Rm(e,l,o);c?.forEach((y,_)=>{m.delete(_)});let h=Pm(p,m,o.includeStyleProperties);h.delete("content"),h.delete("-webkit-locale"),h.get("background-clip")?.[0]==="text"&&r.classList.add("______background-clip--text");let g=[`content: '${f}';`];if(h.forEach(([y,_],v)=>{g.push(`${v}: ${y}${_?" !important":""};`)}),g.length===1)return;try{r.className=[r.className,...d].join(" ")}catch(y){o.log.warn("Failed to copyPseudoClass",y);return}let x=g.join(`
|
|
134
|
+
`),b=a.get(x);b||(b=[],a.set(x,b)),b.push(`.${d[0]}${l}`)}g_.forEach(u),n&&v_.forEach(u)}var gm=new Set(["symbol"]);async function vm(e,r,n,o,t){if(Ge(n)&&(Fx(n)||Zx(n))||o.filter&&!o.filter(n))return;gm.has(r.nodeName)||gm.has(n.nodeName)?o.currentParentNodeStyle=void 0:o.currentParentNodeStyle=o.currentNodeStyle;let i=await Da(n,o,!1,t);o.isEnable("restoreScrollPosition")&&b_(e,i),r.appendChild(i)}async function ym(e,r,n,o){let t=e.firstChild;Ge(e)&&e.shadowRoot&&(t=e.shadowRoot?.firstChild,n.shadowRoots.push(e.shadowRoot));for(let i=t;i;i=i.nextSibling)if(!Ax(i))if(Ge(i)&&Wx(i)&&typeof i.assignedNodes=="function"){let s=i.assignedNodes();for(let a=0;a<s.length;a++)await vm(e,r,s[a],n,o)}else await vm(e,r,i,n,o)}function b_(e,r){if(!Tr(e)||!Tr(r))return;let{scrollTop:n,scrollLeft:o}=e;if(!n&&!o)return;let{transform:t}=r.style,i=new DOMMatrix(t),{a:s,b:a,c,d:u}=i;i.a=1,i.b=0,i.c=0,i.d=1,i.translateSelf(-o,-n),i.a=s,i.b=a,i.c=c,i.d=u,r.style.transform=i.toString()}function w_(e,r){let{backgroundColor:n,width:o,height:t,style:i}=r,s=e.style;if(n&&s.setProperty("background-color",n,"important"),o&&s.setProperty("width",`${o}px`,"important"),t&&s.setProperty("height",`${t}px`,"important"),i)for(let a in i)s[a]=i[a]}var x_=/^[\w-:]+$/;async function Da(e,r,n=!1,o){let{ownerDocument:t,ownerWindow:i,fontFamilies:s,onCloneEachNode:a}=r;if(t&&Mx(e))return o&&/\S/.test(e.data)&&o(e.data),t.createTextNode(e.data);if(t&&i&&Ge(e)&&(Tr(e)||Ar(e))){let u=await u_(e,r);if(r.isEnable("removeAbnormalAttributes")){let h=u.getAttributeNames();for(let g=h.length,x=0;x<g;x++){let b=h[x];x_.test(b)||u.removeAttribute(b)}}let l=r.currentNodeStyle=h_(e,u,n,r);n&&w_(u,r);let p=!1;if(r.isEnable("copyScrollbar")){let h=[l.get("overflow-x")?.[0],l.get("overflow-y")?.[0]];p=h.includes("scroll")||(h.includes("auto")||h.includes("overlay"))&&(e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth)}let f=l.get("text-transform")?.[0],d=zm(l.get("font-family")?.[0]),m=d?h=>{f==="uppercase"?h=h.toUpperCase():f==="lowercase"?h=h.toLowerCase():f==="capitalize"&&(h=h[0].toUpperCase()+h.substring(1)),d.forEach(g=>{let x=s.get(g);x||s.set(g,x=new Set),h.split("").forEach(b=>x.add(b))})}:void 0;return y_(e,u,p,r,m),m_(e,u),Kn(e)||await ym(e,u,r,m),await a?.(u),u}let c=e.cloneNode(!1);return await ym(e,c,r),await a?.(c),c}function __(e){if(e.ownerDocument=void 0,e.ownerWindow=void 0,e.svgStyleElement=void 0,e.svgDefsElement=void 0,e.svgStyles.clear(),e.defaultComputedStyles.clear(),e.sandbox){try{e.sandbox.remove()}catch(r){e.log.warn("Failed to destroyContext",r)}e.sandbox=void 0}e.workers=[],e.fontFamilies.clear(),e.fontCssTexts.clear(),e.requests.clear(),e.tasks=[],e.shadowRoots=[]}function S_(e){let{url:r,timeout:n,responseType:o,...t}=e,i=new AbortController,s=n?setTimeout(()=>i.abort(),n):void 0;return fetch(r,{signal:i.signal,...t}).then(a=>{if(!a.ok)throw new Error("Failed fetch, not 2xx response",{cause:a});switch(o){case"arrayBuffer":return a.arrayBuffer();case"dataUrl":return a.blob().then(Yx);default:return a.text()}}).finally(()=>clearTimeout(s))}function Pr(e,r){let{url:n,requestType:o="text",responseType:t="text",imageDom:i}=r,s=n,{timeout:a,acceptOfImage:c,requests:u,fetchFn:l,fetch:{requestInit:p,bypassingCache:f,placeholderImage:d},font:m,workers:h,fontFamilies:g}=e;o==="image"&&(Xn||Na)&&e.drawImageCount++;let x=u.get(n);if(!x){f&&f instanceof RegExp&&f.test(s)&&(s+=(/\?/.test(s)?"&":"?")+new Date().getTime());let b=o.startsWith("font")&&m&&m.minify,y=new Set;b&&o.split(";")[1].split(",").forEach(S=>{g.has(S)&&g.get(S).forEach(C=>y.add(C))});let _=b&&y.size,v={url:s,timeout:a,responseType:_?"arrayBuffer":t,headers:o==="image"?{accept:c}:void 0,...p};x={type:o,resolve:void 0,reject:void 0,response:null},x.response=(async()=>{if(l&&o==="image"){let w=await l(n);if(w)return w}return!Xn&&n.startsWith("http")&&h.length?new Promise((w,S)=>{h[u.size&h.length-1].postMessage({rawUrl:n,...v}),x.resolve=w,x.reject=S}):S_(v)})().catch(w=>{if(u.delete(n),o==="image"&&d)return e.log.warn("Failed to fetch image base64, trying to use placeholder image",s),typeof d=="string"?d:d(i);throw w}),u.set(n,x)}return x.response}async function Am(e,r,n,o){if(!Mm(e))return e;for(let[t,i]of $_(e,r))try{let s=await Pr(n,{url:i,requestType:o?"image":"text",responseType:"dataUrl"});e=e.replace(k_(t),`$1${s}$3`)}catch(s){n.log.warn("Failed to fetch css data url",t,s)}return e}function Mm(e){return/url\((['"]?)([^'"]+?)\1\)/.test(e)}var Um=/url\((['"]?)([^'"]+?)\1\)/g;function $_(e,r){let n=[];return e.replace(Um,(o,t,i)=>(n.push([i,Cm(i,r)]),o)),n.filter(([o])=>!Ea(o))}function k_(e){let r=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${r})(['"]?\\))`,"g")}var I_=["background-image","border-image-source","-webkit-border-image","-webkit-mask-image","list-style-image"];function E_(e,r){return I_.map(n=>{let o=e.getPropertyValue(n);return!o||o==="none"?null:((Xn||Na)&&r.drawImageCount++,Am(o,null,r,!0).then(t=>{!t||o===t||e.setProperty(n,t,e.getPropertyPriority(n))}))}).filter(Boolean)}function C_(e,r){if(Bt(e)){let n=e.currentSrc||e.src;if(!Ea(n))return[Pr(r,{url:n,imageDom:e,requestType:"image",responseType:"dataUrl"}).then(o=>{o&&(e.srcset="",e.dataset.originalSrc=n,e.src=o||"")})];(Xn||Na)&&r.drawImageCount++}else if(Ar(e)&&!Ea(e.href.baseVal)){let n=e.href.baseVal;return[Pr(r,{url:n,imageDom:e,requestType:"image",responseType:"dataUrl"}).then(o=>{o&&(e.dataset.originalSrc=n,e.href.baseVal=o||"")})]}return[]}function O_(e,r){let{ownerDocument:n,svgDefsElement:o}=r,t=e.getAttribute("href")??e.getAttribute("xlink:href");if(!t)return[];let[i,s]=t.split("#");if(s){let a=`#${s}`,c=r.shadowRoots.reduce((u,l)=>u??l.querySelector(`svg ${a}`),n?.querySelector(`svg ${a}`));if(i&&e.setAttribute("href",a),o?.querySelector(a))return[];if(c)return o?.appendChild(c.cloneNode(!0)),[];if(i)return[Pr(r,{url:i,responseType:"text"}).then(u=>{o?.insertAdjacentHTML("beforeend",u)})]}return[]}function jm(e,r){let{tasks:n}=r;Ge(e)&&((Bt(e)||Em(e))&&n.push(...C_(e,r)),Px(e)&&n.push(...O_(e,r))),Tr(e)&&n.push(...E_(e.style,r)),e.childNodes.forEach(o=>{jm(o,r)})}async function N_(e,r){let{ownerDocument:n,svgStyleElement:o,fontFamilies:t,fontCssTexts:i,tasks:s,font:a}=r;if(!(!n||!o||!t.size))if(a&&a.cssText){let c=wm(a.cssText,r);o.appendChild(n.createTextNode(`${c}
|
|
135
|
+
`))}else{let c=Array.from(n.styleSheets).filter(d=>{try{return"cssRules"in d&&!!d.cssRules.length}catch(m){return r.log.warn(`Error while reading CSS rules from ${d.href}`,m),!1}}),u=n.implementation.createHTMLDocument(""),l=u.createElement("style");u.head.appendChild(l);let p=l.sheet;await Promise.all(c.flatMap(d=>Array.from(d.cssRules).map(async m=>{if(Tx(m)){let h=m.href,g="";try{g=await Pr(r,{url:h,requestType:"text",responseType:"text"})}catch(b){r.log.warn(`Error fetch remote css import from ${h}`,b)}let x=g.replace(Um,(b,y,_)=>b.replace(_,Cm(_,h)));for(let b of D_(x))try{p.insertRule(b,p.cssRules.length)}catch(y){r.log.warn("Error inserting rule from remote css import",{rule:b,error:y})}}}))),p.cssRules.length&&c.push(p);let f=[];c.forEach(d=>{Ca(d.cssRules,f)}),f.filter(d=>Dx(d)&&Mm(d.style.getPropertyValue("src"))&&zm(d.style.getPropertyValue("font-family"))?.some(m=>t.has(m))).forEach(d=>{let m=d,h=i.get(m.cssText);h?o.appendChild(n.createTextNode(`${h}
|
|
136
136
|
`)):s.push(Am(m.cssText,m.parentStyleSheet?m.parentStyleSheet.href:null,r).then(g=>{g=wm(g,r),i.set(m.cssText,g),o.appendChild(n.createTextNode(`${g}
|
|
137
|
-
`))}))})}}var z_=/(\/\*[\s\S]*?\*\/)/g,bm=/((@.*?keyframes [\s\S]*?){([\s\S]*?}\s*?)})/gi;function D_(e){if(e==null)return[];let r=[],n=e.replace(z_,"");for(;;){let i=bm.exec(n);if(!i)break;r.push(i[0])}n=n.replace(bm,"");let o=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,t=new RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let i=o.exec(n);if(i)t.lastIndex=o.lastIndex;else if(i=t.exec(n),i)o.lastIndex=t.lastIndex;else break;r.push(i[0])}return r}var T_=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,
|
|
137
|
+
`))}))})}}var z_=/(\/\*[\s\S]*?\*\/)/g,bm=/((@.*?keyframes [\s\S]*?){([\s\S]*?}\s*?)})/gi;function D_(e){if(e==null)return[];let r=[],n=e.replace(z_,"");for(;;){let i=bm.exec(n);if(!i)break;r.push(i[0])}n=n.replace(bm,"");let o=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,t=new RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let i=o.exec(n);if(i)t.lastIndex=o.lastIndex;else if(i=t.exec(n),i)o.lastIndex=t.lastIndex;else break;r.push(i[0])}return r}var T_=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,R_=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function wm(e,r){let{font:n}=r,o=n?n?.preferredFormat:void 0;return o?e.replace(R_,t=>{for(;;){let[i,,s]=T_.exec(t)||[];if(!s)return"";if(s===o)return`src: ${i};`}}):e}function Ca(e,r=[]){for(let n of Array.from(e))Rx(n)?r.push(...Ca(n.cssRules)):"cssRules"in n?Ca(n.cssRules,r):r.push(n);return r}var P_=/\bx?link:?href\s*=\s*["'](?!data:)[^"']+["']/i;function A_(e){return P_.test(e.innerHTML)}async function M_(e,r){let n=await za(e,r);if(Ge(n.node)&&Ar(n.node)&&!A_(n.node))return n.node;let{ownerDocument:o,log:t,tasks:i,svgStyleElement:s,svgDefsElement:a,svgStyles:c,font:u,progress:l,autoDestruct:p,onCloneNode:f,onEmbedNode:d,onCreateForeignObjectSvg:m}=n;t.time("clone node");let h=await Da(n.node,n,!0);if(s&&o){let _="";c.forEach((v,w)=>{_+=`${v.join(`,
|
|
138
138
|
`)} {
|
|
139
139
|
${w}
|
|
140
140
|
}
|
|
141
|
-
`}),s.appendChild(o.createTextNode(_))}t.timeEnd("clone node"),await f?.(h),u!==!1&&Ge(h)&&(t.time("embed web font"),await N_(h,n),t.timeEnd("embed web font")),t.time("embed node"),jm(h,n);let g=i.length,x=0,b=async()=>{for(;;){let _=i.pop();if(!_)break;try{await _}catch(v){n.log.warn("Failed to run task",v)}l?.(++x,g)}};l?.(x,g),await Promise.all([...Array.from({length:4})].map(b)),t.timeEnd("embed node"),await d?.(h);let y=U_(h,n);return a&&y.insertBefore(a,y.children[0]),s&&y.insertBefore(s,y.children[0]),p&&__(n),await m?.(y),y}function U_(e,r){let{width:n,height:o}=r,t=Jx(n,o,e.ownerDocument),i=t.ownerDocument.createElementNS(t.namespaceURI,"foreignObject");return i.setAttributeNS(null,"x","0%"),i.setAttributeNS(null,"y","0%"),i.setAttributeNS(null,"width","100%"),i.setAttributeNS(null,"height","100%"),i.append(e),t.appendChild(i),t}async function j_(e,r){let n=await za(e,r),o=await M_(n),t=Hx(o,n.isEnable("removeControlCharacter"));n.autoDestruct||(n.svgStyleElement=Dm(n.ownerDocument),n.svgDefsElement=n.ownerDocument?.createElementNS(Qn,"defs"),n.svgStyles.clear());let i=Zt(t,o.ownerDocument);return await o_(i,n)}async function Lm(e,r){let n=await za(e,r),{log:o,type:t,quality:i,dpi:s}=n,a=await j_(n);o.time("canvas to blob");let c=await Xx(a,t,i);if(["image/png","image/jpeg"].includes(t)&&s){let u=await Qx(c.slice(0,33)),l=new Uint8Array(u);return t==="image/png"?l=Cx(l,s):t==="image/jpeg"&&(l=$x(l,s)),o.timeEnd("canvas to blob"),new Blob([l,c.slice(33)],{type:t})}return o.timeEnd("canvas to blob"),c}var $={};Ve($,{$brand:()=>Pa,$input:()=>tu,$output:()=>eu,NEVER:()=>Ta,TimePrecision:()=>ou,ZodAny:()=>Jd,ZodArray:()=>Yd,ZodBase64:()=>Eo,ZodBase64URL:()=>Co,ZodBigInt:()=>wr,ZodBigIntFormat:()=>zo,ZodBoolean:()=>br,ZodCIDRv4:()=>ko,ZodCIDRv6:()=>Io,ZodCUID:()=>yo,ZodCUID2:()=>bo,ZodCatch:()=>xf,ZodCodec:()=>mn,ZodCustom:()=>gn,ZodCustomStringFormat:()=>vr,ZodDate:()=>un,ZodDefault:()=>mf,ZodDiscriminatedUnion:()=>ef,ZodE164:()=>Oo,ZodEmail:()=>mo,ZodEmoji:()=>go,ZodEnum:()=>mr,ZodError:()=>gk,ZodExactOptional:()=>ff,ZodFile:()=>uf,ZodFirstPartyTypeKind:()=>Pf,ZodFunction:()=>zf,ZodGUID:()=>on,ZodIPv4:()=>So,ZodIPv6:()=>$o,ZodISODate:()=>lo,ZodISODateTime:()=>ao,ZodISODuration:()=>uo,ZodISOTime:()=>co,ZodIntersection:()=>tf,ZodIssueCode:()=>yk,ZodJWT:()=>No,ZodKSUID:()=>_o,ZodLazy:()=>Cf,ZodLiteral:()=>cf,ZodMAC:()=>Fd,ZodMap:()=>af,ZodNaN:()=>Sf,ZodNanoID:()=>vo,ZodNever:()=>Xd,ZodNonOptional:()=>Mo,ZodNull:()=>qd,ZodNullable:()=>hf,ZodNumber:()=>yr,ZodNumberFormat:()=>Pt,ZodObject:()=>fn,ZodOptional:()=>Ao,ZodPipe:()=>hn,ZodPrefault:()=>vf,ZodPreprocess:()=>$f,ZodPromise:()=>Nf,ZodReadonly:()=>kf,ZodRealError:()=>Oe,ZodRecord:()=>hr,ZodSet:()=>lf,ZodString:()=>gr,ZodStringFormat:()=>re,ZodSuccess:()=>wf,ZodSymbol:()=>Wd,ZodTemplateLiteral:()=>Ef,ZodTransform:()=>df,ZodTuple:()=>nf,ZodType:()=>Z,ZodULID:()=>wo,ZodURL:()=>cn,ZodUUID:()=>Ke,ZodUndefined:()=>Vd,ZodUnion:()=>pn,ZodUnknown:()=>Hd,ZodVoid:()=>Kd,ZodXID:()=>xo,ZodXor:()=>Qd,_ZodString:()=>ho,_default:()=>gf,_function:()=>Cy,any:()=>oy,array:()=>dn,base64:()=>Zv,base64url:()=>Bv,bigint:()=>ey,boolean:()=>Bd,catch:()=>_f,check:()=>Oy,cidrv4:()=>Lv,cidrv6:()=>Fv,clone:()=>_e,codec:()=>$y,coerce:()=>Rf,config:()=>ce,core:()=>nt,cuid:()=>Dv,cuid2:()=>Tv,custom:()=>Ny,date:()=>ay,decode:()=>Pd,decodeAsync:()=>Ad,describe:()=>zy,discriminatedUnion:()=>py,e164:()=>Wv,email:()=>_v,emoji:()=>Nv,encode:()=>Td,encodeAsync:()=>Rd,endsWith:()=>ir,enum:()=>Po,exactOptional:()=>pf,file:()=>wy,flattenError:()=>Wr,float32:()=>Xv,float64:()=>Kv,formatError:()=>Vr,fromJSONSchema:()=>Uy,function:()=>Cy,getErrorMap:()=>wk,globalRegistry:()=>me,gt:()=>He,gte:()=>$e,guid:()=>Sv,hash:()=>Hv,hex:()=>Jv,hostname:()=>Gv,httpUrl:()=>Ov,includes:()=>rr,instanceof:()=>Ty,int:()=>fo,int32:()=>Yv,int64:()=>ty,intersection:()=>rf,invertCodec:()=>ky,ipv4:()=>Mv,ipv6:()=>jv,iso:()=>pr,json:()=>Ry,jwt:()=>Vv,keyof:()=>ly,ksuid:()=>Av,lazy:()=>Of,length:()=>Dt,literal:()=>by,locales:()=>Qr,looseObject:()=>dy,looseRecord:()=>my,lowercase:()=>er,lt:()=>Je,lte:()=>Te,mac:()=>Uv,map:()=>gy,maxLength:()=>zt,maxSize:()=>gt,meta:()=>Dy,mime:()=>or,minLength:()=>rt,minSize:()=>Xe,multipleOf:()=>mt,nan:()=>Sy,nanoid:()=>zv,nativeEnum:()=>yy,negative:()=>Ki,never:()=>Do,nonnegative:()=>Qi,nonoptional:()=>bf,nonpositive:()=>Yi,normalize:()=>sr,null:()=>Gd,nullable:()=>an,nullish:()=>xy,number:()=>Zd,object:()=>cy,optional:()=>sn,overwrite:()=>Be,parse:()=>Od,parseAsync:()=>Nd,partialRecord:()=>hy,pipe:()=>po,positive:()=>Xi,prefault:()=>yf,preprocess:()=>Ay,prettifyError:()=>Ga,promise:()=>Ey,property:()=>eo,readonly:()=>If,record:()=>sf,refine:()=>Df,regex:()=>Qt,regexes:()=>De,registry:()=>Oi,safeDecode:()=>Ud,safeDecodeAsync:()=>Ld,safeEncode:()=>Md,safeEncodeAsync:()=>jd,safeParse:()=>zd,safeParseAsync:()=>Dd,set:()=>vy,setErrorMap:()=>bk,size:()=>Nt,slugify:()=>ur,startsWith:()=>nr,strictObject:()=>uy,string:()=>nn,stringFormat:()=>qv,stringbool:()=>Py,success:()=>_y,superRefine:()=>Tf,symbol:()=>ny,templateLiteral:()=>Iy,toJSONSchema:()=>io,toLowerCase:()=>lr,toUpperCase:()=>cr,transform:()=>Ro,treeifyError:()=>qa,trim:()=>ar,tuple:()=>of,uint32:()=>Qv,uint64:()=>ry,ulid:()=>Pv,undefined:()=>iy,union:()=>To,unknown:()=>Tt,uppercase:()=>tr,url:()=>Cv,util:()=>D,uuid:()=>$v,uuidv4:()=>kv,uuidv6:()=>Iv,uuidv7:()=>Ev,void:()=>sy,xid:()=>Rv,xor:()=>fy});var nt={};Ve(nt,{$ZodAny:()=>_c,$ZodArray:()=>Ec,$ZodAsyncError:()=>Ze,$ZodBase64:()=>fc,$ZodBase64URL:()=>pc,$ZodBigInt:()=>xi,$ZodBigIntFormat:()=>yc,$ZodBoolean:()=>Hr,$ZodCIDRv4:()=>cc,$ZodCIDRv6:()=>uc,$ZodCUID:()=>Kl,$ZodCUID2:()=>Yl,$ZodCatch:()=>Vc,$ZodCheck:()=>ne,$ZodCheckBigIntFormat:()=>El,$ZodCheckEndsWith:()=>jl,$ZodCheckGreaterThan:()=>mi,$ZodCheckIncludes:()=>Ml,$ZodCheckLengthEquals:()=>Tl,$ZodCheckLessThan:()=>hi,$ZodCheckLowerCase:()=>Rl,$ZodCheckMaxLength:()=>zl,$ZodCheckMaxSize:()=>Cl,$ZodCheckMimeType:()=>Fl,$ZodCheckMinLength:()=>Dl,$ZodCheckMinSize:()=>Ol,$ZodCheckMultipleOf:()=>kl,$ZodCheckNumberFormat:()=>Il,$ZodCheckOverwrite:()=>Zl,$ZodCheckProperty:()=>Ll,$ZodCheckRegex:()=>Pl,$ZodCheckSizeEquals:()=>Nl,$ZodCheckStartsWith:()=>Ul,$ZodCheckStringFormat:()=>Kt,$ZodCheckUpperCase:()=>Al,$ZodCodec:()=>Kr,$ZodCustom:()=>Qc,$ZodCustomStringFormat:()=>gc,$ZodDate:()=>Ic,$ZodDefault:()=>Fc,$ZodDiscriminatedUnion:()=>Nc,$ZodE164:()=>hc,$ZodEmail:()=>Gl,$ZodEmoji:()=>Hl,$ZodEncodeError:()=>ut,$ZodEnum:()=>Rc,$ZodError:()=>Br,$ZodExactOptional:()=>jc,$ZodFile:()=>Mc,$ZodFunction:()=>Xc,$ZodGUID:()=>Vl,$ZodIPv4:()=>sc,$ZodIPv6:()=>ac,$ZodISODate:()=>nc,$ZodISODateTime:()=>rc,$ZodISODuration:()=>oc,$ZodISOTime:()=>ic,$ZodIntersection:()=>zc,$ZodJWT:()=>mc,$ZodKSUID:()=>tc,$ZodLazy:()=>Yc,$ZodLiteral:()=>Ac,$ZodMAC:()=>lc,$ZodMap:()=>Tc,$ZodNaN:()=>qc,$ZodNanoID:()=>Xl,$ZodNever:()=>$c,$ZodNonOptional:()=>Bc,$ZodNull:()=>xc,$ZodNullable:()=>Lc,$ZodNumber:()=>wi,$ZodNumberFormat:()=>vc,$ZodObject:()=>vg,$ZodObjectJIT:()=>Cc,$ZodOptional:()=>Si,$ZodPipe:()=>$i,$ZodPrefault:()=>Zc,$ZodPreprocess:()=>Gc,$ZodPromise:()=>Kc,$ZodReadonly:()=>Jc,$ZodRealError:()=>Ce,$ZodRecord:()=>Dc,$ZodRegistry:()=>Ci,$ZodSet:()=>Pc,$ZodString:()=>Ot,$ZodStringFormat:()=>te,$ZodSuccess:()=>Wc,$ZodSymbol:()=>bc,$ZodTemplateLiteral:()=>Hc,$ZodTransform:()=>Uc,$ZodTuple:()=>_i,$ZodType:()=>L,$ZodULID:()=>Ql,$ZodURL:()=>Jl,$ZodUUID:()=>ql,$ZodUndefined:()=>wc,$ZodUnion:()=>Xr,$ZodUnknown:()=>Sc,$ZodVoid:()=>kc,$ZodXID:()=>ec,$ZodXor:()=>Oc,$brand:()=>Pa,$constructor:()=>k,$input:()=>tu,$output:()=>eu,Doc:()=>Jr,JSONSchema:()=>bv,JSONSchemaGenerator:()=>oo,NEVER:()=>Ta,TimePrecision:()=>ou,_any:()=>Iu,_array:()=>Tu,_base64:()=>qi,_base64url:()=>Gi,_bigint:()=>bu,_boolean:()=>vu,_catch:()=>lk,_check:()=>yv,_cidrv4:()=>Wi,_cidrv6:()=>Vi,_coercedBigint:()=>wu,_coercedBoolean:()=>yu,_coercedDate:()=>zu,_coercedNumber:()=>du,_coercedString:()=>nu,_cuid:()=>Mi,_cuid2:()=>Ui,_custom:()=>Ru,_date:()=>Nu,_decode:()=>oi,_decodeAsync:()=>ai,_default:()=>ok,_discriminatedUnion:()=>G$,_e164:()=>Ji,_email:()=>Ni,_emoji:()=>Ri,_encode:()=>ii,_encodeAsync:()=>si,_endsWith:()=>ir,_enum:()=>Q$,_file:()=>Pu,_float32:()=>pu,_float64:()=>hu,_gt:()=>He,_gte:()=>$e,_guid:()=>en,_includes:()=>rr,_int:()=>fu,_int32:()=>mu,_int64:()=>xu,_intersection:()=>J$,_ipv4:()=>Zi,_ipv6:()=>Bi,_isoDate:()=>au,_isoDateTime:()=>su,_isoDuration:()=>cu,_isoTime:()=>lu,_jwt:()=>Hi,_ksuid:()=>Fi,_lazy:()=>fk,_length:()=>Dt,_literal:()=>tk,_lowercase:()=>er,_lt:()=>Je,_lte:()=>Te,_mac:()=>iu,_map:()=>K$,_max:()=>Te,_maxLength:()=>zt,_maxSize:()=>gt,_mime:()=>or,_min:()=>$e,_minLength:()=>rt,_minSize:()=>Xe,_multipleOf:()=>mt,_nan:()=>Du,_nanoid:()=>Ai,_nativeEnum:()=>ek,_negative:()=>Ki,_never:()=>Cu,_nonnegative:()=>Qi,_nonoptional:()=>sk,_nonpositive:()=>Yi,_normalize:()=>sr,_null:()=>ku,_nullable:()=>ik,_number:()=>uu,_optional:()=>nk,_overwrite:()=>Be,_parse:()=>Gt,_parseAsync:()=>Jt,_pipe:()=>ck,_positive:()=>Xi,_promise:()=>pk,_property:()=>eo,_readonly:()=>uk,_record:()=>X$,_refine:()=>Au,_regex:()=>Qt,_safeDecode:()=>ci,_safeDecodeAsync:()=>di,_safeEncode:()=>li,_safeEncodeAsync:()=>ui,_safeParse:()=>Ht,_safeParseAsync:()=>Xt,_set:()=>Y$,_size:()=>Nt,_slugify:()=>ur,_startsWith:()=>nr,_string:()=>ru,_stringFormat:()=>dr,_stringbool:()=>Lu,_success:()=>ak,_superRefine:()=>Mu,_symbol:()=>Su,_templateLiteral:()=>dk,_toLowerCase:()=>lr,_toUpperCase:()=>cr,_transform:()=>rk,_trim:()=>ar,_tuple:()=>H$,_uint32:()=>gu,_uint64:()=>_u,_ulid:()=>ji,_undefined:()=>$u,_union:()=>V$,_unknown:()=>Eu,_uppercase:()=>tr,_url:()=>tn,_uuid:()=>zi,_uuidv4:()=>Di,_uuidv6:()=>Ti,_uuidv7:()=>Pi,_void:()=>Ou,_xid:()=>Li,_xor:()=>q$,clone:()=>_e,config:()=>ce,createStandardJSONSchemaMethod:()=>fr,createToJSONSchemaMethod:()=>Fu,decode:()=>pS,decodeAsync:()=>mS,describe:()=>Uu,encode:()=>fS,encodeAsync:()=>hS,extractDefs:()=>yt,finalize:()=>bt,flattenError:()=>Wr,formatError:()=>Vr,globalConfig:()=>It,globalRegistry:()=>me,initializeContext:()=>vt,isValidBase64:()=>dc,isValidBase64URL:()=>pg,isValidJWT:()=>hg,locales:()=>Qr,meta:()=>ju,parse:()=>ri,parseAsync:()=>ni,prettifyError:()=>Ga,process:()=>X,regexes:()=>De,registry:()=>Oi,safeDecode:()=>vS,safeDecodeAsync:()=>bS,safeEncode:()=>gS,safeEncodeAsync:()=>yS,safeParse:()=>Ja,safeParseAsync:()=>Ha,toDotPath:()=>qm,toJSONSchema:()=>io,treeifyError:()=>qa,util:()=>D,version:()=>Bl});var Fm,Ta=Object.freeze({status:"aborted"});function k(e,r,n){function o(a,c){if(a._zod||Object.defineProperty(a,"_zod",{value:{def:c,constr:s,traits:new Set},enumerable:!1}),a._zod.traits.has(e))return;a._zod.traits.add(e),r(a,c);let u=s.prototype,l=Object.keys(u);for(let p=0;p<l.length;p++){let f=l[p];f in a||(a[f]=u[f].bind(a))}}let t=n?.Parent??Object;class i extends t{}Object.defineProperty(i,"name",{value:e});function s(a){var c;let u=n?.Parent?new i:this;o(u,a),(c=u._zod).deferred??(c.deferred=[]);for(let l of u._zod.deferred)l();return u}return Object.defineProperty(s,"init",{value:o}),Object.defineProperty(s,Symbol.hasInstance,{value:a=>n?.Parent&&a instanceof n.Parent?!0:a?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}var Pa=Symbol("zod_brand"),Ze=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},ut=class extends Error{constructor(r){super(`Encountered unidirectional transform during encode: ${r}`),this.name="ZodEncodeError"}};(Fm=globalThis).__zod_globalConfig??(Fm.__zod_globalConfig={});var It=globalThis.__zod_globalConfig;function ce(e){return e&&Object.assign(It,e),It}var D={};Ve(D,{BIGINT_FORMAT_RANGES:()=>Wa,Class:()=>Aa,NUMBER_FORMAT_RANGES:()=>Ba,aborted:()=>ht,allowsEval:()=>ja,assert:()=>W_,assertEqual:()=>L_,assertIs:()=>Z_,assertNever:()=>B_,assertNotEqual:()=>F_,assignProp:()=>ft,base64ToUint8Array:()=>Bm,base64urlToUint8Array:()=>aS,cached:()=>Vt,captureStackTrace:()=>ti,cleanEnum:()=>sS,cleanRegex:()=>jr,clone:()=>_e,cloneDef:()=>q_,createTransparentProxy:()=>Y_,defineLazy:()=>W,esc:()=>ei,escapeRegex:()=>Ae,explicitlyAborted:()=>Va,extend:()=>tS,finalizeIssue:()=>Se,floatSafeRemainder:()=>Ma,getElementAtPath:()=>G_,getEnumValues:()=>Ur,getLengthableOrigin:()=>Zr,getParsedType:()=>K_,getSizableOrigin:()=>Fr,hexToUint8Array:()=>cS,isObject:()=>Et,isPlainObject:()=>pt,issue:()=>qt,joinValues:()=>I,jsonStringifyReplacer:()=>Wt,merge:()=>nS,mergeDefs:()=>tt,normalizeParams:()=>P,nullish:()=>dt,numKeys:()=>X_,objectClone:()=>V_,omit:()=>eS,optionalKeys:()=>Za,parsedType:()=>z,partial:()=>iS,pick:()=>Q_,prefixIssues:()=>Ee,primitiveTypes:()=>Fa,promiseAllObject:()=>J_,propertyKeyTypes:()=>Lr,randomString:()=>H_,required:()=>oS,safeExtend:()=>rS,shallowClone:()=>La,slugify:()=>Ua,stringifyPrimitive:()=>N,uint8ArrayToBase64:()=>Wm,uint8ArrayToBase64url:()=>lS,uint8ArrayToHex:()=>uS,unwrapMessage:()=>Mr});function L_(e){return e}function F_(e){return e}function Z_(e){}function B_(e){throw new Error("Unexpected value in exhaustive check")}function W_(e){}function Ur(e){let r=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,t])=>r.indexOf(+o)===-1).map(([o,t])=>t)}function I(e,r="|"){return e.map(n=>N(n)).join(r)}function Wt(e,r){return typeof r=="bigint"?r.toString():r}function Vt(e){return{get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}function dt(e){return e==null}function jr(e){let r=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(r,n)}function Ma(e,r){let n=e/r,o=Math.round(n),t=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-o)<t?0:n-o}var Zm=Symbol("evaluating");function W(e,r,n){let o;Object.defineProperty(e,r,{get(){if(o!==Zm)return o===void 0&&(o=Zm,o=n()),o},set(t){Object.defineProperty(e,r,{value:t})},configurable:!0})}function V_(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function ft(e,r,n){Object.defineProperty(e,r,{value:n,writable:!0,enumerable:!0,configurable:!0})}function tt(...e){let r={};for(let n of e){let o=Object.getOwnPropertyDescriptors(n);Object.assign(r,o)}return Object.defineProperties({},r)}function q_(e){return tt(e._zod.def)}function G_(e,r){return r?r.reduce((n,o)=>n?.[o],e):e}function J_(e){let r=Object.keys(e),n=r.map(o=>e[o]);return Promise.all(n).then(o=>{let t={};for(let i=0;i<r.length;i++)t[r[i]]=o[i];return t})}function H_(e=10){let r="abcdefghijklmnopqrstuvwxyz",n="";for(let o=0;o<e;o++)n+=r[Math.floor(Math.random()*r.length)];return n}function ei(e){return JSON.stringify(e)}function Ua(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var ti="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Et(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var ja=Vt(()=>{if(It.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function pt(e){if(Et(e)===!1)return!1;let r=e.constructor;if(r===void 0||typeof r!="function")return!0;let n=r.prototype;return!(Et(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function La(e){return pt(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function X_(e){let r=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&r++;return r}var K_=e=>{let 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}`)}},Lr=new Set(["string","number","symbol"]),Fa=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Ae(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function _e(e,r,n){let o=new e._zod.constr(r??e._zod.def);return(!r||n?.parent)&&(o._zod.parent=e),o}function P(e){let 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 Y_(e){let r;return new Proxy({},{get(n,o,t){return r??(r=e()),Reflect.get(r,o,t)},set(n,o,t,i){return r??(r=e()),Reflect.set(r,o,t,i)},has(n,o){return r??(r=e()),Reflect.has(r,o)},deleteProperty(n,o){return r??(r=e()),Reflect.deleteProperty(r,o)},ownKeys(n){return r??(r=e()),Reflect.ownKeys(r)},getOwnPropertyDescriptor(n,o){return r??(r=e()),Reflect.getOwnPropertyDescriptor(r,o)},defineProperty(n,o,t){return r??(r=e()),Reflect.defineProperty(r,o,t)}})}function N(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Za(e){return Object.keys(e).filter(r=>e[r]._zod.optin==="optional"&&e[r]._zod.optout==="optional")}var Ba={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]},Wa={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Q_(e,r){let n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=tt(e._zod.def,{get shape(){let s={};for(let a in r){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(s[a]=n.shape[a])}return ft(this,"shape",s),s},checks:[]});return _e(e,i)}function eS(e,r){let n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=tt(e._zod.def,{get shape(){let s={...e._zod.def.shape};for(let a in r){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);r[a]&&delete s[a]}return ft(this,"shape",s),s},checks:[]});return _e(e,i)}function tS(e,r){if(!pt(r))throw new Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let i=e._zod.def.shape;for(let s in r)if(Object.getOwnPropertyDescriptor(i,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let t=tt(e._zod.def,{get shape(){let i={...e._zod.def.shape,...r};return ft(this,"shape",i),i}});return _e(e,t)}function rS(e,r){if(!pt(r))throw new Error("Invalid input to safeExtend: expected a plain object");let n=tt(e._zod.def,{get shape(){let o={...e._zod.def.shape,...r};return ft(this,"shape",o),o}});return _e(e,n)}function nS(e,r){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let n=tt(e._zod.def,{get shape(){let o={...e._zod.def.shape,...r._zod.def.shape};return ft(this,"shape",o),o},get catchall(){return r._zod.def.catchall},checks:r._zod.def.checks??[]});return _e(e,n)}function iS(e,r,n){let t=r._zod.def.checks;if(t&&t.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let s=tt(r._zod.def,{get shape(){let a=r._zod.def.shape,c={...a};if(n)for(let u in n){if(!(u in a))throw new Error(`Unrecognized key: "${u}"`);n[u]&&(c[u]=e?new e({type:"optional",innerType:a[u]}):a[u])}else for(let u in a)c[u]=e?new e({type:"optional",innerType:a[u]}):a[u];return ft(this,"shape",c),c},checks:[]});return _e(r,s)}function oS(e,r,n){let o=tt(r._zod.def,{get shape(){let t=r._zod.def.shape,i={...t};if(n)for(let s in n){if(!(s in i))throw new Error(`Unrecognized key: "${s}"`);n[s]&&(i[s]=new e({type:"nonoptional",innerType:t[s]}))}else for(let s in t)i[s]=new e({type:"nonoptional",innerType:t[s]});return ft(this,"shape",i),i}});return _e(r,o)}function ht(e,r=0){if(e.aborted===!0)return!0;for(let n=r;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Va(e,r=0){if(e.aborted===!0)return!0;for(let n=r;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function Ee(e,r){return r.map(n=>{var o;return(o=n).path??(o.path=[]),n.path.unshift(e),n})}function Mr(e){return typeof e=="string"?e:e?.message}function Se(e,r,n){let o=e.message?e.message:Mr(e.inst?._zod.def?.error?.(e))??Mr(r?.error?.(e))??Mr(n.customError?.(e))??Mr(n.localeError?.(e))??"Invalid input",{inst:t,continue:i,input:s,...a}=e;return a.path??(a.path=[]),a.message=o,r?.reportInput&&(a.input=s),a}function Fr(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Zr(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function z(e){let r=typeof e;switch(r){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return r}function qt(...e){let[r,n,o]=e;return typeof r=="string"?{message:r,code:"custom",input:n,inst:o}:{...r}}function sS(e){return Object.entries(e).filter(([r,n])=>Number.isNaN(Number.parseInt(r,10))).map(r=>r[1])}function Bm(e){let r=atob(e),n=new Uint8Array(r.length);for(let o=0;o<r.length;o++)n[o]=r.charCodeAt(o);return n}function Wm(e){let r="";for(let n=0;n<e.length;n++)r+=String.fromCharCode(e[n]);return btoa(r)}function aS(e){let r=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-r.length%4)%4);return Bm(r+n)}function lS(e){return Wm(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function cS(e){let r=e.replace(/^0x/,"");if(r.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(r.length/2);for(let o=0;o<r.length;o+=2)n[o/2]=Number.parseInt(r.slice(o,o+2),16);return n}function uS(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join("")}var Aa=class{constructor(...r){}};var Vm=(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,Wt,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Br=k("$ZodError",Vm),Ce=k("$ZodError",Vm,{Parent:Error});function Wr(e,r=n=>n.message){let n={},o=[];for(let t of e.issues)t.path.length>0?(n[t.path[0]]=n[t.path[0]]||[],n[t.path[0]].push(r(t))):o.push(r(t));return{formErrors:o,fieldErrors:n}}function Vr(e,r=n=>n.message){let n={_errors:[]},o=(t,i=[])=>{for(let s of t.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(a=>o({issues:a},[...i,...s.path]));else if(s.code==="invalid_key")o({issues:s.issues},[...i,...s.path]);else if(s.code==="invalid_element")o({issues:s.issues},[...i,...s.path]);else{let a=[...i,...s.path];if(a.length===0)n._errors.push(r(s));else{let c=n,u=0;for(;u<a.length;){let l=a[u];u===a.length-1?(c[l]=c[l]||{_errors:[]},c[l]._errors.push(r(s))):c[l]=c[l]||{_errors:[]},c=c[l],u++}}}};return o(e),n}function qa(e,r=n=>n.message){let n={errors:[]},o=(t,i=[])=>{var s,a;for(let c of t.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(u=>o({issues:u},[...i,...c.path]));else if(c.code==="invalid_key")o({issues:c.issues},[...i,...c.path]);else if(c.code==="invalid_element")o({issues:c.issues},[...i,...c.path]);else{let u=[...i,...c.path];if(u.length===0){n.errors.push(r(c));continue}let l=n,p=0;for(;p<u.length;){let f=u[p],d=p===u.length-1;typeof f=="string"?(l.properties??(l.properties={}),(s=l.properties)[f]??(s[f]={errors:[]}),l=l.properties[f]):(l.items??(l.items=[]),(a=l.items)[f]??(a[f]={errors:[]}),l=l.items[f]),d&&l.errors.push(r(c)),p++}}};return o(e),n}function qm(e){let r=[],n=e.map(o=>typeof o=="object"?o.key:o);for(let o of n)typeof o=="number"?r.push(`[${o}]`):typeof o=="symbol"?r.push(`[${JSON.stringify(String(o))}]`):/[^\w$]/.test(o)?r.push(`[${JSON.stringify(o)}]`):(r.length&&r.push("."),r.push(o));return r.join("")}function Ga(e){let r=[],n=[...e.issues].sort((o,t)=>(o.path??[]).length-(t.path??[]).length);for(let o of n)r.push(`\u2716 ${o.message}`),o.path?.length&&r.push(` \u2192 at ${qm(o.path)}`);return r.join(`
|
|
142
|
-
`)}var Gt=e=>(r,n,o,t)=>{let i=o?{...o,async:!1}:{async:!1},s=r._zod.run({value:n,issues:[]},i);if(s instanceof Promise)throw new Ze;if(s.issues.length){let a=new(t?.Err??e)(s.issues.map(c=>Se(c,i,ce())));throw ti(a,t?.callee),a}return s.value},ri=Gt(Ce),Jt=e=>async(r,n,o,t)=>{let i=o?{...o,async:!0}:{async:!0},s=r._zod.run({value:n,issues:[]},i);if(s instanceof Promise&&(s=await s),s.issues.length){let a=new(t?.Err??e)(s.issues.map(c=>Se(c,i,ce())));throw ti(a,t?.callee),a}return s.value},ni=Jt(Ce),Ht=e=>(r,n,o)=>{let t=o?{...o,async:!1}:{async:!1},i=r._zod.run({value:n,issues:[]},t);if(i instanceof Promise)throw new Ze;return i.issues.length?{success:!1,error:new(e??Br)(i.issues.map(s=>Se(s,t,ce())))}:{success:!0,data:i.value}},Ja=Ht(Ce),Xt=e=>async(r,n,o)=>{let t=o?{...o,async:!0}:{async:!0},i=r._zod.run({value:n,issues:[]},t);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(s=>Se(s,t,ce())))}:{success:!0,data:i.value}},Ha=Xt(Ce),ii=e=>(r,n,o)=>{let t=o?{...o,direction:"backward"}:{direction:"backward"};return Gt(e)(r,n,t)},fS=ii(Ce),oi=e=>(r,n,o)=>Gt(e)(r,n,o),pS=oi(Ce),si=e=>async(r,n,o)=>{let t=o?{...o,direction:"backward"}:{direction:"backward"};return Jt(e)(r,n,t)},hS=si(Ce),ai=e=>async(r,n,o)=>Jt(e)(r,n,o),mS=ai(Ce),li=e=>(r,n,o)=>{let t=o?{...o,direction:"backward"}:{direction:"backward"};return Ht(e)(r,n,t)},gS=li(Ce),ci=e=>(r,n,o)=>Ht(e)(r,n,o),vS=ci(Ce),ui=e=>async(r,n,o)=>{let t=o?{...o,direction:"backward"}:{direction:"backward"};return Xt(e)(r,n,t)},yS=ui(Ce),di=e=>async(r,n,o)=>Xt(e)(r,n,o),bS=di(Ce);var De={};Ve(De,{base64:()=>dl,base64url:()=>fi,bigint:()=>yl,boolean:()=>wl,browserEmail:()=>ES,cidrv4:()=>cl,cidrv6:()=>ul,cuid:()=>Xa,cuid2:()=>Ka,date:()=>hl,datetime:()=>gl,domain:()=>NS,duration:()=>rl,e164:()=>pl,email:()=>il,emoji:()=>ol,extendedDuration:()=>wS,guid:()=>nl,hex:()=>zS,hostname:()=>OS,html5Email:()=>$S,httpProtocol:()=>fl,idnEmail:()=>IS,integer:()=>bl,ipv4:()=>sl,ipv6:()=>al,ksuid:()=>el,lowercase:()=>Sl,mac:()=>ll,md5_base64:()=>TS,md5_base64url:()=>PS,md5_hex:()=>DS,nanoid:()=>tl,null:()=>xl,number:()=>pi,rfc5322Email:()=>kS,sha1_base64:()=>AS,sha1_base64url:()=>MS,sha1_hex:()=>RS,sha256_base64:()=>jS,sha256_base64url:()=>LS,sha256_hex:()=>US,sha384_base64:()=>ZS,sha384_base64url:()=>BS,sha384_hex:()=>FS,sha512_base64:()=>VS,sha512_base64url:()=>qS,sha512_hex:()=>WS,string:()=>vl,time:()=>ml,ulid:()=>Ya,undefined:()=>_l,unicodeEmail:()=>Gm,uppercase:()=>$l,uuid:()=>Ct,uuid4:()=>xS,uuid6:()=>_S,uuid7:()=>SS,xid:()=>Qa});var Xa=/^[cC][0-9a-z]{6,}$/,Ka=/^[0-9a-z]+$/,Ya=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Qa=/^[0-9a-vA-V]{20}$/,el=/^[A-Za-z0-9]{27}$/,tl=/^[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)?)?)$/,wS=/^[-+]?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)?)??$/,nl=/^([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})$/,Ct=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)$/,xS=Ct(4),_S=Ct(6),SS=Ct(7),il=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,$S=/^[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])?)*$/,kS=/^(([^<>()\[\]\\.,;:\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,}))$/,Gm=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,IS=Gm,ES=/^[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])?)*$/,CS="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function ol(){return new RegExp(CS,"u")}var sl=/^(?:(?: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])$/,al=/^(([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}|:))$/,ll=e=>{let r=Ae(e??":");return new RegExp(`^(?:[0-9A-F]{2}${r}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${r}){5}[0-9a-f]{2}$`)},cl=/^((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])$/,ul=/^(([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])$/,dl=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,fi=/^[A-Za-z0-9_-]*$/,OS=/^(?=.{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])?)*\.?$/,NS=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,fl=/^https?$/,pl=/^\+[1-9]\d{6,14}$/,Jm="(?:(?:\\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])))",hl=new RegExp(`^${Jm}$`);function Hm(e){let 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 ml(e){return new RegExp(`^${Hm(e)}$`)}function gl(e){let r=Hm({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let o=`${r}(?:${n.join("|")})`;return new RegExp(`^${Jm}T(?:${o})$`)}var vl=e=>{let r=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)},yl=/^-?\d+n?$/,bl=/^-?\d+$/,pi=/^-?\d+(?:\.\d+)?$/,wl=/^(?:true|false)$/i,xl=/^null$/i;var _l=/^undefined$/i;var Sl=/^[^A-Z]*$/,$l=/^[^a-z]*$/,zS=/^[0-9a-fA-F]*$/;function qr(e,r){return new RegExp(`^[A-Za-z0-9+/]{${e}}${r}$`)}function Gr(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var DS=/^[0-9a-fA-F]{32}$/,TS=qr(22,"=="),PS=Gr(22),RS=/^[0-9a-fA-F]{40}$/,AS=qr(27,"="),MS=Gr(27),US=/^[0-9a-fA-F]{64}$/,jS=qr(43,"="),LS=Gr(43),FS=/^[0-9a-fA-F]{96}$/,ZS=qr(64,""),BS=Gr(64),WS=/^[0-9a-fA-F]{128}$/,VS=qr(86,"=="),qS=Gr(86);var ne=k("$ZodCheck",(e,r)=>{var n;e._zod??(e._zod={}),e._zod.def=r,(n=e._zod).onattach??(n.onattach=[])}),Km={number:"number",bigint:"bigint",object:"date"},hi=k("$ZodCheckLessThan",(e,r)=>{ne.init(e,r);let n=Km[typeof r.value];e._zod.onattach.push(o=>{let t=o._zod.bag,i=(r.inclusive?t.maximum:t.exclusiveMaximum)??Number.POSITIVE_INFINITY;r.value<i&&(r.inclusive?t.maximum=r.value:t.exclusiveMaximum=r.value)}),e._zod.check=o=>{(r.inclusive?o.value<=r.value:o.value<r.value)||o.issues.push({origin:n,code:"too_big",maximum:typeof r.value=="object"?r.value.getTime():r.value,input:o.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),mi=k("$ZodCheckGreaterThan",(e,r)=>{ne.init(e,r);let n=Km[typeof r.value];e._zod.onattach.push(o=>{let t=o._zod.bag,i=(r.inclusive?t.minimum:t.exclusiveMinimum)??Number.NEGATIVE_INFINITY;r.value>i&&(r.inclusive?t.minimum=r.value:t.exclusiveMinimum=r.value)}),e._zod.check=o=>{(r.inclusive?o.value>=r.value:o.value>r.value)||o.issues.push({origin:n,code:"too_small",minimum:typeof r.value=="object"?r.value.getTime():r.value,input:o.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),kl=k("$ZodCheckMultipleOf",(e,r)=>{ne.init(e,r),e._zod.onattach.push(n=>{var o;(o=n._zod.bag).multipleOf??(o.multipleOf=r.value)}),e._zod.check=n=>{if(typeof n.value!=typeof r.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%r.value===BigInt(0):Ma(n.value,r.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:r.value,input:n.value,inst:e,continue:!r.abort})}}),Il=k("$ZodCheckNumberFormat",(e,r)=>{ne.init(e,r),r.format=r.format||"float64";let n=r.format?.includes("int"),o=n?"int":"number",[t,i]=Ba[r.format];e._zod.onattach.push(s=>{let a=s._zod.bag;a.format=r.format,a.minimum=t,a.maximum=i,n&&(a.pattern=bl)}),e._zod.check=s=>{let a=s.value;if(n){if(!Number.isInteger(a)){s.issues.push({expected:o,format:r.format,code:"invalid_type",continue:!1,input:a,inst:e});return}if(!Number.isSafeInteger(a)){a>0?s.issues.push({input:a,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!r.abort}):s.issues.push({input:a,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!r.abort});return}}a<t&&s.issues.push({origin:"number",input:a,code:"too_small",minimum:t,inclusive:!0,inst:e,continue:!r.abort}),a>i&&s.issues.push({origin:"number",input:a,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!r.abort})}}),El=k("$ZodCheckBigIntFormat",(e,r)=>{ne.init(e,r);let[n,o]=Wa[r.format];e._zod.onattach.push(t=>{let i=t._zod.bag;i.format=r.format,i.minimum=n,i.maximum=o}),e._zod.check=t=>{let i=t.value;i<n&&t.issues.push({origin:"bigint",input:i,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!r.abort}),i>o&&t.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!r.abort})}}),Cl=k("$ZodCheckMaxSize",(e,r)=>{var n;ne.init(e,r),(n=e._zod.def).when??(n.when=o=>{let t=o.value;return!dt(t)&&t.size!==void 0}),e._zod.onattach.push(o=>{let t=o._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<t&&(o._zod.bag.maximum=r.maximum)}),e._zod.check=o=>{let t=o.value;t.size<=r.maximum||o.issues.push({origin:Fr(t),code:"too_big",maximum:r.maximum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),Ol=k("$ZodCheckMinSize",(e,r)=>{var n;ne.init(e,r),(n=e._zod.def).when??(n.when=o=>{let t=o.value;return!dt(t)&&t.size!==void 0}),e._zod.onattach.push(o=>{let t=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>t&&(o._zod.bag.minimum=r.minimum)}),e._zod.check=o=>{let t=o.value;t.size>=r.minimum||o.issues.push({origin:Fr(t),code:"too_small",minimum:r.minimum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),Nl=k("$ZodCheckSizeEquals",(e,r)=>{var n;ne.init(e,r),(n=e._zod.def).when??(n.when=o=>{let t=o.value;return!dt(t)&&t.size!==void 0}),e._zod.onattach.push(o=>{let t=o._zod.bag;t.minimum=r.size,t.maximum=r.size,t.size=r.size}),e._zod.check=o=>{let t=o.value,i=t.size;if(i===r.size)return;let s=i>r.size;o.issues.push({origin:Fr(t),...s?{code:"too_big",maximum:r.size}:{code:"too_small",minimum:r.size},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!r.abort})}}),zl=k("$ZodCheckMaxLength",(e,r)=>{var n;ne.init(e,r),(n=e._zod.def).when??(n.when=o=>{let t=o.value;return!dt(t)&&t.length!==void 0}),e._zod.onattach.push(o=>{let t=o._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<t&&(o._zod.bag.maximum=r.maximum)}),e._zod.check=o=>{let t=o.value;if(t.length<=r.maximum)return;let s=Zr(t);o.issues.push({origin:s,code:"too_big",maximum:r.maximum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),Dl=k("$ZodCheckMinLength",(e,r)=>{var n;ne.init(e,r),(n=e._zod.def).when??(n.when=o=>{let t=o.value;return!dt(t)&&t.length!==void 0}),e._zod.onattach.push(o=>{let t=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>t&&(o._zod.bag.minimum=r.minimum)}),e._zod.check=o=>{let t=o.value;if(t.length>=r.minimum)return;let s=Zr(t);o.issues.push({origin:s,code:"too_small",minimum:r.minimum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),Tl=k("$ZodCheckLengthEquals",(e,r)=>{var n;ne.init(e,r),(n=e._zod.def).when??(n.when=o=>{let t=o.value;return!dt(t)&&t.length!==void 0}),e._zod.onattach.push(o=>{let t=o._zod.bag;t.minimum=r.length,t.maximum=r.length,t.length=r.length}),e._zod.check=o=>{let t=o.value,i=t.length;if(i===r.length)return;let s=Zr(t),a=i>r.length;o.issues.push({origin:s,...a?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!r.abort})}}),Kt=k("$ZodCheckStringFormat",(e,r)=>{var n,o;ne.init(e,r),e._zod.onattach.push(t=>{let i=t._zod.bag;i.format=r.format,r.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(r.pattern))}),r.pattern?(n=e._zod).check??(n.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})}):(o=e._zod).check??(o.check=()=>{})}),Pl=k("$ZodCheckRegex",(e,r)=>{Kt.init(e,r),e._zod.check=n=>{r.pattern.lastIndex=0,!r.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:r.pattern.toString(),inst:e,continue:!r.abort})}}),Rl=k("$ZodCheckLowerCase",(e,r)=>{r.pattern??(r.pattern=Sl),Kt.init(e,r)}),Al=k("$ZodCheckUpperCase",(e,r)=>{r.pattern??(r.pattern=$l),Kt.init(e,r)}),Ml=k("$ZodCheckIncludes",(e,r)=>{ne.init(e,r);let n=Ae(r.includes),o=new RegExp(typeof r.position=="number"?`^.{${r.position}}${n}`:n);r.pattern=o,e._zod.onattach.push(t=>{let i=t._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),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})}}),Ul=k("$ZodCheckStartsWith",(e,r)=>{ne.init(e,r);let n=new RegExp(`^${Ae(r.prefix)}.*`);r.pattern??(r.pattern=n),e._zod.onattach.push(o=>{let t=o._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=o=>{o.value.startsWith(r.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:o.value,inst:e,continue:!r.abort})}}),jl=k("$ZodCheckEndsWith",(e,r)=>{ne.init(e,r);let n=new RegExp(`.*${Ae(r.suffix)}$`);r.pattern??(r.pattern=n),e._zod.onattach.push(o=>{let t=o._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=o=>{o.value.endsWith(r.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:o.value,inst:e,continue:!r.abort})}});function Xm(e,r,n){e.issues.length&&r.issues.push(...Ee(n,e.issues))}var Ll=k("$ZodCheckProperty",(e,r)=>{ne.init(e,r),e._zod.check=n=>{let o=r.schema._zod.run({value:n.value[r.property],issues:[]},{});if(o instanceof Promise)return o.then(t=>Xm(t,n,r.property));Xm(o,n,r.property)}}),Fl=k("$ZodCheckMimeType",(e,r)=>{ne.init(e,r);let n=new Set(r.mime);e._zod.onattach.push(o=>{o._zod.bag.mime=r.mime}),e._zod.check=o=>{n.has(o.value.type)||o.issues.push({code:"invalid_value",values:r.mime,input:o.value.type,inst:e,continue:!r.abort})}}),Zl=k("$ZodCheckOverwrite",(e,r)=>{ne.init(e,r),e._zod.check=n=>{n.value=r.tx(n.value)}});var Jr=class{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}let o=r.split(`
|
|
141
|
+
`}),s.appendChild(o.createTextNode(_))}t.timeEnd("clone node"),await f?.(h),u!==!1&&Ge(h)&&(t.time("embed web font"),await N_(h,n),t.timeEnd("embed web font")),t.time("embed node"),jm(h,n);let g=i.length,x=0,b=async()=>{for(;;){let _=i.pop();if(!_)break;try{await _}catch(v){n.log.warn("Failed to run task",v)}l?.(++x,g)}};l?.(x,g),await Promise.all([...Array.from({length:4})].map(b)),t.timeEnd("embed node"),await d?.(h);let y=U_(h,n);return a&&y.insertBefore(a,y.children[0]),s&&y.insertBefore(s,y.children[0]),p&&__(n),await m?.(y),y}function U_(e,r){let{width:n,height:o}=r,t=Jx(n,o,e.ownerDocument),i=t.ownerDocument.createElementNS(t.namespaceURI,"foreignObject");return i.setAttributeNS(null,"x","0%"),i.setAttributeNS(null,"y","0%"),i.setAttributeNS(null,"width","100%"),i.setAttributeNS(null,"height","100%"),i.append(e),t.appendChild(i),t}async function j_(e,r){let n=await za(e,r),o=await M_(n),t=Hx(o,n.isEnable("removeControlCharacter"));n.autoDestruct||(n.svgStyleElement=Dm(n.ownerDocument),n.svgDefsElement=n.ownerDocument?.createElementNS(Qn,"defs"),n.svgStyles.clear());let i=Zt(t,o.ownerDocument);return await o_(i,n)}async function Lm(e,r){let n=await za(e,r),{log:o,type:t,quality:i,dpi:s}=n,a=await j_(n);o.time("canvas to blob");let c=await Xx(a,t,i);if(["image/png","image/jpeg"].includes(t)&&s){let u=await Qx(c.slice(0,33)),l=new Uint8Array(u);return t==="image/png"?l=Cx(l,s):t==="image/jpeg"&&(l=$x(l,s)),o.timeEnd("canvas to blob"),new Blob([l,c.slice(33)],{type:t})}return o.timeEnd("canvas to blob"),c}var $={};Ve($,{$brand:()=>Ra,$input:()=>tu,$output:()=>eu,NEVER:()=>Ta,TimePrecision:()=>ou,ZodAny:()=>Jd,ZodArray:()=>Yd,ZodBase64:()=>Eo,ZodBase64URL:()=>Co,ZodBigInt:()=>wr,ZodBigIntFormat:()=>zo,ZodBoolean:()=>br,ZodCIDRv4:()=>ko,ZodCIDRv6:()=>Io,ZodCUID:()=>yo,ZodCUID2:()=>bo,ZodCatch:()=>xf,ZodCodec:()=>mn,ZodCustom:()=>gn,ZodCustomStringFormat:()=>vr,ZodDate:()=>un,ZodDefault:()=>mf,ZodDiscriminatedUnion:()=>ef,ZodE164:()=>Oo,ZodEmail:()=>mo,ZodEmoji:()=>go,ZodEnum:()=>mr,ZodError:()=>gk,ZodExactOptional:()=>ff,ZodFile:()=>uf,ZodFirstPartyTypeKind:()=>Rf,ZodFunction:()=>zf,ZodGUID:()=>on,ZodIPv4:()=>So,ZodIPv6:()=>$o,ZodISODate:()=>lo,ZodISODateTime:()=>ao,ZodISODuration:()=>uo,ZodISOTime:()=>co,ZodIntersection:()=>tf,ZodIssueCode:()=>yk,ZodJWT:()=>No,ZodKSUID:()=>_o,ZodLazy:()=>Cf,ZodLiteral:()=>cf,ZodMAC:()=>Fd,ZodMap:()=>af,ZodNaN:()=>Sf,ZodNanoID:()=>vo,ZodNever:()=>Xd,ZodNonOptional:()=>Mo,ZodNull:()=>qd,ZodNullable:()=>hf,ZodNumber:()=>yr,ZodNumberFormat:()=>Rt,ZodObject:()=>fn,ZodOptional:()=>Ao,ZodPipe:()=>hn,ZodPrefault:()=>vf,ZodPreprocess:()=>$f,ZodPromise:()=>Nf,ZodReadonly:()=>kf,ZodRealError:()=>Oe,ZodRecord:()=>hr,ZodSet:()=>lf,ZodString:()=>gr,ZodStringFormat:()=>re,ZodSuccess:()=>wf,ZodSymbol:()=>Wd,ZodTemplateLiteral:()=>Ef,ZodTransform:()=>df,ZodTuple:()=>nf,ZodType:()=>Z,ZodULID:()=>wo,ZodURL:()=>cn,ZodUUID:()=>Ke,ZodUndefined:()=>Vd,ZodUnion:()=>pn,ZodUnknown:()=>Hd,ZodVoid:()=>Kd,ZodXID:()=>xo,ZodXor:()=>Qd,_ZodString:()=>ho,_default:()=>gf,_function:()=>Cy,any:()=>oy,array:()=>dn,base64:()=>Zv,base64url:()=>Bv,bigint:()=>ey,boolean:()=>Bd,catch:()=>_f,check:()=>Oy,cidrv4:()=>Lv,cidrv6:()=>Fv,clone:()=>_e,codec:()=>$y,coerce:()=>Pf,config:()=>ce,core:()=>nt,cuid:()=>Dv,cuid2:()=>Tv,custom:()=>Ny,date:()=>ay,decode:()=>Rd,decodeAsync:()=>Ad,describe:()=>zy,discriminatedUnion:()=>py,e164:()=>Wv,email:()=>_v,emoji:()=>Nv,encode:()=>Td,encodeAsync:()=>Pd,endsWith:()=>ir,enum:()=>Ro,exactOptional:()=>pf,file:()=>wy,flattenError:()=>Wr,float32:()=>Xv,float64:()=>Kv,formatError:()=>Vr,fromJSONSchema:()=>Uy,function:()=>Cy,getErrorMap:()=>wk,globalRegistry:()=>me,gt:()=>He,gte:()=>$e,guid:()=>Sv,hash:()=>Hv,hex:()=>Jv,hostname:()=>Gv,httpUrl:()=>Ov,includes:()=>rr,instanceof:()=>Ty,int:()=>fo,int32:()=>Yv,int64:()=>ty,intersection:()=>rf,invertCodec:()=>ky,ipv4:()=>Mv,ipv6:()=>jv,iso:()=>pr,json:()=>Py,jwt:()=>Vv,keyof:()=>ly,ksuid:()=>Av,lazy:()=>Of,length:()=>Dt,literal:()=>by,locales:()=>Qr,looseObject:()=>dy,looseRecord:()=>my,lowercase:()=>er,lt:()=>Je,lte:()=>Te,mac:()=>Uv,map:()=>gy,maxLength:()=>zt,maxSize:()=>gt,meta:()=>Dy,mime:()=>or,minLength:()=>rt,minSize:()=>Xe,multipleOf:()=>mt,nan:()=>Sy,nanoid:()=>zv,nativeEnum:()=>yy,negative:()=>Ki,never:()=>Do,nonnegative:()=>Qi,nonoptional:()=>bf,nonpositive:()=>Yi,normalize:()=>sr,null:()=>Gd,nullable:()=>an,nullish:()=>xy,number:()=>Zd,object:()=>cy,optional:()=>sn,overwrite:()=>Be,parse:()=>Od,parseAsync:()=>Nd,partialRecord:()=>hy,pipe:()=>po,positive:()=>Xi,prefault:()=>yf,preprocess:()=>Ay,prettifyError:()=>Ga,promise:()=>Ey,property:()=>eo,readonly:()=>If,record:()=>sf,refine:()=>Df,regex:()=>Qt,regexes:()=>De,registry:()=>Oi,safeDecode:()=>Ud,safeDecodeAsync:()=>Ld,safeEncode:()=>Md,safeEncodeAsync:()=>jd,safeParse:()=>zd,safeParseAsync:()=>Dd,set:()=>vy,setErrorMap:()=>bk,size:()=>Nt,slugify:()=>ur,startsWith:()=>nr,strictObject:()=>uy,string:()=>nn,stringFormat:()=>qv,stringbool:()=>Ry,success:()=>_y,superRefine:()=>Tf,symbol:()=>ny,templateLiteral:()=>Iy,toJSONSchema:()=>io,toLowerCase:()=>lr,toUpperCase:()=>cr,transform:()=>Po,treeifyError:()=>qa,trim:()=>ar,tuple:()=>of,uint32:()=>Qv,uint64:()=>ry,ulid:()=>Rv,undefined:()=>iy,union:()=>To,unknown:()=>Tt,uppercase:()=>tr,url:()=>Cv,util:()=>D,uuid:()=>$v,uuidv4:()=>kv,uuidv6:()=>Iv,uuidv7:()=>Ev,void:()=>sy,xid:()=>Pv,xor:()=>fy});var nt={};Ve(nt,{$ZodAny:()=>_c,$ZodArray:()=>Ec,$ZodAsyncError:()=>Ze,$ZodBase64:()=>fc,$ZodBase64URL:()=>pc,$ZodBigInt:()=>xi,$ZodBigIntFormat:()=>yc,$ZodBoolean:()=>Hr,$ZodCIDRv4:()=>cc,$ZodCIDRv6:()=>uc,$ZodCUID:()=>Kl,$ZodCUID2:()=>Yl,$ZodCatch:()=>Vc,$ZodCheck:()=>ne,$ZodCheckBigIntFormat:()=>El,$ZodCheckEndsWith:()=>jl,$ZodCheckGreaterThan:()=>mi,$ZodCheckIncludes:()=>Ml,$ZodCheckLengthEquals:()=>Tl,$ZodCheckLessThan:()=>hi,$ZodCheckLowerCase:()=>Pl,$ZodCheckMaxLength:()=>zl,$ZodCheckMaxSize:()=>Cl,$ZodCheckMimeType:()=>Fl,$ZodCheckMinLength:()=>Dl,$ZodCheckMinSize:()=>Ol,$ZodCheckMultipleOf:()=>kl,$ZodCheckNumberFormat:()=>Il,$ZodCheckOverwrite:()=>Zl,$ZodCheckProperty:()=>Ll,$ZodCheckRegex:()=>Rl,$ZodCheckSizeEquals:()=>Nl,$ZodCheckStartsWith:()=>Ul,$ZodCheckStringFormat:()=>Kt,$ZodCheckUpperCase:()=>Al,$ZodCodec:()=>Kr,$ZodCustom:()=>Qc,$ZodCustomStringFormat:()=>gc,$ZodDate:()=>Ic,$ZodDefault:()=>Fc,$ZodDiscriminatedUnion:()=>Nc,$ZodE164:()=>hc,$ZodEmail:()=>Gl,$ZodEmoji:()=>Hl,$ZodEncodeError:()=>ut,$ZodEnum:()=>Pc,$ZodError:()=>Br,$ZodExactOptional:()=>jc,$ZodFile:()=>Mc,$ZodFunction:()=>Xc,$ZodGUID:()=>Vl,$ZodIPv4:()=>sc,$ZodIPv6:()=>ac,$ZodISODate:()=>nc,$ZodISODateTime:()=>rc,$ZodISODuration:()=>oc,$ZodISOTime:()=>ic,$ZodIntersection:()=>zc,$ZodJWT:()=>mc,$ZodKSUID:()=>tc,$ZodLazy:()=>Yc,$ZodLiteral:()=>Ac,$ZodMAC:()=>lc,$ZodMap:()=>Tc,$ZodNaN:()=>qc,$ZodNanoID:()=>Xl,$ZodNever:()=>$c,$ZodNonOptional:()=>Bc,$ZodNull:()=>xc,$ZodNullable:()=>Lc,$ZodNumber:()=>wi,$ZodNumberFormat:()=>vc,$ZodObject:()=>vg,$ZodObjectJIT:()=>Cc,$ZodOptional:()=>Si,$ZodPipe:()=>$i,$ZodPrefault:()=>Zc,$ZodPreprocess:()=>Gc,$ZodPromise:()=>Kc,$ZodReadonly:()=>Jc,$ZodRealError:()=>Ce,$ZodRecord:()=>Dc,$ZodRegistry:()=>Ci,$ZodSet:()=>Rc,$ZodString:()=>Ot,$ZodStringFormat:()=>te,$ZodSuccess:()=>Wc,$ZodSymbol:()=>bc,$ZodTemplateLiteral:()=>Hc,$ZodTransform:()=>Uc,$ZodTuple:()=>_i,$ZodType:()=>L,$ZodULID:()=>Ql,$ZodURL:()=>Jl,$ZodUUID:()=>ql,$ZodUndefined:()=>wc,$ZodUnion:()=>Xr,$ZodUnknown:()=>Sc,$ZodVoid:()=>kc,$ZodXID:()=>ec,$ZodXor:()=>Oc,$brand:()=>Ra,$constructor:()=>k,$input:()=>tu,$output:()=>eu,Doc:()=>Jr,JSONSchema:()=>bv,JSONSchemaGenerator:()=>oo,NEVER:()=>Ta,TimePrecision:()=>ou,_any:()=>Iu,_array:()=>Tu,_base64:()=>qi,_base64url:()=>Gi,_bigint:()=>bu,_boolean:()=>vu,_catch:()=>lk,_check:()=>yv,_cidrv4:()=>Wi,_cidrv6:()=>Vi,_coercedBigint:()=>wu,_coercedBoolean:()=>yu,_coercedDate:()=>zu,_coercedNumber:()=>du,_coercedString:()=>nu,_cuid:()=>Mi,_cuid2:()=>Ui,_custom:()=>Pu,_date:()=>Nu,_decode:()=>oi,_decodeAsync:()=>ai,_default:()=>ok,_discriminatedUnion:()=>G$,_e164:()=>Ji,_email:()=>Ni,_emoji:()=>Pi,_encode:()=>ii,_encodeAsync:()=>si,_endsWith:()=>ir,_enum:()=>Q$,_file:()=>Ru,_float32:()=>pu,_float64:()=>hu,_gt:()=>He,_gte:()=>$e,_guid:()=>en,_includes:()=>rr,_int:()=>fu,_int32:()=>mu,_int64:()=>xu,_intersection:()=>J$,_ipv4:()=>Zi,_ipv6:()=>Bi,_isoDate:()=>au,_isoDateTime:()=>su,_isoDuration:()=>cu,_isoTime:()=>lu,_jwt:()=>Hi,_ksuid:()=>Fi,_lazy:()=>fk,_length:()=>Dt,_literal:()=>tk,_lowercase:()=>er,_lt:()=>Je,_lte:()=>Te,_mac:()=>iu,_map:()=>K$,_max:()=>Te,_maxLength:()=>zt,_maxSize:()=>gt,_mime:()=>or,_min:()=>$e,_minLength:()=>rt,_minSize:()=>Xe,_multipleOf:()=>mt,_nan:()=>Du,_nanoid:()=>Ai,_nativeEnum:()=>ek,_negative:()=>Ki,_never:()=>Cu,_nonnegative:()=>Qi,_nonoptional:()=>sk,_nonpositive:()=>Yi,_normalize:()=>sr,_null:()=>ku,_nullable:()=>ik,_number:()=>uu,_optional:()=>nk,_overwrite:()=>Be,_parse:()=>Gt,_parseAsync:()=>Jt,_pipe:()=>ck,_positive:()=>Xi,_promise:()=>pk,_property:()=>eo,_readonly:()=>uk,_record:()=>X$,_refine:()=>Au,_regex:()=>Qt,_safeDecode:()=>ci,_safeDecodeAsync:()=>di,_safeEncode:()=>li,_safeEncodeAsync:()=>ui,_safeParse:()=>Ht,_safeParseAsync:()=>Xt,_set:()=>Y$,_size:()=>Nt,_slugify:()=>ur,_startsWith:()=>nr,_string:()=>ru,_stringFormat:()=>dr,_stringbool:()=>Lu,_success:()=>ak,_superRefine:()=>Mu,_symbol:()=>Su,_templateLiteral:()=>dk,_toLowerCase:()=>lr,_toUpperCase:()=>cr,_transform:()=>rk,_trim:()=>ar,_tuple:()=>H$,_uint32:()=>gu,_uint64:()=>_u,_ulid:()=>ji,_undefined:()=>$u,_union:()=>V$,_unknown:()=>Eu,_uppercase:()=>tr,_url:()=>tn,_uuid:()=>zi,_uuidv4:()=>Di,_uuidv6:()=>Ti,_uuidv7:()=>Ri,_void:()=>Ou,_xid:()=>Li,_xor:()=>q$,clone:()=>_e,config:()=>ce,createStandardJSONSchemaMethod:()=>fr,createToJSONSchemaMethod:()=>Fu,decode:()=>pS,decodeAsync:()=>mS,describe:()=>Uu,encode:()=>fS,encodeAsync:()=>hS,extractDefs:()=>yt,finalize:()=>bt,flattenError:()=>Wr,formatError:()=>Vr,globalConfig:()=>It,globalRegistry:()=>me,initializeContext:()=>vt,isValidBase64:()=>dc,isValidBase64URL:()=>pg,isValidJWT:()=>hg,locales:()=>Qr,meta:()=>ju,parse:()=>ri,parseAsync:()=>ni,prettifyError:()=>Ga,process:()=>X,regexes:()=>De,registry:()=>Oi,safeDecode:()=>vS,safeDecodeAsync:()=>bS,safeEncode:()=>gS,safeEncodeAsync:()=>yS,safeParse:()=>Ja,safeParseAsync:()=>Ha,toDotPath:()=>qm,toJSONSchema:()=>io,treeifyError:()=>qa,util:()=>D,version:()=>Bl});var Fm,Ta=Object.freeze({status:"aborted"});function k(e,r,n){function o(a,c){if(a._zod||Object.defineProperty(a,"_zod",{value:{def:c,constr:s,traits:new Set},enumerable:!1}),a._zod.traits.has(e))return;a._zod.traits.add(e),r(a,c);let u=s.prototype,l=Object.keys(u);for(let p=0;p<l.length;p++){let f=l[p];f in a||(a[f]=u[f].bind(a))}}let t=n?.Parent??Object;class i extends t{}Object.defineProperty(i,"name",{value:e});function s(a){var c;let u=n?.Parent?new i:this;o(u,a),(c=u._zod).deferred??(c.deferred=[]);for(let l of u._zod.deferred)l();return u}return Object.defineProperty(s,"init",{value:o}),Object.defineProperty(s,Symbol.hasInstance,{value:a=>n?.Parent&&a instanceof n.Parent?!0:a?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}var Ra=Symbol("zod_brand"),Ze=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},ut=class extends Error{constructor(r){super(`Encountered unidirectional transform during encode: ${r}`),this.name="ZodEncodeError"}};(Fm=globalThis).__zod_globalConfig??(Fm.__zod_globalConfig={});var It=globalThis.__zod_globalConfig;function ce(e){return e&&Object.assign(It,e),It}var D={};Ve(D,{BIGINT_FORMAT_RANGES:()=>Wa,Class:()=>Aa,NUMBER_FORMAT_RANGES:()=>Ba,aborted:()=>ht,allowsEval:()=>ja,assert:()=>W_,assertEqual:()=>L_,assertIs:()=>Z_,assertNever:()=>B_,assertNotEqual:()=>F_,assignProp:()=>ft,base64ToUint8Array:()=>Bm,base64urlToUint8Array:()=>aS,cached:()=>Vt,captureStackTrace:()=>ti,cleanEnum:()=>sS,cleanRegex:()=>jr,clone:()=>_e,cloneDef:()=>q_,createTransparentProxy:()=>Y_,defineLazy:()=>W,esc:()=>ei,escapeRegex:()=>Ae,explicitlyAborted:()=>Va,extend:()=>tS,finalizeIssue:()=>Se,floatSafeRemainder:()=>Ma,getElementAtPath:()=>G_,getEnumValues:()=>Ur,getLengthableOrigin:()=>Zr,getParsedType:()=>K_,getSizableOrigin:()=>Fr,hexToUint8Array:()=>cS,isObject:()=>Et,isPlainObject:()=>pt,issue:()=>qt,joinValues:()=>I,jsonStringifyReplacer:()=>Wt,merge:()=>nS,mergeDefs:()=>tt,normalizeParams:()=>R,nullish:()=>dt,numKeys:()=>X_,objectClone:()=>V_,omit:()=>eS,optionalKeys:()=>Za,parsedType:()=>z,partial:()=>iS,pick:()=>Q_,prefixIssues:()=>Ee,primitiveTypes:()=>Fa,promiseAllObject:()=>J_,propertyKeyTypes:()=>Lr,randomString:()=>H_,required:()=>oS,safeExtend:()=>rS,shallowClone:()=>La,slugify:()=>Ua,stringifyPrimitive:()=>N,uint8ArrayToBase64:()=>Wm,uint8ArrayToBase64url:()=>lS,uint8ArrayToHex:()=>uS,unwrapMessage:()=>Mr});function L_(e){return e}function F_(e){return e}function Z_(e){}function B_(e){throw new Error("Unexpected value in exhaustive check")}function W_(e){}function Ur(e){let r=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,t])=>r.indexOf(+o)===-1).map(([o,t])=>t)}function I(e,r="|"){return e.map(n=>N(n)).join(r)}function Wt(e,r){return typeof r=="bigint"?r.toString():r}function Vt(e){return{get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}function dt(e){return e==null}function jr(e){let r=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(r,n)}function Ma(e,r){let n=e/r,o=Math.round(n),t=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-o)<t?0:n-o}var Zm=Symbol("evaluating");function W(e,r,n){let o;Object.defineProperty(e,r,{get(){if(o!==Zm)return o===void 0&&(o=Zm,o=n()),o},set(t){Object.defineProperty(e,r,{value:t})},configurable:!0})}function V_(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function ft(e,r,n){Object.defineProperty(e,r,{value:n,writable:!0,enumerable:!0,configurable:!0})}function tt(...e){let r={};for(let n of e){let o=Object.getOwnPropertyDescriptors(n);Object.assign(r,o)}return Object.defineProperties({},r)}function q_(e){return tt(e._zod.def)}function G_(e,r){return r?r.reduce((n,o)=>n?.[o],e):e}function J_(e){let r=Object.keys(e),n=r.map(o=>e[o]);return Promise.all(n).then(o=>{let t={};for(let i=0;i<r.length;i++)t[r[i]]=o[i];return t})}function H_(e=10){let r="abcdefghijklmnopqrstuvwxyz",n="";for(let o=0;o<e;o++)n+=r[Math.floor(Math.random()*r.length)];return n}function ei(e){return JSON.stringify(e)}function Ua(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var ti="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Et(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var ja=Vt(()=>{if(It.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function pt(e){if(Et(e)===!1)return!1;let r=e.constructor;if(r===void 0||typeof r!="function")return!0;let n=r.prototype;return!(Et(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function La(e){return pt(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function X_(e){let r=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&r++;return r}var K_=e=>{let 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}`)}},Lr=new Set(["string","number","symbol"]),Fa=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Ae(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function _e(e,r,n){let o=new e._zod.constr(r??e._zod.def);return(!r||n?.parent)&&(o._zod.parent=e),o}function R(e){let 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 Y_(e){let r;return new Proxy({},{get(n,o,t){return r??(r=e()),Reflect.get(r,o,t)},set(n,o,t,i){return r??(r=e()),Reflect.set(r,o,t,i)},has(n,o){return r??(r=e()),Reflect.has(r,o)},deleteProperty(n,o){return r??(r=e()),Reflect.deleteProperty(r,o)},ownKeys(n){return r??(r=e()),Reflect.ownKeys(r)},getOwnPropertyDescriptor(n,o){return r??(r=e()),Reflect.getOwnPropertyDescriptor(r,o)},defineProperty(n,o,t){return r??(r=e()),Reflect.defineProperty(r,o,t)}})}function N(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Za(e){return Object.keys(e).filter(r=>e[r]._zod.optin==="optional"&&e[r]._zod.optout==="optional")}var Ba={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]},Wa={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Q_(e,r){let n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=tt(e._zod.def,{get shape(){let s={};for(let a in r){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(s[a]=n.shape[a])}return ft(this,"shape",s),s},checks:[]});return _e(e,i)}function eS(e,r){let n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=tt(e._zod.def,{get shape(){let s={...e._zod.def.shape};for(let a in r){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);r[a]&&delete s[a]}return ft(this,"shape",s),s},checks:[]});return _e(e,i)}function tS(e,r){if(!pt(r))throw new Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let i=e._zod.def.shape;for(let s in r)if(Object.getOwnPropertyDescriptor(i,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let t=tt(e._zod.def,{get shape(){let i={...e._zod.def.shape,...r};return ft(this,"shape",i),i}});return _e(e,t)}function rS(e,r){if(!pt(r))throw new Error("Invalid input to safeExtend: expected a plain object");let n=tt(e._zod.def,{get shape(){let o={...e._zod.def.shape,...r};return ft(this,"shape",o),o}});return _e(e,n)}function nS(e,r){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let n=tt(e._zod.def,{get shape(){let o={...e._zod.def.shape,...r._zod.def.shape};return ft(this,"shape",o),o},get catchall(){return r._zod.def.catchall},checks:r._zod.def.checks??[]});return _e(e,n)}function iS(e,r,n){let t=r._zod.def.checks;if(t&&t.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let s=tt(r._zod.def,{get shape(){let a=r._zod.def.shape,c={...a};if(n)for(let u in n){if(!(u in a))throw new Error(`Unrecognized key: "${u}"`);n[u]&&(c[u]=e?new e({type:"optional",innerType:a[u]}):a[u])}else for(let u in a)c[u]=e?new e({type:"optional",innerType:a[u]}):a[u];return ft(this,"shape",c),c},checks:[]});return _e(r,s)}function oS(e,r,n){let o=tt(r._zod.def,{get shape(){let t=r._zod.def.shape,i={...t};if(n)for(let s in n){if(!(s in i))throw new Error(`Unrecognized key: "${s}"`);n[s]&&(i[s]=new e({type:"nonoptional",innerType:t[s]}))}else for(let s in t)i[s]=new e({type:"nonoptional",innerType:t[s]});return ft(this,"shape",i),i}});return _e(r,o)}function ht(e,r=0){if(e.aborted===!0)return!0;for(let n=r;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Va(e,r=0){if(e.aborted===!0)return!0;for(let n=r;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function Ee(e,r){return r.map(n=>{var o;return(o=n).path??(o.path=[]),n.path.unshift(e),n})}function Mr(e){return typeof e=="string"?e:e?.message}function Se(e,r,n){let o=e.message?e.message:Mr(e.inst?._zod.def?.error?.(e))??Mr(r?.error?.(e))??Mr(n.customError?.(e))??Mr(n.localeError?.(e))??"Invalid input",{inst:t,continue:i,input:s,...a}=e;return a.path??(a.path=[]),a.message=o,r?.reportInput&&(a.input=s),a}function Fr(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Zr(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function z(e){let r=typeof e;switch(r){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return r}function qt(...e){let[r,n,o]=e;return typeof r=="string"?{message:r,code:"custom",input:n,inst:o}:{...r}}function sS(e){return Object.entries(e).filter(([r,n])=>Number.isNaN(Number.parseInt(r,10))).map(r=>r[1])}function Bm(e){let r=atob(e),n=new Uint8Array(r.length);for(let o=0;o<r.length;o++)n[o]=r.charCodeAt(o);return n}function Wm(e){let r="";for(let n=0;n<e.length;n++)r+=String.fromCharCode(e[n]);return btoa(r)}function aS(e){let r=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-r.length%4)%4);return Bm(r+n)}function lS(e){return Wm(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function cS(e){let r=e.replace(/^0x/,"");if(r.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(r.length/2);for(let o=0;o<r.length;o+=2)n[o/2]=Number.parseInt(r.slice(o,o+2),16);return n}function uS(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join("")}var Aa=class{constructor(...r){}};var Vm=(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,Wt,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Br=k("$ZodError",Vm),Ce=k("$ZodError",Vm,{Parent:Error});function Wr(e,r=n=>n.message){let n={},o=[];for(let t of e.issues)t.path.length>0?(n[t.path[0]]=n[t.path[0]]||[],n[t.path[0]].push(r(t))):o.push(r(t));return{formErrors:o,fieldErrors:n}}function Vr(e,r=n=>n.message){let n={_errors:[]},o=(t,i=[])=>{for(let s of t.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(a=>o({issues:a},[...i,...s.path]));else if(s.code==="invalid_key")o({issues:s.issues},[...i,...s.path]);else if(s.code==="invalid_element")o({issues:s.issues},[...i,...s.path]);else{let a=[...i,...s.path];if(a.length===0)n._errors.push(r(s));else{let c=n,u=0;for(;u<a.length;){let l=a[u];u===a.length-1?(c[l]=c[l]||{_errors:[]},c[l]._errors.push(r(s))):c[l]=c[l]||{_errors:[]},c=c[l],u++}}}};return o(e),n}function qa(e,r=n=>n.message){let n={errors:[]},o=(t,i=[])=>{var s,a;for(let c of t.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(u=>o({issues:u},[...i,...c.path]));else if(c.code==="invalid_key")o({issues:c.issues},[...i,...c.path]);else if(c.code==="invalid_element")o({issues:c.issues},[...i,...c.path]);else{let u=[...i,...c.path];if(u.length===0){n.errors.push(r(c));continue}let l=n,p=0;for(;p<u.length;){let f=u[p],d=p===u.length-1;typeof f=="string"?(l.properties??(l.properties={}),(s=l.properties)[f]??(s[f]={errors:[]}),l=l.properties[f]):(l.items??(l.items=[]),(a=l.items)[f]??(a[f]={errors:[]}),l=l.items[f]),d&&l.errors.push(r(c)),p++}}};return o(e),n}function qm(e){let r=[],n=e.map(o=>typeof o=="object"?o.key:o);for(let o of n)typeof o=="number"?r.push(`[${o}]`):typeof o=="symbol"?r.push(`[${JSON.stringify(String(o))}]`):/[^\w$]/.test(o)?r.push(`[${JSON.stringify(o)}]`):(r.length&&r.push("."),r.push(o));return r.join("")}function Ga(e){let r=[],n=[...e.issues].sort((o,t)=>(o.path??[]).length-(t.path??[]).length);for(let o of n)r.push(`\u2716 ${o.message}`),o.path?.length&&r.push(` \u2192 at ${qm(o.path)}`);return r.join(`
|
|
142
|
+
`)}var Gt=e=>(r,n,o,t)=>{let i=o?{...o,async:!1}:{async:!1},s=r._zod.run({value:n,issues:[]},i);if(s instanceof Promise)throw new Ze;if(s.issues.length){let a=new(t?.Err??e)(s.issues.map(c=>Se(c,i,ce())));throw ti(a,t?.callee),a}return s.value},ri=Gt(Ce),Jt=e=>async(r,n,o,t)=>{let i=o?{...o,async:!0}:{async:!0},s=r._zod.run({value:n,issues:[]},i);if(s instanceof Promise&&(s=await s),s.issues.length){let a=new(t?.Err??e)(s.issues.map(c=>Se(c,i,ce())));throw ti(a,t?.callee),a}return s.value},ni=Jt(Ce),Ht=e=>(r,n,o)=>{let t=o?{...o,async:!1}:{async:!1},i=r._zod.run({value:n,issues:[]},t);if(i instanceof Promise)throw new Ze;return i.issues.length?{success:!1,error:new(e??Br)(i.issues.map(s=>Se(s,t,ce())))}:{success:!0,data:i.value}},Ja=Ht(Ce),Xt=e=>async(r,n,o)=>{let t=o?{...o,async:!0}:{async:!0},i=r._zod.run({value:n,issues:[]},t);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(s=>Se(s,t,ce())))}:{success:!0,data:i.value}},Ha=Xt(Ce),ii=e=>(r,n,o)=>{let t=o?{...o,direction:"backward"}:{direction:"backward"};return Gt(e)(r,n,t)},fS=ii(Ce),oi=e=>(r,n,o)=>Gt(e)(r,n,o),pS=oi(Ce),si=e=>async(r,n,o)=>{let t=o?{...o,direction:"backward"}:{direction:"backward"};return Jt(e)(r,n,t)},hS=si(Ce),ai=e=>async(r,n,o)=>Jt(e)(r,n,o),mS=ai(Ce),li=e=>(r,n,o)=>{let t=o?{...o,direction:"backward"}:{direction:"backward"};return Ht(e)(r,n,t)},gS=li(Ce),ci=e=>(r,n,o)=>Ht(e)(r,n,o),vS=ci(Ce),ui=e=>async(r,n,o)=>{let t=o?{...o,direction:"backward"}:{direction:"backward"};return Xt(e)(r,n,t)},yS=ui(Ce),di=e=>async(r,n,o)=>Xt(e)(r,n,o),bS=di(Ce);var De={};Ve(De,{base64:()=>dl,base64url:()=>fi,bigint:()=>yl,boolean:()=>wl,browserEmail:()=>ES,cidrv4:()=>cl,cidrv6:()=>ul,cuid:()=>Xa,cuid2:()=>Ka,date:()=>hl,datetime:()=>gl,domain:()=>NS,duration:()=>rl,e164:()=>pl,email:()=>il,emoji:()=>ol,extendedDuration:()=>wS,guid:()=>nl,hex:()=>zS,hostname:()=>OS,html5Email:()=>$S,httpProtocol:()=>fl,idnEmail:()=>IS,integer:()=>bl,ipv4:()=>sl,ipv6:()=>al,ksuid:()=>el,lowercase:()=>Sl,mac:()=>ll,md5_base64:()=>TS,md5_base64url:()=>RS,md5_hex:()=>DS,nanoid:()=>tl,null:()=>xl,number:()=>pi,rfc5322Email:()=>kS,sha1_base64:()=>AS,sha1_base64url:()=>MS,sha1_hex:()=>PS,sha256_base64:()=>jS,sha256_base64url:()=>LS,sha256_hex:()=>US,sha384_base64:()=>ZS,sha384_base64url:()=>BS,sha384_hex:()=>FS,sha512_base64:()=>VS,sha512_base64url:()=>qS,sha512_hex:()=>WS,string:()=>vl,time:()=>ml,ulid:()=>Ya,undefined:()=>_l,unicodeEmail:()=>Gm,uppercase:()=>$l,uuid:()=>Ct,uuid4:()=>xS,uuid6:()=>_S,uuid7:()=>SS,xid:()=>Qa});var Xa=/^[cC][0-9a-z]{6,}$/,Ka=/^[0-9a-z]+$/,Ya=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Qa=/^[0-9a-vA-V]{20}$/,el=/^[A-Za-z0-9]{27}$/,tl=/^[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)?)?)$/,wS=/^[-+]?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)?)??$/,nl=/^([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})$/,Ct=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)$/,xS=Ct(4),_S=Ct(6),SS=Ct(7),il=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,$S=/^[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])?)*$/,kS=/^(([^<>()\[\]\\.,;:\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,}))$/,Gm=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,IS=Gm,ES=/^[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])?)*$/,CS="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function ol(){return new RegExp(CS,"u")}var sl=/^(?:(?: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])$/,al=/^(([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}|:))$/,ll=e=>{let r=Ae(e??":");return new RegExp(`^(?:[0-9A-F]{2}${r}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${r}){5}[0-9a-f]{2}$`)},cl=/^((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])$/,ul=/^(([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])$/,dl=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,fi=/^[A-Za-z0-9_-]*$/,OS=/^(?=.{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])?)*\.?$/,NS=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,fl=/^https?$/,pl=/^\+[1-9]\d{6,14}$/,Jm="(?:(?:\\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])))",hl=new RegExp(`^${Jm}$`);function Hm(e){let 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 ml(e){return new RegExp(`^${Hm(e)}$`)}function gl(e){let r=Hm({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let o=`${r}(?:${n.join("|")})`;return new RegExp(`^${Jm}T(?:${o})$`)}var vl=e=>{let r=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)},yl=/^-?\d+n?$/,bl=/^-?\d+$/,pi=/^-?\d+(?:\.\d+)?$/,wl=/^(?:true|false)$/i,xl=/^null$/i;var _l=/^undefined$/i;var Sl=/^[^A-Z]*$/,$l=/^[^a-z]*$/,zS=/^[0-9a-fA-F]*$/;function qr(e,r){return new RegExp(`^[A-Za-z0-9+/]{${e}}${r}$`)}function Gr(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var DS=/^[0-9a-fA-F]{32}$/,TS=qr(22,"=="),RS=Gr(22),PS=/^[0-9a-fA-F]{40}$/,AS=qr(27,"="),MS=Gr(27),US=/^[0-9a-fA-F]{64}$/,jS=qr(43,"="),LS=Gr(43),FS=/^[0-9a-fA-F]{96}$/,ZS=qr(64,""),BS=Gr(64),WS=/^[0-9a-fA-F]{128}$/,VS=qr(86,"=="),qS=Gr(86);var ne=k("$ZodCheck",(e,r)=>{var n;e._zod??(e._zod={}),e._zod.def=r,(n=e._zod).onattach??(n.onattach=[])}),Km={number:"number",bigint:"bigint",object:"date"},hi=k("$ZodCheckLessThan",(e,r)=>{ne.init(e,r);let n=Km[typeof r.value];e._zod.onattach.push(o=>{let t=o._zod.bag,i=(r.inclusive?t.maximum:t.exclusiveMaximum)??Number.POSITIVE_INFINITY;r.value<i&&(r.inclusive?t.maximum=r.value:t.exclusiveMaximum=r.value)}),e._zod.check=o=>{(r.inclusive?o.value<=r.value:o.value<r.value)||o.issues.push({origin:n,code:"too_big",maximum:typeof r.value=="object"?r.value.getTime():r.value,input:o.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),mi=k("$ZodCheckGreaterThan",(e,r)=>{ne.init(e,r);let n=Km[typeof r.value];e._zod.onattach.push(o=>{let t=o._zod.bag,i=(r.inclusive?t.minimum:t.exclusiveMinimum)??Number.NEGATIVE_INFINITY;r.value>i&&(r.inclusive?t.minimum=r.value:t.exclusiveMinimum=r.value)}),e._zod.check=o=>{(r.inclusive?o.value>=r.value:o.value>r.value)||o.issues.push({origin:n,code:"too_small",minimum:typeof r.value=="object"?r.value.getTime():r.value,input:o.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),kl=k("$ZodCheckMultipleOf",(e,r)=>{ne.init(e,r),e._zod.onattach.push(n=>{var o;(o=n._zod.bag).multipleOf??(o.multipleOf=r.value)}),e._zod.check=n=>{if(typeof n.value!=typeof r.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%r.value===BigInt(0):Ma(n.value,r.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:r.value,input:n.value,inst:e,continue:!r.abort})}}),Il=k("$ZodCheckNumberFormat",(e,r)=>{ne.init(e,r),r.format=r.format||"float64";let n=r.format?.includes("int"),o=n?"int":"number",[t,i]=Ba[r.format];e._zod.onattach.push(s=>{let a=s._zod.bag;a.format=r.format,a.minimum=t,a.maximum=i,n&&(a.pattern=bl)}),e._zod.check=s=>{let a=s.value;if(n){if(!Number.isInteger(a)){s.issues.push({expected:o,format:r.format,code:"invalid_type",continue:!1,input:a,inst:e});return}if(!Number.isSafeInteger(a)){a>0?s.issues.push({input:a,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!r.abort}):s.issues.push({input:a,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!r.abort});return}}a<t&&s.issues.push({origin:"number",input:a,code:"too_small",minimum:t,inclusive:!0,inst:e,continue:!r.abort}),a>i&&s.issues.push({origin:"number",input:a,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!r.abort})}}),El=k("$ZodCheckBigIntFormat",(e,r)=>{ne.init(e,r);let[n,o]=Wa[r.format];e._zod.onattach.push(t=>{let i=t._zod.bag;i.format=r.format,i.minimum=n,i.maximum=o}),e._zod.check=t=>{let i=t.value;i<n&&t.issues.push({origin:"bigint",input:i,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!r.abort}),i>o&&t.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!r.abort})}}),Cl=k("$ZodCheckMaxSize",(e,r)=>{var n;ne.init(e,r),(n=e._zod.def).when??(n.when=o=>{let t=o.value;return!dt(t)&&t.size!==void 0}),e._zod.onattach.push(o=>{let t=o._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<t&&(o._zod.bag.maximum=r.maximum)}),e._zod.check=o=>{let t=o.value;t.size<=r.maximum||o.issues.push({origin:Fr(t),code:"too_big",maximum:r.maximum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),Ol=k("$ZodCheckMinSize",(e,r)=>{var n;ne.init(e,r),(n=e._zod.def).when??(n.when=o=>{let t=o.value;return!dt(t)&&t.size!==void 0}),e._zod.onattach.push(o=>{let t=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>t&&(o._zod.bag.minimum=r.minimum)}),e._zod.check=o=>{let t=o.value;t.size>=r.minimum||o.issues.push({origin:Fr(t),code:"too_small",minimum:r.minimum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),Nl=k("$ZodCheckSizeEquals",(e,r)=>{var n;ne.init(e,r),(n=e._zod.def).when??(n.when=o=>{let t=o.value;return!dt(t)&&t.size!==void 0}),e._zod.onattach.push(o=>{let t=o._zod.bag;t.minimum=r.size,t.maximum=r.size,t.size=r.size}),e._zod.check=o=>{let t=o.value,i=t.size;if(i===r.size)return;let s=i>r.size;o.issues.push({origin:Fr(t),...s?{code:"too_big",maximum:r.size}:{code:"too_small",minimum:r.size},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!r.abort})}}),zl=k("$ZodCheckMaxLength",(e,r)=>{var n;ne.init(e,r),(n=e._zod.def).when??(n.when=o=>{let t=o.value;return!dt(t)&&t.length!==void 0}),e._zod.onattach.push(o=>{let t=o._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<t&&(o._zod.bag.maximum=r.maximum)}),e._zod.check=o=>{let t=o.value;if(t.length<=r.maximum)return;let s=Zr(t);o.issues.push({origin:s,code:"too_big",maximum:r.maximum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),Dl=k("$ZodCheckMinLength",(e,r)=>{var n;ne.init(e,r),(n=e._zod.def).when??(n.when=o=>{let t=o.value;return!dt(t)&&t.length!==void 0}),e._zod.onattach.push(o=>{let t=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>t&&(o._zod.bag.minimum=r.minimum)}),e._zod.check=o=>{let t=o.value;if(t.length>=r.minimum)return;let s=Zr(t);o.issues.push({origin:s,code:"too_small",minimum:r.minimum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),Tl=k("$ZodCheckLengthEquals",(e,r)=>{var n;ne.init(e,r),(n=e._zod.def).when??(n.when=o=>{let t=o.value;return!dt(t)&&t.length!==void 0}),e._zod.onattach.push(o=>{let t=o._zod.bag;t.minimum=r.length,t.maximum=r.length,t.length=r.length}),e._zod.check=o=>{let t=o.value,i=t.length;if(i===r.length)return;let s=Zr(t),a=i>r.length;o.issues.push({origin:s,...a?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!r.abort})}}),Kt=k("$ZodCheckStringFormat",(e,r)=>{var n,o;ne.init(e,r),e._zod.onattach.push(t=>{let i=t._zod.bag;i.format=r.format,r.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(r.pattern))}),r.pattern?(n=e._zod).check??(n.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})}):(o=e._zod).check??(o.check=()=>{})}),Rl=k("$ZodCheckRegex",(e,r)=>{Kt.init(e,r),e._zod.check=n=>{r.pattern.lastIndex=0,!r.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:r.pattern.toString(),inst:e,continue:!r.abort})}}),Pl=k("$ZodCheckLowerCase",(e,r)=>{r.pattern??(r.pattern=Sl),Kt.init(e,r)}),Al=k("$ZodCheckUpperCase",(e,r)=>{r.pattern??(r.pattern=$l),Kt.init(e,r)}),Ml=k("$ZodCheckIncludes",(e,r)=>{ne.init(e,r);let n=Ae(r.includes),o=new RegExp(typeof r.position=="number"?`^.{${r.position}}${n}`:n);r.pattern=o,e._zod.onattach.push(t=>{let i=t._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),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})}}),Ul=k("$ZodCheckStartsWith",(e,r)=>{ne.init(e,r);let n=new RegExp(`^${Ae(r.prefix)}.*`);r.pattern??(r.pattern=n),e._zod.onattach.push(o=>{let t=o._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=o=>{o.value.startsWith(r.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:o.value,inst:e,continue:!r.abort})}}),jl=k("$ZodCheckEndsWith",(e,r)=>{ne.init(e,r);let n=new RegExp(`.*${Ae(r.suffix)}$`);r.pattern??(r.pattern=n),e._zod.onattach.push(o=>{let t=o._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=o=>{o.value.endsWith(r.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:o.value,inst:e,continue:!r.abort})}});function Xm(e,r,n){e.issues.length&&r.issues.push(...Ee(n,e.issues))}var Ll=k("$ZodCheckProperty",(e,r)=>{ne.init(e,r),e._zod.check=n=>{let o=r.schema._zod.run({value:n.value[r.property],issues:[]},{});if(o instanceof Promise)return o.then(t=>Xm(t,n,r.property));Xm(o,n,r.property)}}),Fl=k("$ZodCheckMimeType",(e,r)=>{ne.init(e,r);let n=new Set(r.mime);e._zod.onattach.push(o=>{o._zod.bag.mime=r.mime}),e._zod.check=o=>{n.has(o.value.type)||o.issues.push({code:"invalid_value",values:r.mime,input:o.value.type,inst:e,continue:!r.abort})}}),Zl=k("$ZodCheckOverwrite",(e,r)=>{ne.init(e,r),e._zod.check=n=>{n.value=r.tx(n.value)}});var Jr=class{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}let o=r.split(`
|
|
143
143
|
`).filter(s=>s),t=Math.min(...o.map(s=>s.length-s.trimStart().length)),i=o.map(s=>s.slice(t)).map(s=>" ".repeat(this.indent*2)+s);for(let s of i)this.content.push(s)}compile(){let r=Function,n=this?.args,t=[...(this?.content??[""]).map(i=>` ${i}`)];return new r(...n,t.join(`
|
|
144
144
|
`))}};var Bl={major:4,minor:4,patch:3};var L=k("$ZodType",(e,r)=>{var n;e??(e={}),e._zod.def=r,e._zod.bag=e._zod.bag||{},e._zod.version=Bl;let o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(let t of o)for(let i of t._zod.onattach)i(e);if(o.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(s,a,c)=>{let u=ht(s),l;for(let p of a){if(p._zod.def.when){if(Va(s)||!p._zod.def.when(s))continue}else if(u)continue;let f=s.issues.length,d=p._zod.check(s);if(d instanceof Promise&&c?.async===!1)throw new Ze;if(l||d instanceof Promise)l=(l??Promise.resolve()).then(async()=>{await d,s.issues.length!==f&&(u||(u=ht(s,f)))});else{if(s.issues.length===f)continue;u||(u=ht(s,f))}}return l?l.then(()=>s):s},i=(s,a,c)=>{if(ht(s))return s.aborted=!0,s;let u=t(a,o,c);if(u instanceof Promise){if(c.async===!1)throw new Ze;return u.then(l=>e._zod.parse(l,c))}return e._zod.parse(u,c)};e._zod.run=(s,a)=>{if(a.skipChecks)return e._zod.parse(s,a);if(a.direction==="backward"){let u=e._zod.parse({value:s.value,issues:[]},{...a,skipChecks:!0});return u instanceof Promise?u.then(l=>i(l,s,a)):i(u,s,a)}let c=e._zod.parse(s,a);if(c instanceof Promise){if(a.async===!1)throw new Ze;return c.then(u=>t(u,o,a))}return t(c,o,a)}}W(e,"~standard",()=>({validate:t=>{try{let i=Ja(e,t);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return Ha(e,t).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}))}),Ot=k("$ZodString",(e,r)=>{L.init(e,r),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??vl(e._zod.bag),e._zod.parse=(n,o)=>{if(r.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),te=k("$ZodStringFormat",(e,r)=>{Kt.init(e,r),Ot.init(e,r)}),Vl=k("$ZodGUID",(e,r)=>{r.pattern??(r.pattern=nl),te.init(e,r)}),ql=k("$ZodUUID",(e,r)=>{if(r.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(o===void 0)throw new Error(`Invalid UUID version: "${r.version}"`);r.pattern??(r.pattern=Ct(o))}else r.pattern??(r.pattern=Ct());te.init(e,r)}),Gl=k("$ZodEmail",(e,r)=>{r.pattern??(r.pattern=il),te.init(e,r)}),Jl=k("$ZodURL",(e,r)=>{te.init(e,r),e._zod.check=n=>{try{let o=n.value.trim();if(!r.normalize&&r.protocol?.source===fl.source&&!/^https?:\/\//i.test(o)){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!r.abort});return}let t=new URL(o);r.hostname&&(r.hostname.lastIndex=0,r.hostname.test(t.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:r.hostname.source,input:n.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)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:n.value,inst:e,continue:!r.abort})),r.normalize?n.value=t.href:n.value=o;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!r.abort})}}}),Hl=k("$ZodEmoji",(e,r)=>{r.pattern??(r.pattern=ol()),te.init(e,r)}),Xl=k("$ZodNanoID",(e,r)=>{r.pattern??(r.pattern=tl),te.init(e,r)}),Kl=k("$ZodCUID",(e,r)=>{r.pattern??(r.pattern=Xa),te.init(e,r)}),Yl=k("$ZodCUID2",(e,r)=>{r.pattern??(r.pattern=Ka),te.init(e,r)}),Ql=k("$ZodULID",(e,r)=>{r.pattern??(r.pattern=Ya),te.init(e,r)}),ec=k("$ZodXID",(e,r)=>{r.pattern??(r.pattern=Qa),te.init(e,r)}),tc=k("$ZodKSUID",(e,r)=>{r.pattern??(r.pattern=el),te.init(e,r)}),rc=k("$ZodISODateTime",(e,r)=>{r.pattern??(r.pattern=gl(r)),te.init(e,r)}),nc=k("$ZodISODate",(e,r)=>{r.pattern??(r.pattern=hl),te.init(e,r)}),ic=k("$ZodISOTime",(e,r)=>{r.pattern??(r.pattern=ml(r)),te.init(e,r)}),oc=k("$ZodISODuration",(e,r)=>{r.pattern??(r.pattern=rl),te.init(e,r)}),sc=k("$ZodIPv4",(e,r)=>{r.pattern??(r.pattern=sl),te.init(e,r),e._zod.bag.format="ipv4"}),ac=k("$ZodIPv6",(e,r)=>{r.pattern??(r.pattern=al),te.init(e,r),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!r.abort})}}}),lc=k("$ZodMAC",(e,r)=>{r.pattern??(r.pattern=ll(r.delimiter)),te.init(e,r),e._zod.bag.format="mac"}),cc=k("$ZodCIDRv4",(e,r)=>{r.pattern??(r.pattern=cl),te.init(e,r)}),uc=k("$ZodCIDRv6",(e,r)=>{r.pattern??(r.pattern=ul),te.init(e,r),e._zod.check=n=>{let o=n.value.split("/");try{if(o.length!==2)throw new Error;let[t,i]=o;if(!i)throw new Error;let s=Number(i);if(`${s}`!==i)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${t}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!r.abort})}}});function dc(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var fc=k("$ZodBase64",(e,r)=>{r.pattern??(r.pattern=dl),te.init(e,r),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{dc(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!r.abort})}});function pg(e){if(!fi.test(e))return!1;let r=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),n=r.padEnd(Math.ceil(r.length/4)*4,"=");return dc(n)}var pc=k("$ZodBase64URL",(e,r)=>{r.pattern??(r.pattern=fi),te.init(e,r),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{pg(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!r.abort})}}),hc=k("$ZodE164",(e,r)=>{r.pattern??(r.pattern=pl),te.init(e,r)});function hg(e,r=null){try{let n=e.split(".");if(n.length!==3)return!1;let[o]=n;if(!o)return!1;let t=JSON.parse(atob(o));return!("typ"in t&&t?.typ!=="JWT"||!t.alg||r&&(!("alg"in t)||t.alg!==r))}catch{return!1}}var mc=k("$ZodJWT",(e,r)=>{te.init(e,r),e._zod.check=n=>{hg(n.value,r.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!r.abort})}}),gc=k("$ZodCustomStringFormat",(e,r)=>{te.init(e,r),e._zod.check=n=>{r.fn(n.value)||n.issues.push({code:"invalid_format",format:r.format,input:n.value,inst:e,continue:!r.abort})}}),wi=k("$ZodNumber",(e,r)=>{L.init(e,r),e._zod.pattern=e._zod.bag.pattern??pi,e._zod.parse=(n,o)=>{if(r.coerce)try{n.value=Number(n.value)}catch{}let t=n.value;if(typeof t=="number"&&!Number.isNaN(t)&&Number.isFinite(t))return n;let i=typeof t=="number"?Number.isNaN(t)?"NaN":Number.isFinite(t)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:t,inst:e,...i?{received:i}:{}}),n}}),vc=k("$ZodNumberFormat",(e,r)=>{Il.init(e,r),wi.init(e,r)}),Hr=k("$ZodBoolean",(e,r)=>{L.init(e,r),e._zod.pattern=wl,e._zod.parse=(n,o)=>{if(r.coerce)try{n.value=!!n.value}catch{}let t=n.value;return typeof t=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:t,inst:e}),n}}),xi=k("$ZodBigInt",(e,r)=>{L.init(e,r),e._zod.pattern=yl,e._zod.parse=(n,o)=>{if(r.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),yc=k("$ZodBigIntFormat",(e,r)=>{El.init(e,r),xi.init(e,r)}),bc=k("$ZodSymbol",(e,r)=>{L.init(e,r),e._zod.parse=(n,o)=>{let t=n.value;return typeof t=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:t,inst:e}),n}}),wc=k("$ZodUndefined",(e,r)=>{L.init(e,r),e._zod.pattern=_l,e._zod.values=new Set([void 0]),e._zod.parse=(n,o)=>{let t=n.value;return typeof t>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:t,inst:e}),n}}),xc=k("$ZodNull",(e,r)=>{L.init(e,r),e._zod.pattern=xl,e._zod.values=new Set([null]),e._zod.parse=(n,o)=>{let t=n.value;return t===null||n.issues.push({expected:"null",code:"invalid_type",input:t,inst:e}),n}}),_c=k("$ZodAny",(e,r)=>{L.init(e,r),e._zod.parse=n=>n}),Sc=k("$ZodUnknown",(e,r)=>{L.init(e,r),e._zod.parse=n=>n}),$c=k("$ZodNever",(e,r)=>{L.init(e,r),e._zod.parse=(n,o)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),kc=k("$ZodVoid",(e,r)=>{L.init(e,r),e._zod.parse=(n,o)=>{let t=n.value;return typeof t>"u"||n.issues.push({expected:"void",code:"invalid_type",input:t,inst:e}),n}}),Ic=k("$ZodDate",(e,r)=>{L.init(e,r),e._zod.parse=(n,o)=>{if(r.coerce)try{n.value=new Date(n.value)}catch{}let t=n.value,i=t instanceof Date;return i&&!Number.isNaN(t.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:t,...i?{received:"Invalid Date"}:{},inst:e}),n}});function Qm(e,r,n){e.issues.length&&r.issues.push(...Ee(n,e.issues)),r.value[n]=e.value}var Ec=k("$ZodArray",(e,r)=>{L.init(e,r),e._zod.parse=(n,o)=>{let t=n.value;if(!Array.isArray(t))return n.issues.push({expected:"array",code:"invalid_type",input:t,inst:e}),n;n.value=Array(t.length);let i=[];for(let s=0;s<t.length;s++){let a=t[s],c=r.element._zod.run({value:a,issues:[]},o);c instanceof Promise?i.push(c.then(u=>Qm(u,n,s))):Qm(c,n,s)}return i.length?Promise.all(i).then(()=>n):n}});function bi(e,r,n,o,t,i){let s=n in o;if(e.issues.length){if(t&&i&&!s)return;r.issues.push(...Ee(n,e.issues))}if(!s&&!t){e.issues.length||r.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?s&&(r.value[n]=void 0):r.value[n]=e.value}function mg(e){let r=Object.keys(e.shape);for(let o of r)if(!e.shape?.[o]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${o}": expected a Zod schema`);let n=Za(e.shape);return{...e,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(n)}}function gg(e,r,n,o,t,i){let s=[],a=t.keySet,c=t.catchall._zod,u=c.def.type,l=c.optin==="optional",p=c.optout==="optional";for(let f in r){if(f==="__proto__"||a.has(f))continue;if(u==="never"){s.push(f);continue}let d=c.run({value:r[f],issues:[]},o);d instanceof Promise?e.push(d.then(m=>bi(m,n,f,r,l,p))):bi(d,n,f,r,l,p)}return s.length&&n.issues.push({code:"unrecognized_keys",keys:s,input:r,inst:i}),e.length?Promise.all(e).then(()=>n):n}var vg=k("$ZodObject",(e,r)=>{if(L.init(e,r),!Object.getOwnPropertyDescriptor(r,"shape")?.get){let a=r.shape;Object.defineProperty(r,"shape",{get:()=>{let c={...a};return Object.defineProperty(r,"shape",{value:c}),c}})}let o=Vt(()=>mg(r));W(e._zod,"propValues",()=>{let a=r.shape,c={};for(let u in a){let l=a[u]._zod;if(l.values){c[u]??(c[u]=new Set);for(let p of l.values)c[u].add(p)}}return c});let t=Et,i=r.catchall,s;e._zod.parse=(a,c)=>{s??(s=o.value);let u=a.value;if(!t(u))return a.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),a;a.value={};let l=[],p=s.shape;for(let f of s.keys){let d=p[f],m=d._zod.optin==="optional",h=d._zod.optout==="optional",g=d._zod.run({value:u[f],issues:[]},c);g instanceof Promise?l.push(g.then(x=>bi(x,a,f,u,m,h))):bi(g,a,f,u,m,h)}return i?gg(l,u,a,c,o.value,e):l.length?Promise.all(l).then(()=>a):a}}),Cc=k("$ZodObjectJIT",(e,r)=>{vg.init(e,r);let n=e._zod.parse,o=Vt(()=>mg(r)),t=f=>{let d=new Jr(["shape","payload","ctx"]),m=o.value,h=y=>{let _=ei(y);return`shape[${_}]._zod.run({ value: input[${_}], issues: [] }, ctx)`};d.write("const input = payload.value;");let g=Object.create(null),x=0;for(let y of m.keys)g[y]=`key_${x++}`;d.write("const newResult = {};");for(let y of m.keys){let _=g[y],v=ei(y),w=f[y],S=w?._zod?.optin==="optional",C=w?._zod?.optout==="optional";d.write(`const ${_} = ${h(y)};`),S&&C?d.write(`
|
|
145
145
|
if (${_}.issues.length) {
|
|
@@ -200,10 +200,10 @@ or you can use record.mirror to access the mirror instance during recording.`,fh
|
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
-
`)}d.write("payload.value = newResult;"),d.write("return payload;");let b=d.compile();return(y,_)=>b(f,y,_)},i,s=Et,a=!It.jitless,u=a&&ja.value,l=r.catchall,p;e._zod.parse=(f,d)=>{p??(p=o.value);let m=f.value;return s(m)?a&&u&&d?.async===!1&&d.jitless!==!0?(i||(i=t(r.shape)),f=i(f,d),l?gg([],m,f,d,p,e):f):n(f,d):(f.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),f)}});function eg(e,r,n,o){for(let i of e)if(i.issues.length===0)return r.value=i.value,r;let t=e.filter(i=>!ht(i));return t.length===1?(r.value=t[0].value,t[0]):(r.issues.push({code:"invalid_union",input:r.value,inst:n,errors:e.map(i=>i.issues.map(s=>Se(s,o,ce())))}),r)}var Xr=k("$ZodUnion",(e,r)=>{L.init(e,r),W(e._zod,"optin",()=>r.options.some(o=>o._zod.optin==="optional")?"optional":void 0),W(e._zod,"optout",()=>r.options.some(o=>o._zod.optout==="optional")?"optional":void 0),W(e._zod,"values",()=>{if(r.options.every(o=>o._zod.values))return new Set(r.options.flatMap(o=>Array.from(o._zod.values)))}),W(e._zod,"pattern",()=>{if(r.options.every(o=>o._zod.pattern)){let o=r.options.map(t=>t._zod.pattern);return new RegExp(`^(${o.map(t=>jr(t.source)).join("|")})$`)}});let n=r.options.length===1?r.options[0]._zod.run:null;e._zod.parse=(o,t)=>{if(n)return n(o,t);let i=!1,s=[];for(let a of r.options){let c=a._zod.run({value:o.value,issues:[]},t);if(c instanceof Promise)s.push(c),i=!0;else{if(c.issues.length===0)return c;s.push(c)}}return i?Promise.all(s).then(a=>eg(a,o,e,t)):eg(s,o,e,t)}});function tg(e,r,n,o){let t=e.filter(i=>i.issues.length===0);return t.length===1?(r.value=t[0].value,r):(t.length===0?r.issues.push({code:"invalid_union",input:r.value,inst:n,errors:e.map(i=>i.issues.map(s=>Se(s,o,ce())))}):r.issues.push({code:"invalid_union",input:r.value,inst:n,errors:[],inclusive:!1}),r)}var Oc=k("$ZodXor",(e,r)=>{Xr.init(e,r),r.inclusive=!1;let n=r.options.length===1?r.options[0]._zod.run:null;e._zod.parse=(o,t)=>{if(n)return n(o,t);let i=!1,s=[];for(let a of r.options){let c=a._zod.run({value:o.value,issues:[]},t);c instanceof Promise?(s.push(c),i=!0):s.push(c)}return i?Promise.all(s).then(a=>tg(a,o,e,t)):tg(s,o,e,t)}}),Nc=k("$ZodDiscriminatedUnion",(e,r)=>{r.inclusive=!1,Xr.init(e,r);let n=e._zod.parse;W(e._zod,"propValues",()=>{let t={};for(let i of r.options){let s=i._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(i)}"`);for(let[a,c]of Object.entries(s)){t[a]||(t[a]=new Set);for(let u of c)t[a].add(u)}}return t});let o=Vt(()=>{let t=r.options,i=new Map;for(let s of t){let a=s._zod.propValues?.[r.discriminator];if(!a||a.size===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(s)}"`);for(let c of a){if(i.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);i.set(c,s)}}return i});e._zod.parse=(t,i)=>{let s=t.value;if(!Et(s))return t.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),t;let a=o.value.get(s?.[r.discriminator]);return a?a._zod.run(t,i):r.unionFallback||i.direction==="backward"?n(t,i):(t.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:r.discriminator,options:Array.from(o.value.keys()),input:s,path:[r.discriminator],inst:e}),t)}}),zc=k("$ZodIntersection",(e,r)=>{L.init(e,r),e._zod.parse=(n,o)=>{let t=n.value,i=r.left._zod.run({value:t,issues:[]},o),s=r.right._zod.run({value:t,issues:[]},o);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([c,u])=>rg(n,c,u)):rg(n,i,s)}});function Wl(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(pt(e)&&pt(r)){let n=Object.keys(r),o=Object.keys(e).filter(i=>n.indexOf(i)!==-1),t={...e,...r};for(let i of o){let s=Wl(e[i],r[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};t[i]=s.data}return{valid:!0,data:t}}if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let o=0;o<e.length;o++){let t=e[o],i=r[o],s=Wl(t,i);if(!s.valid)return{valid:!1,mergeErrorPath:[o,...s.mergeErrorPath]};n.push(s.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function rg(e,r,n){let o=new Map,t;for(let a of r.issues)if(a.code==="unrecognized_keys"){t??(t=a);for(let c of a.keys)o.has(c)||o.set(c,{}),o.get(c).l=!0}else e.issues.push(a);for(let a of n.issues)if(a.code==="unrecognized_keys")for(let c of a.keys)o.has(c)||o.set(c,{}),o.get(c).r=!0;else e.issues.push(a);let i=[...o].filter(([,a])=>a.l&&a.r).map(([a])=>a);if(i.length&&t&&e.issues.push({...t,keys:i}),ht(e))return e;let s=Wl(r.value,n.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return e.value=s.data,e}var _i=k("$ZodTuple",(e,r)=>{L.init(e,r);let n=r.items;e._zod.parse=(o,t)=>{let i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];let s=[],a=ng(n,"optin"),c=ng(n,"optout");if(!r.rest){if(i.length<a)return o.issues.push({code:"too_small",minimum:a,inclusive:!0,input:i,inst:e,origin:"array"}),o;i.length>n.length&&o.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:i,inst:e,origin:"array"})}let u=new Array(n.length);for(let l=0;l<n.length;l++){let p=n[l]._zod.run({value:i[l],issues:[]},t);p instanceof Promise?s.push(p.then(f=>{u[l]=f})):u[l]=p}if(r.rest){let l=n.length-1,p=i.slice(n.length);for(let f of p){l++;let d=r.rest._zod.run({value:f,issues:[]},t);d instanceof Promise?s.push(d.then(m=>ig(m,o,l))):ig(d,o,l)}}return s.length?Promise.all(s).then(()=>og(u,o,n,i,c)):og(u,o,n,i,c)}});function ng(e,r){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[r]!=="optional")return n+1;return 0}function ig(e,r,n){e.issues.length&&r.issues.push(...Ee(n,e.issues)),r.value[n]=e.value}function og(e,r,n,o,t){for(let i=0;i<n.length;i++){let s=e[i],a=i<o.length;if(s.issues.length){if(!a&&i>=t){r.value.length=i;break}r.issues.push(...Ee(i,s.issues))}r.value[i]=s.value}for(let i=r.value.length-1;i>=o.length&&(n[i]._zod.optout==="optional"&&r.value[i]===void 0);i--)r.value.length=i;return r}var Dc=k("$ZodRecord",(e,r)=>{L.init(e,r),e._zod.parse=(n,o)=>{let t=n.value;if(!pt(t))return n.issues.push({expected:"record",code:"invalid_type",input:t,inst:e}),n;let i=[],s=r.keyType._zod.values;if(s){n.value={};let a=new Set;for(let u of s)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){a.add(typeof u=="number"?u.toString():u);let l=r.keyType._zod.run({value:u,issues:[]},o);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(l.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(d=>Se(d,o,ce())),input:u,path:[u],inst:e});continue}let p=l.value,f=r.valueType._zod.run({value:t[u],issues:[]},o);f instanceof Promise?i.push(f.then(d=>{d.issues.length&&n.issues.push(...Ee(u,d.issues)),n.value[p]=d.value})):(f.issues.length&&n.issues.push(...Ee(u,f.issues)),n.value[p]=f.value)}let c;for(let u in t)a.has(u)||(c=c??[],c.push(u));c&&c.length>0&&n.issues.push({code:"unrecognized_keys",input:t,inst:e,keys:c})}else{n.value={};for(let a of Reflect.ownKeys(t)){if(a==="__proto__"||!Object.prototype.propertyIsEnumerable.call(t,a))continue;let c=r.keyType._zod.run({value:a,issues:[]},o);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof a=="string"&&pi.test(a)&&c.issues.length){let p=r.keyType._zod.run({value:Number(a),issues:[]},o);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");p.issues.length===0&&(c=p)}if(c.issues.length){r.mode==="loose"?n.value[a]=t[a]:n.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(p=>Se(p,o,ce())),input:a,path:[a],inst:e});continue}let l=r.valueType._zod.run({value:t[a],issues:[]},o);l instanceof Promise?i.push(l.then(p=>{p.issues.length&&n.issues.push(...Ee(a,p.issues)),n.value[c.value]=p.value})):(l.issues.length&&n.issues.push(...Ee(a,l.issues)),n.value[c.value]=l.value)}}return i.length?Promise.all(i).then(()=>n):n}}),Tc=k("$ZodMap",(e,r)=>{L.init(e,r),e._zod.parse=(n,o)=>{let t=n.value;if(!(t instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:t,inst:e}),n;let i=[];n.value=new Map;for(let[s,a]of t){let c=r.keyType._zod.run({value:s,issues:[]},o),u=r.valueType._zod.run({value:a,issues:[]},o);c instanceof Promise||u instanceof Promise?i.push(Promise.all([c,u]).then(([l,p])=>{sg(l,p,n,s,t,e,o)})):sg(c,u,n,s,t,e,o)}return i.length?Promise.all(i).then(()=>n):n}});function sg(e,r,n,o,t,i,s){e.issues.length&&(Lr.has(typeof o)?n.issues.push(...Ee(o,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:t,inst:i,issues:e.issues.map(a=>Se(a,s,ce()))})),r.issues.length&&(Lr.has(typeof o)?n.issues.push(...Ee(o,r.issues)):n.issues.push({origin:"map",code:"invalid_element",input:t,inst:i,key:o,issues:r.issues.map(a=>Se(a,s,ce()))})),n.value.set(e.value,r.value)}var Pc=k("$ZodSet",(e,r)=>{L.init(e,r),e._zod.parse=(n,o)=>{let t=n.value;if(!(t instanceof Set))return n.issues.push({input:t,inst:e,expected:"set",code:"invalid_type"}),n;let i=[];n.value=new Set;for(let s of t){let a=r.valueType._zod.run({value:s,issues:[]},o);a instanceof Promise?i.push(a.then(c=>ag(c,n))):ag(a,n)}return i.length?Promise.all(i).then(()=>n):n}});function ag(e,r){e.issues.length&&r.issues.push(...e.issues),r.value.add(e.value)}var Rc=k("$ZodEnum",(e,r)=>{L.init(e,r);let n=Ur(r.entries),o=new Set(n);e._zod.values=o,e._zod.pattern=new RegExp(`^(${n.filter(t=>Lr.has(typeof t)).map(t=>typeof t=="string"?Ae(t):t.toString()).join("|")})$`),e._zod.parse=(t,i)=>{let s=t.value;return o.has(s)||t.issues.push({code:"invalid_value",values:n,input:s,inst:e}),t}}),Ac=k("$ZodLiteral",(e,r)=>{if(L.init(e,r),r.values.length===0)throw new Error("Cannot create literal schema with no valid values");let n=new Set(r.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.values.map(o=>typeof o=="string"?Ae(o):o?Ae(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,t)=>{let i=o.value;return n.has(i)||o.issues.push({code:"invalid_value",values:r.values,input:i,inst:e}),o}}),Mc=k("$ZodFile",(e,r)=>{L.init(e,r),e._zod.parse=(n,o)=>{let t=n.value;return t instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:t,inst:e}),n}}),Uc=k("$ZodTransform",(e,r)=>{L.init(e,r),e._zod.optin="optional",e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new ut(e.constructor.name);let t=r.transform(n.value,n);if(o.async)return(t instanceof Promise?t:Promise.resolve(t)).then(s=>(n.value=s,n.fallback=!0,n));if(t instanceof Promise)throw new Ze;return n.value=t,n.fallback=!0,n}});function lg(e,r){return r===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var Si=k("$ZodOptional",(e,r)=>{L.init(e,r),e._zod.optin="optional",e._zod.optout="optional",W(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),W(e._zod,"pattern",()=>{let n=r.innerType._zod.pattern;return n?new RegExp(`^(${jr(n.source)})?$`):void 0}),e._zod.parse=(n,o)=>{if(r.innerType._zod.optin==="optional"){let t=n.value,i=r.innerType._zod.run(n,o);return i instanceof Promise?i.then(s=>lg(s,t)):lg(i,t)}return n.value===void 0?n:r.innerType._zod.run(n,o)}}),jc=k("$ZodExactOptional",(e,r)=>{Si.init(e,r),W(e._zod,"values",()=>r.innerType._zod.values),W(e._zod,"pattern",()=>r.innerType._zod.pattern),e._zod.parse=(n,o)=>r.innerType._zod.run(n,o)}),Lc=k("$ZodNullable",(e,r)=>{L.init(e,r),W(e._zod,"optin",()=>r.innerType._zod.optin),W(e._zod,"optout",()=>r.innerType._zod.optout),W(e._zod,"pattern",()=>{let n=r.innerType._zod.pattern;return n?new RegExp(`^(${jr(n.source)}|null)$`):void 0}),W(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),e._zod.parse=(n,o)=>n.value===null?n:r.innerType._zod.run(n,o)}),Fc=k("$ZodDefault",(e,r)=>{L.init(e,r),e._zod.optin="optional",W(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return r.innerType._zod.run(n,o);if(n.value===void 0)return n.value=r.defaultValue,n;let t=r.innerType._zod.run(n,o);return t instanceof Promise?t.then(i=>cg(i,r)):cg(t,r)}});function cg(e,r){return e.value===void 0&&(e.value=r.defaultValue),e}var Zc=k("$ZodPrefault",(e,r)=>{L.init(e,r),e._zod.optin="optional",W(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(n,o)=>(o.direction==="backward"||n.value===void 0&&(n.value=r.defaultValue),r.innerType._zod.run(n,o))}),Bc=k("$ZodNonOptional",(e,r)=>{L.init(e,r),W(e._zod,"values",()=>{let n=r.innerType._zod.values;return n?new Set([...n].filter(o=>o!==void 0)):void 0}),e._zod.parse=(n,o)=>{let t=r.innerType._zod.run(n,o);return t instanceof Promise?t.then(i=>ug(i,e)):ug(t,e)}});function ug(e,r){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:r}),e}var Wc=k("$ZodSuccess",(e,r)=>{L.init(e,r),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new ut("ZodSuccess");let t=r.innerType._zod.run(n,o);return t instanceof Promise?t.then(i=>(n.value=i.issues.length===0,n)):(n.value=t.issues.length===0,n)}}),Vc=k("$ZodCatch",(e,r)=>{L.init(e,r),e._zod.optin="optional",W(e._zod,"optout",()=>r.innerType._zod.optout),W(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return r.innerType._zod.run(n,o);let t=r.innerType._zod.run(n,o);return t instanceof Promise?t.then(i=>(n.value=i.value,i.issues.length&&(n.value=r.catchValue({...n,error:{issues:i.issues.map(s=>Se(s,o,ce()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=t.value,t.issues.length&&(n.value=r.catchValue({...n,error:{issues:t.issues.map(i=>Se(i,o,ce()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),qc=k("$ZodNaN",(e,r)=>{L.init(e,r),e._zod.parse=(n,o)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),$i=k("$ZodPipe",(e,r)=>{L.init(e,r),W(e._zod,"values",()=>r.in._zod.values),W(e._zod,"optin",()=>r.in._zod.optin),W(e._zod,"optout",()=>r.out._zod.optout),W(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(n,o)=>{if(o.direction==="backward"){let i=r.out._zod.run(n,o);return i instanceof Promise?i.then(s=>gi(s,r.in,o)):gi(i,r.in,o)}let t=r.in._zod.run(n,o);return t instanceof Promise?t.then(i=>gi(i,r.out,o)):gi(t,r.out,o)}});function gi(e,r,n){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}var Kr=k("$ZodCodec",(e,r)=>{L.init(e,r),W(e._zod,"values",()=>r.in._zod.values),W(e._zod,"optin",()=>r.in._zod.optin),W(e._zod,"optout",()=>r.out._zod.optout),W(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(n,o)=>{if((o.direction||"forward")==="forward"){let i=r.in._zod.run(n,o);return i instanceof Promise?i.then(s=>vi(s,r,o)):vi(i,r,o)}else{let i=r.out._zod.run(n,o);return i instanceof Promise?i.then(s=>vi(s,r,o)):vi(i,r,o)}}});function vi(e,r,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||"forward")==="forward"){let t=r.transform(e.value,e);return t instanceof Promise?t.then(i=>yi(e,i,r.out,n)):yi(e,t,r.out,n)}else{let t=r.reverseTransform(e.value,e);return t instanceof Promise?t.then(i=>yi(e,i,r.in,n)):yi(e,t,r.in,n)}}function yi(e,r,n,o){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:r,issues:e.issues},o)}var Gc=k("$ZodPreprocess",(e,r)=>{$i.init(e,r)}),Jc=k("$ZodReadonly",(e,r)=>{L.init(e,r),W(e._zod,"propValues",()=>r.innerType._zod.propValues),W(e._zod,"values",()=>r.innerType._zod.values),W(e._zod,"optin",()=>r.innerType?._zod?.optin),W(e._zod,"optout",()=>r.innerType?._zod?.optout),e._zod.parse=(n,o)=>{if(o.direction==="backward")return r.innerType._zod.run(n,o);let t=r.innerType._zod.run(n,o);return t instanceof Promise?t.then(dg):dg(t)}});function dg(e){return e.value=Object.freeze(e.value),e}var Hc=k("$ZodTemplateLiteral",(e,r)=>{L.init(e,r);let n=[];for(let o of r.parts)if(typeof o=="object"&&o!==null){if(!o._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);let t=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!t)throw new Error(`Invalid template literal part: ${o._zod.traits}`);let i=t.startsWith("^")?1:0,s=t.endsWith("$")?t.length-1:t.length;n.push(t.slice(i,s))}else if(o===null||Fa.has(typeof o))n.push(Ae(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(o,t)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:e,expected:"string",code:"invalid_type"}),o):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:e,code:"invalid_format",format:r.format??"template_literal",pattern:e._zod.pattern.source}),o)}),Xc=k("$ZodFunction",(e,r)=>(L.init(e,r),e._def=r,e._zod.def=r,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return function(...o){let t=e._def.input?ri(e._def.input,o):o,i=Reflect.apply(n,this,t);return e._def.output?ri(e._def.output,i):i}},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return async function(...o){let t=e._def.input?await ni(e._def.input,o):o,i=await Reflect.apply(n,this,t);return e._def.output?await ni(e._def.output,i):i}},e._zod.parse=(n,o)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{let o=e.constructor;return Array.isArray(n[0])?new o({type:"function",input:new _i({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new o({type:"function",input:n[0],output:e._def.output})},e.output=n=>{let o=e.constructor;return new o({type:"function",input:e._def.input,output:n})},e)),Kc=k("$ZodPromise",(e,r)=>{L.init(e,r),e._zod.parse=(n,o)=>Promise.resolve(n.value).then(t=>r.innerType._zod.run({value:t,issues:[]},o))}),Yc=k("$ZodLazy",(e,r)=>{L.init(e,r),W(e._zod,"innerType",()=>{let n=r;return n._cachedInner||(n._cachedInner=r.getter()),n._cachedInner}),W(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),W(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),W(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),W(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(n,o)=>e._zod.innerType._zod.run(n,o)}),Qc=k("$ZodCustom",(e,r)=>{ne.init(e,r),L.init(e,r),e._zod.parse=(n,o)=>n,e._zod.check=n=>{let o=n.value,t=r.fn(o);if(t instanceof Promise)return t.then(i=>fg(i,n,o,e));fg(t,n,o,e)}});function fg(e,r,n,o){if(!e){let t={code:"custom",input:n,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(t.params=o._zod.def.params),r.issues.push(qt(t))}}var Qr={};Ve(Qr,{ar:()=>yg,az:()=>bg,be:()=>xg,bg:()=>_g,ca:()=>Sg,cs:()=>$g,da:()=>kg,de:()=>Ig,el:()=>Eg,en:()=>ki,eo:()=>Cg,es:()=>Og,fa:()=>Ng,fi:()=>zg,fr:()=>Dg,frCA:()=>Tg,he:()=>Pg,hr:()=>Rg,hu:()=>Ag,hy:()=>Ug,id:()=>jg,is:()=>Lg,it:()=>Fg,ja:()=>Zg,ka:()=>Bg,kh:()=>Wg,km:()=>Ii,ko:()=>Vg,lt:()=>Gg,mk:()=>Jg,ms:()=>Hg,nl:()=>Xg,no:()=>Kg,ota:()=>Yg,pl:()=>ev,ps:()=>Qg,pt:()=>tv,ro:()=>rv,ru:()=>iv,sl:()=>ov,sv:()=>sv,ta:()=>av,th:()=>lv,tr:()=>cv,ua:()=>uv,uk:()=>Ei,ur:()=>dv,uz:()=>fv,vi:()=>pv,yo:()=>gv,zhCN:()=>hv,zhTW:()=>mv});var JS=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function r(t){return e[t]??null}let n={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${t.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${a}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${i}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${a}`}case"invalid_value":return t.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${N(t.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${t.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${t.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${t.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${t.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${t.minimum.toString()} ${s.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${t.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${t.prefix}"`:i.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${i.suffix}"`:i.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${i.includes}"`:i.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${i.pattern}`:`${n[i.format]??t.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${t.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${t.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${t.keys.length>1?"\u0629":""}: ${I(t.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${t.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${t.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function yg(){return{localeError:JS()}}var HS=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function r(t){return e[t]??null}let n={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"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${t.expected}, daxil olan ${a}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${i}, daxil olan ${a}`}case"invalid_value":return t.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${N(t.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${t.origin??"d\u0259y\u0259r"} ${i}${t.maximum.toString()} ${s.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${t.origin??"d\u0259y\u0259r"} ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${t.origin} ${i}${t.minimum.toString()} ${s.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${t.origin} ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${i.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:i.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${i.suffix}" il\u0259 bitm\u0259lidir`:i.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${i.includes}" daxil olmal\u0131d\u0131r`:i.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${i.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${n[i.format]??t.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${t.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${t.keys.length>1?"lar":""}: ${I(t.keys,", ")}`;case"invalid_key":return`${t.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${t.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function bg(){return{localeError:HS()}}function wg(e,r,n,o){let t=Math.abs(e),i=t%10,s=t%100;return s>=11&&s<=19?o:i===1?r:i>=2&&i<=4?n:o}var XS=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function r(t){return e[t]??null}let n={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},o={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${t.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${a}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${i}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${a}`}case"invalid_value":return t.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${N(t.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);if(s){let a=Number(t.maximum),c=wg(a,s.unit.one,s.unit.few,s.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${s.verb} ${i}${t.maximum.toString()} ${c}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);if(s){let a=Number(t.minimum),c=wg(a,s.unit.one,s.unit.few,s.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${s.verb} ${i}${t.minimum.toString()} ${c}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${i.includes}"`:i.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${n[i.format]??t.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${t.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${I(t.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${t.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${t.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function xg(){return{localeError:XS()}}var KS=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function r(t){return e[t]??null}let n={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${t.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${a}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${a}`}case"invalid_value":return t.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${N(t.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${t.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${t.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${t.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${t.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${t.minimum.toString()} ${s.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${t.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${i.prefix}"`;if(i.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${i.suffix}"`;if(i.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${i.includes}"`;if(i.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${i.pattern}`;let s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return i.format==="emoji"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="datetime"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="date"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),i.format==="time"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="duration"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${s} ${n[i.format]??t.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${t.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${t.keys.length>1?"\u043E\u0432\u0435":""}: ${I(t.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${t.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${t.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function _g(){return{localeError:KS()}}var YS=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function r(t){return e[t]??null}let n={regex:"entrada",email:"adre\xE7a electr\xF2nica",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\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${t.expected}, s'ha rebut ${a}`:`Tipus inv\xE0lid: s'esperava ${i}, s'ha rebut ${a}`}case"invalid_value":return t.values.length===1?`Valor inv\xE0lid: s'esperava ${N(t.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${I(t.values," o ")}`;case"too_big":{let i=t.inclusive?"com a m\xE0xim":"menys de",s=r(t.origin);return s?`Massa gran: s'esperava que ${t.origin??"el valor"} contingu\xE9s ${i} ${t.maximum.toString()} ${s.unit??"elements"}`:`Massa gran: s'esperava que ${t.origin??"el valor"} fos ${i} ${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?"com a m\xEDnim":"m\xE9s de",s=r(t.origin);return s?`Massa petit: s'esperava que ${t.origin} contingu\xE9s ${i} ${t.minimum.toString()} ${s.unit}`:`Massa petit: s'esperava que ${t.origin} fos ${i} ${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${i.prefix}"`:i.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${i.suffix}"`:i.format==="includes"?`Format inv\xE0lid: ha d'incloure "${i.includes}"`:i.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${i.pattern}`:`Format inv\xE0lid per a ${n[i.format]??t.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${t.divisor}`;case"unrecognized_keys":return`Clau${t.keys.length>1?"s":""} no reconeguda${t.keys.length>1?"s":""}: ${I(t.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${t.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${t.origin}`;default:return"Entrada inv\xE0lida"}}};function Sg(){return{localeError:YS()}}var QS=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function r(t){return e[t]??null}let n={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 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 \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},o={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${t.expected}, obdr\u017Eeno ${a}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${i}, obdr\u017Eeno ${a}`}case"invalid_value":return t.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${N(t.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${t.origin??"hodnota"} mus\xED m\xEDt ${i}${t.maximum.toString()} ${s.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${t.origin??"hodnota"} mus\xED b\xFDt ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${t.origin??"hodnota"} mus\xED m\xEDt ${i}${t.minimum.toString()} ${s.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${t.origin??"hodnota"} mus\xED b\xFDt ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${i.prefix}"`:i.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${i.suffix}"`:i.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${i.includes}"`:i.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${i.pattern}`:`Neplatn\xFD form\xE1t ${n[i.format]??t.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${t.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${I(t.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${t.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${t.origin}`;default:return"Neplatn\xFD vstup"}}};function $g(){return{localeError:QS()}}var e$=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function r(t){return e[t]??null}let n={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\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",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"},o={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Ugyldigt input: forventede instanceof ${t.expected}, fik ${a}`:`Ugyldigt input: forventede ${i}, fik ${a}`}case"invalid_value":return t.values.length===1?`Ugyldig v\xE6rdi: forventede ${N(t.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin),a=o[t.origin]??t.origin;return s?`For stor: forventede ${a??"value"} ${s.verb} ${i} ${t.maximum.toString()} ${s.unit??"elementer"}`:`For stor: forventede ${a??"value"} havde ${i} ${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin),a=o[t.origin]??t.origin;return s?`For lille: forventede ${a} ${s.verb} ${i} ${t.minimum.toString()} ${s.unit}`:`For lille: forventede ${a} havde ${i} ${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Ugyldig streng: skal starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: skal ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: skal indeholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${n[i.format]??t.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${I(t.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${t.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${t.origin}`;default:return"Ugyldigt input"}}};function kg(){return{localeError:e$()}}var t$=()=>{let 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}let n={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"},o={nan:"NaN",number:"Zahl",array:"Array"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${t.expected}, erhalten ${a}`:`Ung\xFCltige Eingabe: erwartet ${i}, erhalten ${a}`}case"invalid_value":return t.values.length===1?`Ung\xFCltige Eingabe: erwartet ${N(t.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Zu gro\xDF: erwartet, dass ${t.origin??"Wert"} ${i}${t.maximum.toString()} ${s.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${t.origin??"Wert"} ${i}${t.maximum.toString()} ist`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Zu klein: erwartet, dass ${t.origin} ${i}${t.minimum.toString()} ${s.unit} hat`:`Zu klein: erwartet, dass ${t.origin} ${i}${t.minimum.toString()} ist`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Ung\xFCltiger String: muss mit "${i.prefix}" beginnen`:i.format==="ends_with"?`Ung\xFCltiger String: muss mit "${i.suffix}" enden`:i.format==="includes"?`Ung\xFCltiger String: muss "${i.includes}" enthalten`:i.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${i.pattern} entsprechen`:`Ung\xFCltig: ${n[i.format]??t.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${t.divisor} sein`;case"unrecognized_keys":return`${t.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${I(t.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${t.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${t.origin}`;default:return"Ung\xFCltige Eingabe"}}};function Ig(){return{localeError:t$()}}var r$=()=>{let e={string:{unit:"\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},file:{unit:"bytes",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},array:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},set:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},map:{unit:"\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"}};function r(t){return e[t]??null}let n={regex:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",email:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 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 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",date:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",time:"ISO \u03CE\u03C1\u03B1",duration:"ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",ipv4:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",ipv6:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",mac:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",cidrv4:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",cidrv6:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",base64:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",base64url:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",json_string:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",e164:"\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",jwt:"JWT",template_literal:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return typeof t.expected=="string"&&/^[A-Z]/.test(t.expected)?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${t.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${a}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${i}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${a}`}case"invalid_value":return t.values.length===1?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${N(t.values[0])}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${t.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${i}${t.maximum.toString()} ${s.unit??"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${t.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${t.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${i}${t.minimum.toString()} ${s.unit}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${t.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${i.prefix}"`:i.format==="ends_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${i.suffix}"`:i.format==="includes"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${i.includes}"`:i.format==="regex"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${i.pattern}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${n[i.format]??t.format}`}case"not_multiple_of":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${t.divisor}`;case"unrecognized_keys":return`\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${t.keys.length>1?"\u03B1":"\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${t.keys.length>1?"\u03B9\u03AC":"\u03AF"}: ${I(t.keys,", ")}`;case"invalid_key":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${t.origin}`;case"invalid_union":return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";case"invalid_element":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${t.origin}`;default:return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"}}};function Eg(){return{localeError:r$()}}var n$=()=>{let 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"},map:{unit:"entries",verb:"to have"}};function r(t){return e[t]??null}let n={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",mac:"MAC 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"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return`Invalid input: expected ${i}, received ${a}`}case"invalid_value":return t.values.length===1?`Invalid input: expected ${N(t.values[0])}`:`Invalid option: expected one of ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Too big: expected ${t.origin??"value"} to have ${i}${t.maximum.toString()} ${s.unit??"elements"}`:`Too big: expected ${t.origin??"value"} to be ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Too small: expected ${t.origin} to have ${i}${t.minimum.toString()} ${s.unit}`:`Too small: expected ${t.origin} to be ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${n[i.format]??t.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${t.divisor}`;case"unrecognized_keys":return`Unrecognized key${t.keys.length>1?"s":""}: ${I(t.keys,", ")}`;case"invalid_key":return`Invalid key in ${t.origin}`;case"invalid_union":return t.options&&Array.isArray(t.options)&&t.options.length>0?`Invalid discriminator value. Expected ${t.options.map(s=>`'${s}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${t.origin}`;default:return"Invalid input"}}};function ki(){return{localeError:n$()}}var i$=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function r(t){return e[t]??null}let n={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",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\u016Dro",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"},o={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${t.expected}, ricevi\u011Dis ${a}`:`Nevalida enigo: atendi\u011Dis ${i}, ricevi\u011Dis ${a}`}case"invalid_value":return t.values.length===1?`Nevalida enigo: atendi\u011Dis ${N(t.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Tro granda: atendi\u011Dis ke ${t.origin??"valoro"} havu ${i}${t.maximum.toString()} ${s.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${t.origin??"valoro"} havu ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Tro malgranda: atendi\u011Dis ke ${t.origin} havu ${i}${t.minimum.toString()} ${s.unit}`:`Tro malgranda: atendi\u011Dis ke ${t.origin} estu ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${i.prefix}"`:i.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${i.suffix}"`:i.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${i.includes}"`:i.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}`:`Nevalida ${n[i.format]??t.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${t.divisor}`;case"unrecognized_keys":return`Nekonata${t.keys.length>1?"j":""} \u015Dlosilo${t.keys.length>1?"j":""}: ${I(t.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${t.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${t.origin}`;default:return"Nevalida enigo"}}};function Cg(){return{localeError:i$()}}var o$=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function r(t){return e[t]??null}let n={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",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\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${t.expected}, recibido ${a}`:`Entrada inv\xE1lida: se esperaba ${i}, recibido ${a}`}case"invalid_value":return t.values.length===1?`Entrada inv\xE1lida: se esperaba ${N(t.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin),a=o[t.origin]??t.origin;return s?`Demasiado grande: se esperaba que ${a??"valor"} tuviera ${i}${t.maximum.toString()} ${s.unit??"elementos"}`:`Demasiado grande: se esperaba que ${a??"valor"} fuera ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin),a=o[t.origin]??t.origin;return s?`Demasiado peque\xF1o: se esperaba que ${a} tuviera ${i}${t.minimum.toString()} ${s.unit}`:`Demasiado peque\xF1o: se esperaba que ${a} fuera ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${i.prefix}"`:i.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${i.suffix}"`:i.format==="includes"?`Cadena inv\xE1lida: debe incluir "${i.includes}"`:i.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${i.pattern}`:`Inv\xE1lido ${n[i.format]??t.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${t.divisor}`;case"unrecognized_keys":return`Llave${t.keys.length>1?"s":""} desconocida${t.keys.length>1?"s":""}: ${I(t.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${o[t.origin]??t.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${o[t.origin]??t.origin}`;default:return"Entrada inv\xE1lida"}}};function Og(){return{localeError:o$()}}var s$=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function r(t){return e[t]??null}let n={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${t.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${a} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${i} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${a} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return t.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${N(t.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${I(t.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${t.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${t.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${t.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${t.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${t.origin} \u0628\u0627\u06CC\u062F ${i}${t.minimum.toString()} ${s.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${t.origin} \u0628\u0627\u06CC\u062F ${i}${t.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:i.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:i.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${i.includes}" \u0628\u0627\u0634\u062F`:i.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${i.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${n[i.format]??t.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${t.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${t.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${I(t.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${t.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${t.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function Ng(){return{localeError:s$()}}var a$=()=>{let e={string:{unit:"merkki\xE4",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\xE4iv\xE4m\xE4\xE4r\xE4n"}};function r(t){return e[t]??null}let n={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",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\xE4iv\xE4m\xE4\xE4r\xE4",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"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Virheellinen tyyppi: odotettiin instanceof ${t.expected}, oli ${a}`:`Virheellinen tyyppi: odotettiin ${i}, oli ${a}`}case"invalid_value":return t.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${N(t.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Liian suuri: ${s.subject} t\xE4ytyy olla ${i}${t.maximum.toString()} ${s.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Liian pieni: ${s.subject} t\xE4ytyy olla ${i}${t.minimum.toString()} ${s.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${i.prefix}"`:i.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${i.suffix}"`:i.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${i.includes}"`:i.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${i.pattern}`:`Virheellinen ${n[i.format]??t.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${t.divisor} monikerta`;case"unrecognized_keys":return`${t.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${I(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\xF6te"}}};function zg(){return{localeError:a$()}}var l$=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function r(t){return e[t]??null}let n={regex:"entr\xE9e",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\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={string:"cha\xEEne",number:"nombre",int:"entier",boolean:"bool\xE9en",bigint:"grand entier",symbol:"symbole",undefined:"ind\xE9fini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Entr\xE9e invalide : instanceof ${t.expected} attendu, ${a} re\xE7u`:`Entr\xE9e invalide : ${i} attendu, ${a} re\xE7u`}case"invalid_value":return t.values.length===1?`Entr\xE9e invalide : ${N(t.values[0])} attendu`:`Option invalide : une valeur parmi ${I(t.values,"|")} attendue`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Trop grand : ${o[t.origin]??"valeur"} doit ${s.verb} ${i}${t.maximum.toString()} ${s.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${o[t.origin]??"valeur"} doit \xEAtre ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Trop petit : ${o[t.origin]??"valeur"} doit ${s.verb} ${i}${t.minimum.toString()} ${s.unit}`:`Trop petit : ${o[t.origin]??"valeur"} doit \xEAtre ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${i.pattern}`:`${n[i.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${t.divisor}`;case"unrecognized_keys":return`Cl\xE9${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${I(t.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${t.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entr\xE9e invalide"}}};function Dg(){return{localeError:l$()}}var c$=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function r(t){return e[t]??null}let n={regex:"entr\xE9e",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\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Entr\xE9e invalide : attendu instanceof ${t.expected}, re\xE7u ${a}`:`Entr\xE9e invalide : attendu ${i}, re\xE7u ${a}`}case"invalid_value":return t.values.length===1?`Entr\xE9e invalide : attendu ${N(t.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"\u2264":"<",s=r(t.origin);return s?`Trop grand : attendu que ${t.origin??"la valeur"} ait ${i}${t.maximum.toString()} ${s.unit}`:`Trop grand : attendu que ${t.origin??"la valeur"} soit ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?"\u2265":">",s=r(t.origin);return s?`Trop petit : attendu que ${t.origin} ait ${i}${t.minimum.toString()} ${s.unit}`:`Trop petit : attendu que ${t.origin} soit ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${i.pattern}`:`${n[i.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${t.divisor}`;case"unrecognized_keys":return`Cl\xE9${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${I(t.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${t.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entr\xE9e invalide"}}};function Tg(){return{localeError:c$()}}var u$=()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},r={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},n=u=>u?e[u]:void 0,o=u=>{let l=n(u);return l?l.label:u??e.unknown.label},t=u=>`\u05D4${o(u)}`,i=u=>(n(u)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",s=u=>u?r[u]??null:null,a={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},c={nan:"NaN"};return u=>{switch(u.code){case"invalid_type":{let l=u.expected,p=c[l??""]??o(l),f=z(u.input),d=c[f]??e[f]?.label??f;return/^[A-Z]/.test(u.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${u.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${d}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${p}, \u05D4\u05EA\u05E7\u05D1\u05DC ${d}`}case"invalid_value":{if(u.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${N(u.values[0])}`;let l=u.values.map(d=>N(d));if(u.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${l[0]} \u05D0\u05D5 ${l[1]}`;let p=l[l.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${l.slice(0,-1).join(", ")} \u05D0\u05D5 ${p}`}case"too_big":{let l=s(u.origin),p=t(u.origin??"value");if(u.origin==="string")return`${l?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.maximum.toString()} ${l?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(u.origin==="number"){let m=u.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${u.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${m}`}if(u.origin==="array"||u.origin==="set"){let m=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",h=u.inclusive?`${u.maximum} ${l?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${u.maximum} ${l?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${p} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${h}`.trim()}let f=u.inclusive?"<=":"<",d=i(u.origin??"value");return l?.unit?`${l.longLabel} \u05DE\u05D3\u05D9: ${p} ${d} ${f}${u.maximum.toString()} ${l.unit}`:`${l?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${p} ${d} ${f}${u.maximum.toString()}`}case"too_small":{let l=s(u.origin),p=t(u.origin??"value");if(u.origin==="string")return`${l?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.minimum.toString()} ${l?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(u.origin==="number"){let m=u.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${u.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${m}`}if(u.origin==="array"||u.origin==="set"){let m=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(u.minimum===1&&u.inclusive){let g=(u.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${g}`}let h=u.inclusive?`${u.minimum} ${l?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${u.minimum} ${l?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${h}`.trim()}let f=u.inclusive?">=":">",d=i(u.origin??"value");return l?.unit?`${l.shortLabel} \u05DE\u05D3\u05D9: ${p} ${d} ${f}${u.minimum.toString()} ${l.unit}`:`${l?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${p} ${d} ${f}${u.minimum.toString()}`}case"invalid_format":{let l=u;if(l.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${l.prefix}"`;if(l.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${l.suffix}"`;if(l.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${l.includes}"`;if(l.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${l.pattern}`;let p=a[l.format],f=p?.label??l.format,m=(p?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${f} \u05DC\u05D0 ${m}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${u.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${u.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${u.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${I(u.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${t(u.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function Pg(){return{localeError:u$()}}var d$=()=>{let e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function r(t){return e[t]??null}let n={regex:"unos",email:"email 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:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},o={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${t.expected}, a primljeno je ${a}`:`Neispravan unos: o\u010Dekuje se ${i}, a primljeno je ${a}`}case"invalid_value":return t.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${N(t.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin),a=o[t.origin]??t.origin;return s?`Preveliko: o\u010Dekivano da ${a??"vrijednost"} ima ${i}${t.maximum.toString()} ${s.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${a??"vrijednost"} bude ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin),a=o[t.origin]??t.origin;return s?`Premalo: o\u010Dekivano da ${a} ima ${i}${t.minimum.toString()} ${s.unit}`:`Premalo: o\u010Dekivano da ${a} bude ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Neispravan tekst: mora zapo\u010Dinjati s "${i.prefix}"`:i.format==="ends_with"?`Neispravan tekst: mora zavr\u0161avati s "${i.suffix}"`:i.format==="includes"?`Neispravan tekst: mora sadr\u017Eavati "${i.includes}"`:i.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${i.pattern}`:`Neispravna ${n[i.format]??t.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\u0161ekratnik od ${t.divisor}`;case"unrecognized_keys":return`Neprepoznat${t.keys.length>1?"i klju\u010Devi":" klju\u010D"}: ${I(t.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${o[t.origin]??t.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${o[t.origin]??t.origin}`;default:return"Neispravan unos"}}};function Rg(){return{localeError:d$()}}var f$=()=>{let 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}let n={regex:"bemenet",email:"email c\xEDm",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\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},o={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${t.expected}, a kapott \xE9rt\xE9k ${a}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${i}, a kapott \xE9rt\xE9k ${a}`}case"invalid_value":return t.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${N(t.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`T\xFAl nagy: ${t.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${i}${t.maximum.toString()} ${s.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${t.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${t.origin} m\xE9rete t\xFAl kicsi ${i}${t.minimum.toString()} ${s.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${t.origin} t\xFAl kicsi ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\xC9rv\xE9nytelen string: "${i.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:i.format==="ends_with"?`\xC9rv\xE9nytelen string: "${i.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:i.format==="includes"?`\xC9rv\xE9nytelen string: "${i.includes}" \xE9rt\xE9ket kell tartalmaznia`:i.format==="regex"?`\xC9rv\xE9nytelen string: ${i.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${n[i.format]??t.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${t.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${t.keys.length>1?"s":""}: ${I(t.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${t.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${t.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function Ag(){return{localeError:f$()}}function Mg(e,r,n){return Math.abs(e)===1?r:n}function Yt(e){if(!e)return"";let r=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],n=e[e.length-1];return e+(r.includes(n)?"\u0576":"\u0568")}var p$=()=>{let e={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function r(t){return e[t]??null}let n={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},o={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${t.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${a}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${i}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${a}`}case"invalid_value":return t.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${N(t.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);if(s){let a=Number(t.maximum),c=Mg(a,s.unit.one,s.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Yt(t.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${t.maximum.toString()} ${c}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Yt(t.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);if(s){let a=Number(t.minimum),c=Mg(a,s.unit.one,s.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Yt(t.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${t.minimum.toString()} ${c}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Yt(t.origin)} \u056C\u056B\u0576\u056B ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${i.prefix}"-\u0578\u057E`:i.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${i.suffix}"-\u0578\u057E`:i.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${i.includes}"`:i.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${i.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${n[i.format]??t.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${t.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${t.keys.length>1?"\u0576\u0565\u0580":""}. ${I(t.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Yt(t.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${Yt(t.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function Ug(){return{localeError:p$()}}var h$=()=>{let 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}let n={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"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Input tidak valid: diharapkan instanceof ${t.expected}, diterima ${a}`:`Input tidak valid: diharapkan ${i}, diterima ${a}`}case"invalid_value":return t.values.length===1?`Input tidak valid: diharapkan ${N(t.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Terlalu besar: diharapkan ${t.origin??"value"} memiliki ${i}${t.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: diharapkan ${t.origin??"value"} menjadi ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Terlalu kecil: diharapkan ${t.origin} memiliki ${i}${t.minimum.toString()} ${s.unit}`:`Terlalu kecil: diharapkan ${t.origin} menjadi ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`String tidak valid: harus dimulai dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak valid: harus berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak valid: harus menyertakan "${i.includes}"`:i.format==="regex"?`String tidak valid: harus sesuai pola ${i.pattern}`:`${n[i.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":""}: ${I(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 jg(){return{localeError:h$()}}var m$=()=>{let e={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function r(t){return e[t]??null}let n={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",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\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",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\xF6lugildi",jwt:"JWT",template_literal:"gildi"},o={nan:"NaN",number:"n\xFAmer",array:"fylki"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${a} \xFEar sem \xE1 a\xF0 vera instanceof ${t.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${a} \xFEar sem \xE1 a\xF0 vera ${i}`}case"invalid_value":return t.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${N(t.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${t.origin??"gildi"} hafi ${i}${t.maximum.toString()} ${s.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${t.origin??"gildi"} s\xE9 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${t.origin} hafi ${i}${t.minimum.toString()} ${s.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${t.origin} s\xE9 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${i.prefix}"`:i.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${i.suffix}"`:i.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${i.includes}"`:i.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${i.pattern}`:`Rangt ${n[i.format]??t.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${t.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${t.keys.length>1?"ir lyklar":"ur lykill"}: ${I(t.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${t.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${t.origin}`;default:return"Rangt gildi"}}};function Lg(){return{localeError:m$()}}var g$=()=>{let 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}let n={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"},o={nan:"NaN",number:"numero",array:"vettore"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Input non valido: atteso instanceof ${t.expected}, ricevuto ${a}`:`Input non valido: atteso ${i}, ricevuto ${a}`}case"invalid_value":return t.values.length===1?`Input non valido: atteso ${N(t.values[0])}`:`Opzione non valida: atteso uno tra ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Troppo grande: ${t.origin??"valore"} deve avere ${i}${t.maximum.toString()} ${s.unit??"elementi"}`:`Troppo grande: ${t.origin??"valore"} deve essere ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Troppo piccolo: ${t.origin} deve avere ${i}${t.minimum.toString()} ${s.unit}`:`Troppo piccolo: ${t.origin} deve essere ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Stringa non valida: deve iniziare con "${i.prefix}"`:i.format==="ends_with"?`Stringa non valida: deve terminare con "${i.suffix}"`:i.format==="includes"?`Stringa non valida: deve includere "${i.includes}"`:i.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${i.pattern}`:`Input non valido: ${n[i.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"}: ${I(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 Fg(){return{localeError:g$()}}var v$=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function r(t){return e[t]??null}let n={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},o={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${t.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${a}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${i}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${a}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return t.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${N(t.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${I(t.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let i=t.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",s=r(t.origin);return s?`\u5927\u304D\u3059\u304E\u308B\u5024: ${t.origin??"\u5024"}\u306F${t.maximum.toString()}${s.unit??"\u8981\u7D20"}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${t.origin??"\u5024"}\u306F${t.maximum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let i=t.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",s=r(t.origin);return s?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${t.origin}\u306F${t.minimum.toString()}${s.unit}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${t.origin}\u306F${t.minimum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${i.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${n[i.format]??t.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${t.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${t.keys.length>1?"\u7FA4":""}: ${I(t.keys,"\u3001")}`;case"invalid_key":return`${t.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${t.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function Zg(){return{localeError:v$()}}var y$=()=>{let e={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function r(t){return e[t]??null}let n={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",json_string:"JSON \u10D5\u10D4\u10DA\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},o={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10D5\u10D4\u10DA\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${t.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${a}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${a}`}case"invalid_value":return t.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${N(t.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${I(t.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${t.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${s.verb} ${i}${t.maximum.toString()} ${s.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${t.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${t.origin} ${s.verb} ${i}${t.minimum.toString()} ${s.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${t.origin} \u10D8\u10E7\u10DD\u10E1 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.prefix}"-\u10D8\u10D7`:i.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.suffix}"-\u10D8\u10D7`:i.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${i.includes}"-\u10E1`:i.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${i.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${n[i.format]??t.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${t.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${t.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${I(t.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${t.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${t.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function Bg(){return{localeError:y$()}}var b$=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function r(t){return e[t]??null}let n={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},o={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${t.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${a}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${a}`}case"invalid_value":return t.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${N(t.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${t.maximum.toString()} ${s.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin} ${i} ${t.minimum.toString()} ${s.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin} ${i} ${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${i.prefix}"`:i.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${i.suffix}"`:i.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${i.includes}"`:i.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${i.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${n[i.format]??t.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${t.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${I(t.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${t.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${t.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function Ii(){return{localeError:b$()}}function Wg(){return Ii()}var w$=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function r(t){return e[t]??null}let n={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${t.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${a}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${i}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${a}\uC785\uB2C8\uB2E4`}case"invalid_value":return t.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${N(t.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${I(t.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let i=t.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",s=i==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",a=r(t.origin),c=a?.unit??"\uC694\uC18C";return a?`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${t.maximum.toString()}${c} ${i}${s}`:`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${t.maximum.toString()} ${i}${s}`}case"too_small":{let i=t.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",s=i==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",a=r(t.origin),c=a?.unit??"\uC694\uC18C";return a?`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${t.minimum.toString()}${c} ${i}${s}`:`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${t.minimum.toString()} ${i}${s}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:i.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${i.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${n[i.format]??t.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${t.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${I(t.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${t.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${t.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function Vg(){return{localeError:w$()}}var Yr=e=>e.charAt(0).toUpperCase()+e.slice(1);function qg(e){let r=Math.abs(e),n=r%10,o=r%100;return o>=11&&o<=19||n===0?"many":n===1?"one":"few"}var x$=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function r(t,i,s,a){let c=e[t]??null;return c===null?c:{unit:c.unit[i],verb:c.verb[a][s?"inclusive":"notInclusive"]}}let n={regex:"\u012Fvestis",email:"el. pa\u0161to 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\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},o={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Gautas tipas ${a}, o tik\u0117tasi - instanceof ${t.expected}`:`Gautas tipas ${a}, o tik\u0117tasi - ${i}`}case"invalid_value":return t.values.length===1?`Privalo b\u016Bti ${N(t.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${I(t.values,"|")} pasirinkim\u0173`;case"too_big":{let i=o[t.origin]??t.origin,s=r(t.origin,qg(Number(t.maximum)),t.inclusive??!1,"smaller");if(s?.verb)return`${Yr(i??t.origin??"reik\u0161m\u0117")} ${s.verb} ${t.maximum.toString()} ${s.unit??"element\u0173"}`;let a=t.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${Yr(i??t.origin??"reik\u0161m\u0117")} turi b\u016Bti ${a} ${t.maximum.toString()} ${s?.unit}`}case"too_small":{let i=o[t.origin]??t.origin,s=r(t.origin,qg(Number(t.minimum)),t.inclusive??!1,"bigger");if(s?.verb)return`${Yr(i??t.origin??"reik\u0161m\u0117")} ${s.verb} ${t.minimum.toString()} ${s.unit??"element\u0173"}`;let a=t.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${Yr(i??t.origin??"reik\u0161m\u0117")} turi b\u016Bti ${a} ${t.minimum.toString()} ${s?.unit}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${i.prefix}"`:i.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${i.suffix}"`:i.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${i.includes}"`:i.format==="regex"?`Eilut\u0117 privalo atitikti ${i.pattern}`:`Neteisingas ${n[i.format]??t.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${t.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${t.keys.length>1?"i":"as"} rakt${t.keys.length>1?"ai":"as"}: ${I(t.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let i=o[t.origin]??t.origin;return`${Yr(i??t.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function Gg(){return{localeError:x$()}}var _$=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function r(t){return e[t]??null}let n={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},o={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${t.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${a}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${a}`}case"invalid_value":return t.values.length===1?`Invalid input: expected ${N(t.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${i}${t.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin} \u0434\u0430 \u0438\u043C\u0430 ${i}${t.minimum.toString()} ${s.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${i.pattern}`:`Invalid ${n[i.format]??t.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${I(t.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${t.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${t.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function Jg(){return{localeError:_$()}}var S$=()=>{let 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}let n={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"},o={nan:"NaN",number:"nombor"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Input tidak sah: dijangka instanceof ${t.expected}, diterima ${a}`:`Input tidak sah: dijangka ${i}, diterima ${a}`}case"invalid_value":return t.values.length===1?`Input tidak sah: dijangka ${N(t.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Terlalu besar: dijangka ${t.origin??"nilai"} ${s.verb} ${i}${t.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: dijangka ${t.origin??"nilai"} adalah ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Terlalu kecil: dijangka ${t.origin} ${s.verb} ${i}${t.minimum.toString()} ${s.unit}`:`Terlalu kecil: dijangka ${t.origin} adalah ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`String tidak sah: mesti bermula dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak sah: mesti mengandungi "${i.includes}"`:i.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${i.pattern}`:`${n[i.format]??t.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${I(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 Hg(){return{localeError:S$()}}var $$=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function r(t){return e[t]??null}let n={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"},o={nan:"NaN",number:"getal"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Ongeldige invoer: verwacht instanceof ${t.expected}, ontving ${a}`:`Ongeldige invoer: verwacht ${i}, ontving ${a}`}case"invalid_value":return t.values.length===1?`Ongeldige invoer: verwacht ${N(t.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin),a=t.origin==="date"?"laat":t.origin==="string"?"lang":"groot";return s?`Te ${a}: verwacht dat ${t.origin??"waarde"} ${i}${t.maximum.toString()} ${s.unit??"elementen"} ${s.verb}`:`Te ${a}: verwacht dat ${t.origin??"waarde"} ${i}${t.maximum.toString()} is`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin),a=t.origin==="date"?"vroeg":t.origin==="string"?"kort":"klein";return s?`Te ${a}: verwacht dat ${t.origin} ${i}${t.minimum.toString()} ${s.unit} ${s.verb}`:`Te ${a}: verwacht dat ${t.origin} ${i}${t.minimum.toString()} is`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Ongeldige tekst: moet met "${i.prefix}" beginnen`:i.format==="ends_with"?`Ongeldige tekst: moet op "${i.suffix}" eindigen`:i.format==="includes"?`Ongeldige tekst: moet "${i.includes}" bevatten`:i.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${i.pattern}`:`Ongeldig: ${n[i.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":""}: ${I(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 Xg(){return{localeError:$$()}}var k$=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function r(t){return e[t]??null}let n={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\xE5de",ipv6:"IPv6-omr\xE5de",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"},o={nan:"NaN",number:"tall",array:"liste"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Ugyldig input: forventet instanceof ${t.expected}, fikk ${a}`:`Ugyldig input: forventet ${i}, fikk ${a}`}case"invalid_value":return t.values.length===1?`Ugyldig verdi: forventet ${N(t.values[0])}`:`Ugyldig valg: forventet en av ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`For stor(t): forventet ${t.origin??"value"} til \xE5 ha ${i}${t.maximum.toString()} ${s.unit??"elementer"}`:`For stor(t): forventet ${t.origin??"value"} til \xE5 ha ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`For lite(n): forventet ${t.origin} til \xE5 ha ${i}${t.minimum.toString()} ${s.unit}`:`For lite(n): forventet ${t.origin} til \xE5 ha ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${n[i.format]??t.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${I(t.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${t.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${t.origin}`;default:return"Ugyldig input"}}};function Kg(){return{localeError:k$()}}var I$=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function r(t){return e[t]??null}let n={regex:"giren",email:"epostag\xE2h",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\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},o={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`F\xE2sit giren: umulan instanceof ${t.expected}, al\u0131nan ${a}`:`F\xE2sit giren: umulan ${i}, al\u0131nan ${a}`}case"invalid_value":return t.values.length===1?`F\xE2sit giren: umulan ${N(t.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Fazla b\xFCy\xFCk: ${t.origin??"value"}, ${i}${t.maximum.toString()} ${s.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${t.origin??"value"}, ${i}${t.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Fazla k\xFC\xE7\xFCk: ${t.origin}, ${i}${t.minimum.toString()} ${s.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${t.origin}, ${i}${t.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let i=t;return i.format==="starts_with"?`F\xE2sit metin: "${i.prefix}" ile ba\u015Flamal\u0131.`:i.format==="ends_with"?`F\xE2sit metin: "${i.suffix}" ile bitmeli.`:i.format==="includes"?`F\xE2sit metin: "${i.includes}" ihtiv\xE2 etmeli.`:i.format==="regex"?`F\xE2sit metin: ${i.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${n[i.format]??t.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${t.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${t.keys.length>1?"s":""}: ${I(t.keys,", ")}`;case"invalid_key":return`${t.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${t.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function Yg(){return{localeError:I$()}}var E$=()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function r(t){return e[t]??null}let n={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${t.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${a} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${i} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${a} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return t.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${N(t.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${I(t.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${t.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${t.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${t.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${t.maximum.toString()} \u0648\u064A`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${t.origin} \u0628\u0627\u06CC\u062F ${i}${t.minimum.toString()} ${s.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${t.origin} \u0628\u0627\u06CC\u062F ${i}${t.minimum.toString()} \u0648\u064A`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:i.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:i.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${i.includes}" \u0648\u0644\u0631\u064A`:i.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${i.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${n[i.format]??t.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${t.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${t.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${I(t.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${t.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${t.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function Qg(){return{localeError:E$()}}var C$=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function r(t){return e[t]??null}let n={regex:"wyra\u017Cenie",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\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},o={nan:"NaN",number:"liczba",array:"tablica"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${t.expected}, otrzymano ${a}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${i}, otrzymano ${a}`}case"invalid_value":return t.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${N(t.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${t.maximum.toString()} ${s.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${t.minimum.toString()} ${s.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${i.prefix}"`:i.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${i.suffix}"`:i.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${i.includes}"`:i.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${i.pattern}`:`Nieprawid\u0142ow(y/a/e) ${n[i.format]??t.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${t.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${t.keys.length>1?"s":""}: ${I(t.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${t.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${t.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function ev(){return{localeError:C$()}}var O$=()=>{let 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}let n={regex:"padr\xE3o",email:"endere\xE7o 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\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o 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\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",number:"n\xFAmero",null:"nulo"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Tipo inv\xE1lido: esperado instanceof ${t.expected}, recebido ${a}`:`Tipo inv\xE1lido: esperado ${i}, recebido ${a}`}case"invalid_value":return t.values.length===1?`Entrada inv\xE1lida: esperado ${N(t.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Muito grande: esperado que ${t.origin??"valor"} tivesse ${i}${t.maximum.toString()} ${s.unit??"elementos"}`:`Muito grande: esperado que ${t.origin??"valor"} fosse ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Muito pequeno: esperado que ${t.origin} tivesse ${i}${t.minimum.toString()} ${s.unit}`:`Muito pequeno: esperado que ${t.origin} fosse ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${i.prefix}"`:i.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${i.suffix}"`:i.format==="includes"?`Texto inv\xE1lido: deve incluir "${i.includes}"`:i.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${i.pattern}`:`${n[i.format]??t.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${t.divisor}`;case"unrecognized_keys":return`Chave${t.keys.length>1?"s":""} desconhecida${t.keys.length>1?"s":""}: ${I(t.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${t.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${t.origin}`;default:return"Campo inv\xE1lido"}}};function tv(){return{localeError:O$()}}var N$=()=>{let e={string:{unit:"caractere",verb:"s\u0103 aib\u0103"},file:{unit:"octe\u021Bi",verb:"s\u0103 aib\u0103"},array:{unit:"elemente",verb:"s\u0103 aib\u0103"},set:{unit:"elemente",verb:"s\u0103 aib\u0103"},map:{unit:"intr\u0103ri",verb:"s\u0103 aib\u0103"}};function r(t){return e[t]??null}let n={regex:"intrare",email:"adres\u0103 de 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:"dat\u0103 \u0219i or\u0103 ISO",date:"dat\u0103 ISO",time:"or\u0103 ISO",duration:"durat\u0103 ISO",ipv4:"adres\u0103 IPv4",ipv6:"adres\u0103 IPv6",mac:"adres\u0103 MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"\u0219ir codat base64",base64url:"\u0219ir codat base64url",json_string:"\u0219ir JSON",e164:"num\u0103r E.164",jwt:"JWT",template_literal:"intrare"},o={nan:"NaN",string:"\u0219ir",number:"num\u0103r",boolean:"boolean",function:"func\u021Bie",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"num\u0103r mare",void:"void",never:"never",map:"hart\u0103",set:"set"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return`Intrare invalid\u0103: a\u0219teptat ${i}, primit ${a}`}case"invalid_value":return t.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${N(t.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Prea mare: a\u0219teptat ca ${t.origin??"valoarea"} ${s.verb} ${i}${t.maximum.toString()} ${s.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${t.origin??"valoarea"} s\u0103 fie ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Prea mic: a\u0219teptat ca ${t.origin} ${s.verb} ${i}${t.minimum.toString()} ${s.unit}`:`Prea mic: a\u0219teptat ca ${t.origin} s\u0103 fie ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${i.prefix}"`:i.format==="ends_with"?`\u0218ir invalid: trebuie s\u0103 se termine cu "${i.suffix}"`:i.format==="includes"?`\u0218ir invalid: trebuie s\u0103 includ\u0103 "${i.includes}"`:i.format==="regex"?`\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${i.pattern}`:`Format invalid: ${n[i.format]??t.format}`}case"not_multiple_of":return`Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${t.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${I(t.keys,", ")}`;case"invalid_key":return`Cheie invalid\u0103 \xEEn ${t.origin}`;case"invalid_union":return"Intrare invalid\u0103";case"invalid_element":return`Valoare invalid\u0103 \xEEn ${t.origin}`;default:return"Intrare invalid\u0103"}}};function rv(){return{localeError:N$()}}function nv(e,r,n,o){let t=Math.abs(e),i=t%10,s=t%100;return s>=11&&s<=19?o:i===1?r:i>=2&&i<=4?n:o}var z$=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function r(t){return e[t]??null}let n={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${t.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${a}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${a}`}case"invalid_value":return t.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${N(t.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);if(s){let a=Number(t.maximum),c=nv(a,s.unit.one,s.unit.few,s.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${t.maximum.toString()} ${c}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);if(s){let a=Number(t.minimum),c=nv(a,s.unit.one,s.unit.few,s.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${t.minimum.toString()} ${c}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin} \u0431\u0443\u0434\u0435\u0442 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${n[i.format]??t.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${t.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${t.keys.length>1?"\u0438":""}: ${I(t.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${t.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${t.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function iv(){return{localeError:z$()}}var D$=()=>{let 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}let n={regex:"vnos",email:"e-po\u0161tni 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 \u010Das",date:"ISO datum",time:"ISO \u010Das",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 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},o={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${t.expected}, prejeto ${a}`:`Neveljaven vnos: pri\u010Dakovano ${i}, prejeto ${a}`}case"invalid_value":return t.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${N(t.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Preveliko: pri\u010Dakovano, da bo ${t.origin??"vrednost"} imelo ${i}${t.maximum.toString()} ${s.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${t.origin??"vrednost"} ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Premajhno: pri\u010Dakovano, da bo ${t.origin} imelo ${i}${t.minimum.toString()} ${s.unit}`:`Premajhno: pri\u010Dakovano, da bo ${t.origin} ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${i.prefix}"`:i.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${i.suffix}"`:i.format==="includes"?`Neveljaven niz: mora vsebovati "${i.includes}"`:i.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${i.pattern}`:`Neveljaven ${n[i.format]??t.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${t.divisor}`;case"unrecognized_keys":return`Neprepoznan${t.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${I(t.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${t.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${t.origin}`;default:return"Neveljaven vnos"}}};function ov(){return{localeError:D$()}}var T$=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function r(t){return e[t]??null}let n={regex:"regulj\xE4rt 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\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},o={nan:"NaN",number:"antal",array:"lista"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${t.expected}, fick ${a}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${i}, fick ${a}`}case"invalid_value":return t.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${N(t.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`F\xF6r stor(t): f\xF6rv\xE4ntade ${t.origin??"v\xE4rdet"} att ha ${i}${t.maximum.toString()} ${s.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${t.origin??"v\xE4rdet"} att ha ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`F\xF6r lite(t): f\xF6rv\xE4ntade ${t.origin??"v\xE4rdet"} att ha ${i}${t.minimum.toString()} ${s.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${t.origin??"v\xE4rdet"} att ha ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${i.prefix}"`:i.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${i.suffix}"`:i.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${i.includes}"`:i.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${i.pattern}"`:`Ogiltig(t) ${n[i.format]??t.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${I(t.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${t.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${t.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function sv(){return{localeError:T$()}}var P$=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function r(t){return e[t]??null}let n={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",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 \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${t.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${a}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${a}`}case"invalid_value":return t.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${N(t.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${I(t.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${t.maximum.toString()} ${s.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${t.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin} ${i}${t.minimum.toString()} ${s.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin} ${i}${t.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${i.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${n[i.format]??t.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${t.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${t.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${I(t.keys,", ")}`;case"invalid_key":return`${t.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${t.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function av(){return{localeError:P$()}}var R$=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function r(t){return e[t]??null}let n={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},o={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${t.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${a}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${i} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${a}`}case"invalid_value":return t.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${N(t.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",s=r(t.origin);return s?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${t.maximum.toString()} ${s.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",s=r(t.origin);return s?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${t.minimum.toString()} ${s.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${i.prefix}"`:i.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${i.suffix}"`:i.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${i.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:i.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${i.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${n[i.format]??t.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${t.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${I(t.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${t.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${t.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function lv(){return{localeError:R$()}}var A$=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function r(t){return e[t]??null}let n={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\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${t.expected}, al\u0131nan ${a}`:`Ge\xE7ersiz de\u011Fer: beklenen ${i}, al\u0131nan ${a}`}case"invalid_value":return t.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${N(t.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\xC7ok b\xFCy\xFCk: beklenen ${t.origin??"de\u011Fer"} ${i}${t.maximum.toString()} ${s.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${t.origin??"de\u011Fer"} ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\xC7ok k\xFC\xE7\xFCk: beklenen ${t.origin} ${i}${t.minimum.toString()} ${s.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${t.origin} ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Ge\xE7ersiz metin: "${i.prefix}" ile ba\u015Flamal\u0131`:i.format==="ends_with"?`Ge\xE7ersiz metin: "${i.suffix}" ile bitmeli`:i.format==="includes"?`Ge\xE7ersiz metin: "${i.includes}" i\xE7ermeli`:i.format==="regex"?`Ge\xE7ersiz metin: ${i.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${n[i.format]??t.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${t.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${t.keys.length>1?"lar":""}: ${I(t.keys,", ")}`;case"invalid_key":return`${t.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${t.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function cv(){return{localeError:A$()}}var M$=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function r(t){return e[t]??null}let n={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${t.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${a}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${i}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${a}`}case"invalid_value":return t.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${N(t.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${s.verb} ${i}${t.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin} ${s.verb} ${i}${t.minimum.toString()} ${s.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin} \u0431\u0443\u0434\u0435 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${n[i.format]??t.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${t.keys.length>1?"\u0456":""}: ${I(t.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${t.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${t.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function Ei(){return{localeError:M$()}}function uv(){return Ei()}var U$=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function r(t){return e[t]??null}let n={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},o={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${t.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${a} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${i} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${a} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return t.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${N(t.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${I(t.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${t.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${i}${t.maximum.toString()} ${s.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${t.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${i}${t.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${t.origin} \u06A9\u06D2 ${i}${t.minimum.toString()} ${s.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${t.origin} \u06A9\u0627 ${i}${t.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${i.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${n[i.format]??t.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${t.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${t.keys.length>1?"\u0632":""}: ${I(t.keys,"\u060C ")}`;case"invalid_key":return`${t.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${t.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function dv(){return{localeError:U$()}}var j$=()=>{let e={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"},map:{unit:"yozuv",verb:"bo\u2018lishi kerak"}};function r(t){return e[t]??null}let n={regex:"kirish",email:"elektron pochta manzili",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 sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},o={nan:"NaN",number:"raqam",array:"massiv"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${t.expected}, qabul qilingan ${a}`:`Noto\u2018g\u2018ri kirish: kutilgan ${i}, qabul qilingan ${a}`}case"invalid_value":return t.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${N(t.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Juda katta: kutilgan ${t.origin??"qiymat"} ${i}${t.maximum.toString()} ${s.unit} ${s.verb}`:`Juda katta: kutilgan ${t.origin??"qiymat"} ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Juda kichik: kutilgan ${t.origin} ${i}${t.minimum.toString()} ${s.unit} ${s.verb}`:`Juda kichik: kutilgan ${t.origin} ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${i.prefix}" bilan boshlanishi kerak`:i.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${i.suffix}" bilan tugashi kerak`:i.format==="includes"?`Noto\u2018g\u2018ri satr: "${i.includes}" ni o\u2018z ichiga olishi kerak`:i.format==="regex"?`Noto\u2018g\u2018ri satr: ${i.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${n[i.format]??t.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${t.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${t.keys.length>1?"lar":""}: ${I(t.keys,", ")}`;case"invalid_key":return`${t.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${t.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function fv(){return{localeError:j$()}}var L$=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function r(t){return e[t]??null}let n={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 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\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},o={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${t.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${a}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${i}, nh\u1EADn \u0111\u01B0\u1EE3c ${a}`}case"invalid_value":return t.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${N(t.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${t.origin??"gi\xE1 tr\u1ECB"} ${s.verb} ${i}${t.maximum.toString()} ${s.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${t.origin??"gi\xE1 tr\u1ECB"} ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${t.origin} ${s.verb} ${i}${t.minimum.toString()} ${s.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${t.origin} ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${i.prefix}"`:i.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${i.suffix}"`:i.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${i.includes}"`:i.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${i.pattern}`:`${n[i.format]??t.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${t.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${I(t.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${t.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${t.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function pv(){return{localeError:L$()}}var F$=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function r(t){return e[t]??null}let n={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},o={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${t.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${a}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${i}\uFF0C\u5B9E\u9645\u63A5\u6536 ${a}`}case"invalid_value":return t.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${N(t.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${t.origin??"\u503C"} ${i}${t.maximum.toString()} ${s.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${t.origin??"\u503C"} ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${t.origin} ${i}${t.minimum.toString()} ${s.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${t.origin} ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.prefix}" \u5F00\u5934`:i.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.suffix}" \u7ED3\u5C3E`:i.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${i.pattern}`:`\u65E0\u6548${n[i.format]??t.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${t.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${I(t.keys,", ")}`;case"invalid_key":return`${t.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${t.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function hv(){return{localeError:F$()}}var Z$=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function r(t){return e[t]??null}let n={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",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 \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${t.expected}\uFF0C\u4F46\u6536\u5230 ${a}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${i}\uFF0C\u4F46\u6536\u5230 ${a}`}case"invalid_value":return t.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${N(t.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${t.origin??"\u503C"} \u61C9\u70BA ${i}${t.maximum.toString()} ${s.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${t.origin??"\u503C"} \u61C9\u70BA ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${t.origin} \u61C9\u70BA ${i}${t.minimum.toString()} ${s.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${t.origin} \u61C9\u70BA ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.prefix}" \u958B\u982D`:i.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.suffix}" \u7D50\u5C3E`:i.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${i.pattern}`:`\u7121\u6548\u7684 ${n[i.format]??t.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${t.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${t.keys.length>1?"\u5011":""}\uFF1A${I(t.keys,"\u3001")}`;case"invalid_key":return`${t.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${t.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function mv(){return{localeError:Z$()}}var B$=()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function r(t){return e[t]??null}let n={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",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:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},o={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${t.expected}, \xE0m\u1ECD\u0300 a r\xED ${a}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${i}, \xE0m\u1ECD\u0300 a r\xED ${a}`}case"invalid_value":return t.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${N(t.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${t.origin??"iye"} ${s.verb} ${i}${t.maximum} ${s.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${t.maximum}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${t.origin} ${s.verb} ${i}${t.minimum} ${s.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${t.minimum}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${i.prefix}"`:i.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${i.suffix}"`:i.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${i.includes}"`:i.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${i.pattern}`:`A\u1E63\xEC\u1E63e: ${n[i.format]??t.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${t.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${I(t.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${t.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${t.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function gv(){return{localeError:B$()}}var vv,eu=Symbol("ZodOutput"),tu=Symbol("ZodInput"),Ci=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(r,...n){let o=n[0];return this._map.set(r,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,r),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(r){let n=this._map.get(r);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(r),this}get(r){let n=r._zod.parent;if(n){let o={...this.get(n)??{}};delete o.id;let t={...o,...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 Oi(){return new Ci}(vv=globalThis).__zod_globalRegistry??(vv.__zod_globalRegistry=Oi());var me=globalThis.__zod_globalRegistry;function ru(e,r){return new e({type:"string",...P(r)})}function nu(e,r){return new e({type:"string",coerce:!0,...P(r)})}function Ni(e,r){return new e({type:"string",format:"email",check:"string_format",abort:!1,...P(r)})}function en(e,r){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...P(r)})}function zi(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...P(r)})}function Di(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...P(r)})}function Ti(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...P(r)})}function Pi(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...P(r)})}function tn(e,r){return new e({type:"string",format:"url",check:"string_format",abort:!1,...P(r)})}function Ri(e,r){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...P(r)})}function Ai(e,r){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...P(r)})}function Mi(e,r){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...P(r)})}function Ui(e,r){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...P(r)})}function ji(e,r){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...P(r)})}function Li(e,r){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...P(r)})}function Fi(e,r){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...P(r)})}function Zi(e,r){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...P(r)})}function Bi(e,r){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...P(r)})}function iu(e,r){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...P(r)})}function Wi(e,r){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...P(r)})}function Vi(e,r){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...P(r)})}function qi(e,r){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...P(r)})}function Gi(e,r){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...P(r)})}function Ji(e,r){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...P(r)})}function Hi(e,r){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...P(r)})}var ou={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function su(e,r){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...P(r)})}function au(e,r){return new e({type:"string",format:"date",check:"string_format",...P(r)})}function lu(e,r){return new e({type:"string",format:"time",check:"string_format",precision:null,...P(r)})}function cu(e,r){return new e({type:"string",format:"duration",check:"string_format",...P(r)})}function uu(e,r){return new e({type:"number",checks:[],...P(r)})}function du(e,r){return new e({type:"number",coerce:!0,checks:[],...P(r)})}function fu(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...P(r)})}function pu(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...P(r)})}function hu(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...P(r)})}function mu(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...P(r)})}function gu(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...P(r)})}function vu(e,r){return new e({type:"boolean",...P(r)})}function yu(e,r){return new e({type:"boolean",coerce:!0,...P(r)})}function bu(e,r){return new e({type:"bigint",...P(r)})}function wu(e,r){return new e({type:"bigint",coerce:!0,...P(r)})}function xu(e,r){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...P(r)})}function _u(e,r){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...P(r)})}function Su(e,r){return new e({type:"symbol",...P(r)})}function $u(e,r){return new e({type:"undefined",...P(r)})}function ku(e,r){return new e({type:"null",...P(r)})}function Iu(e){return new e({type:"any"})}function Eu(e){return new e({type:"unknown"})}function Cu(e,r){return new e({type:"never",...P(r)})}function Ou(e,r){return new e({type:"void",...P(r)})}function Nu(e,r){return new e({type:"date",...P(r)})}function zu(e,r){return new e({type:"date",coerce:!0,...P(r)})}function Du(e,r){return new e({type:"nan",...P(r)})}function Je(e,r){return new hi({check:"less_than",...P(r),value:e,inclusive:!1})}function Te(e,r){return new hi({check:"less_than",...P(r),value:e,inclusive:!0})}function He(e,r){return new mi({check:"greater_than",...P(r),value:e,inclusive:!1})}function $e(e,r){return new mi({check:"greater_than",...P(r),value:e,inclusive:!0})}function Xi(e){return He(0,e)}function Ki(e){return Je(0,e)}function Yi(e){return Te(0,e)}function Qi(e){return $e(0,e)}function mt(e,r){return new kl({check:"multiple_of",...P(r),value:e})}function gt(e,r){return new Cl({check:"max_size",...P(r),maximum:e})}function Xe(e,r){return new Ol({check:"min_size",...P(r),minimum:e})}function Nt(e,r){return new Nl({check:"size_equals",...P(r),size:e})}function zt(e,r){return new zl({check:"max_length",...P(r),maximum:e})}function rt(e,r){return new Dl({check:"min_length",...P(r),minimum:e})}function Dt(e,r){return new Tl({check:"length_equals",...P(r),length:e})}function Qt(e,r){return new Pl({check:"string_format",format:"regex",...P(r),pattern:e})}function er(e){return new Rl({check:"string_format",format:"lowercase",...P(e)})}function tr(e){return new Al({check:"string_format",format:"uppercase",...P(e)})}function rr(e,r){return new Ml({check:"string_format",format:"includes",...P(r),includes:e})}function nr(e,r){return new Ul({check:"string_format",format:"starts_with",...P(r),prefix:e})}function ir(e,r){return new jl({check:"string_format",format:"ends_with",...P(r),suffix:e})}function eo(e,r,n){return new Ll({check:"property",property:e,schema:r,...P(n)})}function or(e,r){return new Fl({check:"mime_type",mime:e,...P(r)})}function Be(e){return new Zl({check:"overwrite",tx:e})}function sr(e){return Be(r=>r.normalize(e))}function ar(){return Be(e=>e.trim())}function lr(){return Be(e=>e.toLowerCase())}function cr(){return Be(e=>e.toUpperCase())}function ur(){return Be(e=>Ua(e))}function Tu(e,r,n){return new e({type:"array",element:r,...P(n)})}function V$(e,r,n){return new e({type:"union",options:r,...P(n)})}function q$(e,r,n){return new e({type:"union",options:r,inclusive:!1,...P(n)})}function G$(e,r,n,o){return new e({type:"union",options:n,discriminator:r,...P(o)})}function J$(e,r,n){return new e({type:"intersection",left:r,right:n})}function H$(e,r,n,o){let t=n instanceof L,i=t?o:n,s=t?n:null;return new e({type:"tuple",items:r,rest:s,...P(i)})}function X$(e,r,n,o){return new e({type:"record",keyType:r,valueType:n,...P(o)})}function K$(e,r,n,o){return new e({type:"map",keyType:r,valueType:n,...P(o)})}function Y$(e,r,n){return new e({type:"set",valueType:r,...P(n)})}function Q$(e,r,n){let o=Array.isArray(r)?Object.fromEntries(r.map(t=>[t,t])):r;return new e({type:"enum",entries:o,...P(n)})}function ek(e,r,n){return new e({type:"enum",entries:r,...P(n)})}function tk(e,r,n){return new e({type:"literal",values:Array.isArray(r)?r:[r],...P(n)})}function Pu(e,r){return new e({type:"file",...P(r)})}function rk(e,r){return new e({type:"transform",transform:r})}function nk(e,r){return new e({type:"optional",innerType:r})}function ik(e,r){return new e({type:"nullable",innerType:r})}function ok(e,r,n){return new e({type:"default",innerType:r,get defaultValue(){return typeof n=="function"?n():La(n)}})}function sk(e,r,n){return new e({type:"nonoptional",innerType:r,...P(n)})}function ak(e,r){return new e({type:"success",innerType:r})}function lk(e,r,n){return new e({type:"catch",innerType:r,catchValue:typeof n=="function"?n:()=>n})}function ck(e,r,n){return new e({type:"pipe",in:r,out:n})}function uk(e,r){return new e({type:"readonly",innerType:r})}function dk(e,r,n){return new e({type:"template_literal",parts:r,...P(n)})}function fk(e,r){return new e({type:"lazy",getter:r})}function pk(e,r){return new e({type:"promise",innerType:r})}function Ru(e,r,n){let o=P(n);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:r,...o})}function Au(e,r,n){return new e({type:"custom",check:"custom",fn:r,...P(n)})}function Mu(e,r){let n=yv(o=>(o.addIssue=t=>{if(typeof t=="string")o.issues.push(qt(t,o.value,n._zod.def));else{let i=t;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=o.value),i.inst??(i.inst=n),i.continue??(i.continue=!n._zod.def.abort),o.issues.push(qt(i))}},e(o.value,o)),r);return n}function yv(e,r){let n=new ne({check:"custom",...P(r)});return n._zod.check=e,n}function Uu(e){let r=new ne({check:"describe"});return r._zod.onattach=[n=>{let o=me.get(n)??{};me.add(n,{...o,description:e})}],r._zod.check=()=>{},r}function ju(e){let r=new ne({check:"meta"});return r._zod.onattach=[n=>{let o=me.get(n)??{};me.add(n,{...o,...e})}],r._zod.check=()=>{},r}function Lu(e,r){let n=P(r),o=n.truthy??["true","1","yes","on","y","enabled"],t=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(o=o.map(d=>typeof d=="string"?d.toLowerCase():d),t=t.map(d=>typeof d=="string"?d.toLowerCase():d));let i=new Set(o),s=new Set(t),a=e.Codec??Kr,c=e.Boolean??Hr,u=e.String??Ot,l=new u({type:"string",error:n.error}),p=new c({type:"boolean",error:n.error}),f=new a({type:"pipe",in:l,out:p,transform:((d,m)=>{let h=d;return n.case!=="sensitive"&&(h=h.toLowerCase()),i.has(h)?!0:s.has(h)?!1:(m.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...s],input:m.value,inst:f,continue:!1}),{})}),reverseTransform:((d,m)=>d===!0?o[0]||"true":t[0]||"false"),error:n.error});return f}function dr(e,r,n,o={}){let t=P(o),i={...P(o),check:"string_format",type:"string",format:r,fn:typeof n=="function"?n:a=>n.test(a),...t};return n instanceof RegExp&&(i.pattern=n),new e(i)}function vt(e){let r=e?.target??"draft-2020-12";return r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??me,target:r,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function X(e,r,n={path:[],schemaPath:[]}){var o;let t=e._zod.def,i=r.seen.get(e);if(i)return i.count++,n.schemaPath.includes(e)&&(i.cycle=n.path),i.schema;let s={schema:{},count:1,cycle:void 0,path:n.path};r.seen.set(e,s);let a=e._zod.toJSONSchema?.();if(a)s.schema=a;else{let l={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(r,s.schema,l);else{let f=s.schema,d=r.processors[t.type];if(!d)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${t.type}`);d(e,r,f,l)}let p=e._zod.parent;p&&(s.ref||(s.ref=p),X(p,r,l),r.seen.get(p).isParent=!0)}let c=r.metadataRegistry.get(e);return c&&Object.assign(s.schema,c),r.io==="input"&&ke(e)&&(delete s.schema.examples,delete s.schema.default),r.io==="input"&&"_prefault"in s.schema&&((o=s.schema).default??(o.default=s.schema._prefault)),delete s.schema._prefault,r.seen.get(e).schema}function yt(e,r){let n=e.seen.get(r);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=new Map;for(let s of e.seen.entries()){let a=e.metadataRegistry.get(s[0])?.id;if(a){let c=o.get(a);if(c&&c!==s[0])throw new Error(`Duplicate schema id "${a}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(a,s[0])}}let t=s=>{let a=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let p=e.external.registry.get(s[0])?.id,f=e.external.uri??(m=>m);if(p)return{ref:f(p)};let d=s[1].defId??s[1].schema.id??`schema${e.counter++}`;return s[1].defId=d,{defId:d,ref:`${f("__shared")}#/${a}/${d}`}}if(s[1]===n)return{ref:"#"};let u=`#/${a}/`,l=s[1].schema.id??`__schema${e.counter++}`;return{defId:l,ref:u+l}},i=s=>{if(s[1].schema.$ref)return;let a=s[1],{ref:c,defId:u}=t(s);a.def={...a.schema},u&&(a.defId=u);let l=a.schema;for(let p in l)delete l[p];l.$ref=c};if(e.cycles==="throw")for(let s of e.seen.entries()){let a=s[1];if(a.cycle)throw new Error(`Cycle detected: #/${a.cycle?.join("/")}/<root>
|
|
203
|
+
`)}d.write("payload.value = newResult;"),d.write("return payload;");let b=d.compile();return(y,_)=>b(f,y,_)},i,s=Et,a=!It.jitless,u=a&&ja.value,l=r.catchall,p;e._zod.parse=(f,d)=>{p??(p=o.value);let m=f.value;return s(m)?a&&u&&d?.async===!1&&d.jitless!==!0?(i||(i=t(r.shape)),f=i(f,d),l?gg([],m,f,d,p,e):f):n(f,d):(f.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),f)}});function eg(e,r,n,o){for(let i of e)if(i.issues.length===0)return r.value=i.value,r;let t=e.filter(i=>!ht(i));return t.length===1?(r.value=t[0].value,t[0]):(r.issues.push({code:"invalid_union",input:r.value,inst:n,errors:e.map(i=>i.issues.map(s=>Se(s,o,ce())))}),r)}var Xr=k("$ZodUnion",(e,r)=>{L.init(e,r),W(e._zod,"optin",()=>r.options.some(o=>o._zod.optin==="optional")?"optional":void 0),W(e._zod,"optout",()=>r.options.some(o=>o._zod.optout==="optional")?"optional":void 0),W(e._zod,"values",()=>{if(r.options.every(o=>o._zod.values))return new Set(r.options.flatMap(o=>Array.from(o._zod.values)))}),W(e._zod,"pattern",()=>{if(r.options.every(o=>o._zod.pattern)){let o=r.options.map(t=>t._zod.pattern);return new RegExp(`^(${o.map(t=>jr(t.source)).join("|")})$`)}});let n=r.options.length===1?r.options[0]._zod.run:null;e._zod.parse=(o,t)=>{if(n)return n(o,t);let i=!1,s=[];for(let a of r.options){let c=a._zod.run({value:o.value,issues:[]},t);if(c instanceof Promise)s.push(c),i=!0;else{if(c.issues.length===0)return c;s.push(c)}}return i?Promise.all(s).then(a=>eg(a,o,e,t)):eg(s,o,e,t)}});function tg(e,r,n,o){let t=e.filter(i=>i.issues.length===0);return t.length===1?(r.value=t[0].value,r):(t.length===0?r.issues.push({code:"invalid_union",input:r.value,inst:n,errors:e.map(i=>i.issues.map(s=>Se(s,o,ce())))}):r.issues.push({code:"invalid_union",input:r.value,inst:n,errors:[],inclusive:!1}),r)}var Oc=k("$ZodXor",(e,r)=>{Xr.init(e,r),r.inclusive=!1;let n=r.options.length===1?r.options[0]._zod.run:null;e._zod.parse=(o,t)=>{if(n)return n(o,t);let i=!1,s=[];for(let a of r.options){let c=a._zod.run({value:o.value,issues:[]},t);c instanceof Promise?(s.push(c),i=!0):s.push(c)}return i?Promise.all(s).then(a=>tg(a,o,e,t)):tg(s,o,e,t)}}),Nc=k("$ZodDiscriminatedUnion",(e,r)=>{r.inclusive=!1,Xr.init(e,r);let n=e._zod.parse;W(e._zod,"propValues",()=>{let t={};for(let i of r.options){let s=i._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(i)}"`);for(let[a,c]of Object.entries(s)){t[a]||(t[a]=new Set);for(let u of c)t[a].add(u)}}return t});let o=Vt(()=>{let t=r.options,i=new Map;for(let s of t){let a=s._zod.propValues?.[r.discriminator];if(!a||a.size===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(s)}"`);for(let c of a){if(i.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);i.set(c,s)}}return i});e._zod.parse=(t,i)=>{let s=t.value;if(!Et(s))return t.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),t;let a=o.value.get(s?.[r.discriminator]);return a?a._zod.run(t,i):r.unionFallback||i.direction==="backward"?n(t,i):(t.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:r.discriminator,options:Array.from(o.value.keys()),input:s,path:[r.discriminator],inst:e}),t)}}),zc=k("$ZodIntersection",(e,r)=>{L.init(e,r),e._zod.parse=(n,o)=>{let t=n.value,i=r.left._zod.run({value:t,issues:[]},o),s=r.right._zod.run({value:t,issues:[]},o);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([c,u])=>rg(n,c,u)):rg(n,i,s)}});function Wl(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(pt(e)&&pt(r)){let n=Object.keys(r),o=Object.keys(e).filter(i=>n.indexOf(i)!==-1),t={...e,...r};for(let i of o){let s=Wl(e[i],r[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};t[i]=s.data}return{valid:!0,data:t}}if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let o=0;o<e.length;o++){let t=e[o],i=r[o],s=Wl(t,i);if(!s.valid)return{valid:!1,mergeErrorPath:[o,...s.mergeErrorPath]};n.push(s.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function rg(e,r,n){let o=new Map,t;for(let a of r.issues)if(a.code==="unrecognized_keys"){t??(t=a);for(let c of a.keys)o.has(c)||o.set(c,{}),o.get(c).l=!0}else e.issues.push(a);for(let a of n.issues)if(a.code==="unrecognized_keys")for(let c of a.keys)o.has(c)||o.set(c,{}),o.get(c).r=!0;else e.issues.push(a);let i=[...o].filter(([,a])=>a.l&&a.r).map(([a])=>a);if(i.length&&t&&e.issues.push({...t,keys:i}),ht(e))return e;let s=Wl(r.value,n.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return e.value=s.data,e}var _i=k("$ZodTuple",(e,r)=>{L.init(e,r);let n=r.items;e._zod.parse=(o,t)=>{let i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];let s=[],a=ng(n,"optin"),c=ng(n,"optout");if(!r.rest){if(i.length<a)return o.issues.push({code:"too_small",minimum:a,inclusive:!0,input:i,inst:e,origin:"array"}),o;i.length>n.length&&o.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:i,inst:e,origin:"array"})}let u=new Array(n.length);for(let l=0;l<n.length;l++){let p=n[l]._zod.run({value:i[l],issues:[]},t);p instanceof Promise?s.push(p.then(f=>{u[l]=f})):u[l]=p}if(r.rest){let l=n.length-1,p=i.slice(n.length);for(let f of p){l++;let d=r.rest._zod.run({value:f,issues:[]},t);d instanceof Promise?s.push(d.then(m=>ig(m,o,l))):ig(d,o,l)}}return s.length?Promise.all(s).then(()=>og(u,o,n,i,c)):og(u,o,n,i,c)}});function ng(e,r){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[r]!=="optional")return n+1;return 0}function ig(e,r,n){e.issues.length&&r.issues.push(...Ee(n,e.issues)),r.value[n]=e.value}function og(e,r,n,o,t){for(let i=0;i<n.length;i++){let s=e[i],a=i<o.length;if(s.issues.length){if(!a&&i>=t){r.value.length=i;break}r.issues.push(...Ee(i,s.issues))}r.value[i]=s.value}for(let i=r.value.length-1;i>=o.length&&(n[i]._zod.optout==="optional"&&r.value[i]===void 0);i--)r.value.length=i;return r}var Dc=k("$ZodRecord",(e,r)=>{L.init(e,r),e._zod.parse=(n,o)=>{let t=n.value;if(!pt(t))return n.issues.push({expected:"record",code:"invalid_type",input:t,inst:e}),n;let i=[],s=r.keyType._zod.values;if(s){n.value={};let a=new Set;for(let u of s)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){a.add(typeof u=="number"?u.toString():u);let l=r.keyType._zod.run({value:u,issues:[]},o);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(l.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(d=>Se(d,o,ce())),input:u,path:[u],inst:e});continue}let p=l.value,f=r.valueType._zod.run({value:t[u],issues:[]},o);f instanceof Promise?i.push(f.then(d=>{d.issues.length&&n.issues.push(...Ee(u,d.issues)),n.value[p]=d.value})):(f.issues.length&&n.issues.push(...Ee(u,f.issues)),n.value[p]=f.value)}let c;for(let u in t)a.has(u)||(c=c??[],c.push(u));c&&c.length>0&&n.issues.push({code:"unrecognized_keys",input:t,inst:e,keys:c})}else{n.value={};for(let a of Reflect.ownKeys(t)){if(a==="__proto__"||!Object.prototype.propertyIsEnumerable.call(t,a))continue;let c=r.keyType._zod.run({value:a,issues:[]},o);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof a=="string"&&pi.test(a)&&c.issues.length){let p=r.keyType._zod.run({value:Number(a),issues:[]},o);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");p.issues.length===0&&(c=p)}if(c.issues.length){r.mode==="loose"?n.value[a]=t[a]:n.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(p=>Se(p,o,ce())),input:a,path:[a],inst:e});continue}let l=r.valueType._zod.run({value:t[a],issues:[]},o);l instanceof Promise?i.push(l.then(p=>{p.issues.length&&n.issues.push(...Ee(a,p.issues)),n.value[c.value]=p.value})):(l.issues.length&&n.issues.push(...Ee(a,l.issues)),n.value[c.value]=l.value)}}return i.length?Promise.all(i).then(()=>n):n}}),Tc=k("$ZodMap",(e,r)=>{L.init(e,r),e._zod.parse=(n,o)=>{let t=n.value;if(!(t instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:t,inst:e}),n;let i=[];n.value=new Map;for(let[s,a]of t){let c=r.keyType._zod.run({value:s,issues:[]},o),u=r.valueType._zod.run({value:a,issues:[]},o);c instanceof Promise||u instanceof Promise?i.push(Promise.all([c,u]).then(([l,p])=>{sg(l,p,n,s,t,e,o)})):sg(c,u,n,s,t,e,o)}return i.length?Promise.all(i).then(()=>n):n}});function sg(e,r,n,o,t,i,s){e.issues.length&&(Lr.has(typeof o)?n.issues.push(...Ee(o,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:t,inst:i,issues:e.issues.map(a=>Se(a,s,ce()))})),r.issues.length&&(Lr.has(typeof o)?n.issues.push(...Ee(o,r.issues)):n.issues.push({origin:"map",code:"invalid_element",input:t,inst:i,key:o,issues:r.issues.map(a=>Se(a,s,ce()))})),n.value.set(e.value,r.value)}var Rc=k("$ZodSet",(e,r)=>{L.init(e,r),e._zod.parse=(n,o)=>{let t=n.value;if(!(t instanceof Set))return n.issues.push({input:t,inst:e,expected:"set",code:"invalid_type"}),n;let i=[];n.value=new Set;for(let s of t){let a=r.valueType._zod.run({value:s,issues:[]},o);a instanceof Promise?i.push(a.then(c=>ag(c,n))):ag(a,n)}return i.length?Promise.all(i).then(()=>n):n}});function ag(e,r){e.issues.length&&r.issues.push(...e.issues),r.value.add(e.value)}var Pc=k("$ZodEnum",(e,r)=>{L.init(e,r);let n=Ur(r.entries),o=new Set(n);e._zod.values=o,e._zod.pattern=new RegExp(`^(${n.filter(t=>Lr.has(typeof t)).map(t=>typeof t=="string"?Ae(t):t.toString()).join("|")})$`),e._zod.parse=(t,i)=>{let s=t.value;return o.has(s)||t.issues.push({code:"invalid_value",values:n,input:s,inst:e}),t}}),Ac=k("$ZodLiteral",(e,r)=>{if(L.init(e,r),r.values.length===0)throw new Error("Cannot create literal schema with no valid values");let n=new Set(r.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.values.map(o=>typeof o=="string"?Ae(o):o?Ae(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,t)=>{let i=o.value;return n.has(i)||o.issues.push({code:"invalid_value",values:r.values,input:i,inst:e}),o}}),Mc=k("$ZodFile",(e,r)=>{L.init(e,r),e._zod.parse=(n,o)=>{let t=n.value;return t instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:t,inst:e}),n}}),Uc=k("$ZodTransform",(e,r)=>{L.init(e,r),e._zod.optin="optional",e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new ut(e.constructor.name);let t=r.transform(n.value,n);if(o.async)return(t instanceof Promise?t:Promise.resolve(t)).then(s=>(n.value=s,n.fallback=!0,n));if(t instanceof Promise)throw new Ze;return n.value=t,n.fallback=!0,n}});function lg(e,r){return r===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var Si=k("$ZodOptional",(e,r)=>{L.init(e,r),e._zod.optin="optional",e._zod.optout="optional",W(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),W(e._zod,"pattern",()=>{let n=r.innerType._zod.pattern;return n?new RegExp(`^(${jr(n.source)})?$`):void 0}),e._zod.parse=(n,o)=>{if(r.innerType._zod.optin==="optional"){let t=n.value,i=r.innerType._zod.run(n,o);return i instanceof Promise?i.then(s=>lg(s,t)):lg(i,t)}return n.value===void 0?n:r.innerType._zod.run(n,o)}}),jc=k("$ZodExactOptional",(e,r)=>{Si.init(e,r),W(e._zod,"values",()=>r.innerType._zod.values),W(e._zod,"pattern",()=>r.innerType._zod.pattern),e._zod.parse=(n,o)=>r.innerType._zod.run(n,o)}),Lc=k("$ZodNullable",(e,r)=>{L.init(e,r),W(e._zod,"optin",()=>r.innerType._zod.optin),W(e._zod,"optout",()=>r.innerType._zod.optout),W(e._zod,"pattern",()=>{let n=r.innerType._zod.pattern;return n?new RegExp(`^(${jr(n.source)}|null)$`):void 0}),W(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),e._zod.parse=(n,o)=>n.value===null?n:r.innerType._zod.run(n,o)}),Fc=k("$ZodDefault",(e,r)=>{L.init(e,r),e._zod.optin="optional",W(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return r.innerType._zod.run(n,o);if(n.value===void 0)return n.value=r.defaultValue,n;let t=r.innerType._zod.run(n,o);return t instanceof Promise?t.then(i=>cg(i,r)):cg(t,r)}});function cg(e,r){return e.value===void 0&&(e.value=r.defaultValue),e}var Zc=k("$ZodPrefault",(e,r)=>{L.init(e,r),e._zod.optin="optional",W(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(n,o)=>(o.direction==="backward"||n.value===void 0&&(n.value=r.defaultValue),r.innerType._zod.run(n,o))}),Bc=k("$ZodNonOptional",(e,r)=>{L.init(e,r),W(e._zod,"values",()=>{let n=r.innerType._zod.values;return n?new Set([...n].filter(o=>o!==void 0)):void 0}),e._zod.parse=(n,o)=>{let t=r.innerType._zod.run(n,o);return t instanceof Promise?t.then(i=>ug(i,e)):ug(t,e)}});function ug(e,r){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:r}),e}var Wc=k("$ZodSuccess",(e,r)=>{L.init(e,r),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new ut("ZodSuccess");let t=r.innerType._zod.run(n,o);return t instanceof Promise?t.then(i=>(n.value=i.issues.length===0,n)):(n.value=t.issues.length===0,n)}}),Vc=k("$ZodCatch",(e,r)=>{L.init(e,r),e._zod.optin="optional",W(e._zod,"optout",()=>r.innerType._zod.optout),W(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return r.innerType._zod.run(n,o);let t=r.innerType._zod.run(n,o);return t instanceof Promise?t.then(i=>(n.value=i.value,i.issues.length&&(n.value=r.catchValue({...n,error:{issues:i.issues.map(s=>Se(s,o,ce()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=t.value,t.issues.length&&(n.value=r.catchValue({...n,error:{issues:t.issues.map(i=>Se(i,o,ce()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),qc=k("$ZodNaN",(e,r)=>{L.init(e,r),e._zod.parse=(n,o)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),$i=k("$ZodPipe",(e,r)=>{L.init(e,r),W(e._zod,"values",()=>r.in._zod.values),W(e._zod,"optin",()=>r.in._zod.optin),W(e._zod,"optout",()=>r.out._zod.optout),W(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(n,o)=>{if(o.direction==="backward"){let i=r.out._zod.run(n,o);return i instanceof Promise?i.then(s=>gi(s,r.in,o)):gi(i,r.in,o)}let t=r.in._zod.run(n,o);return t instanceof Promise?t.then(i=>gi(i,r.out,o)):gi(t,r.out,o)}});function gi(e,r,n){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}var Kr=k("$ZodCodec",(e,r)=>{L.init(e,r),W(e._zod,"values",()=>r.in._zod.values),W(e._zod,"optin",()=>r.in._zod.optin),W(e._zod,"optout",()=>r.out._zod.optout),W(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(n,o)=>{if((o.direction||"forward")==="forward"){let i=r.in._zod.run(n,o);return i instanceof Promise?i.then(s=>vi(s,r,o)):vi(i,r,o)}else{let i=r.out._zod.run(n,o);return i instanceof Promise?i.then(s=>vi(s,r,o)):vi(i,r,o)}}});function vi(e,r,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||"forward")==="forward"){let t=r.transform(e.value,e);return t instanceof Promise?t.then(i=>yi(e,i,r.out,n)):yi(e,t,r.out,n)}else{let t=r.reverseTransform(e.value,e);return t instanceof Promise?t.then(i=>yi(e,i,r.in,n)):yi(e,t,r.in,n)}}function yi(e,r,n,o){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:r,issues:e.issues},o)}var Gc=k("$ZodPreprocess",(e,r)=>{$i.init(e,r)}),Jc=k("$ZodReadonly",(e,r)=>{L.init(e,r),W(e._zod,"propValues",()=>r.innerType._zod.propValues),W(e._zod,"values",()=>r.innerType._zod.values),W(e._zod,"optin",()=>r.innerType?._zod?.optin),W(e._zod,"optout",()=>r.innerType?._zod?.optout),e._zod.parse=(n,o)=>{if(o.direction==="backward")return r.innerType._zod.run(n,o);let t=r.innerType._zod.run(n,o);return t instanceof Promise?t.then(dg):dg(t)}});function dg(e){return e.value=Object.freeze(e.value),e}var Hc=k("$ZodTemplateLiteral",(e,r)=>{L.init(e,r);let n=[];for(let o of r.parts)if(typeof o=="object"&&o!==null){if(!o._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);let t=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!t)throw new Error(`Invalid template literal part: ${o._zod.traits}`);let i=t.startsWith("^")?1:0,s=t.endsWith("$")?t.length-1:t.length;n.push(t.slice(i,s))}else if(o===null||Fa.has(typeof o))n.push(Ae(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(o,t)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:e,expected:"string",code:"invalid_type"}),o):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:e,code:"invalid_format",format:r.format??"template_literal",pattern:e._zod.pattern.source}),o)}),Xc=k("$ZodFunction",(e,r)=>(L.init(e,r),e._def=r,e._zod.def=r,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return function(...o){let t=e._def.input?ri(e._def.input,o):o,i=Reflect.apply(n,this,t);return e._def.output?ri(e._def.output,i):i}},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return async function(...o){let t=e._def.input?await ni(e._def.input,o):o,i=await Reflect.apply(n,this,t);return e._def.output?await ni(e._def.output,i):i}},e._zod.parse=(n,o)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{let o=e.constructor;return Array.isArray(n[0])?new o({type:"function",input:new _i({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new o({type:"function",input:n[0],output:e._def.output})},e.output=n=>{let o=e.constructor;return new o({type:"function",input:e._def.input,output:n})},e)),Kc=k("$ZodPromise",(e,r)=>{L.init(e,r),e._zod.parse=(n,o)=>Promise.resolve(n.value).then(t=>r.innerType._zod.run({value:t,issues:[]},o))}),Yc=k("$ZodLazy",(e,r)=>{L.init(e,r),W(e._zod,"innerType",()=>{let n=r;return n._cachedInner||(n._cachedInner=r.getter()),n._cachedInner}),W(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),W(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),W(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),W(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(n,o)=>e._zod.innerType._zod.run(n,o)}),Qc=k("$ZodCustom",(e,r)=>{ne.init(e,r),L.init(e,r),e._zod.parse=(n,o)=>n,e._zod.check=n=>{let o=n.value,t=r.fn(o);if(t instanceof Promise)return t.then(i=>fg(i,n,o,e));fg(t,n,o,e)}});function fg(e,r,n,o){if(!e){let t={code:"custom",input:n,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(t.params=o._zod.def.params),r.issues.push(qt(t))}}var Qr={};Ve(Qr,{ar:()=>yg,az:()=>bg,be:()=>xg,bg:()=>_g,ca:()=>Sg,cs:()=>$g,da:()=>kg,de:()=>Ig,el:()=>Eg,en:()=>ki,eo:()=>Cg,es:()=>Og,fa:()=>Ng,fi:()=>zg,fr:()=>Dg,frCA:()=>Tg,he:()=>Rg,hr:()=>Pg,hu:()=>Ag,hy:()=>Ug,id:()=>jg,is:()=>Lg,it:()=>Fg,ja:()=>Zg,ka:()=>Bg,kh:()=>Wg,km:()=>Ii,ko:()=>Vg,lt:()=>Gg,mk:()=>Jg,ms:()=>Hg,nl:()=>Xg,no:()=>Kg,ota:()=>Yg,pl:()=>ev,ps:()=>Qg,pt:()=>tv,ro:()=>rv,ru:()=>iv,sl:()=>ov,sv:()=>sv,ta:()=>av,th:()=>lv,tr:()=>cv,ua:()=>uv,uk:()=>Ei,ur:()=>dv,uz:()=>fv,vi:()=>pv,yo:()=>gv,zhCN:()=>hv,zhTW:()=>mv});var JS=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function r(t){return e[t]??null}let n={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${t.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${a}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${i}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${a}`}case"invalid_value":return t.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${N(t.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${t.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${t.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${t.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${t.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${t.minimum.toString()} ${s.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${t.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${t.prefix}"`:i.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${i.suffix}"`:i.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${i.includes}"`:i.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${i.pattern}`:`${n[i.format]??t.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${t.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${t.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${t.keys.length>1?"\u0629":""}: ${I(t.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${t.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${t.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function yg(){return{localeError:JS()}}var HS=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function r(t){return e[t]??null}let n={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"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${t.expected}, daxil olan ${a}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${i}, daxil olan ${a}`}case"invalid_value":return t.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${N(t.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${t.origin??"d\u0259y\u0259r"} ${i}${t.maximum.toString()} ${s.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${t.origin??"d\u0259y\u0259r"} ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${t.origin} ${i}${t.minimum.toString()} ${s.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${t.origin} ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${i.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:i.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${i.suffix}" il\u0259 bitm\u0259lidir`:i.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${i.includes}" daxil olmal\u0131d\u0131r`:i.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${i.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${n[i.format]??t.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${t.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${t.keys.length>1?"lar":""}: ${I(t.keys,", ")}`;case"invalid_key":return`${t.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${t.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function bg(){return{localeError:HS()}}function wg(e,r,n,o){let t=Math.abs(e),i=t%10,s=t%100;return s>=11&&s<=19?o:i===1?r:i>=2&&i<=4?n:o}var XS=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function r(t){return e[t]??null}let n={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},o={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${t.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${a}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${i}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${a}`}case"invalid_value":return t.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${N(t.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);if(s){let a=Number(t.maximum),c=wg(a,s.unit.one,s.unit.few,s.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${s.verb} ${i}${t.maximum.toString()} ${c}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);if(s){let a=Number(t.minimum),c=wg(a,s.unit.one,s.unit.few,s.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${s.verb} ${i}${t.minimum.toString()} ${c}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${i.includes}"`:i.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${n[i.format]??t.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${t.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${I(t.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${t.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${t.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function xg(){return{localeError:XS()}}var KS=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function r(t){return e[t]??null}let n={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${t.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${a}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${a}`}case"invalid_value":return t.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${N(t.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${t.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${t.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${t.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${t.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${t.minimum.toString()} ${s.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${t.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${i.prefix}"`;if(i.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${i.suffix}"`;if(i.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${i.includes}"`;if(i.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${i.pattern}`;let s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return i.format==="emoji"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="datetime"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="date"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),i.format==="time"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="duration"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${s} ${n[i.format]??t.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${t.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${t.keys.length>1?"\u043E\u0432\u0435":""}: ${I(t.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${t.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${t.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function _g(){return{localeError:KS()}}var YS=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function r(t){return e[t]??null}let n={regex:"entrada",email:"adre\xE7a electr\xF2nica",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\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${t.expected}, s'ha rebut ${a}`:`Tipus inv\xE0lid: s'esperava ${i}, s'ha rebut ${a}`}case"invalid_value":return t.values.length===1?`Valor inv\xE0lid: s'esperava ${N(t.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${I(t.values," o ")}`;case"too_big":{let i=t.inclusive?"com a m\xE0xim":"menys de",s=r(t.origin);return s?`Massa gran: s'esperava que ${t.origin??"el valor"} contingu\xE9s ${i} ${t.maximum.toString()} ${s.unit??"elements"}`:`Massa gran: s'esperava que ${t.origin??"el valor"} fos ${i} ${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?"com a m\xEDnim":"m\xE9s de",s=r(t.origin);return s?`Massa petit: s'esperava que ${t.origin} contingu\xE9s ${i} ${t.minimum.toString()} ${s.unit}`:`Massa petit: s'esperava que ${t.origin} fos ${i} ${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${i.prefix}"`:i.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${i.suffix}"`:i.format==="includes"?`Format inv\xE0lid: ha d'incloure "${i.includes}"`:i.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${i.pattern}`:`Format inv\xE0lid per a ${n[i.format]??t.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${t.divisor}`;case"unrecognized_keys":return`Clau${t.keys.length>1?"s":""} no reconeguda${t.keys.length>1?"s":""}: ${I(t.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${t.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${t.origin}`;default:return"Entrada inv\xE0lida"}}};function Sg(){return{localeError:YS()}}var QS=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function r(t){return e[t]??null}let n={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 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 \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},o={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${t.expected}, obdr\u017Eeno ${a}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${i}, obdr\u017Eeno ${a}`}case"invalid_value":return t.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${N(t.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${t.origin??"hodnota"} mus\xED m\xEDt ${i}${t.maximum.toString()} ${s.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${t.origin??"hodnota"} mus\xED b\xFDt ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${t.origin??"hodnota"} mus\xED m\xEDt ${i}${t.minimum.toString()} ${s.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${t.origin??"hodnota"} mus\xED b\xFDt ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${i.prefix}"`:i.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${i.suffix}"`:i.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${i.includes}"`:i.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${i.pattern}`:`Neplatn\xFD form\xE1t ${n[i.format]??t.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${t.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${I(t.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${t.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${t.origin}`;default:return"Neplatn\xFD vstup"}}};function $g(){return{localeError:QS()}}var e$=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function r(t){return e[t]??null}let n={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\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",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"},o={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Ugyldigt input: forventede instanceof ${t.expected}, fik ${a}`:`Ugyldigt input: forventede ${i}, fik ${a}`}case"invalid_value":return t.values.length===1?`Ugyldig v\xE6rdi: forventede ${N(t.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin),a=o[t.origin]??t.origin;return s?`For stor: forventede ${a??"value"} ${s.verb} ${i} ${t.maximum.toString()} ${s.unit??"elementer"}`:`For stor: forventede ${a??"value"} havde ${i} ${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin),a=o[t.origin]??t.origin;return s?`For lille: forventede ${a} ${s.verb} ${i} ${t.minimum.toString()} ${s.unit}`:`For lille: forventede ${a} havde ${i} ${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Ugyldig streng: skal starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: skal ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: skal indeholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${n[i.format]??t.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${I(t.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${t.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${t.origin}`;default:return"Ugyldigt input"}}};function kg(){return{localeError:e$()}}var t$=()=>{let 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}let n={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"},o={nan:"NaN",number:"Zahl",array:"Array"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${t.expected}, erhalten ${a}`:`Ung\xFCltige Eingabe: erwartet ${i}, erhalten ${a}`}case"invalid_value":return t.values.length===1?`Ung\xFCltige Eingabe: erwartet ${N(t.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Zu gro\xDF: erwartet, dass ${t.origin??"Wert"} ${i}${t.maximum.toString()} ${s.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${t.origin??"Wert"} ${i}${t.maximum.toString()} ist`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Zu klein: erwartet, dass ${t.origin} ${i}${t.minimum.toString()} ${s.unit} hat`:`Zu klein: erwartet, dass ${t.origin} ${i}${t.minimum.toString()} ist`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Ung\xFCltiger String: muss mit "${i.prefix}" beginnen`:i.format==="ends_with"?`Ung\xFCltiger String: muss mit "${i.suffix}" enden`:i.format==="includes"?`Ung\xFCltiger String: muss "${i.includes}" enthalten`:i.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${i.pattern} entsprechen`:`Ung\xFCltig: ${n[i.format]??t.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${t.divisor} sein`;case"unrecognized_keys":return`${t.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${I(t.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${t.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${t.origin}`;default:return"Ung\xFCltige Eingabe"}}};function Ig(){return{localeError:t$()}}var r$=()=>{let e={string:{unit:"\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},file:{unit:"bytes",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},array:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},set:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},map:{unit:"\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"}};function r(t){return e[t]??null}let n={regex:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",email:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 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 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",date:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",time:"ISO \u03CE\u03C1\u03B1",duration:"ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",ipv4:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",ipv6:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",mac:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",cidrv4:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",cidrv6:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",base64:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",base64url:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",json_string:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",e164:"\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",jwt:"JWT",template_literal:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return typeof t.expected=="string"&&/^[A-Z]/.test(t.expected)?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${t.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${a}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${i}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${a}`}case"invalid_value":return t.values.length===1?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${N(t.values[0])}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${t.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${i}${t.maximum.toString()} ${s.unit??"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${t.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${t.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${i}${t.minimum.toString()} ${s.unit}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${t.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${i.prefix}"`:i.format==="ends_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${i.suffix}"`:i.format==="includes"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${i.includes}"`:i.format==="regex"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${i.pattern}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${n[i.format]??t.format}`}case"not_multiple_of":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${t.divisor}`;case"unrecognized_keys":return`\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${t.keys.length>1?"\u03B1":"\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${t.keys.length>1?"\u03B9\u03AC":"\u03AF"}: ${I(t.keys,", ")}`;case"invalid_key":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${t.origin}`;case"invalid_union":return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";case"invalid_element":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${t.origin}`;default:return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"}}};function Eg(){return{localeError:r$()}}var n$=()=>{let 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"},map:{unit:"entries",verb:"to have"}};function r(t){return e[t]??null}let n={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",mac:"MAC 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"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return`Invalid input: expected ${i}, received ${a}`}case"invalid_value":return t.values.length===1?`Invalid input: expected ${N(t.values[0])}`:`Invalid option: expected one of ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Too big: expected ${t.origin??"value"} to have ${i}${t.maximum.toString()} ${s.unit??"elements"}`:`Too big: expected ${t.origin??"value"} to be ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Too small: expected ${t.origin} to have ${i}${t.minimum.toString()} ${s.unit}`:`Too small: expected ${t.origin} to be ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${n[i.format]??t.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${t.divisor}`;case"unrecognized_keys":return`Unrecognized key${t.keys.length>1?"s":""}: ${I(t.keys,", ")}`;case"invalid_key":return`Invalid key in ${t.origin}`;case"invalid_union":return t.options&&Array.isArray(t.options)&&t.options.length>0?`Invalid discriminator value. Expected ${t.options.map(s=>`'${s}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${t.origin}`;default:return"Invalid input"}}};function ki(){return{localeError:n$()}}var i$=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function r(t){return e[t]??null}let n={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",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\u016Dro",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"},o={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${t.expected}, ricevi\u011Dis ${a}`:`Nevalida enigo: atendi\u011Dis ${i}, ricevi\u011Dis ${a}`}case"invalid_value":return t.values.length===1?`Nevalida enigo: atendi\u011Dis ${N(t.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Tro granda: atendi\u011Dis ke ${t.origin??"valoro"} havu ${i}${t.maximum.toString()} ${s.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${t.origin??"valoro"} havu ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Tro malgranda: atendi\u011Dis ke ${t.origin} havu ${i}${t.minimum.toString()} ${s.unit}`:`Tro malgranda: atendi\u011Dis ke ${t.origin} estu ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${i.prefix}"`:i.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${i.suffix}"`:i.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${i.includes}"`:i.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}`:`Nevalida ${n[i.format]??t.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${t.divisor}`;case"unrecognized_keys":return`Nekonata${t.keys.length>1?"j":""} \u015Dlosilo${t.keys.length>1?"j":""}: ${I(t.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${t.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${t.origin}`;default:return"Nevalida enigo"}}};function Cg(){return{localeError:i$()}}var o$=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function r(t){return e[t]??null}let n={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",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\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${t.expected}, recibido ${a}`:`Entrada inv\xE1lida: se esperaba ${i}, recibido ${a}`}case"invalid_value":return t.values.length===1?`Entrada inv\xE1lida: se esperaba ${N(t.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin),a=o[t.origin]??t.origin;return s?`Demasiado grande: se esperaba que ${a??"valor"} tuviera ${i}${t.maximum.toString()} ${s.unit??"elementos"}`:`Demasiado grande: se esperaba que ${a??"valor"} fuera ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin),a=o[t.origin]??t.origin;return s?`Demasiado peque\xF1o: se esperaba que ${a} tuviera ${i}${t.minimum.toString()} ${s.unit}`:`Demasiado peque\xF1o: se esperaba que ${a} fuera ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${i.prefix}"`:i.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${i.suffix}"`:i.format==="includes"?`Cadena inv\xE1lida: debe incluir "${i.includes}"`:i.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${i.pattern}`:`Inv\xE1lido ${n[i.format]??t.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${t.divisor}`;case"unrecognized_keys":return`Llave${t.keys.length>1?"s":""} desconocida${t.keys.length>1?"s":""}: ${I(t.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${o[t.origin]??t.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${o[t.origin]??t.origin}`;default:return"Entrada inv\xE1lida"}}};function Og(){return{localeError:o$()}}var s$=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function r(t){return e[t]??null}let n={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${t.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${a} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${i} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${a} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return t.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${N(t.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${I(t.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${t.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${t.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${t.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${t.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${t.origin} \u0628\u0627\u06CC\u062F ${i}${t.minimum.toString()} ${s.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${t.origin} \u0628\u0627\u06CC\u062F ${i}${t.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:i.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:i.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${i.includes}" \u0628\u0627\u0634\u062F`:i.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${i.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${n[i.format]??t.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${t.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${t.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${I(t.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${t.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${t.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function Ng(){return{localeError:s$()}}var a$=()=>{let e={string:{unit:"merkki\xE4",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\xE4iv\xE4m\xE4\xE4r\xE4n"}};function r(t){return e[t]??null}let n={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",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\xE4iv\xE4m\xE4\xE4r\xE4",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"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Virheellinen tyyppi: odotettiin instanceof ${t.expected}, oli ${a}`:`Virheellinen tyyppi: odotettiin ${i}, oli ${a}`}case"invalid_value":return t.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${N(t.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Liian suuri: ${s.subject} t\xE4ytyy olla ${i}${t.maximum.toString()} ${s.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Liian pieni: ${s.subject} t\xE4ytyy olla ${i}${t.minimum.toString()} ${s.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${i.prefix}"`:i.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${i.suffix}"`:i.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${i.includes}"`:i.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${i.pattern}`:`Virheellinen ${n[i.format]??t.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${t.divisor} monikerta`;case"unrecognized_keys":return`${t.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${I(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\xF6te"}}};function zg(){return{localeError:a$()}}var l$=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function r(t){return e[t]??null}let n={regex:"entr\xE9e",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\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={string:"cha\xEEne",number:"nombre",int:"entier",boolean:"bool\xE9en",bigint:"grand entier",symbol:"symbole",undefined:"ind\xE9fini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Entr\xE9e invalide : instanceof ${t.expected} attendu, ${a} re\xE7u`:`Entr\xE9e invalide : ${i} attendu, ${a} re\xE7u`}case"invalid_value":return t.values.length===1?`Entr\xE9e invalide : ${N(t.values[0])} attendu`:`Option invalide : une valeur parmi ${I(t.values,"|")} attendue`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Trop grand : ${o[t.origin]??"valeur"} doit ${s.verb} ${i}${t.maximum.toString()} ${s.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${o[t.origin]??"valeur"} doit \xEAtre ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Trop petit : ${o[t.origin]??"valeur"} doit ${s.verb} ${i}${t.minimum.toString()} ${s.unit}`:`Trop petit : ${o[t.origin]??"valeur"} doit \xEAtre ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${i.pattern}`:`${n[i.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${t.divisor}`;case"unrecognized_keys":return`Cl\xE9${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${I(t.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${t.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entr\xE9e invalide"}}};function Dg(){return{localeError:l$()}}var c$=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function r(t){return e[t]??null}let n={regex:"entr\xE9e",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\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Entr\xE9e invalide : attendu instanceof ${t.expected}, re\xE7u ${a}`:`Entr\xE9e invalide : attendu ${i}, re\xE7u ${a}`}case"invalid_value":return t.values.length===1?`Entr\xE9e invalide : attendu ${N(t.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"\u2264":"<",s=r(t.origin);return s?`Trop grand : attendu que ${t.origin??"la valeur"} ait ${i}${t.maximum.toString()} ${s.unit}`:`Trop grand : attendu que ${t.origin??"la valeur"} soit ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?"\u2265":">",s=r(t.origin);return s?`Trop petit : attendu que ${t.origin} ait ${i}${t.minimum.toString()} ${s.unit}`:`Trop petit : attendu que ${t.origin} soit ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${i.pattern}`:`${n[i.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${t.divisor}`;case"unrecognized_keys":return`Cl\xE9${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${I(t.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${t.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entr\xE9e invalide"}}};function Tg(){return{localeError:c$()}}var u$=()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},r={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},n=u=>u?e[u]:void 0,o=u=>{let l=n(u);return l?l.label:u??e.unknown.label},t=u=>`\u05D4${o(u)}`,i=u=>(n(u)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",s=u=>u?r[u]??null:null,a={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},c={nan:"NaN"};return u=>{switch(u.code){case"invalid_type":{let l=u.expected,p=c[l??""]??o(l),f=z(u.input),d=c[f]??e[f]?.label??f;return/^[A-Z]/.test(u.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${u.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${d}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${p}, \u05D4\u05EA\u05E7\u05D1\u05DC ${d}`}case"invalid_value":{if(u.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${N(u.values[0])}`;let l=u.values.map(d=>N(d));if(u.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${l[0]} \u05D0\u05D5 ${l[1]}`;let p=l[l.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${l.slice(0,-1).join(", ")} \u05D0\u05D5 ${p}`}case"too_big":{let l=s(u.origin),p=t(u.origin??"value");if(u.origin==="string")return`${l?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.maximum.toString()} ${l?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(u.origin==="number"){let m=u.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${u.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${m}`}if(u.origin==="array"||u.origin==="set"){let m=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",h=u.inclusive?`${u.maximum} ${l?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${u.maximum} ${l?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${p} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${h}`.trim()}let f=u.inclusive?"<=":"<",d=i(u.origin??"value");return l?.unit?`${l.longLabel} \u05DE\u05D3\u05D9: ${p} ${d} ${f}${u.maximum.toString()} ${l.unit}`:`${l?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${p} ${d} ${f}${u.maximum.toString()}`}case"too_small":{let l=s(u.origin),p=t(u.origin??"value");if(u.origin==="string")return`${l?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.minimum.toString()} ${l?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(u.origin==="number"){let m=u.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${u.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${m}`}if(u.origin==="array"||u.origin==="set"){let m=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(u.minimum===1&&u.inclusive){let g=(u.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${g}`}let h=u.inclusive?`${u.minimum} ${l?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${u.minimum} ${l?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${h}`.trim()}let f=u.inclusive?">=":">",d=i(u.origin??"value");return l?.unit?`${l.shortLabel} \u05DE\u05D3\u05D9: ${p} ${d} ${f}${u.minimum.toString()} ${l.unit}`:`${l?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${p} ${d} ${f}${u.minimum.toString()}`}case"invalid_format":{let l=u;if(l.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${l.prefix}"`;if(l.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${l.suffix}"`;if(l.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${l.includes}"`;if(l.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${l.pattern}`;let p=a[l.format],f=p?.label??l.format,m=(p?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${f} \u05DC\u05D0 ${m}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${u.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${u.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${u.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${I(u.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${t(u.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function Rg(){return{localeError:u$()}}var d$=()=>{let e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function r(t){return e[t]??null}let n={regex:"unos",email:"email 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:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},o={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${t.expected}, a primljeno je ${a}`:`Neispravan unos: o\u010Dekuje se ${i}, a primljeno je ${a}`}case"invalid_value":return t.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${N(t.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin),a=o[t.origin]??t.origin;return s?`Preveliko: o\u010Dekivano da ${a??"vrijednost"} ima ${i}${t.maximum.toString()} ${s.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${a??"vrijednost"} bude ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin),a=o[t.origin]??t.origin;return s?`Premalo: o\u010Dekivano da ${a} ima ${i}${t.minimum.toString()} ${s.unit}`:`Premalo: o\u010Dekivano da ${a} bude ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Neispravan tekst: mora zapo\u010Dinjati s "${i.prefix}"`:i.format==="ends_with"?`Neispravan tekst: mora zavr\u0161avati s "${i.suffix}"`:i.format==="includes"?`Neispravan tekst: mora sadr\u017Eavati "${i.includes}"`:i.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${i.pattern}`:`Neispravna ${n[i.format]??t.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\u0161ekratnik od ${t.divisor}`;case"unrecognized_keys":return`Neprepoznat${t.keys.length>1?"i klju\u010Devi":" klju\u010D"}: ${I(t.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${o[t.origin]??t.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${o[t.origin]??t.origin}`;default:return"Neispravan unos"}}};function Pg(){return{localeError:d$()}}var f$=()=>{let 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}let n={regex:"bemenet",email:"email c\xEDm",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\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},o={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${t.expected}, a kapott \xE9rt\xE9k ${a}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${i}, a kapott \xE9rt\xE9k ${a}`}case"invalid_value":return t.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${N(t.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`T\xFAl nagy: ${t.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${i}${t.maximum.toString()} ${s.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${t.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${t.origin} m\xE9rete t\xFAl kicsi ${i}${t.minimum.toString()} ${s.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${t.origin} t\xFAl kicsi ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\xC9rv\xE9nytelen string: "${i.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:i.format==="ends_with"?`\xC9rv\xE9nytelen string: "${i.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:i.format==="includes"?`\xC9rv\xE9nytelen string: "${i.includes}" \xE9rt\xE9ket kell tartalmaznia`:i.format==="regex"?`\xC9rv\xE9nytelen string: ${i.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${n[i.format]??t.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${t.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${t.keys.length>1?"s":""}: ${I(t.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${t.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${t.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function Ag(){return{localeError:f$()}}function Mg(e,r,n){return Math.abs(e)===1?r:n}function Yt(e){if(!e)return"";let r=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],n=e[e.length-1];return e+(r.includes(n)?"\u0576":"\u0568")}var p$=()=>{let e={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function r(t){return e[t]??null}let n={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},o={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${t.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${a}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${i}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${a}`}case"invalid_value":return t.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${N(t.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);if(s){let a=Number(t.maximum),c=Mg(a,s.unit.one,s.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Yt(t.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${t.maximum.toString()} ${c}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Yt(t.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);if(s){let a=Number(t.minimum),c=Mg(a,s.unit.one,s.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Yt(t.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${t.minimum.toString()} ${c}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Yt(t.origin)} \u056C\u056B\u0576\u056B ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${i.prefix}"-\u0578\u057E`:i.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${i.suffix}"-\u0578\u057E`:i.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${i.includes}"`:i.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${i.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${n[i.format]??t.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${t.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${t.keys.length>1?"\u0576\u0565\u0580":""}. ${I(t.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Yt(t.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${Yt(t.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function Ug(){return{localeError:p$()}}var h$=()=>{let 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}let n={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"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Input tidak valid: diharapkan instanceof ${t.expected}, diterima ${a}`:`Input tidak valid: diharapkan ${i}, diterima ${a}`}case"invalid_value":return t.values.length===1?`Input tidak valid: diharapkan ${N(t.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Terlalu besar: diharapkan ${t.origin??"value"} memiliki ${i}${t.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: diharapkan ${t.origin??"value"} menjadi ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Terlalu kecil: diharapkan ${t.origin} memiliki ${i}${t.minimum.toString()} ${s.unit}`:`Terlalu kecil: diharapkan ${t.origin} menjadi ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`String tidak valid: harus dimulai dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak valid: harus berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak valid: harus menyertakan "${i.includes}"`:i.format==="regex"?`String tidak valid: harus sesuai pola ${i.pattern}`:`${n[i.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":""}: ${I(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 jg(){return{localeError:h$()}}var m$=()=>{let e={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function r(t){return e[t]??null}let n={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",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\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",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\xF6lugildi",jwt:"JWT",template_literal:"gildi"},o={nan:"NaN",number:"n\xFAmer",array:"fylki"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${a} \xFEar sem \xE1 a\xF0 vera instanceof ${t.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${a} \xFEar sem \xE1 a\xF0 vera ${i}`}case"invalid_value":return t.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${N(t.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${t.origin??"gildi"} hafi ${i}${t.maximum.toString()} ${s.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${t.origin??"gildi"} s\xE9 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${t.origin} hafi ${i}${t.minimum.toString()} ${s.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${t.origin} s\xE9 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${i.prefix}"`:i.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${i.suffix}"`:i.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${i.includes}"`:i.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${i.pattern}`:`Rangt ${n[i.format]??t.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${t.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${t.keys.length>1?"ir lyklar":"ur lykill"}: ${I(t.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${t.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${t.origin}`;default:return"Rangt gildi"}}};function Lg(){return{localeError:m$()}}var g$=()=>{let 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}let n={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"},o={nan:"NaN",number:"numero",array:"vettore"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Input non valido: atteso instanceof ${t.expected}, ricevuto ${a}`:`Input non valido: atteso ${i}, ricevuto ${a}`}case"invalid_value":return t.values.length===1?`Input non valido: atteso ${N(t.values[0])}`:`Opzione non valida: atteso uno tra ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Troppo grande: ${t.origin??"valore"} deve avere ${i}${t.maximum.toString()} ${s.unit??"elementi"}`:`Troppo grande: ${t.origin??"valore"} deve essere ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Troppo piccolo: ${t.origin} deve avere ${i}${t.minimum.toString()} ${s.unit}`:`Troppo piccolo: ${t.origin} deve essere ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Stringa non valida: deve iniziare con "${i.prefix}"`:i.format==="ends_with"?`Stringa non valida: deve terminare con "${i.suffix}"`:i.format==="includes"?`Stringa non valida: deve includere "${i.includes}"`:i.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${i.pattern}`:`Input non valido: ${n[i.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"}: ${I(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 Fg(){return{localeError:g$()}}var v$=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function r(t){return e[t]??null}let n={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},o={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${t.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${a}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${i}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${a}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return t.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${N(t.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${I(t.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let i=t.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",s=r(t.origin);return s?`\u5927\u304D\u3059\u304E\u308B\u5024: ${t.origin??"\u5024"}\u306F${t.maximum.toString()}${s.unit??"\u8981\u7D20"}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${t.origin??"\u5024"}\u306F${t.maximum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let i=t.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",s=r(t.origin);return s?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${t.origin}\u306F${t.minimum.toString()}${s.unit}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${t.origin}\u306F${t.minimum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${i.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${n[i.format]??t.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${t.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${t.keys.length>1?"\u7FA4":""}: ${I(t.keys,"\u3001")}`;case"invalid_key":return`${t.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${t.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function Zg(){return{localeError:v$()}}var y$=()=>{let e={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function r(t){return e[t]??null}let n={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",json_string:"JSON \u10D5\u10D4\u10DA\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},o={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10D5\u10D4\u10DA\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${t.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${a}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${a}`}case"invalid_value":return t.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${N(t.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${I(t.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${t.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${s.verb} ${i}${t.maximum.toString()} ${s.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${t.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${t.origin} ${s.verb} ${i}${t.minimum.toString()} ${s.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${t.origin} \u10D8\u10E7\u10DD\u10E1 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.prefix}"-\u10D8\u10D7`:i.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.suffix}"-\u10D8\u10D7`:i.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${i.includes}"-\u10E1`:i.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${i.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${n[i.format]??t.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${t.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${t.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${I(t.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${t.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${t.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function Bg(){return{localeError:y$()}}var b$=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function r(t){return e[t]??null}let n={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},o={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${t.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${a}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${a}`}case"invalid_value":return t.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${N(t.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${t.maximum.toString()} ${s.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin} ${i} ${t.minimum.toString()} ${s.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin} ${i} ${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${i.prefix}"`:i.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${i.suffix}"`:i.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${i.includes}"`:i.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${i.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${n[i.format]??t.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${t.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${I(t.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${t.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${t.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function Ii(){return{localeError:b$()}}function Wg(){return Ii()}var w$=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function r(t){return e[t]??null}let n={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${t.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${a}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${i}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${a}\uC785\uB2C8\uB2E4`}case"invalid_value":return t.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${N(t.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${I(t.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let i=t.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",s=i==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",a=r(t.origin),c=a?.unit??"\uC694\uC18C";return a?`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${t.maximum.toString()}${c} ${i}${s}`:`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${t.maximum.toString()} ${i}${s}`}case"too_small":{let i=t.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",s=i==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",a=r(t.origin),c=a?.unit??"\uC694\uC18C";return a?`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${t.minimum.toString()}${c} ${i}${s}`:`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${t.minimum.toString()} ${i}${s}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:i.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${i.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${n[i.format]??t.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${t.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${I(t.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${t.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${t.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function Vg(){return{localeError:w$()}}var Yr=e=>e.charAt(0).toUpperCase()+e.slice(1);function qg(e){let r=Math.abs(e),n=r%10,o=r%100;return o>=11&&o<=19||n===0?"many":n===1?"one":"few"}var x$=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function r(t,i,s,a){let c=e[t]??null;return c===null?c:{unit:c.unit[i],verb:c.verb[a][s?"inclusive":"notInclusive"]}}let n={regex:"\u012Fvestis",email:"el. pa\u0161to 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\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},o={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Gautas tipas ${a}, o tik\u0117tasi - instanceof ${t.expected}`:`Gautas tipas ${a}, o tik\u0117tasi - ${i}`}case"invalid_value":return t.values.length===1?`Privalo b\u016Bti ${N(t.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${I(t.values,"|")} pasirinkim\u0173`;case"too_big":{let i=o[t.origin]??t.origin,s=r(t.origin,qg(Number(t.maximum)),t.inclusive??!1,"smaller");if(s?.verb)return`${Yr(i??t.origin??"reik\u0161m\u0117")} ${s.verb} ${t.maximum.toString()} ${s.unit??"element\u0173"}`;let a=t.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${Yr(i??t.origin??"reik\u0161m\u0117")} turi b\u016Bti ${a} ${t.maximum.toString()} ${s?.unit}`}case"too_small":{let i=o[t.origin]??t.origin,s=r(t.origin,qg(Number(t.minimum)),t.inclusive??!1,"bigger");if(s?.verb)return`${Yr(i??t.origin??"reik\u0161m\u0117")} ${s.verb} ${t.minimum.toString()} ${s.unit??"element\u0173"}`;let a=t.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${Yr(i??t.origin??"reik\u0161m\u0117")} turi b\u016Bti ${a} ${t.minimum.toString()} ${s?.unit}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${i.prefix}"`:i.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${i.suffix}"`:i.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${i.includes}"`:i.format==="regex"?`Eilut\u0117 privalo atitikti ${i.pattern}`:`Neteisingas ${n[i.format]??t.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${t.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${t.keys.length>1?"i":"as"} rakt${t.keys.length>1?"ai":"as"}: ${I(t.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let i=o[t.origin]??t.origin;return`${Yr(i??t.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function Gg(){return{localeError:x$()}}var _$=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function r(t){return e[t]??null}let n={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},o={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${t.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${a}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${a}`}case"invalid_value":return t.values.length===1?`Invalid input: expected ${N(t.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${i}${t.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin} \u0434\u0430 \u0438\u043C\u0430 ${i}${t.minimum.toString()} ${s.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${i.pattern}`:`Invalid ${n[i.format]??t.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${I(t.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${t.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${t.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function Jg(){return{localeError:_$()}}var S$=()=>{let 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}let n={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"},o={nan:"NaN",number:"nombor"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Input tidak sah: dijangka instanceof ${t.expected}, diterima ${a}`:`Input tidak sah: dijangka ${i}, diterima ${a}`}case"invalid_value":return t.values.length===1?`Input tidak sah: dijangka ${N(t.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Terlalu besar: dijangka ${t.origin??"nilai"} ${s.verb} ${i}${t.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: dijangka ${t.origin??"nilai"} adalah ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Terlalu kecil: dijangka ${t.origin} ${s.verb} ${i}${t.minimum.toString()} ${s.unit}`:`Terlalu kecil: dijangka ${t.origin} adalah ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`String tidak sah: mesti bermula dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak sah: mesti mengandungi "${i.includes}"`:i.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${i.pattern}`:`${n[i.format]??t.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${I(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 Hg(){return{localeError:S$()}}var $$=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function r(t){return e[t]??null}let n={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"},o={nan:"NaN",number:"getal"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Ongeldige invoer: verwacht instanceof ${t.expected}, ontving ${a}`:`Ongeldige invoer: verwacht ${i}, ontving ${a}`}case"invalid_value":return t.values.length===1?`Ongeldige invoer: verwacht ${N(t.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin),a=t.origin==="date"?"laat":t.origin==="string"?"lang":"groot";return s?`Te ${a}: verwacht dat ${t.origin??"waarde"} ${i}${t.maximum.toString()} ${s.unit??"elementen"} ${s.verb}`:`Te ${a}: verwacht dat ${t.origin??"waarde"} ${i}${t.maximum.toString()} is`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin),a=t.origin==="date"?"vroeg":t.origin==="string"?"kort":"klein";return s?`Te ${a}: verwacht dat ${t.origin} ${i}${t.minimum.toString()} ${s.unit} ${s.verb}`:`Te ${a}: verwacht dat ${t.origin} ${i}${t.minimum.toString()} is`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Ongeldige tekst: moet met "${i.prefix}" beginnen`:i.format==="ends_with"?`Ongeldige tekst: moet op "${i.suffix}" eindigen`:i.format==="includes"?`Ongeldige tekst: moet "${i.includes}" bevatten`:i.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${i.pattern}`:`Ongeldig: ${n[i.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":""}: ${I(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 Xg(){return{localeError:$$()}}var k$=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function r(t){return e[t]??null}let n={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\xE5de",ipv6:"IPv6-omr\xE5de",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"},o={nan:"NaN",number:"tall",array:"liste"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Ugyldig input: forventet instanceof ${t.expected}, fikk ${a}`:`Ugyldig input: forventet ${i}, fikk ${a}`}case"invalid_value":return t.values.length===1?`Ugyldig verdi: forventet ${N(t.values[0])}`:`Ugyldig valg: forventet en av ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`For stor(t): forventet ${t.origin??"value"} til \xE5 ha ${i}${t.maximum.toString()} ${s.unit??"elementer"}`:`For stor(t): forventet ${t.origin??"value"} til \xE5 ha ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`For lite(n): forventet ${t.origin} til \xE5 ha ${i}${t.minimum.toString()} ${s.unit}`:`For lite(n): forventet ${t.origin} til \xE5 ha ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${n[i.format]??t.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${I(t.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${t.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${t.origin}`;default:return"Ugyldig input"}}};function Kg(){return{localeError:k$()}}var I$=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function r(t){return e[t]??null}let n={regex:"giren",email:"epostag\xE2h",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\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},o={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`F\xE2sit giren: umulan instanceof ${t.expected}, al\u0131nan ${a}`:`F\xE2sit giren: umulan ${i}, al\u0131nan ${a}`}case"invalid_value":return t.values.length===1?`F\xE2sit giren: umulan ${N(t.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Fazla b\xFCy\xFCk: ${t.origin??"value"}, ${i}${t.maximum.toString()} ${s.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${t.origin??"value"}, ${i}${t.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Fazla k\xFC\xE7\xFCk: ${t.origin}, ${i}${t.minimum.toString()} ${s.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${t.origin}, ${i}${t.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let i=t;return i.format==="starts_with"?`F\xE2sit metin: "${i.prefix}" ile ba\u015Flamal\u0131.`:i.format==="ends_with"?`F\xE2sit metin: "${i.suffix}" ile bitmeli.`:i.format==="includes"?`F\xE2sit metin: "${i.includes}" ihtiv\xE2 etmeli.`:i.format==="regex"?`F\xE2sit metin: ${i.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${n[i.format]??t.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${t.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${t.keys.length>1?"s":""}: ${I(t.keys,", ")}`;case"invalid_key":return`${t.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${t.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function Yg(){return{localeError:I$()}}var E$=()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function r(t){return e[t]??null}let n={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${t.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${a} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${i} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${a} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return t.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${N(t.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${I(t.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${t.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${t.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${t.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${t.maximum.toString()} \u0648\u064A`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${t.origin} \u0628\u0627\u06CC\u062F ${i}${t.minimum.toString()} ${s.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${t.origin} \u0628\u0627\u06CC\u062F ${i}${t.minimum.toString()} \u0648\u064A`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:i.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:i.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${i.includes}" \u0648\u0644\u0631\u064A`:i.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${i.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${n[i.format]??t.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${t.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${t.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${I(t.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${t.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${t.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function Qg(){return{localeError:E$()}}var C$=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function r(t){return e[t]??null}let n={regex:"wyra\u017Cenie",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\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},o={nan:"NaN",number:"liczba",array:"tablica"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${t.expected}, otrzymano ${a}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${i}, otrzymano ${a}`}case"invalid_value":return t.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${N(t.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${t.maximum.toString()} ${s.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${t.minimum.toString()} ${s.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${i.prefix}"`:i.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${i.suffix}"`:i.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${i.includes}"`:i.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${i.pattern}`:`Nieprawid\u0142ow(y/a/e) ${n[i.format]??t.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${t.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${t.keys.length>1?"s":""}: ${I(t.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${t.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${t.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function ev(){return{localeError:C$()}}var O$=()=>{let 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}let n={regex:"padr\xE3o",email:"endere\xE7o 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\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o 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\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",number:"n\xFAmero",null:"nulo"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Tipo inv\xE1lido: esperado instanceof ${t.expected}, recebido ${a}`:`Tipo inv\xE1lido: esperado ${i}, recebido ${a}`}case"invalid_value":return t.values.length===1?`Entrada inv\xE1lida: esperado ${N(t.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Muito grande: esperado que ${t.origin??"valor"} tivesse ${i}${t.maximum.toString()} ${s.unit??"elementos"}`:`Muito grande: esperado que ${t.origin??"valor"} fosse ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Muito pequeno: esperado que ${t.origin} tivesse ${i}${t.minimum.toString()} ${s.unit}`:`Muito pequeno: esperado que ${t.origin} fosse ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${i.prefix}"`:i.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${i.suffix}"`:i.format==="includes"?`Texto inv\xE1lido: deve incluir "${i.includes}"`:i.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${i.pattern}`:`${n[i.format]??t.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${t.divisor}`;case"unrecognized_keys":return`Chave${t.keys.length>1?"s":""} desconhecida${t.keys.length>1?"s":""}: ${I(t.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${t.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${t.origin}`;default:return"Campo inv\xE1lido"}}};function tv(){return{localeError:O$()}}var N$=()=>{let e={string:{unit:"caractere",verb:"s\u0103 aib\u0103"},file:{unit:"octe\u021Bi",verb:"s\u0103 aib\u0103"},array:{unit:"elemente",verb:"s\u0103 aib\u0103"},set:{unit:"elemente",verb:"s\u0103 aib\u0103"},map:{unit:"intr\u0103ri",verb:"s\u0103 aib\u0103"}};function r(t){return e[t]??null}let n={regex:"intrare",email:"adres\u0103 de 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:"dat\u0103 \u0219i or\u0103 ISO",date:"dat\u0103 ISO",time:"or\u0103 ISO",duration:"durat\u0103 ISO",ipv4:"adres\u0103 IPv4",ipv6:"adres\u0103 IPv6",mac:"adres\u0103 MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"\u0219ir codat base64",base64url:"\u0219ir codat base64url",json_string:"\u0219ir JSON",e164:"num\u0103r E.164",jwt:"JWT",template_literal:"intrare"},o={nan:"NaN",string:"\u0219ir",number:"num\u0103r",boolean:"boolean",function:"func\u021Bie",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"num\u0103r mare",void:"void",never:"never",map:"hart\u0103",set:"set"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return`Intrare invalid\u0103: a\u0219teptat ${i}, primit ${a}`}case"invalid_value":return t.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${N(t.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Prea mare: a\u0219teptat ca ${t.origin??"valoarea"} ${s.verb} ${i}${t.maximum.toString()} ${s.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${t.origin??"valoarea"} s\u0103 fie ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Prea mic: a\u0219teptat ca ${t.origin} ${s.verb} ${i}${t.minimum.toString()} ${s.unit}`:`Prea mic: a\u0219teptat ca ${t.origin} s\u0103 fie ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${i.prefix}"`:i.format==="ends_with"?`\u0218ir invalid: trebuie s\u0103 se termine cu "${i.suffix}"`:i.format==="includes"?`\u0218ir invalid: trebuie s\u0103 includ\u0103 "${i.includes}"`:i.format==="regex"?`\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${i.pattern}`:`Format invalid: ${n[i.format]??t.format}`}case"not_multiple_of":return`Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${t.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${I(t.keys,", ")}`;case"invalid_key":return`Cheie invalid\u0103 \xEEn ${t.origin}`;case"invalid_union":return"Intrare invalid\u0103";case"invalid_element":return`Valoare invalid\u0103 \xEEn ${t.origin}`;default:return"Intrare invalid\u0103"}}};function rv(){return{localeError:N$()}}function nv(e,r,n,o){let t=Math.abs(e),i=t%10,s=t%100;return s>=11&&s<=19?o:i===1?r:i>=2&&i<=4?n:o}var z$=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function r(t){return e[t]??null}let n={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${t.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${a}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${a}`}case"invalid_value":return t.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${N(t.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);if(s){let a=Number(t.maximum),c=nv(a,s.unit.one,s.unit.few,s.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${t.maximum.toString()} ${c}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);if(s){let a=Number(t.minimum),c=nv(a,s.unit.one,s.unit.few,s.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${t.minimum.toString()} ${c}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin} \u0431\u0443\u0434\u0435\u0442 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${n[i.format]??t.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${t.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${t.keys.length>1?"\u0438":""}: ${I(t.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${t.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${t.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function iv(){return{localeError:z$()}}var D$=()=>{let 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}let n={regex:"vnos",email:"e-po\u0161tni 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 \u010Das",date:"ISO datum",time:"ISO \u010Das",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 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},o={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${t.expected}, prejeto ${a}`:`Neveljaven vnos: pri\u010Dakovano ${i}, prejeto ${a}`}case"invalid_value":return t.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${N(t.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Preveliko: pri\u010Dakovano, da bo ${t.origin??"vrednost"} imelo ${i}${t.maximum.toString()} ${s.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${t.origin??"vrednost"} ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Premajhno: pri\u010Dakovano, da bo ${t.origin} imelo ${i}${t.minimum.toString()} ${s.unit}`:`Premajhno: pri\u010Dakovano, da bo ${t.origin} ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${i.prefix}"`:i.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${i.suffix}"`:i.format==="includes"?`Neveljaven niz: mora vsebovati "${i.includes}"`:i.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${i.pattern}`:`Neveljaven ${n[i.format]??t.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${t.divisor}`;case"unrecognized_keys":return`Neprepoznan${t.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${I(t.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${t.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${t.origin}`;default:return"Neveljaven vnos"}}};function ov(){return{localeError:D$()}}var T$=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function r(t){return e[t]??null}let n={regex:"regulj\xE4rt 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\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},o={nan:"NaN",number:"antal",array:"lista"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${t.expected}, fick ${a}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${i}, fick ${a}`}case"invalid_value":return t.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${N(t.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`F\xF6r stor(t): f\xF6rv\xE4ntade ${t.origin??"v\xE4rdet"} att ha ${i}${t.maximum.toString()} ${s.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${t.origin??"v\xE4rdet"} att ha ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`F\xF6r lite(t): f\xF6rv\xE4ntade ${t.origin??"v\xE4rdet"} att ha ${i}${t.minimum.toString()} ${s.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${t.origin??"v\xE4rdet"} att ha ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${i.prefix}"`:i.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${i.suffix}"`:i.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${i.includes}"`:i.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${i.pattern}"`:`Ogiltig(t) ${n[i.format]??t.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${I(t.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${t.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${t.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function sv(){return{localeError:T$()}}var R$=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function r(t){return e[t]??null}let n={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",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 \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${t.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${a}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${a}`}case"invalid_value":return t.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${N(t.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${I(t.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${t.maximum.toString()} ${s.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${t.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin} ${i}${t.minimum.toString()} ${s.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin} ${i}${t.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${i.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${n[i.format]??t.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${t.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${t.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${I(t.keys,", ")}`;case"invalid_key":return`${t.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${t.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function av(){return{localeError:R$()}}var P$=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function r(t){return e[t]??null}let n={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},o={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${t.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${a}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${i} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${a}`}case"invalid_value":return t.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${N(t.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",s=r(t.origin);return s?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${t.maximum.toString()} ${s.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",s=r(t.origin);return s?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${t.minimum.toString()} ${s.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${i.prefix}"`:i.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${i.suffix}"`:i.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${i.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:i.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${i.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${n[i.format]??t.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${t.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${I(t.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${t.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${t.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function lv(){return{localeError:P$()}}var A$=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function r(t){return e[t]??null}let n={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\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${t.expected}, al\u0131nan ${a}`:`Ge\xE7ersiz de\u011Fer: beklenen ${i}, al\u0131nan ${a}`}case"invalid_value":return t.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${N(t.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\xC7ok b\xFCy\xFCk: beklenen ${t.origin??"de\u011Fer"} ${i}${t.maximum.toString()} ${s.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${t.origin??"de\u011Fer"} ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\xC7ok k\xFC\xE7\xFCk: beklenen ${t.origin} ${i}${t.minimum.toString()} ${s.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${t.origin} ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Ge\xE7ersiz metin: "${i.prefix}" ile ba\u015Flamal\u0131`:i.format==="ends_with"?`Ge\xE7ersiz metin: "${i.suffix}" ile bitmeli`:i.format==="includes"?`Ge\xE7ersiz metin: "${i.includes}" i\xE7ermeli`:i.format==="regex"?`Ge\xE7ersiz metin: ${i.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${n[i.format]??t.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${t.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${t.keys.length>1?"lar":""}: ${I(t.keys,", ")}`;case"invalid_key":return`${t.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${t.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function cv(){return{localeError:A$()}}var M$=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function r(t){return e[t]??null}let n={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${t.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${a}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${i}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${a}`}case"invalid_value":return t.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${N(t.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${s.verb} ${i}${t.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin} ${s.verb} ${i}${t.minimum.toString()} ${s.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin} \u0431\u0443\u0434\u0435 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${n[i.format]??t.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${t.keys.length>1?"\u0456":""}: ${I(t.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${t.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${t.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function Ei(){return{localeError:M$()}}function uv(){return Ei()}var U$=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function r(t){return e[t]??null}let n={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},o={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${t.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${a} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${i} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${a} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return t.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${N(t.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${I(t.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${t.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${i}${t.maximum.toString()} ${s.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${t.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${i}${t.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${t.origin} \u06A9\u06D2 ${i}${t.minimum.toString()} ${s.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${t.origin} \u06A9\u0627 ${i}${t.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${i.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${n[i.format]??t.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${t.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${t.keys.length>1?"\u0632":""}: ${I(t.keys,"\u060C ")}`;case"invalid_key":return`${t.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${t.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function dv(){return{localeError:U$()}}var j$=()=>{let e={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"},map:{unit:"yozuv",verb:"bo\u2018lishi kerak"}};function r(t){return e[t]??null}let n={regex:"kirish",email:"elektron pochta manzili",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 sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},o={nan:"NaN",number:"raqam",array:"massiv"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${t.expected}, qabul qilingan ${a}`:`Noto\u2018g\u2018ri kirish: kutilgan ${i}, qabul qilingan ${a}`}case"invalid_value":return t.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${N(t.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Juda katta: kutilgan ${t.origin??"qiymat"} ${i}${t.maximum.toString()} ${s.unit} ${s.verb}`:`Juda katta: kutilgan ${t.origin??"qiymat"} ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Juda kichik: kutilgan ${t.origin} ${i}${t.minimum.toString()} ${s.unit} ${s.verb}`:`Juda kichik: kutilgan ${t.origin} ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${i.prefix}" bilan boshlanishi kerak`:i.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${i.suffix}" bilan tugashi kerak`:i.format==="includes"?`Noto\u2018g\u2018ri satr: "${i.includes}" ni o\u2018z ichiga olishi kerak`:i.format==="regex"?`Noto\u2018g\u2018ri satr: ${i.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${n[i.format]??t.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${t.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${t.keys.length>1?"lar":""}: ${I(t.keys,", ")}`;case"invalid_key":return`${t.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${t.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function fv(){return{localeError:j$()}}var L$=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function r(t){return e[t]??null}let n={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 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\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},o={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${t.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${a}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${i}, nh\u1EADn \u0111\u01B0\u1EE3c ${a}`}case"invalid_value":return t.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${N(t.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${t.origin??"gi\xE1 tr\u1ECB"} ${s.verb} ${i}${t.maximum.toString()} ${s.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${t.origin??"gi\xE1 tr\u1ECB"} ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${t.origin} ${s.verb} ${i}${t.minimum.toString()} ${s.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${t.origin} ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${i.prefix}"`:i.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${i.suffix}"`:i.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${i.includes}"`:i.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${i.pattern}`:`${n[i.format]??t.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${t.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${I(t.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${t.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${t.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function pv(){return{localeError:L$()}}var F$=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function r(t){return e[t]??null}let n={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},o={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${t.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${a}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${i}\uFF0C\u5B9E\u9645\u63A5\u6536 ${a}`}case"invalid_value":return t.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${N(t.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${t.origin??"\u503C"} ${i}${t.maximum.toString()} ${s.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${t.origin??"\u503C"} ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${t.origin} ${i}${t.minimum.toString()} ${s.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${t.origin} ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.prefix}" \u5F00\u5934`:i.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.suffix}" \u7ED3\u5C3E`:i.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${i.pattern}`:`\u65E0\u6548${n[i.format]??t.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${t.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${I(t.keys,", ")}`;case"invalid_key":return`${t.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${t.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function hv(){return{localeError:F$()}}var Z$=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function r(t){return e[t]??null}let n={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",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 \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${t.expected}\uFF0C\u4F46\u6536\u5230 ${a}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${i}\uFF0C\u4F46\u6536\u5230 ${a}`}case"invalid_value":return t.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${N(t.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${t.origin??"\u503C"} \u61C9\u70BA ${i}${t.maximum.toString()} ${s.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${t.origin??"\u503C"} \u61C9\u70BA ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${t.origin} \u61C9\u70BA ${i}${t.minimum.toString()} ${s.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${t.origin} \u61C9\u70BA ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.prefix}" \u958B\u982D`:i.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.suffix}" \u7D50\u5C3E`:i.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${i.pattern}`:`\u7121\u6548\u7684 ${n[i.format]??t.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${t.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${t.keys.length>1?"\u5011":""}\uFF1A${I(t.keys,"\u3001")}`;case"invalid_key":return`${t.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${t.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function mv(){return{localeError:Z$()}}var B$=()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function r(t){return e[t]??null}let n={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",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:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},o={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${t.expected}, \xE0m\u1ECD\u0300 a r\xED ${a}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${i}, \xE0m\u1ECD\u0300 a r\xED ${a}`}case"invalid_value":return t.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${N(t.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${t.origin??"iye"} ${s.verb} ${i}${t.maximum} ${s.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${t.maximum}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${t.origin} ${s.verb} ${i}${t.minimum} ${s.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${t.minimum}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${i.prefix}"`:i.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${i.suffix}"`:i.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${i.includes}"`:i.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${i.pattern}`:`A\u1E63\xEC\u1E63e: ${n[i.format]??t.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${t.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${I(t.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${t.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${t.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function gv(){return{localeError:B$()}}var vv,eu=Symbol("ZodOutput"),tu=Symbol("ZodInput"),Ci=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(r,...n){let o=n[0];return this._map.set(r,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,r),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(r){let n=this._map.get(r);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(r),this}get(r){let n=r._zod.parent;if(n){let o={...this.get(n)??{}};delete o.id;let t={...o,...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 Oi(){return new Ci}(vv=globalThis).__zod_globalRegistry??(vv.__zod_globalRegistry=Oi());var me=globalThis.__zod_globalRegistry;function ru(e,r){return new e({type:"string",...R(r)})}function nu(e,r){return new e({type:"string",coerce:!0,...R(r)})}function Ni(e,r){return new e({type:"string",format:"email",check:"string_format",abort:!1,...R(r)})}function en(e,r){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...R(r)})}function zi(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...R(r)})}function Di(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...R(r)})}function Ti(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...R(r)})}function Ri(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...R(r)})}function tn(e,r){return new e({type:"string",format:"url",check:"string_format",abort:!1,...R(r)})}function Pi(e,r){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...R(r)})}function Ai(e,r){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...R(r)})}function Mi(e,r){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...R(r)})}function Ui(e,r){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...R(r)})}function ji(e,r){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...R(r)})}function Li(e,r){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...R(r)})}function Fi(e,r){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...R(r)})}function Zi(e,r){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...R(r)})}function Bi(e,r){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...R(r)})}function iu(e,r){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...R(r)})}function Wi(e,r){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...R(r)})}function Vi(e,r){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...R(r)})}function qi(e,r){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...R(r)})}function Gi(e,r){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...R(r)})}function Ji(e,r){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...R(r)})}function Hi(e,r){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...R(r)})}var ou={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function su(e,r){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...R(r)})}function au(e,r){return new e({type:"string",format:"date",check:"string_format",...R(r)})}function lu(e,r){return new e({type:"string",format:"time",check:"string_format",precision:null,...R(r)})}function cu(e,r){return new e({type:"string",format:"duration",check:"string_format",...R(r)})}function uu(e,r){return new e({type:"number",checks:[],...R(r)})}function du(e,r){return new e({type:"number",coerce:!0,checks:[],...R(r)})}function fu(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...R(r)})}function pu(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...R(r)})}function hu(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...R(r)})}function mu(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...R(r)})}function gu(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...R(r)})}function vu(e,r){return new e({type:"boolean",...R(r)})}function yu(e,r){return new e({type:"boolean",coerce:!0,...R(r)})}function bu(e,r){return new e({type:"bigint",...R(r)})}function wu(e,r){return new e({type:"bigint",coerce:!0,...R(r)})}function xu(e,r){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...R(r)})}function _u(e,r){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...R(r)})}function Su(e,r){return new e({type:"symbol",...R(r)})}function $u(e,r){return new e({type:"undefined",...R(r)})}function ku(e,r){return new e({type:"null",...R(r)})}function Iu(e){return new e({type:"any"})}function Eu(e){return new e({type:"unknown"})}function Cu(e,r){return new e({type:"never",...R(r)})}function Ou(e,r){return new e({type:"void",...R(r)})}function Nu(e,r){return new e({type:"date",...R(r)})}function zu(e,r){return new e({type:"date",coerce:!0,...R(r)})}function Du(e,r){return new e({type:"nan",...R(r)})}function Je(e,r){return new hi({check:"less_than",...R(r),value:e,inclusive:!1})}function Te(e,r){return new hi({check:"less_than",...R(r),value:e,inclusive:!0})}function He(e,r){return new mi({check:"greater_than",...R(r),value:e,inclusive:!1})}function $e(e,r){return new mi({check:"greater_than",...R(r),value:e,inclusive:!0})}function Xi(e){return He(0,e)}function Ki(e){return Je(0,e)}function Yi(e){return Te(0,e)}function Qi(e){return $e(0,e)}function mt(e,r){return new kl({check:"multiple_of",...R(r),value:e})}function gt(e,r){return new Cl({check:"max_size",...R(r),maximum:e})}function Xe(e,r){return new Ol({check:"min_size",...R(r),minimum:e})}function Nt(e,r){return new Nl({check:"size_equals",...R(r),size:e})}function zt(e,r){return new zl({check:"max_length",...R(r),maximum:e})}function rt(e,r){return new Dl({check:"min_length",...R(r),minimum:e})}function Dt(e,r){return new Tl({check:"length_equals",...R(r),length:e})}function Qt(e,r){return new Rl({check:"string_format",format:"regex",...R(r),pattern:e})}function er(e){return new Pl({check:"string_format",format:"lowercase",...R(e)})}function tr(e){return new Al({check:"string_format",format:"uppercase",...R(e)})}function rr(e,r){return new Ml({check:"string_format",format:"includes",...R(r),includes:e})}function nr(e,r){return new Ul({check:"string_format",format:"starts_with",...R(r),prefix:e})}function ir(e,r){return new jl({check:"string_format",format:"ends_with",...R(r),suffix:e})}function eo(e,r,n){return new Ll({check:"property",property:e,schema:r,...R(n)})}function or(e,r){return new Fl({check:"mime_type",mime:e,...R(r)})}function Be(e){return new Zl({check:"overwrite",tx:e})}function sr(e){return Be(r=>r.normalize(e))}function ar(){return Be(e=>e.trim())}function lr(){return Be(e=>e.toLowerCase())}function cr(){return Be(e=>e.toUpperCase())}function ur(){return Be(e=>Ua(e))}function Tu(e,r,n){return new e({type:"array",element:r,...R(n)})}function V$(e,r,n){return new e({type:"union",options:r,...R(n)})}function q$(e,r,n){return new e({type:"union",options:r,inclusive:!1,...R(n)})}function G$(e,r,n,o){return new e({type:"union",options:n,discriminator:r,...R(o)})}function J$(e,r,n){return new e({type:"intersection",left:r,right:n})}function H$(e,r,n,o){let t=n instanceof L,i=t?o:n,s=t?n:null;return new e({type:"tuple",items:r,rest:s,...R(i)})}function X$(e,r,n,o){return new e({type:"record",keyType:r,valueType:n,...R(o)})}function K$(e,r,n,o){return new e({type:"map",keyType:r,valueType:n,...R(o)})}function Y$(e,r,n){return new e({type:"set",valueType:r,...R(n)})}function Q$(e,r,n){let o=Array.isArray(r)?Object.fromEntries(r.map(t=>[t,t])):r;return new e({type:"enum",entries:o,...R(n)})}function ek(e,r,n){return new e({type:"enum",entries:r,...R(n)})}function tk(e,r,n){return new e({type:"literal",values:Array.isArray(r)?r:[r],...R(n)})}function Ru(e,r){return new e({type:"file",...R(r)})}function rk(e,r){return new e({type:"transform",transform:r})}function nk(e,r){return new e({type:"optional",innerType:r})}function ik(e,r){return new e({type:"nullable",innerType:r})}function ok(e,r,n){return new e({type:"default",innerType:r,get defaultValue(){return typeof n=="function"?n():La(n)}})}function sk(e,r,n){return new e({type:"nonoptional",innerType:r,...R(n)})}function ak(e,r){return new e({type:"success",innerType:r})}function lk(e,r,n){return new e({type:"catch",innerType:r,catchValue:typeof n=="function"?n:()=>n})}function ck(e,r,n){return new e({type:"pipe",in:r,out:n})}function uk(e,r){return new e({type:"readonly",innerType:r})}function dk(e,r,n){return new e({type:"template_literal",parts:r,...R(n)})}function fk(e,r){return new e({type:"lazy",getter:r})}function pk(e,r){return new e({type:"promise",innerType:r})}function Pu(e,r,n){let o=R(n);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:r,...o})}function Au(e,r,n){return new e({type:"custom",check:"custom",fn:r,...R(n)})}function Mu(e,r){let n=yv(o=>(o.addIssue=t=>{if(typeof t=="string")o.issues.push(qt(t,o.value,n._zod.def));else{let i=t;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=o.value),i.inst??(i.inst=n),i.continue??(i.continue=!n._zod.def.abort),o.issues.push(qt(i))}},e(o.value,o)),r);return n}function yv(e,r){let n=new ne({check:"custom",...R(r)});return n._zod.check=e,n}function Uu(e){let r=new ne({check:"describe"});return r._zod.onattach=[n=>{let o=me.get(n)??{};me.add(n,{...o,description:e})}],r._zod.check=()=>{},r}function ju(e){let r=new ne({check:"meta"});return r._zod.onattach=[n=>{let o=me.get(n)??{};me.add(n,{...o,...e})}],r._zod.check=()=>{},r}function Lu(e,r){let n=R(r),o=n.truthy??["true","1","yes","on","y","enabled"],t=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(o=o.map(d=>typeof d=="string"?d.toLowerCase():d),t=t.map(d=>typeof d=="string"?d.toLowerCase():d));let i=new Set(o),s=new Set(t),a=e.Codec??Kr,c=e.Boolean??Hr,u=e.String??Ot,l=new u({type:"string",error:n.error}),p=new c({type:"boolean",error:n.error}),f=new a({type:"pipe",in:l,out:p,transform:((d,m)=>{let h=d;return n.case!=="sensitive"&&(h=h.toLowerCase()),i.has(h)?!0:s.has(h)?!1:(m.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...s],input:m.value,inst:f,continue:!1}),{})}),reverseTransform:((d,m)=>d===!0?o[0]||"true":t[0]||"false"),error:n.error});return f}function dr(e,r,n,o={}){let t=R(o),i={...R(o),check:"string_format",type:"string",format:r,fn:typeof n=="function"?n:a=>n.test(a),...t};return n instanceof RegExp&&(i.pattern=n),new e(i)}function vt(e){let r=e?.target??"draft-2020-12";return r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??me,target:r,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function X(e,r,n={path:[],schemaPath:[]}){var o;let t=e._zod.def,i=r.seen.get(e);if(i)return i.count++,n.schemaPath.includes(e)&&(i.cycle=n.path),i.schema;let s={schema:{},count:1,cycle:void 0,path:n.path};r.seen.set(e,s);let a=e._zod.toJSONSchema?.();if(a)s.schema=a;else{let l={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(r,s.schema,l);else{let f=s.schema,d=r.processors[t.type];if(!d)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${t.type}`);d(e,r,f,l)}let p=e._zod.parent;p&&(s.ref||(s.ref=p),X(p,r,l),r.seen.get(p).isParent=!0)}let c=r.metadataRegistry.get(e);return c&&Object.assign(s.schema,c),r.io==="input"&&ke(e)&&(delete s.schema.examples,delete s.schema.default),r.io==="input"&&"_prefault"in s.schema&&((o=s.schema).default??(o.default=s.schema._prefault)),delete s.schema._prefault,r.seen.get(e).schema}function yt(e,r){let n=e.seen.get(r);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=new Map;for(let s of e.seen.entries()){let a=e.metadataRegistry.get(s[0])?.id;if(a){let c=o.get(a);if(c&&c!==s[0])throw new Error(`Duplicate schema id "${a}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(a,s[0])}}let t=s=>{let a=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let p=e.external.registry.get(s[0])?.id,f=e.external.uri??(m=>m);if(p)return{ref:f(p)};let d=s[1].defId??s[1].schema.id??`schema${e.counter++}`;return s[1].defId=d,{defId:d,ref:`${f("__shared")}#/${a}/${d}`}}if(s[1]===n)return{ref:"#"};let u=`#/${a}/`,l=s[1].schema.id??`__schema${e.counter++}`;return{defId:l,ref:u+l}},i=s=>{if(s[1].schema.$ref)return;let a=s[1],{ref:c,defId:u}=t(s);a.def={...a.schema},u&&(a.defId=u);let l=a.schema;for(let p in l)delete l[p];l.$ref=c};if(e.cycles==="throw")for(let s of e.seen.entries()){let a=s[1];if(a.cycle)throw new Error(`Cycle detected: #/${a.cycle?.join("/")}/<root>
|
|
204
204
|
|
|
205
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let s of e.seen.entries()){let a=s[1];if(r===s[0]){i(s);continue}if(e.external){let u=e.external.registry.get(s[0])?.id;if(r!==s[0]&&u){i(s);continue}}if(e.metadataRegistry.get(s[0])?.id){i(s);continue}if(a.cycle){i(s);continue}if(a.count>1&&e.reused==="ref"){i(s);continue}}}function bt(e,r){let n=e.seen.get(r);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=a=>{let c=e.seen.get(a);if(c.ref===null)return;let u=c.def??c.schema,l={...u},p=c.ref;if(c.ref=null,p){o(p);let d=e.seen.get(p),m=d.schema;if(m.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(m)):Object.assign(u,m),Object.assign(u,l),a._zod.parent===p)for(let g in u)g==="$ref"||g==="allOf"||g in l||delete u[g];if(m.$ref&&d.def)for(let g in u)g==="$ref"||g==="allOf"||g in d.def&&JSON.stringify(u[g])===JSON.stringify(d.def[g])&&delete u[g]}let f=a._zod.parent;if(f&&f!==p){o(f);let d=e.seen.get(f);if(d?.schema.$ref&&(u.$ref=d.schema.$ref,d.def))for(let m in u)m==="$ref"||m==="allOf"||m in d.def&&JSON.stringify(u[m])===JSON.stringify(d.def[m])&&delete u[m]}e.override({zodSchema:a,jsonSchema:u,path:c.path??[]})};for(let a of[...e.seen.entries()].reverse())o(a[0]);let t={};if(e.target==="draft-2020-12"?t.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?t.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?t.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let a=e.external.registry.get(r)?.id;if(!a)throw new Error("Schema is missing an `id` property");t.$id=e.external.uri(a)}Object.assign(t,n.def??n.schema);let i=e.metadataRegistry.get(r)?.id;i!==void 0&&t.id===i&&delete t.id;let s=e.external?.defs??{};for(let a of e.seen.entries()){let c=a[1];c.def&&c.defId&&(c.def.id===c.defId&&delete c.def.id,s[c.defId]=c.def)}e.external||Object.keys(s).length>0&&(e.target==="draft-2020-12"?t.$defs=s:t.definitions=s);try{let a=JSON.parse(JSON.stringify(t));return Object.defineProperty(a,"~standard",{value:{...r["~standard"],jsonSchema:{input:fr(r,"input",e.processors),output:fr(r,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function ke(e,r){let n=r??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return ke(o.element,n);if(o.type==="set")return ke(o.valueType,n);if(o.type==="lazy")return ke(o.getter(),n);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return ke(o.innerType,n);if(o.type==="intersection")return ke(o.left,n)||ke(o.right,n);if(o.type==="record"||o.type==="map")return ke(o.keyType,n)||ke(o.valueType,n);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:ke(o.in,n)||ke(o.out,n);if(o.type==="object"){for(let t in o.shape)if(ke(o.shape[t],n))return!0;return!1}if(o.type==="union"){for(let t of o.options)if(ke(t,n))return!0;return!1}if(o.type==="tuple"){for(let t of o.items)if(ke(t,n))return!0;return!!(o.rest&&ke(o.rest,n))}return!1}var Fu=(e,r={})=>n=>{let o=vt({...n,processors:r});return X(e,o),yt(o,e),bt(o,e)},fr=(e,r,n={})=>o=>{let{libraryOptions:t,target:i}=o??{},s=vt({...t??{},target:i,io:r,processors:n});return X(e,s),yt(s,e),bt(s,e)};var hk={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Zu=(e,r,n,o)=>{let t=n;t.type="string";let{minimum:i,maximum:s,format:a,patterns:c,contentEncoding:u}=e._zod.bag;if(typeof i=="number"&&(t.minLength=i),typeof s=="number"&&(t.maxLength=s),a&&(t.format=hk[a]??a,t.format===""&&delete t.format,a==="time"&&delete t.format),u&&(t.contentEncoding=u),c&&c.size>0){let l=[...c];l.length===1?t.pattern=l[0].source:l.length>1&&(t.allOf=[...l.map(p=>({...r.target==="draft-07"||r.target==="draft-04"||r.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))])}},Bu=(e,r,n,o)=>{let t=n,{minimum:i,maximum:s,format:a,multipleOf:c,exclusiveMaximum:u,exclusiveMinimum:l}=e._zod.bag;typeof a=="string"&&a.includes("int")?t.type="integer":t.type="number";let p=typeof l=="number"&&l>=(i??Number.NEGATIVE_INFINITY),f=typeof u=="number"&&u<=(s??Number.POSITIVE_INFINITY),d=r.target==="draft-04"||r.target==="openapi-3.0";p?d?(t.minimum=l,t.exclusiveMinimum=!0):t.exclusiveMinimum=l:typeof i=="number"&&(t.minimum=i),f?d?(t.maximum=u,t.exclusiveMaximum=!0):t.exclusiveMaximum=u:typeof s=="number"&&(t.maximum=s),typeof c=="number"&&(t.multipleOf=c)},Wu=(e,r,n,o)=>{n.type="boolean"},Vu=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},qu=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},Gu=(e,r,n,o)=>{r.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},Ju=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Hu=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},Xu=(e,r,n,o)=>{n.not={}},Ku=(e,r,n,o)=>{},Yu=(e,r,n,o)=>{},Qu=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},ed=(e,r,n,o)=>{let t=e._zod.def,i=Ur(t.entries);i.every(s=>typeof s=="number")&&(n.type="number"),i.every(s=>typeof s=="string")&&(n.type="string"),n.enum=i},td=(e,r,n,o)=>{let t=e._zod.def,i=[];for(let s of t.values)if(s===void 0){if(r.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof s=="bigint"){if(r.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(s))}else i.push(s);if(i.length!==0)if(i.length===1){let s=i[0];n.type=s===null?"null":typeof s,r.target==="draft-04"||r.target==="openapi-3.0"?n.enum=[s]:n.const=s}else i.every(s=>typeof s=="number")&&(n.type="number"),i.every(s=>typeof s=="string")&&(n.type="string"),i.every(s=>typeof s=="boolean")&&(n.type="boolean"),i.every(s=>s===null)&&(n.type="null"),n.enum=i},rd=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},nd=(e,r,n,o)=>{let t=n,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");t.type="string",t.pattern=i.source},id=(e,r,n,o)=>{let t=n,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:s,maximum:a,mime:c}=e._zod.bag;s!==void 0&&(i.minLength=s),a!==void 0&&(i.maxLength=a),c?c.length===1?(i.contentMediaType=c[0],Object.assign(t,i)):(Object.assign(t,i),t.anyOf=c.map(u=>({contentMediaType:u}))):Object.assign(t,i)},od=(e,r,n,o)=>{n.type="boolean"},sd=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},ad=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},ld=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},cd=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},ud=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},dd=(e,r,n,o)=>{let t=n,i=e._zod.def,{minimum:s,maximum:a}=e._zod.bag;typeof s=="number"&&(t.minItems=s),typeof a=="number"&&(t.maxItems=a),t.type="array",t.items=X(i.element,r,{...o,path:[...o.path,"items"]})},fd=(e,r,n,o)=>{let t=n,i=e._zod.def;t.type="object",t.properties={};let s=i.shape;for(let u in s)t.properties[u]=X(s[u],r,{...o,path:[...o.path,"properties",u]});let a=new Set(Object.keys(s)),c=new Set([...a].filter(u=>{let l=i.shape[u]._zod;return r.io==="input"?l.optin===void 0:l.optout===void 0}));c.size>0&&(t.required=Array.from(c)),i.catchall?._zod.def.type==="never"?t.additionalProperties=!1:i.catchall?i.catchall&&(t.additionalProperties=X(i.catchall,r,{...o,path:[...o.path,"additionalProperties"]})):r.io==="output"&&(t.additionalProperties=!1)},ro=(e,r,n,o)=>{let t=e._zod.def,i=t.inclusive===!1,s=t.options.map((a,c)=>X(a,r,{...o,path:[...o.path,i?"oneOf":"anyOf",c]}));i?n.oneOf=s:n.anyOf=s},pd=(e,r,n,o)=>{let t=e._zod.def,i=X(t.left,r,{...o,path:[...o.path,"allOf",0]}),s=X(t.right,r,{...o,path:[...o.path,"allOf",1]}),a=u=>"allOf"in u&&Object.keys(u).length===1,c=[...a(i)?i.allOf:[i],...a(s)?s.allOf:[s]];n.allOf=c},hd=(e,r,n,o)=>{let t=n,i=e._zod.def;t.type="array";let s=r.target==="draft-2020-12"?"prefixItems":"items",a=r.target==="draft-2020-12"||r.target==="openapi-3.0"?"items":"additionalItems",c=i.items.map((f,d)=>X(f,r,{...o,path:[...o.path,s,d]})),u=i.rest?X(i.rest,r,{...o,path:[...o.path,a,...r.target==="openapi-3.0"?[i.items.length]:[]]}):null;r.target==="draft-2020-12"?(t.prefixItems=c,u&&(t.items=u)):r.target==="openapi-3.0"?(t.items={anyOf:c},u&&t.items.anyOf.push(u),t.minItems=c.length,u||(t.maxItems=c.length)):(t.items=c,u&&(t.additionalItems=u));let{minimum:l,maximum:p}=e._zod.bag;typeof l=="number"&&(t.minItems=l),typeof p=="number"&&(t.maxItems=p)},md=(e,r,n,o)=>{let t=n,i=e._zod.def;t.type="object";let s=i.keyType,c=s._zod.bag?.patterns;if(i.mode==="loose"&&c&&c.size>0){let l=X(i.valueType,r,{...o,path:[...o.path,"patternProperties","*"]});t.patternProperties={};for(let p of c)t.patternProperties[p.source]=l}else(r.target==="draft-07"||r.target==="draft-2020-12")&&(t.propertyNames=X(i.keyType,r,{...o,path:[...o.path,"propertyNames"]})),t.additionalProperties=X(i.valueType,r,{...o,path:[...o.path,"additionalProperties"]});let u=s._zod.values;if(u){let l=[...u].filter(p=>typeof p=="string"||typeof p=="number");l.length>0&&(t.required=l)}},gd=(e,r,n,o)=>{let t=e._zod.def,i=X(t.innerType,r,o),s=r.seen.get(e);r.target==="openapi-3.0"?(s.ref=t.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},vd=(e,r,n,o)=>{let t=e._zod.def;X(t.innerType,r,o);let i=r.seen.get(e);i.ref=t.innerType},yd=(e,r,n,o)=>{let t=e._zod.def;X(t.innerType,r,o);let i=r.seen.get(e);i.ref=t.innerType,n.default=JSON.parse(JSON.stringify(t.defaultValue))},bd=(e,r,n,o)=>{let t=e._zod.def;X(t.innerType,r,o);let i=r.seen.get(e);i.ref=t.innerType,r.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(t.defaultValue)))},wd=(e,r,n,o)=>{let t=e._zod.def;X(t.innerType,r,o);let i=r.seen.get(e);i.ref=t.innerType;let s;try{s=t.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=s},xd=(e,r,n,o)=>{let t=e._zod.def,i=t.in._zod.traits.has("$ZodTransform"),s=r.io==="input"?i?t.out:t.in:t.out;X(s,r,o);let a=r.seen.get(e);a.ref=s},_d=(e,r,n,o)=>{let t=e._zod.def;X(t.innerType,r,o);let i=r.seen.get(e);i.ref=t.innerType,n.readOnly=!0},Sd=(e,r,n,o)=>{let t=e._zod.def;X(t.innerType,r,o);let i=r.seen.get(e);i.ref=t.innerType},no=(e,r,n,o)=>{let t=e._zod.def;X(t.innerType,r,o);let i=r.seen.get(e);i.ref=t.innerType},$d=(e,r,n,o)=>{let t=e._zod.innerType;X(t,r,o);let i=r.seen.get(e);i.ref=t},to={string:Zu,number:Bu,boolean:Wu,bigint:Vu,symbol:qu,null:Gu,undefined:Ju,void:Hu,never:Xu,any:Ku,unknown:Yu,date:Qu,enum:ed,literal:td,nan:rd,template_literal:nd,file:id,success:od,custom:sd,function:ad,transform:ld,map:cd,set:ud,array:dd,object:fd,union:ro,intersection:pd,tuple:hd,record:md,nullable:gd,nonoptional:vd,default:yd,prefault:bd,catch:wd,pipe:xd,readonly:_d,promise:Sd,optional:no,lazy:$d};function io(e,r){if("_idmap"in e){let o=e,t=vt({...r,processors:to}),i={};for(let c of o._idmap.entries()){let[u,l]=c;X(l,t)}let s={},a={registry:o,uri:r?.uri,defs:i};t.external=a;for(let c of o._idmap.entries()){let[u,l]=c;yt(t,l),s[u]=bt(t,l)}if(Object.keys(i).length>0){let c=t.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[c]:i}}return{schemas:s}}let n=vt({...r,processors:to});return X(e,n),yt(n,e),bt(n,e)}var oo=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(r){this.ctx.counter=r}get seen(){return this.ctx.seen}constructor(r){let n=r?.target??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=vt({processors:to,target:n,...r?.metadata&&{metadata:r.metadata},...r?.unrepresentable&&{unrepresentable:r.unrepresentable},...r?.override&&{override:r.override},...r?.io&&{io:r.io}})}process(r,n={path:[],schemaPath:[]}){return X(r,this.ctx,n)}emit(r,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),yt(this.ctx,r);let o=bt(this.ctx,r),{"~standard":t,...i}=o;return i}};var bv={};var rn={};Ve(rn,{ZodAny:()=>Jd,ZodArray:()=>Yd,ZodBase64:()=>Eo,ZodBase64URL:()=>Co,ZodBigInt:()=>wr,ZodBigIntFormat:()=>zo,ZodBoolean:()=>br,ZodCIDRv4:()=>ko,ZodCIDRv6:()=>Io,ZodCUID:()=>yo,ZodCUID2:()=>bo,ZodCatch:()=>xf,ZodCodec:()=>mn,ZodCustom:()=>gn,ZodCustomStringFormat:()=>vr,ZodDate:()=>un,ZodDefault:()=>mf,ZodDiscriminatedUnion:()=>ef,ZodE164:()=>Oo,ZodEmail:()=>mo,ZodEmoji:()=>go,ZodEnum:()=>mr,ZodExactOptional:()=>ff,ZodFile:()=>uf,ZodFunction:()=>zf,ZodGUID:()=>on,ZodIPv4:()=>So,ZodIPv6:()=>$o,ZodIntersection:()=>tf,ZodJWT:()=>No,ZodKSUID:()=>_o,ZodLazy:()=>Cf,ZodLiteral:()=>cf,ZodMAC:()=>Fd,ZodMap:()=>af,ZodNaN:()=>Sf,ZodNanoID:()=>vo,ZodNever:()=>Xd,ZodNonOptional:()=>Mo,ZodNull:()=>qd,ZodNullable:()=>hf,ZodNumber:()=>yr,ZodNumberFormat:()=>Pt,ZodObject:()=>fn,ZodOptional:()=>Ao,ZodPipe:()=>hn,ZodPrefault:()=>vf,ZodPreprocess:()=>$f,ZodPromise:()=>Nf,ZodReadonly:()=>kf,ZodRecord:()=>hr,ZodSet:()=>lf,ZodString:()=>gr,ZodStringFormat:()=>re,ZodSuccess:()=>wf,ZodSymbol:()=>Wd,ZodTemplateLiteral:()=>Ef,ZodTransform:()=>df,ZodTuple:()=>nf,ZodType:()=>Z,ZodULID:()=>wo,ZodURL:()=>cn,ZodUUID:()=>Ke,ZodUndefined:()=>Vd,ZodUnion:()=>pn,ZodUnknown:()=>Hd,ZodVoid:()=>Kd,ZodXID:()=>xo,ZodXor:()=>Qd,_ZodString:()=>ho,_default:()=>gf,_function:()=>Cy,any:()=>oy,array:()=>dn,base64:()=>Zv,base64url:()=>Bv,bigint:()=>ey,boolean:()=>Bd,catch:()=>_f,check:()=>Oy,cidrv4:()=>Lv,cidrv6:()=>Fv,codec:()=>$y,cuid:()=>Dv,cuid2:()=>Tv,custom:()=>Ny,date:()=>ay,describe:()=>zy,discriminatedUnion:()=>py,e164:()=>Wv,email:()=>_v,emoji:()=>Nv,enum:()=>Po,exactOptional:()=>pf,file:()=>wy,float32:()=>Xv,float64:()=>Kv,function:()=>Cy,guid:()=>Sv,hash:()=>Hv,hex:()=>Jv,hostname:()=>Gv,httpUrl:()=>Ov,instanceof:()=>Ty,int:()=>fo,int32:()=>Yv,int64:()=>ty,intersection:()=>rf,invertCodec:()=>ky,ipv4:()=>Mv,ipv6:()=>jv,json:()=>Ry,jwt:()=>Vv,keyof:()=>ly,ksuid:()=>Av,lazy:()=>Of,literal:()=>by,looseObject:()=>dy,looseRecord:()=>my,mac:()=>Uv,map:()=>gy,meta:()=>Dy,nan:()=>Sy,nanoid:()=>zv,nativeEnum:()=>yy,never:()=>Do,nonoptional:()=>bf,null:()=>Gd,nullable:()=>an,nullish:()=>xy,number:()=>Zd,object:()=>cy,optional:()=>sn,partialRecord:()=>hy,pipe:()=>po,prefault:()=>yf,preprocess:()=>Ay,promise:()=>Ey,readonly:()=>If,record:()=>sf,refine:()=>Df,set:()=>vy,strictObject:()=>uy,string:()=>nn,stringFormat:()=>qv,stringbool:()=>Py,success:()=>_y,superRefine:()=>Tf,symbol:()=>ny,templateLiteral:()=>Iy,transform:()=>Ro,tuple:()=>of,uint32:()=>Qv,uint64:()=>ry,ulid:()=>Pv,undefined:()=>iy,union:()=>To,unknown:()=>Tt,url:()=>Cv,uuid:()=>$v,uuidv4:()=>kv,uuidv6:()=>Iv,uuidv7:()=>Ev,void:()=>sy,xid:()=>Rv,xor:()=>fy});var so={};Ve(so,{endsWith:()=>ir,gt:()=>He,gte:()=>$e,includes:()=>rr,length:()=>Dt,lowercase:()=>er,lt:()=>Je,lte:()=>Te,maxLength:()=>zt,maxSize:()=>gt,mime:()=>or,minLength:()=>rt,minSize:()=>Xe,multipleOf:()=>mt,negative:()=>Ki,nonnegative:()=>Qi,nonpositive:()=>Yi,normalize:()=>sr,overwrite:()=>Be,positive:()=>Xi,property:()=>eo,regex:()=>Qt,size:()=>Nt,slugify:()=>ur,startsWith:()=>nr,toLowerCase:()=>lr,toUpperCase:()=>cr,trim:()=>ar,uppercase:()=>tr});var pr={};Ve(pr,{ZodISODate:()=>lo,ZodISODateTime:()=>ao,ZodISODuration:()=>uo,ZodISOTime:()=>co,date:()=>Id,datetime:()=>kd,duration:()=>Cd,time:()=>Ed});var ao=k("ZodISODateTime",(e,r)=>{rc.init(e,r),re.init(e,r)});function kd(e){return su(ao,e)}var lo=k("ZodISODate",(e,r)=>{nc.init(e,r),re.init(e,r)});function Id(e){return au(lo,e)}var co=k("ZodISOTime",(e,r)=>{ic.init(e,r),re.init(e,r)});function Ed(e){return lu(co,e)}var uo=k("ZodISODuration",(e,r)=>{oc.init(e,r),re.init(e,r)});function Cd(e){return cu(uo,e)}var wv=(e,r)=>{Br.init(e,r),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Vr(e,n)},flatten:{value:n=>Wr(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Wt,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Wt,2)}},isEmpty:{get(){return e.issues.length===0}}})},gk=k("ZodError",wv),Oe=k("ZodError",wv,{Parent:Error});var Od=Gt(Oe),Nd=Jt(Oe),zd=Ht(Oe),Dd=Xt(Oe),Td=ii(Oe),Pd=oi(Oe),Rd=si(Oe),Ad=ai(Oe),Md=li(Oe),Ud=ci(Oe),jd=ui(Oe),Ld=di(Oe);var xv=new WeakMap;function ln(e,r,n){let o=Object.getPrototypeOf(e),t=xv.get(o);if(t||(t=new Set,xv.set(o,t)),!t.has(r)){t.add(r);for(let i in n){let s=n[i];Object.defineProperty(o,i,{configurable:!0,enumerable:!1,get(){let a=s.bind(this);return Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:a}),a},set(a){Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:a})}})}}}var Z=k("ZodType",(e,r)=>(L.init(e,r),Object.assign(e["~standard"],{jsonSchema:{input:fr(e,"input"),output:fr(e,"output")}}),e.toJSONSchema=Fu(e,{}),e.def=r,e.type=r.type,Object.defineProperty(e,"_def",{value:r}),e.parse=(n,o)=>Od(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>zd(e,n,o),e.parseAsync=async(n,o)=>Nd(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>Dd(e,n,o),e.spa=e.safeParseAsync,e.encode=(n,o)=>Td(e,n,o),e.decode=(n,o)=>Pd(e,n,o),e.encodeAsync=async(n,o)=>Rd(e,n,o),e.decodeAsync=async(n,o)=>Ad(e,n,o),e.safeEncode=(n,o)=>Md(e,n,o),e.safeDecode=(n,o)=>Ud(e,n,o),e.safeEncodeAsync=async(n,o)=>jd(e,n,o),e.safeDecodeAsync=async(n,o)=>Ld(e,n,o),ln(e,"ZodType",{check(...n){let o=this.def;return this.clone(D.mergeDefs(o,{checks:[...o.checks??[],...n.map(t=>typeof t=="function"?{_zod:{check:t,def:{check:"custom"},onattach:[]}}:t)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,o){return _e(this,n,o)},brand(){return this},register(n,o){return n.add(this,o),this},refine(n,o){return this.check(Df(n,o))},superRefine(n,o){return this.check(Tf(n,o))},overwrite(n){return this.check(Be(n))},optional(){return sn(this)},exactOptional(){return pf(this)},nullable(){return an(this)},nullish(){return sn(an(this))},nonoptional(n){return bf(this,n)},array(){return dn(this)},or(n){return To([this,n])},and(n){return rf(this,n)},transform(n){return po(this,Ro(n))},default(n){return gf(this,n)},prefault(n){return yf(this,n)},catch(n){return _f(this,n)},pipe(n){return po(this,n)},readonly(){return If(this)},describe(n){let o=this.clone();return me.add(o,{description:n}),o},meta(...n){if(n.length===0)return me.get(this);let o=this.clone();return me.add(o,n[0]),o},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){return me.get(e)?.description},configurable:!0}),e)),ho=k("_ZodString",(e,r)=>{Ot.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(o,t,i)=>Zu(e,o,t,i);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,ln(e,"_ZodString",{regex(...o){return this.check(Qt(...o))},includes(...o){return this.check(rr(...o))},startsWith(...o){return this.check(nr(...o))},endsWith(...o){return this.check(ir(...o))},min(...o){return this.check(rt(...o))},max(...o){return this.check(zt(...o))},length(...o){return this.check(Dt(...o))},nonempty(...o){return this.check(rt(1,...o))},lowercase(o){return this.check(er(o))},uppercase(o){return this.check(tr(o))},trim(){return this.check(ar())},normalize(...o){return this.check(sr(...o))},toLowerCase(){return this.check(lr())},toUpperCase(){return this.check(cr())},slugify(){return this.check(ur())}})}),gr=k("ZodString",(e,r)=>{Ot.init(e,r),ho.init(e,r),e.email=n=>e.check(Ni(mo,n)),e.url=n=>e.check(tn(cn,n)),e.jwt=n=>e.check(Hi(No,n)),e.emoji=n=>e.check(Ri(go,n)),e.guid=n=>e.check(en(on,n)),e.uuid=n=>e.check(zi(Ke,n)),e.uuidv4=n=>e.check(Di(Ke,n)),e.uuidv6=n=>e.check(Ti(Ke,n)),e.uuidv7=n=>e.check(Pi(Ke,n)),e.nanoid=n=>e.check(Ai(vo,n)),e.guid=n=>e.check(en(on,n)),e.cuid=n=>e.check(Mi(yo,n)),e.cuid2=n=>e.check(Ui(bo,n)),e.ulid=n=>e.check(ji(wo,n)),e.base64=n=>e.check(qi(Eo,n)),e.base64url=n=>e.check(Gi(Co,n)),e.xid=n=>e.check(Li(xo,n)),e.ksuid=n=>e.check(Fi(_o,n)),e.ipv4=n=>e.check(Zi(So,n)),e.ipv6=n=>e.check(Bi($o,n)),e.cidrv4=n=>e.check(Wi(ko,n)),e.cidrv6=n=>e.check(Vi(Io,n)),e.e164=n=>e.check(Ji(Oo,n)),e.datetime=n=>e.check(kd(n)),e.date=n=>e.check(Id(n)),e.time=n=>e.check(Ed(n)),e.duration=n=>e.check(Cd(n))});function nn(e){return ru(gr,e)}var re=k("ZodStringFormat",(e,r)=>{te.init(e,r),ho.init(e,r)}),mo=k("ZodEmail",(e,r)=>{Gl.init(e,r),re.init(e,r)});function _v(e){return Ni(mo,e)}var on=k("ZodGUID",(e,r)=>{Vl.init(e,r),re.init(e,r)});function Sv(e){return en(on,e)}var Ke=k("ZodUUID",(e,r)=>{ql.init(e,r),re.init(e,r)});function $v(e){return zi(Ke,e)}function kv(e){return Di(Ke,e)}function Iv(e){return Ti(Ke,e)}function Ev(e){return Pi(Ke,e)}var cn=k("ZodURL",(e,r)=>{Jl.init(e,r),re.init(e,r)});function Cv(e){return tn(cn,e)}function Ov(e){return tn(cn,{protocol:De.httpProtocol,hostname:De.domain,...D.normalizeParams(e)})}var go=k("ZodEmoji",(e,r)=>{Hl.init(e,r),re.init(e,r)});function Nv(e){return Ri(go,e)}var vo=k("ZodNanoID",(e,r)=>{Xl.init(e,r),re.init(e,r)});function zv(e){return Ai(vo,e)}var yo=k("ZodCUID",(e,r)=>{Kl.init(e,r),re.init(e,r)});function Dv(e){return Mi(yo,e)}var bo=k("ZodCUID2",(e,r)=>{Yl.init(e,r),re.init(e,r)});function Tv(e){return Ui(bo,e)}var wo=k("ZodULID",(e,r)=>{Ql.init(e,r),re.init(e,r)});function Pv(e){return ji(wo,e)}var xo=k("ZodXID",(e,r)=>{ec.init(e,r),re.init(e,r)});function Rv(e){return Li(xo,e)}var _o=k("ZodKSUID",(e,r)=>{tc.init(e,r),re.init(e,r)});function Av(e){return Fi(_o,e)}var So=k("ZodIPv4",(e,r)=>{sc.init(e,r),re.init(e,r)});function Mv(e){return Zi(So,e)}var Fd=k("ZodMAC",(e,r)=>{lc.init(e,r),re.init(e,r)});function Uv(e){return iu(Fd,e)}var $o=k("ZodIPv6",(e,r)=>{ac.init(e,r),re.init(e,r)});function jv(e){return Bi($o,e)}var ko=k("ZodCIDRv4",(e,r)=>{cc.init(e,r),re.init(e,r)});function Lv(e){return Wi(ko,e)}var Io=k("ZodCIDRv6",(e,r)=>{uc.init(e,r),re.init(e,r)});function Fv(e){return Vi(Io,e)}var Eo=k("ZodBase64",(e,r)=>{fc.init(e,r),re.init(e,r)});function Zv(e){return qi(Eo,e)}var Co=k("ZodBase64URL",(e,r)=>{pc.init(e,r),re.init(e,r)});function Bv(e){return Gi(Co,e)}var Oo=k("ZodE164",(e,r)=>{hc.init(e,r),re.init(e,r)});function Wv(e){return Ji(Oo,e)}var No=k("ZodJWT",(e,r)=>{mc.init(e,r),re.init(e,r)});function Vv(e){return Hi(No,e)}var vr=k("ZodCustomStringFormat",(e,r)=>{gc.init(e,r),re.init(e,r)});function qv(e,r,n={}){return dr(vr,e,r,n)}function Gv(e){return dr(vr,"hostname",De.hostname,e)}function Jv(e){return dr(vr,"hex",De.hex,e)}function Hv(e,r){let n=r?.enc??"hex",o=`${e}_${n}`,t=De[o];if(!t)throw new Error(`Unrecognized hash format: ${o}`);return dr(vr,o,t,r)}var yr=k("ZodNumber",(e,r)=>{wi.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(o,t,i)=>Bu(e,o,t,i),ln(e,"ZodNumber",{gt(o,t){return this.check(He(o,t))},gte(o,t){return this.check($e(o,t))},min(o,t){return this.check($e(o,t))},lt(o,t){return this.check(Je(o,t))},lte(o,t){return this.check(Te(o,t))},max(o,t){return this.check(Te(o,t))},int(o){return this.check(fo(o))},safe(o){return this.check(fo(o))},positive(o){return this.check(He(0,o))},nonnegative(o){return this.check($e(0,o))},negative(o){return this.check(Je(0,o))},nonpositive(o){return this.check(Te(0,o))},multipleOf(o,t){return this.check(mt(o,t))},step(o,t){return this.check(mt(o,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function Zd(e){return uu(yr,e)}var Pt=k("ZodNumberFormat",(e,r)=>{vc.init(e,r),yr.init(e,r)});function fo(e){return fu(Pt,e)}function Xv(e){return pu(Pt,e)}function Kv(e){return hu(Pt,e)}function Yv(e){return mu(Pt,e)}function Qv(e){return gu(Pt,e)}var br=k("ZodBoolean",(e,r)=>{Hr.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Wu(e,n,o,t)});function Bd(e){return vu(br,e)}var wr=k("ZodBigInt",(e,r)=>{xi.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(o,t,i)=>Vu(e,o,t,i),e.gte=(o,t)=>e.check($e(o,t)),e.min=(o,t)=>e.check($e(o,t)),e.gt=(o,t)=>e.check(He(o,t)),e.gte=(o,t)=>e.check($e(o,t)),e.min=(o,t)=>e.check($e(o,t)),e.lt=(o,t)=>e.check(Je(o,t)),e.lte=(o,t)=>e.check(Te(o,t)),e.max=(o,t)=>e.check(Te(o,t)),e.positive=o=>e.check(He(BigInt(0),o)),e.negative=o=>e.check(Je(BigInt(0),o)),e.nonpositive=o=>e.check(Te(BigInt(0),o)),e.nonnegative=o=>e.check($e(BigInt(0),o)),e.multipleOf=(o,t)=>e.check(mt(o,t));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function ey(e){return bu(wr,e)}var zo=k("ZodBigIntFormat",(e,r)=>{yc.init(e,r),wr.init(e,r)});function ty(e){return xu(zo,e)}function ry(e){return _u(zo,e)}var Wd=k("ZodSymbol",(e,r)=>{bc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>qu(e,n,o,t)});function ny(e){return Su(Wd,e)}var Vd=k("ZodUndefined",(e,r)=>{wc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Ju(e,n,o,t)});function iy(e){return $u(Vd,e)}var qd=k("ZodNull",(e,r)=>{xc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Gu(e,n,o,t)});function Gd(e){return ku(qd,e)}var Jd=k("ZodAny",(e,r)=>{_c.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Ku(e,n,o,t)});function oy(){return Iu(Jd)}var Hd=k("ZodUnknown",(e,r)=>{Sc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Yu(e,n,o,t)});function Tt(){return Eu(Hd)}var Xd=k("ZodNever",(e,r)=>{$c.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Xu(e,n,o,t)});function Do(e){return Cu(Xd,e)}var Kd=k("ZodVoid",(e,r)=>{kc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Hu(e,n,o,t)});function sy(e){return Ou(Kd,e)}var un=k("ZodDate",(e,r)=>{Ic.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(o,t,i)=>Qu(e,o,t,i),e.min=(o,t)=>e.check($e(o,t)),e.max=(o,t)=>e.check(Te(o,t));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function ay(e){return Nu(un,e)}var Yd=k("ZodArray",(e,r)=>{Ec.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>dd(e,n,o,t),e.element=r.element,ln(e,"ZodArray",{min(n,o){return this.check(rt(n,o))},nonempty(n){return this.check(rt(1,n))},max(n,o){return this.check(zt(n,o))},length(n,o){return this.check(Dt(n,o))},unwrap(){return this.element}})});function dn(e,r){return Tu(Yd,e,r)}function ly(e){let r=e._zod.def.shape;return Po(Object.keys(r))}var fn=k("ZodObject",(e,r)=>{Cc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>fd(e,n,o,t),D.defineLazy(e,"shape",()=>r.shape),ln(e,"ZodObject",{keyof(){return Po(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:Tt()})},loose(){return this.clone({...this._zod.def,catchall:Tt()})},strict(){return this.clone({...this._zod.def,catchall:Do()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return D.extend(this,n)},safeExtend(n){return D.safeExtend(this,n)},merge(n){return D.merge(this,n)},pick(n){return D.pick(this,n)},omit(n){return D.omit(this,n)},partial(...n){return D.partial(Ao,this,n[0])},required(...n){return D.required(Mo,this,n[0])}})});function cy(e,r){let n={type:"object",shape:e??{},...D.normalizeParams(r)};return new fn(n)}function uy(e,r){return new fn({type:"object",shape:e,catchall:Do(),...D.normalizeParams(r)})}function dy(e,r){return new fn({type:"object",shape:e,catchall:Tt(),...D.normalizeParams(r)})}var pn=k("ZodUnion",(e,r)=>{Xr.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>ro(e,n,o,t),e.options=r.options});function To(e,r){return new pn({type:"union",options:e,...D.normalizeParams(r)})}var Qd=k("ZodXor",(e,r)=>{pn.init(e,r),Oc.init(e,r),e._zod.processJSONSchema=(n,o,t)=>ro(e,n,o,t),e.options=r.options});function fy(e,r){return new Qd({type:"union",options:e,inclusive:!1,...D.normalizeParams(r)})}var ef=k("ZodDiscriminatedUnion",(e,r)=>{pn.init(e,r),Nc.init(e,r)});function py(e,r,n){return new ef({type:"union",options:r,discriminator:e,...D.normalizeParams(n)})}var tf=k("ZodIntersection",(e,r)=>{zc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>pd(e,n,o,t)});function rf(e,r){return new tf({type:"intersection",left:e,right:r})}var nf=k("ZodTuple",(e,r)=>{_i.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>hd(e,n,o,t),e.rest=n=>e.clone({...e._zod.def,rest:n})});function of(e,r,n){let o=r instanceof L,t=o?n:r,i=o?r:null;return new nf({type:"tuple",items:e,rest:i,...D.normalizeParams(t)})}var hr=k("ZodRecord",(e,r)=>{Dc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>md(e,n,o,t),e.keyType=r.keyType,e.valueType=r.valueType});function sf(e,r,n){return!r||!r._zod?new hr({type:"record",keyType:nn(),valueType:e,...D.normalizeParams(r)}):new hr({type:"record",keyType:e,valueType:r,...D.normalizeParams(n)})}function hy(e,r,n){let o=_e(e);return o._zod.values=void 0,new hr({type:"record",keyType:o,valueType:r,...D.normalizeParams(n)})}function my(e,r,n){return new hr({type:"record",keyType:e,valueType:r,mode:"loose",...D.normalizeParams(n)})}var af=k("ZodMap",(e,r)=>{Tc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>cd(e,n,o,t),e.keyType=r.keyType,e.valueType=r.valueType,e.min=(...n)=>e.check(Xe(...n)),e.nonempty=n=>e.check(Xe(1,n)),e.max=(...n)=>e.check(gt(...n)),e.size=(...n)=>e.check(Nt(...n))});function gy(e,r,n){return new af({type:"map",keyType:e,valueType:r,...D.normalizeParams(n)})}var lf=k("ZodSet",(e,r)=>{Pc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>ud(e,n,o,t),e.min=(...n)=>e.check(Xe(...n)),e.nonempty=n=>e.check(Xe(1,n)),e.max=(...n)=>e.check(gt(...n)),e.size=(...n)=>e.check(Nt(...n))});function vy(e,r){return new lf({type:"set",valueType:e,...D.normalizeParams(r)})}var mr=k("ZodEnum",(e,r)=>{Rc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(o,t,i)=>ed(e,o,t,i),e.enum=r.entries,e.options=Object.values(r.entries);let n=new Set(Object.keys(r.entries));e.extract=(o,t)=>{let i={};for(let s of o)if(n.has(s))i[s]=r.entries[s];else throw new Error(`Key ${s} not found in enum`);return new mr({...r,checks:[],...D.normalizeParams(t),entries:i})},e.exclude=(o,t)=>{let i={...r.entries};for(let s of o)if(n.has(s))delete i[s];else throw new Error(`Key ${s} not found in enum`);return new mr({...r,checks:[],...D.normalizeParams(t),entries:i})}});function Po(e,r){let n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new mr({type:"enum",entries:n,...D.normalizeParams(r)})}function yy(e,r){return new mr({type:"enum",entries:e,...D.normalizeParams(r)})}var cf=k("ZodLiteral",(e,r)=>{Ac.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>td(e,n,o,t),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 by(e,r){return new cf({type:"literal",values:Array.isArray(e)?e:[e],...D.normalizeParams(r)})}var uf=k("ZodFile",(e,r)=>{Mc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>id(e,n,o,t),e.min=(n,o)=>e.check(Xe(n,o)),e.max=(n,o)=>e.check(gt(n,o)),e.mime=(n,o)=>e.check(or(Array.isArray(n)?n:[n],o))});function wy(e){return Pu(uf,e)}var df=k("ZodTransform",(e,r)=>{Uc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>ld(e,n,o,t),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new ut(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(D.issue(i,n.value,r));else{let s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=n.value),s.inst??(s.inst=e),n.issues.push(D.issue(s))}};let t=r.transform(n.value,n);return t instanceof Promise?t.then(i=>(n.value=i,n.fallback=!0,n)):(n.value=t,n.fallback=!0,n)}});function Ro(e){return new df({type:"transform",transform:e})}var Ao=k("ZodOptional",(e,r)=>{Si.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>no(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function sn(e){return new Ao({type:"optional",innerType:e})}var ff=k("ZodExactOptional",(e,r)=>{jc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>no(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function pf(e){return new ff({type:"optional",innerType:e})}var hf=k("ZodNullable",(e,r)=>{Lc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>gd(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function an(e){return new hf({type:"nullable",innerType:e})}function xy(e){return sn(an(e))}var mf=k("ZodDefault",(e,r)=>{Fc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>yd(e,n,o,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function gf(e,r){return new mf({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():D.shallowClone(r)}})}var vf=k("ZodPrefault",(e,r)=>{Zc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>bd(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function yf(e,r){return new vf({type:"prefault",innerType:e,get defaultValue(){return typeof r=="function"?r():D.shallowClone(r)}})}var Mo=k("ZodNonOptional",(e,r)=>{Bc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>vd(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function bf(e,r){return new Mo({type:"nonoptional",innerType:e,...D.normalizeParams(r)})}var wf=k("ZodSuccess",(e,r)=>{Wc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>od(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function _y(e){return new wf({type:"success",innerType:e})}var xf=k("ZodCatch",(e,r)=>{Vc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>wd(e,n,o,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function _f(e,r){return new xf({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}var Sf=k("ZodNaN",(e,r)=>{qc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>rd(e,n,o,t)});function Sy(e){return Du(Sf,e)}var hn=k("ZodPipe",(e,r)=>{$i.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>xd(e,n,o,t),e.in=r.in,e.out=r.out});function po(e,r){return new hn({type:"pipe",in:e,out:r})}var mn=k("ZodCodec",(e,r)=>{hn.init(e,r),Kr.init(e,r)});function $y(e,r,n){return new mn({type:"pipe",in:e,out:r,transform:n.decode,reverseTransform:n.encode})}function ky(e){let r=e._zod.def;return new mn({type:"pipe",in:r.out,out:r.in,transform:r.reverseTransform,reverseTransform:r.transform})}var $f=k("ZodPreprocess",(e,r)=>{hn.init(e,r),Gc.init(e,r)}),kf=k("ZodReadonly",(e,r)=>{Jc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>_d(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function If(e){return new kf({type:"readonly",innerType:e})}var Ef=k("ZodTemplateLiteral",(e,r)=>{Hc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>nd(e,n,o,t)});function Iy(e,r){return new Ef({type:"template_literal",parts:e,...D.normalizeParams(r)})}var Cf=k("ZodLazy",(e,r)=>{Yc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>$d(e,n,o,t),e.unwrap=()=>e._zod.def.getter()});function Of(e){return new Cf({type:"lazy",getter:e})}var Nf=k("ZodPromise",(e,r)=>{Kc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Sd(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function Ey(e){return new Nf({type:"promise",innerType:e})}var zf=k("ZodFunction",(e,r)=>{Xc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>ad(e,n,o,t)});function Cy(e){return new zf({type:"function",input:Array.isArray(e?.input)?of(e?.input):e?.input??dn(Tt()),output:e?.output??Tt()})}var gn=k("ZodCustom",(e,r)=>{Qc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>sd(e,n,o,t)});function Oy(e){let r=new ne({check:"custom"});return r._zod.check=e,r}function Ny(e,r){return Ru(gn,e??(()=>!0),r)}function Df(e,r={}){return Au(gn,e,r)}function Tf(e,r){return Mu(e,r)}var zy=Uu,Dy=ju;function Ty(e,r={}){let n=new gn({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...D.normalizeParams(r)});return n._zod.bag.Class=e,n._zod.check=o=>{o.value instanceof e||o.issues.push({code:"invalid_type",expected:e.name,input:o.value,inst:n,path:[...n._zod.def.path??[]]})},n}var Py=(...e)=>Lu({Codec:mn,Boolean:br,String:gr},...e);function Ry(e){let r=Of(()=>To([nn(e),Zd(),Bd(),Gd(),dn(r),sf(nn(),r)]));return r}function Ay(e,r){return new $f({type:"pipe",in:Ro(e),out:r})}var yk={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 bk(e){ce({customError:e})}function wk(){return ce().customError}var Pf;Pf||(Pf={});var U={...rn,...so,iso:pr},xk=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function _k(e,r){let n=e.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":r??"draft-2020-12"}function Sk(e,r){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let n=e.slice(1).split("/").filter(Boolean);if(n.length===0)return r.rootSchema;let o=r.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===o){let t=n[1];if(!t||!r.defs[t])throw new Error(`Reference not found: ${e}`);return r.defs[t]}throw new Error(`Reference not found: ${e}`)}function My(e,r){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return U.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let t=e.$ref;if(r.refs.has(t))return r.refs.get(t);if(r.processing.has(t))return U.lazy(()=>{if(!r.refs.has(t))throw new Error(`Circular reference not resolved: ${t}`);return r.refs.get(t)});r.processing.add(t);let i=Sk(t,r),s=ye(i,r);return r.refs.set(t,s),r.processing.delete(t),s}if(e.enum!==void 0){let t=e.enum;if(r.version==="openapi-3.0"&&e.nullable===!0&&t.length===1&&t[0]===null)return U.null();if(t.length===0)return U.never();if(t.length===1)return U.literal(t[0]);if(t.every(s=>typeof s=="string"))return U.enum(t);let i=t.map(s=>U.literal(s));return i.length<2?i[0]:U.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return U.literal(e.const);let n=e.type;if(Array.isArray(n)){let t=n.map(i=>{let s={...e,type:i};return My(s,r)});return t.length===0?U.never():t.length===1?t[0]:U.union(t)}if(!n)return U.any();let o;switch(n){case"string":{let t=U.string();if(e.format){let i=e.format;i==="email"?t=t.check(U.email()):i==="uri"||i==="uri-reference"?t=t.check(U.url()):i==="uuid"||i==="guid"?t=t.check(U.uuid()):i==="date-time"?t=t.check(U.iso.datetime()):i==="date"?t=t.check(U.iso.date()):i==="time"?t=t.check(U.iso.time()):i==="duration"?t=t.check(U.iso.duration()):i==="ipv4"?t=t.check(U.ipv4()):i==="ipv6"?t=t.check(U.ipv6()):i==="mac"?t=t.check(U.mac()):i==="cidr"?t=t.check(U.cidrv4()):i==="cidr-v6"?t=t.check(U.cidrv6()):i==="base64"?t=t.check(U.base64()):i==="base64url"?t=t.check(U.base64url()):i==="e164"?t=t.check(U.e164()):i==="jwt"?t=t.check(U.jwt()):i==="emoji"?t=t.check(U.emoji()):i==="nanoid"?t=t.check(U.nanoid()):i==="cuid"?t=t.check(U.cuid()):i==="cuid2"?t=t.check(U.cuid2()):i==="ulid"?t=t.check(U.ulid()):i==="xid"?t=t.check(U.xid()):i==="ksuid"&&(t=t.check(U.ksuid()))}typeof e.minLength=="number"&&(t=t.min(e.minLength)),typeof e.maxLength=="number"&&(t=t.max(e.maxLength)),e.pattern&&(t=t.regex(new RegExp(e.pattern))),o=t;break}case"number":case"integer":{let t=n==="integer"?U.number().int():U.number();typeof e.minimum=="number"&&(t=t.min(e.minimum)),typeof e.maximum=="number"&&(t=t.max(e.maximum)),typeof e.exclusiveMinimum=="number"?t=t.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(t=t.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?t=t.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(t=t.lt(e.maximum)),typeof e.multipleOf=="number"&&(t=t.multipleOf(e.multipleOf)),o=t;break}case"boolean":{o=U.boolean();break}case"null":{o=U.null();break}case"object":{let t={},i=e.properties||{},s=new Set(e.required||[]);for(let[c,u]of Object.entries(i)){let l=ye(u,r);t[c]=s.has(c)?l:l.optional()}if(e.propertyNames){let c=ye(e.propertyNames,r),u=e.additionalProperties&&typeof e.additionalProperties=="object"?ye(e.additionalProperties,r):U.any();if(Object.keys(t).length===0){o=U.record(c,u);break}let l=U.object(t).passthrough(),p=U.looseRecord(c,u);o=U.intersection(l,p);break}if(e.patternProperties){let c=e.patternProperties,u=Object.keys(c),l=[];for(let f of u){let d=ye(c[f],r),m=U.string().regex(new RegExp(f));l.push(U.looseRecord(m,d))}let p=[];if(Object.keys(t).length>0&&p.push(U.object(t).passthrough()),p.push(...l),p.length===0)o=U.object({}).passthrough();else if(p.length===1)o=p[0];else{let f=U.intersection(p[0],p[1]);for(let d=2;d<p.length;d++)f=U.intersection(f,p[d]);o=f}break}let a=U.object(t);e.additionalProperties===!1?o=a.strict():typeof e.additionalProperties=="object"?o=a.catchall(ye(e.additionalProperties,r)):o=a.passthrough();break}case"array":{let t=e.prefixItems,i=e.items;if(t&&Array.isArray(t)){let s=t.map(c=>ye(c,r)),a=i&&typeof i=="object"&&!Array.isArray(i)?ye(i,r):void 0;a?o=U.tuple(s).rest(a):o=U.tuple(s),typeof e.minItems=="number"&&(o=o.check(U.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(U.maxLength(e.maxItems)))}else if(Array.isArray(i)){let s=i.map(c=>ye(c,r)),a=e.additionalItems&&typeof e.additionalItems=="object"?ye(e.additionalItems,r):void 0;a?o=U.tuple(s).rest(a):o=U.tuple(s),typeof e.minItems=="number"&&(o=o.check(U.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(U.maxLength(e.maxItems)))}else if(i!==void 0){let s=ye(i,r),a=U.array(s);typeof e.minItems=="number"&&(a=a.min(e.minItems)),typeof e.maxItems=="number"&&(a=a.max(e.maxItems)),o=a}else o=U.array(U.any());break}default:throw new Error(`Unsupported type: ${n}`)}return o}function ye(e,r){if(typeof e=="boolean")return e?U.any():U.never();let n=My(e,r),o=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let a=e.anyOf.map(u=>ye(u,r)),c=U.union(a);n=o?U.intersection(n,c):c}if(e.oneOf&&Array.isArray(e.oneOf)){let a=e.oneOf.map(u=>ye(u,r)),c=U.xor(a);n=o?U.intersection(n,c):c}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=o?n:U.any();else{let a=o?n:ye(e.allOf[0],r),c=o?0:1;for(let u=c;u<e.allOf.length;u++)a=U.intersection(a,ye(e.allOf[u],r));n=a}e.nullable===!0&&r.version==="openapi-3.0"&&(n=U.nullable(n)),e.readOnly===!0&&(n=U.readonly(n)),e.default!==void 0&&(n=n.default(e.default));let t={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let a of i)a in e&&(t[a]=e[a]);let s=["contentEncoding","contentMediaType","contentSchema"];for(let a of s)a in e&&(t[a]=e[a]);for(let a of Object.keys(e))xk.has(a)||(t[a]=e[a]);return Object.keys(t).length>0&&r.registry.add(n,t),e.description&&(n=n.describe(e.description)),n}function Uy(e,r){if(typeof e=="boolean")return e?U.any():U.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let o=_k(n,r?.defaultTarget),t=n.$defs||n.definitions||{},i={version:o,defs:t,refs:new Map,processing:new Set,rootSchema:n,registry:r?.registry??me};return ye(n,i)}var Rf={};Ve(Rf,{bigint:()=>Ek,boolean:()=>Ik,date:()=>Ck,number:()=>kk,string:()=>$k});function $k(e){return nu(gr,e)}function kk(e){return du(yr,e)}function Ik(e){return yu(br,e)}function Ek(e){return wu(wr,e)}function Ck(e){return zu(un,e)}ce(ki());var Ok=$.enum(["log","info","warn","error","debug"]),Nk=$.object({level:Ok,args:$.array($.string()),timestamp:$.number()}),zk=$.object({method:$.string(),url:$.string(),status:$.number().nullable(),ok:$.boolean().nullable(),durationMs:$.number().nullable(),requestType:$.enum(["fetch","xhr"]),startedAt:$.number(),error:$.string().optional()}),Dk=$.object({message:$.string(),stack:$.string().optional(),source:$.enum(["window.onerror","unhandledrejection","console.error","react-boundary"]),timestamp:$.number()}),Tk=$.object({url:$.string(),route:$.string().optional(),referrer:$.string().optional(),userAgent:$.string(),browser:$.string().optional(),os:$.string().optional(),device:$.enum(["desktop","tablet","mobile"]).optional(),viewport:$.object({width:$.number(),height:$.number()}),screen:$.object({width:$.number(),height:$.number()}),devicePixelRatio:$.number(),language:$.string(),timezone:$.string(),theme:$.enum(["light","dark"]).optional(),online:$.boolean().optional(),capturedAt:$.number()}),Pk=$.object({release:$.string().optional(),gitSha:$.string().optional(),environment:$.string().optional(),featureFlags:$.record($.string(),$.union([$.string(),$.boolean(),$.number()])).optional(),user:$.object({id:$.string().optional(),email:$.string().optional(),name:$.string().optional(),organization:$.string().optional()}).optional(),extra:$.record($.string(),$.unknown()).optional()}),Rk=$.object({domPath:$.string().optional(),tagName:$.string().optional(),text:$.string().optional(),boundingRect:$.object({x:$.number(),y:$.number(),width:$.number(),height:$.number()}).optional(),reactComponents:$.array($.string()).optional()}),it={id:$.string().optional(),color:$.string().optional(),strokeWidth:$.number().optional()},jy=$.object({x:$.number(),y:$.number()}),Ak=$.discriminatedUnion("kind",[$.object({...it,kind:$.literal("rect"),x:$.number(),y:$.number(),width:$.number(),height:$.number(),viewport:$.object({width:$.number(),height:$.number()}).optional()}),$.object({...it,kind:$.literal("ellipse"),x:$.number(),y:$.number(),width:$.number(),height:$.number()}),$.object({...it,kind:$.literal("blur"),x:$.number(),y:$.number(),width:$.number(),height:$.number()}),$.object({...it,kind:$.literal("arrow"),x1:$.number(),y1:$.number(),x2:$.number(),y2:$.number()}),$.object({...it,kind:$.literal("line"),x1:$.number(),y1:$.number(),x2:$.number(),y2:$.number()}),$.object({...it,kind:$.literal("pencil"),points:$.array(jy).min(2)}),$.object({...it,kind:$.literal("highlighter"),points:$.array(jy).min(2)}),$.object({...it,kind:$.literal("text"),x:$.number(),y:$.number(),text:$.string(),fontSize:$.number().optional()}),$.object({...it,kind:$.literal("step"),x:$.number(),y:$.number(),n:$.number()})]),vn=$.enum(["replay","console","network","dom","screenshot","attachment"]),Mk=$.object({kind:vn,key:$.string(),contentType:$.string(),byteSize:$.number().optional()}),Uk=$.enum(["initiated","submitted","triaged","linked","resolved"]),Ly=$.object({comment:$.string().optional(),annotations:$.array(Ak).default([]),target:Rk.optional(),env:Tk,app:Pk.optional(),errors:$.array(Dk).default([]),consoleTail:$.array(Nk).default([]),networkTail:$.array(zk).default([]),sdk:$.object({name:$.string(),version:$.string()})}),jk=$.object({id:$.string(),projectId:$.string(),status:Uk,createdAt:$.string(),submittedAt:$.string().nullable(),metadata:Ly.nullable(),assets:$.array(Mk).default([]),externalIssue:$.object({provider:$.string(),key:$.string(),url:$.string()}).nullable().default(null)}),OC=jk.pick({id:!0,projectId:!0,status:!0,createdAt:!0,submittedAt:!0,externalIssue:!0}).extend({comment:$.string().optional(),url:$.string().optional(),errorCount:$.number().default(0),hasReplay:$.boolean().default(!1)}),zC=$.object({accessId:$.string(),assets:$.array($.object({kind:vn,contentType:$.string()}))}),DC=$.object({reportId:$.string(),uploads:$.array($.object({kind:vn,key:$.string(),url:$.string(),method:$.literal("PUT"),headers:$.record($.string(),$.string())})),expiresAt:$.string()}),TC=$.object({accessId:$.string(),metadata:Ly,uploadedAssets:$.array($.object({kind:vn,key:$.string(),byteSize:$.number().optional()}))}),PC=$.object({reportId:$.string(),status:$.literal("submitted")}),RC=$.object({accessId:$.string(),kind:vn,key:$.string(),contentType:$.string(),byteSize:$.number().optional()}),AC=$.object({status:$.string().optional(),q:$.string().max(200).optional(),limit:$.coerce.number().min(1).max(100).default(50),cursor:$.string().optional()}),MC=$.object({error:$.string(),message:$.string()});var Lk="@merittdev/horus-lens",Fk="0.2.1",Zk="https://api.horus.sh",Bk=15e3,Wk=200,Vk=100,qk=100,Gk=50,Jk=30,Fy=2e3,Hk=2*1024*1024,Xk=200,Af=2e4,Kk=2,Yk=25e5,Qk=12e4,eI=1e4,Ff="__lens_root__",Mf=class{constructor(e){if(this.capacity=e,e<=0)throw new Error("RingBuffer capacity must be > 0")}capacity;items=[];push(e){this.items.push(e),this.items.length>this.capacity&&this.items.splice(0,this.items.length-this.capacity)}drain(){return[...this.items]}tail(e){return this.items.slice(-e)}clear(){this.items=[]}get size(){return this.items.length}},tI=class{constructor(e){this.config=e}config;async initiate(e){let r={accessId:this.config.accessId,assets:e};return this.postJson(`${this.config.endpoint}/v1/reports/initiate`,r)}async attachAsset(e,r){let n={accessId:this.config.accessId,...r};await this.postJson(`${this.config.endpoint}/v1/reports/${encodeURIComponent(e)}/assets`,n)}async uploadAsset(e,r){let n=await fetch(e.url,{method:e.method,headers:e.headers,body:r});if(!n.ok)throw new Error(`Asset upload failed (${e.kind}): ${n.status}`)}async finalize(e,r,n){let o={accessId:this.config.accessId,metadata:r,uploadedAssets:n};return this.postJson(`${this.config.endpoint}/v1/reports/${e}/finalize`,o)}async postJson(e,r,n=1){let o;for(let t=0;t<=n;t++)try{let i=await fetch(e,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(r)});if(!i.ok){let s=await i.text().catch(()=>"");throw new Error(`Request to ${e} failed: ${i.status} ${s}`.trim())}return await i.json()}catch(i){o=i,this.config.debug&&console.warn(`[lens] request failed (attempt ${t+1}/${n+1})`,i)}throw o}},rI=["log","info","warn","error","debug"];function Uo(e){return e.length>Fy?`${e.slice(0,Fy)}\u2026[truncated]`:e}function nI(e){if(e===null)return"null";if(e===void 0)return"undefined";let r=typeof e;if(r==="string")return Uo(e);if(r==="number"||r==="boolean"||r==="bigint"||r==="symbol")return String(e);if(r==="function")return`[Function: ${e.name||"anonymous"}]`;if(e instanceof Error)return Uo(e.stack?`${e.name}: ${e.message}
|
|
206
|
-
${e.stack}`:`${e.name}: ${e.message}`);try{let n=new WeakSet,o=JSON.stringify(e,(t,i)=>{if(typeof i=="bigint")return String(i);if(typeof i=="function")return"[Function]";if(typeof i=="object"&&i!==null){if(n.has(i))return"[Circular]";n.add(i)}return i});return Uo(o??String(e))}catch{return Uo(String(e))}}function iI(e){for(let r of e)if(r instanceof Error&&r.stack)return r.stack}function oI(e,r){if(typeof console>"u")return()=>{};let n=console,o=[];for(let t of rI){let i=n[t];if(typeof i!="function")continue;let s=(...a)=>{try{let c=a.map(nI),u=Date.now();if(e.push({level:t,args:c,timestamp:u}),t==="error"){let l=iI(a),p={message:c.join(" ")||"console.error",source:"console.error",timestamp:u};l&&(p.stack=l),r.push(p)}}catch{}i.apply(console,a)};n[t]=s,o.push(()=>{n[t]=i})}return()=>{for(let t of o)t()}}function yn(){return typeof performance<"u"&&typeof performance.now=="function"?performance.now():Date.now()}function sI(e){try{return typeof e=="string"?e:e instanceof URL?e.href:e.url}catch{return""}}function Zy(e,r){return r.length>0&&e.startsWith(r)}function aI(e){return e instanceof Error?e.message:String(e)}function lI(e,r){if(typeof window>"u")return()=>{};let n=[],o=window.fetch;if(typeof o=="function"){let i=function(s,a){let c=sI(s),u=(a?.method??(typeof Request<"u"&&s instanceof Request?s.method:"GET")).toUpperCase();if(Zy(c,r))return o.call(window,s,a);let l=Date.now(),p=yn();return o.call(window,s,a).then(f=>(e.push({method:u,url:c,status:f.status,ok:f.ok,durationMs:Math.round(yn()-p),requestType:"fetch",startedAt:l}),f),f=>{throw e.push({method:u,url:c,status:null,ok:null,durationMs:Math.round(yn()-p),requestType:"fetch",startedAt:l,error:aI(f)}),f})};window.fetch=i,n.push(()=>{window.fetch=o})}let t=window.XMLHttpRequest;if(typeof t=="function"){let i=t.prototype,s=i.open,a=i.send,c=new WeakMap,u=function(p,f){try{c.set(this,{method:String(p).toUpperCase(),url:String(f)})}catch{}return s.apply(this,arguments)},l=function(){let p=c.get(this);if(p&&!Zy(p.url,r)){let f=Date.now(),d=yn(),m=this;m.addEventListener("loadend",()=>{let h=m.status,g={method:p.method,url:p.url,status:h===0?null:h,ok:h===0?null:h>=200&&h<300,durationMs:Math.round(yn()-d),requestType:"xhr",startedAt:f};h===0&&(g.error="Network request failed"),e.push(g)},{once:!0})}return a.apply(this,arguments)};i.open=u,i.send=l,n.push(()=>{i.open=s,i.send=a})}return()=>{for(let i of n)i()}}function cI(e){if(typeof window>"u")return()=>{};let r=o=>{let t=o.error,i={message:o.message||(t instanceof Error?t.message:String(t??"Unknown error")),source:"window.onerror",timestamp:Date.now()};t instanceof Error&&t.stack&&(i.stack=t.stack),e.push(i)},n=o=>{let t=o.reason,i={message:t instanceof Error?t.message:String(t),source:"unhandledrejection",timestamp:Date.now()};t instanceof Error&&t.stack&&(i.stack=t.stack),e.push(i)};return window.addEventListener("error",r),window.addEventListener("unhandledrejection",n),()=>{window.removeEventListener("error",r),window.removeEventListener("unhandledrejection",n)}}var uI=class{constructor(e,r){this.windowMs=e,this.debug=r}windowMs;debug;current=[];previous=[];stopFn;warned=!1;manualBuffer=[];manualActive=!1;manualRetained=!1;manualTruncated=!1;manualStartTs=0;manualEndTs=0;start(){if(!this.stopFn&&!(typeof window>"u"||typeof document>"u"))try{let e=qe({emit:(r,n)=>this.onEmit(r,n),checkoutEveryNms:this.windowMs,recordCanvas:!1,inlineImages:!0,collectFonts:!0,blockSelector:`#${Ff}`});this.stopFn=e??void 0}catch(e){this.warnOnce(e)}}onEmit(e,r){if(this.manualActive){let n=e.timestamp-this.manualStartTs<=Qk,o=this.manualBuffer.length<eI;n&&o?this.manualBuffer.push(e):this.manualTruncated=!0;return}r&&(this.previous=this.current,this.current=[]),this.current.push(e)}startManualRecording(){this.manualBuffer=[],this.manualTruncated=!1,this.manualStartTs=Date.now(),this.manualEndTs=0,this.manualRetained=!0,this.manualActive=!0;let e=qe.takeFullSnapshot;if(this.stopFn&&typeof e=="function")try{e(!0);return}catch(r){this.warnOnce(r)}this.restart()}stopManualRecording(){return this.manualActive&&(this.manualActive=!1,this.manualEndTs=Date.now()),{durationMs:Math.max(0,this.manualEndTs-this.manualStartTs)}}discardManualRecording(){this.manualActive=!1,this.manualRetained=!1,this.manualTruncated=!1,this.manualBuffer=[]}isManualRecording(){return this.manualActive}hasManualRecording(){return this.manualRetained}isManualTruncated(){return this.manualTruncated}snapshot(){return this.manualRetained?[...this.manualBuffer]:[...this.previous,...this.current]}stop(){try{this.stopFn?.()}catch{}this.stopFn=void 0,this.current=[],this.previous=[],this.manualActive=!1,this.manualRetained=!1,this.manualBuffer=[]}restart(){try{this.stopFn?.()}catch{}this.stopFn=void 0,this.current=[],this.previous=[],this.start()}warnOnce(e){this.warned||!this.debug||(this.warned=!0,console.warn("[lens] rrweb recording unavailable; replay disabled",e))}},dI=3e3;function Wy(e,r,n,o){let t=Math.round(e.x*r),i=Math.round(e.y*r),s=Math.round(e.width*r),a=Math.round(e.height*r);return t=Math.max(0,Math.min(t,n)),i=Math.max(0,Math.min(i,o)),s=Math.min(s,n-t),a=Math.min(a,o-i),s<=0||a<=0?null:{sx:t,sy:i,sw:s,sh:a}}async function fI(e,r,n){if(typeof document>"u"||typeof window>"u")return null;try{let o=window.innerWidth*window.innerHeight||1,t=Math.sqrt(Yk/o),i=Math.max(1,Math.min(window.devicePixelRatio||1,Kk,t)),s=Lm(document.documentElement,{scale:i,type:"image/jpeg",quality:.82,backgroundColor:"#ffffff",...n?{width:n.docWidth,height:n.docHeight}:{},filter:l=>l!==e,fetch:{requestInit:{cache:"force-cache"},bypassingCache:!1},timeout:Af-1e3}),a=Date.now(),c=new Promise(l=>{setTimeout(()=>l(null),Af)}),u=await Promise.race([s.catch(l=>(console.warn("[lens] screenshot capture failed:",l),null)),c]);if(!u)return console.warn(`[lens] screenshot unavailable after ${Date.now()-a}ms`+(Date.now()-a>=Af-50?" (timed out)":"")),null;if(n){let l=await pI(u,n,i,r);if(l)return l;if(n.blurRegions.length>0)return console.warn("[lens] screenshot compositing failed with active redactions; dropping screenshot to avoid leaking un-blurred content"),null}return r?await vI(u,r,i)??u:u}catch(o){return console.warn("[lens] screenshot capture failed:",o),null}}async function pI(e,r,n,o){try{if(typeof createImageBitmap!="function"||typeof document>"u")return null;let t=await createImageBitmap(e),i=document.createElement("canvas");i.width=t.width,i.height=t.height;let s=i.getContext("2d");if(!s)return t.close?.(),null;if(s.fillStyle="#ffffff",s.fillRect(0,0,i.width,i.height),s.drawImage(t,0,0),t.close?.(),hI(s,i,r.blurRegions,n),await mI(s,r,n),o){let a=Wy(o,n,i.width,i.height);if(a){let c=document.createElement("canvas");c.width=a.sw,c.height=a.sh;let u=c.getContext("2d");if(u)return u.drawImage(i,a.sx,a.sy,a.sw,a.sh,0,0,a.sw,a.sh),await jf(c)}}return await jf(i)}catch(t){return console.warn("[lens] screenshot compositing failed:",t),null}}function hI(e,r,n,o){if(n.length===0)return;let t=typeof e.filter=="string",i=Math.max(8,12*o),s=Math.ceil(i);for(let a of n){let c=Math.max(0,Math.min(Math.round(a.x*o),r.width)),u=Math.max(0,Math.min(Math.round(a.y*o),r.height)),l=Math.min(Math.round(a.width*o),r.width-c),p=Math.min(Math.round(a.height*o),r.height-u);if(l<=0||p<=0)continue;if(!t){e.fillStyle="rgba(127,127,127,1)",e.fillRect(c,u,l,p);continue}let f=Math.max(0,c-s),d=Math.max(0,u-s),m=Math.min(r.width,c+l+s)-f,h=Math.min(r.height,u+p+s)-d;if(m<=0||h<=0)continue;let g=document.createElement("canvas");g.width=m,g.height=h;let x=g.getContext("2d");if(!x){e.fillStyle="rgba(127,127,127,1)",e.fillRect(c,u,l,p);continue}x.filter=`blur(${i}px)`,x.drawImage(r,f,d,m,h,0,0,m,h),x.filter="none",e.save(),e.beginPath(),e.rect(c,u,l,p),e.clip(),e.drawImage(g,f,d),e.restore()}}async function mI(e,r,n){let{svgMarkup:o,docWidth:t,docHeight:i}=r;if(!o)return;let s=await gI(o);if(s)try{e.drawImage(s,0,0,t*n,i*n)}catch(a){console.warn("[lens] annotation overlay draw failed:",a)}}function gI(e){return new Promise(r=>{if(typeof Image!="function"){r(null);return}let n=!1,o=s=>{n||(n=!0,clearTimeout(t),r(s))},t=setTimeout(()=>{console.warn("[lens] annotation overlay rasterization timed out"),o(null)},dI),i=new Image;i.onload=()=>o(i),i.onerror=()=>{console.warn("[lens] annotation overlay failed to rasterize"),o(null)},i.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(e)})}function jf(e){return new Promise(r=>{e.toBlob(n=>r(n),"image/jpeg",.82)})}async function vI(e,r,n){try{if(typeof createImageBitmap!="function"||typeof document>"u")return null;let o=await createImageBitmap(e),t=Wy(r,n,o.width,o.height);if(!t)return o.close?.(),null;let i=document.createElement("canvas");i.width=t.sw,i.height=t.sh;let s=i.getContext("2d");return s?(s.drawImage(o,t.sx,t.sy,t.sw,t.sh,0,0,t.sw,t.sh),o.close?.(),await jf(i)):(o.close?.(),null)}catch(o){return console.warn("[lens] screenshot crop failed:",o),null}}function yI(e){if(!e)return;let r=[[/Edg\/([\d.]+)/,n=>`Edge ${n[1]??""}`.trim()],[/OPR\/([\d.]+)/,n=>`Opera ${n[1]??""}`.trim()],[/Firefox\/([\d.]+)/,n=>`Firefox ${n[1]??""}`.trim()],[/Chrome\/([\d.]+)/,n=>`Chrome ${n[1]??""}`.trim()],[/Version\/([\d.]+).*Safari/,n=>`Safari ${n[1]??""}`.trim()],[/Safari\/([\d.]+)/,()=>"Safari"]];for(let[n,o]of r){let t=e.match(n);if(t)return o(t)}}function bI(e){if(e){if(/Windows NT 10/.test(e))return"Windows 10";if(/Windows NT/.test(e))return"Windows";if(/iPhone|iPad|iPod/.test(e))return"iOS";if(/Android/.test(e))return"Android";if(/Mac OS X/.test(e))return"macOS";if(/Linux/.test(e))return"Linux"}}function wI(e){let r=typeof navigator<"u"&&typeof navigator.maxTouchPoints=="number"?navigator.maxTouchPoints>0:typeof window<"u"&&"ontouchstart"in window;return/iPad|Tablet/.test(e)||/Android/.test(e)&&!/Mobile/.test(e)?"tablet":/Mobi|iPhone|iPod|Android.*Mobile/.test(e)||r&&/Android|iPhone|iPad/.test(e)?"mobile":"desktop"}function xI(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC"}catch{return"UTC"}}function _I(){try{if(typeof window>"u"||typeof window.matchMedia!="function")return;if(window.matchMedia("(prefers-color-scheme: dark)").matches)return"dark";if(window.matchMedia("(prefers-color-scheme: light)").matches)return"light"}catch{}}function SI(){let e=typeof navigator<"u"?navigator:void 0,r=typeof location<"u"?location:void 0,n=typeof window<"u"?window:void 0,o=typeof screen<"u"?screen:void 0,t=typeof document<"u"?document:void 0,i=e?.userAgent??"",s={url:r?.href??"",userAgent:i,viewport:{width:n?.innerWidth??0,height:n?.innerHeight??0},screen:{width:o?.width??0,height:o?.height??0},devicePixelRatio:n?.devicePixelRatio??1,language:e?.language??"en",timezone:xI(),capturedAt:Date.now()};r?.pathname&&(s.route=r.pathname);let a=t?.referrer;a&&(s.referrer=a);let c=yI(i);c&&(s.browser=c);let u=bI(i);u&&(s.os=u),s.device=wI(i);let l=_I();return l&&(s.theme=l),e&&typeof e.onLine=="boolean"&&(s.online=e.onLine),s}function By(e){return typeof CSS<"u"&&typeof CSS.escape=="function"?CSS.escape(e):e.replace(/[^a-zA-Z0-9_-]/g,r=>`\\${r}`)}function $I(e,r=10){if(typeof Element>"u"||!(e instanceof Element))return"";let n=[],o=e,t=0;for(;o&&o.nodeType===1&&t<r;){let i=o;if(i.id){n.unshift(`#${By(i.id)}`);break}let s=i.tagName.toLowerCase(),a=Array.from(i.classList).filter(Boolean).slice(0,3);a.length>0&&(s+=a.map(u=>`.${By(u)}`).join(""));let c=i.parentElement;if(c){let u=Array.from(c.children).filter(l=>l.tagName===i.tagName);u.length>1&&(s+=`:nth-of-type(${u.indexOf(i)+1})`)}n.unshift(s),o=c,t++}return n.join(" > ")}function Lf(e){if(!e)return null;if(typeof e=="function"){let r=e,n=r.displayName||r.name;return n&&n!=="Unknown"?n:null}if(typeof e=="object"){let r=e;if(r.displayName)return r.displayName;if(r.render)return Lf(r.render);if(r.type)return Lf(r.type)}return null}function kI(e,r=10){let n=[];try{let o=e,t=Object.keys(o).find(a=>a.startsWith("__reactFiber$"));if(!t)return n;let i=o[t],s=0;for(;i&&s<60&&n.length<r;){let a=Lf(i.type);a&&n[n.length-1]!==a&&n.push(a),i=i.return,s++}}catch{}return n}function II(e){if(!(typeof document>"u"))try{let r=document.documentElement?.outerHTML;return r?r.length>e?r.slice(0,e):r:void 0}catch{return}}function EI(e,r){let n={},o=$I(e);o&&(n.domPath=o),e.tagName&&(n.tagName=e.tagName.toLowerCase());let t=(e.textContent??"").replace(/\s+/g," ").trim().slice(0,r);t&&(n.text=t);try{let s=e.getBoundingClientRect();n.boundingRect={x:s.x,y:s.y,width:s.width,height:s.height}}catch{}let i=kI(e);return i.length>0&&(n.reactComponents=i),n}function Uf(e){return new Blob([JSON.stringify(e)],{type:"application/json"})}var Vy=class{accessId;endpoint;replayWindowMs;debug;screenshotEnabled;beforeSend;app;consoleBuffer;networkBuffer;errorBuffer;transport;replay;teardowns=[];started=!1;constructor(e){this.accessId=e.accessId,this.endpoint=(e.endpoint??Zk).replace(/\/+$/,""),this.debug=e.debug??!1,this.screenshotEnabled=e.screenshot??!0,this.beforeSend=e.beforeSend,this.app=e.app??{},this.replayWindowMs=e.replay===!1?null:e.replay?.windowMs??Bk,this.consoleBuffer=new Mf(e.maxConsoleEntries??Wk),this.networkBuffer=new Mf(e.maxNetworkEntries??Vk),this.errorBuffer=new Mf(qk),this.transport=new tI({accessId:this.accessId,endpoint:this.endpoint,debug:this.debug}),this.replay=this.replayWindowMs!==null?new uI(this.replayWindowMs,this.debug):void 0}start(){if(!this.started){if(typeof window>"u"){this.warn("start() called outside a browser environment; collectors not installed");return}this.started=!0,this.teardowns.push(oI(this.consoleBuffer,this.errorBuffer)),this.teardowns.push(lI(this.networkBuffer,this.endpoint)),this.teardowns.push(cI(this.errorBuffer)),this.replay?.start()}}stop(){if(this.started){this.started=!1;for(let e of this.teardowns.splice(0))try{e()}catch{}this.replay?.stop()}}setApp(e){this.app={...this.app,...e}}captureTarget(e){return EI(e,Xk)}startRecording(){this.replay?.startManualRecording()}stopRecording(){return this.replay?.stopManualRecording()??null}discardRecording(){this.replay?.discardManualRecording()}isRecording(){return this.replay?.isManualRecording()??!1}async submitReport(e){let r=e.include??{},n=r.replay!==!1,o=r.console!==!1,t=r.network!==!1,i=r.errors!==!1,s=r.screenshot!==!1,a=r.dom!==!1,c=this.screenshotEnabled&&s?fI(e.excludeFromScreenshot,e.screenshotCrop,e.annotationComposite):Promise.resolve(null),u=n?this.replay?.snapshot()??[]:[],l=this.errorBuffer.drain(),p=this.consoleBuffer.tail(Gk),f=this.networkBuffer.tail(Jk),d=this.consoleBuffer.drain(),m=this.networkBuffer.drain(),h={annotations:e.annotations??[],env:SI(),app:this.app,errors:i?l:[],consoleTail:o?p:[],networkTail:t?f:[],sdk:{name:Lk,version:Fk}};if(e.comment!==void 0&&(h.comment=e.comment),e.target!==void 0&&(h.target=e.target),this.beforeSend){let S=this.beforeSend(h);if(!S)throw new Error("[lens] report cancelled by beforeSend");h=S}let g=[];n&&g.push({kind:"replay",contentType:"application/json",blob:Uf(u)}),o&&g.push({kind:"console",contentType:"application/json",blob:Uf(d)}),t&&g.push({kind:"network",contentType:"application/json",blob:Uf(m)});let x=a?II(Hk):null;x&&g.push({kind:"dom",contentType:"text/html",blob:new Blob([x],{type:"text/html"})}),this.screenshotEnabled&&s&&g.push({kind:"screenshot",contentType:"image/jpeg",blob:null});for(let S of e.attachments??[])g.push({kind:"attachment",contentType:S.contentType,blob:S.blob});let y=await this.transport.initiate(g.map(S=>({kind:S.kind,contentType:S.contentType}))),_=[],v;for(let S=0;S<y.uploads.length;S++){let C=y.uploads[S],R=g[S];if(!(!C||!R)){if(R.kind==="screenshot"){v=C;continue}if(R.blob)try{await this.transport.uploadAsset(C,R.blob),_.push({kind:C.kind,key:C.key,byteSize:R.blob.size})}catch(O){this.warn(`asset upload failed (${C.kind})`,O)}}}let w=await this.transport.finalize(y.reportId,h,_);if(v){let S=v;c.then(async C=>{C&&(await this.transport.uploadAsset(S,C),await this.transport.attachAsset(w.reportId,{kind:"screenshot",key:S.key,contentType:C.type||"image/jpeg",byteSize:C.size}))}).catch(C=>{console.warn("[lens] background screenshot upload failed:",C)})}return{reportId:w.reportId}}warn(e,r){this.debug&&(r!==void 0?console.warn(`[lens] ${e}`,r):console.warn(`[lens] ${e}`))}};var Lo="lens",Gf="lens:active",CI="lense",OI="lense:active",Ky=new Set(["","true","1","on","yes"]),Yy=new Set(["false","0","off","no"]);function Kf(){return typeof window<"u"&&typeof document<"u"}function Qy(e){try{let r=new URLSearchParams(window.location.search),n=r.get(e);return n!==null?n:e===Lo?r.get(CI):null}catch{return null}}function eb(){try{let e=window.sessionStorage;return e.getItem(Gf)==="1"||e.getItem(OI)==="1"}catch{return!1}}function Jf(e){try{e?window.sessionStorage.setItem(Gf,"1"):window.sessionStorage.removeItem(Gf)}catch{}}function NI(e=Lo){if(!Kf())return!1;let r=Qy(e);if(r!==null){let n=r.trim().toLowerCase();if(Yy.has(n))return Jf(!1),!1;if(Ky.has(n))return Jf(!0),!0}return eb()}function tb(e=Lo){if(!Kf())return!1;let r=Qy(e);if(r!==null){let n=r.trim().toLowerCase();if(Yy.has(n))return!1;if(Ky.has(n))return!0}return eb()}function qy(){Kf()&&Jf(!1)}function zI(e=navigator.userAgent){return/Edg\//.test(e)?"Edge":/OPR\/|Opera/.test(e)?"Opera":/Firefox\//.test(e)?"Firefox":/Chrome\//.test(e)&&!/Chromium/.test(e)?"Chrome":/Chromium\//.test(e)?"Chromium":/Safari\//.test(e)&&/Version\//.test(e)?"Safari":"Browser"}function DI(e=navigator.userAgent){return/Windows NT/.test(e)?"Windows":/Mac OS X|Macintosh/.test(e)?"macOS":/Android/.test(e)?"Android":/iPhone|iPad|iPod/.test(e)?"iOS":/Linux/.test(e)?"Linux":"Unknown"}function TI(){return{width:window.innerWidth||document.documentElement.clientWidth||0,height:window.innerHeight||document.documentElement.clientHeight||0}}function PI(){return(window.location.pathname||"/")+(window.location.search||"")}function A(e,r={},n=[]){let o=document.createElement(e);if(r.class&&(o.className=r.class),r.text!==void 0&&(o.textContent=r.text),r.html!==void 0&&(o.innerHTML=r.html),r.title&&(o.title=r.title),r.ariaLabel&&o.setAttribute("aria-label",r.ariaLabel),r.type&&"type"in o&&(o.type=r.type),r.placeholder&&"placeholder"in o&&(o.placeholder=r.placeholder),r.attrs)for(let[t,i]of Object.entries(r.attrs))o.setAttribute(t,i);if(r.style&&Object.assign(o.style,r.style),r.on)for(let[t,i]of Object.entries(r.on))i&&o.addEventListener(t,i);for(let t of n)t==null||t===!1||o.append(t);return o}function Zf(e){for(;e.firstChild;)e.removeChild(e.firstChild)}var RI=3,AI=2e3,Gy=14,bn=12;function jo(e,r){return Math.hypot(e.x-r.x,e.y-r.y)}function MI(e,r,n=RI){return jo(e,r)>=n}function UI(e,r,n){let o=n.x-r.x,t=n.y-r.y,i=o*o+t*t;if(i===0)return jo(e,r);let s=((e.x-r.x)*o+(e.y-r.y)*t)/i;return s=Math.max(0,Math.min(1,s)),jo(e,{x:r.x+s*o,y:r.y+s*t})}function Hf(e,r=1){if(e.length<=2||r<=0)return e.map(s=>({...s}));let n=e[0],o=e[e.length-1],t=0,i=0;for(let s=1;s<e.length-1;s++){let a=UI(e[s],n,o);a>t&&(t=a,i=s)}if(t>r){let s=Hf(e.slice(0,i+1),r),a=Hf(e.slice(i),r);return s.slice(0,-1).concat(a)}return[{...n},{...o}]}function jI(e,r,n,o,t=14){let i=Math.atan2(o-r,n-e),s=Math.PI/7;return[{x:n,y:o},{x:n-t*Math.cos(i-s),y:o-t*Math.sin(i-s)},{x:n-t*Math.cos(i+s),y:o-t*Math.sin(i+s)}]}function Jy(e){switch(e.kind){case"rect":case"ellipse":case"blur":{let r=Math.min(e.x,e.x+e.width),n=Math.min(e.y,e.y+e.height);return{x:r,y:n,width:Math.abs(e.width),height:Math.abs(e.height)}}case"arrow":case"line":{let r=Math.min(e.x1,e.x2),n=Math.min(e.y1,e.y2);return{x:r,y:n,width:Math.abs(e.x2-e.x1),height:Math.abs(e.y2-e.y1)}}case"pencil":case"highlighter":{if(e.points.length===0)return null;let r=1/0,n=1/0,o=-1/0,t=-1/0;for(let i of e.points)r=Math.min(r,i.x),n=Math.min(n,i.y),o=Math.max(o,i.x),t=Math.max(t,i.y);return{x:r,y:n,width:o-r,height:t-n}}case"text":{let r=e.fontSize??16,n=Math.max(1,e.text.length*r*.6);return{x:e.x,y:e.y,width:n,height:r*1.2}}case"step":return{x:e.x-bn,y:e.y-bn,width:bn*2,height:bn*2}}}function LI(e){if(e.length===0)return null;let r=1/0,n=1/0,o=-1/0,t=-1/0;for(let i of e)r=Math.min(r,i.x),n=Math.min(n,i.y),o=Math.max(o,i.x+i.width),t=Math.max(t,i.y+i.height);return{x:r,y:n,width:o-r,height:t-n}}function FI(e,r,n,o){let t=Math.max(0,e.x-r),i=Math.max(0,e.y-r),s=Math.min(n,e.x+e.width+r),a=Math.min(o,e.y+e.height+r);return{x:t,y:i,width:Math.max(0,s-t),height:Math.max(0,a-i)}}var he=e=>`<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">${e}</svg>`,ZI=he('<path d="M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/>'),BI=he('<circle cx="12" cy="12" r="8"/><line x1="12" y1="2" x2="12" y2="6"/><line x1="12" y1="18" x2="12" y2="22"/><line x1="2" y1="12" x2="6" y2="12"/><line x1="18" y1="12" x2="22" y2="12"/>'),Xf=he('<line x1="6" y1="6" x2="18" y2="18"/><line x1="18" y1="6" x2="6" y2="18"/>'),JC=he('<rect x="3" y="3" width="18" height="18" rx="2" stroke-dasharray="4 3"/>'),Hy=he('<rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V5a2 2 0 0 1 2-2h10"/>'),Bf=he('<polyline points="20 6 9 17 4 12"/>'),WI=he('<line x1="22" y1="2" x2="11" y2="13"/><polygon points="22 2 15 22 11 13 2 9 22 2"/>'),VI='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" aria-hidden="true"><circle cx="12" cy="12" r="6" fill="#ef4444"/></svg>',qI='<svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><rect x="6" y="6" width="12" height="12" rx="2"/></svg>',GI=he('<rect x="4" y="6" width="16" height="12" rx="1"/>'),JI=he('<ellipse cx="12" cy="12" rx="8" ry="6"/>'),HI=he('<line x1="5" y1="19" x2="18" y2="6"/><polyline points="18 12 18 6 12 6"/>'),XI=he('<line x1="5" y1="19" x2="19" y2="5"/>'),rb=he('<path d="M12 20h9"/><path d="M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"/>'),KI=he('<path d="m9 11-6 6v3h9l3-3"/><path d="m22 12-4.6 4.6a1 1 0 0 1-1.4 0l-5.6-5.6a1 1 0 0 1 0-1.4L14 4"/>'),YI=he('<polyline points="4 7 4 4 20 4 20 7"/><line x1="12" y1="4" x2="12" y2="20"/><line x1="9" y1="20" x2="15" y2="20"/>'),QI=he('<circle cx="12" cy="12" r="9"/><path d="M11.2 9 13 8v8"/>'),e0=he('<path d="M12 3s6 6.4 6 10a6 6 0 0 1-12 0c0-3.6 6-10 6-10Z"/>'),t0=he('<path d="M9 14 4 9l5-5"/><path d="M4 9h11a5 5 0 0 1 0 10h-1"/>'),r0=he('<polyline points="3 6 5 6 21 6"/><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/>'),n0=rb,ot="http://www.w3.org/2000/svg",Xy="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",Wf=6,i0=[{tool:"rect",icon:GI,label:"Rectangle"},{tool:"ellipse",icon:JI,label:"Ellipse"},{tool:"arrow",icon:HI,label:"Arrow"},{tool:"line",icon:XI,label:"Line"},{tool:"pencil",icon:rb,label:"Pencil"},{tool:"highlighter",icon:KI,label:"Highlighter"},{tool:"text",icon:YI,label:"Text"},{tool:"step",icon:QI,label:"Step number"},{tool:"blur",icon:e0,label:"Blur / redact"}],Vf=["#ef4444","#f59e0b","#22c55e","#3b82f6","#8b5cf6","#111827"],o0=[{label:"S",value:2},{label:"M",value:3.5},{label:"L",value:6}],s0=class{constructor(e){this.host=e}host;svg=null;bg=null;toolbar=null;textInputEl=null;textAnchor=null;textColor=Vf[0];annotations=[];markNodes=[];drag=null;active=!1;sessionBase=0;stepCounter=0;idSeq=0;onExit=null;tool="rect";color=Vf[0];width=3.5;docW=0;docH=0;resizeObserver=null;toolBtns=new Map;colorBtns=new Map;widthBtns=new Map;undoBtn=null;clearBtn=null;get isActive(){return this.active}get count(){return this.annotations.length}list(){return this.annotations.map(e=>{let r={...e};return"points"in r&&Array.isArray(r.points)&&(r.points=r.points.map(n=>({...n}))),r.kind==="rect"&&r.viewport&&(r.viewport={...r.viewport}),r})}clear(){for(let e of this.markNodes)e.remove();this.markNodes=[],this.annotations=[],this.stepCounter=0,this.active||this.teardownLayer(),this.syncActionButtons()}start(e){if(this.active)return;this.ensureLayer();let r=this.svg;this.active=!0,this.onExit=e,this.sessionBase=this.annotations.length,this.stepCounter=0,this.sizeLayer(),this.updateTransform(),r.style.pointerEvents="auto",r.style.touchAction="none",r.style.cursor="crosshair",r.addEventListener("pointerdown",this.onPointerDown),this.buildToolbar(),window.addEventListener("keydown",this.onKey,!0)}exit(){if(!this.active)return;this.active=!1,this.commitTextInput(),this.drag&&(this.drag.node.remove(),this.detachDragListeners(),this.drag=null);let e=this.svg;e&&(e.removeEventListener("pointerdown",this.onPointerDown),e.style.pointerEvents="none",e.style.touchAction="",e.style.cursor=""),window.removeEventListener("keydown",this.onKey,!0),this.removeToolbar();let r=this.onExit;this.onExit=null,r?.()}cancel(){this.cancelTextInput();let e=this.markNodes.splice(this.sessionBase);for(let r of e)r.remove();this.annotations.splice(this.sessionBase),this.exit()}undo(){let e=this.markNodes.pop();e&&(e.remove(),this.annotations.pop(),this.syncActionButtons())}getComposite(){if(this.annotations.length===0||!this.svg)return null;this.sizeLayer();let e=this.docW,r=this.docH,n=this.svg.cloneNode(!0);n.removeAttribute("style"),n.removeAttribute("class"),n.querySelectorAll("[data-lens-chrome],[data-lens-draft],[data-lens-blur]").forEach(i=>i.remove()),n.querySelector("defs")?.remove(),n.setAttribute("xmlns",ot),n.setAttribute("viewBox",`0 0 ${e} ${r}`),n.setAttribute("width",String(e)),n.setAttribute("height",String(r));let o=new XMLSerializer().serializeToString(n),t=this.annotations.filter(i=>i.kind==="blur").map(i=>({x:i.x,y:i.y,width:i.width,height:i.height}));return{svgMarkup:o,docWidth:e,docHeight:r,blurRegions:t}}getCropBounds(){if(this.annotations.length===0)return;let e=[];for(let n=0;n<this.annotations.length;n++){let o=this.annotations[n],t=o.kind==="text"?this.textBounds(n):Jy(o);t&&e.push(t)}let r=LI(e);if(r)return this.sizeLayer(),FI(r,24,this.docW,this.docH)}textBounds(e){let r=this.markNodes[e],n=this.annotations[e];if(r&&typeof r.getBBox=="function")try{let o=r.getBBox();if(o.width>0&&o.height>0)return{x:o.x,y:o.y,width:o.width,height:o.height}}catch{}return Jy(n)}ensureLayer(){if(this.svg)return;let e=document.createElementNS(ot,"svg");e.setAttribute("class","lens-annotate-svg"),e.setAttribute("xmlns",ot);let r=document.createElementNS(ot,"defs");r.setAttribute("data-lens-chrome","1");let n=document.createElementNS(ot,"pattern");n.setAttribute("id","lens-blur-hatch"),n.setAttribute("width","8"),n.setAttribute("height","8"),n.setAttribute("patternUnits","userSpaceOnUse"),n.setAttribute("patternTransform","rotate(45)");let o=document.createElementNS(ot,"rect");o.setAttribute("width","8"),o.setAttribute("height","8"),o.setAttribute("fill","rgba(17,24,39,0.12)");let t=document.createElementNS(ot,"line");t.setAttribute("x1","0"),t.setAttribute("y1","0"),t.setAttribute("x2","0"),t.setAttribute("y2","8"),t.setAttribute("stroke","rgba(17,24,39,0.55)"),t.setAttribute("stroke-width","4"),n.append(o,t),r.append(n),e.append(r);let i=document.createElementNS(ot,"rect");i.setAttribute("data-lens-chrome","1"),i.setAttribute("x","0"),i.setAttribute("y","0"),i.setAttribute("fill","transparent"),i.style.pointerEvents="all",e.append(i),this.svg=e,this.bg=i,this.host.append(e),window.addEventListener("scroll",this.onScroll,{passive:!0,capture:!0}),window.addEventListener("resize",this.onResize),typeof ResizeObserver<"u"&&(this.resizeObserver=new ResizeObserver(this.onResize),this.resizeObserver.observe(document.documentElement)),this.sizeLayer(),this.updateTransform()}teardownLayer(){window.removeEventListener("scroll",this.onScroll,!0),window.removeEventListener("resize",this.onResize),this.resizeObserver?.disconnect(),this.resizeObserver=null,this.svg?.remove(),this.svg=null,this.bg=null}docSize(){let e=document.documentElement,r=document.body,n=Math.max(e.scrollWidth,r?.scrollWidth??0,e.clientWidth),o=Math.max(e.scrollHeight,r?.scrollHeight??0,e.clientHeight);return{width:n,height:o}}sizeLayer(){if(!this.svg)return;let{width:e,height:r}=this.docSize();this.docW=e,this.docH=r,this.svg.setAttribute("width",String(e)),this.svg.setAttribute("height",String(r)),this.svg.setAttribute("viewBox",`0 0 ${e} ${r}`),this.svg.style.width=`${e}px`,this.svg.style.height=`${r}px`,this.bg&&(this.bg.setAttribute("width",String(e)),this.bg.setAttribute("height",String(r)))}updateTransform(){if(!this.svg)return;let e=window.scrollX||window.pageXOffset||0,r=window.scrollY||window.pageYOffset||0;this.svg.style.left=`${-e}px`,this.svg.style.top=`${-r}px`}onScroll=()=>this.updateTransform();onResize=()=>{this.sizeLayer(),this.updateTransform()};buildToolbar(){this.toolBtns.clear(),this.colorBtns.clear(),this.widthBtns.clear();let e=A("div",{class:"lens-tool-group"});for(let{tool:i,icon:s,label:a}of i0){let c=A("button",{class:"lens-tool-btn",ariaLabel:a,title:a,html:s,attrs:{type:"button","aria-pressed":String(i===this.tool)},on:{click:()=>this.selectTool(i)}});this.toolBtns.set(i,c),e.append(c)}let r=A("div",{class:"lens-tool-group lens-swatches"});for(let i of Vf){let s=A("button",{class:"lens-swatch",ariaLabel:`Color ${i}`,title:i,attrs:{type:"button","aria-pressed":String(i===this.color)},style:{background:i},on:{click:()=>this.selectColor(i)}});this.colorBtns.set(i,s),r.append(s)}let n=A("div",{class:"lens-tool-group"});for(let{label:i,value:s}of o0){let a=A("button",{class:"lens-width-btn",text:i,ariaLabel:`Stroke width ${i}`,title:`Stroke ${i} (${s}px)`,attrs:{type:"button","aria-pressed":String(s===this.width)},on:{click:()=>this.selectWidth(s)}});this.widthBtns.set(s,a),n.append(a)}this.undoBtn=A("button",{class:"lens-tool-btn",ariaLabel:"Undo",title:"Undo",html:t0,attrs:{type:"button"},on:{click:()=>this.undo()}}),this.clearBtn=A("button",{class:"lens-tool-btn",ariaLabel:"Clear all",title:"Clear all",html:r0,attrs:{type:"button"},on:{click:()=>this.clear()}});let o=A("div",{class:"lens-tool-group"},[this.undoBtn,this.clearBtn]),t=A("div",{class:"lens-tool-group"},[A("button",{class:"lens-pick-chip__btn",text:"Cancel",attrs:{type:"button"},on:{click:()=>this.cancel()}}),A("button",{class:"lens-pick-chip__btn lens-pick-chip__btn--primary",text:"Done",attrs:{type:"button"},on:{click:()=>this.exit()}})]);this.toolbar=A("div",{class:"lens-annotate-toolbar",attrs:{role:"toolbar","aria-label":"Annotation tools"}},[e,A("span",{class:"lens-tool-sep"}),r,A("span",{class:"lens-tool-sep"}),n,A("span",{class:"lens-tool-sep"}),o,A("span",{class:"lens-tool-sep"}),t]),this.host.append(this.toolbar),this.syncActionButtons()}removeToolbar(){this.toolbar?.remove(),this.toolbar=null,this.toolBtns.clear(),this.colorBtns.clear(),this.widthBtns.clear(),this.undoBtn=null,this.clearBtn=null}selectTool(e){this.commitTextInput(),this.tool=e;for(let[r,n]of this.toolBtns){let o=r===e;n.classList.toggle("is-active",o),n.setAttribute("aria-pressed",String(o))}this.svg&&(this.svg.style.cursor=e==="text"?"text":"crosshair")}selectColor(e){this.color=e;for(let[r,n]of this.colorBtns){let o=r===e;n.classList.toggle("is-active",o),n.setAttribute("aria-pressed",String(o))}}selectWidth(e){this.width=e;for(let[r,n]of this.widthBtns){let o=r===e;n.classList.toggle("is-active",o),n.setAttribute("aria-pressed",String(o))}}syncActionButtons(){let e=this.markNodes.length===0;this.undoBtn&&(this.undoBtn.disabled=e),this.clearBtn&&(this.clearBtn.disabled=e)}toDoc(e){return{x:e.clientX+(window.scrollX||window.pageXOffset||0),y:e.clientY+(window.scrollY||window.pageYOffset||0)}}onPointerDown=e=>{if(!this.active||e.button!==void 0&&e.button!==0)return;e.preventDefault();let r=this.toDoc(e),n=this.tool;if(n==="text"){this.openTextInput(e.clientX,e.clientY,r);return}if(n==="step"){this.placeStep(r);return}let o=this.color,t=this.width,i;if(n==="pencil"||n==="highlighter"){let s=this.svgEl("polyline",{"data-lens-draft":"1",fill:"none",stroke:o,"stroke-width":n==="highlighter"?Gy:t,"stroke-linecap":"round","stroke-linejoin":"round",...n==="highlighter"?{"stroke-opacity":"0.35"}:{},points:`${r.x},${r.y}`});this.svg.append(s),i={tool:n,color:o,width:t,start:r,node:s,points:[r],last:r}}else if(n==="arrow"){let s=this.svgEl("g",{"data-lens-draft":"1"}),a=this.svgEl("line",{stroke:o,"stroke-width":t,"stroke-linecap":"round"}),c=this.svgEl("polygon",{fill:o});s.append(a,c),this.svg.append(s),i={tool:n,color:o,width:t,start:r,node:s,line:a,head:c},this.updateArrow(i,r)}else{let s=this.createShapeNode(n,o,t);this.svg.append(s),i={tool:n,color:o,width:t,start:r,node:s},this.updateShape(i,r)}this.drag=i,window.addEventListener("pointermove",this.onPointerMove,!0),window.addEventListener("pointerup",this.onPointerUp,!0)};onPointerMove=e=>{let r=this.drag;if(!r)return;let n=this.toDoc(e);if(r.tool==="pencil"||r.tool==="highlighter"){let o=r.points;r.last&&MI(r.last,n)&&o.length<AI&&(o.push(n),r.last=n,r.node.setAttribute("points",this.pointsAttr(o)))}else r.tool==="arrow"?this.updateArrow(r,n):this.updateShape(r,n)};onPointerUp=e=>{let r=this.drag;if(this.detachDragListeners(),this.drag=null,!r)return;let n=this.toDoc(e),o=null;if(r.tool==="pencil"||r.tool==="highlighter"){let t=r.points;if(t.length>=2&&(t=Hf(t,1)),t.length<2){r.node.remove();return}r.node.setAttribute("points",this.pointsAttr(t)),o=r.tool==="pencil"?{kind:"pencil",points:t,color:r.color,strokeWidth:r.width,id:this.nextId()}:{kind:"highlighter",points:t,color:r.color,strokeWidth:Gy,id:this.nextId()}}else if(r.tool==="arrow"||r.tool==="line"){if(jo(r.start,n)<Wf){r.node.remove();return}r.tool==="arrow"?(this.updateArrow(r,n),o={kind:"arrow",x1:r.start.x,y1:r.start.y,x2:n.x,y2:n.y,color:r.color,strokeWidth:r.width,id:this.nextId()}):(this.updateShape(r,n),o={kind:"line",x1:r.start.x,y1:r.start.y,x2:n.x,y2:n.y,color:r.color,strokeWidth:r.width,id:this.nextId()})}else{let t=Math.min(r.start.x,n.x),i=Math.min(r.start.y,n.y),s=Math.abs(n.x-r.start.x),a=Math.abs(n.y-r.start.y);if(s<Wf||a<Wf){r.node.remove();return}this.updateShape(r,n),r.tool==="rect"?o={kind:"rect",x:t,y:i,width:s,height:a,color:r.color,strokeWidth:r.width,id:this.nextId()}:r.tool==="ellipse"?o={kind:"ellipse",x:t,y:i,width:s,height:a,color:r.color,strokeWidth:r.width,id:this.nextId()}:o={kind:"blur",x:t,y:i,width:s,height:a,id:this.nextId()}}r.node.removeAttribute("data-lens-draft"),this.commitMark(o,r.node)};detachDragListeners(){window.removeEventListener("pointermove",this.onPointerMove,!0),window.removeEventListener("pointerup",this.onPointerUp,!0)}commitMark(e,r){this.annotations.push(e),this.markNodes.push(r),this.syncActionButtons()}createShapeNode(e,r,n){return e==="ellipse"?this.svgEl("ellipse",{"data-lens-draft":"1",fill:"none",stroke:r,"stroke-width":n}):e==="line"?this.svgEl("line",{"data-lens-draft":"1",stroke:r,"stroke-width":n,"stroke-linecap":"round"}):e==="blur"?this.svgEl("rect",{"data-lens-draft":"1","data-lens-blur":"1",fill:"url(#lens-blur-hatch)",stroke:"#111827","stroke-width":1,"stroke-dasharray":"4 3"}):this.svgEl("rect",{"data-lens-draft":"1",fill:"none",stroke:r,"stroke-width":n,rx:2})}updateShape(e,r){let n=Math.min(e.start.x,r.x),o=Math.min(e.start.y,r.y),t=Math.abs(r.x-e.start.x),i=Math.abs(r.y-e.start.y),s=e.node;e.tool==="ellipse"?(s.setAttribute("cx",String(n+t/2)),s.setAttribute("cy",String(o+i/2)),s.setAttribute("rx",String(t/2)),s.setAttribute("ry",String(i/2))):e.tool==="line"?(s.setAttribute("x1",String(e.start.x)),s.setAttribute("y1",String(e.start.y)),s.setAttribute("x2",String(r.x)),s.setAttribute("y2",String(r.y))):(s.setAttribute("x",String(n)),s.setAttribute("y",String(o)),s.setAttribute("width",String(t)),s.setAttribute("height",String(i)))}updateArrow(e,r){if(!e.line||!e.head)return;e.line.setAttribute("x1",String(e.start.x)),e.line.setAttribute("y1",String(e.start.y)),e.line.setAttribute("x2",String(r.x)),e.line.setAttribute("y2",String(r.y));let n=Math.max(12,e.width*3),o=jI(e.start.x,e.start.y,r.x,r.y,n);e.head.setAttribute("points",this.pointsAttr(o))}openTextInput(e,r,n){this.commitTextInput();let o=A("input",{class:"lens-text-input",attrs:{type:"text","aria-label":"Annotation text"},style:{left:`${e}px`,top:`${r}px`,color:this.color}});o.addEventListener("blur",()=>this.commitTextInput()),this.host.append(o),this.textInputEl=o,this.textAnchor=n,this.textColor=this.color,o.focus()}commitTextInput(){let e=this.textInputEl,r=this.textAnchor;if(!e||!r)return;let n=e.value.trim();if(this.textInputEl=null,this.textAnchor=null,e.remove(),!n)return;let o=this.svgEl("text",{x:r.x,y:r.y,fill:this.textColor,"font-size":16,"font-family":Xy,"dominant-baseline":"hanging"});o.textContent=n,this.svg.append(o),this.commitMark({kind:"text",x:r.x,y:r.y,text:n,fontSize:16,color:this.textColor,id:this.nextId()},o)}cancelTextInput(){this.textInputEl&&(this.textInputEl.remove(),this.textInputEl=null,this.textAnchor=null)}placeStep(e){let r=++this.stepCounter,n=this.svgEl("g",{}),o=this.svgEl("circle",{cx:e.x,cy:e.y,r:bn,fill:this.color}),t=this.svgEl("text",{x:e.x,y:e.y,fill:"#ffffff","font-size":13,"font-weight":700,"font-family":Xy,"text-anchor":"middle","dominant-baseline":"central"});t.textContent=String(r),n.append(o,t),this.svg.append(n),this.commitMark({kind:"step",x:e.x,y:e.y,n:r,color:this.color,id:this.nextId()},n)}onKey=e=>{if(this.textInputEl){e.key==="Escape"?(e.preventDefault(),e.stopPropagation(),this.cancelTextInput()):e.key==="Enter"&&(e.preventDefault(),e.stopPropagation(),this.commitTextInput());return}e.key==="Escape"&&(e.preventDefault(),e.stopPropagation(),this.exit())};svgEl(e,r){let n=document.createElementNS(ot,e);for(let[o,t]of Object.entries(r))n.setAttribute(o,String(t));return n}pointsAttr(e){return e.map(r=>`${r.x},${r.y}`).join(" ")}nextId(){return`lens-${++this.idSeq}`}},a0=[{key:"replay",label:"Replay"},{key:"console",label:"Console"},{key:"network",label:"Network"},{key:"errors",label:"Errors"},{key:"screenshot",label:"Screenshot"}],l0=class{constructor(e){this.cb=e,this.body=A("div",{class:"lens-panel__body"}),this.root=A("div",{class:"lens-panel",attrs:{role:"dialog","aria-label":"Report an issue"}},[A("div",{class:"lens-panel__head"},[A("div",{class:"lens-panel__title",text:"Report an issue"}),A("button",{class:"lens-panel__x",ariaLabel:"Close",html:Xf,on:{click:()=>this.cb.onClose()}})]),this.body]),this.renderForm()}cb;root;body;textarea;submitBtn;autoCloseTimer=null;submitting=!1;include={replay:!0,console:!0,network:!0,errors:!0,screenshot:!0};refresh(){this.submitting||this.renderForm()}focus(){this.textarea?.focus()}destroy(){this.autoCloseTimer&&clearTimeout(this.autoCloseTimer),this.root.remove()}renderForm(){let e=this.textarea?.value??"";Zf(this.body),this.textarea=A("textarea",{class:"lens-textarea",placeholder:"What's wrong? Describe the issue\u2026",ariaLabel:"Issue description"}),this.textarea.value=e,this.body.append(this.textarea,this.buildContext(),this.buildIncludes(),this.buildChips(),this.buildActions())}buildContext(){let e=this.cb.getStats(),r=[qf(e.route||e.url,40),`${e.browser} \xB7 ${e.os}`,`${e.viewport.width}\xD7${e.viewport.height}`],n=[];return r.forEach((o,t)=>{t>0&&n.push(A("span",{class:"lens-context__dot",text:"\xB7"})),n.push(A("span",{class:"lens-context__item",text:o}))}),A("div",{class:"lens-context",title:e.url},n)}buildIncludes(){let e=this.cb.getStats(),r={console:e.console,network:e.network,errors:e.errors},n=a0.map(o=>this.buildToggle(o.key,o.label,r[o.key]));return A("div",{class:"lens-includes"},[A("span",{class:"lens-includes__label",text:"Include:"}),...n])}buildToggle(e,r,n){let o=this.include[e],t=A("button",{class:`lens-tgl${o?" is-on":""}`,attrs:{type:"button",role:"switch","aria-checked":String(o)},html:`<span class="lens-tgl__check" aria-hidden="true">${Bf}</span>`});return t.append(A("span",{class:"lens-tgl__label",text:r})),typeof n=="number"&&n>0&&t.append(A("span",{class:"lens-tgl__count",text:String(n)})),t.addEventListener("click",()=>{let i=!this.include[e];this.include[e]=i,t.classList.toggle("is-on",i),t.setAttribute("aria-checked",String(i))}),t}buildChips(){let e=A("div",{class:"lens-chips"}),r=this.cb.getAnnotationCount();r>0&&e.append(c0(`${r} annotation${r===1?"":"s"}`));let n=this.cb.getRecording();if(n){let t=A("span",{class:"lens-chip lens-chip--ok lens-chip--rec"},[A("span",{text:`recording \u2713 ${nb(n.durationMs)}`}),A("button",{class:"lens-chip__x",ariaLabel:"Discard recording",text:"\xD7",on:{click:()=>this.cb.onDiscardRecording()}})]);e.append(t)}let o=this.cb.getTarget();if(o){let t=o.domPath||o.tagName||"element",i=A("span",{class:"lens-chip lens-chip--target",title:t},[A("span",{class:"lens-chip__code",text:qf(t,40)}),A("button",{class:"lens-chip__x",ariaLabel:"Remove element",text:"\xD7",on:{click:()=>this.cb.onRemoveTarget()}})]);e.append(i)}return e.style.display=e.childElementCount>0?"":"none",e}buildActions(){let e=A("button",{class:"lens-abtn lens-abtn--ghost lens-abtn--compact",html:n0+"<span>Annotate</span>",on:{click:()=>this.cb.onMarkArea()}}),r=A("button",{class:"lens-abtn lens-abtn--ghost lens-abtn--compact",html:VI+"<span>Record steps</span>",on:{click:()=>this.cb.onRecordSteps()}}),n=A("button",{class:"lens-abtn lens-abtn--ghost",text:"Cancel",on:{click:()=>this.cb.onClose()}});return this.submitBtn=A("button",{class:"lens-abtn lens-abtn--primary lens-abtn--submit",html:WI+"<span>Submit</span>",on:{click:()=>{this.submit()}}}),A("div",{class:"lens-actions"},[A("div",{class:"lens-actions__row lens-actions__secondary"},[e,r]),A("div",{class:"lens-actions__row lens-actions__primary"},[n,this.submitBtn])])}async submit(){if(this.submitting)return;let e=this.textarea.value.trim();this.submitting=!0,this.submitBtn.disabled=!0,this.submitBtn.innerHTML="<span>Submitting\u2026</span>";try{let{reportId:r}=await this.cb.onSubmit(e,{...this.include});this.renderSuccess(r)}catch(r){this.renderError(r instanceof Error?r.message:"Something went wrong")}finally{this.submitting=!1}}renderSuccess(e){Zf(this.body);let r=A("div",{class:"lens-idpill"},[A("span",{text:e}),A("button",{ariaLabel:"Copy report id",html:Hy,on:{click:n=>{let o=n.currentTarget;u0(e).then(()=>{o.innerHTML=Bf,setTimeout(()=>o.innerHTML=Hy,1200)})}}})]);this.body.append(A("div",{class:"lens-state"},[A("div",{class:"lens-state__badge lens-state__badge--ok",html:Bf}),A("div",{class:"lens-state__title",text:"Report submitted"}),A("div",{class:"lens-state__msg",text:"Thanks \u2014 the team can see the full context."}),r])),this.autoCloseTimer=setTimeout(()=>this.cb.onClose(),2500)}renderError(e){Zf(this.body),this.body.append(A("div",{class:"lens-state"},[A("div",{class:"lens-state__badge lens-state__badge--err",html:Xf}),A("div",{class:"lens-state__title",text:"Submission failed"}),A("div",{class:"lens-state__msg",text:qf(e,120)}),A("div",{class:"lens-actions"},[A("button",{class:"lens-abtn lens-abtn--ghost",text:"Cancel",on:{click:()=>this.cb.onClose()}}),A("button",{class:"lens-abtn lens-abtn--primary",text:"Retry",on:{click:()=>this.renderForm()}})])]))}};function c0(e,r,n){return A("span",{class:`lens-chip${n?" "+n:""}`,text:e,title:r??e})}function qf(e,r){return e.length>r?e.slice(0,r-1)+"\u2026":e}function nb(e){let r=Math.max(0,Math.round(e/1e3)),n=Math.floor(r/60),o=r%60;return`${n}:${o.toString().padStart(2,"0")}`}async function u0(e){try{await navigator.clipboard.writeText(e)}catch{}}var d0=class{constructor(e,r){this.layer=e,this.rootHost=r,this.tag=A("div",{class:"lens-highlight__tag"}),this.highlight=A("div",{class:"lens-highlight"},[this.tag]),this.hint=A("div",{class:"lens-pick-chip"},[A("span",{class:"lens-pick-chip__label",text:"Tap an element"}),A("button",{class:"lens-pick-chip__btn",text:"Cancel",on:{click:()=>this.cancel()}})]),this.layer.append(this.highlight,this.hint),this.hide()}layer;rootHost;highlight;tag;hint;current=null;active=!1;onPick=null;onCancel=null;get isActive(){return this.active}start(e,r){this.active||(this.active=!0,this.onPick=e,this.onCancel=r,this.current=null,this.hint.style.display="",window.addEventListener("pointermove",this.onMove,!0),window.addEventListener("pointerdown",this.onDown,!0),window.addEventListener("pointerup",this.onUp,!0),window.addEventListener("click",this.onClick,!0),window.addEventListener("keydown",this.onKey,!0))}stop(){this.active&&(this.active=!1,this.current=null,this.onPick=null,this.onCancel=null,this.hide(),window.removeEventListener("pointermove",this.onMove,!0),window.removeEventListener("pointerdown",this.onDown,!0),window.removeEventListener("pointerup",this.onUp,!0),window.removeEventListener("click",this.onClick,!0),window.removeEventListener("keydown",this.onKey,!0))}cancel(){let e=this.onCancel;this.stop(),e?.()}hide(){this.highlight.style.display="none",this.hint.style.display="none"}isOverlayEvent(e){return e.composedPath().includes(this.rootHost)}isCoarse(){return typeof window.matchMedia=="function"&&window.matchMedia("(pointer: coarse)").matches}elementAt(e,r){let n=document.elementFromPoint(e,r);return!n||n===this.rootHost?null:n}highlightElement(e){this.current=e;let r=e.getBoundingClientRect();Object.assign(this.highlight.style,{display:"block",left:`${r.left}px`,top:`${r.top}px`,width:`${r.width}px`,height:`${r.height}px`}),this.tag.textContent=f0(e)}confirm(e){let r=this.onPick;this.suppressNextClick(),this.stop(),r?.(e)}suppressNextClick(){let e=o=>{o.preventDefault(),o.stopImmediatePropagation(),r()},r=()=>{window.removeEventListener("click",e,!0),clearTimeout(n)};window.addEventListener("click",e,{capture:!0});let n=setTimeout(r,500)}onMove=e=>{if(this.isOverlayEvent(e)||this.isCoarse())return;let r=this.elementAt(e.clientX,e.clientY);!r||r===this.current||this.highlightElement(r)};onDown=e=>{this.isOverlayEvent(e)||(e.preventDefault(),e.stopImmediatePropagation())};onUp=e=>{if(this.isOverlayEvent(e))return;e.preventDefault(),e.stopImmediatePropagation();let r=this.elementAt(e.clientX,e.clientY);if(this.isCoarse()){r&&r===this.current?this.confirm(r):r&&this.highlightElement(r);return}let n=r??this.current;n&&this.confirm(n)};onClick=e=>{this.isOverlayEvent(e)||(e.preventDefault(),e.stopImmediatePropagation())};onKey=e=>{e.key==="Escape"&&(e.preventDefault(),e.stopPropagation(),this.cancel())}};function f0(e){let r=e.tagName.toLowerCase(),n=e.id?`#${e.id}`:"",o=typeof e.className=="string"&&e.className.trim()?"."+e.className.trim().split(/\s+/).slice(0,2).join("."):"";return`${r}${n}${o}`}var p0=`
|
|
205
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let s of e.seen.entries()){let a=s[1];if(r===s[0]){i(s);continue}if(e.external){let u=e.external.registry.get(s[0])?.id;if(r!==s[0]&&u){i(s);continue}}if(e.metadataRegistry.get(s[0])?.id){i(s);continue}if(a.cycle){i(s);continue}if(a.count>1&&e.reused==="ref"){i(s);continue}}}function bt(e,r){let n=e.seen.get(r);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=a=>{let c=e.seen.get(a);if(c.ref===null)return;let u=c.def??c.schema,l={...u},p=c.ref;if(c.ref=null,p){o(p);let d=e.seen.get(p),m=d.schema;if(m.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(m)):Object.assign(u,m),Object.assign(u,l),a._zod.parent===p)for(let g in u)g==="$ref"||g==="allOf"||g in l||delete u[g];if(m.$ref&&d.def)for(let g in u)g==="$ref"||g==="allOf"||g in d.def&&JSON.stringify(u[g])===JSON.stringify(d.def[g])&&delete u[g]}let f=a._zod.parent;if(f&&f!==p){o(f);let d=e.seen.get(f);if(d?.schema.$ref&&(u.$ref=d.schema.$ref,d.def))for(let m in u)m==="$ref"||m==="allOf"||m in d.def&&JSON.stringify(u[m])===JSON.stringify(d.def[m])&&delete u[m]}e.override({zodSchema:a,jsonSchema:u,path:c.path??[]})};for(let a of[...e.seen.entries()].reverse())o(a[0]);let t={};if(e.target==="draft-2020-12"?t.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?t.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?t.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let a=e.external.registry.get(r)?.id;if(!a)throw new Error("Schema is missing an `id` property");t.$id=e.external.uri(a)}Object.assign(t,n.def??n.schema);let i=e.metadataRegistry.get(r)?.id;i!==void 0&&t.id===i&&delete t.id;let s=e.external?.defs??{};for(let a of e.seen.entries()){let c=a[1];c.def&&c.defId&&(c.def.id===c.defId&&delete c.def.id,s[c.defId]=c.def)}e.external||Object.keys(s).length>0&&(e.target==="draft-2020-12"?t.$defs=s:t.definitions=s);try{let a=JSON.parse(JSON.stringify(t));return Object.defineProperty(a,"~standard",{value:{...r["~standard"],jsonSchema:{input:fr(r,"input",e.processors),output:fr(r,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function ke(e,r){let n=r??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return ke(o.element,n);if(o.type==="set")return ke(o.valueType,n);if(o.type==="lazy")return ke(o.getter(),n);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return ke(o.innerType,n);if(o.type==="intersection")return ke(o.left,n)||ke(o.right,n);if(o.type==="record"||o.type==="map")return ke(o.keyType,n)||ke(o.valueType,n);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:ke(o.in,n)||ke(o.out,n);if(o.type==="object"){for(let t in o.shape)if(ke(o.shape[t],n))return!0;return!1}if(o.type==="union"){for(let t of o.options)if(ke(t,n))return!0;return!1}if(o.type==="tuple"){for(let t of o.items)if(ke(t,n))return!0;return!!(o.rest&&ke(o.rest,n))}return!1}var Fu=(e,r={})=>n=>{let o=vt({...n,processors:r});return X(e,o),yt(o,e),bt(o,e)},fr=(e,r,n={})=>o=>{let{libraryOptions:t,target:i}=o??{},s=vt({...t??{},target:i,io:r,processors:n});return X(e,s),yt(s,e),bt(s,e)};var hk={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Zu=(e,r,n,o)=>{let t=n;t.type="string";let{minimum:i,maximum:s,format:a,patterns:c,contentEncoding:u}=e._zod.bag;if(typeof i=="number"&&(t.minLength=i),typeof s=="number"&&(t.maxLength=s),a&&(t.format=hk[a]??a,t.format===""&&delete t.format,a==="time"&&delete t.format),u&&(t.contentEncoding=u),c&&c.size>0){let l=[...c];l.length===1?t.pattern=l[0].source:l.length>1&&(t.allOf=[...l.map(p=>({...r.target==="draft-07"||r.target==="draft-04"||r.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))])}},Bu=(e,r,n,o)=>{let t=n,{minimum:i,maximum:s,format:a,multipleOf:c,exclusiveMaximum:u,exclusiveMinimum:l}=e._zod.bag;typeof a=="string"&&a.includes("int")?t.type="integer":t.type="number";let p=typeof l=="number"&&l>=(i??Number.NEGATIVE_INFINITY),f=typeof u=="number"&&u<=(s??Number.POSITIVE_INFINITY),d=r.target==="draft-04"||r.target==="openapi-3.0";p?d?(t.minimum=l,t.exclusiveMinimum=!0):t.exclusiveMinimum=l:typeof i=="number"&&(t.minimum=i),f?d?(t.maximum=u,t.exclusiveMaximum=!0):t.exclusiveMaximum=u:typeof s=="number"&&(t.maximum=s),typeof c=="number"&&(t.multipleOf=c)},Wu=(e,r,n,o)=>{n.type="boolean"},Vu=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},qu=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},Gu=(e,r,n,o)=>{r.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},Ju=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Hu=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},Xu=(e,r,n,o)=>{n.not={}},Ku=(e,r,n,o)=>{},Yu=(e,r,n,o)=>{},Qu=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},ed=(e,r,n,o)=>{let t=e._zod.def,i=Ur(t.entries);i.every(s=>typeof s=="number")&&(n.type="number"),i.every(s=>typeof s=="string")&&(n.type="string"),n.enum=i},td=(e,r,n,o)=>{let t=e._zod.def,i=[];for(let s of t.values)if(s===void 0){if(r.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof s=="bigint"){if(r.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(s))}else i.push(s);if(i.length!==0)if(i.length===1){let s=i[0];n.type=s===null?"null":typeof s,r.target==="draft-04"||r.target==="openapi-3.0"?n.enum=[s]:n.const=s}else i.every(s=>typeof s=="number")&&(n.type="number"),i.every(s=>typeof s=="string")&&(n.type="string"),i.every(s=>typeof s=="boolean")&&(n.type="boolean"),i.every(s=>s===null)&&(n.type="null"),n.enum=i},rd=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},nd=(e,r,n,o)=>{let t=n,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");t.type="string",t.pattern=i.source},id=(e,r,n,o)=>{let t=n,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:s,maximum:a,mime:c}=e._zod.bag;s!==void 0&&(i.minLength=s),a!==void 0&&(i.maxLength=a),c?c.length===1?(i.contentMediaType=c[0],Object.assign(t,i)):(Object.assign(t,i),t.anyOf=c.map(u=>({contentMediaType:u}))):Object.assign(t,i)},od=(e,r,n,o)=>{n.type="boolean"},sd=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},ad=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},ld=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},cd=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},ud=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},dd=(e,r,n,o)=>{let t=n,i=e._zod.def,{minimum:s,maximum:a}=e._zod.bag;typeof s=="number"&&(t.minItems=s),typeof a=="number"&&(t.maxItems=a),t.type="array",t.items=X(i.element,r,{...o,path:[...o.path,"items"]})},fd=(e,r,n,o)=>{let t=n,i=e._zod.def;t.type="object",t.properties={};let s=i.shape;for(let u in s)t.properties[u]=X(s[u],r,{...o,path:[...o.path,"properties",u]});let a=new Set(Object.keys(s)),c=new Set([...a].filter(u=>{let l=i.shape[u]._zod;return r.io==="input"?l.optin===void 0:l.optout===void 0}));c.size>0&&(t.required=Array.from(c)),i.catchall?._zod.def.type==="never"?t.additionalProperties=!1:i.catchall?i.catchall&&(t.additionalProperties=X(i.catchall,r,{...o,path:[...o.path,"additionalProperties"]})):r.io==="output"&&(t.additionalProperties=!1)},ro=(e,r,n,o)=>{let t=e._zod.def,i=t.inclusive===!1,s=t.options.map((a,c)=>X(a,r,{...o,path:[...o.path,i?"oneOf":"anyOf",c]}));i?n.oneOf=s:n.anyOf=s},pd=(e,r,n,o)=>{let t=e._zod.def,i=X(t.left,r,{...o,path:[...o.path,"allOf",0]}),s=X(t.right,r,{...o,path:[...o.path,"allOf",1]}),a=u=>"allOf"in u&&Object.keys(u).length===1,c=[...a(i)?i.allOf:[i],...a(s)?s.allOf:[s]];n.allOf=c},hd=(e,r,n,o)=>{let t=n,i=e._zod.def;t.type="array";let s=r.target==="draft-2020-12"?"prefixItems":"items",a=r.target==="draft-2020-12"||r.target==="openapi-3.0"?"items":"additionalItems",c=i.items.map((f,d)=>X(f,r,{...o,path:[...o.path,s,d]})),u=i.rest?X(i.rest,r,{...o,path:[...o.path,a,...r.target==="openapi-3.0"?[i.items.length]:[]]}):null;r.target==="draft-2020-12"?(t.prefixItems=c,u&&(t.items=u)):r.target==="openapi-3.0"?(t.items={anyOf:c},u&&t.items.anyOf.push(u),t.minItems=c.length,u||(t.maxItems=c.length)):(t.items=c,u&&(t.additionalItems=u));let{minimum:l,maximum:p}=e._zod.bag;typeof l=="number"&&(t.minItems=l),typeof p=="number"&&(t.maxItems=p)},md=(e,r,n,o)=>{let t=n,i=e._zod.def;t.type="object";let s=i.keyType,c=s._zod.bag?.patterns;if(i.mode==="loose"&&c&&c.size>0){let l=X(i.valueType,r,{...o,path:[...o.path,"patternProperties","*"]});t.patternProperties={};for(let p of c)t.patternProperties[p.source]=l}else(r.target==="draft-07"||r.target==="draft-2020-12")&&(t.propertyNames=X(i.keyType,r,{...o,path:[...o.path,"propertyNames"]})),t.additionalProperties=X(i.valueType,r,{...o,path:[...o.path,"additionalProperties"]});let u=s._zod.values;if(u){let l=[...u].filter(p=>typeof p=="string"||typeof p=="number");l.length>0&&(t.required=l)}},gd=(e,r,n,o)=>{let t=e._zod.def,i=X(t.innerType,r,o),s=r.seen.get(e);r.target==="openapi-3.0"?(s.ref=t.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},vd=(e,r,n,o)=>{let t=e._zod.def;X(t.innerType,r,o);let i=r.seen.get(e);i.ref=t.innerType},yd=(e,r,n,o)=>{let t=e._zod.def;X(t.innerType,r,o);let i=r.seen.get(e);i.ref=t.innerType,n.default=JSON.parse(JSON.stringify(t.defaultValue))},bd=(e,r,n,o)=>{let t=e._zod.def;X(t.innerType,r,o);let i=r.seen.get(e);i.ref=t.innerType,r.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(t.defaultValue)))},wd=(e,r,n,o)=>{let t=e._zod.def;X(t.innerType,r,o);let i=r.seen.get(e);i.ref=t.innerType;let s;try{s=t.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=s},xd=(e,r,n,o)=>{let t=e._zod.def,i=t.in._zod.traits.has("$ZodTransform"),s=r.io==="input"?i?t.out:t.in:t.out;X(s,r,o);let a=r.seen.get(e);a.ref=s},_d=(e,r,n,o)=>{let t=e._zod.def;X(t.innerType,r,o);let i=r.seen.get(e);i.ref=t.innerType,n.readOnly=!0},Sd=(e,r,n,o)=>{let t=e._zod.def;X(t.innerType,r,o);let i=r.seen.get(e);i.ref=t.innerType},no=(e,r,n,o)=>{let t=e._zod.def;X(t.innerType,r,o);let i=r.seen.get(e);i.ref=t.innerType},$d=(e,r,n,o)=>{let t=e._zod.innerType;X(t,r,o);let i=r.seen.get(e);i.ref=t},to={string:Zu,number:Bu,boolean:Wu,bigint:Vu,symbol:qu,null:Gu,undefined:Ju,void:Hu,never:Xu,any:Ku,unknown:Yu,date:Qu,enum:ed,literal:td,nan:rd,template_literal:nd,file:id,success:od,custom:sd,function:ad,transform:ld,map:cd,set:ud,array:dd,object:fd,union:ro,intersection:pd,tuple:hd,record:md,nullable:gd,nonoptional:vd,default:yd,prefault:bd,catch:wd,pipe:xd,readonly:_d,promise:Sd,optional:no,lazy:$d};function io(e,r){if("_idmap"in e){let o=e,t=vt({...r,processors:to}),i={};for(let c of o._idmap.entries()){let[u,l]=c;X(l,t)}let s={},a={registry:o,uri:r?.uri,defs:i};t.external=a;for(let c of o._idmap.entries()){let[u,l]=c;yt(t,l),s[u]=bt(t,l)}if(Object.keys(i).length>0){let c=t.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[c]:i}}return{schemas:s}}let n=vt({...r,processors:to});return X(e,n),yt(n,e),bt(n,e)}var oo=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(r){this.ctx.counter=r}get seen(){return this.ctx.seen}constructor(r){let n=r?.target??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=vt({processors:to,target:n,...r?.metadata&&{metadata:r.metadata},...r?.unrepresentable&&{unrepresentable:r.unrepresentable},...r?.override&&{override:r.override},...r?.io&&{io:r.io}})}process(r,n={path:[],schemaPath:[]}){return X(r,this.ctx,n)}emit(r,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),yt(this.ctx,r);let o=bt(this.ctx,r),{"~standard":t,...i}=o;return i}};var bv={};var rn={};Ve(rn,{ZodAny:()=>Jd,ZodArray:()=>Yd,ZodBase64:()=>Eo,ZodBase64URL:()=>Co,ZodBigInt:()=>wr,ZodBigIntFormat:()=>zo,ZodBoolean:()=>br,ZodCIDRv4:()=>ko,ZodCIDRv6:()=>Io,ZodCUID:()=>yo,ZodCUID2:()=>bo,ZodCatch:()=>xf,ZodCodec:()=>mn,ZodCustom:()=>gn,ZodCustomStringFormat:()=>vr,ZodDate:()=>un,ZodDefault:()=>mf,ZodDiscriminatedUnion:()=>ef,ZodE164:()=>Oo,ZodEmail:()=>mo,ZodEmoji:()=>go,ZodEnum:()=>mr,ZodExactOptional:()=>ff,ZodFile:()=>uf,ZodFunction:()=>zf,ZodGUID:()=>on,ZodIPv4:()=>So,ZodIPv6:()=>$o,ZodIntersection:()=>tf,ZodJWT:()=>No,ZodKSUID:()=>_o,ZodLazy:()=>Cf,ZodLiteral:()=>cf,ZodMAC:()=>Fd,ZodMap:()=>af,ZodNaN:()=>Sf,ZodNanoID:()=>vo,ZodNever:()=>Xd,ZodNonOptional:()=>Mo,ZodNull:()=>qd,ZodNullable:()=>hf,ZodNumber:()=>yr,ZodNumberFormat:()=>Rt,ZodObject:()=>fn,ZodOptional:()=>Ao,ZodPipe:()=>hn,ZodPrefault:()=>vf,ZodPreprocess:()=>$f,ZodPromise:()=>Nf,ZodReadonly:()=>kf,ZodRecord:()=>hr,ZodSet:()=>lf,ZodString:()=>gr,ZodStringFormat:()=>re,ZodSuccess:()=>wf,ZodSymbol:()=>Wd,ZodTemplateLiteral:()=>Ef,ZodTransform:()=>df,ZodTuple:()=>nf,ZodType:()=>Z,ZodULID:()=>wo,ZodURL:()=>cn,ZodUUID:()=>Ke,ZodUndefined:()=>Vd,ZodUnion:()=>pn,ZodUnknown:()=>Hd,ZodVoid:()=>Kd,ZodXID:()=>xo,ZodXor:()=>Qd,_ZodString:()=>ho,_default:()=>gf,_function:()=>Cy,any:()=>oy,array:()=>dn,base64:()=>Zv,base64url:()=>Bv,bigint:()=>ey,boolean:()=>Bd,catch:()=>_f,check:()=>Oy,cidrv4:()=>Lv,cidrv6:()=>Fv,codec:()=>$y,cuid:()=>Dv,cuid2:()=>Tv,custom:()=>Ny,date:()=>ay,describe:()=>zy,discriminatedUnion:()=>py,e164:()=>Wv,email:()=>_v,emoji:()=>Nv,enum:()=>Ro,exactOptional:()=>pf,file:()=>wy,float32:()=>Xv,float64:()=>Kv,function:()=>Cy,guid:()=>Sv,hash:()=>Hv,hex:()=>Jv,hostname:()=>Gv,httpUrl:()=>Ov,instanceof:()=>Ty,int:()=>fo,int32:()=>Yv,int64:()=>ty,intersection:()=>rf,invertCodec:()=>ky,ipv4:()=>Mv,ipv6:()=>jv,json:()=>Py,jwt:()=>Vv,keyof:()=>ly,ksuid:()=>Av,lazy:()=>Of,literal:()=>by,looseObject:()=>dy,looseRecord:()=>my,mac:()=>Uv,map:()=>gy,meta:()=>Dy,nan:()=>Sy,nanoid:()=>zv,nativeEnum:()=>yy,never:()=>Do,nonoptional:()=>bf,null:()=>Gd,nullable:()=>an,nullish:()=>xy,number:()=>Zd,object:()=>cy,optional:()=>sn,partialRecord:()=>hy,pipe:()=>po,prefault:()=>yf,preprocess:()=>Ay,promise:()=>Ey,readonly:()=>If,record:()=>sf,refine:()=>Df,set:()=>vy,strictObject:()=>uy,string:()=>nn,stringFormat:()=>qv,stringbool:()=>Ry,success:()=>_y,superRefine:()=>Tf,symbol:()=>ny,templateLiteral:()=>Iy,transform:()=>Po,tuple:()=>of,uint32:()=>Qv,uint64:()=>ry,ulid:()=>Rv,undefined:()=>iy,union:()=>To,unknown:()=>Tt,url:()=>Cv,uuid:()=>$v,uuidv4:()=>kv,uuidv6:()=>Iv,uuidv7:()=>Ev,void:()=>sy,xid:()=>Pv,xor:()=>fy});var so={};Ve(so,{endsWith:()=>ir,gt:()=>He,gte:()=>$e,includes:()=>rr,length:()=>Dt,lowercase:()=>er,lt:()=>Je,lte:()=>Te,maxLength:()=>zt,maxSize:()=>gt,mime:()=>or,minLength:()=>rt,minSize:()=>Xe,multipleOf:()=>mt,negative:()=>Ki,nonnegative:()=>Qi,nonpositive:()=>Yi,normalize:()=>sr,overwrite:()=>Be,positive:()=>Xi,property:()=>eo,regex:()=>Qt,size:()=>Nt,slugify:()=>ur,startsWith:()=>nr,toLowerCase:()=>lr,toUpperCase:()=>cr,trim:()=>ar,uppercase:()=>tr});var pr={};Ve(pr,{ZodISODate:()=>lo,ZodISODateTime:()=>ao,ZodISODuration:()=>uo,ZodISOTime:()=>co,date:()=>Id,datetime:()=>kd,duration:()=>Cd,time:()=>Ed});var ao=k("ZodISODateTime",(e,r)=>{rc.init(e,r),re.init(e,r)});function kd(e){return su(ao,e)}var lo=k("ZodISODate",(e,r)=>{nc.init(e,r),re.init(e,r)});function Id(e){return au(lo,e)}var co=k("ZodISOTime",(e,r)=>{ic.init(e,r),re.init(e,r)});function Ed(e){return lu(co,e)}var uo=k("ZodISODuration",(e,r)=>{oc.init(e,r),re.init(e,r)});function Cd(e){return cu(uo,e)}var wv=(e,r)=>{Br.init(e,r),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Vr(e,n)},flatten:{value:n=>Wr(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Wt,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Wt,2)}},isEmpty:{get(){return e.issues.length===0}}})},gk=k("ZodError",wv),Oe=k("ZodError",wv,{Parent:Error});var Od=Gt(Oe),Nd=Jt(Oe),zd=Ht(Oe),Dd=Xt(Oe),Td=ii(Oe),Rd=oi(Oe),Pd=si(Oe),Ad=ai(Oe),Md=li(Oe),Ud=ci(Oe),jd=ui(Oe),Ld=di(Oe);var xv=new WeakMap;function ln(e,r,n){let o=Object.getPrototypeOf(e),t=xv.get(o);if(t||(t=new Set,xv.set(o,t)),!t.has(r)){t.add(r);for(let i in n){let s=n[i];Object.defineProperty(o,i,{configurable:!0,enumerable:!1,get(){let a=s.bind(this);return Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:a}),a},set(a){Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:a})}})}}}var Z=k("ZodType",(e,r)=>(L.init(e,r),Object.assign(e["~standard"],{jsonSchema:{input:fr(e,"input"),output:fr(e,"output")}}),e.toJSONSchema=Fu(e,{}),e.def=r,e.type=r.type,Object.defineProperty(e,"_def",{value:r}),e.parse=(n,o)=>Od(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>zd(e,n,o),e.parseAsync=async(n,o)=>Nd(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>Dd(e,n,o),e.spa=e.safeParseAsync,e.encode=(n,o)=>Td(e,n,o),e.decode=(n,o)=>Rd(e,n,o),e.encodeAsync=async(n,o)=>Pd(e,n,o),e.decodeAsync=async(n,o)=>Ad(e,n,o),e.safeEncode=(n,o)=>Md(e,n,o),e.safeDecode=(n,o)=>Ud(e,n,o),e.safeEncodeAsync=async(n,o)=>jd(e,n,o),e.safeDecodeAsync=async(n,o)=>Ld(e,n,o),ln(e,"ZodType",{check(...n){let o=this.def;return this.clone(D.mergeDefs(o,{checks:[...o.checks??[],...n.map(t=>typeof t=="function"?{_zod:{check:t,def:{check:"custom"},onattach:[]}}:t)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,o){return _e(this,n,o)},brand(){return this},register(n,o){return n.add(this,o),this},refine(n,o){return this.check(Df(n,o))},superRefine(n,o){return this.check(Tf(n,o))},overwrite(n){return this.check(Be(n))},optional(){return sn(this)},exactOptional(){return pf(this)},nullable(){return an(this)},nullish(){return sn(an(this))},nonoptional(n){return bf(this,n)},array(){return dn(this)},or(n){return To([this,n])},and(n){return rf(this,n)},transform(n){return po(this,Po(n))},default(n){return gf(this,n)},prefault(n){return yf(this,n)},catch(n){return _f(this,n)},pipe(n){return po(this,n)},readonly(){return If(this)},describe(n){let o=this.clone();return me.add(o,{description:n}),o},meta(...n){if(n.length===0)return me.get(this);let o=this.clone();return me.add(o,n[0]),o},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){return me.get(e)?.description},configurable:!0}),e)),ho=k("_ZodString",(e,r)=>{Ot.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(o,t,i)=>Zu(e,o,t,i);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,ln(e,"_ZodString",{regex(...o){return this.check(Qt(...o))},includes(...o){return this.check(rr(...o))},startsWith(...o){return this.check(nr(...o))},endsWith(...o){return this.check(ir(...o))},min(...o){return this.check(rt(...o))},max(...o){return this.check(zt(...o))},length(...o){return this.check(Dt(...o))},nonempty(...o){return this.check(rt(1,...o))},lowercase(o){return this.check(er(o))},uppercase(o){return this.check(tr(o))},trim(){return this.check(ar())},normalize(...o){return this.check(sr(...o))},toLowerCase(){return this.check(lr())},toUpperCase(){return this.check(cr())},slugify(){return this.check(ur())}})}),gr=k("ZodString",(e,r)=>{Ot.init(e,r),ho.init(e,r),e.email=n=>e.check(Ni(mo,n)),e.url=n=>e.check(tn(cn,n)),e.jwt=n=>e.check(Hi(No,n)),e.emoji=n=>e.check(Pi(go,n)),e.guid=n=>e.check(en(on,n)),e.uuid=n=>e.check(zi(Ke,n)),e.uuidv4=n=>e.check(Di(Ke,n)),e.uuidv6=n=>e.check(Ti(Ke,n)),e.uuidv7=n=>e.check(Ri(Ke,n)),e.nanoid=n=>e.check(Ai(vo,n)),e.guid=n=>e.check(en(on,n)),e.cuid=n=>e.check(Mi(yo,n)),e.cuid2=n=>e.check(Ui(bo,n)),e.ulid=n=>e.check(ji(wo,n)),e.base64=n=>e.check(qi(Eo,n)),e.base64url=n=>e.check(Gi(Co,n)),e.xid=n=>e.check(Li(xo,n)),e.ksuid=n=>e.check(Fi(_o,n)),e.ipv4=n=>e.check(Zi(So,n)),e.ipv6=n=>e.check(Bi($o,n)),e.cidrv4=n=>e.check(Wi(ko,n)),e.cidrv6=n=>e.check(Vi(Io,n)),e.e164=n=>e.check(Ji(Oo,n)),e.datetime=n=>e.check(kd(n)),e.date=n=>e.check(Id(n)),e.time=n=>e.check(Ed(n)),e.duration=n=>e.check(Cd(n))});function nn(e){return ru(gr,e)}var re=k("ZodStringFormat",(e,r)=>{te.init(e,r),ho.init(e,r)}),mo=k("ZodEmail",(e,r)=>{Gl.init(e,r),re.init(e,r)});function _v(e){return Ni(mo,e)}var on=k("ZodGUID",(e,r)=>{Vl.init(e,r),re.init(e,r)});function Sv(e){return en(on,e)}var Ke=k("ZodUUID",(e,r)=>{ql.init(e,r),re.init(e,r)});function $v(e){return zi(Ke,e)}function kv(e){return Di(Ke,e)}function Iv(e){return Ti(Ke,e)}function Ev(e){return Ri(Ke,e)}var cn=k("ZodURL",(e,r)=>{Jl.init(e,r),re.init(e,r)});function Cv(e){return tn(cn,e)}function Ov(e){return tn(cn,{protocol:De.httpProtocol,hostname:De.domain,...D.normalizeParams(e)})}var go=k("ZodEmoji",(e,r)=>{Hl.init(e,r),re.init(e,r)});function Nv(e){return Pi(go,e)}var vo=k("ZodNanoID",(e,r)=>{Xl.init(e,r),re.init(e,r)});function zv(e){return Ai(vo,e)}var yo=k("ZodCUID",(e,r)=>{Kl.init(e,r),re.init(e,r)});function Dv(e){return Mi(yo,e)}var bo=k("ZodCUID2",(e,r)=>{Yl.init(e,r),re.init(e,r)});function Tv(e){return Ui(bo,e)}var wo=k("ZodULID",(e,r)=>{Ql.init(e,r),re.init(e,r)});function Rv(e){return ji(wo,e)}var xo=k("ZodXID",(e,r)=>{ec.init(e,r),re.init(e,r)});function Pv(e){return Li(xo,e)}var _o=k("ZodKSUID",(e,r)=>{tc.init(e,r),re.init(e,r)});function Av(e){return Fi(_o,e)}var So=k("ZodIPv4",(e,r)=>{sc.init(e,r),re.init(e,r)});function Mv(e){return Zi(So,e)}var Fd=k("ZodMAC",(e,r)=>{lc.init(e,r),re.init(e,r)});function Uv(e){return iu(Fd,e)}var $o=k("ZodIPv6",(e,r)=>{ac.init(e,r),re.init(e,r)});function jv(e){return Bi($o,e)}var ko=k("ZodCIDRv4",(e,r)=>{cc.init(e,r),re.init(e,r)});function Lv(e){return Wi(ko,e)}var Io=k("ZodCIDRv6",(e,r)=>{uc.init(e,r),re.init(e,r)});function Fv(e){return Vi(Io,e)}var Eo=k("ZodBase64",(e,r)=>{fc.init(e,r),re.init(e,r)});function Zv(e){return qi(Eo,e)}var Co=k("ZodBase64URL",(e,r)=>{pc.init(e,r),re.init(e,r)});function Bv(e){return Gi(Co,e)}var Oo=k("ZodE164",(e,r)=>{hc.init(e,r),re.init(e,r)});function Wv(e){return Ji(Oo,e)}var No=k("ZodJWT",(e,r)=>{mc.init(e,r),re.init(e,r)});function Vv(e){return Hi(No,e)}var vr=k("ZodCustomStringFormat",(e,r)=>{gc.init(e,r),re.init(e,r)});function qv(e,r,n={}){return dr(vr,e,r,n)}function Gv(e){return dr(vr,"hostname",De.hostname,e)}function Jv(e){return dr(vr,"hex",De.hex,e)}function Hv(e,r){let n=r?.enc??"hex",o=`${e}_${n}`,t=De[o];if(!t)throw new Error(`Unrecognized hash format: ${o}`);return dr(vr,o,t,r)}var yr=k("ZodNumber",(e,r)=>{wi.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(o,t,i)=>Bu(e,o,t,i),ln(e,"ZodNumber",{gt(o,t){return this.check(He(o,t))},gte(o,t){return this.check($e(o,t))},min(o,t){return this.check($e(o,t))},lt(o,t){return this.check(Je(o,t))},lte(o,t){return this.check(Te(o,t))},max(o,t){return this.check(Te(o,t))},int(o){return this.check(fo(o))},safe(o){return this.check(fo(o))},positive(o){return this.check(He(0,o))},nonnegative(o){return this.check($e(0,o))},negative(o){return this.check(Je(0,o))},nonpositive(o){return this.check(Te(0,o))},multipleOf(o,t){return this.check(mt(o,t))},step(o,t){return this.check(mt(o,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function Zd(e){return uu(yr,e)}var Rt=k("ZodNumberFormat",(e,r)=>{vc.init(e,r),yr.init(e,r)});function fo(e){return fu(Rt,e)}function Xv(e){return pu(Rt,e)}function Kv(e){return hu(Rt,e)}function Yv(e){return mu(Rt,e)}function Qv(e){return gu(Rt,e)}var br=k("ZodBoolean",(e,r)=>{Hr.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Wu(e,n,o,t)});function Bd(e){return vu(br,e)}var wr=k("ZodBigInt",(e,r)=>{xi.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(o,t,i)=>Vu(e,o,t,i),e.gte=(o,t)=>e.check($e(o,t)),e.min=(o,t)=>e.check($e(o,t)),e.gt=(o,t)=>e.check(He(o,t)),e.gte=(o,t)=>e.check($e(o,t)),e.min=(o,t)=>e.check($e(o,t)),e.lt=(o,t)=>e.check(Je(o,t)),e.lte=(o,t)=>e.check(Te(o,t)),e.max=(o,t)=>e.check(Te(o,t)),e.positive=o=>e.check(He(BigInt(0),o)),e.negative=o=>e.check(Je(BigInt(0),o)),e.nonpositive=o=>e.check(Te(BigInt(0),o)),e.nonnegative=o=>e.check($e(BigInt(0),o)),e.multipleOf=(o,t)=>e.check(mt(o,t));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function ey(e){return bu(wr,e)}var zo=k("ZodBigIntFormat",(e,r)=>{yc.init(e,r),wr.init(e,r)});function ty(e){return xu(zo,e)}function ry(e){return _u(zo,e)}var Wd=k("ZodSymbol",(e,r)=>{bc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>qu(e,n,o,t)});function ny(e){return Su(Wd,e)}var Vd=k("ZodUndefined",(e,r)=>{wc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Ju(e,n,o,t)});function iy(e){return $u(Vd,e)}var qd=k("ZodNull",(e,r)=>{xc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Gu(e,n,o,t)});function Gd(e){return ku(qd,e)}var Jd=k("ZodAny",(e,r)=>{_c.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Ku(e,n,o,t)});function oy(){return Iu(Jd)}var Hd=k("ZodUnknown",(e,r)=>{Sc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Yu(e,n,o,t)});function Tt(){return Eu(Hd)}var Xd=k("ZodNever",(e,r)=>{$c.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Xu(e,n,o,t)});function Do(e){return Cu(Xd,e)}var Kd=k("ZodVoid",(e,r)=>{kc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Hu(e,n,o,t)});function sy(e){return Ou(Kd,e)}var un=k("ZodDate",(e,r)=>{Ic.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(o,t,i)=>Qu(e,o,t,i),e.min=(o,t)=>e.check($e(o,t)),e.max=(o,t)=>e.check(Te(o,t));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function ay(e){return Nu(un,e)}var Yd=k("ZodArray",(e,r)=>{Ec.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>dd(e,n,o,t),e.element=r.element,ln(e,"ZodArray",{min(n,o){return this.check(rt(n,o))},nonempty(n){return this.check(rt(1,n))},max(n,o){return this.check(zt(n,o))},length(n,o){return this.check(Dt(n,o))},unwrap(){return this.element}})});function dn(e,r){return Tu(Yd,e,r)}function ly(e){let r=e._zod.def.shape;return Ro(Object.keys(r))}var fn=k("ZodObject",(e,r)=>{Cc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>fd(e,n,o,t),D.defineLazy(e,"shape",()=>r.shape),ln(e,"ZodObject",{keyof(){return Ro(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:Tt()})},loose(){return this.clone({...this._zod.def,catchall:Tt()})},strict(){return this.clone({...this._zod.def,catchall:Do()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return D.extend(this,n)},safeExtend(n){return D.safeExtend(this,n)},merge(n){return D.merge(this,n)},pick(n){return D.pick(this,n)},omit(n){return D.omit(this,n)},partial(...n){return D.partial(Ao,this,n[0])},required(...n){return D.required(Mo,this,n[0])}})});function cy(e,r){let n={type:"object",shape:e??{},...D.normalizeParams(r)};return new fn(n)}function uy(e,r){return new fn({type:"object",shape:e,catchall:Do(),...D.normalizeParams(r)})}function dy(e,r){return new fn({type:"object",shape:e,catchall:Tt(),...D.normalizeParams(r)})}var pn=k("ZodUnion",(e,r)=>{Xr.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>ro(e,n,o,t),e.options=r.options});function To(e,r){return new pn({type:"union",options:e,...D.normalizeParams(r)})}var Qd=k("ZodXor",(e,r)=>{pn.init(e,r),Oc.init(e,r),e._zod.processJSONSchema=(n,o,t)=>ro(e,n,o,t),e.options=r.options});function fy(e,r){return new Qd({type:"union",options:e,inclusive:!1,...D.normalizeParams(r)})}var ef=k("ZodDiscriminatedUnion",(e,r)=>{pn.init(e,r),Nc.init(e,r)});function py(e,r,n){return new ef({type:"union",options:r,discriminator:e,...D.normalizeParams(n)})}var tf=k("ZodIntersection",(e,r)=>{zc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>pd(e,n,o,t)});function rf(e,r){return new tf({type:"intersection",left:e,right:r})}var nf=k("ZodTuple",(e,r)=>{_i.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>hd(e,n,o,t),e.rest=n=>e.clone({...e._zod.def,rest:n})});function of(e,r,n){let o=r instanceof L,t=o?n:r,i=o?r:null;return new nf({type:"tuple",items:e,rest:i,...D.normalizeParams(t)})}var hr=k("ZodRecord",(e,r)=>{Dc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>md(e,n,o,t),e.keyType=r.keyType,e.valueType=r.valueType});function sf(e,r,n){return!r||!r._zod?new hr({type:"record",keyType:nn(),valueType:e,...D.normalizeParams(r)}):new hr({type:"record",keyType:e,valueType:r,...D.normalizeParams(n)})}function hy(e,r,n){let o=_e(e);return o._zod.values=void 0,new hr({type:"record",keyType:o,valueType:r,...D.normalizeParams(n)})}function my(e,r,n){return new hr({type:"record",keyType:e,valueType:r,mode:"loose",...D.normalizeParams(n)})}var af=k("ZodMap",(e,r)=>{Tc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>cd(e,n,o,t),e.keyType=r.keyType,e.valueType=r.valueType,e.min=(...n)=>e.check(Xe(...n)),e.nonempty=n=>e.check(Xe(1,n)),e.max=(...n)=>e.check(gt(...n)),e.size=(...n)=>e.check(Nt(...n))});function gy(e,r,n){return new af({type:"map",keyType:e,valueType:r,...D.normalizeParams(n)})}var lf=k("ZodSet",(e,r)=>{Rc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>ud(e,n,o,t),e.min=(...n)=>e.check(Xe(...n)),e.nonempty=n=>e.check(Xe(1,n)),e.max=(...n)=>e.check(gt(...n)),e.size=(...n)=>e.check(Nt(...n))});function vy(e,r){return new lf({type:"set",valueType:e,...D.normalizeParams(r)})}var mr=k("ZodEnum",(e,r)=>{Pc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(o,t,i)=>ed(e,o,t,i),e.enum=r.entries,e.options=Object.values(r.entries);let n=new Set(Object.keys(r.entries));e.extract=(o,t)=>{let i={};for(let s of o)if(n.has(s))i[s]=r.entries[s];else throw new Error(`Key ${s} not found in enum`);return new mr({...r,checks:[],...D.normalizeParams(t),entries:i})},e.exclude=(o,t)=>{let i={...r.entries};for(let s of o)if(n.has(s))delete i[s];else throw new Error(`Key ${s} not found in enum`);return new mr({...r,checks:[],...D.normalizeParams(t),entries:i})}});function Ro(e,r){let n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new mr({type:"enum",entries:n,...D.normalizeParams(r)})}function yy(e,r){return new mr({type:"enum",entries:e,...D.normalizeParams(r)})}var cf=k("ZodLiteral",(e,r)=>{Ac.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>td(e,n,o,t),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 by(e,r){return new cf({type:"literal",values:Array.isArray(e)?e:[e],...D.normalizeParams(r)})}var uf=k("ZodFile",(e,r)=>{Mc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>id(e,n,o,t),e.min=(n,o)=>e.check(Xe(n,o)),e.max=(n,o)=>e.check(gt(n,o)),e.mime=(n,o)=>e.check(or(Array.isArray(n)?n:[n],o))});function wy(e){return Ru(uf,e)}var df=k("ZodTransform",(e,r)=>{Uc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>ld(e,n,o,t),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new ut(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(D.issue(i,n.value,r));else{let s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=n.value),s.inst??(s.inst=e),n.issues.push(D.issue(s))}};let t=r.transform(n.value,n);return t instanceof Promise?t.then(i=>(n.value=i,n.fallback=!0,n)):(n.value=t,n.fallback=!0,n)}});function Po(e){return new df({type:"transform",transform:e})}var Ao=k("ZodOptional",(e,r)=>{Si.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>no(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function sn(e){return new Ao({type:"optional",innerType:e})}var ff=k("ZodExactOptional",(e,r)=>{jc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>no(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function pf(e){return new ff({type:"optional",innerType:e})}var hf=k("ZodNullable",(e,r)=>{Lc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>gd(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function an(e){return new hf({type:"nullable",innerType:e})}function xy(e){return sn(an(e))}var mf=k("ZodDefault",(e,r)=>{Fc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>yd(e,n,o,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function gf(e,r){return new mf({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():D.shallowClone(r)}})}var vf=k("ZodPrefault",(e,r)=>{Zc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>bd(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function yf(e,r){return new vf({type:"prefault",innerType:e,get defaultValue(){return typeof r=="function"?r():D.shallowClone(r)}})}var Mo=k("ZodNonOptional",(e,r)=>{Bc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>vd(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function bf(e,r){return new Mo({type:"nonoptional",innerType:e,...D.normalizeParams(r)})}var wf=k("ZodSuccess",(e,r)=>{Wc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>od(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function _y(e){return new wf({type:"success",innerType:e})}var xf=k("ZodCatch",(e,r)=>{Vc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>wd(e,n,o,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function _f(e,r){return new xf({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}var Sf=k("ZodNaN",(e,r)=>{qc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>rd(e,n,o,t)});function Sy(e){return Du(Sf,e)}var hn=k("ZodPipe",(e,r)=>{$i.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>xd(e,n,o,t),e.in=r.in,e.out=r.out});function po(e,r){return new hn({type:"pipe",in:e,out:r})}var mn=k("ZodCodec",(e,r)=>{hn.init(e,r),Kr.init(e,r)});function $y(e,r,n){return new mn({type:"pipe",in:e,out:r,transform:n.decode,reverseTransform:n.encode})}function ky(e){let r=e._zod.def;return new mn({type:"pipe",in:r.out,out:r.in,transform:r.reverseTransform,reverseTransform:r.transform})}var $f=k("ZodPreprocess",(e,r)=>{hn.init(e,r),Gc.init(e,r)}),kf=k("ZodReadonly",(e,r)=>{Jc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>_d(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function If(e){return new kf({type:"readonly",innerType:e})}var Ef=k("ZodTemplateLiteral",(e,r)=>{Hc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>nd(e,n,o,t)});function Iy(e,r){return new Ef({type:"template_literal",parts:e,...D.normalizeParams(r)})}var Cf=k("ZodLazy",(e,r)=>{Yc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>$d(e,n,o,t),e.unwrap=()=>e._zod.def.getter()});function Of(e){return new Cf({type:"lazy",getter:e})}var Nf=k("ZodPromise",(e,r)=>{Kc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Sd(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function Ey(e){return new Nf({type:"promise",innerType:e})}var zf=k("ZodFunction",(e,r)=>{Xc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>ad(e,n,o,t)});function Cy(e){return new zf({type:"function",input:Array.isArray(e?.input)?of(e?.input):e?.input??dn(Tt()),output:e?.output??Tt()})}var gn=k("ZodCustom",(e,r)=>{Qc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>sd(e,n,o,t)});function Oy(e){let r=new ne({check:"custom"});return r._zod.check=e,r}function Ny(e,r){return Pu(gn,e??(()=>!0),r)}function Df(e,r={}){return Au(gn,e,r)}function Tf(e,r){return Mu(e,r)}var zy=Uu,Dy=ju;function Ty(e,r={}){let n=new gn({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...D.normalizeParams(r)});return n._zod.bag.Class=e,n._zod.check=o=>{o.value instanceof e||o.issues.push({code:"invalid_type",expected:e.name,input:o.value,inst:n,path:[...n._zod.def.path??[]]})},n}var Ry=(...e)=>Lu({Codec:mn,Boolean:br,String:gr},...e);function Py(e){let r=Of(()=>To([nn(e),Zd(),Bd(),Gd(),dn(r),sf(nn(),r)]));return r}function Ay(e,r){return new $f({type:"pipe",in:Po(e),out:r})}var yk={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 bk(e){ce({customError:e})}function wk(){return ce().customError}var Rf;Rf||(Rf={});var U={...rn,...so,iso:pr},xk=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function _k(e,r){let n=e.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":r??"draft-2020-12"}function Sk(e,r){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let n=e.slice(1).split("/").filter(Boolean);if(n.length===0)return r.rootSchema;let o=r.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===o){let t=n[1];if(!t||!r.defs[t])throw new Error(`Reference not found: ${e}`);return r.defs[t]}throw new Error(`Reference not found: ${e}`)}function My(e,r){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return U.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let t=e.$ref;if(r.refs.has(t))return r.refs.get(t);if(r.processing.has(t))return U.lazy(()=>{if(!r.refs.has(t))throw new Error(`Circular reference not resolved: ${t}`);return r.refs.get(t)});r.processing.add(t);let i=Sk(t,r),s=ye(i,r);return r.refs.set(t,s),r.processing.delete(t),s}if(e.enum!==void 0){let t=e.enum;if(r.version==="openapi-3.0"&&e.nullable===!0&&t.length===1&&t[0]===null)return U.null();if(t.length===0)return U.never();if(t.length===1)return U.literal(t[0]);if(t.every(s=>typeof s=="string"))return U.enum(t);let i=t.map(s=>U.literal(s));return i.length<2?i[0]:U.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return U.literal(e.const);let n=e.type;if(Array.isArray(n)){let t=n.map(i=>{let s={...e,type:i};return My(s,r)});return t.length===0?U.never():t.length===1?t[0]:U.union(t)}if(!n)return U.any();let o;switch(n){case"string":{let t=U.string();if(e.format){let i=e.format;i==="email"?t=t.check(U.email()):i==="uri"||i==="uri-reference"?t=t.check(U.url()):i==="uuid"||i==="guid"?t=t.check(U.uuid()):i==="date-time"?t=t.check(U.iso.datetime()):i==="date"?t=t.check(U.iso.date()):i==="time"?t=t.check(U.iso.time()):i==="duration"?t=t.check(U.iso.duration()):i==="ipv4"?t=t.check(U.ipv4()):i==="ipv6"?t=t.check(U.ipv6()):i==="mac"?t=t.check(U.mac()):i==="cidr"?t=t.check(U.cidrv4()):i==="cidr-v6"?t=t.check(U.cidrv6()):i==="base64"?t=t.check(U.base64()):i==="base64url"?t=t.check(U.base64url()):i==="e164"?t=t.check(U.e164()):i==="jwt"?t=t.check(U.jwt()):i==="emoji"?t=t.check(U.emoji()):i==="nanoid"?t=t.check(U.nanoid()):i==="cuid"?t=t.check(U.cuid()):i==="cuid2"?t=t.check(U.cuid2()):i==="ulid"?t=t.check(U.ulid()):i==="xid"?t=t.check(U.xid()):i==="ksuid"&&(t=t.check(U.ksuid()))}typeof e.minLength=="number"&&(t=t.min(e.minLength)),typeof e.maxLength=="number"&&(t=t.max(e.maxLength)),e.pattern&&(t=t.regex(new RegExp(e.pattern))),o=t;break}case"number":case"integer":{let t=n==="integer"?U.number().int():U.number();typeof e.minimum=="number"&&(t=t.min(e.minimum)),typeof e.maximum=="number"&&(t=t.max(e.maximum)),typeof e.exclusiveMinimum=="number"?t=t.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(t=t.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?t=t.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(t=t.lt(e.maximum)),typeof e.multipleOf=="number"&&(t=t.multipleOf(e.multipleOf)),o=t;break}case"boolean":{o=U.boolean();break}case"null":{o=U.null();break}case"object":{let t={},i=e.properties||{},s=new Set(e.required||[]);for(let[c,u]of Object.entries(i)){let l=ye(u,r);t[c]=s.has(c)?l:l.optional()}if(e.propertyNames){let c=ye(e.propertyNames,r),u=e.additionalProperties&&typeof e.additionalProperties=="object"?ye(e.additionalProperties,r):U.any();if(Object.keys(t).length===0){o=U.record(c,u);break}let l=U.object(t).passthrough(),p=U.looseRecord(c,u);o=U.intersection(l,p);break}if(e.patternProperties){let c=e.patternProperties,u=Object.keys(c),l=[];for(let f of u){let d=ye(c[f],r),m=U.string().regex(new RegExp(f));l.push(U.looseRecord(m,d))}let p=[];if(Object.keys(t).length>0&&p.push(U.object(t).passthrough()),p.push(...l),p.length===0)o=U.object({}).passthrough();else if(p.length===1)o=p[0];else{let f=U.intersection(p[0],p[1]);for(let d=2;d<p.length;d++)f=U.intersection(f,p[d]);o=f}break}let a=U.object(t);e.additionalProperties===!1?o=a.strict():typeof e.additionalProperties=="object"?o=a.catchall(ye(e.additionalProperties,r)):o=a.passthrough();break}case"array":{let t=e.prefixItems,i=e.items;if(t&&Array.isArray(t)){let s=t.map(c=>ye(c,r)),a=i&&typeof i=="object"&&!Array.isArray(i)?ye(i,r):void 0;a?o=U.tuple(s).rest(a):o=U.tuple(s),typeof e.minItems=="number"&&(o=o.check(U.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(U.maxLength(e.maxItems)))}else if(Array.isArray(i)){let s=i.map(c=>ye(c,r)),a=e.additionalItems&&typeof e.additionalItems=="object"?ye(e.additionalItems,r):void 0;a?o=U.tuple(s).rest(a):o=U.tuple(s),typeof e.minItems=="number"&&(o=o.check(U.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(U.maxLength(e.maxItems)))}else if(i!==void 0){let s=ye(i,r),a=U.array(s);typeof e.minItems=="number"&&(a=a.min(e.minItems)),typeof e.maxItems=="number"&&(a=a.max(e.maxItems)),o=a}else o=U.array(U.any());break}default:throw new Error(`Unsupported type: ${n}`)}return o}function ye(e,r){if(typeof e=="boolean")return e?U.any():U.never();let n=My(e,r),o=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let a=e.anyOf.map(u=>ye(u,r)),c=U.union(a);n=o?U.intersection(n,c):c}if(e.oneOf&&Array.isArray(e.oneOf)){let a=e.oneOf.map(u=>ye(u,r)),c=U.xor(a);n=o?U.intersection(n,c):c}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=o?n:U.any();else{let a=o?n:ye(e.allOf[0],r),c=o?0:1;for(let u=c;u<e.allOf.length;u++)a=U.intersection(a,ye(e.allOf[u],r));n=a}e.nullable===!0&&r.version==="openapi-3.0"&&(n=U.nullable(n)),e.readOnly===!0&&(n=U.readonly(n)),e.default!==void 0&&(n=n.default(e.default));let t={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let a of i)a in e&&(t[a]=e[a]);let s=["contentEncoding","contentMediaType","contentSchema"];for(let a of s)a in e&&(t[a]=e[a]);for(let a of Object.keys(e))xk.has(a)||(t[a]=e[a]);return Object.keys(t).length>0&&r.registry.add(n,t),e.description&&(n=n.describe(e.description)),n}function Uy(e,r){if(typeof e=="boolean")return e?U.any():U.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let o=_k(n,r?.defaultTarget),t=n.$defs||n.definitions||{},i={version:o,defs:t,refs:new Map,processing:new Set,rootSchema:n,registry:r?.registry??me};return ye(n,i)}var Pf={};Ve(Pf,{bigint:()=>Ek,boolean:()=>Ik,date:()=>Ck,number:()=>kk,string:()=>$k});function $k(e){return nu(gr,e)}function kk(e){return du(yr,e)}function Ik(e){return yu(br,e)}function Ek(e){return wu(wr,e)}function Ck(e){return zu(un,e)}ce(ki());var Ok=$.enum(["log","info","warn","error","debug"]),Nk=$.object({level:Ok,args:$.array($.string()),timestamp:$.number()}),zk=$.object({method:$.string(),url:$.string(),status:$.number().nullable(),ok:$.boolean().nullable(),durationMs:$.number().nullable(),requestType:$.enum(["fetch","xhr"]),startedAt:$.number(),error:$.string().optional()}),Dk=$.object({message:$.string(),stack:$.string().optional(),source:$.enum(["window.onerror","unhandledrejection","console.error","react-boundary"]),timestamp:$.number()}),Tk=$.object({url:$.string(),route:$.string().optional(),referrer:$.string().optional(),userAgent:$.string(),browser:$.string().optional(),os:$.string().optional(),device:$.enum(["desktop","tablet","mobile"]).optional(),viewport:$.object({width:$.number(),height:$.number()}),screen:$.object({width:$.number(),height:$.number()}),devicePixelRatio:$.number(),language:$.string(),timezone:$.string(),theme:$.enum(["light","dark"]).optional(),online:$.boolean().optional(),capturedAt:$.number()}),Rk=$.object({release:$.string().optional(),gitSha:$.string().optional(),environment:$.string().optional(),featureFlags:$.record($.string(),$.union([$.string(),$.boolean(),$.number()])).optional(),user:$.object({id:$.string().optional(),email:$.string().optional(),name:$.string().optional(),organization:$.string().optional()}).optional(),extra:$.record($.string(),$.unknown()).optional()}),Pk=$.object({domPath:$.string().optional(),tagName:$.string().optional(),text:$.string().optional(),boundingRect:$.object({x:$.number(),y:$.number(),width:$.number(),height:$.number()}).optional(),reactComponents:$.array($.string()).optional()}),it={id:$.string().optional(),color:$.string().optional(),strokeWidth:$.number().optional()},jy=$.object({x:$.number(),y:$.number()}),Ak=$.discriminatedUnion("kind",[$.object({...it,kind:$.literal("rect"),x:$.number(),y:$.number(),width:$.number(),height:$.number(),viewport:$.object({width:$.number(),height:$.number()}).optional()}),$.object({...it,kind:$.literal("ellipse"),x:$.number(),y:$.number(),width:$.number(),height:$.number()}),$.object({...it,kind:$.literal("blur"),x:$.number(),y:$.number(),width:$.number(),height:$.number()}),$.object({...it,kind:$.literal("arrow"),x1:$.number(),y1:$.number(),x2:$.number(),y2:$.number()}),$.object({...it,kind:$.literal("line"),x1:$.number(),y1:$.number(),x2:$.number(),y2:$.number()}),$.object({...it,kind:$.literal("pencil"),points:$.array(jy).min(2)}),$.object({...it,kind:$.literal("highlighter"),points:$.array(jy).min(2)}),$.object({...it,kind:$.literal("text"),x:$.number(),y:$.number(),text:$.string(),fontSize:$.number().optional()}),$.object({...it,kind:$.literal("step"),x:$.number(),y:$.number(),n:$.number()})]),vn=$.enum(["replay","console","network","dom","screenshot","attachment"]),Mk=$.object({kind:vn,key:$.string(),contentType:$.string(),byteSize:$.number().optional()}),Uk=$.enum(["initiated","submitted","triaged","linked","resolved"]),jk=$.enum(["user","api","error"]),Ly=$.object({comment:$.string().optional(),annotations:$.array(Ak).default([]),target:Pk.optional(),env:Tk,app:Rk.optional(),errors:$.array(Dk).default([]),consoleTail:$.array(Nk).default([]),networkTail:$.array(zk).default([]),trigger:jk.optional(),sdk:$.object({name:$.string(),version:$.string()})}),Lk=$.object({id:$.string(),projectId:$.string(),status:Uk,createdAt:$.string(),submittedAt:$.string().nullable(),metadata:Ly.nullable(),assets:$.array(Mk).default([]),externalIssue:$.object({provider:$.string(),key:$.string(),url:$.string()}).nullable().default(null)}),AC=Lk.pick({id:!0,projectId:!0,status:!0,createdAt:!0,submittedAt:!0,externalIssue:!0}).extend({comment:$.string().optional(),url:$.string().optional(),errorCount:$.number().default(0),hasReplay:$.boolean().default(!1)}),UC=$.object({accessId:$.string(),assets:$.array($.object({kind:vn,contentType:$.string()}))}),jC=$.object({reportId:$.string(),uploads:$.array($.object({kind:vn,key:$.string(),url:$.string(),method:$.literal("PUT"),headers:$.record($.string(),$.string())})),expiresAt:$.string()}),LC=$.object({accessId:$.string(),metadata:Ly,uploadedAssets:$.array($.object({kind:vn,key:$.string(),byteSize:$.number().optional()}))}),FC=$.object({reportId:$.string(),status:$.literal("submitted")}),ZC=$.object({accessId:$.string(),kind:vn,key:$.string(),contentType:$.string(),byteSize:$.number().optional()}),BC=$.object({status:$.string().optional(),q:$.string().max(200).optional(),limit:$.coerce.number().min(1).max(100).default(50),cursor:$.string().optional()}),WC=$.object({error:$.string(),message:$.string()});var Fk="@merittdev/horus-lens",Zk="0.3.0",Bk="https://api.horus.sh",Wk=15e3,Vk=200,qk=100,Gk=100,Jk=50,Hk=30,Fy=2e3,Xk=2*1024*1024,Kk=200,Af=2e4,Yk=2,Qk=25e5,eI=600*1e3,tI=5,rI=12e4,nI=1e4,Ff="__lens_root__";function iI(e){return e.toLowerCase().replace(/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/g,"<uuid>").replace(/\d+/g,"<n>").replace(/\s+/g," ").trim()}function oI(e){if(e instanceof Error)return e.message||String(e);if(typeof e=="string")return e;try{let r=JSON.stringify(e);if(r&&r!=="{}")return r}catch{}return String(e)}function sI(e,r){for(let n of r)if(typeof n=="string"){if(e.includes(n))return!0}else if(n.test(e))return!0;return!1}function aI(e,r={}){if(typeof window>"u")return()=>{};let n=r.sampleRate??1,o=r.ignore??[],t=new Map,i=0,s=!1,a=l=>{if(s||!l||sI(l,o)||n<=0||n<1&&Math.random()>=n)return;let p=iI(l),f=Date.now(),d=t.get(p);d!==void 0&&f-d<eI||i>=tI||(t.set(p,f),i+=1,s=!0,r.onCapture?.(p),Promise.resolve().then(()=>e.submitReport({trigger:"error",include:{screenshot:!1}})).catch(()=>{}).finally(()=>{s=!1}))},c=l=>{try{let p=l,f=p.error,d=p.message||(f instanceof Error?f.message:f!=null?String(f):"");a(d)}catch{}},u=l=>{try{a(oI(l.reason))}catch{}};return window.addEventListener("error",c),window.addEventListener("unhandledrejection",u),()=>{window.removeEventListener("error",c),window.removeEventListener("unhandledrejection",u)}}var Mf=class{constructor(e){if(this.capacity=e,e<=0)throw new Error("RingBuffer capacity must be > 0")}capacity;items=[];push(e){this.items.push(e),this.items.length>this.capacity&&this.items.splice(0,this.items.length-this.capacity)}drain(){return[...this.items]}tail(e){return this.items.slice(-e)}clear(){this.items=[]}get size(){return this.items.length}},lI=class{constructor(e){this.config=e}config;async initiate(e){let r={accessId:this.config.accessId,assets:e};return this.postJson(`${this.config.endpoint}/v1/reports/initiate`,r)}async attachAsset(e,r){let n={accessId:this.config.accessId,...r};await this.postJson(`${this.config.endpoint}/v1/reports/${encodeURIComponent(e)}/assets`,n)}async uploadAsset(e,r){let n=await fetch(e.url,{method:e.method,headers:e.headers,body:r});if(!n.ok)throw new Error(`Asset upload failed (${e.kind}): ${n.status}`)}async finalize(e,r,n){let o={accessId:this.config.accessId,metadata:r,uploadedAssets:n};return this.postJson(`${this.config.endpoint}/v1/reports/${e}/finalize`,o)}async postJson(e,r,n=1){let o;for(let t=0;t<=n;t++)try{let i=await fetch(e,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(r)});if(!i.ok){let s=await i.text().catch(()=>"");throw new Error(`Request to ${e} failed: ${i.status} ${s}`.trim())}return await i.json()}catch(i){o=i,this.config.debug&&console.warn(`[lens] request failed (attempt ${t+1}/${n+1})`,i)}throw o}},cI=["log","info","warn","error","debug"];function Uo(e){return e.length>Fy?`${e.slice(0,Fy)}\u2026[truncated]`:e}function uI(e){if(e===null)return"null";if(e===void 0)return"undefined";let r=typeof e;if(r==="string")return Uo(e);if(r==="number"||r==="boolean"||r==="bigint"||r==="symbol")return String(e);if(r==="function")return`[Function: ${e.name||"anonymous"}]`;if(e instanceof Error)return Uo(e.stack?`${e.name}: ${e.message}
|
|
206
|
+
${e.stack}`:`${e.name}: ${e.message}`);try{let n=new WeakSet,o=JSON.stringify(e,(t,i)=>{if(typeof i=="bigint")return String(i);if(typeof i=="function")return"[Function]";if(typeof i=="object"&&i!==null){if(n.has(i))return"[Circular]";n.add(i)}return i});return Uo(o??String(e))}catch{return Uo(String(e))}}function dI(e){for(let r of e)if(r instanceof Error&&r.stack)return r.stack}function fI(e,r){if(typeof console>"u")return()=>{};let n=console,o=[];for(let t of cI){let i=n[t];if(typeof i!="function")continue;let s=(...a)=>{try{let c=a.map(uI),u=Date.now();if(e.push({level:t,args:c,timestamp:u}),t==="error"){let l=dI(a),p={message:c.join(" ")||"console.error",source:"console.error",timestamp:u};l&&(p.stack=l),r.push(p)}}catch{}i.apply(console,a)};n[t]=s,o.push(()=>{n[t]=i})}return()=>{for(let t of o)t()}}function yn(){return typeof performance<"u"&&typeof performance.now=="function"?performance.now():Date.now()}function pI(e){try{return typeof e=="string"?e:e instanceof URL?e.href:e.url}catch{return""}}function Zy(e,r){return r.length>0&&e.startsWith(r)}function hI(e){return e instanceof Error?e.message:String(e)}function mI(e,r){if(typeof window>"u")return()=>{};let n=[],o=window.fetch;if(typeof o=="function"){let i=function(s,a){let c=pI(s),u=(a?.method??(typeof Request<"u"&&s instanceof Request?s.method:"GET")).toUpperCase();if(Zy(c,r))return o.call(window,s,a);let l=Date.now(),p=yn();return o.call(window,s,a).then(f=>(e.push({method:u,url:c,status:f.status,ok:f.ok,durationMs:Math.round(yn()-p),requestType:"fetch",startedAt:l}),f),f=>{throw e.push({method:u,url:c,status:null,ok:null,durationMs:Math.round(yn()-p),requestType:"fetch",startedAt:l,error:hI(f)}),f})};window.fetch=i,n.push(()=>{window.fetch=o})}let t=window.XMLHttpRequest;if(typeof t=="function"){let i=t.prototype,s=i.open,a=i.send,c=new WeakMap,u=function(p,f){try{c.set(this,{method:String(p).toUpperCase(),url:String(f)})}catch{}return s.apply(this,arguments)},l=function(){let p=c.get(this);if(p&&!Zy(p.url,r)){let f=Date.now(),d=yn(),m=this;m.addEventListener("loadend",()=>{let h=m.status,g={method:p.method,url:p.url,status:h===0?null:h,ok:h===0?null:h>=200&&h<300,durationMs:Math.round(yn()-d),requestType:"xhr",startedAt:f};h===0&&(g.error="Network request failed"),e.push(g)},{once:!0})}return a.apply(this,arguments)};i.open=u,i.send=l,n.push(()=>{i.open=s,i.send=a})}return()=>{for(let i of n)i()}}function gI(e){if(typeof window>"u")return()=>{};let r=o=>{let t=o.error,i={message:o.message||(t instanceof Error?t.message:String(t??"Unknown error")),source:"window.onerror",timestamp:Date.now()};t instanceof Error&&t.stack&&(i.stack=t.stack),e.push(i)},n=o=>{let t=o.reason,i={message:t instanceof Error?t.message:String(t),source:"unhandledrejection",timestamp:Date.now()};t instanceof Error&&t.stack&&(i.stack=t.stack),e.push(i)};return window.addEventListener("error",r),window.addEventListener("unhandledrejection",n),()=>{window.removeEventListener("error",r),window.removeEventListener("unhandledrejection",n)}}var vI=class{constructor(e,r){this.windowMs=e,this.debug=r}windowMs;debug;current=[];previous=[];stopFn;warned=!1;manualBuffer=[];manualActive=!1;manualRetained=!1;manualTruncated=!1;manualStartTs=0;manualEndTs=0;start(){if(!this.stopFn&&!(typeof window>"u"||typeof document>"u"))try{let e=qe({emit:(r,n)=>this.onEmit(r,n),checkoutEveryNms:this.windowMs,recordCanvas:!1,inlineImages:!0,collectFonts:!0,blockSelector:`#${Ff}`});this.stopFn=e??void 0}catch(e){this.warnOnce(e)}}onEmit(e,r){if(this.manualActive){let n=e.timestamp-this.manualStartTs<=rI,o=this.manualBuffer.length<nI;n&&o?this.manualBuffer.push(e):this.manualTruncated=!0;return}r&&(this.previous=this.current,this.current=[]),this.current.push(e)}startManualRecording(){this.manualBuffer=[],this.manualTruncated=!1,this.manualStartTs=Date.now(),this.manualEndTs=0,this.manualRetained=!0,this.manualActive=!0;let e=qe.takeFullSnapshot;if(this.stopFn&&typeof e=="function")try{e(!0);return}catch(r){this.warnOnce(r)}this.restart()}stopManualRecording(){return this.manualActive&&(this.manualActive=!1,this.manualEndTs=Date.now()),{durationMs:Math.max(0,this.manualEndTs-this.manualStartTs)}}discardManualRecording(){this.manualActive=!1,this.manualRetained=!1,this.manualTruncated=!1,this.manualBuffer=[]}isManualRecording(){return this.manualActive}hasManualRecording(){return this.manualRetained}isManualTruncated(){return this.manualTruncated}snapshot(){return this.manualRetained?[...this.manualBuffer]:[...this.previous,...this.current]}stop(){try{this.stopFn?.()}catch{}this.stopFn=void 0,this.current=[],this.previous=[],this.manualActive=!1,this.manualRetained=!1,this.manualBuffer=[]}restart(){try{this.stopFn?.()}catch{}this.stopFn=void 0,this.current=[],this.previous=[],this.start()}warnOnce(e){this.warned||!this.debug||(this.warned=!0,console.warn("[lens] rrweb recording unavailable; replay disabled",e))}},yI=3e3;function Wy(e,r,n,o){let t=Math.round(e.x*r),i=Math.round(e.y*r),s=Math.round(e.width*r),a=Math.round(e.height*r);return t=Math.max(0,Math.min(t,n)),i=Math.max(0,Math.min(i,o)),s=Math.min(s,n-t),a=Math.min(a,o-i),s<=0||a<=0?null:{sx:t,sy:i,sw:s,sh:a}}async function bI(e,r,n){if(typeof document>"u"||typeof window>"u")return null;try{let o=window.innerWidth*window.innerHeight||1,t=Math.sqrt(Qk/o),i=Math.max(1,Math.min(window.devicePixelRatio||1,Yk,t)),s=Lm(document.documentElement,{scale:i,type:"image/jpeg",quality:.82,backgroundColor:"#ffffff",...n?{width:n.docWidth,height:n.docHeight}:{},filter:l=>l!==e,fetch:{requestInit:{cache:"force-cache"},bypassingCache:!1},timeout:Af-1e3}),a=Date.now(),c=new Promise(l=>{setTimeout(()=>l(null),Af)}),u=await Promise.race([s.catch(l=>(console.warn("[lens] screenshot capture failed:",l),null)),c]);if(!u)return console.warn(`[lens] screenshot unavailable after ${Date.now()-a}ms`+(Date.now()-a>=Af-50?" (timed out)":"")),null;if(n){let l=await wI(u,n,i,r);if(l)return l;if(n.blurRegions.length>0)return console.warn("[lens] screenshot compositing failed with active redactions; dropping screenshot to avoid leaking un-blurred content"),null}return r?await $I(u,r,i)??u:u}catch(o){return console.warn("[lens] screenshot capture failed:",o),null}}async function wI(e,r,n,o){try{if(typeof createImageBitmap!="function"||typeof document>"u")return null;let t=await createImageBitmap(e),i=document.createElement("canvas");i.width=t.width,i.height=t.height;let s=i.getContext("2d");if(!s)return t.close?.(),null;if(s.fillStyle="#ffffff",s.fillRect(0,0,i.width,i.height),s.drawImage(t,0,0),t.close?.(),xI(s,i,r.blurRegions,n),await _I(s,r,n),o){let a=Wy(o,n,i.width,i.height);if(a){let c=document.createElement("canvas");c.width=a.sw,c.height=a.sh;let u=c.getContext("2d");if(u)return u.drawImage(i,a.sx,a.sy,a.sw,a.sh,0,0,a.sw,a.sh),await jf(c)}}return await jf(i)}catch(t){return console.warn("[lens] screenshot compositing failed:",t),null}}function xI(e,r,n,o){if(n.length===0)return;let t=typeof e.filter=="string",i=Math.max(8,12*o),s=Math.ceil(i);for(let a of n){let c=Math.max(0,Math.min(Math.round(a.x*o),r.width)),u=Math.max(0,Math.min(Math.round(a.y*o),r.height)),l=Math.min(Math.round(a.width*o),r.width-c),p=Math.min(Math.round(a.height*o),r.height-u);if(l<=0||p<=0)continue;if(!t){e.fillStyle="rgba(127,127,127,1)",e.fillRect(c,u,l,p);continue}let f=Math.max(0,c-s),d=Math.max(0,u-s),m=Math.min(r.width,c+l+s)-f,h=Math.min(r.height,u+p+s)-d;if(m<=0||h<=0)continue;let g=document.createElement("canvas");g.width=m,g.height=h;let x=g.getContext("2d");if(!x){e.fillStyle="rgba(127,127,127,1)",e.fillRect(c,u,l,p);continue}x.filter=`blur(${i}px)`,x.drawImage(r,f,d,m,h,0,0,m,h),x.filter="none",e.save(),e.beginPath(),e.rect(c,u,l,p),e.clip(),e.drawImage(g,f,d),e.restore()}}async function _I(e,r,n){let{svgMarkup:o,docWidth:t,docHeight:i}=r;if(!o)return;let s=await SI(o);if(s)try{e.drawImage(s,0,0,t*n,i*n)}catch(a){console.warn("[lens] annotation overlay draw failed:",a)}}function SI(e){return new Promise(r=>{if(typeof Image!="function"){r(null);return}let n=!1,o=s=>{n||(n=!0,clearTimeout(t),r(s))},t=setTimeout(()=>{console.warn("[lens] annotation overlay rasterization timed out"),o(null)},yI),i=new Image;i.onload=()=>o(i),i.onerror=()=>{console.warn("[lens] annotation overlay failed to rasterize"),o(null)},i.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(e)})}function jf(e){return new Promise(r=>{e.toBlob(n=>r(n),"image/jpeg",.82)})}async function $I(e,r,n){try{if(typeof createImageBitmap!="function"||typeof document>"u")return null;let o=await createImageBitmap(e),t=Wy(r,n,o.width,o.height);if(!t)return o.close?.(),null;let i=document.createElement("canvas");i.width=t.sw,i.height=t.sh;let s=i.getContext("2d");return s?(s.drawImage(o,t.sx,t.sy,t.sw,t.sh,0,0,t.sw,t.sh),o.close?.(),await jf(i)):(o.close?.(),null)}catch(o){return console.warn("[lens] screenshot crop failed:",o),null}}function kI(e){if(!e)return;let r=[[/Edg\/([\d.]+)/,n=>`Edge ${n[1]??""}`.trim()],[/OPR\/([\d.]+)/,n=>`Opera ${n[1]??""}`.trim()],[/Firefox\/([\d.]+)/,n=>`Firefox ${n[1]??""}`.trim()],[/Chrome\/([\d.]+)/,n=>`Chrome ${n[1]??""}`.trim()],[/Version\/([\d.]+).*Safari/,n=>`Safari ${n[1]??""}`.trim()],[/Safari\/([\d.]+)/,()=>"Safari"]];for(let[n,o]of r){let t=e.match(n);if(t)return o(t)}}function II(e){if(e){if(/Windows NT 10/.test(e))return"Windows 10";if(/Windows NT/.test(e))return"Windows";if(/iPhone|iPad|iPod/.test(e))return"iOS";if(/Android/.test(e))return"Android";if(/Mac OS X/.test(e))return"macOS";if(/Linux/.test(e))return"Linux"}}function EI(e){let r=typeof navigator<"u"&&typeof navigator.maxTouchPoints=="number"?navigator.maxTouchPoints>0:typeof window<"u"&&"ontouchstart"in window;return/iPad|Tablet/.test(e)||/Android/.test(e)&&!/Mobile/.test(e)?"tablet":/Mobi|iPhone|iPod|Android.*Mobile/.test(e)||r&&/Android|iPhone|iPad/.test(e)?"mobile":"desktop"}function CI(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC"}catch{return"UTC"}}function OI(){try{if(typeof window>"u"||typeof window.matchMedia!="function")return;if(window.matchMedia("(prefers-color-scheme: dark)").matches)return"dark";if(window.matchMedia("(prefers-color-scheme: light)").matches)return"light"}catch{}}function NI(){let e=typeof navigator<"u"?navigator:void 0,r=typeof location<"u"?location:void 0,n=typeof window<"u"?window:void 0,o=typeof screen<"u"?screen:void 0,t=typeof document<"u"?document:void 0,i=e?.userAgent??"",s={url:r?.href??"",userAgent:i,viewport:{width:n?.innerWidth??0,height:n?.innerHeight??0},screen:{width:o?.width??0,height:o?.height??0},devicePixelRatio:n?.devicePixelRatio??1,language:e?.language??"en",timezone:CI(),capturedAt:Date.now()};r?.pathname&&(s.route=r.pathname);let a=t?.referrer;a&&(s.referrer=a);let c=kI(i);c&&(s.browser=c);let u=II(i);u&&(s.os=u),s.device=EI(i);let l=OI();return l&&(s.theme=l),e&&typeof e.onLine=="boolean"&&(s.online=e.onLine),s}function By(e){return typeof CSS<"u"&&typeof CSS.escape=="function"?CSS.escape(e):e.replace(/[^a-zA-Z0-9_-]/g,r=>`\\${r}`)}function zI(e,r=10){if(typeof Element>"u"||!(e instanceof Element))return"";let n=[],o=e,t=0;for(;o&&o.nodeType===1&&t<r;){let i=o;if(i.id){n.unshift(`#${By(i.id)}`);break}let s=i.tagName.toLowerCase(),a=Array.from(i.classList).filter(Boolean).slice(0,3);a.length>0&&(s+=a.map(u=>`.${By(u)}`).join(""));let c=i.parentElement;if(c){let u=Array.from(c.children).filter(l=>l.tagName===i.tagName);u.length>1&&(s+=`:nth-of-type(${u.indexOf(i)+1})`)}n.unshift(s),o=c,t++}return n.join(" > ")}function Lf(e){if(!e)return null;if(typeof e=="function"){let r=e,n=r.displayName||r.name;return n&&n!=="Unknown"?n:null}if(typeof e=="object"){let r=e;if(r.displayName)return r.displayName;if(r.render)return Lf(r.render);if(r.type)return Lf(r.type)}return null}function DI(e,r=10){let n=[];try{let o=e,t=Object.keys(o).find(a=>a.startsWith("__reactFiber$"));if(!t)return n;let i=o[t],s=0;for(;i&&s<60&&n.length<r;){let a=Lf(i.type);a&&n[n.length-1]!==a&&n.push(a),i=i.return,s++}}catch{}return n}function TI(e){if(!(typeof document>"u"))try{let r=document.documentElement?.outerHTML;return r?r.length>e?r.slice(0,e):r:void 0}catch{return}}function RI(e,r){let n={},o=zI(e);o&&(n.domPath=o),e.tagName&&(n.tagName=e.tagName.toLowerCase());let t=(e.textContent??"").replace(/\s+/g," ").trim().slice(0,r);t&&(n.text=t);try{let s=e.getBoundingClientRect();n.boundingRect={x:s.x,y:s.y,width:s.width,height:s.height}}catch{}let i=DI(e);return i.length>0&&(n.reactComponents=i),n}function Uf(e){return new Blob([JSON.stringify(e)],{type:"application/json"})}var Vy=class{accessId;endpoint;replayWindowMs;debug;screenshotEnabled;autoCapture;beforeSend;app;consoleBuffer;networkBuffer;errorBuffer;transport;replay;teardowns=[];started=!1;constructor(e){this.accessId=e.accessId,this.endpoint=(e.endpoint??Bk).replace(/\/+$/,""),this.debug=e.debug??!1,this.screenshotEnabled=e.screenshot??!0,this.autoCapture=e.autoCapture,this.beforeSend=e.beforeSend,this.app=e.app??{},this.replayWindowMs=e.replay===!1?null:e.replay?.windowMs??Wk,this.consoleBuffer=new Mf(e.maxConsoleEntries??Vk),this.networkBuffer=new Mf(e.maxNetworkEntries??qk),this.errorBuffer=new Mf(Gk),this.transport=new lI({accessId:this.accessId,endpoint:this.endpoint,debug:this.debug}),this.replay=this.replayWindowMs!==null?new vI(this.replayWindowMs,this.debug):void 0}start(){if(!this.started){if(typeof window>"u"){this.warn("start() called outside a browser environment; collectors not installed");return}this.started=!0,this.teardowns.push(fI(this.consoleBuffer,this.errorBuffer)),this.teardowns.push(mI(this.networkBuffer,this.endpoint)),this.teardowns.push(gI(this.errorBuffer)),this.replay?.start(),this.autoCapture?.errors&&this.teardowns.push(aI(this,{sampleRate:this.autoCapture.sampleRate,ignore:this.autoCapture.ignore,onCapture:e=>this.warn(`auto-capture: submitting report for "${e}"`)}))}}stop(){if(this.started){this.started=!1;for(let e of this.teardowns.splice(0))try{e()}catch{}this.replay?.stop()}}setApp(e){this.app={...this.app,...e}}captureTarget(e){return RI(e,Kk)}startRecording(){this.replay?.startManualRecording()}stopRecording(){return this.replay?.stopManualRecording()??null}discardRecording(){this.replay?.discardManualRecording()}isRecording(){return this.replay?.isManualRecording()??!1}async submitReport(e){let r=e.include??{},n=r.replay!==!1,o=r.console!==!1,t=r.network!==!1,i=r.errors!==!1,s=r.screenshot!==!1,a=r.dom!==!1,c=this.screenshotEnabled&&s?bI(e.excludeFromScreenshot,e.screenshotCrop,e.annotationComposite):Promise.resolve(null),u=n?this.replay?.snapshot()??[]:[],l=this.errorBuffer.drain(),p=this.consoleBuffer.tail(Jk),f=this.networkBuffer.tail(Hk),d=this.consoleBuffer.drain(),m=this.networkBuffer.drain(),h={annotations:e.annotations??[],env:NI(),app:this.app,errors:i?l:[],consoleTail:o?p:[],networkTail:t?f:[],trigger:e.trigger??"user",sdk:{name:Fk,version:Zk}};if(e.comment!==void 0&&(h.comment=e.comment),e.target!==void 0&&(h.target=e.target),this.beforeSend){let S=this.beforeSend(h);if(!S)throw new Error("[lens] report cancelled by beforeSend");h=S}let g=[];n&&g.push({kind:"replay",contentType:"application/json",blob:Uf(u)}),o&&g.push({kind:"console",contentType:"application/json",blob:Uf(d)}),t&&g.push({kind:"network",contentType:"application/json",blob:Uf(m)});let x=a?TI(Xk):null;x&&g.push({kind:"dom",contentType:"text/html",blob:new Blob([x],{type:"text/html"})}),this.screenshotEnabled&&s&&g.push({kind:"screenshot",contentType:"image/jpeg",blob:null});for(let S of e.attachments??[])g.push({kind:"attachment",contentType:S.contentType,blob:S.blob});let y=await this.transport.initiate(g.map(S=>({kind:S.kind,contentType:S.contentType}))),_=[],v;for(let S=0;S<y.uploads.length;S++){let C=y.uploads[S],P=g[S];if(!(!C||!P)){if(P.kind==="screenshot"){v=C;continue}if(P.blob)try{await this.transport.uploadAsset(C,P.blob),_.push({kind:C.kind,key:C.key,byteSize:P.blob.size})}catch(O){this.warn(`asset upload failed (${C.kind})`,O)}}}let w=await this.transport.finalize(y.reportId,h,_);if(v){let S=v;c.then(async C=>{C&&(await this.transport.uploadAsset(S,C),await this.transport.attachAsset(w.reportId,{kind:"screenshot",key:S.key,contentType:C.type||"image/jpeg",byteSize:C.size}))}).catch(C=>{console.warn("[lens] background screenshot upload failed:",C)})}return{reportId:w.reportId}}warn(e,r){this.debug&&(r!==void 0?console.warn(`[lens] ${e}`,r):console.warn(`[lens] ${e}`))}};var Lo="lens",Gf="lens:active",PI="lense",AI="lense:active",Ky=new Set(["","true","1","on","yes"]),Yy=new Set(["false","0","off","no"]);function Kf(){return typeof window<"u"&&typeof document<"u"}function Qy(e){try{let r=new URLSearchParams(window.location.search),n=r.get(e);return n!==null?n:e===Lo?r.get(PI):null}catch{return null}}function eb(){try{let e=window.sessionStorage;return e.getItem(Gf)==="1"||e.getItem(AI)==="1"}catch{return!1}}function Jf(e){try{e?window.sessionStorage.setItem(Gf,"1"):window.sessionStorage.removeItem(Gf)}catch{}}function MI(e=Lo){if(!Kf())return!1;let r=Qy(e);if(r!==null){let n=r.trim().toLowerCase();if(Yy.has(n))return Jf(!1),!1;if(Ky.has(n))return Jf(!0),!0}return eb()}function tb(e=Lo){if(!Kf())return!1;let r=Qy(e);if(r!==null){let n=r.trim().toLowerCase();if(Yy.has(n))return!1;if(Ky.has(n))return!0}return eb()}function qy(){Kf()&&Jf(!1)}function UI(e=navigator.userAgent){return/Edg\//.test(e)?"Edge":/OPR\/|Opera/.test(e)?"Opera":/Firefox\//.test(e)?"Firefox":/Chrome\//.test(e)&&!/Chromium/.test(e)?"Chrome":/Chromium\//.test(e)?"Chromium":/Safari\//.test(e)&&/Version\//.test(e)?"Safari":"Browser"}function jI(e=navigator.userAgent){return/Windows NT/.test(e)?"Windows":/Mac OS X|Macintosh/.test(e)?"macOS":/Android/.test(e)?"Android":/iPhone|iPad|iPod/.test(e)?"iOS":/Linux/.test(e)?"Linux":"Unknown"}function LI(){return{width:window.innerWidth||document.documentElement.clientWidth||0,height:window.innerHeight||document.documentElement.clientHeight||0}}function FI(){return(window.location.pathname||"/")+(window.location.search||"")}function A(e,r={},n=[]){let o=document.createElement(e);if(r.class&&(o.className=r.class),r.text!==void 0&&(o.textContent=r.text),r.html!==void 0&&(o.innerHTML=r.html),r.title&&(o.title=r.title),r.ariaLabel&&o.setAttribute("aria-label",r.ariaLabel),r.type&&"type"in o&&(o.type=r.type),r.placeholder&&"placeholder"in o&&(o.placeholder=r.placeholder),r.attrs)for(let[t,i]of Object.entries(r.attrs))o.setAttribute(t,i);if(r.style&&Object.assign(o.style,r.style),r.on)for(let[t,i]of Object.entries(r.on))i&&o.addEventListener(t,i);for(let t of n)t==null||t===!1||o.append(t);return o}function Zf(e){for(;e.firstChild;)e.removeChild(e.firstChild)}var ZI=3,BI=2e3,Gy=14,bn=12;function jo(e,r){return Math.hypot(e.x-r.x,e.y-r.y)}function WI(e,r,n=ZI){return jo(e,r)>=n}function VI(e,r,n){let o=n.x-r.x,t=n.y-r.y,i=o*o+t*t;if(i===0)return jo(e,r);let s=((e.x-r.x)*o+(e.y-r.y)*t)/i;return s=Math.max(0,Math.min(1,s)),jo(e,{x:r.x+s*o,y:r.y+s*t})}function Hf(e,r=1){if(e.length<=2||r<=0)return e.map(s=>({...s}));let n=e[0],o=e[e.length-1],t=0,i=0;for(let s=1;s<e.length-1;s++){let a=VI(e[s],n,o);a>t&&(t=a,i=s)}if(t>r){let s=Hf(e.slice(0,i+1),r),a=Hf(e.slice(i),r);return s.slice(0,-1).concat(a)}return[{...n},{...o}]}function qI(e,r,n,o,t=14){let i=Math.atan2(o-r,n-e),s=Math.PI/7;return[{x:n,y:o},{x:n-t*Math.cos(i-s),y:o-t*Math.sin(i-s)},{x:n-t*Math.cos(i+s),y:o-t*Math.sin(i+s)}]}function Jy(e){switch(e.kind){case"rect":case"ellipse":case"blur":{let r=Math.min(e.x,e.x+e.width),n=Math.min(e.y,e.y+e.height);return{x:r,y:n,width:Math.abs(e.width),height:Math.abs(e.height)}}case"arrow":case"line":{let r=Math.min(e.x1,e.x2),n=Math.min(e.y1,e.y2);return{x:r,y:n,width:Math.abs(e.x2-e.x1),height:Math.abs(e.y2-e.y1)}}case"pencil":case"highlighter":{if(e.points.length===0)return null;let r=1/0,n=1/0,o=-1/0,t=-1/0;for(let i of e.points)r=Math.min(r,i.x),n=Math.min(n,i.y),o=Math.max(o,i.x),t=Math.max(t,i.y);return{x:r,y:n,width:o-r,height:t-n}}case"text":{let r=e.fontSize??16,n=Math.max(1,e.text.length*r*.6);return{x:e.x,y:e.y,width:n,height:r*1.2}}case"step":return{x:e.x-bn,y:e.y-bn,width:bn*2,height:bn*2}}}function GI(e){if(e.length===0)return null;let r=1/0,n=1/0,o=-1/0,t=-1/0;for(let i of e)r=Math.min(r,i.x),n=Math.min(n,i.y),o=Math.max(o,i.x+i.width),t=Math.max(t,i.y+i.height);return{x:r,y:n,width:o-r,height:t-n}}function JI(e,r,n,o){let t=Math.max(0,e.x-r),i=Math.max(0,e.y-r),s=Math.min(n,e.x+e.width+r),a=Math.min(o,e.y+e.height+r);return{x:t,y:i,width:Math.max(0,s-t),height:Math.max(0,a-i)}}var he=e=>`<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">${e}</svg>`,HI=he('<path d="M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/>'),XI=he('<circle cx="12" cy="12" r="8"/><line x1="12" y1="2" x2="12" y2="6"/><line x1="12" y1="18" x2="12" y2="22"/><line x1="2" y1="12" x2="6" y2="12"/><line x1="18" y1="12" x2="22" y2="12"/>'),Xf=he('<line x1="6" y1="6" x2="18" y2="18"/><line x1="18" y1="6" x2="6" y2="18"/>'),tO=he('<rect x="3" y="3" width="18" height="18" rx="2" stroke-dasharray="4 3"/>'),Hy=he('<rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V5a2 2 0 0 1 2-2h10"/>'),Bf=he('<polyline points="20 6 9 17 4 12"/>'),KI=he('<line x1="22" y1="2" x2="11" y2="13"/><polygon points="22 2 15 22 11 13 2 9 22 2"/>'),YI='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" aria-hidden="true"><circle cx="12" cy="12" r="6" fill="#ef4444"/></svg>',QI='<svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><rect x="6" y="6" width="12" height="12" rx="2"/></svg>',e0=he('<rect x="4" y="6" width="16" height="12" rx="1"/>'),t0=he('<ellipse cx="12" cy="12" rx="8" ry="6"/>'),r0=he('<line x1="5" y1="19" x2="18" y2="6"/><polyline points="18 12 18 6 12 6"/>'),n0=he('<line x1="5" y1="19" x2="19" y2="5"/>'),rb=he('<path d="M12 20h9"/><path d="M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"/>'),i0=he('<path d="m9 11-6 6v3h9l3-3"/><path d="m22 12-4.6 4.6a1 1 0 0 1-1.4 0l-5.6-5.6a1 1 0 0 1 0-1.4L14 4"/>'),o0=he('<polyline points="4 7 4 4 20 4 20 7"/><line x1="12" y1="4" x2="12" y2="20"/><line x1="9" y1="20" x2="15" y2="20"/>'),s0=he('<circle cx="12" cy="12" r="9"/><path d="M11.2 9 13 8v8"/>'),a0=he('<path d="M12 3s6 6.4 6 10a6 6 0 0 1-12 0c0-3.6 6-10 6-10Z"/>'),l0=he('<path d="M9 14 4 9l5-5"/><path d="M4 9h11a5 5 0 0 1 0 10h-1"/>'),c0=he('<polyline points="3 6 5 6 21 6"/><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/>'),u0=rb,ot="http://www.w3.org/2000/svg",Xy="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",Wf=6,d0=[{tool:"rect",icon:e0,label:"Rectangle"},{tool:"ellipse",icon:t0,label:"Ellipse"},{tool:"arrow",icon:r0,label:"Arrow"},{tool:"line",icon:n0,label:"Line"},{tool:"pencil",icon:rb,label:"Pencil"},{tool:"highlighter",icon:i0,label:"Highlighter"},{tool:"text",icon:o0,label:"Text"},{tool:"step",icon:s0,label:"Step number"},{tool:"blur",icon:a0,label:"Blur / redact"}],Vf=["#ef4444","#f59e0b","#22c55e","#3b82f6","#8b5cf6","#111827"],f0=[{label:"S",value:2},{label:"M",value:3.5},{label:"L",value:6}],p0=class{constructor(e){this.host=e}host;svg=null;bg=null;toolbar=null;textInputEl=null;textAnchor=null;textColor=Vf[0];annotations=[];markNodes=[];drag=null;active=!1;sessionBase=0;stepCounter=0;idSeq=0;onExit=null;tool="rect";color=Vf[0];width=3.5;docW=0;docH=0;resizeObserver=null;toolBtns=new Map;colorBtns=new Map;widthBtns=new Map;undoBtn=null;clearBtn=null;get isActive(){return this.active}get count(){return this.annotations.length}list(){return this.annotations.map(e=>{let r={...e};return"points"in r&&Array.isArray(r.points)&&(r.points=r.points.map(n=>({...n}))),r.kind==="rect"&&r.viewport&&(r.viewport={...r.viewport}),r})}clear(){for(let e of this.markNodes)e.remove();this.markNodes=[],this.annotations=[],this.stepCounter=0,this.active||this.teardownLayer(),this.syncActionButtons()}start(e){if(this.active)return;this.ensureLayer();let r=this.svg;this.active=!0,this.onExit=e,this.sessionBase=this.annotations.length,this.stepCounter=0,this.sizeLayer(),this.updateTransform(),r.style.pointerEvents="auto",r.style.touchAction="none",r.style.cursor="crosshair",r.addEventListener("pointerdown",this.onPointerDown),this.buildToolbar(),window.addEventListener("keydown",this.onKey,!0)}exit(){if(!this.active)return;this.active=!1,this.commitTextInput(),this.drag&&(this.drag.node.remove(),this.detachDragListeners(),this.drag=null);let e=this.svg;e&&(e.removeEventListener("pointerdown",this.onPointerDown),e.style.pointerEvents="none",e.style.touchAction="",e.style.cursor=""),window.removeEventListener("keydown",this.onKey,!0),this.removeToolbar();let r=this.onExit;this.onExit=null,r?.()}cancel(){this.cancelTextInput();let e=this.markNodes.splice(this.sessionBase);for(let r of e)r.remove();this.annotations.splice(this.sessionBase),this.exit()}undo(){let e=this.markNodes.pop();e&&(e.remove(),this.annotations.pop(),this.syncActionButtons())}getComposite(){if(this.annotations.length===0||!this.svg)return null;this.sizeLayer();let e=this.docW,r=this.docH,n=this.svg.cloneNode(!0);n.removeAttribute("style"),n.removeAttribute("class"),n.querySelectorAll("[data-lens-chrome],[data-lens-draft],[data-lens-blur]").forEach(i=>i.remove()),n.querySelector("defs")?.remove(),n.setAttribute("xmlns",ot),n.setAttribute("viewBox",`0 0 ${e} ${r}`),n.setAttribute("width",String(e)),n.setAttribute("height",String(r));let o=new XMLSerializer().serializeToString(n),t=this.annotations.filter(i=>i.kind==="blur").map(i=>({x:i.x,y:i.y,width:i.width,height:i.height}));return{svgMarkup:o,docWidth:e,docHeight:r,blurRegions:t}}getCropBounds(){if(this.annotations.length===0)return;let e=[];for(let n=0;n<this.annotations.length;n++){let o=this.annotations[n],t=o.kind==="text"?this.textBounds(n):Jy(o);t&&e.push(t)}let r=GI(e);if(r)return this.sizeLayer(),JI(r,24,this.docW,this.docH)}textBounds(e){let r=this.markNodes[e],n=this.annotations[e];if(r&&typeof r.getBBox=="function")try{let o=r.getBBox();if(o.width>0&&o.height>0)return{x:o.x,y:o.y,width:o.width,height:o.height}}catch{}return Jy(n)}ensureLayer(){if(this.svg)return;let e=document.createElementNS(ot,"svg");e.setAttribute("class","lens-annotate-svg"),e.setAttribute("xmlns",ot);let r=document.createElementNS(ot,"defs");r.setAttribute("data-lens-chrome","1");let n=document.createElementNS(ot,"pattern");n.setAttribute("id","lens-blur-hatch"),n.setAttribute("width","8"),n.setAttribute("height","8"),n.setAttribute("patternUnits","userSpaceOnUse"),n.setAttribute("patternTransform","rotate(45)");let o=document.createElementNS(ot,"rect");o.setAttribute("width","8"),o.setAttribute("height","8"),o.setAttribute("fill","rgba(17,24,39,0.12)");let t=document.createElementNS(ot,"line");t.setAttribute("x1","0"),t.setAttribute("y1","0"),t.setAttribute("x2","0"),t.setAttribute("y2","8"),t.setAttribute("stroke","rgba(17,24,39,0.55)"),t.setAttribute("stroke-width","4"),n.append(o,t),r.append(n),e.append(r);let i=document.createElementNS(ot,"rect");i.setAttribute("data-lens-chrome","1"),i.setAttribute("x","0"),i.setAttribute("y","0"),i.setAttribute("fill","transparent"),i.style.pointerEvents="all",e.append(i),this.svg=e,this.bg=i,this.host.append(e),window.addEventListener("scroll",this.onScroll,{passive:!0,capture:!0}),window.addEventListener("resize",this.onResize),typeof ResizeObserver<"u"&&(this.resizeObserver=new ResizeObserver(this.onResize),this.resizeObserver.observe(document.documentElement)),this.sizeLayer(),this.updateTransform()}teardownLayer(){window.removeEventListener("scroll",this.onScroll,!0),window.removeEventListener("resize",this.onResize),this.resizeObserver?.disconnect(),this.resizeObserver=null,this.svg?.remove(),this.svg=null,this.bg=null}docSize(){let e=document.documentElement,r=document.body,n=Math.max(e.scrollWidth,r?.scrollWidth??0,e.clientWidth),o=Math.max(e.scrollHeight,r?.scrollHeight??0,e.clientHeight);return{width:n,height:o}}sizeLayer(){if(!this.svg)return;let{width:e,height:r}=this.docSize();this.docW=e,this.docH=r,this.svg.setAttribute("width",String(e)),this.svg.setAttribute("height",String(r)),this.svg.setAttribute("viewBox",`0 0 ${e} ${r}`),this.svg.style.width=`${e}px`,this.svg.style.height=`${r}px`,this.bg&&(this.bg.setAttribute("width",String(e)),this.bg.setAttribute("height",String(r)))}updateTransform(){if(!this.svg)return;let e=window.scrollX||window.pageXOffset||0,r=window.scrollY||window.pageYOffset||0;this.svg.style.left=`${-e}px`,this.svg.style.top=`${-r}px`}onScroll=()=>this.updateTransform();onResize=()=>{this.sizeLayer(),this.updateTransform()};buildToolbar(){this.toolBtns.clear(),this.colorBtns.clear(),this.widthBtns.clear();let e=A("div",{class:"lens-tool-group"});for(let{tool:i,icon:s,label:a}of d0){let c=A("button",{class:"lens-tool-btn",ariaLabel:a,title:a,html:s,attrs:{type:"button","aria-pressed":String(i===this.tool)},on:{click:()=>this.selectTool(i)}});this.toolBtns.set(i,c),e.append(c)}let r=A("div",{class:"lens-tool-group lens-swatches"});for(let i of Vf){let s=A("button",{class:"lens-swatch",ariaLabel:`Color ${i}`,title:i,attrs:{type:"button","aria-pressed":String(i===this.color)},style:{background:i},on:{click:()=>this.selectColor(i)}});this.colorBtns.set(i,s),r.append(s)}let n=A("div",{class:"lens-tool-group"});for(let{label:i,value:s}of f0){let a=A("button",{class:"lens-width-btn",text:i,ariaLabel:`Stroke width ${i}`,title:`Stroke ${i} (${s}px)`,attrs:{type:"button","aria-pressed":String(s===this.width)},on:{click:()=>this.selectWidth(s)}});this.widthBtns.set(s,a),n.append(a)}this.undoBtn=A("button",{class:"lens-tool-btn",ariaLabel:"Undo",title:"Undo",html:l0,attrs:{type:"button"},on:{click:()=>this.undo()}}),this.clearBtn=A("button",{class:"lens-tool-btn",ariaLabel:"Clear all",title:"Clear all",html:c0,attrs:{type:"button"},on:{click:()=>this.clear()}});let o=A("div",{class:"lens-tool-group"},[this.undoBtn,this.clearBtn]),t=A("div",{class:"lens-tool-group"},[A("button",{class:"lens-pick-chip__btn",text:"Cancel",attrs:{type:"button"},on:{click:()=>this.cancel()}}),A("button",{class:"lens-pick-chip__btn lens-pick-chip__btn--primary",text:"Done",attrs:{type:"button"},on:{click:()=>this.exit()}})]);this.toolbar=A("div",{class:"lens-annotate-toolbar",attrs:{role:"toolbar","aria-label":"Annotation tools"}},[e,A("span",{class:"lens-tool-sep"}),r,A("span",{class:"lens-tool-sep"}),n,A("span",{class:"lens-tool-sep"}),o,A("span",{class:"lens-tool-sep"}),t]),this.host.append(this.toolbar),this.syncActionButtons()}removeToolbar(){this.toolbar?.remove(),this.toolbar=null,this.toolBtns.clear(),this.colorBtns.clear(),this.widthBtns.clear(),this.undoBtn=null,this.clearBtn=null}selectTool(e){this.commitTextInput(),this.tool=e;for(let[r,n]of this.toolBtns){let o=r===e;n.classList.toggle("is-active",o),n.setAttribute("aria-pressed",String(o))}this.svg&&(this.svg.style.cursor=e==="text"?"text":"crosshair")}selectColor(e){this.color=e;for(let[r,n]of this.colorBtns){let o=r===e;n.classList.toggle("is-active",o),n.setAttribute("aria-pressed",String(o))}}selectWidth(e){this.width=e;for(let[r,n]of this.widthBtns){let o=r===e;n.classList.toggle("is-active",o),n.setAttribute("aria-pressed",String(o))}}syncActionButtons(){let e=this.markNodes.length===0;this.undoBtn&&(this.undoBtn.disabled=e),this.clearBtn&&(this.clearBtn.disabled=e)}toDoc(e){return{x:e.clientX+(window.scrollX||window.pageXOffset||0),y:e.clientY+(window.scrollY||window.pageYOffset||0)}}onPointerDown=e=>{if(!this.active||e.button!==void 0&&e.button!==0)return;e.preventDefault();let r=this.toDoc(e),n=this.tool;if(n==="text"){this.openTextInput(e.clientX,e.clientY,r);return}if(n==="step"){this.placeStep(r);return}let o=this.color,t=this.width,i;if(n==="pencil"||n==="highlighter"){let s=this.svgEl("polyline",{"data-lens-draft":"1",fill:"none",stroke:o,"stroke-width":n==="highlighter"?Gy:t,"stroke-linecap":"round","stroke-linejoin":"round",...n==="highlighter"?{"stroke-opacity":"0.35"}:{},points:`${r.x},${r.y}`});this.svg.append(s),i={tool:n,color:o,width:t,start:r,node:s,points:[r],last:r}}else if(n==="arrow"){let s=this.svgEl("g",{"data-lens-draft":"1"}),a=this.svgEl("line",{stroke:o,"stroke-width":t,"stroke-linecap":"round"}),c=this.svgEl("polygon",{fill:o});s.append(a,c),this.svg.append(s),i={tool:n,color:o,width:t,start:r,node:s,line:a,head:c},this.updateArrow(i,r)}else{let s=this.createShapeNode(n,o,t);this.svg.append(s),i={tool:n,color:o,width:t,start:r,node:s},this.updateShape(i,r)}this.drag=i,window.addEventListener("pointermove",this.onPointerMove,!0),window.addEventListener("pointerup",this.onPointerUp,!0)};onPointerMove=e=>{let r=this.drag;if(!r)return;let n=this.toDoc(e);if(r.tool==="pencil"||r.tool==="highlighter"){let o=r.points;r.last&&WI(r.last,n)&&o.length<BI&&(o.push(n),r.last=n,r.node.setAttribute("points",this.pointsAttr(o)))}else r.tool==="arrow"?this.updateArrow(r,n):this.updateShape(r,n)};onPointerUp=e=>{let r=this.drag;if(this.detachDragListeners(),this.drag=null,!r)return;let n=this.toDoc(e),o=null;if(r.tool==="pencil"||r.tool==="highlighter"){let t=r.points;if(t.length>=2&&(t=Hf(t,1)),t.length<2){r.node.remove();return}r.node.setAttribute("points",this.pointsAttr(t)),o=r.tool==="pencil"?{kind:"pencil",points:t,color:r.color,strokeWidth:r.width,id:this.nextId()}:{kind:"highlighter",points:t,color:r.color,strokeWidth:Gy,id:this.nextId()}}else if(r.tool==="arrow"||r.tool==="line"){if(jo(r.start,n)<Wf){r.node.remove();return}r.tool==="arrow"?(this.updateArrow(r,n),o={kind:"arrow",x1:r.start.x,y1:r.start.y,x2:n.x,y2:n.y,color:r.color,strokeWidth:r.width,id:this.nextId()}):(this.updateShape(r,n),o={kind:"line",x1:r.start.x,y1:r.start.y,x2:n.x,y2:n.y,color:r.color,strokeWidth:r.width,id:this.nextId()})}else{let t=Math.min(r.start.x,n.x),i=Math.min(r.start.y,n.y),s=Math.abs(n.x-r.start.x),a=Math.abs(n.y-r.start.y);if(s<Wf||a<Wf){r.node.remove();return}this.updateShape(r,n),r.tool==="rect"?o={kind:"rect",x:t,y:i,width:s,height:a,color:r.color,strokeWidth:r.width,id:this.nextId()}:r.tool==="ellipse"?o={kind:"ellipse",x:t,y:i,width:s,height:a,color:r.color,strokeWidth:r.width,id:this.nextId()}:o={kind:"blur",x:t,y:i,width:s,height:a,id:this.nextId()}}r.node.removeAttribute("data-lens-draft"),this.commitMark(o,r.node)};detachDragListeners(){window.removeEventListener("pointermove",this.onPointerMove,!0),window.removeEventListener("pointerup",this.onPointerUp,!0)}commitMark(e,r){this.annotations.push(e),this.markNodes.push(r),this.syncActionButtons()}createShapeNode(e,r,n){return e==="ellipse"?this.svgEl("ellipse",{"data-lens-draft":"1",fill:"none",stroke:r,"stroke-width":n}):e==="line"?this.svgEl("line",{"data-lens-draft":"1",stroke:r,"stroke-width":n,"stroke-linecap":"round"}):e==="blur"?this.svgEl("rect",{"data-lens-draft":"1","data-lens-blur":"1",fill:"url(#lens-blur-hatch)",stroke:"#111827","stroke-width":1,"stroke-dasharray":"4 3"}):this.svgEl("rect",{"data-lens-draft":"1",fill:"none",stroke:r,"stroke-width":n,rx:2})}updateShape(e,r){let n=Math.min(e.start.x,r.x),o=Math.min(e.start.y,r.y),t=Math.abs(r.x-e.start.x),i=Math.abs(r.y-e.start.y),s=e.node;e.tool==="ellipse"?(s.setAttribute("cx",String(n+t/2)),s.setAttribute("cy",String(o+i/2)),s.setAttribute("rx",String(t/2)),s.setAttribute("ry",String(i/2))):e.tool==="line"?(s.setAttribute("x1",String(e.start.x)),s.setAttribute("y1",String(e.start.y)),s.setAttribute("x2",String(r.x)),s.setAttribute("y2",String(r.y))):(s.setAttribute("x",String(n)),s.setAttribute("y",String(o)),s.setAttribute("width",String(t)),s.setAttribute("height",String(i)))}updateArrow(e,r){if(!e.line||!e.head)return;e.line.setAttribute("x1",String(e.start.x)),e.line.setAttribute("y1",String(e.start.y)),e.line.setAttribute("x2",String(r.x)),e.line.setAttribute("y2",String(r.y));let n=Math.max(12,e.width*3),o=qI(e.start.x,e.start.y,r.x,r.y,n);e.head.setAttribute("points",this.pointsAttr(o))}openTextInput(e,r,n){this.commitTextInput();let o=A("input",{class:"lens-text-input",attrs:{type:"text","aria-label":"Annotation text"},style:{left:`${e}px`,top:`${r}px`,color:this.color}});o.addEventListener("blur",()=>this.commitTextInput()),this.host.append(o),this.textInputEl=o,this.textAnchor=n,this.textColor=this.color,o.focus()}commitTextInput(){let e=this.textInputEl,r=this.textAnchor;if(!e||!r)return;let n=e.value.trim();if(this.textInputEl=null,this.textAnchor=null,e.remove(),!n)return;let o=this.svgEl("text",{x:r.x,y:r.y,fill:this.textColor,"font-size":16,"font-family":Xy,"dominant-baseline":"hanging"});o.textContent=n,this.svg.append(o),this.commitMark({kind:"text",x:r.x,y:r.y,text:n,fontSize:16,color:this.textColor,id:this.nextId()},o)}cancelTextInput(){this.textInputEl&&(this.textInputEl.remove(),this.textInputEl=null,this.textAnchor=null)}placeStep(e){let r=++this.stepCounter,n=this.svgEl("g",{}),o=this.svgEl("circle",{cx:e.x,cy:e.y,r:bn,fill:this.color}),t=this.svgEl("text",{x:e.x,y:e.y,fill:"#ffffff","font-size":13,"font-weight":700,"font-family":Xy,"text-anchor":"middle","dominant-baseline":"central"});t.textContent=String(r),n.append(o,t),this.svg.append(n),this.commitMark({kind:"step",x:e.x,y:e.y,n:r,color:this.color,id:this.nextId()},n)}onKey=e=>{if(this.textInputEl){e.key==="Escape"?(e.preventDefault(),e.stopPropagation(),this.cancelTextInput()):e.key==="Enter"&&(e.preventDefault(),e.stopPropagation(),this.commitTextInput());return}e.key==="Escape"&&(e.preventDefault(),e.stopPropagation(),this.exit())};svgEl(e,r){let n=document.createElementNS(ot,e);for(let[o,t]of Object.entries(r))n.setAttribute(o,String(t));return n}pointsAttr(e){return e.map(r=>`${r.x},${r.y}`).join(" ")}nextId(){return`lens-${++this.idSeq}`}},h0=[{key:"replay",label:"Replay"},{key:"console",label:"Console"},{key:"network",label:"Network"},{key:"errors",label:"Errors"},{key:"screenshot",label:"Screenshot"}],m0=class{constructor(e){this.cb=e,this.body=A("div",{class:"lens-panel__body"}),this.root=A("div",{class:"lens-panel",attrs:{role:"dialog","aria-label":"Report an issue"}},[A("div",{class:"lens-panel__head"},[A("div",{class:"lens-panel__title",text:"Report an issue"}),A("button",{class:"lens-panel__x",ariaLabel:"Close",html:Xf,on:{click:()=>this.cb.onClose()}})]),this.body]),this.renderForm()}cb;root;body;textarea;submitBtn;autoCloseTimer=null;submitting=!1;include={replay:!0,console:!0,network:!0,errors:!0,screenshot:!0};refresh(){this.submitting||this.renderForm()}focus(){this.textarea?.focus()}destroy(){this.autoCloseTimer&&clearTimeout(this.autoCloseTimer),this.root.remove()}renderForm(){let e=this.textarea?.value??"";Zf(this.body),this.textarea=A("textarea",{class:"lens-textarea",placeholder:"What's wrong? Describe the issue\u2026",ariaLabel:"Issue description"}),this.textarea.value=e,this.body.append(this.textarea,this.buildContext(),this.buildIncludes(),this.buildChips(),this.buildActions())}buildContext(){let e=this.cb.getStats(),r=[qf(e.route||e.url,40),`${e.browser} \xB7 ${e.os}`,`${e.viewport.width}\xD7${e.viewport.height}`],n=[];return r.forEach((o,t)=>{t>0&&n.push(A("span",{class:"lens-context__dot",text:"\xB7"})),n.push(A("span",{class:"lens-context__item",text:o}))}),A("div",{class:"lens-context",title:e.url},n)}buildIncludes(){let e=this.cb.getStats(),r={console:e.console,network:e.network,errors:e.errors},n=h0.map(o=>this.buildToggle(o.key,o.label,r[o.key]));return A("div",{class:"lens-includes"},[A("span",{class:"lens-includes__label",text:"Include:"}),...n])}buildToggle(e,r,n){let o=this.include[e],t=A("button",{class:`lens-tgl${o?" is-on":""}`,attrs:{type:"button",role:"switch","aria-checked":String(o)},html:`<span class="lens-tgl__check" aria-hidden="true">${Bf}</span>`});return t.append(A("span",{class:"lens-tgl__label",text:r})),typeof n=="number"&&n>0&&t.append(A("span",{class:"lens-tgl__count",text:String(n)})),t.addEventListener("click",()=>{let i=!this.include[e];this.include[e]=i,t.classList.toggle("is-on",i),t.setAttribute("aria-checked",String(i))}),t}buildChips(){let e=A("div",{class:"lens-chips"}),r=this.cb.getAnnotationCount();r>0&&e.append(g0(`${r} annotation${r===1?"":"s"}`));let n=this.cb.getRecording();if(n){let t=A("span",{class:"lens-chip lens-chip--ok lens-chip--rec"},[A("span",{text:`recording \u2713 ${nb(n.durationMs)}`}),A("button",{class:"lens-chip__x",ariaLabel:"Discard recording",text:"\xD7",on:{click:()=>this.cb.onDiscardRecording()}})]);e.append(t)}let o=this.cb.getTarget();if(o){let t=o.domPath||o.tagName||"element",i=A("span",{class:"lens-chip lens-chip--target",title:t},[A("span",{class:"lens-chip__code",text:qf(t,40)}),A("button",{class:"lens-chip__x",ariaLabel:"Remove element",text:"\xD7",on:{click:()=>this.cb.onRemoveTarget()}})]);e.append(i)}return e.style.display=e.childElementCount>0?"":"none",e}buildActions(){let e=A("button",{class:"lens-abtn lens-abtn--ghost lens-abtn--compact",html:u0+"<span>Annotate</span>",on:{click:()=>this.cb.onMarkArea()}}),r=A("button",{class:"lens-abtn lens-abtn--ghost lens-abtn--compact",html:YI+"<span>Record steps</span>",on:{click:()=>this.cb.onRecordSteps()}}),n=A("button",{class:"lens-abtn lens-abtn--ghost",text:"Cancel",on:{click:()=>this.cb.onClose()}});return this.submitBtn=A("button",{class:"lens-abtn lens-abtn--primary lens-abtn--submit",html:KI+"<span>Submit</span>",on:{click:()=>{this.submit()}}}),A("div",{class:"lens-actions"},[A("div",{class:"lens-actions__row lens-actions__secondary"},[e,r]),A("div",{class:"lens-actions__row lens-actions__primary"},[n,this.submitBtn])])}async submit(){if(this.submitting)return;let e=this.textarea.value.trim();this.submitting=!0,this.submitBtn.disabled=!0,this.submitBtn.innerHTML="<span>Submitting\u2026</span>";try{let{reportId:r}=await this.cb.onSubmit(e,{...this.include});this.renderSuccess(r)}catch(r){this.renderError(r instanceof Error?r.message:"Something went wrong")}finally{this.submitting=!1}}renderSuccess(e){Zf(this.body);let r=A("div",{class:"lens-idpill"},[A("span",{text:e}),A("button",{ariaLabel:"Copy report id",html:Hy,on:{click:n=>{let o=n.currentTarget;v0(e).then(()=>{o.innerHTML=Bf,setTimeout(()=>o.innerHTML=Hy,1200)})}}})]);this.body.append(A("div",{class:"lens-state"},[A("div",{class:"lens-state__badge lens-state__badge--ok",html:Bf}),A("div",{class:"lens-state__title",text:"Report submitted"}),A("div",{class:"lens-state__msg",text:"Thanks \u2014 the team can see the full context."}),r])),this.autoCloseTimer=setTimeout(()=>this.cb.onClose(),2500)}renderError(e){Zf(this.body),this.body.append(A("div",{class:"lens-state"},[A("div",{class:"lens-state__badge lens-state__badge--err",html:Xf}),A("div",{class:"lens-state__title",text:"Submission failed"}),A("div",{class:"lens-state__msg",text:qf(e,120)}),A("div",{class:"lens-actions"},[A("button",{class:"lens-abtn lens-abtn--ghost",text:"Cancel",on:{click:()=>this.cb.onClose()}}),A("button",{class:"lens-abtn lens-abtn--primary",text:"Retry",on:{click:()=>this.renderForm()}})])]))}};function g0(e,r,n){return A("span",{class:`lens-chip${n?" "+n:""}`,text:e,title:r??e})}function qf(e,r){return e.length>r?e.slice(0,r-1)+"\u2026":e}function nb(e){let r=Math.max(0,Math.round(e/1e3)),n=Math.floor(r/60),o=r%60;return`${n}:${o.toString().padStart(2,"0")}`}async function v0(e){try{await navigator.clipboard.writeText(e)}catch{}}var y0=class{constructor(e,r){this.layer=e,this.rootHost=r,this.tag=A("div",{class:"lens-highlight__tag"}),this.highlight=A("div",{class:"lens-highlight"},[this.tag]),this.hint=A("div",{class:"lens-pick-chip"},[A("span",{class:"lens-pick-chip__label",text:"Tap an element"}),A("button",{class:"lens-pick-chip__btn",text:"Cancel",on:{click:()=>this.cancel()}})]),this.layer.append(this.highlight,this.hint),this.hide()}layer;rootHost;highlight;tag;hint;current=null;active=!1;onPick=null;onCancel=null;get isActive(){return this.active}start(e,r){this.active||(this.active=!0,this.onPick=e,this.onCancel=r,this.current=null,this.hint.style.display="",window.addEventListener("pointermove",this.onMove,!0),window.addEventListener("pointerdown",this.onDown,!0),window.addEventListener("pointerup",this.onUp,!0),window.addEventListener("click",this.onClick,!0),window.addEventListener("keydown",this.onKey,!0))}stop(){this.active&&(this.active=!1,this.current=null,this.onPick=null,this.onCancel=null,this.hide(),window.removeEventListener("pointermove",this.onMove,!0),window.removeEventListener("pointerdown",this.onDown,!0),window.removeEventListener("pointerup",this.onUp,!0),window.removeEventListener("click",this.onClick,!0),window.removeEventListener("keydown",this.onKey,!0))}cancel(){let e=this.onCancel;this.stop(),e?.()}hide(){this.highlight.style.display="none",this.hint.style.display="none"}isOverlayEvent(e){return e.composedPath().includes(this.rootHost)}isCoarse(){return typeof window.matchMedia=="function"&&window.matchMedia("(pointer: coarse)").matches}elementAt(e,r){let n=document.elementFromPoint(e,r);return!n||n===this.rootHost?null:n}highlightElement(e){this.current=e;let r=e.getBoundingClientRect();Object.assign(this.highlight.style,{display:"block",left:`${r.left}px`,top:`${r.top}px`,width:`${r.width}px`,height:`${r.height}px`}),this.tag.textContent=b0(e)}confirm(e){let r=this.onPick;this.suppressNextClick(),this.stop(),r?.(e)}suppressNextClick(){let e=o=>{o.preventDefault(),o.stopImmediatePropagation(),r()},r=()=>{window.removeEventListener("click",e,!0),clearTimeout(n)};window.addEventListener("click",e,{capture:!0});let n=setTimeout(r,500)}onMove=e=>{if(this.isOverlayEvent(e)||this.isCoarse())return;let r=this.elementAt(e.clientX,e.clientY);!r||r===this.current||this.highlightElement(r)};onDown=e=>{this.isOverlayEvent(e)||(e.preventDefault(),e.stopImmediatePropagation())};onUp=e=>{if(this.isOverlayEvent(e))return;e.preventDefault(),e.stopImmediatePropagation();let r=this.elementAt(e.clientX,e.clientY);if(this.isCoarse()){r&&r===this.current?this.confirm(r):r&&this.highlightElement(r);return}let n=r??this.current;n&&this.confirm(n)};onClick=e=>{this.isOverlayEvent(e)||(e.preventDefault(),e.stopImmediatePropagation())};onKey=e=>{e.key==="Escape"&&(e.preventDefault(),e.stopPropagation(),this.cancel())}};function b0(e){let r=e.tagName.toLowerCase(),n=e.id?`#${e.id}`:"",o=typeof e.className=="string"&&e.className.trim()?"."+e.className.trim().split(/\s+/).slice(0,2).join("."):"";return`${r}${n}${o}`}var w0=`
|
|
207
207
|
:host {
|
|
208
208
|
all: initial;
|
|
209
209
|
--lens-accent: #6366f1;
|
|
@@ -861,14 +861,14 @@ ${e.stack}`:`${e.name}: ${e.message}`);try{let n=new WeakSet,o=JSON.stringify(e,
|
|
|
861
861
|
}
|
|
862
862
|
.lens-textarea { font-size: 16px; }
|
|
863
863
|
}
|
|
864
|
-
`,
|
|
864
|
+
`,x0=Ff,_0=12e4,S0=class{constructor(e){this.deps=e,this.host=A("div",{attrs:{id:x0}}),this.shadow=this.host.attachShadow({mode:"open"});let r=document.createElement("style");r.textContent=w0,this.shadow.append(r),this.layer=A("div",{class:"lens-layer"}),this.shadow.append(this.layer),this.picker=new y0(this.layer,this.host),this.annotator=new p0(this.layer),this.layer.append(this.buildPill()),document.documentElement.append(this.host),window.addEventListener("keydown",this.onGlobalKey,!0)}deps;host;shadow;layer;pickBtn;picker;annotator;panel=null;target=null;destroyed=!1;recordingChip=null;recordingTimerEl=null;recordingInterval=null;recordingStartTs=0;recordedDurationMs=null;buildPill(){return this.pickBtn=A("button",{class:"lens-btn lens-btn--icon",ariaLabel:"Pick an element",title:"Pick an element",html:XI,on:{click:()=>this.togglePicker()}}),A("div",{class:"lens-pill",attrs:{role:"toolbar","aria-label":"Lens"}},[A("span",{class:"lens-pill__dot",html:HI}),A("button",{class:"lens-btn",text:"Report issue",on:{click:()=>this.open()}}),this.pickBtn,A("span",{class:"lens-pill__sep"}),A("button",{class:"lens-btn lens-btn--icon",ariaLabel:"Close Lens",title:"Close Lens",html:Xf,on:{click:()=>this.dismiss()}})])}open(){this.destroyed||(this.stopPicker(),this.panel||(this.panel=new m0({getStats:()=>this.deps.snapshotStats(),getTarget:()=>this.target,getAnnotationCount:()=>this.annotator.count,getRecording:()=>this.recordedDurationMs!==null?{durationMs:this.recordedDurationMs}:null,onRemoveTarget:()=>{this.target=null,this.panel?.refresh()},onMarkArea:()=>this.startAnnotating(),onRecordSteps:()=>this.startRecording(),onDiscardRecording:()=>this.discardRecording(),onClose:()=>this.close(),onSubmit:(e,r)=>this.submit(e,r)}),this.layer.append(this.panel.root)),this.panel.root.style.display="",this.panel.refresh(),this.panel.focus())}close(){this.panel&&(this.panel.destroy(),this.panel=null)}toggle(){this.panel&&this.panel.root.style.display!=="none"?this.close():this.open()}togglePicker(){if(this.picker.isActive){this.stopPicker();return}this.close(),this.pickBtn.classList.add("is-active"),this.picker.start(e=>{this.pickBtn.classList.remove("is-active"),this.target=this.deps.client.captureTarget(e),this.open()},()=>this.pickBtn.classList.remove("is-active"))}stopPicker(){this.picker.isActive&&this.picker.stop(),this.pickBtn.classList.remove("is-active")}startAnnotating(){this.panel&&(this.panel.root.style.display="none"),this.annotator.start(()=>{this.panel&&(this.panel.root.style.display="",this.panel.refresh())})}startRecording(){this.deps.client.isRecording()||(this.recordedDurationMs=null,this.deps.client.startRecording(),this.recordingStartTs=Date.now(),this.panel&&(this.panel.root.style.display="none"),this.showRecordingChip())}stopRecording(){let e=this.deps.client.stopRecording();this.recordedDurationMs=e?.durationMs??Date.now()-this.recordingStartTs,this.hideRecordingChip(),this.panel?(this.panel.root.style.display="",this.panel.refresh()):this.open()}discardRecording(){this.deps.client.discardRecording(),this.recordedDurationMs=null,this.panel?.refresh()}showRecordingChip(){this.recordingTimerEl=A("span",{class:"lens-rec-chip__time",text:"0:00"}),this.recordingChip=A("div",{class:"lens-rec-chip"},[A("span",{class:"lens-rec-chip__dot"}),A("span",{class:"lens-rec-chip__label",text:"Recording"}),this.recordingTimerEl,A("button",{class:"lens-rec-chip__stop",html:QI+"<span>Stop</span>",on:{click:()=>this.stopRecording()}})]),this.layer.append(this.recordingChip),this.recordingInterval=setInterval(()=>this.tickRecording(),250)}tickRecording(){let e=Date.now()-this.recordingStartTs;this.recordingTimerEl&&(this.recordingTimerEl.textContent=nb(e)),e>=_0&&this.stopRecording()}hideRecordingChip(){this.recordingInterval&&(clearInterval(this.recordingInterval),this.recordingInterval=null),this.recordingChip&&(this.recordingChip.remove(),this.recordingChip=null),this.recordingTimerEl=null}async submit(e,r){let n=this.annotator.list(),o=this.annotator.getComposite()??void 0,t=this.annotator.getCropBounds(),i=await this.deps.client.submitReport({comment:e||void 0,annotations:n,target:this.target??void 0,excludeFromScreenshot:this.host,screenshotCrop:t,annotationComposite:o,include:r,trigger:"user"});return this.target=null,this.annotator.clear(),this.recordedDurationMs=null,this.deps.client.discardRecording(),i}dismiss(){this.deps.onDismiss(),this.destroy()}onGlobalKey=e=>{(e.metaKey||e.ctrlKey)&&e.shiftKey&&(e.key==="l"||e.key==="L")&&(e.preventDefault(),this.toggle())};destroy(){this.destroyed||(this.destroyed=!0,window.removeEventListener("keydown",this.onGlobalKey,!0),this.stopPicker(),this.deps.client.isRecording()&&this.deps.client.stopRecording(),this.hideRecordingChip(),this.annotator.isActive&&this.annotator.exit(),this.annotator.clear(),this.close(),this.host.remove())}};function $0(e){return new S0(e)}function ib(){let e={open:!1};if(typeof window>"u")return e;let r=window.Lens?.q;if(!r)return e;for(let n of r){let o=Array.from(n),t=o[0],i=o[1];switch(t){case"init":(typeof i=="string"||i&&typeof i=="object")&&(e.init=i);break;case"identify":i&&typeof i=="object"&&(e.identify=i);break;case"app":i&&typeof i=="object"&&(e.app=i);break;case"open":e.open=!0;break}}return window.Lens&&(window.Lens.q=[]),e}function xr(e){if(typeof window>"u")return;let r=(...n)=>{if(!e)return;let o=n[0],t=n[1];switch(o){case"identify":t&&typeof t=="object"&&e.client.setApp({user:t});break;case"app":t&&typeof t=="object"&&e.client.setApp(t);break;case"open":e.open();break;case"init":break}};window.Lens=r}function k0(e,r){r.identify&&e.client.setApp({user:r.identify}),r.app&&e.client.setApp(r.app),r.open&&e.open()}var ob="https://cdn.lens.dev/browser.js";function sb(e){return`<script>
|
|
865
865
|
(function(w,d,s,u,i){
|
|
866
866
|
w.Lens=w.Lens||function(){(w.Lens.q=w.Lens.q||[]).push(arguments)};
|
|
867
867
|
w.Lens('init', i);
|
|
868
868
|
var g=d.createElement(s); g.async=1; g.src=u;
|
|
869
869
|
var f=d.getElementsByTagName(s)[0]; f.parentNode.insertBefore(g,f);
|
|
870
870
|
})(window,document,'script','${e.cdnUrl??ob}','${e.accessId}');
|
|
871
|
-
<\/script>`}var
|
|
871
|
+
<\/script>`}var I0=sb({accessId:"lai_YOUR_ACCESS_ID"});function Yf(){return typeof window<"u"&&typeof document<"u"}function E0(){return document.querySelector("script[data-lens-id]")?.getAttribute("data-lens-id")??void 0}function C0(e,r){let{accessId:n,paramName:o,force:t,...i}=e,s={},a;typeof r.init=="string"?a=r.init:r.init&&typeof r.init=="object"&&(s=r.init,typeof r.init.accessId=="string"&&(a=r.init.accessId));let c=n??E0()??a;if(!c)return null;let u={...s,...i,accessId:c};return{accessId:c,config:u}}function Fo(e={}){if(!Yf())return null;let r=ib(),n=e.paramName??Lo;if(!(e.force===!0||MI(n)))return xr(null),null;let t=C0(e,r);if(!t)return e.debug&&console.warn("[lens] no accessId \u2014 overlay not booted"),xr(null),null;let i=new Vy(t.config);i.start();let s=()=>({url:window.location.href,route:FI(),browser:UI(),os:jI(),viewport:LI(),replay:t.config.replay!==!1,console:null,network:null,errors:null}),a=null,c={client:i,open:()=>a?.open(),close:()=>a?.close(),destroy:()=>{a?.destroy(),a=null,i.stop(),qy(),xr(null)}};return a=$0({client:i,snapshotStats:s,onDismiss:()=>{i.stop(),qy(),xr(null)}}),xr(c),k0(c,r),c}function ab(){if(!Yf())return null;let e=Array.from(window.Lens?.q??[]).some(n=>n[0]==="init"),r=!!document.querySelector("script[data-lens-id]");return!e&&!r||!tb()?null:Fo()}Yf()&&ab();if(typeof window<"u"){let e=()=>Fo();document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e,{once:!0}):e()}return fb(O0);})();
|
|
872
872
|
/*! Bundled license information:
|
|
873
873
|
|
|
874
874
|
rrweb/dist/rrweb.js:
|