1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[41823,36622,17938,51919],{81861:function(e,t,n){"use strict";n.d(t,{t8:function(){return f},jD:function(){return d},QZ:function(){return h},IY:function(){return c},Ly:function(){return m},pB:function(){return g},oW:function(){return p},oC:function(){return ti},Ql:function(){return td},FD:function(){return tc},X6:function(){return tx},Cz:function(){return t_},dw:function(){return tw},Kl:function(){return tk},Z_:function(){return eH},yF:function(){return e6},OL:function(){return ew},q7:function(){return U},n3:function(){return eQ},Z:function(){return I},Ki:function(){return ed},wQ:function(){return N},Qj:function(){return Z},ZB:function(){return ex},Eg:function(){return X},lM:function(){return eZ},OQ:function(){return eI},oI:function(){return eo},Zp:function(){return L},t_:function(){return ej},JU:function(){return eU},WD:function(){return G},xx:function(){return eO},wv:function(){return eS},S2:function(){return eT},W0:function(){return F},dW:function(){return eJ},Rf:function(){return ev},ZJ:function(){return e0},RX:function(){return $},f5:function(){return V},lp:function(){return el},OW:function(){return eq},Hm:function(){return eW},$i:function(){return em},so:function(){return e7},k5:function(){return A},Ky:function(){return B},J3:function(){return R},RY:function(){return eL},s$:function(){return e_},Q5:function(){return eg},N5:function(){return eP},Vt:function(){return D},kE:function(){return eu},J$:function(){return es},AL:function(){return eM},nb:function(){return eb},PS:function(){return ea},hO:function(){return te},m:function(){return ep},oj:function(){return ef},_2:function(){return ec},VV:function(){return e4},be:function(){return tn},B1:function(){return e9},nu:function(){return ek}});var r,a,i,o,l,s,u,d,c,p,f,h,m,g,y=n(19853),v=n(41468),b=n(13802),x=n(49289),w=n(5873),k=e=>()=>e;function M(e,{sourceEvent:t,subject:n,target:r,identifier:a,active:i,x:o,y:l,dx:s,dy:u,dispatch:d}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:a,enumerable:!0,configurable:!0},active:{value:i,enumerable:!0,configurable:!0},x:{value:o,enumerable:!0,configurable:!0},y:{value:l,enumerable:!0,configurable:!0},dx:{value:s,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:d}})}function C(e){return!e.ctrlKey&&!e.button}function j(){return this.parentNode}function T(e,t){return null==t?{x:e.x,y:e.y}:t}function E(){return navigator.maxTouchPoints||"ontouchstart"in this}function _(){var e,t,n,r,a=C,i=j,o=T,l=E,s={},u=(0,y.Z)("start","drag","end"),d=0,c=0;function p(e){e.on("mousedown.drag",f).filter(l).on("touchstart.drag",g).on("touchmove.drag",_,w.Q7).on("touchend.drag touchcancel.drag",P).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(o,l){if(!r&&a.call(this,o,l)){var s=S(this,i.call(this,o,l),o,l,"mouse");s&&((0,v.Z)(o.view).on("mousemove.drag",h,w.Dd).on("mouseup.drag",m,w.Dd),(0,x.Z)(o.view),(0,w.rG)(o),n=!1,e=o.clientX,t=o.clientY,s("start",o))}}function h(r){if((0,w.ZP)(r),!n){var a=r.clientX-e,i=r.clientY-t;n=a*a+i*i>c}s.mouse("drag",r)}function m(e){(0,v.Z)(e.view).on("mousemove.drag mouseup.drag",null),(0,x.D)(e.view,n),(0,w.ZP)(e),s.mouse("end",e)}function g(e,t){if(a.call(this,e,t)){var n,r,o=e.changedTouches,l=i.call(this,e,t),s=o.length;for(n=0;n<s;++n)(r=S(this,l,e,t,o[n].identifier,o[n]))&&((0,w.rG)(e),r("start",e,o[n]))}}function _(e){var t,n,r=e.changedTouches,a=r.length;for(t=0;t<a;++t)(n=s[r[t].identifier])&&((0,w.ZP)(e),n("drag",e,r[t]))}function P(e){var t,n,a=e.changedTouches,i=a.length;for(r&&clearTimeout(r),r=setTimeout(function(){r=null},500),t=0;t<i;++t)(n=s[a[t].identifier])&&((0,w.rG)(e),n("end",e,a[t]))}function S(e,t,n,r,a,i){var l,c,f,h=u.copy(),m=(0,b.Z)(i||n,t);if(null!=(f=o.call(e,new M("beforestart",{sourceEvent:n,target:p,identifier:a,active:d,x:m[0],y:m[1],dx:0,dy:0,dispatch:h}),r)))return l=f.x-m[0]||0,c=f.y-m[1]||0,function n(i,o,u){var g,y=m;switch(i){case"start":s[a]=n,g=d++;break;case"end":delete s[a],--d;case"drag":m=(0,b.Z)(u||o,t),g=d}
1h.call(i,e,new M(i,{sourceEvent:o,subject:f,target:p,identifier:a,active:g,x:m[0]+l,y:m[1]+c,dx:m[0]-y[0],dy:m[1]-y[1],dispatch:h}),r)}}return p.filter=function(e){return arguments.length?(a="function"==typeof e?e:k(!!e),p):a},p.container=function(e){return arguments.length?(i="function"==typeof e?e:k(e),p):i},p.subject=function(e){return arguments.length?(o="function"==typeof e?e:k(e),p):o},p.touchable=function(e){return arguments.length?(l="function"==typeof e?e:k(!!e),p):l},p.on=function(){var e=u.on.apply(u,arguments);return e===u?p:e},p.clickDistance=function(e){return arguments.length?(c=(e=+e)*e,p):Math.sqrt(c)},p}M.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};var P=n(60224),S=n(87815),z=n(74794);let Z={error001:()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:t,sourceHandle:n,targetHandle:r})=>`Couldn't create edge for ${e} handle id: "${"source"===e?n:r}", edge id: ${t}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(e="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."},A=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],N=["Enter"," ","Escape"],I={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:e,x:t,y:n})=>`Moved selected node ${e}. New position, x: ${t}, y: ${n}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};(r=d||(d={})).Strict="strict",r.Loose="loose",(a=c||(c={})).Free="free",a.Vertical="vertical",a.Horizontal="horizontal",(i=p||(p={}
1)).Partial="partial",i.Full="full";let B={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null};(o=f||(f={})).Bezier="default",o.Straight="straight",o.Step="step",o.SmoothStep="smoothstep",o.SimpleBezier="simplebezier",(l=h||(h={})).Arrow="arrow",l.ArrowClosed="arrowclosed",(s=m||(m={})).Left="left",s.Top="top",s.Right="right",s.Bottom="bottom";let O={[m.Left]:m.Right,[m.Right]:m.Left,[m.Top]:m.Bottom,[m.Bottom]:m.Top};function L(e){return null===e?null:e?"valid":"invalid"}let R=e=>"id"in e&&"source"in e&&"target"in e,D=e=>"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),H=e=>"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),W=(e,t=[0,0])=>{let{width:n,height:r}=ev(e),a=e.origin??t,i=n*a[0],o=r*a[1];return{x:e.position.x-i,y:e.position.y-o}},$=(e,t={nodeOrigin:[0,0]})=>0===e.length?{x:0,y:0,width:0,height:0}:er(e.reduce((e,n)=>{let r="string"==typeof n,a=t.nodeLookup||r?void 0:n;return t.nodeLookup&&(a=r?t.nodeLookup.get(n):H(n)?n:t.nodeLookup.get(n.id)),et(e,a?ei(a,t.nodeOrigin):{x:0,y:0,x2:0,y2:0})},{x:1/0,y:1/0,x2:-1/0,y2:-1/0})),F=(e,t={})=>{if(0===e.size)return{x:0,y:0,width:0,height:0};let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0};return e.forEach(e=>{if(void 0===t.filter||t.filter(e)){let t=ei(e);n=et(n,t)}}),er(n)},V=(e,t,[n,r,a]=[0,0,1],i=!1,o=!1)=>{let l={...ep(t,[n,r,a]),width:t.width/a,height:t.height/a},s=[];for(let t of e.values()){let{measured:e,selectable:n=!0,hidden:r=!1}=t;if(o&&!n||r)continue;let a=e.width??t.width??t.initialWidth??null,u=e.height??t.height??t.initialHeight??null,d=el(l,ea(t)),c=(a??0)*(u??0),p=i&&d>0;(!t.internals.handleBounds||p||d>=c||t.dragging)&&s.push(t)}return s},q=(e,t)=>{let n=new Set;return e.forEach(e=>{n.add(e.id)}),t.filter(e=>n.has(e.source)||n.has(e.target))};
1async function X({nodes:e,width:t,height:n,panZoom:r,minZoom:a,maxZoom:i},o){if(0===e.size)return Promise.resolve(!0);let l=em(F(function(e,t){let n=new Map,r=t?.nodes?new Set(t.nodes.map(e=>e.id)):null;return e.forEach(e=>{e.measured.width&&e.measured.height&&(t?.includeHiddenNodes||!e.hidden)&&(!r||r.has(e.id))&&n.set(e.id,e)}),n}(e,o)),t,n,o?.minZoom??a,o?.maxZoom??i,o?.padding??.1);return await r.setViewport(l,{duration:o?.duration,ease:o?.ease,interpolate:o?.interpolate}),Promise.resolve(!0)}function U({nodeId:e,nextPosition:t,nodeLookup:n,nodeOrigin:r=[0,0],nodeExtent:a,onError:i}){let o=n.get(e),l=o.parentId?n.get(o.parentId):void 0,{x:s,y:u}=l?l.internals.positionAbsolute:{x:0,y:0},d=o.origin??r,c=o.extent||a;if("parent"!==o.extent||o.expandParent)l&&ey(o.extent)&&(c=[[o.extent[0][0]+s,o.extent[0][1]+u],[o.extent[1][0]+s,o.extent[1][1]+u]]);else if(l){let e=l.measured.width,t=l.measured.height;e&&t&&(c=[[s,u],[s+e,u+t]])}else i?.("005",Z.error005());let p=ey(c)?K(t,c,o.measured):t;return(void 0===o.measured.width||void 0===o.measured.height)&&i?.("015",Z.error015()),{position:{x:p.x-s+(o.measured.width??0)*d[0],y:p.y-u+(o.measured.height??0)*d[1]},positionAbsolute:p}}async function G({nodesToRemove:e=[],edgesToRemove:t=[],nodes:n,edges:r,onBeforeDelete:a}){let i=new Set(e.map(e=>e.id)),o=[];for(let e of n){if(!1===e.deletable)continue;let t=i.has(e.id),n=!t&&e.parentId&&o.find(t=>t.id===e.parentId);(t||n)&&o.push(e)}let l=new Set(t.map(e=>e.id)),s=r.filter(e=>!1!==e.deletable),u=q(o,s);for(let e of s)l.has(e.id)&&!u.find(t=>t.id===e.id)&&u.push(e);if(!a)return{edges:u,nodes:o};let d=await a({nodes:o,edges:u});return"boolean"==typeof d?d?{edges:u,nodes:o}:{edges:[],nodes:[]}:d}let Y=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),K=(e={x:0,y:0},t,n)=>({x:Y(e.x,t[0][0],t[1][0]-(n?.width??0)),y:Y(e.y,t[0][1],t[1][1]-(n?.height??0))});function J(e,t,n){let{width:r,height:a}=ev(n),{x:i,y:o}=n.internals.positionAbsolute;return K(e,[[i,o],[i+r,o+a]],t)}let Q=(e,t,n)=>e<t?Y(Math.abs(e-t),1,t)/t:e>n?-Y(Math.abs(e-n),1,t)/t:0,ee=(e,t,n=15,r=40)=>[Q(e.x,r,t.width-r)*n,Q(e.y,r,t.height-r)*n],et=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),en=({x:e,y:t,width:n,height:r})=>({x:e,y:t,x2:e+n,y2:t+r}),er=({x:e,y:t,x2:n,y2:r})=>({x:e,y:t,width:n-e,height:r-t}),ea=(e,t=[0,0])=>{let{x:n,y:r}=H(e)?e.internals.positionAbsolute:W(e,t);return{x:n,y:r,width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}},ei=(e,t=[0,0])=>{let{x:n,y:r}=H(e)?e.internals.positionAbsolute:W(e,t);return{x:n,y:r,x2:n+(e.measured?.width??e.width??e.initialWidth??0),y2:r+(e.measured?.height??e.height??e.initialHeight??0)}},eo=(e,t)=>er(et(en(e),en(t))),el=(e,t)=>Math.ceil(Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x))*Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y))),es=e=>eu(e.width)&&eu(e.height)&&eu(e.x)&&eu(e.y),eu=e=>!isNaN(e)&&isFinite(e),ed=(e,t)=>{},ec=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),ep=({x:e,y:t},[n,r,a],i=!1,o=[1,1])=>{let l={x:(e-n)/a,y:(t-r)/a};return i?ec(l,o):l},ef=({x:e,y:t},[n,r,a])=>({x:e*a+n,y:t*a+r});function eh(e,t){if("number"==typeof e)return Math.floor((t-t/(1+e))*.5);if("string"==typeof e&&e.endsWith("px")){let t=parseFloat(e);if(!Number.isNaN(t))return Math.floor(t)}if("string"==typeof e&&e.endsWith("%")){let n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(t*n*.01)}return console.error(`[React Flow] The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}let em=(e,t,n,r,a,i)=>{let o=function(e,t,n){if("string"==typeof e||"number"==typeof e){let r=eh(e,n),a=eh(e,t);return{top:r,right:a,bottom:r,left:a,x:2*a,y:2*r}}if("object"==typeof e){let r=eh(e.top??e.y??0,n),a=eh(e.bottom??e.y??0,n),i=eh(e.left??e.x??0,t),o=eh(e.right??e.x??0,t);return{top:r,right:o,bottom:a,left:i,x:i+o,y:r+a}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}(i,t,n),l=Y(Math.min((t-o.x)/e.width,(n-o.y)/e.height),r,a),s=e.x+e.width/2,u=e.y+e.height/2,d=t/2-s*l,c=n/2-u*l,p=function(e,t,n,r,a,i){let{x:o,y:l}=ef(e,[t,n,r]),{x:s,y:u}=ef({x:e.x+e.width,y:e.y+e.height},[t,n,r]);return{left:Math.floor(o),top:Math.floor(l),right:Math.floor(a-s),bottom:Math.floor(i-u)}}(e,d,c,l,t,n),f={left:Math.min(p.left-o.left,0),top:Math.min(p.top-o.top,0),right:Math.min(p.right-o.right,0),bottom:Math.min(p.bottom-o.bottom,0)};return{x:d-f.left+f.right,y:c-f.top+f.bottom,zoom:l}}
1,eg=()=>"undefined"!=typeof navigator&&navigator?.userAgent?.indexOf("Mac")>=0;function ey(e){return null!=e&&"parent"!==e}function ev(e){return{width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}}function eb(e){return(e.measured?.width??e.width??e.initialWidth)!==void 0&&(e.measured?.height??e.height??e.initialHeight)!==void 0}function ex(e,t={width:0,height:0},n,r,a){let i={...e},o=r.get(n);if(o){let e=o.origin||a;i.x+=o.internals.positionAbsolute.x-(t.width??0)*e[0],i.y+=o.internals.positionAbsolute.y-(t.height??0)*e[1]}return i}function ew(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function ek(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function eM(e){return{...I,...e||{}}}function eC(e,{snapGrid:t=[0,0],snapToGrid:n=!1,transform:r,containerBounds:a}){let{x:i,y:o}=eS(e),l=ep({x:i-(a?.left??0),y:o-(a?.top??0)},r),{x:s,y:u}=n?ec(l,t):l;return{xSnapped:s,ySnapped:u,...l}}let ej=e=>({width:e.offsetWidth,height:e.offsetHeight}),eT=e=>e?.getRootNode?.()||window?.document,eE=["INPUT","SELECT","TEXTAREA"];function e_(e){let t=e.composedPath?.()?.[0]||e.target;return t?.nodeType===1&&(eE.includes(t.nodeName)||t.hasAttribute("contenteditable")||!!t.closest(".
1nokey"))}let eP=e=>"clientX"in e,eS=(e,t)=>{let n=eP(e),r=n?e.clientX:e.touches?.[0].clientX,a=n?e.clientY:e.touches?.[0].clientY;return{x:r-(t?.left??0),y:a-(t?.top??0)}},ez=(e,t,n,r,a)=>{let i=t.querySelectorAll(`.${e}`);return i&&i.length?Array.from(i).map(t=>{let i=t.getBoundingClientRect();return{id:t.getAttribute("data-handleid"),type:e,nodeId:a,position:t.getAttribute("data-handlepos"),x:(i.left-n.left)/r,y:(i.top-n.top)/r,...ej(t)}}):null};function eZ({sourceX:e,sourceY:t,targetX:n,targetY:r,sourceControlX:a,sourceControlY:i,targetControlX:o,targetControlY:l}){let s=.125*e+.375*a+.375*o+.125*n,u=.125*t+.375*i+.375*l+.125*r;return[s,u,Math.abs(s-e),Math.abs(u-t)]}function eA(e,t){return e>=0?.5*e:25*t*Math.sqrt(-e)}function eN({pos:e,x1:t,y1:n,x2:r,y2:a,c:i}){switch(e){case m.Left:return[t-eA(t-r,i),n];case m.Right:return[t+eA(r-t,i),n];case m.Top:return[t,n-eA(n-a,i)];case m.Bottom:return[t,n+eA(a-n,i)]}}function eI({sourceX:e,sourceY:t,sourcePosition:n=m.Bottom,targetX:r,targetY:a,targetPosition:i=m.Top,curvature:o=.25}){let[l,s]=eN({pos:n,x1:e,y1:t,x2:r,y2:a,c:o}),[u,d]=eN({pos:i,x1:r,y1:a,x2:e,y2:t,c:o}),[c,p,f,h]=eZ({sourceX:e,sourceY:t,targetX:r,targetY:a,sourceControlX:l,sourceControlY:s,targetControlX:u,targetControlY:d});return[`M${e},${t} C${l},${s} ${u},${d} ${r},${a}`,c,p,f,h]}function eB({sourceX:e,sourceY:t,targetX:n,targetY:r}){let a=Math.abs(n-e)/2,i=Math.abs(r-t)/2;return[n<e?n+a:n-a,r<t?r+i:r-i,a,i]}function eO({sourceNode:e,targetNode:t,selected:n=!1,zIndex:r,elevateOnSelect:a=!1}){return void 0!==r?r:(a&&n?1e3:0)+Math.max(e.parentId?e.internals.z:0,t.parentId?t.internals.z:0)}function eL({sourceNode:e,targetNode:t,width:n,height:r,transform:a}){let i=et(ei(e),ei(t));return i.x===i.x2&&(i.x2+=1),i.y===i.y2&&(i.y2+=1),el({x:-a[0]/a[2],y:-a[1]/a[2],width:n/a[2],height:r/a[2]},er(i))>0}let eR=({source:e,sourceHandle:t,target:n,targetHandle:r})=>`xy-edge__${e}${t||""}-${n}${r||""}`,eD=(e,t)=>t.some(t=>t.source===e.source&&t.target===e.target&&(t.sourceHandle===e.sourceHandle||!t.sourceHandle&&!e.sourceHandle)&&(t.targetHandle===e.targetHandle||!t.targetHandle&&!e.targetHandle)),eH=(e,t)=>{let n;return e.source&&e.target?eD(n=R(e)?{...e}:{...e,id:eR(e)},t)?t:(null===n.sourceHandle&&delete n.sourceHandle,null===n.targetHandle&&delete n.targetHandle,t.concat(n)):(ed("006",Z.error006()),t)};function eW({sourceX:e,sourceY:t,targetX:n,targetY:r}){let[a,i,o,l]=eB({sourceX:e,sourceY:t,targetX:n,targetY:r});return[`M ${e},${t}L ${n},${r}`,a,i,o,l]}let e$={[m.Left]:{x:-1,y:0},[m.Right]:{x:1,y:0},[m.Top]:{x:0,y:-1},[m.Bottom]:{x:0,y:1}},eF=({source:e,sourcePosition:t=m.Bottom,target:n})=>t===m.Left||t===m.Right?e.x<n.x?{x:1,y:0}:{x:-1,y:0}:e.y<n.y?{x:0,y:1}:{x:0,y:-1},eV=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function eq({sourceX:e,sourceY:t,sourcePosition:n=m.Bottom,targetX:r,targetY:a,targetPosition:i=m.Top,borderRadius:o=5,centerX:l,centerY:s,offset:u=20,stepPosition:d=.5}){let[c,p,f,h,g]=function({source:e,sourcePosition:t=m.Bottom,target:n,targetPosition:r=m.Top,center:a,offset:i,stepPosition:o}){let l,s;let u=e$[t],d=e$[r],c={x:e.x+u.x*i,y:e.y+u.y*i},p={x:n.x+d.x*i,y:n.y+d.y*i},f=eF({source:c,sourcePosition:t,target:p}),h=0!==f.x?"x":"y",g=f[h],y=[],v={x:0,y:0},b={x:0,y:0},[,,x,w]=eB({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(u[h]*d[h]==-1){"x"===h?(l=a.x??c.x+(p.x-c.x)*o,s=a.y??(c.y+p.y)/2):(l=a.x??(c.x+p.x)/2,s=a.y??c.y+(p.y-c.y)*o);let e=[{x:l,y:c.y},{x:l,y:p.y}],t=[{x:c.x,y:s},{x:p.x,y:s}];y=u[h]===g?"x"===h?e:t:"x"===h?t:e}else{let a=[{x:c.x,y:p.y}],o=[{x:p.x,y:c.y}];if(y="x"===h?u.x===g?o:a:u.y===g?a:o,t===r){let t=Math.abs(e[h]-n[h]);if(t<=i){let r=Math.min(i-1,i-t);u[h]===g?v[h]=(c[h]>e[h]?-1:1)*r:b[h]=(p[h]>n[h]?-1:1)*r}}if(t!==r){let e="x"===h?"y":"x",t=u[h]===d[e],n=c[e]>p[e],r=c[e]<p[e];(1===u[h]&&(!t&&n||t&&r)||1!==u[h]&&(!t&&r||t&&n))&&(y="x"===h?a:o)}let f={x:c.x+v.x,y:c.y+v.y},m={x:p.x+b.x,y:p.y+b.y};Math.max(Math.abs(f.x-y[0].x),Math.abs(m.x-y[0].x))>=Math.max(Math.abs(f.y-y[0].y),Math.abs(m.y-y[0].y))?(l=(f.x+m.x)/2,s=y[0].y):(l=y[0].x,s=(f.y+m.y)/2)}return[[e,{x:c.x+v.x,y:c.y+v.y},...y,{x:p.x+b.x,y:p.y+b.y},n],l,s,x,w]}({source:{x:e,y:t},sourcePosition:n,target:{x:r,y:a},targetPosition:i,center:{x:l,y:s},offset:u,stepPosition:d});
1return[c.reduce((e,t,n)=>e+(n>0&&n<c.length-1?function(e,t,n,r){let a=Math.min(eV(e,t)/2,eV(t,n)/2,r),{x:i,y:o}=t;if(e.x===i&&i===n.x||e.y===o&&o===n.y)return`L${i} ${o}`;if(e.y===o){let t=e.x<n.x?-1:1,r=e.y<n.y?1:-1;return`L ${i+a*t},${o}Q ${i},${o} ${i},${o+a*r}`}let l=e.x<n.x?1:-1,s=e.y<n.y?-1:1;return`L ${i},${o+a*s}Q ${i},${o} ${i+a*l},${o}`}(c[n-1],t,c[n+1],o):`${0===n?"M":"L"}${t.x} ${t.y}`),""),p,f,h,g]}function eX(e){return e&&!!(e.internals.handleBounds||e.handles?.length)&&!!(e.measured.width||e.width||e.initialWidth)}function eU(e){let{sourceNode:t,targetNode:n}=e;if(!eX(t)||!eX(n))return null;let r=t.internals.handleBounds||eG(t.handles),a=n.internals.handleBounds||eG(n.handles),i=eK(r?.source??[],e.sourceHandle),o=eK(e.connectionMode===d.Strict?a?.target??[]:(a?.target??[]).concat(a?.source??[]),e.targetHandle);if(!i||!o)return e.onError?.("008",Z.error008(i?"target":"source",{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;let l=i?.position||m.Bottom,s=o?.position||m.Top,u=eY(t,i,l),c=eY(n,o,s);return{sourceX:u.x,sourceY:u.y,targetX:c.x,targetY:c.y,sourcePosition:l,targetPosition:s}}function eG(e){if(!e)return null;let t=[],n=[];for(let r of e)r.width=r.width??1,r.height=r.height??1,"source"===r.type?t.push(r):"target"===r.type&&n.push(r);return{source:t,target:n}}function eY(e,t,n=m.Left,r=!1){let a=(t?.x??0)+e.internals.positionAbsolute.x,i=(t?.y??0)+e.internals.positionAbsolute.y,{width:o,height:l}=t??ev(e);if(r)return{x:a+o/2,y:i+l/2};switch(t?.position??n){case m.Top:return{x:a+o/2,y:i};case m.Right:return{x:a+o,y:i+l/2};case m.Bottom:return{x:a+o/2,y:i+l};case m.Left:return{x:a,y:i+l/2}}}function eK(e,t){return e&&(t?e.find(e=>e.id===t):e[0])||null}function eJ(e,t){if(!e)return"";if("string"==typeof e)return e;let n=t?`${t}__`:"";return`${n}${Object.keys(e).sort().map(t=>`${t}=${e[t]}`).join("&")}`}function eQ(e,{id:t,defaultColor:n,defaultMarkerStart:r,defaultMarkerEnd:a}){let i=new Set;return e.reduce((e,o)=>([o.markerStart||r,o.markerEnd||a].forEach(r=>{if(r&&"object"==typeof r){let a=eJ(r,t);i.has(a)||(e.push({id:a,color:r.color||n,...r}),i.add(a))}}),e),[]).sort((e,t)=>e.id.localeCompare(t.id))}function e0(e,t,n,r,a){let i=.5;"start"===a?i=0:"end"===a&&(i=1);let o=[(e.x+e.width*i)*t.zoom+t.x,e.y*t.zoom+t.y-r],l=[-100*i,-100];switch(n){case m.Right:o=[(e.x+e.width)*t.zoom+t.x+r,(e.y+e.height*i)*t.zoom+t.y],l=[0,-100*i];break;case m.Bottom:o[1]=(e.y+e.height)*t.zoom+t.y+r,l[1]=0;break;case m.Left:o=[e.x*t.zoom+t.x-r,(e.y+e.height*i)*t.zoom+t.y],l=[-100,-100*i]}return`translate(${o[0]}px, ${o[1]}px) translate(${l[0]}%, ${l[1]}%)`}let e1={nodeOrigin:[0,0],nodeExtent:A,elevateNodesOnSelect:!0,defaults:{}},e2={...e1,checkEquality:!0};function e5(e,t){let n={...e};for(let e in t)void 0!==t[e]&&(n[e]=t[e]);return n}function e4(e,t,n){let r=e5(e1,n);for(let n of e.values())if(n.parentId)e3(n,e,t,r);else{let e=K(W(n,r.nodeOrigin),ey(n.extent)?n.extent:r.nodeExtent,ev(n));n.internals.positionAbsolute=e}}function e6(e,t,n,r){let a=e5(e2,r),i=e.length>0,o=new Map(t),l=a?.elevateNodesOnSelect?1e3:0;for(let s of(t.clear(),n.clear(),e)){let e=o.get(s.id);if(a.checkEquality&&s===e?.internals.userNode)t.set(s.id,e);else{let n=K(W(s,a.nodeOrigin),ey(s.extent)?s.extent:a.nodeExtent,ev(s));e={...a.defaults,...s,measured:{width:s.measured?.width,height:s.measured?.height},internals:{positionAbsolute:n,handleBounds:s.measured?e?.internals.handleBounds:void 0,z:e8(s,l),userNode:s}},t.set(s.id,e)}void 0!==e.measured&&void 0!==e.measured.width&&void 0!==e.measured.height||e.hidden||(i=!1),s.parentId&&e3(e,t,n,r)}return i}function e3(e,t,n,r){let{elevateNodesOnSelect:a,nodeOrigin:i,nodeExtent:o}=e5(e1,r),l=e.parentId,s=t.get(l);if(!s){console.warn(`Parent node ${l} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}!function(e,t){if(!e.parentId)return;let n=t.get(e.parentId);n?n.set(e.id,e):t.set(e.parentId,new Map([[e.id,e]]))}(e,n);let{x:u,y:d,z:c}=function(e,t,n,r,a){let{x:i,y:o}=t.internals.positionAbsolute,l=ev(e),s=W(e,n),u=ey(e.extent)?K(s,e.extent,l):s,d=K({x:i+u.x,y:o+u.y},r,l);"parent"===e.extent&&(d=J(d,l,t));let c=e8(e,a),p=t.internals.z??0;return{x:d.x,y:d.y,z:p>=c?p+1:c}}(e,s,i,o,a?1e3:0),{positionAbsolute:p}=e.internals,f=u!==p.x||d!==p.y;(f||c!==e.internals.z)&&t.set(e.id,{...e,internals:{...e.internals,positionAbsolute:f?{x:u,y:d}:p,z:c}})}function e8(e,t){return(eu(e.zIndex)?e.zIndex:0)+(e.selected?t:0)}function e7(e,t,n,r=[0,0]){let a=[],i=new Map;for(let n of e){let e=t.get(n.parentId);if(!e)continue;let r=eo(i.get(n.parentId)?.expandedRect??ea(e),n.rect);i.set(n.parentId,{expandedRect:r,parent:e})}return i.size>
10&&i.forEach(({expandedRect:t,parent:i},o)=>{let l=i.internals.positionAbsolute,s=ev(i),u=i.origin??r,d=t.x<l.x?Math.round(Math.abs(l.x-t.x)):0,c=t.y<l.y?Math.round(Math.abs(l.y-t.y)):0,p=Math.max(s.width,Math.round(t.width)),f=Math.max(s.height,Math.round(t.height)),h=(p-s.width)*u[0],m=(f-s.height)*u[1];(d>0||c>0||h||m)&&(a.push({id:o,type:"position",position:{x:i.position.x-d+h,y:i.position.y-c+m}}),n.get(o)?.forEach(t=>{e.some(e=>e.id===t.id)||a.push({id:t.id,type:"position",position:{x:t.position.x+d,y:t.position.y+c}})})),(s.width<t.width||s.height<t.height||d||c)&&a.push({id:o,type:"dimensions",setAttributes:!0,dimensions:{width:p+(d?u[0]*d-h:0),height:f+(c?u[1]*c-m:0)}})}),a}function e9(e,t,n,r,a,i){let o=r?.querySelector(".xyflow__viewport"),l=!1;if(!o)return{changes:[],updatedInternals:l};let s=[],u=window.getComputedStyle(o),{m22:d}=new window.DOMMatrixReadOnly(u.transform),c=[];for(let r of e.values()){let e=t.get(r.id);if(!e)continue;if(e.hidden){t.set(e.id,{...e,internals:{...e.internals,handleBounds:void 0}}),l=!0;continue}let o=ej(r.nodeElement),u=e.measured.width!==o.width||e.measured.height!==o.height;if(o.width&&o.height&&(u||!e.internals.handleBounds||r.force)){let p=r.nodeElement.getBoundingClientRect(),f=ey(e.extent)?e.extent:i,{positionAbsolute:h}=e.internals;e.parentId&&"parent"===e.extent?h=J(h,o,t.get(e.parentId)):f&&(h=K(h,f,o));let m={...e,measured:o,internals:{...e.internals,positionAbsolute:h,handleBounds:{source:ez("source",r.nodeElement,p,d,e.id),target:ez("target",r.nodeElement,p,d,e.id)}}};t.set(e.id,m),e.parentId&&e3(m,t,n,{nodeOrigin:a}),l=!0,u&&(s.push({id:e.id,type:"dimensions",dimensions:o}),e.expandParent&&e.parentId&&c.push({id:e.id,parentId:e.parentId,rect:ea(m,a)}))}}if(c.length>0){let e=e7(c,t,n,a);s.push(...e)}return{changes:s,updatedInternals:l}}async function te({delta:e,panZoom:t,transform:n,translateExtent:r,width:a,height:i}){if(!t||!e.x&&!e.y)return Promise.resolve(!1);let o=await t.setViewportConstrained({x:n[0]+e.x,y:n[1]+e.y,zoom:n[2]},[[0,0],[a,i]],r);return Promise.resolve(!!o&&(o.x!==n[0]||o.y!==n[1]||o.k!==n[2]))}function tt(e,t,n,r,a,i){let o=a,l=r.get(o)||new Map;r.set(o,l.set(n,t)),o=`${a}-${e}`;let s=r.get(o)||new Map;if(r.set(o,s.set(n,t)),i){o=`${a}-${e}-${i}`;let l=r.get(o)||new Map;r.set(o,l.set(n,t))}}function tn(e,t,n){for(let r of(e.clear(),t.clear(),n)){let{source:n,target:a,sourceHandle:i=null,targetHandle:o=null}=r,l={edgeId:r.id,source:n,target:a,sourceHandle:i,targetHandle:o},s=`${n}-${i}--${a}-${o}`;tt("source",l,`${a}-${o}--${n}-${i}`,e,n,i),tt("target",l,s,e,a,o),t.set(r.id,r)}}function tr(e,t,n){let r=e;do{if(r?.matches?.(t))return!0;if(r===n)break;r=r?.parentElement}while(r);return!1}function ta({nodeId:e,dragItems:t,nodeLookup:n,dragging:r=!0}){let a=[];for(let[e,i]of t){let t=n.get(e)?.internals.userNode;t&&a.push({...t,position:i.position,dragging:r})}if(!e)return[a[0],a];let i=n.get(e)?.internals.userNode;return[i?{...i,position:t.get(e)?.position||i.position,dragging:r}:a[0],a]}function ti({onNodeMouseDown:e,getStoreItems:t,onDragStart:n,onDrag:r,onDragStop:a}){let i={x:null,y:null},o=0,l=new Map,s=!1,u={x:0,y:0},d=null,c=!1,p=null,f=!1,h=!1,m=null;return{update:function({noDragClassName:g,handleSelector:y,domNode:b,isSelectable:x,nodeId:w,nodeClickDistance:k=0}){function M({x:e,y:n}
1){let{nodeLookup:a,nodeExtent:o,snapGrid:s,snapToGrid:u,nodeOrigin:d,onNodeDrag:c,onSelectionDrag:p,onError:f,updateNodePositions:g}=t();i={x:e,y:n};let y=!1,v=l.size>1,b=v&&o?en(F(l)):null,x=v&&u?function({dragItems:e,snapGrid:t,x:n,y:r}){let a=e.values().next().value;if(!a)return null;let i={x:n-a.distance.x,y:r-a.distance.y},o=ec(i,t);return{x:o.x-i.x,y:o.y-i.y}}({dragItems:l,snapGrid:s,x:e,y:n}):null;for(let[t,r]of l){if(!a.has(t))continue;let i={x:e-r.distance.x,y:n-r.distance.y};u&&(i=x?{x:Math.round(i.x+x.x),y:Math.round(i.y+x.y)}:ec(i,s));let l=null;if(v&&o&&!r.extent&&b){let{positionAbsolute:e}=r.internals,t=e.x-b.x+o[0][0],n=e.x+r.measured.width-b.x2+o[1][0];l=[[t,e.y-b.y+o[0][1]],[n,e.y+r.measured.height-b.y2+o[1][1]]]}let{position:c,positionAbsolute:p}=U({nodeId:t,nextPosition:i,nodeLookup:a,nodeExtent:l||o,nodeOrigin:d,onError:f});y=y||r.position.x!==c.x||r.position.y!==c.y,r.position=c,r.internals.positionAbsolute=p}if(h=h||y,y&&(g(l,!0),m&&(r||c||!w&&p))){let[e,t]=ta({nodeId:w,dragItems:l,nodeLookup:a});r?.(m,l,e,t),c?.(m,e,t),w||p?.(m,t)}}async function C(){if(!d)return;let{transform:e,panBy:n,autoPanSpeed:r,autoPanOnNodeDrag:a}=t();if(!a){s=!1,cancelAnimationFrame(o);return}let[l,c]=ee(u,d,r);(0!==l||0!==c)&&(i.x=(i.x??0)-l/e[2],i.y=(i.y??0)-c/e[2],await n({x:l,y:c})&&M(i)),o=requestAnimationFrame(C)}function j(r){let{nodeLookup:a,multiSelectionActive:o,nodesDraggable:s,transform:u,snapGrid:p,snapToGrid:f,selectNodesOnDrag:h,onNodeDragStart:m,onSelectionDragStart:g,unselectNodesAndEdges:y}=t();c=!0,h&&x||o||!w||a.get(w)?.selected||y(),x&&h&&w&&e?.(w);let v=eC(r.sourceEvent,{transform:u,snapGrid:p,snapToGrid:f,containerBounds:d});if(i=v,(l=function(e,t,n,r){let a=new Map;for(let[i,o]of e)if((o.selected||o.id===r)&&(!o.parentId||!function e(t,n){if(!t.parentId)return!1;let r=n.get(t.parentId);return!!r&&(!!r.selected||e(r,n))}(o,e))&&(o.draggable||t&&void 0===o.draggable)){let t=e.get(i);t&&a.set(i,{id:i,position:t.position||{x:0,y:0},distance:{x:n.x-t.internals.positionAbsolute.x,y:n.y-t.internals.positionAbsolute.y},extent:t.extent,parentId:t.parentId,origin:t.origin,expandParent:t.expandParent,internals:{positionAbsolute:t.internals.positionAbsolute||{x:0,y:0}},measured:{width:t.measured.width??0,height:t.measured.height??0}})}return a}(a,s,v,w)).size>0&&(n||m||!w&&g)){let[e,t]=ta({nodeId:w,dragItems:l,nodeLookup:a});n?.(r.sourceEvent,l,e,t),m?.(r.sourceEvent,e,t),w||g?.(r.sourceEvent,t)}}p=(0,v.Z)(b);let T=_().clickDistance(k).on("start",e=>{let{domNode:n,nodeDragThreshold:r,transform:a,snapGrid:o,snapToGrid:l}=t();d=n?.getBoundingClientRect()||null,f=!1,h=!1,m=e.sourceEvent,0===r&&j(e),i=eC(e.sourceEvent,{transform:a,snapGrid:o,snapToGrid:l,containerBounds:d}),u=eS(e.sourceEvent,d)}).on("drag",e=>{let{autoPanOnNodeDrag:n,transform:r,snapGrid:a,snapToGrid:o,nodeDragThreshold:p,nodeLookup:h}=t(),g=eC(e.sourceEvent,{transform:r,snapGrid:a,snapToGrid:o,containerBounds:d});if(m=e.sourceEvent,("touchmove"===e.sourceEvent.type&&e.sourceEvent.touches.length>1||w&&!h.has(w))&&(f=!0),!f){if(!s&&n&&c&&(s=!0,C()),!c){let t=g.xSnapped-(i.x??0),n=g.ySnapped-(i.y??0);Math.sqrt(t*t+n*n)>p&&j(e)}(i.x!==g.xSnapped||i.y!==g.ySnapped)&&l&&c&&(u=eS(e.sourceEvent,d),M(g))}}).on("end",e=>{if(c&&!f&&(s=!1,c=!1,cancelAnimationFrame(o),l.size>0)){let{nodeLookup:n,updateNodePositions:r,onNodeDragStop:i,onSelectionDragStop:o}=t();if(h&&(r(l,!1),h=!1),a||i||!w&&o){let[t,r]=ta({nodeId:w,dragItems:l,nodeLookup:n,dragging:!1});a?.(e.sourceEvent,l,t,r),i?.(e.sourceEvent,t,r),w||o?.(e.sourceEvent,r)}}}).filter(e=>{let t=e.target;return!e.button&&(!g||!tr(t,`.${g}`,b))&&(!y||tr(t,y,b))});p.call(T)},destroy:function(){p?.on(".drag",null)}}}function to(e,t,n,r,a,i=!1){let o=r.get(e);if(!o)return null;let l="strict"===a?o.internals.handleBounds?.[t]:[...o.internals.handleBounds?.source??[],...o.internals.handleBounds?.target??[]],s=(n?l?.find(e=>e.id===n):l?.[0])??null;return s&&i?{...s,...eY(o,s,s.position,!0)}:s}function tl(e,t){return e||(t?.classList.contains("target")?"target":t?.classList.contains("source")?"source":null)}let ts=()=>!0;function tu(e,{handle:t,connectionMode:n,fromNodeId:r,fromHandleId:a,fromType:i,doc:o,lib:l,flowId:s,isValidConnection:u=ts,nodeLookup:c}){let p="target"===i,f=t?o.querySelector(`.${l}-flow__handle[data-id="${s}-${t?.nodeId}-${t?.id}-${t?.type}"]`):null,{x:h,y:m}=eS(e),g=o.elementFromPoint(h,m),y=g?.classList.contains(`${l}
1-flow__handle`)?g:f,v={handleDomNode:y,isValid:!1,connection:null,toHandle:null};if(y){let e=tl(void 0,y),t=y.getAttribute("data-nodeid"),i=y.getAttribute("data-handleid"),o=y.classList.contains("connectable"),l=y.classList.contains("connectableend");if(!t||!e)return v;let s={source:p?t:r,sourceHandle:p?i:a,target:p?r:t,targetHandle:p?a:i};v.connection=s;let f=o&&l&&(n===d.Strict?p&&"source"===e||!p&&"target"===e:t!==r||i!==a);v.isValid=f&&u(s),v.toHandle=to(t,e,i,c,n,!0)}return v}let td={onPointerDown:function(e,{connectionMode:t,connectionRadius:n,handleId:r,nodeId:a,edgeUpdaterType:i,isTarget:o,domNode:l,nodeLookup:s,lib:u,autoPanOnConnect:d,flowId:c,panBy:p,cancelConnection:f,onConnectStart:h,onConnect:g,onConnectEnd:y,isValidConnection:v=ts,onReconnectEnd:b,updateConnection:x,getTransform:w,getFromHandle:k,autoPanSpeed:M,dragThreshold:C=1,handleDomNode:j}){let T;let E=eT(e.target),_=0,{x:P,y:S}=eS(e),z=tl(i,j),Z=l?.getBoundingClientRect(),A=!1;if(!Z||!z)return;let N=to(a,z,r,s,t);if(!N)return;let I=eS(e,Z),B=!1,L=null,R=!1,D=null,H={...N,nodeId:a,type:z,position:N.position},W=s.get(a),$={inProgress:!0,isValid:null,from:eY(W,H,m.Left,!0),fromHandle:H,fromPosition:H.position,fromNode:W,to:I,toHandle:null,toPosition:O[H.position],toNode:null};function F(){A=!0,x($),h?.(e,{nodeId:a,handleId:r,handleType:z})}function V(e){var i,l;let f;if(!A){let{x:t,y:n}=eS(e),r=t-P,a=n-S;if(!(r*r+a*a>C*C))return;F()}if(!k()||!H){q(e);return}let h=w();T=function(e,t,n,r){let a=[],i=1/0;for(let o of function(e,t,n){let r=[],a={x:e.x-n,y:e.y-n,width:2*n,height:2*n};for(let e of t.values())el(a,ea(e))>0&&r.push(e);return r}(e,n,t+250))for(let n of[...o.internals.handleBounds?.source??[],...o.internals.handleBounds?.target??[]]){if(r.nodeId===n.nodeId&&r.type===n.type&&r.id===n.id)continue;let{x:l,y:s}=eY(o,n,n.position,!0),u=Math.sqrt(Math.pow(l-e.x,2)+Math.pow(s-e.y,2));u>t||(u<i?(a=[{...n,x:l,y:s}],i=u):u===i&&a.push({...n,x:l,y:s}))}if(!a.length)return null;if(a.length>1){let e="source"===r.type?"target":"source";return a.find(t=>t.type===e)??a[0]}return a[0]}(ep(I=eS(e,Z),h,!1,[1,1]),n,s,H),B||(function e(){if(!d||!Z)return;let[t,n]=ee(I,Z,M);p({x:t,y:n}),_=requestAnimationFrame(e)}(),B=!0);let m=tu(e,{handle:T,connectionMode:t,fromNodeId:a,fromHandleId:r,fromType:o?"target":"source",isValidConnection:v,doc:E,lib:u,flowId:c,nodeLookup:s});D=m.handleDomNode,L=m.connection,i=!!T,l=m.isValid,f=null,l?f=!0:i&&!l&&(f=!1),R=f;let g={...$,isValid:R,to:m.toHandle&&R?ef({x:m.toHandle.x,y:m.toHandle.y},h):I,toHandle:m.toHandle,toPosition:R&&m.toHandle?m.toHandle.position:O[H.position],toNode:m.toHandle?s.get(m.toHandle.nodeId):null};R&&T&&$.toHandle&&g.toHandle&&$.toHandle.type===g.toHandle.type&&$.toHandle.nodeId===g.toHandle.nodeId&&$.toHandle.id===g.toHandle.id&&$.to.x===g.to.x&&$.to.y===g.to.y||(x(g),$=g)}function q(e){if(A){(T||D)&&L&&R&&g?.(L);let{inProgress:t,...n}=$,r={...n,toPosition:$.toHandle?$.toPosition:null};y?.(e,r),i&&b?.(e,r)}f(),cancelAnimationFrame(_),B=!1,R=!1,L=null,D=null,E.removeEventListener("mousemove",V),E.removeEventListener("mouseup",q),E.removeEventListener("touchmove",V),E.removeEventListener("touchend",q)}0===C&&F(),E.addEventListener("mousemove",V),E.addEventListener("mouseup",q),E.addEventListener("touchmove",V),E.addEventListener("touchend",q)},isValid:tu};function tc({domNode:e,panZoom:t,getTransform:n,getViewScale:r}){let a=(0,v.Z)(e);return{update:function({translateExtent:e,width:i,height:o,zoomStep:l=1,pannable:s=!0,zoomable:u=!0,inversePan:d=!1}){let c=[0,0],p=(0,P.sP)().on("start",e=>{("mousedown"===e.sourceEvent.type||"touchstart"===e.sourceEvent.type)&&(c=[e.sourceEvent.clientX??e.sourceEvent.touches[0].clientX,e.sourceEvent.clientY??e.sourceEvent.touches[0].clientY])}).on("zoom",s?a=>{let l=n();if("mousemove"!==a.sourceEvent.type&&"touchmove"!==a.sourceEvent.type||!t)return;let s=[a.sourceEvent.clientX??a.sourceEvent.touches[0].clientX,a.sourceEvent.clientY??a.sourceEvent.touches[0].clientY],u=[s[0]-c[0],s[1]-c[1]];c=s;let p=r()*Math.max(l[2],Math.log(l[2]))*(d?-1:1),f={x:l[0]-u[0]*p,y:l[1]-u[1]*p};t.setViewportConstrained({x:f.x,y:f.y,zoom:l[2]},[[0,0],[i,o]],e)}:null).on("zoom.wheel",u?e=>{if("wheel"!==e.sourceEvent.type||!t)return;let r=n(),a=e.sourceEvent.ctrlKey&&eg()?10:1,i=-e.sourceEvent.deltaY*(1===e.sourceEvent.deltaMode?.05:e.sourceEvent.deltaMode?
11:.002)*l,o=r[2]*Math.pow(2,i*a);t.scaleTo(o)}:null);a.call(p,{})},destroy:function(){a.on("zoom",null)},pointer:b.Z}}let tp=(e,t)=>e.x!==t.x||e.y!==t.y||e.zoom!==t.k,tf=e=>({x:e.x,y:e.y,zoom:e.k}),th=({x:e,y:t,zoom:n})=>P.CR.translate(e,t).scale(n),tm=(e,t)=>e.target.closest(`.${t}`),tg=(e,t)=>2===t&&Array.isArray(e)&&e.includes(2),ty=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,tv=(e,t=0,n=ty,r=()=>{})=>{let a="number"==typeof t&&t>0;return a||r(),a?e.transition().duration(t).ease(n).on("end",r):e},tb=e=>{let t=e.ctrlKey&&eg()?10:1;return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*t};function tx({domNode:e,minZoom:t,maxZoom:n,paneClickDistance:r,translateExtent:a,viewport:i,onPanZoom:o,onPanZoomStart:l,onPanZoomEnd:s,onDraggingChange:u}){let d={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{x:0,y:0,zoom:0},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},p=e.getBoundingClientRect(),f=(0,P.sP)().clickDistance(!eu(r)||r<0?0:r).scaleExtent([t,n]).translateExtent(a),h=(0,v.Z)(e).call(f);w({x:i.x,y:i.y,zoom:Y(i.zoom,t,n)},[[0,0],[p.width,p.height]],a);let m=h.on("wheel.zoom"),g=h.on("dblclick.zoom");function y(e,t){return h?new Promise(n=>{f?.interpolate(t?.interpolate==="linear"?S.Z:z.Z).transform(tv(h,t?.duration,t?.ease,()=>n(!0)),e)}):Promise.resolve(!1)}function x(){f.on("zoom",null)}async function w(e,t,n){let r=th(e),a=f?.constrain()(r,t,n);return a&&await y(a),new Promise(e=>e(a))}return f.wheelDelta(tb),{update:function({noWheelClassName:e,noPanClassName:t,onPaneContextMenu:n,userSelectionActive:r,panOnScroll:a,panOnDrag:i,panOnScrollMode:p,panOnScrollSpeed:y,preventScrolling:v,zoomOnPinch:w,zoomOnScroll:k,zoomOnDoubleClick:M,zoomActivationKeyPressed:C,lib:j,onTransformChange:T}){r&&!d.isZoomingOrPanning&&x();let E=!a||C||r?function({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:n}){return function(r,a){let i="wheel"===r.type,o=!t&&i&&!r.ctrlKey,l=tm(r,e);if(r.ctrlKey&&i&&l&&r.preventDefault(),o||l)return null;r.preventDefault(),n.call(this,r,a)}}({noWheelClassName:e,preventScrolling:v,d3ZoomHandler:m}):function({zoomPanValues:e,noWheelClassName:t,d3Selection:n,d3Zoom:r,panOnScrollMode:a,panOnScrollSpeed:i,zoomOnPinch:o,onPanZoomStart:l,onPanZoom:s,onPanZoomEnd:u}){return d=>{if(tm(d,t))return!1;d.preventDefault(),d.stopImmediatePropagation();let p=n.property("__zoom").k||1;if(d.ctrlKey&&o){let e=(0,b.Z)(d),t=tb(d);r.scaleTo(n,p*Math.pow(2,t),e,d);return}let f=1===d.deltaMode?20:1,h=a===c.Vertical?0:d.deltaX*f,m=a===c.Horizontal?0:d.deltaY*f;!eg()&&d.shiftKey&&a!==c.Vertical&&(h=d.deltaY*f,m=0),r.translateBy(n,-(h/p)*i,-(m/p)*i,{internal:!0});let g=tf(n.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling||(e.isPanScrolling=!0,l?.(d,g)),e.isPanScrolling&&(s?.(d,g),e.panScrollTimeout=setTimeout(()=>{u?.(d,g),e.isPanScrolling=!1},150))}}({zoomPanValues:d,noWheelClassName:e,d3Selection:h,d3Zoom:f,panOnScrollMode:p,panOnScrollSpeed:y,zoomOnPinch:w,onPanZoomStart:l,onPanZoom:o,onPanZoomEnd:s});if(h.on("wheel.zoom",E,{passive:!1}),!r){let e=function({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:n}){return r=>{if(r.sourceEvent?.internal)return;let a=tf(r.transform);e.mouseButton=r.sourceEvent?.button||0,e.isZoomingOrPanning=!0,e.prevViewport=a,r.sourceEvent?.type==="mousedown"&&t(!0),n&&n?.(r.sourceEvent,a)}}({zoomPanValues:d,onDraggingChange:u,onPanZoomStart:l});f.on("start",e);let t=function({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:n,onTransformChange:r,onPanZoom:a}){return i=>{e.usedRightMouseButton=!!(n&&tg(t,e.mouseButton??0)),i.sourceEvent?.sync||r([i.transform.x,i.transform.y,i.transform.k]),a&&!i.sourceEvent?.internal&&a?.(i.sourceEvent,tf(i.transform))}}({zoomPanValues:d,panOnDrag:i,onPaneContextMenu:!!n,onPanZoom:o,onTransformChange:T});f.on("zoom",t);let r=function({zoomPanValues:e,panOnDrag:t,panOnScroll:n,onDraggingChange:r,onPanZoomEnd:a,onPaneContextMenu:i}){return o=>{if(!o.sourceEvent?.internal&&(e.isZoomingOrPanning=!1,i&&tg(t,e.mouseButton??0)&&!e.usedRightMouseButton&&o.sourceEvent&&i(o.sourceEvent),e.usedRightMouseButton=!1,r(!1),a&&tp(e.prevViewport,o.transform))){let t=tf(o.transform);e.prevViewport=t,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{a?.(o.sourceEvent,t)},n?150:0)}}}({zoomPanValues:d,panOnDrag:i,panOnScroll:a,onPaneContextMenu:n,onPanZoomEnd:s,onDraggingChange:u});f.on("end",r)}let _=function({zoomActivationKeyPressed:e,zoomOnScroll:t,zoomOnPinch:n,panOnDrag:r,panOnScroll:a,zoomOnDoubleClick:i,userSelectionActive:o,noWheelClassName:l,noPanClassName:s,lib:u}){return d=>{let c=e||t,p=n&&d.ctrlKey;if(1===d.button&&"mousedown"===d.type&&(tm(d,`${u}-flow__node`)||tm(d,`${u}-flow__edge`)))return!0;
1if(!r&&!c&&!a&&!i&&!n||o||tm(d,l)&&"wheel"===d.type||tm(d,s)&&("wheel"!==d.type||a&&"wheel"===d.type&&!e)||!n&&d.ctrlKey&&"wheel"===d.type)return!1;if(!n&&"touchstart"===d.type&&d.touches?.length>1)return d.preventDefault(),!1;if(!c&&!a&&!p&&"wheel"===d.type||!r&&("mousedown"===d.type||"touchstart"===d.type)||Array.isArray(r)&&!r.includes(d.button)&&"mousedown"===d.type)return!1;let f=Array.isArray(r)&&r.includes(d.button)||!d.button||d.button<=1;return(!d.ctrlKey||"wheel"===d.type)&&f}}({zoomActivationKeyPressed:C,panOnDrag:i,zoomOnScroll:k,panOnScroll:a,zoomOnDoubleClick:M,zoomOnPinch:w,userSelectionActive:r,noPanClassName:t,noWheelClassName:e,lib:j});f.filter(_),M?h.on("dblclick.zoom",g):h.on("dblclick.zoom",null)},destroy:x,setViewport:async function(e,t){let n=th(e);return await y(n,t),new Promise(e=>e(n))},setViewportConstrained:w,getViewport:function(){let e=h?(0,P.P2)(h.node()):{x:0,y:0,k:1};return{x:e.x,y:e.y,zoom:e.k}},scaleTo:function(e,t){return h?new Promise(n=>{f?.interpolate(t?.interpolate==="linear"?S.Z:z.Z).scaleTo(tv(h,t?.duration,t?.ease,()=>n(!0)),e)}):Promise.resolve(!1)},scaleBy:function(e,t){return h?new Promise(n=>{f?.interpolate(t?.interpolate==="linear"?S.Z:z.Z).scaleBy(tv(h,t?.duration,t?.ease,()=>n(!0)),e)}):Promise.resolve(!1)},setScaleExtent:function(e){f?.scaleExtent(e)},setTranslateExtent:function(e){f?.translateExtent(e)},syncViewport:function(e){if(h){let t=th(e),n=h.property("__zoom");(n.k!==e.zoom||n.x!==e.x||n.y!==e.y)&&f?.transform(h,t,null,{sync:!0})}},setClickDistance:function(e){let t=!eu(e)||e<0?0:e;f?.clickDistance(t)}}}(u=g||(g={})).Line="line",u.Handle="handle";let tw=["top-left","top-right","bottom-left","bottom-right"],tk=["top","right","bottom","left"];function tM(e,t){return Math.max(0,t-e)}function tC(e,t){return Math.max(0,e-t)}function tj(e,t,n){return Math.max(0,t-e,e-n)}let tT={width:0,height:0,x:0,y:0},tE={...tT,pointerX:0,pointerY:0,aspectRatio:1};function t_({domNode:e,nodeId:t,getStoreItems:n,onChange:r,onEnd:a}){let i=(0,v.Z)(e);return{update:function({controlPosition:e,boundaries:o,keepAspectRatio:l,resizeDirection:s,onResizeStart:u,onResize:d,onResizeEnd:c,shouldResize:p}){let f,h,m,g,y={...tT},v={...tE},b=function(e){let t=e.includes("right")||e.includes("left");return{isHorizontal:t,isVertical:e.includes("bottom")||e.includes("top"),affectsX:e.includes("left"),affectsY:e.includes("top")}}(e),x=null,w=[],k=_().on("start",e=>
1{let{nodeLookup:r,transform:a,snapGrid:i,snapToGrid:o,nodeOrigin:l,paneDomNode:s}=n();if(!(f=r.get(t)))return;x=s?.getBoundingClientRect()??null;let{xSnapped:d,ySnapped:c}=eC(e.sourceEvent,{transform:a,snapGrid:i,snapToGrid:o,containerBounds:x});if(v={...y={width:f.measured.width??0,height:f.measured.height??0,x:f.position.x??0,y:f.position.y??0},pointerX:d,pointerY:c,aspectRatio:y.width/y.height},h=void 0,f.parentId&&("parent"===f.extent||f.expandParent)){var p;m=(h=r.get(f.parentId))&&"parent"===f.extent?[[0,0],[(p=h).measured.width,p.measured.height]]:void 0}for(let[e,n]of(w=[],g=void 0,r))if(n.parentId===t&&(w.push({id:e,position:{...n.position},extent:n.extent}),"parent"===n.extent||n.expandParent)){let e=function(e,t,n){let r=t.position.x+e.position.x,a=t.position.y+e.position.y,i=e.measured.width??0,o=e.measured.height??0,l=n[0]*i,s=n[1]*o;return[[r-l,a-s],[r+i-l,a+o-s]]}(n,f,n.origin??l);g=g?[[Math.min(e[0][0],g[0][0]),Math.min(e[0][1],g[0][1])],[Math.max(e[1][0],g[1][0]),Math.max(e[1][1],g[1][1])]]:e}u?.(e,{...y})}).on("drag",e=>{let{transform:t,snapGrid:a,snapToGrid:i,nodeOrigin:u}=n(),c=eC(e.sourceEvent,{transform:t,snapGrid:a,snapToGrid:i,containerBounds:x}),k=[];if(!f)return;let{x:M,y:C,width:j,height:T}=y,E={},_=f.origin??u,{width:P,height:S,x:z,y:Z}=function(e,t,n,r,a,i,o,l){let{affectsX:s,affectsY:u}=t,{isHorizontal:d,isVertical:c}=t,p=d&&c,{xSnapped:f,ySnapped:h}=n,{minWidth:m,maxWidth:g,minHeight:y,maxHeight:v}=r,{x:b,y:x,width:w,height:k,aspectRatio:M}=e,C=Math.floor(d?f-e.pointerX:0),j=Math.floor(c?h-e.pointerY:0),T=w+(s?-C:C),E=k+(u?-j:j),_=-i[0]*w,P=-i[1]*k,S=tj(T,m,g),z=tj(E,y,v);if(o){let e=0,t=0;s&&C<0?e=tM(b+C+_,o[0][0]):!s&&C>0&&(e=tC(b+T+_,o[1][0])),u&&j<0?t=tM(x+j+P,o[0][1]):!u&&j>0&&(t=tC(x+E+P,o[1][1])),S=Math.max(S,e),z=Math.max(z,t)}if(l){let e=0,t=0;s&&C>0?e=tC(b+C,l[0][0]):!s&&C<0&&(e=tM(b+T,l[1][0])),u&&j>0?t=tC(x+j,l[0][1]):!u&&j<0&&(t=tM(x+E,l[1][1])),S=Math.max(S,e),z=Math.max(z,t)}if(a&&(d&&(S=Math.max(S,tj(T/M,y,v)*M),o&&(S=Math.max(S,(s||u)&&(!s||u||!p)?tM(x+P+(s?C:-C)/M,o[0][1])*M:tC(x+P+T/M,o[1][1])*M)),l&&(S=Math.max(S,(s||u)&&(!s||u||!p)?tC(x+(s?C:-C)/M,l[0][1])*M:tM(x+T/M,l[1][1])*M))),c&&(z=Math.max(z,tj(E*M,m,g)/M),o&&(z=Math.max(z,(s||u)&&(!u||s||!p)?tM(b+(u?j:-j)*M+_,o[0][0])/M:tC(b+E*M+_,o[1][0])/M)),l&&(z=Math.max(z,(s||u)&&(!u||s||!p)?tC(b+(u?j:-j)*M,l[0][0])/M:tM(b+E*M,l[1][0])/M)))),j+=j<0?z:-z,C+=C<0?S:-S,a){if(p){var Z,A,N,I;T>E*M?j=((Z=s,A=u,Z?!A:A)?-C:C)/M:C=((N=s,I=u,N?!I:I)?-j:j)*M}else d?(j=C/M,u=s):(C=j*M,s=u)}let B=s?b+C:b,O=u?x+j:x;return{width:w+(s?-C:C),height:k+(u?-j:j),x:i[0]*C*(s?-1:1)+B,y:i[1]*j*(u?-1:1)+O}}(v,b,c,o,l,_,m,g),A=P!==j,N=S!==T,I=z!==M&&A,B=Z!==C&&N;if(!I&&!B&&!A&&!N)return;if((I||B||1===_[0]||1===_[1])&&(E.x=I?z:y.x,E.y=B?Z:y.y,y.x=E.x,y.y=E.y,w.length>0)){let e=z-M,t=Z-C;for(let n of w)n.position={x:n.position.x-e+_[0]*(P-j),y:n.position.y-t+_[1]*(S-T)},k.push(n)}if((A||N)&&(E.width=A&&(!s||"horizontal"===s)?P:y.width,E.height=N&&(!s||"vertical"===s)?S:y.height,y.width=E.width,y.height=E.height),h&&f.expandParent){let e=_[0]*(E.width??0);E.x&&E.x<e&&(y.x=e,v.x=v.x-(E.x-e));let t=_[1]*(E.height??0);E.y&&E.y<t&&(y.y=t,v.y=v.y-(E.y-t))}let O=function({width:e,prevWidth:t,height:n,prevHeight:r,affectsX:a,affectsY:i}){let o=e-t,l=n-r,s=[o>0?1:o<0?-1:0,l>0?1:l<0?-1:0];return o&&a&&(s[0]=-1*s[0]),l&&i&&(s[1]=-1*s[1]),s}({width:y.width,prevWidth:j,height:y.height,prevHeight:T,affectsX:b.affectsX,affectsY:b.affectsY}),L={...y,direction:O};!1!==p?.(e,L)&&(d?.(e,L),r(E,k))}).on("end",e=>{c?.(e,{...y}),a?.({...y})});i.call(k)},destroy:function(){i.on(".drag",null)}}}},94373:function(e,t,n){"use strict";var r=n(14224);Object.defineProperty(t,"__esModule",{value:!0});var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i="undefined"!=typeof window&&void 0!==window.document,o=("undefined"==typeof self?"undefined":a(self))==="object"&&self.constructor&&"DedicatedWorkerGlobalScope"===self.constructor.name,l=void 0!==r&&null!=r.versions&&null!=r.versions.node;t.isBrowser=i,t.isWebWorker=o,t.isNode=l,t.isJsDom=function(){return"undefined"!=typeof window&&"nodejs"===window.name||navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")}},11227:function(e,t,n){var r,a,i;a=[],void 0!==(i="function"==typeof(r=function(){"use strict";function t(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){l(r.response,t,n
1)},r.onerror=function(){console.error("could not download file")},r.send()}function r(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function a(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var i="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n.g&&n.g.global===n.g?n.g:void 0,o=i.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=i.saveAs||("object"!=typeof window||window!==i?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(e,n,o){var l=i.URL||i.webkitURL,s=document.createElement("a");n=n||e.name||"download",s.download=n,s.rel="noopener","string"==typeof e?(s.href=e,s.origin===location.origin?a(s):r(s.href)?t(e,n,o):a(s,s.target="_blank")):(s.href=l.createObjectURL(e),setTimeout(function(){l.revokeObjectURL(s.href)},4e4),setTimeout(function(){a(s)},0))}:"msSaveOrOpenBlob"in navigator?function(e,n,i){if(n=n||e.name||"download","string"!=typeof e){var o;navigator.msSaveOrOpenBlob((void 0===(o=i)?o={autoBom:!1}:"object"!=typeof o&&(console.warn("Deprecated: Expected third argument to be a object"),o={autoBom:!o}),o.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e),n)}else if(r(e))t(e,n,i);else{var l=document.createElement("a");l.href=e,l.target="_blank",setTimeout(function(){a(l)})}}:function(e,n,r,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,r);var l="application/octet-stream"===e.type,s=/constructor/i.test(i.HTMLElement)||i.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||l&&s||o)&&"undefined"!=typeof FileReader){var d=new FileReader;d.onloadend=function(){var e=d.result;e=u?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=e:location=e,a=null},d.readAsDataURL(e)}else{var c=i.URL||i.webkitURL,p=c.createObjectURL(e);a?a.location=p:location.href=p,a=null,setTimeout(function(){c.revokeObjectURL(p)},4e4)}});i.saveAs=l.saveAs=l,e.exports=l})?r.apply(t,a):r)&&(e.exports=i)},73416:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contentTypesXml=void 0,t.contentTypesXml='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">\n <Default Extension="rels" ContentType=\n "application/vnd.openxmlformats-package.relationships+xml" />\n <Override PartName="/word/document.xml" ContentType=\n "application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"/>\n <Override PartName="/word/afchunk.mht" ContentType="message/rfc822"/>\n</Types>\n'},23901:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.documentXmlRels=void 0,t.documentXmlRels='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n <Relationship Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/aFChunk"\n Target="/word/afchunk.mht" Id="htmlChunk" />\n</Relationships>\n'},5843:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(65949);r.__exportStar(n(73416),t),r.__exportStar(n(23901),t),r.__exportStar(n(85080),t)},85080:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.relsXml=void 0,t.relsXml='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n <Relationship\n Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument"\n Target="/word/document.xml" Id="R09c83fafc067488e" />\n</Relationships>\n'},69683:function(e,t,n){"use strict";t.m=void 0;var r=n(65949),a=n(94010),i=n(34210);t.m=function(e,t){return void 0===t&&(t={}),r.__awaiter(this,void 0,void 0,function(){var n;return r.__generator(this,function(r){switch(r.label){case 0:return n=new i,a.addFiles(n,e,t),[4,a.generateDocument(n)];case 1:return[2,r.sent()]}})})}},94010:function(e,t,n){"use strict";var r=n(55872).lW;
1Object.defineProperty(t,"__esModule",{value:!0}),t.addFiles=t.generateDocument=void 0;var a=n(65949),i=n(29511),o=n(5843),l=n(17869),s=n(94373),u={orientation:"portrait",margins:{}};function d(e,t){return a.__assign(a.__assign({},e),t)}function c(e){return s.isBrowser?new Blob([e]):new r(e,"utf-8")}t.generateDocument=function(e){return a.__awaiter(this,void 0,void 0,function(){var t;return a.__generator(this,function(n){switch(n.label){case 0:return[4,e.generateAsync({type:"arraybuffer"})];case 1:if(t=n.sent(),s.isBrowser)return[2,new Blob([t],{type:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"})];return[2,new r(new Uint8Array(t))]}})})},t.addFiles=function(e,t,n){var r,a,s,p,f,h=d(u,n);return e.file("[Content_Types].xml",c(o.contentTypesXml),{createFolders:!1}),e.folder("_rels").file(".rels",c(o.relsXml),{createFolders:!1}),e.folder("word").file("document.xml",(r=h.orientation,a=h.margins,s=d(l.defaultMargins,a),p=0,f=0,"landscape"===r?(f=12240,p=15840):(p=12240,f=15840),l.documentTemplate(p,f,r,s)),{createFolders:!1}).file("afchunk.mht",i.getMHTdocument(t),{createFolders:!1}).folder("_rels").file("document.xml.rels",c(o.documentXmlRels),{createFolders:!1})}},4629:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.documentTemplate=t.defaultMargins=void 0,t.defaultMargins={top:1440,right:1440,bottom:1440,left:1440,header:720,footer:720,gutter:0},t.documentTemplate=function(e,t,n,r){return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<w:document\n xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"\n xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math"\n xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"\n xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"\n xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"\n xmlns:ns6="http://schemas.openxmlformats.org/schemaLibrary/2006/main"\n xmlns:c="http://schemas.openxmlformats.org/drawingml/2006/chart"\n xmlns:ns8="http://schemas.openxmlformats.org/drawingml/2006/chartDrawing"\n xmlns:dgm="http://schemas.openxmlformats.org/drawingml/2006/diagram"\n xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture"\n xmlns:ns11="http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"\n xmlns:dsp="http://schemas.microsoft.com/office/drawing/2008/diagram"\n xmlns:ns13="urn:schemas-microsoft-com:office:excel"\n xmlns:o="urn:schemas-microsoft-com:office:office"\n xmlns:v="urn:schemas-microsoft-com:vml"\n xmlns:w10="urn:schemas-microsoft-com:office:word"\n xmlns:ns17="urn:schemas-microsoft-com:office:powerpoint"\n xmlns:odx="http://opendope.org/xpaths"\n xmlns:odc="http://opendope.org/conditions"\n xmlns:odq="http://opendope.org/questions"\n xmlns:odi="http://opendope.org/components"\n xmlns:odgm="http://opendope.org/SmartArt/DataHierarchy"\n xmlns:ns24="http://schemas.openxmlformats.org/officeDocument/2006/bibliography"\n xmlns:ns25="http://schemas.openxmlformats.org/drawingml/2006/compatibility"\n xmlns:ns26="http://schemas.openxmlformats.org/drawingml/2006/lockedCanvas">\n <w:body>\n <w:altChunk r:id="htmlChunk" />\n <w:sectPr>\n <w:pgSz w:w="'+e+'" w:h="'+t+'" w:orient="'+n+'" />\n <w:pgMar w:top="'+r.top+'"\n w:right="'+r.right+'"\n w:bottom="'+r.bottom+'"\n w:left="'+r.left+'"\n w:header="'+r.header+'"\n w:footer="'+r.footer+'"\n w:gutter="'+r.gutter+'"/>\n </w:sectPr>\n </w:body>\n</w:document>\n'}},17869:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(65949);r.__exportStar(n(4629),t),r.__exportStar(n(43094),t),r.__exportStar(n(17604),t)},43094:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mhtDocumentTemplate=void 0,t.mhtDocumentTemplate=function(e,t){return'MIME-Version: 1.0\nContent-Type: multipart/related;\n type="text/html";\n boundary="----=mhtDocumentPart"\n\n\n------=mhtDocumentPart\nContent-Type: text/html;\n charset="utf-8"\nContent-Transfer-Encoding: quoted-printable\nContent-Location: file:///C:/fake/document.html\n\n'+e+"\n\n"+t+"\n\n------=mhtDocumentPart--\n"}},17604:function(e,t){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.mhtPartTemplate=void 0,t.mhtPartTemplate=function(e,t,n,r){return"------=mhtDocumentPart\nContent-Type: "+e+"\nContent-Transfer-Encoding: "+t+"\nContent-Location: "+n+"\n\n"+r+"\n"}},29511:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMHTdocument=void 0;var r=n(17869);t.getMHTdocument=function(e){var t,n,a=(t=e,n=[],/<img/g.test(t)?{htmlSource:t=t.replace(/"data:(\w+\/\w+);(\w+),(\S+)"/g,function(e,t,a,i){var o="file:///C:/fake/image"+n.length+"."+t.split("/")[1];return n.push(r.mhtPartTemplate(t,a,o,i)),'"'+o+'"'}),imageContentParts:n}:{htmlSource:t,imageContentParts:n}),i=a.imageContentParts.join("\n");return e=a.htmlSource.replace(/\=/g,"=3D"),r.mhtDocumentTemplate(e,i)}},93501:function(e){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},72407:function(e){e.exports=function(e,t,n){if("function"!=typeof e)throw TypeError("Expected a function");return setTimeout(function(){e.apply(void 0,n)},t)}},5125:function(e,t,n){var r=n(48148),a=n(20323),i=n(71564);e.exports=function(e,t){return i(a(e,t,r),e+"")}},56447:function(e,t,n){var r=n(64806),a=n(34082),i=n(48148),o=a?function(e,t){return a(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=o},20323:function(e,t,n){var r=n(93501),a=Math.max;e.exports=function(e,t,n){return t=a(void 0===t?e.length-1:t,0),function(){for(var i=arguments,o=-1,l=a(i.length-t,0),s=Array(l);++o<l;)s[o]=i[t+o];o=-1;for(var u=Array(t+1);++o<t;)u[o]=i[o];return u[t]=n(s),r(e,this,u)}}},71564:function(e,t,n){var r=n(56447),a=n(15509)(r);e.exports=a},15509:function(e){var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var a=t(),i=16-(a-r);if(r=a,i>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},64806:function(e){e.exports=function(e){return function(){return e}}},99178:function(e,t,n){var r=n(72407),a=n(5125),i=n(12448),o=a(function(e,t,n){return r(e,i(t)||0,n)});e.exports=o},91384:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs/[id]",function(){return n(19451)}])},43417:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("arrow-big-down",[["path",{d:"M15 11a1 1 0 0 0 1 1h2.939a1 1 0 0 1 .75 1.811l-6.835 6.836a1.207 1.207 0 0 1-1.707 0L4.31 13.81a1 1 0 0 1 .75-1.811H8a1 1 0 0 0 1-1V5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1z",key:"1eaqc3"}]])},82862:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("arrow-big-left",[["path",{d:"M13 9a1 1 0 0 1-1-1V5.061a1 1 0 0 0-1.811-.75l-6.835 6.836a1.207 1.207 0 0 0 0 1.707l6.835 6.835a1 1 0 0 0 1.811-.75V16a1 1 0 0 1 1-1h6a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1z",key:"aztept"}]])},687:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("arrow-big-right",[["path",{d:"M11 9a1 1 0 0 0 1-1V5.061a1 1 0 0 1 1.811-.75l6.836 6.836a1.207 1.207 0 0 1 0 1.707l-6.836 6.835a1 1 0 0 1-1.811-.75V16a1 1 0 0 0-1-1H5a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1z",key:"1232du"}]])},31958:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("arrow-big-up",[["path",{d:"M9 13a1 1 0 0 0-1-1H5.061a1 1 0 0 1-.75-1.811l6.836-6.835a1.207 1.207 0 0 1 1.707 0l6.835 6.835a1 1 0 0 1-.75 1.811H16a1 1 0 0 0-1 1v6a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1z",key:"lh0v7k"}]])},68117:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("badge-check",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},411:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("bell-off",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742",key:"178tsu"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05",key:"1hqiys"}]])},49519:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]])},99921:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("bold",[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]])},41653:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("book-text",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"M8 11h8",key:"vwpz6n"}],["path",{d:"M8 7h6",key:"1f0q6e"}]])},19904:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]])},19685:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("chevron-first",[["path",{d:"m17 18-6-6 6-6",key:"1yerx2"}],["path",{d:"M7 6v12",key:"1p53r6"}]])},7333:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("chevrons-right",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]])},86325:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},48806:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("circle-plus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]])},67425:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("clapperboard",[["path",{d:"M20.2 6 3 11l-.9-2.4c-.3-1.1.3-2.2 1.3-2.5l13.5-4c1.1-.3 2.2.3 2.5 1.3Z",key:"1tn4o7"}],["path",{d:"m6.2 5.3 3.1 3.9",key:"iuk76l"}],["path",{d:"m12.4 3.4 3.1 4",key:"6hsd6n"}],["path",{d:"M3 11h18v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z",key:"ltgou9"}]])},47165:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});
1let r=(0,n(50451).Z)("clipboard-check",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]])},61304:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("clipboard-list",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]])},49749:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("columns-3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]])},81604:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("dot",[["circle",{cx:"12.1",cy:"12.1",r:"1",key:"18d7e5"}]])},59886:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("ellipsis-vertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]])},21431:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("eraser",[["path",{d:"M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21",key:"g5wo59"}],["path",{d:"m5.082 11.09 8.828 8.828",key:"1wx5vj"}]])},26262:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("file-pen-line",[["path",{d:"m18.226 5.226-2.52-2.52A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-.351",key:"1k2beg"}],["path",{d:"M21.378 12.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"2t3380"}],["path",{d:"M8 18h1",key:"13wk12"}]])},94501:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},82252:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("heading-1",[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"m17 12 3-2v8",key:"1hhhft"}]])},30256:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("heading-2",[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1",key:"9jr5yi"}]])},35226:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("heading-3",[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2",key:"68ncm8"}],["path",{d:"M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2",key:"1ejuhz"}]])},11342:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("image-plus",[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]])},1454:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("image-up",[["path",{d:"M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10l-3.1-3.1a2 2 0 0 0-2.814.014L6 21",key:"9csbqa"}],["path",{d:"m14 19.5 3-3 3 3",key:"9vmjn0"}],["path",{d:"M17 22v-5.5",key:"1aa6fl"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]])},67762:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("italic",[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]])},76229:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]])},42468:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("link-2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",ke
1y:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]])},11167:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]])},89503:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("list-indent-decrease",[["path",{d:"M21 5H11",key:"us1j55"}],["path",{d:"M21 12H11",key:"wd7e0v"}],["path",{d:"M21 19H11",key:"saa85w"}],["path",{d:"m7 8-4 4 4 4",key:"o5hrat"}]])},26771:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("list-indent-increase",[["path",{d:"M21 5H11",key:"us1j55"}],["path",{d:"M21 12H11",key:"wd7e0v"}],["path",{d:"M21 19H11",key:"saa85w"}],["path",{d:"m3 8 4 4-4 4",key:"1a3j6y"}]])},59459:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("list-ordered",[["path",{d:"M11 5h10",key:"1cz7ny"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 19h10",key:"11t30w"}],["path",{d:"M4 4h1v5",key:"10yrso"}],["path",{d:"M4 9h2",key:"r1h2o0"}],["path",{d:"M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",key:"xtkcd5"}]])},33837:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("list-tree",[["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"M3 10a2 2 0 0 0 2 2h3",key:"1npucw"}],["path",{d:"M3 5v12a2 2 0 0 0 2 2h3",key:"x1gjn2"}]])},27068:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("list",[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]])},98442:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]])},26049:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("merge",[["path",{d:"m8 6 4-4 4 4",key:"ybng9g"}],["path",{d:"M12 2v10.3a4 4 0 0 1-1.172 2.872L4 22",key:"1hyw0i"}],["path",{d:"m20 22-5-5",key:"1m27yz"}]])},75829:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("mic-vocal",[["path",{d:"m11 7.601-5.994 8.19a1 1 0 0 0 .1 1.298l.817.818a1 1 0 0 0 1.314.087L15.09 12",key:"80a601"}],["path",{d:"M16.5 21.174C15.5 20.5 14.372 20 13 20c-2.058 0-3.928 2.356-6 2-2.072-.356-2.775-3.369-1.5-4.5",key:"j0ngtp"}],["circle",{cx:"16",cy:"7",r:"5",key:"d08jfb"}]])},1884:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("minimize-2",[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]])},11365:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("move-diagonal-2",[["path",{d:"M19 13v6h-6",key:"1hxl6d"}],["path",{d:"M5 11V5h6",key:"12e2xe"}],["path",{d:"m5 5 14 14",key:"11anup"}]])},90720:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("move-right",[["path",{d:"M18 8L22 12L18 16",key:"1r0oui"}],["path",{d:"M2 12H22",key:"1m8cig"}]])},50180:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("paint-bucket",[["path",{d:"m19 11-8-8-8.6 8.6a2 2 0 0 0 0 2.8l5.2 5.2c.8.8 2 .8 2.8 0L19 11Z",key:"irua1i"}],["path",{d:"m5 2 5 5",key:"1lls2c"}],["path",{d:"M2 13h15",key:"1hkzvu"}],["path",{d:"M22 20a2 2 0 1 1-4 0c0-1.6 1.7-2.4 2-4 .3 1.6 2 2.4 2 4Z",key:"xk76lq"}]])},39536:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("palette",[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]])},80727:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("pencil-line",[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]])},38828:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("pilcrow",[["path",{d:"M13 4v16",key:"8vvj80"}],["path",{d:"M17 4v16",key:"7dpous"}],["path",{d:"M19 4H9.5a4.5 4.5 0 0 0 0 9H13",key:"sh4n9v"}]])},49058:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]])},29656:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("redo-2",[["path",{d:"m15 14 5-5-5-5",key:"12vg1m"}],["path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",key:"6uklza"}]])},8788:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("refresh-ccw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]])},46505:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},11906:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("rotate-cw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},22718:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("rows-3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}
1],["path",{d:"M21 15H3",key:"9uk58r"}]])},40348:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("scan-text",[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["path",{d:"M7 8h8",key:"1jbsf9"}],["path",{d:"M7 12h10",key:"b7w52i"}],["path",{d:"M7 16h6",key:"1vyc9m"}]])},44513:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("sliders-horizontal",[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]])},23743:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("split",[["path",{d:"M16 3h5v5",key:"1806ms"}],["path",{d:"M8 3H3v5",key:"15dfkv"}],["path",{d:"M12 22v-8.3a4 4 0 0 0-1.172-2.872L3 3",key:"1qrqzj"}],["path",{d:"m15 9 6-6",key:"ko1vev"}]])},65372:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("square-mouse-pointer",[["path",{d:"M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z",key:"xwnzip"}],["path",{d:"M21 11V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6",key:"14rsvq"}]])},62379:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("strikethrough",[["path",{d:"M16 4H9a3 3 0 0 0-2.83 4",key:"43sutm"}],["path",{d:"M14 12a4 4 0 0 1 0 8H6",key:"nlfj13"}],["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}]])},77786:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("table",[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]])},84817:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("text-align-center",[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M17 12H7",key:"16if0g"}],["path",{d:"M19 19H5",key:"vjpgq2"}]])},13350:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("text-align-end",[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M21 19H7",key:"4cu937"}
1]])},33823:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("thumbs-down",[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]])},21531:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("underline",[["path",{d:"M6 4v6a6 6 0 0 0 12 0V4",key:"9kb039"}],["line",{x1:"4",x2:"20",y1:"20",y2:"20",key:"nun2al"}]])},67556:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("undo-2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]])},34183:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]])},8491:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},25956:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(50451).Z)("youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]])},71878:function(e,t,n){"use strict";var r=n(52676),a=n(46571),i=n(13052),o=n(17224);t.Z=function(e){let{children:t}=e,n=(0,o.useRouter)();return(0,r.jsxs)("div",{className:(0,a.cn)("sticky top-0 z-20","flex items-center gap-1 md:gap-3 px-2 md:px-6 py-3 h-16","border-b border-theme-border-100 dark:border-theme-border-dark-100","bg-felo-bg-page dark:bg-felo-bg-page-dark","min-h-[64px]"),children:[(0,r.jsx)("button",{className:"block md:hidden px-2 mr-2 z-30 cursor-pointer",onClick:()=>{n.back()},children:(0,r.jsx)(i.Z,{size:24})}),t]})}},19451:function(e,t,n){"use strict";n.r(t),n.d(t,{base64ImagetoBlob:function(){return eR},default:function(){return eH},isAllowedImageType:function(){return eL.X8}});var r=n(52676),a=n(68854),i=n(74744),o=n(42468),l=n(7717),s=n(17224),u=n(75271),d=n(93992),c=n.n(d);n(16832);var p=n(9455),f=n(84289),h=n(44476),m=n(44100),g=n(96115),y=n(70017);n(77844);var v=n(97571),b=n(316),x=e=>{let{visible:t,closeDrawer:n,children:a}=e,i=(0,u.useRef)(null),o=(0,u.useRef)(null),{isDark:l}=(0,v.Z)();return((0,u.useEffect)(()=>{function e(){let e=window.innerHeight;i.current&&(i.current.style.height=`${e}px`)}return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),(0,u.useEffect)(()=>{let e=e=>{let t=e.target;!i.current||i.current.contains(e.target)||t.closest('[data-tooltip="true"]')||n()};return t?document.addEventListener("mousedown",e):document.removeEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[t,n]),(0,u.useEffect)(()=>{if(t){document.body.style.overflow="hidden";let e=setTimeout(()=>{var e;null===(e=o.current)||void 0===e||e.focus()},100);return()=>clearTimeout(e)}document.body.style.overflow=""},[t]),t)?(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 z-40 backdrop-saturate-150 backdrop-blur-md",onClick:n}),(0,r.jsxs)("div",{ref:i,className:`fixed z-50 top-0 right-0 bg-content1 md:w-[50vw] h-full flex flex-col ${l?"dark":""} transition-all ${t?"":" opacity-0 invisible"}`,children:[(0,r.jsx)("button",{onClick:n,ref:o,className:"absolute top-4 right-4 text-gray-600 hover:text-gray-800",children:(0,r.jsx)(b.Z,{color:l?"white":"gray",className:"cursor-pointer",size:18})}),a]})]}):null},w=n(84915),k=n(65819),M=n(79448),C=n(94394),j=n(31611),T=n(22),E=n(56789),_=n(72946),P=n(27437),S=n(94487),z=n(51220),Z=n(70400),A=n(62628),N=n(8510),I=n(41529),B=n(60161),O=n(97682),L=n(66336),R=n(23886),D=n(25010),H=n(7333),W=n(59886),$=n(36229),F=n(67241),V=n(40141),q=n(41223),X=n(96096),U=n(72696),G=n(4814),Y=n(24213),K=n(44634),J=n(94572),Q=n(89932),ee=e=>{let{noteId:t,notePPTCacheData:n}=e,a=(0,l.useTranslations)(),i=(0,k.ZP)(e=>e.isLogin),o=(0,K.Z)(),s=(0,u.useMemo)(()=>{let e=[{key:"preview",value:"ppt.preview_ppt_btn"},{key:"edit",value:"ppt.edit_ppt_btn"}
1,{key:"generate",value:"ppt.generate_ppt_btn"},{key:"regenerate",value:"ppt.regenerate_btn"},{key:"download",value:"common.ppt.download_ppt_btn"}];return(null==n?void 0:n.status)==4?e.filter(e=>"generate"!==e.key):e=(null==n?void 0:n.status)===2?[...e]:[1,3,5].includes((null==n?void 0:n.status)||-1)?[{key:"edit",value:"ppt.edit_ppt_btn"},{key:"regenerate",value:"ppt.regenerate_btn"}]:[{key:"generate",value:"ppt.generate_ppt_btn"}],e},[null==n?void 0:n.status]);return i?(0,r.jsxs)(r.Fragment,{children:[s.map(e=>(0,r.jsx)(U.Xi,{className:(0,G.Z)("py-0 px-1"),children:(0,r.jsxs)(X.A,{size:"md",variant:"flat",className:(0,G.Z)("rounded-sm","h-8 min-h-8 justify-start w-full px-1","bg-transparent","hover:text-gray-900","dark:hover:text-white dark:text-white"),onPress:()=>{o.operatingPpt({key:(null==e?void 0:e.key)||"generate",noteId:t,businessType:J.LB.NOTE,pptDetail:n}),(0,O.D)(B.U.DOCS_GENERATE_PPT)},children:[(null==e?void 0:e.key)==="generate"?(0,r.jsx)(Y.$U,{className:(0,G.Z)("w-[24px]")}):(null==e?void 0:e.key)==="preview"?(0,r.jsx)(Y.$U,{className:(0,G.Z)("w-[24px]")}):(null==e?void 0:e.key)==="edit"?(0,r.jsx)(Y.e8,{className:(0,G.Z)("w-[24px]")}):(null==e?void 0:e.key)==="regenerate"?(0,r.jsx)(Y.RM,{className:(0,G.Z)("w-[24px]")}):(null==e?void 0:e.key)==="connectCanva"?(0,r.jsx)(Y.y_,{className:(0,G.Z)("w-[24px]")}):(null==e?void 0:e.key)==="download"?(0,r.jsx)(Q.Z,{size:20}):null,a((null===J.Oz||void 0===J.Oz?void 0:J.Oz[(null==e?void 0:e.key)||"generate"])||(null==e?void 0:e.value)||"")]})},null==e?void 0:e.key)),(null==s?void 0:s.length)>1&&(0,r.jsx)(U.VD,{})]}):null},et=e=>{let{noteId:t,notePPTCacheData:n}=e,a=(0,l.useLocale)();return!(0,k.ZP)(e=>e.isLogin)||!["en","ja","ko","zh-hant"].includes(null==a?void 0:a.toLocaleLowerCase())||(0,q.s2)()?null:(0,r.jsx)(ee,{noteId:t,notePPTCacheData:n})},en=n(15088),er=n(44342),ea=n(79907),ei=n(89039),eo=n(17112),el=n(75963),es=n(87921),eu=n(84660),ed=n(69996),ec=n(76656),ep=n(90515),ef=n(50403),eh=n(30743),em=n(45360),eg=n(18881),ey=n(48482),ev=n(7363),eb=n(36829),ex=n(77998),ew=n(35030),ek=e=>{let{noteId:t,notePPTCacheData:n}=e,a=(0,l.useLocale)(),i=(0,K.Z)(),{isShowPptModal:o,setIsShowPptModal:s,setUiModalType:d,setBesinessId:c,setBusinessType:p,setPptBtnEntrance:f,showPpt:h,setShowPpt:m,isGeneratedSuccess:g,setIsGeneratedSuccess:y,setPreviewPPTData:v}=(0,eg.Z)(),{setPptModalType:b,setGeneratePptProgress:x,setPptStatus:w}=(0,ex.Z)(),M=(0,k.ZP)(e=>e.isLogin),C=(0,u.useCallback)(async()=>{!(0,q.s2)()&&a&&t&&(f([]),i.fetchLastPpt({threadId:t,businessType:J.LB.NOTE}))},[a,t]);return(0,u.useEffect)(()=>{y(!1),C();let e=(0,ey.E)("showppt",location.href);m(e||""),"1"===e&&n&&n.status>0&&(s(!0),d("preview"),p(J.LB.NOTE),c(t),x(100),v(n),b("preview"),w("preview"))},[t,M,n]),(0,r.jsxs)(r.Fragment,{children:[(0,q.s2)()?null:(0,r.jsx)(ew.Z,{threadId:t,businessType:J.LB.NOTE}),"1"===h||o?(0,q.s2)()?(0,r.jsx)(ev.Z,{shortId:t}):(0,r.jsx)(eb.Z,{shortId:t,businessType:J.LB.NOTE}):null]})},eM=n(57225),eC=n(50648),ej=n(83772),eT=e=>{var t,n;let{lastSave:a,noteId:i,editor:o,openMindMapModal:s}=e,d=(0,l.useTranslations)(),{isMobile:c}=(0,er.b)(),f=(0,eC.F)(),{isOpen:h,onOpen:m,onClose:y}=(0,p.q)(),{noteData:v}=(0,g.Z)(),{handleSaveNotion:b}=(0,ei.H)({onSuccess:e=>{eo.Z.close(),eo.Z.show({content:(0,r.jsx)(ed.E,{children:(0,r.jsxs)("div",{className:"flex items-center gap-20",children:[(0,r.jsxs)("span",{children:[" ",d("notion.save_success")]}),(0,r.jsx)("div",{className:"flex items-center border-1 text-[#0080FF] bg-[#fff] border-[#0694FF] cursor-pointer dark:bg-[#202531] py-[4px] px-[12px] rounded-[8px] ",onClick:()=>{window.open(e.data.url)},children:d("open")})," "]})}),duration:6e3,type:"custom"})},onFailed:e=>{eo.Z.error(`${d("notion.save_failed")}:${e}`,6e3)}});(0,el.useRouter)();let x=(0,l.useLocale)(),{exportToDriveAndDocs:w}=(0,es.IE)({onSuccess:e=>{eo.Z.close(),eo.Z.show({content:(0,r.jsx)(ed.E,{children:(0,r.jsxs)("div",{className:"flex items-center gap-20",children:[(0,r.jsxs)("span",{children:[" ",d("save_success")]}),(0,r.jsx)("div",{className:"flex items-center border-1 text-[#0080FF] bg-[#fff] border-[#0694FF] cursor-pointer dark:bg-[#202531] py-[4px] px-[12px] rounded-[8px] ",onClick:()=>{window.open(e)},children:d("open")})," "]})}),duration:5e3,type:"custom"})},onError:e=>{eo.Z.close(),eo.Z.error(`${d("ppt.import_ppt_failed")} ${e}`)}}),M=(0,K.Z)(),{isGeneratedSuccess:C,setIsGeneratedSuccess:j}=(0,eg.Z)(),T=(0,k.ZP)(e=>e.isLogin),[E,_]=(0,u.useState)(),P=(0,u.useCallback)(async()=>
1{if((0,q.s2)()||!i)return;let e=await (0,em.OQ)({thread_id:i,businessType:J.LB.NOTE});if(e&&(null==e?void 0:e.status)){_(e);let t=eg.Z.getState().allPptGenerateData;eg.Z.getState().setAllPptGenerateData({...t,[i]:e})}},[i]);(0,u.useEffect)(()=>{T&&i&&(j(!1),P())},[T,i]),(0,u.useEffect)(()=>{i&&C&&i===eg.Z.getState().businessId&&(M.pollLastPpt({threadId:i,businessType:J.LB.NOTE,onPollingResult:e=>{e&&_(e)}}).then(e=>{_(e)}),j(!1))},[C,i]);let S=(0,u.useMemo)(()=>{let e=Math.floor((Date.now()-a)/1e3);if(e<60)return d("note.times.just");let t=Math.floor(e/60);if(t<60)return d("note.times.minutes",{minutes:t});let n=Math.floor(t/60);if(n<24)return d("note.times.hours",{hours:n});let r=Math.floor(n/24);if(r<7)return d("note.times.days",{days:r});let i=Math.floor(r/7);if(i<4)return d("note.times.weeks",{weeks:i});let o=Math.floor(r/30);return o<12?d("note.times.months",{months:o}):d("note.times.years",{years:Math.floor(o/12)})},[a]),z=async()=>{if(o){var e;let t=(0,ep.M$)(o.storage.markdown.get());t=(t=t.replace(/(\/s3\/view\?)/g,"/s3/view.svg?")).replace(/(\[.*?\]\(\d+\))/g,"[$1]"),eo.Z.show({content:(0,r.jsx)(ed.E,{children:d("saving_to_notion")}),duration:99999,type:"custom"}),b({content:t,sources:(null==v?void 0:null===(e=v.other)||void 0===e?void 0:e.sources)||[],title:null==v?void 0:v.title,threadId:null==v?void 0:v.thread_id})}},Z=async()=>{if(o){let e=(0,ep.M$)(o.storage.markdown.get()).replaceAll("\\[","[");e=(e=(e=e.replace(/(\/s3\/view\?)/g,"/s3/view.svg?")).replace(/(\[.*?\]\(\d+\))/g,"[$1]")).replace(/(\d+)\.\s+/g,"$1."),eo.Z.show({content:(0,r.jsx)(ed.E,{children:d("topic.creating")}),duration:99999,type:"custom"}),await w((null==v?void 0:v.title)||"","",(0,ep.Hd)((0,ep.kn)(o.getHTML().replace(/(\/s3\/view\?)/g,"/s3/view.svg?").replace(/<a[^>]*href="(\d+)"[^>]*>(.*?)<\/a>/g,(e,t,n)=>`<a href="${t}">${n}</a>`)))),(0,O.D)(B.U.DOCS_SAVE_TO_GOOGLE)}},A=async e=>{if(o){(0,O.D)(B.U.DOCS_EXPORT_FILE_START);let t=(0,ep.M$)(o.storage.markdown.get());switch(t=(t=t.replace(/(\/s3\/view\?)/g,"/s3/view.svg?")).replace(/(\[.*?\]\(\d+\))/g,"[$1]"),eo.Z.show({content:(0,r.jsx)(ed.E,{children:d("topic.creating")}),duration:99999,type:"custom"}),e){case"DOCX":(0,ec.dP)((0,ep.Hd)((0,ep.kn)(o.getHTML().replace(/(\/s3\/view\?)/g,"/s3/view.svg?").replace(/<a[^>]*href="(\d+)"[^>]*>(.*?)<\/a>/g,(e,t,n)=>`<a href="${t}">${n}</a>`),600)),(null==v?void 0:v.title)||"document",x||"en").then(e=>{eo.Z.close()}).finally(()=>{eo.Z.close()});break;case"PDF":try{(0,ef.t1)({file_type:e,html:(0,ep.Hd)((0,ep.kn)(o.getHTML().replace(/(\/s3\/view\?)/g,"/s3/view.svg?").replace(/<a[^>]*href="(\d+)"[^>]*>(.*?)<\/a>/g,(e,t,n)=>`<a href="${t}">${n}</a>`))),lang:(null==x?void 0:x.toLocaleLowerCase().replace("-","_"))||"en"},e=>{(null==e?void 0:e.status)==="success"&&(0,O.D)(B.U.DOCS_EXPORT_FILE_SUCCESS),eo.Z.close()},null==v?void 0:v.title)}catch(e){eo.Z.error(d("ppt.generate_failure_tip"))}break;case"MD":let n=new Blob([t],{type:"text/markdown"}),a=URL.createObjectURL(n),i=document.createElement("a");i.href=a,i.download=`${(null==v?void 0:v.title)||"document"}.md`,i.click(),URL.revokeObjectURL(a),eo.Z.close()}}};return(0,r.jsxs)(V.Z,{children:[(0,r.jsxs)("div",{className:"flex gap-2 items-center w-[80%]",children:[(0,r.jsx)(eh.pn,{children:(0,r.jsxs)(eh.u,{children:[(0,r.jsx)(eh.aJ,{asChild:!0,children:(0,r.jsx)(D.z,{variant:"ghost",size:"icon",onClick:()=>{location.href="/library"},children:(0,r.jsx)(H.Z,{className:"h-5 w-5"})})}),(0,r.jsx)(eh._v,{align:"start",children:(0,r.jsx)("p",{children:d("drive.backDrive")})})]})}),(0,r.jsx)(en.Z,{})]}),(0,r.jsxs)("div",{className:"ml-auto flex items-center gap-2",children:[(0,r.jsx)("span",{className:"text-sm opacity-60 whitespace-nowrap",children:a&&`${S}`}),(0,r.jsxs)(U.h_,{children:[(0,r.jsx)(U.$F,{asChild:!0,children:(0,r.jsx)(D.z,{className:(0,L.cn)("rounded-lg",!v&&"hidden"),variant:c?"ghost":"outline-primary",size:c?"icon-sm":void 0,children:(0,r.jsx)(W.Z,{})})}),(0,r.jsxs)(U.AW,{align:"end",className:"rounded-2xl p-3 z-[10001]",children:[(0,r.jsx)(et,{noteId:i||"",notePPTCacheData:E}),(0,r.jsxs)(U.Xi,{className:"cursor-pointer",onClick:()=>{let e=(null==o?void 0:o.getText())||"";g.Z.getState().setMindmapContent(e),g.Z.getState().setmindmapType("note"),setTimeout(()=>{s()},100),(0,O.D)(B.U.DOCS_CREATE_MINDMAP)},children:[(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.9338 3.41667C1
15.5747 3.41667 15.2836 3.70775 15.2836 4.06682C15.2836 4.4259 15.5747 4.71698 15.9338 4.71698C16.2928 4.71698 16.5839 4.4259 16.5839 4.06682C16.5839 3.70775 16.2928 3.41667 15.9338 3.41667ZM13.771 3.23431C14.1055 2.36607 14.9477 1.75 15.9338 1.75C17.2133 1.75 18.2506 2.78728 18.2506 4.06682C18.2506 5.34637 17.2133 6.38365 15.9338 6.38365C14.9483 6.38365 14.1066 5.7684 13.7717 4.90108C13.412 4.90303 13.1365 4.90906 12.9083 4.92771C12.5887 4.95381 12.4358 5.00043 12.3349 5.05187C12.073 5.18531 11.86 5.39825 11.7266 5.66015C11.6752 5.76109 11.6285 5.914 11.6024 6.23353C11.5755 6.56279 11.5749 6.99033 11.5749 7.6272V9.16745L13.7713 9.16745C14.106 8.29964 14.948 7.68396 15.9338 7.68396C17.2133 7.68396 18.2506 8.72124 18.2506 10.0008C18.2506 11.2803 17.2133 12.3176 15.9338 12.3176C14.948 12.3176 14.106 11.7019 13.7713 10.8341H11.5749V12.3744C11.5749 13.0112 11.5755 13.4388 11.6024 13.768C11.6285 14.0876 11.6752 14.2405 11.7266 14.3414C11.86 14.6033 12.073 14.8163 12.3349 14.9497C12.4358 15.0011 12.5887 15.0478 12.9083 15.0739C13.1365 15.0925 13.412 15.0985 13.7717 15.1005C14.1066 14.2332 14.9483 13.6179 15.9338 13.6179C17.2133 13.6179 18.2506 14.6552 18.2506 15.9348C18.2506 17.2143 17.2133 18.2516 15.9338 18.2516C14.9477 18.2516 14.1055 17.6355 13.771 16.7673C13.391 16.7653 13.0591 16.7584 12.7725 16.735C12.3499 16.7005 11.9533 16.6258 11.5782 16.4347C11.0027 16.1415 10.5348 15.6736 10.2416 15.0981C10.0505 14.723 9.97584 14.3264 9.94131 13.9038C9.9082 13.4986 9.90821 13.0025 9.90822 12.4082V10.8341H7.86616L7.86616 14.4773C7.86618 14.8007 7.86619 15.0842 7.85012 15.3197C7.83311 15.569 7.79534 15.8248 7.68981 16.0796C7.45466 16.6473 7.00364 17.0983 6.43595 17.3335C6.18117 17.439 5.92533 17.4768 5.67602 17.4938C5.44049 17.5099 5.15699 17.5098 4.8336 17.5098H4.78159C4.4582 17.5098 4.1747 17.5099 3.93917 17.4938C3.68986 17.4768 3.43401 17.439 3.17924 17.3335C2.61155 17.0983 2.16053 16.6473 1.92538 16.0796C1.81985 15.8248 1.78208 15.569 1.76507 15.3197C1.749 15.0842 1.74901 14.8006 1.74902 14.4773L1.74902 5.52431C1.74901 5.20093 1.749 4.91742 1.76507 4.68189C1.78208 4.43258 1.81985 4.17674 1.92538 3.92196C2.16053 3.35427 2.61155 2.90325 3.17924 2.6681C3.43401 2.56257 3.68986 2.5248 3.93917 2.50779C4.1747 2.49172 4.4582 2.49173 4.78159 2.49175H4.8336C5.15698 2.49173 5.44049 2.49172 5.67602 2.50779C5.92533 2.5248 6.18117 2.56257 6.43595 2.6681C7.00364 2.90325 7.45466 3.35427 7.68981 3.92196C7.79534 4.17673 7.8331 4.43258 7.85012 4.68189C7.86619 4.91742 7.86618 5.20092 7.86616 5.52431L7.86616 9.16745H9.90822V7.59336C9.90821 6.99903 9.9082 6.50301 9.94131 6.09781C9.97584 5.67521 10.0505 5.27856 10.2416 4.9035C10.5348 4.32799 11.0027 3.86009 11.5782 3.56686C11.9533 3.37575 12.3499 3.3011 12.7725 3.26658C13.0591 3.24316 13.391 3.23631 13.771 3.23431ZM6.1995 5.55032C6.1995 5.1933 6.19905 4.96728 6.18731 4.79534C6.17609 4.63089 6.1574 4.57761 6.15001 4.55976C6.08402 4.40046 5.95745 4.27389 5.79814 4.2079C5.7803 4.20051 5.72702 4.18182 5.56257 4.1706C5.39063 4.15886 5.16461 4.15841 4.80759 4.15841C4.45058 4.15841 4.22456 4.15886 4.05262 4.1706C3.88817 4.18182 3.83489 4.20051 3.81704 4.2079C3.65774 4.27389 3.53117 4.40046 3.46518 4.55977C3.45779 4.57761 3.43909 4.63089 3.42787 4.79534C3.41614 4.96728 3.41569 5.1933 3.41569 5.55032L3.41569 14.4513C3.41569 14.8083 3.41614 15.0343 3.42787 15.2062C3.43909 15.3707 3.45779 15.424 3.46518 15.4418C3.53117 15.6011 3.65774 15.7277 3.81704 15.7937C3.83489 15.8011 3.88817 15.8198 4.05262 15.831C4.22456 15.8427 4.45058 15.8432 4.80759 15.8432C5.16461 15.8432 5.39063 15.8427 5.56257 15.831C5.72702 15.8198 5.7803 15.8011 5.79814 15.7937C5.95745 15.7277 6.08402 15.6011 6.15001 15.4418C6.1574 15.424 6.17609 15.3707 6.18731 15.2062C6.19905 15.0343 6.1995 14.8083 6.1995 14.4513V5.55032ZM15.9338 9.35063C15.5747 9.35063 15.2836 9.64172 15.2836 10.0008C15.2836 10.3599 15.5747 10.6509 15.9338 10.6509C16.2928 10.6509 16.5839 10.3599 16.5839 10.0008C16.5839 9.64171 16.2928 9.35063 15.9338 9.35063ZM15.9338 15.2846C15.5747 15.2846 15.2836 15.5757 15.2836 15.9348C15.2836 16.2938 15.5747 16.5849 15.9338 16.5849C16.2928 16.5849 16.5839 16.2938 16.5839 15.9348C16.5839 15.5757 16.2928 15.2846 15.9338 15.2846Z",fill:"currentColor"})})," ",(null==v?void 0:null===(n=v.other)||void 0===n?void 0:null===(t=n.mindmapConfig)||void 0===t?void 0:t.layout)?d("look_mindmap"):d("note.generating_midmap")]}),f&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(U.Xi,{className:"cursor-pointer",onClick:z,children:[(0,r.jsx)(R.oDT,{}),d("notion.save_to_notion")]}),(0,r.jsxs)(U.Xi,{className:"cursor-pointer",onClick:Z,children:[(0,r.jsx)(eu.X,{}),d("common.save_google_docs")]})]}),(0,r.jsxs)(U.Ph,{children:[(0,r.jsxs)(U.kt,{children:[(0,r.jsx)($.Z,{className:"mr-2 h-4 w-4"}),(0,r.jsx)("span",{children:d("download.label")})]}),(0,r.jsxs)(U.TG,{children:[(0,r.jsx)(U.Xi,{onClick:()=>
1A("DOCX"),children:(0,r.jsx)("span",{children:d("download_word")})}),(0,r.jsx)(U.Xi,{onClick:()=>A("PDF"),children:(0,r.jsx)("span",{children:d("download_pdf")})}),(0,r.jsx)(U.Xi,{onClick:()=>A("MD"),children:(0,r.jsx)("span",{children:d("download_md")})})]})]}),(0,r.jsx)(U.VD,{}),(0,r.jsxs)(U.Xi,{className:"text-red-400 cursor-pointer",onClick:()=>{m(),(0,O.D)(B.U.DOCS_DELETE)},children:[(0,r.jsx)(F.vW,{className:"w-5 h-5"}),d("note.delete_note")]})]})]}),(0,r.jsx)(ej.J9,{}),(0,r.jsx)(eM.default,{isOpen:!1})]}),(0,r.jsx)(ea.Z,{open:h,onOpenChange:y,noteId:i||""}),["en","ja","ko","zh-hant"].includes(null==x?void 0:x.toLocaleLowerCase())?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(ek,{noteId:i||"",notePPTCacheData:E})}):null]})},eE=n(16775),e_=n(92107),eP=n(29609),eS=n(20417),ez=n(53557),eZ=n(11185),eA=n(98987),eN=n(8955),eI=n(50831),eB=n(2632),eO=n(71878),eL=n(70262);let eR=async e=>{let t=await fetch(e);return await t.blob()},eD=()=>{var e,t;let n=(0,s.useRouter)(),d=(0,l.useTranslations)();(0,l.useLocale)();let v=(0,k._n)(),{isMobile:b,isApp:B}=(0,er.b)(),{editingUser:O}=(0,M.oi)(),{isOpen:L,onOpen:R,onClose:D}=(0,p.q)(),H=(0,k.ZP)(e=>e.anonymousToken),W=(0,u.useMemo)(()=>Array.isArray(n.query.id)?n.query.id[0]:n.query.id,[n.query.id]),[$,F]=(0,u.useState)([]);(0,y.V)();let{queryNoteById:V,noteData:q,error:X,showSourceList:U,showSource:G,setShowSource:Y,setShowSourceList:K,setNoteData:J}=(0,g.Z)(),Q=(0,u.useMemo)(()=>{var e,t;return null==q||null===(e=q.live_doc)||void 0===e||!e.short_id||(null==q?void 0:null===(t=q.permission)||void 0===t?void 0:t.can_write)},[null==q?void 0:null===(e=q.live_doc)||void 0===e?void 0:e.short_id,null==q?void 0:null===(t=q.permission)||void 0===t?void 0:t.can_write]),ee=(0,u.useMemo)(()=>!b&&Q&&!O,[Q,O,b]),et=async e=>{if(!(0,eL.X8)(e.type)){eo.Z.error(d("note.format.img_type_error"));return}if(e.size>5242880){eo.Z.error(d("note.format.img_limit_size",{size:"5"}));return}try{let t=await (0,ef.Jd)(e,(null==q?void 0:q.note_id)||"");t.data&&(null==en||en.commands.insertImage({src:t.data,alt:"image",title:""}))}catch(e){console.error("Upload error:",e),eo.Z.error(d("note.format.upload_failed"))}},en=(0,h.jE)({editable:ee,extensions:[m.Vg.configure({image:!1,blockMenu:!1,clipboard:{format:"plainText"},listKeymap:!0,mathBlock:!0,mathInline:!0,markdown:!0}),m.X6,C.o.configure({onUpdate:F}),E.Z,_.I.configure({types:[E.Z.name]}),P.g.configure({types:["heading","paragraph"]}),S.A.configure({types:["listItem","paragraph"],minLevel:0,maxLevel:8}),z.b,N.Z,I.d.configure({inline:!0,allowBase64:!0}),e_.ZP.configure({HTMLAttributes:{class:"bg-blue-100 dark:bg-blue-800/30"}}),eP.Q,ez.Z,eZ.i.configure({resizable:!0,showControls:!1}),eA.S.configure({showControls:!1}),eN.x.configure({showControls:!1}),eI.p.configure({showControls:!1})],content:"",enablePasteRules:!0,autofocus:!1,parseOptions:{preserveWhitespace:"full"},editorProps:{handleScrollToSelection:()=>!1,handleDOMEvents:{scroll:()=>!0},handleKeyDown:(e,t)=>{if("Tab"===t.key){t.preventDefault();let{from:n,to:r}=e.state.selection;return e.dispatch(e.state.tr.insertText(" ",n,r)),!0}return!1},handlePaste:(e,t)=>
1{var n,r,a;let i=Array.from((null===(n=t.clipboardData)||void 0===n?void 0:n.items)||[]);if(i.some(e=>-1!==e.type.indexOf("image")))return t.preventDefault(),i.forEach(e=>{if(0===e.type.indexOf("image")){let t=e.getAsFile();t&&et(t)}}),!0;let o=null===(r=t.clipboardData)||void 0===r?void 0:r.getData("text/html"),l=null===(a=t.clipboardData)||void 0===a?void 0:a.getData("text/plain");if(o){t.preventDefault();try{let{state:t}=e,{selection:n}=t,{$from:r}=n,a=!1;for(let e=r.depth;e>0;e--){let t=r.node(e);if("listItem"===t.type.name){a=!0;break}}let i=document.createElement("div");i.innerHTML=o;let s=/<(b|strong|i|em|u|a|span|code|pre|h[1-6]|ul|ol|li|table|tr|td|th|blockquote)[\s>]/.test(o)||o.includes("<b>")||o.includes("<strong>")||o.includes("<i>")||o.includes("<em>")||o.includes("<u>")||o.includes("<a ")||o.includes("<span")||o.includes("<code")||o.includes("<pre")||o.includes("<h1")||o.includes("<h2")||o.includes("<h3")||o.includes("<h4")||o.includes("<h5")||o.includes("<h6")||o.includes("<ul")||o.includes("<ol")||o.includes("<li")||o.includes("<table")||o.includes("<tr")||o.includes("<td")||o.includes("<th")||o.includes("<blockquote");if(a&&l&&!(/<(ol|ul|li)[\s>]/.test(o)||o.includes("<ol")||o.includes("<ul")||o.includes("<li"))){let{from:t,to:n}=e.state.selection;return e.dispatch(e.state.tr.insertText(l,t,n)),!0}if(!s&&l){let{from:t,to:n}=e.state.selection;return e.dispatch(e.state.tr.insertText(l,t,n)),!0}let u=i.querySelectorAll("h1, h2, h3, h4, h5, h6");u.length>0&&u.forEach(e=>{e.removeAttribute("id")});let d=i.innerHTML;return null==en||en.commands.insertContent(d),!0}catch(t){if(console.error("Error handling paste:",t),l){let{from:t,to:n}=e.state.selection;return e.dispatch(e.state.tr.insertText(l,t,n)),!0}}}return!1},handleDrop:(e,t)=>{var n;let r=null===(n=t.dataTransfer)||void 0===n?void 0:n.files;if(!(null==r?void 0:r.length))return!1;let a=Array.from(r).filter(e=>(0,eL.X8)(e.type));return!!a.length&&(t.preventDefault(),a.forEach(et),!0)},transformPastedHTML:e=>e,transformPastedText:e=>e},onUpdate:()=>{}}),ea=(0,u.useRef)(null);ea.current=en,(0,u.useEffect)(()=>{en&&en.isEditable!==ee&&en.setEditable(ee)},[en,ee]);let ei=(0,u.useRef)(null);(0,u.useEffect)(()=>{let e=ei.current;ei.current=O,null!==e&&null===O&&W&&(J(void 0),V(W))},[O,W,V,J]),(0,u.useEffect)(()=>{H&&void 0!==v&&W&&V(W)},[W,v,H,V]);let[el,es]=(0,u.useState)(),eu=async()=>{if(en&&q)try{let e=en.getJSON(),t={...q,note_id:q.note_id,content:JSON.stringify(e),other:{...q.other}}
1;await (0,ef.SB)(t),J(t),es(new Date().getTime())}catch(e){throw eo.Z.error(d("agent.save_failed"),3e3),e}},ed=async()=>{var e;try{await eu()}catch(e){console.error("Save failed:",e)}(null==q?void 0:null===(e=q.live_doc)||void 0===e?void 0:e.id)&&n.push(`/livedoc/${q.live_doc.short_id}`)};(0,u.useEffect)(()=>{q&&es(new Date(q.gmt_modified).getTime())},[q]),(0,u.useEffect)(()=>()=>{g.Z.getState().setNoteData(void 0)},[]);let ec=async e=>{if(!ea.current)return;D();let{noteData:t}=g.Z.getState(),n=await eR(e.png);if(n.size>5242880){eo.Z.error(d("note.format.img_limit_size",{size:"5"}));return}try{let e=await (0,ef.Jd)(n,(null==t?void 0:t.note_id)||""),r=ea.current;e.data&&(null==r||r.commands.insertImage({width:800,src:e.data,alt:"image",title:""}))}catch(e){console.error("Upload error:",e)}};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(c(),{children:[(0,r.jsx)("title",{children:(null==q?void 0:q.title)||"Felo Docs"}),(0,r.jsx)("script",{src:"https://aippt-international-api-static.aippt.cn/aippt-iframe-sdk.js",async:!0,defer:!0}),(0,r.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,r.jsx)("link",{href:"https://fonts.googleapis.com/css2?family=Nanum+Gothic&family=Noto+Sans+JP:[email protected]&family=Noto+Sans+KR:[email protected]&display=swap",rel:"stylesheet"})]}),(()=>{if(B)return null;if(b)return(0,r.jsx)(eO.Z,{children:(0,r.jsx)("h1",{className:"font-medium mr-auto text-base m-0 truncate",children:(null==q?void 0:q.title)||d("loading")})});if(null==q?void 0:q.live_doc){var e,t;return(0,r.jsx)(eS.Z,{title:null==q?void 0:q.title,liveDocName:null==q?void 0:null===(e=q.live_doc)||void 0===e?void 0:e.name,docId:W,editor:en,sources:null==q?void 0:null===(t=q.other)||void 0===t?void 0:t.sources,onBack:ed,onSaveDoc:eu,canEdit:!0,showMindMapButton:!0,onOpenMindMap:R})}return(0,r.jsx)(eT,{editor:en,lastSave:el,noteId:W,openMindMapModal:R})})(),(0,r.jsxs)("section",{className:"flex flex-col",id:"docsContainer",children:[(()=>{if(X){let e="";return"server_error"===X?e=d("error.server_error"):"unauthorized"===X?e=d("error.unauthorized"):"not_found"===X&&(e=d("error.not_found")),(0,r.jsxs)("div",{className:"my-8 text-center",children:[(0,r.jsx)(i.Z,{className:"h-12 w-12 mx-auto mb-4 text-red-400"}),(0,r.jsx)("h2",{className:"text-xl",children:e})]})}return q?null:(0,r.jsxs)("div",{className:"max-w-3xl p-8",children:[(0,r.jsx)("div",{className:"animate-pulse rounded-md h-12 w-96 max-w-full bg-theme-bg-100 dark:bg-theme-bg
1-dark-100 mb-4"}),(0,r.jsx)("div",{className:"animate-pulse rounded-md h-5 w-[80%] bg-theme-bg-100 dark:bg-theme-bg-dark-100 mb-4"}),(0,r.jsx)("div",{className:"animate-pulse rounded-md h-5 w-[60%] bg-theme-bg-100 dark:bg-theme-bg-dark-100 mb-4"}),(0,r.jsx)("div",{className:"animate-pulse rounded-md h-5 w-[40%] bg-theme-bg-100 dark:bg-theme-bg-dark-100 mb-4"}),(0,r.jsx)("div",{className:"animate-pulse rounded-md h-5 bg-theme-bg-100 dark:bg-theme-bg-dark-100 mb-4"}),(0,r.jsx)("div",{className:"animate-pulse rounded-md h-5 bg-theme-bg-100 dark:bg-theme-bg-dark-100 mb-4"}),(0,r.jsx)("div",{className:"animate-pulse rounded-md h-5 bg-theme-bg-100 dark:bg-theme-bg-dark-100 mb-4"}),(0,r.jsx)("div",{className:"animate-pulse rounded-md h-5 bg-theme-bg-100 dark:bg-theme-bg-dark-100 mb-4"})]})})(),en&&q&&(0,r.jsxs)(Z.K,{editor:en,children:[Q&&!O&&(0,r.jsx)(T.Z,{className:"hidden lg:flex sticky top-16 left-0 right-0",editor:en,showAdvancedTools:!!(null==q?void 0:q.live_doc),onOpenMindMap:R}),(0,r.jsxs)("div",{className:"min-h-0 flex-1 flex overflow-auto",children:[(0,r.jsx)(j.b,{toc:$}),(0,r.jsx)(h.kg,{editor:en,className:"flex-1 [&>div]:mx-auto [&>div]:max-w-screen-lg [&>div]:outline-none overflow-y-auto custom-scrollbar p-4 lg:p-16 searchDocs relative",children:(0,r.jsx)(A.B,{noteId:null==q?void 0:q.note_id,children:(0,r.jsx)(a.Z,{onSave:()=>{es(new Date().getTime())},openMindMapModal:R})})})]}),(0,r.jsx)(eB.D,{editor:en})]})]}),(0,r.jsx)(x,{visible:G,closeDrawer:()=>Y(!1),children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"py-4 px-6 flex-initial text-large font-semibold border-b border-slate-200 dark:border-[#6D7276] flex flex-col gap-1",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(o.Z,{})," ",d("sources")]}),(0,r.jsx)("div",{className:"text-sm font-normal",children:null==q?void 0:q.title})]}),(0,r.jsx)(f.o,{className:"p-6",children:(0,r.jsx)(w.F,{sources:U||[],canEdit:!1,isDone:!1,isAll:!0,isVisible:!0})})]})}),(0,r.jsx)(eE.y,{open:L,onClose:D,onInsertMindmap:ec})]})};function eH(){let e=(0,s.useRouter)(),t=(0,u.useMemo)(()=>Array.isArray(e.query.id)?e.query.id[0]:e.query.id,[e.query.id]);return(0,r.jsx)(M.$P,{resourceKey:t||"",children:(0,r.jsx)(eD,{})})}},96594:function(){},12767:function(){},46988:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});var r=n(35453),a=n(45173),i=n(75271),o=i.useLayoutEffect,l=function(e){var t=i.useRef(e);return o(function(){t.current=e}),t},s=function(e,t){if("function"==typeof e){e(t);return}e.current=t},u=function(e,t){var n=(0,i.useRef)();return(0,i.useCallback)(function(r){e.current=r,n.current&&s(n.current,null),n.current=t,t&&s(t,r)},[t])},d={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},c=function(e){Object.keys(d).forEach(function(t){e.style.setProperty(t,d[t],"important")})},p=null,f=function(e,t){var n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize},h=function(){},m=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],g=!!document.documentElement.currentStyle,y=function(e){var t=window.getComputedStyle(e);if(null===t)return null;var n=m.reduce(function(e,n){return e[n]=t[n],e},{}),r=n.boxSizing;if(""===r)return null;g&&"border-box"===r&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+"px");var a=parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),i=parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth);return{sizingStyle:n,paddingSize:a,borderSize:i}};function v(e,t,n){var r=l(n);i.useLayoutEffect(function(){var n=function(e){return r.current(e)};if(e)return e.addEventListener(t,n),function(){return e.removeEventListener(t,n)}},[])}var b=function(e){v(window,"resize",e)},x=function(e){v(document.fonts,"loadingdone",e)},w=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],k=i.forwardRef(function(e,t){var n=e.cacheMeasurements,o=e.maxR
1ows,l=e.minRows,s=e.onChange,d=void 0===s?h:s,m=e.onHeightChange,g=void 0===m?h:m,v=(0,a.Z)(e,w),k=void 0!==v.value,M=i.useRef(null),C=u(M,t),j=i.useRef(0),T=i.useRef(),E=function(){var e,t,r,a,i,s,u,d,h,m,v,b=M.current,x=n&&T.current?T.current:y(b);if(x){T.current=x;var w=(e=b.value||b.placeholder||"x",void 0===(t=l)&&(t=1),void 0===(r=o)&&(r=1/0),p||((p=document.createElement("textarea")).setAttribute("tabindex","-1"),p.setAttribute("aria-hidden","true"),c(p)),null===p.parentNode&&document.body.appendChild(p),a=x.paddingSize,i=x.borderSize,u=(s=x.sizingStyle).boxSizing,Object.keys(s).forEach(function(e){p.style[e]=s[e]}),c(p),p.value=e,d=f(p,x),p.value=e,d=f(p,x),p.value="x",m=(h=p.scrollHeight-a)*t,"border-box"===u&&(m=m+a+i),d=Math.max(m,d),v=h*r,"border-box"===u&&(v=v+a+i),[d=Math.min(v,d),h]),k=w[0],C=w[1];j.current!==k&&(j.current=k,b.style.setProperty("height",k+"px","important"),g(k,{rowHeight:C}))}};return i.useLayoutEffect(E),b(E),x(E),i.createElement("textarea",(0,r.Z)({},v,{onChange:function(e){k||E(),d(e)},ref:C}))})},68686:function(e,t,n){"use strict";var r=n(44672),a=n(15752);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var o={run:function(){var e=this,t=e.slides.eq(e.activeIndex),n=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(n=t.attr("data-swiper-autoplay")||e.params.autoplay.delay),clearTimeout(e.autoplay.timeout),e.autoplay.timeout=(0,a.Y3)(function(){var t;e.params.autoplay.reverseDirection?e.params.loop?(e.loopFix(),t=e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.isBeginning?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(t=e.slideTo(e.slides.length-1,e.params.speed,!0,!0),e.emit("autoplay")):(t=e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.params.loop?(e.loopFix(),t=e.slideNext(e.params.speed,!0,!0),e.emit("autoplay")):e.isEnd?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(t=e.slideTo(0,e.params.speed,!0,!0),e.emit("autoplay")):(t=e.slideNext(e.params.speed,!0,!0),e.emit("autoplay")),e.params.cssMode&&e.autoplay.running?e.autoplay.run():!1===t&&e.autoplay.run()},n)},start:function(){return void 0===this.autoplay.timeout&&!this.autoplay.running&&(this.autoplay.running=!0,this.emit("autoplayStart"),this.autoplay.run(),!0)},stop:function(){return!!this.autoplay.running&&void 0!==this.autoplay.timeout&&(this.autoplay.timeout&&(clearTimeout(this.autoplay.timeout),this.autoplay.timeout=void 0),this.autoplay.running=!1,this.emit("autoplayStop"),!0)},pause:function(e){var t=this;
1t.autoplay.running&&(t.autoplay.paused||(t.autoplay.timeout&&clearTimeout(t.autoplay.timeout),t.autoplay.paused=!0,0!==e&&t.params.autoplay.waitForTransition?["transitionend","webkitTransitionEnd"].forEach(function(e){t.$wrapperEl[0].addEventListener(e,t.autoplay.onTransitionEnd)}):(t.autoplay.paused=!1,t.autoplay.run())))},onVisibilityChange:function(){var e=(0,r.Me)();"hidden"===e.visibilityState&&this.autoplay.running&&this.autoplay.pause(),"visible"===e.visibilityState&&this.autoplay.paused&&(this.autoplay.run(),this.autoplay.paused=!1)},onTransitionEnd:function(e){var t=this;t&&!t.destroyed&&t.$wrapperEl&&e.target===t.$wrapperEl[0]&&(["transitionend","webkitTransitionEnd"].forEach(function(e){t.$wrapperEl[0].removeEventListener(e,t.autoplay.onTransitionEnd)}),t.autoplay.paused=!1,t.autoplay.running?t.autoplay.run():t.autoplay.stop())},onMouseEnter:function(){var e=this;e.params.autoplay.disableOnInteraction?e.autoplay.stop():e.autoplay.pause(),["transitionend","webkitTransitionEnd"].forEach(function(t){e.$wrapperEl[0].removeEventListener(t,e.autoplay.onTransitionEnd)})},onMouseLeave:function(){this.params.autoplay.disableOnInteraction||(this.autoplay.paused=!1,this.autoplay.run())},attachMouseEvents:function(){this.params.autoplay.pauseOnMouseEnter&&(this.$el.on("mouseenter",this.autoplay.onMouseEnter),this.$el.on("mouseleave",this.autoplay.onMouseLeave))},detachMouseEvents:function(){this.$el.off("mouseenter",this.autoplay.onMouseEnter),this.$el.off("mouseleave",this.autoplay.onMouseLeave)}};t.Z={name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}},create:function(){(0,a.cR)(this,{autoplay:i({},o,{running:!1,paused:!1})})},on:{init:function(e){e.params.autoplay.enabled&&(e.autoplay.start(),(0,r.Me)().addEventListener("visibilitychange",e.autoplay.onVisibilityChange),e.autoplay.attachMouseEvents())},beforeTransitionStart:function(e,t,n){e.autoplay.running&&(n||!e.params.autoplay.disableOnInteraction?e.autoplay.pause(t):e.autoplay.stop())},sliderFirstMove:function(e){e.autoplay.running&&(e.params.autoplay.disableOnInteraction?e.autoplay.stop():e.autoplay.pause())},touchEnd:function(e){e.params.cssMode&&e.autoplay.paused&&!e.params.autoplay.disableOnInteraction&&e.autoplay.run()},destroy:function(e){e.autoplay.detachMouseEvents(),e.autoplay.running&&e.autoplay.stop(),(0,r.Me)().removeEventListener("visibilitychange",e.autoplay.onVisibilityChange)}}}},16701:function(e,t,n){"use strict";var r=n(44672),a=n(97564),i=n(15752),o={lastScrollTime:(0,i.zO)(),lastEventBeforeSnap:void 0,recentWheelEvents:[],event:function(){return(0,r.Jj)().navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":!function(){var e=(0,r.Me)(),t="onwheel",n=t in e;if(!n){var a=e.createElement("div");a.setAttribute(t,"return;"),n="function"==typeof a[t]}return!n&&e.implementation&&e.implementation.hasFeature&&!0!==e.implementation.hasFeature("","")&&(n=e.implementation.hasFeature("Events.wheel","3.0")),n}()?"mousewheel":"wheel"},normalize:function(e){var t=0,n=0,r=0,a=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=10*t,a=10*n,"deltaY"in e&&(a=e.deltaY),"deltaX"in e&&(r=e.deltaX),e.shiftKey&&!r&&(r=a,a=0),(r||a)&&e.deltaMode&&(1===e.deltaMode?(r*=40,a*=40):(r*=800,a*=800)),r&&!t&&(t=r<1?-1:1),a&&!n&&(n=a<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:a}},handleMouseEnter:function(){this.enabled&&(this.mouseEntered=!0)},handleMouseLeave:function(){this.enabled&&(this.mouseEntered=!1)},handle:function(e){var t=e,n=this;if(n.enabled){var r=n.params.mousewheel;n.params.cssMode&&t.preventDefault();var l=n.$el;if("container"!==n.params.mousewheel.eventsTarget&&(l=(0,a.Z)(n.params.mousewheel.eventsTarget)),!n.mouseEntered&&!l[0].contains(t.target)&&!r.releaseOnEdges)return!0;t.originalEvent&&(t=t.originalEvent);var s=0,u=n.rtlTranslate?-1:1,d=o.normalize(t);if(r.forceToAxis){if(n.isHorizontal()){if(!(Math.abs(d.pixelX)>Math.abs(d.pixelY)))return!0;s=-d.pixelX*u}else{if(!(Math.abs(d.pixelY)>Math.abs(d.pixelX)))return!0;s=-d.pixelY}}else s=Math.abs(d.pixelX)>Math.abs(d.pixelY)?-d.pixelX*u:-d.pixelY;if(0===s)return!0;r.invert&&(s=-s);var c=n.getTranslate()+s*r.sensitivity;if(c>=n.minTranslate()&&(c=n.minTranslate()),c<=n.maxTranslate()&&(c=n.maxTranslate()),(n.params.loop||c!==n.minTranslate()&&c!==n.maxTranslate())&&n.params.nested&&t.stopPropagation(),n.params.freeMode){var p={time:(0,i.zO)(),delta:Math.abs(s),direction:Math.sign(s)},f=n.mousewheel.lastEventBeforeSnap,h=f&&p.time<f.time+500&&p.delta<=f.delta&&p.direction===f.direction;if(!h){n.mousewheel.lastEventBeforeSnap=void 0,n.params.loop&&n.loopFix();var m=n.getTranslate()+s*r.sensitivity,g=n.isBeginning,y=n.isEnd;if(m>=n.minTranslate()&&(m=n.minTranslate()),m<=n.maxTranslate()&&(m=n.maxTranslate()),n.setTransition(0),n.setTranslate(m),n.updateProgress(),n.updateActiveIndex(),n.updateSlidesClasses(),(!g&&n.isBeginning||!y&&n.isEnd)&&n.updateSlidesClasses(),n.params.freeModeSticky){clearTimeout(n.mousewheel.timeout),n.mousewheel.timeout=void 0;var v=n.mousewheel.recentWheelEvents;v.length>=15&&v.shift();var b=v.length?v[v.length-1]:void 0,x=v[0];if(v.push(p),b&&(p.delta>b.delta||p.direction!==b.direction))v.splice(0);else if(v.length>=15&&p.time-x.time<500&&x.delta-p.delta>=1&&p.delta<=6){var w=s>0?.8:.2;n.mousewheel.lastEventBeforeSnap=p,v.splice(0),n.mousewheel.timeout=(0,i.Y3)(function(){n.slideToClosest(n.params.speed,!0,void 0,w)},0)}n.mousewheel.timeout||(n.mousewheel.timeout=(0,i.Y3)(function(){n.mousewheel.lastEventBeforeSnap=p,v.splice(0),n.slideToClosest(n.params.speed,!0,void 0,.5)},500))}if(h||n.emit("scroll",t),n.params.autoplay&&n.params.autoplayDisableOnInteraction&&n.autoplay.stop(),m===n.minTranslate()||m===n.maxTranslate())return!0}}else{var k={time:(0,i.zO)(),delta:Math.abs(s),direction:Math.sign(s),raw:e},M=n.mousewheel.recentWheelEvents;M.length>=2&&M.shift();var C=M.length?M[M.length-1]:void 0;if(M.push(k),C?(k.direction!==C.direction||k.delta>C.delta||k.time>
1C.time+150)&&n.mousewheel.animateSlider(k):n.mousewheel.animateSlider(k),n.mousewheel.releaseScroll(k))return!0}return t.preventDefault?t.preventDefault():t.returnValue=!1,!1}},animateSlider:function(e){var t=(0,r.Jj)();return!(this.params.mousewheel.thresholdDelta&&e.delta<this.params.mousewheel.thresholdDelta||this.params.mousewheel.thresholdTime&&(0,i.zO)()-this.mousewheel.lastScrollTime<this.params.mousewheel.thresholdTime)&&(!!(e.delta>=6&&(0,i.zO)()-this.mousewheel.lastScrollTime<60)||(e.direction<0?this.isEnd&&!this.params.loop||this.animating||(this.slideNext(),this.emit("scroll",e.raw)):this.isBeginning&&!this.params.loop||this.animating||(this.slidePrev(),this.emit("scroll",e.raw)),this.mousewheel.lastScrollTime=new t.Date().getTime(),!1))},releaseScroll:function(e){var t=this.params.mousewheel;if(e.direction<0){if(this.isEnd&&!this.params.loop&&t.releaseOnEdges)return!0}else if(this.isBeginning&&!this.params.loop&&t.releaseOnEdges)return!0;return!1},enable:function(){var e=o.event();if(this.params.cssMode)return this.wrapperEl.removeEventListener(e,this.mousewheel.handle),!0;if(!e||this.mousewheel.enabled)return!1;var t=this.$el;return"container"!==this.params.mousewheel.eventsTarget&&(t=(0,a.Z)(this.params.mousewheel.eventsTarget)),t.on("mouseenter",this.mousewheel.handleMouseEnter),t.on("mouseleave",this.mousewheel.handleMouseLeave),t.on(e,this.mousewheel.handle),this.mousewheel.enabled=!0,!0},disable:function(){var e=o.event();if(this.params.cssMode)return this.wrapperEl.addEventListener(e,this.mousewheel.handle),!0;if(!e||!this.mousewheel.enabled)return!1;var t=this.$el;return"container"!==this.params.mousewheel.eventsTarget&&(t=(0,a.Z)(this.params.mousewheel.eventsTarget)),t.off(e,this.mousewheel.handle),this.mousewheel.enabled=!1,!0}};t.Z={name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null}},create:function(){(0,i.cR)(this,{mousewheel:{enabled:!1,lastScrollTime:(0,i.zO)(),lastEventBeforeSnap:void 0,recentWheelEvents:[],enable:o.enable,disable:o.disable,handle:o.handle,handleMouseEnter:o.handleMouseEnter,handleMouseLeave:o.handleMouseLeave,animateSlider:o.animateSlider,releaseScroll:o.releaseScroll}})},on:{init:function(e){!e.params.mousewheel.enabled&&e.params.cssMode&&e.mousewheel.disable(),e.params.mousewheel.enabled&&e.mousewheel.enable()},destroy:function(e){e.params.cssMode&&e.mousewheel.enable(),e.mousewheel.enabled&&e.mousewheel.disable()}}}},55795:function(e,t,n){"use strict";var r=n(97564),a=n(15752);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var o={update:function(){var e=this.rtl,t=this.params.pagination;if(t.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var n=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,i=this.pagination.$el,o=this.params.loop?Math.ceil((n-2*this.loopedSlides)/this.params.slidesPerGroup):this.snapGrid.length;if(this.params.loop?((l=Math.ceil((this.activeIndex-this.loopedSlides)/this.params.slidesPerGroup))>n-1-2*this.loopedSlides&&(l-=n-2*this.loopedSlides),l>o-1&&(l-=o),l<0&&"bullets"!==this.params.paginationType&&(l=o+l)):l=void 0!==this.snapIndex?this.snapIndex:this.activeIndex||0,"bullets"===t.type&&this.pagination.bullets&&this.pagination.bullets.length>0){var l,s,u,d,c=this.pagination.bullets;if(t.dynamicBullets&&(this.pagination.bulletSize=c.eq(0)[this.isHorizontal()?"outerWidth":"outerHeight"](!0),i.css(this.isHorizontal()?"width":"height",this.pagination.bulletSize*(t.dynamicMainBullets+4)+"px"),t.dynamicMainBullets>1&&void 0!==this.previousIndex&&(this.pagination.dynamicBulletIndex+=l-this.previousIndex,this.pagination.dynamicBulletIndex>t.dynamicMainBullets-1?this.pagination.dynamicBulletIndex=t.dynamicMainBullets-1:this.pagination.dynamicBulletIndex<0&&(this.pagination.dynamicBulletIndex=0)),d=((u=(s=l-this.pagination.dynamicBulletIndex)+(Math.min(c.length,t.dynamicMainBullets)-1))+s)/2),c.removeClass(t.bulletActiveClass+" "+t.bulletActiveClass+"-next "+t.bulletActiveClass+"-next-next "+t.bulletActiveClass+"-prev "+t.bulletActiveClass+"-prev-prev "+t.bulletActiveClass+"-main"),i.length>1)c.each(function(e){var n=(0,r.Z)(e),a=n.index();a===l&&n.addClass(t.bulletActiveClass),t.dynamicBullets&&(a>=s&&a<=u&&n.addClass(t.bulletActiveClass+"-main"),a===s&&n.prev().addClass(t.bulletActiveClass+"-prev").prev().addClass(t.bulletActiveClass+"-prev-prev"),a===u&&n.next().addClass(t.bulletActiveClass+"-next").next().addClass(t.bulletActiveClass+"-next-next"))});else{var p=c.eq(l),f=p.index();if(p.addClass(t.bulletActiveClass),t.dynamicBullets){for(var h=c.eq(s),m=c.eq(u),g=s;g<=u;g+=1)c.eq(g).addClass(t.bulletActiveClass+"-main");if(this.params.loop){if(f>=c.length-t.dynamicMainBullets){for(var y=t.dynamicMainBullets;y>=0;y-=1)c.eq(c.length-y).addClass(t.bulletActiveClass+"-main");c.eq(c.length-t.dynamicMainBullets-1).addClass(t.bulletActiveClass+"-prev")}else h.prev().addClass(t.bulletActiveClass+"-prev").prev().addClass(t.bulletActiveClass+"-prev-prev"),m.next().addClass(t.bulletActiveClass+"-next").next().addClass(t.bulletActiveClass+"-next-next")}else h.prev().addClass(t.bulletActiveClass+"-prev").prev().addClass(t.bulletActiveClass+"-prev-prev"),m.next().addClass(t.bulletActiveClass+"-next").next().addClass(t.bulletActiveClass+"-next-next")}}if(t.dynamicBullets){var v=Math.min(c.length,t.dynamicMainBullets+4),b=(this.pagination.bulletSize*v-this.pagination.bulletSize)/2-d*this.pagination.bulletSize;c.css(this.isHorizontal()?e?"right":"left":"top",b+"px")}}if("fraction"===t.type&&(i.find((0,a.Wc)(t.currentClass)).text(t.formatFractionCurrent(l+1)),i.find((0,a.Wc)(t.totalClass)).text(t.formatFractionTotal(o))),"progressbar"===t.type){x=t.progressbarOpposite?this.isHorizontal()?"vertical":"horizontal":this.isHorizontal()?"horizontal":"vertical";
1var x,w=(l+1)/o,k=1,M=1;"horizontal"===x?k=w:M=w,i.find((0,a.Wc)(t.progressbarFillClass)).transform("translate3d(0,0,0) scaleX("+k+") scaleY("+M+")").transition(this.params.speed)}"custom"===t.type&&t.renderCustom?(i.html(t.renderCustom(this,l+1,o)),this.emit("paginationRender",i[0])):this.emit("paginationUpdate",i[0]),this.params.watchOverflow&&this.enabled&&i[this.isLocked?"addClass":"removeClass"](t.lockClass)}},render:function(){var e=this.params.pagination;if(e.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var t=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,n=this.pagination.$el,r="";if("bullets"===e.type){var i=this.params.loop?Math.ceil((t-2*this.loopedSlides)/this.params.slidesPerGroup):this.snapGrid.length;this.params.freeMode&&!this.params.loop&&i>t&&(i=t);for(var o=0;o<i;o+=1)e.renderBullet?r+=e.renderBullet.call(this,o,e.bulletClass):r+="<"+e.bulletElement+' class="'+e.bulletClass+'"></'+e.bulletElement+">";n.html(r),this.pagination.bullets=n.find((0,a.Wc)(e.bulletClass))}"fraction"===e.type&&(r=e.renderFraction?e.renderFraction.call(this,e.currentClass,e.totalClass):'<span class="'+e.currentClass+'"></span> / <span class="'+e.totalClass+'"></span>',n.html(r)),"progressbar"===e.type&&(r=e.renderProgressbar?e.renderProgressbar.call(this,e.progressbarFillClass):'<span class="'+e.progressbarFillClass+'"></span>',n.html(r)),"custom"!==e.type&&this.emit("paginationRender",this.pagination.$el[0])}},init:function(){var e=this;e.params.pagination=(0,a.Up)(e.$el,e.params.pagination,e.params.createElements,{el:"swiper-pagination"});var t=e.params.pagination;if(t.el){var n=(0,r.Z)(t.el);0===n.length||(e.params.uniqueNavElements&&"string"==typeof t.el&&n.length>1&&(n=e.$el.find(t.el)),"bullets"===t.type&&t.clickable&&n.addClass(t.clickableClass),n.addClass(t.modifierClass+t.type),"bullets"===t.type&&t.dynamicBullets&&(n.addClass(""+t.modifierClass+t.type+"-dynamic"),e.pagination.dynamicBulletIndex=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&n.addClass(t.progressbarOppositeClass),t.clickable&&n.on("click",(0,a.Wc)(t.bulletClass),function(t){t.preventDefault();var n=(0,r.Z)(this).index()*e.params.slidesPerGroup;e.params.loop&&(n+=e.loopedSlides),e.slideTo(n)}),(0,a.l7)(e.pagination,{$el:n,el:n[0]}),e.enabled||n.addClass(t.lockClass))}},destroy:function(){var e=this.params.pagination;if(e.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var t=this.pagination.$el;t.removeClass(e.hiddenClass),t.removeClass(e.modifierClass+e.type),this.pagination.bullets&&this.pagination.bullets.removeClass(e.bulletActiveClass),e.clickable&&t.off("click",(0,a.Wc)(e.bulletClass))}}};t.Z={name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:function(e){return e},formatFractionTotal:function(e){return e},bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create:function(){(0,a.cR)(this,{pagination:i({dynamicBulletIndex:0},o)})},on:{init:function(e){e.pagination.init(),e.pagination.render(),e.pagination.update()},activeIndexChange:function(e){e.params.loop?e.pagination.update():void 0===e.snapIndex&&e.pagination.update()},snapIndexChange:function(e){e.params.loop||e.pagination.update()},slidesLengthChange:function(e){e.params.loop&&(e.pagination.render(),e.pagination.update())},snapGridLengthChange:function(e){e.params.loop||(e.pagination.render(),e.pagination.update())},destroy:function(e){e.pagination.destroy()},"enable disable":function(e){var t=e.pagination.$el;t&&t[e.enabled?"removeClass":"addClass"](e.params.pagination.lockClass)},click:function(e,t){var n=t.target;if(e.params.pagination.el&&e.params.pagination.hideOnClick&&e.pagination.$el.length>0&&!(0,r.Z)(n).hasClass(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&n===e.navigation.nextEl||e.navigation.prevEl&&n===e.navigation.prevEl))return;!0===e.pagination.$el.hasClass(e.params.pagination.hiddenClass)?e.emit("paginationShow"):e.emit("paginationHide"),e.pagination.$el.toggleClass(e.params.pagination.hiddenClass)}}}}},65949:function(e,t,n){"use strict";n.r(t),n.d(t,{__assign:function(){return i},__asyncDelegator:function(){return x},__asyncGenerator:function(){return b},__asyncValues:function(){return w},__await:function(){return v},__awaiter:function(){return d},__classPrivateFieldGet:function(){return j},__classPrivateFieldSet:function(){return T},__createBinding:function(){return p},__decorate:function(){return l},__exportStar:function(){return f},__extends:function(){return a},__generator:function(){return c},__importDefault:function(){return C},__importStar:function(){return M}
1,__makeTemplateObject:function(){return k},__metadata:function(){return u},__param:function(){return s},__read:function(){return m},__rest:function(){return o},__spread:function(){return g},__spreadArrays:function(){return y},__values:function(){return h}});var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function a(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)0>t.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function l(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function s(e,t){return function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function d(e,t,n,r){return new(n||(n=Promise))(function(a,i){function o(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?a(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,l)}s((r=r.apply(e,t||[])).next())})}function c(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===i[0]||2===i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){o.label=i[1];break}if(6===i[0]&&o.label<a[1]){o.label=a[1],a=i;break}
1if(a&&o.label<a[2]){o.label=a[2],o.ops.push(i);break}a[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],r=0}finally{n=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}function p(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}function f(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function h(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.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 m(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o}function g(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function y(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),a=0,t=0;t<n;t++)for(var i=arguments[t],o=0,l=i.length;o<l;o++,a++)r[a]=i[o];return r}function v(e){return this instanceof v?(this.v=e,this):new v(e)}function b(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,a=n.apply(e,t||[]),i=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(e){a[e]&&(r[e]=function(t){return new Promise(function(n,r){i.push([e,t,n,r])>1||l(e,t)})})}function l(e,t){try{var n;(n=a[e](t)).value instanceof v?Promise.resolve(n.value.v).then(s,u):d(i[0][2],n)}catch(e){d(i[0][3],e)}}function s(e){l("next",e)}function u(e){l("throw",e)}function d(e,t){e(t),i.shift(),i.length&&l(i[0][0],i[0][1])}}function x(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,a){t[r]=e[r]?function(t){return(n=!n)?{value:v(e[r](t)),done:"return"===r}:a?a(t):t}:a}}function w(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=h(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,a){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,a,(t=e[n](t)).done,t.value)})}}}function k(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function M(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function C(e){return e&&e.__esModule?e:{default:e}}function j(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}function T(e,t,n){if(!t.has(e))throw TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},5460:function(e,t,n){"use strict";var r=n(75271),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,o=r.useEffect,l=r.useLayoutEffect,s=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!a(e,n)}catch(e){return!0}}var d="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),a=r[0].inst,d=r[1];return l(function(){a.value=n,a.getSnapshot=t,u(a)&&d({inst:a})},[e,n,t]),o(function(){return u(a)&&d({inst:a}),e(function(){u(a)&&d({inst:a})})},[e]),s(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:d},59207:function(e,t,n){"use strict";e.exports=n(5460)},35453:function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}n.d(t,{Z:function(){return r}})},45173:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}n.d(t,{Z:function(){return r}})},58747:function(e,t,n){"use strict";n.d(t,{h:function(){return M}});var r=n(52676),a=()=>(0,r.jsxs)("svg",{"aria-hidden":"true",fill:"none",height:"80%",role:"presentation",viewBox:"0 0 24 24",width:"80%",children:[(0,r.jsx)("path",{d:"M12 2C9.38 2 7.25 4.13 7.25 6.75C7.25 9.32 9.26 11.4 11.88 11.49C11.96 11.48 12.04 11.48 12.1 11.49C12.12 11.49 12.13 11.49 12.15 11.49C12.16 11.49 12.16 11.49 12.17 11.49C14.73 11.4 16.74 9.32 16.75 6.75C16.75 4.13 14.62 2 12 2Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M17.0809 14.1489C14.2909 12.2889 9.74094 12.2889 6.93094 14.1489C5.66094 14.9989 4.96094 16.1489 4.96094 17.3789C4.96094 18.6089 5.66094 19.7489 6.92094 20.5889C8.32094 21.5289 10.1609 21.9989 12.0009 21.9989C13.8409 21.9989 15.6809 21.5289 17.0809 20.5889C18.3409 19.7389 19.0409 18.5989 19.0409 17.3589C19.0309 16.1289 18.3409 14.9889 17.0809 14.1489Z",fill:"currentColor"})]}),[i,o]=(0,n(95374).k)({name:"AvatarGroupContext",strict:!1}),l=n(84563),s=n(38946),u=n(91988),d=(0,s.tv)({slots:{base:["flex","relative","justify-center","items-center","box-border","overflow-hidden","align-middle","text-white","z-0",...u.Dh],img:["flex","object-cover","w-full","h-full","transition-opacity","!duration-500","opacity-0","data-[loaded=true]:opacity-100"],fallback:[...u.z6,"flex","items-center","justify-center"],name:[...u.z6,"font-normal","text-center","text-inherit"],icon:[...u.z6,"flex","items-center","justify-center","text-inherit","w-full","h-full"]},variants:{size:{sm:{base:"w-8 h-8 text-tiny"},md:{base:"w-10 h-10 text-tiny"},lg:{base:"w-14 h-14 text-small"}},color:{default:{base:l.J.solid.default},primary:{base:l.J.solid.primary},secondary:{base:l.J.solid.secondary},success:{base:l.J.solid.success},warning:{base:l.J.solid.warning},danger:{base:l.J.solid.danger}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"},full:{base:"rounded-full"}},isBordered:{true:{base:"ring-2 ring-offset-2 ring-offset-background dark:ring-offset-background-dark"}},isDisabled:{true:{base:"opacity-disabled"}},isInGroup:{true:{base:["-ms-2 data-[hover=true]:-translate-x-3 rtl:data-[hover=true]:translate-x-3 transition-transform","data-[focus-visible=true]:-translate-x-3 rtl:data-[focus-visible=true]:translate-x-3"]}},isInGridGroup:{true:{base:"m-0 data-[hover=true]:translate-x-0"}},disableAnimation:{true:{base:"transition-none",img:"transition-none"},false:{}}}
1,defaultVariants:{size:"md",color:"default",radius:"full"},compoundVariants:[{color:"default",isBordered:!0,class:{base:"ring-default"}},{color:"primary",isBordered:!0,class:{base:"ring-primary"}},{color:"secondary",isBordered:!0,class:{base:"ring-secondary"}},{color:"success",isBordered:!0,class:{base:"ring-success"}},{color:"warning",isBordered:!0,class:{base:"ring-warning"}},{color:"danger",isBordered:!0,class:{base:"ring-danger"}}]});(0,s.tv)({slots:{base:"flex items-center justify-center h-auto w-max",count:"hover:-translate-x-0"},variants:{isGrid:{true:"inline-grid grid-cols-4 gap-3"}}});var c=n(9785),p=n(49336),f=n(48824),h=n(7909),m=n(5421),g=n(85151),y=n(49975),v=n(75026),b=n(75271),x=n(29560),w=n(35794),k=(0,n(82664).Gp)((e,t)=>{let{Component:n,ImgComponent:i,src:l,icon:s=(0,r.jsx)(a,{}),alt:u,classNames:k,slots:M,name:C,showFallback:j,fallback:T,getInitials:E,getAvatarProps:_,getImageProps:P}=function(e={}){var t,n,r,a,i,l,s;let u=(0,c.w)(),k=o(),M=!!k,{as:C,ref:j,src:T,name:E,icon:_,classNames:P,fallback:S,alt:z=E||"avatar",imgRef:Z,color:A=null!=(t=null==k?void 0:k.color)?t:"default",radius:N=null!=(n=null==k?void 0:k.radius)?n:"full",size:I=null!=(r=null==k?void 0:k.size)?r:"md",isBordered:B=null!=(a=null==k?void 0:k.isBordered)&&a,isDisabled:O=null!=(i=null==k?void 0:k.isDisabled)&&i,isFocusable:L=!1,getInitials:R=m.e,ignoreFallback:D=!1,showFallback:H=!1,ImgComponent:W="img",imgProps:$,className:F,onError:V,...q}=e,X=C||"span",U=(0,f.gy)(j),G=(0,f.gy)(Z),{isFocusVisible:Y,isFocused:K,focusProps:J}=(0,v.F)(),{isHovered:Q,hoverProps:ee}=(0,w.X)({isDisabled:O}),et=null!=(s=null!=(l=e.disableAnimation)?l:null==u?void 0:u.disableAnimation)&&s,en="loaded"===(0,x.d)({src:T,onError:V,ignoreFallback:D}),er="string"==typeof W,ea=(!T||!en)&&H,ei=(0,b.useMemo)(()=>{var e;return d({color:A,radius:N,size:I,isBordered:B,isDisabled:O,isInGroup:M,disableAnimation:et,isInGridGroup:null!=(e=null==k?void 0:k.isGrid)&&e})},[A,N,I,B,O,et,M,null==k?void 0:k.isGrid]),eo=(0,g.W)(null==P?void 0:P.base,F),el=(0,b.useMemo)(()=>L||"button"===C,[L,C]),es=(0,b.useCallback)((e={})=>({ref:U,tabIndex:el?0:-1,"data-hover":(0,y.PB)(Q),"data-focus":(0,y.PB)(K),"data-focus-visible":(0,y.PB)(Y),className:ei.base({class:(0,g.W)(eo,null==e?void 0:e.className)}),...(0,p.d)(q,ee,el?J:{})}),[el,ei,eo,J,q]),eu=(0,b.useCallback)((e={})=>({ref:G,src:T,"data-loaded":(0,y.PB)(en),className:ei.img({class:null==P?void 0:P.img}),...(0,p.d)($,e,(0,h.z)({disableAnimation:et},{enabled:er}))}),[ei,en,$,et,T,G,er]);return{Component:X,ImgComponent:W,src:T,alt:z,icon:_,name:E,imgRef:G,slots:ei,classNames:P,fallback:S,isImgLoaded:en,showFallback:ea,ignoreFallback:D,getInitials:R,getAvatarProps:es,getImageProps:eu}}({...e,ref:t}),S=(0,b.useMemo)(()=>!j&&l?null:T?(0,r.jsx)("div",{"aria-label":u,className:M.fallback({class:null==k?void 0:k.fallback}),role:"img",children:T}):C?(0,r.jsx)("span",{"aria-label":u,className:M.name({class:null==k?void 0:k.name}),role:"img",children:E(C)}):(0,r.jsx)("span",{"aria-label":u,className:M.icon({class:null==k?void 0:k.icon}),role:"img",children:s}),[j,l,T,C,k]);return(0,r.jsxs)(n,{..._(),children:[l&&(0,r.jsx)(i,{...P(),alt:u}),S]})});k.displayName="NextUI.Avatar";var M=k},64969:function(e,t,n){"use strict";n.d(t,{w:function(){return C}});var r=n(5740),a=n(38946),i=n(91988),o=(0,a.tv)({slots:{base:["flex","flex-col","relative","overflow-hidden","h-auto","outline-none","text-foreground","box-border","bg-content1",...i.Dh],header:["flex","p-3","z-10","w-full","justify-start","items-center","shrink-0","overflow-inherit","color-inherit","subpixel-antialiased"],body:["relative","flex","flex-1","w-full","p-3","flex-auto","flex-col","place-content-inherit","align-items-inherit","h-auto","break-words","text-left","overflow-y-auto","subpixel-antialiased"],footer:["p-3","h-auto","flex","w-full","items-center","overflow-hidden","color-inherit","subpixel-antialiased"]},variants:{shadow:{none:{base:"shadow-none"},sm:{base:"shadow-small"},md:{base:"shadow-medium"},lg:{base:"shadow-large"}},radius:{none:{base:"rounded-none",header:"rounded-none",footer:"rounded-none"},sm:{base:"rounded-small",header:"rounded-t-small",footer:"rounded-b-small"},md:{base:"rounded-medium",header:"rounded-t-medium",footer:"rounded-b-medium"},lg:{base:"rounded-large",header:"rounded-t-large",footer:"rounded-b-large"}},fullWidth:{true:{base:"w-full"}},isHoverable:{true:{base:"data-[hover=true]:bg-content2 dark:data-[hover=true]:bg-content2"}},isPressable:{true:{base:"cursor-pointer"}},isBlurred:{true:{base:["bg-background/80","dark:bg-background/20","backdrop-blur-md","backdrop-saturate-150"]}}
1,isFooterBlurred:{true:{footer:["bg-background/10","backdrop-blur","backdrop-saturate-150"]}},isDisabled:{true:{base:"opacity-disabled cursor-not-allowed"}},disableAnimation:{true:"",false:{base:"transition-transform-background motion-reduce:transition-none"}}},compoundVariants:[{isPressable:!0,class:"data-[pressed=true]:scale-[0.97] tap-highlight-transparent"}],defaultVariants:{radius:"lg",shadow:"md",fullWidth:!1,isHoverable:!1,isPressable:!1,isDisabled:!1,isFooterBlurred:!1}}),l=n(75271),s=n(20805),u=n(49336),d=n(75026),c=n(35794),p=n(2909),f=n(9785),h=n(82664),m=n(85151),g=n(65052),y=n(49975),v=n(7909),b=n(48824),x=n(12985),w=n(81197),k=n(52676),M=(0,h.Gp)((e,t)=>{let{children:n,context:a,Component:i,isPressable:M,disableAnimation:C,disableRipple:j,getCardProps:T,getRippleProps:E}=function(e){var t,n,r,a;let i=(0,f.w)(),[w,k]=(0,h.oe)(e,o.variantKeys),{ref:M,as:C,children:j,onClick:T,onPress:E,autoFocus:_,className:P,classNames:S,allowTextSelectionOnPress:z=!0,...Z}=w,A=(0,b.gy)(M),N=C||(e.isPressable?"button":"div"),I="string"==typeof N,B=null!=(n=null!=(t=e.disableAnimation)?t:null==i?void 0:i.disableAnimation)&&n,O=null!=(a=null!=(r=e.disableRipple)?r:null==i?void 0:i.disableRipple)&&a,L=(0,m.W)(null==S?void 0:S.base,P),{onClick:R,onClear:D,ripples:H}=(0,x.i)(),W=e=>{B||O||!A.current||R(e)},{buttonProps:$,isPressed:F}=(0,p.j)({onPress:E,elementType:C,isDisabled:!e.isPressable,onClick:(0,s.t)(T,W),allowTextSelectionOnPress:z,...Z},A),{hoverProps:V,isHovered:q}=(0,c.X)({isDisabled:!e.isHoverable,...Z}),{isFocusVisible:X,isFocused:U,focusProps:G}=(0,d.F)({autoFocus:_}),Y=(0,l.useMemo)(()=>o({...k,disableAnimation:B}),[(0,g.Xx)(k),B]),K=(0,l.useMemo)(()=>({slots:Y,classNames:S,disableAnimation:B,isDisabled:e.isDisabled,isFooterBlurred:e.isFooterBlurred,fullWidth:e.fullWidth}),[Y,S,e.isDisabled,e.isFooterBlurred,B,e.fullWidth]),J=(0,l.useCallback)((t={})=>({ref:A,className:Y.base({class:L}),tabIndex:e.isPressable?0:-1,"data-hover":(0,y.PB)(q),"data-pressed":(0,y.PB)(F),"data-focus":(0,y.PB)(U),"data-focus-visible":(0,y.PB)(X),"data-disabled":(0,y.PB)(e.isDisabled),...(0,u.d)(e.isPressable?{...$,...G,role:"button"}:{},e.isHoverable?V:{},(0,v.z)(Z,{enabled:I}),(0,v.z)(t))}),[A,Y,L,I,e.isPressable,e.isHoverable,e.isDisabled,q,F,X,$,G,V,Z]),Q=(0,l.useCallback)(()=>({ripples:H,onClear:D}),[H,D]);return{context:K,domRef:A,Component:N,classNames:S,children:j,isHovered:q,isPressed:F,disableAnimation:B,isPressable:e.isPressable,isHoverable:e.isHoverable,disableRipple:O,handleClick:W,isFocusVisible:X,getCardProps:J,getRippleProps:Q}}({...e,ref:t});return(0,k.jsxs)(i,{...T(),children:[(0,k.jsx)(r.k,{value:a,children:n}),M&&!C&&!j&&(0,k.jsx)(w.L,{...E()})]})});M.displayName="NextUI.Card";var C=M},5740:function(e,t,n){"use strict";n.d(t,{R:function(){return a},k:function(){return r}});var[r,a]=(0,n(95374).k)({name:"CardContext",strict:!0,errorMessage:"useCardContext: `context` is undefined. Seems you forgot to wrap component within <Card />"})},71011:function(e,t,n){"use strict";n.d(t,{K:function(){return L}});var r=n(52676);function a(e){let{isSelected:t,disableAnimation:n,...a}=e;return(0,r.jsx)("svg",{"aria-hidden":"true",role:"presentation",viewBox:"0 0 17 18",...a,children:(0,r.jsx)("polyline",{fill:"none",points:"1 9 7 14 15 4",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,style:!n&&t?{transition:"stroke-dashoffset 250ms linear 0.2s"}:{}})})}function i(e){let{isSelected:t,disableAnimation:n,...a}=e;return(0,r.jsx)("svg",{stroke:"currentColor",strokeWidth:3,viewBox:"0 0 24 24",...a,children:(0,r.jsx)("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function o(e){let{isIndeterminate:t,...n}=e;return(0,r.jsx)(t?i:a,{...n})}var[l,s]=(0,n(95374).k)({name:"CheckboxGroupContext",strict:!1}),u=n(9785),d=n(75271),c=n(15063),p=n(38946),f=n(91988),h=(0,p.tv)({slots:{base:"group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2 select-none",wrapper:["relative","inline-flex","items-center","justify-center","flex-shrink-0","overflow-hidden","before:content-['']","before:absolute","before:inset-0","before:border-solid","before:border-2","before:box-border","before:border-default","after:content-['']","after:absolute","after:inset-0","after:scale-50","after:opacity-0","after:origin-center","group-data-[selected=true]:after:scale-100","group-data-[selected=true]:after:opacity-100","group-data-[hover=true]:before:bg-default-100",...f.ID],icon:"z-10 w-4 h-3 opacity-0 group-data-[selected=true]:opacity-100",label:"relative text-foreground select-none"},variants:{color:{default:{wrapper:"after:bg-default after:text-default-foreground text-default-foreground"},primary:{wrapper:"after:bg-primary after:text-primary-foreground text-primary-foreground"},secondary:{wrapper:"after:bg-secondary after:text-secondary-foreground text-secondary-foreground"},success:{wrapper:"after:bg-success after:text-success-foreground text-success-foreground"}
1,warning:{wrapper:"after:bg-warning after:text-warning-foreground text-warning-foreground"},danger:{wrapper:"after:bg-danger after:text-danger-foreground text-danger-foreground"}},size:{sm:{wrapper:["w-4 h-4 mr-2 rtl:ml-2 rtl:mr-[unset]","rounded-[calc(theme(borderRadius.medium)*0.5)]","before:rounded-[calc(theme(borderRadius.medium)*0.5)]","after:rounded-[calc(theme(borderRadius.medium)*0.5)]"],label:"text-small",icon:"w-3 h-2"},md:{wrapper:["w-5 h-5 mr-2 rtl:ml-2 rtl:mr-[unset]","rounded-[calc(theme(borderRadius.medium)*0.6)]","before:rounded-[calc(theme(borderRadius.medium)*0.6)]","after:rounded-[calc(theme(borderRadius.medium)*0.6)]"],label:"text-medium",icon:"w-4 h-3"},lg:{wrapper:["w-6 h-6 mr-2 rtl:ml-2 rtl:mr-[unset]","rounded-[calc(theme(borderRadius.medium)*0.7)]","before:rounded-[calc(theme(borderRadius.medium)*0.7)]","after:rounded-[calc(theme(borderRadius.medium)*0.7)]"],label:"text-large",icon:"w-5 h-4"}},radius:{none:{wrapper:"rounded-none before:rounded-none after:rounded-none"},sm:{wrapper:["rounded-[calc(theme(borderRadius.medium)*0.5)]","before:rounded-[calc(theme(borderRadius.medium)*0.5)]","after:rounded-[calc(theme(borderRadius.medium)*0.5)]"]},md:{wrapper:["rounded-[calc(theme(borderRadius.medium)*0.6)]","before:rounded-[calc(theme(borderRadius.medium)*0.6)]","after:rounded-[calc(theme(borderRadius.medium)*0.6)]"]},lg:{wrapper:["rounded-[calc(theme(borderRadius.medium)*0.7)]","before:rounded-[calc(theme(borderRadius.medium)*0.7)]","after:rounded-[calc(theme(borderRadius.medium)*0.7)]"]},full:{wrapper:"rounded-full before:rounded-full after:rounded-full"}},lineThrough:{true:{label:["inline-flex","items-center","justify-center","before:content-['']","before:absolute","before:bg-foreground","before:w-0","before:h-0.5","group-data-[selected=true]:opacity-60","group-data-[selected=true]:before:w-full"]}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isInvalid:{true:{wrapper:"before:border-danger",label:"text-danger"}},disableAnimation:{true:{wrapper:"transition-none",icon:"transition-none",label:"transition-none"},false:{wrapper:["before:transition-colors","group-data-[pressed=true]:scale-95","transition-transform","after:transition-transform-opacity","after:!ease-linear","after:!duration-200","motion-reduce:transition-none"],icon:"transition-opacity motion-reduce:transition-none",label:"transition-colors-opacity before:transition-width motion-reduce:transition-none"}}},defaultVariants:{color:"primary",size:"md",isDisabled:!1,lineThrough:!1}});(0,p.tv)({slots:{base:"relative flex flex-col gap-2",label:"relative text-medium text-foreground-500",wrapper:"flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",description:"text-small text-foreground-400",errorMessage:"text-small text-danger"},variants:{isRequired:{true:{label:"after:content-['*'] after:text-danger after:ml-0.5"}},isInvalid:{true:{description:"text-danger"}},disableAnimation:{true:{},false:{description:"transition-colors !duration-150 motion-reduce:transition-none"}}},defaultVariants:{isInvalid:!1,isRequired:!1}});var m=n(46263),g=n(71417),y=n(35794),v=n(75026),b=n(20805),x=n(49336),w=n(49975),k=n(69581),M=n(5421),C=n(85151),j=n(55088),T=n(21257),E=n(79868),_=n(41146),P=n(37690),S=n(59630);function z(e,t,n){let r=(0,T.Q3)({...e,value:t.isSelected}),{isInvalid:a,validationErrors:i,validationDetails:o}=r.displayValidation,{labelProps:l,inputProps:s,isSelected:u,isPressed:c,isDisabled:p,isReadOnly:f}=function(e,t,n){let{isDisabled:r=!1,isReadOnly:a=!1,value:i,name:o,children:l,"aria-label":s,"aria-labelledby":u,validationState:d="valid",isInvalid:c}=e;null!=l||null!=s||null!=u||console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:p,isPressed:f}=(0,g.r)({isDisabled:r}),{pressProps:h,isPressed:m}=(0,g.r)({isDisabled:r||a,onPress(){t.toggle()}}),{focusableProps:y}=(0,S.k)(e,n),v=(0,E.d)(p,y),b=(0,_.z)(e,{labelable:!0});return(0,P.y)(n,t.isSelected,t.setSelected),{labelProps:(0,E.d)(h,{onClick:e=>e.preventDefault()}),inputProps:(0,E.d)(b,{"aria-invalid":c||"invalid"===d||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":a||void 0,onChange:e=>{e.stopPropagation(),t.setSelected(e.target.checked)},disabled:r,...null==i?{}:{value:i},name:o,type:"checkbox",...v}),isSelected:t.isSelected,isPressed:f||m,isDisabled:r,isReadOnly:a,isInvalid:c||"invalid"===d}}({...e,isInvalid:a},t,n);(0,j.Q)(e,r,n);let{isIndeterminate:h,isRequired:m,validationBehavior:y="aria"}=e;return(0,d.useEffect)(()=>{n.current&&(n.current.indeterminate=!!h)}),{labelProps:l,inputProps:{...s,checked:u,"aria-required":m&&"aria"===y||void 0,required:m&&"native"===y},isSelected:u,isPressed:c,isDisabled:p,isReadOnly:f,isInvalid:a,validationErrors:i,validationDetail
1s:o}}let Z=new WeakMap;var A=n(43527),N=n(41081),I=n(82664),B=n(56211),O=(0,I.Gp)((e,t)=>{let{Component:n,children:a,icon:i=(0,r.jsx)(o,{}),getBaseProps:l,getWrapperProps:p,getInputProps:f,getIconProps:j,getLabelProps:E}=function(e={}){var t,n,r,a,i,o,l,p;let f=(0,u.w)(),j=s(),E=!!j,{as:_,ref:P,value:S="",children:I,icon:B,name:O,isRequired:L,isReadOnly:R=!1,autoFocus:D=!1,isSelected:H,size:W=null!=(t=null==j?void 0:j.size)?t:"md",color:$=null!=(n=null==j?void 0:j.color)?n:"primary",radius:F=null==j?void 0:j.radius,lineThrough:V=null!=(r=null==j?void 0:j.lineThrough)&&r,isDisabled:q=null!=(a=null==j?void 0:j.isDisabled)&&a,disableAnimation:X=null!=(o=null!=(i=null==j?void 0:j.disableAnimation)?i:null==f?void 0:f.disableAnimation)&&o,validationState:U,isInvalid:G=U?"invalid"===U:null!=(l=null==j?void 0:j.isInvalid)&&l,isIndeterminate:Y=!1,validationBehavior:K=null!=(p=null==j?void 0:j.validationBehavior)?p:"aria",defaultSelected:J,classNames:Q,className:ee,onValueChange:et,...en}=e;j&&w.Ts&&(H&&(0,k.Z)("The Checkbox.Group is being used, `isSelected` will be ignored. Use the `value` of the Checkbox.Group instead.","Checkbox"),J&&(0,k.Z)("The Checkbox.Group is being used, `defaultSelected` will be ignored. Use the `defaultValue` of the Checkbox.Group instead.","Checkbox"));let er=(0,d.useRef)(null),ea=(0,d.useRef)(null),ei=e.onChange;E&&(ei=(0,b.t)(()=>{j.groupState.resetValidation()},ei));let eo=(0,d.useId)(),el=(0,d.useMemo)(()=>({name:O,value:S,children:I,autoFocus:D,defaultSelected:J,validationBehavior:K,isIndeterminate:Y,isRequired:L,isInvalid:G,isSelected:H,isDisabled:q,isReadOnly:R,"aria-label":(0,M.x)(en["aria-label"],I),"aria-labelledby":en["aria-labelledby"]||eo,onChange:et}),[S,O,eo,I,D,G,Y,q,R,H,J,K,en["aria-label"],en["aria-labelledby"],et]),es=function(e={}){let{isReadOnly:t}=e,[n,r]=(0,c.z)(e.isSelected,e.defaultSelected||!1,e.onChange);return{isSelected:n,setSelected:function(e){t||r(e)},toggle:function(){t||r(!n)}}}(el),{inputProps:eu,isSelected:ed,isDisabled:ec,isReadOnly:ep,isPressed:ef}=E?function(e,t,n){var r,a;let i=function(e={}){let{isReadOnly:t}=e,[n,r]=(0,c.z)(e.isSelected,e.defaultSelected||!1,e.onChange);return{isSelected:n,setSelected:function(e){t||r(e)},toggle:function(){t||r(!n)}}}({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),onChange(n){n?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(n)}}),{name:o,descriptionId:l,errorMessageId:s,validationBehavior:u}=Z.get(t);u=null!==(r=e.validationBehavior)&&void 0!==r?r:u;let{realtimeValidation:p}=(0,T.Q3)({...e,value:i.isSelected,name:void 0,validationBehavior:"aria"}),f=(0,d.useRef)(T.PS),h=()=>{t.setInvalid(e.value,p.isInvalid?p:f.current)};(0,d.useEffect)(h);let m=t.realtimeValidation.isInvalid?t.realtimeValidation:p,g="native"===u?t.displayValidation:m,y=z({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||o,isRequired:null!==(a=e.isRequired)&&void 0!==a?a:t.isRequired,validationBehavior:u,[T.tL]:{realtimeValidation:m,displayValidation:g,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(e){f.current=e,h()}}},i,n);return{...y,inputProps:{...y.inputProps,"aria-describedby":[e["aria-describedby"],t.isInvalid?s:null,l].filter(
1Boolean).join(" ")||void 0}}}({...el},j.groupState,ea):z({...el},es,ea),eh=ec||ep,[em,eg]=(0,d.useState)(!1),{pressProps:ey}=(0,g.r)({isDisabled:eh,onPressStart(e){"keyboard"!==e.pointerType&&eg(!0)},onPressEnd(e){"keyboard"!==e.pointerType&&eg(!1)}}),ev=!eh&&(em||ef),{hoverProps:eb,isHovered:ex}=(0,y.X)({isDisabled:eu.disabled}),{focusProps:ew,isFocused:ek,isFocusVisible:eM}=(0,v.F)({autoFocus:eu.autoFocus}),eC=(0,d.useMemo)(()=>h({color:$,size:W,radius:F,isInvalid:G,lineThrough:V,isDisabled:ec,disableAnimation:X}),[$,W,F,G,V,ec,X]);(0,A.G)(()=>{if(!ea.current)return;let e=!!ea.current.checked;es.setSelected(e)},[ea.current]);let ej=(0,m.W)(ei),eT=(0,d.useCallback)(e=>{if(ep||ec){e.preventDefault();return}null==ej||ej(e)},[ep,ec,ej]),eE=(0,C.W)(null==Q?void 0:Q.base,ee),e_=(0,d.useCallback)(()=>({ref:er,className:eC.base({class:eE}),"data-disabled":(0,w.PB)(ec),"data-selected":(0,w.PB)(ed||Y),"data-invalid":(0,w.PB)(G),"data-hover":(0,w.PB)(ex),"data-focus":(0,w.PB)(ek),"data-pressed":(0,w.PB)(ev),"data-readonly":(0,w.PB)(eu.readOnly),"data-focus-visible":(0,w.PB)(eM),"data-indeterminate":(0,w.PB)(Y),...(0,x.d)(eb,ey,en)}),[eC,eE,ec,ed,Y,G,ex,ek,ev,eu.readOnly,eM,eb,ey,en]),eP=(0,d.useCallback)((e={})=>({...e,"aria-hidden":!0,className:(0,C.W)(eC.wrapper({class:(0,C.W)(null==Q?void 0:Q.wrapper,null==e?void 0:e.className)}))}),[eC,null==Q?void 0:Q.wrapper]),eS=(0,d.useCallback)(()=>({ref:(0,N.l)(ea,P),...(0,x.d)(eu,ew),onChange:(0,b.t)(eu.onChange,eT)}),[eu,ew,eT]),ez=(0,d.useCallback)(()=>({id:eo,className:eC.label({class:null==Q?void 0:Q.label})}),[eC,null==Q?void 0:Q.label,ec,ed,G]),eZ=(0,d.useCallback)(()=>({isSelected:ed,isIndeterminate:Y,disableAnimation:X,className:eC.icon({class:null==Q?void 0:Q.icon})}),[eC,null==Q?void 0:Q.icon,ed,Y,X]);return{Component:_||"label",icon:B,children:I,isSelected:ed,isDisabled:ec,isInvalid:G,isFocused:ek,isHovered:ex,isFocusVisible:eM,getBaseProps:e_,getWrapperProps:eP,getInputProps:eS,getLabelProps:ez,getIconProps:eZ}}({...e,ref:t}),_="function"==typeof i?i(j()):(0,d.cloneElement)(i,j());return(0,r.jsxs)(n,{...l(),children:[(0,r.jsx)(B.T,{elementType:"span",children:(0,r.jsx)("input",{...f()})}),(0,r.jsx)("span",{...p(),children:_}),a&&(0,r.jsx)("span",{...E(),children:a})]})});O.displayName="NextUI.Checkbox";var L=O},17938:function(e,t,n){"use strict";n.d(t,{Y:function(){return B}});var r=n(9785),a=n(82664),i=n(43527),o=n(75026),l=n(38946),s=n(91988),u=(0,l.tv)({slots:{base:"group flex flex-col data-[hidden=true]:hidden",label:["absolute","z-10","pointer-events-none","origin-top-left","rtl:origin-top-right","subpixel-antialiased","block","text-small","text-foreground-500"],mainWrapper:"h-full",inputWrapper:"relative w-full inline-flex tap-highlight-transparent flex-row items-center shadow-sm px-3 gap-3",innerWrapper:"inline-flex w-full items-center h-full box-border",input:["w-full font-normal bg-transparent !outline-none placeholder:text-foreground-500 focus-visible:outline-none","data-[has-start-content=true]:ps-1.5","data-[has-end-content=true]:pe-1.5","file:cursor-pointer file:bg-transparent file:border-0","autofill:bg-transparent bg-clip-text"],clearButton:["p-2","-m-2","z-10","hidden","absolute","end-3","start-auto","appearance-none","outline-none","select-none","opacity-0","hover:!opacity-100","cursor-pointer","active:!opacity-70","rounded-full",...s.Dh],helperWrapper:"hidden group-data-[has-helper=true]:flex p-1 relative flex-col gap-1.5",description:"text-tiny text-foreground-400",errorMessage:"text-tiny text-danger"},variants:{variant:{flat:{inputWrapper:["bg-default-100","data-[hover=true]:bg-default-200","group-data-[focus=true]:bg-default-100"]},faded:{inputWrapper:["bg-default-100","border-medium","border-default-200","data-[hover=true]:border-default-400"],value:"group-data-[has-value=true]:text-default-foreground"},bordered:{inputWrapper:["border-medium","border-default-200","data-[hover=true]:border-default-400","group-data-[focus=true]:border-default-foreground"]},underlined:{inputWrapper:["!px-1","!pb-0","!gap-0","relative","box-border","border-b-medium","shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]","border-default-200","!rounded-none","hover:border-default-300","after:content-['']","after:w-0","after:origin-center","after:bg-default-foreground","after:absolute","after:left-1/2","after:-translate-x-1/2","after:-bottom-[2px]","after:h-[2px]","group-data-[focus=true]:after:w-full"],innerWrapper:"pb-1",label:"group-data-[filled-within=true]:text-foreground"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{label:"text-tiny",inputWrapper:"h-8 min-h-8 px-2 rounded-small",input:"text-small",clearButton:"text-medium"},md:{inputWrapper:"h-10 min-h-10 rounded-medium",input:"text-small",clearButton:"text-large"},lg:{inputWrapper:"h-12 min-h-12 rounded-large",input:"text-medium",clearButton:"text-large"}},radius:{none:{inputWrapper:"rounded-none"},sm:{inputWrapper:"rounded-small"},md:{inputWrapper:"rounded-medium"},lg:{inputWrapper:"rounded-large"},full:{inputWrapper:"rounded-full"}},labelPlacement:{outside:{mainWrapper:"flex flex-col"},"outside-left":{base:"flex-row items-center flex-nowrap data-[has-helper=true]:items-start",inputWrapper:"flex-1",mainWrapper:"flex flex-col",label:"relative text-foreground pe-2 ps-2 pointer-events-auto"},inside:{label:"text-tiny cursor-text",inputWrapper:"flex-col items-start justify-center gap-0",innerWrapper:"group-data-[has-label=true]:items-end"}},fullWidth:{true:{base:"w-full"}},isClearable:{true:{input:"peer pr-6 rtl:pr-0 rtl:pl-6",clearButton:"peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none",inputWrapper:"pointer-events-none",label:"pointer-events-none"}},isInvalid:{true:{label:"!text-danger",input:"!placeholder:text-danger !text-danger"}},isRequired:{true:{label:"after:content-['*'] after:text-danger after:ml-0.5 rtl:after:ml-[unset] rtl:after:mr-0.5"}},isMultiline:{true:{label:"relative",inputWrapper:"!h-auto",innerWrapper:"items-start group-data-[has-label=true]:items-start",input:"resize-none data-[hide-scroll=true]:scrollbar-hide"}},disableAnimation:{true:{input:"transition-none",inputWrapper:"transition-none",label:"transition-none"},false:{inputWrapper:"transition-background motion-reduce:transition-none !duration-150",label:["will-change-auto","!duration-200","!ease-out","motion-reduce:transition-none","transition-[transform,color,left,opacity]"],clearButton:["transition-opacity","motion-reduce:transition-none"]}}},defaultVariants:{variant:"flat",color:"default",size:"md",fullWidth:!0,labelPlacement:"inside",isDisabled:!1,isMultiline:!1},compoundVariants:[{variant:"flat",color:"default",class:{input:"group-data-[has-value=true]:text-default-foreground"}},{variant:"flat",color:"primary",class:{inputWrapper:["bg-primary-50","data-[hover=true]:bg-primary-100","text-primary","group-data-[focus=true]:bg-primary-50","placeholder:text-primary"],input:"placeholder:text-primary",label:"text-primary"}},{variant:"flat",color:"secondary",class:{inputWrapper:["bg-secondary-50","text-secondary","data-[hover=true]:bg-secondary-100","group-data-[focus=true]:bg-secondary-50","placeholder:text-secondary"],input:"placeholder:text-secondary",label:"text-secondary"}},{variant:"flat",color:"success",class:{inputWrapper:["bg-success-50","text-success-600","dark:text-success","placeholder:text-success-600","dark:placeholder:text-success","data-[hover=true]:bg-success-100","group-data-[focus=true]:bg-success-50"],input:"placeholder:text-success-600 dark:placeholder:text-success",label:"text-success-600 dark:text-success"}},{variant:"flat",color:"warning",class:{inputWrapper:["bg-warning-50","text-warning-600","dark:text-warning","placeholder:text-warning-600","dark:placeholder:text-warning","data-[hover=true]:bg-warning-100","group-data-[focus=true]:bg-warning-50"],input:"placeholder:text-warning-600 dar
1k:placeholder:text-warning",label:"text-warning-600 dark:text-warning"}},{variant:"flat",color:"danger",class:{inputWrapper:["bg-danger-50","text-danger","dark:text-danger-500","placeholder:text-danger","dark:placeholder:text-danger-500","data-[hover=true]:bg-danger-100","group-data-[focus=true]:bg-danger-50"],input:"placeholder:text-danger dark:placeholder:text-danger-500",label:"text-danger dark:text-danger-500"}},{variant:"faded",color:"primary",class:{label:"text-primary",inputWrapper:"data-[hover=true]:border-primary focus-within:border-primary"}},{variant:"faded",color:"secondary",class:{label:"text-secondary",inputWrapper:"data-[hover=true]:border-secondary focus-within:border-secondary"}},{variant:"faded",color:"success",class:{label:"text-success",inputWrapper:"data-[hover=true]:border-success focus-within:border-success"}},{variant:"faded",color:"warning",class:{label:"text-warning",inputWrapper:"data-[hover=true]:border-warning focus-within:border-warning"}},{variant:"faded",color:"danger",class:{label:"text-danger",inputWrapper:"data-[hover=true]:border-danger focus-within:border-danger"}},{variant:"underlined",color:"default",class:{input:"group-data-[has-value=true]:text-foreground"}},{variant:"underlined",color:"primary",class:{inputWrapper:"after:bg-primary",label:"text-primary"}},{variant:"underlined",color:"secondary",class:{inputWrapper:"after:bg-secondary",label:"text-secondary"}},{variant:"underlined",color:"success",class:{inputWrapper:"after:bg-success",label:"text-success"}},{variant:"underlined",color:"warning",class:{inputWrapper:"after:bg-warning",label:"text-warning"}},{variant:"underlined",color:"danger",class:{inputWrapper:"after:bg-danger",label:"text-danger"}},{variant:"bordered",color:"primary",class:{inputWrapper:"group-data-[focus=true]:border-primary",label:"text-primary"}},{variant:"bordered",color:"secondary",class:{inputWrapper:"group-data-[focus=true]:border-secondary",label:"text-secondary"}},{variant:"bordered",color:"success",class:{inputWrapper:"group-data-[focus=true]:border-success",label:"text-success"}},{variant:"bordered",color:"warning",class:{inputWrapper:"group-data-[focus=true]:border-warning",label:"text-warning"}},{variant:"bordered",color:"danger",class:{inputWrapper:"group-data-[focus=true]:border-danger",label:"text-danger"}},{labelPlacement:"inside",color:"default",class:{label:"group-data-[filled-within=true]:text-default-600"}},{labelPlacement:"outside",color:"default",class:{label:"group-data-[filled-within=true]:text-foreground"}},{radius:"full",size:["sm"],class:{inputWrapper:"px-3"}},{radius:"full",size:"md",class:{inputWrapper:"px-4"}},{radius:"full",size:"lg",class:{inputWrapper:"px-5"}},{disableAnimation:!1,variant:["faded","bordered"],class:{inputWrapper:"transition-colors motion-reduce:transition-none"}},{disableAnimation:!1,variant:"underlined",class:{inputWrapper:"after:transition-width motion-reduce:after:transition-none"}},{variant:["flat","faded"],class:{inputWrapper:[...s.ID]}},{isInvalid:!0,variant:"flat",class:{inputWrapper:["!bg-danger-50","data-[hover=true]:!bg-danger-100","group-data-[focus=true]:!bg-danger-50"]}},{isInvalid:!0,variant:"bordered",class:{inputWrapper:"!border-danger group-data-[focus=true]:!border-danger"}},{isInvalid:!0,variant:"underlined",class:{inputWrapper:"after:!bg-danger"}},{labelPlacement:"inside",size:"sm",class:{inputWrapper:"h-12 py-1.5 px-3"}},{labelPlacement:"inside",size:"md",class:{inputWrapper:"h-14 py-2"}},{labelPlacement:"inside",size:"lg",class:{label:"text-small",inputWrapper:"h-16 py-2.5 gap-0"}},{labelPlacement:"inside",size:"sm",variant:["bordered","faded"],class:{inputWrapper:"py-1"}},{labelPlacement:["inside","outside"],class:{label:["group-data-[filled-within=true]:pointer-events-auto"]}},{labelPlacement:"outside",isMultiline:!1,class:{base:"relative justify-end",label:["pb-0","z-20","top-1/2","-translate-y-1/2","group-data-[filled-within=true]:start-0"]}},{labelPlacement:["inside"],class:{label:["group-data-[filled-within=true]:scale-85"]}},{labelPlacement:["inside"],variant:"flat",class:{innerWrapper:"pb-0.5"}},{variant:"underlined",size:"sm",class:{innerWrapper:"pb-1"}},{variant:"underlined",size:["md","lg"],class:{innerWrapper:"pb-1.5"}},{labelPlacement:"inside",size:["sm","md"],class:{label:"text-small"}},{labelPlacement:"inside",isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px)]"]}},{labelPlacement:"inside",isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px)]"]}},{labelPlacement:"inside",isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px)]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_5px)]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_3.5px)]"]}},{labelPlacement:"inside",variant:"underlined",size:"lg",isMultiline:!1,class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"]}},{labelPlacement:"outside",size:"sm",isMultiline:!1,class:{label:["start-2","text-tiny","group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_8px)]"}},{labelPlacement:"outside",size:"md",isMultiline:!1,class:{label:["start-3","end-auto","text-small","group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_10px)]"}},{labelPlacement:"outside",size:"lg",isMultiline:!1,class:{label:["start-3","end-auto","text-medium","group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_12px)]"}},{labelPlacement:"outside-left",size:"sm",class:{label:"group-data-[has-helper=true]:pt-2"}},{labelPlacement:"outside-left",size:"md",class:{label:"group-data-[has-helper=true]:pt-3"}},{labelPlacement:"outside-left",size:"lg",class:{label:"group-data-[has-helper=true]:pt-4"}},{labelPlacement:["outside","outside-left"],isMultiline:!0,class:{inputWrapper:"py-2"}},{labelPlacement:"outside",isMultiline:!0,class:{label:"pb-1.5"}},{labelPlacement:"inside",isMultiline:!0,class:{label:"pb-0.5",input:"pt-0"}},{isMultiline:!0,disableAnimation:!1,class:{input:"transition-height !duration-100 motion-reduce:transition-none"}},{labelPlacement:["inside","outside"],class:{label:["pe-2","max-w-full","text-ellipsis","overflow-hidden"]}},{isMultiline:!0,radius:"full",class:{inputWrapper:"data-[has-multiple-rows=true]:rounded-large"}}]}),d=n(48824),c=n(7909),p=n(35794),f=n(93156),h=n(71417),m=n(49975),g=n(85151),y=n(5421),v=n(69581),b=n(65052),x=n(7292),w=n(75271),k=n(49336),M=n(20805),C=n(41146),j=n(37690),T=n(37867),E=n(79868),_=n(15063),P=n(58370),S=n(59630),z=n(55088),Z=n(21257),A=n(52676),N=e=>(0,A.jsx)("svg",{"aria-hidden":"true",focusable:"false",height:"1em",role:"presentation",viewBox:"0 0 24 24",width:"1em",...e,children:(0,A.jsx)("path",{d:"M12 2a10 10 0 1010 10A10.016 10.016 0 0012 2zm3.36 12.3a.754.754 0 010 1.06.748.748 0 01-1.06 0l-2.3-2.3-2.3 2.3a.748.748 0 01-1.06 0 .754.754 0 010-1.06l2.3-2.3-2.3-2.3A.75.75 0 019.7 8.64l2.3 2.3 2.3-2.3a.75.75 0 011.06 1.06l-2.3 2.3z",fill:"
1currentColor"})}),I=(0,a.Gp)((e,t)=>{let{Component:n,label:l,description:s,isClearable:I,startContent:B,endContent:O,labelPlacement:L,hasHelper:R,isOutsideLeft:D,shouldLabelBeOutside:H,errorMessage:W,isInvalid:$,getBaseProps:F,getLabelProps:V,getInputProps:q,getInnerWrapperProps:X,getInputWrapperProps:U,getMainWrapperProps:G,getHelperWrapperProps:Y,getDescriptionProps:K,getErrorMessageProps:J,getClearButtonProps:Q}=function(e){var t,n,l,s;let A=(0,r.w)(),[N,I]=(0,a.oe)(e,u.variantKeys),{ref:B,as:O,type:L,label:R,baseRef:D,wrapperRef:H,description:W,className:$,classNames:F,autoFocus:V,startContent:q,endContent:X,onClear:U,onChange:G,validationState:Y,validationBehavior:K=null!=(t=null==A?void 0:A.validationBehavior)?t:"aria",innerWrapperRef:J,onValueChange:Q=()=>{},...ee}=N,et=(0,w.useCallback)(e=>{Q(null!=e?e:"")},[Q]),[en,er]=(0,w.useState)(!1),ea=null!=(l=null!=(n=e.disableAnimation)?n:null==A?void 0:A.disableAnimation)&&l,ei=(0,d.gy)(B),eo=(0,d.gy)(D),el=(0,d.gy)(H),es=(0,d.gy)(J),[eu,ed]=(0,x.z)(N.value,null!=(s=N.defaultValue)?s:"",et),ec=["date","time","month","week","range"].includes(L),ep=!(0,m.xb)(eu)||ec,ef=ep||en,eh="hidden"===L,em=e.isMultiline,eg="file"===L,ey=(0,g.W)(null==F?void 0:F.base,$,ep?"is-filled":""),ev=(0,w.useCallback)(()=>{var e;ed(""),null==U||U(),null==(e=ei.current)||e.focus()},[ed,U]);(0,i.G)(()=>{ei.current&&ed(ei.current.value)},[ei.current]);let{labelProps:eb,inputProps:ex,isInvalid:ew,validationErrors:ek,validationDetails:eM,descriptionProps:eC,errorMessageProps:ej}=function(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:a=!1,isReadOnly:i=!1,type:o="text",validationBehavior:l="aria"}=e,[s,u]=(0,_.z)(e.value,e.defaultValue||"",e.onChange),{focusableProps:d}=(0,S.k)(e,t),c=(0,Z.Q3)({...e,value:s}),{isInvalid:p,validationErrors:f,validationDetails:h}=c.displayValidation,{labelProps:m,fieldProps:g,descriptionProps:y,errorMessageProps:v}=(0,P.U)({...e,isInvalid:p,errorMessage:e.errorMessage||f}),b=(0,C.z)(e,{labelable:!0}),x={type:o,pattern:e.pattern};return(0,j.y)(t,s,u),(0,z.Q)(e,c,t),(0,w.useEffect)(()=>{if(t.current instanceof(0,T.k)(t.current).HTMLTextAreaElement){let e=t.current;Object.defineProperty(e,"defaultValue",{get:()=>e.value,set:()=>{},configurable:!0})}},[t]),{labelProps:m,inputProps:(0,E.d)(b,"input"===n&&x,{disabled:r,readOnly:i,required:a&&"native"===l,"aria-required":a&&"aria"===l||void 0,"aria-invalid":p||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:s,onChange:e=>u(e.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...d,...g}),descriptionProps:y,errorMessageProps:v,isInvalid:p,validationErrors:f,validationDetails:h}}({...e,validationBehavior:K,autoCapitalize:e.autoCapitalize,value:eu,"aria-label":(0,y.x)(e["aria-label"],e.label,e.placeholder),inputElementType:em?"textarea":"input",onChange:ed},ei);eg&&(delete ex.value,delete ex.onChange);let{isFocusVisible:eT,isFocused:eE,focusProps:e_}=(0,o.F)({autoFocus:V,isTextInput:!0}),{isHovered:eP,hoverProps:eS}=(0,p.X)({isDisabled:!!(null==e?void 0:e.isDisabled)}),{isHovered:ez,hoverProps:eZ}=(0,p.X)({isDisabled:!!(null==e?void 0:e.isDisabled)}),{focusProps:eA,isFocusVisible:eN}=(0,o.F)(),{focusWithinProps:eI}=(0,f.L)({onFocusWithinChange:er}),{pressProps:eB}=(0,h.r)({isDisabled:!!(null==e?void 0:e.isDisabled)||!!(null==e?void 0:e.isReadOnly),onPress:ev}),eO="invalid"===Y||e.isInvalid||ew,eL=(0,w.useMemo)(()=>{var t;if(eg){if(!e.labelPlacement)return"outside";if("inside"===e.labelPlacement)return(0,v.Z)("Input with file type doesn't support inside label. Converting to outside ..."),"outside"}return e.labelPlacement&&"inside"!==e.labelPlacement||R?null!=(t=e.labelPlacement)?t:"inside":"outside"},[e.labelPlacement,R]),eR="function"==typeof N.errorMessage?N.errorMessage({isInvalid:eO,validationErrors:ek,validationDetail
1s:eM}):N.errorMessage||(null==ek?void 0:ek.join(" ")),eD=!!U||e.isClearable,eH=!!R||!!W||!!eR,eW=!!N.placeholder,e$=!!R,eF=!!W||!!eR,eV="outside"===eL||"outside-left"===eL,eq="inside"===eL,eX=!!ei.current&&(!ei.current.value||""===ei.current.value||!eu||""===eu)&&eW,eU="outside-left"===eL,eG=!!q,eY=!!eV&&("outside-left"===eL||eW||"outside"===eL&&eG),eK="outside"===eL&&!eW&&!eG,eJ=(0,w.useMemo)(()=>u({...I,isInvalid:eO,labelPlacement:eL,isClearable:eD,disableAnimation:ea}),[(0,b.Xx)(I),eO,eL,eD,eG,ea]),eQ=(0,w.useCallback)((t={})=>({ref:eo,className:eJ.base({class:ey}),"data-slot":"base","data-filled":(0,m.PB)(ep||eW||eG||eX||eg),"data-filled-within":(0,m.PB)(ef||eW||eG||eX||eg),"data-focus-within":(0,m.PB)(en),"data-focus-visible":(0,m.PB)(eT),"data-readonly":(0,m.PB)(e.isReadOnly),"data-focus":(0,m.PB)(eE),"data-hover":(0,m.PB)(eP||ez),"data-required":(0,m.PB)(e.isRequired),"data-invalid":(0,m.PB)(eO),"data-disabled":(0,m.PB)(e.isDisabled),"data-has-elements":(0,m.PB)(eH),"data-has-helper":(0,m.PB)(eF),"data-has-label":(0,m.PB)(e$),"data-has-value":(0,m.PB)(!eX),"data-hidden":(0,m.PB)(eh),...eI,...t}),[eJ,ey,ep,eE,eP,ez,eO,eF,e$,eH,eX,eG,en,eT,ef,eW,eI,eh,e.isReadOnly,e.isRequired,e.isDisabled]),e0=(0,w.useCallback)((e={})=>({"data-slot":"label",className:eJ.label({class:null==F?void 0:F.label}),...(0,k.d)(eb,eZ,e)}),[eJ,ez,eb,null==F?void 0:F.label]),e1=(0,w.useCallback)((t={})=>({ref:ei,"data-slot":"input","data-filled":(0,m.PB)(ep),"data-filled-within":(0,m.PB)(ef),"data-has-start-content":(0,m.PB)(eG),"data-has-end-content":(0,m.PB)(!!X),className:eJ.input({class:(0,g.W)(null==F?void 0:F.input,ep?"is-filled":"")}),...(0,k.d)(e_,ex,(0,c.z)(ee,{enabled:!0,labelable:!0,omitEventNames:new Set(Object.keys(ex))}),t),"aria-readonly":(0,m.PB)(e.isReadOnly),onChange:(0,M.t)(ex.onChange,G)}),[eJ,eu,e_,ex,ee,ep,ef,eG,X,null==F?void 0:F.input,e.isReadOnly,e.isRequired,G]),e2=(0,w.useCallback)((e={})=>({ref:el,"data-slot":"input-wrapper","data-hover":(0,m.PB)(eP||ez),"data-focus-visible":(0,m.PB)(eT),"data-focus":(0,m.PB)(eE),className:eJ.inputWrapper({class:(0,g.W)(null==F?void 0:F.inputWrapper,ep?"is-filled":"")}),...(0,k.d)(e,eS),onClick:e=>{ei.current&&e.currentTarget===e.target&&ei.current.focus()},style:{cursor:"text",...e.style}}),[eJ,eP,ez,eT,eE,eu,null==F?void 0:F.inputWrapper]),e5=(0,w.useCallback)((e={})=>({...e,ref:es,"data-slot":"inner-wrapper",onClick:e=>{ei.current&&e.currentTarget===e.target&&ei.current.focus()},className:eJ.innerWrapper({class:(0,g.W)(null==F?void 0:F.innerWrapper,null==e?void 0:e.className)})}),[eJ,null==F?void 0:F.innerWrapper]),e4=(0,w.useCallback)((e={})=>({...e,"data-slot":"main-wrapper",className:eJ.mainWrapper({class:(0,g.W)(null==F?void 0:F.mainWrapper,null==e?void 0:e.className)})}),[eJ,null==F?void 0:F.mainWrapper]),e6=(0,w.useCallback)((e={})=>({...e,"data-slot":"helper-wrapper",className:eJ.helperWrapper({class:(0,g.W)(null==F?void 0:F.helperWrapper,null==e?void 0:e.className)})}),[eJ,null==F?void 0:F.helperWrapper]),e3=(0,w.useCallback)((e={})=>({...e,...eC,"data-slot":"description",className:eJ.description({class:(0,g.W)(null==F?void 0:F.description,null==e?void 0:e.className)})}),[eJ,null==F?void 0:F.description]),e8=(0,w.useCallback)((e={})=>({...e,...ej,"data-slot":"error-message",className:eJ.errorMessage({class:(0,g.W)(null==F?void 0:F.errorMessage,null==e?void 0:e.className)})}),[eJ,ej,null==F?void 0:F.errorMessage]),e7=(0,w.useCallback)((e={})=>({...e,role:"button",tabIndex:0,"aria-label":"clear input","data-slot":"clear-button","data-focus-visible":(0,m.PB)(eN),className:eJ.clearButton({class:(0,g.W)(null==F?void 0:F.clearButton,null==e?void 0:e.className)}),...(0,k.d)(eB,eA)}),[eJ,eN,eB,eA,null==F?void 0:F.clearButton]);return{Component:O||"div",classNames:F,domRef:ei,label:R,description:W,startContent:q,endContent:X,labelPlacement:eL,isClearable:eD,hasHelper:eF,hasStartContent:eG,isLabelOutside:eY,isOutsideLeft:eU,isLabelOutsideAsPlaceholder:eK,shouldLabelBeOutside:eV,shouldLabelBeInside:eq,hasPlaceholder:eW,isInvalid:eO,errorMessage:eR,getBaseProps:eQ,getLabelProps:e0,getInputProps:e1,getMainWrapperProps:e4,getInputWrapperProps:e2,getInnerWrapperProps:e5,getHelperWrapperProps:e6,getDescriptionProps:e3,getErrorMessageProps:e8,getClearButtonProps:e7}
1}({...e,ref:t}),ee=l?(0,A.jsx)("label",{...V(),children:l}):null,et=(0,w.useMemo)(()=>I?(0,A.jsx)("span",{...Q(),children:O||(0,A.jsx)(N,{})}):O,[I,Q]),en=(0,w.useMemo)(()=>R?(0,A.jsx)("div",{...Y(),children:$&&W?(0,A.jsx)("div",{...J(),children:W}):s?(0,A.jsx)("div",{...K(),children:s}):null}):null,[R,$,W,s,Y,J,K]),er=(0,w.useMemo)(()=>(0,A.jsxs)("div",{...X(),children:[B,(0,A.jsx)("input",{...q()}),et]}),[B,et,q,X]),ea=(0,w.useMemo)(()=>H?(0,A.jsxs)("div",{...G(),children:[(0,A.jsxs)("div",{...U(),children:[D?null:ee,er]}),en]}):(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)("div",{...U(),children:[ee,er]}),en]}),[L,en,H,ee,er,W,s,G,U,J,K]);return(0,A.jsxs)(n,{...F(),children:[D?ee:null,ea]})});I.displayName="NextUI.Input";var B=I},25254:function(e,t,n){"use strict";n.d(t,{O:function(){return w}});var r=n(38946),a=n(91988),i=(0,r.tv)({base:["relative inline-flex items-center outline-none tap-highlight-transparent",...a.Dh],variants:{size:{sm:"text-small",md:"text-medium",lg:"text-large"},color:{foreground:"text-foreground",primary:"text-primary",secondary:"text-secondary",success:"text-success",warning:"text-warning",danger:"text-danger"},underline:{none:"no-underline",hover:"hover:underline",always:"underline",active:"active:underline",focus:"focus:underline"},isBlock:{true:["px-2","py-1","hover:after:opacity-100","after:content-['']","after:inset-0","after:opacity-0","after:w-full","after:h-full","after:rounded-xl","after:transition-background","after:absolute"],false:"hover:opacity-80 active:opacity-disabled transition-opacity"},isDisabled:{true:"opacity-disabled cursor-default pointer-events-none"},disableAnimation:{true:"after:transition-none transition-none"}},compoundVariants:[{isBlock:!0,color:"foreground",class:"hover:after:bg-foreground
1/10"},{isBlock:!0,color:"primary",class:"hover:after:bg-primary/20"},{isBlock:!0,color:"secondary",class:"hover:after:bg-secondary/20"},{isBlock:!0,color:"success",class:"hover:after:bg-success/20"},{isBlock:!0,color:"warning",class:"hover:after:bg-warning/20"},{isBlock:!0,color:"danger",class:"hover:after:bg-danger/20"},{underline:["hover","always","active","focus"],class:"underline-offset-4"}],defaultVariants:{color:"primary",size:"md",isBlock:!1,underline:"none",isDisabled:!1}}),o=n(32626),l=n(49336),s=n(96072),u=n(59630),d=n(71417),c=n(9785),p=n(82664),f=n(48824),h=n(75026),m=n(65052),g=n(49975),y=n(75271),v=n(52676),b=e=>(0,v.jsxs)("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",shapeRendering:"geometricPrecision",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",width:"1em",...e,children:[(0,v.jsx)("path",{d:"M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6"}),(0,v.jsx)("path",{d:"M15 3h6v6"}),(0,v.jsx)("path",{d:"M10 14L21 3"})]}),x=(0,p.Gp)((e,t)=>{let{Component:n,children:r,showAnchorIcon:a,anchorIcon:x=(0,v.jsx)(b,{className:"flex mx-1 text-current self-center"}),getLinkProps:w}=function(e){var t,n,r,a;let v=(0,c.w)(),[b,x]=(0,p.oe)(e,i.variantKeys),{ref:w,as:k,children:M,anchorIcon:C,isExternal:j=!1,showAnchorIcon:T=!1,autoFocus:E=!1,className:_,onPress:P,onPressStart:S,onPressEnd:z,onClick:Z,...A}=b,N=(0,f.gy)(w),I=null!=(n=null!=(t=null==e?void 0:e.disableAnimation)?t:null==v?void 0:v.disableAnimation)&&n,{linkProps:B}=function(e,t){let{elementType:n="a",onPress:r,onPressStart:a,onPressEnd:i,onClick:c,isDisabled:p,...f}=e,h={};"a"!==n&&(h={role:"link",tabIndex:p?void 0:0});let{focusableProps:m}=(0,u.k)(e,t),{pressProps:g,isPressed:y}=(0,d.r)({onPress:r,onPressStart:a,onPressEnd:i,isDisabled:p,ref:t}),v=(0,o.z)(f,{labelable:!0,isLink:"a"===n}),b=(0,l.d)(m,g),x=(0,s.tv)(),w=(0,s.eY)(e);return{isPressed:y,linkProps:(0,l.d)(v,w,{...b,...h,"aria-disabled":p||void 0,"aria-current":e["aria-current"],onClick:t=>{var n;null==(n=g.onClick)||n.call(g,t),c&&c(t),!x.isNative&&t.currentTarget instanceof HTMLAnchorElement&&t.currentTarget.href&&!t.isDefaultPrevented()&&(0,s.b0)(t.currentTarget,t)&&e.href&&(t.preventDefault(),x.open(t.currentTarget,t,e.href,e.routerOptions))}})}}({...A,onPress:P,onPressStart:S,onPressEnd:z,onClick:Z,isDisabled:e.isDisabled,elementType:`${k}`},N),{isFocused:O,isFocusVisible:L,focusProps:R}=(0,h.F)({autoFocus:E});j&&(A.rel=null!=(r=A.rel)?r:"noopener noreferrer",A.target=null!=(a=A.target)?a:"_blank");let D=(0,y.useMemo)(()=>i({...x,disableAnimation:I,className:_}),[(0,m.Xx)(x),I,_]);return{Component:k||"a",children:M,anchorIcon:C,showAnchorIcon:T,getLinkProps:(0,y.useCallback)(()=>({ref:N,className:D,"data-focus":(0,g.PB)(O),"data-disabled":(0,g.PB)(e.isDisabled),"data-focus-visible":(0,g.PB)(L),...(0,l.d)(R,B,A)}),[D,O,L,R,B,A])}}({ref:t,...e});return(0,v.jsx)(n,{...w(),children:(0,v.jsxs)(v.Fragment,{children:[r,a&&x]})})});x.displayName="NextUI.Link";var w=x},53751:function(e,t,n){"use strict";n.d(t,{k:function(){return d}});var r=n(94675),a=n(75271),i=n(82664),o=n(48824),l=n(85151),s=n(52676),u=(0,i.Gp)((e,t)=>{let{as:n,children:i,className:u,...d}=e,{slots:c,classNames:p,headerId:f,setHeaderMounted:h}=(0,r.v)(),m=(0,o.gy)(t);return(0,a.useEffect)(()=>(h(!0),()=>h(!1)),[h]),(0,s.jsx)(n||"header",{ref:m,className:c.header({class:(0,l.W)(null==p?void 0:p.header,u)}),id:f,...d,children:i})});u.displayName="NextUI.ModalHeader";var d=u},95828:function(e,t,n){"use strict";n.d(t,{R:function(){return u}});var r=n(94675),a=n(82664),i=n(48824),o=n(85151),l=n(52676),s=(0,a.Gp)((e,t)=>{let{as:n,children:a,className:s,...u}=e,{slots:d,classNames:c}=(0,r.v)(),p=(0,i.gy)(t);return(0,l.jsx)(n||"footer",{ref:p,className:d.footer({class:(0,o.W)(null==c?void 0:c.footer,s
1)}),...u,children:a})});s.displayName="NextUI.ModalFooter";var u=s},58904:function(e,t,n){"use strict";n.d(t,{W:function(){return y}});var r=n(9785),a=n(82664),i=(0,n(38946).tv)({slots:{base:"flex flex-col gap-2 w-full",label:"",labelWrapper:"flex justify-between",value:"",track:"z-0 relative bg-default-300/50 overflow-hidden",indicator:"h-full"},variants:{color:{default:{indicator:"bg-default-400"},primary:{indicator:"bg-primary"},secondary:{indicator:"bg-secondary"},success:{indicator:"bg-success"},warning:{indicator:"bg-warning"},danger:{indicator:"bg-danger"}},size:{sm:{label:"text-small",value:"text-small",track:"h-1"},md:{label:"text-medium",value:"text-medium",track:"h-3"},lg:{label:"text-large",value:"text-large",track:"h-5"}},radius:{none:{track:"rounded-none",indicator:"rounded-none"},sm:{track:"rounded-small",indicator:"rounded-small"},md:{track:"rounded-medium",indicator:"rounded-medium"},lg:{track:"rounded-large",indicator:"rounded-large"},full:{track:"rounded-full",indicator:"rounded-full"}},isStriped:{true:{indicator:"bg-stripe-gradient bg-[length:1.25rem_1.25rem]"}},isIndeterminate:{true:{indicator:["absolute","w-full","origin-left","animate-indeterminate-bar"]}},isDisabled:{true:{base:"opacity-disabled cursor-not-allowed"}},disableAnimation:{true:{},false:{indicator:"transition-transform !duration-500"}}},defaultVariants:{color:"primary",size:"md",radius:"full",isStriped:!1,isIndeterminate:!1,isDisabled:!1},compoundVariants:[{disableAnimation:!0,isIndeterminate:!1,class:{indicator:"!transition-none motion-reduce:transition-none"}}]},{twMerge:!0}),o=n(48824),l=n(85151),s=n(65052),u=n(42473),d=n(49975),c=n(49336),p=n(75271),f=n(91252),h=n(9874),m=n(52676),g=(0,a.Gp)((e,t)=>{let{Component:n,slots:g,classNames:y,label:v,percentage:b,showValueLabel:x,getProgressBarProps:w,getLabelProps:k}=function(e){var t,n;let m=(0,r.w)(),[g,y]=(0,a.oe)(e,i.variantKeys),{ref:v,as:b,id:x,className:w,classNames:k,label:M,valueLabel:C,value:j=0,minValue:T=0,maxValue:E=100,showValueLabel:_=!1,formatOptions:P={style:"percent"},...S}=g,z=(0,o.gy)(v),Z=(0,l.W)(null==k?void 0:k.base,w),[,A]=(0,f.t)({rerender:!0,delay:100}),N=e.isIndeterminate,I=null!=(n=null!=(t=e.disableAnimation)?t:null==m?void 0:m.disableAnimation)&&n,{progressBarProps:B,labelProps:O}=(0,h.D)({id:x,label:M,value:j,minValue:T,maxValue:E,valueLabel:C,formatOptions:P,isIndeterminate:N,"aria-labelledby":e["aria-labelledby"],"aria-label":e["aria-label"]}),L=(0,p.useMemo)(()=>i({...y,disableAnimation:I}),[(0,s.Xx)(y),I]),R=!!I||A,D=(0,p.useMemo)(()=>N||!R?void 0:(0,u.Ez)((j-T)/(E-T)*100),[R,N,j,T,E]),H=(0,p.useCallback)((t={})=>({ref:z,"data-indeterminate":(0,d.PB)(N),"data-disabled":(0,d.PB)(e.isDisabled),className:L.base({class:Z}),...(0,c.d)(B,S,t)}),[z,L,N,e.isDisabled,Z,B,S]),W=(0,p.useCallback)((e={})=>({className:L.label({class:null==k?void 0:k.label}),...(0,c.d)(O,e)}),[L,k,O]);return{Component:b||"div",domRef:z,slots:L,classNames:k,label:M,percentage:D,showValueLabel:_,getProgressBarProps:H,getLabelProps:W}}({...e,ref:t}),M=w(),C=v||x;return(0,m.jsxs)(n,{...M,children:[C?(0,m.jsxs)("div",{className:g.labelWrapper({class:null==y?void 0:y.labelWrapper}),children:[v&&(0,m.jsx)("span",{...k(),children:v}),x&&(0,m.jsx)("span",{className:g.value({class:null==y?void 0:y.value}),children:M["aria-valuetext"]})]}):null,(0,m.jsx)("div",{className:g.track({class:null==y?void 0:y.track}),children:(0,m.jsx)("div",{className:g.indicator({class:null==y?void 0:y.indicator}),style:{transform:`translateX(-${100-(b||0)}%)`}})})]})});g.displayName="NextUI.Progress";var y=g},84289:function(e,t,n){"use strict";n.d(t,{o:function(){return d}});var r=n(82664),a=(0,n(38946).tv)({base:[],variants:{orientation:{vertical:["overflow-y-auto","data-[top-scroll=true]:[mask-image:linear-gradient(0deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[bottom-scroll=true]:[mask-image:linear-gradient(180deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[top-bottom-scroll=true]:[mask-image:linear-gradient(#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"],horizontal:["overflow-x-auto","data-[left-scroll=true]:[mask-image:linear-gradient(270deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[right-scroll=true]:[mask-image:linear-gradient(90deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[left-right-scroll=true]:[mask-image:linear-gradient(to_right,#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"]},hideScrollBar:{true:"scrollbar-hide",false:""}},defaultVariants:{orientation:"vertical",hideScrollBar:!1}}),i=n(48824),o=n(65052),l=n(75271),s=n(52676),u=(0,r.Gp)((e,t)=>{let{Component:n,children:u,getBaseProps:d}=function(e){var t;let[n,s]=(0,r.oe)(e,a.variantKeys),{ref:u,as:d,children:c,className:p,style:f,size:h=40,offset:m=0,visibility:g="auto",isEnabled:y=!0,onVisibilityChange:v,...b}=n,x=(0,i.gy)(u);!function(e={}){let{domRef:t,isEnabled:n=!0,overflowCheck:r="vertical",visibility:a="auto",offset:i=0,onVisibilityChange:s,updateDeps:u=[]}=e,d=(0,l.useRef)(a);(0,l.useEffect)(()=>{let e=null==t?void 0:t.current;if(!e||!n)return;
1let l=(t,n,r,i,l)=>{if("auto"===a){let t=`${i}${(0,o.kC)(l)}Scroll`;n&&r?(e.dataset[t]="true",e.removeAttribute(`data-${i}-scroll`),e.removeAttribute(`data-${l}-scroll`)):(e.dataset[`${i}Scroll`]=n.toString(),e.dataset[`${l}Scroll`]=r.toString(),e.removeAttribute(`data-${i}-${l}-scroll`))}else{let e=n&&r?"both":n?i:r?l:"none";e!==d.current&&(null==s||s(e),d.current=e)}},u=()=>{for(let{type:t,prefix:n,suffix:a}of[{type:"vertical",prefix:"top",suffix:"bottom"},{type:"horizontal",prefix:"left",suffix:"right"}])if(r===t||"both"===r){let r="vertical"===t?e.scrollTop>i:e.scrollLeft>i,o="vertical"===t?e.scrollTop+e.clientHeight+i<e.scrollHeight:e.scrollLeft+e.clientWidth+i<e.scrollWidth;l(t,r,o,n,a)}},c=()=>{["top","bottom","top-bottom","left","right","left-right"].forEach(t=>{e.removeAttribute(`data-${t}-scroll`)})};return u(),e.addEventListener("scroll",u),"auto"!==a&&(c(),"both"===a?(e.dataset.topBottomScroll=String("vertical"===r),e.dataset.leftRightScroll=String("horizontal"===r)):(e.dataset.topBottomScroll="false",e.dataset.leftRightScroll="false",["top","bottom","left","right"].forEach(t=>{e.dataset[`${t}Scroll`]=String(a===t)}))),()=>{e.removeEventListener("scroll",u),c()}},[...u,n,a,r,s,t])}({domRef:x,offset:m,visibility:g,isEnabled:y,onVisibilityChange:v,updateDeps:[c],overflowCheck:null!=(t=e.orientation)?t:"vertical"});let w=(0,l.useMemo)(()=>a({...s,className:p}),[(0,o.Xx)(s),p]);return{Component:d||"div",styles:w,domRef:x,children:c,getBaseProps:(t={})=>{var n;return{ref:x,className:w,"data-orientation":null!=(n=e.orientation)?n:"vertical",style:{"--scroll-shadow-size":`${h}px`,...f,...t.style},...b,...t}}}}({...e,ref:t});return(0,s.jsx)(n,{...d(),children:u})});u.displayName="NextUI.ScrollShadow";var d=u},66336:function(e,t,n){"use strict";n.d(t,{cn:function(){return o}});var r=n(36573),a=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=function e(t){var n,r,a="";if("string"==typeof t||"number"==typeof t)a+=t;else if("object"==typeof t){if(Array.isArray(t))for(n=0;n<t.length;n++)t[n]&&(r=e(t[n]))&&(a&&(a+=" "),a+=r);else for(n in t)t[n]&&(a&&(a+=" "),a+=n)}return a}(e))&&(r&&(r+=" "),r+=t);return r},i=(0,n(51297).q)(r.B);function o(...e){return i(a(e))}},29161:function(e,t,n){"use strict";function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}n.d(t,{M:function(){return r}})},48101:function(e,t,n){"use strict";n.d(t,{z:function(){return o}});var r=n(75271),a=n(49204),i=n(929),o=e=>{let t,n;let{present:o,children:s}=e,u=function(e){var t,n;let[a,o]=r.useState(),s=r.useRef({}),u=r.useRef(e),d=r.useRef("none"),[c,p]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>n[e][t]??e,t));return r.useEffect(()=>{let e=l(s.current);d.current="mounted"===c?e:"none"},[c]),(0,i.b)(()=>{let t=s.current,n=u.current;if(n!==e){let r=d.current,a=l(t);e?p("MOUNT"):"none"===a||t?.display==="none"?p("UNMOUNT"):n&&r!==a?p("ANIMATION_OUT"):p("UNMOUNT"),u.current=e}},[e,p]),(0,i.b)(()=>{if(a){let e;let t=a.ownerDocument.defaultView??window,n=n=>{let r=l(s.current).includes(n.animationName);if(n.target===a&&r&&(p("ANIMATION_END"),!u.current)){let n=a.style.animationFillMode;a.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===a.style.animationFillMode&&(a.style.animationFillMode=n)})}},r=e=>{e.target===a&&(d.current=l(s.current))};return a.addEventListener("animationstart",r),a.addEventListener("animationcancel",n),a.addEventListener("animationend",n),()=>{t.clearTimeout(e),a.removeEventListener("animationstart",r),a.removeEventListener("animationcancel",n),a.removeEventListener("animationend",n)}}p("ANIMATION_END")},[a,p]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:r.useCallback(e=>{e&&(s.current=getComputedStyle(e)),o(e)},[])}}(o),d="function"==typeof s?s({present:u.isPresent}):r.Children.only(s),c=(0,a.e)(u.ref,(t=Object.getOwnPropertyDescriptor(d.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?d.ref:(t=Object.getOwnPropertyDescriptor(d,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?d.props.ref:d.props.ref||d.ref);return"function"==typeof s||u.isPresent?r.cloneElement(d,{ref:c}):null};function l(e){return e?.animationName||"none"}o.displayName="Presence"},72946:function(e,t,n){"use strict";n.d(t,{I:function(){return r},Z:function(){return r}}),n(56789);let r=n(50530).hj.create({name:"color",addOptions:()=>({types:["textStyle"]}),addGlobalAttributes(){return[{types:this.options.types,attributes:{color:{default:null,parseHTML:e=>{var t;return null===(t=e.style.color)||void 0===t?void 0:t.replace(/['"]+/g,"")},renderHTML:e=>e.color?{style:`color: ${e.color}`}:{}}}}]},addCommands:()=>({setColor:e=>({chain:t})=>t().setMark("textStyle",{color:e}).run(),unsetColor:()=>({chain:e})=>e().setMark("textStyle",{color:null}).removeEmptyTextStyle().run()})})},53557:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(50530),a=n(3317);let i=r.NB.create({name:"horizontalRule",addOptions:()=>({HTMLAttributes:{}}),group:"block",parseHTML:()=>[{tag:"hr"}],renderHTML({HTMLAttributes:e}){return["hr",(0,r.P1)(this.options.HTMLAttributes,e)]},addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{if(!(0,r.FZ)(t,t.schema.nodes[this.name]))return!1;let{selection:n}=t,{$from:i,$to:o}=n,l=e();return 0===i.parentOffset?l.insertContentAt({from:Math.max(i.pos-1,0),to:o.pos},{type:this.name}):(0,r.EG)(n)?l.insertContentAt(o.pos,{type:this.name}):l.insertContent({type:this.name}),l.command(({tr:e,dispatch:t})=>{var n;if(t){let{$to:t}=e.selection,r=t.end();
1if(t.nodeAfter)t.nodeAfter.isTextblock?e.setSelection(a.Bs.create(e.doc,t.pos+1)):t.nodeAfter.isBlock?e.setSelection(a.qv.create(e.doc,t.pos)):e.setSelection(a.Bs.create(e.doc,t.pos));else{let i=null===(n=t.parent.type.contentMatch.defaultType)||void 0===n?void 0:n.create();i&&(e.insert(r,i),e.setSelection(a.Bs.create(e.doc,r+1)))}e.scrollIntoView()}return!0}).run()}}},addInputRules(){return[(0,r.x2)({find:/^(?:---|â-|___\s|\*\*\*\s)$/,type:this.type})]}})},10124:function(e,t,n){"use strict";n.d(t,{p:function(){return a}});var r=n(50530);let a=r.NB.create({name:"tableCell",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:e=>{let t=e.getAttribute("colwidth");return t?t.split(",").map(e=>parseInt(e,10)):null}}}),tableRole:"cell",isolating:!0,parseHTML:()=>[{tag:"td"}],renderHTML({HTMLAttributes:e}){return["td",(0,r.P1)(this.options.HTMLAttributes,e),0]}})},2785:function(e,t,n){"use strict";n.d(t,{x:function(){return a}});var r=n(50530);let a=r.NB.create({name:"tableHeader",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:e=>{let t=e.getAttribute("colwidth");return t?t.split(",").map(e=>parseInt(e,10)):null}}}),tableRole:"header_cell",isolating:!0,parseHTML:()=>[{tag:"th"}],renderHTML({HTMLAttributes:e}){return["th",(0,r.P1)(this.options.HTMLAttributes,e),0]}})},88444:function(e,t,n){"use strict";n.d(t,{S:function(){return a}});var r=n(50530);let a=r.NB.create({name:"tableRow",addOptions:()=>({HTMLAttributes:{}}),content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML:()=>[{tag:"tr"}],renderHTML({HTMLAttributes:e}){return["tr",(0,r.P1)(this.options.HTMLAttributes,e),0]}})},95291:function(e,t,n){"use strict";n.d(t,{iA:function(){return c}});var r=n(50530),a=n(3317),i=n(44266);function o(e,t){return t?["width",`${Math.max(t,e)}px`]:["min-width",`${e}px`]}function l(e,t,n,r,a,i){var l;let s=0,u=!0,d=t.firstChild,c=e.firstChild;if(null!==c)for(let e=0,n=0;e<c.childCount;e+=1){let{colspan:l,colwidth:p}=c.child(e).attrs;for(let e=0;e<l;e+=1,n+=1){let l=a===n?i:p&&p[e],c=l?`${l}px`:"";if(s+=l||r,l||(u=!1),d){if(d.style.width!==c){let[e,t]=o(r,l);d.style.setProperty(e,t)}d=d.nextSibling}else{let e=document.createElement("col"),[n,a]=o(r,l);e.style.setProperty(n,a),t.appendChild(e)}}}for(;d;){let e=d.nextSibling;null===(l=d.parentNode)||void 0===l||l.removeChild(d),d=e}u?(n.style.width=`${s}px`,n.style.minWidth=""):(n.style.width="",n.style.minWidth=`${s}px`)}class s{constructor(e,t){this.node=e,this.cellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),l(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type===this.node.type&&(this.node=e,l(e,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(e){return"attributes"===e.type&&(e.target===this.table||this.colgroup.contains(e.target))}}function u(e,t){return t?e.createChecked(null,t):e.createAndFill()}let d=({editor:e})=>{let{selection:t}=e.state;if(!(t instanceof i.Xc))return!1;let n=0,a=(0,r.qv)(t.ranges[0].$from,e=>"table"===e.type.name);return null==a||a.node.descendants(e=>{if("table"===e.type.name)return!1;["tableCell","tableHeader"].includes(e.type.name)&&(n+=1)}),n===t.ranges.length&&(e.commands.deleteTable(),!0)},c=r.NB.create({name:"table",addOptions:()=>({HTMLAttributes:{},resizable:!1,handleWidth:5,cellMinWidth:25,View:s,lastColumnResizable:!0,allowTableNodeSelection:!1}),content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML:()=>[{tag:"table"}],renderHTML({node:e,HTMLAttributes:t}){let{colgroup:n,tableWidth:a,tableMinWidth:i}=function(e,t,n,r){let a=0,i=!0,l=[],s=e.firstChild;if(!s)return{};for(let e=0,n=0;e<s.childCount;e+=1){let{colspan:r,colwidth:u}=s.child(e).attrs;for(let e=0;e<r;e+=1,n+=1){let r=void 0===n?void 0:u&&u[e];a+=r||t,r||(i=!1);let[s,d]=o(t,r);l.push(["col",{style:`${s}: ${d}`}])}}return{colgroup:["colgroup",{},...l],tableWidth:i?`${a}px`:"",tableMinWidth:i?"":`${a}px`}}(e,this.options.cellMinWidth);return["table",(0,r.P1)(this.options.HTMLAttributes,t,{style:a?`width: ${a}`:`min-width: ${i}`}),n,["tbody",0]]},addCommands:()=>({insertTable:({rows:e=3,cols:t=3,withHeaderRow:n=!0}={})=>({tr:r,dispatch:i,editor:o})=>
1{let l=function(e,t,n,r,a){let i=function(e){if(e.cached.tableNodeTypes)return e.cached.tableNodeTypes;let t={};return Object.keys(e.nodes).forEach(n=>{let r=e.nodes[n];r.spec.tableRole&&(t[r.spec.tableRole]=r)}),e.cached.tableNodeTypes=t,t}(e),o=[],l=[];for(let e=0;e<n;e+=1){let e=u(i.cell,void 0);if(e&&l.push(e),r){let e=u(i.header_cell,void 0);e&&o.push(e)}}let s=[];for(let e=0;e<t;e+=1)s.push(i.row.createChecked(null,r&&0===e?o:l));return i.table.createChecked(null,s)}(o.schema,e,t,n);if(i){let e=r.selection.from+1;r.replaceSelectionWith(l).scrollIntoView().setSelection(a.Bs.near(r.doc.resolve(e)))}return!0},addColumnBefore:()=>({state:e,dispatch:t})=>(0,i.I_)(e,t),addColumnAfter:()=>({state:e,dispatch:t})=>(0,i.e2)(e,t),deleteColumn:()=>({state:e,dispatch:t})=>(0,i.eA)(e,t),addRowBefore:()=>({state:e,dispatch:t})=>(0,i.z2)(e,t),addRowAfter:()=>({state:e,dispatch:t})=>(0,i.dl)(e,t),deleteRow:()=>({state:e,dispatch:t})=>(0,i.qK)(e,t),deleteTable:()=>({state:e,dispatch:t})=>(0,i.WQ)(e,t),mergeCells:()=>({state:e,dispatch:t})=>(0,i.JX)(e,t),splitCell:()=>({state:e,dispatch:t})=>(0,i.Cr)(e,t),toggleHeaderColumn:()=>({state:e,dispatch:t})=>(0,i.dO)("column")(e,t),toggleHeaderRow:()=>({state:e,dispatch:t})=>(0,i.dO)("row")(e,t),toggleHeaderCell:()=>({state:e,dispatch:t})=>(0,i.II)(e,t),mergeOrSplit:()=>({state:e,dispatch:t})=>!!(0,i.JX)(e,t)||(0,i.Cr)(e,t),setCellAttribute:(e,t)=>({state:n,dispatch:r})=>(0,i.wb)(e,t)(n,r),goToNextCell:()=>({state:e,dispatch:t})=>(0,i.nA)(1)(e,t),goToPreviousCell:()=>({state:e,dispatch:t})=>(0,i.nA)(-1)(e,t),fixTables:()=>({state:e,dispatch:t})=>(t&&(0,i.tp)(e),!0),setCellSelection:e=>({tr:t,dispatch:n})=>{if(n){let n=i.Xc.create(t.doc,e.anchorCell,e.headCell);t.setSelection(n)}return!0}}),addKeyboardShortcuts(){return{Tab:()=>!!this.editor.commands.goToNextCell()||!!this.editor.can().addRowAfter()&&this.editor.chain().addRowAfter().goToNextCell().run(),"Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:d,"Mod-Backspace":d,Delete:d,"Mod-Delete":d}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[(0,i.VH)({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,defaultCellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],(0,i.G3)({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema(e){let t={name:e.name,options:e.options,storage:e.storage};return{tableRole:(0,r.nU)((0,r.Nl)(e,"tableRole",t))}}})},90302:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=n(50530).hj.create({name:"textAlign",addOptions:()=>({types:[],alignments:["left","center","right","justify"],defaultAlignment:null}),addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:e=>{let t=e.style.textAlign;return this.options.alignments.includes(t)?t:this.options.defaultAlignment},renderHTML:e=>e.textAlign?{style:`text-align: ${e.textAlign}`}:{}}}}]},addCommands(){return{setTextAlign:e=>({commands:t})=>!!this.options.alignments.includes(e)&&this.options.types.map(n=>t.updateAttributes(n,{textAlign:e})).every(e=>e),unsetTextAlign:()=>({commands:e})=>this.options.types.map(t=>e.resetAttributes(t,"textAlign")).every(e=>e)}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}})},56789:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(50530);let a=e=>{if(!e.children.length)return;let t=e.querySelectorAll("span");t&&t.forEach(e=>{var t,n;let r=e.getAttribute("style"),a=null===(n=null===(t=e.parentElement)||void 0===t?void 0:t.closest("span"))||void 0===n?void 0:n.getAttribute("style");e.setAttribute("style",`${a};${r}`)})},i=r.vc.create({name:"textStyle",priority:101,addOptions:()=>({HTMLAttributes:{},mergeNestedSpanStyles:!1}),parseHTML(){return[{tag:"span",getAttrs:e=>!!e.hasAttribute("style")&&(this.options.mergeNestedSpanStyles&&a(e),{})}]},renderHTML({HTMLAttributes:e}){return["span",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{removeEmptyTextStyle:()=>({tr:e})=>{let{selection:t}=e;return e.doc.nodesBetween(t.from,t.to,(t,n)=>{if(t.isTextblock)return!0;t.marks.filter(e=>e.type===this.type).some(e=>Object.values(e.attrs).some(e=>!!e))||e.removeMark(n,n+t.nodeSize,this.type)}),!0}}}})},28680:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(t){if("string"==typeof t||"number"==typeof t)return""+t;let n="";if(Array.isArray(t))for(let r=0,a;r<t.length;r++)""!==(a=e(t[r]))&&(n+=(n&&" ")+a);else for(let e in t)t[e]&&(n+=(n&&" ")+e);return n}}})},48482:function(e,t,n){"use strict";n.d(t,{E:function(){return o}});let r="u">typeof window,a="u">typeof globalThis?globalThis:window,i=()=>r?a.location.href:"";function o(e,t){t=t||i();let n=RegExp("[?&#]"+e+"=([^&#]*)","i"),r=t.match(n);if(r)try{return decodeURIComponent(r[1])||""}catch{}return""}},24288:function(e,t,n){"use strict";n.d(t,{NY:function(){return C},Ee:function(){return M},fC:function(){return k}});var r=n(75271),a=n(65129),i=n(94545),o=n(59699),l=n(63464),s=n(59207);function u(){return()=>{}}var d=n(52676),c="Avatar",[p,f]=(0,a.b)(c),[h,m]=p(c),g=r.forwardRef((e,t)=>
1{let{__scopeAvatar:n,...a}=e,[i,o]=r.useState("idle");return(0,d.jsx)(h,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:o,children:(0,d.jsx)(l.WV.span,{...a,ref:t})})});g.displayName=c;var y="AvatarImage",v=r.forwardRef((e,t)=>{let{__scopeAvatar:n,src:a,onLoadingStatusChange:c=()=>{},...p}=e,f=m(y,n),h=function(e,t){let{referrerPolicy:n,crossOrigin:a}=t,i=(0,s.useSyncExternalStore)(u,()=>!0,()=>!1),l=r.useRef(null),d=i?(l.current||(l.current=new window.Image),l.current):null,[c,p]=r.useState(()=>w(d,e));return(0,o.b)(()=>{p(w(d,e))},[d,e]),(0,o.b)(()=>{let e=e=>()=>{p(e)};if(!d)return;let t=e("loaded"),r=e("error");return d.addEventListener("load",t),d.addEventListener("error",r),n&&(d.referrerPolicy=n),"string"==typeof a&&(d.crossOrigin=a),()=>{d.removeEventListener("load",t),d.removeEventListener("error",r)}},[d,a,n]),c}(a,p),g=(0,i.W)(e=>{c(e),f.onImageLoadingStatusChange(e)});return(0,o.b)(()=>{"idle"!==h&&g(h)},[h,g]),"loaded"===h?(0,d.jsx)(l.WV.img,{...p,ref:t,src:a}):null});v.displayName=y;var b="AvatarFallback",x=r.forwardRef((e,t)=>{let{__scopeAvatar:n,delayMs:a,...i}=e,o=m(b,n),[s,u]=r.useState(void 0===a);return r.useEffect(()=>{if(void 0!==a){let e=window.setTimeout(()=>u(!0),a);return()=>window.clearTimeout(e)}},[a]),s&&"loaded"!==o.imageLoadingStatus?(0,d.jsx)(l.WV.span,{...i,ref:t}):null});function w(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}x.displayName=b;var k=g,M=v,C=x},51919:function(e,t,n){"use strict";n.d(t,{VY:function(){return G},aV:function(){return X},fC:function(){return q},xz:function(){return U}});var r=n(75271),a=n(29161),i=n(42478),o=n(49204),l=n(75732),s=n(52676),u=n(8921),d=n(22413),c=n(90808),p=n(30710),f=n(5185),h="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},g="RovingFocusGroup",[y,v,b]=function(e){let t=e+"CollectionProvider",[n,a]=(0,i.b)(t),[u,d]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=e=>{let{scope:t,children:n}=e,a=r.useRef(null),i=r.useRef(new Map).current;return(0,s.jsx)(u,{scope:t,itemMap:i,collectionRef:a,children:n})};c.displayName=t;let p=e+"CollectionSlot",f=r.forwardRef((e,t)=>{let{scope:n,children:r}=e,a=d(p,n),i=(0,o.e)(t,a.collectionRef);return(0,s.jsx)(l.g7,{ref:i,children:r})});f.displayName=p;let h=e+"CollectionItemSlot",m="data-radix-collection-item",g=r.forwardRef((e,t)=>{let{scope:n,children:a,...i}=e,u=r.useRef(null),c=(0,o.e)(t,u),p=d(h,n);return r.useEffect(()=>(p.itemMap.set(u,{ref:u,...i}),()=>void p.itemMap.delete(u))),(0,s.jsx)(l.g7,{[m]:"",ref:c,children:a})});return g.displayName=h,[{Provider:c,Slot:f,ItemSlot:g},function(t){let n=d(e+"CollectionConsumer",t);return r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${m}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},a]}(g),[x,w]=(0,i.b)(g,[b]),[k,M]=x(g),C=r.forwardRef((e,t)=>(0,s.jsx)(y.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,s.jsx)(y.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,s.jsx)(j,{...e,ref:t})})}));C.displayName=g;var j=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:i,loop:l=!1,dir:u,currentTabStopId:g,defaultCurrentTabStopId:y,onCurrentTabStopIdChange:b,onEntryFocus:x,preventScrollOnEntryFocus:w=!1,...M}=e,C=r.useRef(null),j=(0,o.e)(t,C),T=(0,f.gm)(u),[E=null,_]=(0,p.T)({prop:g,defaultProp:y,onChange:b}),[S,z]=r.useState(!1),Z=(0,c.W)(x),A=v(n),N=r.useRef(!1),[I,B]=r.useState(0);return r.useEffect(()=>{let e=C.current;if(e)return e.addEventListener(h,Z),()=>e.removeEventListener(h,Z)},[Z]),(0,s.jsx)(k,{scope:n,orientation:i,dir:T,loop:l,currentTabStopId:E,onItemFocus:r.useCallback(e=>_(e),[_]),onItemShiftTab:r.useCallback(()=>z(!0),[]),onFocusableItemAdd:r.useCallback(()=>B(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>B(e=>e-1),[]),children:(0,s.jsx)(d.WV.div,{tabIndex:S||0===I?-1:0,"data-orientation":i,...M,ref:j,style:{outline:"none",...e.style},onMouseDown:(0,a.M)(e.onMouseDown,()=>{N.current=!0}),onFocus:(0,a.M)(e.onFocus,e=>{let t=!N.current;if(e.target===e.currentTarget&&t&&!S){let t=new CustomEvent(h,m);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=A().filter(e=>
1e.focusable);P([e.find(e=>e.active),e.find(e=>e.id===E),...e].filter(Boolean).map(e=>e.ref.current),w)}}N.current=!1}),onBlur:(0,a.M)(e.onBlur,()=>z(!1))})})}),T="RovingFocusGroupItem",E=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:i=!0,active:o=!1,tabStopId:l,...c}=e,p=(0,u.M)(),f=l||p,h=M(T,n),m=h.currentTabStopId===f,g=v(n),{onFocusableItemAdd:b,onFocusableItemRemove:x}=h;return r.useEffect(()=>{if(i)return b(),()=>x()},[i,b,x]),(0,s.jsx)(y.ItemSlot,{scope:n,id:f,focusable:i,active:o,children:(0,s.jsx)(d.WV.span,{tabIndex:m?0:-1,"data-orientation":h.orientation,...c,ref:t,onMouseDown:(0,a.M)(e.onMouseDown,e=>{i?h.onItemFocus(f):e.preventDefault()}),onFocus:(0,a.M)(e.onFocus,()=>h.onItemFocus(f)),onKeyDown:(0,a.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){h.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let a=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(a))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(a)))return _[a]}(e,h.orientation,h.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let a=g().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)a.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&a.reverse();let i=a.indexOf(e.currentTarget);a=h.loop?(n=a,r=i+1,n.map((e,t)=>n[(r+t)%n.length])):a.slice(i+1)}setTimeout(()=>P(a))}})})})});E.displayName=T;var _={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function P(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var S=n(48101),z="Tabs",[Z,A]=(0,i.b)(z,[w]),N=w(),[I,B]=Z(z),O=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:a,defaultValue:i,orientation:o="horizontal",dir:l,activationMode:c="automatic",...h}=e,m=(0,f.gm)(l),[g,y]=(0,p.T)({prop:r,onChange:a,defaultProp:i});return(0,s.jsx)(I,{scope:n,baseId:(0,u.M)(),value:g,onValueChange:y,orientation:o,dir:m,activationMode:c,children:(0,s.jsx)(d.WV.div,{dir:m,"data-orientation":o,...h,ref:t})})});O.displayName=z;var L="TabsList",R=r.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...a}=e,i=B(L,n),o=N(n);return(0,s.jsx)(C,{asChild:!0,...o,orientation:i.orientation,dir:i.dir,loop:r,children:(0,s.jsx)(d.WV.div,{role:"tablist","aria-orientation":i.orientation,...a,ref:t})})});R.displayName=L;var D="TabsTrigger",H=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:i=!1,...o}=e,l=B(D,n),u=N(n),c=F(l.baseId,r),p=V(l.baseId,r),f=r===l.value;return(0,s.jsx)(E,{asChild:!0,...u,focusable:!i,active:f,children:(0,s.jsx)(d.WV.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":p,"data-state":f?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:c,...o,ref:t,onMouseDown:(0,a.M)(e.onMouseDown,e=>{i||0!==e.button||!1!==e.ctrlKey?e.preventDefault():l.onValueChange(r)}),onKeyDown:(0,a.M)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&l.onValueChange(r)}),onFocus:(0,a.M)(e.onFocus,()=>{let e="manual"!==l.activationMode;f||i||!e||l.onValueChange(r)})})})});H.displayName=D;var W="TabsContent",$=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:a,forceMount:i,children:o,...l}=e,u=B(W,n),c=F(u.baseId,a),p=V(u.baseId,a),f=a===u.value,h=r.useRef(f);return r.useEffect(()=>{let e=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,s.jsx)(S.z,{present:i||f,children:n=>{let{present:r}=n;return(0,s.jsx)(d.WV.div,{"data-state":f?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":c,hidden:!r,id:p,tabIndex:0,...l,ref:t,style:{...e.style,animationDuration:h.current?"0s":void 0},children:r&&o})}})});function F(e,t){return`${e}-trigger-${t}`}function V(e,t){return`${e}-content-${t}`}$.displayName=W;var q=O,X=R,U=H,G=$},80958:function(e,t,n){"use strict";n.d(t,{J:function(){return o}});var r=n(75339),a=n(74017),i=n(75271);function o(){r.O.current||(0,a.Ad)();let[e]=(0,i.useState)(r.n.current);return e}},3153:function(e,t,n){"use strict";function r(e,t){if(Object.is(e,t))return!0;
1if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,r]of e)if(!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}n.d(t,{X:function(){return r}})},49051:function(e,t,n){"use strict";n.d(t,{F:function(){return c},s:function(){return u}});var r=n(75271),a=n(8769),i=n(35987);let{useDebugValue:o}=r,{useSyncExternalStoreWithSelector:l}=a,s=e=>e;function u(e,t=s,n){let r=l(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return o(r),r}let d=(e,t)=>{let n=(0,i.M)(e),r=(e,r=t)=>u(n,e,r);return Object.assign(r,n),r},c=(e,t)=>e?d(e,t):d}},function(e){e.O(0,[38201,28846,15140,50326,8613,70306,2580,63027,71523,62706,10881,24256,88028,19388,36980,40548,14454,89761,37108,96096,71965,14345,93616,18960,21363,36825,11864,82313,58708,77774,62625,70566,55872,63779,21038,29679,99514,351,1155,34210,40141,39231,71404,90447,43599,29937,57225,90488,36314,40125,14386,83350,41168,54915,7551,54296,23924,83772,60537,46587,35870,92888,49774,40179],function(){return e(e.s=91384)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.