f&&(i="finish"));let D=(0,s.Z)(`${a}-item`,`${a}-item-${i}`,{[`${a}-item-custom`]:!!A,[`${a}-item-next-error`]:k,[`${a}-item-disabled`]:v,[`${a}-item-active`]:f===c},n),S=E(i),L=(0,o.jsx)("div",{className:`${a}-item-icon`,children:S}),B=g?g(L,{index:f,status:i,title:h,description:p}):L;return(0,o.jsxs)("div",{ref:t,className:D,style:r,onClick:C,children:[!x&&("vertical"===b||"vertical"===w)&&(0,o.jsx)("div",{className:`${a}-item-tail`}),"arrow"!==m&&B,(0,o.jsxs)("div",{className:`${a}-item-content`,children:[(0,o.jsx)("div",{className:`${a}-item-title`,children:h}),p&&(0,o.jsx)("div",{className:`${a}-item-description`,children:p})]})]})}let c=(0,a.forwardRef)(f);c.displayName="Step";var d=c,h=i(98707),p=i(70307),A=i(17862);let k={current:1,type:"default",size:"default",direction:"horizontal",labelPlacement:"horizontal"};function m(e,t){let{getPrefixCls:i,componentConfig:l,rtl:u}=(0,a.useContext)(h.E_),f=(0,p.Z)(e,k,null==l?void 0:l.Steps),{className:c,style:d,children:m,current:g=1,status:b,onChange:v,type:y,size:Q,direction:w,labelPlacement:_,customDot:x,lineless:E}=f,C=i("steps"),D=_;"dot"===y&&(D="vertical"===w?"horizontal":"vertical"),"navigation"===y&&(D="horizontal");let S=w;("navigation"===y||"arrow"===y)&&(S="horizontal");let L=(0,s.Z)(C,`${C}-${S}`,`${C}-label-${D}`,`${C}-size-${Q}`,{[`${C}-change-onclick`]:"function"==typeof v,[`${C}-mode-${y}`]:"default"!==y,[`${C}-lineless`]:E,[`${C}-rtl`]:u},c);return(0,o.jsx)("div",(0,n._)((0,r._)({ref:t,style:d,className:L},(0,A.m)(f)),{children:a.Children.toArray(m).filter(e=>e&&e.type&&"Step"===e.type.displayName).map((e,t)=>{if(t+=1,e){let i=(0,r._)({prefixCls:C,type:y,index:t,current:g,status:g===t?b:void 0,customDot:x,labelPlacement:D,direction:S,onChange:v,lineless:E},e.props);return"error"===b&&g===t+1&&(i.nextStepError=!0),a.cloneElement(e,i)}return null})}))}let g=(0,a.forwardRef)(m);g.displayName="Steps",g.Step=d;var b=g},42197:function(e,t,i){"use strict";i(98951)},44701:function(e,t,i){"use strict";i.d(t,{Z:()=>B});var r,n,o=i(64664),a=i(33994),s=i(74427),l=i(72322),u=i(18571),f=i(96177),c=i(30421),d=i(1821);function h(e,t){return!(e===t||u.isValidElement(e)&&u.isValidElement(t)&&null!=e.key&&e.key===t.key)}var p="out-in",A="in-out",k=function(e,t,i){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),i()}},m=((r={})[p]=function(e){var t=e.current,i=e.changeState;return u.cloneElement(t,{in:!1,onExited:k(t,"onExited",function(){i(c.d0,null)})})},r[A]=function(e){var t=e.current,i=e.changeState,r=e.children;return[t,u.cloneElement(r,{in:!0,onEntered:k(r,"onEntered",function(){i(c.d0)})})]},r),g=((n={})[p]=function(e){var t=e.children,i=e.changeState;return u.cloneElement(t,{in:!0,onEntered:k(t,"onEntered",function(){i(c.cn,u.cloneElement(t,{in:!0}))})})},n[A]=function(e){var t=e.current,i=e.children,r=e.changeState;return[u.cloneElement(t,{in:!1,onExited:k(t,"onExited",function(){r(c.cn,u.cloneElement(i,{in:!0}))})}),u.cloneElement(i,{in:!0})]},n),b=function(e){function t(){for(var t,i=arguments.length,r=Array(i),n=0;n{!m&&(c.onClick&&c.onClick(e),"checked"in c||H(!V),g&&g(!V,e))},Z=(0,Q.Z)(O,"default"===R?void 0:`${O}-${R}`,{[`${O}-type-${b}`]:b,[`${O}-checked`]:V,[`${O}-loading`]:m,[`${O}-rtl`]:f},d),j=S,z=L;h&&(0,w.kJ)(h)?(j=h.find(e=>"open"===e.key),z=h.find(e=>"close"===e.key)):h&&(0,w.Kn)(h)&&("open"===h.key?j=h:"close"===h.key&&(z=h));let G=(0,_.Z)(I,["onChange","checked","error"]);return(0,l.jsxs)("button",(0,a._)((0,o._)({ref:t,role:"switch","aria-checked":!!V,tabIndex:m?-1:void 0},G),{style:p,className:Z,disabled:A,onClick:F,type:"button",children:[(0,l.jsxs)("div",{className:`${O}-dot`,children:[!m&&(B||P)&&(0,l.jsx)(v,{children:(0,l.jsx)(y.Z,{classNames:"fadeIn",timeout:200,children:(0,l.jsx)("span",{className:`${O}-dot-icon`,children:V?B:P})},V?"checked":"unchecked")}),m&&(0,l.jsx)("span",{className:`${O}-dot-icon`,children:(0,l.jsx)(E.Z,{})})]}),"default"===R&&(j||z)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:`${O}-text-holder`,children:[j&&V&&j,z&&!V&&z]}),(0,l.jsx)(y.Z,{in:V,classNames:"switchSlideText",timeout:200,children:(0,l.jsxs)("div",{className:`${O}-text`,children:[j&&V&&j,z&&!V&&z]})})]})]}))}let L=(0,u.forwardRef)(S);L.__BYTE_SWITCH=!0,L.displayName="Switch";var B=L},82088:function(e,t,i){"use strict";i(98951)},59590:function(e,t,i){"use strict";i.d(t,{Z:()=>eu});var r=i(64664),n=i(33994),o=i(74427),a=i(72322),s=i(18571),l=i(89068),u=i(43227),f=i(98707);function c(e,t){let i=(0,s.useRef)(!1),{getPrefixCls:c}=(0,s.useContext)(f.E_),{children:d,className:h,style:p,lazyload:A,isActive:k}=e,m=(0,o._)(e,["children","className","style","lazyload","isActive"]),g=c("tabs");return i.current=!A||i.current||k,i.current&&(0,a.jsx)("div",(0,n._)((0,r._)({ref:t},(0,u.Z)(m,["destroyOnHide","title","closable"])),{className:(0,l.Z)(`${g}-pane`,h),style:p,children:d}))}let d=s.forwardRef(c);d.displayName="TabPane",d.isTabPane=!0;var h=d,p=i(29871),A=i(53243),k=i(6122),m=i(25962),g=i(41992),b=i(29294);function v(e){let{prefixCls:t,currentOffset:i,headerSize:r,headerWrapperSize:n,getTitleRef:o,paneChildren:l,direction:u}=e,f=l.map(e=>e.key),c="vertical"===u?r.height:r.width,d="vertical"===u?n.height:n.width,h=(0,s.useMemo)(()=>{let e={},t=n.domRect;return f.map(i=>{let r=o(i);if(!r)return;let n=r.getBoundingClientRect();e[i]={left:n.left-t.left,right:n.left-t.left+n.width,top:n.top-t.top,bottom:n.top-t.top+n.height}}),e},[f.join(","),c,d]),p=(0,s.useMemo)(()=>{let e=-1,t=-1;for(let r in h){let{left:n,right:o}=h[r];if(n>=i&&o-i<=d&&-1===e&&(t=e=f.indexOf(r)),n>=i&&o-i>d){t=f.indexOf(r);break}}return[e,t]},[h,f.join(","),i]);return(0,a.jsx)(m.Z,{trigger:"click",droplist:(0,a.jsx)(g.Z,{onClickMenuItem:e.onClickTab,children:l.map((e,t)=>{if(t =p[1])return(0,a.jsx)(g.Z.Item,{disabled:e.disabled,children:e.props.title},e.key)})}),children:(0,a.jsx)(b.Z,{role:"button","aria-label":"expand tabs",prefix:`${t}-dropdown`,className:`${t}-dropdown-icon`,children:(0,a.jsx)(k.Z,{})})})}var y=i(11191),Q=i(44823),w=i(93097),_=e=>{let{direction:t,headerSize:i,headerWrapperSize:n,prefixCls:o,iconPos:s,currentOffset:u,align:f,rtl:c}=e,{height:d,width:h}=n,{height:p,width:A}=i,m=p-d,g=A-h,v=t=>{t!==e.currentOffset&&e.onChange&&e.onChange(t)},_=(e,t)=>{let i;e.preventDefault(),v(i="left"===f?"left"===t?u-h:u+h:"left"===t?u+h:u-h)},x=(e,t)=>{let i;if(e.preventDefault(),"up"===t)i=u-d;else if((i=u+d)>=p)return;v(i)},E=!1,C=!1;"left"===f?(E=u<=0,C="vertical"===t?u>=m:u>=g):(E="vertical"===t?u>=m:u>=g,C=u<=0);let D=e=>e.disabled?null:(0,a.jsx)(b.Z,{className:(0,l.Z)(`${o}-nav-icon`,e.cs),onClick:e.handleClick,children:null==e?void 0:e.icon});if("vertical"===t)return D("prev"===s?{disabled:E,icon:(0,a.jsx)(w.Z,{}),handleClick:e=>x(e,"up"),cs:`${o}-up-icon`}:{disabled:C,icon:(0,a.jsx)(k.Z,{}),handleClick:e=>x(e,"down"),cs:`${o}-down-icon`});let S={strokeWidth:6};return D("prev"===s?{disabled:E,icon:c?(0,a.jsx)(Q.Z,(0,r._)({},S)):(0,a.jsx)(y.Z,(0,r._)({},S)),handleClick:e=>_(e,"left"),cs:`${o}-left-icon`}:{disabled:C,icon:c?(0,a.jsx)(y.Z,(0,r._)({},S)):(0,a.jsx)(Q.Z,(0,r._)({},S)),handleClick:e=>_(e,"right"),cs:`${o}-right-icon`})},x=i(69229),E=i(42605);let C=(e,t)=>{let i=e.getBoundingClientRect(),r=t.getBoundingClientRect(),n=t.offsetWidth/r.width,o=t.offsetHeight/r.height;return{left:(i.left-r.left)*n,top:(i.top-r.top)*o,right:(i.right-r.right)*n,bottom:(i.bottom-r.bottom)*o}},D=(e,t)=>{let{scrollLeft:i}=e,{scrollTop:r}=e;"horizontal"===t&&i&&e.scrollTo({left:-1*i}),"vertical"===t&&r&&e.scrollTo({top:-1*r})},S=({onPressEnter:e})=>({onKeyDown:t=>{(t.keyCode||t.which)===E.Ce.code&&e(t)}}),L=({prefixCls:e,onDeleteTab:t,tabKey:i,isActive:o,onClickTab:s,disabled:u=!1,title:f,editable:c,renderTitle:d,deleteIcon:h,deleteButton:A,getIdPrefix:k,index:m},g)=>{let v=(0,p.mf)(d)?d:e=>e,y=e=>{e.stopPropagation(),u||t()},Q=e=>{u||s(e)};return v((0,a.jsxs)("div",{ref:g,className:(0,l.Z)(`${e}-header-title`,{[`${e}-header-title-active`]:o,[`${e}-header-title-editable`]:c,[`${e}-header-title-disabled`]:u}),role:"tab","aria-selected":o,tabIndex:u?-1:0,"aria-disabled":u||void 0,id:k(m).tab,"aria-controls":k(m).tabpane,onClick:Q,onKeyDown:e=>{(e.keyCode||e.which)===E.Ce.code&&Q(e)},children:[(0,a.jsx)("span",{className:`${e}-header-title-text`,children:f}),c&&(0,a.jsx)("span",(0,n._)((0,r._)({role:"button","aria-label":"remove tab","aria-disabled":u||void 0,tabIndex:u?-1:0,className:`${e}-close-icon`},S({onPressEnter:y})),{onClick:y,children:A||(0,a.jsx)(b.Z,{prefix:e,children:h||(0,a.jsx)(x.Z,{})})}))]},i),{key:i,isActive:o,disabled:u,editable:c})};var B=s.forwardRef(L),P=i(38649),I=i(5726),O=i(66134),R=i.n(O),N=i(8261);let H=(e,t,i)=>{let r={};if(t){let n=C(t,i);r="vertical"===e?{top:`${n.top}px`,height:`${t.offsetHeight}px`,left:"",width:""}:{left:`${n.left}px`,width:`${t.offsetWidth}px`,top:"",height:""}}return r};var V=({prefixCls:e,animation:t,disabled:i,direction:r,getTitleRef:n,activeTab:o,getHeaderRef:u})=>{let f=(0,s.useRef)(),c=(0,s.useRef)();return(0,s.useEffect)(()=>{let e=(0,N.Z)(()=>{let e=H(r,n(o),u("headerRef").current);e&&!R()(c.current,e)&&(c.current=e,Object.keys(e).forEach(t=>{f.current.style[t]=e[t]}))});return e(),()=>{e.cancel&&e.cancel()}}),(0,a.jsx)("div",{className:(0,l.Z)(`${e}-header-ink`,{[`${e}-header-ink-no-animation`]:!t,[`${e}-header-ink-disabled`]:i}),ref:f})};function F(){let e=(0,s.useRef)(),[t,i]=(0,s.useState)({height:0,width:0});return(0,s.useEffect)(()=>{e.current&&i({height:e.current.offsetHeight,width:e.current.offsetWidth,domRect:e.current.getBoundingClientRect()})},[]),[e,t,i]}var Z=i(8158);function j(e){let{headerWrapperRef:t,headerOffset:i,align:r,isScrollable:n,direction:o,onScroll:a}=e;function l(e,t){let n=0;n="vertical"===o?i+t:"left"===r?i+e:i-e,a&&a(n)}let u=(0,s.useRef)("x");function f(e){if(!n)return;e.preventDefault();let{deltaX:t,deltaY:i}=e,r=0,o=Math.abs(t),a=Math.abs(i);o===a?r="x"===u.current?t:i:o>a?(r=t,u.current="x"):(r=i,u.current="y"),l(r,r)}let c=(0,s.useRef)({clientX:0,clientY:0}),d=e=>e&&e.touches&&e.touches.length&&e.touches[0],h=e=>{e.cancelable&&e.preventDefault();let t=d(e);if(!t)return;let{clientX:i,clientY:r}=c.current;l(-(t.clientX-i),-(t.clientY-r))},p=()=>{(0,Z.S1)(document.documentElement,"touchmove",h),(0,Z.S1)(document.documentElement,"touchend",p)},A=e=>{if(!n)return;let t=d(e);t&&(c.current={clientX:t.clientX,clientY:t.clientY},(0,Z.on)(document.documentElement,"touchmove",h,{passive:!1}),(0,Z.on)(window,"touchend",p,{passive:!1}))},k=(0,s.useRef)(null);k.current={onWheel:f,onTouchStart:A},(0,s.useEffect)(()=>{(0,Z.on)(t.current,"wheel",e=>{k.current.onWheel(e)},{passive:!1}),(0,Z.on)(t.current,"touchstart",e=>{k.current.onTouchStart(e)},{passive:!0})},[t.current])}let z="vertical",G="right",U="left",X={delete:!0,add:!0},W=({direction:e,align:t=U,headerOffset:i})=>{let r=`translateX(${-i}px)`;return t===G&&(r=`translateX(${i}px)`),e===z&&(r=`translateY(${-i}px)`),(0,I.GB)(r)},$=({direction:e,align:t=U,headerDom:i,headerWrapperDom:r})=>{let n=C(i,r);return e===z?-n.top:t===G?n.right:-n.left},Y=s.forwardRef((e,t)=>{let i=(0,s.useContext)(ea),{rtl:o}=(0,s.useContext)(f.E_),u=(0,r._)({},e,i),[c,d,h]=F(),[k,m,g]=F(),[y,Q,w]=F(),[x,E,L]=F(),I=(0,s.useRef)({}),[O,R]=(0,s.useState)(0),[H,Z]=(0,s.useState)(!0),{paneChildren:Y,editable:q,prefixCls:J,onAddTab:K,direction:ee,type:et="line",overflow:ei="scroll",activeTab:er,showAddButton:en,size:eo="default",style:es,tabPosition:el,className:eu,extra:ef,animation:ec,icons:ed,deleteButton:eh,addButton:ep,renderTabTitle:eA,scrollAfterEdit:ek,scrollPosition:em="auto"}=u,eg=(0,p.Kn)(ek)?(0,r._)({},X,ek):X,[eb,eT]=o?[G,U]:[U,G],ev="capsule"===et?eT:eb,ey=(0,s.useMemo)(()=>{let e=Q.height-E.height,t=Q.width-E.width;return"vertical"===u.direction?e{if(y.current){let e=y.current;w({height:e.offsetHeight,width:e.offsetWidth})}},ew=(0,N.Z)(e=>{eQ();let t=e[0]&&e[0].target;t&&h({height:t.offsetHeight,width:t.offsetWidth,domRect:t.getBoundingClientRect()})}),e_=(0,N.Z)(e=>{let t=e[0]&&e[0].target;t&&g({height:t.offsetHeight,width:t.offsetWidth,domRect:t.getBoundingClientRect()})}),ex=(0,N.Z)(e=>{let t=e[0]&&e[0].target;t&&L({height:t.offsetHeight,width:t.offsetWidth,domRect:t.getBoundingClientRect()})}),eE=(0,s.useCallback)(e=>{let t=ee===z?m.height-d.height:m.width-d.width,i=e;return Math.max(i=Math.min(t,i),0)},[ee,m,d]),eC=e=>{let t=eE(e);t!==O&&R(t)};(0,s.useEffect)(()=>()=>{e_.cancel&&e_.cancel(),ew.cancel&&ew.cancel()},[]),(0,s.useEffect)(()=>{if(!H)return void Z(!0);let e=()=>{let e=I.current[er];if(!e||!ey)return 0;let t=C(e,c.current),i=$({direction:ee,align:ev,headerDom:k.current,headerWrapperDom:c.current});if("vertical"===ee){let e=i,r=em,n=i+t.top,o=i+t.bottom;return"auto"===r&&(r=t.top<0?"start":t.bottom>0?"end":em),"start"===r?e=n:"end"===r?e=o:"center"===r?e=n-(t.top-t.bottom)/2:(0,p.hj)(r)&&(e=Math.max(n-r,o)),e}if("right"===ev){let e=i-t.left,r=i-t.right,n=em,o=i;return"auto"===em&&(n=t.left<0?"start":t.right>0?"end":em),"start"===n?o=e:"end"===n?o=r:"center"===n?o=e+(t.left-t.right)/2:(0,p.hj)(n)&&(o=Math.min(e+n,r)),o}let r=i,n=em,o=i+t.left,a=i+t.right;return"auto"===em&&(n=t.left<0?"start":t.right>0?"end":em),"start"===n?r=o:"end"===n?r=a:"center"===n?r=o-(t.left-t.right)/2:(0,p.hj)(n)&&(r=Math.max(o-n,a)),r};D(c.current,ee);let t=e();R(t=eE(t))},[er,ee,ei,ey,et,eE,em]);let eD=W({direction:ee,align:ev,headerOffset:O}),eS=ey&&"dropdown"===ei&&"vertical"!==ee,eL=ey&&!eS,eB=q&&("card"===et||"card-gutter"===et||"line"===et),eP=e=>{u.onDeleteTab&&u.onDeleteTab(e.key),Z(eg.delete)},eM=()=>{K&&K(),Z(eg.add)},eI=e=>e&&en&&(0,a.jsx)("div",(0,n._)((0,r._)({className:`${J}-add-icon`,"aria-label":"add tab",tabIndex:0,role:"button",onClick:eM},S({onPressEnter:eM})),{children:ep||(0,a.jsx)(b.Z,{prefix:`${J}-add`,children:(0,a.jsx)("span",{className:`${J}-add`,children:(null==ed?void 0:ed.add)||(0,a.jsx)(P.Z,{})})})}));return j({headerWrapperRef:c,headerOffset:O,align:ev,direction:ee,isScrollable:ey,onScroll(e){eC(e)}}),(0,a.jsxs)("div",{className:(0,l.Z)(`${J}-header-nav`,`${J}-header-nav-${ee}`,`${J}-header-nav-${el}`,`${J}-header-size-${eo}`,`${J}-header-nav-${et}`,eu),style:es,ref:t,children:[eL&&(0,a.jsx)(_,{iconPos:"prev",rtl:o,prefixCls:J,currentOffset:O,headerSize:m,headerWrapperSize:d,direction:ee,align:ev,onChange:eC}),(0,a.jsxs)("div",{className:(0,l.Z)(`${J}-header-scroll`,{[`${J}-header-overflow-scroll`]:eL,[`${J}-header-overflow-dropdown`]:eS}),ref:y,children:[(0,a.jsx)(A.Z,{onResize:ew,children:(0,a.jsxs)("div",{className:`${J}-header-wrapper`,ref:c,children:[(0,a.jsx)(A.Z,{onResize:e_,children:(0,a.jsxs)("div",{className:(0,l.Z)(`${J}-header`,{[`${J}-header-no-padding`]:!e.headerPadding&&"horizontal"===ee&&["line","text"].indexOf(et)>-1}),ref:k,style:eD,children:[Y.map((t,o)=>(0,a.jsx)(B,(0,n._)((0,r._)({ref:e=>{I.current[t.key]=e},tabKey:t.key},t.props),{prefixCls:J,onDeleteTab:()=>eP(t),renderTitle:e.children||eA,onClickTab:()=>{u.onClickTab&&u.onClickTab(t.key)},isActive:er===t.key,editable:eB&&!1!==t.props.closable,deleteIcon:null==ed?void 0:ed.delete,deleteButton:eh,getIdPrefix:i.getIdPrefix,index:o}),o)),"line"===et&&(0,a.jsx)(V,{disabled:!!Y.find(e=>e&&e.props&&e.props.disabled&&e.key===er),prefixCls:J,animation:ec,direction:ee,getTitleRef:e=>I.current[e],activeTab:er,getHeaderRef:()=>k})]})}),!ey&&eI(eB)]})}),eS&&(0,a.jsx)(v,{onClickTab:u.onClickTab,paneChildren:Y,prefixCls:J,currentOffset:O,headerSize:m,headerWrapperSize:d,getTitleRef:e=>I.current[e],direction:ee}),(eB&&ey||ef)&&(0,a.jsx)(A.Z,{onResize:ex,children:(0,a.jsxs)("div",{className:`${J}-header-extra`,ref:x,children:[ey&&eI(eB),ef]})})]}),eL&&(0,a.jsx)(_,{iconPos:"next",prefixCls:J,rtl:o,currentOffset:O,headerSize:m,headerWrapperSize:d,direction:ee,align:ev,onChange:eC})]})});Y.displayName="TabHeader";var q=Y;function J(e){let{animation:t,activeTab:i,prefixCls:r,paneChildren:n,direction:o,lazyload:u,destroyOnHide:c}=e,d=n.findIndex(e=>e.key===i),h=(0,s.useContext)(ea),{rtl:p}=(0,s.useContext)(f.E_);if(n.every(e=>(null==e?void 0:e.props)&&(!("children"in e.props)||null===e.props.children)))return null;let A=(0,l.Z)(`${r}-content-inner`,{[`${r}-animation`]:t});return(0,a.jsx)("div",{className:`${r}-content ${r}-content-${o}`,children:(0,a.jsx)("div",{className:A,style:p?{marginRight:`-${100*d}%`}:{marginLeft:`-${100*d}%`},children:n.map((e,t)=>{let{tabpane:n,tab:o}=h.getIdPrefix(t),f="destroyOnHide"in e.props?e.props.destroyOnHide:c,p=e.key===i;return(0,a.jsx)("div",{className:(0,l.Z)(`${r}-content-item`,{[`${r}-content-item-active`]:p}),role:"tabpanel",id:n,"aria-hidden":!p||void 0,tabIndex:p?0:-1,"aria-labelledby":o,children:d!==t&&f?null:s.cloneElement(e,{lazyload:u,isActive:p})},e.key)})})})}var K=i(17606),ee=i(70307),et=i(90604);let ei=["mini","small","default","large"],er=e=>{let{children:t}=e,i=[];return s.Children.forEach(t,e=>{e&&e.type&&e.type.isTabPane&&i.push(e)}),i},en=e=>{let{direction:t,tabPosition:i,animation:r}=e;return"vertical"!==t&&"left"!==i&&"right"!==i&&((0,p.Kn)(r)?"tabPane"in r&&r.tabPane:r)},eo={tabPosition:"top",type:"line",overflow:"scroll",showAddButton:!0,lazyload:!0,headerPadding:!0,scrollPosition:"auto"},ea=s.createContext({});function es(e,t){let{getPrefixCls:i,size:c,componentConfig:d,rtl:h}=(0,s.useContext)(f.E_),A=(0,ee.Z)(e,eo,null==d?void 0:d.Tabs),k=er(A),m=(0,s.useRef)(),[g,b]=(0,K.Z)(k[0]&&k[0].key,{defaultValue:"defaultActiveTab"in A?A.defaultActiveTab:void 0,value:"activeTab"in A?A.activeTab:void 0}),v=i("tabs"),y=A.size||(ei.indexOf(c)>-1?c:"default"),{animation:Q,className:w,direction:_,style:x,type:E,justify:C,destroyOnHide:D,lazyload:S,onChange:L,onClickTab:B,onDeleteTab:P,renderTabHeader:I}=A,O=(0,o._)(A,["animation","className","direction","style","type","justify","destroyOnHide","lazyload","onChange","onClickTab","onDeleteTab","renderTabHeader"]),R=(0,et.Z)(`${v}-`),N="vertical"===_?"left":A.tabPosition,H={animation:!(0,p.Kn)(Q)||!("inkBar"in Q)||Q.inkBar,activeTab:g,tabPosition:N,direction:["left","right"].indexOf(N)>-1?"vertical":"horizontal",paneChildren:k,onClickTab:e=>{(0,p.mf)(B)&&B(e),e!==g&&("activeTab"in A||b(e),(0,p.mf)(L)&&L(e))},onDeleteTab:P,prefixCls:v};(0,s.useImperativeHandle)(t,()=>m,[]);let V=(0,a.jsx)(J,{direction:["left","right"].indexOf(N)>-1?"vertical":"horizontal",animation:en(A),activeTab:g,paneChildren:k,prefixCls:v,destroyOnHide:D,lazyload:S});return(0,a.jsx)("div",(0,n._)((0,r._)({},(0,u.Z)(O,["headerPadding","tabPosition","defaultActiveTab","showAddButton","extra","onAddTab","activeTab","overflow","editable","renderTabTitle","addButton","deleteButton","icons","children","size","type","scrollPosition","offsetAlign"])),{style:x,className:(0,l.Z)(v,`${v}-${["left","right"].indexOf(N)>-1?"vertical":"horizontal"}`,`${v}-${E}`,`${v}-${N}`,`${v}-size-${y}`,{[`${v}-justify`]:C,[`${v}-rtl`]:h},w),ref:m,children:(0,a.jsxs)(ea.Provider,{value:(0,n._)((0,r._)({},H),{getIdPrefix:e=>({tab:R&&`${R}-tab-${e}`,tabpane:R&&`${R}-panel-${e}`})}),children:["bottom"===N&&V,(0,p.mf)(I)?I((0,r._)((0,n._)((0,r._)({},(0,u.Z)(A,["children","style","className"])),{size:y}),H),q):(0,a.jsx)(q,(0,n._)((0,r._)({},(0,u.Z)(A,["children","style","className"])),{size:y})),"bottom"!==N&&V]})}))}let el=s.forwardRef(es);el.displayName="Tabs",el.TabPane=h;var eu=el},2860:function(e,t,i){"use strict";i(98951),i(83422),i(27607),i(65154)},71365:function(e,t,i){"use strict";i.d(t,{Z:()=>v});var r=i(64664),n=i(33994),o=i(74427),a=i(72322),s=i(18571),l=i(38675),u=i(89068),f=i(69229),c=i(34256),d=i(43227),h=i(98707),p=i(29294),A=i(70307);let k=["red","orangered","orange","gold","lime","green","cyan","blue","arcoblue","purple","pinkpurple","magenta","gray"],m={size:"default"};function g(e,t){let{getPrefixCls:i,componentConfig:g,rtl:b}=(0,s.useContext)(h.E_),v=(0,l.Z)(),y=(0,A.Z)(e,m,null==g?void 0:g.Tag),{className:Q,style:w,children:_,color:x,closable:E,checkable:C,defaultChecked:D,size:S,onClose:L,onCheck:B,icon:P,closeIcon:I,bordered:O}=y,R=(0,o._)(y,["className","style","children","color","closable","checkable","defaultChecked","size","onClose","onCheck","icon","closeIcon","bordered"]),N=i("tag"),[H,V]=(0,s.useState)(!("visible"in y)||y.visible),[F,Z]=(0,s.useState)("checked"in y?y.checked:D),[j,z]=(0,s.useState)(),G="checked"in y?y.checked:F,U="visible"in y?y.visible:H;function X(e){let t=L&&L(e);t&&t.then?(z(!0),t.then(()=>{z(!1),V(!1)}).catch(()=>{z(!1)})):V(!1)}function W(){let e=!G;"checked"in y||Z(e),B&&B(e)}let $=x&&-1!==k.indexOf(x)?x:"",Y=!C||G,q=(0,u.Z)(N,{[`${N}-loading`]:j,[`${N}-hide`]:!U,[`${N}-${$}`]:$,[`${N}-checkable`]:C,[`${N}-checked`]:Y,[`${N}-size-${S}`]:S,[`${N}-bordered`]:O,[`${N}-custom-color`]:Y&&x&&!$,[`${N}-rtl`]:b},Q),J=(0,r._)({},w);x&&!$&&Y&&(J.backgroundColor=x,J.borderColor=x);let K=(0,d.Z)(R,["visible"]);return C&&(K.onClick=W),(0,a.jsxs)("div",(0,n._)((0,r._)({ref:t,style:J,className:q},K),{children:[P&&(0,a.jsx)("span",{className:`${N}-icon`,children:P}),(0,a.jsx)("span",{className:`${N}-content`,children:_}),E&&!j&&null!==I&&(0,a.jsx)(p.Z,(0,n._)((0,r._)({prefix:N,className:`${N}-close-btn`,onClick:X,role:"button",tabIndex:0},v({onPressEnter:X})),{"aria-label":"Close",children:void 0!==I?I:(0,a.jsx)(f.Z,{})})),j&&(0,a.jsx)("span",{className:`${N}-loading-icon`,children:(0,a.jsx)(c.Z,{})})]}))}let b=(0,s.forwardRef)(g);b.displayName="Tag";var v=b},44022:function(e,t,i){"use strict";i(98951),i(98932)},74993:function(e,t,i){"use strict";i.d(t,{Z:()=>m});var r=i(64664),n=i(33994),o=i(74427),a=i(72322),s=i(18571),l=i(89068),u=i(51550),f=i(98707),c=i(17862),d=i(70307),h=i(29871);let p={position:"top",trigger:"hover",escToClose:!1,unmountOnExit:!0,blurToHide:!0,popupHoverStay:!0,checkOverflow:!1,keepInsidePopupContainer:!1};function A(e,t){let{getPrefixCls:i,componentConfig:A}=(0,s.useContext)(f.E_),k=(0,d.Z)(e,p,null==A?void 0:A.Tooltip),{style:m,className:g,children:b,trigger:v,escToClose:y,defaultPopupVisible:Q,position:w,unmountOnExit:_,popupVisible:x,prefixCls:E,blurToHide:C,popupHoverStay:D,disabled:S,onVisibleChange:L,triggerProps:B,childrenPrefix:P,getPopupContainer:I,keepInsidePopupContainer:O,content:R,mini:N,color:H,showArrow:V=!1,checkOverflow:F}=k,Z=(0,o._)(k,["style","className","children","trigger","escToClose","defaultPopupVisible","position","unmountOnExit","popupVisible","prefixCls","blurToHide","popupHoverStay","disabled","onVisibleChange","triggerProps","childrenPrefix","getPopupContainer","keepInsidePopupContainer","content","mini","color","showArrow","checkOverflow"]),j=(0,s.useRef)(),z=(e=0,t)=>{j.current&&j.current.updatePopupPosition(e,t)};(0,s.useImperativeHandle)(t,()=>({updatePopupPosition:z}),[]);let G=E||i("tooltip"),U=(0,r._)({},(0,c.Z)(Z,u.C),(0,c.m)(Z),B),X=(0,h.mf)(R)?R():R,W=e=>null==e||!1===e||"string"==typeof e&&""===e.trim();return"popupVisible"in k?U.popupVisible=x:W(X)&&(U.popupVisible=!1),(0,a.jsx)(u.Z,(0,n._)((0,r._)({style:(0,r._)({maxWidth:350},m),className:g,ref:j,classNames:"zoomInFadeOut",duration:{enter:300,exit:100},popup:()=>(0,a.jsx)("div",{style:{backgroundColor:H},className:(0,l.Z)(`${G}-content`,`${G}-content-${w}`,{[`${G}-mini`]:N}),role:"tooltip",children:(0,a.jsx)("div",{className:`${G}-content-inner`,children:X})}),clickToCloseTooltip:!0,position:w,disabled:S,trigger:v,escToClose:y,showArrow:V,popupAlign:{left:4,right:4,top:4,bottom:4},mouseEnterDelay:200,mouseLeaveDelay:200,unmountOnExit:_,popupHoverStay:D,blurToHide:C,childrenPrefix:P||G,getPopupContainer:I,keepInsidePopupContainer:O,onVisibleChange:L,defaultPopupVisible:Q,checkOverflow:F},U),{children:b}))}let k=(0,s.forwardRef)(A);k.displayName="Tooltip";var m=k},94672:function(e,t,i){"use strict";i(98951),i(60061),i(11523)},27607:function(e,t,i){"use strict";i(98951),i(60061),i(11523)},51550:function(e,t,i){"use strict";i.d(t,{C:()=>D,Z:()=>I});var r=i(64664),n=i(33994),o=i(72322),a=i(18571),s=i(95291),l=i(52444),u=i(75107),f=i(8158),c=i(29871),d=i(17862),h=i(42605),p=i(80907),A=e=>{let{getContainer:t,children:i}=e,r=(0,a.useRef)();return((0,p.Z)()||null===r.current)&&!f.ET&&(r.current=t()),(0,a.useEffect)(()=>()=>{let e=r.current;e&&e.parentNode&&(e.parentNode.removeChild(e),r.current=null)},[]),r.current?s.createPortal(i,r.current):null},k=i(53243),m=i(89068),g=i(98707);function b(e,t,i){if(!i||!e||f.ET)return{left:0,width:0,height:0,top:0};let r=e=>document.documentElement[e]||document.body[e],n=i===document.body?r("scrollTop"):i.scrollTop,o=i===document.body?r("scrollLeft"):i.scrollLeft,{left:a,top:s,width:l,height:u}=t,c=i===document.body?0:i.getBoundingClientRect().left;return{left:a+o-c,top:s+n-(i===document.body?0:i.getBoundingClientRect().top),width:l,height:u}}let v=function(e,t,i){return it?t:i},y=(e,t)=>{let i=0,o=0,a={};for(let n in a=t?(0,r._)({left:12,right:12,top:12,bottom:12},e):(0,r._)({},e))if((0,c.kJ)(a[n])){let e=0;["top","bottom"].indexOf(n)>-1?(e=1,i=a[n][0]):o=a[n][1],a[n]=a[n][e]}return(0,n._)((0,r._)({},a),{horizontalOffset:i,verticalOffset:o})},Q=(e,t)=>t?{left:t.clientX,top:t.clientY,width:0,height:0,right:t.clientX,bottom:t.clientY}:e.getBoundingClientRect();var w=(e,t,i,r,n)=>{let{autoAlignPopupWidth:o,autoAlignPopupMinWidth:a,alignPoint:s,style:l,popupAlign:u,showArrow:f,position:c,autoFitPosition:d,bottomOffset:h,keepInsidePopupContainer:p,boundaryOffset:A}=e;if(!i||!t||!r)return{};let k={},m=Q(i,s&&n),{left:g,top:w,width:_,height:x}=b(i,m,r),E=y(u,f),C=E.left||0,D=E.right||0,S=E.top||0,L=E.bottom||0;o&&(null==l?void 0:l.width)===void 0&&(t.style.width=`${i.offsetWidth}px`),a&&(t.style.minWidth=`${i.offsetWidth}px`);let B=c,P={},I=e=>{var i,n;if(!d)return;let o=(null==(i=document.documentElement)?void 0:i.clientHeight)||window.innerHeight,a=(null==(n=document.documentElement)?void 0:n.clientWidth)||window.innerWidth,s=!1,{left:l=0,top:u=0}=null!=A?A:{},f={left:g-m.left,top:w-m.top},{top:c=0,left:b=0}=k;("top"===e||"bottom"===e)&&(f.left>b&&m.right>12?(k.left=Math.max(f.left,g-t.clientWidth),k.left=Math.max(k.left,g-t.clientWidth+24)):b-f.left+t.clientWidth>a&&a-m.left>12&&(k.left=Math.max(f.left,f.left+a-t.clientWidth-l),k.left=Math.max(k.left,g-t.clientWidth+24))),("left"===e||"right"===e)&&(f.top>c&&m.bottom>12?(k.top=f.top,k.top=Math.max(k.top,w-t.clientHeight+m.height/2)):c-f.top+t.clientHeight>o&&o-m.top>12&&(k.top=Math.max(f.top,f.top+o-t.clientHeight-u),k.top=Math.max(k.top,w-t.clientHeight+m.height/2))),"top"===e&&(f.top>c||p&&c<0)&&(m.topo||p&&v>r.getBoundingClientRect().bottom)&&(o-m.bottom-hb&&(m.lefta&&(a-m.right{e&&t in e&&(i[t]=e[t],delete n[t])}),{picked:i,omitted:n}}let L={blurToHide:!0,clickToClose:!0,clickToCloseTooltip:!1,classNames:"fadeIn",trigger:"hover",position:"bottom",duration:200,unmountOnExit:!0,popupAlign:{},popupHoverStay:!0,clickOutsideToClose:!0,escToClose:!1,mouseLeaveToClose:!0,containerScrollToClose:!1,getDocument:()=>window.document,autoFixPosition:!0,mouseEnterDelay:100,mouseLeaveDelay:100,autoFitPosition:!0,checkOverflow:!1,keepInsidePopupContainer:!1},B={};class P extends a.PureComponent{static getDerivedStateFromProps(e,t){return"popupVisible"in e&&e.popupVisible!==t.popupVisible?{popupVisible:e.popupVisible}:null}componentDidMount(){this.componentDidUpdate(this.getMergedProps()),this.isDidMount=!0,this.unmount=!1,this.childrenDom=this.getRootElement(),this.state.popupVisible&&(this.childrenDomSize=C(this.childrenDom))}componentDidUpdate(e){let t=this.getMergedPropByKey("popupVisible",e),i=this.getMergedPropByKey("popupVisible");!t&&i&&this.update();let{popupVisible:r}=this.state;this.popupOpen=r;let n=this.getMergedPropByKey("getDocument");if(!r){this.offClickOutside(),this.offContainerResize(),this.offWindowResize(),this.offScrollListeners();return}let o=C(this.childrenDom);if(JSON.stringify(o)!==JSON.stringify(this.childrenDomSize)&&(this.updatePopupPosition(),this.childrenDomSize=o),this.onContainerResize(),(this.getMergedPropByKey("updateOnScroll")||this.getMergedPropByKey("containerScrollToClose"))&&this.onContainersScroll(),this.handleWindowResize||((0,f.on)(window,"resize",this.handleUpdatePosition),this.handleWindowResize=!0),!this.handleClickOutside){let e=(0,c.mf)(n)&&n();e&&((0,f.on)(e,"mousedown",this.onClickOutside),this.handleClickOutside=!0)}}componentWillUnmount(){this.unmount=!0,this.offClickOutside(),this.clearTimer(),this.offWindowResize(),this.offScrollListeners(),this.offContainerResize(),this.childrenDom=null,this.popupContainer&&(this.popupContainer.remove(),this.popupContainer=null),(0,x.N)(this.rafId)}clearDelayTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}render(){var e;let[t,i,s,u,f,c,h,p,g,b,v,y,Q,w,_]=this.getMergedPropByKeys(["children","style","className","arrowProps","disabled","popup","classNames","duration","unmountOnExit","alignPoint","autoAlignPopupWidth","position","childrenPrefix","showArrow","popupStyle"]),x=t||0===t,{getPrefixCls:E,zIndex:C,rtl:D}=this.context,{popupVisible:S,popupStyle:L}=this.state;if(!c)return null;let P={},I={onMouseDown:this.onPopupMouseDown};this.isHoverTrigger()&&!f?(P.onMouseEnter=this.onMouseEnter,P.onMouseLeave=this.onMouseLeave,b&&(P.onMouseMove=this.onMouseMove),this.isPopupHoverHide()||(I.onMouseEnter=this.onPopupMouseEnter,I.onMouseLeave=this.onPopupMouseLeave)):(P.onMouseEnter=this.triggerOriginEvent("onMouseEnter"),P.onMouseLeave=this.triggerOriginEvent("onMouseLeave")),this.isContextMenuTrigger()&&!f?(P.onContextMenu=this.onContextMenu,P.onClick=this.hideContextMenu):P.onContextMenu=this.triggerOriginEvent("onContextMenu"),(this.isClickTrigger()||this.props.clickToCloseTooltip)&&!f?P.onClick=this.onClick:P.onClick=P.onClick||this.triggerOriginEvent("onClick"),this.isFocusTrigger()&&!f?(P.onFocus=this.onFocus,this.isBlurToHide()&&(P.onBlur=this.onBlur)):(P.onFocus=this.triggerOriginEvent("onFocus"),P.onBlur=this.triggerOriginEvent("onBlur")),f?P.onKeyDown=this.triggerOriginEvent("onKeyDown"):P.onKeyDown=this.onKeyDown;let O=this.getChild(),R=a.Children.only(c());O.props.className&&(P.className=O.props.className),Q&&S&&(P.className=P.className?`${P.className} ${Q}-open`:`${Q}-open`),this.isFocusTrigger()&&(P.tabIndex=f?-1:0);let N=E("trigger"),H=(0,m.Z)(N,Q,`${N}-position-${y}`,{[`${N}-rtl`]:D},s,"rr-test-lalal"),V=x&&(0,o.jsx)(k.Z,{onResize:this.onResize,children:a.cloneElement(O,(0,r._)({},P))}),F=(0,o.jsx)(l.Z,{in:!!S,timeout:p,classNames:h,unmountOnExit:g,appear:!0,mountOnEnter:!0,onEnter:e=>{e.style.display="initial",e.style.pointerEvents="none","slideDynamicOrigin"===h&&(e.style.transform=this.getTransformTranslate())},onEntering:e=>{"slideDynamicOrigin"===h&&(e.style.transform="")},onEntered:e=>{e.style.pointerEvents="auto",this.forceUpdate()},onExit:e=>{e.style.pointerEvents="none"},onExited:e=>{e.style.display="none",g&&(this.triggerRef=null),this.setState({popupStyle:B})},children:(0,o.jsx)(k.Z,{onResize:this.onResize,children:(0,o.jsxs)("span",(0,n._)((0,r._)((0,n._)((0,r._)({ref:e=>this.triggerRef=e,"trigger-placement":this.realPosition,style:(0,r._)((0,n._)((0,r._)({opacity:S&&Object.keys(L).length>0?1:0,width:v&&(null==i?void 0:i.width)===void 0?null==(e=this.childrenDomSize)?void 0:e.width:""},L),{position:"absolute",zIndex:C||""}),i)},I),{className:H}),(0,d.m)(this.props)),{children:[(0,o.jsx)(R.type,(0,n._)((0,r._)({ref:R.ref},R.props),{style:(0,r._)({},R.props.style,_)})),(w||u)&&(0,o.jsx)("div",{className:(0,m.Z)(`${N}-arrow-container`,{[`${Q}-arrow-container`]:Q}),children:(0,o.jsx)("div",(0,n._)((0,r._)({},u),{className:(0,m.Z)(`${N}-arrow`,{[`${Q}-arrow`]:Q},null==u?void 0:u.className),style:(0,r._)({},this.arrowStyle,null==u?void 0:u.style)}))})]}))})}),Z=S||this.triggerRef?(0,o.jsx)(A,{getContainer:this.getContainer,children:F}):null;return x?(0,o.jsxs)(a.Fragment,{children:[V,Z]}):Z}constructor(e,t){super(e,t),this.delayTimer=null,this.updatePositionTimer=null,this.popupOpen=!1,this.mousedownToHide=!1,this.hasPopupMouseDown=!1,this.unmount=!1,this.isDidMount=!1,this.mouseLocation={clientX:0,clientY:0},this.observerContainer=null,this.scrollElements=null,this.resizeObserver=new u.Z(()=>{this.handleUpdatePosition()}),this.childrenDom=null,this.childrenDomSize={},this.bottomOffset=0,this.getMergedProps=e=>{var t,i;return E(e||this.props,L,null==(i=this.context)||null==(t=i.componentConfig)?void 0:t.Trigger)},this.getMergedPropByKey=(e,t)=>{var i,r,n;let o=t||this.props;return void 0!==o[e]?o[e]:(null==(n=this.context)||null==(r=n.componentConfig)||null==(i=r.Trigger)?void 0:i[e])!==void 0?this.context.componentConfig.Trigger[e]:L[e]},this.getMergedPropByKeys=(e,t)=>e.map(e=>this.getMergedPropByKey(e,t)),this.getRootElement=()=>(this.childrenDom=(0,s.findDOMNode)(this),this.childrenDom),this.offScrollListeners=()=>{(this.scrollElements||[]).forEach(e=>{(0,f.S1)(e,"scroll",this.handleScroll)}),this.scrollElements=null},this.offWindowResize=()=>{this.handleWindowResize=!1,(0,f.S1)(window,"resize",this.handleUpdatePosition)},this.offContainerResize=()=>{this.resizeObserver&&this.observerContainer&&(this.resizeObserver.unobserve(this.observerContainer),this.observerContainer=null)},this.handleScroll=()=>{let e=this.getMergedPropByKey("containerScrollToClose"),t=this.getMergedPropByKey("updateOnScroll");e?this.setPopupVisible(!1):t&&this.handleUpdatePosition()},this.onContainersScroll=()=>{var e;!this.scrollElements&&this.childrenDom&&(this.scrollElements=(0,f.IF)(this.childrenDom,null==(e=this.popupContainer)?void 0:e.parentNode),this.scrollElements.forEach(e=>{(0,f.on)(e,"scroll",this.handleScroll)}))},this.onContainerResize=()=>{var e;let t=null==(e=this.popupContainer)?void 0:e.parentNode;this.resizeObserver&&this.observerContainer!==t&&(this.offContainerResize(),t&&this.resizeObserver.observe(t),this.observerContainer=t)},this.handleUpdatePosition=(0,_.Z)(()=>{this.updatePopupPosition()}),this.isClickTrigger=()=>[].concat(this.getMergedPropByKey("trigger")).indexOf("click")>-1,this.isFocusTrigger=()=>[].concat(this.getMergedPropByKey("trigger")).indexOf("focus")>-1,this.isHoverTrigger=()=>[].concat(this.getMergedPropByKey("trigger")).indexOf("hover")>-1,this.isContextMenuTrigger=()=>[].concat(this.getMergedPropByKey("trigger")).indexOf("contextMenu")>-1,this.isMouseLeaveToClose=()=>this.isHoverTrigger()&&this.getMergedPropByKey("mouseLeaveToClose"),this.isPopupHoverHide=()=>this.isHoverTrigger()&&!this.getMergedPropByKey("popupHoverStay"),this.isClickToHide=()=>(this.isClickTrigger()||this.isContextMenuTrigger()||this.props.clickToCloseTooltip)&&this.getMergedPropByKey("clickToClose"),this.isBlurToHide=()=>this.isFocusTrigger()&&this.getMergedPropByKey("blurToHide"),this.clearTimer=()=>{this.updatePositionTimer&&(this.updatePositionTimer.cancel?this.updatePositionTimer.cancel():(clearTimeout(this.updatePositionTimer),this.updatePositionTimer=null)),this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null),this.mouseDownTimeout&&(clearTimeout(this.mouseDownTimeout),this.mouseDownTimeout=null)},this.offClickOutside=()=>{if(this.handleClickOutside){let e=this.getMergedPropByKey("getDocument"),t=(0,c.mf)(e)&&e();(0,f.S1)(t,"mousedown",this.onClickOutside),this.handleClickOutside=!1}},this.getTransformOrigin=e=>{var t,i;let r=this.triggerRef;if(!r)return{};let n=this.getMergedPropByKey("showArrow"),o=this.getMergedPropByKey("classNames"),a=n&&(null==(t=this.arrowStyle)?void 0:t.top)||0,s=n&&(null==(i=this.arrowStyle)?void 0:i.left)||0;a=a?`${a}px`:"",s=s?`${s}px`:"";let l={top:`${s||"50%"} 100% 0`,tl:`${s||"15px"} 100% 0`,tr:`${s||`${r.clientWidth-15}px`} 100% 0`,bottom:`${s||"50%"} 0 0`,bl:`${s||"15px"} 0 0`,br:`${s||`${r.clientWidth-15}px`} 0 0`,left:`100% ${a||"50%"} 0`,lt:`100% ${a||"15px"} 0`,lb:`100% ${a||`${r.clientHeight-15}px`} 0`,right:`0 ${a||"50%"} 0`,rt:`0 ${a||"15px"} 0`,rb:`0 ${a||`${r.clientHeight-15}px`} 0`};if(o&&o.indexOf("zoom")>-1)return{transformOrigin:l[e]};if("slideDynamicOrigin"===o){let t="0% 0%";return["top","tl","tr"].indexOf(e)>-1&&(t="100% 100%"),{transformOrigin:t}}return{}},this.getTransformTranslate=()=>{if("slideDynamicOrigin"!==this.getMergedPropByKey("classNames"))return"";switch(this.realPosition){case"bottom":case"bl":case"br":return"scaleY(0.9) translateY(-4px)";case"top":case"tl":case"tr":return"scaleY(0.9) translateY(4px)";default:return""}},this.getPopupStyle=()=>{var e;if(this.unmount||!this.popupContainer)return B;let t=this.getMergedPropByKey("keepInsidePopupContainer"),i=this.popupContainer;if(t){let{getPopupContainer:e}=this.context;i=(this.getMergedPropByKey("getPopupContainer")||e)(this.getRootElement())}let n=this.triggerRef,o=this.getRootElement(),{style:a,arrowStyle:s,realPosition:l}=w({autoAlignPopupWidth:this.getMergedPropByKey("autoAlignPopupWidth"),autoAlignPopupMinWidth:this.getMergedPropByKey("autoAlignPopupMinWidth"),alignPoint:this.getMergedPropByKey("alignPoint"),style:this.getMergedPropByKey("style"),popupAlign:this.getMergedPropByKey("popupAlign"),showArrow:this.getMergedPropByKey("showArrow"),position:this.getMergedPropByKey("position"),autoFitPosition:this.getMergedPropByKey("autoFitPosition"),bottomOffset:null!=(e=this.props.bottomOffset)?e:this.bottomOffset,keepInsidePopupContainer:t,boundaryOffset:this.getMergedPropByKey("boundaryOffset")},n,o,i,this.mouseLocation);return this.realPosition=l||this.getMergedPropByKey("position"),this.arrowStyle=s||{},(0,r._)({},a,this.getTransformOrigin(this.realPosition))},this.showPopup=(e=()=>{})=>{let t=this.getPopupStyle();this.setState({popupStyle:t},e)},this.update=(0,_.Z)(e=>{if(this.unmount||!this.state.popupVisible)return;let t=this.getPopupStyle();this.setState({popupStyle:t},()=>{e&&e()})}),this.updatePopupPosition=(e=0,t)=>{if(this.state.popupVisible){if(e<4){this.updatePositionTimer=this.update(t);return}this.updatePositionTimer=setTimeout(()=>{let e=this.getPopupStyle();this.setState({popupStyle:e},()=>{t&&t()})},e)}},this.setPopupVisible=(e,t=0,i)=>{let r=this.getMergedPropByKey("onVisibleChange"),n=this.getMergedPropByKey("checkOverflow"),o=this.getMergedPropByKey("popupVisible"),a=this.state.popupVisible;if(e&&n){let e="function"==typeof n?n:f.YO;if(!this.childrenDom||!e(this.childrenDom))return void this.setState({popupVisible:!1},()=>{i&&i()})}e!==a?this.delayToDo(t,()=>{r&&r(e),void 0===o?e?this.setState({popupVisible:!0},()=>{this.showPopup(i)}):this.setState({popupVisible:!1},()=>{i&&i()}):i&&i()}):i&&i()},this.delayToDo=(e,t)=>{e?(this.clearDelayTimer(),this.delayTimer=setTimeout(()=>{t(),this.clearDelayTimer()},e)):t()},this.onClickOutside=e=>{let t=this.getMergedPropByKey("onClickOutside"),i=this.getMergedPropByKey("clickOutsideToClose"),r=this.triggerRef,n=this.getRootElement();(0,f.r3)(r,e.target)||(0,f.r3)(n,e.target)||this.hasPopupMouseDown||(t&&t(),!i||this.isBlurToHide()||this.isHoverTrigger()||this.setPopupVisible(!1))},this.onKeyDown=e=>{let t=e.keyCode||e.which;this.triggerPropsEvent("onKeyDown",e),t===h.AV.code&&this.onPressEsc(e)},this.onPressEsc=e=>{this.getMergedPropByKey("escToClose")&&e&&e.key===h.AV.key&&this.state.popupVisible&&this.setPopupVisible(!1)},this.onMouseEnter=e=>{let t=this.getMergedPropByKey("mouseEnterDelay");this.triggerPropsEvent("onMouseEnter",e),this.clearDelayTimer(),this.setPopupVisible(!0,t||0)},this.onMouseMove=e=>{this.triggerPropsEvent("onMouseMove",e),this.setMouseLocation(e),this.state.popupVisible&&this.update()},this.onMouseLeave=e=>{let t=this.getMergedPropByKey("mouseLeaveDelay");this.clearDelayTimer(),this.triggerPropsEvent("onMouseLeave",e),this.isMouseLeaveToClose()&&this.state.popupVisible&&this.setPopupVisible(!1,t||0)},this.onPopupMouseEnter=()=>{this.clearDelayTimer()},this.onPopupMouseLeave=e=>{this.onMouseLeave(e)},this.setMouseLocation=e=>{this.getMergedPropByKey("alignPoint")&&(this.mouseLocation={clientX:e.clientX,clientY:e.clientY})},this.onContextMenu=e=>{e.preventDefault(),this.triggerPropsEvent("onContextMenu",e),this.setMouseLocation(e),this.state.popupVisible?this.getMergedPropByKey("alignPoint")&&this.update():this.setPopupVisible(!0,0)},this.hideContextMenu=e=>{let{popupVisible:t}=this.state;t&&(this.mousedownToHide=!0),this.triggerPropsEvent("onClick",e),this.isClickToHide()&&t&&this.setPopupVisible(!t,0)},this.onClick=e=>{let{popupVisible:t}=this.state;t&&(this.mousedownToHide=!0),this.triggerPropsEvent("onClick",e),this.setMouseLocation(e),(this.isClickToHide()||!t)&&(this.isClickTrigger()||!this.props.clickToCloseTooltip||t)&&this.setPopupVisible(!t,0)},this.onFocus=e=>{let t=this.getMergedPropByKey("focusDelay"),i=()=>{this.triggerPropsEvent("onFocus",e)};this.clearDelayTimer(),!this.mousedownToHide&&(this.state.popupVisible?i&&i():this.setPopupVisible(!0,t||0,i)),this.mousedownToHide=!1},this.onBlur=e=>{this.setPopupVisible(!1,200,()=>this.triggerPropsEvent("onBlur",e))},this.onResize=()=>{this.getMergedPropByKey("autoFixPosition")&&this.state.popupVisible&&this.updatePopupPosition()},this.onPopupMouseDown=()=>{this.hasPopupMouseDown=!0,clearTimeout(this.mouseDownTimeout),this.mouseDownTimeout=setTimeout(()=>{this.hasPopupMouseDown=!1},0)},this.getChild=()=>{let{children:e}=this.props,t=e,i=t&&"string"!=typeof t&&t.type,s=e;if(["string","number"].indexOf(typeof e)>-1||a.Children.count(e)>1)s=(0,o.jsx)("span",{children:e});else if(t&&i&&(!0===i.__BYTE_BUTTON||!0===i.__BYTE_CHECKBOX||!0===i.__BYTE_SWITCH||!0===i.__BYTE_RADIO||"button"===i)&&t.props.disabled){let{picked:e,omitted:i}=S(t.props.style,["position","left","right","top","bottom","float","display","zIndex"]);s=(0,o.jsx)("span",{className:t.props.className,style:(0,n._)((0,r._)({display:"inline-block"},e),{cursor:"not-allowed"}),children:a.cloneElement(t,{style:(0,n._)((0,r._)({},i),{pointerEvents:"none"}),className:void 0})})}return s||(0,o.jsx)("span",{})},this.appendToContainer=e=>{if((0,x.N)(this.rafId),this.isDidMount){let{getPopupContainer:t}=this.context,i=(this.getMergedPropByKey("getPopupContainer")||t)(this.getRootElement());if(i)return void i.appendChild(e)}this.rafId=(0,x.W)(()=>{this.appendToContainer(e)})},this.getContainer=()=>{let e=document.createElement("div");return e.style.width="100%",e.style.position="absolute",e.style.top="0",e.style.left="0",this.popupContainer=e,this.appendToContainer(e),e},this.triggerPropsEvent=(e,t)=>{let i=this.getChild(),r=i&&i.props&&i.props[e],n=this.getMergedPropByKey(e);(0,c.mf)(r)&&r(t),(0,c.mf)(n)&&n(t)},this.triggerOriginEvent=e=>{let t=this.getChild(),i=t&&t.props&&t.props[e],r=this.getMergedPropByKey(e);return(0,c.mf)(r)&&(0,c.mf)(i)?e=>{i(e),r(e)}:i||r};let i=this.getMergedPropByKey("popupVisible",e),l=null!=i?i:this.getMergedPropByKey("defaultPopupVisible",e);this.popupOpen=!!l,this.state={popupVisible:!!l,popupStyle:B}}}P.displayName="Trigger",P.contextType=g.E_;var I=P},85071:function(e,t,i){"use strict";i(98951),i(18221)},60061:function(e,t,i){"use strict";i(98951),i(18221)},56370:function(e,t,i){"use strict";i.d(t,{Z:()=>eu});var r,n=i(72322),o=i(18571),a=i(89068),s=i(98707);function l(e,t){let{getPrefixCls:i}=(0,o.useContext)(s.E_),r=i("typography"),{className:l,style:u,children:f}=e,c=(0,a.Z)(r,l);return(0,n.jsx)("article",{ref:t,style:u,className:c,children:f})}let u=(0,o.forwardRef)(l);u.displayName="Typography";var f=u,c=i(64664),d=i(33994),h=i(74427),p=i(53243),A=i(38675),k=i(74993),m=i(29871),g=i(64349);function b(e){return v.apply(this,arguments)}function v(){return(v=(0,g._)(function*(e){if(navigator.clipboard&&navigator.clipboard.writeText)try{yield navigator.clipboard.writeText(e);return}catch(e){}let t=document.createElement("span");t.textContent=e,t.style.whiteSpace="pre",document.body.appendChild(t);let i=window.getSelection(),r=window.document.createRange();i.removeAllRanges(),r.selectNode(t),i.addRange(r);let n=!1;try{n=window.document.execCommand("copy")}catch(e){}return i.removeAllRanges(),window.document.body.removeChild(t),n?Promise.resolve():Promise.reject(new DOMException("The request is not allowed","NotAllowedError"))})).apply(this,arguments)}var y=i(60494),Q=i(90765),w=i(87625);function _(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,r)}return i}function x(e){for(var t=1;t(0,m.HD)(e)||(0,m.hj)(e);function N(e){let t=[""];return o.Children.forEach(e,e=>{let i=t.length-1,r=t[i];R(e)&&R(r)?t[i]=`${r}${e}`:e&&e.props&&e.props.children&&t.push(N(e.props.children))}),t.join("")}function H(e){let{children:t,copyable:i,editable:r,ellipsis:a,expanding:s,setEditing:l,onClickExpand:u,forceShowExpand:f,isEllipsis:h,currentContext:p={}}=e,g=(0,A.Z)(),{getPrefixCls:v,locale:y}=p,Q=v("typography"),[w,_]=(0,o.useState)(!1),x=(0,o.useRef)(null),E=(0,m.Kn)(i)?i:{},C=(0,m.Kn)(a)?a:{},L=(0,m.Kn)(r)?r:{},B=(0,m.kJ)(C.expandNodes)?C.expandNodes:[y.Typography.fold,y.Typography.unfold];function P(e){if(w)return;let i=void 0!==E.text?E.text:N(t);b(i),_(!0),E.onCopy&&E.onCopy(i,e),x.current=setTimeout(()=>{_(!1)},3e3)}(0,o.useEffect)(()=>()=>{clearTimeout(x.current),x.current=null},[]);let I=e=>{L.onStart&&L.onStart(N(t),e),l(!0)},R=E.tooltips||[y.Typography.copy,y.Typography.copied],H=i&&(0,n.jsx)(k.Z,{content:w?R[1]:R[0],children:(0,n.jsx)("span",(0,d._)((0,c._)({className:w?`${Q}-operation-copied`:`${Q}-operation-copy`,onClick:P,role:"button","aria-label":R[0],tabIndex:0},g({onPressEnter:P})),{children:w?(0,n.jsx)(S.Z,{}):E.icon||(0,n.jsx)(D,{})}))}),V=r&&(0,n.jsx)(k.Z,{content:y.Typography.edit,children:(0,n.jsx)("span",(0,d._)((0,c._)({tabIndex:0,"aria-label":y.Typography.edit,role:"button",className:`${Q}-operation-edit`,onClick:I},g({onPressEnter:I})),{children:(0,n.jsx)(O,{})}))}),F=f||C.expandable&&h?(0,n.jsx)("a",(0,d._)((0,c._)({className:`${Q}-operation-expand`,onClick:u,role:"button",tabIndex:0,"aria-label":y.Typography.unfold},g({onPressEnter:u})),{children:s?B[0]:B[1]})):null;return(0,n.jsxs)(n.Fragment,{children:[F,V,H]})}var V=i(44932);function F(e){let{prefixCls:t,children:i,setEditing:r,editableConfig:s}=e,l=(0,a.Z)(`${t}-typography`,`${t}-edit-content`),u=N(i),f=(0,o.useRef)(null);function c(){r(!1),s.onEnd&&s.onEnd(u)}function d(e){s.onChange&&s.onChange(e)}function h(){c()}return(0,o.useEffect)(()=>{if(f.current&&f.current.focus&&f.current.focus(),f.current&&f.current.dom){let{length:e}=f.current.dom.value;f.current.dom.setSelectionRange(e,e)}},[]),(0,n.jsx)("div",{className:l,children:(0,n.jsx)(V.Z.TextArea,{onBlur:h,ref:f,value:u,autoSize:!0,onChange:d,onPressEnter:c})})}var Z=i(93238),j=i(43227),z=i(29892),G=i(17606),U=i(8261),X=i(28901);let W=(e,t)=>{if("undefined"!=typeof window&&window.CSS&&window.CSS.supports)return(0,m.o8)(t)?window.CSS.supports(e):window.CSS.supports(e,t);if("undefined"!=typeof document&&document.createElement){let i=document.createElement("div");return i.setAttribute("style",`${e}:${t};`),void 0!==i.style[e]}return!1},$={display:" -webkit-box","-webkit-line-clamp":2},Y=()=>Object.entries($).every(([e,t])=>W(e,t));var q=function(e){let{cssEllipsis:t,ellipsisStr:i="...",suffix:r,rows:n}=e,a=(0,o.useMemo)(()=>!!t&&(!(n>1)||!!Y())&&"..."===i&&!r,[i,t,n,r]),s={textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},l={textOverflow:"ellipsis",whiteSpace:"normal",overflow:"hidden",WebkitLineClamp:`${e.rows}`,WebkitBoxOrient:"vertical",display:"-webkit-box"};return{simpleEllipsis:a,ellipsisStyle:a?e.rows>1?l:s:{}}};let J="hxj";!function(e){e[e.INIT=0]="INIT",e[e.BEFORE_MEASURE=1]="BEFORE_MEASURE",e[e.MEASURING=2]="MEASURING",e[e.MEASURE_END=3]="MEASURE_END",e[e.NO_NEED_ELLIPSIS=4]="NO_NEED_ELLIPSIS"}(r||(r={}));var K=function(e){let t,{children:i,rows:r=1,width:a,expanding:s,renderMeasureContent:l,simpleEllipsis:u,onEllipsis:f,suffix:d,expandNodes:h,expandable:p,ellipsisStr:A}=e,k=(0,o.useRef)(),g=(0,o.useRef)(),[b,v]=(0,o.useState)([0,0,0]),[y,Q]=(0,o.useState)(0),[w,_]=(0,o.useState)(4),[x,E,C]=b,[D,S]=(0,o.useState)(!1),L=(0,o.useMemo)(()=>o.Children.toArray(i),[i]),B=(0,o.useRef)(0),{ellipsisStyle:P}=q({rows:r,cssEllipsis:!0});(0,z.Z)(()=>{f&&f(D)},[D]);let I=e=>(0,m.HD)(e)||(0,m.hj)(e),O=e=>{let t=0;return e.forEach(e=>{I?t+=String(e).length:t+=1}),t},R=(0,o.useMemo)(()=>O(L),[L]),N=(0,U.Z)(e=>v(e)),H=e=>{let t=[],i=0;if(e>=R)return L;for(let r in L){let n=L[r];if(i>=e)break;let o=I(n)?String(n).length:1;if(o>e-i){t.push(String(n).slice(0,e-i)),i=e;break}i+=o,t.push(n)}return t},V=()=>{if(y){var e,t;if(0===w){let t=r*y,i=(null==(e=g.current)?void 0:e.offsetHeight)>t;!i||u||s?(_(3),S(i),v([0,R,R])):(S(!0),_(1))}else if(1===w){let e=null==k?void 0:k.current.offsetWidth,t=r*a;e>r*a&&(B.current=Math.floor((Math.floor(Math.max(t/e-.1,0)*R)+Math.ceil(Math.min(t/e+.1,1)*R))/2)),_(2)}else if(2===w)if(x!==C-1){let e=null==(t=g.current)?void 0:t.offsetHeight,i=x,n=C;e<=r*y?i=E:n=E;let o=Math.floor((n+i)/2);N([i,o,n])}else N([x,x,x]),_(3)}};(0,X.Z)(()=>{e.rows&&a?(v([0,Math.floor(R/2),R]),_(0)):_(4)},[R,u,s,a,d,h,p,A,e.rows]),(0,X.Z)(()=>{if(k.current&&0===w){let{offsetHeight:e}=k.current;Q(e)}},[w]),(0,X.Z)(()=>{V()},[w,E,x,C,y]);let F={zIndex:-999,position:"fixed",opacity:0,padding:0,margin:0},Z=(0,c._)({whiteSpace:"nowrap"},F),j=u?(0,c._)({textOverflow:"clip"},F):F;if(0===w||1===w)t=(t=(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{ref:k,style:Z,children:0===w?J:l(i,!1)}),(0,n.jsx)("div",{ref:g,style:(0,c._)({width:a},j),children:l(i,D)})]})).props.children;else if(2===w){let e=(0,c._)({height:y*r,width:a},P);t=(t=(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{ref:g,style:(0,c._)({width:a},j),children:l(H(E),D)}),(0,n.jsx)("div",{style:e,children:H(B.current)})]})).props.children}else 3===w?t=l(H(E),D):4===w&&(t=l(i,!1));return{ellipsisNode:t,isEllipsis:D,measureStatus:w}};function ee(e,t){let{type:i,bold:r,disabled:n,mark:o,underline:a,delete:s,code:l}=e,u=[],f=[];return i&&f.push(`${t}-${i}`),n&&f.push(`${t}-disabled`),r&&u.push("b"),a&&u.push("u"),s&&u.push("del"),l&&u.push("code"),o&&u.push("mark"),{component:u,className:f}}var et=function(e){let{componentType:t,style:i,className:l,children:u,editable:f,ellipsis:A,heading:g,blockquote:b}=e,v=(0,h._)(e,["componentType","style","className","children","editable","ellipsis","heading","blockquote"]),y=(0,o.useContext)(s.E_),{getPrefixCls:Q,rtl:w}=y,_=Q("typography"),{component:x,className:E}=ee(e,_),[C,D]=(0,o.useState)(!1),[S,L]=(0,o.useState)(0),B=(0,m.Kn)(f)?f:{},P="editing"in B?B.editing:C,I=A?(0,c._)({rows:1,ellipsisStr:"...",cssEllipsis:!1},(0,m.Kn)(A)?A:{}):{},O=I.wrapper||o.Fragment,[R,V]=(0,G.Z)(!1,{defaultValue:I.defaultExpanded,value:I.expanded}),{simpleEllipsis:U,ellipsisStyle:X}=q(I),W=(e,t)=>{let i=(0,m.o8)(I.ellipsisStr)?"...":I.ellipsisStr,r=!(0,m.o8)(I.suffix)&&I.suffix;return(0,n.jsxs)(O,{children:[e,!t||R||U?"":i,r,ei(t)]})},{ellipsisNode:$,isEllipsis:Y,measureStatus:J}=K((0,d._)((0,c._)({},I),{children:u,expanding:R,width:S,renderMeasureContent:W,simpleEllipsis:U||R})),et=e=>{let{contentRect:t}=null==e?void 0:e[0];if(t){let e=x.includes("code")?t.width-18:t.width;(U&&1===I.rows?[r.NO_NEED_ELLIPSIS]:[r.NO_NEED_ELLIPSIS,r.MEASURE_END]).includes(J)&&L(e)}};function ei(t){return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(H,(0,d._)((0,c._)({},e),{setEditing:D,onClickExpand:er,expanding:R,isEllipsis:t,currentContext:y}))})}function er(t){V(!R),e.onClickExpand&&e.onClickExpand(t),I.onExpand&&I.onExpand(!R,t)}function en(e,t,i,r={}){let n=e;return t.forEach((e,t)=>{let a=0===t?r:{},s=(0,m.Kn)(i.mark)&&i.mark.color?(0,c._)({style:{backgroundColor:i.mark.color}},a):(0,c._)({},a);n=o.createElement(e,(0,c._)({},s),n)}),n}function eo(){let s,f=N(o.Children.toArray(u)),{showTooltip:h}=I,y=(0,m.Kn)(I.showTooltip)&&"popover"===I.showTooltip.type?"popover":"tooltip",Q=(0,m.Kn)(I.showTooltip)&&I.showTooltip.props||{},C="popover"===y?Z.Z:k.Z,D=!Y||h||R?{}:{title:f},S=(0,c._)({style:i},D),L=Y&&h&&!R;"Paragraph"===t?s=b?"blockquote":"div":"Title"===t?s=`h${g}`:"Text"===t&&(s=A?"div":"span");let B=(0,n.jsx)(p.Z,{onResize:et,children:(0,n.jsx)(s,(0,d._)((0,c._)({className:(0,a.Z)(_,E,{[`${_}-rtl`]:w},l)},S,(0,j.Z)(v,["spacing","type","close","bold","disabled","mark","underline","delete","code","copyable","isEllipsis","expanding","onClickExpand","setEditing","forceShowExpand"])),{children:U&&J!==r.INIT&&!R&&Y?en(W((0,n.jsx)("span",{style:X,children:u}),Y),x.length?x:["span"],e,{className:`${_}-simple-ellipsis`}):en($,x,e)}))});return L?(0,n.jsx)(C,(0,d._)((0,c._)({content:f},Q),{children:(0,n.jsx)("span",{children:B})})):B}return(0,z.Z)(()=>{I.onEllipsis&&I.onEllipsis(Y)},[Y]),P?(0,n.jsx)(F,(0,d._)((0,c._)({},e),{prefixCls:_,setEditing:D,editableConfig:B})):eo()};function ei(e){let{heading:t=1}=e,i=(0,h._)(e,["heading"]);return(0,n.jsx)(et,(0,d._)((0,c._)({heading:t},i),{componentType:"Title"}))}ei.displayName="Title";var er=ei;function en(e){return(0,n.jsx)(et,(0,d._)((0,c._)({},e),{componentType:"Text"}))}en.displayName="Text";var eo=en;function ea(e){let{spacing:t="default",className:i}=e,{getPrefixCls:r}=(0,o.useContext)(s.E_),l=r("typography"),u="close"===t?(0,a.Z)(`${l}-spacing-close`,i):i;return(0,n.jsx)(et,(0,d._)((0,c._)({},e),{componentType:"Paragraph",className:u}))}ea.displayName="Paragraph";var es=ea;let el=f;el.Title=er,el.Text=eo,el.Paragraph=es;var eu=el},55582:function(e,t,i){"use strict";i(98951),i(27607),i(22078),i(20559)},7001:function(e,t,i){"use strict";i.d(t,{Z:()=>ti});var r=i(64664),n=i(33994),o=i(74427),a=i(72322),s=i(18571),l=i(89068),u=i(1261),f=i(52444);let c="init",d="uploading",h="done",p="error";var A=i(29871),k=i(98707),m=i(22983);let g=(e,t)=>{if((0,A.Kn)(e)){let i=Object.keys(e).map(t=>`${e[t]} ${t}`).join(","),n=t?{backgroundSize:`${1e4/t}%`}:{};return(0,r._)({backgroundImage:`linear-gradient(to right, ${i})`},n)}return{backgroundColor:e}},b={small:3,default:4,large:8};function v(e){let{type:t,size:i,prefixCls:n,buffer:o,percent:u,status:f,color:c,animation:d,showText:h,bufferColor:p,formatText:k,trailColor:v}=e,y=e.strokeWidth||b[i],Q=`${n}-${t}`,w=y,_="success"===f||"error"===f||u>=100,x=(0,s.useCallback)(()=>(0,A.mf)(k)?k(u):"error"===f?(0,a.jsxs)("span",{children:[u,"% ",(0,a.jsx)(m.Z,{})]}):`${u}%`,[k,u,f]);return(0,a.jsxs)("div",{className:`${Q}-wrapper`,children:[(0,a.jsxs)("div",{className:`${Q}-outer`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":u,style:{height:w,backgroundColor:v},children:[o&&!_&&(0,a.jsx)("div",{className:`${Q}-inner-buffer`,style:(0,r._)({width:`${u>0?u+10:0}%`},g(p))}),(0,a.jsx)("div",{className:(0,l.Z)(`${Q}-inner`,{[`${Q}-inner-animate`]:d}),style:(0,r._)({width:`${u}%`},g(c,u))})]}),h&&(0,a.jsx)("div",{className:(0,l.Z)(`${Q}-text`,{[`${Q}-text-with-icon`]:f}),children:x()})]})}v.defaultProps={showText:!0,size:"default",status:"normal"};var y=v,Q=i(4227),w=i(60494),_=i(90765),x=i(87625);function E(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,r)}return i}function C(e){for(var t=1;t{let{size:t,percent:i=0,prefixCls:r,showText:n,status:o,formatText:u}=e,f=(0,A.Kn)(e.color),c=e.width||O[t],d=e.strokeWidth||("mini"===t?c/2:I[t]),h=(c-d)/2,p=2*Math.PI*h,k=c/2,m=`${r}-circle`,g=`${m}-svg`,b=(0,s.useCallback)(e=>{if((0,A.mf)(u))return u(i);switch(e){case"success":return(0,a.jsx)(Q.Z,{});case"error":return(0,a.jsx)(L,{});default:return`${i}%`}},[u,i]),v=(0,P.Z)(`${r}-linear-gradient-`),y=f?`url(#${v})`:e.color,w=(0,a.jsxs)("div",{className:`${m}-wrapper`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":i,style:{width:c,height:c},children:[(0,a.jsxs)("svg",{viewBox:`0 0 ${c} ${c}`,className:`${g}`,children:[f&&(0,a.jsx)("defs",{children:(0,a.jsx)("linearGradient",{id:v,x1:"0",y1:"1",x2:"0",y2:"0",children:Object.keys(e.color).sort().map(t=>(0,a.jsx)("stop",{offset:t,stopColor:e.color[t]},t))})}),(0,a.jsx)("circle",{className:`${m}-mask`,fill:"none",cx:k,cy:k,r:h,strokeWidth:e.pathStrokeWidth||("mini"===t?d:Math.max(2,d-2)),style:{stroke:e.pathStrokeColor}}),(0,a.jsx)("circle",{className:`${m}-path`,fill:"none",cx:k,cy:k,r:h,strokeWidth:d,style:{stroke:y,strokeDasharray:p,strokeDashoffset:(i>100?100:1-i/100)*p}})]}),n&&"mini"!==t&&(0,a.jsx)("div",{className:`${m}-text`,children:b(o)})]});return"mini"===t&&"success"===o&&"circle"===e.type&&(w=(0,a.jsx)("div",{className:(0,l.Z)(`${m}-wrapper`,`${m}-icon-wrapper`),style:{width:c,height:c},children:(0,a.jsx)(Q.Z,{style:{fontSize:12,color:y}})})),"mini"===t&&n?(0,a.jsx)(B.Z,{content:(0,a.jsx)("div",{className:`${m}-text`,children:b("normal")}),children:w}):w},N=i(2962);let H=e=>{let{size:t,prefixCls:i,percent:r,status:n,color:o,type:u,showText:f,formatText:c,trailColor:d}=e,h=e.strokeWidth||("small"===t?8:4),p=`${i}-${u}`,k=h,m=(0,s.useCallback)(()=>(0,A.mf)(c)?c(r):"error"===n?(0,a.jsxs)("span",{children:[r,"% ",(0,a.jsx)(N.Z,{})]}):`${r}%`,[c,r,n]);return(0,a.jsxs)("div",{className:`${p}-wrapper`,children:[(0,a.jsx)("div",{className:`${p}-outer`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":r,style:{height:k},children:[...Array(e.steps)].map((t,i)=>{let n=r>100/e.steps*i;return(0,a.jsx)("div",{className:(0,l.Z)(`${p}-item`,{[`${p}-item-active`]:n}),style:{backgroundColor:n?o:d||""}},i)})}),f&&(0,a.jsx)("div",{className:(0,l.Z)(`${p}-text`,{[`${p}-text-with-icon`]:n}),children:m()})]})};H.defaultProps={showText:!0,size:"default",status:"normal"};var V=H,F=i(70307),Z=i(43227);let j={type:"line",showText:!0,percent:0,size:"default"};function z(e,t){let{getPrefixCls:i,componentConfig:u,rtl:f}=(0,s.useContext)(k.E_),c=(0,F.Z)(e,j,null==u?void 0:u.Progress),{className:d,style:h,size:p,width:A,strokeWidth:m,steps:g,percent:b}=c,v=(0,o._)(c,["className","style","size","width","strokeWidth","steps","percent"]),Q=g&&"circle"!==c.type?"steps":c.type,w=i("progress"),_="status"in c?c.status:b>=100?"success":"normal",x={width:A};return"mini"===p&&"line"===Q&&(x.width=A||16,x.height=A||16),(0,a.jsxs)("div",(0,n._)((0,r._)({ref:t,className:(0,l.Z)(w,`${w}-${Q}`,`${w}-${p}`,{[`${w}-is-${_}`]:"normal"!==_,[`${w}-rtl`]:f},d),style:(0,r._)({},x,h)},(0,Z.Z)(v,["type","animation","status","color","trailColor","showText","formatText","buffer","bufferColor"])),{children:["steps"===Q&&(0,a.jsx)(V,(0,n._)((0,r._)({},c),{type:Q,status:_,prefixCls:w})),"circle"===Q&&(0,a.jsx)(R,(0,n._)((0,r._)({width:c.width},c),{pathStrokeColor:c.trailColor,status:_,prefixCls:w})),"line"===Q&&("mini"===p?(0,a.jsx)(R,(0,n._)((0,r._)({pathStrokeColor:c.trailColor},c),{pathStrokeWidth:m||4,width:A||16,strokeWidth:m||4,prefixCls:w,status:_})):(0,a.jsx)(y,(0,n._)((0,r._)({},c),{status:_,prefixCls:w})))]}))}let G=(0,s.forwardRef)(z);G.displayName="Progress";var U=G;function X(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,r)}return i}function W(e){for(var t=1;t{let t=(0,el.Z)(),{file:i,prefixCls:o,progressProps:l,progressRender:u}=e,{locale:f}=(0,s.useContext)(k.E_),{status:m,percent:g=0}=i,b=`${o}-list`,v=l&&l.width?{width:l.width}:{},y=(0,a.jsxs)(a.Fragment,{children:[m===p&&null!==e.reuploadIcon&&(0,a.jsx)("span",(0,n._)((0,r._)({className:`${o}-list-reupload-icon`,onClick:()=>{e.onReupload&&e.onReupload(i)},tabIndex:0,role:"button","aria-label":f.Upload.reupload},t({onPressEnter:()=>{e.onReupload&&e.onReupload(i)}})),{children:e.reuploadIcon||("picture-card"===e.listType?(0,a.jsx)(q,{}):f.Upload.reupload)})),m===h&&null!==e.successIcon&&(0,a.jsx)("span",{className:`${o}-list-success-icon`,children:e.successIcon||(0,a.jsx)(Q.Z,{})}),m!==h&&(0,a.jsxs)("div",{className:`${b}-status`,style:v,children:[(0,a.jsx)(U,(0,r._)({showText:!1,className:`${b}-progress`,type:"circle",status:m===p?"error":m===h?"success":"normal",percent:g,size:"mini"},l)),m===c&&null!==e.startIcon&&(0,a.jsx)("span",(0,n._)((0,r._)({tabIndex:0,role:"button","aria-label":f.Upload.start,className:`${o}-list-start-icon`,onClick:()=>{e.onUpload&&e.onUpload(i)}},t({onPressEnter:()=>{e.onUpload&&e.onUpload(i)}})),{children:e.startIcon||(0,a.jsx)(B.Z,{content:f.Upload.start,children:(0,a.jsx)(ei,{})})})),m===d&&null!==e.cancelIcon&&(0,a.jsx)("span",(0,n._)((0,r._)({className:`${e.prefixCls}-list-cancel-icon`,onClick:()=>{e.onAbort&&e.onAbort(i)},tabIndex:0,"aria-label":f.Upload.cancel},t({onPressEnter:()=>{e.onAbort&&e.onAbort(i)}})),{children:e.cancelIcon||(0,a.jsx)(B.Z,{content:f.Upload.cancel,children:(0,a.jsx)(es,{})})}))]})]});return(0,A.mf)(u)?u(i,y):y},ef=i(55430),ec=i(54794);function ed(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,r)}return i}function eh(e){for(var t=1;t{let{disabled:t,prefixCls:i,file:o,showUploadList:s,locale:l}=e,u=(0,el.Z)(),f=`${i}-list-item-picture`,{status:c,originFile:h}=o,k=void 0!==o.url?o.url:h&&(0,A.mf)(URL.createObjectURL)&&URL.createObjectURL(h),m=(0,A.Kn)(s)?s:{};return(0,a.jsx)("div",{className:f,children:c===d?(0,a.jsx)(eu,(0,r._)({onReupload:e.onReupload,onUpload:e.onUpload,onAbort:e.onAbort,listType:"picture-card",file:o,prefixCls:i,progressProps:e.progressProps},m)):(0,a.jsxs)(a.Fragment,{children:[(0,A.mf)(m.imageRender)?m.imageRender(o):(0,a.jsx)("img",{src:k,alt:o.name}),(0,a.jsxs)("div",{className:`${f}-mask`,role:"radiogroup",children:[o.status===p&&(0,a.jsx)("div",{className:`${f}-error-tip`,children:null!==m.errorIcon&&(0,a.jsx)("span",{className:`${i}-list-error-icon`,children:m.errorIcon||(0,a.jsx)(ef.Z,{})})}),(0,a.jsxs)("div",{className:`${f}-operation`,children:[o.status!==p&&null!==m.previewIcon&&(0,a.jsx)("span",(0,n._)((0,r._)({className:`${i}-list-preview-icon`,tabIndex:0,role:"button","aria-label":l.Upload.preview},u({onPressEnter:()=>{e.onPreview&&e.onPreview(o)}})),{onClick:()=>{e.onPreview&&e.onPreview(o)},children:m.previewIcon||(0,a.jsx)(ec.Z,{})})),o.status===p&&null!==m.reuploadIcon&&(0,a.jsx)("span",(0,n._)((0,r._)({className:`${e.prefixCls}-list-reupload-icon`,onClick:()=>{e.onReupload&&e.onReupload(o)},tabIndex:0,role:"button","aria-label":l.Upload.reupload},u({onPressEnter:()=>{e.onReupload&&e.onReupload(o)}})),{children:m.reuploadIcon||(0,a.jsx)(q,{})})),!t&&null!==m.removeIcon&&(0,a.jsx)("span",(0,n._)((0,r._)({className:`${i}-list-remove-icon`,onClick:()=>{e.onRemove&&e.onRemove(o)},role:"button","aria-label":l.Upload.delete,tabIndex:0},u({onPressEnter:()=>{e.onRemove&&e.onRemove(o)}})),{children:m.removeIcon||(0,a.jsx)(ek,{})}))]})]})]})})};function eg(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,r)}return i}function eb(e){for(var t=1;t{let t="";if(e.originFile&&e.originFile.type)t=e.originFile.type;else{let i=(e.name||"").split(".").pop()||"";t=i,["png","jpg","jpeg","bmp","gif"].indexOf(i)>-1?t="image":["mp4","m2v","mkv"].indexOf(i)>-1?t="video":["mp3","wav","wmv"].indexOf(i)>-1&&(t="audio")}return t.indexOf("image")>-1?eB:t.indexOf("pdf")>-1?eE:t.indexOf("audio")>-1?eZ:t.indexOf("video")>-1?eR:ey};var eG=e=>{let{prefixCls:t,disabled:i,file:o,locale:s}=e,l=`${t}-list-item-text`,u=(0,el.Z)(),f=ez(o),c=(0,A.Kn)(e.showUploadList)?e.showUploadList:{},d=(0,A.Kn)(c)?c:{},h=o.name||o.originFile&&o.originFile.name,k=void 0!==o.url?o.url:o.originFile&&(0,A.mf)(URL.createObjectURL)&&URL.createObjectURL(o.originFile),m={};return o.status!==p&&(m={popupVisible:!1}),(0,a.jsxs)("div",{className:`${t}-list-item ${t}-list-item-${o.status}`,children:[(0,a.jsxs)("div",{className:l,children:["picture-list"===e.listType&&(0,a.jsx)("div",{className:`${l}-thumbnail`,children:(0,A.mf)(c.imageRender)?c.imageRender(o):(0,a.jsx)("img",{src:k})}),(0,a.jsxs)("div",{className:`${l}-content`,children:[(0,a.jsxs)("div",{className:`${l}-name`,children:["text"===e.listType&&null!==d.fileIcon&&(0,a.jsx)("span",{className:`${t}-list-file-icon`,children:d.fileIcon||(0,a.jsx)(f,{})}),(0,A.mf)(c.fileName)?(0,a.jsx)("span",{className:`${l}-name-text`,children:c.fileName(o)}):o.url?(0,a.jsx)("a",{href:o.url,target:"_blank",rel:"noreferrer",className:`${l}-name-link`,children:h}):(0,a.jsx)("span",{className:`${l}-name-text`,children:h}),o.status===p&&null!==d.errorIcon&&(0,a.jsx)(B.Z,(0,n._)((0,r._)({content:o.response||s.Upload.error},m),{disabled:o.status!==p,children:(0,a.jsx)("span",{className:`${e.prefixCls}-list-error-icon`,children:d.errorIcon||("picture-card"===e.listType?(0,a.jsx)(eB,{}):(0,a.jsx)(N.Z,{}))})}))]}),(0,a.jsx)(eu,(0,r._)({file:o,prefixCls:t,progressProps:e.progressProps,onReupload:e.onReupload,onUpload:e.onUpload,onAbort:e.onAbort},d))]})]}),(0,a.jsx)("div",{className:`${t}-list-item-operation`,children:!i&&null!==d.removeIcon&&(0,a.jsx)(ej.Z,(0,n._)((0,r._)({className:`${t}-list-remove-icon-hover`,onClick:()=>{e.onRemove&&e.onRemove(o)},tabIndex:0,"aria-label":s.Upload.delete},u({onPressEnter:()=>{e.onRemove&&e.onRemove(o)}})),{children:(0,a.jsx)("span",{className:`${t}-list-remove-icon`,children:d.removeIcon||(0,a.jsx)(ek,{})})}))})]})},eU=i(61423);let eX=e=>{let{locale:t,rtl:i}=(0,s.useContext)(k.E_),{listType:d,fileList:p,renderUploadList:m,renderUploadItem:g,prefixCls:b}=e,v=(0,o._)(e,["listType","fileList","renderUploadList","renderUploadItem","prefixCls"]),[y,Q]=(0,s.useState)(-1),w=(0,s.useMemo)(()=>p.map(e=>{let{url:t}=e;return void 0===e.url&&[c,h].indexOf(e.status)>-1&&(t=e.originFile&&(0,A.mf)(URL.createObjectURL)&&URL.createObjectURL(e.originFile)),t}).filter(Boolean),[p]);if((0,A.mf)(m))return(0,a.jsx)("div",{className:`${b}-list`,children:m(p,v)});let _=t=>{e.imagePreview&&Q(t)};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.Z,{className:(0,l.Z)(`${b}-list`,`${b}-list-type-${d}`,{[`${b}-list-rtl`]:i}),children:p.map((i,o)=>{let s="picture-card"===d?(0,a.jsx)("div",{className:`${b}-list-item ${b}-list-item-${i.status}`,children:(0,a.jsx)(em,(0,n._)((0,r._)({},e),{onPreview:t=>{var i;_(o),null==(i=e.onPreview)||i.call(e,t)},file:i,locale:t}))}):(0,a.jsx)(eG,(0,n._)((0,r._)({},e),{file:i,locale:t}));return(0,A.mf)(g)&&(s=g(s,i,p)),"picture-card"===d?(0,a.jsx)(f.Z,{timeout:{enter:200,exit:400},classNames:`${b}-slide-inline`,onEntered:e=>{e.style.width=""},onExit:e=>{e.style.width=`${e.scrollWidth}px`},onExiting:e=>{e.style.width=0},onExited:e=>{e.style.width=0},children:s},i.uid):(0,a.jsx)(f.Z,{timeout:{enter:200,exit:400},classNames:`${b}-slide-up`,onExit:e=>{e.style.height=`${e.scrollHeight}px`},onExiting:e=>{e.style.height=0},onExited:e=>{e.style.height=0},children:s},i.uid)})}),"picture-card"===d&&e.imagePreview&&(0,a.jsx)(eU.Z,{srcList:w,visible:-1!==y,current:y,onChange:_,onVisibleChange:e=>{_(e?y:-1)}})]})};eX.defaultProps={listType:"text"},eX.displayName="FileList";var eW=eX,e$=i(64349),eY=i(13238);function eq(e){let t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(e){return t}}var eJ=function(e){let{onProgress:t=eY.dG,onError:i=eY.dG,onSuccess:r=eY.dG,action:n,headers:o={},name:a,file:s,data:l={},withCredentials:u=!1}=e;function f(e){return"function"==typeof e?e(s):e}let c=f(a),d=f(l),h=new XMLHttpRequest;t&&h.upload&&(h.upload.onprogress=function(e){let i;e.total>0&&(i=e.loaded/e.total*100),t(parseInt(i,10),e)}),h.onerror=function(e){i(e)},h.onload=function(){if(h.status<200||h.status>=300)return i(eq(h));r(eq(h))};let p=new FormData;for(let e in d&&Object.keys(d).map(e=>p.append(e,d[e])),p.append(c||"file",s),h.open("post",n,!0),u&&"withCredentials"in h&&(h.withCredentials=!0),o)o.hasOwnProperty(e)&&null!==o[e]&&h.setRequestHeader(e,o[e]);return h.send(p),{abort(){h.abort()}}},eK=i(45408),e0=i(38649);let e2=(e,t)=>{if(t&&e){let i=(0,A.kJ)(t)?t:t.split(",").map(e=>e.trim()).filter(e=>e),r=(e.name.indexOf(".")>-1?`.${e.name.split(".").pop()}`:"").toLowerCase();return i.some(t=>{let i=t&&t.toLowerCase(),n=(e.type||"").toLowerCase();if(i===n||/^\*(\/\*)?$/.test(i))return!0;if(/\/\*/.test(i))return n.replace(/\/.*$/,"")===i.replace(/\/.*$/,"");if(/\..*/.test(i)){let e=[i];return(".jpg"===i||".jpeg"===i)&&(e=[".jpg",".jpeg"]),e.indexOf(r)>-1}return!1})}return!!e},e1=(e,t)=>{if(!e)return;let i=[].slice.call(e);return t&&(i=i.filter(e=>e2(e,t))),i},e4=(e,t,i)=>{let r=[],n=0,o=()=>{n||i(r)},a=e=>{if(n+=1,e.isFile)return void e.file(i=>{n-=1,e2(i,t)&&(Object.defineProperty(i,"webkitRelativePath",{value:e.fullPath.replace(/^\//,"")}),r.push(i)),o()});if(e.isDirectory){let t=e.createReader(),i=!1,r=()=>{t.readEntries(e=>{i||(n-=1,i=!0),0===e.length?o():(r(),e.forEach(a))})};r();return}n-=1,o()};[].slice.call(e).forEach(e=>{e.webkitGetAsEntry&&a(e.webkitGetAsEntry())})};var e6=e=>{let t=(0,el.Z)(),{locale:i}=(0,s.useContext)(k.E_),[o,u]=(0,s.useState)(!1),[f,c]=(0,s.useState)(0),{tip:d,children:h,disabled:p,drag:A,listType:m,prefixCls:g,accept:b,multiple:v}=e,y={disabled:p};return(0,s.useEffect)(()=>{c(0)},[o]),null===h?null:(0,a.jsx)("div",(0,n._)((0,r._)({className:`${g}-trigger`,onClick:p?void 0:e.onClick},t({onPressEnter:()=>{var t;p||null==(t=e.onClick)||t.call(e)}})),{onDragEnter:()=>{c(f+1)},onDragLeave:t=>{if(t.preventDefault(),0===f){var i;u(!1),p||null==(i=e.onDragLeave)||i.call(e,t)}else c(f-1)},onDrop:t=>{if(t.preventDefault(),!p){if(u(!1),e.directory)e4(t.dataTransfer.items,b,t=>{e.onDragFiles&&e.onDragFiles(t)});else{let i=e1(t.dataTransfer.files,b);e.onDragFiles&&e.onDragFiles(v?i:i.slice(0,1))}e.onDrop&&e.onDrop(t)}},onDragOver:t=>{if(t.preventDefault(),!p&&!o){var i;u(!0),null==(i=e.onDragOver)||i.call(e,t)}},children:s.isValidElement(h)?(0,a.jsx)("div",{className:(0,l.Z)({[`${g}-trigger-custom-active`]:o}),children:s.cloneElement(h,y)}):"picture-card"===m?(0,a.jsx)("div",{className:`${g}-trigger-picture-wrapper`,children:(0,a.jsx)("div",{className:`${g}-trigger-picture`,tabIndex:0,"aria-label":i.Upload.upload,children:(0,a.jsx)("div",{className:`${g}-trigger-picture-text`,children:(0,a.jsx)(e0.Z,{})})})}):A?(0,a.jsxs)("div",{className:(0,l.Z)(`${g}-trigger-drag`,{[`${g}-trigger-drag-active`]:o}),tabIndex:0,"aria-label":i.Upload.drag,children:[(0,a.jsx)(e0.Z,{}),(0,a.jsx)("p",{className:`${g}-trigger-drag-text`,children:o?i.Upload.dragHover:i.Upload.drag}),d&&(0,a.jsx)("div",{className:`${g}-trigger-tip`,children:d})]}):(0,a.jsxs)(eK.Z,(0,n._)((0,r._)({},y),{"aria-label":i.Upload.upload,type:"primary",className:`${g}-trigger-with-icon`,children:[(0,a.jsx)(q,{}),i.Upload.upload]}))}))};class e3 extends s.Component{render(){let{accept:e,multiple:t,children:i,prefixCls:o,tip:s,disabled:l,drag:u,listType:c,hide:d,directory:h,onDrop:p,onDragOver:k,onDragLeave:m}=this.props;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("input",(0,n._)((0,r._)({ref:e=>this.inputRef=e,style:{display:"none"},type:"file",accept:e,multiple:t},h?{webkitdirectory:"true"}:{}),{onChange:e=>{let{files:t}=e.target;t&&(this.handleFiles([].slice.call(t)),this.inputRef.value="")},onClick:e=>{e.stopPropagation()}}),"trigger-input"),(0,a.jsx)(f.Z,{in:!d,timeout:100,unmountOnExit:!0,classNames:"fadeIn",children:(0,a.jsx)(e6,{directory:h,tip:s,multiple:t,accept:e,disabled:l,drag:u,listType:c,onDrop:p,onDragOver:k,onDragLeave:m,onDragFiles:this.handleFiles,onClick:()=>{!l&&this.inputRef&&this.inputRef.click()},prefixCls:o,children:(0,A.mf)(i)?i({fileList:this.props.fileList}):i})},"trigger-node"),s&&"picture-card"!==c&&!u?(0,a.jsx)("div",{className:`${o}-trigger-tip`,children:s},"trigger-tip"):null]})}constructor(e){super(e),this.upload=e=>{this.doUpload(e)},this.abort=e=>{let t=this.state.uploadRequests[e.uid];t&&(t.abort&&t.abort(),this.updateFileStatus((0,n._)((0,r._)({},e),{status:p})),this.deleteReq(e.uid))},this.reupload=e=>{this.doUpload((0,n._)((0,r._)({},e),{percent:0,status:d}))},this.deleteReq=e=>{let t=(0,r._)({},this.state.uploadRequests);delete t[e],this.setState({uploadRequests:t})},this.delete=this.deleteReq,this.updateFileStatus=e=>{let{onFileStatusChange:t}=this.props;t&&t(e)},this.getTargetFile=e=>{let t="uid"in e?"uid":"name";return this.props.fileList.find(i=>i[t]===e[t])};var t=this;this.doUpload=function(){var e=(0,e$._)(function*(e){let i,{action:o,headers:a,name:s,data:l,withCredentials:u,customRequest:f}=t.props,c={onProgress:(i,r)=>{let n=t.getTargetFile(e);n&&(n.status=d,n.percent=i,t.props.onProgress&&t.props.onProgress(n,r))},onSuccess:i=>{let r=t.getTargetFile(e);r&&(r.status=h,r.response=i,t.updateFileStatus(r)),t.deleteReq(e.uid)},onError:i=>{let r=t.getTargetFile(e);r&&(r.status=p,r.response=i,t.updateFileStatus(r)),t.deleteReq(e.uid)},headers:a,name:s,file:e.originFile,data:l,withCredentials:u};t.updateFileStatus(e),o?i=eJ((0,n._)((0,r._)({},c),{action:o})):f&&(i=yield f(c)),t.setState({uploadRequests:(0,n._)((0,r._)({},t.state.uploadRequests),{[e.uid]:i})})});return function(t){return e.apply(this,arguments)}}(),this.handleFiles=e=>{let{limit:t,fileList:i,onExceedLimit:o,autoUpload:a}=this.props;if((0,A.hj)(t)&&t{let i={uid:`${String(Number(new Date))}${t}`,originFile:e,percent:0,status:c,name:e.name};this.updateFileStatus(i),a&&setTimeout(()=>{this.doUpload((0,n._)((0,r._)({},i),{status:d}))},0)};e.forEach((t,i)=>{e2(t,this.props.accept)&&((0,A.mf)(this.props.beforeUpload)?Promise.resolve(this.props.beforeUpload(t,e)).then(e=>{!1!==e&&s((0,A.zE)(e)?e:t,i)}).catch(e=>{}):s(t,i))})},this.state={uploadRequests:{}}}}var e5=e3;let e8=function(e){let t={};return(0,A.kJ)(e)&&e.forEach((e,i)=>{if(e.uid)t[e.uid]=(0,r._)({status:h,percent:100},e);else{let o=`${String(Number(new Date))}${i}`;t[o]=(0,n._)((0,r._)({},e),{uid:o,status:h,percent:100})}}),t},e7=e=>Object.keys(e).map(t=>e[t]),e9={listType:"text",autoUpload:!0,showUploadList:!0,beforeUpload:()=>!0},te=(e,t)=>{var i;let{getPrefixCls:u,componentConfig:f,rtl:d}=(0,s.useContext)(k.E_),h=(0,F.Z)(e,e9,null==f?void 0:f.Upload),p=u("upload"),m=(0,s.useRef)(),g=(0,s.useRef)({}),[b,v]=(0,s.useState)(e8(null!=(i=null==h?void 0:h.fileList)?i:null==h?void 0:h.defaultFileList)||{});g.current="fileList"in h?e8(h.fileList):b;let y=e=>{let t=(0,r._)({},g.current);delete t[e.uid],"fileList"in h||v(t),h.onChange&&h.onChange(e7(t),e)},Q=e=>{e&&setTimeout(()=>{m.current&&m.current.upload(e)},0)},w=e=>{m.current&&m.current.reupload(e),h.onReupload&&h.onReupload(e)},_=e=>{if(e){let{onRemove:t}=h;Promise.resolve((0,A.mf)(t)?t(e):t).then(t=>{!1!==t&&(m.current&&m.current.abort(e),y(e))}).catch(e=>{})}},x=e=>{e&&m.current&&m.current.abort(e)};(0,s.useImperativeHandle)(t,()=>({submit:e=>{let t=[];(t=e?[e]:e7(g.current).filter(e=>e.status===c)).forEach(e=>{Q(e)})},abort:e=>{x(e)},reupload:e=>{w(e)}}));let{listType:E,className:C,style:D,renderUploadItem:S,showUploadList:L,renderUploadList:B,progressProps:P,imagePreview:I}=h,O=(0,o._)(h,["listType","className","style","renderUploadItem","showUploadList","renderUploadList","progressProps","imagePreview"]),R=e7(g.current),N=(0,A.hj)(h.limit)?{hideOnExceedLimit:!0,maxCount:h.limit}:(0,r._)({hideOnExceedLimit:!0},h.limit),H=N.maxCount&&N.maxCount<=R.length,V="disabled"in h?h.disabled:!N.hideOnExceedLimit&&H,j=(0,a.jsx)("div",(0,n._)((0,r._)({},(0,Z.Z)(O,["disabled","directory","onReupload","defaultFileList","fileList","autoUpload","error","action","multiple","name","accept","customRequest","children","autoUpload","limit","drag","tip","headers","data","withCredentials","onChange","onPreview","onRemove","onProgress","onExceedLimit","beforeUpload","onDrop","onDragOver","onDragLeave"])),{className:(0,l.Z)(p,{[`${p}-type-${E}`]:E,[`${p}-drag`]:h.drag,[`${p}-disabled`]:V,[`${p}-hide`]:N.hideOnExceedLimit&&H,[`${p}-rtl`]:d},C),style:D,children:(0,a.jsx)(e5,(0,n._)((0,r._)({ref:m},h),{limit:N.maxCount,hide:N.hideOnExceedLimit&&H,disabled:V,prefixCls:p,fileList:R,onProgress:(e,t)=>{e&&("fileList"in h||v(t=>(0,n._)((0,r._)({},t),{[e.uid]:e})),h.onProgress&&h.onProgress(e,t))},onFileStatusChange:e=>{"fileList"in h||v(t=>(0,n._)((0,r._)({},t),{[e.uid]:e})),h.onChange&&h.onChange(e7((0,n._)((0,r._)({},g.current),{[e.uid]:e})),e)}}))}));return(0,a.jsxs)(a.Fragment,{children:["picture-card"!==E&&j,L&&(0,a.jsx)(eW,{imagePreview:I,progressProps:P,showUploadList:L,disabled:h.disabled,listType:E,fileList:R,renderUploadItem:S,renderUploadList:B,onUpload:Q,onAbort:x,onRemove:_,onReupload:w,onPreview:h.onPreview,prefixCls:p}),"picture-card"===E&&j,h.tip&&"picture-card"===E&&(0,a.jsx)("div",{className:`${p}-trigger-tip`,children:h.tip})]})},tt=(0,s.forwardRef)(te);tt.displayName="Upload";var ti=tt},15980:function(e,t,i){"use strict";i(98951),i(56375),i(27607),i(37262)},29294:function(e,t,i){"use strict";i.d(t,{Z:()=>f});var r=i(64664),n=i(33994),o=i(74427),a=i(72322),s=i(18571),l=i(89068),u=i(98707);function f(e){let{children:t,className:i,disabled:f,prefix:c,size:d="default"}=e,h=(0,o._)(e,["children","className","disabled","prefix","size"]),{getPrefixCls:p}=(0,s.useContext)(u.E_),A=p("icon-hover");return(0,a.jsx)("span",(0,n._)((0,r._)({className:(0,l.Z)(A,{[`${c}-icon-hover`]:c,[`${A}-size-${d}`]:d&&"default"!==d,[`${A}-disabled`]:f},i),onClick:e.onClick},h),{children:t}))}},50803:function(e,t,i){"use strict";i.d(t,{Z:()=>A});var r=i(72322),n=i(18571),o=i(47988),a=i(92162),s=i(14343),l=i(82525),u=i(69229),f=i(34256),c=i(89068),d=i(29294),h=i(87625);class p extends n.Component{componentDidMount(){this.startTimer()}componentDidUpdate(e){(e.duration!==this.props.duration||this.props.update)&&(this.removeTimer(),this.startTimer())}componentWillUnmount(){this.removeTimer()}render(){let{title:e,content:t,showIcon:i,className:n,style:o,type:a,btn:s,icon:l,prefixCls:f,closable:p,noticeType:A,iconPrefix:k,rtl:m}=this.props,g=(0,c.Z)(f,`${f}-${a}`,{[`${f}-closable`]:p,[`${f}-rtl`]:m},n),b=!("closable"in this.props)||p,v=i;return("normal"!==a||l||(v=!1),"message"===A)?(b=p,(0,r.jsx)("div",{style:{textAlign:"center"},onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,children:(0,r.jsxs)("div",{className:g,style:o,role:"alert",children:[v&&this.renderIcon(),(0,r.jsx)("span",{className:`${f}-content`,children:t}),b&&(0,r.jsx)(d.Z,{prefix:f,className:`${f}-close-btn`,onClick:this.onClose,children:(0,r.jsx)(u.Z,{})})]})})):"notification"===A?(0,r.jsx)("div",{onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,children:(0,r.jsxs)("div",{className:g,style:o,role:"alert",children:[v&&(0,r.jsx)("div",{className:`${f}-left`,children:this.renderIcon()}),(0,r.jsxs)("div",{className:`${f}-right`,children:[e&&(0,r.jsx)("div",{className:`${f}-title`,children:e}),(0,r.jsx)("div",{className:`${f}-content`,children:t}),s&&(0,r.jsx)("div",{className:`${f}-btn-wrapper`,children:s})]}),b&&(0,r.jsx)(d.Z,{prefix:f,className:`${f}-close-btn`,onClick:this.onClose,children:(0,r.jsx)(h.P.Provider,{value:k?{prefixCls:k}:{},children:(0,r.jsx)(u.Z,{})})})]})}):void 0}constructor(...e){super(...e),this.startTimer=()=>{let{duration:e,onClose:t,id:i}=this.props;0!==e&&(this.timer=window.setTimeout(()=>{t&&t(i),this.removeTimer()},e))},this.removeTimer=()=>{this.timer&&(window.clearTimeout(this.timer),this.timer=null)},this.onClose=()=>{this.props.onClose&&this.props.onClose(this.props.id)},this.renderIcon=()=>{let e,{showIcon:t,icon:i,type:n,prefixCls:u,iconPrefix:c}=this.props;if(i)e=i;else if(t){switch(n){case"info":e=(0,r.jsx)(o.Z,{});break;case"success":e=(0,r.jsx)(l.Z,{});break;case"error":e=(0,r.jsx)(a.Z,{});break;case"warning":e=(0,r.jsx)(s.Z,{});break;case"loading":e=(0,r.jsx)(f.Z,{})}e=(0,r.jsx)(h.P.Provider,{value:c?{prefixCls:c}:{},children:(0,r.jsx)("div",{style:{color:"loading"!==n?"transparent":void 0},children:e})})}return(0,r.jsx)("span",{className:`${u}-icon`,children:e})},this.onMouseEnter=()=>{this.removeTimer()},this.onMouseLeave=()=>{this.startTimer()}}}p.defaultProps={type:"info",showIcon:!0,noticeType:"message",duration:3e3};var A=p},89453:function(e,t,i){"use strict";i.d(t,{Z:()=>l});var r=i(64664),n=i(33994),o=i(18571);function a(e){return(null==e?void 0:e.id)?null==e?void 0:e.id:`arco_notice_id_${Math.random().toFixed(10).slice(2)}`}class s extends o.Component{remove(e){this.setState(t=>({notices:t.notices.filter(t=>t.id!==e)}))}constructor(e){super(e),this.add=e=>{let t=a(e);return this.setState(i=>{let o=i.notices;return e.id&&~o.findIndex(t=>t.id===e.id)?(this.update(e),i):{notices:o.concat((0,n._)((0,r._)({},e),{id:t})),position:e.position}}),t},this.update=e=>{this.setState(t=>({notices:t.notices.map(t=>e.id===t.id?(e.update=!0,e):t)}),()=>{let t=this.state.notices.map(t=>(e.id===t.id&&t.update&&delete t.update,t));this.setState({notices:t})})},this.clear=()=>{this.setState({notices:[]})},this.state={notices:[],position:"topRight"},this.remove=this.remove.bind(this)}}var l=s},89068:function(e,t,i){"use strict";i.d(t,{Z:()=>o});var r=i(29871),n=i(77576);function o(...e){let{length:t}=e,i=[];for(let o=0;o{t[e]&&i.push(e)}):(0,n.Z)(!0,"arguments must be one of string/array/object."))}return[...new Set(i)].join(" ")}},13238:function(e,t,i){"use strict";i.d(t,{B4:()=>o,Yy:()=>a,dG:()=>n});var r=i(17862);let n=()=>{};function o(e){return Array.apply(null,Array(e))}function a(e){return(0,r.Z)(e,["onMouseEnter","onMouseLeave","onMouseMove","onContextMenu","onClick","onFocus","onBlur","tabIndex"])}},76818:function(e,t,i){"use strict";i.d(t,{Z:()=>a});var r=i(72322),n=i(18571),o=i(98707),a=(0,n.forwardRef)((e,t)=>{let i=(0,n.useContext)(o.E_),[a,s]=(0,n.useState)([]);function l(e){s(t=>[...t,e])}function u(e){s(t=>t.filter(t=>e!==t))}function f(){return i}return(0,n.useImperativeHandle)(t,()=>({addInstance:l,removeInstance:u,getContextConfig:f})),(0,r.jsx)(r.Fragment,{children:n.Children.map(a,(e,t)=>n.cloneElement(e,{key:t}))})})},8158:function(e,t,i){"use strict";i.d(t,{ET:()=>n,IF:()=>u,S1:()=>a,YO:()=>d,on:()=>o,r3:()=>s});var r=i(13238);let n=function(){try{return"undefined"==typeof window||void 0===document}catch(e){return!0}}(),o=function(){return n?r.dG:function(e,t,i,r){e&&e.addEventListener(t,i,r||!1)}}(),a=function(){return n?r.dG:function(e,t,i,r){e&&e.removeEventListener(t,i,r||!1)}}(),s=function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let i=t;for(;i;){if(i===e)return!0;i=i.parentNode}return!1},l=e=>e.scrollHeight>e.offsetHeight||e.scrollWidth>e.offsetWidth,u=(e,t=document.documentElement)=>{let i=[],r=e;for(;r&&r!==t;)l(r)&&i.push(r),r=r.parentElement;return i};function f(e){return e.scrollWidth>e.clientWidth}let c=e=>e.clientHeightn});var r=i(18571);function n(){let[,e]=(0,r.useReducer)(e=>e+1,0);return e}},90604:function(e,t,i){"use strict";i.d(t,{Z:()=>o});var r=i(18571);let n={};function o(e){let[t,i]=(0,r.useState)();return(0,r.useEffect)(()=>{n[e]=e in n?n[e]:0,i(n[e]),n[e]+=1},[]),"number"==typeof t?`${e}${t}`:void 0}},80907:function(e,t,i){"use strict";i.d(t,{Z:()=>n});var r=i(18571);function n(){let e=(0,r.useRef)(!0);return(0,r.useEffect)(()=>{e.current=!1},[]),e.current}},28901:function(e,t,i){"use strict";i.d(t,{Z:()=>n});var r=i(18571),n=i(8158).ET?r.useEffect:r.useLayoutEffect},38675:function(e,t,i){"use strict";i.d(t,{Z:()=>o});var r=i(18571),n=i(42605);function o(e){return(0,r.useCallback)(t=>({onKeyDown:i=>{var r,o,a,s,l,u;let f=i.keyCode||i.which;f===n.Ce.code&&(null==(o=t.onPressEnter)||o.call(t,i)),f===n.K5.code&&(null==(a=t.onArrowDown)||a.call(t,i)),f===n.Xd.code&&(null==(s=t.onArrowLeft)||s.call(t,i)),f===n.ol.code&&(null==(l=t.onArrowRight)||l.call(t,i)),f===n.a2.code&&(null==(u=t.onArrowUp)||u.call(t,i)),null==e||null==(r=e.onKeyDown)||r.call(e,i)}}),[])}},70307:function(e,t,i){"use strict";i.d(t,{Z:()=>a});var r=i(64664),n=i(18571),o=i(43227);function a(e,t,i){let{_ignorePropsFromGlobal:a}=e,s=(0,n.useMemo)(()=>(0,r._)({},t,a?{}:i),[t,i,a]);return(0,n.useMemo)(()=>{let t=(0,o.Z)(e,["_ignorePropsFromGlobal"]);for(let e in s)void 0===t[e]&&(t[e]=s[e]);return t},[e,s])}},17606:function(e,t,i){"use strict";i.d(t,{Z:()=>o});var r=i(18571),n=i(29871);function o(e,t){let{defaultValue:i,value:o}=t||{},a=(0,r.useRef)(!0),[s,l]=(0,r.useState)((0,n.o8)(o)?(0,n.o8)(i)?e:i:o);return(0,r.useEffect)(()=>{if(a.current){a.current=!1;return}void 0===o&&l(o)},[o]),[(0,n.o8)(o)?s:o,l,s]}},75939:function(e,t,i){"use strict";i.d(t,{Z:()=>n});var r=i(18571);function n(e,{hidden:t}){let i=(0,r.useRef)(!1),n=(0,r.useRef)({}),o=e=>"BODY"===e.tagName?window.innerWidth-(document.body.clientWidth||document.documentElement.clientWidth):e.offsetWidth-e.clientWidth,a=()=>{let t=e();if(t&&"hidden"!==t.style.overflow){let e=t.style;i.current=!0;let r=o(t);r&&(n.current.width=e.width,t.style.width=`calc(${t.style.width||"100%"} - ${r}px)`),n.current.overflow=e.overflow,t.style.overflow="hidden"}},s=()=>{if(i.current&&e()){let t=e(),i=n.current;Object.keys(i).forEach(e=>t.style[e]=i[e])}i.current=!1,n.current={}};return(0,r.useEffect)(()=>(t?a():s(),()=>{s()}),[e,t]),[s,a]}},96261:function(e,t,i){"use strict";i.d(t,{Z:()=>n});var r=i(18571);function n(e){let t=(0,r.useRef)();return(0,r.useEffect)(()=>{t.current=e}),t.current}},11210:function(e,t,i){"use strict";i.d(t,{Z:()=>n});var r=i(18571),n=function(e){let[t,i]=(0,r.useState)({value:e,resolve:e=>{}});return(0,r.useEffect)(()=>{t.resolve(t.value)},[t]),[t.value,e=>new Promise(t=>{i(i=>{let r=e;return"function"==typeof e&&(r=e(i.value)),{value:r,resolve:t}})})]}},29892:function(e,t,i){"use strict";i.d(t,{Z:()=>n});var r=i(18571);function n(e,t=[]){let i=(0,r.useRef)(!1);(0,r.useEffect)(()=>{i.current?e():i.current=!0},[...t])}},29871:function(e,t,i){"use strict";i.d(t,{HD:()=>a,Kn:()=>o,Qr:()=>d,hj:()=>s,kJ:()=>n,le:()=>f,mf:()=>c,o8:()=>u,qE:()=>h,zE:()=>l});let r=Object.prototype.toString;function n(e){return"[object Array]"===r.call(e)}function o(e){return"[object Object]"===r.call(e)}function a(e){return"[object String]"===r.call(e)}function s(e){return"[object Number]"===r.call(e)&&e==e}function l(e){return"[object File]"===r.call(e)}function u(e){return void 0===e}function f(e){return null==e}function c(e){return"function"==typeof e}function d(e){return o(e)&&0===Object.keys(e).length}function h(e){return o(e)&&("$y"in e&&"$M"in e&&"$D"in e&&"$d"in e&&"$H"in e&&"$m"in e&&"$s"in e||e._isAMomentObject)}},42605:function(e,t,i){"use strict";i.d(t,{AV:()=>n,Ce:()=>r,K5:()=>l,OK:()=>a,Xd:()=>u,a2:()=>s,kW:()=>o,ol:()=>f});let r={key:"Enter",code:13},n={key:"Escape",code:27},o={key:"Backspace",code:8},a={key:"Tab",code:9},s={key:"ArrowUp",code:38},l={key:"ArrowDown",code:40},u={key:"ArrowLeft",code:37},f={key:"ArrowRight",code:39}},43227:function(e,t,i){"use strict";i.d(t,{Z:()=>n});var r=i(64664);function n(e,t){let i=(0,r._)({},e);return t.forEach(e=>{e in i&&delete i[e]}),i}},17862:function(e,t,i){"use strict";function r(e,t){let i={};return t.forEach(t=>{let r=t;t in e&&(i[r]=e[r])}),i}function n(e){let t={};return e&&Object.keys(e).forEach(i=>{let r=String(i);0===r.indexOf("data-")&&(t[r]=e[r]),0===r.indexOf("aria-")&&(t[r]=e[r])}),t}i.d(t,{Z:()=>r,m:()=>n})},9989:function(e,t,i){"use strict";i.d(t,{N:()=>a,W:()=>o});let r="undefined"==typeof window?i.g:window,n=["webkit","ms","moz","o"],o=r.requestAnimationFrame,a=r.cancelAnimationFrame;if((!o||!a)&&(n.some(e=>(o=r[`${e}RequestAnimationFrame`],a=r[`${e}CancelAnimationFrame`]||r[`${e}CancelRequestAnimationFrame`],o&&a)),!o||!a)){let e=0;o=function(t){let i=Date.now(),r=Math.max(0,16-(i-e));return setTimeout(()=>{t(),e=i+r},r)},a=function(e){clearTimeout(e)}}o=o.bind(r),a=a.bind(r)},73711:function(e,t,i){"use strict";let r,n;i.d(t,{s:()=>d});var o,a=i(95291),s=i(29871);let l="__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",u=a,f=Number(null==(o=u.version)?void 0:o.split(".")[0])>17,c=e=>{(0,s.Kn)(u[l])&&(u[l].usingClientEntryPoint=e)};try{n=u.createRoot}catch(e){}let d=r=f&&n?(e,t)=>{c(!0);let i=n(t);return c(!1),i.render(e),i._unmount=function(){setTimeout(()=>{var e;null==i||null==(e=i.unmount)||e.call(i)})},i}:function(e,t){return u.render(e,t),{render:e=>{u.render(e,t)},_unmount(){u.unmountComponentAtNode(t)}}}},53243:function(e,t,i){"use strict";i.d(t,{Z:()=>s});var r=i(18571),n=i(75107),o=i(95291);class a extends r.Component{componentDidMount(){r.isValidElement(this.props.children)&&this.createResizeObserver()}componentDidUpdate(){!this.resizeObserver&&(0,o.findDOMNode)(this)&&this.createResizeObserver()}render(){return this.props.children}constructor(...e){super(...e),this.componentWillUnmount=()=>{this.resizeObserver&&this.destroyResizeObserver()},this.createResizeObserver=()=>{this.resizeObserver=new n.Z(e=>{let{onResize:t}=this.props;t&&t(e)}),this.resizeObserver.observe((0,o.findDOMNode)(this))},this.destroyResizeObserver=()=>{this.resizeObserver&&this.resizeObserver.disconnect(),this.resizeObserver=null}}}var s=a},65464:function(e,t,i){"use strict";i.d(t,{ZP:()=>f,c4:()=>o,f:()=>a});var r=i(64664),n=i(33994);let o=["xxxl","xxl","xl","lg","md","sm","xs"],a={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)",xxxl:"(min-width: 2000px)"},s=[],l=-1,u={};var f={matchHandlers:{},dispatch:(e,t)=>(u=e,!(s.length<1)&&(s.forEach(e=>{e.func(u,t)}),!0)),subscribe(e){0===s.length&&this.register();let t=(++l).toString();return s.push({token:t,func:e}),e(u,null),t},unsubscribe(e){0===(s=s.filter(t=>t.token!==e)).length&&this.unregister()},unregister(){Object.keys(a).forEach(e=>{let t=a[e],i=this.matchHandlers[t];i&&i.mql&&i.listener&&i.mql.removeListener(i.listener)})},register(){Object.keys(a).forEach(e=>{let t=a[e],i=({matches:t})=>{this.dispatch((0,n._)((0,r._)({},u),{[e]:t}),e)},o=window.matchMedia(t);o.addListener(i),this.matchHandlers[t]={mql:o,listener:i},i(o)})}}},5726:function(e,t,i){"use strict";i.d(t,{C2:()=>o,GB:()=>n});let r=["transform","WebkitTransform","msTransform","MozTransform","OTransform"];function n(e){let t={};return r.forEach(i=>{t[i]=e}),t}function o(e,t){if(!e||!t)return null;let i=t;"float"===i&&(i="cssFloat");try{if(document.defaultView){let t=document.defaultView.getComputedStyle(e,"");return e.style[i]||t?t[i]:""}}catch(t){return e.style[i]}}},8261:function(e,t,i){"use strict";i.d(t,{Z:()=>n});var r=i(9989);function n(e){let t=null,i=function(...i){t&&(0,r.N)(t),t=(0,r.W)(()=>{e(...i),t=null})};return i.cancel=()=>{(0,r.N)(t),t=null},i}},77576:function(e,t,i){"use strict";function r(e,t){}i.d(t,{Z:()=>r})},76064:function(e,t,i){"use strict";var r=i(60494),n=i(90765),o=i(18571),a=i(87625);function s(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,r)}return i}function l(e){for(var t=1;tr});var r=(0,i(18571).createContext)({prefixCls:"lv"})},11444:function(e,t,i){"use strict";i.d(t,{SceneTemplateMaterialType:()=>r.SceneTemplateMaterialType,SceneTemplateTextUIType:()=>r.SceneTemplateTextUIType,SceneTemplateVariableType:()=>r.SceneTemplateVariableType});var r=i(32828);i.o(r,"SceneTemplateModal")&&i.d(t,{SceneTemplateModal:function(){return r.SceneTemplateModal}})},21983:function(e,t,i){"use strict";i.d(t,{N:()=>r});let r={PicksCardExpose:"scene_template_picks_card_expose",PicksCardClick:"scene_template_picks_card_click",ModalExpose:"scene_template_modal_expose",ModalEditClick:"scene_template_modal_edit_click",ModalSubmitClick:"scene_template_modal_submit_click",ModalVariableChange:"scene_template_modal_variable_change"}},97691:function(){},67679:function(){},32828:function(e,t,i){"use strict";i.d(t,{SceneTemplateMaterialType:()=>a.JS,SceneTemplateTextUIType:()=>a.Jf,SceneTemplateVariableType:()=>a.Fw});var r=i(97691);i.o(r,"SceneTemplateModal")&&i.d(t,{SceneTemplateModal:function(){return r.SceneTemplateModal}}),i.o(r,"SceneTemplateTextUIType")&&i.d(t,{SceneTemplateTextUIType:function(){return r.SceneTemplateTextUIType}}),i.o(r,"SceneTemplateVariableType")&&i.d(t,{SceneTemplateVariableType:function(){return r.SceneTemplateVariableType}}),i.o(r,"SceneTemplateMaterialType")&&i.d(t,{SceneTemplateMaterialType:function(){return r.SceneTemplateMaterialType}});var n=i(67679);i.o(n,"SceneTemplateModal")&&i.d(t,{SceneTemplateModal:function(){return n.SceneTemplateModal}}),i.o(n,"SceneTemplateTextUIType")&&i.d(t,{SceneTemplateTextUIType:function(){return n.SceneTemplateTextUIType}}),i.o(n,"SceneTemplateVariableType")&&i.d(t,{SceneTemplateVariableType:function(){return n.SceneTemplateVariableType}}),i.o(n,"SceneTemplateMaterialType")&&i.d(t,{SceneTemplateMaterialType:function(){return n.SceneTemplateMaterialType}});var o=i(57314);i.o(o,"SceneTemplateModal")&&i.d(t,{SceneTemplateModal:function(){return o.SceneTemplateModal}}),i.o(o,"SceneTemplateTextUIType")&&i.d(t,{SceneTemplateTextUIType:function(){return o.SceneTemplateTextUIType}}),i.o(o,"SceneTemplateVariableType")&&i.d(t,{SceneTemplateVariableType:function(){return o.SceneTemplateVariableType}}),i.o(o,"SceneTemplateMaterialType")&&i.d(t,{SceneTemplateMaterialType:function(){return o.SceneTemplateMaterialType}});var a=i(42843),s=i(42579);i.o(s,"SceneTemplateModal")&&i.d(t,{SceneTemplateModal:function(){return s.SceneTemplateModal}});var l=i(66668);i.o(l,"SceneTemplateModal")&&i.d(t,{SceneTemplateModal:function(){return l.SceneTemplateModal}})},57314:function(){},42843:function(e,t,i){"use strict";var r,n,o,a,s,l,u,f;i.d(t,{Fw:()=>o,Ge:()=>l,JS:()=>f,Jf:()=>a,NA:()=>r,QL:()=>n,kN:()=>u,pO:()=>s}),function(e){e[e.Offline=0]="Offline",e[e.Online=1]="Online"}(r||(r={})),function(e){e[e.Image=1]="Image",e[e.Video=2]="Video"}(n||(n={})),function(e){e.Text="text",e.Upload="upload",e.Select="select",e.Unknown="unknown"}(o||(o={})),function(e){e.Single="single",e.Multi="multi",e.Static="static"}(a||(a={})),function(e){e.Thumbnail="thumbnail",e.Preview="preview"}(s||(s={})),function(e){e.Single="single",e.Multiple="multiple"}(l||(l={})),function(e){e.Url="url",e.Email="email",e.Number="number",e.None="none"}(u||(u={})),function(e){e.Image="image",e.Video="video",e.Audio="audio",e.File="file"}(f||(f={}))},42579:function(){},66668:function(){},3146:function(e,t,i){"use strict";i.d(t,{OZ:()=>o,QP:()=>a,fV:()=>n});var r=i(56676);function n(e){return"string"==typeof e?e:""}function o(e,t){return(0,r.ZL)(e)?Array.isArray(t)?t.filter(e=>null!=e&&""!==e).map(String):"string"==typeof t&&""!==t?[t]:[]:"string"==typeof t?t:""}function a(e,t){return(0,r.hD)(e)?n(t):(0,r.d_)(e)?o(e,t):t}},74748:function(e,t,i){"use strict";i.d(t,{O6:()=>k,SK:()=>A,i5:()=>p});var r=i(42843);let n=[".pdf"],o=[".ppt",".pptx",".pps",".ppsx"],a=[".doc",".docx",".dot",".dotx",".rtf",".txt"],s=[".jpg",".jpeg",".png",".gif",".webp",".bmp",".svg",".avif",".heic",".heif"],l=[".mp4",".mov",".m4v",".avi",".mkv",".webm",".mpeg",".mpg",".ts"],u=[".mp3",".wav",".aac",".m4a",".ogg",".flac",".opus"],f=[...o,...a,...n].join(",");function c(e){var t;let i=e.toLowerCase().match(/(\.[^.\\/]+)$/);return null!=(t=null==i?void 0:i[1])?t:""}function d(e){var t;let i=c(e.name);return i||(e.url?c(null!=(t=e.url.split("?")[0])?t:e.url):"")}function h(e,t){var i,r;if(!t)return!0;let n=t.split(",").map(e=>e.trim().toLowerCase()).filter(Boolean),o=null!=(r=null==(i=e.mimeType)?void 0:i.toLowerCase())?r:"",a=c(e.name);return n.some(e=>{if(e===o)return!0;if(e.startsWith("."))return e===a;if(e.endsWith("/*")){let[t]=e.split("/"),[i]=o.split("/");return!!t&&t===i}return!1})}function p(e){switch(e){case r.JS.Image:return"image/*";case r.JS.Video:return"video/*";case r.JS.Audio:return"audio/*";case r.JS.File:return f;default:return}}function A(e,t){return t!==r.JS.File||h(e,f)}function k(e,t){var i,f,c;return!t||(t===r.JS.Image?e.type===r.JS.Image||(null==(i=e.mimeType)?void 0:i.startsWith("image/"))===!0||s.includes(d(e)):t===r.JS.Video?e.type===r.JS.Video||(null==(f=e.mimeType)?void 0:f.startsWith("video/"))===!0||l.includes(d(e)):t===r.JS.Audio?(null==(c=e.mimeType)?void 0:c.startsWith("audio/"))===!0||u.includes(d(e)):t!==r.JS.File||e.type===r.JS.File||n.includes(d(e))||o.includes(d(e))||a.includes(d(e)))}},56676:function(e,t,i){"use strict";i.d(t,{ZL:()=>s,d_:()=>o,hD:()=>n,uR:()=>a});var r=i(42843);function n(e){return e.type===r.Fw.Text}function o(e){return e.type===r.Fw.Select}function a(e){return e.type===r.Fw.Upload}function s(e){return o(e)&&e.selectMode===r.Ge.Multiple}},72191:function(e,t,i){"use strict";var r=i(43931);i.o(r,"SceneTemplateModal")&&i.d(t,{SceneTemplateModal:function(){return r.SceneTemplateModal}})},46844:function(e,t,i){"use strict";i.d(t,{SceneTemplateModal:()=>r.T});var r=i(13513),n=i(70965);i.o(n,"SceneTemplateMaterialType")&&i.d(t,{SceneTemplateMaterialType:function(){return n.SceneTemplateMaterialType}}),i.o(n,"SceneTemplateTextUIType")&&i.d(t,{SceneTemplateTextUIType:function(){return n.SceneTemplateTextUIType}}),i.o(n,"SceneTemplateVariableType")&&i.d(t,{SceneTemplateVariableType:function(){return n.SceneTemplateVariableType}})},13513:function(e,t,i){"use strict";i.d(t,{T:()=>Q});var r=i(72322);i(66655),i(45535);var n=i(50633),o=i(76894),a=i(18571),s=i(42843),l=i(30513),u=i(42842);function f(){let e=(0,a.useContext)(u.K);if(!e)throw Error("useSceneTemplateReporter must be used inside SceneTemplateProvider");return e.reporter}var c=i(39673),d=i(64349),h=i(64664),p=i(33994),A=i(3146),k=i(70965);function m(e){var t,i,n;let{errors:o,field:a,getUploadController:l,onAddUpload:u,onRemoveAsset:c,onRetryUpload:m,onUpdateField:g,submitting:b,uploadFieldState:v,uploadRenderers:y,uploadTriggerRenderer:Q,value:w,templateId:_,variable:x}=e,E=f(),C=()=>{_&&E.reportModalVariableChange({templateId:_,variable:x})};if(x.type===s.Fw.Text){let e=null!=(t=x.textUIType)?t:s.Jf.Single,i=k.defaultSceneTemplateVariableRenderers.text[e];return(0,r.jsx)(i,{variable:x,field:a,value:(0,A.fV)(w),errors:o,disabled:b,onChange:e=>{C(),g(x.key,e)}})}if(x.type===s.Fw.Upload){let e=y[null!=(i=x.uploadUIType)?i:s.pO.Thumbnail];return(0,r.jsx)(e,{variable:x,field:a,fieldState:v,errors:o,disabled:b,uploadTriggerRenderer:Q,onAddUpload:function(){var e=(0,d._)(function*(e){C(),yield u(x.key,e)});return function(t){return e.apply(this,arguments)}}(),onRemoveAsset:e=>{C(),c(x.key,e)},onRetryAsset:function(){var e=(0,d._)(function*(e){C(),yield m(x.key,e)});return function(t){return e.apply(this,arguments)}}(),uploadController:l(x.key)})}if(x.type===s.Fw.Select){if((null!=(n=x.selectMode)?n:s.Ge.Single)===s.Ge.Multiple){let e=k.defaultSceneTemplateVariableRenderers.select[s.Ge.Multiple],t=(0,p._)((0,h._)({},x),{selectMode:s.Ge.Multiple});return(0,r.jsx)(e,{variable:t,field:a,value:(0,A.OZ)(t,w),errors:o,disabled:b,onChange:e=>{C(),g(x.key,e)}})}let e=k.defaultSceneTemplateVariableRenderers.select[s.Ge.Single];return(0,r.jsx)(e,{variable:x,field:a,value:(0,A.QP)(x,w),errors:o,disabled:b,onChange:e=>{C(),g(x.key,e)}})}return(0,r.jsx)(r.Fragment,{})}let g=(0,a.memo)(m);function b(e){return(0,h._)({},k.defaultSceneTemplateVariableRenderers.upload,null!=e?e:{})}var v={modal:"modal_32f70",container:"container_32f70",leftPane:"leftPane_32f70",previewArea:"previewArea_32f70",previewMedia:"previewMedia_32f70",previewPlaceholder:"previewPlaceholder_32f70",rightPane:"rightPane_32f70",header:"header_32f70",title:"title_32f70",description:"description_32f70",closeButton:"closeButton_32f70",closeIcon:"closeIcon_32f70",mainContent:"mainContent_32f70",variableList:"variableList_32f70",footer:"footer_32f70",footerActions:"footerActions_32f70",editPromptButton:"editPromptButton_32f70",generateButton:"generateButton_32f70",generateButtonLabel:"generateButtonLabel_32f70",generateButtonSpinner:"generateButtonSpinner_32f70",generateButtonLoading:"generateButtonLoading_32f70"};function y(e){if(e.previewType===s.QL.Video&&e.previewUrl)return{kind:"video",url:e.previewUrl};let t=e.previewUrl||e.coverUrl;if(t)return{kind:"image",url:t}}function Q(){var e,t,i,u,d;let{uiState:h,uiManager:p,addUpload:A,closeTemplate:k,editPrompt:m,removeAsset:Q,submit:w,updateField:_}=(0,c.R)(),x=f(),{i18n:E,manager:C,runtime:D}=(0,l.V)(),S=!!D.ui.editPromptEnabled,L=(0,a.useMemo)(()=>{var e;return b(null==(e=D.ui.upload)?void 0:e.renderers)},[null==(e=D.ui.upload)?void 0:e.renderers]),B=h.currentTemplateId?C.getTemplateById(h.currentTemplateId):void 0,P=null!=(t=null==B?void 0:B.variables)?t:[],I=(0,a.useMemo)(()=>y({coverUrl:null==B?void 0:B.coverUrl,previewType:null==B?void 0:B.previewType,previewUrl:null==B?void 0:B.previewUrl}),[null==B?void 0:B.coverUrl,null==B?void 0:B.previewType,null==B?void 0:B.previewUrl]),O=E.t("sceneTemplate.common.template"),R=null!=(i=null==B?void 0:B.title)?i:O,N=(0,a.useMemo)(()=>(null==I?void 0:I.kind)==="video"?(0,r.jsx)("video",{autoPlay:!0,className:v.previewMedia,loop:!0,muted:!0,playsInline:!0,src:I.url,"aria-label":R,"data-testid":"14401:140728"}):(null==I?void 0:I.kind)==="image"?(0,r.jsx)("img",{className:v.previewMedia,src:I.url,alt:R,"data-testid":"14401:140728"}):(0,r.jsx)("div",{className:v.previewPlaceholder}),[R,I]),H=h.submitting,V=H||0===P.length||!h.isValid,F=H?`${v.generateButton} ${v.generateButtonLoading}`:v.generateButton,Z=null!=(u=null==B?void 0:B.templateId)?u:h.currentTemplateId;(0,a.useEffect)(()=>{h.visible&&Z&&x.reportModalExpose({templateId:Z})},[x,Z,h.visible]);let j=(0,a.useCallback)(()=>{Z&&x.reportModalSubmitClick({templateId:Z}),w("modal")},[x,w,Z]),z=(0,a.useCallback)(()=>{Z&&x.reportModalEditClick({templateId:Z}),m("modal")},[m,x,Z]),G=(0,a.useCallback)((e,t)=>p.uploadController.retryUpload(e,t),[p]),U=(0,a.useCallback)(e=>p.createUploadFieldController(e),[p]);return B?(0,r.jsx)(o.Z,{visible:h.visible,onCancel:k,footer:null,closable:!0,maskClosable:!1,className:v.modal,mountOnEnter:!0,unmountOnExit:!0,children:(0,r.jsxs)("div",{className:v.container,"data-testid":"14401:140726",children:[(0,r.jsx)("div",{className:v.leftPane,"data-testid":"14401:140727",children:(0,r.jsx)("div",{className:v.previewArea,"data-testid":"14401:140728:wrap",children:N})}),(0,r.jsxs)("div",{className:v.rightPane,"data-testid":"14401:140774",children:[(0,r.jsx)("header",{className:v.header,"data-testid":"14401:140775",children:(0,r.jsx)("h3",{className:v.title,"data-testid":"14401:140778",children:R})}),(null==B?void 0:B.description)?(0,r.jsx)("p",{className:v.description,"data-testid":"16095:174648",children:B.description}):null,(0,r.jsx)("div",{className:v.mainContent,"data-testid":"14568:103319",children:(0,r.jsx)("div",{className:v.variableList,"data-testid":"14568:103320",children:P.map(e=>{var t;return(0,r.jsx)(g,{templateId:Z,variable:e,field:h.fields[e.key],value:h.formValues[e.key],errors:h.fieldErrors[e.key],uploadFieldState:e.type===s.Fw.Upload?p.uploadController.getFieldState(e.key):void 0,submitting:h.submitting,uploadRenderers:L,uploadTriggerRenderer:null==(t=D.ui.upload)?void 0:t.triggerRenderer,onUpdateField:_,onAddUpload:A,onRemoveAsset:Q,onRetryUpload:G,getUploadController:U},e.key)})})}),h.modalIssues[0]?(0,r.jsx)("div",{className:v.issueMessage,children:h.modalIssues[0]}):null,(0,r.jsx)("footer",{className:v.footer,"data-testid":"14568:103342",children:(0,r.jsxs)("div",{className:v.footerActions,"data-testid":"14568:103343",children:[S?(0,r.jsx)("button",{className:v.editPromptButton,onClick:z,"data-testid":"14568:103344",children:E.t("sceneTemplate.modal.editPrompt")}):null,(0,r.jsxs)("button",{className:F,disabled:V,onClick:j,"aria-busy":H,"data-testid":"14568:103345",children:[(0,r.jsx)("span",{className:v.generateButtonLabel,children:null!=(d=B.buttonText)?d:E.t("sceneTemplate.modal.submit")}),H?(0,r.jsx)("span",{className:v.generateButtonSpinner,"aria-hidden":"true",children:(0,r.jsx)(n.Z,{size:16,spinColor:"white"})}):null]})]})})]})]})}):null}},70965:function(e,t,i){"use strict";i.d(t,{defaultSceneTemplateVariableRenderers:()=>f});var r=i(42843),n=i(38612),o=i(80965),a=i(84739),s=i(85738),l=i(60555),u=i(3948);i.o(u,"SceneTemplateMaterialType")&&i.d(t,{SceneTemplateMaterialType:function(){return u.SceneTemplateMaterialType}}),i.o(u,"SceneTemplateTextUIType")&&i.d(t,{SceneTemplateTextUIType:function(){return u.SceneTemplateTextUIType}}),i.o(u,"SceneTemplateVariableType")&&i.d(t,{SceneTemplateVariableType:function(){return u.SceneTemplateVariableType}});let f={text:{[r.Jf.Single]:s.K,[r.Jf.Multi]:a.K,[r.Jf.Static]:a.K},upload:{[r.pO.Thumbnail]:l.J,[r.pO.Preview]:l.J},select:{[r.Ge.Single]:o.c,[r.Ge.Multiple]:n._}}},38612:function(e,t,i){"use strict";i.d(t,{_:()=>_});var r=i(64664),n=i(33994),o=i(72322),a=i(18571),s=i(42843),l=i(3146),u="root_8a455",f="header_8a455",c="titleRow_8a455",d="title_8a455",h="required_8a455",p="optionList_8a455",A="optionButton_8a455",k="indicator_8a455",m="label_8a455",g="emptyState_8a455",b="description_8a455",v="feedbackRow_8a455",y="feedbackMain_8a455",Q="errorText_8a455";function w(e){var t;let{disabled:i,errors:a,onChange:w,value:_,variable:x}=e,E=null==a?void 0:a[0],C=null!=(t=x.options)?t:[],D=(0,l.OZ)((0,n._)((0,r._)({},x),{selectMode:s.Ge.Multiple}),_);return(0,o.jsxs)("div",{className:u,children:[(0,o.jsx)("div",{className:f,children:(0,o.jsxs)("div",{className:c,children:[(0,o.jsx)("div",{className:d,children:x.displayName}),x.required?(0,o.jsx)("span",{className:h,children:"*"}):null]})}),C.length?(0,o.jsx)("div",{className:p,children:C.map(e=>{let t=D.includes(e.value);return(0,o.jsxs)("button",{type:"button",className:A,"data-selected":t?"true":"false",disabled:i||e.disabled,onClick:()=>{w(t?D.filter(t=>t!==e.value):[...D,e.value])},children:[(0,o.jsx)("span",{className:k,"aria-hidden":"true"}),(0,o.jsx)("span",{className:m,children:e.label})]},e.value)})}):(0,o.jsx)("div",{className:g,children:"No options available"}),x.description?(0,o.jsx)("div",{className:b,children:x.description}):null,(0,o.jsx)("div",{className:v,children:(0,o.jsx)("div",{className:y,children:E?(0,o.jsx)("div",{className:Q,children:E}):null})})]})}let _=(0,a.memo)(w)},80965:function(e,t,i){"use strict";i.d(t,{c:()=>_});var r=i(64664),n=i(33994),o=i(72322),a=i(18571),s=i(42843),l=i(3146),u="root_f6fa7",f="header_f6fa7",c="titleRow_f6fa7",d="title_f6fa7",h="required_f6fa7",p="optionList_f6fa7",A="optionButton_f6fa7",k="indicator_f6fa7",m="label_f6fa7",g="emptyState_f6fa7",b="description_f6fa7",v="feedbackRow_f6fa7",y="feedbackMain_f6fa7",Q="errorText_f6fa7";function w(e){var t;let{disabled:i,errors:a,onChange:w,value:_,variable:x}=e,E=null==a?void 0:a[0],C=null!=(t=x.options)?t:[],D=(0,l.OZ)((0,n._)((0,r._)({},x),{selectMode:s.Ge.Single}),_),S=D?[D]:[];return(0,o.jsxs)("div",{className:u,children:[(0,o.jsx)("div",{className:f,children:(0,o.jsxs)("div",{className:c,children:[(0,o.jsx)("div",{className:d,children:x.displayName}),x.required?(0,o.jsx)("span",{className:h,children:"*"}):null]})}),C.length?(0,o.jsx)("div",{className:p,children:C.map(e=>{let t=S.includes(e.value);return(0,o.jsxs)("button",{type:"button",className:A,"data-selected":t?"true":"false",disabled:i||e.disabled,onClick:()=>w(e.value),children:[(0,o.jsx)("span",{className:k,"aria-hidden":"true"}),(0,o.jsx)("span",{className:m,children:e.label})]},e.value)})}):(0,o.jsx)("div",{className:g,children:"No options available"}),x.description?(0,o.jsx)("div",{className:b,children:x.description}):null,(0,o.jsx)("div",{className:v,children:(0,o.jsx)("div",{className:y,children:E?(0,o.jsx)("div",{className:Q,children:E}):null})})]})}let _=(0,a.memo)(w)},84739:function(e,t,i){"use strict";i.d(t,{K:()=>v});var r=i(72322),n=i(18571),o=i(42843),a=i(3146),s="root_1f6b9",l="header_1f6b9",u="titleRow_1f6b9",f="title_1f6b9",c="required_1f6b9",d="inputShell_1f6b9",h="textarea_1f6b9",p="description_1f6b9",A="feedbackRow_1f6b9",k="feedbackMain_1f6b9",m="counter_1f6b9",g="errorText_1f6b9";function b(e){var t;let{disabled:i,errors:n,onChange:b,value:v,variable:y}=e,Q=null==n?void 0:n[0],w=!!Q,_=y.textUIType===o.Jf.Static,x=(0,a.fV)(v),E=_?null!=(t=y.staticText)?t:"":x,C=i||_,D=e=>{b(e.target.value)};return(0,r.jsxs)("div",{className:s,children:[(0,r.jsx)("div",{className:l,children:(0,r.jsxs)("div",{className:u,children:[(0,r.jsx)("div",{className:f,children:y.displayName}),y.required?(0,r.jsx)("span",{className:c,children:"*"}):null]})}),(0,r.jsxs)("div",{className:d,"data-disabled":C?"true":"false","data-error":w?"true":"false",children:[(0,r.jsx)("textarea",{className:h,value:E,placeholder:y.placeholder,maxLength:y.maxLength,disabled:i,readOnly:_,rows:4,onChange:D}),y.maxLength&&!_?(0,r.jsxs)("span",{className:m,children:[E.length,"/",y.maxLength]}):null]}),y.description?(0,r.jsx)("div",{className:p,children:y.description}):null,(0,r.jsx)("div",{className:A,children:(0,r.jsx)("div",{className:k,children:Q?(0,r.jsx)("div",{className:g,children:Q}):null})})]})}let v=(0,n.memo)(b)},85738:function(e,t,i){"use strict";i.d(t,{K:()=>y});var r=i(72322),n=i(18571),o=i(42843),a=i(3146),s="root_33227",l="header_33227",u="titleRow_33227",f="title_33227",c="required_33227",d="inputShell_33227",h="input_33227",p="staticValue_33227",A="staticPlaceholder_33227",k="description_33227",m="feedbackRow_33227",g="feedbackMain_33227",b="errorText_33227";function v(e){var t;let{disabled:i,errors:n,onChange:v,value:y,variable:Q}=e,w=null==n?void 0:n[0],_=!!w,x=Q.textUIType===o.Jf.Static,E=(0,a.fV)(y),C=x?E||Q.staticText||"":E,D=e=>{v(e.target.value)};return(0,r.jsxs)("div",{className:s,children:[(0,r.jsx)("div",{className:l,children:(0,r.jsxs)("div",{className:u,children:[(0,r.jsx)("div",{className:f,children:Q.displayName}),Q.required?(0,r.jsx)("span",{className:c,children:"*"}):null]})}),x?(0,r.jsx)("div",{className:p,"data-disabled":i?"true":"false",children:C||(0,r.jsx)("span",{className:A,children:null!=(t=Q.placeholder)?t:"-"})}):(0,r.jsx)("div",{className:d,"data-disabled":i?"true":"false","data-error":_?"true":"false",children:(0,r.jsx)("input",{className:h,type:"text",value:E,placeholder:Q.placeholder,maxLength:Q.maxLength,disabled:i,onChange:D})}),Q.description?(0,r.jsx)("div",{className:k,children:Q.description}):null,(0,r.jsx)("div",{className:m,children:(0,r.jsx)("div",{className:g,children:w?(0,r.jsx)("div",{className:b,children:w}):null})})]})}let y=(0,n.memo)(v)},3948:function(){},60555:function(e,t,i){"use strict";i.d(t,{J:()=>K});var r=i(72322);i(66655);var n=i(50633),o=i(18571),a=i(30513),s=i(74748),l=i(95291),u="overlay_7126f",f="content_7126f",c="media_7126f",d="closeButton_7126f";function h(e){let{media:t,onClose:i}=e;(0,o.useEffect)(()=>{if(!t||"undefined"==typeof document)return;let e=e=>{"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),i())},r=document.body.style.overflow;return document.body.style.overflow="hidden",document.addEventListener("keydown",e,!0),()=>{document.body.style.overflow=r,document.removeEventListener("keydown",e,!0)}},[t,i]);let n=e=>{e.stopPropagation()};return t&&"undefined"!=typeof document?(0,l.createPortal)((0,r.jsx)("div",{className:u,onClick:i,children:(0,r.jsxs)("div",{className:f,onClick:n,children:[(0,r.jsx)("button",{type:"button",className:d,onClick:i,"aria-label":"Close preview",children:"\xd7"}),"video"===t.kind?(0,r.jsx)("video",{autoPlay:!0,className:c,controls:!0,muted:!0,playsInline:!0,poster:t.posterUrl,src:t.src,"aria-label":t.assetName}):(0,r.jsx)("img",{className:c,src:t.src,alt:t.assetName})]})}),document.body):null}let p=(0,o.memo)(h);var A="root_3c930",k="header_3c930",m="titleRow_3c930",g="titleMain_3c930",b="title_3c930",v="required_3c930",y="titleCounter_3c930",Q="uploadLayout_3c930",w="uploadPanel_3c930",_="uploadContent_3c930",x="uploadIcon_3c930",E="uploadInput_3c930",C="assetList_3c930",D="assetCard_3c930",S="assetPreviewWrap_3c930",L="removeButton_3c930",B="assetPreview_3c930",P="assetPreviewFallback_3c930",I="assetMask_3c930",O="assetLoadingSpin_3c930",R="assetDuration_3c930",N="secondaryAction_3c930",H="description_3c930",V="feedbackRow_3c930",F="feedbackMain_3c930",Z="issueText_3c930";let j=60,z=3600;function G(e,t){return(null==t?void 0:t.startsWith("video/"))?e.t("sceneTemplate.upload.preview.video"):(null==t?void 0:t.startsWith("audio/"))?e.t("sceneTemplate.upload.preview.audio"):e.t("sceneTemplate.upload.preview.file")}function U(e){var t,i;return e.coverUrl?e.coverUrl:(null==(t=e.mimeType)?void 0:t.startsWith("image/"))?null!=(i=e.previewUrl)?i:e.url:void 0}function X(e){return!!U(e)}function W(e){var t;return!!(null==(t=e.mimeType)?void 0:t.startsWith("video/"))}function $(e){var t;let i=null!=(t=e.previewUrl)?t:e.url;if(W(e)&&i)return{assetName:e.name,kind:"video",posterUrl:e.coverUrl,src:i};let r=U(e);if(r)return{assetName:e.name,kind:"image",src:r}}function Y(e){return"uploading"===e||"validating"===e}function q(e){if(!e||e<0)return;let t=Math.floor(e),i=Math.floor(t/z),r=Math.floor(t%z/j),n=t%j;return i>0?[i.toString().padStart(2,"0"),r.toString().padStart(2,"0"),n.toString().padStart(2,"0")].join(":"):[r.toString().padStart(2,"0"),n.toString().padStart(2,"0")].join(":")}function J(e){var t,i,l,u;let{disabled:f,errors:c,fieldState:d,onAddUpload:h,onRemoveAsset:j,onRetryAsset:z,uploadController:J,uploadTriggerRenderer:K,variable:ee}=e,{i18n:et}=(0,a.V)(),ei=null!=(i=null==d?void 0:d.assets)?i:[],er=null!=(l=null==d?void 0:d.uploadingAssets)?l:(null==d?void 0:d.uploadingAsset)?[d.uploadingAsset]:[],en=null!=(u=null==d?void 0:d.issues)?u:[],eo=null==c?void 0:c[0],ea=null==(t=en[0])?void 0:t.message,es=null!=eo?eo:ea,el=er.some(e=>Y(e.state)),eu=!!es,ef=ee.maxCount?Math.max(ee.maxCount-ei.length-er.length,0):void 0,ec=0===ef,ed=!!(f||ec),eh=(null!=ef?ef:2)>1,ep=`scene-template-upload-${ee.key}`,eA=(0,o.useRef)(null),[ek,em]=(0,o.useState)(null),eg=K,eb=et.t("sceneTemplate.upload.caption"),eT=(0,o.useMemo)(()=>[...er.map(e=>({id:e.id,name:e.name,previewUrl:e.previewUrl,coverUrl:e.coverUrl,mimeType:e.mimeType,duration:e.duration,previewMedia:void 0,status:"error"===e.state?"error":"uploading"})),...ei.map(e=>({id:e.id,name:e.name,url:e.url,previewUrl:e.previewUrl,coverUrl:e.coverUrl,mimeType:e.mimeType,duration:e.duration,previewMedia:$({coverUrl:e.coverUrl,mimeType:e.mimeType,name:e.name,previewUrl:e.previewUrl,url:e.url}),status:"success"}))],[ei,er]),ev=!!ee.maxCount,ey=ei.length+er.length,eQ=(0,o.useCallback)(e=>{let t=e.target.files?Array.from(e.target.files):[];0!==t.length&&((void 0===ef?t:t.slice(0,ef)).forEach(e=>{h(e)}),e.target.value="")},[h,ef]),ew=(0,o.useCallback)(e=>{e.stopPropagation();let{assetId:t}=e.currentTarget.dataset;t&&z(t)},[z]),e_=(0,o.useCallback)(e=>{e.stopPropagation();let{assetId:t}=e.currentTarget.dataset;t&&j(t)},[j]),ex=(0,o.useCallback)(()=>{var e;null==(e=eA.current)||e.click()},[]),eE=(0,o.useCallback)(()=>{em(null)},[]),eC=(0,o.useCallback)(e=>{let t=eT.find(t=>t.id===e);(null==t?void 0:t.status)==="success"&&t.previewMedia&&em(t.previewMedia)},[eT]),eD=(0,o.useCallback)(e=>{let{assetId:t}=e.currentTarget.dataset;t&&eC(t)},[eC]),eS=(0,o.useCallback)(e=>{if("Enter"!==e.key&&" "!==e.key)return;e.preventDefault();let{assetId:t}=e.currentTarget.dataset;t&&eC(t)},[eC]);return(0,r.jsxs)("div",{className:A,children:[(0,r.jsx)("div",{className:k,children:(0,r.jsxs)("div",{className:m,children:[(0,r.jsxs)("div",{className:g,children:[(0,r.jsx)("div",{className:b,children:ee.displayName}),ee.required?(0,r.jsx)("span",{className:v,children:"*"}):null]}),ev?(0,r.jsxs)("span",{className:y,children:[ey,"/",ee.maxCount]}):null]})}),(0,r.jsx)("div",{className:Q,children:(0,r.jsxs)("div",{className:C,children:[(0,r.jsxs)("div",{className:w,"data-disabled":ed?"true":"false","data-error":eu?"true":"false",onClick:eg||ed?void 0:ex,children:[eg?(0,r.jsx)(eg,{variable:ee,disabled:ed,busy:el,caption:eb,onTrigger:ex,uploadController:J}):(0,r.jsx)("div",{className:_,children:(0,r.jsx)("div",{className:x,children:"+"})}),(0,r.jsx)("input",{id:ep,ref:eA,className:E,type:"file",accept:(0,s.i5)(ee.materialType),multiple:eh,disabled:ed,onChange:eQ})]}),eT.map(e=>{let t=U(e),i=W(e)?q(e.duration):void 0,o="success"===e.status&&!!e.previewMedia;return(0,r.jsx)("div",{className:D,"data-status":e.status,children:(0,r.jsxs)("div",{className:S,"data-asset-id":e.id,"data-previewable":o?"true":"false",role:o?"button":void 0,tabIndex:o?0:void 0,onClick:o?eD:void 0,onKeyDown:o?eS:void 0,children:[X(e)&&t?(0,r.jsx)("img",{className:B,src:t,alt:e.name}):(0,r.jsx)("div",{className:P,children:G(et,e.mimeType)}),"uploading"===e.status?(0,r.jsx)("div",{className:I,"data-status":e.status,children:(0,r.jsx)(n.Z,{className:O,size:16,spinColor:"white"})}):null,"error"===e.status?(0,r.jsx)("div",{className:I,"data-status":e.status,children:(0,r.jsx)("button",{type:"button",className:N,"data-asset-id":e.id,disabled:f,onClick:ew,children:et.t("sceneTemplate.upload.retry")})}):null,i?(0,r.jsx)("div",{className:R,children:i}):null,f?null:(0,r.jsx)("button",{type:"button",className:L,"data-asset-id":e.id,onClick:e_,children:"\xd7"})]})},e.id)})]})}),ee.description?(0,r.jsx)("div",{className:H,children:ee.description}):null,(0,r.jsx)("div",{className:V,children:(0,r.jsx)("div",{className:F,children:es?(0,r.jsx)("div",{className:Z,children:es}):null})}),(0,r.jsx)(p,{media:ek,onClose:eE})]})}let K=(0,o.memo)(J)},42842:function(e,t,i){"use strict";i.d(t,{K:()=>r});let r=(0,i(18571).createContext)(null)},87509:function(e,t,i){"use strict";i.d(t,{b:()=>a});var r=i(72322),n=i(18571),o=i(42842);function a(e){let{runtime:t,children:i}=e,a=(0,n.useMemo)(()=>{var e,i;return null!=(i=null==(e=t.createManager)?void 0:e.call(t))?i:t.manager},[t]),s=(0,n.useMemo)(()=>{var e,i;return null!=(i=null==(e=t.createUiManager)?void 0:e.call(t))?i:t.uiManager},[t]),{reporter:l}=t;(0,n.useEffect)(()=>{a.loadCategories()},[a]);let u=(0,n.useMemo)(()=>({runtime:t,manager:a,uiManager:s,i18n:t.i18n,reporter:l}),[t,a,l,s]);return(0,r.jsx)(o.K.Provider,{value:u,children:i})}},37059:function(e,t,i){"use strict";i.d(t,{v:()=>e_});var r,n,o,a,s,l,u=i(64664),f=i(33994),c=i(64349),d=i(75310),h=i(72699);let p={post:(e,t)=>(0,c._)(function*(){return(yield h.Z.post(e,t,{headers:{"Content-Type":"application/json"}})).data})()};var A=i(42843);let k="en",m={en:{"sceneTemplate.common.template":"Template","sceneTemplate.picks.title":"Popular templates","sceneTemplate.picks.scrollRight":"Scroll right","sceneTemplate.modal.submit":"Generate","sceneTemplate.modal.editPrompt":"Edit prompt","sceneTemplate.modal.templateNotFound":"Template not found","sceneTemplate.modal.editPromptFailed":"Edit prompt failed","sceneTemplate.modal.submitFailed":"Submit failed","sceneTemplate.empty.title":"No templates","sceneTemplate.validation.required":"This field is required","sceneTemplate.validation.maxLength":"Max length is {maxLength}","sceneTemplate.validation.url":"Invalid URL format","sceneTemplate.validation.email":"Invalid email format","sceneTemplate.validation.number":"Invalid number format","sceneTemplate.upload.caption":"Upload asset","sceneTemplate.upload.waiting":"Please wait for uploads to finish","sceneTemplate.upload.retry":"Retry","sceneTemplate.upload.preview.video":"VID","sceneTemplate.upload.preview.audio":"AUD","sceneTemplate.upload.preview.file":"FILE","sceneTemplate.upload.failed":"Upload failed","sceneTemplate.upload.fileTooLarge":"File exceeds {maxSizeMb}MB","sceneTemplate.upload.maxCount":"Max {maxCount} files allowed","sceneTemplate.upload.unsupported.image":"Only image files are supported","sceneTemplate.upload.unsupported.video":"Only video files are supported","sceneTemplate.upload.unsupported.audio":"Only audio files are supported","sceneTemplate.upload.unsupported.file":"Only PPT, Word, and PDF files are supported","sceneTemplate.upload.unsupported.default":"Unsupported file type","sceneTemplate.api.fetchCategoriesFailed":"Failed to fetch categories","sceneTemplate.api.fetchTemplatesFailed":"Failed to fetch templates"},zh:{"sceneTemplate.common.template":"\u6A21\u677F","sceneTemplate.picks.title":"\u70ED\u95E8\u6A21\u677F","sceneTemplate.picks.scrollRight":"\u5411\u53F3\u6EDA\u52A8","sceneTemplate.modal.submit":"\u751F\u6210","sceneTemplate.modal.editPrompt":"\u7F16\u8F91\u63D0\u793A\u8BCD","sceneTemplate.modal.templateNotFound":"\u6A21\u677F\u4E0D\u5B58\u5728","sceneTemplate.modal.editPromptFailed":"\u7F16\u8F91\u63D0\u793A\u8BCD\u5931\u8D25","sceneTemplate.modal.submitFailed":"\u63D0\u4EA4\u5931\u8D25","sceneTemplate.empty.title":"\u6682\u65E0\u6A21\u677F","sceneTemplate.validation.required":"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879","sceneTemplate.validation.maxLength":"\u6700\u591A\u53EF\u8F93\u5165 {maxLength} \u4E2A\u5B57\u7B26","sceneTemplate.validation.url":"URL \u683C\u5F0F\u4E0D\u6B63\u786E","sceneTemplate.validation.email":"\u90AE\u7BB1\u683C\u5F0F\u4E0D\u6B63\u786E","sceneTemplate.validation.number":"\u6570\u5B57\u683C\u5F0F\u4E0D\u6B63\u786E","sceneTemplate.upload.caption":"\u4E0A\u4F20\u7D20\u6750","sceneTemplate.upload.waiting":"\u8BF7\u7B49\u5F85\u4E0A\u4F20\u5B8C\u6210","sceneTemplate.upload.retry":"\u91CD\u8BD5","sceneTemplate.upload.preview.video":"\u89C6\u9891","sceneTemplate.upload.preview.audio":"\u97F3\u9891","sceneTemplate.upload.preview.file":"\u6587\u4EF6","sceneTemplate.upload.failed":"\u4E0A\u4F20\u5931\u8D25","sceneTemplate.upload.fileTooLarge":"\u6587\u4EF6\u8D85\u8FC7 {maxSizeMb}MB","sceneTemplate.upload.maxCount":"\u6700\u591A\u5141\u8BB8\u4E0A\u4F20 {maxCount} \u4E2A\u6587\u4EF6","sceneTemplate.upload.unsupported.image":"\u4EC5\u652F\u6301\u56FE\u7247\u6587\u4EF6","sceneTemplate.upload.unsupported.video":"\u4EC5\u652F\u6301\u89C6\u9891\u6587\u4EF6","sceneTemplate.upload.unsupported.audio":"\u4EC5\u652F\u6301\u97F3\u9891\u6587\u4EF6","sceneTemplate.upload.unsupported.file":"\u4EC5\u652F\u6301 PPT\u3001Word \u548C PDF \u6587\u4EF6","sceneTemplate.upload.unsupported.default":"\u4E0D\u652F\u6301\u7684\u6587\u4EF6\u7C7B\u578B","sceneTemplate.api.fetchCategoriesFailed":"\u83B7\u53D6\u5206\u7C7B\u5931\u8D25","sceneTemplate.api.fetchTemplatesFailed":"\u83B7\u53D6\u6A21\u677F\u5931\u8D25"}};function g(e,t){return t?Object.entries(t).reduce((e,[t,i])=>e.split(`{${t}}`).join(String(i)),e):e}function b(e,t,i,r){var n,o,a,s,l,u,f;return null!=(f=null!=(u=null==e||null==(n=e.getMessage)?void 0:n.call(e,t,i))?u:null==e||null==(a=e.messages)||null==(o=a[i])?void 0:o[t])?f:null==e||null==(l=e.messages)||null==(s=l[r])?void 0:s[t]}function v(e,t){var i,r;return null!=(r=null==(i=m[t])?void 0:i[e])?r:m[k][e]}function y(e){var t;return(null!=(t=null==e?void 0:e.trim().toLowerCase())?t:"").startsWith("zh")?"zh":k}function Q(e){var t;let i=null!=(t=null==e?void 0:e.localeKey)?t:k,r=y(i);return{localeKey:i,t:(t,n)=>{var o,a,s;let l=b(e,t,i,r),u=null!=(a=null!=l?l:v(t,r))?a:t;return null!=(s=null==e||null==(o=e.formatMessage)?void 0:o.call(e,u,n))?s:g(u,n)}}}!function(e){e[e.Text=1]="Text",e[e.Select=2]="Select",e[e.Upload=3]="Upload"}(r||(r={})),function(e){e[e.Single=1]="Single",e[e.Multi=2]="Multi",e[e.Static=3]="Static"}(n||(n={})),function(e){e[e.Single=1]="Single",e[e.Multiple=2]="Multiple"}(o||(o={})),function(e){e[e.Thumbnail=1]="Thumbnail",e[e.Preview=2]="Preview"}(a||(a={})),function(e){e[e.None=1]="None",e[e.Url=2]="Url",e[e.Number=3]="Number",e[e.Email=4]="Email"}(s||(s={})),function(e){e[e.Image=1]="Image",e[e.Video=2]="Video",e[e.File=3]="File"}(l||(l={}));let w={[n.Single]:A.Jf.Single,[n.Multi]:A.Jf.Multi,[n.Static]:A.Jf.Static},_={[a.Thumbnail]:A.pO.Thumbnail,[a.Preview]:A.pO.Preview},x={[l.Image]:A.JS.Image,[l.Video]:A.JS.Video,[l.File]:A.JS.File},E={[s.None]:A.kN.None,[s.Url]:A.kN.Url,[s.Number]:A.kN.Number,[s.Email]:A.kN.Email};function C(e){var t,i,n,a,s,l,c,d;let h=e,p=null!=(t=e.textUIType)?t:h.textUiType,k=null!=(i=e.uploadUIType)?i:h.uploadUiType,m={key:e.key,displayName:e.displayName,required:!!e.required,placeholder:e.placeholder,description:e.description};return e.type===r.Text?(0,f._)((0,u._)({},m),{type:A.Fw.Text,textUIType:p&&null!=(n=w[p])?n:A.Jf.Single,maxLength:e.maxLength,staticText:e.staticText,validation:e.validation&&null!=(a=E[e.validation])?a:A.kN.None}):e.type===r.Upload?(0,f._)((0,u._)({},m),{type:A.Fw.Upload,uploadUIType:k&&null!=(s=_[k])?s:A.pO.Thumbnail,materialType:void 0!==e.materialType&&null!=(l=x[e.materialType])?l:A.JS.File,maxCount:null!=(c=e.maxCount)?c:1,maxSizeMb:e.maxSizeMb}):e.type===r.Select?(0,f._)((0,u._)({},m),{type:A.Fw.Select,selectMode:e.selectMode===o.Multiple?A.Ge.Multiple:A.Ge.Single,options:(null!=(d=e.options)?d:[]).map(e=>({value:e,label:e})),defaultOption:e.defaultOption}):(0,f._)((0,u._)({},m),{type:A.Fw.Unknown,rawType:e.type})}function D(e){var t,i,r,n,o,a,s;return{templateId:null!=(i=e.templateId)?i:"",title:null!=(r=e.title)?r:"",description:e.description,previewUrl:e.previewUrl,previewType:e.previewType,coverUrl:e.coverUrl,category:null==(t=e.category)?void 0:t.categoryId,promptTemplate:null!=(n=e.promptTemplate)?n:"",preloadSkills:e.preloadSkills,addSkills:e.addSkills,variables:(null!=(o=e.variables)?o:[]).map(C),status:null!=(a=e.status)?a:A.NA.Offline,sortWeight:null!=(s=e.sortWeight)?s:0,buttonText:e.buttonText,createdAt:e.createdAt,updatedAt:e.updatedAt}}let S="/api/biz/v1/template/category/list",L="/api/biz/v1/template/list",B=1,P=100,I="scene-template-sdk:v1";function O(e){return e instanceof Error&&!0===e.sceneTemplateHandled}class R{fetchCategories(){var e=this;return(0,c._)(function*(){if(e._apiAdapter)return e._apiAdapter.getCategories();let t=e._createCategoriesCacheKey(),i=yield e._readCache(t,"fetchCategories",e=>Array.isArray(e));return void 0!==i?(e._requestCategoriesAndRefreshCache(t).catch(()=>void 0),i):e._requestCategoriesAndRefreshCache(t)})()}fetchTemplatesByCategory(e){return this._requestTemplatesByCategory(e)}_requestCategoriesAndRefreshCache(e){var t=this;return(0,c._)(function*(){let i=yield t._requestCategories();return t._writeCache(e,i,"fetchCategories"),i})()}_requestCategories(){var e=this;return(0,c._)(function*(){var t,i,r;let n={},o=e._envAdapter.getLocale();o&&(n.language=o);let a=e._resolveUrl(S);try{let r=yield e._requestAdapter.post(a,n);return(null!=(i=null==(t=e._camelizeKeys(r).data)?void 0:t.categoryList)?i:[]).filter(e=>!!e.categoryId).map(e=>{var t,i;return{id:null!=(t=e.categoryId)?t:"",name:null!=(i=e.categoryName)?i:"",sortWeight:0,isOnline:!0}})}catch(t){throw null==(r=e._monitoringAdapter)||r.captureError(t,{scope:"fetchCategories"}),e._createHandledError(t,e._i18n.t("sceneTemplate.api.fetchCategoriesFailed"))}})()}_requestTemplatesByCategory(e){var t=this;return(0,c._)(function*(){var i,r,n,o,a,s,l;if(t._apiAdapter)return t._apiAdapter.getTemplatesByCategory(e);let u=t._buildTemplateListRequest(e),f=t._resolveUrl(L);try{let e=yield t._requestAdapter.post(f,u),l=t._camelizeKeys(e),c=(null!=(n=null==(i=l.data)?void 0:i.promptTemplateList)?n:[]).map(D).filter(e=>e.status===A.NA.Online),d=null!=(o=null==(r=l.data)?void 0:r.totalCount)?o:c.length,h=null!=(a=u.page_num)?a:B,p=null!=(s=u.page_size)?s:P,k=h*pthis._camelizeKeys(e)):this._isRecord(e)?Object.fromEntries(Object.entries(e).map(([e,t])=>[(0,d.Z)(e),this._camelizeKeys(t)])):e}_isRecord(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}_readCache(e,t,i){var r=this;return(0,c._)(function*(){if(r._cacheAdapter)try{let t=yield r._cacheAdapter.get(e);if("string"!=typeof t||0===t.length)return;let n=JSON.parse(t);if(!i(n))return;return n}catch(i){var n;null==(n=r._monitoringAdapter)||n.captureError(i,{scope:t,stage:"cache_read",cacheKey:e});return}})()}_writeCache(e,t,i){var r=this;return(0,c._)(function*(){if(r._cacheAdapter)try{yield r._cacheAdapter.set(e,JSON.stringify(t))}catch(t){var n;null==(n=r._monitoringAdapter)||n.captureError(t,{scope:i,stage:"cache_write",cacheKey:e})}})()}_createHandledError(e,t){let i=e instanceof Error?e:Error(t);return i.message=i.message||t,i.sceneTemplateHandled=!0,i}constructor(e,t,i,r,n=Q(),o=p){this._envAdapter=e,this._monitoringAdapter=t,this._apiAdapter=i,this._cacheAdapter=r,this._i18n=n,this._requestAdapter=o}}var N=i(21983);class H{reportTemplateCardExpose(e){this._report({event:N.N.PicksCardExpose,templateId:e.templateId,categoryName:e.categoryName})}reportTemplateCardClick(e){this._report({event:N.N.PicksCardClick,templateId:e.templateId,categoryName:e.categoryName})}reportModalExpose(e){this._report({event:N.N.ModalExpose,templateId:e.templateId})}reportModalEditClick(e){this._report({event:N.N.ModalEditClick,templateId:e.templateId})}reportModalSubmitClick(e){this._report({event:N.N.ModalSubmitClick,templateId:e.templateId})}reportModalVariableChange(e){this._report({event:N.N.ModalVariableChange,templateId:e.templateId,payload:{variable:e.variable}})}_report(e){var t;e.templateId&&(null==(t=this._adapter)||t.report(e))}constructor(e){this._adapter=e}}class V{subscribe(e){return this._listeners.add(e),()=>{this._listeners.delete(e)}}getSnapshot(){return this.state}setCategories(e){this._updateState({categories:[...e]}),this._ensureCategoryStates(e),this._syncDerivedState()}mergeCategories(e){let t=new Map(this.state.categories.map(e=>[e.id,e]));for(let i of e)t.set(i.id,i);this._updateState({categories:Array.from(t.values())}),this._ensureCategoryStates(e),this._syncDerivedState()}loadCategories(){var e=this;return(0,c._)(function*(){e._categoriesLoading=!0,e._categoriesError=void 0,e._syncDerivedState();try{let t=yield e._apiClient.fetchCategories();e._updateState({categories:t}),e._ensureCategoryStates(t);let i=e._resolveActiveCategory(t);e._updateState({activeCategory:i}),i?yield e.loadTemplatesByCategory(i):e._syncDerivedState()}catch(t){e._captureUnhandledError(t,{scope:"loadCategories"}),e._categoriesError=e._getErrorMessage(t,e._i18n.t("sceneTemplate.api.fetchCategoriesFailed")),e._syncDerivedState()}finally{e._categoriesLoading=!1,e._syncDerivedState()}})()}loadTemplatesByCategory(e){var t=this;return(0,c._)(function*(){let i=t._getCategoryState(e);if((null==i||!i.loading)&&(!i||!(i.templates.length>0)||i.error)){t._setCategoryState(e,{loading:!0,error:void 0}),t._syncDerivedState();try{let i=yield t._apiClient.fetchTemplatesByCategory({categoryId:e});t._categoryCache.set(e,{templates:i.templates,hasMore:i.hasMore,nextCursor:i.nextCursor}),t._setCategoryState(e,{templates:i.templates,loading:!1,error:void 0,hasMore:i.hasMore,nextCursor:i.nextCursor})}catch(i){t._captureUnhandledError(i,{scope:"loadTemplatesByCategory",categoryId:e}),t._setCategoryState(e,{loading:!1,error:t._getErrorMessage(i,t._i18n.t("sceneTemplate.api.fetchTemplatesFailed"))})}finally{t._syncDerivedState()}}})()}switchCategory(e){var t=this;return(0,c._)(function*(){t._updateState({activeCategory:e}),t._syncDerivedState(),yield t.loadTemplatesByCategory(e)})()}getTemplateById(e){for(let t of this._categoryCache.values()){let i=t.templates.find(t=>t.templateId===e);if(i)return i}for(let t of Object.values(this.state.categoryStates)){let i=t.templates.find(t=>t.templateId===e);if(i)return i}return this.state.templates.find(t=>t.templateId===e)}getTemplatesByCategory(e){var t,i,r,n;return null!=(n=null!=(r=null==(t=this._getCategoryState(e))?void 0:t.templates)?r:null==(i=this._categoryCache.get(e))?void 0:i.templates)?n:[]}reloadCategory(e){var t=this;return(0,c._)(function*(){t._categoryCache.delete(e),t._setCategoryState(e,{templates:[],loading:!1,error:void 0,hasMore:void 0,nextCursor:void 0}),yield t.loadTemplatesByCategory(e)})()}reloadAllCategories(){var e=this;return(0,c._)(function*(){e._categoryCache.clear(),e._updateState({categoryStates:{},templates:[],activeCategory:void 0,loading:!1,error:void 0}),yield e.loadCategories()})()}_updateState(e){this.state=(0,u._)({},this.state,e),this._listeners.forEach(e=>e())}_captureUnhandledError(e,t){var i;O(e)||null==(i=this._monitoringAdapter)||i.captureError(e,t)}_getErrorMessage(e,t){return e instanceof Error&&e.message?e.message:t}_resolveActiveCategory(e){var t;let i=this.state.activeCategory;return i&&e.some(e=>e.id===i)?i:null==(t=e[0])?void 0:t.id}_getCategoryState(e){if(e)return this.state.categoryStates[e]}_ensureCategoryStates(e){let t=(0,u._)({},this.state.categoryStates);for(let a of e)if(!t[a.id]){var i,r,n,o;t[a.id]={templates:null!=(o=null==(i=this._getCategoryStateFromCache(a.id))?void 0:i.templates)?o:[],loading:!1,error:void 0,hasMore:null==(r=this._getCategoryStateFromCache(a.id))?void 0:r.hasMore,nextCursor:null==(n=this._getCategoryStateFromCache(a.id))?void 0:n.nextCursor}}this._updateState({categoryStates:t})}_getCategoryStateFromCache(e){let t=this._categoryCache.get(e);return t?{templates:t.templates,loading:!1,error:void 0,hasMore:t.hasMore,nextCursor:t.nextCursor}:this.state.categoryStates[e]}_setCategoryState(e,t){var i;let r=null!=(i=this._getCategoryState(e))?i:{templates:[],loading:!1,error:void 0,hasMore:void 0,nextCursor:void 0},n=(0,u._)({},r,t);this._updateState({categoryStates:(0,f._)((0,u._)({},this.state.categoryStates),{[e]:n})})}_syncDerivedState(){var e,t;let i=this._getCategoryState(this.state.activeCategory);this._updateState({templates:null!=(e=null==i?void 0:i.templates)?e:[],loading:this._categoriesLoading||!!(null==i?void 0:i.loading),error:null!=(t=this._categoriesError)?t:null==i?void 0:i.error})}constructor(e,t,i=Q()){this._apiClient=e,this._monitoringAdapter=t,this._i18n=i,this._listeners=new Set,this._categoryCache=new Map,this._categoriesLoading=!1,this.state={categories:[],categoryStates:{},templates:[],activeCategory:void 0,loading:!1,error:void 0}}}var F=i(3146);let Z=/^https?:\/\/[^\s/$.?#].[^\s]*$/i,j=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,z=/^-?\d+(\.\d+)?$/;class G{validateField(e,t){return this._validateFieldErrors(e,t,{[e.key]:t},{})}validateAll(e,t){return this.validateForm({variables:e,formValues:t,uploadedAssets:{}}).fieldErrors}validateForm(e){let t={},i=[];for(let i of e.variables){let r=this._validateFieldErrors(i,e.formValues[i.key],e.formValues,e.uploadedAssets,e.template);r.length>0&&(t[i.key]=r)}return this._formValidators.forEach(r=>{var n,o;let a=r({template:e.template,variables:e.variables,values:e.formValues,uploadedAssets:e.uploadedAssets});a&&(Object.entries(null!=(n=a.fieldErrors)?n:{}).forEach(([e,i])=>{var r;t[e]=[...null!=(r=t[e])?r:[],...i]}),i.push(...null!=(o=a.formIssues)?o:[]))}),{fieldErrors:t,formIssues:i}}_validateFieldErrors(e,t,i,r,n){let o=this._validateBuiltInRules(e,t,r);return this._fieldValidators.forEach(a=>{var s;o.push(...null!=(s=a({template:n,variable:e,value:t,values:i,uploadedAssets:r}))?s:[])}),o}_validateBuiltInRules(e,t,i){var r,n;let o=[],a=e.type===A.Fw.Upload,s=(0,F.QP)(e,t),l=a?(null!=(n=null==(r=i[e.key])?void 0:r.length)?n:0)===0:null==s||""===s||Array.isArray(s)&&0===s.length;if(e.required&&l)return o.push(this._i18n.t("sceneTemplate.validation.required")),o;if(e.type!==A.Fw.Text)return o;let u=(0,F.fV)(t);return 0===u.length||(e.maxLength&&u.length>e.maxLength&&o.push(this._i18n.t("sceneTemplate.validation.maxLength",{maxLength:e.maxLength})),e.validation!==A.kN.Url||Z.test(u)||o.push(this._i18n.t("sceneTemplate.validation.url")),e.validation!==A.kN.Email||j.test(u)||o.push(this._i18n.t("sceneTemplate.validation.email")),e.validation!==A.kN.Number||z.test(u)||o.push(this._i18n.t("sceneTemplate.validation.number"))),o}constructor(e,t=Q()){var i,r;this._fieldValidators=null!=(i=null==e?void 0:e.fieldValidators)?i:[],this._formValidators=null!=(r=null==e?void 0:e.formValidators)?r:[],this._i18n=t}}var U=i(56676),X=i(74427),W=i(92202);let $="coverUrl";function Y(e){var t,i;if(e.coverUrl)return e.coverUrl;if(null==(t=e.mimeType)?void 0:t.startsWith("image/"))return e.url;let r=null==(i=e.extra)?void 0:i[$];if("string"==typeof r&&r)return r}function q(e){if(!e||!($ in e))return e;let{[$]:t}=e,i=(0,X._)(e,[$].map(W._));return Object.keys(i).length>0?i:void 0}function J(e,t){var i,r;let n=e.raw&&"object"==typeof e.raw&&!Array.isArray(e.raw)?e.raw.type:void 0;return n===A.JS.Image||n===A.JS.Video||n===A.JS.File?n:(null==(i=e.mimeType)?void 0:i.startsWith("image/"))?A.JS.Image:(null==(r=e.mimeType)?void 0:r.startsWith("video/"))?A.JS.Video:t===A.JS.Image||t===A.JS.Video?t:A.JS.File}function K(e,t){let{previewUrl:i}=e,r=(0,X._)(e,["previewUrl"]);return(0,f._)((0,u._)({},r),{coverUrl:Y(e),extra:q(e.extra),type:J(e,t)})}function ee(e,t,i){var r;let n=new Map(e.variables.filter(e=>e.type===A.Fw.Upload).map(e=>[e.key,e]));return{template:e,formValues:t,uploadedAssets:Object.fromEntries(Object.entries(i).map(([e,t])=>[e,t.map(t=>{var i;return K(t,null==(i=n.get(e))?void 0:i.materialType)})])),promptText:null!=(r=e.promptTemplate)?r:""}}function et(e,t){return Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,i)=>e===t[i]):e===t}class ei{subscribe(e){return this._listeners.add(e),()=>{this._listeners.delete(e)}}getSnapshot(){return this._state}initialize(e,t){let i={},r={};for(let n of e){let e=t[n.key];r[n.key]=e,i[n.key]=this._createFieldState(n,e)}this._state={values:r,initialValues:(0,u._)({},t),fields:i,fieldErrors:{},submitting:!1,formIssues:[]},this._emit()}updateField(e,t){let i=this._state.fields[e];if(!i)return;let r=(0,f._)((0,u._)({},i),{value:t,dirty:!et(i.initialValue,t),touched:!0,visited:!0,errors:[]}),n=(0,u._)({},this._state.fieldErrors);delete n[e],this._setState({values:(0,f._)((0,u._)({},this._state.values),{[e]:t}),fields:(0,f._)((0,u._)({},this._state.fields),{[e]:r}),fieldErrors:n})}setFieldErrors(e){let t={};for(let[r,n]of Object.entries(this._state.fields)){var i;t[r]=(0,f._)((0,u._)({},n),{errors:null!=(i=e[r])?i:[]})}this._setState({fields:t,fieldErrors:e})}clearFieldError(e){var t;let i=this._state.fields[e];if(!i||!(null==(t=this._state.fieldErrors[e])?void 0:t.length))return;let r=(0,u._)({},this._state.fieldErrors);delete r[e],this._setState({fields:(0,f._)((0,u._)({},this._state.fields),{[e]:(0,f._)((0,u._)({},i),{errors:[]})}),fieldErrors:r})}setFormIssues(e){this._setState({formIssues:e})}setSubmitting(e){this._setState({submitting:e})}reset(){this._state={values:{},initialValues:{},fields:{},fieldErrors:{},submitting:!1,formIssues:[]},this._emit()}_createFieldState(e,t){return{key:e.key,value:t,initialValue:t,errors:[],touched:!1,dirty:!1,visited:!1,validating:!1,visible:!0,disabled:!1,required:!!e.required}}_setState(e){this._state=(0,u._)({},this._state,e),this._emit()}_emit(){this._listeners.forEach(e=>e())}constructor(){this._listeners=new Set,this._state={values:{},initialValues:{},fields:{},fieldErrors:{},submitting:!1,formIssues:[]}}}var er=i(74748);function en(e,t){switch(t){case"image":return e.t("sceneTemplate.upload.unsupported.image");case"video":return e.t("sceneTemplate.upload.unsupported.video");case"audio":return e.t("sceneTemplate.upload.unsupported.audio");case"file":return e.t("sceneTemplate.upload.unsupported.file");default:return e.t("sceneTemplate.upload.unsupported.default")}}class eo{createFieldController(e){return{getFieldState:()=>this.getFieldState(e),addFile:t=>this.addUpload(e,t),addMedia:t=>this.addMedia(e,t),startPendingAsset:t=>({taskId:this.startPendingAsset(e,t)}),resolvePendingAsset:(t,i)=>this.resolvePendingAsset(e,t,i),failPendingAsset:(t,i)=>this.failPendingAsset(e,t,i),addResolvedAsset:(t,i)=>this.addResolvedAsset(e,t,i),removeAsset:t=>this.removeAsset(e,t),retryAsset:t=>this.retryUpload(e,t)}}subscribe(e){return this._listeners.add(e),()=>{this._listeners.delete(e)}}reset(){for(let e of this._stateMap.values())e.uploadingAssets.forEach(e=>{this._cleanupUploadingAsset(e)}),e.assets.forEach(e=>{this._cleanupResolvedAsset(e)});this._stateMap.clear(),this._managedObjectUrls.clear(),this._taskSourceMap.clear(),this._retrySourceMap.clear(),this._pendingUploadOrderMap.clear(),this._resolvedAssetOrderMap.clear(),this._variableMap.clear(),this._pendingResolvedAssetMap.clear(),this._emit()}detachUploadedAssetUrls(){for(let e of this._stateMap.values())for(let t of e.assets)this._detachManagedUrls([t.url,t.previewUrl,t.coverUrl])}registerVariables(e){for(let t of e)this._variableMap.set(t.key,t),this._stateMap.has(t.key)||this._stateMap.set(t.key,{variableId:t.key,state:"idle",assets:[],uploadingAssets:[],uploadingAsset:void 0,issues:[],fieldIssues:[]});this._emit()}getFieldState(e){return this._stateMap.get(e)}getSnapshot(){return Object.fromEntries(this._stateMap.entries())}getUploadedAssets(){let e={};return this._stateMap.forEach((t,i)=>{e[i]=t.assets}),e}addUpload(e,t){var i=this;return(0,c._)(function*(){let r=i._createExternalUploadSource(t);r&&(yield i._addUploadSource(e,r))})()}addMedia(e,t){var i=this;return(0,c._)(function*(){yield i._addUploadSource(e,i._createMediaSource(t))})()}_addUploadSource(e,t){var i=this;return(0,c._)(function*(){let r=i._variableMap.get(e);if(!r||!i._upload&&!i._uploadMedia)return;let n=i._generateTaskId(),o=i._buildUploadingAsset(n,t);i._taskSourceMap.set(n,t),i._retrySourceMap.set(n,t),i._pendingUploadOrderMap.set(n,i._generateUploadOrder()),i._updateFieldState(e,e=>{e.lastTaskId=n,e.fieldIssues=[],e.uploadingAssets=[o,...e.uploadingAssets]}),i._hydrateVideoAssetMetadata(e,n,t,o.previewUrl),yield i._runManagedUpload(e,n,t,r)})()}startPendingAsset(e,t){var i;if(!this._variableMap.has(e))return"";let r=null!=(i=t.taskId)?i:this._generateTaskId(),n=this._resolvePendingSource(t.file,t.media,t.pending),o=this._buildPendingAsset(r,t.pending,n);return n&&(this._taskSourceMap.set(r,n),this._retrySourceMap.set(r,n)),this._pendingUploadOrderMap.set(r,this._generateUploadOrder()),this._updateFieldState(e,e=>{e.lastTaskId=r,e.fieldIssues=[],e.uploadingAssets=[o,...e.uploadingAssets]}),this._hydrateVideoAssetMetadata(e,r,n,o.previewUrl),r}resolvePendingAsset(e,t,i){let r=this._stateMap.get(e);if(!(r?this._findUploadingAsset(r,t):void 0))return this._taskSourceMap.delete(t),this._retrySourceMap.delete(t),this._pendingUploadOrderMap.delete(t),Promise.resolve();let n=this._taskSourceMap.get(t);return this._appendResolvedAsset({variableId:e,asset:i,source:n,taskId:t,preserveUploadingStateOnFailure:!0})}failPendingAsset(e,t,i){this._updateFieldState(e,e=>{let r=this._findUploadingAsset(e,t);r&&(e.fieldIssues=[],r.state="error",r.issues=i.length>0?i:[this._createUploadFailedIssue()])})}addResolvedAsset(e,t,i){return this._appendResolvedAsset({variableId:e,asset:t,source:this._normalizeExternalSource(i),uploadOrder:this._generateUploadOrder(),preserveUploadingStateOnFailure:!1})}removeAsset(e,t){this._updateFieldState(e,e=>{let i=this._findUploadingAsset(e,t);if(i){this._cleanupUploadingAsset(i),e.fieldIssues=[],e.uploadingAssets=e.uploadingAssets.filter(e=>e.id!==t),this._taskSourceMap.delete(t),this._retrySourceMap.delete(t),this._pendingUploadOrderMap.delete(t),this._pendingResolvedAssetMap.delete(t);return}let r=e.assets.find(e=>e.id===t);r&&this._cleanupResolvedAsset(r),e.fieldIssues=[],e.assets=e.assets.filter(e=>e.id!==t),this._resolvedAssetOrderMap.delete(t)})}retryUpload(e,t){var i=this;return(0,c._)(function*(){var r;let n=i._variableMap.get(e),o=i._stateMap.get(e),a=null==o||null==(r=o.uploadingAssets.find(e=>"error"===e.state))?void 0:r.id,s=i._retrySourceMap.has(t)?t:a,l=s?i._retrySourceMap.get(s):void 0;l&&n&&o&&s&&i._findUploadingAsset(o,s)&&(i._updateFieldState(e,e=>{let t=i._findUploadingAsset(e,s);t&&(e.lastTaskId=s,e.fieldIssues=[],t.state="validating",t.issues=[])}),yield i._runManagedUpload(e,s,l,n))})()}abort(e,t){var i=this;return(0,c._)(function*(){i._abortUpload&&(yield i._abortUpload({variableId:e,taskId:t})),i._updateFieldState(e,e=>{let r=i._findUploadingAsset(e,t);r&&(i._cleanupUploadingAsset(r),e.fieldIssues=[],e.uploadingAssets=e.uploadingAssets.filter(e=>e.id!==t))}),i._taskSourceMap.delete(t),i._retrySourceMap.delete(t),i._pendingUploadOrderMap.delete(t),i._pendingResolvedAssetMap.delete(t)})()}_runManagedUpload(e,t,i,r){var n=this;return(0,c._)(function*(){let r=n._validateSource(e,i,{taskId:t});if(r.length>0)return void n._updateTaskIssues(e,t,r);n._updateFieldState(e,e=>{let i=n._findUploadingAsset(e,t);i&&(e.lastTaskId=t,e.fieldIssues=[],i.state="uploading",i.issues=[])});try{var o,a,s,l;let r;if(void 0!==i.source&&n._upload?r=yield null==(o=(a=n)._upload)?void 0:o.call(a,{variableId:e,taskId:t,source:i.source,file:i.source,media:i.media}):n._uploadMedia&&(r=yield null==(s=(l=n)._uploadMedia)?void 0:s.call(l,{variableId:e,taskId:t,media:i.media,source:i.source})),!r)return void n._updateTaskIssues(e,t,[n._createUploadFailedIssue()]);let u=yield n._runAsyncValidators(e,i,r);if(u.length>0)return void n._updateTaskIssues(e,t,u);yield n._appendResolvedAsset({variableId:e,asset:r,source:i,taskId:t,preserveUploadingStateOnFailure:!0})}catch(i){n._updateTaskIssues(e,t,[{code:"upload_failed",message:n._resolveUploadErrorMessage(i)}])}})()}_buildUploadingAsset(e,t){var i,r;let{media:n,media:{mimeType:o}}=t,a=(null==o?void 0:o.startsWith("image/"))===!0||(null==o?void 0:o.startsWith("video/"))===!0,s=null!=(i=n.previewUrl)?i:void 0!==t.source&&a?this._createManagedObjectUrl(t.source):void 0;return{id:e,name:n.name,previewUrl:s,coverUrl:null!=(r=n.coverUrl)?r:(null==o?void 0:o.startsWith("image/"))===!0?s:void 0,mimeType:o,size:n.size,width:n.width,height:n.height,duration:n.duration,md5:n.md5,type:n.type,localHandle:n.localHandle,extra:n.extra,raw:n.raw,state:"validating",issues:[]}}_buildPendingAsset(e,t,i){var r,n,o,a,s;return{id:e,name:t.name,previewUrl:null!=(r=t.previewUrl)?r:null==i?void 0:i.media.previewUrl,coverUrl:null!=(n=t.coverUrl)?n:null==i?void 0:i.media.coverUrl,mimeType:null!=(o=t.mimeType)?o:null==i?void 0:i.media.mimeType,size:null!=(a=t.size)?a:null==i?void 0:i.media.size,width:null==i?void 0:i.media.width,height:null==i?void 0:i.media.height,duration:null!=(s=t.duration)?s:null==i?void 0:i.media.duration,md5:null==i?void 0:i.media.md5,type:null==i?void 0:i.media.type,localHandle:null==i?void 0:i.media.localHandle,extra:null==i?void 0:i.media.extra,raw:null==i?void 0:i.media.raw,state:"uploading",issues:[]}}_cleanupUploadingAsset(e,t){e&&this._cleanupManagedUrls([e.previewUrl,e.coverUrl],null==t?void 0:t.preserveUrls)}_cleanupResolvedAsset(e,t){this._cleanupManagedUrls([e.url,e.previewUrl,e.coverUrl],null==t?void 0:t.preserveUrls)}_emit(){this._listeners.forEach(e=>e())}_generateTaskId(){return`${Date.now()}_${Math.random().toString(16).slice(2)}`}_generateUploadOrder(){return this._uploadOrderSequence+=1,this._uploadOrderSequence}_resolveUploadErrorMessage(e){return e instanceof Error&&e.message?e.message:"string"==typeof e&&e.trim()?e:this._i18n.t("sceneTemplate.upload.failed")}_createUploadFailedIssue(){return{code:"upload_failed",message:this._i18n.t("sceneTemplate.upload.failed"),level:"error"}}_appendResolvedAsset(e){var t=this;return(0,c._)(function*(){let i=yield t._validateResolvedAsset(e.variableId,e.asset,e.source,e.taskId);if(i.length>0)return void t._updateFieldState(e.variableId,r=>{if(r.fieldIssues=e.taskId?[]:i,!e.taskId)return;let n=t._findUploadingAsset(r,e.taskId);if(n){if(!e.preserveUploadingStateOnFailure){t._cleanupUploadingAsset(n),r.uploadingAssets=r.uploadingAssets.filter(t=>t.id!==e.taskId);return}n.state="error",n.issues=i}});t._updateFieldState(e.variableId,i=>{let r=e.taskId?t._findUploadingAsset(i,e.taskId):void 0;if(e.taskId&&!r)return;let n=t._mergeUploadingAssetMetadataIntoAsset(e.asset,r),o=t._resolveUploadOrder(e.taskId,n.id,e.uploadOrder);i.fieldIssues=[],i.assets=t._insertResolvedAssetInOrder(i.assets,n,o),e.taskId&&r&&(t._cleanupUploadingAsset(r,{preserveUrls:t._collectManagedAssetUrls(n)}),i.uploadingAssets=i.uploadingAssets.filter(t=>t.id!==e.taskId),t._needsDeferredVideoMetadata(r,n)&&t._pendingResolvedAssetMap.set(e.taskId,n.id))}),e.taskId&&(t._taskSourceMap.delete(e.taskId),t._retrySourceMap.delete(e.taskId),t._pendingUploadOrderMap.delete(e.taskId))})()}_validateResolvedAsset(e,t,i,r){var n;let o=this._variableMap.get(e);if(!o||!this._stateMap.get(e))return Promise.resolve([this._createUploadFailedIssue()]);let a=[],s=null!=(n=null==i?void 0:i.media.size)?n:t.size;i||(0,er.O6)(t,o.materialType)||a.push({code:"unsupported_file_type",message:en(this._i18n,o.materialType)}),o.maxSizeMb&&void 0!==s&&s>1024*o.maxSizeMb*1024&&a.push({code:"file_too_large",message:this._i18n.t("sceneTemplate.upload.fileTooLarge",{maxSizeMb:o.maxSizeMb})});let l=this._resolveOccupiedCount(e,r);if(o.maxCount&&l>=o.maxCount&&a.push({code:"too_many_files",message:this._i18n.t("sceneTemplate.upload.maxCount",{maxCount:o.maxCount})}),!i)return Promise.resolve(a);let u=[...a,...this._validateSource(e,i,{asset:t,skipCount:!0,skipSize:!0})];return u.length>0?Promise.resolve(u):this._runAsyncValidators(e,i,t)}_validateSource(e,t,i){var r,n;let o=this._variableMap.get(e);if(!o||!this._stateMap.get(e))return[this._createUploadFailedIssue()];let a=[];(0,er.SK)(t.media,o.materialType)||a.push({code:"unsupported_file_type",message:en(this._i18n,o.materialType)});let s=null!=(n=t.media.size)?n:null==i||null==(r=i.asset)?void 0:r.size;return!(null==i?void 0:i.skipSize)&&o.maxSizeMb&&void 0!==s&&s>1024*o.maxSizeMb*1024&&a.push({code:"file_too_large",message:this._i18n.t("sceneTemplate.upload.fileTooLarge",{maxSizeMb:o.maxSizeMb})}),!(null==i?void 0:i.skipCount)&&o.maxCount&&this._resolveOccupiedCount(e,null==i?void 0:i.taskId)>=o.maxCount&&a.push({code:"too_many_files",message:this._i18n.t("sceneTemplate.upload.maxCount",{maxCount:o.maxCount})}),[...a,...this._runSyncValidators(e,t,null==i?void 0:i.asset)]}_runAsyncValidators(e,t,i){var r=this;return(0,c._)(function*(){var n,o,a,s;let l=null!=(a=null==(n=r._validationConfig)?void 0:n.asyncValidators)?a:[],u=null!=(s=null==(o=r._validationConfig)?void 0:o.asyncMediaValidators)?s:[],f=yield Promise.all(l.map(r=>r({variableId:e,source:t.source,file:t.source,media:t.media,asset:i}))),c=yield Promise.all(u.map(r=>r({variableId:e,media:t.media,asset:i})));return[...f.flat(),...c.flat()]})()}_runSyncValidators(e,t,i){var r,n,o,a;let s=null!=(o=null==(r=this._validationConfig)?void 0:r.syncValidators)?o:[],l=null!=(a=null==(n=this._validationConfig)?void 0:n.syncMediaValidators)?a:[],u=[];return s.forEach(r=>{u.push(...r({variableId:e,source:t.source,file:t.source,media:t.media,asset:i}))}),l.forEach(r=>{u.push(...r({variableId:e,media:t.media,asset:i}))}),u}_updateFieldState(e,t){var i,r;let n=null!=(i=this._stateMap.get(e))?i:{variableId:e,state:"idle",assets:[],uploadingAssets:[],uploadingAsset:void 0,issues:[],fieldIssues:[]},o=(0,f._)((0,u._)({},n),{assets:[...n.assets],uploadingAssets:n.uploadingAssets.map(e=>{var t;return(0,f._)((0,u._)({},e),{issues:[...null!=(t=e.issues)?t:[]]})}),uploadingAsset:n.uploadingAsset?(0,f._)((0,u._)({},n.uploadingAsset),{issues:[...null!=(r=n.uploadingAsset.issues)?r:[]]}):void 0,issues:[...n.issues],fieldIssues:[...n.fieldIssues]});t(o),this._applyUploadFieldSummary(o),this._stateMap.set(e,o),this._emit()}_hydrateVideoAssetMetadata(e,t,i,r){var n;i&&(null==(n=i.media.mimeType)?void 0:n.startsWith("video/"))&&r&&this._extractVideoMetadata&&(this._extractVideoMetadata?this._extractVideoMetadata(i.source,r):this._extractVideoMetadataFromPreviewUrl(r)).then(i=>{if(!i)return void this._pendingResolvedAssetMap.delete(t);this._trackManagedObjectUrl(i.coverUrl);let r=!1;if(this._updateFieldState(e,e=>{let n=this._findUploadingAsset(e,t);if(n){let o=this._mergeVideoMetadataIntoUploadingAsset(n,i);this._cleanupManagedUrls([i.coverUrl],this._collectManagedAssetUrls(o)),e.uploadingAssets=e.uploadingAssets.map(e=>e.id===t?o:e),r=!0;return}let o=this._pendingResolvedAssetMap.get(t);o&&(e.assets=e.assets.map(e=>{if(e.id!==o)return e;r=!0;let t=this._mergeVideoMetadataIntoAsset(e,i);return this._cleanupManagedUrls([i.coverUrl],this._collectManagedAssetUrls(t)),t}))}),!r){this._revokeManagedObjectUrl(i.coverUrl),this._pendingResolvedAssetMap.delete(t);return}this._pendingResolvedAssetMap.delete(t)}).catch(()=>{this._pendingResolvedAssetMap.delete(t)})}_mergeUploadingAssetMetadataIntoAsset(e,t){var i,r,n,o,a,s,l,c,d,h,p;if(!t)return e;let A=this._mergeVideoMetadataIntoAsset(e,{coverUrl:t.coverUrl,duration:t.duration});return(0,f._)((0,u._)({},A),{size:null!=(r=A.size)?r:t.size,width:null!=(n=A.width)?n:t.width,height:null!=(o=A.height)?o:t.height,mimeType:null!=(a=A.mimeType)?a:t.mimeType,type:null!=(s=A.type)?s:t.type,extra:null!=(l=A.extra)?l:t.extra,raw:null!=(c=A.raw)?c:t.raw,previewUrl:null!=(d=A.previewUrl)?d:t.previewUrl,coverUrl:null!=(h=A.coverUrl)?h:(null==(i=A.mimeType)?void 0:i.startsWith("image/"))?A.url:void 0,url:null!=(p=A.url)?p:t.previewUrl})}_mergeVideoMetadataIntoUploadingAsset(e,t){var i,r;return(0,f._)((0,u._)({},e),{coverUrl:null!=(i=e.coverUrl)?i:t.coverUrl,duration:null!=(r=e.duration)?r:t.duration})}_mergeVideoMetadataIntoAsset(e,t){var i,r;return(0,f._)((0,u._)({},e),{coverUrl:null!=(i=e.coverUrl)?i:t.coverUrl,duration:null!=(r=e.duration)?r:t.duration})}_needsDeferredVideoMetadata(e,t){var i;if(!(null==(i=t.mimeType)?void 0:i.startsWith("video/")))return!1;let r=!!t.coverUrl,n="number"==typeof t.duration&&t.duration>0;return!(null==e?void 0:e.coverUrl)&&!r||!(null==e?void 0:e.duration)&&!n}_createManagedObjectUrl(e){var t,i,r;let n=null!=(r=null==(t=(i=this)._createPreviewUrl)?void 0:t.call(i,e))?r:this._createFallbackObjectUrl(e);if(n)return this._managedObjectUrls.add(n),n}_trackManagedObjectUrl(e){e&&this._managedObjectUrls.add(e)}_revokeManagedObjectUrl(e){e&&this._managedObjectUrls.has(e)&&(this._revokePreviewUrl?this._revokePreviewUrl(e):this._revokeFallbackObjectUrl(e),this._managedObjectUrls.delete(e))}_cleanupManagedUrls(e,t){new Set(e.filter(e=>!!e)).forEach(e=>{null!=t&&t.has(e)||this._revokeManagedObjectUrl(e)})}_detachManagedUrls(e){new Set(e.filter(e=>!!e)).forEach(e=>{this._managedObjectUrls.delete(e)})}_collectManagedAssetUrls(e){let t=new Set;return[e.url,e.previewUrl,e.coverUrl].forEach(e=>{e&&this._managedObjectUrls.has(e)&&t.add(e)}),t}_findUploadingAsset(e,t){return e.uploadingAssets.find(e=>e.id===t)}_applyUploadFieldSummary(e){e.uploadingAssets.sort((e,t)=>this._resolvePendingUploadOrder(e.id)-this._resolvePendingUploadOrder(t.id));let t=e.uploadingAssets.flatMap(e=>{var t;return null!=(t=e.issues)?t:[]}),i=e.uploadingAssets.some(e=>"validating"===e.state),r=e.uploadingAssets.some(e=>"uploading"===e.state),n=e.uploadingAssets.some(e=>"error"===e.state),o=e.uploadingAssets[e.uploadingAssets.length-1];if(e.uploadingAsset=o,e.issues=[...e.fieldIssues,...t],i){e.state="validating";return}if(r){e.state="uploading";return}if(n){e.state="error";return}e.state=e.assets.length>0?"success":"idle"}_resolveOccupiedCount(e,t){let i=this._stateMap.get(e);return i?i.assets.length+i.uploadingAssets.filter(e=>e.id!==t).length:0}_updateTaskIssues(e,t,i){this._updateFieldState(e,e=>{let r=this._findUploadingAsset(e,t);r&&(e.fieldIssues=[],r.state="error",r.issues=i)})}_resolveUploadOrder(e,t,i){var r;let n=null!=(r=null!=i?i:e?this._pendingUploadOrderMap.get(e):void 0)?r:this._generateUploadOrder();return this._resolvedAssetOrderMap.set(t,n),n}_resolvePendingUploadOrder(e){var t;return null!=(t=this._pendingUploadOrderMap.get(e))?t:Number.MAX_SAFE_INTEGER}_insertResolvedAssetInOrder(e,t,i){let r=[...e,t];return r.sort((e,r)=>this._resolveResolvedAssetOrder(e.id,e.id===t.id?i:void 0)-this._resolveResolvedAssetOrder(r.id,r.id===t.id?i:void 0)),r}_resolveResolvedAssetOrder(e,t){var i;return void 0!==t?t:null!=(i=this._resolvedAssetOrderMap.get(e))?i:Number.MAX_SAFE_INTEGER}_createExternalUploadSource(e){var t,i,r;let n=null!=(r=null==(t=(i=this)._createMedia)?void 0:t.call(i,e))?r:this._createDefaultMedia(e);if(n)return{source:e,media:n}}_createMediaSource(e){return{media:(0,u._)({},e),source:e.source}}_normalizeExternalSource(e){if(e)return this._isHostMediaDescriptor(e)?this._createMediaSource(e):this._createExternalUploadSource(e)}_resolvePendingSource(e,t,i){if(t){var r,n,o,a,s,l,c,d;return this._createMediaSource((0,f._)((0,u._)({},t),{source:null!=(r=t.source)?r:e,previewUrl:null!=(n=t.previewUrl)?n:null==i?void 0:i.previewUrl,coverUrl:null!=(o=t.coverUrl)?o:null==i?void 0:i.coverUrl,mimeType:null!=(a=t.mimeType)?a:null==i?void 0:i.mimeType,size:null!=(s=t.size)?s:null==i?void 0:i.size,duration:null!=(l=t.duration)?l:null==i?void 0:i.duration,name:null!=(d=null!=(c=t.name)?c:null==i?void 0:i.name)?d:""}))}if(e)return this._createExternalUploadSource(e)}_isHostMediaDescriptor(e){return!!(e&&"object"==typeof e&&"name"in e)}_createDefaultMedia(e){if(!e||"object"!=typeof e||!("name"in e))return;let t=e;if("string"==typeof t.name)return{name:t.name,mimeType:"string"==typeof t.type?t.type:void 0,size:"number"==typeof t.size?t.size:void 0,source:e}}_createFallbackObjectUrl(e){let t=globalThis.URL;if("function"==typeof(null==t?void 0:t.createObjectURL))try{return t.createObjectURL(e)}catch(e){return}}_revokeFallbackObjectUrl(e){let t=globalThis.URL;if("function"==typeof(null==t?void 0:t.revokeObjectURL))try{t.revokeObjectURL(e)}catch(e){}}_extractVideoMetadataFromPreviewUrl(e){var t;let i=globalThis;return e&&(null==(t=i.document)?void 0:t.createElement)?new Promise(t=>{var r,n,o,a,s;let l=null==(n=i.document)||null==(r=n.createElement)?void 0:r.call(n,"video");if(!l)return void t(void 0);let u=!1,f=e=>{if(!u){u=!0;try{var i,r,n;null==(i=l.removeEventListener)||i.call(l,"error",h),null==(r=l.removeEventListener)||r.call(l,"loadedmetadata",A),null==(n=l.removeEventListener)||n.call(l,"seeked",p),l.src=""}catch(e){}t(e)}},c=()=>Number.isFinite(l.duration)&&l.duration>0?l.duration:void 0,d=()=>{var e,t,r,n;let o=null==(t=i.document)||null==(e=t.createElement)?void 0:e.call(t,"canvas"),a=null==o||null==(r=o.getContext)?void 0:r.call(o,"2d");if(!o||!a||l.videoWidth<=0||l.videoHeight<=0)return void f({duration:c()});o.width=l.videoWidth,o.height=l.videoHeight,a.drawImage(l,0,0,l.videoWidth,l.videoHeight),null==(n=o.toBlob)||n.call(o,e=>{f({coverUrl:e?this._createFallbackObjectUrl(e):void 0,duration:c()})},"image/jpeg",.8)},h=()=>f(void 0),p=()=>d(),A=()=>{let e=c();if(l.videoWidth<=0||l.videoHeight<=0)return void f({duration:e});l.currentTime=e?Math.min(.1,Math.max(e-.1,0)):0,(!e||l.currentTime<=0)&&d()};null==(o=l.addEventListener)||o.call(l,"error",h),null==(a=l.addEventListener)||a.call(l,"loadedmetadata",A),null==(s=l.addEventListener)||s.call(l,"seeked",p),l.preload="metadata",l.muted=!0,l.playsInline=!0,l.src=e;try{"function"==typeof l.load?l.load():d()}catch(e){f(void 0)}}):Promise.resolve(void 0)}constructor(e){var t,i,r,n,o,a,s,l,u;this._listeners=new Set,this._stateMap=new Map,this._uploadOrderSequence=0,this._managedObjectUrls=new Set,this._taskSourceMap=new Map,this._retrySourceMap=new Map,this._pendingUploadOrderMap=new Map,this._resolvedAssetOrderMap=new Map,this._variableMap=new Map,this._pendingResolvedAssetMap=new Map,this._abortUpload=null==(t=e.uploadAdapter)?void 0:t.abort,this._upload=null==(i=e.uploadAdapter)?void 0:i.upload,this._uploadMedia=null==(r=e.uploadAdapter)?void 0:r.uploadMedia,this._createMedia=null==(n=e.uploadAdapter)?void 0:n.createMedia,this._createPreviewUrl=null==(o=e.uploadAdapter)?void 0:o.createPreviewUrl,this._revokePreviewUrl=null==(a=e.uploadAdapter)?void 0:a.revokePreviewUrl,this._extractVideoMetadata=null==(s=e.uploadAdapter)?void 0:s.extractVideoMetadata,this._validationConfig=null==(l=e.uploadAdapter)?void 0:l.validation,this._i18n=null!=(u=e.i18n)?u:Q()}}class ea{subscribe(e){return this._listeners.add(e),()=>{this._listeners.delete(e)}}getSnapshot(){return this._state}open(e){let t=this._manager.getTemplateById(e);if(!t)return void this._formCore.setFormIssues([this._i18n.t("sceneTemplate.modal.templateNotFound")]);this.uploadManager.reset(),this.uploadManager.registerVariables(t.variables.filter(e=>(0,U.uR)(e))),this._currentTemplateId=e,this._visible=!0,this._formCore.initialize(t.variables,this._buildInitialValues(t.variables)),this._syncState(),this._emit()}close(){this.uploadManager.reset(),this._currentTemplateId=void 0,this._visible=!1,this._formCore.reset(),this._syncState(),this._emit()}updateField(e,t){this._formCore.updateField(e,t)}createUploadFieldController(e){let t=this.uploadManager.createFieldController(e);var i=this;return(0,f._)((0,u._)({},t),{addFile:function(){var r=(0,c._)(function*(r){yield t.addFile(r),i._clearUploadFieldErrorIfUploaded(e)});return function(e){return r.apply(this,arguments)}}(),addMedia:function(){var r=(0,c._)(function*(r){yield t.addMedia(r),i._clearUploadFieldErrorIfUploaded(e)});return function(e){return r.apply(this,arguments)}}(),resolvePendingAsset:function(){var r=(0,c._)(function*(r,n){yield t.resolvePendingAsset(r,n),i._clearUploadFieldErrorIfUploaded(e)});return function(e,t){return r.apply(this,arguments)}}(),addResolvedAsset:function(){var r=(0,c._)(function*(r,n){yield t.addResolvedAsset(r,n),i._clearUploadFieldErrorIfUploaded(e)});return function(e,t){return r.apply(this,arguments)}}()})}addUpload(e,t){var i=this;return(0,c._)(function*(){yield i.uploadManager.addUpload(e,t),i._clearUploadFieldErrorIfUploaded(e)})()}addUploadMedia(e,t){var i=this;return(0,c._)(function*(){yield i.uploadManager.addMedia(e,t),i._clearUploadFieldErrorIfUploaded(e)})()}removeAsset(e,t){this.uploadManager.removeAsset(e,t),this._emit()}editPrompt(e="modal"){var t=this;return(0,c._)(function*(){let i=t._requireCurrentTemplate();if(i&&t._prepareAction(i)){if(!t._options.onEditPrompt)return void t._formCore.setSubmitting(!1);try{let r=t._buildPayload(i);yield t._options.onEditPrompt(r,{source:e}),t.uploadManager.detachUploadedAssetUrls(),t.close()}catch(e){var r;null==(r=t._monitoringAdapter)||r.captureError(e,{scope:"scene_template_edit_prompt"}),t._formCore.setFormIssues([(null==e?void 0:e.message)||t._i18n.t("sceneTemplate.modal.editPromptFailed")]),t._formCore.setSubmitting(!1)}}})()}submit(e="modal"){var t=this;return(0,c._)(function*(){let i=t._requireCurrentTemplate();if(i&&t._prepareAction(i))try{let r=t._buildPayload(i);yield t._options.onSubmit(r,{source:e}),t.close()}catch(e){var r;null==(r=t._monitoringAdapter)||r.captureError(e,{scope:"scene_template_submit"}),t._formCore.setFormIssues([(null==e?void 0:e.message)||t._i18n.t("sceneTemplate.modal.submitFailed")]),t._formCore.setSubmitting(!1)}})()}getCurrentVariables(){var e,t;return null!=(t=null==(e=this._getCurrentTemplate())?void 0:e.variables)?t:[]}_emit(){this._listeners.forEach(e=>e())}_clearUploadFieldErrorIfUploaded(e){var t,i;if((null!=(i=null==(t=this.uploadManager.getUploadedAssets()[e])?void 0:t.length)?i:0)>0)return void this._formCore.clearFieldError(e);this._emit()}_buildPayload(e){return ee(e,this._formCore.getSnapshot().values,this.uploadManager.getUploadedAssets())}_prepareAction(e){this._formCore.setSubmitting(!0),this._formCore.setFormIssues([]);let t=this._formCore.getSnapshot().values,i=this.uploadManager.getUploadedAssets(),r=this.validator.validateForm({template:e,variables:e.variables,formValues:t,uploadedAssets:i});if(Object.keys(r.fieldErrors).length>0||r.formIssues.length>0)return this._formCore.setFieldErrors(r.fieldErrors),this._formCore.setFormIssues(r.formIssues),this._formCore.setSubmitting(!1),!1;let n=this.uploadManager.getSnapshot();return Object.values(n).some(e=>"uploading"===e.state||"validating"===e.state)?(this._formCore.setFormIssues([this._i18n.t("sceneTemplate.upload.waiting")]),this._formCore.setSubmitting(!1),!1):!Object.values(n).some(e=>"error"===e.state)||(this._formCore.setFormIssues([this._i18n.t("sceneTemplate.upload.failed")]),this._formCore.setSubmitting(!1),!1)}_syncState(){let e=this._formCore.getSnapshot(),t=this._getCurrentTemplate(),i=!1;if(t){let r=this.validator.validateForm({template:t,variables:t.variables,formValues:e.values,uploadedAssets:this.uploadManager.getUploadedAssets()});i=0===Object.keys(r.fieldErrors).length&&0===r.formIssues.length}this._state={visible:this._visible,currentTemplateId:this._currentTemplateId,initialValues:e.initialValues,fields:e.fields,formValues:e.values,fieldErrors:e.fieldErrors,submitting:e.submitting,modalIssues:e.formIssues,isValid:i}}_getCurrentTemplate(){if(this._currentTemplateId)return this._manager.getTemplateById(this._currentTemplateId)}_requireCurrentTemplate(){let e=this._getCurrentTemplate();return e||void this._formCore.setFormIssues([this._i18n.t("sceneTemplate.modal.templateNotFound")])}_buildInitialValues(e){let t={};for(let i of e)i.type===A.Fw.Select&&void 0!==i.defaultOption&&(t[i.key]=i.selectMode===A.Ge.Multiple?(0,F.OZ)((0,f._)((0,u._)({},i),{selectMode:A.Ge.Multiple}),[i.defaultOption]):(0,F.OZ)(i,i.defaultOption)),i.type===A.Fw.Text&&i.textUIType===A.Jf.Static&&void 0!==i.staticText&&(t[i.key]=(0,F.fV)(i.staticText));return t}constructor(e,t,i,r=Q()){this._formCore=new ei,this._listeners=new Set,this._state={visible:!1,currentTemplateId:void 0,initialValues:{},fields:{},formValues:{},fieldErrors:{},submitting:!1,modalIssues:[],isValid:!1},this._visible=!1,this._manager=e,this._monitoringAdapter=i,this._options=t,this._i18n=r,this.uploadManager=new eo({uploadAdapter:t.uploadAdapter,i18n:r}),this.uploadController=this.uploadManager,this.validator=new G(t.validation,r),this._formCore.subscribe(()=>{this._syncState(),this._emit()}),this.uploadManager.subscribe(()=>{this._syncState(),this._emit()})}}class es extends ea{constructor(e,t,i,r,n){super(e,t,r,n)}}function el(e){var t,i;let r=Q((0,f._)((0,u._)({},e.i18nAdapter),{localeKey:null!=(i=null==(t=e.i18nAdapter)?void 0:t.localeKey)?i:y(e.envAdapter.getLocale())})),n=new V(new R(e.envAdapter,e.monitoringAdapter,e.apiAdapter,e.cacheAdapter,r,e.requestAdapter),e.monitoringAdapter,r),o=new es(n,e,e.reportAdapter,e.monitoringAdapter,r),a=new H(e.reportAdapter);return{manager:n,uiManager:o,i18n:r,ui:{editPromptEnabled:!!e.onEditPrompt,upload:e.uploadAdapter?{renderers:e.uploadAdapter.renderers,triggerRenderer:e.uploadAdapter.triggerRenderer}:void 0},reporter:a,createManager:()=>n,createUiManager:()=>o,destroy:()=>{}}}function eu(){return"undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof HTMLVideoElement&&"undefined"!=typeof HTMLCanvasElement}function ef(e){if("undefined"!=typeof document&&"function"==typeof document.createElement)return document.createElement(e)}function ec(e){if("undefined"!=typeof URL&&"function"==typeof URL.createObjectURL)try{return URL.createObjectURL(e)}catch(e){return}}function ed(e){if("undefined"!=typeof URL&&"function"==typeof URL.revokeObjectURL)try{URL.revokeObjectURL(e)}catch(e){}}function eh(e,t,i){return new Promise(r=>{if("function"!=typeof(null==e?void 0:e.toBlob))return void r(void 0);try{e.toBlob(e=>{r(e||void 0)},t,i)}catch(e){r(void 0)}})}function ep(e){return{name:e.name,mimeType:e.type,size:e.size,source:e}}function eA(e){return ec(e)}function ek(e){e&&ed(e)}i(18571);let em=.1,eg="image/jpeg",eb=.8;function eT(e){if(Number.isFinite(e.duration)&&!(e.duration<=0))return e.duration}function ev(e){if(!eu()||e.videoWidth<=0||e.videoHeight<=0)return;let t=ef("canvas");if(!t)return;t.width=e.videoWidth,t.height=e.videoHeight;let i=t.getContext("2d");if(i)return i.drawImage(e,0,0,e.videoWidth,e.videoHeight),t}function ey(e){return eQ.apply(this,arguments)}function eQ(){return(eQ=(0,c._)(function*(e){if(!eu())return;let t=yield eh(e,eg,eb);if(t)return ec(t)})).apply(this,arguments)}function ew(e){return e&&eu()?new Promise(t=>{let i=ef("video");if(!i)return void t(void 0);let r=!1,n=()=>{try{i.removeEventListener("error",s),i.removeEventListener("loadedmetadata",u),i.removeEventListener("seeked",l),i.src=""}catch(e){}},o=e=>{r||(r=!0,n(),t(e))},a=function(){var e=(0,c._)(function*(){let e=ev(i);o({coverUrl:e?yield ey(e):void 0,duration:eT(i)})});return function(){return e.apply(this,arguments)}}(),s=()=>{o(void 0)},l=()=>{a()},u=()=>{let e=eT(i);if(i.videoWidth<=0||i.videoHeight<=0)return void o({duration:e});let t=e?Math.min(em,Math.max(e-em,0)):0;if(t<=0)return void a();i.currentTime=t};i.addEventListener("error",s),i.addEventListener("loadedmetadata",u),i.addEventListener("seeked",l),i.preload="metadata",i.muted=!0,i.playsInline=!0,i.src=e;try{"function"==typeof i.load?i.load():a()}catch(e){o(void 0)}}):Promise.resolve(void 0)}function e_(e){return el((0,f._)((0,u._)({},e),{uploadAdapter:e.uploadAdapter?(0,u._)({createMedia:e=>ep(e),createPreviewUrl:e=>eA(e),revokePreviewUrl:ek,extractVideoMetadata:(e,t)=>ew(t)},e.uploadAdapter):void 0}))}},30513:function(e,t,i){"use strict";i.d(t,{V:()=>o});var r=i(18571),n=i(42842);function o(){let e=(0,r.useContext)(n.K);if(!e)throw Error("SceneTemplate hooks must be used inside SceneTemplateProvider");return e}},91865:function(e,t,i){"use strict";i.d(t,{A:()=>o});var r=i(18571),n=i(42842);function o(){let e=(0,r.useContext)(n.K);if(!e)throw Error("useSceneTemplateList must be used inside SceneTemplateProvider");let t=(0,r.useSyncExternalStore)(t=>e.manager.subscribe(t),()=>e.manager.getSnapshot());return{categories:t.categories,categoryStates:t.categoryStates,templates:t.templates,activeCategory:t.activeCategory,activeCategoryState:t.activeCategory?t.categoryStates[t.activeCategory]:void 0,loading:t.loading,error:t.error,loadCategories:e.manager.loadCategories.bind(e.manager),loadTemplatesByCategory:e.manager.loadTemplatesByCategory.bind(e.manager),setCategories:e.manager.setCategories.bind(e.manager),mergeCategories:e.manager.mergeCategories.bind(e.manager),switchCategory:e.manager.switchCategory.bind(e.manager),reloadCategory:e.manager.reloadCategory.bind(e.manager),reloadAllCategories:e.manager.reloadAllCategories.bind(e.manager)}}},39673:function(e,t,i){"use strict";i.d(t,{R:()=>a});var r=i(64664),n=i(18571),o=i(42842);function a(){let e=(0,n.useContext)(o.K);if(!e)throw Error("useSceneTemplateUiManager must be used inside SceneTemplateProvider");let t=(0,n.useSyncExternalStore)(t=>e.uiManager.subscribe(t),()=>e.uiManager.getSnapshot()),i=(0,n.useMemo)(()=>({openTemplate:e.uiManager.open.bind(e.uiManager),closeTemplate:e.uiManager.close.bind(e.uiManager),updateField:e.uiManager.updateField.bind(e.uiManager),addUpload:e.uiManager.addUpload.bind(e.uiManager),removeAsset:e.uiManager.removeAsset.bind(e.uiManager),editPrompt:e.uiManager.editPrompt.bind(e.uiManager),submit:e.uiManager.submit.bind(e.uiManager)}),[e.uiManager]);return(0,r._)({uiState:t,uiManager:e.uiManager},i)}},43931:function(e,t,i){"use strict";i.d(t,{SceneTemplateModal:()=>n.SceneTemplateModal});var r=i(11444);i.o(r,"SceneTemplateModal")&&i.d(t,{SceneTemplateModal:function(){return r.SceneTemplateModal}}),i.o(r,"SceneTemplateTextUIType")&&i.d(t,{SceneTemplateTextUIType:function(){return r.SceneTemplateTextUIType}}),i.o(r,"SceneTemplateVariableType")&&i.d(t,{SceneTemplateVariableType:function(){return r.SceneTemplateVariableType}}),i.o(r,"SceneTemplateMaterialType")&&i.d(t,{SceneTemplateMaterialType:function(){return r.SceneTemplateMaterialType}});var n=i(46844);i.o(n,"SceneTemplateTextUIType")&&i.d(t,{SceneTemplateTextUIType:function(){return n.SceneTemplateTextUIType}}),i.o(n,"SceneTemplateVariableType")&&i.d(t,{SceneTemplateVariableType:function(){return n.SceneTemplateVariableType}}),i.o(n,"SceneTemplateMaterialType")&&i.d(t,{SceneTemplateMaterialType:function(){return n.SceneTemplateMaterialType}});var o=i(496);i.o(o,"SceneTemplateMaterialType")&&i.d(t,{SceneTemplateMaterialType:function(){return o.SceneTemplateMaterialType}}),i.o(o,"SceneTemplateTextUIType")&&i.d(t,{SceneTemplateTextUIType:function(){return o.SceneTemplateTextUIType}}),i.o(o,"SceneTemplateVariableType")&&i.d(t,{SceneTemplateVariableType:function(){return o.SceneTemplateVariableType}})},496:function(){},94639:function(e,t,i){"use strict";let r,n,o;i.d(t,{WebInterfaceSdk:()=>fq});var a,s,l,u,f,c,d,h,p,A,k,m,g,b,v,y,Q,w,_,x,E,C,D,S,L,B,P,I=i(9476);function O(e){let t,i=RegExp(`(^| )${e}=([^;]*)(;|$)`);return(t=document.cookie.match(i))?unescape(t[2]):""}function R(e){return"undefined"!=typeof FormData&&e instanceof FormData}function N(e,t){arguments.length>2&&void 0!==arguments[2]&&arguments[2],t&&Object.keys(t).forEach(e=>{})}function H(e){return Object.keys(e).map(t=>{let i=e[t];return"object"==typeof i?`${encodeURIComponent(t)}=${encodeURIComponent(JSON.stringify(i))}`:`${encodeURIComponent(t)}=${encodeURIComponent(i)}`}).join("&")}let V=e=>{let t,i=e.toString(),r=[];for(let e=0;e>6),r.push(128|63&t)):(2048<=t&&t<=55295||57344<=t&&t<=65535)&&(r.push(224|15&t>>12),r.push(128|63&t>>6),r.push(128|63&t));for(let e=0;e{let t=[],i=[];if(void 0===e)return"";i=V(e);for(let e=0,{length:r}=i;e0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,i=Object.keys(e).sort()||[];return t>=0&&i.splice(t),{str:i.map(t=>{let i=e[t];return"object"==typeof i?`${t}=${JSON.stringify(i)}`:`${t}=${i}`}).join("&"),arr:i}},j=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!i)return{};let{str:r="",arr:n=[]}=Z(e,10),{str:o=""}=Z(t),a=`${r}&${o}&app_key=${i}`;return{sign:(0,I.sha256)(a),qs:F(n.join(","))}},z=e=>Uint8Array.from((e.match(/.{1,2}/g)||[]).map(e=>parseInt(e,16))),G=e=>new Promise((t,i)=>{if(!Array.isArray(e))return i(Error("promises is not a Array"));let r=0,n=e.length;if(0===n)return t([]);let o=[];for(let i=0;i{if(r++,o.push(e),r==n)return t(o)},()=>{if(++r==n)return t(o)})}),U=()=>navigator.hardwareConcurrency,X=()=>navigator.webdriver||/headless/i.test(navigator.userAgent),W=()=>{let e=navigator.plugins;if(!e)return;let t=[];for(let i=0;i{if(!e)return Promise.resolve([]);if(Array.isArray(e)){let t=[];return e.forEach(e=>{t.push(Y(e))}),G(t)}return G([Y(e)])},Y=e=>{var t,i;return null==(i=navigator.permissions)||null==(t=i.query({name:e}))?void 0:t.then(t=>({state:null==t?void 0:t.state,name:(null==t?void 0:t.name)||e}))},q=()=>"Notification"in window?Notification.permission:"none",J=()=>{let e=e=>e.map(e=>String.fromCharCode.call(null,Number(e))).join(""),t=e(["0x63","0x64","0x63","0x5f","0x61","0x64","0x6f","0x51","0x70","0x6f","0x61","0x73","0x6e","0x66","0x61","0x37","0x36","0x70","0x66","0x63","0x5a","0x4c","0x6d","0x63","0x66","0x6c"]),i=[["0x41","0x72","0x72","0x61","0x79"],["0x4f","0x62","0x6a","0x65","0x63","0x74"],["0x50","0x72","0x6f","0x6d","0x69","0x73","0x65"],["0x50","0x72","0x6f","0x78","0x79"],["0x53","0x79","0x6d","0x62","0x6f","0x6c"],["0x4a","0x53","0x4f","0x4e"]].map(e),r=e=>window[e],n=e=>{let i=`${t}_${e}`;return Object.prototype.hasOwnProperty.call(window,i)||r(i)===r(e)};for(let e=0;e{try{let{plugins:e,mimeTypes:t,language:i,languages:r}=window.navigator;if(!i||!Array.isArray(r)||0===r.length||!e||0===e.length||!t||0===t.length||e[0].__proto__!==Plugin.prototype||e.__proto__!==PluginArray.prototype||"Plugin"!==e[0][Symbol.toStringTag])return!0}catch(e){}return!1},ee=()=>es().then(e=>({indexedDB:et(),localStorage:ei(),storageQuotaStatus:e})),et=()=>{let e=er(),t=/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),i="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return{idb:typeof e,open:e&&typeof e.open,indexedDB:typeof indexedDB,IDBKeyRange:typeof IDBKeyRange,openDatabase:typeof openDatabase,isSafari:t,hasFetch:i}},ei=()=>({isSupportLStorage:en(window.localStorage),size:eo(),write:ea()});function er(){try{if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!=typeof mozIndexedDB)return mozIndexedDB;if("undefined"!=typeof OIndexedDB)return OIndexedDB;if("undefined"!=typeof msIndexedDB)return msIndexedDB}catch(e){return}}function en(e){try{let t="__storage_test__";return e.setItem(t,t),e.removeItem(t),!0}catch(t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&0!==e.length}}function eo(){let e=0;try{for(let t in localStorage)localStorage.hasOwnProperty(t)&&(e+=localStorage[t].length);return e}catch(e){return -1}}function ea(){let e="__storage_wirte_test__",t="1";try{localStorage.setItem(e,t);let i=localStorage.getItem(e);return localStorage.removeItem(e),i===t}catch(t){try{localStorage.removeItem(e)}catch(e){}return!1}}function es(){return"storage"in navigator&&"estimate"in navigator.storage?navigator.storage.estimate().then(e=>{let{usage:t,quota:i}=e;return{usage:t,quota:i,isPrivate:i&&i<12e7}}).catch(()=>({})):Promise.resolve({})}let el=()=>{let e=Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype,"play");return"play"!==HTMLMediaElement.prototype.play.name||e&&!1===e.writable||!1},eu=()=>{let e=window.__p_bh;if(e&&e instanceof Promise)return e;let t=Promise.race([new Promise(e=>{let t=document.createElement("iframe");try{t.src="bitbrowser://cc/",t.width="0",t.height="0",t.style.display="none",document.body.appendChild(t),t.onload=function(){try{e("true")}catch(e){}},t.onerror=function(){e("false")}}catch(t){e("false")}finally{setTimeout(()=>{document.body.contains(t)&&document.body.removeChild(t)},1e3)}}),new Promise(e=>{setTimeout(()=>{e("false")},200)})]);return window.__p_bh=t,t},ef=()=>{let e=navigator.userAgent,t=/iPhone/i.test(e),i=/iPod/i.test(e),r=/iPad/i.test(e),n="MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,o=r||n;return{isIOS:t||i||o,isIphone:t,isIpad:o}},ec=()=>{let{userAgent:e}=navigator,{isIOS:t}=ef();return e.indexOf("Android")>-1||e.indexOf("aweme")>-1||t||e.indexOf("Electron")>-1?Promise.resolve("false"):eu()},ed=()=>window.innerHeight,eh=()=>window.innerWidth,ep=()=>window.outerHeight,eA=()=>window.outerWidth,ek=()=>{var e;return null==(e=performance)?void 0:e.timeOrigin},em=()=>{var e,t;return(null==(t=performance)||null==(e=t.memory)?void 0:e.usedJSHeapSize)||"unsupport"},eg=()=>{var e,t,i,r,n,o;let a=(null==(t=performance)||null==(e=t.getEntries())?void 0:e[0])||{},s=(null==(r=performance.getEntriesByName("script_glue_start"))||null==(i=r[0])?void 0:i.startTime)||"none",l=(null==(o=performance.getEntriesByName("scriptGlueDuration"))||null==(n=o[0])?void 0:n.duration)||"none";return{decodedBodySize:null==a?void 0:a.decodedBodySize,entryType:null==a?void 0:a.entryType,initiatorType:null==a?void 0:a.initiatorType,name:null==a?void 0:a.name,renderBlockingStatus:null==a?void 0:a.renderBlockingStatus,serverTiming:((null==a?void 0:a.serverTiming)||[]).map(e=>e.name).join(","),guleStart:s,guleDuration:l}},eb=()=>{try{return{timeOrigin:ek(),usedJSHeapSize:em(),navigationTiming:eg()}}catch(e){return{}}},eT=()=>{let e;if(r)e=r;else{let t=document.createElement("canvas");for(let i of["webgl","experimental-webgl"]){try{e=t.getContext(i)}catch(e){}if(e)break}r=e}let t=null==e?void 0:e.getExtension("WEBGL_debug_renderer_info");return{vendor:null==e?void 0:e.getParameter(null==t?void 0:t.UNMASKED_VENDOR_WEBGL),renderer:null==e?void 0:e.getParameter(null==t?void 0:t.UNMASKED_RENDERER_WEBGL)}},ev=async e=>{let{useBitReport:t=!1}=e||{};try{let e=U(),i=X(),r=J(),n=K(),o=W(),a=[];o&&o.forEach(e=>{a.push(e.name)});let[s,l,u]=await Promise.all([ee(),$(["notifications"]),t?ec():Promise.resolve("")]),f=[];l&&Array.isArray(l)&&l.forEach(e=>{f.push({name:(null==e?void 0:e.name)||"",state:(null==e?void 0:e.state)||""})});let c=ed(),d=eh(),h=ep(),p=eA();q();let A=eb(),k=el(),m=eT();return{hardwareConcurrency:e,webdriver:i,chromedriver:r,shelldriver:n,plugins:a.length,innerHeight:c,innerWidth:d,outerHeight:h,outerWidth:p,webgl:m,performance:A,browser:{t:String(Date.now()).split("").reverse().join(""),bit_protocol:u,bit_helper:k}}}catch(e){return{}}};function ey(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class eQ{init(){}processPluginWithLog(e){var t=this;return function(){for(var i=arguments.length,r=Array(i),n=0;n{var i,r;return Promise.resolve({...e,middlewareHandlerLog:[...(null==e?void 0:e.middlewareHandlerLog)||[],{name:(null==(r=t)||null==(i=r.constructor)?void 0:i.name)||"unknown",time:Date.now()-o,endTime:Date.now(),startTime:o}]})}).catch(e=>{var i,r;return Promise.reject({...e,middlewareHandlerLog:[...(null==e?void 0:e.middlewareHandlerLog)||[],{name:(null==(r=t)||null==(i=r.constructor)?void 0:i.name)||"unknown",time:Date.now()-o,endTime:Date.now(),startTime:o}]})})}}constructor(e){ey(this,"request",void 0),ey(this,"initProps",void 0),ey(this,"hasInit",void 0),ey(this,"type",void 0);let{request:t,init:i,type:r}=e;this.request=t,this.hasInit=!1,this.initProps=i,this.type=r}}function ew(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class e_ extends eQ{async init(){let{browserInfo:e}=this.initProps;this.request.interceptors.request.use(async t=>(this.browserInfo||(this.browserInfo=await ev(e)),t.params={...t.params||{},account_sdk_source_info:F(JSON.stringify({...this.browserInfo||{}}))},Promise.resolve(t)))}constructor(e){super(e),ew(this,"browserInfo",void 0),this.init=this.init.bind(this)}}let ex=e_,eE="4.1.3";function eC(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class eD extends eQ{init(){this.request.interceptors.request.use(async e=>{if(this.commonParams)e.params={...e.params||{},...this.commonParams||{}};else{let t,{scene:i="normal",subjectAid:r=0,aff_multi_login:n=0}=this.initProps;if("web"===this.type){let e={};"aff"===i&&(e.subject_aid=r),1===n&&(e.aff_multi_login=1),t=e}if("sso"===this.type||"auth"===this.type){let e={};1===n&&(e.aff_multi_login=1),t=e}t={...t,is_from_ttaccountsdk:1,passport_jssdk_type:"normal",passport_jssdk_version:eE,account_sdk_source:this.type},this.commonParams=t,e.params={...e.params||{},...this.commonParams||{}}}return Promise.resolve(e)})}constructor(e){super(e),eC(this,"commonParams",void 0),this.init=this.init.bind(this)}}let eS=eD,eL="/passport/web",eB="/passport/aff/web",eP="/passport/common",eM={SEND_MOBILE_CODE:`${eL}/send_code/`,SEND_VOICE_CODE:`${eL}/send_voice_code/`,SEND_EMAIL_CODE:`${eL}/email/send_code/`,VERIFY_MOBILE_CODE:`${eL}/validate_code/`,VERIFY_EMAIL_CODE:`${eL}/email/verify/`,CHECK_MOBILE_CODE:`${eL}/mobile/check_code/`,CHECK_EMAIL_CODE:`${eL}/email/check_code/`,CHECK_UPSMS:`${eL}/upsms/verify/`,SMS_LOGIN:`${eL}/sms_login/`,SMS_LOGIN_ONLY:`${eL}/sms_login_only/`,SMS_REGISTER:`${eL}/mobile/register`,SMS_LOGIN_CONTINUE:`${eL}/sms_login_continue/`,EMAIL_LOGIN:`${eL}/email/login/`,EMAIL_CODE_LOGIN:`${eL}/email/code_login/`,EMAIL_CODE_QUICK_LOGIN:`${eL}/email/quick_login/`,EMAIL_REGISTER_LOGIN:`${eL}/email/register_verify_login/`,EMAIL_REGISTER:`${eL}/email/register_verify/`,PWD_LOGIN:`${eL}/user/login/`,AUTH_LOGIN:`${eL}/auth/login/`,AUTH_LOGIN_ONLY:`${eL}/auth/login_only/`,AUTH_BIND_ONLY:`${eL}/auth/bind_login/`,MOBILE_BIND_ONLY:`${eL}/mobile/bind_login/`,MOBILE_EMAIL_REGISTER:`${eL}/mobile_email_register/`,MOBILE_REGISTER:"/passport/mobile/register/",MOBILE_OAUTH:"/passport/auth/show_oauth_mobile/",LOGOUT:`${eL}/logout/`,CHECK_LOGIN:"/passport/account/info/v2/",BIND_WITH_MOBILE_LOGIN:`${eL}/auth/bind_with_mobile_login/`,BIND_WITH_EMAIL_LOGIN:`${eL}/auth/bind_with_email_login/`,GET_QRCODE:`${eL}/get_qrcode/`,CHECK_QRCONNECT:`${eL}/check_qrconnect/`,SCAN_QRCODE:`${eL}/scan_qrcode/`,CONFIRM_QRCODE:`${eL}/confirm_qrcode/`,THIRD_AUTH:`${eL}/web_login/`,WEB_SHARE_LOGIN:`${eL}/auth/share_login/`,AUTH_LOGIN_URL:"/passport/auth/wap_login/",EMAIL_REGISTER_NO_VERIFY:`${eL}/email/register/`,EMAIL_REGISTER_NO_VERIFY_V2:`${eL}/email/register/v2/`,GET_QRCODE_FROM_WECHAT:`${eL}/wechat/get_qrcode/`,CHECK_QRCODE_FROM_WECHAT:`${eL}/wechat/check_qrcode_status/`,MOBILE_BIND:`${eL}/mobile/bind/`,EMAIL_BIND:`${eL}/email/bind/`,AUTH_BIND:`${eL}/auth/bind/`,AUTH_UNBIND:`${eL}/auth/unbind/`,AUTH_SWITCH_BIND:`${eL}/auth/switch_bind/`,MOBILE_REBIND:`${eL}/mobile/change/`,EMAIL_REBIND:`${eL}/email/change/`,RESET_PWD_BY_MOBILE:`${eL}/password/reset/`,RESET_PWD_BY_EMAIL:`${eL}/email/password/reset/`,RESET_PWD_BY_MOBILE_TICKET:`${eL}/password/reset_by_ticket/`,RESET_PWD_BY_EMAIL_TICKET:`${eL}/password/reset_by_email_ticket/`,PWD_CHANGE_BY_MOBILE:`${eL}/password/change/`,PWD_UPDATE:`${eL}/password/update/`,PWD_CHANGE_BY_EMAIL:`${eL}/email/change_password/`,PWD_SET:`${eL}/password/set/`,PWD_HAS_SET:"/passport/password/has_set/",PWD_HAS_SET_V2:`${eL}/password/has_set/`,PWD_SET_BY_EAMIL_AND_LOGIN:`${eL}/email/password/reset_and_login/`,ACCOUNT_VERIFY:`${eL}/account/verify/`,AUTH_VERIFY:`${eL}/auth/verify/`,SMS_AUTHORIZE:`${eL}/sms/authorize/`,CANCEL_VERIFY_WAY:"/passport/auth/cancel_verify_way/",CANCEL_CHECK:`${eL}/cancel/check/`,CANCEL_CONFIRM:`${eL}/cancel/confirm/`,CANCEL_REQUEST_CANCEL:`${eL}/cancel/login/`,CHECK_MOBILE_REGISTER:`${eL}/user/check_mobile_registered/`,CHECK_EMAIL_REGISTER:`${eL}/user/check_email_registered`,CHANGE_QRCODE_SUCCESS:"/passport/qrcode_twostep_verify/scan_qrcode/",CHANGE_QRCODE_CONFIRM:"/passport/qrcode_twostep_verify/confirm_by_ticket/",GET_OPEN_AUTH_INFO:"/passport/open/auth_info/v2/",OPEN_SEND_CODE:"/passport/open/send_code/",OPEN_SMS_AUTH:"/passport/open/web/sms/auth/",OPEN_ACCOUNT_AUTH:"/passport/open/web/account/auth/",OPEN_THIRD_AUTH:"/passport/open/web/third_party/auth/",OPEN_GET_QRCODE:"/passport/open/get_qrcode/",OPEN_CHECK_QRCODE:"/passport/open/check_qrcode/",OPEN_TO_SCAN_QRCODE:"/passport/open/to_scan_qrcode/",OPEN_SCAN_QRCODE:"/passport/open/scan_qrcode/",OPEN_CONFIRM_QRCODE:"/passport/open/confirm_qrcode/",OPEN_WEB_AUTH:"/passport/open/web/auth/",OPEN_PROVIDER_ONE_AUTH:"/passport/open/provider_one_auth/",GET_OPEN_OAUTH_TOKEN:"/passport/web/auth/get_oauth_token/",OPEN_UPDATE_AUTHORIZE_INFO:"/passport/web/auth/update_authorize_info/",PLATFORM_OAUTH_CONNECT:"/platform/oauth/connect/",ACCOUNT_INFO:`${eL}/account/info/`,ACCOUNT_SET:`${eL}/account/set/`,OAUTH_PROFILE:"/web/user/get/oauth_profile/",UPLOAD_AVATAR:"/web/user/update/upload_avatar/",UPDATE_USERINFO:"/web/user/update/user_info/",CHECK_DEFAULT_INFO:"/web/user/check/default_info/",GET_BACKGROUND_LIST:"/web/user/settings/{aid}/default_background_image_list/",GET_DEFAULT_AVATAR_LIST:"/web/user/settings/{aid}/default_avatar_list/",GET_RECOMMEND_NAME:"/web/user/settings/recommend_name/",UPLOAD_PICTURE:"/web/user/upload/pic/",CHECK_REMAIN_TIMES:"/web/user/get/remain_update_times/",DOWNLOAD_IMAGE:"/user/web/download/image/",DOWNLOAD_IMAGE_V2:"/user/web/download/image/v2/",AUTH_TOKEN:"/passport/auth/token_auth/"},eI={SEND_MOBILE_CODE:`${eB}/mobile/send_code/`,SEND_EMAIL_CODE:`${eB}/email/send_code/`,VERIFY_MOBILE_CODE:`${eB}/mobile/validate_code/`,VERIFY_EMAIL_CODE:`${eB}/email/verify/`,CHECK_MOBILE_CODE:`${eB}/mobile/check_code/`,CHECK_EMAIL_CODE:`${eB}/email/check_code/`,SMS_LOGIN:`${eB}/mobile/sms_login/`,EMAIL_LOGIN:`${eB}/email/code_login/`,PWD_LOGIN:`${eB}/user/login/`,OAUTH_LOGIN_CALL:`${eB}/oauth/login/call/`,OAUTH_LOGIN_ONLY:`${eB}/oauth/login_only/`,OAUTH_LOGIN:`${eB}/oauth/login/`,SUBJECT_LOGIN_LIST:`${eB}/subject/login_list/`,SUBJECT_LOGIN:`${eB}/subject/login/`,LOGOUT:`${eB}/logout/`,REGISTER_EMAIL_USER_ONLY:`${eB}/email/register/only_user/`,REGISTER_EMAIL:`${eB}/email/register/`,REGISTER_MOBILE_USER_ONLY:`${eB}/mobile/register/only_user/`,REGISTER_MOBILE:`${eB}/mobile/register/`,RESET_BY_MOBILE:`${eB}/mobile/password/reset/`,RESET_BY_EMAIL:`${eB}/email/password/reset/`,MOBILE_INVITE:`${eB}/invitation/mobile/invite/`,EMAIL_INVITE:`${eB}/invitation/email/invite/`,LARK_INVITE:`${eB}/invitation/lark/invite/`,INVITE_LIST:`${eB}/invitation/list/`,CANCEL_INVITE:`${eB}/invitation/cancel/`,RESEND_INVITE:`${eB}/invitation/resend/`,UPDATE_INVITE:`${eB}/invitation/update/`,CHECK_INVITE_VALID:`${eB}/invitation/check/`,ACCEPT_INVITE:`${eB}/invitation/accept/`,CREATE_BY_USERNAME:`${eB}/subject/username/create/`,CREATE_BY_MOBILE:`${eB}/subject/mobile/create/`,CREATE_BY_EMAIL:`${eB}/subject/email/create/`,SUBJECT_LIST:`${eB}/subject/all/list/`,SUBJECT_DEPUTY_LIST:`${eB}/subject/deputy/list/`,SUBJECT_IDENTITY_LIST:`${eB}/subject/identity/list/`,UPDATE_DEPUTY_INFO:`${eB}/deputy/update/`,FREEZE_DEPUTY:`${eB}/deputy/freeze/`,DELETE_DEPUTY:`${eB}/deputy/delete/`,UPDATE_SUBJECT_INFO:`${eB}/subject/update/`,FREEZE_SUBJECT:`${eB}/subject/freeze/`,RESOURCE_LIST:`${eB}/resource/list/`,CREATE_ROLE:`${eB}/role/create/`,UPDATE_ROLE:`${eB}/role/update/`,BAN_ROLE:`${eB}/role/ban/`,ROLE_LIST:`${eB}/role/list/`,ROLE_INFO:`${eB}/role/info/`,CREATE_USER_WITH_ROLE:`${eB}/user/create_with_role/`,ADD_USER_ROLE:`${eB}/user_role/add/`,DELETE_USER_ROLE:`${eB}/user_role/del/`,USER_ROLE_LIST:`${eB}/user_role/list/`,ALL_USER_ROLE_LIST:`${eB}/user_role/all/list/`,USER_PERMISSIONS:`${eB}/user/permissions/`,SUCCESSOR_SEND_CODE:`${eB}/admin/successor/send_code/`,TRANSFER_MANAGER:`${eB}/admin/transfer/`,MEMBER_SWITCH:`${eB}/member/switch/`},eO={MOBILE_CODE_URL:"/send_activation_code/",MOBILE_CODE_URL_V2:"/send_activation_code/v2/",EMAIL_ACTIVATE_URL:"/send_email_activate_link/",EMAIL_ACTIVATE_URL_V2:"/send_email_activate_link/v2/",EMAIL_ACTIVATE_CODE_URL:"/send_email_activate_code/",EMAIL_ACTIVATE_CODE_URL_V2:"/send_email_activate_code/v2/",CHECK_LOGIN:"/check_login/",MOBILE_CODE_LOGIN_URL:"/quick_login/",MOBILE_CODE_LOGIN_URL_V2:"/quick_login/v2/",MOBILE_CODE_LOGIN_ONLY_URL:"/quick_login_only/",ACCOUNT_LOGIN_URL:"/account_login/",ACCOUNT_LOGIN_URL_V2:"/account_login/v2/",AUTH_LOGIN_URL:"/passport/auth/wap_login/",BIND_WITH_MOBILE_LOGIN:"/bind_with_mobile_login/",AUTH_LOGIN:"/auth/login/",AUTH_LOGIN_ONLY:"/auth/login_only/",LOGOUT:"/logout/",EMAIL_ACTIVATE_CODE_LOGIN:"/activate_email/code_login/",EMAIL_REGISTER:"/activate_email/register/",EMAIL_REGISTER_V2:"/activate_email/register/v2/",MOBILE_REGISTER_WITH_EMAIL:"/register/",MOBILE_REGISTER_WITH_EMAIL_V2:"/register/v2/",SSO_EMAIL_ACTIVATE_CODE_URL:"/sso/send_email_activate_code/",RESET_PASSWORD:"/reset_password/",RESET_PASSWORD_BY_EMAIL:"/activate_email/reset_password/",BIND_MOBILE:"/bind_mobile/",CHANGE_MOBILE:"/change_mobile/",QUICK_AUTH:"/quick_auth/",GET_QRCODE:"/get_qrcode/",CHECK_QRCONNECT:"/check_qrconnect/",SCAN_QRCODE:"/scan_qrcode/",CONFIRM_QRCODE:"/confirm_qrcode/",MOBILE_EMAIL_REGISTER:"/mobile_email_register/",AUTH_ONE_LOGIN:"/auth/one_login/"},eR={BIND_VERIFY_INFO:`${eP}/register/web/bind_verify_info/`};function eN(){return[].concat(Object.values(eM),Object.values(eI),Object.values(eO),["/passport/"])}let eH=[104,116,116,112,115,58,47,47,109,115,115,100,107,45,98,111,101,46,98,121,116,101,100,97,110,99,101,46,110,101,116].map(e=>String.fromCharCode(e)).join("");function eV(){return Object.values(eO).map(e=>[e,`/passport/sso${e}`])||[]}function eF(e){let t=window,{acrawler:i="1"}=e||{};if("0"===i)return;let r=eN();if(null==t?void 0:t._SdkGlueInit)t._SdkGlueInit({bdms:{paths:r,boe:e.isBoe||!1}});else if(null==t?void 0:t.byted_acrawler){let i=eV();null==t||t.byted_acrawler.init({aid:e.aid,isSDK:!0,boe:e.isBoe||!1,boeHost:(null==e?void 0:e.isBoe)?eH:"",enablePathList:r,urlRewriteRules:i})}}class eZ extends eQ{init(){eF(this.initProps)}constructor(e){super(e),this.init=this.init.bind(this)}}let ej=eZ;var ez=function(){return(ez=Object.assign||function(e){for(var t,i=1,r=arguments.length;i0&&a[0]<4?1:+(a[0]+a[1])),!s&&tT&&(!(a=tT.match(/Edge\/(\d+)/))||a[1]>=74)&&(a=tT.match(/Chrome\/(\d+)/))&&(s=+a[1]);var t_=s,tx=!!Object.getOwnPropertySymbols&&!e7(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t_&&t_<41}),tE=tx&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,tC=eY.Object,tD=tE?function(e){return"symbol"==typeof e}:function(e){var t=tg("Symbol");return e8(t)&&tb(t.prototype,tC(e))},tS=eY.String,tL=function(e){try{return tS(e)}catch(e){return"Object"}},tB=eY.TypeError,tP=function(e){if(e8(e))return e;throw tB(tL(e)+" is not a function")},tM=function(e,t){var i=e[t];return null==i?void 0:tP(i)},tI=eY.TypeError,tO=function(e,t){var i,r;if("string"===t&&e8(i=e.toString)&&!tA(r=tt(i,e))||e8(i=e.valueOf)&&!tA(r=tt(i,e))||"string"!==t&&e8(i=e.toString)&&!tA(r=tt(i,e)))return r;throw tI("Can't convert object to primitive value")},tR=!0,tN=Object.defineProperty,tH=function(e,t){try{tN(eY,e,{value:t,configurable:!0,writable:!0})}catch(i){eY[e]=t}return t},tV="__core-js_shared__",tF=eY[tV]||tH(tV,{}),tZ=eX(function(e){(e.exports=function(e,t){return tF[e]||(tF[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.20.1",mode:"pure",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"})}),tj=eY.Object,tz=function(e){return tj(th(e))},tG=e5({}.hasOwnProperty),tU=Object.hasOwn||function(e,t){return tG(tz(e),t)},tX=0,tW=Math.random(),t$=e5(1..toString),tY=function(e){return"Symbol("+(void 0===e?"":e)+")_"+t$(++tX+tW,36)},tq=tZ("wks"),tJ=eY.Symbol,tK=tJ&&tJ.for,t0=tE?tJ:tJ&&tJ.withoutSetter||tY,t2=function(e){if(!tU(tq,e)||!(tx||"string"==typeof tq[e])){var t="Symbol."+e;tx&&tU(tJ,e)?tq[e]=tJ[e]:tE&&tK?tq[e]=tK(t):tq[e]=t0(t)}return tq[e]},t1=eY.TypeError,t4=t2("toPrimitive"),t6=function(e,t){if(!tA(e)||tD(e))return e;var i,r=tM(e,t4);if(r){if(void 0===t&&(t="default"),!tA(i=tt(r,e,t))||tD(i))return i;throw t1("Can't convert object to primitive value")}return void 0===t&&(t="number"),tO(e,t)},t3=function(e){var t=t6(e,"string");return tD(t)?t:t+""},t5=eY.document,t8=tA(t5)&&tA(t5.createElement),t7=function(e){return t8?t5.createElement(e):{}},t9=!e9&&!e7(function(){return 7!=Object.defineProperty(t7("div"),"a",{get:function(){return 7}}).a}),ie=Object.getOwnPropertyDescriptor,it=e9?ie:function(e,t){if(e=tp(e),t=t3(t),t9)try{return ie(e,t)}catch(e){}if(tU(e,t))return to(!tt(tn,e,t),e[t])},ii=/#|\.prototype\./,ir=function(e,t){var i=ia[io(e)];return i==il||i!=is&&(e8(t)?e7(t):!!t)},io=ir.normalize=function(e){return String(e).replace(ii,".").toLowerCase()},ia=ir.data={},is=ir.NATIVE="N",il=ir.POLYFILL="P",iu=ir,ic=e5(e5.bind),id=function(e,t){return tP(e),void 0===t?e:ic?ic(e,t):function(){return e.apply(t,arguments)}},ih=eY.String,ip=eY.TypeError,iA=function(e){if(tA(e))return e;throw ip(ih(e)+" is not an object")},ik=eY.TypeError,im=Object.defineProperty,ig=e9?im:function(e,t,i){if(iA(e),t=t3(t),iA(i),t9)try{return im(e,t,i)}catch(e){}if("get"in i||"set"in i)throw ik("Accessors not supported");return"value"in i&&(e[t]=i.value),e},ib=e9?function(e,t,i){return ig(e,t,to(1,i))}:function(e,t,i){return e[t]=i,e},iT=it,iv=function(e){var t=function(i,r,n){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(i);case 2:return new e(i,r)}return new e(i,r,n)}return e2(e,this,arguments)};return t.prototype=e.prototype,t},iy=function(e,t){var i,r,n,o,a,s,l,u,f=e.target,c=e.global,d=e.stat,h=e.proto,p=c?eY:d?eY[f]:(eY[f]||{}).prototype,A=c?tk:tk[f]||ib(tk,f,{})[f],k=A.prototype;for(n in t)i=!iu(c?n:f+(d?".":"#")+n,e.forced)&&p&&tU(p,n),a=A[n],i&&(s=e.noTargetGet?(u=iT(p,n))&&u.value:p[n]),o=i&&s?s:t[n],(!i||typeof a!=typeof o)&&(l=e.bind&&i?id(o,eY):e.wrap&&i?iv(o):h&&e8(o)?e5(o):o,(e.sham||o&&o.sham||a&&a.sham)&&ib(l,"sham",!0),ib(A,n,l),h&&(tU(tk,r=f+"Prototype")||ib(tk,r,{}),ib(tk[r],n,o),e.real&&k&&!k[n]&&ib(k,n,o)))},iQ=tZ("keys"),iw=function(e){return iQ[e]||(iQ[e]=tY(e))},i_=!e7(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),ix=iw("IE_PROTO"),iE=eY.Object,iC=iE.prototype,iD=i_?iE.getPrototypeOf:function(e){var t=tz(e);if(tU(t,ix))return t[ix];var i=t.constructor;return e8(i)&&t instanceof i?i.prototype:t instanceof iE?iC:null},iS=eY.String,iL=eY.TypeError,iB=function(e){if("object"==typeof e||e8(e))return e;throw iL("Can't set "+iS(e)+" as a prototype")},iP=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,i={};try{(e=e5(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(i,[]),t=i instanceof Array}catch(e){}return function(i,r){return iA(i),iB(r),t?e(i,r):i.__proto__=r,i}}():void 0),iM=Math.ceil,iI=Math.floor,iO=function(e){var t=+e;return t!=t||0===t?0:(t>0?iI:iM)(t)},iR=Math.max,iN=Math.min,iH=function(e,t){var i=iO(e);return i<0?iR(i+t,0):iN(i,t)},iV=Math.min,iF=function(e){return e>0?iV(iO(e),0x1fffffffffffff):0},iZ=function(e){return iF(e.length)},ij=function(e){return function(t,i,r){var n,o=tp(t),a=iZ(o),s=iH(r,a);if(e&&i!=i){for(;a>s;)if((n=o[s++])!=n)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===i)return e||s||0;return!e&&-1}},iz={includes:ij(!0),indexOf:ij(!1)},iG={},iU=iz.indexOf,iX=e5([].push),iW=function(e,t){var i,r=tp(e),n=0,o=[];for(i in r)!tU(iG,i)&&tU(r,i)&&iX(o,i);for(;t.length>n;)tU(r,i=t[n++])&&(~iU(o,i)||iX(o,i));return o},i$=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],iY=i$.concat("length","prototype"),iq=Object.getOwnPropertyNames||function(e){return iW(e,iY)},iJ=Object.getOwnPropertySymbols,iK=e5([].concat),i0=tg("Reflect","ownKeys")||function(e){var t=iq(iA(e)),i=iJ;return i?iK(t,i(e)):t},i2=function(e,t,i){for(var r=i0(t),n=ig,o=it,a=0;aa;)ig(e,i=n[a++],r[i]);return e},i6=tg("document","documentElement"),i3=">",i5="<",i8="prototype",i7="script",i9=iw("IE_PROTO"),re=function(){},rt=function(e){return i5+i7+i3+e+i5+"/"+i7+i3},ri=function(e){e.write(rt("")),e.close();var t=e.parentWindow.Object;return e=null,t},rr=function(){var e,t=t7("iframe"),i="java"+i7+":";return t.style.display="none",i6.appendChild(t),t.src=String(i),(e=t.contentWindow.document).open(),e.write(rt("document.F=Object")),e.close(),e.F},rn=function(){try{l=new ActiveXObject("htmlfile")}catch(e){}rn="undefined"!=typeof document?document.domain&&l?ri(l):rr():ri(l);for(var e=i$.length;e--;)delete rn[i8][i$[e]];return rn()};iG[i9]=!0;var ro=Object.create||function(e,t){var i;return null!==e?(re[i8]=iA(e),i=new re,re[i8]=null,i[i9]=e):i=rn(),void 0===t?i:i4(i,t)},ra=e5("".replace),rs=function(e){return String(Error(e).stack)}("zxcasd"),rl=/\n\s*at [^:]*:[^\n]*/,ru=rl.test(rs),rf=function(e,t){if(ru&&"string"==typeof e)for(;t--;)e=ra(e,rl,"");return e},rc=function(e,t){tA(t)&&"cause"in t&&ib(e,"cause",t.cause)},rd={},rh=t2("iterator"),rp=Array.prototype,rA=function(e){return void 0!==e&&(rd.Array===e||rp[rh]===e)},rk=t2("toStringTag"),rm={};rm[rk]="z";var rg="[object z]"===String(rm),rb=t2("toStringTag"),rT=eY.Object,rv="Arguments"==tl(function(){return arguments}()),ry=function(e,t){try{return e[t]}catch(e){}},rQ=rg?tl:function(e){var t,i,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(i=ry(t=rT(e),rb))?i:rv?tl(t):"Object"==(r=tl(t))&&e8(t.callee)?"Arguments":r},rw=t2("iterator"),r_=function(e){if(void 0!=e)return tM(e,rw)||tM(e,"@@iterator")||rd[rQ(e)]},rx=eY.TypeError,rE=function(e,t){var i=arguments.length<2?r_(e):t;if(tP(i))return iA(tt(i,e));throw rx(tL(e)+" is not iterable")},rC=function(e,t,i){var r,n;iA(e);try{if(!(r=tM(e,"return"))){if("throw"===t)throw i;return i}r=tt(r,e)}catch(e){n=!0,r=e}if("throw"===t)throw i;if(n)throw r;return iA(r),i},rD=eY.TypeError,rS=function(e,t){this.stopped=e,this.result=t},rL=rS.prototype,rB=function(e,t,i){var r,n,o,a,s,l,u,f=i&&i.that,c=!!(i&&i.AS_ENTRIES),d=!!(i&&i.IS_ITERATOR),h=!!(i&&i.INTERRUPTED),p=id(t,f),A=function(e){return r&&rC(r,"normal",e),new rS(!0,e)},k=function(e){return c?(iA(e),h?p(e[0],e[1],A):p(e[0],e[1])):h?p(e,A):p(e)};if(d)r=e;else{if(!(n=r_(e)))throw rD(tL(e)+" is not iterable");if(rA(n)){for(o=0,a=iZ(e);a>o;o++)if((s=k(e[o]))&&tb(rL,s))return s;return new rS(!1)}r=rE(e,n)}for(l=r.next;!(u=tt(l,r)).done;){try{s=k(u.value)}catch(e){rC(r,"throw",e)}if("object"==typeof s&&s&&tb(rL,s))return s}return new rS(!1)},rP=eY.String,rM=function(e){if("Symbol"===rQ(e))throw TypeError("Cannot convert a Symbol value to a string");return rP(e)},rI=function(e,t){return void 0===e?arguments.length<2?"":t:rM(e)},rO=!e7(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",to(1,7)),7!==e.stack)}),rR=t2("toStringTag"),rN=eY.Error,rH=[].push,rV=function(e,t){var i,r=arguments.length>2?arguments[2]:void 0,n=tb(rF,this);iP?i=iP(new rN,n?iD(this):rF):ib(i=n?this:ro(rF),rR,"Error"),void 0!==t&&ib(i,"message",rI(t)),rO&&ib(i,"stack",rf(i.stack,1)),rc(i,r);var o=[];return rB(e,rH,{that:o}),ib(i,"errors",o),i};iP?iP(rV,rN):i2(rV,rN,{name:!0});var rF=rV.prototype=ro(rN.prototype,{constructor:to(1,rV),message:to(1,""),name:to(1,"AggregateError")});iy({global:!0},{AggregateError:rV});var rZ=e5(Function.toString);e8(tF.inspectSource)||(tF.inspectSource=function(e){return rZ(e)});var rj=tF.inspectSource,rz=eY.WeakMap,rG=e8(rz)&&/native code/.test(rj(rz)),rU="Object already initialized",rX=eY.TypeError,rW=eY.WeakMap,r$=function(e){return function(t){var i;if(!tA(t)||(i=f(t)).type!==e)throw rX("Incompatible receiver, "+e+" required");return i}};if(rG||tF.state){var rY=tF.state||(tF.state=new rW),rq=e5(rY.get),rJ=e5(rY.has),rK=e5(rY.set);u=function(e,t){if(rJ(rY,e))throw new rX(rU);return t.facade=e,rK(rY,e,t),t},f=function(e){return rq(rY,e)||{}},c=function(e){return rJ(rY,e)}}else{var r0=iw("state");iG[r0]=!0,u=function(e,t){if(tU(e,r0))throw new rX(rU);return t.facade=e,ib(e,r0,t),t},f=function(e){return tU(e,r0)?e[r0]:{}},c=function(e){return tU(e,r0)}}var r2=u,r1=r$,r4=Function.prototype,r6=e9&&Object.getOwnPropertyDescriptor,r3=tU(r4,"name"),r5=r3&&"something"===(function(){}).name,r8=(r3&&(!e9||e9&&r6(r4,"name").configurable),r5),r7=function(e,t,i,r){r&&r.enumerable?e[t]=i:ib(e,t,i)},r9=t2("iterator"),ne=!1;[].keys&&("next"in(p=[].keys())?(h=iD(iD(p)))!==Object.prototype&&(d=h):ne=!0),e8((d=void 0==d||e7(function(){var e={};return d[r9].call(e)!==e})?{}:ro(d))[r9])||r7(d,r9,function(){return this});var nt=d,ni=ne,nr=rg?({}).toString:function(){return"[object "+rQ(this)+"]"},nn=ig,no=t2("toStringTag"),na=function(e,t,i,r){if(e){var n=i?e:e.prototype;tU(n,no)||nn(n,no,{configurable:!0,value:t}),r&&!rg&&ib(n,"toString",nr)}},ns=nt,nl=function(){return this},nu=function(e,t,i,r){var n=t+" Iterator";return e.prototype=ro(ns,{next:to(+!r,i)}),na(e,n,!1,!0),rd[n]=nl,e},nf=r8,nc=ni,nd=t2("iterator"),nh="keys",np="values",nA="entries",nk=function(){return this},nm=function(e,t,i,r,n,o,a){nu(i,t,r);var s,l,u,f=function(e){if(e===n&&A)return A;if(!nc&&e in h)return h[e];switch(e){case nh:case np:case nA:return function(){return new i(this,e)}}return function(){return new i(this)}},c=t+" Iterator",d=!1,h=e.prototype,p=h[nd]||h["@@iterator"]||n&&h[n],A=!nc&&p||f(n),k="Array"==t&&h.entries||p;if(k&&(s=iD(k.call(new e)))!==Object.prototype&&s.next&&(na(s,c,!0,!0),rd[c]=nk),nf&&n==np&&p&&p.name!==np&&(d=!0,A=function(){return tt(p,this)}),n)if(l={values:f(np),keys:o?A:f(nh),entries:f(nA)},a)for(u in l)!nc&&!d&&u in h||r7(h,u,l[u]);else iy({target:t,proto:!0,forced:nc||d},l);return a&&h[nd]!==A&&r7(h,nd,A,{name:n}),rd[t]=A,l},ng="Array Iterator",nb=r2,nT=r1(ng);nm(Array,"Array",function(e,t){nb(this,{type:ng,target:tp(e),index:0,kind:t})},function(){var e=nT(this),t=e.target,i=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==i?{value:r,done:!1}:"values"==i?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),rd.Arguments=rd.Array;var nv=eY.Promise,ny=function(e,t,i){for(var r in t)i&&i.unsafe&&e[r]?e[r]=t[r]:r7(e,r,t[r],i);return e},nQ=t2("species"),nw=function(e){var t=tg(e),i=ig;e9&&t&&!t[nQ]&&i(t,nQ,{configurable:!0,get:function(){return this}})},n_=eY.TypeError,nx=function(e,t){if(tb(t,e))return e;throw n_("Incorrect invocation")},nE=t2("iterator"),nC=!1;try{var nD=0,nS={next:function(){return{done:!!nD++}},return:function(){nC=!0}};nS[nE]=function(){return this},Array.from(nS,function(){throw 2})}catch(e){}var nL=function(e,t){if(!t&&!nC)return!1;var i=!1;try{var r={};r[nE]=function(){return{next:function(){return{done:i=!0}}}},e(r)}catch(e){}return i},nB=function(){},nP=[],nM=tg("Reflect","construct"),nI=/^\s*(?:class|function)\b/,nO=e5(nI.exec),nR=!nI.exec(nB),nN=function(e){if(!e8(e))return!1;try{return nM(nB,nP,e),!0}catch(e){return!1}},nH=function(e){if(!e8(e))return!1;switch(rQ(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return nR||!!nO(nI,rj(e))}catch(e){return!0}};nH.sham=!0;var nV=!nM||e7(function(){var e;return nN(nN.call)||!nN(Object)||!nN(function(){e=!0})||e})?nH:nN,nF=eY.TypeError,nZ=function(e){if(nV(e))return e;throw nF(tL(e)+" is not a constructor")},nj=t2("species"),nz=function(e,t){var i,r=iA(e).constructor;return void 0===r||void 0==(i=iA(r)[nj])?t:nZ(i)},nG=e5([].slice),nU=/(?:ipad|iphone|ipod).*applewebkit/i.test(tT),nX="process"==tl(eY.process),nW=eY.setImmediate,n$=eY.clearImmediate,nY=eY.process,nq=eY.Dispatch,nJ=eY.Function,nK=eY.MessageChannel,n0=eY.String,n2=0,n1={},n4="onreadystatechange";try{A=eY.location}catch(e){}var n6=function(e){if(tU(n1,e)){var t=n1[e];delete n1[e],t()}},n3=function(e){return function(){n6(e)}},n5=function(e){n6(e.data)},n8=function(e){eY.postMessage(n0(e),A.protocol+"//"+A.host)};nW&&n$||(nW=function(e){var t=nG(arguments,1);return n1[++n2]=function(){e2(e8(e)?e:nJ(e),void 0,t)},k(n2),n2},n$=function(e){delete n1[e]},nX?k=function(e){nY.nextTick(n3(e))}:nq&&nq.now?k=function(e){nq.now(n3(e))}:nK&&!nU?(g=(m=new nK).port2,m.port1.onmessage=n5,k=id(g.postMessage,g)):eY.addEventListener&&e8(eY.postMessage)&&!eY.importScripts&&A&&"file:"!==A.protocol&&!e7(n8)?(k=n8,eY.addEventListener("message",n5,!1)):k=n4 in t7("script")?function(e){i6.appendChild(t7("script"))[n4]=function(){i6.removeChild(this),n6(e)}}:function(e){setTimeout(n3(e),0)});var n7=nW,n9=/ipad|iphone|ipod/i.test(tT)&&void 0!==eY.Pebble,oe=/web0s(?!.*chrome)/i.test(tT),ot=it,oi=n7,or=eY.MutationObserver||eY.WebKitMutationObserver,on=eY.document,oo=eY.process,oa=eY.Promise,ol=ot(eY,"queueMicrotask"),ou=ol&&ol.value;ou||(b=function(){var e,t;for(nX&&(e=oo.domain)&&e.exit();v;){t=v.fn,v=v.next;try{t()}catch(e){throw v?Q():y=void 0,e}}y=void 0,e&&e.enter()},nU||nX||oe||!or||!on?!n9&&oa&&oa.resolve?((x=oa.resolve(void 0)).constructor=oa,E=id(x.then,x),Q=function(){E(b)}):nX?Q=function(){oo.nextTick(b)}:(oi=id(oi,eY),Q=function(){oi(b)}):(w=!0,_=on.createTextNode(""),new or(b).observe(_,{characterData:!0}),Q=function(){_.data=w=!w}));var of=ou||function(e){var t={fn:e,next:void 0};y&&(y.next=t),v||(v=t,Q()),y=t},oc=function(e){var t,i;this.promise=new e(function(e,r){if(void 0!==t||void 0!==i)throw TypeError("Bad Promise constructor");t=e,i=r}),this.resolve=tP(t),this.reject=tP(i)},od={f:function(e){return new oc(e)}},oh=function(e,t){if(iA(e),tA(t)&&t.constructor===e)return t;var i=od.f(e);return(0,i.resolve)(t),i.promise},op=function(e,t){var i=eY.console;i&&i.error},oA=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},ok=function(){this.head=null,this.tail=null};ok.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}};var om=ok,og="object"==typeof window,ob=n7,oT=t2("species"),ov="Promise",oy=r1(ov),oQ=r2,ow=r1(ov),o_=nv&&nv.prototype,ox=nv,oE=o_,oC=eY.TypeError,oD=eY.document,oS=eY.process,oL=od.f,oB=oL,oP=!!(oD&&oD.createEvent&&eY.dispatchEvent),oM=e8(eY.PromiseRejectionEvent),oI="unhandledrejection",oO="rejectionhandled",oR=0,oN=1,oH=2,oV=1,oF=2,oZ=!1,oj=iu(ov,function(){var e=rj(ox),t=e!==String(ox);if(!t&&66===t_||!oE.finally)return!0;if(t_>=51&&/native code/.test(e))return!1;var i=new ox(function(e){e(1)}),r=function(e){e(function(){},function(){})};return(i.constructor={})[oT]=r,!(oZ=i.then(function(){})instanceof r)||!t&&og&&!oM}),oz=oj||!nL(function(e){ox.all(e).catch(function(){})}),oG=function(e){var t;return!!(tA(e)&&e8(t=e.then))&&t},oU=function(e,t){var i,r,n,o=t.value,a=t.state==oN,s=a?e.ok:e.fail,l=e.resolve,u=e.reject,f=e.domain;try{s?(a||(t.rejection===oF&&oq(t),t.rejection=oV),!0===s?i=o:(f&&f.enter(),i=s(o),f&&(f.exit(),n=!0)),i===e.promise?u(oC("Promise-chain cycle")):(r=oG(i))?tt(r,i,l,u):l(i)):u(o)}catch(e){f&&!n&&f.exit(),u(e)}},oX=function(e,t){e.notified||(e.notified=!0,of(function(){for(var i,r=e.reactions;i=r.get();)oU(i,e);e.notified=!1,t&&!e.rejection&&o$(e)}))},oW=function(e,t,i){var r,n;oP?((r=oD.createEvent("Event")).promise=t,r.reason=i,r.initEvent(e,!1,!0),eY.dispatchEvent(r)):r={promise:t,reason:i},!oM&&(n=eY["on"+e])?n(r):e===oI&&op("Unhandled promise rejection",i)},o$=function(e){tt(ob,eY,function(){var t,i=e.facade,r=e.value;if(oY(e)&&(t=oA(function(){nX?oS.emit("unhandledRejection",r,i):oW(oI,i,r)}),e.rejection=nX||oY(e)?oF:oV,t.error))throw t.value})},oY=function(e){return e.rejection!==oV&&!e.parent},oq=function(e){tt(ob,eY,function(){var t=e.facade;nX?oS.emit("rejectionHandled",t):oW(oO,t,e.value)})},oJ=function(e,t,i){return function(r){e(t,r,i)}},oK=function(e,t,i){e.done||(e.done=!0,i&&(e=i),e.value=t,e.state=oH,oX(e,!0))},o0=function(e,t,i){if(!e.done){e.done=!0,i&&(e=i);try{if(e.facade===t)throw oC("Promise can't be resolved itself");var r=oG(t);r?of(function(){var i={done:!1};try{tt(r,t,oJ(o0,i,e),oJ(oK,i,e))}catch(t){oK(i,t,e)}}):(e.value=t,e.state=oN,oX(e,!1))}catch(t){oK({done:!1},t,e)}}};oj&&(oE=(ox=function(e){nx(this,oE),tP(e),tt(C,this);var t=oy(this);try{e(oJ(o0,t),oJ(oK,t))}catch(e){oK(t,e)}}).prototype,(C=function(e){oQ(this,{type:ov,done:!1,notified:!1,parent:!1,reactions:new om,rejection:!1,state:oR,value:void 0})}).prototype=ny(oE,{then:function(e,t){var i=ow(this),r=oL(nz(this,ox));return i.parent=!0,r.ok=!e8(e)||e,r.fail=e8(t)&&t,r.domain=nX?oS.domain:void 0,i.state==oR?i.reactions.add(r):of(function(){oU(r,i)}),r.promise},catch:function(e){return this.then(void 0,e)}}),D=function(){var e=new C,t=oy(e);this.promise=e,this.resolve=oJ(o0,t),this.reject=oJ(oK,t)},od.f=oL=function(e){return e===ox||e===S?new D(e):oB(e)}),iy({global:!0,wrap:!0,forced:oj},{Promise:ox}),na(ox,ov,!1,!0),nw(ov),S=tg(ov),iy({target:ov,stat:!0,forced:oj},{reject:function(e){var t=oL(this);return tt(t.reject,void 0,e),t.promise}}),iy({target:ov,stat:!0,forced:tR},{resolve:function(e){return oh(this===S?ox:this,e)}}),iy({target:ov,stat:!0,forced:oz},{all:function(e){var t=this,i=oL(t),r=i.resolve,n=i.reject,o=oA(function(){var i=tP(t.resolve),o=[],a=0,s=1;rB(e,function(e){var l=a++,u=!1;s++,tt(i,t,e).then(function(e){!u&&(u=!0,o[l]=e,--s||r(o))},n)}),--s||r(o)});return o.error&&n(o.value),i.promise},race:function(e){var t=this,i=oL(t),r=i.reject,n=oA(function(){var n=tP(t.resolve);rB(e,function(e){tt(n,t,e).then(i.resolve,r)})});return n.error&&r(n.value),i.promise}}),iy({target:"Promise",stat:!0},{allSettled:function(e){var t=this,i=od.f(t),r=i.resolve,n=i.reject,o=oA(function(){var i=tP(t.resolve),n=[],o=0,a=1;rB(e,function(e){var s=o++,l=!1;a++,tt(i,t,e).then(function(e){!l&&(l=!0,n[s]={status:"fulfilled",value:e},--a||r(n))},function(e){!l&&(l=!0,n[s]={status:"rejected",reason:e},--a||r(n))})}),--a||r(n)});return o.error&&n(o.value),i.promise}});var o2="No one promise resolved";iy({target:"Promise",stat:!0},{any:function(e){var t=this,i=tg("AggregateError"),r=od.f(t),n=r.resolve,o=r.reject,a=oA(function(){var r=tP(t.resolve),a=[],s=0,l=1,u=!1;rB(e,function(e){var f=s++,c=!1;l++,tt(r,t,e).then(function(e){c||u||(u=!0,n(e))},function(e){!c&&!u&&(c=!0,a[f]=e,--l||o(new i(a,o2)))})}),--l||o(new i(a,o2))});return a.error&&o(a.value),r.promise}}),iy({target:"Promise",proto:!0,real:!0,forced:!!nv&&e7(function(){nv.prototype.finally.call({then:function(){}},function(){})})},{finally:function(e){var t=nz(this,tg("Promise")),i=e8(e);return this.then(i?function(i){return oh(t,e()).then(function(){return i})}:e,i?function(i){return oh(t,e()).then(function(){throw i})}:e)}});var o1=e5("".charAt),o4=e5("".charCodeAt),o6=e5("".slice),o3=function(e){return function(t,i){var r,n,o=rM(th(t)),a=iO(i),s=o.length;return a<0||a>=s?e?"":void 0:(r=o4(o,a))<55296||r>56319||a+1===s||(n=o4(o,a+1))<56320||n>57343?e?o1(o,a):r:e?o6(o,a,a+2):(r-55296<<10)+(n-56320)+65536}},o5={codeAt:o3(!1),charAt:o3(!0)},o8=o5.charAt,o7="String Iterator",o9=r2,ae=r1(o7);nm(String,"String",function(e){o9(this,{type:o7,string:rM(e),index:0})},function(){var e,t=ae(this),i=t.string,r=t.index;return r>=i.length?{value:void 0,done:!0}:(e=o8(i,r),t.index+=e.length,{value:e,done:!1})});var at=tk.Promise,ai={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},ar=t2("toStringTag");for(var an in ai){var ao=eY[an],aa=ao&&ao.prototype;aa&&rQ(aa)!==ar&&ib(aa,ar,an),rd[an]=rd.Array}var as=at,al=5e3,au="s_v_web_id",af="/vc/setting",ac="https://mj.huaxiangai.com/zijievcs",ad=function(e){for(var t=Object.keys(e),i="",r=0;r=1?"".concat(i,"&").concat(a):a}return i},ah=function(e){return Object.prototype.toString.call(e).slice(8,-1)},ap=function(e){var t=e.url,i=e.method,r=e.data,n=e.config,o=null==n?void 0:n.slardar;return new as(function(a,s){var l=new XMLHttpRequest,u=Date.now(),f=function(){o&&-1!==e.url.indexOf(af)&&o.reportHttp({url:t,method:i,duration:Date.now()-u,status:l.status})};l.onreadystatechange=function(){if(l.readyState===l.DONE){if(l.status>=200&&l.status<300){var e={},t=l.response||l.responseText,i=l.getResponseHeader("Content-Type")||l.getResponseHeader("content-type");if(i&&-1!==i.indexOf("application/json"))try{e=JSON.parse(t)}catch(e){}else e=t;setTimeout(function(){a(e)},0)}else s(TypeError("Network request failed, status: ".concat(l.status)));f()}},l.onerror=function(){setTimeout(function(){s(TypeError("Network request failed, occur error"))},0),f()},l.ontimeout=function(){setTimeout(function(){s(TypeError("Network request failed, timeout"))},0),f()},l.onabort=function(){setTimeout(function(){s(new DOMException("Aborted","AbortError"))},0),f()};var c=t;if((null==n?void 0:n.params)&&(c="".concat(c,"?").concat(ad(n.params))),l.open(i,c,!0),(null==n?void 0:n.timeout)&&"number"==typeof n.timeout?l.timeout=n.timeout:l.timeout=al,null==n?void 0:n.headers)for(var d=n.headers,h=0,p=Object.keys(d);h=l&&h.call(this),clearTimeout(d),d=setTimeout(h.bind(this),f)},flush:function(){clearTimeout(d),h.call(this)},getBatchData:function(){return c.length?n(c):""},clear:function(){clearTimeout(d),c=[]},fail:function(e){t=e}}}var a=function(){return(a=Object.assign||function(e){for(var t,i=1,r=arguments.length;i0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return a}function l(e,t,i){if(i||2==arguments.length)for(var r,n=0,o=t.length;n=0){var r=e.slice();return r.splice(i,1),r}return e},v=function(e,t,i){for(var r,n=s(t.split(".")),o=n[0],a=n.slice(1);e&&a.length>0;)e=e[o],o=(r=s(a))[0],a=r.slice(1);if(e)return i(e,o)};function y(e){try{return m(e)?e:JSON.stringify(e)}catch(e){return"[FAILED_TO_STRINGIFY]:"+String(e)}}function Q(){var e={},t={},i={set:function(r,n){return e[r]=n,t[r]=y(n),i},merge:function(r){return e=a(a({},e),r),Object.keys(r).forEach(function(e){t[e]=y(r[e])}),i},delete:function(r){return delete e[r],delete t[r],i},clear:function(){return e={},t={},i},get:function(e){return t[e]},toString:function(){return a({},t)}};return i}!function(){"".padStart}();var w=function(){for(var e=[],t=0;t>>((3&i)<<3)&255;return e}function S(e){for(var t=[],i=0;i<256;++i)t[i]=(i+256).toString(16).substr(1);var r=0,n=t;return""+n[e[r++]]+n[e[r++]]+n[e[r++]]+n[e[r++]]+"-"+n[e[r++]]+n[e[r++]]+"-"+n[e[r++]]+n[e[r++]]+"-"+n[e[r++]]+n[e[r++]]+"-"+n[e[r++]]+n[e[r++]]+n[e[r++]]+n[e[r++]]+n[e[r++]]+n[e[r++]]}function L(){var e=D();return e[6]=15&e[6]|64,e[8]=63&e[8]|128,S(e)}function B(){var e=!1,t={},i=function(e){e.length&&e.forEach(function(e){try{e()}catch(e){}}),e.length=0},r=function(e){t[e]&&t[e].forEach(function(e){i(e[1])}),t[e]=void 0};return{set:function(r,n,o){t[r]?t[r].push([n,o]):t[r]=[[n,o]],e&&i(o)},has:function(e){return!!t[e]},remove:r,removeByEvType:function(e){Object.keys(t).forEach(function(r){t[r]&&t[r].forEach(function(t){t[0]===e&&i(t[1])})})},clear:function(){e=!0,Object.keys(t).forEach(function(e){r(e)})}}}function P(e){var t,i,r=e.builder,n=e.createSender,o=e.createDefaultConfig,a=e.createConfigManager,f=e.userConfigNormalizer,c=e.initConfigNormalizer,h=e.validateInitConfig,p={};u.forEach(function(e){return p[e]=[]});var A=!1,k=!1,m=!1,v=[],y=[],Q=B(),w={getBuilder:function(){return r},getSender:function(){return t},getPreStartQueue:function(){return v},init:function(e){if(A)return void _("already inited");if(e&&d(e)&&h(e)){var r=o(e);if(!r)throw Error("defaultConfig missing");var s=c(e);if((i=a(r)).setConfig(s),i.onChange(function(){x("config")}),!(t=n(i.getConfig())))throw Error("sender missing");A=!0,x("init",!0)}else throw Error("invalid InitConfig, init failed")},set:function(e){A&&e&&d(e)&&(x("beforeConfig",!1,e),null==i||i.setConfig(e))},config:function(e){if(A)return e&&d(e)&&(x("beforeConfig",!1,e),null==i||i.setConfig(f(e))),null==i?void 0:i.getConfig()},provide:function(e,t){if(g(y,e))return void _("cannot provide "+e+", reserved");w[e]=t,x("provide",!1,e)},start:function(){var e=this;A&&(k||null==i||i.onReady(function(){k=!0,x("start",!0),v.forEach(function(t){return e.build(t)}),v.length=0}))},report:function(e){if(e){var t=C(p.beforeReport)(e);if(t){var i=C(p.report)(t);i&&(k?this.build(i):v.push(i))}}},build:function(e){if(!k)return;var t=C(p.beforeBuild)(e);if(t){var i=r.build(t);if(i){var n=C(p.build)(i);n&&this.send(n)}}},send:function(e){if(k){var i=C(p.beforeSend)(e);i&&(t.send(i),x("send",!1,i))}},destroy:function(){Q.clear(),m=!0,v.length=0,x("beforeDestroy",!0)},on:function(e,t){if("init"===e&&A||"start"===e&&k||"beforeDestroy"===e&&m)try{t()}catch(e){}else p[e]&&p[e].push(t)},off:function(e,t){p[e]&&(p[e]=b(p[e],t))},destroyAgent:Q};return y=Object.keys(w),w;function x(e,t){void 0===t&&(t=!1);for(var i=[],r=2;rt[0];case"gte":return e>=t[0];case"lt":return e=0?"":"https://")+e+t},em=function(e,t){return void 0===t&&(t=es),(e&&e.indexOf("//")>=0?"":"https://")+e+t},eg=function(){return L()},eb=function(){return L()},eT=function(e){return e+"_"+Date.now()},ev=function(){return L()},ey=function(e){var t,i,r,n=e,o={},s=f,l=f;return{getConfig:function(){return n},setConfig:function(e){return o=a(a({},o),e||{}),u(),t||(t=e,n.useLocalConfig||!n.bid?(r={},s()):eQ(n.transport,n.domain,n.bid,function(e){i=e,c()})),n},onChange:function(e){l=e},onReady:function(e){s=e,r&&s()}};function u(){var t=a(a(a({},e),r||{}),o);t.sample=ew(ew(e.sample,null==r?void 0:r.sample),o.sample),n=t,l()}function c(){r=eA(i),u(),s()}};function eQ(e,t,i,r){if(!e.get)return r({});e.get({withCredentials:!0,url:em(t)+"?bid="+i+"&store=1",success:function(e){r(e.data||{})},fail:function(){r({sample:{sample_rate:.001}})}})}function ew(e,t){if(!e||!t)return e||t;var i=a(a({},e),t);return i.include_users=l(l([],s(e.include_users||[]),!1),s(t.include_users||[]),!1),i.rules=l(l([],s(Object.keys(e.rules||{})),!1),s(Object.keys(t.rules||{})),!1).reduce(function(i,r){var n,o;return r in i||(r in(e.rules||{})&&r in(t.rules||{})?(i[r]=a(a({},e.rules[r]),t.rules[r]),i[r].conditional_sample_rules=l(l([],s(e.rules[r].conditional_sample_rules||[]),!1),s(t.rules[r].conditional_sample_rules||[]),!1)):i[r]=(null==(n=e.rules)?void 0:n[r])||(null==(o=t.rules)?void 0:o[r])),i},{}),i}var e_=function(e,t){var i={url:"",protocol:"",domain:"",path:"",query:"",timestamp:Date.now(),sdk_version:t.version||eo,sdk_name:t.name||ea};return a(a({},e),{extra:a(a({},i),e.extra||{})})},ex=function(e){e.on("report",function(t){return e_(t,e.config())})},eE=function(e,t){var i={};return i.bid=t.bid,i.pid=t.pid,i.view_id=t.viewId,i.user_id=t.userId,i.device_id=t.deviceId,i.session_id=t.sessionId,i.release=t.release,i.env=t.env,a(a({},e),{extra:a(a({},i),e.extra||{})})},eC=function(e){e.on("beforeBuild",function(t){return eE(t,e.config())})};function eD(e){return o(e)}var eS=function(e){return{bid:"",pid:"",viewId:eT("_"),userId:eg(),deviceId:eb(),sessionId:ev(),domain:er,release:"",env:"production",sample:eu,plugins:{},transport:{get:f,post:f},useLocalConfig:!0}},eL=function(e){var t=void 0===e?{}:e,i=t.createSender,r=void 0===i?function(e){return eD({size:ef,endpoint:ek(e.domain),transport:e.transport})}:i,n=t.builder,o=void 0===n?ei:n,a=t.createDefaultConfig,s=P({validateInitConfig:eh,initConfigNormalizer:ed,userConfigNormalizer:ep,createSender:r,builder:o,createDefaultConfig:void 0===a?eS:a,createConfigManager:ey});return I(s),eC(s),ex(s),O(s),s},eB=function(e){void 0===e&&(e={});var t=eL(e);return et(t),U(t),t},eP=eB();t.BATCH_REPORT_PATH=el,t.CustomPlugin=U,t.DEFAULT_SAMPLE_CONFIG=eu,t.DEFAULT_SAMPLE_GRANULARITY=ec,t.DEFAULT_SENDER_SIZE=ef,t.InjectConfigPlugin=eC,t.InjectEnvPlugin=ex,t.REPORT_DOMAIN=er,t.SDK_NAME=ea,t.SDK_VERSION=eo,t.SETTINGS_DOMAIN=en,t.SETTINGS_PATH=es,t.addConfigToReportEvent=eE,t.addEnvToSendEvent=e_,t.builder=ei,t.createBaseClient=eB,t.createConfigManager=ey,t.createMinimalClient=eL,t.default=eP,t.getDefaultConfig=eS,t.getDefaultDeviceId=eb,t.getDefaultSessionId=ev,t.getDefaultUserId=eg,t.getReportUrl=ek,t.getServerConfig=eQ,t.getSettingsUrl=em,t.getViewId=eT,t.mergeSampleConfig=ew,t.normalizeInitConfig=ed,t.normalizeUserConfig=ep,t.parseServerConfig=eA,t.validateInitConfig=eh}),ay=function(){function e(){this.isInit=!1,this.pid="0",this.filename=""}return e.prototype.init=function(e,t,i){if(!this.isInit){var r,n,o,a,s,l=null==(r=null==i?void 0:i.commonOptions)?void 0:r.aid,u=(null==(n=null==i?void 0:i.commonOptions)?void 0:n.repoId)||(null==(o=null==i?void 0:i.commonOptions)?void 0:o.pageId),f=(null==(a=null==i?void 0:i.captchaOptions)?void 0:a.logConfig)||{},c=f.domain,d=f.uid;this.isInit=!0,this.pid="2385",this.browserSlardar=av.createBaseClient();var h={transport:{get:function(e){var i=e.url,r=e.success,n=e.fail;t(i,{withCredentials:e.withCredentials}).then(function(e){e?r(e):r({})}).catch(function(e){n(e)})},post:function(t){e(t.url,JSON.parse(t.data)).catch(function(e){})}},bid:"verify_center_cn",pid:this.pid,release:"4.0.17",useLocalConfig:!1};c&&(h.domain=c);var p=null==(s=null==i?void 0:i.commonOptions)?void 0:s.did;p&&"0"!==p&&(h.deviceId=p,h.userId=p),d&&(h.userId=d),this.browserSlardar.init(h),this.browserSlardar.context.merge({belong:"hotsdk",appId:l?String(l):"unknown",itemId:u?String(u):"0",host:window.location.host,path:decodeURIComponent(window.location.pathname)})}},e.prototype.report=function(e,t){var i=this.browserSlardar.context;t&&i.set("mark",t),this.browserSlardar.report(e),t&&i.delete("mark")},e.prototype.start=function(e){var t=this;this.browserSlardar.start(),e||(this.reportPageview(),window.__VC_LOG__REPORT__=this,window.addEventListener("error",function(e){var i;e&&"ErrorEvent"===ah(e)&&t.filename&&e.filename===t.filename&&t.reportJsError({message:e.message,stack:null==(i=e.error)?void 0:i.stack,filename:e.filename},"global-error")},!0))},e.prototype.destroy=function(){this.browserSlardar.destroy()},e.prototype.reportPageview=function(){this.report({ev_type:"pageview",payload:{pid:this.pid,source:"init"}},"slardar-init")},e.prototype.reportJsError=function(e,t){this.report({ev_type:"js_error",payload:{error:{name:"JS ERROR",message:e.message,stack:e.stack,filename:e.filename||this.filename},breadcrumbs:[]}},t)},e.prototype.reportHttp=function(e,t){this.report({ev_type:"http",payload:{api:"xhr",request:{method:e.method,url:e.url,timestamp:Date.now()-e.duration},response:{status:e.status,is_custom_error:!1,timestamp:Date.now(),timing:{duration:e.duration}},duration:e.duration}},t)},e.prototype.reportResourceError=function(e,t){this.report({ev_type:"resource_error",payload:{type:"script",url:e}},t)},e.prototype.reportResource=function(e,t){var i={entryType:"resource",name:e.url,duration:e.duration,startTime:e.startTime};try{for(var r=performance.getEntriesByType("resource"),n=0;n0))return as.reject(i.isPrefetch?f:"failed to load sdk");var n=r.shift();return f=n,t.loadScript(n,i.isPrefetch,e).catch(function(){return c(r)})};return c(u)},this.prefetchCaptchaCdn=function(){var e="",i=function(r){if(0===r.length)return as.reject(e);var n=r.pop();return e="https://".concat(n,"/obj/rc-verifycenter/rmc-captcha/").concat(t.captcha_version||"@latest","/captcha.js"),t.loadScript(e,!0).catch(function(){return i(r)})};return i(["lf-rc2.yhgfb-cn-static.com","mj.huaxiangai.com/yhgfb-cn","lf-cdn-tos.bytescm.com"])},this.loadScript=function(e,i,r){if(i)return aA(e);t.slardar.setFileName(e);var n,o=t.config,a=o.static_domain,s=o.executor,l=t.domain,u=Date.now();return(n="script"!==s||a?aA(e,{timeout:2e4}).then(function(e){if(a&&a!==l){var i=RegExp(l,"g");e=e.replace(i,a)}return aE(e,t.slardar).exports}):ax(e).then(function(){return window.verifySDK})).then(function(i){return t.slardar.reportResource({url:e,startTime:Date.now(),duration:Date.now()-u},"verifycenter-load"),window.verifySDK&&r&&(window.verifySDK.setting=r,window.verifySDK.captcha_version=t.captcha_version),i}).catch(function(i){return t.slardar.reportResourceError(e,"verifycenter-load"),as.reject(i)})},this.slardar=e.slardar}}(),aD=new aC({slardar:aQ}),aS=function(){return function(e){var t=this;this.getFp=function(){if(t.options.captchaOptions)return t.options.captchaOptions.fp},this.get=function(){return t.options};var i=e.captchaOptions;if(i){var r=ez(ez({},i),{h5_check_version:"4.0.17"});e=ez(ez({},e),{captchaOptions:r})}this.options=e}}(),aL=t2("iterator"),aB=!e7(function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,i="";return e.pathname="c%20d",t.forEach(function(e,r){t.delete("b"),i+=r+e}),tR&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[aL]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://\u0442\u0435\u0441\u0442").host||"#%D0%B1"!==new URL("http://a#\u0431").hash||"a1c3"!==i||"x"!==new URL("http://x",void 0).host}),aP=Object.assign,aM=Object.defineProperty,aI=e5([].concat),aO=!aP||e7(function(){if(e9&&1!==aP({b:1},aP(aM({},"a",{enumerable:!0,get:function(){aM(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},i=Symbol(),r="abcdefghijklmnopqrst";return e[i]=7,r.split("").forEach(function(e){t[e]=e}),7!=aP({},e)[i]||i1(aP({},t)).join("")!=r})?function(e,t){for(var i=tz(e),r=arguments.length,n=1,o=iJ,a=tn;r>n;)for(var s,l=tc(arguments[n++]),u=o?aI(i1(l),o(l)):i1(l),f=u.length,c=0;f>c;)s=u[c++],(!e9||tt(a,l,s))&&(i[s]=l[s]);return i}:aP,aR=function(e,t,i,r){try{return r?t(iA(i)[0],i[1]):t(i)}catch(t){rC(e,"throw",t)}},aN=function(e,t,i){var r=t3(t);r in e?ig(e,r,to(0,i)):e[r]=i},aH=eY.Array,aV=function(e){var t,i,r,n,o,a,s=tz(e),l=nV(this),u=arguments.length,f=u>1?arguments[1]:void 0,c=void 0!==f;c&&(f=id(f,u>2?arguments[2]:void 0));var d=r_(s),h=0;if(d&&!(this==aH&&rA(d)))for(o=(n=rE(s,d)).next,i=l?new this:[];!(r=tt(o,n)).done;h++)a=c?aR(n,f,[r.value,h],!0):r.value,aN(i,h,a);else for(t=iZ(s),i=l?new this(t):aH(t);t>h;h++)a=c?f(s[h],h):s[h],aN(i,h,a);return i.length=h,i},aF=eY.Array,aZ=Math.max,aj=function(e,t,i){for(var r=iZ(e),n=iH(t,r),o=iH(void 0===i?r:i,r),a=aF(aZ(o-n,0)),s=0;n=55296&&n<=56319&&i>1,e+=a3(e/t);e>a1*aX>>1;)e=a3(e/a1),r+=aG;return a3(r+(a1+1)*e/(e+aW))},sa=function(e){var t,i,r=[],n=(e=sr(e)).length,o=aq,a=0,s=aY;for(t=0;t=o&&ia3((az-a)/c))throw a4(a2);for(a+=(f-o)*c,o=f,t=0;taz)throw a4(a2);if(i==o){for(var d=a,h=aG;;){var p=h<=s?aU:h>=s+aX?aX:h-s;if(d0;)e[r]=e[--r];r!==o++&&(e[r]=i)}return e},sc=function(e,t,i,r){for(var n=t.length,o=i.length,a=0,s=0;a=r(t[a],i[s])?t[a++]:i[s++]:a0?arguments[0]:void 0;sk(this,new sX(e))},s$=sW.prototype;if(ny(s$,{append:function(e,t){sG(arguments.length,2);var i=sm(this);sS(i.entries,{key:rM(e),value:rM(t)}),i.updateURL()},delete:function(e){sG(arguments.length,1);for(var t=sm(this),i=t.entries,r=rM(e),n=0;nt.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,i=sm(this).entries,r=id(e,arguments.length>1?arguments[1]:void 0),n=0;n1?sJ(arguments[1]):{})}}),e8(sT)){var sK=function(e){return nx(this,sy),new sT(e,arguments.length>1?sJ(arguments[1]):{})};sy.constructor=sK,sK.prototype=sy,iy({global:!0,forced:!0},{Request:sK})}}var s0=sW,s2=sm,s1=o5.codeAt,s4=r2,s6=r1("URL"),s3=s0,s5=s2,s8=eY.URL,s7=eY.TypeError,s9=eY.parseInt,le=Math.floor,lt=Math.pow,li=e5("".charAt),lr=e5(/./.exec),ln=e5([].join),lo=e5(1..toString),la=e5([].pop),ls=e5([].push),ll=e5("".replace),lu=e5([].shift),lf=e5("".split),lc=e5("".slice),ld=e5("".toLowerCase),lh=e5([].unshift),lp="Invalid authority",lA="Invalid scheme",lk="Invalid host",lm="Invalid port",lg=/[a-z]/i,lb=/[\d+-.a-z]/i,lT=/\d/,lv=/^0x/i,ly=/^[0-7]+$/,lQ=/^\d+$/,lw=/^[\da-f]+$/i,l_=/[\0\t\n\r #%/:<>?@[\\\]^|]/,lx=/[\0\t\n\r #/:<>?@[\\\]^|]/,lE=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,lC=/[\t\n\r]/g,lD=function(e){var t,i,r,n,o,a,s,l=lf(e,".");if(l.length&&""==l[l.length-1]&&l.length--,(t=l.length)>4)return e;for(r=0,i=[];r1&&"0"==li(n,0)&&(o=lr(lv,n)?16:8,n=lc(n,8==o?1:2)),""===n)a=0;else{if(!lr(10==o?lQ:8==o?ly:lw,n))return e;a=s9(n,o)}ls(i,a)}for(r=0;r=lt(256,5-t))return null}else if(a>255)return null;for(r=0,s=la(i);r6))return;for(r=0;d();){if(n=null,r>0)if("."!=d()||!(r<4))return;else c++;if(!lr(lT,d()))return;for(;lr(lT,d());){if(o=s9(d(),10),null===n)n=o;else{if(0==n)return;n=10*n+o}if(n>255)return;c++}l[u]=256*l[u]+n,(2==++r||4==r)&&u++}if(4!=r)return;break}if(":"==d()){if(c++,!d())return}else if(d())return;l[u++]=t}if(null!==f)for(a=u-f,u=7;0!=u&&a>0;)s=l[u],l[u--]=l[f+a-1],l[f+--a]=s;else if(8!=u)return;return l},lL=function(e){for(var t=null,i=1,r=null,n=0,o=0;o<8;o++)0!==e[o]?(n>i&&(t=r,i=n),r=null,n=0):(null===r&&(r=o),++n);return n>i&&(t=r,i=n),t},lB=function(e){var t,i,r,n;if("number"==typeof e){for(i=0,t=[];i<4;i++)lh(t,e%256),e=le(e/256);return ln(t,".")}if("object"==typeof e){for(i=0,t="",r=lL(e);i<8;i++)(!n||0!==e[i])&&(n&&(n=!1),r===i?(t+=i?":":"::",n=!0):(t+=lo(e[i],16),i<7&&(t+=":")));return"["+t+"]"}return e},lP={},lM=aO({},lP,{" ":1,'"':1,"<":1,">":1,"`":1}),lI=aO({},lM,{"#":1,"?":1,"{":1,"}":1}),lO=aO({},lI,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),lR=function(e,t){var i=s1(e,0);return i>32&&i<127&&!tU(t,e)?e:encodeURIComponent(e)},lN={ftp:21,file:null,http:80,https:443,ws:80,wss:443},lH=function(e,t){var i;return 2==e.length&&lr(lg,li(e,0))&&(":"==(i=li(e,1))||!t&&"|"==i)},lV=function(e){var t;return e.length>1&&lH(lc(e,0,2))&&(2==e.length||"/"===(t=li(e,2))||"\\"===t||"?"===t||"#"===t)},lF=function(e){return"."===e||"%2e"===ld(e)},lZ=function(e){return".."===(e=ld(e))||"%2e."===e||".%2e"===e||"%2e%2e"===e},lj={},lz={},lG={},lU={},lX={},lW={},l$={},lY={},lq={},lJ={},lK={},l0={},l2={},l1={},l4={},l6={},l3={},l5={},l8={},l7={},l9={},ue=function(e,t,i){var r,n,o,a=rM(e);if(t){if(n=this.parse(a))throw s7(n);this.searchParams=null}else{if(void 0!==i&&(r=new ue(i,!0)),n=this.parse(a,null,r))throw s7(n);(o=s5(new s3)).bindURL(this),this.searchParams=o}};ue.prototype={type:"URL",parse:function(e,t,i){var r,n,o,a,s=this,l=t||lj,u=0,f="",c=!1,d=!1,h=!1;for(e=rM(e),t||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,e=ll(e,lE,"")),r=aV(e=ll(e,lC,""));u<=r.length;){switch(n=r[u],l){case lj:if(n&&lr(lg,n))f+=ld(n),l=lz;else{if(t)return lA;l=lG;continue}break;case lz:if(n&&(lr(lb,n)||"+"==n||"-"==n||"."==n))f+=ld(n);else if(":"==n){if(t&&(s.isSpecial()!=tU(lN,f)||"file"==f&&(s.includesCredentials()||null!==s.port)||"file"==s.scheme&&!s.host))return;if(s.scheme=f,t){s.isSpecial()&&lN[s.scheme]==s.port&&(s.port=null);return}f="","file"==s.scheme?l=l1:s.isSpecial()&&i&&i.scheme==s.scheme?l=lU:s.isSpecial()?l=lY:"/"==r[u+1]?(l=lX,u++):(s.cannotBeABaseURL=!0,ls(s.path,""),l=l8)}else{if(t)return lA;f="",l=lG,u=0;continue}break;case lG:if(!i||i.cannotBeABaseURL&&"#"!=n)return lA;if(i.cannotBeABaseURL&&"#"==n){s.scheme=i.scheme,s.path=aj(i.path),s.query=i.query,s.fragment="",s.cannotBeABaseURL=!0,l=l9;break}l="file"==i.scheme?l1:lW;continue;case lU:if("/"==n&&"/"==r[u+1])l=lq,u++;else{l=lW;continue}break;case lX:if("/"==n){l=lJ;break}l=l5;continue;case lW:if(s.scheme=i.scheme,n==L)s.username=i.username,s.password=i.password,s.host=i.host,s.port=i.port,s.path=aj(i.path),s.query=i.query;else if("/"==n||"\\"==n&&s.isSpecial())l=l$;else if("?"==n)s.username=i.username,s.password=i.password,s.host=i.host,s.port=i.port,s.path=aj(i.path),s.query="",l=l7;else if("#"==n)s.username=i.username,s.password=i.password,s.host=i.host,s.port=i.port,s.path=aj(i.path),s.query=i.query,s.fragment="",l=l9;else{s.username=i.username,s.password=i.password,s.host=i.host,s.port=i.port,s.path=aj(i.path),s.path.length--,l=l5;continue}break;case l$:if(s.isSpecial()&&("/"==n||"\\"==n))l=lq;else if("/"==n)l=lJ;else{s.username=i.username,s.password=i.password,s.host=i.host,s.port=i.port,l=l5;continue}break;case lY:if(l=lq,"/"!=n||"/"!=li(f,u+1))continue;u++;break;case lq:if("/"!=n&&"\\"!=n){l=lJ;continue}break;case lJ:if("@"==n){c&&(f="%40"+f),c=!0,o=aV(f);for(var p=0;p65535)return lm;s.port=s.isSpecial()&&m===lN[s.scheme]?null:m,f=""}if(t)return;l=l3;continue}break;case l1:if(s.scheme="file","/"==n||"\\"==n)l=l4;else if(i&&"file"==i.scheme)if(n==L)s.host=i.host,s.path=aj(i.path),s.query=i.query;else if("?"==n)s.host=i.host,s.path=aj(i.path),s.query="",l=l7;else if("#"==n)s.host=i.host,s.path=aj(i.path),s.query=i.query,s.fragment="",l=l9;else{lV(ln(aj(r,u),""))||(s.host=i.host,s.path=aj(i.path),s.shortenPath()),l=l5;continue}else{l=l5;continue}break;case l4:if("/"==n||"\\"==n){l=l6;break}i&&"file"==i.scheme&&!lV(ln(aj(r,u),""))&&(lH(i.path[0],!0)?ls(s.path,i.path[0]):s.host=i.host),l=l5;continue;case l6:if(n==L||"/"==n||"\\"==n||"?"==n||"#"==n){if(!t&&lH(f))l=l5;else if(""==f){if(s.host="",t)return;l=l3}else{if(a=s.parseHost(f))return a;if("localhost"==s.host&&(s.host=""),t)return;f="",l=l3}continue}f+=n;break;case l3:if(s.isSpecial()){if(l=l5,"/"!=n&&"\\"!=n)continue}else if(t||"?"!=n)if(t||"#"!=n){if(n!=L&&(l=l5,"/"!=n))continue}else s.fragment="",l=l9;else s.query="",l=l7;break;case l5:if(n==L||"/"==n||"\\"==n&&s.isSpecial()||!t&&("?"==n||"#"==n)){if(lZ(f)?(s.shortenPath(),"/"==n||"\\"==n&&s.isSpecial()||ls(s.path,"")):lF(f)?"/"==n||"\\"==n&&s.isSpecial()||ls(s.path,""):("file"==s.scheme&&!s.path.length&&lH(f)&&(s.host&&(s.host=""),f=li(f,0)+":"),ls(s.path,f)),f="","file"==s.scheme&&(n==L||"?"==n||"#"==n))for(;s.path.length>1&&""===s.path[0];)lu(s.path);"?"==n?(s.query="",l=l7):"#"==n&&(s.fragment="",l=l9)}else f+=lR(n,lI);break;case l8:"?"==n?(s.query="",l=l7):"#"==n?(s.fragment="",l=l9):n!=L&&(s.path[0]+=lR(n,lP));break;case l7:t||"#"!=n?n!=L&&("'"==n&&s.isSpecial()?s.query+="%27":"#"==n?s.query+="%23":s.query+=lR(n,lP)):(s.fragment="",l=l9);break;case l9:n!=L&&(s.fragment+=lR(n,lM))}u++}},parseHost:function(e){var t,i,r;if("["==li(e,0)){if("]"!=li(e,e.length-1)||!(t=lS(lc(e,1,-1))))return lk;this.host=t}else if(this.isSpecial()){if(lr(l_,e=ss(e))||null===(t=lD(e)))return lk;this.host=t}else{if(lr(lx,e))return lk;for(r=0,t="",i=aV(e);r1?arguments[1]:void 0,r=s4(t,new ue(e,!1,i));e9||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},ui=ut.prototype,ur=function(e,t){return{get:function(){return s6(this)[e]()},set:t&&function(e){return s6(this)[t](e)},configurable:!0,enumerable:!0}};if(e9&&i4(ui,{href:ur("serialize","setHref"),origin:ur("getOrigin"),protocol:ur("getProtocol","setProtocol"),username:ur("getUsername","setUsername"),password:ur("getPassword","setPassword"),host:ur("getHost","setHost"),hostname:ur("getHostname","setHostname"),port:ur("getPort","setPort"),pathname:ur("getPathname","setPathname"),search:ur("getSearch","setSearch"),searchParams:ur("getSearchParams"),hash:ur("getHash","setHash")}),r7(ui,"toJSON",function(){return s6(this).serialize()},{enumerable:!0}),r7(ui,"toString",function(){return s6(this).serialize()},{enumerable:!0}),s8){var un=s8.createObjectURL,uo=s8.revokeObjectURL;un&&r7(ut,"createObjectURL",id(un,s8)),uo&&r7(ut,"revokeObjectURL",id(uo,s8))}na(ut,"URL"),iy({global:!0,forced:!aB,sham:!e9},{URL:ut});var ua=tk.URL,us=function(e){if(!(e&&e.trim()))return!1;try{return btoa(atob(e))===e}catch(e){return!1}},ul=function(e){return e.map(function(e){return new RegExp(e)})},uu=function(e){if(Array.isArray(e))e={include:e,exclude:[]};else{var t=e.include,i=e.exclude;e={include:t||[],exclude:i||[]}}if(window._vc_intercepted_pathList){var r=window._vc_intercepted_pathList,t=r.include,i=r.exclude;e={include:eG(eG([],t,!0),e.include,!0),exclude:eG(eG([],i,!0),e.exclude,!0)}}window._vc_intercepted_pathList=e},uf=function(e){var t=e;try{t=new ua(e,window.location.href).pathname}catch(e){}var i=window._vc_intercepted_pathList,r=i.include,n=i.exclude,o=ul(r);return!ul(n).some(function(e){return e.test(t)})&&o.some(function(e){return e.test(t)})},uc=function(e,t,i,r){e.render({verify_data:t,captchaOptions:{successCb:function(){i()},closeCb:function(){r()}},secondVerifyWebOptions:{callBack:function(){i()},closeCallBack:function(){r()}}})},ud=function(e,t,i){var r=i.getFp(),n=function(t){e.getResponseHeader=function(){return t.getResponseHeader.apply(t,arguments)},e.getAllResponseHeaders=function(){return t.getAllResponseHeaders.apply(t,arguments)};for(var i=["readyState","status","statusText","response","responseText","responseType","responseURL","responseXML"],r=function(i){Object.defineProperty(e,i,{get:function(){return t[i]},enumerable:!0})},n=0,o=i;n=0)t=e.getResponseHeader("bdturing-verify");else if(r.indexOf("x-vc-bdturing-parameters:")>=0){var n=e.getResponseHeader("x-vc-bdturing-parameters");t=n&&us(n)?atob(n):n}}catch(e){}t?uc(i,t,l,s):s()},f={error:[]},c=function(){var t=e.onreadystatechange,i=e.onload,r=e.onloadend,n=e.onerror;t&&(e.onreadystatechange=function(){var i=arguments,r=function(){t.apply(e,i)};!a&&e.readyState===XMLHttpRequest.DONE&&e.status>=200&&e.status<300?o.push(r):r()}),e.onload=function(){var t=arguments,r=function(){i&&i.apply(e,t)};e.status>=200&&e.status<300?(a||o.push(r),u()):r()},e.onerror=function(t){n&&n.call(e,t),f.error.forEach(function(i){i.call(e,t)})},r&&(e.onloadend=function(){var t=arguments,i=function(){r.apply(e,t)};!a&&e.status>=200&&e.status<300?o.push(i):i()})},d={};t.forEach(function(t){var i,n,s=[].slice.call(t.arguments);switch(t.fnName){case"addEventListener":case"removeEventListener":var l=["readystatechange","load","loadend"],u=s[0];l.indexOf(u)>=0?"addEventListener"===t.fnName?(d[u]||(d[u]=[]),null==(i=d[u])||i.push({origin:t.origin,args:s})):d[u]&&(d[u]=null==(n=d[u])?void 0:n.filter(function(e){return e.args[1]!==s[1]})):f[u]?f[u].push(s[1]):t.origin.apply(e,s);break;case"open":var h=s[1],p=h.indexOf("?")>=0,A="verifyFp=".concat(r,"&fp=").concat(r);p?s[1]="".concat(h,"&").concat(A):s[1]="".concat(h,"?").concat(A),t.origin.apply(e,s);break;case"send":Object.keys(d).forEach(function(t){var i;null==(i=d[t])||i.forEach(function(i){var r=i.origin,n=i.args,s=n[1];n[1]=function(){var i=arguments;switch(t){case"readystatechange":!a&&e.readyState===XMLHttpRequest.DONE&&e.status>=200&&e.status<300?o.push(function(){s.apply(e,i)}):s.apply(e,arguments);break;case"load":case"loadend":!a&&e.status>=200&&e.status<300?o.push(function(){s.apply(e,i)}):s.apply(e,arguments)}},r.apply(e,n)})}),c(),delete e._vc_status,delete e._vc_actionList,t.origin.apply(e,s);break;default:t.origin.apply(e,s)}})},uh=function(e,t){var i=window.XMLHttpRequest.prototype,r=i.open,n=i.setRequestHeader,o=i.overrideMimeType,a=i.send,s=i.addEventListener,l=i.removeEventListener;i._vc_intercepted||(i._vc_intercepted=!0,i.open=function(t,i){try{var n="string"==typeof i?i:i.toString();if(!e(n))return r.apply(this,arguments);this._vc_status=1,this._vc_actionList=[],this._vc_actionList.push({origin:r,fnName:"open",arguments:arguments})}catch(e){return r.apply(this,arguments)}},i.overrideMimeType=function(){if(1!==this._vc_status)return o.apply(this,arguments);this._vc_actionList.push({origin:o,fnName:"overrideMimeType",arguments:arguments})},i.setRequestHeader=function(){if(1!==this._vc_status)return n.apply(this,arguments);this._vc_actionList.push({origin:n,fnName:"setRequestHeader",arguments:arguments})},i.addEventListener=function(){if(1!==this._vc_status)return s.apply(this,arguments);this._vc_actionList.push({origin:s,fnName:"addEventListener",arguments:arguments})},i.removeEventListener=function(){if(1!==this._vc_status)return l.apply(this,arguments);this._vc_actionList.push({origin:l,fnName:"removeEventListener",arguments:arguments})},i.send=function(){var e=this;if(1!==this._vc_status)return a.apply(this,arguments);this._vc_actionList.push({origin:a,fnName:"send",arguments:arguments});var i=function(){ud(e,e._vc_actionList,t)};t.xhrAsyncSend?Promise.resolve().then(i).catch(function(){return null}):i()})},up=function(e,t){if(!window._vc_intercepted_fetch){window._vc_intercepted_fetch=!0;var i=window.fetch;window.fetch=function(){for(var r,n=[],o=0;o=0,l="verifyFp=".concat(a,"&fp=").concat(a);r=s?"".concat(r,"&").concat(l):"".concat(r,"?").concat(l);var u=eG([],n,!0);u[0]instanceof ua?u[0].search=new ua(r).search:u[0]instanceof Request||(u[0]=r),i.apply(void 0,u).then(function(i){var r=function(){e(window.fetch.apply(window,n))},o=function(){e(i)};if(i.ok)try{var a=null;i.headers.forEach(function(e,t){"bdturing-verify"===t?a=e:"x-vc-bdturing-parameters"===t&&(a=e&&us(e)?atob(e):e)}),a?uc(t,a,r,o):o()}catch(e){o()}else o()}).catch(o)}):i.apply(void 0,n)}}},uA=function(e,t){uu(e),uh(uf,t),up(uf,t)},uk=function(e,t){(t||aD).set({executor:e.executor,static_domain:e.static_domain,setting_host:e.settingHost})},um=function(e,t,i,r){var n,o,a=(null==r?void 0:r.slardar)||aQ,s=(null==r?void 0:r.loader)||aD,l=null==r?void 0:r.options;a.init(ak,aA,e),a.start(e.isPrefetch);var u=(null==(n=e.captchaOptions)?void 0:n.hostConfig)||{},f=u.setting,c=u.static_domain,d=u.rmc_version,h=(null==(o=window.verifySDK)?void 0:o.initVerifyOptions)&&!e.isPrefetch?as.resolve(window.verifySDK):s.load({commonOptions:e.commonOptions||{},setting_host:f,static_domain:c,rmc_version:d,isPrefetch:e.isPrefetch,slardar:a});if(e.isPrefetch)return h.then(function(){return{}});P=h,l||(B=new aS(e));var p=e.interceptPathList,A=e.xhrAsyncSend;return p&&uA(p,{getFp:ub,render:ug,xhrAsyncSend:A}),P.then(function(e){var i=(l||B).get();return(i.commonOptions&&s.scene_level&&(!i.commonOptions.pageId&&!i.commonOptions.repoId,i.commonOptions.scene_level=s.scene_level,a.setContext("scene_level",s.scene_level)),i.captchaOptions&&!i.captchaOptions.fp&&(i.captchaOptions.fp=aT()),l)?(t&&t(e),e.init(i)):((null==r?void 0:r.isInstance)?e=e.initVerifyCenter(i):e.initVerifyOptions(i),t)?void t(e):e}).catch(function(e){return i&&(null==i||i(e)),as.reject(e)})},ug=function(e){P.then(function(t){t.autoRender(e)}).catch(function(){})},ub=function(){return(null==B?void 0:B.getFp())||aT()},uT=function(){function e(e,t){this.verifyOptions=e,this.callBackObj=t,this.slardar=new ay,this.loader=new aC({slardar:this.slardar})}return e.prototype.config=function(e){return uk(e,this.loader),this},e.prototype.getVersion=function(){var e,t,i,r,n=this;return this.loader.loadSetting({setting_host:null==(i=null==(t=null==(e=this.verifyOptions)?void 0:e.captchaOptions)?void 0:t.hostConfig)?void 0:i.setting,commonOptions:(null==(r=this.verifyOptions)?void 0:r.commonOptions)||{}}).then(function(e){var t,i,r,o=null==(i=null==(t=null==e?void 0:e.verify)?void 0:t.js_v2)?void 0:i.cn;return{sec_sdk_build_version:"4.0.17",rmc_version:(null==(r=null==o?void 0:o.match(/\/([\d.]+)\//))?void 0:r[1])||"",captcha_version:n.loader.captcha_version}})},e.prototype.init=function(e,t){if(!(e=e||this.verifyOptions))throw Error("[sec_sdk_build] \u8BF7\u5148\u6267\u884C\u53C2\u6570\u521D\u59CB\u5316\u64CD\u4F5C");var i=t||this.callBackObj||{},r=i.errorCb,n=i.successCb;return this.options=new aS(e),this.instancePromise=um(e,n,r,{slardar:this.slardar,loader:this.loader,options:this.options}).catch(function(e){return as.reject(e)}),this},e.prototype.getFp=function(){var e=ub();return as.resolve(e)},e.prototype.getFpSync=function(){var e;return(null==(e=this.options)?void 0:e.getFp())||aT()},e.prototype.render=function(e){return this.instancePromise||this.init(this.verifyOptions,this.callBackObj),this.instancePromise.then(function(t){t.autoRender(e)}).catch(function(e){return as.reject(e)})},e.prototype.prefetch=function(e,t){uv(e,t,{loader:this.loader,slardar:this.slardar})},e.config=function(e){uk(e)},e.init=function(e,t,i){return um(e,t,i,{isInstance:!0})},e}();function uv(e,t,i){var r=(null==i?void 0:i.loader)||aD,n=(null==i?void 0:i.slardar)||aQ;function o(e){n.reportJsError({filename:e.filename,message:e.message,stack:""},"prefetch-error"),"function"==typeof(null==t?void 0:t.errorCb)&&t.errorCb(e)}um(ez(ez({},e),{isPrefetch:!0}),void 0,void 0,i).then(function(){return r.prefetchCaptchaCdn().then(function(){"function"==typeof(null==t?void 0:t.successCb)&&t.successCb()}).catch(function(e){o({filename:e,name:"render_prefetch_err",message:"\u9884\u52A0\u8F7D\u9A8C\u8BC1\u7801\u8D44\u6E90\u5931\u8D25"})}),null}).catch(function(e){o({filename:e,name:"init_prefetch_err",message:"\u9884\u52A0\u8F7D\u521D\u59CB\u5316\u8D44\u6E90\u5931\u8D25"})})}function uy(e){return Object.keys(e).map(t=>{let i=e[t];return"object"==typeof i?`${encodeURIComponent(t)}=${encodeURIComponent(JSON.stringify(i))}`:`${encodeURIComponent(t)}=${encodeURIComponent(i)}`}).join("&")}function uQ(e){if(!e)return{};let t={};return e.split("&").forEach(e=>{let[i,r]=e.split("=");t[i]=r}),t}let uw=e=>{let t,i=e.toString(),r=[];for(let e=0;e>6),r.push(128|63&t)):(2048<=t&&t<=55295||57344<=t&&t<=65535)&&(r.push(224|15&t>>12),r.push(128|63&t>>6),r.push(128|63&t));for(let e=0;e{let t=[],i=[];if(void 0===e)return"";i=uw(e);for(let e=0,{length:r}=i;e{let i,r=0,n=0;if("object"!=typeof e||!t||t.length<=0)return e;let o={mix_mode:r,...e};for(let e=0,{length:a}=t;e{let t="0123456789abcdefghijklmnopqrstuvwxyz",i="";for(let r=e;r>0;--r)i+=t[Math.floor(Math.random()*t.length)];return i},uC=new uT,uD={aid:0,iid:"0",did:"0"},uS={sideSlide:!1,lang:"zh",showMode:"mask",region:"cn",app_name:""},uL=[98,111,101,45,118,101,114,105,102,121,46,98,121,116,101,100,97,110,99,101,46,110,101,116].map(e=>String.fromCharCode(e)).join(""),uB=e=>{let{isBoe:t=!1,captchaOptions:i={},secondVerifyWebOptions:r}=e,n=t?`//${uL}`:void 0,o={commonOptions:{repoId:579047,...uD,aid:e.aid,did:e.did?String(e.did):"0",iid:e.iid?String(e.iid):"0"},captchaOptions:{...uS,lang:e.language||"zh",showMode:e.captchaShowMode||"mask",app_name:e.appName||"",host:e.captchaHost||n||"",successCb:()=>{},...i},secondVerifyWebOptions:{callBack:()=>{},scene:(null==r?void 0:r.scene)||"",...r}};return e.captchaConfig&&"function"==typeof uC.config&&uC.config(e.captchaConfig),uC.init(o,{successCb:()=>{},errorCb:()=>{}}),uC.getVersion()},uP={hasInit:!1,initParams:void 0,init:async e=>{if(uP.hasInit)return uC.getVersion();let{request:t,...i}=e;return n=t,uB(i),uP.initParams=i,uP.hasInit=!0,uC.getVersion()},show:e=>{let{requestConfig:t,verifyData:i,requestData:r}=e,o={};try{o=JSON.parse(i)}catch(e){}return new Promise((e,i)=>{uC.render({verify_data:o,captchaOptions:{successCb:async()=>{let r=await uC.getFp();null==n||n({...t,params:{...t.params,isResend:!0,fp:r,verifyFp:r}}).then(t=>{e(t)}).catch(e=>{i(e)})},closeCb:()=>{let{closeCaptchaCallback:e}=uP.initParams||{};"function"==typeof e&&(null==e||e()),i({description:""})}},secondVerifyWebOptions:{scene:"4",callBack:async()=>{let o=t.data||"";r&&(o=uy({...uQ(o),...r})),null==n||n({...t,params:{...t.params,isResend:!0},data:o}).then(t=>{e(t)}).catch(e=>{i(e)})},closeCallBack:()=>{i({description:"SECOND_VALID",requestData:r})}}})})},getFp:()=>{if(o)return Promise.resolve(o);try{var e;let t=uP.initParams;if(null==t||null==(e=t.captchaOptions)?void 0:e.fp){let{fp:e}=t.captchaOptions;return e}}catch(e){}return Promise.race([new Promise(e=>{setTimeout(()=>e(""),1e3)}),uC.getFp()]).then(e=>(o=e,e))}};function uM(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class uI extends eQ{async init(){if(this.request.interceptors.response.use(e=>e,async e=>this.processPluginWithLog(this.processPlugin)(e)),!this.hasInit){this.hasInit=!0;let e=await uP.init({...this.initProps,request:this.request});this.sec_sdk_build_version=e.sec_sdk_build_version||"0",this.captcha_version=e.captcha_version||"0"}this.request.interceptors.request.use(async e=>{let t={p_ca:this.sec_sdk_build_version,p_ca_real:this.captcha_version};return e.params={...e.params||{},...t||{}},Promise.resolve(e)})}async processPlugin(e){var t,i,r,n;let{originConfig:o={}}=e;try{let t=uQ(null==o?void 0:o.data);if((null==o||null==(r=o.params)?void 0:r.skip_sdk_error_handler)||(null==t?void 0:t.skip_sdk_error_handler)==="true")return Promise.reject(e)}catch(e){}let a=(null==e?void 0:e.verify_center_decision_conf)||(null==e?void 0:e.verify_center_secondary_decision_conf),s=null==e?void 0:e.error_code;if(2046===s&&"function"==typeof(null==(i=this.initProps)||null==(t=i.secondVerifyWebOptions)?void 0:t.onValid))return null==(n=this.initProps.secondVerifyWebOptions)||n.onValid(e),Promise.reject({description:"SECOND_VALID"});if(a){let t=null==e?void 0:e.sms_code_key,i=2046===s&&t?{sms_code_key:t}:void 0;return Promise.resolve(uP.show({verifyData:a,requestConfig:o,requestData:i})).then(e=>Promise.resolve(e)).catch(e=>Promise.reject(e))}return Promise.reject(e)}constructor(e){super(e),uM(this,"sec_sdk_build_version","0"),uM(this,"captcha_version","0"),this.processPlugin=this.processPlugin.bind(this),this.init=this.init.bind(this)}}let uO=uI,uR=(e,t,i)=>{let{plugins:r=[]}=e;Array.isArray(r)&&r.forEach(r=>{new r({init:e,request:t,type:i}).init()}),[ex,eS,uO,ej].forEach(r=>{new r({init:e,request:t,type:i}).init()})};var uN=i(72699);let uH="5.1.2",uV={web:{respHandler:e=>(null==e?void 0:e.message)==="success",successCallBack:e=>null==e?void 0:e.data,failCallBack:e=>null==e?void 0:e.data},sso:{respHandler:e=>(null==e?void 0:e.error_code)===0||(null==e?void 0:e.message)==="success",successCallBack:e=>(null==e?void 0:e.message)==="success"?e.data:e,failCallBack:e=>e},app:{},auth:{respHandler:e=>(null==e?void 0:e.status_code)===0,successCallBack:e=>e.data,failCallBack:e=>e}},uF=(e,t)=>{var i,r,n,o,a,s,l,u;let{account_sdk_source:f}=e.config.params,c=uV[f],d=(null==c?void 0:c.respHandler)||(e=>(null==e?void 0:e.message)==="success"),h=(null==c?void 0:c.successCallBack)||(e=>null==e?void 0:e.data),p=(null==c?void 0:c.failCallBack)||(e=>null==e?void 0:e.data),A=(null==e||null==(i=e.config)?void 0:i.url)||"",k=(null==e||null==(r=e.headers)?void 0:r["x-tt-logid"])||"",m=(null==e?void 0:e.data)||{},g=(null==t?void 0:t.printLog)||!1,b=null==e||null==(n=e.config)?void 0:n.startTime;if("string"==typeof m)try{m=JSON.parse(m)}catch(e){}return d(m)?(g&&N(`call ${A} result >>>>`,{"%cSUCCESS":h(m),"%cLogid":k}),Promise.resolve({...h(m)||{},log_id:k,rawData:e,respHeader:null==e?void 0:e.headers,middlewareHandlerLog:[...(null==e||null==(u=e.config)?void 0:u.middlewareHandlerLog)||[],{name:"request",time:Date.now()-b,endTime:Date.now(),startTime:b,errorCode:0,logid:k}]})):(g&&N(`call ${A} result >>>>`,{"%cERROR":p(m),"%cLogid":k}),Promise.reject({...p(m)||{},log_id:k,originConfig:{...null==e?void 0:e.config,middlewareHandlerLog:[...(null==e||null==(o=e.config)?void 0:o.middlewareHandlerLog)||[],{name:"request",time:Date.now()-b,endTime:Date.now(),startTime:b,errorCode:(null==m||null==(a=m.data)?void 0:a.error_code)||(null==m?void 0:m.error_code)||"-998",logid:k}]},middlewareHandlerLog:[...(null==e||null==(s=e.config)?void 0:s.middlewareHandlerLog)||[],{name:"request",time:Date.now()-b,endTime:Date.now(),startTime:b,errorCode:(null==m||null==(l=m.data)?void 0:l.error_code)||(null==m?void 0:m.error_code)||"-998",logid:k}],rawData:e,respHeader:null==e?void 0:e.headers}))},uZ=(e,t)=>{var i,r,n,o,a,s,l;let u=(null==e||null==(i=e.config)?void 0:i.url)||"",f=(null==e||null==(n=e.response)||null==(r=n.headers)?void 0:r["x-tt-logid"])||"unknown",c=(null==t?void 0:t.printLog)||!1,d=null==e||null==(o=e.config)?void 0:o.startTime;return c&&N(`call ${u} result >>>>`,{"%cERROR":"HTTP ERROR","%cLogid":f}),Promise.reject({error_code:e.code,description:e.message,is_network_error:!0,log_id:f,originConfig:{...null==e?void 0:e.config,middlewareHandlerLog:[...(null==e||null==(a=e.config)?void 0:a.middlewareHandlerLog)||[],{name:"request",time:Date.now()-d,endTime:Date.now(),startTime:d,errorCode:e.code||"-999",logid:f}]},middlewareHandlerLog:[...(null==e||null==(s=e.config)?void 0:s.middlewareHandlerLog)||[],{name:"request",time:Date.now()-d,endTime:Date.now(),startTime:d,errorCode:e.code||"-999",logid:f}],rawData:e,respHeader:null==e||null==(l=e.response)?void 0:l.headers})},uj=async(e,t)=>{var i,r;let n=(null==t?void 0:t.printLog)||!1,o=(null==t?void 0:t.appKey)||"",a=null==e?void 0:e.url,s=(null==e?void 0:e.method)||"get",l=(null==e?void 0:e.data)||{},u=(null==e?void 0:e.params)||{},f=Object.assign({"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json, text/javascript"},{"x-tt-passport-csrf-token":O("passport_csrf_token")||O("passport_csrf_token_default")||""},e.headers||{});if(e.headers=f,n&&N(`${s} ${a} >>>>`,{"%cdata >>>>":l,"%cparams >>>>":u}),(null==(i=e.params)?void 0:i.isResend)||(null==(r=e.params)?void 0:r.auto_retry_req)){let{isResend:t,...i}=e.params;return{...e,params:i,startTime:Date.now()}}let c={};if(Object.keys(l).filter(e=>void 0!==l[e]).forEach(e=>{c[e]=l[e]}),["post","POST"].includes(s)){let t={...(null==e?void 0:e.params)||{}},i=j(t,c,o);e.params={...t,...i},R(l)?e.data=l:e.data=H(c)}if(["get","GET"].includes(s)){let t={...c,...e.params},i=j(t,{},o);e.params={...t,...i}}return{...e,startTime:Date.now()}},uz=async(e,t)=>{var i;let r=(null==e?void 0:e.params)||{},{aid:n,language:o="zh",generalParams:a={},getGeneralParams:s}=t,l={};if(s)try{l=await s()}catch(e){}return e.params={passport_jssdk_version:uH,passport_jssdk_type:"lite",is_from_ttaccountsdk:1,aid:n,language:o,account_app_language:null==(i=navigator)?void 0:i.language,...r,...a,...l},Promise.resolve(e)},uG=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/",r=arguments.length>3?arguments[3]:void 0;document.cookie=`${e}=${t};path=${i};domain=${r||window.location.hostname}`},uU=()=>{try{let e="",t=document.location.hostname,i=t.split(".");if(/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/.test(t)||"localhost"===t){let e=document.location.hostname,t=/^.*?\b\.\b/;return e.replace(t,"")}let r=[];for(r.unshift(i.pop());r.length<2;)r.unshift(i.pop()),e=r.join(".");return e||document.location.hostname}catch(e){return document.location.hostname}};function uX(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class uW{getUUID(){let e=new Date().getTime(),t="undefined"!=typeof performance&&performance.now&&1e3*performance.now()||0;return"xxxxxxxx".replace(/[xy]/g,i=>{let r=16*Math.random();return e>0?(r=(e+r)%16|0,e=Math.floor(e/16)):(r=(t+r)%16|0,t=Math.floor(t/16)),("x"===i?r:3&r|8).toString(16)})}getTraceId(){return this.getUUID().replace(/-/g,"")}start(){this.enable=!0}stop(){this.enable=!1}constructor(e){uX(this,"traceID",void 0),uX(this,"enable",!1),this.traceID=this.getTraceId(),this.enable=!!(null==e?void 0:e.autoTrace)}}let u$=e=>t=>((null==e?void 0:e.enable)?(uG("biz_trace_id",e.traceID||"","/",uU()),t.headers={...t.headers||{},"x-tt-passport-trace-id":e.traceID||""},t.params={...t.params||{},biz_trace_id:e.traceID||""}):uG("biz_trace_id","","/",uU()),t),uY=function(e,t){let{host:i,isBoe:r,axiosConfig:n,requestInterceptors:o,responseInterceptors:a}=e,s=uN.Z.create({withCredentials:!0,...n,xsrfCookieName:"passport_csrf_token",xsrfHeaderName:"x-tt-passport-csrf-token",baseURL:i||window&&`${r?window.location.protocol:"https:"}//${window.location.hostname}`});return s.interceptors.request.use(t=>uj(t,e),void 0),s.interceptors.request.use(t=>uz(t,e),void 0),s.interceptors.request.use(u$(t)),o&&Array.isArray(o)&&o.forEach(e=>{s.interceptors.request.use(t=>e(t),void 0)}),a&&Array.isArray(a)&&a.forEach(e=>{s.interceptors.response.use(t=>e(t),t=>e(t))}),s.interceptors.response.use(t=>uF(t,e),t=>uZ(t,e)),s};function uq(e){var t,i;let r=(null==e||null==(i=e.data)||null==(t=i.data)?void 0:t.response)||(null==e?void 0:e.data)||{};if("string"==typeof r)try{r=JSON.parse(r)}catch(e){}return r}let uJ=(e,t)=>{var i,r;let n=(null==e||null==(i=e.config)?void 0:i.url)||"",o=(null==e||null==(r=e.headers)?void 0:r["x-tt-logid"])||"",a=uq(e),s=(null==t?void 0:t.printLog)||!1;return(null==a?void 0:a.message)==="success"?(s&&N(`call ${n} result >>>>`,{SUCCESS:a.data,Logid:o},!1),Promise.resolve({...a.data||{},log_id:o})):(s&&N(`call ${n} result >>>>`,{ERROR:a.data,Logid:o},!1),Promise.reject({...a.data,log_id:o,originConfig:e.config}))};var uK=i(66966),u0=i.n(uK);let u2=e=>function(t){let{baseURL:i,url:r,method:n="GET",params:o={},data:a={}}=t,s=null==e?void 0:e.fetch,l=(null==e?void 0:e.printLog)||!1,u=u0().isValid(r)?r:i+r;return l&&N(`${n} ${u} >>>>`,{"data >>>>":a,"params >>>>":o},!1),s({url:u,method:n.toUpperCase(),params:{...o,is_native_h5:1},data:a,needCommonParams:!0,header:{"x-tt-passport-csrf-token":O("passport_csrf_token")||O("passport_csrf_token_default")||""}}).then(e=>({data:e,status:200,statusText:"ok",config:t}))},u1=function(e,t){let{host:i,isBoe:r=!1,axiosConfig:n}=e,o=uN.Z.create({withCredentials:!0,...n,baseURL:i||window&&`${r?"http":"https"}://${window.location.hostname}`,adapter:u2(e),transformRequest:[e=>{let t=e;if("string"==typeof e)try{t=JSON.parse(e)}catch(e){}return t}]});return o.interceptors.response.use(t=>uJ(t,e),void 0),o.interceptors.request.use(u$(t)),o},{hmac:u4}=I.sha256;function u6(e,t){return u4(e,t)}function u3(e,t,i){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:32;return u8(u5(e,t),i,r)}function u5(e,t){let i=32;return e&&0!==e.length||(e=new Uint8Array(i)),u6(e,t)}function u8(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:32,r=new Uint8Array,n="",o=0;for(;r.length`aid=${e}&path=${t}&ts=${i}`,u9=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location.hostname;return 0===e.indexOf("/passport")||-1===t.indexOf("sso")?e:`/passport/sso${e}`},fe="x-tt-passport-aid-sign",ft=e=>{let{appKey:t,aid:i,host:r}=e,n=new TextEncoder;return e=>{if(!t||!i)return Promise.resolve(e);try{let{url:o=""}=e;o=String(o).split("?")[0];let a=u9(o,r),s=new Date,l=Date.UTC(s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate(),12,0,0,0),u=String(l/1e3),f=n.encode(u),c=n.encode(t),d=u3(f,c,new Uint8Array,32),h=u7(i,a,u),p=u6(d,h);return e.headers||(e.headers={}),e.headers[fe]=p,e.params={ts:u,...e.params||{}},Promise.resolve(e)}catch(t){return Promise.resolve(e)}}};class fi{constructor(e){let{autoTrace:t=!0}=e,i=e.traceInstance||new uW({autoTrace:t}),r=(null==e?void 0:e.fetch)?u1(e,i):uY(e,i);return r.trace=i,r.interceptors.request.use(ft(e)),r}}function fr(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class fn{constructor(e,t){fr(this,"request",void 0),fr(this,"startTrace",void 0),fr(this,"stopTrace",void 0),this.request=new fi(e);let i=this.request.trace;this.startTrace=i.start.bind(i),this.stopTrace=i.stop.bind(i),uR(e,this.request,t)}}function fo(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class fa{constructor(e){var t=this;fo(this,"request",void 0),fo(this,"aid",void 0),fo(this,"subjectAid",void 0),fo(this,"sendCode",e=>{let{mobile:t,extra_params:i={}}=e,r=ux({mobile:t,type:7,...i},["mobile","type"]);return this.request({url:eI.SEND_MOBILE_CODE,method:"POST",data:r})}),fo(this,"smsLogin",e=>{let{mobile:t,code:i,need_frozen_user:r=0,extra_params:n={}}=e,o=ux({mobile:t,code:i,need_frozen_user:r,type:7,...n},["mobile","type","code"]);return this.request({url:eI.SMS_LOGIN,method:"POST",data:o})}),fo(this,"sendEmailCode",e=>{let{email:t,extra_params:i={}}=e,r=ux({email:t,type:13,...i},["email","type"]);return this.request({url:eI.SEND_EMAIL_CODE,method:"POST",data:r})}),fo(this,"emailLogin",e=>{let{email:t,code:i,need_frozen_user:r=0,extra_params:n={}}=e,o=ux({email:t,code:i,need_frozen_user:r,type:13,...n},["email","type","code"]);return this.request({url:eI.EMAIL_LOGIN,method:"POST",data:o})}),fo(this,"pwdLogin",e=>{let{password:t,need_frozen_user:i=0,extra_params:r={}}=e,n=["email","username","mobile","account"].find(t=>!!e[t]);if(!n)return Promise.reject();let o=ux({password:t,[n]:e[n],need_frozen_user:i,...r},["password",n]);return this.request({url:eI.PWD_LOGIN,method:"POST",data:o})}),fo(this,"oauthLoginCall",e=>{let{platform_app_id:t,next:i,extra_params:r={}}=e,n=uy({platform_app_id:t,next:i,aid:this.aid,subject_aid:this.subjectAid,account_sdk_source:"web",passport_jssdk_version:eE,...r});window.location.href=`${eI.OAUTH_LOGIN_CALL}?${n}`}),fo(this,"oauthLogin",e=>{let{platform_app_id:t,redirect_uri:i,code:r,need_frozen_user:n=0,login_only:o=!0,extra_params:a={}}=e;return this.request({url:o?eI.OAUTH_LOGIN_ONLY:eI.OAUTH_LOGIN,method:"POST",data:{platform_app_id:t,redirect_uri:i,code:r,need_frozen_user:n,...a}})}),fo(this,"subjectLoginList",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{extra_params:i={}}=e;return t.request({url:eI.SUBJECT_LOGIN_LIST,method:"GET",data:i})}),fo(this,"subjectLogin",e=>{let{login_subject_uid:t,user_identity_id:i="0",extra_params:r={}}=e,n=ux({login_subject_uid:t,user_identity_id:i,...r},["login_subject_uid","user_identity_id"]);return this.request({url:eI.SUBJECT_LOGIN,method:"POST",data:n})}),fo(this,"logout",e=>{let{next:t="",not_redirect:i=!1,extra_params:r={}}=e,n={account_sdk_source:"web",aid:this.aid,passport_jssdk_version:eE,subject_aid:this.subjectAid,next:t,not_redirect:i,...r};if(i)return this.request({url:eI.LOGOUT,method:"GET",data:{...n,next:encodeURIComponent(n.next)}});window.location.href=`${eI.LOGOUT}?${uy(n)}`}),fo(this,"memberSwitch",e=>{let{to_sec_member_id:t,extra_params:i={}}=e;return this.request({url:eI.MEMBER_SWITCH,method:"POST",data:{to_sec_member_id:t,...i}})});let{request:i,aid:r,subjectAid:n}=e;this.request=i,this.aid=r,this.subjectAid=n}}function fs(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class fl{constructor(e){fs(this,"request",void 0),fs(this,"sendEmailCode",e=>{let{email:t,extra_params:i={}}=e,r=ux({email:t,type:1,...i},["email","type"]);return new Promise((e,t)=>{this.request({url:eI.SEND_EMAIL_CODE,method:"POST",data:r}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fs(this,"verifyEmail",e=>{let{email:t,code:i,extra_params:r={}}=e,n=ux({email:t,code:i,type:1,...r},["email","code","type"]);return new Promise((e,t)=>{this.request({url:eI.CHECK_EMAIL_CODE,method:"POST",data:n}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fs(this,"registerByEmail",e=>{let{extra_params:t={},only_user:i=!1,...r}=e,n=ux({...r,...t},["base_infos","subject_name","password","identity_card","real_name"]),o=i?eI.REGISTER_EMAIL_USER_ONLY:eI.REGISTER_EMAIL;return new Promise((e,t)=>{this.request({url:o,method:"POST",data:n}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fs(this,"sendMobileCode",e=>{let{mobile:t,extra_params:i={}}=e,r=ux({mobile:t,type:1,...i},["mobile","type"]);return new Promise((e,t)=>{this.request({url:eI.SEND_MOBILE_CODE,method:"POST",data:r}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fs(this,"verifyMobile",e=>{let{mobile:t,code:i,extra_params:r={}}=e,n=ux({mobile:t,code:i,type:1,...r},["mobile","code","type"]);return new Promise((e,t)=>{this.request({url:eI.CHECK_MOBILE_CODE,method:"POST",data:n}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fs(this,"registerByMobile",e=>{let{extra_params:t={},only_user:i=!1,...r}=e,n=ux({...r,...t},["base_infos","subject_name","password","identity_card","real_name"]),o=i?eI.REGISTER_MOBILE_USER_ONLY:eI.REGISTER_MOBILE;return new Promise((e,t)=>{this.request({url:o,method:"POST",data:n}).then(t=>{e(t)}).catch(e=>{t(e)})})});let{request:t}=e;this.request=t}}function fu(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class ff{constructor(e){fu(this,"request",void 0),fu(this,"mobileInvite",e=>{let{extra_params:t={},...i}=e,r=ux({...i,...t},["mobile"]);return this.request({url:eI.MOBILE_INVITE,method:"POST",data:r})}),fu(this,"emailInvite",e=>{let{extra_params:t={},...i}=e,r=ux({...i,...t},["email"]);return this.request({url:eI.EMAIL_INVITE,method:"POST",data:r})}),fu(this,"larkInvite",e=>{let{extra_params:t={},...i}=e,r=ux({...i,...t},["email"]);return this.request({url:eI.LARK_INVITE,method:"POST",data:r})}),fu(this,"getInvitationList",e=>{let{page:t=1,page_size:i=10,extra_params:r={}}=e;return new Promise((e,n)=>{this.request({url:`${eI.INVITE_LIST}${t}/`,method:"GET",data:{page_size:i,...r}}).then(t=>{e(t)}).catch(e=>{n(e)})})}),fu(this,"cancelInvitation",e=>{let{invite_id:t=0,extra_params:i={}}=e;return new Promise((e,r)=>{this.request({url:eI.CANCEL_INVITE,method:"POST",data:{invite_id:t,...i}}).then(t=>{e(t)}).catch(e=>{r(e)})})}),fu(this,"resendInvitation",e=>{let{invite_id:t=0,next_url:i="",link:r="",extra_params:n={}}=e;return new Promise((e,o)=>{this.request({url:eI.RESEND_INVITE,method:"POST",data:{invite_id:t,next_url:i,link:r,...n}}).then(t=>{e(t)}).catch(e=>{o(e)})})}),fu(this,"updateInvitation",e=>{let{invite_id:t=0,deputy_identity_id:i,deputy_name:r,extra_params:n={}}=e,o=ux({invite_id:t,deputy_identity_id:i,deputy_name:r,...n},["deputy_name"]);return new Promise((e,t)=>{this.request({url:eI.UPDATE_INVITE,method:"POST",data:o}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fu(this,"checkRegisterStatus",e=>{let{invite_ticket:t,extra_params:i={}}=e;return new Promise((e,r)=>{this.request({url:eI.CHECK_INVITE_VALID,method:"POST",data:{invite_ticket:t,...i}}).then(t=>{e(t)}).catch(e=>{r(e)})})}),fu(this,"acceptInvitation",e=>{let{invite_ticket:t,password:i,extra:r,extra_params:n={}}=e,o=ux({invite_ticket:t,password:i,extra:r,...n},["password","extra"]);return this.request({url:eI.ACCEPT_INVITE,method:"POST",data:o})});let{request:t}=e;this.request=t}}function fc(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class fd{constructor(e){fc(this,"request",void 0),fc(this,"createByUsername",e=>{let{extra_params:t={},...i}=e,r=ux({...i,...t},["subject_name","deputy_name","password","username","base_infos","detail_infos"]);return new Promise((e,t)=>{this.request({url:eI.CREATE_BY_USERNAME,method:"POST",data:r}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fc(this,"createByMobile",e=>{let{extra_params:t={},...i}=e,r=ux({...i,...t},["subject_name","deputy_name","password","mobile","base_infos","detail_infos"]);return new Promise((e,t)=>{this.request({url:eI.CREATE_BY_MOBILE,method:"POST",data:r}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fc(this,"createByEmail",e=>{let{extra_params:t={},...i}=e,r=ux({...i,...t},["subject_name","deputy_name","password","email","base_infos","detail_infos"]);return new Promise((e,t)=>{this.request({url:eI.CREATE_BY_EMAIL,method:"POST",data:r}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fc(this,"getSubjectList",e=>{let{page:t=1,page_size:i=10,deputy_identity_id:r,extra_params:n={}}=e;return new Promise((e,o)=>{this.request({url:`${eI.SUBJECT_LIST}${t}/`,method:"GET",data:{page_size:i,deputy_identity_id:r,...n}}).then(t=>{e(t)}).catch(e=>{o(e)})})}),fc(this,"getSubjectDeputyList",e=>{let{page:t=1,page_size:i=10,extra_params:r={}}=e;return new Promise((e,n)=>{this.request({url:`${eI.SUBJECT_DEPUTY_LIST}${t}/`,method:"GET",data:{page_size:i,...r}}).then(t=>{e(t)}).catch(e=>{n(e)})})}),fc(this,"getSubjectIdentityList",e=>{let{page:t=1,page_size:i=10,extra_params:r={}}=e;return new Promise((e,n)=>{this.request({url:`${eI.SUBJECT_IDENTITY_LIST}${t}/`,method:"GET",data:{page_size:i,...r}}).then(t=>{e(t)}).catch(e=>{n(e)})})}),fc(this,"updateDeputyInfo",e=>{let{sec_user_id:t,deputy_identity_id:i,deputy_name:r,user_identity_id:n,extra_params:o={}}=e,a=ux({sec_user_id:t,deputy_identity_id:i,deputy_name:r,user_identity_id:n,...o},["deputy_name","user_identity_id"]);return new Promise((e,t)=>{this.request({url:eI.UPDATE_DEPUTY_INFO,method:"POST",data:a}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fc(this,"freezeDeputy",e=>{let{sec_user_id:t,user_identity_id:i,is_frozen:r=0,extra_params:n={}}=e,o=ux({sec_user_id:t,user_identity_id:i,is_frozen:r,...n},["sec_user_id","user_identity_id"]);return new Promise((e,t)=>{this.request({url:eI.FREEZE_DEPUTY,method:"POST",data:o}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fc(this,"deleteDeputy",e=>{let{sec_user_id:t,user_identity_id:i,extra_params:r={}}=e,n=ux({sec_user_id:t,user_identity_id:i,...r},["user_identity_id"]);return new Promise((e,t)=>{this.request({url:eI.DELETE_DEPUTY,method:"POST",data:n}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fc(this,"updateSubjectInfo",e=>{let{sec_subject_uid:t,subject_name:i,base_infos:r,detail_infos:n,extra_params:o={}}=e,a=ux({sec_subject_uid:t,subject_name:i,base_infos:r,detail_infos:n,...o},["sec_subject_uid","subject_name","base_infos","detail_infos"]);return new Promise((e,t)=>{this.request({url:eI.UPDATE_SUBJECT_INFO,method:"POST",data:a}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fc(this,"freezeSubject",e=>{let{sec_subject_uid:t,is_frozen:i=0,extra_params:r={}}=e,n=ux({sec_subject_uid:t,is_frozen:i,...r},["sec_subject_uid"]);return new Promise((e,t)=>{this.request({url:eI.FREEZE_SUBJECT,method:"POST",data:n}).then(t=>{e(t)}).catch(e=>{t(e)})})});let{request:t}=e;this.request=t}}function fh(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class fp{constructor(e){fh(this,"request",void 0),fh(this,"sendEmailCode",e=>{let{email:t,extra_params:i={}}=e,r=ux({email:t,type:4,...i},["email","type"]);return this.request({url:eI.SEND_EMAIL_CODE,method:"POST",data:r})}),fh(this,"sendMobileCode",e=>{let{mobile:t,extra_params:i={}}=e,r=ux({mobile:t,type:6,...i},["mobile","type"]);return this.request({url:eI.SEND_MOBILE_CODE,method:"POST",data:r})}),fh(this,"mobileReset",e=>{let{mobile:t,code:i,password:r,extra_params:n={}}=e,o=ux({mobile:t,code:i,password:r,...n},["mobile","code","password"]);return this.request({url:eI.RESET_BY_MOBILE,method:"POST",data:o})}),fh(this,"emailReset",e=>{let{email:t,code:i,password:r,extra_params:n={}}=e,o=ux({email:t,code:i,password:r,...n},["email","code","password"]);return this.request({url:eI.RESET_BY_EMAIL,method:"POST",data:o})});let{request:t}=e;this.request=t}}function fA(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class fk{constructor(e){fA(this,"request",void 0),fA(this,"getResourceList",e=>{let{page:t=1,page_size:i=10,subject_uid:r,extra_params:n={}}=e;return new Promise((e,o)=>{this.request({url:`${eI.RESOURCE_LIST}${t}/`,method:"GET",data:{page_size:i,subject_uid:r,...n}}).then(t=>{e(t)}).catch(e=>{o(e)})})});let{request:t}=e;this.request=t}}function fm(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class fg{constructor(e){fm(this,"request",void 0),fm(this,"createRole",e=>{let{role_name:t,permissions:i,subject_uid:r,extra_params:n={}}=e;return new Promise((e,o)=>{this.request({url:eI.CREATE_ROLE,method:"POST",data:{role_name:t,permissions:i,subject_uid:r,...n}}).then(t=>{e(t)}).catch(e=>{o(e)})})}),fm(this,"updateRole",e=>{let{role_key:t,role_name:i,permissions:r,description:n,subject_uid:o,extra_params:a={}}=e;return new Promise((e,s)=>{this.request({url:eI.UPDATE_ROLE,method:"POST",data:{role_key:t,role_name:i,permissions:r,description:n,subject_uid:o,...a}}).then(t=>{e(t)}).catch(e=>{s(e)})})}),fm(this,"banRole",e=>{let{role_key:t,subject_uid:i,extra_params:r={}}=e;return new Promise((e,n)=>{this.request({url:eI.BAN_ROLE,method:"POST",data:{role_key:t,subject_uid:i,...r}}).then(t=>{e(t)}).catch(e=>{n(e)})})}),fm(this,"getRoleList",e=>{let{subject_uid:t,extra_params:i={}}=e;return new Promise((e,r)=>{this.request({url:eI.ROLE_LIST,method:"GET",data:{subject_uid:t,...i}}).then(t=>{e(t)}).catch(e=>{r(e)})})}),fm(this,"getRoleInfo",e=>{let{role_key:t,subject_uid:i,extra_params:r={}}=e;return new Promise((e,n)=>{this.request({url:eI.ROLE_INFO,method:"GET",data:{role_key:t,subject_uid:i,...r}}).then(t=>{e(t)}).catch(e=>{n(e)})})});let{request:t}=e;this.request=t}}function fb(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class fT{constructor(e){fb(this,"request",void 0),fb(this,"createUserWithRole",e=>{let{role_key:t,sec_user_id:i,name:r,identity_id:n,subject_uid:o,extra_params:a={}}=e;return new Promise((e,s)=>{this.request({url:eI.CREATE_USER_WITH_ROLE,method:"POST",data:{role_key:t,sec_user_id:i,name:r,identity_id:n,subject_uid:o,...a}}).then(t=>{e(t)}).catch(e=>{s(e)})})}),fb(this,"addUserRole",e=>{let{role_key:t,sec_user_identity_ids:i,subject_uid:r,extra_params:n={}}=e;return new Promise((e,o)=>{this.request({url:eI.ADD_USER_ROLE,method:"POST",data:{role_key:t,sec_user_identity_ids:i,subject_uid:r,...n}}).then(t=>{e(t)}).catch(e=>{o(e)})})}),fb(this,"deleteUserRole",e=>{let{role_key:t,sec_user_identity_ids:i,subject_uid:r,extra_params:n={}}=e;return new Promise((e,o)=>{this.request({url:eI.DELETE_USER_ROLE,method:"POST",data:{role_key:t,sec_user_identity_ids:i,subject_uid:r,...n}}).then(t=>{e(t)}).catch(e=>{o(e)})})}),fb(this,"getUserRoleList",e=>{let{subject_uid:t,extra_params:i={}}=e;return new Promise((e,r)=>{this.request({url:eI.USER_ROLE_LIST,method:"GET",data:{subject_uid:t,...i}}).then(t=>{e(t)}).catch(e=>{r(e)})})}),fb(this,"getAllUserRoleList",e=>{let{subject_uid:t,identity_id:i,page:r=1,page_size:n=10,extra_params:o={}}=e;return new Promise((e,a)=>{this.request({url:`${eI.ALL_USER_ROLE_LIST}${r}/`,method:"GET",data:{subject_uid:t,identity_id:i,page_size:n,...o}}).then(t=>{e(t)}).catch(e=>{a(e)})})}),fb(this,"getUserPermissions",e=>{let{subject_uid:t,extra_params:i={}}=e;return new Promise((e,r)=>{this.request({url:eI.USER_PERMISSIONS,method:"GET",data:{subject_uid:t,...i}}).then(t=>{e(t)}).catch(e=>{r(e)})})});let{request:t}=e;this.request=t}}function fv(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class fy{constructor(e){var t=this;fv(this,"request",void 0),fv(this,"sendCodeToOldManager",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{extra_params:i={}}=e,r=ux({type:22,...i},["type"]);return new Promise((e,i)=>{t.request({url:eI.SEND_MOBILE_CODE,method:"POST",data:r}).then(t=>{e(t)}).catch(e=>{i(e)})})}),fv(this,"sendEmailCodeToOldManager",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{extra_params:i={}}=e,r=ux({type:6,...i},["type"]);return new Promise((e,i)=>{t.request({url:eI.SEND_EMAIL_CODE,method:"POST",data:r}).then(t=>{e(t)}).catch(e=>{i(e)})})}),fv(this,"verifyOldManagerMobile",e=>{let{code:t,extra_params:i={}}=e,r=ux({code:t,type:22,...i},["code","type"]);return new Promise((e,t)=>{this.request({url:eI.VERIFY_MOBILE_CODE,method:"POST",data:r}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fv(this,"verifyOldManagerEmail",e=>{let{code:t,extra_params:i={}}=e,r=ux({code:t,type:6,...i},["code","type"]);return new Promise((e,t)=>{this.request({url:eI.VERIFY_EMAIL_CODE,method:"POST",data:r}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fv(this,"sendCodeToNewManager",e=>{let{mobile:t,verify_ticket:i,extra_params:r={}}=e,n=ux({mobile:t,verify_ticket:i,type:101,...r},["mobile","type"]);return new Promise((e,t)=>{this.request({url:eI.SEND_MOBILE_CODE,method:"POST",data:n}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fv(this,"sendEmailCodeToNewManager",e=>{let{email:t,verify_ticket:i,extra_params:r={}}=e,n=ux({email:t,verify_ticket:i,type:101,...r},["email","type"]);return new Promise((e,t)=>{this.request({url:eI.SEND_EMAIL_CODE,method:"POST",data:n}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fv(this,"verifyNewManagerMobile",e=>{let{mobile:t,code:i,extra_params:r={}}=e,n=ux({mobile:t,code:i,type:101,...r},["mobile","code","type"]);return new Promise((e,t)=>{this.request({url:eI.CHECK_MOBILE_CODE,method:"GET",data:n}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fv(this,"verifyNewManagerEmail",e=>{let{email:t,code:i,extra_params:r={}}=e,n=ux({email:t,code:i,type:101,...r},["email","code","type"]);return new Promise((e,t)=>{this.request({url:eI.CHECK_EMAIL_CODE,method:"GET",data:n}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fv(this,"transferManager",e=>{let{extra_params:t={},...i}=e;return this.request({url:eI.TRANSFER_MANAGER,method:"POST",data:{...i,...t}})});let{request:i}=e;this.request=i}}function fQ(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class fw{constructor(e){var t=this;fQ(this,"request",void 0),fQ(this,"host",void 0),fQ(this,"aid",void 0),fQ(this,"sendCode",e=>{let{mobile:t,registerOnly:i=!1,extra_params:r={}}=e,n=ux({mobile:t,type:i?16:24,...r},["mobile","type"]);return new Promise((e,t)=>{this.request({url:eM.SEND_MOBILE_CODE,method:"POST",data:n}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fQ(this,"smsLogin",e=>{let{mobile:t,code:i,login_only:r=!1,extra_params:n={}}=e,o=ux({mobile:t,code:i,login_only:r,...n},["mobile","code"]);return new Promise((e,t)=>{this.request({url:eM.SMS_LOGIN,method:"POST",data:o}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fQ(this,"smsRegister",e=>{let{mobile:t,code:i,passport:r,extra_params:n={}}=e,o=ux({mobile:t,type:16,code:i,passport:r,...n},["mobile","type","code","passport"]);return new Promise((e,t)=>{this.request({url:eM.SMS_REGISTER,method:"POST",data:o}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fQ(this,"smsLoginContinue",e=>{let{mobile:t,sms_code_key:i,extra_params:r={}}=e,n=ux({mobile:t,sms_code_key:i,...r},["mobile","sms_code_key"]);return new Promise((e,t)=>{this.request({url:eM.SMS_LOGIN_CONTINUE,method:"POST",data:n}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fQ(this,"webLogin",e=>{let{platform_app_id:t,next:i,extra_params:r={}}=e;return new Promise((e,n)=>{this.request({url:eM.SMS_LOGIN_CONTINUE,method:"POST",data:{platform_app_id:t,next:i,...r}}).then(t=>{e(t)}).catch(e=>{n(e)})})}),fQ(this,"emailLogin",e=>{let{email:t,password:i,extra_params:r={}}=e,n=ux({email:t,password:i,...r},["email","password"]);return new Promise((e,t)=>{this.request({url:eM.EMAIL_LOGIN,method:"POST",data:n}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fQ(this,"emailCodeLogin",e=>{let{email:t,code:i,extra_params:r={}}=e,n=ux({email:t,code:i,ect_type:13,...r},["email","code"]);return this.request({url:eM.EMAIL_CODE_LOGIN,method:"POST",data:n})}),fQ(this,"emailCodeQuickLogin",e=>{let{email:t,code:i,extra_params:r={}}=e,n=ux({email:t,code:i,...r},["email","code"]);return this.request({url:eM.EMAIL_CODE_QUICK_LOGIN,method:"POST",data:n})}),fQ(this,"pwdLogin",e=>{let{username:t,mobile:i,email:r,account:n,password:o,extra_params:a={}}=e,s=ux({username:t,mobile:i,email:r,account:n,password:o,...a},["username","mobile","email","account","password"]);return this.request({url:eM.PWD_LOGIN,method:"POST",data:s})}),fQ(this,"authLogin",e=>{let{platform_app_id:t,code:i,access_token:r,access_token_secret:n,openid:o,profile_key:a,login_only:s=!1,extra_params:l={}}=e;return new Promise((e,u)=>{this.request({url:s?eM.AUTH_LOGIN_ONLY:eM.AUTH_LOGIN,method:"POST",data:{platform_app_id:t,code:i,access_token:r,access_token_secret:n,openid:o,profile_key:a,...l}}).then(t=>{e(t)}).catch(e=>{u(e)})})}),fQ(this,"webShareLogin",e=>{let{extra_params:t={},...i}=e;return this.request({url:eM.WEB_SHARE_LOGIN,method:"POST",data:{...t,...i}})}),fQ(this,"getOauthMobile",e=>{let{access_token:t,access_token_secret:i,code:r,expires_in:n,openid:o,platform_app_id:a,platform:s,need_plaintext:l=!1,profile_key:u,extra_params:f={}}=e;return new Promise((e,c)=>{this.request({url:eM.MOBILE_OAUTH,method:"POST",data:{access_token:t,access_token_secret:i,code:r,expires_in:n,openid:o,platform_app_id:a,platform:s,need_plaintext:l,profile_key:u,...f}}).then(t=>{e(t)}).catch(e=>{c(e)})})}),fQ(this,"authBindLogin",e=>{let{platform_app_id:t,code:i,mobile:r,sms_code:n,sms_code_key:o,profile_key:a,state:s,extra_params:l={}}=e,u=ux({platform_app_id:t,code:i,mobile:r,sms_code:n,sms_code_key:o,profile_key:a,state:s,...l},["mobile","sms_code"]);return new Promise((e,t)=>{this.request({url:eM.AUTH_BIND_ONLY,method:"POST",data:u}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fQ(this,"mobileBindLogin",e=>{let{code:t,mobile:i,profile_key:r,state:n,extra_params:o={}}=e,a=ux({code:t,mobile:i,profile_key:r,state:n,...o},["mobile","code"]);return new Promise((e,t)=>{this.request({url:eM.MOBILE_BIND_ONLY,method:"POST",data:a}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fQ(this,"logout",e=>{let{next:t="/",need_redirect:i=1,extra_params:r={}}=e,n={account_sdk_source:"web",aid:this.aid||"",next:t,passport_jssdk_version:eE,is_from_ttaccountsdk:1,...r};if(i){window.location.href=`${this.host||""}${eM.LOGOUT}?${uy(n)}`;return}return this.request({url:eM.LOGOUT,data:{need_redirect:i,...n,next:encodeURIComponent(n.next)}})}),fQ(this,"sendEmailCode",e=>{let{email:t,next:i,password:r,extra_params:n={}}=e,o=ux({email:t,next:i,password:r,type:1,...n},["email","password","type"]);return this.request({url:eM.SEND_EMAIL_CODE,method:"POST",data:o})}),fQ(this,"sendEmailLoginCode",e=>{let{email:t,next:i,extra_params:r={}}=e,n=ux({email:t,next:i,type:13,...r},["email","type"]);return this.request({url:eM.SEND_EMAIL_CODE,method:"POST",data:n})}),fQ(this,"sendEmailQuickLoginCode",e=>{let{email:t,next:i,extra_params:r={}}=e,n=ux({email:t,next:i,type:16,...r},["email","type"]);return this.request({url:eM.SEND_EMAIL_CODE,method:"POST",data:n})}),fQ(this,"emailRegister",e=>{let{email:t,code:i,password:r,ifLogin:n=!1,extra_params:o={}}=e,a=ux({email:t,code:i,password:r,type:1,...o},["email","password","type","code"]);return this.request({url:n?eM.EMAIL_REGISTER_LOGIN:eM.EMAIL_REGISTER,method:"POST",data:a})}),fQ(this,"mobileRegister",e=>{let{mobile:t,code:i,password:r,extra_params:n={}}=e,o=ux({mobile:t,code:i,password:r,type:16,...n},["mobile","code","password","type"]);return new Promise((e,t)=>{this.request({url:eM.MOBILE_REGISTER,method:"POST",data:o}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fQ(this,"mobileEmailRegister",e=>{let{mobile:t,sms_code:i,email:r,email_code:n,password:o,verify_ticket:a,extra_params:s={}}=e,l=ux({mobile:t,sms_code:i,email:r,email_code:n,password:o,verify_ticket:a,sms_type:16,ect_type:1,...s},["mobile","sms_code","sms_type","email","email_code","ect_type","password"]);return new Promise((e,t)=>{this.request({url:eM.MOBILE_EMAIL_REGISTER,method:"POST",data:l}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fQ(this,"checkLogin",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{extra_params:i={}}=e;return t.request({url:eM.CHECK_LOGIN,method:"GET",data:i})}),fQ(this,"bindWithMobileLogin",e=>{let{extra_params:t={},...i}=e;return this.request({url:eM.BIND_WITH_MOBILE_LOGIN,method:"POST",data:{...t,...i}})}),fQ(this,"bindWithEmailLogin",e=>{let{extra_params:t={},...i}=e;return this.request({url:eM.BIND_WITH_EMAIL_LOGIN,method:"POST",data:{...t,...i}})}),fQ(this,"thirdAuth",e=>{let{platform_app_id:t,next:i="/",use_local_host:r=0,action:n,extra_params:o={}}=e,a=this.aid||"",s=encodeURIComponent(i),l=`account_sdk_source=web&aid=${a}&next=${s}&platform_app_id=${t}&use_local_host=${r}&action=${n}&passport_jssdk_version=${eE}`;for(let e in o)e&&(l="string"==typeof o[e]?`${l}&${e}=${encodeURIComponent(o[e])}`:`${l}&${e}=${o[e]}`);let u=`${eM.THIRD_AUTH}?${l}`;window.location.href=u}),fQ(this,"emailRegisterNoVerifyV2",e=>{let{email:t,password:i,next_url:r,recaptcha_token:n,extra_params:o={}}=e,a=ux({email:t,password:i,next_url:r,recaptcha_token:n,...o},["email","password","recaptcha_token"]);return this.request({url:eM.EMAIL_REGISTER_NO_VERIFY_V2,method:"POST",data:a})}),fQ(this,"wapLogin",e=>{let{origin:t="",type:i="web",use_local_host:r,scopes:n="user_info",next:o,url_params:a="",platform_app_id:s,platform:l="",replace:u=!1}=e,f=encodeURIComponent(o),c=encodeURIComponent(`${this.host}/auth/login_success/?service=${f}`),d={aid:this.aid,type:i,use_local_host:r,scopes:n,next:c,url_params:a,platform_app_id:s,platform:l,passport_jssdk_version:eE},h="",p=Object.keys(d).length;Object.keys(d).forEach((e,t)=>{p===t+1?h+=`${e}=${d[e]}`:h+=`${e}=${d[e]}&`});let A=`${t}${eM.AUTH_LOGIN_URL}?${h}`;u&&(window.location.href=A)}),fQ(this,"bindVerifyInfo",e=>{let{auth_ticket:t,verify_ticket:i,token:r,scene:n,user_type:o,extra_params:a={}}=e;return this.request({url:eR.BIND_VERIFY_INFO,method:"GET",data:{auth_ticket:t,verify_ticket:i,token:r,scene:n,user_type:o,...a}})}),fQ(this,"authToken",e=>{let{token:t,state:i,response_format_type:r="app",extra_params:n={}}=e;return this.request({url:eM.AUTH_TOKEN,method:"POST",data:{token:t,state:i,response_format_type:r,...n}})});let{request:i,host:r,aid:n}=e;this.request=i,this.host=r,this.aid=n}}function f_(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class fx{getQrcode(e){let{next:t,extra_params:i={}}=e;return this.request({url:`${eM.GET_QRCODE}?next=${encodeURIComponent(t)}`,method:"GET",data:i})}checkQrconnect(e){let{next:t,token:i,extra_params:r}=e;return this.request({url:`${eM.CHECK_QRCONNECT}?next=${encodeURIComponent(t)}`,method:"GET",data:{token:i,...r}})}getQrcodeFromWechat(e){let{extra_params:t={},...i}=e;return this.request({url:eM.GET_QRCODE_FROM_WECHAT,method:"POST",data:{...t,...i}})}checkQrcodeFromWechat(e){let{extra_params:t={},...i}=e;return this.request({url:eM.CHECK_QRCODE_FROM_WECHAT,method:"POST",data:{...t,...i}})}constructor(e){f_(this,"request",void 0);let{request:t}=e;this.request=t}}function fE(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class fC{constructor(e){var t=this;fE(this,"request",void 0),fE(this,"sendCode",e=>{let{mobile:t,unbind_exist:i=0,extra_params:r={}}=e,n=ux({mobile:t,type:8,unbind_exist:i,...r},["mobile","type","unbind_exist"]);return this.request({url:eM.SEND_MOBILE_CODE,method:"POST",data:n})}),fE(this,"bindMobile",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mobile:i,code:r,password:n,verify_ticket:o,unbind_exist:a=0,extra_params:s={}}=e,l=ux({mobile:i,code:r,password:n,verify_ticket:o,unbind_exist:a,type:8,...s},["mobile","code","password","unbind_exist","type"]);return t.request({url:eM.MOBILE_BIND,method:"POST",data:l})}),fE(this,"sendEmailCode",e=>{let{email:t,extra_params:i={}}=e,r=ux({email:t,type:8,...i},["email","type"]);return new Promise((e,t)=>{this.request({url:eM.SEND_EMAIL_CODE,method:"POST",data:r}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fE(this,"bindEmail",e=>{let{email:t,code:i,extra_params:r={}}=e,n=ux({email:t,code:i,...r},["email","code"]);return new Promise((e,t)=>{this.request({url:eM.EMAIL_BIND,method:"POST",data:n}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fE(this,"bindAuth",e=>{let{platform_app_id:t,code:i,access_token:r,access_token_secret:n,openid:o,profile_key:a,state:s,extra_params:l={}}=e;return new Promise((e,u)=>{this.request({url:eM.AUTH_BIND,method:"POST",data:{platform_app_id:t,code:i,access_token:r,access_token_secret:n,openid:o,profile_key:a,state:s,...l}}).then(t=>{e(t)}).catch(e=>{u(e)})})}),fE(this,"unbindAuth",e=>{let{platform:t,extra_params:i={}}=e;return new Promise((e,r)=>{this.request({url:eM.AUTH_UNBIND,method:"POST",data:{platform:t,...i}}).then(t=>{e(t)}).catch(e=>{r(e)})})}),fE(this,"switchBindAuth",e=>{let{platform_app_id:t,profile_key:i,extra_params:r={}}=e;return new Promise((e,n)=>{this.request({url:eM.AUTH_SWITCH_BIND,method:"POST",data:{platform_app_id:t,profile_key:i,...r}}).then(t=>{e(t)}).catch(e=>{n(e)})})}),fE(this,"changeQrcodeSuccess",e=>{let{token:t,extra_params:i={}}=e;return this.request({url:eM.CHANGE_QRCODE_SUCCESS,method:"POST",data:{token:t,...i}})}),fE(this,"changeQrcodeComfirm",e=>{let{token:t,verify_ticket:i,extra_params:r={}}=e;return this.request({url:eM.CHANGE_QRCODE_CONFIRM,method:"POST",data:{token:t,verify_ticket:i,...r}})});let{request:i}=e;this.request=i}}function fD(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class fS{constructor(e){fD(this,"request",void 0),fD(this,"checkMobileRegistered",e=>{let{mobile:t,extra_params:i={}}=e,r=ux({mobile:t,...i},["mobile"]);return new Promise((e,t)=>{this.request({url:eM.CHECK_MOBILE_REGISTER,method:"POST",data:r}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fD(this,"checkEmailRegistered",e=>{let{email:t,extra_params:i={}}=e,r=ux({email:t,...i},["email"]);return this.request({url:eM.CHECK_EMAIL_REGISTER,method:"POST",data:r})});let{request:t}=e;this.request=t}}function fL(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class fB{constructor(e){fL(this,"request",void 0);let{request:t}=e;this.request=t}}function fP(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class fM{constructor(e){fP(this,"request",void 0),fP(this,"sendCode",e=>{let{mobile:t,extra_params:i={}}=e,r=ux({mobile:t,type:6,...i},["mobile","type"]);return new Promise((e,t)=>{this.request({url:eM.SEND_MOBILE_CODE,method:"POST",data:r}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fP(this,"validateCode",e=>{let{mobile:t,code:i,extra_params:r={}}=e,n=ux({mobile:t,code:i,type:6,...r},["mobile","code","type"]);return new Promise((e,t)=>{this.request({url:eM.CHECK_MOBILE_CODE,method:"POST",data:n}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fP(this,"resetPwdByMobile",e=>{let{password:t,mobile:i,code:r,extra_params:n={}}=e,o=ux({password:t,mobile:i,code:r,...n},["password","mobile","code"]);return new Promise((e,t)=>{this.request({url:eM.RESET_PWD_BY_MOBILE,method:"POST",data:o}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fP(this,"sendEmailCode",e=>{let{email:t,extra_params:i={}}=e,r=ux({email:t,type:4,...i},["email","type"]);return new Promise((e,t)=>{this.request({url:eM.SEND_EMAIL_CODE,method:"POST",data:r}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fP(this,"validateEmail",e=>{let{email:t,code:i,extra_params:r={}}=e,n=ux({email:t,code:i,type:4,...r},["email","code","type"]);return this.request({url:eM.CHECK_EMAIL_CODE,method:"POST",data:n})}),fP(this,"resetPwdByEmail",e=>{let{password:t,email:i,code:r,extra_params:n={}}=e,o=ux({password:t,email:i,code:r,...n},["password","email","code"]);return new Promise((e,t)=>{this.request({url:eM.RESET_PWD_BY_EMAIL,method:"POST",data:o}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fP(this,"resetPwdByMobileTicket",e=>{let{password:t,ticket:i,extra_params:r={}}=e,n=ux({password:t,ticket:i,...r},["password"]);return new Promise((e,t)=>{this.request({url:eM.RESET_PWD_BY_MOBILE_TICKET,method:"POST",data:n}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fP(this,"resetPwdByEmailTicket",e=>{let{password:t,ticket:i,extra_params:r={}}=e,n=ux({password:t,ticket:i,...r},["password"]);return new Promise((e,t)=>{this.request({url:eM.RESET_PWD_BY_EMAIL_TICKET,method:"POST",data:n}).then(t=>{e(t)}).catch(e=>{t(e)})})});let{request:t}=e;this.request=t}}function fI(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class fO{constructor(e){var t=this;fI(this,"request",void 0),fI(this,"sendCodeToOldMobile",e=>{let{mobile:t,use_bind_mobile:i=!0,extra_params:r={}}=e,n=ux({mobile:t,type:i?22:28,...r},["mobile","type"]);return new Promise((e,t)=>{this.request({url:eM.SEND_MOBILE_CODE,method:"POST",data:n}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fI(this,"validateOldMobile",e=>{let{code:t,use_bind_mobile:i=!0,extra_params:r={}}=e,n=ux({code:t,type:i?22:28,...r},["code","type"]);return new Promise((e,t)=>{this.request({url:eM.VERIFY_MOBILE_CODE,method:"POST",data:n}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fI(this,"sendCodeToNewMobile",e=>{let{mobile:t,old_mobile:i,ticket:r,extra_params:n={}}=e,o=ux({mobile:t,old_mobile:i,type:20,ticket:r,...n},["mobile","old_mobile","type"]);return new Promise((e,t)=>{this.request({url:eM.SEND_MOBILE_CODE,method:"POST",data:o}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fI(this,"rebindMobile",e=>{let{mobile:t,code:i,ticket:r,kick_other:n=0,extra_params:o={}}=e,a=ux({mobile:t,code:i,ticket:r,kick_other:n,...o},["mobile","code"]);return new Promise((e,t)=>{this.request({url:eM.MOBILE_REBIND,method:"POST",data:a}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fI(this,"sendCodeToOldEmail",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{email:i,extra_params:r={}}=e,n=ux({email:i,type:6,...r},["email","type"]);return new Promise((e,i)=>{t.request({url:eM.SEND_EMAIL_CODE,method:"POST",data:n}).then(t=>{e(t)}).catch(e=>{i(e)})})}),fI(this,"validateOldEmail",e=>{let{email:t,code:i,extra_params:r={}}=e,n=ux({email:t,code:i,type:6,...r},["email","code","type"]);return new Promise((e,t)=>{this.request({url:eM.VERIFY_EMAIL_CODE,method:"POST",data:n}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fI(this,"sendCodeToNewEmail",e=>{let{email:t,ticket:i,extra_params:r={}}=e,n=ux({email:t,ticket:i,type:7,...r},["email","type"]);return new Promise((e,t)=>{this.request({url:eM.SEND_EMAIL_CODE,method:"POST",data:n}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fI(this,"rebindEmail",e=>{let{email:t,code:i,ticket:r,extra_params:n={}}=e,o=ux({email:t,code:i,type:7,ticket:r,...n},["email","code","type"]);return new Promise((e,t)=>{this.request({url:eM.EMAIL_REBIND,method:"POST",data:o}).then(t=>{e(t)}).catch(e=>{t(e)})})});let{request:i}=e;this.request=i}}function fR(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class fN{constructor(e){var t=this;fR(this,"request",void 0),fR(this,"sendCode",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{verify_mobile_seperate:i=!1,extra_params:r={}}=e,n=ux({type:i?22:13,...r},["type"]);return t.request({url:eM.SEND_MOBILE_CODE,method:"POST",data:n})}),fR(this,"validateMobile",e=>{let{code:t,extra_params:i={}}=e,r=ux({code:t,type:22,...i},["code","type"]);return new Promise((e,t)=>{this.request({url:eM.VERIFY_MOBILE_CODE,method:"POST",data:r}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fR(this,"changePwdByMobile",e=>{let{password:t,code:i,ticket:r,extra_params:n={}}=e,o=ux({password:t,code:i,ticket:r,...n},["password","code"]);return new Promise((e,t)=>{this.request({url:eM.PWD_CHANGE_BY_MOBILE,method:"POST",data:o}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fR(this,"updatePwd",e=>{let{password:t,current_password:i,extra_params:r={}}=e,n=ux({password:t,current_password:i,...r},["password","current_password"]);return new Promise((e,t)=>{this.request({url:eM.PWD_UPDATE,method:"POST",data:n}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fR(this,"sendEmailCode",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{extra_params:i={}}=e,r=ux({type:11,...i},["type"]);return new Promise((e,i)=>{t.request({url:eM.SEND_EMAIL_CODE,method:"POST",data:r}).then(t=>{e(t)}).catch(e=>{i(e)})})}),fR(this,"validateEmail",e=>{let{code:t,extra_params:i={}}=e,r=ux({code:t,type:11,...i},["code","type"]);return new Promise((e,t)=>{this.request({url:eM.VERIFY_EMAIL_CODE,method:"POST",data:r}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fR(this,"changePwdByEmail",e=>{let{password:t,code:i,ticket:r,extra_params:n={}}=e,o=ux({password:t,code:i,ticket:r,...n},["password","code"]);return new Promise((e,t)=>{this.request({url:eM.PWD_CHANGE_BY_EMAIL,method:"POST",data:o}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fR(this,"setPassword",e=>{let{password:t,extra_params:i={}}=e,r=ux({password:t,...i},["password"]);return new Promise((e,t)=>{this.request({url:eM.PWD_SET,method:"POST",data:r}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fR(this,"checkHasSetPwd",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{extra_params:i={}}=e;return new Promise((e,r)=>{t.request({url:eM.PWD_HAS_SET,method:"POST",data:i}).then(t=>{e(t)}).catch(e=>{r(e)})})}),fR(this,"checkWebHasSetPwd",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{extra_params:i={}}=e;return t.request({url:eM.PWD_HAS_SET_V2,method:"GET",data:i})}),fR(this,"changePwdByEmailAndLogin",e=>{let{password:t,code:i,email:r,extra_params:n={}}=e,o=ux({password:t,code:i,email:r,...n},["password","code"]);return this.request({url:eM.PWD_SET_BY_EAMIL_AND_LOGIN,method:"POST",data:o})});let{request:i}=e;this.request=i}}function fH(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class fV{constructor(e){var t=this;fH(this,"request",void 0),fH(this,"notLoginSendCode",e=>{let{mobile:t,extra_params:i={}}=e,r=ux({mobile:t,type:34,...i},["mobile","type"]);return new Promise((e,t)=>{this.request({url:eM.SEND_MOBILE_CODE,method:"POST",data:r}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fH(this,"notLoginValidateMobile",e=>{let{mobile:t,code:i,extra_params:r={}}=e,n=ux({mobile:t,code:i,type:34,...r},["mobile","code","type"]);return new Promise((e,t)=>{this.request({url:eM.CHECK_MOBILE_CODE,method:"POST",data:n}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fH(this,"notLoginSendEmailCode",e=>{let{email:t,extra_params:i={}}=e,r=ux({email:t,type:15,...i},["email","type"]);return new Promise((e,t)=>{this.request({url:eM.SEND_EMAIL_CODE,method:"POST",data:r}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fH(this,"notLoginValidateEmail",e=>{let{email:t,code:i,extra_params:r={}}=e,n=ux({email:t,code:i,type:15,...r},["email","code","type"]);return new Promise((e,t)=>{this.request({url:eM.CHECK_EMAIL_CODE,method:"POST",data:n}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fH(this,"sendCode",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{extra_params:i={},encrypt_uid:r=""}=e,n=ux({type:22,encrypt_uid:r,...i},["type"]);return new Promise((e,i)=>{t.request({url:eM.SEND_MOBILE_CODE,method:"POST",data:n}).then(t=>{e(t)}).catch(e=>{i(e)})})}),fH(this,"sendVoiceCode",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{extra_params:i={},encrypt_uid:r=""}=e,n=ux({type:22,encrypt_uid:r,...i},["type"]);return new Promise((e,i)=>{t.request({url:eM.SEND_VOICE_CODE,method:"POST",data:n}).then(t=>{e(t)}).catch(e=>{i(e)})})}),fH(this,"validateMobile",e=>{let{code:t,extra_params:i={},encrypt_uid:r=""}=e,n=ux({code:t,encrypt_uid:r,type:22,...i},["code","type"]);return new Promise((e,t)=>{this.request({url:eM.VERIFY_MOBILE_CODE,method:"POST",data:n}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fH(this,"sendEmailCode",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{extra_params:i={},encrypt_uid:r=""}=e,n=ux({type:6,encrypt_uid:r,...i},["type"]);return t.request({url:eM.SEND_EMAIL_CODE,method:"POST",data:n})}),fH(this,"validateEmail",e=>{let{code:t,encrypt_uid:i="",extra_params:r={}}=e,n=ux({code:t,encrypt_uid:i,type:6,...r},["code","type"]);return this.request({url:eM.VERIFY_EMAIL_CODE,method:"POST",data:n})}),fH(this,"accountVerify",e=>{let{account:t="",password:i="",encrypt_uid:r="",extra_params:n={}}=e,o=ux({account:t,password:i,encrypt_uid:r,user_login_version:1,...n},["account","password"]);return new Promise((e,t)=>{this.request({url:eM.ACCOUNT_VERIFY,method:"POST",data:o}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fH(this,"upsmsVerify",e=>{let{encrypt_uid:t="",extra_params:i={}}=e,r={encrypt_uid:t,...i};return new Promise((e,t)=>{this.request({url:eM.CHECK_UPSMS,method:"POST",data:r}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fH(this,"authVerify",e=>{let{platform_app_id:t,code:i,access_token:r,access_token_secret:n,openid:o,profile_key:a,extra_params:s={}}=e;return new Promise((e,l)=>{this.request({url:eM.AUTH_VERIFY,method:"POST",data:{platform_app_id:t,code:i,access_token:r,access_token_secret:n,openid:o,profile_key:a,...s}}).then(t=>{e(t)}).catch(e=>{l(e)})})}),fH(this,"smsAuthorizeSendCode",e=>{let{mobile:t,extra_params:i={}}=e,r=ux({mobile:t,type:26,...i},["mobile","type"]);return new Promise((e,t)=>{this.request({url:eM.SEND_MOBILE_CODE,method:"POST",data:r}).then(t=>{e(t)}).catch(e=>{t(e)})})}),fH(this,"smsAuthorize",e=>{let{mobile:t,code:i,extra_params:r={}}=e,n=ux({mobile:t,code:i,type:26,...r},["mobile","code","type"]);return new Promise((e,t)=>{this.request({url:eM.SMS_AUTHORIZE,method:"POST",data:n}).then(t=>{e(t)}).catch(e=>{t(e)})})});let{request:i}=e;this.request=i}}function fF(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class fZ{constructor(e){fF(this,"request",void 0),fF(this,"verifyWay",e=>{let{cancel_ticket:t,extra_params:i={}}=e;return this.request({url:eM.CANCEL_VERIFY_WAY,method:"GET",data:{cancel_ticket:t,...i}})}),fF(this,"checkIfPass",e=>{let{value_ticket:t,extra_params:i}=e;return this.request({url:eM.CANCEL_CHECK,method:"GET",data:{value_ticket:t,...i}})}),fF(this,"confirm",e=>{let{value_ticket:t,token:i,cancel_ticket:r,abandon:n,extra_params:o={}}=e;return this.request({url:eM.CANCEL_CONFIRM,method:"POST",data:{value_ticket:t,token:i,cancel_ticket:r,abandon:n,...o}})}),fF(this,"cancel",e=>{let{type:t,token:i,extra_params:r}=e;return this.request({url:eM.CANCEL_REQUEST_CANCEL,method:"POST",data:{type:t,token:i,...r}})});let{request:t}=e;this.request=t}}function fj(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class fz{getAuthInfo(e){let{client_key:t,scope:i,extra_params:r={}}=e;return this.request({url:eM.GET_OPEN_AUTH_INFO,method:"GET",data:{client_key:t,scope:i,...r}})}sendCode(e){let{mobile:t,extra_params:i={}}=e,r=ux({mobile:t,type:27,...i},["mobile","type"]);return this.request({url:eM.OPEN_SEND_CODE,method:"GET",data:r})}smsAuth(e){let{client_key:t,scope:i,source:r,redirect_uri:n,state:o,mobile:a,code:s,extra_params:l={}}=e,u=ux({client_key:t,scope:i,source:r,redirect_uri:n,state:o,mobile:a,code:s,...l},["mobile","code"]);return this.request({url:eM.OPEN_SMS_AUTH,method:"POST",data:u})}accountAuth(e){let{client_key:t,scope:i,source:r,redirect_uri:n,state:o,password:a,account:s,extra_params:l={}}=e,u=ux({client_key:t,scope:i,source:r,redirect_uri:n,state:o,password:a,account:s,...l},["password","account"]);return this.request({url:eM.OPEN_ACCOUNT_AUTH,method:"POST",data:u})}thirdAuth(e){let{extra_params:t={},...i}=e;return this.request({url:eM.OPEN_THIRD_AUTH,method:"POST",data:{...i,...t}})}getQRCode(e){let{client_key:t,scope:i,state:r,next:n,extra_params:o={}}=e;return this.request({url:eM.OPEN_GET_QRCODE,method:"POST",data:{client_key:t,scope:i,state:r,next:n,...o}})}checkQRCode(e){let{token:t,next:i,scope:r,client_key:n,extra_params:o={}}=e;return this.request({url:eM.OPEN_CHECK_QRCODE,method:"POST",data:{token:t,next:i,scope:r,client_key:n,...o}})}toScanQRCode(e){let{extra_params:t={}}=e;return this.request({url:eM.OPEN_TO_SCAN_QRCODE,method:"POST",data:{...t}})}scanQRCode(e){let{token:t,extra_params:i={}}=e;return this.request({url:eM.OPEN_SCAN_QRCODE,method:"POST",data:{token:t,...i}})}confirmQRCode(e){let{token:t,scopes:i,extra_params:r={}}=e;return this.request({url:eM.OPEN_CONFIRM_QRCODE,method:"POST",data:{token:t,scopes:i,...r}})}webAuth(e){let{extra_params:t={},...i}=e;return this.request({url:eM.OPEN_WEB_AUTH,method:"POST",data:{...i,...t}})}getOauthToken(e){let{extra_params:t={},...i}=e;return this.request({url:eM.GET_OPEN_OAUTH_TOKEN,method:"GET",data:{...i,...t}})}updateAuthorizeInfo(e){let{extra_params:t={},...i}=e;return this.request({url:eM.OPEN_UPDATE_AUTHORIZE_INFO,method:"POST",data:{...i,...t}})}douyinOauthConnect(e){let t=`${uE(8)}-${uE(4)}-${uE(4)}-${uE(4)}-${uE(12)}`,{client_key:i,scope:r,optionalScope:n="",state:o=t,response_type:a="code",redirect_uri:s,host:l="https://open.douyin.com"}=e,u={client_key:i,scope:r,optionalScope:n,state:o,response_type:a,redirect_uri:s,passport_jssdk_version:eE},f=eM.PLATFORM_OAUTH_CONNECT,c=Object.entries(u).map(e=>{let[t,i]=e;return`${t}=${encodeURIComponent(i)}`}).join("&"),d=`${l}${f}?${c}`,h=new Date;h.setTime(h.getTime()+5184e6),document.cookie=`passport_open_state=${o}; Domain=${window.location.host}; Path=/; SameSite=None; Secure; expires=${h.toUTCString()}`,window.location.href=d}providerOneAuth(e){let{extra_params:t={},...i}=e,r=ux({...i,...t},["mobile"]);return this.request({url:eM.OPEN_PROVIDER_ONE_AUTH,method:"POST",data:r})}constructor(e){fj(this,"request",void 0),fj(this,"isBoe",void 0);let{request:t,isBoe:i=!1}=e;this.request=t,this.isBoe=i}}function fG(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class fU{constructor(e){var t=this;fG(this,"request",void 0),fG(this,"getAccountInfo",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{extra_params:i={}}=e;return t.request({url:eM.ACCOUNT_INFO,method:"GET",data:i})}),fG(this,"setAccount",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{password:i,username:r,extra_params:n={}}=e,o=ux({password:i,username:r,...n},["password","username"]);return t.request({url:eM.ACCOUNT_SET,method:"POST",data:o})});let{request:i}=e;this.request=i}}function fX(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class fW{constructor(e){fX(this,"request",void 0),fX(this,"props",void 0),fX(this,"getOauthProfile",e=>{var t;let{access_token:i,access_token_secret:r,code:n,expires_in:o,openid:a,platform_app_id:s,platform:l,extra_params:u={}}=e;return this.request({url:eM.OAUTH_PROFILE,method:"GET",data:{aid:null==(t=this.props)?void 0:t.aid,access_token:i,access_token_secret:r,code:n,expires_in:o,openid:a,platform_app_id:s,platform:l,...u}})}),fX(this,"uploadAvatar",e=>{let{avatar:t,extra_params:i}=e,r=new FormData,n=new Blob([t],{type:t.type});r.append("avatar",n);let o=eM.UPLOAD_AVATAR;return this.request({url:o,method:"POST",data:r,params:{...i},headers:{"Content-Type":"multipart/form-data"}})}),fX(this,"updateUserInfo",e=>{let{extra_params:t={},...i}=e,r={...i,...t};return this.request({url:eM.UPDATE_USERINFO,method:"POST",data:r})}),fX(this,"checkDefaultInfo",e=>{let{scene:t,extra_params:i={}}=e;return this.request({url:eM.CHECK_DEFAULT_INFO,method:"GET",params:{scene:t,...i}})}),fX(this,"getDefaultImageList",e=>{let{aid:t}=this.props,{extra_params:i={}}=e,r=eM.GET_BACKGROUND_LIST.replace("{aid}",String(t));return this.request({url:r,method:"GET",params:{...i}})}),fX(this,"getDefaultAvatarList",e=>{let{aid:t}=this.props,{extra_params:i={}}=e,r=eM.GET_DEFAULT_AVATAR_LIST.replace("{aid}",String(t));return this.request({url:r,method:"GET",params:{...i}})}),fX(this,"getRecommendName",e=>{let{extra_params:t={}}=e;return this.request({url:eM.GET_RECOMMEND_NAME,method:"GET",params:{...t}})}),fX(this,"checkRemainTimes",e=>{let{field:t,field_namespace:i="",extra_params:r={}}=e;return this.request({url:eM.CHECK_REMAIN_TIMES,method:"GET",params:{field:t,field_namespace:i,...r}})}),fX(this,"uploadPicture",e=>{let{pic:t,is_sensitive:i,extra_params:r={}}=e,n=new FormData,o=new Blob([t],{type:t.type});return n.append("pic",o),this.request({url:eM.UPLOAD_PICTURE,method:"POST",data:n,params:{is_sensitive:i,...r}})}),fX(this,"downloadImage",e=>{let{key:t,extra_params:i={}}=e;return this.request({url:eM.DOWNLOAD_IMAGE,method:"GET",params:{key:t,...i}})});let{request:t}=e;this.request=t,this.props=e}}function f$(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class fY extends fn{constructor(e){super(e,"web"),f$(this,"login",void 0),f$(this,"qrcodeLogin",void 0),f$(this,"affLogin",void 0),f$(this,"register",void 0),f$(this,"affRegister",void 0),f$(this,"forgetPwd",void 0),f$(this,"affForgetPwd",void 0),f$(this,"password",void 0),f$(this,"bind",void 0),f$(this,"rebind",void 0),f$(this,"verify",void 0),f$(this,"extra",void 0),f$(this,"affInvite",void 0),f$(this,"affSubject",void 0),f$(this,"affResource",void 0),f$(this,"affRole",void 0),f$(this,"affUser",void 0),f$(this,"affSuper",void 0),f$(this,"cancel",void 0),f$(this,"open",void 0),f$(this,"account",void 0),f$(this,"user",void 0);let{printLog:t=!1}=e,i={...e,request:this.request};this.login=new fw(i),this.qrcodeLogin=new fx(i),this.register=new fB(i),this.forgetPwd=new fM(i),this.bind=new fC(i),this.rebind=new fO(i),this.password=new fN(i),this.extra=new fS(i),this.verify=new fV(i),this.cancel=new fZ(i),this.open=new fz(i),this.account=new fU(i),this.user=new fW(i),this.affLogin=new fa(i),this.affRegister=new fl(i),this.affInvite=new ff(i),this.affSubject=new fd(i),this.affForgetPwd=new fp(i),this.affResource=new fk(i),this.affRole=new fg(i),this.affUser=new fT(i),this.affSuper=new fy(i)}}let fq=fY},50244:function(){function e(e,r){if("string"!=typeof e)throw TypeError("argument str must be a string");let n={},o=r||{},a=o.decode||t,s=0;for(;s>>2]>>>24-t%4*8&255;this.words[this.sigBytes+t>>>2]|=i<<24-(this.sigBytes+t)%4*8}else for(let t=0;t>>2]=e.words[t>>>2];return this.sigBytes+=e.sigBytes,this}clamp(){this.words[this.sigBytes>>>2]&=0xffffffff<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4)}clone(){return new r([...this.words])}}let n={stringify(e){let t=[];for(let i=0;i>>2]>>>24-i%4*8&255;t.push((r>>>4).toString(16),(15&r).toString(16))}return t.join("")}},o={stringify(e){let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=[];for(let r=0;r>>2]>>>24-r%4*8&255,o=n<<16|(e.words[r+1>>>2]>>>24-(r+1)%4*8&255)<<8|e.words[r+2>>>2]>>>24-(r+2)%4*8&255;for(let n=0;n<4&&8*r+6*n<8*e.sigBytes;n++)i.push(t.charAt(o>>>6*(3-n)&63))}return i.join("")}},a={parse(e){let t=e.length,i=[];for(let r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new r(i,t)}},s=e=>a.parse(unescape(encodeURIComponent(e)));class l{constructor(){this._data=new r,this._nDataBytes=0,this._minBufferSize=0,this.blockSize=16}reset(){this._data=new r,this._nDataBytes=0}_append(e){"string"==typeof e&&(e=s(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes}_doProcessBlock(e,t){}_process(e){let t,i=this._data.sigBytes/(4*this.blockSize),n=(i=e?Math.ceil(i):Math.max((0|i)-this._minBufferSize,0))*this.blockSize,o=Math.min(4*n,this._data.sigBytes);if(n){for(let e=0;e>>7)^(e<<14|e>>>18)^e>>>3,r=d[i-2],n=(r<<15|r>>>17)^(r<<13|r>>>19)^r>>>10;d[i]=t+d[i-7]+n+d[i-16]}let h=s&l^~s&u,p=r&n^r&o^n&o,A=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),k=f+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+h+c[i]+d[i],m=A+p;f=u,u=l,l=s,s=a+k|0,a=o,o=n,n=r,r=k+m|0}i[0]=i[0]+r|0,i[1]=i[1]+n|0,i[2]=i[2]+o|0,i[3]=i[3]+a|0,i[4]=i[4]+s|0,i[5]=i[5]+l|0,i[6]=i[6]+u|0,i[7]=i[7]+f|0}finalize(e){super.finalize(e);let t=8*this._nDataBytes,i=8*this._data.sigBytes;return this._data.words[i>>>5]|=128<<24-i%32,this._data.words[(i+64>>>9<<4)+14]=Math.floor(t/0x100000000),this._data.words[(i+64>>>9<<4)+15]=t,this._data.sigBytes=4*this._data.words.length,this._process(),this._hash}}function p(e){return new h().finalize(e).toString(o)}function A(e,t,i,r,n,o,a){try{var s=e[o](a),l=s.value}catch(e){i(e);return}s.done?t(l):Promise.resolve(l).then(r,n)}function k(e){return function(){var t=this,i=arguments;return new Promise(function(r,n){var o=e.apply(t,i);function a(e){A(o,r,n,a,s,"next",e)}function s(e){A(o,r,n,a,s,"throw",e)}a(void 0)})}}function m(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function g(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function b(e,t){var i,r,n,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return l([e,t])}}function l(s){if(i)throw TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(i=1,r&&(n=2&s[0]?r.return:s[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,s[1])).done)return n;switch(r=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(n=(n=o.trys).length>0&&n[n.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]1&&void 0!==arguments[1]?arguments[1]:document.head;return k(function(){var i,r;return b(this,function(n){switch(n.label){case 0:return i=document.createElement("style"),[4,fetch(e).then(function(e){return e.text()})];case 1:return r=n.sent(),i.innerHTML=r,t.appendChild(i),[2,i]}})})()};function _(e){var t=new URL(e);if("localhost"===t.hostname||"127.0.0.1"===t.hostname)return!0;var i=["VQiPuCF8fUSLWEacKDWQE43lXKwYnQhpR3z4bRWqKs","1x4jUmqN43M7Jz5wXvGfWIkORE5SzCduVPXgUX22cc","j7hizOs1qEiVKb8kwuGrtoqRLGnMn32vm7xsrXpkHQ"];if(!Array.isArray(i))throw Error("Invalid manifest prefix hashes");for(var r=new URL(e).hostname;r.includes(".");){var n=p(r);if(i.includes(n))return!0;r=r.slice(r.indexOf(".")+1)}return!1}function x(){var t=null,i=localStorage.getItem("_dtm_prefix");if(t&&i)return"".concat(i,"/").concat(t,".json");var r=e(document.cookie).use_modernjs_devtools;return r||null}function E(e){return m(e,RegExp)?e:(void 0===e?"undefined":g(e))==="object"&&e&&"regexp"===e.__type__?new RegExp(e.source):null}function C(){var e=x();if(!e||!_(e))return null;var t=y(e).json();if(t.source=e,!t.client)throw TypeError("Devtools client assets is not found.");return window.__modern_js_devtools_manifest=t,t}function D(e,t={},i){for(let r in e){let n=e[r],o=i?`${i}:${r}`:r;"object"==typeof n&&null!==n?D(n,t,o):"function"==typeof n&&(t[o]=n)}return t}let S={run:e=>e()},L=()=>S,B=void 0!==console.createTask?console.createTask:L;function P(e,t){let i=B(t.shift());return e.reduce((e,r)=>e.then(()=>i.run(()=>r(...t))),Promise.resolve())}function I(e,t){let i=B(t.shift());return Promise.all(e.map(e=>i.run(()=>e(...t))))}function O(e,t){for(let i of[...e])i(t)}class R{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,i={}){let r;if(!e||"function"!=typeof t)return()=>{};let n=e;for(;this._deprecatedHooks[e];)e=(r=this._deprecatedHooks[e]).to;if(r&&!i.allowDeprecated){let e=r.message;e||(e=`${n} hook has been deprecated`+(r.to?`, please use ${r.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(e)||this._deprecatedMessages.add(e)}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&(this.removeHook(e,t),t=void 0)}}hookOnce(e,t){let i,r=(...e)=>("function"==typeof i&&i(),i=void 0,r=void 0,t(...e));return i=this.hook(e,r)}removeHook(e,t){if(this._hooks[e]){let i=this._hooks[e].indexOf(t);-1!==i&&this._hooks[e].splice(i,1),0===this._hooks[e].length&&delete this._hooks[e]}}deprecateHook(e,t){this._deprecatedHooks[e]="string"==typeof t?{to:t}:t;let i=this._hooks[e]||[];for(let t of(delete this._hooks[e],i))this.hook(e,t)}deprecateHooks(e){for(let t in Object.assign(this._deprecatedHooks,e),e)this.deprecateHook(t,e[t])}addHooks(e){let t=D(e),i=Object.keys(t).map(e=>this.hook(e,t[e]));return()=>{for(let e of i.splice(0,i.length))e()}}removeHooks(e){let t=D(e);for(let e in t)this.removeHook(e,t[e])}removeAllHooks(){for(let e in this._hooks)delete this._hooks[e]}callHook(e,...t){return t.unshift(e),this.callHookWith(P,e,...t)}callHookParallel(e,...t){return t.unshift(e),this.callHookWith(I,e,...t)}callHookWith(e,t,...i){let r=this._before||this._after?{name:t,args:i,context:{}}:void 0;this._before&&O(this._before,r);let n=e(t in this._hooks?[...this._hooks[t]]:[],i);return n instanceof Promise?n.finally(()=>{this._after&&r&&O(this._after,r)}):(this._after&&r&&O(this._after,r),n)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(void 0!==this._before){let t=this._before.indexOf(e);-1!==t&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(void 0!==this._after){let t=this._after.indexOf(e);-1!==t&&this._after.splice(t,1)}}}}var N="__modern_js_global";function H(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function V(e,t,i){return t=j(t),G(e,W()?Reflect.construct(t,i||[],j(e).constructor):t.apply(e,i))}function F(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function Z(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function j(e){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function z(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&U(e,t)}function G(e,t){return t&&("object"===X(t)||"function"==typeof t)?t:H(e)}function U(e,t){return(U=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function X(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function W(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(W=function(){return!!e})()}function $(){var e=function(e){"use strict";function t(){var e;return F(this,t),e=V(this,t,arguments),Z(e,"mockable",void 0),e}return z(t,e),t}(R);window[N]=new e}function Y(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]}function q(e,t,i,r,n,o,a){try{var s=e[o](a),l=s.value}catch(e){i(e);return}s.done?t(l):Promise.resolve(l).then(r,n)}function J(e){return function(){var t=this,i=arguments;return new Promise(function(r,n){var o=e.apply(t,i);function a(e){q(o,r,n,a,s,"next",e)}function s(e){q(o,r,n,a,s,"throw",e)}a(void 0)})}}function K(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function ee(e){for(var t=1;t0&&n[n.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]n});var r=function(e){return e};function n(e){return r(e)}},95935:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>n});var r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,n=function(e){var t=Object.create(null);return function(i){return void 0===t[i]&&(t[i]=e(i)),t[i]}}(function(e){return r.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)})},83657:function(e,t,i){"use strict";i.r(t),t.default=function(e){function t(e,r,l,u,f){for(var h,p,A,k,m,y=0,w=0,_=0,x=0,E=0,C=0,I=A=h=0,R=0,H=0,V=0,F=0,Z=l.length,j=Z-1,z="",G="",U="",X="";Rh)&&(F=(z=z.replace(" ",":")).length),0r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<+i&&0l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102r.charCodeAt(0)&&(r=r.trim()),r=[r],0s,useMdBoxConfig:()=>l});var r=i(18571),n=i(69831),o=i(66469);i.o(o,"MdBoxI18nProvider")&&i.d(t,{MdBoxI18nProvider:function(){return o.MdBoxI18nProvider}}),i.o(o,"useMdBoxTranslate")&&i.d(t,{useMdBoxTranslate:function(){return o.useMdBoxTranslate}});let a=(0,r.createContext)({theme:"default",mode:"light",catchSlotsError:!0}),s=(0,n.W)(a),l=()=>(0,r.useContext)(a)},66469:function(){},77927:function(e,t,i){"use strict";i.d(t,{MdBoxI18nProvider:()=>l,useMdBoxTranslate:()=>u});var r=i(18571),n=i(46053);let o={copyTitle:"Copy",codeBarLoadingText:"Running",codeBarExpandedFinishedText:"Hide Detail",codeBarUnExpandFinishedText:"Show Detail"};var a=i(69831);let s=(0,r.createContext)(null),l=(0,a.W)(s),u=()=>{let e=(0,r.useContext)(s);if(!e)throw Error("[MdBox Internal Bugs] MdBoxI18nContext Required");let t=(0,n.Z)(e,o);return e=>t[e]}},75202:function(e,t,i){"use strict";i.d(t,{MdBoxI18nProvider:()=>n.MdBoxI18nProvider,useMdBoxTranslate:()=>n.useMdBoxTranslate});var r=i(15295);i.o(r,"MdBoxI18nProvider")&&i.d(t,{MdBoxI18nProvider:function(){return r.MdBoxI18nProvider}}),i.o(r,"useMdBoxTranslate")&&i.d(t,{useMdBoxTranslate:function(){return r.useMdBoxTranslate}});var n=i(77927)},69831:function(e,t,i){"use strict";i.d(t,{W:()=>s});var r=i(72322),n=i(18571),o=i(96228),a=i(10368);let s=e=>{let t=e.Provider;return({value:e,afterMemoedProcess:i,children:s})=>{let l=(0,a.g1)(e,o.wU),u=(0,n.useMemo)(()=>i?i(l):l,[l]);return(0,r.jsx)(t,{value:u,children:s})}}},10368:function(e,t,i){"use strict";i.d(t,{NY:()=>s,eD:()=>l,g1:()=>a});var r=i(18571),n=i(26791),o=i(13072);let a=(e,t)=>{let i=(0,r.useRef)(e);return t(e,i.current)||(i.current=e),i.current},s=(e,t)=>{let i=(0,r.useRef)();return((0,n.Z)(i.current)||!(0,o.Z)(i.current,t))&&(i.current=t),(0,r.useMemo)(e,i.current)},l=e=>e()},92443:function(e,t,i){let r;var n=Object.create,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,f=e=>o(e,"__esModule",{value:!0}),c=(e,t)=>{for(var i in t)o(e,i,{get:t[i],enumerable:!0})},d=(e,t,i,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of s(t))!u.call(e,n)&&(i||"default"!==n)&&o(e,n,{get:()=>t[n],enumerable:!(r=a(t,n))||r.enumerable});return e},h=(e,t)=>d(f(o(null!=e?n(l(e)):{},"default",!t&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),p=(r="undefined"!=typeof WeakMap?new WeakMap:0,(e,t)=>r&&r.get(e)||(t=d(f({}),e,1),r&&r.set(e,t),t)),A={};c(A,{DOMApis:()=>eI,Lock:()=>tc,Queue:()=>eh,__GARFISH_FLAG__:()=>eR,__LOADER_FLAG__:()=>eO,__MockBody__:()=>eH,__MockHead__:()=>eV,__MockHtml__:()=>eN,__REMOVE_NODE__:()=>eF,_extends:()=>et,appContainerId:()=>e7,assert:()=>Z,callTestCallback:()=>G,changeTagNameToLowerCase:()=>eP,computeErrorUrl:()=>ew,computeStackTraceFromStackProp:()=>ev,coreLog:()=>tu,createAppContainer:()=>e9,createKey:()=>v,createSourcemap:()=>ef,deepMerge:()=>$,def:()=>C,error:()=>O,evalWithEnv:()=>H,filterAndWrapEventListener:()=>e_,filterUndefinedVal:()=>W,findTarget:()=>K,getGarfishDebugInstanceName:()=>ea,getParameterByName:()=>eo,getRenderNode:()=>tr,getSourceURL:()=>ec,getType:()=>w,hasOwn:()=>E,haveSourcemap:()=>eu,hookObjectProperty:()=>en,idleCallback:()=>b,inBrowser:()=>L,internFunc:()=>N,isAbsolute:()=>Y,isCss:()=>ej,isCssType:()=>eW,isGarfishConfigType:()=>eY,isHtml:()=>ez,isHtmlType:()=>e$,isJs:()=>eG,isJsType:()=>eX,isJsonp:()=>eU,isObject:()=>y,isPlainObject:()=>Q,isPrimitive:()=>X,isPromise:()=>_,macroTask:()=>ed,makeMap:()=>D,makeMapObject:()=>S,mapObject:()=>ei,nextTick:()=>F,noop:()=>k,objectToString:()=>m,parseContentType:()=>eZ,remove:()=>z,routerLog:()=>tf,safari13Deal:()=>es,safeWrapper:()=>V,setDocCurrentScript:()=>ee,sourceListTags:()=>ey,sourceNode:()=>eQ,supportWasm:()=>g,templateParse:()=>ts,toBase64:()=>er,toBoolean:()=>j,toWsProtocol:()=>J,transformUrl:()=>q,unique:()=>U,validURL:()=>R,warn:()=>I});var k=()=>{},m=Object.prototype.toString,g="object"==typeof WebAssembly,b=window.requestIdleCallback||window.requestAnimationFrame;function v(){return Math.random().toString(36).substr(2,8)}function y(e){return e&&"object"==typeof e}function Q(e){return"[object Object]"===m.call(e)}function w(e){return m.call(e).slice(8,-1).toLowerCase()}function _(e){return y(e)&&"function"==typeof e.then}var x=Object.prototype.hasOwnProperty;function E(e,t){return x.call(e,t)}function C(e,t,i){Object.defineProperty(e,t,{get:()=>i,set:e=>{"undefined"==typeof process||process.env},configurable:("undefined"!=typeof process&&process.env,!1)})}function D(e){let t=Object.create(null);for(let i=0;i!!t[e]}function S(e){let t=Object.create(null);for(let i=0;i{try{"string"==typeof e?(e=`${B}: ${e}
`,t(e,!0)):e instanceof Error&&(e.message.startsWith(B)||(e.message=`${B}: ${e.message}`),t(e,!1))}catch(i){t(e,"string"==typeof e)}};function I(e){P(e,(e,t)=>{t||e.message})}function O(e){P(e,(e,t)=>{if(t)throw Error(e);throw e})}function R(e){return!!RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(e)}function N(e){let t={};return t[e]=!0,Object.keys(t)[0]}function H(e,t,i,r=!1){let n=Object.keys(t),o=(0,eval)("window;"),a="__garfish__exec_temporary__",s=n.map(e=>`window.${a}.${e}`),l="__garfish_exec_temporary_context__";try{o[a]=t,o[l]=i;let u=[`;(function(${n.join(",")}){${r?'"use strict";':""}`,`
}).call(window.${l},${s.join(",")});`],f=N(u[0]+e+u[1]);(0,eval)(f)}catch(e){throw e}finally{delete o[a],delete o[l]}}function V(e,t){try{e()}catch(e){t||"undefined"==typeof process||process.env}}function F(e){Promise.resolve().then(e)}function Z(e,t){e||O(t||"unknow reason")}function j(e){return""===e||"false"!==e&&!!e}function z(e,t){if(Array.isArray(e)){let i=e.indexOf(t);return i>-1&&(e.splice(i,1),!0)}return!!e.has(t)&&(e.delete(t),!0)}function G(e){}function U(e){let t=[];for(let i=0,r=e.length;i(void 0===e[t]&&delete e[t],e),e)}function $(e,t,i,r){let n=new WeakMap,o=new WeakMap,a=new WeakMap,s=D(r||[]),l=Array.isArray,u=(e,t)=>{if(n.has(e)||o.has(e))return n.has(t)||o.has(t)},f=e=>{if(X(e)||"function"==typeof e)return e;if(a.has(e))return a.get(e);if(n.has(e))return n.get(e);if(o.has(e))return o.get(e);if(l(e)){i&&(e=U(e));let t=[];a.set(e,t);for(let i=0,r=e.length;it[i]=f(e[i])),t}},c=(e,t,i)=>{if(e.has(t))return e.get(t);{if(s[i])return t;let r=f(t);return X(r)||"function"==typeof r||e.set(t,r),r}},d=(e,t)=>{let r={},a=Reflect.ownKeys(e),s=Reflect.ownKeys(t);return n.set(e,r),o.set(t,r),a.forEach(a=>{let s=e[a],h=t[a];if(E(t,a))if(l(s)&&l(h)){let e=f([...s,...h]);r[a]=i?U(e):e}else Q(s)&&Q(h)?r[a]=u(s,h)?n.get(s):d(s,h):r[a]=c(o,h,a);else r[a]=c(n,s,a)}),s.forEach(e=>{E(r,e)||(r[e]=c(o,t[e],e))}),r};return d(e,t)}function Y(e){return!!(!/^[a-zA-Z]:\\/.test(e)&&/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e))}function q(e,t){let i=new URL(e,location.href);return new URL(t,i.href).href}function J(e){let t=new URL(e);return t.protocol.startsWith("http")?(t.protocol="https:"===t.protocol?"wss:":"ws:",t.toString()):e}function K(e,t){for(let i of t){let t=e.querySelector(i);if(t)return t}return e}function ee(e,t,i,r,n,o,a){if(!e)return k;let s=document.createElement("script");return!r&&t&&(s.textContent=t),r&&(s.src=r),a&&a.getAttributeNames().forEach(e=>{s.setAttribute(e,a.getAttribute(e)||"")}),n&&s.setAttribute("async","true"),o&&s.setAttribute("defer","true"),(t=>{try{i?Object.defineProperty(e,"currentScript",{value:t,writable:!0,configurable:!0}):e.currentScript=t}catch(e){"undefined"==typeof process||process.env}})(s),()=>V(()=>delete e.currentScript,!0)}function et(e,t){function i(){this.constructor=e}Object.setPrototypeOf(e,t),null===t?e.prototype=Object.create(t):(t.prototype&&(i.prototype=t.prototype),e.prototype=new i)}function ei(e,t){let i={};for(let r in e)e.hasOwnProperty(r)&&(i[r]=t(r,e[r]));return i}function er(e,t){return new Promise(i=>{let r=new FileReader;r.readAsDataURL(new Blob([e],{type:t})),r.onload=()=>i(r.result)})}var en=(e,t,i)=>(...r)=>{if(!e)return k;let n=e[t],o=i(n,...r),a=o;return"function"==typeof a&&(a=function(...e){try{return o.apply(this,e)}catch(t){return"function"==typeof n&&n.apply(this,e)}}),e[t]=a,i=>{i&&a!==e[t]||(e[t]=n)}};function eo(e,t=window.location.href){let i=RegExp("[?&]"+(e=e.replace(/[\[\]]/g,"\\$&"))+"(=([^]*)|&|#|$)").exec(t);return i?i[2]?decodeURIComponent(i[2].replace(/\+/g," ")):"":null}function ea(){let e="__GARFISH_INSTANCE_DEBUG__";return localStorage.getItem(e)||eo(e)}function es(){let e=!1;return{triggerSet(){e=!0},handleDescriptor(t){!0===e&&(e=!1,(null==t?void 0:t.writable)===!1&&(t.writable=!0),(null==t?void 0:t.enumerable)===!1&&(t.enumerable=!0),(null==t?void 0:t.configurable)===!1&&(t.configurable=!0))}}}var el=/[@#] sourceMappingURL=/g;function eu(e){return el.test(e)}async function ef(e,t){let i=await er(JSON.stringify({version:3,sources:[t],sourcesContent:[e],mappings:";"+e.split("\n").map(()=>"AACA").join(";")}));return`//@ sourceMappingURL=${i}`}function ec(e){return e instanceof URL?e.href:e instanceof Request?e.url:e.startsWith("/")?`${location.origin}${e}`:e}function ed(e,t=0){return new Promise(i=>{setTimeout(()=>i(e),t)})}var eh=class{constructor(){this.fx=[],this.init=!0,this.lock=!1,this.finishDefers=new Set}next(){if(!this.lock)if(this.lock=!0,0===this.fx.length)this.init=!0,this.finishDefers.forEach(e=>e.resolve()),this.finishDefers.clear();else{let e=this.fx.shift();e&&e(()=>{this.lock=!1,this.next()})}}add(e){this.fx.push(e),this.init&&(this.lock=!1,this.init=!1,this.next())}awaitCompletion(){if(this.init)return Promise.resolve();let e={};return this.finishDefers.add(e),new Promise((t,i)=>{e.resolve=t,e.reject=i})}},ep=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack||[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,eA=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ek=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,em=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,eg=/\((\S*)(?::(\d+))(?::(\d+))\)/,eb="?";function eT(e){let t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function ev(e){let t,i,r,n;if(!e||!e.stack)return null;let o=[],a=e.stack.split("\n");for(let s=0;s eval")>-1)&&(i=em.exec(r[3]))?(r[1]=r[1]||"eval",r[3]=i[1],r[4]=i[2],r[5]=""):0!==s||r[5]||void 0===e.columnNumber||(o[0].column=e.columnNumber+1),n={url:r[3],func:r[1]||eb,args:r[2]?r[2].split(","):[],line:r[4]?+r[4]:null,column:r[5]?+r[5]:null}}!n.func&&n.line&&(n.func=eb),o.push(n)}return o.length?{message:eT(e),name:e.name,stack:o}:null}var ey=["link","style","script","img","video","audio","iframe"],eQ=D(ey);function ew(e){if(e&&e.filename)return e.filename;let t=ev(e);return t?t.stack.map(e=>e.url)[0]||null:e&&e.target&&e.target.tagName&&eQ(e.target.tagName.toLowerCase())?e.target.src||e.target.href:null}function e_(e,t,i){let r=function(e){"function"==typeof t&&(i?i.find(t=>-1!==t.indexOf(ew(e)))&&t(e):t(e))},n=function(e){e.promise.catch(i=>{i instanceof Error?r(i):"function"==typeof t&&t(e)})};return function(i){"function"==typeof t&&("unhandledrejection"===e?n(i):"error"===e?r(i):t(i))}}var ex=120,eE=58,eC="http://www.w3.org/2000/svg",eD="http://www.w3.org/1999/xlink",eS="http://www.w3.org/XML/1998/namespace",eL="xlink",eB=D("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view".split(","));function eP(e){return eB(e)?e:e.toLowerCase()}function eM(e){return e&&0!==e.length?e.reduce((e,{key:t,value:i})=>e+(i?`${t}="${i}" `:t),""):""}var eI=class{constructor(e){this.document=e||document}isText(e){return e&&"text"===e.type}isNode(e){return e&&"element"===e.type}isCommentNode(e){return e&&"comment"===e.type}isCssLinkNode(e){return!!this.isNode(e)&&"link"===e.tagName&&!!e.attributes.find(({key:e,value:t})=>"rel"===e&&"stylesheet"===t)}isIconLinkNode(e){return!!this.isNode(e)&&"link"===e.tagName&&!!e.attributes.find(({key:e,value:t})=>"rel"===e&&"icon"===t)}isPrefetchJsLinkNode(e){let t,i;if(!this.isNode(e)||"link"!==e.tagName)return!1;for(let{key:r,value:n}of e.attributes)if("rel"===r){if(t=!0,"preload"!==n&&"prefetch"!==n)return!1}else if("as"===r&&(i=!0,"script"!==n))return!1;return!!(t&&i)}isRemoteModule(e){let t,i;if(!this.isNode(e)||"meta"!==e.tagName)return!1;for(let{key:r,value:n}of e.attributes)if("name"===r){if(t=!0,"garfish-remote-module"!==n)return!1}else if("src"===r&&(i=!0,void 0===n||""===n))return!1;return!!(t&&i)}removeElement(e){let t=e&&e.parentNode;t&&t.removeChild(e)}createElement(e){let{tagName:t,attributes:i}=e,r=eB(t)?this.document.createElementNS(eC,t):this.document.createElement(t);return this.applyAttributes(r,i),r}createTextNode(e){return this.document.createTextNode(e.content)}createStyleNode(e){let t=this.document.createElement("style");return e&&(t.textContent=e),this.applyAttributes(t,[{key:"type",value:"text/css"}]),t}createLinkCommentNode(e){if(!this.isNode(e))return e=e?`src="${e}" `:"",this.document.createComment(` `);{let t=eM(e.attributes);return` `}}createScriptCommentNode(e){if(this.isNode(e)){let{attributes:t,children:i}=e,r=eM(t),n=(null==i?void 0:i[0])?i[0].content:"";return this.document.createComment(``)}{let{src:t,code:i}=e,r=t?`src="${t}" `:"";return this.document.createComment(``)}}applyAttributes(e,t){if(t&&0!==t.length)for(let{key:i,value:r}of t)i&&(null===r?e.setAttribute(i,""):"string"==typeof r&&(i.charCodeAt(0)!==ex?e.setAttribute(i,r):i.charCodeAt(3)===eE?e.setAttributeNS(eS,i,r):i.charCodeAt(5)===eE&&i.slice(0,5)===eL?e.setAttributeNS(eD,i,r):e.setAttribute(i,r)))}},eO=Symbol.for("__LOADER_FLAG__"),eR=Symbol.for("__GARFISH_FLAG__"),eN="__garfishmockhtml__",eH="__garfishmockbody__",eV="__garfishmockhead__",eF="__garfishremovenode__";function eZ(e){if(!(e=null==e?void 0:e.trim()))return null;let t=0,i="",r="";for(;t=e.length)return null;for(t++;t!0},i[t]&&i[t](e)}function e5(e){return eJ[e]?eJ[e]:e.replace(/^on/,"").toLowerCase()}function e8(e){let t=[];for(;e;){if(t.push(e),"HTML"===e.tagName)return t.push(document),t.push(window),t;e=e.parentElement}}var e7="garfish_app_for";function e9(e){let t=document.createElement("div"),i=document.createElement("div");if(e.sandbox&&e.sandbox.strictIsolation){t=document.createElement("html");let e=i.attachShadow({mode:"open"});e.appendChild(t),e0(e)}else t.setAttribute(eN,""),i.appendChild(t);return i.id=`${e7}_${e.name}_${v()}`,{htmlNode:t,appContainer:i}}function te(e,t,i){let r=50,n=document.querySelector(e);if(null!==n||i<=0)return void t(n);setTimeout(function(){te(e,t,i-r)},r)}function tt(e){return new Promise(function(t){setTimeout(t,e)})}function ti(e,t=3e3){let i=new Promise(function(i){te(e,function(e){return i(e)},t)});return Promise.race([tt(t),i])}async function tr(e){let t;return Z(e,`Invalid domGetter:
${e}.`),"string"==typeof e?t=await ti(e):"function"==typeof e&&(t=await Promise.resolve(e())),Z(t instanceof Element,`Invalid domGetter: ${e}`),t}function tn({name:e,value:t}){this.key=e,this.value=t}var to=e=>{let t=[],i=e.attributes,r=i.length;if(r>0)if(1===r)t[0]=new tn(i[0]);else if(2===r)t[0]=new tn(i[0]),t[1]=new tn(i[1]);else for(let e=0;e{switch(e.nodeType){case 3:return{type:"text",content:e.textContent};case 8:return{type:"comment",content:e.textContent};case 1:return t({type:"element",tagName:eP(e.tagName),attributes:to(e),children:Array.from(e.childNodes).map(e=>ta(e,t))});default:O(`Invalid node type "${e.nodeType}"`)}};function ts(e,t){let i=[],r=document.createElement("html"),n={},o=e=>(t.includes(e.tagName)&&n[e.tagName].push(e),e);for(let i of(r.innerHTML=e,t))n[i]=[];return[i=Array.from(r.childNodes).map(e=>ta(e,o)),n]}var tl=(0,h(i(72364)).default)("garfish"),tu=tl.extend("core"),tf=tl.extend("router"),tc=class{constructor(){this.id=0,this.lockQueue=[]}genId(){return++this.id}getId(){return this.id}async wait(e){let{lockQueue:t}=this,i=t[0],r=i?t[t.length-1]:void 0;if((null==i?void 0:i.id)===e)return;let n=t.find(t=>t.id===e);if(!n){let i=()=>{};n={id:e,waiting:new Promise(e=>{i=e}),resolve:i},t.push(n)}r&&await r.waiting}release(){let{lockQueue:e}=this,t=e[0];t&&(e.shift(),t.resolve())}clear(){this.lockQueue=[]}};e.exports=p(A)},1191:function(e,t,i){"use strict";i.d(t,{RW:()=>t8});var r,n,o,a,s,l,u,f,c,d=i(21841),h=i(90765);function p(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};A(this,e),this.init(t,i)}return g(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||_,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=Array(e),i=0;i1?t-1:0),r=1;r-1?e.replace(/###/g,"."):e}function n(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(n())return{};var a=r(o.shift());!e[a]&&i&&(e[a]=new i),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return n()?{}:{obj:e,k:r(o.shift())}}function B(e,t,i){var r=L(e,t,Object);r.obj[r.k]=i}function P(e,t,i,r){var n=L(e,t,Object),o=n.obj,a=n.k;o[a]=o[a]||[],r&&(o[a]=o[a].concat(i)),r||o[a].push(i)}function I(e,t){var i=L(e,t),r=i.obj,n=i.k;if(r)return r[n]}function O(e,t,i){var r=I(e,i);return void 0!==r?r:I(t,i)}function R(e,t,i){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?i&&(e[r]=t[r]):R(e[r],t[r],i):e[r]=t[r]);return e}function N(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var H={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function V(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return H[e]}):e}var F="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,Z=function(e){function t(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return A(this,t),i=v(this,y(t).call(this)),F&&E.call((0,b.Z)(i)),i.data=e||{},i.options=r,void 0===i.options.keySeparator&&(i.options.keySeparator="."),i}return w(t,e),g(t,[{key:"addNamespaces",value:function(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=[e,t];return i&&"string"!=typeof i&&(o=o.concat(i)),i&&"string"==typeof i&&(o=o.concat(n?i.split(n):i)),e.indexOf(".")>-1&&(o=e.split(".")),I(this.data,o)}},{key:"addResource",value:function(e,t,i,r){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=this.options.keySeparator;void 0===o&&(o=".");var a=[e,t];i&&(a=a.concat(o?i.split(o):i)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),B(this.data,a,r),n.silent||this.emit("added",e,t,i,r)}},{key:"addResources",value:function(e,t,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var n in i)("string"==typeof i[n]||"[object Array]"===Object.prototype.toString.apply(i[n]))&&this.addResource(e,t,n,i[n],{silent:!0});r.silent||this.emit("added",e,t,i)}},{key:"addResourceBundle",value:function(e,t,i,r,n){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=i,i=t,t=a[1]),this.addNamespaces(t);var s=I(this.data,a)||{};r?R(s,i,n):s=p({},s,i),B(this.data,a,s),o.silent||this.emit("added",e,t,i)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?p({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(E),j={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,i,r,n){var o=this;return e.forEach(function(e){o.processors[e]&&(t=o.processors[e].process(t,i,r,n))}),t}},z={},G=function(e){function t(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return A(this,t),i=v(this,y(t).call(this)),F&&E.call((0,b.Z)(i)),S(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,(0,b.Z)(i)),i.options=r,void 0===i.options.keySeparator&&(i.options.keySeparator="."),i.logger=x.create("translator"),i}return w(t,e),g(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},i=this.resolve(e,t);return i&&void 0!==i.res}},{key:"extractFromKey",value:function(e,t){var i=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===i&&(i=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,n=t.ns||this.options.defaultNS;if(i&&e.indexOf(i)>-1){var o=e.match(this.interpolator.nestingRegexp);if(o&&o.length>0)return{key:e,namespaces:n};var a=e.split(i);(i!==r||i===r&&this.options.ns.indexOf(a[0])>-1)&&(n=a.shift()),e=a.join(r)}return"string"==typeof n&&(n=[n]),{key:e,namespaces:n}}},{key:"translate",value:function(e,i,r){var n=this;if("object"!==(0,d.Z)(i)&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),i||(i={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,a=this.extractFromKey(e[e.length-1],i),s=a.key,l=a.namespaces,u=l[l.length-1],f=i.lng||this.language,c=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&"cimode"===f.toLowerCase())return c?u+(i.nsSeparator||this.options.nsSeparator)+s:s;var h=this.resolve(e,i),A=h&&h.res,k=h&&h.usedKey||s,m=h&&h.exactUsedKey||s,g=Object.prototype.toString.apply(A),b=["[object Number]","[object Function]","[object RegExp]"],v=void 0!==i.joinArrays?i.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,Q="string"!=typeof A&&"boolean"!=typeof A&&"number"!=typeof A;if(y&&A&&Q&&0>b.indexOf(g)&&("string"!=typeof v||"[object Array]"!==g)){if(!i.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(k,A,i):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(o){var w="[object Array]"===g,_=w?[]:{},x=w?m:k;for(var E in A)if(Object.prototype.hasOwnProperty.call(A,E)){var C="".concat(x).concat(o).concat(E);_[E]=this.translate(C,p({},i,{joinArrays:!1,ns:l})),_[E]===C&&(_[E]=A[E])}A=_}}else if(y&&"string"==typeof v&&"[object Array]"===g)(A=A.join(v))&&(A=this.extendTranslation(A,e,i,r));else{var D=!1,S=!1,L=void 0!==i.count&&"string"!=typeof i.count,B=t.hasDefaultValue(i),P=L?this.pluralResolver.getSuffix(f,i.count):"",I=i["defaultValue".concat(P)]||i.defaultValue;!this.isValidLookup(A)&&B&&(D=!0,A=I),this.isValidLookup(A)||(S=!0,A=s);var O=B&&I!==A&&this.options.updateMissing;if(S||D||O){if(this.logger.log(O?"updateKey":"missingKey",f,u,s,O?I:A),o){var R=this.resolve(s,p({},i,{keySeparator:!1}));R&&R.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var N=[],H=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if("fallback"===this.options.saveMissingTo&&H&&H[0])for(var V=0;V1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!a.isValidLookup(t)){var l=a.extractFromKey(e,s),u=l.key;i=u;var f=l.namespaces;a.options.fallbackNS&&(f=f.concat(a.options.fallbackNS));var c=void 0!==s.count&&"string"!=typeof s.count,d=void 0!==s.context&&"string"==typeof s.context&&""!==s.context,h=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);f.forEach(function(e){a.isValidLookup(t)||(o=e,!z["".concat(h[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(o)&&(z["".concat(h[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(i,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(function(i){if(!a.isValidLookup(t)){n=i;var o,l,f=u,h=[f];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(h,u,i,e,s):(c&&(o=a.pluralResolver.getSuffix(i,s.count)),c&&d&&h.push(f+o),d&&h.push(f+="".concat(a.options.contextSeparator).concat(s.context)),c&&h.push(f+=o));l=h.pop();)a.isValidLookup(t)||(r=l,t=a.getResource(i,e,l,s))}}))})}}),{res:t,usedKey:i,exactUsedKey:r,usedLng:n,usedNS:o}}},{key:"isValidLookup",value:function(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,i,r):this.resourceStore.getResource(e,t,i,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&t===i.substring(0,t.length)&&void 0!==e[i])return!0;return!1}}]),t}(E);function U(e){return e.charAt(0).toUpperCase()+e.slice(1)}var X=function(){function e(t){A(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=x.create("languageUtils")}return g(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return null;var t=e.split("-");return 2===t.length||(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],i=e.split("-");return this.options.lowerCaseLng?i=i.map(function(e){return e.toLowerCase()}):2===i.length?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),t.indexOf(i[1].toLowerCase())>-1&&(i[1]=U(i[1].toLowerCase()))):3===i.length&&(i[0]=i[0].toLowerCase(),2===i[1].length&&(i[1]=i[1].toUpperCase()),"sgn"!==i[0]&&2===i[2].length&&(i[2]=i[2].toUpperCase()),t.indexOf(i[1].toLowerCase())>-1&&(i[1]=U(i[1].toLowerCase())),t.indexOf(i[2].toLowerCase())>-1&&(i[2]=U(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,i=this;return e?(e.forEach(function(e){if(!t){var r=i.formatLanguageCode(e);(!i.options.supportedLngs||i.isSupportedCode(r))&&(t=r)}}),!t&&this.options.supportedLngs&&e.forEach(function(e){if(!t){var r=i.getLanguagePartFromCode(e);if(i.isSupportedCode(r))return t=r;t=i.options.supportedLngs.find(function(e){if(0===e.indexOf(r))return e})}}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var i=e[t];return i||(i=e[this.getScriptPartFromCode(t)]),i||(i=e[this.formatLanguageCode(t)]),i||(i=e[this.getLanguagePartFromCode(t)]),i||(i=e.default),i||[]}},{key:"toResolveHierarchy",value:function(e,t){var i=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),n=[],o=function(e){e&&(i.isSupportedCode(e)?n.push(e):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),r.forEach(function(e){0>n.indexOf(e)&&o(i.formatLanguageCode(e))}),n}}]),e}(),W=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],$={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(+(1!=e&&(e%10!=1||e%100==11)))},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:3*(e%100==3||e%100==4))},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function Y(){var e={};return W.forEach(function(t){t.lngs.forEach(function(i){e[i]={numbers:t.nr,plurals:$[t.fc]}})}),e}var q=function(){function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};A(this,e),this.languageUtils=t,this.options=i,this.logger=x.create("pluralResolver"),this.rules=Y()}return g(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map(function(e){return t+e})}},{key:"getSuffixes",value:function(e){var t=this,i=this.getRule(e);return i?i.numbers.map(function(i){return t.getSuffix(e,i)}):[]}},{key:"getSuffix",value:function(e,t){var i=this,r=this.getRule(e);if(r){var n=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),o=r.numbers[n];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var a=function(){return i.options.prepend&&o.toString()?i.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?"_plural_".concat(o.toString()):a():"v2"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),J=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};A(this,e),this.logger=x.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return g(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:V,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?N(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?N(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?N(t.nestingPrefix):t.nestingPrefixEscaped||N("$t("),this.nestingSuffix=t.nestingSuffix?N(t.nestingSuffix):t.nestingSuffixEscaped||N(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=RegExp(t,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=RegExp(i,"g")}},{key:"interpolate",value:function(e,t,i,r){var n,o,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}var f=function(e){if(0>e.indexOf(s.formatSeparator)){var n=O(t,l,e);return s.alwaysFormat?s.format(n,void 0,i):n}var o=e.split(s.formatSeparator),a=o.shift().trim(),u=o.join(s.formatSeparator).trim();return s.format(O(t,l,a),u,i,r)};this.resetRegExp();var c=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return u(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?u(s.escape(e)):u(e)}}].forEach(function(t){for(a=0;n=t.regex.exec(e);){if(void 0===(o=f(n[1].trim())))if("function"==typeof c){var i=c(e,n,r);o="string"==typeof i?i:""}else if(d){o=n[0];continue}else s.logger.warn("missed to pass in variable ".concat(n[1]," for interpolating ").concat(e)),o="";else"string"==typeof o||s.useRawValueToEscape||(o=D(o));if(e=e.replace(n[0],t.safeValue(o)),t.regex.lastIndex=0,++a>=s.maxReplaces)break}}),e}},{key:"nest",value:function(e,t){var i,r,n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=p({},o);function s(e,t){var i=this.nestingOptionsSeparator;if(0>e.indexOf(i))return e;var r=e.split(new RegExp("".concat(i,"[ ]*{"))),n="{".concat(r[1]);e=r[0],n=(n=this.interpolate(n,a)).replace(/'/g,'"');try{a=JSON.parse(n),t&&(a=p({},t,a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(i).concat(n)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;i=this.nestingRegexp.exec(e);){var l=[],u=!1;if(i[0].includes(this.formatSeparator)&&!/{.*}/.test(i[1])){var f=i[1].split(this.formatSeparator).map(function(e){return e.trim()});i[1]=f.shift(),l=f,u=!0}if((r=t(s.call(this,i[1].trim(),a),a))&&i[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=D(r)),r||(this.logger.warn("missed to resolve ".concat(i[1]," for nesting ").concat(e)),r=""),u&&(r=l.reduce(function(e,t){return n.format(e,t,o.lng,o)},r.trim())),e=e.replace(i[0],r),this.regexp.lastIndex=0}return e}}]),e}();function K(e,t){for(var i=e.indexOf(t);-1!==i;)e.splice(i,1),i=e.indexOf(t)}var ee=function(e){function t(e,i,r){var n,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return A(this,t),n=v(this,y(t).call(this)),F&&E.call((0,b.Z)(n)),n.backend=e,n.store=i,n.services=r,n.languageUtils=r.languageUtils,n.options=o,n.logger=x.create("backendConnector"),n.state={},n.queue=[],n.backend&&n.backend.init&&n.backend.init(r,o.backend,o),n}return w(t,e),g(t,[{key:"queueLoad",value:function(e,t,i,r){var n=this,o=[],a=[],s=[],l=[];return e.forEach(function(e){var r=!0;t.forEach(function(t){var s="".concat(e,"|").concat(t);!i.reload&&n.store.hasResourceBundle(e,t)?n.state[s]=2:n.state[s]<0||(1===n.state[s]?0>a.indexOf(s)&&a.push(s):(n.state[s]=1,r=!1,0>a.indexOf(s)&&a.push(s),0>o.indexOf(s)&&o.push(s),0>l.indexOf(t)&&l.push(t)))}),r||s.push(e)}),(o.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:o,pending:a,toLoadLanguages:s,toLoadNamespaces:l}}},{key:"loaded",value:function(e,t,i){var r=e.split("|"),n=r[0],o=r[1];t&&this.emit("failedLoading",n,o,t),i&&this.store.addResourceBundle(n,o,i),this.state[e]=t?-1:2;var a={};this.queue.forEach(function(i){P(i.loaded,[n],o),K(i.pending,e),t&&i.errors.push(t),0!==i.pending.length||i.done||(Object.keys(i.loaded).forEach(function(e){a[e]||(a[e]=[]),i.loaded[e].length&&i.loaded[e].forEach(function(t){0>a[e].indexOf(t)&&a[e].push(t)})}),i.done=!0,i.errors.length?i.callback(i.errors):i.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,t,i){var r=this,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[i](e,t,function(s,l){if(s&&l&&n<5)return void setTimeout(function(){r.read.call(r,e,t,i,n+1,2*o,a)},o);a(s,l)}):a(null,{})}},{key:"prepareLoading",value:function(e,t){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var o=this.queueLoad(e,t,r,n);if(!o.toLoad.length)return o.pending.length||n(),null;o.toLoad.forEach(function(e){i.loadOne(e)})}},{key:"load",value:function(e,t,i){this.prepareLoading(e,t,{},i)}},{key:"reload",value:function(e,t,i){this.prepareLoading(e,t,{reload:!0},i)}},{key:"loadOne",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),n=r[0],o=r[1];this.read(n,o,"read",void 0,void 0,function(r,a){r&&t.logger.warn("".concat(i,"loading namespace ").concat(o," for language ").concat(n," failed"),r),!r&&a&&t.logger.log("".concat(i,"loaded namespace ").concat(o," for language ").concat(n),a),t.loaded(e,r,a)})}},{key:"saveMissing",value:function(e,t,i,r,n){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))return void this.logger.warn('did not save key "'.concat(i,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");null!=i&&""!==i&&(this.backend&&this.backend.create&&this.backend.create(e,t,i,r,null,p({},o,{isUpdate:n})),e&&e[0]&&this.store.addResource(e[0],t,i,r))}}]),t}(E);function et(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===(0,d.Z)(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===(0,d.Z)(e[2])||"object"===(0,d.Z)(e[3])){var i=e[3]||e[2];Object.keys(i).forEach(function(e){t[e]=i[e]})}return t},interpolation:{escapeValue:!0,format:function(e,t,i,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function ei(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&0>e.whitelist.indexOf("cimode")&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function er(){}var en=new(function(e){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(A(this,t),e=v(this,y(t).call(this)),F&&E.call((0,b.Z)(e)),e.options=ei(i),e.services={},e.logger=x,e.modules={external:[]},r&&!e.isInitialized&&!i.isClone){if(!e.options.initImmediate)return e.init(i,r),v(e,(0,b.Z)(e));setTimeout(function(){e.init(i,r)},0)}return e}return w(t,e),g(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(i=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=p({},et(),this.options,ei(t)),this.format=this.options.interpolation.format,i||(i=er),!this.options.isClone){this.modules.logger?x.init(r(this.modules.logger),this.options):x.init(null,this.options);var n=new X(this.options);this.store=new Z(this.options.resources,this.options);var o=this.services;o.logger=x,o.resourceStore=this.store,o.languageUtils=n,o.pluralResolver=new q(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),o.interpolator=new J(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new ee(r(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.on("*",function(t){for(var i=arguments.length,r=Array(i>1?i-1:0),n=1;n1?i-1:0),n=1;n0&&"dev"!==a[0]&&(this.options.lng=a[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(t){e[t]=function(){var i;return(i=e.store)[t].apply(i,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(t){e[t]=function(){var i;return(i=e.store)[t].apply(i,arguments),e}});var s=C(),l=function(){var t=function(t,r){e.isInitialized&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),s.resolve(r),i(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),s}},{key:"loadResources",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:er,r=i,n="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase())return r();var o=[],a=function(e){if(e){var i=t.services.languageUtils.toResolveHierarchy(e);i.forEach(function(e){0>o.indexOf(e)&&o.push(e)})}};n?a(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)}),this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(o,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,i){var r=C();return e||(e=this.languages),t||(t=this.options.ns),i||(i=er),this.services.backendConnector.reload(e,t,function(e){r.resolve(),i(e)}),r}},{key:"use",value:function(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&j.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var i=this;this.isLanguageChangingTo=e;var r=C();this.emit("languageChanging",e);var n=function(e,n){n?(i.language=n,i.languages=i.services.languageUtils.toResolveHierarchy(n),i.translator.changeLanguage(n),i.isLanguageChangingTo=void 0,i.emit("languageChanged",n),i.logger.log("languageChanged",n)):i.isLanguageChangingTo=void 0,r.resolve(function(){return i.t.apply(i,arguments)}),t&&t(e,function(){return i.t.apply(i,arguments)})},o=function(e){var t="string"==typeof e?e:i.services.languageUtils.getBestMatchFromCodes(e);t&&(i.language||(i.language=t,i.languages=i.services.languageUtils.toResolveHierarchy(t)),i.translator.language||i.translator.changeLanguage(t),i.services.languageDetector&&i.services.languageDetector.cacheUserLanguage(t)),i.loadResources(t,function(e){n(e,t)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t){var i=this,r=function e(t,r){var n;if("object"!==(0,d.Z)(r)){for(var o=arguments.length,a=Array(o>2?o-2:0),s=2;s1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],n=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,i){var r=t.services.backendConnector.state["".concat(e,"|").concat(i)];return -1===r||2===r};if(i.precheck){var s=i.precheck(this,a);if(void 0!==s)return s}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||a(r,e)&&(!n||a(o,e)))}},{key:"loadNamespaces",value:function(e,t){var i=this,r=C();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){0>i.options.ns.indexOf(e)&&i.options.ns.push(e)}),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var i=C();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],n=e.filter(function(e){return 0>r.indexOf(e)});return n.length?(this.options.preload=r.concat(n),this.loadResources(function(e){i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return(e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;return new t(e,i)}},{key:"cloneInstance",value:function(){var e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:er,n=p({},this.options,i,{isClone:!0}),o=new t(n);return["store","services","language"].forEach(function(t){o[t]=e[t]}),o.services=p({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new G(o.services,o.options),o.translator.on("*",function(e){for(var t=arguments.length,i=Array(t>1?t-1:0),r=1;r0}),i=[],r=0,n=t;r1)throw RangeError("integer-width stems only accept a single optional option");n.options[0].replace(e_,function(e,i,r,n,o,a){if(i)t.minimumIntegerDigits=r.length;else if(n&&o)throw Error("We currently do not support maximum integer digits");else if(a)throw Error("We currently do not support exact integer digits");return""});continue}if(ex.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(eQ.test(n.stem)){if(n.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(eQ,function(e,i,r,n,o,a){return"*"===r?t.minimumFractionDigits=i.length:n&&"#"===n[0]?t.maximumFractionDigits=n.length:o&&a?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+a.length):(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length),""});var o=n.options[0];"w"===o?t=(0,eo.pi)((0,eo.pi)({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=(0,eo.pi)((0,eo.pi)({},t),eE(o)));continue}if(ew.test(n.stem)){t=(0,eo.pi)((0,eo.pi)({},t),eE(n.stem));continue}var a=eC(n.stem);a&&(t=(0,eo.pi)((0,eo.pi)({},t),a));var s=eD(n.stem);s&&(t=(0,eo.pi)((0,eo.pi)({},t),s))}return t}var eB={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","h","K"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TL:["H","hB","hb","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function eP(e,t){for(var i="",r=0;r>1),l="a",u=eM(t);for(("H"==u||"k"==u)&&(s=0);s-- >0;)i+=l;for(;a-- >0;)i=u+i}else"J"===n?i+="H":i+=n}return i}function eM(e){var t,i=e.hourCycle;if(void 0===i&&e.hourCycles&&e.hourCycles.length&&(i=e.hourCycles[0]),i)switch(i){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}var r=e.language;return"root"!==r&&(t=e.maximize().region),(eB[t||""]||eB[r||""]||eB["".concat(r,"-001")]||eB["001"])[0]}var eI=new RegExp("^".concat(em.source,"*")),eO=new RegExp("".concat(em.source,"*$"));function eR(e,t){return{start:e,end:t}}var eN=!!String.prototype.startsWith&&"_a".startsWith("a",1),eH=!!String.fromCodePoint,eV=!!Object.fromEntries,eF=!!String.prototype.codePointAt,eZ=!!String.prototype.trimStart,ej=!!String.prototype.trimEnd,ez=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&0x1fffffffffffff>=Math.abs(e)},eG=!0;try{eG=(null==(a=eJ("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:a[0])==="a"}catch(e){eG=!1}var eU=eN?function(e,t,i){return e.startsWith(t,i)}:function(e,t,i){return e.slice(i,i+t.length)===t},eX=eH?String.fromCodePoint:function(){for(var e,t=[],i=0;io;){if((e=t[o++])>1114111)throw RangeError(e+" is not a valid code point");r+=e<65536?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,e%1024+56320)}return r},eW=eV?Object.fromEntries:function(e){for(var t={},i=0,r=e;i=r)){var n=e.charCodeAt(t);return n<55296||n>56319||t+1===r||(i=e.charCodeAt(t+1))<56320||i>57343?n:(n-55296<<10)+(i-56320)+65536}},eY=eZ?function(e){return e.trimStart()}:function(e){return e.replace(eI,"")},eq=ej?function(e){return e.trimEnd()}:function(e){return e.replace(eO,"")};function eJ(e,t){return new RegExp(e,t)}if(eG){var eK=eJ("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");s=function(e,t){var i;return eK.lastIndex=t,null!=(i=eK.exec(e)[1])?i:""}}else s=function(e,t){for(var i=[];;){var r=e$(e,t);if(void 0===r||e6(r)||e3(r))break;i.push(r),t+=r>=65536?2:1}return eX.apply(void 0,i)};var e0=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,i){for(var o=[];!this.isEOF();){var a=this.char();if(123===a){var s=this.parseArgument(e,i);if(s.err)return s;o.push(s.val)}else if(125===a&&e>0)break;else if(35===a&&("plural"===t||"selectordinal"===t)){var l=this.clonePosition();this.bump(),o.push({type:n.pound,location:eR(l,this.clonePosition())})}else if(60!==a||this.ignoreTag||47!==this.peek())if(60===a&&!this.ignoreTag&&e2(this.peek()||0)){var s=this.parseTag(e,t);if(s.err)return s;o.push(s.val)}else{var s=this.parseLiteral(e,t);if(s.err)return s;o.push(s.val)}else if(!i)return this.error(r.UNMATCHED_CLOSING_TAG,eR(this.clonePosition(),this.clonePosition()));else break}return{val:o,err:null}},e.prototype.parseTag=function(e,t){var i=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:n.literal,value:"<".concat(o,"/>"),location:eR(i,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(r.INVALID_TAG,eR(i,this.clonePosition()));var a=this.parseMessage(e+1,t,!0);if(a.err)return a;var s=a.val,l=this.clonePosition();if(!this.bumpIf(""))return this.error(r.UNCLOSED_TAG,eR(i,this.clonePosition()));if(this.isEOF()||!e2(this.char()))return this.error(r.INVALID_TAG,eR(l,this.clonePosition()));var u=this.clonePosition();return o!==this.parseTagName()?this.error(r.UNMATCHED_CLOSING_TAG,eR(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">"))?{val:{type:n.tag,value:o,children:s,location:eR(i,this.clonePosition())},err:null}:this.error(r.INVALID_TAG,eR(l,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&e4(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var i=this.clonePosition(),r="";;){var o=this.tryParseQuote(t);if(o){r+=o;continue}var a=this.tryParseUnquoted(e,t);if(a){r+=a;continue}var s=this.tryParseLeftAngleBracket();if(s){r+=s;continue}break}var l=eR(i,this.clonePosition());return{val:{type:n.literal,value:r,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&e1(this.peek()||0)?null:(this.bump(),"<")},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(39===i)if(39===this.peek())t.push(39),this.bump();else{this.bump();break}else t.push(i);this.bump()}return eX.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var i=this.char();return 60===i||123===i||35===i&&("plural"===t||"selectordinal"===t)||125===i&&e>0?null:(this.bump(),eX(i))},e.prototype.parseArgument=function(e,t){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,eR(i,this.clonePosition()));if(125===this.char())return this.bump(),this.error(r.EMPTY_ARGUMENT,eR(i,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(r.MALFORMED_ARGUMENT,eR(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,eR(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:n.argument,value:o,location:eR(i,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,eR(i,this.clonePosition()));return this.parseArgumentOptions(e,t,o,i);default:return this.error(r.MALFORMED_ARGUMENT,eR(i,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),i=s(this.message,t),r=t+i.length;return this.bumpTo(r),{value:i,location:eR(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,i,a){var s,l=this.clonePosition(),u=this.parseIdentifierIfPossible().value,f=this.clonePosition();switch(u){case"":return this.error(r.EXPECT_ARGUMENT_TYPE,eR(l,f));case"number":case"date":case"time":this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition(),h=this.parseSimpleArgStyleIfPossible();if(h.err)return h;var p=eq(h.val);if(0===p.length)return this.error(r.EXPECT_ARGUMENT_STYLE,eR(this.clonePosition(),this.clonePosition()));c={style:p,styleLocation:eR(d,this.clonePosition())}}var A=this.tryParseArgumentClose(a);if(A.err)return A;var k=eR(a,this.clonePosition());if(c&&eU(null==c?void 0:c.style,"::",0)){var m=eY(c.style.slice(2));if("number"===u){var h=this.parseNumberSkeletonFromString(m,c.styleLocation);if(h.err)return h;return{val:{type:n.number,value:i,location:k,style:h.val},err:null}}if(0===m.length)return this.error(r.EXPECT_DATE_TIME_SKELETON,k);var g=m;this.locale&&(g=eP(m,this.locale));var p={type:o.dateTime,pattern:g,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?eb(g):{}};return{val:{type:"date"===u?n.date:n.time,value:i,location:k,style:p},err:null}}return{val:{type:"number"===u?n.number:"date"===u?n.date:n.time,value:i,location:k,style:null!=(s=null==c?void 0:c.style)?s:null},err:null};case"plural":case"selectordinal":case"select":var b=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(r.EXPECT_SELECT_ARGUMENT_OPTIONS,eR(b,(0,eo.pi)({},b)));this.bumpSpace();var v=this.parseIdentifierIfPossible(),y=0;if("select"!==u&&"offset"===v.value){if(!this.bumpIf(":"))return this.error(r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,eR(this.clonePosition(),this.clonePosition()));this.bumpSpace();var h=this.tryParseDecimalInteger(r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,r.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),v=this.parseIdentifierIfPossible(),y=h.val}var Q=this.tryParsePluralOrSelectOptions(e,u,t,v);if(Q.err)return Q;var A=this.tryParseArgumentClose(a);if(A.err)return A;var w=eR(a,this.clonePosition());if("select"===u)return{val:{type:n.select,value:i,options:eW(Q.val),location:w},err:null};return{val:{type:n.plural,value:i,options:eW(Q.val),offset:y,pluralType:"plural"===u?"cardinal":"ordinal",location:w},err:null};default:return this.error(r.INVALID_ARGUMENT_TYPE,eR(l,f))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,eR(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(r.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,eR(i,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var i=[];try{i=ev(e)}catch(e){return this.error(r.INVALID_NUMBER_SKELETON,t)}return{val:{type:o.number,tokens:i,location:t,parsedOptions:this.shouldParseSkeletons?eL(i):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,i,n){for(var o,a=!1,s=[],l=new Set,u=n.value,f=n.location;;){if(0===u.length){var c=this.clonePosition();if("select"!==t&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(r.EXPECT_PLURAL_ARGUMENT_SELECTOR,r.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;f=eR(c,this.clonePosition()),u=this.message.slice(c.offset,this.offset())}else break}if(l.has(u))return this.error("select"===t?r.DUPLICATE_SELECT_ARGUMENT_SELECTOR:r.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);"other"===u&&(a=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?r.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:r.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,eR(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,i);if(p.err)return p;var A=this.tryParseArgumentClose(h);if(A.err)return A;s.push([u,{value:p.val,location:eR(h,this.clonePosition())}]),l.add(u),this.bumpSpace(),u=(o=this.parseIdentifierIfPossible()).value,f=o.location}return 0===s.length?this.error("select"===t?r.EXPECT_SELECT_ARGUMENT_SELECTOR:r.EXPECT_PLURAL_ARGUMENT_SELECTOR,eR(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(r.MISSING_OTHER_CLAUSE,eR(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var i=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var n=!1,o=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)n=!0,o=10*o+(a-48),this.bump();else break}var s=eR(r,this.clonePosition());return n?ez(o*=i)?{val:o,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=e$(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(eU(this.message,e,this.offset())){for(var t=0;t=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&e6(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),i=this.message.charCodeAt(t+(e>=65536?2:1));return null!=i?i:null},e}();function e2(e){return e>=97&&e<=122||e>=65&&e<=90}function e1(e){return e2(e)||47===e}function e4(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function e6(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function e3(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function e5(e){e.forEach(function(e){if(delete e.location,ec(e)||ed(e))for(var t in e.options)delete e.options[t].location,e5(e.options[t].value);else el(e)&&eA(e.style)||(eu(e)||ef(e))&&ek(e.style)?delete e.style.location:ep(e)&&e5(e.children)})}function e8(e,t){void 0===t&&(t={});var i=new e0(e,t=(0,eo.pi)({shouldParseSkeletons:!0,requiresOtherClause:!0},t)).parse();if(i.err){var n=SyntaxError(r[i.err.kind]);throw n.location=i.err.location,n.originalMessage=i.err.message,n}return(null==t?void 0:t.captureLocation)||e5(i.val),i.val}function e7(e,t){var i=t&&t.cache?t.cache:ts,r=t&&t.serializer?t.serializer:to;return(t&&t.strategy?t.strategy:tr)(e,{cache:i,serializer:r})}function e9(e){return null==e||"number"==typeof e||"boolean"==typeof e}function te(e,t,i,r){var n=e9(r)?r:i(r),o=t.get(n);return void 0===o&&(o=e.call(this,r),t.set(n,o)),o}function tt(e,t,i){var r=Array.prototype.slice.call(arguments,3),n=i(r),o=t.get(n);return void 0===o&&(o=e.apply(this,r),t.set(n,o)),o}function ti(e,t,i,r,n){return i.bind(t,e,r,n)}function tr(e,t){var i=1===e.length?te:tt;return ti(e,this,i,t.cache.create(),t.serializer)}function tn(e,t){return ti(e,this,tt,t.cache.create(),t.serializer)}var to=function(){return JSON.stringify(arguments)};function ta(){this.cache=Object.create(null)}ta.prototype.get=function(e){return this.cache[e]},ta.prototype.set=function(e,t){this.cache[e]=t};var ts={create:function(){return new ta}},tl=tn;!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(l||(l={}));var tu=function(e){function t(t,i,r){var n=e.call(this,t)||this;return n.code=i,n.originalMessage=r,n}return(0,eo.ZT)(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),tf=function(e){function t(t,i,r,n){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(i,'". Options are "').concat(Object.keys(r).join('", "'),'"'),l.INVALID_VALUE,n)||this}return(0,eo.ZT)(t,e),t}(tu),tc=function(e){function t(t,i,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(i),l.INVALID_VALUE,r)||this}return(0,eo.ZT)(t,e),t}(tu),td=function(e){function t(t,i){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(i,'"'),l.MISSING_VALUE,i)||this}return(0,eo.ZT)(t,e),t}(tu);function th(e){return e.length<2?e:e.reduce(function(e,t){var i=e[e.length-1];return i&&i.type===u.literal&&t.type===u.literal?i.value+=t.value:e.push(t),e},[])}function tp(e){return"function"==typeof e}function tA(e,t,i,r,n,o,a){if(1===e.length&&ea(e[0]))return[{type:u.literal,value:e[0].value}];for(var s=[],f=0,c=e;f0?t[0]:"string"==typeof e?e:e[0])}},e.__parse=e8,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),tv=function(){return(tv=Object.assign||function(e){for(var t,i=1,r=arguments.length;i-1?e.replace(/###/g,"."):e}function n(){return!e||"string"==typeof e}void 0===i&&(i=null);for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(n())return{};var a=r(o.shift());!e[a]&&i&&(e[a]=new i),e=e[a]}return n()?{}:{obj:e,k:r(o.shift())}}function tQ(e,t,i){var r=ty(e,t,Object);r.obj[r.k]=i}function tw(e,t){var i=ty(e,t),r=i.obj,n=i.k;if(r)return r[n]}!function(e){e.keepRaw="keepRaw",e.replaceAnyway="replaceAnyway"}(f||(f={})),f.replaceAnyway;var t_={memoize:!1,memoizeFallback:!1,bindI18n:!1,bindI18nStore:!1,onParseError:f.replaceAnyway},tx=function(){function e(){this.mem={}}return e.staticInit=function(t){e._i18nextInstance=t},e.prototype.init=function(t,i){var r=this;void 0===t&&(t=e._i18nextInstance);var n={};if((null==t?void 0:t.options)&&(t.options.i18nFormat&&(n=t.options.i18nFormat),n.onParseError=t.options.onParseError,n.missingInterpolationHandler=t.options.missingInterpolationHandler,n.icuConfig=t.options.icuConfig,n.ignoreWarning=!!t.options.ignoreWarning),this.options=Object.assign(t_,i,n),this.formats=this.options.formats,t){var o=this.options,a=o.bindI18n,s=o.bindI18nStore,l=o.memoize;t.IntlMessageFormat=tT,this.IntlMessageFormat=tT,t.ICU=this,l&&(a&&t.on(a,function(){return r.clearCache()}),s&&t.store.on(s,function(){return r.clearCache()}))}this.options.localeData&&("[object Array]"===Object.prototype.toString.apply(this.options.localeData)?this.options.localeData.forEach(function(e){return r.addLocaleData(e)}):this.addLocaleData(this.options.localeData))},e.prototype.addLocaleData=function(e){("[object Array]"===Object.prototype.toString.apply(e)?e:[e]).forEach(function(e){e&&e.locale&&tT.__addLocaleData(e)})},e.prototype.addUserDefinedFormats=function(e){this.formats=this.formats?tv(tv({},this.formats),e):e},e.prototype.checkMissingInterpolation=function(e,t,i,r,n){if(!1===(this.options.icuConfig||{}).strict)return i;for(var o={},a=0,s=e;a-1?(window.__STARLING_INCONTEXT_GLOBAL__HOOK__.payload[t][l].default=e,n=l):n=window.__STARLING_INCONTEXT_GLOBAL__HOOK__.payload[t].push({options:i,default:e})-1}else window.__STARLING_INCONTEXT_GLOBAL__HOOK__.payload[t]=[{options:i,default:e}],n=0;return"[[__starling_"+n+"_"+t+"__]]"}};function tB(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function tP(e,t){for(var i=0;ie.length)&&(t=e.length);for(var i=0,r=Array(t);i=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:n}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==i.return||i.return()}finally{if(s)throw o}}}}for(var tZ=["AFN","EUR","ALL","DZD","USD","AOA","XCD","ARS","AMD","AWG","AUD","AZN","BSD","BHD","BDT","BBD","BYN","BZD","XOF","BMD","INR","BTN","BOB","BOV","BAM","BWP","NOK","BRL","BND","BGN","BIF","CVE","KHR","XAF","CAD","KYD","CLP","CLF","CNY","COP","COU","KMF","CDF","NZD","CRC","HRK","CUP","CUC","ANG","CZK","DKK","DJF","DOP","EGP","SVC","ERN","ETB","FKP","FJD","XPF","GMD","GEL","GHS","GIP","GTQ","GBP","GNF","GYD","HTG","HNL","HKD","HUF","ISK","IDR","XDR","IRR","IQD","ILS","JMD","JPY","JOD","KZT","KES","KPW","KRW","KWD","KGS","LAK","LBP","LSL","ZAR","LRD","LYD","CHF","MOP","MKD","MGA","MWK","MYR","MVR","MRO","MUR","XUA","MXN","MXV","MDL","MNT","MAD","MZN","MMK","NAD","NPR","NIO","NGN","OMR","PKR","PAB","PGK","PYG","PEN","PHP","PLN","QAR","RON","RUB","RWF","SHP","WST","STD","SAR","RSD","SCR","SLL","SGD","XSU","SBD","SOS","SSP","LKR","SDG","SRD","SZL","SEK","CHE","CHW","SYP","TWD","TJS","TZS","THB","TOP","TTD","TND","TRY","TMT","UGX","UAH","AED","USN","UYU","UYI","UZS","VUV","VEF","VND","YER","ZMW","ZWL","XBA","XBB","XBC","XBD","XTS","XXX","XAU","XPD","XPT","XAG"],tj={},tz=0;tz0){let i=n.decode(o.subarray(0,a)),s=a+(32===o[a+1]?2:1),l=n.decode(o.subarray(s));switch(i){case"data":r.data=r.data?r.data+"\n"+l:l;break;case"event":r.event=l;break;case"id":e(r.id=l);break;case"retry":let u=parseInt(l,10);isNaN(u)||t(r.retry=u)}}}}function a(e,t){let i=new Uint8Array(e.length+t.length);return i.set(e),i.set(t,e.length),i}function s(){return{data:"",event:"",id:"",retry:void 0}}i.d(t,{L:()=>d});var l=function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(i[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,r=Object.getOwnPropertySymbols(e);nt.indexOf(r[n])&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(i[r[n]]=e[r[n]]);return i};let u="text/event-stream",f=1e3,c="last-event-id";function d(e,t){var{signal:i,headers:a,onopen:s,onmessage:d,onclose:p,onerror:A,openWhenHidden:k,fetch:m}=t,g=l(t,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((t,l)=>{let b,v=Object.assign({},a);function y(){b.abort(),document.hidden||C()}v.accept||(v.accept=u),k||document.addEventListener("visibilitychange",y);let Q=f,w=0;function _(){document.removeEventListener("visibilitychange",y),window.clearTimeout(w),b.abort()}null==i||i.addEventListener("abort",()=>{_(),t()});let x=null!=m?m:window.fetch,E=null!=s?s:h;async function C(){var i;b=new AbortController;try{let i=await x(e,Object.assign(Object.assign({},g),{headers:v,signal:b.signal}));await E(i),await r(i.body,n(o(e=>{e?v[c]=e:delete v[c]},e=>{Q=e},d))),null==p||p(),_(),t()}catch(e){if(!b.signal.aborted)try{let t=null!=(i=null==A?void 0:A(e))?i:Q;window.clearTimeout(w),w=window.setTimeout(C,t)}catch(e){_(),l(e)}}}C()})}function h(e){let t=e.headers.get("content-type");if(!(null==t?void 0:t.startsWith(u)))throw Error(`Expected content-type to be ${u}, Actual: ${t}`)}},87596:function(e){e.exports={}},62913:function(e,t,i){"use strict";var r,n=i(95291),o={stream:!0};function a(e,t){if(e){var i=e[t[0]];if(e=i&&i[t[2]])i=e.name;else{if(!(e=i&&i["*"]))throw Error('Could not find the module "'+t[0]+'" in the React Server Consumer Manifest. This is probably a bug in the React Server Components bundler.');i=t[2]}return 4===t.length?[e.id,e.chunks,i,1]:[e.id,e.chunks,i]}return t}function s(e,t){var i="",r=e[t];if(r)i=r.name;else{var n=t.lastIndexOf("#");if(-1!==n&&(i=t.slice(n+1),r=e[t.slice(0,n)]),!r)throw Error('Could not find the module "'+t+'" in the React Server Manifest. This is probably a bug in the React Server Components bundler.')}return r.async?[r.id,r.chunks,i,1]:[r.id,r.chunks,i]}var l=new Map;function u(e){var t=i(e);return"function"!=typeof t.then||"fulfilled"===t.status?null:(t.then(function(e){t.status="fulfilled",t.value=e},function(e){t.status="rejected",t.reason=e}),t)}function f(){}function c(e){for(var t=e[1],r=[],n=0;ns||35===s||114===s||120===s?(l=s,s=3,a++):(l=0,s=3);continue;case 2:44===(d=o[a++])?s=4:u=u<<4|(96o.length&&(d=-1)}var h=o.byteOffset+a;if(-1eD,$OL:()=>tt,AGs:()=>I,Aqk:()=>e$,DJH:()=>eA,Dxd:()=>eR,E5Y:()=>eb,EFi:()=>tE,Eew:()=>ej,Eok:()=>eE,FCX:()=>S,GV4:()=>eQ,Hgt:()=>eP,I3p:()=>tb,JW4:()=>b,JaH:()=>eH,JrY:()=>G,KuV:()=>e8,LtE:()=>ev,PsU:()=>m,QHi:()=>t_,Qoz:()=>X,RUP:()=>eu,RcJ:()=>et,Rr_:()=>j,T$Y:()=>er,UWx:()=>$,VG8:()=>A,Vv4:()=>tL,VwZ:()=>e9,Xvc:()=>eL,_ME:()=>c,_SF:()=>to,bMz:()=>u,cbF:()=>e_,dVr:()=>tc,enk:()=>th,fuJ:()=>tP,gQq:()=>B,gbz:()=>ec,ioX:()=>tv,jAk:()=>e4,jFK:()=>e3,lUh:()=>eq,mBz:()=>tm,nM3:()=>eh,qGP:()=>H,rFk:()=>K,s$$:()=>x,srq:()=>F,tl7:()=>eG,ua6:()=>ts,ul1:()=>w,umY:()=>eF,v37:()=>q,vG4:()=>eX,vUr:()=>y,vlK:()=>tD,vmL:()=>em,vw7:()=>tu,wfm:()=>tQ,x2B:()=>h,x2q:()=>eK,x8P:()=>C,xAJ:()=>eo,xDy:()=>eI,xH9:()=>tA,yAo:()=>es,yZ8:()=>tr,y_Q:()=>R,zqt:()=>e2});var r=i(18571);function n(e,t){if(null==e)return{};var i,r,n={},o=Object.keys(e);for(r=0;r=0||(n[i]=e[i]);return n}function o(e,t){if(null==e)return{};var i,r,o=n(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(o[i]=e[i])}return o}var a="style_spin__5uCiL",s="style_rtl__vYVyg";!function(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===i&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}(".style_spin__5uCiL,.style_spin__5uCiL svg {animation: style_iconpark-spin__mGDV3 1s infinite linear;}\n.style_rtl__vYVyg,.style_rtl__vYVyg svg {transform: scaleX(-1);}\n.style_spin__5uCiL.style_rtl__vYVyg,.style_spin__5uCiL.style_rtl__vYVyg svg {animation: style_iconpark-spin-rtl__ZyqaE 1s infinite linear;}\n@keyframes style_iconpark-spin__mGDV3 {\n 0% { -webkit-transform: rotate(0); transform: rotate(0);} 100% {-webkit-transform: rotate(360deg); transform: rotate(360deg);}\n}\n@keyframes style_iconpark-spin-rtl__ZyqaE {\n 0% {-webkit-transform: scaleX(-1) rotate(0); transform: scaleX(-1) rotate(0);} 100% {-webkit-transform: scaleX(-1) rotate(360deg); transform: scaleX(-1) rotate(360deg);}\n}");var l=["size","width","height","spin","rtl","color","fill","stroke","className"];function u(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,u=e.width,f=e.height,c=e.spin,d=e.rtl,h=e.color,p=e.fill,A=e.stroke,k=e.className,m=o(e,l),g=u||n,b=f||n,v=A||h,y=p||h;return(0,r.useEffect)(function(){var e,i;y||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),v||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[A,h,p]),r.createElement("svg",Object.assign({ref:t,width:g,height:b,viewBox:"0 0 20 20",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(k||""," ").concat(c?a:""," ").concat(d?s:"").trim()},m),r.createElement("g",null,r.createElement("path",{"data-follow-fill":"currentColor",d:"m9.998 11.178 5.724 5.724a.5.5 0 0 0 .707 0l.471-.471a.5.5 0 0 0 0-.707L11.177 10 16.9 4.276a.5.5 0 0 0 0-.707l-.471-.471a.5.5 0 0 0-.707 0L9.998 8.82 4.274 3.098a.5.5 0 0 0-.707 0l-.471.471a.5.5 0 0 0 0 .707L8.82 10l-5.724 5.724a.5.5 0 0 0 0 .707l.471.471a.5.5 0 0 0 .707 0l5.724-5.724Z",fill:y})))}var f=["size","width","height","spin","rtl","color","fill","stroke","className"];function c(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,c=e.spin,d=e.rtl,h=e.color,p=e.fill,A=e.stroke,k=e.className,m=o(e,f),g=l||n,b=u||n,v=A||h,y=p||h;return(0,r.useEffect)(function(){var e,i;y||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),v||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[A,h,p]),r.createElement("svg",Object.assign({ref:t,width:g,height:b,viewBox:"0 0 25 24",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(k||""," ").concat(c?a:""," ").concat(d?s:"").trim()},m),r.createElement("g",null,r.createElement("path",{d:"M13.344 16.607a1.2 1.2 0 0 1-1.687 0l-7.801-7.71a.5.5 0 0 1-.004-.706l.984-.996a.5.5 0 0 1 .707-.004l6.957 6.875 6.957-6.875a.5.5 0 0 1 .707.004l.985.996a.5.5 0 0 1-.005.707l-7.8 7.71Z",clipRule:"evenodd",fillRule:"evenodd","data-follow-fill":"currentColor",fill:y})))}var d=["size","width","height","spin","rtl","color","fill","stroke","className"];function h(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,h=e.color,p=e.fill,A=e.stroke,k=e.className,m=o(e,d),g=l||n,b=u||n,v=A||h,y=p||h;return(0,r.useEffect)(function(){var e,i;y||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),v||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[A,h,p]),r.createElement("svg",Object.assign({ref:t,width:g,height:b,viewBox:"0 0 16 16",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(k||""," ").concat(f?a:""," ").concat(c?s:"").trim()},m),r.createElement("g",null,r.createElement("path",{"data-follow-fill":"#15293C",fillRule:"evenodd",clipRule:"evenodd",d:"m12.389 4.528-.943-.943a.667.667 0 0 0-.943 0L9.487 4.6l1.886 1.885 1.016-1.016a.667.667 0 0 0 0-.942Zm-1.96 2.901L8.545 5.544l-5.21 5.21v1.912h1.86l5.236-5.237Zm1.96-4.787.942.943a2 2 0 0 1 0 2.828l-7.39 7.39-.196.196H2v-3.797l.195-.195L9.56 2.642a2 2 0 0 1 2.829 0ZM8.667 12.666H14v1.333H7.333l1.334-1.333Z",fillOpacity:".5",fill:y})))}var p=["size","width","height","spin","rtl","color","fill","stroke","className"];function A(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,A=e.stroke,k=e.className,m=o(e,p),g=l||n,b=u||n,v=A||d,y=h||d;return(0,r.useEffect)(function(){var e,i;y||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),v||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[A,d,h]),r.createElement("svg",Object.assign({ref:t,width:g,height:b,viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(k||""," ").concat(f?a:""," ").concat(c?s:"").trim()},m),r.createElement("g",null,r.createElement("path",{d:"M16.607 12.844a1.2 1.2 0 0 0 0-1.687l-7.71-7.8a.5.5 0 0 0-.706-.005l-.996.984a.5.5 0 0 0-.004.707l6.875 6.958-6.875 6.957a.5.5 0 0 0 .004.707l.996.984a.5.5 0 0 0 .707-.004l7.71-7.8Z",clipRule:"evenodd",fillRule:"evenodd","data-follow-fill":"currentColor",fill:y})))}var k=["size","width","height","spin","rtl","color","fill","stroke","className"];function m(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,m=o(e,k),g=l||n,b=u||n,v=p||d,y=h||d;return(0,r.useEffect)(function(){var e,i;y||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),v||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:g,height:b,viewBox:"0 0 20 20",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},m),r.createElement("g",null,r.createElement("path",{"data-follow-fill":"currentColor",d:"m7.974 10 6.782 5.71-1.61 1.913-7.16-6.03a2.083 2.083 0 0 1 0-3.187l7.16-6.029 1.61 1.912L7.974 10Z",fill:y})))}var g=["size","width","height","spin","rtl","color","fill","stroke","className"];function b(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,g),m=l||n,b=u||n,v=p||d,y=h||d;return(0,r.useEffect)(function(){var e,i;y||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),v||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:b,viewBox:"0 0 18 18",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("rect",{width:"18",height:"18",rx:"9",fill:"#090C14"}),r.createElement("path",{d:"M14.14 6.265a.375.375 0 0 1 0 .53l-6 6a.375.375 0 0 1-.53 0l-3.75-3.75a.375.375 0 0 1 0-.53l.53-.53a.375.375 0 0 1 .53 0l2.955 2.954 5.204-5.204a.375.375 0 0 1 .53 0l.531.53Z",fill:"#fff"})))}var v=["size","width","height","spin","rtl","color","fill","stroke","className"];function y(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,v),m=l||n,g=u||n,b=p||d,y=h||d;return(0,r.useEffect)(function(){var e,i;y||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 21 20",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{"data-follow-fill":"currentColor",d:"M6.847 2.5 6.4 4.167H13A3.333 3.333 0 0 1 16.333 7.5v5h-.003v1.604l1.67-.447V7.5a5 5 0 0 0-5-5H6.847Z",fill:y}),r.createElement("path",{"data-follow-fill":"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 5.833a2.5 2.5 0 0 0-2.5 2.5V15a2.5 2.5 0 0 0 2.5 2.5h6.667a2.5 2.5 0 0 0 2.5-2.5V8.333a2.5 2.5 0 0 0-2.5-2.5H5.5ZM12.167 7.5H5.5a.833.833 0 0 0-.833.833V15c0 .46.373.833.833.833h6.667c.46 0 .833-.373.833-.833V8.333a.833.833 0 0 0-.833-.833Z",fill:y})))}var Q=["size","width","height","spin","rtl","color","fill","stroke","className"];function w(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,Q),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 10 10",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{d:"M8.16 1.789a.208.208 0 0 1 .296 0l.589.589a.208.208 0 0 1 0 .295L3.897 7.82a.208.208 0 0 1-.294 0L.956 5.173a.208.208 0 0 1 0-.295l.589-.59a.208.208 0 0 1 .294 0L3.75 6.2l4.41-4.41Z","data-follow-fill":"#6F2CF7",fill:v})))}var _=["size","width","height","spin","rtl","color","fill","stroke","className"];function x(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,_),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{d:"M7.393 12.844a1.2 1.2 0 0 1 0-1.687l7.71-7.8a.5.5 0 0 1 .706-.005l.996.984a.5.5 0 0 1 .004.707l-6.875 6.958 6.875 6.957a.5.5 0 0 1-.004.707l-.996.984a.5.5 0 0 1-.707-.004l-7.71-7.8Z",clipRule:"evenodd",fillRule:"evenodd","data-follow-fill":"currentColor",fill:v})))}var E=["size","width","height","spin","rtl","color","fill","stroke","className"];function C(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,E),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 16 16",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("rect",{fillOpacity:".06",fill:"#2E4A66",rx:"8",height:"16",width:"16"}),r.createElement("path",{fillOpacity:".7",fill:"#141D2D",d:"m7.246 7.999-2.644 2.644a.222.222 0 0 0 0 .314l.44.44a.222.222 0 0 0 .314 0L8 8.754l2.644 2.645a.222.222 0 0 0 .314 0l.44-.44a.222.222 0 0 0 0-.315L8.754 8l2.644-2.644a.222.222 0 0 0 0-.315l-.44-.44a.222.222 0 0 0-.314 0L8 7.245 5.356 4.6a.222.222 0 0 0-.314 0l-.44.44a.222.222 0 0 0 0 .315l2.644 2.644Z",clipRule:"evenodd",fillRule:"evenodd"})))}var D=["size","width","height","spin","rtl","color","fill","stroke","className"];function S(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,D),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 16 16",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{"data-follow-fill":"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M14.667 7.999a6.667 6.667 0 1 1-13.333 0 6.667 6.667 0 0 1 13.333 0Zm-7.333-3c0-.184.149-.334.333-.334h.667c.184 0 .333.15.333.334v4c0 .184-.15.333-.333.333h-.667a.333.333 0 0 1-.333-.333v-4Zm.333 5a.333.333 0 0 0-.333.333v.667c0 .184.149.333.333.333h.667c.184 0 .333-.15.333-.333v-.667a.333.333 0 0 0-.333-.333h-.667Z",fill:v})))}var L=["size","width","height","spin","rtl","color","fill","stroke","className"];function B(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,L),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 18 18",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{"data-follow-fill":"currentColor",d:"M5.25 9a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm5.25 0a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm3.75 1.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z",fill:v})))}var P=["size","width","height","spin","rtl","color","fill","stroke","className"];function I(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,P),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 25 24",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{d:"M12.203 19A7 7 0 1 0 6.778 7.575L8.35 9.146a.5.5 0 0 1-.353.854h-4.57c.005-.024.01-.049.017-.073a.5.5 0 0 1-.24-.427V5.207a.5.5 0 0 1 .853-.353l1.302 1.302A9 9 0 1 1 3.425 14h2.068c.86 2.892 3.539 5 6.71 5Z","data-follow-fill":"#090C14",fill:v})))}var O=["size","width","height","spin","rtl","color","fill","stroke","className"];function R(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,O),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{d:"M11.157 7.393a1.2 1.2 0 0 1 1.687 0l7.8 7.71a.5.5 0 0 1 .005.706l-.985.996a.5.5 0 0 1-.707.004L12 9.934l-6.957 6.875a.5.5 0 0 1-.707-.004l-.984-.996a.5.5 0 0 1 .004-.707l7.8-7.709Z",clipRule:"evenodd",fillRule:"evenodd","data-follow-fill":"currentColor",fill:v})))}var N=["size","width","height","spin","rtl","color","fill","stroke","className"];function H(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,N),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 20 20",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("g",{"data-follow-fill":"currentColor",fill:v},r.createElement("path",{d:"M8.053 14.444a1.667 1.667 0 1 0 0-3.334 1.667 1.667 0 0 0 0 3.335Z"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.61 7.25a5.557 5.557 0 0 0-6.114 5.528 5.557 5.557 0 0 0 5.557 5.555 5.557 5.557 0 0 0 5.559-5.555V9.424a8.02 8.02 0 0 0 2.216.298h1.25c.23 0 .417-.186.417-.417V5.14a.417.417 0 0 0-.417-.417h-1.25c-.622 0-1.01-.137-1.258-.279a1.797 1.797 0 0 1-.6-.57 2.78 2.78 0 0 1-.392-.904l-.219-.977a.417.417 0 0 0-.406-.325H9.026a.417.417 0 0 0-.417.416V7.25Zm-.557 1.588a3.32 3.32 0 0 0-1.443.327 3.89 3.89 0 1 0 5.334 3.613V6.612c.441.42.99.794 1.668 1.056.174.067.357.127.548.179a6.41 6.41 0 0 0 1.668.208V6.39c-.915 0-1.608-.215-2.137-.53a3.327 3.327 0 0 1-.649-.503 3.698 3.698 0 0 1-.45-.546 4.239 4.239 0 0 1-.31-.538 4.59 4.59 0 0 1-.331-.939h-1.674v6.354a3.323 3.323 0 0 0-2.224-.85Z"}))))}var V=["size","width","height","spin","rtl","color","fill","stroke","className"];function F(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,V),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 16 16",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{fillOpacity:".6",d:"m12.48 4.941-1.417-1.415-.944.944 1.416 1.415.944-.944Zm-9.145 6.307 5.841-5.836 1.416 1.415-5.842 5.836H3.334v-1.415Zm8.672-8.664a1.334 1.334 0 0 0-1.887 0L2.196 10.5a.666.666 0 0 0-.195.47L2 13.664c0 .184.15.333.334.333h2.693c.177 0 .346-.07.471-.195l7.924-7.917a1.332 1.332 0 0 0 0-1.885l-1.415-1.415Zm2.66 11.074c0 .19-.153.343-.343.343H7.077l1.334-1.333h5.913c.19 0 .344.154.344.343v.647Z",clipRule:"evenodd",fillRule:"evenodd","data-follow-fill":"#000",fill:v})))}var Z=["size","width","height","spin","rtl","color","fill","stroke","className"];function j(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,Z),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{d:"M11.256 1.318c.256-.69 1.232-.69 1.488 0l1.165 3.149a9.519 9.519 0 0 0 5.624 5.624l3.15 1.165c.69.256.69 1.232 0 1.488l-3.15 1.165a9.52 9.52 0 0 0-5.624 5.624l-1.165 3.15c-.255.69-1.232.69-1.488 0l-1.165-3.15a9.52 9.52 0 0 0-5.624-5.624l-3.149-1.165c-.69-.255-.69-1.232 0-1.488l3.149-1.165a9.52 9.52 0 0 0 5.624-5.624l1.165-3.149Z",fill:"url(#138948__a)"}),r.createElement("mask",{id:"138948__c",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24"},r.createElement("path",{d:"M11.256 1.318c.255-.69 1.232-.69 1.488 0l1.165 3.149a9.52 9.52 0 0 0 5.624 5.624l3.149 1.165c.69.255.69 1.232 0 1.488l-3.149 1.165a9.52 9.52 0 0 0-5.624 5.624l-1.165 3.149c-.256.69-1.233.69-1.488 0l-1.165-3.149a9.52 9.52 0 0 0-5.625-5.624l-3.148-1.165c-.69-.256-.69-1.232 0-1.488l3.148-1.165a9.52 9.52 0 0 0 5.625-5.624l1.165-3.15Z",fill:"url(#138948__b)"})),r.createElement("g",{mask:"url(#138948__c)"},r.createElement("g",{style:{mixBlendMode:"plus-lighter"},filter:"url(#138948__d)"},r.createElement("path",{d:"M25 6.5c0 4.142-3.806 7.5-8.5 7.5S8 10.642 8 6.5C8 2.358 11.806-1 16.5-1S25 2.358 25 6.5Z",fill:"#7F9BFF"})),r.createElement("g",{style:{mixBlendMode:"plus-lighter"},filter:"url(#138948__e)"},r.createElement("path",{d:"M18 5.5a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Z",fill:"#8CA5FF"})),r.createElement("g",{style:{mixBlendMode:"plus-lighter"},filter:"url(#138948__f)"},r.createElement("path",{d:"M9.626 14.5c0 1.933 3.433 6.5 1.5 6.5-1.933 0-3-4-5-7-2.5-1.5-5.433-4-3.5-4 1.933 0 7 2.567 7 4.5Z",fill:"#8CA5FF"}))),r.createElement("defs",null,r.createElement("filter",{id:"138948__d",x:"-4",y:"-13",width:"41",height:"39",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r.createElement("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),r.createElement("feGaussianBlur",{stdDeviation:"6",result:"effect1_foregroundBlur_7677_29410"})),r.createElement("filter",{id:"138948__e",x:"-1",y:"-10",width:"31",height:"31",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r.createElement("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),r.createElement("feGaussianBlur",{stdDeviation:"6",result:"effect1_foregroundBlur_7677_29410"})),r.createElement("filter",{id:"138948__f",x:"-10",y:"-2",width:"33.717",height:"35",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r.createElement("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),r.createElement("feGaussianBlur",{stdDeviation:"6",result:"effect1_foregroundBlur_7677_29410"})),r.createElement("linearGradient",{id:"138948__a",x1:"17.143",y1:"5.143",x2:"5.999",y2:"22",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{offset:".02",stopColor:"#6D4CFF"}),r.createElement("stop",{offset:"1",stopColor:"#5E40DF"})),r.createElement("linearGradient",{id:"138948__b",x1:"17.142",y1:"5.143",x2:"5.999",y2:"22",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{offset:".02",stopColor:"#6D4CFF"}),r.createElement("stop",{offset:"1",stopColor:"#5E40DF"})))))}var z=["size","width","height","spin","rtl","color","fill","stroke","className"];function G(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,z),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{d:"M22.679 4.442a.5.5 0 0 1 .072.703L10.856 19.758a1.2 1.2 0 0 1-1.781.088l-7.073-7.112a.5.5 0 0 1 .002-.707l.992-.987a.5.5 0 0 1 .707.002l6.133 6.167L20.89 3.63a.5.5 0 0 1 .703-.072l1.086.884Z",clipRule:"evenodd",fillRule:"evenodd","data-follow-fill":"#090C14",fill:v})))}var U=["size","width","height","spin","rtl","color","fill","stroke","className"];function X(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,U),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{"data-follow-fill":"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"m10.303 12-5.95 5.95a.5.5 0 0 0 0 .707l.99.99a.5.5 0 0 0 .708 0L12 13.698l5.949 5.95a.5.5 0 0 0 .707 0l.99-.99a.5.5 0 0 0 0-.706L13.696 12l5.95-5.95a.5.5 0 0 0 0-.707l-.99-.99a.5.5 0 0 0-.707 0l-5.95 5.95-5.948-5.95a.5.5 0 0 0-.708 0l-.99.99a.5.5 0 0 0 0 .707l5.95 5.95Z",fill:v})))}var W=["size","width","height","spin","rtl","color","fill","stroke","className"];function $(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,W),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{"data-follow-fill":"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"m13 13.312 4.304-4.303a.5.5 0 0 1 .707 0l.707.707a.5.5 0 0 1 0 .708l-6.01 6.009a1 1 0 0 1-1.415 0l-6.011-6.01a.5.5 0 0 1 0-.707l.707-.707a.5.5 0 0 1 .707 0L11 13.312V3.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v9.812Zm8 7.188a.5.5 0 0 1-.5.5l-17 .002a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5l17-.002a.5.5 0 0 1 .5.5v1Z",fill:v})))}var Y=["size","width","height","spin","rtl","color","fill","stroke","className"];function q(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,Y),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{d:"M10.8 13.2v7.3a.5.5 0 0 0 .5.5h1.4a.5.5 0 0 0 .5-.5v-7.3h7.3a.5.5 0 0 0 .5-.5v-1.4a.5.5 0 0 0-.5-.5h-7.3V3.5a.5.5 0 0 0-.5-.5h-1.4a.5.5 0 0 0-.5.5v7.3H3.5a.5.5 0 0 0-.5.5v1.4a.5.5 0 0 0 .5.5h7.3Z",clipRule:"evenodd",fillRule:"evenodd","data-follow-fill":"#090C14",fill:v})))}var J=["size","width","height","spin","rtl","color","fill","stroke","className"];function K(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,J),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 25 24",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{d:"M11 9a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-6A.5.5 0 0 1 10 9h1Zm4 7a.5.5 0 0 0 .5-.5v-6A.5.5 0 0 0 15 9h-1a.5.5 0 0 0-.5.5v6a.5.5 0 0 0 .5.5h1Z","data-follow-fill":"#090C14",fill:v}),r.createElement("path",{d:"M10 2a.5.5 0 0 0-.5.5V4H4a.5.5 0 0 0-.5.5v1A.5.5 0 0 0 4 6h1.064l.876 13.133A2 2 0 0 0 7.936 21h9.128a2 2 0 0 0 1.996-1.867L19.936 6H21a.5.5 0 0 0 .5-.5v-1A.5.5 0 0 0 21 4h-5.5V2.5A.5.5 0 0 0 15 2h-5ZM7.069 6H17.93l-.867 13H7.936L7.069 6Z",clipRule:"evenodd",fillRule:"evenodd","data-follow-fill":"#090C14",fill:v})))}var ee=["size","width","height","spin","rtl","color","fill","stroke","className"];function et(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,ee),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 16 16",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{"data-follow-fill":"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M5.533 2.26A.667.667 0 0 0 5.005 2H3.937a.133.133 0 0 0-.105.215L7.167 6.55 5.009 9.355a2.667 2.667 0 1 0 1.268.519L8 7.634l1.723 2.24a2.667 2.667 0 1 0 1.268-.519L8.833 6.55l3.335-4.335A.133.133 0 0 0 12.063 2h-1.068a.667.667 0 0 0-.528.26L8 5.467 5.533 2.26Zm-.866 8.407a1.333 1.333 0 1 0 0 2.666 1.333 1.333 0 0 0 0-2.666ZM10 12a1.333 1.333 0 1 1 2.667 0A1.333 1.333 0 0 1 10 12Z",fill:v})))}var ei=["size","width","height","spin","rtl","color","fill","stroke","className"];function er(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,ei),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 17 17",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("g",{filter:"url(#13d6c4__a)"},r.createElement("path",{d:"M8.723 12a4.028 4.028 0 0 0 0 1.334H3.334a2 2 0 0 1-2-2V4.667a2 2 0 0 1 2-2h9.333a2 2 0 0 1 2 2v4.535a3.973 3.973 0 0 0-1.333-.48V4.667A.667.667 0 0 0 12.667 4H3.334a.667.667 0 0 0-.667.667v6.667c0 .368.299.666.667.666h5.389Zm3.766-1.876a.189.189 0 0 1 .355 0l.277.75c.23.62.719 1.109 1.34 1.338l.749.278a.189.189 0 0 1 0 .354l-.75.277c-.62.23-1.11.72-1.339 1.34l-.277.75a.189.189 0 0 1-.354 0l-.278-.75a2.266 2.266 0 0 0-1.339-1.34l-.75-.277a.189.189 0 0 1 0-.354l.75-.278a2.27 2.27 0 0 0 1.34-1.339l.277-.75ZM4.603 10h1.279l.252-.835h1.439l.252.835h1.278l-1.44-4.363h-1.62L4.604 10Zm2.702-1.72L6.87 6.84h-.034l-.435 1.44h.904ZM10.789 10V5.637H9.604V10h1.185Z",clipRule:"evenodd",fillRule:"evenodd","data-follow-fill":"#fff",fill:v})),r.createElement("defs",null,r.createElement("filter",{colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",height:"14.267",width:"15.599",y:"1.867",x:".534",id:"13d6c4__a"},r.createElement("feFlood",{result:"BackgroundImageFix",floodOpacity:"0"}),r.createElement("feColorMatrix",{result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",in:"SourceAlpha"}),r.createElement("feOffset",null),r.createElement("feGaussianBlur",{stdDeviation:".4"}),r.createElement("feComposite",{operator:"out",in2:"hardAlpha"}),r.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0"}),r.createElement("feBlend",{result:"effect1_dropShadow_18532_78900",in2:"BackgroundImageFix"}),r.createElement("feBlend",{result:"shape",in2:"effect1_dropShadow_18532_78900",in:"SourceGraphic"})))))}var en=["size","width","height","spin","rtl","color","fill","stroke","className"];function eo(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,en),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{"data-follow-fill":"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M18 4H6v16h8.1a4.97 4.97 0 0 0 .9 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v10.1a5.022 5.022 0 0 0-2 0V4ZM8 6.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5v-1Zm.5 3.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-7ZM23 19a4 4 0 1 1-8 0 4 4 0 0 1 8 0Zm-4.325-2.5a.375.375 0 0 0-.375.375V18.3h-1.425a.375.375 0 0 0-.375.375v.65c0 .207.168.375.375.375H18.3v1.425c0 .207.168.375.375.375h.65a.375.375 0 0 0 .375-.375V19.7h1.425a.375.375 0 0 0 .375-.375v-.65a.375.375 0 0 0-.375-.375H19.7v-1.425a.375.375 0 0 0-.375-.375h-.65Z",fill:v})))}var ea=["size","width","height","spin","rtl","color","fill","stroke","className"];function es(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,ea),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 16 18",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("g",{clipPath:"url(#14aae3__a)"},r.createElement("path",{fill:"#FF004F",d:"M11.404 6.664a6.53 6.53 0 0 0 3.809 1.219V5.15a3.84 3.84 0 0 1-.8-.084v2.15A6.53 6.53 0 0 1 10.604 6v5.575A5.05 5.05 0 0 1 2.74 15.77a5.05 5.05 0 0 0 8.664-3.53V6.664Zm.987-2.756a3.806 3.806 0 0 1-.987-2.229v-.35h-.758a3.825 3.825 0 0 0 1.745 2.58ZM4.505 13.63a2.31 2.31 0 0 1 2.54-3.6V7.237a5.096 5.096 0 0 0-.8-.046v2.173a2.314 2.314 0 0 0-3.011 2.202 2.31 2.31 0 0 0 1.27 2.063Z"}),r.createElement("path",{fill:"#000",d:"M10.603 6a6.53 6.53 0 0 0 3.809 1.217v-2.15a3.823 3.823 0 0 1-2.023-1.159 3.824 3.824 0 0 1-1.744-2.58H8.654v10.91a2.31 2.31 0 0 1-4.15 1.391 2.31 2.31 0 0 1 1.74-4.265V7.191a5.05 5.05 0 0 0-3.505 8.578 5.05 5.05 0 0 0 7.864-4.195V5.999Z"}),r.createElement("path",{fill:"#00F2EA",d:"M14.412 5.068v-.581a3.81 3.81 0 0 1-2.022-.578 3.82 3.82 0 0 0 2.022 1.16ZM10.646 1.33a3.893 3.893 0 0 1-.041-.314v-.35h-2.75v10.91a2.31 2.31 0 0 1-3.35 2.055 2.31 2.31 0 0 0 4.15-1.39V1.33h1.992v-.001Zm-4.4 5.863v-.62A5.05 5.05 0 0 0 2.74 15.77a5.05 5.05 0 0 1 3.505-8.578Z"})),r.createElement("defs",null,r.createElement("clipPath",{id:"14aae3__a"},r.createElement("path",{transform:"translate(.5 .664)",fill:"#fff",d:"M0 0h14.713v16.667H0z"})))))}var el=["size","width","height","spin","rtl","color","fill","stroke","className"];function eu(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,el),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{d:"M16.2 5H7.8c-.873 0-1.408.002-1.808.034a2.563 2.563 0 0 0-.367.05.603.603 0 0 0-.063.019l-.016.006a1 1 0 0 0-.437.437s-.003.005-.006.016a.603.603 0 0 0-.018.063 2.563 2.563 0 0 0-.05.367C5.001 6.392 5 6.927 5 7.8v8.4c0 .873.002 1.408.034 1.808.015.186.035.299.05.367a.597.597 0 0 0 .019.063l.006.016c.045.088.103.17.171.24C6.14 15.944 8.873 14 12 14c1.228 0 2.396.3 3.413.83-.52.448-.954.99-1.278 1.601A5.4 5.4 0 0 0 12 16c-2.214 0-4.016 1.281-4.702 3H13.5c0 .706.133 1.38.375 2H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v6.075a5.488 5.488 0 0 0-2-.375V7.8c0-.873-.002-1.408-.034-1.808a2.576 2.576 0 0 0-.05-.367.597.597 0 0 0-.019-.063l-.006-.016a1 1 0 0 0-.437-.437s-.005-.003-.016-.006a.597.597 0 0 0-.063-.018 2.564 2.564 0 0 0-.367-.05C17.608 5.001 17.073 5 16.2 5Z","data-follow-fill":"#000",fill:v}),r.createElement("path",{d:"M12 13a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Zm0-2a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z",clipRule:"evenodd",fillRule:"evenodd","data-follow-fill":"#000",fill:v}),r.createElement("path",{d:"M18.831 15h.336a5.343 5.343 0 0 0 3.834 3.833v.335A5.343 5.343 0 0 0 19.168 23h-.337A5.343 5.343 0 0 0 15 19.169v-.336A5.343 5.343 0 0 0 18.831 15Z","data-follow-fill":"#000",fill:v})))}var ef=["size","width","height","spin","rtl","color","fill","stroke","className"];function ec(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,ef),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 16 16",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{d:"M8.59 1.976a.8.8 0 0 1-.772.827 5.2 5.2 0 1 0 5.069 3.418.8.8 0 0 1 1.503-.547 6.8 6.8 0 1 1-6.627-4.47.8.8 0 0 1 .827.772Z",clipRule:"evenodd",fillRule:"evenodd","data-follow-fill":"#5E40DF",fill:v})))}var ed=["size","width","height","spin","rtl","color","fill","stroke","className"];function eh(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,ed),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 16 16",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{"data-follow-fill":"#FD4949",fillRule:"evenodd",clipRule:"evenodd",d:"M14.667 8A6.667 6.667 0 1 1 1.334 8a6.667 6.667 0 0 1 13.333 0ZM7.334 5c0-.184.149-.333.333-.333h.667c.184 0 .333.15.333.333v4c0 .184-.15.334-.333.334h-.667A.333.333 0 0 1 7.334 9V5Zm.333 5a.333.333 0 0 0-.333.334V11c0 .184.149.334.333.334h.667c.184 0 .333-.15.333-.334v-.666A.333.333 0 0 0 8.334 10h-.667Z",fill:v})))}var ep=["size","width","height","spin","rtl","color","fill","stroke","className"];function eA(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,ep),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 16 16",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{d:"M13.046 4.637a.555.555 0 0 1 .04 1.108L9.54 6.01l-.136 2.333 1.683 1.424a.6.6 0 0 1 .005.912l-1.85 1.6-.048.037a.6.6 0 0 1-.781-.902l.044-.043 1.319-1.14-.128-.108-1.481-.873-.255 2.012.285 3.082a.6.6 0 0 1-1.194.111l-.326-3.525-.001-.017v-.017l-.16-4.522-.03-.362-3.573-.267a.554.554 0 0 1 .041-1.108h10.092ZM8 1.6a1.288 1.288 0 1 1 0 2.575A1.288 1.288 0 0 1 8 1.6Z","data-follow-fill":"#000",fill:v})))}var ek=["size","width","height","spin","rtl","color","fill","stroke","className"];function em(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,ek),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 16 16",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{"data-follow-fill":"#000",d:"M12.666 2.667a2 2 0 0 1 2 2v6.667l-.01.204a2 2 0 0 1-1.785 1.785l-.205.01H3.333l-.204-.01a1.971 1.971 0 0 1-.175-.026c-.031-.006-.062-.014-.093-.022l-.082-.02-.076-.026c-.033-.011-.067-.022-.1-.035a1.772 1.772 0 0 1-.247-.117 1.781 1.781 0 0 1-.29-.198l-.046-.04a2.022 2.022 0 0 1-.198-.199l-.038-.045a2.051 2.051 0 0 1-.114-.153l-.047-.072a1.989 1.989 0 0 1-.134-.266c-.007-.016-.015-.031-.02-.048-.015-.035-.026-.072-.038-.109a1.98 1.98 0 0 1-.098-.614V4.667a2 2 0 0 1 2-2h9.333ZM8 12h2.22V7.113H8V12ZM3.333 4a.667.667 0 0 0-.667.667V6h7.667a1 1 0 0 1 1 1v5h1.333a.667.667 0 0 0 .667-.666V4.667A.667.667 0 0 0 12.666 4H3.333Zm-.667 7.334c0 .368.3.666.667.666h3.554V7.113h-4.22v4.22Z",fill:v}),r.createElement("path",{"data-follow-fill":"#000",d:"M12.77 2.67a2 2 0 0 1 1.897 1.997v6.666a2 2 0 0 1-1.897 1.998l-.103.002H3.333l-.103-.002a1.968 1.968 0 0 1-.189-.02h-.003l-.04-.008a1.994 1.994 0 0 1-.152-.03l-.024-.007a2.01 2.01 0 0 1-.155-.046l-.046-.019c-.037-.014-.074-.028-.11-.044l-.016-.008-.054-.027a1.956 1.956 0 0 1-.106-.056l-.084-.053-.067-.043-.076-.059c-.024-.018-.05-.037-.073-.057-.024-.02-.047-.043-.07-.064-.02-.019-.04-.036-.058-.055l-.07-.077-.056-.064c-.02-.024-.037-.049-.055-.074l-.053-.073c-.017-.025-.032-.05-.048-.076a1.905 1.905 0 0 1-.13-.253l-.029-.071a1.999 1.999 0 0 1-.086-.291l-.015-.078a1.983 1.983 0 0 1-.025-.193c0-.016-.003-.032-.004-.049l-.003-.103V4.667A2 2 0 0 1 3.23 2.669l.103-.002h9.334l.103.002ZM8 12h2.22V7.113H8V12ZM3.333 4a.667.667 0 0 0-.666.667V6h7.666l.102.005a1 1 0 0 1 .898.995v5h1.334a.667.667 0 0 0 .666-.667V4.667A.667.667 0 0 0 12.667 4H3.333Zm-.666 7.333c0 .369.298.667.666.667h3.554V7.113h-4.22v4.22Z",fill:v})))}var eg=["size","width","height","spin","rtl","color","fill","stroke","className"];function eb(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,eg),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 20 20",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{"data-follow-fill":"#000",d:"M11.208 2.5A2.292 2.292 0 0 1 13.5 4.792v10.416a2.292 2.292 0 0 1-2.292 2.292H4.792l-.234-.012a2.292 2.292 0 0 1-2.058-2.28V4.792c0-1.187.902-2.163 2.058-2.28l.234-.012h6.416ZM16.833 14c.368 0 .667.299.667.667V16a.667.667 0 0 1-.667.667h-1a.667.667 0 0 1-.666-.667v-1.333c0-.368.298-.667.666-.667h1ZM4.792 4.167a.625.625 0 0 0-.625.625v10.416c0 .345.28.625.625.625h6.416c.345 0 .625-.28.625-.625V4.792a.625.625 0 0 0-.625-.625H4.792Zm12.041 6c.368 0 .667.299.667.667v1.333a.667.667 0 0 1-.667.667h-1a.667.667 0 0 1-.666-.667v-1.333c0-.368.298-.667.666-.667h1Zm0-3.833c.368 0 .667.298.667.666v1.333a.667.667 0 0 1-.667.667h-1a.667.667 0 0 1-.666-.667V7c0-.368.298-.666.666-.666h1Zm.001-3.834c.368 0 .666.299.666.667V4.5a.667.667 0 0 1-.666.667h-1a.667.667 0 0 1-.667-.667V3.167c0-.368.299-.667.667-.667h1Z",fill:v})))}var eT=["size","width","height","spin","rtl","color","fill","stroke","className"];function ev(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,eT),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 20 20",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{"data-follow-fill":"#000",d:"M7.5 10.833c.92 0 1.667.746 1.667 1.667v3.333c0 .92-.747 1.667-1.667 1.667H4.167c-.92 0-1.667-.747-1.667-1.667V12.5c0-.92.747-1.667 1.667-1.667H7.5Zm8.333 0c.92 0 1.667.746 1.667 1.667v3.333c0 .92-.747 1.667-1.667 1.667H12.5c-.92 0-1.667-.747-1.667-1.667V12.5c0-.92.746-1.667 1.667-1.667h3.333Zm-11.666 5H7.5V12.5H4.167v3.333ZM12.5 12.5v3.333h3.333V12.5H12.5Zm-5-10c.92 0 1.667.747 1.667 1.667V7.5c0 .92-.747 1.667-1.667 1.667H4.167C3.247 9.167 2.5 8.42 2.5 7.5V4.167c0-.92.747-1.667 1.667-1.667H7.5Zm8.333 0c.92 0 1.667.747 1.667 1.667V7.5c0 .92-.747 1.667-1.667 1.667H12.5c-.92 0-1.667-.747-1.667-1.667V4.167c0-.92.746-1.667 1.667-1.667h3.333Zm-11.666 5H7.5V4.167H4.167V7.5Zm8.333 0h3.333V4.167H12.5V7.5Z",fill:v})))}var ey=["size","width","height","spin","rtl","color","fill","stroke","className"];function eQ(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,ey),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 16 16",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{"data-follow-fill":"#fff",fillRule:"evenodd",clipRule:"evenodd",d:"m8.667 8.875 2.87-2.869c.13-.13.34-.13.47 0l.472.472c.13.13.13.34 0 .471l-4.008 4.006a.667.667 0 0 1-.942 0L3.52 6.95a.333.333 0 0 1 0-.471l.472-.472c.13-.13.34-.13.47 0l2.87 2.869V2.333c0-.184.15-.333.334-.333h.666c.184 0 .334.15.334.333v6.542ZM14 13.667c0 .184-.15.333-.333.333l-11.334.001A.333.333 0 0 1 2 13.668V13c0-.184.15-.333.333-.333l11.334-.001c.184 0 .333.149.333.333v.667Z",fill:v})))}var ew=["size","width","height","spin","rtl","color","fill","stroke","className"];function e_(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,ew),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 16 16",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{fillOpacity:".4",d:"M8 2.967c1.244 0 2.383.45 3.262 1.2H9.747a.333.333 0 0 0-.333.333v.667c0 .184.15.333.333.333h3.003a.667.667 0 0 0 .667-.667v-3a.333.333 0 0 0-.334-.333h-.666a.333.333 0 0 0-.334.333v1.282A6.367 6.367 0 0 0 1.674 8.73a.32.32 0 0 0 .376.275l.658-.11a.351.351 0 0 0 .284-.386A5.033 5.033 0 0 1 8 2.966ZM13.033 8c0-.172-.008-.342-.025-.51a.351.351 0 0 1 .284-.385l.658-.11a.32.32 0 0 1 .375.275 6.367 6.367 0 0 1-10.408 5.615v1.28c0 .183-.15.333-.334.333h-.666a.333.333 0 0 1-.334-.334v-2.997a.667.667 0 0 1 .667-.667h3c.184 0 .333.15.333.333v.667a.333.333 0 0 1-.333.333H4.738A5.033 5.033 0 0 0 13.033 8Z",clipRule:"evenodd",fillRule:"evenodd","data-follow-fill":"#000",fill:v})))}var ex=["size","width","height","spin","rtl","color","fill","stroke","className"];function eE(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,ex),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 16 16",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{"data-follow-fill":"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M11.655 8.469a.667.667 0 0 0 0-.937l-5.14-5.2a.333.333 0 0 0-.471-.004l-.474.469a.333.333 0 0 0-.003.471L10.243 8l-4.676 4.732a.333.333 0 0 0 .003.472l.474.468c.13.13.342.128.471-.003l5.14-5.2Z",fill:v})))}var eC=["size","width","height","spin","rtl","color","fill","stroke","className"];function eD(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,eC),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 20 20",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{d:"M15.833 13.017v1.666H4.167v-1.666h11.666Zm.834-.834V7.808a.833.833 0 0 0-.834-.833H4.167a.833.833 0 0 0-.834.833v4.375c0 .46.374.834.834.834v1.666l-.129-.003a2.5 2.5 0 0 1-2.368-2.368l-.003-.129V7.808a2.5 2.5 0 0 1 2.5-2.5h11.666a2.5 2.5 0 0 1 2.5 2.5v4.375a2.5 2.5 0 0 1-2.5 2.5v-1.666c.46 0 .834-.373.834-.834Z","data-follow-fill":"#000",fill:v})))}var eS=["size","width","height","spin","rtl","color","fill","stroke","className"];function eL(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,eS),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 20 20",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{d:"M13.75 16.667v1.666h-7.5v-1.666h7.5Zm.833-.834V4.167a.833.833 0 0 0-.833-.834h-7.5a.834.834 0 0 0-.83.748l-.003.086v11.666c0 .46.373.834.833.834v1.666l-.129-.003a2.5 2.5 0 0 1-2.371-2.497V4.167A2.5 2.5 0 0 1 6.121 1.67l.129-.003h7.5l.129.003a2.5 2.5 0 0 1 2.371 2.497v11.666l-.003.129a2.5 2.5 0 0 1-2.368 2.368l-.129.003v-1.666c.46 0 .833-.373.833-.834Z","data-follow-fill":"#000",fill:v})))}var eB=["size","width","height","spin","rtl","color","fill","stroke","className"];function eP(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,eB),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 20 20",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{d:"M15 15.833V17.5H5v-1.667h10Zm.833-.833V5A.833.833 0 0 0 15 4.167H5A.833.833 0 0 0 4.167 5v10c0 .46.373.833.833.833V17.5a2.5 2.5 0 0 1-2.497-2.371L2.5 15V5A2.5 2.5 0 0 1 5 2.5h10l.129.003A2.5 2.5 0 0 1 17.5 5v10l-.003.129a2.5 2.5 0 0 1-2.368 2.368L15 17.5v-1.667c.46 0 .833-.373.833-.833Z","data-follow-fill":"#000",fill:v})))}var eM=["size","width","height","spin","rtl","color","fill","stroke","className"];function eI(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,eM),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 20 20",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{d:"M15.833 14.583v1.667H4.167v-1.667h11.666Zm.834-.833v-7.5a.833.833 0 0 0-.834-.833H4.167a.833.833 0 0 0-.834.833v7.5c0 .46.374.833.834.833v1.667l-.129-.003a2.5 2.5 0 0 1-2.368-2.368l-.003-.129v-7.5a2.5 2.5 0 0 1 2.5-2.5h11.666a2.5 2.5 0 0 1 2.5 2.5v7.5a2.5 2.5 0 0 1-2.371 2.497l-.129.003v-1.667c.46 0 .834-.373.834-.833Z","data-follow-fill":"#000",fill:v})))}var eO=["size","width","height","spin","rtl","color","fill","stroke","className"];function eR(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,eO),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 20 20",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{d:"M12.183 16.667v1.666H7.808v-1.666h4.375Zm.834-.834V4.167a.833.833 0 0 0-.834-.834H7.808a.834.834 0 0 0-.829.748l-.004.086v11.666c0 .46.373.834.833.834v1.666l-.128-.003a2.5 2.5 0 0 1-2.372-2.497V4.167a2.5 2.5 0 0 1 2.5-2.5h4.375a2.5 2.5 0 0 1 2.5 2.5v11.666a2.5 2.5 0 0 1-2.371 2.497l-.129.003v-1.666c.46 0 .834-.373.834-.834Z","data-follow-fill":"#000",fill:v})))}var eN=["size","width","height","spin","rtl","color","fill","stroke","className"];function eH(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,eN),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 16 16",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{d:"M13 3H5.667v7.334H13V3ZM5.667 1.667c-.737 0-1.334.597-1.334 1.333v7.334c0 .736.597 1.333 1.333 1.333H13c.736 0 1.333-.597 1.333-1.333V3c0-.736-.597-1.333-1.333-1.333H5.667ZM3 5.5a.5.5 0 0 0-.5-.5h-.333a.5.5 0 0 0-.5.5V13c0 .737.596 1.334 1.333 1.334h7.5a.5.5 0 0 0 .5-.5V13.5a.5.5 0 0 0-.5-.5H3V5.5Zm6.204 2.83 2.479-2.48a.5.5 0 0 0 0-.707l-.142-.141a.5.5 0 0 0-.707 0L8.78 7.057l-.842-.843a.5.5 0 0 0-.708 0l-.14.141a.5.5 0 0 0 0 .707L8.354 8.33a.6.6 0 0 0 .849 0Z",clipRule:"evenodd",fillRule:"evenodd","data-follow-fill":"#000",fill:v})))}var eV=["size","width","height","spin","rtl","color","fill","stroke","className"];function eF(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,eV),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 16 16",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{d:"M3.803 4.04a.333.333 0 0 0 0 .472l3.724 3.724c.26.26.683.26.943 0l3.724-3.724a.333.333 0 0 0 0-.472l-.471-.471a.333.333 0 0 0-.472 0L8 6.82 4.746 3.57a.333.333 0 0 0-.472 0l-.47.471Zm0 4.72a.333.333 0 0 0 0 .471l3.724 3.724c.26.26.683.26.943 0l3.724-3.724a.333.333 0 0 0 0-.471l-.471-.472a.333.333 0 0 0-.472 0L8 11.541 4.746 8.288a.333.333 0 0 0-.472 0l-.47.472Z",clipRule:"evenodd",fillRule:"evenodd","data-follow-fill":"#090C14",fill:v})))}var eZ=["size","width","height","spin","rtl","color","fill","stroke","className"];function ej(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,eZ),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 16 16",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{"data-follow-fill":"currentColor",d:"M12 2.667a2.667 2.667 0 0 1 2.667 2.666v5.333l-.003.138a2.667 2.667 0 0 1-2.527 2.526l-.137.003H4l-.137-.003a2.667 2.667 0 0 1-2.53-2.664V5.333A2.667 2.667 0 0 1 4 2.666h8ZM4 4c-.736 0-1.333.597-1.333 1.333v5.333C2.667 11.403 3.264 12 4 12h8c.736 0 1.334-.597 1.334-1.334V5.333C13.334 4.597 12.736 4 12 4H4Zm1 3.5h1.667V6.333h1v3.333h-1V8.5H5v1.166H4V6.333h1V7.5Zm5.667-1.167a1.667 1.667 0 1 1 0 3.333H8.334V6.333h2.333ZM9.334 8.666h1.333a.667.667 0 1 0 0-1.333H9.334v1.333Z",fill:v})))}var ez=["size","width","height","spin","rtl","color","fill","stroke","className"];function eG(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,ez),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 16 16",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{fillOpacity:".4",d:"M13.76 3.66a.5.5 0 0 1 .072.704L7.364 12.31a.667.667 0 0 1-.99.05L2.602 8.564a.5.5 0 0 1 .002-.707l.236-.235a.5.5 0 0 1 .707.002l3.25 3.269 6-7.371a.5.5 0 0 1 .704-.073l.259.21Z",clipRule:"evenodd",fillRule:"evenodd","data-follow-fill":"#000",fill:v})))}var eU=["size","width","height","spin","rtl","color","fill","stroke","className"];function eX(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,eU),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 16 16",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{"data-follow-fill":"#000",d:"M12.77 2.67a2 2 0 0 1 1.897 1.997v6.666a2 2 0 0 1-1.897 1.998l-.103.002H3.333l-.103-.002a2.034 2.034 0 0 1-.19-.02h-.002l-.04-.008a1.993 1.993 0 0 1-.152-.03l-.024-.007a1.968 1.968 0 0 1-.155-.047l-.046-.018c-.037-.014-.075-.028-.11-.044l-.016-.008-.054-.027a1.959 1.959 0 0 1-.106-.056l-.084-.053c-.022-.014-.045-.028-.067-.044-.026-.018-.05-.038-.076-.058-.025-.019-.05-.037-.073-.057l-.07-.064c-.02-.019-.04-.036-.058-.056-.024-.024-.047-.05-.07-.076l-.056-.064c-.02-.024-.037-.05-.055-.074l-.053-.073a2.028 2.028 0 0 1-.179-.33l-.028-.07a2.004 2.004 0 0 1-.087-.291l-.014-.078a1.997 1.997 0 0 1-.025-.193c0-.016-.003-.032-.004-.049l-.003-.103V4.667A2 2 0 0 1 3.23 2.669l.103-.002h9.334l.103.002ZM8 12h2.22V7.113H8V12ZM3.333 4a.667.667 0 0 0-.666.667V6h7.666l.102.005a1 1 0 0 1 .898.995v5h1.334a.667.667 0 0 0 .666-.667V4.667A.667.667 0 0 0 12.667 4H3.333Zm-.666 7.333c0 .368.298.667.666.667h3.554V7.113h-4.22v4.22Z",fill:v})))}var eW=["size","width","height","spin","rtl","color","fill","stroke","className"];function e$(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,eW),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 14 14",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("circle",{fill:"#5E40DF",r:"6.5",cy:"7",cx:"7","data-follow-stroke":"#5E40DF",stroke:b}),r.createElement("circle",{fill:"#fff",r:"3",cy:"7",cx:"7"})))}var eY=["size","width","height","spin","rtl","color","fill","stroke","className"];function eq(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,eY),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 14 14",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("rect",{fill:"#5E40DF",rx:"3",height:"14",width:"14"}),r.createElement("path",{fill:"#fff",d:"M9.63 4.912a.376.376 0 0 1 .532 0l.177.177a.376.376 0 0 1 0 .53L6.516 9.442a.376.376 0 0 1-.532 0L3.662 7.12a.375.375 0 0 1 0-.53l.177-.177a.375.375 0 0 1 .53 0l1.881 1.88 3.38-3.38Z"})))}var eJ=["size","width","height","spin","rtl","color","fill","stroke","className"];function eK(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,eJ),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 20 20",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{d:"M11.92 3.334H5.75a.833.833 0 0 0-.833.833v11.667c0 .46.373.833.833.833h8.5c.46 0 .833-.373.833-.833v-9.33h1.667v9.33l-.012.255a2.5 2.5 0 0 1-2.232 2.231l-.256.014h-8.5l-.256-.014a2.501 2.501 0 0 1-2.231-2.231l-.013-.255V4.167A2.5 2.5 0 0 1 5.494 1.68l.256-.013h6.17v1.667Zm1.412 9.25c0 .23-.186.416-.416.416H7.089a.417.417 0 0 1-.417-.417v-.833c0-.23.187-.417.417-.417h5.827c.23 0 .416.187.416.417v.833Zm-2.91-2.918c.23 0 .417-.187.417-.417v-.832A.417.417 0 0 0 10.422 8H7.09a.417.417 0 0 0-.417.417v.832c0 .23.187.417.417.417h3.333Zm5.732-8.411a.417.417 0 0 1 .59 0l.59.589a.417.417 0 0 1 0 .59l-3.65 3.648a.416.416 0 0 1-.125.087l-1.258.558a.333.333 0 0 1-.44-.44l.558-1.258a.406.406 0 0 1 .087-.126l3.648-3.648Z","data-follow-fill":"#090C14",fill:v})))}var e0=["size","width","height","spin","rtl","color","fill","stroke","className"];function e2(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,e0),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 14 14",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("rect",{strokeOpacity:".36",rx:"2.5",height:"13",width:"13",y:".5",x:".5","data-follow-stroke":"#000",stroke:b})))}var e1=["size","width","height","spin","rtl","color","fill","stroke","className"];function e4(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,e1),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 14 14",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("circle",{stroke:"rgba(0, 0, 0, 0.36)",r:"6.5",cy:"7",cx:"7","data-follow-fill":"#fff",fill:v})))}var e6=["size","width","height","spin","rtl","color","fill","stroke","className"];function e3(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,e6),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 16 16",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{"data-follow-fill":"currentColor",d:"M10.146 8.29a.333.333 0 0 0 0-.581L7.163 6.042a.333.333 0 0 0-.496.29v3.335c0 .254.273.415.496.29l2.983-1.666Z",fill:v}),r.createElement("path",{"data-follow-fill":"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M1.333 4c0-.737.597-1.333 1.334-1.333h10.666c.737 0 1.334.596 1.334 1.333v8c0 .736-.597 1.333-1.334 1.333H2.667A1.333 1.333 0 0 1 1.333 12V4Zm1.334 0h10.666v8H2.667V4Z",fill:v})))}var e5=["size","width","height","spin","rtl","color","fill","stroke","className"];function e8(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,e5),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 16 16",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{d:"M13 10.335V1.669h.333c.736 0 1.334.597 1.334 1.333v6c0 .736-.598 1.333-1.334 1.333H13Zm-5 4a1.333 1.333 0 0 1-1.333-1.333v-2.667h-4a1.334 1.334 0 0 1-1.334-1.333V7.244c0-.16.029-.319.085-.469l1.59-4.24a1.336 1.336 0 0 1 1.25-.866H12v8.666l-1.947 3.339c-.24.41-.678.661-1.153.661H8Z","data-follow-fill":"currentColor",fill:v})))}var e7=["size","width","height","spin","rtl","color","fill","stroke","className"];function e9(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,e7),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 16 16",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{d:"M8 1.665c.736 0 1.332.597 1.332 1.333v2.667h4c.737 0 1.334.597 1.334 1.333v1.759c0 .16-.029.318-.085.468l-1.59 4.242c-.196.52-.694.865-1.25.865H2.667a1.334 1.334 0 0 1-1.334-1.334v-6c0-.736.598-1.333 1.334-1.333H4l1.948-3.339c.239-.41.678-.661 1.152-.661H8ZM2.665 12.998H4v-6H2.666v6Zm2.666-6.973v6.973h6.41l1.59-4.241V6.998H8v-4h-.9L5.332 6.025Z","data-follow-fill":"currentColor",fill:v})))}var te=["size","width","height","spin","rtl","color","fill","stroke","className"];function tt(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,te),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 16 16",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{d:"M3 5.665v8.666h-.333a1.334 1.334 0 0 1-1.334-1.333v-6c0-.736.598-1.333 1.334-1.333H3Zm5-4c.736 0 1.333.597 1.333 1.333v2.667h4c.736 0 1.334.597 1.334 1.333v1.758c0 .16-.029.319-.085.469l-1.59 4.24a1.336 1.336 0 0 1-1.25.866H4V5.665l1.947-3.339c.24-.41.678-.661 1.153-.661H8Z","data-follow-fill":"currentColor",fill:v})))}var ti=["size","width","height","spin","rtl","color","fill","stroke","className"];function tr(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,ti),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 16 16",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{d:"M8 14.331a1.333 1.333 0 0 1-1.332-1.333v-2.667h-4a1.334 1.334 0 0 1-1.334-1.333V7.239c0-.16.029-.318.085-.468l1.59-4.242c.196-.52.694-.865 1.25-.865h9.075c.736 0 1.334.598 1.334 1.334v6c0 .736-.598 1.333-1.334 1.333H12l-1.947 3.339c-.24.41-.679.661-1.153.661H8Zm5.334-11.333H12v6h1.333v-6Zm-2.666 6.973V2.998h-6.41l-1.59 4.241v1.759H8v4h.9l1.767-3.027Z","data-follow-fill":"currentColor",fill:v})))}var tn=["size","width","height","spin","rtl","color","fill","stroke","className"];function to(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,tn),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 21 20",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{d:"M15.012 14.167c.543 0 .989.416 1.037.947h.013v1.193c0 .812-.574 1.512-1.37 1.672l-.613.122-.246-1.225.613-.123a.456.456 0 0 0 .366-.446v-.077a1.04 1.04 0 0 1 .2-2.063Zm2.78 0c.543 0 .989.416 1.036.947h.011v1.193c0 .812-.574 1.512-1.37 1.672l-.613.122-.246-1.225.613-.123a.456.456 0 0 0 .366-.446v-.077a1.042 1.042 0 0 1 .203-2.063Z","data-follow-fill":"#000",fill:v}),r.createElement("path",{d:"M11.833 2.5c.92 0 1.66 0 2.258.048.607.05 1.14.155 1.634.406a4.169 4.169 0 0 1 1.82 1.821c.252.494.357 1.027.407 1.635.049.597.048 1.337.048 2.257v2.666c0 .398-.002.762-.006 1.095a4.152 4.152 0 0 0-1.66-.345h-.005c.001-.228.004-.477.004-.75V8.667c0-.947 0-1.608-.042-2.122-.041-.504-.119-.794-.23-1.014a2.5 2.5 0 0 0-1.092-1.092c-.22-.112-.51-.189-1.014-.23-.514-.042-1.175-.042-2.122-.042H9.167c-.947 0-1.608 0-2.122.042-.504.041-.794.118-1.014.23A2.5 2.5 0 0 0 4.94 5.531c-.112.22-.189.51-.23 1.014-.042.514-.042 1.175-.042 2.122v2.666c0 .352.002.665.004.945L8.409 8.88l4.995 4.407c-.4.395-.72.87-.934 1.4l-4.045-3.569-3.543 3.22a1.5 1.5 0 0 0 .057.13 2.5 2.5 0 0 0 1.092 1.092c.22.111.51.189 1.014.23.514.042 1.175.042 2.122.042h2.666l.354-.001a4.221 4.221 0 0 0 .17 1.666l-.524.002H9.167c-.92 0-1.66 0-2.257-.048-.608-.05-1.141-.155-1.635-.406a4.169 4.169 0 0 1-1.82-1.821c-.252-.494-.357-1.027-.407-1.634C2.999 12.992 3 12.253 3 11.332V8.667c0-.92 0-1.66.048-2.257.05-.608.155-1.141.406-1.635a4.168 4.168 0 0 1 1.821-1.82c.494-.252 1.027-.357 1.635-.407.597-.049 1.337-.048 2.257-.048h2.666Z","data-follow-fill":"#000",fill:v}),r.createElement("path",{d:"M13 6.25a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5Z","data-follow-fill":"#000",fill:v})))}var ta=["size","width","height","spin","rtl","color","fill","stroke","className"];function ts(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,ta),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 16 16",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{"data-follow-fill":"currentColor",d:"M7.333 8.667V13.5a.5.5 0 0 0 .5.5h.334a.5.5 0 0 0 .5-.5V8.667H13.5a.5.5 0 0 0 .5-.5v-.334a.5.5 0 0 0-.5-.5H8.667V2.5a.5.5 0 0 0-.5-.5h-.334a.5.5 0 0 0-.5.5v4.833H2.5a.5.5 0 0 0-.5.5v.334a.5.5 0 0 0 .5.5h4.833Z",clipRule:"evenodd",fillRule:"evenodd",fill:v})))}var tl=["size","width","height","spin","rtl","color","fill","stroke","className"];function tu(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,tl),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 16 16",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{"data-follow-fill":"currentColor",d:"m8.52 1.852 5.431 5.431c.13.13.13.341 0 .472l-.565.565a.333.333 0 0 1-.471 0L8.733 4.137v9.567c0 .184-.15.333-.334.333h-.8a.333.333 0 0 1-.332-.333V4.143L3.09 8.32a.333.333 0 0 1-.472 0l-.565-.565a.333.333 0 0 1 0-.472l5.431-5.43.047-.047a.666.666 0 0 1 .943 0l.047.046Z",fill:v})))}var tf=["size","width","height","spin","rtl","color","fill","stroke","className"];function tc(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,tf),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 16 16",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{d:"M11.5 2.5a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h7Z",fill:"currentColor"})))}var td=["size","width","height","spin","rtl","color","fill","stroke","className"];function th(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,td),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 16 16",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{fillOpacity:".16",d:"M11.333 1.333H4.667a3.327 3.327 0 0 0-3.334 3.32v4.654a3.327 3.327 0 0 0 3.334 3.32h1c.18 0 .42.12.533.266l1 1.327c.44.587 1.16.587 1.6 0l1-1.327a.676.676 0 0 1 .533-.266h1a3.327 3.327 0 0 0 3.334-3.32V4.653a3.327 3.327 0 0 0-3.334-3.32ZM8.667 9.167h-4a.504.504 0 0 1-.5-.5c0-.274.226-.5.5-.5h4c.273 0 .5.226.5.5 0 .273-.227.5-.5.5Zm2.666-3.334H4.667a.504.504 0 0 1-.5-.5c0-.273.226-.5.5-.5h6.666c.274 0 .5.227.5.5 0 .274-.226.5-.5.5Z","data-follow-fill":"currentColor",fill:v})))}var tp=["size","width","height","spin","rtl","color","fill","stroke","className"];function tA(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,tp),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 20 20",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{"data-follow-fill":"currentColor",d:"M15.415 2.5a2.5 2.5 0 0 1 2.5 2.5v10l-.013.256a2.501 2.501 0 0 1-2.231 2.231l-.256.013H4.582l-.256-.013a2.502 2.502 0 0 1-2.231-2.231L2.082 15V5a2.5 2.5 0 0 1 2.5-2.5h10.833ZM9.167 15.833h6.248c.46 0 .834-.373.834-.833V5a.834.834 0 0 0-.834-.833H9.167v11.666ZM4.582 4.167A.833.833 0 0 0 3.749 5v10c0 .46.373.833.833.833H7.5V4.167H4.582Z",fill:v})))}var tk=["size","width","height","spin","rtl","color","fill","stroke","className"];function tm(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,tk),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 20 20",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{fillOpacity:".6",d:"M11.422 1.91A.833.833 0 0 0 10 2.5v3.958a9.167 9.167 0 0 0-9.167 9.167c0 .772.96 1.132 1.463.546l.012-.013.067-.069a4.6 4.6 0 0 1 .31-.282c.286-.24.734-.572 1.356-.907 1.24-.667 3.188-1.358 5.959-1.358V17.5a.833.833 0 0 0 1.422.59l6.911-6.911a1.666 1.666 0 0 0 0-2.357l-6.91-6.911Zm.245 9.965v3.613L17.155 10l-5.488-5.488v3.613H10a7.503 7.503 0 0 0-7.257 5.6 9.98 9.98 0 0 1 .508-.292c1.468-.79 3.687-1.558 6.749-1.558h1.667Z",clipRule:"evenodd",fillRule:"evenodd","data-follow-fill":"#000",fill:v})))}var tg=["size","width","height","spin","rtl","color","fill","stroke","className"];function tb(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,tg),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 20 20",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{"data-follow-fill":"currentColor",d:"M15.535 6.784c.26.26.26.683 0 .943L9.22 14.04a.667.667 0 0 1-.942 0l-3.813-3.813a.667.667 0 0 1 0-.943L4.7 9.05c.26-.26.683-.26.943 0l3.106 3.106 5.606-5.606c.26-.26.683-.26.943 0l.236.235Z",fill:v})))}var tT=["size","width","height","spin","rtl","color","fill","stroke","className"];function tv(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,tT),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{d:"M16 20.861c0 .338.328.578.642.455A10.004 10.004 0 0 0 23 12c0-4.238-2.636-7.86-6.358-9.316A.475.475 0 0 0 16 3.14v1.105a.52.52 0 0 0 .31.47 8.002 8.002 0 0 1 0 14.571.52.52 0 0 0-.31.47v1.106Z","data-follow-fill":"#16161D",fill:v}),r.createElement("path",{d:"M11.293 3.293A1 1 0 0 1 12 3h1a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-1a1 1 0 0 1-.707-.293L6.586 16H3a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h3.586l4.707-4.707ZM12 5.414 7.414 10H4v4h3.414L12 18.586V5.414Z",clipRule:"evenodd",fillRule:"evenodd","data-follow-fill":"#16161D",fill:v}),r.createElement("path",{d:"M19 12a5.99 5.99 0 0 1-2.283 4.71c-.303.24-.717.006-.717-.38v-1.495c0-.122.046-.239.122-.334.55-.685.878-1.554.878-2.5 0-.947-.329-1.817-.878-2.502A.536.536 0 0 1 16 9.165V7.67c0-.385.414-.62.717-.38A5.99 5.99 0 0 1 19 12Z","data-follow-fill":"#16161D",fill:v})))}var ty=["size","width","height","spin","rtl","color","fill","stroke","className"];function tQ(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,ty),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 24 25",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{d:"M19.5 11.903a1 1 0 0 1 0 1.732L6 21.429a1 1 0 0 1-1.5-.866V4.975A1 1 0 0 1 6 4.109l13.5 7.794Z","data-follow-fill":"#CACACE",fill:v})))}var tw=["size","width","height","spin","rtl","color","fill","stroke","className"];function t_(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,tw),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 24 25",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{d:"M5 4.769a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-14a1 1 0 0 0-1-1H5Zm11 0a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-14a1 1 0 0 0-1-1h-3Z","data-follow-fill":"#CACACE",fill:v})))}var tx=["size","width","height","spin","rtl","color","fill","stroke","className"];function tE(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,tx),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{d:"M12 3a1 1 0 0 0-.707.293L6.586 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h3.586l4.707 4.707A1 1 0 0 0 12 21h1a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1h-1Zm0 2.414v13.172L7.414 14H4v-4h3.414L12 5.414Z",clipRule:"evenodd",fillRule:"evenodd","data-follow-fill":"#16161D",fill:v}),r.createElement("path",{d:"M15.854 15.328a.5.5 0 0 1 0-.707l2.182-2.182-2.122-2.121a.5.5 0 0 1 0-.707l.707-.707a.5.5 0 0 1 .707 0l2.122 2.121 2.06-2.06a.5.5 0 0 1 .707 0l.708.707a.5.5 0 0 1 0 .707l-2.06 2.06 2.12 2.121a.5.5 0 0 1 0 .708l-.707.707a.5.5 0 0 1-.707 0l-2.121-2.122-2.182 2.182a.5.5 0 0 1-.707 0l-.707-.707Z","data-follow-fill":"#16161D",fill:v})))}var tC=["size","width","height","spin","rtl","color","fill","stroke","className"];function tD(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,tC),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 20 20",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{d:"M17.5 10a7.502 7.502 0 0 1-5.635 7.265 7.502 7.502 0 0 1-4.844-.381 7.5 7.5 0 0 1-2.438-1.7v1.9H2.917v-5h5v1.667H5.534a5.834 5.834 0 0 0 5.916 1.9A5.837 5.837 0 0 0 15.833 10H17.5ZM8.135 2.737a7.5 7.5 0 0 1 7.282 2.078V2.917h1.666v5h-5V6.251h2.384a5.834 5.834 0 0 0-9.076.175A5.834 5.834 0 0 0 4.167 10H2.5a7.502 7.502 0 0 1 5.635-7.264Z","data-follow-fill":"#000",fill:v})))}var tS=["size","width","height","spin","rtl","color","fill","stroke","className"];function tL(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,tS),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 16 16",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{fill:"currentColor",d:"M13.217 2.067a.667.667 0 0 1 .783.656v8.01h-.02a2.667 2.667 0 1 1-1.313-1.977V4.602L6 5.777V11.8h-.001a2.667 2.667 0 1 1-1.332-2.377V4.134c0-.323.232-.6.55-.656l8-1.411Z"})))}var tB=["size","width","height","spin","rtl","color","fill","stroke","className"];function tP(e){var t=(0,r.useRef)(null),i=e.size,n=void 0===i?"1em":i,l=e.width,u=e.height,f=e.spin,c=e.rtl,d=e.color,h=e.fill,p=e.stroke,A=e.className,k=o(e,tB),m=l||n,g=u||n,b=p||d,v=h||d;return(0,r.useEffect)(function(){var e,i;v||null==(e=t.current)||e.querySelectorAll("[data-follow-fill]").forEach(function(e){e.setAttribute("fill",e.getAttribute("data-follow-fill")||"")}),b||null==(i=t.current)||i.querySelectorAll("[data-follow-stroke]").forEach(function(e){e.setAttribute("stroke",e.getAttribute("data-follow-stroke")||"")})},[p,d,h]),r.createElement("svg",Object.assign({ref:t,width:m,height:g,viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet",fill:"none",role:"presentation",xmlns:"http://www.w3.org/2000/svg",className:"".concat(A||""," ").concat(f?a:""," ").concat(c?s:"").trim()},k),r.createElement("g",null,r.createElement("path",{fill:"currentColor",d:"M12.02 2.037a1 1 0 0 1 1 1v4.44a1.5 1.5 0 0 0 1.5 1.5H19a1 1 0 0 1 1 1v9.06a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3v-14a3 3 0 0 1 3-3h5.02ZM8.5 16a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-4Zm0-4a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-7Z"}),r.createElement("path",{fill:"currentColor",d:"M15.998 7.474h3.42a.5.5 0 0 0 .354-.854l-4.42-4.42a.5.5 0 0 0-.854.353v3.42a1.5 1.5 0 0 0 1.5 1.5Z"})))}},37992:function(){},67747:function(){},33542:function(){},8560:function(){},37262:function(){},38194:function(){},65154:function(){},60256:function(){},81220:function(){},98932:function(){},11523:function(){},18221:function(){},98951:function(){},75634:function(){},84923:function(){},28624:function(e,t,i){"use strict";function r(e){try{return e()}catch(e){return}}i.d(t,{n:()=>s});let n=[{medium:"SEO",strategy:"seo",source:"baidu",test:[r(()=>/baidu\.com/)]},{medium:"SEO",strategy:"seo",source:"bing",test:[r(()=>/bing\.com/)]},{medium:"SEO",strategy:"seo",source:"google",test:[r(()=>/google/)]},{medium:"SEO",strategy:"seo",source:"so",test:[r(()=>/so\.com/)]},{medium:"SEO",strategy:"seo",source:"sogou",test:[r(()=>/sogou\.com/)]},{medium:"SEO",strategy:"seo",source:"yahoo",test:[r(()=>/yahoo\.com/)]},{medium:"SEO",strategy:"seo",source:"hao123",test:[r(()=>/hao123\.com/)]},{medium:"SEO",strategy:"seo",source:"sm",test:[r(()=>/sm\.cn/)]},{medium:"SEO",strategy:"seo",source:"toutiao",test:[r(()=>/toutiao\.com/)]},{medium:"SEO",strategy:"seo",source:"duckduckgo",test:[r(()=>/duckduckgo\.com/)]},{medium:"SEO",strategy:"seo",source:"yandex",test:[r(()=>/yandex\.com/)]},{medium:"SEO",strategy:"seo",source:"quark",test:[r(()=>/quark\.cn/)]},{medium:"Social",strategy:"social",source:"qq",test:[e=>/qq\.com/.test(e)&&!/weixin\.qq\.com/.test(e)]},{medium:"Social",strategy:"social",source:"weixin",test:[r(()=>/(?:weixin\.qq\.com|(?:www\.)?weixin\.com)/)]},{medium:"Social",strategy:"social",source:"bilibili",test:[r(()=>/bilibili\.com/)]},{medium:"Social",strategy:"social",source:"zhihu",test:[r(()=>/zhihu\.com/)]},{medium:"Social",strategy:"social",source:"douban",test:[r(()=>/douban\.com/)]},{medium:"Social",strategy:"social",source:"weibo",test:[r(()=>/weibo\.(?:com|cn)/)]},{medium:"Social",strategy:"social",source:"douyin",test:[r(()=>/douyin\.com/)]},{medium:"Social",strategy:"social",source:"kuaishou",test:[r(()=>/kuaishou\.(?:com|cn)/)]},{medium:"Social",strategy:"social",source:"xiaohongshu",test:[r(()=>/xiaohongshu\.com/)]}];function o(e){return"string"==typeof e&&!!e.length}function a(e){try{return decodeURIComponent(e)}catch(t){return e}}function s(e){try{let{globalName:i="_pre_sdk_ut",cacheKey:r="_ut",href:s=window.location.href,referrer:l=window.document.referrer.replace(/^https?:\/\//i,""),getCookie:u,setSessionStorage:f,getSessionStorageJSON:c}=e||{},d=new URL(s),h=d.searchParams,p={utm_medium:h.get("utm_medium"),utm_source:h.get("utm_source"),utm_content:h.get("utm_content"),utm_campaign:h.get("utm_campaign"),utm_term:h.get("utm_term"),keyword_name:h.get("keyword_name"),pid:h.get("pid"),af_adset_id:h.get("af_adset_id"),af_c_id:h.get("af_c_id")},A=u||(e=>{if("u"{try{if("u"{try{if("u"{let e={};return(o(p.utm_medium)&&(e.medium=p.utm_medium),o(p.utm_source)&&(e.source=p.utm_source),o(p.utm_campaign)&&(e.campaign=p.utm_campaign),o(p.utm_content)&&(e.content=p.utm_content),Object.keys(e).length)?(e.context="UTM",e):null},b=()=>{let e=A(r);if(!e)return null;try{let t={};return new URLSearchParams(decodeURIComponent(e)).forEach((e,i)=>{t[i]=e}),t}catch(e){return null}},v=()=>{let e=d.searchParams.get("_s");if(!e)return null;switch(e.trim()){case"19":return{context:"SEM",medium:"trans",source:"jianying",campaign:"mobile"};case"20":return{context:"Paidads",medium:"paidads",source:"SEM",campaign:"baidusem"};case"21":return{context:"Paidads",medium:"paidads",source:"SEM",campaign:"bingsem"}}return null},y=()=>{if(!l)return!1;try{let e=new URL(l).hostname.replace(/^www\./,""),t=d.hostname.replace(/^www\./,"");return e!==t}catch(e){return!1}},Q=()=>n.find(e=>e.test.some(e=>e instanceof RegExp?e.test(l):"function"==typeof e&&e(l)))||null,w=()=>{let e=g();if(e)return{data:e,strategy:"query"};let t=v();if(t)return{data:t,strategy:"_s"};let i=m(r);if(i)return{data:i,strategy:"ut"};let n=y();if(l&&!n){let e=b();if(e)return{data:e,strategy:"ut"}}if(!l)return{data:{context:"unknown",medium:"Direct"},strategy:"direct"};let o=Q();return o?{data:{context:"Referer",medium:o.medium,source:o.source},strategy:o.strategy}:n?{data:{context:"Referer",medium:"Referral",source:l},strategy:"referral"}:{data:{context:"unknown",medium:"Not Set"},strategy:"not_set"}},_=e=>{let{medium:t,source:i,campaign:r,content:n,channel_from:o,session_start_url:a}=e,s={channel_level1:t||"",channel_level2:i||"",channel_level3:r||"",channel_level4:n||"",channel_from:o||"unknown",session_start_url:a||""};return Object.assign(e,{channel:s})},{data:x,strategy:E}=w();if("ut"!==E){var t;x.session_start_url=d.href,(t=x).channel_from||(t.channel_from="local");let e=Object.assign({},x);e.channel_from=x.channel_from,e.session_start_url=x.session_start_url,k(r,JSON.stringify(e))}let C=_(x),D={context:x.context,utm_medium:C.channel.channel_level1,utm_source:C.channel.channel_level2,utm_campaign:C.channel.channel_level3,utm_content:C.channel.channel_level4,utm_term:p.utm_term||"",channel_level1:C.channel.channel_level1,channel_level2:C.channel.channel_level2,channel_level3:C.channel.channel_level3,channel_level4:C.channel.channel_level4,session_start_url:C.session_start_url||"",channel_from:C.channel_from||""};return"u">typeof window&&(window[i]=D),D}catch(e){return null}}},90296:function(e,t){"use strict";function i(e){return"object"==typeof e&&null!==e}function r(e){return"number"==typeof e}function n(e){return"string"==typeof e}function o(e){try{return n(e)?e:JSON.stringify(e)}catch(e){return"[FAILED_TO_STRINGIFY]:"+String(e)}}var a={value:!0},s=function(){return Date.now()},l="custom",u="event",f="log",c=function(e){if(e&&i(e)&&e.name&&n(e.name)){var t={name:e.name,type:u};if("metrics"in e&&i(e.metrics)){var a=e.metrics,s={};for(var l in a)r(a[l])&&(s[l]=a[l]);t.metrics=s}if("categories"in e&&i(e.categories)){var f=e.categories,c={};for(var l in f)c[l]=o(f[l]);t.categories=c}return t}},d=function(e){if(e&&i(e)&&e.content&&n(e.content)){var t=e.content,a={content:o(t),type:f,level:"info"};if("level"in e&&(a.level=e.level),"extra"in e&&i(e.extra)){var s=e.extra,l={},u={};for(var c in s)r(s[c])?l[c]=s[c]:u[c]=o(s[c]);a.metrics=l,a.categories=u}return a}},h=function(e){var t=function(t){var i=c(t);i&&e.report({ev_type:l,payload:i,extra:{timestamp:s()}})},i=function(t){var i=d(t);i&&e.report({ev_type:l,payload:i,extra:{timestamp:s()}})};e.provide("sendEvent",t),e.provide("sendLog",i)},p="custom",A=function(){return{name:p,setup:function(e){h(e)}}};a=p,t.customPlugin=A},56600:function(e,t){"use strict";var i,r={value:!0},n=function(){return(n=Object.assign||function(e){for(var t,i=1,r=arguments.length;it.indexOf(r)&&(i[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,r=Object.getOwnPropertySymbols(e);nt.indexOf(r[n])&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(i[r[n]]=e[r[n]]);return i}function a(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],r=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function s(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var r,n,o=i.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return a}function l(e,t,i){if(i||2==arguments.length)for(var r,n=0,o=t.length;n=o&&h.call(this),clearTimeout(d),d=setTimeout(h.bind(this),s)},flush:function(){clearTimeout(d),h.call(this)},getBatchData:function(){return l.length?c(l):""},clear:function(){clearTimeout(d),l=[]},fail:function(e){t=e}}}var h=["init","start","config","beforeDestroy","provide","beforeReport","report","beforeBuild","build","beforeSend","send","beforeConfig"],p=function(){return{}};function A(e){return e}function k(e){return"object"==typeof e&&null!==e}function m(e){return void 0===e}function g(e,t){try{return e instanceof t}catch(e){return!1}}var b=Object.prototype;function v(e){if(k(e)){if("function"==typeof Object.getPrototypeOf){var t=Object.getPrototypeOf(e);return t===b||null===t}return"[object Object]"===b.toString.call(e)}return!1}function y(e){return"[object Array]"===b.toString.call(e)}function Q(e){return"function"==typeof e}function w(e){return"boolean"==typeof e}function _(e){return"number"==typeof e}function x(e){return"string"==typeof e}function E(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMError]":case"[object DOMException]":return!0;default:return e instanceof Error}}function C(e){return"undefined"!=typeof Event&&g(e,Event)}function D(e){return"[object ErrorEvent]"===Object.prototype.toString.call(e)}function S(e){return"[object PromiseRejectionEvent]"===Object.prototype.toString.call(e)}function L(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function B(){for(var e=[],t=0;t=0){var r=e.slice();return r.splice(i,1),r}return e},N=function(e,t,i){for(var r,n=s(t.split(".")),o=n[0],a=n.slice(1);e&&a.length>0;)e=e[o],o=(r=s(a))[0],a=r.slice(1);if(e)return i(e,o)},H=function(e,t,i){return N(e,t,function(e,t){if(e&&t in e&&Q(e[t]))try{return e[t].apply(e,i)}catch(e){return}})},V=function(e,t){return e&&k(e)?t.reduce(function(t,i){return t[i]=e[i],t},{}):e},F=function(e){return e.replace(/([a-z])([A-Z])/g,function(e,t,i){return t+"-"+i.toLowerCase()})};function Z(e){return y(e)&&e.length?j(e):null}function j(e){for(var t=[],i=e.length,r=0;r>>((3&i)<<3)&255;return e}function ei(e){for(var t=[],i=0;i<256;++i)t[i]=(i+256).toString(16).substr(1);var r=0,n=t;return""+n[e[r++]]+n[e[r++]]+n[e[r++]]+n[e[r++]]+"-"+n[e[r++]]+n[e[r++]]+"-"+n[e[r++]]+n[e[r++]]+"-"+n[e[r++]]+n[e[r++]]+"-"+n[e[r++]]+n[e[r++]]+n[e[r++]]+n[e[r++]]+n[e[r++]]+n[e[r++]]}function er(){var e=et();return e[6]=15&e[6]|64,e[8]=63&e[8]|128,ei(e)}var en=3e5,eo=function(e,t,i){var r=0;return -1===i?p:function(){if(e()){r&&clearTimeout(r),r=0;return}0===r&&(r=setTimeout(t,i))}},ea=function(e,t){var i=[];try{i=t.reduce(function(t,i){try{var r=i(e);"function"==typeof r&&t.push(r)}catch(e){}return t},[])}catch(e){}return function(e){return ea(e,i)}},es=function(e){void 0===e&&(e=en);var t,i=[],r=[],n=!1,o=eo(function(){return!!i.length},function(){n=!0,t&&t[0](),r.forEach(function(e){return e()}),r.length=0,t=void 0},e),a=function(e){i=R(i,e),n||o()};return{next:function(e){return ea(e,i)},complete:function(e){r.push(e)},attach:function(e,i){t=[e,i]},subscribe:function(e){if(n)throw Error("Observer is closed");return i.push(e),t&&t[1]&&t[1](e),o(),function(){return a(e)}},unsubscribe:a}},el=function(e,t,i){var r=es(i);try{e(r.next,r.attach),t&&r.complete(t)}catch(e){}return[r.subscribe,r.unsubscribe]},eu=function(e,t){var i=s(e,1)[0];return function(e,r){var n=i(function(i){return ee(t)(i)?e(i):p});r(function(){n()})}};function ef(){var e=!1,t={},i=function(e){e.length&&e.forEach(function(e){try{e()}catch(e){}}),e.length=0},r=function(e){t[e]&&t[e].forEach(function(e){i(e[1])}),t[e]=void 0};return{set:function(r,n,o){t[r]?t[r].push([n,o]):t[r]=[[n,o]],e&&i(o)},has:function(e){return!!t[e]},remove:r,removeByEvType:function(e){Object.keys(t).forEach(function(r){t[r]&&t[r].forEach(function(t){t[0]===e&&i(t[1])})})},clear:function(){e=!0,Object.keys(t).forEach(function(e){r(e)})}}}var ec=function(e,t,i,r){return e.destroyAgent.set(t,i,r)};function ed(e){var t,i,r=e.builder,n=e.createSender,o=e.createDefaultConfig,a=e.createConfigManager,u=e.userConfigNormalizer,f=e.initConfigNormalizer,c=e.validateInitConfig,d={};h.forEach(function(e){return d[e]=[]});var p=!1,A=!1,m=!1,g=[],b=[],v=ef(),y={getBuilder:function(){return r},getSender:function(){return t},getPreStartQueue:function(){return g},init:function(e){if(p)return void Y("already inited");if(e&&k(e)&&c(e)){var r=o(e);if(!r)throw Error("defaultConfig missing");var s=f(e);if((i=a(r)).setConfig(s),i.onChange(function(){Q("config")}),!(t=n(i.getConfig())))throw Error("sender missing");p=!0,Q("init",!0)}else throw Error("invalid InitConfig, init failed")},set:function(e){p&&e&&k(e)&&(Q("beforeConfig",!1,e),null==i||i.setConfig(e))},config:function(e){if(p)return e&&k(e)&&(Q("beforeConfig",!1,e),null==i||i.setConfig(u(e))),null==i?void 0:i.getConfig()},provide:function(e,t){if(O(b,e))return void Y("cannot provide "+e+", reserved");y[e]=t,Q("provide",!1,e)},start:function(){var e=this;p&&(A||null==i||i.onReady(function(){A=!0,Q("start",!0),g.forEach(function(t){return e.build(t)}),g.length=0}))},report:function(e){if(e){var t=K(d.beforeReport)(e);if(t){var i=K(d.report)(t);i&&(A?this.build(i):g.push(i))}}},build:function(e){if(!A)return;var t=K(d.beforeBuild)(e);if(t){var i=r.build(t);if(i){var n=K(d.build)(i);n&&this.send(n)}}},send:function(e){if(A){var i=K(d.beforeSend)(e);i&&(t.send(i),Q("send",!1,i))}},destroy:function(){v.clear(),m=!0,g.length=0,Q("beforeDestroy",!0)},on:function(e,t){if("init"===e&&p||"start"===e&&A||"beforeDestroy"===e&&m)try{t()}catch(e){}else d[e]&&d[e].push(t)},off:function(e,t){d[e]&&(d[e]=R(d[e],t))},destroyAgent:v};return b=Object.keys(y),y;function Q(e,t){void 0===t&&(t=!1);for(var i=[],r=2;r=ev()?a:void 0}catch(e){return}},e0=function(e,t,i){if(!(i<=0))try{localStorage.setItem(e,eq(JSON.stringify(n(n({},t),{expires:ev()+i}))))}catch(e){}},e2=7776e6,e1=function(e){return!1===e?0:!0!==e&&void 0!==e&&_(e)?e:e2},e4="xhr_0",e6=function(){var e=RegExp("\\/monitor_web\\/collect|\\/monitor_browser\\/collect\\/batch","i");return function(t){return e.test(t)}},e3=function(e){return function(){for(var t,i=[],r=0;r=400)&&(s.request.body=a?""+a:void 0,s.response.body=e.response?""+e.response:void 0)}catch(e){}return s},tB="ajax",tP={autoWrap:!0,setContextAtReq:function(){return A},ignoreUrls:[],collectBodyOnError:!1};function tM(e,t){var i=e$(t,tP);if(i){var r=[],o=n(n({},i),{setContextAtReq:function(){return eI(e,!0)},setTraceHeader:ty(i.trace)}),a=function(){return eb(e,to)};o.autoWrap&&tC(r,[eb(e,[e4,e9(XMLHttpRequest&&XMLHttpRequest.prototype)]),a],o),ec(e,tB,tu,r),e.provide("wrapXhr",function(e){function t(){var t=new e;return tC(r,[el(e9(t)),a],o),t}return t.prototype=new e,["DONE","HEADERS_RECIEVED","LOADING","OPENED","UNSENT"].forEach(function(i){t[i]=e[i]}),t})}}function tI(e){e.on("init",function(){var t,i=null==(t=e.config())?void 0:t.plugins[tB];tM(e,i)})}var tO=function(e,t,i){var r=s(t,2),n=r[0],o=r[1],a=i.setTraceHeader,l=i.ignoreUrls,u=i.setContextAtReq,f=i.extractUrl,c=window.Headers,d=window.Request;d&&c&&e.push(n[0](function(e){var t=s(e,2),r=t[0],n=t[1],h=eS(r instanceof d?r.url:r);if(!tR(h)||z(l,h))return p;a&&a(h,function(e,t){return tH(e,t,r,n,d,c)});var A=u(),k=ev(),m=void 0,g=o()[0](function(e){h!==e.name||m||(m=e)});return function(e){var t=tj(r,n,e,d,c,i,k),o=tx(function(e){m&&(e.response.timing=m),tE(e,f),A&&A({ev_type:tu,payload:e}),g()});setTimeout(function(){o(t)},1e3)}}))},tR=function(e){if(!x(e))return!1;var t=s(e.split(":"),2),i=t[0];return!t[1]||"http"===i||"https"===i},tN=function(e,t){return e instanceof t},tH=function(e,t,i,r,o,a){var s;tN(i,o)?i.headers.set(e,t):r.headers instanceof a?r.headers.set(e,t):r.headers=n(n({},r.headers),((s={})[e]=t,s))},tV=function(e,t,i){var r=t&&t.method||"get";return tN(e,i)&&(r=e.method||r),r.toLowerCase()},tF=function(e){for(var t=[],i=1;i=400&&f()}catch(e){}else f();return s},tz="fetch",tG={autoWrap:!0,setContextAtReq:function(){return A},ignoreUrls:[],collectBodyOnError:!1};function tU(e,t){var i=e$(t,tG);if(i){var r=[],o=n(n({},i),{setContextAtReq:function(){return eI(e,!0)},setTraceHeader:ty(i.trace)}),a=function(){return eb(e,to)};o.autoWrap&&tO(r,[eb(e,tt),a],o),ec(e,tz,tu,r),e.provide("wrapFetch",function(e){var t=void 0;return tO(r,[el(function(i){t=te(e,i)}),a],o),t})}}function tX(e){e.on("init",function(){var t,i=null==(t=e.config())?void 0:t.plugins[tz];tU(e,i)})}var tW=["name","message","stack","filename","lineno","colno"],t$=function(e){var t;return E(e)?t=V(e,tW):(v(e)||C(e)||x(e))&&(t={message:G(e)}),t},tY=function(e){var t=t$(e.error);if(!t)return t;var i=e.colno,r=e.lineno,n=e.filename;return i&&!t.colno&&(t.colno=String(i)),r&&!t.lineno&&(t.lineno=String(r)),n&&!t.filename&&(t.filename=n),t},tq=function(e){var t;try{var i=void 0;if("reason"in e?i=e.reason:"detail"in e&&"reason"in e.detail&&(i=e.detail.reason),i){var r=t$(i);return n(n({},r),{name:null!=(t=r&&r.name)?t:"UnhandledRejection"})}}catch(e){}},tJ=function(e){return D(e)?tY(e):S(e)?tq(e):t$(e)},tK="jsError",t0=function(e){return"hidden"===e.visibilityState},t2=["hidden_3",function(e,t){var i=eQ(),r=ey();if(i&&r){var n=function(t){e("pagehide"===t.type||t0(i))},o=ej(i,"visibilitychange",n,!0),a=eZ(r,"pagehide",n,!0);t(function(){o(),a()},function(e){e(t0(i))})}}],t1=function(e){return"complete"===e.readyState},t4=["unload_0",function(e,t){var i=ey();if(i){var r=s(eG(e),1),n=r[0],o=["unload","beforeunload","pagehide"],a=function(){n()},l=[];o.forEach(function(e){l.push(eZ(i,e,a,!1))}),t(function(){l.forEach(function(e){return e()})})}}],t6=["hash_0",function(e,t){var i=ey();if(i){var r=function(){return e(location.href)},n=eZ(i,"hashchange",r,!0);t(function(){n()})}}],t3=["history_0",function(e,t){var i=e_(),r=ey();if(i&&r){var n=[],o=function(){return e(location.href)},a=function(e){return function(){for(var t=[],r=0;rt.frustrating_threshold?2:r>t.satisfying_threshold||0===i?0:1},id=function(){var e=0,t=void 0;return[function(i){i?t&&(e+=ev()-t,t=void 0):t=ev()},function(){t&&(e+=ev()-t);var i=e;return e=0,t=ev(),i}]},ih=function(e,t){return function(i,r){var n=i.payload;switch(i.ev_type){case th:var o=n.name;n.isSupport&&e(r[is],o,n.value);break;case tk:e(r[is],il,n.duration||0);break;case tl:t(r[io],0);break;case tu:if(n.response.is_custom_error||n.response.status>=400)t(r[io],1);else{var a=n.response.timing;a&&e(r[ia],0,a.duration)}break;case tf:t(r[io],2);break;case tA:t(r[io],3);break;case tc:e(r[ia],1,n.duration);break;case tp:n.longtasks.forEach(function(t){e(r[ia],2,t.duration)})}}},ip=function(){var e,t,i=function(){e=[0,0,0],t=iu()};return i(),[function(i,r,n){var o=i&&i[r];if(o&&!(n<=0)){var a=n<(o[0].threshold||0)?0:n>(o[1].threshold||0)?2:1;if(e[a]+=o[a].weight,"string"==typeof r){var s=t7(r,a),l=t[is][s];t[is][s]=(l||0)+1}else 2===a&&(t.duration_count[r]+=1)}},function(i,r){i&&(e[2]+=i[r],t.error_count[r]+=1)},function(){return[e,t]},i]},iA=function(){var e={start:ev(),end:0,time_spent:0,is_bounced:!1,entry:"",exit:"",p_count:0,a_count:0};return[function(t,i){var r=s(t,3),n=r[0],o=r[1],a=r[2];e.end=ev(),e.time_spent+=i&&i.time_spent||0,e.last_page=i,e.p_count+=1,e.rank=n,e.apdex=o,e.apdex_detail=a;var l=eQ();l&&(e.is_bounced=!t1(l))},function(t,i){e.time_spent+=t.time_spent,e.p_count+=1,e.exit=i},function(){e.a_count+=1},function(t){e.entry=t,e.exit=t},function(){return e}]},ik=function(e,t,i,r){var n=r.sendInit,o=r.initPid,a=r.routeMode,l=r.extractPid,u=r.onPidUpdate,f=ir(a)?function(){return""}:t5(a),c=l||function(){},d=function(e){var t;return null!=(t=c(e))?t:f(e)},h=s(t9(ii(e),o||d(location.href),f(location.href),u),2),p=h[0],A=h[1];if(!ir(a)){var k=s(ie(function(e,t){return p(e,f(t),c(t))},""),1)[0];i.length&&i.forEach(function(e){return t.push(e[0](function(e){return k(a,e)}))})}return n&&A(),[p.bind(null,"user_set")]},im=function(e,t,i,r){var n=s(i,2),o=n[0],a=n[1],l=2===r.apdex,u=void 0,f=void 0,c=void 0,d=!1,h=s(ip(),4),p=h[0],A=h[1],k=h[2],m=h[3],g=s(ip(),4),b=g[0],v=g[1],y=g[2],Q=g[3],w=s(iA(),5),_=w[0],x=w[1],E=w[2],C=w[3],D=w[4],S=s(id(),2),L=S[0],B=S[1];t.push(o[0](L)),l||t.push(a[0](function(){if(d){var t=s(y(),2),i=t[0],r=t[1],n=ic(i,c);_([n,i,r],R()),e({ev_type:ts,payload:D()}),Q()}}));var P=ih(p,A),I=ih(b,v),O=function(e){d&&(l||(I(e,c),e.ev_type===tk&&E()),e.common.pid===u[1]&&P(e,c))},R=function(){var e=s(k(),2),t=e[0],i=e[1];return{start:u[0],pid:u[1],view_id:u[2],end:ev(),time_spent:B(),apdex:t,rank:ic(t,c),detail:i}},N=function(e,t){if(!u){u=[ev(),e,t],C(e),d=!!(c&&u);return}d&&x(f=R(),e),u=[ev(),e,t],m()},H=function(t){d&&(t.payload.last=f),e(t)},V=function(e){if(!e){t.forEach(function(e){return e()}),t.length=0;return}d=!!((c=e)&&u)};return t.push(function(){d=!1}),[N,O,H,V]},ig="pageview",ib={sendInit:!0,routeMode:"history",apdex:2};function iT(e,t){var i,r=e$(t,ib);if(r&&ew()){var o=r.routeMode,a=r.apdex,l=e.report.bind(e),u=p;if(a){var f=[],c=s(im(e.report.bind(e),f,[eb(e,t2),eb(e,t4)],r),4),d=c[0],h=c[1],A=c[2],k=c[3];l=A,u=d,e.on("send",h),f.push(function(){return e.off("send",h)}),e.on("start",function(){k(e.config().apdex)}),ec(e,ig,ts,f)}var m=[],g=s(ik(l,m,ir(o)?[]:[e.initSubject(t6),e.initSubject(t3)],n(n({},r),{initPid:null==(i=e.config())?void 0:i.pid,onPidUpdate:function(t){var i=t8(t);u(t,i),e.set({pid:t,viewId:i,actionId:void 0})}})),1),b=g[0];eT(e,[eO,eR(e)],-1);var v=function(){b(e.config().pid)};e.on("config",v),m.push(function(){return e.off("config",v)}),ec(e,ig,ta,m),e.provide("sendPageview",b)}}function iv(e){e.on("init",function(){var t,i=null==(t=e.config())?void 0:t.plugins[ig];iT(e,i)})}var iy="event",iQ="log",iw=function(e){if(e&&k(e)&&e.name&&x(e.name)){var t={name:e.name,type:iy};if("metrics"in e&&k(e.metrics)){var i=e.metrics,r={};for(var n in i)_(i[n])&&(r[n]=i[n]);t.metrics=r}if("categories"in e&&k(e.categories)){var o=e.categories,a={};for(var n in o)a[n]=G(o[n]);t.categories=a}return"attached_log"in e&&x(e.attached_log)&&(t.attached_log=e.attached_log),t}},i_=function(e){if(e&&k(e)&&e.content&&x(e.content)){var t=e.content,i={content:G(t),type:iQ,level:"info"};if("level"in e&&(i.level=e.level),"extra"in e&&k(e.extra)){var r=e.extra,n={},o={};for(var a in r)_(r[a])?n[a]=r[a]:o[a]=G(r[a]);i.metrics=n,i.categories=o}return"attached_log"in e&&x(e.attached_log)&&(i.attached_log=e.attached_log),i}},ix=function(e){var t=function(t){var i=iw(t);i&&e.report({ev_type:td,payload:i,extra:{timestamp:ev()}})},i=function(t){var i=i_(t);i&&e.report({ev_type:td,payload:i,extra:{timestamp:ev()}})};e.provide("sendEvent",t),e.provide("sendLog",i)};function iE(e){return(null==e?void 0:e.effectiveType)||(null==e?void 0:e.type)||""}var iC=function(e){var t=eD(),i=iE(t);t&&(t.onchange=function(){i=iE(t)}),e.on("report",function(e){return n(n({},e),{extra:n(n({},e.extra||{}),{network_type:i})})})},iD=function(e,t){var i=e.common||{};return i.sample_rate=t,e.common=i,e},iS=function(e,t,i,r,n){return e?function(e){return function(){return e}}(n(r,t)):function(){return i(t)}},iL=function(e,t){return e.map(function(e){switch(t){case"number":return Number(e);case"boolean":return"1"===e;default:return String(e)}})},iB=function(e,t,i){switch(i){case"eq":return O(t,e);case"neq":return!O(t,e);case"gt":return e>t[0];case"gte":return e>=t[0];case"lt":return e=400)l(Error(this.responseText||this.statusText));else if(this.responseText){var e=JSON.parse(this.responseText);a(e)}else a({})}catch(e){l(e)}},h.onerror=function(){l(Error("Network request failed"))},h.onabort=function(){l(Error("Network request aborted"))},h.send(n)},iV=function(){var e=ex();return e?{useBeacon:!0,get:function(t){iH("GET",t,e)},post:function(t){iH("POST",t,e)}}:{get:p,post:p}};function iF(e){var t=d(e),i=t.send;return eU(function(){if(e.transport.useBeacon){var r=iN(),n=t.getBatchData();n&&(r.post(t.getEndpoint(),n),t.clear()),t.send=function(e){r.post(t.getEndpoint(),c([e]))},eX(function(){t.send=i})}else t.flush()}),t}var iZ="mj.huaxiangai.com/zijiemon",ij=iZ,iz="https://lf3-short.ibytedapm.com/slardar/fe/sdk-web/plugins",iG="1.14.2",iU="SDK_SLARDAR_WEB",iX="/monitor_web/settings/browser-settings",iW="/monitor_browser/collect/batch/",i$="SLARDAR",iY="MONITOR_WEB_ID",iq="MONITOR_DEVICE_ID",iJ=["/log/sentry/",iW,iX],iK="session",i0=["blankScreen","action"],i2={sample_rate:1,include_users:[],sample_granularity:iK,rules:{}},i1=20,i4="";function i6(e,t,i){void 0===i&&(i=i7),ez(function(){e.on("init",function(){i(e,t)})})}var i3=function(e,t,i,r){void 0===r&&(r=i9);var n=t.config(),o=n.plugins,a=n.pluginBundle,s=e.filter(function(e){return o[e]&&!t.destroyAgent.has(e)}),l=function(){return s.forEach(function(e){return rt(t,e,i)})};s.every(function(e){return rr(e,i)})?l():r(t,{name:a.name},l)},i5=function(e,t,i,r){void 0===r&&(r=i9);var n=t.config().plugins;e.filter(function(e){return n[e]&&!t.destroyAgent.has(e)}).forEach(function(e){rr(e,i)?rt(t,e,i):r(t,{name:e,config:n[e]},function(){return rt(t,e,i)})})},i8=function(e){return function(t,i){var r,o=e.config().pluginBundle;e.destroyAgent.has(t)&&e.destroyAgent.remove(t),void 0!==i&&e.set({plugins:n(n({},e.config().plugins),((r={})[t]=i,r))}),o&&~o.plugins.indexOf(t)?i3([t],e):i5([t],e)}};function i7(e,t,i){void 0===i&&(i=i9);var r=e.config().pluginBundle;i3(r?r.plugins:[],e,t,i),i5(i0,e,t,i),e.provide("reloadPlugin",i8(e))}function i9(e,t,i,r){var n=t.name,o=t.config;void 0===r&&(r=eW),r(re(e,n,o),function(){i()})}function re(e,t,i){var r;return null!=(r=null==i?void 0:i.path)?r:e.config().pluginPathPrefix+"/"+F(t)+"."+iG+"."+i4+"js"}function rt(e,t,i){if(void 0===i&&(i=eN(ey())),i){var r=ri(i,t);if(!r)return void Y("[loader].applyPlugin not found",t);try{if(e.destroyAgent.has(t))return;r.apply(e)}catch(e){eH(e),Y("[loader].applyPlugin failed",t,e)}}}function ri(e,t){return e.plugins.filter(function(e){return e.name===t&&e.version===iG})[0]}function rr(e,t){return void 0===t&&(t=eN(ey())),!!t&&!!t.plugins&&!!ri(t,e)}function rn(e,t,i){void 0===i&&(i=eN(ey())),i&&i.plugins&&(ri(i,e)||i.plugins.push({name:e,version:iG,apply:t}))}function ro(e){var t,i,r=["userId","deviceId","sessionId","env"];try{for(var n=a(r),o=n.next();!o.done;o=n.next()){var s=o.value;e[s]||delete e[s]}}catch(e){t={error:e}}finally{try{o&&!o.done&&(i=n.return)&&i.call(n)}finally{if(t)throw t.error}}return e}function ra(e){var t=e.plugins||{};for(var i in t)t[i]&&!k(t[i])&&(t[i]={});return ro(n(n({},e),{plugins:t}))}function rs(e){return k(e)&&"bid"in e}function rl(e){return ro(n({},e))}function ru(e){if(!e)return{};var t,i=e.sample,r=e.plugins,n=e.timestamp,o=e.quota_rate,a=void 0===o?1:o,s=e.apdex;if(!i)return{};var l=i.sample_rate,u=i.sample_granularity,f=void 0===u?iK:u,c=i.include_users,d=i.rules;return{sample:{include_users:c,sample_rate:l*a,sample_granularity:f,rules:(void 0===d?[]:d).reduce(function(e,t){var i=t.name,r=t.enable,n=t.sample_rate,o=t.conditional_sample_rules;return e[i]={enable:r,sample_rate:n,conditional_sample_rules:o},e},{})},plugins:{heatmap:null!=(t=null==r?void 0:r.heatmap)&&t},apdex:s,serverTimestamp:n}}var rf=function(e,t){return void 0===t&&(t=iW),(e&&e.indexOf("//")>=0?"":"https://")+e+t},rc=function(e,t){return void 0===t&&(t=iX),(e&&e.indexOf("//")>=0?"":"https://")+e+t},rd=function(){return er()},rh=function(e){var t=[];return e.observe=function(e){t.push(e)},e.push=function(){for(var i,r=[],n=0;n=Number(o))&&!i){i=!0;var a=new Date().getTime(),s=a-t;if(s0||l<-6e5)&&e.on("beforeBuild",function(e){var t;return n(n({},e),{extra:n(n({},null!=(t=e.extra)?t:{}),{sdk_offset:null!=l?l:0})})})}}})})},rR=function(e,t){var i={};return i.bid=t.bid,i.user_id=t.userId,i.device_id=t.deviceId,i.session_id=t.sessionId,i.release=t.release,i.env=t.env,n(n({},e),{extra:n(n({},i),e.extra||{})})},rN=function(e){e.on("beforeBuild",function(t){return rR(t,e.config())})},rH=function(e){e.on("start",function(){var t=e.config().bid,i=e.getSender();i.setEndpoint(i.getEndpoint()+"?biz_id="+t)})},rV=function(e){var t=e1(e.storageExpires),i=rk(e.bid,t);return{bid:"",pid:"",viewId:t8("_"),userId:i.userId,deviceId:i.deviceId,storageExpires:t,sessionId:rd(),domain:iZ,pluginBundle:{name:"commonMonitors",plugins:["breadcrumb","jsError","performance","resourceError","resource"]},pluginPathPrefix:iz,plugins:{ajax:{ignoreUrls:iJ},fetch:{ignoreUrls:iJ},breadcrumb:{},pageview:{},jsError:{},resource:{},resourceError:{},performance:{},tti:{},fmp:{},blankScreen:!1,heatmap:!1},release:"",env:"production",sample:i2,transport:iV()}},rF=function(e){var t=void 0===e?{}:e,i=t.createSender,r=void 0===i?function(e){return iF({size:i1,endpoint:rf(e.domain),transport:e.transport})}:i,n=t.builder,o=void 0===n?ry:n,a=t.createDefaultConfig,u=ed({validateInitConfig:rs,initConfigNormalizer:ra,userConfigNormalizer:rl,createSender:r,builder:o,createDefaultConfig:void 0===a?rV:a,createConfigManager:rb});rM(u),eh(u);var f=eN(ey());eg(u,f&&f.subject),rO(u),rN(u),rw(u),iC(u),rH(u);var c=ep(u,eV,function(e,t,i){return eF(e,t)(function(){var e=s(i),t=e[0],r=e.slice(1);u[t].apply(u,l([],s(r),!1))})});return eA(c,rn),c},rZ=((i={})[ig]=iv,i[tB]=tI,i[tz]=tX,i),rj=function(e){void 0===e&&(e={});var t=rF(e);return iR(t),rL(t),ix(t),Object.keys(rZ).forEach(function(e){rn(e,rZ[e]),rZ[e](t)}),i6(t),t.provide("create",rj),t},rz="precollect",rG=3e5;function rU(e,t){if("addEventListener"in e){t.pcErr=function(i){var r=(i=i||e.event).target||i.srcElement||{};r instanceof Element||r instanceof HTMLElement?t(rz,"st",{tagName:r.tagName,url:r.getAttribute("href")||r.getAttribute("src")}):t(rz,"err",i.error)},t.pcRej=function(i){t(rz,"reject",(i=i||e.event).reason||i.detail&&i.detail.reason)};var i=[];i.push(eZ(e,"error",t.pcErr,!0)),i.push(eZ(e,"unhandledrejection",t.pcRej,!0)),setTimeout(function(){i.forEach(function(e){return e()})},rG)}"PerformanceObserver"in e&&"PerformanceLongTaskTiming"in e&&(t.pp={entries:[]},t.pp.observer=new PerformanceObserver(function(e){t.pp.entries=t.pp.entries.concat(e.getEntries())}),t.pp.observer.observe({entryTypes:["longtask"]}),setTimeout(function(){t.pp.observer.disconnect()},rG))}var rX=rj(),rW=ey();rW&&rU(rW,rX),r=iW,r=iJ,r=i2,r=iK,r=i1,r=iq,r=r_,r=i0,r=rN,r=rw,r=rH,r=rM,r=iz,r=rZ,r=rL,r=iZ,r=iU,r=iG,r=ij,r=iX,r=i$,r=rO,r=iY,r=rR,r=rQ,r=rt,r=ry,r=rB,r=rg,t.createBrowserClient=rj},14800:function(e,t){"use strict";t.byteLength=u,t.toByteArray=c,t.fromByteArray=p;for(var i=[],r=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");-1===i&&(i=t);var r=i===t?0:4-i%4;return[i,r]}function u(e){var t=l(e),i=t[0],r=t[1];return(i+r)*3/4-r}function f(e,t,i){return(t+i)*3/4-i}function c(e){var t,i,o=l(e),a=o[0],s=o[1],u=new n(f(e,a,s)),c=0,d=s>0?a-4:a;for(i=0;i>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=r[e.charCodeAt(i)]<<2|r[e.charCodeAt(i+1)]>>4,u[c++]=255&t),1===s&&(t=r[e.charCodeAt(i)]<<10|r[e.charCodeAt(i+1)]<<4|r[e.charCodeAt(i+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u}function d(e){return i[e>>18&63]+i[e>>12&63]+i[e>>6&63]+i[63&e]}function h(e,t,i){for(var r=[],n=t;nl?l:s+a));return 1===n?o.push(i[(t=e[r-1])>>2]+i[t<<4&63]+"=="):2===n&&o.push(i[(t=(e[r-2]<<8)+e[r-1])>>10]+i[t>>4&63]+i[t<<2&63]+"="),o.join("")}r[45]=62,r[95]=63},66465:function(e,t,i){"use strict";var r;let n=i(14800),o=i(33977),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=u,r=v,t.INSPECT_MAX_BYTES=50;let s=0x7fffffff;function l(e){if(e>s)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,i){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return h(e)}return f(e,t,i)}function f(e,t,i){if("string"==typeof e)return p(e,t);if(ArrayBuffer.isView(e))return k(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(el(e,ArrayBuffer)||e&&el(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(el(e,SharedArrayBuffer)||e&&el(e.buffer,SharedArrayBuffer)))return m(e,t,i);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return u.from(r,t,i);let n=g(e);if(n)return n;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return u.from(e[Symbol.toPrimitive]("string"),t,i);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function d(e,t,i){return(c(e),e<=0)?l(e):void 0!==t?"string"==typeof i?l(e).fill(t,i):l(e).fill(t):l(e)}function h(e){return c(e),l(e<0?0:0|b(e))}function p(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!u.isEncoding(t))throw TypeError("Unknown encoding: "+t);let i=0|y(e,t),r=l(i),n=r.write(e,t);return n!==i&&(r=r.slice(0,n)),r}function A(e){let t=e.length<0?0:0|b(e.length),i=l(t);for(let r=0;r=s)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function v(e){return+e!=e&&(e=0),u.alloc(+e)}function y(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||el(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let i=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===i)return 0;let n=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return er(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return ea(e).length;default:if(n)return r?-1:er(e).length;t=(""+t).toLowerCase(),n=!0}}function Q(e,t,i){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===i||i>this.length)&&(i=this.length),i<=0||(i>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return H(this,t,i);case"utf8":case"utf-8":return P(this,t,i);case"ascii":return R(this,t,i);case"latin1":case"binary":return N(this,t,i);case"base64":return B(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V(this,t,i);default:if(r)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function w(e,t,i){let r=e[t];e[t]=e[i],e[i]=r}function _(e,t,i,r,n){if(0===e.length)return -1;if("string"==typeof i?(r=i,i=0):i>0x7fffffff?i=0x7fffffff:i<-0x80000000&&(i=-0x80000000),eu(i*=1)&&(i=n?0:e.length-1),i<0&&(i=e.length+i),i>=e.length)if(n)return -1;else i=e.length-1;else if(i<0)if(!n)return -1;else i=0;if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:x(e,t,i,r,n);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(n)return Uint8Array.prototype.indexOf.call(e,t,i);else return Uint8Array.prototype.lastIndexOf.call(e,t,i);return x(e,[t],i,r,n)}throw TypeError("val must be string, number or Buffer")}function x(e,t,i,r,n){let o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,i/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){let r=-1;for(o=i;os&&(i=s-l),o=i;o>=0;o--){let i=!0;for(let r=0;ro&&(r=o):r=o;let a=t.length;for(r>a/2&&(r=a/2),n=0;n239?4:t>223?3:t>191?2:1;if(n+a<=i){let i,r,s,l;switch(a){case 1:t<128&&(o=t);break;case 2:(192&(i=e[n+1]))==128&&(l=(31&t)<<6|63&i)>127&&(o=l);break;case 3:i=e[n+1],r=e[n+2],(192&i)==128&&(192&r)==128&&(l=(15&t)<<12|(63&i)<<6|63&r)>2047&&(l<55296||l>57343)&&(o=l);break;case 4:i=e[n+1],r=e[n+2],s=e[n+3],(192&i)==128&&(192&r)==128&&(192&s)==128&&(l=(15&t)<<18|(63&i)<<12|(63&r)<<6|63&s)>65535&&l<1114112&&(o=l)}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),n+=a}return O(r)}r=0x7fffffff,u.TYPED_ARRAY_SUPPORT=function e(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),u.TYPED_ARRAY_SUPPORT,Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(e,t,i){return f(e,t,i)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(e,t,i){return d(e,t,i)},u.allocUnsafe=function(e){return h(e)},u.allocUnsafeSlow=function(e){return h(e)},u.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==u.prototype},u.compare=function(e,t){if(el(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),el(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(e)||!u.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let i=e.length,r=t.length;for(let n=0,o=Math.min(i,r);nr.length?(u.isBuffer(t)||(t=u.from(t)),t.copy(r,n)):Uint8Array.prototype.set.call(r,t,n);else if(u.isBuffer(t))t.copy(r,n);else throw TypeError('"list" argument must be an Array of Buffers');n+=t.length}return r},u.byteLength=y,u.prototype._isBuffer=!0,u.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;ti&&(e+=" ... "),""},a&&(u.prototype[a]=u.prototype.inspect),u.prototype.compare=function(e,t,i,r,n){if(el(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===i&&(i=e?e.length:0),void 0===r&&(r=0),void 0===n&&(n=this.length),t<0||i>e.length||r<0||n>this.length)throw RangeError("out of range index");if(r>=n&&t>=i)return 0;if(r>=n)return -1;if(t>=i)return 1;if(t>>>=0,i>>>=0,r>>>=0,n>>>=0,this===e)return 0;let o=n-r,a=i-t,s=Math.min(o,a),l=this.slice(r,n),f=e.slice(t,i);for(let e=0;e>>=0,isFinite(i)?(i>>>=0,void 0===r&&(r="utf8")):(r=i,i=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let n=this.length-t;if((void 0===i||i>n)&&(i=n),e.length>0&&(i<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return E(this,e,t,i);case"utf8":case"utf-8":return C(this,e,t,i);case"ascii":case"latin1":case"binary":return D(this,e,t,i);case"base64":return S(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,e,t,i);default:if(o)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};let I=4096;function O(e){let t=e.length;if(t<=I)return String.fromCharCode.apply(String,e);let i="",r=0;for(;rr)&&(i=r);let n="";for(let r=t;ri)throw RangeError("Trying to access beyond buffer length")}function Z(e,t,i,r,n,o){if(!u.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>n||te.length)throw RangeError("Index out of range")}function j(e,t,i,r,n){J(t,r,n,e,i,7);let o=Number(t&BigInt(0xffffffff));e[i++]=o,o>>=8,e[i++]=o,o>>=8,e[i++]=o,o>>=8,e[i++]=o;let a=Number(t>>BigInt(32)&BigInt(0xffffffff));return e[i++]=a,a>>=8,e[i++]=a,a>>=8,e[i++]=a,a>>=8,e[i++]=a,i}function z(e,t,i,r,n){J(t,r,n,e,i,7);let o=Number(t&BigInt(0xffffffff));e[i+7]=o,o>>=8,e[i+6]=o,o>>=8,e[i+5]=o,o>>=8,e[i+4]=o;let a=Number(t>>BigInt(32)&BigInt(0xffffffff));return e[i+3]=a,a>>=8,e[i+2]=a,a>>=8,e[i+1]=a,a>>=8,e[i]=a,i+8}function G(e,t,i,r,n,o){if(i+r>e.length||i<0)throw RangeError("Index out of range")}function U(e,t,i,r,n){return t*=1,i>>>=0,n||G(e,t,i,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,i,r,23,4),i+4}function X(e,t,i,r,n){return t*=1,i>>>=0,n||G(e,t,i,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,i,r,52,8),i+8}u.prototype.slice=function(e,t){let i=this.length;e=~~e,t=void 0===t?i:~~t,e<0?(e+=i)<0&&(e=0):e>i&&(e=i),t<0?(t+=i)<0&&(t=0):t>i&&(t=i),t>>=0,t>>>=0,i||F(e,t,this.length);let r=this[e],n=1,o=0;for(;++o>>=0,t>>>=0,i||F(e,t,this.length);let r=this[e+--t],n=1;for(;t>0&&(n*=256);)r+=this[e+--t]*n;return r},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e>>>=0,t||F(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||F(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||F(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||F(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||F(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readBigUInt64LE=ec(function(e){K(e>>>=0,"offset");let t=this[e],i=this[e+7];(void 0===t||void 0===i)&&ee(e,this.length-8);let r=t+256*this[++e]+65536*this[++e]+0x1000000*this[++e],n=this[++e]+256*this[++e]+65536*this[++e]+0x1000000*i;return BigInt(r)+(BigInt(n)<>>=0,"offset");let t=this[e],i=this[e+7];(void 0===t||void 0===i)&&ee(e,this.length-8);let r=0x1000000*t+65536*this[++e]+256*this[++e]+this[++e],n=0x1000000*this[++e]+65536*this[++e]+256*this[++e]+i;return(BigInt(r)<>>=0,t>>>=0,i||F(e,t,this.length);let r=this[e],n=1,o=0;for(;++o=(n*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,i){e>>>=0,t>>>=0,i||F(e,t,this.length);let r=t,n=1,o=this[e+--r];for(;r>0&&(n*=256);)o+=this[e+--r]*n;return o>=(n*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return(e>>>=0,t||F(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||F(e,2,this.length);let i=this[e]|this[e+1]<<8;return 32768&i?0xffff0000|i:i},u.prototype.readInt16BE=function(e,t){e>>>=0,t||F(e,2,this.length);let i=this[e+1]|this[e]<<8;return 32768&i?0xffff0000|i:i},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||F(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||F(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readBigInt64LE=ec(function(e){K(e>>>=0,"offset");let t=this[e],i=this[e+7];return(void 0===t||void 0===i)&&ee(e,this.length-8),(BigInt(this[e+4]+256*this[e+5]+65536*this[e+6]+(i<<24))<>>=0,"offset");let t=this[e],i=this[e+7];return(void 0===t||void 0===i)&&ee(e,this.length-8),(BigInt((t<<24)+65536*this[++e]+256*this[++e]+this[++e])<>>=0,t||F(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||F(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||F(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||F(e,8,this.length),o.read(this,e,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,i,r){if(e*=1,t>>>=0,i>>>=0,!r){let r=Math.pow(2,8*i)-1;Z(this,e,t,i,r,0)}let n=1,o=0;for(this[t]=255&e;++o>>=0,i>>>=0,!r){let r=Math.pow(2,8*i)-1;Z(this,e,t,i,r,0)}let n=i-1,o=1;for(this[t+n]=255&e;--n>=0&&(o*=256);)this[t+n]=e/o&255;return t+i},u.prototype.writeUint8=u.prototype.writeUInt8=function(e,t,i){return e*=1,t>>>=0,i||Z(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(e,t,i){return e*=1,t>>>=0,i||Z(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(e,t,i){return e*=1,t>>>=0,i||Z(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(e,t,i){return e*=1,t>>>=0,i||Z(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(e,t,i){return e*=1,t>>>=0,i||Z(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigUInt64LE=ec(function(e,t=0){return j(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=ec(function(e,t=0){return z(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(e,t,i,r){if(e*=1,t>>>=0,!r){let r=Math.pow(2,8*i-1);Z(this,e,t,i,r-1,-r)}let n=0,o=1,a=0;for(this[t]=255&e;++n>>=0,!r){let r=Math.pow(2,8*i-1);Z(this,e,t,i,r-1,-r)}let n=i-1,o=1,a=0;for(this[t+n]=255&e;--n>=0&&(o*=256);)e<0&&0===a&&0!==this[t+n+1]&&(a=1),this[t+n]=(e/o|0)-a&255;return t+i},u.prototype.writeInt8=function(e,t,i){return e*=1,t>>>=0,i||Z(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,i){return e*=1,t>>>=0,i||Z(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,i){return e*=1,t>>>=0,i||Z(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,i){return e*=1,t>>>=0,i||Z(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},u.prototype.writeInt32BE=function(e,t,i){return e*=1,t>>>=0,i||Z(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigInt64LE=ec(function(e,t=0){return j(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=ec(function(e,t=0){return z(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeFloatLE=function(e,t,i){return U(this,e,t,!0,i)},u.prototype.writeFloatBE=function(e,t,i){return U(this,e,t,!1,i)},u.prototype.writeDoubleLE=function(e,t,i){return X(this,e,t,!0,i)},u.prototype.writeDoubleBE=function(e,t,i){return X(this,e,t,!1,i)},u.prototype.copy=function(e,t,i,r){if(!u.isBuffer(e))throw TypeError("argument should be a Buffer");if(i||(i=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,i=void 0===i?this.length:i>>>0,e||(e=0),"number"==typeof e)for(n=t;n=r+4;i-=3)t=`_${e.slice(i-3,i)}${t}`;return`${e.slice(0,i)}${t}`}function q(e,t,i){K(t,"offset"),(void 0===e[t]||void 0===e[t+i])&&ee(t,e.length-(i+1))}function J(e,t,i,r,n,o){if(e>i||e3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${(o+1)*8}${n}`:`>= -(2${n} ** ${(o+1)*8-1}${n}) and < 2 ** ${(o+1)*8-1}${n}`:`>= ${t}${n} and <= ${i}${n}`,new W.ERR_OUT_OF_RANGE("value",r,e)}q(r,n,o)}function K(e,t){if("number"!=typeof e)throw new W.ERR_INVALID_ARG_TYPE(t,"number",e)}function ee(e,t,i){if(Math.floor(e)!==e)throw K(e,i),new W.ERR_OUT_OF_RANGE(i||"offset","an integer",e);if(t<0)throw new W.ERR_BUFFER_OUT_OF_BOUNDS;throw new W.ERR_OUT_OF_RANGE(i||"offset",`>= ${+!!i} and <= ${t}`,e)}$("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),$("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),$("ERR_OUT_OF_RANGE",function(e,t,i){let r=`The value of "${e}" is out of range.`,n=i;return Number.isInteger(i)&&Math.abs(i)>0x100000000?n=Y(String(i)):"bigint"==typeof i&&(n=String(i),(i>BigInt(2)**BigInt(32)||i<-(BigInt(2)**BigInt(32)))&&(n=Y(n)),n+="n"),r+=` It must be ${t}. Received ${n}`},RangeError);let et=/[^+/0-9A-Za-z-_]/g;function ei(e){if((e=(e=e.split("=")[0]).trim().replace(et,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}function er(e,t){let i;t=t||1/0;let r=e.length,n=null,o=[];for(let a=0;a55295&&i<57344){if(!n){if(i>56319||a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}n=i;continue}if(i<56320){(t-=3)>-1&&o.push(239,191,189),n=i;continue}i=(n-55296<<10|i-56320)+65536}else n&&(t-=3)>-1&&o.push(239,191,189);if(n=null,i<128){if((t-=1)<0)break;o.push(i)}else if(i<2048){if((t-=2)<0)break;o.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else if(i<1114112){if((t-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}else throw Error("Invalid code point")}return o}function en(e){let t=[];for(let i=0;i>8,n.push(i%256),n.push(r);return n}function ea(e){return n.toByteArray(ei(e))}function es(e,t,i,r){let n;for(n=0;n=t.length)&&!(n>=e.length);++n)t[n+i]=e[n];return n}function el(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function eu(e){return e!=e}let ef=function(){let e="0123456789abcdef",t=Array(256);for(let i=0;i<16;++i){let r=16*i;for(let n=0;n<16;++n)t[r+n]=e[i]+e[n]}return t}();function ec(e){return"undefined"==typeof BigInt?ed:e}function ed(){throw Error("BigInt not supported")}},77099:function(e,t,i){"use strict";i.d(t,{P:()=>th});var r=function(){return(r=Object.assign||function(e){for(var t,i=1,r=arguments.length;i0&&n[n.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]