@midscene/computer-playground 1.18.1 → 1.18.2-beta-20261120024247.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.
@@ -1,5 +1,5 @@
1
- /*! For license information please see 208.899909ee.js.LICENSE.txt */
2
- (self.webpackChunkcomputer_playground=self.webpackChunkcomputer_playground||[]).push([["208"],{57660(e,t,r){"use strict";r.d(t,{uy:()=>g,UA:()=>M,bK:()=>w,z1:()=>S,cM:()=>m});var n=r(98494),i=2,o=.16,a=.05,s=.05,l=.15,c=5,u=4,f=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function d(e,t,r){var n;return(n=Math.round(e.h)>=60&&240>=Math.round(e.h)?r?Math.round(e.h)-i*t:Math.round(e.h)+i*t:r?Math.round(e.h)+i*t:Math.round(e.h)-i*t)<0?n+=360:n>=360&&(n-=360),n}function h(e,t,r){var n;return 0===e.h&&0===e.s?e.s:((n=r?e.s-o*t:t===u?e.s+o:e.s+a*t)>1&&(n=1),r&&t===c&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(100*n)/100)}function p(e,t,r){var n;return Math.round(100*(n=Math.max(0,Math.min(1,n=r?e.v+s*t:e.v-l*t))))/100}function m(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[],i=new n.Y(e),o=i.toHsv(),a=c;a>0;a-=1){var s=new n.Y({h:d(o,a,!0),s:h(o,a,!0),v:p(o,a,!0)});r.push(s)}r.push(i);for(var l=1;l<=u;l+=1){var m=new n.Y({h:d(o,l),s:h(o,l),v:p(o,l)});r.push(m)}return"dark"===t.theme?f.map(function(e){var i=e.index,o=e.amount;return new n.Y(t.backgroundColor||"#141414").mix(r[i],o).toHexString()}):r.map(function(e){return e.toHexString()})}var g={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},b=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];b.primary=b[5];var v=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];v.primary=v[5];var y=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];y.primary=y[5];var w=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];w.primary=w[5];var x=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];x.primary=x[5];var A=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];A.primary=A[5];var E=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];E.primary=E[5];var _=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];_.primary=_[5];var S=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];S.primary=S[5];var $=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];$.primary=$[5];var k=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];k.primary=k[5];var C=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];C.primary=C[5];var O=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];O.primary=O[5];var M={red:b,volcano:v,orange:y,gold:w,yellow:x,lime:A,green:E,cyan:_,blue:S,geekblue:$,purple:k,magenta:C,grey:O},I=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];I.primary=I[5];var R=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];R.primary=R[5];var j=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];j.primary=j[5];var T=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];T.primary=T[5];var N=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];N.primary=N[5];var P=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];P.primary=P[5];var B=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];B.primary=B[5];var z=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];z.primary=z[5];var L=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];L.primary=L[5];var D=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];D.primary=D[5];var F=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];F.primary=F[5];var H=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];H.primary=H[5];var U=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];U.primary=U[5]},63930(e,t,r){"use strict";r.d(t,{oX:()=>S,L_:()=>N});var n=r(24366),i=r(70486),o=r(19841),a=r(39317),s=r(22155),l=r(59296),c=r(11947),u=r(96591),f=r(18663),d=r(93619),h=r(51232);let p=(0,u.A)(function e(){(0,c.A)(this,e)});var m="CALC_UNIT",g=RegExp(m,"g");function b(e){return"number"==typeof e?"".concat(e).concat(m):e}var v=function(e){(0,d.A)(r,e);var t=(0,h.A)(r);function r(e,i){(0,c.A)(this,r),a=t.call(this),(0,o.A)((0,f.A)(a),"result",""),(0,o.A)((0,f.A)(a),"unitlessCssVar",void 0),(0,o.A)((0,f.A)(a),"lowPriority",void 0);var a,s=(0,n.A)(e);return a.unitlessCssVar=i,e instanceof r?a.result="(".concat(e.result,")"):"number"===s?a.result=b(e):"string"===s&&(a.result=e),a}return(0,u.A)(r,[{key:"add",value:function(e){return e instanceof r?this.result="".concat(this.result," + ").concat(e.getResult()):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," + ").concat(b(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof r?this.result="".concat(this.result," - ").concat(e.getResult()):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," - ").concat(b(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof r?this.result="".concat(this.result," * ").concat(e.getResult(!0)):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof r?this.result="".concat(this.result," / ").concat(e.getResult(!0)):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,r=(e||{}).unit,n=!0;return("boolean"==typeof r?n=r:Array.from(this.unitlessCssVar).some(function(e){return t.result.includes(e)})&&(n=!1),this.result=this.result.replace(g,n?"px":""),void 0!==this.lowPriority)?"calc(".concat(this.result,")"):this.result}}]),r}(p);let y=function(e){(0,d.A)(r,e);var t=(0,h.A)(r);function r(e){var n;return(0,c.A)(this,r),n=t.call(this),(0,o.A)((0,f.A)(n),"result",0),e instanceof r?n.result=e.result:"number"==typeof e&&(n.result=e),n}return(0,u.A)(r,[{key:"add",value:function(e){return e instanceof r?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof r?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof r?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof r?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),r}(p),w=function(e,t){var r="css"===e?v:y;return function(e){return new r(e,t)}},x=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};r(74757);let A=function(e,t,r,n){var o=(0,a.A)({},t[e]);null!=n&&n.deprecatedTokens&&n.deprecatedTokens.forEach(function(e){var t,r=(0,i.A)(e,2),n=r[0],a=r[1];(null!=o&&o[n]||null!=o&&o[a])&&(null!=(t=o[a])||(o[a]=null==o?void 0:o[n]))});var s=(0,a.A)((0,a.A)({},r),o);return Object.keys(s).forEach(function(e){s[e]===t[e]&&delete s[e]}),s};var E="u">typeof CSSINJS_STATISTIC,_=!0;function S(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!E)return Object.assign.apply(Object,[{}].concat(t));_=!1;var i={};return t.forEach(function(e){if("object"===(0,n.A)(e)){var t=Object.keys(e);t.forEach(function(t){Object.defineProperty(i,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})})}}),_=!0,i}var $={};function k(){}let C=function(e){var t,r=e,n=k;return E&&"u">typeof Proxy&&(t=new Set,r=new Proxy(e,{get:function(e,r){if(_){var n;null==(n=t)||n.add(r)}return e[r]}}),n=function(e,r){var n;$[e]={global:Array.from(t),component:(0,a.A)((0,a.A)({},null==(n=$[e])?void 0:n.component),r)}}),{token:r,keys:t,flush:n}},O=function(e,t,r){if("function"==typeof r){var n;return r(S(t,null!=(n=t[e])?n:{}))}return null!=r?r:{}},M=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return"max(".concat(t.map(function(e){return(0,l.zA)(e)}).join(","),")")},min:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return"min(".concat(t.map(function(e){return(0,l.zA)(e)}).join(","),")")}}};var I=6e5,R=new(function(){function e(){(0,c.A)(this,e),(0,o.A)(this,"map",new Map),(0,o.A)(this,"objectIDMap",new WeakMap),(0,o.A)(this,"nextID",0),(0,o.A)(this,"lastAccessBeat",new Map),(0,o.A)(this,"accessBeat",0)}return(0,u.A)(e,[{key:"set",value:function(e,t){this.clear();var r=this.getCompositeKey(e);this.map.set(r,t),this.lastAccessBeat.set(r,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),r=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,r}},{key:"getCompositeKey",value:function(e){var t=this;return e.map(function(e){return e&&"object"===(0,n.A)(e)?"obj_".concat(t.getObjectID(e)):"".concat((0,n.A)(e),"_").concat(e)}).join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach(function(r,n){t-r>I&&(e.map.delete(n),e.lastAccessBeat.delete(n))}),this.accessBeat=0}}}]),e}());let j=function(e,t){return s.useMemo(function(){var r=R.get(t);if(r)return r;var n=e();return R.set(t,n),n},t)},T=function(){return{}},N=function(e){var t=e.useCSP,r=void 0===t?T:t,c=e.useToken,u=e.usePrefix,f=e.getResetStyles,d=e.getCommonStyle,h=e.getCompUnitless;function p(e,t,r){var n=r.unitless,i=r.injectStyle,o=void 0===i||i,a=r.prefixToken,u=r.ignore,f=function(i){var o=i.rootCls,s=i.cssVar,f=void 0===s?{}:s,d=c().realToken;return(0,l.RC)({path:[e],prefix:f.prefix,key:f.key,unitless:n,ignore:u,token:d,scope:o},function(){var n=O(e,d,t),i=A(e,d,n,{deprecatedTokens:null==r?void 0:r.deprecatedTokens});return Object.keys(n).forEach(function(e){i[a(e)]=i[e],delete i[e]}),i}),null};return function(t){var r=c().cssVar;return[function(n){return o&&r?s.createElement(s.Fragment,null,s.createElement(f,{rootCls:t,cssVar:r,component:e}),n):n},null==r?void 0:r.key]}}function m(t,o,s){var h=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},p=Array.isArray(t)?t:[t,t],m=(0,i.A)(p,1)[0],g=p.join("-"),b=e.layer||{name:"antd"};return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,i=c(),p=i.theme,v=i.realToken,y=i.hashId,E=i.token,_=i.cssVar,$=u(),k=$.rootPrefixCls,I=$.iconPrefixCls,R=r(),T=_?"css":"js",N=j(function(){var e=new Set;return _&&Object.keys(h.unitless||{}).forEach(function(t){e.add((0,l.Ki)(t,_.prefix)),e.add((0,l.Ki)(t,x(m,_.prefix)))}),w(T,e)},[T,m,null==_?void 0:_.prefix]),P=M(T),B=P.max,z=P.min,L={theme:p,token:E,hashId:y,nonce:function(){return R.nonce},clientOnly:h.clientOnly,layer:b,order:h.order||-999};return"function"==typeof f&&(0,l.IV)((0,a.A)((0,a.A)({},L),{},{clientOnly:!1,path:["Shared",k]}),function(){return f(E,{prefix:{rootPrefixCls:k,iconPrefixCls:I},csp:R})}),[(0,l.IV)((0,a.A)((0,a.A)({},L),{},{path:[g,e,I]}),function(){if(!1===h.injectStyle)return[];var r=C(E),i=r.token,a=r.flush,c=O(m,v,s),u=".".concat(e),f=A(m,v,c,{deprecatedTokens:h.deprecatedTokens});_&&c&&"object"===(0,n.A)(c)&&Object.keys(c).forEach(function(e){c[e]="var(".concat((0,l.Ki)(e,x(m,_.prefix)),")")});var p=S(i,{componentCls:u,prefixCls:e,iconCls:".".concat(I),antCls:".".concat(k),calc:N,max:B,min:z},_?c:f),g=o(p,{hashId:y,prefixCls:e,rootPrefixCls:k,iconPrefixCls:I});a(m,f);var b="function"==typeof d?d(p,e,t,h.resetFont):null;return[!1===h.resetStyle?null:b,g]}),y]}}return{genStyleHooks:function(e,t,r,n){var s=Array.isArray(e)?e[0]:e;function l(e){return"".concat(String(s)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var c=(null==n?void 0:n.unitless)||{},u="function"==typeof h?h(e):{},f=(0,a.A)((0,a.A)({},u),{},(0,o.A)({},l("zIndexPopup"),!0));Object.keys(c).forEach(function(e){f[l(e)]=c[e]});var d=(0,a.A)((0,a.A)({},n),{},{unitless:f,prefixToken:l}),g=m(e,t,r,d),b=p(s,r,d);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=g(e,t),n=(0,i.A)(r,2)[1],o=b(t),a=(0,i.A)(o,2);return[a[0],n,a[1]]}},genSubStyleComponent:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=m(e,t,r,(0,a.A)({resetStyle:!1,order:-998},n));return function(e){var t=e.prefixCls,r=e.rootCls,n=void 0===r?t:r;return i(t,n),null}},genComponentStyleHook:m}}},59296(e,t,r){"use strict";r.d(t,{hV:()=>el,IV:()=>tl,Mo:()=>th,zA:()=>z,an:()=>M,Ki:()=>D,J:()=>x,RC:()=>td});var n,i=r(19841),o=r(70486),a=r(78944),s=r(39317);let l=function(e){for(var t,r=0,n=0,i=e.length;i>=4;++n,i-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*0x5bd1e995+((t>>>16)*59797<<16),t^=t>>>24,r=(65535&t)*0x5bd1e995+((t>>>16)*59797<<16)^(65535&r)*0x5bd1e995+((r>>>16)*59797<<16);switch(i){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*0x5bd1e995+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*0x5bd1e995+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)};var c=r(1056),u=r(22155),f=r.t(u,2);r(96271),r(91585);var d=r(11947),h=r(96591),p="%";function m(e){return e.join(p)}let g=function(){function e(t){(0,d.A)(this,e),(0,i.A)(this,"instanceId",void 0),(0,i.A)(this,"cache",new Map),(0,i.A)(this,"extracted",new Set),this.instanceId=t}return(0,h.A)(e,[{key:"get",value:function(e){return this.opGet(m(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(m(e),t)}},{key:"opUpdate",value:function(e,t){var r=t(this.cache.get(e));null===r?this.cache.delete(e):this.cache.set(e,r)}}]),e}();var b="data-token-hash",v="data-css-hash",y="__cssinjs_instance__";function w(){var e=Math.random().toString(12).slice(2);if("u">typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(v,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(t){t[y]=t[y]||e,t[y]===e&&document.head.insertBefore(t,r)});var n={};Array.from(document.querySelectorAll("style[".concat(v,"]"))).forEach(function(t){var r,i=t.getAttribute(v);n[i]?t[y]===e&&(null==(r=t.parentNode)||r.removeChild(t)):n[i]=!0})}return new g(e)}let x=u.createContext({hashPriority:"low",cache:w(),defaultCache:!0});var A=r(24366),E=r(8929);function _(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var S=function(){function e(){(0,d.A)(this,e),(0,i.A)(this,"cache",void 0),(0,i.A)(this,"keys",void 0),(0,i.A)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,h.A)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i={map:this.cache};return e.forEach(function(e){if(i){var t;i=null==(t=i)||null==(t=t.map)?void 0:t.get(e)}else i=void 0}),null!=(t=i)&&t.value&&n&&(i.value[1]=this.cacheCallTimes++),null==(r=i)?void 0:r.value}},{key:"get",value:function(e){var t;return null==(t=this.internalGet(e,!0))?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,r){var n=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(e,t){var r=(0,o.A)(e,2)[1];return n.internalGet(t)[1]<r?[t,n.internalGet(t)[1]]:e},[this.keys[0],this.cacheCallTimes]),a=(0,o.A)(i,1)[0];this.delete(a)}this.keys.push(t)}var s=this.cache;t.forEach(function(e,i){if(i===t.length-1)s.set(e,{value:[r,n.cacheCallTimes++]});else{var o=s.get(e);o?o.map||(o.map=new Map):s.set(e,{map:new Map}),s=s.get(e).map}})}},{key:"deleteByPath",value:function(e,t){var r,n=e.get(t[0]);if(1===t.length)return n.map?e.set(t[0],{map:n.map}):e.delete(t[0]),null==(r=n.value)?void 0:r[0];var i=this.deleteByPath(n.map,t.slice(1));return n.map&&0!==n.map.size||n.value||e.delete(t[0]),i}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter(function(t){return!_(t,e)}),this.deleteByPath(this.cache,e)}}]),e}();(0,i.A)(S,"MAX_CACHE_SIZE",20),(0,i.A)(S,"MAX_CACHE_OFFSET",5);var $=r(47773),k=0,C=function(){function e(t){(0,d.A)(this,e),(0,i.A)(this,"derivatives",void 0),(0,i.A)(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=k,0===t.length&&(0,$.$e)(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),k+=1}return(0,h.A)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,r){return r(e,t)},void 0)}}]),e}(),O=new S;function M(e){var t=Array.isArray(e)?e:[e];return O.has(t)||O.set(t,new C(t)),O.get(t)}var I=new WeakMap,R={};function j(e,t){for(var r=I,n=0;n<t.length;n+=1){var i=t[n];r.has(i)||r.set(i,new WeakMap),r=r.get(i)}return r.has(R)||r.set(R,e()),r.get(R)}var T=new WeakMap;function N(e){var t=T.get(e)||"";return t||(Object.keys(e).forEach(function(r){var n=e[r];t+=r,n instanceof C?t+=n.id:n&&"object"===(0,A.A)(n)?t+=N(n):t+=n}),t=l(t),T.set(e,t)),t}function P(e,t){return l("".concat(t,"_").concat(N(e)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var B=(0,E.A)();function z(e){return"number"==typeof e?"".concat(e,"px"):e}function L(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(o)return e;var a=(0,s.A)((0,s.A)({},n),{},(0,i.A)((0,i.A)({},b,t),v,r)),l=Object.keys(a).map(function(e){var t=a[e];return t?"".concat(e,'="').concat(t,'"'):null}).filter(function(e){return e}).join(" ");return"<style ".concat(l,">").concat(e,"</style>")}var D=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},F=function(e,t,r){return Object.keys(e).length?".".concat(t).concat(null!=r&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(e).map(function(e){var t=(0,o.A)(e,2),r=t[0],n=t[1];return"".concat(r,":").concat(n,";")}).join(""),"}"):""},H=function(e,t,r){var n={},i={};return Object.entries(e).forEach(function(e){var t=(0,o.A)(e,2),a=t[0],s=t[1];if(null!=r&&null!=(l=r.preserve)&&l[a])i[a]=s;else if(("string"==typeof s||"number"==typeof s)&&!(null!=r&&null!=(c=r.ignore)&&c[a])){var l,c,u,f=D(a,null==r?void 0:r.prefix);n[f]="number"!=typeof s||null!=r&&null!=(u=r.unitless)&&u[a]?String(s):"".concat(s,"px"),i[a]="var(".concat(f,")")}}),[i,F(n,t,{scope:null==r?void 0:r.scope})]},U=r(94030),q=(0,s.A)({},f).useInsertionEffect,W=function(e,t,r){u.useMemo(e,r),(0,U.A)(function(){return t(!0)},r)};let V=q?function(e,t,r){return q(function(){return e(),t()},r)}:W;var K=(0,s.A)({},f).useInsertionEffect,G=function(e){var t=[],r=!1;function n(e){r||t.push(e)}return u.useEffect(function(){return r=!1,function(){r=!0,t.length&&t.forEach(function(e){return e()})}},e),n},X=function(){return function(e){e()}};let Z=void 0!==K?G:X,Y=function(){return!1};function J(e,t,r,n,i){var s=u.useContext(x).cache,l=m([e].concat((0,a.A)(t))),c=Z([l]);Y();var f=function(e){s.opUpdate(l,function(t){var n=t||[void 0,void 0],i=(0,o.A)(n,2),a=i[0],s=[void 0===a?0:a,i[1]||r()];return e?e(s):s})};u.useMemo(function(){f()},[l]);var d=s.opGet(l)[1];return V(function(){null==i||i(d)},function(e){return f(function(t){var r=(0,o.A)(t,2),n=r[0],a=r[1];return e&&0===n&&(null==i||i(d)),[n+1,a]}),function(){s.opUpdate(l,function(t){var r=t||[],i=(0,o.A)(r,2),a=i[0],u=void 0===a?0:a,f=i[1];return 0==u-1?(c(function(){(e||!s.opGet(l))&&(null==n||n(f,!1))}),null):[u-1,f]})}},[l]),d}var Q={},ee="css",et=new Map;function er(e){et.set(e,(et.get(e)||0)+1)}function en(e,t){"u">typeof document&&document.querySelectorAll("style[".concat(b,'="').concat(e,'"]')).forEach(function(e){if(e[y]===t){var r;null==(r=e.parentNode)||r.removeChild(e)}})}var ei=0;function eo(e,t){et.set(e,(et.get(e)||0)-1);var r=new Set;et.forEach(function(e,t){e<=0&&r.add(t)}),et.size-r.size>ei&&r.forEach(function(e){en(e,t),et.delete(e)})}var ea=function(e,t,r,n){var i=r.getDerivativeToken(e),o=(0,s.A)((0,s.A)({},i),t);return n&&(o=n(o)),o},es="token";function el(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=(0,u.useContext)(x),i=n.cache.instanceId,f=n.container,d=r.salt,h=void 0===d?"":d,p=r.override,m=void 0===p?Q:p,g=r.formatToken,w=r.getComputedToken,A=r.cssVar,E=j(function(){return Object.assign.apply(Object,[{}].concat((0,a.A)(t)))},t),_=N(E),S=N(m),$=A?N(A):"";return J(es,[h,e.id,_,S,$],function(){var t,r=w?w(E,m,e):ea(E,m,e,g),n=(0,s.A)({},r),i="";if(A){var a=H(r,A.key,{prefix:A.prefix,ignore:A.ignore,unitless:A.unitless,preserve:A.preserve}),c=(0,o.A)(a,2);r=c[0],i=c[1]}var u=P(r,h);r._tokenKey=u,n._tokenKey=P(n,h);var f=null!=(t=null==A?void 0:A.key)?t:u;r._themeKey=f,er(f);var d="".concat(ee,"-").concat(l(u));return r._hashId=d,[r,d,n,i,(null==A?void 0:A.key)||""]},function(e){eo(e[0]._themeKey,i)},function(e){var t=(0,o.A)(e,4),r=t[0],n=t[3];if(A&&n){var a=(0,c.BD)(n,l("css-variables-".concat(r._themeKey)),{mark:v,prepend:"queue",attachTo:f,priority:-999});a[y]=i,a.setAttribute(b,r._themeKey)}})}var ec=function(e,t,r){var n=(0,o.A)(e,5),i=n[2],a=n[3],s=n[4],l=(r||{}).plain;if(!a)return null;var c=i._tokenKey,u=-999,f=L(a,s,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},l);return[u,c,f]},eu=r(76878);let ef={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var ed="comm",eh="rule",ep="decl",em="@import",eg="@namespace",eb="@keyframes",ev="@layer",ey=Math.abs,ew=String.fromCharCode;function ex(e){return e.trim()}function eA(e,t,r){return e.replace(t,r)}function eE(e,t){return 0|e.charCodeAt(t)}function e_(e,t,r){return e.slice(t,r)}function eS(e){return e.length}function e$(e){return e.length}function ek(e,t){return t.push(e),e}function eC(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function eO(e,t,r,n){switch(e.type){case ev:if(e.children.length)break;case em:case eg:case ep:return e.return=e.return||e.value;case ed:return"";case eb:return e.return=e.value+"{"+eC(e.children,n)+"}";case eh:if(!eS(e.value=e.props.join(",")))return""}return eS(r=eC(e.children,n))?e.return=e.value+"{"+r+"}":""}var eM=1,eI=1,eR=0,ej=0,eT=0,eN="";function eP(e,t,r,n,i,o,a,s){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:eM,column:eI,length:a,return:"",siblings:s}}function eB(){return eT}function ez(){return eT=ej>0?eE(eN,--ej):0,eI--,10===eT&&(eI=1,eM--),eT}function eL(){return eT=ej<eR?eE(eN,ej++):0,eI++,10===eT&&(eI=1,eM++),eT}function eD(){return eE(eN,ej)}function eF(){return ej}function eH(e,t){return e_(eN,e,t)}function eU(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function eq(e){return eM=eI=1,eR=eS(eN=e),ej=0,[]}function eW(e){return eN="",e}function eV(e){return ex(eH(ej-1,eX(91===e?e+2:40===e?e+1:e)))}function eK(e){for(;eT=eD();)if(eT<33)eL();else break;return eU(e)>2||eU(eT)>3?"":" "}function eG(e,t){for(;--t&&eL()&&!(eT<48)&&!(eT>102)&&(!(eT>57)||!(eT<65))&&(!(eT>70)||!(eT<97)););return eH(e,eF()+(t<6&&32==eD()&&32==eL()))}function eX(e){for(;eL();)switch(eT){case e:return ej;case 34:case 39:34!==e&&39!==e&&eX(eT);break;case 40:41===e&&eX(e);break;case 92:eL()}return ej}function eZ(e,t){for(;eL();)if(e+eT===57)break;else if(e+eT===84&&47===eD())break;return"/*"+eH(t,ej-1)+"*"+ew(47===e?e:eL())}function eY(e){for(;!eU(eD());)eL();return eH(e,ej)}function eJ(e){return eW(eQ("",null,null,null,[""],e=eq(e),0,[0],e))}function eQ(e,t,r,n,i,o,a,s,l){for(var c=0,u=0,f=a,d=0,h=0,p=0,m=1,g=1,b=1,v=0,y=0,w="",x=i,A=o,E=n,_=w;g;)switch(p=y,y=eL()){case 40:108!=p&&58==eE(_,f-1)?(v++,_+="("):_+=eV(y);break;case 41:v--,_+=")";break;case 34:case 39:case 91:_+=eV(y);break;case 9:case 10:case 13:case 32:if(v>0){_+=ew(y);break}_+=eK(p);break;case 92:_+=eG(eF()-1,7);continue;case 47:switch(eD()){case 42:case 47:ek(e1(eZ(eL(),eF()),t,r,l),l),(5==eU(p||1)||5==eU(eD()||1))&&eS(_)&&" "!==e_(_,-1,void 0)&&(_+=" ");break;default:_+="/"}break;case 123*m:s[c++]=eS(_)*b;case 125*m:case 59:case 0:if(v>0&&y){_+=ew(y);break}switch(y){case 0:case 125:g=0;case 59+u:-1==b&&(_=eA(_,/\f/g,"")),h>0&&(eS(_)-f||0===m)&&ek(h>32?e2(_+";",n,r,f-1,l):e2(eA(_," ","")+";",n,r,f-2,l),l);break;case 59:_+=";";default:if(ek(E=e0(_,t,r,c,u,i,s,w,x=[],A=[],f,o),o),123===y)if(0===u)eQ(_,t,E,E,x,o,f,s,A);else{switch(d){case 99:if(110===eE(_,3))break;case 108:if(97===eE(_,2))break;default:u=0;case 100:case 109:case 115:}u?eQ(e,E,E,n&&ek(e0(e,E,E,0,0,i,s,w,i,x=[],f,A),A),i,A,f,s,n?x:A):eQ(_,E,E,E,[""],A,0,s,A)}}c=u=h=0,m=b=1,w=_="",f=a;break;case 58:f=1+eS(_),h=p;default:if(m<1){if(123==y)--m;else if(125==y&&0==m++&&125==ez())continue}switch(_+=ew(y),y*m){case 38:b=u>0?1:(_+="\f",-1);break;case 44:if(v>0)break;s[c++]=(eS(_)-1)*b,b=1;break;case 64:45===eD()&&(_+=eV(eL())),d=eD(),u=f=eS(w=_+=eY(eF())),y++;break;case 45:45===p&&2==eS(_)&&(m=0)}}return o}function e0(e,t,r,n,i,o,a,s,l,c,u,f){for(var d=i-1,h=0===i?o:[""],p=e$(h),m=0,g=0,b=0;m<n;++m)for(var v=0,y=e_(e,d+1,d=ey(g=a[m])),w=e;v<p;++v)(w=ex(g>0?h[v]+" "+y:eA(y,/&\f/g,h[v])))&&(l[b++]=w);return eP(e,t,r,0===i?eh:s,l,c,u,f)}function e1(e,t,r,n){return eP(e,t,r,ed,ew(eB()),e_(e,2,-2),0,n)}function e2(e,t,r,n,i){return eP(e,t,r,ep,e_(e,0,n),e_(e,n+1,-1),n,i)}var e6="data-ant-cssinjs-cache-path",e3="_FILE_STYLE__",e5=!0;function e4(){if(!n&&(n={},(0,E.A)())){var e,t=document.createElement("div");t.className=e6,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);var r=getComputedStyle(t).content||"";(r=r.replace(/^"/,"").replace(/"$/,"")).split(";").forEach(function(e){var t=e.split(":"),r=(0,o.A)(t,2),i=r[0],a=r[1];n[i]=a});var i=document.querySelector("style[".concat(e6,"]"));i&&(e5=!1,null==(e=i.parentNode)||e.removeChild(i)),document.body.removeChild(t)}}function e8(e){return e4(),!!n[e]}function e9(e){var t=n[e],r=null;if(t&&(0,E.A)())if(e5)r=e3;else{var i=document.querySelector("style[".concat(v,'="').concat(n[e],'"]'));i?r=i.innerHTML:delete n[e]}return[r,t]}var e7="_skip_check_",te="_multi_value_";function tt(e){return eC(eJ(e),eO).replace(/\{%%%\:[^;];}/g,";")}function tr(e){return"object"===(0,A.A)(e)&&e&&(e7 in e||te in e)}function tn(e,t,r){if(!t)return e;var n=".".concat(t),i="low"===r?":where(".concat(n,")"):n;return e.split(",").map(function(e){var t,r=e.trim().split(/\s+/),n=r[0]||"",o=(null==(t=n.match(/^\w+/))?void 0:t[0])||"";return[n="".concat(o).concat(i).concat(n.slice(o.length))].concat((0,a.A)(r.slice(1))).join(" ")}).join(",")}var ti=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},i=n.root,l=n.injectHash,c=n.parentSelectors,u=r.hashId,f=r.layer,d=(r.path,r.hashPriority),h=r.transformers,p=void 0===h?[]:h,m=(r.linters,""),g={};function b(t){var n=t.getName(u);if(!g[n]){var i=e(t.style,r,{root:!1,parentSelectors:c}),a=(0,o.A)(i,1)[0];g[n]="@keyframes ".concat(t.getName(u)).concat(a)}}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.forEach(function(e){Array.isArray(e)?v(e,t):e&&t.push(e)}),t}return v(Array.isArray(t)?t:[t]).forEach(function(t){var n="string"!=typeof t||i?t:{};if("string"==typeof n)m+="".concat(n,"\n");else if(n._keyframe)b(n);else{var f=p.reduce(function(e,t){var r;return(null==t||null==(r=t.visit)?void 0:r.call(t,e))||e},n);Object.keys(f).forEach(function(t){var n=f[t];if("object"!==(0,A.A)(n)||!n||"animationName"===t&&n._keyframe||tr(n)){function h(e,t){var r=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),n=t;ef[e]||"number"!=typeof n||0===n||(n="".concat(n,"px")),"animationName"===e&&null!=t&&t._keyframe&&(b(t),n=t.getName(u)),m+="".concat(r,":").concat(n,";")}var p,v=null!=(p=null==n?void 0:n.value)?p:n;"object"===(0,A.A)(n)&&null!=n&&n[te]&&Array.isArray(v)?v.forEach(function(e){h(t,e)}):h(t,v)}else{var y=!1,w=t.trim(),x=!1;(i||l)&&u?w.startsWith("@")?y=!0:w="&"===w?tn("",u,d):tn(t,u,d):i&&!u&&("&"===w||""===w)&&(w="",x=!0);var E=e(n,r,{root:x,injectHash:y,parentSelectors:[].concat((0,a.A)(c),[w])}),_=(0,o.A)(E,2),S=_[0],$=_[1];g=(0,s.A)((0,s.A)({},g),$),m+="".concat(w).concat(S)}})}}),i?f&&(m&&(m="@layer ".concat(f.name," {").concat(m,"}")),f.dependencies&&(g["@layer ".concat(f.name)]=f.dependencies.map(function(e){return"@layer ".concat(e,", ").concat(f.name,";")}).join("\n"))):m="{".concat(m,"}"),[m,g]};function to(e,t){return l("".concat(e.join("%")).concat(t))}function ta(){return null}var ts="style";function tl(e,t){var r=e.token,n=e.path,l=e.hashId,f=e.layer,d=e.nonce,h=e.clientOnly,p=e.order,m=void 0===p?0:p,g=u.useContext(x),w=g.autoClear,A=(g.mock,g.defaultCache),E=g.hashPriority,_=g.container,S=g.ssrInline,$=g.transformers,k=g.linters,C=g.cache,O=g.layer,M=r._tokenKey,I=[M];O&&I.push("layer"),I.push.apply(I,(0,a.A)(n));var R=B,j=J(ts,I,function(){var e=I.join("|");if(e8(e)){var r=e9(e),i=(0,o.A)(r,2),a=i[0],s=i[1];if(a)return[a,M,s,{},h,m]}var c=ti(t(),{hashId:l,hashPriority:E,layer:O?f:void 0,path:n.join("-"),transformers:$,linters:k}),u=(0,o.A)(c,2),d=u[0],p=u[1],g=tt(d),b=to(I,g);return[g,M,b,p,h,m]},function(e,t){var r=(0,o.A)(e,3)[2];(t||w)&&B&&(0,c.m6)(r,{mark:v,attachTo:_})},function(e){var t=(0,o.A)(e,4),r=t[0],n=(t[1],t[2]),i=t[3];if(R&&r!==e3){var a={mark:v,prepend:!O&&"queue",attachTo:_,priority:m},l="function"==typeof d?d():d;l&&(a.csp={nonce:l});var u=[],f=[];Object.keys(i).forEach(function(e){e.startsWith("@layer")?u.push(e):f.push(e)}),u.forEach(function(e){(0,c.BD)(tt(i[e]),"_layer-".concat(e),(0,s.A)((0,s.A)({},a),{},{prepend:!0}))});var h=(0,c.BD)(r,n,a);h[y]=C.instanceId,h.setAttribute(b,M),f.forEach(function(e){(0,c.BD)(tt(i[e]),"_effect-".concat(e),a)})}}),T=(0,o.A)(j,3),N=T[0],P=T[1],z=T[2];return function(e){var t;return t=S&&!R&&A?u.createElement("style",(0,eu.A)({},(0,i.A)((0,i.A)({},b,P),v,z),{dangerouslySetInnerHTML:{__html:N}})):u.createElement(ta,null),u.createElement(u.Fragment,null,t,e)}}var tc=function(e,t,r){var n=(0,o.A)(e,6),i=n[0],a=n[1],s=n[2],l=n[3],c=n[4],u=n[5],f=(r||{}).plain;if(c)return null;var d=i,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return d=L(i,a,s,h,f),l&&Object.keys(l).forEach(function(e){if(!t[e]){t[e]=!0;var r=L(tt(l[e]),a,"_effect-".concat(e),h,f);e.startsWith("@layer")?d=r+d:d+=r}}),[u,s,d]},tu="cssVar",tf=function(e,t,r){var n=(0,o.A)(e,4),i=n[1],a=n[2],s=n[3],l=(r||{}).plain;if(!i)return null;var c=-999,u=L(i,s,a,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)},l);return[c,a,u]};let td=function(e,t){var r=e.key,n=e.prefix,i=e.unitless,s=e.ignore,l=e.token,f=e.scope,d=void 0===f?"":f,h=(0,u.useContext)(x),p=h.cache.instanceId,m=h.container,g=l._tokenKey,w=[].concat((0,a.A)(e.path),[r,d,g]);return J(tu,w,function(){var e=H(t(),r,{prefix:n,unitless:i,ignore:s,scope:d}),a=(0,o.A)(e,2),l=a[0],c=a[1],u=to(w,c);return[l,c,u,r]},function(e){var t=(0,o.A)(e,3)[2];B&&(0,c.m6)(t,{mark:v,attachTo:m})},function(e){var t=(0,o.A)(e,3),n=t[1],i=t[2];if(n){var a=(0,c.BD)(n,i,{mark:v,prepend:"queue",attachTo:m,priority:-999});a[y]=p,a.setAttribute(b,r)}})};(0,i.A)((0,i.A)((0,i.A)({},ts,tc),es,ec),tu,tf);let th=function(){function e(t,r){(0,d.A)(this,e),(0,i.A)(this,"name",void 0),(0,i.A)(this,"style",void 0),(0,i.A)(this,"_keyframe",!0),this.name=t,this.style=r}return(0,h.A)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function tp(e){return e.notSplit=!0,e}tp(["borderTop","borderBottom"]),tp(["borderTop"]),tp(["borderBottom"]),tp(["borderLeft","borderRight"]),tp(["borderLeft"]),tp(["borderRight"])},98494(e,t,r){"use strict";r.d(t,{Y:()=>l});var n=r(19841);let i=Math.round;function o(e,t){let r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)n[e]=t(n[e]||0,r[e]||"",e);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}let a=(e,t,r)=>0===r?e:e/100;function s(e,t){let r=t||255;return e>r?r:e<0?0:e}class l{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if((0,n.A)(this,"isValid",!0),(0,n.A)(this,"r",0),(0,n.A)(this,"g",0),(0,n.A)(this,"b",0),(0,n.A)(this,"a",1),(0,n.A)(this,"_h",void 0),(0,n.A)(this,"_s",void 0),(0,n.A)(this,"_l",void 0),(0,n.A)(this,"_v",void 0),(0,n.A)(this,"_max",void 0),(0,n.A)(this,"_min",void 0),(0,n.A)(this,"_brightness",void 0),e)if("string"==typeof e){const t=e.trim();function r(e){return t.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(t)?this.fromHexString(t):r("rgb")?this.fromRgbString(t):r("hsl")?this.fromHslString(t):(r("hsv")||r("hsb"))&&this.fromHsvString(t)}else if(e instanceof l)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=s(e.r),this.g=s(e.g),this.b=s(e.b),this.a="number"==typeof e.a?s(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else if(t("hsv"))this.fromHsv(e);else throw Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e))}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){let t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){let t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return .2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){let e=this.getMax()-this.getMin();0===e?this._h=0:this._h=i(60*(this.r===this.getMax()?(this.g-this.b)/e+6*(this.g<this.b):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(void 0===this._s){let e=this.getMax()-this.getMin();0===e?this._s=0:this._s=e/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){let t=this.getHue(),r=this.getSaturation(),n=this.getLightness()-e/100;return n<0&&(n=0),this._c({h:t,s:r,l:n,a:this.a})}lighten(e=10){let t=this.getHue(),r=this.getSaturation(),n=this.getLightness()+e/100;return n>1&&(n=1),this._c({h:t,s:r,l:n,a:this.a})}mix(e,t=50){let r=this._c(e),n=t/100,o=e=>(r[e]-this[e])*n+this[e],a={r:i(o("r")),g:i(o("g")),b:i(o("b")),a:i(100*o("a"))/100};return this._c(a)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){let t=this._c(e),r=this.a+t.a*(1-this.a),n=e=>i((this[e]*this.a+t[e]*t.a*(1-this.a))/r);return this._c({r:n("r"),g:n("g"),b:n("b"),a:r})}isDark(){return 128>this.getBrightness()}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#",t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;let r=(this.g||0).toString(16);e+=2===r.length?r:"0"+r;let n=(this.b||0).toString(16);if(e+=2===n.length?n:"0"+n,"number"==typeof this.a&&this.a>=0&&this.a<1){let t=i(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){let e=this.getHue(),t=i(100*this.getSaturation()),r=i(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${r}%,${this.a})`:`hsl(${e},${t}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,r){let n=this.clone();return n[e]=s(t,r),n}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){let t=e.replace("#","");function r(e,r){return parseInt(t[e]+t[r||e],16)}t.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=t[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=t[6]?r(6,7)/255:1)}fromHsl({h:e,s:t,l:r,a:n}){if(this._h=e%360,this._s=t,this._l=r,this.a="number"==typeof n?n:1,t<=0){let e=i(255*r);this.r=e,this.g=e,this.b=e}let o=0,a=0,s=0,l=e/60,c=(1-Math.abs(2*r-1))*t,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(o=c,a=u):l>=1&&l<2?(o=u,a=c):l>=2&&l<3?(a=c,s=u):l>=3&&l<4?(a=u,s=c):l>=4&&l<5?(o=u,s=c):l>=5&&l<6&&(o=c,s=u);let f=r-c/2;this.r=i((o+f)*255),this.g=i((a+f)*255),this.b=i((s+f)*255)}fromHsv({h:e,s:t,v:r,a:n}){this._h=e%360,this._s=t,this._v=r,this.a="number"==typeof n?n:1;let o=i(255*r);if(this.r=o,this.g=o,this.b=o,t<=0)return;let a=e/60,s=Math.floor(a),l=a-s,c=i(r*(1-t)*255),u=i(r*(1-t*l)*255),f=i(r*(1-t*(1-l))*255);switch(s){case 0:this.g=f,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=f;break;case 3:this.r=c,this.g=u;break;case 4:this.r=f,this.g=c;break;default:this.g=c,this.b=u}}fromHsvString(e){let t=o(e,a);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){let t=o(e,a);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){let t=o(e,(e,t)=>t.includes("%")?i(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}},52372(e,t,r){"use strict";r.d(t,{A:()=>_});var n=r(76878),i=r(70486),o=r(19841),a=r(56284),s=r(22155),l=r(30395),c=r.n(l),u=r(57660),f=r(84994),d=r(39317),h=r(51037),p=["icon","className","onClick","style","primaryColor","secondaryColor"],m={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function g(e){var t=e.primaryColor,r=e.secondaryColor;m.primaryColor=t,m.secondaryColor=r||(0,h.Em)(t),m.calculated=!!r}function b(){return(0,d.A)({},m)}var v=function(e){var t=e.icon,r=e.className,n=e.onClick,i=e.style,o=e.primaryColor,l=e.secondaryColor,c=(0,a.A)(e,p),u=s.useRef(),f=m;if(o&&(f={primaryColor:o,secondaryColor:l||(0,h.Em)(o)}),(0,h.lf)(u),(0,h.$e)((0,h.P3)(t),"icon should be icon definiton, but got ".concat(t)),!(0,h.P3)(t))return null;var g=t;return g&&"function"==typeof g.icon&&(g=(0,d.A)((0,d.A)({},g),{},{icon:g.icon(f.primaryColor,f.secondaryColor)})),(0,h.cM)(g.icon,"svg-".concat(g.name),(0,d.A)((0,d.A)({className:r,onClick:n,style:i,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};v.displayName="IconReact",v.getTwoToneColors=b,v.setTwoToneColors=g;let y=v;function w(e){var t=(0,h.al)(e),r=(0,i.A)(t,2),n=r[0],o=r[1];return y.setTwoToneColors({primaryColor:n,secondaryColor:o})}function x(){var e=y.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var A=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];w(u.z1.primary);var E=s.forwardRef(function(e,t){var r=e.className,l=e.icon,u=e.spin,d=e.rotate,p=e.tabIndex,m=e.onClick,g=e.twoToneColor,b=(0,a.A)(e,A),v=s.useContext(f.A),w=v.prefixCls,x=void 0===w?"anticon":w,E=v.rootClassName,_=c()(E,x,(0,o.A)((0,o.A)({},"".concat(x,"-").concat(l.name),!!l.name),"".concat(x,"-spin"),!!u||"loading"===l.name),r),S=p;void 0===S&&m&&(S=-1);var $=d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0,k=(0,h.al)(g),C=(0,i.A)(k,2),O=C[0],M=C[1];return s.createElement("span",(0,n.A)({role:"img","aria-label":l.name},b,{ref:t,tabIndex:S,onClick:m,className:_}),s.createElement(y,{icon:l,primaryColor:O,secondaryColor:M,style:$}))});E.displayName="AntdIcon",E.getTwoToneColor=x,E.setTwoToneColor=w;let _=E},84994(e,t,r){"use strict";r.d(t,{A:()=>n});let n=(0,r(22155).createContext)({})},11728(e,t,r){"use strict";r.d(t,{A:()=>m});var n=r(76878),i=r(39317),o=r(19841),a=r(56284),s=r(22155),l=r(30395),c=r.n(l),u=r(75252),f=r(84994),d=r(51037),h=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],p=s.forwardRef(function(e,t){var r=e.className,l=e.component,p=e.viewBox,m=e.spin,g=e.rotate,b=e.tabIndex,v=e.onClick,y=e.children,w=(0,a.A)(e,h),x=s.useRef(),A=(0,u.xK)(x,t);(0,d.$e)(!!(l||y),"Should have `component` prop or `children`."),(0,d.lf)(x);var E=s.useContext(f.A),_=E.prefixCls,S=void 0===_?"anticon":_,$=E.rootClassName,k=c()($,S,(0,o.A)({},"".concat(S,"-spin"),!!m&&!!l),r),C=c()((0,o.A)({},"".concat(S,"-spin"),!!m)),O=g?{msTransform:"rotate(".concat(g,"deg)"),transform:"rotate(".concat(g,"deg)")}:void 0,M=(0,i.A)((0,i.A)({},d.yf),{},{className:C,style:O,viewBox:p});p||delete M.viewBox;var I=function(){return l?s.createElement(l,M,y):y?((0,d.$e)(!!p||1===s.Children.count(y)&&s.isValidElement(y)&&"use"===s.Children.only(y).type,"Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),s.createElement("svg",(0,n.A)({},M,{viewBox:p}),y)):null},R=b;return void 0===R&&v&&(R=-1),s.createElement("span",(0,n.A)({role:"img"},w,{ref:A,tabIndex:R,onClick:v,className:k}),I())});p.displayName="AntdIcon";let m=p},51303(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},3915(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},24671(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},43253(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},35261(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},85387(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},3449(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},89625(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},42254(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},32416(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},6868(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M326 664H104c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h174v176c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V696c0-17.7-14.3-32-32-32zm16-576h-48c-8.8 0-16 7.2-16 16v176H104c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h222c17.7 0 32-14.3 32-32V104c0-8.8-7.2-16-16-16zm578 576H698c-17.7 0-32 14.3-32 32v224c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V744h174c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16zm0-384H746V104c0-8.8-7.2-16-16-16h-48c-8.8 0-16 7.2-16 16v224c0 17.7 14.3 32 32 32h222c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16z"}}]},name:"compress",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},3762(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},41353(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},42964(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},61636(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M342 88H120c-17.7 0-32 14.3-32 32v224c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V168h174c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16zm578 576h-48c-8.8 0-16 7.2-16 16v176H682c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h222c17.7 0 32-14.3 32-32V680c0-8.8-7.2-16-16-16zM342 856H168V680c0-8.8-7.2-16-16-16h-48c-8.8 0-16 7.2-16 16v224c0 17.7 14.3 32 32 32h222c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16zM904 88H682c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h174v176c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V120c0-17.7-14.3-32-32-32z"}}]},name:"expand",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},2398(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},39502(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M920 416H616c-4.4 0-8 3.6-8 8v112c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-56h60v320h-46c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h164c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8h-46V480h60v56c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V424c0-4.4-3.6-8-8-8zM656 296V168c0-4.4-3.6-8-8-8H104c-4.4 0-8 3.6-8 8v128c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-64h168v560h-92c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-92V232h168v64c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8z"}}]},name:"font-size",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},66308(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},91664(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},49688(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},93512(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},60004(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},83698(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"}}]},name:"logout",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},78118(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},48048(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M304 176h80v672h-80zm408 0h-64c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8z"}}]},name:"pause",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},25062(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},89275(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},32983(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},1836(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},76399(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"}}]},name:"send",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},55451(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},62127(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211L378.2 732.5z"}}]},name:"thunderbolt",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},16262(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},64283(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},51037(e,t,r){"use strict";r.d(t,{$e:()=>d,Em:()=>g,P3:()=>h,al:()=>b,cM:()=>m,lf:()=>w,yf:()=>v});var n=r(39317),i=r(24366),o=r(57660),a=r(1056),s=r(95612),l=r(47773),c=r(22155),u=r(84994);function f(e){return e.replace(/-(.)/g,function(e,t){return t.toUpperCase()})}function d(e,t){(0,l.Ay)(e,"[@ant-design/icons] ".concat(t))}function h(e){return"object"===(0,i.A)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,i.A)(e.icon)||"function"==typeof e.icon)}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];return"class"===r?(t.className=n,delete t.class):(delete t[r],t[f(r)]=n),t},{})}function m(e,t,r){return r?c.createElement(e.tag,(0,n.A)((0,n.A)({key:t},p(e.attrs)),r),(e.children||[]).map(function(r,n){return m(r,"".concat(t,"-").concat(e.tag,"-").concat(n))})):c.createElement(e.tag,(0,n.A)({key:t},p(e.attrs)),(e.children||[]).map(function(r,n){return m(r,"".concat(t,"-").concat(e.tag,"-").concat(n))}))}function g(e){return(0,o.cM)(e)[0]}function b(e){return e?Array.isArray(e)?e:[e]:[]}var v={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},y="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",w=function(e){var t=(0,c.useContext)(u.A),r=t.csp,n=t.prefixCls,i=t.layer,o=y;n&&(o=o.replace(/anticon/g,n)),i&&(o="@layer ".concat(i," {\n").concat(o,"\n}")),(0,c.useEffect)(function(){var t=e.current,n=(0,s.j)(t);(0,a.BD)(o,"@ant-design-icons",{prepend:!i,csp:r,attachTo:n})},[])}},13480(e,t,r){"use strict";r.d(t,{Q1:()=>m}),r(22155);var n=r(11947),i=r(96591),o=r(93619),a=r(51232),s=r(39317),l=r(56284),c=r(24366),u=r(98494),f=["b"],d=["v"],h=function(e){return Math.round(Number(e||0))},p=function(e){if(e instanceof u.Y)return e;if(e&&"object"===(0,c.A)(e)&&"h"in e&&"b"in e){var t=e,r=t.b,n=(0,l.A)(t,f);return(0,s.A)((0,s.A)({},n),{},{v:r})}return"string"==typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e},m=function(e){(0,o.A)(r,e);var t=(0,a.A)(r);function r(e){return(0,n.A)(this,r),t.call(this,p(e))}return(0,i.A)(r,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=h(100*e.s),r=h(100*e.b),n=h(e.h),i=e.a,o="hsb(".concat(n,", ").concat(t,"%, ").concat(r,"%)"),a="hsba(".concat(n,", ").concat(t,"%, ").concat(r,"%, ").concat(i.toFixed(2*(0!==i)),")");return 1===i?o:a}},{key:"toHsb",value:function(){var e=this.toHsv(),t=e.v,r=(0,l.A)(e,d);return(0,s.A)((0,s.A)({},r),{},{b:t,a:this.a})}}]),r}(u.Y);(function(e){e instanceof m||new m(e)})("#1677ff"),r(30395),r(74757)},76395(e,t,r){"use strict";r.d(t,{A:()=>E});var n=r(70486),i=r(22155),o=r(70316),a=r(8929);r(47773);var s=r(75252);let l=i.createContext(null);var c=r(78944),u=r(94030),f=[];function d(e,t){var r=i.useState(function(){return(0,a.A)()?document.createElement("div"):null}),o=(0,n.A)(r,1)[0],s=i.useRef(!1),d=i.useContext(l),h=i.useState(f),p=(0,n.A)(h,2),m=p[0],g=p[1],b=d||(s.current?void 0:function(e){g(function(t){return[e].concat((0,c.A)(t))})});function v(){o.parentElement||document.body.appendChild(o),s.current=!0}function y(){var e;null==(e=o.parentElement)||e.removeChild(o),s.current=!1}return(0,u.A)(function(){return e?d?d(v):v():y(),y},[e]),(0,u.A)(function(){m.length&&(m.forEach(function(e){return e()}),g(f))},[m]),[o,b]}var h=r(1056);function p(e){var t,r,n="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),i=document.createElement("div");i.id=n;var o=i.style;if(o.position="absolute",o.left="0",o.top="0",o.width="100px",o.height="100px",o.overflow="scroll",e){var a=getComputedStyle(e);o.scrollbarColor=a.scrollbarColor,o.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",f=c?"height: ".concat(s.height,";"):"";(0,h.BD)("\n#".concat(n,"::-webkit-scrollbar {\n").concat(u,"\n").concat(f,"\n}"),n)}catch(e){console.error(e),t=l,r=c}}document.body.appendChild(i);var d=e&&t&&!isNaN(t)?t:i.offsetWidth-i.clientWidth,p=e&&r&&!isNaN(r)?r:i.offsetHeight-i.clientHeight;return document.body.removeChild(i),(0,h.m6)(n),{width:d,height:p}}function m(e){return!("u"<typeof document)&&e&&e instanceof Element?p(e):{width:0,height:0}}function g(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var b="rc-util-locker-".concat(Date.now()),v=0;function y(e){var t=!!e,r=i.useState(function(){return v+=1,"".concat(b,"_").concat(v)}),o=(0,n.A)(r,1)[0];(0,u.A)(function(){if(t){var e=m(document.body).width,r=g();(0,h.BD)("\nhtml body {\n overflow-y: hidden;\n ".concat(r?"width: calc(100% - ".concat(e,"px);"):"","\n}"),o)}else(0,h.m6)(o);return function(){(0,h.m6)(o)}},[t,o])}var w=!1;function x(e){return"boolean"==typeof e&&(w=e),w}var A=function(e){return!1!==e&&((0,a.A)()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)};let E=i.forwardRef(function(e,t){var r=e.open,c=e.autoLock,u=e.getContainer,f=e.debug,h=e.autoDestroy,p=void 0===h||h,m=e.children,g=i.useState(r),b=(0,n.A)(g,2),v=b[0],w=b[1],E=v||r;i.useEffect(function(){(p||r)&&w(r)},[r,p]);var _=i.useState(function(){return A(u)}),S=(0,n.A)(_,2),$=S[0],k=S[1];i.useEffect(function(){var e=A(u);k(null!=e?e:null)});var C=d(E&&!$,f),O=(0,n.A)(C,2),M=O[0],I=O[1],R=null!=$?$:M;y(c&&r&&(0,a.A)()&&(R===M||R===document.body));var j=null;m&&(0,s.f3)(m)&&t&&(j=m.ref);var T=(0,s.xK)(j,t);if(!E||!(0,a.A)()||void 0===$)return null;var N=!1===R||x(),P=m;return t&&(P=i.cloneElement(m,{ref:T})),i.createElement(l.Provider,{value:I},N?P:(0,o.createPortal)(P,R))})},78387(e,t,r){"use strict";r.d(t,{A:()=>K});var n=r(39317),i=r(70486),o=r(56284),a=r(76395),s=r(30395),l=r.n(s),c=r(44965),u=r(73003),f=r(95612),d=r(44649),h=r(65556),p=r(94030),m=r(22075),g=r(22155),b=r(76878),v=r(8890),y=r(75252);function w(e){var t=e.prefixCls,r=e.align,n=e.arrow,i=e.arrowPos,o=n||{},a=o.className,s=o.content,c=i.x,u=void 0===c?0:c,f=i.y,d=void 0===f?0:f,h=g.useRef();if(!r||!r.points)return null;var p={position:"absolute"};if(!1!==r.autoArrow){var m=r.points[0],b=r.points[1],v=m[0],y=m[1],w=b[0],x=b[1];v!==w&&["t","b"].includes(v)?"t"===v?p.top=0:p.bottom=0:p.top=d,y!==x&&["l","r"].includes(y)?"l"===y?p.left=0:p.right=0:p.left=u}return g.createElement("div",{ref:h,className:l()("".concat(t,"-arrow"),a),style:p},s)}function x(e){var t=e.prefixCls,r=e.open,n=e.zIndex,i=e.mask,o=e.motion;return i?g.createElement(v.Ay,(0,b.A)({},o,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(e){var r=e.className;return g.createElement("div",{style:{zIndex:n},className:l()("".concat(t,"-mask"),r)})}):null}let A=g.memo(function(e){return e.children},function(e,t){return t.cache}),E=g.forwardRef(function(e,t){var r=e.popup,o=e.className,a=e.prefixCls,s=e.style,u=e.target,f=e.onVisibleChanged,d=e.open,h=e.keepDom,m=e.fresh,E=e.onClick,_=e.mask,S=e.arrow,$=e.arrowPos,k=e.align,C=e.motion,O=e.maskMotion,M=e.forceRender,I=e.getPopupContainer,R=e.autoDestroy,j=e.portal,T=e.zIndex,N=e.onMouseEnter,P=e.onMouseLeave,B=e.onPointerEnter,z=e.onPointerDownCapture,L=e.ready,D=e.offsetX,F=e.offsetY,H=e.offsetR,U=e.offsetB,q=e.onAlign,W=e.onPrepare,V=e.stretch,K=e.targetWidth,G=e.targetHeight,X="function"==typeof r?r():r,Z=d||h,Y=(null==I?void 0:I.length)>0,J=g.useState(!I||!Y),Q=(0,i.A)(J,2),ee=Q[0],et=Q[1];if((0,p.A)(function(){!ee&&Y&&u&&et(!0)},[ee,Y,u]),!ee)return null;var er="auto",en={left:"-1000vw",top:"-1000vh",right:er,bottom:er};if(L||!d){var ei,eo=k.points,ea=k.dynamicInset||(null==(ei=k._experimental)?void 0:ei.dynamicInset),es=ea&&"r"===eo[0][1],el=ea&&"b"===eo[0][0];es?(en.right=H,en.left=er):(en.left=D,en.right=er),el?(en.bottom=U,en.top=er):(en.top=F,en.bottom=er)}var ec={};return V&&(V.includes("height")&&G?ec.height=G:V.includes("minHeight")&&G&&(ec.minHeight=G),V.includes("width")&&K?ec.width=K:V.includes("minWidth")&&K&&(ec.minWidth=K)),d||(ec.pointerEvents="none"),g.createElement(j,{open:M||Z,getContainer:I&&function(){return I(u)},autoDestroy:R},g.createElement(x,{prefixCls:a,open:d,zIndex:T,mask:_,motion:O}),g.createElement(c.A,{onResize:q,disabled:!d},function(e){return g.createElement(v.Ay,(0,b.A)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:M,leavedClassName:"".concat(a,"-hidden")},C,{onAppearPrepare:W,onEnterPrepare:W,visible:d,onVisibleChanged:function(e){var t;null==C||null==(t=C.onVisibleChanged)||t.call(C,e),f(e)}}),function(r,i){var c=r.className,u=r.style,f=l()(a,c,o);return g.createElement("div",{ref:(0,y.K4)(e,t,i),className:f,style:(0,n.A)((0,n.A)((0,n.A)((0,n.A)({"--arrow-x":"".concat($.x||0,"px"),"--arrow-y":"".concat($.y||0,"px")},en),ec),u),{},{boxSizing:"border-box",zIndex:T},s),onMouseEnter:N,onMouseLeave:P,onPointerEnter:B,onClick:E,onPointerDownCapture:z},S&&g.createElement(w,{prefixCls:a,arrow:S,arrowPos:$,align:k}),g.createElement(A,{cache:!d&&!m},X))})}))}),_=g.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,i=(0,y.f3)(r),o=g.useCallback(function(e){(0,y.Xf)(t,n?n(e):e)},[n]),a=(0,y.xK)(o,(0,y.A9)(r));return i?g.cloneElement(r,{ref:a}):r}),S=g.createContext(null);function $(e){return e?Array.isArray(e)?e:[e]:[]}function k(e,t,r,n){return g.useMemo(function(){var i=$(null!=r?r:t),o=$(null!=n?n:t),a=new Set(i),s=new Set(o);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,r,n])}var C=r(65460);function O(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function M(e,t,r,n){for(var i=r.points,o=Object.keys(e),a=0;a<o.length;a+=1){var s,l=o[a];if(O(null==(s=e[l])?void 0:s.points,i,n))return"".concat(t,"-placement-").concat(l)}return""}function I(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function R(e){return e.ownerDocument.defaultView}function j(e){for(var t=[],r=null==e?void 0:e.parentElement,n=["hidden","scroll","clip","auto"];r;){var i=R(r).getComputedStyle(r);[i.overflowX,i.overflowY,i.overflow].some(function(e){return n.includes(e)})&&t.push(r),r=r.parentElement}return t}function T(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function N(e){return T(parseFloat(e),0)}function P(e,t){var r=(0,n.A)({},e);return(t||[]).forEach(function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=R(e).getComputedStyle(e),n=t.overflow,i=t.overflowClipMargin,o=t.borderTopWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,l=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,f=e.clientHeight,d=e.offsetWidth,h=e.clientWidth,p=N(o),m=N(a),g=N(s),b=N(l),v=T(Math.round(c.width/d*1e3)/1e3),y=T(Math.round(c.height/u*1e3)/1e3),w=(d-h-g-b)*v,x=(u-f-p-m)*y,A=p*y,E=m*y,_=g*v,S=b*v,$=0,k=0;if("clip"===n){var C=N(i);$=C*v,k=C*y}var O=c.x+_-$,M=c.y+A-k,I=O+c.width+2*$-_-S-w,j=M+c.height+2*k-A-E-x;r.left=Math.max(r.left,O),r.top=Math.max(r.top,M),r.right=Math.min(r.right,I),r.bottom=Math.min(r.bottom,j)}}),r}function B(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r="".concat(t),n=r.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(r)}function z(e,t){var r=t||[],n=(0,i.A)(r,2),o=n[0],a=n[1];return[B(e.width,o),B(e.height,a)]}function L(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function D(e,t){var r,n,i=t[0],o=t[1];return n="t"===i?e.y:"b"===i?e.y+e.height:e.y+e.height/2,{x:r="l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function F(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(e,n){return n===t?r[e]||"c":e}).join("")}function H(e,t,r,o,a,s,l){var c=g.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[o]||{}}),f=(0,i.A)(c,2),h=f[0],m=f[1],b=g.useRef(0),v=g.useMemo(function(){return t?j(t):[]},[t]),y=g.useRef({}),w=function(){y.current={}};e||w();var x=(0,d.A)(function(){if(t&&r&&e){var c,f,d,h,p=t,g=p.ownerDocument,b=R(p),w=b.getComputedStyle(p).position,x=p.style.left,A=p.style.top,E=p.style.right,_=p.style.bottom,S=p.style.overflow,$=(0,n.A)((0,n.A)({},a[o]),s),k=g.createElement("div");if(null==(O=p.parentElement)||O.appendChild(k),k.style.left="".concat(p.offsetLeft,"px"),k.style.top="".concat(p.offsetTop,"px"),k.style.position=w,k.style.height="".concat(p.offsetHeight,"px"),k.style.width="".concat(p.offsetWidth,"px"),p.style.left="0",p.style.top="0",p.style.right="auto",p.style.bottom="auto",p.style.overflow="hidden",Array.isArray(r))N={x:r[0],y:r[1],width:0,height:0};else{var O,M,I,j,N,B,H,U=r.getBoundingClientRect();U.x=null!=(B=U.x)?B:U.left,U.y=null!=(H=U.y)?H:U.top,N={x:U.x,y:U.y,width:U.width,height:U.height}}var q=p.getBoundingClientRect(),W=b.getComputedStyle(p),V=W.height,K=W.width;q.x=null!=(M=q.x)?M:q.left,q.y=null!=(I=q.y)?I:q.top;var G=g.documentElement,X=G.clientWidth,Z=G.clientHeight,Y=G.scrollWidth,J=G.scrollHeight,Q=G.scrollTop,ee=G.scrollLeft,et=q.height,er=q.width,en=N.height,ei=N.width,eo={left:0,top:0,right:X,bottom:Z},ea={left:-ee,top:-Q,right:Y-ee,bottom:J-Q},es=$.htmlRegion,el="visible",ec="visibleFirst";"scroll"!==es&&es!==ec&&(es=el);var eu=es===ec,ef=P(ea,v),ed=P(eo,v),eh=es===el?ed:ef,ep=eu?ed:eh;p.style.left="auto",p.style.top="auto",p.style.right="0",p.style.bottom="0";var em=p.getBoundingClientRect();p.style.left=x,p.style.top=A,p.style.right=E,p.style.bottom=_,p.style.overflow=S,null==(j=p.parentElement)||j.removeChild(k);var eg=T(Math.round(er/parseFloat(K)*1e3)/1e3),eb=T(Math.round(et/parseFloat(V)*1e3)/1e3);if(!(0===eg||0===eb||(0,u.fk)(r)&&!(0,C.A)(r))){var ev=$.offset,ey=$.targetOffset,ew=z(q,ev),ex=(0,i.A)(ew,2),eA=ex[0],eE=ex[1],e_=z(N,ey),eS=(0,i.A)(e_,2),e$=eS[0],ek=eS[1];N.x-=e$,N.y-=ek;var eC=$.points||[],eO=(0,i.A)(eC,2),eM=eO[0],eI=eO[1],eR=L(eI),ej=L(eM),eT=D(N,eR),eN=D(q,ej),eP=(0,n.A)({},$),eB=eT.x-eN.x+eA,ez=eT.y-eN.y+eE,eL=t_(eB,ez),eD=t_(eB,ez,ed),eF=D(N,["t","l"]),eH=D(q,["t","l"]),eU=D(N,["b","r"]),eq=D(q,["b","r"]),eW=$.overflow||{},eV=eW.adjustX,eK=eW.adjustY,eG=eW.shiftX,eX=eW.shiftY,eZ=function(e){return"boolean"==typeof e?e:e>=0};tS();var eY=eZ(eK),eJ=ej[0]===eR[0];if(eY&&"t"===ej[0]&&(f>ep.bottom||y.current.bt)){var eQ=ez;eJ?eQ-=et-en:eQ=eF.y-eq.y-eE;var e0=t_(eB,eQ),e1=t_(eB,eQ,ed);e0>eL||e0===eL&&(!eu||e1>=eD)?(y.current.bt=!0,ez=eQ,eE=-eE,eP.points=[F(ej,0),F(eR,0)]):y.current.bt=!1}if(eY&&"b"===ej[0]&&(c<ep.top||y.current.tb)){var e2=ez;eJ?e2+=et-en:e2=eU.y-eH.y-eE;var e6=t_(eB,e2),e3=t_(eB,e2,ed);e6>eL||e6===eL&&(!eu||e3>=eD)?(y.current.tb=!0,ez=e2,eE=-eE,eP.points=[F(ej,0),F(eR,0)]):y.current.tb=!1}var e5=eZ(eV),e4=ej[1]===eR[1];if(e5&&"l"===ej[1]&&(h>ep.right||y.current.rl)){var e8=eB;e4?e8-=er-ei:e8=eF.x-eq.x-eA;var e9=t_(e8,ez),e7=t_(e8,ez,ed);e9>eL||e9===eL&&(!eu||e7>=eD)?(y.current.rl=!0,eB=e8,eA=-eA,eP.points=[F(ej,1),F(eR,1)]):y.current.rl=!1}if(e5&&"r"===ej[1]&&(d<ep.left||y.current.lr)){var te=eB;e4?te+=er-ei:te=eU.x-eH.x-eA;var tt=t_(te,ez),tr=t_(te,ez,ed);tt>eL||tt===eL&&(!eu||tr>=eD)?(y.current.lr=!0,eB=te,eA=-eA,eP.points=[F(ej,1),F(eR,1)]):y.current.lr=!1}tS();var tn=!0===eG?0:eG;"number"==typeof tn&&(d<ed.left&&(eB-=d-ed.left-eA,N.x+ei<ed.left+tn&&(eB+=N.x-ed.left+ei-tn)),h>ed.right&&(eB-=h-ed.right-eA,N.x>ed.right-tn&&(eB+=N.x-ed.right+tn)));var ti=!0===eX?0:eX;"number"==typeof ti&&(c<ed.top&&(ez-=c-ed.top-eE,N.y+en<ed.top+ti&&(ez+=N.y-ed.top+en-ti)),f>ed.bottom&&(ez-=f-ed.bottom-eE,N.y>ed.bottom-ti&&(ez+=N.y-ed.bottom+ti)));var to=q.x+eB,ta=to+er,ts=q.y+ez,tl=ts+et,tc=N.x,tu=tc+ei,tf=N.y,td=tf+en,th=Math.max(to,tc),tp=Math.min(ta,tu),tm=(th+tp)/2,tg=tm-to,tb=Math.max(ts,tf),tv=Math.min(tl,td),ty=(tb+tv)/2,tw=ty-ts;null==l||l(t,eP);var tx=em.right-q.x-(eB+q.width),tA=em.bottom-q.y-(ez+q.height);1===eg&&(eB=Math.floor(eB),tx=Math.floor(tx)),1===eb&&(ez=Math.floor(ez),tA=Math.floor(tA));var tE={ready:!0,offsetX:eB/eg,offsetY:ez/eb,offsetR:tx/eg,offsetB:tA/eb,arrowX:tg/eg,arrowY:tw/eb,scaleX:eg,scaleY:eb,align:eP};m(tE)}function t_(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:eh,n=q.x+e,i=q.y+t,o=n+er,a=i+et,s=Math.max(n,r.left),l=Math.max(i,r.top);return Math.max(0,(Math.min(o,r.right)-s)*(Math.min(a,r.bottom)-l))}function tS(){f=(c=q.y+ez)+et,h=(d=q.x+eB)+er}}}),A=function(){b.current+=1;var e=b.current;Promise.resolve().then(function(){b.current===e&&x()})},E=function(){m(function(e){return(0,n.A)((0,n.A)({},e),{},{ready:!1})})};return(0,p.A)(E,[o]),(0,p.A)(function(){e||E()},[e]),[h.ready,h.offsetX,h.offsetY,h.offsetR,h.offsetB,h.arrowX,h.arrowY,h.scaleX,h.scaleY,h.align,A]}var U=r(78944);function q(e,t,r,n,i){(0,p.A)(function(){if(e&&t&&r){var o=r,a=j(t),s=j(o),l=R(o),c=new Set([l].concat((0,U.A)(a),(0,U.A)(s)));function u(){n(),i()}return c.forEach(function(e){e.addEventListener("scroll",u,{passive:!0})}),l.addEventListener("resize",u,{passive:!0}),n(),function(){c.forEach(function(e){e.removeEventListener("scroll",u),l.removeEventListener("resize",u)})}}},[e,t,r])}function W(e,t,r,n,i,o,a,s){var l=g.useRef(e);l.current=e;var c=g.useRef(!1);return g.useEffect(function(){if(t&&n&&(!i||o)){var e=function(){c.current=!1},u=function(e){var t;!l.current||a((null==(t=e.composedPath)||null==(t=t.call(e))?void 0:t[0])||e.target)||c.current||s(!1)},d=R(n);d.addEventListener("pointerdown",e,!0),d.addEventListener("mousedown",u,!0),d.addEventListener("contextmenu",u,!0);var h=(0,f.j)(r);return h&&(h.addEventListener("mousedown",u,!0),h.addEventListener("contextmenu",u,!0)),function(){d.removeEventListener("pointerdown",e,!0),d.removeEventListener("mousedown",u,!0),d.removeEventListener("contextmenu",u,!0),h&&(h.removeEventListener("mousedown",u,!0),h.removeEventListener("contextmenu",u,!0))}}},[t,r,n,i,o]),function(){c.current=!0}}r(47773);var V=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];let K=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.A;return g.forwardRef(function(t,r){var a,s,b=t.prefixCls,v=void 0===b?"rc-trigger-popup":b,y=t.children,w=t.action,x=void 0===w?"hover":w,A=t.showAction,$=t.hideAction,C=t.popupVisible,O=t.defaultPopupVisible,R=t.onPopupVisibleChange,j=t.afterPopupVisibleChange,T=t.mouseEnterDelay,N=t.mouseLeaveDelay,P=void 0===N?.1:N,B=t.focusDelay,z=t.blurDelay,L=t.mask,D=t.maskClosable,F=void 0===D||D,U=t.getPopupContainer,K=t.forceRender,G=t.autoDestroy,X=t.destroyPopupOnHide,Z=t.popup,Y=t.popupClassName,J=t.popupStyle,Q=t.popupPlacement,ee=t.builtinPlacements,et=void 0===ee?{}:ee,er=t.popupAlign,en=t.zIndex,ei=t.stretch,eo=t.getPopupClassNameFromAlign,ea=t.fresh,es=t.alignPoint,el=t.onPopupClick,ec=t.onPopupAlign,eu=t.arrow,ef=t.popupMotion,ed=t.maskMotion,eh=t.popupTransitionName,ep=t.popupAnimation,em=t.maskTransitionName,eg=t.maskAnimation,eb=t.className,ev=t.getTriggerDOMNode,ey=(0,o.A)(t,V),ew=G||X||!1,ex=g.useState(!1),eA=(0,i.A)(ex,2),eE=eA[0],e_=eA[1];(0,p.A)(function(){e_((0,m.A)())},[]);var eS=g.useRef({}),e$=g.useContext(S),ek=g.useMemo(function(){return{registerSubPopup:function(e,t){eS.current[e]=t,null==e$||e$.registerSubPopup(e,t)}}},[e$]),eC=(0,h.A)(),eO=g.useState(null),eM=(0,i.A)(eO,2),eI=eM[0],eR=eM[1],ej=g.useRef(null),eT=(0,d.A)(function(e){ej.current=e,(0,u.fk)(e)&&eI!==e&&eR(e),null==e$||e$.registerSubPopup(eC,e)}),eN=g.useState(null),eP=(0,i.A)(eN,2),eB=eP[0],ez=eP[1],eL=g.useRef(null),eD=(0,d.A)(function(e){(0,u.fk)(e)&&eB!==e&&(ez(e),eL.current=e)}),eF=g.Children.only(y),eH=(null==eF?void 0:eF.props)||{},eU={},eq=(0,d.A)(function(e){var t,r,n=eB;return(null==n?void 0:n.contains(e))||(null==(t=(0,f.j)(n))?void 0:t.host)===e||e===n||(null==eI?void 0:eI.contains(e))||(null==(r=(0,f.j)(eI))?void 0:r.host)===e||e===eI||Object.values(eS.current).some(function(t){return(null==t?void 0:t.contains(e))||e===t})}),eW=I(v,ef,ep,eh),eV=I(v,ed,eg,em),eK=g.useState(O||!1),eG=(0,i.A)(eK,2),eX=eG[0],eZ=eG[1],eY=null!=C?C:eX,eJ=(0,d.A)(function(e){void 0===C&&eZ(e)});(0,p.A)(function(){eZ(C||!1)},[C]);var eQ=g.useRef(eY);eQ.current=eY;var e0=g.useRef([]);e0.current=[];var e1=(0,d.A)(function(e){var t;eJ(e),(null!=(t=e0.current[e0.current.length-1])?t:eY)!==e&&(e0.current.push(e),null==R||R(e))}),e2=g.useRef(),e6=function(){clearTimeout(e2.current)},e3=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e6(),0===t?e1(e):e2.current=setTimeout(function(){e1(e)},1e3*t)};g.useEffect(function(){return e6},[]);var e5=g.useState(!1),e4=(0,i.A)(e5,2),e8=e4[0],e9=e4[1];(0,p.A)(function(e){(!e||eY)&&e9(!0)},[eY]);var e7=g.useState(null),te=(0,i.A)(e7,2),tt=te[0],tr=te[1],tn=g.useState(null),ti=(0,i.A)(tn,2),to=ti[0],ta=ti[1],ts=function(e){ta([e.clientX,e.clientY])},tl=H(eY,eI,es&&null!==to?to:eB,Q,et,er,ec),tc=(0,i.A)(tl,11),tu=tc[0],tf=tc[1],td=tc[2],th=tc[3],tp=tc[4],tm=tc[5],tg=tc[6],tb=tc[7],tv=tc[8],ty=tc[9],tw=tc[10],tx=k(eE,x,A,$),tA=(0,i.A)(tx,2),tE=tA[0],t_=tA[1],tS=tE.has("click"),t$=t_.has("click")||t_.has("contextMenu"),tk=(0,d.A)(function(){e8||tw()});q(eY,eB,eI,tk,function(){eQ.current&&es&&t$&&e3(!1)}),(0,p.A)(function(){tk()},[to,Q]),(0,p.A)(function(){eY&&!(null!=et&&et[Q])&&tk()},[JSON.stringify(er)]);var tC=g.useMemo(function(){var e=M(et,v,ty,es);return l()(e,null==eo?void 0:eo(ty))},[ty,eo,et,v,es]);g.useImperativeHandle(r,function(){return{nativeElement:eL.current,popupElement:ej.current,forceAlign:tk}});var tO=g.useState(0),tM=(0,i.A)(tO,2),tI=tM[0],tR=tM[1],tj=g.useState(0),tT=(0,i.A)(tj,2),tN=tT[0],tP=tT[1],tB=function(){if(ei&&eB){var e=eB.getBoundingClientRect();tR(e.width),tP(e.height)}},tz=function(){tB(),tk()},tL=function(e){e9(!1),tw(),null==j||j(e)},tD=function(){return new Promise(function(e){tB(),tr(function(){return e})})};function tF(e,t,r,n){eU[e]=function(i){var o;null==n||n(i),e3(t,r);for(var a=arguments.length,s=Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];null==(o=eH[e])||o.call.apply(o,[eH,i].concat(s))}}(0,p.A)(function(){tt&&(tw(),tt(),tr(null))},[tt]),(tS||t$)&&(eU.onClick=function(e){var t;eQ.current&&t$?e3(!1):!eQ.current&&tS&&(ts(e),e3(!0));for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];null==(t=eH.onClick)||t.call.apply(t,[eH,e].concat(n))});var tH=W(eY,t$,eB,eI,L,F,eq,e3),tU=tE.has("hover"),tq=t_.has("hover");tU&&(tF("onMouseEnter",!0,T,function(e){ts(e)}),tF("onPointerEnter",!0,T,function(e){ts(e)}),a=function(e){(eY||e8)&&null!=eI&&eI.contains(e.target)&&e3(!0,T)},es&&(eU.onMouseMove=function(e){var t;null==(t=eH.onMouseMove)||t.call(eH,e)})),tq&&(tF("onMouseLeave",!1,P),tF("onPointerLeave",!1,P),s=function(){e3(!1,P)}),tE.has("focus")&&tF("onFocus",!0,B),t_.has("focus")&&tF("onBlur",!1,z),tE.has("contextMenu")&&(eU.onContextMenu=function(e){var t;eQ.current&&t_.has("contextMenu")?e3(!1):(ts(e),e3(!0)),e.preventDefault();for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];null==(t=eH.onContextMenu)||t.call.apply(t,[eH,e].concat(n))}),eb&&(eU.className=l()(eH.className,eb));var tW=g.useRef(!1);tW.current||(tW.current=K||eY||e8);var tV=(0,n.A)((0,n.A)({},eH),eU),tK={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(function(e){ey[e]&&(tK[e]=function(){for(var t,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];null==(t=tV[e])||t.call.apply(t,[tV].concat(n)),ey[e].apply(ey,n)})});var tG=g.cloneElement(eF,(0,n.A)((0,n.A)({},tV),tK)),tX={x:tm,y:tg},tZ=eu?(0,n.A)({},!0!==eu?eu:{}):null;return g.createElement(g.Fragment,null,g.createElement(c.A,{disabled:!eY,ref:eD,onResize:tz},g.createElement(_,{getTriggerDOMNode:ev},tG)),tW.current&&g.createElement(S.Provider,{value:ek},g.createElement(E,{portal:e,ref:eT,prefixCls:v,popup:Z,className:l()(Y,tC),style:J,target:eB,onMouseEnter:a,onMouseLeave:s,onPointerEnter:a,zIndex:en,open:eY,keepDom:e8,fresh:ea,onClick:el,onPointerDownCapture:tH,mask:L,motion:eW,maskMotion:eV,onVisibleChanged:tL,onPrepare:tD,forceRender:K,autoDestroy:ew,getPopupContainer:U,align:ty,arrow:tZ,arrowPos:tX,ready:tu,offsetX:tf,offsetY:td,offsetR:th,offsetB:tp,onAlign:tk,stretch:ei,targetWidth:tI/tb,targetHeight:tN/tv})))})}(a.A)},643(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(22155),i=r(42767),o=r(47495);let a=e=>{let{space:t,form:r,children:a}=e;if(null==a)return null;let s=a;return r&&(s=n.createElement(i.XB,{override:!0,status:!0},s)),t&&(s=n.createElement(o.K6,null,s)),s}},37007(e,t,r){"use strict";r.d(t,{A:()=>l,U:()=>s});var n=r(22155),i=r(3604),o=r(64324),a=r(65289);function s(e){return t=>n.createElement(o.Ay,{theme:{token:{motion:!1,zIndexPopupBase:0}}},n.createElement(e,Object.assign({},t)))}let l=(e,t,r,o,l)=>s(s=>{let{prefixCls:c,style:u}=s,f=n.useRef(null),[d,h]=n.useState(0),[p,m]=n.useState(0),[g,b]=(0,i.A)(!1,{value:s.open}),{getPrefixCls:v}=n.useContext(a.QO),y=v(o||"select",c);n.useEffect(()=>{if(b(!0),"u">typeof ResizeObserver){let e=new ResizeObserver(e=>{let t=e[0].target;h(t.offsetHeight+8),m(t.offsetWidth)}),t=setInterval(()=>{var r;let n=l?`.${l(y)}`:`.${y}-dropdown`,i=null==(r=f.current)?void 0:r.querySelector(n);i&&(clearInterval(t),e.observe(i))},10);return()=>{clearInterval(t),e.disconnect()}}},[y]);let w=Object.assign(Object.assign({},s),{style:Object.assign(Object.assign({},u),{margin:0}),open:g,visible:g,getPopupContainer:()=>f.current});r&&(w=r(w)),t&&Object.assign(w,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});let x={paddingBottom:d,position:"relative",minWidth:p};return n.createElement("div",{ref:f,style:x},n.createElement(e,Object.assign({},w)))})},58501(e,t,r){"use strict";r.d(t,{A:()=>n});let n=function(...e){let t={};return e.forEach(e=>{e&&Object.keys(e).forEach(r=>{void 0!==e[r]&&(t[r]=e[r])})}),t}},25281(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(22155),i=r(42254);let o=e=>{let t;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?t=e:e&&(t={clearIcon:n.createElement(i.A,null)}),t}},47201(e,t,r){"use strict";r.d(t,{YK:()=>u,jH:()=>a});var n=r(22155),i=r(57873),o=r(80690);let a=1e3,s={Modal:100,Drawer:100,Popover:100,Popconfirm:100,Tooltip:100,Tour:100,FloatButton:100},l={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function c(e){return e in s}let u=(e,t)=>{let r,[,a]=(0,i.Ay)(),u=n.useContext(o.A),f=c(e);if(void 0!==t)r=[t,t];else{let n=null!=u?u:0;f?n+=(u?0:a.zIndexPopupBase)+s[e]:n+=l[e],r=[void 0===u?t:n,n]}return r}},20007(e,t,r){"use strict";r.d(t,{e:()=>n,p:()=>i});let n=(e,t)=>{void 0!==(null==e?void 0:e.addEventListener)?e.addEventListener("change",t):void 0!==(null==e?void 0:e.addListener)&&e.addListener(t)},i=(e,t)=>{void 0!==(null==e?void 0:e.removeEventListener)?e.removeEventListener("change",t):void 0!==(null==e?void 0:e.removeListener)&&e.removeListener(t)}},18697(e,t,r){"use strict";r.d(t,{A:()=>c,b:()=>l});var n=r(65289);let i=()=>({height:0,opacity:0}),o=e=>{let{scrollHeight:t}=e;return{height:t,opacity:1}},a=e=>({height:e?e.offsetHeight:0}),s=(e,t)=>(null==t?void 0:t.deadline)===!0||"height"===t.propertyName,l=(e,t,r)=>void 0!==r?r:`${e}-${t}`,c=(e=n.yH)=>({motionName:`${e}-motion-collapse`,onAppearStart:i,onEnterStart:i,onAppearActive:o,onEnterActive:o,onLeaveStart:a,onLeaveActive:i,onAppearEnd:s,onEnterEnd:s,onLeaveEnd:s,motionDeadline:500})},55831(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(771);function i(e,t,r,n){if(!1===n)return{adjustX:!1,adjustY:!1};let i=n&&"object"==typeof n?n:{},o={};switch(e){case"top":case"bottom":o.shiftX=2*t.arrowOffsetHorizontal+r,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=2*t.arrowOffsetVertical+r,o.shiftX=!0,o.adjustX=!0}let a=Object.assign(Object.assign({},o),i);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}let o={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},a={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},s=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function l(e){let{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:l,offset:c,borderRadius:u,visibleFirst:f}=e,d=t/2,h={},p=(0,n.Ke)({contentRadius:u,limitVerticalRadius:!0});return Object.keys(o).forEach(e=>{let n=Object.assign(Object.assign({},l&&a[e]||o[e]),{offset:[0,0],dynamicInset:!0});switch(h[e]=n,s.has(e)&&(n.autoArrow=!1),e){case"top":case"topLeft":case"topRight":n.offset[1]=-d-c;break;case"bottom":case"bottomLeft":case"bottomRight":n.offset[1]=d+c;break;case"left":case"leftTop":case"leftBottom":n.offset[0]=-d-c;break;case"right":case"rightTop":case"rightBottom":n.offset[0]=d+c}if(l)switch(e){case"topLeft":case"bottomLeft":n.offset[0]=-p.arrowOffsetHorizontal-d;break;case"topRight":case"bottomRight":n.offset[0]=p.arrowOffsetHorizontal+d;break;case"leftTop":case"rightTop":n.offset[1]=-(2*p.arrowOffsetHorizontal)+d;break;case"leftBottom":case"rightBottom":n.offset[1]=2*p.arrowOffsetHorizontal-d}n.overflow=i(e,p,t,r),f&&(n.htmlRegion="visibleFirst")}),h}},21968(e,t,r){"use strict";r.d(t,{Ob:()=>a,fx:()=>o,zv:()=>i});var n=r(22155);function i(e){return e&&n.isValidElement(e)&&e.type===n.Fragment}let o=(e,t,r)=>n.isValidElement(e)?n.cloneElement(e,"function"==typeof r?r(e.props||{}):r):t;function a(e,t){return o(e,e,t)}},9355(e,t,r){"use strict";r.d(t,{Ay:()=>c,ye:()=>a});var n=r(22155),i=r(57873),o=r(20007);let a=["xxl","xl","lg","md","sm","xs"],s=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),l=e=>{let t=e,r=[].concat(a).reverse();return r.forEach((e,n)=>{let i=e.toUpperCase(),o=`screen${i}Min`,a=`screen${i}`;if(!(t[o]<=t[a]))throw Error(`${o}<=${a} fails : !(${t[o]}<=${t[a]})`);if(n<r.length-1){let e=`screen${i}Max`;if(!(t[a]<=t[e]))throw Error(`${a}<=${e} fails : !(${t[a]}<=${t[e]})`);let o=r[n+1].toUpperCase(),s=`screen${o}Min`;if(!(t[e]<=t[s]))throw Error(`${e}<=${s} fails : !(${t[e]}<=${t[s]})`)}}),e},c=()=>{let[,e]=(0,i.Ay)(),t=s(l(e));return n.useMemo(()=>{let e=new Map,r=-1,n={};return{responsiveMap:t,matchHandlers:{},dispatch:t=>(n=t,e.forEach(e=>e(n)),e.size>=1),subscribe(t){return e.size||this.register(),r+=1,e.set(r,t),t(n),r},unsubscribe(t){e.delete(t),e.size||this.unregister()},register(){Object.entries(t).forEach(([e,t])=>{let r=({matches:t})=>{this.dispatch(Object.assign(Object.assign({},n),{[e]:t}))},i=window.matchMedia(t);(0,o.e)(i,r),this.matchHandlers[t]={mql:i,listener:r},r(i)})},unregister(){Object.values(t).forEach(e=>{let t=this.matchHandlers[e];(0,o.p)(null==t?void 0:t.mql,null==t?void 0:t.listener)}),e.clear()}}},[t])}},46320(e,t,r){"use strict";r.d(t,{L:()=>o,v:()=>a});var n=r(30395),i=r.n(n);function o(e,t,r){return i()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:r})}let a=(e,t)=>t||e},53575(e,t,r){"use strict";r.d(t,{_n:()=>o,rJ:()=>a});var n=r(22155);function i(){}r(47773);let o=n.createContext({}),a=()=>{let e=()=>{};return e.deprecated=i,e}},30565(e,t,r){"use strict";r.d(t,{A:()=>S});var n=r(22155),i=r(30395),o=r.n(i),a=r(65460),s=r(75252),l=r(65289),c=r(21968),u=r(72056);let f=e=>{let{componentCls:t,colorPrimary:r}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:`box-shadow 0.4s ${e.motionEaseOutCirc},opacity 2s ${e.motionEaseOutCirc}`,"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut},opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}}}},d=(0,u.Or)("Wave",f);var h=r(44649),p=r(23504),m=r(57873),g=r(61966),b=r(8890),v=r(33960);function y(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e&&"canvastext"!==e}function w(e){var t;let{borderTopColor:r,borderColor:n,backgroundColor:i}=getComputedStyle(e);return null!=(t=[r,n,i].find(y))?t:null}function x(e){return Number.isNaN(e)?0:e}let A=e=>{let{className:t,target:r,component:i,registerUnmount:a}=e,l=n.useRef(null),c=n.useRef(null);n.useEffect(()=>{c.current=a()},[]);let[u,f]=n.useState(null),[d,h]=n.useState([]),[m,v]=n.useState(0),[y,A]=n.useState(0),[E,_]=n.useState(0),[S,$]=n.useState(0),[k,C]=n.useState(!1),O={left:m,top:y,width:E,height:S,borderRadius:d.map(e=>`${e}px`).join(" ")};function M(){let e=getComputedStyle(r);f(w(r));let t="static"===e.position,{borderLeftWidth:n,borderTopWidth:i}=e;v(t?r.offsetLeft:x(-Number.parseFloat(n))),A(t?r.offsetTop:x(-Number.parseFloat(i))),_(r.offsetWidth),$(r.offsetHeight);let{borderTopLeftRadius:o,borderTopRightRadius:a,borderBottomLeftRadius:s,borderBottomRightRadius:l}=e;h([o,a,l,s].map(e=>x(Number.parseFloat(e))))}if(u&&(O["--wave-color"]=u),n.useEffect(()=>{if(r){let e,t=(0,p.A)(()=>{M(),C(!0)});return"u">typeof ResizeObserver&&(e=new ResizeObserver(M)).observe(r),()=>{p.A.cancel(t),null==e||e.disconnect()}}},[r]),!k)return null;let I=("Checkbox"===i||"Radio"===i)&&(null==r?void 0:r.classList.contains(g.D));return n.createElement(b.Ay,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var r,n;if(t.deadline||"opacity"===t.propertyName){let e=null==(r=l.current)?void 0:r.parentElement;null==(n=c.current)||n.call(c).then(()=>{null==e||e.remove()})}return!1}},({className:e},r)=>n.createElement("div",{ref:(0,s.K4)(l,r),className:o()(t,e,{"wave-quick":I}),style:O}))},E=(e,t)=>{var r;let{component:i}=t;if("Checkbox"===i&&!(null==(r=e.querySelector("input"))?void 0:r.checked))return;let o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",null==e||e.insertBefore(o,null==e?void 0:e.firstChild);let a=(0,v.L)(),s=null;function l(){return s}s=a(n.createElement(A,Object.assign({},t,{target:e,registerUnmount:l})),o)},_=(e,t,r)=>{let{wave:i}=n.useContext(l.QO),[,o,a]=(0,m.Ay)(),s=(0,h.A)(n=>{let s=e.current;if((null==i?void 0:i.disabled)||!s)return;let l=s.querySelector(`.${g.D}`)||s,{showEffect:c}=i||{};(c||E)(l,{className:t,token:o,component:r,event:n,hashId:a})}),c=n.useRef(null);return e=>{p.A.cancel(c.current),c.current=(0,p.A)(()=>{s(e)})}},S=e=>{let{children:t,disabled:r,component:i}=e,{getPrefixCls:u}=(0,n.useContext)(l.QO),f=(0,n.useRef)(null),h=u("wave"),[,p]=d(h),m=_(f,o()(h,p),i);if(n.useEffect(()=>{let e=f.current;if(!e||e.nodeType!==window.Node.ELEMENT_NODE||r)return;let t=t=>{!(0,a.A)(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")&&!e.className.includes("disabled:")||"true"===e.getAttribute("aria-disabled")||e.className.includes("-leave")||m(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}},[r]),!n.isValidElement(t))return null!=t?t:null;let g=(0,s.f3)(t)?(0,s.K4)((0,s.A9)(t),f):f;return(0,c.Ob)(t,{ref:g})}},61966(e,t,r){"use strict";r.d(t,{D:()=>i});var n=r(65289);let i=`${n.yH}-wave-target`},80690(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(22155).createContext(void 0)},32306(e,t,r){"use strict";r.d(t,{A:()=>L});var n=r(22155),i=r(35261),o=r(42254),a=r(32416),s=r(42964),l=r(91664),c=r(30395),u=r.n(c),f=r(8890),d=r(21634),h=r(75252),p=r(21968),m=r(65289),g=r(59296),b=r(96619),v=r(72056);let y=(e,t,r,n,i)=>({background:e,border:`${(0,g.zA)(n.lineWidth)} ${n.lineType} ${t}`,[`${i}-icon`]:{color:r}}),w=e=>{let{componentCls:t,motionDurationSlow:r,marginXS:n,marginSM:i,fontSize:o,fontSizeLG:a,lineHeight:s,borderRadiusLG:l,motionEaseInOutCirc:c,withDescriptionIconSize:u,colorText:f,colorTextHeading:d,withDescriptionPadding:h,defaultPadding:p}=e;return{[t]:Object.assign(Object.assign({},(0,b.dF)(e)),{position:"relative",display:"flex",alignItems:"center",padding:p,wordWrap:"break-word",borderRadius:l,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:n,lineHeight:0},"&-description":{display:"none",fontSize:o,lineHeight:s},"&-message":{color:d},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${r} ${c}, opacity ${r} ${c},
1
+ /*! For license information please see 342.4cd664a6.js.LICENSE.txt */
2
+ (self.webpackChunkcomputer_playground=self.webpackChunkcomputer_playground||[]).push([["342"],{57660(e,t,r){"use strict";r.d(t,{uy:()=>g,UA:()=>M,bK:()=>w,z1:()=>S,cM:()=>m});var n=r(98494),i=2,o=.16,a=.05,s=.05,l=.15,c=5,u=4,f=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function d(e,t,r){var n;return(n=Math.round(e.h)>=60&&240>=Math.round(e.h)?r?Math.round(e.h)-i*t:Math.round(e.h)+i*t:r?Math.round(e.h)+i*t:Math.round(e.h)-i*t)<0?n+=360:n>=360&&(n-=360),n}function h(e,t,r){var n;return 0===e.h&&0===e.s?e.s:((n=r?e.s-o*t:t===u?e.s+o:e.s+a*t)>1&&(n=1),r&&t===c&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(100*n)/100)}function p(e,t,r){var n;return Math.round(100*(n=Math.max(0,Math.min(1,n=r?e.v+s*t:e.v-l*t))))/100}function m(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[],i=new n.Y(e),o=i.toHsv(),a=c;a>0;a-=1){var s=new n.Y({h:d(o,a,!0),s:h(o,a,!0),v:p(o,a,!0)});r.push(s)}r.push(i);for(var l=1;l<=u;l+=1){var m=new n.Y({h:d(o,l),s:h(o,l),v:p(o,l)});r.push(m)}return"dark"===t.theme?f.map(function(e){var i=e.index,o=e.amount;return new n.Y(t.backgroundColor||"#141414").mix(r[i],o).toHexString()}):r.map(function(e){return e.toHexString()})}var g={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},b=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];b.primary=b[5];var v=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];v.primary=v[5];var y=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];y.primary=y[5];var w=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];w.primary=w[5];var x=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];x.primary=x[5];var A=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];A.primary=A[5];var E=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];E.primary=E[5];var _=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];_.primary=_[5];var S=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];S.primary=S[5];var $=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];$.primary=$[5];var k=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];k.primary=k[5];var C=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];C.primary=C[5];var O=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];O.primary=O[5];var M={red:b,volcano:v,orange:y,gold:w,yellow:x,lime:A,green:E,cyan:_,blue:S,geekblue:$,purple:k,magenta:C,grey:O},I=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];I.primary=I[5];var R=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];R.primary=R[5];var j=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];j.primary=j[5];var T=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];T.primary=T[5];var N=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];N.primary=N[5];var P=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];P.primary=P[5];var B=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];B.primary=B[5];var z=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];z.primary=z[5];var L=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];L.primary=L[5];var D=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];D.primary=D[5];var F=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];F.primary=F[5];var H=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];H.primary=H[5];var U=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];U.primary=U[5]},63930(e,t,r){"use strict";r.d(t,{oX:()=>S,L_:()=>N});var n=r(24366),i=r(70486),o=r(19841),a=r(39317),s=r(22155),l=r(59296),c=r(11947),u=r(96591),f=r(18663),d=r(93619),h=r(51232);let p=(0,u.A)(function e(){(0,c.A)(this,e)});var m="CALC_UNIT",g=RegExp(m,"g");function b(e){return"number"==typeof e?"".concat(e).concat(m):e}var v=function(e){(0,d.A)(r,e);var t=(0,h.A)(r);function r(e,i){(0,c.A)(this,r),a=t.call(this),(0,o.A)((0,f.A)(a),"result",""),(0,o.A)((0,f.A)(a),"unitlessCssVar",void 0),(0,o.A)((0,f.A)(a),"lowPriority",void 0);var a,s=(0,n.A)(e);return a.unitlessCssVar=i,e instanceof r?a.result="(".concat(e.result,")"):"number"===s?a.result=b(e):"string"===s&&(a.result=e),a}return(0,u.A)(r,[{key:"add",value:function(e){return e instanceof r?this.result="".concat(this.result," + ").concat(e.getResult()):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," + ").concat(b(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof r?this.result="".concat(this.result," - ").concat(e.getResult()):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," - ").concat(b(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof r?this.result="".concat(this.result," * ").concat(e.getResult(!0)):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof r?this.result="".concat(this.result," / ").concat(e.getResult(!0)):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,r=(e||{}).unit,n=!0;return("boolean"==typeof r?n=r:Array.from(this.unitlessCssVar).some(function(e){return t.result.includes(e)})&&(n=!1),this.result=this.result.replace(g,n?"px":""),void 0!==this.lowPriority)?"calc(".concat(this.result,")"):this.result}}]),r}(p);let y=function(e){(0,d.A)(r,e);var t=(0,h.A)(r);function r(e){var n;return(0,c.A)(this,r),n=t.call(this),(0,o.A)((0,f.A)(n),"result",0),e instanceof r?n.result=e.result:"number"==typeof e&&(n.result=e),n}return(0,u.A)(r,[{key:"add",value:function(e){return e instanceof r?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof r?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof r?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof r?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),r}(p),w=function(e,t){var r="css"===e?v:y;return function(e){return new r(e,t)}},x=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};r(74757);let A=function(e,t,r,n){var o=(0,a.A)({},t[e]);null!=n&&n.deprecatedTokens&&n.deprecatedTokens.forEach(function(e){var t,r=(0,i.A)(e,2),n=r[0],a=r[1];(null!=o&&o[n]||null!=o&&o[a])&&(null!=(t=o[a])||(o[a]=null==o?void 0:o[n]))});var s=(0,a.A)((0,a.A)({},r),o);return Object.keys(s).forEach(function(e){s[e]===t[e]&&delete s[e]}),s};var E="u">typeof CSSINJS_STATISTIC,_=!0;function S(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!E)return Object.assign.apply(Object,[{}].concat(t));_=!1;var i={};return t.forEach(function(e){if("object"===(0,n.A)(e)){var t=Object.keys(e);t.forEach(function(t){Object.defineProperty(i,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})})}}),_=!0,i}var $={};function k(){}let C=function(e){var t,r=e,n=k;return E&&"u">typeof Proxy&&(t=new Set,r=new Proxy(e,{get:function(e,r){if(_){var n;null==(n=t)||n.add(r)}return e[r]}}),n=function(e,r){var n;$[e]={global:Array.from(t),component:(0,a.A)((0,a.A)({},null==(n=$[e])?void 0:n.component),r)}}),{token:r,keys:t,flush:n}},O=function(e,t,r){if("function"==typeof r){var n;return r(S(t,null!=(n=t[e])?n:{}))}return null!=r?r:{}},M=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return"max(".concat(t.map(function(e){return(0,l.zA)(e)}).join(","),")")},min:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return"min(".concat(t.map(function(e){return(0,l.zA)(e)}).join(","),")")}}};var I=6e5,R=new(function(){function e(){(0,c.A)(this,e),(0,o.A)(this,"map",new Map),(0,o.A)(this,"objectIDMap",new WeakMap),(0,o.A)(this,"nextID",0),(0,o.A)(this,"lastAccessBeat",new Map),(0,o.A)(this,"accessBeat",0)}return(0,u.A)(e,[{key:"set",value:function(e,t){this.clear();var r=this.getCompositeKey(e);this.map.set(r,t),this.lastAccessBeat.set(r,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),r=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,r}},{key:"getCompositeKey",value:function(e){var t=this;return e.map(function(e){return e&&"object"===(0,n.A)(e)?"obj_".concat(t.getObjectID(e)):"".concat((0,n.A)(e),"_").concat(e)}).join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach(function(r,n){t-r>I&&(e.map.delete(n),e.lastAccessBeat.delete(n))}),this.accessBeat=0}}}]),e}());let j=function(e,t){return s.useMemo(function(){var r=R.get(t);if(r)return r;var n=e();return R.set(t,n),n},t)},T=function(){return{}},N=function(e){var t=e.useCSP,r=void 0===t?T:t,c=e.useToken,u=e.usePrefix,f=e.getResetStyles,d=e.getCommonStyle,h=e.getCompUnitless;function p(e,t,r){var n=r.unitless,i=r.injectStyle,o=void 0===i||i,a=r.prefixToken,u=r.ignore,f=function(i){var o=i.rootCls,s=i.cssVar,f=void 0===s?{}:s,d=c().realToken;return(0,l.RC)({path:[e],prefix:f.prefix,key:f.key,unitless:n,ignore:u,token:d,scope:o},function(){var n=O(e,d,t),i=A(e,d,n,{deprecatedTokens:null==r?void 0:r.deprecatedTokens});return Object.keys(n).forEach(function(e){i[a(e)]=i[e],delete i[e]}),i}),null};return function(t){var r=c().cssVar;return[function(n){return o&&r?s.createElement(s.Fragment,null,s.createElement(f,{rootCls:t,cssVar:r,component:e}),n):n},null==r?void 0:r.key]}}function m(t,o,s){var h=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},p=Array.isArray(t)?t:[t,t],m=(0,i.A)(p,1)[0],g=p.join("-"),b=e.layer||{name:"antd"};return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,i=c(),p=i.theme,v=i.realToken,y=i.hashId,E=i.token,_=i.cssVar,$=u(),k=$.rootPrefixCls,I=$.iconPrefixCls,R=r(),T=_?"css":"js",N=j(function(){var e=new Set;return _&&Object.keys(h.unitless||{}).forEach(function(t){e.add((0,l.Ki)(t,_.prefix)),e.add((0,l.Ki)(t,x(m,_.prefix)))}),w(T,e)},[T,m,null==_?void 0:_.prefix]),P=M(T),B=P.max,z=P.min,L={theme:p,token:E,hashId:y,nonce:function(){return R.nonce},clientOnly:h.clientOnly,layer:b,order:h.order||-999};return"function"==typeof f&&(0,l.IV)((0,a.A)((0,a.A)({},L),{},{clientOnly:!1,path:["Shared",k]}),function(){return f(E,{prefix:{rootPrefixCls:k,iconPrefixCls:I},csp:R})}),[(0,l.IV)((0,a.A)((0,a.A)({},L),{},{path:[g,e,I]}),function(){if(!1===h.injectStyle)return[];var r=C(E),i=r.token,a=r.flush,c=O(m,v,s),u=".".concat(e),f=A(m,v,c,{deprecatedTokens:h.deprecatedTokens});_&&c&&"object"===(0,n.A)(c)&&Object.keys(c).forEach(function(e){c[e]="var(".concat((0,l.Ki)(e,x(m,_.prefix)),")")});var p=S(i,{componentCls:u,prefixCls:e,iconCls:".".concat(I),antCls:".".concat(k),calc:N,max:B,min:z},_?c:f),g=o(p,{hashId:y,prefixCls:e,rootPrefixCls:k,iconPrefixCls:I});a(m,f);var b="function"==typeof d?d(p,e,t,h.resetFont):null;return[!1===h.resetStyle?null:b,g]}),y]}}return{genStyleHooks:function(e,t,r,n){var s=Array.isArray(e)?e[0]:e;function l(e){return"".concat(String(s)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var c=(null==n?void 0:n.unitless)||{},u="function"==typeof h?h(e):{},f=(0,a.A)((0,a.A)({},u),{},(0,o.A)({},l("zIndexPopup"),!0));Object.keys(c).forEach(function(e){f[l(e)]=c[e]});var d=(0,a.A)((0,a.A)({},n),{},{unitless:f,prefixToken:l}),g=m(e,t,r,d),b=p(s,r,d);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=g(e,t),n=(0,i.A)(r,2)[1],o=b(t),a=(0,i.A)(o,2);return[a[0],n,a[1]]}},genSubStyleComponent:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=m(e,t,r,(0,a.A)({resetStyle:!1,order:-998},n));return function(e){var t=e.prefixCls,r=e.rootCls,n=void 0===r?t:r;return i(t,n),null}},genComponentStyleHook:m}}},59296(e,t,r){"use strict";r.d(t,{hV:()=>el,IV:()=>tl,Mo:()=>th,zA:()=>z,an:()=>M,Ki:()=>D,J:()=>x,RC:()=>td});var n,i=r(19841),o=r(70486),a=r(78944),s=r(39317);let l=function(e){for(var t,r=0,n=0,i=e.length;i>=4;++n,i-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*0x5bd1e995+((t>>>16)*59797<<16),t^=t>>>24,r=(65535&t)*0x5bd1e995+((t>>>16)*59797<<16)^(65535&r)*0x5bd1e995+((r>>>16)*59797<<16);switch(i){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*0x5bd1e995+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*0x5bd1e995+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)};var c=r(1056),u=r(22155),f=r.t(u,2);r(96271),r(91585);var d=r(11947),h=r(96591),p="%";function m(e){return e.join(p)}let g=function(){function e(t){(0,d.A)(this,e),(0,i.A)(this,"instanceId",void 0),(0,i.A)(this,"cache",new Map),(0,i.A)(this,"extracted",new Set),this.instanceId=t}return(0,h.A)(e,[{key:"get",value:function(e){return this.opGet(m(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(m(e),t)}},{key:"opUpdate",value:function(e,t){var r=t(this.cache.get(e));null===r?this.cache.delete(e):this.cache.set(e,r)}}]),e}();var b="data-token-hash",v="data-css-hash",y="__cssinjs_instance__";function w(){var e=Math.random().toString(12).slice(2);if("u">typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(v,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(t){t[y]=t[y]||e,t[y]===e&&document.head.insertBefore(t,r)});var n={};Array.from(document.querySelectorAll("style[".concat(v,"]"))).forEach(function(t){var r,i=t.getAttribute(v);n[i]?t[y]===e&&(null==(r=t.parentNode)||r.removeChild(t)):n[i]=!0})}return new g(e)}let x=u.createContext({hashPriority:"low",cache:w(),defaultCache:!0});var A=r(24366),E=r(8929);function _(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var S=function(){function e(){(0,d.A)(this,e),(0,i.A)(this,"cache",void 0),(0,i.A)(this,"keys",void 0),(0,i.A)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,h.A)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i={map:this.cache};return e.forEach(function(e){if(i){var t;i=null==(t=i)||null==(t=t.map)?void 0:t.get(e)}else i=void 0}),null!=(t=i)&&t.value&&n&&(i.value[1]=this.cacheCallTimes++),null==(r=i)?void 0:r.value}},{key:"get",value:function(e){var t;return null==(t=this.internalGet(e,!0))?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,r){var n=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(e,t){var r=(0,o.A)(e,2)[1];return n.internalGet(t)[1]<r?[t,n.internalGet(t)[1]]:e},[this.keys[0],this.cacheCallTimes]),a=(0,o.A)(i,1)[0];this.delete(a)}this.keys.push(t)}var s=this.cache;t.forEach(function(e,i){if(i===t.length-1)s.set(e,{value:[r,n.cacheCallTimes++]});else{var o=s.get(e);o?o.map||(o.map=new Map):s.set(e,{map:new Map}),s=s.get(e).map}})}},{key:"deleteByPath",value:function(e,t){var r,n=e.get(t[0]);if(1===t.length)return n.map?e.set(t[0],{map:n.map}):e.delete(t[0]),null==(r=n.value)?void 0:r[0];var i=this.deleteByPath(n.map,t.slice(1));return n.map&&0!==n.map.size||n.value||e.delete(t[0]),i}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter(function(t){return!_(t,e)}),this.deleteByPath(this.cache,e)}}]),e}();(0,i.A)(S,"MAX_CACHE_SIZE",20),(0,i.A)(S,"MAX_CACHE_OFFSET",5);var $=r(47773),k=0,C=function(){function e(t){(0,d.A)(this,e),(0,i.A)(this,"derivatives",void 0),(0,i.A)(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=k,0===t.length&&(0,$.$e)(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),k+=1}return(0,h.A)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,r){return r(e,t)},void 0)}}]),e}(),O=new S;function M(e){var t=Array.isArray(e)?e:[e];return O.has(t)||O.set(t,new C(t)),O.get(t)}var I=new WeakMap,R={};function j(e,t){for(var r=I,n=0;n<t.length;n+=1){var i=t[n];r.has(i)||r.set(i,new WeakMap),r=r.get(i)}return r.has(R)||r.set(R,e()),r.get(R)}var T=new WeakMap;function N(e){var t=T.get(e)||"";return t||(Object.keys(e).forEach(function(r){var n=e[r];t+=r,n instanceof C?t+=n.id:n&&"object"===(0,A.A)(n)?t+=N(n):t+=n}),t=l(t),T.set(e,t)),t}function P(e,t){return l("".concat(t,"_").concat(N(e)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var B=(0,E.A)();function z(e){return"number"==typeof e?"".concat(e,"px"):e}function L(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(o)return e;var a=(0,s.A)((0,s.A)({},n),{},(0,i.A)((0,i.A)({},b,t),v,r)),l=Object.keys(a).map(function(e){var t=a[e];return t?"".concat(e,'="').concat(t,'"'):null}).filter(function(e){return e}).join(" ");return"<style ".concat(l,">").concat(e,"</style>")}var D=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},F=function(e,t,r){return Object.keys(e).length?".".concat(t).concat(null!=r&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(e).map(function(e){var t=(0,o.A)(e,2),r=t[0],n=t[1];return"".concat(r,":").concat(n,";")}).join(""),"}"):""},H=function(e,t,r){var n={},i={};return Object.entries(e).forEach(function(e){var t=(0,o.A)(e,2),a=t[0],s=t[1];if(null!=r&&null!=(l=r.preserve)&&l[a])i[a]=s;else if(("string"==typeof s||"number"==typeof s)&&!(null!=r&&null!=(c=r.ignore)&&c[a])){var l,c,u,f=D(a,null==r?void 0:r.prefix);n[f]="number"!=typeof s||null!=r&&null!=(u=r.unitless)&&u[a]?String(s):"".concat(s,"px"),i[a]="var(".concat(f,")")}}),[i,F(n,t,{scope:null==r?void 0:r.scope})]},U=r(94030),q=(0,s.A)({},f).useInsertionEffect,W=function(e,t,r){u.useMemo(e,r),(0,U.A)(function(){return t(!0)},r)};let V=q?function(e,t,r){return q(function(){return e(),t()},r)}:W;var K=(0,s.A)({},f).useInsertionEffect,G=function(e){var t=[],r=!1;function n(e){r||t.push(e)}return u.useEffect(function(){return r=!1,function(){r=!0,t.length&&t.forEach(function(e){return e()})}},e),n},X=function(){return function(e){e()}};let Z=void 0!==K?G:X,Y=function(){return!1};function J(e,t,r,n,i){var s=u.useContext(x).cache,l=m([e].concat((0,a.A)(t))),c=Z([l]);Y();var f=function(e){s.opUpdate(l,function(t){var n=t||[void 0,void 0],i=(0,o.A)(n,2),a=i[0],s=[void 0===a?0:a,i[1]||r()];return e?e(s):s})};u.useMemo(function(){f()},[l]);var d=s.opGet(l)[1];return V(function(){null==i||i(d)},function(e){return f(function(t){var r=(0,o.A)(t,2),n=r[0],a=r[1];return e&&0===n&&(null==i||i(d)),[n+1,a]}),function(){s.opUpdate(l,function(t){var r=t||[],i=(0,o.A)(r,2),a=i[0],u=void 0===a?0:a,f=i[1];return 0==u-1?(c(function(){(e||!s.opGet(l))&&(null==n||n(f,!1))}),null):[u-1,f]})}},[l]),d}var Q={},ee="css",et=new Map;function er(e){et.set(e,(et.get(e)||0)+1)}function en(e,t){"u">typeof document&&document.querySelectorAll("style[".concat(b,'="').concat(e,'"]')).forEach(function(e){if(e[y]===t){var r;null==(r=e.parentNode)||r.removeChild(e)}})}var ei=0;function eo(e,t){et.set(e,(et.get(e)||0)-1);var r=new Set;et.forEach(function(e,t){e<=0&&r.add(t)}),et.size-r.size>ei&&r.forEach(function(e){en(e,t),et.delete(e)})}var ea=function(e,t,r,n){var i=r.getDerivativeToken(e),o=(0,s.A)((0,s.A)({},i),t);return n&&(o=n(o)),o},es="token";function el(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=(0,u.useContext)(x),i=n.cache.instanceId,f=n.container,d=r.salt,h=void 0===d?"":d,p=r.override,m=void 0===p?Q:p,g=r.formatToken,w=r.getComputedToken,A=r.cssVar,E=j(function(){return Object.assign.apply(Object,[{}].concat((0,a.A)(t)))},t),_=N(E),S=N(m),$=A?N(A):"";return J(es,[h,e.id,_,S,$],function(){var t,r=w?w(E,m,e):ea(E,m,e,g),n=(0,s.A)({},r),i="";if(A){var a=H(r,A.key,{prefix:A.prefix,ignore:A.ignore,unitless:A.unitless,preserve:A.preserve}),c=(0,o.A)(a,2);r=c[0],i=c[1]}var u=P(r,h);r._tokenKey=u,n._tokenKey=P(n,h);var f=null!=(t=null==A?void 0:A.key)?t:u;r._themeKey=f,er(f);var d="".concat(ee,"-").concat(l(u));return r._hashId=d,[r,d,n,i,(null==A?void 0:A.key)||""]},function(e){eo(e[0]._themeKey,i)},function(e){var t=(0,o.A)(e,4),r=t[0],n=t[3];if(A&&n){var a=(0,c.BD)(n,l("css-variables-".concat(r._themeKey)),{mark:v,prepend:"queue",attachTo:f,priority:-999});a[y]=i,a.setAttribute(b,r._themeKey)}})}var ec=function(e,t,r){var n=(0,o.A)(e,5),i=n[2],a=n[3],s=n[4],l=(r||{}).plain;if(!a)return null;var c=i._tokenKey,u=-999,f=L(a,s,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},l);return[u,c,f]},eu=r(76878);let ef={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var ed="comm",eh="rule",ep="decl",em="@import",eg="@namespace",eb="@keyframes",ev="@layer",ey=Math.abs,ew=String.fromCharCode;function ex(e){return e.trim()}function eA(e,t,r){return e.replace(t,r)}function eE(e,t){return 0|e.charCodeAt(t)}function e_(e,t,r){return e.slice(t,r)}function eS(e){return e.length}function e$(e){return e.length}function ek(e,t){return t.push(e),e}function eC(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function eO(e,t,r,n){switch(e.type){case ev:if(e.children.length)break;case em:case eg:case ep:return e.return=e.return||e.value;case ed:return"";case eb:return e.return=e.value+"{"+eC(e.children,n)+"}";case eh:if(!eS(e.value=e.props.join(",")))return""}return eS(r=eC(e.children,n))?e.return=e.value+"{"+r+"}":""}var eM=1,eI=1,eR=0,ej=0,eT=0,eN="";function eP(e,t,r,n,i,o,a,s){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:eM,column:eI,length:a,return:"",siblings:s}}function eB(){return eT}function ez(){return eT=ej>0?eE(eN,--ej):0,eI--,10===eT&&(eI=1,eM--),eT}function eL(){return eT=ej<eR?eE(eN,ej++):0,eI++,10===eT&&(eI=1,eM++),eT}function eD(){return eE(eN,ej)}function eF(){return ej}function eH(e,t){return e_(eN,e,t)}function eU(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function eq(e){return eM=eI=1,eR=eS(eN=e),ej=0,[]}function eW(e){return eN="",e}function eV(e){return ex(eH(ej-1,eX(91===e?e+2:40===e?e+1:e)))}function eK(e){for(;eT=eD();)if(eT<33)eL();else break;return eU(e)>2||eU(eT)>3?"":" "}function eG(e,t){for(;--t&&eL()&&!(eT<48)&&!(eT>102)&&(!(eT>57)||!(eT<65))&&(!(eT>70)||!(eT<97)););return eH(e,eF()+(t<6&&32==eD()&&32==eL()))}function eX(e){for(;eL();)switch(eT){case e:return ej;case 34:case 39:34!==e&&39!==e&&eX(eT);break;case 40:41===e&&eX(e);break;case 92:eL()}return ej}function eZ(e,t){for(;eL();)if(e+eT===57)break;else if(e+eT===84&&47===eD())break;return"/*"+eH(t,ej-1)+"*"+ew(47===e?e:eL())}function eY(e){for(;!eU(eD());)eL();return eH(e,ej)}function eJ(e){return eW(eQ("",null,null,null,[""],e=eq(e),0,[0],e))}function eQ(e,t,r,n,i,o,a,s,l){for(var c=0,u=0,f=a,d=0,h=0,p=0,m=1,g=1,b=1,v=0,y=0,w="",x=i,A=o,E=n,_=w;g;)switch(p=y,y=eL()){case 40:108!=p&&58==eE(_,f-1)?(v++,_+="("):_+=eV(y);break;case 41:v--,_+=")";break;case 34:case 39:case 91:_+=eV(y);break;case 9:case 10:case 13:case 32:if(v>0){_+=ew(y);break}_+=eK(p);break;case 92:_+=eG(eF()-1,7);continue;case 47:switch(eD()){case 42:case 47:ek(e1(eZ(eL(),eF()),t,r,l),l),(5==eU(p||1)||5==eU(eD()||1))&&eS(_)&&" "!==e_(_,-1,void 0)&&(_+=" ");break;default:_+="/"}break;case 123*m:s[c++]=eS(_)*b;case 125*m:case 59:case 0:if(v>0&&y){_+=ew(y);break}switch(y){case 0:case 125:g=0;case 59+u:-1==b&&(_=eA(_,/\f/g,"")),h>0&&(eS(_)-f||0===m)&&ek(h>32?e2(_+";",n,r,f-1,l):e2(eA(_," ","")+";",n,r,f-2,l),l);break;case 59:_+=";";default:if(ek(E=e0(_,t,r,c,u,i,s,w,x=[],A=[],f,o),o),123===y)if(0===u)eQ(_,t,E,E,x,o,f,s,A);else{switch(d){case 99:if(110===eE(_,3))break;case 108:if(97===eE(_,2))break;default:u=0;case 100:case 109:case 115:}u?eQ(e,E,E,n&&ek(e0(e,E,E,0,0,i,s,w,i,x=[],f,A),A),i,A,f,s,n?x:A):eQ(_,E,E,E,[""],A,0,s,A)}}c=u=h=0,m=b=1,w=_="",f=a;break;case 58:f=1+eS(_),h=p;default:if(m<1){if(123==y)--m;else if(125==y&&0==m++&&125==ez())continue}switch(_+=ew(y),y*m){case 38:b=u>0?1:(_+="\f",-1);break;case 44:if(v>0)break;s[c++]=(eS(_)-1)*b,b=1;break;case 64:45===eD()&&(_+=eV(eL())),d=eD(),u=f=eS(w=_+=eY(eF())),y++;break;case 45:45===p&&2==eS(_)&&(m=0)}}return o}function e0(e,t,r,n,i,o,a,s,l,c,u,f){for(var d=i-1,h=0===i?o:[""],p=e$(h),m=0,g=0,b=0;m<n;++m)for(var v=0,y=e_(e,d+1,d=ey(g=a[m])),w=e;v<p;++v)(w=ex(g>0?h[v]+" "+y:eA(y,/&\f/g,h[v])))&&(l[b++]=w);return eP(e,t,r,0===i?eh:s,l,c,u,f)}function e1(e,t,r,n){return eP(e,t,r,ed,ew(eB()),e_(e,2,-2),0,n)}function e2(e,t,r,n,i){return eP(e,t,r,ep,e_(e,0,n),e_(e,n+1,-1),n,i)}var e6="data-ant-cssinjs-cache-path",e3="_FILE_STYLE__",e5=!0;function e4(){if(!n&&(n={},(0,E.A)())){var e,t=document.createElement("div");t.className=e6,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);var r=getComputedStyle(t).content||"";(r=r.replace(/^"/,"").replace(/"$/,"")).split(";").forEach(function(e){var t=e.split(":"),r=(0,o.A)(t,2),i=r[0],a=r[1];n[i]=a});var i=document.querySelector("style[".concat(e6,"]"));i&&(e5=!1,null==(e=i.parentNode)||e.removeChild(i)),document.body.removeChild(t)}}function e8(e){return e4(),!!n[e]}function e9(e){var t=n[e],r=null;if(t&&(0,E.A)())if(e5)r=e3;else{var i=document.querySelector("style[".concat(v,'="').concat(n[e],'"]'));i?r=i.innerHTML:delete n[e]}return[r,t]}var e7="_skip_check_",te="_multi_value_";function tt(e){return eC(eJ(e),eO).replace(/\{%%%\:[^;];}/g,";")}function tr(e){return"object"===(0,A.A)(e)&&e&&(e7 in e||te in e)}function tn(e,t,r){if(!t)return e;var n=".".concat(t),i="low"===r?":where(".concat(n,")"):n;return e.split(",").map(function(e){var t,r=e.trim().split(/\s+/),n=r[0]||"",o=(null==(t=n.match(/^\w+/))?void 0:t[0])||"";return[n="".concat(o).concat(i).concat(n.slice(o.length))].concat((0,a.A)(r.slice(1))).join(" ")}).join(",")}var ti=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},i=n.root,l=n.injectHash,c=n.parentSelectors,u=r.hashId,f=r.layer,d=(r.path,r.hashPriority),h=r.transformers,p=void 0===h?[]:h,m=(r.linters,""),g={};function b(t){var n=t.getName(u);if(!g[n]){var i=e(t.style,r,{root:!1,parentSelectors:c}),a=(0,o.A)(i,1)[0];g[n]="@keyframes ".concat(t.getName(u)).concat(a)}}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.forEach(function(e){Array.isArray(e)?v(e,t):e&&t.push(e)}),t}return v(Array.isArray(t)?t:[t]).forEach(function(t){var n="string"!=typeof t||i?t:{};if("string"==typeof n)m+="".concat(n,"\n");else if(n._keyframe)b(n);else{var f=p.reduce(function(e,t){var r;return(null==t||null==(r=t.visit)?void 0:r.call(t,e))||e},n);Object.keys(f).forEach(function(t){var n=f[t];if("object"!==(0,A.A)(n)||!n||"animationName"===t&&n._keyframe||tr(n)){function h(e,t){var r=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),n=t;ef[e]||"number"!=typeof n||0===n||(n="".concat(n,"px")),"animationName"===e&&null!=t&&t._keyframe&&(b(t),n=t.getName(u)),m+="".concat(r,":").concat(n,";")}var p,v=null!=(p=null==n?void 0:n.value)?p:n;"object"===(0,A.A)(n)&&null!=n&&n[te]&&Array.isArray(v)?v.forEach(function(e){h(t,e)}):h(t,v)}else{var y=!1,w=t.trim(),x=!1;(i||l)&&u?w.startsWith("@")?y=!0:w="&"===w?tn("",u,d):tn(t,u,d):i&&!u&&("&"===w||""===w)&&(w="",x=!0);var E=e(n,r,{root:x,injectHash:y,parentSelectors:[].concat((0,a.A)(c),[w])}),_=(0,o.A)(E,2),S=_[0],$=_[1];g=(0,s.A)((0,s.A)({},g),$),m+="".concat(w).concat(S)}})}}),i?f&&(m&&(m="@layer ".concat(f.name," {").concat(m,"}")),f.dependencies&&(g["@layer ".concat(f.name)]=f.dependencies.map(function(e){return"@layer ".concat(e,", ").concat(f.name,";")}).join("\n"))):m="{".concat(m,"}"),[m,g]};function to(e,t){return l("".concat(e.join("%")).concat(t))}function ta(){return null}var ts="style";function tl(e,t){var r=e.token,n=e.path,l=e.hashId,f=e.layer,d=e.nonce,h=e.clientOnly,p=e.order,m=void 0===p?0:p,g=u.useContext(x),w=g.autoClear,A=(g.mock,g.defaultCache),E=g.hashPriority,_=g.container,S=g.ssrInline,$=g.transformers,k=g.linters,C=g.cache,O=g.layer,M=r._tokenKey,I=[M];O&&I.push("layer"),I.push.apply(I,(0,a.A)(n));var R=B,j=J(ts,I,function(){var e=I.join("|");if(e8(e)){var r=e9(e),i=(0,o.A)(r,2),a=i[0],s=i[1];if(a)return[a,M,s,{},h,m]}var c=ti(t(),{hashId:l,hashPriority:E,layer:O?f:void 0,path:n.join("-"),transformers:$,linters:k}),u=(0,o.A)(c,2),d=u[0],p=u[1],g=tt(d),b=to(I,g);return[g,M,b,p,h,m]},function(e,t){var r=(0,o.A)(e,3)[2];(t||w)&&B&&(0,c.m6)(r,{mark:v,attachTo:_})},function(e){var t=(0,o.A)(e,4),r=t[0],n=(t[1],t[2]),i=t[3];if(R&&r!==e3){var a={mark:v,prepend:!O&&"queue",attachTo:_,priority:m},l="function"==typeof d?d():d;l&&(a.csp={nonce:l});var u=[],f=[];Object.keys(i).forEach(function(e){e.startsWith("@layer")?u.push(e):f.push(e)}),u.forEach(function(e){(0,c.BD)(tt(i[e]),"_layer-".concat(e),(0,s.A)((0,s.A)({},a),{},{prepend:!0}))});var h=(0,c.BD)(r,n,a);h[y]=C.instanceId,h.setAttribute(b,M),f.forEach(function(e){(0,c.BD)(tt(i[e]),"_effect-".concat(e),a)})}}),T=(0,o.A)(j,3),N=T[0],P=T[1],z=T[2];return function(e){var t;return t=S&&!R&&A?u.createElement("style",(0,eu.A)({},(0,i.A)((0,i.A)({},b,P),v,z),{dangerouslySetInnerHTML:{__html:N}})):u.createElement(ta,null),u.createElement(u.Fragment,null,t,e)}}var tc=function(e,t,r){var n=(0,o.A)(e,6),i=n[0],a=n[1],s=n[2],l=n[3],c=n[4],u=n[5],f=(r||{}).plain;if(c)return null;var d=i,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return d=L(i,a,s,h,f),l&&Object.keys(l).forEach(function(e){if(!t[e]){t[e]=!0;var r=L(tt(l[e]),a,"_effect-".concat(e),h,f);e.startsWith("@layer")?d=r+d:d+=r}}),[u,s,d]},tu="cssVar",tf=function(e,t,r){var n=(0,o.A)(e,4),i=n[1],a=n[2],s=n[3],l=(r||{}).plain;if(!i)return null;var c=-999,u=L(i,s,a,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)},l);return[c,a,u]};let td=function(e,t){var r=e.key,n=e.prefix,i=e.unitless,s=e.ignore,l=e.token,f=e.scope,d=void 0===f?"":f,h=(0,u.useContext)(x),p=h.cache.instanceId,m=h.container,g=l._tokenKey,w=[].concat((0,a.A)(e.path),[r,d,g]);return J(tu,w,function(){var e=H(t(),r,{prefix:n,unitless:i,ignore:s,scope:d}),a=(0,o.A)(e,2),l=a[0],c=a[1],u=to(w,c);return[l,c,u,r]},function(e){var t=(0,o.A)(e,3)[2];B&&(0,c.m6)(t,{mark:v,attachTo:m})},function(e){var t=(0,o.A)(e,3),n=t[1],i=t[2];if(n){var a=(0,c.BD)(n,i,{mark:v,prepend:"queue",attachTo:m,priority:-999});a[y]=p,a.setAttribute(b,r)}})};(0,i.A)((0,i.A)((0,i.A)({},ts,tc),es,ec),tu,tf);let th=function(){function e(t,r){(0,d.A)(this,e),(0,i.A)(this,"name",void 0),(0,i.A)(this,"style",void 0),(0,i.A)(this,"_keyframe",!0),this.name=t,this.style=r}return(0,h.A)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function tp(e){return e.notSplit=!0,e}tp(["borderTop","borderBottom"]),tp(["borderTop"]),tp(["borderBottom"]),tp(["borderLeft","borderRight"]),tp(["borderLeft"]),tp(["borderRight"])},98494(e,t,r){"use strict";r.d(t,{Y:()=>l});var n=r(19841);let i=Math.round;function o(e,t){let r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)n[e]=t(n[e]||0,r[e]||"",e);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}let a=(e,t,r)=>0===r?e:e/100;function s(e,t){let r=t||255;return e>r?r:e<0?0:e}class l{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if((0,n.A)(this,"isValid",!0),(0,n.A)(this,"r",0),(0,n.A)(this,"g",0),(0,n.A)(this,"b",0),(0,n.A)(this,"a",1),(0,n.A)(this,"_h",void 0),(0,n.A)(this,"_s",void 0),(0,n.A)(this,"_l",void 0),(0,n.A)(this,"_v",void 0),(0,n.A)(this,"_max",void 0),(0,n.A)(this,"_min",void 0),(0,n.A)(this,"_brightness",void 0),e)if("string"==typeof e){const t=e.trim();function r(e){return t.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(t)?this.fromHexString(t):r("rgb")?this.fromRgbString(t):r("hsl")?this.fromHslString(t):(r("hsv")||r("hsb"))&&this.fromHsvString(t)}else if(e instanceof l)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=s(e.r),this.g=s(e.g),this.b=s(e.b),this.a="number"==typeof e.a?s(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else if(t("hsv"))this.fromHsv(e);else throw Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e))}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){let t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){let t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return .2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){let e=this.getMax()-this.getMin();0===e?this._h=0:this._h=i(60*(this.r===this.getMax()?(this.g-this.b)/e+6*(this.g<this.b):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(void 0===this._s){let e=this.getMax()-this.getMin();0===e?this._s=0:this._s=e/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){let t=this.getHue(),r=this.getSaturation(),n=this.getLightness()-e/100;return n<0&&(n=0),this._c({h:t,s:r,l:n,a:this.a})}lighten(e=10){let t=this.getHue(),r=this.getSaturation(),n=this.getLightness()+e/100;return n>1&&(n=1),this._c({h:t,s:r,l:n,a:this.a})}mix(e,t=50){let r=this._c(e),n=t/100,o=e=>(r[e]-this[e])*n+this[e],a={r:i(o("r")),g:i(o("g")),b:i(o("b")),a:i(100*o("a"))/100};return this._c(a)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){let t=this._c(e),r=this.a+t.a*(1-this.a),n=e=>i((this[e]*this.a+t[e]*t.a*(1-this.a))/r);return this._c({r:n("r"),g:n("g"),b:n("b"),a:r})}isDark(){return 128>this.getBrightness()}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#",t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;let r=(this.g||0).toString(16);e+=2===r.length?r:"0"+r;let n=(this.b||0).toString(16);if(e+=2===n.length?n:"0"+n,"number"==typeof this.a&&this.a>=0&&this.a<1){let t=i(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){let e=this.getHue(),t=i(100*this.getSaturation()),r=i(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${r}%,${this.a})`:`hsl(${e},${t}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,r){let n=this.clone();return n[e]=s(t,r),n}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){let t=e.replace("#","");function r(e,r){return parseInt(t[e]+t[r||e],16)}t.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=t[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=t[6]?r(6,7)/255:1)}fromHsl({h:e,s:t,l:r,a:n}){if(this._h=e%360,this._s=t,this._l=r,this.a="number"==typeof n?n:1,t<=0){let e=i(255*r);this.r=e,this.g=e,this.b=e}let o=0,a=0,s=0,l=e/60,c=(1-Math.abs(2*r-1))*t,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(o=c,a=u):l>=1&&l<2?(o=u,a=c):l>=2&&l<3?(a=c,s=u):l>=3&&l<4?(a=u,s=c):l>=4&&l<5?(o=u,s=c):l>=5&&l<6&&(o=c,s=u);let f=r-c/2;this.r=i((o+f)*255),this.g=i((a+f)*255),this.b=i((s+f)*255)}fromHsv({h:e,s:t,v:r,a:n}){this._h=e%360,this._s=t,this._v=r,this.a="number"==typeof n?n:1;let o=i(255*r);if(this.r=o,this.g=o,this.b=o,t<=0)return;let a=e/60,s=Math.floor(a),l=a-s,c=i(r*(1-t)*255),u=i(r*(1-t*l)*255),f=i(r*(1-t*(1-l))*255);switch(s){case 0:this.g=f,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=f;break;case 3:this.r=c,this.g=u;break;case 4:this.r=f,this.g=c;break;default:this.g=c,this.b=u}}fromHsvString(e){let t=o(e,a);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){let t=o(e,a);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){let t=o(e,(e,t)=>t.includes("%")?i(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}},52372(e,t,r){"use strict";r.d(t,{A:()=>_});var n=r(76878),i=r(70486),o=r(19841),a=r(56284),s=r(22155),l=r(30395),c=r.n(l),u=r(57660),f=r(84994),d=r(39317),h=r(51037),p=["icon","className","onClick","style","primaryColor","secondaryColor"],m={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function g(e){var t=e.primaryColor,r=e.secondaryColor;m.primaryColor=t,m.secondaryColor=r||(0,h.Em)(t),m.calculated=!!r}function b(){return(0,d.A)({},m)}var v=function(e){var t=e.icon,r=e.className,n=e.onClick,i=e.style,o=e.primaryColor,l=e.secondaryColor,c=(0,a.A)(e,p),u=s.useRef(),f=m;if(o&&(f={primaryColor:o,secondaryColor:l||(0,h.Em)(o)}),(0,h.lf)(u),(0,h.$e)((0,h.P3)(t),"icon should be icon definiton, but got ".concat(t)),!(0,h.P3)(t))return null;var g=t;return g&&"function"==typeof g.icon&&(g=(0,d.A)((0,d.A)({},g),{},{icon:g.icon(f.primaryColor,f.secondaryColor)})),(0,h.cM)(g.icon,"svg-".concat(g.name),(0,d.A)((0,d.A)({className:r,onClick:n,style:i,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};v.displayName="IconReact",v.getTwoToneColors=b,v.setTwoToneColors=g;let y=v;function w(e){var t=(0,h.al)(e),r=(0,i.A)(t,2),n=r[0],o=r[1];return y.setTwoToneColors({primaryColor:n,secondaryColor:o})}function x(){var e=y.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var A=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];w(u.z1.primary);var E=s.forwardRef(function(e,t){var r=e.className,l=e.icon,u=e.spin,d=e.rotate,p=e.tabIndex,m=e.onClick,g=e.twoToneColor,b=(0,a.A)(e,A),v=s.useContext(f.A),w=v.prefixCls,x=void 0===w?"anticon":w,E=v.rootClassName,_=c()(E,x,(0,o.A)((0,o.A)({},"".concat(x,"-").concat(l.name),!!l.name),"".concat(x,"-spin"),!!u||"loading"===l.name),r),S=p;void 0===S&&m&&(S=-1);var $=d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0,k=(0,h.al)(g),C=(0,i.A)(k,2),O=C[0],M=C[1];return s.createElement("span",(0,n.A)({role:"img","aria-label":l.name},b,{ref:t,tabIndex:S,onClick:m,className:_}),s.createElement(y,{icon:l,primaryColor:O,secondaryColor:M,style:$}))});E.displayName="AntdIcon",E.getTwoToneColor=x,E.setTwoToneColor=w;let _=E},84994(e,t,r){"use strict";r.d(t,{A:()=>n});let n=(0,r(22155).createContext)({})},11728(e,t,r){"use strict";r.d(t,{A:()=>m});var n=r(76878),i=r(39317),o=r(19841),a=r(56284),s=r(22155),l=r(30395),c=r.n(l),u=r(75252),f=r(84994),d=r(51037),h=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],p=s.forwardRef(function(e,t){var r=e.className,l=e.component,p=e.viewBox,m=e.spin,g=e.rotate,b=e.tabIndex,v=e.onClick,y=e.children,w=(0,a.A)(e,h),x=s.useRef(),A=(0,u.xK)(x,t);(0,d.$e)(!!(l||y),"Should have `component` prop or `children`."),(0,d.lf)(x);var E=s.useContext(f.A),_=E.prefixCls,S=void 0===_?"anticon":_,$=E.rootClassName,k=c()($,S,(0,o.A)({},"".concat(S,"-spin"),!!m&&!!l),r),C=c()((0,o.A)({},"".concat(S,"-spin"),!!m)),O=g?{msTransform:"rotate(".concat(g,"deg)"),transform:"rotate(".concat(g,"deg)")}:void 0,M=(0,i.A)((0,i.A)({},d.yf),{},{className:C,style:O,viewBox:p});p||delete M.viewBox;var I=function(){return l?s.createElement(l,M,y):y?((0,d.$e)(!!p||1===s.Children.count(y)&&s.isValidElement(y)&&"use"===s.Children.only(y).type,"Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),s.createElement("svg",(0,n.A)({},M,{viewBox:p}),y)):null},R=b;return void 0===R&&v&&(R=-1),s.createElement("span",(0,n.A)({role:"img"},w,{ref:A,tabIndex:R,onClick:v,className:k}),I())});p.displayName="AntdIcon";let m=p},51303(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},3915(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},24671(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},43253(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},35261(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},85387(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},3449(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},89625(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},42254(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},32416(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},6868(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M326 664H104c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h174v176c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V696c0-17.7-14.3-32-32-32zm16-576h-48c-8.8 0-16 7.2-16 16v176H104c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h222c17.7 0 32-14.3 32-32V104c0-8.8-7.2-16-16-16zm578 576H698c-17.7 0-32 14.3-32 32v224c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V744h174c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16zm0-384H746V104c0-8.8-7.2-16-16-16h-48c-8.8 0-16 7.2-16 16v224c0 17.7 14.3 32 32 32h222c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16z"}}]},name:"compress",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},3762(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},41353(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},42964(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},61636(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M342 88H120c-17.7 0-32 14.3-32 32v224c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V168h174c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16zm578 576h-48c-8.8 0-16 7.2-16 16v176H682c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h222c17.7 0 32-14.3 32-32V680c0-8.8-7.2-16-16-16zM342 856H168V680c0-8.8-7.2-16-16-16h-48c-8.8 0-16 7.2-16 16v224c0 17.7 14.3 32 32 32h222c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16zM904 88H682c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h174v176c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V120c0-17.7-14.3-32-32-32z"}}]},name:"expand",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},2398(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},39502(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M920 416H616c-4.4 0-8 3.6-8 8v112c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-56h60v320h-46c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h164c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8h-46V480h60v56c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V424c0-4.4-3.6-8-8-8zM656 296V168c0-4.4-3.6-8-8-8H104c-4.4 0-8 3.6-8 8v128c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-64h168v560h-92c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-92V232h168v64c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8z"}}]},name:"font-size",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},66308(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},91664(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},49688(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},93512(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},60004(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},83698(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"}}]},name:"logout",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},78118(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},48048(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M304 176h80v672h-80zm408 0h-64c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8z"}}]},name:"pause",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},25062(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},89275(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},32983(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},1836(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},76399(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"}}]},name:"send",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},55451(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},62127(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211L378.2 732.5z"}}]},name:"thunderbolt",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},16262(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},64283(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},51037(e,t,r){"use strict";r.d(t,{$e:()=>d,Em:()=>g,P3:()=>h,al:()=>b,cM:()=>m,lf:()=>w,yf:()=>v});var n=r(39317),i=r(24366),o=r(57660),a=r(1056),s=r(95612),l=r(47773),c=r(22155),u=r(84994);function f(e){return e.replace(/-(.)/g,function(e,t){return t.toUpperCase()})}function d(e,t){(0,l.Ay)(e,"[@ant-design/icons] ".concat(t))}function h(e){return"object"===(0,i.A)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,i.A)(e.icon)||"function"==typeof e.icon)}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];return"class"===r?(t.className=n,delete t.class):(delete t[r],t[f(r)]=n),t},{})}function m(e,t,r){return r?c.createElement(e.tag,(0,n.A)((0,n.A)({key:t},p(e.attrs)),r),(e.children||[]).map(function(r,n){return m(r,"".concat(t,"-").concat(e.tag,"-").concat(n))})):c.createElement(e.tag,(0,n.A)({key:t},p(e.attrs)),(e.children||[]).map(function(r,n){return m(r,"".concat(t,"-").concat(e.tag,"-").concat(n))}))}function g(e){return(0,o.cM)(e)[0]}function b(e){return e?Array.isArray(e)?e:[e]:[]}var v={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},y="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",w=function(e){var t=(0,c.useContext)(u.A),r=t.csp,n=t.prefixCls,i=t.layer,o=y;n&&(o=o.replace(/anticon/g,n)),i&&(o="@layer ".concat(i," {\n").concat(o,"\n}")),(0,c.useEffect)(function(){var t=e.current,n=(0,s.j)(t);(0,a.BD)(o,"@ant-design-icons",{prepend:!i,csp:r,attachTo:n})},[])}},13480(e,t,r){"use strict";r.d(t,{Q1:()=>m}),r(22155);var n=r(11947),i=r(96591),o=r(93619),a=r(51232),s=r(39317),l=r(56284),c=r(24366),u=r(98494),f=["b"],d=["v"],h=function(e){return Math.round(Number(e||0))},p=function(e){if(e instanceof u.Y)return e;if(e&&"object"===(0,c.A)(e)&&"h"in e&&"b"in e){var t=e,r=t.b,n=(0,l.A)(t,f);return(0,s.A)((0,s.A)({},n),{},{v:r})}return"string"==typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e},m=function(e){(0,o.A)(r,e);var t=(0,a.A)(r);function r(e){return(0,n.A)(this,r),t.call(this,p(e))}return(0,i.A)(r,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=h(100*e.s),r=h(100*e.b),n=h(e.h),i=e.a,o="hsb(".concat(n,", ").concat(t,"%, ").concat(r,"%)"),a="hsba(".concat(n,", ").concat(t,"%, ").concat(r,"%, ").concat(i.toFixed(2*(0!==i)),")");return 1===i?o:a}},{key:"toHsb",value:function(){var e=this.toHsv(),t=e.v,r=(0,l.A)(e,d);return(0,s.A)((0,s.A)({},r),{},{b:t,a:this.a})}}]),r}(u.Y);(function(e){e instanceof m||new m(e)})("#1677ff"),r(30395),r(74757)},76395(e,t,r){"use strict";r.d(t,{A:()=>E});var n=r(70486),i=r(22155),o=r(70316),a=r(8929);r(47773);var s=r(75252);let l=i.createContext(null);var c=r(78944),u=r(94030),f=[];function d(e,t){var r=i.useState(function(){return(0,a.A)()?document.createElement("div"):null}),o=(0,n.A)(r,1)[0],s=i.useRef(!1),d=i.useContext(l),h=i.useState(f),p=(0,n.A)(h,2),m=p[0],g=p[1],b=d||(s.current?void 0:function(e){g(function(t){return[e].concat((0,c.A)(t))})});function v(){o.parentElement||document.body.appendChild(o),s.current=!0}function y(){var e;null==(e=o.parentElement)||e.removeChild(o),s.current=!1}return(0,u.A)(function(){return e?d?d(v):v():y(),y},[e]),(0,u.A)(function(){m.length&&(m.forEach(function(e){return e()}),g(f))},[m]),[o,b]}var h=r(1056);function p(e){var t,r,n="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),i=document.createElement("div");i.id=n;var o=i.style;if(o.position="absolute",o.left="0",o.top="0",o.width="100px",o.height="100px",o.overflow="scroll",e){var a=getComputedStyle(e);o.scrollbarColor=a.scrollbarColor,o.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",f=c?"height: ".concat(s.height,";"):"";(0,h.BD)("\n#".concat(n,"::-webkit-scrollbar {\n").concat(u,"\n").concat(f,"\n}"),n)}catch(e){console.error(e),t=l,r=c}}document.body.appendChild(i);var d=e&&t&&!isNaN(t)?t:i.offsetWidth-i.clientWidth,p=e&&r&&!isNaN(r)?r:i.offsetHeight-i.clientHeight;return document.body.removeChild(i),(0,h.m6)(n),{width:d,height:p}}function m(e){return!("u"<typeof document)&&e&&e instanceof Element?p(e):{width:0,height:0}}function g(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var b="rc-util-locker-".concat(Date.now()),v=0;function y(e){var t=!!e,r=i.useState(function(){return v+=1,"".concat(b,"_").concat(v)}),o=(0,n.A)(r,1)[0];(0,u.A)(function(){if(t){var e=m(document.body).width,r=g();(0,h.BD)("\nhtml body {\n overflow-y: hidden;\n ".concat(r?"width: calc(100% - ".concat(e,"px);"):"","\n}"),o)}else(0,h.m6)(o);return function(){(0,h.m6)(o)}},[t,o])}var w=!1;function x(e){return"boolean"==typeof e&&(w=e),w}var A=function(e){return!1!==e&&((0,a.A)()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)};let E=i.forwardRef(function(e,t){var r=e.open,c=e.autoLock,u=e.getContainer,f=e.debug,h=e.autoDestroy,p=void 0===h||h,m=e.children,g=i.useState(r),b=(0,n.A)(g,2),v=b[0],w=b[1],E=v||r;i.useEffect(function(){(p||r)&&w(r)},[r,p]);var _=i.useState(function(){return A(u)}),S=(0,n.A)(_,2),$=S[0],k=S[1];i.useEffect(function(){var e=A(u);k(null!=e?e:null)});var C=d(E&&!$,f),O=(0,n.A)(C,2),M=O[0],I=O[1],R=null!=$?$:M;y(c&&r&&(0,a.A)()&&(R===M||R===document.body));var j=null;m&&(0,s.f3)(m)&&t&&(j=m.ref);var T=(0,s.xK)(j,t);if(!E||!(0,a.A)()||void 0===$)return null;var N=!1===R||x(),P=m;return t&&(P=i.cloneElement(m,{ref:T})),i.createElement(l.Provider,{value:I},N?P:(0,o.createPortal)(P,R))})},78387(e,t,r){"use strict";r.d(t,{A:()=>K});var n=r(39317),i=r(70486),o=r(56284),a=r(76395),s=r(30395),l=r.n(s),c=r(44965),u=r(73003),f=r(95612),d=r(44649),h=r(65556),p=r(94030),m=r(22075),g=r(22155),b=r(76878),v=r(8890),y=r(75252);function w(e){var t=e.prefixCls,r=e.align,n=e.arrow,i=e.arrowPos,o=n||{},a=o.className,s=o.content,c=i.x,u=void 0===c?0:c,f=i.y,d=void 0===f?0:f,h=g.useRef();if(!r||!r.points)return null;var p={position:"absolute"};if(!1!==r.autoArrow){var m=r.points[0],b=r.points[1],v=m[0],y=m[1],w=b[0],x=b[1];v!==w&&["t","b"].includes(v)?"t"===v?p.top=0:p.bottom=0:p.top=d,y!==x&&["l","r"].includes(y)?"l"===y?p.left=0:p.right=0:p.left=u}return g.createElement("div",{ref:h,className:l()("".concat(t,"-arrow"),a),style:p},s)}function x(e){var t=e.prefixCls,r=e.open,n=e.zIndex,i=e.mask,o=e.motion;return i?g.createElement(v.Ay,(0,b.A)({},o,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(e){var r=e.className;return g.createElement("div",{style:{zIndex:n},className:l()("".concat(t,"-mask"),r)})}):null}let A=g.memo(function(e){return e.children},function(e,t){return t.cache}),E=g.forwardRef(function(e,t){var r=e.popup,o=e.className,a=e.prefixCls,s=e.style,u=e.target,f=e.onVisibleChanged,d=e.open,h=e.keepDom,m=e.fresh,E=e.onClick,_=e.mask,S=e.arrow,$=e.arrowPos,k=e.align,C=e.motion,O=e.maskMotion,M=e.forceRender,I=e.getPopupContainer,R=e.autoDestroy,j=e.portal,T=e.zIndex,N=e.onMouseEnter,P=e.onMouseLeave,B=e.onPointerEnter,z=e.onPointerDownCapture,L=e.ready,D=e.offsetX,F=e.offsetY,H=e.offsetR,U=e.offsetB,q=e.onAlign,W=e.onPrepare,V=e.stretch,K=e.targetWidth,G=e.targetHeight,X="function"==typeof r?r():r,Z=d||h,Y=(null==I?void 0:I.length)>0,J=g.useState(!I||!Y),Q=(0,i.A)(J,2),ee=Q[0],et=Q[1];if((0,p.A)(function(){!ee&&Y&&u&&et(!0)},[ee,Y,u]),!ee)return null;var er="auto",en={left:"-1000vw",top:"-1000vh",right:er,bottom:er};if(L||!d){var ei,eo=k.points,ea=k.dynamicInset||(null==(ei=k._experimental)?void 0:ei.dynamicInset),es=ea&&"r"===eo[0][1],el=ea&&"b"===eo[0][0];es?(en.right=H,en.left=er):(en.left=D,en.right=er),el?(en.bottom=U,en.top=er):(en.top=F,en.bottom=er)}var ec={};return V&&(V.includes("height")&&G?ec.height=G:V.includes("minHeight")&&G&&(ec.minHeight=G),V.includes("width")&&K?ec.width=K:V.includes("minWidth")&&K&&(ec.minWidth=K)),d||(ec.pointerEvents="none"),g.createElement(j,{open:M||Z,getContainer:I&&function(){return I(u)},autoDestroy:R},g.createElement(x,{prefixCls:a,open:d,zIndex:T,mask:_,motion:O}),g.createElement(c.A,{onResize:q,disabled:!d},function(e){return g.createElement(v.Ay,(0,b.A)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:M,leavedClassName:"".concat(a,"-hidden")},C,{onAppearPrepare:W,onEnterPrepare:W,visible:d,onVisibleChanged:function(e){var t;null==C||null==(t=C.onVisibleChanged)||t.call(C,e),f(e)}}),function(r,i){var c=r.className,u=r.style,f=l()(a,c,o);return g.createElement("div",{ref:(0,y.K4)(e,t,i),className:f,style:(0,n.A)((0,n.A)((0,n.A)((0,n.A)({"--arrow-x":"".concat($.x||0,"px"),"--arrow-y":"".concat($.y||0,"px")},en),ec),u),{},{boxSizing:"border-box",zIndex:T},s),onMouseEnter:N,onMouseLeave:P,onPointerEnter:B,onClick:E,onPointerDownCapture:z},S&&g.createElement(w,{prefixCls:a,arrow:S,arrowPos:$,align:k}),g.createElement(A,{cache:!d&&!m},X))})}))}),_=g.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,i=(0,y.f3)(r),o=g.useCallback(function(e){(0,y.Xf)(t,n?n(e):e)},[n]),a=(0,y.xK)(o,(0,y.A9)(r));return i?g.cloneElement(r,{ref:a}):r}),S=g.createContext(null);function $(e){return e?Array.isArray(e)?e:[e]:[]}function k(e,t,r,n){return g.useMemo(function(){var i=$(null!=r?r:t),o=$(null!=n?n:t),a=new Set(i),s=new Set(o);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,r,n])}var C=r(65460);function O(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function M(e,t,r,n){for(var i=r.points,o=Object.keys(e),a=0;a<o.length;a+=1){var s,l=o[a];if(O(null==(s=e[l])?void 0:s.points,i,n))return"".concat(t,"-placement-").concat(l)}return""}function I(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function R(e){return e.ownerDocument.defaultView}function j(e){for(var t=[],r=null==e?void 0:e.parentElement,n=["hidden","scroll","clip","auto"];r;){var i=R(r).getComputedStyle(r);[i.overflowX,i.overflowY,i.overflow].some(function(e){return n.includes(e)})&&t.push(r),r=r.parentElement}return t}function T(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function N(e){return T(parseFloat(e),0)}function P(e,t){var r=(0,n.A)({},e);return(t||[]).forEach(function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=R(e).getComputedStyle(e),n=t.overflow,i=t.overflowClipMargin,o=t.borderTopWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,l=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,f=e.clientHeight,d=e.offsetWidth,h=e.clientWidth,p=N(o),m=N(a),g=N(s),b=N(l),v=T(Math.round(c.width/d*1e3)/1e3),y=T(Math.round(c.height/u*1e3)/1e3),w=(d-h-g-b)*v,x=(u-f-p-m)*y,A=p*y,E=m*y,_=g*v,S=b*v,$=0,k=0;if("clip"===n){var C=N(i);$=C*v,k=C*y}var O=c.x+_-$,M=c.y+A-k,I=O+c.width+2*$-_-S-w,j=M+c.height+2*k-A-E-x;r.left=Math.max(r.left,O),r.top=Math.max(r.top,M),r.right=Math.min(r.right,I),r.bottom=Math.min(r.bottom,j)}}),r}function B(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r="".concat(t),n=r.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(r)}function z(e,t){var r=t||[],n=(0,i.A)(r,2),o=n[0],a=n[1];return[B(e.width,o),B(e.height,a)]}function L(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function D(e,t){var r,n,i=t[0],o=t[1];return n="t"===i?e.y:"b"===i?e.y+e.height:e.y+e.height/2,{x:r="l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function F(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(e,n){return n===t?r[e]||"c":e}).join("")}function H(e,t,r,o,a,s,l){var c=g.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[o]||{}}),f=(0,i.A)(c,2),h=f[0],m=f[1],b=g.useRef(0),v=g.useMemo(function(){return t?j(t):[]},[t]),y=g.useRef({}),w=function(){y.current={}};e||w();var x=(0,d.A)(function(){if(t&&r&&e){var c,f,d,h,p=t,g=p.ownerDocument,b=R(p),w=b.getComputedStyle(p).position,x=p.style.left,A=p.style.top,E=p.style.right,_=p.style.bottom,S=p.style.overflow,$=(0,n.A)((0,n.A)({},a[o]),s),k=g.createElement("div");if(null==(O=p.parentElement)||O.appendChild(k),k.style.left="".concat(p.offsetLeft,"px"),k.style.top="".concat(p.offsetTop,"px"),k.style.position=w,k.style.height="".concat(p.offsetHeight,"px"),k.style.width="".concat(p.offsetWidth,"px"),p.style.left="0",p.style.top="0",p.style.right="auto",p.style.bottom="auto",p.style.overflow="hidden",Array.isArray(r))N={x:r[0],y:r[1],width:0,height:0};else{var O,M,I,j,N,B,H,U=r.getBoundingClientRect();U.x=null!=(B=U.x)?B:U.left,U.y=null!=(H=U.y)?H:U.top,N={x:U.x,y:U.y,width:U.width,height:U.height}}var q=p.getBoundingClientRect(),W=b.getComputedStyle(p),V=W.height,K=W.width;q.x=null!=(M=q.x)?M:q.left,q.y=null!=(I=q.y)?I:q.top;var G=g.documentElement,X=G.clientWidth,Z=G.clientHeight,Y=G.scrollWidth,J=G.scrollHeight,Q=G.scrollTop,ee=G.scrollLeft,et=q.height,er=q.width,en=N.height,ei=N.width,eo={left:0,top:0,right:X,bottom:Z},ea={left:-ee,top:-Q,right:Y-ee,bottom:J-Q},es=$.htmlRegion,el="visible",ec="visibleFirst";"scroll"!==es&&es!==ec&&(es=el);var eu=es===ec,ef=P(ea,v),ed=P(eo,v),eh=es===el?ed:ef,ep=eu?ed:eh;p.style.left="auto",p.style.top="auto",p.style.right="0",p.style.bottom="0";var em=p.getBoundingClientRect();p.style.left=x,p.style.top=A,p.style.right=E,p.style.bottom=_,p.style.overflow=S,null==(j=p.parentElement)||j.removeChild(k);var eg=T(Math.round(er/parseFloat(K)*1e3)/1e3),eb=T(Math.round(et/parseFloat(V)*1e3)/1e3);if(!(0===eg||0===eb||(0,u.fk)(r)&&!(0,C.A)(r))){var ev=$.offset,ey=$.targetOffset,ew=z(q,ev),ex=(0,i.A)(ew,2),eA=ex[0],eE=ex[1],e_=z(N,ey),eS=(0,i.A)(e_,2),e$=eS[0],ek=eS[1];N.x-=e$,N.y-=ek;var eC=$.points||[],eO=(0,i.A)(eC,2),eM=eO[0],eI=eO[1],eR=L(eI),ej=L(eM),eT=D(N,eR),eN=D(q,ej),eP=(0,n.A)({},$),eB=eT.x-eN.x+eA,ez=eT.y-eN.y+eE,eL=t_(eB,ez),eD=t_(eB,ez,ed),eF=D(N,["t","l"]),eH=D(q,["t","l"]),eU=D(N,["b","r"]),eq=D(q,["b","r"]),eW=$.overflow||{},eV=eW.adjustX,eK=eW.adjustY,eG=eW.shiftX,eX=eW.shiftY,eZ=function(e){return"boolean"==typeof e?e:e>=0};tS();var eY=eZ(eK),eJ=ej[0]===eR[0];if(eY&&"t"===ej[0]&&(f>ep.bottom||y.current.bt)){var eQ=ez;eJ?eQ-=et-en:eQ=eF.y-eq.y-eE;var e0=t_(eB,eQ),e1=t_(eB,eQ,ed);e0>eL||e0===eL&&(!eu||e1>=eD)?(y.current.bt=!0,ez=eQ,eE=-eE,eP.points=[F(ej,0),F(eR,0)]):y.current.bt=!1}if(eY&&"b"===ej[0]&&(c<ep.top||y.current.tb)){var e2=ez;eJ?e2+=et-en:e2=eU.y-eH.y-eE;var e6=t_(eB,e2),e3=t_(eB,e2,ed);e6>eL||e6===eL&&(!eu||e3>=eD)?(y.current.tb=!0,ez=e2,eE=-eE,eP.points=[F(ej,0),F(eR,0)]):y.current.tb=!1}var e5=eZ(eV),e4=ej[1]===eR[1];if(e5&&"l"===ej[1]&&(h>ep.right||y.current.rl)){var e8=eB;e4?e8-=er-ei:e8=eF.x-eq.x-eA;var e9=t_(e8,ez),e7=t_(e8,ez,ed);e9>eL||e9===eL&&(!eu||e7>=eD)?(y.current.rl=!0,eB=e8,eA=-eA,eP.points=[F(ej,1),F(eR,1)]):y.current.rl=!1}if(e5&&"r"===ej[1]&&(d<ep.left||y.current.lr)){var te=eB;e4?te+=er-ei:te=eU.x-eH.x-eA;var tt=t_(te,ez),tr=t_(te,ez,ed);tt>eL||tt===eL&&(!eu||tr>=eD)?(y.current.lr=!0,eB=te,eA=-eA,eP.points=[F(ej,1),F(eR,1)]):y.current.lr=!1}tS();var tn=!0===eG?0:eG;"number"==typeof tn&&(d<ed.left&&(eB-=d-ed.left-eA,N.x+ei<ed.left+tn&&(eB+=N.x-ed.left+ei-tn)),h>ed.right&&(eB-=h-ed.right-eA,N.x>ed.right-tn&&(eB+=N.x-ed.right+tn)));var ti=!0===eX?0:eX;"number"==typeof ti&&(c<ed.top&&(ez-=c-ed.top-eE,N.y+en<ed.top+ti&&(ez+=N.y-ed.top+en-ti)),f>ed.bottom&&(ez-=f-ed.bottom-eE,N.y>ed.bottom-ti&&(ez+=N.y-ed.bottom+ti)));var to=q.x+eB,ta=to+er,ts=q.y+ez,tl=ts+et,tc=N.x,tu=tc+ei,tf=N.y,td=tf+en,th=Math.max(to,tc),tp=Math.min(ta,tu),tm=(th+tp)/2,tg=tm-to,tb=Math.max(ts,tf),tv=Math.min(tl,td),ty=(tb+tv)/2,tw=ty-ts;null==l||l(t,eP);var tx=em.right-q.x-(eB+q.width),tA=em.bottom-q.y-(ez+q.height);1===eg&&(eB=Math.floor(eB),tx=Math.floor(tx)),1===eb&&(ez=Math.floor(ez),tA=Math.floor(tA));var tE={ready:!0,offsetX:eB/eg,offsetY:ez/eb,offsetR:tx/eg,offsetB:tA/eb,arrowX:tg/eg,arrowY:tw/eb,scaleX:eg,scaleY:eb,align:eP};m(tE)}function t_(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:eh,n=q.x+e,i=q.y+t,o=n+er,a=i+et,s=Math.max(n,r.left),l=Math.max(i,r.top);return Math.max(0,(Math.min(o,r.right)-s)*(Math.min(a,r.bottom)-l))}function tS(){f=(c=q.y+ez)+et,h=(d=q.x+eB)+er}}}),A=function(){b.current+=1;var e=b.current;Promise.resolve().then(function(){b.current===e&&x()})},E=function(){m(function(e){return(0,n.A)((0,n.A)({},e),{},{ready:!1})})};return(0,p.A)(E,[o]),(0,p.A)(function(){e||E()},[e]),[h.ready,h.offsetX,h.offsetY,h.offsetR,h.offsetB,h.arrowX,h.arrowY,h.scaleX,h.scaleY,h.align,A]}var U=r(78944);function q(e,t,r,n,i){(0,p.A)(function(){if(e&&t&&r){var o=r,a=j(t),s=j(o),l=R(o),c=new Set([l].concat((0,U.A)(a),(0,U.A)(s)));function u(){n(),i()}return c.forEach(function(e){e.addEventListener("scroll",u,{passive:!0})}),l.addEventListener("resize",u,{passive:!0}),n(),function(){c.forEach(function(e){e.removeEventListener("scroll",u),l.removeEventListener("resize",u)})}}},[e,t,r])}function W(e,t,r,n,i,o,a,s){var l=g.useRef(e);l.current=e;var c=g.useRef(!1);return g.useEffect(function(){if(t&&n&&(!i||o)){var e=function(){c.current=!1},u=function(e){var t;!l.current||a((null==(t=e.composedPath)||null==(t=t.call(e))?void 0:t[0])||e.target)||c.current||s(!1)},d=R(n);d.addEventListener("pointerdown",e,!0),d.addEventListener("mousedown",u,!0),d.addEventListener("contextmenu",u,!0);var h=(0,f.j)(r);return h&&(h.addEventListener("mousedown",u,!0),h.addEventListener("contextmenu",u,!0)),function(){d.removeEventListener("pointerdown",e,!0),d.removeEventListener("mousedown",u,!0),d.removeEventListener("contextmenu",u,!0),h&&(h.removeEventListener("mousedown",u,!0),h.removeEventListener("contextmenu",u,!0))}}},[t,r,n,i,o]),function(){c.current=!0}}r(47773);var V=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];let K=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.A;return g.forwardRef(function(t,r){var a,s,b=t.prefixCls,v=void 0===b?"rc-trigger-popup":b,y=t.children,w=t.action,x=void 0===w?"hover":w,A=t.showAction,$=t.hideAction,C=t.popupVisible,O=t.defaultPopupVisible,R=t.onPopupVisibleChange,j=t.afterPopupVisibleChange,T=t.mouseEnterDelay,N=t.mouseLeaveDelay,P=void 0===N?.1:N,B=t.focusDelay,z=t.blurDelay,L=t.mask,D=t.maskClosable,F=void 0===D||D,U=t.getPopupContainer,K=t.forceRender,G=t.autoDestroy,X=t.destroyPopupOnHide,Z=t.popup,Y=t.popupClassName,J=t.popupStyle,Q=t.popupPlacement,ee=t.builtinPlacements,et=void 0===ee?{}:ee,er=t.popupAlign,en=t.zIndex,ei=t.stretch,eo=t.getPopupClassNameFromAlign,ea=t.fresh,es=t.alignPoint,el=t.onPopupClick,ec=t.onPopupAlign,eu=t.arrow,ef=t.popupMotion,ed=t.maskMotion,eh=t.popupTransitionName,ep=t.popupAnimation,em=t.maskTransitionName,eg=t.maskAnimation,eb=t.className,ev=t.getTriggerDOMNode,ey=(0,o.A)(t,V),ew=G||X||!1,ex=g.useState(!1),eA=(0,i.A)(ex,2),eE=eA[0],e_=eA[1];(0,p.A)(function(){e_((0,m.A)())},[]);var eS=g.useRef({}),e$=g.useContext(S),ek=g.useMemo(function(){return{registerSubPopup:function(e,t){eS.current[e]=t,null==e$||e$.registerSubPopup(e,t)}}},[e$]),eC=(0,h.A)(),eO=g.useState(null),eM=(0,i.A)(eO,2),eI=eM[0],eR=eM[1],ej=g.useRef(null),eT=(0,d.A)(function(e){ej.current=e,(0,u.fk)(e)&&eI!==e&&eR(e),null==e$||e$.registerSubPopup(eC,e)}),eN=g.useState(null),eP=(0,i.A)(eN,2),eB=eP[0],ez=eP[1],eL=g.useRef(null),eD=(0,d.A)(function(e){(0,u.fk)(e)&&eB!==e&&(ez(e),eL.current=e)}),eF=g.Children.only(y),eH=(null==eF?void 0:eF.props)||{},eU={},eq=(0,d.A)(function(e){var t,r,n=eB;return(null==n?void 0:n.contains(e))||(null==(t=(0,f.j)(n))?void 0:t.host)===e||e===n||(null==eI?void 0:eI.contains(e))||(null==(r=(0,f.j)(eI))?void 0:r.host)===e||e===eI||Object.values(eS.current).some(function(t){return(null==t?void 0:t.contains(e))||e===t})}),eW=I(v,ef,ep,eh),eV=I(v,ed,eg,em),eK=g.useState(O||!1),eG=(0,i.A)(eK,2),eX=eG[0],eZ=eG[1],eY=null!=C?C:eX,eJ=(0,d.A)(function(e){void 0===C&&eZ(e)});(0,p.A)(function(){eZ(C||!1)},[C]);var eQ=g.useRef(eY);eQ.current=eY;var e0=g.useRef([]);e0.current=[];var e1=(0,d.A)(function(e){var t;eJ(e),(null!=(t=e0.current[e0.current.length-1])?t:eY)!==e&&(e0.current.push(e),null==R||R(e))}),e2=g.useRef(),e6=function(){clearTimeout(e2.current)},e3=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e6(),0===t?e1(e):e2.current=setTimeout(function(){e1(e)},1e3*t)};g.useEffect(function(){return e6},[]);var e5=g.useState(!1),e4=(0,i.A)(e5,2),e8=e4[0],e9=e4[1];(0,p.A)(function(e){(!e||eY)&&e9(!0)},[eY]);var e7=g.useState(null),te=(0,i.A)(e7,2),tt=te[0],tr=te[1],tn=g.useState(null),ti=(0,i.A)(tn,2),to=ti[0],ta=ti[1],ts=function(e){ta([e.clientX,e.clientY])},tl=H(eY,eI,es&&null!==to?to:eB,Q,et,er,ec),tc=(0,i.A)(tl,11),tu=tc[0],tf=tc[1],td=tc[2],th=tc[3],tp=tc[4],tm=tc[5],tg=tc[6],tb=tc[7],tv=tc[8],ty=tc[9],tw=tc[10],tx=k(eE,x,A,$),tA=(0,i.A)(tx,2),tE=tA[0],t_=tA[1],tS=tE.has("click"),t$=t_.has("click")||t_.has("contextMenu"),tk=(0,d.A)(function(){e8||tw()});q(eY,eB,eI,tk,function(){eQ.current&&es&&t$&&e3(!1)}),(0,p.A)(function(){tk()},[to,Q]),(0,p.A)(function(){eY&&!(null!=et&&et[Q])&&tk()},[JSON.stringify(er)]);var tC=g.useMemo(function(){var e=M(et,v,ty,es);return l()(e,null==eo?void 0:eo(ty))},[ty,eo,et,v,es]);g.useImperativeHandle(r,function(){return{nativeElement:eL.current,popupElement:ej.current,forceAlign:tk}});var tO=g.useState(0),tM=(0,i.A)(tO,2),tI=tM[0],tR=tM[1],tj=g.useState(0),tT=(0,i.A)(tj,2),tN=tT[0],tP=tT[1],tB=function(){if(ei&&eB){var e=eB.getBoundingClientRect();tR(e.width),tP(e.height)}},tz=function(){tB(),tk()},tL=function(e){e9(!1),tw(),null==j||j(e)},tD=function(){return new Promise(function(e){tB(),tr(function(){return e})})};function tF(e,t,r,n){eU[e]=function(i){var o;null==n||n(i),e3(t,r);for(var a=arguments.length,s=Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];null==(o=eH[e])||o.call.apply(o,[eH,i].concat(s))}}(0,p.A)(function(){tt&&(tw(),tt(),tr(null))},[tt]),(tS||t$)&&(eU.onClick=function(e){var t;eQ.current&&t$?e3(!1):!eQ.current&&tS&&(ts(e),e3(!0));for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];null==(t=eH.onClick)||t.call.apply(t,[eH,e].concat(n))});var tH=W(eY,t$,eB,eI,L,F,eq,e3),tU=tE.has("hover"),tq=t_.has("hover");tU&&(tF("onMouseEnter",!0,T,function(e){ts(e)}),tF("onPointerEnter",!0,T,function(e){ts(e)}),a=function(e){(eY||e8)&&null!=eI&&eI.contains(e.target)&&e3(!0,T)},es&&(eU.onMouseMove=function(e){var t;null==(t=eH.onMouseMove)||t.call(eH,e)})),tq&&(tF("onMouseLeave",!1,P),tF("onPointerLeave",!1,P),s=function(){e3(!1,P)}),tE.has("focus")&&tF("onFocus",!0,B),t_.has("focus")&&tF("onBlur",!1,z),tE.has("contextMenu")&&(eU.onContextMenu=function(e){var t;eQ.current&&t_.has("contextMenu")?e3(!1):(ts(e),e3(!0)),e.preventDefault();for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];null==(t=eH.onContextMenu)||t.call.apply(t,[eH,e].concat(n))}),eb&&(eU.className=l()(eH.className,eb));var tW=g.useRef(!1);tW.current||(tW.current=K||eY||e8);var tV=(0,n.A)((0,n.A)({},eH),eU),tK={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(function(e){ey[e]&&(tK[e]=function(){for(var t,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];null==(t=tV[e])||t.call.apply(t,[tV].concat(n)),ey[e].apply(ey,n)})});var tG=g.cloneElement(eF,(0,n.A)((0,n.A)({},tV),tK)),tX={x:tm,y:tg},tZ=eu?(0,n.A)({},!0!==eu?eu:{}):null;return g.createElement(g.Fragment,null,g.createElement(c.A,{disabled:!eY,ref:eD,onResize:tz},g.createElement(_,{getTriggerDOMNode:ev},tG)),tW.current&&g.createElement(S.Provider,{value:ek},g.createElement(E,{portal:e,ref:eT,prefixCls:v,popup:Z,className:l()(Y,tC),style:J,target:eB,onMouseEnter:a,onMouseLeave:s,onPointerEnter:a,zIndex:en,open:eY,keepDom:e8,fresh:ea,onClick:el,onPointerDownCapture:tH,mask:L,motion:eW,maskMotion:eV,onVisibleChanged:tL,onPrepare:tD,forceRender:K,autoDestroy:ew,getPopupContainer:U,align:ty,arrow:tZ,arrowPos:tX,ready:tu,offsetX:tf,offsetY:td,offsetR:th,offsetB:tp,onAlign:tk,stretch:ei,targetWidth:tI/tb,targetHeight:tN/tv})))})}(a.A)},643(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(22155),i=r(42767),o=r(47495);let a=e=>{let{space:t,form:r,children:a}=e;if(null==a)return null;let s=a;return r&&(s=n.createElement(i.XB,{override:!0,status:!0},s)),t&&(s=n.createElement(o.K6,null,s)),s}},37007(e,t,r){"use strict";r.d(t,{A:()=>l,U:()=>s});var n=r(22155),i=r(3604),o=r(64324),a=r(65289);function s(e){return t=>n.createElement(o.Ay,{theme:{token:{motion:!1,zIndexPopupBase:0}}},n.createElement(e,Object.assign({},t)))}let l=(e,t,r,o,l)=>s(s=>{let{prefixCls:c,style:u}=s,f=n.useRef(null),[d,h]=n.useState(0),[p,m]=n.useState(0),[g,b]=(0,i.A)(!1,{value:s.open}),{getPrefixCls:v}=n.useContext(a.QO),y=v(o||"select",c);n.useEffect(()=>{if(b(!0),"u">typeof ResizeObserver){let e=new ResizeObserver(e=>{let t=e[0].target;h(t.offsetHeight+8),m(t.offsetWidth)}),t=setInterval(()=>{var r;let n=l?`.${l(y)}`:`.${y}-dropdown`,i=null==(r=f.current)?void 0:r.querySelector(n);i&&(clearInterval(t),e.observe(i))},10);return()=>{clearInterval(t),e.disconnect()}}},[y]);let w=Object.assign(Object.assign({},s),{style:Object.assign(Object.assign({},u),{margin:0}),open:g,visible:g,getPopupContainer:()=>f.current});r&&(w=r(w)),t&&Object.assign(w,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});let x={paddingBottom:d,position:"relative",minWidth:p};return n.createElement("div",{ref:f,style:x},n.createElement(e,Object.assign({},w)))})},58501(e,t,r){"use strict";r.d(t,{A:()=>n});let n=function(...e){let t={};return e.forEach(e=>{e&&Object.keys(e).forEach(r=>{void 0!==e[r]&&(t[r]=e[r])})}),t}},25281(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(22155),i=r(42254);let o=e=>{let t;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?t=e:e&&(t={clearIcon:n.createElement(i.A,null)}),t}},47201(e,t,r){"use strict";r.d(t,{YK:()=>u,jH:()=>a});var n=r(22155),i=r(57873),o=r(80690);let a=1e3,s={Modal:100,Drawer:100,Popover:100,Popconfirm:100,Tooltip:100,Tour:100,FloatButton:100},l={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function c(e){return e in s}let u=(e,t)=>{let r,[,a]=(0,i.Ay)(),u=n.useContext(o.A),f=c(e);if(void 0!==t)r=[t,t];else{let n=null!=u?u:0;f?n+=(u?0:a.zIndexPopupBase)+s[e]:n+=l[e],r=[void 0===u?t:n,n]}return r}},20007(e,t,r){"use strict";r.d(t,{e:()=>n,p:()=>i});let n=(e,t)=>{void 0!==(null==e?void 0:e.addEventListener)?e.addEventListener("change",t):void 0!==(null==e?void 0:e.addListener)&&e.addListener(t)},i=(e,t)=>{void 0!==(null==e?void 0:e.removeEventListener)?e.removeEventListener("change",t):void 0!==(null==e?void 0:e.removeListener)&&e.removeListener(t)}},18697(e,t,r){"use strict";r.d(t,{A:()=>c,b:()=>l});var n=r(65289);let i=()=>({height:0,opacity:0}),o=e=>{let{scrollHeight:t}=e;return{height:t,opacity:1}},a=e=>({height:e?e.offsetHeight:0}),s=(e,t)=>(null==t?void 0:t.deadline)===!0||"height"===t.propertyName,l=(e,t,r)=>void 0!==r?r:`${e}-${t}`,c=(e=n.yH)=>({motionName:`${e}-motion-collapse`,onAppearStart:i,onEnterStart:i,onAppearActive:o,onEnterActive:o,onLeaveStart:a,onLeaveActive:i,onAppearEnd:s,onEnterEnd:s,onLeaveEnd:s,motionDeadline:500})},55831(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(771);function i(e,t,r,n){if(!1===n)return{adjustX:!1,adjustY:!1};let i=n&&"object"==typeof n?n:{},o={};switch(e){case"top":case"bottom":o.shiftX=2*t.arrowOffsetHorizontal+r,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=2*t.arrowOffsetVertical+r,o.shiftX=!0,o.adjustX=!0}let a=Object.assign(Object.assign({},o),i);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}let o={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},a={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},s=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function l(e){let{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:l,offset:c,borderRadius:u,visibleFirst:f}=e,d=t/2,h={},p=(0,n.Ke)({contentRadius:u,limitVerticalRadius:!0});return Object.keys(o).forEach(e=>{let n=Object.assign(Object.assign({},l&&a[e]||o[e]),{offset:[0,0],dynamicInset:!0});switch(h[e]=n,s.has(e)&&(n.autoArrow=!1),e){case"top":case"topLeft":case"topRight":n.offset[1]=-d-c;break;case"bottom":case"bottomLeft":case"bottomRight":n.offset[1]=d+c;break;case"left":case"leftTop":case"leftBottom":n.offset[0]=-d-c;break;case"right":case"rightTop":case"rightBottom":n.offset[0]=d+c}if(l)switch(e){case"topLeft":case"bottomLeft":n.offset[0]=-p.arrowOffsetHorizontal-d;break;case"topRight":case"bottomRight":n.offset[0]=p.arrowOffsetHorizontal+d;break;case"leftTop":case"rightTop":n.offset[1]=-(2*p.arrowOffsetHorizontal)+d;break;case"leftBottom":case"rightBottom":n.offset[1]=2*p.arrowOffsetHorizontal-d}n.overflow=i(e,p,t,r),f&&(n.htmlRegion="visibleFirst")}),h}},21968(e,t,r){"use strict";r.d(t,{Ob:()=>a,fx:()=>o,zv:()=>i});var n=r(22155);function i(e){return e&&n.isValidElement(e)&&e.type===n.Fragment}let o=(e,t,r)=>n.isValidElement(e)?n.cloneElement(e,"function"==typeof r?r(e.props||{}):r):t;function a(e,t){return o(e,e,t)}},9355(e,t,r){"use strict";r.d(t,{Ay:()=>c,ye:()=>a});var n=r(22155),i=r(57873),o=r(20007);let a=["xxl","xl","lg","md","sm","xs"],s=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),l=e=>{let t=e,r=[].concat(a).reverse();return r.forEach((e,n)=>{let i=e.toUpperCase(),o=`screen${i}Min`,a=`screen${i}`;if(!(t[o]<=t[a]))throw Error(`${o}<=${a} fails : !(${t[o]}<=${t[a]})`);if(n<r.length-1){let e=`screen${i}Max`;if(!(t[a]<=t[e]))throw Error(`${a}<=${e} fails : !(${t[a]}<=${t[e]})`);let o=r[n+1].toUpperCase(),s=`screen${o}Min`;if(!(t[e]<=t[s]))throw Error(`${e}<=${s} fails : !(${t[e]}<=${t[s]})`)}}),e},c=()=>{let[,e]=(0,i.Ay)(),t=s(l(e));return n.useMemo(()=>{let e=new Map,r=-1,n={};return{responsiveMap:t,matchHandlers:{},dispatch:t=>(n=t,e.forEach(e=>e(n)),e.size>=1),subscribe(t){return e.size||this.register(),r+=1,e.set(r,t),t(n),r},unsubscribe(t){e.delete(t),e.size||this.unregister()},register(){Object.entries(t).forEach(([e,t])=>{let r=({matches:t})=>{this.dispatch(Object.assign(Object.assign({},n),{[e]:t}))},i=window.matchMedia(t);(0,o.e)(i,r),this.matchHandlers[t]={mql:i,listener:r},r(i)})},unregister(){Object.values(t).forEach(e=>{let t=this.matchHandlers[e];(0,o.p)(null==t?void 0:t.mql,null==t?void 0:t.listener)}),e.clear()}}},[t])}},46320(e,t,r){"use strict";r.d(t,{L:()=>o,v:()=>a});var n=r(30395),i=r.n(n);function o(e,t,r){return i()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:r})}let a=(e,t)=>t||e},53575(e,t,r){"use strict";r.d(t,{_n:()=>o,rJ:()=>a});var n=r(22155);function i(){}r(47773);let o=n.createContext({}),a=()=>{let e=()=>{};return e.deprecated=i,e}},30565(e,t,r){"use strict";r.d(t,{A:()=>S});var n=r(22155),i=r(30395),o=r.n(i),a=r(65460),s=r(75252),l=r(65289),c=r(21968),u=r(72056);let f=e=>{let{componentCls:t,colorPrimary:r}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:`box-shadow 0.4s ${e.motionEaseOutCirc},opacity 2s ${e.motionEaseOutCirc}`,"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut},opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}}}},d=(0,u.Or)("Wave",f);var h=r(44649),p=r(23504),m=r(57873),g=r(61966),b=r(8890),v=r(33960);function y(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e&&"canvastext"!==e}function w(e){var t;let{borderTopColor:r,borderColor:n,backgroundColor:i}=getComputedStyle(e);return null!=(t=[r,n,i].find(y))?t:null}function x(e){return Number.isNaN(e)?0:e}let A=e=>{let{className:t,target:r,component:i,registerUnmount:a}=e,l=n.useRef(null),c=n.useRef(null);n.useEffect(()=>{c.current=a()},[]);let[u,f]=n.useState(null),[d,h]=n.useState([]),[m,v]=n.useState(0),[y,A]=n.useState(0),[E,_]=n.useState(0),[S,$]=n.useState(0),[k,C]=n.useState(!1),O={left:m,top:y,width:E,height:S,borderRadius:d.map(e=>`${e}px`).join(" ")};function M(){let e=getComputedStyle(r);f(w(r));let t="static"===e.position,{borderLeftWidth:n,borderTopWidth:i}=e;v(t?r.offsetLeft:x(-Number.parseFloat(n))),A(t?r.offsetTop:x(-Number.parseFloat(i))),_(r.offsetWidth),$(r.offsetHeight);let{borderTopLeftRadius:o,borderTopRightRadius:a,borderBottomLeftRadius:s,borderBottomRightRadius:l}=e;h([o,a,l,s].map(e=>x(Number.parseFloat(e))))}if(u&&(O["--wave-color"]=u),n.useEffect(()=>{if(r){let e,t=(0,p.A)(()=>{M(),C(!0)});return"u">typeof ResizeObserver&&(e=new ResizeObserver(M)).observe(r),()=>{p.A.cancel(t),null==e||e.disconnect()}}},[r]),!k)return null;let I=("Checkbox"===i||"Radio"===i)&&(null==r?void 0:r.classList.contains(g.D));return n.createElement(b.Ay,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var r,n;if(t.deadline||"opacity"===t.propertyName){let e=null==(r=l.current)?void 0:r.parentElement;null==(n=c.current)||n.call(c).then(()=>{null==e||e.remove()})}return!1}},({className:e},r)=>n.createElement("div",{ref:(0,s.K4)(l,r),className:o()(t,e,{"wave-quick":I}),style:O}))},E=(e,t)=>{var r;let{component:i}=t;if("Checkbox"===i&&!(null==(r=e.querySelector("input"))?void 0:r.checked))return;let o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",null==e||e.insertBefore(o,null==e?void 0:e.firstChild);let a=(0,v.L)(),s=null;function l(){return s}s=a(n.createElement(A,Object.assign({},t,{target:e,registerUnmount:l})),o)},_=(e,t,r)=>{let{wave:i}=n.useContext(l.QO),[,o,a]=(0,m.Ay)(),s=(0,h.A)(n=>{let s=e.current;if((null==i?void 0:i.disabled)||!s)return;let l=s.querySelector(`.${g.D}`)||s,{showEffect:c}=i||{};(c||E)(l,{className:t,token:o,component:r,event:n,hashId:a})}),c=n.useRef(null);return e=>{p.A.cancel(c.current),c.current=(0,p.A)(()=>{s(e)})}},S=e=>{let{children:t,disabled:r,component:i}=e,{getPrefixCls:u}=(0,n.useContext)(l.QO),f=(0,n.useRef)(null),h=u("wave"),[,p]=d(h),m=_(f,o()(h,p),i);if(n.useEffect(()=>{let e=f.current;if(!e||e.nodeType!==window.Node.ELEMENT_NODE||r)return;let t=t=>{!(0,a.A)(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")&&!e.className.includes("disabled:")||"true"===e.getAttribute("aria-disabled")||e.className.includes("-leave")||m(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}},[r]),!n.isValidElement(t))return null!=t?t:null;let g=(0,s.f3)(t)?(0,s.K4)((0,s.A9)(t),f):f;return(0,c.Ob)(t,{ref:g})}},61966(e,t,r){"use strict";r.d(t,{D:()=>i});var n=r(65289);let i=`${n.yH}-wave-target`},80690(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(22155).createContext(void 0)},32306(e,t,r){"use strict";r.d(t,{A:()=>L});var n=r(22155),i=r(35261),o=r(42254),a=r(32416),s=r(42964),l=r(91664),c=r(30395),u=r.n(c),f=r(8890),d=r(21634),h=r(75252),p=r(21968),m=r(65289),g=r(59296),b=r(96619),v=r(72056);let y=(e,t,r,n,i)=>({background:e,border:`${(0,g.zA)(n.lineWidth)} ${n.lineType} ${t}`,[`${i}-icon`]:{color:r}}),w=e=>{let{componentCls:t,motionDurationSlow:r,marginXS:n,marginSM:i,fontSize:o,fontSizeLG:a,lineHeight:s,borderRadiusLG:l,motionEaseInOutCirc:c,withDescriptionIconSize:u,colorText:f,colorTextHeading:d,withDescriptionPadding:h,defaultPadding:p}=e;return{[t]:Object.assign(Object.assign({},(0,b.dF)(e)),{position:"relative",display:"flex",alignItems:"center",padding:p,wordWrap:"break-word",borderRadius:l,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:n,lineHeight:0},"&-description":{display:"none",fontSize:o,lineHeight:s},"&-message":{color:d},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${r} ${c}, opacity ${r} ${c},
3
3
  padding-top ${r} ${c}, padding-bottom ${r} ${c},
4
4
  margin-bottom ${r} ${c}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:h,[`${t}-icon`]:{marginInlineEnd:i,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:n,color:d,fontSize:a},[`${t}-description`]:{display:"block",color:f}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},x=e=>{let{componentCls:t,colorSuccess:r,colorSuccessBorder:n,colorSuccessBg:i,colorWarning:o,colorWarningBorder:a,colorWarningBg:s,colorError:l,colorErrorBorder:c,colorErrorBg:u,colorInfo:f,colorInfoBorder:d,colorInfoBg:h}=e;return{[t]:{"&-success":y(i,n,r,e,t),"&-info":y(h,d,f,e,t),"&-warning":y(s,a,o,e,t),"&-error":Object.assign(Object.assign({},y(u,c,l,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},A=e=>{let{componentCls:t,iconCls:r,motionDurationMid:n,marginXS:i,fontSizeIcon:o,colorIcon:a,colorIconHover:s}=e;return{[t]:{"&-action":{marginInlineStart:i},[`${t}-close-icon`]:{marginInlineStart:i,padding:0,overflow:"hidden",fontSize:o,lineHeight:(0,g.zA)(o),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${r}-close`]:{color:a,transition:`color ${n}`,"&:hover":{color:s}}},"&-close-text":{color:a,transition:`color ${n}`,"&:hover":{color:s}}}}},E=e=>{let t=12;return{withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px ${t}px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}},_=(0,v.OF)("Alert",e=>[w(e),x(e),A(e)],E);var S=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let $={success:i.A,info:l.A,error:o.A,warning:s.A},k=e=>{let{icon:t,prefixCls:r,type:i}=e,o=$[i]||null;return t?(0,p.fx)(t,n.createElement("span",{className:`${r}-icon`},t),()=>({className:u()(`${r}-icon`,t.props.className)})):n.createElement(o,{className:`${r}-icon`})},C=e=>{let{isClosable:t,prefixCls:r,closeIcon:i,handleClose:o,ariaProps:s}=e,l=!0===i||void 0===i?n.createElement(a.A,null):i;return t?n.createElement("button",Object.assign({type:"button",onClick:o,className:`${r}-close-icon`,tabIndex:0},s),l):null},O=n.forwardRef((e,t)=>{let{description:r,prefixCls:i,message:o,banner:a,className:s,rootClassName:l,style:c,onMouseEnter:p,onMouseLeave:g,onClick:b,afterClose:v,showIcon:y,closable:w,closeText:x,closeIcon:A,action:E,id:$}=e,O=S(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[M,I]=n.useState(!1),R=n.useRef(null);n.useImperativeHandle(t,()=>({nativeElement:R.current}));let{getPrefixCls:j,direction:T,closable:N,closeIcon:P,className:B,style:z}=(0,m.TP)("alert"),L=j("alert",i),[D,F,H]=_(L),U=t=>{var r;I(!0),null==(r=e.onClose)||r.call(e,t)},q=n.useMemo(()=>void 0!==e.type?e.type:a?"warning":"info",[e.type,a]),W=n.useMemo(()=>"object"==typeof w&&!!w.closeIcon||!!x||("boolean"==typeof w?w:!1!==A&&null!=A||!!N),[x,A,w,N]),V=!!a&&void 0===y||y,K=u()(L,`${L}-${q}`,{[`${L}-with-description`]:!!r,[`${L}-no-icon`]:!V,[`${L}-banner`]:!!a,[`${L}-rtl`]:"rtl"===T},B,s,l,H,F),G=(0,d.A)(O,{aria:!0,data:!0}),X=n.useMemo(()=>"object"==typeof w&&w.closeIcon?w.closeIcon:x||(void 0!==A?A:"object"==typeof N&&N.closeIcon?N.closeIcon:P),[A,w,N,x,P]),Z=n.useMemo(()=>{let e=null!=w?w:N;if("object"==typeof e){let{closeIcon:t}=e;return S(e,["closeIcon"])}return{}},[w,N]);return D(n.createElement(f.Ay,{visible:!M,motionName:`${L}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:v},({className:t,style:i},a)=>n.createElement("div",Object.assign({id:$,ref:(0,h.K4)(R,a),"data-show":!M,className:u()(K,t),style:Object.assign(Object.assign(Object.assign({},z),c),i),onMouseEnter:p,onMouseLeave:g,onClick:b,role:"alert"},G),V?n.createElement(k,{description:r,icon:e.icon,prefixCls:L,type:q}):null,n.createElement("div",{className:`${L}-content`},o?n.createElement("div",{className:`${L}-message`},o):null,r?n.createElement("div",{className:`${L}-description`},r):null),E?n.createElement("div",{className:`${L}-action`},E):null,n.createElement(C,{isClosable:W,prefixCls:L,closeIcon:X,handleClose:U,ariaProps:Z}))))});var M=r(11947),I=r(96591),R=r(67236),j=r(3906),T=r(76664);function N(e,t,r){return t=(0,R.A)(t),(0,T.A)(e,(0,j.A)()?Reflect.construct(t,r||[],(0,R.A)(e).constructor):t.apply(e,r))}var P=r(93619);let B=function(e){function t(){var e;return(0,M.A)(this,t),e=N(this,t,arguments),e.state={error:void 0,info:{componentStack:""}},e}return(0,P.A)(t,e),(0,I.A)(t,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){let{message:e,description:t,id:r,children:i}=this.props,{error:o,info:a}=this.state,s=(null==a?void 0:a.componentStack)||null,l=void 0===e?(o||"").toString():e,c=void 0===t?s:t;return o?n.createElement(O,{id:r,type:"error",message:l,description:n.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},c)}):i}}])}(n.Component),z=O;z.ErrorBoundary=B;let L=z},99454(e,t,r){"use strict";r.d(t,{A:()=>o,B:()=>i});var n=r(22155);let i=n.createContext({}),o=n.createContext({message:{},notification:{},modal:{}})},24815(e,t,r){"use strict";r.d(t,{A:()=>q});var n=r(22155),i=r(30395),o=r.n(i),a=r(53575),s=r(65289),l=r(32416),c=r(38851),u=r(75932),f=r(35261),d=r(42254),h=r(42964),p=r(91664),m=r(60004);let g={info:n.createElement(p.A,null),success:n.createElement(f.A,null),error:n.createElement(d.A,null),warning:n.createElement(h.A,null),loading:n.createElement(m.A,null)},b=({prefixCls:e,type:t,icon:r,children:i})=>n.createElement("div",{className:o()(`${e}-custom-content`,`${e}-${t}`)},r||g[t],n.createElement("span",null,i));var v=r(59296),y=r(47201),w=r(96619),x=r(72056),A=r(63930);let E=e=>{let{componentCls:t,iconCls:r,boxShadow:n,colorText:i,colorSuccess:o,colorError:a,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:f,marginXS:d,paddingXS:h,borderRadiusLG:p,zIndexPopup:m,contentPadding:g,contentBg:b}=e,y=`${t}-notice`,x=new v.Mo("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:h,transform:"translateY(0)",opacity:1}}),A=new v.Mo("MessageMoveOut",{"0%":{maxHeight:e.height,padding:h,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),E={padding:h,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${r}`]:{marginInlineEnd:d,fontSize:c},[`${y}-content`]:{display:"inline-block",padding:g,background:b,borderRadius:p,boxShadow:n,pointerEvents:"all"},[`${t}-success > ${r}`]:{color:o},[`${t}-error > ${r}`]:{color:a},[`${t}-warning > ${r}`]:{color:s},[`${t}-info > ${r},
5
5
  ${t}-loading > ${r}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},(0,w.dF)(e)),{color:i,position:"fixed",top:d,width:"100%",pointerEvents:"none",zIndex:m,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
@@ -287,7 +287,7 @@ ${t}`)}return a})(e9);class tt extends e8{list(e,t={},r){return this._client.get
287
287
  ${tB(e)}`);if(null==o)throw new d(`missing choices[${n}].tool_calls[${r}].type
288
288
  ${tB(e)}`);if(null==c)throw new d(`missing choices[${n}].tool_calls[${r}].function.name
289
289
  ${tB(e)}`);if(null==l)throw new d(`missing choices[${n}].tool_calls[${r}].function.arguments
290
- ${tB(e)}`);return{...s,id:a,type:o,function:{...u,name:c,arguments:l}}})}}:{...o,message:{...c,content:a,role:u,refusal:t.refusal??null},finish_reason:r,index:n,logprobs:i}}),created:i,model:o,object:"chat.completion",...a?{system_fingerprint:a}:{}},t)}function tB(e){return JSON.stringify(e)}class tz extends tN{static fromReadableStream(e){let t=new tz(null);return t._run(()=>t._fromReadableStream(e)),t}static runTools(e,t,r){let n=new tz(t),i={...r,headers:{...r?.headers,"X-Stainless-Helper-Method":"runTools"}};return n._run(()=>n._runTools(e,t,i)),n}}class tL extends e8{constructor(){super(...arguments),this.messages=new tt(this._client)}create(e,t){return this._client.post("/chat/completions",{body:e,...t,stream:e.stream??!1})}retrieve(e,t){return this._client.get(te`/chat/completions/${e}`,t)}update(e,t,r){return this._client.post(te`/chat/completions/${e}`,{body:t,...r})}list(e={},t){return this._client.getAPIList("/chat/completions",eD,{query:e,...t})}delete(e,t){return this._client.delete(te`/chat/completions/${e}`,t)}parse(e,t){return td(e.tools),this._client.chat.completions.create(e,{...t,headers:{...t?.headers,"X-Stainless-Helper-Method":"chat.completions.parse"}})._thenUnwrap(t=>ta(t,e))}runTools(e,t){return e.stream?tz.runTools(this._client,e,t):ty.runTools(this._client,e,t)}stream(e,t){return tN.createChatCompletion(this._client,e,t)}}tL.Messages=tt;class tD extends e8{constructor(){super(...arguments),this.completions=new tL(this._client)}}tD.Completions=tL;let tF=Symbol("brand.privateNullableHeaders");function*tH(e){let t;if(!e)return;if(tF in e){let{values:t,nulls:r}=e;for(let e of(yield*t.entries(),r))yield[e,null];return}let r=!1;for(let n of(e instanceof Headers?t=e.entries():I(e)?t=e:(r=!0,t=Object.entries(e??{})),t)){let e=n[0];if("string"!=typeof e)throw TypeError("expected header name to be a string");let t=I(n[1])?n[1]:[n[1]],i=!1;for(let n of t)void 0!==n&&(r&&!i&&(i=!0,yield[e,null]),yield[e,n])}}let tU=e=>{let t=new Headers,r=new Set;for(let n of e){let e=new Set;for(let[i,o]of tH(n)){let n=i.toLowerCase();e.has(n)||(t.delete(i),e.add(n)),null===o?(t.delete(i),r.add(n)):(t.append(i,o),r.delete(n))}}return{[tF]:!0,values:t,nulls:r}};class tq extends e8{create(e,t){return this._client.post("/audio/speech",{body:e,...t,headers:tU([{Accept:"application/octet-stream"},t?.headers]),__binaryResponse:!0})}}class tW extends e8{create(e,t){return this._client.post("/audio/transcriptions",eK({body:e,...t,stream:e.stream??!1,__metadata:{model:e.model}},this._client))}}class tV extends e8{create(e,t){return this._client.post("/audio/translations",eK({body:e,...t,__metadata:{model:e.model}},this._client))}}class tK extends e8{constructor(){super(...arguments),this.transcriptions=new tW(this._client),this.translations=new tV(this._client),this.speech=new tq(this._client)}}tK.Transcriptions=tW,tK.Translations=tV,tK.Speech=tq;class tG extends e8{create(e,t){return this._client.post("/batches",{body:e,...t})}retrieve(e,t){return this._client.get(te`/batches/${e}`,t)}list(e={},t){return this._client.getAPIList("/batches",eD,{query:e,...t})}cancel(e,t){return this._client.post(te`/batches/${e}/cancel`,t)}}class tX extends e8{create(e,t){return this._client.post("/assistants",{body:e,...t,headers:tU([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}retrieve(e,t){return this._client.get(te`/assistants/${e}`,{...t,headers:tU([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}update(e,t,r){return this._client.post(te`/assistants/${e}`,{body:t,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}list(e={},t){return this._client.getAPIList("/assistants",eD,{query:e,...t,headers:tU([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}delete(e,t){return this._client.delete(te`/assistants/${e}`,{...t,headers:tU([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}}class tZ extends e8{create(e,t){return this._client.post("/realtime/sessions",{body:e,...t,headers:tU([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}}class tY extends e8{create(e,t){return this._client.post("/realtime/transcription_sessions",{body:e,...t,headers:tU([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}}class tJ extends e8{constructor(){super(...arguments),this.sessions=new tZ(this._client),this.transcriptionSessions=new tY(this._client)}}tJ.Sessions=tZ,tJ.TranscriptionSessions=tY;class tQ extends e8{create(e,t){return this._client.post("/chatkit/sessions",{body:e,...t,headers:tU([{"OpenAI-Beta":"chatkit_beta=v1"},t?.headers])})}cancel(e,t){return this._client.post(te`/chatkit/sessions/${e}/cancel`,{...t,headers:tU([{"OpenAI-Beta":"chatkit_beta=v1"},t?.headers])})}}class t0 extends e8{retrieve(e,t){return this._client.get(te`/chatkit/threads/${e}`,{...t,headers:tU([{"OpenAI-Beta":"chatkit_beta=v1"},t?.headers])})}list(e={},t){return this._client.getAPIList("/chatkit/threads",eF,{query:e,...t,headers:tU([{"OpenAI-Beta":"chatkit_beta=v1"},t?.headers])})}delete(e,t){return this._client.delete(te`/chatkit/threads/${e}`,{...t,headers:tU([{"OpenAI-Beta":"chatkit_beta=v1"},t?.headers])})}listItems(e,t={},r){return this._client.getAPIList(te`/chatkit/threads/${e}/items`,eF,{query:t,...r,headers:tU([{"OpenAI-Beta":"chatkit_beta=v1"},r?.headers])})}}class t1 extends e8{constructor(){super(...arguments),this.sessions=new tQ(this._client),this.threads=new t0(this._client)}uploadFile(e,t){return this._client.post("/chatkit/files",eV({body:e,...t,headers:tU([{"OpenAI-Beta":"chatkit_beta=v1"},t?.headers])},this._client))}}t1.Sessions=tQ,t1.Threads=t0;class t2 extends e8{create(e,t,r){return this._client.post(te`/threads/${e}/messages`,{body:t,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}retrieve(e,t,r){let{thread_id:n}=t;return this._client.get(te`/threads/${n}/messages/${e}`,{...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}update(e,t,r){let{thread_id:n,...i}=t;return this._client.post(te`/threads/${n}/messages/${e}`,{body:i,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}list(e,t={},r){return this._client.getAPIList(te`/threads/${e}/messages`,eD,{query:t,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}delete(e,t,r){let{thread_id:n}=t;return this._client.delete(te`/threads/${n}/messages/${e}`,{...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}}class t6 extends e8{retrieve(e,t,r){let{thread_id:n,run_id:i,...o}=t;return this._client.get(te`/threads/${n}/runs/${i}/steps/${e}`,{query:o,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}list(e,t,r){let{thread_id:n,...i}=t;return this._client.getAPIList(te`/threads/${n}/runs/${e}/steps`,eD,{query:i,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}}var t3,t5,t4,t8,t9,t7,re,rt,rr,rn,ri,ro,ra,rs,rl,rc,ru,rf,rd,rh,rp,rm,rg,rb,rv,ry,rw,rx,rA,rE,r_,rS,r$,rk,rC,rO,rM,rI,rR,rj,rT,rN,rP,rB,rz,rL,rD,rF,rH,rU,rq,rW,rV,rK,rG,rX,rZ,rY,rJ,rQ,r0,r1,r2,r6,r3,r5,r4,r8,r9,r7,ne,nt,nr,nn,ni,no,na=r(8963).Buffer;let ns=e=>{if(void 0!==na){let t=na.from(e,"base64");return Array.from(new Float32Array(t.buffer,t.byteOffset,t.length/Float32Array.BYTES_PER_ELEMENT))}{let t=atob(e),r=t.length,n=new Uint8Array(r);for(let e=0;e<r;e++)n[e]=t.charCodeAt(e);return Array.from(new Float32Array(n.buffer))}},nl=e=>void 0!==globalThis.process?globalThis.process.env?.[e]?.trim()??void 0:void 0!==globalThis.Deno?globalThis.Deno.env?.get?.(e)?.trim():void 0;class nc extends tm{constructor(){super(...arguments),rR.add(this),rT.set(this,[]),rN.set(this,{}),rP.set(this,{}),rB.set(this,void 0),rz.set(this,void 0),rL.set(this,void 0),rD.set(this,void 0),rF.set(this,void 0),rH.set(this,void 0),rU.set(this,void 0),rq.set(this,void 0),rW.set(this,void 0)}[(rT=new WeakMap,rN=new WeakMap,rP=new WeakMap,rB=new WeakMap,rz=new WeakMap,rL=new WeakMap,rD=new WeakMap,rF=new WeakMap,rH=new WeakMap,rU=new WeakMap,rq=new WeakMap,rW=new WeakMap,rR=new WeakSet,Symbol.asyncIterator)](){let e=[],t=[],r=!1;return this.on("event",r=>{let n=t.shift();n?n.resolve(r):e.push(r)}),this.on("end",()=>{for(let e of(r=!0,t))e.resolve(void 0);t.length=0}),this.on("abort",e=>{for(let n of(r=!0,t))n.reject(e);t.length=0}),this.on("error",e=>{for(let n of(r=!0,t))n.reject(e);t.length=0}),{next:async()=>e.length?{value:e.shift(),done:!1}:r?{value:void 0,done:!0}:new Promise((e,r)=>t.push({resolve:e,reject:r})).then(e=>e?{value:e,done:!1}:{value:void 0,done:!0}),return:async()=>(this.abort(),{value:void 0,done:!0})}}static fromReadableStream(e){let t=new rj;return t._run(()=>t._fromReadableStream(e)),t}async _fromReadableStream(e,t){let r=t?.signal;r&&(r.aborted&&this.controller.abort(),r.addEventListener("abort",()=>this.controller.abort())),this._connected();let n=eO.fromReadableStream(e,this.controller);for await(let e of n)l(this,rR,"m",rV).call(this,e);if(n.controller.signal?.aborted)throw new p;return this._addRun(l(this,rR,"m",rK).call(this))}toReadableStream(){return new eO(this[Symbol.asyncIterator].bind(this),this.controller).toReadableStream()}static createToolAssistantStream(e,t,r,n){let i=new rj;return i._run(()=>i._runToolAssistantStream(e,t,r,{...n,headers:{...n?.headers,"X-Stainless-Helper-Method":"stream"}})),i}async _createToolAssistantStream(e,t,r,n){let i=n?.signal;i&&(i.aborted&&this.controller.abort(),i.addEventListener("abort",()=>this.controller.abort()));let o={...r,stream:!0},a=await e.submitToolOutputs(t,o,{...n,signal:this.controller.signal});for await(let e of(this._connected(),a))l(this,rR,"m",rV).call(this,e);if(a.controller.signal?.aborted)throw new p;return this._addRun(l(this,rR,"m",rK).call(this))}static createThreadAssistantStream(e,t,r){let n=new rj;return n._run(()=>n._threadAssistantStream(e,t,{...r,headers:{...r?.headers,"X-Stainless-Helper-Method":"stream"}})),n}static createAssistantStream(e,t,r,n){let i=new rj;return i._run(()=>i._runAssistantStream(e,t,r,{...n,headers:{...n?.headers,"X-Stainless-Helper-Method":"stream"}})),i}currentEvent(){return l(this,rU,"f")}currentRun(){return l(this,rq,"f")}currentMessageSnapshot(){return l(this,rB,"f")}currentRunStepSnapshot(){return l(this,rW,"f")}async finalRunSteps(){return await this.done(),Object.values(l(this,rN,"f"))}async finalMessages(){return await this.done(),Object.values(l(this,rP,"f"))}async finalRun(){if(await this.done(),!l(this,rz,"f"))throw Error("Final run was not received.");return l(this,rz,"f")}async _createThreadAssistantStream(e,t,r){let n=r?.signal;n&&(n.aborted&&this.controller.abort(),n.addEventListener("abort",()=>this.controller.abort()));let i={...t,stream:!0},o=await e.createAndRun(i,{...r,signal:this.controller.signal});for await(let e of(this._connected(),o))l(this,rR,"m",rV).call(this,e);if(o.controller.signal?.aborted)throw new p;return this._addRun(l(this,rR,"m",rK).call(this))}async _createAssistantStream(e,t,r,n){let i=n?.signal;i&&(i.aborted&&this.controller.abort(),i.addEventListener("abort",()=>this.controller.abort()));let o={...r,stream:!0},a=await e.create(t,o,{...n,signal:this.controller.signal});for await(let e of(this._connected(),a))l(this,rR,"m",rV).call(this,e);if(a.controller.signal?.aborted)throw new p;return this._addRun(l(this,rR,"m",rK).call(this))}static accumulateDelta(e,t){for(let[r,n]of Object.entries(t)){if(!e.hasOwnProperty(r)){e[r]=n;continue}let t=e[r];if(null==t||"index"===r||"type"===r){e[r]=n;continue}if("string"==typeof t&&"string"==typeof n)t+=n;else if("number"==typeof t&&"number"==typeof n)t+=n;else if(N(t)&&N(n))t=this.accumulateDelta(t,n);else if(Array.isArray(t)&&Array.isArray(n)){if(t.every(e=>"string"==typeof e||"number"==typeof e)){t.push(...n);continue}for(let e of n){if(!N(e))throw Error(`Expected array delta entry to be an object but got: ${e}`);let r=e.index;if(null==r)throw console.error(e),Error("Expected array delta entry to have an `index` property");if("number"!=typeof r)throw Error(`Expected array delta entry \`index\` property to be a number but got ${r}`);let n=t[r];null==n?t.push(e):t[r]=this.accumulateDelta(n,e)}continue}else throw Error(`Unhandled record type: ${r}, deltaValue: ${n}, accValue: ${t}`);e[r]=t}return e}_addRun(e){return e}async _threadAssistantStream(e,t,r){return await this._createThreadAssistantStream(t,e,r)}async _runAssistantStream(e,t,r,n){return await this._createAssistantStream(t,e,r,n)}async _runToolAssistantStream(e,t,r,n){return await this._createToolAssistantStream(t,e,r,n)}}rj=nc,rV=function(e){if(!this.ended)switch(s(this,rU,e,"f"),l(this,rR,"m",rZ).call(this,e),e.event){case"thread.created":break;case"thread.run.created":case"thread.run.queued":case"thread.run.in_progress":case"thread.run.requires_action":case"thread.run.completed":case"thread.run.incomplete":case"thread.run.failed":case"thread.run.cancelling":case"thread.run.cancelled":case"thread.run.expired":l(this,rR,"m",r0).call(this,e);break;case"thread.run.step.created":case"thread.run.step.in_progress":case"thread.run.step.delta":case"thread.run.step.completed":case"thread.run.step.failed":case"thread.run.step.cancelled":case"thread.run.step.expired":l(this,rR,"m",rX).call(this,e);break;case"thread.message.created":case"thread.message.in_progress":case"thread.message.delta":case"thread.message.completed":case"thread.message.incomplete":l(this,rR,"m",rG).call(this,e);break;case"error":throw Error("Encountered an error event in event processing - errors should be processed earlier")}},rK=function(){if(this.ended)throw new d("stream has ended, this shouldn't happen");if(!l(this,rz,"f"))throw Error("Final run has not been received");return l(this,rz,"f")},rG=function(e){let[t,r]=l(this,rR,"m",rJ).call(this,e,l(this,rB,"f"));for(let e of(s(this,rB,t,"f"),l(this,rP,"f")[t.id]=t,r)){let r=t.content[e.index];r?.type=="text"&&this._emit("textCreated",r.text)}switch(e.event){case"thread.message.created":this._emit("messageCreated",e.data);break;case"thread.message.in_progress":break;case"thread.message.delta":if(this._emit("messageDelta",e.data.delta,t),e.data.delta.content)for(let r of e.data.delta.content){if("text"==r.type&&r.text){let e=r.text,n=t.content[r.index];if(n&&"text"==n.type)this._emit("textDelta",e,n.text);else throw Error("The snapshot associated with this text delta is not text or missing")}if(r.index!=l(this,rL,"f")){if(l(this,rD,"f"))switch(l(this,rD,"f").type){case"text":this._emit("textDone",l(this,rD,"f").text,l(this,rB,"f"));break;case"image_file":this._emit("imageFileDone",l(this,rD,"f").image_file,l(this,rB,"f"))}s(this,rL,r.index,"f")}s(this,rD,t.content[r.index],"f")}break;case"thread.message.completed":case"thread.message.incomplete":if(void 0!==l(this,rL,"f")){let t=e.data.content[l(this,rL,"f")];if(t)switch(t.type){case"image_file":this._emit("imageFileDone",t.image_file,l(this,rB,"f"));break;case"text":this._emit("textDone",t.text,l(this,rB,"f"))}}l(this,rB,"f")&&this._emit("messageDone",e.data),s(this,rB,void 0,"f")}},rX=function(e){let t=l(this,rR,"m",rY).call(this,e);switch(s(this,rW,t,"f"),e.event){case"thread.run.step.created":this._emit("runStepCreated",e.data);break;case"thread.run.step.delta":let r=e.data.delta;if(r.step_details&&"tool_calls"==r.step_details.type&&r.step_details.tool_calls&&"tool_calls"==t.step_details.type)for(let e of r.step_details.tool_calls)e.index==l(this,rF,"f")?this._emit("toolCallDelta",e,t.step_details.tool_calls[e.index]):(l(this,rH,"f")&&this._emit("toolCallDone",l(this,rH,"f")),s(this,rF,e.index,"f"),s(this,rH,t.step_details.tool_calls[e.index],"f"),l(this,rH,"f")&&this._emit("toolCallCreated",l(this,rH,"f")));this._emit("runStepDelta",e.data.delta,t);break;case"thread.run.step.completed":case"thread.run.step.failed":case"thread.run.step.cancelled":case"thread.run.step.expired":s(this,rW,void 0,"f"),"tool_calls"==e.data.step_details.type&&l(this,rH,"f")&&(this._emit("toolCallDone",l(this,rH,"f")),s(this,rH,void 0,"f")),this._emit("runStepDone",e.data,t)}},rZ=function(e){l(this,rT,"f").push(e),this._emit("event",e)},rY=function(e){switch(e.event){case"thread.run.step.created":return l(this,rN,"f")[e.data.id]=e.data,e.data;case"thread.run.step.delta":let t=l(this,rN,"f")[e.data.id];if(!t)throw Error("Received a RunStepDelta before creation of a snapshot");let r=e.data;if(r.delta){let n=rj.accumulateDelta(t,r.delta);l(this,rN,"f")[e.data.id]=n}return l(this,rN,"f")[e.data.id];case"thread.run.step.completed":case"thread.run.step.failed":case"thread.run.step.cancelled":case"thread.run.step.expired":case"thread.run.step.in_progress":l(this,rN,"f")[e.data.id]=e.data}if(l(this,rN,"f")[e.data.id])return l(this,rN,"f")[e.data.id];throw Error("No snapshot available")},rJ=function(e,t){let r=[];switch(e.event){case"thread.message.created":return[e.data,r];case"thread.message.delta":if(!t)throw Error("Received a delta with no existing snapshot (there should be one from message creation)");let n=e.data;if(n.delta.content)for(let e of n.delta.content)if(e.index in t.content){let r=t.content[e.index];t.content[e.index]=l(this,rR,"m",rQ).call(this,e,r)}else t.content[e.index]=e,r.push(e);return[t,r];case"thread.message.in_progress":case"thread.message.completed":case"thread.message.incomplete":if(t)return[t,r];throw Error("Received thread message event with no existing snapshot")}throw Error("Tried to accumulate a non-message event")},rQ=function(e,t){return rj.accumulateDelta(t,e)},r0=function(e){switch(s(this,rq,e.data,"f"),e.event){case"thread.run.created":case"thread.run.queued":case"thread.run.in_progress":break;case"thread.run.requires_action":case"thread.run.cancelled":case"thread.run.failed":case"thread.run.completed":case"thread.run.expired":case"thread.run.incomplete":s(this,rz,e.data,"f"),l(this,rH,"f")&&(this._emit("toolCallDone",l(this,rH,"f")),s(this,rH,void 0,"f"))}};class nu extends e8{constructor(){super(...arguments),this.steps=new t6(this._client)}create(e,t,r){let{include:n,...i}=t;return this._client.post(te`/threads/${e}/runs`,{query:{include:n},body:i,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers]),stream:t.stream??!1})}retrieve(e,t,r){let{thread_id:n}=t;return this._client.get(te`/threads/${n}/runs/${e}`,{...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}update(e,t,r){let{thread_id:n,...i}=t;return this._client.post(te`/threads/${n}/runs/${e}`,{body:i,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}list(e,t={},r){return this._client.getAPIList(te`/threads/${e}/runs`,eD,{query:t,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}cancel(e,t,r){let{thread_id:n}=t;return this._client.post(te`/threads/${n}/runs/${e}/cancel`,{...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}async createAndPoll(e,t,r){let n=await this.create(e,t,r);return await this.poll(n.id,{thread_id:e},r)}createAndStream(e,t,r){return nc.createAssistantStream(e,this._client.beta.threads.runs,t,r)}async poll(e,t,r){let n=tU([r?.headers,{"X-Stainless-Poll-Helper":"true","X-Stainless-Custom-Poll-Interval":r?.pollIntervalMs?.toString()??void 0}]);for(;;){let{data:i,response:o}=await this.retrieve(e,t,{...r,headers:{...r?.headers,...n}}).withResponse();switch(i.status){case"queued":case"in_progress":case"cancelling":let a=5e3;if(r?.pollIntervalMs)a=r.pollIntervalMs;else{let e=o.headers.get("openai-poll-after-ms");if(e){let t=parseInt(e);isNaN(t)||(a=t)}}await z(a);break;case"requires_action":case"incomplete":case"cancelled":case"completed":case"failed":case"expired":return i}}}stream(e,t,r){return nc.createAssistantStream(e,this._client.beta.threads.runs,t,r)}submitToolOutputs(e,t,r){let{thread_id:n,...i}=t;return this._client.post(te`/threads/${n}/runs/${e}/submit_tool_outputs`,{body:i,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers]),stream:t.stream??!1})}async submitToolOutputsAndPoll(e,t,r){let n=await this.submitToolOutputs(e,t,r);return await this.poll(n.id,t,r)}submitToolOutputsStream(e,t,r){return nc.createToolAssistantStream(e,this._client.beta.threads.runs,t,r)}}nu.Steps=t6;class nf extends e8{constructor(){super(...arguments),this.runs=new nu(this._client),this.messages=new t2(this._client)}create(e={},t){return this._client.post("/threads",{body:e,...t,headers:tU([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}retrieve(e,t){return this._client.get(te`/threads/${e}`,{...t,headers:tU([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}update(e,t,r){return this._client.post(te`/threads/${e}`,{body:t,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}delete(e,t){return this._client.delete(te`/threads/${e}`,{...t,headers:tU([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}createAndRun(e,t){return this._client.post("/threads/runs",{body:e,...t,headers:tU([{"OpenAI-Beta":"assistants=v2"},t?.headers]),stream:e.stream??!1})}async createAndRunPoll(e,t){let r=await this.createAndRun(e,t);return await this.runs.poll(r.id,{thread_id:r.thread_id},t)}createAndRunStream(e,t){return nc.createThreadAssistantStream(e,this._client.beta.threads,t)}}nf.Runs=nu,nf.Messages=t2;class nd extends e8{constructor(){super(...arguments),this.realtime=new tJ(this._client),this.chatkit=new t1(this._client),this.assistants=new tX(this._client),this.threads=new nf(this._client)}}nd.Realtime=tJ,nd.ChatKit=t1,nd.Assistants=tX,nd.Threads=nf;class nh extends e8{create(e,t){return this._client.post("/completions",{body:e,...t,stream:e.stream??!1})}}class np extends e8{retrieve(e,t,r){let{container_id:n}=t;return this._client.get(te`/containers/${n}/files/${e}/content`,{...r,headers:tU([{Accept:"application/binary"},r?.headers]),__binaryResponse:!0})}}class nm extends e8{constructor(){super(...arguments),this.content=new np(this._client)}create(e,t,r){return this._client.post(te`/containers/${e}/files`,eK({body:t,...r},this._client))}retrieve(e,t,r){let{container_id:n}=t;return this._client.get(te`/containers/${n}/files/${e}`,r)}list(e,t={},r){return this._client.getAPIList(te`/containers/${e}/files`,eD,{query:t,...r})}delete(e,t,r){let{container_id:n}=t;return this._client.delete(te`/containers/${n}/files/${e}`,{...r,headers:tU([{Accept:"*/*"},r?.headers])})}}nm.Content=np;class ng extends e8{constructor(){super(...arguments),this.files=new nm(this._client)}create(e,t){return this._client.post("/containers",{body:e,...t})}retrieve(e,t){return this._client.get(te`/containers/${e}`,t)}list(e={},t){return this._client.getAPIList("/containers",eD,{query:e,...t})}delete(e,t){return this._client.delete(te`/containers/${e}`,{...t,headers:tU([{Accept:"*/*"},t?.headers])})}}ng.Files=nm;class nb extends e8{create(e,t,r){let{include:n,...i}=t;return this._client.post(te`/conversations/${e}/items`,{query:{include:n},body:i,...r})}retrieve(e,t,r){let{conversation_id:n,...i}=t;return this._client.get(te`/conversations/${n}/items/${e}`,{query:i,...r})}list(e,t={},r){return this._client.getAPIList(te`/conversations/${e}/items`,eF,{query:t,...r})}delete(e,t,r){let{conversation_id:n}=t;return this._client.delete(te`/conversations/${n}/items/${e}`,r)}}class nv extends e8{constructor(){super(...arguments),this.items=new nb(this._client)}create(e={},t){return this._client.post("/conversations",{body:e,...t})}retrieve(e,t){return this._client.get(te`/conversations/${e}`,t)}update(e,t,r){return this._client.post(te`/conversations/${e}`,{body:t,...r})}delete(e,t){return this._client.delete(te`/conversations/${e}`,t)}}nv.Items=nb;class ny extends e8{create(e,t){let r=!!e.encoding_format,n=r?e.encoding_format:"base64";r&&ek(this._client).debug("embeddings/user defined encoding_format:",e.encoding_format);let i=this._client.post("/embeddings",{body:{...e,encoding_format:n},...t});return r?i:(ek(this._client).debug("embeddings/decoding base64 embeddings from base64"),i._thenUnwrap(e=>(e&&e.data&&e.data.forEach(e=>{let t=e.embedding;e.embedding=ns(t)}),e)))}}class nw extends e8{retrieve(e,t,r){let{eval_id:n,run_id:i}=t;return this._client.get(te`/evals/${n}/runs/${i}/output_items/${e}`,r)}list(e,t,r){let{eval_id:n,...i}=t;return this._client.getAPIList(te`/evals/${n}/runs/${e}/output_items`,eD,{query:i,...r})}}class nx extends e8{constructor(){super(...arguments),this.outputItems=new nw(this._client)}create(e,t,r){return this._client.post(te`/evals/${e}/runs`,{body:t,...r})}retrieve(e,t,r){let{eval_id:n}=t;return this._client.get(te`/evals/${n}/runs/${e}`,r)}list(e,t={},r){return this._client.getAPIList(te`/evals/${e}/runs`,eD,{query:t,...r})}delete(e,t,r){let{eval_id:n}=t;return this._client.delete(te`/evals/${n}/runs/${e}`,r)}cancel(e,t,r){let{eval_id:n}=t;return this._client.post(te`/evals/${n}/runs/${e}`,r)}}nx.OutputItems=nw;class nA extends e8{constructor(){super(...arguments),this.runs=new nx(this._client)}create(e,t){return this._client.post("/evals",{body:e,...t})}retrieve(e,t){return this._client.get(te`/evals/${e}`,t)}update(e,t,r){return this._client.post(te`/evals/${e}`,{body:t,...r})}list(e={},t){return this._client.getAPIList("/evals",eD,{query:e,...t})}delete(e,t){return this._client.delete(te`/evals/${e}`,t)}}nA.Runs=nx;class nE extends e8{create(e,t){return this._client.post("/files",eK({body:e,...t},this._client))}retrieve(e,t){return this._client.get(te`/files/${e}`,t)}list(e={},t){return this._client.getAPIList("/files",eD,{query:e,...t})}delete(e,t){return this._client.delete(te`/files/${e}`,t)}content(e,t){return this._client.get(te`/files/${e}/content`,{...t,headers:tU([{Accept:"application/binary"},t?.headers]),__binaryResponse:!0})}async waitForProcessing(e,{pollInterval:t=5e3,maxWait:r=18e5}={}){let n=new Set(["processed","error","deleted"]),i=Date.now(),o=await this.retrieve(e);for(;!o.status||!n.has(o.status);)if(await z(t),o=await this.retrieve(e),Date.now()-i>r)throw new g({message:`Giving up on waiting for file ${e} to finish processing after ${r} milliseconds.`});return o}}class n_ extends e8{}class nS extends e8{run(e,t){return this._client.post("/fine_tuning/alpha/graders/run",{body:e,...t})}validate(e,t){return this._client.post("/fine_tuning/alpha/graders/validate",{body:e,...t})}}class n$ extends e8{constructor(){super(...arguments),this.graders=new nS(this._client)}}n$.Graders=nS;class nk extends e8{create(e,t,r){return this._client.getAPIList(te`/fine_tuning/checkpoints/${e}/permissions`,eL,{body:t,method:"post",...r})}retrieve(e,t={},r){return this._client.get(te`/fine_tuning/checkpoints/${e}/permissions`,{query:t,...r})}delete(e,t,r){let{fine_tuned_model_checkpoint:n}=t;return this._client.delete(te`/fine_tuning/checkpoints/${n}/permissions/${e}`,r)}}class nC extends e8{constructor(){super(...arguments),this.permissions=new nk(this._client)}}nC.Permissions=nk;class nO extends e8{list(e,t={},r){return this._client.getAPIList(te`/fine_tuning/jobs/${e}/checkpoints`,eD,{query:t,...r})}}class nM extends e8{constructor(){super(...arguments),this.checkpoints=new nO(this._client)}create(e,t){return this._client.post("/fine_tuning/jobs",{body:e,...t})}retrieve(e,t){return this._client.get(te`/fine_tuning/jobs/${e}`,t)}list(e={},t){return this._client.getAPIList("/fine_tuning/jobs",eD,{query:e,...t})}cancel(e,t){return this._client.post(te`/fine_tuning/jobs/${e}/cancel`,t)}listEvents(e,t={},r){return this._client.getAPIList(te`/fine_tuning/jobs/${e}/events`,eD,{query:t,...r})}pause(e,t){return this._client.post(te`/fine_tuning/jobs/${e}/pause`,t)}resume(e,t){return this._client.post(te`/fine_tuning/jobs/${e}/resume`,t)}}nM.Checkpoints=nO;class nI extends e8{constructor(){super(...arguments),this.methods=new n_(this._client),this.jobs=new nM(this._client),this.checkpoints=new nC(this._client),this.alpha=new n$(this._client)}}nI.Methods=n_,nI.Jobs=nM,nI.Checkpoints=nC,nI.Alpha=n$;class nR extends e8{}class nj extends e8{constructor(){super(...arguments),this.graderModels=new nR(this._client)}}nj.GraderModels=nR;class nT extends e8{createVariation(e,t){return this._client.post("/images/variations",eK({body:e,...t},this._client))}edit(e,t){return this._client.post("/images/edits",eK({body:e,...t,stream:e.stream??!1},this._client))}generate(e,t){return this._client.post("/images/generations",{body:e,...t,stream:e.stream??!1})}}class nN extends e8{retrieve(e,t){return this._client.get(te`/models/${e}`,t)}list(e){return this._client.getAPIList("/models",eL,e)}delete(e,t){return this._client.delete(te`/models/${e}`,t)}}class nP extends e8{create(e,t){return this._client.post("/moderations",{body:e,...t})}}class nB extends e8{accept(e,t,r){return this._client.post(te`/realtime/calls/${e}/accept`,{body:t,...r,headers:tU([{Accept:"*/*"},r?.headers])})}hangup(e,t){return this._client.post(te`/realtime/calls/${e}/hangup`,{...t,headers:tU([{Accept:"*/*"},t?.headers])})}refer(e,t,r){return this._client.post(te`/realtime/calls/${e}/refer`,{body:t,...r,headers:tU([{Accept:"*/*"},r?.headers])})}reject(e,t={},r){return this._client.post(te`/realtime/calls/${e}/reject`,{body:t,...r,headers:tU([{Accept:"*/*"},r?.headers])})}}class nz extends e8{create(e,t){return this._client.post("/realtime/client_secrets",{body:e,...t})}}class nL extends e8{constructor(){super(...arguments),this.clientSecrets=new nz(this._client),this.calls=new nB(this._client)}}function nD(e,t){return t&&nU(t)?nF(e,t):{...e,output_parsed:null,output:e.output.map(e=>"function_call"===e.type?{...e,parsed_arguments:null}:"message"===e.type?{...e,content:e.content.map(e=>({...e,parsed:null}))}:e)}}function nF(e,t){let r=e.output.map(e=>{if("function_call"===e.type)return{...e,parsed_arguments:nV(t,e)};if("message"===e.type){let r=e.content.map(e=>"output_text"===e.type?{...e,parsed:nH(t,e.text)}:e);return{...e,content:r}}return e}),n=Object.assign({},e,{output:r});return Object.getOwnPropertyDescriptor(e,"output_text")||nK(n),Object.defineProperty(n,"output_parsed",{enumerable:!0,get(){for(let e of n.output)if("message"===e.type){for(let t of e.content)if("output_text"===t.type&&null!==t.parsed)return t.parsed}return null}}),n}function nH(e,t){return e.text?.format?.type!=="json_schema"?null:"$parseRaw"in e.text?.format?(e.text?.format).$parseRaw(t):JSON.parse(t)}function nU(e){return!!tn(e.text?.format)}function nq(e){return e?.$brand==="auto-parseable-tool"}function nW(e,t){return e.find(e=>"function"===e.type&&e.name===t)}function nV(e,t){let r=nW(e.tools??[],t.name);return{...t,...t,parsed_arguments:nq(r)?r.$parseRaw(t.arguments):r?.strict?JSON.parse(t.arguments):null}}function nK(e){let t=[];for(let r of e.output)if("message"===r.type)for(let e of r.content)"output_text"===e.type&&t.push(e.text);e.output_text=t.join("")}nL.ClientSecrets=nz,nL.Calls=nB;class nG extends tm{constructor(e){super(),r1.add(this),r2.set(this,void 0),r6.set(this,void 0),r3.set(this,void 0),s(this,r2,e,"f")}static createResponse(e,t,r){let n=new nG(t);return n._run(()=>n._createOrRetrieveResponse(e,t,{...r,headers:{...r?.headers,"X-Stainless-Helper-Method":"stream"}})),n}async _createOrRetrieveResponse(e,t,r){let n,i=r?.signal;i&&(i.aborted&&this.controller.abort(),i.addEventListener("abort",()=>this.controller.abort())),l(this,r1,"m",r5).call(this);let o=null;for await(let i of("response_id"in t?(n=await e.responses.retrieve(t.response_id,{stream:!0},{...r,signal:this.controller.signal,stream:!0}),o=t.starting_after??null):n=await e.responses.create({...t,stream:!0},{...r,signal:this.controller.signal}),this._connected(),n))l(this,r1,"m",r4).call(this,i,o);if(n.controller.signal?.aborted)throw new p;return l(this,r1,"m",r8).call(this)}[(r2=new WeakMap,r6=new WeakMap,r3=new WeakMap,r1=new WeakSet,r5=function(){this.ended||s(this,r6,void 0,"f")},r4=function(e,t){if(this.ended)return;let r=(e,r)=>{(null==t||r.sequence_number>t)&&this._emit(e,r)},n=l(this,r1,"m",r9).call(this,e);switch(r("event",e),e.type){case"response.output_text.delta":{let t=n.output[e.output_index];if(!t)throw new d(`missing output at index ${e.output_index}`);if("message"===t.type){let n=t.content[e.content_index];if(!n)throw new d(`missing content at index ${e.content_index}`);if("output_text"!==n.type)throw new d(`expected content to be 'output_text', got ${n.type}`);r("response.output_text.delta",{...e,snapshot:n.text})}break}case"response.function_call_arguments.delta":{let t=n.output[e.output_index];if(!t)throw new d(`missing output at index ${e.output_index}`);"function_call"===t.type&&r("response.function_call_arguments.delta",{...e,snapshot:t.arguments});break}default:r(e.type,e)}},r8=function(){if(this.ended)throw new d("stream has ended, this shouldn't happen");let e=l(this,r6,"f");if(!e)throw new d("request ended without sending any events");s(this,r6,void 0,"f");let t=nX(e,l(this,r2,"f"));return s(this,r3,t,"f"),t},r9=function(e){let t=l(this,r6,"f");if(!t){if("response.created"!==e.type)throw new d(`When snapshot hasn't been set yet, expected 'response.created' event, got ${e.type}`);return s(this,r6,e.response,"f")}switch(e.type){case"response.output_item.added":t.output.push(e.item);break;case"response.content_part.added":{let r=t.output[e.output_index];if(!r)throw new d(`missing output at index ${e.output_index}`);let n=r.type,i=e.part;"message"===n&&"reasoning_text"!==i.type?r.content.push(i):"reasoning"===n&&"reasoning_text"===i.type&&(r.content||(r.content=[]),r.content.push(i));break}case"response.output_text.delta":{let r=t.output[e.output_index];if(!r)throw new d(`missing output at index ${e.output_index}`);if("message"===r.type){let t=r.content[e.content_index];if(!t)throw new d(`missing content at index ${e.content_index}`);if("output_text"!==t.type)throw new d(`expected content to be 'output_text', got ${t.type}`);t.text+=e.delta}break}case"response.function_call_arguments.delta":{let r=t.output[e.output_index];if(!r)throw new d(`missing output at index ${e.output_index}`);"function_call"===r.type&&(r.arguments+=e.delta);break}case"response.reasoning_text.delta":{let r=t.output[e.output_index];if(!r)throw new d(`missing output at index ${e.output_index}`);if("reasoning"===r.type){let t=r.content?.[e.content_index];if(!t)throw new d(`missing content at index ${e.content_index}`);if("reasoning_text"!==t.type)throw new d(`expected content to be 'reasoning_text', got ${t.type}`);t.text+=e.delta}break}case"response.completed":s(this,r6,e.response,"f")}return t},Symbol.asyncIterator)](){let e=[],t=[],r=!1;return this.on("event",r=>{let n=t.shift();n?n.resolve(r):e.push(r)}),this.on("end",()=>{for(let e of(r=!0,t))e.resolve(void 0);t.length=0}),this.on("abort",e=>{for(let n of(r=!0,t))n.reject(e);t.length=0}),this.on("error",e=>{for(let n of(r=!0,t))n.reject(e);t.length=0}),{next:async()=>e.length?{value:e.shift(),done:!1}:r?{value:void 0,done:!0}:new Promise((e,r)=>t.push({resolve:e,reject:r})).then(e=>e?{value:e,done:!1}:{value:void 0,done:!0}),return:async()=>(this.abort(),{value:void 0,done:!0})}}async finalResponse(){await this.done();let e=l(this,r3,"f");if(!e)throw new d("stream ended without producing a ChatCompletion");return e}}function nX(e,t){return nD(e,t)}class nZ extends e8{list(e,t={},r){return this._client.getAPIList(te`/responses/${e}/input_items`,eD,{query:t,...r})}}class nY extends e8{constructor(){super(...arguments),this.inputItems=new nZ(this._client)}create(e,t){return this._client.post("/responses",{body:e,...t,stream:e.stream??!1})._thenUnwrap(e=>("object"in e&&"response"===e.object&&nK(e),e))}retrieve(e,t={},r){return this._client.get(te`/responses/${e}`,{query:t,...r,stream:t?.stream??!1})._thenUnwrap(e=>("object"in e&&"response"===e.object&&nK(e),e))}delete(e,t){return this._client.delete(te`/responses/${e}`,{...t,headers:tU([{Accept:"*/*"},t?.headers])})}parse(e,t){return this._client.responses.create(e,t)._thenUnwrap(t=>nF(t,e))}stream(e,t){return nG.createResponse(this._client,e,t)}cancel(e,t){return this._client.post(te`/responses/${e}/cancel`,t)}}nY.InputItems=nZ;class nJ extends e8{create(e,t,r){return this._client.post(te`/uploads/${e}/parts`,eK({body:t,...r},this._client))}}class nQ extends e8{constructor(){super(...arguments),this.parts=new nJ(this._client)}create(e,t){return this._client.post("/uploads",{body:e,...t})}cancel(e,t){return this._client.post(te`/uploads/${e}/cancel`,t)}complete(e,t,r){return this._client.post(te`/uploads/${e}/complete`,{body:t,...r})}}nQ.Parts=nJ;let n0=async e=>{let t=await Promise.allSettled(e),r=t.filter(e=>"rejected"===e.status);if(r.length){for(let e of r)console.error(e.reason);throw Error(`${r.length} promise(s) failed - see the above errors`)}let n=[];for(let e of t)"fulfilled"===e.status&&n.push(e.value);return n};class n1 extends e8{create(e,t,r){return this._client.post(te`/vector_stores/${e}/file_batches`,{body:t,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}retrieve(e,t,r){let{vector_store_id:n}=t;return this._client.get(te`/vector_stores/${n}/file_batches/${e}`,{...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}cancel(e,t,r){let{vector_store_id:n}=t;return this._client.post(te`/vector_stores/${n}/file_batches/${e}/cancel`,{...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}async createAndPoll(e,t,r){let n=await this.create(e,t);return await this.poll(e,n.id,r)}listFiles(e,t,r){let{vector_store_id:n,...i}=t;return this._client.getAPIList(te`/vector_stores/${n}/file_batches/${e}/files`,eD,{query:i,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}async poll(e,t,r){let n=tU([r?.headers,{"X-Stainless-Poll-Helper":"true","X-Stainless-Custom-Poll-Interval":r?.pollIntervalMs?.toString()??void 0}]);for(;;){let{data:i,response:o}=await this.retrieve(t,{vector_store_id:e},{...r,headers:n}).withResponse();switch(i.status){case"in_progress":let a=5e3;if(r?.pollIntervalMs)a=r.pollIntervalMs;else{let e=o.headers.get("openai-poll-after-ms");if(e){let t=parseInt(e);isNaN(t)||(a=t)}}await z(a);break;case"failed":case"cancelled":case"completed":return i}}}async uploadAndPoll(e,{files:t,fileIds:r=[]},n){if(null==t||0==t.length)throw Error("No `files` provided to process. If you've already uploaded files you should use `.createAndPoll()` instead");let i=Math.min(n?.maxConcurrency??5,t.length),o=this._client,a=t.values(),s=[...r];async function l(e){for(let t of e){let e=await o.files.create({file:t,purpose:"assistants"},n);s.push(e.id)}}let c=Array(i).fill(a).map(l);return await n0(c),await this.createAndPoll(e,{file_ids:s})}}class n2 extends e8{create(e,t,r){return this._client.post(te`/vector_stores/${e}/files`,{body:t,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}retrieve(e,t,r){let{vector_store_id:n}=t;return this._client.get(te`/vector_stores/${n}/files/${e}`,{...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}update(e,t,r){let{vector_store_id:n,...i}=t;return this._client.post(te`/vector_stores/${n}/files/${e}`,{body:i,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}list(e,t={},r){return this._client.getAPIList(te`/vector_stores/${e}/files`,eD,{query:t,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}delete(e,t,r){let{vector_store_id:n}=t;return this._client.delete(te`/vector_stores/${n}/files/${e}`,{...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}async createAndPoll(e,t,r){let n=await this.create(e,t,r);return await this.poll(e,n.id,r)}async poll(e,t,r){let n=tU([r?.headers,{"X-Stainless-Poll-Helper":"true","X-Stainless-Custom-Poll-Interval":r?.pollIntervalMs?.toString()??void 0}]);for(;;){let i=await this.retrieve(t,{vector_store_id:e},{...r,headers:n}).withResponse(),o=i.data;switch(o.status){case"in_progress":let a=5e3;if(r?.pollIntervalMs)a=r.pollIntervalMs;else{let e=i.response.headers.get("openai-poll-after-ms");if(e){let t=parseInt(e);isNaN(t)||(a=t)}}await z(a);break;case"failed":case"completed":return o}}}async upload(e,t,r){let n=await this._client.files.create({file:t,purpose:"assistants"},r);return this.create(e,{file_id:n.id},r)}async uploadAndPoll(e,t,r){let n=await this.upload(e,t,r);return await this.poll(e,n.id,r)}content(e,t,r){let{vector_store_id:n}=t;return this._client.getAPIList(te`/vector_stores/${n}/files/${e}/content`,eL,{...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}}class n6 extends e8{constructor(){super(...arguments),this.files=new n2(this._client),this.fileBatches=new n1(this._client)}create(e,t){return this._client.post("/vector_stores",{body:e,...t,headers:tU([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}retrieve(e,t){return this._client.get(te`/vector_stores/${e}`,{...t,headers:tU([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}update(e,t,r){return this._client.post(te`/vector_stores/${e}`,{body:t,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}list(e={},t){return this._client.getAPIList("/vector_stores",eD,{query:e,...t,headers:tU([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}delete(e,t){return this._client.delete(te`/vector_stores/${e}`,{...t,headers:tU([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}search(e,t,r){return this._client.getAPIList(te`/vector_stores/${e}/search`,eL,{body:t,method:"post",...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}}n6.Files=n2,n6.FileBatches=n1;class n3 extends e8{create(e,t){return this._client.post("/videos",eV({body:e,...t},this._client))}retrieve(e,t){return this._client.get(te`/videos/${e}`,t)}list(e={},t){return this._client.getAPIList("/videos",eF,{query:e,...t})}delete(e,t){return this._client.delete(te`/videos/${e}`,t)}downloadContent(e,t={},r){return this._client.get(te`/videos/${e}/content`,{query:t,...r,headers:tU([{Accept:"application/binary"},r?.headers]),__binaryResponse:!0})}remix(e,t,r){return this._client.post(te`/videos/${e}/remix`,eV({body:t,...r},this._client))}}var n5=r(8963).Buffer;class n4 extends e8{constructor(){super(...arguments),r7.add(this)}async unwrap(e,t,r=this._client.webhookSecret,n=300){return await this.verifySignature(e,t,r,n),JSON.parse(e)}async verifySignature(e,t,r=this._client.webhookSecret,n=300){if("u"<typeof crypto||"function"!=typeof crypto.subtle.importKey||"function"!=typeof crypto.subtle.verify)throw Error("Webhook signature verification is only supported when the `crypto` global is defined");l(this,r7,"m",ne).call(this,r);let i=tU([t]).values,o=l(this,r7,"m",nt).call(this,i,"webhook-signature"),a=l(this,r7,"m",nt).call(this,i,"webhook-timestamp"),s=l(this,r7,"m",nt).call(this,i,"webhook-id"),c=parseInt(a,10);if(isNaN(c))throw new k("Invalid webhook timestamp format");let u=Math.floor(Date.now()/1e3);if(u-c>n)throw new k("Webhook timestamp is too old");if(c>u+n)throw new k("Webhook timestamp is too new");let f=o.split(" ").map(e=>e.startsWith("v1,")?e.substring(3):e),d=r.startsWith("whsec_")?n5.from(r.replace("whsec_",""),"base64"):n5.from(r,"utf-8"),h=s?`${s}.${a}.${e}`:`${a}.${e}`,p=await crypto.subtle.importKey("raw",d,{name:"HMAC",hash:"SHA-256"},!1,["verify"]);for(let e of f)try{let t=n5.from(e,"base64");if(await crypto.subtle.verify("HMAC",p,t,new TextEncoder().encode(h)))return}catch{continue}throw new k("The given webhook signature does not match the expected signature")}}r7=new WeakSet,ne=function(e){if("string"!=typeof e||0===e.length)throw Error("The webhook secret must either be set using the env var, OPENAI_WEBHOOK_SECRET, on the client class, OpenAI({ webhookSecret: '123' }), or passed to this function")},nt=function(e,t){if(!e)throw Error("Headers are required");let r=e.get(t);if(null==r)throw Error(`Missing required header: ${t}`);return r};class n8{constructor({baseURL:e=nl("OPENAI_BASE_URL"),apiKey:t=nl("OPENAI_API_KEY"),organization:r=nl("OPENAI_ORG_ID")??null,project:n=nl("OPENAI_PROJECT_ID")??null,webhookSecret:i=nl("OPENAI_WEBHOOK_SECRET")??null,...o}={}){if(nr.add(this),ni.set(this,void 0),this.completions=new nh(this),this.chat=new tD(this),this.embeddings=new ny(this),this.files=new nE(this),this.images=new nT(this),this.audio=new tK(this),this.moderations=new nP(this),this.models=new nN(this),this.fineTuning=new nI(this),this.graders=new nj(this),this.vectorStores=new n6(this),this.webhooks=new n4(this),this.beta=new nd(this),this.batches=new tG(this),this.uploads=new nQ(this),this.responses=new nY(this),this.realtime=new nL(this),this.conversations=new nv(this),this.evals=new nA(this),this.containers=new ng(this),this.videos=new n3(this),void 0===t)throw new d("Missing credentials. Please pass an `apiKey`, or set the `OPENAI_API_KEY` environment variable.");const a={apiKey:t,organization:r,project:n,webhookSecret:i,...o,baseURL:e||"https://api.openai.com/v1"};if(!a.dangerouslyAllowBrowser&&L())throw new d("It looks like you're running in a browser-like environment.\n\nThis is disabled by default, as it risks exposing your secret API credentials to attackers.\nIf you understand the risks and have appropriate mitigations in place,\nyou can set the `dangerouslyAllowBrowser` option to `true`, e.g.,\n\nnew OpenAI({ apiKey, dangerouslyAllowBrowser: true });\n\nhttps://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety\n");this.baseURL=a.baseURL,this.timeout=a.timeout??nn.DEFAULT_TIMEOUT,this.logger=a.logger??console;const l="warn";this.logLevel=l,this.logLevel=eA(a.logLevel,"ClientOptions.logLevel",this)??eA(nl("OPENAI_LOG"),"process.env['OPENAI_LOG']",this)??l,this.fetchOptions=a.fetchOptions,this.maxRetries=a.maxRetries??2,this.fetch=a.fetch??V(),s(this,ni,Y,"f"),this._options=a,this.apiKey="string"==typeof t?t:"Missing Key",this.organization=r,this.project=n,this.webhookSecret=i}withOptions(e){return new this.constructor({...this._options,baseURL:this.baseURL,maxRetries:this.maxRetries,timeout:this.timeout,logger:this.logger,logLevel:this.logLevel,fetch:this.fetch,fetchOptions:this.fetchOptions,apiKey:this.apiKey,organization:this.organization,project:this.project,webhookSecret:this.webhookSecret,...e})}defaultQuery(){return this._options.defaultQuery}validateHeaders({values:e,nulls:t}){}async authHeaders(e){return tU([{Authorization:`Bearer ${this.apiKey}`}])}stringifyQuery(e){return ep(e,{arrayFormat:"brackets"})}getUserAgent(){return`${this.constructor.name}/JS 6.3.0`}defaultIdempotencyKey(){return`stainless-node-retry-${c()}`}makeStatusError(e,t,r,n){return h.generate(e,t,r,n)}async _callApiKey(){let e,t=this._options.apiKey;if("function"!=typeof t)return!1;try{e=await t()}catch(e){if(e instanceof d)throw e;throw new d(`Failed to get token from 'apiKey' function: ${e.message}`,{cause:e})}if("string"!=typeof e||!e)throw new d(`Expected 'apiKey' function argument to return a string but it returned ${e}`);return this.apiKey=e,!0}buildURL(e,t,r){let n=!l(this,nr,"m",no).call(this)&&r||this.baseURL,i=new URL(O(e)?e:n+(n.endsWith("/")&&e.startsWith("/")?e.slice(1):e)),o=this.defaultQuery();return j(o)||(t={...o,...t}),"object"==typeof t&&t&&!Array.isArray(t)&&(i.search=this.stringifyQuery(t)),i.toString()}async prepareOptions(e){await this._callApiKey()}async prepareRequest(e,{url:t,options:r}){}get(e,t){return this.methodRequest("get",e,t)}post(e,t){return this.methodRequest("post",e,t)}patch(e,t){return this.methodRequest("patch",e,t)}put(e,t){return this.methodRequest("put",e,t)}delete(e,t){return this.methodRequest("delete",e,t)}methodRequest(e,t,r){return this.request(Promise.resolve(r).then(r=>({method:e,path:t,...r})))}request(e,t=null){return new eP(this,this.makeRequest(e,t,void 0))}async makeRequest(e,t,r){let n=await e,i=n.maxRetries??this.maxRetries;null==t&&(t=i),await this.prepareOptions(n);let{req:o,url:a,timeout:s}=await this.buildRequest(n,{retryCount:i-t});await this.prepareRequest(o,{url:a,options:n});let l="log_"+(0x1000000*Math.random()|0).toString(16).padStart(6,"0"),c=void 0===r?"":`, retryOf: ${r}`,d=Date.now();if(ek(this).debug(`[${l}] sending request`,eC({retryOfRequestLogID:r,method:n.method,url:a,options:n,headers:o.headers})),n.signal?.aborted)throw new p;let h=new AbortController,b=await this.fetchWithTimeout(a,o,s,h).catch(f),v=Date.now();if(b instanceof globalThis.Error){let e=`retrying, ${t} attempts remaining`;if(n.signal?.aborted)throw new p;let i=u(b)||/timed? ?out/i.test(String(b)+("cause"in b?String(b.cause):""));if(t)return ek(this).info(`[${l}] connection ${i?"timed out":"failed"} - ${e}`),ek(this).debug(`[${l}] connection ${i?"timed out":"failed"} (${e})`,eC({retryOfRequestLogID:r,url:a,durationMs:v-d,message:b.message})),this.retryRequest(n,t,r??l);if(ek(this).info(`[${l}] connection ${i?"timed out":"failed"} - error; no more retries left`),ek(this).debug(`[${l}] connection ${i?"timed out":"failed"} (error; no more retries left)`,eC({retryOfRequestLogID:r,url:a,durationMs:v-d,message:b.message})),i)throw new g;throw new m({cause:b})}let y=[...b.headers.entries()].filter(([e])=>"x-request-id"===e).map(([e,t])=>", "+e+": "+JSON.stringify(t)).join(""),w=`[${l}${c}${y}] ${o.method} ${a} ${b.ok?"succeeded":"failed"} with status ${b.status} in ${v-d}ms`;if(!b.ok){let e=await this.shouldRetry(b);if(t&&e){let e=`retrying, ${t} attempts remaining`;return await Z(b.body),ek(this).info(`${w} - ${e}`),ek(this).debug(`[${l}] response error (${e})`,eC({retryOfRequestLogID:r,url:b.url,status:b.status,headers:b.headers,durationMs:v-d})),this.retryRequest(n,t,r??l,b.headers)}let i=e?"error; no more retries left":"error; not retryable";ek(this).info(`${w} - ${i}`);let o=await b.text().catch(e=>f(e).message),a=B(o),s=a?void 0:o;throw ek(this).debug(`[${l}] response error (${i})`,eC({retryOfRequestLogID:r,url:b.url,status:b.status,headers:b.headers,message:s,durationMs:Date.now()-d})),this.makeStatusError(b.status,a,s,b.headers)}return ek(this).info(w),ek(this).debug(`[${l}] response start`,eC({retryOfRequestLogID:r,url:b.url,status:b.status,headers:b.headers,durationMs:v-d})),{response:b,options:n,controller:h,requestLogID:l,retryOfRequestLogID:r,startTime:d}}getAPIList(e,t,r){return this.requestAPIList(t,{method:"get",path:e,...r})}requestAPIList(e,t){return new ez(this,this.makeRequest(t,null,void 0),e)}async fetchWithTimeout(e,t,r,n){let{signal:i,method:o,...a}=t||{};i&&i.addEventListener("abort",()=>n.abort());let s=setTimeout(()=>n.abort(),r),l=globalThis.ReadableStream&&a.body instanceof globalThis.ReadableStream||"object"==typeof a.body&&null!==a.body&&Symbol.asyncIterator in a.body,c={signal:n.signal,...l?{duplex:"half"}:{},method:"GET",...a};o&&(c.method=o.toUpperCase());try{return await this.fetch.call(void 0,e,c)}finally{clearTimeout(s)}}async shouldRetry(e){let t=e.headers.get("x-should-retry");return"true"===t||"false"!==t&&(408===e.status||409===e.status||429===e.status||!!(e.status>=500))}async retryRequest(e,t,r,n){let i,o=n?.get("retry-after-ms");if(o){let e=parseFloat(o);Number.isNaN(e)||(i=e)}let a=n?.get("retry-after");if(a&&!i){let e=parseFloat(a);i=Number.isNaN(e)?Date.parse(a)-Date.now():1e3*e}if(!(i&&0<=i&&i<6e4)){let r=e.maxRetries??this.maxRetries;i=this.calculateDefaultRetryTimeoutMillis(t,r)}return await z(i),this.makeRequest(e,t-1,r)}calculateDefaultRetryTimeoutMillis(e,t){return Math.min(.5*Math.pow(2,t-e),8)*(1-.25*Math.random())*1e3}async buildRequest(e,{retryCount:t=0}={}){let r={...e},{method:n,path:i,query:o,defaultBaseURL:a}=r,s=this.buildURL(i,o,a);"timeout"in r&&P("timeout",r.timeout),r.timeout=r.timeout??this.timeout;let{bodyHeaders:l,body:c}=this.buildBody({options:r}),u=await this.buildHeaders({options:e,method:n,bodyHeaders:l,retryCount:t});return{req:{method:n,headers:u,...r.signal&&{signal:r.signal},...globalThis.ReadableStream&&c instanceof globalThis.ReadableStream&&{duplex:"half"},...c&&{body:c},...this.fetchOptions??{},...r.fetchOptions??{}},url:s,timeout:r.timeout}}async buildHeaders({options:e,method:t,bodyHeaders:r,retryCount:n}){let i={};this.idempotencyHeader&&"get"!==t&&(e.idempotencyKey||(e.idempotencyKey=this.defaultIdempotencyKey()),i[this.idempotencyHeader]=e.idempotencyKey);let o=tU([i,{Accept:"application/json","User-Agent":this.getUserAgent(),"X-Stainless-Retry-Count":String(n),...e.timeout?{"X-Stainless-Timeout":String(Math.trunc(e.timeout/1e3))}:{},...W(),"OpenAI-Organization":this.organization,"OpenAI-Project":this.project},await this.authHeaders(e),this._options.defaultHeaders,r,e.headers]);return this.validateHeaders(o),o.values}buildBody({options:{body:e,headers:t}}){if(!e)return{bodyHeaders:void 0,body:void 0};let r=tU([t]);return ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof DataView||"string"==typeof e&&r.values.has("content-type")||globalThis.Blob&&e instanceof globalThis.Blob||e instanceof FormData||e instanceof URLSearchParams||globalThis.ReadableStream&&e instanceof globalThis.ReadableStream?{bodyHeaders:void 0,body:e}:"object"==typeof e&&(Symbol.asyncIterator in e||Symbol.iterator in e&&"next"in e&&"function"==typeof e.next)?{bodyHeaders:void 0,body:G(e)}:l(this,ni,"f").call(this,{body:e,headers:r})}}nn=n8,ni=new WeakMap,nr=new WeakSet,no=function(){return"https://api.openai.com/v1"!==this.baseURL},n8.OpenAI=nn,n8.DEFAULT_TIMEOUT=6e5,n8.OpenAIError=d,n8.APIError=h,n8.APIConnectionError=m,n8.APIConnectionTimeoutError=g,n8.APIUserAbortError=p,n8.NotFoundError=w,n8.ConflictError=x,n8.RateLimitError=E,n8.BadRequestError=b,n8.AuthenticationError=v,n8.InternalServerError=_,n8.PermissionDeniedError=y,n8.UnprocessableEntityError=A,n8.InvalidWebhookSignatureError=k,n8.toFile=e3,n8.Completions=nh,n8.Chat=tD,n8.Embeddings=ny,n8.Files=nE,n8.Images=nT,n8.Audio=tK,n8.Moderations=nP,n8.Models=nN,n8.FineTuning=nI,n8.Graders=nj,n8.VectorStores=n6,n8.Webhooks=n4,n8.Beta=nd,n8.Batches=tG,n8.Uploads=nQ,n8.Responses=nY,n8.Realtime=nL,n8.Conversations=nv,n8.Evals=nA,n8.Containers=ng,n8.Videos=n3,r(85409)},37817(e,t,r){"use strict";let n,i;r.d(t,{io:()=>eX});var o,a={};r.r(a),r.d(a,{Decoder:()=>eN,Encoder:()=>eT,PacketType:()=>o,isPacketValid:()=>eH,protocol:()=>ej});let s=Object.create(null);s.open="0",s.close="1",s.ping="2",s.pong="3",s.message="4",s.upgrade="5",s.noop="6";let l=Object.create(null);Object.keys(s).forEach(e=>{l[s[e]]=e});let c={type:"error",data:"parser error"},u="function"==typeof Blob||"u">typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),f="function"==typeof ArrayBuffer,d=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,h=({type:e,data:t},r,n)=>{if(u&&t instanceof Blob)if(r)return n(t);else return p(t,n);if(f&&(t instanceof ArrayBuffer||d(t)))if(r)return n(t);else return p(new Blob([t]),n);return n(s[e]+(t||""))},p=(e,t)=>{let r=new FileReader;return r.onload=function(){t("b"+(r.result.split(",")[1]||""))},r.readAsDataURL(e)};function m(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}function g(e,t){return u&&e.data instanceof Blob?e.data.arrayBuffer().then(m).then(t):f&&(e.data instanceof ArrayBuffer||d(e.data))?t(m(e.data)):void h(e,!1,e=>{n||(n=new TextEncoder),t(n.encode(e))})}let b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",v="u"<typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<b.length;e++)v[b.charCodeAt(e)]=e;let y=e=>{let t=.75*e.length,r=e.length,n,i=0,o,a,s,l;"="===e[e.length-1]&&(t--,"="===e[e.length-2]&&t--);let c=new ArrayBuffer(t),u=new Uint8Array(c);for(n=0;n<r;n+=4)o=v[e.charCodeAt(n)],a=v[e.charCodeAt(n+1)],s=v[e.charCodeAt(n+2)],l=v[e.charCodeAt(n+3)],u[i++]=o<<2|a>>4,u[i++]=(15&a)<<4|s>>2,u[i++]=(3&s)<<6|63&l;return c},w="function"==typeof ArrayBuffer,x=(e,t)=>{if("string"!=typeof e)return{type:"message",data:E(e,t)};let r=e.charAt(0);return"b"===r?{type:"message",data:A(e.substring(1),t)}:l[r]?e.length>1?{type:l[r],data:e.substring(1)}:{type:l[r]}:c},A=(e,t)=>w?E(y(e),t):{base64:!0,data:e},E=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,_="\x1e",S=(e,t)=>{let r=e.length,n=Array(r),i=0;e.forEach((e,o)=>{h(e,!1,e=>{n[o]=e,++i===r&&t(n.join(_))})})},$=(e,t)=>{let r=e.split(_),n=[];for(let e=0;e<r.length;e++){let i=x(r[e],t);if(n.push(i),"error"===i.type)break}return n};function k(){return new TransformStream({transform(e,t){g(e,r=>{let n,i=r.length;if(i<126)new DataView((n=new Uint8Array(1)).buffer).setUint8(0,i);else if(i<65536){let e=new DataView((n=new Uint8Array(3)).buffer);e.setUint8(0,126),e.setUint16(1,i)}else{let e=new DataView((n=new Uint8Array(9)).buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(i))}e.data&&"string"!=typeof e.data&&(n[0]|=128),t.enqueue(n),t.enqueue(r)})}})}function C(e){return e.reduce((e,t)=>e+t.length,0)}function O(e,t){if(e[0].length===t)return e.shift();let r=new Uint8Array(t),n=0;for(let i=0;i<t;i++)r[i]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),r}function M(e,t){i||(i=new TextDecoder);let r=[],n=0,o=-1,a=!1;return new TransformStream({transform(s,l){for(r.push(s);;){if(0===n){if(1>C(r))break;let e=O(r,1);a=(128&e[0])==128,n=(o=127&e[0])<126?3:126===o?1:2}else if(1===n){if(2>C(r))break;let e=O(r,2);o=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),n=3}else if(2===n){if(8>C(r))break;let e=O(r,8),t=new DataView(e.buffer,e.byteOffset,e.length),i=t.getUint32(0);if(i>2097151){l.enqueue(c);break}o=0x100000000*i+t.getUint32(4),n=3}else{if(C(r)<o)break;let e=O(r,o);l.enqueue(x(a?e:i.decode(e),t)),n=0}if(0===o||o>e){l.enqueue(c);break}}}})}let I=4;function R(e){if(e)return j(e)}function j(e){for(var t in R.prototype)e[t]=R.prototype[t];return e}R.prototype.on=R.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},R.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this},R.prototype.off=R.prototype.removeListener=R.prototype.removeAllListeners=R.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<n.length;i++)if((r=n[i])===t||r.fn===t){n.splice(i,1);break}return 0===n.length&&delete this._callbacks["$"+e],this},R.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,i=r.length;n<i;++n)r[n].apply(this,t)}return this},R.prototype.emitReserved=R.prototype.emit,R.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},R.prototype.hasListeners=function(e){return!!this.listeners(e).length};let T="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),N="u">typeof self?self:"u">typeof window?window:Function("return this")(),P="arraybuffer";function B(){}function z(e,...t){return t.reduce((t,r)=>(e.hasOwnProperty(r)&&(t[r]=e[r]),t),{})}let L=N.setTimeout,D=N.clearTimeout;function F(e,t){t.useNativeTimers?(e.setTimeoutFn=L.bind(N),e.clearTimeoutFn=D.bind(N)):(e.setTimeoutFn=N.setTimeout.bind(N),e.clearTimeoutFn=N.clearTimeout.bind(N))}let H=1.33;function U(e){return"string"==typeof e?q(e):Math.ceil((e.byteLength||e.size)*H)}function q(e){let t=0,r=0;for(let n=0,i=e.length;n<i;n++)(t=e.charCodeAt(n))<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(n++,r+=4);return r}function W(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function V(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function K(e){let t={},r=e.split("&");for(let e=0,n=r.length;e<n;e++){let n=r[e].split("=");t[decodeURIComponent(n[0])]=decodeURIComponent(n[1])}return t}class G extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}}class X extends R{constructor(e){super(),this.writable=!1,F(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,r){return super.emitReserved("error",new G(e,t,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return("opening"===this.readyState||"open"===this.readyState)&&(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let t=x(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return -1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&443!==Number(this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){let t=V(e);return t.length?"?"+t:""}}class Z extends X{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let e=0;this._polling&&(e++,this.once("pollComplete",function(){--e||t()})),this.writable||(e++,this.once("drain",function(){--e||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let t=e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)};$(e,this.socket.binaryType).forEach(t),"closed"!==this.readyState&&(this._polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this._poll())}doClose(){let e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,S(e,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=W()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}}let Y=!1;try{Y="u">typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}let J=Y;function Q(){}class ee extends Z{constructor(e){if(super(e),"u">typeof location){const t="https:"===location.protocol;let r=location.port;r||(r=t?"443":"80"),this.xd="u">typeof location&&e.hostname!==location.hostname||r!==e.port}}doWrite(e,t){let r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(e,t)=>{this.onError("xhr post error",e,t)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(e,t)=>{this.onError("xhr poll error",e,t)}),this.pollXhr=e}}class et extends R{constructor(e,t,r){super(),this.createRequest=e,F(this,r),this._opts=r,this._method=r.method||"GET",this._uri=t,this._data=void 0!==r.data?r.data:null,this._create()}_create(){var e;let t=z(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;let r=this._xhr=this.createRequest(t);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders)for(let e in r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0),this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(e)&&r.setRequestHeader(e,this._opts.extraHeaders[e])}catch(e){}if("POST"===this._method)try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{r.setRequestHeader("Accept","*/*")}catch(e){}null==(e=this._opts.cookieJar)||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var e;3===r.readyState&&(null==(e=this._opts.cookieJar)||e.parseCookies(r.getResponseHeader("set-cookie"))),4===r.readyState&&(200===r.status||1223===r.status?this._onLoad():this.setTimeoutFn(()=>{this._onError("number"==typeof r.status?r.status:0)},0))},r.send(this._data)}catch(e){this.setTimeoutFn(()=>{this._onError(e)},0);return}"u">typeof document&&(this._index=et.requestsCount++,et.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(void 0!==this._xhr&&null!==this._xhr){if(this._xhr.onreadystatechange=Q,e)try{this._xhr.abort()}catch(e){}"u">typeof document&&delete et.requests[this._index],this._xhr=null}}_onLoad(){let e=this._xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}function er(){for(let e in et.requests)et.requests.hasOwnProperty(e)&&et.requests[e].abort()}et.requestsCount=0,et.requests={},"u">typeof document&&("function"==typeof attachEvent?attachEvent("onunload",er):"function"==typeof addEventListener&&addEventListener("onpagehide"in N?"pagehide":"unload",er,!1));let en=function(){let e=eo({xdomain:!1});return e&&null!==e.responseType}();class ei extends ee{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=en&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new et(eo,this.uri(),e)}}function eo(e){let t=e.xdomain;try{if("u">typeof XMLHttpRequest&&(!t||J))return new XMLHttpRequest}catch(e){}if(!t)try{return new N[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(e){}}let ea="u">typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class es extends X{get name(){return"websocket"}doOpen(){let e=this.uri(),t=this.opts.protocols,r=ea?{}:z(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,r)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],n=t===e.length-1;h(r,this.supportsBinary,e=>{try{this.doWrite(r,e)}catch(e){}n&&T(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=W()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}let el=N.WebSocket||N.MozWebSocket;class ec extends es{createSocket(e,t,r){return ea?new el(e,t,r):t?new el(e,t):new el(e)}doWrite(e,t){this.ws.send(t)}}class eu extends X{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{let t=M(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(t).getReader(),n=k();n.readable.pipeTo(e.writable),this._writer=n.writable.getWriter();let i=()=>{r.read().then(({done:e,value:t})=>{e||(this.onPacket(t),i())}).catch(e=>{})};i();let o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],n=t===e.length-1;this._writer.write(r).then(()=>{n&&T(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;null==(e=this._transport)||e.close()}}let ef={websocket:ec,webtransport:eu,polling:ei},ed=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,eh=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ep(e){if(e.length>8e3)throw"URI too long";let t=e,r=e.indexOf("["),n=e.indexOf("]");-1!=r&&-1!=n&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let i=ed.exec(e||""),o={},a=14;for(;a--;)o[eh[a]]=i[a]||"";return -1!=r&&-1!=n&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=em(o,o.path),o.queryKey=eg(o,o.query),o}function em(e,t){let r=/\/{2,9}/g,n=t.replace(r,"/").split("/");return("/"==t.slice(0,1)||0===t.length)&&n.splice(0,1),"/"==t.slice(-1)&&n.splice(n.length-1,1),n}function eg(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,n){t&&(r[t]=n)}),r}let eb="function"==typeof addEventListener&&"function"==typeof removeEventListener,ev=[];eb&&addEventListener("offline",()=>{ev.forEach(e=>e())},!1);class ey extends R{constructor(e,t={}){var r,n;if(super(),this.binaryType=P,this.writeBuffer=[],this._prevBufferLen=0,this._upgrades=[],this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&"object"==typeof e&&(t=e,e=null),e){const r=ep(e);t.hostname=r.host,t.secure="https"===r.protocol||"wss"===r.protocol,t.port=r.port,r.query&&(t.query=r.query)}else t.host&&(t.hostname=ep(t.host).host);if(F(this,t),this.secure=null!=t.secure?t.secure:"u">typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("u">typeof location?location.hostname:"localhost"),this.port=t.port||("u">typeof location&&location.port?location.port:this.secure?"443":"80"),t.transportImplementations&&t.transports)throw Error("specifying both 'transportImplementations' and 'transports' options is not supported");t.transportImplementations||(null==(r=t.transports)?void 0:r.length)&&"function"==typeof t.transports[0]?(this.transports=[],this._transportsByName=Object.create(null),(null!=(n=t.transportImplementations)?n:t.transports).forEach(e=>{let t=e.prototype.name;this.transports.push(t),this._transportsByName[t]=e})):(this.transports=t.transports?[...t.transports]:["polling","websocket","webtransport"],this._transportsByName=ef),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=K(this.opts.query)),eb&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},ev.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=B()),this._open()}createTransport(e){let t=Object.assign({},this.opts.query);t.EIO=I,t.transport=e,this.id&&(t.sid=this.id);let r=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](r)}_open(){if(0===this.transports.length)return void this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);let e=this.opts.rememberUpgrade&&ey.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket")?"websocket":this.transports[0];this.readyState="opening";let t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",e=>this._onClose("transport close",e))}_probe(e){let t=this.createTransport(e),r=!1;ey.priorWebsocketSuccess=!1;let n=()=>{r||(t.send([{type:"ping",data:"probe"}]),t.once("packet",e=>{if(!r)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;ey.priorWebsocketSuccess="websocket"===t.name,this.transport.pause(()=>{r||"closed"!==this.readyState&&(c(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{let e=Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}}))};function i(){r||(r=!0,c(),t.close(),t=null)}let o=e=>{let r=Error("probe error: "+e);r.transport=t.name,i(),this.emitReserved("upgradeError",r)};function a(){o("transport closed")}function s(){o("socket closed")}function l(e){t&&e.name!==t.name&&i()}let c=()=>{t.removeListener("open",n),t.removeListener("error",o),t.removeListener("close",a),this.off("close",s),this.off("upgrading",l)};t.once("open",n),t.once("error",o),t.once("close",a),this.once("close",s),this.once("upgrading",l),-1!==this._upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn(()=>{r||t.open()},200):t.open()}onOpen(){if(this.readyState="open",ey.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let t=Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._upgrades=this._filterUpgrades(e.upgrades),this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){let r=this.writeBuffer[t].data;if(r&&(e+=U(r)),t>0&&e>this._maxPayload)return this.writeBuffer.slice(0,t);e+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,T(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,r){return this._sendPacket("message",e,t,r),this}send(e,t,r){return this._sendPacket("message",e,t,r),this}_sendPacket(e,t,r,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof r&&(n=r,r=null),"closing"===this.readyState||"closed"===this.readyState)return;(r=r||{}).compress=!1!==r.compress;let i={type:e,data:t,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),n&&this.once("flush",n),this.flush()}close(){let e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},r=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return("opening"===this.readyState||"open"===this.readyState)&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():e()}):this.upgrading?r():e()),this}_onError(e){if(ey.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&"opening"===this.readyState)return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),eb&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let e=ev.indexOf(this._offlineEventListener);-1!==e&&ev.splice(e,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}_filterUpgrades(e){let t=[];for(let r=0;r<e.length;r++)~this.transports.indexOf(e[r])&&t.push(e[r]);return t}}function ew(e,t="",r){let n=e;r=r||"u">typeof location&&location,null==e&&(e=r.protocol+"//"+r.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?r.protocol+e:r.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==r?r.protocol+"//"+e:"https://"+e),n=ep(e)),!n.port&&(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";let i=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+i+":"+n.port+t,n.href=n.protocol+"://"+i+(r&&r.port===n.port?"":":"+n.port),n}ey.protocol=I,ey.protocol;let ex="function"==typeof ArrayBuffer,eA=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,eE=Object.prototype.toString,e_="function"==typeof Blob||"u">typeof Blob&&"[object BlobConstructor]"===eE.call(Blob),eS="function"==typeof File||"u">typeof File&&"[object FileConstructor]"===eE.call(File);function e$(e){return ex&&(e instanceof ArrayBuffer||eA(e))||e_&&e instanceof Blob||eS&&e instanceof File}function ek(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let t=0,r=e.length;t<r;t++)if(ek(e[t]))return!0;return!1}if(e$(e))return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1==arguments.length)return ek(e.toJSON(),!0);for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&ek(e[t]))return!0;return!1}function eC(e){let t=[],r=e.data,n=e;return n.data=eO(r,t),n.attachments=t.length,{packet:n,buffers:t}}function eO(e,t,r){if(!e)return e;if(e$(e)){let r={_placeholder:!0,num:t.length};return t.push(e),r}if(Array.isArray(e)){let r=Array(e.length);for(let n=0;n<e.length;n++)r[n]=eO(e[n],t);return r}if("object"==typeof e&&!(e instanceof Date)){if(e.toJSON&&"function"==typeof e.toJSON&&!r)return eO(e.toJSON(),t,!0);let n={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=eO(e[r],t));return n}return e}function eM(e,t){return e.data=eI(e.data,t),delete e.attachments,e}function eI(e,t){if(!e)return e;if(e&&!0===e._placeholder){if("number"==typeof e.num&&e.num>=0&&e.num<t.length)return t[e.num];throw Error("illegal attachments")}if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=eI(e[r],t);else if("object"==typeof e)for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=eI(e[r],t));return e}let eR=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],ej=5;!function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(o||(o={}));class eT{constructor(e){this.replacer=e}encode(e){return(e.type===o.EVENT||e.type===o.ACK)&&ek(e)?this.encodeAsBinary({type:e.type===o.EVENT?o.BINARY_EVENT:o.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===o.BINARY_EVENT||e.type===o.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){let t=eC(e),r=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(r),n}}class eN extends R{constructor(e){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},"function"==typeof e?{reviver:e}:e)}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw Error("got plaintext data when reconstructing a packet");let r=(t=this.decodeString(e)).type===o.BINARY_EVENT;r||t.type===o.BINARY_ACK?(t.type=r?o.EVENT:o.ACK,this.reconstructor=new eP(t)):super.emitReserved("decoded",t)}else if(e$(e)||e.base64)if(this.reconstructor)(t=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw Error("got binary data when not reconstructing a packet");else throw Error("Unknown type: "+e)}decodeString(e){let t=0,r={type:Number(e.charAt(0))};if(void 0===o[r.type])throw Error("unknown packet type "+r.type);if(r.type===o.BINARY_EVENT||r.type===o.BINARY_ACK){let n=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);let i=e.substring(n,t);if(i!=Number(i)||"-"!==e.charAt(t))throw Error("Illegal attachments");let o=Number(i);if(!ez(o)||o<1)throw Error("Illegal attachments");if(o>this.opts.maxAttachments)throw Error("too many attachments");r.attachments=o}if("/"===e.charAt(t+1)){let n=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);r.nsp=e.substring(n,t)}else r.nsp="/";let n=e.charAt(t+1);if(""!==n&&Number(n)==n){let n=t+1;for(;++t;){let r=e.charAt(t);if(null==r||Number(r)!=r){--t;break}if(t===e.length)break}r.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){let n=this.tryParse(e.substr(t));if(eN.isPayloadValid(r.type,n))r.data=n;else throw Error("invalid payload")}return r}tryParse(e){try{return JSON.parse(e,this.opts.reviver)}catch(e){return!1}}static isPayloadValid(e,t){switch(e){case o.CONNECT:return eD(t);case o.DISCONNECT:return void 0===t;case o.CONNECT_ERROR:return"string"==typeof t||eD(t);case o.EVENT:case o.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===eR.indexOf(t[0]));case o.ACK:case o.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class eP{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){let e=eM(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function eB(e){return"string"==typeof e}let ez=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e};function eL(e){return void 0===e||ez(e)}function eD(e){return"[object Object]"===Object.prototype.toString.call(e)}function eF(e,t){switch(e){case o.CONNECT:return void 0===t||eD(t);case o.DISCONNECT:return void 0===t;case o.EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===eR.indexOf(t[0]));case o.ACK:return Array.isArray(t);case o.CONNECT_ERROR:return"string"==typeof t||eD(t);default:return!1}}function eH(e){return eB(e.nsp)&&eL(e.id)&&eF(e.type,e.data)}function eU(e,t,r){return e.on(t,r),function(){e.off(t,r)}}let eq=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class eW extends R{constructor(e,t,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[eU(e,"open",this.onopen.bind(this)),eU(e,"packet",this.onpacket.bind(this)),eU(e,"error",this.onerror.bind(this)),eU(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var r,n,i;if(eq.hasOwnProperty(e))throw Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let a={type:o.EVENT,data:t};if(a.options={},a.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){let e=this.ids++,r=t.pop();this._registerAckCallback(e,r),a.id=e}let s=null==(n=null==(r=this.io.engine)?void 0:r.transport)?void 0:n.writable,l=this.connected&&!(null==(i=this.io.engine)?void 0:i._hasPingExpired());return this.flags.volatile&&!s||(l?(this.notifyOutgoingListeners(a),this.packet(a)):this.sendBuffer.push(a)),this.flags={},this}_registerAckCallback(e,t){var r;let n=null!=(r=this.flags.timeout)?r:this._opts.ackTimeout;if(void 0===n){this.acks[e]=t;return}let i=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,Error("operation has timed out"))},n),o=(...e)=>{this.io.clearTimeoutFn(i),t.apply(this,e)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...t){return new Promise((r,n)=>{let i=(e,t)=>e?n(e):r(t);i.withError=!0,t.push(i),this.emit(e,...t)})}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());let r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...n)=>(this._queue[0],null!==e?r.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...n)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;let t=this._queue[0];(!t.pending||e)&&(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:o.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){let t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case o.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case o.EVENT:case o.BINARY_EVENT:this.onevent(e);break;case o.ACK:case o.BINARY_ACK:this.onack(e);break;case o.DISCONNECT:this.ondisconnect();break;case o.CONNECT_ERROR:this.destroy();let t=Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){let t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length)for(let t of this._anyListeners.slice())t.apply(this,e);super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,r=!1;return function(...n){r||(r=!0,t.packet({type:o.ACK,id:e,data:n}))}}onack(e){let t=this.acks[e.id];"function"==typeof t&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:o.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let r=0;r<t.length;r++)if(e===t[r]){t.splice(r,1);break}}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let r=0;r<t.length;r++)if(e===t[r]){t.splice(r,1);break}}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length)for(let t of this._anyOutgoingListeners.slice())t.apply(this,e.data)}}function eV(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}eV.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=(1&Math.floor(10*t))==0?e-r:e+r}return 0|Math.min(e,this.max)},eV.prototype.reset=function(){this.attempts=0},eV.prototype.setMin=function(e){this.ms=e},eV.prototype.setMax=function(e){this.max=e},eV.prototype.setJitter=function(e){this.jitter=e};class eK extends R{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,F(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!=(r=t.randomizationFactor)?r:.5),this.backoff=new eV({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const n=t.parser||a;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null==(t=this.backoff)||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null==(t=this.backoff)||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null==(t=this.backoff)||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new ey(this.uri,this.opts);let t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;let n=eU(t,"open",function(){r.onopen(),e&&e()}),i=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},o=eU(t,"error",i);if(!1!==this._timeout){let e=this._timeout,r=this.setTimeoutFn(()=>{n(),i(Error("timeout")),t.close()},e);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}return this.subs.push(n),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(eU(e,"ping",this.onping.bind(this)),eU(e,"data",this.ondata.bind(this)),eU(e,"error",this.onerror.bind(this)),eU(e,"close",this.onclose.bind(this)),eU(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){T(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new eW(this,e,t),this.nsps[e]=r),r}_destroy(e){for(let e of Object.keys(this.nsps))if(this.nsps[e].active)return;this._close()}_packet(e){let t=this.encoder.encode(e);for(let r=0;r<t.length;r++)this.engine.write(t[r],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var r;this.cleanup(),null==(r=this.engine)||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let r=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()}))},t);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}let eG={};function eX(e,t){let r;"object"==typeof e&&(t=e,e=void 0);let n=ew(e,(t=t||{}).path||"/socket.io"),i=n.source,o=n.id,a=n.path,s=eG[o]&&a in eG[o].nsps;return t.forceNew||t["force new connection"]||!1===t.multiplex||s?r=new eK(i,t):(eG[o]||(eG[o]=new eK(i,t)),r=eG[o]),n.query&&!t.query&&(t.query=n.queryKey),r.socket(n.path,t)}Object.assign(eX,{Manager:eK,Socket:eW,io:eX,connect:eX})},28526(e,t,r){"use strict";let n;r.d(t,{A:()=>c});let i="u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),o=new Uint8Array(16);function a(){if(!n){if("u"<typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");n=crypto.getRandomValues.bind(crypto)}return n(o)}let s=[];for(let e=0;e<256;++e)s.push((e+256).toString(16).slice(1));function l(e,t=0){return(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase()}let c=function(e,t,r){if(i&&!t&&!e)return i();let n=(e=e||{}).random??e.rng?.()??a();if(n.length<16)throw Error("Random bytes length must be >= 16");if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){if((r=r||0)<0||r+16>t.length)throw RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[r+e]=n[e];return t}return l(n)}},10749(e,t,r){"use strict";r.d(t,{G:()=>o,eq:()=>i});var n=r(83738);let i=n.ZS.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class o extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},r={_errors:[]},n=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(n);else if("invalid_return_type"===i.code)n(i.returnTypeError);else if("invalid_arguments"===i.code)n(i.argumentsError);else if(0===i.path.length)r._errors.push(t(i));else{let e=r,n=0;for(;n<i.path.length;){let r=i.path[n];n===i.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(i))):e[r]=e[r]||{_errors:[]},e=e[r],n++}}};return n(this),r}static assert(e){if(!(e instanceof o))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,n.ZS.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},r=[];for(let n of this.issues)if(n.path.length>0){let r=n.path[0];t[r]=t[r]||[],t[r].push(e(n))}else r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}o.create=e=>new o(e)},83738(e,t,r){"use strict";var n,i;r.d(t,{CR:()=>a,ZS:()=>n,Zp:()=>o}),function(e){e.assertEqual=e=>{},e.assertIs=function(e){},e.assertNever=function(e){throw Error()},e.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},e.getValidEnumValues=t=>{let r=e.objectKeys(t).filter(e=>"number"!=typeof t[t[e]]),n={};for(let e of r)n[e]=t[e];return e.objectValues(n)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},e.find=(e,t)=>{for(let r of e)if(t(r))return r},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(n||(n={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(i||(i={}));let o=n.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),a=e=>{switch(typeof e){case"undefined":return o.undefined;case"string":return o.string;case"number":return Number.isNaN(e)?o.nan:o.number;case"boolean":return o.boolean;case"function":return o.function;case"bigint":return o.bigint;case"symbol":return o.symbol;case"object":if(Array.isArray(e))return o.array;if(null===e)return o.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return o.promise;if("u">typeof Map&&e instanceof Map)return o.map;if("u">typeof Set&&e instanceof Set)return o.set;if("u">typeof Date&&e instanceof Date)return o.date;return o.object;default:return o.unknown}}},88403(e,t,r){"use strict";let n;r.d(t,{k5:()=>eq,gM:()=>eF,g1:()=>eH,kY:()=>o,ai:()=>eP,zM:()=>eB,Ik:()=>eL,YO:()=>ez,Yj:()=>eN,eu:()=>eU,KC:()=>eD});var i,o,a=r(10749),s=r(83738);let l=(e,t)=>{let r;switch(e.code){case a.eq.invalid_type:r=e.received===s.Zp.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case a.eq.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,s.ZS.jsonStringifyReplacer)}`;break;case a.eq.unrecognized_keys:r=`Unrecognized key(s) in object: ${s.ZS.joinValues(e.keys,", ")}`;break;case a.eq.invalid_union:r="Invalid input";break;case a.eq.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${s.ZS.joinValues(e.options)}`;break;case a.eq.invalid_enum_value:r=`Invalid enum value. Expected ${s.ZS.joinValues(e.options)}, received '${e.received}'`;break;case a.eq.invalid_arguments:r="Invalid function arguments";break;case a.eq.invalid_return_type:r="Invalid function return type";break;case a.eq.invalid_date:r="Invalid date";break;case a.eq.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:s.ZS.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case a.eq.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case a.eq.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case a.eq.custom:r="Invalid input";break;case a.eq.invalid_intersection_types:r="Intersection results could not be merged";break;case a.eq.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case a.eq.not_finite:r="Number must be finite";break;default:r=t.defaultError,s.ZS.assertNever(e)}return{message:r}},c=l;function u(){return c}!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:e?.message}(i||(i={}));let f=e=>{let{data:t,path:r,errorMaps:n,issueData:i}=e,o=[...r,...i.path||[]],a={...i,path:o};if(void 0!==i.message)return{...i,path:o,message:i.message};let s="";for(let e of n.filter(e=>!!e).slice().reverse())s=e(a,{data:t,defaultError:s}).message;return{...i,path:o,message:s}};function d(e,t){let r=u(),n=f({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===l?void 0:l].filter(e=>!!e)});e.common.issues.push(n)}class h{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let r=[];for(let n of t){if("aborted"===n.status)return p;"dirty"===n.status&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let e of t){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return h.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let n of t){let{key:t,value:i}=n;if("aborted"===t.status||"aborted"===i.status)return p;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==i.value||n.alwaysSet)&&(r[t.value]=i.value)}return{status:e.value,value:r}}}let p=Object.freeze({status:"aborted"}),m=e=>({status:"dirty",value:e}),g=e=>({status:"valid",value:e}),b=e=>"aborted"===e.status,v=e=>"dirty"===e.status,y=e=>"valid"===e.status,w=e=>"u">typeof Promise&&e instanceof Promise;class x{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let A=(e,t)=>{if(y(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new a.G(e.common.issues);return this._error=t,this._error}}};function E(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:o}=e;return"invalid_enum_value"===t.code?{message:o??i.defaultError}:void 0===i.data?{message:o??n??i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:o??r??i.defaultError}},description:i}}class _{get description(){return this._def.description}_getType(e){return(0,s.CR)(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:(0,s.CR)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new h,ctx:{common:e.parent.common,data:e.data,parsedType:(0,s.CR)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(w(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){let r={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,s.CR)(e)},n=this._parseSync({data:e,path:r.path,parent:r});return A(r,n)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,s.CR)(e)};if(!this["~standard"].async)try{let r=this._parseSync({data:e,path:[],parent:t});return y(r)?{value:r.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>y(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,s.CR)(e)},n=this._parse({data:e,path:r.path,parent:r});return A(r,await (w(n)?n:Promise.resolve(n)))}refine(e,t){let r=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,n)=>{let i=e(t),o=()=>n.addIssue({code:a.eq.custom,...r(t)});return"u">typeof Promise&&i instanceof Promise?i.then(e=>!!e||(o(),!1)):!!i||(o(),!1)})}refinement(e,t){return this._refinement((r,n)=>!!e(r)||(n.addIssue("function"==typeof t?t(r,n):t),!1))}_refinement(e){return new e$({schema:this,typeName:o.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return ek.create(this,this._def)}nullable(){return eC.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return es.create(this)}promise(){return eS.create(this,this._def)}or(e){return eu.create([this,e],this._def)}and(e){return ep.create(this,e,this._def)}transform(e){return new e$({...E(this._def),schema:this,typeName:o.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let t="function"==typeof e?e:()=>e;return new eO({...E(this._def),innerType:this,defaultValue:t,typeName:o.ZodDefault})}brand(){return new eR({typeName:o.ZodBranded,type:this,...E(this._def)})}catch(e){let t="function"==typeof e?e:()=>e;return new eM({...E(this._def),innerType:this,catchValue:t,typeName:o.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return ej.create(this,e)}readonly(){return eT.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let S=/^c[^\s-]{8,}$/i,$=/^[0-9a-z]+$/,k=/^[0-9A-HJKMNP-TV-Z]{26}$/i,C=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,O=/^[a-z0-9_-]{21}$/i,M=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,I=/^[-+]?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)?)??$/,R=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,j="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",T=/^(?:(?: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])$/,N=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,P=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,B=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,z=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,L=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,D="((\\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])))",F=RegExp(`^${D}$`);function H(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function U(e){return RegExp(`^${H(e)}$`)}function q(e){let t=`${D}T${H(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,RegExp(`^${t}$`)}function W(e,t){return!!(("v4"===t||!t)&&T.test(e)||("v6"===t||!t)&&P.test(e))}function V(e,t){if(!M.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),i=JSON.parse(atob(n));if("object"!=typeof i||null===i||"typ"in i&&i?.typ!=="JWT"||!i.alg||t&&i.alg!==t)return!1;return!0}catch{return!1}}function K(e,t){return!!(("v4"===t||!t)&&N.test(e)||("v6"===t||!t)&&B.test(e))}class G extends _{_parse(e){let t;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==s.Zp.string){let t=this._getOrReturnCtx(e);return d(t,{code:a.eq.invalid_type,expected:s.Zp.string,received:t.parsedType}),p}let r=new h;for(let i of this._def.checks)if("min"===i.kind)e.data.length<i.value&&(d(t=this._getOrReturnCtx(e,t),{code:a.eq.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if("max"===i.kind)e.data.length>i.value&&(d(t=this._getOrReturnCtx(e,t),{code:a.eq.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if("length"===i.kind){let n=e.data.length>i.value,o=e.data.length<i.value;(n||o)&&(t=this._getOrReturnCtx(e,t),n?d(t,{code:a.eq.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):o&&d(t,{code:a.eq.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if("email"===i.kind)R.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"email",code:a.eq.invalid_string,message:i.message}),r.dirty());else if("emoji"===i.kind)n||(n=RegExp(j,"u")),n.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"emoji",code:a.eq.invalid_string,message:i.message}),r.dirty());else if("uuid"===i.kind)C.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"uuid",code:a.eq.invalid_string,message:i.message}),r.dirty());else if("nanoid"===i.kind)O.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"nanoid",code:a.eq.invalid_string,message:i.message}),r.dirty());else if("cuid"===i.kind)S.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"cuid",code:a.eq.invalid_string,message:i.message}),r.dirty());else if("cuid2"===i.kind)$.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"cuid2",code:a.eq.invalid_string,message:i.message}),r.dirty());else if("ulid"===i.kind)k.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"ulid",code:a.eq.invalid_string,message:i.message}),r.dirty());else if("url"===i.kind)try{new URL(e.data)}catch{d(t=this._getOrReturnCtx(e,t),{validation:"url",code:a.eq.invalid_string,message:i.message}),r.dirty()}else"regex"===i.kind?(i.regex.lastIndex=0,i.regex.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"regex",code:a.eq.invalid_string,message:i.message}),r.dirty())):"trim"===i.kind?e.data=e.data.trim():"includes"===i.kind?e.data.includes(i.value,i.position)||(d(t=this._getOrReturnCtx(e,t),{code:a.eq.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):"toLowerCase"===i.kind?e.data=e.data.toLowerCase():"toUpperCase"===i.kind?e.data=e.data.toUpperCase():"startsWith"===i.kind?e.data.startsWith(i.value)||(d(t=this._getOrReturnCtx(e,t),{code:a.eq.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):"endsWith"===i.kind?e.data.endsWith(i.value)||(d(t=this._getOrReturnCtx(e,t),{code:a.eq.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):"datetime"===i.kind?q(i).test(e.data)||(d(t=this._getOrReturnCtx(e,t),{code:a.eq.invalid_string,validation:"datetime",message:i.message}),r.dirty()):"date"===i.kind?F.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{code:a.eq.invalid_string,validation:"date",message:i.message}),r.dirty()):"time"===i.kind?U(i).test(e.data)||(d(t=this._getOrReturnCtx(e,t),{code:a.eq.invalid_string,validation:"time",message:i.message}),r.dirty()):"duration"===i.kind?I.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"duration",code:a.eq.invalid_string,message:i.message}),r.dirty()):"ip"===i.kind?W(e.data,i.version)||(d(t=this._getOrReturnCtx(e,t),{validation:"ip",code:a.eq.invalid_string,message:i.message}),r.dirty()):"jwt"===i.kind?V(e.data,i.alg)||(d(t=this._getOrReturnCtx(e,t),{validation:"jwt",code:a.eq.invalid_string,message:i.message}),r.dirty()):"cidr"===i.kind?K(e.data,i.version)||(d(t=this._getOrReturnCtx(e,t),{validation:"cidr",code:a.eq.invalid_string,message:i.message}),r.dirty()):"base64"===i.kind?z.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"base64",code:a.eq.invalid_string,message:i.message}),r.dirty()):"base64url"===i.kind?L.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"base64url",code:a.eq.invalid_string,message:i.message}),r.dirty()):s.ZS.assertNever(i);return{status:r.value,value:e.data}}_regex(e,t,r){return this.refinement(t=>e.test(t),{validation:t,code:a.eq.invalid_string,...i.errToObj(r)})}_addCheck(e){return new G({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...i.errToObj(e)})}url(e){return this._addCheck({kind:"url",...i.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...i.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...i.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...i.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...i.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...i.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...i.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...i.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...i.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...i.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...i.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...i.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...i.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...i.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...i.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...i.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...i.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...i.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...i.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...i.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...i.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...i.errToObj(t)})}nonempty(e){return this.min(1,i.errToObj(e))}trim(){return new G({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new G({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new G({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function X(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n;return Number.parseInt(e.toFixed(i).replace(".",""))%Number.parseInt(t.toFixed(i).replace(".",""))/10**i}G.create=e=>new G({checks:[],typeName:o.ZodString,coerce:e?.coerce??!1,...E(e)});class Z extends _{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==s.Zp.number){let t=this._getOrReturnCtx(e);return d(t,{code:a.eq.invalid_type,expected:s.Zp.number,received:t.parsedType}),p}let r=new h;for(let n of this._def.checks)"int"===n.kind?s.ZS.isInteger(e.data)||(d(t=this._getOrReturnCtx(e,t),{code:a.eq.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty()):"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(d(t=this._getOrReturnCtx(e,t),{code:a.eq.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(d(t=this._getOrReturnCtx(e,t),{code:a.eq.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"multipleOf"===n.kind?0!==X(e.data,n.value)&&(d(t=this._getOrReturnCtx(e,t),{code:a.eq.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(d(t=this._getOrReturnCtx(e,t),{code:a.eq.not_finite,message:n.message}),r.dirty()):s.ZS.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,i.toString(t))}gt(e,t){return this.setLimit("min",e,!1,i.toString(t))}lte(e,t){return this.setLimit("max",e,!0,i.toString(t))}lt(e,t){return this.setLimit("max",e,!1,i.toString(t))}setLimit(e,t,r,n){return new Z({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:i.toString(n)}]})}_addCheck(e){return new Z({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:i.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:i.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:i.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:i.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:i.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:i.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:i.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:i.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:i.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&s.ZS.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks)if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;else"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value);return Number.isFinite(t)&&Number.isFinite(e)}}Z.create=e=>new Z({checks:[],typeName:o.ZodNumber,coerce:e?.coerce||!1,...E(e)});class Y extends _{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==s.Zp.bigint)return this._getInvalidInput(e);let r=new h;for(let n of this._def.checks)"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(d(t=this._getOrReturnCtx(e,t),{code:a.eq.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(d(t=this._getOrReturnCtx(e,t),{code:a.eq.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(d(t=this._getOrReturnCtx(e,t),{code:a.eq.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):s.ZS.assertNever(n);return{status:r.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return d(t,{code:a.eq.invalid_type,expected:s.Zp.bigint,received:t.parsedType}),p}gte(e,t){return this.setLimit("min",e,!0,i.toString(t))}gt(e,t){return this.setLimit("min",e,!1,i.toString(t))}lte(e,t){return this.setLimit("max",e,!0,i.toString(t))}lt(e,t){return this.setLimit("max",e,!1,i.toString(t))}setLimit(e,t,r,n){return new Y({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:i.toString(n)}]})}_addCheck(e){return new Y({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:i.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:i.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:i.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:i.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:i.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}Y.create=e=>new Y({checks:[],typeName:o.ZodBigInt,coerce:e?.coerce??!1,...E(e)});class J extends _{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==s.Zp.boolean){let t=this._getOrReturnCtx(e);return d(t,{code:a.eq.invalid_type,expected:s.Zp.boolean,received:t.parsedType}),p}return g(e.data)}}J.create=e=>new J({typeName:o.ZodBoolean,coerce:e?.coerce||!1,...E(e)});class Q extends _{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==s.Zp.date){let t=this._getOrReturnCtx(e);return d(t,{code:a.eq.invalid_type,expected:s.Zp.date,received:t.parsedType}),p}if(Number.isNaN(e.data.getTime()))return d(this._getOrReturnCtx(e),{code:a.eq.invalid_date}),p;let r=new h;for(let n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(d(t=this._getOrReturnCtx(e,t),{code:a.eq.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),r.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(d(t=this._getOrReturnCtx(e,t),{code:a.eq.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):s.ZS.assertNever(n);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Q({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:i.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:i.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}Q.create=e=>new Q({checks:[],coerce:e?.coerce||!1,typeName:o.ZodDate,...E(e)});class ee extends _{_parse(e){if(this._getType(e)!==s.Zp.symbol){let t=this._getOrReturnCtx(e);return d(t,{code:a.eq.invalid_type,expected:s.Zp.symbol,received:t.parsedType}),p}return g(e.data)}}ee.create=e=>new ee({typeName:o.ZodSymbol,...E(e)});class et extends _{_parse(e){if(this._getType(e)!==s.Zp.undefined){let t=this._getOrReturnCtx(e);return d(t,{code:a.eq.invalid_type,expected:s.Zp.undefined,received:t.parsedType}),p}return g(e.data)}}et.create=e=>new et({typeName:o.ZodUndefined,...E(e)});class er extends _{_parse(e){if(this._getType(e)!==s.Zp.null){let t=this._getOrReturnCtx(e);return d(t,{code:a.eq.invalid_type,expected:s.Zp.null,received:t.parsedType}),p}return g(e.data)}}er.create=e=>new er({typeName:o.ZodNull,...E(e)});class en extends _{constructor(){super(...arguments),this._any=!0}_parse(e){return g(e.data)}}en.create=e=>new en({typeName:o.ZodAny,...E(e)});class ei extends _{constructor(){super(...arguments),this._unknown=!0}_parse(e){return g(e.data)}}ei.create=e=>new ei({typeName:o.ZodUnknown,...E(e)});class eo extends _{_parse(e){let t=this._getOrReturnCtx(e);return d(t,{code:a.eq.invalid_type,expected:s.Zp.never,received:t.parsedType}),p}}eo.create=e=>new eo({typeName:o.ZodNever,...E(e)});class ea extends _{_parse(e){if(this._getType(e)!==s.Zp.undefined){let t=this._getOrReturnCtx(e);return d(t,{code:a.eq.invalid_type,expected:s.Zp.void,received:t.parsedType}),p}return g(e.data)}}ea.create=e=>new ea({typeName:o.ZodVoid,...E(e)});class es extends _{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==s.Zp.array)return d(t,{code:a.eq.invalid_type,expected:s.Zp.array,received:t.parsedType}),p;if(null!==n.exactLength){let e=t.data.length>n.exactLength.value,i=t.data.length<n.exactLength.value;(e||i)&&(d(t,{code:e?a.eq.too_big:a.eq.too_small,minimum:i?n.exactLength.value:void 0,maximum:e?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),r.dirty())}if(null!==n.minLength&&t.data.length<n.minLength.value&&(d(t,{code:a.eq.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),r.dirty()),null!==n.maxLength&&t.data.length>n.maxLength.value&&(d(t,{code:a.eq.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>n.type._parseAsync(new x(t,e,t.path,r)))).then(e=>h.mergeArray(r,e));let i=[...t.data].map((e,r)=>n.type._parseSync(new x(t,e,t.path,r)));return h.mergeArray(r,i)}get element(){return this._def.type}min(e,t){return new es({...this._def,minLength:{value:e,message:i.toString(t)}})}max(e,t){return new es({...this._def,maxLength:{value:e,message:i.toString(t)}})}length(e,t){return new es({...this._def,exactLength:{value:e,message:i.toString(t)}})}nonempty(e){return this.min(1,e)}}function el(e){if(e instanceof ec){let t={};for(let r in e.shape){let n=e.shape[r];t[r]=ek.create(el(n))}return new ec({...e._def,shape:()=>t})}if(e instanceof es)return new es({...e._def,type:el(e.element)});if(e instanceof ek)return ek.create(el(e.unwrap()));if(e instanceof eC)return eC.create(el(e.unwrap()));if(e instanceof em)return em.create(e.items.map(e=>el(e)));else return e}es.create=(e,t)=>new es({type:e,minLength:null,maxLength:null,exactLength:null,typeName:o.ZodArray,...E(t)});class ec extends _{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=s.ZS.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==s.Zp.object){let t=this._getOrReturnCtx(e);return d(t,{code:a.eq.invalid_type,expected:s.Zp.object,received:t.parsedType}),p}let{status:t,ctx:r}=this._processInputParams(e),{shape:n,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof eo&&"strip"===this._def.unknownKeys))for(let e in r.data)i.includes(e)||o.push(e);let l=[];for(let e of i){let t=n[e],i=r.data[e];l.push({key:{status:"valid",value:e},value:t._parse(new x(r,i,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof eo){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of o)l.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)o.length>0&&(d(r,{code:a.eq.unrecognized_keys,keys:o}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of o){let n=r.data[t];l.push({key:{status:"valid",value:t},value:e._parse(new x(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of l){let r=await t.key,n=await t.value;e.push({key:r,value:n,alwaysSet:t.alwaysSet})}return e}).then(e=>h.mergeObjectSync(t,e)):h.mergeObjectSync(t,l)}get shape(){return this._def.shape()}strict(e){return i.errToObj,new ec({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{let n=this._def.errorMap?.(t,r).message??r.defaultError;return"unrecognized_keys"===t.code?{message:i.errToObj(e).message??n}:{message:n}}}:{}})}strip(){return new ec({...this._def,unknownKeys:"strip"})}passthrough(){return new ec({...this._def,unknownKeys:"passthrough"})}extend(e){return new ec({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ec({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:o.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ec({...this._def,catchall:e})}pick(e){let t={};for(let r of s.ZS.objectKeys(e))e[r]&&this.shape[r]&&(t[r]=this.shape[r]);return new ec({...this._def,shape:()=>t})}omit(e){let t={};for(let r of s.ZS.objectKeys(this.shape))e[r]||(t[r]=this.shape[r]);return new ec({...this._def,shape:()=>t})}deepPartial(){return el(this)}partial(e){let t={};for(let r of s.ZS.objectKeys(this.shape)){let n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()}return new ec({...this._def,shape:()=>t})}required(e){let t={};for(let r of s.ZS.objectKeys(this.shape))if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof ek;)e=e._def.innerType;t[r]=e}return new ec({...this._def,shape:()=>t})}keyof(){return eA(s.ZS.objectKeys(this.shape))}}ec.create=(e,t)=>new ec({shape:()=>e,unknownKeys:"strip",catchall:eo.create(),typeName:o.ZodObject,...E(t)}),ec.strictCreate=(e,t)=>new ec({shape:()=>e,unknownKeys:"strict",catchall:eo.create(),typeName:o.ZodObject,...E(t)}),ec.lazycreate=(e,t)=>new ec({shape:e,unknownKeys:"strip",catchall:eo.create(),typeName:o.ZodObject,...E(t)});class eu extends _{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;function n(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new a.G(e.ctx.common.issues));return d(t,{code:a.eq.invalid_union,unionErrors:r}),p}if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(n);{let e,n=[];for(let i of r){let r={...t,common:{...t.common,issues:[]},parent:null},o=i._parseSync({data:t.data,path:t.path,parent:r});if("valid"===o.status)return o;"dirty"!==o.status||e||(e={result:o,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=n.map(e=>new a.G(e));return d(t,{code:a.eq.invalid_union,unionErrors:i}),p}}get options(){return this._def.options}}eu.create=(e,t)=>new eu({options:e,typeName:o.ZodUnion,...E(t)});let ef=e=>{if(e instanceof ew)return ef(e.schema);if(e instanceof e$)return ef(e.innerType());if(e instanceof ex)return[e.value];if(e instanceof eE)return e.options;if(e instanceof e_)return s.ZS.objectValues(e.enum);else if(e instanceof eO)return ef(e._def.innerType);else if(e instanceof et)return[void 0];else if(e instanceof er)return[null];else if(e instanceof ek)return[void 0,...ef(e.unwrap())];else if(e instanceof eC)return[null,...ef(e.unwrap())];else if(e instanceof eR)return ef(e.unwrap());else if(e instanceof eT)return ef(e.unwrap());else if(e instanceof eM)return ef(e._def.innerType);else return[]};class ed extends _{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==s.Zp.object)return d(t,{code:a.eq.invalid_type,expected:s.Zp.object,received:t.parsedType}),p;let r=this.discriminator,n=t.data[r],i=this.optionsMap.get(n);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(d(t,{code:a.eq.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),p)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let n=new Map;for(let r of t){let t=ef(r.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of t){if(n.has(i))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);n.set(i,r)}}return new ed({typeName:o.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...E(r)})}}function eh(e,t){let r=(0,s.CR)(e),n=(0,s.CR)(t);if(e===t)return{valid:!0,data:e};if(r===s.Zp.object&&n===s.Zp.object){let r=s.ZS.objectKeys(t),n=s.ZS.objectKeys(e).filter(e=>-1!==r.indexOf(e)),i={...e,...t};for(let r of n){let n=eh(e[r],t[r]);if(!n.valid)return{valid:!1};i[r]=n.data}return{valid:!0,data:i}}if(r===s.Zp.array&&n===s.Zp.array){if(e.length!==t.length)return{valid:!1};let r=[];for(let n=0;n<e.length;n++){let i=eh(e[n],t[n]);if(!i.valid)return{valid:!1};r.push(i.data)}return{valid:!0,data:r}}if(r===s.Zp.date&&n===s.Zp.date&&+e==+t)return{valid:!0,data:e};return{valid:!1}}class ep extends _{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=(e,n)=>{if(b(e)||b(n))return p;let i=eh(e.value,n.value);return i.valid?((v(e)||v(n))&&t.dirty(),{status:t.value,value:i.data}):(d(r,{code:a.eq.invalid_intersection_types}),p)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([e,t])=>n(e,t)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}ep.create=(e,t,r)=>new ep({left:e,right:t,typeName:o.ZodIntersection,...E(r)});class em extends _{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==s.Zp.array)return d(r,{code:a.eq.invalid_type,expected:s.Zp.array,received:r.parsedType}),p;if(r.data.length<this._def.items.length)return d(r,{code:a.eq.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),p;!this._def.rest&&r.data.length>this._def.items.length&&(d(r,{code:a.eq.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let n=[...r.data].map((e,t)=>{let n=this._def.items[t]||this._def.rest;return n?n._parse(new x(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(n).then(e=>h.mergeArray(t,e)):h.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new em({...this._def,rest:e})}}em.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new em({items:e,typeName:o.ZodTuple,rest:null,...E(t)})};class eg extends _{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==s.Zp.object)return d(r,{code:a.eq.invalid_type,expected:s.Zp.object,received:r.parsedType}),p;let n=[],i=this._def.keyType,o=this._def.valueType;for(let e in r.data)n.push({key:i._parse(new x(r,e,r.path,e)),value:o._parse(new x(r,r.data[e],r.path,e)),alwaysSet:e in r.data});return r.common.async?h.mergeObjectAsync(t,n):h.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,r){return new eg(t instanceof _?{keyType:e,valueType:t,typeName:o.ZodRecord,...E(r)}:{keyType:G.create(),valueType:e,typeName:o.ZodRecord,...E(t)})}}class eb extends _{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==s.Zp.map)return d(r,{code:a.eq.invalid_type,expected:s.Zp.map,received:r.parsedType}),p;let n=this._def.keyType,i=this._def.valueType,o=[...r.data.entries()].map(([e,t],o)=>({key:n._parse(new x(r,e,r.path,[o,"key"])),value:i._parse(new x(r,t,r.path,[o,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of o){let n=await r.key,i=await r.value;if("aborted"===n.status||"aborted"===i.status)return p;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of o){let n=r.key,i=r.value;if("aborted"===n.status||"aborted"===i.status)return p;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}}}}eb.create=(e,t,r)=>new eb({valueType:t,keyType:e,typeName:o.ZodMap,...E(r)});class ev extends _{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==s.Zp.set)return d(r,{code:a.eq.invalid_type,expected:s.Zp.set,received:r.parsedType}),p;let n=this._def;null!==n.minSize&&r.data.size<n.minSize.value&&(d(r,{code:a.eq.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),null!==n.maxSize&&r.data.size>n.maxSize.value&&(d(r,{code:a.eq.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());let i=this._def.valueType;function o(e){let r=new Set;for(let n of e){if("aborted"===n.status)return p;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}let l=[...r.data.values()].map((e,t)=>i._parse(new x(r,e,r.path,t)));return r.common.async?Promise.all(l).then(e=>o(e)):o(l)}min(e,t){return new ev({...this._def,minSize:{value:e,message:i.toString(t)}})}max(e,t){return new ev({...this._def,maxSize:{value:e,message:i.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ev.create=(e,t)=>new ev({valueType:e,minSize:null,maxSize:null,typeName:o.ZodSet,...E(t)});class ey extends _{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==s.Zp.function)return d(t,{code:a.eq.invalid_type,expected:s.Zp.function,received:t.parsedType}),p;function r(e,r){return f({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,u(),l].filter(e=>!!e),issueData:{code:a.eq.invalid_arguments,argumentsError:r}})}function n(e,r){return f({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,u(),l].filter(e=>!!e),issueData:{code:a.eq.invalid_return_type,returnTypeError:r}})}let i={errorMap:t.common.contextualErrorMap},o=t.data;if(this._def.returns instanceof eS){let e=this;return g(async function(...t){let s=new a.G([]),l=await e._def.args.parseAsync(t,i).catch(e=>{throw s.addIssue(r(t,e)),s}),c=await Reflect.apply(o,this,l);return await e._def.returns._def.type.parseAsync(c,i).catch(e=>{throw s.addIssue(n(c,e)),s})})}{let e=this;return g(function(...t){let s=e._def.args.safeParse(t,i);if(!s.success)throw new a.G([r(t,s.error)]);let l=Reflect.apply(o,this,s.data),c=e._def.returns.safeParse(l,i);if(!c.success)throw new a.G([n(l,c.error)]);return c.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new ey({...this._def,args:em.create(e).rest(ei.create())})}returns(e){return new ey({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new ey({args:e||em.create([]).rest(ei.create()),returns:t||ei.create(),typeName:o.ZodFunction,...E(r)})}}class ew extends _{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}ew.create=(e,t)=>new ew({getter:e,typeName:o.ZodLazy,...E(t)});class ex extends _{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return d(t,{received:t.data,code:a.eq.invalid_literal,expected:this._def.value}),p}return{status:"valid",value:e.data}}get value(){return this._def.value}}function eA(e,t){return new eE({values:e,typeName:o.ZodEnum,...E(t)})}ex.create=(e,t)=>new ex({value:e,typeName:o.ZodLiteral,...E(t)});class eE extends _{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return d(t,{expected:s.ZS.joinValues(r),received:t.parsedType,code:a.eq.invalid_type}),p}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return d(t,{received:t.data,code:a.eq.invalid_enum_value,options:r}),p}return g(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return eE.create(e,{...this._def,...t})}exclude(e,t=this._def){return eE.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}eE.create=eA;class e_ extends _{_parse(e){let t=s.ZS.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==s.Zp.string&&r.parsedType!==s.Zp.number){let e=s.ZS.objectValues(t);return d(r,{expected:s.ZS.joinValues(e),received:r.parsedType,code:a.eq.invalid_type}),p}if(this._cache||(this._cache=new Set(s.ZS.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=s.ZS.objectValues(t);return d(r,{received:r.data,code:a.eq.invalid_enum_value,options:e}),p}return g(e.data)}get enum(){return this._def.values}}e_.create=(e,t)=>new e_({values:e,typeName:o.ZodNativeEnum,...E(t)});class eS extends _{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==s.Zp.promise&&!1===t.common.async?(d(t,{code:a.eq.invalid_type,expected:s.Zp.promise,received:t.parsedType}),p):g((t.parsedType===s.Zp.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}eS.create=(e,t)=>new eS({type:e,typeName:o.ZodPromise,...E(t)});class e$ extends _{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===o.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,i={addIssue:e=>{d(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===n.type){let e=n.transform(r.data,i);if(r.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return p;let n=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===n.status?p:"dirty"===n.status||"dirty"===t.value?m(n.value):n});{if("aborted"===t.value)return p;let n=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===n.status?p:"dirty"===n.status||"dirty"===t.value?m(n.value):n}}if("refinement"===n.type){let e=e=>{let t=n.refinement(e,i);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?p:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let n=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===n.status?p:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}}if("transform"===n.type)if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>y(e)?Promise.resolve(n.transform(e.value,i)).then(e=>({status:t.value,value:e})):p);else{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!y(e))return p;let o=n.transform(e.value,i);if(o instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:o}}s.ZS.assertNever(n)}}e$.create=(e,t,r)=>new e$({schema:e,typeName:o.ZodEffects,effect:t,...E(r)}),e$.createWithPreprocess=(e,t,r)=>new e$({schema:t,effect:{type:"preprocess",transform:e},typeName:o.ZodEffects,...E(r)});class ek extends _{_parse(e){return this._getType(e)===s.Zp.undefined?g(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ek.create=(e,t)=>new ek({innerType:e,typeName:o.ZodOptional,...E(t)});class eC extends _{_parse(e){return this._getType(e)===s.Zp.null?g(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eC.create=(e,t)=>new eC({innerType:e,typeName:o.ZodNullable,...E(t)});class eO extends _{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===s.Zp.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}eO.create=(e,t)=>new eO({innerType:e,typeName:o.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...E(t)});class eM extends _{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return w(n)?n.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new a.G(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new a.G(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}eM.create=(e,t)=>new eM({innerType:e,typeName:o.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...E(t)});class eI extends _{_parse(e){if(this._getType(e)!==s.Zp.nan){let t=this._getOrReturnCtx(e);return d(t,{code:a.eq.invalid_type,expected:s.Zp.nan,received:t.parsedType}),p}return{status:"valid",value:e.data}}}eI.create=e=>new eI({typeName:o.ZodNaN,...E(e)}),Symbol("zod_brand");class eR extends _{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class ej extends _{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?p:"dirty"===e.status?(t.dirty(),m(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{let e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?p:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new ej({in:e,out:t,typeName:o.ZodPipeline})}}class eT extends _{_parse(e){let t=this._def.innerType._parse(e),r=e=>(y(e)&&(e.value=Object.freeze(e.value)),e);return w(t)?t.then(e=>r(e)):r(t)}unwrap(){return this._def.innerType}}eT.create=(e,t)=>new eT({innerType:e,typeName:o.ZodReadonly,...E(t)}),ec.lazycreate,function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(o||(o={}));let eN=G.create,eP=Z.create;eI.create,Y.create;let eB=J.create;Q.create,ee.create,et.create,er.create,en.create,ei.create,eo.create,ea.create;let ez=es.create,eL=ec.create;ec.strictCreate;let eD=eu.create,eF=ed.create;ep.create,em.create;let eH=eg.create;eb.create,ev.create,ey.create,ew.create;let eU=ex.create,eq=eE.create;e_.create,eS.create,e$.create,ek.create,eC.create,e$.createWithPreprocess,ej.create},64564(e,t,r){"use strict";function n(e,t,r){function n(r,n){var i;for(let o in Object.defineProperty(r,"_zod",{value:r._zod??{},enumerable:!1}),(i=r._zod).traits??(i.traits=new Set),r._zod.traits.add(e),t(r,n),a.prototype)o in r||Object.defineProperty(r,o,{value:a.prototype[o].bind(r)});r._zod.constr=a,r._zod.def=n}let i=r?.Parent??Object;class o extends i{}function a(e){var t;let i=r?.Parent?new o:this;for(let r of(n(i,e),(t=i._zod).deferred??(t.deferred=[]),i._zod.deferred))r();return i}return Object.defineProperty(o,"name",{value:e}),Object.defineProperty(a,"init",{value:n}),Object.defineProperty(a,Symbol.hasInstance,{value:t=>!!r?.Parent&&t instanceof r.Parent||t?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}r.d(t,{EB:()=>rJ,k5:()=>nM,L5:()=>nm,g1:()=>nC,zM:()=>nh,ai:()=>nc,re:()=>nA,Ik:()=>nx,YO:()=>ny,Yj:()=>rY,bv:()=>nw,eu:()=>nR,KC:()=>n_}),Object.freeze({status:"aborted"}),Symbol("zod_brand");class i extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}let o={};function a(e){return e&&Object.assign(o,e),o}let s=/^[cC][^\s-]{8,}$/,l=/^[0-9a-z]+$/,c=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,u=/^[0-9a-vA-V]{20}$/,f=/^[A-Za-z0-9]{27}$/,d=/^[a-zA-Z0-9_-]{21}$/,h=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,p=/^([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})$/,m=e=>e?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)$/,g=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,b="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function v(){return RegExp(b,"u")}let y=/^(?:(?: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])$/,w=/^(([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})$/,x=/^((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])$/,A=/^(([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])$/,E=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,_=/^[A-Za-z0-9_-]*$/,S=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,$=/^\+(?:[0-9]){6,14}[0-9]$/,k="(?:(?:\\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])))",C=RegExp(`^${k}$`);function O(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function M(e){return RegExp(`^${O(e)}$`)}function I(e){let t=O({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-]\\d{2}:\\d{2})");let n=`${t}(?:${r.join("|")})`;return RegExp(`^${k}T(?:${n})$`)}let R=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return RegExp(`^${t}$`)},j=/^\d+$/,T=/^-?\d+(?:\.\d+)?/i,N=/true|false/i,P=/^[^A-Z]*$/,B=/^[^a-z]*$/;function z(e){let t=Object.values(e).filter(e=>"number"==typeof e);return Object.entries(e).filter(([e,r])=>-1===t.indexOf(+e)).map(([e,t])=>t)}function L(e,t){return"bigint"==typeof t?t.toString():t}function D(e){let t=!1;return{get value(){if(!t){let t=e();return Object.defineProperty(this,"value",{value:t}),t}throw Error("cached value already set")}}}function F(e){return null==e}function H(e){let t=+!!e.startsWith("^"),r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function U(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n;return Number.parseInt(e.toFixed(i).replace(".",""))%Number.parseInt(t.toFixed(i).replace(".",""))/10**i}function q(e,t,r){let n=!1;Object.defineProperty(e,t,{get(){if(!n){let n=r();return e[t]=n,n}throw Error("cached value already set")},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function W(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function V(e){return JSON.stringify(e)}let K=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function G(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}let X=D(()=>{if("u">typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return Function(""),!0}catch(e){return!1}});function Z(e){if(!1===G(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!1!==G(r)&&!1!==Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")}let Y=new Set(["string","number","symbol"]);function J(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Q(e,t,r){let n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}function ee(e){let t=e;if(!t)return{};if("string"==typeof t)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return(delete t.message,"string"==typeof t.error)?{...t,error:()=>t.error}:t}function et(e){return Object.keys(e).filter(t=>"optional"===e[t]._zod.optin&&"optional"===e[t]._zod.optout)}let er={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-0x80000000,0x7fffffff],uint32:[0,0xffffffff],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function en(e,t){let r={},n=e._zod.def;for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&(r[e]=n.shape[e])}return Q(e,{...e._zod.def,shape:r,checks:[]})}function ei(e,t){let r={...e._zod.def.shape},n=e._zod.def;for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return Q(e,{...e._zod.def,shape:r,checks:[]})}function eo(e,t){if(!Z(t))throw Error("Invalid input to extend: expected a plain object");let r={...e._zod.def,get shape(){let r={...e._zod.def.shape,...t};return W(this,"shape",r),r},checks:[]};return Q(e,r)}function ea(e,t){return Q(e,{...e._zod.def,get shape(){let r={...e._zod.def.shape,...t._zod.def.shape};return W(this,"shape",r),r},catchall:t._zod.def.catchall,checks:[]})}function es(e,t,r){let n=t._zod.def.shape,i={...n};if(r)for(let t in r){if(!(t in n))throw Error(`Unrecognized key: "${t}"`);r[t]&&(i[t]=e?new e({type:"optional",innerType:n[t]}):n[t])}else for(let t in n)i[t]=e?new e({type:"optional",innerType:n[t]}):n[t];return Q(t,{...t._zod.def,shape:i,checks:[]})}function el(e,t,r){let n=t._zod.def.shape,i={...n};if(r)for(let t in r){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);r[t]&&(i[t]=new e({type:"nonoptional",innerType:n[t]}))}else for(let t in n)i[t]=new e({type:"nonoptional",innerType:n[t]});return Q(t,{...t._zod.def,shape:i,checks:[]})}function ec(e,t=0){for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function eu(e,t){return t.map(t=>{var r;return(r=t).path??(r.path=[]),t.path.unshift(e),t})}function ef(e){return"string"==typeof e?e:e?.message}function ed(e,t,r){let n={...e,path:e.path??[]};return e.message||(n.message=ef(e.inst?._zod.def?.error?.(e))??ef(t?.error?.(e))??ef(r.customError?.(e))??ef(r.localeError?.(e))??"Invalid input"),delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}function eh(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function ep(...e){let[t,r,n]=e;return"string"==typeof t?{message:t,code:"custom",input:r,inst:n}:{...t}}let em=n("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),eg={number:"number",bigint:"bigint",object:"date"},eb=n("$ZodCheckLessThan",(e,t)=>{em.init(e,t);let r=eg[typeof t.value];e._zod.onattach.push(e=>{let r=e._zod.bag,n=(t.inclusive?r.maximum:r.exclusiveMaximum)??1/0;t.value<n&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value<=t.value:n.value<t.value)||n.issues.push({origin:r,code:"too_big",maximum:t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ev=n("$ZodCheckGreaterThan",(e,t)=>{em.init(e,t);let r=eg[typeof t.value];e._zod.onattach.push(e=>{let r=e._zod.bag,n=(t.inclusive?r.minimum:r.exclusiveMinimum)??-1/0;t.value>n&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:r,code:"too_small",minimum:t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ey=n("$ZodCheckMultipleOf",(e,t)=>{em.init(e,t),e._zod.onattach.push(e=>{var r;(r=e._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof r.value?r.value%t.value===BigInt(0):0===U(r.value,t.value))||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),ew=n("$ZodCheckNumberFormat",(e,t)=>{em.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),n=r?"int":"number",[i,o]=er[t.format];e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,n.minimum=i,n.maximum=o,r&&(n.pattern=j)}),e._zod.check=a=>{let s=a.value;if(r){if(!Number.isInteger(s))return void a.issues.push({expected:n,format:t.format,code:"invalid_type",input:s,inst:e});if(!Number.isSafeInteger(s))return void(s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!t.abort}))}s<i&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>o&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:o,inst:e})}}),ex=n("$ZodCheckMaxLength",(e,t)=>{var r;em.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!F(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag.maximum??1/0;t.maximum<r&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{let n=r.value;if(n.length<=t.maximum)return;let i=eh(n);r.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),eA=n("$ZodCheckMinLength",(e,t)=>{var r;em.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!F(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag.minimum??-1/0;t.minimum>r&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{let n=r.value;if(n.length>=t.minimum)return;let i=eh(n);r.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),eE=n("$ZodCheckLengthEquals",(e,t)=>{var r;em.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!F(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=r=>{let n=r.value,i=n.length;if(i===t.length)return;let o=eh(n),a=i>t.length;r.issues.push({origin:o,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),e_=n("$ZodCheckStringFormat",(e,t)=>{var r,n;em.init(e,t),e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,t.pattern&&(r.patterns??(r.patterns=new Set),r.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=r=>{t.pattern.lastIndex=0,t.pattern.test(r.value)||r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),eS=n("$ZodCheckRegex",(e,t)=>{e_.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,t.pattern.test(r.value)||r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),e$=n("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=P),e_.init(e,t)}),ek=n("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=B),e_.init(e,t)}),eC=n("$ZodCheckIncludes",(e,t)=>{em.init(e,t);let r=J(t.includes),n=new RegExp("number"==typeof t.position?`^.{${t.position}}${r}`:r);t.pattern=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),eO=n("$ZodCheckStartsWith",(e,t)=>{em.init(e,t);let r=RegExp(`^${J(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),eM=n("$ZodCheckEndsWith",(e,t)=>{em.init(e,t);let r=RegExp(`.*${J(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),eI=n("$ZodCheckOverwrite",(e,t)=>{em.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});class eR{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let t=e.split("\n").filter(e=>e),r=Math.min(...t.map(e=>e.length-e.trimStart().length));for(let e of t.map(e=>e.slice(r)).map(e=>" ".repeat(2*this.indent)+e))this.content.push(e)}compile(){return Function(...this?.args,[...(this?.content??[""]).map(e=>` ${e}`)].join("\n"))}}let ej=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),Object.defineProperty(e,"message",{get:()=>JSON.stringify(t,L,2),enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},eT=n("$ZodError",ej),eN=n("$ZodError",ej,{Parent:Error});function eP(e,t=e=>e.message){let r={},n=[];for(let i of e.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(t(i))):n.push(t(i));return{formErrors:n,fieldErrors:r}}function eB(e,t){let r=t||function(e){return e.message},n={_errors:[]},i=e=>{for(let t of e.issues)if("invalid_union"===t.code&&t.errors.length)t.errors.map(e=>i({issues:e}));else if("invalid_key"===t.code)i({issues:t.issues});else if("invalid_element"===t.code)i({issues:t.issues});else if(0===t.path.length)n._errors.push(r(t));else{let e=n,i=0;for(;i<t.path.length;){let n=t.path[i];i===t.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(r(t))):e[n]=e[n]||{_errors:[]},e=e[n],i++}}};return i(e),n}let ez=e=>(t,r,n,o)=>{let s=n?Object.assign(n,{async:!1}):{async:!1},l=t._zod.run({value:r,issues:[]},s);if(l instanceof Promise)throw new i;if(l.issues.length){let t=new(o?.Err??e)(l.issues.map(e=>ed(e,s,a())));throw K(t,o?.callee),t}return l.value},eL=e=>async(t,r,n,i)=>{let o=n?Object.assign(n,{async:!0}):{async:!0},s=t._zod.run({value:r,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){let t=new(i?.Err??e)(s.issues.map(e=>ed(e,o,a())));throw K(t,i?.callee),t}return s.value},eD=e=>(t,r,n)=>{let o=n?{...n,async:!1}:{async:!1},s=t._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new i;return s.issues.length?{success:!1,error:new(e??eT)(s.issues.map(e=>ed(e,o,a())))}:{success:!0,data:s.value}},eF=eD(eN),eH=e=>async(t,r,n)=>{let i=n?Object.assign(n,{async:!0}):{async:!0},o=t._zod.run({value:r,issues:[]},i);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(e=>ed(e,i,a())))}:{success:!0,data:o.value}},eU=eH(eN),eq={major:4,minor:0,patch:0},eW=n("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=eq;let n=[...e._zod.def.checks??[]];for(let t of(e._zod.traits.has("$ZodCheck")&&n.unshift(e),n))for(let r of t._zod.onattach)r(e);if(0===n.length)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,r)=>{let n,o=ec(e);for(let a of t){if(a._zod.def.when){if(!a._zod.def.when(e))continue}else if(o)continue;let t=e.issues.length,s=a._zod.check(e);if(s instanceof Promise&&r?.async===!1)throw new i;if(n||s instanceof Promise)n=(n??Promise.resolve()).then(async()=>{await s,e.issues.length!==t&&(o||(o=ec(e,t)))});else{if(e.issues.length===t)continue;o||(o=ec(e,t))}}return n?n.then(()=>e):e};e._zod.run=(r,o)=>{let a=e._zod.parse(r,o);if(a instanceof Promise){if(!1===o.async)throw new i;return a.then(e=>t(e,n,o))}return t(a,n,o)}}e["~standard"]={validate:t=>{try{let r=eF(e,t);return r.success?{value:r.data}:{issues:r.error?.issues}}catch(r){return eU(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:"zod",version:1}}),eV=n("$ZodString",(e,t)=>{eW.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??R(e._zod.bag),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=String(r.value)}catch(e){}return"string"==typeof r.value||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),eK=n("$ZodStringFormat",(e,t)=>{e_.init(e,t),eV.init(e,t)}),eG=n("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=p),eK.init(e,t)}),eX=n("$ZodUUID",(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===e)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=m(e))}else t.pattern??(t.pattern=m());eK.init(e,t)}),eZ=n("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=g),eK.init(e,t)}),eY=n("$ZodURL",(e,t)=>{eK.init(e,t),e._zod.check=r=>{try{let n=r.value,i=new URL(n),o=i.href;t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:S.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),!n.endsWith("/")&&o.endsWith("/")?r.value=o.slice(0,-1):r.value=o;return}catch(n){r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),eJ=n("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=v()),eK.init(e,t)}),eQ=n("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=d),eK.init(e,t)}),e0=n("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=s),eK.init(e,t)}),e1=n("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=l),eK.init(e,t)}),e2=n("$ZodULID",(e,t)=>{t.pattern??(t.pattern=c),eK.init(e,t)}),e6=n("$ZodXID",(e,t)=>{t.pattern??(t.pattern=u),eK.init(e,t)}),e3=n("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=f),eK.init(e,t)}),e5=n("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=I(t)),eK.init(e,t)}),e4=n("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=C),eK.init(e,t)}),e8=n("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=M(t)),eK.init(e,t)}),e9=n("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=h),eK.init(e,t)}),e7=n("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=y),eK.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.format="ipv4"})}),te=n("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=w),eK.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.format="ipv6"}),e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),tt=n("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=x),eK.init(e,t)}),tr=n("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=A),eK.init(e,t),e._zod.check=r=>{let[n,i]=r.value.split("/");try{if(!i)throw Error();let e=Number(i);if(`${e}`!==i||e<0||e>128)throw Error();new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function tn(e){if(""===e)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}let ti=n("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=E),eK.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.contentEncoding="base64"}),e._zod.check=r=>{tn(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function to(e){if(!_.test(e))return!1;let t=e.replace(/[-_]/g,e=>"-"===e?"+":"/");return tn(t.padEnd(4*Math.ceil(t.length/4),"="))}let ta=n("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=_),eK.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.contentEncoding="base64url"}),e._zod.check=r=>{to(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),ts=n("$ZodE164",(e,t)=>{t.pattern??(t.pattern=$),eK.init(e,t)});function tl(e,t=null){try{let r=e.split(".");if(3!==r.length)return!1;let[n]=r;if(!n)return!1;let i=JSON.parse(atob(n));if("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))return!1;return!0}catch{return!1}}let tc=n("$ZodJWT",(e,t)=>{eK.init(e,t),e._zod.check=r=>{tl(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),tu=n("$ZodNumber",(e,t)=>{eW.init(e,t),e._zod.pattern=e._zod.bag.pattern??T,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=Number(r.value)}catch(e){}let i=r.value;if("number"==typeof i&&!Number.isNaN(i)&&Number.isFinite(i))return r;let o="number"==typeof i?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...o?{received:o}:{}}),r}}),tf=n("$ZodNumber",(e,t)=>{ew.init(e,t),tu.init(e,t)}),td=n("$ZodBoolean",(e,t)=>{eW.init(e,t),e._zod.pattern=N,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=!!r.value}catch(e){}let i=r.value;return"boolean"==typeof i||r.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),r}}),th=n("$ZodUnknown",(e,t)=>{eW.init(e,t),e._zod.parse=e=>e}),tp=n("$ZodNever",(e,t)=>{eW.init(e,t),e._zod.parse=(t,r)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)});function tm(e,t,r){e.issues.length&&t.issues.push(...eu(r,e.issues)),t.value[r]=e.value}let tg=n("$ZodArray",(e,t)=>{eW.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!Array.isArray(i))return r.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),r;r.value=Array(i.length);let o=[];for(let e=0;e<i.length;e++){let a=i[e],s=t.element._zod.run({value:a,issues:[]},n);s instanceof Promise?o.push(s.then(t=>tm(t,r,e))):tm(s,r,e)}return o.length?Promise.all(o).then(()=>r):r}});function tb(e,t,r){e.issues.length&&t.issues.push(...eu(r,e.issues)),t.value[r]=e.value}function tv(e,t,r,n){e.issues.length?void 0===n[r]?r in n?t.value[r]=void 0:t.value[r]=e.value:t.issues.push(...eu(r,e.issues)):void 0===e.value?r in n&&(t.value[r]=void 0):t.value[r]=e.value}let ty=n("$ZodObject",(e,t)=>{let r,n;eW.init(e,t);let i=D(()=>{let e=Object.keys(t.shape);for(let r of e)if(!(t.shape[r]instanceof eW))throw Error(`Invalid element at key "${r}": expected a Zod schema`);let r=et(t.shape);return{shape:t.shape,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(r)}});q(e._zod,"propValues",()=>{let e=t.shape,r={};for(let t in e){let n=e[t]._zod;if(n.values)for(let e of(r[t]??(r[t]=new Set),n.values))r[t].add(e)}return r});let a=e=>{let t=new eR(["shape","payload","ctx"]),r=i.value,n=e=>{let t=V(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write("const input = payload.value;");let o=Object.create(null),a=0;for(let e of r.keys)o[e]=`key_${a++}`;for(let e of(t.write("const newResult = {}"),r.keys))if(r.optionalKeys.has(e)){let r=o[e];t.write(`const ${r} = ${n(e)};`);let i=V(e);t.write(`
290
+ ${tB(e)}`);return{...s,id:a,type:o,function:{...u,name:c,arguments:l}}})}}:{...o,message:{...c,content:a,role:u,refusal:t.refusal??null},finish_reason:r,index:n,logprobs:i}}),created:i,model:o,object:"chat.completion",...a?{system_fingerprint:a}:{}},t)}function tB(e){return JSON.stringify(e)}class tz extends tN{static fromReadableStream(e){let t=new tz(null);return t._run(()=>t._fromReadableStream(e)),t}static runTools(e,t,r){let n=new tz(t),i={...r,headers:{...r?.headers,"X-Stainless-Helper-Method":"runTools"}};return n._run(()=>n._runTools(e,t,i)),n}}class tL extends e8{constructor(){super(...arguments),this.messages=new tt(this._client)}create(e,t){return this._client.post("/chat/completions",{body:e,...t,stream:e.stream??!1})}retrieve(e,t){return this._client.get(te`/chat/completions/${e}`,t)}update(e,t,r){return this._client.post(te`/chat/completions/${e}`,{body:t,...r})}list(e={},t){return this._client.getAPIList("/chat/completions",eD,{query:e,...t})}delete(e,t){return this._client.delete(te`/chat/completions/${e}`,t)}parse(e,t){return td(e.tools),this._client.chat.completions.create(e,{...t,headers:{...t?.headers,"X-Stainless-Helper-Method":"chat.completions.parse"}})._thenUnwrap(t=>ta(t,e))}runTools(e,t){return e.stream?tz.runTools(this._client,e,t):ty.runTools(this._client,e,t)}stream(e,t){return tN.createChatCompletion(this._client,e,t)}}tL.Messages=tt;class tD extends e8{constructor(){super(...arguments),this.completions=new tL(this._client)}}tD.Completions=tL;let tF=Symbol("brand.privateNullableHeaders");function*tH(e){let t;if(!e)return;if(tF in e){let{values:t,nulls:r}=e;for(let e of(yield*t.entries(),r))yield[e,null];return}let r=!1;for(let n of(e instanceof Headers?t=e.entries():I(e)?t=e:(r=!0,t=Object.entries(e??{})),t)){let e=n[0];if("string"!=typeof e)throw TypeError("expected header name to be a string");let t=I(n[1])?n[1]:[n[1]],i=!1;for(let n of t)void 0!==n&&(r&&!i&&(i=!0,yield[e,null]),yield[e,n])}}let tU=e=>{let t=new Headers,r=new Set;for(let n of e){let e=new Set;for(let[i,o]of tH(n)){let n=i.toLowerCase();e.has(n)||(t.delete(i),e.add(n)),null===o?(t.delete(i),r.add(n)):(t.append(i,o),r.delete(n))}}return{[tF]:!0,values:t,nulls:r}};class tq extends e8{create(e,t){return this._client.post("/audio/speech",{body:e,...t,headers:tU([{Accept:"application/octet-stream"},t?.headers]),__binaryResponse:!0})}}class tW extends e8{create(e,t){return this._client.post("/audio/transcriptions",eK({body:e,...t,stream:e.stream??!1,__metadata:{model:e.model}},this._client))}}class tV extends e8{create(e,t){return this._client.post("/audio/translations",eK({body:e,...t,__metadata:{model:e.model}},this._client))}}class tK extends e8{constructor(){super(...arguments),this.transcriptions=new tW(this._client),this.translations=new tV(this._client),this.speech=new tq(this._client)}}tK.Transcriptions=tW,tK.Translations=tV,tK.Speech=tq;class tG extends e8{create(e,t){return this._client.post("/batches",{body:e,...t})}retrieve(e,t){return this._client.get(te`/batches/${e}`,t)}list(e={},t){return this._client.getAPIList("/batches",eD,{query:e,...t})}cancel(e,t){return this._client.post(te`/batches/${e}/cancel`,t)}}class tX extends e8{create(e,t){return this._client.post("/assistants",{body:e,...t,headers:tU([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}retrieve(e,t){return this._client.get(te`/assistants/${e}`,{...t,headers:tU([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}update(e,t,r){return this._client.post(te`/assistants/${e}`,{body:t,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}list(e={},t){return this._client.getAPIList("/assistants",eD,{query:e,...t,headers:tU([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}delete(e,t){return this._client.delete(te`/assistants/${e}`,{...t,headers:tU([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}}class tZ extends e8{create(e,t){return this._client.post("/realtime/sessions",{body:e,...t,headers:tU([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}}class tY extends e8{create(e,t){return this._client.post("/realtime/transcription_sessions",{body:e,...t,headers:tU([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}}class tJ extends e8{constructor(){super(...arguments),this.sessions=new tZ(this._client),this.transcriptionSessions=new tY(this._client)}}tJ.Sessions=tZ,tJ.TranscriptionSessions=tY;class tQ extends e8{create(e,t){return this._client.post("/chatkit/sessions",{body:e,...t,headers:tU([{"OpenAI-Beta":"chatkit_beta=v1"},t?.headers])})}cancel(e,t){return this._client.post(te`/chatkit/sessions/${e}/cancel`,{...t,headers:tU([{"OpenAI-Beta":"chatkit_beta=v1"},t?.headers])})}}class t0 extends e8{retrieve(e,t){return this._client.get(te`/chatkit/threads/${e}`,{...t,headers:tU([{"OpenAI-Beta":"chatkit_beta=v1"},t?.headers])})}list(e={},t){return this._client.getAPIList("/chatkit/threads",eF,{query:e,...t,headers:tU([{"OpenAI-Beta":"chatkit_beta=v1"},t?.headers])})}delete(e,t){return this._client.delete(te`/chatkit/threads/${e}`,{...t,headers:tU([{"OpenAI-Beta":"chatkit_beta=v1"},t?.headers])})}listItems(e,t={},r){return this._client.getAPIList(te`/chatkit/threads/${e}/items`,eF,{query:t,...r,headers:tU([{"OpenAI-Beta":"chatkit_beta=v1"},r?.headers])})}}class t1 extends e8{constructor(){super(...arguments),this.sessions=new tQ(this._client),this.threads=new t0(this._client)}uploadFile(e,t){return this._client.post("/chatkit/files",eV({body:e,...t,headers:tU([{"OpenAI-Beta":"chatkit_beta=v1"},t?.headers])},this._client))}}t1.Sessions=tQ,t1.Threads=t0;class t2 extends e8{create(e,t,r){return this._client.post(te`/threads/${e}/messages`,{body:t,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}retrieve(e,t,r){let{thread_id:n}=t;return this._client.get(te`/threads/${n}/messages/${e}`,{...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}update(e,t,r){let{thread_id:n,...i}=t;return this._client.post(te`/threads/${n}/messages/${e}`,{body:i,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}list(e,t={},r){return this._client.getAPIList(te`/threads/${e}/messages`,eD,{query:t,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}delete(e,t,r){let{thread_id:n}=t;return this._client.delete(te`/threads/${n}/messages/${e}`,{...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}}class t6 extends e8{retrieve(e,t,r){let{thread_id:n,run_id:i,...o}=t;return this._client.get(te`/threads/${n}/runs/${i}/steps/${e}`,{query:o,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}list(e,t,r){let{thread_id:n,...i}=t;return this._client.getAPIList(te`/threads/${n}/runs/${e}/steps`,eD,{query:i,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}}var t3,t5,t4,t8,t9,t7,re,rt,rr,rn,ri,ro,ra,rs,rl,rc,ru,rf,rd,rh,rp,rm,rg,rb,rv,ry,rw,rx,rA,rE,r_,rS,r$,rk,rC,rO,rM,rI,rR,rj,rT,rN,rP,rB,rz,rL,rD,rF,rH,rU,rq,rW,rV,rK,rG,rX,rZ,rY,rJ,rQ,r0,r1,r2,r6,r3,r5,r4,r8,r9,r7,ne,nt,nr,nn,ni,no,na=r(8963).Buffer;let ns=e=>{if(void 0!==na){let t=na.from(e,"base64");return Array.from(new Float32Array(t.buffer,t.byteOffset,t.length/Float32Array.BYTES_PER_ELEMENT))}{let t=atob(e),r=t.length,n=new Uint8Array(r);for(let e=0;e<r;e++)n[e]=t.charCodeAt(e);return Array.from(new Float32Array(n.buffer))}},nl=e=>void 0!==globalThis.process?globalThis.process.env?.[e]?.trim()??void 0:void 0!==globalThis.Deno?globalThis.Deno.env?.get?.(e)?.trim():void 0;class nc extends tm{constructor(){super(...arguments),rR.add(this),rT.set(this,[]),rN.set(this,{}),rP.set(this,{}),rB.set(this,void 0),rz.set(this,void 0),rL.set(this,void 0),rD.set(this,void 0),rF.set(this,void 0),rH.set(this,void 0),rU.set(this,void 0),rq.set(this,void 0),rW.set(this,void 0)}[(rT=new WeakMap,rN=new WeakMap,rP=new WeakMap,rB=new WeakMap,rz=new WeakMap,rL=new WeakMap,rD=new WeakMap,rF=new WeakMap,rH=new WeakMap,rU=new WeakMap,rq=new WeakMap,rW=new WeakMap,rR=new WeakSet,Symbol.asyncIterator)](){let e=[],t=[],r=!1;return this.on("event",r=>{let n=t.shift();n?n.resolve(r):e.push(r)}),this.on("end",()=>{for(let e of(r=!0,t))e.resolve(void 0);t.length=0}),this.on("abort",e=>{for(let n of(r=!0,t))n.reject(e);t.length=0}),this.on("error",e=>{for(let n of(r=!0,t))n.reject(e);t.length=0}),{next:async()=>e.length?{value:e.shift(),done:!1}:r?{value:void 0,done:!0}:new Promise((e,r)=>t.push({resolve:e,reject:r})).then(e=>e?{value:e,done:!1}:{value:void 0,done:!0}),return:async()=>(this.abort(),{value:void 0,done:!0})}}static fromReadableStream(e){let t=new rj;return t._run(()=>t._fromReadableStream(e)),t}async _fromReadableStream(e,t){let r=t?.signal;r&&(r.aborted&&this.controller.abort(),r.addEventListener("abort",()=>this.controller.abort())),this._connected();let n=eO.fromReadableStream(e,this.controller);for await(let e of n)l(this,rR,"m",rV).call(this,e);if(n.controller.signal?.aborted)throw new p;return this._addRun(l(this,rR,"m",rK).call(this))}toReadableStream(){return new eO(this[Symbol.asyncIterator].bind(this),this.controller).toReadableStream()}static createToolAssistantStream(e,t,r,n){let i=new rj;return i._run(()=>i._runToolAssistantStream(e,t,r,{...n,headers:{...n?.headers,"X-Stainless-Helper-Method":"stream"}})),i}async _createToolAssistantStream(e,t,r,n){let i=n?.signal;i&&(i.aborted&&this.controller.abort(),i.addEventListener("abort",()=>this.controller.abort()));let o={...r,stream:!0},a=await e.submitToolOutputs(t,o,{...n,signal:this.controller.signal});for await(let e of(this._connected(),a))l(this,rR,"m",rV).call(this,e);if(a.controller.signal?.aborted)throw new p;return this._addRun(l(this,rR,"m",rK).call(this))}static createThreadAssistantStream(e,t,r){let n=new rj;return n._run(()=>n._threadAssistantStream(e,t,{...r,headers:{...r?.headers,"X-Stainless-Helper-Method":"stream"}})),n}static createAssistantStream(e,t,r,n){let i=new rj;return i._run(()=>i._runAssistantStream(e,t,r,{...n,headers:{...n?.headers,"X-Stainless-Helper-Method":"stream"}})),i}currentEvent(){return l(this,rU,"f")}currentRun(){return l(this,rq,"f")}currentMessageSnapshot(){return l(this,rB,"f")}currentRunStepSnapshot(){return l(this,rW,"f")}async finalRunSteps(){return await this.done(),Object.values(l(this,rN,"f"))}async finalMessages(){return await this.done(),Object.values(l(this,rP,"f"))}async finalRun(){if(await this.done(),!l(this,rz,"f"))throw Error("Final run was not received.");return l(this,rz,"f")}async _createThreadAssistantStream(e,t,r){let n=r?.signal;n&&(n.aborted&&this.controller.abort(),n.addEventListener("abort",()=>this.controller.abort()));let i={...t,stream:!0},o=await e.createAndRun(i,{...r,signal:this.controller.signal});for await(let e of(this._connected(),o))l(this,rR,"m",rV).call(this,e);if(o.controller.signal?.aborted)throw new p;return this._addRun(l(this,rR,"m",rK).call(this))}async _createAssistantStream(e,t,r,n){let i=n?.signal;i&&(i.aborted&&this.controller.abort(),i.addEventListener("abort",()=>this.controller.abort()));let o={...r,stream:!0},a=await e.create(t,o,{...n,signal:this.controller.signal});for await(let e of(this._connected(),a))l(this,rR,"m",rV).call(this,e);if(a.controller.signal?.aborted)throw new p;return this._addRun(l(this,rR,"m",rK).call(this))}static accumulateDelta(e,t){for(let[r,n]of Object.entries(t)){if(!e.hasOwnProperty(r)){e[r]=n;continue}let t=e[r];if(null==t||"index"===r||"type"===r){e[r]=n;continue}if("string"==typeof t&&"string"==typeof n)t+=n;else if("number"==typeof t&&"number"==typeof n)t+=n;else if(N(t)&&N(n))t=this.accumulateDelta(t,n);else if(Array.isArray(t)&&Array.isArray(n)){if(t.every(e=>"string"==typeof e||"number"==typeof e)){t.push(...n);continue}for(let e of n){if(!N(e))throw Error(`Expected array delta entry to be an object but got: ${e}`);let r=e.index;if(null==r)throw console.error(e),Error("Expected array delta entry to have an `index` property");if("number"!=typeof r)throw Error(`Expected array delta entry \`index\` property to be a number but got ${r}`);let n=t[r];null==n?t.push(e):t[r]=this.accumulateDelta(n,e)}continue}else throw Error(`Unhandled record type: ${r}, deltaValue: ${n}, accValue: ${t}`);e[r]=t}return e}_addRun(e){return e}async _threadAssistantStream(e,t,r){return await this._createThreadAssistantStream(t,e,r)}async _runAssistantStream(e,t,r,n){return await this._createAssistantStream(t,e,r,n)}async _runToolAssistantStream(e,t,r,n){return await this._createToolAssistantStream(t,e,r,n)}}rj=nc,rV=function(e){if(!this.ended)switch(s(this,rU,e,"f"),l(this,rR,"m",rZ).call(this,e),e.event){case"thread.created":break;case"thread.run.created":case"thread.run.queued":case"thread.run.in_progress":case"thread.run.requires_action":case"thread.run.completed":case"thread.run.incomplete":case"thread.run.failed":case"thread.run.cancelling":case"thread.run.cancelled":case"thread.run.expired":l(this,rR,"m",r0).call(this,e);break;case"thread.run.step.created":case"thread.run.step.in_progress":case"thread.run.step.delta":case"thread.run.step.completed":case"thread.run.step.failed":case"thread.run.step.cancelled":case"thread.run.step.expired":l(this,rR,"m",rX).call(this,e);break;case"thread.message.created":case"thread.message.in_progress":case"thread.message.delta":case"thread.message.completed":case"thread.message.incomplete":l(this,rR,"m",rG).call(this,e);break;case"error":throw Error("Encountered an error event in event processing - errors should be processed earlier")}},rK=function(){if(this.ended)throw new d("stream has ended, this shouldn't happen");if(!l(this,rz,"f"))throw Error("Final run has not been received");return l(this,rz,"f")},rG=function(e){let[t,r]=l(this,rR,"m",rJ).call(this,e,l(this,rB,"f"));for(let e of(s(this,rB,t,"f"),l(this,rP,"f")[t.id]=t,r)){let r=t.content[e.index];r?.type=="text"&&this._emit("textCreated",r.text)}switch(e.event){case"thread.message.created":this._emit("messageCreated",e.data);break;case"thread.message.in_progress":break;case"thread.message.delta":if(this._emit("messageDelta",e.data.delta,t),e.data.delta.content)for(let r of e.data.delta.content){if("text"==r.type&&r.text){let e=r.text,n=t.content[r.index];if(n&&"text"==n.type)this._emit("textDelta",e,n.text);else throw Error("The snapshot associated with this text delta is not text or missing")}if(r.index!=l(this,rL,"f")){if(l(this,rD,"f"))switch(l(this,rD,"f").type){case"text":this._emit("textDone",l(this,rD,"f").text,l(this,rB,"f"));break;case"image_file":this._emit("imageFileDone",l(this,rD,"f").image_file,l(this,rB,"f"))}s(this,rL,r.index,"f")}s(this,rD,t.content[r.index],"f")}break;case"thread.message.completed":case"thread.message.incomplete":if(void 0!==l(this,rL,"f")){let t=e.data.content[l(this,rL,"f")];if(t)switch(t.type){case"image_file":this._emit("imageFileDone",t.image_file,l(this,rB,"f"));break;case"text":this._emit("textDone",t.text,l(this,rB,"f"))}}l(this,rB,"f")&&this._emit("messageDone",e.data),s(this,rB,void 0,"f")}},rX=function(e){let t=l(this,rR,"m",rY).call(this,e);switch(s(this,rW,t,"f"),e.event){case"thread.run.step.created":this._emit("runStepCreated",e.data);break;case"thread.run.step.delta":let r=e.data.delta;if(r.step_details&&"tool_calls"==r.step_details.type&&r.step_details.tool_calls&&"tool_calls"==t.step_details.type)for(let e of r.step_details.tool_calls)e.index==l(this,rF,"f")?this._emit("toolCallDelta",e,t.step_details.tool_calls[e.index]):(l(this,rH,"f")&&this._emit("toolCallDone",l(this,rH,"f")),s(this,rF,e.index,"f"),s(this,rH,t.step_details.tool_calls[e.index],"f"),l(this,rH,"f")&&this._emit("toolCallCreated",l(this,rH,"f")));this._emit("runStepDelta",e.data.delta,t);break;case"thread.run.step.completed":case"thread.run.step.failed":case"thread.run.step.cancelled":case"thread.run.step.expired":s(this,rW,void 0,"f"),"tool_calls"==e.data.step_details.type&&l(this,rH,"f")&&(this._emit("toolCallDone",l(this,rH,"f")),s(this,rH,void 0,"f")),this._emit("runStepDone",e.data,t)}},rZ=function(e){l(this,rT,"f").push(e),this._emit("event",e)},rY=function(e){switch(e.event){case"thread.run.step.created":return l(this,rN,"f")[e.data.id]=e.data,e.data;case"thread.run.step.delta":let t=l(this,rN,"f")[e.data.id];if(!t)throw Error("Received a RunStepDelta before creation of a snapshot");let r=e.data;if(r.delta){let n=rj.accumulateDelta(t,r.delta);l(this,rN,"f")[e.data.id]=n}return l(this,rN,"f")[e.data.id];case"thread.run.step.completed":case"thread.run.step.failed":case"thread.run.step.cancelled":case"thread.run.step.expired":case"thread.run.step.in_progress":l(this,rN,"f")[e.data.id]=e.data}if(l(this,rN,"f")[e.data.id])return l(this,rN,"f")[e.data.id];throw Error("No snapshot available")},rJ=function(e,t){let r=[];switch(e.event){case"thread.message.created":return[e.data,r];case"thread.message.delta":if(!t)throw Error("Received a delta with no existing snapshot (there should be one from message creation)");let n=e.data;if(n.delta.content)for(let e of n.delta.content)if(e.index in t.content){let r=t.content[e.index];t.content[e.index]=l(this,rR,"m",rQ).call(this,e,r)}else t.content[e.index]=e,r.push(e);return[t,r];case"thread.message.in_progress":case"thread.message.completed":case"thread.message.incomplete":if(t)return[t,r];throw Error("Received thread message event with no existing snapshot")}throw Error("Tried to accumulate a non-message event")},rQ=function(e,t){return rj.accumulateDelta(t,e)},r0=function(e){switch(s(this,rq,e.data,"f"),e.event){case"thread.run.created":case"thread.run.queued":case"thread.run.in_progress":break;case"thread.run.requires_action":case"thread.run.cancelled":case"thread.run.failed":case"thread.run.completed":case"thread.run.expired":case"thread.run.incomplete":s(this,rz,e.data,"f"),l(this,rH,"f")&&(this._emit("toolCallDone",l(this,rH,"f")),s(this,rH,void 0,"f"))}};class nu extends e8{constructor(){super(...arguments),this.steps=new t6(this._client)}create(e,t,r){let{include:n,...i}=t;return this._client.post(te`/threads/${e}/runs`,{query:{include:n},body:i,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers]),stream:t.stream??!1})}retrieve(e,t,r){let{thread_id:n}=t;return this._client.get(te`/threads/${n}/runs/${e}`,{...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}update(e,t,r){let{thread_id:n,...i}=t;return this._client.post(te`/threads/${n}/runs/${e}`,{body:i,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}list(e,t={},r){return this._client.getAPIList(te`/threads/${e}/runs`,eD,{query:t,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}cancel(e,t,r){let{thread_id:n}=t;return this._client.post(te`/threads/${n}/runs/${e}/cancel`,{...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}async createAndPoll(e,t,r){let n=await this.create(e,t,r);return await this.poll(n.id,{thread_id:e},r)}createAndStream(e,t,r){return nc.createAssistantStream(e,this._client.beta.threads.runs,t,r)}async poll(e,t,r){let n=tU([r?.headers,{"X-Stainless-Poll-Helper":"true","X-Stainless-Custom-Poll-Interval":r?.pollIntervalMs?.toString()??void 0}]);for(;;){let{data:i,response:o}=await this.retrieve(e,t,{...r,headers:{...r?.headers,...n}}).withResponse();switch(i.status){case"queued":case"in_progress":case"cancelling":let a=5e3;if(r?.pollIntervalMs)a=r.pollIntervalMs;else{let e=o.headers.get("openai-poll-after-ms");if(e){let t=parseInt(e);isNaN(t)||(a=t)}}await z(a);break;case"requires_action":case"incomplete":case"cancelled":case"completed":case"failed":case"expired":return i}}}stream(e,t,r){return nc.createAssistantStream(e,this._client.beta.threads.runs,t,r)}submitToolOutputs(e,t,r){let{thread_id:n,...i}=t;return this._client.post(te`/threads/${n}/runs/${e}/submit_tool_outputs`,{body:i,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers]),stream:t.stream??!1})}async submitToolOutputsAndPoll(e,t,r){let n=await this.submitToolOutputs(e,t,r);return await this.poll(n.id,t,r)}submitToolOutputsStream(e,t,r){return nc.createToolAssistantStream(e,this._client.beta.threads.runs,t,r)}}nu.Steps=t6;class nf extends e8{constructor(){super(...arguments),this.runs=new nu(this._client),this.messages=new t2(this._client)}create(e={},t){return this._client.post("/threads",{body:e,...t,headers:tU([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}retrieve(e,t){return this._client.get(te`/threads/${e}`,{...t,headers:tU([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}update(e,t,r){return this._client.post(te`/threads/${e}`,{body:t,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}delete(e,t){return this._client.delete(te`/threads/${e}`,{...t,headers:tU([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}createAndRun(e,t){return this._client.post("/threads/runs",{body:e,...t,headers:tU([{"OpenAI-Beta":"assistants=v2"},t?.headers]),stream:e.stream??!1})}async createAndRunPoll(e,t){let r=await this.createAndRun(e,t);return await this.runs.poll(r.id,{thread_id:r.thread_id},t)}createAndRunStream(e,t){return nc.createThreadAssistantStream(e,this._client.beta.threads,t)}}nf.Runs=nu,nf.Messages=t2;class nd extends e8{constructor(){super(...arguments),this.realtime=new tJ(this._client),this.chatkit=new t1(this._client),this.assistants=new tX(this._client),this.threads=new nf(this._client)}}nd.Realtime=tJ,nd.ChatKit=t1,nd.Assistants=tX,nd.Threads=nf;class nh extends e8{create(e,t){return this._client.post("/completions",{body:e,...t,stream:e.stream??!1})}}class np extends e8{retrieve(e,t,r){let{container_id:n}=t;return this._client.get(te`/containers/${n}/files/${e}/content`,{...r,headers:tU([{Accept:"application/binary"},r?.headers]),__binaryResponse:!0})}}class nm extends e8{constructor(){super(...arguments),this.content=new np(this._client)}create(e,t,r){return this._client.post(te`/containers/${e}/files`,eK({body:t,...r},this._client))}retrieve(e,t,r){let{container_id:n}=t;return this._client.get(te`/containers/${n}/files/${e}`,r)}list(e,t={},r){return this._client.getAPIList(te`/containers/${e}/files`,eD,{query:t,...r})}delete(e,t,r){let{container_id:n}=t;return this._client.delete(te`/containers/${n}/files/${e}`,{...r,headers:tU([{Accept:"*/*"},r?.headers])})}}nm.Content=np;class ng extends e8{constructor(){super(...arguments),this.files=new nm(this._client)}create(e,t){return this._client.post("/containers",{body:e,...t})}retrieve(e,t){return this._client.get(te`/containers/${e}`,t)}list(e={},t){return this._client.getAPIList("/containers",eD,{query:e,...t})}delete(e,t){return this._client.delete(te`/containers/${e}`,{...t,headers:tU([{Accept:"*/*"},t?.headers])})}}ng.Files=nm;class nb extends e8{create(e,t,r){let{include:n,...i}=t;return this._client.post(te`/conversations/${e}/items`,{query:{include:n},body:i,...r})}retrieve(e,t,r){let{conversation_id:n,...i}=t;return this._client.get(te`/conversations/${n}/items/${e}`,{query:i,...r})}list(e,t={},r){return this._client.getAPIList(te`/conversations/${e}/items`,eF,{query:t,...r})}delete(e,t,r){let{conversation_id:n}=t;return this._client.delete(te`/conversations/${n}/items/${e}`,r)}}class nv extends e8{constructor(){super(...arguments),this.items=new nb(this._client)}create(e={},t){return this._client.post("/conversations",{body:e,...t})}retrieve(e,t){return this._client.get(te`/conversations/${e}`,t)}update(e,t,r){return this._client.post(te`/conversations/${e}`,{body:t,...r})}delete(e,t){return this._client.delete(te`/conversations/${e}`,t)}}nv.Items=nb;class ny extends e8{create(e,t){let r=!!e.encoding_format,n=r?e.encoding_format:"base64";r&&ek(this._client).debug("embeddings/user defined encoding_format:",e.encoding_format);let i=this._client.post("/embeddings",{body:{...e,encoding_format:n},...t});return r?i:(ek(this._client).debug("embeddings/decoding base64 embeddings from base64"),i._thenUnwrap(e=>(e&&e.data&&e.data.forEach(e=>{let t=e.embedding;e.embedding=ns(t)}),e)))}}class nw extends e8{retrieve(e,t,r){let{eval_id:n,run_id:i}=t;return this._client.get(te`/evals/${n}/runs/${i}/output_items/${e}`,r)}list(e,t,r){let{eval_id:n,...i}=t;return this._client.getAPIList(te`/evals/${n}/runs/${e}/output_items`,eD,{query:i,...r})}}class nx extends e8{constructor(){super(...arguments),this.outputItems=new nw(this._client)}create(e,t,r){return this._client.post(te`/evals/${e}/runs`,{body:t,...r})}retrieve(e,t,r){let{eval_id:n}=t;return this._client.get(te`/evals/${n}/runs/${e}`,r)}list(e,t={},r){return this._client.getAPIList(te`/evals/${e}/runs`,eD,{query:t,...r})}delete(e,t,r){let{eval_id:n}=t;return this._client.delete(te`/evals/${n}/runs/${e}`,r)}cancel(e,t,r){let{eval_id:n}=t;return this._client.post(te`/evals/${n}/runs/${e}`,r)}}nx.OutputItems=nw;class nA extends e8{constructor(){super(...arguments),this.runs=new nx(this._client)}create(e,t){return this._client.post("/evals",{body:e,...t})}retrieve(e,t){return this._client.get(te`/evals/${e}`,t)}update(e,t,r){return this._client.post(te`/evals/${e}`,{body:t,...r})}list(e={},t){return this._client.getAPIList("/evals",eD,{query:e,...t})}delete(e,t){return this._client.delete(te`/evals/${e}`,t)}}nA.Runs=nx;class nE extends e8{create(e,t){return this._client.post("/files",eK({body:e,...t},this._client))}retrieve(e,t){return this._client.get(te`/files/${e}`,t)}list(e={},t){return this._client.getAPIList("/files",eD,{query:e,...t})}delete(e,t){return this._client.delete(te`/files/${e}`,t)}content(e,t){return this._client.get(te`/files/${e}/content`,{...t,headers:tU([{Accept:"application/binary"},t?.headers]),__binaryResponse:!0})}async waitForProcessing(e,{pollInterval:t=5e3,maxWait:r=18e5}={}){let n=new Set(["processed","error","deleted"]),i=Date.now(),o=await this.retrieve(e);for(;!o.status||!n.has(o.status);)if(await z(t),o=await this.retrieve(e),Date.now()-i>r)throw new g({message:`Giving up on waiting for file ${e} to finish processing after ${r} milliseconds.`});return o}}class n_ extends e8{}class nS extends e8{run(e,t){return this._client.post("/fine_tuning/alpha/graders/run",{body:e,...t})}validate(e,t){return this._client.post("/fine_tuning/alpha/graders/validate",{body:e,...t})}}class n$ extends e8{constructor(){super(...arguments),this.graders=new nS(this._client)}}n$.Graders=nS;class nk extends e8{create(e,t,r){return this._client.getAPIList(te`/fine_tuning/checkpoints/${e}/permissions`,eL,{body:t,method:"post",...r})}retrieve(e,t={},r){return this._client.get(te`/fine_tuning/checkpoints/${e}/permissions`,{query:t,...r})}delete(e,t,r){let{fine_tuned_model_checkpoint:n}=t;return this._client.delete(te`/fine_tuning/checkpoints/${n}/permissions/${e}`,r)}}class nC extends e8{constructor(){super(...arguments),this.permissions=new nk(this._client)}}nC.Permissions=nk;class nO extends e8{list(e,t={},r){return this._client.getAPIList(te`/fine_tuning/jobs/${e}/checkpoints`,eD,{query:t,...r})}}class nM extends e8{constructor(){super(...arguments),this.checkpoints=new nO(this._client)}create(e,t){return this._client.post("/fine_tuning/jobs",{body:e,...t})}retrieve(e,t){return this._client.get(te`/fine_tuning/jobs/${e}`,t)}list(e={},t){return this._client.getAPIList("/fine_tuning/jobs",eD,{query:e,...t})}cancel(e,t){return this._client.post(te`/fine_tuning/jobs/${e}/cancel`,t)}listEvents(e,t={},r){return this._client.getAPIList(te`/fine_tuning/jobs/${e}/events`,eD,{query:t,...r})}pause(e,t){return this._client.post(te`/fine_tuning/jobs/${e}/pause`,t)}resume(e,t){return this._client.post(te`/fine_tuning/jobs/${e}/resume`,t)}}nM.Checkpoints=nO;class nI extends e8{constructor(){super(...arguments),this.methods=new n_(this._client),this.jobs=new nM(this._client),this.checkpoints=new nC(this._client),this.alpha=new n$(this._client)}}nI.Methods=n_,nI.Jobs=nM,nI.Checkpoints=nC,nI.Alpha=n$;class nR extends e8{}class nj extends e8{constructor(){super(...arguments),this.graderModels=new nR(this._client)}}nj.GraderModels=nR;class nT extends e8{createVariation(e,t){return this._client.post("/images/variations",eK({body:e,...t},this._client))}edit(e,t){return this._client.post("/images/edits",eK({body:e,...t,stream:e.stream??!1},this._client))}generate(e,t){return this._client.post("/images/generations",{body:e,...t,stream:e.stream??!1})}}class nN extends e8{retrieve(e,t){return this._client.get(te`/models/${e}`,t)}list(e){return this._client.getAPIList("/models",eL,e)}delete(e,t){return this._client.delete(te`/models/${e}`,t)}}class nP extends e8{create(e,t){return this._client.post("/moderations",{body:e,...t})}}class nB extends e8{accept(e,t,r){return this._client.post(te`/realtime/calls/${e}/accept`,{body:t,...r,headers:tU([{Accept:"*/*"},r?.headers])})}hangup(e,t){return this._client.post(te`/realtime/calls/${e}/hangup`,{...t,headers:tU([{Accept:"*/*"},t?.headers])})}refer(e,t,r){return this._client.post(te`/realtime/calls/${e}/refer`,{body:t,...r,headers:tU([{Accept:"*/*"},r?.headers])})}reject(e,t={},r){return this._client.post(te`/realtime/calls/${e}/reject`,{body:t,...r,headers:tU([{Accept:"*/*"},r?.headers])})}}class nz extends e8{create(e,t){return this._client.post("/realtime/client_secrets",{body:e,...t})}}class nL extends e8{constructor(){super(...arguments),this.clientSecrets=new nz(this._client),this.calls=new nB(this._client)}}function nD(e,t){return t&&nU(t)?nF(e,t):{...e,output_parsed:null,output:e.output.map(e=>"function_call"===e.type?{...e,parsed_arguments:null}:"message"===e.type?{...e,content:e.content.map(e=>({...e,parsed:null}))}:e)}}function nF(e,t){let r=e.output.map(e=>{if("function_call"===e.type)return{...e,parsed_arguments:nV(t,e)};if("message"===e.type){let r=e.content.map(e=>"output_text"===e.type?{...e,parsed:nH(t,e.text)}:e);return{...e,content:r}}return e}),n=Object.assign({},e,{output:r});return Object.getOwnPropertyDescriptor(e,"output_text")||nK(n),Object.defineProperty(n,"output_parsed",{enumerable:!0,get(){for(let e of n.output)if("message"===e.type){for(let t of e.content)if("output_text"===t.type&&null!==t.parsed)return t.parsed}return null}}),n}function nH(e,t){return e.text?.format?.type!=="json_schema"?null:"$parseRaw"in e.text?.format?(e.text?.format).$parseRaw(t):JSON.parse(t)}function nU(e){return!!tn(e.text?.format)}function nq(e){return e?.$brand==="auto-parseable-tool"}function nW(e,t){return e.find(e=>"function"===e.type&&e.name===t)}function nV(e,t){let r=nW(e.tools??[],t.name);return{...t,...t,parsed_arguments:nq(r)?r.$parseRaw(t.arguments):r?.strict?JSON.parse(t.arguments):null}}function nK(e){let t=[];for(let r of e.output)if("message"===r.type)for(let e of r.content)"output_text"===e.type&&t.push(e.text);e.output_text=t.join("")}nL.ClientSecrets=nz,nL.Calls=nB;class nG extends tm{constructor(e){super(),r1.add(this),r2.set(this,void 0),r6.set(this,void 0),r3.set(this,void 0),s(this,r2,e,"f")}static createResponse(e,t,r){let n=new nG(t);return n._run(()=>n._createOrRetrieveResponse(e,t,{...r,headers:{...r?.headers,"X-Stainless-Helper-Method":"stream"}})),n}async _createOrRetrieveResponse(e,t,r){let n,i=r?.signal;i&&(i.aborted&&this.controller.abort(),i.addEventListener("abort",()=>this.controller.abort())),l(this,r1,"m",r5).call(this);let o=null;for await(let i of("response_id"in t?(n=await e.responses.retrieve(t.response_id,{stream:!0},{...r,signal:this.controller.signal,stream:!0}),o=t.starting_after??null):n=await e.responses.create({...t,stream:!0},{...r,signal:this.controller.signal}),this._connected(),n))l(this,r1,"m",r4).call(this,i,o);if(n.controller.signal?.aborted)throw new p;return l(this,r1,"m",r8).call(this)}[(r2=new WeakMap,r6=new WeakMap,r3=new WeakMap,r1=new WeakSet,r5=function(){this.ended||s(this,r6,void 0,"f")},r4=function(e,t){if(this.ended)return;let r=(e,r)=>{(null==t||r.sequence_number>t)&&this._emit(e,r)},n=l(this,r1,"m",r9).call(this,e);switch(r("event",e),e.type){case"response.output_text.delta":{let t=n.output[e.output_index];if(!t)throw new d(`missing output at index ${e.output_index}`);if("message"===t.type){let n=t.content[e.content_index];if(!n)throw new d(`missing content at index ${e.content_index}`);if("output_text"!==n.type)throw new d(`expected content to be 'output_text', got ${n.type}`);r("response.output_text.delta",{...e,snapshot:n.text})}break}case"response.function_call_arguments.delta":{let t=n.output[e.output_index];if(!t)throw new d(`missing output at index ${e.output_index}`);"function_call"===t.type&&r("response.function_call_arguments.delta",{...e,snapshot:t.arguments});break}default:r(e.type,e)}},r8=function(){if(this.ended)throw new d("stream has ended, this shouldn't happen");let e=l(this,r6,"f");if(!e)throw new d("request ended without sending any events");s(this,r6,void 0,"f");let t=nX(e,l(this,r2,"f"));return s(this,r3,t,"f"),t},r9=function(e){let t=l(this,r6,"f");if(!t){if("response.created"!==e.type)throw new d(`When snapshot hasn't been set yet, expected 'response.created' event, got ${e.type}`);return s(this,r6,e.response,"f")}switch(e.type){case"response.output_item.added":t.output.push(e.item);break;case"response.content_part.added":{let r=t.output[e.output_index];if(!r)throw new d(`missing output at index ${e.output_index}`);let n=r.type,i=e.part;"message"===n&&"reasoning_text"!==i.type?r.content.push(i):"reasoning"===n&&"reasoning_text"===i.type&&(r.content||(r.content=[]),r.content.push(i));break}case"response.output_text.delta":{let r=t.output[e.output_index];if(!r)throw new d(`missing output at index ${e.output_index}`);if("message"===r.type){let t=r.content[e.content_index];if(!t)throw new d(`missing content at index ${e.content_index}`);if("output_text"!==t.type)throw new d(`expected content to be 'output_text', got ${t.type}`);t.text+=e.delta}break}case"response.function_call_arguments.delta":{let r=t.output[e.output_index];if(!r)throw new d(`missing output at index ${e.output_index}`);"function_call"===r.type&&(r.arguments+=e.delta);break}case"response.reasoning_text.delta":{let r=t.output[e.output_index];if(!r)throw new d(`missing output at index ${e.output_index}`);if("reasoning"===r.type){let t=r.content?.[e.content_index];if(!t)throw new d(`missing content at index ${e.content_index}`);if("reasoning_text"!==t.type)throw new d(`expected content to be 'reasoning_text', got ${t.type}`);t.text+=e.delta}break}case"response.completed":s(this,r6,e.response,"f")}return t},Symbol.asyncIterator)](){let e=[],t=[],r=!1;return this.on("event",r=>{let n=t.shift();n?n.resolve(r):e.push(r)}),this.on("end",()=>{for(let e of(r=!0,t))e.resolve(void 0);t.length=0}),this.on("abort",e=>{for(let n of(r=!0,t))n.reject(e);t.length=0}),this.on("error",e=>{for(let n of(r=!0,t))n.reject(e);t.length=0}),{next:async()=>e.length?{value:e.shift(),done:!1}:r?{value:void 0,done:!0}:new Promise((e,r)=>t.push({resolve:e,reject:r})).then(e=>e?{value:e,done:!1}:{value:void 0,done:!0}),return:async()=>(this.abort(),{value:void 0,done:!0})}}async finalResponse(){await this.done();let e=l(this,r3,"f");if(!e)throw new d("stream ended without producing a ChatCompletion");return e}}function nX(e,t){return nD(e,t)}class nZ extends e8{list(e,t={},r){return this._client.getAPIList(te`/responses/${e}/input_items`,eD,{query:t,...r})}}class nY extends e8{constructor(){super(...arguments),this.inputItems=new nZ(this._client)}create(e,t){return this._client.post("/responses",{body:e,...t,stream:e.stream??!1})._thenUnwrap(e=>("object"in e&&"response"===e.object&&nK(e),e))}retrieve(e,t={},r){return this._client.get(te`/responses/${e}`,{query:t,...r,stream:t?.stream??!1})._thenUnwrap(e=>("object"in e&&"response"===e.object&&nK(e),e))}delete(e,t){return this._client.delete(te`/responses/${e}`,{...t,headers:tU([{Accept:"*/*"},t?.headers])})}parse(e,t){return this._client.responses.create(e,t)._thenUnwrap(t=>nF(t,e))}stream(e,t){return nG.createResponse(this._client,e,t)}cancel(e,t){return this._client.post(te`/responses/${e}/cancel`,t)}}nY.InputItems=nZ;class nJ extends e8{create(e,t,r){return this._client.post(te`/uploads/${e}/parts`,eK({body:t,...r},this._client))}}class nQ extends e8{constructor(){super(...arguments),this.parts=new nJ(this._client)}create(e,t){return this._client.post("/uploads",{body:e,...t})}cancel(e,t){return this._client.post(te`/uploads/${e}/cancel`,t)}complete(e,t,r){return this._client.post(te`/uploads/${e}/complete`,{body:t,...r})}}nQ.Parts=nJ;let n0=async e=>{let t=await Promise.allSettled(e),r=t.filter(e=>"rejected"===e.status);if(r.length){for(let e of r)console.error(e.reason);throw Error(`${r.length} promise(s) failed - see the above errors`)}let n=[];for(let e of t)"fulfilled"===e.status&&n.push(e.value);return n};class n1 extends e8{create(e,t,r){return this._client.post(te`/vector_stores/${e}/file_batches`,{body:t,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}retrieve(e,t,r){let{vector_store_id:n}=t;return this._client.get(te`/vector_stores/${n}/file_batches/${e}`,{...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}cancel(e,t,r){let{vector_store_id:n}=t;return this._client.post(te`/vector_stores/${n}/file_batches/${e}/cancel`,{...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}async createAndPoll(e,t,r){let n=await this.create(e,t);return await this.poll(e,n.id,r)}listFiles(e,t,r){let{vector_store_id:n,...i}=t;return this._client.getAPIList(te`/vector_stores/${n}/file_batches/${e}/files`,eD,{query:i,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}async poll(e,t,r){let n=tU([r?.headers,{"X-Stainless-Poll-Helper":"true","X-Stainless-Custom-Poll-Interval":r?.pollIntervalMs?.toString()??void 0}]);for(;;){let{data:i,response:o}=await this.retrieve(t,{vector_store_id:e},{...r,headers:n}).withResponse();switch(i.status){case"in_progress":let a=5e3;if(r?.pollIntervalMs)a=r.pollIntervalMs;else{let e=o.headers.get("openai-poll-after-ms");if(e){let t=parseInt(e);isNaN(t)||(a=t)}}await z(a);break;case"failed":case"cancelled":case"completed":return i}}}async uploadAndPoll(e,{files:t,fileIds:r=[]},n){if(null==t||0==t.length)throw Error("No `files` provided to process. If you've already uploaded files you should use `.createAndPoll()` instead");let i=Math.min(n?.maxConcurrency??5,t.length),o=this._client,a=t.values(),s=[...r];async function l(e){for(let t of e){let e=await o.files.create({file:t,purpose:"assistants"},n);s.push(e.id)}}let c=Array(i).fill(a).map(l);return await n0(c),await this.createAndPoll(e,{file_ids:s})}}class n2 extends e8{create(e,t,r){return this._client.post(te`/vector_stores/${e}/files`,{body:t,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}retrieve(e,t,r){let{vector_store_id:n}=t;return this._client.get(te`/vector_stores/${n}/files/${e}`,{...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}update(e,t,r){let{vector_store_id:n,...i}=t;return this._client.post(te`/vector_stores/${n}/files/${e}`,{body:i,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}list(e,t={},r){return this._client.getAPIList(te`/vector_stores/${e}/files`,eD,{query:t,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}delete(e,t,r){let{vector_store_id:n}=t;return this._client.delete(te`/vector_stores/${n}/files/${e}`,{...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}async createAndPoll(e,t,r){let n=await this.create(e,t,r);return await this.poll(e,n.id,r)}async poll(e,t,r){let n=tU([r?.headers,{"X-Stainless-Poll-Helper":"true","X-Stainless-Custom-Poll-Interval":r?.pollIntervalMs?.toString()??void 0}]);for(;;){let i=await this.retrieve(t,{vector_store_id:e},{...r,headers:n}).withResponse(),o=i.data;switch(o.status){case"in_progress":let a=5e3;if(r?.pollIntervalMs)a=r.pollIntervalMs;else{let e=i.response.headers.get("openai-poll-after-ms");if(e){let t=parseInt(e);isNaN(t)||(a=t)}}await z(a);break;case"failed":case"completed":return o}}}async upload(e,t,r){let n=await this._client.files.create({file:t,purpose:"assistants"},r);return this.create(e,{file_id:n.id},r)}async uploadAndPoll(e,t,r){let n=await this.upload(e,t,r);return await this.poll(e,n.id,r)}content(e,t,r){let{vector_store_id:n}=t;return this._client.getAPIList(te`/vector_stores/${n}/files/${e}/content`,eL,{...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}}class n6 extends e8{constructor(){super(...arguments),this.files=new n2(this._client),this.fileBatches=new n1(this._client)}create(e,t){return this._client.post("/vector_stores",{body:e,...t,headers:tU([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}retrieve(e,t){return this._client.get(te`/vector_stores/${e}`,{...t,headers:tU([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}update(e,t,r){return this._client.post(te`/vector_stores/${e}`,{body:t,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}list(e={},t){return this._client.getAPIList("/vector_stores",eD,{query:e,...t,headers:tU([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}delete(e,t){return this._client.delete(te`/vector_stores/${e}`,{...t,headers:tU([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}search(e,t,r){return this._client.getAPIList(te`/vector_stores/${e}/search`,eL,{body:t,method:"post",...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}}n6.Files=n2,n6.FileBatches=n1;class n3 extends e8{create(e,t){return this._client.post("/videos",eV({body:e,...t},this._client))}retrieve(e,t){return this._client.get(te`/videos/${e}`,t)}list(e={},t){return this._client.getAPIList("/videos",eF,{query:e,...t})}delete(e,t){return this._client.delete(te`/videos/${e}`,t)}downloadContent(e,t={},r){return this._client.get(te`/videos/${e}/content`,{query:t,...r,headers:tU([{Accept:"application/binary"},r?.headers]),__binaryResponse:!0})}remix(e,t,r){return this._client.post(te`/videos/${e}/remix`,eV({body:t,...r},this._client))}}var n5=r(8963).Buffer;class n4 extends e8{constructor(){super(...arguments),r7.add(this)}async unwrap(e,t,r=this._client.webhookSecret,n=300){return await this.verifySignature(e,t,r,n),JSON.parse(e)}async verifySignature(e,t,r=this._client.webhookSecret,n=300){if("u"<typeof crypto||"function"!=typeof crypto.subtle.importKey||"function"!=typeof crypto.subtle.verify)throw Error("Webhook signature verification is only supported when the `crypto` global is defined");l(this,r7,"m",ne).call(this,r);let i=tU([t]).values,o=l(this,r7,"m",nt).call(this,i,"webhook-signature"),a=l(this,r7,"m",nt).call(this,i,"webhook-timestamp"),s=l(this,r7,"m",nt).call(this,i,"webhook-id"),c=parseInt(a,10);if(isNaN(c))throw new k("Invalid webhook timestamp format");let u=Math.floor(Date.now()/1e3);if(u-c>n)throw new k("Webhook timestamp is too old");if(c>u+n)throw new k("Webhook timestamp is too new");let f=o.split(" ").map(e=>e.startsWith("v1,")?e.substring(3):e),d=r.startsWith("whsec_")?n5.from(r.replace("whsec_",""),"base64"):n5.from(r,"utf-8"),h=s?`${s}.${a}.${e}`:`${a}.${e}`,p=await crypto.subtle.importKey("raw",d,{name:"HMAC",hash:"SHA-256"},!1,["verify"]);for(let e of f)try{let t=n5.from(e,"base64");if(await crypto.subtle.verify("HMAC",p,t,new TextEncoder().encode(h)))return}catch{continue}throw new k("The given webhook signature does not match the expected signature")}}r7=new WeakSet,ne=function(e){if("string"!=typeof e||0===e.length)throw Error("The webhook secret must either be set using the env var, OPENAI_WEBHOOK_SECRET, on the client class, OpenAI({ webhookSecret: '123' }), or passed to this function")},nt=function(e,t){if(!e)throw Error("Headers are required");let r=e.get(t);if(null==r)throw Error(`Missing required header: ${t}`);return r};class n8{constructor({baseURL:e=nl("OPENAI_BASE_URL"),apiKey:t=nl("OPENAI_API_KEY"),organization:r=nl("OPENAI_ORG_ID")??null,project:n=nl("OPENAI_PROJECT_ID")??null,webhookSecret:i=nl("OPENAI_WEBHOOK_SECRET")??null,...o}={}){if(nr.add(this),ni.set(this,void 0),this.completions=new nh(this),this.chat=new tD(this),this.embeddings=new ny(this),this.files=new nE(this),this.images=new nT(this),this.audio=new tK(this),this.moderations=new nP(this),this.models=new nN(this),this.fineTuning=new nI(this),this.graders=new nj(this),this.vectorStores=new n6(this),this.webhooks=new n4(this),this.beta=new nd(this),this.batches=new tG(this),this.uploads=new nQ(this),this.responses=new nY(this),this.realtime=new nL(this),this.conversations=new nv(this),this.evals=new nA(this),this.containers=new ng(this),this.videos=new n3(this),void 0===t)throw new d("Missing credentials. Please pass an `apiKey`, or set the `OPENAI_API_KEY` environment variable.");const a={apiKey:t,organization:r,project:n,webhookSecret:i,...o,baseURL:e||"https://api.openai.com/v1"};if(!a.dangerouslyAllowBrowser&&L())throw new d("It looks like you're running in a browser-like environment.\n\nThis is disabled by default, as it risks exposing your secret API credentials to attackers.\nIf you understand the risks and have appropriate mitigations in place,\nyou can set the `dangerouslyAllowBrowser` option to `true`, e.g.,\n\nnew OpenAI({ apiKey, dangerouslyAllowBrowser: true });\n\nhttps://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety\n");this.baseURL=a.baseURL,this.timeout=a.timeout??nn.DEFAULT_TIMEOUT,this.logger=a.logger??console;const l="warn";this.logLevel=l,this.logLevel=eA(a.logLevel,"ClientOptions.logLevel",this)??eA(nl("OPENAI_LOG"),"process.env['OPENAI_LOG']",this)??l,this.fetchOptions=a.fetchOptions,this.maxRetries=a.maxRetries??2,this.fetch=a.fetch??V(),s(this,ni,Y,"f"),this._options=a,this.apiKey="string"==typeof t?t:"Missing Key",this.organization=r,this.project=n,this.webhookSecret=i}withOptions(e){return new this.constructor({...this._options,baseURL:this.baseURL,maxRetries:this.maxRetries,timeout:this.timeout,logger:this.logger,logLevel:this.logLevel,fetch:this.fetch,fetchOptions:this.fetchOptions,apiKey:this.apiKey,organization:this.organization,project:this.project,webhookSecret:this.webhookSecret,...e})}defaultQuery(){return this._options.defaultQuery}validateHeaders({values:e,nulls:t}){}async authHeaders(e){return tU([{Authorization:`Bearer ${this.apiKey}`}])}stringifyQuery(e){return ep(e,{arrayFormat:"brackets"})}getUserAgent(){return`${this.constructor.name}/JS 6.3.0`}defaultIdempotencyKey(){return`stainless-node-retry-${c()}`}makeStatusError(e,t,r,n){return h.generate(e,t,r,n)}async _callApiKey(){let e,t=this._options.apiKey;if("function"!=typeof t)return!1;try{e=await t()}catch(e){if(e instanceof d)throw e;throw new d(`Failed to get token from 'apiKey' function: ${e.message}`,{cause:e})}if("string"!=typeof e||!e)throw new d(`Expected 'apiKey' function argument to return a string but it returned ${e}`);return this.apiKey=e,!0}buildURL(e,t,r){let n=!l(this,nr,"m",no).call(this)&&r||this.baseURL,i=new URL(O(e)?e:n+(n.endsWith("/")&&e.startsWith("/")?e.slice(1):e)),o=this.defaultQuery();return j(o)||(t={...o,...t}),"object"==typeof t&&t&&!Array.isArray(t)&&(i.search=this.stringifyQuery(t)),i.toString()}async prepareOptions(e){await this._callApiKey()}async prepareRequest(e,{url:t,options:r}){}get(e,t){return this.methodRequest("get",e,t)}post(e,t){return this.methodRequest("post",e,t)}patch(e,t){return this.methodRequest("patch",e,t)}put(e,t){return this.methodRequest("put",e,t)}delete(e,t){return this.methodRequest("delete",e,t)}methodRequest(e,t,r){return this.request(Promise.resolve(r).then(r=>({method:e,path:t,...r})))}request(e,t=null){return new eP(this,this.makeRequest(e,t,void 0))}async makeRequest(e,t,r){let n=await e,i=n.maxRetries??this.maxRetries;null==t&&(t=i),await this.prepareOptions(n);let{req:o,url:a,timeout:s}=await this.buildRequest(n,{retryCount:i-t});await this.prepareRequest(o,{url:a,options:n});let l="log_"+(0x1000000*Math.random()|0).toString(16).padStart(6,"0"),c=void 0===r?"":`, retryOf: ${r}`,d=Date.now();if(ek(this).debug(`[${l}] sending request`,eC({retryOfRequestLogID:r,method:n.method,url:a,options:n,headers:o.headers})),n.signal?.aborted)throw new p;let h=new AbortController,b=await this.fetchWithTimeout(a,o,s,h).catch(f),v=Date.now();if(b instanceof globalThis.Error){let e=`retrying, ${t} attempts remaining`;if(n.signal?.aborted)throw new p;let i=u(b)||/timed? ?out/i.test(String(b)+("cause"in b?String(b.cause):""));if(t)return ek(this).info(`[${l}] connection ${i?"timed out":"failed"} - ${e}`),ek(this).debug(`[${l}] connection ${i?"timed out":"failed"} (${e})`,eC({retryOfRequestLogID:r,url:a,durationMs:v-d,message:b.message})),this.retryRequest(n,t,r??l);if(ek(this).info(`[${l}] connection ${i?"timed out":"failed"} - error; no more retries left`),ek(this).debug(`[${l}] connection ${i?"timed out":"failed"} (error; no more retries left)`,eC({retryOfRequestLogID:r,url:a,durationMs:v-d,message:b.message})),i)throw new g;throw new m({cause:b})}let y=[...b.headers.entries()].filter(([e])=>"x-request-id"===e).map(([e,t])=>", "+e+": "+JSON.stringify(t)).join(""),w=`[${l}${c}${y}] ${o.method} ${a} ${b.ok?"succeeded":"failed"} with status ${b.status} in ${v-d}ms`;if(!b.ok){let e=await this.shouldRetry(b);if(t&&e){let e=`retrying, ${t} attempts remaining`;return await Z(b.body),ek(this).info(`${w} - ${e}`),ek(this).debug(`[${l}] response error (${e})`,eC({retryOfRequestLogID:r,url:b.url,status:b.status,headers:b.headers,durationMs:v-d})),this.retryRequest(n,t,r??l,b.headers)}let i=e?"error; no more retries left":"error; not retryable";ek(this).info(`${w} - ${i}`);let o=await b.text().catch(e=>f(e).message),a=B(o),s=a?void 0:o;throw ek(this).debug(`[${l}] response error (${i})`,eC({retryOfRequestLogID:r,url:b.url,status:b.status,headers:b.headers,message:s,durationMs:Date.now()-d})),this.makeStatusError(b.status,a,s,b.headers)}return ek(this).info(w),ek(this).debug(`[${l}] response start`,eC({retryOfRequestLogID:r,url:b.url,status:b.status,headers:b.headers,durationMs:v-d})),{response:b,options:n,controller:h,requestLogID:l,retryOfRequestLogID:r,startTime:d}}getAPIList(e,t,r){return this.requestAPIList(t,{method:"get",path:e,...r})}requestAPIList(e,t){return new ez(this,this.makeRequest(t,null,void 0),e)}async fetchWithTimeout(e,t,r,n){let{signal:i,method:o,...a}=t||{};i&&i.addEventListener("abort",()=>n.abort());let s=setTimeout(()=>n.abort(),r),l=globalThis.ReadableStream&&a.body instanceof globalThis.ReadableStream||"object"==typeof a.body&&null!==a.body&&Symbol.asyncIterator in a.body,c={signal:n.signal,...l?{duplex:"half"}:{},method:"GET",...a};o&&(c.method=o.toUpperCase());try{return await this.fetch.call(void 0,e,c)}finally{clearTimeout(s)}}async shouldRetry(e){let t=e.headers.get("x-should-retry");return"true"===t||"false"!==t&&(408===e.status||409===e.status||429===e.status||!!(e.status>=500))}async retryRequest(e,t,r,n){let i,o=n?.get("retry-after-ms");if(o){let e=parseFloat(o);Number.isNaN(e)||(i=e)}let a=n?.get("retry-after");if(a&&!i){let e=parseFloat(a);i=Number.isNaN(e)?Date.parse(a)-Date.now():1e3*e}if(!(i&&0<=i&&i<6e4)){let r=e.maxRetries??this.maxRetries;i=this.calculateDefaultRetryTimeoutMillis(t,r)}return await z(i),this.makeRequest(e,t-1,r)}calculateDefaultRetryTimeoutMillis(e,t){return Math.min(.5*Math.pow(2,t-e),8)*(1-.25*Math.random())*1e3}async buildRequest(e,{retryCount:t=0}={}){let r={...e},{method:n,path:i,query:o,defaultBaseURL:a}=r,s=this.buildURL(i,o,a);"timeout"in r&&P("timeout",r.timeout),r.timeout=r.timeout??this.timeout;let{bodyHeaders:l,body:c}=this.buildBody({options:r}),u=await this.buildHeaders({options:e,method:n,bodyHeaders:l,retryCount:t});return{req:{method:n,headers:u,...r.signal&&{signal:r.signal},...globalThis.ReadableStream&&c instanceof globalThis.ReadableStream&&{duplex:"half"},...c&&{body:c},...this.fetchOptions??{},...r.fetchOptions??{}},url:s,timeout:r.timeout}}async buildHeaders({options:e,method:t,bodyHeaders:r,retryCount:n}){let i={};this.idempotencyHeader&&"get"!==t&&(e.idempotencyKey||(e.idempotencyKey=this.defaultIdempotencyKey()),i[this.idempotencyHeader]=e.idempotencyKey);let o=tU([i,{Accept:"application/json","User-Agent":this.getUserAgent(),"X-Stainless-Retry-Count":String(n),...e.timeout?{"X-Stainless-Timeout":String(Math.trunc(e.timeout/1e3))}:{},...W(),"OpenAI-Organization":this.organization,"OpenAI-Project":this.project},await this.authHeaders(e),this._options.defaultHeaders,r,e.headers]);return this.validateHeaders(o),o.values}buildBody({options:{body:e,headers:t}}){if(!e)return{bodyHeaders:void 0,body:void 0};let r=tU([t]);return ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof DataView||"string"==typeof e&&r.values.has("content-type")||globalThis.Blob&&e instanceof globalThis.Blob||e instanceof FormData||e instanceof URLSearchParams||globalThis.ReadableStream&&e instanceof globalThis.ReadableStream?{bodyHeaders:void 0,body:e}:"object"==typeof e&&(Symbol.asyncIterator in e||Symbol.iterator in e&&"next"in e&&"function"==typeof e.next)?{bodyHeaders:void 0,body:G(e)}:l(this,ni,"f").call(this,{body:e,headers:r})}}nn=n8,ni=new WeakMap,nr=new WeakSet,no=function(){return"https://api.openai.com/v1"!==this.baseURL},n8.OpenAI=nn,n8.DEFAULT_TIMEOUT=6e5,n8.OpenAIError=d,n8.APIError=h,n8.APIConnectionError=m,n8.APIConnectionTimeoutError=g,n8.APIUserAbortError=p,n8.NotFoundError=w,n8.ConflictError=x,n8.RateLimitError=E,n8.BadRequestError=b,n8.AuthenticationError=v,n8.InternalServerError=_,n8.PermissionDeniedError=y,n8.UnprocessableEntityError=A,n8.InvalidWebhookSignatureError=k,n8.toFile=e3,n8.Completions=nh,n8.Chat=tD,n8.Embeddings=ny,n8.Files=nE,n8.Images=nT,n8.Audio=tK,n8.Moderations=nP,n8.Models=nN,n8.FineTuning=nI,n8.Graders=nj,n8.VectorStores=n6,n8.Webhooks=n4,n8.Beta=nd,n8.Batches=tG,n8.Uploads=nQ,n8.Responses=nY,n8.Realtime=nL,n8.Conversations=nv,n8.Evals=nA,n8.Containers=ng,n8.Videos=n3,r(85409)},85411(e,t,r){"use strict";r.d(t,{A:()=>o});class n{value;next;constructor(e){this.value=e}}class i{#er;#en;#I;constructor(){this.clear()}enqueue(e){let t=new n(e);this.#er?this.#en.next=t:this.#er=t,this.#en=t,this.#I++}dequeue(){let e=this.#er;if(e)return this.#er=this.#er.next,this.#I--,this.#er||(this.#en=void 0),e.value}peek(){if(this.#er)return this.#er.value}clear(){this.#er=void 0,this.#en=void 0,this.#I=0}get size(){return this.#I}*[Symbol.iterator](){let e=this.#er;for(;e;)yield e.value,e=e.next}*drain(){for(;this.#er;)yield this.dequeue()}}function o(e){a(e);let t=new i,r=0,n=()=>{r<e&&t.size>0&&(t.dequeue()(),r++)},o=()=>{r--,n()},s=async(e,t,r)=>{let n=(async()=>e(...r))();t(n);try{await n}catch{}o()},l=(i,o,a)=>{new Promise(e=>{t.enqueue(e)}).then(s.bind(void 0,i,o,a)),(async()=>{await Promise.resolve(),r<e&&n()})()},c=(e,...t)=>new Promise(r=>{l(e,r,t)});return Object.defineProperties(c,{activeCount:{get:()=>r},pendingCount:{get:()=>t.size},clearQueue:{value(){t.clear()}},concurrency:{get:()=>e,set(i){a(i),e=i,queueMicrotask(()=>{for(;r<e&&t.size>0;)n()})}}}),c}function a(e){if(!((Number.isInteger(e)||e===1/0)&&e>0))throw TypeError("Expected `concurrency` to be a number from 1 and up")}},37817(e,t,r){"use strict";let n,i;r.d(t,{io:()=>eX});var o,a={};r.r(a),r.d(a,{Decoder:()=>eN,Encoder:()=>eT,PacketType:()=>o,isPacketValid:()=>eH,protocol:()=>ej});let s=Object.create(null);s.open="0",s.close="1",s.ping="2",s.pong="3",s.message="4",s.upgrade="5",s.noop="6";let l=Object.create(null);Object.keys(s).forEach(e=>{l[s[e]]=e});let c={type:"error",data:"parser error"},u="function"==typeof Blob||"u">typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),f="function"==typeof ArrayBuffer,d=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,h=({type:e,data:t},r,n)=>{if(u&&t instanceof Blob)if(r)return n(t);else return p(t,n);if(f&&(t instanceof ArrayBuffer||d(t)))if(r)return n(t);else return p(new Blob([t]),n);return n(s[e]+(t||""))},p=(e,t)=>{let r=new FileReader;return r.onload=function(){t("b"+(r.result.split(",")[1]||""))},r.readAsDataURL(e)};function m(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}function g(e,t){return u&&e.data instanceof Blob?e.data.arrayBuffer().then(m).then(t):f&&(e.data instanceof ArrayBuffer||d(e.data))?t(m(e.data)):void h(e,!1,e=>{n||(n=new TextEncoder),t(n.encode(e))})}let b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",v="u"<typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<b.length;e++)v[b.charCodeAt(e)]=e;let y=e=>{let t=.75*e.length,r=e.length,n,i=0,o,a,s,l;"="===e[e.length-1]&&(t--,"="===e[e.length-2]&&t--);let c=new ArrayBuffer(t),u=new Uint8Array(c);for(n=0;n<r;n+=4)o=v[e.charCodeAt(n)],a=v[e.charCodeAt(n+1)],s=v[e.charCodeAt(n+2)],l=v[e.charCodeAt(n+3)],u[i++]=o<<2|a>>4,u[i++]=(15&a)<<4|s>>2,u[i++]=(3&s)<<6|63&l;return c},w="function"==typeof ArrayBuffer,x=(e,t)=>{if("string"!=typeof e)return{type:"message",data:E(e,t)};let r=e.charAt(0);return"b"===r?{type:"message",data:A(e.substring(1),t)}:l[r]?e.length>1?{type:l[r],data:e.substring(1)}:{type:l[r]}:c},A=(e,t)=>w?E(y(e),t):{base64:!0,data:e},E=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,_="\x1e",S=(e,t)=>{let r=e.length,n=Array(r),i=0;e.forEach((e,o)=>{h(e,!1,e=>{n[o]=e,++i===r&&t(n.join(_))})})},$=(e,t)=>{let r=e.split(_),n=[];for(let e=0;e<r.length;e++){let i=x(r[e],t);if(n.push(i),"error"===i.type)break}return n};function k(){return new TransformStream({transform(e,t){g(e,r=>{let n,i=r.length;if(i<126)new DataView((n=new Uint8Array(1)).buffer).setUint8(0,i);else if(i<65536){let e=new DataView((n=new Uint8Array(3)).buffer);e.setUint8(0,126),e.setUint16(1,i)}else{let e=new DataView((n=new Uint8Array(9)).buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(i))}e.data&&"string"!=typeof e.data&&(n[0]|=128),t.enqueue(n),t.enqueue(r)})}})}function C(e){return e.reduce((e,t)=>e+t.length,0)}function O(e,t){if(e[0].length===t)return e.shift();let r=new Uint8Array(t),n=0;for(let i=0;i<t;i++)r[i]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),r}function M(e,t){i||(i=new TextDecoder);let r=[],n=0,o=-1,a=!1;return new TransformStream({transform(s,l){for(r.push(s);;){if(0===n){if(1>C(r))break;let e=O(r,1);a=(128&e[0])==128,n=(o=127&e[0])<126?3:126===o?1:2}else if(1===n){if(2>C(r))break;let e=O(r,2);o=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),n=3}else if(2===n){if(8>C(r))break;let e=O(r,8),t=new DataView(e.buffer,e.byteOffset,e.length),i=t.getUint32(0);if(i>2097151){l.enqueue(c);break}o=0x100000000*i+t.getUint32(4),n=3}else{if(C(r)<o)break;let e=O(r,o);l.enqueue(x(a?e:i.decode(e),t)),n=0}if(0===o||o>e){l.enqueue(c);break}}}})}let I=4;function R(e){if(e)return j(e)}function j(e){for(var t in R.prototype)e[t]=R.prototype[t];return e}R.prototype.on=R.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},R.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this},R.prototype.off=R.prototype.removeListener=R.prototype.removeAllListeners=R.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<n.length;i++)if((r=n[i])===t||r.fn===t){n.splice(i,1);break}return 0===n.length&&delete this._callbacks["$"+e],this},R.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,i=r.length;n<i;++n)r[n].apply(this,t)}return this},R.prototype.emitReserved=R.prototype.emit,R.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},R.prototype.hasListeners=function(e){return!!this.listeners(e).length};let T="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),N="u">typeof self?self:"u">typeof window?window:Function("return this")(),P="arraybuffer";function B(){}function z(e,...t){return t.reduce((t,r)=>(e.hasOwnProperty(r)&&(t[r]=e[r]),t),{})}let L=N.setTimeout,D=N.clearTimeout;function F(e,t){t.useNativeTimers?(e.setTimeoutFn=L.bind(N),e.clearTimeoutFn=D.bind(N)):(e.setTimeoutFn=N.setTimeout.bind(N),e.clearTimeoutFn=N.clearTimeout.bind(N))}let H=1.33;function U(e){return"string"==typeof e?q(e):Math.ceil((e.byteLength||e.size)*H)}function q(e){let t=0,r=0;for(let n=0,i=e.length;n<i;n++)(t=e.charCodeAt(n))<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(n++,r+=4);return r}function W(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function V(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function K(e){let t={},r=e.split("&");for(let e=0,n=r.length;e<n;e++){let n=r[e].split("=");t[decodeURIComponent(n[0])]=decodeURIComponent(n[1])}return t}class G extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}}class X extends R{constructor(e){super(),this.writable=!1,F(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,r){return super.emitReserved("error",new G(e,t,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return("opening"===this.readyState||"open"===this.readyState)&&(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let t=x(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return -1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&443!==Number(this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){let t=V(e);return t.length?"?"+t:""}}class Z extends X{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let e=0;this._polling&&(e++,this.once("pollComplete",function(){--e||t()})),this.writable||(e++,this.once("drain",function(){--e||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let t=e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)};$(e,this.socket.binaryType).forEach(t),"closed"!==this.readyState&&(this._polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this._poll())}doClose(){let e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,S(e,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=W()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}}let Y=!1;try{Y="u">typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}let J=Y;function Q(){}class ee extends Z{constructor(e){if(super(e),"u">typeof location){const t="https:"===location.protocol;let r=location.port;r||(r=t?"443":"80"),this.xd="u">typeof location&&e.hostname!==location.hostname||r!==e.port}}doWrite(e,t){let r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(e,t)=>{this.onError("xhr post error",e,t)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(e,t)=>{this.onError("xhr poll error",e,t)}),this.pollXhr=e}}class et extends R{constructor(e,t,r){super(),this.createRequest=e,F(this,r),this._opts=r,this._method=r.method||"GET",this._uri=t,this._data=void 0!==r.data?r.data:null,this._create()}_create(){var e;let t=z(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;let r=this._xhr=this.createRequest(t);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders)for(let e in r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0),this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(e)&&r.setRequestHeader(e,this._opts.extraHeaders[e])}catch(e){}if("POST"===this._method)try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{r.setRequestHeader("Accept","*/*")}catch(e){}null==(e=this._opts.cookieJar)||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var e;3===r.readyState&&(null==(e=this._opts.cookieJar)||e.parseCookies(r.getResponseHeader("set-cookie"))),4===r.readyState&&(200===r.status||1223===r.status?this._onLoad():this.setTimeoutFn(()=>{this._onError("number"==typeof r.status?r.status:0)},0))},r.send(this._data)}catch(e){this.setTimeoutFn(()=>{this._onError(e)},0);return}"u">typeof document&&(this._index=et.requestsCount++,et.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(void 0!==this._xhr&&null!==this._xhr){if(this._xhr.onreadystatechange=Q,e)try{this._xhr.abort()}catch(e){}"u">typeof document&&delete et.requests[this._index],this._xhr=null}}_onLoad(){let e=this._xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}function er(){for(let e in et.requests)et.requests.hasOwnProperty(e)&&et.requests[e].abort()}et.requestsCount=0,et.requests={},"u">typeof document&&("function"==typeof attachEvent?attachEvent("onunload",er):"function"==typeof addEventListener&&addEventListener("onpagehide"in N?"pagehide":"unload",er,!1));let en=function(){let e=eo({xdomain:!1});return e&&null!==e.responseType}();class ei extends ee{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=en&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new et(eo,this.uri(),e)}}function eo(e){let t=e.xdomain;try{if("u">typeof XMLHttpRequest&&(!t||J))return new XMLHttpRequest}catch(e){}if(!t)try{return new N[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(e){}}let ea="u">typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class es extends X{get name(){return"websocket"}doOpen(){let e=this.uri(),t=this.opts.protocols,r=ea?{}:z(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,r)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],n=t===e.length-1;h(r,this.supportsBinary,e=>{try{this.doWrite(r,e)}catch(e){}n&&T(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=W()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}let el=N.WebSocket||N.MozWebSocket;class ec extends es{createSocket(e,t,r){return ea?new el(e,t,r):t?new el(e,t):new el(e)}doWrite(e,t){this.ws.send(t)}}class eu extends X{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{let t=M(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(t).getReader(),n=k();n.readable.pipeTo(e.writable),this._writer=n.writable.getWriter();let i=()=>{r.read().then(({done:e,value:t})=>{e||(this.onPacket(t),i())}).catch(e=>{})};i();let o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],n=t===e.length-1;this._writer.write(r).then(()=>{n&&T(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;null==(e=this._transport)||e.close()}}let ef={websocket:ec,webtransport:eu,polling:ei},ed=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,eh=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ep(e){if(e.length>8e3)throw"URI too long";let t=e,r=e.indexOf("["),n=e.indexOf("]");-1!=r&&-1!=n&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let i=ed.exec(e||""),o={},a=14;for(;a--;)o[eh[a]]=i[a]||"";return -1!=r&&-1!=n&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=em(o,o.path),o.queryKey=eg(o,o.query),o}function em(e,t){let r=/\/{2,9}/g,n=t.replace(r,"/").split("/");return("/"==t.slice(0,1)||0===t.length)&&n.splice(0,1),"/"==t.slice(-1)&&n.splice(n.length-1,1),n}function eg(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,n){t&&(r[t]=n)}),r}let eb="function"==typeof addEventListener&&"function"==typeof removeEventListener,ev=[];eb&&addEventListener("offline",()=>{ev.forEach(e=>e())},!1);class ey extends R{constructor(e,t={}){var r,n;if(super(),this.binaryType=P,this.writeBuffer=[],this._prevBufferLen=0,this._upgrades=[],this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&"object"==typeof e&&(t=e,e=null),e){const r=ep(e);t.hostname=r.host,t.secure="https"===r.protocol||"wss"===r.protocol,t.port=r.port,r.query&&(t.query=r.query)}else t.host&&(t.hostname=ep(t.host).host);if(F(this,t),this.secure=null!=t.secure?t.secure:"u">typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("u">typeof location?location.hostname:"localhost"),this.port=t.port||("u">typeof location&&location.port?location.port:this.secure?"443":"80"),t.transportImplementations&&t.transports)throw Error("specifying both 'transportImplementations' and 'transports' options is not supported");t.transportImplementations||(null==(r=t.transports)?void 0:r.length)&&"function"==typeof t.transports[0]?(this.transports=[],this._transportsByName=Object.create(null),(null!=(n=t.transportImplementations)?n:t.transports).forEach(e=>{let t=e.prototype.name;this.transports.push(t),this._transportsByName[t]=e})):(this.transports=t.transports?[...t.transports]:["polling","websocket","webtransport"],this._transportsByName=ef),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=K(this.opts.query)),eb&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},ev.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=B()),this._open()}createTransport(e){let t=Object.assign({},this.opts.query);t.EIO=I,t.transport=e,this.id&&(t.sid=this.id);let r=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](r)}_open(){if(0===this.transports.length)return void this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);let e=this.opts.rememberUpgrade&&ey.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket")?"websocket":this.transports[0];this.readyState="opening";let t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",e=>this._onClose("transport close",e))}_probe(e){let t=this.createTransport(e),r=!1;ey.priorWebsocketSuccess=!1;let n=()=>{r||(t.send([{type:"ping",data:"probe"}]),t.once("packet",e=>{if(!r)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;ey.priorWebsocketSuccess="websocket"===t.name,this.transport.pause(()=>{r||"closed"!==this.readyState&&(c(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{let e=Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}}))};function i(){r||(r=!0,c(),t.close(),t=null)}let o=e=>{let r=Error("probe error: "+e);r.transport=t.name,i(),this.emitReserved("upgradeError",r)};function a(){o("transport closed")}function s(){o("socket closed")}function l(e){t&&e.name!==t.name&&i()}let c=()=>{t.removeListener("open",n),t.removeListener("error",o),t.removeListener("close",a),this.off("close",s),this.off("upgrading",l)};t.once("open",n),t.once("error",o),t.once("close",a),this.once("close",s),this.once("upgrading",l),-1!==this._upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn(()=>{r||t.open()},200):t.open()}onOpen(){if(this.readyState="open",ey.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let t=Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._upgrades=this._filterUpgrades(e.upgrades),this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){let r=this.writeBuffer[t].data;if(r&&(e+=U(r)),t>0&&e>this._maxPayload)return this.writeBuffer.slice(0,t);e+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,T(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,r){return this._sendPacket("message",e,t,r),this}send(e,t,r){return this._sendPacket("message",e,t,r),this}_sendPacket(e,t,r,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof r&&(n=r,r=null),"closing"===this.readyState||"closed"===this.readyState)return;(r=r||{}).compress=!1!==r.compress;let i={type:e,data:t,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),n&&this.once("flush",n),this.flush()}close(){let e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},r=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return("opening"===this.readyState||"open"===this.readyState)&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():e()}):this.upgrading?r():e()),this}_onError(e){if(ey.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&"opening"===this.readyState)return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),eb&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let e=ev.indexOf(this._offlineEventListener);-1!==e&&ev.splice(e,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}_filterUpgrades(e){let t=[];for(let r=0;r<e.length;r++)~this.transports.indexOf(e[r])&&t.push(e[r]);return t}}function ew(e,t="",r){let n=e;r=r||"u">typeof location&&location,null==e&&(e=r.protocol+"//"+r.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?r.protocol+e:r.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==r?r.protocol+"//"+e:"https://"+e),n=ep(e)),!n.port&&(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";let i=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+i+":"+n.port+t,n.href=n.protocol+"://"+i+(r&&r.port===n.port?"":":"+n.port),n}ey.protocol=I,ey.protocol;let ex="function"==typeof ArrayBuffer,eA=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,eE=Object.prototype.toString,e_="function"==typeof Blob||"u">typeof Blob&&"[object BlobConstructor]"===eE.call(Blob),eS="function"==typeof File||"u">typeof File&&"[object FileConstructor]"===eE.call(File);function e$(e){return ex&&(e instanceof ArrayBuffer||eA(e))||e_&&e instanceof Blob||eS&&e instanceof File}function ek(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let t=0,r=e.length;t<r;t++)if(ek(e[t]))return!0;return!1}if(e$(e))return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1==arguments.length)return ek(e.toJSON(),!0);for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&ek(e[t]))return!0;return!1}function eC(e){let t=[],r=e.data,n=e;return n.data=eO(r,t),n.attachments=t.length,{packet:n,buffers:t}}function eO(e,t,r){if(!e)return e;if(e$(e)){let r={_placeholder:!0,num:t.length};return t.push(e),r}if(Array.isArray(e)){let r=Array(e.length);for(let n=0;n<e.length;n++)r[n]=eO(e[n],t);return r}if("object"==typeof e&&!(e instanceof Date)){if(e.toJSON&&"function"==typeof e.toJSON&&!r)return eO(e.toJSON(),t,!0);let n={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=eO(e[r],t));return n}return e}function eM(e,t){return e.data=eI(e.data,t),delete e.attachments,e}function eI(e,t){if(!e)return e;if(e&&!0===e._placeholder){if("number"==typeof e.num&&e.num>=0&&e.num<t.length)return t[e.num];throw Error("illegal attachments")}if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=eI(e[r],t);else if("object"==typeof e)for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=eI(e[r],t));return e}let eR=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],ej=5;!function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(o||(o={}));class eT{constructor(e){this.replacer=e}encode(e){return(e.type===o.EVENT||e.type===o.ACK)&&ek(e)?this.encodeAsBinary({type:e.type===o.EVENT?o.BINARY_EVENT:o.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===o.BINARY_EVENT||e.type===o.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){let t=eC(e),r=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(r),n}}class eN extends R{constructor(e){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},"function"==typeof e?{reviver:e}:e)}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw Error("got plaintext data when reconstructing a packet");let r=(t=this.decodeString(e)).type===o.BINARY_EVENT;r||t.type===o.BINARY_ACK?(t.type=r?o.EVENT:o.ACK,this.reconstructor=new eP(t)):super.emitReserved("decoded",t)}else if(e$(e)||e.base64)if(this.reconstructor)(t=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw Error("got binary data when not reconstructing a packet");else throw Error("Unknown type: "+e)}decodeString(e){let t=0,r={type:Number(e.charAt(0))};if(void 0===o[r.type])throw Error("unknown packet type "+r.type);if(r.type===o.BINARY_EVENT||r.type===o.BINARY_ACK){let n=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);let i=e.substring(n,t);if(i!=Number(i)||"-"!==e.charAt(t))throw Error("Illegal attachments");let o=Number(i);if(!ez(o)||o<1)throw Error("Illegal attachments");if(o>this.opts.maxAttachments)throw Error("too many attachments");r.attachments=o}if("/"===e.charAt(t+1)){let n=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);r.nsp=e.substring(n,t)}else r.nsp="/";let n=e.charAt(t+1);if(""!==n&&Number(n)==n){let n=t+1;for(;++t;){let r=e.charAt(t);if(null==r||Number(r)!=r){--t;break}if(t===e.length)break}r.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){let n=this.tryParse(e.substr(t));if(eN.isPayloadValid(r.type,n))r.data=n;else throw Error("invalid payload")}return r}tryParse(e){try{return JSON.parse(e,this.opts.reviver)}catch(e){return!1}}static isPayloadValid(e,t){switch(e){case o.CONNECT:return eD(t);case o.DISCONNECT:return void 0===t;case o.CONNECT_ERROR:return"string"==typeof t||eD(t);case o.EVENT:case o.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===eR.indexOf(t[0]));case o.ACK:case o.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class eP{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){let e=eM(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function eB(e){return"string"==typeof e}let ez=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e};function eL(e){return void 0===e||ez(e)}function eD(e){return"[object Object]"===Object.prototype.toString.call(e)}function eF(e,t){switch(e){case o.CONNECT:return void 0===t||eD(t);case o.DISCONNECT:return void 0===t;case o.EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===eR.indexOf(t[0]));case o.ACK:return Array.isArray(t);case o.CONNECT_ERROR:return"string"==typeof t||eD(t);default:return!1}}function eH(e){return eB(e.nsp)&&eL(e.id)&&eF(e.type,e.data)}function eU(e,t,r){return e.on(t,r),function(){e.off(t,r)}}let eq=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class eW extends R{constructor(e,t,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[eU(e,"open",this.onopen.bind(this)),eU(e,"packet",this.onpacket.bind(this)),eU(e,"error",this.onerror.bind(this)),eU(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var r,n,i;if(eq.hasOwnProperty(e))throw Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let a={type:o.EVENT,data:t};if(a.options={},a.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){let e=this.ids++,r=t.pop();this._registerAckCallback(e,r),a.id=e}let s=null==(n=null==(r=this.io.engine)?void 0:r.transport)?void 0:n.writable,l=this.connected&&!(null==(i=this.io.engine)?void 0:i._hasPingExpired());return this.flags.volatile&&!s||(l?(this.notifyOutgoingListeners(a),this.packet(a)):this.sendBuffer.push(a)),this.flags={},this}_registerAckCallback(e,t){var r;let n=null!=(r=this.flags.timeout)?r:this._opts.ackTimeout;if(void 0===n){this.acks[e]=t;return}let i=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,Error("operation has timed out"))},n),o=(...e)=>{this.io.clearTimeoutFn(i),t.apply(this,e)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...t){return new Promise((r,n)=>{let i=(e,t)=>e?n(e):r(t);i.withError=!0,t.push(i),this.emit(e,...t)})}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());let r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...n)=>(this._queue[0],null!==e?r.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...n)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;let t=this._queue[0];(!t.pending||e)&&(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:o.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){let t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case o.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case o.EVENT:case o.BINARY_EVENT:this.onevent(e);break;case o.ACK:case o.BINARY_ACK:this.onack(e);break;case o.DISCONNECT:this.ondisconnect();break;case o.CONNECT_ERROR:this.destroy();let t=Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){let t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length)for(let t of this._anyListeners.slice())t.apply(this,e);super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,r=!1;return function(...n){r||(r=!0,t.packet({type:o.ACK,id:e,data:n}))}}onack(e){let t=this.acks[e.id];"function"==typeof t&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:o.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let r=0;r<t.length;r++)if(e===t[r]){t.splice(r,1);break}}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let r=0;r<t.length;r++)if(e===t[r]){t.splice(r,1);break}}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length)for(let t of this._anyOutgoingListeners.slice())t.apply(this,e.data)}}function eV(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}eV.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=(1&Math.floor(10*t))==0?e-r:e+r}return 0|Math.min(e,this.max)},eV.prototype.reset=function(){this.attempts=0},eV.prototype.setMin=function(e){this.ms=e},eV.prototype.setMax=function(e){this.max=e},eV.prototype.setJitter=function(e){this.jitter=e};class eK extends R{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,F(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!=(r=t.randomizationFactor)?r:.5),this.backoff=new eV({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const n=t.parser||a;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null==(t=this.backoff)||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null==(t=this.backoff)||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null==(t=this.backoff)||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new ey(this.uri,this.opts);let t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;let n=eU(t,"open",function(){r.onopen(),e&&e()}),i=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},o=eU(t,"error",i);if(!1!==this._timeout){let e=this._timeout,r=this.setTimeoutFn(()=>{n(),i(Error("timeout")),t.close()},e);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}return this.subs.push(n),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(eU(e,"ping",this.onping.bind(this)),eU(e,"data",this.ondata.bind(this)),eU(e,"error",this.onerror.bind(this)),eU(e,"close",this.onclose.bind(this)),eU(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){T(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new eW(this,e,t),this.nsps[e]=r),r}_destroy(e){for(let e of Object.keys(this.nsps))if(this.nsps[e].active)return;this._close()}_packet(e){let t=this.encoder.encode(e);for(let r=0;r<t.length;r++)this.engine.write(t[r],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var r;this.cleanup(),null==(r=this.engine)||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let r=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()}))},t);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}let eG={};function eX(e,t){let r;"object"==typeof e&&(t=e,e=void 0);let n=ew(e,(t=t||{}).path||"/socket.io"),i=n.source,o=n.id,a=n.path,s=eG[o]&&a in eG[o].nsps;return t.forceNew||t["force new connection"]||!1===t.multiplex||s?r=new eK(i,t):(eG[o]||(eG[o]=new eK(i,t)),r=eG[o]),n.query&&!t.query&&(t.query=n.queryKey),r.socket(n.path,t)}Object.assign(eX,{Manager:eK,Socket:eW,io:eX,connect:eX})},28526(e,t,r){"use strict";let n;r.d(t,{A:()=>c});let i="u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),o=new Uint8Array(16);function a(){if(!n){if("u"<typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");n=crypto.getRandomValues.bind(crypto)}return n(o)}let s=[];for(let e=0;e<256;++e)s.push((e+256).toString(16).slice(1));function l(e,t=0){return(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase()}let c=function(e,t,r){if(i&&!t&&!e)return i();let n=(e=e||{}).random??e.rng?.()??a();if(n.length<16)throw Error("Random bytes length must be >= 16");if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){if((r=r||0)<0||r+16>t.length)throw RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[r+e]=n[e];return t}return l(n)}},10749(e,t,r){"use strict";r.d(t,{G:()=>o,eq:()=>i});var n=r(83738);let i=n.ZS.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class o extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},r={_errors:[]},n=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(n);else if("invalid_return_type"===i.code)n(i.returnTypeError);else if("invalid_arguments"===i.code)n(i.argumentsError);else if(0===i.path.length)r._errors.push(t(i));else{let e=r,n=0;for(;n<i.path.length;){let r=i.path[n];n===i.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(i))):e[r]=e[r]||{_errors:[]},e=e[r],n++}}};return n(this),r}static assert(e){if(!(e instanceof o))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,n.ZS.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},r=[];for(let n of this.issues)if(n.path.length>0){let r=n.path[0];t[r]=t[r]||[],t[r].push(e(n))}else r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}o.create=e=>new o(e)},83738(e,t,r){"use strict";var n,i;r.d(t,{CR:()=>a,ZS:()=>n,Zp:()=>o}),function(e){e.assertEqual=e=>{},e.assertIs=function(e){},e.assertNever=function(e){throw Error()},e.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},e.getValidEnumValues=t=>{let r=e.objectKeys(t).filter(e=>"number"!=typeof t[t[e]]),n={};for(let e of r)n[e]=t[e];return e.objectValues(n)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},e.find=(e,t)=>{for(let r of e)if(t(r))return r},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(n||(n={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(i||(i={}));let o=n.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),a=e=>{switch(typeof e){case"undefined":return o.undefined;case"string":return o.string;case"number":return Number.isNaN(e)?o.nan:o.number;case"boolean":return o.boolean;case"function":return o.function;case"bigint":return o.bigint;case"symbol":return o.symbol;case"object":if(Array.isArray(e))return o.array;if(null===e)return o.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return o.promise;if("u">typeof Map&&e instanceof Map)return o.map;if("u">typeof Set&&e instanceof Set)return o.set;if("u">typeof Date&&e instanceof Date)return o.date;return o.object;default:return o.unknown}}},88403(e,t,r){"use strict";let n;r.d(t,{k5:()=>eq,gM:()=>eF,g1:()=>eH,kY:()=>o,ai:()=>eP,zM:()=>eB,Ik:()=>eL,YO:()=>ez,Yj:()=>eN,eu:()=>eU,KC:()=>eD});var i,o,a=r(10749),s=r(83738);let l=(e,t)=>{let r;switch(e.code){case a.eq.invalid_type:r=e.received===s.Zp.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case a.eq.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,s.ZS.jsonStringifyReplacer)}`;break;case a.eq.unrecognized_keys:r=`Unrecognized key(s) in object: ${s.ZS.joinValues(e.keys,", ")}`;break;case a.eq.invalid_union:r="Invalid input";break;case a.eq.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${s.ZS.joinValues(e.options)}`;break;case a.eq.invalid_enum_value:r=`Invalid enum value. Expected ${s.ZS.joinValues(e.options)}, received '${e.received}'`;break;case a.eq.invalid_arguments:r="Invalid function arguments";break;case a.eq.invalid_return_type:r="Invalid function return type";break;case a.eq.invalid_date:r="Invalid date";break;case a.eq.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:s.ZS.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case a.eq.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case a.eq.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case a.eq.custom:r="Invalid input";break;case a.eq.invalid_intersection_types:r="Intersection results could not be merged";break;case a.eq.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case a.eq.not_finite:r="Number must be finite";break;default:r=t.defaultError,s.ZS.assertNever(e)}return{message:r}},c=l;function u(){return c}!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:e?.message}(i||(i={}));let f=e=>{let{data:t,path:r,errorMaps:n,issueData:i}=e,o=[...r,...i.path||[]],a={...i,path:o};if(void 0!==i.message)return{...i,path:o,message:i.message};let s="";for(let e of n.filter(e=>!!e).slice().reverse())s=e(a,{data:t,defaultError:s}).message;return{...i,path:o,message:s}};function d(e,t){let r=u(),n=f({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===l?void 0:l].filter(e=>!!e)});e.common.issues.push(n)}class h{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let r=[];for(let n of t){if("aborted"===n.status)return p;"dirty"===n.status&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let e of t){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return h.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let n of t){let{key:t,value:i}=n;if("aborted"===t.status||"aborted"===i.status)return p;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==i.value||n.alwaysSet)&&(r[t.value]=i.value)}return{status:e.value,value:r}}}let p=Object.freeze({status:"aborted"}),m=e=>({status:"dirty",value:e}),g=e=>({status:"valid",value:e}),b=e=>"aborted"===e.status,v=e=>"dirty"===e.status,y=e=>"valid"===e.status,w=e=>"u">typeof Promise&&e instanceof Promise;class x{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let A=(e,t)=>{if(y(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new a.G(e.common.issues);return this._error=t,this._error}}};function E(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:o}=e;return"invalid_enum_value"===t.code?{message:o??i.defaultError}:void 0===i.data?{message:o??n??i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:o??r??i.defaultError}},description:i}}class _{get description(){return this._def.description}_getType(e){return(0,s.CR)(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:(0,s.CR)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new h,ctx:{common:e.parent.common,data:e.data,parsedType:(0,s.CR)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(w(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){let r={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,s.CR)(e)},n=this._parseSync({data:e,path:r.path,parent:r});return A(r,n)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,s.CR)(e)};if(!this["~standard"].async)try{let r=this._parseSync({data:e,path:[],parent:t});return y(r)?{value:r.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>y(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,s.CR)(e)},n=this._parse({data:e,path:r.path,parent:r});return A(r,await (w(n)?n:Promise.resolve(n)))}refine(e,t){let r=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,n)=>{let i=e(t),o=()=>n.addIssue({code:a.eq.custom,...r(t)});return"u">typeof Promise&&i instanceof Promise?i.then(e=>!!e||(o(),!1)):!!i||(o(),!1)})}refinement(e,t){return this._refinement((r,n)=>!!e(r)||(n.addIssue("function"==typeof t?t(r,n):t),!1))}_refinement(e){return new e$({schema:this,typeName:o.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return ek.create(this,this._def)}nullable(){return eC.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return es.create(this)}promise(){return eS.create(this,this._def)}or(e){return eu.create([this,e],this._def)}and(e){return ep.create(this,e,this._def)}transform(e){return new e$({...E(this._def),schema:this,typeName:o.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let t="function"==typeof e?e:()=>e;return new eO({...E(this._def),innerType:this,defaultValue:t,typeName:o.ZodDefault})}brand(){return new eR({typeName:o.ZodBranded,type:this,...E(this._def)})}catch(e){let t="function"==typeof e?e:()=>e;return new eM({...E(this._def),innerType:this,catchValue:t,typeName:o.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return ej.create(this,e)}readonly(){return eT.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let S=/^c[^\s-]{8,}$/i,$=/^[0-9a-z]+$/,k=/^[0-9A-HJKMNP-TV-Z]{26}$/i,C=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,O=/^[a-z0-9_-]{21}$/i,M=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,I=/^[-+]?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)?)??$/,R=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,j="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",T=/^(?:(?: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])$/,N=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,P=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,B=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,z=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,L=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,D="((\\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])))",F=RegExp(`^${D}$`);function H(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function U(e){return RegExp(`^${H(e)}$`)}function q(e){let t=`${D}T${H(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,RegExp(`^${t}$`)}function W(e,t){return!!(("v4"===t||!t)&&T.test(e)||("v6"===t||!t)&&P.test(e))}function V(e,t){if(!M.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),i=JSON.parse(atob(n));if("object"!=typeof i||null===i||"typ"in i&&i?.typ!=="JWT"||!i.alg||t&&i.alg!==t)return!1;return!0}catch{return!1}}function K(e,t){return!!(("v4"===t||!t)&&N.test(e)||("v6"===t||!t)&&B.test(e))}class G extends _{_parse(e){let t;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==s.Zp.string){let t=this._getOrReturnCtx(e);return d(t,{code:a.eq.invalid_type,expected:s.Zp.string,received:t.parsedType}),p}let r=new h;for(let i of this._def.checks)if("min"===i.kind)e.data.length<i.value&&(d(t=this._getOrReturnCtx(e,t),{code:a.eq.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if("max"===i.kind)e.data.length>i.value&&(d(t=this._getOrReturnCtx(e,t),{code:a.eq.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if("length"===i.kind){let n=e.data.length>i.value,o=e.data.length<i.value;(n||o)&&(t=this._getOrReturnCtx(e,t),n?d(t,{code:a.eq.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):o&&d(t,{code:a.eq.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if("email"===i.kind)R.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"email",code:a.eq.invalid_string,message:i.message}),r.dirty());else if("emoji"===i.kind)n||(n=RegExp(j,"u")),n.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"emoji",code:a.eq.invalid_string,message:i.message}),r.dirty());else if("uuid"===i.kind)C.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"uuid",code:a.eq.invalid_string,message:i.message}),r.dirty());else if("nanoid"===i.kind)O.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"nanoid",code:a.eq.invalid_string,message:i.message}),r.dirty());else if("cuid"===i.kind)S.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"cuid",code:a.eq.invalid_string,message:i.message}),r.dirty());else if("cuid2"===i.kind)$.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"cuid2",code:a.eq.invalid_string,message:i.message}),r.dirty());else if("ulid"===i.kind)k.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"ulid",code:a.eq.invalid_string,message:i.message}),r.dirty());else if("url"===i.kind)try{new URL(e.data)}catch{d(t=this._getOrReturnCtx(e,t),{validation:"url",code:a.eq.invalid_string,message:i.message}),r.dirty()}else"regex"===i.kind?(i.regex.lastIndex=0,i.regex.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"regex",code:a.eq.invalid_string,message:i.message}),r.dirty())):"trim"===i.kind?e.data=e.data.trim():"includes"===i.kind?e.data.includes(i.value,i.position)||(d(t=this._getOrReturnCtx(e,t),{code:a.eq.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):"toLowerCase"===i.kind?e.data=e.data.toLowerCase():"toUpperCase"===i.kind?e.data=e.data.toUpperCase():"startsWith"===i.kind?e.data.startsWith(i.value)||(d(t=this._getOrReturnCtx(e,t),{code:a.eq.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):"endsWith"===i.kind?e.data.endsWith(i.value)||(d(t=this._getOrReturnCtx(e,t),{code:a.eq.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):"datetime"===i.kind?q(i).test(e.data)||(d(t=this._getOrReturnCtx(e,t),{code:a.eq.invalid_string,validation:"datetime",message:i.message}),r.dirty()):"date"===i.kind?F.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{code:a.eq.invalid_string,validation:"date",message:i.message}),r.dirty()):"time"===i.kind?U(i).test(e.data)||(d(t=this._getOrReturnCtx(e,t),{code:a.eq.invalid_string,validation:"time",message:i.message}),r.dirty()):"duration"===i.kind?I.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"duration",code:a.eq.invalid_string,message:i.message}),r.dirty()):"ip"===i.kind?W(e.data,i.version)||(d(t=this._getOrReturnCtx(e,t),{validation:"ip",code:a.eq.invalid_string,message:i.message}),r.dirty()):"jwt"===i.kind?V(e.data,i.alg)||(d(t=this._getOrReturnCtx(e,t),{validation:"jwt",code:a.eq.invalid_string,message:i.message}),r.dirty()):"cidr"===i.kind?K(e.data,i.version)||(d(t=this._getOrReturnCtx(e,t),{validation:"cidr",code:a.eq.invalid_string,message:i.message}),r.dirty()):"base64"===i.kind?z.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"base64",code:a.eq.invalid_string,message:i.message}),r.dirty()):"base64url"===i.kind?L.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"base64url",code:a.eq.invalid_string,message:i.message}),r.dirty()):s.ZS.assertNever(i);return{status:r.value,value:e.data}}_regex(e,t,r){return this.refinement(t=>e.test(t),{validation:t,code:a.eq.invalid_string,...i.errToObj(r)})}_addCheck(e){return new G({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...i.errToObj(e)})}url(e){return this._addCheck({kind:"url",...i.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...i.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...i.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...i.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...i.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...i.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...i.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...i.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...i.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...i.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...i.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...i.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...i.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...i.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...i.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...i.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...i.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...i.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...i.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...i.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...i.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...i.errToObj(t)})}nonempty(e){return this.min(1,i.errToObj(e))}trim(){return new G({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new G({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new G({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function X(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n;return Number.parseInt(e.toFixed(i).replace(".",""))%Number.parseInt(t.toFixed(i).replace(".",""))/10**i}G.create=e=>new G({checks:[],typeName:o.ZodString,coerce:e?.coerce??!1,...E(e)});class Z extends _{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==s.Zp.number){let t=this._getOrReturnCtx(e);return d(t,{code:a.eq.invalid_type,expected:s.Zp.number,received:t.parsedType}),p}let r=new h;for(let n of this._def.checks)"int"===n.kind?s.ZS.isInteger(e.data)||(d(t=this._getOrReturnCtx(e,t),{code:a.eq.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty()):"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(d(t=this._getOrReturnCtx(e,t),{code:a.eq.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(d(t=this._getOrReturnCtx(e,t),{code:a.eq.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"multipleOf"===n.kind?0!==X(e.data,n.value)&&(d(t=this._getOrReturnCtx(e,t),{code:a.eq.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(d(t=this._getOrReturnCtx(e,t),{code:a.eq.not_finite,message:n.message}),r.dirty()):s.ZS.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,i.toString(t))}gt(e,t){return this.setLimit("min",e,!1,i.toString(t))}lte(e,t){return this.setLimit("max",e,!0,i.toString(t))}lt(e,t){return this.setLimit("max",e,!1,i.toString(t))}setLimit(e,t,r,n){return new Z({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:i.toString(n)}]})}_addCheck(e){return new Z({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:i.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:i.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:i.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:i.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:i.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:i.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:i.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:i.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:i.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&s.ZS.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks)if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;else"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value);return Number.isFinite(t)&&Number.isFinite(e)}}Z.create=e=>new Z({checks:[],typeName:o.ZodNumber,coerce:e?.coerce||!1,...E(e)});class Y extends _{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==s.Zp.bigint)return this._getInvalidInput(e);let r=new h;for(let n of this._def.checks)"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(d(t=this._getOrReturnCtx(e,t),{code:a.eq.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(d(t=this._getOrReturnCtx(e,t),{code:a.eq.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(d(t=this._getOrReturnCtx(e,t),{code:a.eq.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):s.ZS.assertNever(n);return{status:r.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return d(t,{code:a.eq.invalid_type,expected:s.Zp.bigint,received:t.parsedType}),p}gte(e,t){return this.setLimit("min",e,!0,i.toString(t))}gt(e,t){return this.setLimit("min",e,!1,i.toString(t))}lte(e,t){return this.setLimit("max",e,!0,i.toString(t))}lt(e,t){return this.setLimit("max",e,!1,i.toString(t))}setLimit(e,t,r,n){return new Y({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:i.toString(n)}]})}_addCheck(e){return new Y({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:i.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:i.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:i.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:i.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:i.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}Y.create=e=>new Y({checks:[],typeName:o.ZodBigInt,coerce:e?.coerce??!1,...E(e)});class J extends _{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==s.Zp.boolean){let t=this._getOrReturnCtx(e);return d(t,{code:a.eq.invalid_type,expected:s.Zp.boolean,received:t.parsedType}),p}return g(e.data)}}J.create=e=>new J({typeName:o.ZodBoolean,coerce:e?.coerce||!1,...E(e)});class Q extends _{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==s.Zp.date){let t=this._getOrReturnCtx(e);return d(t,{code:a.eq.invalid_type,expected:s.Zp.date,received:t.parsedType}),p}if(Number.isNaN(e.data.getTime()))return d(this._getOrReturnCtx(e),{code:a.eq.invalid_date}),p;let r=new h;for(let n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(d(t=this._getOrReturnCtx(e,t),{code:a.eq.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),r.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(d(t=this._getOrReturnCtx(e,t),{code:a.eq.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):s.ZS.assertNever(n);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Q({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:i.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:i.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}Q.create=e=>new Q({checks:[],coerce:e?.coerce||!1,typeName:o.ZodDate,...E(e)});class ee extends _{_parse(e){if(this._getType(e)!==s.Zp.symbol){let t=this._getOrReturnCtx(e);return d(t,{code:a.eq.invalid_type,expected:s.Zp.symbol,received:t.parsedType}),p}return g(e.data)}}ee.create=e=>new ee({typeName:o.ZodSymbol,...E(e)});class et extends _{_parse(e){if(this._getType(e)!==s.Zp.undefined){let t=this._getOrReturnCtx(e);return d(t,{code:a.eq.invalid_type,expected:s.Zp.undefined,received:t.parsedType}),p}return g(e.data)}}et.create=e=>new et({typeName:o.ZodUndefined,...E(e)});class er extends _{_parse(e){if(this._getType(e)!==s.Zp.null){let t=this._getOrReturnCtx(e);return d(t,{code:a.eq.invalid_type,expected:s.Zp.null,received:t.parsedType}),p}return g(e.data)}}er.create=e=>new er({typeName:o.ZodNull,...E(e)});class en extends _{constructor(){super(...arguments),this._any=!0}_parse(e){return g(e.data)}}en.create=e=>new en({typeName:o.ZodAny,...E(e)});class ei extends _{constructor(){super(...arguments),this._unknown=!0}_parse(e){return g(e.data)}}ei.create=e=>new ei({typeName:o.ZodUnknown,...E(e)});class eo extends _{_parse(e){let t=this._getOrReturnCtx(e);return d(t,{code:a.eq.invalid_type,expected:s.Zp.never,received:t.parsedType}),p}}eo.create=e=>new eo({typeName:o.ZodNever,...E(e)});class ea extends _{_parse(e){if(this._getType(e)!==s.Zp.undefined){let t=this._getOrReturnCtx(e);return d(t,{code:a.eq.invalid_type,expected:s.Zp.void,received:t.parsedType}),p}return g(e.data)}}ea.create=e=>new ea({typeName:o.ZodVoid,...E(e)});class es extends _{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==s.Zp.array)return d(t,{code:a.eq.invalid_type,expected:s.Zp.array,received:t.parsedType}),p;if(null!==n.exactLength){let e=t.data.length>n.exactLength.value,i=t.data.length<n.exactLength.value;(e||i)&&(d(t,{code:e?a.eq.too_big:a.eq.too_small,minimum:i?n.exactLength.value:void 0,maximum:e?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),r.dirty())}if(null!==n.minLength&&t.data.length<n.minLength.value&&(d(t,{code:a.eq.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),r.dirty()),null!==n.maxLength&&t.data.length>n.maxLength.value&&(d(t,{code:a.eq.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>n.type._parseAsync(new x(t,e,t.path,r)))).then(e=>h.mergeArray(r,e));let i=[...t.data].map((e,r)=>n.type._parseSync(new x(t,e,t.path,r)));return h.mergeArray(r,i)}get element(){return this._def.type}min(e,t){return new es({...this._def,minLength:{value:e,message:i.toString(t)}})}max(e,t){return new es({...this._def,maxLength:{value:e,message:i.toString(t)}})}length(e,t){return new es({...this._def,exactLength:{value:e,message:i.toString(t)}})}nonempty(e){return this.min(1,e)}}function el(e){if(e instanceof ec){let t={};for(let r in e.shape){let n=e.shape[r];t[r]=ek.create(el(n))}return new ec({...e._def,shape:()=>t})}if(e instanceof es)return new es({...e._def,type:el(e.element)});if(e instanceof ek)return ek.create(el(e.unwrap()));if(e instanceof eC)return eC.create(el(e.unwrap()));if(e instanceof em)return em.create(e.items.map(e=>el(e)));else return e}es.create=(e,t)=>new es({type:e,minLength:null,maxLength:null,exactLength:null,typeName:o.ZodArray,...E(t)});class ec extends _{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=s.ZS.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==s.Zp.object){let t=this._getOrReturnCtx(e);return d(t,{code:a.eq.invalid_type,expected:s.Zp.object,received:t.parsedType}),p}let{status:t,ctx:r}=this._processInputParams(e),{shape:n,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof eo&&"strip"===this._def.unknownKeys))for(let e in r.data)i.includes(e)||o.push(e);let l=[];for(let e of i){let t=n[e],i=r.data[e];l.push({key:{status:"valid",value:e},value:t._parse(new x(r,i,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof eo){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of o)l.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)o.length>0&&(d(r,{code:a.eq.unrecognized_keys,keys:o}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of o){let n=r.data[t];l.push({key:{status:"valid",value:t},value:e._parse(new x(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of l){let r=await t.key,n=await t.value;e.push({key:r,value:n,alwaysSet:t.alwaysSet})}return e}).then(e=>h.mergeObjectSync(t,e)):h.mergeObjectSync(t,l)}get shape(){return this._def.shape()}strict(e){return i.errToObj,new ec({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{let n=this._def.errorMap?.(t,r).message??r.defaultError;return"unrecognized_keys"===t.code?{message:i.errToObj(e).message??n}:{message:n}}}:{}})}strip(){return new ec({...this._def,unknownKeys:"strip"})}passthrough(){return new ec({...this._def,unknownKeys:"passthrough"})}extend(e){return new ec({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ec({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:o.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ec({...this._def,catchall:e})}pick(e){let t={};for(let r of s.ZS.objectKeys(e))e[r]&&this.shape[r]&&(t[r]=this.shape[r]);return new ec({...this._def,shape:()=>t})}omit(e){let t={};for(let r of s.ZS.objectKeys(this.shape))e[r]||(t[r]=this.shape[r]);return new ec({...this._def,shape:()=>t})}deepPartial(){return el(this)}partial(e){let t={};for(let r of s.ZS.objectKeys(this.shape)){let n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()}return new ec({...this._def,shape:()=>t})}required(e){let t={};for(let r of s.ZS.objectKeys(this.shape))if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof ek;)e=e._def.innerType;t[r]=e}return new ec({...this._def,shape:()=>t})}keyof(){return eA(s.ZS.objectKeys(this.shape))}}ec.create=(e,t)=>new ec({shape:()=>e,unknownKeys:"strip",catchall:eo.create(),typeName:o.ZodObject,...E(t)}),ec.strictCreate=(e,t)=>new ec({shape:()=>e,unknownKeys:"strict",catchall:eo.create(),typeName:o.ZodObject,...E(t)}),ec.lazycreate=(e,t)=>new ec({shape:e,unknownKeys:"strip",catchall:eo.create(),typeName:o.ZodObject,...E(t)});class eu extends _{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;function n(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new a.G(e.ctx.common.issues));return d(t,{code:a.eq.invalid_union,unionErrors:r}),p}if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(n);{let e,n=[];for(let i of r){let r={...t,common:{...t.common,issues:[]},parent:null},o=i._parseSync({data:t.data,path:t.path,parent:r});if("valid"===o.status)return o;"dirty"!==o.status||e||(e={result:o,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=n.map(e=>new a.G(e));return d(t,{code:a.eq.invalid_union,unionErrors:i}),p}}get options(){return this._def.options}}eu.create=(e,t)=>new eu({options:e,typeName:o.ZodUnion,...E(t)});let ef=e=>{if(e instanceof ew)return ef(e.schema);if(e instanceof e$)return ef(e.innerType());if(e instanceof ex)return[e.value];if(e instanceof eE)return e.options;if(e instanceof e_)return s.ZS.objectValues(e.enum);else if(e instanceof eO)return ef(e._def.innerType);else if(e instanceof et)return[void 0];else if(e instanceof er)return[null];else if(e instanceof ek)return[void 0,...ef(e.unwrap())];else if(e instanceof eC)return[null,...ef(e.unwrap())];else if(e instanceof eR)return ef(e.unwrap());else if(e instanceof eT)return ef(e.unwrap());else if(e instanceof eM)return ef(e._def.innerType);else return[]};class ed extends _{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==s.Zp.object)return d(t,{code:a.eq.invalid_type,expected:s.Zp.object,received:t.parsedType}),p;let r=this.discriminator,n=t.data[r],i=this.optionsMap.get(n);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(d(t,{code:a.eq.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),p)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let n=new Map;for(let r of t){let t=ef(r.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of t){if(n.has(i))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);n.set(i,r)}}return new ed({typeName:o.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...E(r)})}}function eh(e,t){let r=(0,s.CR)(e),n=(0,s.CR)(t);if(e===t)return{valid:!0,data:e};if(r===s.Zp.object&&n===s.Zp.object){let r=s.ZS.objectKeys(t),n=s.ZS.objectKeys(e).filter(e=>-1!==r.indexOf(e)),i={...e,...t};for(let r of n){let n=eh(e[r],t[r]);if(!n.valid)return{valid:!1};i[r]=n.data}return{valid:!0,data:i}}if(r===s.Zp.array&&n===s.Zp.array){if(e.length!==t.length)return{valid:!1};let r=[];for(let n=0;n<e.length;n++){let i=eh(e[n],t[n]);if(!i.valid)return{valid:!1};r.push(i.data)}return{valid:!0,data:r}}if(r===s.Zp.date&&n===s.Zp.date&&+e==+t)return{valid:!0,data:e};return{valid:!1}}class ep extends _{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=(e,n)=>{if(b(e)||b(n))return p;let i=eh(e.value,n.value);return i.valid?((v(e)||v(n))&&t.dirty(),{status:t.value,value:i.data}):(d(r,{code:a.eq.invalid_intersection_types}),p)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([e,t])=>n(e,t)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}ep.create=(e,t,r)=>new ep({left:e,right:t,typeName:o.ZodIntersection,...E(r)});class em extends _{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==s.Zp.array)return d(r,{code:a.eq.invalid_type,expected:s.Zp.array,received:r.parsedType}),p;if(r.data.length<this._def.items.length)return d(r,{code:a.eq.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),p;!this._def.rest&&r.data.length>this._def.items.length&&(d(r,{code:a.eq.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let n=[...r.data].map((e,t)=>{let n=this._def.items[t]||this._def.rest;return n?n._parse(new x(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(n).then(e=>h.mergeArray(t,e)):h.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new em({...this._def,rest:e})}}em.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new em({items:e,typeName:o.ZodTuple,rest:null,...E(t)})};class eg extends _{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==s.Zp.object)return d(r,{code:a.eq.invalid_type,expected:s.Zp.object,received:r.parsedType}),p;let n=[],i=this._def.keyType,o=this._def.valueType;for(let e in r.data)n.push({key:i._parse(new x(r,e,r.path,e)),value:o._parse(new x(r,r.data[e],r.path,e)),alwaysSet:e in r.data});return r.common.async?h.mergeObjectAsync(t,n):h.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,r){return new eg(t instanceof _?{keyType:e,valueType:t,typeName:o.ZodRecord,...E(r)}:{keyType:G.create(),valueType:e,typeName:o.ZodRecord,...E(t)})}}class eb extends _{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==s.Zp.map)return d(r,{code:a.eq.invalid_type,expected:s.Zp.map,received:r.parsedType}),p;let n=this._def.keyType,i=this._def.valueType,o=[...r.data.entries()].map(([e,t],o)=>({key:n._parse(new x(r,e,r.path,[o,"key"])),value:i._parse(new x(r,t,r.path,[o,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of o){let n=await r.key,i=await r.value;if("aborted"===n.status||"aborted"===i.status)return p;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of o){let n=r.key,i=r.value;if("aborted"===n.status||"aborted"===i.status)return p;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}}}}eb.create=(e,t,r)=>new eb({valueType:t,keyType:e,typeName:o.ZodMap,...E(r)});class ev extends _{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==s.Zp.set)return d(r,{code:a.eq.invalid_type,expected:s.Zp.set,received:r.parsedType}),p;let n=this._def;null!==n.minSize&&r.data.size<n.minSize.value&&(d(r,{code:a.eq.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),null!==n.maxSize&&r.data.size>n.maxSize.value&&(d(r,{code:a.eq.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());let i=this._def.valueType;function o(e){let r=new Set;for(let n of e){if("aborted"===n.status)return p;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}let l=[...r.data.values()].map((e,t)=>i._parse(new x(r,e,r.path,t)));return r.common.async?Promise.all(l).then(e=>o(e)):o(l)}min(e,t){return new ev({...this._def,minSize:{value:e,message:i.toString(t)}})}max(e,t){return new ev({...this._def,maxSize:{value:e,message:i.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ev.create=(e,t)=>new ev({valueType:e,minSize:null,maxSize:null,typeName:o.ZodSet,...E(t)});class ey extends _{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==s.Zp.function)return d(t,{code:a.eq.invalid_type,expected:s.Zp.function,received:t.parsedType}),p;function r(e,r){return f({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,u(),l].filter(e=>!!e),issueData:{code:a.eq.invalid_arguments,argumentsError:r}})}function n(e,r){return f({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,u(),l].filter(e=>!!e),issueData:{code:a.eq.invalid_return_type,returnTypeError:r}})}let i={errorMap:t.common.contextualErrorMap},o=t.data;if(this._def.returns instanceof eS){let e=this;return g(async function(...t){let s=new a.G([]),l=await e._def.args.parseAsync(t,i).catch(e=>{throw s.addIssue(r(t,e)),s}),c=await Reflect.apply(o,this,l);return await e._def.returns._def.type.parseAsync(c,i).catch(e=>{throw s.addIssue(n(c,e)),s})})}{let e=this;return g(function(...t){let s=e._def.args.safeParse(t,i);if(!s.success)throw new a.G([r(t,s.error)]);let l=Reflect.apply(o,this,s.data),c=e._def.returns.safeParse(l,i);if(!c.success)throw new a.G([n(l,c.error)]);return c.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new ey({...this._def,args:em.create(e).rest(ei.create())})}returns(e){return new ey({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new ey({args:e||em.create([]).rest(ei.create()),returns:t||ei.create(),typeName:o.ZodFunction,...E(r)})}}class ew extends _{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}ew.create=(e,t)=>new ew({getter:e,typeName:o.ZodLazy,...E(t)});class ex extends _{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return d(t,{received:t.data,code:a.eq.invalid_literal,expected:this._def.value}),p}return{status:"valid",value:e.data}}get value(){return this._def.value}}function eA(e,t){return new eE({values:e,typeName:o.ZodEnum,...E(t)})}ex.create=(e,t)=>new ex({value:e,typeName:o.ZodLiteral,...E(t)});class eE extends _{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return d(t,{expected:s.ZS.joinValues(r),received:t.parsedType,code:a.eq.invalid_type}),p}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return d(t,{received:t.data,code:a.eq.invalid_enum_value,options:r}),p}return g(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return eE.create(e,{...this._def,...t})}exclude(e,t=this._def){return eE.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}eE.create=eA;class e_ extends _{_parse(e){let t=s.ZS.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==s.Zp.string&&r.parsedType!==s.Zp.number){let e=s.ZS.objectValues(t);return d(r,{expected:s.ZS.joinValues(e),received:r.parsedType,code:a.eq.invalid_type}),p}if(this._cache||(this._cache=new Set(s.ZS.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=s.ZS.objectValues(t);return d(r,{received:r.data,code:a.eq.invalid_enum_value,options:e}),p}return g(e.data)}get enum(){return this._def.values}}e_.create=(e,t)=>new e_({values:e,typeName:o.ZodNativeEnum,...E(t)});class eS extends _{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==s.Zp.promise&&!1===t.common.async?(d(t,{code:a.eq.invalid_type,expected:s.Zp.promise,received:t.parsedType}),p):g((t.parsedType===s.Zp.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}eS.create=(e,t)=>new eS({type:e,typeName:o.ZodPromise,...E(t)});class e$ extends _{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===o.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,i={addIssue:e=>{d(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===n.type){let e=n.transform(r.data,i);if(r.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return p;let n=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===n.status?p:"dirty"===n.status||"dirty"===t.value?m(n.value):n});{if("aborted"===t.value)return p;let n=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===n.status?p:"dirty"===n.status||"dirty"===t.value?m(n.value):n}}if("refinement"===n.type){let e=e=>{let t=n.refinement(e,i);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?p:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let n=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===n.status?p:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}}if("transform"===n.type)if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>y(e)?Promise.resolve(n.transform(e.value,i)).then(e=>({status:t.value,value:e})):p);else{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!y(e))return p;let o=n.transform(e.value,i);if(o instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:o}}s.ZS.assertNever(n)}}e$.create=(e,t,r)=>new e$({schema:e,typeName:o.ZodEffects,effect:t,...E(r)}),e$.createWithPreprocess=(e,t,r)=>new e$({schema:t,effect:{type:"preprocess",transform:e},typeName:o.ZodEffects,...E(r)});class ek extends _{_parse(e){return this._getType(e)===s.Zp.undefined?g(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ek.create=(e,t)=>new ek({innerType:e,typeName:o.ZodOptional,...E(t)});class eC extends _{_parse(e){return this._getType(e)===s.Zp.null?g(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eC.create=(e,t)=>new eC({innerType:e,typeName:o.ZodNullable,...E(t)});class eO extends _{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===s.Zp.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}eO.create=(e,t)=>new eO({innerType:e,typeName:o.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...E(t)});class eM extends _{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return w(n)?n.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new a.G(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new a.G(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}eM.create=(e,t)=>new eM({innerType:e,typeName:o.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...E(t)});class eI extends _{_parse(e){if(this._getType(e)!==s.Zp.nan){let t=this._getOrReturnCtx(e);return d(t,{code:a.eq.invalid_type,expected:s.Zp.nan,received:t.parsedType}),p}return{status:"valid",value:e.data}}}eI.create=e=>new eI({typeName:o.ZodNaN,...E(e)}),Symbol("zod_brand");class eR extends _{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class ej extends _{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?p:"dirty"===e.status?(t.dirty(),m(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{let e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?p:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new ej({in:e,out:t,typeName:o.ZodPipeline})}}class eT extends _{_parse(e){let t=this._def.innerType._parse(e),r=e=>(y(e)&&(e.value=Object.freeze(e.value)),e);return w(t)?t.then(e=>r(e)):r(t)}unwrap(){return this._def.innerType}}eT.create=(e,t)=>new eT({innerType:e,typeName:o.ZodReadonly,...E(t)}),ec.lazycreate,function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(o||(o={}));let eN=G.create,eP=Z.create;eI.create,Y.create;let eB=J.create;Q.create,ee.create,et.create,er.create,en.create,ei.create,eo.create,ea.create;let ez=es.create,eL=ec.create;ec.strictCreate;let eD=eu.create,eF=ed.create;ep.create,em.create;let eH=eg.create;eb.create,ev.create,ey.create,ew.create;let eU=ex.create,eq=eE.create;e_.create,eS.create,e$.create,ek.create,eC.create,e$.createWithPreprocess,ej.create},64564(e,t,r){"use strict";function n(e,t,r){function n(r,n){var i;for(let o in Object.defineProperty(r,"_zod",{value:r._zod??{},enumerable:!1}),(i=r._zod).traits??(i.traits=new Set),r._zod.traits.add(e),t(r,n),a.prototype)o in r||Object.defineProperty(r,o,{value:a.prototype[o].bind(r)});r._zod.constr=a,r._zod.def=n}let i=r?.Parent??Object;class o extends i{}function a(e){var t;let i=r?.Parent?new o:this;for(let r of(n(i,e),(t=i._zod).deferred??(t.deferred=[]),i._zod.deferred))r();return i}return Object.defineProperty(o,"name",{value:e}),Object.defineProperty(a,"init",{value:n}),Object.defineProperty(a,Symbol.hasInstance,{value:t=>!!r?.Parent&&t instanceof r.Parent||t?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}r.d(t,{EB:()=>rJ,k5:()=>nM,L5:()=>nm,g1:()=>nC,zM:()=>nh,ai:()=>nc,re:()=>nA,Ik:()=>nx,YO:()=>ny,Yj:()=>rY,bv:()=>nw,eu:()=>nR,KC:()=>n_}),Object.freeze({status:"aborted"}),Symbol("zod_brand");class i extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}let o={};function a(e){return e&&Object.assign(o,e),o}let s=/^[cC][^\s-]{8,}$/,l=/^[0-9a-z]+$/,c=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,u=/^[0-9a-vA-V]{20}$/,f=/^[A-Za-z0-9]{27}$/,d=/^[a-zA-Z0-9_-]{21}$/,h=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,p=/^([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})$/,m=e=>e?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)$/,g=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,b="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function v(){return RegExp(b,"u")}let y=/^(?:(?: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])$/,w=/^(([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})$/,x=/^((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])$/,A=/^(([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])$/,E=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,_=/^[A-Za-z0-9_-]*$/,S=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,$=/^\+(?:[0-9]){6,14}[0-9]$/,k="(?:(?:\\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])))",C=RegExp(`^${k}$`);function O(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function M(e){return RegExp(`^${O(e)}$`)}function I(e){let t=O({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-]\\d{2}:\\d{2})");let n=`${t}(?:${r.join("|")})`;return RegExp(`^${k}T(?:${n})$`)}let R=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return RegExp(`^${t}$`)},j=/^\d+$/,T=/^-?\d+(?:\.\d+)?/i,N=/true|false/i,P=/^[^A-Z]*$/,B=/^[^a-z]*$/;function z(e){let t=Object.values(e).filter(e=>"number"==typeof e);return Object.entries(e).filter(([e,r])=>-1===t.indexOf(+e)).map(([e,t])=>t)}function L(e,t){return"bigint"==typeof t?t.toString():t}function D(e){let t=!1;return{get value(){if(!t){let t=e();return Object.defineProperty(this,"value",{value:t}),t}throw Error("cached value already set")}}}function F(e){return null==e}function H(e){let t=+!!e.startsWith("^"),r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function U(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n;return Number.parseInt(e.toFixed(i).replace(".",""))%Number.parseInt(t.toFixed(i).replace(".",""))/10**i}function q(e,t,r){let n=!1;Object.defineProperty(e,t,{get(){if(!n){let n=r();return e[t]=n,n}throw Error("cached value already set")},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function W(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function V(e){return JSON.stringify(e)}let K=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function G(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}let X=D(()=>{if("u">typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return Function(""),!0}catch(e){return!1}});function Z(e){if(!1===G(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!1!==G(r)&&!1!==Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")}let Y=new Set(["string","number","symbol"]);function J(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Q(e,t,r){let n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}function ee(e){let t=e;if(!t)return{};if("string"==typeof t)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return(delete t.message,"string"==typeof t.error)?{...t,error:()=>t.error}:t}function et(e){return Object.keys(e).filter(t=>"optional"===e[t]._zod.optin&&"optional"===e[t]._zod.optout)}let er={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-0x80000000,0x7fffffff],uint32:[0,0xffffffff],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function en(e,t){let r={},n=e._zod.def;for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&(r[e]=n.shape[e])}return Q(e,{...e._zod.def,shape:r,checks:[]})}function ei(e,t){let r={...e._zod.def.shape},n=e._zod.def;for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return Q(e,{...e._zod.def,shape:r,checks:[]})}function eo(e,t){if(!Z(t))throw Error("Invalid input to extend: expected a plain object");let r={...e._zod.def,get shape(){let r={...e._zod.def.shape,...t};return W(this,"shape",r),r},checks:[]};return Q(e,r)}function ea(e,t){return Q(e,{...e._zod.def,get shape(){let r={...e._zod.def.shape,...t._zod.def.shape};return W(this,"shape",r),r},catchall:t._zod.def.catchall,checks:[]})}function es(e,t,r){let n=t._zod.def.shape,i={...n};if(r)for(let t in r){if(!(t in n))throw Error(`Unrecognized key: "${t}"`);r[t]&&(i[t]=e?new e({type:"optional",innerType:n[t]}):n[t])}else for(let t in n)i[t]=e?new e({type:"optional",innerType:n[t]}):n[t];return Q(t,{...t._zod.def,shape:i,checks:[]})}function el(e,t,r){let n=t._zod.def.shape,i={...n};if(r)for(let t in r){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);r[t]&&(i[t]=new e({type:"nonoptional",innerType:n[t]}))}else for(let t in n)i[t]=new e({type:"nonoptional",innerType:n[t]});return Q(t,{...t._zod.def,shape:i,checks:[]})}function ec(e,t=0){for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function eu(e,t){return t.map(t=>{var r;return(r=t).path??(r.path=[]),t.path.unshift(e),t})}function ef(e){return"string"==typeof e?e:e?.message}function ed(e,t,r){let n={...e,path:e.path??[]};return e.message||(n.message=ef(e.inst?._zod.def?.error?.(e))??ef(t?.error?.(e))??ef(r.customError?.(e))??ef(r.localeError?.(e))??"Invalid input"),delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}function eh(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function ep(...e){let[t,r,n]=e;return"string"==typeof t?{message:t,code:"custom",input:r,inst:n}:{...t}}let em=n("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),eg={number:"number",bigint:"bigint",object:"date"},eb=n("$ZodCheckLessThan",(e,t)=>{em.init(e,t);let r=eg[typeof t.value];e._zod.onattach.push(e=>{let r=e._zod.bag,n=(t.inclusive?r.maximum:r.exclusiveMaximum)??1/0;t.value<n&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value<=t.value:n.value<t.value)||n.issues.push({origin:r,code:"too_big",maximum:t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ev=n("$ZodCheckGreaterThan",(e,t)=>{em.init(e,t);let r=eg[typeof t.value];e._zod.onattach.push(e=>{let r=e._zod.bag,n=(t.inclusive?r.minimum:r.exclusiveMinimum)??-1/0;t.value>n&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:r,code:"too_small",minimum:t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ey=n("$ZodCheckMultipleOf",(e,t)=>{em.init(e,t),e._zod.onattach.push(e=>{var r;(r=e._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof r.value?r.value%t.value===BigInt(0):0===U(r.value,t.value))||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),ew=n("$ZodCheckNumberFormat",(e,t)=>{em.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),n=r?"int":"number",[i,o]=er[t.format];e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,n.minimum=i,n.maximum=o,r&&(n.pattern=j)}),e._zod.check=a=>{let s=a.value;if(r){if(!Number.isInteger(s))return void a.issues.push({expected:n,format:t.format,code:"invalid_type",input:s,inst:e});if(!Number.isSafeInteger(s))return void(s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!t.abort}))}s<i&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>o&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:o,inst:e})}}),ex=n("$ZodCheckMaxLength",(e,t)=>{var r;em.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!F(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag.maximum??1/0;t.maximum<r&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{let n=r.value;if(n.length<=t.maximum)return;let i=eh(n);r.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),eA=n("$ZodCheckMinLength",(e,t)=>{var r;em.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!F(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag.minimum??-1/0;t.minimum>r&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{let n=r.value;if(n.length>=t.minimum)return;let i=eh(n);r.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),eE=n("$ZodCheckLengthEquals",(e,t)=>{var r;em.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!F(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=r=>{let n=r.value,i=n.length;if(i===t.length)return;let o=eh(n),a=i>t.length;r.issues.push({origin:o,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),e_=n("$ZodCheckStringFormat",(e,t)=>{var r,n;em.init(e,t),e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,t.pattern&&(r.patterns??(r.patterns=new Set),r.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=r=>{t.pattern.lastIndex=0,t.pattern.test(r.value)||r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),eS=n("$ZodCheckRegex",(e,t)=>{e_.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,t.pattern.test(r.value)||r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),e$=n("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=P),e_.init(e,t)}),ek=n("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=B),e_.init(e,t)}),eC=n("$ZodCheckIncludes",(e,t)=>{em.init(e,t);let r=J(t.includes),n=new RegExp("number"==typeof t.position?`^.{${t.position}}${r}`:r);t.pattern=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),eO=n("$ZodCheckStartsWith",(e,t)=>{em.init(e,t);let r=RegExp(`^${J(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),eM=n("$ZodCheckEndsWith",(e,t)=>{em.init(e,t);let r=RegExp(`.*${J(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),eI=n("$ZodCheckOverwrite",(e,t)=>{em.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});class eR{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let t=e.split("\n").filter(e=>e),r=Math.min(...t.map(e=>e.length-e.trimStart().length));for(let e of t.map(e=>e.slice(r)).map(e=>" ".repeat(2*this.indent)+e))this.content.push(e)}compile(){return Function(...this?.args,[...(this?.content??[""]).map(e=>` ${e}`)].join("\n"))}}let ej=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),Object.defineProperty(e,"message",{get:()=>JSON.stringify(t,L,2),enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},eT=n("$ZodError",ej),eN=n("$ZodError",ej,{Parent:Error});function eP(e,t=e=>e.message){let r={},n=[];for(let i of e.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(t(i))):n.push(t(i));return{formErrors:n,fieldErrors:r}}function eB(e,t){let r=t||function(e){return e.message},n={_errors:[]},i=e=>{for(let t of e.issues)if("invalid_union"===t.code&&t.errors.length)t.errors.map(e=>i({issues:e}));else if("invalid_key"===t.code)i({issues:t.issues});else if("invalid_element"===t.code)i({issues:t.issues});else if(0===t.path.length)n._errors.push(r(t));else{let e=n,i=0;for(;i<t.path.length;){let n=t.path[i];i===t.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(r(t))):e[n]=e[n]||{_errors:[]},e=e[n],i++}}};return i(e),n}let ez=e=>(t,r,n,o)=>{let s=n?Object.assign(n,{async:!1}):{async:!1},l=t._zod.run({value:r,issues:[]},s);if(l instanceof Promise)throw new i;if(l.issues.length){let t=new(o?.Err??e)(l.issues.map(e=>ed(e,s,a())));throw K(t,o?.callee),t}return l.value},eL=e=>async(t,r,n,i)=>{let o=n?Object.assign(n,{async:!0}):{async:!0},s=t._zod.run({value:r,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){let t=new(i?.Err??e)(s.issues.map(e=>ed(e,o,a())));throw K(t,i?.callee),t}return s.value},eD=e=>(t,r,n)=>{let o=n?{...n,async:!1}:{async:!1},s=t._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new i;return s.issues.length?{success:!1,error:new(e??eT)(s.issues.map(e=>ed(e,o,a())))}:{success:!0,data:s.value}},eF=eD(eN),eH=e=>async(t,r,n)=>{let i=n?Object.assign(n,{async:!0}):{async:!0},o=t._zod.run({value:r,issues:[]},i);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(e=>ed(e,i,a())))}:{success:!0,data:o.value}},eU=eH(eN),eq={major:4,minor:0,patch:0},eW=n("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=eq;let n=[...e._zod.def.checks??[]];for(let t of(e._zod.traits.has("$ZodCheck")&&n.unshift(e),n))for(let r of t._zod.onattach)r(e);if(0===n.length)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,r)=>{let n,o=ec(e);for(let a of t){if(a._zod.def.when){if(!a._zod.def.when(e))continue}else if(o)continue;let t=e.issues.length,s=a._zod.check(e);if(s instanceof Promise&&r?.async===!1)throw new i;if(n||s instanceof Promise)n=(n??Promise.resolve()).then(async()=>{await s,e.issues.length!==t&&(o||(o=ec(e,t)))});else{if(e.issues.length===t)continue;o||(o=ec(e,t))}}return n?n.then(()=>e):e};e._zod.run=(r,o)=>{let a=e._zod.parse(r,o);if(a instanceof Promise){if(!1===o.async)throw new i;return a.then(e=>t(e,n,o))}return t(a,n,o)}}e["~standard"]={validate:t=>{try{let r=eF(e,t);return r.success?{value:r.data}:{issues:r.error?.issues}}catch(r){return eU(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:"zod",version:1}}),eV=n("$ZodString",(e,t)=>{eW.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??R(e._zod.bag),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=String(r.value)}catch(e){}return"string"==typeof r.value||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),eK=n("$ZodStringFormat",(e,t)=>{e_.init(e,t),eV.init(e,t)}),eG=n("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=p),eK.init(e,t)}),eX=n("$ZodUUID",(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===e)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=m(e))}else t.pattern??(t.pattern=m());eK.init(e,t)}),eZ=n("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=g),eK.init(e,t)}),eY=n("$ZodURL",(e,t)=>{eK.init(e,t),e._zod.check=r=>{try{let n=r.value,i=new URL(n),o=i.href;t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:S.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),!n.endsWith("/")&&o.endsWith("/")?r.value=o.slice(0,-1):r.value=o;return}catch(n){r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),eJ=n("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=v()),eK.init(e,t)}),eQ=n("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=d),eK.init(e,t)}),e0=n("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=s),eK.init(e,t)}),e1=n("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=l),eK.init(e,t)}),e2=n("$ZodULID",(e,t)=>{t.pattern??(t.pattern=c),eK.init(e,t)}),e6=n("$ZodXID",(e,t)=>{t.pattern??(t.pattern=u),eK.init(e,t)}),e3=n("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=f),eK.init(e,t)}),e5=n("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=I(t)),eK.init(e,t)}),e4=n("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=C),eK.init(e,t)}),e8=n("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=M(t)),eK.init(e,t)}),e9=n("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=h),eK.init(e,t)}),e7=n("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=y),eK.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.format="ipv4"})}),te=n("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=w),eK.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.format="ipv6"}),e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),tt=n("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=x),eK.init(e,t)}),tr=n("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=A),eK.init(e,t),e._zod.check=r=>{let[n,i]=r.value.split("/");try{if(!i)throw Error();let e=Number(i);if(`${e}`!==i||e<0||e>128)throw Error();new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function tn(e){if(""===e)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}let ti=n("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=E),eK.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.contentEncoding="base64"}),e._zod.check=r=>{tn(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function to(e){if(!_.test(e))return!1;let t=e.replace(/[-_]/g,e=>"-"===e?"+":"/");return tn(t.padEnd(4*Math.ceil(t.length/4),"="))}let ta=n("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=_),eK.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.contentEncoding="base64url"}),e._zod.check=r=>{to(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),ts=n("$ZodE164",(e,t)=>{t.pattern??(t.pattern=$),eK.init(e,t)});function tl(e,t=null){try{let r=e.split(".");if(3!==r.length)return!1;let[n]=r;if(!n)return!1;let i=JSON.parse(atob(n));if("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))return!1;return!0}catch{return!1}}let tc=n("$ZodJWT",(e,t)=>{eK.init(e,t),e._zod.check=r=>{tl(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),tu=n("$ZodNumber",(e,t)=>{eW.init(e,t),e._zod.pattern=e._zod.bag.pattern??T,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=Number(r.value)}catch(e){}let i=r.value;if("number"==typeof i&&!Number.isNaN(i)&&Number.isFinite(i))return r;let o="number"==typeof i?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...o?{received:o}:{}}),r}}),tf=n("$ZodNumber",(e,t)=>{ew.init(e,t),tu.init(e,t)}),td=n("$ZodBoolean",(e,t)=>{eW.init(e,t),e._zod.pattern=N,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=!!r.value}catch(e){}let i=r.value;return"boolean"==typeof i||r.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),r}}),th=n("$ZodUnknown",(e,t)=>{eW.init(e,t),e._zod.parse=e=>e}),tp=n("$ZodNever",(e,t)=>{eW.init(e,t),e._zod.parse=(t,r)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)});function tm(e,t,r){e.issues.length&&t.issues.push(...eu(r,e.issues)),t.value[r]=e.value}let tg=n("$ZodArray",(e,t)=>{eW.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!Array.isArray(i))return r.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),r;r.value=Array(i.length);let o=[];for(let e=0;e<i.length;e++){let a=i[e],s=t.element._zod.run({value:a,issues:[]},n);s instanceof Promise?o.push(s.then(t=>tm(t,r,e))):tm(s,r,e)}return o.length?Promise.all(o).then(()=>r):r}});function tb(e,t,r){e.issues.length&&t.issues.push(...eu(r,e.issues)),t.value[r]=e.value}function tv(e,t,r,n){e.issues.length?void 0===n[r]?r in n?t.value[r]=void 0:t.value[r]=e.value:t.issues.push(...eu(r,e.issues)):void 0===e.value?r in n&&(t.value[r]=void 0):t.value[r]=e.value}let ty=n("$ZodObject",(e,t)=>{let r,n;eW.init(e,t);let i=D(()=>{let e=Object.keys(t.shape);for(let r of e)if(!(t.shape[r]instanceof eW))throw Error(`Invalid element at key "${r}": expected a Zod schema`);let r=et(t.shape);return{shape:t.shape,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(r)}});q(e._zod,"propValues",()=>{let e=t.shape,r={};for(let t in e){let n=e[t]._zod;if(n.values)for(let e of(r[t]??(r[t]=new Set),n.values))r[t].add(e)}return r});let a=e=>{let t=new eR(["shape","payload","ctx"]),r=i.value,n=e=>{let t=V(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write("const input = payload.value;");let o=Object.create(null),a=0;for(let e of r.keys)o[e]=`key_${a++}`;for(let e of(t.write("const newResult = {}"),r.keys))if(r.optionalKeys.has(e)){let r=o[e];t.write(`const ${r} = ${n(e)};`);let i=V(e);t.write(`
291
291
  if (${r}.issues.length) {
292
292
  if (input[${i}] === undefined) {
293
293
  if (${i} in input) {
@@ -311,4 +311,4 @@ ${tB(e)}`);return{...s,id:a,type:o,function:{...u,name:c,arguments:l}}})}}:{...o
311
311
  ...iss,
312
312
  path: iss.path ? [${V(e)}, ...iss.path] : [${V(e)}]
313
313
  })));`),t.write(`newResult[${V(e)}] = ${r}.value`)}t.write("payload.value = newResult;"),t.write("return payload;");let s=t.compile();return(t,r)=>s(e,t,r)},s=G,l=!o.jitless,c=X,u=l&&c.value,f=t.catchall;e._zod.parse=(o,c)=>{n??(n=i.value);let d=o.value;if(!s(d))return o.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),o;let h=[];if(l&&u&&c?.async===!1&&!0!==c.jitless)r||(r=a(t.shape)),o=r(o,c);else{o.value={};let e=n.shape;for(let t of n.keys){let r=e[t],n=r._zod.run({value:d[t],issues:[]},c),i="optional"===r._zod.optin&&"optional"===r._zod.optout;n instanceof Promise?h.push(n.then(e=>i?tv(e,o,t,d):tb(e,o,t))):i?tv(n,o,t,d):tb(n,o,t)}}if(!f)return h.length?Promise.all(h).then(()=>o):o;let p=[],m=n.keySet,g=f._zod,b=g.def.type;for(let e of Object.keys(d)){if(m.has(e))continue;if("never"===b){p.push(e);continue}let t=g.run({value:d[e],issues:[]},c);t instanceof Promise?h.push(t.then(t=>tb(t,o,e))):tb(t,o,e)}return(p.length&&o.issues.push({code:"unrecognized_keys",keys:p,input:d,inst:e}),h.length)?Promise.all(h).then(()=>o):o}});function tw(e,t,r,n){for(let r of e)if(0===r.issues.length)return t.value=r.value,t;return t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(e=>e.issues.map(e=>ed(e,n,a())))}),t}let tx=n("$ZodUnion",(e,t)=>{eW.init(e,t),q(e._zod,"optin",()=>t.options.some(e=>"optional"===e._zod.optin)?"optional":void 0),q(e._zod,"optout",()=>t.options.some(e=>"optional"===e._zod.optout)?"optional":void 0),q(e._zod,"values",()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),q(e._zod,"pattern",()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>H(e.source)).join("|")})$`)}}),e._zod.parse=(r,n)=>{let i=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},n);if(t instanceof Promise)o.push(t),i=!0;else{if(0===t.issues.length)return t;o.push(t)}}return i?Promise.all(o).then(t=>tw(t,r,e,n)):tw(o,r,e,n)}}),tA=n("$ZodIntersection",(e,t)=>{eW.init(e,t),e._zod.parse=(e,r)=>{let n=e.value,i=t.left._zod.run({value:n,issues:[]},r),o=t.right._zod.run({value:n,issues:[]},r);return i instanceof Promise||o instanceof Promise?Promise.all([i,o]).then(([t,r])=>t_(e,t,r)):t_(e,i,o)}});function tE(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Z(e)&&Z(t)){let r=Object.keys(t),n=Object.keys(e).filter(e=>-1!==r.indexOf(e)),i={...e,...t};for(let r of n){let n=tE(e[r],t[r]);if(!n.valid)return{valid:!1,mergeErrorPath:[r,...n.mergeErrorPath]};i[r]=n.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let n=0;n<e.length;n++){let i=tE(e[n],t[n]);if(!i.valid)return{valid:!1,mergeErrorPath:[n,...i.mergeErrorPath]};r.push(i.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function t_(e,t,r){if(t.issues.length&&e.issues.push(...t.issues),r.issues.length&&e.issues.push(...r.issues),ec(e))return e;let n=tE(t.value,r.value);if(!n.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);return e.value=n.data,e}let tS=n("$ZodRecord",(e,t)=>{eW.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!Z(i))return r.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),r;let o=[];if(t.keyType._zod.values){let a,s=t.keyType._zod.values;for(let e of(r.value={},s))if("string"==typeof e||"number"==typeof e||"symbol"==typeof e){let a=t.valueType._zod.run({value:i[e],issues:[]},n);a instanceof Promise?o.push(a.then(t=>{t.issues.length&&r.issues.push(...eu(e,t.issues)),r.value[e]=t.value})):(a.issues.length&&r.issues.push(...eu(e,a.issues)),r.value[e]=a.value)}for(let e in i)s.has(e)||(a=a??[]).push(e);a&&a.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:a})}else for(let s of(r.value={},Reflect.ownKeys(i))){if("__proto__"===s)continue;let l=t.keyType._zod.run({value:s,issues:[]},n);if(l instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(l.issues.length){r.issues.push({origin:"record",code:"invalid_key",issues:l.issues.map(e=>ed(e,n,a())),input:s,path:[s],inst:e}),r.value[l.value]=l.value;continue}let c=t.valueType._zod.run({value:i[s],issues:[]},n);c instanceof Promise?o.push(c.then(e=>{e.issues.length&&r.issues.push(...eu(s,e.issues)),r.value[l.value]=e.value})):(c.issues.length&&r.issues.push(...eu(s,c.issues)),r.value[l.value]=c.value)}return o.length?Promise.all(o).then(()=>r):r}}),t$=n("$ZodEnum",(e,t)=>{eW.init(e,t);let r=z(t.entries);e._zod.values=new Set(r),e._zod.pattern=RegExp(`^(${r.filter(e=>Y.has(typeof e)).map(e=>"string"==typeof e?J(e):e.toString()).join("|")})$`),e._zod.parse=(t,n)=>{let i=t.value;return e._zod.values.has(i)||t.issues.push({code:"invalid_value",values:r,input:i,inst:e}),t}}),tk=n("$ZodLiteral",(e,t)=>{eW.init(e,t),e._zod.values=new Set(t.values),e._zod.pattern=RegExp(`^(${t.values.map(e=>"string"==typeof e?J(e):e?e.toString():String(e)).join("|")})$`),e._zod.parse=(r,n)=>{let i=r.value;return e._zod.values.has(i)||r.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),r}}),tC=n("$ZodTransform",(e,t)=>{eW.init(e,t),e._zod.parse=(e,r)=>{let n=t.transform(e.value,e);if(r.async)return(n instanceof Promise?n:Promise.resolve(n)).then(t=>(e.value=t,e));if(n instanceof Promise)throw new i;return e.value=n,e}}),tO=n("$ZodOptional",(e,t)=>{eW.init(e,t),e._zod.optin="optional",e._zod.optout="optional",q(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),q(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${H(e.source)})?$`):void 0}),e._zod.parse=(e,r)=>"optional"===t.innerType._zod.optin?t.innerType._zod.run(e,r):void 0===e.value?e:t.innerType._zod.run(e,r)}),tM=n("$ZodNullable",(e,t)=>{eW.init(e,t),q(e._zod,"optin",()=>t.innerType._zod.optin),q(e._zod,"optout",()=>t.innerType._zod.optout),q(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${H(e.source)}|null)$`):void 0}),q(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,r)=>null===e.value?e:t.innerType._zod.run(e,r)}),tI=n("$ZodDefault",(e,t)=>{eW.init(e,t),e._zod.optin="optional",q(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>{if(void 0===e.value)return e.value=t.defaultValue,e;let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(e=>tR(e,t)):tR(n,t)}});function tR(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}let tj=n("$ZodPrefault",(e,t)=>{eW.init(e,t),e._zod.optin="optional",q(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>(void 0===e.value&&(e.value=t.defaultValue),t.innerType._zod.run(e,r))}),tT=n("$ZodNonOptional",(e,t)=>{eW.init(e,t),q(e._zod,"values",()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>void 0!==e)):void 0}),e._zod.parse=(r,n)=>{let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(t=>tN(t,e)):tN(i,e)}});function tN(e,t){return e.issues.length||void 0!==e.value||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}let tP=n("$ZodCatch",(e,t)=>{eW.init(e,t),e._zod.optin="optional",q(e._zod,"optout",()=>t.innerType._zod.optout),q(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>{let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(n=>(e.value=n.value,n.issues.length&&(e.value=t.catchValue({...e,error:{issues:n.issues.map(e=>ed(e,r,a()))},input:e.value}),e.issues=[]),e)):(e.value=n.value,n.issues.length&&(e.value=t.catchValue({...e,error:{issues:n.issues.map(e=>ed(e,r,a()))},input:e.value}),e.issues=[]),e)}}),tB=n("$ZodPipe",(e,t)=>{eW.init(e,t),q(e._zod,"values",()=>t.in._zod.values),q(e._zod,"optin",()=>t.in._zod.optin),q(e._zod,"optout",()=>t.out._zod.optout),e._zod.parse=(e,r)=>{let n=t.in._zod.run(e,r);return n instanceof Promise?n.then(e=>tz(e,t,r)):tz(n,t,r)}});function tz(e,t,r){return ec(e)?e:t.out._zod.run({value:e.value,issues:e.issues},r)}let tL=n("$ZodReadonly",(e,t)=>{eW.init(e,t),q(e._zod,"propValues",()=>t.innerType._zod.propValues),q(e._zod,"values",()=>t.innerType._zod.values),q(e._zod,"optin",()=>t.innerType._zod.optin),q(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(e,r)=>{let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(tD):tD(n)}});function tD(e){return e.value=Object.freeze(e.value),e}let tF=n("$ZodCustom",(e,t)=>{em.init(e,t),eW.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=r=>{let n=r.value,i=t.fn(n);if(i instanceof Promise)return i.then(t=>tH(t,r,n,e));tH(i,r,n,e)}});function tH(e,t,r,n){if(!e){let e={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(e.params=n._zod.def.params),t.issues.push(ep(e))}}Symbol("ZodOutput"),Symbol("ZodInput");class tU{constructor(){this._map=new Map,this._idmap=new Map}add(e,...t){let r=t[0];if(this._map.set(e,r),r&&"object"==typeof r&&"id"in r){if(this._idmap.has(r.id))throw Error(`ID ${r.id} already exists in the registry`);this._idmap.set(r.id,e)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&"object"==typeof t&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let r={...this.get(t)??{}};return delete r.id,{...r,...this._map.get(e)}}return this._map.get(e)}has(e){return this._map.has(e)}}let tq=function(){return new tU}();function tW(e,t){return new e({type:"string",...ee(t)})}function tV(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...ee(t)})}function tK(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...ee(t)})}function tG(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...ee(t)})}function tX(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...ee(t)})}function tZ(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...ee(t)})}function tY(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...ee(t)})}function tJ(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...ee(t)})}function tQ(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...ee(t)})}function t0(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...ee(t)})}function t1(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...ee(t)})}function t2(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...ee(t)})}function t6(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...ee(t)})}function t3(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...ee(t)})}function t5(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...ee(t)})}function t4(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...ee(t)})}function t8(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...ee(t)})}function t9(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...ee(t)})}function t7(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...ee(t)})}function re(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...ee(t)})}function rt(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...ee(t)})}function rr(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...ee(t)})}function rn(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...ee(t)})}function ri(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...ee(t)})}function ro(e,t){return new e({type:"string",format:"date",check:"string_format",...ee(t)})}function ra(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...ee(t)})}function rs(e,t){return new e({type:"string",format:"duration",check:"string_format",...ee(t)})}function rl(e,t){return new e({type:"number",checks:[],...ee(t)})}function rc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...ee(t)})}function ru(e,t){return new e({type:"boolean",...ee(t)})}function rf(e){return new e({type:"unknown"})}function rd(e,t){return new e({type:"never",...ee(t)})}function rh(e,t){return new eb({check:"less_than",...ee(t),value:e,inclusive:!1})}function rp(e,t){return new eb({check:"less_than",...ee(t),value:e,inclusive:!0})}function rm(e,t){return new ev({check:"greater_than",...ee(t),value:e,inclusive:!1})}function rg(e,t){return new ev({check:"greater_than",...ee(t),value:e,inclusive:!0})}function rb(e,t){return new ey({check:"multiple_of",...ee(t),value:e})}function rv(e,t){return new ex({check:"max_length",...ee(t),maximum:e})}function ry(e,t){return new eA({check:"min_length",...ee(t),minimum:e})}function rw(e,t){return new eE({check:"length_equals",...ee(t),length:e})}function rx(e,t){return new eS({check:"string_format",format:"regex",...ee(t),pattern:e})}function rA(e){return new e$({check:"string_format",format:"lowercase",...ee(e)})}function rE(e){return new ek({check:"string_format",format:"uppercase",...ee(e)})}function r_(e,t){return new eC({check:"string_format",format:"includes",...ee(t),includes:e})}function rS(e,t){return new eO({check:"string_format",format:"starts_with",...ee(t),prefix:e})}function r$(e,t){return new eM({check:"string_format",format:"ends_with",...ee(t),suffix:e})}function rk(e){return new eI({check:"overwrite",tx:e})}function rC(e){return rk(t=>t.normalize(e))}function rO(){return rk(e=>e.trim())}function rM(){return rk(e=>e.toLowerCase())}function rI(){return rk(e=>e.toUpperCase())}function rR(e,t,r){return new e({type:"array",element:t,...ee(r)})}function rj(e,t,r){return new e({type:"custom",check:"custom",fn:t,...ee(r)})}let rT=n("ZodISODateTime",(e,t)=>{e5.init(e,t),rJ.init(e,t)});function rN(e){return ri(rT,e)}let rP=n("ZodISODate",(e,t)=>{e4.init(e,t),rJ.init(e,t)});function rB(e){return ro(rP,e)}let rz=n("ZodISOTime",(e,t)=>{e8.init(e,t),rJ.init(e,t)});function rL(e){return ra(rz,e)}let rD=n("ZodISODuration",(e,t)=>{e9.init(e,t),rJ.init(e,t)});function rF(e){return rs(rD,e)}let rH=(e,t)=>{eT.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>eB(e,t)},flatten:{value:t=>eP(e,t)},addIssue:{value:t=>e.issues.push(t)},addIssues:{value:t=>e.issues.push(...t)},isEmpty:{get:()=>0===e.issues.length}})};n("ZodError",rH);let rU=n("ZodError",rH,{Parent:Error}),rq=ez(rU),rW=eL(rU),rV=eD(rU),rK=eH(rU),rG=n("ZodType",(e,t)=>(eW.init(e,t),e.def=t,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone({...t,checks:[...t.checks??[],...r.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),e.clone=(t,r)=>Q(e,t,r),e.brand=()=>e,e.register=(t,r)=>(t.add(e,r),e),e.parse=(t,r)=>rq(e,t,r,{callee:e.parse}),e.safeParse=(t,r)=>rV(e,t,r),e.parseAsync=async(t,r)=>rW(e,t,r,{callee:e.parseAsync}),e.safeParseAsync=async(t,r)=>rK(e,t,r),e.spa=e.safeParseAsync,e.refine=(t,r)=>e.check(nQ(t,r)),e.superRefine=t=>e.check(n0(t)),e.overwrite=t=>e.check(rk(t)),e.optional=()=>nP(e),e.nullable=()=>nz(e),e.nullish=()=>nP(nz(e)),e.nonoptional=t=>nq(e,t),e.array=()=>ny(e),e.or=t=>n_([e,t]),e.and=t=>n$(e,t),e.transform=t=>nG(e,nT(t)),e.default=t=>nD(e,t),e.prefault=t=>nH(e,t),e.catch=t=>nV(e,t),e.pipe=t=>nG(e,t),e.readonly=()=>nZ(e),e.describe=t=>{let r=e.clone();return tq.add(r,{description:t}),r},Object.defineProperty(e,"description",{get:()=>tq.get(e)?.description,configurable:!0}),e.meta=(...t)=>{if(0===t.length)return tq.get(e);let r=e.clone();return tq.add(r,t[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),rX=n("_ZodString",(e,t)=>{eV.init(e,t),rG.init(e,t);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...t)=>e.check(rx(...t)),e.includes=(...t)=>e.check(r_(...t)),e.startsWith=(...t)=>e.check(rS(...t)),e.endsWith=(...t)=>e.check(r$(...t)),e.min=(...t)=>e.check(ry(...t)),e.max=(...t)=>e.check(rv(...t)),e.length=(...t)=>e.check(rw(...t)),e.nonempty=(...t)=>e.check(ry(1,...t)),e.lowercase=t=>e.check(rA(t)),e.uppercase=t=>e.check(rE(t)),e.trim=()=>e.check(rO()),e.normalize=(...t)=>e.check(rC(...t)),e.toLowerCase=()=>e.check(rM()),e.toUpperCase=()=>e.check(rI())}),rZ=n("ZodString",(e,t)=>{eV.init(e,t),rX.init(e,t),e.email=t=>e.check(tV(rQ,t)),e.url=t=>e.check(tJ(r2,t)),e.jwt=t=>e.check(rn(ns,t)),e.emoji=t=>e.check(tQ(r6,t)),e.guid=t=>e.check(tK(r0,t)),e.uuid=t=>e.check(tG(r1,t)),e.uuidv4=t=>e.check(tX(r1,t)),e.uuidv6=t=>e.check(tZ(r1,t)),e.uuidv7=t=>e.check(tY(r1,t)),e.nanoid=t=>e.check(t0(r3,t)),e.guid=t=>e.check(tK(r0,t)),e.cuid=t=>e.check(t1(r5,t)),e.cuid2=t=>e.check(t2(r4,t)),e.ulid=t=>e.check(t6(r8,t)),e.base64=t=>e.check(re(ni,t)),e.base64url=t=>e.check(rt(no,t)),e.xid=t=>e.check(t3(r9,t)),e.ksuid=t=>e.check(t5(r7,t)),e.ipv4=t=>e.check(t4(ne,t)),e.ipv6=t=>e.check(t8(nt,t)),e.cidrv4=t=>e.check(t9(nr,t)),e.cidrv6=t=>e.check(t7(nn,t)),e.e164=t=>e.check(rr(na,t)),e.datetime=t=>e.check(rN(t)),e.date=t=>e.check(rB(t)),e.time=t=>e.check(rL(t)),e.duration=t=>e.check(rF(t))});function rY(e){return tW(rZ,e)}let rJ=n("ZodStringFormat",(e,t)=>{eK.init(e,t),rX.init(e,t)}),rQ=n("ZodEmail",(e,t)=>{eZ.init(e,t),rJ.init(e,t)}),r0=n("ZodGUID",(e,t)=>{eG.init(e,t),rJ.init(e,t)}),r1=n("ZodUUID",(e,t)=>{eX.init(e,t),rJ.init(e,t)}),r2=n("ZodURL",(e,t)=>{eY.init(e,t),rJ.init(e,t)}),r6=n("ZodEmoji",(e,t)=>{eJ.init(e,t),rJ.init(e,t)}),r3=n("ZodNanoID",(e,t)=>{eQ.init(e,t),rJ.init(e,t)}),r5=n("ZodCUID",(e,t)=>{e0.init(e,t),rJ.init(e,t)}),r4=n("ZodCUID2",(e,t)=>{e1.init(e,t),rJ.init(e,t)}),r8=n("ZodULID",(e,t)=>{e2.init(e,t),rJ.init(e,t)}),r9=n("ZodXID",(e,t)=>{e6.init(e,t),rJ.init(e,t)}),r7=n("ZodKSUID",(e,t)=>{e3.init(e,t),rJ.init(e,t)}),ne=n("ZodIPv4",(e,t)=>{e7.init(e,t),rJ.init(e,t)}),nt=n("ZodIPv6",(e,t)=>{te.init(e,t),rJ.init(e,t)}),nr=n("ZodCIDRv4",(e,t)=>{tt.init(e,t),rJ.init(e,t)}),nn=n("ZodCIDRv6",(e,t)=>{tr.init(e,t),rJ.init(e,t)}),ni=n("ZodBase64",(e,t)=>{ti.init(e,t),rJ.init(e,t)}),no=n("ZodBase64URL",(e,t)=>{ta.init(e,t),rJ.init(e,t)}),na=n("ZodE164",(e,t)=>{ts.init(e,t),rJ.init(e,t)}),ns=n("ZodJWT",(e,t)=>{tc.init(e,t),rJ.init(e,t)}),nl=n("ZodNumber",(e,t)=>{tu.init(e,t),rG.init(e,t),e.gt=(t,r)=>e.check(rm(t,r)),e.gte=(t,r)=>e.check(rg(t,r)),e.min=(t,r)=>e.check(rg(t,r)),e.lt=(t,r)=>e.check(rh(t,r)),e.lte=(t,r)=>e.check(rp(t,r)),e.max=(t,r)=>e.check(rp(t,r)),e.int=t=>e.check(nf(t)),e.safe=t=>e.check(nf(t)),e.positive=t=>e.check(rm(0,t)),e.nonnegative=t=>e.check(rg(0,t)),e.negative=t=>e.check(rh(0,t)),e.nonpositive=t=>e.check(rp(0,t)),e.multipleOf=(t,r)=>e.check(rb(t,r)),e.step=(t,r)=>e.check(rb(t,r)),e.finite=()=>e;let r=e._zod.bag;e.minValue=Math.max(r.minimum??-1/0,r.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(r.maximum??1/0,r.exclusiveMaximum??1/0)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function nc(e){return rl(nl,e)}let nu=n("ZodNumberFormat",(e,t)=>{tf.init(e,t),nl.init(e,t)});function nf(e){return rc(nu,e)}let nd=n("ZodBoolean",(e,t)=>{td.init(e,t),rG.init(e,t)});function nh(e){return ru(nd,e)}let np=n("ZodUnknown",(e,t)=>{th.init(e,t),rG.init(e,t)});function nm(){return rf(np)}let ng=n("ZodNever",(e,t)=>{tp.init(e,t),rG.init(e,t)});function nb(e){return rd(ng,e)}let nv=n("ZodArray",(e,t)=>{tg.init(e,t),rG.init(e,t),e.element=t.element,e.min=(t,r)=>e.check(ry(t,r)),e.nonempty=t=>e.check(ry(1,t)),e.max=(t,r)=>e.check(rv(t,r)),e.length=(t,r)=>e.check(rw(t,r)),e.unwrap=()=>e.element});function ny(e,t){return rR(nv,e,t)}let nw=n("ZodObject",(e,t)=>{ty.init(e,t),rG.init(e,t),q(e,"shape",()=>t.shape),e.keyof=()=>nM(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:nm()}),e.loose=()=>e.clone({...e._zod.def,catchall:nm()}),e.strict=()=>e.clone({...e._zod.def,catchall:nb()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>eo(e,t),e.merge=t=>ea(e,t),e.pick=t=>en(e,t),e.omit=t=>ei(e,t),e.partial=(...t)=>es(nN,e,t[0]),e.required=(...t)=>el(nU,e,t[0])});function nx(e,t){return new nw({type:"object",get shape(){return W(this,"shape",{...e}),this.shape},...ee(t)})}function nA(e,t){return new nw({type:"object",get shape(){return W(this,"shape",{...e}),this.shape},catchall:nb(),...ee(t)})}let nE=n("ZodUnion",(e,t)=>{tx.init(e,t),rG.init(e,t),e.options=t.options});function n_(e,t){return new nE({type:"union",options:e,...ee(t)})}let nS=n("ZodIntersection",(e,t)=>{tA.init(e,t),rG.init(e,t)});function n$(e,t){return new nS({type:"intersection",left:e,right:t})}let nk=n("ZodRecord",(e,t)=>{tS.init(e,t),rG.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function nC(e,t,r){return new nk({type:"record",keyType:e,valueType:t,...ee(r)})}let nO=n("ZodEnum",(e,t)=>{t$.init(e,t),rG.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(e,n)=>{let i={};for(let n of e)if(r.has(n))i[n]=t.entries[n];else throw Error(`Key ${n} not found in enum`);return new nO({...t,checks:[],...ee(n),entries:i})},e.exclude=(e,n)=>{let i={...t.entries};for(let t of e)if(r.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new nO({...t,checks:[],...ee(n),entries:i})}});function nM(e,t){return new nO({type:"enum",entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...ee(t)})}let nI=n("ZodLiteral",(e,t)=>{tk.init(e,t),rG.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function nR(e,t){return new nI({type:"literal",values:Array.isArray(e)?e:[e],...ee(t)})}let nj=n("ZodTransform",(e,t)=>{tC.init(e,t),rG.init(e,t),e._zod.parse=(r,n)=>{r.addIssue=n=>{if("string"==typeof n)r.issues.push(ep(n,r.value,t));else{let t=n;t.fatal&&(t.continue=!1),t.code??(t.code="custom"),t.input??(t.input=r.value),t.inst??(t.inst=e),t.continue??(t.continue=!0),r.issues.push(ep(t))}};let i=t.transform(r.value,r);return i instanceof Promise?i.then(e=>(r.value=e,r)):(r.value=i,r)}});function nT(e){return new nj({type:"transform",transform:e})}let nN=n("ZodOptional",(e,t)=>{tO.init(e,t),rG.init(e,t),e.unwrap=()=>e._zod.def.innerType});function nP(e){return new nN({type:"optional",innerType:e})}let nB=n("ZodNullable",(e,t)=>{tM.init(e,t),rG.init(e,t),e.unwrap=()=>e._zod.def.innerType});function nz(e){return new nB({type:"nullable",innerType:e})}let nL=n("ZodDefault",(e,t)=>{tI.init(e,t),rG.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function nD(e,t){return new nL({type:"default",innerType:e,get defaultValue(){return"function"==typeof t?t():t}})}let nF=n("ZodPrefault",(e,t)=>{tj.init(e,t),rG.init(e,t),e.unwrap=()=>e._zod.def.innerType});function nH(e,t){return new nF({type:"prefault",innerType:e,get defaultValue(){return"function"==typeof t?t():t}})}let nU=n("ZodNonOptional",(e,t)=>{tT.init(e,t),rG.init(e,t),e.unwrap=()=>e._zod.def.innerType});function nq(e,t){return new nU({type:"nonoptional",innerType:e,...ee(t)})}let nW=n("ZodCatch",(e,t)=>{tP.init(e,t),rG.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function nV(e,t){return new nW({type:"catch",innerType:e,catchValue:"function"==typeof t?t:()=>t})}let nK=n("ZodPipe",(e,t)=>{tB.init(e,t),rG.init(e,t),e.in=t.in,e.out=t.out});function nG(e,t){return new nK({type:"pipe",in:e,out:t})}let nX=n("ZodReadonly",(e,t)=>{tL.init(e,t),rG.init(e,t)});function nZ(e){return new nX({type:"readonly",innerType:e})}let nY=n("ZodCustom",(e,t)=>{tF.init(e,t),rG.init(e,t)});function nJ(e){let t=new em({check:"custom"});return t._zod.check=e,t}function nQ(e,t={}){return rj(nY,e,t)}function n0(e){let t=nJ(r=>(r.addIssue=e=>{if("string"==typeof e)r.issues.push(ep(e,r.value,t._zod.def));else{let n=e;n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=r.value),n.inst??(n.inst=t),n.continue??(n.continue=!t._zod.def.abort),r.issues.push(ep(n))}},e(r.value,r)));return t}},42131(e,t,r){"use strict";r.d(t,{vt:()=>d});let n=e=>{let t,r=new Set,n=(e,n)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=n?n:"object"!=typeof i||null===i)?i:Object.assign({},t,i),r.forEach(r=>r(t,e))}},i=()=>t,o={setState:n,getState:i,getInitialState:()=>a,subscribe:e=>(r.add(e),()=>r.delete(e)),destroy:()=>{r.clear()}},a=t=e(n,i,o);return o},i=e=>e?n(e):n;var o=r(22155),a=r(33016);let{useDebugValue:s}=o,{useSyncExternalStoreWithSelector:l}=a,c=e=>e;function u(e,t=c,r){let n=l(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return s(n),n}let f=e=>{let t="function"==typeof e?i(e):e,r=(e,r)=>u(t,e,r);return Object.assign(r,t),r},d=e=>e?f(e):f},3349(e){"use strict";e.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},64816(e){"use strict";e.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},8906(e){"use strict";e.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},37821(e){"use strict";e.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},23718(e){"use strict";e.exports={rE:"6.6.1"}},1464(e){"use strict";e.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')}}]);
314
- //# sourceMappingURL=208.899909ee.js.map
314
+ //# sourceMappingURL=342.4cd664a6.js.map