@midscene/android-playground 1.6.3 → 1.7.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 807.fe401934.js.LICENSE.txt */
2
- (self.webpackChunkandroid_playground=self.webpackChunkandroid_playground||[]).push([["807"],{7516(e,t,n){"use strict";n.d(t,{uy:()=>f,UA:()=>C,bK:()=>g,z1:()=>x,cM:()=>d});var r=n(8956),o=n(7358),i=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function a(e){var t=e.r,n=e.g,o=e.b,i=(0,r.wE)(t,n,o);return{h:360*i.h,s:i.s,v:i.v}}function s(e){var t=e.r,n=e.g,o=e.b;return"#".concat((0,r.Ob)(t,n,o,!1))}function l(e,t,n){var r;return(r=Math.round(e.h)>=60&&240>=Math.round(e.h)?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function c(e,t,n){var r;return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)))}function u(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function d(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=(0,o.RO)(e),d=5;d>0;d-=1){var f=a(r),p=s((0,o.RO)({h:l(f,d,!0),s:c(f,d,!0),v:u(f,d,!0)}));n.push(p)}n.push(s(r));for(var h=1;h<=4;h+=1){var m=a(r),g=s((0,o.RO)({h:l(m,h),s:c(m,h),v:u(m,h)}));n.push(g)}return"dark"===t.theme?i.map(function(e){var r,i,a,l=e.index,c=e.opacity;return s((r=(0,o.RO)(t.backgroundColor||"#141414"),i=(0,o.RO)(n[l]),a=100*c/100,{r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b}))}):n}var f={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"},p=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];p.primary=p[5];var h=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];h.primary=h[5];var m=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];m.primary=m[5];var g=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];g.primary=g[5];var v=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];v.primary=v[5];var b=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];b.primary=b[5];var y=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];y.primary=y[5];var w=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];w.primary=w[5];var x=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];x.primary=x[5];var A=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];A.primary=A[5];var E=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];E.primary=E[5];var $=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];$.primary=$[5];var S=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];S.primary=S[5];var C={red:p,volcano:h,orange:m,gold:g,yellow:v,lime:b,green:y,cyan:w,blue:x,geekblue:A,purple:E,magenta:$,grey:S},O=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];O.primary=O[5];var k=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];k.primary=k[5];var _=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];_.primary=_[5];var I=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];I.primary=I[5];var R=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];R.primary=R[5];var j=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];j.primary=j[5];var N=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];N.primary=N[5];var T=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];T.primary=T[5];var P=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];P.primary=P[5];var M=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];M.primary=M[5];var z=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];z.primary=z[5];var B=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];B.primary=B[5];var L=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];L.primary=L[5]},8491(e,t,n){"use strict";n.d(t,{oX:()=>S,L_:()=>j});var r=n(2716),o=n(6233),i=n(6467),a=n(3779),s=n(2155),l=n(5337),c=n(2645),u=n(965),d=n(4713),f=n(6477),p=n(3442),h=(0,u.A)(function e(){(0,c.A)(this,e)}),m="CALC_UNIT",g=RegExp(m,"g");function v(e){return"number"==typeof e?"".concat(e).concat(m):e}var b=function(e){(0,f.A)(n,e);var t=(0,p.A)(n);function n(e,o){(0,c.A)(this,n),a=t.call(this),(0,i.A)((0,d.A)(a),"result",""),(0,i.A)((0,d.A)(a),"unitlessCssVar",void 0),(0,i.A)((0,d.A)(a),"lowPriority",void 0);var a,s=(0,r.A)(e);return a.unitlessCssVar=o,e instanceof n?a.result="(".concat(e.result,")"):"number"===s?a.result=v(e):"string"===s&&(a.result=e),a}return(0,u.A)(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," + ").concat(v(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," - ").concat(v(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?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 n?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,n=(e||{}).unit,r=!0;return("boolean"==typeof n?r=n:Array.from(this.unitlessCssVar).some(function(e){return t.result.includes(e)})&&(r=!1),this.result=this.result.replace(g,r?"px":""),void 0!==this.lowPriority)?"calc(".concat(this.result,")"):this.result}}]),n}(h),y=function(e){(0,f.A)(n,e);var t=(0,p.A)(n);function n(e){var r;return(0,c.A)(this,n),r=t.call(this),(0,i.A)((0,d.A)(r),"result",0),e instanceof n?r.result=e.result:"number"==typeof e&&(r.result=e),r}return(0,u.A)(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),n}(h);let w=function(e,t){var n="css"===e?b:y;return function(e){return new n(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("-"))};n(5260);let A=function(e,t,n,r){var i=(0,a.A)({},t[e]);null!=r&&r.deprecatedTokens&&r.deprecatedTokens.forEach(function(e){var t=(0,o.A)(e,2),n=t[0],r=t[1];(null!=i&&i[n]||null!=i&&i[r])&&(null!=i[r]||(i[r]=null==i?void 0:i[n]))});var s=(0,a.A)((0,a.A)({},n),i);return Object.keys(s).forEach(function(e){s[e]===t[e]&&delete s[e]}),s};var E="undefined"!=typeof CSSINJS_STATISTIC,$=!0;function S(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!E)return Object.assign.apply(Object,[{}].concat(t));$=!1;var o={};return t.forEach(function(e){"object"===(0,r.A)(e)&&Object.keys(e).forEach(function(t){Object.defineProperty(o,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})})}),$=!0,o}var C={};function O(){}let k=function(e){var t,n=e,r=O;return E&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){if($){var r;null==(r=t)||r.add(n)}return e[n]}}),r=function(e,n){var r;C[e]={global:Array.from(t),component:(0,a.A)((0,a.A)({},null==(r=C[e])?void 0:r.component),n)}}),{token:n,keys:t,flush:r}},_=function(e,t,n){if("function"==typeof n){var r;return n(S(t,null!=(r=t[e])?r:{}))}return null!=n?n:{}};var I=new(function(){function e(){(0,c.A)(this,e),(0,i.A)(this,"map",new Map),(0,i.A)(this,"objectIDMap",new WeakMap),(0,i.A)(this,"nextID",0),(0,i.A)(this,"lastAccessBeat",new Map),(0,i.A)(this,"accessBeat",0)}return(0,u.A)(e,[{key:"set",value:function(e,t){this.clear();var n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(e){var t=this;return e.map(function(e){return e&&"object"===(0,r.A)(e)?"obj_".concat(t.getObjectID(e)):"".concat((0,r.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(n,r){t-n>6e5&&(e.map.delete(r),e.lastAccessBeat.delete(r))}),this.accessBeat=0}}}]),e}());let R=function(){return{}},j=function(e){var t=e.useCSP,n=void 0===t?R:t,c=e.useToken,u=e.usePrefix,d=e.getResetStyles,f=e.getCommonStyle,p=e.getCompUnitless;function h(t,i,p){var h=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},m=Array.isArray(t)?t:[t,t],g=(0,o.A)(m,1)[0],v=m.join("-"),b=e.layer||{name:"antd"};return function(e){var t,o,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,y=c(),E=y.theme,$=y.realToken,C=y.hashId,O=y.token,R=y.cssVar,j=u(),N=j.rootPrefixCls,T=j.iconPrefixCls,P=n(),M=R?"css":"js",z=(t=function(){var e=new Set;return R&&Object.keys(h.unitless||{}).forEach(function(t){e.add((0,l.Ki)(t,R.prefix)),e.add((0,l.Ki)(t,x(g,R.prefix)))}),w(M,e)},o=[M,g,null==R?void 0:R.prefix],s.useMemo(function(){var e=I.get(o);if(e)return e;var n=t();return I.set(o,n),n},o)),B="js"===M?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return"max(".concat(t.map(function(e){return(0,l.zA)(e)}).join(","),")")},min:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return"min(".concat(t.map(function(e){return(0,l.zA)(e)}).join(","),")")}},L=B.max,F=B.min,D={theme:E,token:O,hashId:C,nonce:function(){return P.nonce},clientOnly:h.clientOnly,layer:b,order:h.order||-999};return(0,l.IV)((0,a.A)((0,a.A)({},D),{},{clientOnly:!1,path:["Shared",N]}),function(){return"function"==typeof d?d(O):[]}),[(0,l.IV)((0,a.A)((0,a.A)({},D),{},{path:[v,e,T]}),function(){if(!1===h.injectStyle)return[];var t=k(O),n=t.token,o=t.flush,a=_(g,$,p),s=".".concat(e),c=A(g,$,a,{deprecatedTokens:h.deprecatedTokens});R&&a&&"object"===(0,r.A)(a)&&Object.keys(a).forEach(function(e){a[e]="var(".concat((0,l.Ki)(e,x(g,R.prefix)),")")});var u=S(n,{componentCls:s,prefixCls:e,iconCls:".".concat(T),antCls:".".concat(N),calc:z,max:L,min:F},R?a:c),d=i(u,{hashId:C,prefixCls:e,rootPrefixCls:N,iconPrefixCls:T});o(g,c);var v="function"==typeof f?f(u,e,m,h.resetFont):null;return[!1===h.resetStyle?null:v,d]}),C]}}return{genStyleHooks:function(e,t,n,r){var u,d,f,m,g,v,b,y,w,x=Array.isArray(e)?e[0]:e;function E(e){return"".concat(String(x)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var $=(null==r?void 0:r.unitless)||{},S="function"==typeof p?p(e):{},C=(0,a.A)((0,a.A)({},S),{},(0,i.A)({},E("zIndexPopup"),!0));Object.keys($).forEach(function(e){C[E(e)]=$[e]});var O=(0,a.A)((0,a.A)({},r),{},{unitless:C,prefixToken:E}),k=h(e,t,n,O),I=(u=x,d=n,m=(f=O).unitless,v=void 0===(g=f.injectStyle)||g,b=f.prefixToken,y=f.ignore,w=function(e){var t=e.rootCls,n=e.cssVar,r=void 0===n?{}:n,o=c().realToken;return(0,l.RC)({path:[u],prefix:r.prefix,key:r.key,unitless:m,ignore:y,token:o,scope:t},function(){var e=_(u,o,d),t=A(u,o,e,{deprecatedTokens:null==f?void 0:f.deprecatedTokens});return Object.keys(e).forEach(function(e){t[b(e)]=t[e],delete t[e]}),t}),null},function(e){var t=c().cssVar;return[function(n){return v&&t?s.createElement(s.Fragment,null,s.createElement(w,{rootCls:e,cssVar:t,component:u}),n):n},null==t?void 0:t.key]});return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=k(e,t),r=(0,o.A)(n,2)[1],i=I(t),a=(0,o.A)(i,2);return[a[0],r,a[1]]}},genSubStyleComponent:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=h(e,t,n,(0,a.A)({resetStyle:!1,order:-998},r));return function(e){var t=e.prefixCls,n=e.rootCls,r=void 0===n?t:n;return o(t,r),null}},genComponentStyleHook:h}}},5337(e,t,n){"use strict";n.d(t,{an:()=>O,Ki:()=>M,hV:()=>G,Mo:()=>eT,RC:()=>eN,zA:()=>T,IV:()=>eR});var r,o=n(6467),i=n(6233),a=n(8128),s=n(3779);let l=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*0x5bd1e995+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*0x5bd1e995+((t>>>16)*59797<<16)^(65535&n)*0x5bd1e995+((n>>>16)*59797<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*0x5bd1e995+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*0x5bd1e995+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)};var c=n(8451),u=n(2155),d=n.t(u,2);n(4518),n(8216);var f=n(2645),p=n(965);function h(e){return e.join("%")}var m=function(){function e(t){(0,f.A)(this,e),(0,o.A)(this,"instanceId",void 0),(0,o.A)(this,"cache",new Map),this.instanceId=t}return(0,p.A)(e,[{key:"get",value:function(e){return this.opGet(h(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(h(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}(),g="data-token-hash",v="data-css-hash",b="__cssinjs_instance__",y=u.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(v,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(t){t[b]=t[b]||e,t[b]===e&&document.head.insertBefore(t,n)});var r={};Array.from(document.querySelectorAll("style[".concat(v,"]"))).forEach(function(t){var n,o=t.getAttribute(v);r[o]?t[b]===e&&(null==(n=t.parentNode)||n.removeChild(t)):r[o]=!0})}return new m(e)}(),defaultCache:!0}),w=n(2716),x=n(9352),A=function(){function e(){(0,f.A)(this,e),(0,o.A)(this,"cache",void 0),(0,o.A)(this,"keys",void 0),(0,o.A)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,p.A)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach(function(e){if(o){var t;o=null==(t=o)||null==(t=t.map)?void 0:t.get(e)}else o=void 0}),null!=(t=o)&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null==(n=o)?void 0:n.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,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(e,t){var n=(0,i.A)(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e},[this.keys[0],this.cacheCallTimes]),a=(0,i.A)(o,1)[0];this.delete(a)}this.keys.push(t)}var s=this.cache;t.forEach(function(e,o){if(o===t.length-1)s.set(e,{value:[n,r.cacheCallTimes++]});else{var i=s.get(e);i?i.map||(i.map=new Map):s.set(e,{map:new Map}),s=s.get(e).map}})}},{key:"deleteByPath",value:function(e,t){var n,r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null==(n=r.value)?void 0:n[0];var o=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),o}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter(function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)}),this.deleteByPath(this.cache,e)}}]),e}();(0,o.A)(A,"MAX_CACHE_SIZE",20),(0,o.A)(A,"MAX_CACHE_OFFSET",5);var E=n(6216),$=0,S=function(){function e(t){(0,f.A)(this,e),(0,o.A)(this,"derivatives",void 0),(0,o.A)(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=$,0===t.length&&(0,E.$e)(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),$+=1}return(0,p.A)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,n){return n(e,t)},void 0)}}]),e}(),C=new A;function O(e){var t=Array.isArray(e)?e:[e];return C.has(t)||C.set(t,new S(t)),C.get(t)}var k=new WeakMap,_={},I=new WeakMap;function R(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=I.get(e)||"";return n||(Object.keys(e).forEach(function(r){var o=e[r];n+=r,o instanceof S?n+=o.id:o&&"object"===(0,w.A)(o)?n+=R(o,t):n+=o}),t&&(n=l(n)),I.set(e,n)),n}function j(e,t){return l("".concat(t,"_").concat(R(e,!0)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var N=(0,x.A)();function T(e){return"number"==typeof e?"".concat(e,"px"):e}function P(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(i)return e;var a=(0,s.A)((0,s.A)({},r),{},(0,o.A)((0,o.A)({},g,t),v,n)),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 M=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()},z=function(e,t,n){var r,o={},a={};return Object.entries(e).forEach(function(e){var t=(0,i.A)(e,2),r=t[0],s=t[1];if(null!=n&&null!=(l=n.preserve)&&l[r])a[r]=s;else if(("string"==typeof s||"number"==typeof s)&&!(null!=n&&null!=(c=n.ignore)&&c[r])){var l,c,u,d=M(r,null==n?void 0:n.prefix);o[d]="number"!=typeof s||null!=n&&null!=(u=n.unitless)&&u[r]?String(s):"".concat(s,"px"),a[r]="var(".concat(d,")")}}),[a,(r={scope:null==n?void 0:n.scope},Object.keys(o).length?".".concat(t).concat(null!=r&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(o).map(function(e){var t=(0,i.A)(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")}).join(""),"}"):"")]},B=n(8367),L=(0,s.A)({},d).useInsertionEffect,F=L?function(e,t,n){return L(function(){return e(),t()},n)}:function(e,t,n){u.useMemo(e,n),(0,B.A)(function(){return t(!0)},n)},D=void 0!==(0,s.A)({},d).useInsertionEffect?function(e){var t=[],n=!1;return u.useEffect(function(){return n=!1,function(){n=!0,t.length&&t.forEach(function(e){return e()})}},e),function(e){n||t.push(e)}}:function(){return function(e){e()}};function H(e,t,n,r,o){var s=u.useContext(y).cache,l=h([e].concat((0,a.A)(t))),c=D([l]),d=function(e){s.opUpdate(l,function(t){var r=(0,i.A)(t||[void 0,void 0],2),o=r[0],a=[void 0===o?0:o,r[1]||n()];return e?e(a):a})};u.useMemo(function(){d()},[l]);var f=s.opGet(l)[1];return F(function(){null==o||o(f)},function(e){return d(function(t){var n=(0,i.A)(t,2),r=n[0],a=n[1];return e&&0===r&&(null==o||o(f)),[r+1,a]}),function(){s.opUpdate(l,function(t){var n=(0,i.A)(t||[],2),o=n[0],a=void 0===o?0:o,u=n[1];return 0==a-1?(c(function(){(e||!s.opGet(l))&&(null==r||r(u,!1))}),null):[a-1,u]})}},[l]),f}var W={},U=new Map,q=function(e,t,n,r){var o=n.getDerivativeToken(e),i=(0,s.A)((0,s.A)({},o),t);return r&&(i=r(i)),i},V="token";function G(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,u.useContext)(y),o=r.cache.instanceId,d=r.container,f=n.salt,p=void 0===f?"":f,h=n.override,m=void 0===h?W:h,w=n.formatToken,x=n.getComputedToken,A=n.cssVar,E=function(e,t){for(var n=k,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(_)||n.set(_,e()),n.get(_)}(function(){return Object.assign.apply(Object,[{}].concat((0,a.A)(t)))},t),$=R(E),S=R(m),C=A?R(A):"";return H(V,[p,e.id,$,S,C],function(){var t,n=x?x(E,m,e):q(E,m,e,w),r=(0,s.A)({},n),o="";if(A){var a=z(n,A.key,{prefix:A.prefix,ignore:A.ignore,unitless:A.unitless,preserve:A.preserve}),c=(0,i.A)(a,2);n=c[0],o=c[1]}var u=j(n,p);n._tokenKey=u,r._tokenKey=j(r,p);var d=null!=(t=null==A?void 0:A.key)?t:u;n._themeKey=d,U.set(d,(U.get(d)||0)+1);var f="".concat("css","-").concat(l(u));return n._hashId=f,[n,f,r,o,(null==A?void 0:A.key)||""]},function(e){var t,n,r;t=e[0]._themeKey,U.set(t,(U.get(t)||0)-1),r=(n=Array.from(U.keys())).filter(function(e){return 0>=(U.get(e)||0)}),n.length-r.length>0&&r.forEach(function(e){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(g,'="').concat(e,'"]')).forEach(function(e){if(e[b]===o){var t;null==(t=e.parentNode)||t.removeChild(e)}}),U.delete(e)})},function(e){var t=(0,i.A)(e,4),n=t[0],r=t[3];if(A&&r){var a=(0,c.BD)(r,l("css-variables-".concat(n._themeKey)),{mark:v,prepend:"queue",attachTo:d,priority:-999});a[b]=o,a.setAttribute(g,n._themeKey)}})}var X=n(2664);let K={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 Y="comm",Z="rule",Q="decl",J=Math.abs,ee=String.fromCharCode;function et(e,t,n){return e.replace(t,n)}function en(e,t){return 0|e.charCodeAt(t)}function er(e,t,n){return e.slice(t,n)}function eo(e){return e.length}function ei(e,t){return t.push(e),e}function ea(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function es(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Q:return e.return=e.return||e.value;case Y:return"";case"@keyframes":return e.return=e.value+"{"+ea(e.children,r)+"}";case Z:if(!eo(e.value=e.props.join(",")))return""}return eo(n=ea(e.children,r))?e.return=e.value+"{"+n+"}":""}var el=1,ec=1,eu=0,ed=0,ef=0,ep="";function eh(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:el,column:ec,length:a,return:"",siblings:s}}function em(){return ef=ed<eu?en(ep,ed++):0,ec++,10===ef&&(ec=1,el++),ef}function eg(){return en(ep,ed)}function ev(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 eb(e){var t,n;return(t=ed-1,n=function e(t){for(;em();)switch(ef){case t:return ed;case 34:case 39:34!==t&&39!==t&&e(ef);break;case 40:41===t&&e(t);break;case 92:em()}return ed}(91===e?e+2:40===e?e+1:e),er(ep,t,n)).trim()}function ey(e,t,n,r,o,i,a,s,l,c,u,d){for(var f=o-1,p=0===o?i:[""],h=p.length,m=0,g=0,v=0;m<r;++m)for(var b=0,y=er(e,f+1,f=J(g=a[m])),w=e;b<h;++b)(w=(g>0?p[b]+" "+y:et(y,/&\f/g,p[b])).trim())&&(l[v++]=w);return eh(e,t,n,0===o?Z:s,l,c,u,d)}function ew(e,t,n,r,o){return eh(e,t,n,Q,er(e,0,r),er(e,r+1,-1),r,o)}var ex="data-ant-cssinjs-cache-path",eA="_FILE_STYLE__",eE=!0,e$="_multi_value_";function eS(e){var t,n,r;return ea((r=function e(t,n,r,o,i,a,s,l,c){for(var u,d,f,p,h,m,g=0,v=0,b=s,y=0,w=0,x=0,A=1,E=1,$=1,S=0,C="",O=i,k=a,_=o,I=C;E;)switch(x=S,S=em()){case 40:if(108!=x&&58==en(I,b-1)){-1!=(h=I+=et(eb(S),"&","&\f"),m=J(g?l[g-1]:0),h.indexOf("&\f",m))&&($=-1);break}case 34:case 39:case 91:I+=eb(S);break;case 9:case 10:case 13:case 32:I+=function(e){for(;ef=eg();)if(ef<33)em();else break;return ev(e)>2||ev(ef)>3?"":" "}(x);break;case 92:I+=function(e,t){for(var n;--t&&em()&&!(ef<48)&&!(ef>102)&&(!(ef>57)||!(ef<65))&&(!(ef>70)||!(ef<97)););return n=ed+(t<6&&32==eg()&&32==em()),er(ep,e,n)}(ed-1,7);continue;case 47:switch(eg()){case 42:case 47:ei((u=function(e,t){for(;em();)if(e+ef===57)break;else if(e+ef===84&&47===eg())break;return"/*"+er(ep,t,ed-1)+"*"+ee(47===e?e:em())}(em(),ed),d=n,f=r,p=c,eh(u,d,f,Y,ee(ef),er(u,2,-2),0,p)),c),(5==ev(x||1)||5==ev(eg()||1))&&eo(I)&&" "!==er(I,-1,void 0)&&(I+=" ");break;default:I+="/"}break;case 123*A:l[g++]=eo(I)*$;case 125*A:case 59:case 0:switch(S){case 0:case 125:E=0;case 59+v:-1==$&&(I=et(I,/\f/g,"")),w>0&&(eo(I)-b||0===A&&47===x)&&ei(w>32?ew(I+";",o,r,b-1,c):ew(et(I," ","")+";",o,r,b-2,c),c);break;case 59:I+=";";default:if(ei(_=ey(I,n,r,g,v,i,l,C,O=[],k=[],b,a),a),123===S)if(0===v)e(I,n,_,_,O,a,b,l,k);else switch(99===y&&110===en(I,3)?100:y){case 100:case 108:case 109:case 115:e(t,_,_,o&&ei(ey(t,_,_,0,0,i,l,C,i,O=[],b,k),k),i,k,b,l,o?O:k);break;default:e(I,_,_,_,[""],k,0,l,k)}}g=v=w=0,A=$=1,C=I="",b=s;break;case 58:b=1+eo(I),w=x;default:if(A<1){if(123==S)--A;else if(125==S&&0==A++&&125==(ef=ed>0?en(ep,--ed):0,ec--,10===ef&&(ec=1,el--),ef))continue}switch(I+=ee(S),S*A){case 38:$=v>0?1:(I+="\f",-1);break;case 44:l[g++]=(eo(I)-1)*$,$=1;break;case 64:45===eg()&&(I+=eb(em())),y=eg(),v=b=eo(C=I+=function(e){for(;!ev(eg());)em();return er(ep,e,ed)}(ed)),S++;break;case 45:45===x&&2==eo(I)&&(A=0)}}return a}("",null,null,null,[""],(n=t=e,el=ec=1,eu=eo(ep=n),ed=0,t=[]),0,[0],t),ep="",r),es).replace(/\{%%%\:[^;];}/g,";")}function eC(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map(function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",i=(null==(t=r.match(/^\w+/))?void 0:t[0])||"";return[r="".concat(i).concat(o).concat(r.slice(i.length))].concat((0,a.A)(n.slice(1))).join(" ")}).join(",")}var eO=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,l=r.injectHash,c=r.parentSelectors,u=n.hashId,d=n.layer,f=(n.path,n.hashPriority),p=n.transformers,h=void 0===p?[]:p,m=(n.linters,""),g={};function v(t){var r=t.getName(u);if(!g[r]){var o=e(t.style,n,{root:!1,parentSelectors:c}),a=(0,i.A)(o,1)[0];g[r]="@keyframes ".concat(t.getName(u)).concat(a)}}return(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach(function(t){Array.isArray(t)?e(t,n):t&&n.push(t)}),n})(Array.isArray(t)?t:[t]).forEach(function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)m+="".concat(r,"\n");else if(r._keyframe)v(r);else{var d=h.reduce(function(e,t){var n;return(null==t||null==(n=t.visit)?void 0:n.call(t,e))||e},r);Object.keys(d).forEach(function(t){var r=d[t];if("object"!==(0,w.A)(r)||!r||"animationName"===t&&r._keyframe||"object"===(0,w.A)(r)&&r&&("_skip_check_"in r||e$ in r)){function p(e,t){var n=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),r=t;K[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(v(t),r=t.getName(u)),m+="".concat(n,":").concat(r,";")}var h,b=null!=(h=null==r?void 0:r.value)?h:r;"object"===(0,w.A)(r)&&null!=r&&r[e$]&&Array.isArray(b)?b.forEach(function(e){p(t,e)}):p(t,b)}else{var y=!1,x=t.trim(),A=!1;(o||l)&&u?x.startsWith("@")?y=!0:x="&"===x?eC("",u,f):eC(t,u,f):o&&!u&&("&"===x||""===x)&&(x="",A=!0);var E=e(r,n,{root:A,injectHash:y,parentSelectors:[].concat((0,a.A)(c),[x])}),$=(0,i.A)(E,2),S=$[0],C=$[1];g=(0,s.A)((0,s.A)({},g),C),m+="".concat(x).concat(S)}})}}),o?d&&(m="@layer ".concat(d.name," {").concat(m,"}"),d.dependencies&&(g["@layer ".concat(d.name)]=d.dependencies.map(function(e){return"@layer ".concat(e,", ").concat(d.name,";")}).join("\n"))):m="{".concat(m,"}"),[m,g]};function ek(e,t){return l("".concat(e.join("%")).concat(t))}function e_(){return null}var eI="style";function eR(e,t){var n=e.token,l=e.path,d=e.hashId,f=e.layer,p=e.nonce,h=e.clientOnly,m=e.order,w=void 0===m?0:m,A=u.useContext(y),E=A.autoClear,$=(A.mock,A.defaultCache),S=A.hashPriority,C=A.container,O=A.ssrInline,k=A.transformers,_=A.linters,I=A.cache,R=A.layer,j=n._tokenKey,T=[j];R&&T.push("layer"),T.push.apply(T,(0,a.A)(l));var P=H(eI,T,function(){var e=T.join("|");if(function(e){if(!r&&(r={},(0,x.A)())){var t,n=document.createElement("div");n.className=ex,n.style.position="fixed",n.style.visibility="hidden",n.style.top="-9999px",document.body.appendChild(n);var o=getComputedStyle(n).content||"";(o=o.replace(/^"/,"").replace(/"$/,"")).split(";").forEach(function(e){var t=e.split(":"),n=(0,i.A)(t,2),o=n[0],a=n[1];r[o]=a});var a=document.querySelector("style[".concat(ex,"]"));a&&(eE=!1,null==(t=a.parentNode)||t.removeChild(a)),document.body.removeChild(n)}return!!r[e]}(e)){var n=function(e){var t=r[e],n=null;if(t&&(0,x.A)())if(eE)n=eA;else{var o=document.querySelector("style[".concat(v,'="').concat(r[e],'"]'));o?n=o.innerHTML:delete r[e]}return[n,t]}(e),o=(0,i.A)(n,2),a=o[0],s=o[1];if(a)return[a,j,s,{},h,w]}var c=eO(t(),{hashId:d,hashPriority:S,layer:R?f:void 0,path:l.join("-"),transformers:k,linters:_}),u=(0,i.A)(c,2),p=u[0],m=u[1],g=eS(p),b=ek(T,g);return[g,j,b,m,h,w]},function(e,t){var n=(0,i.A)(e,3)[2];(t||E)&&N&&(0,c.m6)(n,{mark:v})},function(e){var t=(0,i.A)(e,4),n=t[0],r=(t[1],t[2]),o=t[3];if(N&&n!==eA){var a={mark:v,prepend:!R&&"queue",attachTo:C,priority:w},l="function"==typeof p?p():p;l&&(a.csp={nonce:l});var u=[],d=[];Object.keys(o).forEach(function(e){e.startsWith("@layer")?u.push(e):d.push(e)}),u.forEach(function(e){(0,c.BD)(eS(o[e]),"_layer-".concat(e),(0,s.A)((0,s.A)({},a),{},{prepend:!0}))});var f=(0,c.BD)(n,r,a);f[b]=I.instanceId,f.setAttribute(g,j),d.forEach(function(e){(0,c.BD)(eS(o[e]),"_effect-".concat(e),a)})}}),M=(0,i.A)(P,3),z=M[0],B=M[1],L=M[2];return function(e){var t;return t=O&&!N&&$?u.createElement("style",(0,X.A)({},(0,o.A)((0,o.A)({},g,B),v,L),{dangerouslySetInnerHTML:{__html:z}})):u.createElement(e_,null),u.createElement(u.Fragment,null,t,e)}}var ej="cssVar";let eN=function(e,t){var n=e.key,r=e.prefix,o=e.unitless,s=e.ignore,l=e.token,d=e.scope,f=void 0===d?"":d,p=(0,u.useContext)(y),h=p.cache.instanceId,m=p.container,w=l._tokenKey,x=[].concat((0,a.A)(e.path),[n,f,w]);return H(ej,x,function(){var e=z(t(),n,{prefix:r,unitless:o,ignore:s,scope:f}),a=(0,i.A)(e,2),l=a[0],c=a[1],u=ek(x,c);return[l,c,u,n]},function(e){var t=(0,i.A)(e,3)[2];N&&(0,c.m6)(t,{mark:v})},function(e){var t=(0,i.A)(e,3),r=t[1],o=t[2];if(r){var a=(0,c.BD)(r,o,{mark:v,prepend:"queue",attachTo:m,priority:-999});a[b]=h,a.setAttribute(g,n)}})};(0,o.A)((0,o.A)((0,o.A)({},eI,function(e,t,n){var r=(0,i.A)(e,6),o=r[0],a=r[1],s=r[2],l=r[3],c=r[4],u=r[5],d=(n||{}).plain;if(c)return null;var f=o,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return f=P(o,a,s,p,d),l&&Object.keys(l).forEach(function(e){if(!t[e]){t[e]=!0;var n=P(eS(l[e]),a,"_effect-".concat(e),p,d);e.startsWith("@layer")?f=n+f:f+=n}}),[u,s,f]}),V,function(e,t,n){var r=(0,i.A)(e,5),o=r[2],a=r[3],s=r[4],l=(n||{}).plain;if(!a)return null;var c=o._tokenKey,u=P(a,s,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l);return[-999,c,u]}),ej,function(e,t,n){var r=(0,i.A)(e,4),o=r[1],a=r[2],s=r[3],l=(n||{}).plain;if(!o)return null;var c=P(o,s,a,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l);return[-999,a,c]});let eT=function(){function e(t,n){(0,f.A)(this,e),(0,o.A)(this,"name",void 0),(0,o.A)(this,"style",void 0),(0,o.A)(this,"_keyframe",!0),this.name=t,this.style=n}return(0,p.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 eP(e){return e.notSplit=!0,e}eP(["borderTop","borderBottom"]),eP(["borderTop"]),eP(["borderBottom"]),eP(["borderLeft","borderRight"]),eP(["borderLeft"]),eP(["borderRight"])},9909(e,t,n){"use strict";n.d(t,{A:()=>w});var r=n(2664),o=n(6233),i=n(6467),a=n(8827),s=n(2155),l=n(395),c=n.n(l),u=n(7516),d=n(2893),f=n(3779),p=n(1820),h=["icon","className","onClick","style","primaryColor","secondaryColor"],m={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},g=function(e){var t=e.icon,n=e.className,r=e.onClick,o=e.style,i=e.primaryColor,l=e.secondaryColor,c=(0,a.A)(e,h),u=s.useRef(),d=m;if(i&&(d={primaryColor:i,secondaryColor:l||(0,p.Em)(i)}),(0,p.lf)(u),(0,p.$e)((0,p.P3)(t),"icon should be icon definiton, but got ".concat(t)),!(0,p.P3)(t))return null;var g=t;return g&&"function"==typeof g.icon&&(g=(0,f.A)((0,f.A)({},g),{},{icon:g.icon(d.primaryColor,d.secondaryColor)})),(0,p.cM)(g.icon,"svg-".concat(g.name),(0,f.A)((0,f.A)({className:n,onClick:r,style:o,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};function v(e){var t=(0,p.al)(e),n=(0,o.A)(t,2),r=n[0],i=n[1];return g.setTwoToneColors({primaryColor:r,secondaryColor:i})}g.displayName="IconReact",g.getTwoToneColors=function(){return(0,f.A)({},m)},g.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;m.primaryColor=t,m.secondaryColor=n||(0,p.Em)(t),m.calculated=!!n};var b=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];v(u.z1.primary);var y=s.forwardRef(function(e,t){var n=e.className,l=e.icon,u=e.spin,f=e.rotate,h=e.tabIndex,m=e.onClick,v=e.twoToneColor,y=(0,a.A)(e,b),w=s.useContext(d.A),x=w.prefixCls,A=void 0===x?"anticon":x,E=w.rootClassName,$=c()(E,A,(0,i.A)((0,i.A)({},"".concat(A,"-").concat(l.name),!!l.name),"".concat(A,"-spin"),!!u||"loading"===l.name),n),S=h;void 0===S&&m&&(S=-1);var C=(0,p.al)(v),O=(0,o.A)(C,2),k=O[0],_=O[1];return s.createElement("span",(0,r.A)({role:"img","aria-label":l.name},y,{ref:t,tabIndex:S,onClick:m,className:$}),s.createElement(g,{icon:l,primaryColor:k,secondaryColor:_,style:f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0}))});y.displayName="AntdIcon",y.getTwoToneColor=function(){var e=g.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},y.setTwoToneColor=v;let w=y},2893(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(2155).createContext)({})},9877(e,t,n){"use strict";n.d(t,{A:()=>m});var r=n(2664),o=n(3779),i=n(6467),a=n(8827),s=n(2155),l=n(395),c=n.n(l),u=n(7233),d=n(2893),f=n(1820),p=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],h=s.forwardRef(function(e,t){var n=e.className,l=e.component,h=e.viewBox,m=e.spin,g=e.rotate,v=e.tabIndex,b=e.onClick,y=e.children,w=(0,a.A)(e,p),x=s.useRef(),A=(0,u.xK)(x,t);(0,f.$e)(!!(l||y),"Should have `component` prop or `children`."),(0,f.lf)(x);var E=s.useContext(d.A),$=E.prefixCls,S=void 0===$?"anticon":$,C=E.rootClassName,O=c()(C,S,(0,i.A)({},"".concat(S,"-spin"),!!m&&!!l),n),k=c()((0,i.A)({},"".concat(S,"-spin"),!!m)),_=(0,o.A)((0,o.A)({},f.yf),{},{className:k,style:g?{msTransform:"rotate(".concat(g,"deg)"),transform:"rotate(".concat(g,"deg)")}:void 0,viewBox:h});h||delete _.viewBox;var I=v;return void 0===I&&b&&(I=-1),s.createElement("span",(0,r.A)({role:"img"},w,{ref:A,tabIndex:I,onClick:b,className:O}),l?s.createElement(l,_,y):y?((0,f.$e)(!!h||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,r.A)({},_,{viewBox:h}),y)):null)});h.displayName="AntdIcon";let m=h},3147(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},90(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},3896(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"border",theme:"outlined"};var a=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},2297(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},7048(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},9783(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},4707(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{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"},a=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},1090(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},7544(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},4985(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},4544(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{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"},a=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},1631(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},7062(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},8578(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};var a=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},4291(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},3616(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{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"},a=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},5862(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},7615(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},4177(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},7252(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},1352(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},5766(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},9870(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},2946(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},3776(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},6130(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},6766(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},955(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},6541(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},2817(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},8460(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{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"},a=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},8594(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},2107(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},7294(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},1820(e,t,n){"use strict";n.d(t,{$e:()=>d,Em:()=>h,P3:()=>f,al:()=>m,cM:()=>function e(t,n,o){return o?c.createElement(t.tag,(0,r.A)((0,r.A)({key:n},p(t.attrs)),o),(t.children||[]).map(function(r,o){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))})):c.createElement(t.tag,(0,r.A)({key:n},p(t.attrs)),(t.children||[]).map(function(r,o){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))}))},lf:()=>v,yf:()=>g});var r=n(3779),o=n(2716),i=n(7516),a=n(8451),s=n(1843),l=n(6216),c=n(2155),u=n(2893);function d(e,t){(0,l.Ay)(e,"[@ant-design/icons] ".concat(t))}function f(e){return"object"===(0,o.A)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,o.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,n){var r=e[n];return"class"===n?(t.className=r,delete t.class):(delete t[n],t[n.replace(/-(.)/g,function(e,t){return t.toUpperCase()})]=r),t},{})}function h(e){return(0,i.cM)(e)[0]}function m(e){return e?Array.isArray(e)?e:[e]:[]}var g={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},v=function(e){var t=(0,c.useContext)(u.A),n=t.csp,r=t.prefixCls,o="\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";r&&(o=o.replace(/anticon/g,r)),(0,c.useEffect)(function(){var t=e.current,r=(0,s.j)(t);(0,a.BD)(o,"@ant-design-icons",{prepend:!0,csp:n,attachTo:r})},[])}},8956(e,t,n){"use strict";n.d(t,{H:()=>d,K6:()=>i,Me:()=>c,Ob:()=>u,YL:()=>s,_:()=>o,g8:()=>p,n6:()=>f,oS:()=>h,wE:()=>l});var r=n(24);function o(e,t,n){return{r:255*(0,r.Cg)(e,255),g:255*(0,r.Cg)(t,255),b:255*(0,r.Cg)(n,255)}}function i(e,t,n){e=(0,r.Cg)(e,255);var o=Math.max(e,t=(0,r.Cg)(t,255),n=(0,r.Cg)(n,255)),i=Math.min(e,t,n),a=0,s=0,l=(o+i)/2;if(o===i)s=0,a=0;else{var c=o-i;switch(s=l>.5?c/(2-o-i):c/(o+i),o){case e:a=(t-n)/c+6*(t<n);break;case t:a=(n-e)/c+2;break;case n:a=(e-t)/c+4}a/=6}return{h:a,s:s,l:l}}function a(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function s(e,t,n){if(e=(0,r.Cg)(e,360),t=(0,r.Cg)(t,100),n=(0,r.Cg)(n,100),0===t)i=n,s=n,o=n;else{var o,i,s,l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;o=a(c,l,e+1/3),i=a(c,l,e),s=a(c,l,e-1/3)}return{r:255*o,g:255*i,b:255*s}}function l(e,t,n){e=(0,r.Cg)(e,255);var o=Math.max(e,t=(0,r.Cg)(t,255),n=(0,r.Cg)(n,255)),i=Math.min(e,t,n),a=0,s=o-i;if(o===i)a=0;else{switch(o){case e:a=(t-n)/s+6*(t<n);break;case t:a=(n-e)/s+2;break;case n:a=(e-t)/s+4}a/=6}return{h:a,s:0===o?0:s/o,v:o}}function c(e,t,n){e=6*(0,r.Cg)(e,360),t=(0,r.Cg)(t,100),n=(0,r.Cg)(n,100);var o=Math.floor(e),i=e-o,a=n*(1-t),s=n*(1-i*t),l=n*(1-(1-i)*t),c=o%6;return{r:255*[n,s,a,a,l,n][c],g:255*[l,n,n,s,a,a][c],b:255*[a,a,l,n,n,s][c]}}function u(e,t,n,o){var i=[(0,r.wl)(Math.round(e).toString(16)),(0,r.wl)(Math.round(t).toString(16)),(0,r.wl)(Math.round(n).toString(16))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function d(e,t,n,o,i){var a=[(0,r.wl)(Math.round(e).toString(16)),(0,r.wl)(Math.round(t).toString(16)),(0,r.wl)(Math.round(n).toString(16)),(0,r.wl)(Math.round(255*parseFloat(o)).toString(16))];return i&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function f(e){return p(e)/255}function p(e){return parseInt(e,16)}function h(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}},718(e,t,n){"use strict";n.d(t,{D:()=>r});var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},7358(e,t,n){"use strict";n.d(t,{RO:()=>a});var r=n(8956),o=n(718),i=n(24);function a(e){var t={r:0,g:0,b:0},n=1,a=null,s=null,l=null,c=!1,f=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(o.D[e])e=o.D[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=u.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=u.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=u.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=u.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=u.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=u.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=u.hex8.exec(e))?{r:(0,r.g8)(n[1]),g:(0,r.g8)(n[2]),b:(0,r.g8)(n[3]),a:(0,r.n6)(n[4]),format:t?"name":"hex8"}:(n=u.hex6.exec(e))?{r:(0,r.g8)(n[1]),g:(0,r.g8)(n[2]),b:(0,r.g8)(n[3]),format:t?"name":"hex"}:(n=u.hex4.exec(e))?{r:(0,r.g8)(n[1]+n[1]),g:(0,r.g8)(n[2]+n[2]),b:(0,r.g8)(n[3]+n[3]),a:(0,r.n6)(n[4]+n[4]),format:t?"name":"hex8"}:!!(n=u.hex3.exec(e))&&{r:(0,r.g8)(n[1]+n[1]),g:(0,r.g8)(n[2]+n[2]),b:(0,r.g8)(n[3]+n[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&(d(e.r)&&d(e.g)&&d(e.b)?(t=(0,r._)(e.r,e.g,e.b),c=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):d(e.h)&&d(e.s)&&d(e.v)?(a=(0,i.Px)(e.s),s=(0,i.Px)(e.v),t=(0,r.Me)(e.h,a,s),c=!0,f="hsv"):d(e.h)&&d(e.s)&&d(e.l)&&(a=(0,i.Px)(e.s),l=(0,i.Px)(e.l),t=(0,r.YL)(e.h,a,l),c=!0,f="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=(0,i.TV)(n),{ok:c,format:e.format||f,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var s="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),l="[\\s|\\(]+(".concat(s,")[,|\\s]+(").concat(s,")[,|\\s]+(").concat(s,")\\s*\\)?"),c="[\\s|\\(]+(".concat(s,")[,|\\s]+(").concat(s,")[,|\\s]+(").concat(s,")[,|\\s]+(").concat(s,")\\s*\\)?"),u={CSS_UNIT:new RegExp(s),rgb:RegExp("rgb"+l),rgba:RegExp("rgba"+c),hsl:RegExp("hsl"+l),hsla:RegExp("hsla"+c),hsv:RegExp("hsv"+l),hsva:RegExp("hsva"+c),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function d(e){return!!u.CSS_UNIT.exec(String(e))}},2006(e,t,n){"use strict";n.d(t,{q:()=>s});var r=n(8956),o=n(718),i=n(7358),a=n(24),s=function(){function e(t,n){if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=(0,r.oS)(t)),this.originalInput=t;var o,a=(0,i.RO)(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=null!=(o=n.format)?o:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return 128>this.getBrightness()},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return .2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=(0,a.TV)(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=(0,r.wE)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=(0,r.wE)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=(0,r.K6)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=(0,r.K6)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),(0,r.Ob)(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),(0,r.H)(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*(0,a.Cg)(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*(0,a.Cg)(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+(0,r.Ob)(this.r,this.g,this.b,!1),t=0,n=Object.entries(o.D);t<n.length;t++){var i=n[t],a=i[0];if(e===i[1])return a}return!1},e.prototype.toString=function(e){var t=!!e;e=null!=e?e:this.format;var n=!1,r=this.a<1&&this.a>=0;return!t&&r&&(e.startsWith("hex")||"name"===e)?"name"===e&&0===this.a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),("hex"===e||"hex6"===e)&&(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=(0,a.J$)(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-(t/100*255)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-(t/100*255)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-(t/100*255)))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=(0,a.J$)(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=(0,a.J$)(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=(0,a.J$)(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}()},24(e,t,n){"use strict";function r(e,t){"string"==typeof(n=e)&&-1!==n.indexOf(".")&&1===parseFloat(n)&&(e="100%");var n,r,o="string"==typeof(r=e)&&-1!==r.indexOf("%");return(e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),o&&(e=parseInt(String(e*t),10)/100),1e-6>Math.abs(e-t))?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function o(e){return Math.min(1,Math.max(0,e))}function i(e){return(isNaN(e=parseFloat(e))||e<0||e>1)&&(e=1),e}function a(e){return e<=1?"".concat(100*Number(e),"%"):e}function s(e){return 1===e.length?"0"+e:String(e)}n.d(t,{Cg:()=>r,J$:()=>o,Px:()=>a,TV:()=>i,wl:()=>s})},7138(e,t,n){"use strict";n.d(t,{A:()=>g});var r=n(6233),o=n(2155),i=n(316),a=n(9352);n(6216);var s=n(7233),l=o.createContext(null),c=n(8128),u=n(8367),d=[],f=n(8451),p="rc-util-locker-".concat(Date.now()),h=0,m=function(e){return!1!==e&&((0,a.A)()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)};let g=o.forwardRef(function(e,t){var n,g,v,b=e.open,y=e.autoLock,w=e.getContainer,x=(e.debug,e.autoDestroy),A=void 0===x||x,E=e.children,$=o.useState(b),S=(0,r.A)($,2),C=S[0],O=S[1],k=C||b;o.useEffect(function(){(A||b)&&O(b)},[b,A]);var _=o.useState(function(){return m(w)}),I=(0,r.A)(_,2),R=I[0],j=I[1];o.useEffect(function(){var e=m(w);j(null!=e?e:null)});var N=function(e,t){var n=o.useState(function(){return(0,a.A)()?document.createElement("div"):null}),i=(0,r.A)(n,1)[0],s=o.useRef(!1),f=o.useContext(l),p=o.useState(d),h=(0,r.A)(p,2),m=h[0],g=h[1],v=f||(s.current?void 0:function(e){g(function(t){return[e].concat((0,c.A)(t))})});function b(){i.parentElement||document.body.appendChild(i),s.current=!0}function y(){var e;null==(e=i.parentElement)||e.removeChild(i),s.current=!1}return(0,u.A)(function(){return e?f?f(b):b():y(),y},[e]),(0,u.A)(function(){m.length&&(m.forEach(function(e){return e()}),g(d))},[m]),[i,v]}(k&&!R,0),T=(0,r.A)(N,2),P=T[0],M=T[1],z=null!=R?R:P;n=!!(y&&b&&(0,a.A)()&&(z===P||z===document.body)),g=o.useState(function(){return h+=1,"".concat(p,"_").concat(h)}),v=(0,r.A)(g,1)[0],(0,u.A)(function(){if(n){var e,t=(e=document.body,"undefined"==typeof document||!e||!(e instanceof Element)?{width:0,height:0}:function(e){var t,n,r="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),o=document.createElement("div");o.id=r;var i=o.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.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,";"):"",d=c?"height: ".concat(s.height,";"):"";(0,f.BD)("\n#".concat(r,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),r)}catch(e){console.error(e),t=l,n=c}}document.body.appendChild(o);var p=e&&t&&!isNaN(t)?t:o.offsetWidth-o.clientWidth,h=e&&n&&!isNaN(n)?n:o.offsetHeight-o.clientHeight;return document.body.removeChild(o),(0,f.m6)(r),{width:p,height:h}}(e)).width,r=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,f.BD)("\nhtml body {\n overflow-y: hidden;\n ".concat(r?"width: calc(100% - ".concat(t,"px);"):"","\n}"),v)}else(0,f.m6)(v);return function(){(0,f.m6)(v)}},[n,v]);var B=null;E&&(0,s.f3)(E)&&t&&(B=E.ref);var L=(0,s.xK)(B,t);if(!k||!(0,a.A)()||void 0===R)return null;var F=!1===z,D=E;return t&&(D=o.cloneElement(E,{ref:L})),o.createElement(l.Provider,{value:M},F?D:(0,i.createPortal)(D,z))})},6099(e,t,n){"use strict";n.d(t,{A:()=>D});var r=n(3779),o=n(6233),i=n(8827),a=n(7138),s=n(395),l=n.n(s),c=n(5925),u=n(2634),d=n(1843),f=n(1186),p=n(4121),h=n(8367),m=n(4080),g=n(2155),v=n(2664),b=n(7425),y=n(7233);function w(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,s=i.content,c=o.x,u=o.y,d=g.useRef();if(!n||!n.points)return null;var f={position:"absolute"};if(!1!==n.autoArrow){var p=n.points[0],h=n.points[1],m=p[0],v=p[1],b=h[0],y=h[1];m!==b&&["t","b"].includes(m)?"t"===m?f.top=0:f.bottom=0:f.top=void 0===u?0:u,v!==y&&["l","r"].includes(v)?"l"===v?f.left=0:f.right=0:f.left=void 0===c?0:c}return g.createElement("div",{ref:d,className:l()("".concat(t,"-arrow"),a),style:f},s)}function x(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?g.createElement(b.Ay,(0,v.A)({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(e){var n=e.className;return g.createElement("div",{style:{zIndex:r},className:l()("".concat(t,"-mask"),n)})}):null}var A=g.memo(function(e){return e.children},function(e,t){return t.cache}),E=g.forwardRef(function(e,t){var n=e.popup,i=e.className,a=e.prefixCls,s=e.style,u=e.target,d=e.onVisibleChanged,f=e.open,p=e.keepDom,m=e.fresh,E=e.onClick,$=e.mask,S=e.arrow,C=e.arrowPos,O=e.align,k=e.motion,_=e.maskMotion,I=e.forceRender,R=e.getPopupContainer,j=e.autoDestroy,N=e.portal,T=e.zIndex,P=e.onMouseEnter,M=e.onMouseLeave,z=e.onPointerEnter,B=e.ready,L=e.offsetX,F=e.offsetY,D=e.offsetR,H=e.offsetB,W=e.onAlign,U=e.onPrepare,q=e.stretch,V=e.targetWidth,G=e.targetHeight,X="function"==typeof n?n():n,K=f||p,Y=(null==R?void 0:R.length)>0,Z=g.useState(!R||!Y),Q=(0,o.A)(Z,2),J=Q[0],ee=Q[1];if((0,h.A)(function(){!J&&Y&&u&&ee(!0)},[J,Y,u]),!J)return null;var et="auto",en={left:"-1000vw",top:"-1000vh",right:et,bottom:et};if(B||!f){var er,eo=O.points,ei=O.dynamicInset||(null==(er=O._experimental)?void 0:er.dynamicInset),ea=ei&&"r"===eo[0][1],es=ei&&"b"===eo[0][0];ea?(en.right=D,en.left=et):(en.left=L,en.right=et),es?(en.bottom=H,en.top=et):(en.top=F,en.bottom=et)}var el={};return q&&(q.includes("height")&&G?el.height=G:q.includes("minHeight")&&G&&(el.minHeight=G),q.includes("width")&&V?el.width=V:q.includes("minWidth")&&V&&(el.minWidth=V)),f||(el.pointerEvents="none"),g.createElement(N,{open:I||K,getContainer:R&&function(){return R(u)},autoDestroy:j},g.createElement(x,{prefixCls:a,open:f,zIndex:T,mask:$,motion:_}),g.createElement(c.A,{onResize:W,disabled:!f},function(e){return g.createElement(b.Ay,(0,v.A)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:I,leavedClassName:"".concat(a,"-hidden")},k,{onAppearPrepare:U,onEnterPrepare:U,visible:f,onVisibleChanged:function(e){var t;null==k||null==(t=k.onVisibleChanged)||t.call(k,e),d(e)}}),function(n,o){var c=n.className,u=n.style,d=l()(a,c,i);return g.createElement("div",{ref:(0,y.K4)(e,t,o),className:d,style:(0,r.A)((0,r.A)((0,r.A)((0,r.A)({"--arrow-x":"".concat(C.x||0,"px"),"--arrow-y":"".concat(C.y||0,"px")},en),el),u),{},{boxSizing:"border-box",zIndex:T},s),onMouseEnter:P,onMouseLeave:M,onPointerEnter:z,onClick:E},S&&g.createElement(w,{prefixCls:a,arrow:S,arrowPos:C,align:O}),g.createElement(A,{cache:!f&&!m},X))})}))}),$=g.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=(0,y.f3)(n),i=g.useCallback(function(e){(0,y.Xf)(t,r?r(e):e)},[r]),a=(0,y.xK)(i,n.ref);return o?g.cloneElement(n,{ref:a}):n}),S=g.createContext(null);function C(e){return e?Array.isArray(e)?e:[e]:[]}var O=n(9677);function k(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function _(e){return e.ownerDocument.defaultView}function I(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=_(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some(function(e){return r.includes(e)})&&t.push(n),n=n.parentElement}return t}function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function j(e){return R(parseFloat(e),0)}function N(e,t){var n=(0,r.A)({},e);return(t||[]).forEach(function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=_(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,l=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,h=j(i),m=j(a),g=j(s),v=j(l),b=R(Math.round(c.width/f*1e3)/1e3),y=R(Math.round(c.height/u*1e3)/1e3),w=h*y,x=g*b,A=0,E=0;if("clip"===r){var $=j(o);A=$*b,E=$*y}var S=c.x+x-A,C=c.y+w-E,O=S+c.width+2*A-x-v*b-(f-p-g-v)*b,k=C+c.height+2*E-w-m*y-(u-d-h-m)*y;n.left=Math.max(n.left,S),n.top=Math.max(n.top,C),n.right=Math.min(n.right,O),n.bottom=Math.min(n.bottom,k)}}),n}function T(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function P(e,t){var n=(0,o.A)(t||[],2),r=n[0],i=n[1];return[T(e.width,r),T(e.height,i)]}function M(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function z(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function B(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(e,r){return r===t?n[e]||"c":e}).join("")}var L=n(8128);n(6216);var F=["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 D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.A;return g.forwardRef(function(t,n){var a,s,v,b,y,w,x,A,j,T,D,H,W,U,q,V,G=t.prefixCls,X=void 0===G?"rc-trigger-popup":G,K=t.children,Y=t.action,Z=t.showAction,Q=t.hideAction,J=t.popupVisible,ee=t.defaultPopupVisible,et=t.onPopupVisibleChange,en=t.afterPopupVisibleChange,er=t.mouseEnterDelay,eo=t.mouseLeaveDelay,ei=void 0===eo?.1:eo,ea=t.focusDelay,es=t.blurDelay,el=t.mask,ec=t.maskClosable,eu=t.getPopupContainer,ed=t.forceRender,ef=t.autoDestroy,ep=t.destroyPopupOnHide,eh=t.popup,em=t.popupClassName,eg=t.popupStyle,ev=t.popupPlacement,eb=t.builtinPlacements,ey=void 0===eb?{}:eb,ew=t.popupAlign,ex=t.zIndex,eA=t.stretch,eE=t.getPopupClassNameFromAlign,e$=t.fresh,eS=t.alignPoint,eC=t.onPopupClick,eO=t.onPopupAlign,ek=t.arrow,e_=t.popupMotion,eI=t.maskMotion,eR=t.popupTransitionName,ej=t.popupAnimation,eN=t.maskTransitionName,eT=t.maskAnimation,eP=t.className,eM=t.getTriggerDOMNode,ez=(0,i.A)(t,F),eB=g.useState(!1),eL=(0,o.A)(eB,2),eF=eL[0],eD=eL[1];(0,h.A)(function(){eD((0,m.A)())},[]);var eH=g.useRef({}),eW=g.useContext(S),eU=g.useMemo(function(){return{registerSubPopup:function(e,t){eH.current[e]=t,null==eW||eW.registerSubPopup(e,t)}}},[eW]),eq=(0,p.A)(),eV=g.useState(null),eG=(0,o.A)(eV,2),eX=eG[0],eK=eG[1],eY=g.useRef(null),eZ=(0,f.A)(function(e){eY.current=e,(0,u.fk)(e)&&eX!==e&&eK(e),null==eW||eW.registerSubPopup(eq,e)}),eQ=g.useState(null),eJ=(0,o.A)(eQ,2),e0=eJ[0],e1=eJ[1],e2=g.useRef(null),e5=(0,f.A)(function(e){(0,u.fk)(e)&&e0!==e&&(e1(e),e2.current=e)}),e6=g.Children.only(K),e4=(null==e6?void 0:e6.props)||{},e3={},e8=(0,f.A)(function(e){var t,n;return(null==e0?void 0:e0.contains(e))||(null==(t=(0,d.j)(e0))?void 0:t.host)===e||e===e0||(null==eX?void 0:eX.contains(e))||(null==(n=(0,d.j)(eX))?void 0:n.host)===e||e===eX||Object.values(eH.current).some(function(t){return(null==t?void 0:t.contains(e))||e===t})}),e9=k(X,e_,ej,eR),e7=k(X,eI,eT,eN),te=g.useState(ee||!1),tt=(0,o.A)(te,2),tn=tt[0],tr=tt[1],to=null!=J?J:tn,ti=(0,f.A)(function(e){void 0===J&&tr(e)});(0,h.A)(function(){tr(J||!1)},[J]);var ta=g.useRef(to);ta.current=to;var ts=g.useRef([]);ts.current=[];var tl=(0,f.A)(function(e){var t;ti(e),(null!=(t=ts.current[ts.current.length-1])?t:to)!==e&&(ts.current.push(e),null==et||et(e))}),tc=g.useRef(),tu=function(){clearTimeout(tc.current)},td=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;tu(),0===t?tl(e):tc.current=setTimeout(function(){tl(e)},1e3*t)};g.useEffect(function(){return tu},[]);var tf=g.useState(!1),tp=(0,o.A)(tf,2),th=tp[0],tm=tp[1];(0,h.A)(function(e){(!e||to)&&tm(!0)},[to]);var tg=g.useState(null),tv=(0,o.A)(tg,2),tb=tv[0],ty=tv[1],tw=g.useState(null),tx=(0,o.A)(tw,2),tA=tx[0],tE=tx[1],t$=function(e){tE([e.clientX,e.clientY])},tS=(a=eS&&null!==tA?tA:e0,s=g.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:ey[ev]||{}}),b=(v=(0,o.A)(s,2))[0],y=v[1],w=g.useRef(0),x=g.useMemo(function(){return eX?I(eX):[]},[eX]),A=g.useRef({}),to||(A.current={}),j=(0,f.A)(function(){if(eX&&a&&to){var e=eX.ownerDocument,t=_(eX).getComputedStyle(eX),n=t.width,i=t.height,s=t.position,l=eX.style.left,c=eX.style.top,d=eX.style.right,f=eX.style.bottom,p=eX.style.overflow,h=(0,r.A)((0,r.A)({},ey[ev]),ew),m=e.createElement("div");if(null==(E=eX.parentElement)||E.appendChild(m),m.style.left="".concat(eX.offsetLeft,"px"),m.style.top="".concat(eX.offsetTop,"px"),m.style.position=s,m.style.height="".concat(eX.offsetHeight,"px"),m.style.width="".concat(eX.offsetWidth,"px"),eX.style.left="0",eX.style.top="0",eX.style.right="auto",eX.style.bottom="auto",eX.style.overflow="hidden",Array.isArray(a))k={x:a[0],y:a[1],width:0,height:0};else{var g,v,b,w,E,$,S,C,k,I,j,T=a.getBoundingClientRect();T.x=null!=(I=T.x)?I:T.left,T.y=null!=(j=T.y)?j:T.top,k={x:T.x,y:T.y,width:T.width,height:T.height}}var L=eX.getBoundingClientRect();L.x=null!=($=L.x)?$:L.left,L.y=null!=(S=L.y)?S:L.top;var F=e.documentElement,D=F.clientWidth,H=F.clientHeight,W=F.scrollWidth,U=F.scrollHeight,q=F.scrollTop,V=F.scrollLeft,G=L.height,X=L.width,K=k.height,Y=k.width,Z=h.htmlRegion,Q="visible",J="visibleFirst";"scroll"!==Z&&Z!==J&&(Z=Q);var ee=Z===J,et=N({left:-V,top:-q,right:W-V,bottom:U-q},x),en=N({left:0,top:0,right:D,bottom:H},x),er=Z===Q?en:et,eo=ee?en:er;eX.style.left="auto",eX.style.top="auto",eX.style.right="0",eX.style.bottom="0";var ei=eX.getBoundingClientRect();eX.style.left=l,eX.style.top=c,eX.style.right=d,eX.style.bottom=f,eX.style.overflow=p,null==(C=eX.parentElement)||C.removeChild(m);var ea=R(Math.round(X/parseFloat(n)*1e3)/1e3),es=R(Math.round(G/parseFloat(i)*1e3)/1e3);if(!(0===ea||0===es||(0,u.fk)(a)&&!(0,O.A)(a))){var el=h.offset,ec=h.targetOffset,eu=P(L,el),ed=(0,o.A)(eu,2),ef=ed[0],ep=ed[1],eh=P(k,ec),em=(0,o.A)(eh,2),eg=em[0],eb=em[1];k.x-=eg,k.y-=eb;var ex=h.points||[],eA=(0,o.A)(ex,2),eE=eA[0],e$=M(eA[1]),eS=M(eE),eC=z(k,e$),ek=z(L,eS),e_=(0,r.A)({},h),eI=eC.x-ek.x+ef,eR=eC.y-ek.y+ep,ej=tu(eI,eR),eN=tu(eI,eR,en),eT=z(k,["t","l"]),eP=z(L,["t","l"]),eM=z(k,["b","r"]),ez=z(L,["b","r"]),eB=h.overflow||{},eL=eB.adjustX,eF=eB.adjustY,eD=eB.shiftX,eH=eB.shiftY,eW=function(e){return"boolean"==typeof e?e:e>=0};td();var eU=eW(eF),eq=eS[0]===e$[0];if(eU&&"t"===eS[0]&&(v>eo.bottom||A.current.bt)){var eV=eR;eq?eV-=G-K:eV=eT.y-ez.y-ep;var eG=tu(eI,eV),eK=tu(eI,eV,en);eG>ej||eG===ej&&(!ee||eK>=eN)?(A.current.bt=!0,eR=eV,ep=-ep,e_.points=[B(eS,0),B(e$,0)]):A.current.bt=!1}if(eU&&"b"===eS[0]&&(g<eo.top||A.current.tb)){var eY=eR;eq?eY+=G-K:eY=eM.y-eP.y-ep;var eZ=tu(eI,eY),eQ=tu(eI,eY,en);eZ>ej||eZ===ej&&(!ee||eQ>=eN)?(A.current.tb=!0,eR=eY,ep=-ep,e_.points=[B(eS,0),B(e$,0)]):A.current.tb=!1}var eJ=eW(eL),e0=eS[1]===e$[1];if(eJ&&"l"===eS[1]&&(w>eo.right||A.current.rl)){var e1=eI;e0?e1-=X-Y:e1=eT.x-ez.x-ef;var e2=tu(e1,eR),e5=tu(e1,eR,en);e2>ej||e2===ej&&(!ee||e5>=eN)?(A.current.rl=!0,eI=e1,ef=-ef,e_.points=[B(eS,1),B(e$,1)]):A.current.rl=!1}if(eJ&&"r"===eS[1]&&(b<eo.left||A.current.lr)){var e6=eI;e0?e6+=X-Y:e6=eM.x-eP.x-ef;var e4=tu(e6,eR),e3=tu(e6,eR,en);e4>ej||e4===ej&&(!ee||e3>=eN)?(A.current.lr=!0,eI=e6,ef=-ef,e_.points=[B(eS,1),B(e$,1)]):A.current.lr=!1}td();var e8=!0===eD?0:eD;"number"==typeof e8&&(b<en.left&&(eI-=b-en.left-ef,k.x+Y<en.left+e8&&(eI+=k.x-en.left+Y-e8)),w>en.right&&(eI-=w-en.right-ef,k.x>en.right-e8&&(eI+=k.x-en.right+e8)));var e9=!0===eH?0:eH;"number"==typeof e9&&(g<en.top&&(eR-=g-en.top-ep,k.y+K<en.top+e9&&(eR+=k.y-en.top+K-e9)),v>en.bottom&&(eR-=v-en.bottom-ep,k.y>en.bottom-e9&&(eR+=k.y-en.bottom+e9)));var e7=L.x+eI,te=L.y+eR,tt=k.x,tn=k.y,tr=Math.max(e7,tt),ti=Math.min(e7+X,tt+Y),ta=Math.max(te,tn),ts=Math.min(te+G,tn+K);null==eO||eO(eX,e_);var tl=ei.right-L.x-(eI+L.width),tc=ei.bottom-L.y-(eR+L.height);1===ea&&(eI=Math.round(eI),tl=Math.round(tl)),1===es&&(eR=Math.round(eR),tc=Math.round(tc)),y({ready:!0,offsetX:eI/ea,offsetY:eR/es,offsetR:tl/ea,offsetB:tc/es,arrowX:((tr+ti)/2-e7)/ea,arrowY:((ta+ts)/2-te)/es,scaleX:ea,scaleY:es,align:e_})}function tu(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:er,r=L.x+e,o=L.y+t,i=Math.max(r,n.left),a=Math.max(o,n.top);return Math.max(0,(Math.min(r+X,n.right)-i)*(Math.min(o+G,n.bottom)-a))}function td(){v=(g=L.y+eR)+G,w=(b=L.x+eI)+X}}}),T=function(){y(function(e){return(0,r.A)((0,r.A)({},e),{},{ready:!1})})},(0,h.A)(T,[ev]),(0,h.A)(function(){to||T()},[to]),[b.ready,b.offsetX,b.offsetY,b.offsetR,b.offsetB,b.arrowX,b.arrowY,b.scaleX,b.scaleY,b.align,function(){w.current+=1;var e=w.current;Promise.resolve().then(function(){w.current===e&&j()})}]),tC=(0,o.A)(tS,11),tO=tC[0],tk=tC[1],t_=tC[2],tI=tC[3],tR=tC[4],tj=tC[5],tN=tC[6],tT=tC[7],tP=tC[8],tM=tC[9],tz=tC[10],tB=(D=void 0===Y?"hover":Y,g.useMemo(function(){var e=C(null!=Z?Z:D),t=C(null!=Q?Q:D),n=new Set(e),r=new Set(t);return eF&&(n.has("hover")&&(n.delete("hover"),n.add("click")),r.has("hover")&&(r.delete("hover"),r.add("click"))),[n,r]},[eF,D,Z,Q])),tL=(0,o.A)(tB,2),tF=tL[0],tD=tL[1],tH=tF.has("click"),tW=tD.has("click")||tD.has("contextMenu"),tU=(0,f.A)(function(){th||tz()});H=function(){ta.current&&eS&&tW&&td(!1)},(0,h.A)(function(){if(to&&e0&&eX){var e=I(e0),t=I(eX),n=_(eX),r=new Set([n].concat((0,L.A)(e),(0,L.A)(t)));function o(){tU(),H()}return r.forEach(function(e){e.addEventListener("scroll",o,{passive:!0})}),n.addEventListener("resize",o,{passive:!0}),tU(),function(){r.forEach(function(e){e.removeEventListener("scroll",o),n.removeEventListener("resize",o)})}}},[to,e0,eX]),(0,h.A)(function(){tU()},[tA,ev]),(0,h.A)(function(){to&&!(null!=ey&&ey[ev])&&tU()},[JSON.stringify(ew)]);var tq=g.useMemo(function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s,l=i[a];if(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}(null==(s=e[l])?void 0:s.points,o,r))return"".concat(t,"-placement-").concat(l)}return""}(ey,X,tM,eS);return l()(e,null==eE?void 0:eE(tM))},[tM,eE,ey,X,eS]);g.useImperativeHandle(n,function(){return{nativeElement:e2.current,popupElement:eY.current,forceAlign:tU}});var tV=g.useState(0),tG=(0,o.A)(tV,2),tX=tG[0],tK=tG[1],tY=g.useState(0),tZ=(0,o.A)(tY,2),tQ=tZ[0],tJ=tZ[1],t0=function(){if(eA&&e0){var e=e0.getBoundingClientRect();tK(e.width),tJ(e.height)}};function t1(e,t,n,r){e3[e]=function(o){var i;null==r||r(o),td(t,n);for(var a=arguments.length,s=Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];null==(i=e4[e])||i.call.apply(i,[e4,o].concat(s))}}(0,h.A)(function(){tb&&(tz(),tb(),ty(null))},[tb]),(tH||tW)&&(e3.onClick=function(e){var t;ta.current&&tW?td(!1):!ta.current&&tH&&(t$(e),td(!0));for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null==(t=e4.onClick)||t.call.apply(t,[e4,e].concat(r))}),W=void 0===ec||ec,(U=g.useRef(to)).current=to,g.useEffect(function(){if(tW&&eX&&(!el||W)){var e=function(e){var t;U.current&&!e8((null==(t=e.composedPath)||null==(t=t.call(e))?void 0:t[0])||e.target)&&td(!1)},t=_(eX);t.addEventListener("mousedown",e,!0),t.addEventListener("contextmenu",e,!0);var n=(0,d.j)(e0);return n&&(n.addEventListener("mousedown",e,!0),n.addEventListener("contextmenu",e,!0)),function(){t.removeEventListener("mousedown",e,!0),t.removeEventListener("contextmenu",e,!0),n&&(n.removeEventListener("mousedown",e,!0),n.removeEventListener("contextmenu",e,!0))}}},[tW,e0,eX,el,W]);var t2=tF.has("hover"),t5=tD.has("hover");t2&&(t1("onMouseEnter",!0,er,function(e){t$(e)}),t1("onPointerEnter",!0,er,function(e){t$(e)}),q=function(e){(to||th)&&null!=eX&&eX.contains(e.target)&&td(!0,er)},eS&&(e3.onMouseMove=function(e){var t;null==(t=e4.onMouseMove)||t.call(e4,e)})),t5&&(t1("onMouseLeave",!1,ei),t1("onPointerLeave",!1,ei),V=function(){td(!1,ei)}),tF.has("focus")&&t1("onFocus",!0,ea),tD.has("focus")&&t1("onBlur",!1,es),tF.has("contextMenu")&&(e3.onContextMenu=function(e){var t;ta.current&&tD.has("contextMenu")?td(!1):(t$(e),td(!0)),e.preventDefault();for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null==(t=e4.onContextMenu)||t.call.apply(t,[e4,e].concat(r))}),eP&&(e3.className=l()(e4.className,eP));var t6=(0,r.A)((0,r.A)({},e4),e3),t4={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(function(e){ez[e]&&(t4[e]=function(){for(var t,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];null==(t=t6[e])||t.call.apply(t,[t6].concat(r)),ez[e].apply(ez,r)})});var t3=g.cloneElement(e6,(0,r.A)((0,r.A)({},t6),t4)),t8=ek?(0,r.A)({},!0!==ek?ek:{}):null;return g.createElement(g.Fragment,null,g.createElement(c.A,{disabled:!to,ref:e5,onResize:function(){t0(),tU()}},g.createElement($,{getTriggerDOMNode:eM},t3)),g.createElement(S.Provider,{value:eU},g.createElement(E,{portal:e,ref:eZ,prefixCls:X,popup:eh,className:l()(em,tq),style:eg,target:e0,onMouseEnter:q,onMouseLeave:V,onPointerEnter:q,zIndex:ex,open:to,keepDom:th,fresh:e$,onClick:eC,mask:el,motion:e9,maskMotion:e7,onVisibleChanged:function(e){tm(!1),tz(),null==en||en(e)},onPrepare:function(){return new Promise(function(e){t0(),ty(function(){return e})})},forceRender:ed,autoDestroy:ef||ep||!1,getPopupContainer:eu,align:tM,arrow:t8,arrowPos:{x:tj,y:tN},ready:tO,offsetX:tk,offsetY:t_,offsetR:tI,offsetB:tR,onAlign:tU,stretch:eA,targetWidth:tX/tT,targetHeight:tQ/tP})))})}(a.A)},7085(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(2155),o=n(8749),i=n(59);let a=e=>{let{space:t,form:n,children:a}=e;if(null==a)return null;let s=a;return n&&(s=r.createElement(o.XB,{override:!0,status:!0},s)),t&&(s=r.createElement(i.K6,null,s)),s}},2125(e,t,n){"use strict";n.d(t,{A:()=>l,U:()=>s});var r=n(2155),o=n(8127),i=n(2770),a=n(1179);function s(e){return t=>r.createElement(i.Ay,{theme:{token:{motion:!1,zIndexPopupBase:0}}},r.createElement(e,Object.assign({},t)))}let l=(e,t,n,i)=>s(s=>{let{prefixCls:l,style:c}=s,u=r.useRef(null),[d,f]=r.useState(0),[p,h]=r.useState(0),[m,g]=(0,o.A)(!1,{value:s.open}),{getPrefixCls:v}=r.useContext(a.QO),b=v(t||"select",l);r.useEffect(()=>{if(g(!0),"undefined"!=typeof ResizeObserver){let e=new ResizeObserver(e=>{let t=e[0].target;f(t.offsetHeight+8),h(t.offsetWidth)}),t=setInterval(()=>{var r;let o=n?`.${n(b)}`:`.${b}-dropdown`,i=null==(r=u.current)?void 0:r.querySelector(o);i&&(clearInterval(t),e.observe(i))},10);return()=>{clearInterval(t),e.disconnect()}}},[]);let y=Object.assign(Object.assign({},s),{style:Object.assign(Object.assign({},c),{margin:0}),open:m,visible:m,getPopupContainer:()=>u.current});return i&&(y=i(y)),r.createElement("div",{ref:u,style:{paddingBottom:d,position:"relative",minWidth:p}},r.createElement(e,Object.assign({},y)))})},1616(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(2155),o=n(7544);let i=e=>{let t;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?t=e:e&&(t={clearIcon:r.createElement(o.A,null)}),t}},8775(e,t,n){"use strict";n.d(t,{YK:()=>c,jH:()=>a});var r=n(2155),o=n(8381),i=n(6332);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},c=(e,t)=>{let n,[,a]=(0,o.Ay)(),c=r.useContext(i.A),u=e in s;if(void 0!==t)n=[t,t];else{let r=null!=c?c:0;u?r+=(c?0:a.zIndexPopupBase)+s[e]:r+=l[e],n=[void 0===c?t:r,r]}return n}},6079(e,t,n){"use strict";n.d(t,{A:()=>c,b:()=>l});var r=n(1179);let o=()=>({height:0,opacity:0}),i=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,n)=>void 0!==n?n:`${e}-${t}`,c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.yH;return{motionName:`${e}-motion-collapse`,onAppearStart:o,onEnterStart:o,onAppearActive:i,onEnterActive:i,onLeaveStart:a,onLeaveActive:o,onAppearEnd:s,onEnterEnd:s,onLeaveEnd:s,motionDeadline:500}}},6197(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2597);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"]}},i={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"]}},a=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function s(e){let{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:s,offset:l,borderRadius:c,visibleFirst:u}=e,d=t/2,f={};return Object.keys(o).forEach(e=>{let p=Object.assign(Object.assign({},s&&i[e]||o[e]),{offset:[0,0],dynamicInset:!0});switch(f[e]=p,a.has(e)&&(p.autoArrow=!1),e){case"top":case"topLeft":case"topRight":p.offset[1]=-d-l;break;case"bottom":case"bottomLeft":case"bottomRight":p.offset[1]=d+l;break;case"left":case"leftTop":case"leftBottom":p.offset[0]=-d-l;break;case"right":case"rightTop":case"rightBottom":p.offset[0]=d+l}let h=(0,r.Ke)({contentRadius:c,limitVerticalRadius:!0});if(s)switch(e){case"topLeft":case"bottomLeft":p.offset[0]=-h.arrowOffsetHorizontal-d;break;case"topRight":case"bottomRight":p.offset[0]=h.arrowOffsetHorizontal+d;break;case"leftTop":case"rightTop":p.offset[1]=-(2*h.arrowOffsetHorizontal)+d;break;case"leftBottom":case"rightBottom":p.offset[1]=2*h.arrowOffsetHorizontal-d}p.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};let o={};switch(e){case"top":case"bottom":o.shiftX=2*t.arrowOffsetHorizontal+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=2*t.arrowOffsetVertical+n,o.shiftX=!0,o.adjustX=!0}let i=Object.assign(Object.assign({},o),r&&"object"==typeof r?r:{});return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}(e,h,t,n),u&&(p.htmlRegion="visibleFirst")}),f}},7886(e,t,n){"use strict";n.d(t,{Ob:()=>a,fx:()=>i,zv:()=>o});var r=n(2155);function o(e){return e&&r.isValidElement(e)&&e.type===r.Fragment}let i=(e,t,n)=>r.isValidElement(e)?r.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t;function a(e,t){return i(e,e,t)}},9461(e,t,n){"use strict";n.d(t,{Ay:()=>a,ye:()=>i});var r=n(2155),o=n(8381);let i=["xxl","xl","lg","md","sm","xs"];function a(){let e,[,t]=(0,o.Ay)(),n=((e=[].concat(i).reverse()).forEach((n,r)=>{let o=n.toUpperCase(),i=`screen${o}Min`,a=`screen${o}`;if(!(t[i]<=t[a]))throw Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(r<e.length-1){let n=`screen${o}Max`;if(!(t[a]<=t[n]))throw Error(`${a}<=${n} fails : !(${t[a]}<=${t[n]})`);let i=e[r+1].toUpperCase(),s=`screen${i}Min`;if(!(t[n]<=t[s]))throw Error(`${n}<=${s} fails : !(${t[n]}<=${t[s]})`)}}),{xs:`(max-width: ${t.screenXSMax}px)`,sm:`(min-width: ${t.screenSM}px)`,md:`(min-width: ${t.screenMD}px)`,lg:`(min-width: ${t.screenLG}px)`,xl:`(min-width: ${t.screenXL}px)`,xxl:`(min-width: ${t.screenXXL}px)`});return r.useMemo(()=>{let e=new Map,t=-1,r={};return{matchHandlers:{},dispatch:t=>(r=t,e.forEach(e=>e(r)),e.size>=1),subscribe(n){return e.size||this.register(),t+=1,e.set(t,n),n(r),t},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(n).forEach(e=>{let t=n[e],r=this.matchHandlers[t];null==r||r.mql.removeListener(null==r?void 0:r.listener)}),e.clear()},register(){Object.keys(n).forEach(e=>{let t=n[e],o=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},r),{[e]:n}))},i=window.matchMedia(t);i.addListener(o),this.matchHandlers[t]={mql:i,listener:o},o(i)})},responsiveMap:n}},[t])}},3658(e,t,n){"use strict";n.d(t,{L:()=>i,v:()=>a});var r=n(395),o=n.n(r);function i(e,t,n){return o()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}let a=(e,t)=>t||e},1105(e,t,n){"use strict";n.d(t,{_n:()=>i,rJ:()=>a});var r=n(2155);function o(){}n(6216);let i=r.createContext({}),a=()=>{let e=()=>{};return e.deprecated=o,e}},7181(e,t,n){"use strict";n.d(t,{A:()=>w});var r=n(2155),o=n(395),i=n.n(o),a=n(9677),s=n(7233),l=n(1179),c=n(7886);let u=(0,n(6850).Or)("Wave",e=>[(e=>{let{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,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}`}}}}})(e)]);var d=n(1186),f=n(4597),p=n(8381),h=n(6796),m=n(7425),g=n(2310);function v(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}function b(e){return Number.isNaN(e)?0:e}let y=e=>{let{className:t,target:n,component:o}=e,a=r.useRef(null),[l,c]=r.useState(null),[u,d]=r.useState([]),[p,y]=r.useState(0),[w,x]=r.useState(0),[A,E]=r.useState(0),[$,S]=r.useState(0),[C,O]=r.useState(!1),k={left:p,top:w,width:A,height:$,borderRadius:u.map(e=>`${e}px`).join(" ")};function _(){let e=getComputedStyle(n);c(function(e){let{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return v(t)?t:v(n)?n:v(r)?r:null}(n));let t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;y(t?n.offsetLeft:b(-parseFloat(r))),x(t?n.offsetTop:b(-parseFloat(o))),E(n.offsetWidth),S(n.offsetHeight);let{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:s,borderBottomRightRadius:l}=e;d([i,a,l,s].map(e=>b(parseFloat(e))))}if(l&&(k["--wave-color"]=l),r.useEffect(()=>{if(n){let e,t=(0,f.A)(()=>{_(),O(!0)});return"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(_)).observe(n),()=>{f.A.cancel(t),null==e||e.disconnect()}}},[]),!C)return null;let I=("Checkbox"===o||"Radio"===o)&&(null==n?void 0:n.classList.contains(h.D));return r.createElement(m.Ay,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){let e=null==(n=a.current)?void 0:n.parentElement;(0,g.v)(e).then(()=>{null==e||e.remove()})}return!1}},(e,n)=>{let{className:o}=e;return r.createElement("div",{ref:(0,s.K4)(a,n),className:i()(t,o,{"wave-quick":I}),style:k})})},w=e=>{let{children:t,disabled:n,component:o}=e,{getPrefixCls:m}=(0,r.useContext)(l.QO),v=(0,r.useRef)(null),b=m("wave"),[,w]=u(b),x=((e,t,n)=>{let{wave:o}=r.useContext(l.QO),[,i,a]=(0,p.Ay)(),s=(0,d.A)(s=>{let l=e.current;if((null==o?void 0:o.disabled)||!l)return;let c=l.querySelector(`.${h.D}`)||l,{showEffect:u}=o||{};(u||((e,t)=>{var n;let{component:o}=t;if("Checkbox"===o&&!(null==(n=e.querySelector("input"))?void 0:n.checked))return;let i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null==e||e.insertBefore(i,null==e?void 0:e.firstChild),(0,g.X)(r.createElement(y,Object.assign({},t,{target:e})),i)}))(c,{className:t,token:i,component:n,event:s,hashId:a})}),c=r.useRef();return e=>{f.A.cancel(c.current),c.current=(0,f.A)(()=>{s(e)})}})(v,i()(b,w),o);if(r.useEffect(()=>{let e=v.current;if(!e||1!==e.nodeType||n)return;let t=t=>{!(0,a.A)(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||x(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}},[n]),!r.isValidElement(t))return null!=t?t:null;let A=(0,s.f3)(t)?(0,s.K4)(t.ref,v):v;return(0,c.Ob)(t,{ref:A})}},6796(e,t,n){"use strict";n.d(t,{D:()=>o});var r=n(1179);let o=`${r.yH}-wave-target`},6332(e,t,n){"use strict";n.d(t,{A:()=>r});let r=n(2155).createContext(void 0)},6620(e,t,n){"use strict";n.d(t,{A:()=>N});var r=n(2155),o=n(7048),i=n(7544),a=n(4985),s=n(4291),l=n(7252),c=n(395),u=n.n(c),d=n(7425),f=n(5811),p=n(7233),h=n(7886),m=n(1179),g=n(5337),v=n(2869),b=n(6850);let y=(e,t,n,r,o)=>({background:e,border:`${(0,g.zA)(r.lineWidth)} ${r.lineType} ${t}`,[`${o}-icon`]:{color:n}}),w=(0,b.OF)("Alert",e=>[(e=>{let{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:o,fontSize:i,fontSizeLG:a,lineHeight:s,borderRadiusLG:l,motionEaseInOutCirc:c,withDescriptionIconSize:u,colorText:d,colorTextHeading:f,withDescriptionPadding:p,defaultPadding:h}=e;return{[t]:Object.assign(Object.assign({},(0,v.dF)(e)),{position:"relative",display:"flex",alignItems:"center",padding:h,wordWrap:"break-word",borderRadius:l,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:s},"&-message":{color:f},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c},
1
+ /*! For license information please see 830.d18085e3.js.LICENSE.txt */
2
+ (self.webpackChunkandroid_playground=self.webpackChunkandroid_playground||[]).push([["830"],{7516(e,t,n){"use strict";n.d(t,{uy:()=>f,UA:()=>C,bK:()=>g,z1:()=>x,cM:()=>d});var r=n(8956),o=n(7358),i=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function a(e){var t=e.r,n=e.g,o=e.b,i=(0,r.wE)(t,n,o);return{h:360*i.h,s:i.s,v:i.v}}function s(e){var t=e.r,n=e.g,o=e.b;return"#".concat((0,r.Ob)(t,n,o,!1))}function l(e,t,n){var r;return(r=Math.round(e.h)>=60&&240>=Math.round(e.h)?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function c(e,t,n){var r;return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)))}function u(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function d(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=(0,o.RO)(e),d=5;d>0;d-=1){var f=a(r),p=s((0,o.RO)({h:l(f,d,!0),s:c(f,d,!0),v:u(f,d,!0)}));n.push(p)}n.push(s(r));for(var h=1;h<=4;h+=1){var m=a(r),g=s((0,o.RO)({h:l(m,h),s:c(m,h),v:u(m,h)}));n.push(g)}return"dark"===t.theme?i.map(function(e){var r,i,a,l=e.index,c=e.opacity;return s((r=(0,o.RO)(t.backgroundColor||"#141414"),i=(0,o.RO)(n[l]),a=100*c/100,{r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b}))}):n}var f={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"},p=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];p.primary=p[5];var h=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];h.primary=h[5];var m=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];m.primary=m[5];var g=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];g.primary=g[5];var v=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];v.primary=v[5];var b=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];b.primary=b[5];var y=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];y.primary=y[5];var w=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];w.primary=w[5];var x=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];x.primary=x[5];var A=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];A.primary=A[5];var E=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];E.primary=E[5];var $=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];$.primary=$[5];var S=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];S.primary=S[5];var C={red:p,volcano:h,orange:m,gold:g,yellow:v,lime:b,green:y,cyan:w,blue:x,geekblue:A,purple:E,magenta:$,grey:S},O=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];O.primary=O[5];var k=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];k.primary=k[5];var _=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];_.primary=_[5];var I=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];I.primary=I[5];var R=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];R.primary=R[5];var j=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];j.primary=j[5];var N=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];N.primary=N[5];var T=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];T.primary=T[5];var P=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];P.primary=P[5];var M=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];M.primary=M[5];var z=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];z.primary=z[5];var B=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];B.primary=B[5];var L=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];L.primary=L[5]},8491(e,t,n){"use strict";n.d(t,{oX:()=>S,L_:()=>j});var r=n(2716),o=n(6233),i=n(6467),a=n(3779),s=n(2155),l=n(5337),c=n(2645),u=n(965),d=n(4713),f=n(6477),p=n(3442),h=(0,u.A)(function e(){(0,c.A)(this,e)}),m="CALC_UNIT",g=RegExp(m,"g");function v(e){return"number"==typeof e?"".concat(e).concat(m):e}var b=function(e){(0,f.A)(n,e);var t=(0,p.A)(n);function n(e,o){(0,c.A)(this,n),a=t.call(this),(0,i.A)((0,d.A)(a),"result",""),(0,i.A)((0,d.A)(a),"unitlessCssVar",void 0),(0,i.A)((0,d.A)(a),"lowPriority",void 0);var a,s=(0,r.A)(e);return a.unitlessCssVar=o,e instanceof n?a.result="(".concat(e.result,")"):"number"===s?a.result=v(e):"string"===s&&(a.result=e),a}return(0,u.A)(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," + ").concat(v(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," - ").concat(v(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?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 n?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,n=(e||{}).unit,r=!0;return("boolean"==typeof n?r=n:Array.from(this.unitlessCssVar).some(function(e){return t.result.includes(e)})&&(r=!1),this.result=this.result.replace(g,r?"px":""),void 0!==this.lowPriority)?"calc(".concat(this.result,")"):this.result}}]),n}(h),y=function(e){(0,f.A)(n,e);var t=(0,p.A)(n);function n(e){var r;return(0,c.A)(this,n),r=t.call(this),(0,i.A)((0,d.A)(r),"result",0),e instanceof n?r.result=e.result:"number"==typeof e&&(r.result=e),r}return(0,u.A)(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),n}(h);let w=function(e,t){var n="css"===e?b:y;return function(e){return new n(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("-"))};n(5260);let A=function(e,t,n,r){var i=(0,a.A)({},t[e]);null!=r&&r.deprecatedTokens&&r.deprecatedTokens.forEach(function(e){var t=(0,o.A)(e,2),n=t[0],r=t[1];(null!=i&&i[n]||null!=i&&i[r])&&(null!=i[r]||(i[r]=null==i?void 0:i[n]))});var s=(0,a.A)((0,a.A)({},n),i);return Object.keys(s).forEach(function(e){s[e]===t[e]&&delete s[e]}),s};var E="undefined"!=typeof CSSINJS_STATISTIC,$=!0;function S(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!E)return Object.assign.apply(Object,[{}].concat(t));$=!1;var o={};return t.forEach(function(e){"object"===(0,r.A)(e)&&Object.keys(e).forEach(function(t){Object.defineProperty(o,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})})}),$=!0,o}var C={};function O(){}let k=function(e){var t,n=e,r=O;return E&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){if($){var r;null==(r=t)||r.add(n)}return e[n]}}),r=function(e,n){var r;C[e]={global:Array.from(t),component:(0,a.A)((0,a.A)({},null==(r=C[e])?void 0:r.component),n)}}),{token:n,keys:t,flush:r}},_=function(e,t,n){if("function"==typeof n){var r;return n(S(t,null!=(r=t[e])?r:{}))}return null!=n?n:{}};var I=new(function(){function e(){(0,c.A)(this,e),(0,i.A)(this,"map",new Map),(0,i.A)(this,"objectIDMap",new WeakMap),(0,i.A)(this,"nextID",0),(0,i.A)(this,"lastAccessBeat",new Map),(0,i.A)(this,"accessBeat",0)}return(0,u.A)(e,[{key:"set",value:function(e,t){this.clear();var n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(e){var t=this;return e.map(function(e){return e&&"object"===(0,r.A)(e)?"obj_".concat(t.getObjectID(e)):"".concat((0,r.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(n,r){t-n>6e5&&(e.map.delete(r),e.lastAccessBeat.delete(r))}),this.accessBeat=0}}}]),e}());let R=function(){return{}},j=function(e){var t=e.useCSP,n=void 0===t?R:t,c=e.useToken,u=e.usePrefix,d=e.getResetStyles,f=e.getCommonStyle,p=e.getCompUnitless;function h(t,i,p){var h=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},m=Array.isArray(t)?t:[t,t],g=(0,o.A)(m,1)[0],v=m.join("-"),b=e.layer||{name:"antd"};return function(e){var t,o,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,y=c(),E=y.theme,$=y.realToken,C=y.hashId,O=y.token,R=y.cssVar,j=u(),N=j.rootPrefixCls,T=j.iconPrefixCls,P=n(),M=R?"css":"js",z=(t=function(){var e=new Set;return R&&Object.keys(h.unitless||{}).forEach(function(t){e.add((0,l.Ki)(t,R.prefix)),e.add((0,l.Ki)(t,x(g,R.prefix)))}),w(M,e)},o=[M,g,null==R?void 0:R.prefix],s.useMemo(function(){var e=I.get(o);if(e)return e;var n=t();return I.set(o,n),n},o)),B="js"===M?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return"max(".concat(t.map(function(e){return(0,l.zA)(e)}).join(","),")")},min:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return"min(".concat(t.map(function(e){return(0,l.zA)(e)}).join(","),")")}},L=B.max,F=B.min,D={theme:E,token:O,hashId:C,nonce:function(){return P.nonce},clientOnly:h.clientOnly,layer:b,order:h.order||-999};return(0,l.IV)((0,a.A)((0,a.A)({},D),{},{clientOnly:!1,path:["Shared",N]}),function(){return"function"==typeof d?d(O):[]}),[(0,l.IV)((0,a.A)((0,a.A)({},D),{},{path:[v,e,T]}),function(){if(!1===h.injectStyle)return[];var t=k(O),n=t.token,o=t.flush,a=_(g,$,p),s=".".concat(e),c=A(g,$,a,{deprecatedTokens:h.deprecatedTokens});R&&a&&"object"===(0,r.A)(a)&&Object.keys(a).forEach(function(e){a[e]="var(".concat((0,l.Ki)(e,x(g,R.prefix)),")")});var u=S(n,{componentCls:s,prefixCls:e,iconCls:".".concat(T),antCls:".".concat(N),calc:z,max:L,min:F},R?a:c),d=i(u,{hashId:C,prefixCls:e,rootPrefixCls:N,iconPrefixCls:T});o(g,c);var v="function"==typeof f?f(u,e,m,h.resetFont):null;return[!1===h.resetStyle?null:v,d]}),C]}}return{genStyleHooks:function(e,t,n,r){var u,d,f,m,g,v,b,y,w,x=Array.isArray(e)?e[0]:e;function E(e){return"".concat(String(x)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var $=(null==r?void 0:r.unitless)||{},S="function"==typeof p?p(e):{},C=(0,a.A)((0,a.A)({},S),{},(0,i.A)({},E("zIndexPopup"),!0));Object.keys($).forEach(function(e){C[E(e)]=$[e]});var O=(0,a.A)((0,a.A)({},r),{},{unitless:C,prefixToken:E}),k=h(e,t,n,O),I=(u=x,d=n,m=(f=O).unitless,v=void 0===(g=f.injectStyle)||g,b=f.prefixToken,y=f.ignore,w=function(e){var t=e.rootCls,n=e.cssVar,r=void 0===n?{}:n,o=c().realToken;return(0,l.RC)({path:[u],prefix:r.prefix,key:r.key,unitless:m,ignore:y,token:o,scope:t},function(){var e=_(u,o,d),t=A(u,o,e,{deprecatedTokens:null==f?void 0:f.deprecatedTokens});return Object.keys(e).forEach(function(e){t[b(e)]=t[e],delete t[e]}),t}),null},function(e){var t=c().cssVar;return[function(n){return v&&t?s.createElement(s.Fragment,null,s.createElement(w,{rootCls:e,cssVar:t,component:u}),n):n},null==t?void 0:t.key]});return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=k(e,t),r=(0,o.A)(n,2)[1],i=I(t),a=(0,o.A)(i,2);return[a[0],r,a[1]]}},genSubStyleComponent:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=h(e,t,n,(0,a.A)({resetStyle:!1,order:-998},r));return function(e){var t=e.prefixCls,n=e.rootCls,r=void 0===n?t:n;return o(t,r),null}},genComponentStyleHook:h}}},5337(e,t,n){"use strict";n.d(t,{an:()=>O,Ki:()=>M,hV:()=>G,Mo:()=>eT,RC:()=>eN,zA:()=>T,IV:()=>eR});var r,o=n(6467),i=n(6233),a=n(8128),s=n(3779);let l=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*0x5bd1e995+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*0x5bd1e995+((t>>>16)*59797<<16)^(65535&n)*0x5bd1e995+((n>>>16)*59797<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*0x5bd1e995+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*0x5bd1e995+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)};var c=n(8451),u=n(2155),d=n.t(u,2);n(4518),n(8216);var f=n(2645),p=n(965);function h(e){return e.join("%")}var m=function(){function e(t){(0,f.A)(this,e),(0,o.A)(this,"instanceId",void 0),(0,o.A)(this,"cache",new Map),this.instanceId=t}return(0,p.A)(e,[{key:"get",value:function(e){return this.opGet(h(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(h(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}(),g="data-token-hash",v="data-css-hash",b="__cssinjs_instance__",y=u.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(v,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(t){t[b]=t[b]||e,t[b]===e&&document.head.insertBefore(t,n)});var r={};Array.from(document.querySelectorAll("style[".concat(v,"]"))).forEach(function(t){var n,o=t.getAttribute(v);r[o]?t[b]===e&&(null==(n=t.parentNode)||n.removeChild(t)):r[o]=!0})}return new m(e)}(),defaultCache:!0}),w=n(2716),x=n(9352),A=function(){function e(){(0,f.A)(this,e),(0,o.A)(this,"cache",void 0),(0,o.A)(this,"keys",void 0),(0,o.A)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,p.A)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach(function(e){if(o){var t;o=null==(t=o)||null==(t=t.map)?void 0:t.get(e)}else o=void 0}),null!=(t=o)&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null==(n=o)?void 0:n.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,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(e,t){var n=(0,i.A)(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e},[this.keys[0],this.cacheCallTimes]),a=(0,i.A)(o,1)[0];this.delete(a)}this.keys.push(t)}var s=this.cache;t.forEach(function(e,o){if(o===t.length-1)s.set(e,{value:[n,r.cacheCallTimes++]});else{var i=s.get(e);i?i.map||(i.map=new Map):s.set(e,{map:new Map}),s=s.get(e).map}})}},{key:"deleteByPath",value:function(e,t){var n,r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null==(n=r.value)?void 0:n[0];var o=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),o}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter(function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)}),this.deleteByPath(this.cache,e)}}]),e}();(0,o.A)(A,"MAX_CACHE_SIZE",20),(0,o.A)(A,"MAX_CACHE_OFFSET",5);var E=n(6216),$=0,S=function(){function e(t){(0,f.A)(this,e),(0,o.A)(this,"derivatives",void 0),(0,o.A)(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=$,0===t.length&&(0,E.$e)(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),$+=1}return(0,p.A)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,n){return n(e,t)},void 0)}}]),e}(),C=new A;function O(e){var t=Array.isArray(e)?e:[e];return C.has(t)||C.set(t,new S(t)),C.get(t)}var k=new WeakMap,_={},I=new WeakMap;function R(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=I.get(e)||"";return n||(Object.keys(e).forEach(function(r){var o=e[r];n+=r,o instanceof S?n+=o.id:o&&"object"===(0,w.A)(o)?n+=R(o,t):n+=o}),t&&(n=l(n)),I.set(e,n)),n}function j(e,t){return l("".concat(t,"_").concat(R(e,!0)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var N=(0,x.A)();function T(e){return"number"==typeof e?"".concat(e,"px"):e}function P(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(i)return e;var a=(0,s.A)((0,s.A)({},r),{},(0,o.A)((0,o.A)({},g,t),v,n)),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 M=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()},z=function(e,t,n){var r,o={},a={};return Object.entries(e).forEach(function(e){var t=(0,i.A)(e,2),r=t[0],s=t[1];if(null!=n&&null!=(l=n.preserve)&&l[r])a[r]=s;else if(("string"==typeof s||"number"==typeof s)&&!(null!=n&&null!=(c=n.ignore)&&c[r])){var l,c,u,d=M(r,null==n?void 0:n.prefix);o[d]="number"!=typeof s||null!=n&&null!=(u=n.unitless)&&u[r]?String(s):"".concat(s,"px"),a[r]="var(".concat(d,")")}}),[a,(r={scope:null==n?void 0:n.scope},Object.keys(o).length?".".concat(t).concat(null!=r&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(o).map(function(e){var t=(0,i.A)(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")}).join(""),"}"):"")]},B=n(8367),L=(0,s.A)({},d).useInsertionEffect,F=L?function(e,t,n){return L(function(){return e(),t()},n)}:function(e,t,n){u.useMemo(e,n),(0,B.A)(function(){return t(!0)},n)},D=void 0!==(0,s.A)({},d).useInsertionEffect?function(e){var t=[],n=!1;return u.useEffect(function(){return n=!1,function(){n=!0,t.length&&t.forEach(function(e){return e()})}},e),function(e){n||t.push(e)}}:function(){return function(e){e()}};function H(e,t,n,r,o){var s=u.useContext(y).cache,l=h([e].concat((0,a.A)(t))),c=D([l]),d=function(e){s.opUpdate(l,function(t){var r=(0,i.A)(t||[void 0,void 0],2),o=r[0],a=[void 0===o?0:o,r[1]||n()];return e?e(a):a})};u.useMemo(function(){d()},[l]);var f=s.opGet(l)[1];return F(function(){null==o||o(f)},function(e){return d(function(t){var n=(0,i.A)(t,2),r=n[0],a=n[1];return e&&0===r&&(null==o||o(f)),[r+1,a]}),function(){s.opUpdate(l,function(t){var n=(0,i.A)(t||[],2),o=n[0],a=void 0===o?0:o,u=n[1];return 0==a-1?(c(function(){(e||!s.opGet(l))&&(null==r||r(u,!1))}),null):[a-1,u]})}},[l]),f}var W={},U=new Map,q=function(e,t,n,r){var o=n.getDerivativeToken(e),i=(0,s.A)((0,s.A)({},o),t);return r&&(i=r(i)),i},V="token";function G(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,u.useContext)(y),o=r.cache.instanceId,d=r.container,f=n.salt,p=void 0===f?"":f,h=n.override,m=void 0===h?W:h,w=n.formatToken,x=n.getComputedToken,A=n.cssVar,E=function(e,t){for(var n=k,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(_)||n.set(_,e()),n.get(_)}(function(){return Object.assign.apply(Object,[{}].concat((0,a.A)(t)))},t),$=R(E),S=R(m),C=A?R(A):"";return H(V,[p,e.id,$,S,C],function(){var t,n=x?x(E,m,e):q(E,m,e,w),r=(0,s.A)({},n),o="";if(A){var a=z(n,A.key,{prefix:A.prefix,ignore:A.ignore,unitless:A.unitless,preserve:A.preserve}),c=(0,i.A)(a,2);n=c[0],o=c[1]}var u=j(n,p);n._tokenKey=u,r._tokenKey=j(r,p);var d=null!=(t=null==A?void 0:A.key)?t:u;n._themeKey=d,U.set(d,(U.get(d)||0)+1);var f="".concat("css","-").concat(l(u));return n._hashId=f,[n,f,r,o,(null==A?void 0:A.key)||""]},function(e){var t,n,r;t=e[0]._themeKey,U.set(t,(U.get(t)||0)-1),r=(n=Array.from(U.keys())).filter(function(e){return 0>=(U.get(e)||0)}),n.length-r.length>0&&r.forEach(function(e){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(g,'="').concat(e,'"]')).forEach(function(e){if(e[b]===o){var t;null==(t=e.parentNode)||t.removeChild(e)}}),U.delete(e)})},function(e){var t=(0,i.A)(e,4),n=t[0],r=t[3];if(A&&r){var a=(0,c.BD)(r,l("css-variables-".concat(n._themeKey)),{mark:v,prepend:"queue",attachTo:d,priority:-999});a[b]=o,a.setAttribute(g,n._themeKey)}})}var X=n(2664);let K={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 Y="comm",Z="rule",Q="decl",J=Math.abs,ee=String.fromCharCode;function et(e,t,n){return e.replace(t,n)}function en(e,t){return 0|e.charCodeAt(t)}function er(e,t,n){return e.slice(t,n)}function eo(e){return e.length}function ei(e,t){return t.push(e),e}function ea(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function es(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Q:return e.return=e.return||e.value;case Y:return"";case"@keyframes":return e.return=e.value+"{"+ea(e.children,r)+"}";case Z:if(!eo(e.value=e.props.join(",")))return""}return eo(n=ea(e.children,r))?e.return=e.value+"{"+n+"}":""}var el=1,ec=1,eu=0,ed=0,ef=0,ep="";function eh(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:el,column:ec,length:a,return:"",siblings:s}}function em(){return ef=ed<eu?en(ep,ed++):0,ec++,10===ef&&(ec=1,el++),ef}function eg(){return en(ep,ed)}function ev(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 eb(e){var t,n;return(t=ed-1,n=function e(t){for(;em();)switch(ef){case t:return ed;case 34:case 39:34!==t&&39!==t&&e(ef);break;case 40:41===t&&e(t);break;case 92:em()}return ed}(91===e?e+2:40===e?e+1:e),er(ep,t,n)).trim()}function ey(e,t,n,r,o,i,a,s,l,c,u,d){for(var f=o-1,p=0===o?i:[""],h=p.length,m=0,g=0,v=0;m<r;++m)for(var b=0,y=er(e,f+1,f=J(g=a[m])),w=e;b<h;++b)(w=(g>0?p[b]+" "+y:et(y,/&\f/g,p[b])).trim())&&(l[v++]=w);return eh(e,t,n,0===o?Z:s,l,c,u,d)}function ew(e,t,n,r,o){return eh(e,t,n,Q,er(e,0,r),er(e,r+1,-1),r,o)}var ex="data-ant-cssinjs-cache-path",eA="_FILE_STYLE__",eE=!0,e$="_multi_value_";function eS(e){var t,n,r;return ea((r=function e(t,n,r,o,i,a,s,l,c){for(var u,d,f,p,h,m,g=0,v=0,b=s,y=0,w=0,x=0,A=1,E=1,$=1,S=0,C="",O=i,k=a,_=o,I=C;E;)switch(x=S,S=em()){case 40:if(108!=x&&58==en(I,b-1)){-1!=(h=I+=et(eb(S),"&","&\f"),m=J(g?l[g-1]:0),h.indexOf("&\f",m))&&($=-1);break}case 34:case 39:case 91:I+=eb(S);break;case 9:case 10:case 13:case 32:I+=function(e){for(;ef=eg();)if(ef<33)em();else break;return ev(e)>2||ev(ef)>3?"":" "}(x);break;case 92:I+=function(e,t){for(var n;--t&&em()&&!(ef<48)&&!(ef>102)&&(!(ef>57)||!(ef<65))&&(!(ef>70)||!(ef<97)););return n=ed+(t<6&&32==eg()&&32==em()),er(ep,e,n)}(ed-1,7);continue;case 47:switch(eg()){case 42:case 47:ei((u=function(e,t){for(;em();)if(e+ef===57)break;else if(e+ef===84&&47===eg())break;return"/*"+er(ep,t,ed-1)+"*"+ee(47===e?e:em())}(em(),ed),d=n,f=r,p=c,eh(u,d,f,Y,ee(ef),er(u,2,-2),0,p)),c),(5==ev(x||1)||5==ev(eg()||1))&&eo(I)&&" "!==er(I,-1,void 0)&&(I+=" ");break;default:I+="/"}break;case 123*A:l[g++]=eo(I)*$;case 125*A:case 59:case 0:switch(S){case 0:case 125:E=0;case 59+v:-1==$&&(I=et(I,/\f/g,"")),w>0&&(eo(I)-b||0===A&&47===x)&&ei(w>32?ew(I+";",o,r,b-1,c):ew(et(I," ","")+";",o,r,b-2,c),c);break;case 59:I+=";";default:if(ei(_=ey(I,n,r,g,v,i,l,C,O=[],k=[],b,a),a),123===S)if(0===v)e(I,n,_,_,O,a,b,l,k);else switch(99===y&&110===en(I,3)?100:y){case 100:case 108:case 109:case 115:e(t,_,_,o&&ei(ey(t,_,_,0,0,i,l,C,i,O=[],b,k),k),i,k,b,l,o?O:k);break;default:e(I,_,_,_,[""],k,0,l,k)}}g=v=w=0,A=$=1,C=I="",b=s;break;case 58:b=1+eo(I),w=x;default:if(A<1){if(123==S)--A;else if(125==S&&0==A++&&125==(ef=ed>0?en(ep,--ed):0,ec--,10===ef&&(ec=1,el--),ef))continue}switch(I+=ee(S),S*A){case 38:$=v>0?1:(I+="\f",-1);break;case 44:l[g++]=(eo(I)-1)*$,$=1;break;case 64:45===eg()&&(I+=eb(em())),y=eg(),v=b=eo(C=I+=function(e){for(;!ev(eg());)em();return er(ep,e,ed)}(ed)),S++;break;case 45:45===x&&2==eo(I)&&(A=0)}}return a}("",null,null,null,[""],(n=t=e,el=ec=1,eu=eo(ep=n),ed=0,t=[]),0,[0],t),ep="",r),es).replace(/\{%%%\:[^;];}/g,";")}function eC(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map(function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",i=(null==(t=r.match(/^\w+/))?void 0:t[0])||"";return[r="".concat(i).concat(o).concat(r.slice(i.length))].concat((0,a.A)(n.slice(1))).join(" ")}).join(",")}var eO=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,l=r.injectHash,c=r.parentSelectors,u=n.hashId,d=n.layer,f=(n.path,n.hashPriority),p=n.transformers,h=void 0===p?[]:p,m=(n.linters,""),g={};function v(t){var r=t.getName(u);if(!g[r]){var o=e(t.style,n,{root:!1,parentSelectors:c}),a=(0,i.A)(o,1)[0];g[r]="@keyframes ".concat(t.getName(u)).concat(a)}}return(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach(function(t){Array.isArray(t)?e(t,n):t&&n.push(t)}),n})(Array.isArray(t)?t:[t]).forEach(function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)m+="".concat(r,"\n");else if(r._keyframe)v(r);else{var d=h.reduce(function(e,t){var n;return(null==t||null==(n=t.visit)?void 0:n.call(t,e))||e},r);Object.keys(d).forEach(function(t){var r=d[t];if("object"!==(0,w.A)(r)||!r||"animationName"===t&&r._keyframe||"object"===(0,w.A)(r)&&r&&("_skip_check_"in r||e$ in r)){function p(e,t){var n=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),r=t;K[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(v(t),r=t.getName(u)),m+="".concat(n,":").concat(r,";")}var h,b=null!=(h=null==r?void 0:r.value)?h:r;"object"===(0,w.A)(r)&&null!=r&&r[e$]&&Array.isArray(b)?b.forEach(function(e){p(t,e)}):p(t,b)}else{var y=!1,x=t.trim(),A=!1;(o||l)&&u?x.startsWith("@")?y=!0:x="&"===x?eC("",u,f):eC(t,u,f):o&&!u&&("&"===x||""===x)&&(x="",A=!0);var E=e(r,n,{root:A,injectHash:y,parentSelectors:[].concat((0,a.A)(c),[x])}),$=(0,i.A)(E,2),S=$[0],C=$[1];g=(0,s.A)((0,s.A)({},g),C),m+="".concat(x).concat(S)}})}}),o?d&&(m="@layer ".concat(d.name," {").concat(m,"}"),d.dependencies&&(g["@layer ".concat(d.name)]=d.dependencies.map(function(e){return"@layer ".concat(e,", ").concat(d.name,";")}).join("\n"))):m="{".concat(m,"}"),[m,g]};function ek(e,t){return l("".concat(e.join("%")).concat(t))}function e_(){return null}var eI="style";function eR(e,t){var n=e.token,l=e.path,d=e.hashId,f=e.layer,p=e.nonce,h=e.clientOnly,m=e.order,w=void 0===m?0:m,A=u.useContext(y),E=A.autoClear,$=(A.mock,A.defaultCache),S=A.hashPriority,C=A.container,O=A.ssrInline,k=A.transformers,_=A.linters,I=A.cache,R=A.layer,j=n._tokenKey,T=[j];R&&T.push("layer"),T.push.apply(T,(0,a.A)(l));var P=H(eI,T,function(){var e=T.join("|");if(function(e){if(!r&&(r={},(0,x.A)())){var t,n=document.createElement("div");n.className=ex,n.style.position="fixed",n.style.visibility="hidden",n.style.top="-9999px",document.body.appendChild(n);var o=getComputedStyle(n).content||"";(o=o.replace(/^"/,"").replace(/"$/,"")).split(";").forEach(function(e){var t=e.split(":"),n=(0,i.A)(t,2),o=n[0],a=n[1];r[o]=a});var a=document.querySelector("style[".concat(ex,"]"));a&&(eE=!1,null==(t=a.parentNode)||t.removeChild(a)),document.body.removeChild(n)}return!!r[e]}(e)){var n=function(e){var t=r[e],n=null;if(t&&(0,x.A)())if(eE)n=eA;else{var o=document.querySelector("style[".concat(v,'="').concat(r[e],'"]'));o?n=o.innerHTML:delete r[e]}return[n,t]}(e),o=(0,i.A)(n,2),a=o[0],s=o[1];if(a)return[a,j,s,{},h,w]}var c=eO(t(),{hashId:d,hashPriority:S,layer:R?f:void 0,path:l.join("-"),transformers:k,linters:_}),u=(0,i.A)(c,2),p=u[0],m=u[1],g=eS(p),b=ek(T,g);return[g,j,b,m,h,w]},function(e,t){var n=(0,i.A)(e,3)[2];(t||E)&&N&&(0,c.m6)(n,{mark:v})},function(e){var t=(0,i.A)(e,4),n=t[0],r=(t[1],t[2]),o=t[3];if(N&&n!==eA){var a={mark:v,prepend:!R&&"queue",attachTo:C,priority:w},l="function"==typeof p?p():p;l&&(a.csp={nonce:l});var u=[],d=[];Object.keys(o).forEach(function(e){e.startsWith("@layer")?u.push(e):d.push(e)}),u.forEach(function(e){(0,c.BD)(eS(o[e]),"_layer-".concat(e),(0,s.A)((0,s.A)({},a),{},{prepend:!0}))});var f=(0,c.BD)(n,r,a);f[b]=I.instanceId,f.setAttribute(g,j),d.forEach(function(e){(0,c.BD)(eS(o[e]),"_effect-".concat(e),a)})}}),M=(0,i.A)(P,3),z=M[0],B=M[1],L=M[2];return function(e){var t;return t=O&&!N&&$?u.createElement("style",(0,X.A)({},(0,o.A)((0,o.A)({},g,B),v,L),{dangerouslySetInnerHTML:{__html:z}})):u.createElement(e_,null),u.createElement(u.Fragment,null,t,e)}}var ej="cssVar";let eN=function(e,t){var n=e.key,r=e.prefix,o=e.unitless,s=e.ignore,l=e.token,d=e.scope,f=void 0===d?"":d,p=(0,u.useContext)(y),h=p.cache.instanceId,m=p.container,w=l._tokenKey,x=[].concat((0,a.A)(e.path),[n,f,w]);return H(ej,x,function(){var e=z(t(),n,{prefix:r,unitless:o,ignore:s,scope:f}),a=(0,i.A)(e,2),l=a[0],c=a[1],u=ek(x,c);return[l,c,u,n]},function(e){var t=(0,i.A)(e,3)[2];N&&(0,c.m6)(t,{mark:v})},function(e){var t=(0,i.A)(e,3),r=t[1],o=t[2];if(r){var a=(0,c.BD)(r,o,{mark:v,prepend:"queue",attachTo:m,priority:-999});a[b]=h,a.setAttribute(g,n)}})};(0,o.A)((0,o.A)((0,o.A)({},eI,function(e,t,n){var r=(0,i.A)(e,6),o=r[0],a=r[1],s=r[2],l=r[3],c=r[4],u=r[5],d=(n||{}).plain;if(c)return null;var f=o,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return f=P(o,a,s,p,d),l&&Object.keys(l).forEach(function(e){if(!t[e]){t[e]=!0;var n=P(eS(l[e]),a,"_effect-".concat(e),p,d);e.startsWith("@layer")?f=n+f:f+=n}}),[u,s,f]}),V,function(e,t,n){var r=(0,i.A)(e,5),o=r[2],a=r[3],s=r[4],l=(n||{}).plain;if(!a)return null;var c=o._tokenKey,u=P(a,s,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l);return[-999,c,u]}),ej,function(e,t,n){var r=(0,i.A)(e,4),o=r[1],a=r[2],s=r[3],l=(n||{}).plain;if(!o)return null;var c=P(o,s,a,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l);return[-999,a,c]});let eT=function(){function e(t,n){(0,f.A)(this,e),(0,o.A)(this,"name",void 0),(0,o.A)(this,"style",void 0),(0,o.A)(this,"_keyframe",!0),this.name=t,this.style=n}return(0,p.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 eP(e){return e.notSplit=!0,e}eP(["borderTop","borderBottom"]),eP(["borderTop"]),eP(["borderBottom"]),eP(["borderLeft","borderRight"]),eP(["borderLeft"]),eP(["borderRight"])},9909(e,t,n){"use strict";n.d(t,{A:()=>w});var r=n(2664),o=n(6233),i=n(6467),a=n(8827),s=n(2155),l=n(395),c=n.n(l),u=n(7516),d=n(2893),f=n(3779),p=n(1820),h=["icon","className","onClick","style","primaryColor","secondaryColor"],m={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},g=function(e){var t=e.icon,n=e.className,r=e.onClick,o=e.style,i=e.primaryColor,l=e.secondaryColor,c=(0,a.A)(e,h),u=s.useRef(),d=m;if(i&&(d={primaryColor:i,secondaryColor:l||(0,p.Em)(i)}),(0,p.lf)(u),(0,p.$e)((0,p.P3)(t),"icon should be icon definiton, but got ".concat(t)),!(0,p.P3)(t))return null;var g=t;return g&&"function"==typeof g.icon&&(g=(0,f.A)((0,f.A)({},g),{},{icon:g.icon(d.primaryColor,d.secondaryColor)})),(0,p.cM)(g.icon,"svg-".concat(g.name),(0,f.A)((0,f.A)({className:n,onClick:r,style:o,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};function v(e){var t=(0,p.al)(e),n=(0,o.A)(t,2),r=n[0],i=n[1];return g.setTwoToneColors({primaryColor:r,secondaryColor:i})}g.displayName="IconReact",g.getTwoToneColors=function(){return(0,f.A)({},m)},g.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;m.primaryColor=t,m.secondaryColor=n||(0,p.Em)(t),m.calculated=!!n};var b=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];v(u.z1.primary);var y=s.forwardRef(function(e,t){var n=e.className,l=e.icon,u=e.spin,f=e.rotate,h=e.tabIndex,m=e.onClick,v=e.twoToneColor,y=(0,a.A)(e,b),w=s.useContext(d.A),x=w.prefixCls,A=void 0===x?"anticon":x,E=w.rootClassName,$=c()(E,A,(0,i.A)((0,i.A)({},"".concat(A,"-").concat(l.name),!!l.name),"".concat(A,"-spin"),!!u||"loading"===l.name),n),S=h;void 0===S&&m&&(S=-1);var C=(0,p.al)(v),O=(0,o.A)(C,2),k=O[0],_=O[1];return s.createElement("span",(0,r.A)({role:"img","aria-label":l.name},y,{ref:t,tabIndex:S,onClick:m,className:$}),s.createElement(g,{icon:l,primaryColor:k,secondaryColor:_,style:f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0}))});y.displayName="AntdIcon",y.getTwoToneColor=function(){var e=g.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},y.setTwoToneColor=v;let w=y},2893(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(2155).createContext)({})},9877(e,t,n){"use strict";n.d(t,{A:()=>m});var r=n(2664),o=n(3779),i=n(6467),a=n(8827),s=n(2155),l=n(395),c=n.n(l),u=n(7233),d=n(2893),f=n(1820),p=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],h=s.forwardRef(function(e,t){var n=e.className,l=e.component,h=e.viewBox,m=e.spin,g=e.rotate,v=e.tabIndex,b=e.onClick,y=e.children,w=(0,a.A)(e,p),x=s.useRef(),A=(0,u.xK)(x,t);(0,f.$e)(!!(l||y),"Should have `component` prop or `children`."),(0,f.lf)(x);var E=s.useContext(d.A),$=E.prefixCls,S=void 0===$?"anticon":$,C=E.rootClassName,O=c()(C,S,(0,i.A)({},"".concat(S,"-spin"),!!m&&!!l),n),k=c()((0,i.A)({},"".concat(S,"-spin"),!!m)),_=(0,o.A)((0,o.A)({},f.yf),{},{className:k,style:g?{msTransform:"rotate(".concat(g,"deg)"),transform:"rotate(".concat(g,"deg)")}:void 0,viewBox:h});h||delete _.viewBox;var I=v;return void 0===I&&b&&(I=-1),s.createElement("span",(0,r.A)({role:"img"},w,{ref:A,tabIndex:I,onClick:b,className:O}),l?s.createElement(l,_,y):y?((0,f.$e)(!!h||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,r.A)({},_,{viewBox:h}),y)):null)});h.displayName="AntdIcon";let m=h},3147(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},90(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},3896(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"border",theme:"outlined"};var a=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},2297(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},7048(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},9783(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},4707(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{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"},a=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},1090(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},7544(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},4985(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},4544(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{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"},a=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},1631(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},7062(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},8578(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};var a=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},4291(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},3616(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{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"},a=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},5862(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},7615(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},4177(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},7252(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},1352(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},5766(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},9870(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},2946(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},3776(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},6130(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},6766(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},955(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},6541(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},2817(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},8460(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{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"},a=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},8594(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},2107(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},7294(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2664),o=n(2155);let i={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=n(9909);let s=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},1820(e,t,n){"use strict";n.d(t,{$e:()=>d,Em:()=>h,P3:()=>f,al:()=>m,cM:()=>function e(t,n,o){return o?c.createElement(t.tag,(0,r.A)((0,r.A)({key:n},p(t.attrs)),o),(t.children||[]).map(function(r,o){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))})):c.createElement(t.tag,(0,r.A)({key:n},p(t.attrs)),(t.children||[]).map(function(r,o){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))}))},lf:()=>v,yf:()=>g});var r=n(3779),o=n(2716),i=n(7516),a=n(8451),s=n(1843),l=n(6216),c=n(2155),u=n(2893);function d(e,t){(0,l.Ay)(e,"[@ant-design/icons] ".concat(t))}function f(e){return"object"===(0,o.A)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,o.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,n){var r=e[n];return"class"===n?(t.className=r,delete t.class):(delete t[n],t[n.replace(/-(.)/g,function(e,t){return t.toUpperCase()})]=r),t},{})}function h(e){return(0,i.cM)(e)[0]}function m(e){return e?Array.isArray(e)?e:[e]:[]}var g={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},v=function(e){var t=(0,c.useContext)(u.A),n=t.csp,r=t.prefixCls,o="\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";r&&(o=o.replace(/anticon/g,r)),(0,c.useEffect)(function(){var t=e.current,r=(0,s.j)(t);(0,a.BD)(o,"@ant-design-icons",{prepend:!0,csp:n,attachTo:r})},[])}},8956(e,t,n){"use strict";n.d(t,{H:()=>d,K6:()=>i,Me:()=>c,Ob:()=>u,YL:()=>s,_:()=>o,g8:()=>p,n6:()=>f,oS:()=>h,wE:()=>l});var r=n(24);function o(e,t,n){return{r:255*(0,r.Cg)(e,255),g:255*(0,r.Cg)(t,255),b:255*(0,r.Cg)(n,255)}}function i(e,t,n){e=(0,r.Cg)(e,255);var o=Math.max(e,t=(0,r.Cg)(t,255),n=(0,r.Cg)(n,255)),i=Math.min(e,t,n),a=0,s=0,l=(o+i)/2;if(o===i)s=0,a=0;else{var c=o-i;switch(s=l>.5?c/(2-o-i):c/(o+i),o){case e:a=(t-n)/c+6*(t<n);break;case t:a=(n-e)/c+2;break;case n:a=(e-t)/c+4}a/=6}return{h:a,s:s,l:l}}function a(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function s(e,t,n){if(e=(0,r.Cg)(e,360),t=(0,r.Cg)(t,100),n=(0,r.Cg)(n,100),0===t)i=n,s=n,o=n;else{var o,i,s,l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;o=a(c,l,e+1/3),i=a(c,l,e),s=a(c,l,e-1/3)}return{r:255*o,g:255*i,b:255*s}}function l(e,t,n){e=(0,r.Cg)(e,255);var o=Math.max(e,t=(0,r.Cg)(t,255),n=(0,r.Cg)(n,255)),i=Math.min(e,t,n),a=0,s=o-i;if(o===i)a=0;else{switch(o){case e:a=(t-n)/s+6*(t<n);break;case t:a=(n-e)/s+2;break;case n:a=(e-t)/s+4}a/=6}return{h:a,s:0===o?0:s/o,v:o}}function c(e,t,n){e=6*(0,r.Cg)(e,360),t=(0,r.Cg)(t,100),n=(0,r.Cg)(n,100);var o=Math.floor(e),i=e-o,a=n*(1-t),s=n*(1-i*t),l=n*(1-(1-i)*t),c=o%6;return{r:255*[n,s,a,a,l,n][c],g:255*[l,n,n,s,a,a][c],b:255*[a,a,l,n,n,s][c]}}function u(e,t,n,o){var i=[(0,r.wl)(Math.round(e).toString(16)),(0,r.wl)(Math.round(t).toString(16)),(0,r.wl)(Math.round(n).toString(16))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function d(e,t,n,o,i){var a=[(0,r.wl)(Math.round(e).toString(16)),(0,r.wl)(Math.round(t).toString(16)),(0,r.wl)(Math.round(n).toString(16)),(0,r.wl)(Math.round(255*parseFloat(o)).toString(16))];return i&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function f(e){return p(e)/255}function p(e){return parseInt(e,16)}function h(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}},718(e,t,n){"use strict";n.d(t,{D:()=>r});var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},7358(e,t,n){"use strict";n.d(t,{RO:()=>a});var r=n(8956),o=n(718),i=n(24);function a(e){var t={r:0,g:0,b:0},n=1,a=null,s=null,l=null,c=!1,f=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(o.D[e])e=o.D[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=u.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=u.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=u.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=u.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=u.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=u.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=u.hex8.exec(e))?{r:(0,r.g8)(n[1]),g:(0,r.g8)(n[2]),b:(0,r.g8)(n[3]),a:(0,r.n6)(n[4]),format:t?"name":"hex8"}:(n=u.hex6.exec(e))?{r:(0,r.g8)(n[1]),g:(0,r.g8)(n[2]),b:(0,r.g8)(n[3]),format:t?"name":"hex"}:(n=u.hex4.exec(e))?{r:(0,r.g8)(n[1]+n[1]),g:(0,r.g8)(n[2]+n[2]),b:(0,r.g8)(n[3]+n[3]),a:(0,r.n6)(n[4]+n[4]),format:t?"name":"hex8"}:!!(n=u.hex3.exec(e))&&{r:(0,r.g8)(n[1]+n[1]),g:(0,r.g8)(n[2]+n[2]),b:(0,r.g8)(n[3]+n[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&(d(e.r)&&d(e.g)&&d(e.b)?(t=(0,r._)(e.r,e.g,e.b),c=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):d(e.h)&&d(e.s)&&d(e.v)?(a=(0,i.Px)(e.s),s=(0,i.Px)(e.v),t=(0,r.Me)(e.h,a,s),c=!0,f="hsv"):d(e.h)&&d(e.s)&&d(e.l)&&(a=(0,i.Px)(e.s),l=(0,i.Px)(e.l),t=(0,r.YL)(e.h,a,l),c=!0,f="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=(0,i.TV)(n),{ok:c,format:e.format||f,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var s="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),l="[\\s|\\(]+(".concat(s,")[,|\\s]+(").concat(s,")[,|\\s]+(").concat(s,")\\s*\\)?"),c="[\\s|\\(]+(".concat(s,")[,|\\s]+(").concat(s,")[,|\\s]+(").concat(s,")[,|\\s]+(").concat(s,")\\s*\\)?"),u={CSS_UNIT:new RegExp(s),rgb:RegExp("rgb"+l),rgba:RegExp("rgba"+c),hsl:RegExp("hsl"+l),hsla:RegExp("hsla"+c),hsv:RegExp("hsv"+l),hsva:RegExp("hsva"+c),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function d(e){return!!u.CSS_UNIT.exec(String(e))}},2006(e,t,n){"use strict";n.d(t,{q:()=>s});var r=n(8956),o=n(718),i=n(7358),a=n(24),s=function(){function e(t,n){if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=(0,r.oS)(t)),this.originalInput=t;var o,a=(0,i.RO)(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=null!=(o=n.format)?o:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return 128>this.getBrightness()},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return .2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=(0,a.TV)(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=(0,r.wE)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=(0,r.wE)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=(0,r.K6)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=(0,r.K6)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),(0,r.Ob)(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),(0,r.H)(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*(0,a.Cg)(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*(0,a.Cg)(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+(0,r.Ob)(this.r,this.g,this.b,!1),t=0,n=Object.entries(o.D);t<n.length;t++){var i=n[t],a=i[0];if(e===i[1])return a}return!1},e.prototype.toString=function(e){var t=!!e;e=null!=e?e:this.format;var n=!1,r=this.a<1&&this.a>=0;return!t&&r&&(e.startsWith("hex")||"name"===e)?"name"===e&&0===this.a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),("hex"===e||"hex6"===e)&&(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=(0,a.J$)(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-(t/100*255)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-(t/100*255)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-(t/100*255)))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=(0,a.J$)(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=(0,a.J$)(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=(0,a.J$)(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}()},24(e,t,n){"use strict";function r(e,t){"string"==typeof(n=e)&&-1!==n.indexOf(".")&&1===parseFloat(n)&&(e="100%");var n,r,o="string"==typeof(r=e)&&-1!==r.indexOf("%");return(e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),o&&(e=parseInt(String(e*t),10)/100),1e-6>Math.abs(e-t))?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function o(e){return Math.min(1,Math.max(0,e))}function i(e){return(isNaN(e=parseFloat(e))||e<0||e>1)&&(e=1),e}function a(e){return e<=1?"".concat(100*Number(e),"%"):e}function s(e){return 1===e.length?"0"+e:String(e)}n.d(t,{Cg:()=>r,J$:()=>o,Px:()=>a,TV:()=>i,wl:()=>s})},7138(e,t,n){"use strict";n.d(t,{A:()=>g});var r=n(6233),o=n(2155),i=n(316),a=n(9352);n(6216);var s=n(7233),l=o.createContext(null),c=n(8128),u=n(8367),d=[],f=n(8451),p="rc-util-locker-".concat(Date.now()),h=0,m=function(e){return!1!==e&&((0,a.A)()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)};let g=o.forwardRef(function(e,t){var n,g,v,b=e.open,y=e.autoLock,w=e.getContainer,x=(e.debug,e.autoDestroy),A=void 0===x||x,E=e.children,$=o.useState(b),S=(0,r.A)($,2),C=S[0],O=S[1],k=C||b;o.useEffect(function(){(A||b)&&O(b)},[b,A]);var _=o.useState(function(){return m(w)}),I=(0,r.A)(_,2),R=I[0],j=I[1];o.useEffect(function(){var e=m(w);j(null!=e?e:null)});var N=function(e,t){var n=o.useState(function(){return(0,a.A)()?document.createElement("div"):null}),i=(0,r.A)(n,1)[0],s=o.useRef(!1),f=o.useContext(l),p=o.useState(d),h=(0,r.A)(p,2),m=h[0],g=h[1],v=f||(s.current?void 0:function(e){g(function(t){return[e].concat((0,c.A)(t))})});function b(){i.parentElement||document.body.appendChild(i),s.current=!0}function y(){var e;null==(e=i.parentElement)||e.removeChild(i),s.current=!1}return(0,u.A)(function(){return e?f?f(b):b():y(),y},[e]),(0,u.A)(function(){m.length&&(m.forEach(function(e){return e()}),g(d))},[m]),[i,v]}(k&&!R,0),T=(0,r.A)(N,2),P=T[0],M=T[1],z=null!=R?R:P;n=!!(y&&b&&(0,a.A)()&&(z===P||z===document.body)),g=o.useState(function(){return h+=1,"".concat(p,"_").concat(h)}),v=(0,r.A)(g,1)[0],(0,u.A)(function(){if(n){var e,t=(e=document.body,"undefined"==typeof document||!e||!(e instanceof Element)?{width:0,height:0}:function(e){var t,n,r="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),o=document.createElement("div");o.id=r;var i=o.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.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,";"):"",d=c?"height: ".concat(s.height,";"):"";(0,f.BD)("\n#".concat(r,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),r)}catch(e){console.error(e),t=l,n=c}}document.body.appendChild(o);var p=e&&t&&!isNaN(t)?t:o.offsetWidth-o.clientWidth,h=e&&n&&!isNaN(n)?n:o.offsetHeight-o.clientHeight;return document.body.removeChild(o),(0,f.m6)(r),{width:p,height:h}}(e)).width,r=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,f.BD)("\nhtml body {\n overflow-y: hidden;\n ".concat(r?"width: calc(100% - ".concat(t,"px);"):"","\n}"),v)}else(0,f.m6)(v);return function(){(0,f.m6)(v)}},[n,v]);var B=null;E&&(0,s.f3)(E)&&t&&(B=E.ref);var L=(0,s.xK)(B,t);if(!k||!(0,a.A)()||void 0===R)return null;var F=!1===z,D=E;return t&&(D=o.cloneElement(E,{ref:L})),o.createElement(l.Provider,{value:M},F?D:(0,i.createPortal)(D,z))})},6099(e,t,n){"use strict";n.d(t,{A:()=>D});var r=n(3779),o=n(6233),i=n(8827),a=n(7138),s=n(395),l=n.n(s),c=n(5925),u=n(2634),d=n(1843),f=n(1186),p=n(4121),h=n(8367),m=n(4080),g=n(2155),v=n(2664),b=n(7425),y=n(7233);function w(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,s=i.content,c=o.x,u=o.y,d=g.useRef();if(!n||!n.points)return null;var f={position:"absolute"};if(!1!==n.autoArrow){var p=n.points[0],h=n.points[1],m=p[0],v=p[1],b=h[0],y=h[1];m!==b&&["t","b"].includes(m)?"t"===m?f.top=0:f.bottom=0:f.top=void 0===u?0:u,v!==y&&["l","r"].includes(v)?"l"===v?f.left=0:f.right=0:f.left=void 0===c?0:c}return g.createElement("div",{ref:d,className:l()("".concat(t,"-arrow"),a),style:f},s)}function x(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?g.createElement(b.Ay,(0,v.A)({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(e){var n=e.className;return g.createElement("div",{style:{zIndex:r},className:l()("".concat(t,"-mask"),n)})}):null}var A=g.memo(function(e){return e.children},function(e,t){return t.cache}),E=g.forwardRef(function(e,t){var n=e.popup,i=e.className,a=e.prefixCls,s=e.style,u=e.target,d=e.onVisibleChanged,f=e.open,p=e.keepDom,m=e.fresh,E=e.onClick,$=e.mask,S=e.arrow,C=e.arrowPos,O=e.align,k=e.motion,_=e.maskMotion,I=e.forceRender,R=e.getPopupContainer,j=e.autoDestroy,N=e.portal,T=e.zIndex,P=e.onMouseEnter,M=e.onMouseLeave,z=e.onPointerEnter,B=e.ready,L=e.offsetX,F=e.offsetY,D=e.offsetR,H=e.offsetB,W=e.onAlign,U=e.onPrepare,q=e.stretch,V=e.targetWidth,G=e.targetHeight,X="function"==typeof n?n():n,K=f||p,Y=(null==R?void 0:R.length)>0,Z=g.useState(!R||!Y),Q=(0,o.A)(Z,2),J=Q[0],ee=Q[1];if((0,h.A)(function(){!J&&Y&&u&&ee(!0)},[J,Y,u]),!J)return null;var et="auto",en={left:"-1000vw",top:"-1000vh",right:et,bottom:et};if(B||!f){var er,eo=O.points,ei=O.dynamicInset||(null==(er=O._experimental)?void 0:er.dynamicInset),ea=ei&&"r"===eo[0][1],es=ei&&"b"===eo[0][0];ea?(en.right=D,en.left=et):(en.left=L,en.right=et),es?(en.bottom=H,en.top=et):(en.top=F,en.bottom=et)}var el={};return q&&(q.includes("height")&&G?el.height=G:q.includes("minHeight")&&G&&(el.minHeight=G),q.includes("width")&&V?el.width=V:q.includes("minWidth")&&V&&(el.minWidth=V)),f||(el.pointerEvents="none"),g.createElement(N,{open:I||K,getContainer:R&&function(){return R(u)},autoDestroy:j},g.createElement(x,{prefixCls:a,open:f,zIndex:T,mask:$,motion:_}),g.createElement(c.A,{onResize:W,disabled:!f},function(e){return g.createElement(b.Ay,(0,v.A)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:I,leavedClassName:"".concat(a,"-hidden")},k,{onAppearPrepare:U,onEnterPrepare:U,visible:f,onVisibleChanged:function(e){var t;null==k||null==(t=k.onVisibleChanged)||t.call(k,e),d(e)}}),function(n,o){var c=n.className,u=n.style,d=l()(a,c,i);return g.createElement("div",{ref:(0,y.K4)(e,t,o),className:d,style:(0,r.A)((0,r.A)((0,r.A)((0,r.A)({"--arrow-x":"".concat(C.x||0,"px"),"--arrow-y":"".concat(C.y||0,"px")},en),el),u),{},{boxSizing:"border-box",zIndex:T},s),onMouseEnter:P,onMouseLeave:M,onPointerEnter:z,onClick:E},S&&g.createElement(w,{prefixCls:a,arrow:S,arrowPos:C,align:O}),g.createElement(A,{cache:!f&&!m},X))})}))}),$=g.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=(0,y.f3)(n),i=g.useCallback(function(e){(0,y.Xf)(t,r?r(e):e)},[r]),a=(0,y.xK)(i,n.ref);return o?g.cloneElement(n,{ref:a}):n}),S=g.createContext(null);function C(e){return e?Array.isArray(e)?e:[e]:[]}var O=n(9677);function k(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function _(e){return e.ownerDocument.defaultView}function I(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=_(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some(function(e){return r.includes(e)})&&t.push(n),n=n.parentElement}return t}function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function j(e){return R(parseFloat(e),0)}function N(e,t){var n=(0,r.A)({},e);return(t||[]).forEach(function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=_(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,l=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,h=j(i),m=j(a),g=j(s),v=j(l),b=R(Math.round(c.width/f*1e3)/1e3),y=R(Math.round(c.height/u*1e3)/1e3),w=h*y,x=g*b,A=0,E=0;if("clip"===r){var $=j(o);A=$*b,E=$*y}var S=c.x+x-A,C=c.y+w-E,O=S+c.width+2*A-x-v*b-(f-p-g-v)*b,k=C+c.height+2*E-w-m*y-(u-d-h-m)*y;n.left=Math.max(n.left,S),n.top=Math.max(n.top,C),n.right=Math.min(n.right,O),n.bottom=Math.min(n.bottom,k)}}),n}function T(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function P(e,t){var n=(0,o.A)(t||[],2),r=n[0],i=n[1];return[T(e.width,r),T(e.height,i)]}function M(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function z(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function B(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(e,r){return r===t?n[e]||"c":e}).join("")}var L=n(8128);n(6216);var F=["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 D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.A;return g.forwardRef(function(t,n){var a,s,v,b,y,w,x,A,j,T,D,H,W,U,q,V,G=t.prefixCls,X=void 0===G?"rc-trigger-popup":G,K=t.children,Y=t.action,Z=t.showAction,Q=t.hideAction,J=t.popupVisible,ee=t.defaultPopupVisible,et=t.onPopupVisibleChange,en=t.afterPopupVisibleChange,er=t.mouseEnterDelay,eo=t.mouseLeaveDelay,ei=void 0===eo?.1:eo,ea=t.focusDelay,es=t.blurDelay,el=t.mask,ec=t.maskClosable,eu=t.getPopupContainer,ed=t.forceRender,ef=t.autoDestroy,ep=t.destroyPopupOnHide,eh=t.popup,em=t.popupClassName,eg=t.popupStyle,ev=t.popupPlacement,eb=t.builtinPlacements,ey=void 0===eb?{}:eb,ew=t.popupAlign,ex=t.zIndex,eA=t.stretch,eE=t.getPopupClassNameFromAlign,e$=t.fresh,eS=t.alignPoint,eC=t.onPopupClick,eO=t.onPopupAlign,ek=t.arrow,e_=t.popupMotion,eI=t.maskMotion,eR=t.popupTransitionName,ej=t.popupAnimation,eN=t.maskTransitionName,eT=t.maskAnimation,eP=t.className,eM=t.getTriggerDOMNode,ez=(0,i.A)(t,F),eB=g.useState(!1),eL=(0,o.A)(eB,2),eF=eL[0],eD=eL[1];(0,h.A)(function(){eD((0,m.A)())},[]);var eH=g.useRef({}),eW=g.useContext(S),eU=g.useMemo(function(){return{registerSubPopup:function(e,t){eH.current[e]=t,null==eW||eW.registerSubPopup(e,t)}}},[eW]),eq=(0,p.A)(),eV=g.useState(null),eG=(0,o.A)(eV,2),eX=eG[0],eK=eG[1],eY=g.useRef(null),eZ=(0,f.A)(function(e){eY.current=e,(0,u.fk)(e)&&eX!==e&&eK(e),null==eW||eW.registerSubPopup(eq,e)}),eQ=g.useState(null),eJ=(0,o.A)(eQ,2),e0=eJ[0],e1=eJ[1],e2=g.useRef(null),e5=(0,f.A)(function(e){(0,u.fk)(e)&&e0!==e&&(e1(e),e2.current=e)}),e6=g.Children.only(K),e4=(null==e6?void 0:e6.props)||{},e3={},e8=(0,f.A)(function(e){var t,n;return(null==e0?void 0:e0.contains(e))||(null==(t=(0,d.j)(e0))?void 0:t.host)===e||e===e0||(null==eX?void 0:eX.contains(e))||(null==(n=(0,d.j)(eX))?void 0:n.host)===e||e===eX||Object.values(eH.current).some(function(t){return(null==t?void 0:t.contains(e))||e===t})}),e9=k(X,e_,ej,eR),e7=k(X,eI,eT,eN),te=g.useState(ee||!1),tt=(0,o.A)(te,2),tn=tt[0],tr=tt[1],to=null!=J?J:tn,ti=(0,f.A)(function(e){void 0===J&&tr(e)});(0,h.A)(function(){tr(J||!1)},[J]);var ta=g.useRef(to);ta.current=to;var ts=g.useRef([]);ts.current=[];var tl=(0,f.A)(function(e){var t;ti(e),(null!=(t=ts.current[ts.current.length-1])?t:to)!==e&&(ts.current.push(e),null==et||et(e))}),tc=g.useRef(),tu=function(){clearTimeout(tc.current)},td=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;tu(),0===t?tl(e):tc.current=setTimeout(function(){tl(e)},1e3*t)};g.useEffect(function(){return tu},[]);var tf=g.useState(!1),tp=(0,o.A)(tf,2),th=tp[0],tm=tp[1];(0,h.A)(function(e){(!e||to)&&tm(!0)},[to]);var tg=g.useState(null),tv=(0,o.A)(tg,2),tb=tv[0],ty=tv[1],tw=g.useState(null),tx=(0,o.A)(tw,2),tA=tx[0],tE=tx[1],t$=function(e){tE([e.clientX,e.clientY])},tS=(a=eS&&null!==tA?tA:e0,s=g.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:ey[ev]||{}}),b=(v=(0,o.A)(s,2))[0],y=v[1],w=g.useRef(0),x=g.useMemo(function(){return eX?I(eX):[]},[eX]),A=g.useRef({}),to||(A.current={}),j=(0,f.A)(function(){if(eX&&a&&to){var e=eX.ownerDocument,t=_(eX).getComputedStyle(eX),n=t.width,i=t.height,s=t.position,l=eX.style.left,c=eX.style.top,d=eX.style.right,f=eX.style.bottom,p=eX.style.overflow,h=(0,r.A)((0,r.A)({},ey[ev]),ew),m=e.createElement("div");if(null==(E=eX.parentElement)||E.appendChild(m),m.style.left="".concat(eX.offsetLeft,"px"),m.style.top="".concat(eX.offsetTop,"px"),m.style.position=s,m.style.height="".concat(eX.offsetHeight,"px"),m.style.width="".concat(eX.offsetWidth,"px"),eX.style.left="0",eX.style.top="0",eX.style.right="auto",eX.style.bottom="auto",eX.style.overflow="hidden",Array.isArray(a))k={x:a[0],y:a[1],width:0,height:0};else{var g,v,b,w,E,$,S,C,k,I,j,T=a.getBoundingClientRect();T.x=null!=(I=T.x)?I:T.left,T.y=null!=(j=T.y)?j:T.top,k={x:T.x,y:T.y,width:T.width,height:T.height}}var L=eX.getBoundingClientRect();L.x=null!=($=L.x)?$:L.left,L.y=null!=(S=L.y)?S:L.top;var F=e.documentElement,D=F.clientWidth,H=F.clientHeight,W=F.scrollWidth,U=F.scrollHeight,q=F.scrollTop,V=F.scrollLeft,G=L.height,X=L.width,K=k.height,Y=k.width,Z=h.htmlRegion,Q="visible",J="visibleFirst";"scroll"!==Z&&Z!==J&&(Z=Q);var ee=Z===J,et=N({left:-V,top:-q,right:W-V,bottom:U-q},x),en=N({left:0,top:0,right:D,bottom:H},x),er=Z===Q?en:et,eo=ee?en:er;eX.style.left="auto",eX.style.top="auto",eX.style.right="0",eX.style.bottom="0";var ei=eX.getBoundingClientRect();eX.style.left=l,eX.style.top=c,eX.style.right=d,eX.style.bottom=f,eX.style.overflow=p,null==(C=eX.parentElement)||C.removeChild(m);var ea=R(Math.round(X/parseFloat(n)*1e3)/1e3),es=R(Math.round(G/parseFloat(i)*1e3)/1e3);if(!(0===ea||0===es||(0,u.fk)(a)&&!(0,O.A)(a))){var el=h.offset,ec=h.targetOffset,eu=P(L,el),ed=(0,o.A)(eu,2),ef=ed[0],ep=ed[1],eh=P(k,ec),em=(0,o.A)(eh,2),eg=em[0],eb=em[1];k.x-=eg,k.y-=eb;var ex=h.points||[],eA=(0,o.A)(ex,2),eE=eA[0],e$=M(eA[1]),eS=M(eE),eC=z(k,e$),ek=z(L,eS),e_=(0,r.A)({},h),eI=eC.x-ek.x+ef,eR=eC.y-ek.y+ep,ej=tu(eI,eR),eN=tu(eI,eR,en),eT=z(k,["t","l"]),eP=z(L,["t","l"]),eM=z(k,["b","r"]),ez=z(L,["b","r"]),eB=h.overflow||{},eL=eB.adjustX,eF=eB.adjustY,eD=eB.shiftX,eH=eB.shiftY,eW=function(e){return"boolean"==typeof e?e:e>=0};td();var eU=eW(eF),eq=eS[0]===e$[0];if(eU&&"t"===eS[0]&&(v>eo.bottom||A.current.bt)){var eV=eR;eq?eV-=G-K:eV=eT.y-ez.y-ep;var eG=tu(eI,eV),eK=tu(eI,eV,en);eG>ej||eG===ej&&(!ee||eK>=eN)?(A.current.bt=!0,eR=eV,ep=-ep,e_.points=[B(eS,0),B(e$,0)]):A.current.bt=!1}if(eU&&"b"===eS[0]&&(g<eo.top||A.current.tb)){var eY=eR;eq?eY+=G-K:eY=eM.y-eP.y-ep;var eZ=tu(eI,eY),eQ=tu(eI,eY,en);eZ>ej||eZ===ej&&(!ee||eQ>=eN)?(A.current.tb=!0,eR=eY,ep=-ep,e_.points=[B(eS,0),B(e$,0)]):A.current.tb=!1}var eJ=eW(eL),e0=eS[1]===e$[1];if(eJ&&"l"===eS[1]&&(w>eo.right||A.current.rl)){var e1=eI;e0?e1-=X-Y:e1=eT.x-ez.x-ef;var e2=tu(e1,eR),e5=tu(e1,eR,en);e2>ej||e2===ej&&(!ee||e5>=eN)?(A.current.rl=!0,eI=e1,ef=-ef,e_.points=[B(eS,1),B(e$,1)]):A.current.rl=!1}if(eJ&&"r"===eS[1]&&(b<eo.left||A.current.lr)){var e6=eI;e0?e6+=X-Y:e6=eM.x-eP.x-ef;var e4=tu(e6,eR),e3=tu(e6,eR,en);e4>ej||e4===ej&&(!ee||e3>=eN)?(A.current.lr=!0,eI=e6,ef=-ef,e_.points=[B(eS,1),B(e$,1)]):A.current.lr=!1}td();var e8=!0===eD?0:eD;"number"==typeof e8&&(b<en.left&&(eI-=b-en.left-ef,k.x+Y<en.left+e8&&(eI+=k.x-en.left+Y-e8)),w>en.right&&(eI-=w-en.right-ef,k.x>en.right-e8&&(eI+=k.x-en.right+e8)));var e9=!0===eH?0:eH;"number"==typeof e9&&(g<en.top&&(eR-=g-en.top-ep,k.y+K<en.top+e9&&(eR+=k.y-en.top+K-e9)),v>en.bottom&&(eR-=v-en.bottom-ep,k.y>en.bottom-e9&&(eR+=k.y-en.bottom+e9)));var e7=L.x+eI,te=L.y+eR,tt=k.x,tn=k.y,tr=Math.max(e7,tt),ti=Math.min(e7+X,tt+Y),ta=Math.max(te,tn),ts=Math.min(te+G,tn+K);null==eO||eO(eX,e_);var tl=ei.right-L.x-(eI+L.width),tc=ei.bottom-L.y-(eR+L.height);1===ea&&(eI=Math.round(eI),tl=Math.round(tl)),1===es&&(eR=Math.round(eR),tc=Math.round(tc)),y({ready:!0,offsetX:eI/ea,offsetY:eR/es,offsetR:tl/ea,offsetB:tc/es,arrowX:((tr+ti)/2-e7)/ea,arrowY:((ta+ts)/2-te)/es,scaleX:ea,scaleY:es,align:e_})}function tu(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:er,r=L.x+e,o=L.y+t,i=Math.max(r,n.left),a=Math.max(o,n.top);return Math.max(0,(Math.min(r+X,n.right)-i)*(Math.min(o+G,n.bottom)-a))}function td(){v=(g=L.y+eR)+G,w=(b=L.x+eI)+X}}}),T=function(){y(function(e){return(0,r.A)((0,r.A)({},e),{},{ready:!1})})},(0,h.A)(T,[ev]),(0,h.A)(function(){to||T()},[to]),[b.ready,b.offsetX,b.offsetY,b.offsetR,b.offsetB,b.arrowX,b.arrowY,b.scaleX,b.scaleY,b.align,function(){w.current+=1;var e=w.current;Promise.resolve().then(function(){w.current===e&&j()})}]),tC=(0,o.A)(tS,11),tO=tC[0],tk=tC[1],t_=tC[2],tI=tC[3],tR=tC[4],tj=tC[5],tN=tC[6],tT=tC[7],tP=tC[8],tM=tC[9],tz=tC[10],tB=(D=void 0===Y?"hover":Y,g.useMemo(function(){var e=C(null!=Z?Z:D),t=C(null!=Q?Q:D),n=new Set(e),r=new Set(t);return eF&&(n.has("hover")&&(n.delete("hover"),n.add("click")),r.has("hover")&&(r.delete("hover"),r.add("click"))),[n,r]},[eF,D,Z,Q])),tL=(0,o.A)(tB,2),tF=tL[0],tD=tL[1],tH=tF.has("click"),tW=tD.has("click")||tD.has("contextMenu"),tU=(0,f.A)(function(){th||tz()});H=function(){ta.current&&eS&&tW&&td(!1)},(0,h.A)(function(){if(to&&e0&&eX){var e=I(e0),t=I(eX),n=_(eX),r=new Set([n].concat((0,L.A)(e),(0,L.A)(t)));function o(){tU(),H()}return r.forEach(function(e){e.addEventListener("scroll",o,{passive:!0})}),n.addEventListener("resize",o,{passive:!0}),tU(),function(){r.forEach(function(e){e.removeEventListener("scroll",o),n.removeEventListener("resize",o)})}}},[to,e0,eX]),(0,h.A)(function(){tU()},[tA,ev]),(0,h.A)(function(){to&&!(null!=ey&&ey[ev])&&tU()},[JSON.stringify(ew)]);var tq=g.useMemo(function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s,l=i[a];if(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}(null==(s=e[l])?void 0:s.points,o,r))return"".concat(t,"-placement-").concat(l)}return""}(ey,X,tM,eS);return l()(e,null==eE?void 0:eE(tM))},[tM,eE,ey,X,eS]);g.useImperativeHandle(n,function(){return{nativeElement:e2.current,popupElement:eY.current,forceAlign:tU}});var tV=g.useState(0),tG=(0,o.A)(tV,2),tX=tG[0],tK=tG[1],tY=g.useState(0),tZ=(0,o.A)(tY,2),tQ=tZ[0],tJ=tZ[1],t0=function(){if(eA&&e0){var e=e0.getBoundingClientRect();tK(e.width),tJ(e.height)}};function t1(e,t,n,r){e3[e]=function(o){var i;null==r||r(o),td(t,n);for(var a=arguments.length,s=Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];null==(i=e4[e])||i.call.apply(i,[e4,o].concat(s))}}(0,h.A)(function(){tb&&(tz(),tb(),ty(null))},[tb]),(tH||tW)&&(e3.onClick=function(e){var t;ta.current&&tW?td(!1):!ta.current&&tH&&(t$(e),td(!0));for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null==(t=e4.onClick)||t.call.apply(t,[e4,e].concat(r))}),W=void 0===ec||ec,(U=g.useRef(to)).current=to,g.useEffect(function(){if(tW&&eX&&(!el||W)){var e=function(e){var t;U.current&&!e8((null==(t=e.composedPath)||null==(t=t.call(e))?void 0:t[0])||e.target)&&td(!1)},t=_(eX);t.addEventListener("mousedown",e,!0),t.addEventListener("contextmenu",e,!0);var n=(0,d.j)(e0);return n&&(n.addEventListener("mousedown",e,!0),n.addEventListener("contextmenu",e,!0)),function(){t.removeEventListener("mousedown",e,!0),t.removeEventListener("contextmenu",e,!0),n&&(n.removeEventListener("mousedown",e,!0),n.removeEventListener("contextmenu",e,!0))}}},[tW,e0,eX,el,W]);var t2=tF.has("hover"),t5=tD.has("hover");t2&&(t1("onMouseEnter",!0,er,function(e){t$(e)}),t1("onPointerEnter",!0,er,function(e){t$(e)}),q=function(e){(to||th)&&null!=eX&&eX.contains(e.target)&&td(!0,er)},eS&&(e3.onMouseMove=function(e){var t;null==(t=e4.onMouseMove)||t.call(e4,e)})),t5&&(t1("onMouseLeave",!1,ei),t1("onPointerLeave",!1,ei),V=function(){td(!1,ei)}),tF.has("focus")&&t1("onFocus",!0,ea),tD.has("focus")&&t1("onBlur",!1,es),tF.has("contextMenu")&&(e3.onContextMenu=function(e){var t;ta.current&&tD.has("contextMenu")?td(!1):(t$(e),td(!0)),e.preventDefault();for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null==(t=e4.onContextMenu)||t.call.apply(t,[e4,e].concat(r))}),eP&&(e3.className=l()(e4.className,eP));var t6=(0,r.A)((0,r.A)({},e4),e3),t4={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(function(e){ez[e]&&(t4[e]=function(){for(var t,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];null==(t=t6[e])||t.call.apply(t,[t6].concat(r)),ez[e].apply(ez,r)})});var t3=g.cloneElement(e6,(0,r.A)((0,r.A)({},t6),t4)),t8=ek?(0,r.A)({},!0!==ek?ek:{}):null;return g.createElement(g.Fragment,null,g.createElement(c.A,{disabled:!to,ref:e5,onResize:function(){t0(),tU()}},g.createElement($,{getTriggerDOMNode:eM},t3)),g.createElement(S.Provider,{value:eU},g.createElement(E,{portal:e,ref:eZ,prefixCls:X,popup:eh,className:l()(em,tq),style:eg,target:e0,onMouseEnter:q,onMouseLeave:V,onPointerEnter:q,zIndex:ex,open:to,keepDom:th,fresh:e$,onClick:eC,mask:el,motion:e9,maskMotion:e7,onVisibleChanged:function(e){tm(!1),tz(),null==en||en(e)},onPrepare:function(){return new Promise(function(e){t0(),ty(function(){return e})})},forceRender:ed,autoDestroy:ef||ep||!1,getPopupContainer:eu,align:tM,arrow:t8,arrowPos:{x:tj,y:tN},ready:tO,offsetX:tk,offsetY:t_,offsetR:tI,offsetB:tR,onAlign:tU,stretch:eA,targetWidth:tX/tT,targetHeight:tQ/tP})))})}(a.A)},7085(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(2155),o=n(8749),i=n(59);let a=e=>{let{space:t,form:n,children:a}=e;if(null==a)return null;let s=a;return n&&(s=r.createElement(o.XB,{override:!0,status:!0},s)),t&&(s=r.createElement(i.K6,null,s)),s}},2125(e,t,n){"use strict";n.d(t,{A:()=>l,U:()=>s});var r=n(2155),o=n(8127),i=n(2770),a=n(1179);function s(e){return t=>r.createElement(i.Ay,{theme:{token:{motion:!1,zIndexPopupBase:0}}},r.createElement(e,Object.assign({},t)))}let l=(e,t,n,i)=>s(s=>{let{prefixCls:l,style:c}=s,u=r.useRef(null),[d,f]=r.useState(0),[p,h]=r.useState(0),[m,g]=(0,o.A)(!1,{value:s.open}),{getPrefixCls:v}=r.useContext(a.QO),b=v(t||"select",l);r.useEffect(()=>{if(g(!0),"undefined"!=typeof ResizeObserver){let e=new ResizeObserver(e=>{let t=e[0].target;f(t.offsetHeight+8),h(t.offsetWidth)}),t=setInterval(()=>{var r;let o=n?`.${n(b)}`:`.${b}-dropdown`,i=null==(r=u.current)?void 0:r.querySelector(o);i&&(clearInterval(t),e.observe(i))},10);return()=>{clearInterval(t),e.disconnect()}}},[]);let y=Object.assign(Object.assign({},s),{style:Object.assign(Object.assign({},c),{margin:0}),open:m,visible:m,getPopupContainer:()=>u.current});return i&&(y=i(y)),r.createElement("div",{ref:u,style:{paddingBottom:d,position:"relative",minWidth:p}},r.createElement(e,Object.assign({},y)))})},1616(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(2155),o=n(7544);let i=e=>{let t;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?t=e:e&&(t={clearIcon:r.createElement(o.A,null)}),t}},8775(e,t,n){"use strict";n.d(t,{YK:()=>c,jH:()=>a});var r=n(2155),o=n(8381),i=n(6332);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},c=(e,t)=>{let n,[,a]=(0,o.Ay)(),c=r.useContext(i.A),u=e in s;if(void 0!==t)n=[t,t];else{let r=null!=c?c:0;u?r+=(c?0:a.zIndexPopupBase)+s[e]:r+=l[e],n=[void 0===c?t:r,r]}return n}},6079(e,t,n){"use strict";n.d(t,{A:()=>c,b:()=>l});var r=n(1179);let o=()=>({height:0,opacity:0}),i=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,n)=>void 0!==n?n:`${e}-${t}`,c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.yH;return{motionName:`${e}-motion-collapse`,onAppearStart:o,onEnterStart:o,onAppearActive:i,onEnterActive:i,onLeaveStart:a,onLeaveActive:o,onAppearEnd:s,onEnterEnd:s,onLeaveEnd:s,motionDeadline:500}}},6197(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2597);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"]}},i={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"]}},a=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function s(e){let{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:s,offset:l,borderRadius:c,visibleFirst:u}=e,d=t/2,f={};return Object.keys(o).forEach(e=>{let p=Object.assign(Object.assign({},s&&i[e]||o[e]),{offset:[0,0],dynamicInset:!0});switch(f[e]=p,a.has(e)&&(p.autoArrow=!1),e){case"top":case"topLeft":case"topRight":p.offset[1]=-d-l;break;case"bottom":case"bottomLeft":case"bottomRight":p.offset[1]=d+l;break;case"left":case"leftTop":case"leftBottom":p.offset[0]=-d-l;break;case"right":case"rightTop":case"rightBottom":p.offset[0]=d+l}let h=(0,r.Ke)({contentRadius:c,limitVerticalRadius:!0});if(s)switch(e){case"topLeft":case"bottomLeft":p.offset[0]=-h.arrowOffsetHorizontal-d;break;case"topRight":case"bottomRight":p.offset[0]=h.arrowOffsetHorizontal+d;break;case"leftTop":case"rightTop":p.offset[1]=-(2*h.arrowOffsetHorizontal)+d;break;case"leftBottom":case"rightBottom":p.offset[1]=2*h.arrowOffsetHorizontal-d}p.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};let o={};switch(e){case"top":case"bottom":o.shiftX=2*t.arrowOffsetHorizontal+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=2*t.arrowOffsetVertical+n,o.shiftX=!0,o.adjustX=!0}let i=Object.assign(Object.assign({},o),r&&"object"==typeof r?r:{});return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}(e,h,t,n),u&&(p.htmlRegion="visibleFirst")}),f}},7886(e,t,n){"use strict";n.d(t,{Ob:()=>a,fx:()=>i,zv:()=>o});var r=n(2155);function o(e){return e&&r.isValidElement(e)&&e.type===r.Fragment}let i=(e,t,n)=>r.isValidElement(e)?r.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t;function a(e,t){return i(e,e,t)}},9461(e,t,n){"use strict";n.d(t,{Ay:()=>a,ye:()=>i});var r=n(2155),o=n(8381);let i=["xxl","xl","lg","md","sm","xs"];function a(){let e,[,t]=(0,o.Ay)(),n=((e=[].concat(i).reverse()).forEach((n,r)=>{let o=n.toUpperCase(),i=`screen${o}Min`,a=`screen${o}`;if(!(t[i]<=t[a]))throw Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(r<e.length-1){let n=`screen${o}Max`;if(!(t[a]<=t[n]))throw Error(`${a}<=${n} fails : !(${t[a]}<=${t[n]})`);let i=e[r+1].toUpperCase(),s=`screen${i}Min`;if(!(t[n]<=t[s]))throw Error(`${n}<=${s} fails : !(${t[n]}<=${t[s]})`)}}),{xs:`(max-width: ${t.screenXSMax}px)`,sm:`(min-width: ${t.screenSM}px)`,md:`(min-width: ${t.screenMD}px)`,lg:`(min-width: ${t.screenLG}px)`,xl:`(min-width: ${t.screenXL}px)`,xxl:`(min-width: ${t.screenXXL}px)`});return r.useMemo(()=>{let e=new Map,t=-1,r={};return{matchHandlers:{},dispatch:t=>(r=t,e.forEach(e=>e(r)),e.size>=1),subscribe(n){return e.size||this.register(),t+=1,e.set(t,n),n(r),t},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(n).forEach(e=>{let t=n[e],r=this.matchHandlers[t];null==r||r.mql.removeListener(null==r?void 0:r.listener)}),e.clear()},register(){Object.keys(n).forEach(e=>{let t=n[e],o=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},r),{[e]:n}))},i=window.matchMedia(t);i.addListener(o),this.matchHandlers[t]={mql:i,listener:o},o(i)})},responsiveMap:n}},[t])}},3658(e,t,n){"use strict";n.d(t,{L:()=>i,v:()=>a});var r=n(395),o=n.n(r);function i(e,t,n){return o()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}let a=(e,t)=>t||e},1105(e,t,n){"use strict";n.d(t,{_n:()=>i,rJ:()=>a});var r=n(2155);function o(){}n(6216);let i=r.createContext({}),a=()=>{let e=()=>{};return e.deprecated=o,e}},7181(e,t,n){"use strict";n.d(t,{A:()=>w});var r=n(2155),o=n(395),i=n.n(o),a=n(9677),s=n(7233),l=n(1179),c=n(7886);let u=(0,n(6850).Or)("Wave",e=>[(e=>{let{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,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}`}}}}})(e)]);var d=n(1186),f=n(4597),p=n(8381),h=n(6796),m=n(7425),g=n(2310);function v(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}function b(e){return Number.isNaN(e)?0:e}let y=e=>{let{className:t,target:n,component:o}=e,a=r.useRef(null),[l,c]=r.useState(null),[u,d]=r.useState([]),[p,y]=r.useState(0),[w,x]=r.useState(0),[A,E]=r.useState(0),[$,S]=r.useState(0),[C,O]=r.useState(!1),k={left:p,top:w,width:A,height:$,borderRadius:u.map(e=>`${e}px`).join(" ")};function _(){let e=getComputedStyle(n);c(function(e){let{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return v(t)?t:v(n)?n:v(r)?r:null}(n));let t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;y(t?n.offsetLeft:b(-parseFloat(r))),x(t?n.offsetTop:b(-parseFloat(o))),E(n.offsetWidth),S(n.offsetHeight);let{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:s,borderBottomRightRadius:l}=e;d([i,a,l,s].map(e=>b(parseFloat(e))))}if(l&&(k["--wave-color"]=l),r.useEffect(()=>{if(n){let e,t=(0,f.A)(()=>{_(),O(!0)});return"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(_)).observe(n),()=>{f.A.cancel(t),null==e||e.disconnect()}}},[]),!C)return null;let I=("Checkbox"===o||"Radio"===o)&&(null==n?void 0:n.classList.contains(h.D));return r.createElement(m.Ay,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){let e=null==(n=a.current)?void 0:n.parentElement;(0,g.v)(e).then(()=>{null==e||e.remove()})}return!1}},(e,n)=>{let{className:o}=e;return r.createElement("div",{ref:(0,s.K4)(a,n),className:i()(t,o,{"wave-quick":I}),style:k})})},w=e=>{let{children:t,disabled:n,component:o}=e,{getPrefixCls:m}=(0,r.useContext)(l.QO),v=(0,r.useRef)(null),b=m("wave"),[,w]=u(b),x=((e,t,n)=>{let{wave:o}=r.useContext(l.QO),[,i,a]=(0,p.Ay)(),s=(0,d.A)(s=>{let l=e.current;if((null==o?void 0:o.disabled)||!l)return;let c=l.querySelector(`.${h.D}`)||l,{showEffect:u}=o||{};(u||((e,t)=>{var n;let{component:o}=t;if("Checkbox"===o&&!(null==(n=e.querySelector("input"))?void 0:n.checked))return;let i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null==e||e.insertBefore(i,null==e?void 0:e.firstChild),(0,g.X)(r.createElement(y,Object.assign({},t,{target:e})),i)}))(c,{className:t,token:i,component:n,event:s,hashId:a})}),c=r.useRef();return e=>{f.A.cancel(c.current),c.current=(0,f.A)(()=>{s(e)})}})(v,i()(b,w),o);if(r.useEffect(()=>{let e=v.current;if(!e||1!==e.nodeType||n)return;let t=t=>{!(0,a.A)(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||x(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}},[n]),!r.isValidElement(t))return null!=t?t:null;let A=(0,s.f3)(t)?(0,s.K4)(t.ref,v):v;return(0,c.Ob)(t,{ref:A})}},6796(e,t,n){"use strict";n.d(t,{D:()=>o});var r=n(1179);let o=`${r.yH}-wave-target`},6332(e,t,n){"use strict";n.d(t,{A:()=>r});let r=n(2155).createContext(void 0)},6620(e,t,n){"use strict";n.d(t,{A:()=>N});var r=n(2155),o=n(7048),i=n(7544),a=n(4985),s=n(4291),l=n(7252),c=n(395),u=n.n(c),d=n(7425),f=n(5811),p=n(7233),h=n(7886),m=n(1179),g=n(5337),v=n(2869),b=n(6850);let y=(e,t,n,r,o)=>({background:e,border:`${(0,g.zA)(r.lineWidth)} ${r.lineType} ${t}`,[`${o}-icon`]:{color:n}}),w=(0,b.OF)("Alert",e=>[(e=>{let{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:o,fontSize:i,fontSizeLG:a,lineHeight:s,borderRadiusLG:l,motionEaseInOutCirc:c,withDescriptionIconSize:u,colorText:d,colorTextHeading:f,withDescriptionPadding:p,defaultPadding:h}=e;return{[t]:Object.assign(Object.assign({},(0,v.dF)(e)),{position:"relative",display:"flex",alignItems:"center",padding:h,wordWrap:"break-word",borderRadius:l,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:s},"&-message":{color:f},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c},
3
3
  padding-top ${n} ${c}, padding-bottom ${n} ${c},
4
4
  margin-bottom ${n} ${c}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:p,[`${t}-icon`]:{marginInlineEnd:o,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:f,fontSize:a},[`${t}-description`]:{display:"block",color:d}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}})(e),(e=>{let{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:o,colorWarning:i,colorWarningBorder:a,colorWarningBg:s,colorError:l,colorErrorBorder:c,colorErrorBg:u,colorInfo:d,colorInfoBorder:f,colorInfoBg:p}=e;return{[t]:{"&-success":y(o,r,n,e,t),"&-info":y(p,f,d,e,t),"&-warning":y(s,a,i,e,t),"&-error":Object.assign(Object.assign({},y(u,c,l,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}})(e),(e=>{let{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:o,fontSizeIcon:i,colorIcon:a,colorIconHover:s}=e;return{[t]:{"&-action":{marginInlineStart:o},[`${t}-close-icon`]:{marginInlineStart:o,padding:0,overflow:"hidden",fontSize:i,lineHeight:(0,g.zA)(i),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:a,transition:`color ${r}`,"&:hover":{color:s}}},"&-close-text":{color:a,transition:`color ${r}`,"&:hover":{color:s}}}}})(e)],e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}));var x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let A={success:o.A,info:l.A,error:i.A,warning:s.A},E=e=>{let{icon:t,prefixCls:n,type:o}=e,i=A[o]||null;return t?(0,h.fx)(t,r.createElement("span",{className:`${n}-icon`},t),()=>({className:u()(`${n}-icon`,{[t.props.className]:t.props.className})})):r.createElement(i,{className:`${n}-icon`})},$=e=>{let{isClosable:t,prefixCls:n,closeIcon:o,handleClose:i,ariaProps:s}=e,l=!0===o||void 0===o?r.createElement(a.A,null):o;return t?r.createElement("button",Object.assign({type:"button",onClick:i,className:`${n}-close-icon`,tabIndex:0},s),l):null},S=r.forwardRef((e,t)=>{let{description:n,prefixCls:o,message:i,banner:a,className:s,rootClassName:l,style:c,onMouseEnter:h,onMouseLeave:g,onClick:v,afterClose:b,showIcon:y,closable:A,closeText:S,closeIcon:C,action:O,id:k}=e,_=x(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[I,R]=r.useState(!1),j=r.useRef(null);r.useImperativeHandle(t,()=>({nativeElement:j.current}));let{getPrefixCls:N,direction:T,alert:P}=r.useContext(m.QO),M=N("alert",o),[z,B,L]=w(M),F=t=>{var n;R(!0),null==(n=e.onClose)||n.call(e,t)},D=r.useMemo(()=>void 0!==e.type?e.type:a?"warning":"info",[e.type,a]),H=r.useMemo(()=>"object"==typeof A&&!!A.closeIcon||!!S||("boolean"==typeof A?A:!1!==C&&null!=C||!!(null==P?void 0:P.closable)),[S,C,A,null==P?void 0:P.closable]),W=!!a&&void 0===y||y,U=u()(M,`${M}-${D}`,{[`${M}-with-description`]:!!n,[`${M}-no-icon`]:!W,[`${M}-banner`]:!!a,[`${M}-rtl`]:"rtl"===T},null==P?void 0:P.className,s,l,L,B),q=(0,f.A)(_,{aria:!0,data:!0}),V=r.useMemo(()=>{var e,t;return"object"==typeof A&&A.closeIcon?A.closeIcon:S||(void 0!==C?C:"object"==typeof(null==P?void 0:P.closable)&&(null==(e=null==P?void 0:P.closable)?void 0:e.closeIcon)?null==(t=null==P?void 0:P.closable)?void 0:t.closeIcon:null==P?void 0:P.closeIcon)},[C,A,S,null==P?void 0:P.closeIcon]),G=r.useMemo(()=>{let e=null!=A?A:null==P?void 0:P.closable;if("object"==typeof e){let{closeIcon:t}=e;return x(e,["closeIcon"])}return{}},[A,null==P?void 0:P.closable]);return z(r.createElement(d.Ay,{visible:!I,motionName:`${M}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:b},(t,o)=>{let{className:a,style:s}=t;return r.createElement("div",Object.assign({id:k,ref:(0,p.K4)(j,o),"data-show":!I,className:u()(U,a),style:Object.assign(Object.assign(Object.assign({},null==P?void 0:P.style),c),s),onMouseEnter:h,onMouseLeave:g,onClick:v,role:"alert"},q),W?r.createElement(E,{description:n,icon:e.icon,prefixCls:M,type:D}):null,r.createElement("div",{className:`${M}-content`},i?r.createElement("div",{className:`${M}-message`},i):null,n?r.createElement("div",{className:`${M}-description`},n):null),O?r.createElement("div",{className:`${M}-action`},O):null,r.createElement($,{isClosable:H,prefixCls:M,closeIcon:V,handleClose:F,ariaProps:G}))}))});var C=n(2645),O=n(965),k=n(3378),_=n(5488),I=n(2662),R=n(6477);let j=function(e){function t(){var e,n,r;return(0,C.A)(this,t),n=t,r=arguments,n=(0,k.A)(n),(e=(0,I.A)(this,(0,_.A)()?Reflect.construct(n,r||[],(0,k.A)(this).constructor):n.apply(this,r))).state={error:void 0,info:{componentStack:""}},e}return(0,R.A)(t,e),(0,O.A)(t,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){let{message:e,description:t,id:n,children:o}=this.props,{error:i,info:a}=this.state,s=(null==a?void 0:a.componentStack)||null,l=void 0===e?(i||"").toString():e;return i?r.createElement(S,{id:n,type:"error",message:l,description:r.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},void 0===t?s:t)}):o}}])}(r.Component);S.ErrorBoundary=j;let N=S},61(e,t,n){"use strict";n.d(t,{Ap:()=>a,DU:()=>s,u1:()=>c,uR:()=>u});var r=n(2155),o=n(7886);let i=/^[\u4E00-\u9FA5]{2}$/,a=i.test.bind(i);function s(e){return"danger"===e?{danger:!0}:{type:e}}function l(e){return"string"==typeof e}function c(e){return"text"===e||"link"===e}function u(e,t){let n=!1,i=[];return r.Children.forEach(e,e=>{let t=typeof e,r="string"===t||"number"===t;if(n&&r){let t=i.length-1,n=i[t];i[t]=`${n}${e}`}else i.push(e);n=r}),r.Children.map(i,e=>(function(e,t){if(null==e)return;let n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&l(e.type)&&a(e.props.children)?(0,o.Ob)(e,{children:e.props.children.split("").join(n)}):l(e)?a(e)?r.createElement("span",null,e.split("").join(n)):r.createElement("span",null,e):(0,o.zv)(e)?r.createElement("span",null,e):e})(e,t))}},5584(e,t,n){"use strict";n.d(t,{Ay:()=>ef});var r=n(2155),o=n(395),i=n.n(o),a=n(6495),s=n(7233),l=n(7181),c=n(1179),u=n(5227),d=n(521),f=n(59),p=n(8381),h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let m=r.createContext(void 0);var g=n(61);let v=(0,r.forwardRef)((e,t)=>{let{className:n,style:o,children:a,prefixCls:s}=e,l=i()(`${s}-icon`,n);return r.createElement("span",{ref:t,className:l,style:o},a)});var b=n(9870),y=n(7425);let w=(0,r.forwardRef)((e,t)=>{let{prefixCls:n,className:o,style:a,iconClassName:s}=e,l=i()(`${n}-loading-icon`,o);return r.createElement(v,{prefixCls:n,className:l,style:a,ref:t},r.createElement(b.A,{className:s}))}),x=()=>({width:0,opacity:0,transform:"scale(0)"}),A=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),E=e=>{let{prefixCls:t,loading:n,existIcon:o,className:i,style:a}=e,s=!!n;return o?r.createElement(w,{prefixCls:t,className:i,style:a}):r.createElement(y.Ay,{visible:s,motionName:`${t}-loading-icon-motion`,motionLeave:s,removeOnLeave:!0,onAppearStart:x,onAppearActive:A,onEnterStart:x,onEnterActive:A,onLeaveStart:A,onLeaveActive:x},(e,n)=>{let{className:o,style:s}=e;return r.createElement(w,{prefixCls:t,className:i,style:Object.assign(Object.assign({},a),s),ref:n,iconClassName:o})})};var $=n(5337),S=n(2869),C=n(8491),O=n(6850);let k=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}});var _=n(2645),I=n(965),R=n(6477),j=n(3442),N=n(3779),T=n(8827),P=n(2716),M=n(6467);let z=Math.round;function B(e,t){let n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||"",e);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}let L=(e,t,n)=>0===n?e:e/100;function F(e,t){let n=t||255;return e>n?n:e<0?0:e}class D{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if((0,M.A)(this,"isValid",!0),(0,M.A)(this,"r",0),(0,M.A)(this,"g",0),(0,M.A)(this,"b",0),(0,M.A)(this,"a",1),(0,M.A)(this,"_h",void 0),(0,M.A)(this,"_s",void 0),(0,M.A)(this,"_l",void 0),(0,M.A)(this,"_v",void 0),(0,M.A)(this,"_max",void 0),(0,M.A)(this,"_min",void 0),(0,M.A)(this,"_brightness",void 0),e)if("string"==typeof e){const t=e.trim();function n(e){return t.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(t)?this.fromHexString(t):n("rgb")?this.fromRgbString(t):n("hsl")?this.fromHslString(t):(n("hsv")||n("hsb"))&&this.fromHsvString(t)}else if(e instanceof D)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=F(e.r),this.g=F(e.g),this.b=F(e.b),this.a="number"==typeof e.a?F(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=z(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(),n=this.getSaturation(),r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(e=10){let t=this.getHue(),n=this.getSaturation(),r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){let n=this._c(e),r=t/100,o=e=>(n[e]-this[e])*r+this[e],i={r:z(o("r")),g:z(o("g")),b:z(o("b")),a:z(100*o("a"))/100};return this._c(i)}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),n=this.a+t.a*(1-this.a),r=e=>z((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}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 n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;let r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"==typeof this.a&&this.a>=0&&this.a<1){let t=z(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=z(100*this.getSaturation()),n=z(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}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,n){let r=this.clone();return r[e]=F(t,n),r}_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 n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof r?r:1,t<=0){let e=z(255*n);this.r=e,this.g=e,this.b=e}let o=0,i=0,a=0,s=e/60,l=(1-Math.abs(2*n-1))*t,c=l*(1-Math.abs(s%2-1));s>=0&&s<1?(o=l,i=c):s>=1&&s<2?(o=c,i=l):s>=2&&s<3?(i=l,a=c):s>=3&&s<4?(i=c,a=l):s>=4&&s<5?(o=c,a=l):s>=5&&s<6&&(o=l,a=c);let u=n-l/2;this.r=z((o+u)*255),this.g=z((i+u)*255),this.b=z((a+u)*255)}fromHsv({h:e,s:t,v:n,a:r}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof r?r:1;let o=z(255*n);if(this.r=o,this.g=o,this.b=o,t<=0)return;let i=e/60,a=Math.floor(i),s=i-a,l=z(n*(1-t)*255),c=z(n*(1-t*s)*255),u=z(n*(1-t*(1-s))*255);switch(a){case 0:this.g=u,this.b=l;break;case 1:this.r=c,this.b=l;break;case 2:this.r=l,this.b=u;break;case 3:this.r=l,this.g=c;break;case 4:this.r=u,this.g=l;break;default:this.g=l,this.b=c}}fromHsvString(e){let t=B(e,L);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){let t=B(e,L);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){let t=B(e,(e,t)=>t.includes("%")?z(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var H=["b"],W=["v"],U=function(e){return Math.round(Number(e||0))},q=function(e){if(e instanceof D)return e;if(e&&"object"===(0,P.A)(e)&&"h"in e&&"b"in e){var t=e.b,n=(0,T.A)(e,H);return(0,N.A)((0,N.A)({},n),{},{v:t})}return"string"==typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e},V=function(e){(0,R.A)(n,e);var t=(0,j.A)(n);function n(e){return(0,_.A)(this,n),t.call(this,q(e))}return(0,I.A)(n,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=U(100*e.s),n=U(100*e.b),r=U(e.h),o=e.a,i="hsb(".concat(r,", ").concat(t,"%, ").concat(n,"%)"),a="hsba(".concat(r,", ").concat(t,"%, ").concat(n,"%, ").concat(o.toFixed(2*(0!==o)),")");return 1===o?i:a}},{key:"toHsb",value:function(){var e=this.toHsv(),t=e.v,n=(0,T.A)(e,W);return(0,N.A)((0,N.A)({},n),{},{b:t,a:this.a})}}]),n}(D);new V("#1677ff"),n(5260);let G=(0,I.A)(function e(t){var n;if((0,_.A)(this,e),this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=null==(n=t.colors)?void 0:n.map(t=>({color:new e(t.color),percent:t.percent})),this.cleared=t.cleared;return}let r=Array.isArray(t);r&&t.length?(this.colors=t.map(t=>{let{color:n,percent:r}=t;return{color:new e(n),percent:r}}),this.metaColor=new V(this.colors[0].color.metaColor)):this.metaColor=new V(r?"":t),t&&(!r||this.colors)||(this.metaColor=this.metaColor.setA(0),this.cleared=!0)},[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){var e,t;return e=this.toHexString(),t=this.metaColor.a<1,e&&(null==e?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||""}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){let{colors:e}=this;if(e){let t=e.map(e=>`${e.color.toRgbString()} ${e.percent}%`).join(", ");return`linear-gradient(90deg, ${t})`}return this.metaColor.toRgbString()}},{key:"equals",value:function(e){return!!e&&this.isGradient()===e.isGradient()&&(this.isGradient()?this.colors.length===e.colors.length&&this.colors.every((t,n)=>{let r=e.colors[n];return t.percent===r.percent&&t.color.equals(r.color)}):this.toHexString()===e.toHexString())}}]);n(8127);var X=n(8601);let K=e=>{let{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return(0,C.oX)(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},Y=e=>{var t,n,r,o,i,a;let s=null!=(t=e.contentFontSize)?t:e.fontSize,l=null!=(n=e.contentFontSizeSM)?n:e.fontSize,c=null!=(r=e.contentFontSizeLG)?r:e.fontSizeLG,u=null!=(o=e.contentLineHeight)?o:(0,X.k)(s),d=null!=(i=e.contentLineHeightSM)?i:(0,X.k)(l),f=null!=(a=e.contentLineHeightLG)?a:(0,X.k)(c),p=((e,t)=>{let{r:n,g:r,b:o,a:i}=e.toRgb(),a=new V(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:.299*n+.587*r+.114*o>192})(new G(e.colorBgSolid),"#fff")?"#000":"#fff";return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:p,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*f)/2-e.lineWidth,0)}},Z=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),Q=(e,t,n,r,o,i,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},Z(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),J=(e,t,n,r)=>Object.assign(Object.assign({},(r&&["link","text"].includes(r)?e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}):e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},{cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"})}))(e)),Z(e.componentCls,t,n)),ee=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},J(e,r,o))}),et=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},J(e,r,o))}),en=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),er=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},J(e,n,r))}),eo=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},J(e,r,o,n))}),ei=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,borderRadius:a,buttonPaddingHorizontal:s,iconCls:l,buttonPaddingVertical:c}=e,u=`${n}-icon-only`;return[{[t]:{fontSize:o,lineHeight:i,height:r,padding:`${(0,$.zA)(c)} ${(0,$.zA)(s)}`,borderRadius:a,[`&${u}`]:{width:r,paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${n}-round`]:{width:"auto"},[l]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:{minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}}]},ea=(0,O.OF)("Button",e=>{let t=K(e);return[(e=>{let{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${(0,$.zA)(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-flex"},[`${t}-icon`]:{lineHeight:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},(0,S.K8)(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}})(t),ei((0,C.oX)(t,{fontSize:t.contentFontSize,lineHeight:t.contentLineHeight}),t.componentCls),ei((0,C.oX)(t,{controlHeight:t.controlHeightSM,fontSize:t.contentFontSizeSM,lineHeight:t.contentLineHeightSM,padding:t.paddingXS,buttonPaddingHorizontal:t.paddingInlineSM,buttonPaddingVertical:t.paddingBlockSM,borderRadius:t.borderRadiusSM,buttonIconOnlyFontSize:t.onlyIconSizeSM}),`${t.componentCls}-sm`),ei((0,C.oX)(t,{controlHeight:t.controlHeightLG,fontSize:t.contentFontSizeLG,lineHeight:t.contentLineHeightLG,buttonPaddingHorizontal:t.paddingInlineLG,buttonPaddingVertical:t.paddingBlockLG,borderRadius:t.borderRadiusLG,buttonIconOnlyFontSize:t.onlyIconSizeLG}),`${t.componentCls}-lg`),(e=>{let{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}})(t),(e=>{let{componentCls:t}=e;return{[`${t}-color-default`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},ee(e,e.solidTextColor,e.colorBgSolid,{background:e.colorBgSolidHover},{background:e.colorBgSolidActive})),en(e)),er(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),eo(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Q(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),[`${t}-color-primary`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},et(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),en(e)),er(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),eo(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Q(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),[`${t}-color-dangerous`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},ee(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),et(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),en(e)),er(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),eo(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),eo(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Q(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive}))}})(t),Object.assign(Object.assign(Object.assign(Object.assign({},et(t,t.defaultBorderColor,t.defaultBg,{color:t.defaultHoverColor,borderColor:t.defaultHoverBorderColor,background:t.defaultHoverBg},{color:t.defaultActiveColor,borderColor:t.defaultActiveBorderColor,background:t.defaultActiveBg})),eo(t,t.textTextColor,"text",{color:t.textTextHoverColor,background:t.textHoverBg},{color:t.textTextActiveColor,background:t.colorBgTextActive})),ee(t,t.primaryColor,t.colorPrimary,{background:t.colorPrimaryHover,color:t.primaryColor},{background:t.colorPrimaryActive,color:t.primaryColor})),eo(t,t.colorLink,"link",{color:t.colorLinkHover,background:t.linkHoverBg},{color:t.colorLinkActive})),(e=>{let{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},k(`${t}-primary`,o),k(`${t}-danger`,i)]}})(t)]},Y,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});var es=n(3458);let el=(0,O.bf)(["Button","compact"],e=>{var t;let n,r=K(e);return[(0,es.G)(r),{[n=`${r.componentCls}-compact-vertical`]:Object.assign(Object.assign({},{[`&-item:not(${n}-last-item)`]:{marginBottom:r.calc(r.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}),(t=r.componentCls,{[`&-item:not(${n}-first-item):not(${n}-last-item)`]:{borderRadius:0},[`&-item${n}-first-item:not(${n}-last-item)`]:{[`&, &${t}-sm, &${t}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${n}-last-item:not(${n}-first-item)`]:{[`&, &${t}-sm, &${t}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))},(e=>{let{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${(0,$.zA)(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${(0,$.zA)(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}})(r)]},Y);var ec=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let eu={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["primary","link"],text:["default","text"]},ed=r.forwardRef((e,t)=>{var n,o,p,h;let{loading:b=!1,prefixCls:y,color:w,variant:x,type:A,danger:$=!1,shape:S="default",size:C,styles:O,disabled:k,className:_,rootClassName:I,children:R,icon:j,iconPosition:N="start",ghost:T=!1,block:P=!1,htmlType:M="button",classNames:z,style:B={},autoInsertSpace:L}=e,F=ec(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),D=A||"default",[H,W]=(0,r.useMemo)(()=>{if(w&&x)return[w,x];let e=eu[D]||[];return $?["danger",e[1]]:e},[A,w,x,$]),U="danger"===H?"dangerous":H,{getPrefixCls:q,direction:V,button:G}=(0,r.useContext)(c.QO),X=null==(n=null!=L?L:null==G?void 0:G.autoInsertSpace)||n,K=q("btn",y),[Y,Z,Q]=ea(K),J=(0,r.useContext)(u.A),ee=null!=k?k:J,et=(0,r.useContext)(m),en=(0,r.useMemo)(()=>(function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return{loading:(t=Number.isNaN(t)||"number"!=typeof t?0:t)<=0,delay:t}}return{loading:!!e,delay:0}})(b),[b]),[er,eo]=(0,r.useState)(en.loading),[ei,es]=(0,r.useState)(!1),ed=(0,r.createRef)(),ef=(0,s.K4)(t,ed),ep=1===r.Children.count(R)&&!j&&!(0,g.u1)(W);(0,r.useEffect)(()=>{let e=null;return en.delay>0?e=setTimeout(()=>{e=null,eo(!0)},en.delay):eo(en.loading),function(){e&&(clearTimeout(e),e=null)}},[en]),(0,r.useEffect)(()=>{if(!ef||!ef.current||!X)return;let e=ef.current.textContent;ep&&(0,g.Ap)(e)?ei||es(!0):ei&&es(!1)},[ef]);let eh=r.useCallback(t=>{var n;er||ee?t.preventDefault():null==(n=e.onClick)||n.call(e,t)},[e.onClick,er,ee]),{compactSize:em,compactItemClassnames:eg}=(0,f.RQ)(K,V),ev=(0,d.A)(e=>{var t,n;return null!=(n=null!=(t=null!=C?C:em)?t:et)?n:e}),eb=ev&&null!=(o=({large:"lg",small:"sm",middle:void 0})[ev])?o:"",ey=er?"loading":j,ew=(0,a.A)(F,["navigate"]),ex=i()(K,Z,Q,{[`${K}-${S}`]:"default"!==S&&S,[`${K}-${D}`]:D,[`${K}-dangerous`]:$,[`${K}-color-${U}`]:U,[`${K}-variant-${W}`]:W,[`${K}-${eb}`]:eb,[`${K}-icon-only`]:!R&&0!==R&&!!ey,[`${K}-background-ghost`]:T&&!(0,g.u1)(W),[`${K}-loading`]:er,[`${K}-two-chinese-chars`]:ei&&X&&!er,[`${K}-block`]:P,[`${K}-rtl`]:"rtl"===V,[`${K}-icon-end`]:"end"===N},eg,_,I,null==G?void 0:G.className),eA=Object.assign(Object.assign({},null==G?void 0:G.style),B),eE=i()(null==z?void 0:z.icon,null==(p=null==G?void 0:G.classNames)?void 0:p.icon),e$=Object.assign(Object.assign({},(null==O?void 0:O.icon)||{}),(null==(h=null==G?void 0:G.styles)?void 0:h.icon)||{}),eS=j&&!er?r.createElement(v,{prefixCls:K,className:eE,style:e$},j):r.createElement(E,{existIcon:!!j,prefixCls:K,loading:er}),eC=R||0===R?(0,g.uR)(R,ep&&X):null;if(void 0!==ew.href)return Y(r.createElement("a",Object.assign({},ew,{className:i()(ex,{[`${K}-disabled`]:ee}),href:ee?void 0:ew.href,style:eA,onClick:eh,ref:ef,tabIndex:ee?-1:0}),eS,eC));let eO=r.createElement("button",Object.assign({},F,{type:M,className:ex,style:eA,onClick:eh,disabled:ee,ref:ef}),eS,eC,!!eg&&r.createElement(el,{key:"compact",prefixCls:K}));return(0,g.u1)(W)||(eO=r.createElement(l.A,{component:"Button",disabled:er},eO)),Y(eO)});ed.Group=e=>{let{getPrefixCls:t,direction:n}=r.useContext(c.QO),{prefixCls:o,size:a,className:s}=e,l=h(e,["prefixCls","size","className"]),u=t("btn-group",o),[,,d]=(0,p.Ay)(),f="";switch(a){case"large":f="lg";break;case"small":f="sm"}let g=i()(u,{[`${u}-${f}`]:f,[`${u}-rtl`]:"rtl"===n},s,d);return r.createElement(m.Provider,{value:a},r.createElement("div",Object.assign({},l,{className:g})))},ed.__ANT_BUTTON=!0;let ef=ed},5094(e,t,n){"use strict";n.d(t,{A:()=>eC});var r=n(2155),o=n(395),i=n.n(o),a=n(6495),s=n(1179),l=n(521),c=n(4419),u=n(4985),d=n(8578),f=n(2664);let p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};var h=n(9909),m=r.forwardRef(function(e,t){return r.createElement(h.A,(0,f.A)({},e,{ref:t,icon:p}))}),g=n(6467),v=n(3779),b=n(6233),y=n(2716),w=n(8827),x=n(8127),A=n(4080);let E=(0,r.createContext)(null);var $=n(8128),S=n(5925),C=n(1186),O=n(7233),k=n(4597);let _=function(e){var t=e.activeTabOffset,n=e.horizontal,o=e.rtl,i=e.indicator,a=void 0===i?{}:i,s=a.size,l=a.align,c=void 0===l?"center":l,u=(0,r.useState)(),d=(0,b.A)(u,2),f=d[0],p=d[1],h=(0,r.useRef)(),m=r.useCallback(function(e){return"function"==typeof s?s(e):"number"==typeof s?s:e},[s]);function g(){k.A.cancel(h.current)}return(0,r.useEffect)(function(){var e={};if(t)if(n){e.width=m(t.width);var r=o?"right":"left";"start"===c&&(e[r]=t[r]),"center"===c&&(e[r]=t[r]+t.width/2,e.transform=o?"translateX(50%)":"translateX(-50%)"),"end"===c&&(e[r]=t[r]+t.width,e.transform="translateX(-100%)")}else e.height=m(t.height),"start"===c&&(e.top=t.top),"center"===c&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===c&&(e.top=t.top+t.height,e.transform="translateY(-100%)");return g(),h.current=(0,k.A)(function(){p(e)}),g},[t,n,o,c,m]),{style:f}};var I={width:0,height:0,left:0,top:0};function R(e,t){var n=r.useRef(e),o=r.useState({}),i=(0,b.A)(o,2)[1];return[n.current,function(e){var r="function"==typeof e?e(n.current):e;r!==n.current&&t(r,n.current),n.current=r,i({})}]}var j=n(8367);function N(e){var t=(0,r.useState)(0),n=(0,b.A)(t,2),o=n[0],i=n[1],a=(0,r.useRef)(0),s=(0,r.useRef)();return s.current=e,(0,j.o)(function(){var e;null==(e=s.current)||e.call(s)},[o]),function(){a.current===o&&(a.current+=1,i(a.current))}}var T={width:0,height:0,left:0,top:0,right:0};function P(e){var t;return e instanceof Map?(t={},e.forEach(function(e,n){t[n]=e})):t=e,JSON.stringify(t)}function M(e){return String(e).replace(/"/g,"TABS_DQ")}function z(e,t,n,r){return!!n&&!r&&!1!==e&&(void 0!==e||!1!==t&&null!==t)}var B=r.forwardRef(function(e,t){var n=e.prefixCls,o=e.editable,i=e.locale,a=e.style;return o&&!1!==o.showAdd?r.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(null==i?void 0:i.addAriaLabel)||"Add tab",onClick:function(e){o.onEdit("add",{event:e})}},o.addIcon||"+"):null}),L=r.forwardRef(function(e,t){var n,o=e.position,i=e.prefixCls,a=e.extra;if(!a)return null;var s={};return"object"!==(0,y.A)(a)||r.isValidElement(a)?s.right=a:s=a,"right"===o&&(n=s.right),"left"===o&&(n=s.left),n?r.createElement("div",{className:"".concat(i,"-extra-content"),ref:t},n):null}),F=n(9771),D=n(6254),H=n(1966),W=r.forwardRef(function(e,t){var n=e.prefixCls,o=e.id,a=e.tabs,s=e.locale,l=e.mobile,c=e.more,u=void 0===c?{}:c,d=e.style,p=e.className,h=e.editable,m=e.tabBarGutter,v=e.rtl,y=e.removeAriaLabel,w=e.onTabClick,x=e.getPopupContainer,A=e.popupClassName,E=(0,r.useState)(!1),$=(0,b.A)(E,2),S=$[0],C=$[1],O=(0,r.useState)(null),k=(0,b.A)(O,2),_=k[0],I=k[1],R=u.icon,j="".concat(o,"-more-popup"),N="".concat(n,"-dropdown"),T=null!==_?"".concat(j,"-").concat(_):null,P=null==s?void 0:s.dropdownAriaLabel,M=r.createElement(D.Ay,{onClick:function(e){w(e.key,e.domEvent),C(!1)},prefixCls:"".concat(N,"-menu"),id:j,tabIndex:-1,role:"listbox","aria-activedescendant":T,selectedKeys:[_],"aria-label":void 0!==P?P:"expanded dropdown"},a.map(function(e){var t=e.closable,n=e.disabled,i=e.closeIcon,a=e.key,s=e.label,l=z(t,i,h,n);return r.createElement(D.Dr,{key:a,id:"".concat(j,"-").concat(a),role:"option","aria-controls":o&&"".concat(o,"-panel-").concat(a),disabled:n},r.createElement("span",null,s),l&&r.createElement("button",{type:"button","aria-label":y||"remove",tabIndex:0,className:"".concat(N,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),e.preventDefault(),e.stopPropagation(),h.onEdit("remove",{key:a,event:e})}},i||h.removeIcon||"\xd7"))}));function L(e){for(var t=a.filter(function(e){return!e.disabled}),n=t.findIndex(function(e){return e.key===_})||0,r=t.length,o=0;o<r;o+=1){var i=t[n=(n+e+r)%r];if(!i.disabled)return void I(i.key)}}(0,r.useEffect)(function(){var e=document.getElementById(T);e&&e.scrollIntoView&&e.scrollIntoView(!1)},[_]),(0,r.useEffect)(function(){S||I(null)},[S]);var W=(0,g.A)({},v?"marginRight":"marginLeft",m);a.length||(W.visibility="hidden",W.order=1);var U=i()((0,g.A)({},"".concat(N,"-rtl"),v)),q=l?null:r.createElement(F.A,(0,f.A)({prefixCls:N,overlay:M,visible:!!a.length&&S,onVisibleChange:C,overlayClassName:i()(U,A),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:x},u),r.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:W,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":j,id:"".concat(o,"-more"),"aria-expanded":S,onKeyDown:function(e){var t=e.which;if(!S){[H.A.DOWN,H.A.SPACE,H.A.ENTER].includes(t)&&(C(!0),e.preventDefault());return}switch(t){case H.A.UP:L(-1),e.preventDefault();break;case H.A.DOWN:L(1),e.preventDefault();break;case H.A.ESC:C(!1);break;case H.A.SPACE:case H.A.ENTER:null!==_&&w(_,e)}}},void 0===R?"More":R));return r.createElement("div",{className:i()("".concat(n,"-nav-operations"),p),style:d,ref:t},q,r.createElement(B,{prefixCls:n,locale:s,editable:h}))});let U=r.memo(W,function(e,t){return t.tabMoving}),q=function(e){var t=e.prefixCls,n=e.id,o=e.active,a=e.tab,s=a.key,l=a.label,c=a.disabled,u=a.closeIcon,d=a.icon,f=e.closable,p=e.renderWrapper,h=e.removeAriaLabel,m=e.editable,v=e.onClick,b=e.onFocus,y=e.style,w="".concat(t,"-tab"),x=z(f,u,m,c);function A(e){c||v(e)}var E=r.useMemo(function(){return d&&"string"==typeof l?r.createElement("span",null,l):l},[l,d]),$=r.createElement("div",{key:s,"data-node-key":M(s),className:i()(w,(0,g.A)((0,g.A)((0,g.A)({},"".concat(w,"-with-remove"),x),"".concat(w,"-active"),o),"".concat(w,"-disabled"),c)),style:y,onClick:A},r.createElement("div",{role:"tab","aria-selected":o,id:n&&"".concat(n,"-tab-").concat(s),className:"".concat(w,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(s),"aria-disabled":c,tabIndex:c?null:0,onClick:function(e){e.stopPropagation(),A(e)},onKeyDown:function(e){[H.A.SPACE,H.A.ENTER].includes(e.which)&&(e.preventDefault(),A(e))},onFocus:b},d&&r.createElement("span",{className:"".concat(w,"-icon")},d),l&&E),x&&r.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(w,"-remove"),onClick:function(e){e.stopPropagation(),e.preventDefault(),e.stopPropagation(),m.onEdit("remove",{key:s,event:e})}},u||m.removeIcon||"\xd7"));return p?p($):$};var V=function(e,t){var n=e.offsetWidth,r=e.offsetHeight,o=e.offsetTop,i=e.offsetLeft,a=e.getBoundingClientRect(),s=a.width,l=a.height,c=a.left,u=a.top;return 1>Math.abs(s-n)?[s,l,c-t.left,u-t.top]:[n,r,i,o]},G=function(e){var t=e.current||{},n=t.offsetWidth,r=void 0===n?0:n,o=t.offsetHeight;if(e.current){var i=e.current.getBoundingClientRect(),a=i.width,s=i.height;if(1>Math.abs(a-r))return[a,s]}return[r,void 0===o?0:o]},X=function(e,t){return e[+!t]},K=r.forwardRef(function(e,t){var n,o,a,s,l,c,u,d,p,h,m,y,w,x,A,k,j,z,F,D,H,W,K,Y,Z,Q,J,ee,et,en,er,eo,ei,ea,es,el,ec,eu,ed,ef=e.className,ep=e.style,eh=e.id,em=e.animated,eg=e.activeKey,ev=e.rtl,eb=e.extra,ey=e.editable,ew=e.locale,ex=e.tabPosition,eA=e.tabBarGutter,eE=e.children,e$=e.onTabClick,eS=e.onTabScroll,eC=e.indicator,eO=r.useContext(E),ek=eO.prefixCls,e_=eO.tabs,eI=(0,r.useRef)(null),eR=(0,r.useRef)(null),ej=(0,r.useRef)(null),eN=(0,r.useRef)(null),eT=(0,r.useRef)(null),eP=(0,r.useRef)(null),eM=(0,r.useRef)(null),ez="top"===ex||"bottom"===ex,eB=R(0,function(e,t){ez&&eS&&eS({direction:e>t?"left":"right"})}),eL=(0,b.A)(eB,2),eF=eL[0],eD=eL[1],eH=R(0,function(e,t){!ez&&eS&&eS({direction:e>t?"top":"bottom"})}),eW=(0,b.A)(eH,2),eU=eW[0],eq=eW[1],eV=(0,r.useState)([0,0]),eG=(0,b.A)(eV,2),eX=eG[0],eK=eG[1],eY=(0,r.useState)([0,0]),eZ=(0,b.A)(eY,2),eQ=eZ[0],eJ=eZ[1],e0=(0,r.useState)([0,0]),e1=(0,b.A)(e0,2),e2=e1[0],e5=e1[1],e6=(0,r.useState)([0,0]),e4=(0,b.A)(e6,2),e3=e4[0],e8=e4[1],e9=(n=new Map,o=(0,r.useRef)([]),a=(0,r.useState)({}),s=(0,b.A)(a,2)[1],l=(0,r.useRef)("function"==typeof n?n():n),c=N(function(){var e=l.current;o.current.forEach(function(t){e=t(e)}),o.current=[],l.current=e,s({})}),[l.current,function(e){o.current.push(e),c()}]),e7=(0,b.A)(e9,2),te=e7[0],tt=e7[1],tn=(u=eQ[0],(0,r.useMemo)(function(){for(var e=new Map,t=te.get(null==(o=e_[0])?void 0:o.key)||I,n=t.left+t.width,r=0;r<e_.length;r+=1){var o,i,a=e_[r].key,s=te.get(a);s||(s=te.get(null==(i=e_[r-1])?void 0:i.key)||I);var l=e.get(a)||(0,v.A)({},s);l.right=n-l.left-l.width,e.set(a,l)}return e},[e_.map(function(e){return e.key}).join("_"),te,u])),tr=X(eX,ez),to=X(eQ,ez),ti=X(e2,ez),ta=X(e3,ez),ts=Math.floor(tr)<Math.floor(to+ti),tl=ts?tr-ta:tr-ti,tc="".concat(ek,"-nav-operations-hidden"),tu=0,td=0;function tf(e){return e<tu?tu:e>td?td:e}ez&&ev?(tu=0,td=Math.max(0,to-tl)):(tu=Math.min(0,tl-to),td=0);var tp=(0,r.useRef)(null),th=(0,r.useState)(),tm=(0,b.A)(th,2),tg=tm[0],tv=tm[1];function tb(){tv(Date.now())}function ty(){tp.current&&clearTimeout(tp.current)}d=function(e,t){function n(e,t){e(function(e){return tf(e+t)})}return!!ts&&(ez?n(eD,e):n(eq,t),ty(),tb(),!0)},p=(0,r.useState)(),m=(h=(0,b.A)(p,2))[0],y=h[1],w=(0,r.useState)(0),A=(x=(0,b.A)(w,2))[0],k=x[1],j=(0,r.useState)(0),F=(z=(0,b.A)(j,2))[0],D=z[1],H=(0,r.useState)(),K=(W=(0,b.A)(H,2))[0],Y=W[1],Z=(0,r.useRef)(),Q=(0,r.useRef)(),(J=(0,r.useRef)(null)).current={onTouchStart:function(e){var t=e.touches[0];y({x:t.screenX,y:t.screenY}),window.clearInterval(Z.current)},onTouchMove:function(e){if(m){var t=e.touches[0],n=t.screenX,r=t.screenY;y({x:n,y:r});var o=n-m.x,i=r-m.y;d(o,i);var a=Date.now();k(a),D(a-A),Y({x:o,y:i})}},onTouchEnd:function(){if(m&&(y(null),Y(null),K)){var e=K.x/F,t=K.y/F;if(!(.1>Math.max(Math.abs(e),Math.abs(t)))){var n=e,r=t;Z.current=window.setInterval(function(){.01>Math.abs(n)&&.01>Math.abs(r)?window.clearInterval(Z.current):(n*=.9046104802746175,r*=.9046104802746175,d(20*n,20*r))},20)}}},onWheel:function(e){var t=e.deltaX,n=e.deltaY,r=0,o=Math.abs(t),i=Math.abs(n);o===i?r="x"===Q.current?t:n:o>i?(r=t,Q.current="x"):(r=n,Q.current="y"),d(-r,-r)&&e.preventDefault()}},r.useEffect(function(){function e(e){J.current.onTouchMove(e)}function t(e){J.current.onTouchEnd(e)}return document.addEventListener("touchmove",e,{passive:!1}),document.addEventListener("touchend",t,{passive:!0}),eN.current.addEventListener("touchstart",function(e){J.current.onTouchStart(e)},{passive:!0}),eN.current.addEventListener("wheel",function(e){J.current.onWheel(e)},{passive:!1}),function(){document.removeEventListener("touchmove",e),document.removeEventListener("touchend",t)}},[]),(0,r.useEffect)(function(){return ty(),tg&&(tp.current=setTimeout(function(){tv(0)},100)),ty},[tg]);var tw=(ee=ez?eF:eU,ei=(et=(0,v.A)((0,v.A)({},e),{},{tabs:e_})).tabs,ea=et.tabPosition,es=et.rtl,["top","bottom"].includes(ea)?(en="width",er=es?"right":"left",eo=Math.abs(ee)):(en="height",er="top",eo=-ee),(0,r.useMemo)(function(){if(!ei.length)return[0,0];for(var e=ei.length,t=e,n=0;n<e;n+=1){var r=tn.get(ei[n].key)||T;if(Math.floor(r[er]+r[en])>Math.floor(eo+tl)){t=n-1;break}}for(var o=0,i=e-1;i>=0;i-=1)if((tn.get(ei[i].key)||T)[er]<eo){o=i+1;break}return o>=t?[0,0]:[o,t]},[tn,tl,to,ti,ta,eo,ea,ei.map(function(e){return e.key}).join("_"),es])),tx=(0,b.A)(tw,2),tA=tx[0],tE=tx[1],t$=(0,C.A)(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:eg,t=tn.get(e)||{width:0,height:0,left:0,right:0,top:0};if(ez){var n=eF;ev?t.right<eF?n=t.right:t.right+t.width>eF+tl&&(n=t.right+t.width-tl):t.left<-eF?n=-t.left:t.left+t.width>-eF+tl&&(n=-(t.left+t.width-tl)),eq(0),eD(tf(n))}else{var r=eU;t.top<-eU?r=-t.top:t.top+t.height>-eU+tl&&(r=-(t.top+t.height-tl)),eD(0),eq(tf(r))}}),tS={};"top"===ex||"bottom"===ex?tS[ev?"marginRight":"marginLeft"]=eA:tS.marginTop=eA;var tC=e_.map(function(e,t){var n=e.key;return r.createElement(q,{id:eh,prefixCls:ek,key:n,tab:e,style:0===t?void 0:tS,closable:e.closable,editable:ey,active:n===eg,renderWrapper:eE,removeAriaLabel:null==ew?void 0:ew.removeAriaLabel,onClick:function(e){e$(n,e)},onFocus:function(){t$(n),tb(),eN.current&&(ev||(eN.current.scrollLeft=0),eN.current.scrollTop=0)}})}),tO=function(){return tt(function(){var e,t=new Map,n=null==(e=eT.current)?void 0:e.getBoundingClientRect();return e_.forEach(function(e){var r,o=e.key,i=null==(r=eT.current)?void 0:r.querySelector('[data-node-key="'.concat(M(o),'"]'));if(i){var a=V(i,n),s=(0,b.A)(a,4),l=s[0],c=s[1],u=s[2],d=s[3];t.set(o,{width:l,height:c,left:u,top:d})}}),t})};(0,r.useEffect)(function(){tO()},[e_.map(function(e){return e.key}).join("_")]);var tk=N(function(){var e=G(eI),t=G(eR),n=G(ej);eK([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=G(eM);e5(r),e8(G(eP));var o=G(eT);eJ([o[0]-r[0],o[1]-r[1]]),tO()}),t_=e_.slice(0,tA),tI=e_.slice(tE+1),tR=[].concat((0,$.A)(t_),(0,$.A)(tI)),tj=tn.get(eg),tN=_({activeTabOffset:tj,horizontal:ez,indicator:eC,rtl:ev}).style;(0,r.useEffect)(function(){t$()},[eg,tu,td,P(tj),P(tn),ez]),(0,r.useEffect)(function(){tk()},[ev]);var tT=!!tR.length,tP="".concat(ek,"-nav-wrap");return ez?ev?(ec=eF>0,el=eF!==td):(el=eF<0,ec=eF!==tu):(eu=eU<0,ed=eU!==tu),r.createElement(S.A,{onResize:tk},r.createElement("div",{ref:(0,O.xK)(t,eI),role:"tablist",className:i()("".concat(ek,"-nav"),ef),style:ep,onKeyDown:function(){tb()}},r.createElement(L,{ref:eR,position:"left",extra:eb,prefixCls:ek}),r.createElement(S.A,{onResize:tk},r.createElement("div",{className:i()(tP,(0,g.A)((0,g.A)((0,g.A)((0,g.A)({},"".concat(tP,"-ping-left"),el),"".concat(tP,"-ping-right"),ec),"".concat(tP,"-ping-top"),eu),"".concat(tP,"-ping-bottom"),ed)),ref:eN},r.createElement(S.A,{onResize:tk},r.createElement("div",{ref:eT,className:"".concat(ek,"-nav-list"),style:{transform:"translate(".concat(eF,"px, ").concat(eU,"px)"),transition:tg?"none":void 0}},tC,r.createElement(B,{ref:eM,prefixCls:ek,locale:ew,editable:ey,style:(0,v.A)((0,v.A)({},0===tC.length?void 0:tS),{},{visibility:tT?"hidden":null})}),r.createElement("div",{className:i()("".concat(ek,"-ink-bar"),(0,g.A)({},"".concat(ek,"-ink-bar-animated"),em.inkBar)),style:tN}))))),r.createElement(U,(0,f.A)({},e,{removeAriaLabel:null==ew?void 0:ew.removeAriaLabel,ref:eP,prefixCls:ek,tabs:tR,className:!tT&&tc,tabMoving:!!tg})),r.createElement(L,{ref:ej,position:"right",extra:eb,prefixCls:ek})))}),Y=r.forwardRef(function(e,t){var n=e.prefixCls,o=e.className,a=e.style,s=e.id,l=e.active,c=e.tabKey,u=e.children;return r.createElement("div",{id:s&&"".concat(s,"-panel-").concat(c),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":s&&"".concat(s,"-tab-").concat(c),"aria-hidden":!l,style:a,className:i()(n,l&&"".concat(n,"-active"),o),ref:t},u)}),Z=["renderTabBar"],Q=["label","key"];let J=function(e){var t=e.renderTabBar,n=(0,w.A)(e,Z),o=r.useContext(E).tabs;return t?t((0,v.A)((0,v.A)({},n),{},{panes:o.map(function(e){var t=e.label,n=e.key,o=(0,w.A)(e,Q);return r.createElement(Y,(0,f.A)({tab:t,key:n,tabKey:n},o))})}),K):r.createElement(K,n)};var ee=n(7425),et=["key","forceRender","style","className","destroyInactiveTabPane"];let en=function(e){var t=e.id,n=e.activeKey,o=e.animated,a=e.tabPosition,s=e.destroyInactiveTabPane,l=r.useContext(E),c=l.prefixCls,u=l.tabs,d=o.tabPane,p="".concat(c,"-tabpane");return r.createElement("div",{className:i()("".concat(c,"-content-holder"))},r.createElement("div",{className:i()("".concat(c,"-content"),"".concat(c,"-content-").concat(a),(0,g.A)({},"".concat(c,"-content-animated"),d))},u.map(function(e){var a=e.key,l=e.forceRender,c=e.style,u=e.className,h=e.destroyInactiveTabPane,m=(0,w.A)(e,et),g=a===n;return r.createElement(ee.Ay,(0,f.A)({key:a,visible:g,forceRender:l,removeOnLeave:!!(s||h),leavedClassName:"".concat(p,"-hidden")},o.tabPaneMotion),function(e,n){var o=e.style,s=e.className;return r.createElement(Y,(0,f.A)({},m,{prefixCls:p,id:t,tabKey:a,animated:d,active:g,style:(0,v.A)((0,v.A)({},c),o),className:i()(u,s),ref:n}))})})))};n(6216);var er=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],eo=0,ei=r.forwardRef(function(e,t){var n=e.id,o=e.prefixCls,a=void 0===o?"rc-tabs":o,s=e.className,l=e.items,c=e.direction,u=e.activeKey,d=e.defaultActiveKey,p=e.editable,h=e.animated,m=e.tabPosition,$=void 0===m?"top":m,S=e.tabBarGutter,C=e.tabBarStyle,O=e.tabBarExtraContent,k=e.locale,_=e.more,I=e.destroyInactiveTabPane,R=e.renderTabBar,j=e.onChange,N=e.onTabClick,T=e.onTabScroll,P=e.getPopupContainer,M=e.popupClassName,z=e.indicator,B=(0,w.A)(e,er),L=r.useMemo(function(){return(l||[]).filter(function(e){return e&&"object"===(0,y.A)(e)&&"key"in e})},[l]),F="rtl"===c,D=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:(0,v.A)({inkBar:!0},"object"===(0,y.A)(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(h),H=(0,r.useState)(!1),W=(0,b.A)(H,2),U=W[0],q=W[1];(0,r.useEffect)(function(){q((0,A.A)())},[]);var V=(0,x.A)(function(){var e;return null==(e=L[0])?void 0:e.key},{value:u,defaultValue:d}),G=(0,b.A)(V,2),X=G[0],K=G[1],Y=(0,r.useState)(function(){return L.findIndex(function(e){return e.key===X})}),Z=(0,b.A)(Y,2),Q=Z[0],ee=Z[1];(0,r.useEffect)(function(){var e,t=L.findIndex(function(e){return e.key===X});-1===t&&(t=Math.max(0,Math.min(Q,L.length-1)),K(null==(e=L[t])?void 0:e.key)),ee(t)},[L.map(function(e){return e.key}).join("_"),X,Q]);var et=(0,x.A)(null,{value:n}),ei=(0,b.A)(et,2),ea=ei[0],es=ei[1];(0,r.useEffect)(function(){n||(es("rc-tabs-".concat(eo)),eo+=1)},[]);var el={id:ea,activeKey:X,animated:D,tabPosition:$,rtl:F,mobile:U},ec=(0,v.A)((0,v.A)({},el),{},{editable:p,locale:k,more:_,tabBarGutter:S,onTabClick:function(e,t){null==N||N(e,t);var n=e!==X;K(e),n&&(null==j||j(e))},onTabScroll:T,extra:O,style:C,panes:null,getPopupContainer:P,popupClassName:M,indicator:z});return r.createElement(E.Provider,{value:{tabs:L,prefixCls:a}},r.createElement("div",(0,f.A)({ref:t,id:n,className:i()(a,"".concat(a,"-").concat($),(0,g.A)((0,g.A)((0,g.A)({},"".concat(a,"-mobile"),U),"".concat(a,"-editable"),p),"".concat(a,"-rtl"),F),s)},B),r.createElement(J,(0,f.A)({},ec,{renderTabBar:R})),r.createElement(en,(0,f.A)({destroyInactiveTabPane:I},el,{animated:D}))))}),ea=n(4274),es=n(6079);let el={motionAppear:!1,motionEnter:!0,motionLeave:!0};var ec=n(9268),eu=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},ed=n(5337),ef=n(2869),ep=n(6850),eh=n(8491),em=n(9765);let eg=(0,ep.OF)("Tabs",e=>{let t=(0,eh.oX)(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${(0,ed.zA)(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${(0,ed.zA)(e.horizontalItemGutter)}`});return[(e=>{let{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${(0,ed.zA)(e.borderRadius)} ${(0,ed.zA)(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${(0,ed.zA)(e.borderRadius)} ${(0,ed.zA)(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,ed.zA)(e.borderRadius)} ${(0,ed.zA)(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,ed.zA)(e.borderRadius)} 0 0 ${(0,ed.zA)(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}})(t),(e=>{let{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:(0,ed.zA)(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:(0,ed.zA)(e.marginXS)},marginLeft:{_skip_check_:!0,value:(0,ed.zA)(i(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}})(t),(e=>{let{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${(0,ed.zA)(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
5
5
  right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
@@ -290,7 +290,7 @@ ${i}`,p=a||""}let m=p.split("\n\n"),g=[];for(let e of m){let n=function(e){try{l
290
290
  void main(void) {
291
291
  gl_FragColor = texture2D(texture, uv);
292
292
  }
293
- `;static get isSupported(){return!!a((0,r.N)())}#T;constructor(e,t){super(e);const n=a(this.canvas,t);if(!n)throw Error("WebGL not supported");this.#T=n;const r=n.createShader(n.VERTEX_SHADER);if(n.shaderSource(r,s.vertexShaderSource),n.compileShader(r),!n.getShaderParameter(r,n.COMPILE_STATUS))throw Error(n.getShaderInfoLog(r));const o=n.createShader(n.FRAGMENT_SHADER);if(n.shaderSource(o,s.fragmentShaderSource),n.compileShader(o),!n.getShaderParameter(o,n.COMPILE_STATUS))throw Error(n.getShaderInfoLog(o));const i=n.createProgram();if(n.attachShader(i,r),n.attachShader(i,o),n.linkProgram(i),!n.getProgramParameter(i,n.LINK_STATUS))throw Error(n.getProgramInfoLog(i));n.useProgram(i);const l=n.createBuffer();n.bindBuffer(n.ARRAY_BUFFER,l),n.bufferData(n.ARRAY_BUFFER,new Float32Array([-1,-1,-1,1,1,1,1,-1]),n.STATIC_DRAW);const c=n.getAttribLocation(i,"xy");n.vertexAttribPointer(c,2,n.FLOAT,!1,0,0),n.enableVertexAttribArray(c);const u=n.createTexture();n.bindTexture(n.TEXTURE_2D,u),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.NEAREST),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.NEAREST),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE)}draw(e){let t=this.#T;return t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,e),t.viewport(0,0,t.drawingBufferWidth,t.drawingBufferHeight),t.drawArrays(t.TRIANGLE_FAN,0,4),i}}},4093(e,t,n){"use strict";n.d(t,{n:()=>r});let r={H264:0x68323634,H265:0x68323635,AV1:6387249}},6579(e,t,n){"use strict";n.d(t,{Mo:()=>a,a7:()=>i,vF:()=>o});var r=n(9505);let o={Baseline:1,Main:2,Extended:4,High:8,High10:16,High422:32,High444:64,ConstrainedBaseline:65536,ConstrainedHigh:524288},i={Level1:1,Level1b:2,Level11:4,Level12:8,Level13:16,Level2:32,Level21:64,Level22:128,Level3:256,Level31:512,Level32:1024,Level4:2048,Level41:4096,Level42:8192,Level5:16384,Level51:32768,Level52:65536,Level6:131072,Level61:262144,Level62:524288};function a(e){let{sequenceParameterSet:t,pictureParameterSet:n}=function(e){let t,n;for(let o of(0,r.N)(e))switch(31&o[0]){case 7:if(t=o,n)return{sequenceParameterSet:t,pictureParameterSet:n};break;case 8:if(n=o,t)return{sequenceParameterSet:t,pictureParameterSet:n}}throw Error("Invalid data")}(e),{profile_idc:o,constraint_set:i,level_idc:a,pic_width_in_mbs_minus1:s,pic_height_in_map_units_minus1:l,frame_mbs_only_flag:c,frame_crop_left_offset:u,frame_crop_right_offset:d,frame_crop_top_offset:f,frame_crop_bottom_offset:p}=function(e){let t,n,o,i,a=new r.$(e);if(0!==a.next())throw Error("Invalid data");let s=a.read(2);if(7!==a.read(5)||0===s)throw Error("Invalid data");let l=a.read(8),c=a.peek(8),u=!!a.next(),d=!!a.next(),f=!!a.next(),p=!!a.next(),h=!!a.next(),m=!!a.next();if(0!==a.read(2))throw Error("Invalid data");let g=a.read(8),v=a.decodeExponentialGolombNumber();if(100===l||110===l||122===l||244===l||44===l||83===l||86===l||118===l||128===l||138===l||139===l||134===l){let e=a.decodeExponentialGolombNumber();if(3===e&&a.next(),a.decodeExponentialGolombNumber(),a.decodeExponentialGolombNumber(),a.next(),a.next()){let t=[];for(let n=0;n<(3!==e?8:12);n+=1)t[n]=!!a.next(),t[n]}}a.decodeExponentialGolombNumber();let b=a.decodeExponentialGolombNumber();if(0===b)a.decodeExponentialGolombNumber();else if(1===b){a.next(),a.decodeExponentialGolombNumber(),a.decodeExponentialGolombNumber();let e=a.decodeExponentialGolombNumber(),t=[];for(let n=0;n<e;n+=1)t[n]=a.decodeExponentialGolombNumber()}a.decodeExponentialGolombNumber(),a.next();let y=a.decodeExponentialGolombNumber(),w=a.decodeExponentialGolombNumber(),x=a.next();x||a.next(),a.next();let A=!!a.next();return A?(t=a.decodeExponentialGolombNumber(),n=a.decodeExponentialGolombNumber(),o=a.decodeExponentialGolombNumber(),i=a.decodeExponentialGolombNumber()):(t=0,n=0,o=0,i=0),a.next(),{profile_idc:l,constraint_set:c,constraint_set0_flag:u,constraint_set1_flag:d,constraint_set2_flag:f,constraint_set3_flag:p,constraint_set4_flag:h,constraint_set5_flag:m,level_idc:g,seq_parameter_set_id:v,pic_width_in_mbs_minus1:y,pic_height_in_map_units_minus1:w,frame_mbs_only_flag:x,frame_cropping_flag:A,frame_crop_left_offset:t,frame_crop_right_offset:n,frame_crop_top_offset:o,frame_crop_bottom_offset:i}}(t),h=(s+1)*16,m=(l+1)*(2-c)*16,g=2*u,v=2*d,b=2*f,y=2*p;return{pictureParameterSet:n,sequenceParameterSet:t,profileIndex:o,constraintSet:i,levelIndex:a,encodedWidth:h,encodedHeight:m,cropLeft:g,cropRight:v,cropTop:b,cropBottom:y,croppedWidth:h-g-v,croppedHeight:m-b-y}}},9505(e,t,n){"use strict";function*r(e){let t=-1,n=0,r=!1;for(let o=0;o<e.length;o+=1){let i=e[o];if(r){if(i>3)throw Error("Invalid data");r=!1;continue}if(0===i){n+=1;continue}let a=n;if(n=0,-1===t){if(a>=2&&1===i){t=o+1;continue}throw Error("Invalid data")}if(!(a<2)){if(1===i){yield e.subarray(t,o-a),t=o+1;continue}if(a>2)throw Error("Invalid data");switch(i){case 2:throw Error("Invalid data");case 3:r=!0}}}if(r)throw Error("Invalid data");yield e.subarray(t,e.length)}n.d(t,{$:()=>o,N:()=>r});class o{#X;#K;#Y;#Z=0;#$=0;#S=7;#E=0;get byteLength(){return this.#K}get stopBitIndex(){return this.#Y}get bytePosition(){return this.#$}get bitPosition(){return this.#S}get ended(){return this.#$>=this.#K&&this.#S<=this.#Y}constructor(e){this.#X=e;for(let t=e.length-1;t>=0;t-=1){if(0===this.#X[t])continue;const n=e[t];for(let e=0;e<8;e+=1)if((n>>e&1)==1){this.#K=t,this.#Y=e,this.#Q();return}}throw Error("Stop bit not found")}#Q(){if(this.#E=this.#X[this.#$],2===this.#Z&&3===this.#E){this.#Z=0,this.#$+=1,this.#Q();return}0===this.#E?this.#Z+=1:this.#Z=0}next(){if(this.ended)throw Error("Bit index out of bounds");let e=this.#E>>this.#S&1;return this.#S-=1,this.#S<0&&(this.#$+=1,this.#S=7,this.#Q()),e}read(e){if(e>32)throw Error("Read length too large");let t=0;for(let n=0;n<e;n+=1)t=t<<1|this.next();return t}#J(){if(this.#$>=this.#K&&this.#S<this.#Y)throw Error("Bit index out of bounds")}skip(e){if(e<=this.#S+1){this.#S-=e,this.#J();return}for(e-=this.#S+1,this.#$+=1,this.#S=7,this.#Q(),this.#J();e>=8;e-=8)this.#$+=1,this.#Q(),this.#J();this.#S=7-e,this.#J()}decodeExponentialGolombNumber(){let e=0;for(;0===this.next();)e+=1;return 0===e?0:(1<<e|this.read(e))-1}#ee(){return{zeroCount:this.#Z,bytePosition:this.#$,bitPosition:this.#S,byte:this.#E}}#et(e){this.#Z=e.zeroCount,this.#$=e.bytePosition,this.#S=e.bitPosition,this.#E=e.byte}peek(e){let t=this.#ee(),n=this.read(e);return this.#et(t),n}readBytes(e){let t=new Uint8Array(e);for(let n=0;n<e;n+=1)t[n]=this.read(8);return t}peekBytes(e){let t=this.#ee(),n=this.readBytes(e);return this.#et(t),n}}},3083(e,t,n){"use strict";n.d(t,{ho:()=>o});let{AbortController:r}=globalThis,{WritableStream:o,TransformStream:i}=globalThis},9383(e,t,n){"use strict";n.d(t,{Ay:()=>ez});var r=function(e,t){var n,r="";for(n=0;n<t;n+=1)r+=e;return r},o=function(e){return 0===e&&-1/0==1/e};function i(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+="\n\n"+e.mark.snippet),r+" "+n):r}function a(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=i(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||""}function s(e,t,n,r,o){var i="",a="",s=Math.floor(o/2)-1;return r-t>s&&(t=r-s+(i=" ... ").length),n-r>s&&(n=r+s-(a=" ...").length),{str:i+e.slice(t,n).replace(/\t/g,"→")+a,pos:r-t+i.length}}function l(e,t){return r(" ",t-e.length)+e}a.prototype=Object.create(Error.prototype),a.prototype.constructor=a,a.prototype.toString=function(e){return this.name+": "+i(this,e)};var c=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,o=[0],i=[],a=-1;c=n.exec(e.buffer);)i.push(c.index),o.push(c.index+c[0].length),e.position<=c.index&&a<0&&(a=o.length-2);a<0&&(a=o.length-1);var c,u,d,f="",p=Math.min(e.line+t.linesAfter,i.length).toString().length,h=t.maxLength-(t.indent+p+3);for(u=1;u<=t.linesBefore&&!(a-u<0);u++)d=s(e.buffer,o[a-u],i[a-u],e.position-(o[a]-o[a-u]),h),f=r(" ",t.indent)+l((e.line-u+1).toString(),p)+" | "+d.str+"\n"+f;for(d=s(e.buffer,o[a],i[a],e.position,h),f+=r(" ",t.indent)+l((e.line+1).toString(),p)+" | "+d.str+"\n"+r("-",t.indent+p+3+d.pos)+"^\n",u=1;u<=t.linesAfter&&!(a+u>=i.length);u++)d=s(e.buffer,o[a+u],i[a+u],e.position-(o[a]-o[a+u]),h),f+=r(" ",t.indent)+l((e.line+u+1).toString(),p)+" | "+d.str+"\n";return f.replace(/\n$/,"")},u=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],d=["scalar","sequence","mapping"],f=function(e,t){var n,r;if(Object.keys(t=t||{}).forEach(function(t){if(-1===u.indexOf(t))throw new a('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=(n=t.styleAliases||null,r={},null!==n&&Object.keys(n).forEach(function(e){n[e].forEach(function(t){r[String(t)]=e})}),r),-1===d.indexOf(this.kind))throw new a('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function p(e,t){var n=[];return e[t].forEach(function(e){var t=n.length;n.forEach(function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)}),n[t]=e}),n}function h(e){return this.extend(e)}h.prototype.extend=function(e){var t=[],n=[];if(e instanceof f)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new a("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.forEach(function(e){if(!(e instanceof f))throw new a("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new a("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new a("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(e){if(!(e instanceof f))throw new a("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var r=Object.create(h.prototype);return r.implicit=(this.implicit||[]).concat(t),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=p(r,"implicit"),r.compiledExplicit=p(r,"explicit"),r.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function r(e){e.multi?(n.multi[e.kind].push(e),n.multi.fallback.push(e)):n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(r);return n}(r.compiledImplicit,r.compiledExplicit),r};var m=new f("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),g=new f("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),v=new f("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}}),b=new h({explicit:[m,g,v]}),y=new f("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"}),w=new f("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"}),x=new f("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r,o,i=e.length,a=0,s=!1;if(!i)return!1;if(("-"===(o=e[a])||"+"===o)&&(o=e[++a]),"0"===o){if(a+1===i)return!0;if("b"===(o=e[++a])){for(a++;a<i;a++)if("_"!==(o=e[a])){if("0"!==o&&"1"!==o)return!1;s=!0}return s&&"_"!==o}if("x"===o){for(a++;a<i;a++)if("_"!==(o=e[a])){if(!(48<=(t=e.charCodeAt(a))&&t<=57||65<=t&&t<=70||97<=t&&t<=102))return!1;s=!0}return s&&"_"!==o}if("o"===o){for(a++;a<i;a++)if("_"!==(o=e[a])){if(!(48<=(n=e.charCodeAt(a))&&n<=55))return!1;s=!0}return s&&"_"!==o}}if("_"===o)return!1;for(;a<i;a++)if("_"!==(o=e[a])){if(!(48<=(r=e.charCodeAt(a))&&r<=57))return!1;s=!0}return!!s&&"_"!==o},construct:function(e){var t,n=e,r=1;if(-1!==n.indexOf("_")&&(n=n.replace(/_/g,"")),("-"===(t=n[0])||"+"===t)&&("-"===t&&(r=-1),t=(n=n.slice(1))[0]),"0"===n)return 0;if("0"===t){if("b"===n[1])return r*parseInt(n.slice(2),2);if("x"===n[1])return r*parseInt(n.slice(2),16);if("o"===n[1])return r*parseInt(n.slice(2),8)}return r*parseInt(n,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!o(e)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),A=RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),E=/^[-+]?[0-9]+e/,$=new f("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!!A.test(e)&&"_"!==e[e.length-1]},construct:function(e){var t,n;return(n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t)?1===n?1/0:-1/0:".nan"===t?NaN:n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||o(e))},represent:function(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(1/0===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(-1/0===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(o(e))return"-0.0";return n=e.toString(10),E.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"}),S=b.extend({implicit:[y,w,x,$]}),C=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),O=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"),k=new f("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==C.exec(e)||null!==O.exec(e))},construct:function(e){var t,n,r,o,i,a,s,l,c=0,u=null;if(null===(t=C.exec(e))&&(t=O.exec(e)),null===t)throw Error("Date resolve error");if(n=+t[1],r=t[2]-1,o=+t[3],!t[4])return new Date(Date.UTC(n,r,o));if(i=+t[4],a=+t[5],s=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c*=1}return t[9]&&(u=(60*t[10]+ +(t[11]||0))*6e4,"-"===t[9]&&(u=-u)),l=new Date(Date.UTC(n,r,o,i,a,s,c)),u&&l.setTime(l.getTime()-u),l},instanceOf:Date,represent:function(e){return e.toISOString()}}),_=new f("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),I="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r",R=new f("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r=0,o=e.length;for(n=0;n<o;n++)if(!((t=I.indexOf(e.charAt(n)))>64)){if(t<0)return!1;r+=6}return r%8==0},construct:function(e){var t,n,r=e.replace(/[\r\n=]/g,""),o=r.length,i=0,a=[];for(t=0;t<o;t++)t%4==0&&t&&(a.push(i>>16&255),a.push(i>>8&255),a.push(255&i)),i=i<<6|I.indexOf(r.charAt(t));return 0==(n=o%4*6)?(a.push(i>>16&255),a.push(i>>8&255),a.push(255&i)):18===n?(a.push(i>>10&255),a.push(i>>2&255)):12===n&&a.push(i>>4&255),new Uint8Array(a)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,n,r="",o=0,i=e.length;for(t=0;t<i;t++)t%3==0&&t&&(r+=I[o>>18&63],r+=I[o>>12&63],r+=I[o>>6&63],r+=I[63&o]),o=(o<<8)+e[t];return 0==(n=i%3)?(r+=I[o>>18&63],r+=I[o>>12&63],r+=I[o>>6&63],r+=I[63&o]):2===n?(r+=I[o>>10&63],r+=I[o>>4&63],r+=I[o<<2&63],r+=I[64]):1===n&&(r+=I[o>>2&63],r+=I[o<<4&63],r+=I[64],r+=I[64]),r}}),j=Object.prototype.hasOwnProperty,N=Object.prototype.toString,T=new f("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,o,i,a=[];for(t=0,n=e.length;t<n;t+=1){if(r=e[t],i=!1,"[object Object]"!==N.call(r))return!1;for(o in r)if(j.call(r,o))if(i)return!1;else i=!0;if(!i||-1!==a.indexOf(o))return!1;a.push(o)}return!0},construct:function(e){return null!==e?e:[]}}),P=Object.prototype.toString,M=new f("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){var t,n,r,o,i;if(null===e)return!0;for(t=0,i=Array(e.length),n=e.length;t<n;t+=1){if(r=e[t],"[object Object]"!==P.call(r)||1!==(o=Object.keys(r)).length)return!1;i[t]=[o[0],r[o[0]]]}return!0},construct:function(e){var t,n,r,o,i;if(null===e)return[];for(t=0,i=Array(e.length),n=e.length;t<n;t+=1)o=Object.keys(r=e[t]),i[t]=[o[0],r[o[0]]];return i}}),z=Object.prototype.hasOwnProperty,B=new f("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){var t;if(null===e)return!0;for(t in e)if(z.call(e,t)&&null!==e[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),L=S.extend({implicit:[k,_],explicit:[R,T,M,B]}),F=Object.prototype.hasOwnProperty,D=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,H=/[\x85\u2028\u2029]/,W=/[,\[\]\{\}]/,U=/^(?:!|!!|![a-z\-]+!)$/i,q=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function V(e){return Object.prototype.toString.call(e)}function G(e){return 10===e||13===e}function X(e){return 9===e||32===e}function K(e){return 9===e||32===e||10===e||13===e}function Y(e){return 44===e||91===e||93===e||123===e||125===e}function Z(e){return 48===e?"\0":97===e?"\x07":98===e?"\b":116===e||9===e?" ":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"\x1b":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"\x85":95===e?"\xa0":76===e?"\u2028":80===e?"\u2029":""}for(var Q=Array(256),J=Array(256),ee=0;ee<256;ee++)Q[ee]=+!!Z(ee),J[ee]=Z(ee);function et(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||L,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function en(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=c(n),new a(t,n)}function er(e,t){throw en(e,t)}function eo(e,t){e.onWarning&&e.onWarning.call(null,en(e,t))}var ei={YAML:function(e,t,n){var r,o,i;null!==e.version&&er(e,"duplication of %YAML directive"),1!==n.length&&er(e,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&er(e,"ill-formed argument of the YAML directive"),o=parseInt(r[1],10),i=parseInt(r[2],10),1!==o&&er(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&eo(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,o;2!==n.length&&er(e,"TAG directive accepts exactly two arguments"),r=n[0],o=n[1],U.test(r)||er(e,"ill-formed tag handle (first argument) of the TAG directive"),F.call(e.tagMap,r)&&er(e,'there is a previously declared suffix for "'+r+'" tag handle'),q.test(o)||er(e,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch(t){er(e,"tag prefix is malformed: "+o)}e.tagMap[r]=o}};function ea(e,t,n,r){var o,i,a,s;if(t<n){if(s=e.input.slice(t,n),r)for(o=0,i=s.length;o<i;o+=1)9===(a=s.charCodeAt(o))||32<=a&&a<=1114111||er(e,"expected valid JSON character");else D.test(s)&&er(e,"the stream contains non-printable characters");e.result+=s}}function es(e,t,n,r){var o,i,a,s,l;for("object"==typeof(l=n)&&null!==l||er(e,"cannot merge mappings; the provided source object is unacceptable"),a=0,s=(o=Object.keys(n)).length;a<s;a+=1)i=o[a],F.call(t,i)||(t[i]=n[i],r[i]=!0)}function el(e,t,n,r,o,i,a,s,l){var c,u;if(Array.isArray(o))for(c=0,u=(o=Array.prototype.slice.call(o)).length;c<u;c+=1)Array.isArray(o[c])&&er(e,"nested arrays are not supported inside keys"),"object"==typeof o&&"[object Object]"===V(o[c])&&(o[c]="[object Object]");if("object"==typeof o&&"[object Object]"===V(o)&&(o="[object Object]"),o=String(o),null===t&&(t={}),"tag:yaml.org,2002:merge"===r)if(Array.isArray(i))for(c=0,u=i.length;c<u;c+=1)es(e,t,i[c],n);else es(e,t,i,n);else!e.json&&!F.call(n,o)&&F.call(t,o)&&(e.line=a||e.line,e.lineStart=s||e.lineStart,e.position=l||e.position,er(e,"duplicated mapping key")),"__proto__"===o?Object.defineProperty(t,o,{configurable:!0,enumerable:!0,writable:!0,value:i}):t[o]=i,delete n[o];return t}function ec(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):er(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function eu(e,t,n){for(var r=0,o=e.input.charCodeAt(e.position);0!==o;){for(;X(o);)9===o&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),o=e.input.charCodeAt(++e.position);if(t&&35===o)do o=e.input.charCodeAt(++e.position);while(10!==o&&13!==o&&0!==o);if(G(o))for(ec(e),o=e.input.charCodeAt(e.position),r++,e.lineIndent=0;32===o;)e.lineIndent++,o=e.input.charCodeAt(++e.position);else break}return -1!==n&&0!==r&&e.lineIndent<n&&eo(e,"deficient indentation"),r}function ed(e){var t,n=e.position;return!!((45===(t=e.input.charCodeAt(n))||46===t)&&t===e.input.charCodeAt(n+1)&&t===e.input.charCodeAt(n+2)&&(n+=3,0===(t=e.input.charCodeAt(n))||K(t)))||!1}function ef(e,t){1===t?e.result+=" ":t>1&&(e.result+=r("\n",t-1))}function ep(e,t){var n,r,o=e.tag,i=e.anchor,a=[],s=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),r=e.input.charCodeAt(e.position);0!==r&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,er(e,"tab characters must not be used in indentation")),45===r&&K(e.input.charCodeAt(e.position+1)));){if(s=!0,e.position++,eu(e,!0,-1)&&e.lineIndent<=t){a.push(null),r=e.input.charCodeAt(e.position);continue}if(n=e.line,eh(e,t,3,!1,!0),a.push(e.result),eu(e,!0,-1),r=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==r)er(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return!!s&&(e.tag=o,e.anchor=i,e.kind="sequence",e.result=a,!0)}function eh(e,t,n,o,i){var a,s,l,c,u,d,f,p,h,m=1,g=!1,v=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=s=l=4===n||3===n,o&&eu(e,!0,-1)&&(g=!0,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)),1===m)for(;function(e){var t,n,r,o,i=!1,a=!1;if(33!==(o=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&er(e,"duplication of a tag property"),60===(o=e.input.charCodeAt(++e.position))?(i=!0,o=e.input.charCodeAt(++e.position)):33===o?(a=!0,n="!!",o=e.input.charCodeAt(++e.position)):n="!",t=e.position,i){do o=e.input.charCodeAt(++e.position);while(0!==o&&62!==o);e.position<e.length?(r=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):er(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==o&&!K(o);)33===o&&(a?er(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),U.test(n)||er(e,"named tag handle cannot contain such characters"),a=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);r=e.input.slice(t,e.position),W.test(r)&&er(e,"tag suffix cannot contain flow indicator characters")}r&&!q.test(r)&&er(e,"tag name cannot contain such characters: "+r);try{r=decodeURIComponent(r)}catch(t){er(e,"tag name is malformed: "+r)}return i?e.tag=r:F.call(e.tagMap,n)?e.tag=e.tagMap[n]+r:"!"===n?e.tag="!"+r:"!!"===n?e.tag="tag:yaml.org,2002:"+r:er(e,'undeclared tag handle "'+n+'"'),!0}(e)||function(e){var t,n;if(38!==(n=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&er(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!K(n)&&!Y(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&er(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}(e);)eu(e,!0,-1)?(g=!0,l=a,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)):l=!1;if(l&&(l=g||i),(1===m||4===n)&&(p=1===n||2===n?t:t+1,h=e.position-e.lineStart,1===m?l&&(ep(e,h)||function(e,t,n){var r,o,i,a,s,l,c,u=e.tag,d=e.anchor,f={},p=Object.create(null),h=null,m=null,g=null,v=!1,b=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=f),c=e.input.charCodeAt(e.position);0!==c;){if(v||-1===e.firstTabInLine||(e.position=e.firstTabInLine,er(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),i=e.line,(63===c||58===c)&&K(r))63===c?(v&&(el(e,f,p,h,m,null,a,s,l),h=m=g=null),b=!0,v=!0,o=!0):v?(v=!1,o=!0):er(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,c=r;else{if(a=e.line,s=e.lineStart,l=e.position,!eh(e,n,2,!1,!0))break;if(e.line===i){for(c=e.input.charCodeAt(e.position);X(c);)c=e.input.charCodeAt(++e.position);if(58===c)K(c=e.input.charCodeAt(++e.position))||er(e,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(el(e,f,p,h,m,null,a,s,l),h=m=g=null),b=!0,v=!1,o=!1,h=e.tag,m=e.result;else{if(!b)return e.tag=u,e.anchor=d,!0;er(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!b)return e.tag=u,e.anchor=d,!0;er(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}if((e.line===i||e.lineIndent>t)&&(v&&(a=e.line,s=e.lineStart,l=e.position),eh(e,t,4,!0,o)&&(v?m=e.result:g=e.result),v||(el(e,f,p,h,m,g,a,s,l),h=m=g=null),eu(e,!0,-1),c=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&0!==c)er(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return v&&el(e,f,p,h,m,null,a,s,l),b&&(e.tag=u,e.anchor=d,e.kind="mapping",e.result=f),b}(e,h,p))||function(e,t){var n,r,o,i,a,s,l,c,u,d,f,p,h=!0,m=e.tag,g=e.anchor,v=Object.create(null);if(91===(p=e.input.charCodeAt(e.position)))a=93,c=!1,i=[];else{if(123!==p)return!1;a=125,c=!0,i={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),p=e.input.charCodeAt(++e.position);0!==p;){if(eu(e,!0,t),(p=e.input.charCodeAt(e.position))===a)return e.position++,e.tag=m,e.anchor=g,e.kind=c?"mapping":"sequence",e.result=i,!0;h?44===p&&er(e,"expected the node content, but found ','"):er(e,"missed comma between flow collection entries"),d=u=f=null,s=l=!1,63===p&&K(e.input.charCodeAt(e.position+1))&&(s=l=!0,e.position++,eu(e,!0,t)),n=e.line,r=e.lineStart,o=e.position,eh(e,t,1,!1,!0),d=e.tag,u=e.result,eu(e,!0,t),p=e.input.charCodeAt(e.position),(l||e.line===n)&&58===p&&(s=!0,p=e.input.charCodeAt(++e.position),eu(e,!0,t),eh(e,t,1,!1,!0),f=e.result),c?el(e,i,v,d,u,f,n,r,o):s?i.push(el(e,null,v,d,u,f,n,r,o)):i.push(u),eu(e,!0,t),44===(p=e.input.charCodeAt(e.position))?(h=!0,p=e.input.charCodeAt(++e.position)):h=!1}er(e,"unexpected end of the stream within a flow collection")}(e,p)?v=!0:(s&&function(e,t){var n,o,i,a,s,l=1,c=!1,u=!1,d=t,f=0,p=!1;if(124===(s=e.input.charCodeAt(e.position)))i=!1;else{if(62!==s)return!1;i=!0}for(e.kind="scalar",e.result="";0!==s;)if(43===(s=e.input.charCodeAt(++e.position))||45===s)1===l?l=43===s?3:2:er(e,"repeat of a chomping mode identifier");else if((a=48<=(n=s)&&n<=57?n-48:-1)>=0)0===a?er(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):u?er(e,"repeat of an indentation width identifier"):(d=t+a-1,u=!0);else break;if(X(s)){do s=e.input.charCodeAt(++e.position);while(X(s));if(35===s)do s=e.input.charCodeAt(++e.position);while(!G(s)&&0!==s)}for(;0!==s;){for(ec(e),e.lineIndent=0,s=e.input.charCodeAt(e.position);(!u||e.lineIndent<d)&&32===s;)e.lineIndent++,s=e.input.charCodeAt(++e.position);if(!u&&e.lineIndent>d&&(d=e.lineIndent),G(s)){f++;continue}if(e.lineIndent<d){3===l?e.result+=r("\n",c?1+f:f):1===l&&c&&(e.result+="\n");break}for(i?X(s)?(p=!0,e.result+=r("\n",c?1+f:f)):p?(p=!1,e.result+=r("\n",f+1)):0===f?c&&(e.result+=" "):e.result+=r("\n",f):e.result+=r("\n",c?1+f:f),c=!0,u=!0,f=0,o=e.position;!G(s)&&0!==s;)s=e.input.charCodeAt(++e.position);ea(e,o,e.position,!1)}return!0}(e,p)||function(e,t){var n,r,o;if(39!==(n=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=o=e.position;0!==(n=e.input.charCodeAt(e.position));)if(39===n){if(ea(e,r,e.position,!0),39!==(n=e.input.charCodeAt(++e.position)))return!0;r=e.position,e.position++,o=e.position}else G(n)?(ea(e,r,o,!0),ef(e,eu(e,!1,t)),r=o=e.position):e.position===e.lineStart&&ed(e)?er(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position);er(e,"unexpected end of the stream within a single quoted scalar")}(e,p)||function(e,t){var n,r,o,i,a,s,l,c;if(34!==(s=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;0!==(s=e.input.charCodeAt(e.position));)if(34===s)return ea(e,n,e.position,!0),e.position++,!0;else if(92===s){if(ea(e,n,e.position,!0),G(s=e.input.charCodeAt(++e.position)))eu(e,!1,t);else if(s<256&&Q[s])e.result+=J[s],e.position++;else if((a=120===(l=s)?2:117===l?4:8*(85===l))>0){for(o=a,i=0;o>0;o--)(a=function(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}(s=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+a:er(e,"expected hexadecimal character");e.result+=(c=i)<=65535?String.fromCharCode(c):String.fromCharCode((c-65536>>10)+55296,(c-65536&1023)+56320),e.position++}else er(e,"unknown escape sequence");n=r=e.position}else G(s)?(ea(e,n,r,!0),ef(e,eu(e,!1,t)),n=r=e.position):e.position===e.lineStart&&ed(e)?er(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position);er(e,"unexpected end of the stream within a double quoted scalar")}(e,p)?v=!0:!function(e){var t,n,r;if(42!==(r=e.input.charCodeAt(e.position)))return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!K(r)&&!Y(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&er(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),F.call(e.anchorMap,n)||er(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],eu(e,!0,-1),!0}(e)?function(e,t,n){var r,o,i,a,s,l,c,u,d=e.kind,f=e.result;if(K(u=e.input.charCodeAt(e.position))||Y(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u||(63===u||45===u)&&(K(r=e.input.charCodeAt(e.position+1))||n&&Y(r)))return!1;for(e.kind="scalar",e.result="",o=i=e.position,a=!1;0!==u;){if(58===u){if(K(r=e.input.charCodeAt(e.position+1))||n&&Y(r))break}else if(35===u){if(K(e.input.charCodeAt(e.position-1)))break}else if(e.position===e.lineStart&&ed(e)||n&&Y(u))break;else if(G(u)){if(s=e.line,l=e.lineStart,c=e.lineIndent,eu(e,!1,-1),e.lineIndent>=t){a=!0,u=e.input.charCodeAt(e.position);continue}e.position=i,e.line=s,e.lineStart=l,e.lineIndent=c;break}a&&(ea(e,o,i,!1),ef(e,e.line-s),o=i=e.position,a=!1),X(u)||(i=e.position+1),u=e.input.charCodeAt(++e.position)}return ea(e,o,i,!1),!!e.result||(e.kind=d,e.result=f,!1)}(e,p,1===n)&&(v=!0,null===e.tag&&(e.tag="?")):(v=!0,(null!==e.tag||null!==e.anchor)&&er(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===m&&(v=l&&ep(e,h))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&er(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),c=0,u=e.implicitTypes.length;c<u;c+=1)if((f=e.implicitTypes[c]).resolve(e.result)){e.result=f.construct(e.result),e.tag=f.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(F.call(e.typeMap[e.kind||"fallback"],e.tag))f=e.typeMap[e.kind||"fallback"][e.tag];else for(c=0,f=null,u=(d=e.typeMap.multi[e.kind||"fallback"]).length;c<u;c+=1)if(e.tag.slice(0,d[c].tag.length)===d[c].tag){f=d[c];break}f||er(e,"unknown tag !<"+e.tag+">"),null!==e.result&&f.kind!==e.kind&&er(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+f.kind+'", not "'+e.kind+'"'),f.resolve(e.result,e.tag)?(e.result=f.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):er(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||v}function em(e,t){e=String(e),t=t||{},0!==e.length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var n=new et(e,t),r=e.indexOf("\0");for(-1!==r&&(n.position=r,er(n,"null byte is not allowed in input")),n.input+="\0";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)!function(e){var t,n,r,o,i=e.position,a=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(o=e.input.charCodeAt(e.position))&&(eu(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0)&&37===o);){for(a=!0,o=e.input.charCodeAt(++e.position),t=e.position;0!==o&&!K(o);)o=e.input.charCodeAt(++e.position);for(n=e.input.slice(t,e.position),r=[],n.length<1&&er(e,"directive name must not be less than one character in length");0!==o;){for(;X(o);)o=e.input.charCodeAt(++e.position);if(35===o){do o=e.input.charCodeAt(++e.position);while(0!==o&&!G(o));break}if(G(o))break;for(t=e.position;0!==o&&!K(o);)o=e.input.charCodeAt(++e.position);r.push(e.input.slice(t,e.position))}0!==o&&ec(e),F.call(ei,n)?ei[n](e,n,r):eo(e,'unknown document directive "'+n+'"')}if(eu(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,eu(e,!0,-1)):a&&er(e,"directives end mark is expected"),eh(e,e.lineIndent-1,4,!1,!0),eu(e,!0,-1),e.checkLineBreaks&&H.test(e.input.slice(i,e.position))&&eo(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&ed(e)){46===e.input.charCodeAt(e.position)&&(e.position+=3,eu(e,!0,-1));return}e.position<e.length-1&&er(e,"end of the stream or a document separator is expected")}(n);return n.documents}var eg=Object.prototype.toString,ev=Object.prototype.hasOwnProperty,eb={};eb[0]="\\0",eb[7]="\\a",eb[8]="\\b",eb[9]="\\t",eb[10]="\\n",eb[11]="\\v",eb[12]="\\f",eb[13]="\\r",eb[27]="\\e",eb[34]='\\"',eb[92]="\\\\",eb[133]="\\N",eb[160]="\\_",eb[8232]="\\L",eb[8233]="\\P";var ey=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],ew=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function ex(e){this.schema=e.schema||L,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=null==e.flowLevel?-1:e.flowLevel,this.styleMap=function(e,t){var n,r,o,i,a,s,l;if(null===t)return{};for(o=0,n={},i=(r=Object.keys(t)).length;o<i;o+=1)s=String(t[a=r[o]]),"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2)),(l=e.compiledTypeMap.fallback[a])&&ev.call(l.styleAliases,s)&&(s=l.styleAliases[s]),n[a]=s;return n}(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?2:1,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function eA(e,t){for(var n,o=r(" ",t),i=0,a=-1,s="",l=e.length;i<l;)-1===(a=e.indexOf("\n",i))?(n=e.slice(i),i=l):(n=e.slice(i,a+1),i=a+1),n.length&&"\n"!==n&&(s+=o),s+=n;return s}function eE(e,t){return"\n"+r(" ",e.indent*t)}function e$(e){return 32===e||9===e}function eS(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&65279!==e||65536<=e&&e<=1114111}function eC(e){return eS(e)&&65279!==e&&13!==e&&10!==e}function eO(e,t,n){var r=eC(e),o=r&&!e$(e);return(n?r:r&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!o)||eC(t)&&!e$(t)&&35===e||58===t&&o}function ek(e,t){var n,r=e.charCodeAt(t);return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1))>=56320&&n<=57343?(r-55296)*1024+n-56320+65536:r}function e_(e){return/^\n* /.test(e)}function eI(e,t){var n=e_(e)?String(t):"",r="\n"===e[e.length-1];return n+(r&&("\n"===e[e.length-2]||"\n"===e)?"+":r?"":"-")+"\n"}function eR(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function ej(e,t){if(""===e||" "===e[0])return e;for(var n,r,o=/ [^ ]/g,i=0,a=0,s=0,l="";n=o.exec(e);)(s=n.index)-i>t&&(r=a>i?a:s,l+="\n"+e.slice(i,r),i=r+1),a=s;return l+="\n",e.length-i>t&&a>i?l+=e.slice(i,a)+"\n"+e.slice(a+1):l+=e.slice(i),l.slice(1)}function eN(e,t,n,r){var o,i,a,s="",l=e.tag;for(o=0,i=n.length;o<i;o+=1)a=n[o],e.replacer&&(a=e.replacer.call(n,String(o),a)),(eP(e,t+1,a,!0,!0,!1,!0)||void 0===a&&eP(e,t+1,null,!0,!0,!1,!0))&&(r&&""===s||(s+=eE(e,t)),e.dump&&10===e.dump.charCodeAt(0)?s+="-":s+="- ",s+=e.dump);e.tag=l,e.dump=s||"[]"}function eT(e,t,n){var r,o,i,s,l,c;for(i=0,s=(o=n?e.explicitTypes:e.implicitTypes).length;i<s;i+=1)if(((l=o[i]).instanceOf||l.predicate)&&(!l.instanceOf||"object"==typeof t&&t instanceof l.instanceOf)&&(!l.predicate||l.predicate(t))){if(n?l.multi&&l.representName?e.tag=l.representName(t):e.tag=l.tag:e.tag="?",l.represent){if(c=e.styleMap[l.tag]||l.defaultStyle,"[object Function]"===eg.call(l.represent))r=l.represent(t,c);else if(ev.call(l.represent,c))r=l.represent[c](t,c);else throw new a("!<"+l.tag+'> tag resolver accepts not "'+c+'" style');e.dump=r}return!0}return!1}function eP(e,t,n,o,i,s,l){e.tag=null,e.dump=n,eT(e,n,!1)||eT(e,n,!0);var c,u=eg.call(e.dump),d=o;o&&(o=e.flowLevel<0||e.flowLevel>t);var f,p,h,m="[object Object]"===u||"[object Array]"===u;if(m&&(h=-1!==(p=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||h||2!==e.indent&&t>0)&&(i=!1),h&&e.usedDuplicates[p])e.dump="*ref_"+p;else{if(m&&h&&!e.usedDuplicates[p]&&(e.usedDuplicates[p]=!0),"[object Object]"===u)o&&0!==Object.keys(e.dump).length?(!function(e,t,n,r){var o,i,s,l,c,u,d="",f=e.tag,p=Object.keys(n);if(!0===e.sortKeys)p.sort();else if("function"==typeof e.sortKeys)p.sort(e.sortKeys);else if(e.sortKeys)throw new a("sortKeys must be a boolean or a function");for(o=0,i=p.length;o<i;o+=1)u="",r&&""===d||(u+=eE(e,t)),l=n[s=p[o]],e.replacer&&(l=e.replacer.call(n,s,l)),eP(e,t+1,s,!0,!0,!0)&&((c=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&10===e.dump.charCodeAt(0)?u+="?":u+="? "),u+=e.dump,c&&(u+=eE(e,t)),eP(e,t+1,l,!0,c)&&(e.dump&&10===e.dump.charCodeAt(0)?u+=":":u+=": ",u+=e.dump,d+=u));e.tag=f,e.dump=d||"{}"}(e,t,e.dump,i),h&&(e.dump="&ref_"+p+e.dump)):(!function(e,t,n){var r,o,i,a,s,l="",c=e.tag,u=Object.keys(n);for(r=0,o=u.length;r<o;r+=1)s="",""!==l&&(s+=", "),e.condenseFlow&&(s+='"'),a=n[i=u[r]],e.replacer&&(a=e.replacer.call(n,i,a)),eP(e,t,i,!1,!1)&&(e.dump.length>1024&&(s+="? "),s+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),eP(e,t,a,!1,!1)&&(s+=e.dump,l+=s));e.tag=c,e.dump="{"+l+"}"}(e,t,e.dump),h&&(e.dump="&ref_"+p+" "+e.dump));else if("[object Array]"===u)o&&0!==e.dump.length?(e.noArrayIndent&&!l&&t>0?eN(e,t-1,e.dump,i):eN(e,t,e.dump,i),h&&(e.dump="&ref_"+p+e.dump)):(!function(e,t,n){var r,o,i,a="",s=e.tag;for(r=0,o=n.length;r<o;r+=1)i=n[r],e.replacer&&(i=e.replacer.call(n,String(r),i)),(eP(e,t,i,!1,!1)||void 0===i&&eP(e,t,null,!1,!1))&&(""!==a&&(a+=","+(e.condenseFlow?"":" ")),a+=e.dump);e.tag=s,e.dump="["+a+"]"}(e,t,e.dump),h&&(e.dump="&ref_"+p+" "+e.dump));else if("[object String]"===u)"?"!==e.tag&&(c=e.dump,e.dump=function(){if(0===c.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==ey.indexOf(c)||ew.test(c)))return 2===e.quotingType?'"'+c+'"':"'"+c+"'";var n=e.indent*Math.max(1,t),o=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-n);switch(function(e,t,n,r,o,i,a,s){var l,c,u,d=0,f=null,p=!1,h=!1,m=-1!==r,g=-1,v=eS(l=ek(e,0))&&65279!==l&&!e$(l)&&45!==l&&63!==l&&58!==l&&44!==l&&91!==l&&93!==l&&123!==l&&125!==l&&35!==l&&38!==l&&42!==l&&33!==l&&124!==l&&61!==l&&62!==l&&39!==l&&34!==l&&37!==l&&64!==l&&96!==l&&!e$(c=ek(e,e.length-1))&&58!==c;if(t||a)for(u=0;u<e.length;d>=65536?u+=2:u++){if(!eS(d=ek(e,u)))return 5;v=v&&eO(d,f,s),f=d}else{for(u=0;u<e.length;d>=65536?u+=2:u++){if(10===(d=ek(e,u)))p=!0,m&&(h=h||u-g-1>r&&" "!==e[g+1],g=u);else if(!eS(d))return 5;v=v&&eO(d,f,s),f=d}h=h||m&&u-g-1>r&&" "!==e[g+1]}return p||h?n>9&&e_(e)?5:a?2===i?5:2:h?4:3:!v||a||o(e)?2===i?5:2:1}(c,s||e.flowLevel>-1&&t>=e.flowLevel,e.indent,o,function(t){var n,r;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1},e.quotingType,e.forceQuotes&&!s,d)){case 1:return c;case 2:return"'"+c.replace(/'/g,"''")+"'";case 3:return"|"+eI(c,e.indent)+eR(eA(c,n));case 4:return">"+eI(c,e.indent)+eR(eA(function(e,t){for(var n,r,o,i=/(\n+)([^\n]*)/g,a=(i.lastIndex=n=-1!==(n=e.indexOf("\n"))?n:e.length,ej(e.slice(0,n),t)),s="\n"===e[0]||" "===e[0];o=i.exec(e);){var l=o[1],c=o[2];r=" "===c[0],a+=l+(s||r||""===c?"":"\n")+ej(c,t),s=r}return a}(c,o),n));case 5:return'"'+function(e){for(var t,n="",o=0,i=0;i<e.length;o>=65536?i+=2:i++)!(t=eb[o=ek(e,i)])&&eS(o)?(n+=e[i],o>=65536&&(n+=e[i+1])):n+=t||function(e){var t,n,o;if(t=e.toString(16).toUpperCase(),e<=255)n="x",o=2;else if(e<=65535)n="u",o=4;else if(e<=0xffffffff)n="U",o=8;else throw new a("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+r("0",o-t.length)+t}(o);return n}(c)+'"';default:throw new a("impossible error: invalid scalar style")}}());else{if("[object Undefined]"===u||e.skipInvalid)return!1;throw new a("unacceptable kind of an object to dump "+u)}null!==e.tag&&"?"!==e.tag&&(f=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),f="!"===e.tag[0]?"!"+f:"tag:yaml.org,2002:"===f.slice(0,18)?"!!"+f.slice(18):"!<"+f+">",e.dump=f+" "+e.dump)}return!0}function eM(e,t){return function(){throw Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}let ez={Type:f,Schema:h,FAILSAFE_SCHEMA:b,JSON_SCHEMA:S,CORE_SCHEMA:S,DEFAULT_SCHEMA:L,load:function(e,t){var n=em(e,t);if(0!==n.length){if(1===n.length)return n[0];throw new a("expected a single document in the stream, but found more")}},loadAll:function(e,t,n){null!==t&&"object"==typeof t&&void 0===n&&(n=t,t=null);var r=em(e,n);if("function"!=typeof t)return r;for(var o=0,i=r.length;o<i;o+=1)t(r[o])},dump:function(e,t){var n=new ex(t=t||{});n.noRefs||function(e,t){var n,r,o=[],i=[];for(function e(t,n,r){var o,i,a;if(null!==t&&"object"==typeof t)if(-1!==(i=n.indexOf(t)))-1===r.indexOf(i)&&r.push(i);else if(n.push(t),Array.isArray(t))for(i=0,a=t.length;i<a;i+=1)e(t[i],n,r);else for(i=0,a=(o=Object.keys(t)).length;i<a;i+=1)e(t[o[i]],n,r)}(e,o,i),n=0,r=i.length;n<r;n+=1)t.duplicates.push(o[i[n]]);t.usedDuplicates=Array(r)}(e,n);var r=e;return(n.replacer&&(r=n.replacer.call({"":r},"",r)),eP(n,0,r,!0,!0))?n.dump+"\n":""},YAMLException:a,types:{binary:R,float:$,map:v,null:y,pairs:M,set:B,timestamp:k,bool:w,int:x,merge:_,omap:T,seq:g,str:m},safeLoad:eM("safeLoad","load"),safeLoadAll:eM("safeLoadAll","loadAll"),safeDump:eM("safeDump","dump")}},6990(e,t,n){"use strict";n.d(t,{m:()=>$});class r extends Error{constructor(e,t){super("".concat(e," at position ").concat(t)),this.position=t}}function o(e){return e>="0"&&e<="9"}function i(e){return",:[]/{}()\n+".includes(e)}function a(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||"_"===e||"$"===e}function s(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||"_"===e||"$"===e||e>="0"&&e<="9"}let l=/^(http|https|ftp|mailto|file|data|irc):\/\/$/,c=/^[A-Za-z0-9-._~:/?#@!$&'()*+;=]$/;function u(e){return",[]/{}\n+".includes(e)}function d(e){return m(e)||f.test(e)}let f=/^[[{\w-]$/;function p(e,t){let n=e.charCodeAt(t);return 32===n||10===n||9===n||13===n}function h(e,t){let n=e.charCodeAt(t);return 32===n||9===n||13===n}function m(e){return g(e)||b(e)}function g(e){return'"'===e||"“"===e||"”"===e}function v(e){return'"'===e}function b(e){return"'"===e||"‘"===e||"’"===e||"`"===e||"\xb4"===e}function y(e){return"'"===e}function w(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.lastIndexOf(t);return -1!==r?e.substring(0,r)+(n?"":e.substring(r+1)):e}function x(e,t){let n=e.length;if(!p(e,n-1))return e+t;for(;p(e,n-1);)n--;return e.substring(0,n)+t+e.substring(n)}let A={"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},E={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:" "};function $(e){var t;let n=0,f="";k(),S()||function(){throw new r("Unexpected end of json string",e.length)}(),k();let $=_(",");for(($&&C(),d(e[n])&&(t=f,/[,\n][ \t\r]*$/.test(t)))?($||(f=x(f,",")),function(){let e=!0,t=!0;for(;t;)e?e=!1:_(",")||(f=x(f,",")),t=S();t||(f=w(f,",")),f="[\n".concat(f,"\n]")}()):$&&(f=w(f,","));"}"===e[n]||"]"===e[n];)n++,C();if(n>=e.length)return f;function S(){C();let t=function(){if("{"===e[n]){f+="{",n++,C(),I(",")&&C();let t=!0;for(;n<e.length&&"}"!==e[n];){if(t?t=!1:(_(",")||(f=x(f,",")),C()),R(),!(j()||P(!0))){"}"===e[n]||"{"===e[n]||"]"===e[n]||"["===e[n]||void 0===e[n]?f=w(f,","):function(){throw new r("Object key expected",n)}();break}C();let o=_(":"),i=n>=e.length;o||(d(e[n])||i?f=x(f,":"):L()),S()||(o||i?f+="null":L())}return"}"===e[n]?(f+="}",n++):f=x(f,"}"),!0}return!1}()||function(){if("["===e[n]){f+="[",n++,C(),I(",")&&C();let t=!0;for(;n<e.length&&"]"!==e[n];)if(t?t=!1:_(",")||(f=x(f,",")),R(),!S()){f=w(f,",");break}return"]"===e[n]?(f+="]",n++):f=x(f,"]"),!0}return!1}()||j()||function(){let t=n;if("-"===e[n]){if(n++,z())return B(t),!0;if(!o(e[n]))return n=t,!1}for(;o(e[n]);)n++;if("."===e[n]){if(n++,z())return B(t),!0;if(!o(e[n]))return n=t,!1;for(;o(e[n]);)n++}if("e"===e[n]||"E"===e[n]){if(("-"===e[++n]||"+"===e[n])&&n++,z())return B(t),!0;if(!o(e[n]))return n=t,!1;for(;o(e[n]);)n++}if(!z())return n=t,!1;if(n>t){let r=e.slice(t,n),o=/^0\d/.test(r);return f+=o?'"'.concat(r,'"'):r,!0}return!1}()||T("true","true")||T("false","false")||T("null","null")||T("True","true")||T("False","false")||T("None","null")||P(!1)||function(){if("/"===e[n]){let t=n;for(n++;n<e.length&&("/"!==e[n]||"\\"===e[n-1]);)n++;return n++,f+='"'.concat(e.substring(t,n),'"'),!0}}();return C(),t}function C(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0],r=n,o=O(t);do(o=function(){if("/"===e[n]&&"*"===e[n+1]){for(var t,r;n<e.length&&("*"!==(t=e)[r=n]||"/"!==t[r+1]);)n++;return n+=2,!0}if("/"===e[n]&&"/"===e[n+1]){for(;n<e.length&&"\n"!==e[n];)n++;return!0}return!1}())&&(o=O(t));while(o);return n>r}function O(t){let r=t?p:h,o="";for(;;)if(r(e,n))o+=e[n],n++;else if(function(e,t){let n=e.charCodeAt(t);return 160===n||n>=8192&&n<=8202||8239===n||8287===n||12288===n}(e,n))o+=" ",n++;else break;return o.length>0&&(f+=o,!0)}throw new r("Unexpected character ".concat(JSON.stringify(e[n])),n);function k(){if("```"===e.slice(n,n+3)){if(a(e[n+=3]))for(;n<e.length&&s(e[n]);)n++;return C(),!0}return!1}function _(t){return e[n]===t&&(f+=e[n],n++,!0)}function I(t){return e[n]===t&&(n++,!0)}function R(){return C(),"."===e[n]&&"."===e[n+1]&&"."===e[n+2]&&(n+=3,C(),I(","),!0)}function j(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,s="\\"===e[n];if(s&&(n++,s=!0),m(e[n])){let p=v(e[n])?v:y(e[n])?y:b(e[n])?b:g,h=n,w=f.length,$='"';for(n++;;){var d;if(n>=e.length){let r=M(n-1);if(!t&&i(e.charAt(r)))return n=h,f=f.substring(0,w),j(!0);return $=x($,'"'),f+=$,!0}if(n===a)return $=x($,'"'),f+=$,!0;if(p(e[n])){let r=n,a=$.length;if($+='"',n++,f+=$,C(!1),t||n>=e.length||i(e[n])||m(e[n])||o(e[n]))return N(),!0;let s=M(r-1),l=e.charAt(s);if(","===l)return n=h,f=f.substring(0,w),j(!1,s);if(i(l))return n=h,f=f.substring(0,w),j(!0);f=f.substring(0,w),n=r+1,$="".concat($.substring(0,a),"\\").concat($.substring(a))}else if(t&&u(e[n])){if(":"===e[n-1]&&l.test(e.substring(h+1,n+2)))for(;n<e.length&&c.test(e[n]);)$+=e[n],n++;return $=x($,'"'),f+=$,N(),!0}else if("\\"===e[n]){let t=e.charAt(n+1);if(void 0!==E[t])$+=e.slice(n,n+2),n+=2;else if("u"===t){let t=2;for(;t<6&&(d=e[n+t],/^[0-9A-Fa-f]$/.test(d));)t++;6===t?($+=e.slice(n,n+6),n+=6):n+t>=e.length?n=e.length:function(){let t=e.slice(n,n+6);throw new r('Invalid unicode character "'.concat(t,'"'),n)}()}else $+=t,n+=2}else{let t=e.charAt(n);'"'===t&&"\\"!==e[n-1]?$+="\\".concat(t):"\n"===t||"\r"===t||" "===t||"\b"===t||"\f"===t?$+=A[t]:(t>=" "||function(e){throw new r("Invalid character ".concat(JSON.stringify(e)),n)}(t),$+=t),n++}s&&I("\\")}}return!1}function N(){let t=!1;for(C();"+"===e[n];){t=!0,n++,C();let e=(f=w(f,'"',!0)).length;if(j()){var r;f=(r=f).substring(0,e)+r.substring(e+1)}else f=x(f,'"')}return t}function T(t,r){return e.slice(n,n+t.length)===t&&(f+=r,n+=t.length,!0)}function P(t){let r=n;if(a(e[n])){for(;n<e.length&&s(e[n]);)n++;let t=n;for(;p(e,t);)t++;if("("===e[t])return n=t+1,S(),")"===e[n]&&";"===e[++n]&&n++,!0}for(;n<e.length&&!u(e[n])&&!m(e[n])&&(!t||":"!==e[n]);)n++;if(":"===e[n-1]&&l.test(e.substring(r,n+2)))for(;n<e.length&&c.test(e[n]);)n++;if(n>r){for(;p(e,n-1)&&n>0;)n--;let t=e.slice(r,n);return f+="undefined"===t?"null":JSON.stringify(t),'"'===e[n]&&n++,!0}}function M(t){let n=t;for(;n>0&&p(e,n);)n--;return n}function z(){return n>=e.length||i(e[n])||p(e,n)}function B(t){f+="".concat(e.slice(t,n),"0")}function L(){throw new r("Colon expected",n)}}},5678(e,t,n){"use strict";let r,o,i,a;function s(e,t,n,r,o){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!o)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n}function l(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}n.d(t,{Ay:()=>ra});let c=function(){let{crypto:e}=globalThis;if(e?.randomUUID)return c=e.randomUUID.bind(e),e.randomUUID();let t=new Uint8Array(1),n=e?()=>e.getRandomValues(t)[0]:()=>255*Math.random()&255;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=>(e^n()&15>>e/4).toString(16))};function u(e){return"object"==typeof e&&null!==e&&("name"in e&&"AbortError"===e.name||"message"in e&&String(e.message).includes("FetchRequestCanceledException"))}let d=e=>{if(e instanceof Error)return e;if("object"==typeof e&&null!==e){try{if("[object Error]"===Object.prototype.toString.call(e)){let t=Error(e.message,e.cause?{cause:e.cause}:{});return e.stack&&(t.stack=e.stack),e.cause&&!t.cause&&(t.cause=e.cause),e.name&&(t.name=e.name),t}}catch{}try{return Error(JSON.stringify(e))}catch{}}return Error(e)};class f extends Error{}class p extends f{constructor(e,t,n,r){super(`${p.makeMessage(e,t,n)}`),this.status=e,this.headers=r,this.requestID=r?.get("x-request-id"),this.error=t,this.code=t?.code,this.param=t?.param,this.type=t?.type}static makeMessage(e,t,n){let r=t?.message?"string"==typeof t.message?t.message:JSON.stringify(t.message):t?JSON.stringify(t):n;return e&&r?`${e} ${r}`:e?`${e} status code (no body)`:r||"(no status code or body)"}static generate(e,t,n,r){if(!e||!r)return new m({message:n,cause:d(t)});let o=t?.error;return 400===e?new v(e,o,n,r):401===e?new b(e,o,n,r):403===e?new y(e,o,n,r):404===e?new w(e,o,n,r):409===e?new x(e,o,n,r):422===e?new A(e,o,n,r):429===e?new E(e,o,n,r):e>=500?new $(e,o,n,r):new p(e,o,n,r)}}class h extends p{constructor({message:e}={}){super(void 0,void 0,e||"Request was aborted.",void 0)}}class m extends p{constructor({message:e,cause:t}){super(void 0,void 0,e||"Connection error.",void 0),t&&(this.cause=t)}}class g extends m{constructor({message:e}={}){super({message:e??"Request timed out."})}}class v extends p{}class b extends p{}class y extends p{}class w extends p{}class x extends p{}class A extends p{}class E extends p{}class $ extends p{}class S extends f{constructor(){super("Could not parse response content as the length limit was reached")}}class C extends f{constructor(){super("Could not parse response content as the request was rejected by the content filter")}}class O extends Error{constructor(e){super(e)}}let k=/^[a-z][a-z0-9+.-]*:/i,_=e=>(_=Array.isArray)(e),I=_;function R(e){return"object"!=typeof e?{}:e??{}}function j(e){return null!=e&&"object"==typeof e&&!Array.isArray(e)}let N=e=>new Promise(t=>setTimeout(t,e)),T=e=>"x32"===e?"x32":"x86_64"===e||"x64"===e?"x64":"arm"===e?"arm":"aarch64"===e||"arm64"===e?"arm64":e?`other:${e}`:"unknown",P=e=>(e=e.toLowerCase()).includes("ios")?"iOS":"android"===e?"Android":"darwin"===e?"MacOS":"win32"===e?"Windows":"freebsd"===e?"FreeBSD":"openbsd"===e?"OpenBSD":"linux"===e?"Linux":e?`Other:${e}`:"Unknown";function M(...e){let t=globalThis.ReadableStream;if(void 0===t)throw Error("`ReadableStream` is not defined as a global; You will need to polyfill it, `globalThis.ReadableStream = ReadableStream`");return new t(...e)}function z(e){let t=Symbol.asyncIterator in e?e[Symbol.asyncIterator]():e[Symbol.iterator]();return M({start(){},async pull(e){let{done:n,value:r}=await t.next();n?e.close():e.enqueue(r)},async cancel(){await t.return?.()}})}function B(e){if(e[Symbol.asyncIterator])return e;let t=e.getReader();return{async next(){try{let e=await t.read();return e?.done&&t.releaseLock(),e}catch(e){throw t.releaseLock(),e}},async return(){let e=t.cancel();return t.releaseLock(),await e,{done:!0,value:void 0}},[Symbol.asyncIterator](){return this}}}async function L(e){if(null===e||"object"!=typeof e)return;if(e[Symbol.asyncIterator])return void await e[Symbol.asyncIterator]().return?.();let t=e.getReader(),n=t.cancel();t.releaseLock(),await n}let F=({headers:e,body:t})=>({bodyHeaders:{"content-type":"application/json"},body:JSON.stringify(t)}),D="RFC3986",H=e=>String(e),W={RFC1738:e=>String(e).replace(/%20/g,"+"),RFC3986:H},U=(e,t)=>(U=Object.hasOwn??Function.prototype.call.bind(Object.prototype.hasOwnProperty))(e,t),q=(()=>{let e=[];for(let t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e})();function V(e,t){if(_(e)){let n=[];for(let r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)}let G={brackets:e=>String(e)+"[]",comma:"comma",indices:(e,t)=>String(e)+"["+t+"]",repeat:e=>String(e)},X=function(e,t){Array.prototype.push.apply(e,_(t)?t:[t])},K={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:(e,t,n,r,o)=>{if(0===e.length)return e;let i=e;if("symbol"==typeof e?i=Symbol.prototype.toString.call(e):"string"!=typeof e&&(i=String(e)),"iso-8859-1"===n)return escape(i).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});let a="";for(let e=0;e<i.length;e+=1024){let t=i.length>=1024?i.slice(e,e+1024):i,n=[];for(let e=0;e<t.length;++e){let r=t.charCodeAt(e);if(45===r||46===r||95===r||126===r||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122||"RFC1738"===o&&(40===r||41===r)){n[n.length]=t.charAt(e);continue}if(r<128){n[n.length]=q[r];continue}if(r<2048){n[n.length]=q[192|r>>6]+q[128|63&r];continue}if(r<55296||r>=57344){n[n.length]=q[224|r>>12]+q[128|r>>6&63]+q[128|63&r];continue}e+=1,r=65536+((1023&r)<<10|1023&t.charCodeAt(e)),n[n.length]=q[240|r>>18]+q[128|r>>12&63]+q[128|r>>6&63]+q[128|63&r]}a+=n.join("")}return a},encodeValuesOnly:!1,format:D,formatter:H,indices:!1,serializeDate:e=>(o??(o=Function.prototype.call.bind(Date.prototype.toISOString)))(e),skipNulls:!1,strictNullHandling:!1},Y={};function Z(e){let t;return(i??(i=(t=new globalThis.TextEncoder).encode.bind(t)))(e)}function Q(e){let t;return(a??(a=(t=new globalThis.TextDecoder).decode.bind(t)))(e)}class J{constructor(){td.set(this,void 0),tf.set(this,void 0),s(this,td,new Uint8Array,"f"),s(this,tf,null,"f")}decode(e){let t;if(null==e)return[];let n=e instanceof ArrayBuffer?new Uint8Array(e):"string"==typeof e?Z(e):e;s(this,td,function(e){let t=0;for(let n of e)t+=n.length;let n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}([l(this,td,"f"),n]),"f");let r=[];for(;null!=(t=function(e,t){for(let n=t??0;n<e.length;n++){if(10===e[n])return{preceding:n,index:n+1,carriage:!1};if(13===e[n])return{preceding:n,index:n+1,carriage:!0}}return null}(l(this,td,"f"),l(this,tf,"f")));){if(t.carriage&&null==l(this,tf,"f")){s(this,tf,t.index,"f");continue}if(null!=l(this,tf,"f")&&(t.index!==l(this,tf,"f")+1||t.carriage)){r.push(Q(l(this,td,"f").subarray(0,l(this,tf,"f")-1))),s(this,td,l(this,td,"f").subarray(l(this,tf,"f")),"f"),s(this,tf,null,"f");continue}let e=null!==l(this,tf,"f")?t.preceding-1:t.preceding,n=Q(l(this,td,"f").subarray(0,e));r.push(n),s(this,td,l(this,td,"f").subarray(t.index),"f"),s(this,tf,null,"f")}return r}flush(){return l(this,td,"f").length?this.decode("\n"):[]}}td=new WeakMap,tf=new WeakMap,J.NEWLINE_CHARS=new Set(["\n","\r"]),J.NEWLINE_REGEXP=/\r\n|[\n\r]/g;let ee={off:0,error:200,warn:300,info:400,debug:500},et=(e,t,n)=>{if(e){if(Object.prototype.hasOwnProperty.call(ee,e))return e;ea(n).warn(`${t} was set to ${JSON.stringify(e)}, expected one of ${JSON.stringify(Object.keys(ee))}`)}};function en(){}function er(e,t,n){return!t||ee[e]>ee[n]?en:t[e].bind(t)}let eo={error:en,warn:en,info:en,debug:en},ei=new WeakMap;function ea(e){let t=e.logger,n=e.logLevel??"off";if(!t)return eo;let r=ei.get(t);if(r&&r[0]===n)return r[1];let o={error:er("error",t,n),warn:er("warn",t,n),info:er("info",t,n),debug:er("debug",t,n)};return ei.set(t,[n,o]),o}let es=e=>(e.options&&(e.options={...e.options},delete e.options.headers),e.headers&&(e.headers=Object.fromEntries((e.headers instanceof Headers?[...e.headers]:Object.entries(e.headers)).map(([e,t])=>[e,"authorization"===e.toLowerCase()||"cookie"===e.toLowerCase()||"set-cookie"===e.toLowerCase()?"***":t]))),"retryOfRequestLogID"in e&&(e.retryOfRequestLogID&&(e.retryOf=e.retryOfRequestLogID),delete e.retryOfRequestLogID),e);class el{constructor(e,t,n){this.iterator=e,tp.set(this,void 0),this.controller=t,s(this,tp,n,"f")}static fromSSEResponse(e,t,n){let r=!1,o=n?ea(n):console;async function*i(){if(r)throw new f("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");r=!0;let n=!1;try{for await(let r of ec(e,t))if(!n){if(r.data.startsWith("[DONE]")){n=!0;continue}if(null!==r.event&&r.event.startsWith("thread.")){let e;try{e=JSON.parse(r.data)}catch(e){throw console.error("Could not parse message into JSON:",r.data),console.error("From chunk:",r.raw),e}if("error"==r.event)throw new p(void 0,e.error,e.message,void 0);yield{event:r.event,data:e}}else{let t;try{t=JSON.parse(r.data)}catch(e){throw o.error("Could not parse message into JSON:",r.data),o.error("From chunk:",r.raw),e}if(t&&t.error)throw new p(void 0,t.error,void 0,e.headers);yield t}}n=!0}catch(e){if(u(e))return;throw e}finally{n||t.abort()}}return new el(i,t,n)}static fromReadableStream(e,t,n){let r=!1;async function*o(){let t=new J;for await(let n of B(e))for(let e of t.decode(n))yield e;for(let e of t.flush())yield e}return new el(async function*(){if(r)throw new f("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");r=!0;let e=!1;try{for await(let t of o())!e&&t&&(yield JSON.parse(t));e=!0}catch(e){if(u(e))return;throw e}finally{e||t.abort()}},t,n)}[(tp=new WeakMap,Symbol.asyncIterator)](){return this.iterator()}tee(){let e=[],t=[],n=this.iterator(),r=r=>({next:()=>{if(0===r.length){let r=n.next();e.push(r),t.push(r)}return r.shift()}});return[new el(()=>r(e),this.controller,l(this,tp,"f")),new el(()=>r(t),this.controller,l(this,tp,"f"))]}toReadableStream(){let e,t=this;return M({async start(){e=t[Symbol.asyncIterator]()},async pull(t){try{let{value:n,done:r}=await e.next();if(r)return t.close();let o=Z(JSON.stringify(n)+"\n");t.enqueue(o)}catch(e){t.error(e)}},async cancel(){await e.return?.()}})}}async function*ec(e,t){if(!e.body){if(t.abort(),void 0!==globalThis.navigator&&"ReactNative"===globalThis.navigator.product)throw new f("The default react-native fetch implementation does not support streaming. Please use expo/fetch: https://docs.expo.dev/versions/latest/sdk/expo/#expofetch-api");throw new f("Attempted to iterate over a response with no body")}let n=new ed,r=new J;for await(let t of eu(B(e.body)))for(let e of r.decode(t)){let t=n.decode(e);t&&(yield t)}for(let e of r.flush()){let t=n.decode(e);t&&(yield t)}}async function*eu(e){let t=new Uint8Array;for await(let n of e){let e;if(null==n)continue;let r=n instanceof ArrayBuffer?new Uint8Array(n):"string"==typeof n?Z(n):n,o=new Uint8Array(t.length+r.length);for(o.set(t),o.set(r,t.length),t=o;-1!==(e=function(e){for(let t=0;t<e.length-1;t++){if(10===e[t]&&10===e[t+1]||13===e[t]&&13===e[t+1])return t+2;if(13===e[t]&&10===e[t+1]&&t+3<e.length&&13===e[t+2]&&10===e[t+3])return t+4}return -1}(t));)yield t.slice(0,e),t=t.slice(e)}t.length>0&&(yield t)}class ed{constructor(){this.event=null,this.data=[],this.chunks=[]}decode(e){var t;let n;if(e.endsWith("\r")&&(e=e.substring(0,e.length-1)),!e){if(!this.event&&!this.data.length)return null;let e={event:this.event,data:this.data.join("\n"),raw:this.chunks};return this.event=null,this.data=[],this.chunks=[],e}if(this.chunks.push(e),e.startsWith(":"))return null;let[r,o,i]=-1!==(n=(t=e).indexOf(":"))?[t.substring(0,n),":",t.substring(n+1)]:[t,"",""];return i.startsWith(" ")&&(i=i.substring(1)),"event"===r?this.event=i:"data"===r&&this.data.push(i),null}}async function ef(e,t){let{response:n,requestLogID:r,retryOfRequestLogID:o,startTime:i}=t,a=await (async()=>{if(t.options.stream)return(ea(e).debug("response",n.status,n.url,n.headers,n.body),t.options.__streamClass)?t.options.__streamClass.fromSSEResponse(n,t.controller,e):el.fromSSEResponse(n,t.controller,e);if(204===n.status)return null;if(t.options.__binaryResponse)return n;let r=n.headers.get("content-type"),o=r?.split(";")[0]?.trim();return o?.includes("application/json")||o?.endsWith("+json")?ep(await n.json(),n):await n.text()})();return ea(e).debug(`[${r}] response parsed`,es({retryOfRequestLogID:o,url:n.url,status:n.status,body:a,durationMs:Date.now()-i})),a}function ep(e,t){return!e||"object"!=typeof e||Array.isArray(e)?e:Object.defineProperty(e,"_request_id",{value:t.headers.get("x-request-id"),enumerable:!1})}class eh extends Promise{constructor(e,t,n=ef){super(e=>{e(null)}),this.responsePromise=t,this.parseResponse=n,th.set(this,void 0),s(this,th,e,"f")}_thenUnwrap(e){return new eh(l(this,th,"f"),this.responsePromise,async(t,n)=>ep(e(await this.parseResponse(t,n),n),n.response))}asResponse(){return this.responsePromise.then(e=>e.response)}async withResponse(){let[e,t]=await Promise.all([this.parse(),this.asResponse()]);return{data:e,response:t,request_id:t.headers.get("x-request-id")}}parse(){return this.parsedPromise||(this.parsedPromise=this.responsePromise.then(e=>this.parseResponse(l(this,th,"f"),e))),this.parsedPromise}then(e,t){return this.parse().then(e,t)}catch(e){return this.parse().catch(e)}finally(e){return this.parse().finally(e)}}th=new WeakMap;class em{constructor(e,t,n,r){tm.set(this,void 0),s(this,tm,e,"f"),this.options=r,this.response=t,this.body=n}hasNextPage(){return!!this.getPaginatedItems().length&&null!=this.nextPageRequestOptions()}async getNextPage(){let e=this.nextPageRequestOptions();if(!e)throw new f("No next page expected; please check `.hasNextPage()` before calling `.getNextPage()`.");return await l(this,tm,"f").requestAPIList(this.constructor,e)}async *iterPages(){let e=this;for(yield e;e.hasNextPage();)e=await e.getNextPage(),yield e}async *[(tm=new WeakMap,Symbol.asyncIterator)](){for await(let e of this.iterPages())for(let t of e.getPaginatedItems())yield t}}class eg extends eh{constructor(e,t,n){super(e,t,async(e,t)=>new n(e,t.response,await ef(e,t),t.options))}async *[Symbol.asyncIterator](){for await(let e of(await this))yield e}}class ev extends em{constructor(e,t,n,r){super(e,t,n,r),this.data=n.data||[],this.object=n.object}getPaginatedItems(){return this.data??[]}nextPageRequestOptions(){return null}}class eb extends em{constructor(e,t,n,r){super(e,t,n,r),this.data=n.data||[],this.has_more=n.has_more||!1}getPaginatedItems(){return this.data??[]}hasNextPage(){return!1!==this.has_more&&super.hasNextPage()}nextPageRequestOptions(){let e=this.getPaginatedItems(),t=e[e.length-1]?.id;return t?{...this.options,query:{...R(this.options.query),after:t}}:null}}class ey extends em{constructor(e,t,n,r){super(e,t,n,r),this.data=n.data||[],this.has_more=n.has_more||!1,this.last_id=n.last_id||""}getPaginatedItems(){return this.data??[]}hasNextPage(){return!1!==this.has_more&&super.hasNextPage()}nextPageRequestOptions(){let e=this.last_id;return e?{...this.options,query:{...R(this.options.query),after:e}}:null}}let ew=()=>{if("undefined"==typeof File){let{process:e}=globalThis;throw Error("`File` is not defined as a global, which is required for file uploads."+("string"==typeof e?.versions?.node&&20>parseInt(e.versions.node.split("."))?" Update to Node 20 LTS or newer, or set `globalThis.File` to `import('node:buffer').File`.":""))}};function ex(e,t,n){return ew(),new File(e,t??"unknown_file",n)}function eA(e){return("object"==typeof e&&null!==e&&("name"in e&&e.name&&String(e.name)||"url"in e&&e.url&&String(e.url)||"filename"in e&&e.filename&&String(e.filename)||"path"in e&&e.path&&String(e.path))||"").split(/[\\/]/).pop()||void 0}let eE=e=>null!=e&&"object"==typeof e&&"function"==typeof e[Symbol.asyncIterator],e$=async(e,t)=>e_(e.body)?{...e,body:await eO(e.body,t)}:e,eS=async(e,t)=>({...e,body:await eO(e.body,t)}),eC=new WeakMap,eO=async(e,t)=>{if(!await function(e){let t="function"==typeof e?e:e.fetch,n=eC.get(t);if(n)return n;let r=(async()=>{try{let e="Response"in t?t.Response:(await t("data:,")).constructor,n=new FormData;if(n.toString()===await new e(n).text())return!1;return!0}catch{return!0}})();return eC.set(t,r),r}(t))throw TypeError("The provided fetch function does not support file uploads with the current global FormData class.");let n=new FormData;return await Promise.all(Object.entries(e||{}).map(([e,t])=>eI(n,e,t))),n},ek=e=>e instanceof Blob&&"name"in e,e_=e=>{if("object"==typeof e&&null!==e&&(e instanceof Response||eE(e)||ek(e)))return!0;if(Array.isArray(e))return e.some(e_);if(e&&"object"==typeof e){for(let t in e)if(e_(e[t]))return!0}return!1},eI=async(e,t,n)=>{if(void 0!==n){if(null==n)throw TypeError(`Received null for "${t}"; to pass null in FormData, you must use the string 'null'`);if("string"==typeof n||"number"==typeof n||"boolean"==typeof n)e.append(t,String(n));else if(n instanceof Response)e.append(t,ex([await n.blob()],eA(n)));else if(eE(n))e.append(t,ex([await new Response(z(n)).blob()],eA(n)));else if(ek(n))e.append(t,n,eA(n));else if(Array.isArray(n))await Promise.all(n.map(n=>eI(e,t+"[]",n)));else if("object"==typeof n)await Promise.all(Object.entries(n).map(([n,r])=>eI(e,`${t}[${n}]`,r)));else throw TypeError(`Invalid value given to form, expected a string, number, boolean, object, Array, File or Blob but got ${n} instead`)}},eR=e=>null!=e&&"object"==typeof e&&"number"==typeof e.size&&"string"==typeof e.type&&"function"==typeof e.text&&"function"==typeof e.slice&&"function"==typeof e.arrayBuffer;async function ej(e,t,n){let r,o;if(ew(),null!=(r=e=await e)&&"object"==typeof r&&"string"==typeof r.name&&"number"==typeof r.lastModified&&eR(r))return e instanceof File?e:ex([await e.arrayBuffer()],e.name);if(null!=(o=e)&&"object"==typeof o&&"string"==typeof o.url&&"function"==typeof o.blob){let r=await e.blob();return t||(t=new URL(e.url).pathname.split(/[\\/]/).pop()),ex(await eN(r),t,n)}let i=await eN(e);if(t||(t=eA(e)),!n?.type){let e=i.find(e=>"object"==typeof e&&"type"in e&&e.type);"string"==typeof e&&(n={...n,type:e})}return ex(i,t,n)}async function eN(e){let t=[];if("string"==typeof e||ArrayBuffer.isView(e)||e instanceof ArrayBuffer)t.push(e);else if(eR(e))t.push(e instanceof Blob?e:await e.arrayBuffer());else if(eE(e))for await(let n of e)t.push(...await eN(n));else{let t=e?.constructor?.name;throw Error(`Unexpected data type: ${typeof e}${t?`; constructor: ${t}`:""}${function(e){if("object"!=typeof e||null===e)return"";let t=Object.getOwnPropertyNames(e);return`; props: [${t.map(e=>`"${e}"`).join(", ")}]`}(e)}`)}return t}class eT{constructor(e){this._client=e}}function eP(e){return e.replace(/[^A-Za-z0-9\-._~!$&'()*+,;=:@]+/g,encodeURIComponent)}let eM=Object.freeze(Object.create(null)),ez=((e=eP)=>function(t,...n){let r;if(1===t.length)return t[0];let o=!1,i=[],a=t.reduce((t,r,a)=>{/[?#]/.test(r)&&(o=!0);let s=n[a],l=(o?encodeURIComponent:e)(""+s);return a!==n.length&&(null==s||"object"==typeof s&&s.toString===Object.getPrototypeOf(Object.getPrototypeOf(s.hasOwnProperty??eM)??eM)?.toString)&&(l=s+"",i.push({start:t.length+r.length,length:l.length,error:`Value of type ${Object.prototype.toString.call(s).slice(8,-1)} is not a valid path parameter`})),t+r+(a===n.length?"":l)},""),s=a.split(/[?#]/,1)[0],l=/(?<=^|\/)(?:\.|%2e){1,2}(?=\/|$)/gi;for(;null!==(r=l.exec(s));)i.push({start:r.index,length:r[0].length,error:`Value "${r[0]}" can't be safely passed as a path parameter`});if(i.sort((e,t)=>e.start-t.start),i.length>0){let e=0,t=i.reduce((t,n)=>{let r=" ".repeat(n.start-e),o="^".repeat(n.length);return e=n.start+n.length,t+r+o},"");throw new f(`Path parameters result in path with invalid segments:
293
+ `;static get isSupported(){return!!a((0,r.N)())}#T;constructor(e,t){super(e);const n=a(this.canvas,t);if(!n)throw Error("WebGL not supported");this.#T=n;const r=n.createShader(n.VERTEX_SHADER);if(n.shaderSource(r,s.vertexShaderSource),n.compileShader(r),!n.getShaderParameter(r,n.COMPILE_STATUS))throw Error(n.getShaderInfoLog(r));const o=n.createShader(n.FRAGMENT_SHADER);if(n.shaderSource(o,s.fragmentShaderSource),n.compileShader(o),!n.getShaderParameter(o,n.COMPILE_STATUS))throw Error(n.getShaderInfoLog(o));const i=n.createProgram();if(n.attachShader(i,r),n.attachShader(i,o),n.linkProgram(i),!n.getProgramParameter(i,n.LINK_STATUS))throw Error(n.getProgramInfoLog(i));n.useProgram(i);const l=n.createBuffer();n.bindBuffer(n.ARRAY_BUFFER,l),n.bufferData(n.ARRAY_BUFFER,new Float32Array([-1,-1,-1,1,1,1,1,-1]),n.STATIC_DRAW);const c=n.getAttribLocation(i,"xy");n.vertexAttribPointer(c,2,n.FLOAT,!1,0,0),n.enableVertexAttribArray(c);const u=n.createTexture();n.bindTexture(n.TEXTURE_2D,u),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.NEAREST),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.NEAREST),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE)}draw(e){let t=this.#T;return t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,e),t.viewport(0,0,t.drawingBufferWidth,t.drawingBufferHeight),t.drawArrays(t.TRIANGLE_FAN,0,4),i}}},4093(e,t,n){"use strict";n.d(t,{n:()=>r});let r={H264:0x68323634,H265:0x68323635,AV1:6387249}},6579(e,t,n){"use strict";n.d(t,{Mo:()=>a,a7:()=>i,vF:()=>o});var r=n(9505);let o={Baseline:1,Main:2,Extended:4,High:8,High10:16,High422:32,High444:64,ConstrainedBaseline:65536,ConstrainedHigh:524288},i={Level1:1,Level1b:2,Level11:4,Level12:8,Level13:16,Level2:32,Level21:64,Level22:128,Level3:256,Level31:512,Level32:1024,Level4:2048,Level41:4096,Level42:8192,Level5:16384,Level51:32768,Level52:65536,Level6:131072,Level61:262144,Level62:524288};function a(e){let{sequenceParameterSet:t,pictureParameterSet:n}=function(e){let t,n;for(let o of(0,r.N)(e))switch(31&o[0]){case 7:if(t=o,n)return{sequenceParameterSet:t,pictureParameterSet:n};break;case 8:if(n=o,t)return{sequenceParameterSet:t,pictureParameterSet:n}}throw Error("Invalid data")}(e),{profile_idc:o,constraint_set:i,level_idc:a,pic_width_in_mbs_minus1:s,pic_height_in_map_units_minus1:l,frame_mbs_only_flag:c,frame_crop_left_offset:u,frame_crop_right_offset:d,frame_crop_top_offset:f,frame_crop_bottom_offset:p}=function(e){let t,n,o,i,a=new r.$(e);if(0!==a.next())throw Error("Invalid data");let s=a.read(2);if(7!==a.read(5)||0===s)throw Error("Invalid data");let l=a.read(8),c=a.peek(8),u=!!a.next(),d=!!a.next(),f=!!a.next(),p=!!a.next(),h=!!a.next(),m=!!a.next();if(0!==a.read(2))throw Error("Invalid data");let g=a.read(8),v=a.decodeExponentialGolombNumber();if(100===l||110===l||122===l||244===l||44===l||83===l||86===l||118===l||128===l||138===l||139===l||134===l){let e=a.decodeExponentialGolombNumber();if(3===e&&a.next(),a.decodeExponentialGolombNumber(),a.decodeExponentialGolombNumber(),a.next(),a.next()){let t=[];for(let n=0;n<(3!==e?8:12);n+=1)t[n]=!!a.next(),t[n]}}a.decodeExponentialGolombNumber();let b=a.decodeExponentialGolombNumber();if(0===b)a.decodeExponentialGolombNumber();else if(1===b){a.next(),a.decodeExponentialGolombNumber(),a.decodeExponentialGolombNumber();let e=a.decodeExponentialGolombNumber(),t=[];for(let n=0;n<e;n+=1)t[n]=a.decodeExponentialGolombNumber()}a.decodeExponentialGolombNumber(),a.next();let y=a.decodeExponentialGolombNumber(),w=a.decodeExponentialGolombNumber(),x=a.next();x||a.next(),a.next();let A=!!a.next();return A?(t=a.decodeExponentialGolombNumber(),n=a.decodeExponentialGolombNumber(),o=a.decodeExponentialGolombNumber(),i=a.decodeExponentialGolombNumber()):(t=0,n=0,o=0,i=0),a.next(),{profile_idc:l,constraint_set:c,constraint_set0_flag:u,constraint_set1_flag:d,constraint_set2_flag:f,constraint_set3_flag:p,constraint_set4_flag:h,constraint_set5_flag:m,level_idc:g,seq_parameter_set_id:v,pic_width_in_mbs_minus1:y,pic_height_in_map_units_minus1:w,frame_mbs_only_flag:x,frame_cropping_flag:A,frame_crop_left_offset:t,frame_crop_right_offset:n,frame_crop_top_offset:o,frame_crop_bottom_offset:i}}(t),h=(s+1)*16,m=(l+1)*(2-c)*16,g=2*u,v=2*d,b=2*f,y=2*p;return{pictureParameterSet:n,sequenceParameterSet:t,profileIndex:o,constraintSet:i,levelIndex:a,encodedWidth:h,encodedHeight:m,cropLeft:g,cropRight:v,cropTop:b,cropBottom:y,croppedWidth:h-g-v,croppedHeight:m-b-y}}},9505(e,t,n){"use strict";function*r(e){let t=-1,n=0,r=!1;for(let o=0;o<e.length;o+=1){let i=e[o];if(r){if(i>3)throw Error("Invalid data");r=!1;continue}if(0===i){n+=1;continue}let a=n;if(n=0,-1===t){if(a>=2&&1===i){t=o+1;continue}throw Error("Invalid data")}if(!(a<2)){if(1===i){yield e.subarray(t,o-a),t=o+1;continue}if(a>2)throw Error("Invalid data");switch(i){case 2:throw Error("Invalid data");case 3:r=!0}}}if(r)throw Error("Invalid data");yield e.subarray(t,e.length)}n.d(t,{$:()=>o,N:()=>r});class o{#X;#K;#Y;#Z=0;#$=0;#S=7;#E=0;get byteLength(){return this.#K}get stopBitIndex(){return this.#Y}get bytePosition(){return this.#$}get bitPosition(){return this.#S}get ended(){return this.#$>=this.#K&&this.#S<=this.#Y}constructor(e){this.#X=e;for(let t=e.length-1;t>=0;t-=1){if(0===this.#X[t])continue;const n=e[t];for(let e=0;e<8;e+=1)if((n>>e&1)==1){this.#K=t,this.#Y=e,this.#Q();return}}throw Error("Stop bit not found")}#Q(){if(this.#E=this.#X[this.#$],2===this.#Z&&3===this.#E){this.#Z=0,this.#$+=1,this.#Q();return}0===this.#E?this.#Z+=1:this.#Z=0}next(){if(this.ended)throw Error("Bit index out of bounds");let e=this.#E>>this.#S&1;return this.#S-=1,this.#S<0&&(this.#$+=1,this.#S=7,this.#Q()),e}read(e){if(e>32)throw Error("Read length too large");let t=0;for(let n=0;n<e;n+=1)t=t<<1|this.next();return t}#J(){if(this.#$>=this.#K&&this.#S<this.#Y)throw Error("Bit index out of bounds")}skip(e){if(e<=this.#S+1){this.#S-=e,this.#J();return}for(e-=this.#S+1,this.#$+=1,this.#S=7,this.#Q(),this.#J();e>=8;e-=8)this.#$+=1,this.#Q(),this.#J();this.#S=7-e,this.#J()}decodeExponentialGolombNumber(){let e=0;for(;0===this.next();)e+=1;return 0===e?0:(1<<e|this.read(e))-1}#ee(){return{zeroCount:this.#Z,bytePosition:this.#$,bitPosition:this.#S,byte:this.#E}}#et(e){this.#Z=e.zeroCount,this.#$=e.bytePosition,this.#S=e.bitPosition,this.#E=e.byte}peek(e){let t=this.#ee(),n=this.read(e);return this.#et(t),n}readBytes(e){let t=new Uint8Array(e);for(let n=0;n<e;n+=1)t[n]=this.read(8);return t}peekBytes(e){let t=this.#ee(),n=this.readBytes(e);return this.#et(t),n}}},3083(e,t,n){"use strict";n.d(t,{ho:()=>o});let{AbortController:r}=globalThis,{WritableStream:o,TransformStream:i}=globalThis},9383(e,t,n){"use strict";n.d(t,{Ay:()=>ez});var r=function(e,t){var n,r="";for(n=0;n<t;n+=1)r+=e;return r},o=function(e){return 0===e&&-1/0==1/e};function i(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+="\n\n"+e.mark.snippet),r+" "+n):r}function a(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=i(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||""}function s(e,t,n,r,o){var i="",a="",s=Math.floor(o/2)-1;return r-t>s&&(t=r-s+(i=" ... ").length),n-r>s&&(n=r+s-(a=" ...").length),{str:i+e.slice(t,n).replace(/\t/g,"→")+a,pos:r-t+i.length}}function l(e,t){return r(" ",t-e.length)+e}a.prototype=Object.create(Error.prototype),a.prototype.constructor=a,a.prototype.toString=function(e){return this.name+": "+i(this,e)};var c=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,o=[0],i=[],a=-1;c=n.exec(e.buffer);)i.push(c.index),o.push(c.index+c[0].length),e.position<=c.index&&a<0&&(a=o.length-2);a<0&&(a=o.length-1);var c,u,d,f="",p=Math.min(e.line+t.linesAfter,i.length).toString().length,h=t.maxLength-(t.indent+p+3);for(u=1;u<=t.linesBefore&&!(a-u<0);u++)d=s(e.buffer,o[a-u],i[a-u],e.position-(o[a]-o[a-u]),h),f=r(" ",t.indent)+l((e.line-u+1).toString(),p)+" | "+d.str+"\n"+f;for(d=s(e.buffer,o[a],i[a],e.position,h),f+=r(" ",t.indent)+l((e.line+1).toString(),p)+" | "+d.str+"\n"+r("-",t.indent+p+3+d.pos)+"^\n",u=1;u<=t.linesAfter&&!(a+u>=i.length);u++)d=s(e.buffer,o[a+u],i[a+u],e.position-(o[a]-o[a+u]),h),f+=r(" ",t.indent)+l((e.line+u+1).toString(),p)+" | "+d.str+"\n";return f.replace(/\n$/,"")},u=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],d=["scalar","sequence","mapping"],f=function(e,t){var n,r;if(Object.keys(t=t||{}).forEach(function(t){if(-1===u.indexOf(t))throw new a('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=(n=t.styleAliases||null,r={},null!==n&&Object.keys(n).forEach(function(e){n[e].forEach(function(t){r[String(t)]=e})}),r),-1===d.indexOf(this.kind))throw new a('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function p(e,t){var n=[];return e[t].forEach(function(e){var t=n.length;n.forEach(function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)}),n[t]=e}),n}function h(e){return this.extend(e)}h.prototype.extend=function(e){var t=[],n=[];if(e instanceof f)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new a("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.forEach(function(e){if(!(e instanceof f))throw new a("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new a("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new a("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(e){if(!(e instanceof f))throw new a("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var r=Object.create(h.prototype);return r.implicit=(this.implicit||[]).concat(t),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=p(r,"implicit"),r.compiledExplicit=p(r,"explicit"),r.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function r(e){e.multi?(n.multi[e.kind].push(e),n.multi.fallback.push(e)):n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(r);return n}(r.compiledImplicit,r.compiledExplicit),r};var m=new f("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),g=new f("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),v=new f("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}}),b=new h({explicit:[m,g,v]}),y=new f("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"}),w=new f("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"}),x=new f("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r,o,i=e.length,a=0,s=!1;if(!i)return!1;if(("-"===(o=e[a])||"+"===o)&&(o=e[++a]),"0"===o){if(a+1===i)return!0;if("b"===(o=e[++a])){for(a++;a<i;a++)if("_"!==(o=e[a])){if("0"!==o&&"1"!==o)return!1;s=!0}return s&&"_"!==o}if("x"===o){for(a++;a<i;a++)if("_"!==(o=e[a])){if(!(48<=(t=e.charCodeAt(a))&&t<=57||65<=t&&t<=70||97<=t&&t<=102))return!1;s=!0}return s&&"_"!==o}if("o"===o){for(a++;a<i;a++)if("_"!==(o=e[a])){if(!(48<=(n=e.charCodeAt(a))&&n<=55))return!1;s=!0}return s&&"_"!==o}}if("_"===o)return!1;for(;a<i;a++)if("_"!==(o=e[a])){if(!(48<=(r=e.charCodeAt(a))&&r<=57))return!1;s=!0}return!!s&&"_"!==o},construct:function(e){var t,n=e,r=1;if(-1!==n.indexOf("_")&&(n=n.replace(/_/g,"")),("-"===(t=n[0])||"+"===t)&&("-"===t&&(r=-1),t=(n=n.slice(1))[0]),"0"===n)return 0;if("0"===t){if("b"===n[1])return r*parseInt(n.slice(2),2);if("x"===n[1])return r*parseInt(n.slice(2),16);if("o"===n[1])return r*parseInt(n.slice(2),8)}return r*parseInt(n,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!o(e)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),A=RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),E=/^[-+]?[0-9]+e/,$=new f("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!!A.test(e)&&"_"!==e[e.length-1]},construct:function(e){var t,n;return(n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t)?1===n?1/0:-1/0:".nan"===t?NaN:n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||o(e))},represent:function(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(1/0===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(-1/0===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(o(e))return"-0.0";return n=e.toString(10),E.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"}),S=b.extend({implicit:[y,w,x,$]}),C=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),O=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"),k=new f("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==C.exec(e)||null!==O.exec(e))},construct:function(e){var t,n,r,o,i,a,s,l,c=0,u=null;if(null===(t=C.exec(e))&&(t=O.exec(e)),null===t)throw Error("Date resolve error");if(n=+t[1],r=t[2]-1,o=+t[3],!t[4])return new Date(Date.UTC(n,r,o));if(i=+t[4],a=+t[5],s=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c*=1}return t[9]&&(u=(60*t[10]+ +(t[11]||0))*6e4,"-"===t[9]&&(u=-u)),l=new Date(Date.UTC(n,r,o,i,a,s,c)),u&&l.setTime(l.getTime()-u),l},instanceOf:Date,represent:function(e){return e.toISOString()}}),_=new f("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),I="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r",R=new f("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r=0,o=e.length;for(n=0;n<o;n++)if(!((t=I.indexOf(e.charAt(n)))>64)){if(t<0)return!1;r+=6}return r%8==0},construct:function(e){var t,n,r=e.replace(/[\r\n=]/g,""),o=r.length,i=0,a=[];for(t=0;t<o;t++)t%4==0&&t&&(a.push(i>>16&255),a.push(i>>8&255),a.push(255&i)),i=i<<6|I.indexOf(r.charAt(t));return 0==(n=o%4*6)?(a.push(i>>16&255),a.push(i>>8&255),a.push(255&i)):18===n?(a.push(i>>10&255),a.push(i>>2&255)):12===n&&a.push(i>>4&255),new Uint8Array(a)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,n,r="",o=0,i=e.length;for(t=0;t<i;t++)t%3==0&&t&&(r+=I[o>>18&63],r+=I[o>>12&63],r+=I[o>>6&63],r+=I[63&o]),o=(o<<8)+e[t];return 0==(n=i%3)?(r+=I[o>>18&63],r+=I[o>>12&63],r+=I[o>>6&63],r+=I[63&o]):2===n?(r+=I[o>>10&63],r+=I[o>>4&63],r+=I[o<<2&63],r+=I[64]):1===n&&(r+=I[o>>2&63],r+=I[o<<4&63],r+=I[64],r+=I[64]),r}}),j=Object.prototype.hasOwnProperty,N=Object.prototype.toString,T=new f("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,o,i,a=[];for(t=0,n=e.length;t<n;t+=1){if(r=e[t],i=!1,"[object Object]"!==N.call(r))return!1;for(o in r)if(j.call(r,o))if(i)return!1;else i=!0;if(!i||-1!==a.indexOf(o))return!1;a.push(o)}return!0},construct:function(e){return null!==e?e:[]}}),P=Object.prototype.toString,M=new f("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){var t,n,r,o,i;if(null===e)return!0;for(t=0,i=Array(e.length),n=e.length;t<n;t+=1){if(r=e[t],"[object Object]"!==P.call(r)||1!==(o=Object.keys(r)).length)return!1;i[t]=[o[0],r[o[0]]]}return!0},construct:function(e){var t,n,r,o,i;if(null===e)return[];for(t=0,i=Array(e.length),n=e.length;t<n;t+=1)o=Object.keys(r=e[t]),i[t]=[o[0],r[o[0]]];return i}}),z=Object.prototype.hasOwnProperty,B=new f("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){var t;if(null===e)return!0;for(t in e)if(z.call(e,t)&&null!==e[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),L=S.extend({implicit:[k,_],explicit:[R,T,M,B]}),F=Object.prototype.hasOwnProperty,D=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,H=/[\x85\u2028\u2029]/,W=/[,\[\]\{\}]/,U=/^(?:!|!!|![a-z\-]+!)$/i,q=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function V(e){return Object.prototype.toString.call(e)}function G(e){return 10===e||13===e}function X(e){return 9===e||32===e}function K(e){return 9===e||32===e||10===e||13===e}function Y(e){return 44===e||91===e||93===e||123===e||125===e}function Z(e){return 48===e?"\0":97===e?"\x07":98===e?"\b":116===e||9===e?" ":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"\x1b":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"\x85":95===e?"\xa0":76===e?"\u2028":80===e?"\u2029":""}for(var Q=Array(256),J=Array(256),ee=0;ee<256;ee++)Q[ee]=+!!Z(ee),J[ee]=Z(ee);function et(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||L,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function en(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=c(n),new a(t,n)}function er(e,t){throw en(e,t)}function eo(e,t){e.onWarning&&e.onWarning.call(null,en(e,t))}var ei={YAML:function(e,t,n){var r,o,i;null!==e.version&&er(e,"duplication of %YAML directive"),1!==n.length&&er(e,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&er(e,"ill-formed argument of the YAML directive"),o=parseInt(r[1],10),i=parseInt(r[2],10),1!==o&&er(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&eo(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,o;2!==n.length&&er(e,"TAG directive accepts exactly two arguments"),r=n[0],o=n[1],U.test(r)||er(e,"ill-formed tag handle (first argument) of the TAG directive"),F.call(e.tagMap,r)&&er(e,'there is a previously declared suffix for "'+r+'" tag handle'),q.test(o)||er(e,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch(t){er(e,"tag prefix is malformed: "+o)}e.tagMap[r]=o}};function ea(e,t,n,r){var o,i,a,s;if(t<n){if(s=e.input.slice(t,n),r)for(o=0,i=s.length;o<i;o+=1)9===(a=s.charCodeAt(o))||32<=a&&a<=1114111||er(e,"expected valid JSON character");else D.test(s)&&er(e,"the stream contains non-printable characters");e.result+=s}}function es(e,t,n,r){var o,i,a,s,l;for("object"==typeof(l=n)&&null!==l||er(e,"cannot merge mappings; the provided source object is unacceptable"),a=0,s=(o=Object.keys(n)).length;a<s;a+=1)i=o[a],F.call(t,i)||(t[i]=n[i],r[i]=!0)}function el(e,t,n,r,o,i,a,s,l){var c,u;if(Array.isArray(o))for(c=0,u=(o=Array.prototype.slice.call(o)).length;c<u;c+=1)Array.isArray(o[c])&&er(e,"nested arrays are not supported inside keys"),"object"==typeof o&&"[object Object]"===V(o[c])&&(o[c]="[object Object]");if("object"==typeof o&&"[object Object]"===V(o)&&(o="[object Object]"),o=String(o),null===t&&(t={}),"tag:yaml.org,2002:merge"===r)if(Array.isArray(i))for(c=0,u=i.length;c<u;c+=1)es(e,t,i[c],n);else es(e,t,i,n);else!e.json&&!F.call(n,o)&&F.call(t,o)&&(e.line=a||e.line,e.lineStart=s||e.lineStart,e.position=l||e.position,er(e,"duplicated mapping key")),"__proto__"===o?Object.defineProperty(t,o,{configurable:!0,enumerable:!0,writable:!0,value:i}):t[o]=i,delete n[o];return t}function ec(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):er(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function eu(e,t,n){for(var r=0,o=e.input.charCodeAt(e.position);0!==o;){for(;X(o);)9===o&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),o=e.input.charCodeAt(++e.position);if(t&&35===o)do o=e.input.charCodeAt(++e.position);while(10!==o&&13!==o&&0!==o);if(G(o))for(ec(e),o=e.input.charCodeAt(e.position),r++,e.lineIndent=0;32===o;)e.lineIndent++,o=e.input.charCodeAt(++e.position);else break}return -1!==n&&0!==r&&e.lineIndent<n&&eo(e,"deficient indentation"),r}function ed(e){var t,n=e.position;return!!((45===(t=e.input.charCodeAt(n))||46===t)&&t===e.input.charCodeAt(n+1)&&t===e.input.charCodeAt(n+2)&&(n+=3,0===(t=e.input.charCodeAt(n))||K(t)))||!1}function ef(e,t){1===t?e.result+=" ":t>1&&(e.result+=r("\n",t-1))}function ep(e,t){var n,r,o=e.tag,i=e.anchor,a=[],s=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),r=e.input.charCodeAt(e.position);0!==r&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,er(e,"tab characters must not be used in indentation")),45===r&&K(e.input.charCodeAt(e.position+1)));){if(s=!0,e.position++,eu(e,!0,-1)&&e.lineIndent<=t){a.push(null),r=e.input.charCodeAt(e.position);continue}if(n=e.line,eh(e,t,3,!1,!0),a.push(e.result),eu(e,!0,-1),r=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==r)er(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return!!s&&(e.tag=o,e.anchor=i,e.kind="sequence",e.result=a,!0)}function eh(e,t,n,o,i){var a,s,l,c,u,d,f,p,h,m=1,g=!1,v=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=s=l=4===n||3===n,o&&eu(e,!0,-1)&&(g=!0,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)),1===m)for(;function(e){var t,n,r,o,i=!1,a=!1;if(33!==(o=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&er(e,"duplication of a tag property"),60===(o=e.input.charCodeAt(++e.position))?(i=!0,o=e.input.charCodeAt(++e.position)):33===o?(a=!0,n="!!",o=e.input.charCodeAt(++e.position)):n="!",t=e.position,i){do o=e.input.charCodeAt(++e.position);while(0!==o&&62!==o);e.position<e.length?(r=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):er(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==o&&!K(o);)33===o&&(a?er(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),U.test(n)||er(e,"named tag handle cannot contain such characters"),a=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);r=e.input.slice(t,e.position),W.test(r)&&er(e,"tag suffix cannot contain flow indicator characters")}r&&!q.test(r)&&er(e,"tag name cannot contain such characters: "+r);try{r=decodeURIComponent(r)}catch(t){er(e,"tag name is malformed: "+r)}return i?e.tag=r:F.call(e.tagMap,n)?e.tag=e.tagMap[n]+r:"!"===n?e.tag="!"+r:"!!"===n?e.tag="tag:yaml.org,2002:"+r:er(e,'undeclared tag handle "'+n+'"'),!0}(e)||function(e){var t,n;if(38!==(n=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&er(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!K(n)&&!Y(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&er(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}(e);)eu(e,!0,-1)?(g=!0,l=a,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)):l=!1;if(l&&(l=g||i),(1===m||4===n)&&(p=1===n||2===n?t:t+1,h=e.position-e.lineStart,1===m?l&&(ep(e,h)||function(e,t,n){var r,o,i,a,s,l,c,u=e.tag,d=e.anchor,f={},p=Object.create(null),h=null,m=null,g=null,v=!1,b=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=f),c=e.input.charCodeAt(e.position);0!==c;){if(v||-1===e.firstTabInLine||(e.position=e.firstTabInLine,er(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),i=e.line,(63===c||58===c)&&K(r))63===c?(v&&(el(e,f,p,h,m,null,a,s,l),h=m=g=null),b=!0,v=!0,o=!0):v?(v=!1,o=!0):er(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,c=r;else{if(a=e.line,s=e.lineStart,l=e.position,!eh(e,n,2,!1,!0))break;if(e.line===i){for(c=e.input.charCodeAt(e.position);X(c);)c=e.input.charCodeAt(++e.position);if(58===c)K(c=e.input.charCodeAt(++e.position))||er(e,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(el(e,f,p,h,m,null,a,s,l),h=m=g=null),b=!0,v=!1,o=!1,h=e.tag,m=e.result;else{if(!b)return e.tag=u,e.anchor=d,!0;er(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!b)return e.tag=u,e.anchor=d,!0;er(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}if((e.line===i||e.lineIndent>t)&&(v&&(a=e.line,s=e.lineStart,l=e.position),eh(e,t,4,!0,o)&&(v?m=e.result:g=e.result),v||(el(e,f,p,h,m,g,a,s,l),h=m=g=null),eu(e,!0,-1),c=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&0!==c)er(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return v&&el(e,f,p,h,m,null,a,s,l),b&&(e.tag=u,e.anchor=d,e.kind="mapping",e.result=f),b}(e,h,p))||function(e,t){var n,r,o,i,a,s,l,c,u,d,f,p,h=!0,m=e.tag,g=e.anchor,v=Object.create(null);if(91===(p=e.input.charCodeAt(e.position)))a=93,c=!1,i=[];else{if(123!==p)return!1;a=125,c=!0,i={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),p=e.input.charCodeAt(++e.position);0!==p;){if(eu(e,!0,t),(p=e.input.charCodeAt(e.position))===a)return e.position++,e.tag=m,e.anchor=g,e.kind=c?"mapping":"sequence",e.result=i,!0;h?44===p&&er(e,"expected the node content, but found ','"):er(e,"missed comma between flow collection entries"),d=u=f=null,s=l=!1,63===p&&K(e.input.charCodeAt(e.position+1))&&(s=l=!0,e.position++,eu(e,!0,t)),n=e.line,r=e.lineStart,o=e.position,eh(e,t,1,!1,!0),d=e.tag,u=e.result,eu(e,!0,t),p=e.input.charCodeAt(e.position),(l||e.line===n)&&58===p&&(s=!0,p=e.input.charCodeAt(++e.position),eu(e,!0,t),eh(e,t,1,!1,!0),f=e.result),c?el(e,i,v,d,u,f,n,r,o):s?i.push(el(e,null,v,d,u,f,n,r,o)):i.push(u),eu(e,!0,t),44===(p=e.input.charCodeAt(e.position))?(h=!0,p=e.input.charCodeAt(++e.position)):h=!1}er(e,"unexpected end of the stream within a flow collection")}(e,p)?v=!0:(s&&function(e,t){var n,o,i,a,s,l=1,c=!1,u=!1,d=t,f=0,p=!1;if(124===(s=e.input.charCodeAt(e.position)))i=!1;else{if(62!==s)return!1;i=!0}for(e.kind="scalar",e.result="";0!==s;)if(43===(s=e.input.charCodeAt(++e.position))||45===s)1===l?l=43===s?3:2:er(e,"repeat of a chomping mode identifier");else if((a=48<=(n=s)&&n<=57?n-48:-1)>=0)0===a?er(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):u?er(e,"repeat of an indentation width identifier"):(d=t+a-1,u=!0);else break;if(X(s)){do s=e.input.charCodeAt(++e.position);while(X(s));if(35===s)do s=e.input.charCodeAt(++e.position);while(!G(s)&&0!==s)}for(;0!==s;){for(ec(e),e.lineIndent=0,s=e.input.charCodeAt(e.position);(!u||e.lineIndent<d)&&32===s;)e.lineIndent++,s=e.input.charCodeAt(++e.position);if(!u&&e.lineIndent>d&&(d=e.lineIndent),G(s)){f++;continue}if(e.lineIndent<d){3===l?e.result+=r("\n",c?1+f:f):1===l&&c&&(e.result+="\n");break}for(i?X(s)?(p=!0,e.result+=r("\n",c?1+f:f)):p?(p=!1,e.result+=r("\n",f+1)):0===f?c&&(e.result+=" "):e.result+=r("\n",f):e.result+=r("\n",c?1+f:f),c=!0,u=!0,f=0,o=e.position;!G(s)&&0!==s;)s=e.input.charCodeAt(++e.position);ea(e,o,e.position,!1)}return!0}(e,p)||function(e,t){var n,r,o;if(39!==(n=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=o=e.position;0!==(n=e.input.charCodeAt(e.position));)if(39===n){if(ea(e,r,e.position,!0),39!==(n=e.input.charCodeAt(++e.position)))return!0;r=e.position,e.position++,o=e.position}else G(n)?(ea(e,r,o,!0),ef(e,eu(e,!1,t)),r=o=e.position):e.position===e.lineStart&&ed(e)?er(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position);er(e,"unexpected end of the stream within a single quoted scalar")}(e,p)||function(e,t){var n,r,o,i,a,s,l,c;if(34!==(s=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;0!==(s=e.input.charCodeAt(e.position));)if(34===s)return ea(e,n,e.position,!0),e.position++,!0;else if(92===s){if(ea(e,n,e.position,!0),G(s=e.input.charCodeAt(++e.position)))eu(e,!1,t);else if(s<256&&Q[s])e.result+=J[s],e.position++;else if((a=120===(l=s)?2:117===l?4:8*(85===l))>0){for(o=a,i=0;o>0;o--)(a=function(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}(s=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+a:er(e,"expected hexadecimal character");e.result+=(c=i)<=65535?String.fromCharCode(c):String.fromCharCode((c-65536>>10)+55296,(c-65536&1023)+56320),e.position++}else er(e,"unknown escape sequence");n=r=e.position}else G(s)?(ea(e,n,r,!0),ef(e,eu(e,!1,t)),n=r=e.position):e.position===e.lineStart&&ed(e)?er(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position);er(e,"unexpected end of the stream within a double quoted scalar")}(e,p)?v=!0:!function(e){var t,n,r;if(42!==(r=e.input.charCodeAt(e.position)))return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!K(r)&&!Y(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&er(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),F.call(e.anchorMap,n)||er(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],eu(e,!0,-1),!0}(e)?function(e,t,n){var r,o,i,a,s,l,c,u,d=e.kind,f=e.result;if(K(u=e.input.charCodeAt(e.position))||Y(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u||(63===u||45===u)&&(K(r=e.input.charCodeAt(e.position+1))||n&&Y(r)))return!1;for(e.kind="scalar",e.result="",o=i=e.position,a=!1;0!==u;){if(58===u){if(K(r=e.input.charCodeAt(e.position+1))||n&&Y(r))break}else if(35===u){if(K(e.input.charCodeAt(e.position-1)))break}else if(e.position===e.lineStart&&ed(e)||n&&Y(u))break;else if(G(u)){if(s=e.line,l=e.lineStart,c=e.lineIndent,eu(e,!1,-1),e.lineIndent>=t){a=!0,u=e.input.charCodeAt(e.position);continue}e.position=i,e.line=s,e.lineStart=l,e.lineIndent=c;break}a&&(ea(e,o,i,!1),ef(e,e.line-s),o=i=e.position,a=!1),X(u)||(i=e.position+1),u=e.input.charCodeAt(++e.position)}return ea(e,o,i,!1),!!e.result||(e.kind=d,e.result=f,!1)}(e,p,1===n)&&(v=!0,null===e.tag&&(e.tag="?")):(v=!0,(null!==e.tag||null!==e.anchor)&&er(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===m&&(v=l&&ep(e,h))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&er(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),c=0,u=e.implicitTypes.length;c<u;c+=1)if((f=e.implicitTypes[c]).resolve(e.result)){e.result=f.construct(e.result),e.tag=f.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(F.call(e.typeMap[e.kind||"fallback"],e.tag))f=e.typeMap[e.kind||"fallback"][e.tag];else for(c=0,f=null,u=(d=e.typeMap.multi[e.kind||"fallback"]).length;c<u;c+=1)if(e.tag.slice(0,d[c].tag.length)===d[c].tag){f=d[c];break}f||er(e,"unknown tag !<"+e.tag+">"),null!==e.result&&f.kind!==e.kind&&er(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+f.kind+'", not "'+e.kind+'"'),f.resolve(e.result,e.tag)?(e.result=f.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):er(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||v}function em(e,t){e=String(e),t=t||{},0!==e.length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var n=new et(e,t),r=e.indexOf("\0");for(-1!==r&&(n.position=r,er(n,"null byte is not allowed in input")),n.input+="\0";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)!function(e){var t,n,r,o,i=e.position,a=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(o=e.input.charCodeAt(e.position))&&(eu(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0)&&37===o);){for(a=!0,o=e.input.charCodeAt(++e.position),t=e.position;0!==o&&!K(o);)o=e.input.charCodeAt(++e.position);for(n=e.input.slice(t,e.position),r=[],n.length<1&&er(e,"directive name must not be less than one character in length");0!==o;){for(;X(o);)o=e.input.charCodeAt(++e.position);if(35===o){do o=e.input.charCodeAt(++e.position);while(0!==o&&!G(o));break}if(G(o))break;for(t=e.position;0!==o&&!K(o);)o=e.input.charCodeAt(++e.position);r.push(e.input.slice(t,e.position))}0!==o&&ec(e),F.call(ei,n)?ei[n](e,n,r):eo(e,'unknown document directive "'+n+'"')}if(eu(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,eu(e,!0,-1)):a&&er(e,"directives end mark is expected"),eh(e,e.lineIndent-1,4,!1,!0),eu(e,!0,-1),e.checkLineBreaks&&H.test(e.input.slice(i,e.position))&&eo(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&ed(e)){46===e.input.charCodeAt(e.position)&&(e.position+=3,eu(e,!0,-1));return}e.position<e.length-1&&er(e,"end of the stream or a document separator is expected")}(n);return n.documents}var eg=Object.prototype.toString,ev=Object.prototype.hasOwnProperty,eb={};eb[0]="\\0",eb[7]="\\a",eb[8]="\\b",eb[9]="\\t",eb[10]="\\n",eb[11]="\\v",eb[12]="\\f",eb[13]="\\r",eb[27]="\\e",eb[34]='\\"',eb[92]="\\\\",eb[133]="\\N",eb[160]="\\_",eb[8232]="\\L",eb[8233]="\\P";var ey=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],ew=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function ex(e){this.schema=e.schema||L,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=null==e.flowLevel?-1:e.flowLevel,this.styleMap=function(e,t){var n,r,o,i,a,s,l;if(null===t)return{};for(o=0,n={},i=(r=Object.keys(t)).length;o<i;o+=1)s=String(t[a=r[o]]),"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2)),(l=e.compiledTypeMap.fallback[a])&&ev.call(l.styleAliases,s)&&(s=l.styleAliases[s]),n[a]=s;return n}(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?2:1,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function eA(e,t){for(var n,o=r(" ",t),i=0,a=-1,s="",l=e.length;i<l;)-1===(a=e.indexOf("\n",i))?(n=e.slice(i),i=l):(n=e.slice(i,a+1),i=a+1),n.length&&"\n"!==n&&(s+=o),s+=n;return s}function eE(e,t){return"\n"+r(" ",e.indent*t)}function e$(e){return 32===e||9===e}function eS(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&65279!==e||65536<=e&&e<=1114111}function eC(e){return eS(e)&&65279!==e&&13!==e&&10!==e}function eO(e,t,n){var r=eC(e),o=r&&!e$(e);return(n?r:r&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!o)||eC(t)&&!e$(t)&&35===e||58===t&&o}function ek(e,t){var n,r=e.charCodeAt(t);return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1))>=56320&&n<=57343?(r-55296)*1024+n-56320+65536:r}function e_(e){return/^\n* /.test(e)}function eI(e,t){var n=e_(e)?String(t):"",r="\n"===e[e.length-1];return n+(r&&("\n"===e[e.length-2]||"\n"===e)?"+":r?"":"-")+"\n"}function eR(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function ej(e,t){if(""===e||" "===e[0])return e;for(var n,r,o=/ [^ ]/g,i=0,a=0,s=0,l="";n=o.exec(e);)(s=n.index)-i>t&&(r=a>i?a:s,l+="\n"+e.slice(i,r),i=r+1),a=s;return l+="\n",e.length-i>t&&a>i?l+=e.slice(i,a)+"\n"+e.slice(a+1):l+=e.slice(i),l.slice(1)}function eN(e,t,n,r){var o,i,a,s="",l=e.tag;for(o=0,i=n.length;o<i;o+=1)a=n[o],e.replacer&&(a=e.replacer.call(n,String(o),a)),(eP(e,t+1,a,!0,!0,!1,!0)||void 0===a&&eP(e,t+1,null,!0,!0,!1,!0))&&(r&&""===s||(s+=eE(e,t)),e.dump&&10===e.dump.charCodeAt(0)?s+="-":s+="- ",s+=e.dump);e.tag=l,e.dump=s||"[]"}function eT(e,t,n){var r,o,i,s,l,c;for(i=0,s=(o=n?e.explicitTypes:e.implicitTypes).length;i<s;i+=1)if(((l=o[i]).instanceOf||l.predicate)&&(!l.instanceOf||"object"==typeof t&&t instanceof l.instanceOf)&&(!l.predicate||l.predicate(t))){if(n?l.multi&&l.representName?e.tag=l.representName(t):e.tag=l.tag:e.tag="?",l.represent){if(c=e.styleMap[l.tag]||l.defaultStyle,"[object Function]"===eg.call(l.represent))r=l.represent(t,c);else if(ev.call(l.represent,c))r=l.represent[c](t,c);else throw new a("!<"+l.tag+'> tag resolver accepts not "'+c+'" style');e.dump=r}return!0}return!1}function eP(e,t,n,o,i,s,l){e.tag=null,e.dump=n,eT(e,n,!1)||eT(e,n,!0);var c,u=eg.call(e.dump),d=o;o&&(o=e.flowLevel<0||e.flowLevel>t);var f,p,h,m="[object Object]"===u||"[object Array]"===u;if(m&&(h=-1!==(p=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||h||2!==e.indent&&t>0)&&(i=!1),h&&e.usedDuplicates[p])e.dump="*ref_"+p;else{if(m&&h&&!e.usedDuplicates[p]&&(e.usedDuplicates[p]=!0),"[object Object]"===u)o&&0!==Object.keys(e.dump).length?(!function(e,t,n,r){var o,i,s,l,c,u,d="",f=e.tag,p=Object.keys(n);if(!0===e.sortKeys)p.sort();else if("function"==typeof e.sortKeys)p.sort(e.sortKeys);else if(e.sortKeys)throw new a("sortKeys must be a boolean or a function");for(o=0,i=p.length;o<i;o+=1)u="",r&&""===d||(u+=eE(e,t)),l=n[s=p[o]],e.replacer&&(l=e.replacer.call(n,s,l)),eP(e,t+1,s,!0,!0,!0)&&((c=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&10===e.dump.charCodeAt(0)?u+="?":u+="? "),u+=e.dump,c&&(u+=eE(e,t)),eP(e,t+1,l,!0,c)&&(e.dump&&10===e.dump.charCodeAt(0)?u+=":":u+=": ",u+=e.dump,d+=u));e.tag=f,e.dump=d||"{}"}(e,t,e.dump,i),h&&(e.dump="&ref_"+p+e.dump)):(!function(e,t,n){var r,o,i,a,s,l="",c=e.tag,u=Object.keys(n);for(r=0,o=u.length;r<o;r+=1)s="",""!==l&&(s+=", "),e.condenseFlow&&(s+='"'),a=n[i=u[r]],e.replacer&&(a=e.replacer.call(n,i,a)),eP(e,t,i,!1,!1)&&(e.dump.length>1024&&(s+="? "),s+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),eP(e,t,a,!1,!1)&&(s+=e.dump,l+=s));e.tag=c,e.dump="{"+l+"}"}(e,t,e.dump),h&&(e.dump="&ref_"+p+" "+e.dump));else if("[object Array]"===u)o&&0!==e.dump.length?(e.noArrayIndent&&!l&&t>0?eN(e,t-1,e.dump,i):eN(e,t,e.dump,i),h&&(e.dump="&ref_"+p+e.dump)):(!function(e,t,n){var r,o,i,a="",s=e.tag;for(r=0,o=n.length;r<o;r+=1)i=n[r],e.replacer&&(i=e.replacer.call(n,String(r),i)),(eP(e,t,i,!1,!1)||void 0===i&&eP(e,t,null,!1,!1))&&(""!==a&&(a+=","+(e.condenseFlow?"":" ")),a+=e.dump);e.tag=s,e.dump="["+a+"]"}(e,t,e.dump),h&&(e.dump="&ref_"+p+" "+e.dump));else if("[object String]"===u)"?"!==e.tag&&(c=e.dump,e.dump=function(){if(0===c.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==ey.indexOf(c)||ew.test(c)))return 2===e.quotingType?'"'+c+'"':"'"+c+"'";var n=e.indent*Math.max(1,t),o=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-n);switch(function(e,t,n,r,o,i,a,s){var l,c,u,d=0,f=null,p=!1,h=!1,m=-1!==r,g=-1,v=eS(l=ek(e,0))&&65279!==l&&!e$(l)&&45!==l&&63!==l&&58!==l&&44!==l&&91!==l&&93!==l&&123!==l&&125!==l&&35!==l&&38!==l&&42!==l&&33!==l&&124!==l&&61!==l&&62!==l&&39!==l&&34!==l&&37!==l&&64!==l&&96!==l&&!e$(c=ek(e,e.length-1))&&58!==c;if(t||a)for(u=0;u<e.length;d>=65536?u+=2:u++){if(!eS(d=ek(e,u)))return 5;v=v&&eO(d,f,s),f=d}else{for(u=0;u<e.length;d>=65536?u+=2:u++){if(10===(d=ek(e,u)))p=!0,m&&(h=h||u-g-1>r&&" "!==e[g+1],g=u);else if(!eS(d))return 5;v=v&&eO(d,f,s),f=d}h=h||m&&u-g-1>r&&" "!==e[g+1]}return p||h?n>9&&e_(e)?5:a?2===i?5:2:h?4:3:!v||a||o(e)?2===i?5:2:1}(c,s||e.flowLevel>-1&&t>=e.flowLevel,e.indent,o,function(t){var n,r;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1},e.quotingType,e.forceQuotes&&!s,d)){case 1:return c;case 2:return"'"+c.replace(/'/g,"''")+"'";case 3:return"|"+eI(c,e.indent)+eR(eA(c,n));case 4:return">"+eI(c,e.indent)+eR(eA(function(e,t){for(var n,r,o,i=/(\n+)([^\n]*)/g,a=(i.lastIndex=n=-1!==(n=e.indexOf("\n"))?n:e.length,ej(e.slice(0,n),t)),s="\n"===e[0]||" "===e[0];o=i.exec(e);){var l=o[1],c=o[2];r=" "===c[0],a+=l+(s||r||""===c?"":"\n")+ej(c,t),s=r}return a}(c,o),n));case 5:return'"'+function(e){for(var t,n="",o=0,i=0;i<e.length;o>=65536?i+=2:i++)!(t=eb[o=ek(e,i)])&&eS(o)?(n+=e[i],o>=65536&&(n+=e[i+1])):n+=t||function(e){var t,n,o;if(t=e.toString(16).toUpperCase(),e<=255)n="x",o=2;else if(e<=65535)n="u",o=4;else if(e<=0xffffffff)n="U",o=8;else throw new a("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+r("0",o-t.length)+t}(o);return n}(c)+'"';default:throw new a("impossible error: invalid scalar style")}}());else{if("[object Undefined]"===u||e.skipInvalid)return!1;throw new a("unacceptable kind of an object to dump "+u)}null!==e.tag&&"?"!==e.tag&&(f=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),f="!"===e.tag[0]?"!"+f:"tag:yaml.org,2002:"===f.slice(0,18)?"!!"+f.slice(18):"!<"+f+">",e.dump=f+" "+e.dump)}return!0}function eM(e,t){return function(){throw Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}let ez={Type:f,Schema:h,FAILSAFE_SCHEMA:b,JSON_SCHEMA:S,CORE_SCHEMA:S,DEFAULT_SCHEMA:L,load:function(e,t){var n=em(e,t);if(0!==n.length){if(1===n.length)return n[0];throw new a("expected a single document in the stream, but found more")}},loadAll:function(e,t,n){null!==t&&"object"==typeof t&&void 0===n&&(n=t,t=null);var r=em(e,n);if("function"!=typeof t)return r;for(var o=0,i=r.length;o<i;o+=1)t(r[o])},dump:function(e,t){var n=new ex(t=t||{});n.noRefs||function(e,t){var n,r,o=[],i=[];for(function e(t,n,r){var o,i,a;if(null!==t&&"object"==typeof t)if(-1!==(i=n.indexOf(t)))-1===r.indexOf(i)&&r.push(i);else if(n.push(t),Array.isArray(t))for(i=0,a=t.length;i<a;i+=1)e(t[i],n,r);else for(i=0,a=(o=Object.keys(t)).length;i<a;i+=1)e(t[o[i]],n,r)}(e,o,i),n=0,r=i.length;n<r;n+=1)t.duplicates.push(o[i[n]]);t.usedDuplicates=Array(r)}(e,n);var r=e;return(n.replacer&&(r=n.replacer.call({"":r},"",r)),eP(n,0,r,!0,!0))?n.dump+"\n":""},YAMLException:a,types:{binary:R,float:$,map:v,null:y,pairs:M,set:B,timestamp:k,bool:w,int:x,merge:_,omap:T,seq:g,str:m},safeLoad:eM("safeLoad","load"),safeLoadAll:eM("safeLoadAll","loadAll"),safeDump:eM("safeDump","dump")}},6990(e,t,n){"use strict";n.d(t,{m:()=>$});class r extends Error{constructor(e,t){super("".concat(e," at position ").concat(t)),this.position=t}}function o(e){return e>="0"&&e<="9"}function i(e){return",:[]/{}()\n+".includes(e)}function a(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||"_"===e||"$"===e}function s(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||"_"===e||"$"===e||e>="0"&&e<="9"}let l=/^(http|https|ftp|mailto|file|data|irc):\/\/$/,c=/^[A-Za-z0-9-._~:/?#@!$&'()*+;=]$/;function u(e){return",[]/{}\n+".includes(e)}function d(e){return m(e)||f.test(e)}let f=/^[[{\w-]$/;function p(e,t){let n=e.charCodeAt(t);return 32===n||10===n||9===n||13===n}function h(e,t){let n=e.charCodeAt(t);return 32===n||9===n||13===n}function m(e){return g(e)||b(e)}function g(e){return'"'===e||"“"===e||"”"===e}function v(e){return'"'===e}function b(e){return"'"===e||"‘"===e||"’"===e||"`"===e||"\xb4"===e}function y(e){return"'"===e}function w(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.lastIndexOf(t);return -1!==r?e.substring(0,r)+(n?"":e.substring(r+1)):e}function x(e,t){let n=e.length;if(!p(e,n-1))return e+t;for(;p(e,n-1);)n--;return e.substring(0,n)+t+e.substring(n)}let A={"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},E={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:" "};function $(e){var t;let n=0,f="";k(),S()||function(){throw new r("Unexpected end of json string",e.length)}(),k();let $=_(",");for(($&&C(),d(e[n])&&(t=f,/[,\n][ \t\r]*$/.test(t)))?($||(f=x(f,",")),function(){let e=!0,t=!0;for(;t;)e?e=!1:_(",")||(f=x(f,",")),t=S();t||(f=w(f,",")),f="[\n".concat(f,"\n]")}()):$&&(f=w(f,","));"}"===e[n]||"]"===e[n];)n++,C();if(n>=e.length)return f;function S(){C();let t=function(){if("{"===e[n]){f+="{",n++,C(),I(",")&&C();let t=!0;for(;n<e.length&&"}"!==e[n];){if(t?t=!1:(_(",")||(f=x(f,",")),C()),R(),!(j()||P(!0))){"}"===e[n]||"{"===e[n]||"]"===e[n]||"["===e[n]||void 0===e[n]?f=w(f,","):function(){throw new r("Object key expected",n)}();break}C();let o=_(":"),i=n>=e.length;o||(d(e[n])||i?f=x(f,":"):L()),S()||(o||i?f+="null":L())}return"}"===e[n]?(f+="}",n++):f=x(f,"}"),!0}return!1}()||function(){if("["===e[n]){f+="[",n++,C(),I(",")&&C();let t=!0;for(;n<e.length&&"]"!==e[n];)if(t?t=!1:_(",")||(f=x(f,",")),R(),!S()){f=w(f,",");break}return"]"===e[n]?(f+="]",n++):f=x(f,"]"),!0}return!1}()||j()||function(){let t=n;if("-"===e[n]){if(n++,z())return B(t),!0;if(!o(e[n]))return n=t,!1}for(;o(e[n]);)n++;if("."===e[n]){if(n++,z())return B(t),!0;if(!o(e[n]))return n=t,!1;for(;o(e[n]);)n++}if("e"===e[n]||"E"===e[n]){if(("-"===e[++n]||"+"===e[n])&&n++,z())return B(t),!0;if(!o(e[n]))return n=t,!1;for(;o(e[n]);)n++}if(!z())return n=t,!1;if(n>t){let r=e.slice(t,n),o=/^0\d/.test(r);return f+=o?'"'.concat(r,'"'):r,!0}return!1}()||T("true","true")||T("false","false")||T("null","null")||T("True","true")||T("False","false")||T("None","null")||P(!1)||function(){if("/"===e[n]){let t=n;for(n++;n<e.length&&("/"!==e[n]||"\\"===e[n-1]);)n++;return n++,f+='"'.concat(e.substring(t,n),'"'),!0}}();return C(),t}function C(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0],r=n,o=O(t);do(o=function(){if("/"===e[n]&&"*"===e[n+1]){for(var t,r;n<e.length&&("*"!==(t=e)[r=n]||"/"!==t[r+1]);)n++;return n+=2,!0}if("/"===e[n]&&"/"===e[n+1]){for(;n<e.length&&"\n"!==e[n];)n++;return!0}return!1}())&&(o=O(t));while(o);return n>r}function O(t){let r=t?p:h,o="";for(;;)if(r(e,n))o+=e[n],n++;else if(function(e,t){let n=e.charCodeAt(t);return 160===n||n>=8192&&n<=8202||8239===n||8287===n||12288===n}(e,n))o+=" ",n++;else break;return o.length>0&&(f+=o,!0)}throw new r("Unexpected character ".concat(JSON.stringify(e[n])),n);function k(){if("```"===e.slice(n,n+3)){if(a(e[n+=3]))for(;n<e.length&&s(e[n]);)n++;return C(),!0}return!1}function _(t){return e[n]===t&&(f+=e[n],n++,!0)}function I(t){return e[n]===t&&(n++,!0)}function R(){return C(),"."===e[n]&&"."===e[n+1]&&"."===e[n+2]&&(n+=3,C(),I(","),!0)}function j(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,s="\\"===e[n];if(s&&(n++,s=!0),m(e[n])){let p=v(e[n])?v:y(e[n])?y:b(e[n])?b:g,h=n,w=f.length,$='"';for(n++;;){var d;if(n>=e.length){let r=M(n-1);if(!t&&i(e.charAt(r)))return n=h,f=f.substring(0,w),j(!0);return $=x($,'"'),f+=$,!0}if(n===a)return $=x($,'"'),f+=$,!0;if(p(e[n])){let r=n,a=$.length;if($+='"',n++,f+=$,C(!1),t||n>=e.length||i(e[n])||m(e[n])||o(e[n]))return N(),!0;let s=M(r-1),l=e.charAt(s);if(","===l)return n=h,f=f.substring(0,w),j(!1,s);if(i(l))return n=h,f=f.substring(0,w),j(!0);f=f.substring(0,w),n=r+1,$="".concat($.substring(0,a),"\\").concat($.substring(a))}else if(t&&u(e[n])){if(":"===e[n-1]&&l.test(e.substring(h+1,n+2)))for(;n<e.length&&c.test(e[n]);)$+=e[n],n++;return $=x($,'"'),f+=$,N(),!0}else if("\\"===e[n]){let t=e.charAt(n+1);if(void 0!==E[t])$+=e.slice(n,n+2),n+=2;else if("u"===t){let t=2;for(;t<6&&(d=e[n+t],/^[0-9A-Fa-f]$/.test(d));)t++;6===t?($+=e.slice(n,n+6),n+=6):n+t>=e.length?n=e.length:function(){let t=e.slice(n,n+6);throw new r('Invalid unicode character "'.concat(t,'"'),n)}()}else $+=t,n+=2}else{let t=e.charAt(n);'"'===t&&"\\"!==e[n-1]?$+="\\".concat(t):"\n"===t||"\r"===t||" "===t||"\b"===t||"\f"===t?$+=A[t]:(t>=" "||function(e){throw new r("Invalid character ".concat(JSON.stringify(e)),n)}(t),$+=t),n++}s&&I("\\")}}return!1}function N(){let t=!1;for(C();"+"===e[n];){t=!0,n++,C();let e=(f=w(f,'"',!0)).length;if(j()){var r;f=(r=f).substring(0,e)+r.substring(e+1)}else f=x(f,'"')}return t}function T(t,r){return e.slice(n,n+t.length)===t&&(f+=r,n+=t.length,!0)}function P(t){let r=n;if(a(e[n])){for(;n<e.length&&s(e[n]);)n++;let t=n;for(;p(e,t);)t++;if("("===e[t])return n=t+1,S(),")"===e[n]&&";"===e[++n]&&n++,!0}for(;n<e.length&&!u(e[n])&&!m(e[n])&&(!t||":"!==e[n]);)n++;if(":"===e[n-1]&&l.test(e.substring(r,n+2)))for(;n<e.length&&c.test(e[n]);)n++;if(n>r){for(;p(e,n-1)&&n>0;)n--;let t=e.slice(r,n);return f+="undefined"===t?"null":JSON.stringify(t),'"'===e[n]&&n++,!0}}function M(t){let n=t;for(;n>0&&p(e,n);)n--;return n}function z(){return n>=e.length||i(e[n])||p(e,n)}function B(t){f+="".concat(e.slice(t,n),"0")}function L(){throw new r("Colon expected",n)}}},2501(e,t,n){"use strict";let r,o,i,a;function s(e,t,n,r,o){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!o)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n}function l(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}n.d(t,{Ay:()=>ra});let c=function(){let{crypto:e}=globalThis;if(e?.randomUUID)return c=e.randomUUID.bind(e),e.randomUUID();let t=new Uint8Array(1),n=e?()=>e.getRandomValues(t)[0]:()=>255*Math.random()&255;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=>(e^n()&15>>e/4).toString(16))};function u(e){return"object"==typeof e&&null!==e&&("name"in e&&"AbortError"===e.name||"message"in e&&String(e.message).includes("FetchRequestCanceledException"))}let d=e=>{if(e instanceof Error)return e;if("object"==typeof e&&null!==e){try{if("[object Error]"===Object.prototype.toString.call(e)){let t=Error(e.message,e.cause?{cause:e.cause}:{});return e.stack&&(t.stack=e.stack),e.cause&&!t.cause&&(t.cause=e.cause),e.name&&(t.name=e.name),t}}catch{}try{return Error(JSON.stringify(e))}catch{}}return Error(e)};class f extends Error{}class p extends f{constructor(e,t,n,r){super(`${p.makeMessage(e,t,n)}`),this.status=e,this.headers=r,this.requestID=r?.get("x-request-id"),this.error=t,this.code=t?.code,this.param=t?.param,this.type=t?.type}static makeMessage(e,t,n){let r=t?.message?"string"==typeof t.message?t.message:JSON.stringify(t.message):t?JSON.stringify(t):n;return e&&r?`${e} ${r}`:e?`${e} status code (no body)`:r||"(no status code or body)"}static generate(e,t,n,r){if(!e||!r)return new m({message:n,cause:d(t)});let o=t?.error;return 400===e?new v(e,o,n,r):401===e?new b(e,o,n,r):403===e?new y(e,o,n,r):404===e?new w(e,o,n,r):409===e?new x(e,o,n,r):422===e?new A(e,o,n,r):429===e?new E(e,o,n,r):e>=500?new $(e,o,n,r):new p(e,o,n,r)}}class h extends p{constructor({message:e}={}){super(void 0,void 0,e||"Request was aborted.",void 0)}}class m extends p{constructor({message:e,cause:t}){super(void 0,void 0,e||"Connection error.",void 0),t&&(this.cause=t)}}class g extends m{constructor({message:e}={}){super({message:e??"Request timed out."})}}class v extends p{}class b extends p{}class y extends p{}class w extends p{}class x extends p{}class A extends p{}class E extends p{}class $ extends p{}class S extends f{constructor(){super("Could not parse response content as the length limit was reached")}}class C extends f{constructor(){super("Could not parse response content as the request was rejected by the content filter")}}class O extends Error{constructor(e){super(e)}}let k=/^[a-z][a-z0-9+.-]*:/i,_=e=>(_=Array.isArray)(e),I=_;function R(e){return"object"!=typeof e?{}:e??{}}function j(e){return null!=e&&"object"==typeof e&&!Array.isArray(e)}let N=e=>new Promise(t=>setTimeout(t,e)),T=e=>"x32"===e?"x32":"x86_64"===e||"x64"===e?"x64":"arm"===e?"arm":"aarch64"===e||"arm64"===e?"arm64":e?`other:${e}`:"unknown",P=e=>(e=e.toLowerCase()).includes("ios")?"iOS":"android"===e?"Android":"darwin"===e?"MacOS":"win32"===e?"Windows":"freebsd"===e?"FreeBSD":"openbsd"===e?"OpenBSD":"linux"===e?"Linux":e?`Other:${e}`:"Unknown";function M(...e){let t=globalThis.ReadableStream;if(void 0===t)throw Error("`ReadableStream` is not defined as a global; You will need to polyfill it, `globalThis.ReadableStream = ReadableStream`");return new t(...e)}function z(e){let t=Symbol.asyncIterator in e?e[Symbol.asyncIterator]():e[Symbol.iterator]();return M({start(){},async pull(e){let{done:n,value:r}=await t.next();n?e.close():e.enqueue(r)},async cancel(){await t.return?.()}})}function B(e){if(e[Symbol.asyncIterator])return e;let t=e.getReader();return{async next(){try{let e=await t.read();return e?.done&&t.releaseLock(),e}catch(e){throw t.releaseLock(),e}},async return(){let e=t.cancel();return t.releaseLock(),await e,{done:!0,value:void 0}},[Symbol.asyncIterator](){return this}}}async function L(e){if(null===e||"object"!=typeof e)return;if(e[Symbol.asyncIterator])return void await e[Symbol.asyncIterator]().return?.();let t=e.getReader(),n=t.cancel();t.releaseLock(),await n}let F=({headers:e,body:t})=>({bodyHeaders:{"content-type":"application/json"},body:JSON.stringify(t)}),D="RFC3986",H=e=>String(e),W={RFC1738:e=>String(e).replace(/%20/g,"+"),RFC3986:H},U=(e,t)=>(U=Object.hasOwn??Function.prototype.call.bind(Object.prototype.hasOwnProperty))(e,t),q=(()=>{let e=[];for(let t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e})();function V(e,t){if(_(e)){let n=[];for(let r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)}let G={brackets:e=>String(e)+"[]",comma:"comma",indices:(e,t)=>String(e)+"["+t+"]",repeat:e=>String(e)},X=function(e,t){Array.prototype.push.apply(e,_(t)?t:[t])},K={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:(e,t,n,r,o)=>{if(0===e.length)return e;let i=e;if("symbol"==typeof e?i=Symbol.prototype.toString.call(e):"string"!=typeof e&&(i=String(e)),"iso-8859-1"===n)return escape(i).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});let a="";for(let e=0;e<i.length;e+=1024){let t=i.length>=1024?i.slice(e,e+1024):i,n=[];for(let e=0;e<t.length;++e){let r=t.charCodeAt(e);if(45===r||46===r||95===r||126===r||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122||"RFC1738"===o&&(40===r||41===r)){n[n.length]=t.charAt(e);continue}if(r<128){n[n.length]=q[r];continue}if(r<2048){n[n.length]=q[192|r>>6]+q[128|63&r];continue}if(r<55296||r>=57344){n[n.length]=q[224|r>>12]+q[128|r>>6&63]+q[128|63&r];continue}e+=1,r=65536+((1023&r)<<10|1023&t.charCodeAt(e)),n[n.length]=q[240|r>>18]+q[128|r>>12&63]+q[128|r>>6&63]+q[128|63&r]}a+=n.join("")}return a},encodeValuesOnly:!1,format:D,formatter:H,indices:!1,serializeDate:e=>(o??(o=Function.prototype.call.bind(Date.prototype.toISOString)))(e),skipNulls:!1,strictNullHandling:!1},Y={};function Z(e){let t;return(i??(i=(t=new globalThis.TextEncoder).encode.bind(t)))(e)}function Q(e){let t;return(a??(a=(t=new globalThis.TextDecoder).decode.bind(t)))(e)}class J{constructor(){td.set(this,void 0),tf.set(this,void 0),s(this,td,new Uint8Array,"f"),s(this,tf,null,"f")}decode(e){let t;if(null==e)return[];let n=e instanceof ArrayBuffer?new Uint8Array(e):"string"==typeof e?Z(e):e;s(this,td,function(e){let t=0;for(let n of e)t+=n.length;let n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}([l(this,td,"f"),n]),"f");let r=[];for(;null!=(t=function(e,t){for(let n=t??0;n<e.length;n++){if(10===e[n])return{preceding:n,index:n+1,carriage:!1};if(13===e[n])return{preceding:n,index:n+1,carriage:!0}}return null}(l(this,td,"f"),l(this,tf,"f")));){if(t.carriage&&null==l(this,tf,"f")){s(this,tf,t.index,"f");continue}if(null!=l(this,tf,"f")&&(t.index!==l(this,tf,"f")+1||t.carriage)){r.push(Q(l(this,td,"f").subarray(0,l(this,tf,"f")-1))),s(this,td,l(this,td,"f").subarray(l(this,tf,"f")),"f"),s(this,tf,null,"f");continue}let e=null!==l(this,tf,"f")?t.preceding-1:t.preceding,n=Q(l(this,td,"f").subarray(0,e));r.push(n),s(this,td,l(this,td,"f").subarray(t.index),"f"),s(this,tf,null,"f")}return r}flush(){return l(this,td,"f").length?this.decode("\n"):[]}}td=new WeakMap,tf=new WeakMap,J.NEWLINE_CHARS=new Set(["\n","\r"]),J.NEWLINE_REGEXP=/\r\n|[\n\r]/g;let ee={off:0,error:200,warn:300,info:400,debug:500},et=(e,t,n)=>{if(e){if(Object.prototype.hasOwnProperty.call(ee,e))return e;ea(n).warn(`${t} was set to ${JSON.stringify(e)}, expected one of ${JSON.stringify(Object.keys(ee))}`)}};function en(){}function er(e,t,n){return!t||ee[e]>ee[n]?en:t[e].bind(t)}let eo={error:en,warn:en,info:en,debug:en},ei=new WeakMap;function ea(e){let t=e.logger,n=e.logLevel??"off";if(!t)return eo;let r=ei.get(t);if(r&&r[0]===n)return r[1];let o={error:er("error",t,n),warn:er("warn",t,n),info:er("info",t,n),debug:er("debug",t,n)};return ei.set(t,[n,o]),o}let es=e=>(e.options&&(e.options={...e.options},delete e.options.headers),e.headers&&(e.headers=Object.fromEntries((e.headers instanceof Headers?[...e.headers]:Object.entries(e.headers)).map(([e,t])=>[e,"authorization"===e.toLowerCase()||"cookie"===e.toLowerCase()||"set-cookie"===e.toLowerCase()?"***":t]))),"retryOfRequestLogID"in e&&(e.retryOfRequestLogID&&(e.retryOf=e.retryOfRequestLogID),delete e.retryOfRequestLogID),e);class el{constructor(e,t,n){this.iterator=e,tp.set(this,void 0),this.controller=t,s(this,tp,n,"f")}static fromSSEResponse(e,t,n){let r=!1,o=n?ea(n):console;async function*i(){if(r)throw new f("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");r=!0;let n=!1;try{for await(let r of ec(e,t))if(!n){if(r.data.startsWith("[DONE]")){n=!0;continue}if(null!==r.event&&r.event.startsWith("thread.")){let e;try{e=JSON.parse(r.data)}catch(e){throw console.error("Could not parse message into JSON:",r.data),console.error("From chunk:",r.raw),e}if("error"==r.event)throw new p(void 0,e.error,e.message,void 0);yield{event:r.event,data:e}}else{let t;try{t=JSON.parse(r.data)}catch(e){throw o.error("Could not parse message into JSON:",r.data),o.error("From chunk:",r.raw),e}if(t&&t.error)throw new p(void 0,t.error,void 0,e.headers);yield t}}n=!0}catch(e){if(u(e))return;throw e}finally{n||t.abort()}}return new el(i,t,n)}static fromReadableStream(e,t,n){let r=!1;async function*o(){let t=new J;for await(let n of B(e))for(let e of t.decode(n))yield e;for(let e of t.flush())yield e}return new el(async function*(){if(r)throw new f("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");r=!0;let e=!1;try{for await(let t of o())!e&&t&&(yield JSON.parse(t));e=!0}catch(e){if(u(e))return;throw e}finally{e||t.abort()}},t,n)}[(tp=new WeakMap,Symbol.asyncIterator)](){return this.iterator()}tee(){let e=[],t=[],n=this.iterator(),r=r=>({next:()=>{if(0===r.length){let r=n.next();e.push(r),t.push(r)}return r.shift()}});return[new el(()=>r(e),this.controller,l(this,tp,"f")),new el(()=>r(t),this.controller,l(this,tp,"f"))]}toReadableStream(){let e,t=this;return M({async start(){e=t[Symbol.asyncIterator]()},async pull(t){try{let{value:n,done:r}=await e.next();if(r)return t.close();let o=Z(JSON.stringify(n)+"\n");t.enqueue(o)}catch(e){t.error(e)}},async cancel(){await e.return?.()}})}}async function*ec(e,t){if(!e.body){if(t.abort(),void 0!==globalThis.navigator&&"ReactNative"===globalThis.navigator.product)throw new f("The default react-native fetch implementation does not support streaming. Please use expo/fetch: https://docs.expo.dev/versions/latest/sdk/expo/#expofetch-api");throw new f("Attempted to iterate over a response with no body")}let n=new ed,r=new J;for await(let t of eu(B(e.body)))for(let e of r.decode(t)){let t=n.decode(e);t&&(yield t)}for(let e of r.flush()){let t=n.decode(e);t&&(yield t)}}async function*eu(e){let t=new Uint8Array;for await(let n of e){let e;if(null==n)continue;let r=n instanceof ArrayBuffer?new Uint8Array(n):"string"==typeof n?Z(n):n,o=new Uint8Array(t.length+r.length);for(o.set(t),o.set(r,t.length),t=o;-1!==(e=function(e){for(let t=0;t<e.length-1;t++){if(10===e[t]&&10===e[t+1]||13===e[t]&&13===e[t+1])return t+2;if(13===e[t]&&10===e[t+1]&&t+3<e.length&&13===e[t+2]&&10===e[t+3])return t+4}return -1}(t));)yield t.slice(0,e),t=t.slice(e)}t.length>0&&(yield t)}class ed{constructor(){this.event=null,this.data=[],this.chunks=[]}decode(e){var t;let n;if(e.endsWith("\r")&&(e=e.substring(0,e.length-1)),!e){if(!this.event&&!this.data.length)return null;let e={event:this.event,data:this.data.join("\n"),raw:this.chunks};return this.event=null,this.data=[],this.chunks=[],e}if(this.chunks.push(e),e.startsWith(":"))return null;let[r,o,i]=-1!==(n=(t=e).indexOf(":"))?[t.substring(0,n),":",t.substring(n+1)]:[t,"",""];return i.startsWith(" ")&&(i=i.substring(1)),"event"===r?this.event=i:"data"===r&&this.data.push(i),null}}async function ef(e,t){let{response:n,requestLogID:r,retryOfRequestLogID:o,startTime:i}=t,a=await (async()=>{if(t.options.stream)return(ea(e).debug("response",n.status,n.url,n.headers,n.body),t.options.__streamClass)?t.options.__streamClass.fromSSEResponse(n,t.controller,e):el.fromSSEResponse(n,t.controller,e);if(204===n.status)return null;if(t.options.__binaryResponse)return n;let r=n.headers.get("content-type"),o=r?.split(";")[0]?.trim();return o?.includes("application/json")||o?.endsWith("+json")?ep(await n.json(),n):await n.text()})();return ea(e).debug(`[${r}] response parsed`,es({retryOfRequestLogID:o,url:n.url,status:n.status,body:a,durationMs:Date.now()-i})),a}function ep(e,t){return!e||"object"!=typeof e||Array.isArray(e)?e:Object.defineProperty(e,"_request_id",{value:t.headers.get("x-request-id"),enumerable:!1})}class eh extends Promise{constructor(e,t,n=ef){super(e=>{e(null)}),this.responsePromise=t,this.parseResponse=n,th.set(this,void 0),s(this,th,e,"f")}_thenUnwrap(e){return new eh(l(this,th,"f"),this.responsePromise,async(t,n)=>ep(e(await this.parseResponse(t,n),n),n.response))}asResponse(){return this.responsePromise.then(e=>e.response)}async withResponse(){let[e,t]=await Promise.all([this.parse(),this.asResponse()]);return{data:e,response:t,request_id:t.headers.get("x-request-id")}}parse(){return this.parsedPromise||(this.parsedPromise=this.responsePromise.then(e=>this.parseResponse(l(this,th,"f"),e))),this.parsedPromise}then(e,t){return this.parse().then(e,t)}catch(e){return this.parse().catch(e)}finally(e){return this.parse().finally(e)}}th=new WeakMap;class em{constructor(e,t,n,r){tm.set(this,void 0),s(this,tm,e,"f"),this.options=r,this.response=t,this.body=n}hasNextPage(){return!!this.getPaginatedItems().length&&null!=this.nextPageRequestOptions()}async getNextPage(){let e=this.nextPageRequestOptions();if(!e)throw new f("No next page expected; please check `.hasNextPage()` before calling `.getNextPage()`.");return await l(this,tm,"f").requestAPIList(this.constructor,e)}async *iterPages(){let e=this;for(yield e;e.hasNextPage();)e=await e.getNextPage(),yield e}async *[(tm=new WeakMap,Symbol.asyncIterator)](){for await(let e of this.iterPages())for(let t of e.getPaginatedItems())yield t}}class eg extends eh{constructor(e,t,n){super(e,t,async(e,t)=>new n(e,t.response,await ef(e,t),t.options))}async *[Symbol.asyncIterator](){for await(let e of(await this))yield e}}class ev extends em{constructor(e,t,n,r){super(e,t,n,r),this.data=n.data||[],this.object=n.object}getPaginatedItems(){return this.data??[]}nextPageRequestOptions(){return null}}class eb extends em{constructor(e,t,n,r){super(e,t,n,r),this.data=n.data||[],this.has_more=n.has_more||!1}getPaginatedItems(){return this.data??[]}hasNextPage(){return!1!==this.has_more&&super.hasNextPage()}nextPageRequestOptions(){let e=this.getPaginatedItems(),t=e[e.length-1]?.id;return t?{...this.options,query:{...R(this.options.query),after:t}}:null}}class ey extends em{constructor(e,t,n,r){super(e,t,n,r),this.data=n.data||[],this.has_more=n.has_more||!1,this.last_id=n.last_id||""}getPaginatedItems(){return this.data??[]}hasNextPage(){return!1!==this.has_more&&super.hasNextPage()}nextPageRequestOptions(){let e=this.last_id;return e?{...this.options,query:{...R(this.options.query),after:e}}:null}}let ew=()=>{if("undefined"==typeof File){let{process:e}=globalThis;throw Error("`File` is not defined as a global, which is required for file uploads."+("string"==typeof e?.versions?.node&&20>parseInt(e.versions.node.split("."))?" Update to Node 20 LTS or newer, or set `globalThis.File` to `import('node:buffer').File`.":""))}};function ex(e,t,n){return ew(),new File(e,t??"unknown_file",n)}function eA(e){return("object"==typeof e&&null!==e&&("name"in e&&e.name&&String(e.name)||"url"in e&&e.url&&String(e.url)||"filename"in e&&e.filename&&String(e.filename)||"path"in e&&e.path&&String(e.path))||"").split(/[\\/]/).pop()||void 0}let eE=e=>null!=e&&"object"==typeof e&&"function"==typeof e[Symbol.asyncIterator],e$=async(e,t)=>e_(e.body)?{...e,body:await eO(e.body,t)}:e,eS=async(e,t)=>({...e,body:await eO(e.body,t)}),eC=new WeakMap,eO=async(e,t)=>{if(!await function(e){let t="function"==typeof e?e:e.fetch,n=eC.get(t);if(n)return n;let r=(async()=>{try{let e="Response"in t?t.Response:(await t("data:,")).constructor,n=new FormData;if(n.toString()===await new e(n).text())return!1;return!0}catch{return!0}})();return eC.set(t,r),r}(t))throw TypeError("The provided fetch function does not support file uploads with the current global FormData class.");let n=new FormData;return await Promise.all(Object.entries(e||{}).map(([e,t])=>eI(n,e,t))),n},ek=e=>e instanceof Blob&&"name"in e,e_=e=>{if("object"==typeof e&&null!==e&&(e instanceof Response||eE(e)||ek(e)))return!0;if(Array.isArray(e))return e.some(e_);if(e&&"object"==typeof e){for(let t in e)if(e_(e[t]))return!0}return!1},eI=async(e,t,n)=>{if(void 0!==n){if(null==n)throw TypeError(`Received null for "${t}"; to pass null in FormData, you must use the string 'null'`);if("string"==typeof n||"number"==typeof n||"boolean"==typeof n)e.append(t,String(n));else if(n instanceof Response)e.append(t,ex([await n.blob()],eA(n)));else if(eE(n))e.append(t,ex([await new Response(z(n)).blob()],eA(n)));else if(ek(n))e.append(t,n,eA(n));else if(Array.isArray(n))await Promise.all(n.map(n=>eI(e,t+"[]",n)));else if("object"==typeof n)await Promise.all(Object.entries(n).map(([n,r])=>eI(e,`${t}[${n}]`,r)));else throw TypeError(`Invalid value given to form, expected a string, number, boolean, object, Array, File or Blob but got ${n} instead`)}},eR=e=>null!=e&&"object"==typeof e&&"number"==typeof e.size&&"string"==typeof e.type&&"function"==typeof e.text&&"function"==typeof e.slice&&"function"==typeof e.arrayBuffer;async function ej(e,t,n){let r,o;if(ew(),null!=(r=e=await e)&&"object"==typeof r&&"string"==typeof r.name&&"number"==typeof r.lastModified&&eR(r))return e instanceof File?e:ex([await e.arrayBuffer()],e.name);if(null!=(o=e)&&"object"==typeof o&&"string"==typeof o.url&&"function"==typeof o.blob){let r=await e.blob();return t||(t=new URL(e.url).pathname.split(/[\\/]/).pop()),ex(await eN(r),t,n)}let i=await eN(e);if(t||(t=eA(e)),!n?.type){let e=i.find(e=>"object"==typeof e&&"type"in e&&e.type);"string"==typeof e&&(n={...n,type:e})}return ex(i,t,n)}async function eN(e){let t=[];if("string"==typeof e||ArrayBuffer.isView(e)||e instanceof ArrayBuffer)t.push(e);else if(eR(e))t.push(e instanceof Blob?e:await e.arrayBuffer());else if(eE(e))for await(let n of e)t.push(...await eN(n));else{let t=e?.constructor?.name;throw Error(`Unexpected data type: ${typeof e}${t?`; constructor: ${t}`:""}${function(e){if("object"!=typeof e||null===e)return"";let t=Object.getOwnPropertyNames(e);return`; props: [${t.map(e=>`"${e}"`).join(", ")}]`}(e)}`)}return t}class eT{constructor(e){this._client=e}}function eP(e){return e.replace(/[^A-Za-z0-9\-._~!$&'()*+,;=:@]+/g,encodeURIComponent)}let eM=Object.freeze(Object.create(null)),ez=((e=eP)=>function(t,...n){let r;if(1===t.length)return t[0];let o=!1,i=[],a=t.reduce((t,r,a)=>{/[?#]/.test(r)&&(o=!0);let s=n[a],l=(o?encodeURIComponent:e)(""+s);return a!==n.length&&(null==s||"object"==typeof s&&s.toString===Object.getPrototypeOf(Object.getPrototypeOf(s.hasOwnProperty??eM)??eM)?.toString)&&(l=s+"",i.push({start:t.length+r.length,length:l.length,error:`Value of type ${Object.prototype.toString.call(s).slice(8,-1)} is not a valid path parameter`})),t+r+(a===n.length?"":l)},""),s=a.split(/[?#]/,1)[0],l=/(?<=^|\/)(?:\.|%2e){1,2}(?=\/|$)/gi;for(;null!==(r=l.exec(s));)i.push({start:r.index,length:r[0].length,error:`Value "${r[0]}" can't be safely passed as a path parameter`});if(i.sort((e,t)=>e.start-t.start),i.length>0){let e=0,t=i.reduce((t,n)=>{let r=" ".repeat(n.start-e),o="^".repeat(n.length);return e=n.start+n.length,t+r+o},"");throw new f(`Path parameters result in path with invalid segments:
294
294
  ${i.map(e=>e.error).join("\n")}
295
295
  ${a}
296
296
  ${t}`)}return a})(eP);class eB extends eT{list(e,t={},n){return this._client.getAPIList(ez`/chat/completions/${e}/messages`,eb,{query:t,...n})}}function eL(e){return void 0!==e&&"function"in e&&void 0!==e.function}function eF(e){return e?.$brand==="auto-parseable-response-format"}function eD(e){return e?.$brand==="auto-parseable-tool"}function eH(e,t){let n=e.choices.map(e=>{var n,r;if("length"===e.finish_reason)throw new S;if("content_filter"===e.finish_reason)throw new C;return eU(e.message.tool_calls),{...e,message:{...e.message,...e.message.tool_calls?{tool_calls:e.message.tool_calls?.map(e=>{var n,r;let o;return n=t,r=e,o=n.tools?.find(e=>eL(e)&&e.function?.name===r.function.name),{...r,function:{...r.function,parsed_arguments:eD(o)?o.$parseRaw(r.function.arguments):o?.function.strict?JSON.parse(r.function.arguments):null}}})??void 0}:void 0,parsed:e.message.content&&!e.message.refusal?(n=t,r=e.message.content,n.response_format?.type!=="json_schema"?null:n.response_format?.type==="json_schema"?"$parseRaw"in n.response_format?n.response_format.$parseRaw(r):JSON.parse(r):null):null}}});return{...e,choices:n}}function eW(e){return!!eF(e.response_format)||(e.tools?.some(e=>eD(e)||"function"===e.type&&!0===e.function.strict)??!1)}function eU(e){for(let t of e||[])if("function"!==t.type)throw new f(`Currently only \`function\` tool calls are supported; Received \`${t.type}\``)}let eq=e=>e?.role==="assistant",eV=e=>e?.role==="tool";class eG{constructor(){tg.add(this),this.controller=new AbortController,tv.set(this,void 0),tb.set(this,()=>{}),ty.set(this,()=>{}),tw.set(this,void 0),tx.set(this,()=>{}),tA.set(this,()=>{}),tE.set(this,{}),t$.set(this,!1),tS.set(this,!1),tC.set(this,!1),tO.set(this,!1),s(this,tv,new Promise((e,t)=>{s(this,tb,e,"f"),s(this,ty,t,"f")}),"f"),s(this,tw,new Promise((e,t)=>{s(this,tx,e,"f"),s(this,tA,t,"f")}),"f"),l(this,tv,"f").catch(()=>{}),l(this,tw,"f").catch(()=>{})}_run(e){setTimeout(()=>{e().then(()=>{this._emitFinal(),this._emit("end")},l(this,tg,"m",tk).bind(this))},0)}_connected(){this.ended||(l(this,tb,"f").call(this),this._emit("connect"))}get ended(){return l(this,t$,"f")}get errored(){return l(this,tS,"f")}get aborted(){return l(this,tC,"f")}abort(){this.controller.abort()}on(e,t){return(l(this,tE,"f")[e]||(l(this,tE,"f")[e]=[])).push({listener:t}),this}off(e,t){let n=l(this,tE,"f")[e];if(!n)return this;let r=n.findIndex(e=>e.listener===t);return r>=0&&n.splice(r,1),this}once(e,t){return(l(this,tE,"f")[e]||(l(this,tE,"f")[e]=[])).push({listener:t,once:!0}),this}emitted(e){return new Promise((t,n)=>{s(this,tO,!0,"f"),"error"!==e&&this.once("error",n),this.once(e,t)})}async done(){s(this,tO,!0,"f"),await l(this,tw,"f")}_emit(e,...t){if(l(this,t$,"f"))return;"end"===e&&(s(this,t$,!0,"f"),l(this,tx,"f").call(this));let n=l(this,tE,"f")[e];if(n&&(l(this,tE,"f")[e]=n.filter(e=>!e.once),n.forEach(({listener:e})=>e(...t))),"abort"===e){let e=t[0];l(this,tO,"f")||n?.length||Promise.reject(e),l(this,ty,"f").call(this,e),l(this,tA,"f").call(this,e),this._emit("end");return}if("error"===e){let e=t[0];l(this,tO,"f")||n?.length||Promise.reject(e),l(this,ty,"f").call(this,e),l(this,tA,"f").call(this,e),this._emit("end")}}_emitFinal(){}}tv=new WeakMap,tb=new WeakMap,ty=new WeakMap,tw=new WeakMap,tx=new WeakMap,tA=new WeakMap,tE=new WeakMap,t$=new WeakMap,tS=new WeakMap,tC=new WeakMap,tO=new WeakMap,tg=new WeakSet,tk=function(e){if(s(this,tS,!0,"f"),e instanceof Error&&"AbortError"===e.name&&(e=new h),e instanceof h)return s(this,tC,!0,"f"),this._emit("abort",e);if(e instanceof f)return this._emit("error",e);if(e instanceof Error){let t=new f(e.message);return t.cause=e,this._emit("error",t)}return this._emit("error",new f(String(e)))};class eX extends eG{constructor(){super(...arguments),t_.add(this),this._chatCompletions=[],this.messages=[]}_addChatCompletion(e){this._chatCompletions.push(e),this._emit("chatCompletion",e);let t=e.choices[0]?.message;return t&&this._addMessage(t),e}_addMessage(e,t=!0){if("content"in e||(e.content=null),this.messages.push(e),t){if(this._emit("message",e),eV(e)&&e.content)this._emit("functionToolCallResult",e.content);else if(eq(e)&&e.tool_calls)for(let t of e.tool_calls)"function"===t.type&&this._emit("functionToolCall",t.function)}}async finalChatCompletion(){await this.done();let e=this._chatCompletions[this._chatCompletions.length-1];if(!e)throw new f("stream ended without producing a ChatCompletion");return e}async finalContent(){return await this.done(),l(this,t_,"m",tI).call(this)}async finalMessage(){return await this.done(),l(this,t_,"m",tR).call(this)}async finalFunctionToolCall(){return await this.done(),l(this,t_,"m",tj).call(this)}async finalFunctionToolCallResult(){return await this.done(),l(this,t_,"m",tN).call(this)}async totalUsage(){return await this.done(),l(this,t_,"m",tT).call(this)}allChatCompletions(){return[...this._chatCompletions]}_emitFinal(){let e=this._chatCompletions[this._chatCompletions.length-1];e&&this._emit("finalChatCompletion",e);let t=l(this,t_,"m",tR).call(this);t&&this._emit("finalMessage",t);let n=l(this,t_,"m",tI).call(this);n&&this._emit("finalContent",n);let r=l(this,t_,"m",tj).call(this);r&&this._emit("finalFunctionToolCall",r);let o=l(this,t_,"m",tN).call(this);null!=o&&this._emit("finalFunctionToolCallResult",o),this._chatCompletions.some(e=>e.usage)&&this._emit("totalUsage",l(this,t_,"m",tT).call(this))}async _createChatCompletion(e,t,n){let r=n?.signal;r&&(r.aborted&&this.controller.abort(),r.addEventListener("abort",()=>this.controller.abort())),l(this,t_,"m",tP).call(this,t);let o=await e.chat.completions.create({...t,stream:!1},{...n,signal:this.controller.signal});return this._connected(),this._addChatCompletion(eH(o,t))}async _runChatCompletion(e,t,n){for(let e of t.messages)this._addMessage(e,!1);return await this._createChatCompletion(e,t,n)}async _runTools(e,t,n){let r="tool",{tool_choice:o="auto",stream:i,...a}=t,s="string"!=typeof o&&"function"===o.type&&o?.function?.name,{maxChatCompletions:c=10}=n||{},u=t.tools.map(e=>{if(eD(e)){if(!e.$callback)throw new f("Tool given to `.runTools()` that does not have an associated function");return{type:"function",function:{function:e.$callback,name:e.function.name,description:e.function.description||"",parameters:e.function.parameters,parse:e.$parseRaw,strict:!0}}}return e}),d={};for(let e of u)"function"===e.type&&(d[e.function.name||e.function.function.name]=e.function);let p="tools"in t?u.map(e=>"function"===e.type?{type:"function",function:{name:e.function.name||e.function.function.name,parameters:e.function.parameters,description:e.function.description,strict:e.function.strict}}:e):void 0;for(let e of t.messages)this._addMessage(e,!1);for(let t=0;t<c;++t){let t=await this._createChatCompletion(e,{...a,tool_choice:o,tools:p,messages:[...this.messages]},n),i=t.choices[0]?.message;if(!i)throw new f("missing message in ChatCompletion response");if(!i.tool_calls?.length)break;for(let e of i.tool_calls){let t;if("function"!==e.type)continue;let n=e.id,{name:o,arguments:i}=e.function,a=d[o];if(a){if(s&&s!==o){let e=`Invalid tool_call: ${JSON.stringify(o)}. ${JSON.stringify(s)} requested. Please try again`;this._addMessage({role:r,tool_call_id:n,content:e});continue}}else{let e=`Invalid tool_call: ${JSON.stringify(o)}. Available options are: ${Object.keys(d).map(e=>JSON.stringify(e)).join(", ")}. Please try again`;this._addMessage({role:r,tool_call_id:n,content:e});continue}try{t="function"==typeof a.parse?await a.parse(i):i}catch(t){let e=t instanceof Error?t.message:String(t);this._addMessage({role:r,tool_call_id:n,content:e});continue}let c=await a.function(t,this),u=l(this,t_,"m",tM).call(this,c);if(this._addMessage({role:r,tool_call_id:n,content:u}),s)return}}}}t_=new WeakSet,tI=function(){return l(this,t_,"m",tR).call(this).content??null},tR=function(){let e=this.messages.length;for(;e-- >0;){let t=this.messages[e];if(eq(t))return{...t,content:t.content??null,refusal:t.refusal??null}}throw new f("stream ended without producing a ChatCompletionMessage with role=assistant")},tj=function(){for(let e=this.messages.length-1;e>=0;e--){let t=this.messages[e];if(eq(t)&&t?.tool_calls?.length)return t.tool_calls.filter(e=>"function"===e.type).at(-1)?.function}},tN=function(){for(let e=this.messages.length-1;e>=0;e--){let t=this.messages[e];if(eV(t)&&null!=t.content&&"string"==typeof t.content&&this.messages.some(e=>"assistant"===e.role&&e.tool_calls?.some(e=>"function"===e.type&&e.id===t.tool_call_id)))return t.content}},tT=function(){let e={completion_tokens:0,prompt_tokens:0,total_tokens:0};for(let{usage:t}of this._chatCompletions)t&&(e.completion_tokens+=t.completion_tokens,e.prompt_tokens+=t.prompt_tokens,e.total_tokens+=t.total_tokens);return e},tP=function(e){if(null!=e.n&&e.n>1)throw new f("ChatCompletion convenience helpers only support n=1 at this time. To use n>1, please use chat.completions.create() directly.")},tM=function(e){return"string"==typeof e?e:void 0===e?"undefined":JSON.stringify(e)};class eK extends eX{static runTools(e,t,n){let r=new eK,o={...n,headers:{...n?.headers,"X-Stainless-Helper-Method":"runTools"}};return r._run(()=>r._runTools(e,t,o)),r}_addMessage(e,t=!0){super._addMessage(e,t),eq(e)&&e.content&&this._emit("content",e.content)}}let eY=511;class eZ extends Error{}class eQ extends Error{}let eJ=e=>(function(e,t=eY){var n,r;let o,i,a,s,l,c,u,d,f,p;if("string"!=typeof e)throw TypeError(`expecting str, got ${typeof e}`);if(!e.trim())throw Error(`${e} is empty`);return n=e.trim(),r=t,o=n.length,i=0,a=e=>{throw new eZ(`${e} at position ${i}`)},s=e=>{throw new eQ(`${e} at position ${i}`)},l=()=>(p(),i>=o&&a("Unexpected end of input"),'"'===n[i])?c():"{"===n[i]?u():"["===n[i]?d():"null"===n.substring(i,i+4)||16&r&&o-i<4&&"null".startsWith(n.substring(i))?(i+=4,null):"true"===n.substring(i,i+4)||32&r&&o-i<4&&"true".startsWith(n.substring(i))?(i+=4,!0):"false"===n.substring(i,i+5)||32&r&&o-i<5&&"false".startsWith(n.substring(i))?(i+=5,!1):"Infinity"===n.substring(i,i+8)||128&r&&o-i<8&&"Infinity".startsWith(n.substring(i))?(i+=8,1/0):"-Infinity"===n.substring(i,i+9)||256&r&&1<o-i&&o-i<9&&"-Infinity".startsWith(n.substring(i))?(i+=9,-1/0):"NaN"===n.substring(i,i+3)||64&r&&o-i<3&&"NaN".startsWith(n.substring(i))?(i+=3,NaN):f(),c=()=>{let e=i,t=!1;for(i++;i<o&&('"'!==n[i]||t&&"\\"===n[i-1]);)t="\\"===n[i]&&!t,i++;if('"'==n.charAt(i))try{return JSON.parse(n.substring(e,++i-Number(t)))}catch(e){s(String(e))}else if(1&r)try{return JSON.parse(n.substring(e,i-Number(t))+'"')}catch(t){return JSON.parse(n.substring(e,n.lastIndexOf("\\"))+'"')}a("Unterminated string literal")},u=()=>{i++,p();let e={};try{for(;"}"!==n[i];){if(p(),i>=o&&8&r)return e;let t=c();p(),i++;try{let n=l();Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}catch(t){if(8&r)return e;throw t}p(),","===n[i]&&i++}}catch(t){if(8&r)return e;a("Expected '}' at end of object")}return i++,e},d=()=>{i++;let e=[];try{for(;"]"!==n[i];)e.push(l()),p(),","===n[i]&&i++}catch(t){if(4&r)return e;a("Expected ']' at end of array")}return i++,e},f=()=>{if(0===i){"-"===n&&2&r&&a("Not sure what '-' is");try{return JSON.parse(n)}catch(e){if(2&r)try{if("."===n[n.length-1])return JSON.parse(n.substring(0,n.lastIndexOf(".")));return JSON.parse(n.substring(0,n.lastIndexOf("e")))}catch(e){}s(String(e))}}let e=i;for("-"===n[i]&&i++;n[i]&&!",]}".includes(n[i]);)i++;i!=o||2&r||a("Unterminated number literal");try{return JSON.parse(n.substring(e,i))}catch(t){"-"===n.substring(e,i)&&2&r&&a("Not sure what '-' is");try{return JSON.parse(n.substring(e,n.lastIndexOf("e")))}catch(e){s(String(e))}}},p=()=>{for(;i<o&&" \n\r ".includes(n[i]);)i++},l()})(e,2^eY);class e0 extends eX{constructor(e){super(),tz.add(this),tB.set(this,void 0),tL.set(this,void 0),tF.set(this,void 0),s(this,tB,e,"f"),s(this,tL,[],"f")}get currentChatCompletionSnapshot(){return l(this,tF,"f")}static fromReadableStream(e){let t=new e0(null);return t._run(()=>t._fromReadableStream(e)),t}static createChatCompletion(e,t,n){let r=new e0(t);return r._run(()=>r._runChatCompletion(e,{...t,stream:!0},{...n,headers:{...n?.headers,"X-Stainless-Helper-Method":"stream"}})),r}async _createChatCompletion(e,t,n){super._createChatCompletion;let r=n?.signal;r&&(r.aborted&&this.controller.abort(),r.addEventListener("abort",()=>this.controller.abort())),l(this,tz,"m",tD).call(this);let o=await e.chat.completions.create({...t,stream:!0},{...n,signal:this.controller.signal});for await(let e of(this._connected(),o))l(this,tz,"m",tW).call(this,e);if(o.controller.signal?.aborted)throw new h;return this._addChatCompletion(l(this,tz,"m",tV).call(this))}async _fromReadableStream(e,t){let n,r=t?.signal;r&&(r.aborted&&this.controller.abort(),r.addEventListener("abort",()=>this.controller.abort())),l(this,tz,"m",tD).call(this),this._connected();let o=el.fromReadableStream(e,this.controller);for await(let e of o)n&&n!==e.id&&this._addChatCompletion(l(this,tz,"m",tV).call(this)),l(this,tz,"m",tW).call(this,e),n=e.id;if(o.controller.signal?.aborted)throw new h;return this._addChatCompletion(l(this,tz,"m",tV).call(this))}[(tB=new WeakMap,tL=new WeakMap,tF=new WeakMap,tz=new WeakSet,tD=function(){this.ended||s(this,tF,void 0,"f")},tH=function(e){let t=l(this,tL,"f")[e.index];return t||(t={content_done:!1,refusal_done:!1,logprobs_content_done:!1,logprobs_refusal_done:!1,done_tool_calls:new Set,current_tool_call_index:null},l(this,tL,"f")[e.index]=t),t},tW=function(e){if(this.ended)return;let t=l(this,tz,"m",tX).call(this,e);for(let n of(this._emit("chunk",e,t),e.choices)){let e=t.choices[n.index];null!=n.delta.content&&e.message?.role==="assistant"&&e.message?.content&&(this._emit("content",n.delta.content,e.message.content),this._emit("content.delta",{delta:n.delta.content,snapshot:e.message.content,parsed:e.message.parsed})),null!=n.delta.refusal&&e.message?.role==="assistant"&&e.message?.refusal&&this._emit("refusal.delta",{delta:n.delta.refusal,snapshot:e.message.refusal}),n.logprobs?.content!=null&&e.message?.role==="assistant"&&this._emit("logprobs.content.delta",{content:n.logprobs?.content,snapshot:e.logprobs?.content??[]}),n.logprobs?.refusal!=null&&e.message?.role==="assistant"&&this._emit("logprobs.refusal.delta",{refusal:n.logprobs?.refusal,snapshot:e.logprobs?.refusal??[]});let r=l(this,tz,"m",tH).call(this,e);for(let t of(e.finish_reason&&(l(this,tz,"m",tq).call(this,e),null!=r.current_tool_call_index&&l(this,tz,"m",tU).call(this,e,r.current_tool_call_index)),n.delta.tool_calls??[]))r.current_tool_call_index!==t.index&&(l(this,tz,"m",tq).call(this,e),null!=r.current_tool_call_index&&l(this,tz,"m",tU).call(this,e,r.current_tool_call_index)),r.current_tool_call_index=t.index;for(let t of n.delta.tool_calls??[]){let n=e.message.tool_calls?.[t.index];n?.type&&(n?.type==="function"?this._emit("tool_calls.function.arguments.delta",{name:n.function?.name,index:t.index,arguments:n.function.arguments,parsed_arguments:n.function.parsed_arguments,arguments_delta:t.function?.arguments??""}):n?.type)}}},tU=function(e,t){if(l(this,tz,"m",tH).call(this,e).done_tool_calls.has(t))return;let n=e.message.tool_calls?.[t];if(!n)throw Error("no tool call snapshot");if(!n.type)throw Error("tool call snapshot missing `type`");if("function"===n.type){let e=l(this,tB,"f")?.tools?.find(e=>eL(e)&&e.function.name===n.function.name);this._emit("tool_calls.function.arguments.done",{name:n.function.name,index:t,arguments:n.function.arguments,parsed_arguments:eD(e)?e.$parseRaw(n.function.arguments):e?.function.strict?JSON.parse(n.function.arguments):null})}else n.type},tq=function(e){let t=l(this,tz,"m",tH).call(this,e);if(e.message.content&&!t.content_done){t.content_done=!0;let n=l(this,tz,"m",tG).call(this);this._emit("content.done",{content:e.message.content,parsed:n?n.$parseRaw(e.message.content):null})}e.message.refusal&&!t.refusal_done&&(t.refusal_done=!0,this._emit("refusal.done",{refusal:e.message.refusal})),e.logprobs?.content&&!t.logprobs_content_done&&(t.logprobs_content_done=!0,this._emit("logprobs.content.done",{content:e.logprobs.content})),e.logprobs?.refusal&&!t.logprobs_refusal_done&&(t.logprobs_refusal_done=!0,this._emit("logprobs.refusal.done",{refusal:e.logprobs.refusal}))},tV=function(){if(this.ended)throw new f("stream has ended, this shouldn't happen");let e=l(this,tF,"f");if(!e)throw new f("request ended without sending any chunks");return s(this,tF,void 0,"f"),s(this,tL,[],"f"),function(e,t){var n;let{id:r,choices:o,created:i,model:a,system_fingerprint:s,...l}=e;return n={...l,id:r,choices:o.map(({message:t,finish_reason:n,index:r,logprobs:o,...i})=>{if(!n)throw new f(`missing finish_reason for choice ${r}`);let{content:a=null,function_call:s,tool_calls:l,...c}=t,u=t.role;if(!u)throw new f(`missing role for choice ${r}`);if(s){let{arguments:e,name:l}=s;if(null==e)throw new f(`missing function_call.arguments for choice ${r}`);if(!l)throw new f(`missing function_call.name for choice ${r}`);return{...i,message:{content:a,function_call:{arguments:e,name:l},role:u,refusal:t.refusal??null},finish_reason:n,index:r,logprobs:o}}return l?{...i,index:r,finish_reason:n,logprobs:o,message:{...c,role:u,content:a,refusal:t.refusal??null,tool_calls:l.map((t,n)=>{let{function:o,type:i,id:a,...s}=t,{arguments:l,name:c,...u}=o||{};if(null==a)throw new f(`missing choices[${r}].tool_calls[${n}].id
@@ -298,4 +298,4 @@ ${e1(e)}`);if(null==i)throw new f(`missing choices[${r}].tool_calls[${n}].type
298
298
  ${e1(e)}`);if(null==c)throw new f(`missing choices[${r}].tool_calls[${n}].function.name
299
299
  ${e1(e)}`);if(null==l)throw new f(`missing choices[${r}].tool_calls[${n}].function.arguments
300
300
  ${e1(e)}`);return{...s,id:a,type:i,function:{...u,name:c,arguments:l}}})}}:{...i,message:{...c,content:a,role:u,refusal:t.refusal??null},finish_reason:n,index:r,logprobs:o}}),created:i,model:a,object:"chat.completion",...s?{system_fingerprint:s}:{}},t&&eW(t)?eH(n,t):{...n,choices:n.choices.map(e=>(eU(e.message.tool_calls),{...e,message:{...e.message,parsed:null,...e.message.tool_calls?{tool_calls:e.message.tool_calls}:void 0}}))}}(e,l(this,tB,"f"))},tG=function(){let e=l(this,tB,"f")?.response_format;return eF(e)?e:null},tX=function(e){var t,n,r,o;let i=l(this,tF,"f"),{choices:a,...c}=e;for(let{delta:a,finish_reason:u,index:d,logprobs:f=null,...p}of(i?Object.assign(i,c):i=s(this,tF,{...c,choices:[]},"f"),e.choices)){let e=i.choices[d];if(e||(e=i.choices[d]={finish_reason:u,index:d,message:{},logprobs:f,...p}),f)if(e.logprobs){let{content:r,refusal:o,...i}=f;Object.assign(e.logprobs,i),r&&((t=e.logprobs).content??(t.content=[]),e.logprobs.content.push(...r)),o&&((n=e.logprobs).refusal??(n.refusal=[]),e.logprobs.refusal.push(...o))}else e.logprobs=Object.assign({},f);if(u&&(e.finish_reason=u,l(this,tB,"f")&&eW(l(this,tB,"f")))){if("length"===u)throw new S;if("content_filter"===u)throw new C}if(Object.assign(e,p),!a)continue;let{content:s,refusal:c,function_call:h,role:m,tool_calls:g,...v}=a;if(Object.assign(e.message,v),c&&(e.message.refusal=(e.message.refusal||"")+c),m&&(e.message.role=m),h&&(e.message.function_call?(h.name&&(e.message.function_call.name=h.name),h.arguments&&((r=e.message.function_call).arguments??(r.arguments=""),e.message.function_call.arguments+=h.arguments)):e.message.function_call=h),s&&(e.message.content=(e.message.content||"")+s,!e.message.refusal&&l(this,tz,"m",tG).call(this)&&(e.message.parsed=eJ(e.message.content))),g)for(let{index:t,id:n,type:r,function:i,...a}of(e.message.tool_calls||(e.message.tool_calls=[]),g)){let s=(o=e.message.tool_calls)[t]??(o[t]={});Object.assign(s,a),n&&(s.id=n),r&&(s.type=r),i&&(s.function??(s.function={name:i.name??"",arguments:""})),i?.name&&(s.function.name=i.name),i?.arguments&&(s.function.arguments+=i.arguments,function(e,t){if(!e||!("tools"in e)||!e.tools)return!1;let n=e.tools?.find(e=>eL(e)&&e.function?.name===t.function.name);return eL(n)&&(eD(n)||n?.function.strict||!1)}(l(this,tB,"f"),s)&&(s.function.parsed_arguments=eJ(s.function.arguments)))}}return i},Symbol.asyncIterator)](){let e=[],t=[],n=!1;return this.on("chunk",n=>{let r=t.shift();r?r.resolve(n):e.push(n)}),this.on("end",()=>{for(let e of(n=!0,t))e.resolve(void 0);t.length=0}),this.on("abort",e=>{for(let r of(n=!0,t))r.reject(e);t.length=0}),this.on("error",e=>{for(let r of(n=!0,t))r.reject(e);t.length=0}),{next:async()=>e.length?{value:e.shift(),done:!1}:n?{value:void 0,done:!0}:new Promise((e,n)=>t.push({resolve:e,reject:n})).then(e=>e?{value:e,done:!1}:{value:void 0,done:!0}),return:async()=>(this.abort(),{value:void 0,done:!0})}}toReadableStream(){return new el(this[Symbol.asyncIterator].bind(this),this.controller).toReadableStream()}}function e1(e){return JSON.stringify(e)}class e2 extends e0{static fromReadableStream(e){let t=new e2(null);return t._run(()=>t._fromReadableStream(e)),t}static runTools(e,t,n){let r=new e2(t),o={...n,headers:{...n?.headers,"X-Stainless-Helper-Method":"runTools"}};return r._run(()=>r._runTools(e,t,o)),r}}class e5 extends eT{constructor(){super(...arguments),this.messages=new eB(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(ez`/chat/completions/${e}`,t)}update(e,t,n){return this._client.post(ez`/chat/completions/${e}`,{body:t,...n})}list(e={},t){return this._client.getAPIList("/chat/completions",eb,{query:e,...t})}delete(e,t){return this._client.delete(ez`/chat/completions/${e}`,t)}parse(e,t){for(let t of e.tools??[]){if("function"!==t.type)throw new f(`Currently only \`function\` tool types support auto-parsing; Received \`${t.type}\``);if(!0!==t.function.strict)throw new f(`The \`${t.function.name}\` tool is not marked with \`strict: true\`. Only strict function tools can be auto-parsed`)}return this._client.chat.completions.create(e,{...t,headers:{...t?.headers,"X-Stainless-Helper-Method":"chat.completions.parse"}})._thenUnwrap(t=>eH(t,e))}runTools(e,t){return e.stream?e2.runTools(this._client,e,t):eK.runTools(this._client,e,t)}stream(e,t){return e0.createChatCompletion(this._client,e,t)}}e5.Messages=eB;class e6 extends eT{constructor(){super(...arguments),this.completions=new e5(this._client)}}e6.Completions=e5;let e4=Symbol("brand.privateNullableHeaders"),e3=e=>{let t=new Headers,n=new Set;for(let r of e){let e=new Set;for(let[o,i]of function*(e){let t;if(!e)return;if(e4 in e){let{values:t,nulls:n}=e;for(let e of(yield*t.entries(),n))yield[e,null];return}let n=!1;for(let r of(e instanceof Headers?t=e.entries():I(e)?t=e:(n=!0,t=Object.entries(e??{})),t)){let e=r[0];if("string"!=typeof e)throw TypeError("expected header name to be a string");let t=I(r[1])?r[1]:[r[1]],o=!1;for(let r of t)void 0!==r&&(n&&!o&&(o=!0,yield[e,null]),yield[e,r])}}(r)){let r=o.toLowerCase();e.has(r)||(t.delete(o),e.add(r)),null===i?(t.delete(o),n.add(r)):(t.append(o,i),n.delete(r))}}return{[e4]:!0,values:t,nulls:n}};class e8 extends eT{create(e,t){return this._client.post("/audio/speech",{body:e,...t,headers:e3([{Accept:"application/octet-stream"},t?.headers]),__binaryResponse:!0})}}class e9 extends eT{create(e,t){return this._client.post("/audio/transcriptions",eS({body:e,...t,stream:e.stream??!1,__metadata:{model:e.model}},this._client))}}class e7 extends eT{create(e,t){return this._client.post("/audio/translations",eS({body:e,...t,__metadata:{model:e.model}},this._client))}}class te extends eT{constructor(){super(...arguments),this.transcriptions=new e9(this._client),this.translations=new e7(this._client),this.speech=new e8(this._client)}}te.Transcriptions=e9,te.Translations=e7,te.Speech=e8;class tt extends eT{create(e,t){return this._client.post("/batches",{body:e,...t})}retrieve(e,t){return this._client.get(ez`/batches/${e}`,t)}list(e={},t){return this._client.getAPIList("/batches",eb,{query:e,...t})}cancel(e,t){return this._client.post(ez`/batches/${e}/cancel`,t)}}class tn extends eT{create(e,t){return this._client.post("/assistants",{body:e,...t,headers:e3([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}retrieve(e,t){return this._client.get(ez`/assistants/${e}`,{...t,headers:e3([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}update(e,t,n){return this._client.post(ez`/assistants/${e}`,{body:t,...n,headers:e3([{"OpenAI-Beta":"assistants=v2"},n?.headers])})}list(e={},t){return this._client.getAPIList("/assistants",eb,{query:e,...t,headers:e3([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}delete(e,t){return this._client.delete(ez`/assistants/${e}`,{...t,headers:e3([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}}class tr extends eT{create(e,t){return this._client.post("/realtime/sessions",{body:e,...t,headers:e3([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}}class to extends eT{create(e,t){return this._client.post("/realtime/transcription_sessions",{body:e,...t,headers:e3([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}}class ti extends eT{constructor(){super(...arguments),this.sessions=new tr(this._client),this.transcriptionSessions=new to(this._client)}}ti.Sessions=tr,ti.TranscriptionSessions=to;class ta extends eT{create(e,t){return this._client.post("/chatkit/sessions",{body:e,...t,headers:e3([{"OpenAI-Beta":"chatkit_beta=v1"},t?.headers])})}cancel(e,t){return this._client.post(ez`/chatkit/sessions/${e}/cancel`,{...t,headers:e3([{"OpenAI-Beta":"chatkit_beta=v1"},t?.headers])})}}class ts extends eT{retrieve(e,t){return this._client.get(ez`/chatkit/threads/${e}`,{...t,headers:e3([{"OpenAI-Beta":"chatkit_beta=v1"},t?.headers])})}list(e={},t){return this._client.getAPIList("/chatkit/threads",ey,{query:e,...t,headers:e3([{"OpenAI-Beta":"chatkit_beta=v1"},t?.headers])})}delete(e,t){return this._client.delete(ez`/chatkit/threads/${e}`,{...t,headers:e3([{"OpenAI-Beta":"chatkit_beta=v1"},t?.headers])})}listItems(e,t={},n){return this._client.getAPIList(ez`/chatkit/threads/${e}/items`,ey,{query:t,...n,headers:e3([{"OpenAI-Beta":"chatkit_beta=v1"},n?.headers])})}}class tl extends eT{constructor(){super(...arguments),this.sessions=new ta(this._client),this.threads=new ts(this._client)}uploadFile(e,t){return this._client.post("/chatkit/files",e$({body:e,...t,headers:e3([{"OpenAI-Beta":"chatkit_beta=v1"},t?.headers])},this._client))}}tl.Sessions=ta,tl.Threads=ts;class tc extends eT{create(e,t,n){return this._client.post(ez`/threads/${e}/messages`,{body:t,...n,headers:e3([{"OpenAI-Beta":"assistants=v2"},n?.headers])})}retrieve(e,t,n){let{thread_id:r}=t;return this._client.get(ez`/threads/${r}/messages/${e}`,{...n,headers:e3([{"OpenAI-Beta":"assistants=v2"},n?.headers])})}update(e,t,n){let{thread_id:r,...o}=t;return this._client.post(ez`/threads/${r}/messages/${e}`,{body:o,...n,headers:e3([{"OpenAI-Beta":"assistants=v2"},n?.headers])})}list(e,t={},n){return this._client.getAPIList(ez`/threads/${e}/messages`,eb,{query:t,...n,headers:e3([{"OpenAI-Beta":"assistants=v2"},n?.headers])})}delete(e,t,n){let{thread_id:r}=t;return this._client.delete(ez`/threads/${r}/messages/${e}`,{...n,headers:e3([{"OpenAI-Beta":"assistants=v2"},n?.headers])})}}class tu extends eT{retrieve(e,t,n){let{thread_id:r,run_id:o,...i}=t;return this._client.get(ez`/threads/${r}/runs/${o}/steps/${e}`,{query:i,...n,headers:e3([{"OpenAI-Beta":"assistants=v2"},n?.headers])})}list(e,t,n){let{thread_id:r,...o}=t;return this._client.getAPIList(ez`/threads/${r}/runs/${e}/steps`,eb,{query:o,...n,headers:e3([{"OpenAI-Beta":"assistants=v2"},n?.headers])})}}var td,tf,tp,th,tm,tg,tv,tb,ty,tw,tx,tA,tE,t$,tS,tC,tO,tk,t_,tI,tR,tj,tN,tT,tP,tM,tz,tB,tL,tF,tD,tH,tW,tU,tq,tV,tG,tX,tK,tY,tZ,tQ,tJ,t0,t1,t2,t5,t6,t4,t3,t8,t9,t7,ne,nt,nn,nr,no,ni,na,ns,nl,nc,nu,nd,nf,np,nh,nm,ng,nv,nb,ny,nw,nx,nA,nE=n(8963).Buffer;let n$=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 nS extends eG{constructor(){super(...arguments),tK.add(this),tZ.set(this,[]),tQ.set(this,{}),tJ.set(this,{}),t0.set(this,void 0),t1.set(this,void 0),t2.set(this,void 0),t5.set(this,void 0),t6.set(this,void 0),t4.set(this,void 0),t3.set(this,void 0),t8.set(this,void 0),t9.set(this,void 0)}[(tZ=new WeakMap,tQ=new WeakMap,tJ=new WeakMap,t0=new WeakMap,t1=new WeakMap,t2=new WeakMap,t5=new WeakMap,t6=new WeakMap,t4=new WeakMap,t3=new WeakMap,t8=new WeakMap,t9=new WeakMap,tK=new WeakSet,Symbol.asyncIterator)](){let e=[],t=[],n=!1;return this.on("event",n=>{let r=t.shift();r?r.resolve(n):e.push(n)}),this.on("end",()=>{for(let e of(n=!0,t))e.resolve(void 0);t.length=0}),this.on("abort",e=>{for(let r of(n=!0,t))r.reject(e);t.length=0}),this.on("error",e=>{for(let r of(n=!0,t))r.reject(e);t.length=0}),{next:async()=>e.length?{value:e.shift(),done:!1}:n?{value:void 0,done:!0}:new Promise((e,n)=>t.push({resolve:e,reject:n})).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 tY;return t._run(()=>t._fromReadableStream(e)),t}async _fromReadableStream(e,t){let n=t?.signal;n&&(n.aborted&&this.controller.abort(),n.addEventListener("abort",()=>this.controller.abort())),this._connected();let r=el.fromReadableStream(e,this.controller);for await(let e of r)l(this,tK,"m",t7).call(this,e);if(r.controller.signal?.aborted)throw new h;return this._addRun(l(this,tK,"m",ne).call(this))}toReadableStream(){return new el(this[Symbol.asyncIterator].bind(this),this.controller).toReadableStream()}static createToolAssistantStream(e,t,n,r){let o=new tY;return o._run(()=>o._runToolAssistantStream(e,t,n,{...r,headers:{...r?.headers,"X-Stainless-Helper-Method":"stream"}})),o}async _createToolAssistantStream(e,t,n,r){let o=r?.signal;o&&(o.aborted&&this.controller.abort(),o.addEventListener("abort",()=>this.controller.abort()));let i={...n,stream:!0},a=await e.submitToolOutputs(t,i,{...r,signal:this.controller.signal});for await(let e of(this._connected(),a))l(this,tK,"m",t7).call(this,e);if(a.controller.signal?.aborted)throw new h;return this._addRun(l(this,tK,"m",ne).call(this))}static createThreadAssistantStream(e,t,n){let r=new tY;return r._run(()=>r._threadAssistantStream(e,t,{...n,headers:{...n?.headers,"X-Stainless-Helper-Method":"stream"}})),r}static createAssistantStream(e,t,n,r){let o=new tY;return o._run(()=>o._runAssistantStream(e,t,n,{...r,headers:{...r?.headers,"X-Stainless-Helper-Method":"stream"}})),o}currentEvent(){return l(this,t3,"f")}currentRun(){return l(this,t8,"f")}currentMessageSnapshot(){return l(this,t0,"f")}currentRunStepSnapshot(){return l(this,t9,"f")}async finalRunSteps(){return await this.done(),Object.values(l(this,tQ,"f"))}async finalMessages(){return await this.done(),Object.values(l(this,tJ,"f"))}async finalRun(){if(await this.done(),!l(this,t1,"f"))throw Error("Final run was not received.");return l(this,t1,"f")}async _createThreadAssistantStream(e,t,n){let r=n?.signal;r&&(r.aborted&&this.controller.abort(),r.addEventListener("abort",()=>this.controller.abort()));let o={...t,stream:!0},i=await e.createAndRun(o,{...n,signal:this.controller.signal});for await(let e of(this._connected(),i))l(this,tK,"m",t7).call(this,e);if(i.controller.signal?.aborted)throw new h;return this._addRun(l(this,tK,"m",ne).call(this))}async _createAssistantStream(e,t,n,r){let o=r?.signal;o&&(o.aborted&&this.controller.abort(),o.addEventListener("abort",()=>this.controller.abort()));let i={...n,stream:!0},a=await e.create(t,i,{...r,signal:this.controller.signal});for await(let e of(this._connected(),a))l(this,tK,"m",t7).call(this,e);if(a.controller.signal?.aborted)throw new h;return this._addRun(l(this,tK,"m",ne).call(this))}static accumulateDelta(e,t){for(let[n,r]of Object.entries(t)){if(!e.hasOwnProperty(n)){e[n]=r;continue}let t=e[n];if(null==t||"index"===n||"type"===n){e[n]=r;continue}if("string"==typeof t&&"string"==typeof r)t+=r;else if("number"==typeof t&&"number"==typeof r)t+=r;else if(j(t)&&j(r))t=this.accumulateDelta(t,r);else if(Array.isArray(t)&&Array.isArray(r)){if(t.every(e=>"string"==typeof e||"number"==typeof e)){t.push(...r);continue}for(let e of r){if(!j(e))throw Error(`Expected array delta entry to be an object but got: ${e}`);let n=e.index;if(null==n)throw console.error(e),Error("Expected array delta entry to have an `index` property");if("number"!=typeof n)throw Error(`Expected array delta entry \`index\` property to be a number but got ${n}`);let r=t[n];null==r?t.push(e):t[n]=this.accumulateDelta(r,e)}continue}else throw Error(`Unhandled record type: ${n}, deltaValue: ${r}, accValue: ${t}`);e[n]=t}return e}_addRun(e){return e}async _threadAssistantStream(e,t,n){return await this._createThreadAssistantStream(t,e,n)}async _runAssistantStream(e,t,n,r){return await this._createAssistantStream(t,e,n,r)}async _runToolAssistantStream(e,t,n,r){return await this._createToolAssistantStream(t,e,n,r)}}tY=nS,t7=function(e){if(!this.ended)switch(s(this,t3,e,"f"),l(this,tK,"m",nr).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,tK,"m",ns).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,tK,"m",nn).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,tK,"m",nt).call(this,e);break;case"error":throw Error("Encountered an error event in event processing - errors should be processed earlier")}},ne=function(){if(this.ended)throw new f("stream has ended, this shouldn't happen");if(!l(this,t1,"f"))throw Error("Final run has not been received");return l(this,t1,"f")},nt=function(e){let[t,n]=l(this,tK,"m",ni).call(this,e,l(this,t0,"f"));for(let e of(s(this,t0,t,"f"),l(this,tJ,"f")[t.id]=t,n)){let n=t.content[e.index];n?.type=="text"&&this._emit("textCreated",n.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 n of e.data.delta.content){if("text"==n.type&&n.text){let e=n.text,r=t.content[n.index];if(r&&"text"==r.type)this._emit("textDelta",e,r.text);else throw Error("The snapshot associated with this text delta is not text or missing")}if(n.index!=l(this,t2,"f")){if(l(this,t5,"f"))switch(l(this,t5,"f").type){case"text":this._emit("textDone",l(this,t5,"f").text,l(this,t0,"f"));break;case"image_file":this._emit("imageFileDone",l(this,t5,"f").image_file,l(this,t0,"f"))}s(this,t2,n.index,"f")}s(this,t5,t.content[n.index],"f")}break;case"thread.message.completed":case"thread.message.incomplete":if(void 0!==l(this,t2,"f")){let t=e.data.content[l(this,t2,"f")];if(t)switch(t.type){case"image_file":this._emit("imageFileDone",t.image_file,l(this,t0,"f"));break;case"text":this._emit("textDone",t.text,l(this,t0,"f"))}}l(this,t0,"f")&&this._emit("messageDone",e.data),s(this,t0,void 0,"f")}},nn=function(e){let t=l(this,tK,"m",no).call(this,e);switch(s(this,t9,t,"f"),e.event){case"thread.run.step.created":this._emit("runStepCreated",e.data);break;case"thread.run.step.delta":let n=e.data.delta;if(n.step_details&&"tool_calls"==n.step_details.type&&n.step_details.tool_calls&&"tool_calls"==t.step_details.type)for(let e of n.step_details.tool_calls)e.index==l(this,t6,"f")?this._emit("toolCallDelta",e,t.step_details.tool_calls[e.index]):(l(this,t4,"f")&&this._emit("toolCallDone",l(this,t4,"f")),s(this,t6,e.index,"f"),s(this,t4,t.step_details.tool_calls[e.index],"f"),l(this,t4,"f")&&this._emit("toolCallCreated",l(this,t4,"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,t9,void 0,"f"),"tool_calls"==e.data.step_details.type&&l(this,t4,"f")&&(this._emit("toolCallDone",l(this,t4,"f")),s(this,t4,void 0,"f")),this._emit("runStepDone",e.data,t)}},nr=function(e){l(this,tZ,"f").push(e),this._emit("event",e)},no=function(e){switch(e.event){case"thread.run.step.created":return l(this,tQ,"f")[e.data.id]=e.data,e.data;case"thread.run.step.delta":let t=l(this,tQ,"f")[e.data.id];if(!t)throw Error("Received a RunStepDelta before creation of a snapshot");let n=e.data;if(n.delta){let r=tY.accumulateDelta(t,n.delta);l(this,tQ,"f")[e.data.id]=r}return l(this,tQ,"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,tQ,"f")[e.data.id]=e.data}if(l(this,tQ,"f")[e.data.id])return l(this,tQ,"f")[e.data.id];throw Error("No snapshot available")},ni=function(e,t){let n=[];switch(e.event){case"thread.message.created":return[e.data,n];case"thread.message.delta":if(!t)throw Error("Received a delta with no existing snapshot (there should be one from message creation)");let r=e.data;if(r.delta.content)for(let e of r.delta.content)if(e.index in t.content){let n=t.content[e.index];t.content[e.index]=l(this,tK,"m",na).call(this,e,n)}else t.content[e.index]=e,n.push(e);return[t,n];case"thread.message.in_progress":case"thread.message.completed":case"thread.message.incomplete":if(t)return[t,n];throw Error("Received thread message event with no existing snapshot")}throw Error("Tried to accumulate a non-message event")},na=function(e,t){return tY.accumulateDelta(t,e)},ns=function(e){switch(s(this,t8,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,t1,e.data,"f"),l(this,t4,"f")&&(this._emit("toolCallDone",l(this,t4,"f")),s(this,t4,void 0,"f"))}};class nC extends eT{constructor(){super(...arguments),this.steps=new tu(this._client)}create(e,t,n){let{include:r,...o}=t;return this._client.post(ez`/threads/${e}/runs`,{query:{include:r},body:o,...n,headers:e3([{"OpenAI-Beta":"assistants=v2"},n?.headers]),stream:t.stream??!1})}retrieve(e,t,n){let{thread_id:r}=t;return this._client.get(ez`/threads/${r}/runs/${e}`,{...n,headers:e3([{"OpenAI-Beta":"assistants=v2"},n?.headers])})}update(e,t,n){let{thread_id:r,...o}=t;return this._client.post(ez`/threads/${r}/runs/${e}`,{body:o,...n,headers:e3([{"OpenAI-Beta":"assistants=v2"},n?.headers])})}list(e,t={},n){return this._client.getAPIList(ez`/threads/${e}/runs`,eb,{query:t,...n,headers:e3([{"OpenAI-Beta":"assistants=v2"},n?.headers])})}cancel(e,t,n){let{thread_id:r}=t;return this._client.post(ez`/threads/${r}/runs/${e}/cancel`,{...n,headers:e3([{"OpenAI-Beta":"assistants=v2"},n?.headers])})}async createAndPoll(e,t,n){let r=await this.create(e,t,n);return await this.poll(r.id,{thread_id:e},n)}createAndStream(e,t,n){return nS.createAssistantStream(e,this._client.beta.threads.runs,t,n)}async poll(e,t,n){let r=e3([n?.headers,{"X-Stainless-Poll-Helper":"true","X-Stainless-Custom-Poll-Interval":n?.pollIntervalMs?.toString()??void 0}]);for(;;){let{data:o,response:i}=await this.retrieve(e,t,{...n,headers:{...n?.headers,...r}}).withResponse();switch(o.status){case"queued":case"in_progress":case"cancelling":let a=5e3;if(n?.pollIntervalMs)a=n.pollIntervalMs;else{let e=i.headers.get("openai-poll-after-ms");if(e){let t=parseInt(e);isNaN(t)||(a=t)}}await N(a);break;case"requires_action":case"incomplete":case"cancelled":case"completed":case"failed":case"expired":return o}}}stream(e,t,n){return nS.createAssistantStream(e,this._client.beta.threads.runs,t,n)}submitToolOutputs(e,t,n){let{thread_id:r,...o}=t;return this._client.post(ez`/threads/${r}/runs/${e}/submit_tool_outputs`,{body:o,...n,headers:e3([{"OpenAI-Beta":"assistants=v2"},n?.headers]),stream:t.stream??!1})}async submitToolOutputsAndPoll(e,t,n){let r=await this.submitToolOutputs(e,t,n);return await this.poll(r.id,t,n)}submitToolOutputsStream(e,t,n){return nS.createToolAssistantStream(e,this._client.beta.threads.runs,t,n)}}nC.Steps=tu;class nO extends eT{constructor(){super(...arguments),this.runs=new nC(this._client),this.messages=new tc(this._client)}create(e={},t){return this._client.post("/threads",{body:e,...t,headers:e3([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}retrieve(e,t){return this._client.get(ez`/threads/${e}`,{...t,headers:e3([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}update(e,t,n){return this._client.post(ez`/threads/${e}`,{body:t,...n,headers:e3([{"OpenAI-Beta":"assistants=v2"},n?.headers])})}delete(e,t){return this._client.delete(ez`/threads/${e}`,{...t,headers:e3([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}createAndRun(e,t){return this._client.post("/threads/runs",{body:e,...t,headers:e3([{"OpenAI-Beta":"assistants=v2"},t?.headers]),stream:e.stream??!1})}async createAndRunPoll(e,t){let n=await this.createAndRun(e,t);return await this.runs.poll(n.id,{thread_id:n.thread_id},t)}createAndRunStream(e,t){return nS.createThreadAssistantStream(e,this._client.beta.threads,t)}}nO.Runs=nC,nO.Messages=tc;class nk extends eT{constructor(){super(...arguments),this.realtime=new ti(this._client),this.chatkit=new tl(this._client),this.assistants=new tn(this._client),this.threads=new nO(this._client)}}nk.Realtime=ti,nk.ChatKit=tl,nk.Assistants=tn,nk.Threads=nO;class n_ extends eT{create(e,t){return this._client.post("/completions",{body:e,...t,stream:e.stream??!1})}}class nI extends eT{retrieve(e,t,n){let{container_id:r}=t;return this._client.get(ez`/containers/${r}/files/${e}/content`,{...n,headers:e3([{Accept:"application/binary"},n?.headers]),__binaryResponse:!0})}}class nR extends eT{constructor(){super(...arguments),this.content=new nI(this._client)}create(e,t,n){return this._client.post(ez`/containers/${e}/files`,eS({body:t,...n},this._client))}retrieve(e,t,n){let{container_id:r}=t;return this._client.get(ez`/containers/${r}/files/${e}`,n)}list(e,t={},n){return this._client.getAPIList(ez`/containers/${e}/files`,eb,{query:t,...n})}delete(e,t,n){let{container_id:r}=t;return this._client.delete(ez`/containers/${r}/files/${e}`,{...n,headers:e3([{Accept:"*/*"},n?.headers])})}}nR.Content=nI;class nj extends eT{constructor(){super(...arguments),this.files=new nR(this._client)}create(e,t){return this._client.post("/containers",{body:e,...t})}retrieve(e,t){return this._client.get(ez`/containers/${e}`,t)}list(e={},t){return this._client.getAPIList("/containers",eb,{query:e,...t})}delete(e,t){return this._client.delete(ez`/containers/${e}`,{...t,headers:e3([{Accept:"*/*"},t?.headers])})}}nj.Files=nR;class nN extends eT{create(e,t,n){let{include:r,...o}=t;return this._client.post(ez`/conversations/${e}/items`,{query:{include:r},body:o,...n})}retrieve(e,t,n){let{conversation_id:r,...o}=t;return this._client.get(ez`/conversations/${r}/items/${e}`,{query:o,...n})}list(e,t={},n){return this._client.getAPIList(ez`/conversations/${e}/items`,ey,{query:t,...n})}delete(e,t,n){let{conversation_id:r}=t;return this._client.delete(ez`/conversations/${r}/items/${e}`,n)}}class nT extends eT{constructor(){super(...arguments),this.items=new nN(this._client)}create(e={},t){return this._client.post("/conversations",{body:e,...t})}retrieve(e,t){return this._client.get(ez`/conversations/${e}`,t)}update(e,t,n){return this._client.post(ez`/conversations/${e}`,{body:t,...n})}delete(e,t){return this._client.delete(ez`/conversations/${e}`,t)}}nT.Items=nN;class nP extends eT{create(e,t){let n=!!e.encoding_format,r=n?e.encoding_format:"base64";n&&ea(this._client).debug("embeddings/user defined encoding_format:",e.encoding_format);let o=this._client.post("/embeddings",{body:{...e,encoding_format:r},...t});return n?o:(ea(this._client).debug("embeddings/decoding base64 embeddings from base64"),o._thenUnwrap(e=>(e&&e.data&&e.data.forEach(e=>{let t=e.embedding;e.embedding=(e=>{if(void 0!==nE){let t=nE.from(e,"base64");return Array.from(new Float32Array(t.buffer,t.byteOffset,t.length/Float32Array.BYTES_PER_ELEMENT))}{let t=atob(e),n=t.length,r=new Uint8Array(n);for(let e=0;e<n;e++)r[e]=t.charCodeAt(e);return Array.from(new Float32Array(r.buffer))}})(t)}),e)))}}class nM extends eT{retrieve(e,t,n){let{eval_id:r,run_id:o}=t;return this._client.get(ez`/evals/${r}/runs/${o}/output_items/${e}`,n)}list(e,t,n){let{eval_id:r,...o}=t;return this._client.getAPIList(ez`/evals/${r}/runs/${e}/output_items`,eb,{query:o,...n})}}class nz extends eT{constructor(){super(...arguments),this.outputItems=new nM(this._client)}create(e,t,n){return this._client.post(ez`/evals/${e}/runs`,{body:t,...n})}retrieve(e,t,n){let{eval_id:r}=t;return this._client.get(ez`/evals/${r}/runs/${e}`,n)}list(e,t={},n){return this._client.getAPIList(ez`/evals/${e}/runs`,eb,{query:t,...n})}delete(e,t,n){let{eval_id:r}=t;return this._client.delete(ez`/evals/${r}/runs/${e}`,n)}cancel(e,t,n){let{eval_id:r}=t;return this._client.post(ez`/evals/${r}/runs/${e}`,n)}}nz.OutputItems=nM;class nB extends eT{constructor(){super(...arguments),this.runs=new nz(this._client)}create(e,t){return this._client.post("/evals",{body:e,...t})}retrieve(e,t){return this._client.get(ez`/evals/${e}`,t)}update(e,t,n){return this._client.post(ez`/evals/${e}`,{body:t,...n})}list(e={},t){return this._client.getAPIList("/evals",eb,{query:e,...t})}delete(e,t){return this._client.delete(ez`/evals/${e}`,t)}}nB.Runs=nz;class nL extends eT{create(e,t){return this._client.post("/files",eS({body:e,...t},this._client))}retrieve(e,t){return this._client.get(ez`/files/${e}`,t)}list(e={},t){return this._client.getAPIList("/files",eb,{query:e,...t})}delete(e,t){return this._client.delete(ez`/files/${e}`,t)}content(e,t){return this._client.get(ez`/files/${e}/content`,{...t,headers:e3([{Accept:"application/binary"},t?.headers]),__binaryResponse:!0})}async waitForProcessing(e,{pollInterval:t=5e3,maxWait:n=18e5}={}){let r=new Set(["processed","error","deleted"]),o=Date.now(),i=await this.retrieve(e);for(;!i.status||!r.has(i.status);)if(await N(t),i=await this.retrieve(e),Date.now()-o>n)throw new g({message:`Giving up on waiting for file ${e} to finish processing after ${n} milliseconds.`});return i}}class nF extends eT{}class nD extends eT{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 nH extends eT{constructor(){super(...arguments),this.graders=new nD(this._client)}}nH.Graders=nD;class nW extends eT{create(e,t,n){return this._client.getAPIList(ez`/fine_tuning/checkpoints/${e}/permissions`,ev,{body:t,method:"post",...n})}retrieve(e,t={},n){return this._client.get(ez`/fine_tuning/checkpoints/${e}/permissions`,{query:t,...n})}delete(e,t,n){let{fine_tuned_model_checkpoint:r}=t;return this._client.delete(ez`/fine_tuning/checkpoints/${r}/permissions/${e}`,n)}}class nU extends eT{constructor(){super(...arguments),this.permissions=new nW(this._client)}}nU.Permissions=nW;class nq extends eT{list(e,t={},n){return this._client.getAPIList(ez`/fine_tuning/jobs/${e}/checkpoints`,eb,{query:t,...n})}}class nV extends eT{constructor(){super(...arguments),this.checkpoints=new nq(this._client)}create(e,t){return this._client.post("/fine_tuning/jobs",{body:e,...t})}retrieve(e,t){return this._client.get(ez`/fine_tuning/jobs/${e}`,t)}list(e={},t){return this._client.getAPIList("/fine_tuning/jobs",eb,{query:e,...t})}cancel(e,t){return this._client.post(ez`/fine_tuning/jobs/${e}/cancel`,t)}listEvents(e,t={},n){return this._client.getAPIList(ez`/fine_tuning/jobs/${e}/events`,eb,{query:t,...n})}pause(e,t){return this._client.post(ez`/fine_tuning/jobs/${e}/pause`,t)}resume(e,t){return this._client.post(ez`/fine_tuning/jobs/${e}/resume`,t)}}nV.Checkpoints=nq;class nG extends eT{constructor(){super(...arguments),this.methods=new nF(this._client),this.jobs=new nV(this._client),this.checkpoints=new nU(this._client),this.alpha=new nH(this._client)}}nG.Methods=nF,nG.Jobs=nV,nG.Checkpoints=nU,nG.Alpha=nH;class nX extends eT{}class nK extends eT{constructor(){super(...arguments),this.graderModels=new nX(this._client)}}nK.GraderModels=nX;class nY extends eT{createVariation(e,t){return this._client.post("/images/variations",eS({body:e,...t},this._client))}edit(e,t){return this._client.post("/images/edits",eS({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 nZ extends eT{retrieve(e,t){return this._client.get(ez`/models/${e}`,t)}list(e){return this._client.getAPIList("/models",ev,e)}delete(e,t){return this._client.delete(ez`/models/${e}`,t)}}class nQ extends eT{create(e,t){return this._client.post("/moderations",{body:e,...t})}}class nJ extends eT{accept(e,t,n){return this._client.post(ez`/realtime/calls/${e}/accept`,{body:t,...n,headers:e3([{Accept:"*/*"},n?.headers])})}hangup(e,t){return this._client.post(ez`/realtime/calls/${e}/hangup`,{...t,headers:e3([{Accept:"*/*"},t?.headers])})}refer(e,t,n){return this._client.post(ez`/realtime/calls/${e}/refer`,{body:t,...n,headers:e3([{Accept:"*/*"},n?.headers])})}reject(e,t={},n){return this._client.post(ez`/realtime/calls/${e}/reject`,{body:t,...n,headers:e3([{Accept:"*/*"},n?.headers])})}}class n0 extends eT{create(e,t){return this._client.post("/realtime/client_secrets",{body:e,...t})}}class n1 extends eT{constructor(){super(...arguments),this.clientSecrets=new n0(this._client),this.calls=new nJ(this._client)}}function n2(e,t){let n=e.output.map(e=>{if("function_call"===e.type)return{...e,parsed_arguments:function(e,t){var n,r;let o=(n=e.tools??[],r=t.name,n.find(e=>"function"===e.type&&e.name===r));return{...t,...t,parsed_arguments:o?.$brand==="auto-parseable-tool"?o.$parseRaw(t.arguments):o?.strict?JSON.parse(t.arguments):null}}(t,e)};if("message"===e.type){let n=e.content.map(e=>{var n,r;return"output_text"===e.type?{...e,parsed:(n=t,r=e.text,n.text?.format?.type!=="json_schema"?null:"$parseRaw"in n.text?.format?(n.text?.format).$parseRaw(r):JSON.parse(r))}:e});return{...e,content:n}}return e}),r=Object.assign({},e,{output:n});return Object.getOwnPropertyDescriptor(e,"output_text")||n5(r),Object.defineProperty(r,"output_parsed",{enumerable:!0,get(){for(let e of r.output)if("message"===e.type){for(let t of e.content)if("output_text"===t.type&&null!==t.parsed)return t.parsed}return null}}),r}function n5(e){let t=[];for(let n of e.output)if("message"===n.type)for(let e of n.content)"output_text"===e.type&&t.push(e.text);e.output_text=t.join("")}n1.ClientSecrets=n0,n1.Calls=nJ;class n6 extends eG{constructor(e){super(),nl.add(this),nc.set(this,void 0),nu.set(this,void 0),nd.set(this,void 0),s(this,nc,e,"f")}static createResponse(e,t,n){let r=new n6(t);return r._run(()=>r._createOrRetrieveResponse(e,t,{...n,headers:{...n?.headers,"X-Stainless-Helper-Method":"stream"}})),r}async _createOrRetrieveResponse(e,t,n){let r,o=n?.signal;o&&(o.aborted&&this.controller.abort(),o.addEventListener("abort",()=>this.controller.abort())),l(this,nl,"m",nf).call(this);let i=null;for await(let o of("response_id"in t?(r=await e.responses.retrieve(t.response_id,{stream:!0},{...n,signal:this.controller.signal,stream:!0}),i=t.starting_after??null):r=await e.responses.create({...t,stream:!0},{...n,signal:this.controller.signal}),this._connected(),r))l(this,nl,"m",np).call(this,o,i);if(r.controller.signal?.aborted)throw new h;return l(this,nl,"m",nh).call(this)}[(nc=new WeakMap,nu=new WeakMap,nd=new WeakMap,nl=new WeakSet,nf=function(){this.ended||s(this,nu,void 0,"f")},np=function(e,t){if(this.ended)return;let n=(e,n)=>{(null==t||n.sequence_number>t)&&this._emit(e,n)},r=l(this,nl,"m",nm).call(this,e);switch(n("event",e),e.type){case"response.output_text.delta":{let t=r.output[e.output_index];if(!t)throw new f(`missing output at index ${e.output_index}`);if("message"===t.type){let r=t.content[e.content_index];if(!r)throw new f(`missing content at index ${e.content_index}`);if("output_text"!==r.type)throw new f(`expected content to be 'output_text', got ${r.type}`);n("response.output_text.delta",{...e,snapshot:r.text})}break}case"response.function_call_arguments.delta":{let t=r.output[e.output_index];if(!t)throw new f(`missing output at index ${e.output_index}`);"function_call"===t.type&&n("response.function_call_arguments.delta",{...e,snapshot:t.arguments});break}default:n(e.type,e)}},nh=function(){if(this.ended)throw new f("stream has ended, this shouldn't happen");let e=l(this,nu,"f");if(!e)throw new f("request ended without sending any events");s(this,nu,void 0,"f");let t=function(e,t){var n;return t&&(n=t,eF(n.text?.format))?n2(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)}}(e,l(this,nc,"f"));return s(this,nd,t,"f"),t},nm=function(e){let t=l(this,nu,"f");if(!t){if("response.created"!==e.type)throw new f(`When snapshot hasn't been set yet, expected 'response.created' event, got ${e.type}`);return s(this,nu,e.response,"f")}switch(e.type){case"response.output_item.added":t.output.push(e.item);break;case"response.content_part.added":{let n=t.output[e.output_index];if(!n)throw new f(`missing output at index ${e.output_index}`);let r=n.type,o=e.part;"message"===r&&"reasoning_text"!==o.type?n.content.push(o):"reasoning"===r&&"reasoning_text"===o.type&&(n.content||(n.content=[]),n.content.push(o));break}case"response.output_text.delta":{let n=t.output[e.output_index];if(!n)throw new f(`missing output at index ${e.output_index}`);if("message"===n.type){let t=n.content[e.content_index];if(!t)throw new f(`missing content at index ${e.content_index}`);if("output_text"!==t.type)throw new f(`expected content to be 'output_text', got ${t.type}`);t.text+=e.delta}break}case"response.function_call_arguments.delta":{let n=t.output[e.output_index];if(!n)throw new f(`missing output at index ${e.output_index}`);"function_call"===n.type&&(n.arguments+=e.delta);break}case"response.reasoning_text.delta":{let n=t.output[e.output_index];if(!n)throw new f(`missing output at index ${e.output_index}`);if("reasoning"===n.type){let t=n.content?.[e.content_index];if(!t)throw new f(`missing content at index ${e.content_index}`);if("reasoning_text"!==t.type)throw new f(`expected content to be 'reasoning_text', got ${t.type}`);t.text+=e.delta}break}case"response.completed":s(this,nu,e.response,"f")}return t},Symbol.asyncIterator)](){let e=[],t=[],n=!1;return this.on("event",n=>{let r=t.shift();r?r.resolve(n):e.push(n)}),this.on("end",()=>{for(let e of(n=!0,t))e.resolve(void 0);t.length=0}),this.on("abort",e=>{for(let r of(n=!0,t))r.reject(e);t.length=0}),this.on("error",e=>{for(let r of(n=!0,t))r.reject(e);t.length=0}),{next:async()=>e.length?{value:e.shift(),done:!1}:n?{value:void 0,done:!0}:new Promise((e,n)=>t.push({resolve:e,reject:n})).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,nd,"f");if(!e)throw new f("stream ended without producing a ChatCompletion");return e}}class n4 extends eT{list(e,t={},n){return this._client.getAPIList(ez`/responses/${e}/input_items`,eb,{query:t,...n})}}class n3 extends eT{constructor(){super(...arguments),this.inputItems=new n4(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&&n5(e),e))}retrieve(e,t={},n){return this._client.get(ez`/responses/${e}`,{query:t,...n,stream:t?.stream??!1})._thenUnwrap(e=>("object"in e&&"response"===e.object&&n5(e),e))}delete(e,t){return this._client.delete(ez`/responses/${e}`,{...t,headers:e3([{Accept:"*/*"},t?.headers])})}parse(e,t){return this._client.responses.create(e,t)._thenUnwrap(t=>n2(t,e))}stream(e,t){return n6.createResponse(this._client,e,t)}cancel(e,t){return this._client.post(ez`/responses/${e}/cancel`,t)}}n3.InputItems=n4;class n8 extends eT{create(e,t,n){return this._client.post(ez`/uploads/${e}/parts`,eS({body:t,...n},this._client))}}class n9 extends eT{constructor(){super(...arguments),this.parts=new n8(this._client)}create(e,t){return this._client.post("/uploads",{body:e,...t})}cancel(e,t){return this._client.post(ez`/uploads/${e}/cancel`,t)}complete(e,t,n){return this._client.post(ez`/uploads/${e}/complete`,{body:t,...n})}}n9.Parts=n8;let n7=async e=>{let t=await Promise.allSettled(e),n=t.filter(e=>"rejected"===e.status);if(n.length){for(let e of n)console.error(e.reason);throw Error(`${n.length} promise(s) failed - see the above errors`)}let r=[];for(let e of t)"fulfilled"===e.status&&r.push(e.value);return r};class re extends eT{create(e,t,n){return this._client.post(ez`/vector_stores/${e}/file_batches`,{body:t,...n,headers:e3([{"OpenAI-Beta":"assistants=v2"},n?.headers])})}retrieve(e,t,n){let{vector_store_id:r}=t;return this._client.get(ez`/vector_stores/${r}/file_batches/${e}`,{...n,headers:e3([{"OpenAI-Beta":"assistants=v2"},n?.headers])})}cancel(e,t,n){let{vector_store_id:r}=t;return this._client.post(ez`/vector_stores/${r}/file_batches/${e}/cancel`,{...n,headers:e3([{"OpenAI-Beta":"assistants=v2"},n?.headers])})}async createAndPoll(e,t,n){let r=await this.create(e,t);return await this.poll(e,r.id,n)}listFiles(e,t,n){let{vector_store_id:r,...o}=t;return this._client.getAPIList(ez`/vector_stores/${r}/file_batches/${e}/files`,eb,{query:o,...n,headers:e3([{"OpenAI-Beta":"assistants=v2"},n?.headers])})}async poll(e,t,n){let r=e3([n?.headers,{"X-Stainless-Poll-Helper":"true","X-Stainless-Custom-Poll-Interval":n?.pollIntervalMs?.toString()??void 0}]);for(;;){let{data:o,response:i}=await this.retrieve(t,{vector_store_id:e},{...n,headers:r}).withResponse();switch(o.status){case"in_progress":let a=5e3;if(n?.pollIntervalMs)a=n.pollIntervalMs;else{let e=i.headers.get("openai-poll-after-ms");if(e){let t=parseInt(e);isNaN(t)||(a=t)}}await N(a);break;case"failed":case"cancelled":case"completed":return o}}}async uploadAndPoll(e,{files:t,fileIds:n=[]},r){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 o=Math.min(r?.maxConcurrency??5,t.length),i=this._client,a=t.values(),s=[...n];async function l(e){for(let t of e){let e=await i.files.create({file:t,purpose:"assistants"},r);s.push(e.id)}}let c=Array(o).fill(a).map(l);return await n7(c),await this.createAndPoll(e,{file_ids:s})}}class rt extends eT{create(e,t,n){return this._client.post(ez`/vector_stores/${e}/files`,{body:t,...n,headers:e3([{"OpenAI-Beta":"assistants=v2"},n?.headers])})}retrieve(e,t,n){let{vector_store_id:r}=t;return this._client.get(ez`/vector_stores/${r}/files/${e}`,{...n,headers:e3([{"OpenAI-Beta":"assistants=v2"},n?.headers])})}update(e,t,n){let{vector_store_id:r,...o}=t;return this._client.post(ez`/vector_stores/${r}/files/${e}`,{body:o,...n,headers:e3([{"OpenAI-Beta":"assistants=v2"},n?.headers])})}list(e,t={},n){return this._client.getAPIList(ez`/vector_stores/${e}/files`,eb,{query:t,...n,headers:e3([{"OpenAI-Beta":"assistants=v2"},n?.headers])})}delete(e,t,n){let{vector_store_id:r}=t;return this._client.delete(ez`/vector_stores/${r}/files/${e}`,{...n,headers:e3([{"OpenAI-Beta":"assistants=v2"},n?.headers])})}async createAndPoll(e,t,n){let r=await this.create(e,t,n);return await this.poll(e,r.id,n)}async poll(e,t,n){let r=e3([n?.headers,{"X-Stainless-Poll-Helper":"true","X-Stainless-Custom-Poll-Interval":n?.pollIntervalMs?.toString()??void 0}]);for(;;){let o=await this.retrieve(t,{vector_store_id:e},{...n,headers:r}).withResponse(),i=o.data;switch(i.status){case"in_progress":let a=5e3;if(n?.pollIntervalMs)a=n.pollIntervalMs;else{let e=o.response.headers.get("openai-poll-after-ms");if(e){let t=parseInt(e);isNaN(t)||(a=t)}}await N(a);break;case"failed":case"completed":return i}}}async upload(e,t,n){let r=await this._client.files.create({file:t,purpose:"assistants"},n);return this.create(e,{file_id:r.id},n)}async uploadAndPoll(e,t,n){let r=await this.upload(e,t,n);return await this.poll(e,r.id,n)}content(e,t,n){let{vector_store_id:r}=t;return this._client.getAPIList(ez`/vector_stores/${r}/files/${e}/content`,ev,{...n,headers:e3([{"OpenAI-Beta":"assistants=v2"},n?.headers])})}}class rn extends eT{constructor(){super(...arguments),this.files=new rt(this._client),this.fileBatches=new re(this._client)}create(e,t){return this._client.post("/vector_stores",{body:e,...t,headers:e3([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}retrieve(e,t){return this._client.get(ez`/vector_stores/${e}`,{...t,headers:e3([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}update(e,t,n){return this._client.post(ez`/vector_stores/${e}`,{body:t,...n,headers:e3([{"OpenAI-Beta":"assistants=v2"},n?.headers])})}list(e={},t){return this._client.getAPIList("/vector_stores",eb,{query:e,...t,headers:e3([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}delete(e,t){return this._client.delete(ez`/vector_stores/${e}`,{...t,headers:e3([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}search(e,t,n){return this._client.getAPIList(ez`/vector_stores/${e}/search`,ev,{body:t,method:"post",...n,headers:e3([{"OpenAI-Beta":"assistants=v2"},n?.headers])})}}rn.Files=rt,rn.FileBatches=re;class rr extends eT{create(e,t){return this._client.post("/videos",e$({body:e,...t},this._client))}retrieve(e,t){return this._client.get(ez`/videos/${e}`,t)}list(e={},t){return this._client.getAPIList("/videos",ey,{query:e,...t})}delete(e,t){return this._client.delete(ez`/videos/${e}`,t)}downloadContent(e,t={},n){return this._client.get(ez`/videos/${e}/content`,{query:t,...n,headers:e3([{Accept:"application/binary"},n?.headers]),__binaryResponse:!0})}remix(e,t,n){return this._client.post(ez`/videos/${e}/remix`,e$({body:t,...n},this._client))}}var ro=n(8963).Buffer;class ri extends eT{constructor(){super(...arguments),ng.add(this)}async unwrap(e,t,n=this._client.webhookSecret,r=300){return await this.verifySignature(e,t,n,r),JSON.parse(e)}async verifySignature(e,t,n=this._client.webhookSecret,r=300){if("undefined"==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,ng,"m",nv).call(this,n);let o=e3([t]).values,i=l(this,ng,"m",nb).call(this,o,"webhook-signature"),a=l(this,ng,"m",nb).call(this,o,"webhook-timestamp"),s=l(this,ng,"m",nb).call(this,o,"webhook-id"),c=parseInt(a,10);if(isNaN(c))throw new O("Invalid webhook timestamp format");let u=Math.floor(Date.now()/1e3);if(u-c>r)throw new O("Webhook timestamp is too old");if(c>u+r)throw new O("Webhook timestamp is too new");let d=i.split(" ").map(e=>e.startsWith("v1,")?e.substring(3):e),f=n.startsWith("whsec_")?ro.from(n.replace("whsec_",""),"base64"):ro.from(n,"utf-8"),p=s?`${s}.${a}.${e}`:`${a}.${e}`,h=await crypto.subtle.importKey("raw",f,{name:"HMAC",hash:"SHA-256"},!1,["verify"]);for(let e of d)try{let t=ro.from(e,"base64");if(await crypto.subtle.verify("HMAC",h,t,new TextEncoder().encode(p)))return}catch{continue}throw new O("The given webhook signature does not match the expected signature")}}ng=new WeakSet,nv=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")},nb=function(e,t){if(!e)throw Error("Headers are required");let n=e.get(t);if(null==n)throw Error(`Missing required header: ${t}`);return n};class ra{constructor({baseURL:e=n$("OPENAI_BASE_URL"),apiKey:t=n$("OPENAI_API_KEY"),organization:n=n$("OPENAI_ORG_ID")??null,project:r=n$("OPENAI_PROJECT_ID")??null,webhookSecret:o=n$("OPENAI_WEBHOOK_SECRET")??null,...i}={}){if(ny.add(this),nx.set(this,void 0),this.completions=new n_(this),this.chat=new e6(this),this.embeddings=new nP(this),this.files=new nL(this),this.images=new nY(this),this.audio=new te(this),this.moderations=new nQ(this),this.models=new nZ(this),this.fineTuning=new nG(this),this.graders=new nK(this),this.vectorStores=new rn(this),this.webhooks=new ri(this),this.beta=new nk(this),this.batches=new tt(this),this.uploads=new n9(this),this.responses=new n3(this),this.realtime=new n1(this),this.conversations=new nT(this),this.evals=new nB(this),this.containers=new nj(this),this.videos=new rr(this),void 0===t)throw new f("Missing credentials. Please pass an `apiKey`, or set the `OPENAI_API_KEY` environment variable.");const a={apiKey:t,organization:n,project:r,webhookSecret:o,...i,baseURL:e||"https://api.openai.com/v1"};if(!a.dangerouslyAllowBrowser&&"undefined"!=typeof window&&void 0!==window.document&&"undefined"!=typeof navigator)throw new f("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??nw.DEFAULT_TIMEOUT,this.logger=a.logger??console;const l="warn";this.logLevel=l,this.logLevel=et(a.logLevel,"ClientOptions.logLevel",this)??et(n$("OPENAI_LOG"),"process.env['OPENAI_LOG']",this)??l,this.fetchOptions=a.fetchOptions,this.maxRetries=a.maxRetries??2,this.fetch=a.fetch??function(){if("undefined"!=typeof fetch)return fetch;throw Error("`fetch` is not defined as a global; Either pass `fetch` to the client, `new OpenAI({ fetch })` or polyfill the global, `globalThis.fetch = fetch`")}(),s(this,nx,F,"f"),this._options=a,this.apiKey="string"==typeof t?t:"Missing Key",this.organization=n,this.project=r,this.webhookSecret=o}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 e3([{Authorization:`Bearer ${this.apiKey}`}])}stringifyQuery(e){return function(e,t={}){let n,r=e,o=function(e=K){let t;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");let n=e.charset||K.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");let r=D;if(void 0!==e.format){if(!U(W,e.format))throw TypeError("Unknown format option provided.");r=e.format}let o=W[r],i=K.filter;if(("function"==typeof e.filter||_(e.filter))&&(i=e.filter),t=e.arrayFormat&&e.arrayFormat in G?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":K.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");let a=void 0===e.allowDots?!0==!!e.encodeDotInKeys||K.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:K.addQueryPrefix,allowDots:a,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:K.allowEmptyArrays,arrayFormat:t,charset:n,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:K.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?K.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:K.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:K.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:K.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:K.encodeValuesOnly,filter:i,format:r,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:K.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:K.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:K.strictNullHandling}}(t);"function"==typeof o.filter?r=(0,o.filter)("",r):_(o.filter)&&(n=o.filter);let i=[];if("object"!=typeof r||null===r)return"";let a=G[o.arrayFormat],s="comma"===a&&o.commaRoundTrip;n||(n=Object.keys(r)),o.sort&&n.sort(o.sort);let l=new WeakMap;for(let e=0;e<n.length;++e){let t=n[e];o.skipNulls&&null===r[t]||X(i,function e(t,n,r,o,i,a,s,l,c,u,d,f,p,h,m,g,v,b){var y,w;let x,A=t,E=b,$=0,S=!1;for(;void 0!==(E=E.get(Y))&&!S;){let e=E.get(t);if($+=1,void 0!==e)if(e===$)throw RangeError("Cyclic object value");else S=!0;void 0===E.get(Y)&&($=0)}if("function"==typeof u?A=u(n,A):A instanceof Date?A=p?.(A):"comma"===r&&_(A)&&(A=V(A,function(e){return e instanceof Date?p?.(e):e})),null===A){if(a)return c&&!g?c(n,K.encoder,v,"key",h):n;A=""}if("string"==typeof(y=A)||"number"==typeof y||"boolean"==typeof y||"symbol"==typeof y||"bigint"==typeof y||(w=A)&&"object"==typeof w&&w.constructor&&w.constructor.isBuffer&&w.constructor.isBuffer(w)){if(c){let e=g?n:c(n,K.encoder,v,"key",h);return[m?.(e)+"="+m?.(c(A,K.encoder,v,"value",h))]}return[m?.(n)+"="+m?.(String(A))]}let C=[];if(void 0===A)return C;if("comma"===r&&_(A))g&&c&&(A=V(A,c)),x=[{value:A.length>0?A.join(",")||null:void 0}];else if(_(u))x=u;else{let e=Object.keys(A);x=d?e.sort(d):e}let O=l?String(n).replace(/\./g,"%2E"):String(n),k=o&&_(A)&&1===A.length?O+"[]":O;if(i&&_(A)&&0===A.length)return k+"[]";for(let n=0;n<x.length;++n){let y=x[n],w="object"==typeof y&&void 0!==y.value?y.value:A[y];if(s&&null===w)continue;let E=f&&l?y.replace(/\./g,"%2E"):y,S=_(A)?"function"==typeof r?r(k,E):k:k+(f?"."+E:"["+E+"]");b.set(t,$);let O=new WeakMap;O.set(Y,b),X(C,e(w,S,r,o,i,a,s,l,"comma"===r&&g&&_(A)?null:c,u,d,f,p,h,m,g,v,O))}return C}(r[t],t,a,s,o.allowEmptyArrays,o.strictNullHandling,o.skipNulls,o.encodeDotInKeys,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,l))}let c=i.join(o.delimiter),u=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?u+="utf8=%26%2310003%3B&":u+="utf8=%E2%9C%93&"),c.length>0?u+c:""}(e,{arrayFormat:"brackets"})}getUserAgent(){return`${this.constructor.name}/JS 6.3.0`}defaultIdempotencyKey(){return`stainless-node-retry-${c()}`}makeStatusError(e,t,n,r){return p.generate(e,t,n,r)}async _callApiKey(){let e,t=this._options.apiKey;if("function"!=typeof t)return!1;try{e=await t()}catch(e){if(e instanceof f)throw e;throw new f(`Failed to get token from 'apiKey' function: ${e.message}`,{cause:e})}if("string"!=typeof e||!e)throw new f(`Expected 'apiKey' function argument to return a string but it returned ${e}`);return this.apiKey=e,!0}buildURL(e,t,n){let r=!l(this,ny,"m",nA).call(this)&&n||this.baseURL,o=new URL(k.test(e)?e:r+(r.endsWith("/")&&e.startsWith("/")?e.slice(1):e)),i=this.defaultQuery();return!function(e){if(!e)return!0;for(let t in e)return!1;return!0}(i)&&(t={...i,...t}),"object"==typeof t&&t&&!Array.isArray(t)&&(o.search=this.stringifyQuery(t)),o.toString()}async prepareOptions(e){await this._callApiKey()}async prepareRequest(e,{url:t,options:n}){}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,n){return this.request(Promise.resolve(n).then(n=>({method:e,path:t,...n})))}request(e,t=null){return new eh(this,this.makeRequest(e,t,void 0))}async makeRequest(e,t,n){let r=await e,o=r.maxRetries??this.maxRetries;null==t&&(t=o),await this.prepareOptions(r);let{req:i,url:a,timeout:s}=await this.buildRequest(r,{retryCount:o-t});await this.prepareRequest(i,{url:a,options:r});let l="log_"+(0x1000000*Math.random()|0).toString(16).padStart(6,"0"),c=void 0===n?"":`, retryOf: ${n}`,f=Date.now();if(ea(this).debug(`[${l}] sending request`,es({retryOfRequestLogID:n,method:r.method,url:a,options:r,headers:i.headers})),r.signal?.aborted)throw new h;let p=new AbortController,v=await this.fetchWithTimeout(a,i,s,p).catch(d),b=Date.now();if(v instanceof globalThis.Error){let e=`retrying, ${t} attempts remaining`;if(r.signal?.aborted)throw new h;let o=u(v)||/timed? ?out/i.test(String(v)+("cause"in v?String(v.cause):""));if(t)return ea(this).info(`[${l}] connection ${o?"timed out":"failed"} - ${e}`),ea(this).debug(`[${l}] connection ${o?"timed out":"failed"} (${e})`,es({retryOfRequestLogID:n,url:a,durationMs:b-f,message:v.message})),this.retryRequest(r,t,n??l);if(ea(this).info(`[${l}] connection ${o?"timed out":"failed"} - error; no more retries left`),ea(this).debug(`[${l}] connection ${o?"timed out":"failed"} (error; no more retries left)`,es({retryOfRequestLogID:n,url:a,durationMs:b-f,message:v.message})),o)throw new g;throw new m({cause:v})}let y=[...v.headers.entries()].filter(([e])=>"x-request-id"===e).map(([e,t])=>", "+e+": "+JSON.stringify(t)).join(""),w=`[${l}${c}${y}] ${i.method} ${a} ${v.ok?"succeeded":"failed"} with status ${v.status} in ${b-f}ms`;if(!v.ok){let e=await this.shouldRetry(v);if(t&&e){let e=`retrying, ${t} attempts remaining`;return await L(v.body),ea(this).info(`${w} - ${e}`),ea(this).debug(`[${l}] response error (${e})`,es({retryOfRequestLogID:n,url:v.url,status:v.status,headers:v.headers,durationMs:b-f})),this.retryRequest(r,t,n??l,v.headers)}let o=e?"error; no more retries left":"error; not retryable";ea(this).info(`${w} - ${o}`);let i=await v.text().catch(e=>d(e).message),a=(e=>{try{return JSON.parse(e)}catch(e){return}})(i),s=a?void 0:i;throw ea(this).debug(`[${l}] response error (${o})`,es({retryOfRequestLogID:n,url:v.url,status:v.status,headers:v.headers,message:s,durationMs:Date.now()-f})),this.makeStatusError(v.status,a,s,v.headers)}return ea(this).info(w),ea(this).debug(`[${l}] response start`,es({retryOfRequestLogID:n,url:v.url,status:v.status,headers:v.headers,durationMs:b-f})),{response:v,options:r,controller:p,requestLogID:l,retryOfRequestLogID:n,startTime:f}}getAPIList(e,t,n){return this.requestAPIList(t,{method:"get",path:e,...n})}requestAPIList(e,t){return new eg(this,this.makeRequest(t,null,void 0),e)}async fetchWithTimeout(e,t,n,r){let{signal:o,method:i,...a}=t||{};o&&o.addEventListener("abort",()=>r.abort());let s=setTimeout(()=>r.abort(),n),l=globalThis.ReadableStream&&a.body instanceof globalThis.ReadableStream||"object"==typeof a.body&&null!==a.body&&Symbol.asyncIterator in a.body,c={signal:r.signal,...l?{duplex:"half"}:{},method:"GET",...a};i&&(c.method=i.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,n,r){let o,i=r?.get("retry-after-ms");if(i){let e=parseFloat(i);Number.isNaN(e)||(o=e)}let a=r?.get("retry-after");if(a&&!o){let e=parseFloat(a);o=Number.isNaN(e)?Date.parse(a)-Date.now():1e3*e}if(!(o&&0<=o&&o<6e4)){let n=e.maxRetries??this.maxRetries;o=this.calculateDefaultRetryTimeoutMillis(t,n)}return await N(o),this.makeRequest(e,t-1,n)}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 n={...e},{method:r,path:o,query:i,defaultBaseURL:a}=n,s=this.buildURL(o,i,a);"timeout"in n&&((e,t)=>{if("number"!=typeof t||!Number.isInteger(t))throw new f(`${e} must be an integer`);if(t<0)throw new f(`${e} must be a positive integer`)})("timeout",n.timeout),n.timeout=n.timeout??this.timeout;let{bodyHeaders:l,body:c}=this.buildBody({options:n}),u=await this.buildHeaders({options:e,method:r,bodyHeaders:l,retryCount:t});return{req:{method:r,headers:u,...n.signal&&{signal:n.signal},...globalThis.ReadableStream&&c instanceof globalThis.ReadableStream&&{duplex:"half"},...c&&{body:c},...this.fetchOptions??{},...n.fetchOptions??{}},url:s,timeout:n.timeout}}async buildHeaders({options:e,method:t,bodyHeaders:n,retryCount:o}){let i={};this.idempotencyHeader&&"get"!==t&&(e.idempotencyKey||(e.idempotencyKey=this.defaultIdempotencyKey()),i[this.idempotencyHeader]=e.idempotencyKey);let a=e3([i,{Accept:"application/json","User-Agent":this.getUserAgent(),"X-Stainless-Retry-Count":String(o),...e.timeout?{"X-Stainless-Timeout":String(Math.trunc(e.timeout/1e3))}:{},...r??(r=(()=>{let e="undefined"!=typeof Deno&&null!=Deno.build?"deno":"undefined"!=typeof EdgeRuntime?"edge":"[object process]"===Object.prototype.toString.call(void 0!==globalThis.process?globalThis.process:0)?"node":"unknown";if("deno"===e)return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":"6.3.0","X-Stainless-OS":P(Deno.build.os),"X-Stainless-Arch":T(Deno.build.arch),"X-Stainless-Runtime":"deno","X-Stainless-Runtime-Version":"string"==typeof Deno.version?Deno.version:Deno.version?.deno??"unknown"};if("undefined"!=typeof EdgeRuntime)return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":"6.3.0","X-Stainless-OS":"Unknown","X-Stainless-Arch":`other:${EdgeRuntime}`,"X-Stainless-Runtime":"edge","X-Stainless-Runtime-Version":globalThis.process.version};if("node"===e)return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":"6.3.0","X-Stainless-OS":P(globalThis.process.platform??"unknown"),"X-Stainless-Arch":T(globalThis.process.arch??"unknown"),"X-Stainless-Runtime":"node","X-Stainless-Runtime-Version":globalThis.process.version??"unknown"};let t=function(){if("undefined"==typeof navigator||!navigator)return null;for(let{key:e,pattern:t}of[{key:"edge",pattern:/Edge(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"ie",pattern:/MSIE(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"ie",pattern:/Trident(?:.*rv\:(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"chrome",pattern:/Chrome(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"firefox",pattern:/Firefox(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"safari",pattern:/(?:Version\W+(\d+)\.(\d+)(?:\.(\d+))?)?(?:\W+Mobile\S*)?\W+Safari/}]){let n=t.exec(navigator.userAgent);if(n){let t=n[1]||0,r=n[2]||0,o=n[3]||0;return{browser:e,version:`${t}.${r}.${o}`}}}return null}();return t?{"X-Stainless-Lang":"js","X-Stainless-Package-Version":"6.3.0","X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":`browser:${t.browser}`,"X-Stainless-Runtime-Version":t.version}:{"X-Stainless-Lang":"js","X-Stainless-Package-Version":"6.3.0","X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":"unknown","X-Stainless-Runtime-Version":"unknown"}})()),"OpenAI-Organization":this.organization,"OpenAI-Project":this.project},await this.authHeaders(e),this._options.defaultHeaders,n,e.headers]);return this.validateHeaders(a),a.values}buildBody({options:{body:e,headers:t}}){if(!e)return{bodyHeaders:void 0,body:void 0};let n=e3([t]);return ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof DataView||"string"==typeof e&&n.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:z(e)}:l(this,nx,"f").call(this,{body:e,headers:n})}}nw=ra,nx=new WeakMap,ny=new WeakSet,nA=function(){return"https://api.openai.com/v1"!==this.baseURL},ra.OpenAI=nw,ra.DEFAULT_TIMEOUT=6e5,ra.OpenAIError=f,ra.APIError=p,ra.APIConnectionError=m,ra.APIConnectionTimeoutError=g,ra.APIUserAbortError=h,ra.NotFoundError=w,ra.ConflictError=x,ra.RateLimitError=E,ra.BadRequestError=v,ra.AuthenticationError=b,ra.InternalServerError=$,ra.PermissionDeniedError=y,ra.UnprocessableEntityError=A,ra.InvalidWebhookSignatureError=O,ra.toFile=ej,ra.Completions=n_,ra.Chat=e6,ra.Embeddings=nP,ra.Files=nL,ra.Images=nY,ra.Audio=te,ra.Moderations=nQ,ra.Models=nZ,ra.FineTuning=nG,ra.Graders=nK,ra.VectorStores=rn,ra.Webhooks=ri,ra.Beta=nk,ra.Batches=tt,ra.Uploads=n9,ra.Responses=n3,ra.Realtime=n1,ra.Conversations=nT,ra.Evals=nB,ra.Containers=nj,ra.Videos=rr,n(5409)},2644(e,t,n){"use strict";let r,o,i;n.d(t,{io:()=>ew});var a,s,l={};n.r(l),n.d(l,{Decoder:()=>ef,Encoder:()=>eu,PacketType:()=>s,protocol:()=>ec});let c=Object.create(null);c.open="0",c.close="1",c.ping="2",c.pong="3",c.message="4",c.upgrade="5",c.noop="6";let u=Object.create(null);Object.keys(c).forEach(e=>{u[c[e]]=e});let d={type:"error",data:"parser error"},f="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),p="function"==typeof ArrayBuffer,h=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,m=({type:e,data:t},n,r)=>{if(f&&t instanceof Blob)if(n)return r(t);else return g(t,r);if(p&&(t instanceof ArrayBuffer||h(t)))if(n)return r(t);else return g(new Blob([t]),r);return r(c[e]+(t||""))},g=(e,t)=>{let n=new FileReader;return n.onload=function(){t("b"+(n.result.split(",")[1]||""))},n.readAsDataURL(e)};function v(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<b.length;e++)y[b.charCodeAt(e)]=e;let w="function"==typeof ArrayBuffer,x=(e,t)=>{if("string"!=typeof e)return{type:"message",data:E(e,t)};let n=e.charAt(0);return"b"===n?{type:"message",data:A(e.substring(1),t)}:u[n]?e.length>1?{type:u[n],data:e.substring(1)}:{type:u[n]}:d},A=(e,t)=>w?E((e=>{let t=.75*e.length,n=e.length,r,o=0,i,a,s,l;"="===e[e.length-1]&&(t--,"="===e[e.length-2]&&t--);let c=new ArrayBuffer(t),u=new Uint8Array(c);for(r=0;r<n;r+=4)i=y[e.charCodeAt(r)],a=y[e.charCodeAt(r+1)],s=y[e.charCodeAt(r+2)],l=y[e.charCodeAt(r+3)],u[o++]=i<<2|a>>4,u[o++]=(15&a)<<4|s>>2,u[o++]=(3&s)<<6|63&l;return c})(e),t):{base64:!0,data:e},E=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer;function $(e){return e.reduce((e,t)=>e+t.length,0)}function S(e,t){if(e[0].length===t)return e.shift();let n=new Uint8Array(t),r=0;for(let o=0;o<t;o++)n[o]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function C(e){if(e){var t=e;for(var n in C.prototype)t[n]=C.prototype[n];return t}}C.prototype.on=C.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},C.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},C.prototype.off=C.prototype.removeListener=C.prototype.removeAllListeners=C.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},C.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,t)}return this},C.prototype.emitReserved=C.prototype.emit,C.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},C.prototype.hasListeners=function(e){return!!this.listeners(e).length};let O="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),k="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function _(e,...t){return t.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{})}let I=k.setTimeout,R=k.clearTimeout;function j(e,t){t.useNativeTimers?(e.setTimeoutFn=I.bind(k),e.clearTimeoutFn=R.bind(k)):(e.setTimeoutFn=k.setTimeout.bind(k),e.clearTimeoutFn=k.clearTimeout.bind(k))}function N(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}class T extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type="TransportError"}}class P extends C{constructor(e){super(),this.writable=!1,j(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,n){return super.emitReserved("error",new T(e,t,n)),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&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){let t=function(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}(e);return t.length?"?"+t:""}}class M extends P{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,t)=>{let n=e.split("\x1e"),r=[];for(let e=0;e<n.length;e++){let o=x(n[e],t);if(r.push(o),"error"===o.type)break}return r})(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){var t;let n,r,o;this.writable=!1,t=e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})},r=Array(n=e.length),o=0,e.forEach((e,i)=>{m(e,!1,e=>{r[i]=e,++o===n&&t(r.join("\x1e"))})})}uri(){let e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=N()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}}let z=!1;try{z="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}let B=z;function L(){}class F extends M{constructor(e){if(super(e),"undefined"!=typeof location){const t="https:"===location.protocol;let n=location.port;n||(n=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||n!==e.port}}doWrite(e,t){let n=this.request({method:"POST",data:e});n.on("success",t),n.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 D extends C{constructor(e,t,n){super(),this.createRequest=e,j(this,n),this._opts=n,this._method=n.method||"GET",this._uri=t,this._data=void 0!==n.data?n.data:null,this._create()}_create(){var e;let t=_(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;let n=this._xhr=this.createRequest(t);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders)for(let e in n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0),this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(e)&&n.setRequestHeader(e,this._opts.extraHeaders[e])}catch(e){}if("POST"===this._method)try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{n.setRequestHeader("Accept","*/*")}catch(e){}null==(e=this._opts.cookieJar)||e.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var e;3===n.readyState&&(null==(e=this._opts.cookieJar)||e.parseCookies(n.getResponseHeader("set-cookie"))),4===n.readyState&&(200===n.status||1223===n.status?this._onLoad():this.setTimeoutFn(()=>{this._onError("number"==typeof n.status?n.status:0)},0))},n.send(this._data)}catch(e){this.setTimeoutFn(()=>{this._onError(e)},0);return}"undefined"!=typeof document&&(this._index=D.requestsCount++,D.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=L,e)try{this._xhr.abort()}catch(e){}"undefined"!=typeof document&&delete D.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 H(){for(let e in D.requests)D.requests.hasOwnProperty(e)&&D.requests[e].abort()}D.requestsCount=0,D.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",H):"function"==typeof addEventListener&&addEventListener("onpagehide"in k?"pagehide":"unload",H,!1));let W=(i=U({xdomain:!1}))&&null!==i.responseType;function U(e){let t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||B))return new XMLHttpRequest}catch(e){}if(!t)try{return new k[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(e){}}let q="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class V extends P{get name(){return"websocket"}doOpen(){let e=this.uri(),t=this.opts.protocols,n=q?{}:_(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,n)}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 n=e[t],r=t===e.length-1;m(n,this.supportsBinary,e=>{try{this.doWrite(n,e)}catch(e){}r&&O(()=>{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]=N()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}let G=k.WebSocket||k.MozWebSocket,X={websocket:class extends V{createSocket(e,t,n){return q?new G(e,t,n):t?new G(e,t):new G(e)}doWrite(e,t){this.ws.send(t)}},webtransport:class extends P{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=>{var t,n;let i,a,s,l,c=(t=Number.MAX_SAFE_INTEGER,n=this.socket.binaryType,o||(o=new TextDecoder),i=[],a=0,s=-1,l=!1,new TransformStream({transform(e,r){for(i.push(e);;){if(0===a){if(1>$(i))break;let e=S(i,1);l=(128&e[0])==128,a=(s=127&e[0])<126?3:126===s?1:2}else if(1===a){if(2>$(i))break;let e=S(i,2);s=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),a=3}else if(2===a){if(8>$(i))break;let e=S(i,8),t=new DataView(e.buffer,e.byteOffset,e.length),n=t.getUint32(0);if(n>2097151){r.enqueue(d);break}s=0x100000000*n+t.getUint32(4),a=3}else{if($(i)<s)break;let e=S(i,s);r.enqueue(x(l?e:o.decode(e),n)),a=0}if(0===s||s>t){r.enqueue(d);break}}}})),u=e.readable.pipeThrough(c).getReader(),g=new TransformStream({transform(e,t){var n;n=n=>{let r,o=n.length;if(o<126)new DataView((r=new Uint8Array(1)).buffer).setUint8(0,o);else if(o<65536){let e=new DataView((r=new Uint8Array(3)).buffer);e.setUint8(0,126),e.setUint16(1,o)}else{let e=new DataView((r=new Uint8Array(9)).buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(o))}e.data&&"string"!=typeof e.data&&(r[0]|=128),t.enqueue(r),t.enqueue(n)},f&&e.data instanceof Blob?e.data.arrayBuffer().then(v).then(n):p&&(e.data instanceof ArrayBuffer||h(e.data))?n(v(e.data)):m(e,!1,e=>{r||(r=new TextEncoder),n(r.encode(e))})}});g.readable.pipeTo(e.writable),this._writer=g.writable.getWriter();let b=()=>{u.read().then(({done:e,value:t})=>{e||(this.onPacket(t),b())}).catch(e=>{})};b();let y={type:"open"};this.query.sid&&(y.data=`{"sid":"${this.query.sid}"}`),this._writer.write(y).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let n=e[t],r=t===e.length-1;this._writer.write(n).then(()=>{r&&O(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;null==(e=this._transport)||e.close()}},polling:class extends F{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=W&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new D(U,this.uri(),e)}}},K=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Y=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Z(e){var t,n;let r,o;if(e.length>8e3)throw"URI too long";let i=e,a=e.indexOf("["),s=e.indexOf("]");-1!=a&&-1!=s&&(e=e.substring(0,a)+e.substring(a,s).replace(/:/g,";")+e.substring(s,e.length));let l=K.exec(e||""),c={},u=14;for(;u--;)c[Y[u]]=l[u]||"";return -1!=a&&-1!=s&&(c.source=i,c.host=c.host.substring(1,c.host.length-1).replace(/;/g,":"),c.authority=c.authority.replace("[","").replace("]","").replace(/;/g,":"),c.ipv6uri=!0),r=(t=c.path).replace(/\/{2,9}/g,"/").split("/"),("/"==t.slice(0,1)||0===t.length)&&r.splice(0,1),"/"==t.slice(-1)&&r.splice(r.length-1,1),c.pathNames=r,n=c.query,o={},n.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,n){t&&(o[t]=n)}),c.queryKey=o,c}let Q="function"==typeof addEventListener&&"function"==typeof removeEventListener,J=[];Q&&addEventListener("offline",()=>{J.forEach(e=>e())},!1);class ee extends C{constructor(e,t){if(super(),this.binaryType="arraybuffer",this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&"object"==typeof e&&(t=e,e=null),e){const n=Z(e);t.hostname=n.host,t.secure="https"===n.protocol||"wss"===n.protocol,t.port=n.port,n.query&&(t.query=n.query)}else t.host&&(t.hostname=Z(t.host).host);j(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach(e=>{let t=e.prototype.name;this.transports.push(t),this._transportsByName[t]=e}),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=function(e){let t={},n=e.split("&");for(let e=0,r=n.length;e<r;e++){let r=n[e].split("=");t[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return t}(this.opts.query)),Q&&(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"})},J.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);let n=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](n)}_open(){if(0===this.transports.length)return void this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);let e=this.opts.rememberUpgrade&&ee.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))}onOpen(){this.readyState="open",ee.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush()}_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._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 n=this.writeBuffer[t].data;if(n&&(e+="string"==typeof n?function(e){let t=0,n=0;for(let r=0,o=e.length;r<o;r++)(t=e.charCodeAt(r))<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}(n):Math.ceil(1.33*(n.byteLength||n.size))),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,O(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,n){return this._sendPacket("message",e,t,n),this}send(e,t,n){return this._sendPacket("message",e,t,n),this}_sendPacket(e,t,n,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof n&&(r=n,n=null),"closing"===this.readyState||"closed"===this.readyState)return;(n=n||{}).compress=!1!==n.compress;let o={type:e,data:t,options:n};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),r&&this.once("flush",r),this.flush()}close(){let e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},n=()=>{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?n():e()}):this.upgrading?n():e()),this}_onError(e){if(ee.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(),Q&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let e=J.indexOf(this._offlineEventListener);-1!==e&&J.splice(e,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}ee.protocol=4;class et extends ee{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),"open"===this.readyState&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),n=!1;ee.priorWebsocketSuccess=!1;let r=()=>{n||(t.send([{type:"ping",data:"probe"}]),t.once("packet",e=>{if(!n)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;ee.priorWebsocketSuccess="websocket"===t.name,this.transport.pause(()=>{n||"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 o(){n||(n=!0,c(),t.close(),t=null)}let i=e=>{let n=Error("probe error: "+e);n.transport=t.name,o(),this.emitReserved("upgradeError",n)};function a(){i("transport closed")}function s(){i("socket closed")}function l(e){t&&e.name!==t.name&&o()}let c=()=>{t.removeListener("open",r),t.removeListener("error",i),t.removeListener("close",a),this.off("close",s),this.off("upgrading",l)};t.once("open",r),t.once("error",i),t.once("close",a),this.once("close",s),this.once("upgrading",l),-1!==this._upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn(()=>{n||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let t=[];for(let n=0;n<e.length;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}}class en extends et{constructor(e,t={}){const n="object"==typeof e?e:t;(!n.transports||n.transports&&"string"==typeof n.transports[0])&&(n.transports=(n.transports||["polling","websocket","webtransport"]).map(e=>X[e]).filter(e=>!!e)),super(e,n)}}en.protocol;let er="function"==typeof ArrayBuffer,eo=Object.prototype.toString,ei="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===eo.call(Blob),ea="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===eo.call(File);function es(e){return er&&(e instanceof ArrayBuffer||("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer))||ei&&e instanceof Blob||ea&&e instanceof File}let el=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],ec=5;(a=s||(s={}))[a.CONNECT=0]="CONNECT",a[a.DISCONNECT=1]="DISCONNECT",a[a.EVENT=2]="EVENT",a[a.ACK=3]="ACK",a[a.CONNECT_ERROR=4]="CONNECT_ERROR",a[a.BINARY_EVENT=5]="BINARY_EVENT",a[a.BINARY_ACK=6]="BINARY_ACK";class eu{constructor(e){this.replacer=e}encode(e){return(e.type===s.EVENT||e.type===s.ACK)&&function e(t,n){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let n=0,r=t.length;n<r;n++)if(e(t[n]))return!0;return!1}if(es(t))return!0;if(t.toJSON&&"function"==typeof t.toJSON&&1==arguments.length)return e(t.toJSON(),!0);for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return!0;return!1}(e)?this.encodeAsBinary({type:e.type===s.EVENT?s.BINARY_EVENT:s.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===s.BINARY_EVENT||e.type===s.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,n,r=(t=[],n=e.data,e.data=function e(t,n){if(!t)return t;if(es(t)){let e={_placeholder:!0,num:n.length};return n.push(t),e}if(Array.isArray(t)){let r=Array(t.length);for(let o=0;o<t.length;o++)r[o]=e(t[o],n);return r}if("object"==typeof t&&!(t instanceof Date)){let r={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=e(t[o],n));return r}return t}(n,t),e.attachments=t.length,{packet:e,buffers:t}),o=this.encodeAsString(r.packet),i=r.buffers;return i.unshift(o),i}}function ed(e){return"[object Object]"===Object.prototype.toString.call(e)}class ef extends C{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw Error("got plaintext data when reconstructing a packet");let n=(t=this.decodeString(e)).type===s.BINARY_EVENT;n||t.type===s.BINARY_ACK?(t.type=n?s.EVENT:s.ACK,this.reconstructor=new ep(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if(es(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,n={type:Number(e.charAt(0))};if(void 0===s[n.type])throw Error("unknown packet type "+n.type);if(n.type===s.BINARY_EVENT||n.type===s.BINARY_ACK){let r=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);let o=e.substring(r,t);if(o!=Number(o)||"-"!==e.charAt(t))throw Error("Illegal attachments");n.attachments=Number(o)}if("/"===e.charAt(t+1)){let r=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);n.nsp=e.substring(r,t)}else n.nsp="/";let r=e.charAt(t+1);if(""!==r&&Number(r)==r){let r=t+1;for(;++t;){let n=e.charAt(t);if(null==n||Number(n)!=n){--t;break}if(t===e.length)break}n.id=Number(e.substring(r,t+1))}if(e.charAt(++t)){let r=this.tryParse(e.substr(t));if(ef.isPayloadValid(n.type,r))n.data=r;else throw Error("invalid payload")}return n}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(e){return!1}}static isPayloadValid(e,t){switch(e){case s.CONNECT:return ed(t);case s.DISCONNECT:return void 0===t;case s.CONNECT_ERROR:return"string"==typeof t||ed(t);case s.EVENT:case s.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===el.indexOf(t[0]));case s.ACK:case s.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){var t,n;let e=(t=this.reconPack,n=this.buffers,t.data=function e(t,n){if(!t)return t;if(t&&!0===t._placeholder){if("number"==typeof t.num&&t.num>=0&&t.num<n.length)return n[t.num];throw Error("illegal attachments")}if(Array.isArray(t))for(let r=0;r<t.length;r++)t[r]=e(t[r],n);else if("object"==typeof t)for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=e(t[r],n));return t}(t.data,n),delete t.attachments,t);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function eh(e,t,n){return e.on(t,n),function(){e.off(t,n)}}let em=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class eg extends C{constructor(e,t,n){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,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[eh(e,"open",this.onopen.bind(this)),eh(e,"packet",this.onpacket.bind(this)),eh(e,"error",this.onerror.bind(this)),eh(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 n,r,o;if(em.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 i={type:s.EVENT,data:t};if(i.options={},i.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){let e=this.ids++,n=t.pop();this._registerAckCallback(e,n),i.id=e}let a=null==(r=null==(n=this.io.engine)?void 0:n.transport)?void 0:r.writable,l=this.connected&&!(null==(o=this.io.engine)?void 0:o._hasPingExpired());return this.flags.volatile&&!a||(l?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(e,t){var n;let r=null!=(n=this.flags.timeout)?n:this._opts.ackTimeout;if(void 0===r){this.acks[e]=t;return}let o=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"))},r),i=(...e)=>{this.io.clearTimeoutFn(o),t.apply(this,e)};i.withError=!0,this.acks[e]=i}emitWithAck(e,...t){return new Promise((n,r)=>{let o=(e,t)=>e?r(e):n(t);o.withError=!0,t.push(o),this.emit(e,...t)})}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...r)=>{if(n===this._queue[0])return null!==e?n.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...r)),n.pending=!1,this._drainQueue()}),this._queue.push(n),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:s.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 s.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 s.EVENT:case s.BINARY_EVENT:this.onevent(e);break;case s.ACK:case s.BINARY_ACK:this.onack(e);break;case s.DISCONNECT:this.ondisconnect();break;case s.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,n=!1;return function(...r){n||(n=!0,t.packet({type:s.ACK,id:e,data:r}))}}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.emitReserved("connect"),this._drainQueue(!0)}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:s.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 n=0;n<t.length;n++)if(e===t[n]){t.splice(n,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 n=0;n<t.length;n++)if(e===t[n]){t.splice(n,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(),n=Math.floor(t*this.jitter*e);e=(1&Math.floor(10*t))==0?e-n:e+n}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 eb extends C{constructor(e,t){var n;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,j(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!=(n=t.randomizationFactor)?n:.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 r=t.parser||l;this.encoder=new r.Encoder,this.decoder=new r.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 en(this.uri,this.opts);let t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;let r=eh(t,"open",function(){n.onopen(),e&&e()}),o=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},i=eh(t,"error",o);if(!1!==this._timeout){let e=this._timeout,n=this.setTimeoutFn(()=>{r(),o(Error("timeout")),t.close()},e);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}return this.subs.push(r),this.subs.push(i),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(eh(e,"ping",this.onping.bind(this)),eh(e,"data",this.ondata.bind(this)),eh(e,"error",this.onerror.bind(this)),eh(e,"close",this.onclose.bind(this)),eh(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){O(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new eg(this,e,t),this.nsps[e]=n),n}_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 n=0;n<t.length;n++)this.engine.write(t[n],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 n;this.cleanup(),null==(n=this.engine)||n.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 n=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&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}let ey={};function ew(e,t){let n;"object"==typeof e&&(t=e,e=void 0);let r=function(e,t="",n){let r=e;n=n||"undefined"!=typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==n?n.protocol+"//"+e:"https://"+e),r=Z(e)),!r.port&&(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";let o=-1!==r.host.indexOf(":")?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+o+":"+r.port+t,r.href=r.protocol+"://"+o+(n&&n.port===r.port?"":":"+r.port),r}(e,(t=t||{}).path||"/socket.io"),o=r.source,i=r.id,a=r.path,s=ey[i]&&a in ey[i].nsps;return t.forceNew||t["force new connection"]||!1===t.multiplex||s?n=new eb(o,t):(ey[i]||(ey[i]=new eb(o,t)),n=ey[i]),r.query&&!t.query&&(t.query=r.queryKey),n.socket(r.path,t)}Object.assign(ew,{Manager:eb,Socket:eg,io:ew,connect:ew})},3961(e,t,n){"use strict";let r;n.d(t,{A:()=>s});let o="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),i=new Uint8Array(16),a=[];for(let e=0;e<256;++e)a.push((e+256).toString(16).slice(1));let s=function(e,t,n){if(o&&!t&&!e)return o();let s=(e=e||{}).random??e.rng?.()??function(){if(!r){if("undefined"==typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");r=crypto.getRandomValues.bind(crypto)}return r(i)}();if(s.length<16)throw Error("Random bytes length must be >= 16");if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){if((n=n||0)<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=s[e];return t}return function(e,t=0){return(a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]).toLowerCase()}(s)}},6244(e,t,n){"use strict";let r;n.d(t,{z:()=>tf}),(tr=ta||(ta={})).assertEqual=e=>e,tr.assertIs=function(e){},tr.assertNever=function(e){throw Error()},tr.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},tr.getValidEnumValues=e=>{let t=tr.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),n={};for(let r of t)n[r]=e[r];return tr.objectValues(n)},tr.objectValues=e=>tr.objectKeys(e).map(function(t){return e[t]}),tr.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},tr.find=(e,t)=>{for(let n of e)if(t(n))return n},tr.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,tr.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},tr.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(ts||(ts={})).mergeShapes=(e,t)=>({...e,...t});let o=ta.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),i=e=>{switch(typeof e){case"undefined":return o.undefined;case"string":return o.string;case"number":return 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("undefined"!=typeof Map&&e instanceof Map)return o.map;if("undefined"!=typeof Set&&e instanceof Set)return o.set;if("undefined"!=typeof Date&&e instanceof Date)return o.date;return o.object;default:return o.unknown}},a=ta.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 s 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},n={_errors:[]},r=e=>{for(let o of e.issues)if("invalid_union"===o.code)o.unionErrors.map(r);else if("invalid_return_type"===o.code)r(o.returnTypeError);else if("invalid_arguments"===o.code)r(o.argumentsError);else if(0===o.path.length)n._errors.push(t(o));else{let e=n,r=0;for(;r<o.path.length;){let n=o.path[r];r===o.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(o))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}static assert(e){if(!(e instanceof s))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ta.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},n=[];for(let r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}s.create=e=>new s(e);let l=(e,t)=>{let n;switch(e.code){case a.invalid_type:n=e.received===o.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case a.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,ta.jsonStringifyReplacer)}`;break;case a.unrecognized_keys:n=`Unrecognized key(s) in object: ${ta.joinValues(e.keys,", ")}`;break;case a.invalid_union:n="Invalid input";break;case a.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ta.joinValues(e.options)}`;break;case a.invalid_enum_value:n=`Invalid enum value. Expected ${ta.joinValues(e.options)}, received '${e.received}'`;break;case a.invalid_arguments:n="Invalid function arguments";break;case a.invalid_return_type:n="Invalid function return type";break;case a.invalid_date:n="Invalid date";break;case a.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:ta.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case a.too_small:n="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?`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.too_big:n="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.custom:n="Invalid input";break;case a.invalid_intersection_types:n="Intersection results could not be merged";break;case a.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case a.not_finite:n="Number must be finite";break;default:n=t.defaultError,ta.assertNever(e)}return{message:n}},c=l;function u(){return c}let d=e=>{let{data:t,path:n,errorMaps:r,issueData:o}=e,i=[...n,...o.path||[]],a={...o,path:i};if(void 0!==o.message)return{...o,path:i,message:o.message};let s="";for(let e of r.filter(e=>!!e).slice().reverse())s=e(a,{data:t,defaultError:s}).message;return{...o,path:i,message:s}};function f(e,t){let n=u(),r=d({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===l?void 0:l].filter(e=>!!e)});e.common.issues.push(r)}class p{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let n=[];for(let r of t){if("aborted"===r.status)return h;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){let n=[];for(let e of t){let t=await e.key,r=await e.value;n.push({key:t,value:r})}return p.mergeObjectSync(e,n)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:t,value:o}=r;if("aborted"===t.status||"aborted"===o.status)return h;"dirty"===t.status&&e.dirty(),"dirty"===o.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==o.value||r.alwaysSet)&&(n[t.value]=o.value)}return{status:e.value,value:n}}}let h=Object.freeze({status:"aborted"}),m=e=>({status:"dirty",value:e}),g=e=>({status:"valid",value:e}),v=e=>"aborted"===e.status,b=e=>"dirty"===e.status,y=e=>"valid"===e.status,w=e=>"undefined"!=typeof Promise&&e instanceof Promise;function x(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function A(e,t,n,r,o){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!o)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n}"function"==typeof SuppressedError&&SuppressedError,(to=tl||(tl={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},to.toString=e=>"string"==typeof e?e:null==e?void 0:e.message;class E{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let $=(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 s(e.common.issues);return this._error=t,this._error}}};function S(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:o}=e;if(t&&(n||r))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:o}:{errorMap:(t,o)=>{var i,a;let{message:s}=e;return"invalid_enum_value"===t.code?{message:null!=s?s:o.defaultError}:void 0===o.data?{message:null!=(i=null!=s?s:r)?i:o.defaultError}:"invalid_type"!==t.code?{message:o.defaultError}:{message:null!=(a=null!=s?s:n)?a:o.defaultError}},description:o}}class C{get description(){return this._def.description}_getType(e){return i(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:i(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new p,ctx:{common:e.parent.common,data:e.data,parsedType:i(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 n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;let r={common:{issues:[],async:null!=(n=null==t?void 0:t.async)&&n,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:i(e)},o=this._parseSync({data:e,path:r.path,parent:r});return $(r,o)}"~validate"(e){var t,n;let r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:i(e)};if(!this["~standard"].async)try{let t=this._parseSync({data:e,path:[],parent:r});return y(t)?{value:t.value}:{issues:r.common.issues}}catch(e){(null==(n=null==(t=null==e?void 0:e.message)?void 0:t.toLowerCase())?void 0:n.includes("encountered"))&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:r}).then(e=>y(e)?{value:e.value}:{issues:r.common.issues})}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:i(e)},r=this._parse({data:e,path:n.path,parent:n});return $(n,await (w(r)?r:Promise.resolve(r)))}refine(e,t){return this._refinement((n,r)=>{let o=e(n),i=()=>r.addIssue({code:a.custom,..."string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(n):t});return"undefined"!=typeof Promise&&o instanceof Promise?o.then(e=>!!e||(i(),!1)):!!o||(i(),!1)})}refinement(e,t){return this._refinement((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1))}_refinement(e){return new ew({schema:this,typeName:td.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 ex.create(this,this._def)}nullable(){return eA.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return er.create(this)}promise(){return ey.create(this,this._def)}or(e){return ei.create([this,e],this._def)}and(e){return el.create(this,e,this._def)}transform(e){return new ew({...S(this._def),schema:this,typeName:td.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new eE({...S(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:td.ZodDefault})}brand(){return new eO({typeName:td.ZodBranded,type:this,...S(this._def)})}catch(e){return new e$({...S(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:td.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return ek.create(this,e)}readonly(){return e_.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let O=/^c[^\s-]{8,}$/i,k=/^[0-9a-z]+$/,_=/^[0-9A-HJKMNP-TV-Z]{26}$/i,I=/^[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,R=/^[a-z0-9_-]{21}$/i,j=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,N=/^[-+]?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)?)??$/,T=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,P=/^(?:(?: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])$/,M=/^(?:(?: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])$/,z=/^(([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])$/,L=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,F=/^([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])))",H=RegExp(`^${D}$`);function W(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),t}function U(e){let t=`${D}T${W(e)}`,n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,RegExp(`^${t}$`)}class q extends C{_parse(e){var t,n,i,s;let l;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==o.string){let t=this._getOrReturnCtx(e);return f(t,{code:a.invalid_type,expected:o.string,received:t.parsedType}),h}let c=new p;for(let o of this._def.checks)if("min"===o.kind)e.data.length<o.value&&(f(l=this._getOrReturnCtx(e,l),{code:a.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),c.dirty());else if("max"===o.kind)e.data.length>o.value&&(f(l=this._getOrReturnCtx(e,l),{code:a.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),c.dirty());else if("length"===o.kind){let t=e.data.length>o.value,n=e.data.length<o.value;(t||n)&&(l=this._getOrReturnCtx(e,l),t?f(l,{code:a.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):n&&f(l,{code:a.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),c.dirty())}else if("email"===o.kind)T.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{validation:"email",code:a.invalid_string,message:o.message}),c.dirty());else if("emoji"===o.kind)r||(r=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),r.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{validation:"emoji",code:a.invalid_string,message:o.message}),c.dirty());else if("uuid"===o.kind)I.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{validation:"uuid",code:a.invalid_string,message:o.message}),c.dirty());else if("nanoid"===o.kind)R.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{validation:"nanoid",code:a.invalid_string,message:o.message}),c.dirty());else if("cuid"===o.kind)O.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{validation:"cuid",code:a.invalid_string,message:o.message}),c.dirty());else if("cuid2"===o.kind)k.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{validation:"cuid2",code:a.invalid_string,message:o.message}),c.dirty());else if("ulid"===o.kind)_.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{validation:"ulid",code:a.invalid_string,message:o.message}),c.dirty());else if("url"===o.kind)try{new URL(e.data)}catch(t){f(l=this._getOrReturnCtx(e,l),{validation:"url",code:a.invalid_string,message:o.message}),c.dirty()}else"regex"===o.kind?(o.regex.lastIndex=0,o.regex.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{validation:"regex",code:a.invalid_string,message:o.message}),c.dirty())):"trim"===o.kind?e.data=e.data.trim():"includes"===o.kind?e.data.includes(o.value,o.position)||(f(l=this._getOrReturnCtx(e,l),{code:a.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),c.dirty()):"toLowerCase"===o.kind?e.data=e.data.toLowerCase():"toUpperCase"===o.kind?e.data=e.data.toUpperCase():"startsWith"===o.kind?e.data.startsWith(o.value)||(f(l=this._getOrReturnCtx(e,l),{code:a.invalid_string,validation:{startsWith:o.value},message:o.message}),c.dirty()):"endsWith"===o.kind?e.data.endsWith(o.value)||(f(l=this._getOrReturnCtx(e,l),{code:a.invalid_string,validation:{endsWith:o.value},message:o.message}),c.dirty()):"datetime"===o.kind?U(o).test(e.data)||(f(l=this._getOrReturnCtx(e,l),{code:a.invalid_string,validation:"datetime",message:o.message}),c.dirty()):"date"===o.kind?H.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{code:a.invalid_string,validation:"date",message:o.message}),c.dirty()):"time"===o.kind?RegExp(`^${W(o)}$`).test(e.data)||(f(l=this._getOrReturnCtx(e,l),{code:a.invalid_string,validation:"time",message:o.message}),c.dirty()):"duration"===o.kind?N.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{validation:"duration",code:a.invalid_string,message:o.message}),c.dirty()):"ip"===o.kind?(t=e.data,!(("v4"===(n=o.version)||!n)&&P.test(t)||("v6"===n||!n)&&z.test(t))&&1&&(f(l=this._getOrReturnCtx(e,l),{validation:"ip",code:a.invalid_string,message:o.message}),c.dirty())):"jwt"===o.kind?!function(e,t){if(!j.test(e))return!1;try{let[n]=e.split("."),r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),o=JSON.parse(atob(r));if("object"!=typeof o||null===o||!o.typ||!o.alg||t&&o.alg!==t)return!1;return!0}catch(e){return!1}}(e.data,o.alg)&&(f(l=this._getOrReturnCtx(e,l),{validation:"jwt",code:a.invalid_string,message:o.message}),c.dirty()):"cidr"===o.kind?(i=e.data,!(("v4"===(s=o.version)||!s)&&M.test(i)||("v6"===s||!s)&&B.test(i))&&1&&(f(l=this._getOrReturnCtx(e,l),{validation:"cidr",code:a.invalid_string,message:o.message}),c.dirty())):"base64"===o.kind?L.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{validation:"base64",code:a.invalid_string,message:o.message}),c.dirty()):"base64url"===o.kind?F.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{validation:"base64url",code:a.invalid_string,message:o.message}),c.dirty()):ta.assertNever(o);return{status:c.value,value:e.data}}_regex(e,t,n){return this.refinement(t=>e.test(t),{validation:t,code:a.invalid_string,...tl.errToObj(n)})}_addCheck(e){return new q({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...tl.errToObj(e)})}url(e){return this._addCheck({kind:"url",...tl.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...tl.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...tl.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...tl.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...tl.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...tl.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...tl.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...tl.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...tl.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...tl.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...tl.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...tl.errToObj(e)})}datetime(e){var t,n;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!=(t=null==e?void 0:e.offset)&&t,local:null!=(n=null==e?void 0:e.local)&&n,...tl.errToObj(null==e?void 0: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===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,...tl.errToObj(null==e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...tl.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...tl.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...tl.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...tl.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...tl.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...tl.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...tl.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...tl.errToObj(t)})}nonempty(e){return this.min(1,tl.errToObj(e))}trim(){return new q({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new q({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new q({...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}}q.create=e=>{var t;return new q({checks:[],typeName:td.ZodString,coerce:null!=(t=null==e?void 0:e.coerce)&&t,...S(e)})};class V extends C{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)!==o.number){let t=this._getOrReturnCtx(e);return f(t,{code:a.invalid_type,expected:o.number,received:t.parsedType}),h}let n=new p;for(let r of this._def.checks)"int"===r.kind?ta.isInteger(e.data)||(f(t=this._getOrReturnCtx(e,t),{code:a.invalid_type,expected:"integer",received:"float",message:r.message}),n.dirty()):"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(f(t=this._getOrReturnCtx(e,t),{code:a.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(f(t=this._getOrReturnCtx(e,t),{code:a.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):"multipleOf"===r.kind?0!==function(e,t){let n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,o=n>r?n:r;return parseInt(e.toFixed(o).replace(".",""))%parseInt(t.toFixed(o).replace(".",""))/Math.pow(10,o)}(e.data,r.value)&&(f(t=this._getOrReturnCtx(e,t),{code:a.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):"finite"===r.kind?Number.isFinite(e.data)||(f(t=this._getOrReturnCtx(e,t),{code:a.not_finite,message:r.message}),n.dirty()):ta.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,tl.toString(t))}gt(e,t){return this.setLimit("min",e,!1,tl.toString(t))}lte(e,t){return this.setLimit("max",e,!0,tl.toString(t))}lt(e,t){return this.setLimit("max",e,!1,tl.toString(t))}setLimit(e,t,n,r){return new V({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:tl.toString(r)}]})}_addCheck(e){return new V({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:tl.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:tl.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:tl.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:tl.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:tl.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:tl.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:tl.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:tl.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:tl.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&&ta.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks)if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;else"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value);return Number.isFinite(t)&&Number.isFinite(e)}}V.create=e=>new V({checks:[],typeName:td.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...S(e)});class G extends C{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(t){return this._getInvalidInput(e)}if(this._getType(e)!==o.bigint)return this._getInvalidInput(e);let n=new p;for(let r of this._def.checks)"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(f(t=this._getOrReturnCtx(e,t),{code:a.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(f(t=this._getOrReturnCtx(e,t),{code:a.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):"multipleOf"===r.kind?e.data%r.value!==BigInt(0)&&(f(t=this._getOrReturnCtx(e,t),{code:a.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):ta.assertNever(r);return{status:n.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return f(t,{code:a.invalid_type,expected:o.bigint,received:t.parsedType}),h}gte(e,t){return this.setLimit("min",e,!0,tl.toString(t))}gt(e,t){return this.setLimit("min",e,!1,tl.toString(t))}lte(e,t){return this.setLimit("max",e,!0,tl.toString(t))}lt(e,t){return this.setLimit("max",e,!1,tl.toString(t))}setLimit(e,t,n,r){return new G({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:tl.toString(r)}]})}_addCheck(e){return new G({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:tl.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:tl.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:tl.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:tl.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:tl.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}}G.create=e=>{var t;return new G({checks:[],typeName:td.ZodBigInt,coerce:null!=(t=null==e?void 0:e.coerce)&&t,...S(e)})};class X extends C{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==o.boolean){let t=this._getOrReturnCtx(e);return f(t,{code:a.invalid_type,expected:o.boolean,received:t.parsedType}),h}return g(e.data)}}X.create=e=>new X({typeName:td.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...S(e)});class K extends C{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==o.date){let t=this._getOrReturnCtx(e);return f(t,{code:a.invalid_type,expected:o.date,received:t.parsedType}),h}if(isNaN(e.data.getTime()))return f(this._getOrReturnCtx(e),{code:a.invalid_date}),h;let n=new p;for(let r of this._def.checks)"min"===r.kind?e.data.getTime()<r.value&&(f(t=this._getOrReturnCtx(e,t),{code:a.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:"date"}),n.dirty()):"max"===r.kind?e.data.getTime()>r.value&&(f(t=this._getOrReturnCtx(e,t),{code:a.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),n.dirty()):ta.assertNever(r);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new K({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:tl.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:tl.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}}K.create=e=>new K({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:td.ZodDate,...S(e)});class Y extends C{_parse(e){if(this._getType(e)!==o.symbol){let t=this._getOrReturnCtx(e);return f(t,{code:a.invalid_type,expected:o.symbol,received:t.parsedType}),h}return g(e.data)}}Y.create=e=>new Y({typeName:td.ZodSymbol,...S(e)});class Z extends C{_parse(e){if(this._getType(e)!==o.undefined){let t=this._getOrReturnCtx(e);return f(t,{code:a.invalid_type,expected:o.undefined,received:t.parsedType}),h}return g(e.data)}}Z.create=e=>new Z({typeName:td.ZodUndefined,...S(e)});class Q extends C{_parse(e){if(this._getType(e)!==o.null){let t=this._getOrReturnCtx(e);return f(t,{code:a.invalid_type,expected:o.null,received:t.parsedType}),h}return g(e.data)}}Q.create=e=>new Q({typeName:td.ZodNull,...S(e)});class J extends C{constructor(){super(...arguments),this._any=!0}_parse(e){return g(e.data)}}J.create=e=>new J({typeName:td.ZodAny,...S(e)});class ee extends C{constructor(){super(...arguments),this._unknown=!0}_parse(e){return g(e.data)}}ee.create=e=>new ee({typeName:td.ZodUnknown,...S(e)});class et extends C{_parse(e){let t=this._getOrReturnCtx(e);return f(t,{code:a.invalid_type,expected:o.never,received:t.parsedType}),h}}et.create=e=>new et({typeName:td.ZodNever,...S(e)});class en extends C{_parse(e){if(this._getType(e)!==o.undefined){let t=this._getOrReturnCtx(e);return f(t,{code:a.invalid_type,expected:o.void,received:t.parsedType}),h}return g(e.data)}}en.create=e=>new en({typeName:td.ZodVoid,...S(e)});class er extends C{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==o.array)return f(t,{code:a.invalid_type,expected:o.array,received:t.parsedType}),h;if(null!==r.exactLength){let e=t.data.length>r.exactLength.value,o=t.data.length<r.exactLength.value;(e||o)&&(f(t,{code:e?a.too_big:a.too_small,minimum:o?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&(f(t,{code:a.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&(f(t,{code:a.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new E(t,e,t.path,n)))).then(e=>p.mergeArray(n,e));let i=[...t.data].map((e,n)=>r.type._parseSync(new E(t,e,t.path,n)));return p.mergeArray(n,i)}get element(){return this._def.type}min(e,t){return new er({...this._def,minLength:{value:e,message:tl.toString(t)}})}max(e,t){return new er({...this._def,maxLength:{value:e,message:tl.toString(t)}})}length(e,t){return new er({...this._def,exactLength:{value:e,message:tl.toString(t)}})}nonempty(e){return this.min(1,e)}}er.create=(e,t)=>new er({type:e,minLength:null,maxLength:null,exactLength:null,typeName:td.ZodArray,...S(t)});class eo extends C{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=ta.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==o.object){let t=this._getOrReturnCtx(e);return f(t,{code:a.invalid_type,expected:o.object,received:t.parsedType}),h}let{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),s=[];if(!(this._def.catchall instanceof et&&"strip"===this._def.unknownKeys))for(let e in n.data)i.includes(e)||s.push(e);let l=[];for(let e of i){let t=r[e],o=n.data[e];l.push({key:{status:"valid",value:e},value:t._parse(new E(n,o,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof et){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of s)l.push({key:{status:"valid",value:e},value:{status:"valid",value:n.data[e]}});else if("strict"===e)s.length>0&&(f(n,{code:a.unrecognized_keys,keys:s}),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 s){let r=n.data[t];l.push({key:{status:"valid",value:t},value:e._parse(new E(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of l){let n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e}).then(e=>p.mergeObjectSync(t,e)):p.mergeObjectSync(t,l)}get shape(){return this._def.shape()}strict(e){return tl.errToObj,new eo({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var r,o,i,a;let s=null!=(i=null==(o=(r=this._def).errorMap)?void 0:o.call(r,t,n).message)?i:n.defaultError;return"unrecognized_keys"===t.code?{message:null!=(a=tl.errToObj(e).message)?a:s}:{message:s}}}:{}})}strip(){return new eo({...this._def,unknownKeys:"strip"})}passthrough(){return new eo({...this._def,unknownKeys:"passthrough"})}extend(e){return new eo({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new eo({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:td.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new eo({...this._def,catchall:e})}pick(e){let t={};return ta.objectKeys(e).forEach(n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])}),new eo({...this._def,shape:()=>t})}omit(e){let t={};return ta.objectKeys(this.shape).forEach(n=>{e[n]||(t[n]=this.shape[n])}),new eo({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof eo){let n={};for(let r in t.shape){let o=t.shape[r];n[r]=ex.create(e(o))}return new eo({...t._def,shape:()=>n})}if(t instanceof er)return new er({...t._def,type:e(t.element)});if(t instanceof ex)return ex.create(e(t.unwrap()));if(t instanceof eA)return eA.create(e(t.unwrap()));if(t instanceof ec)return ec.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};return ta.objectKeys(this.shape).forEach(n=>{let r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()}),new eo({...this._def,shape:()=>t})}required(e){let t={};return ta.objectKeys(this.shape).forEach(n=>{if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof ex;)e=e._def.innerType;t[n]=e}}),new eo({...this._def,shape:()=>t})}keyof(){return eg(ta.objectKeys(this.shape))}}eo.create=(e,t)=>new eo({shape:()=>e,unknownKeys:"strip",catchall:et.create(),typeName:td.ZodObject,...S(t)}),eo.strictCreate=(e,t)=>new eo({shape:()=>e,unknownKeys:"strict",catchall:et.create(),typeName:td.ZodObject,...S(t)}),eo.lazycreate=(e,t)=>new eo({shape:e,unknownKeys:"strip",catchall:et.create(),typeName:td.ZodObject,...S(t)});class ei extends C{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new s(e.ctx.common.issues));return f(t,{code:a.invalid_union,unionErrors:n}),h});{let e,r=[];for(let o of n){let n={...t,common:{...t.common,issues:[]},parent:null},i=o._parseSync({data:t.data,path:t.path,parent:n});if("valid"===i.status)return i;"dirty"!==i.status||e||(e={result:i,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let o=r.map(e=>new s(e));return f(t,{code:a.invalid_union,unionErrors:o}),h}}get options(){return this._def.options}}ei.create=(e,t)=>new ei({options:e,typeName:td.ZodUnion,...S(t)});let ea=e=>{if(e instanceof eh)return ea(e.schema);if(e instanceof ew)return ea(e.innerType());if(e instanceof em)return[e.value];if(e instanceof ev)return e.options;if(e instanceof eb)return ta.objectValues(e.enum);else if(e instanceof eE)return ea(e._def.innerType);else if(e instanceof Z)return[void 0];else if(e instanceof Q)return[null];else if(e instanceof ex)return[void 0,...ea(e.unwrap())];else if(e instanceof eA)return[null,...ea(e.unwrap())];else if(e instanceof eO)return ea(e.unwrap());else if(e instanceof e_)return ea(e.unwrap());else if(e instanceof e$)return ea(e._def.innerType);else return[]};class es extends C{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==o.object)return f(t,{code:a.invalid_type,expected:o.object,received:t.parsedType}),h;let n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);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}):(f(t,{code:a.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),h)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){let r=new Map;for(let n of t){let t=ea(n.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let o of t){if(r.has(o))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(o)}`);r.set(o,n)}}return new es({typeName:td.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...S(n)})}}class el extends C{_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(v(e)||v(r))return h;let s=function e(t,n){let r=i(t),a=i(n);if(t===n)return{valid:!0,data:t};if(r===o.object&&a===o.object){let r=ta.objectKeys(n),o=ta.objectKeys(t).filter(e=>-1!==r.indexOf(e)),i={...t,...n};for(let r of o){let o=e(t[r],n[r]);if(!o.valid)return{valid:!1};i[r]=o.data}return{valid:!0,data:i}}if(r===o.array&&a===o.array){if(t.length!==n.length)return{valid:!1};let r=[];for(let o=0;o<t.length;o++){let i=e(t[o],n[o]);if(!i.valid)return{valid:!1};r.push(i.data)}return{valid:!0,data:r}}if(r===o.date&&a===o.date&&+t==+n)return{valid:!0,data:t};return{valid:!1}}(e.value,r.value);return s.valid?((b(e)||b(r))&&t.dirty(),{status:t.value,value:s.data}):(f(n,{code:a.invalid_intersection_types}),h)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}el.create=(e,t,n)=>new el({left:e,right:t,typeName:td.ZodIntersection,...S(n)});class ec extends C{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==o.array)return f(n,{code:a.invalid_type,expected:o.array,received:n.parsedType}),h;if(n.data.length<this._def.items.length)return f(n,{code:a.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),h;!this._def.rest&&n.data.length>this._def.items.length&&(f(n,{code:a.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let r=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new E(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(r).then(e=>p.mergeArray(t,e)):p.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new ec({...this._def,rest:e})}}ec.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new ec({items:e,typeName:td.ZodTuple,rest:null,...S(t)})};class eu extends C{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==o.object)return f(n,{code:a.invalid_type,expected:o.object,received:n.parsedType}),h;let r=[],i=this._def.keyType,s=this._def.valueType;for(let e in n.data)r.push({key:i._parse(new E(n,e,n.path,e)),value:s._parse(new E(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?p.mergeObjectAsync(t,r):p.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return new eu(t instanceof C?{keyType:e,valueType:t,typeName:td.ZodRecord,...S(n)}:{keyType:q.create(),valueType:e,typeName:td.ZodRecord,...S(t)})}}class ed extends C{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==o.map)return f(n,{code:a.invalid_type,expected:o.map,received:n.parsedType}),h;let r=this._def.keyType,i=this._def.valueType,s=[...n.data.entries()].map(([e,t],o)=>({key:r._parse(new E(n,e,n.path,[o,"key"])),value:i._parse(new E(n,t,n.path,[o,"value"]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of s){let r=await n.key,o=await n.value;if("aborted"===r.status||"aborted"===o.status)return h;("dirty"===r.status||"dirty"===o.status)&&t.dirty(),e.set(r.value,o.value)}return{status:t.value,value:e}})}{let e=new Map;for(let n of s){let r=n.key,o=n.value;if("aborted"===r.status||"aborted"===o.status)return h;("dirty"===r.status||"dirty"===o.status)&&t.dirty(),e.set(r.value,o.value)}return{status:t.value,value:e}}}}ed.create=(e,t,n)=>new ed({valueType:t,keyType:e,typeName:td.ZodMap,...S(n)});class ef extends C{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==o.set)return f(n,{code:a.invalid_type,expected:o.set,received:n.parsedType}),h;let r=this._def;null!==r.minSize&&n.data.size<r.minSize.value&&(f(n,{code:a.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&n.data.size>r.maxSize.value&&(f(n,{code:a.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let i=this._def.valueType;function s(e){let n=new Set;for(let r of e){if("aborted"===r.status)return h;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let l=[...n.data.values()].map((e,t)=>i._parse(new E(n,e,n.path,t)));return n.common.async?Promise.all(l).then(e=>s(e)):s(l)}min(e,t){return new ef({...this._def,minSize:{value:e,message:tl.toString(t)}})}max(e,t){return new ef({...this._def,maxSize:{value:e,message:tl.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ef.create=(e,t)=>new ef({valueType:e,minSize:null,maxSize:null,typeName:td.ZodSet,...S(t)});class ep extends C{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==o.function)return f(t,{code:a.invalid_type,expected:o.function,received:t.parsedType}),h;function n(e,n){return d({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,u(),l].filter(e=>!!e),issueData:{code:a.invalid_arguments,argumentsError:n}})}function r(e,n){return d({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,u(),l].filter(e=>!!e),issueData:{code:a.invalid_return_type,returnTypeError:n}})}let i={errorMap:t.common.contextualErrorMap},c=t.data;if(this._def.returns instanceof ey){let e=this;return g(async function(...t){let o=new s([]),a=await e._def.args.parseAsync(t,i).catch(e=>{throw o.addIssue(n(t,e)),o}),l=await Reflect.apply(c,this,a);return await e._def.returns._def.type.parseAsync(l,i).catch(e=>{throw o.addIssue(r(l,e)),o})})}{let e=this;return g(function(...t){let o=e._def.args.safeParse(t,i);if(!o.success)throw new s([n(t,o.error)]);let a=Reflect.apply(c,this,o.data),l=e._def.returns.safeParse(a,i);if(!l.success)throw new s([r(a,l.error)]);return l.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new ep({...this._def,args:ec.create(e).rest(ee.create())})}returns(e){return new ep({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new ep({args:e||ec.create([]).rest(ee.create()),returns:t||ee.create(),typeName:td.ZodFunction,...S(n)})}}class eh extends C{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})}}eh.create=(e,t)=>new eh({getter:e,typeName:td.ZodLazy,...S(t)});class em extends C{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return f(t,{received:t.data,code:a.invalid_literal,expected:this._def.value}),h}return{status:"valid",value:e.data}}get value(){return this._def.value}}function eg(e,t){return new ev({values:e,typeName:td.ZodEnum,...S(t)})}em.create=(e,t)=>new em({value:e,typeName:td.ZodLiteral,...S(t)});class ev extends C{constructor(){super(...arguments),tc.set(this,void 0)}_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),n=this._def.values;return f(t,{expected:ta.joinValues(n),received:t.parsedType,code:a.invalid_type}),h}if(x(this,tc,"f")||A(this,tc,new Set(this._def.values),"f"),!x(this,tc,"f").has(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return f(t,{received:t.data,code:a.invalid_enum_value,options:n}),h}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 ev.create(e,{...this._def,...t})}exclude(e,t=this._def){return ev.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}tc=new WeakMap,ev.create=eg;class eb extends C{constructor(){super(...arguments),tu.set(this,void 0)}_parse(e){let t=ta.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==o.string&&n.parsedType!==o.number){let e=ta.objectValues(t);return f(n,{expected:ta.joinValues(e),received:n.parsedType,code:a.invalid_type}),h}if(x(this,tu,"f")||A(this,tu,new Set(ta.getValidEnumValues(this._def.values)),"f"),!x(this,tu,"f").has(e.data)){let e=ta.objectValues(t);return f(n,{received:n.data,code:a.invalid_enum_value,options:e}),h}return g(e.data)}get enum(){return this._def.values}}tu=new WeakMap,eb.create=(e,t)=>new eb({values:e,typeName:td.ZodNativeEnum,...S(t)});class ey extends C{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==o.promise&&!1===t.common.async?(f(t,{code:a.invalid_type,expected:o.promise,received:t.parsedType}),h):g((t.parsedType===o.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}ey.create=(e,t)=>new ey({type:e,typeName:td.ZodPromise,...S(t)});class ew extends C{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===td.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,o={addIssue:e=>{f(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(o.addIssue=o.addIssue.bind(o),"preprocess"===r.type){let e=r.transform(n.data,o);if(n.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return h;let r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return"aborted"===r.status?h:"dirty"===r.status||"dirty"===t.value?m(r.value):r});{if("aborted"===t.value)return h;let r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return"aborted"===r.status?h:"dirty"===r.status||"dirty"===t.value?m(r.value):r}}if("refinement"===r.type){let e=e=>{let t=r.refinement(e,o);if(n.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!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>"aborted"===n.status?h:("dirty"===n.status&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))));{let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?h:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}}if("transform"===r.type)if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>y(e)?Promise.resolve(r.transform(e.value,o)).then(e=>({status:t.value,value:e})):e);else{let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!y(e))return e;let i=r.transform(e.value,o);if(i instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:i}}ta.assertNever(r)}}ew.create=(e,t,n)=>new ew({schema:e,typeName:td.ZodEffects,effect:t,...S(n)}),ew.createWithPreprocess=(e,t,n)=>new ew({schema:t,effect:{type:"preprocess",transform:e},typeName:td.ZodEffects,...S(n)});class ex extends C{_parse(e){return this._getType(e)===o.undefined?g(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ex.create=(e,t)=>new ex({innerType:e,typeName:td.ZodOptional,...S(t)});class eA extends C{_parse(e){return this._getType(e)===o.null?g(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eA.create=(e,t)=>new eA({innerType:e,typeName:td.ZodNullable,...S(t)});class eE extends C{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===o.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}eE.create=(e,t)=>new eE({innerType:e,typeName:td.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...S(t)});class e$ extends C{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return w(r)?r.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new s(n.common.issues)},input:n.data})})):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new s(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}e$.create=(e,t)=>new e$({innerType:e,typeName:td.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...S(t)});class eS extends C{_parse(e){if(this._getType(e)!==o.nan){let t=this._getOrReturnCtx(e);return f(t,{code:a.invalid_type,expected:o.nan,received:t.parsedType}),h}return{status:"valid",value:e.data}}}eS.create=e=>new eS({typeName:td.ZodNaN,...S(e)});let eC=Symbol("zod_brand");class eO extends C{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class ek extends C{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?h:"dirty"===e.status?(t.dirty(),m(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{let e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?h:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new ek({in:e,out:t,typeName:td.ZodPipeline})}}class e_ extends C{_parse(e){let t=this._def.innerType._parse(e),n=e=>(y(e)&&(e.value=Object.freeze(e.value)),e);return w(t)?t.then(e=>n(e)):n(t)}unwrap(){return this._def.innerType}}function eI(e,t){let n="function"==typeof e?e(t):"string"==typeof e?{message:e}:e;return"string"==typeof n?{message:n}:n}function eR(e,t={},n){return e?J.create().superRefine((r,o)=>{var i,a;let s=e(r);if(s instanceof Promise)return s.then(e=>{var i,a;if(!e){let e=eI(t,r),s=null==(a=null!=(i=e.fatal)?i:n)||a;o.addIssue({code:"custom",...e,fatal:s})}});if(!s){let e=eI(t,r),s=null==(a=null!=(i=e.fatal)?i:n)||a;o.addIssue({code:"custom",...e,fatal:s})}}):J.create()}e_.create=(e,t)=>new e_({innerType:e,typeName:td.ZodReadonly,...S(t)});let ej={object:eo.lazycreate};(ti=td||(td={})).ZodString="ZodString",ti.ZodNumber="ZodNumber",ti.ZodNaN="ZodNaN",ti.ZodBigInt="ZodBigInt",ti.ZodBoolean="ZodBoolean",ti.ZodDate="ZodDate",ti.ZodSymbol="ZodSymbol",ti.ZodUndefined="ZodUndefined",ti.ZodNull="ZodNull",ti.ZodAny="ZodAny",ti.ZodUnknown="ZodUnknown",ti.ZodNever="ZodNever",ti.ZodVoid="ZodVoid",ti.ZodArray="ZodArray",ti.ZodObject="ZodObject",ti.ZodUnion="ZodUnion",ti.ZodDiscriminatedUnion="ZodDiscriminatedUnion",ti.ZodIntersection="ZodIntersection",ti.ZodTuple="ZodTuple",ti.ZodRecord="ZodRecord",ti.ZodMap="ZodMap",ti.ZodSet="ZodSet",ti.ZodFunction="ZodFunction",ti.ZodLazy="ZodLazy",ti.ZodLiteral="ZodLiteral",ti.ZodEnum="ZodEnum",ti.ZodEffects="ZodEffects",ti.ZodNativeEnum="ZodNativeEnum",ti.ZodOptional="ZodOptional",ti.ZodNullable="ZodNullable",ti.ZodDefault="ZodDefault",ti.ZodCatch="ZodCatch",ti.ZodPromise="ZodPromise",ti.ZodBranded="ZodBranded",ti.ZodPipeline="ZodPipeline",ti.ZodReadonly="ZodReadonly";let eN=q.create,eT=V.create,eP=eS.create,eM=G.create,ez=X.create,eB=K.create,eL=Y.create,eF=Z.create,eD=Q.create,eH=J.create,eW=ee.create,eU=et.create,eq=en.create,eV=er.create,eG=eo.create,eX=eo.strictCreate,eK=ei.create,eY=es.create,eZ=el.create,eQ=ec.create,eJ=eu.create,e0=ed.create,e1=ef.create,e2=ep.create,e5=eh.create,e6=em.create,e4=ev.create,e3=eb.create,e8=ey.create,e9=ew.create,e7=ex.create,te=eA.create,tt=ew.createWithPreprocess,tn=ek.create;var tr,to,ti,ta,ts,tl,tc,tu,td,tf=Object.freeze({__proto__:null,defaultErrorMap:l,setErrorMap:function(e){c=e},getErrorMap:u,makeIssue:d,EMPTY_PATH:[],addIssueToContext:f,ParseStatus:p,INVALID:h,DIRTY:m,OK:g,isAborted:v,isDirty:b,isValid:y,isAsync:w,get util(){return ta},get objectUtil(){return ts},ZodParsedType:o,getParsedType:i,ZodType:C,datetimeRegex:U,ZodString:q,ZodNumber:V,ZodBigInt:G,ZodBoolean:X,ZodDate:K,ZodSymbol:Y,ZodUndefined:Z,ZodNull:Q,ZodAny:J,ZodUnknown:ee,ZodNever:et,ZodVoid:en,ZodArray:er,ZodObject:eo,ZodUnion:ei,ZodDiscriminatedUnion:es,ZodIntersection:el,ZodTuple:ec,ZodRecord:eu,ZodMap:ed,ZodSet:ef,ZodFunction:ep,ZodLazy:eh,ZodLiteral:em,ZodEnum:ev,ZodNativeEnum:eb,ZodPromise:ey,ZodEffects:ew,ZodTransformer:ew,ZodOptional:ex,ZodNullable:eA,ZodDefault:eE,ZodCatch:e$,ZodNaN:eS,BRAND:eC,ZodBranded:eO,ZodPipeline:ek,ZodReadonly:e_,custom:eR,Schema:C,ZodSchema:C,late:ej,get ZodFirstPartyTypeKind(){return td},coerce:{string:e=>q.create({...e,coerce:!0}),number:e=>V.create({...e,coerce:!0}),boolean:e=>X.create({...e,coerce:!0}),bigint:e=>G.create({...e,coerce:!0}),date:e=>K.create({...e,coerce:!0})},any:eH,array:eV,bigint:eM,boolean:ez,date:eB,discriminatedUnion:eY,effect:e9,enum:e4,function:e2,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>eR(t=>t instanceof e,t),intersection:eZ,lazy:e5,literal:e6,map:e0,nan:eP,nativeEnum:e3,never:eU,null:eD,nullable:te,number:eT,object:eG,oboolean:()=>ez().optional(),onumber:()=>eT().optional(),optional:e7,ostring:()=>eN().optional(),pipeline:tn,preprocess:tt,promise:e8,record:eJ,set:e1,strictObject:eX,string:eN,symbol:eL,transformer:e9,tuple:eQ,undefined:eF,union:eK,unknown:eW,void:eq,NEVER:h,ZodIssueCode:a,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:s})},8926(e,t,n){"use strict";n.d(t,{vt:()=>c});let r=e=>{let t,n=new Set,r=(e,r)=>{let o="function"==typeof e?e(t):e;if(!Object.is(o,t)){let e=t;t=(null!=r?r:"object"!=typeof o||null===o)?o:Object.assign({},t,o),n.forEach(n=>n(t,e))}},o=()=>t,i={setState:r,getState:o,getInitialState:()=>a,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{n.clear()}},a=t=e(r,o,i);return i};var o=n(2155),i=n(3016);let{useDebugValue:a}=o,{useSyncExternalStoreWithSelector:s}=i,l=e=>{let t="function"==typeof e?e?r(e):r:e,n=(e,n)=>(function(e,t=e=>e,n){let r=s(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return a(r),r})(t,e,n);return Object.assign(n,t),n},c=e=>e?l(e):l}}]);
301
- //# sourceMappingURL=807.fe401934.js.map
301
+ //# sourceMappingURL=830.d18085e3.js.map