PageSourceSearch

https://drdamnationspam-aiostreams-personal.hf.space/assets/js/async/697.157cc274.js

js drdamnationspam-aiostreams-personal.hf.space collected 2026-10-03 16:49:23 UTC 2,011,271 bytes, 77 lines download raw bytes

1/*! For license information please see 697.157cc274.js.LICENSE.txt */
2(self.webpackChunk_aiostreams_frontend=self.webpackChunk_aiostreams_frontend||[]).push([["697"],{11627(e,t,n){"use strict";n.d(t,{AN:()=>ed,FR:()=>I,IG:()=>ep,fF:()=>eV,zM:()=>eW,Sj:()=>V,PM:()=>eF,MS:()=>j,vL:()=>m,Mp:()=>eL});var r,i,o,a,s,l,c,u,h,d,f,p,m,g,v,y,b,x,w,k=n(50405),S=n(47868),M=n(15920);let A={display:"none"};function E(e){let{id:t,value:n}=e;return k.createElement("div",{id:t,style:A},n)}function C(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;return k.createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":r,"aria-atomic":!0},n)}let O=(0,k.createContext)(null),P={draggable:"\n    To pick up a draggable item, press the space bar.\n    While dragging, use the arrow keys to move the item.\n    Press space again to drop the item in its new position, or press escape to cancel.\n  "},T={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function D(e){var t;let n,{announcements:r=T,container:i,hiddenTextDescribedById:o,screenReaderInstructions:a=P}=e,{announce:s,announcement:l}=function(){let[e,t]=(0,k.useState)("");return{announce:(0,k.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),c=(0,M.YG)("DndLiveRegion"),[u,h]=(0,k.useState)(!1);if((0,k.useEffect)(()=>{h(!0)},[]),t=(0,k.useMemo)(()=>({onDragStart(e){let{active:t}=e;s(r.onDragStart({active:t}))},onDragMove(e){let{active:t,over:n}=e;r.onDragMove&&s(r.onDragMove({active:t,over:n}))},onDragOver(e){let{active:t,over:n}=e;s(r.onDragOver({active:t,over:n}))},onDragEnd(e){let{active:t,over:n}=e;s(r.onDragEnd({active:t,over:n}))},onDragCancel(e){let{active:t,over:n}=e;s(r.onDragCancel({active:t,over:n}))}}),[s,r]),n=(0,k.useContext)(O),(0,k.useEffect)(()=>{if(!n)throw Error("useDndMonitor must be used within a children of <DndContext>");return n(t)},[t,n]),!u)return null;let d=k.createElement(k.Fragment,null,k.createElement(E,{id:o,value:a.draggable}),k.createElement(C,{id:c,announcement:l}));return i?(0,S.createPortal)(d,i):d}function R(){}function j(e,t){return(0,k.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}function I(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,k.useMemo)(()=>[...t].filter(e=>null!=e),[...t])}(r=d||(d={})).DragStart="dragStart",r.DragMove="dragMove",r.DragEnd="dragEnd",r.DragCancel="dragCancel",r.DragOver="dragOver",r.RegisterDroppable="registerDroppable",r.SetDroppableDisabled="setDroppableDisabled",r.UnregisterDroppable="unregisterDroppable";let z=Object.freeze({x:0,y:0});function _(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}let L=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=[];for(let e of r){let{id:r}=e,o=n.get(r);if(o){let n=function(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height);if(r<i&&n<o){let a=t.width*t.height,s=e.width*e.height,l=(i-r)*(o-n);return Number((l/(a+s-l)).toFixed(4))}return 0}(o,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(_)};function N(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:z}let B=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((e,t)=>({...e,top:e.top+ +t.y,bottom:e.bottom+ +t.y,left:e.left+ +t.x,right:e.right+ +t.x}),{...e})},F={ignoreTransform:!1};function V(e,t){void 0===t&&(t=F);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:r}=(0,M.zk)(e).getComputedStyle(e);t&&(n=function(e,t,n){let r=function(e){if(e.startsWith("matrix3d(")){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(t);if(!r)return e;let{scaleX:i,scaleY:o,x:a,y:s}=r,l=e.left-a-(1-i)*parseFloat(n),c=e.top-s-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),u=i?e.width/i:e.width,h=o?e.height/o:e.he
2ight;return{width:u,height:h,top:c,right:l+u,bottom:c+h,left:l}}(n,t,r))}let{top:r,left:i,width:o,height:a,bottom:s,right:l}=n;return{top:r,left:i,width:o,height:a,bottom:s,right:l}}function H(e){return V(e,{ignoreTransform:!0})}function W(e,t){let n=[];return e?function r(i){var o,a;let s;if(null!=t&&n.length>=t||!i)return n;if((0,M.wz)(i)&&null!=i.scrollingElement&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!(0,M.sb)(i)||(0,M.xZ)(i)||n.includes(i))return n;let l=(0,M.zk)(e).getComputedStyle(i);return(i!==e&&(void 0===(o=l)&&(o=(0,M.zk)(i).getComputedStyle(i)),s=/(auto|scroll|overlay)/,["overflow","overflowX","overflowY"].some(e=>{let t=o[e];return"string"==typeof t&&s.test(t)}))&&n.push(i),void 0===(a=l)&&(a=(0,M.zk)(i).getComputedStyle(i)),"fixed"===a.position)?n:r(i.parentNode)}(e):n}function $(e){let[t]=W(e,1);return null!=t?t:null}function U(e){return M.Sw&&e?(0,M.l6)(e)?e:(0,M.Ll)(e)?(0,M.wz)(e)||e===(0,M.TW)(e).scrollingElement?window:(0,M.sb)(e)?e:null:null:null}function K(e){return(0,M.l6)(e)?e.scrollX:e.scrollLeft}function q(e){return(0,M.l6)(e)?e.scrollY:e.scrollTop}function G(e){return{x:K(e),y:q(e)}}function Z(e){return!!M.Sw&&!!e&&e===document.scrollingElement}function Y(e){let t={x:0,y:0},n=Z(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},i=e.scrollTop<=t.y,o=e.scrollLeft<=t.x;return{isTop:i,isLeft:o,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}(i=f||(f={}))[i.Forward=1]="Forward",i[i.Backward=-1]="Backward";let X={x:.2,y:.2};function J(e){return e.reduce((e,t)=>(0,M.WQ)(e,G(t)),z)}let Q=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+K(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+q(t),0)}]];class ee{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=W(t),r=J(n);for(const[t,i,o]of(this.rect={...e},this.width=e.width,this.height=e.height,Q))for(const e of i)Object.defineProperty(this,e,{get:()=>{let i=o(n),a=r[t]-i;return this.rect[e]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class et{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function en(e,t){let n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}function er(e){e.preventDefault()}function ei(e){e.stopPropagation()}(o=p||(p={})).Click="click",o.DragStart="dragstart",o.Keydown="keydown",o.ContextMenu="contextmenu",o.Resize="resize",o.SelectionChange="selectionchange",o.VisibilityChange="visibilitychange",(a=m||(m={})).Space="Space",a.Down="ArrowDown",a.Right="ArrowRight",a.Left="ArrowLeft",a.Up="ArrowUp",a.Esc="Escape",a.Enter="Enter",a.Tab="Tab";let eo={start:[m.Space,m.Enter],cancel:[m.Esc],end:[m.Space,m.Enter,m.Tab]},ea=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case m.Right:return{...n,x:n.x+25};case m.Left:return{...n,x:n.x-25};case m.Down:return{...n,y:n.y+25};case m.Up:return{...n,y:n.y-25}}};class es{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new et((0,M.TW)(t)),this.windowListeners=new et((0,M.zk)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(p.Resize,this.handleCancel),this.windowListeners.add(p.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(p.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&function(e,t){if(void 0===t&&(t=V),!e)return;let{top:n,left:r,bottom:i,right:o}=t(e);$(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}(n),t(z)}handleKeyDown(e){if((0,M.kx)(e)){let{active:t,context:n,options:r}=this.props,{keyboardCodes:i=eo,coordinateGetter:o=ea,scrollBehavior:a="smooth"}=r,{code:s}=e;if(i.end.includes(s))return void this.handleEnd(e);if(i.cancel.includes(s))return void this.handleCancel(e);let{collisionRect:l}=n.current,c=l?{x:l.left,y:l.top}:z;this.referenceCoordinates||(this.referenceCoordinates=c);let u=o(e,{active:t,context:n.current,currentCoordinates:c});
2if(u){let t=(0,M.Re)(u,c),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(let n of i){let i=e.code,{isTop:o,isRight:s,isLeft:l,isBottom:c,maxScroll:h,minScroll:d}=Y(n),f=function(e){if(e===document.scrollingElement){let{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}let{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}(n),p={x:Math.min(i===m.Right?f.right-f.width/2:f.right,Math.max(i===m.Right?f.left:f.left+f.width/2,u.x)),y:Math.min(i===m.Down?f.bottom-f.height/2:f.bottom,Math.max(i===m.Down?f.top:f.top+f.height/2,u.y))},g=i===m.Right&&!s||i===m.Left&&!l,v=i===m.Down&&!c||i===m.Up&&!o;if(g&&p.x!==u.x){let e=n.scrollLeft+t.x,o=i===m.Right&&e<=h.x||i===m.Left&&e>=d.x;if(o&&!t.y)return void n.scrollTo({left:e,behavior:a});o?r.x=n.scrollLeft-e:r.x=i===m.Right?n.scrollLeft-h.x:n.scrollLeft-d.x,r.x&&n.scrollBy({left:-r.x,behavior:a});break}if(v&&p.y!==u.y){let e=n.scrollTop+t.y,o=i===m.Down&&e<=h.y||i===m.Up&&e>=d.y;if(o&&!t.x)return void n.scrollTo({top:e,behavior:a});o?r.y=n.scrollTop-e:r.y=i===m.Down?n.scrollTop-h.y:n.scrollTop-d.y,r.y&&n.scrollBy({top:-r.y,behavior:a});break}}this.handleMove(e,(0,M.WQ)((0,M.Re)(u,this.referenceCoordinates),r))}}}handleMove(e,t){let{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function el(e){return!!(e&&"distance"in e)}function ec(e){return!!(e&&"delay"in e)}es.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=eo,onActivation:i}=t,{active:o}=n,{code:a}=e.nativeEvent;if(r.start.includes(a)){let t=o.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==i||i({event:e.nativeEvent}),!0)}return!1}}];class eu{constructor(e,t,n){var r;void 0===n&&(n=function(e){let{EventTarget:t}=(0,M.zk)(e);return e instanceof t?e:(0,M.TW)(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:i}=e,{target:o}=i;this.props=e,this.events=t,this.document=(0,M.TW)(o),this.documentListeners=new et(this.document),this.listeners=new et(n),this.windowListeners=new et((0,M.zk)(o)),this.initialCoordinates=null!=(r=(0,M.e_)(i))?r:z,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(p.Resize,this.handleCancel),this.windowListeners.add(p.DragStart,er),this.windowListeners.add(p.VisibilityChange,this.handleCancel),this.windowListeners.add(p.ContextMenu,er),this.documentListeners.add(p.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(ec(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(el(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){let{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(p.Click,ei,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(p.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;let{activated:n,initialCoordinates:r,props:i}=this,{onMove:o,options:{activationConstraint:a}}=i;if(!r)return;let s=null!=(t=(0,M.e_)(e))?t:z,l=(0,M.Re)(r,s);if(!n&&a){if(el(a)){if(null!=a.tolerance&&en(l,a.tolerance))return this.handleCancel();if(en(l,a.distance))return this.handleStart()}return ec(a)&&en(l,a.tolerance)?this.handleCancel():void this.handlePending(a,l)}e.cancelable&&e.preventDefault(),o(s)}handleEnd(){let{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){let{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===m.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}let eh={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class ed extends eu{constructor(e){const{event:t}=e;super(e,eh,(0,M.TW)(t.target))}}ed.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!!n.isPrimary&&0===n.button&&(null==r||r({event:n}),!0)}}];(s=g||(g={}))[s.RightClick=2]="RightClick";let ef={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class ep extends eu{constructor(e){super(e,ef)}static setup(){return window.addEventListener(ef.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(ef.move.name,e)};function e(){}}}ep.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t,{touches:i}=n;return!(i.length>1)&&(null==r||r({event:n}),!0)}}],(l=v||(v={}))[l.Pointer=0]="Pointer",l[l.DraggableRect=1]="DraggableRect",(c=y||(y={}
2))[c.TreeOrder=0]="TreeOrder",c[c.ReversedTreeOrder=1]="ReversedTreeOrder";let em={x:{[f.Backward]:!1,[f.Forward]:!1},y:{[f.Backward]:!1,[f.Forward]:!1}};(u=b||(b={}))[u.Always=0]="Always",u[u.BeforeDragging=1]="BeforeDragging",u[u.WhileDragging=2]="WhileDragging",(x||(x={})).Optimized="optimized";let eg=new Map;function ev(e,t){return(0,M.KG)(n=>e?n||("function"==typeof t?t(e):e):null,[t,e])}function ey(e){let{callback:t,disabled:n}=e,r=(0,M._q)(t),i=(0,k.useMemo)(()=>{if(n||"u"<typeof window||void 0===window.ResizeObserver)return;let{ResizeObserver:e}=window;return new e(r)},[n]);return(0,k.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}function eb(e){return new ee(V(e),e)}function ex(e,t,n){void 0===t&&(t=eb);let[r,i]=(0,k.useState)(null);function o(){i(r=>{if(!e)return null;if(!1===e.isConnected){var i;return null!=(i=null!=r?r:n)?i:null}let o=t(e);return JSON.stringify(r)===JSON.stringify(o)?r:o})}let a=function(e){let{callback:t,disabled:n}=e,r=(0,M._q)(t),i=(0,k.useMemo)(()=>{if(n||"u"<typeof window||void 0===window.MutationObserver)return;let{MutationObserver:e}=window;return new e(r)},[r,n]);return(0,k.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}({callback(t){if(e)for(let n of t){let{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){o();break}}}}),s=ey({callback:o});return(0,M.Es)(()=>{o(),e?(null==s||s.observe(e),null==a||a.observe(document.body,{childList:!0,subtree:!0})):(null==s||s.disconnect(),null==a||a.disconnect())},[e]),r}let ew=[];function ek(e,t){void 0===t&&(t=[]);let n=(0,k.useRef)(null);return(0,k.useEffect)(()=>{n.current=null},t),(0,k.useEffect)(()=>{let t=e!==z;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?(0,M.Re)(e,n.current):z}function eS(e){return(0,k.useMemo)(()=>{let t,n;return e?(t=e.innerWidth,{top:0,left:0,right:t,bottom:n=e.innerHeight,width:t,height:n}):null},[e])}let eM=[],eA=[{sensor:ed,options:{}},{sensor:es,options:{}}],eE={current:{}},eC={draggable:{measure:H},droppable:{measure:H,strategy:b.WhileDragging,frequency:x.Optimized},dragOverlay:{measure:V}};class eO extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}let eP={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new eO,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:R},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:eC,measureDroppableContainers:R,windowRect:null,measuringScheduled:!1},eT={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:R,draggableNodes:new Map,over:null,measureDroppableContainers:R},eD=(0,k.createContext)(eT),eR=(0,k.createContext)(eP);function ej(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new eO}}}function eI(e,t){switch(t.type){case d.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case d.DragMove:if(null==e.draggable.active)return e;return{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case d.DragEnd:case d.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case d.RegisterDroppable:{let{element:n}=t,{id:r}=n,i=new eO(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case d.SetDroppableDisabled:{let{id:n,key:r,disabled:i}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;let a=new eO(e.droppable.containers);return a.set(n,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:a}}}case d.UnregisterDroppable:{let{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;
2let o=new eO(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function ez(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:i}=(0,k.useContext)(eD),o=(0,M.ZC)(r),a=(0,M.ZC)(null==n?void 0:n.id);return(0,k.useEffect)(()=>{if(!t&&!r&&o&&null!=a){if(!(0,M.kx)(o)||document.activeElement===o.target)return;let e=i.get(a);if(!e)return;let{activatorNode:t,node:n}=e;(t.current||n.current)&&requestAnimationFrame(()=>{for(let e of[t.current,n.current]){if(!e)continue;let t=(0,M.ag)(e);if(t){t.focus();break}}})}},[r,t,i,a,o]),null}let e_=(0,k.createContext)({...z,scaleX:1,scaleY:1});(h=w||(w={}))[h.Uninitialized=0]="Uninitialized",h[h.Initializing=1]="Initializing",h[h.Initialized=2]="Initialized";let eL=(0,k.memo)(function(e){var t,n,r,i,o,a,s,l;let c,u,h,p,m,g,x,A,{id:E,accessibility:C,autoScroll:P=!0,children:T,sensors:R=eA,collisionDetection:j=L,measuring:I,modifiers:_,...F}=e,[H,K]=(0,k.useReducer)(eI,void 0,ej),[q,Q]=function(){let[e]=(0,k.useState)(()=>new Set),t=(0,k.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,k.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)})},[e]),t]}(),[et,en]=(0,k.useState)(w.Uninitialized),er=et===w.Initialized,{draggable:{active:ei,nodes:eo,translate:ea},droppable:{containers:es}}=H,el=null!=ei?eo.get(ei):null,ec=(0,k.useRef)({initial:null,translated:null}),eu=(0,k.useMemo)(()=>{var e;return null!=ei?{id:ei,data:null!=(e=null==el?void 0:el.data)?e:eE,rect:ec}:null},[ei,el]),eh=(0,k.useRef)(null),[ed,ef]=(0,k.useState)(null),[ep,eb]=(0,k.useState)(null),eO=(0,M.YN)(F,Object.values(F)),eP=(0,M.YG)("DndDescribedBy",E),eT=(0,k.useMemo)(()=>es.getEnabled(),[es]),eL=(0,k.useMemo)(()=>({draggable:{...eC.draggable,...null==I?void 0:I.draggable},droppable:{...eC.droppable,...null==I?void 0:I.droppable},dragOverlay:{...eC.dragOverlay,...null==I?void 0:I.dragOverlay}}),[null==I?void 0:I.draggable,null==I?void 0:I.droppable,null==I?void 0:I.dragOverlay]),{droppableRects:eN,measureDroppableContainers:eB,measuringScheduled:eF}=function(e,t){let{dragging:n,dependencies:r,config:i}=t,[o,a]=(0,k.useState)(null),{frequency:s,measure:l,strategy:c}=i,u=(0,k.useRef)(e),h=function(){switch(c){case b.Always:return!1;case b.BeforeDragging:return n;default:return!n}}(),d=(0,M.YN)(h),f=(0,k.useCallback)(function(e){void 0===e&&(e=[]),d.current||a(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[d]),p=(0,k.useRef)(null),m=(0,M.KG)(t=>{if(h&&!n)return eg;if(!t||t===eg||u.current!==e||null!=o){let t=new Map;for(let n of e){if(!n)continue;if(o&&o.length>0&&!o.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}let e=n.node.current,r=e?new ee(l(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,o,n,h,l]);return(0,k.useEffect)(()=>{u.current=e},[e]),(0,k.useEffect)(()=>{h||f()},[n,h]),(0,k.useEffect)(()=>{o&&o.length>0&&a(null)},[JSON.stringify(o)]),(0,k.useEffect)(()=>{h||"number"!=typeof s||null!==p.current||(p.current=setTimeout(()=>{f(),p.current=null},s))},[s,h,f,...r]),{droppableRects:m,measureDroppableContainers:f,measuringScheduled:null!=o}}(eT,{dragging:er,dependencies:[ea.x,ea.y],config:eL.droppable}),eV=(m=(p=null!=ei?eo.get(ei):void 0)?p.node.current:null,(0,M.KG)(e=>{var t;return null==ei?null:null!=(t=null!=m?m:e)?t:null},[m,ei])),eH=(0,k.useMemo)(()=>ep?(0,M.e_)(ep):null,[ep]),eW=(c=(null==ed?void 0:ed.autoScrollEnabled)===!1,u="object"==typeof P?!1===P.enabled:!1===P,h=er&&!c&&!u,"object"==typeof P?{...P,enabled:h}:{enabled:h}),e$=ev(eV,eL.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e,o=(0,k.useRef)(!1),{x:a,y:s}="boolean"==typeof i?{x:i,y:i}:i;(0,M.Es)(()=>{if(!a&&!s||!t){o.current=!1;return}if(o.current||!r)return;let e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;let i=N(n(e),r);if(a||(i.x=0),s||(i.y=0),o.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){let t=$(e);t&&t.scrollBy({top:i.y,left:i.x})}},[t,a,s,r,n])}({activeNode:null!=ei?eo.get(ei):null,config:eW.layoutShiftCompensation,initialRect:e$,measure:eL.draggable.measure});let eU=ex(eV,eL.draggable.measure,e$),eK=ex(eV?eV.parentElement:null),eq=(0,k.useRef)({activatorEvent:null,active:null,activeNode:eV,collisionRect:null,collisions:null,droppableRects:eN,draggableNodes:eo,draggingNode:null,draggingNodeRect:null,droppableContainers:es,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),eG=es.getNodeFor(null==(t=eq.current.over)?void 0:t.id),eZ=function(e){let{measure:t}=e,[n,r]=(0,k.useState)(null),i=ey({callback:(0,k.useCallback)(e=>{for(let{target:n}of e)if((0,M.sb)(n)){r(e=>{let r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t])}),o=(0,k.useCallback)(e=>{let n=function(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return(0,M.sb)(t)?t:e}(e);null==i||i.disconnect(),n&&(null==i||i.observe(n)),r(n?t(n):null)},[t,i]),[a,s]=(0,M.lk)(o);return(0,k.useMemo)(()=>({nodeRef:a,rect:n,setRef:s}),[n,a,s])}({measure:eL.dragOverlay.measure}),eY=null!=(n=eZ.nodeRef.current)?n:eV,eX=er?null!=(r=eZ.rect)?r:eU:null,eJ=!!(eZ.nodeRef.current&&eZ.rect),eQ=(g=ev(o=eJ?null:eU),N(o,g)),e0=eS(eY?(0,M.zk)(eY):null),e1=(a=er?null!=eG?eG:eV:null,x=(0,k.useRef)(a),A=(0,M.KG)(e=>a?e&&e!==ew&&a&&x.current&&a.parentNode===x.current.parentNode?e:W(a):ew,[a]),(0,k.useEffect)(()=>{x.current=a},[a]),A),e2=function(e,t){void 0===t&&(t=V);let[n]=e,r=eS(n?(0,M.zk)(n):null),[i,o]=(0,k.useState)(eM);function a(){o(()=>e.length?e.map(e=>Z(e)?r:new ee(t(e),e)):eM)}let s=ey({callback:a});return(0,M.Es)(()=>
2{null==s||s.disconnect(),a(),e.forEach(e=>null==s?void 0:s.observe(e))},[e]),i}(e1),e4=function(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}(_,{transform:{x:ea.x-eQ.x,y:ea.y-eQ.y,scaleX:1,scaleY:1},activatorEvent:ep,active:eu,activeNodeRect:eU,containerNodeRect:eK,draggingNodeRect:eX,over:eq.current.over,overlayNodeRect:eZ.rect,scrollableAncestors:e1,scrollableAncestorRects:e2,windowRect:e0}),e5=eH?(0,M.WQ)(eH,ea):null,e3=function(e){let[t,n]=(0,k.useState)(null),r=(0,k.useRef)(e),i=(0,k.useCallback)(e=>{let t=U(e.target);t&&n(e=>e?(e.set(t,G(t)),new Map(e)):null)},[]);return(0,k.useEffect)(()=>{let t=r.current;if(e!==t){o(t);let a=e.map(e=>{let t=U(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,G(t)]):null}).filter(e=>null!=e);n(a.length?new Map(a):null),r.current=e}return()=>{o(e),o(t)};function o(e){e.forEach(e=>{let t=U(e);null==t||t.removeEventListener("scroll",i)})}},[i,e]),(0,k.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>(0,M.WQ)(e,t),z):J(e):z,[e,t])}(e1),e6=ek(e3),e8=ek(e3,[eU]),e9=(0,M.WQ)(e4,e6),e7=eX?B(eX,e4):null,te=eu&&e7?j({active:eu,collisionRect:e7,droppableRects:eN,droppableContainers:eT,pointerCoordinates:e5}):null,tt=function(e){if(!e||0===e.length)return null;let[t]=e;return t.id}(te),[tn,tr]=(0,k.useState)(null),ti=(s=eJ?e4:(0,M.WQ)(e4,e8),l=null!=(i=null==tn?void 0:tn.rect)?i:null,{...s,scaleX:l&&eU?l.width/eU.width:1,scaleY:l&&eU?l.height/eU.height:1}),to=(0,k.useRef)(null),ta=(0,k.useCallback)((e,t)=>{let{sensor:n,options:r}=t;if(null==eh.current)return;let i=eo.get(eh.current);if(!i)return;let o=e.nativeEvent,a=new n({active:eh.current,activeNode:i,event:o,options:r,context:eq,onAbort(e){if(!eo.get(e))return;let{onDragAbort:t}=eO.current,n={id:e};null==t||t(n),q({type:"onDragAbort",event:n})},onPending(e,t,n,r){if(!eo.get(e))return;let{onDragPending:i}=eO.current,o={id:e,constraint:t,initialCoordinates:n,offset:r};null==i||i(o),q({type:"onDragPending",event:o})},onStart(e){let t=eh.current;if(null==t)return;let n=eo.get(t);if(!n)return;let{onDragStart:r}=eO.current,i={activatorEvent:o,active:{id:t,data:n.data,rect:ec}};(0,S.unstable_batchedUpdates)(()=>{null==r||r(i),en(w.Initializing),K({type:d.DragStart,initialCoordinates:e,active:t}),q({type:"onDragStart",event:i}),ef(to.current),eb(o)})},onMove(e){K({type:d.DragMove,coordinates:e})},onEnd:s(d.DragEnd),onCancel:s(d.DragCancel)});function s(e){return async function(){let{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=eq.current,a=null;if(t&&i){let{cancelDrop:s}=eO.current;a={activatorEvent:o,active:t,collisions:n,delta:i,over:r},e===d.DragEnd&&"function"==typeof s&&await Promise.resolve(s(a))&&(e=d.DragCancel)}eh.current=null,(0,S.unstable_batchedUpdates)(()=>{K({type:e}),en(w.Uninitialized),tr(null),ef(null),eb(null),to.current=null;let t=e===d.DragEnd?"onDragEnd":"onDragCancel";if(a){let e=eO.current[t];null==e||e(a),q({type:t,event:a})}})}}to.current=a},[eo]),ts=(0,k.useCallback)((e,t)=>(n,r)=>{let i=n.nativeEvent,o=eo.get(r);null!==eh.current||!o||i.dndKit||i.defaultPrevented||!0===e(n,t.options,{active:o})&&(i.dndKit={capturedBy:t.sensor},eh.current=r,ta(n,t))},[eo,ta]),tl=(0,k.useMemo)(()=>R.reduce((e,t)=>{let{sensor:n}=t;return[...e,...n.activators.map(e=>({eventName:e.eventName,handler:ts(e.handler,t)}))]},[]),[R,ts]);(0,k.useEffect)(()=>{if(!M.Sw)return;let e=R.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(let t of e)null==t||t()}},R.map(e=>{let{sensor:t}=e;return t})),(0,M.Es)(()=>{eU&&et===w.Initializing&&en(w.Initialized)},[eU,et]),(0,k.useEffect)(()=>{let{onDragMove:e}=eO.current,{active:t,activatorEvent:n,collisions:r,over:i}=eq.current;if(!t||!n)return;let o={active:t,activatorEvent:n,collisions:r,delta:{x:e9.x,y:e9.y},over:i};(0,S.unstable_batchedUpdates)(()=>{null==e||e(o),q({type:"onDragMove",event:o})})},[e9.x,e9.y]),(0,k.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=eq.current;if(!e||null==eh.current||!t||!i)return;let{onDragOver:o}=eO.current,a=r.get(tt),s=a&&a.rect.current?{id:a.id,rect:a.rect.current,data:a.data,disabled:a.disabled}:null,l={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:s};(0,S.unstable_batchedUpdates)(()=>{tr(s),null==o||o(l),q({type:"onDragOver",event:l})})},[tt]),(0,M.Es)(()=>{eq.current={activatorEvent:ep,active:eu,activeNode:eV,collisionRect:e7,collisions:te,droppableRects:eN,draggableNodes:eo,draggingNode:eY,draggingNodeRect:eX,droppableContainers:es,over:tn,scrollableAncestors:e1,scrollAdjustedTranslate:e9},ec.current={initial:eX,translated:e7}},[eu,eV,te,e7,eo,eY,eX,eN,es,tn,e1,e9]),function(e){let{acceleration:t,activator:n=v.Pointer,canScroll:r,draggingRect:i,enabled:o,interval:a=5,order:s=y.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:u,delta:h,threshold:d}=e,p=function(e){let{delta:t,disabled:n}=e,r=(0,M.ZC)(t);return(0,M.KG)(e=>{if(n||!r||!e)return em;
2let i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[f.Backward]:e.x[f.Backward]||-1===i.x,[f.Forward]:e.x[f.Forward]||1===i.x},y:{[f.Backward]:e.y[f.Backward]||-1===i.y,[f.Forward]:e.y[f.Forward]||1===i.y}}},[n,t,r])}({delta:h,disabled:!o}),[m,g]=(0,M.$$)(),b=(0,k.useRef)({x:0,y:0}),x=(0,k.useRef)({x:0,y:0}),w=(0,k.useMemo)(()=>{switch(n){case v.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case v.DraggableRect:return i}},[n,i,l]),S=(0,k.useRef)(null),A=(0,k.useCallback)(()=>{let e=S.current;if(!e)return;let t=b.current.x*x.current.x,n=b.current.y*x.current.y;e.scrollBy(t,n)},[]),E=(0,k.useMemo)(()=>s===y.TreeOrder?[...c].reverse():c,[s,c]);(0,k.useEffect)(()=>{if(!o||!c.length||!w)return void g();for(let e of E){if((null==r?void 0:r(e))===!1)continue;let n=u[c.indexOf(e)];if(!n)continue;let{direction:i,speed:o}=function(e,t,n,r,i){let{top:o,left:a,right:s,bottom:l}=n;void 0===r&&(r=10),void 0===i&&(i=X);let{isTop:c,isBottom:u,isLeft:h,isRight:d}=Y(e),p={x:0,y:0},m={x:0,y:0},g={height:t.height*i.y,width:t.width*i.x};return!c&&o<=t.top+g.height?(p.y=f.Backward,m.y=r*Math.abs((t.top+g.height-o)/g.height)):!u&&l>=t.bottom-g.height&&(p.y=f.Forward,m.y=r*Math.abs((t.bottom-g.height-l)/g.height)),!d&&s>=t.right-g.width?(p.x=f.Forward,m.x=r*Math.abs((t.right-g.width-s)/g.width)):!h&&a<=t.left+g.width&&(p.x=f.Backward,m.x=r*Math.abs((t.left+g.width-a)/g.width)),{direction:p,speed:m}}(e,n,w,t,d);for(let e of["x","y"])p[e][i[e]]||(o[e]=0,i[e]=0);if(o.x>0||o.y>0){g(),S.current=e,m(A,a),b.current=o,x.current=i;return}}b.current={x:0,y:0},x.current={x:0,y:0},g()},[t,A,r,g,o,a,JSON.stringify(w),JSON.stringify(p),m,c,E,u,JSON.stringify(d)])}({...eW,delta:ea,draggingRect:e7,pointerCoordinates:e5,scrollableAncestors:e1,scrollableAncestorRects:e2});let tc=(0,k.useMemo)(()=>({active:eu,activeNode:eV,activeNodeRect:eU,activatorEvent:ep,collisions:te,containerNodeRect:eK,dragOverlay:eZ,draggableNodes:eo,droppableContainers:es,droppableRects:eN,over:tn,measureDroppableContainers:eB,scrollableAncestors:e1,scrollableAncestorRects:e2,measuringConfiguration:eL,measuringScheduled:eF,windowRect:e0}),[eu,eV,eU,ep,te,eK,eZ,eo,es,eN,tn,eB,e1,e2,eL,eF,e0]),tu=(0,k.useMemo)(()=>({activatorEvent:ep,activators:tl,active:eu,activeNodeRect:eU,ariaDescribedById:{draggable:eP},dispatch:K,draggableNodes:eo,over:tn,measureDroppableContainers:eB}),[ep,tl,eu,eU,K,eP,eo,tn,eB]);return k.createElement(O.Provider,{value:Q},k.createElement(eD.Provider,{value:tu},k.createElement(eR.Provider,{value:tc},k.createElement(e_.Provider,{value:ti},T)),k.createElement(ez,{disabled:(null==C?void 0:C.restoreFocus)===!1})),k.createElement(D,{...C,hiddenTextDescribedById:eP}))}),eN=(0,k.createContext)(null),eB="button";function eF(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e,o=(0,M.YG)("Draggable"),{activators:a,activatorEvent:s,active:l,activeNodeRect:c,ariaDescribedById:u,draggableNodes:h,over:d}=(0,k.useContext)(eD),{role:f=eB,roleDescription:p="draggable",tabIndex:m=0}=null!=i?i:{},g=(null==l?void 0:l.id)===t,v=(0,k.useContext)(g?e_:eN),[y,b]=(0,M.lk)(),[x,w]=(0,M.lk)(),S=(0,k.useMemo)(()=>a.reduce((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e},{}),[a,t]),A=(0,M.YN)(n);return(0,M.Es)(()=>(h.set(t,{id:t,key:o,node:y,activatorNode:x,data:A}),()=>{let e=h.get(t);e&&e.key===o&&h.delete(t)}),[h,t]),{active:l,activatorEvent:s,activeNodeRect:c,attributes:(0,k.useMemo)(()=>({role:f,tabIndex:m,"aria-disabled":r,"aria-pressed":!!g&&f===eB||void 0,"aria-roledescription":p,"aria-describedby":u.draggable}),[r,f,m,g,p,u.draggable]),isDragging:g,listeners:r?void 0:S,node:y,over:d,setNodeRef:b,setActivatorNodeRef:w,transform:v}}function eV(){return(0,k.useContext)(eR)}let eH={timeout:25};function eW(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e,o=(0,M.YG)("Droppable"),{active:a,dispatch:s,over:l,measureDroppableContainers:c}=(0,k.useContext)(eD),u=(0,k.useRef)({disabled:n}),h=(0,k.useRef)(!1),f=(0,k.useRef)(null),p=(0,k.useRef)(null),{disabled:m,updateMeasurementsFor:g,timeout:v}={...eH,...i},y=(0,M.YN)(null!=g?g:r),b=ey({callback:(0,k.useCallback)(()=>
2{if(!h.current){h.current=!0;return}null!=p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{c(Array.isArray(y.current)?y.current:[y.current]),p.current=null},v)},[v]),disabled:m||!a}),x=(0,k.useCallback)((e,t)=>{b&&(t&&(b.unobserve(t),h.current=!1),e&&b.observe(e))},[b]),[w,S]=(0,M.lk)(x),A=(0,M.YN)(t);return(0,k.useEffect)(()=>{b&&w.current&&(b.disconnect(),h.current=!1,b.observe(w.current))},[w,b]),(0,k.useEffect)(()=>(s({type:d.RegisterDroppable,element:{id:r,key:o,disabled:n,node:w,rect:f,data:A}}),()=>s({type:d.UnregisterDroppable,key:o,id:r})),[r]),(0,k.useEffect)(()=>{n!==u.current.disabled&&(s({type:d.SetDroppableDisabled,id:r,key:o,disabled:n}),u.current.disabled=n)},[r,o,n,s]),{active:a,rect:f,isOver:(null==l?void 0:l.id)===r,node:w,over:l,setNodeRef:S}}},69788(e,t,n){"use strict";n.d(t,{FN:()=>r}),n(15920);let r=e=>{let{transform:t}=e;return{...t,x:0}}},57320(e,t,n){"use strict";n.d(t,{_G:()=>u,be:()=>a,gB:()=>f,gl:()=>x});var r=n(50405),i=n(11627),o=n(15920);function a(e,t,n){let r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function s(e){return null!==e&&e>=0}let l=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e,o=a(t,r,n),s=t[i],l=o[i];return l&&s?{x:l.left-s.left,y:l.top-s.top,scaleX:l.width/s.width,scaleY:l.height/s.height}:null},c={scaleX:1,scaleY:1},u=e=>{var t,n,r,i;let o,a,s,{activeIndex:l,activeNodeRect:u,index:h,rects:d,overIndex:f}=e,p=null!=(t=d[l])?t:u;if(!p)return null;if(h===l){let e=d[f];return e?{x:0,y:l<f?e.top+e.height-(p.top+p.height):e.top-p.top,...c}:null}let m=(n=d,r=h,i=l,o=n[r],a=n[r-1],s=n[r+1],o?i<r?a?o.top-(a.top+a.height):s?s.top-(o.top+o.height):0:s?s.top-(o.top+o.height):a?o.top-(a.top+a.height):0:0);return h>l&&h<=f?{x:0,y:-p.height-m,...c}:h<l&&h>=f?{x:0,y:p.height+m,...c}:{x:0,y:0,...c}},h="Sortable",d=r.createContext({activeIndex:-1,containerId:h,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:l,disabled:{draggable:!1,droppable:!1}});function f(e){let{children:t,id:n,items:a,strategy:s=l,disabled:c=!1}=e,{active:u,dragOverlay:f,droppableRects:p,over:m,measureDroppableContainers:g}=(0,i.fF)(),v=(0,o.YG)(h,n),y=null!==f.rect,b=(0,r.useMemo)(()=>a.map(e=>"object"==typeof e&&"id"in e?e.id:e),[a]),x=null!=u,w=u?b.indexOf(u.id):-1,k=m?b.indexOf(m.id):-1,S=(0,r.useRef)(b),M=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(b,S.current),A=-1!==k&&-1===w||M,E="boolean"==typeof c?{draggable:c,droppable:c}:c;(0,o.Es)(()=>{M&&x&&g(b)},[M,b,x,g]),(0,r.useEffect)(()=>{S.current=b},[b]);let C=(0,r.useMemo)(()=>({activeIndex:w,containerId:v,disabled:E,disableTransforms:A,items:b,overIndex:k,useDragOverlay:y,sortedRects:b.reduce((e,t,n)=>{let r=p.get(t);return r&&(e[n]=r),e},Array(b.length)),strategy:s}),[w,v,E.draggable,E.droppable,A,b,k,p,y,s]);return r.createElement(d.Provider,{value:C},t)}let p=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return a(n,r,i).indexOf(t)},m=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:o,newIndex:a,previousItems:s,previousContainerId:l,transition:c}=e;return!!c&&!!r&&(s===o||i!==a)&&(!!n||a!==i&&t===l)},g={duration:200,easing:"ease"},v="transform",y=o.Ks.Transition.toString({property:v,duration:0,easing:"linear"}),b={roleDescription:"sortable"};function x(e){var t,n,a,l;let{animateLayoutChanges:c=m,attributes:u,disabled:h,data:f,getNewIndex:x=p,id:w,strategy:k,resizeObserverConfig:S,transition:M=g}=e,{items:A,containerId:E,activeIndex:C,disabled:O,disableTransforms:P,sortedRects:T,overIndex:D,useDragOverlay:R,strategy:j}=(0,r.useContext)(d),I=(t=h,n=O,"boolean"==typeof t?{draggable:t,droppable:!1}:{draggable:null!=(a=null==t?void 0:t.draggable)?a:n.draggable,droppable:null!=(l=null==t?void 0:t.droppable)?l:n.droppable}),z=A.indexOf(w),_=(0,r.useMemo)(()=>({sortable:{containerId:E,index:z,items:A},...f}),[E,f,z,A]),L=(0,r.useMemo)(()=>A.slice(A.indexOf(w)),[A,w]),{rect:N,node:B,isOver:F,setNodeRef:V}=(0,i.zM)({id:w,data:_,disabled:I.droppable,resizeObserverConfig:{updateMeasurementsFor:L,...S}}),{active:H,activatorEvent:W,activeNodeRect:$,attributes:U,setNodeRef:K,listeners:q,isDragging:G,over:Z,setA
2ctivatorNodeRef:Y,transform:X}=(0,i.PM)({id:w,data:_,attributes:{...b,...u},disabled:I.draggable}),J=(0,o.jn)(V,K),Q=!!H,ee=Q&&!P&&s(C)&&s(D),et=!R&&G,en=et&&ee?X:null,er=ee?null!=en?en:(null!=k?k:j)({rects:T,activeNodeRect:$,activeIndex:C,overIndex:D,index:z}):null,ei=s(C)&&s(D)?x({id:w,items:A,activeIndex:C,overIndex:D}):z,eo=null==H?void 0:H.id,ea=(0,r.useRef)({activeId:eo,items:A,newIndex:ei,containerId:E}),es=A!==ea.current.items,el=c({active:H,containerId:E,isDragging:G,isSorting:Q,id:w,index:z,items:A,newIndex:ea.current.newIndex,previousItems:ea.current.items,previousContainerId:ea.current.containerId,transition:M,wasDragging:null!=ea.current.activeId}),ec=function(e){let{disabled:t,index:n,node:a,rect:s}=e,[l,c]=(0,r.useState)(null),u=(0,r.useRef)(n);return(0,o.Es)(()=>{if(!t&&n!==u.current&&a.current){let e=s.current;if(e){let t=(0,i.Sj)(a.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&c(n)}}n!==u.current&&(u.current=n)},[t,n,a,s]),(0,r.useEffect)(()=>{l&&c(null)},[l]),l}({disabled:!el,index:z,node:B,rect:N});return(0,r.useEffect)(()=>{Q&&ea.current.newIndex!==ei&&(ea.current.newIndex=ei),E!==ea.current.containerId&&(ea.current.containerId=E),A!==ea.current.items&&(ea.current.items=A)},[Q,ei,E,A]),(0,r.useEffect)(()=>{if(eo===ea.current.activeId)return;if(null!=eo&&null==ea.current.activeId){ea.current.activeId=eo;return}let e=setTimeout(()=>{ea.current.activeId=eo},50);return()=>clearTimeout(e)},[eo]),{active:H,activeIndex:C,attributes:U,data:_,rect:N,index:z,newIndex:ei,items:A,isOver:F,isSorting:Q,isDragging:G,listeners:q,node:B,overIndex:D,over:Z,setNodeRef:J,setActivatorNodeRef:Y,setDroppableNodeRef:V,setDraggableNodeRef:K,transform:null!=ec?ec:er,transition:ec||es&&ea.current.newIndex===z?y:(!et||(0,o.kx)(W))&&M&&(Q||el)?o.Ks.Transition.toString({...M,property:v}):void 0}}i.vL.Down,i.vL.Right,i.vL.Up,i.vL.Left},15920(e,t,n){"use strict";n.d(t,{$$:()=>m,Es:()=>f,KG:()=>v,Ks:()=>C,Ll:()=>s,Re:()=>M,Sw:()=>o,TW:()=>d,WQ:()=>S,YG:()=>w,YN:()=>g,ZC:()=>b,_q:()=>p,ag:()=>P,e_:()=>E,jn:()=>i,kx:()=>A,l6:()=>a,lk:()=>y,sb:()=>u,wz:()=>c,xZ:()=>h,zk:()=>l});var r=n(50405);function i(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)(()=>e=>{t.forEach(t=>t(e))},t)}let o="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function a(e){let t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function s(e){return"nodeType"in e}function l(e){var t,n;return e?a(e)?e:s(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function c(e){let{Document:t}=l(e);return e instanceof t}function u(e){return!a(e)&&e instanceof l(e).HTMLElement}function h(e){return e instanceof l(e).SVGElement}function d(e){return e?a(e)?e.document:s(e)?c(e)?e:u(e)||h(e)?e.ownerDocument:document:document:document}let f=o?r.useLayoutEffect:r.useEffect;function p(e){let t=(0,r.useRef)(e);return f(()=>{t.current=e}),(0,r.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}function m(){let e=(0,r.useRef)(null);return[(0,r.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,r.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}function g(e,t){void 0===t&&(t=[e]);let n=(0,r.useRef)(e);return f(()=>{n.current!==e&&(n.current=e)},t),n}function v(e,t){let n=(0,r.useRef)();return(0,r.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function y(e){let t=p(e),n=(0,r.useRef)(null),i=(0,r.useCallback)(e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e},[]);return[n,i]}function b(e){let t=(0,r.useRef)();return(0,r.useEffect)(()=>{t.current=e},[e]),t.current}let x={};function w(e,t){return(0,r.useMemo)(()=>{if(t)return t;let n=null==x[e]?0:x[e]+1;return x[e]=n,e+"-"+n},[e,t])}function k(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((t,n)=>{for(let[r,i]of Object.entries(n)){let n=t[r];null!=n&&(t[r]=n+e*i)}return t},{...t})}}let S=k(1),M=k(-1);function A(e){if(!e)return!1;let{KeyboardEvent:t}=l(e.target);return t&&e instanceof t}function E(e){if(function(e){if(!e)return!1;let{TouchEvent:t}=l(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return"clientX"in e&&"clientY"in e?{x:e.clientX,y:e.clientY}:null}let C=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[C.Translate.toString(e),C.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),O="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function P(e){return e.matches(O)?e:e.querySelector(O)}},47661(e,t,n){"use strict";n.d(t,{Eq:()=>c});var r=new WeakMap,i=new WeakMap,o={},a=0,s=function(e){return e&&(e.host||s(e.parentNode))},l=function(e,t,n,l){var c=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=s(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});o[n]||(o[n]=new WeakMap);var u=o[n],h=[],d=new Set,f=new Set(c),p=function(e){!e||d.has(e)||(d.add(e),p(e.parentNode))};
2c.forEach(p);var m=function(e){!e||f.has(e)||Array.prototype.forEach.call(e.children,function(e){if(d.has(e))m(e);else try{var t=e.getAttribute(l),o=null!==t&&"false"!==t,a=(r.get(e)||0)+1,s=(u.get(e)||0)+1;r.set(e,a),u.set(e,s),h.push(e),1===a&&o&&i.set(e,!0),1===s&&e.setAttribute(n,"true"),o||e.setAttribute(l,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return m(t),d.clear(),a++,function(){h.forEach(function(e){var t=r.get(e)-1,o=u.get(e)-1;r.set(e,t),u.set(e,o),t||(i.has(e)||e.removeAttribute(l),i.delete(e)),o||e.removeAttribute(n)}),--a||(r=new WeakMap,r=new WeakMap,i=new WeakMap,o={})}},c=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||("u"<typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),l(r,i,n,"aria-hidden")):function(){return null}}},28213(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(0===n.length)return!0;var r=e.name||"",i=(e.type||"").toLowerCase(),o=i.replace(/\/.*$/,"");return n.some(function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?o===t.replace(/\/.*$/,""):i===t})}return!0}},84933(e,t){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,o=l(e),a=o[0],s=o[1],c=new i((a+s)*3/4-s),u=0,h=s>0?a-4:a;for(n=0;n<h;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=0,s=r-i;a<s;a+=16383)o.push(function(e,t,r){for(var i,o=[],a=t;a<r;a+=3)i=(e[a]<<16&0xff0000)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(n[i>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&o.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),o.join("")};for(var n=[],r=[],i="u">typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a<s;++a)n[a]=o[a],r[o.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r[45]=62,r[95]=63},8963(e,t,n){"use strict";var r=n(84933),i=n(63328),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return u(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e){var r=e,i=t;if(("string"!=typeof i||""===i)&&(i="utf8"),!s.isEncoding(i))throw TypeError("Unknown encoding: "+i);var o=0|p(r,i),l=a(o),c=l.write(r,i);return c!==o&&(l=l.slice(0,c)),l}if(ArrayBuffer.isView(e)){var u=e;if(P(u,Uint8Array)){var m=new Uint8Array(u);return d(m.buffer,m.byteOffset,m.byteLength)}return h(u)}if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(P(e,ArrayBuffer)||e&&P(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(P(e,SharedArrayBuffer)||e&&P(e.buffer,SharedArrayBuffer)))return d(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var g=e.valueOf&&e.valueOf();if(null!=g&&g!==e)return s.from(g,t,n);var v=function(e){if(s.isBuffer(e)){var t=0|f(e.length),n=a(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?a(0):h(e):"Buffer"===e.type&&Array.isArray(e.data)?h(e.data):void 0}(e);if(v)return v;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');
vendor: 17,200 bytes, line 2
2if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return c(e),a(e<0?0:0|f(e))}function h(e){for(var t=e.length<0?0:0|f(e.length),n=a(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function d(e,t,n){var r;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),s.prototype),r}function f(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||P(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return E(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return C(e).length;default:if(i)return r?-1:E(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){var i,o,a,s=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=T[e[o]];return i}(this,t,n);case"utf8":case"utf-8":return b(this,t,n);case"ascii":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}(this,t,n);case"latin1":case"binary":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}(this,t,n);case"base64":return i=this,o=t,a=n,0===o&&a===i.length?r.fromByteArray(i):r.fromByteArray(i.slice(o,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length-1;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}(this,t,n);default:if(s)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){var o;if(0===e.length)return -1;if("string"==typeof n?(r=n,n=0):n>0x7fffffff?n=0x7fffffff:n<-0x80000000&&(n=-0x80000000),(o=n*=1)!=o&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length)if(i)return -1;else n=e.length-1;else if(n<0)if(!i)return -1;else n=0;if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,n);else return Uint8Array.prototype.lastIndexOf.call(e,t,n);return y(e,[t],n,r,i)}throw TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var u=-1;for(o=n;o<s;o++)if(c(e,o)===c(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===l)return u*a}else -1!==u&&(o-=o-u),u=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var h=!0,d=0;d<l;d++)if(c(e,o+d)!==c(t,d)){h=!1;break}if(h)return o}return -1}function b(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,l,c=e[i],u=null,h=c>239?4:c>223?3:c>191?2:1;if(i+h<=n)switch(h){case 1:c<128&&(u=c);break;case 2:(192&(o=e[i+1]))==128&&(l=(31&c)<<6|63&o)>127&&(u=l);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(l=(15&c)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,h=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=h}var d=r,f=d.length;if(f<=4096)return String.fromCharCode.apply(String,d);for(var p="",m=0;m<f;)p+=String.fromCharCode.apply(String,d.slice(m,m+=4096));return p}function x(e,t,n){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>n)throw RangeError("Trying to access beyond buffer length")}function w(e,t,n,r,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw RangeError('"value" argument is out of bounds');if(n+r>e.length)throw RangeError("Index out of range")}function k(e,t,n,r,i,o){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function S(e,t,n,r,o){return t*=1,n>>>=0,o||k(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function M(e,t,n,r,o){return t*=1,n>>>=0,o||k(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),!s.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return(c(e),e<=0)?a(e):void 0!==t?"string"==typeof n?a(e).fill(t,n):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return u(e)},s.allocUnsafeSlow=function(e){return u(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(P(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),P(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:+(r<n)},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(n=0,t=0;n<e.length;++n)t+=e[n].length;var n,r=s.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(P(o,Uint8Array))i+o.length>r.length?s.from(o).copy(r,i):Uint8Array.prototype.set.call(r,o,i);else if(s.isBuffer(o))o.copy(r,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=o.length}return r},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?b(this,0,e):m.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(P(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,l=Math.min(o,a),c=this.slice(r,i),u=e.slice(t,n),h=0;h<l;++h)if(c[h]!==u[h]){o=c[h],a=u[h];break}return o<a?-1:+(a<o)},s.prototype.includes=function(e,t,n){return -1!==this.indexOf(e,t,n)},s.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},s.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,a,s,l,c,u,h,d=this.length-t;if((void 0===n||n>d)&&(n=d),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var f=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s,l=parseInt(t.substr(2*a,2),16);if((s=l)!=s)break;e[n+a]=l}return a}(this,e,t,n);case"utf8":case"utf-8":return i=t,o=n,O(E(e,this.length-i),this,i,o);case"ascii":case"latin1":case"binary":return a=t,s=n,O(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(e),this,a,s);case"base64":return l=t,c=n,O(C(e),this,l,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u=t,h=n,O(function(e,t){for(var n,r,i=[],o=0;o<e.length&&!((t-=2)<0);++o)r=(n=e.charCodeAt(o))>>8,i.push(n%256),i.push(r);return i}(e,this.length-u),this,u,h);default:if(f)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),f=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,s.prototype),r},s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||x(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||x(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||x(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||x(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||x(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||x(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||x(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?0xffff0000|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||x(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?0xffff0000|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||x(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||x(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e*=1,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;w(this,e,t,n,i,0)}var o=1,a=0;for(this[t]=255&e;++a<n&&(o*=256);)this[t+a]=e/o&255;return t+n},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,n,r){if(e*=1,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;w(this,e,t,n,i,0)}var o=n-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e*=1,t>>>=0,n||w(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e*=1,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e*=1,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e*=1,t>>>=0,n||w(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e*=1,t>>>=0,n||w(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e*=1,t>>>=0,!r){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e*=1,t>>>=0,!r){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e*=1,t>>>=0,n||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e*=1,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e*=1,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e*=1,t>>>=0,n||w(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e*=1,t>>>=0,n||w(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,n){return S(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return S(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return M(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return M(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},s.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!s.isEncoding(r))throw TypeError("Unknown encoding: "+r);if(1===e.length){var i,o=e.charCodeAt(0);("utf8"===r&&o<128||"latin1"===r)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError("Out of range index");if(n<=t)return this;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=s.isBuffer(e)?e:s.from(e,r),l=a.length;
2if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=a[i%l]}return this};var A=/[^+/0-9A-Za-z-_]/g;function E(e,t){t=t||1/0;for(var n,r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319||a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return o}function C(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(A,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function O(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function P(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var T=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()},1263(e){!function(t){"use strict";var n,r={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},i=!0,o="[DecimalError] ",a=o+"Invalid argument: ",s=o+"Exponent out of range: ",l=Math.floor,c=Math.pow,u=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,h=l(1286742750677284.5),d={};function f(e,t){var n,r,o,a,s,l,c,u,h=e.constructor,d=h.precision;if(!e.s||!t.s)return t.s||(t=new h(e)),i?S(t,d):t;if(c=e.d,u=t.d,s=e.e,o=t.e,c=c.slice(),a=s-o){for(a<0?(r=c,a=-a,l=u.length):(r=u,o=s,l=c.length),a>(l=(s=Math.ceil(d/7))>l?s+1:l+1)&&(a=l,r.length=1),r.reverse();a--;)r.push(0);r.reverse()}for((l=c.length)-(a=u.length)<0&&(a=l,r=u,u=c,c=r),n=0;a;)n=(c[--a]=c[a]+u[a]+n)/1e7|0,c[a]%=1e7;for(n&&(c.unshift(n),++o),l=c.length;0==c[--l];)c.pop();return t.d=c,t.e=o,i?S(t,d):t}function p(e,t,n){if(e!==~~e||e<t||e>n)throw Error(a+e)}function m(e){var t,n,r,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)(n=7-(r=e[t]+"").length)&&(o+=x(n)),o+=r;(n=7-(r=(a=e[t])+"").length)&&(o+=x(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}d.absoluteValue=d.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},d.comparedTo=d.cmp=function(e){var t,n,r,i;if(e=new this.constructor(e),this.s!==e.s)return this.s||-e.s;if(this.e!==e.e)return this.e>e.e^this.s<0?1:-1;for(t=0,n=(r=this.d.length)<(i=e.d.length)?r:i;t<n;++t)if(this.d[t]!==e.d[t])return this.d[t]>e.d[t]^this.s<0?1:-1;return r===i?0:r>i^this.s<0?1:-1},d.decimalPlaces=d.dp=function(){var e=this.d.length-1,t=(e-this.e)*7;if(e=this.d[e])for(;e%10==0;e/=10)t--;return t<0?0:t},d.dividedBy=d.div=function(e){return g(this,new this.constructor(e))},d.dividedToIntegerBy=d.idiv=function(e){var t=this.constructor;return S(g(this,new t(e),0,1),t.precision)},d.equals=d.eq=function(e){return!this.cmp(e)},d.exponent=function(){return y(this)},d.greaterThan=d.gt=function(e){return this.cmp(e)>0},d.greaterThanOrEqualTo=d.gte=function(e){return this.cmp(e)>=0},d.isInteger=d.isint=function(){return this.e>this.d.length-2},d.isNegative=d.isneg=function(){return this.s<0},d.isPositive=d.ispos=function(){return this.s>0},d.isZero=function(){return 0===this.s},d.lessThan=d.lt=function(e){return 0>this.cmp(e)},d.lessThanOrEqualTo=d.lte=function(e){return 1>this.cmp(e)},d.logarithm=d.log=function(e){var t,r=this.constructor,a=r.precision,s=a+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(n))throw Error(o+"NaN");if(this.s<1)throw Error(o+(this.s?"NaN":"-Infinity"));return this.eq(n)?new r(0):(i=!1,t=g(w(this,s),w(e,s),s),i=!0,S(t,a))},d.minus=d.sub=function(e){return e=new this.constructor(e),this.s==e.s?M(this,e):f(this,(e.s=-e.s,e))},d.modulo=d.mod=function(e){var t,n=this.constructor,r=n.precision;if(!(e=new n(e)).s)throw Error(o+"NaN");return this.s?(i=!1,t=g(this,e,0,1).times(e),i=!0,this.minus(t)):S(new n(this),r)},d.naturalExponential=d.exp=function(){return v(this)}
2,d.naturalLogarithm=d.ln=function(){return w(this)},d.negated=d.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},d.plus=d.add=function(e){return e=new this.constructor(e),this.s==e.s?f(this,e):M(this,(e.s=-e.s,e))},d.precision=d.sd=function(e){var t,n,r;if(void 0!==e&&!!e!==e&&1!==e&&0!==e)throw Error(a+e);if(t=y(this)+1,n=7*(r=this.d.length-1)+1,r=this.d[r]){for(;r%10==0;r/=10)n--;for(r=this.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},d.squareRoot=d.sqrt=function(){var e,t,n,r,a,s,c,u=this.constructor;if(this.s<1){if(!this.s)return new u(0);throw Error(o+"NaN")}for(e=y(this),i=!1,0==(a=Math.sqrt(+this))||a==1/0?(((t=m(this.d)).length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=l((e+1)/2)-(e<0||e%2),r=new u(t=a==1/0?"5e"+e:(t=a.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new u(a.toString()),a=c=(n=u.precision)+3;;)if(r=(s=r).plus(g(this,s,c+2)).times(.5),m(s.d).slice(0,c)===(t=m(r.d)).slice(0,c)){if(t=t.slice(c-3,c+1),a==c&&"4999"==t){if(S(s,n+1,0),s.times(s).eq(this)){r=s;break}}else if("9999"!=t)break;c+=4}return i=!0,S(r,n)},d.times=d.mul=function(e){var t,n,r,o,a,s,l,c,u,h=this.constructor,d=this.d,f=(e=new h(e)).d;if(!this.s||!e.s)return new h(0);for(e.s*=this.s,n=this.e+e.e,(c=d.length)<(u=f.length)&&(a=d,d=f,f=a,s=c,c=u,u=s),a=[],r=s=c+u;r--;)a.push(0);for(r=u;--r>=0;){for(t=0,o=c+r;o>r;)l=a[o]+f[r]*d[o-r-1]+t,a[o--]=l%1e7|0,t=l/1e7|0;a[o]=(a[o]+t)%1e7|0}for(;!a[--s];)a.pop();return t?++n:a.shift(),e.d=a,e.e=n,i?S(e,h.precision):e},d.toDecimalPlaces=d.todp=function(e,t){var n=this,r=n.constructor;return(n=new r(n),void 0===e)?n:(p(e,0,1e9),void 0===t?t=r.rounding:p(t,0,8),S(n,e+y(n)+1,t))},d.toExponential=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=A(r,!0):(p(e,0,1e9),void 0===t?t=i.rounding:p(t,0,8),n=A(r=S(new i(r),e+1,t),!0,e+1)),n},d.toFixed=function(e,t){var n,r,i=this.constructor;return void 0===e?A(this):(p(e,0,1e9),void 0===t?t=i.rounding:p(t,0,8),n=A((r=S(new i(this),e+y(this)+1,t)).abs(),!1,e+y(r)+1),this.isneg()&&!this.isZero()?"-"+n:n)},d.toInteger=d.toint=function(){var e=this.constructor;return S(new e(this),y(this)+1,e.rounding)},d.toNumber=function(){return+this},d.toPower=d.pow=function(e){var t,r,a,s,c,u,h=this,d=h.constructor,f=+(e=new d(e));if(!e.s)return new d(n);if(!(h=new d(h)).s){if(e.s<1)throw Error(o+"Infinity");return h}if(h.eq(n))return h;if(a=d.precision,e.eq(n))return S(h,a);if(u=(t=e.e)>=(r=e.d.length-1),c=h.s,u){if((r=f<0?-f:f)<=0x1fffffffffffff){for(s=new d(n),t=Math.ceil(a/7+4),i=!1;r%2&&E((s=s.times(h)).d,t),0!==(r=l(r/2));)E((h=h.times(h)).d,t);return i=!0,e.s<0?new d(n).div(s):S(s,a)}}else if(c<0)throw Error(o+"NaN");return c=c<0&&1&e.d[Math.max(t,r)]?-1:1,h.s=1,i=!1,s=e.times(w(h,a+12)),i=!0,(s=v(s)).s=c,s},d.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?(n=y(i),r=A(i,n<=o.toExpNeg||n>=o.toExpPos)):(p(e,1,1e9),void 0===t?t=o.rounding:p(t,0,8),n=y(i=S(new o(i),e,t)),r=A(i,e<=n||n<=o.toExpNeg,e)),r},d.toSignificantDigits=d.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(p(e,1,1e9),void 0===t?t=n.rounding:p(t,0,8)),S(new n(this),e,t)},d.toString=d.valueOf=d.val=d.toJSON=function(){var e=y(this),t=this.constructor;return A(this,e<=t.toExpNeg||e>=t.toExpPos)};var g=function(){function e(e,t){var n,r=0,i=e.length;for(e=e.slice();i--;)n=e[i]*t+r,e[i]=n%1e7|0,r=n/1e7|0;return r&&e.unshift(r),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=+(e[n]<t[n]),e[n]=1e7*r+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,i,a,s){var l,c,u,h,d,f,p,m,g,v,b,x,w,k,M,A,E,C,O=r.constructor,P=r.s==i.s?1:-1,T=r.d,D=i.d;if(!r.s)return new O(r);if(!i.s)throw Error(o+"Division by zero");for(u=0,c=r.e-i.e,E=D.length,M=T.length,m=(p=new O(P)).d=[];D[u]==(T[u]||0);)++u;if(D[u]>(T[u]||0)&&--c,(x=null==a?a=O.precision:s?a+(y(r)-y(i))+1:a)<0)return new O(0);if(x=x/7+2|0,u=0,1==E)for(h=0,D=D[0],x++;(u<M||h)&&x--;u++)w=1e7*h+(T[u]||0),m[u]=w/D|0,h=w%D|0;else{for((h=1e7/(D[0]+1)|0)>1&&(D=e(D,h),T=e(T,h),E=D.length,M=T.length),k=E,v=(g=T.slice(0,E)).length;v<E;)g[v++]=0;(C=D.slice()).unshift(0),A=D[0],D[1]>=1e7/2&&++A;do h=0,(l=t(D,g,E,v))<0?(b=g[0],E!=v&&(b=1e7*b+(g[1]||0)),(h=b/A|0)>1?(h>=1e7&&(h=1e7-1),f=(d=e(D,h)).length,v=g.length,1==(l=t(d,g,f,v))&&(h--,n(d,E<f?C:D,f))):(0==h&&(l=h=1),d=D.slice()),(f=d.length)<v&&d.unshift(0),n(g,d,v),-1==l&&(v=g.length,(l=t(D,g,E,v))<1&&(h++,n(g,E<v?C:D,v))),v=g.length):0===l&&(h++,g=[0]),m[u++]=h,l&&g[0]?g[v++]=T[k]||0:(g=[T[k]],v=1);while((k++<M||void 0!==g[0])&&x--)}return m[0]||m.shift(),p.e=c,S(p,s?a+y(p)+1:a)}}();function v(e,t){var r,o,a,l,u,h=0,d=0,f=e.constructor,p=f.precision;if(y(e)>16)throw Error(s+y(e));if(!e.s)return new f(n);
2for(null==t?(i=!1,u=p):u=t,l=new f(.03125);e.abs().gte(.1);)e=e.times(l),d+=5;for(u+=Math.log(c(2,d))/Math.LN10*2+5|0,r=o=a=new f(n),f.precision=u;;){if(o=S(o.times(e),u),r=r.times(++h),m((l=a.plus(g(o,r,u))).d).slice(0,u)===m(a.d).slice(0,u)){for(;d--;)a=S(a.times(a),u);return f.precision=p,null==t?(i=!0,S(a,p)):a}a=l}}function y(e){for(var t=7*e.e,n=e.d[0];n>=10;n/=10)t++;return t}function b(e,t,n){if(t>e.LN10.sd())throw i=!0,n&&(e.precision=n),Error(o+"LN10 precision limit exceeded");return S(new e(e.LN10),t)}function x(e){for(var t="";e--;)t+="0";return t}function w(e,t){var r,a,s,l,c,u,h,d,f,p=1,v=e,x=v.d,k=v.constructor,M=k.precision;if(v.s<1)throw Error(o+(v.s?"NaN":"-Infinity"));if(v.eq(n))return new k(0);if(null==t?(i=!1,d=M):d=t,v.eq(10))return null==t&&(i=!0),b(k,d);if(k.precision=d+=10,a=(r=m(x)).charAt(0),!(15e14>Math.abs(l=y(v))))return h=b(k,d+2,M).times(l+""),v=w(new k(a+"."+r.slice(1)),d-10).plus(h),k.precision=M,null==t?(i=!0,S(v,M)):v;for(;a<7&&1!=a||1==a&&r.charAt(1)>3;)a=(r=m((v=v.times(e)).d)).charAt(0),p++;for(l=y(v),a>1?(v=new k("0."+r),l++):v=new k(a+"."+r.slice(1)),u=c=v=g(v.minus(n),v.plus(n),d),f=S(v.times(v),d),s=3;;){if(c=S(c.times(f),d),m((h=u.plus(g(c,new k(s),d))).d).slice(0,d)===m(u.d).slice(0,d))return u=u.times(2),0!==l&&(u=u.plus(b(k,d+2,M).times(l+""))),u=g(u,new k(p),d),k.precision=M,null==t?(i=!0,S(u,M)):u;u=h,s+=2}}function k(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(o=t.length;48===t.charCodeAt(o-1);)--o;if(t=t.slice(r,o)){if(o-=r,e.e=l((n=n-r-1)/7),e.d=[],r=(n+1)%7,n<0&&(r+=7),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=7;r<o;)e.d.push(+t.slice(r,r+=7));r=7-(t=t.slice(r)).length}else r-=o;for(;r--;)t+="0";if(e.d.push(+t),i&&(e.e>h||e.e<-h))throw Error(s+n)}else e.s=0,e.e=0,e.d=[0];return e}function S(e,t,n){var r,o,a,u,d,f,p,m,g=e.d;for(u=1,a=g[0];a>=10;a/=10)u++;if((r=t-u)<0)r+=7,o=t,p=g[m=0];else{if((m=Math.ceil((r+1)/7))>=(a=g.length))return e;for(u=1,p=a=g[m];a>=10;a/=10)u++;r%=7,o=r-7+u}if(void 0!==n&&(d=p/(a=c(10,u-o-1))%10|0,f=t<0||void 0!==g[m+1]||p%a,f=n<4?(d||f)&&(0==n||n==(e.s<0?3:2)):d>5||5==d&&(4==n||f||6==n&&(r>0?o>0?p/c(10,u-o):0:g[m-1])%10&1||n==(e.s<0?8:7))),t<1||!g[0])return f?(a=y(e),g.length=1,t=t-a-1,g[0]=c(10,(7-t%7)%7),e.e=l(-t/7)||0):(g.length=1,g[0]=e.e=e.s=0),e;if(0==r?(g.length=m,a=1,m--):(g.length=m+1,a=c(10,7-r),g[m]=o>0?(p/c(10,u-o)%c(10,o)|0)*a:0),f)for(;;)if(0==m){1e7==(g[0]+=a)&&(g[0]=1,++e.e);break}else{if(g[m]+=a,1e7!=g[m])break;g[m--]=0,a=1}for(r=g.length;0===g[--r];)g.pop();if(i&&(e.e>h||e.e<-h))throw Error(s+y(e));return e}function M(e,t){var n,r,o,a,s,l,c,u,h,d,f=e.constructor,p=f.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new f(e),i?S(t,p):t;if(c=e.d,d=t.d,r=t.e,u=e.e,c=c.slice(),s=u-r){for((h=s<0)?(n=c,s=-s,l=d.length):(n=d,r=u,l=c.length),s>(o=Math.max(Math.ceil(p/7),l)+2)&&(s=o,n.length=1),n.reverse(),o=s;o--;)n.push(0);n.reverse()}else{for((h=(o=c.length)<(l=d.length))&&(l=o),o=0;o<l;o++)if(c[o]!=d[o]){h=c[o]<d[o];break}s=0}for(h&&(n=c,c=d,d=n,t.s=-t.s),l=c.length,o=d.length-l;o>0;--o)c[l++]=0;for(o=d.length;o>s;){if(c[--o]<d[o]){for(a=o;a&&0===c[--a];)c[a]=1e7-1;--c[a],c[o]+=1e7}c[o]-=d[o]}for(;0===c[--l];)c.pop();for(;0===c[0];c.shift())--r;return c[0]?(t.d=c,t.e=r,i?S(t,p):t):new f(0)}function A(e,t,n){var r,i=y(e),o=m(e.d),a=o.length;return t?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+x(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+x(-i-1)+o,n&&(r=n-a)>0&&(o+=x(r))):i>=a?(o+=x(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+x(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=x(r))),e.s<0?"-"+o:o}function E(e,t){if(e.length>t)return e.length=t,!0}function C(e){if(!e||"object"!=typeof e)throw Error(o+"Object expected");var t,n,r,i=["precision",1,1e9,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if(void 0!==(r=e[n=i[t]]))if(l(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(a+n+": "+r);if(void 0!==(r=e[n="LN10"]))if(r==Math.LN10)this[n]=new this(r);else throw Error(a+n+": "+r);return this}(r=function e(t){var n,r,i;function o(e){if(!(this instanceof o))return new o(e);if(this.constructor=o,e instanceof o){this.s=e.s,this.e=e.e,this.d=(e=e.d)?e.slice():e;return}if("number"==typeof e){if(0*e!=0)throw Error(a+e);if(e>0)this.s=1;else if(e<0)e=-e,this.s=-1;else{this.s=0,this.e=0,this.d=[0];return}if(e===~~e&&e<1e7){this.e=0,this.d=[e];return}return k(this,e.toString())}if("string"!=typeof e)throw Error(a+e);if(45===e.charCodeAt(0)?(e=e.slice(1),this.s=-1):this.s=1,u.test(e))k(this,e);else throw Error(a+e)}if(o.prototype=d,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=e,o.config=o.set=C,void 0===t&&(t={}),t)for(n=0,i=["precision","rounding","toExpNeg","toExpPos","LN10"];n<i.length;)t.hasOwnProperty(r=i[n++])||(t[r]=this[r]);return o.config(t),o}
2(r)).default=r.Decimal=r,n=new r(1),"function"==typeof define&&define.amd?define(function(){return r}):e.exports?e.exports=r:(t||(t="u">typeof self&&self&&self.self==self?self:Function("return this")()),t.Decimal=r)}(this)},54685(e){"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,r,o,a){if("function"!=typeof r)throw TypeError("The listener must be a function");var s=new i(r,o||e,a),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,a=Array(o);i<o;i++)a[i]=r[i].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,i,o,a){var s=n?n+e:e;if(!this._events[s])return!1;var l,c,u=this._events[s],h=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),h){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,i),!0;case 5:return u.fn.call(u.context,t,r,i,o),!0;case 6:return u.fn.call(u.context,t,r,i,o,a),!0}for(c=1,l=Array(h-1);c<h;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var d,f=u.length;for(c=0;c<f;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),h){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,r);break;case 4:u[c].fn.call(u[c].context,t,r,i);break;default:if(!l)for(d=1,l=Array(h-1);d<h;d++)l[d-1]=arguments[d];u[c].fn.apply(u[c].context,l)}}return!0},s.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,i){var o=n?n+e:e;if(!this._events[o])return this;if(!t)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn!==t||i&&!s.once||r&&s.context!==r||a(this,o);else{for(var l=0,c=[],u=s.length;l<u;l++)(s[l].fn!==t||i&&!s[l].once||r&&s[l].context!==r)&&c.push(s[l]);c.length?this._events[o]=1===c.length?c[0]:c:a(this,o)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s},49461(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;else if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,u,h=arguments[0],d=1,f=arguments.length,p=!1;for("boolean"==typeof h&&(p=h,h=arguments[1]||{},d=2),(null==h||"object"!=typeof h&&"function"!=typeof h)&&(h={});d<f;++d)if(t=arguments[d],null!=t)for(n in t)r=l(h,n),h!==(i=l(t,n))&&(p&&i&&(a(i)||(c=o(i)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&a(r)?r:{},s(h,{name:n,newValue:e(p,u,i)})):void 0!==i&&s(h,{name:n,newValue:i}));return h}},67371(e){"use strict";e.exports=function e(t,n){if(t===n)return!0;
2if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){var r,i,o,a=o[i];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},63328(e,t){t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,c=l>>1,u=-7,h=n?i-1:0,d=n?-1:1,f=e[t+h];for(h+=d,o=f&(1<<-u)-1,f>>=-u,u+=s;u>0;o=256*o+e[t+h],h+=d,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+h],h+=d,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),o-=c}return(f?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<<c)-1,h=u>>1,d=5960464477539062e-23*(23===i),f=r?0:o-1,p=r?1:-1,m=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(s=+!!isNaN(t),a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+h>=1?t+=d/l:t+=d*Math.pow(2,1-h),t*l>=2&&(a++,l/=2),a+h>=u?(s=0,a=u):a+h>=1?(s=(t*l-1)*Math.pow(2,i),a+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;e[n+f]=255&s,f+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[n+f]=255&a,f+=p,a/=256,c-=8);e[n+f-p]|=128*m}},83176(e){"use strict";var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g;function c(e){return e?e.replace(l,""):""}e.exports=function(e,l){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];l=l||{};var u=1,h=1;function d(e){var t=e.match(n);t&&(u+=t.length);var r=e.lastIndexOf("\n");h=~r?e.length-r:h+e.length}function f(){var e={line:u,column:h};return function(t){return t.position=new p(e),g(r),t}}function p(e){this.start=e,this.end={line:u,column:h},this.source=l.source}function m(t){var n=Error(l.source+":"+u+":"+h+": "+t);if(n.reason=t,n.filename=l.source,n.line=u,n.column=h,n.source=e,l.silent);else throw n}function g(t){var n=t.exec(e);if(n){var r=n[0];return d(r),e=e.slice(r.length),n}}function v(e){var t;for(e=e||[];t=y();)!1!==t&&e.push(t);return e}function y(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return m("End of comment missing");var r=e.slice(2,n-2);return h+=2,d(r),e=e.slice(n),h+=2,t({type:"comment",comment:r})}}p.prototype.content=e,g(r);var b,x=[];for(v(x);b=function(){var e=f(),n=g(i);if(n){if(y(),!g(o))return m("property missing ':'");var r=g(a),l=e({type:"declaration",property:c(n[0].replace(t,"")),value:r?c(r[0].replace(t,"")):""});return g(s),l}}();)!1!==b&&(x.push(b),v(x));return x}},67010(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(50405);let i=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},o=(...e)=>e.filter((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim();var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let s=(0,r.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:s="",children:l,iconNode:c,...u},h)=>(0,r.createElement)("svg",{ref:h,...a,width:t,height:t,stroke:e,strokeWidth:i?24*Number(n)/Number(t):n,className:o("lucide",s),...!l&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(u)&&{"aria-hidden":"true"},...u},[...c.map(([e,t])=>(0,r.createElement)(e,t)),...Array.isArray(l)?l:[l]])),l=(e,t)=>
2{let n=(0,r.forwardRef)(({className:n,...a},l)=>(0,r.createElement)(s,{ref:l,iconNode:t,className:o(`lucide-${i(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,n),...a}));return n.displayName=i(e),n}},90571(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("arrow-down-a-z",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M20 8h-5",key:"1vsyxs"}],["path",{d:"M15 10V6.5a2.5 2.5 0 0 1 5 0V10",key:"ag13bf"}],["path",{d:"M15 14h5l-5 6h5",key:"ur5jdg"}]])},96182(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("arrow-down-left",[["path",{d:"M17 7 7 17",key:"15tmo1"}],["path",{d:"M17 17H7V7",key:"1org7z"}]])},39114(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("arrow-up-a-z",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M20 8h-5",key:"1vsyxs"}],["path",{d:"M15 10V6.5a2.5 2.5 0 0 1 5 0V10",key:"ag13bf"}],["path",{d:"M15 14h5l-5 6h5",key:"ur5jdg"}]])},25612(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]])},55784(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]])},21123(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("bookmark-plus",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}],["line",{x1:"12",x2:"12",y1:"7",y2:"13",key:"1cppfj"}],["line",{x1:"15",x2:"9",y1:"10",y2:"10",key:"1gty7f"}]])},46290(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("bookmark",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}]])},8170(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]])},24252(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},20440(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},57216(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},96221(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},87903(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("chevrons-up-down",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]])},49638(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("circle-arrow-up",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 12-4-4-4 4",key:"177agl"}],["path",{d:"M12 16V8",key:"1sbj14"}]])},18579(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},70339(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("circle-minus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]])},1497(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("cloud-off",[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5.782 5.782A7 7 0 0 0 9 19h8.5a4.5 4.5 0 0 0 1.307-.193",key:"yfwify"}],["path",{d:"M21.532 16.5A4.5 4.5 0 0 0 17.5 10h-1.79A7.008 7.008 0 0 0 10 5.07",key:"jlfiyv"}]])},30713(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]])},69799(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("code-xml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]])},41131(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},72898(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]])},10930(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},58749(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},70811(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("file-json",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]])}
2,77090(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("file-text",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},17328(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("film",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]])},80757(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("git-branch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]])},42690(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("git-compare",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["path",{d:"M11 18H8a2 2 0 0 1-2-2V9",key:"19pyzm"}]])},9413(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},38498(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]])},46408(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]])},40220(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]])},1142(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},68786(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("key-round",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]])},41460(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]])},10044(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("layout-template",[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"9",height:"7",x:"3",y:"14",rx:"1",key:"jqznyg"}],["rect",{width:"5",height:"7",x:"16",y:"14",rx:"1",key:"q5h2i8"}]])},62116(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("library-big",[["rect",{width:"8",height:"18",x:"3",y:"3",rx:"1",key:"oynpb5"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M20.4 18.9c.2.5-.1 1.1-.6 1.3l-1.9.7c-.5.2-1.1-.1-1.3-.6L11.1 5.1c-.2-.5.1-1.1.6-1.3l1.9-.7c.5-.2 1.1.1 1.3.6Z",key:"1qboyk"}]])},24720(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("log-in",[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]])},60767(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]])},42017(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("monitor-play",[["path",{d:"M10 7.75a.75.75 0 0 1 1.142-.638l3.664 2.249a.75.75 0 0 1 0 1.278l-3.664 2.25a.75.75 0 0 1-1.142-.64z",key:"1pctta"}],["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"M8 21h8",key:"1ev6f3"}],["rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",key:"x3v2xh"}]])},44522(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]])},34670(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("pen-line",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]])},13243(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("pencil",[["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"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]])},19688(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]])},26286(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},24558(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("puzzle",[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]])},65238(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3
2kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]])},85227(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]])},41896(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("rss",[["path",{d:"M4 11a9 9 0 0 1 9 9",key:"pv89mb"}],["path",{d:"M4 4a16 16 0 0 1 16 16",key:"k0647b"}],["circle",{cx:"5",cy:"19",r:"1",key:"bfqh0e"}]])},36995(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("scroll-text",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]])},56738(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},30028(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("settings-2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]])},57556(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]])},33999(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("sliders-horizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]])},5901(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]])},15498(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]])},87209(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("trash-2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},77809(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},71972(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("tv",[["path",{d:"m17 2-5 5-5-5",key:"16satq"}],["rect",{width:"20",height:"15",x:"2",y:"7",rx:"2",key:"1e6viu"}]])},3046(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("type",[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]])},95107(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("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"}]])}
2,51915(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("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"}]])},85421(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("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"}]])},55560(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]])},47198(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("waves",[["path",{d:"M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"knzxuh"}],["path",{d:"M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"2jd2cc"}],["path",{d:"M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"rd2r6e"}]])},25611(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]])},2020(e,t,n){"use strict";n.d(t,{A:()=>r});let r=(0,n(67010).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},17265(e,t,n){"use strict";var r=n(23034);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i}
2;return n.PropTypes=n,n}},5821(e,t,n){e.exports=n(17265)()},23034(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},35360(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,h=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,p=(n&&Symbol.for("react.suspense_list"),n?Symbol.for("react.memo"):60115),m=n?Symbol.for("react.lazy"):60116;function g(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case h:case o:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case c:case d:case m:case p:case l:return e;default:return t}}case i:return t}}}n&&Symbol.for("react.block"),n&&Symbol.for("react.fundamental"),n&&Symbol.for("react.responder"),n&&Symbol.for("react.scope");t.isFragment=function(e){return g(e)===o}},17020(e,t,n){"use strict";e.exports=n(35360)},20094(e,t,n){"use strict";n.d(t,{A:()=>Z});var r,i,o,a,s,l,c,u=n(65959),h=n(50405),d="right-scroll-bar-position",f="width-before-scroll-bar";function p(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var m="u">typeof window?h.useLayoutEffect:h.useEffect,g=new WeakMap,v=(void 0===r&&(r={}),(void 0===i&&(i=function(e){return e}),o=[],a=!1,s={read:function(){if(a)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:null},useMedium:function(e){var t=i(e,a);return o.push(t),function(){o=o.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(a=!0;o.length;){var t=o;o=[],t.forEach(e)}o={push:function(t){return e(t)},filter:function(){return o}}},assignMedium:function(e){a=!0;var t=[];if(o.length){var n=o;o=[],n.forEach(e),t=o}var r=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(r)};i(),o={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),o}}}}).options=(0,u.Cl)({async:!0,ssr:!1},r),s),y=function(){},b=h.forwardRef(function(e,t){var n,r,i,o,a=h.useRef(null),s=h.useState({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:y}),l=s[0],c=s[1],d=e.forwardProps,f=e.children,b=e.className,x=e.removeScrollBar,w=e.enabled,k=e.shards,S=e.sideCar,M=e.noRelative,A=e.noIsolation,E=e.inert,C=e.allowPinchZoom,O=e.as,P=e.gapMode,T=(0,u.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),D=(n=[a,t],r=function(e){return n.forEach(function(t){return p(t,e)})},(i=(0,h.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,o=i.facade,m(function(){var e=g.get(o);if(e){var t=new Set(e),r=new Set(n),i=o.current;t.forEach(function(e){r.has(e)||p(e,null)}),r.forEach(function(e){t.has(e)||p(e,i)})}g.set(o,n)},[n]),o),R=(0,u.Cl)((0,u.Cl)({},T),l);return h.createElement(h.Fragment,null,w&&h.createElement(S,{sideCar:v,removeScrollBar:x,shards:k,noRelative:M,noIsolation:A,inert:E,setCallbacks:c,allowPinchZoom:!!C,lockRef:a,gapMode:P}),d?h.cloneElement(h.Children.only(f),(0,u.Cl)((0,u.Cl)({},R),{ref:D})):h.createElement(void 0===O?"div":O,(0,u.Cl)({},R,{className:b,ref:D}),f))});b.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},b.classNames={fullWidth:f,zeroRight:d};var x=function(e){var t=e.sideCar,n=(0,u.Tt)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return h.createElement(r,(0,u.Cl)({},n))};x.isSideCarExport=!0;var w=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=c||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,o;(i=t).styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},k=function(){var e=w();return function(t,n){h.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},S=function(){var e=k();return function(t){return e(t.styles,t.dynamic),null}},M={left:0,top:0,right:0,gap:0},A=function(e){return parseInt(e||"",10)||0},E=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[A(n),A(r),A(i)]},C=function(e){if(void 0===e&&(e="margin"),"u"<typeof window)return M;var t=E(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},O=S(),P="data-scroll-locked",T=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(s,"px ").concat(r,";\n  }\n  body[").concat(P,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(i,"px;\n    padding-top: ").concat(o,"px;\n    padding-right: ").concat(a,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(s,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";
2")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(d," {\n    right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(f," {\n    margin-right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(d," .").concat(d," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(f," .").concat(f," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(P,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")},D=function(){var e=parseInt(document.body.getAttribute(P)||"0",10);return isFinite(e)?e:0},R=function(){h.useEffect(function(){return document.body.setAttribute(P,(D()+1).toString()),function(){var e=D()-1;e<=0?document.body.removeAttribute(P):document.body.setAttribute(P,e.toString())}},[])},j=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;R();var o=h.useMemo(function(){return C(i)},[i]);return h.createElement(O,{styles:T(o,!t,i,n?"":"!important")})},I=!1;if("u">typeof window)try{var z=Object.defineProperty({},"passive",{get:function(){return I=!0,!0}});window.addEventListener("test",z,z),window.removeEventListener("test",z,z)}catch(e){I=!1}var _=!!I&&{passive:!1},L=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},N=function(e,t){var n=t.ownerDocument,r=t;do{if("u">typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),B(e,r)){var i=F(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},B=function(e,t){return"v"===e?L(t,"overflowY"):L(t,"overflowX")},F=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},V=function(e,t,n,r,i){var o,a=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=a*r,l=n.target,c=t.contains(l),u=!1,h=s>0,d=0,f=0;do{if(!l)break;var p=F(e,l),m=p[0],g=p[1]-p[2]-a*m;(m||g)&&B(e,l)&&(d+=g,f+=m);var v=l.parentNode;l=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return h&&(i&&1>Math.abs(d)||!i&&s>d)?u=!0:!h&&(i&&1>Math.abs(f)||!i&&-s>f)&&(u=!0),u},H=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},W=function(e){return[e.deltaX,e.deltaY]},$=function(e){return e&&"current"in e?e.current:e},U=0,K=[];let q=(l=function(e){var t=h.useRef([]),n=h.useRef([0,0]),r=h.useRef(),i=h.useState(U++)[0],o=h.useState(S)[0],a=h.useRef(e);h.useEffect(function(){a.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,u.fX)([e.lockRef.current],(e.shards||[]).map($),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=h.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var i,o=H(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-o[0],c="deltaY"in e?e.deltaY:s[1]-o[1],u=e.target,h=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===h&&"range"===u.type)return!1;var d=window.getSelection(),f=d&&d.anchorNode;if(f&&(f===u||f.contains(u)))return!1;var p=N(h,u);if(!p)return!0;if(p?i=h:(i="v"===h?"h":"v",p=N(h,u)),!p)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=i),!i)return!0;var m=r.current||i;return V(m,t,e,"h"===m?l:c,!0)},[]),l=h.useCallback(function(e){if(K.length&&K[K.length-1]===o){var n="deltaY"in e?W(e):H(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var i=(a.current.shards||[]).map($).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?s(e,i[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=h.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),d=h.useCallback(function(e){n.current=H(e),r.current=void 0},[]),f=h.useCallback(function(t){c(t.type,W(t),t.target,s(t,e.lockRef.current))},[]),p=h.useCallback(function(t){c(t.type,H(t),t.target,s(t,e.lockRef.current))},[]);h.useEffect(function(){return K.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,_),document.addEventListener("touchmove",l,_),document.addEventListener("touchstart",d,_),function(){K=K.filter(function(e){return e!==o}),document.removeEventListener("wheel",l,_),document.removeEventListener("touchmove",l,_),document.removeEventListener("touchstart",d,_)}},[]);var m=e.removeScrollBar,g=e.inert;return h.createElement(h.Fragment,null,g?h.createElement(o,{styles:"\n  .block-interactivity-".concat(i," {pointer-events: none;}\n  .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,m?h.createElement(j,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},v.useMedium(l),x);var G=h.forwardRef(function(e,t){return h.createElement(b,(0,u.Cl)({},e,{ref:t,sideCar:q}))});G.classNames=b.classNames;let Z=G}
2,55807(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(50405);let i=function(e,t){var n,i=(n=(0,r.useRef)(!0)).current?(n.current=!1,!0):n.current;(0,r.useEffect)(function(){if(!i)return e()},t)}},61419(e,t,n){"use strict";n.d(t,{J:()=>A});var r=n(50405),i=n(35254),o=n(2614),a=n(85991);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var c=(e,t,n)=>e+(t-e)*n,u=e=>{var{from:t,to:n}=e;return t!==n},h=(e,t,n)=>{var r=(0,a.s8)((t,n)=>{if(u(n)){var[r,i]=e(n.from,n.to,n.velocity);return l(l({},n),{},{from:r,velocity:i})}return n},t);return n<1?(0,a.s8)((e,t)=>u(t)&&null!=r[e]?l(l({},t),{},{velocity:c(t.velocity,r[e].velocity,n),from:c(t.from,r[e].from,n)}):t,t):h(e,r,n-1)},d=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],f=(e,t)=>e.map((e,n)=>e*t**n).reduce((e,t)=>e+t),p=(e,t)=>n=>f(d(e,t),n),m=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length)switch(t[0]){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-out":return[.42,0,.58,1];case"ease-in-out":return[0,0,.58,1];default:var r=(e=>{var t,n=e.split("(");if(2!==n.length||"cubic-bezier"!==n[0])return null;var r=null==(t=n[1])||null==(t=t.split(")")[0])?void 0:t.split(",");if(null==r||4!==r.length)return null;var i=r.map(e=>parseFloat(e));return[i[0],i[1],i[2],i[3]]})(t[0]);if(r)return r}return 4===t.length?t:[0,0,1,1]},g=function(){return((e,t,n,r)=>{var i=p(e,n),o=p(t,r),a=t=>f([...d(e,n).map((e,t)=>e*t).slice(1),0],t),s=e=>e>1?1:e<0?0:e,l=e=>{for(var t=e>1?1:e,n=t,r=0;r<8;++r){var l=i(n)-t,c=a(n);if(1e-4>Math.abs(l-t)||c<1e-4)break;n=s(n-l/c)}return o(n)};return l.isStepper=!1,l})(...m(...arguments))},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{stiff:t=100,damping:n=8,dt:r=17}=e,i=(e,i,o)=>{var a=o+(-(e-i)*t-o*n)*r/1e3,s=o*r/1e3+e;return 1e-4>Math.abs(s-i)&&1e-4>Math.abs(a)?[i,0]:[s,a]};return i.isStepper=!0,i.dt=r,i};class y{setTimeout(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=performance.now(),r=null,i=o=>{o-n>=t?e(o):"function"==typeof requestAnimationFrame&&(r=requestAnimationFrame(i))};return r=requestAnimationFrame(i),()=>{null!=r&&cancelAnimationFrame(r)}}}var b=(0,r.createContext)(function(){var e,t,n,r,i;return e=new y,t=()=>null,n=!1,r=null,i=o=>{if(!n){if(Array.isArray(o)){if(!o.length)return;var[a,...s]=o;if("number"==typeof a){r=e.setTimeout(i.bind(null,s),a);return}i(a),r=e.setTimeout(i.bind(null,s));return}"string"==typeof o&&t(o),"object"==typeof o&&t(o),"function"==typeof o&&o()}},{stop:()=>{n=!0},start:e=>{n=!1,r&&(r(),r=null),i(e)},subscribe:e=>(t=e,()=>{t=()=>null}),getTimeoutController:()=>e}}),x=n(36324),w=n(32485),k={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},S={t:0},M={t:1};function A(e){var t,n,s,d=(0,o.e)(e,k),{isActive:f,canBegin:p,duration:m,easing:y,begin:A,onAnimationEnd:E,onAnimationStart:C,children:O}=d,P=(0,w.j)(),T="auto"===f?!x.m.isSsr&&!P:f,D=(t=d.animationId,n=d.animationManager,s=(0,r.useContext)(b),(0,r.useMemo)(()=>null!=n?n:s(t),[t,n,s])),[R,j]=(0,r.useState)(T?S:M),I=(0,r.useRef)(null);return(0,r.useEffect)(()=>{T||j(M)},[T]),(0,r.useEffect)(()=>
2{if(!T||!p)return i.lQ;var e=((e,t,n,r,i,o)=>{var s,d,f,p,m,g,v,y,b=(0,a.mP)(e,t);return null==n?()=>(i(l(l({},e),t)),()=>{}):!0===n.isStepper?(d=b.reduce((n,r)=>l(l({},n),{},{[r]:{from:e[r],velocity:0,to:t[r]}}),{}),f=null,p=r=>{s||(s=r);var c=(r-s)/n.dt;d=h(n,d,c),i(l(l(l({},e),t),(0,a.s8)((e,t)=>t.from,d))),s=r,Object.values(d).filter(u).length&&(f=o.setTimeout(p))},()=>(f=o.setTimeout(p),()=>{var e;null==(e=f)||e()})):(g=null,v=b.reduce((n,r)=>{var i=e[r],o=t[r];return null==i||null==o?n:l(l({},n),{},{[r]:[i,o]})},{}),y=s=>{m||(m=s);var u=(s-m)/r,h=(0,a.s8)((e,t)=>c(...t,n(u)),v);if(i(l(l(l({},e),t),h)),u<1)g=o.setTimeout(y);else{var d=(0,a.s8)((e,t)=>c(...t,n(1)),v);i(l(l(l({},e),t),d))}},()=>(g=o.setTimeout(y),()=>{var e;null==(e=g)||e()}))})(S,M,(e=>{if("string"==typeof e)switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return g(e);case"spring":return v();default:if("cubic-bezier"===e.split("(")[0])return g(e)}return"function"==typeof e?e:null})(y),m,j,D.getTimeoutController());return D.start([C,A,()=>{I.current=e()},m,E]),()=>{D.stop(),I.current&&I.current(),E()}},[T,p,m,y,A,C,E,D]),O(R.t)}},85991(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}n.d(t,{dl:()=>o,mP:()=>a,s8:()=>s});var o=(e,t,n)=>e.map(e=>"".concat(e.replace(/([A-Z])/g,e=>"-".concat(e.toLowerCase()))," ").concat(t,"ms ").concat(n)).join(","),a=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((e,t)=>e.filter(e=>t.includes(e))),s=(e,t)=>Object.keys(t).reduce((n,r)=>i(i({},n),{},{[r]:e(r,t[r])}),{})},21519(e,t,n){"use strict";n.d(t,{Vf:()=>ef,Gk:()=>ep});var r=n(50405),i=n(70851),o=n(53e3),a=n(83947),s=n(76120),l=n(28748),c=n(35254),u=n(76752),h=n(62607),d=n(97433),f=n(67792),p=n(10872),m=n(82263),g=n(30575),v=n(13469),y=n(42099),b=n(35411),x=n(24273),w=n(30865),k=(e,t,n)=>(0,g.Gx)(e,"xAxis",(0,w.W)(e,t),n),S=(e,t,n)=>(0,g.CR)(e,"xAxis",(0,w.W)(e,t),n),M=(e,t,n)=>(0,g.Gx)(e,"yAxis",(0,w.B)(e,t),n),A=(e,t,n)=>(0,g.CR)(e,"yAxis",(0,w.B)(e,t),n),E=(0,m.Mz)([v.fz,k,M,S,A],(e,t,n,r,i)=>(0,u._L)(e,"xAxis")?(0,u.Hj)(t,r,!1):(0,u.Hj)(n,i,!1)),C=(0,m.Mz)([g.ld,(e,t)=>t],(e,t)=>e.filter(e=>"area"===e.type).find(e=>e.id===t)),O=e=>{var t=(0,v.fz)(e);return(0,u._L)(t,"xAxis")?"yAxis":"xAxis"},P=(0,m.Mz)([C,(e,t,n)=>(0,g.TC)(e,O(e),"yAxis"===O(e)?(0,w.B)(e,t):(0,w.W)(e,t),n)],(e,t)=>{if(null!=e&&null!=t){var n,{stackId:r}=e,i=(0,b.x)(e);if(null!=r&&null!=i){var o=null==(n=t[r])?void 0:n.stackedData,a=null==o?void 0:o.find(e=>e.key===i);if(null!=a)return a.map(e=>[e[0],e[1]])}}}),T=(0,m.Mz)([v.fz,k,M,S,A,P,y.rN,E,C,x.vm],(e,t,n,r,i,o,a,s,l,c)=>{var u,{chartData:h,dataStartIndex:d,dataEndIndex:f}=a;if(null!=l&&("horizontal"===e||"vertical"===e)&&null!=t&&null!=n&&null!=r&&null!=i&&0!==r.length&&0!==i.length&&null!=s){var{data:p}=l;if(null!=(u=p&&p.length>0?p:null==h?void 0:h.slice(d,f+1)))return ef({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:i,dataStartIndex:d,areaSettings:l,stackedData:o,displayedData:u,chartBaseValue:c,bandSize:s})}}),D=n(23920),R=n(60233),j=n(90379),I=n(33476),z=n(11057),_=n(2614),L=n(49643),N=n(85715),B=n(15759),F=n(4020),V=n(41514),H=n(61419),W=n(5999),$=n(43646),U=n(29818),K=n(16026),q=n(19575),G=["id"],Z=["activeDot","animationBegin","animationDuration","animationEasing","connectNulls","dot","fill","fillOpacity","hide","isAnimationActive","legendType","stroke","xAxisId","yAxisId"];function Y(){return(Y=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)}function X(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function J(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?J(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ee(e,t){return e&&"none"!==e?e:t}var et=r.memo(e=>{var{dataKey:t,data:n,stroke:i,strokeWidth:o,fill:a,name:s,hide:l,unit:h,tooltipType:d,id:p}=e,m={dataDefinedOnItem:n,getPosition:c.lQ,settings:{stroke:i,strokeWidth:o,fill:a,dataKey:t,nameKey:void 0,name:(0,u.uM)(s,t),hide:l,type:d,color:ee(i,a),unit:h,graphicalItemId:p}};return r.createElement(f.r,{tooltipEntrySettings:m})});function en(e){var{clipPathId:t,points:n,props:i}=e,{needClip:o,dot:a,dataKey:s}=i,c=(0,V.uZ)(i);return r.createElement(l.n,{points:n,dot:a,className:"recharts-area-dots",dotClassName:"recharts-area-dot",dataKey:s,baseProps:c,needClip:o,clipPathId:t})}function er(e){var{showLabels:t,children:n,points:i}=e,o=i.map(e=>{var t,n,r={x:null!=(t=e.x)?t:0,y:null!=(n=e.y)?n:0,width:0,lowerWidth:0,upperWidth:0,height:0};return Q(Q({},r),{},{value:e.value,payload:e.payload,parentViewBox:void 0,viewBox:r,fill:void 0})});return r.createElement(s.h8,{value:t?o:void 0},n)}function ei(e){var{points:t,baseLine:n,needClip:i,clipPathId:s,props:l}=e,{layout:c,type:u,stroke:h,connectNulls:d,isRange:f}=l,{id:p}=l,m=X(l,G),g=(0,V.uZ)(m),v=(0,$.a)(m);return r.createElement(r.Fragment,null,(null==t?void 0:t.length)>1&&r.createElement(a.W,{clipPath:i?"url(#clipPath-".concat(s,")"):void 0},r.createElement(o.Ip,Y({},v,{id:p,points:t,connectNulls:d,type:u,baseLine:n,layout:c,stroke:"none",className:"recharts-area-area"})),"none"!==h&&r.createElement(o.Ip,Y({},g,{className:"recharts-area-curve",layout:c,type:u,connectNulls:d,fill:"none",points:t})),"none"!==h&&f&&Array.isArray(n)&&r.createElement(o.Ip,Y({},g,{className:"recharts-area-curve",layout:c,type:u,connectNulls:d,fill:"none",points:n}))),r.createElement(en,{points:t,props:m,clipPathId:s}))}function eo(e){var t,n,{alpha:i,baseLine:o,points:a,strokeWidth:s}=e,l=null==(t=a[0])?void 0:t.y,u=null==(n=a[a.length-1])?void 0:n.y;if(!(0,L.H)(l)||!(0,L.H)(u))return null;var h=i*Math.abs(l-u),d=Math.max(...a.map(e=>e.x||0));return((0,c.Et)(o)?d=Math.max(o,d):o&&Array.isArray(o)&&o.length&&(d=Math.max(...o.map(e=>e.x||0),d)),(0,c.Et)(d))?r.createElement("rect",{x:0,y:l<u?l:l-h,width:d+(s?parseInt("".concat(s),10):1),height:Math.floor(h)}):null}function ea(e){var t,n,{alpha:i,baseLine:o,points:a,strokeWidth:s}=e,l=null==(t=a[0])?void 0:t.x,u=null==(n=a[a.length-1])?void 0:n.x;if(!(0,L.H)(l)||!(0,L.H)(u))return null;var h=i*Math.abs(l-u),d=Math.max(...a.map(e=>e.y||0));return((0,c.Et)(o)?d=Math.max(o,d):o&&Array.isArray(o)&&o.length&&(d=Math.max(...o.map(e=>e.y||0),d)),(0,c.Et)(d))?r.createElement("rect",{x:l<u?l:l-h,y:0,width:h,height:Math.floor(d+(s?parseInt("".concat(s),10):1))}):null}function es(e){var{alpha:t,layout:n,points:i,baseLine:o,strokeWidth:a}=e;return"vertical"===n?r.createElement(eo,{alpha:t,points:i,baseLine:o,strokeWidth:a}):r.createElement(ea,{alpha:t,points:i,baseLine:o,strokeWidth:a})}function el(e){var{needClip:t,clipPathId:n,props:i,previousPointsRef:o,previousBaselineRef:l}
2=e,{points:u,baseLine:h,isAnimationActive:d,animationBegin:f,animationDuration:p,animationEasing:m,onAnimationStart:g,onAnimationEnd:y}=i,b=(0,r.useMemo)(()=>({points:u,baseLine:h}),[u,h]),x=(0,z.n)(b,"recharts-area-"),w=(0,v.kz)(),[k,S]=(0,r.useState)(!1),M=(0,r.useCallback)(()=>{"function"==typeof y&&y(),S(!1)},[y]),A=(0,r.useCallback)(()=>{"function"==typeof g&&g(),S(!0)},[g]);if(null==w)return null;var E=o.current,C=l.current;return r.createElement(er,{showLabels:!k,points:u},i.children,r.createElement(H.J,{animationId:x,begin:f,duration:p,isActive:d,easing:m,onAnimationEnd:M,onAnimationStart:A,key:x},e=>{if(E){var s,f=E.length/u.length,p=1===e?u:u.map((t,n)=>{var r=Math.floor(n*f);if(E[r]){var i=E[r];return Q(Q({},t),{},{x:(0,c.GW)(i.x,t.x,e),y:(0,c.GW)(i.y,t.y,e)})}return t});return s=(0,c.Et)(h)?(0,c.GW)(C,h,e):(0,c.uy)(h)||(0,c.M8)(h)?(0,c.GW)(C,0,e):h.map((t,n)=>{var r=Math.floor(n*f);if(Array.isArray(C)&&C[r]){var i=C[r];return Q(Q({},t),{},{x:(0,c.GW)(i.x,t.x,e),y:(0,c.GW)(i.y,t.y,e)})}return t}),e>0&&(o.current=p,l.current=s),r.createElement(ei,{points:p,baseLine:s,needClip:t,clipPathId:n,props:i})}return e>0&&(o.current=u,l.current=h),r.createElement(a.W,null,d&&r.createElement("defs",null,r.createElement("clipPath",{id:"animationClipPath-".concat(n)},r.createElement(es,{alpha:e,points:u,baseLine:h,layout:w,strokeWidth:i.strokeWidth}))),r.createElement(a.W,{clipPath:"url(#animationClipPath-".concat(n,")")},r.createElement(ei,{points:u,baseLine:h,needClip:t,clipPathId:n,props:i})))}),r.createElement(s.qY,{label:i.label}))}function ec(e){var{needClip:t,clipPathId:n,props:i}=e,o=(0,r.useRef)(null),a=(0,r.useRef)();return r.createElement(el,{needClip:t,clipPathId:n,props:i,previousPointsRef:o,previousBaselineRef:a})}class eu extends r.PureComponent{render(){var{hide:e,dot:t,points:n,className:o,top:s,left:l,needClip:c,xAxisId:u,yAxisId:f,width:m,height:g,id:v,baseLine:y,zIndex:b}=this.props;if(e)return null;var x=(0,i.$)("recharts-area",o),{r:w,strokeWidth:k}=(0,W.x)(t),S=(0,h.y$)(t),M=2*w+k,A=c?"url(#clipPath-".concat(S?"":"dots-").concat(v,")"):void 0;return r.createElement(U.g,{zIndex:b},r.createElement(a.W,{className:x},c&&r.createElement("defs",null,r.createElement(p.Q,{clipPathId:v,xAxisId:u,yAxisId:f}),!S&&r.createElement("clipPath",{id:"clipPath-dots-".concat(v)},r.createElement("rect",{x:l-M/2,y:s-M/2,width:m+M,height:g+M}))),r.createElement(ec,{needClip:c,clipPathId:v,props:this.props})),r.createElement(d.W,{points:n,mainColor:ee(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:A}),this.props.isRange&&Array.isArray(y)&&r.createElement(d.W,{points:y,mainColor:ee(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:A}))}}var eh={activeDot:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!1,fill:"#3182bd",fillOpacity:.6,hide:!1,isAnimationActive:"auto",legendType:"line",stroke:"#3182bd",strokeWidth:1,type:"linear",label:!1,xAxisId:0,yAxisId:0,zIndex:K.I.area};function ed(e){var t,{activeDot:n,animationBegin:i,animationDuration:o,animationEasing:a,connectNulls:s,dot:l,fill:c,fillOpacity:u,hide:h,isAnimationActive:d,legendType:f,stroke:m,xAxisId:g,yAxisId:y}=e,b=X(e,Z),x=(0,v.WX)(),w=(0,R.fW)(),{needClip:k}=(0,p.l)(g,y),S=(0,D.r)(),{points:M,isRange:A,baseLine:E}=null!=(t=(0,I.G)(t=>T(t,e.id,S)))?t:{},C=(0,N.oM)();if("horizontal"!==x&&"vertical"!==x||null==C||"AreaChart"!==w&&"ComposedChart"!==w)return null;var{height:O,width:P,x:j,y:z}=C;return M&&M.length?r.createElement(eu,Y({},b,{activeDot:n,animationBegin:i,animationDuration:o,animationEasing:a,baseLine:E,connectNulls:s,dot:l,fill:c,fillOpacity:u,height:O,hide:h,layout:x,isAnimationActive:d,isRange:A,legendType:f,needClip:k,points:M,stroke:m,width:P,left:j,top:z,xAxisId:g,yAxisId:y})):null}function ef(e){var t,{areaSettings:{connectNulls:n,baseValue:r,dataKey:i},stackedData:o,layout:a,chartBaseValue:s,xAxis:l,yAxis:h,displayedData:d,dataStartIndex:f,xAxisTicks:p,yAxisTicks:m,bandSize:g}=e,v=o&&o.length,y=((e,t,n,r,i)=>{var o=null!=n?n:t;if((0,c.Et)(o))return o;var a="horizontal"===e?i:r,s=a.scale.domain();if("number"===a.type){var l=Math.max(s[0],s[1]),u=Math.min(s[0],s[1]);return"dataMin"===o?u:"dataMax"===o||l<0?l:Math.max(Math.min(s[0],s[1]),0)}return"dataMin"===o?s[0]:"dataMax"===o?s[1]:s[0]})(a,s,r,l,h),b="horizontal"===a,x=!1,w=d.map((e,t)=>{if(v)c=o[f+t];else{var r,a,s,c,d,w=(0,u.kr)(e,i);Array.isArray(w)?(c=w,x=!0):c=[y,w]}var k=null!=(r=null==(a=c)?void 0:a[1])?r:null,S=null==k||v&&!n&&null==(0,u.kr)(e,i);return b?{x:(0,u.nb)({axis:l,ticks:p,bandSize:g,entry:e,index:t}),y:S?null:null!=(d=h.scale.map(k))?d:null,value:c,payload:e}:{x:S?null:null!=(s=l.scale.map(k))?s:null,y:(0,u.nb)({axis:h,ticks:m,bandSize:g,entry:e,index:t}),value:c,payload:e}});return t=v||x?w.map(e=>{var t,n,r=Array.isArray(e.value)?e.value[0]:null;return b?{x:e.x,y:null!=r&&null!=e.y&&null!=(n=h.scale.map(r))?n:null,payload:e.payload}:{x:null!=r&&null!=(t=l.scale.map(r))?t:null,y:e.y,payload:e.payload}}):b?h.scale.map(y):l.scale.map(y),{points:w,baseLine:null!=t?t:0,isRange:x}}var ep=r.memo(function(e){var t=(0,_.e)(e,eh),n=(0,D.r)();return r.createElement(B.x,{id:t.id,type:"area"},e=>r.createElement(r.Fragment,null,r.createElement(j.A,{legendPayload:(e=>
2{var{dataKey:t,name:n,stroke:r,fill:i,legendType:o,hide:a}=e;return[{inactive:a,dataKey:t,type:o,color:ee(r,i),value:(0,u.uM)(n,t),payload:e}]})(t)}),r.createElement(et,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:e}),r.createElement(F.p,{type:"area",id:e,data:t.data,dataKey:t.dataKey,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,stackId:(0,u.$8)(t.stackId),hide:t.hide,barSize:void 0,baseValue:t.baseValue,isPanorama:n,connectNulls:t.connectNulls}),r.createElement(ed,Y({},t,{id:e}))))},q.P);ep.displayName="Area"},77341(e,t,n){"use strict";n.d(t,{LP:()=>eA,yP:()=>eE});var r=n(50405),i=n(70851),o=n(83947),a=n(2980),s=n(76120),l=n(35254),c=n(62607),u=n(76752),h=n(22018),d=n(10657);function f(){return(f=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)}function p(e){return r.createElement(d.y,f({shapeType:"rectangle",activeClassName:"recharts-active-bar",inActiveClassName:"recharts-inactive-bar"},e))}var m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(n,r)=>{if((0,l.Et)(e))return e;var i=(0,l.Et)(n)||(0,l.uy)(n);return i?e(n,r):(i||function(e,t){if(!e)throw Error("Invariant failed")}(!1,"minPointSize callback function received a value with type of ".concat(typeof n,". Currently only numbers or null/undefined are supported.")),t)}},g=n(60562),v=n(67792),y=n(73560),b=n(10872),x=n(13469),w=n(82263),k=n(30575),S=n(42099),M=n(41667),A=n(24273),E=n(18281),C=(e,t,n)=>{var r=null!=n?n:e;if(!(0,l.uy)(r))return(0,l.F4)(r,t,0)},O=n(49643);function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var D=n(35411),R=n(30865),j=(0,w.Mz)([k.ld,(e,t)=>t],(e,t)=>e.filter(e=>"bar"===e.type).find(e=>e.id===t)),I=(0,w.Mz)([j],e=>null==e?void 0:e.maxBarSize),z=(0,w.Mz)([x.fz,k.ld,R.W,R.B,(e,t,n)=>n],(e,t,n,r,i)=>t.filter(t=>"horizontal"===e?t.xAxisId===n:t.yAxisId===r).filter(e=>e.isPanorama===i).filter(e=>!1===e.hide).filter(e=>"bar"===e.type)),_=(0,w.Mz)([z,A.x3,(e,t)=>{var n=(0,x.fz)(e),r=(0,R.W)(e,t),i=(0,R.B)(e,t);if(null!=r&&null!=i)return"horizontal"===n?(0,k.BQ)(e,"xAxis",r):(0,k.BQ)(e,"yAxis",i)}],(e,t,n)=>{var r=e.filter(E.g),i=e.filter(e=>null==e.stackId);return[...Object.entries(r.reduce((e,t)=>{var n=e[t.stackId];return null==n&&(n=[]),n.push(t),e[t.stackId]=n,e},{})).map(e=>{var r,[i,o]=e;return{stackId:i,dataKeys:o.map(e=>e.dataKey),barSize:C(t,n,null==(r=o[0])?void 0:r.barSize)}}),...i.map(e=>({stackId:void 0,dataKeys:[e.dataKey].filter(e=>null!=e),barSize:C(t,n,e.barSize)}))]}),L=(e,t,n)=>{var r,i,o=(0,x.fz)(e),a=(0,R.W)(e,t),s=(0,R.B)(e,t);if(null!=a&&null!=s)return"horizontal"===o?(r=(0,k.Gx)(e,"xAxis",a,n),i=(0,k.CR)(e,"xAxis",a,n)):(r=(0,k.Gx)(e,"yAxis",s,n),i=(0,k.CR)(e,"yAxis",s,n)),(0,u.Hj)(r,i)},N=(0,w.Mz)([_,A.JN,A._5,A.gY,(e,t,n)=>{var r,i,o,a,s=j(e,t);if(null==s)return 0;var c=(0,R.W)(e,t),h=(0,R.B)(e,t);if(null==c||null==h)return 0;var d=(0,x.fz)(e),f=(0,A.JN)(e),{maxBarSize:p}=s,m=(0,l.uy)(p)?f:p;return"horizontal"===d?(o=(0,k.Gx)(e,"xAxis",c,n),a=(0,k.CR)(e,"xAxis",c,n)):(o=(0,k.Gx)(e,"yAxis",h,n),a=(0,k.CR)(e,"yAxis",h,n)),null!=(r=null!=(i=(0,u.Hj)(o,a,!0))?i:m)?r:0},L,I],(e,t,n,r,i,o,a)=>{var s=function(e,t,n,r,i){var o,a,s=r.length;if(!(s<1)){var c=(0,l.F4)(e,n,0,!0),u=[];
2if((0,O.H)(null==(o=r[0])?void 0:o.barSize)){var h=!1,d=n/s,f=r.reduce((e,t)=>e+(t.barSize||0),0);(f+=(s-1)*c)>=n&&(f-=(s-1)*c,c=0),f>=n&&d>0&&(h=!0,d*=.9,f=s*d);var p={offset:((n-f)/2|0)-c,size:0};a=r.reduce((e,t)=>{var n,r={stackId:t.stackId,dataKeys:t.dataKeys,position:{offset:p.offset+p.size+c,size:h?d:null!=(n=t.barSize)?n:0}},i=[...e,r];return p=r.position,i},u)}else{var m=(0,l.F4)(t,n,0,!0);n-2*m-(s-1)*c<=0&&(c=0);var g=(n-2*m-(s-1)*c)/s;g>1&&(g>>=0);var v=(0,O.H)(i)?Math.min(g,i):g;a=r.reduce((e,t,n)=>[...e,{stackId:t.stackId,dataKeys:t.dataKeys,position:{offset:m+(g+c)*n+(g-v)/2,size:v}}],u)}return a}}(n,r,i!==o?i:o,e,(0,l.uy)(a)?t:a);return i!==o&&null!=s&&(s=s.map(e=>T(T({},e),{},{position:T(T({},e.position),{},{offset:e.position.offset-i/2})}))),s}),B=(0,w.Mz)([N,j],(e,t)=>{if(null!=e&&null!=t){var n=e.find(e=>e.stackId===t.stackId&&null!=t.dataKey&&e.dataKeys.includes(t.dataKey));if(null!=n)return n.position}}),F=(0,w.Mz)([(e,t,n)=>{var r=(0,x.fz)(e),i=(0,R.W)(e,t),o=(0,R.B)(e,t);if(null!=i&&null!=o)return"horizontal"===r?(0,k.TC)(e,"yAxis",o,n):(0,k.TC)(e,"xAxis",i,n)},j],(e,t)=>{var n=(0,D.x)(t);if(!e||null==n||null==t)return;var{stackId:r}=t;if(null!=r){var i=e[r];if(i){var{stackedData:o}=i;if(o)return o.find(e=>e.key===n)}}}),V=(0,w.Mz)([M.HZ,M.c2,(e,t,n)=>{var r=(0,R.W)(e,t);if(null!=r)return(0,k.Gx)(e,"xAxis",r,n)},(e,t,n)=>{var r=(0,R.B)(e,t);if(null!=r)return(0,k.Gx)(e,"yAxis",r,n)},(e,t,n)=>{var r=(0,R.W)(e,t);if(null!=r)return(0,k.CR)(e,"xAxis",r,n)},(e,t,n)=>{var r=(0,R.B)(e,t);if(null!=r)return(0,k.CR)(e,"yAxis",r,n)},B,x.fz,S.rN,L,F,j,(e,t,n,r)=>r],(e,t,n,r,i,o,a,s,l,c,u,h,d)=>{var f,{chartData:p,dataStartIndex:m,dataEndIndex:g}=l;if(null!=h&&null!=a&&null!=t&&("horizontal"===s||"vertical"===s)&&null!=n&&null!=r&&null!=i&&null!=o&&null!=c){var{data:v}=h;if(null!=(f=null!=v&&v.length>0?v:null==p?void 0:p.slice(m,g+1)))return eA({layout:s,barSettings:h,pos:a,parentViewBox:t,bandSize:c,xAxis:n,yAxis:r,xAxisTicks:i,yAxisTicks:o,stackedData:u,displayedData:f,offset:e,cells:d,dataStartIndex:m})}}),H=n(33476),W=n(23920),$=n(49677),U=n(90379),K=n(11057),q=n(2614),G=n(15759),Z=n(4020),Y=n(41514),X=n(61419),J=n(29818),Q=n(16026),ee=n(19575),et=["index"];function en(){return(en=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)}var er=(0,r.createContext)(void 0),ei=e=>{var{index:t}=e,n=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,et),i=(e=>{var t=(0,r.useContext)(er);if(null!=t){var{stackId:n}=t;return"url(#".concat("recharts-bar-stack-clip-path-".concat(n,"-").concat(e),")")}})(t);return r.createElement(o.W,en({className:"recharts-bar-stack-layer",clipPath:i},n))},eo=["onMouseEnter","onMouseLeave","onClick"],ea=["value","background","tooltipPosition"],es=["id"],el=["onMouseEnter","onClick","onMouseLeave"];function ec(){return(ec=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)}function eu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eu(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eu(Object(n)).forEac
2h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ed(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var ef=r.memo(e=>{var{dataKey:t,stroke:n,strokeWidth:i,fill:o,name:a,hide:s,unit:c,tooltipType:h,id:d}=e,f={dataDefinedOnItem:void 0,getPosition:l.lQ,settings:{stroke:n,strokeWidth:i,fill:o,dataKey:t,nameKey:void 0,name:(0,u.uM)(a,t),hide:s,type:h,color:o,unit:c,graphicalItemId:d}};return r.createElement(v.r,{tooltipEntrySettings:f})});function ep(e){var t,n=(0,H.G)($.A2),{data:i,dataKey:o,background:a,allOtherBarProps:s}=e,{onMouseEnter:l,onMouseLeave:c,onClick:u}=s,d=ed(s,eo),f=(0,g.Cj)(l,o,s.id),m=(0,g.Pg)(c),v=(0,g.Ub)(u,o,s.id);if(!a||null==i)return null;var y=(0,Y.ic)(a);return r.createElement(J.g,{zIndex:(t=Q.I.barBackground,a&&"object"==typeof a&&"zIndex"in a&&"number"==typeof a.zIndex&&(0,O.H)(a.zIndex)?a.zIndex:t)},i.map((e,t)=>{var{value:i,background:s,tooltipPosition:l}=e,c=ed(e,ea);if(!s)return null;var u=f(e,t),g=m(e,t),b=v(e,t),x=eh(eh(eh(eh(eh({option:a,isActive:String(t)===n},c),{},{fill:"#eee"},s),y),(0,h.XC)(d,e,t)),{},{onMouseEnter:u,onMouseLeave:g,onClick:b,dataKey:o,index:t,className:"recharts-bar-background-rectangle"});return r.createElement(p,ec({key:"background-bar-".concat(t)},x))}))}function em(e){var{showLabels:t,children:n,rects:i}=e,o=null==i?void 0:i.map(e=>{var t={x:e.x,y:e.y,width:e.width,lowerWidth:e.width,upperWidth:e.width,height:e.height};return eh(eh({},t),{},{value:e.value,payload:e.payload,parentViewBox:e.parentViewBox,viewBox:t,fill:e.fill})});return r.createElement(s.h8,{value:t?o:void 0},n)}function eg(e){var t,{shape:n,activeBar:i,baseProps:o,entry:a,index:s,dataKey:l}=e,c=(0,H.G)($.A2),u=(0,H.G)($.Xb),h=i&&String(a.originalDataIndex)===c&&(null==u||l===u),[d,f]=(0,r.useState)(!1),[m,g]=(0,r.useState)(!1);(0,r.useEffect)(()=>{var e;return h?(f(!0),e=requestAnimationFrame(()=>{g(!0)})):g(!1),()=>{cancelAnimationFrame(e)}},[h]);var v=(0,r.useCallback)(()=>{h||f(!1)},[h]),y=h&&m,b=h||d;t=h?!0===i?n:i:n;var x=r.createElement(p,ec({},o,{name:String(o.name)},a,{isActive:y,option:t,index:s,dataKey:l,onTransitionEnd:v}));return b?r.createElement(J.g,{zIndex:Q.I.activeBar},r.createElement(ei,{index:a.originalDataIndex},x)):x}function ev(e){var{shape:t,baseProps:n,entry:i,index:o,dataKey:a}=e;return r.createElement(p,ec({},n,{name:String(n.name)},i,{isActive:!1,option:t,index:o,dataKey:a}))}function ey(e){var t,{data:n,props:i}=e,o=null!=(t=(0,Y.uZ)(i))?t:{},{id:a}=o,s=ed(o,es),{shape:l,dataKey:c,activeBar:u}=i,{onMouseEnter:d,onClick:f,onMouseLeave:p}=i,m=ed(i,el),v=(0,g.Cj)(d,c,a),y=(0,g.Pg)(p),b=(0,g.Ub)(f,c,a);return n?r.createElement(r.Fragment,null,n.map((e,t)=>r.createElement(ei,ec({index:e.originalDataIndex,key:"rectangle-".concat(null==e?void 0:e.x,"-").concat(null==e?void 0:e.y,"-").concat(null==e?void 0:e.value,"-").concat(t),className:"recharts-bar-rectangle"},(0,h.XC)(m,e,t),{onMouseEnter:v(e,t),onMouseLeave:y(e,t),onClick:b(e,t)}),u?r.createElement(eg,{shape:l,activeBar:u,baseProps:s,entry:e,index:t,dataKey:c}):r.createElement(ev,{shape:l,baseProps:s,entry:e,index:t,dataKey:c})))):null}function eb(e){var{props:t,previousRectanglesRef:n}=e,{data:i,layout:a,isAnimationActive:c,animationBegin:u,animationDuration:h,animationEasing:d,onAnimationEnd:f,onAnimationStart:p}=t,m=n.current,g=(0,K.n)(t,"recharts-bar-"),[v,y]=(0,r.useState)(!1),b=(0,r.useCallback)(()=>{"function"==typeof f&&f(),y(!1)},[f]),x=(0,r.useCallback)(()=>{"function"==typeof p&&p(),y(!0)},[p]);return r.createElement(em,{showLabels:!v,rects:i},r.createElement(X.J,{animationId:g,begin:u,duration:h,isActive:c,easing:d,onAnimationEnd:b,onAnimationStart:x,key:g},e=>{var s=1===e?i:null==i?void 0:i.map((t,n)=>{var r=m&&m[n];if(r)return eh(eh({},t),{},{x:(0,l.GW)(r.x,t.x,e),y:(0,l.GW)(r.y,t.y,e),width:(0,l.GW)(r.width,t.width,e),height:(0,l.GW)(r.height,t.height,e)});if("horizontal"===a){var i=(0,l.GW)(0,t.height,e),o=(0,l.GW)(t.stackedBarStart,t.y,e);return eh(eh({},t),{},{y:o,height:i})}var s=(0,l.GW)(0,t.width,e),c=(0,l.GW)(t.stackedBarStart,t.x,e);return eh(eh({},t),{},{width:s,x:c})});return(e>0&&(n.current=null!=s?s:null),null==s)?null:r.createElement(o.W,null,r.createElement(ey,{props:t,data:s}))}),r.createElement(s.qY,{label:t.label}),t.children)}function ex(e){var t=(0,r.useRef)(null);return r.createElement(eb,{previousRectanglesRef:t,props:e})}var ew=(e,t)=>{var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:(0,u.kr)(e,t)}};class ek extends r.PureComponent{render(){var{hide:e,data:t,dataKey:n,className:a,xAxisId:s,yAxisId:l,needClip:c,background:u,id:h}=this.props;if(e||null==t)return null;var d=(0,i.$)("recharts-bar",a);return r.createElement(o.W,{className:d,id:h},c&&r.createElement("defs",null,r.createElement(b.Q,{clipPathId:h,xAxisId:s,yAxisId:l})),r.createElement(o.W,{className:"recharts-bar-rectangles",clipPath:c?"url(#clipPath-".concat(h,")"):void 0},r.createElement(ep,{data:t,dataKey:n,background:u,allOtherBarProps:this.props}),r.createElement(ex,this.props)))}}var eS={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendT
2ype:"rect",minPointSize:0,xAxisId:0,yAxisId:0,zIndex:Q.I.bar};function eM(e){var t,{xAxisId:n,yAxisId:i,hide:o,legendType:s,minPointSize:l,activeBar:u,animationBegin:h,animationDuration:d,animationEasing:f,isAnimationActive:p}=e,{needClip:m}=(0,b.l)(n,i),g=(0,x.WX)(),v=(0,W.r)(),w=(0,c.aS)(e.children,a.f),k=(0,H.G)(t=>V(t,e.id,v,w));if("vertical"!==g&&"horizontal"!==g)return null;var S=null==k?void 0:k[0];return t=null==S||null==S.height||null==S.width?0:"vertical"===g?S.height/2:S.width/2,r.createElement(y.zk,{xAxisId:n,yAxisId:i,data:k,dataPointFormatter:ew,errorBarOffset:t},r.createElement(ek,ec({},e,{layout:g,needClip:m,data:k,xAxisId:n,yAxisId:i,hide:o,legendType:s,minPointSize:l,activeBar:u,animationBegin:h,animationDuration:d,animationEasing:f,isAnimationActive:p})))}function eA(e){var{layout:t,barSettings:{dataKey:n,minPointSize:r,hasCustomShape:i},pos:o,bandSize:a,xAxis:s,yAxis:c,xAxisTicks:h,yAxisTicks:d,stackedData:f,displayedData:p,offset:g,cells:v,parentViewBox:y,dataStartIndex:b}=e,x="horizontal"===t?c:s,w=f?x.scale.domain():null,k=(0,u.DW)({numericAxis:x}),S=x.scale.map(k);return p.map((e,p)=>{if(f){var x=f[p+b];if(null==x)return null;A=(0,u._f)(x,w)}else Array.isArray(A=(0,u.kr)(e,n))||(A=[k,A]);var M=m(r,0)(A[1],p);if("horizontal"===t){var A,E,C,O,P,T,D,R=c.scale.map(A[0]),j=c.scale.map(A[1]);if(null==R||null==j)return null;E=(0,u.y2)({axis:s,ticks:h,bandSize:a,offset:o.offset,entry:e,index:p}),C=null!=(D=null!=j?j:R)?D:void 0,O=o.size;var I=R-j;if(P=(0,l.M8)(I)?0:I,T={x:E,y:g.top,width:O,height:g.height},Math.abs(M)>0&&Math.abs(P)<Math.abs(M)){var z=(0,l.sA)(P||M)*(Math.abs(M)-Math.abs(P));C-=z,P+=z}}else{var _=s.scale.map(A[0]),L=s.scale.map(A[1]);if(null==_||null==L)return null;if(E=_,C=(0,u.y2)({axis:c,ticks:d,bandSize:a,offset:o.offset,entry:e,index:p}),O=L-_,P=o.size,T={x:g.left,y:C,width:g.width,height:P},Math.abs(M)>0&&Math.abs(O)<Math.abs(M)){var N=(0,l.sA)(O||M)*(Math.abs(M)-Math.abs(O));O+=N}}return null!=E&&null!=C&&null!=O&&null!=P&&(i||0!==O&&0!==P)?eh(eh({},e),{},{stackedBarStart:S,x:E,y:C,width:O,height:P,value:f?A:A[1],payload:e,background:T,tooltipPosition:{x:E+O/2,y:C+P/2},parentViewBox:y,originalDataIndex:p},v&&v[p]&&v[p].props):null}).filter(Boolean)}var eE=r.memo(function(e){var t,n,i=(0,q.e)(e,eS),o=(t=i.stackId,null!=(n=(0,r.useContext)(er))?n.stackId:null!=t?(0,u.$8)(t):void 0),a=(0,W.r)();return r.createElement(G.x,{id:i.id,type:"bar"},e=>r.createElement(r.Fragment,null,r.createElement(U.A,{legendPayload:(e=>{var{dataKey:t,name:n,fill:r,legendType:i,hide:o}=e;return[{inactive:o,dataKey:t,type:i,color:r,value:(0,u.uM)(n,t),payload:e}]})(i)}),r.createElement(ef,{dataKey:i.dataKey,stroke:i.stroke,strokeWidth:i.strokeWidth,fill:i.fill,name:i.name,hide:i.hide,unit:i.unit,tooltipType:i.tooltipType,id:e}),r.createElement(Z.p,{type:"bar",id:e,data:void 0,xAxisId:i.xAxisId,yAxisId:i.yAxisId,zAxisId:0,dataKey:i.dataKey,stackId:o,hide:i.hide,barSize:i.barSize,minPointSize:i.minPointSize,maxBarSize:i.maxBarSize,isPanorama:a,hasCustomShape:null!=i.shape}),r.createElement(J.g,{zIndex:i.zIndex},r.createElement(eM,ec({},i,{id:e})))))},ee.P);eE.displayName="Bar"},62073(e,t,n){"use strict";n.d(t,{F:()=>S,u:()=>P});var r=n(50405),i=n(9600),o=n(70851),a=n(83947),s=n(37793),l=n(80102),c=n(35254),u=n(22018),h=n(65114),d=n(41514),f=n(2614),p=n(29818),m=n(16026),g=n(76800),v=n(83319),y=n(33476),b=["axisLine","width","height","className","hide","ticks","axisType","axisId"];function x(){return(x=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)}function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEac
2h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var S={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd",zIndex:m.I.axis};function M(e){var{x:t,y:n,width:a,height:s,orientation:l,mirror:c,axisLine:u,otherSvgProps:h}=e;if(!u)return null;var f=k(k(k({},h),(0,d.uZ)(u)),{},{fill:"none"});if("top"===l||"bottom"===l){var p=+("top"===l&&!c||"bottom"===l&&c);f=k(k({},f),{},{x1:t,y1:n+p*s,x2:t+a,y2:n+p*s})}else{var m=+("left"===l&&!c||"right"===l&&c);f=k(k({},f),{},{x1:t+m*a,y1:n,x2:t+m*a,y2:n+s})}return r.createElement("line",x({},f,{className:(0,o.$)("recharts-cartesian-axis-line",(0,i.J)(u,"className"))}))}function A(e){var t,{option:n,tickProps:i,value:a}=e,l=(0,o.$)(i.className,"recharts-cartesian-axis-tick-value");if(r.isValidElement(n))t=r.cloneElement(n,k(k({},i),{},{className:l}));else if("function"==typeof n)t=n(k(k({},i),{},{className:l}));else{var c="recharts-cartesian-axis-tick-value";"boolean"!=typeof n&&(c=(0,o.$)(c,(0,g.I)(n))),t=r.createElement(s.EY,x({},i,{className:c}),a)}return t}function E(e){var{ticks:t,axisType:n,axisId:i}=e,o=(0,y.j)();return(0,r.useEffect)(()=>{if(null==i||null==n)return c.lQ;var e=t.map(e=>({value:e.value,coordinate:e.coordinate,offset:e.offset,index:e.index}));return o((0,v.y0)({ticks:e,axisId:i,axisType:n})),()=>{o((0,v.Sr)({axisId:i,axisType:n}))}},[o,t,i,n]),null}var C=(0,r.forwardRef)((e,t)=>{var{ticks:n=[],tick:l,tickLine:f,stroke:g,tickFormatter:v,unit:y,padding:b,tickTextProps:w,orientation:S,mirror:M,x:C,y:O,width:P,height:T,tickSize:D,tickMargin:R,fontSize:j,letterSpacing:I,getTicksConfig:z,events:_,axisType:L,axisId:N}=e,B=(0,h.f)(k(k({},z),{},{ticks:n}),j,I),F=(0,d.uZ)(z),V=(0,d.ic)(l),H=(0,s.fU)(F.textAnchor)?F.textAnchor:function(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}(S,M),W=function(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}(S,M),$={};"object"==typeof f&&($=f);var U=k(k({},F),{},{fill:"none"},$),K=B.map(e=>k({entry:e},function(e,t,n,r,i,o,a,s,l){var u,h,d,f,p,m,g=s?-1:1,v=e.tickSize||a,y=(0,c.Et)(e.tickCoord)?e.tickCoord:e.coordinate;switch(o){case"top":u=h=e.coordinate,m=(d=(f=n+!s*i)-g*v)-g*l,p=y;break;case"left":d=f=e.coordinate,p=(u=(h=t+!s*r)-g*v)-g*l,m=y;break;case"right":d=f=e.coordinate,p=(u=(h=t+s*r)+g*v)+g*l,m=y;break;default:u=h=e.coordinate,m=(d=(f=n+s*i)+g*v)+g*l,p=y}return{line:{x1:u,y1:d,x2:h,y2:f},tick:{x:p,y:m}}}(e,C,O,P,T,S,D,M,R))),q=K.map(e=>{var{entry:t,line:n}=e;return r.createElement(a.W,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},f&&r.createElement("line",x({},U,n,{className:(0,o.$)("recharts-cartesian-axis-tick-line",(0,i.J)(f,"className"))})))}),G=K.map((e,t)=>{var n,i,{entry:o,tick:s}=e,c=k(k(k(k({verticalAnchor:W},F),{},{textAnchor:H,stroke:"none",fill:g},s),{},{index:t,payload:o,visibleTicksCount:B.length,tickFormatter:v,padding:b},w),{},{angle:null!=(n=null!=(i=null==w?void 0:w.angle)?i:F.angle)?n:0}),h=k(k({},c),V);return r.createElement(a.W,x({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(o.value,"-").concat(o.coordinate,"-").concat(o.tickCoord)},(0,u.XC)(_,o,t)),l&&r.createElement(A,{option:l,tickProps:h,value:"".concat("function"==typeof v?v(o.value,t):o.value).concat(y||"")}))});return r.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(L,"-ticks")},r.createElement(E,{ticks:B,axisId:N,axisType:L}),G.length>0&&r.createElement(p.g,{zIndex:m.I.label},r.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(L,"-tick-labels"),ref:t},G)),q.length>0&&r.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(L,"-tick-lines")},q))}),O=(0,r.forwardRef)((e,t)=>{var{axisLine:n,width:i,height:s,className:c,hide:u,ticks:h,axisType:f,axisId:m}=e,g=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,b),[v,y]=(0,r.useState)(""),[x,w]=(0,r.useState)(""),k=(0,r.useRef)(null);(0,r.useImperativeHandle)(t,()=>({getCalculatedWidth:()=>{var t;return(e=>{var{ticks:t,label:n,labelGapWithTick:r=5,tickSize:i=0,tickMargin:o=0}=e,a=0;
2if(t){Array.from(t).forEach(e=>{if(e){var t=e.getBoundingClientRect();t.width>a&&(a=t.width)}});var s=n?n.getBoundingClientRect().width:0;return Math.round(a+(i+o)+s+(n?r:0))}return 0})({ticks:k.current,label:null==(t=e.labelRef)?void 0:t.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var S=(0,r.useCallback)(e=>{if(e){var t=e.getElementsByClassName("recharts-cartesian-axis-tick-value");k.current=t;var n=t[0];if(n){var r=window.getComputedStyle(n),i=r.fontSize,o=r.letterSpacing;(i!==v||o!==x)&&(y(i),w(o))}}},[v,x]);return u||null!=i&&i<=0||null!=s&&s<=0?null:r.createElement(p.g,{zIndex:e.zIndex},r.createElement(a.W,{className:(0,o.$)("recharts-cartesian-axis",c)},r.createElement(M,{x:e.x,y:e.y,width:i,height:s,orientation:e.orientation,mirror:e.mirror,axisLine:n,otherSvgProps:(0,d.uZ)(e)}),r.createElement(C,{ref:S,axisType:f,events:g,fontSize:v,getTicksConfig:e,height:e.height,letterSpacing:x,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:h,unit:e.unit,width:e.width,x:e.x,y:e.y,axisId:m}),r.createElement(l.zJ,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},r.createElement(l._I,{label:e.label,labelRef:e.labelRef}),e.children)))}),P=r.forwardRef((e,t)=>{var n=(0,f.e)(e,S);return r.createElement(O,x({},n,{ref:t}))});P.displayName="CartesianAxis"},95321(e,t,n){"use strict";n.d(t,{d:()=>z});var r=n(50405),i=n(34892),o=n(35254),a=n(76752),s=n(65114),l=n(62073),c=n(13469),u=n(30575),h=n(33476),d=n(23920),f=n(2614),p=n(41514),m=n(49643),g=n(29818),v=n(16026),y=["x1","y1","x2","y2","key"],b=["offset"],x=["xAxisId","yAxisId"],w=["xAxisId","yAxisId"];function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function M(){return(M=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)}function A(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var E=e=>{var{fill:t}=e;if(!t||"none"===t)return null;var{fillOpacity:n,x:i,y:o,width:a,height:s,ry:l}=e;return r.createElement("rect",{x:i,y:o,ry:l,width:a,height:s,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function C(e){var{option:t,lineItemProps:n}=e;if(r.isValidElement(t))i=r.cloneElement(t,n);else if("function"==typeof t)i=t(n);else{var i,o,{x1:a,y1:s,x2:l,y2:c,key:u}=n,h=A(n,y),d=null!=(o=(0,p.uZ)(h))?o:{},{offset:f}=d,m=A(d,b);i=r.createElement("line",M({},m,{x1:a,y1:s,x2:l,y2:c,fill:"none",key:u}))}return i}function O(e){var{x:t,width:n,horizontal:i=!0,horizontalPoints:o}=e;if(!i||!o||!o.length)return null;var{xAxisId:a,yAxisId:s}=e,l=A(e,x),c=o.map((e,o)=>{var a=S(S({},l),{},{x1:t,y1:e,x2:t+n,y2:e,key:"line-".concat(o),index:o});return r.createElement(C,{key:"line-".concat(o),option:i,lineItemProps:a})});return r.createElement("g",{className:"recharts-cartesian-grid-horizontal"},c)}function P(e){var{y:t,height:n,vertical:i=!0,verticalPoints:o}=e;if(!i||!o||!o.length)return null;var{xAxisId:a,yAxisId:s}
2=e,l=A(e,w),c=o.map((e,o)=>{var a=S(S({},l),{},{x1:e,y1:t,x2:e,y2:t+n,key:"line-".concat(o),index:o});return r.createElement(C,{option:i,lineItemProps:a,key:"line-".concat(o)})});return r.createElement("g",{className:"recharts-cartesian-grid-vertical"},c)}function T(e){var{horizontalFill:t,fillOpacity:n,x:i,y:o,width:a,height:s,horizontalPoints:l,horizontal:c=!0}=e;if(!c||!t||!t.length||null==l)return null;var u=l.map(e=>Math.round(e+o-o)).sort((e,t)=>e-t);o!==u[0]&&u.unshift(0);var h=u.map((e,l)=>{var c=u[l+1],h=null==c?o+s-e:c-e;if(h<=0)return null;var d=l%t.length;return r.createElement("rect",{key:"react-".concat(l),y:e,x:i,height:h,width:a,stroke:"none",fill:t[d],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return r.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},h)}function D(e){var{vertical:t=!0,verticalFill:n,fillOpacity:i,x:o,y:a,width:s,height:l,verticalPoints:c}=e;if(!t||!n||!n.length)return null;var u=c.map(e=>Math.round(e+o-o)).sort((e,t)=>e-t);o!==u[0]&&u.unshift(0);var h=u.map((e,t)=>{var c=u[t+1],h=null==c?o+s-e:c-e;if(h<=0)return null;var d=t%n.length;return r.createElement("rect",{key:"react-".concat(t),x:e,y:a,width:h,height:l,stroke:"none",fill:n[d],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return r.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},h)}var R=(e,t)=>{var{xAxis:n,width:r,height:i,offset:o}=e;return(0,a.PW)((0,s.f)(S(S(S({},l.F),n),{},{ticks:(0,a.Rh)(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),o.left,o.left+o.width,t)},j=(e,t)=>{var{yAxis:n,width:r,height:i,offset:o}=e;return(0,a.PW)((0,s.f)(S(S(S({},l.F),n),{},{ticks:(0,a.Rh)(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),o.top,o.top+o.height,t)},I={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:v.I.grid};function z(e){var t=(0,c.yi)(),n=(0,c.rY)(),a=(0,c.W7)(),s=S(S({},(0,f.e)(e,I)),{},{x:(0,o.Et)(e.x)?e.x:a.left,y:(0,o.Et)(e.y)?e.y:a.top,width:(0,o.Et)(e.width)?e.width:a.width,height:(0,o.Et)(e.height)?e.height:a.height}),{xAxisId:l,yAxisId:p,x:v,y,width:b,height:x,syncWithTicks:w,horizontalValues:k,verticalValues:A}=s,C=(0,d.r)(),z=(0,h.G)(e=>(0,u.ZB)(e,"xAxis",l,C)),_=(0,h.G)(e=>(0,u.ZB)(e,"yAxis",p,C));if(!(0,m.F)(b)||!(0,m.F)(x)||!(0,o.Et)(v)||!(0,o.Et)(y))return null;var L=s.verticalCoordinatesGenerator||R,N=s.horizontalCoordinatesGenerator||j,{horizontalPoints:B,verticalPoints:F}=s;if((!B||!B.length)&&"function"==typeof N){var V=k&&k.length,H=N({yAxis:_?S(S({},_),{},{ticks:V?k:_.ticks}):void 0,width:null!=t?t:b,height:null!=n?n:x,offset:a},!!V||w);(0,i.R)(Array.isArray(H),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof H,"]")),Array.isArray(H)&&(B=H)}if((!F||!F.length)&&"function"==typeof L){var W=A&&A.length,$=L({xAxis:z?S(S({},z),{},{ticks:W?A:z.ticks}):void 0,width:null!=t?t:b,height:null!=n?n:x,offset:a},!!W||w);(0,i.R)(Array.isArray($),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof $,"]")),Array.isArray($)&&(F=$)}return r.createElement(g.g,{zIndex:s.zIndex},r.createElement("g",{className:"recharts-cartesian-grid"},r.createElement(E,{fill:s.fill,fillOpacity:s.fillOpacity,x:s.x,y:s.y,width:s.width,height:s.height,ry:s.ry}),r.createElement(T,M({},s,{horizontalPoints:B})),r.createElement(D,M({},s,{verticalPoints:F})),r.createElement(O,M({},s,{offset:a,horizontalPoints:B,xAxis:z,yAxis:_})),r.createElement(P,M({},s,{offset:a,verticalPoints:F,xAxis:z,yAxis:_}))))}z.displayName="CartesianGrid"},10872(e,t,n){"use strict";n.d(t,{Q:()=>l,l:()=>s});var r=n(50405),i=n(33476),o=n(30575),a=n(85715);function s(e,t){var n,r,a=(0,i.G)(t=>(0,o.Rl)(t,e)),s=(0,i.G)(e=>(0,o.sf)(e,t)),l=null!=(n=null==a?void 0:a.allowDataOverflow)?n:o.PU.allowDataOverflow,c=null!=(r=null==s?void 0:s.allowDataOverflow)?r:o.cd.allowDataOverflow;return{needClip:l||c,needClipX:l,needClipY:c}}function l(e){var{xAxisId:t,yAxisId:n,clipPathId:i}=e,o=(0,a.oM)(),{needClipX:l,needClipY:c,needClip:u}=s(t,n);if(!u||!o)return null;var{x:h,y:d,width:f,height:p}=o;return r.createElement("clipPath",{id:"clipPath-".concat(i)},r.createElement("rect",{x:l?h:h-f/2,y:c?d:d-p/2,width:l?f:2*f,height:c?p:2*p}))}},4097(e,t,n){"use strict";n.d(t,{N1:()=>el,lF:()=>es});var r=n(50405),i=n(70851),o=n(83947),a=n(76120),s=n(28748),l=n(35254),c=n(62607),u=n(76752),h=n(97433),d=n(67792),f=n(73560),p=n(10872),m=n(13469),g=n(23920),v=n(82263),y=n(42099),b=n(30575),x=(e,t,n,r)=>(0,b.Gx)(e,"xAxis",t,r),w=(e,t,n,r)=>(0,b.CR)(e,"xAxis",t,r),k=(e,t,n,r)=>(0,b.Gx)(e,"yAxis",n,r),S=(e,t,n,r)=>(0,b.CR)(e,"yAxis",n,r),M=(0,v.Mz)([m.fz,x,k,w,S],(e,t,n,r,i)=>(0,u._L)(e,"xAxis")?(0,u.Hj)(t,r,!1):(0,u.Hj)(n,i,!1));function A(e){return"line"===e.type}var E=(0,v.Mz)([b.ld,(e,t,n,r,i)=>i],(e,t)=>e.filter(A).find(e=>
2e.id===t)),C=(0,v.Mz)([m.fz,x,k,w,S,E,M,y.k$],(e,t,n,r,i,o,a,s)=>{var l,{chartData:c,dataStartIndex:u,dataEndIndex:h}=s;if(null!=o&&null!=t&&null!=n&&null!=r&&null!=i&&0!==r.length&&0!==i.length&&null!=a&&("horizontal"===e||"vertical"===e)){var{dataKey:d,data:f}=o;if(null!=(l=null!=f&&f.length>0?f:null==c?void 0:c.slice(u,h+1)))return es({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:i,dataKey:d,bandSize:a,displayedData:l})}}),O=n(33476),P=n(90379),T=n(11057),D=n(2614),R=n(85715),j=n(15759),I=n(4020),z=n(41514),_=n(61419),L=n(43646),N=n(5999),B=n(10657),F=n(29818),V=n(16026),H=n(19575),W=["id"],$=["type","layout","connectNulls","needClip","shape"],U=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function K(){return(K=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)}function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Z(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Y=r.memo(e=>{var{dataKey:t,data:n,stroke:i,strokeWidth:o,fill:a,name:s,hide:c,unit:h,tooltipType:f,id:p}=e,m={dataDefinedOnItem:n,getPosition:l.lQ,settings:{stroke:i,strokeWidth:o,fill:a,dataKey:t,nameKey:void 0,name:(0,u.uM)(s,t),hide:c,type:f,color:i,unit:h,graphicalItemId:p}};return r.createElement(d.r,{tooltipEntrySettings:m})}),X=(e,t)=>"".concat(t,"px ").concat(e,"px");function J(e){var{clipPathId:t,points:n,props:i}=e,{dot:o,dataKey:a,needClip:l}=i,{id:c}=i,u=Z(i,W),h=(0,z.uZ)(u);return r.createElement(s.n,{points:n,dot:o,className:"recharts-line-dots",dotClassName:"recharts-line-dot",dataKey:a,baseProps:h,needClip:l,clipPathId:t})}function Q(e){var{showLabels:t,children:n,points:i}=e,o=(0,r.useMemo)(()=>null==i?void 0:i.map(e=>{var t,n,r={x:null!=(t=e.x)?t:0,y:null!=(n=e.y)?n:0,width:0,lowerWidth:0,upperWidth:0,height:0};return G(G({},r),{},{value:e.value,payload:e.payload,viewBox:r,parentViewBox:void 0,fill:void 0})}),[i]);return r.createElement(a.h8,{value:t?o:void 0},n)}function ee(e){var{clipPathId:t,pathRef:n,points:i,strokeDasharray:o,props:a}=e,{type:s,layout:l,connectNulls:c,needClip:u,shape:h}=a,d=Z(a,$),f=G(G({},(0,L.a)(d)),{},{fill:"none",className:"recharts-line-curve",clipPath:u?"url(#clipPath-".concat(t,")"):void 0,points:i,type:s,layout:l,connectNulls:c,strokeDasharray:null!=o?o:a.strokeDasharray});return r.createElement(r.Fragment,null,(null==i?void 0:i.length)>1&&r.createElement(B.y,K({shapeType:"curve",option:h},f,{pathRef:n})),r.createElement(J,{points:i,clipPathId:t,props:a}))}function et(e){var{clipPathId:t,props:n,pathRef:i,previousPointsRef:o,longestAnimatedLengthRef:s}=e,{points:c,strokeDasharray:u,isAnimationActive:h,animationBegin:d,animationDuration:f,animationEasing:p,animateNewValues:m,width:g,height:v,onAnimationEnd:y,onAnimationStart:b}=n,x=o.current,w=(0,T.n)(c,"recharts-line-"),k=(0,r.useRef)(w),[S,M]=(0,r.useState)(!1),A=(0,r.useCallback)(()=>{"function"==typeof y&&y(),M(!1)},[y]),E=(0,r.useCallback)(()=>{"function"==typeof b&&b(),M(!0)},[b]),C=function(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(e){return 0}}(i.current),O=(0,r.useRef)(0);k.current!==w&&(O.current=s.current,k.current=w);var P=O.current;return r.createElement(Q,{points:c,showLabels:!S},n.children,r.createElement(_.J,{animationId:w,begin:d,duration:f,isActive:h,easing:p,onAnimationEnd:A,onAnimationStart:E,key:w},e=>{var a,d=Math.min((0,l.GW)(P,C+P,e),C);if(a=h?u?((e,t,n)=>{var r=n.reduce((e,t)=>
2e+t,0);if(!r)return X(t,e);for(var i=Math.floor(e/r),o=e%r,a=[],s=0,l=0;s<n.length;l+=null!=(c=n[s])?c:0,++s){var c,u=n[s];if(null!=u&&l+u>o){a=[...n.slice(0,s),o-l];break}}var h=a.length%2==0?[0,t]:[t];return[...function(e,t){for(var n=e.length%2!=0?[...e,0]:e,r=[],i=0;i<t;++i)r.push(...n);return r}(n,i),...a,...h].map(e=>"".concat(e,"px")).join(", ")})(d,C,"".concat(u).split(/[,\s]+/gim).map(e=>parseFloat(e))):X(C,d):null==u?void 0:String(u),e>0&&C>0&&(o.current=c,s.current=Math.max(s.current,d)),x){var f=x.length/c.length,p=1===e?c:c.map((t,n)=>{var r=Math.floor(n*f);if(x[r]){var i=x[r];return G(G({},t),{},{x:(0,l.GW)(i.x,t.x,e),y:(0,l.GW)(i.y,t.y,e)})}return m?G(G({},t),{},{x:(0,l.GW)(2*g,t.x,e),y:(0,l.GW)(v/2,t.y,e)}):G(G({},t),{},{x:t.x,y:t.y})});return o.current=p,r.createElement(ee,{props:n,points:p,clipPathId:t,pathRef:i,strokeDasharray:a})}return r.createElement(ee,{props:n,points:c,clipPathId:t,pathRef:i,strokeDasharray:a})}),r.createElement(a.qY,{label:n.label}))}function en(e){var{clipPathId:t,props:n}=e,i=(0,r.useRef)(null),o=(0,r.useRef)(0),a=(0,r.useRef)(null);return r.createElement(et,{props:n,clipPathId:t,previousPointsRef:i,longestAnimatedLengthRef:o,pathRef:a})}var er=(e,t)=>{var n,r;return{x:null!=(n=e.x)?n:void 0,y:null!=(r=e.y)?r:void 0,value:e.value,errorVal:(0,u.kr)(e.payload,t)}};class ei extends r.Component{render(){var{hide:e,dot:t,points:n,className:a,xAxisId:s,yAxisId:l,top:u,left:d,width:m,height:g,id:v,needClip:y,zIndex:b}=this.props;if(e)return null;var x=(0,i.$)("recharts-line",a),{r:w,strokeWidth:k}=(0,N.x)(t),S=(0,c.y$)(t),M=2*w+k,A=y?"url(#clipPath-".concat(S?"":"dots-").concat(v,")"):void 0;return r.createElement(F.g,{zIndex:b},r.createElement(o.W,{className:x},y&&r.createElement("defs",null,r.createElement(p.Q,{clipPathId:v,xAxisId:s,yAxisId:l}),!S&&r.createElement("clipPath",{id:"clipPath-dots-".concat(v)},r.createElement("rect",{x:d-M/2,y:u-M/2,width:m+M,height:g+M}))),r.createElement(f.zk,{xAxisId:s,yAxisId:l,data:n,dataPointFormatter:er,errorBarOffset:0},r.createElement(en,{props:this.props,clipPathId:v}))),r.createElement(h.W,{activeDot:this.props.activeDot,points:n,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:A}))}}var eo={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:"auto",label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0,zIndex:V.I.line,type:"linear"};function ea(e){var t=(0,D.e)(e,eo),{activeDot:n,animateNewValues:i,animationBegin:o,animationDuration:a,animationEasing:s,connectNulls:l,dot:c,hide:u,isAnimationActive:h,label:d,legendType:f,xAxisId:v,yAxisId:y,id:b}=t,x=Z(t,U),{needClip:w}=(0,p.l)(v,y),k=(0,R.oM)(),S=(0,m.WX)(),M=(0,g.r)(),A=(0,O.G)(e=>C(e,v,y,M,b));if("horizontal"!==S&&"vertical"!==S||null==A||null==k)return null;var{height:E,width:P,x:T,y:j}=k;return r.createElement(ei,K({},x,{id:b,connectNulls:l,dot:c,activeDot:n,animateNewValues:i,animationBegin:o,animationDuration:a,animationEasing:s,isAnimationActive:h,hide:u,label:d,legendType:f,xAxisId:v,yAxisId:y,points:A,layout:S,height:E,width:P,left:T,top:j,needClip:w}))}function es(e){var{layout:t,xAxis:n,yAxis:r,xAxisTicks:i,yAxisTicks:o,dataKey:a,bandSize:s,displayedData:c}=e;return c.map((e,c)=>{var h=(0,u.kr)(e,a);if("horizontal"===t){var d=(0,u.nb)({axis:n,ticks:i,bandSize:s,entry:e,index:c}),f=(0,l.uy)(h)?null:r.scale.map(h);return{x:d,y:null!=f?f:null,value:h,payload:e}}var p=(0,l.uy)(h)?null:n.scale.map(h),m=(0,u.nb)({axis:r,ticks:o,bandSize:s,entry:e,index:c});return null==p||null==m?null:{x:p,y:m,value:h,payload:e}}).filter(Boolean)}var el=r.memo(function(e){var t=(0,D.e)(e,eo),n=(0,g.r)();return r.createElement(j.x,{id:t.id,type:"line"},e=>r.createElement(r.Fragment,null,r.createElement(P.A,{legendPayload:(e=>{var{dataKey:t,name:n,stroke:r,legendType:i,hide:o}=e;return[{inactive:o,dataKey:t,type:i,color:r,value:(0,u.uM)(n,t),payload:e}]})(t)}),r.createElement(Y,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:e}),r.createElement(I.p,{type:"line",id:e,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:n}),r.createElement(ea,K({},t,{id:e}))))},H.P);el.displayName="Line"},35634(e,t,n){"use strict";n.d(t,{W:()=>A});var r=n(50405),i=n(70851),o=n(62073),a=n(33476),s=n(14341),l=n(30575),c=n(41667),u=n(23920),h=n(2614),d=n(71612),f=n(13469),p=n(82796),m=["type"],g=["dangerouslySetInnerHTML","ticks","scale"],v=["id","scale"];function y(){return(y=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)}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?b(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function w(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function k(e){var t=(0,a.j)(),n=(0,r.useRef)(null),i=(0,f.kz)(),{type:o}=e,l=w(e,m),c=(0,p.a)(i,"xAxis",o),u=(0,r.useMemo)(()=>{if(null!=c)return x(x({},l),{},{type:c})},[l,c]);return(0,r.useLayoutEffect)(()=>{null!=u&&(null===n.current?t((0,s.Vi)(u)):n.current!==u&&t((0,s.m2)({prev:n.current,next:u})),n.current=u)},[u,t]),(0,r.useLayoutEffect)(()=>()=>{n.current&&(t((0,s.MC)(n.current)),n.current=null)},[t]),null}var S=e=>{var{xAxisId:t,className:n}=e,s=(0,a.G)(c.c2),h=(0,u.r)(),d="xAxis",f=(0,a.G)(e=>(0,l.Zi)(e,d,t,h)),p=(0,a.G)(e=>(0,l.Lw)(e,t)),m=(0,a.G)(e=>(0,l.L$)(e,t)),b=(0,a.G)(e=>(0,l.y7)(e,t));if(null==p||null==m||null==b)return null;var{dangerouslySetInnerHTML:x,ticks:k,scale:S}=e,M=w(e,g),{id:A,scale:E}=b,C=w(b,v);return r.createElement(o.u,y({},M,C,{x:m.x,y:m.y,width:p.width,height:p.height,className:(0,i.$)("recharts-".concat(d," ").concat(d),n),viewBox:s,ticks:f,axisType:d,axisId:t}))},M={allowDataOverflow:l.PU.allowDataOverflow,allowDecimals:l.PU.allowDecimals,allowDuplicatedCategory:l.PU.allowDuplicatedCategory,angle:l.PU.angle,axisLine:o.F.axisLine,height:l.PU.height,hide:!1,includeHidden:l.PU.includeHidden,interval:l.PU.interval,label:!1,minTickGap:l.PU.minTickGap,mirror:l.PU.mirror,orientation:l.PU.orientation,padding:l.PU.padding,reversed:l.PU.reversed,scale:l.PU.scale,tick:l.PU.tick,tickCount:l.PU.tickCount,tickLine:o.F.tickLine,tickSize:o.F.tickSize,type:l.PU.type,niceTicks:l.PU.niceTicks,xAxisId:0},A=r.memo(e=>{var t=(0,h.e)(e,M);return r.createElement(r.Fragment,null,r.createElement(k,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,niceTicks:t.niceTicks}),r.createElement(S,t))},d.Q);A.displayName="XAxis"},93825(e,t,n){"use strict";n.d(t,{h:()=>E});var r=n(50405),i=n(70851),o=n(62073),a=n(14341),s=n(33476),l=n(30575),c=n(41667),u=n(23920),h=n(80102),d=n(2614),f=n(71612),p=n(13469),m=n(82796),g=["type"],v=["dangerouslySetInnerHTML","ticks","scale"],y=["id","scale"];function b(){return(b=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)}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEac
2h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function k(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function S(e){var t=(0,s.j)(),n=(0,r.useRef)(null),i=(0,p.kz)(),{type:o}=e,l=k(e,g),c=(0,m.a)(i,"yAxis",o),u=(0,r.useMemo)(()=>{if(null!=c)return w(w({},l),{},{type:c})},[c,l]);return(0,r.useLayoutEffect)(()=>{null!=u&&(null===n.current?t((0,a.cU)(u)):n.current!==u&&t((0,a.hd)({prev:n.current,next:u})),n.current=u)},[u,t]),(0,r.useLayoutEffect)(()=>()=>{n.current&&(t((0,a.fR)(n.current)),n.current=null)},[t]),null}function M(e){var{yAxisId:t,className:n,width:d,label:f}=e,p=(0,r.useRef)(null),m=(0,r.useRef)(null),g=(0,s.G)(c.c2),x=(0,u.r)(),w=(0,s.j)(),S="yAxis",M=(0,s.G)(e=>(0,l.wP)(e,t)),A=(0,s.G)(e=>(0,l.KR)(e,t)),E=(0,s.G)(e=>(0,l.Zi)(e,S,t,x)),C=(0,s.G)(e=>(0,l.hc)(e,t));if((0,r.useLayoutEffect)(()=>{if(!("auto"!==d||!M||(0,h.ZY)(f)||(0,r.isValidElement)(f))&&null!=C){var e=p.current;if(e){var n=e.getCalculatedWidth();Math.round(M.width)!==Math.round(n)&&w((0,a.QG)({id:t,width:n}))}}},[E,M,w,f,t,d,C]),null==M||null==A||null==C)return null;var{dangerouslySetInnerHTML:O,ticks:P,scale:T}=e,D=k(e,v),{id:R,scale:j}=C,I=k(C,y);return r.createElement(o.u,b({},D,I,{ref:p,labelRef:m,x:A.x,y:A.y,tickTextProps:"auto"===d?{width:void 0}:{width:d},width:M.width,height:M.height,className:(0,i.$)("recharts-".concat(S," ").concat(S),n),viewBox:g,ticks:E,axisType:S,axisId:t}))}var A={allowDataOverflow:l.cd.allowDataOverflow,allowDecimals:l.cd.allowDecimals,allowDuplicatedCategory:l.cd.allowDuplicatedCategory,angle:l.cd.angle,axisLine:o.F.axisLine,hide:!1,includeHidden:l.cd.includeHidden,interval:l.cd.interval,label:!1,minTickGap:l.cd.minTickGap,mirror:l.cd.mirror,orientation:l.cd.orientation,padding:l.cd.padding,reversed:l.cd.reversed,scale:l.cd.scale,tick:l.cd.tick,tickCount:l.cd.tickCount,tickLine:o.F.tickLine,tickSize:o.F.tickSize,type:l.cd.type,niceTicks:l.cd.niceTicks,width:l.cd.width,yAxisId:0},E=r.memo(e=>{var t=(0,d.e)(e,A);return r.createElement(r.Fragment,null,r.createElement(S,{interval:t.interval,id:t.yAxisId,scale:t.scale,type:t.type,domain:t.domain,allowDataOverflow:t.allowDataOverflow,dataKey:t.dataKey,allowDuplicatedCategory:t.allowDuplicatedCategory,allowDecimals:t.allowDecimals,tickCount:t.tickCount,padding:t.padding,includeHidden:t.includeHidden,reversed:t.reversed,ticks:t.ticks,width:t.width,orientation:t.orientation,mirror:t.mirror,hide:t.hide,unit:t.unit,name:t.name,angle:t.angle,minTickGap:t.minTickGap,tick:t.tick,tickFormatter:t.tickFormatter,niceTicks:t.niceTicks}),r.createElement(M,t))},f.Q);E.displayName="YAxis"},65114(e,t,n){"use strict";n.d(t,{f:()=>h});var r=n(35254),i=n(5622),o=n(36324),a=function(e){var{width:t,height:n}=e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(r%180+180)%180*Math.PI/180,o=Math.atan(n/t);return Math.abs(i>o&&i<Math.PI-o?n/Math.sin(i):t/Math.cos(i))};function s(e,t){if(t<1)return[];if(1===t)return e;for(var n=[],r=0;r<e.length;r+=t){var i=e[r];void 0!==i&&n.push(i)}return n}function l(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var o=n();return e*(t-e*o/2-r)>=0&&e*(t+e*o/2-i)<=0}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEac
2h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function h(e,t,n){var c,{tick:h,ticks:d,viewBox:f,minTickGap:p,orientation:m,interval:g,tickFormatter:v,unit:y,angle:b}=e;if(!d||!d.length||!h)return[];if((0,r.Et)(g)||o.m.isSsr)return null!=(c=s(d,((0,r.Et)(g)?g:0)+1))?c:[];var x="top"===m||"bottom"===m?"width":"height",w=y&&"width"===x?(0,i.Pu)(y,{fontSize:t,letterSpacing:n}):{width:0,height:0},k=(e,r)=>{var o,s="function"==typeof v?v(e.value,r):e.value;return"width"===x?(o=(0,i.Pu)(s,{fontSize:t,letterSpacing:n}),a({width:o.width+w.width,height:o.height+w.height},b)):(0,i.Pu)(s,{fontSize:t,letterSpacing:n})[x]},S=d[0],M=d[1],A=d.length>=2&&null!=S&&null!=M?(0,r.sA)(M.coordinate-S.coordinate):1,E=function(e,t,n){var r="width"===n,{x:i,y:o,width:a,height:s}=e;return 1===t?{start:r?i:o,end:r?i+a:o+s}:{start:r?i+a:o+s,end:r?i:o}}(f,A,x);return"equidistantPreserveStart"===g?function(e,t,n,r,i){for(var o,a=(r||[]).slice(),{start:c,end:u}=t,h=0,d=1,f=c;d<=a.length;)if(o=function(){var t,o=null==r?void 0:r[h];if(void 0===o)return{v:s(r,d)};var a=h,p=()=>(void 0===t&&(t=n(o,a)),t),m=o.coordinate,g=0===h||l(e,m,p,f,u);g||(h=0,f=c,d+=1),g&&(f=m+e*(p()/2+i),h+=d)}())return o.v;return[]}(A,E,k,d,p):"equidistantPreserveEnd"===g?function(e,t,n,r,i){var o=(r||[]).slice().length;if(0===o)return[];for(var{start:a,end:s}=t,c=1;c<=o;c++){for(var u,h=(o-1)%c,d=a,f=!0,p=h;p<o&&(0===(u=function(){var t,o=r[p];if(null==o)return 0;var a=p,c=()=>(void 0===t&&(t=n(o,a)),t),u=o.coordinate,m=p===h||l(e,u,c,d,s);if(!m)return f=!1,1;m&&(d=u+e*(c()/2+i))}())||1!==u);p+=c);if(f){for(var m=[],g=h;g<o;g+=c){var v=r[g];null!=v&&m.push(v)}return m}}return[]}(A,E,k,d,p):("preserveStart"===g||"preserveStartEnd"===g?function(e,t,n,r,i,o){var a=(r||[]).slice(),s=a.length,{start:c,end:h}=t;if(o){var d=r[s-1];if(null!=d){var f=n(d,s-1),p=e*(d.coordinate+e*f/2-h);a[s-1]=d=u(u({},d),{},{tickCoord:p>0?d.coordinate-p*e:d.coordinate}),null!=d.tickCoord&&l(e,d.tickCoord,()=>f,c,h)&&(h=d.tickCoord-e*(f/2+i),a[s-1]=u(u({},d),{},{isShow:!0}))}}for(var m=o?s-1:s,g=function(t){var r,o=a[t];if(null==o)return 1;var s=o,d=()=>(void 0===r&&(r=n(o,t)),r);if(0===t){var f=e*(s.coordinate-e*d()/2-c);a[t]=s=u(u({},s),{},{tickCoord:f<0?s.coordinate-f*e:s.coordinate})}else a[t]=s=u(u({},s),{},{tickCoord:s.coordinate});null!=s.tickCoord&&l(e,s.tickCoord,d,c,h)&&(c=s.tickCoord+e*(d()/2+i),a[t]=u(u({},s),{},{isShow:!0}))},v=0;v<m;v++)if(g(v))continue;return a}(A,E,k,d,p,"preserveStartEnd"===g):function(e,t,n,r,i){for(var o=(r||[]).slice(),a=o.length,{start:s}=t,{end:c}=t,h=function(t){var r,h=o[t];if(null==h)return 1;var d=h,f=()=>(void 0===r&&(r=n(h,t)),r);if(t===a-1){var p=e*(d.coordinate+e*f()/2-c);o[t]=d=u(u({},d),{},{tickCoord:p>0?d.coordinate-p*e:d.coordinate})}else o[t]=d=u(u({},d),{},{tickCoord:d.coordinate});null!=d.tickCoord&&l(e,d.tickCoord,f,s,c)&&(c=d.tickCoord-e*(f()/2+i),o[t]=u(u({},d),{},{isShow:!0}))},d=a-1;d>=0;d--)if(h(d))continue;return o}(A,E,k,d,p)).filter(e=>e.isShow)}},65814(e,t,n){"use strict";n.d(t,{Q:()=>s});var r=n(50405),i=n(91118),o=n(9367),a=["axis"],s=(0,r.forwardRef)((e,t)=>r.createElement(o.P,{chartName:"AreaChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:a,tooltipPayloadSearcher:i.uN,categoricalChartProps:e,ref:t}))},88810(e,t,n){"use strict";n.d(t,{E:()=>s});var r=n(50405),i=n(91118),o=n(9367),a=["axis","item"],s=(0,r.forwardRef)((e,t)=>r.createElement(o.P,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:a,tooltipPayloadSearcher:i.uN,categoricalChartProps:e,ref:t}))},9367(e,t,n){"use strict";n.d(t,{P:()=>p});var r=n(50405),i=n(2507),o=n(42351),a=n(74191),s=n(93518),l=n(88319),c=n(76294),u=n(2614);function h(){return(h=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)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var f=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?d(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:{top:5,right:5,bottom:5,left:5},responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},n(50187).zp),p=(0,r.forwardRef)(function(e,t){var n,d=(0,u.e)(e.categoricalChartProps,f),{chartName:p,defaultTooltipEventType:m,validateTooltipEventTypes:g,tooltipPayloadSearcher:v,categoricalChartProps:y}=e;return r.createElement(i.J,{preloadedState:{options:{chartName:p,defaultTooltipEventType:m,validateTooltipEventTypes:g,tooltipPayloadSearcher:v,eventEmitter:void 0}},reduxStoreName:null!=(n=y.id)?n:p},r.createElement(o.TK,{chartData:y.data}),r.createElement(a.s,{layout:d.layout,margin:d.margin}),r.createElement(l.M,{throttleDelay:d.throttleDelay,throttledEvents:d.throttledEvents}),r.createElement(s.p,{baseValue:d.baseValue,accessibilityLayer:d.accessibilityLayer,barCategoryGap:d.barCategoryGap,maxBarSize:d.maxBarSize,stackOffset:d.stackOffset,barGap:d.barGap,barSize:d.barSize,syncId:d.syncId,syncMethod:d.syncMethod,className:d.className,reverseStackOrder:d.reverseStackOrder}),r.createElement(c.L,h({},d,{ref:t})))})},76294(e,t,n){"use strict";n.d(t,{L:()=>G});var r=n(50405),i=n(13469),o=n(12599),a=n(23920),s=n(11369),l=n(33476),c=n(84851),u=n(49643),h=n(35012),d=n(43081);function f(e){var{zIndex:t,isPanorama:n}=e,i=(0,r.useRef)(null),o=(0,l.j)();return(0,r.useLayoutEffect)(()=>(i.current&&o((0,h.WO)({zIndex:t,element:i.current,isPanorama:n})),()=>{o((0,h.B8)({zIndex:t,isPanorama:n}))}),[o,t,n]),r.createElement("g",{tabIndex:-1,ref:i,className:"recharts-zIndex-layer_".concat(t)})}function p(e){var{children:t,isPanorama:n}=e,i=(0,l.G)(d.I);if(!i||0===i.length)return t;var o=i.filter(e=>e<0),a=i.filter(e=>e>0);return r.createElement(r.Fragment,null,o.map(e=>r.createElement(f,{key:e,zIndex:e,isPanorama:n})),t,a.map(e=>r.createElement(f,{key:e,zIndex:e,isPanorama:n})))}var m=["children"];function g(){return(g=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)}var v={width:"100%",height:"100%",display:"block"},y=(0,r.forwardRef)((e,t)=>{var n,a,l=(0,i.yi)(),c=(0,i.rY)(),h=(0,o.$)();if(!(0,u.F)(l)||!(0,u.F)(c))return null;var{children:d,otherAttributes:f,title:p,desc:m}=e;return null!=f&&(n="number"==typeof f.tabIndex?f.tabIndex:h?0:void 0,a="string"==typeof f.role?f.role:h?"application":void 0),r.createElement(s.u,g({},f,{title:p,desc:m,role:a,tabIndex:n,width:l,height:c,style:v,ref:t}),d)}),b=e=>{var{children:t}=e,n=(0,l.G)(c.U);if(!n)return null;var{width:i,height:o,y:a,x:u}=n;return r.createElement(s.u,{width:i,height:o,x:u,y:a},t)},x=(0,r.forwardRef)((e,t)=>{var{children:n}=e,i=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,m);return(0,a.r)()?r.createElement(b,null,r.createElement(p,{isPanorama:!0},n)):r.createElement(y,g({ref:t},i),r.createElement(p,{isPanorama:!1},n))}),w=n(70851),k=n(54969),S=n(39954),M=n(88703),A=n(95202),E=n(91906),C=n(93440),O=n(6088),P=n(22171),T=n(20452),D=n(71396),R=n(58396);function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function I(){return(I=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)}var z=()=>((0,M.l3)(),null);function _(e){if("number"==typeof e)return e;if("string"==typeof e){var t=parseFloat(e);
2if(!Number.isNaN(t))return t}return 0}var L=(0,r.forwardRef)((e,t)=>{var n,o,a=(0,r.useRef)(null),[s,l]=(0,r.useState)({containerWidth:_(null==(n=e.style)?void 0:n.width),containerHeight:_(null==(o=e.style)?void 0:o.height)}),c=(0,r.useCallback)((e,t)=>{l(n=>{var r=Math.round(e),i=Math.round(t);return n.containerWidth===r&&n.containerHeight===i?n:{containerWidth:r,containerHeight:i}})},[]),u=(0,r.useCallback)(e=>{if("function"==typeof t&&t(e),null!=a.current&&(a.current.disconnect(),a.current=null),null!=e&&"u">typeof ResizeObserver){var{width:n,height:r}=e.getBoundingClientRect();c(n,r);var i=new ResizeObserver(e=>{var t=e[0];if(null!=t){var{width:n,height:r}=t.contentRect;c(n,r)}});i.observe(e),a.current=i}},[t,c]);return(0,r.useEffect)(()=>()=>{var e=a.current;null!=e&&e.disconnect()},[c]),r.createElement(r.Fragment,null,r.createElement(i.A3,{width:s.containerWidth,height:s.containerHeight}),r.createElement("div",I({ref:u},e)))}),N=(0,r.forwardRef)((e,t)=>{var{width:n,height:o}=e,[a,s]=(0,r.useState)({containerWidth:_(n),containerHeight:_(o)}),l=(0,r.useCallback)((e,t)=>{s(n=>{var r=Math.round(e),i=Math.round(t);return n.containerWidth===r&&n.containerHeight===i?n:{containerWidth:r,containerHeight:i}})},[]),c=(0,r.useCallback)(e=>{if("function"==typeof t&&t(e),null!=e){var{width:n,height:r}=e.getBoundingClientRect();l(n,r)}},[t,l]);return r.createElement(r.Fragment,null,r.createElement(i.A3,{width:a.containerWidth,height:a.containerHeight}),r.createElement("div",I({ref:c},e)))}),B=(0,r.forwardRef)((e,t)=>{var{width:n,height:o}=e;return r.createElement(r.Fragment,null,r.createElement(i.A3,{width:n,height:o}),r.createElement("div",I({ref:t},e)))}),F=(0,r.forwardRef)((e,t)=>{var{width:n,height:o}=e;return"string"==typeof n||"string"==typeof o?r.createElement(N,I({},e,{ref:t})):"number"==typeof n&&"number"==typeof o?r.createElement(B,I({},e,{width:n,height:o,ref:t})):r.createElement(r.Fragment,null,r.createElement(i.A3,{width:n,height:o}),r.createElement("div",I({ref:t},e)))}),V=(0,r.forwardRef)((e,t)=>{var{children:n,className:i,height:o,onClick:a,onContextMenu:s,onDoubleClick:c,onMouseDown:h,onMouseEnter:d,onMouseLeave:f,onMouseMove:p,onMouseUp:m,onTouchEnd:g,onTouchMove:v,onTouchStart:y,style:b,width:x,responsive:M,dispatchTouchEvents:I=!0}=e,_=(0,r.useRef)(null),N=(0,l.j)(),[B,V]=(0,r.useState)(null),[H,W]=(0,r.useState)(null),$=function(){var e=(0,l.j)(),[t,n]=(0,r.useState)(null),i=(0,l.G)(E.et);return(0,r.useEffect)(()=>{if(null!=t){var n=t.getBoundingClientRect().width/t.offsetWidth;(0,u.H)(n)&&n!==i&&e((0,C.hF)(n))}},[t,e,i]),n}(),U=(0,R.w)(),K=(null==U?void 0:U.width)>0?U.width:x,q=(null==U?void 0:U.height)>0?U.height:o,G=(0,r.useCallback)(e=>{$(e),"function"==typeof t&&t(e),V(e),W(e),null!=e&&(_.current=e)},[$,t,V,W]),Z=(0,r.useCallback)(e=>{N((0,S.ky)(e)),N((0,O.y)({handler:a,reactEvent:e}))},[N,a]),Y=(0,r.useCallback)(e=>{N((0,S.dj)(e)),N((0,O.y)({handler:d,reactEvent:e}))},[N,d]),X=(0,r.useCallback)(e=>{N((0,k.xS)()),N((0,O.y)({handler:f,reactEvent:e}))},[N,f]),J=(0,r.useCallback)(e=>{N((0,S.dj)(e)),N((0,O.y)({handler:p,reactEvent:e}))},[N,p]),Q=(0,r.useCallback)(()=>{N((0,A.Ru)())},[N]),ee=(0,r.useCallback)(()=>{N((0,A.Yw)())},[N]),et=(0,r.useCallback)(e=>{N((0,A.uZ)(e.key))},[N]),en=(0,r.useCallback)(e=>{N((0,O.y)({handler:s,reactEvent:e}))},[N,s]),er=(0,r.useCallback)(e=>{N((0,O.y)({handler:c,reactEvent:e}))},[N,c]),ei=(0,r.useCallback)(e=>{N((0,O.y)({handler:h,reactEvent:e}))},[N,h]),eo=(0,r.useCallback)(e=>{N((0,O.y)({handler:m,reactEvent:e}))},[N,m]),ea=(0,r.useCallback)(e=>{N((0,O.y)({handler:y,reactEvent:e}))},[N,y]),es=(0,r.useCallback)(e=>{I&&N((0,P.e)(e)),N((0,O.y)({handler:v,reactEvent:e}))},[N,I,v]),el=(0,r.useCallback)(e=>{N((0,O.y)({handler:g,reactEvent:e}))},[N,g]);return r.createElement(T.$.Provider,{value:B},r.createElement(D.t.Provider,{value:H},r.createElement(M?L:F,{width:null!=K?K:null==b?void 0:b.width,height:null!=q?q:null==b?void 0:b.height,className:(0,w.$)("recharts-wrapper",i),style:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?j(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({position:"relative",cursor:"default",width:K,height:q},b),onClick:Z,onContextMenu:en,onDoubleClick:er,onFocus:Q,onBlur:ee,onKeyDown:et,onMouseDown:ei,onMouseEnter:Y,onMouseLeave:X,onMouseMove:J,onMouseUp:eo,onTouchEnd:el,onTouchMove:es,onTouchStart:ea,ref:G},r.createElement(z,null),n)))}),H=n(35254),W=n(85715),$=(0,r.createContext)(void 0),U=e=>{var{children:t}=e,[n]=(0,r.useState)("".concat((0,H.NF)("recharts"),"-clip")),i=(0,W.oM)();if(null==i)return null;var{x:o,y:a,width:s,height:l}=i;return r.createElement($.Provider,{value:n},r.createElement("defs",null,r.createElement("clipPath",{id:n},r.createElement("rect",{x:o,y:a,height:l,width:s}))),t)},K=n(41514),q=["width","height","responsive","children","className","style","compact","title","desc"],G=(0,r.forwardRef)((e,t)=>{var{width:n,height:o,responsive:a,children:s,className:l,style:c,compact:u,title:h,desc:d}=e,f=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,q),p=(0,K.uZ)(f);return u?r.createElement(r.Fragment,null,r.createElement(i.A3,{width:n,height:o}),r.createElement(x,{otherAttributes:p,title:h,desc:d},s)):r.createElement(V,{className:l,style:c,width:n,height:o,responsive:null!=a&&a,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},r.createElement(x,{otherAttributes:p,title:h,desc:d,ref:t},r.createElement(U,null,s)))})},89507(e,t,n){"use strict";n.d(t,{b:()=>s});var r=n(50405),i=n(91118),o=n(9367),a=["axis"],s=(0,r.forwardRef)((e,t)=>r.createElement(o.P,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:a,tooltipPayloadSearcher:i.uN,categoricalChartProps:e,ref:t}))},43773(e,t,n){"use strict";n.d(t,{r:()=>A});var r=n(50405),i=n(91118),o=n(2507),a=n(42351),s=n(74191),l=n(93518),c=n(88319),u=n(33476),h=n(86164);function d(e){var t=(0,u.j)();return(0,r.useEffect)(()=>{t((0,h.U)(e))},[t,e]),null}var f=n(76294),p=n(2614),m=n(50187),g=["layout"];function v(){return(v=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)}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var b=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEac
2h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({accessibilityLayer:!0,stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index",layout:"radial",responsive:!1,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},m.zp),x=(0,r.forwardRef)(function(e,t){var n,i=(0,p.e)(e.categoricalChartProps,b),{layout:u}=i,h=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(i,g),{chartName:m,defaultTooltipEventType:y,validateTooltipEventTypes:x,tooltipPayloadSearcher:w}=e;return r.createElement(o.J,{preloadedState:{options:{chartName:m,defaultTooltipEventType:y,validateTooltipEventTypes:x,tooltipPayloadSearcher:w,eventEmitter:void 0}},reduxStoreName:null!=(n=i.id)?n:m},r.createElement(a.TK,{chartData:i.data}),r.createElement(s.s,{layout:u,margin:i.margin}),r.createElement(c.M,{throttleDelay:i.throttleDelay,throttledEvents:i.throttledEvents}),r.createElement(l.p,{baseValue:void 0,accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className,reverseStackOrder:i.reverseStackOrder}),r.createElement(d,{cx:i.cx,cy:i.cy,startAngle:i.startAngle,endAngle:i.endAngle,innerRadius:i.innerRadius,outerRadius:i.outerRadius}),r.createElement(f.L,v({},h,{ref:t})))});function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var S=["item"],M=k(k({},b),{},{layout:"centric",startAngle:0,endAngle:360}),A=(0,r.forwardRef)((e,t)=>{var n=(0,p.e)(e,M);return r.createElement(x,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:S,tooltipPayloadSearcher:i.uN,categoricalChartProps:n,ref:t})})},97433(e,t,n){"use strict";n.d(t,{W:()=>v});var r=n(50405),i=n(22018),o=n(58187),a=n(83947),s=n(33476),l=n(49677),c=n(85715),u=n(35254),h=n(41514),d=n(29818),f=n(16026);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEac
2h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var g=e=>{var t,{point:n,childIndex:s,mainColor:l,activeDot:c,dataKey:u,clipPath:d}=e;if(!1===c||null==n.x||null==n.y)return null;var f=m(m(m({},{index:s,dataKey:u,cx:n.x,cy:n.y,r:4,fill:null!=l?l:"none",strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value}),(0,h.ic)(c)),(0,i._U)(c));return t=(0,r.isValidElement)(c)?(0,r.cloneElement)(c,f):"function"==typeof c?c(f):r.createElement(o.c,f),r.createElement(a.W,{className:"recharts-active-dot",clipPath:d},t)};function v(e){var{points:t,mainColor:n,activeDot:i,itemDataKey:o,clipPath:a,zIndex:h=f.I.activeDot}=e,p=(0,s.G)(l.A2),m=(0,c.EI)();if(null==t||null==m)return null;var v=t.find(e=>m.includes(e.payload));return(0,u.uy)(v)?null:r.createElement(d.g,{zIndex:h},r.createElement(g,{point:v,childIndex:Number(p),mainColor:n,dataKey:o,activeDot:i,clipPath:a}))}},2980(e,t,n){"use strict";n.d(t,{f:()=>r});var r=e=>null;r.displayName="Cell"},28748(e,t,n){"use strict";n.d(t,{n:()=>g});var r=n(50405),i=n(70851),o=n(58187),a=n(83947),s=n(62607),l=n(43646),c=n(29818),u=n(16026),h=["points"];function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(){return(p=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)}function m(e){var{option:t,dotProps:n,className:a}=e;if((0,r.isValidElement)(t))return(0,r.cloneElement)(t,n);if("function"==typeof t)return t(n);var s=(0,i.$)(a,"boolean"!=typeof t?t.className:""),l=null!=n?n:{},{points:c}=l,u=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(l,h);return r.createElement(o.c,p({},u,{className:s}))}function g(e){var{points:t,dot:n,className:i,dotClassName:o,dataKey:h,baseProps:d,needClip:g,clipPathId:v,zIndex:y=u.I.scatter}=e;if(null==t||!n&&1!==t.length)return null;var b=(0,s.y$)(n),x=(0,l.y)(n),w=t.map((e,i)=>{var a,s,l=f(f(f({r:3},d),x),{},{index:i,cx:null!=(a=e.x)?a:void 0,cy:null!=(s=e.y)?s:void 0,dataKey:h,value:e.value,payload:e.payload,points:t});return r.createElement(m,{key:"dot-".concat(i),option:n,dotProps:l,className:o})}),k={};return g&&null!=v&&(k.clipPath="url(#clipPath-".concat(b?"":"dots-").concat(v,")")),r.createElement(c.g,{zIndex:y},r.createElement(a.W,p({className:i},k),w))}},80102(e,t,n){"use strict";n.d(t,{JU:()=>T,zJ:()=>M,ZY:()=>C,_I:()=>D});var r=n(50405),i=n(70851),o=n(37793),a=n(35254),s=n(91194),l=n(13469),c=n(33476),u=n(60657),h=n(2614),d=n(43646),f=n(29818),p=n(16026);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?m(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var v=["labelRef"],y=["content"];function b(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function k(){return(k=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)}var S=(0,r.createContext)(null),M=e=>{var{x:t,y:n,upperWidth:i,lowerWidth:o,width:a,height:s,children:l}=e,c=(0,r.useMemo)(()=>({x:t,y:n,upperWidth:i,lowerWidth:o,width:a,height:s}),[t,n,i,o,a,s]);return r.createElement(S.Provider,{value:c},l)},A=()=>{var e=(0,r.useContext)(S),t=(0,l.sk)();return e||(t?(0,l.qC)(t):void 0)},E=(0,r.createContext)(null),C=e=>null!=e&&"function"==typeof e,O=e=>null!=e&&"cx"in e&&(0,a.Et)(e.cx),P={angle:0,offset:5,zIndex:p.I.label,position:"middle",textBreakAll:!1};function T(e){var t,n,p,m,x,S=(0,h.e)(e,P),{viewBox:M,parentViewBox:C,position:T,value:D,children:R,content:j,className:I="",textBreakAll:z,labelRef:_}=S,L=(t=(0,r.useContext)(E),n=(0,c.G)(u.D0),t||n),N=A(),B=function(e){if(!O(e))return e;var{cx:t,cy:n,outerRadius:r}=e,i=2*r;return{x:t-r,y:n-r,width:i,upperWidth:i,lowerWidth:i,height:i}}(p=null==M?"center"===T?N:null!=L?L:N:O(M)?M:(0,l.qC)(M));if(!p||(0,a.uy)(D)&&(0,a.uy)(R)&&!(0,r.isValidElement)(j)&&"function"!=typeof j)return null;var F=w(w({},S),{},{viewBox:p});if((0,r.isValidElement)(j)){var{labelRef:V}=F,H=b(F,v);return(0,r.cloneElement)(j,H)}if("function"==typeof j){var{content:W}=F,$=b(F,y);if(m=(0,r.createElement)(j,$),(0,r.isValidElement)(m))return m}else m=(e=>{var{value:t,formatter:n}=e,r=(0,a.uy)(e.children)?t:e.children;return"function"==typeof n?n(r):r})(S);var U=(0,d.a)(S);if(O(p)){if("insideStart"===T||"insideEnd"===T||"end"===T)return((e,t,n,o,l)=>{var c,u,{offset:h,className:d}=e,{cx:f,cy:p,innerRadius:m,outerRadius:g,startAngle:v,endAngle:y,clockWise:b}=l,x=(m+g)/2,w=(0,a.sA)(y-v)*Math.min(Math.abs(y-v),360),S=w>=0?1:-1;switch(t){case"insideStart":c=v+S*h,u=b;break;case"insideEnd":c=y-S*h,u=!b;break;case"end":c=y+S*h,u=b;break;default:throw Error("Unsupported position ".concat(t))}u=w<=0?u:!u;var M=(0,s.IZ)(f,p,x,c),A=(0,s.IZ)(f,p,x,c+(u?1:-1)*359),E="M".concat(M.x,",").concat(M.y,"\n    A").concat(x,",").concat(x,",0,1,").concat(+!u,",\n    ").concat(A.x,",").concat(A.y),
2C=(0,a.uy)(e.id)?(0,a.NF)("recharts-radial-line-"):e.id;return r.createElement("text",k({},o,{dominantBaseline:"central",className:(0,i.$)("recharts-radial-bar-label",d)}),r.createElement("defs",null,r.createElement("path",{id:C,d:E})),r.createElement("textPath",{xlinkHref:"#".concat(C)},n))})(S,T,m,U,p);x=((e,t,n)=>{var{cx:r,cy:i,innerRadius:o,outerRadius:a,startAngle:l,endAngle:c}=e,u=(l+c)/2;if("outside"===n){var{x:h,y:d}=(0,s.IZ)(r,i,a+t,u);return{x:h,y:d,textAnchor:h>=r?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:r,y:i,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:r,y:i,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:r,y:i,textAnchor:"middle",verticalAnchor:"end"};var{x:f,y:p}=(0,s.IZ)(r,i,(o+a)/2,u);return{x:f,y:p,textAnchor:"middle",verticalAnchor:"middle"}})(p,S.offset,S.position)}else{if(!B)return null;var K=(e=>{var{viewBox:t,position:n,offset:r=0,parentViewBox:i,clamp:o}=e,{x:s,y:c,height:u,upperWidth:h,lowerWidth:d}=(0,l.qC)(t),f=s+(h-d)/2,p=(s+f)/2,m=(h+d)/2,v=u>=0?1:-1,y=v*r,b=v>0?"end":"start",x=v>0?"start":"end",w=h>=0?1:-1,k=w*r,S=w>0?"end":"start",M=w>0?"start":"end";if("top"===n){var A={x:s+h/2,y:c-y,horizontalAnchor:"middle",verticalAnchor:b};return o&&i&&(A.height=Math.max(c-i.y,0),A.width=h),A}if("bottom"===n){var E={x:f+d/2,y:c+u+y,horizontalAnchor:"middle",verticalAnchor:x};return o&&i&&(E.height=Math.max(i.y+i.height-(c+u),0),E.width=d),E}if("left"===n){var C={x:p-k,y:c+u/2,horizontalAnchor:S,verticalAnchor:"middle"};return o&&i&&(C.width=Math.max(C.x-i.x,0),C.height=u),C}if("right"===n){var O={x:p+m+k,y:c+u/2,horizontalAnchor:M,verticalAnchor:"middle"};return o&&i&&(O.width=Math.max(i.x+i.width-O.x,0),O.height=u),O}var P=o&&i?{width:m,height:u}:{};return"insideLeft"===n?g({x:p+k,y:c+u/2,horizontalAnchor:M,verticalAnchor:"middle"},P):"insideRight"===n?g({x:p+m-k,y:c+u/2,horizontalAnchor:S,verticalAnchor:"middle"},P):"insideTop"===n?g({x:s+h/2,y:c+y,horizontalAnchor:"middle",verticalAnchor:x},P):"insideBottom"===n?g({x:f+d/2,y:c+u-y,horizontalAnchor:"middle",verticalAnchor:b},P):"insideTopLeft"===n?g({x:s+k,y:c+y,horizontalAnchor:M,verticalAnchor:x},P):"insideTopRight"===n?g({x:s+h-k,y:c+y,horizontalAnchor:S,verticalAnchor:x},P):"insideBottomLeft"===n?g({x:f+k,y:c+u-y,horizontalAnchor:M,verticalAnchor:b},P):"insideBottomRight"===n?g({x:f+d-k,y:c+u-y,horizontalAnchor:S,verticalAnchor:b},P):n&&"object"==typeof n&&((0,a.Et)(n.x)||(0,a._3)(n.x))&&((0,a.Et)(n.y)||(0,a._3)(n.y))?g({x:s+(0,a.F4)(n.x,m),y:c+(0,a.F4)(n.y,u),horizontalAnchor:"end",verticalAnchor:"end"},P):g({x:s+h/2,y:c+u/2,horizontalAnchor:"middle",verticalAnchor:"middle"},P)})({viewBox:B,position:T,offset:S.offset,parentViewBox:O(C)?void 0:C,clamp:!0});x=w(w({x:K.x,y:K.y,textAnchor:K.horizontalAnchor,verticalAnchor:K.verticalAnchor},void 0!==K.width?{width:K.width}:{}),void 0!==K.height?{height:K.height}:{})}return r.createElement(f.g,{zIndex:S.zIndex},r.createElement(o.EY,k({ref:_,className:(0,i.$)("recharts-label",I)},U,x,{textAnchor:(0,o.fU)(U.textAnchor)?U.textAnchor:x.textAnchor,breakAll:z}),m))}function D(e){var{label:t,labelRef:n}=e;return((e,t,n)=>{if(!e)return null;var i={viewBox:t,labelRef:n};return!0===e?r.createElement(T,k({key:"label-implicit"},i)):(0,a.vh)(e)?r.createElement(T,k({key:"label-implicit",value:e},i)):(0,r.isValidElement)(e)?e.type===T?(0,r.cloneElement)(e,w({key:"label-implicit"},i)):r.createElement(T,k({key:"label-implicit",content:e},i)):C(e)?r.createElement(T,k({key:"label-implicit",content:e},i)):e&&"object"==typeof e?r.createElement(T,k({},e,{key:"label-implicit"},i)):null})(t,A(),n)||null}T.displayName="Label"},76120(e,t,n){"use strict";n.d(t,{dL:()=>x,h8:()=>y,qY:()=>k});var r=n(50405),i=n(80102),o=n(83947),a=n(76752),s=n(35254),l=n(43646),c=n(29818),u=n(16026),h=n(37793),d=["valueAccessor"],f=["dataKey","clockWise","id","textBreakAll","zIndex"];function p(){return(p=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)}function m(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var g=e=>{var t=Array.isArray(e.value)?e.value[e.value.length-1]:e.value;if((0,h.Gt)(t))return t},v=(0,r.createContext)(void 0),y=v.Provider,b=(0,r.createContext)(void 0),x=b.Provider;function w(e){var{valueAccessor:t=g}=e,n=m(e,d),{dataKey:h,clockWise:y,id:x,textBreakAll:w,zIndex:k}=n,S=m(n,f),M=(0,r.useContext)(v),A=(0,r.useContext)(b),E=M||A;return E&&E.length?r.createElement(c.g,{zIndex:null!=k?k:u.I.label},r.createElement(o.W,{className:"recharts-label-list"},E.map((e,o)=>{var c,u=(0,s.uy)(h)?t(e,o):(0,a.kr)(e.payload,h),d=(0,s.uy)(x)?{}:{id:"".concat(x,"-").concat(o)};return r.createElement(i.JU,p({key:"label-".concat(o)},(0,l.a)(e),S,d,{fill:null!=(c=n.fill)?c:e.fill,parentViewBox:e.parentViewBox,value:u,textBreakAll:w,viewBox:e.viewBox,index:o,zIndex:0}))}))):null}function k(e){var{label:t}=e;return t?!0===t?r.createElement(w,{key:"labelList-implicit"}):r.isValidElement(t)||(0,i.ZY)(t)?r.createElement(w,{key:"labelList-implicit",content:t}):"object"==typeof t?r.createElement(w,p({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}w.displayName="LabelList"},92666(e,t,n){"use strict";n.d(t,{s:()=>I});
2var r=n(50405),i=n(47868),o=n(71396),a=n(70851),s=n(11369),l=n(66441),c=n(22018),u=n(2614);function h(){return(h=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)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var p={align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle",labelStyle:{}};function m(e){var{data:t,iconType:n,inactiveColor:i}=e,o=32/6,a=32/3,s=t.inactive?i:t.color,c=null!=n?n:t.type;if("none"===c)return null;if("plainline"===c)return r.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:function(e){if("object"==typeof e&&null!==e&&"strokeDasharray"in e)return String(e.strokeDasharray)}(t.payload),x1:0,y1:16,x2:32,y2:16,className:"recharts-legend-icon"});if("line"===c)return r.createElement("path",{strokeWidth:4,fill:"none",stroke:s,d:"M0,".concat(16,"h").concat(a,"\n            A").concat(o,",").concat(o,",0,1,1,").concat(2*a,",").concat(16,"\n            H").concat(32,"M").concat(2*a,",").concat(16,"\n            A").concat(o,",").concat(o,",0,1,1,").concat(a,",").concat(16),className:"recharts-legend-icon"});if("rect"===c)return r.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(4,"h").concat(32,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(r.isValidElement(t.legendIcon)){var u=f({},t);return delete u.legendIcon,r.cloneElement(t.legendIcon,u)}return r.createElement(l.i,{fill:s,cx:16,cy:16,size:32,sizeType:"diameter",type:c})}function g(e){var{payload:t,iconSize:n,layout:i,formatter:o,inactiveColor:l,iconType:u,labelStyle:d}=e,p={x:0,y:0,width:32,height:32},g={display:"horizontal"===i?"inline-block":"block",marginRight:10},v={display:"inline-block",verticalAlign:"middle",marginRight:4};return t.map((t,i)=>{var y=t.formatter||o,b=(0,a.$)({"recharts-legend-item":!0,["legend-item-".concat(i)]:!0,inactive:t.inactive});if("none"===t.type)return null;var x="object"==typeof d?f({},d):{};x.color=t.inactive?l:x.color||t.color;var w=y?y(t.value,t,i):t.value;return r.createElement("li",h({className:b,style:g,key:"legend-item-".concat(i)},(0,c.XC)(e,t,i)),r.createElement(s.u,{width:n,height:n,viewBox:p,style:v,"aria-label":"".concat(t.value," legend icon")},r.createElement(m,{data:t,iconType:u,inactiveColor:l})),r.createElement("span",{className:"recharts-legend-item-text",style:x},w))})}var v=e=>{var t=(0,u.e)(e,p),{payload:n,layout:i,align:o}=t;return n&&n.length?r.createElement("ul",{className:"recharts-default-legend",style:{padding:0,margin:0,textAlign:"horizontal"===i?o:"left"}},r.createElement(g,h({},t,{payload:n}))):null},y=n(51985),b=n(33476),x=n(44752),w=n(92909),k=n(13469),S=n(96093),M=n(19575),A=["contextPayload"];function E(){return(E=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)}function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?C(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function P(e){return e.value}function T(e){var{contextPayload:t}=e,n=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,A),i=(0,y.s)(t,e.payloadUniqBy,P),o=O(O({},n),{},{payload:i});return r.isValidElement(e.content)?r.cloneElement(e.content,o):"function"==typeof e.content?r.createElement(e.content,o):r.createElement(v,o)}function D(e){var t=(0,b.j)();return(0,r.useEffect)(()=>{t((0,S.h1)(e))},[t,e]),null}function R(e){var t=(0,b.j)();return(0,r.useEffect)(()=>(t((0,S.hx)(e)),()=>{t((0,S.hx)({width:0,height:0}))}),[t,e]),null}var j={align:"center",iconSize:14,inactiveColor:"#ccc",itemSorter:"value",layout:"horizontal",verticalAlign:"bottom"},I=r.memo(function(e){var t,n=(0,u.e)(e,j),a=(0,b.G)(x.g0),s=(0,o.M)(),l=(0,k.Kp)(),{width:c,height:h,wrapperStyle:d,portal:f}=n,[p,m]=(0,w.V)([a]),g=(0,k.yi)(),v=(0,k.rY)();if(null==g||null==v)return null;var y=g-((null==l?void 0:l.left)||0)-((null==l?void 0:l.right)||0),S=(t=n.layout,"vertical"===t&&null!=h?{height:h}:"horizontal"===t?{width:c||y}:null),M=f?d:O(O({position:"absolute",width:(null==S?void 0:S.width)||c||"auto",height:(null==S?void 0:S.height)||h||"auto"},function(e,t,n,r,i,o){var a,s,{layout:l,align:c,verticalAlign:u}=t;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(a="center"===c&&"vertical"===l?{left:((r||0)-o.width)/2}:"right"===c?{right:n&&n.right||0}:{left:n&&n.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(s="middle"===u?{top:((i||0)-o.height)/2}:"bottom"===u?{bottom:n&&n.bottom||0}:{top:n&&n.top||0}),O(O({},a),s)}(d,n,l,g,v,p)),d),A=null!=f?f:s;if(null==A||null==a)return null;var C=r.createElement("div",{className:"recharts-legend-wrapper",style:M,ref:m},r.createElement(D,{layout:n.layout,align:n.align,verticalAlign:n.verticalAlign,itemSorter:n.itemSorter}),!f&&r.createElement(R,{width:p.width,height:p.height}),r.createElement(T,E({},n,S,{margin:l,chartWidth:g,chartHeight:v,contextPayload:a})));return(0,i.createPortal)(C,A)},M.P);I.displayName="Legend"},58396(e,t,n){"use strict";n.d(t,{w:()=>w,u:()=>S});var r=n(70851),i=n(50405),o=n(35254),a=n(34892),s="100%",l="100%",c={width:-1,height:-1},u=(e,t,n)=>{var{width:r=s,height:i=l,aspect:a,maxHeight:c}=n,u=(0,o._3)(r)?e:Number(r),h=(0,o._3)(i)?t:Number(i);return a&&a>0&&(u?h=u/a:h&&(u=h*a),c&&null!=h&&h>c&&(h=c)),{calculatedWidth:u,calculatedHeight:h}},h={width:0,height:0,overflow:"visible"},d={width:0,overflowX:"visible"},f={height:0,overflowY:"visible"},p={},m=n(49643);function g(){return(g=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)}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEac
2h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var b=(0,i.createContext)(c);function x(e){var{children:t,width:n,height:r}=e,o=(0,i.useMemo)(()=>({width:n,height:r}),[n,r]);return(0,m.F)(o.width)&&(0,m.F)(o.height)?i.createElement(b.Provider,{value:o},t):null}var w=()=>(0,i.useContext)(b),k=(0,i.forwardRef)((e,t)=>{var{aspect:n,initialDimension:s=c,width:l,height:m,minWidth:g=0,minHeight:v,maxHeight:b,children:w,debounce:k=0,id:S,className:M,onResize:A,style:E={}}=e,C=(0,i.useRef)(null),O=(0,i.useRef)();O.current=A,(0,i.useImperativeHandle)(t,()=>C.current);var[P,T]=(0,i.useState)({containerWidth:s.width,containerHeight:s.height}),D=(0,i.useCallback)((e,t)=>{T(n=>{var r=Math.round(e),i=Math.round(t);return n.containerWidth===r&&n.containerHeight===i?n:{containerWidth:r,containerHeight:i}})},[]);(0,i.useEffect)(()=>{if(null==C.current||"u"<typeof ResizeObserver)return o.lQ;var e=e=>{var t,n=e[0];if(null!=n){var{width:r,height:i}=n.contentRect;D(r,i),null==(t=O.current)||t.call(O,r,i)}};k>0&&(e=function(e,t=0,n={}){let{leading:r=!0,trailing:i=!0}=n;return function(e,t=0,n={}){let r;"object"!=typeof n&&(n={});let{leading:i=!1,trailing:o=!0,maxWait:a}=n,s=[,,];i&&(s[0]="leading"),o&&(s[1]="trailing");let l=null,c=function(e,t,{signal:n,edges:r}={}){let i,o=null,a=null!=r&&r.includes("leading"),s=null==r||r.includes("trailing"),l=()=>{null!==o&&(e.apply(i,o),i=void 0,o=null)},c=null,u=()=>{null!=c&&clearTimeout(c),c=setTimeout(()=>{c=null,s&&l(),h()},t)},h=()=>{null!==c&&(clearTimeout(c),c=null),i=void 0,o=null},d=function(...e){if(n?.aborted)return;i=this,o=e;let t=null==c;u(),a&&t&&l()};return d.schedule=u,d.cancel=h,d.flush=()=>{l()},n?.addEventListener("abort",h,{once:!0}),d}(function(...t){r=e.apply(this,t),l=null},t,{edges:s}),u=function(...t){return null!=a&&(null===l&&(l=Date.now()),Date.now()-l>=a)?(r=e.apply(this,t),l=Date.now(),c.cancel(),c.schedule(),r):(c.apply(this,t),r)};return u.cancel=c.cancel,u.flush=()=>(c.flush(),r),u}(e,t,{leading:r,maxWait:t,trailing:i})}(e,k,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),{width:n,height:r}=C.current.getBoundingClientRect();return D(n,r),t.observe(C.current),()=>{t.disconnect()}},[D,k]);var{containerWidth:R,containerHeight:j}=P;(0,a.R)(!n||n>0,"The aspect(%s) must be greater than zero.",n);var{calculatedWidth:I,calculatedHeight:z}=u(R,j,{width:l,height:m,aspect:n,maxHeight:b});return(0,a.R)(null!=I&&I>0||null!=z&&z>0,"The width(%s) and height(%s) of chart should be greater than 0,\n       please check the style of container, or the props width(%s) and height(%s),\n       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n       height and width.",I,z,l,m,g,v,n),i.createElement("div",{id:S?"".concat(S):void 0,className:(0,r.$)("recharts-responsive-container",M),style:y(y({},E),{},{width:l,height:m,minWidth:g,minHeight:v,maxHeight:b}),ref:C},i.createElement("div",{style:(e=>{var{width:t,height:n}=e,r=(0,o._3)(t),i=(0,o._3)(n);return r&&i?h:r?d:i?f:p})({width:l,height:m})},i.createElement(x,{width:I,height:z},w)))}),S=(0,i.forwardRef)((e,t)=>{var n=w();if((0,m.F)(n.width)&&(0,m.F)(n.height))return e.children;var{width:r,height:a}=function(e){var{width:t,height:n,aspect:r}=e,i=t,o=n;return void 0===i&&void 0===o?(i=s,o=l):void 0===i?i=r&&r>0?void 0:s:void 0===o&&(o=r&&r>0?void 0:l),{width:i,height:o}}({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:c,calculatedHeight:h}=u(void 0,void 0,{width:r,height:a,aspect:e.aspect,maxHeight:e.maxHeight});return(0,o.Et)(c)&&(0,o.Et)(h)?i.createElement(x,{width:c,height:h},e.children):i.createElement(k,g({},e,{width:r,height:a,ref:t}))})},37793(e,t,n){"use strict";n.d(t,{Gt:()=>D,fU:()=>T,EY:()=>N});var r,i,o,a=n(50405),s=n(70851),l=n(35254),c=n(36324),u=n(5622),h=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,d=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,f=/^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/,p=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,m={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},g=["cm","mm","pt","pc","in","Q","px"];class v{static parse(e){var t,[,n,r]=null!=(t=p.exec(e))?t:[];return null==n?v.NaN:new v(parseFloat(n),null!=r?r:"")}constructor(e,t){this.num=e,this.unit=t,this.num=e,this.unit=t,(0,l.M8)(e)&&(this.unit=""),""===t||f.test(t)||(this.num=NaN,this.unit=""),function(e){return g.includes(e)}(t)&&(this.num=function(e,t){return e*m[t]}(e,t),this.unit="px")}add(e){return this.unit!==e.unit?new v(NaN,""):new v(this.num+e.num,this.unit)}subtract(e){return this.unit!==e.unit?new v(NaN,""):new v(this.num-e.num,this.unit)}multiply(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new v(NaN,""):new v(this.num*e.num,this.unit||e.unit)}divide(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new v(NaN,""):new v(this.num/e.num,this.unit||e.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return(0,l.M8)(this.num)}}function y(e){if(null==e||e.includes("NaN"))return"NaN";for(var t=e;t.includes("*")||t.includes("/");){var n,[,r,i,o]=null!=(n=h.exec(t))?n:[],a=v.parse(null!=r?r:""),s=v.parse(null!=o?o:""),l="*"===i?a.multiply(s):a.divide(s);if(l.isNaN())return"NaN";t=t.replace(h,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,[,u,f,p]=null!=(c=d.exec(t))?c:[],m=v.parse(null!=u?u:""),g=v.parse(null!=p?p:""),y="+"===f?m.add(g):m.subtract(g);if(y.isNaN())return"NaN";t=t.replace(d,y.toString())}return t}i="NaN",o=new v(NaN,""),(i="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"))?r:r+"")in v?Object.defineProperty(v,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):v[i]=o;var b=/\(([^()]*)\)/;function x(e){var t=function(e){try{var t;return t=e.replace(/\s+/g,""),t=function(e){for(var t,n=e;null!=(t=b.exec(n));){var[,r]=t;n=n.replace(b,y(r))}return n}(t),t=y(t)}catch(e){return"NaN"}}(e.slice(5,-1));return"NaN"===t?"":t}var w=n(43646),k=n(2614),S=n(49643),M=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],A=["dx","dy","angle","className","breakAll"];function E(){return(E=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)}function C(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var O=/[ \f\n\r\t\v\u2028\u2029]+/,P=e=>{var{children:t,breakAll:n,style:r}=e;try{var i=[];(0,l.uy)(t)||(i=n?t.toString().split(""):t.toString().split(O));var o=i.map(e=>({word:e,width:(0,u.Pu)(e,r).width})),a=n?0:(0,u.Pu)("\xa0",r).width;return{wordsWithComputedWidth:o,spaceWidth:a}}catch(e){return null}};function T(e){return"start"===e||"middle"===e||"end"===e||"inherit"===e}function D(e){return(0,l.uy)(e)||"string"==typeof e||"number"==typeof e||"boolean"==typeof e}var R=(e,t,n,r)=>e.reduce((e,i)=>{var{word:o,width:a}=i,s=e[e.length-1];return s&&null!=a&&(null==t||r||s.width+a+n<Number(t))?(s.words.push(o),s.width+=a+n):e.push({words:[o],width:a}),e},[]),j=e=>e.reduce((e,t)=>
2e.width>t.width?e:t),I=(e,t,n,r,i,o,a,s)=>{var l=P({breakAll:n,style:r,children:e.slice(0,t)+"…"});if(!l)return[!1,[]];var c=R(l.wordsWithComputedWidth,o,a,s);return[c.length>i||j(c).width>Number(o),c]},z=e=>[{words:(0,l.uy)(e)?[]:e.toString().split(O),width:void 0}],_="#808080",L={angle:0,breakAll:!1,capHeight:"0.71em",fill:_,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},N=(0,a.forwardRef)((e,t)=>{var n,r=(0,k.e)(e,L),{x:i,y:o,lineHeight:u,capHeight:h,fill:d,scaleToFit:f,textAnchor:p,verticalAnchor:m}=r,g=C(r,M),v=(0,a.useMemo)(()=>(e=>{var{width:t,scaleToFit:n,children:r,style:i,breakAll:o,maxLines:a}=e;if((t||n)&&!c.m.isSsr){var s=P({breakAll:o,children:r,style:i});if(!s)return z(r);var{wordsWithComputedWidth:u,spaceWidth:h}=s;return((e,t,n,r,i)=>{var o,{maxLines:a,children:s,style:c,breakAll:u}=e,h=(0,l.Et)(a),d=String(s),f=R(t,r,n,i);if(!h||i||!(f.length>a||j(f).width>Number(r)))return f;for(var p=0,m=d.length-1,g=0;p<=m&&g<=d.length-1;){var v=Math.floor((p+m)/2),[y,b]=I(d,v-1,u,c,a,r,n,i),[x]=I(d,v,u,c,a,r,n,i);if(y||x||(p=v+1),y&&x&&(m=v-1),!y&&x){o=b;break}g++}return o||f})({breakAll:o,children:r,maxLines:a,style:i},u,h,t,!!n)}return z(r)})({breakAll:g.breakAll,children:g.children,maxLines:g.maxLines,scaleToFit:f,style:g.style,width:g.width}),[g.breakAll,g.children,g.maxLines,f,g.style,g.width]),{dx:y,dy:b,angle:O,className:T,breakAll:D}=g,N=C(g,A);if(!(0,l.vh)(i)||!(0,l.vh)(o)||0===v.length)return null;var B=Number(i)+((0,l.Et)(y)?y:0),F=Number(o)+((0,l.Et)(b)?b:0);if(!(0,S.H)(B)||!(0,S.H)(F))return null;switch(m){case"start":n=x("calc(".concat(h,")"));break;case"middle":n=x("calc(".concat((v.length-1)/2," * -").concat(u," + (").concat(h," / 2))"));break;default:n=x("calc(".concat(v.length-1," * -").concat(u,")"))}var V=[],H=v[0];if(f&&null!=H){var W=H.width,{width:$}=g;V.push("scale(".concat((0,l.Et)($)&&(0,l.Et)(W)?$/W:1,")"))}return O&&V.push("rotate(".concat(O,", ").concat(B,", ").concat(F,")")),V.length&&(N.transform=V.join(" ")),a.createElement("text",E({},(0,w.a)(N),{ref:t,x:B,y:F,className:(0,s.$)("recharts-text",T),textAnchor:p,fill:d.includes("url")?_:d}),v.map((e,t)=>{var r=e.words.join(D?"":" ");return a.createElement("tspan",{x:B,dy:0===t?n:u,key:"".concat(r,"-").concat(t)},r)}))});N.displayName="Text"},60502(e,t,n){"use strict";n.d(t,{m:()=>eu});var r=n(50405),i=n(47868),o=n(70318),a=n(70851),s=n(35254);function l(){return(l=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)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function h(e){return Array.isArray(e)&&(0,s.vh)(e[0])&&(0,s.vh)(e[1])?e.join(" ~ "):e}var d={margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},f={display:"block",paddingTop:4,paddingBottom:4,color:"#000"},p={},m=e=>{var{separator:t=" : ",contentStyle:n,itemStyle:i,labelStyle:c=p,payload:m,formatter:g,itemSorter:v,wrapperClassName:y,labelClassName:b,label:x,labelFormatter:w,accessibilityLayer:k=!1}=e,S=u(u({},d),n),M=u({margin:0},c),A=!(0,s.uy)(x),E=A?x:"",C=(0,a.$)("recharts-default-tooltip",y),O=(0,a.$)("recharts-tooltip-label",b);return A&&w&&null!=m&&(E=w(x,m)),r.createElement("div",l({className:C,style:S},k?{role:"status","aria-live":"assertive"}:{}),r.createElement("p",{className:O,style:M},r.isValidElement(E)?E:"".concat(E)),(()=>{if(m&&m.length){var e=(null==v?m:(0,o.U)(m,v)).map((e,n)=>{if(!e||"none"===e.type)return null;var o=e.formatter||g||h,{value:a,name:l}=e,c=a,d=l;if(o){var p=o(a,l,e,n,m);if(Array.isArray(p))[c,d]=p;else{if(null==p)return null;c=p}}var v=u(u({},f),{},{color:e.color||f.color},i);return r.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(n),style:v},(0,s.vh)(d)?r.createElement("span",{className:"recharts-tooltip-item-name"},d):null,(0,s.vh)(d)?r.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,r.createElement("span",{className:"recharts-tooltip-item-value"},c),r.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))});return r.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},e)}return null})())},g="recharts-tooltip-wrapper",v={visibility:"hidden"};function y(e){var{allowEscapeViewBox:t,coordinate:n,key:r,offset:i,position:o,reverseDirection:a,tooltipDimension:l,viewBox:c,viewBoxDimension:u}=e;
2if(o&&(0,s.Et)(o[r]))return o[r];var h=n[r]-l-(i>0?i:0),d=n[r]+i;if(t[r])return a[r]?h:d;var f=c[r];return null==f?0:a[r]?h<f?Math.max(d,f):Math.max(h,f):null==u?0:d+l>f+u?Math.max(h,f):Math.max(d,f)}var b=n(32485);function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var k=r.memo(function(e){var t,n,i,o,l,c,u=(0,b.j)(),[h,d]=r.useState(()=>({dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}));r.useEffect(()=>{var t=t=>
2{if("Escape"===t.key){var n,r,i,o;d({dismissed:!0,dismissedAtCoordinate:{x:null!=(n=null==(r=e.coordinate)?void 0:r.x)?n:0,y:null!=(i=null==(o=e.coordinate)?void 0:o.y)?i:0}})}};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[null==(t=e.coordinate)?void 0:t.x,null==(n=e.coordinate)?void 0:n.y]),h.dismissed&&((null!=(i=null==(o=e.coordinate)?void 0:o.x)?i:0)!==h.dismissedAtCoordinate.x||(null!=(l=null==(c=e.coordinate)?void 0:c.y)?l:0)!==h.dismissedAtCoordinate.y)&&d(w(w({},h),{},{dismissed:!1}));var{cssClasses:f,cssProperties:p}=function(e){var t,n,r,{allowEscapeViewBox:i,coordinate:o,offsetTop:l,offsetLeft:c,position:u,reverseDirection:h,tooltipBox:d,useTranslate3d:f,viewBox:p}=e;return{cssProperties:t=d.height>0&&d.width>0&&o?function(e){var{translateX:t,translateY:n,useTranslate3d:r}=e;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}({translateX:n=y({allowEscapeViewBox:i,coordinate:o,key:"x",offset:c,position:u,reverseDirection:h,tooltipDimension:d.width,viewBox:p,viewBoxDimension:p.width}),translateY:r=y({allowEscapeViewBox:i,coordinate:o,key:"y",offset:l,position:u,reverseDirection:h,tooltipDimension:d.height,viewBox:p,viewBoxDimension:p.height}),useTranslate3d:f}):v,cssClasses:function(e){var{coordinate:t,translateX:n,translateY:r}=e;return(0,a.$)(g,{["".concat(g,"-right")]:(0,s.Et)(n)&&t&&(0,s.Et)(t.x)&&n>=t.x,["".concat(g,"-left")]:(0,s.Et)(n)&&t&&(0,s.Et)(t.x)&&n<t.x,["".concat(g,"-bottom")]:(0,s.Et)(r)&&t&&(0,s.Et)(t.y)&&r>=t.y,["".concat(g,"-top")]:(0,s.Et)(r)&&t&&(0,s.Et)(t.y)&&r<t.y})}({translateX:n,translateY:r,coordinate:o})}}({allowEscapeViewBox:e.allowEscapeViewBox,coordinate:e.coordinate,offsetLeft:"number"==typeof e.offset?e.offset:e.offset.x,offsetTop:"number"==typeof e.offset?e.offset:e.offset.y,position:e.position,reverseDirection:e.reverseDirection,tooltipBox:{height:e.lastBoundingBox.height,width:e.lastBoundingBox.width},useTranslate3d:e.useTranslate3d,viewBox:e.viewBox}),m=e.hasPortalFromProps?{}:w(w({transition:function(e){if((!e.prefersReducedMotion||"auto"!==e.isAnimationActive)&&e.isAnimationActive&&e.active)return"transform ".concat(e.animationDuration,"ms ").concat(e.animationEasing)}({prefersReducedMotion:u,isAnimationActive:e.isAnimationActive,active:e.active,animationDuration:e.animationDuration,animationEasing:e.animationEasing})},p),{},{pointerEvents:"none",position:"absolute",top:0,left:0}),x=w(w({},m),{},{visibility:!h.dismissed&&e.active&&e.hasPayload?"visible":"hidden"},e.wrapperStyle);return r.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:f,style:x,ref:e.innerRef},e.children)}),S=n(51985),M=n(13469),A=n(12599),E=n(92909),C=n(22018),O=n(53e3),P=n(43646),T=["x","y","top","left","width","height","className"];function D(){return(D=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)}function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var j=e=>{var{x:t=0,y:n=0,top:i=0,left:o=0,width:l=0,height:c=0,className:u}=e,h=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({x:t,y:n,top:i,left:o,width:l,height:c},function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,T));return(0,s.Et)(t)&&(0,s.Et)(n)&&(0,s.Et)(l)&&(0,s.Et)(c)&&(0,s.Et)(i)&&(0,s.Et)(o)?r.createElement("path",D({},(0,P.a)(h),{className:(0,a.$)("recharts-cross",u),d:"M".concat(t,",").concat(i,"v").concat(c,"M").concat(o,",").concat(n,"h").concat(l)})):null},I=n(63701),z=n(91194);function _(e){var{cx:t,cy:n,radius:r,startAngle:i,endAngle:o}=e;return{points:[(0,z.IZ)(t,n,r,i),(0,z.IZ)(t,n,r,o)],cx:t,cy:n,radius:r,startAngle:i,endAngle:o}}var L=n(17928),N=n(33476),B=n(76752),F=n(30575),V=n(49677);function H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?H(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var $=n(60233),U=n(41514),K=n(29818),q=n(16026);function G(){return(G=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)}function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function X(e){var{cursor:t,cursorComp:n,cursorProps:i}=e;return(0,r.isValidElement)(t)?(0,r.cloneElement)(t,i):(0,r.createElement)(n,i)}function J(e){var t,n,i,o,s,{coordinate:l,payload:c,index:u,offset:h,tooltipAxisBandSize:d,layout:f,cursor:p,tooltipEventType:m,chartName:g}=e;if(!p||!l||"ScatterChart"!==g&&"axis"!==m)return null;if("ScatterChart"===g)i=l,o=j,s=q.I.cursorLine;else if("BarChart"===g)t=d/2,i={stroke:"none",fill:"#ccc",x:"horizontal"===f?l.x-t:h.left+.5,y:"horizontal"===f?h.top+.5:l.y-t,width:"horizontal"===f?d:h.width-1,height:"horizontal"===f?h.height-1:d},o=I.M,s=q.I.cursorRectangle;else if("radial"===f&&(0,C.TT)(l)){var{cx:v,cy:y,radius:b,startAngle:x,endAngle:w}=_(l);i={cx:v,cy:y,startAngle:x,endAngle:w,innerRadius:b,outerRadius:b},o=L.h,s=q.I.cursorLine}else i={points:function(e,t,n){if("horizontal"===e)return[{x:t.x,y:n.top},{x:t.x,y:n.top+n.height}];if("vertical"===e)return[{x:n.left,y:t.y},{x:n.left+n.width,y:t.y}];if((0,C.TT)(t)){if("centric"===e){var{cx:r,cy:i,innerRadius:o,outerRadius:a,angle:s}=t,l=(0,z.IZ)(r,i,o,s),c=(0,z.IZ)(r,i,a,s);return[{x:l.x,y:l.y},{x:c.x,y:c.y}]}return _(t)}}(f,l,h)},o=O.Ip,s=q.I.cursorLine;var k="object"==typeof p&&"className"in p?p.className:void 0,S=Y(Y(Y(Y({stroke:"#ccc",pointerEvents:"none"},h),i),(0,U.ic)(p)),{},{payload:c,payloadIndex:u,className:(0,a.$)("recharts-tooltip-cursor",k)});return r.createElement(K.g,{zIndex:null!=(n=e.zIndex)?n:s},r.createElement(X,{cursor:p,cursorComp:o,cursorProps:S}))}function Q(e){var t,n,i,o=(t=(0,N.G)(F.Dn),n=(0,N.G)(V.R4),i=(0,N.G)(V.fl),t&&i?(0,B.Hj)(W(W({},t),{},{scale:i}),n):(0,B.Hj)(void 0,n)),a=(0,M.W7)(),s=(0,M.WX)(),l=(0,$.fW)();return null==o||null==a||null==s||null==l?null:r.createElement(J,G({},e,{offset:a,layout:s,tooltipAxisBandSize:o,chartName:l}))}var ee=n(20452),et=n(54969),en=n(88703),er=n(33624),ei=n(2614);function eo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ea(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?eo(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function es(e){return e.dataKey}var el=[],ec={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:"auto",itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function eu(e){var t,n,o=(0,ei.e)(e,ec),{active:a,allowEscapeViewBox:s,animationDuration:l,animationEasing:c,content:u,filterNull:h,isAnimationActive:d,offset:f,payloadUniqBy:p,position:g,reverseDirection:v,useTranslate3d:y,wrapperStyle:b,cursor:x,shared:w,trigger:C,defaultIndex:O,portal:P,axisId:T}=o,D=(0,N.j)(),R="number"==typeof O?String(O):O;(0,r.useEffect)(()=>{D((0,et.UF)({shared:w,trigger:C,axisId:T,active:a,defaultIndex:R}))},[D,w,C,T,a,R]);var j=(0,M.sk)(),I=(0,A.$)(),z=(0,er.Td)(w),{activeIndex:_,isActive:L}=null!=(t=(0,N.G)(e=>(0,$.yn)(e,z,C,R)))?t:{},B=(0,N.G)(e=>(0,$.u9)(e,z,C,R)),F=(0,N.G)(e=>(0,$.BZ)(e,z,C,R)),V=(0,N.G)(e=>(0,$.dS)(e,z,C,R)),H=(0,ee.X)(),W=null!=(n=null!=a?a:L)&&n,[U,K]=(0,E.V)([B,W]),q="axis"===z?F:void 0;(0,en.m7)(z,C,V,q,_,W);var G=null!=P?P:H;if(null==G||null==j||null==z)return null;var Z=null!=B?B:el;W||(Z=el),h&&Z.length&&(Z=(0,S.s)(Z.filter(e=>null!=e.value&&(!0!==e.hide||o.includeHidden)),p,es));var Y=Z.length>0,X=ea(ea({},o),{},{payload:Z,label:q,active:W,activeIndex:_,coordinate:V,accessibilityLayer:I}),J=r.createElement(k,{allowEscapeViewBox:s,animationDuration:l,animationEasing:c,isAnimationActive:d,active:W,coordinate:V,hasPayload:Y,offset:f,position:g,reverseDirection:v,useTranslate3d:y,viewBox:j,wrapperStyle:b,lastBoundingBox:U,innerRef:K,hasPortalFromProps:!!P},r.isValidElement(u)?r.cloneElement(u,X):"function"==typeof u?r.createElement(u,X):r.createElement(m,X));return r.createElement(r.Fragment,null,(0,i.createPortal)(J,G),W&&r.createElement(Q,{cursor:x,tooltipEventType:z,coordinate:V,payload:Z,index:_}))}},83947(e,t,n){"use strict";n.d(t,{W:()=>l});var r=n(50405),i=n(70851),o=n(43646),a=["children","className"];function s(){return(s=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)}var l=r.forwardRef((e,t)=>{var{children:n,className:l}=e,c=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,a),u=(0,i.$)("recharts-layer",l);return r.createElement("g",s({className:u},(0,o.a)(c),{ref:t}),n)})},11369(e,t,n){"use strict";n.d(t,{u:()=>l});var r=n(50405),i=n(70851),o=n(43646),a=["children","width","height","viewBox","className","style","title","desc"];function s(){return(s=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)}var l=(0,r.forwardRef)((e,t)=>{var{children:n,width:l,height:c,viewBox:u,className:h,style:d,title:f,desc:p}=e,m=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,a),g=u||{width:l,height:c,x:0,y:0},v=(0,i.$)("recharts-surface",h);return r.createElement("svg",s({},(0,o.a)(m),{className:v,width:l,height:c,style:d,viewBox:"".concat(g.x," ").concat(g.y," ").concat(g.width," ").concat(g.height),ref:t}),r.createElement("title",null,f),r.createElement("desc",null,p),n)})},73560(e,t,n){"use strict";n.d(t,{zk:()=>a});var r=n(50405),i=["children"],o=(0,r.createContext)({data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0});function a(e){var{children:t}=e,n=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,i);return r.createElement(o.Provider,{value:n},t)}}
2,23920(e,t,n){"use strict";n.d(t,{r:()=>o});var r=n(50405),i=(0,r.createContext)(null),o=()=>null!=(0,r.useContext)(i)},15759(e,t,n){"use strict";n.d(t,{x:()=>c});var r,i=n(50405),o=n.t(i,2),a=n(35254),s=null!=(r=o["useId".toString()])?r:()=>{var[e]=i.useState(()=>(0,a.NF)("uid-"));return e},l=(0,i.createContext)(void 0),c=e=>{var t,n,{id:r,type:o,children:a}=e,c=(t="recharts-".concat(o),n=s(),r||(t?"".concat(t,"-").concat(n):n));return i.createElement(l.Provider,{value:c},a(c))}},12599(e,t,n){"use strict";n.d(t,{$:()=>i});var r=n(33476),i=()=>{var e;return null==(e=(0,r.G)(e=>e.rootProps.accessibilityLayer))||e}},42351(e,t,n){"use strict";n.d(t,{TK:()=>s});var r=n(50405),i=n(12484),o=n(33476),a=n(23920),s=e=>{var{chartData:t}=e,n=(0,o.j)(),s=(0,a.r)();return(0,r.useEffect)(()=>s?()=>{}:(n((0,i.hq)(t)),()=>{n((0,i.hq)(void 0))}),[t,n,s]),null}},13469(e,t,n){"use strict";n.d(t,{A3:()=>M,Kp:()=>y,RT:()=>k,SG:()=>S,W7:()=>m,WX:()=>x,fz:()=>b,kz:()=>w,qC:()=>d,rY:()=>v,sk:()=>f,yi:()=>g});var r=n(50405),i=n(33476),o=n(93440),a=n(41667),s=n(91906),l=n(23920),c=n(84851),u=n(58396),h=n(49643);function d(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var f=()=>{var e,t=(0,l.r)(),n=(0,i.G)(a.Ds),r=(0,i.G)(c.U),o=null==(e=(0,i.G)(c.C))?void 0:e.padding;return t&&r&&o?{width:r.width-o.left-o.right,height:r.height-o.top-o.bottom,x:o.left,y:o.top}:n},p={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},m=()=>{var e;return null!=(e=(0,i.G)(a.HZ))?e:p},g=()=>(0,i.G)(s.Lp),v=()=>(0,i.G)(s.A$),y=()=>(0,i.G)(e=>e.layout.margin),b=e=>e.layout.layoutType,x=()=>(0,i.G)(b),w=()=>{var e=x();if("horizontal"===e||"vertical"===e)return e},k=e=>{var t=e.layout.layoutType;if("centric"===t||"radial"===t)return t},S=()=>void 0!==x(),M=e=>{var t=(0,i.j)(),n=(0,l.r)(),{width:a,height:s}=e,c=(0,u.w)(),d=a,f=s;return c&&(d=c.width>0?c.width:a,f=c.height>0?c.height:s),(0,r.useEffect)(()=>{!n&&(0,h.F)(d)&&(0,h.F)(f)&&t((0,o.gX)({width:d,height:f}))},[t,n,d,f]),null}},71396(e,t,n){"use strict";n.d(t,{M:()=>o,t:()=>i});var r=n(50405),i=(0,r.createContext)(null),o=()=>(0,r.useContext)(i)},60562(e,t,n){"use strict";n.d(t,{Cj:()=>o,Pg:()=>a,Ub:()=>s});var r=n(33476),i=n(54969),o=(e,t,n)=>{var o=(0,r.j)();return(r,a)=>s=>{null==e||e(r,a,s),o((0,i.RD)({activeIndex:String(a),activeDataKey:t,activeCoordinate:r.tooltipPosition,activeGraphicalItemId:n}))}},a=e=>{var t=(0,r.j)();return(n,r)=>o=>{null==e||e(n,r,o),t((0,i.oP)())}},s=(e,t,n)=>{var o=(0,r.j)();return(r,a)=>s=>{null==e||e(r,a,s),o((0,i.ML)({activeIndex:String(a),activeDataKey:t,activeCoordinate:r.tooltipPosition,activeGraphicalItemId:n}))}}},20452(e,t,n){"use strict";n.d(t,{$:()=>i,X:()=>o});var r=n(50405),i=(0,r.createContext)(null),o=()=>(0,r.useContext)(i)},85715(e,t,n){"use strict";n.d(t,{oM:()=>u,EI:()=>h});var r=n(33476),i=n(49677),o=n(82263),a=n(41667),s=(0,o.Mz)([a.HZ],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),l=n(91906),c=(0,o.Mz)([s,l.Lp,l.A$],(e,t,n)=>{if(e&&null!=t&&null!=n)return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,n-e.top-e.bottom)}}),u=()=>(0,r.G)(c),h=()=>(0,r.G)(i.JG)},77444(e,t,n){"use strict";n.d(t,{Fq:()=>eA,L_:()=>ex});var r=n(50405),i=n(9600),o=n(70851),a=n(82263),s=n(42099),l=n(41667),c=n(76752),u=n(30575),h=n(13469),d=n(8249),f=n(54096),p=n(24273),m=n(66728),g=e=>e.graphicalItems.polarItems,v=(0,a.Mz)([d.N,f.E],u.eo),y=(0,a.Mz)([g,u.DP,v],u.ec),b=(0,a.Mz)([y],u.rj),x=(0,a.Mz)([b,s.z3],u.Nk),w=(0,a.Mz)([x,u.DP,y],u.fb);(0,a.Mz)([x,u.DP,y],(e,t,n)=>n.length>0?e.flatMap(e=>n.flatMap(n=>{var r;return{value:(0,c.kr)(e,null!=(r=t.dataKey)?r:n.dataKey),errorDomain:[]}})).filter(Boolean):(null==t?void 0:t.dataKey)!=null?e.map(e=>({value:(0,c.kr)(e,t.dataKey),errorDomain:[]})):e.map(e=>({value:e,errorDomain:[]})));var k=()=>void 0,S=(0,a.Mz)([x,u.DP,y,u.CH,d.N,s.G7],u.EZ),M=(0,a.Mz)([u.DP,u.AV,u.Lu,k,S,k,h.fz,d.N],u.wL),A=(0,a.Mz)([u.DP,h.fz,x,w,p.eC,d.N,M],u.tP),E=(0,a.Mz)([A,u.tm,u.xM],u.xp),C=(0,a.Mz)([u.DP,A,E,d.N],u.g1);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?O(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}(0,a.Mz)([u.xM,C],m.l);var T=(0,a.Mz)([g,(e,t)=>t],(e,t)=>e.filter(e=>"pie"===e.type).find(e=>e.id===t)),D=[],R=(e,t,n)=>(null==n?void 0:n.length)===0?D:n,j=(0,a.Mz)([s.z3,T,R],(e,t,n)=>{var r,{chartData:i}=e;if(null!=t&&((r=(null==t?void 0:t.data)!=null&&t.data.length>0?t.data:i)&&r.length||null==n||(r=n.map(e=>P(P({},t.presentationProps),e.props))),null!=r))return r}),I=(0,a.Mz)([j,T,R],(e,t,n)=>{if(null!=e&&null!=t)return e.map((e,r)=>{var i,o,a=(0,c.kr)(e,t.nameKey,t.name);return o=null!=n&&null!=(i=n[r])&&null!=(i=i.props)&&i.fill?n[r].props.fill:"object"==typeof e&&null!=e&&"fill"in e?e.fill:t.fill,{value:(0,c.uM)(a,t.dataKey),color:o,payload:e,type:t.legendType}})}),z=(0,a.Mz)([j,T,R,l.HZ],(e,t,n,r)=>{if(null!=t&&null!=e)return ex({offset:r,pieSettings:t,displayedData:e,cells:n})}),_=n(33476),L=n(83947),N=n(53e3),B=n(37793),F=n(2980),V=n(62607),H=n(91194),W=n(35254),$=n(22018),U=n(10657),K=n(60562),q=n(67792),G=n(49677),Z=n(90379),Y=n(21062),X=n(11057),J=n(2614),Q=n(15759),ee=n(4020),et=n(41514),en=n(61419),er=n(76120),ei=n(29818),eo=n(16026),ea=n(76800),es=["key"],el=["onMouseEnter","onClick","onMouseLeave"],ec=["id"],eu=["id"];function eh(){return(eh=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)}function ed(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ef(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ep(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ef(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ef(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function em(e){var t=(0,r.useMemo)(()=>(0,V.aS)(e.children,F.f),[e.children]),n=(0,_.G)(n=>I(n,e.id,t));return null==n?null:r.createElement(Z._,{legendPayload:n})}var eg=r.memo(e=>{var{dataKey:t,nameKey:n,sectors:i,stroke:o,strokeWidth:a,fill:s,name:l,hide:u,tooltipType:h,id:d,activeShape:f}=e,p=function(e){if(null!=e&&"boolean"!=typeof e&&"function"!=typeof e){if(r.isValidElement(e)){var t,n=null==(t=e.props)?void 0:t.fill;return"string"==typeof n?n:void 0}var{fill:i}=e;return"string"==typeof i?i:void 0}}(f),m={dataDefinedOnItem:i.map(e=>{var t=e.tooltipPayload;return null==p||null==t?t:t.map(e=>ep(ep({},e),{},{color:p,fill:p}))}),getPosition:e=>{var t;return null==(t=i[Number(e)])?void 0:t.tooltipPosition},settings:{stroke:o,strokeWidth:a,fill:s,dataKey:t,nameKey:n,name:(0,c.uM)(l,t),hide:u,type:h,color:s,unit:"",graphicalItemId:d}};return r.createElement(q.r,{tooltipEntrySettings:m})});function ev(e){var{sectors:t,props:n,showLabels:i}=e,{label:a,labelLine:s,dataKey:l}=n;if(!i||!a||!t)return null;var u=(0,et.uZ)(n),h=(0,et.ic)(a),d=(0,et.ic)(s),f="object"==typeof a&&"offsetRadius"in a&&"number"==typeof a.offsetRadius&&a.offsetRadius||20,p=t.map((e,t)=>{var n,i,p=(e.startAngle+e.endAngle)/2,m=(0,H.IZ)(e.cx,e.cy,e.outerRadius+f,p),g=ep(ep(ep(ep({},u),e),{},{stroke:"none"},h),{},{index:t,textAnchor:(n=m.x)>(i=e.cx)?"start":n<i?"end":"middle"},m),v=ep(ep(ep(ep({},u),e),{},{fill:"none",stroke:e.fill},d),{},{index:t,points:[(0,H.IZ)(e.cx,e.cy,e.outerRadius,p),m],key:"line"});return r.createElement(ei.g,{zIndex:eo.I.label,key:"label-".concat(e.startAngle,"-").concat(e.endAngle,"-").concat(e.midAngle,"-").concat(t)},r.createElement(L.W,null,s&&((e,t)=>{if(r.isValidElement(e))return r.cloneElement(e,t);if("function"==typeof e)return e(t);var n=(0,o.$)("recharts-pie-label-line","boolean"!=typeof e?e.className:""),{key:i}=t,a=ed(t,es);return r.createElement(N.Ip,eh({},a,{type:"linear",className:n}))})(s,v),((e,t,n)=>{if(r.isValidElement(e))return r.cloneElement(e,t);var i=n;
2if("function"==typeof e&&(i=e(t),r.isValidElement(i)))return i;var a=(0,o.$)("recharts-pie-label-text",(0,ea.I)(e));return r.createElement(B.EY,eh({},t,{alignmentBaseline:"middle",className:a}),i)})(a,g,(0,c.kr)(e,l))))});return r.createElement(L.W,{className:"recharts-pie-labels"},p)}function ey(e){var{sectors:t,props:n,showLabels:i}=e,{label:o}=n;return"object"==typeof o&&null!=o&&"position"in o?r.createElement(er.qY,{label:o}):r.createElement(ev,{sectors:t,props:n,showLabels:i})}function eb(e){var{sectors:t,activeShape:n,inactiveShape:i,allOtherPieProps:o,shape:a,id:s}=e,l=(0,_.G)(G.A2),c=(0,_.G)(G.Xb),u=(0,_.G)(G.fx),{onMouseEnter:h,onClick:d,onMouseLeave:f}=o,p=ed(o,el),m=(0,K.Cj)(h,o.dataKey,s),g=(0,K.Pg)(f),v=(0,K.Ub)(d,o.dataKey,s);return null==t||0===t.length?null:r.createElement(r.Fragment,null,t.map((e,h)=>{if((null==e?void 0:e.startAngle)===0&&(null==e?void 0:e.endAngle)===0&&1!==t.length)return null;var d=null==u||u===s,f=String(h)===l&&(null==c||o.dataKey===c)&&d,y=n&&f?n:l?i:null,b=ep(ep({},e),{},{stroke:e.stroke,tabIndex:-1,[Y.F0]:h,[Y.yU]:s});return r.createElement(L.W,eh({key:"sector-".concat(null==e?void 0:e.startAngle,"-").concat(null==e?void 0:e.endAngle,"-").concat(e.midAngle,"-").concat(h),tabIndex:-1,className:"recharts-pie-sector"},(0,$.XC)(p,e,h),{onMouseEnter:m(e,h),onMouseLeave:g(e,h),onClick:v(e,h)}),r.createElement(U.y,eh({option:null!=a?a:y,index:h,shapeType:"sector",isActive:f},b)))}))}function ex(e){var t,n,r,{pieSettings:i,displayedData:o,cells:a,offset:s}=e,{cornerRadius:l,startAngle:u,endAngle:h,dataKey:d,nameKey:f,tooltipType:p}=i,m=Math.abs(i.minAngle),g=(0,W.sA)(h-u)*Math.min(Math.abs(h-u),360),v=Math.abs(g),y=o.length<=1?0:null!=(t=i.paddingAngle)?t:0,b=o.filter(e=>0!==(0,c.kr)(e,d,0)).length,x=o.reduce((e,t)=>{var n=(0,c.kr)(t,d,0);return e+((0,W.Et)(n)?n:0)},0),w=m>0&&x>0&&o.some(e=>{var t=(0,c.kr)(e,d,0),n=((0,W.Et)(t)?t:0)/x;return 0!==t&&n*v<m})?m:0,k=v-b*w-(v>=360?b:b-1)*y;return x>0&&(n=o.map((e,t)=>{var n,o=(0,c.kr)(e,d,0),h=(0,c.kr)(e,f,t),m=((e,t,n)=>{var r,{top:i,left:o,width:a,height:s}=t,l=(0,H.lY)(a,s),c=o+(0,W.F4)(e.cx,a,a/2),u=i+(0,W.F4)(e.cy,s,s/2),h=(0,W.F4)(e.innerRadius,l,0);return{cx:c,cy:u,innerRadius:h,outerRadius:(r=e.outerRadius,"function"==typeof r?(0,W.F4)(r(n),l,.8*l):(0,W.F4)(r,l,.8*l)),maxRadius:e.maxRadius||Math.sqrt(a*a+s*s)/2}})(i,s,e),v=((0,W.Et)(o)?o:0)/x,b=ep(ep({},e),a&&a[t]&&a[t].props),S=null!=b&&"fill"in b&&"string"==typeof b.fill?b.fill:i.fill,M=(n=t?r.endAngle+(0,W.sA)(g)*y*(0!==o):u)+(0,W.sA)(g)*((0!==o?w:0)+v*k),A=(n+M)/2,E=(m.innerRadius+m.outerRadius)/2,C=[{name:h,value:o,payload:b,dataKey:d,type:p,color:S,fill:S,graphicalItemId:i.id}],O=(0,H.IZ)(m.cx,m.cy,E,A);return r=ep(ep(ep(ep({},i.presentationProps),{},{percent:v,cornerRadius:"string"==typeof l?parseFloat(l):l,name:h,tooltipPayload:C,midAngle:A,middleRadius:E,tooltipPosition:O},b),m),{},{value:o,dataKey:d,startAngle:n,endAngle:M,payload:b,paddingAngle:0!==o?(0,W.sA)(g)*y:0})})),n}function ew(e){var{showLabels:t,sectors:n,children:i}=e,o=(0,r.useMemo)(()=>t&&n?n.map(e=>({value:e.value,payload:e.payload,clockWise:!1,parentViewBox:void 0,viewBox:{cx:e.cx,cy:e.cy,innerRadius:e.innerRadius,outerRadius:e.outerRadius,startAngle:e.startAngle,endAngle:e.endAngle,clockWise:!1},fill:e.fill})):[],[n,t]);return r.createElement(er.dL,{value:t?o:void 0},i)}function ek(e){var{props:t,previousSectorsRef:n,id:o}=e,{sectors:a,isAnimationActive:s,animationBegin:l,animationDuration:c,animationEasing:u,activeShape:h,inactiveShape:d,onAnimationStart:f,onAnimationEnd:p}=t,m=(0,X.n)(t,"recharts-pie-"),g=n.current,[v,y]=(0,r.useState)(!1),b=(0,r.useCallback)(()=>{"function"==typeof p&&p(),y(!1)},[p]),x=(0,r.useCallback)(()=>{"function"==typeof f&&f(),y(!0)},[f]);return r.createElement(ew,{showLabels:!v,sectors:a},r.createElement(en.J,{animationId:m,begin:l,duration:c,isActive:s,easing:u,onAnimationStart:x,onAnimationEnd:b,key:m},e=>{var s,l=[],c=a&&a[0],u=null!=(s=null==c?void 0:c.startAngle)?s:0;return null==a||a.forEach((t,n)=>{var r=g&&g[n],o=n>0?(0,i.J)(t,"paddingAngle",0):0;if(r){var a=(0,W.GW)(r.endAngle-r.startAngle,t.endAngle-t.startAngle,e),s=ep(ep({},t),{},{startAngle:u+o,endAngle:u+a+o});l.push(s),u=s.endAngle}else{var{endAngle:c,startAngle:h}=t,d=(0,W.GW)(0,c-h,e),f=ep(ep({},t),{},{startAngle:u+o,endAngle:u+d+o});l.push(f),u=f.endAngle}}),n.current=l,r.createElement(L.W,null,r.createElement(eb,{sectors:l,activeShape:h,inactiveShape:d,allOtherPieProps:t,shape:t.shape,id:o}))}),r.createElement(ey,{showLabels:!v,sectors:a,props:t}),t.children)}var eS={animationBegin:400,animationDuration:1500,animationEasing:"ease",cx:"50%",cy:"50%",dataKey:"value",endAngle:360,fill:"#808080",hide:!1,innerRadius:0,isAnimationActive:"auto",label:!1,labelLine:!0,legendT
2ype:"rect",minAngle:0,nameKey:"name",outerRadius:"80%",paddingAngle:0,rootTabIndex:0,startAngle:0,stroke:"#fff",zIndex:eo.I.area};function eM(e){var{id:t}=e,n=ed(e,ec),{hide:i,className:a,rootTabIndex:s}=e,l=(0,r.useMemo)(()=>(0,V.aS)(e.children,F.f),[e.children]),c=(0,_.G)(e=>z(e,t,l)),u=(0,r.useRef)(null),h=(0,o.$)("recharts-pie",a);return i||null==c?(u.current=null,r.createElement(L.W,{tabIndex:s,className:h})):r.createElement(ei.g,{zIndex:e.zIndex},r.createElement(eg,{dataKey:e.dataKey,nameKey:e.nameKey,sectors:c,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,tooltipType:e.tooltipType,id:t,activeShape:e.activeShape}),r.createElement(L.W,{tabIndex:s,className:h},r.createElement(ek,{props:ep(ep({},n),{},{sectors:c}),previousSectorsRef:u,id:t})))}var eA=function(e){var t=(0,J.e)(e,eS),{id:n}=t,i=ed(t,eu),o=(0,et.uZ)(i);return r.createElement(Q.x,{id:n,type:"pie"},e=>r.createElement(r.Fragment,null,r.createElement(ee.v,{type:"pie",id:e,data:i.data,dataKey:i.dataKey,hide:i.hide,angleAxisId:0,radiusAxisId:0,name:i.name,nameKey:i.nameKey,tooltipType:i.tooltipType,legendType:i.legendType,fill:i.fill,cx:i.cx,cy:i.cy,startAngle:i.startAngle,endAngle:i.endAngle,paddingAngle:i.paddingAngle,minAngle:i.minAngle,innerRadius:i.innerRadius,outerRadius:i.outerRadius,cornerRadius:i.cornerRadius,presentationProps:o,maxRadius:t.maxRadius}),r.createElement(em,eh({},i,{id:e})),r.createElement(eM,eh({},i,{id:e}))))};eA.displayName="Pie"},53e3(e,t,n){"use strict";n.d(t,{Ip:()=>W});var r=n(50405);function i(){}function o(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function a(e){this._context=e}function s(e){this._context=e}function l(e){this._context=e}a.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:o(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:o(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},s.prototype={areaStart:i,areaEnd:i,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:o(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},l.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:o(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};class c{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function u(e){this._context=e}function h(e){this._context=e}function d(e){return new h(e)}u.prototype={areaStart:i,areaEnd:i,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e*=1,t*=1,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function f(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0);return((o<0?-1:1)+(a<0?-1:1))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs((o*i+a*r)/(r+i)))||0}function p(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function m(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function g(e){this._context=e}function v(e){this._context=new y(e)}function y(e){this._context=e}function b(e){this._context=e}function x(e){var t,n,r=e.length-1,i=Array(r),o=Array(r),a=Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/o[t-1],o[t]-=n,a[t]-=n*a[t-1];for(i[r-1]=a[r-1]/o[r-1],t=r-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(t=0,o[r-1]=(e[r]+i[r-1])/2;t<r-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function w(e,t){this._context=e,this._t=t}h.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}},g.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:m(this,this._t0,p(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t*=1,(e*=1)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,m(this,p(this,n=f(this,e,t)),n);break;default:m(this,this._t0,n=f(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(v.prototype=Object.create(g.prototype)).point=function(e,t){g.prototype.point.call(this,t,e)},y.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}},b.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=x(e),i=x(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},w.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var k=n(85780),S=n(94977),M=n(47569);function A(e){return e[0]}function E(e){return e[1]}function C(e,t){var n=(0,S.A)(!0),r=null,i=d,o=null,a=(0,M.i)(s);function s(s){var l,c,u,h=(s=(0,k.A)(s)).length,d=!1;for(null==r&&(o=i(u=a())),l=0;l<=h;++l)!(l<h&&n(c=s[l],l,s))===d&&((d=!d)?o.lineStart():o.lineEnd()),d&&o.point(+e(c,l,s),+t(c,l,
2s));if(u)return o=null,u+""||null}return e="function"==typeof e?e:void 0===e?A:(0,S.A)(e),t="function"==typeof t?t:void 0===t?E:(0,S.A)(t),s.x=function(t){return arguments.length?(e="function"==typeof t?t:(0,S.A)(+t),s):e},s.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,S.A)(+e),s):t},s.defined=function(e){return arguments.length?(n="function"==typeof e?e:(0,S.A)(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,null!=r&&(o=i(r)),s):i},s.context=function(e){return arguments.length?(null==e?r=o=null:o=i(r=e),s):r},s}function O(e,t,n){var r=null,i=(0,S.A)(!0),o=null,a=d,s=null,l=(0,M.i)(c);function c(c){var u,h,d,f,p,m=(c=(0,k.A)(c)).length,g=!1,v=Array(m),y=Array(m);for(null==o&&(s=a(p=l())),u=0;u<=m;++u){if(!(u<m&&i(f=c[u],u,c))===g)if(g=!g)h=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),d=u-1;d>=h;--d)s.point(v[d],y[d]);s.lineEnd(),s.areaEnd()}g&&(v[u]=+e(f,u,c),y[u]=+t(f,u,c),s.point(r?+r(f,u,c):v[u],n?+n(f,u,c):y[u]))}if(p)return s=null,p+""||null}function u(){return C().defined(i).curve(a).context(o)}return e="function"==typeof e?e:void 0===e?A:(0,S.A)(+e),t="function"==typeof t?t:void 0===t?(0,S.A)(0):(0,S.A)(+t),n="function"==typeof n?n:void 0===n?E:(0,S.A)(+n),c.x=function(t){return arguments.length?(e="function"==typeof t?t:(0,S.A)(+t),r=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:(0,S.A)(+t),c):e},c.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:(0,S.A)(+e),c):r},c.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,S.A)(+e),n=null,c):t},c.y0=function(e){return arguments.length?(t="function"==typeof e?e:(0,S.A)(+e),c):t},c.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:(0,S.A)(+e),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(e){return arguments.length?(i="function"==typeof e?e:(0,S.A)(!!e),c):i},c.curve=function(e){return arguments.length?(a=e,null!=o&&(s=a(o)),c):a},c.context=function(e){return arguments.length?(null==e?o=s=null:s=a(o=e),c):o},c}var P=n(70851),T=n(22018),D=n(35254),R=n(49643),j=n(41514),I=n(13469);function z(){return(z=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)}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var N={curveBasisClosed:function(e){return new s(e)},curveBasisOpen:function(e){return new l(e)},curveBasis:function(e){return new a(e)},curveBumpX:function(e){return new c(e,!0)},curveBumpY:function(e){return new c(e,!1)},curveLinearClosed:function(e){return new u(e)},curveLinear:d,curveMonotoneX:function(e){return new g(e)},curveMonotoneY:function(e){return new v(e)},curveNatural:function(e){return new b(e)},curveStep:function(e){return new w(e,.5)},curveStepAfter:function(e){return new w(e,1)},curveStepBefore:function(e){return new w(e,0)}},B=e=>(0,R.H)(e.x)&&(0,R.H)(e.y),F=e=>null!=e.base&&B(e.base)&&B(e),V=e=>e.x,H=e=>e.y,W=e=>{var{className:t,points:n,path:i,pathRef:o}=e,a=(0,I.WX)();if((!n||!n.length)&&!i)return null;var s={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||a,connectNulls:e.connectNulls},l=n&&n.length?(e=>{var{type:t="linear",points:n=[],baseLine:r,layout:i,connectNulls:o=!1}=e,a=((e,t)=>{if("function"==typeof e)return e;var n="curve".concat((0,D.Zb)(e));if(("curveMonotone"===n||"curveBump"===n)&&t){var r=N["".concat(n).concat("vertical"===t?"Y":"X")];if(r)return r}return N[n]||d}
2)(t,i),s=o?n.filter(B):n;if(Array.isArray(r)){var l=n.map((e,t)=>L(L({},e),{},{base:r[t]}));return("vertical"===i?O().y(H).x1(V).x0(e=>e.base.x):O().x(V).y1(H).y0(e=>e.base.y)).defined(F).curve(a)(o?l.filter(F):l)}return("vertical"===i&&(0,D.Et)(r)?O().y(H).x1(V).x0(r):(0,D.Et)(r)?O().x(V).y1(H).y0(r):C().x(V).y(H)).defined(B).curve(a)(s)})(s):i;return r.createElement("path",z({},(0,j.uZ)(e),(0,T._U)(e),{className:(0,P.$)("recharts-curve",t),d:null===l?void 0:l,ref:o}))}},58187(e,t,n){"use strict";n.d(t,{c:()=>c});var r=n(50405),i=n(70851),o=n(22018),a=n(41514),s=n(35254);function l(){return(l=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)}var c=e=>{var{cx:t,cy:n,r:c,className:u}=e,h=(0,i.$)("recharts-dot",u);return(0,s.Et)(t)&&(0,s.Et)(n)&&(0,s.Et)(c)?r.createElement("circle",l({},(0,a.uZ)(e),(0,o._U)(e),{className:h,cx:t,cy:n,r:c})):null}},63701(e,t,n){"use strict";n.d(t,{M:()=>D});var r,i,o,a,s,l,c,u,h,d,f=n(50405),p=n(70851),m=n(2614),g=n(61419),v=n(35254),y=n(11057),b=n(85991),x=n(43646),w=n(98943),k=["radius"],S=["radius"];function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function E(){return(E=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)}function C(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function O(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var P=(e,t,n,f,p)=>{var m=(0,w.L)(n),g=(0,w.L)(f),v=Math.min(Math.abs(m)/2,Math.abs(g)/2),y=g>=0?1:-1,b=m>=0?1:-1,x=+(g>=0&&m>=0||g<0&&m<0);if(v>0&&Array.isArray(p)){for(var k=[0,0,0,0],S=0;S<4;S++){var M,A,E=null!=(A=p[S])?A:0;k[S]=E>v?v:E}M=(0,w.Y)(r||(r=O(["M",",",""])),e,t+y*k[0]),k[0]>0&&(M+=(0,w.Y)(i||(i=O(["A ",",",",0,0,",",",",",""])),k[0],k[0],x,e+b*k[0],t)),M+=(0,w.Y)(o||(o=O(["L ",",",""])),e+n-b*k[1],t),k[1]>0&&(M+=(0,w.Y)(a||(a=O(["A ",",",",0,0,",",\n        ",",",""])),k[1],k[1],x,e+n,t+y*k[1])),M+=(0,w.Y)(s||(s=O(["L ",",",""])),e+n,t+f-y*k[2]),k[2]>0&&(M+=(0,w.Y)(l||(l=O(["A ",",",",0,0,",",\n        ",",",""])),k[2],k[2],x,e+n-b*k[2],t+f)),M+=(0,w.Y)(c||(c=O(["L ",",",""])),e+b*k[3],t+f),k[3]>0&&(M+=(0,w.Y)(u||(u=O(["A ",",",",0,0,",",\n        ",",",""])),k[3],k[3],x,e,t+f-y*k[3])),M+="Z"}else if(v>0&&p===+p&&p>0){var C=Math.min(v,p);M=(0,w.Y)(h||(h=O(["M ",",","\n            A ",",",",0,0,",",",",","\n            L ",",","\n            A ",",",",0,0,",",",",","\n            L ",",","\n            A ",",",",0,0,",",",",","\n            L ",",","\n            A ",",",",0,0,",",",","," Z"])),e,t+y*C,C,C,x,e+b*C,t,e+n-b*C,t,C,C,x,e+n,t+y*C,e+n,t+f-y*C,C,C,x,e+n-b*C,t+f,e+b*C,t+f,C,C,x,e,t+f-y*C)}else M=(0,w.Y)(d||(d=O(["M ",","," h "," v "," h "," Z"])),e,t,n,f,-n);return M},T={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},D=e=>{var t=(0,m.e)(e,T),n=(0,f.useRef)(null),[r,i]=(0,f.useState)(-1);(0,f.useEffect)(()=>
2{if(n.current&&n.current.getTotalLength)try{var e=n.current.getTotalLength();e&&i(e)}catch(e){}},[]);var{x:o,y:a,width:s,height:l,radius:c,className:u}=t,{animationEasing:h,animationDuration:d,animationBegin:M,isAnimationActive:O,isUpdateAnimationActive:D}=t,R=(0,f.useRef)(s),j=(0,f.useRef)(l),I=(0,f.useRef)(o),z=(0,f.useRef)(a),_=(0,f.useMemo)(()=>({x:o,y:a,width:s,height:l,radius:c}),[o,a,s,l,c]),L=(0,y.n)(_,"rectangle-");if(o!==+o||a!==+a||s!==+s||l!==+l||0===s||0===l)return null;var N=(0,p.$)("recharts-rectangle",u);if(!D){var B=(0,x.a)(t),{radius:F}=B,V=C(B,k);return f.createElement("path",E({},V,{x:(0,w.L)(o),y:(0,w.L)(a),width:(0,w.L)(s),height:(0,w.L)(l),radius:"number"==typeof c?c:void 0,className:N,d:P(o,a,s,l,c)}))}var H=R.current,W=j.current,$=I.current,U=z.current,K="0px ".concat(-1===r?1:r,"px"),q="".concat(r,"px ").concat(r,"px"),G=(0,b.dl)(["strokeDasharray"],d,"string"==typeof h?h:T.animationEasing);return f.createElement(g.J,{animationId:L,key:L,canBegin:r>0,duration:d,easing:h,isActive:D,begin:M},e=>{var r,i=(0,v.GW)(H,s,e),u=(0,v.GW)(W,l,e),h=(0,v.GW)($,o,e),d=(0,v.GW)(U,a,e);n.current&&(R.current=i,j.current=u,I.current=h,z.current=d),r=O?e>0?{transition:G,strokeDasharray:q}:{strokeDasharray:K}:{strokeDasharray:q};var p=(0,x.a)(t),{radius:m}=p,g=C(p,S);return f.createElement("path",E({},g,{radius:"number"==typeof c?c:void 0,className:N,d:P(h,d,i,u,c),ref:n,style:A(A({},r),t.style)}))})}},17928(e,t,n){"use strict";n.d(t,{h:()=>k});var r,i,o,a,s,l,c,u=n(50405),h=n(70851),d=n(91194),f=n(35254),p=n(2614),m=n(43646),g=n(98943);function v(){return(v=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)}function y(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var b=e=>{var{cx:t,cy:n,radius:r,angle:i,sign:o,isExternal:a,cornerRadius:s,cornerIsExternal:l}=e,c=s*(a?1:-1)+r,u=Math.asin(s/c)/d.Kg,h=l?i:i+o*u,f=(0,d.IZ)(t,n,c,h);return{center:f,circleTangency:(0,d.IZ)(t,n,r,h),lineTangency:(0,d.IZ)(t,n,c*Math.cos(u*d.Kg),l?i-o*u:i),theta:u}},x=e=>{var{cx:t,cy:n,innerRadius:a,outerRadius:s,startAngle:l,endAngle:c}=e,u=(0,f.sA)(c-l)*Math.min(Math.abs(c-l),359.999),h=l+u,p=(0,d.IZ)(t,n,s,l),m=(0,d.IZ)(t,n,s,h),v=(0,g.Y)(r||(r=y(["M ",",","\n    A ",",",",0,\n    ",",",",\n    ",",","\n  "])),p.x,p.y,s,s,+(Math.abs(u)>180),+(l>h),m.x,m.y);if(a>0){var b=(0,d.IZ)(t,n,a,l),x=(0,d.IZ)(t,n,a,h);v+=(0,g.Y)(i||(i=y(["L ",",","\n            A ",",",",0,\n            ",",",",\n            ",","," Z"])),x.x,x.y,a,a,+(Math.abs(u)>180),+(l<=h),b.x,b.y)}else v+=(0,g.Y)(o||(o=y(["L ",","," Z"])),t,n);return v},w={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},k=e=>{var t,n=(0,p.e)(e,w),{cx:r,cy:i,innerRadius:o,outerRadius:d,cornerRadius:k,forceCornerRadius:S,cornerIsExternal:M,startAngle:A,endAngle:E,className:C}=n;if(d<o||A===E)return null;var O=(0,h.$)("recharts-sector",C),P=d-o,T=(0,f.F4)(k,P,0,!0);return t=T>0&&360>Math.abs(A-E)?(e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:i,cornerRadius:o,forceCornerRadius:u,cornerIsExternal:h,startAngle:d,endAngle:p}=e,m=(0,f.sA)(p-d),{circleTangency:v,lineTangency:w,theta:k}=b({cx:t,cy:n,radius:i,angle:d,sign:m,cornerRadius:o,cornerIsExternal:h}),{circleTangency:S,lineTangency:M,theta:A}=b({cx:t,cy:n,radius:i,angle:p,sign:-m,cornerRadius:o,cornerIsExternal:h}),E=h?Math.abs(d-p):Math.abs(d-p)-k-A;if(E<0)return u?(0,g.Y)(a||(a=y(["M ",",","\n        a",",",",0,0,1,",",0\n        a",",",",0,0,1,",",0\n      "])),w.x,w.y,o,o,2*o,o,o,-(2*o)):x({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:d,endAngle:p});var C=(0,g.Y)(s||(s=y(["M ",",","\n    A",",",",0,0,",",",",","\n    A",",",",0,",",",",",",","\n    A",",",",0,0,",",",",","\n  "])),w.x,w.y,o,o,+(m<0),v.x,v.y,i,i,+(E>180),+(m<0),S.x,S.y,o,o,+(m<0),M.x,M.y);if(r>0){var{circleTangency:O,lineTangency:P,theta:T}=b({cx:t,cy:n,radius:r,angle:d,sign:m,isExternal:!0,cornerRadius:o,cornerIsExternal:h}),{circleTangency:D,lineTangency:R,theta:j}=b({cx:t,cy:n,radius:r,angle:p,sign:-m,isExternal:!0,cornerRadius:o,cornerIsExternal:h}),I=h?Math.abs(d-p):Math.abs(d-p)-T-j;if(I<0&&0===o)return"".concat(C,"L").concat(t,",").concat(n,"Z");C+=(0,g.Y)(l||(l=y(["L",",","\n      A",",",",0,0,",",",",","\n      A",",",",0,",",",",",",","\n      A",",",",0,0,",",",",","Z"])),R.x,R.y,o,o,+(m<0),D.x,D.y,r,r,+(I>180),+(m>0),O.x,O.y,o,o,+(m<0),P.x,P.y)}else C+=(0,g.Y)(c||(c=y(["L",",","Z"])),t,n);return C})({cx:r,cy:i,innerRadius:o,outerRadius:d,cornerRadius:Math.min(T,P/2),forceCornerRadius:S,cornerIsExternal:M,startAngle:A,endAngle:E}):x({cx:r,cy:i,innerRadius:o,outerRadius:d,startAngle:A,endAngle:E}),u.createElement("path",v({},(0,m.a)(n),{className:O,d:t}))}}
2,66441(e,t,n){"use strict";n.d(t,{i:()=>T});var r=n(50405);let i=Math.cos,o=Math.sin,a=Math.sqrt,s=Math.PI,l=2*s,c={draw(e,t){let n=a(t/s);e.moveTo(n,0),e.arc(0,0,n,0,l)}},u=a(1/3),h=2*u,d=o(s/10)/o(7*s/10),f=o(l/10)*d,p=-i(l/10)*d,m=a(3),g=a(3)/2,v=1/a(12),y=(v/2+1)*3;var b=n(94977),x=n(47569),w=n(70851),k=n(35254),S=n(43646),M=["type","size","sizeType"];function A(){return(A=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)}function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var O={symbolCircle:c,symbolCross:{draw(e,t){let n=a(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},symbolDiamond:{draw(e,t){let n=a(t/h),r=n*u;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},symbolSquare:{draw(e,t){let n=a(t),r=-n/2;e.rect(r,r,n,n)}},symbolStar:{draw(e,t){let n=a(.8908130915292852*t),r=f*n,s=p*n;e.moveTo(0,-n),e.lineTo(r,s);for(let t=1;t<5;++t){let a=l*t/5,c=i(a),u=o(a);e.lineTo(u*n,-c*n),e.lineTo(c*r-u*s,u*r+c*s)}e.closePath()}},symbolTriangle:{draw(e,t){let n=-a(t/(3*m));e.moveTo(0,2*n),e.lineTo(-m*n,-n),e.lineTo(m*n,-n),e.closePath()}},symbolWye:{draw(e,t){let n=a(t/y),r=n/2,i=n*v,o=n*v+n,s=-r;e.moveTo(r,i),e.lineTo(r,o),e.lineTo(s,o),e.lineTo(-.5*r-g*i,g*r+-.5*i),e.lineTo(-.5*r-g*o,g*r+-.5*o),e.lineTo(-.5*s-g*o,g*s+-.5*o),e.lineTo(-.5*r+g*i,-.5*i-g*r),e.lineTo(-.5*r+g*o,-.5*o-g*r),e.lineTo(-.5*s+g*o,-.5*o-g*s),e.closePath()}}},P=Math.PI/180,T=e=>{var{type:t="circle",size:n=64,sizeType:i="area"}=e,o=C(C({},function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,M)),{},{type:t,size:n,sizeType:i}),a="circle";"string"==typeof t&&(a=t);var{className:s,cx:l,cy:u}=o,h=(0,S.a)(o);return(0,k.Et)(l)&&(0,k.Et)(u)&&(0,k.Et)(n)?r.createElement("path",A({}
2,h,{className:(0,w.$)("recharts-symbols",s),transform:"translate(".concat(l,", ").concat(u,")"),d:(()=>{var e,t=(e=a,O["symbol".concat((0,k.Zb)(e))]||c),r=(function(e,t){let n=null,r=(0,x.i)(i);function i(){let i;if(n||(n=i=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return e="function"==typeof e?e:(0,b.A)(e||c),t="function"==typeof t?t:(0,b.A)(void 0===t?64:+t),i.type=function(t){return arguments.length?(e="function"==typeof t?t:(0,b.A)(t),i):e},i.size=function(e){return arguments.length?(t="function"==typeof e?e:(0,b.A)(+e),i):t},i.context=function(e){return arguments.length?(n=null==e?null:e,i):n},i})().type(t).size(((e,t,n)=>{if("area"===t)return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":var r=18*P;return 1.25*e*e*(Math.tan(r)-Math.tan(2*r)*Math.tan(r)**2);case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}})(n,i,a))();if(null!==r)return r})()})):null};T.registerSymbol=(e,t)=>{O["symbol".concat((0,k.Zb)(e))]=t}},9159(e,t,n){"use strict";n.d(t,{E:()=>r});var r=(0,n(50405).createContext)(null)},2507(e,t,n){"use strict";n.d(t,{J:()=>ee});var r=n(50405),i=n(65485),o=n(90805),a=n(83867),s=n(91118),l=n(54969),c=n(12484),u=n(93440),h=n(39954);function d(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":"children"===e&&"object"==typeof t&&null!==t?"<<CHILDREN>>":t}var f=n(14341),p=n(19515),m=n(436),g=n(36726),v=(0,a.Z0)({name:"referenceElements",initialState:{dots:[],areas:[],lines:[]},reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var n=(0,m.ss)(e).dots.findIndex(e=>e===t.payload);-1!==n&&e.dots.splice(n,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var n=(0,m.ss)(e).areas.findIndex(e=>e===t.payload);-1!==n&&e.areas.splice(n,1)},addLine:(e,t)=>{e.lines.push((0,g.h4)(t.payload))},removeLine:(e,t)=>{var n=(0,m.ss)(e).lines.findIndex(e=>e===t.payload);-1!==n&&e.lines.splice(n,1)}}}),{addDot:y,removeDot:b,addArea:x,removeArea:w,addLine:k,removeLine:S}=v.actions,M=v.reducer,A={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},E=(0,a.Z0)({name:"brush",initialState:A,reducers:{setBrushSettings:(e,t)=>null==t.payload?A:t.payload}}),{setBrushSettings:C}=E.actions,O=E.reducer,P=n(96093),T=n(86458),D=(0,a.Z0)({name:"polarAxis",initialState:{radiusAxis:{},angleAxis:{}},reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=(0,g.h4)(t.payload)},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=(0,g.h4)(t.payload)},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:R,removeRadiusAxis:j,addAngleAxis:I,removeAngleAxis:z}=D.actions,_=D.reducer,L=n(86164),N=n(95202),B=n(6088),F=n(22171),V=(0,a.Z0)({name:"errorBars",initialState:{},reducers:{addErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]||(e[n]=[]),e[n].push(r)},replaceErrorBar:(e,t)=>{var{itemId:n,prev:r,next:i}=t.payload;e[n]&&(e[n]=e[n].map(e=>e.dataKey===r.dataKey&&e.direction===r.direction?i:e))},removeErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]&&(e[n]=e[n].filter(e=>e.dataKey!==r.dataKey||e.direction!==r.direction))}}}),{addErrorBar:H,replaceErrorBar:W,removeErrorBar:$}=V.actions,U=V.reducer,K=n(36324),q=n(35012),G=n(50187),Z=n(83319),Y=(0,o.HY)({brush:O,cartesianAxis:f.CA,chartData:c.LV,errorBars:U,eventSettings:G.QG,graphicalItems:p.iZ,layout:u.Vp,legend:P.CU,options:s.lJ,polarAxis:_,polarOptions:L.J,referenceElements:M,renderedTicks:Z.ut,rootProps:T.vE,tooltip:l.En,zIndex:q.v3}),X=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Chart";return(0,a.U1)({reducer:Y,preloadedState:e,middleware:e=>e({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes("es6")}).concat([h.YF.middleware,h.fP.middleware,N.$7.middleware,B.x.middleware,F.k.middleware]),enhancers:e=>{var t=e;return"function"==typeof e&&(t=e()),t.concat((0,a.CF)({type:"raf"}))},devTools:K.m.devToolsEnabled&&{serialize:{replacer:d},name:"recharts-".concat(t)}})},J=n(23920),Q=n(9159);function ee(e){var{preloadedState:t,children:n,reduxStoreName:o}=e,a=(0,J.r)(),s=(0,r.useRef)(null);if(a)return n;null==s.current&&(s.current=X(t,o));var l=Q.E;return r.createElement(i.Kq,{context:l,store:s.current},n)}},93518(e,t,n){"use strict";n.d(t,{p:()=>a});var r=n(50405),i=n(86458),o=n(33476);function a(e){var t=(0,o.j)();return(0,r.useEffect)(()=>{t((0,i.mZ)(e))},[t,e]),null}},88319(e,t,n){"use strict";n.d(t,{M:()=>s});var r=n(50405),i=n(33476),o=n(50187),a=n(19575),s=(0,r.memo)(e=>{var t=(0,i.j)();return(0,r.useEffect)(()=>{t((0,o.O6)(e))},[t,e]),null},a.P)}
2,74191(e,t,n){"use strict";n.d(t,{s:()=>l});var r=n(50405),i=n(23920),o=n(93440),a=n(33476),s=n(19575),l=(0,r.memo)(function(e){var{layout:t,margin:n}=e,s=(0,a.j)(),l=(0,i.r)();return(0,r.useEffect)(()=>{l||(s((0,o.JK)(t)),s((0,o.B_)(n)))},[s,l,t,n]),null},s.P)},4020(e,t,n){"use strict";n.d(t,{p:()=>a,v:()=>s});var r=n(50405),i=n(33476),o=n(19515),a=(0,r.memo)(e=>{var t=(0,i.j)(),n=(0,r.useRef)(null);return(0,r.useLayoutEffect)(()=>{null===n.current?t((0,o.g5)(e)):n.current!==e&&t((0,o.ZF)({prev:n.current,next:e})),n.current=e},[t,e]),(0,r.useLayoutEffect)(()=>()=>{n.current&&(t((0,o.Vi)(n.current)),n.current=null)},[t]),null}),s=(0,r.memo)(e=>{var t=(0,i.j)(),n=(0,r.useRef)(null);return(0,r.useLayoutEffect)(()=>{null===n.current?t((0,o.As)(e)):n.current!==e&&t((0,o.bF)({prev:n.current,next:e})),n.current=e},[t,e]),(0,r.useLayoutEffect)(()=>()=>{n.current&&(t((0,o.TK)(n.current)),n.current=null)},[t]),null})},90379(e,t,n){"use strict";n.d(t,{A:()=>l,_:()=>c});var r=n(50405),i=n(23920),o=n(13469),a=n(33476),s=n(96093);function l(e){var{legendPayload:t}=e,n=(0,a.j)(),o=(0,i.r)(),l=(0,r.useRef)(null);return(0,r.useLayoutEffect)(()=>{o||(null===l.current?n((0,s.Lx)(t)):l.current!==t&&n((0,s.c5)({prev:l.current,next:t})),l.current=t)},[n,o,t]),(0,r.useLayoutEffect)(()=>()=>{l.current&&(n((0,s.u3)(l.current)),l.current=null)},[n]),null}function c(e){var{legendPayload:t}=e,n=(0,a.j)(),i=(0,a.G)(o.fz),l=(0,r.useRef)(null);return(0,r.useLayoutEffect)(()=>{("centric"===i||"radial"===i)&&(null===l.current?n((0,s.Lx)(t)):l.current!==t&&n((0,s.c5)({prev:l.current,next:t})),l.current=t)},[n,i,t]),(0,r.useLayoutEffect)(()=>()=>{l.current&&(n((0,s.u3)(l.current)),l.current=null)},[n]),null}},67792(e,t,n){"use strict";n.d(t,{r:()=>s});var r=n(50405),i=n(33476),o=n(54969),a=n(23920);function s(e){var{tooltipEntrySettings:t}=e,n=(0,i.j)(),s=(0,a.r)(),l=(0,r.useRef)(null);return(0,r.useLayoutEffect)(()=>{s||(null===l.current?n((0,o.Ix)(t)):l.current!==t&&n((0,o.Zp)({prev:l.current,next:t})),l.current=t)},[t,n,s]),(0,r.useLayoutEffect)(()=>()=>{l.current&&(n((0,o.XB)(l.current)),l.current=null)},[n]),null}},14341(e,t,n){"use strict";n.d(t,{CA:()=>b,MC:()=>h,QG:()=>y,Vi:()=>c,W3:()=>s,cU:()=>d,fR:()=>p,hd:()=>f,m2:()=>u});var r=n(83867),i=n(36726);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var s=0,l=(0,r.Z0)({name:"cartesianAxis",initialState:{xAxis:{},yAxis:{},zAxis:{}},reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=(0,i.h4)(t.payload)},prepare:(0,r.aA)()},replaceXAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;void 0!==e.xAxis[n.id]&&(n.id!==r.id&&delete e.xAxis[n.id],e.xAxis[r.id]=(0,i.h4)(r))},prepare:(0,r.aA)()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:(0,r.aA)()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=(0,i.h4)(t.payload)},prepare:(0,r.aA)()},replaceYAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;void 0!==e.yAxis[n.id]&&(n.id!==r.id&&delete e.yAxis[n.id],e.yAxis[r.id]=(0,i.h4)(r))},prepare:(0,r.aA)()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:(0,r.aA)()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=(0,i.h4)(t.payload)},prepare:(0,r.aA)()},replaceZAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;void 0!==e.zAxis[n.id]&&(n.id!==r.id&&delete e.zAxis[n.id],e.zAxis[r.id]=(0,i.h4)(r))},prepare:(0,r.aA)()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:(0,r.aA)()},updateYAxisWidth(e,t){var{id:n,width:r}=t.payload,i=e.yAxis[n];if(i){var o,s=i.widthHistory||[];if(3===s.length&&s[0]===s[2]&&r===s[1]&&r!==i.width&&1>=Math.abs(r-(null!=(o=s[0])?o:0)))return;var l=[...s,r].slice(-3);e.yAxis[n]=a(a({},i),{}
2,{width:r,widthHistory:l})}}}}),{addXAxis:c,replaceXAxis:u,removeXAxis:h,addYAxis:d,replaceYAxis:f,removeYAxis:p,addZAxis:m,replaceZAxis:g,removeZAxis:v,updateYAxisWidth:y}=l.actions,b=l.reducer},12484(e,t,n){"use strict";n.d(t,{LV:()=>c,M:()=>s,hq:()=>a});var r=n(83867),i=n(36726),o=(0,r.Z0)({name:"chartData",initialState:{chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},reducers:{setChartData(e,t){if(e.chartData=(0,i.h4)(t.payload),null==t.payload){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:n,endIndex:r}=t.payload;null!=n&&(e.dataStartIndex=n),null!=r&&(e.dataEndIndex=r)}}}),{setChartData:a,setDataStartEndIndexes:s,setComputedData:l}=o.actions,c=o.reducer},50187(e,t,n){"use strict";n.d(t,{O6:()=>s,QG:()=>l,zp:()=>o});var r=n(83867),i=n(36726),o={throttleDelay:"raf",throttledEvents:["mousemove","touchmove","pointermove","scroll","wheel"]},a=(0,r.Z0)({name:"eventSettings",initialState:o,reducers:{setEventSettings:(e,t)=>{null!=t.payload.throttleDelay&&(e.throttleDelay=t.payload.throttleDelay),null!=t.payload.throttledEvents&&(e.throttledEvents=(0,i.h4)(t.payload.throttledEvents))}}}),{setEventSettings:s}=a.actions,l=a.reducer},6088(e,t,n){"use strict";n.d(t,{x:()=>s,y:()=>a});var r=n(83867),i=n(49677),o=n(37259),a=(0,r.VP)("externalEvent"),s=(0,r.Nc)(),l=new Map,c=new Map,u=new Map;s.startListening({actionCreator:a,effect:(e,t)=>{var{handler:n,reactEvent:r}=e.payload;if(null!=n){var a=r.type,s=(0,o.r)(r);u.set(a,{handler:n,reactEvent:s});var h=l.get(a);void 0!==h&&(cancelAnimationFrame(h),l.delete(a));var{throttleDelay:d,throttledEvents:f}=t.getState().eventSettings,p="all"===f||(null==f?void 0:f.includes(a)),m=c.get(a);void 0===m||"number"==typeof d&&p||(clearTimeout(m),c.delete(a));var g=()=>{var e=u.get(a);try{if(!e)return;var{handler:n,reactEvent:r}=e,o=t.getState(),s={activeCoordinate:(0,i.eE)(o),activeDataKey:(0,i.Xb)(o),activeIndex:(0,i.A2)(o),activeLabel:(0,i.BZ)(o),activeTooltipIndex:(0,i.A2)(o),isTooltipActive:(0,i.yn)(o)};n&&n(s,r)}finally{l.delete(a),c.delete(a),u.delete(a)}};if(!p)return void g();if("raf"===d){var v=requestAnimationFrame(g);l.set(a,v)}else if("number"==typeof d){if(!c.has(a)){g();var y=setTimeout(g,d);c.set(a,y)}}else g()}}})},19515(e,t,n){"use strict";n.d(t,{As:()=>u,TK:()=>h,Vi:()=>c,ZF:()=>l,bF:()=>d,g5:()=>s,iZ:()=>f});var r=n(83867),i=n(436),o=n(36726),a=(0,r.Z0)({name:"graphicalItems",initialState:{cartesianItems:[],polarItems:[]},reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push((0,o.h4)(t.payload))},prepare:(0,r.aA)()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:n,next:r}=t.payload,a=(0,i.ss)(e).cartesianItems.indexOf((0,o.h4)(n));a>-1&&(e.cartesianItems[a]=(0,o.h4)(r))},prepare:(0,r.aA)()},removeCartesianGraphicalItem:{reducer(e,t){var n=(0,i.ss)(e).cartesianItems.indexOf((0,o.h4)(t.payload));n>-1&&e.cartesianItems.splice(n,1)},prepare:(0,r.aA)()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push((0,o.h4)(t.payload))},prepare:(0,r.aA)()},removePolarGraphicalItem:{reducer(e,t){var n=(0,i.ss)(e).polarItems.indexOf((0,o.h4)(t.payload));n>-1&&e.polarItems.splice(n,1)},prepare:(0,r.aA)()},replacePolarGraphicalItem:{reducer(e,t){var{prev:n,next:r}=t.payload,a=(0,i.ss)(e).polarItems.indexOf((0,o.h4)(n));a>-1&&(e.polarItems[a]=(0,o.h4)(r))},prepare:(0,r.aA)()}}}),{addCartesianGraphicalItem:s,replaceCartesianGraphicalItem:l,removeCartesianGraphicalItem:c,addPolarGraphicalItem:u,removePolarGraphicalItem:h,replacePolarGraphicalItem:d}=a.actions,f=a.reducer},33476(e,t,n){"use strict";n.d(t,{G:()=>h,j:()=>s});var r=n(99966),i=n(50405),o=n(9159),a=e=>e,s=()=>{var e=(0,i.useContext)(o.E);return e?e.store.dispatch:a},l=()=>{},c=()=>l,u=(e,t)=>e===t;function h(e){var t=(0,i.useContext)(o.E),n=(0,i.useMemo)(()=>t?t=>{if(null!=t)return e(t)}:l,[t,e]);return(0,r.useSyncExternalStoreWithSelector)(t?t.subscription.addNestedSub:c,t?t.store.getState:l,t?t.store.getState:l,n,u)}},95202(e,t,n){"use strict";n.d(t,{$7:()=>f,Ru:()=>h,Yw:()=>d,uZ:()=>u});var r=n(83867),i=n(54969),o=n(49677),a=n(60233),s=n(30575),l=n(13914),c=n(33624),u=(0,r.VP)("keyDown"),h=(0,r.VP)("focus"),d=(0,r.VP)("blur"),f=(0,r.Nc)(),p=null,m=null,g=null;f.startListening({actionCreator:u,effect:(e,t)=>
2{g=e.payload,null!==p&&(cancelAnimationFrame(p),p=null);var{throttleDelay:n,throttledEvents:r}=t.getState().eventSettings,u="all"===r||r.includes("keydown");null===m||"number"==typeof n&&u||(clearTimeout(m),m=null);var h=()=>{try{var e,n=t.getState();if(!1===n.rootProps.accessibilityLayer)return;var{keyboardInteraction:r}=n.tooltip,u=g;if("ArrowRight"!==u&&"ArrowLeft"!==u&&"Enter"!==u)return;var h=(0,l.P)(r,(0,o.n4)(n),(0,s.K6)(n),(0,o.FO)(n)),d=null==h?-1:Number(h),f=!Number.isFinite(d)||d<0,v=(0,o.R4)(n),y=(0,o.n4)(n),b=(0,c.au)(n,n.tooltip.settings.shared);if("Enter"===u){if(f)return;var x=(0,a.pg)(n,b,"hover",String(r.index));t.dispatch((0,i.o4)({active:!r.active,activeIndex:r.index,activeCoordinate:x}));return}var w=(0,s._y)(n),k="left-to-right"===w?1:-1,S="ArrowRight"===u?1:-1;if(f){var M=(0,s.K6)(n),A=(0,o.FO)(n),E=e=>({active:!1,index:String(e),dataKey:void 0,graphicalItemId:void 0,coordinate:void 0});if(e=-1,S*k>0){for(var C=0;C<y.length;C++)if(null!=(0,l.P)(E(C),y,M,A)){e=C;break}}else for(var O=y.length-1;O>=0;O--)if(null!=(0,l.P)(E(O),y,M,A)){e=O;break}if(e<0)return}else{e=d+S*k;var P=(null==v?void 0:v.length)||y.length;if(0===P||e>=P||e<0)return}var T=(0,a.pg)(n,b,"hover",String(e));t.dispatch((0,i.o4)({active:!0,activeIndex:e.toString(),activeCoordinate:T}))}finally{p=null,m=null}};u?"raf"===n?p=requestAnimationFrame(h):"number"==typeof n&&null===m&&(h(),g=null,m=setTimeout(()=>{g?h():(m=null,p=null)},n)):h()}}),f.startListening({actionCreator:h,effect:(e,t)=>{var n=t.getState();if(!1!==n.rootProps.accessibilityLayer){var{keyboardInteraction:r}=n.tooltip;if(!r.active&&null==r.index){var o=(0,c.au)(n,n.tooltip.settings.shared),s=(0,a.pg)(n,o,"hover",String("0"));t.dispatch((0,i.o4)({active:!0,activeIndex:"0",activeCoordinate:s}))}}}}),f.startListening({actionCreator:d,effect:(e,t)=>{var n=t.getState();if(!1!==n.rootProps.accessibilityLayer){var{keyboardInteraction:r}=n.tooltip;r.active&&t.dispatch((0,i.o4)({active:!1,activeIndex:r.index,activeCoordinate:r.coordinate}))}}})},93440(e,t,n){"use strict";n.d(t,{B_:()=>i,JK:()=>o,Vp:()=>l,gX:()=>a,hF:()=>s});var r=(0,n(83867).Z0)({name:"chartLayout",initialState:{layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var n,r,i,o;e.margin.top=null!=(n=t.payload.top)?n:0,e.margin.right=null!=(r=t.payload.right)?r:0,e.margin.bottom=null!=(i=t.payload.bottom)?i:0,e.margin.left=null!=(o=t.payload.left)?o:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:i,setLayout:o,setChartSize:a,setScale:s}=r.actions,l=r.reducer},96093(e,t,n){"use strict";n.d(t,{CU:()=>d,Lx:()=>c,c5:()=>u,h1:()=>l,hx:()=>s,u3:()=>h});var r=n(83867),i=n(436),o=n(36726),a=(0,r.Z0)({name:"legend",initialState:{settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push((0,o.h4)(t.payload))},prepare:(0,r.aA)()},replaceLegendPayload:{reducer(e,t){var{prev:n,next:r}=t.payload,a=(0,i.ss)(e).payload.indexOf((0,o.h4)(n));a>-1&&(e.payload[a]=(0,o.h4)(r))},prepare:(0,r.aA)()},removeLegendPayload:{reducer(e,t){var n=(0,i.ss)(e).payload.indexOf((0,o.h4)(t.payload));n>-1&&e.payload.splice(n,1)},prepare:(0,r.aA)()}}}),{setLegendSize:s,setLegendSettings:l,addLegendPayload:c,replaceLegendPayload:u,removeLegendPayload:h}=a.actions,d=a.reducer},39954(e,t,n){"use strict";n.d(t,{YF:()=>c,dj:()=>u,fP:()=>h,ky:()=>l});var r=n(83867),i=n(54969),o=n(20024),a=n(33624),s=n(1677),l=(0,r.VP)("mouseClick"),c=(0,r.Nc)();c.startListening({actionCreator:l,effect:(e,t)=>{var n=e.payload,r=(0,o.g)(t.getState(),(0,s.X)(n));(null==r?void 0:r.activeIndex)!=null&&t.dispatch((0,i.jF)({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}});var u=(0,r.VP)("mouseMove"),h=(0,r.Nc)(),d=null,f=null,p=null;h.startListening({actionCreator:u,effect:(e,t)=>
2{var n=e.payload,{throttleDelay:r,throttledEvents:l}=t.getState().eventSettings,c="all"===l||(null==l?void 0:l.includes("mousemove"));null!==d&&(cancelAnimationFrame(d),d=null),null===f||"number"==typeof r&&c||(clearTimeout(f),f=null),p=(0,s.X)(n);var u=()=>{var e=t.getState(),n=(0,a.au)(e,e.tooltip.settings.shared);if(!p){d=null,f=null;return}if("axis"===n){var r=(0,o.g)(e,p);(null==r?void 0:r.activeIndex)!=null?t.dispatch((0,i.Nt)({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate})):t.dispatch((0,i.xS)())}d=null,f=null};c?"raf"===r?d=requestAnimationFrame(u):"number"==typeof r&&null===f&&(f=setTimeout(u,r)):u()}})},91118(e,t,n){"use strict";n.d(t,{dl:()=>l,lJ:()=>s,uN:()=>o});var r=n(83867),i=n(35254),o=(e,t)=>{if(t&&Array.isArray(e)){var n=Number.parseInt(t,10);if(!(0,i.M8)(n))return e[n]}},a=(0,r.Z0)({name:"options",initialState:{chartName:"",tooltipPayloadSearcher:()=>void 0,eventEmitter:void 0,defaultTooltipEventType:"axis"},reducers:{createEventEmitter:e=>{null==e.eventEmitter&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),s=a.reducer,{createEventEmitter:l}=a.actions},86164(e,t,n){"use strict";n.d(t,{J:()=>o,U:()=>i});var r=(0,n(83867).Z0)({name:"polarOptions",initialState:null,reducers:{updatePolarOptions:(e,t)=>null===e?t.payload:(e.startAngle=t.payload.startAngle,e.endAngle=t.payload.endAngle,e.cx=t.payload.cx,e.cy=t.payload.cy,e.innerRadius=t.payload.innerRadius,e.outerRadius=t.payload.outerRadius,e)}}),{updatePolarOptions:i}=r.actions,o=r.reducer},83319(e,t,n){"use strict";n.d(t,{Sr:()=>s,ut:()=>l,y0:()=>a});var r=n(83867),i=n(36726),o=(0,r.Z0)({name:"renderedTicks",initialState:{xAxis:{},yAxis:{}},reducers:{setRenderedTicks:(e,t)=>{var{axisType:n,axisId:r,ticks:o}=t.payload;e[n][r]=(0,i.h4)(o)},removeRenderedTicks:(e,t)=>{var{axisType:n,axisId:r}=t.payload;delete e[n][r]}}}),{setRenderedTicks:a,removeRenderedTicks:s}=o.actions,l=o.reducer},86458(e,t,n){"use strict";n.d(t,{mZ:()=>s,vE:()=>a});var r=n(83867),i={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},o=(0,r.Z0)({name:"rootProps",initialState:i,reducers:{updateOptions:(e,t)=>{var n;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=null!=(n=t.payload.barGap)?n:i.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),a=o.reducer,{updateOptions:s}=o.actions},52402(e,t,n){"use strict";function r(e,t){return!!(Array.isArray(e)&&Array.isArray(t))&&0===e.length&&0===t.length||e===t}function i(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return!1}n.d(t,{O:()=>r,W:()=>i})},30575(e,t,n){"use strict";n.d(t,{pM:()=>ej,bb:()=>e1,y7:()=>Y,KR:()=>tC,Lu:()=>eL,g1:()=>tn,ZB:()=>tR,xM:()=>e7,ld:()=>es,wP:()=>tO,Zi:()=>tj,AV:()=>e_,TC:()=>eR,L$:()=>tE,tP:()=>e8,tF:()=>tT,tm:()=>ei,EZ:()=>eV,Nk:()=>ev,rj:()=>ep,BQ:()=>tP,sf:()=>ee,iv:()=>tp,D5:()=>tu,cd:()=>J,Oz:()=>eX,q:()=>eQ,fb:()=>eb,$X:()=>eZ,xp:()=>te,wL:()=>e5,eo:()=>ea,Gx:()=>tz,gT:()=>eq,G2:()=>ex,P9:()=>eU,Dn:()=>eO,hc:()=>Q,DP:()=>er,Kr:()=>e$,_y:()=>tN,ec:()=>ec,K6:()=>eP,Rl:()=>X,PU:()=>Z,CR:()=>tI,CH:()=>eB,Lw:()=>tS,yi:()=>eF,MK:()=>eD,um:()=>eo,S5:()=>ez,IO:()=>ed});var r=n(82263),i=n(74067);function o(e){var t;return e?(t=e,(e=(0,i.B)(t)?NaN:Number(t))===1/0||e===-1/0)?(e<0?-1:1)*Number.MAX_VALUE:e==e?e:0:0===e?e:0}var a=n(83785);function s(e,t,n){n&&"number"!=typeof n&&(0,a.g)(e,t,n)&&(t=n=void 0),e=o(e),void 0===t?(t=e,e=0):t=o(t),n=void 0===n?e<t?1:-1:o(n);let r=Math.max(Math.ceil((t-e)/(n||1)),0),i=Array(r);for(let t=0;t<r;t++)i[t]=e,e+=n;return i}var l=n(13469),c=n(76752),u=n(42099),h=n(29739),d=n(35254),f=n(49643),p=n(1263),m=n.n(p);function g(e){return 0===e?1:Math.floor(new(m())(e).abs().log(10).toNumber())+1}function v(e,t,n){for(var r=new(m())(e),i=0,o=[];r.lt(t)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o}var y=e=>{var[t,n]=e,[r,i]=[t,n];return t>n&&([r,i]=[n,t]),[r,i]},b=(e,t,n)=>{if(e.lte(0))return new(m())(0);var r=g(e.toNumber()),i=new(m())(10).pow(r),o=e.div(i),a=1!==r?.05:.1,s=new(m())(Math.ceil(o.div(a).toNumber())).add(n).mul(a).mul(i);return new(m())(t?s.toNumber():Math.ceil(s.toNumber()))},x=(e,t,n)=>{if(e.lte(0))return new(m())(0);var r,i=[1,2,2.5,5],o=e.toNumber(),a=Math.floor(new(m())(o).abs().log(10).toNumber()),s=new(m())(10).pow(a),l=e.div(s).toNumber(),c=i.findIndex(e=>e>=l-1e-10);if(-1===c&&(s=s.mul(10),c=0),(c+=n)>=i.length){var u=Math.floor(c/i.length);c%=i.length,s=s.mul(new(m())(10).pow(u))}var h=null!=(r=i[c])?r:1,d=new(m())(h).mul(s);return t?d:new(m())(Math.ceil(d.toNumber()))},w=function(e,t,n,r){var i,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:b;if(!Number.isFinite((t-e)/(n-1)))return{step:new(m())(0),tickMin:new(m())(0),tickMax:new(m())(0)};var s=a(new(m())(t).sub(e).div(n-1),r,o),l=Math.ceil((i=e<=0&&t>=0?new(m())(0):(i=new(m())(e).add(t).div(2)).sub(new(m())(i).mod(s))).sub(e).div(s).toNumber()),c=Math.ceil(new(m())(t).sub(i).div(s).toNumber()),u=l+c+1;return u>n?w(e,t,n,r,o+1,a):(u<n&&(c=t>0?c+(n-u):c,l=t>0?l:l+(n-u)),{step:s,tickMin:i.sub(new(m())(l).mul(s)),tickMax:i.add(new(m())(c).mul(s))})},k=function(e){var[t,n]=e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"auto",a=Math.max(r,2),[s,l]=y([t,n]);if(s===-1/0||l===1/0){var c=l===1/0?[s,...Array(r-1).fill(1/0)]:[...Array(r-1).fill(-1/0),l];return t>n?c.reverse():c}if(s===l)return((e,t,n)=>{var r=new(m())(1),i=new(m())(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new(m())(10).pow(g(e)-1),i=new(m())(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new(m())(Math.floor(e)))}else 0===e?i=new(m())(Math.floor((t-1)/2)):n||(i=new(m())(Math.floor(e)));for(var a=Math.floor((t-1)/2),s=[],l=0;l<t;l++)s.push(i.add(new(m())(l-a).mul(r)).toNumber());return s})(s,r,i);var{step:u,tickMin:h,tickMax:d}=w(s,l,a,i,0,"snap125"===o?x:b),f=v(h,d.add(new(m())(.1).mul(u)),u);return t>n?f.reverse():f},S=function(e,t){var[n,r]=e,i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"auto",[a,s]=y([n,r]);if(a===-1/0||s===1/0)return[n,r];if(a===s)return[a];var l=Math.max(t,2),c=("snap125"===o?x:b)(new(m())(s).sub(a).div(l-1),i,0
2),u=[...v(new(m())(a),new(m())(s),c),s];return!1===i&&(u=u.map(e=>Math.round(e))),n>r?u.reverse():u},M=n(91906),A=n(3251),E=n(41667),C=n(84851),O=n(24273),P=n(60657),T=n(8249),D=n(54096),R=n(60265),j=n(21062),I=n(35411),z=n(19849),_=n(18281),L=n(77418),N=n(52402),B=n(58967),F=n(85958),V=n(72e3),H=n(66728),W=n(45043),$=n(74563);function U(e,t){if(e){var n=null!=t?t:e.domain(),r=n.map(t=>{var n;return null!=(n=e(t))?n:0}),i=e.range();if(0!==n.length&&!(i.length<2))return e=>{var t,i,o=function(e,t){for(var n=0,r=e.length,i=e[0]<e[e.length-1];n<r;){var o=Math.floor((n+r)/2);(i?e[o]<t:e[o]>t)?n=o+1:r=o}return n}(r,e);return o<=0?n[0]:o>=n.length?n[n.length-1]:Math.abs(e-(null!=(t=r[o-1])?t:0))<=Math.abs(e-(null!=(i=r[o])?i:0))?n[o-1]:n[o]}}}function K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var G=[0,"auto"],Z={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0,niceTicks:"auto"},Y=(e,t)=>e.cartesianAxis.xAxis[t],X=(e,t)=>{var n=Y(e,t);return null==n?Z:n},J={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:G,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,niceTicks:"auto",width:j.tQ},Q=(e,t)=>e.cartesianAxis.yAxis[t],ee=(e,t)=>{var n=Q(e,t);return null==n?J:n},et={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},en=(e,t)=>{var n=e.cartesianAxis.zAxis[t];return null==n?et:n},er=(e,t,n)=>{switch(t){case"xAxis":return X(e,n);case"yAxis":return ee(e,n);case"zAxis":return en(e,n);case"angleAxis":return(0,P.Be)(e,n);case"radiusAxis":return(0,P.Gl)(e,n);default:throw Error("Unexpected axis type: ".concat(t))}},ei=(e,t,n)=>{switch(t){case"xAxis":return X(e,n);case"yAxis":return ee(e,n);case"angleAxis":return(0,P.Be)(e,n);case"radiusAxis":return(0,P.Gl)(e,n);default:throw Error("Unexpected axis type: ".concat(t))}},eo=e=>e.graphicalItems.cartesianItems.some(e=>"bar"===e.type)||e.graphicalItems.polarItems.some(e=>"radialBar"===e.type);function ea(e,t){return n=>{switch(e){case"xAxis":return"xAxisId"in n&&n.xAxisId===t;case"yAxis":return"yAxisId"in n&&n.yAxisId===t;case"zAxis":return"zAxisId"in n&&n.zAxisId===t;case"angleAxis":return"angleAxisId"in n&&n.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in n&&n.radiusAxisId===t;default:return!1}}}var es=e=>e.graphicalItems.cartesianItems,el=(0,r.Mz)([T.N,D.E],ea),ec=(e,t,n)=>e.filter(n).filter(e=>(null==t?void 0:t.includeHidden)===!0||!e.hide),eu=(0,r.Mz)([es,er,el],ec,{memoizeOptions:{resultEqualityCheck:N.O}}),eh=(0,r.Mz)([eu],e=>e.filter(e=>"area"===e.type||"bar"===e.type).filter(_.g)),ed=e=>e.filter(e=>!("stackId"in e)||void 0===e.stackId),ef=(0,r.Mz)([eu],ed),ep=e=>e.map(e=>
2e.data).filter(Boolean).flat(1),em=(0,r.Mz)([eu],e=>e.some(e=>!e.data)),eg=(0,r.Mz)([eu],ep,{memoizeOptions:{resultEqualityCheck:N.O}}),ev=(e,t)=>{var{chartData:n=[],dataStartIndex:r,dataEndIndex:i}=t;return e.length>0?e:n.slice(r,i+1)},ey=(0,r.Mz)([eg,u.k$],ev),eb=(e,t,n)=>(null==t?void 0:t.dataKey)!=null?e.map(e=>({value:(0,c.kr)(e,t.dataKey)})):n.length>0?n.map(e=>e.dataKey).flatMap(t=>e.map(e=>({value:(0,c.kr)(e,t)}))):e.map(e=>({value:e})),ex=(e,t,n,r,i,o)=>{var{chartData:a=[],dataStartIndex:s,dataEndIndex:l}=r,u=eb(e,t,n);return i&&(null==t?void 0:t.dataKey)!=null&&o.length>0?[...a.slice(s,l+1).map(e=>({value:(0,c.kr)(e,t.dataKey)})).filter(e=>null!=e.value),...u]:u},ew=(0,r.Mz)([ey,er,eu,u.k$,em,eg],ex);function ek(e){if((0,d.vh)(e)||e instanceof Date){var t=Number(e);if((0,f.H)(t))return t}}function eS(e){if(Array.isArray(e)){var t=[ek(e[0]),ek(e[1])];return(0,h.JH)(t)?t:void 0}var n=ek(e);if(null!=n)return[n,n]}function eM(e){return e.map(ek).filter(d.n9)}function eA(e,t){var n=ek(e),r=ek(t);return null==n&&null==r?0:null==n?-1:null==r?1:n-r}var eE=(0,r.Mz)([ew],e=>null==e?void 0:e.map(e=>e.value).sort(eA));function eC(e,t){switch(e){case"xAxis":return"x"===t.direction;case"yAxis":return"y"===t.direction;default:return!1}}var eO=e=>{var t=(0,B.R)(e),n=(0,F.M)(e);
2return ei(e,t,n)},eP=(0,r.Mz)([eO],e=>null==e?void 0:e.dataKey),eT=(0,r.Mz)([eh,u.k$,eO],z.A),eD=(e,t,n,r)=>Object.fromEntries(Object.entries(t.reduce((e,t)=>{if(null==t.stackId)return e;var n=e[t.stackId];return null==n&&(n=[]),n.push(t),e[t.stackId]=n,e},{})).map(t=>{var[i,o]=t,a=r?[...o].reverse():o,s=a.map(I.x);return[i,{stackedData:(0,c.yy)(e,s,n),graphicalItems:a}]})),eR=(0,r.Mz)([eT,eh,O.eC,O.Lb],eD),ej=(e,t,n,r)=>{var{dataStartIndex:i,dataEndIndex:o}=t;if(null==r&&"zAxis"!==n){var a=(0,c.Mk)(e,i,o);if(null==a||0!==a[0]||0!==a[1])return a}},eI=(0,r.Mz)([er],e=>e.allowDataOverflow),ez=e=>{var t;if(null==e||!("domain"in e))return G;if(null!=e.domain)return e.domain;if("ticks"in e&&null!=e.ticks){if("number"===e.type){var n=eM(e.ticks);return[Math.min(...n),Math.max(...n)]}if("category"===e.type)return e.ticks.map(String)}return null!=(t=null==e?void 0:e.domain)?t:G},e_=(0,r.Mz)([er],ez),eL=(0,r.Mz)([e_,eI],h.f5),eN=(0,r.Mz)([eR,u.LF,T.N,eL],ej,{memoizeOptions:{resultEqualityCheck:L.o}}),eB=e=>e.errorBars,eF=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);if(0!==r.length){var i=r.flat();return[Math.min(...i),Math.max(...i)]}},eV=function(e,t,n,r,i){var o,a,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];if(n.length>0&&n.forEach(e=>{var n,l=null!=e.data?[...e.data]:s,u=null==(n=r[e.id])?void 0:n.filter(e=>eC(i,e));l.forEach(n=>{var r,i=(0,c.kr)(n,null!=(r=t.dataKey)?r:e.dataKey),s=function(e,t,n){if(!n||!n.length)return[];if("number"!=typeof t||(0,d.M8)(t)){if(Array.isArray(t)){var r,i=eM(t);i.length>0&&(r=Math.max(...i))}}else r=t;return null==r?[]:eM(n.flatMap(t=>{var n,i,o=(0,c.kr)(e,t.dataKey);if(Array.isArray(o)?[n,i]=o:n=i=o,(0,f.H)(n)&&(0,f.H)(i))return[r-n,r+i]}))}(n,i,u);if(s.length>=2){var l=Math.min(...s),h=Math.max(...s);(null==o||l<o)&&(o=l),(null==a||h>a)&&(a=h)}var p=eS(i);null!=p&&(o=null==o?p[0]:Math.min(o,p[0]),a=null==a?p[1]:Math.max(a,p[1]))})}),(null==t?void 0:t.dataKey)!=null&&0===n.length&&e.forEach(e=>{var n=eS((0,c.kr)(e,t.dataKey));null!=n&&(o=null==o?n[0]:Math.min(o,n[0]),a=null==a?n[1]:Math.max(a,n[1]))}),(0,f.H)(o)&&(0,f.H)(a))return[o,a]},eH=(0,r.Mz)([ey,er,ef,eB,T.N,u.lm],eV,{memoizeOptions:{resultEqualityCheck:L.o}});function eW(e){var{value:t}=e;if((0,d.vh)(t)||t instanceof Date)return t}var e$=e=>e.referenceElements.dots,eU=(e,t,n)=>e.filter(e=>"extendDomain"===e.ifOverflow).filter(e=>"xAxis"===t?e.xAxisId===n:e.yAxisId===n),eK=(0,r.Mz)([e$,T.N,D.E],eU),eq=e=>e.referenceElements.areas,eG=(0,r.Mz)([eq,T.N,D.E],eU),eZ=e=>e.referenceElements.lines,eY=(0,r.Mz)([eZ,T.N,D.E],eU),eX=(e,t)=>{if(null!=e){var n=eM(e.map(e=>"xAxis"===t?e.x:e.y));if(0!==n.length)return[Math.min(...n),Math.max(...n)]}},eJ=(0,r.Mz)(eK,T.N,eX),eQ=(e,t)=>{if(null!=e){var n=eM(e.flatMap(e=>["xAxis"===t?e.x1:e.y1,"xAxis"===t?e.x2:e.y2]));if(0!==n.length)return[Math.min(...n),Math.max(...n)]}},e0=(0,r.Mz)([eG,T.N],eQ),e1=(e,t)=>{if(null!=e){var n=e.flatMap(e=>"xAxis"===t?function(e){if(null!=e.x)return eM([e.x]);var t,n=null==(t=e.segment)?void 0:t.map(e=>e.x);return null==n||0===n.length?[]:eM(n)}(e):function(e){if(null!=e.y)return eM([e.y]);var t,n=null==(t=e.segment)?void 0:t.map(e=>e.y);return null==n||0===n.length?[]:eM(n)}(e));if(0!==n.length)return[Math.min(...n),Math.max(...n)]}},e2=(0,r.Mz)([eY,T.N],e1),e4=(0,r.Mz)(eJ,e2,e0,(e,t,n)=>eF(e,n,t)),e5=(e,t,n,r,i,o,a,s)=>{if(null!=n)return n;var l="vertical"===a&&"xAxis"===s||"horizontal"===a&&"yAxis"===s?eF(r,o,i):eF(o,i);return(0,h.v1)(t,l,e.allowDataOverflow)},e3=(0,r.Mz)([er,e_,eL,eN,eH,e4,l.fz,T.N],e5,{memoizeOptions:{resultEqualityCheck:L.o}}),e6=[0,1],e8=(e,t,n,r,i,o,a)=>{if(null!=e&&null!=n&&0!==n.length||void 0!==a){var l,u,{dataKey:h,type:f}=e,p=(0,c._L)(t,o);return p&&null==h?s(0,null!=(u=null==n?void 0:n.length)?u:0):"category"===f?(l=r.map(eW).filter(e=>null!=e),p&&(null==e.dataKey||e.allowDuplicatedCategory&&(0,d.CG)(l))?s(0,r.length):e.allowDuplicatedCategory?l:Array.from(new Set(l))):"expand"!==i||p?a:e6}},e9=(0,r.Mz)([er,l.fz,ey,ew,O.eC,T.N,e3],e8),e7=(0,r.Mz)([er,eo,O.iO],$.s),te=(e,t,n
2)=>{var{niceTicks:r}=t;if("none"!==r){var i=ez(t),o=Array.isArray(i)&&("auto"===i[0]||"auto"===i[1]);if(("snap125"===r||"adaptive"===r)&&null!=t&&t.tickCount&&(0,h.JH)(e)){if(o)return k(e,t.tickCount,t.allowDecimals,r);if("number"===t.type)return S(e,t.tickCount,t.allowDecimals,r)}if("auto"===r&&"linear"===n&&null!=t&&t.tickCount){if(o&&(0,h.JH)(e))return k(e,t.tickCount,t.allowDecimals,"adaptive");if("number"===t.type&&(0,h.JH)(e))return S(e,t.tickCount,t.allowDecimals,"adaptive")}}},tt=(0,r.Mz)([e9,ei,e7],te),tn=(e,t,n,r)=>{if("angleAxis"!==r&&(null==e?void 0:e.type)==="number"&&(0,h.JH)(t)&&Array.isArray(n)&&n.length>0){var i,o;return[Math.min(t[0],null!=(i=n[0])?i:0),Math.max(t[1],null!=(o=n[n.length-1])?o:0)]}return t},tr=(0,r.Mz)([er,e9,tt,T.N],tn),ti=(0,r.Mz)(ew,er,(e,t)=>{if(t&&"number"===t.type){var n=1/0,r=Array.from(eM(e.map(e=>e.value))).sort((e,t)=>e-t),i=r[0],o=r[r.length-1];if(null==i||null==o)return 1/0;var a=o-i;if(0===a)return 1/0;for(var s=0;s<r.length-1;s++){var l=r[s],c=r[s+1];null!=l&&null!=c&&(n=Math.min(n,c-l))}return n/a}}),to=(0,r.Mz)(ti,l.fz,O.gY,E.HZ,(e,t,n,r,i)=>i,(e,t,n,r,i)=>{if(!(0,f.H)(e))return 0;var o="vertical"===t?r.height:r.width;if("gap"===i)return e*o/2;if("no-gap"===i){var a=(0,d.F4)(n,e*o),s=e*o/2;return s-a-(s-a)/o*a}return 0}),ta=(0,r.Mz)(X,(e,t,n)=>{var r=X(e,t);return null==r||"string"!=typeof r.padding?0:to(e,"xAxis",t,n,r.padding)},(e,t)=>{if(null==e)return{left:0,right:0};var n,r,{padding:i}=e;return"string"==typeof i?{left:t,right:t}:{left:(null!=(n=i.left)?n:0)+t,right:(null!=(r=i.right)?r:0)+t}}),ts=(0,r.Mz)(ee,(e,t,n)=>{var r=ee(e,t);return null==r||"string"!=typeof r.padding?0:to(e,"yAxis",t,n,r.padding)},(e,t)=>{if(null==e)return{top:0,bottom:0};var n,r,{padding:i}=e;return"string"==typeof i?{top:t,bottom:t}:{top:(null!=(n=i.top)?n:0)+t,bottom:(null!=(r=i.bottom)?r:0)+t}}),tl=(0,r.Mz)([E.HZ,ta,C.U,C.C,(e,t,n)=>n],(e,t,n,r,i)=>{var{padding:o}=r;return i?[o.left,n.width-o.right]:[e.left+t.left,e.left+e.width-t.right]}),tc=(0,r.Mz)([E.HZ,l.fz,ts,C.U,C.C,(e,t,n)=>n],(e,t,n,r,i,o)=>{var{padding:a}=i;return o?[r.height-a.bottom,a.top]:"horizontal"===t?[e.top+e.height-n.bottom,e.top+n.top]:[e.top+n.top,e.top+e.height-n.bottom]}),tu=(e,t,n,r)=>{var i;switch(t){case"xAxis":return tl(e,n,r);case"yAxis":return tc(e,n,r);case"zAxis":return null==(i=en(e,n))?void 0:i.range;case"angleAxis":return(0,P.Cv)(e);case"radiusAxis":return(0,P.Dc)(e,n);default:return}},th=(0,r.Mz)([er,tu],R.I),td=(0,r.Mz)([e7,tr],H.l),tf=(0,r.Mz)([er,e7,td,th],W.S),tp=(e,t,n,r)=>{if(null!=n&&null!=n.dataKey){var{type:i,scale:o}=n;if((0,c._L)(e,r)&&("number"===i||"auto"!==o))return t.map(e=>e.value)}},tm=(0,r.Mz)([l.fz,ew,ei,T.N],tp),tg=(0,r.Mz)([tf],V.X);function tv(e,t){return e.id<t.id?-1:+(e.id>t.id)}(0,r.Mz)([tf],function(e){if(null!=e)return"invert"in e&&"function"==typeof e.invert?e.invert.bind(e):U(e,void 0)}),(0,r.Mz)([tf,eE],U),(0,r.Mz)([eu,eB,T.N],(e,t,n)=>e.flatMap(e=>t[e.id]).filter(Boolean).filter(e=>eC(n,e)));var ty=(e,t)=>t,tb=(e,t,n)=>n,tx=(0,r.Mz)(A.h,ty,tb,(e,t,n)=>e.filter(e=>e.orientation===t).filter(e=>e.mirror===n).sort(tv)),tw=(0,r.Mz)(A.W,ty,tb,(e,t,n)=>e.filter(e=>e.orientation===t).filter(e=>e.mirror===n).sort(tv)),tk=(e,t)=>({width:e.width,height:t.height}),tS=(0,r.Mz)(E.HZ,X,tk),tM=(0,r.Mz)(M.A$,E.HZ,tx,ty,tb,(e,t,n,r,i)=>{var o,a={};return n.forEach(n=>{var s=tk(t,n);null==o&&(o=((e,t,n)=>{switch(t){case"top":return e.top;case"bottom":return n-e.bottom;default:return 0}})(t,r,e));var l="top"===r&&!i||"bottom"===r&&i;a[n.id]=o-Number(l)*s.height,o+=(l?-1:1)*s.height}),a}),tA=(0,r.Mz)(M.Lp,E.HZ,tw,ty,tb,(e,t,n,r,i)=>{var o,a={};return n.forEach(n=>{var s={width:"number"==typeof n.width?n.width:j.tQ,height:t.height};null==o&&(o=((e,t,n)=>{switch(t){case"left":return e.left;case"right":return n-e.right;default:return 0}})(t,r,e));var l="left"===r&&!i||"right"===r&&i;a[n.id]=o-Number(l)*s.width,o+=(l?-1:1)*s.width}),a}),tE=(0,r.Mz)([E.HZ,X,(e,t)=>{var n=X(e,t);if(null!=n)return tM(e,n.orientation,n.mirror)},(e,t)=>t],(e,t,n,r)=>{if(null!=t){var i=null==n?void 0:n[r];return null==i?{x:e.left,y:0}:{x:e.left,y:i}}}),tC=(0,r.Mz)([E.HZ,ee,(e,t)=>{var n=ee(e,t);if(null!=n)return tA(e,n.orientation,n.mirror)},(e,t)=>t],(e,t,n,r)=>{if(null!=t){var i=null==n?void 0:n[r];return null==i?{x:0,y:e.top}:{x:i,y:e.top}}}),tO=(0,r.Mz)(E.HZ,ee,(e,t)=>({width:"number"==typeof t.width?t.width:j.tQ,height:e.height})),tP=(e,t,n)=>{switch(t){case"xAxis":return tS(e,n).width;case"yAxis":return tO(e,n).height;default:return}},tT=(e,t,n,r)=>{if(null!=n){var{allowDuplicatedCategory:i,type:o,dataKey:a}=n,s=(0,c._L)(e,r),l=t.map(e=>e.value),u=l.filter(e=>null!=e);if(a&&s&&"category"===o&&i&&(0,d.CG)(u))return l}},tD=(0,r.Mz)([l.fz,ew,er,T.N],tT),tR=(0,r.Mz)([l.fz,(e,t,n)=>{switch(t){case"xAxis":return X(e,n);case"yAxis":return ee(e,n);default:throw Error("Unexpected axis type: ".concat(t))}},e7,tg,tD,tm,tu,tt,T.N],(e,t,n,r,i,o,a,s,l)=>{if(null!=t){var u=(0,c._L)(e,l);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:l,categoricalDomain:o,duplicateDomain:i,isCategorical:u,niceTicks:s,range:a,realScaleType:n,scale:r}}}),tj=(0,r.Mz)([l.fz,ei,e7,tg,tt,tu,tD,tm,T.N],(e,t,n,r,i,o,a,s,l)=>{if(null!=t&&null!=r){var u=(0,c._L)(e,l),{type:h,ticks:p,tickCount:m}=t,g="scaleBand"===n&&"function"==typeof r.bandwidth?r.bandwidth()/2:2,v="category"===h&&r.bandwidth?r.bandwidth()/g:0;v="angleAxis"===l&&null!=o&&o.length>=2?2*(0,d.sA)(o[0]-o[1])*v:v;var y=p||i;return y?y.map((e,t)=>{var n=a?a.indexOf(e):e,i=r.map(n);return(0,f.H)(i)?{index:t,coordinate:i+v,value:e,offset:v}:null}).filter(d.n9):u&&s?s.map((e,t)=>{var n=r.map(e);return(0,f.H)(n)?{coordinate:n+v,value:e,index:t,offset:v}:null}).filter(d.n9):r.ticks?r.ticks(m).map((e,t)=>{var n=r.map(e);return(0,f.H)(n)?{coordinate:n+v,value:e,index:t,offset:v}:null}).filter(d.n9):r.domain().map((e,t)=>{var n=r.map(e);return(0,f.H)(n)?{coordinate:n+v,value:a?a[e]:e,index:t,offset:v}:null}).filter(d.n9)}}),tI=(0,r.Mz)([l.fz,ei,tg,tu,tD,tm,T.N],(e,t,n,r,i,o,a)=>
2{if(null!=t&&null!=n&&null!=r&&r[0]!==r[1]){var s=(0,c._L)(e,a),{tickCount:l}=t,u=0;return(u="angleAxis"===a&&(null==r?void 0:r.length)>=2?2*(0,d.sA)(r[0]-r[1])*u:u,s&&o)?o.map((e,t)=>{var r=n.map(e);return(0,f.H)(r)?{coordinate:r+u,value:e,index:t,offset:u}:null}).filter(d.n9):n.ticks?n.ticks(l).map((e,t)=>{var r=n.map(e);return(0,f.H)(r)?{coordinate:r+u,value:e,index:t,offset:u}:null}).filter(d.n9):n.domain().map((e,t)=>{var r=n.map(e);return(0,f.H)(r)?{coordinate:r+u,value:i?i[e]:e,index:t,offset:u}:null}).filter(d.n9)}}),tz=(0,r.Mz)(er,tg,(e,t)=>{if(null!=e&&null!=t)return q(q({},e),{},{scale:t})}),t_=(0,r.Mz)([er,e7,e9,th],W.S),tL=(0,r.Mz)([t_],V.X);(0,r.Mz)((e,t,n)=>en(e,n),tL,(e,t)=>{if(null!=e&&null!=t)return q(q({},e),{},{scale:t})});var tN=(0,r.Mz)([l.fz,A.h,A.W],(e,t,n)=>{switch(e){case"horizontal":return t.some(e=>e.reversed)?"right-to-left":"left-to-right";case"vertical":return n.some(e=>e.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}});(0,r.Mz)([(e,t,n)=>{var r;return null==(r=e.renderedTicks[t])?void 0:r[n]}],e=>{if(e&&0!==e.length)return t=>{var n,r=1/0,i=e[0];for(var o of e){var a=Math.abs(o.coordinate-t);a<r&&(r=a,i=o)}return null==(n=i)?void 0:n.value}})},84851(e,t,n){"use strict";n.d(t,{C:()=>s,U:()=>l});var r=n(82263),i=n(41667),o=n(91906),a=n(35254),s=e=>e.brush,l=(0,r.Mz)([s,i.HZ,o.HK],(e,t,n)=>({height:e.height,x:(0,a.Et)(e.x)?e.x:t.left,y:(0,a.Et)(e.y)?e.y:t.top+t.height+t.brushBottom-((null==n?void 0:n.bottom)||0),width:(0,a.Et)(e.width)?e.width:t.width}))},49593(e,t,n){"use strict";n.d(t,{E:()=>i});var r=n(35254),i=(e,t)=>{var n,i=Number(t);if(!(0,r.M8)(i)&&null!=t)return i>=0?null==e||null==(n=e[i])?void 0:n.value:void 0}},13914(e,t,n){"use strict";n.d(t,{P:()=>a});var r=n(49643),i=n(76752),o=n(29739),a=(e,t,n,a)=>{var s=null==e?void 0:e.index;if(null==s)return null;var l=Number(s);if(!(0,r.H)(l))return s;var c=Infinity;t.length>0&&(c=t.length-1);var u=Math.max(0,Math.min(l,c)),h=t[u];return null==h?String(u):!function(e,t,n){if(null==n||null==t)return!0;var r=(0,i.kr)(e,t);return!(null!=r&&(0,o.JH)(n))||function(e,t){var n=function(e){if("number"==typeof e)return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var n=Number(e);return Number.isFinite(n)?n:void 0}(e),r=t[0],i=t[1];if(void 0===n)return!1;var o=Math.min(r,i),a=Math.max(r,i);return n>=o&&n<=a}(r,n)}(h,n,a)?null:String(u)}},60265(e,t,n){"use strict";n.d(t,{I:()=>r});var r=(e,t)=>{if(e&&t)return null!=e&&e.reversed?[t[1],t[0]]:t}},66728(e,t,n){"use strict";n.d(t,{l:()=>o});var r=n(29739),i=n(49643),o=(e,t)=>{if(null!=t)if("linear"!==e)return t;else{if(!(0,r.JH)(t)){for(var n,o,a=0;a<t.length;a++){var s=t[a];(0,i.H)(s)&&((void 0===n||s<n)&&(n=s),(void 0===o||s>o)&&(o=s))}return void 0!==n&&void 0!==o?[n,o]:void 0}return t}}},45043(e,t,n){"use strict";n.d(t,{S:()=>a});var r=n(82226),i=n(35254);function o(e,t,n){if("function"==typeof e)return e.copy().domain(t).range(n);if(null!=e){var o=function(e){if(e in r&&"function"==typeof r[e])return r[e]();var t="scale".concat((0,i.Zb)(e));if(t in r&&"function"==typeof r[t])return r[t]()}(e);if(null!=o)return o.domain(t).range(n),o}}function a(e,t,n,r){if(null!=n&&null!=r)return"function"==typeof e.scale?o(e.scale,n,r):o(t,n,r)}},34219(e,t,n){"use strict";n.d(t,{o:()=>r});var r=(e,t,n,r,i,o,a)=>{if(null!=o){var s=a[0],l=null==s?void 0:s.getPosition(o);if(null!=l)return l;var c=null==i?void 0:i[Number(o)];if(c)if("horizontal"===n)return{x:c.coordinate,y:(r.top+t)/2};else return{x:(r.left+e)/2,y:c.coordinate}}}},19849(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(35411),i=n(76752);function o(e,t,n){var{chartData:o=[]}=t,{allowDuplicatedCategory:a,dataKey:s}=n,l=new Map;return e.forEach(e=>{var t,n=null!=(t=e.data)?t:o;if(null!=n&&0!==n.length){var c=(0,r.x)(e);n.forEach((t,n)=>{var r,o=null==s||a?n:String((0,i.kr)(t,s,null)),u=(0,i.kr)(t,e.dataKey,0);Object.assign(r=l.has(o)?l.get(o):{},{[c]:u}),l.set(o,r)})}}),Array.from(l.values())}},74563(e,t,n){"use strict";n.d(t,{s:()=>o});var r=n(82226),i=n(35254),o=(e,t,n)=>{if(null!=e){var{scale:o,type:a}=e;if("auto"===o)return"category"===a&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>
2=0||n.indexOf("ComposedChart")>=0&&!t)?"point":"category"===a?"band":"linear";if("string"==typeof o)return"scale".concat((0,i.Zb)(o))in r?o:"point"}}},20107(e,t,n){"use strict";n.d(t,{i:()=>a});var r=n(54969);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var a=(e,t,n,i)=>{if(null==t)return r.k_;var a,s,l,c=(a=e,s=t,l=n,"axis"===s?"click"===l?a.axisInteraction.click:a.axisInteraction.hover:"click"===l?a.itemInteraction.click:a.itemInteraction.hover);if(null==c)return r.k_;if(c.active)return c;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&null!=e.syncInteraction.index)return e.syncInteraction;var u=!0===e.settings.active;if(null!=c.index){if(u)return o(o({},c),{},{active:!0})}else if(null!=i)return{active:!0,coordinate:void 0,dataKey:void 0,index:i,graphicalItemId:void 0};return o(o({},r.k_),{},{coordinate:c.coordinate})}},54246(e,t,n){"use strict";n.d(t,{N:()=>c});var r=n(35254),i=n(76752),o=n(16089);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(e){if("string"==typeof e)return e}var c=(e,t,n,a,c,u,h)=>{if(null!=t&&null!=u){var{chartData:d,computedData:f,dataStartIndex:p,dataEndIndex:m}=n;return e.reduce((e,n)=>{var g,v,y,{dataDefinedOnItem:b,settings:x}=n,w=null!=b?b:d,k=Array.isArray(w)?(0,o.v)(w,p,m):w,S=null!=(g=null==x?void 0:x.dataKey)?g:a,M=null==x?void 0:x.nameKey;return Array.isArray(v=a&&Array.isArray(k)&&!Array.isArray(k[0])&&"axis"===h?(0,r.eP)(k,a,c):u(k,t,f,M))?v.forEach(t=>{var n,r,o=function(e){if(null!=e&&"object"==typeof e){var t,n="name"in e?function(e){if("string"==typeof e||"number"==typeof e)return e}(e.name):void 0,r="unit"in e?function(e){if("string"==typeof e||"number"==typeof e||"boolean"==typeof e)return e}(e.unit):void 0,i="dataKey"in e?"string"==typeof(t=e.dataKey)||"number"==typeof t?t:"function"==typeof t?e=>t(e):void 0:void 0,o="payload"in e?e.payload:void 0;return{name:n,unit:r,dataKey:i,payload:o,color:"color"in e?l(e.color):void 0,fill:"fill"in e?l(e.fill):void 0}}}(t),a=null==o?void 0:o.name,c=null==o?void 0:o.dataKey,u=null==o?void 0:o.payload,h=s(s({},x),{},{name:a,unit:null==o?void 0:o.unit,color:null!=(n=null==o?void 0:o.color)?n:null==x?void 0:x.color,fill:null!=(r=null==o?void 0:o.fill)?r:null==x?void 0:x.fill});e.push((0,i.GF)({tooltipEntrySettings:h,dataKey:c,payload:u,value:(0,i.kr)(u,c),name:null==a?void 0:String(a)}))}):e.push((0,i.GF)({tooltipEntrySettings:x,dataKey:S,payload:v,value:(0,i.kr)(v,S),name:null!=(y=(0,i.kr)(v,M))?y:null==x?void 0:x.name})),e},[])}}},51193(e,t,n){"use strict";n.d(t,{q:()=>r});var r=(e,t,n,r)=>{if("axis"===t)return e.tooltipItemPayloads;if(0===e.tooltipItemPayloads.length)return[];if(i="hover"===n?e.itemInteraction.hover.graphicalItemId:e.itemInteraction.click.graphicalItemId,e.syncInteraction.active&&null==i)return e.tooltipItemPayloads;if(null==i&&(null!=r||e.keyboardInteraction.active)){var i,o=e.tooltipItemPayloads[0];return null!=o?[o]:[]}return e.tooltipItemPayloads.filter(e=>{var t;return(null==(t=e.settings)?void 0:t.graphicalItemId)===i})}},91906(e,t,n){"use strict";n.d(t,{A$:()=>i,HK:()=>a,Lp:()=>r,et:()=>o});var r=e=>e.layout.width,i=e=>e.layout.height,o=e=>e.layout.scale,a=e=>e.layout.margin},42099(e,t,n){"use strict";n.d(t,{G7:()=>c,LF:()=>i,k$:()=>a,lI:()=>u,lm:()=>l,rN:()=>s,z3:()=>o});var r=n(82263),i=e=>e.chartData,o=(0,r.Mz)([i],e=>{var t=null!=e.chartData?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),a=(e,t,n,r)=>r?o(e):i(e),s=(e,t,n)=>n?o(e):i(e),l=(0,r.Mz)([a],e=>{var{chartData:t,dataStartIndex:n,dataEndIndex:r}=e;return null!=t?t.slice(n,r+1):[]}),c=(0,r.Mz)([o],e=>{var{chartData:t,dataStartIndex:n,dataEndIndex:r}=e;return null!=t?t.slice(n,r+1):[]}),u=(0,r.Mz)([i],e=>{var{chartData:t,dataStartIndex:n,dataEndIndex:r}=e;return null!=t?t.slice(n,r+1):[]})}
2,30865(e,t,n){"use strict";n.d(t,{B:()=>o,W:()=>i});var r=n(14341);function i(e,t){var n,i;return null!=(n=null==(i=e.graphicalItems.cartesianItems.find(e=>e.id===t))?void 0:i.xAxisId)?n:r.W3}function o(e,t){var n,i;return null!=(n=null==(i=e.graphicalItems.cartesianItems.find(e=>e.id===t))?void 0:i.yAxisId)?n:r.W3}},44752(e,t,n){"use strict";n.d(t,{dc:()=>a,ff:()=>o,g0:()=>s});var r=n(82263),i=n(70318),o=e=>e.legend.settings,a=e=>e.legend.size,s=(0,r.Mz)([e=>e.legend.payload,o],(e,t)=>{var{itemSorter:n}=t,r=e.flat(1);return n?(0,i.U)(r,n):r})},77418(e,t,n){"use strict";n.d(t,{o:()=>r});var r=(e,t)=>e===t||null!=e&&null!=t&&e[0]===t[0]&&e[1]===t[1]},54096(e,t,n){"use strict";n.d(t,{E:()=>r});var r=(e,t,n)=>n},8249(e,t,n){"use strict";n.d(t,{N:()=>r});var r=(e,t)=>t},60657(e,t,n){"use strict";n.d(t,{Gl:()=>b,Dc:()=>A,Be:()=>y,D0:()=>E,Cv:()=>M});var r=n(82263),i=n(91906),o=n(41667),a=n(91194),s=n(35254),l=n(16026),c={allowDecimals:!1,allowDuplicatedCategory:!0,allowDataOverflow:!1,angle:0,angleAxisId:0,axisLine:!0,axisLineType:"polygon",cx:0,cy:0,hide:!1,includeHidden:!1,label:!1,niceTicks:"auto",orientation:"outer",reversed:!1,scale:"auto",tick:!0,tickLine:!0,tickSize:8,type:"auto",zIndex:l.I.axis},u={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,angle:0,axisLine:!0,includeHidden:!1,hide:!1,niceTicks:"auto",label:!1,orientation:"right",radiusAxisId:0,reversed:!1,scale:"auto",stroke:"#ccc",tick:!0,tickCount:5,tickLine:!0,type:"auto",zIndex:l.I.axis},h=n(60265),d=n(13469),f=n(82796);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var g={allowDataOverflow:c.allowDataOverflow,allowDecimals:c.allowDecimals,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:c.angleAxisId,includeHidden:!1,name:void 0,reversed:c.reversed,scale:c.scale,tick:c.tick,tickCount:void 0,ticks:void 0,type:c.type,unit:void 0,niceTicks:"auto"},v={allowDataOverflow:u.allowDataOverflow,allowDecimals:u.allowDecimals,allowDuplicatedCategory:u.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:u.radiusAxisId,includeHidden:u.includeHidden,name:void 0,reversed:u.reversed,scale:u.scale,tick:u.tick,tickCount:u.tickCount,ticks:void 0,type:u.type,unit:void 0,niceTicks:"auto"},y=(0,r.Mz)([(e,t)=>{if(null!=t)return e.polarAxis.angleAxis[t]},d.RT],(e,t)=>{if(null!=e)return e;var n,r=null!=(n=(0,f.a)(t,"angleAxis",g.type))?n:"category";return m(m({},g),{},{type:r})}),b=(0,r.Mz)([(e,t)=>e.polarAxis.radiusAxis[t],d.RT],(e,t)=>{if(null!=e)return e;var n,r=null!=(n=(0,f.a)(t,"radiusAxis",v.type))?n:"category";return m(m({},v),{},{type:r})}),x=e=>e.polarOptions,w=(0,r.Mz)([i.Lp,i.A$,o.HZ],a.lY),k=(0,r.Mz)([x,w],(e,t)=>{if(null!=e)return(0,s.F4)(e.innerRadius,t,0)}),S=(0,r.Mz)([x,w],(e,t)=>{if(null!=e)return(0,s.F4)(e.outerRadius,t,.8*t)}),M=(0,r.Mz)([x],e=>{if(null==e)return[0,0];var{startAngle:t,endAngle:n}=e;return[t,n]});(0,r.Mz)([y,M],h.I);var A=(0,r.Mz)([w,k,S],(e,t,n)=>{if(null!=e&&null!=t&&null!=n)return[t,n]});(0,r.Mz)([b,A],h.I);var E=(0,r.Mz)([d.fz,x,k,S,i.Lp,i.A$],(e,t,n,r,i,o)=>{if(("centric"===e||"radial"===e)&&null!=t&&null!=n&&null!=r){var{cx:a,cy:l,startAngle:c,endAngle:u}=t;return{cx:(0,s.F4)(a,i,i/2),cy:(0,s.F4)(l,o,o/2),innerRadius:n,outerRadius:r,startAngle:c,endAngle:u,clockWise:!1}}})},24273(e,t,n){"use strict";n.d(t,{JN:()=>r,Lb:()=>l,_5:()=>i,eC:()=>s,gY:()=>o,hX:()=>h,iO:()=>c,lZ:()=>u,pH:()=>d,vm:()=>f,x3:()=>a});var r=e=>e.rootProps.maxBarSize,i=e=>e.rootProps.barGap,o=e=>e.rootProps.barCategoryGap,a=e=>e.rootProps.barSize,s=e=>e.rootProps.stackOffset,l=e=>e.rootProps.reverseStackOrder,c=e=>e.options.chartName,u=e=>e.rootProps.syncId,h=e=>e.rootProps.syncMethod,d=e=>e.options.eventEmitter,f=e=>e.rootProps.baseValue},20024(e,t,n){"use strict";n.d(t,{g:()=>u});var r=n(82263),i=n(13469),o=n(49677),a=n(41667),s=n(60233),l=n(60657),c=n(58967),u=(0,r.Mz)([(e,t)=>t,i.fz,l.D0,c.R,o.gL,o.R4,s.r1,a.HZ],s.aX)},3251(e,t,n){"use strict";n.d(t,{W:()=>o,h:()=>i});var r=n(82263),i=(0,r.Mz)(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),o=(0,r.Mz)(e=>e.cartesianAxis.yAxis,e=>Object.values(e))},41667(e,t,n){"use strict";n.d(t,{Ds:()=>
2d,HZ:()=>h,c2:()=>f});var r=n(82263),i=n(44752),o=n(76752),a=n(91906),s=n(3251),l=n(21062);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var h=(0,r.Mz)([a.Lp,a.A$,a.HK,e=>e.brush.height,function(e){return(0,s.W)(e).reduce((e,t)=>"left"!==t.orientation||t.mirror||t.hide?e:e+("number"==typeof t.width?t.width:l.tQ),0)},function(e){return(0,s.W)(e).reduce((e,t)=>"right"!==t.orientation||t.mirror||t.hide?e:e+("number"==typeof t.width?t.width:l.tQ),0)},function(e){return(0,s.h)(e).reduce((e,t)=>"top"!==t.orientation||t.mirror||t.hide?e:e+t.height,0)},function(e){return(0,s.h)(e).reduce((e,t)=>"bottom"!==t.orientation||t.mirror||t.hide?e:e+t.height,0)},i.ff,i.dc],(e,t,n,r,i,a,s,l,c,h)=>{var d={left:(n.left||0)+i,right:(n.right||0)+a},f=u(u({},{top:(n.top||0)+s,bottom:(n.bottom||0)+l}),d),p=f.bottom;f.bottom+=r;var m=e-(f=(0,o.s0)(f,c,h)).left-f.right,g=t-f.top-f.bottom;return u(u({brushBottom:p},f),{},{width:Math.max(m,0),height:Math.max(g,0)})}),d=(0,r.Mz)(h,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),f=(0,r.Mz)(a.Lp,a.A$,(e,t)=>({x:0,y:0,width:e,height:t}))},85958(e,t,n){"use strict";n.d(t,{M:()=>r});var r=e=>e.tooltip.settings.axisId},58967(e,t,n){"use strict";n.d(t,{R:()=>i});var r=n(13469),i=e=>{var t=(0,r.fz)(e);return"horizontal"===t?"xAxis":"vertical"===t?"yAxis":"centric"===t?"angleAxis":"radiusAxis"}},33624(e,t,n){"use strict";n.d(t,{$g:()=>a,Hw:()=>o,Td:()=>l,au:()=>s,xH:()=>i});var r=n(33476),i=e=>e.options.defaultTooltipEventType,o=e=>e.options.validateTooltipEventTypes;function a(e,t,n){if(null==e)return t;var r=e?"axis":"item";return null==n?t:n.includes(r)?r:t}function s(e,t){return a(t,i(e),o(e))}function l(e){return(0,r.G)(t=>s(t,e))}},47769(e,t,n){"use strict";n.d(t,{x:()=>r});var r=e=>e.options.tooltipPayloadSearcher},41397(e,t,n){"use strict";n.d(t,{J:()=>r});var r=e=>e.tooltip},60233(e,t,n){"use strict";n.d(t,{dS:()=>L,dp:()=>I,aX:()=>V,r1:()=>D,pg:()=>_,fW:()=>C,yn:()=>F,BZ:()=>N,u9:()=>B});var r=n(82263),i=n(70318),o=n(33476),a=n(76752),s=n(42099),l=n(49677),c=n(30575),u=n(24273),h=n(13469),d=n(41667),f=n(91906),p=n(49593),m=n(20107),g=n(13914),v=n(34219),y=n(51193),b=n(47769),x=n(41397),w=n(54246),k=n(91194),S=n(35254);function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var E=(e,t,n,r,i)=>{var o=null!=(h=null==t?void 0:t.length)?h:0;if(o<=1||null==e)return 0;if("angleAxis"===r&&null!=i&&1e-6>
2=Math.abs(Math.abs(i[1]-i[0])-360))for(var a=0;a<o;a++){var s=a>0?null==(d=n[a-1])?void 0:d.coordinate:null==(f=n[o-1])?void 0:f.coordinate,l=null==(p=n[a])?void 0:p.coordinate,c=a>=o-1?null==(m=n[0])?void 0:m.coordinate:null==(g=n[a+1])?void 0:g.coordinate,u=void 0;if(null!=s&&null!=l&&null!=c)if((0,S.sA)(l-s)!==(0,S.sA)(c-l)){var h,d,f,p,m,g,v,y=[];if((0,S.sA)(c-l)===(0,S.sA)(i[1]-i[0])){u=c;var b=l+i[1]-i[0];y[0]=Math.min(b,(b+s)/2),y[1]=Math.max(b,(b+s)/2)}else{u=s;var x=c+i[1]-i[0];y[0]=Math.min(l,(x+l)/2),y[1]=Math.max(l,(x+l)/2)}var w=[Math.min(l,(u+l)/2),Math.max(l,(u+l)/2)];if(e>w[0]&&e<=w[1]||e>=y[0]&&e<=y[1])return null==(v=n[a])?void 0:v.index}else{var k,M=Math.min(s,c),A=Math.max(s,c);if(e>(M+l)/2&&e<=(A+l)/2)return null==(k=n[a])?void 0:k.index}}else if(t)for(var E=0;E<o;E++){var C=t[E];if(null!=C){var O=t[E+1],P=t[E-1];if(0===E&&null!=O&&e<=(C.coordinate+O.coordinate)/2||E===o-1&&null!=P&&e>(C.coordinate+P.coordinate)/2||E>0&&E<o-1&&null!=P&&null!=O&&e>(C.coordinate+P.coordinate)/2&&e<=(C.coordinate+O.coordinate)/2)return C.index}}return -1},C=()=>(0,o.G)(u.iO),O=(e,t)=>t,P=(e,t,n)=>n,T=(e,t,n,r)=>r,D=(0,r.Mz)(l.R4,e=>(0,i.U)(e,e=>e.coordinate)),R=(0,r.Mz)([x.J,O,P,T],m.i),j=(0,r.Mz)([R,l.n4,c.K6,l.FO],g.P),I=(e,t,n)=>{if(null!=t){var r=(0,x.J)(e);return"axis"===t?"hover"===n?r.axisInteraction.hover.dataKey:r.axisInteraction.click.dataKey:"hover"===n?r.itemInteraction.hover.dataKey:r.itemInteraction.click.dataKey}},z=(0,r.Mz)([x.J,O,P,T],y.q),_=(0,r.Mz)([f.Lp,f.A$,h.fz,d.HZ,l.R4,T,z],v.o),L=(0,r.Mz)([R,_],(e,t)=>{var n;return null!=(n=e.coordinate)?n:t}),N=(0,r.Mz)([l.R4,j],p.E),B=(0,r.Mz)([z,j,s.LF,c.K6,N,b.x,O],w.N),F=(0,r.Mz)([R,j],(e,t)=>({isActive:e.active&&null!=t,activeIndex:t})),V=(e,t,n,r,i,o,s,l)=>{if(e&&t&&r&&i&&o){if("horizontal"===t||"vertical"===t){if(!e||!r||!i||!o)return;if(function(e,t){var{relativeX:n,relativeY:r}=e;return n>=t.left&&n<=t.left+t.width&&r>=t.top&&r<=t.top+t.height}(e,l)){var c=E((0,a.sr)(e,t),s,o,r,i),u=((e,t,n,r)=>{var i=t.find(e=>e&&e.index===n);if(i){if("horizontal"===e)return{x:i.coordinate,y:r.relativeY};if("vertical"===e)return{x:r.relativeX,y:i.coordinate}}return{x:0,y:0}})(t,o,c,e);return{activeIndex:String(c),activeCoordinate:u}}return}if(e&&r&&i&&o&&n){var h=(0,k.yy)(e,n);if(h){var d=E((0,a.eB)(h,t),s,o,r,i),f=((e,t,n,r)=>{var i=t.find(e=>e&&e.index===n);if(i){if("centric"===e){var o=i.coordinate,{radius:a}=r;return A(A(A({},r),(0,k.IZ)(r.cx,r.cy,a,o)),{},{angle:o,radius:a})}var s=i.coordinate,{angle:l}=r;return A(A(A({},r),(0,k.IZ)(r.cx,r.cy,s,l)),{},{angle:l,radius:s})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}})(t,o,d,h);return{activeIndex:String(d),activeCoordinate:f}}return}}}},49677(e,t,n){"use strict";n.d(t,{n4:()=>F,fl:()=>eh,fx:()=>ek,A2:()=>eb,AA:()=>_,eE:()=>eA,Xb:()=>ew,FO:()=>eo,gL:()=>ec,yn:()=>eE,BZ:()=>ex,JG:()=>eO,R4:()=>ep});var r=n(82263),i=n(30575),o=n(13469),a=n(76752),s=n(42099),l=n(24273),c=n(35254),u=n(60265),h=n(33624),d=n(49593),f=n(20107),p=n(13914),m=n(34219),g=n(91906),v=n(41667),y=n(51193),b=n(47769),x=n(41397),w=n(54246),k=n(85958),S=n(58967),M=n(19849),A=n(18281),E=n(29739),C=n(77418),O=n(52402),P=n(72e3),T=n(49643),D=n(74563),R=n(45043),j=(0,r.Mz)([i.Dn,i.um,l.iO],D.s),I=(0,r.Mz)([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),z=(0,r.Mz)([S.R,k.M],i.eo),_=(0,r.Mz)([I,i.Dn,z],i.ec,{memoizeOptions:{resultEqualityCheck:O.O}}),L=(0,r.Mz)([_],e=>e.filter(A.g)),N=(0,r.Mz)([_],i.rj,{memoizeOptions:{resultEqualityCheck:O.O}}),B=(0,r.Mz)([_],e=>e.some(e=>!e.data)),F=(0,r.Mz)([N,s.LF],i.Nk),V=(0,r.Mz)([L,s.LF,i.Dn],M.A),H=(0,r.Mz)([F,i.Dn,_,s.LF,B,N],i.G2),W=(0,r.Mz)([i.Dn],i.S5),$=(0,r.Mz)([i.Dn],e=>e.allowDataOverflow),U=(0,r.Mz)([W,$],E.f5),K=(0,r.Mz)([_],e=>e.filter(A.g)),q=(0,r.Mz)([V,K,l.eC,l.Lb],i.MK),G=(0,r.Mz)([q,s.LF,S.R,U],i.pM),Z=(0,r.Mz)([_],i.IO),Y=(0,r.Mz)([F,i.Dn,Z,i.CH,S.R,s.lI],i.EZ,{memoizeOptions:{resultEqualityCheck:C.o}}),X=(0,r.Mz)([i.Kr,S.R,k.M],i.P9),J=(0,r.Mz)([X,S.R],i.Oz),Q=(0,r.Mz)([i.gT,S.R,k.M],i.P9),ee=(0,r.Mz)([Q,S.R],i.q),et=(0,r.Mz)([i.$X,S.R,k.M],i.P9),en=(0,r.Mz)([et,S.R],i.bb),er=(0,r.Mz)([J,en,ee],i.yi),ei=(0,r.Mz)([i.Dn,W,U,G,Y,er,o.fz,S.R],i.wL),eo=(0,r.Mz)([i.Dn,o.fz,F,H,l.eC,S.R,ei],i.tP),ea=(0,r.Mz)([eo,i.Dn,j],i.xp),es=(0,r.Mz)([i.Dn,eo,ea,S.R],i.g1),el=e=>{var t=(0,S.R)(e),n=(0,k.M)(e);return(0,i.D5)(e,t,n,!1)},ec=(0,r.Mz)([i.Dn,el],u.I),eu=(0,r.Mz)([i.Dn,j,es,ec],R.S),eh=(0,r.Mz)([eu],P.X),ed=(0,r.Mz)([o.fz,H,i.Dn,S.R],i.tF),ef=(0,r.Mz)([o.fz,H,i.Dn,S.R],i.iv),ep=(0,r.Mz)([o.fz,i.Dn,j,eh,el,ed,ef,S.R],(e,t,n,r,i,o,s,l)=>{if(t){var{type:u}=t,h=(0,a._L)(e,l);if(r){var d="scaleBand"===n&&r.bandwidth?r.bandwidth()/2:2,f="category"===u&&r.bandwidth?r.bandwidth()/d:0;return(f="angleAxis"===l&&null!=i&&(null==i?void 0:i.length)>=2?2*(0,c.sA)(i[0]-i[1])*f:f,h&&s)?s.map((e,t)=>{var n=r.map(e);return(0,T.H)(n)?{coordinate:n+f,value:e,index:t,offset:f}:null}).filter(c.n9):r.domain().map((e,t)=>{var n=r.map(e);return(0,T.H)(n)?{coordinate:n+f,value:o?o[e]:e,index:t,offset:f}:null}).filter(c.n9)}}}),em=(0,r.Mz)([h.xH,h.Hw,e=>e.tooltip.settings],(e,t,n)=>(0,h.$g)(n.shared,e,t)),eg=e=>e.tooltip.settings.trigger,ev=e=>e.tooltip.settings.defaultIndex,ey=(0,r.Mz)([x.J,em,eg,ev],f.i),eb=(0,r.Mz)([ey,F,i.K6,eo],p.P),ex=(0,r.Mz)([ep,eb],d.E),ew=(0,r.Mz)([ey],e=>{if(e)return e.dataKey}),ek=(0,r.Mz)([ey],e=>{if(e)return e.graphicalItemId}),eS=(0,r.Mz)([x.J,em,eg,ev],y.q),eM=(0,r.Mz)([g.Lp,g.A$,o.fz,v.HZ,ep,ev,eS],m.o),eA=(0,r.Mz)([ey,eM],(e,t)=>null!=e&&e.coordinate?e.coordinate:t),eE=(0,r.Mz)([ey],e=>{var t;return null!=(t=null==e?void 0:e.active)&&t}),eC=(0,r.Mz)([eS,eb,s.LF,i.K6,ex,b.x,em],w.N),eO=(0,r.Mz)([eC],e=>{if(null!=e)return Array.from(new Set(e.map(e=>e.payload).filter(e=>null!=e)))})},54969(e,t,n){"use strict";n.d(t,{E1:()=>y,En:()=>x,Ix:()=>l,ML:()=>m,Nt:()=>g,RD:()=>d,UF:()=>h,XB:()=>u,Zp:()=>c,jF:()=>v,k_:()=>a,o4:()=>b,oP:()=>f,xS:()=>p});var r=n(83867),i=n(436),o=n(36726),a={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},s=(0,r.Z0)({name:"tooltip",initialState:{itemInteraction:{click:a,hover:a},axisInteraction:{click:a,hover:a},keyboardInteraction:a,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push((0,o.h4)(t.payload))},prepare:(0,r.aA)()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:n,next:r}=t.payload,a=(0,i.ss)(e).tooltipItemPayloads.indexOf((0,o.h4)(n));a>-1&&(e.tooltipItemPayloads[a]=(0,o.h4)(r))},prepare:(0,r.aA)()},removeTooltipEntrySettings:{reducer(e,t){var n=(0,i.ss)(e).tooltipItemPayloads.indexOf((0,o.h4)(t.payload));n>-1&&e.tooltipItemPayloads.splice(n,1)},prepare:(0,r.aA)()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:l,replaceTooltipEntrySettings:c,removeTooltipEntrySettings:u,setTooltipSettingsState:h,setActiveMouseOverItemIndex:d,mouseLeaveItem:f,mouseLeaveChart:p,setA
2ctiveClickItemIndex:m,setMouseOverAxisIndex:g,setMouseClickAxisIndex:v,setSyncInteraction:y,setKeyboardInteraction:b}=s.actions,x=s.reducer},22171(e,t,n){"use strict";n.d(t,{k:()=>g,e:()=>m});var r=n(83867),i=n(54969),o=n(20024),a=n(1677),s=n(33624),l=n(21062),c=n(82263),u=n(41397),h=(0,c.Mz)([u.J],e=>e.tooltipItemPayloads),d=(0,c.Mz)([h,(e,t)=>t,(e,t,n)=>n],(e,t,n)=>{if(null!=t){var r=e.find(e=>e.settings.graphicalItemId===n);if(null!=r){var{getPosition:i}=r;if(null!=i)return i(t)}}}),f=n(49677),p=n(37259),m=(0,r.VP)("touchMove"),g=(0,r.Nc)(),v=null,y=null,b=null,x=null;g.startListening({actionCreator:m,effect:(e,t)=>{var n=e.payload;if(null!=n.touches&&0!==n.touches.length){x=(0,p.r)(n);var{throttleDelay:r,throttledEvents:c}=t.getState().eventSettings,u="all"===c||c.includes("touchmove");null!==v&&(cancelAnimationFrame(v),v=null),null===y||"number"==typeof r&&u||(clearTimeout(y),y=null),b=Array.from(n.touches).map(e=>(0,a.X)({clientX:e.clientX,clientY:e.clientY,currentTarget:n.currentTarget}));var h=()=>{if(null!=x){var e=t.getState(),n=(0,s.au)(e,e.tooltip.settings.shared);if("axis"===n){var r,a=null==(r=b)?void 0:r[0];if(null==a){v=null,y=null;return}var c=(0,o.g)(e,a);(null==c?void 0:c.activeIndex)!=null&&t.dispatch((0,i.Nt)({activeIndex:c.activeIndex,activeDataKey:void 0,activeCoordinate:c.activeCoordinate}))}else if("item"===n){var u,h=x.touches[0];if(null==document.elementFromPoint||null==h)return;var p=document.elementFromPoint(h.clientX,h.clientY);if(!p||!p.getAttribute)return;var m=p.getAttribute(l.F0),g=null!=(u=p.getAttribute(l.yU))?u:void 0,w=(0,f.AA)(e).find(e=>e.id===g);if(null==m||null==w||null==g)return;var{dataKey:k}=w,S=d(e,m,g);t.dispatch((0,i.RD)({activeDataKey:k,activeIndex:m,activeCoordinate:S,activeGraphicalItemId:g}))}v=null,y=null}};if(!u)return void h();"raf"===r?v=requestAnimationFrame(h):"number"==typeof r&&null===y&&(h(),x=null,y=setTimeout(()=>{x?h():(y=null,v=null)},r))}}})},18281(e,t,n){"use strict";function r(e){return"stackId"in e&&null!=e.stackId&&null!=e.dataKey}n.d(t,{g:()=>r})},35012(e,t,n){"use strict";n.d(t,{B8:()=>p,WO:()=>f,ZV:()=>d,v3:()=>m,wR:()=>h});var r=n(83867),i=n(36726),o=n(16026);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var l={zIndexMap:Object.values(o.I).reduce((e,t)=>s(s({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),{})},c=new Set(Object.values(o.I)),u=(0,r.Z0)({name:"zIndex",initialState:l,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]?e.zIndexMap[n].consumers+=1:e.zIndexMap[n]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:(0,r.aA)()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]&&(e.zIndexMap[n].consumers-=1,e.zIndexMap[n].consumers<=0&&!c.has(n)&&delete e.zIndexMap[n])},prepare:(0,r.aA)()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:n,element:r,isPanorama:o}=t.payload;e.zIndexMap[n]?o?e.zIndexMap[n].panoramaElement=(0,i.h4)(r):e.zIndexMap[n].element=(0,i.h4)(r):e.zIndexMap[n]={consumers:0,element:o?void 0:(0,i.h4)(r),panoramaElement:o?(0,i.h4)(r):void 0}},prepare:(0,r.aA)()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]&&(t.payload.isPanorama?e.zIndexMap[n].panoramaElement=void 0:e.zIndexMap[n].element=void 0)},prepare:(0,r.aA)()}}}),{registerZIndexPortal:h,unregisterZIndexPortal:d,registerZIndexPortalElement:f,unregisterZIndexPortalElement:p}=u.actions,m=u.reducer},88703(e,t,n){"use strict";n.d(t,{m7:()=>w,l3:()=>x});var r=n(50405),i=n(33476),o=n(24273),a=new(n(54685)),s="recharts.syncEvent.tooltip",l="recharts.syncEvent.brush",c=n(91118),u=n(54969),h=n(60233),d=n(49677);function f(e){return e.tooltip.syncInteraction}var p=n(13469),m=n(12484),g=n(35254),v=["x","y"];function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?y(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function x(){var e,t,n,h,f,y,x,w,k,S,M,A=(0,i.j)();(0,r.useEffect)(()=>{A((0,c.dl)())},[A]),e=(0,i.G)(o.lZ),t=(0,i.G)(o.pH),n=(0,i.j)(),h=(0,i.G)(o.hX),f=(0,i.G)(d.R4),y=(0,p.WX)(),x=(0,p.sk)(),w=(0,i.G)(e=>e.rootProps.className),(0,r.useEffect)(()=>{if(null==e)return g.lQ;var r=(r,i,o)=>{if(t!==o&&e===r){if(!1===i.payload.active)return void n((0,u.E1)({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));if("index"===h){if(x&&null!=i&&null!=(a=i.payload)&&a.coordinate&&i.payload.sourceViewBox){var a,s,l=i.payload.coordinate,{x:c,y:d}=l,p=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(l,v),{x:m,y:g,width:w,height:k}=i.payload.sourceViewBox,S=b(b({},p),{},{x:x.x+(w?(c-m)/w:0)*x.width,y:x.y+(k?(d-g)/k:0)*x.height});n(b(b({},i),{},{payload:b(b({},i.payload),{},{coordinate:S})}))}else n(i);return}if(null!=f){if("function"==typeof h){var M=h(f,{activeTooltipIndex:null==i.payload.index?void 0:Number(i.payload.index),isTooltipActive:i.payload.active,activeIndex:null==i.payload.index?void 0:Number(i.payload.index),activeLabel:i.payload.label,activeDataKey:i.payload.dataKey,activeCoordinate:i.payload.coordinate});s=f[M]}else"value"===h&&(s=f.find(e=>String(e.value)===i.payload.label));var{coordinate:A}=i.payload;if(null==A||null==x)return void n((0,u.E1)({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));if(null==s)return void n((0,u.E1)({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:i.payload.sourceViewBox,graphicalItemId:void 0}));var{x:E,y:C}=A,O=Math.min(E,x.x+x.width),P=Math.min(C,x.y+x.height),T={x:"horizontal"===y?s.coordinate:O,y:"horizontal"===y?P:s.coordinate};n((0,u.E1)({active:i.payload.active,coordinate:T,dataKey:i.payload.dataKey,index:String(s.index),label:i.payload.label,sourceViewBox:i.payload.sourceViewBox,graphicalItemId:i.payload.graphicalItemId}))}}};return a.on(s,r),()=>{a.off(s,r)}},[w,n,t,e,h,f,y,x]),k=(0,i.G)(o.lZ),S=(0,i.G)(o.pH),M=(0,i.j)(),(0,r.useEffect)(()=>{if(null==k)return g.lQ;var e=(e,t,n)=>{S!==n&&k===e&&M((0,m.M)(t))};return a.on(l,e),()=>{a.off(l,e)}},[M,S,k])}function w(e,t,n,l,c,m){var g=(0,i.G)(n=>(0,h.dp)(n,e,t)),v=(0,i.G)(d.fx),y=(0,i.G)(o.pH),b=(0,i.G)(o.lZ),x=(0,i.G)(o.hX),w=(0,i.G)(f),k=(null==w?void 0:w.sourceViewBox)!=null,S=(0,p.sk)();(0,r.useEffect)(()=>{if(!k&&null!=b&&null!=y){var e=(0,u.E1)({active:m,coordinate:n,dataKey:g,index:c,label:"number"==typeof l?String(l):l,sourceViewBox:S,graphicalItemId:v});a.emit(s,b,e,y)}},[k,n,g,v,c,l,y,b,x,m,S])}},10657(e,t,n){"use strict";n.d(t,{y:()=>j});var r,i,o,a,s,l=n(50405),c=n(63701),u=n(70851),h=n(2614),d=n(61419),f=n(11057),p=n(35254),m=n(85991),g=n(43646),v=n(98943);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?y(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function x(){return(x=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)}function w(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var k=(e,t,n,l,c)=>{var u=n-l;return(0,v.Y)(r||(r=w(["M ",",",""])),e,t)+(0,v.Y)(i||(i=w(["L ",",",""])),e+n,t)+(0,v.Y)(o||(o=w(["L ",",",""])),e+n-u/2,t+c)+(0,v.Y)(a||(a=w(["L ",",",""])),e+n-u/2-l,t+c)+(0,v.Y)(s||(s=w(["L ",","," Z"])),e,t)},S={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},M=e=>{var t=(0,h.e)(e,S),{x:n,y:r,upperWidth:i,lowerWidth:o,height:a,className:s}=t,{animationEasing:c,animationDuration:v,animationBegin:y,isUpdateAnimationActive:w}=t,M=(0,l.useRef)(null),[A,E]=(0,l.useState)(-1),C=(0,l.useRef)(i),O=(0,l.useRef)(o),P=(0,l.useRef)(a),T=(0,l.useRef)(n),D=(0,l.useRef)(r),R=(0,f.n)(e,"trapezoid-");if((0,l.useEffect)(()=>{if(M.current&&M.current.getTotalLength)try{var e=M.current.getTotalLength();e&&E(e)}catch(e){}},[]),n!==+n||r!==+r||i!==+i||o!==+o||a!==+a||0===i&&0===o||0===a)return null;var j=(0,u.$)("recharts-trapezoid",s);if(!w)return l.createElement("g",null,l.createElement("path",x({},(0,g.a)(t),{className:j,d:k(n,r,i,o,a)})));var I=C.current,z=O.current,_=P.current,L=T.current,N=D.current,B="0px ".concat(-1===A?1:A,"px"),F="".concat(A,"px ").concat(A,"px"),V=(0,m.dl)(["strokeDasharray"],v,c);return l.createElement(d.J,{animationId:R,key:R,canBegin:A>0,duration:v,easing:c,isActive:w,begin:y},e=>{var s=(0,p.GW)(I,i,e),c=(0,p.GW)(z,o,e),u=(0,p.GW)(_,a,e),h=(0,p.GW)(L,n,e),d=(0,p.GW)(N,r,e);M.current&&(C.current=s,O.current=c,P.current=u,T.current=h,D.current=d);var f=e>0?{transition:V,strokeDasharray:F}:{strokeDasharray:B};return l.createElement("path",x({},(0,g.a)(t),{className:j,d:k(h,d,s,c,u),ref:M,style:b(b({},f),t.style)}))})},A=n(17928),E=n(83947),C=n(66441),O=n(53e3),P=["option","shapeType","activeClassName","inActiveClassName"];function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function R(e){var{shapeType:t,elementProps:n}=e;switch(t){case"rectangle":return l.createElement(c.M,n);case"trapezoid":return l.createElement(M,n);case"sector":return l.createElement(A.h,n);case"symbols":if("symbols"===t)return l.createElement(C.i,n);break;case"curve":return l.createElement(O.Ip,n);default:return null}}function j(e){var t,{option:n,shapeType:r,activeClassName:i="recharts-active-shape",inActiveClassName:o="recharts-shape"}=e,a=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,P);if((0,l.isValidElement)(n))t=(0,l.cloneElement)(n,D(D({},a),(0,l.isValidElement)(n)?n.props:n));else if("function"==typeof n)t=n(a,a.index);else if(function(e){if("object"!=typeof e||null==e)return!1;if(null===Object.getPrototypeOf(e))return!0;
2if("[object Object]"!==Object.prototype.toString.call(e)){let t=e[Symbol.toStringTag];return null!=t&&!!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable&&e.toString()===`[object ${t}]`}let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(n)&&"boolean"!=typeof n){var s=D(D({},a),n);t=l.createElement(R,{shapeType:r,elementProps:s})}else t=l.createElement(R,{shapeType:r,elementProps:a});return a.isActive?l.createElement(E.W,{className:i},t):l.createElement(E.W,{className:o},t)}},76752(e,t,n){"use strict";n.d(t,{DW:()=>C,kr:()=>g,eB:()=>z,Hj:()=>D,nb:()=>A,PW:()=>b,sr:()=>I,IH:()=>P,Mk:()=>O,Rh:()=>x,GF:()=>R,uM:()=>j,$8:()=>M,yy:()=>S,qx:()=>T,_L:()=>y,_f:()=>w,s0:()=>v,y2:()=>E});var r=n(70318),i=n(9600);function o(e,t){if((i=e.length)>1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o<i;++o)for(r=a,a=e[t[o]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}var a=n(85780),s=n(94977);function l(e){for(var t=e.length,n=Array(t);--t>=0;)n[t]=t;return n}function c(e,t){return e[t]}function u(e){let t=[];return t.key=e,t}var h=n(35254),d=n(16089),f=n(49643);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t,n){return(0,h.uy)(e)||(0,h.uy)(t)?n:(0,h.vh)(t)?(0,i.J)(e,t,n):"function"==typeof t?t(e):n}var v=(e,t,n)=>{if(t&&n){var{width:r,height:i}=n,{align:o,verticalAlign:a,layout:s}=t;if(("vertical"===s||"horizontal"===s&&"middle"===a)&&"center"!==o&&(0,h.Et)(e[o]))return m(m({},e),{},{[o]:e[o]+(r||0)});if(("horizontal"===s||"vertical"===s&&"center"===o)&&"middle"!==a&&(0,h.Et)(e[a]))return m(m({},e),{},{[a]:e[a]+(i||0)})}return e},y=(e,t)=>"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t,b=(e,t,n,r)=>{if(r)return e.map(e=>e.coordinate);var i,o,a=e.map(e=>(e.coordinate===t&&(i=!0),e.coordinate===n&&(o=!0),e.coordinate));return i||a.push(t),o||a.push(n),a},x=(e,t,n)=>{if(!e)return null;var{duplicateDomain:r,type:i,range:o,scale:a,realScaleType:s,isCategorical:l,categoricalDomain:c,tickCount:u,ticks:d,niceTicks:p,axisType:m}=e;if(!a)return null;var g="scaleBand"===s&&a.bandwidth?a.bandwidth()/2:2,v=(t||n)&&"category"===i&&a.bandwidth?a.bandwidth()/g:0;return(v="angleAxis"===m&&o&&o.length>=2?2*(0,h.sA)(o[0]-o[1])*v:v,t&&(d||p))?(d||p||[]).map((e,t)=>{var n=r?r.indexOf(e):e,i=a.map(n);return(0,f.H)(i)?{coordinate:i+v,value:e,offset:v,index:t}:null}).filter(h.n9):l&&c?c.map((e,t)=>{var n=a.map(e);return(0,f.H)(n)?{coordinate:n+v,value:e,index:t,offset:v}:null}).filter(h.n9):a.ticks&&!n&&null!=u?a.ticks(u).map((e,t)=>{var n=a.map(e);return(0,f.H)(n)?{coordinate:n+v,value:e,index:t,offset:v}:null}).filter(h.n9):a.domain().map((e,t)=>{var n=a.map(e);return(0,f.H)(n)?{coordinate:n+v,value:r?r[e]:e,index:t,offset:v}:null}).filter(h.n9)},w=(e,t)=>{if(!t||2!==t.length||!(0,h.Et)(t[0])||!(0,h.Et)(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!(0,h.Et)(e[0])||e[0]<n)&&(i[0]=n),(!(0,h.Et)(e[1])||e[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},k={sign:e=>{var t,n=e.length;if(!(n<=0)){var r=null==(t=e[0])?void 0:t.length;if(null!=r&&!(r<=0))for(var i=0;i<r;++i)for(var o=0,a=0,s=0;s<n;++s){var l=e[s],c=null==l?void 0:l[i];if(null!=c){var u=c[1],d=c[0],f=(0,h.M8)(u)?d:u;f>=0?(c[0]=o,o+=f,c[1]=o):(c[0]=a,a+=f,c[1]=a)}}}},expand:function(e,t){if((r=e.length)>0){for(var n,r,i,a=0,s=e[0].length;a<s;++a){for(i=n=0;n<r;++n)i+=e[n][a][1]||0;if(i)for(n=0;n<r;++n)e[n][a][1]/=i}o(e,t)}},none:o,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,i=e[t[0]],a=i.length;r<a;++r){for(var s=0,l=0;s<n;++s)l+=e[s][r][1]||0;i[r][1]+=i[r][0]=-l/2}o(e,t)}},wiggle:function(e,t){if((i=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,i,a=0,s=1;s<r;++s){for(var l=0,c=0,u=0;l<i;++l){for(var h=e[t[l]],d=h[s][1]||0,f=(d-(h[s-1][1]||0))/2,p=0;p<l;++p){var m=e[t[p]];f+=(m[s][1]||0)-(m[s-1][1]||0)}c+=d,u+=f*d}n[s-1][1]+=n[s-1][0]=a,c&&(a-=u/c)}n[s-1][1]+=n[s-1][0]=a,o(e,t)}},positive:e=>{var t,n=e.length;if(!(n<=0)){var r=null==(t=e[0])?void 0:t.length;if(null!=r&&!(r<=0))for(var i=0;i<r;++i)for(var o=0,a=0;a<n;++a){var s=e[a],l=null==s?void 0:s[i];if(null!=l){var c=(0,h.M8)(l[1])?l[0]:l[1];c>=0?(l[0]=o,o+=c,l[1]=o):(l[0]=0,l[1]=0)}}}}},S=(e,t,n)=>{var r,i=null!=(r=k[n])?r:o,d=(function(){var e=(0,s.A)([]),t=l,n=o,r=c;function i(i){var o,s,l=Array.from(e.apply(this,arguments),u),c=l.length,h=-1;for(let e of i)for(o=0,++h;o<c;++o)(l[o][h]=[0,+r(e,l[o].key,h,i)]).data=e;for(o=0,s=(0,a.A)(t(l));o<c;++o)l[s[o]].index=o;
2return n(l,s),l}return i.keys=function(t){return arguments.length?(e="function"==typeof t?t:(0,s.A)(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r="function"==typeof e?e:(0,s.A)(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?l:"function"==typeof e?e:(0,s.A)(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?o:e,i):n},i})().keys(t).value((e,t)=>Number(g(e,t,0))).order(l).offset(i)(e);return d.forEach((n,r)=>{n.forEach((n,i)=>{var o=g(e[i],t[r],0);Array.isArray(o)&&2===o.length&&(0,h.Et)(o[0])&&(0,h.Et)(o[1])&&(n[0]=o[0],n[1]=o[1])})}),d};function M(e){return null==e?void 0:String(e)}function A(e){var{axis:t,ticks:n,bandSize:r,entry:i,index:o,dataKey:a}=e;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!(0,h.uy)(i[t.dataKey])){var s=(0,h.eP)(n,"value",i[t.dataKey]);if(s)return s.coordinate+r/2}return null!=n&&n[o]?n[o].coordinate+r/2:null}var l=g(i,(0,h.uy)(a)?t.dataKey:a),c=t.scale.map(l);return(0,h.Et)(c)?c:null}var E=e=>{var{axis:t,ticks:n,offset:r,bandSize:i,entry:o,index:a}=e;if("category"===t.type)return n[a]?n[a].coordinate+r:null;var s=g(o,t.dataKey,t.scale.domain()[a]);if((0,h.uy)(s))return null;var l=t.scale.map(s);return(0,h.Et)(l)?l-i/2+r:null},C=e=>{var{numericAxis:t}=e,n=t.scale.domain();if("number"===t.type){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},O=(e,t,n)=>{if(null!=e){let r;return[(r=Object.keys(e).reduce((r,i)=>{var o=e[i];if(!o)return r;var{stackedData:a}=o,s=a.reduce((e,r)=>{var i,o=[Math.min(...i=(0,d.v)(r,t,n).flat(2).filter(h.Et)),Math.max(...i)];return(0,f.H)(o[0])&&(0,f.H)(o[1])?[Math.min(e[0],o[0]),Math.max(e[1],o[1])]:e},[1/0,-1/0]);return[Math.min(s[0],r[0]),Math.max(s[1],r[1])]},[1/0,-1/0]))[0]===1/0?0:r[0],r[1]===-1/0?0:r[1]]}},P=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,T=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,D=(e,t,n)=>{if(e&&e.scale&&e.scale.bandwidth){var i=e.scale.bandwidth();if(!n||i>0)return i}if(e&&t&&t.length>=2){for(var o=(0,r.U)(t,e=>e.coordinate),a=1/0,s=1,l=o.length;s<l;s++){var c=o[s],u=o[s-1];a=Math.min(((null==c?void 0:c.coordinate)||0)-((null==u?void 0:u.coordinate)||0),a)}return a===1/0?0:a}return n?void 0:0};function R(e){var{tooltipEntrySettings:t,dataKey:n,payload:r,value:i,name:o}=e;return m(m({},t),{},{dataKey:n,payload:r,value:i,name:o})}function j(e,t){return e?String(e):"string"==typeof t?t:void 0}var I=(e,t)=>"horizontal"===t?e.relativeX:"vertical"===t?e.relativeY:void 0,z=(e,t)=>"centric"===t?e.angle:e.radius},21062(e,t,n){"use strict";n.d(t,{F0:()=>r,tQ:()=>o,yU:()=>i});var r="data-recharts-item-index",i="data-recharts-item-id",o=60},5622(e,t,n){"use strict";n.d(t,{Pu:()=>u});var r=n(36324);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},{cacheSize:2e3,enableCache:!0}),a=new class{constructor(e){!function(e,t,n){var r;(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}
2(this,"cache",new Map),this.maxSize=e}get(e){var t=this.cache.get(e);return void 0!==t&&(this.cache.delete(e),this.cache.set(e,t)),t}set(e,t){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.maxSize){var n=this.cache.keys().next().value;null!=n&&this.cache.delete(n)}this.cache.set(e,t)}clear(){this.cache.clear()}size(){return this.cache.size}}(o.cacheSize),s={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},l="recharts_measurement_span",c=(e,t)=>{try{var n=document.getElementById(l);n||((n=document.createElement("span")).setAttribute("id",l),n.setAttribute("aria-hidden","true"),document.body.appendChild(n)),Object.assign(n.style,s,t),n.textContent="".concat(e);var r=n.getBoundingClientRect();return{width:r.width,height:r.height}}catch(e){return{width:0,height:0}}},u=function(e){var t,n,i,s,l,u,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||r.m.isSsr)return{width:0,height:0};if(!o.enableCache)return c(e,h);var d=(t=h.fontSize||"",n=h.fontFamily||"",i=h.fontWeight||"",s=h.fontStyle||"",l=h.letterSpacing||"",u=h.textTransform||"","".concat(e,"|").concat(t,"|").concat(n,"|").concat(i,"|").concat(s,"|").concat(l,"|").concat(u)),f=a.get(d);if(f)return f;var p=c(e,h);return a.set(d,p),p}},35254(e,t,n){"use strict";n.d(t,{CG:()=>f,Et:()=>l,F4:()=>d,GW:()=>p,M8:()=>a,NF:()=>h,Zb:()=>v,_3:()=>s,eP:()=>m,lQ:()=>b,n9:()=>y,sA:()=>o,uy:()=>g,vh:()=>c});var r=n(9600),i=n(98943),o=e=>0===e?0:e>0?1:-1,a=e=>"number"==typeof e&&e!=+e,s=e=>"string"==typeof e&&e.indexOf("%")===e.length-1,l=e=>("number"==typeof e||e instanceof Number)&&!a(e),c=e=>l(e)||"string"==typeof e,u=0,h=e=>{var t=++u;return"".concat(e||"").concat(t)},d=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!l(e)&&"string"!=typeof e)return r;if(s(e)){if(null==t)return r;var o=e.indexOf("%");n=t*parseFloat(e.slice(0,o))/100}else n=+e;return a(n)&&(n=r),i&&null!=t&&n>t&&(n=t),n},f=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(n[String(e[r])])return!0;else n[String(e[r])]=!0;return!1};function p(e,t,n){return l(e)&&l(t)?(0,i.L)(e+n*(t-e)):t}function m(e,t,n){if(e&&e.length)return e.find(e=>e&&("function"==typeof t?t(e):(0,r.J)(e,t))===n)}var g=e=>null==e,v=e=>g(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function y(e){return null!=e}function b(){}},36324(e,t,n){"use strict";n.d(t,{m:()=>r});var r={devToolsEnabled:!0,isSsr:!("u">typeof window&&window.document&&window.document.createElement&&window.setTimeout)}},34892(e,t,n){"use strict";n.d(t,{R:()=>r});var r=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if("u">typeof console&&console.warn&&(void 0===t&&console.warn("LogUtils requires an error message argument"),!e))if(void 0===t)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(t.replace(/%s/g,()=>r[o++]))}}},91194(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}n.d(t,{IZ:()=>a,Kg:()=>o,lY:()=>s,yy:()=>l});var o=Math.PI/180,a=(e,t,n,r)=>({x:e+Math.cos(-o*r)*n,y:t+Math.sin(-o*r)*n}),s=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0,width:0,height:0,brushBottom:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2},l=(e,t)=>
2{var n,{relativeX:r,relativeY:o}=e,{radius:a,angle:s}=((e,t)=>{var{x:n,y:r}=e,{cx:i,cy:o}=t,a=((e,t)=>{var{x:n,y:r}=e,{x:i,y:o}=t;return Math.sqrt((n-i)**2+(r-o)**2)})({x:n,y:r},{x:i,y:o});if(a<=0)return{radius:a,angle:0};var s=Math.acos((n-i)/a);return r>o&&(s=2*Math.PI-s),{radius:a,angle:180*s/Math.PI,angleInRadian:s}})({x:r,y:o},t),{innerRadius:l,outerRadius:c}=t;if(a<l||a>c||0===a)return null;var{startAngle:u,endAngle:h}=(e=>{var{startAngle:t,endAngle:n}=e,r=Math.min(Math.floor(t/360),Math.floor(n/360));return{startAngle:t-360*r,endAngle:n-360*r}})(t),d=s;if(u<=h){for(;d>h;)d-=360;for(;d<u;)d+=360;n=d>=u&&d<=h}else{for(;d>u;)d-=360;for(;d<h;)d+=360;n=d>=h&&d<=u}return n?i(i({},t),{},{radius:a,angle:((e,t)=>{var{startAngle:n,endAngle:r}=t;return e+360*Math.min(Math.floor(n/360),Math.floor(r/360))})(d,t)}):null}},62607(e,t,n){"use strict";n.d(t,{aS:()=>h,y$:()=>d});var r=n(9600),i=n(50405),o=n(17020),a=n(35254),s=e=>"string"==typeof e?e:e?e.displayName||e.name||"Component":"",l=null,c=null,u=e=>{if(e===l&&Array.isArray(c))return c;var t=[];return i.Children.forEach(e,e=>{(0,a.uy)(e)||((0,o.isFragment)(e)?t=t.concat(u(e.props.children)):t.push(e))}),c=t,l=e,t};function h(e,t){var n=[],i=[];return i=Array.isArray(t)?t.map(e=>s(e)):[s(t)],u(e).forEach(e=>{var t=(0,r.J)(e,"type.displayName")||(0,r.J)(e,"type.name");t&&-1!==i.indexOf(t)&&n.push(e)}),n}var d=e=>!e||"object"!=typeof e||!("clipDot"in e)||!!e.clipDot},71612(e,t,n){"use strict";n.d(t,{Q:()=>l});var r=n(19575),i=["domain","range"],o=["domain","range"];function a(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function s(e,t){return e===t||!!(Array.isArray(e)&&2===e.length&&Array.isArray(t))&&2===t.length&&e[0]===t[0]&&e[1]===t[1]}function l(e,t){if(e===t)return!0;var{domain:n,range:l}=e,c=a(e,i),{domain:u,range:h}=t,d=a(t,o);return!!s(n,u)&&!!s(l,h)&&(0,r.P)(c,d)}},37259(e,t,n){"use strict";function r(e){e.persist();var{currentTarget:t}=e;return new Proxy(e,{get:(e,n)=>{if("currentTarget"===n)return t;var r=Reflect.get(e,n);return"function"==typeof r?r.bind(e):r}})}n.d(t,{r:()=>r})},36787(e,t,n){"use strict";n.d(t,{q:()=>i});var r=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"];function i(e){return"string"==typeof e&&r.includes(e)}}
2,82796(e,t,n){"use strict";n.d(t,{a:()=>i});var r=n(76752);function i(e,t,n){return"auto"!==n?n:null!=e?(0,r._L)(e,t)?"category":"number":void 0}},76800(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"className"in e&&"string"==typeof e.className?e.className:""}n.d(t,{I:()=>r})},5999(e,t,n){"use strict";n.d(t,{x:()=>i});var r=n(41514);function i(e){var t=(0,r.ic)(e);if(null!=t){var{r:n,strokeWidth:i}=t,o=Number(n),a=Number(i);return(Number.isNaN(o)||o<0)&&(o=3),(Number.isNaN(a)||a<0)&&(a=2),{r:o,strokeWidth:a}}return{r:3,strokeWidth:2}}},1677(e,t,n){"use strict";function r(e){var t,n,r=e.currentTarget.getBoundingClientRect();if("getBBox"in e.currentTarget&&"function"==typeof e.currentTarget.getBBox){var i=e.currentTarget.getBBox();t=i.width>0?r.width/i.width:1,n=i.height>0?r.height/i.height:1}else{var o=e.currentTarget;t=o.offsetWidth>0?r.width/o.offsetWidth:1,n=o.offsetHeight>0?r.height/o.offsetHeight:1}var a=(e,i)=>({relativeX:Math.round((e-r.left)/t),relativeY:Math.round((i-r.top)/n)});return"touches"in e?Array.from(e.touches).map(e=>a(e.clientX,e.clientY)):a(e.clientX,e.clientY)}n.d(t,{X:()=>r})},16089(e,t,n){"use strict";function r(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}n.d(t,{v:()=>r})},29739(e,t,n){"use strict";n.d(t,{JH:()=>a,f5:()=>l,v1:()=>c});var r=n(76752),i=n(35254),o=n(49643);function a(e){if(Array.isArray(e)&&2===e.length){var[t,n]=e;if((0,o.H)(t)&&(0,o.H)(n))return!0}return!1}function s(e,t,n){return n?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function l(e,t){if(t&&"function"!=typeof e&&Array.isArray(e)&&2===e.length){var n,r,[i,s]=e;if((0,o.H)(i))n=i;else if("function"==typeof i)return;if((0,o.H)(s))r=s;else if("function"==typeof s)return;var l=[n,r];if(a(l))return l}}function c(e,t,n){if(n||null!=t){if("function"==typeof e&&null!=t)try{var o=e(t,n);if(a(o))return s(o,t,n)}catch(e){}if(Array.isArray(e)&&2===e.length){var l,c,[u,h]=e;if("auto"===u)null!=t&&(l=Math.min(...t));else if((0,i.Et)(u))l=u;else if("function"==typeof u)try{null!=t&&(l=u(null==t?void 0:t[0]))}catch(e){}else if("string"==typeof u&&r.IH.test(u)){var d=r.IH.exec(u);if(null==d||null==d[1]||null==t)l=void 0;else{var f=+d[1];l=t[0]-f}}else l=null==t?void 0:t[0];if("auto"===h)null!=t&&(c=Math.max(...t));else if((0,i.Et)(h))c=h;else if("function"==typeof h)try{null!=t&&(c=h(null==t?void 0:t[1]))}catch(e){}else if("string"==typeof h&&r.qx.test(h)){var p=r.qx.exec(h);if(null==p||null==p[1]||null==t)c=void 0;else{var m=+p[1];c=t[1]+m}}else c=null==t?void 0:t[1];var g=[l,c];if(a(g))return null==t?g:s(g,t,n)}}}},49643(e,t,n){"use strict";function r(e){return Number.isFinite(e)}function i(e){return"number"==typeof e&&e>0&&Number.isFinite(e)}n.d(t,{F:()=>i,H:()=>r})},51985(e,t,n){"use strict";function r(e){return e}n.d(t,{s:()=>A});var i=n(9600);function o(e){return null==e||"object"!=typeof e&&"function"!=typeof e}function a(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}let s="[object String]",l="[object Number]",c="[object Boolean]",u="[object Arguments]",h="object"==typeof globalThis&&globalThis||"object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof global&&global||function(){return this}();function d(e,t,n,r=new Map,i){let p=i?.(e,t,n,r);if(void 0!==p)return p;if(o(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let o=0;o<e.length;o++)t[o]=d(e[o],o,n,r,i);return Object.hasOwn(e,"index")&&(t.index=e.index),Object.hasOwn(e,"input")&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;for(let[o,a]of(r.set(e,t),e))t.set(o,d(a,o,n,r,i));return t}if(e instanceof Set){let t=new Set;for(let o of(r.set(e,t),e))t.add(d(o,void 0,n,r,i));return t}if(void 0!==h.Buffer&&h.Buffer.isBuffer(e))return e.subarray();if(ArrayBuffer.isView(e)&&!(e instanceof DataView)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let o=0;o<e.length;o++)t[o]=d(e[o],o,n,r,i);return t}if(e instanceof ArrayBuffer||"u">typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,t),f(t,e,n,r,i),t}if("u">typeof File&&e instanceof File){let t=new File([e],e.name,{type:e.type});return r.set(e,t),f(t,e,n,r,i),t}if("u">typeof Blob&&e instanceof Blob){let t=new Blob([e],{type:e.type});return r.set(e,t),f(t,e,n,r,i),t}if(e instanceof Error){let t=structuredClone(e);return r.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,t.constructor=e.constructor,f(t,e,n,r,i),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return r.set(e,t),f(t,e,n,r,i),t}if(e instanceof Number){let t=new Number(e.valueOf());return r.set(e,t),f(t,e,n,r,i),t}if(e instanceof String){let t=new String(e.valueOf());return r.set(e,t),f(t,e,n,r,i),t}if("object"==typeof e&&function(e){switch(a(e)){case u:case"[object Array]":case"[object ArrayBuffer]":case"[object DataView]":case c:case"[object Date]":case"[object Float32Array]":case"[object Float64Array
2]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Map]":case l:case"[object Object]":case"[object RegExp]":case"[object Set]":case s:case"[object Symbol]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return!0;default:return!1}}(e)){let t=Object.create(Object.getPrototypeOf(e));return r.set(e,t),f(t,e,n,r,i),t}return e}function f(e,t,n=e,r,i){let o=[...Object.keys(t),...Object.getOwnPropertySymbols(t).filter(e=>Object.prototype.propertyIsEnumerable.call(t,e))];for(let a=0;a<o.length;a++){let s=o[a],l=Object.getOwnPropertyDescriptor(e,s);(null==l||l.writable)&&(e[s]=d(t[s],s,n,r,i))}}var p=n(24715),m=n(52610);function g(e,t,n,r){if(t===e)return!0;switch(typeof t){case"object":return function(e,t,n,r){if(null==t)return!0;if(Array.isArray(t))return v(e,t,n,r);if(t instanceof Map){var i,a,s,l,c=e,u=t,h=n,d=r;if(0===u.size)return!0;if(!(c instanceof Map))return!1;for(let[e,t]of u.entries())if(!1===h(c.get(e),t,e,c,u,d))return!1;return!0}if(t instanceof Set){return i=e,a=t,s=n,l=r,0===a.size||i instanceof Set&&v([...i],[...a],s,l)}let f=Object.keys(t);if(null==e||o(e))return 0===f.length;if(0===f.length)return!0;if(r?.has(t))return r.get(t)===e;r?.set(t,e);try{for(let i=0;i<f.length;i++){let a=f[i];if(!o(e)&&!(a in e)||void 0===t[a]&&void 0!==e[a]||null===t[a]&&null!==e[a]||!n(e[a],t[a],a,e,t,r))return!1}return!0}finally{r?.delete(t)}}(e,t,n,r);case"function":if(Object.keys(t).length>0)return g(e,{...t},n,r);return(0,p.b)(e,t);default:if(!(0,m.G)(e))return(0,p.b)(e,t);if("string"==typeof t)return""===t;return!0}}function v(e,t,n,r){if(0===t.length)return!0;if(!Array.isArray(e))return!1;let i=new Set;for(let o=0;o<t.length;o++){let a=t[o],s=!1;for(let l=0;l<e.length;l++){if(i.has(l))continue;let c=e[l],u=!1;if(n(c,a,o,e,t,r)&&(u=!0),u){i.add(l),s=!0;break}}if(!s)return!1}return!0}function y(e,t){return function e(t,n,r){return"function"!=typeof r?e(t,n,()=>void 0):g(t,n,function e(t,n,i,o,a,s){let l=r(t,n,i,o,a,s);return void 0!==l?!!l:g(t,n,e,s)},new Map)}(e,t,()=>void 0)}var b=n(21378),x=n(89525),w=n(15015),k=n(66078),S=n(25540);function M(e,t=r){var n;return"object"==typeof e&&null!==e&&(0,S.X)(e)?function(e,t){let n=new Map;for(let r=0;r<e.length;r++){let i=e[r],o=t(i,r,e);n.has(o)||n.set(o,i)}return Array.from(n.values())}(Array.from(e),(n=function(e){var t,n;if(null==e)return r;switch(typeof e){case"function":return e;case"object":if(Array.isArray(e)&&2===e.length)return function(e,t){var n,r,o;switch(typeof e){case"object":Object.is(e?.valueOf(),-0)&&(e="-0");break;case"number":e=(0,b.f)(e)}return r=n=t,o=(e,t,r,i)=>{let o;if(void 0!==o)return o;if("object"==typeof n){if("[object Object]"===a(n)&&"function"!=typeof n.constructor){let e={};return i.set(n,e),f(e,n,r,i),e}switch(Object.prototype.toString.call(n)){case l:case s:case c:{let e=new n.constructor(n?.valueOf());return f(e,n),e}case u:{let e={};return f(e,n),e.length=n.length,e[Symbol.iterator]=n[Symbol.iterator],e}default:return}}},t=d(r,void 0,r,new Map,o),function(n){let r=(0,i.J)(n,e);return void 0===r?function(e,t){let n;if(0===(n=Array.isArray(t)?t:"string"==typeof t&&(0,x.A)(t)&&e?.[t]==null?(0,w.b)(t):[t]).length)return!1;let r=e;for(let e=0;e<n.length;e++){var i;let t=n[e];if((null==r||!Object.hasOwn(r,t))&&!((Array.isArray(r)||null!==(i=r)&&"object"==typeof i&&"[object Arguments]"===a(i))&&(0,k.n)(t)&&t<r.length))return!1;r=r[t]}return!0}(n,e):void 0===t?void 0===r:y(r,t)}}(e[0],e[1]);return t=d(n=t=e,void 0,n,new Map,void 0),e=>y(e,t);case"string":case"symbol":case"number":return function(t){return(0,i.J)(t,e)}}}(t),function(...e){return n.apply(this,e.slice(0,1))})):[]}function A(e,t,n){return!0===t?M(e,n):"function"==typeof t?M(e,t):e}},19575(e,t,n){"use strict";n.d(t,{P:()=>o});var r=n(65485),i=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius","throttledEvents"]);function o(e,t){for(var n of new Set([...Object.keys(e),...Object.keys(t)]))if(i.has(n)){if(null==e[n]&&null==t[n])continue;if(!(0,r.bN)(e[n],t[n]))return!1}else{var o,a;if(o=e[n],a=t[n],(null!=o||null!=a)&&("number"==typeof o&&"number"==typeof a?o!==a&&(o==o||a==a):o!==a))return!1}return!0}},2614(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e,t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?r(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e);return Object.keys(t).reduce((e,n)=>(void 0===e[n]&&void 0!==t[n]&&(e[n]=t[n]),e),n)}n.d(t,{e:()=>i})},98943(e,t,n){"use strict";function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,n=10**t,r=Math.round(e*n)/n;return Object.is(r,-0)?0:r}function i(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return e.reduce((e,t,i)=>{var o=n[i-1];return"string"==typeof o?e+o+t:void 0!==o?e+r(o)+t:e+t},"")}n.d(t,{L:()=>r,Y:()=>i})},72e3(e,t,n){"use strict";function r(e){if(null!=e){var t=e.ticks,n=e.bandwidth,r=e.range(),i=[Math.min(...r),Math.max(...r)];return{domain:()=>e.domain(),range:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(()=>i),rangeMin:()=>i[0],rangeMax:()=>i[1],isInRange(e){var t=i[0],n=i[1];return t<=n?e>=t&&e<=n:e>=n&&e<=t},bandwidth:n?()=>n.call(e):void 0,ticks:t?n=>t.call(e,n):void 0,map:(t,n)=>{var r=e(t);if(null!=r){if(e.bandwidth&&null!=n&&n.position){var i=e.bandwidth();switch(n.position){case"middle":r+=i/2;break;case"end":r+=i}}return r}}}}}n.d(t,{X:()=>r})},35411(e,t,n){"use strict";function r(e){return null==e?void 0:e.id}n.d(t,{x:()=>r})},43646(e,t,n){"use strict";n.d(t,{a:()=>a,y:()=>s});var r=n(50405),i=n(36787),o=n(41514);function a(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&((0,o.Rw)(n)||(0,o.Xc)(n)||(0,i.q)(n))&&(t[n]=e[n]);return t}function s(e){return null==e?null:(0,r.isValidElement)(e)?a(e.props):"object"!=typeof e||Array.isArray(e)?null:a(e)}},41514(e,t,n){"use strict";n.d(t,{Rw:()=>o,Xc:()=>a,ic:()=>l,uZ:()=>s});var r=n(50405),i=new Set(["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"]);function o(e){return"string"==typeof e&&i.has(e)}function a(e){return"string"==typeof e&&e.startsWith("data-")}function s(e){if("object"!=typeof e||null===e)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(o(n)||a(n))&&(t[n]=e[n]);return t}function l(e){return null==e?null:(0,r.isValidElement)(e)&&"object"==typeof e.props&&null!==e.props?s(e.props):"object"!=typeof e||Array.isArray(e)?null:s(e)}},22018(e,t,n){"use strict";n.d(t,{TT:()=>
2o,XC:()=>s,_U:()=>a});var r=n(50405),i=n(36787),o=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,a=(e,t)=>{if(!e||"function"==typeof e||"boolean"==typeof e)return null;var n=e;if((0,r.isValidElement)(e)&&(n=e.props),"object"!=typeof n&&"function"!=typeof n)return null;var o={};return Object.keys(n).forEach(e=>{(0,i.q)(e)&&"function"==typeof n[e]&&(o[e]=t||(t=>n[e](n,t)))}),o},s=(e,t,n)=>{if(null===e||"object"!=typeof e&&"function"!=typeof e)return null;var r=null;return Object.keys(e).forEach(o=>{var a=e[o];(0,i.q)(o)&&"function"==typeof a&&(r||(r={}),r[o]=e=>(a(t,n,e),null))}),r}},11057(e,t,n){"use strict";n.d(t,{n:()=>o});var r=n(50405),i=n(35254);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"animation-",n=(0,r.useRef)((0,i.NF)(t)),o=(0,r.useRef)(e);return o.current!==e&&(n.current=(0,i.NF)(t),o.current=e),n.current}},92909(e,t,n){"use strict";n.d(t,{V:()=>i});var r=n(50405);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],[t,n]=(0,r.useState)({height:0,left:0,top:0,width:0}),i=(0,r.useCallback)(e=>{if(null!=e){var r=e.getBoundingClientRect(),i={height:r.height,left:r.left,top:r.top,width:r.width};(Math.abs(i.height-t.height)>1||Math.abs(i.left-t.left)>1||Math.abs(i.top-t.top)>1||Math.abs(i.width-t.width)>1)&&n({height:i.height,left:i.left,top:i.top,width:i.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,i]}},32485(e,t,n){"use strict";n.d(t,{j:()=>o});var r=n(50405),i=n(36324);function o(){var[e,t]=(0,r.useState)(()=>!i.m.isSsr&&!!window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches);return(0,r.useEffect)(()=>{if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion: reduce)"),n=()=>{t(e.matches)};return e.addEventListener("change",n),()=>{e.removeEventListener("change",n)}}},[]),e}},16026(e,t,n){"use strict";n.d(t,{I:()=>r});var r={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3}},29818(e,t,n){"use strict";n.d(t,{g:()=>u});var r=n(50405),i=n(47868),o=n(33476),a=n(43081),s=n(35012),l=n(13469),c=n(23920);function u(e){var{zIndex:t,children:n}=e,u=(0,l.SG)()&&void 0!==t&&0!==t,h=(0,c.r)(),d=(0,r.useRef)(void 0),f=(0,r.useRef)(new Set),p=(0,o.j)(),m=(0,o.G)(e=>(0,a.h)(e,t,h));if((0,r.useLayoutEffect)(()=>{if(!u){var e=f.current;e.forEach(e=>{p((0,s.ZV)({zIndex:e}))}),e.clear(),d.current=void 0;return}if(f.current.has(t)||(p((0,s.wR)({zIndex:t})),f.current.add(t)),m){d.current=m;var n=f.current;n.forEach(e=>{e!==t&&(p((0,s.ZV)({zIndex:e})),n.delete(e))})}},[p,t,u,m]),(0,r.useLayoutEffect)(()=>{var e=f.current;return()=>{e.forEach(e=>{p((0,s.ZV)({zIndex:e}))}),e.clear()}},[p]),!u)return n;var g=null!=m?m:d.current;return g?(0,i.createPortal)(n,g):null}}
2,43081(e,t,n){"use strict";n.d(t,{I:()=>s,h:()=>a});var r=n(82263),i=n(52402),o=n(16026),a=(0,r.Mz)(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,n)=>n,(e,t,n)=>{if(null!=t){var r=e[t];if(null!=r)return n?r.panoramaElement:r.element}}),s=(0,r.Mz)(e=>e.zIndex.zIndexMap,e=>Array.from(new Set(Object.keys(e).map(e=>parseInt(e,10)).concat(Object.values(o.I)))).sort((e,t)=>e-t),{memoizeOptions:{resultEqualityCheck:i.W}})},41832(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(62099)),i=n(47276);function o(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}o.default=o,e.exports=o},47276(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){var c;return(void 0===t&&(t={}),!(c=e)||i.test(c)||n.test(c))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,l):e.replace(o,l)).replace(r,s))}},62099(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;let r=(0,i.default)(e),o="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;let{property:r,value:i}=e;o?t(r,i,e):i&&((n=n||{})[r]=i)}),n};let i=r(n(83176))},64420(e,t,n){"use strict";var r=n(50405);r.useSyncExternalStore,r.useRef,r.useEffect,r.useMemo,r.useDebugValue},38942(e,t,n){"use strict";n(64420)},82226(e,t,n){"use strict";function r(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function i(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}n.r(t),n.d(t,{scaleDivergingLog:()=>function e(){var t=eZ(n2()).domain([.1,1,10]);return t.copy=function(){return nQ(t,e()).base(t.base())},i.apply(t,arguments)},scalePow:()=>e4,scaleDivergingSqrt:()=>n5,scaleDiverging:()=>function e(){var t=eV(n2()(eS));return t.copy=function(){return nQ(t,e())},i.apply(t,arguments)},scaleOrdinal:()=>c,scalePoint:()=>h,scaleBand:()=>u,scaleQuantize:()=>function e(){var t,n=0,i=1,o=1,a=[.5],s=[0,1];function l(e){return null!=e&&e<=e?s[A(a,e,0,o)]:t}function c(){var e=-1;for(a=Array(o);++e<o;)a[e]=((e+1)*i-(e-o)*n)/(o+1);return l}return l.domain=function(e){return arguments.length?([n,i]=e,n*=1,i*=1,c()):[n,i]},l.range=function(e){return arguments.length?(o=(s=Array.from(e)).length-1,c()):s.slice()},l.invertExtent=function(e){var t=s.indexOf(e);return t<0?[NaN,NaN]:t<1?[n,a[0]]:t>=o?[a[o-1],i]:[a[t-1],a[t]]},l.unknown=function(e){return arguments.length&&(t=e),l},l.thresholds=function(){return a.slice()},l.copy=function(){return e().domain([n,i]).range(s).unknown(t)},r.apply(eV(l),arguments)},scaleSequential:()=>function e(){var t=eV(nJ()(eS));return t.copy=function(){return nQ(t,e())},i.apply(t,arguments)},scaleRadial:()=>function e(){var t,n=eP(),i=[0,1],o=!1;function a(e){var r,i=Math.sign(r=n(e))*Math.sqrt(Math.abs(r));return isNaN(i)?t:o?Math.round(i):i}return a.invert=function(e){return n.invert(e3(e))},a.domain=function(e){return arguments.length?(n.domain(e),a):n.domain()},a.range=function(e){return arguments.length?(n.range((i=Array.from(e,ew)).map(e3)),a):i.slice()},a.rangeRound=function(e){return a.range(e).round(!0)},a.round=function(e){return arguments.length?(o=!!e,a):o},a.clamp=function(e){return arguments.length?(n.clamp(e),a):n.clamp()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.copy=function(){return e(n.domain(),i).round(o).clamp(n.clamp()).unknown(t)},r.apply(a,arguments),eV(a)},scaleSequentialLog:()=>function e(){var t=eZ(nJ()).domain([1,10]);return t.copy=function(){return nQ(t,e()).base(t.base())},i.apply(t,arguments)},scaleSequentialSqrt:()=>n1,scaleSequentialSymlog:()=>function e(){var t=eJ(nJ());return t.copy=function(){return nQ(t,e()).constant(t.constant())},i.apply(t,arguments)},scaleSymlog:()=>function e(){var t=eJ(eO());return t.copy=function(){return eC(t,e()).constant(t.constant())},r.apply(t,arguments)},scaleThreshold:()=>function e(){var t,n=[.5],i=[0,1],o=1;function a(e){return null!=e&&e<=e?i[A(n,e,0,o)]:t}return a.domain=function(e){return arguments.length?(o=Math.min((n=Array.from(e)).length,i.length-1),a):n.slice()},a.range=function(e){return arguments.length?(i=Array.from(e),o=Math.min(n.length,i.length-1),a):i.slice()},a.invertExtent=function(e){var t=i.indexOf(e);return[n[t-1],n[t]]},a.unknown=function(e){return arguments.length?(t=e,a):t},a.copy=function(){return e().domain(n).range(i).unknown(t)},r.apply(a,arguments)},scaleImplicit:()=>l,scaleLog:()=>function e(){let t=eZ(eO()).domain([1,10]);return t.copy=()=>eC(t,e()).base(t.base()),r.apply(t,arguments),t},scaleDivergingSymlog:()=>function e(){var t=eJ(n2());return t.copy=function(){return nQ(t,e()).constant(t.constant())},i.apply(t,arguments)},scaleQuantile:()=>function e(){var t,n=[],i=[],o=[];function a(){var e=0,t=Math.max(1,i.length);for(o=Array(t-1);++e<t;)o[e-1]=function(e,t,n=S){if(!(!(r=e.length)||isNaN(t*=1))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e);return a+(n(e[o+1],o+1,e)-a)*(i-o)}}(n,e/t);return s}function s(e){return null==e||isNaN(e*=1)?t:i[A(o,e)]}return s.invertExtent=function(e){var t=i.indexOf(e);return t<0?[NaN,NaN]:[t>0?o[t-1]:n[0],t<o.length?o[t]:n[n.length-1]]},s.domain=function(e){if(!arguments.length)return n.slice();for(let t of(n=[],e))null==t||isNaN(t*=1)||n.push(t);return n.sort(b),a()},s.range=function(e){return arguments.length?(i=Array.from(e),a()):i.slice()},s.unknown=function(e){return arguments.length?(t=e,s):t},s.quantiles=function(){return o.slice()},s.copy=function(){return e().domain(n).range(i).unknown(t)},r.apply(s,arguments)},scaleDivergingPow:()=>n4,scaleSequentialQuantile:()=>function e(){var t=[],n=eS;function r(e){if(null!=e&&!isNaN(e*=1))return n((A(t,e,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();for(let n of(t=[],e))null==n||isNaN(n*=1)||t.push(n);return t.sort(b),r},r.interpolator=function(e){return arguments.length?(n=e,r):n},r.range=function(){return t.map((e,r)=>n(r/(t.length-1)))},r.quantiles=function(e){return Array.from({length:e+1},(n,r)=>(function(e,t){if(!(!(n=(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t*=1)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r*=1)>=r&&(yield r)}}(e,void 0))).length)||isNaN(t*=1))){if(t<=0||n<2)return e8(e);if(t>=1)return e6(e);var n,r=(n-1)*t,i=Math.floor(r),o=e6((function e(t,n,r=0,i=1/0,o){if(n=Math.floor(n),r=Math.floor(Math.max(0,r)),i=Math.floor(Math.min(t.length-1,i)),!(r<=n&&n<=i))return t;for(o=void 0===o?e9:function(e=b){if(e===b)return e9;if("function"!=typeof e)throw TypeError("compare is not a function");return(t,n)=>{let r=e(t,n);return r||0===r?r:(0===e(n,n))-(0===e(t,t))}}(o);i>r;){if(i-r>600){let a=i-r+1,s=n-r+1,l=Math.log(a),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(a-c)/
2a)*(s-a/2<0?-1:1),h=Math.max(r,Math.floor(n-s*c/a+u)),d=Math.min(i,Math.floor(n+(a-s)*c/a+u));e(t,n,h,d,o)}let a=t[n],s=r,l=i;for(e7(t,r,n),o(t[i],a)>0&&e7(t,r,i);s<l;){for(e7(t,s,l),++s,--l;0>o(t[s],a);)++s;for(;o(t[l],a)>0;)--l}0===o(t[r],a)?e7(t,r,l):e7(t,++l,i),l<=n&&(r=l+1),n<=l&&(i=l-1)}return t})(e,i).subarray(0,i+1));return o+(e8(e.subarray(i+1))-o)*(r-i)}})(t,r/e))},r.copy=function(){return e(n).domain(t)},i.apply(r,arguments)},scaleSqrt:()=>e5,scaleTime:()=>nY,scaleUtc:()=>nX,tickFormat:()=>eF,scaleIdentity:()=>function e(t){var n;function r(e){return null==e||isNaN(e*=1)?n:e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,ew),r):t.slice()},r.unknown=function(e){return arguments.length?(n=e,r):n},r.copy=function(){return e(t).unknown(n)},t=arguments.length?Array.from(t,ew):[0,1],eV(r)},scaleSequentialPow:()=>n0,scaleLinear:()=>function e(){var t=eP();return t.copy=function(){return eC(t,e())},r.apply(t,arguments),eV(t)}});class o extends Map{constructor(e,t=s){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(a(this,e))}has(e){return super.has(a(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}(this,e))}}function a({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function s(e){return null!==e&&"object"==typeof e?e.valueOf():e}let l=Symbol("implicit");function c(){var e=new o,t=[],n=[],i=l;function a(r){let o=e.get(r);if(void 0===o){if(i!==l)return i;e.set(r,o=t.push(r)-1)}return n[o%n.length]}return a.domain=function(n){if(!arguments.length)return t.slice();for(let r of(t=[],e=new o,n))e.has(r)||e.set(r,t.push(r)-1);return a},a.range=function(e){return arguments.length?(n=Array.from(e),a):n.slice()},a.unknown=function(e){return arguments.length?(i=e,a):i},a.copy=function(){return c(t,n).unknown(i)},r.apply(a,arguments),a}function u(){var e,t,n=c().unknown(void 0),i=n.domain,o=n.range,a=0,s=1,l=!1,h=0,d=0,f=.5;function p(){var n=i().length,r=s<a,c=r?s:a,u=r?a:s;e=(u-c)/Math.max(1,n-h+2*d),l&&(e=Math.floor(e)),c+=(u-c-e*(n-h))*f,t=e*(1-h),l&&(c=Math.round(c),t=Math.round(t));var p=(function(e,t,n){e*=1,t*=1,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=Array(i);++r<i;)o[r]=e+r*n;return o})(n).map(function(t){return c+e*t});return o(r?p.reverse():p)}return delete n.unknown,n.domain=function(e){return arguments.length?(i(e),p()):i()},n.range=function(e){return arguments.length?([a,s]=e,a*=1,s*=1,p()):[a,s]},n.rangeRound=function(e){return[a,s]=e,a*=1,s*=1,l=!0,p()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(l=!!e,p()):l},n.padding=function(e){return arguments.length?(h=Math.min(1,d=+e),p()):h},n.paddingInner=function(e){return arguments.length?(h=Math.min(1,e),p()):h},n.paddingOuter=function(e){return arguments.length?(d=+e,p()):d},n.align=function(e){return arguments.length?(f=Math.max(0,Math.min(1,e)),p()):f},n.copy=function(){return u(i(),[a,s]).round(l).paddingInner(h).paddingOuter(d).align(f)},r.apply(p(),arguments)}function h(){return function e(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return e(n())},t}(u.apply(null,arguments).paddingInner(1))}let d=Math.sqrt(50),f=Math.sqrt(10),p=Math.sqrt(2);function m(e,t,n){let r,i,o,a=(t-e)/Math.max(0,n),s=Math.floor(Math.log10(a)),l=a/Math.pow(10,s),c=l>=d?10:l>=f?5:l>=p?2:1;return(s<0?(r=Math.round(e*(o=Math.pow(10,-s)/c)),i=Math.round(t*o),r/o<e&&++r,i/o>t&&--i,o=-o):(r=Math.round(e/(o=Math.pow(10,s)*c)),i=Math.round(t/o),r*o<e&&++r,i*o>t&&--i),i<r&&.5<=n&&n<2)?m(e,t,2*n):[r,i,o]}function g(e,t,n){if(t*=1,e*=1,!((n*=1)>0))return[];if(e===t)return[e];let r=t<e,[i,o,a]=r?m(t,e,n):m(e,t,n);if(!(o>=i))return[];let s=o-i+1,l=Array(s);if(r)if(a<0)for(let e=0;e<s;++e)l[e]=-((o-e)/a);else for(let e=0;e<s;++e)l[e]=(o-e)*a;else if(a<0)for(let e=0;e<s;++e)l[e]=-((i+e)/a);else for(let e=0;e<s;++e)l[e]=(i+e)*a;return l}function v(e,t,n){return m(e*=1,t*=1,n*=1)[2]}function y(e,t,n){t*=1,e*=1,n*=1;let r=t<e,i=r?v(t,e,n):v(e,t,n);return(r?-1:1)*(i<0?-(1/i):i)}function b(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function x(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function w(e){let t,n,r;function i(e,r,o=0,a=e.length){if(o<a){if(0!==t(r,r))return a;
2do{let t=o+a>>>1;0>n(e[t],r)?o=t+1:a=t}while(o<a)}return o}return 2!==e.length?(t=b,n=(t,n)=>b(e(t),n),r=(t,n)=>e(t)-n):(t=e===b||e===x?e:k,n=e,r=e),{left:i,center:function(e,t,n=0,o=e.length){let a=i(e,t,n,o-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,i=0,o=e.length){if(i<o){if(0!==t(r,r))return o;do{let t=i+o>>>1;0>=n(e[t],r)?i=t+1:o=t}while(i<o)}return i}}}function k(){return 0}function S(e){return null===e?NaN:+e}let M=w(b),A=M.right;function E(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function C(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function O(){}M.left,w(S).center;var P,T,D,R,j,I,z,_="\\s*([+-]?\\d+)\\s*",L="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",N="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",B=/^#([0-9a-f]{3,8})$/,F=RegExp(`^rgb\\(${_},${_},${_}\\)$`),V=RegExp(`^rgb\\(${N},${N},${N}\\)$`),H=RegExp(`^rgba\\(${_},${_},${_},${L}\\)$`),W=RegExp(`^rgba\\(${N},${N},${N},${L}\\)$`),$=RegExp(`^hsl\\(${L},${N},${N}\\)$`),U=RegExp(`^hsla\\(${L},${N},${N},${L}\\)$`),K={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function q(){return this.rgb().formatHex()}function G(){return this.rgb().formatRgb()}function Z(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=B.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Y(t):3===n?new Q(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?X(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?X(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=F.exec(e))?new Q(t[1],t[2],t[3],1):(t=V.exec(e))?new Q(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=H.exec(e))?X(t[1],t[2],t[3],t[4]):(t=W.exec(e))?X(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=$.exec(e))?eo(t[1],t[2]/100,t[3]/100,1):(t=U.exec(e))?eo(t[1],t[2]/100,t[3]/100,t[4]):K.hasOwnProperty(e)?Y(K[e]):"transparent"===e?new Q(NaN,NaN,NaN,0):null}function Y(e){return new Q(e>>16&255,e>>8&255,255&e,1)}function X(e,t,n,r){return r<=0&&(e=t=n=NaN),new Q(e,t,n,r)}function J(e,t,n,r){var i;return 1==arguments.length?((i=e)instanceof O||(i=Z(i)),i)?new Q((i=i.rgb()).r,i.g,i.b,i.opacity):new Q:new Q(e,t,n,null==r?1:r)}function Q(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ee(){return`#${ei(this.r)}${ei(this.g)}${ei(this.b)}`}function et(){let e=en(this.opacity);return`${1===e?"rgb(":"rgba("}${er(this.r)}, ${er(this.g)}, ${er(this.b)}${1===e?")":`, ${e})`}`}function en(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function er(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ei(e){return((e=er(e))<16?"0":"")+e.toString(16)}function eo(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new es(e,t,n,r)}function ea(e){if(e instanceof es)return new es(e.h,e.s,e.l,e.opacity);if(e instanceof O||(e=Z(e)),!e)return new es;if(e instanceof es)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+(n<r)*6:n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new es(a,s,l,e.opacity)}function es(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function el(e){return(e=(e||0)%360)<0?e+360:e}function ec(e){return Math.max(0,Math.min(1,e||0))}function eu(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function eh(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}E(O,Z,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:q,formatHex:q,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ea(this).formatHsl()},formatRgb:G,toString:G}
2),E(Q,J,C(O,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new Q(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Q(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Q(er(this.r),er(this.g),er(this.b),en(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ee,formatHex:ee,formatHex8:function(){return`#${ei(this.r)}${ei(this.g)}${ei(this.b)}${ei((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:et,toString:et})),E(es,function(e,t,n,r){return 1==arguments.length?ea(e):new es(e,t,n,null==r?1:r)},C(O,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new es(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new es(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Q(eu(e>=240?e-240:e+120,i,r),eu(e,i,r),eu(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new es(el(this.h),ec(this.s),ec(this.l),en(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=en(this.opacity);return`${1===e?"hsl(":"hsla("}${el(this.h)}, ${100*ec(this.s)}%, ${100*ec(this.l)}%${1===e?")":`, ${e})`}`}}));let ed=e=>()=>e;function ef(e,t){var n=t-e;return n?function(t){return e+t*n}:ed(isNaN(e)?t:e)}let ep=function e(t){var n,r=1==(n=+t)?ef:function(e,t){var r,i,o;return t-e?(r=e,i=t,r=Math.pow(r,o=n),i=Math.pow(i,o)-r,o=1/o,function(e){return Math.pow(r+e*i,o)}):ed(isNaN(e)?t:e)};function i(e,t){var n=r((e=J(e)).r,(t=J(t)).r),i=r(e.g,t.g),o=r(e.b,t.b),a=ef(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return i.gamma=e,i}(1);function em(e){return function(t){var n,r,i=t.length,o=Array(i),a=Array(i),s=Array(i);for(n=0;n<i;++n)r=J(t[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=e(o),a=e(a),s=e(s),r.opacity=1,function(e){return r.r=o(e),r.g=a(e),r.b=s(e),r+""}}}function eg(e,t){return e*=1,t*=1,function(n){return e*(1-n)+t*n}}em(function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return eh((n-r/t)*t,a,i,o,s)}}),em(function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return eh((n-r/t)*t,i,o,a,s)}});var ev=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ey=RegExp(ev.source,"g");function eb(e,t){var n,r,i=typeof t;return null==t||"boolean"===i?ed(t):("number"===i?eg:"string"===i?(r=Z(t))?(t=r,ep):function(e,t){var n,r,i,o,a,s=ev.lastIndex=ey.lastIndex=0,l=-1,c=[],u=[];for(e+="",t+="";(i=ev.exec(e))&&(o=ey.exec(t));)(a=o.index)>s&&(a=t.slice(s,a),c[l]?c[l]+=a:c[++l]=a),(i=i[0])===(o=o[0])?c[l]?c[l]+=o:c[++l]=o:(c[++l]=null,u.push({i:l,x:eg(i,o)})),s=ey.lastIndex;return s<t.length&&(a=t.slice(s),c[l]?c[l]+=a:c[++l]=a),c.length<2?u[0]?(n=u[0].x,function(e){return n(e)+""}):(r=t,function(){return r}):(t=u.length,function(e){for(var n,r=0;r<t;++r)c[(n=u[r]).i]=n.x(e);return c.join("")})}:t instanceof Z?ep:t instanceof Date?function(e,t){var n=new Date;return e*=1,t*=1,function(r){return n.setTime(e*(1-r)+t*r),n}}:!ArrayBuffer.isView(n=t)||n instanceof DataView?Array.isArray(t)?function(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=Array(i),a=Array(r);for(n=0;n<i;++n)o[n]=eb(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<i;++n)a[n]=o[n](e);return a}}:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?function(e,t){var n,r={},i={};for(n in(null===e||"object"!=typeof e)&&(e={}),(null===t||"object"!=typeof t)&&(t={}),t)n in e?r[n]=eb(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}:eg:function(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(n=0;n<r;++n)i[n]=e[n]*(1-o)+t[n]*o;return i}})(e,t)}function ex(e,t){return e*=1,t*=1,function(n){return Math.round(e*(1-n)+t*n)}}function ew(e){return+e}var ek=[0,1];function eS(e){return e}function eM(e,t){var n;return(t-=e*=1)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n})}function eA(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=eM(i,r),o=n(a,o)):(r=eM(r,i),o=n(o,a)),function(e){return o(r(e))}}
2function eE(e,t,n){var r=Math.min(e.length,t.length)-1,i=Array(r),o=Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=eM(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(t){var n=A(e,t,1,r)-1;return o[n](i[n](t))}}function eC(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function eO(){var e,t,n,r,i,o,a=ek,s=ek,l=eb,c=eS;function u(){var e,t,n,l=Math.min(a.length,s.length);return c!==eS&&(e=a[0],t=a[l-1],e>t&&(n=e,e=t,t=n),c=function(n){return Math.max(e,Math.min(t,n))}),r=l>2?eE:eA,i=o=null,h}function h(t){return null==t||isNaN(t*=1)?n:(i||(i=r(a.map(e),s,l)))(e(c(t)))}return h.invert=function(n){return c(t((o||(o=r(s,a.map(e),eg)))(n)))},h.domain=function(e){return arguments.length?(a=Array.from(e,ew),u()):a.slice()},h.range=function(e){return arguments.length?(s=Array.from(e),u()):s.slice()},h.rangeRound=function(e){return s=Array.from(e),l=ex,u()},h.clamp=function(e){return arguments.length?(c=!!e||eS,u()):c!==eS},h.interpolate=function(e){return arguments.length?(l=e,u()):l},h.unknown=function(e){return arguments.length?(n=e,h):n},function(n,r){return e=n,t=r,u()}}function eP(){return eO()(eS,eS)}var eT=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function eD(e){var t;if(!(t=eT.exec(e)))throw Error("invalid format: "+e);return new eR({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function eR(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function ej(e,t){if(!isFinite(e)||0===e)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function eI(e){return(e=ej(Math.abs(e)))?e[1]:NaN}function ez(e,t){var n=ej(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+Array(i-r.length+2).join("0")}eD.prototype=eR.prototype,eR.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};let e_={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>ez(100*e,t),r:ez,s:function(e,t){var n=ej(e,t);if(!n)return P=void 0,e.toPrecision(t);var r=n[0],i=n[1],o=i-(P=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+Array(1-o).join("0")+ej(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function eL(e){return e}var eN=Array.prototype.map,eB=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function eF(e,t,n,r){var i,o,a=y(e,t,n);switch((r=eD(null==r?",f":r)).type){case"s":var s=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(eI(s)/3)))-eI(Math.abs(a))))||(r.precision=o),R(r,s);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=Math.max(0,eI(Math.abs(Math.max(Math.abs(e),Math.abs(t)))-(i=Math.abs(i=a)))-eI(i))+1)||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=Math.max(0,-eI(Math.abs(a))))||(r.precision=o-("%"===r.type)*2)}return D(r)}function eV(e){var t=e.domain;return e.ticks=function(e){var n=t();return g(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return eF(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,i,o=t(),a=0,s=o.length-1,l=o[a],c=o[s],u=10;for(c<l&&(i=l,l=c,c=i,i=a,a=s,s=i);u-- >0;){if((i=v(l,c,n))===r)return o[a]=l,o[s]=c,t(o);if(i>0)l=Math.floor(l/i)*i,c=Math.ceil(c/i)*i;else if(i<0)l=Math.ceil(l*i)/i,c=Math.floor(c*i)/i;else break;r=i}return e},e}function eH(e,t){e=e.slice();var n,r=0,i=e.length-1,o=e[r],a=e[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),e[r]=t.floor(o),e[i]=t.ceil(a),e}function eW(e){return Math.log(e)}function e$(e){return Math.exp(e)}function eU(e){return-Math.log(-e)}function eK(e){return-Math.exp(-e)}function eq(e){return isFinite(e)?+("1e"+e):e<0?0:e}function eG(e){return(t,n)=>-e(-t,n)}function eZ(e){let t,n,r=e(eW,e$),i=r.domain,o=10;function a(){var a,s;return t=(a=o)===Math.E?Math.log:10===a&&Math.log10||2===a&&Math.log2||(a=Math.log(a),e=>Math.log(e)/a),n=10===(s=o)?eq:s===Math.E?Math.exp:e=>Math.pow(s,e),i()[0]<0?(t=eG(t),n=eG(n),e(eU,eK)):e(eW,e$),r}
2return r.base=function(e){return arguments.length?(o=+e,a()):o},r.domain=function(e){return arguments.length?(i(e),a()):i()},r.ticks=e=>{let r,a,s=i(),l=s[0],c=s[s.length-1],u=c<l;u&&([l,c]=[c,l]);let h=t(l),d=t(c),f=null==e?10:+e,p=[];if(!(o%1)&&d-h<f){if(h=Math.floor(h),d=Math.ceil(d),l>0){for(;h<=d;++h)for(r=1;r<o;++r)if(!((a=h<0?r/n(-h):r*n(h))<l)){if(a>c)break;p.push(a)}}else for(;h<=d;++h)for(r=o-1;r>=1;--r)if(!((a=h>0?r/n(-h):r*n(h))<l)){if(a>c)break;p.push(a)}2*p.length<f&&(p=g(l,c,f))}else p=g(h,d,Math.min(d-h,f)).map(n);return u?p.reverse():p},r.tickFormat=(e,i)=>{if(null==e&&(e=10),null==i&&(i=10===o?"s":","),"function"!=typeof i&&(o%1||null!=(i=eD(i)).precision||(i.trim=!0),i=D(i)),e===1/0)return i;let a=Math.max(1,o*e/r.ticks().length);return e=>{let r=e/n(Math.round(t(e)));return r*o<o-.5&&(r*=o),r<=a?i(e):""}},r.nice=()=>i(eH(i(),{floor:e=>n(Math.floor(t(e))),ceil:e=>n(Math.ceil(t(e)))})),r}function eY(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function eX(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function eJ(e){var t=1,n=e(eY(1),eX(t));return n.constant=function(n){return arguments.length?e(eY(t=+n),eX(t)):t},eV(n)}function eQ(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function e0(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function e1(e){return e<0?-e*e:e*e}function e2(e){var t=e(eS,eS),n=1;return t.exponent=function(t){return arguments.length?1==(n=+t)?e(eS,eS):.5===n?e(e0,e1):e(eQ(n),eQ(1/n)):n},eV(t)}function e4(){var e=e2(eO());return e.copy=function(){return eC(e,e4()).exponent(e.exponent())},r.apply(e,arguments),e}function e5(){return e4.apply(null,arguments).exponent(.5)}function e3(e){return Math.sign(e)*e*e}function e6(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n<t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function e8(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function e9(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:+(e>t))}function e7(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}D=(T=function(e){var t,n,r,i=void 0===e.grouping||void 0===e.thousands?eL:(t=eN.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",a=void 0===e.currency?"":e.currency[1]+"",s=void 0===e.decimal?".":e.decimal+"",l=void 0===e.numerals?eL:(r=eN.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return r[+e]})}),c=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"−":e.minus+"",h=void 0===e.nan?"NaN":e.nan+"";function d(e,t){var n=(e=eD(e)).fill,r=e.align,d=e.sign,f=e.symbol,p=e.zero,m=e.width,g=e.comma,v=e.precision,y=e.trim,b=e.type;"n"===b?(g=!0,b="g"):e_[b]||(void 0===v&&(v=12),y=!0,b="g"),(p||"0"===n&&"="===r)&&(p=!0,n="0",r="=");var x=(t&&void 0!==t.prefix?t.prefix:"")+("$"===f?o:"#"===f&&/[boxX]/.test(b)?"0"+b.toLowerCase():""),w=("$"===f?a:/[%p]/.test(b)?c:"")+(t&&void 0!==t.suffix?t.suffix:""),k=e_[b],S=/[defgprs%]/.test(b);function M(e){var t,o,a,c=x,f=w;if("c"===b)f=k(e)+f,e="";else{var M=(e*=1)<0||1/e<0;
2if(e=isNaN(e)?h:k(Math.abs(e),v),y&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),M&&0==+e&&"+"!==d&&(M=!1),c=(M?"("===d?d:u:"-"===d||"("===d?"":d)+c,f=("s"!==b||isNaN(e)||void 0===P?"":eB[8+P/3])+f+(M&&"("===d?")":""),S){for(t=-1,o=e.length;++t<o;)if(48>(a=e.charCodeAt(t))||a>57){f=(46===a?s+e.slice(t+1):e.slice(t))+f,e=e.slice(0,t);break}}}g&&!p&&(e=i(e,1/0));var A=c.length+e.length+f.length,E=A<m?Array(m-A+1).join(n):"";switch(g&&p&&(e=i(E+e,E.length?m-f.length:1/0),E=""),r){case"<":e=c+e+f+E;break;case"=":e=c+E+e+f;break;case"^":e=E.slice(0,A=E.length>>1)+c+e+f+E.slice(A);break;default:e=E+c+e+f}return l(e)}return v=void 0===v?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),M.toString=function(){return e+""},M}return{format:d,formatPrefix:function(e,t){var n=3*Math.max(-8,Math.min(8,Math.floor(eI(t)/3))),r=Math.pow(10,-n),i=d(((e=eD(e)).type="f",e),{suffix:eB[8+n/3]});return function(e){return i(r*e)}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,R=T.formatPrefix;let te=new Date,tt=new Date;function tn(e,t,n,r){function i(t){return e(t=0==arguments.length?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{let t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),i.range=(n,r,o)=>{let a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r)||!(o>0))return s;do s.push(a=new Date(+n)),t(n,o),e(n);while(a<n&&n<r);return s},i.filter=n=>tn(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}),n&&(i.count=(t,r)=>(te.setTime(+t),tt.setTime(+r),e(te),e(tt),Math.floor(n(te,tt))),i.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?i.filter(r?t=>r(t)%e==0:t=>i.count(0,t)%e==0):i:null),i}let tr=tn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);tr.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?tn(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):tr:null,tr.range;let ti=tn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+1e3*t)},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds());ti.range;let to=tn(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getMinutes());to.range;let ta=tn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes());ta.range;let ts=tn(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getHours());ts.range;let tl=tn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getUTCHours());tl.range;let tc=tn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5,e=>e.getDate()-1);tc.range;let tu=tn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>e.getUTCDate()-1);tu.range;let th=tn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>Math.floor(e/864e5));function td(e){return tn(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+7*t)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/6048e5)}th.range;let tf=td(0),tp=td(1),tm=td(2),tg=td(3),tv=td(4),ty=td(5),tb=td(6);function tx(e){return tn(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)},(e,t)=>(t-e)/6048e5)}tf.range,tp.range,tm.range,tg.range,tv.range,ty.range,tb.range;let tw=tx(0),tk=tx(1),tS=tx(2),tM=tx(3),tA=tx(4),tE=tx(5),tC=tx(6);tw.range,tk.range,tS.range,tM.range,tA.range,tE.range,tC.range;let tO=tn(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());tO.range;let tP=tn(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());tP.range;let tT=tn(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());tT.every=e=>isFinite(e=Math.floor(e))&&e>0?tn(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}):null,tT.range;let tD=tn(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());function tR(e,t,n,r,i,o){let a=[[ti,1,1e3],[ti,5,5e3],[ti,15,15e3],[ti,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,31536e6]];function s(t,n,r){let i=Math.abs(n-t)/r,o=w(([,,e])=>e).right(a,i);if(o===a.length)return e.every(y(t/31536e6,n/31536e6,r));if(0===o)return tr.every(Math.max(y(t,n,r),1));let[s,l]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return s.every(l)}return[function(e,t,n){let r=t<e;r&&([e,t]=[t,e]);let i=n&&"function"==typeof n.range?n:s(e,t,n),o=i?i.range(e,+t+1):[];return r?o.reverse():o},s]}tD.every=e=>isFinite(e=Math.floor(e))&&e>0?tn(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null,tD.range;let[tj,tI]=tR(tD,tP,tw,th,tl,ta),[tz,t_]=tR(tT,tO,tf,tc,ts,to);function tL(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function tN(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function tB(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var tF={"-":"",_:" ",0:"0"},tV=/^\s*\d+/,tH=/^%/,tW=/[\\^$*+?|[\]().{}]/g;function t$(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?Array(n-o+1).join(t)+i:i)}function tU(e){return e.replace(tW,"\\$&")}function tK(e){return RegExp("^(?:"+e.map(tU).join("|")+")","i")}function tq(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function tG(e,t,n){var r=tV.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function tZ(e,t,n){var r=tV.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function tY(e,t,n){var r=tV.exec(t.slice(n,n+2));
vendor: 4,128 bytes, line 2
2return r?(e.U=+r[0],n+r[0].length):-1}function tX(e,t,n){var r=tV.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function tJ(e,t,n){var r=tV.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function tQ(e,t,n){var r=tV.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function t0(e,t,n){var r=tV.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function t1(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function t2(e,t,n){var r=tV.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function t4(e,t,n){var r=tV.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function t5(e,t,n){var r=tV.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function t3(e,t,n){var r=tV.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function t6(e,t,n){var r=tV.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function t8(e,t,n){var r=tV.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function t9(e,t,n){var r=tV.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function t7(e,t,n){var r=tV.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function ne(e,t,n){var r=tV.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function nt(e,t,n){var r=tH.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function nn(e,t,n){var r=tV.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function nr(e,t,n){var r=tV.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function ni(e,t){return t$(e.getDate(),t,2)}function no(e,t){return t$(e.getHours(),t,2)}function na(e,t){return t$(e.getHours()%12||12,t,2)}function ns(e,t){return t$(1+tc.count(tT(e),e),t,3)}function nl(e,t){return t$(e.getMilliseconds(),t,3)}function nc(e,t){return nl(e,t)+"000"}function nu(e,t){return t$(e.getMonth()+1,t,2)}function nh(e,t){return t$(e.getMinutes(),t,2)}function nd(e,t){return t$(e.getSeconds(),t,2)}function nf(e){var t=e.getDay();return 0===t?7:t}function np(e,t){return t$(tf.count(tT(e)-1,e),t,2)}function nm(e){var t=e.getDay();return t>=4||0===t?tv(e):tv.ceil(e)}function ng(e,t){return e=nm(e),t$(tv.count(tT(e),e)+(4===tT(e).getDay()),t,2)}function nv(e){return e.getDay()}function ny(e,t){return t$(tp.count(tT(e)-1,e),t,2)}function nb(e,t){return t$(e.getFullYear()%100,t,2)}function nx(e,t){return t$((e=nm(e)).getFullYear()%100,t,2)}function nw(e,t){return t$(e.getFullYear()%1e4,t,4)}function nk(e,t){var n=e.getDay();return t$((e=n>=4||0===n?tv(e):tv.ceil(e)).getFullYear()%1e4,t,4)}function nS(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+t$(t/60|0,"0",2)+t$(t%60,"0",2)}function nM(e,t){return t$(e.getUTCDate(),t,2)}function nA(e,t){return t$(e.getUTCHours(),t,2)}function nE(e,t){return t$(e.getUTCHours()%12||12,t,2)}function nC(e,t){return t$(1+tu.count(tD(e),e),t,3)}function nO(e,t){return t$(e.getUTCMilliseconds(),t,3)}function nP(e,t){return nO(e,t)+"000"}function nT(e,t){return t$(e.getUTCMonth()+1,t,2)}function nD(e,t){return t$(e.getUTCMinutes(),t,2)}function nR(e,t){return t$(e.getUTCSeconds(),t,2)}function nj(e){var t=e.getUTCDay();return 0===t?7:t}function nI(e,t){return t$(tw.count(tD(e)-1,e),t,2)}function nz(e){var t=e.getUTCDay();return t>=4||0===t?tA(e):tA.ceil(e)}function n_(e,t){return e=nz(e),t$(tA.count(tD(e),e)+(4===tD(e).getUTCDay()),t,2)}function nL(e){return e.getUTCDay()}function nN(e,t){return t$(tk.count(tD(e)-1,e),t,2)}function nB(e,t){return t$(e.getUTCFullYear()%100,t,2)}function nF(e,t){return t$((e=nz(e)).getUTCFullYear()%100,t,2)}function nV(e,t){return t$(e.getUTCFullYear()%1e4,t,4)}function nH(e,t){var n=e.getUTCDay();return t$((e=n>=4||0===n?tA(e):tA.ceil(e)).getUTCFullYear()%1e4,t,4)}function nW(){return"+0000"}function n$(){return"%"}function nU(e){return+e}function nK(e){return Math.floor(e/1e3)}function nq(e){return new Date(e)}function nG(e){return e instanceof Date?+e:+new Date(+e)}function nZ(e,t,n,r,i,o,a,s,l,c){var u=eP(),h=u.invert,d=u.domain,f=c(".%L"),p=c(":%S"),m=c("%I:%M"),g=c("%I %p"),v=c("%a %d"),y=c("%b %
2d"),b=c("%B"),x=c("%Y");function w(e){return(l(e)<e?f:s(e)<e?p:a(e)<e?m:o(e)<e?g:r(e)<e?i(e)<e?v:y:n(e)<e?b:x)(e)}return u.invert=function(e){return new Date(h(e))},u.domain=function(e){return arguments.length?d(Array.from(e,nG)):d().map(nq)},u.ticks=function(t){var n=d();return e(n[0],n[n.length-1],null==t?10:t)},u.tickFormat=function(e,t){return null==t?w:c(t)},u.nice=function(e){var n=d();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?d(eH(n,e)):u},u.copy=function(){return eC(u,nZ(e,t,n,r,i,o,a,s,l,c))},u}function nY(){return r.apply(nZ(tz,t_,tT,tO,tf,tc,ts,to,ti,I).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function nX(){return r.apply(nZ(tj,tI,tD,tP,tw,tu,tl,ta,ti,z).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function nJ(){var e,t,n,r,i,o=0,a=1,s=eS,l=!1;function c(t){return null==t||isNaN(t*=1)?i:s(0===n?.5:(t=(r(t)-e)*n,l?Math.max(0,Math.min(1,t)):t))}function u(e){return function(t){var n,r;return arguments.length?([n,r]=t,s=e(n,r),c):[s(0),s(1)]}}return c.domain=function(i){return arguments.length?([o,a]=i,e=r(o*=1),t=r(a*=1),n=e===t?0:1/(t-e),c):[o,a]},c.clamp=function(e){return arguments.length?(l=!!e,c):l},c.interpolator=function(e){return arguments.length?(s=e,c):s},c.range=u(eb),c.rangeRound=u(ex),c.unknown=function(e){return arguments.length?(i=e,c):i},function(i){return r=i,e=i(o),t=i(a),n=e===t?0:1/(t-e),c}}function nQ(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function n0(){var e=e2(nJ());return e.copy=function(){return nQ(e,n0()).exponent(e.exponent())},i.apply(e,arguments)}function n1(){return n0.apply(null,arguments).exponent(.5)}function n2(){var e,t,n,r,i,o,a,s=0,l=.5,c=1,u=1,h=eS,d=!1;function f(e){return isNaN(e*=1)?a:(e=.5+((e=+o(e))-t)*(u*e<u*t?r:i),h(d?Math.max(0,Math.min(1,e)):e))}function p(e){return function(t){var n,r,i;return arguments.length?([n,r,i]=t,h=function(e,t){void 0===t&&(t=e,e=eb);for(var n=0,r=t.length-1,i=t[0],o=Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return o[t](e-t)}}(e,[n,r,i]),f):[h(0),h(.5),h(1)]}}return f.domain=function(a){return arguments.length?([s,l,c]=a,e=o(s*=1),t=o(l*=1),n=o(c*=1),r=e===t?0:.5/(t-e),i=t===n?0:.5/(n-t),u=t<e?-1:1,f):[s,l,c]},f.clamp=function(e){return arguments.length?(d=!!e,f):d},f.interpolator=function(e){return arguments.length?(h=e,f):h},f.range=p(eb),f.rangeRound=p(ex),f.unknown=function(e){return arguments.length?(a=e,f):a},function(a){return o=a,e=a(s),t=a(l),n=a(c),r=e===t?0:.5/(t-e),i=t===n?0:.5/(n-t),u=t<e?-1:1,f}}function n4(){var e=e2(n2());return e.copy=function(){return nQ(e,n4()).exponent(e.exponent())},i.apply(e,arguments)}function n5(){return n4.apply(null,arguments).exponent(.5)}I=(j=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=tK(i),u=tq(i),h=tK(o),d=tq(o),f=tK(a),p=tq(a),m=tK(s),g=tq(s),v=tK(l),y=tq(l),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:ni,e:ni,f:nc,g:nx,G:nk,H:no,I:na,j:ns,L:nl,m:nu,M:nh,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:nU,s:nK,S:nd,u:nf,U:np,V:ng,w:nv,W:ny,x:null,X:null,y:nb,Y:nw,Z:nS,"%":n$},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:nM,e:nM,f:nP,g:nF,G:nH,H:nA,I:nE,j:nC,L:nO,m:nT,M:nD,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:nU,s:nK,S:nR,u:nj,U:nI,V:n_,w:nL,W:nN,x:null,X:null,y:nB,Y:nV,Z:nW,"%":n$},w={a:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return M(e,t,n,r)},d:t5,e:t5,f:ne,g:t0,G:tQ,H:t6,I:t6,j:t3,L:t7,m:t4,M:t8,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:t2,Q:nn,s:nr,S:t9,u:tZ,U:tY,V:tX,w:tG,W:tJ,x:function(e,t,r){return M(e,n,t,r)},X:function(e,t,n){return M(e,r,t,n)},y:t0,Y:tQ,Z:t1,"%":nt};function k(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(i=tF[r=e.charAt(++s)])?r=e.charAt(++s):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function S(e,t){return function(n){var r,i,o=tB(1900,void 0,1);if(M(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(!t||"Z"in o||(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){
2if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(r=(i=(r=tN(tB(o.y,0,1))).getUTCDay())>4||0===i?tk.ceil(r):tk(r),r=tu.offset(r,(o.V-1)*7),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=(i=(r=tL(tB(o.y,0,1))).getDay())>4||0===i?tp.ceil(r):tp(r),r=tc.offset(r,(o.V-1)*7),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:+("W"in o)),i="Z"in o?tN(tB(o.y,0,1)).getUTCDay():tL(tB(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,tN(o)):tL(o)}}function M(e,t,n,r){for(var i,o,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return -1;if(37===(i=t.charCodeAt(a++))){if(!(o=w[(i=t.charAt(a++))in tF?t.charAt(a++):i])||(r=o(e,n,r))<0)return -1}else if(i!=n.charCodeAt(r++))return -1}return r}return b.x=k(n,b),b.X=k(r,b),b.c=k(t,b),x.x=k(n,x),x.X=k(r,x),x.c=k(t,x),{format:function(e){var t=k(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=k(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,j.parse,z=j.utcFormat,j.utcParse},15115(e,t,n){"use strict";n.d(t,{Bc:()=>et,OO:()=>es,wm:()=>Z,yU:()=>ea});var r=n(3708),i=n(2749),o=n(31051);class a{constructor(e,t,n,r){this.state=e,this.pos=t,this.explicit=n,this.view=r,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(e){let t=(0,o.mv)(this.state).resolveInner(this.pos,-1);for(;t&&0>e.indexOf(t.name);)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),r=t.text.slice(n-t.from,this.pos-t.from),i=r.search(u(e,!1));return i<0?null:{from:n+i,to:this.pos,text:r.slice(i)}}get aborted(){return null==this.abortListeners}addEventListener(e,t,n){"abort"==e&&this.abortListeners&&(this.abortListeners.push(t),n&&n.onDocChange&&(this.abortOnDocChange=!0))}}function s(e){let t=Object.keys(e).join(""),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,"")),`[${n?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}class l{constructor(e,t,n,r){this.completion=e,this.source=t,this.match=n,this.score=r}}function c(e){return e.selection.main.from}function u(e,t){var n;let{source:r}=e,i=t&&"^"!=r[0],o="$"!=r[r.length-1];return i||o?RegExp(`${i?"^":""}(?:${r})${o?"$":""}`,null!=(n=e.flags)?n:e.ignoreCase?"i":""):e}let h=r.YH.define(),d=new WeakMap;function f(e){if(!Array.isArray(e))return e;let t=d.get(e);return t||d.set(e,t=function(e){let t=e.map(e=>"string"==typeof e?{label:e}:e),[n,r]=t.every(e=>/^\w+$/.test(e.label))?[/\w*$/,/\w+$/]:function(e){let t=Object.create(null),n=Object.create(null);for(let{label:r}of e){t[r[0]]=!0;for(let e=1;e<r.length;e++)n[r[e]]=!0}let r=s(t)+s(n)+"*$";return[RegExp("^"+r),new RegExp(r)]}(t);return e=>{let i=e.matchBefore(r);return i||e.explicit?{from:i?i.from:e.pos,options:t,validFor:n}:null}}(e)),t}let p=r.Pe.define(),m=r.Pe.define();class g{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t<e.length;){let n=(0,r.vS)(e,t),i=(0,r.Fh)(n);this.chars.push(n);let o=e.slice(t,t+i),a=o.toUpperCase();this.folded.push((0,r.vS)(a==o?o.toLowerCase():a,0)),t+=i}this.astral=e.length!=this.chars.length}ret(e,t){return this.score=e,this.matched=t,this}match(e){if(0==this.pattern.length)return this.ret(-100,[]);if(e.length<this.pattern.length)return null;let{chars:t,folded:n,any:i,precise:o,byWord:a}=this;if(1==t.length){let i=(0,r.vS)(e,0),o=(0,r.Fh)(i),a=o==e.length?0:-100;if(i==t[0]);else{if(i!=n[0])return null;a+=-200}return this.ret(a,[0,o])}let s=e.indexOf(this.pattern);if(0==s)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let l=t.length,c=0;if(s<0){for(let o=0,a=Math.min(e.length,200);o<a&&c<l;){let a=(0,r.vS)(e,o);(a==t[c]||a==n[c])&&(i[c++]=o),o+=(0,r.Fh)(a)}if(c<l)return null}let u=0,h=0,d=!1,f=0,p=-1,m=-1,g=/[a-z]/.test(e),v=!0;for(let i=0,c=Math.min(e.length,200),y=0;i<c&&h<l;){let c=(0,r.vS)(e,i);s<0&&(u<l&&c==t[u]&&(o[u++]=i),f<l&&(c==t[f]||c==n[f]?(0==f&&(p=i),m=i+1,f++):f=0));let b,x=c<255?c>=48&&c<=57||c>=97&&c<=122?2:+(c>=65&&c<=90):(b=(0,r.MK)(c))!=b.toLowerCase()?1:2*(b!=b.toUpperCase());(!i||1==x&&g||0==y&&0!=x)&&(t[h]==c||n[h]==c&&(d=!0)?a[h++]=i:a.length&&(v=!1)),y=x,i+=(0,r.Fh)(c)}return h==l&&0==a[0]&&v?this.result(-100+(d?-200:0),a,e):f==l&&0==p?this.ret(-200-e.length+(m==e.length?0:-100),[0,m]):s>-1?this.ret(-700-e.length,[s,s+this.pattern.length]):f==l?this.ret(-900-e.length,[p,m]):h==l?this.result(-100+(d?-200:0)+-700+(v?0:-1100),a,e):2==t.length?null:this.result((i[0]?-700:0)+-200+-1100,i,e)}result(e,t,n){let i=[],o=0;for(let e of t){let t=e+(this.astral?(0,r.Fh)((0,r.vS)(n,e)):1);o&&i[o-1]==e?i[o-1]=t:(i[o++]=e,i[o++]=t)}return this.ret(e-n.length,i)}}class v{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length<this.pattern.length)return null;let t=e.slice(0,this.pattern.length),n=t==this.pattern?0:t.toLowerCase()==this.folded?-200:null;return null==n?null:(this.matched=[0,t.length],this.score=n+(e.length==this.pattern.length?0:-100),this)}}let y=r.sj.define({combine:e=>(0,r.QR)(e,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:x,filterStrict:!1,compareCompletions:(e,t)=>
vendor: 4,614 bytes, line 2
2(e.sortText||e.label).localeCompare(t.sortText||t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>n=>b(e(n),t(n)),optionClass:(e,t)=>n=>b(e(n),t(n)),addToOptions:(e,t)=>e.concat(t),filterStrict:(e,t)=>e||t})});function b(e,t){return e?t?e+" "+t:e:t}function x(e,t,n,r,o,a){let s=e.textDirection==i.OP.RTL,l=s,c=!1,u="top",h,d,f=t.left-o.left,p=o.right-t.right,m=r.right-r.left,g=r.bottom-r.top;if(l&&f<Math.min(m,p)?l=!1:!l&&p<Math.min(m,f)&&(l=!0),m<=(l?f:p))h=Math.max(o.top,Math.min(n.top,o.bottom-g))-t.top,d=Math.min(400,l?f:p);else{c=!0,d=Math.min(400,(s?t.right:o.right-t.left)-30);let e=o.bottom-t.bottom;e>=g||e>t.top?h=n.bottom-t.top:(u="bottom",h=t.bottom-n.top)}let v=(t.bottom-t.top)/a.offsetHeight,y=(t.right-t.left)/a.offsetWidth;return{style:`${u}: ${h/v}px; max-width: ${d/y}px`,class:"cm-completionInfo-"+(c?s?"left-narrow":"right-narrow":l?"left":"right")}}let w=r.Pe.define();function k(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let e=Math.floor(t/n);return{from:e*n,to:(e+1)*n}}let r=Math.ceil((e-t)/n);return{from:e-r*n,to:e-(r-1)*n}}class S{constructor(e,t,n){this.view=e,this.stateField=t,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:e=>this.placeInfo(e),key:this},this.space=null,this.currentClass="";let r=e.state.field(t),{options:i,selected:o}=r.open,a=e.state.facet(y);this.optionContent=function(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(e){let t=document.createElement("div");return t.classList.add("cm-completionIcon"),e.type&&t.classList.add(...e.type.split(/\s+/g).map(e=>"cm-completionIcon-"+e)),t.setAttribute("aria-hidden","true"),t},position:20}),t.push({render(e,t,n,r){let i=document.createElement("span");i.className="cm-completionLabel";let o=e.displayLabel||e.label,a=0;for(let e=0;e<r.length;){let t=r[e++],n=r[e++];t>a&&i.appendChild(document.createTextNode(o.slice(a,t)));let s=i.appendChild(document.createElement("span"));s.appendChild(document.createTextNode(o.slice(t,n))),s.className="cm-completionMatchedText",a=n}return a<o.length&&i.appendChild(document.createTextNode(o.slice(a))),i},position:50},{render(e){if(!e.detail)return null;let t=document.createElement("span");return t.className="cm-completionDetail",t.textContent=e.detail,t},position:80}),t.sort((e,t)=>e.position-t.position).map(e=>e.render)}(a),this.optionClass=a.optionClass,this.tooltipClass=a.tooltipClass,this.range=k(i.length,o,a.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",n=>{let{options:r}=e.state.field(t).open;for(let t=n.target,i;t&&t!=this.dom;t=t.parentNode)if("LI"==t.nodeName&&(i=/-(\d+)$/.exec(t.id))&&+i[1]<r.length){this.applyCompletion(e,r[+i[1]]),n.preventDefault();return}if(n.target==this.list){let t=this.list.classList.contains("cm-completionListIncompleteTop")&&n.clientY<this.list.firstChild.getBoundingClientRect().top?this.range.from-1:this.list.classList.contains("cm-completionListIncompleteBottom")&&n.clientY>this.list.lastChild.getBoundingClientRect().bottom?this.range.to:null;null!=t&&(e.dispatch({effects:w.of(t)}),n.preventDefault())}}),this.dom.addEventListener("focusout",t=>{let n=e.state.field(this.stateField,!1);n&&n.tooltip&&e.state.facet(y).closeOnBlur&&t.relatedTarget!=e.contentDOM&&e.dispatch({effects:m.of(null)})}),this.showOptions(i,r.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var t;let n=e.state.field(this.stateField),r=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),n!=r){let{options:i,selected:o,disabled:a}=n.open;r.open&&r.open.options==i||(this.range=k(i.length,o,e.state.facet(y).maxRenderedOptions),this.showOptions(i,n.id)),this.updateSel(),a!=(null==(t=r.open)?void 0:t.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!a)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let e of this.currentClass.split(" "))e&&this.dom.classList.remove(e);for(let e of t.split(" "))e&&this.dom.classList.add(e);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;(t.selected>-1&&t.selected<this.range.from||t.selected>
2=this.range.to)&&(this.range=k(t.options.length,t.selected,this.view.state.facet(y).maxRenderedOptions),this.showOptions(t.options,e.id));let n=this.updateSelectedOption(t.selected);if(n){this.destroyInfo();let{completion:r}=t.options[t.selected],{info:o}=r;if(!o)return;let a="string"==typeof o?document.createTextNode(o):o(r);if(!a)return;"then"in a?a.then(t=>{t&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(t,r)}).catch(e=>(0,i.c_)(this.view.state,e,"completion info")):(this.addInfoPane(a,r),n.setAttribute("aria-describedby",this.info.id))}}addInfoPane(e,t){this.destroyInfo();let n=this.info=document.createElement("div");if(n.className="cm-tooltip cm-completionInfo",n.id="cm-completionInfo-"+Math.floor(65535*Math.random()).toString(16),null!=e.nodeType)n.appendChild(e),this.infoDestroy=null;else{let{dom:t,destroy:r}=e;n.appendChild(t),this.infoDestroy=r||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){var t,n;let r,i,o,a=null;for(let t=this.list.firstChild,n=this.range.from;t;t=t.nextSibling,n++)"LI"==t.nodeName&&t.id?n==e?t.hasAttribute("aria-selected")||(t.setAttribute("aria-selected","true"),a=t):t.hasAttribute("aria-selected")&&(t.removeAttribute("aria-selected"),t.removeAttribute("aria-describedby")):n--;return a&&(t=this.list,n=a,r=t.getBoundingClientRect(),i=n.getBoundingClientRect(),o=r.height/t.offsetHeight,i.top<r.top?t.scrollTop-=(r.top-i.top)/o:i.bottom>r.bottom&&(t.scrollTop+=(i.bottom-r.bottom)/o)),a}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),r=e.getBoundingClientRect(),i=this.space;if(!i){let e=this.dom.ownerDocument.documentElement;i={left:0,top:0,right:e.clientWidth,bottom:e.clientHeight}}return r.top>Math.min(i.bottom,t.bottom)-10||r.bottom<Math.max(i.top,t.top)+10?null:this.view.state.facet(y).positionInfo(this.view,t,r,n,i,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className="cm-tooltip cm-completionInfo "+(e.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(e,t,n){let r=document.createElement("ul");r.id=t,r.setAttribute("role","listbox"),r.setAttribute("aria-expanded","true"),r.setAttribute("aria-label",this.view.state.phrase("Completions")),r.addEventListener("mousedown",e=>{e.target==r&&e.preventDefault()});let i=null;for(let o=n.from;o<n.to;o++){let{completion:a,match:s}=e[o],{section:l}=a;if(l){let e="string"==typeof l?l:l.name;e!=i&&(o>n.from||0==n.from)&&(i=e,"string"!=typeof l&&l.header?r.appendChild(l.header(l)):r.appendChild(document.createElement("completion-section")).textContent=e)}let c=r.appendChild(document.createElement("li"));c.id=t+"-"+o,c.setAttribute("role","option");let u=this.optionClass(a);for(let e of(u&&(c.className=u),this.optionContent)){let t=e(a,this.view.state,this.view,s);t&&c.appendChild(t)}}return n.from&&r.classList.add("cm-completionListIncompleteTop"),n.to<e.length&&r.classList.add("cm-completionListIncompleteBottom"),r}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function M(e){return 100*(e.boost||0)+10*!!e.apply+5*!!e.info+ +!!e.type}class A{constructor(e,t,n,r,i,o){this.options=e,this.attrs=t,this.tooltip=n,this.timestamp=r,this.selected=i,this.disabled=o}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new A(this.options,P(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,n,r,i,o){if(r&&!o&&e.some(e=>e.isPending))return r.setDisabled();let a=function(e,t){let n=[],r=null,i=null,o=e=>{n.push(e);let{section:t}=e.completion;if(t){r||(r=[]);let e="string"==typeof t?t:t.name;r.some(t=>t.name==e)||r.push("string"==typeof t?{name:e}:t)}},a=t.facet(y);for(let r of e)if(r.hasResult()){let e=r.result.getMatch;if(!1===r.result.filter)for(let t of r.result.options)o(new l(t,r.source,e?e(t):[],1e9-n.length));else{let n=t.sliceDoc(r.from,r.to),s,c=a.filterStrict?new v(n):new g(n);for(let t of r.result.options)if(s=c.match(t.label)){let n=t.displayLabel?e?e(t,s.matched):[]:s.matched,a=s.score+(t.boost||0);if(o(new l(t,r.source,n,a)),"object"==typeof t.section&&"dynamic"===t.section.rank){let{name:e}=t.section;i||(i=Object.create(null)),i[e]=Math.max(a,i[e]||-1e9)}}}}if(r){let e=Object.create(null),t=0;for(let n of r.sort((e,t)=>
2("dynamic"===e.rank&&"dynamic"===t.rank?i[t.name]-i[e.name]:0)||("number"==typeof e.rank?e.rank:1e9)-("number"==typeof t.rank?t.rank:1e9)||(e.name<t.name?-1:1)))t-=1e5,e[n.name]=t;for(let t of n){let{section:n}=t.completion;n&&(t.score+=e["string"==typeof n?n:n.name])}}let s=[],c=null,u=a.compareCompletions;for(let e of n.sort((e,t)=>t.score-e.score||u(e.completion,t.completion))){let t=e.completion;c&&c.label==t.label&&c.detail==t.detail&&(null==c.type||null==t.type||c.type==t.type)&&c.apply==t.apply&&c.boost==t.boost?M(e.completion)>M(c)&&(s[s.length-1]=e):s.push(e),c=e.completion}return s}(e,t);if(!a.length)return r&&e.some(e=>e.isPending)?r.setDisabled():null;let s=t.facet(y).selectOnOpen?0:-1;if(r&&r.selected!=s&&-1!=r.selected){let e=r.options[r.selected].completion;for(let t=0;t<a.length;t++)if(a[t].completion==e){s=t;break}}return new A(a,P(n,s),{pos:e.reduce((e,t)=>t.hasResult()?Math.min(e,t.from):e,1e8),create:L,above:i.aboveCursor},r?r.timestamp:Date.now(),s,!1)}map(e){return new A(this.options,this.attrs,{...this.tooltip,pos:e.mapPos(this.tooltip.pos)},this.timestamp,this.selected,this.disabled)}setDisabled(){return new A(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}}class E{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){return new E(T,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(e){let{state:t}=e,n=t.facet(y),r=(n.override||t.languageDataAt("autocomplete",c(t)).map(f)).map(t=>(this.active.find(e=>e.source==t)||new R(t,+!!this.active.some(e=>0!=e.state))).update(e,n));r.length==this.active.length&&r.every((e,t)=>e==this.active[t])&&(r=this.active);let i=this.open,o=e.effects.some(e=>e.is(I));for(let a of(i&&e.docChanged&&(i=i.map(e.changes)),e.selection||r.some(t=>t.hasResult()&&e.changes.touchesRange(t.from,t.to))||!function(e,t){if(e==t)return!0;for(let n=0,r=0;;){for(;n<e.length&&!e[n].hasResult();)n++;for(;r<t.length&&!t[r].hasResult();)r++;let i=n==e.length,o=r==t.length;if(i||o)return i==o;if(e[n++].result!=t[r++].result)return!1}}(r,this.active)||o?i=A.build(r,t,this.id,i,n,o):i&&i.disabled&&!r.some(e=>e.isPending)&&(i=null),!i&&r.every(e=>!e.isPending)&&r.some(e=>e.hasResult())&&(r=r.map(e=>e.hasResult()?new R(e.source,0):e)),e.effects))a.is(w)&&(i=i&&i.setSelected(a.value,this.id));return r==this.active&&i==this.open?this:new E(r,this.id,i)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?C:O}}let C={"aria-autocomplete":"list"},O={};function P(e,t){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":e};return t>-1&&(n["aria-activedescendant"]=e+"-"+t),n}let T=[];function D(e,t){if(e.isUserEvent("input.complete")){let n=e.annotation(h);if(n&&t.activateOnCompletion(n))return 12}let n=e.isUserEvent("input.type");return n&&t.activateOnTyping?5:n?1:e.isUserEvent("delete.backward")?2:e.selection?8:16*!!e.docChanged}class R{constructor(e,t,n=!1){this.source=e,this.state=t,this.explicit=n}hasResult(){return!1}get isPending(){return 1==this.state}update(e,t){let n=D(e,t),r=this;for(let t of((8&n||16&n&&this.touches(e))&&(r=new R(r.source,0)),4&n&&0==r.state&&(r=new R(this.source,1)),r=r.updateFor(e,n),e.effects))if(t.is(p))r=new R(r.source,1,t.value);else if(t.is(m))r=new R(r.source,0);else if(t.is(I))for(let e of t.value)e.source==r.source&&(r=e);return r}updateFor(e,t){return this.map(e.changes)}map(e){return this}touches(e){return e.changes.touchesRange(c(e.state))}}class j extends R{constructor(e,t,n,r,i,o){super(e,3,t),this.limit=n,this.result=r,this.from=i,this.to=o}hasResult(){return!0}updateFor(e,t){var n;if(!(3&t))return this.map(e.changes);let r=this.result;r.map&&!e.changes.empty&&(r=r.map(r,e.changes));let i=e.changes.mapPos(this.from),o=e.changes.mapPos(this.to,1),s=c(e.state);if(s>o||!r||2&t&&(c(e.startState)==this.from||s<this.limit))return new R(this.source,4&t?1:0);let l=e.changes.mapPos(this.limit);return!function(e,t,n,r){if(!e)return!1;let i=t.sliceDoc(n,r);return"function"==typeof e?e(i,n,r,t):u(e,!0).test(i)}(r.validFor,e.state,i,o)?r.update&&(r=r.update(r,i,o,new a(e.state,s,!1)))?new j(this.source,this.explicit,l,r,r.from,null!=(n=r.to)?n:c(e.state)):new R(this.source,1,this.explicit):new j(this.source,this.explicit,l,r,i,o)}map(e){if(e.empty)return this;let t=this.result.map?this.result.map(this.result,e):this.result;return t?new j(this.source,this.explicit,e.mapPos(this.limit),t,e.mapPos(this.from),e.mapPos(this.to,1)):new R(this.source,0)}touches(e){return e.changes.touchesRange(this.from,this.to)}}let I=r.Pe.define({map:(e,t)=>e.map(e=>e.map(t))}),z=r.sU.define({create:()=>E.start(),update:(e,t)=>
2e.update(t),provide:e=>[i.DK.from(e,e=>e.tooltip),i.Lz.contentAttributes.from(e,e=>e.attrs)]});function _(e,t){let n=t.completion.apply||t.completion.label,i=e.state.field(z).active.find(e=>e.source==t.source);return i instanceof j&&("string"==typeof n?e.dispatch({...function(e,t,n,i){let{main:o}=e.selection,a=n-o.from,s=i-o.from;return{...e.changeByRange(l=>{if(l!=o&&n!=i&&e.sliceDoc(l.from+a,l.from+s)!=e.sliceDoc(n,i))return{range:l};let c=e.toText(t);return{changes:{from:l.from+a,to:i==o.from?l.to:l.from+s,insert:c},range:r.OF.cursor(l.from+a+c.length)}}),scrollIntoView:!0,userEvent:"input.complete"}}(e.state,n,i.from,i.to),annotations:h.of(t.completion)}):n(e,t.completion,i.from,i.to),!0)}let L=e=>new S(e,z,_);function N(e,t="option"){return n=>{let r=n.state.field(z,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp<n.state.facet(y).interactionDelay)return!1;let o=1,a;"page"==t&&(a=(0,i.Eg)(n,r.open.tooltip))&&(o=Math.max(2,Math.floor(a.dom.offsetHeight/a.dom.querySelector("li").offsetHeight)-1));let{length:s}=r.open.options,l=r.open.selected>-1?r.open.selected+o*(e?1:-1):e?0:s-1;return l<0?l="page"==t?0:s-1:l>=s&&(l="page"==t?s-1:0),n.dispatch({effects:w.of(l)}),!0}}let B=e=>!!e.state.field(z,!1)&&(e.dispatch({effects:p.of(!0)}),!0);class F{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}let V=i.Z9.fromClass(class{constructor(e){for(let t of(this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0,e.state.field(z).active))t.isPending&&this.startQuery(t)}update(e){let t=e.state.field(z),n=e.state.facet(y);if(!e.selectionSet&&!e.docChanged&&e.startState.field(z)==t)return;let r=e.transactions.some(e=>{let t=D(e,n);return 8&t||(e.selection||e.docChanged)&&!(3&t)});for(let t=0;t<this.running.length;t++){let n=this.running[t];if(r||n.context.abortOnDocChange&&e.docChanged||n.updates.length+e.transactions.length>50&&Date.now()-n.time>1e3){for(let e of n.context.abortListeners)try{e()}catch(e){(0,i.c_)(this.view.state,e)}n.context.abortListeners=null,this.running.splice(t--,1)}else n.updates.push(...e.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),e.transactions.some(e=>e.effects.some(e=>e.is(p)))&&(this.pendingStart=!0);let o=this.pendingStart?50:n.activateOnTypingDelay;if(this.debounceUpdate=t.active.some(e=>e.isPending&&!this.running.some(t=>t.active.source==e.source))?setTimeout(()=>this.startUpdate(),o):-1,0!=this.composing)for(let t of e.transactions)t.isUserEvent("input.type")?this.composing=2:2==this.composing&&t.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:e}=this.view,t=e.field(z);for(let e of t.active)e.isPending&&!this.running.some(t=>t.active.source==e.source)&&this.startQuery(e);this.running.length&&t.open&&t.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(y).updateSyncTime))}startQuery(e){let{state:t}=this.view,n=c(t),r=new a(t,n,e.explicit,this.view),o=new F(e,r);this.running.push(o),Promise.resolve(e.source(r)).then(e=>{o.context.aborted||(o.done=e||null,this.scheduleAccept())},e=>{this.view.dispatch({effects:m.of(null)}),(0,i.c_)(this.view.state,e)})}scheduleAccept(){this.running.every(e=>void 0!==e.done)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(y).updateSyncTime))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],n=this.view.state.facet(y),r=this.view.state.field(z);for(let i=0;i<this.running.length;i++){let o=this.running[i];if(void 0===o.done)continue;if(this.running.splice(i--,1),o.done){let r=c(o.updates.length?o.updates[0].startState:this.view.state),i=Math.min(r,o.done.from+ +!o.active.explicit),a=new j(o.active.source,o.active.explicit,i,o.done,o.done.from,null!=(e=o.done.to)?e:r);for(let e of o.updates)a=a.update(e,n);if(a.hasResult()){t.push(a);continue}}let a=r.active.find(e=>e.source==o.active.source);if(a&&a.isPending)if(null==o.done){let e=new R(o.active.source,0);for(let t of o.updates)e=e.update(t,n);e.isPending||t.push(e)}else this.startQuery(a)}(t.length||r.open&&r.open.disabled)&&this.view.dispatch({effects:I.of(t)})}},{eventHandlers:{blur(e){let t=this.view.state.field(z,!1);if(t&&t.tooltip&&this.view.state.facet(y).closeOnBlur){let n=t.open&&(0,i.Eg)(this.view,t.open.tooltip);n&&n.dom.contains(e.relatedTarget)||setTimeout(()=>this.view.dispatch({effects:m.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout(()=>this.view.dispatch({effects:p.of(!1)}),20),this.composing=0}}}),H="object"==typeof navigator&&/Win/.test(navigator.platform),W=r.Nb.highest(i.Lz.domEventHandlers({ke
2ydown(e,t){let n=t.state.field(z,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||e.key.length>1||e.ctrlKey&&!(H&&e.altKey)||e.metaKey)return!1;let r=n.open.options[n.open.selected],i=n.active.find(e=>e.source==r.source),o=r.completion.commitCharacters||i.result.commitCharacters;return o&&o.indexOf(e.key)>-1&&_(t,r),!1}})),$=i.Lz.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xb7\xb7\xb7"',opacity:.5,display:"block",textAlign:"center",cursor:"pointer"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'\uD835\uDC65'"}},".cm-completionIcon-constant":{"&:after":{content:"'\uD835\uDC36'"}},".cm-completionIcon-type":{"&:after":{content:"'\uD835\uDC61'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\uD83D\uDD11︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),U={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},K=r.Pe.define({map(e,t){let n=t.mapPos(e,-1,r.iR.TrackAfter);return null==n?void 0:n}}),q=new class extends r.FB{};q.startSide=1,q.endSide=-1;let G=r.sU.define({create:()=>r.om.empty,update(e,t){if(e=e.map(t.changes),t.selection){let n=t.state.doc.lineAt(t.selection.main.head);e=e.update({filter:e=>e>=n.from&&e<=n.to})}for(let n of t.effects)n.is(K)&&(e=e.update({add:[q.range(n.value,n.value+1)]}));return e}});function Z(){return[ee,G]}let Y="()[]{}<>\xab\xbb\xbb\xab[]{}";function X(e){for(let t=0;t<Y.length;t+=2)if(Y.charCodeAt(t)==e)return Y.charAt(t+1);return(0,r.MK)(e<128?e:e+1)}function J(e,t){return e.languageDataAt("closeBrackets",t)[0]||U}let Q="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),ee=i.Lz.inputHandler.of((e,t,n,i)=>{if((Q?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let a=e.state.selection.main;if(i.length>2||2==i.length&&1==(0,r.Fh)((0,r.vS)(i,0))||t!=a.from||n!=a.to)return!1;let s=function(e,t){let n=J(e,e.selection.main.head),i=n.brackets||U.brackets;for(let a of i){let s=X((0,r.vS)(a,0));if(t==a)return s==a?function(e,t,n,i){let a=i.stringPrefixes||U.stringPrefixes,s=null,l=e.changeByRange(i=>{if(!i.empty)return{changes:[{insert:t,from:i.from},{insert:t,from:i.to}],effects:K.of(i.to+t.length),range:r.OF.range(i.anchor+t.length,i.head+t.length)};let l=i.head,c=er(e.doc,l),u;if(c==t){if(ei(e,l))return{changes:{insert:t+t,from:l},effects:K.of(l+t.length),range:r.OF.cursor(l+t.length)};else if(en(e,l)){let i=n&&e.sliceDoc(l,l+3*t.length)==t+t+t?t+t+t:t;return{changes:{from:l,to:l+i.length,insert:i},range:r.OF.cursor(l+i.length)}}}else if(n&&e.sliceDoc(l-2*t.length,l)==t+t&&(u=eo(e,l-2*t.length,a))>-1&&ei(e,u))return{changes:{insert:t+t+t+t,from:l},effects:K.of(l+t.length),range:r.OF.cursor(l+t.length)};else if(e.charCategorizer(l)(c)!=r.Je.Word&&eo(e,l,a)>-1&&!function(e,t,n,r){let i=(0,o.mv)(e).resolveInner(t,-1),a=r.reduce((e,t)=>
2Math.max(e,t.length),0);for(let o=0;o<5;o++){let o=e.sliceDoc(i.from,Math.min(i.to,i.from+n.length+a)),s=o.indexOf(n);if(!s||s>-1&&r.indexOf(o.slice(0,s))>-1){let t=i.firstChild;for(;t&&t.from==i.from&&t.to-t.from>n.length+s;){if(e.sliceDoc(t.to-n.length,t.to)==n)return!1;t=t.firstChild}return!0}let l=i.to==t&&i.parent;if(!l)break;i=l}return!1}(e,l,t,a))return{changes:{insert:t+t,from:l},effects:K.of(l+t.length),range:r.OF.cursor(l+t.length)};return{range:s=i}});return s?null:e.update(l,{scrollIntoView:!0,userEvent:"input.type"})}(e,a,i.indexOf(a+a+a)>-1,n):function(e,t,n,i){let o=null,a=e.changeByRange(a=>{if(!a.empty)return{changes:[{insert:t,from:a.from},{insert:n,from:a.to}],effects:K.of(a.to+t.length),range:r.OF.range(a.anchor+t.length,a.head+t.length)};let s=er(e.doc,a.head);return!s||/\s/.test(s)||i.indexOf(s)>-1?{changes:{insert:t+n,from:a.head},effects:K.of(a.head+t.length),range:r.OF.cursor(a.head+t.length)}:{range:o=a}});return o?null:e.update(a,{scrollIntoView:!0,userEvent:"input.type"})}(e,a,s,n.before||U.before);if(t==s&&en(e,e.selection.main.from))return function(e,t){let n=null,i=e.changeByRange(i=>i.empty&&er(e.doc,i.head)==t?{changes:{from:i.head,to:i.head+t.length,insert:t},range:r.OF.cursor(i.head+t.length)}:n={range:i});return n?null:e.update(i,{scrollIntoView:!0,userEvent:"input.type"})}(e,s)}return null}(e.state,i);return!!s&&(e.dispatch(s),!0)}),et=[{key:"Backspace",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=J(e,e.selection.main.head).brackets||U.brackets,i=null,o=e.changeByRange(t=>{if(t.empty){var o,a;let i,s=(o=e.doc,a=t.head,i=o.sliceString(a-2,a),(0,r.Fh)((0,r.vS)(i,0))==i.length?i:i.slice(1));for(let i of n)if(i==s&&er(e.doc,t.head)==X((0,r.vS)(i,0)))return{changes:{from:t.head-i.length,to:t.head+i.length},range:r.OF.cursor(t.head-i.length)}}return{range:i=t}});return i||t(e.update(o,{scrollIntoView:!0,userEvent:"delete.backward"})),!i}}];function en(e,t){let n=!1;return e.field(G).between(0,e.doc.length,e=>{e==t&&(n=!0)}),n}function er(e,t){let n=e.sliceString(t,t+2);return n.slice(0,(0,r.Fh)((0,r.vS)(n,0)))}function ei(e,t){let n=(0,o.mv)(e).resolveInner(t+1);return n.parent&&n.from==t}function eo(e,t,n){let i=e.charCategorizer(t);if(i(e.sliceDoc(t-1,t))!=r.Je.Word)return t;for(let o of n){let n=t-o.length;if(e.sliceDoc(n,t)==o&&i(e.sliceDoc(n-1,n))!=r.Je.Word)return n}return -1}function ea(e={}){return[W,z,y.of(e),V,el,$]}let es=[{key:"Ctrl-Space",run:B},{mac:"Alt-`",run:B},{mac:"Alt-i",run:B},{key:"Escape",run:e=>{let t=e.state.field(z,!1);return!!t&&!!t.active.some(e=>0!=e.state)&&(e.dispatch({effects:m.of(null)}),!0)}},{key:"ArrowDown",run:N(!0)},{key:"ArrowUp",run:N(!1)},{key:"PageDown",run:N(!0,"page")},{key:"PageUp",run:N(!1,"page")},{key:"Enter",run:e=>{let t=e.state.field(z,!1);return!(e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestamp<e.state.facet(y).interactionDelay)&&_(e,t.open.options[t.open.selected])}}],el=r.Nb.highest(i.w4.computeN([y],e=>e.facet(y).defaultKeymap?[es]:[]))},31051(e,t,n){"use strict";n.d(t,{EI:()=>E,KB:()=>O,Lv:()=>et,SG:()=>ey,WD:()=>j,Xt:()=>M,Zt:()=>ec,_v:()=>C,cr:()=>er,f7:()=>K,jU:()=>ek,mv:()=>f,tp:()=>A,y9:()=>es});var r,i=n(52498),o=n(3708),a=n(2749),s=n(5644),l=n(22776);let c=new i.uY,u=new i.uY;class h{constructor(e,t,n=[],r=""){this.data=e,this.name=r,o.$t.prototype.hasOwnProperty("tree")||Object.defineProperty(o.$t.prototype,"tree",{get(){return f(this)}}),this.parser=t,this.extension=[k.of(this),o.$t.languageData.of((e,t,n)=>{let r=d(e,t,n),i=r.type.prop(c);if(!i)return[];let o=e.facet(i),a=r.type.prop(u);if(a){let i=r.resolve(t-r.from,n);for(let t of a)if(t.test(i,e)){let n=e.facet(t.facet);return"replace"==t.type?n:n.concat(o)}}return o})].concat(n)}isActiveAt(e,t,n=-1){return d(e,t,n).type.prop(c)==this.data}findRegions(e){let t=e.facet(k);if((null==t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],r=(e,t)=>{if(e.prop(c)==this.data)return void n.push({from:t,to:t+e.length});let o=e.prop(i.uY.mounted);if(o){if(o.tree.prop(c)==this.data){if(o.overlay)for(let e of o.overlay)n.push({from:e.from+t,to:e.to+t});else n.push({from:t,to:t+e.length});return}else if(o.overlay){let e=n.length;if(r(o.tree,o.overlay[0].from+t),n.length>e)return}}for(let n=0;n<e.children.length;n++){let o=e.children[n];o instanceof i.PH&&r(o,e.positions[n]+t)}};return r(f(e),0),n}get allowsNesting(){return!0}}function d(e,t,n){let r=e.facet(k),o=f(e).topNode;if(!r||r.allowsNesting)for(let e=o;e;e=e.enter(t,n,i.Qj.ExcludeBuffers|i.Qj.EnterBracketed))e.type.isTop&&(o=e);return o}function f(e){let t=e.field(h.state,!1);return t?t.tree:i.PH.empty}h.setState=o.Pe.define();class p{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e<n||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let m=null;class g{constructor(e,t,n=[],r,i,o,a,s){this.parser=e,this.state=t,this.fragments=n,this.tree=r,this.treeLen=i,this.viewport=o,this.skipped=a,this.scheduleOn=s,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new g(e,t,[],i.PH.empty,0,n,[],null)}startParse(){return this.parser.startParse(new p(this.state.doc),this.fragments)}work(e,t){return(null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=i.PH.empty&&this.isDone(null!=t?t:this.state.doc.length))?(this.takeTree(),!0):this.withContext(()=>{var n;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let r=this.parse.advance();if(r){if(this.fragments=this.withoutTempSkipped(i.rr.addTree(r,this.fragments,null!=this.parse.stoppedAt)),this.treeLen=null!=(n=this.parse.stoppedAt)?n:this.state.doc.length,this.tree=r,this.parse=null,!(this.treeLen<(null!=t?t:this.state.doc.length)))return!0;this.parse=this.startParse()}if(e())return!1}})}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(i.rr.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=m;m=this;try{return e()}finally{m=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=v(e,t.from,t.to);return e}
2changes(e,t){let{fragments:n,tree:r,treeLen:o,viewport:a,skipped:s}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges((e,n,r,i)=>t.push({fromA:e,toA:n,fromB:r,toB:i})),n=i.rr.applyChanges(n,t),r=i.PH.empty,o=0,a={from:e.mapPos(a.from,-1),to:e.mapPos(a.to,1)},this.skipped.length)for(let t of(s=[],this.skipped)){let n=e.mapPos(t.from,1),r=e.mapPos(t.to,-1);n<r&&s.push({from:n,to:r})}}return new g(this.parser,t,n,r,o,a,s,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let t=0;t<this.skipped.length;t++){let{from:n,to:r}=this.skipped[t];n<e.to&&r>e.from&&(this.fragments=v(this.fragments,n,r),this.skipped.splice(t--,1))}return!(this.skipped.length>=t)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends i.iX{createParse(t,n,r){let o=r[0].from,a=r[r.length-1].to;return{parsedPos:o,advance(){let t=m;if(t){for(let e of r)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=a,new i.PH(i.Z6.none,[],[],a-o)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return m}}function v(e,t,n){return i.rr.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class y{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new y(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=g.create(e.facet(k).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new y(n)}}h.state=o.sU.define({create:y.init,update(e,t){for(let e of t.effects)if(e.is(h.setState))return e.value;return t.startState.facet(k)!=t.state.facet(k)?y.init(t.state):e.apply(t)}});let b=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};"u">typeof requestIdleCallback&&(b=e=>{let t=-1,n=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});let x="u">typeof navigator&&(null==(r=navigator.scheduling)?void 0:r.isInputPending)?()=>navigator.scheduling.isInputPending():null,w=a.Z9.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(h.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(h.state);t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=b(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:n,viewport:{to:r}}=this.view,i=n.field(h.state);if(i.tree==i.context.tree&&i.context.isDone(r+1e5))return;let o=Date.now()+Math.min(this.chunkBudget,100,e&&!x?Math.max(25,e.timeRemaining()-5):1e9),a=i.context.treeLen<r&&n.doc.length>r+1e3,s=i.context.work(()=>x&&x()||Date.now()>o,r+1e5*!a);this.chunkBudget-=Date.now()-t,(s||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:h.setState.of(new y(i.context))})),this.chunkBudget>0&&!(s&&!a)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(e=>(0,a.c_)(this.view.state,e)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),k=o.sj.define({combine:e=>e.length?e[0]:null,enables:e=>[h.state,w,a.Lz.contentAttributes.compute([e],t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}})]}),S=o.sj.define(),M=o.sj.define({combine:e=>{if(!e.length)return"  ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some(e=>e!=t[0]))throw Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function A(e){let t=e.facet(M);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function E(e,t){let n="",r=e.tabSize,i=e.facet(M)[0];if("	"==i){for(;t>=r;)n+="	",t-=r;i=" "}for(let e=0;e<t;e++)n+=i;return n}function C(e,t){for(let n of(e instanceof o.$t&&(e=new O(e)),e.state.facet(S))){let r=n(e,t);if(void 0!==r)return r}let n=f(e.state);return n.length>=t?function(e,t,n){let r=t.resolveStack(n),i=t.resolveInner(n,-1).resolve(n,0).enterUnfinishedNodesBefore(n);if(i!=r.node){let e=[];for(let t=i;t&&!(t.from<r.node.from||t.to>r.node.to||t.from==r.node.from&&t.type==r.node.type);t=t.parent)e.push(t);for(let t=e.length-1;t>=0;t--)r={node:e[t],next:r}}return T(r,e,n)}(e,n,t):null}class O{constructor(e,t={}){this.state=e,this.options=t,this.unit=A(e)}lineAt(e,t=1){let n=this.state.doc.lineAt(e),{simulateBreak:r,simulateDoubleBreak:i}=this.options;if(null!=r&&r>=n.from&&r<=n.to)if(i&&r==e)return{text:"",from:e};else if(t<0?r<e:r<=e)return{text:n.text.slice(r-n.from),from:r};else return{text:n.text.slice(0,r-n.from),from:n.from};return n}textAfterPos(e,t=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:n,from:r}=this.lineAt(e,t);return n.slice(e-r,Math.min(n.length,e+100-r))}column(e,t=1){let{text:n,from:r}=this.lineAt(e,t),i=this.countColumn(n,e-r),o=this.options.overrideIndentation?this.options.overrideIndentation(r):-1;return o>-1&&(i+=o-this.countColumn(n,n.search(/\S|$/))),i}countColumn(e,t=e.length){return(0,o.y$)(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:r}=this.lineAt(e,t),i=this.options.overrideIndentation;if(i){let e=i(r);if(e>-1)return e}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}let P=new i.uY;function T(e,t,n){for(let r=e;r;r=r.next){let e=function(e){let t=e.type.prop(P);if(t)return t;let n=e.firstChild,r;if(n&&(r=n.type.prop(i.uY.closedBy))){let t=e.lastChild,n=t&&r.indexOf(t.name)>-1;return e=>(function(e,t,n,r){let i=e.textAfter,o=i.match(/^\s*/)[0].length,a=n&&i.slice(o,o+n.length)==n||r==e.pos+o,s=t?function(e){let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;let i=e.options.simulateBreak,o=e.state.doc.lineAt(n.from),a=null==i||i<=o.from?o.to:Math.min(o.to,i);for(let e=n.to;;){let i=t.childAfter(e);if(!i||i==r)return null;if(!i.type.isSkipped){if(i.from>=a)return null;let e=/^ */.exec(o.text.slice(n.to-o.from))[0].length;return{from:n.from,to:n.to+e}}e=i.to}}(e):null;return s?a?e.column(s.from):e.column(s.to):e.baseIndent+(a?0:+e.unit)})(e,!0,void 0,n&&!(e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak)?t.from:void 0)}return null==e.parent?D:null}
2(r.node);if(e)return e(R.create(t,n,r))}return 0}function D(){return 0}class R extends O{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.context=n}get node(){return this.context.node}static create(e,t,n){return new R(e,t,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let n=e.resolve(t.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if(function(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}(n,e))break;t=this.state.doc.lineAt(n.from)}return this.lineIndent(t.from)}continue(){return T(this.context.next,this.base,this.pos)}}function j(){return o.$t.transactionFilter.of(e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let n=e.newDoc,{head:r}=e.newSelection.main,i=n.lineAt(r);if(r>i.from+200)return e;let o=n.sliceString(i.from,r);if(!t.some(e=>e.test(o)))return e;let{state:a}=e,s=-1,l=[];for(let{head:e}of a.selection.ranges){let t=a.doc.lineAt(e);if(t.from==s)continue;s=t.from;let n=C(a,t.from);if(null==n)continue;let r=/^\s*/.exec(t.text)[0],i=E(a,n);r!=i&&l.push({from:t.from,to:t.from+r.length,insert:i})}return l.length?[e,{changes:l,sequential:!0}]:e})}let I=o.sj.define(),z=new i.uY;function _(e,t,n){for(let r of e.facet(I)){let i=r(e,t,n);if(i)return i}return function(e,t,n){let r=f(e);if(r.length<n)return null;let i=r.resolveStack(n,1),o=null;for(let a=i;a;a=a.next){let i=a.node;if(i.to<=n||i.from>n)continue;if(o&&i.from<t)break;let s=i.type.prop(z);if(s&&(i.to<r.length-50||r.length==e.doc.length||!function(e){let t=e.lastChild;return t&&t.to==e.to&&t.type.isError}(i))){let r=s(i,e);r&&r.from<=n&&r.from>=t&&r.to>n&&(o=r)}}return o}(e,t,n)}function L(e,t){let n=t.mapPos(e.from,1),r=t.mapPos(e.to,-1);return n>=r?void 0:{from:n,to:r}}let N=o.Pe.define({map:L}),B=o.Pe.define({map:L});function F(e){let t=[];for(let{head:n}of e.state.selection.ranges)t.some(e=>e.from<=n&&e.to>=n)||t.push(e.lineBlockAt(n));return t}let V=o.sU.define({create:()=>a.NZ.none,update(e,t){t.isUserEvent("delete")&&t.changes.iterChangedRanges((t,n)=>e=H(e,t,n)),e=e.map(t.changes);let n=[];for(let r of t.effects)r.is(N)&&!function(e,t,n){let r=!1;return e.between(t,t,(e,i)=>{e==t&&i==n&&(r=!0)}),r}(e,r.value.from,r.value.to)?n.push(r.value):r.is(B)&&(e=e.update({filter:(e,t)=>r.value.from!=e||r.value.to!=t,filterFrom:r.value.from,filterTo:r.value.to}));if(n.length){let{preparePlaceholder:r}=t.state.facet(G),i=n.map(e=>(r?a.NZ.replace({widget:new J(r(t.state,e))}):X).range(e.from,e.to));e=e.update({add:i})}return t.selection&&(e=H(e,t.selection.main.head)),e},provide:e=>a.Lz.decorations.from(e),toJSON(e,t){let n=[];return e.between(0,t.doc.length,(e,t)=>{n.push(e,t)}),n},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw RangeError("Invalid JSON for fold state");let t=[];for(let n=0;n<e.length;){let r=e[n++],i=e[n++];if("number"!=typeof r||"number"!=typeof i)throw RangeError("Invalid JSON for fold state");t.push(X.range(r,i))}return a.NZ.set(t,!0)}});function H(e,t,n=t){let r=!1;return e.between(t,n,(e,i)=>{e<n&&i>t&&(r=!0)}),r?e.update({filterFrom:t,filterTo:n,filter:(e,r)=>e>=n||r<=t}):e}function W(e,t,n){var r;let i=null;return null==(r=e.field(V,!1))||r.between(t,n,(e,t)=>{(!i||i.from>e)&&(i={from:e,to:t})}),i}function $(e,t){return e.field(V,!1)?t:t.concat(o.Pe.appendConfig.of(Z()))}function U(e,t,n=!0){let r=e.state.doc.lineAt(t.from).number,i=e.state.doc.lineAt(t.to).number;return a.Lz.announce.of(`${e.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${e.state.phrase("to")} ${i}.`)}let K=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:e=>{for(let t of F(e)){let n=_(e.state,t.from,t.to);if(n)return e.dispatch({effects:$(e.state,[N.of(n),U(e,n)])}),!0}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:e=>{if(!e.state.field(V,!1))return!1;let t=[];for(let n of F(e)){let r=W(e.state,n.from,n.to);r&&t.push(B.of(r),U(e,r,!1))}return t.length&&e.dispatch({effects:t}),t.length>0}},{key:"Ctrl-Alt-[",run:e=>{let{state:t}=e,n=[];for(let r=0;r<t.doc.length;){let i=e.lineBlockAt(r),o=_(t,i.from,i.to);o&&n.push(N.of(o)),r=(o?e.lineBlockAt(o.to):i).to+1}return n.length&&e.dispatch({effects:$(e.state,n)}),!!n.length}},{key:"Ctrl-Alt-]",run:e=>{let t=e.state.field(V,!1);if(!t||!t.size)return!1;let n=[];return t.between(0,e.state.doc.length,(e,t)=>{n.push(B.of({from:e,to:t}))}),e.dispatch({effects:n}
2),!0}}],q={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},G=o.sj.define({combine:e=>(0,o.QR)(e,q)});function Z(e){let t=[V,en];return e&&t.push(G.of(e)),t}function Y(e,t){let{state:n}=e,r=n.facet(G),i=t=>{let n=e.lineBlockAt(e.posAtDOM(t.target)),r=W(e.state,n.from,n.to);r&&e.dispatch({effects:B.of(r)}),t.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(e,i,t);let o=document.createElement("span");return o.textContent=r.placeholderText,o.setAttribute("aria-label",n.phrase("folded code")),o.title=n.phrase("unfold"),o.className="cm-foldPlaceholder",o.onclick=i,o}let X=a.NZ.replace({widget:new class extends a.xO{toDOM(e){return Y(e,null)}}});class J extends a.xO{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return Y(e,this.value)}}let Q={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class ee extends a.wJ{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}function et(e={}){let t={...Q,...e},n=new ee(t,!0),r=new ee(t,!1),i=a.Z9.fromClass(class{constructor(e){this.from=e.viewport.from,this.markers=this.buildMarkers(e)}update(e){(e.docChanged||e.viewportChanged||e.startState.facet(k)!=e.state.facet(k)||e.startState.field(V,!1)!=e.state.field(V,!1)||f(e.startState)!=f(e.state)||t.foldingChanged(e))&&(this.markers=this.buildMarkers(e.view))}buildMarkers(e){let t=new o.vB;for(let i of e.viewportLineBlocks){let o=W(e.state,i.from,i.to)?r:_(e.state,i.from,i.to)?n:null;o&&t.add(i.from,i.from,o)}return t.finish()}}),{domEventHandlers:s}=t;return[i,(0,a.cU)({class:"cm-foldGutter",markers(e){var t;return(null==(t=e.plugin(i))?void 0:t.markers)||o.om.empty},initialSpacer:()=>new ee(t,!1),domEventHandlers:{...s,click:(e,t,n)=>{if(s.click&&s.click(e,t,n))return!0;let r=W(e.state,t.from,t.to);if(r)return e.dispatch({effects:B.of(r)}),!0;let i=_(e.state,t.from,t.to);return!!i&&(e.dispatch({effects:N.of(i)}),!0)}}}),Z()]}let en=a.Lz.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class er{constructor(e,t){let n;function r(e){let t=l.G.newName();return(n||(n=Object.create(null)))["."+t]=e,t}this.specs=e;const i="string"==typeof t.all?t.all:t.all?r(t.all):void 0,o=t.scope;this.scope=o instanceof h?e=>e.prop(c)==o.data:o?e=>e==o:void 0,this.style=(0,s.az)(e.map(e=>({tag:e.tag,class:e.class||r(Object.assign({},e,{tag:null}))})),{all:i}).style,this.module=n?new l.G(n):null,this.themeType=t.themeType}static define(e,t){return new er(e,t||{})}}let ei=o.sj.define(),eo=o.sj.define({combine:e=>e.length?[e[0]]:null});function ea(e){let t=e.facet(ei);return t.length?t:e.facet(eo)}function es(e,t){let n=[el],r;return e instanceof er&&(e.module&&n.push(a.Lz.styleModule.of(e.module)),r=e.themeType),(null==t?void 0:t.fallback)?n.push(eo.of(e)):r?n.push(ei.computeN([a.Lz.darkTheme],t=>t.facet(a.Lz.darkTheme)==("dark"==r)?[e]:[])):n.push(ei.of(e)),n}let el=o.Nb.high(a.Z9.fromClass(class{constructor(e){this.markCache=Object.create(null),this.tree=f(e.state),this.decorations=this.buildDeco(e,ea(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=f(e.state),n=ea(e.state),r=n!=ea(e.startState),{viewport:i}=e.view,o=e.changes.mapPos(this.decoratedTo,1);t.length<i.to&&!r&&t.type==this.tree.type&&o>=i.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=o):(t!=this.tree||e.viewportChanged||r)&&(this.tree=t,this.decorations=this.buildDeco(e.view,n),this.decoratedTo=i.to)}buildDeco(e,t){if(!t||!this.tree.length)return a.NZ.none;let n=new o.vB;for(let{from:r,to:i}of e.visibleRanges)(0,s.DM)(this.tree,t,(e,t,r)=>{n.add(e,t,this.markCache[r]||(this.markCache[r]=a.NZ.mark({class:r})))},r,i);return n.finish()}},{decorations:e=>e.decorations})),ec=er.define([{tag:s._A.meta,color:"#404740"},{tag:s._A.link,textDecoration:"underline"},{tag:s._A.heading,textDecoration:"underline",fontWeight:"bold"},{tag:s._A.emphasis,fontStyle:"italic"},{tag:s._A.strong,fontWeight:"bold"},{tag:s._A.strikethrough,textDecoration:"line-through"}
2,{tag:s._A.keyword,color:"#708"},{tag:[s._A.atom,s._A.bool,s._A.url,s._A.contentSeparator,s._A.labelName],color:"#219"},{tag:[s._A.literal,s._A.inserted],color:"#164"},{tag:[s._A.string,s._A.deleted],color:"#a11"},{tag:[s._A.regexp,s._A.escape,s._A.special(s._A.string)],color:"#e40"},{tag:s._A.definition(s._A.variableName),color:"#00f"},{tag:s._A.local(s._A.variableName),color:"#30a"},{tag:[s._A.typeName,s._A.namespace],color:"#085"},{tag:s._A.className,color:"#167"},{tag:[s._A.special(s._A.variableName),s._A.macroName],color:"#256"},{tag:s._A.definition(s._A.propertyName),color:"#00c"},{tag:s._A.comment,color:"#940"},{tag:s._A.invalid,color:"#f00"}]),eu=a.Lz.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),eh="()[]{}",ed=o.sj.define({combine:e=>(0,o.QR)(e,{afterCursor:!0,brackets:eh,maxScanDistance:1e4,renderMatch:em})}),ef=a.NZ.mark({class:"cm-matchingBracket"}),ep=a.NZ.mark({class:"cm-nonmatchingBracket"});function em(e){let t=[],n=e.matched?ef:ep;return t.push(n.range(e.start.from,e.start.to)),e.end&&t.push(n.range(e.end.from,e.end.to)),t}function eg(e){let t=[],n=e.facet(ed);for(let r of e.selection.ranges){if(!r.empty)continue;let i=ek(e,r.head,-1,n)||r.head>0&&ek(e,r.head-1,1,n)||n.afterCursor&&(ek(e,r.head,1,n)||r.head<e.doc.length&&ek(e,r.head+1,-1,n));i&&(t=t.concat(n.renderMatch(i,e)))}return a.NZ.set(t,!0)}let ev=[a.Z9.fromClass(class{constructor(e){this.paused=!1,this.decorations=eg(e.state)}update(e){(e.docChanged||e.selectionSet||this.paused)&&(e.view.composing?(this.decorations=this.decorations.map(e.changes),this.paused=!0):(this.decorations=eg(e.state),this.paused=!1))}},{decorations:e=>e.decorations}),eu];function ey(e={}){return[ed.of(e),ev]}let eb=new i.uY;function ex(e,t,n){let r=e.prop(t<0?i.uY.openedBy:i.uY.closedBy);if(r)return r;if(1==e.name.length){let r=n.indexOf(e.name);if(r>-1&&r%2==+(t<0))return[n[r+t]]}return null}function ew(e){let t=e.type.prop(eb);return t?t(e.node):e}function ek(e,t,n,r={}){let i=r.maxScanDistance||1e4,o=r.brackets||eh,a=f(e),s=a.resolveInner(t,n);for(let e=s;e;e=e.parent){let r=ex(e.type,n,o);if(r&&e.from<e.to){let i=ew(e);if(i&&(n>0?t>=i.from&&t<i.to:t>i.from&&t<=i.to))return function(e,t,n,r,i){let o=t.parent,a={from:n.from,to:n.to},s=0,l=null==o?void 0:o.cursor();if(l&&(e<0?l.childBefore(t.from):l.childAfter(t.to)))do if(e<0?l.to<=t.from:l.from>=t.to){if(0==s&&r.indexOf(l.type.name)>-1&&l.from<l.to){let e=ew(l);return{start:a,end:e?{from:e.from,to:e.to}:void 0,matched:!0}}else if(ex(l.type,e,i))s++;else if(ex(l.type,-e,i)){if(0==s){let e=ew(l);return{start:a,end:e&&e.from<e.to?{from:e.from,to:e.to}:void 0,matched:!1}}s--}}while(e<0?l.prevSibling():l.nextSibling());return{start:a,matched:!1}}(n,e,i,r,o)}}return function(e,t,n,r,i,o,a){if(n<0?!t:t==e.doc.length)return null;let s=n<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),l=a.indexOf(s);if(l<0||l%2==0!=n>0)return null;let c={from:n<0?t-1:t,to:n>0?t+1:t},u=e.doc.iterRange(t,n>0?e.doc.length:0),h=0;for(let e=0;!u.next().done&&e<=o;){let o=u.value;n<0&&(e+=o.length);let s=t+e*n;for(let e=n>0?0:o.length-1,t=n>0?o.length:-1;e!=t;e+=n){let t=a.indexOf(o[e]);if(!(t<0)&&r.resolveInner(s+e,1).type==i)if(t%2==0==n>0)h++;else{if(1==h)return{start:c,end:{from:s+e,to:s+e+1},matched:t>>1==l>>1};h--}}n>0&&(e+=o.length)}return u.done?{start:c,matched:!1}:null}(e,t,n,a,s.type,i,o)}let eS=Object.create(null),eM=[i.Z6.none],eA=[],eE=Object.create(null),eC=Object.create(null);for(let[e,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])eC[e]=function(e,t){let n=[];for(let r of t.split(" ")){let t=[];for(let n of r.split(".")){let r=e[n]||s._A[n];r?"function"==typeof r?t.length?t=t.map(r):eO(n,`Modifier ${n} used at start of tag`):t.length?eO(n,`Tag ${n} used as modifier`):t=Array.isArray(r)?r:[r]:eO(n,`Unknown highlighting tag ${n}`)}for(let e of t)n.push(e)}if(!n.length)return 0;let r=t.replace(/ /g,"_"),o=r+" "+n.map(e=>e.id),a=eE[o];if(a)return a.id;let l=eE[o]=i.Z6.define({id:eM.length,name:r,props:[(0,s.pn)({[r]:n})]});return eM.push(l),l.id}(eS,t);function eO(e,t){eA.indexOf(e)>-1||(eA.push(e),console.warn(t))}a.OP.RTL,a.OP.LTR},80704(e,t,n){"use strict";n.d(t,{$w:()=>v,bu:()=>w});var r=n(2749),i=n(3708),o=n(61145);class a{constructor(e,t,n){this.from=e,this.to=t,this.diagnostic=n}}class s{constructor(e,t,n){this.diagnostics=e,this.panel=t,this.selected=n}static init(e,t,n){let o=n.facet(b).markerFilter;o&&(e=o(e,n));let a=e.slice().sort((e,t)=>
2e.from-t.from||e.to-t.to),c=new i.vB,u=[],h=0,d=n.doc.iter(),f=0,p=n.doc.length;for(let e=0;;){let t,n,i=e==a.length?null:a[e];if(!i&&!u.length)break;if(u.length)t=h,n=u.reduce((e,t)=>Math.min(e,t.to),i&&i.from>t?i.from:1e8);else{if((t=i.from)>p)break;n=i.to,u.push(i),e++}for(;e<a.length;){let r=a[e];if(r.from==t&&(r.to>r.from||r.to==t))u.push(r),e++,n=Math.min(r.to,n);else{n=Math.min(r.from,n);break}}n=Math.min(n,p);let o=!1;if(u.some(e=>e.from==t&&(e.to==n||n==p))&&!(o=t==n)&&n-t<10){let e=t-(f+d.value.length);e>0&&(d.next(e),f=t);for(let e=t;;){if(e>=n){o=!0;break}if(!d.lineBreak&&f+d.value.length>e)break;e=f+d.value.length,f+=d.value.length,d.next()}}let s=function(e){let t="hint",n=1;for(let i of e){var r;let e="error"==(r=i.severity)?4:"warning"==r?3:"info"==r?2:1;e>n&&(n=e,t=i.severity)}return t}(u);if(o)c.add(t,t,r.NZ.widget({widget:new M(s),diagnostics:u.slice()}));else{let e=u.reduce((e,t)=>t.markClass?e+" "+t.markClass:e,"");c.add(t,n,r.NZ.mark({class:"cm-lintRange cm-lintRange-"+s+e,diagnostics:u.slice(),inclusiveEnd:u.some(e=>e.to>n)}))}if((h=n)==p)break;for(let e=0;e<u.length;e++)u[e].to<=h&&u.splice(e--,1)}let m=c.finish();return new s(m,t,l(m))}}function l(e,t=null,n=0){let r=null;return e.between(n,1e9,(e,n,{spec:i})=>{if(!(t&&0>i.diagnostics.indexOf(t)))if(r){if(0>i.diagnostics.indexOf(r.diagnostic))return!1;r=new a(r.from,n,r.diagnostic)}else r=new a(e,n,t||i.diagnostics[0])}),r}function c(e,t){let n=t.pos,r=t.end||n,i=e.state.facet(b).hideOn(e,n,r);if(null!=i)return i;let o=e.startState.doc.lineAt(t.pos);return!!(e.effects.some(e=>e.is(h))||e.changes.touchesRange(o.from,Math.max(o.to,r)))}function u(e,t){return e.field(p,!1)?t:t.concat(i.Pe.appendConfig.of(D))}let h=i.Pe.define(),d=i.Pe.define(),f=i.Pe.define(),p=i.sU.define({create:()=>new s(r.NZ.none,null,null),update(e,t){if(t.docChanged&&e.diagnostics.size){let n=e.diagnostics.map(t.changes),r=null,i=e.panel;if(e.selected){let i=t.changes.mapPos(e.selected.from,1);r=l(n,e.selected.diagnostic,i)||l(n,null,i)}!n.size&&i&&t.state.facet(b).autoPanel&&(i=null),e=new s(n,i,r)}for(let n of t.effects)if(n.is(h)){let r=t.state.facet(b).autoPanel?n.value.length?E.open:null:e.panel;e=s.init(n.value,r,t.state)}else n.is(d)?e=new s(e.diagnostics,n.value?E.open:null,e.selected):n.is(f)&&(e=new s(e.diagnostics,e.panel,n.value));return e},provide:e=>[r.S7.from(e,e=>e.panel),r.Lz.decorations.from(e,e=>e.diagnostics)]}),m=r.NZ.mark({class:"cm-lintRange cm-lintRange-active"}),g=e=>{let t=e.state.field(p,!1);return!!t&&!!t.panel&&(e.dispatch({effects:d.of(!1)}),!0)},v=[{key:"Mod-Shift-m",run:e=>{let t=e.state.field(p,!1);t&&t.panel||e.dispatch({effects:u(e.state,[d.of(!0)])});let n=(0,r.ld)(e,E.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},preventDefault:!0},{key:"F8",run:e=>{let t=e.state.field(p,!1);if(!t)return!1;let n=e.state.selection.main,i=l(t.diagnostics,null,n.to+1);return(!!i||!!(i=l(t.diagnostics,null,0))&&(i.from!=n.from||i.to!=n.to))&&(e.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0}),(0,r.ab)(e,i.from,1,{tooltip:T,until:e=>e.docChanged||e.newSelection.main.head<i.from||e.newSelection.main.head>i.to}),!0)}}],y=r.Z9.fromClass(class{constructor(e){this.view=e,this.timeout=-1,this.set=!0;let{delay:t}=e.state.facet(b);this.lintTime=Date.now()+t,this.run=this.run.bind(this),this.timeout=setTimeout(this.run,t)}run(){clearTimeout(this.timeout);let e=Date.now();if(e<this.lintTime-10)this.timeout=setTimeout(this.run,this.lintTime-e);else{this.set=!1;let{state:e}=this.view,{sources:t}=e.facet(b);t.length&&function(e,t,n){let r=[],i=-1;for(let o of e)o.then(n=>{r.push(n),clearTimeout(i),r.length==e.length?t(r):i=setTimeout(()=>t(r),200)},n)}(t.map(e=>Promise.resolve(e(this.view))),t=>{var n,r;this.view.state.doc==e.doc&&this.view.dispatch((n=this.view.state,r=t.reduce((e,t)=>e.concat(t)),{effects:u(n,[h.of(r)])}))},e=>{(0,r.c_)(this.view.state,e)})}}update(e){let t=e.state.facet(b);(e.docChanged||t!=e.startState.facet(b)||t.needsRefresh&&t.needsRefresh(e))&&(this.lintTime=Date.now()+t.delay,this.set||(this.set=!0,this.timeout=setTimeout(this.run,t.delay)))}force(){this.set&&(this.lintTime=Date.now(),this.run())}destroy(){clearTimeout(this.timeout)}}),b=i.sj.define({combine:e=>({sources:e.map(e=>e.source).filter(e=>null!=e),...(0,i.QR)(e.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{delay:Math.max,markerFilter:x,tooltipFilter:x,needsRefresh:(e,t)=>e?t?n=>e(n)||t(n):e:t,hideOn:(e,t)=>e?t?(n,r,i)=>e(n,r,i)||t(n,r,i):e:t,autoPanel:(e,t)=>
2e||t})})});function x(e,t){return e?t?(n,r)=>t(e(n,r),r):e:t}function w(e,t={}){return[b.of({source:e,config:t}),y,D]}function k(e){let t=[];if(e)t:for(let{name:n}of e){for(let e=0;e<n.length;e++){let r=n[e];if(/[a-zA-Z]/.test(r)&&!t.some(e=>e.toLowerCase()==r.toLowerCase())){t.push(r);continue t}}t.push("")}return t}function S(e,t,n){var r;let i=n?k(t.actions):[];return(0,o.A)("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},(0,o.A)("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage(e):t.message),null==(r=t.actions)?void 0:r.map((n,r)=>{let a=!1,s=r=>{if(r.preventDefault(),a)return;a=!0;let i=l(e.state.field(p).diagnostics,t);i&&n.apply(e,i.from,i.to)},{name:c}=n,u=i[r]?c.indexOf(i[r]):-1,h=u<0?c:[c.slice(0,u),(0,o.A)("u",c.slice(u,u+1)),c.slice(u+1)],d=n.markClass?" "+n.markClass:"";return(0,o.A)("button",{type:"button",class:"cm-diagnosticAction"+d,onclick:s,onmousedown:s,"aria-label":` Action: ${c}${u<0?"":` (access key "${i[r]})"`}.`},h)}),t.source&&(0,o.A)("div",{class:"cm-diagnosticSource"},t.source))}class M extends r.xO{constructor(e){super(),this.sev=e}eq(e){return e.sev==this.sev}toDOM(){return(0,o.A)("span",{class:"cm-lintPoint cm-lintPoint-"+this.sev})}}class A{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(0xffffffff*Math.random()).toString(16),this.dom=S(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class E{constructor(e){this.view=e,this.items=[];let t=t=>{if(!t.ctrlKey&&!t.altKey&&!t.metaKey){if(27==t.keyCode)g(this.view),this.view.focus();else if(38==t.keyCode||33==t.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==t.keyCode||34==t.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==t.keyCode)this.moveSelection(0);else if(35==t.keyCode)this.moveSelection(this.items.length-1);else if(13==t.keyCode)this.view.focus();else{if(!(t.keyCode>=65)||!(t.keyCode<=90)||!(this.selectedIndex>=0))return;let{diagnostic:n}=this.items[this.selectedIndex],r=k(n.actions);for(let i=0;i<r.length;i++)if(r[i].toUpperCase().charCodeAt(0)==t.keyCode){let t=l(this.view.state.field(p).diagnostics,n);t&&n.actions[i].apply(e,t.from,t.to)}}t.preventDefault()}},n=e=>{for(let t=0;t<this.items.length;t++)this.items[t].dom.contains(e.target)&&this.moveSelection(t)};this.list=(0,o.A)("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t,onclick:n}),this.dom=(0,o.A)("div",{class:"cm-panel-lint"},this.list,(0,o.A)("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>g(this.view)},"\xd7")),this.update()}get selectedIndex(){let e=this.view.state.field(p).selected;if(!e)return -1;for(let t=0;t<this.items.length;t++)if(this.items[t].diagnostic==e.diagnostic)return t;return -1}update(){let{diagnostics:e,selected:t}=this.view.state.field(p),n=0,r=!1,i=null,o=new Set;for(e.between(0,this.view.state.doc.length,(e,a,{spec:s})=>{for(let e of s.diagnostics){if(o.has(e))continue;o.add(e);let a=-1,s;for(let t=n;t<this.items.length;t++)if(this.items[t].diagnostic==e){a=t;break}a<0?(s=new A(this.view,e),this.items.splice(n,0,s),r=!0):(s=this.items[a],a>n&&(this.items.splice(n,a-n),r=!0)),t&&s.diagnostic==t.diagnostic?s.dom.hasAttribute("aria-selected")||(s.dom.setAttribute("aria-selected","true"),i=s):s.dom.hasAttribute("aria-selected")&&s.dom.removeAttribute("aria-selected"),n++}});n<this.items.length&&!(1==this.items.length&&this.items[0].diagnostic.from<0);)r=!0,this.items.pop();0==this.items.length&&(this.items.push(new A(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),r=!0),i?(this.list.setAttribute("aria-activedescendant",i.id),this.view.requestMeasure({key:this,read:()=>({sel:i.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:e,panel:t})=>{let n=t.height/this.list.offsetHeight;e.top<t.top?this.list.scrollTop-=(t.top-e.top)/n:e.bottom>t.bottom&&(this.list.scrollTop+=(e.bottom-t.bottom)/n)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),r&&this.sync()}sync(){let e=this.list.firstChild;function t(){let t=e;e=t.nextSibling,t.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;e!=n.dom;)t();e=n.dom.nextSibling}else this.list.insertBefore(n.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=l(this.view.state.field(p).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:f.of(t)})}static open(e){return new E(e)}}function C(e){return function(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${t}>${encodeURIComponent(e)}</svg>')`}(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${e}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}let O=r.Lz.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:C("#f11")},".cm-lintRange-warning":{backgroundImage:C("orange")},".cm-lintRange-info":{backgroundImage:C("#999")},".cm-lintRange-hint":{backgroundImage:C("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}},"&dark .cm-lintRange-active":{backgroundColor:"#86714a80"},"&dark .cm-panel.cm-panel-lint ul":{"& [aria-selected]":{backgroundColor:"#2e343e"}}});r.wJ;let P=i.Pe.define(),T=(0,r.Ux)(function(e,t,n){let{diagnostics:r}=e.state.field(p),i,a=-1,s=-1;r.between(t-(n<0),t+ +(n>0),(e,r,{spec:o})=>{if(t>=e&&t<=r&&(e==r||(t>e||n>0)&&(t<r||n<0)))return i=o.diagnostics,a=e,s=r,!1});let l=e.state.facet(b).tooltipFilter;
2return(i&&l&&(i=l(i,e.state)),i)?{pos:a,end:s,above:!0,create:()=>{var t,n;return{dom:(t=e,n=i,(0,o.A)("ul",{class:"cm-tooltip-lint"},n.map(e=>S(t,e,!1))))}}}:null},{hideOn:c}),D=[p,r.Lz.decorations.compute([p],e=>{let{selected:t,panel:n}=e.field(p);return t&&n&&t.from!=t.to?r.NZ.set([m.range(t.from,t.to)]):r.NZ.none}),T,O]},3708(e,t,n){"use strict";let r;n.d(t,{ZX:()=>ep,kn:()=>eV,MK:()=>M,iR:()=>P,Fh:()=>A,zK:()=>k,sU:()=>G,om:()=>eO,$t:()=>ew,Pe:()=>ef,OF:()=>B,Nb:()=>Y,vS:()=>S,QR:()=>ek,y$:()=>eF,YH:()=>eu,FB:()=>eS,Gu:()=>T,Je:()=>eb,vB:()=>eP,VR:()=>D,EY:()=>f,sj:()=>H});let i=[],o=[],a="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,t=0;e<a.length;e++)(e%2?o:i).push(t+=a[e]);function s(e){return e>=127462&&e<=127487}function l(e,t,n){if(t==e.length)return t;t&&u(e.charCodeAt(t))&&h(e.charCodeAt(t-1))&&t--;let r=c(e,t);for(t+=d(r);t<e.length;){let a=c(e,t);if(8205==r||8205==a||n&&function(e){if(e<768)return!1;for(let t=0,n=i.length;;){let r=t+n>>1;if(e<i[r])n=r;else{if(!(e>=o[r]))return!0;t=r+1}if(t==n)return!1}}(a))t+=d(a),r=a;else if(s(a)){let n=0,r=t-2;for(;r>=0&&s(c(e,r));)n++,r-=2;if(n%2==0)break;t+=2}else break}return t}function c(e,t){let n=e.charCodeAt(t);if(!h(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return u(r)?(n-55296<<10)+(r-56320)+65536:n}function u(e){return e>=56320&&e<57344}function h(e){return e>=55296&&e<56320}function d(e){return e<65536?1:2}class f{lineAt(e){if(e<0||e>this.length)throw RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){[e,t]=w(this,e,t);let r=[];return this.decompose(0,e,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(t,this.length,r,1),m.from(r,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=w(this,e,t);let n=[];return this.decompose(e,t,n,0),m.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),r=new v(this),i=new v(e);for(let e=t,o=t;;){if(r.next(e),i.next(e),e=0,r.lineBreak!=i.lineBreak||r.done!=i.done||r.value!=i.value)return!1;if(o+=r.value.length,r.done||o>=n)return!0}}iter(e=1){return new v(this,e)}iterRange(e,t=this.length){return new y(this,e,t)}iterLines(e,t){let n;if(null==e)n=this.iter();else{null==t&&(t=this.lines+1);let r=this.line(e).from;n=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new b(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}static of(e){if(0==e.length)throw RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new p(e):m.from(p.split(e,[])):f.empty}}class p extends f{constructor(e,t=function(e){let t=-1;for(let n of e)t+=n.length+1;return t}(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,r){for(let i=0;;i++){let o=this.text[i],a=r+o.length;if((t?n:a)>=e)return new x(r,a,n,o);r=a+1,n++}}decompose(e,t,n,r){var i;let o=e<=0&&t>=this.length?this:new p((i=this.text,g(i,[""],e,t)),Math.min(t,this.length)-Math.max(0,e));if(1&r){let e=n.pop(),t=g(o.text,e.text.slice(),0,o.length);if(t.length<=32)n.push(new p(t,e.length+o.length));else{let e=t.length>>1;n.push(new p(t.slice(0,e)),new p(t.slice(e)))}}else n.push(o)}replace(e,t,n){var r;if(!(n instanceof p))return super.replace(e,t,n);[e,t]=w(this,e,t);let i=g(this.text,g(n.text,(r=this.text,g(r,[""],0,e))),t),o=this.length+n.length-(t-e);return i.length<=32?new p(i,o):m.from(p.split(i,[]),o)}sliceString(e,t=this.length,n="\n"){[e,t]=w(this,e,t);let r="";for(let i=0,o=0;i<=t&&o<this.text.length;o++){let a=this.text[o],s=i+a.length;i>e&&o&&(r+=n),e<s&&t>i&&(r+=a.slice(Math.max(0,e-i),t-i)),i=s+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],r=-1;for(let i of e)n.push(i),r+=i.length+1,32==n.length&&(t.push(new p(n,r)),n=[],r=-1);return r>-1&&t.push(new p(n,r)),t}}class m extends f{constructor(e,t){for(let n of(super(),this.children=e,this.length=t,this.lines=0,e))this.lines+=n.lines}lineInner(e,t,n,r){for(let i=0;;i++){let o=this.children[i],a=r+o.length,s=n+o.lines-1;if((t?s:a)>=e)return o.lineInner(e,t,n,r);r=a+1,n=s+1}}decompose(e,t,n,r){for(let i=0,o=0;o<=t&&i<this.children.length;i++){let a=this.children[i],s=o+a.length;if(e<=s&&t>=o){let i=r&(o<=e|2*(s>=t));o>=e&&s<=t&&!i?n.push(a):a.decompose(e-o,t-o,n,i)}o=s+1}}replace(e,t,n){if([e,t]=w(this,e,t),n.lines<this.lines)for(let r=0,i=0;r<this.children.length;r++){let o=this.children[r],a=i+o.length;if(e>=i&&t<=a){let s=o.replace(e-i,t-i,n),l=this.lines-o.lines+s.lines;if(s.lines<l>>4&&s.lines>l>>6){let i=this.children.slice();return i[r]=s,new m(i,this.length-(t-e)+n.length)}return super.replace(i,a,s)}i=a+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n="\n"){[e,t]=w(this,e,t);let r="";for(let i=0,o=0;i<this.children.length&&o<=t;i++){let a=this.children[i],s=o+a.length;o>e&&i&&(r+=n),e<s&&t>
vendor: 6,420 bytes, line 2
2o&&(r+=a.sliceString(e-o,t-o,n)),o=s+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof m))return 0;let n=0,[r,i,o,a]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=t,i+=t){if(r==o||i==a)return n;let s=this.children[r],l=e.children[i];if(s!=l)return n+s.scanIdentical(l,t);n+=s.length+1}}static from(e,t=e.reduce((e,t)=>e+t.length+1,-1)){let n=0;for(let t of e)n+=t.lines;if(n<32){let n=[];for(let t of e)t.flatten(n);return new p(n,t)}let r=Math.max(32,n>>5),i=r<<1,o=r>>1,a=[],s=0,l=-1,c=[];function u(){0!=s&&(a.push(1==c.length?c[0]:m.from(c,l)),l=-1,s=c.length=0)}for(let t of e)!function e(t){let n;if(t.lines>i&&t instanceof m)for(let n of t.children)e(n);else t.lines>o&&(s>o||!s)?(u(),a.push(t)):t instanceof p&&s&&(n=c[c.length-1])instanceof p&&t.lines+n.lines<=32?(s+=t.lines,l+=t.length+1,c[c.length-1]=new p(n.text.concat(t.text),n.length+1+t.length)):(s+t.lines>r&&u(),s+=t.lines,l+=t.length+1,c.push(t))}(t);return u(),1==a.length?a[0]:new m(a,t)}}function g(e,t,n=0,r=1e9){for(let i=0,o=0,a=!0;o<e.length&&i<=r;o++){let s=e[o],l=i+s.length;l>=n&&(l>r&&(s=s.slice(0,r-i)),i<n&&(s=s.slice(n-i)),a?(t[t.length-1]+=s,a=!1):t.push(s)),i=l+1}return t}f.empty=new p([""],0);class v{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof p?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,r=this.nodes[n],i=this.offsets[n],o=i>>1,a=r instanceof p?r.text.length:r.children.length;if(o==(t>0?a:0)){if(0==n)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&i)==(t>0?0:1)){if(this.offsets[n]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(r instanceof p){let i=r.text[o+(t<0?-1:0)];if(this.offsets[n]+=t,i.length>Math.max(0,e))return this.value=0==e?i:t>0?i.slice(e):i.slice(0,i.length-e),this;e-=i.length}else{let i=r.children[o+(t<0?-1:0)];e>i.length?(e-=i.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(i),this.offsets.push(t>0?1:(i instanceof p?i.text.length:i.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class y{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new v(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=n?r:t<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class b{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:r}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}"u">typeof Symbol&&(f.prototype[Symbol.iterator]=function(){return this.iter()},v.prototype[Symbol.iterator]=y.prototype[Symbol.iterator]=b.prototype[Symbol.iterator]=function(){return this});class x{constructor(e,t,n,r){this.from=e,this.to=t,this.number=n,this.text=r}get length(){return this.to-this.from}}function w(e,t,n){return[t=Math.max(0,Math.min(e.length,t)),Math.max(t,Math.min(e.length,n))]}function k(e,t,n=!0,r=!0){return function(e,t,n=!0,r=!0){return(n?l:function(e,t,n){for(;t>1;){let r=l(e,t-2,n);if(r<t)return r;t--}return 0})(e,t,r)}(e,t,n,r)}function S(e,t){let n=e.charCodeAt(t);if(!(n>=55296&&n<56320)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return r>=56320&&r<57344?(n-55296<<10)+(r-56320)+65536:n}function M(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,(1023&e)+56320)}function A(e){return e<65536?1:2}let E=/\r\n?|\n/;var C,O,P=((C=P||(P={}))[C.Simple=0]="Simple",C[C.TrackDel=1]="TrackDel",C[C.TrackBefore=2]="TrackBefore",C[C.TrackAfter=3]="TrackAfter",C);class T{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t+1];e+=n<0?this.sections[t]:n}return e}get empty(){return 0==this.sections.length||2==this.sections.length&&this.sections[1]<0}iterGaps(e){for(let t=0,n=0,r=0;t<this.sections.length;){let i=this.sections[t++],o=this.sections[t++];o<0?(e(n,r,i),r+=i):r+=o,n+=i}}iterChangedRanges(e,t=!1){I(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let n=this.sections[t++],r=this.sections[t++];r<0?e.push(n,r):e.push(r,n)}return new T(e)}composeDesc(e){return this.empty?e:e.empty?this:_(this,e)}mapDesc(e,t=!1){return e.empty?this:z(this,e,t)}mapPos(e,t=-1,n=P.Simple){let r=0,i=0;for(let o=0;o<this.sections.length;){let a=this.sections[o++],s=this.sections[o++],l=r+a;if(s<0){if(l>e)return i+(e-r);i+=a}else{if(n!=P.Simple&&l>=e&&(n==P.TrackDel&&r<e&&l>e||n==P.TrackBefore&&r<e||n==P.TrackAfter&&l>e))return null;if(l>e||l==e&&t<0&&!a)return e==r||t<0?i:i+s;i+=s}r=l}if(e>r)throw RangeError(`Position ${e} is out of range for changeset of length ${r}`);return i}touchesRange(e,t=e){for(let n=0,r=0;n<this.sections.length&&r<=t;){let i=this.sections[n++],o=this.sections[n++],a=r+i;if(o>=0&&r<=t&&a>=e)return!(r<e)||!(a>t)||"cover";r=a}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let n=this.sections[t++],r=this.sections[t++];e+=(e?" ":"")+n+(r>=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(e=>"number"!=typeof e))throw RangeError("Invalid JSON representation of ChangeDesc");return new T(e)}static create(e){return new T(e)}}class D extends T{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw RangeError("Applying change set to a document with the wrong length");return I(this,(t,n,r,i,o)=>e=e.replace(r,r+(n-t),o),!1),e}
2mapDesc(e,t=!1){return z(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let r=0,i=0;r<t.length;r+=2){let o=t[r],a=t[r+1];if(a>=0){t[r]=a,t[r+1]=o;let s=r>>1;for(;n.length<s;)n.push(f.empty);n.push(o?e.slice(i,i+o):f.empty)}i+=o}return new D(t,n)}compose(e){return this.empty?e:e.empty?this:_(this,e,!0)}map(e,t=!1){return e.empty?this:z(this,e,t,!0)}iterChanges(e,t=!1){I(this,e,t)}get desc(){return T.create(this.sections)}filter(e){let t=[],n=[],r=[],i=new L(this);n:for(let o=0,a=0;;){let s=o==e.length?1e9:e[o++];for(;a<s||a==s&&0==i.len;){if(i.done)break n;let e=Math.min(i.len,s-a);R(r,e,-1);let o=-1==i.ins?-1:0==i.off?i.ins:0;R(t,e,o),o>0&&j(n,t,i.text),i.forward(e),a+=e}let l=e[o++];for(;a<l;){if(i.done)break n;let e=Math.min(i.len,l-a);R(t,e,-1),R(r,e,-1==i.ins?-1:0==i.off?i.ins:0),i.forward(e),a+=e}}return{changes:new D(t,n),filtered:T.create(r)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t],r=this.sections[t+1];r<0?e.push(n):0==r?e.push([n]):e.push([n].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,n){let r=[],i=[],o=0,a=null;function s(e=!1){if(!e&&!r.length)return;o<t&&R(r,t-o,-1);let n=new D(r,i);a=a?a.compose(n.map(a)):n,r=[],i=[],o=0}return!function e(l){if(Array.isArray(l))for(let t of l)e(t);else if(l instanceof D){if(l.length!=t)throw RangeError(`Mismatched change set length (got ${l.length}, expected ${t})`);s(),a=a?a.compose(l.map(a)):l}else{let{from:e,to:a=e,insert:c}=l;if(e>a||e<0||a>t)throw RangeError(`Invalid change range ${e} to ${a} (in doc of length ${t})`);let u=c?"string"==typeof c?f.of(c.split(n||E)):c:f.empty,h=u.length;if(e==a&&0==h)return;e<o&&s(),e>o&&R(r,e-o,-1),R(r,a-e,h),j(i,r,u),o=a}}(e),s(!a),a}static empty(e){return new D(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let r=0;r<e.length;r++){let i=e[r];if("number"==typeof i)t.push(i,-1);else if(!Array.isArray(i)||"number"!=typeof i[0]||i.some((e,t)=>t&&"string"!=typeof e))throw RangeError("Invalid JSON representation of ChangeSet");else if(1==i.length)t.push(i[0],0);else{for(;n.length<r;)n.push(f.empty);n[r]=f.of(i.slice(1)),t.push(i[0],n[r].length)}}return new D(t,n)}static createSet(e,t){return new D(e,t)}}function R(e,t,n,r=!1){if(0==t&&n<=0)return;let i=e.length-2;i>=0&&n<=0&&n==e[i+1]?e[i]+=t:i>=0&&0==t&&0==e[i]?e[i+1]+=n:r?(e[i]+=t,e[i+1]+=n):e.push(t,n)}function j(e,t,n){if(0==n.length)return;let r=t.length-2>>1;if(r<e.length)e[e.length-1]=e[e.length-1].append(n);else{for(;e.length<r;)e.push(f.empty);e.push(n)}}function I(e,t,n){let r=e.inserted;for(let i=0,o=0,a=0;a<e.sections.length;){let s=e.sections[a++],l=e.sections[a++];if(l<0)i+=s,o+=s;else{let c=i,u=o,h=f.empty;for(;c+=s,u+=l,l&&r&&(h=h.append(r[a-2>>1])),!n&&a!=e.sections.length&&!(e.sections[a+1]<0);)s=e.sections[a++],l=e.sections[a++];t(i,c,o,u,h),i=c,o=u}}}function z(e,t,n,r=!1){let i=[],o=r?[]:null,a=new L(e),s=new L(t);for(let e=-1;;)if(a.done&&s.len||s.done&&a.len)throw Error("Mismatched change set lengths");else if(-1==a.ins&&-1==s.ins){let e=Math.min(a.len,s.len);R(i,e,-1),a.forward(e),s.forward(e)}else if(s.ins>=0&&(a.ins<0||e==a.i||0==a.off&&(s.len<a.len||s.len==a.len&&!n))){let t=s.len;for(R(i,s.ins,-1);t;){let n=Math.min(a.len,t);a.ins>=0&&e<a.i&&a.len<=n&&(R(i,0,a.ins),o&&j(o,i,a.text),e=a.i),a.forward(n),t-=n}s.next()}else if(a.ins>=0){let t=0,n=a.len;for(;n;)if(-1==s.ins){let e=Math.min(n,s.len);t+=e,n-=e,s.forward(e)}else if(0==s.ins&&s.len<n)n-=s.len,s.next();else break;R(i,t,e<a.i?a.ins:0),o&&e<a.i&&j(o,i,a.text),e=a.i,a.forward(a.len-n)}else if(a.done&&s.done)return o?D.createSet(i,o):T.create(i);else throw Error("Mismatched change set lengths")}function _(e,t,n=!1){let r=[],i=n?[]:null,o=new L(e),a=new L(t);for(let e=!1;;)if(o.done&&a.done)return i?D.createSet(r,i):T.create(r);else if(0==o.ins)R(r,o.len,0,e),o.next();else if(0!=a.len||a.done)if(o.done||a.done)throw Error("Mismatched change set lengths");else{let t=Math.min(o.len2,a.len),n=r.length;if(-1==o.ins){let n=-1==a.ins?-1:a.off?0:a.ins;R(r,t,n,e),i&&n&&j(i,r,a.text)}else -1==a.ins?(R(r,o.off?0:o.len,t,e),i&&j(i,r,o.textBit(t))):(R(r,o.off?0:o.len,a.off?0:a.ins,e),i&&!a.off&&j(i,r,a.text));e=(o.ins>t||a.ins>=0&&a.len>t)&&(e||r.length>n),o.forward2(t),a.forward(t)}else R(r,0,a.ins,e),i&&j(i,r,a.text),a.next()}class L{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return -2==this.ins}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?f.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?f.empty:t[n].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}
2forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class N{constructor(e,t,n,r){this.from=e,this.to=t,this.flags=n,this.goalColumn=r}get anchor(){return 32&this.flags?this.to:this.from}get head(){return 32&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 8&this.flags?-1:16&this.flags?1:0}get undirectional(){return(64&this.flags)>0}get bidiLevel(){let e=7&this.flags;return 7==e?null:e}map(e,t=-1){let n,r;return this.empty?n=r=e.mapPos(this.from,t):(n=e.mapPos(this.from,1),r=e.mapPos(this.to,-1)),n==this.from&&r==this.to?this:new N(n,r,this.flags,this.goalColumn)}extend(e,t=e,n=0){if(e<=this.anchor&&t>=this.anchor)return B.range(e,t,void 0,void 0,n);let r=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return B.range(this.anchor,r,void 0,void 0,n)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&this.goalColumn==e.goalColumn&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw RangeError("Invalid JSON representation for SelectionRange");return B.range(e.anchor,e.head)}static create(e,t,n,r){return new N(e,t,n,r)}}class B{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:B.create(this.ranges.map(n=>n.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let n=0;n<this.ranges.length;n++)if(!this.ranges[n].eq(e.ranges[n],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return 1==this.ranges.length?this:new B([this.main],0)}addRange(e,t=!0){return B.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let n=this.ranges.slice();return n[t]=e,B.create(n,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw RangeError("Invalid JSON representation for EditorSelection");return new B(e.ranges.map(e=>N.fromJSON(e)),e.main)}static single(e,t=e){return new B([B.range(e,t)],0)}static create(e,t=0){if(0==e.length)throw RangeError("A selection needs at least one range");for(let n=0,r=0;r<e.length;r++){let i=e[r];if(i.empty?i.from<=n:i.from<n)return B.normalized(e.slice(),t);n=i.to}return new B(e,t)}static cursor(e,t=0,n,r){return N.create(e,e,(0==t?0:t<0?8:16)|(null==n?7:Math.min(6,n)),r)}static range(e,t,n,r,i){let o=null==r?7:Math.min(6,r);return i||e==t||(i=t<e?1:-1),i&&(o|=i<0?8:16),t<e?N.create(t,e,32|o,n):N.create(e,t,o,n)}static undirectionalRange(e,t){return N.create(e,t,64,void 0)}static normalized(e,t=0){let n=e[t];e.sort((e,t)=>e.from-t.from),t=e.indexOf(n);for(let n=1;n<e.length;n++){let r=e[n],i=e[n-1];if(r.empty?r.from<=i.to:r.from<i.to){let o=i.from,a=Math.max(r.to,i.to);n<=t&&t--,e.splice(--n,2,r.anchor>r.head?B.range(a,o):B.range(o,a))}}return new B(e,t)}}function F(e,t){for(let n of e.ranges)if(n.to>t)throw RangeError("Selection points outside of document")}let V=0;class H{constructor(e,t,n,r,i){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=r,this.id=V++,this.default=e([]),this.extensions="function"==typeof i?i(this):i}get reader(){return this}static define(e={}){return new H(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(!e.combine?W:(e,t)=>e===t),!!e.static,e.enables)}of(e){return new $([],this,0,e)}compute(e,t){if(this.isStatic)throw Error("Can't compute a static facet");return new $(e,this,1,t)}computeN(e,t){if(this.isStatic)throw Error("Can't compute a static facet");return new $(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],n=>t(n.field(e)))}}function W(e,t){return e==t||e.length==t.length&&e.every((e,n)=>e===t[n])}class ${constructor(e,t,n,r){this.dependencies=e,this.facet=t,this.type=n,this.value=r,this.id=V++}dynamicSlot(e){var t;let n=this.value,r=this.facet.compareInput,i=this.id,o=e[i]>>1,a=2==this.type,s=!1,l=!1,c=[];for(let n of this.dependencies)"doc"==n?s=!0:"selection"==n?l=!0:((null!=(t=e[n.id])?t:1)&1)==0&&c.push(e[n.id]);return{create:e=>(e.values[o]=n(e),1),update(e,t){if(s&&t.docChanged||l&&(t.docChanged||t.selection)||K(e,c)){let t=n(e);if(a?!U(t,e.values[o],r):!r(t,e.values[o]))return e.values[o]=t,1}return 0},reconfigure:(e,t)=>
2{let s,l=t.config.address[i];if(null!=l){let i=en(t,l);if(this.dependencies.every(n=>n instanceof H?t.facet(n)===e.facet(n):!(n instanceof G)||t.field(n,!1)==e.field(n,!1))||(a?U(s=n(e),i,r):r(s=n(e),i)))return e.values[o]=i,0}else s=n(e);return e.values[o]=s,1}}}get extension(){return this}}function U(e,t,n){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function K(e,t){let n=!1;for(let r of t)1&et(e,r)&&(n=!0);return n}let q=H.define({static:!0});class G{constructor(e,t,n,r,i){this.id=e,this.createF=t,this.updateF=n,this.compareF=r,this.spec=i,this.provides=void 0}static define(e){let t=new G(V++,e.create,e.update,e.compare||((e,t)=>e===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(q).find(e=>e.field==this);return((null==t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,n)=>{let r=e.values[t],i=this.updateF(r,n);return this.compareF(r,i)?0:(e.values[t]=i,1)},reconfigure:(e,n)=>{let r=e.facet(q),i=n.facet(q),o;return(o=r.find(e=>e.field==this))&&o!=i.find(e=>e.field==this)?(e.values[t]=o.create(e),1):null!=n.config.address[this.id]?(e.values[t]=n.field(this),0):(e.values[t]=this.create(e),1)}}}init(e){return[this,q.of({field:this,create:e})]}get extension(){return this}}function Z(e){return t=>new X(t,e)}let Y={highest:Z(0),high:Z(1),default:Z(2),low:Z(3),lowest:Z(4)};class X{constructor(e,t){this.inner=e,this.prec=t}get extension(){return this}}class J{of(e){return new Q(this,e)}reconfigure(e){return J.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class Q{constructor(e,t){this.compartment=e,this.inner=t}get extension(){return this}}class ee{constructor(e,t,n,r,i,o){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=r,this.staticValues=i,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<n.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return null==t?e.default:this.staticValues[t>>1]}static resolve(e,t,n){var r,i,o;let a,s,l=[],c=Object.create(null),u=new Map;for(let n of(r=e,i=t,o=u,a=[[],[],[],[],[]],s=new Map,!function e(t,n){let r=s.get(t);if(null!=r){if(r<=n)return;let e=a[r].indexOf(t);e>-1&&a[r].splice(e,1),t instanceof Q&&o.delete(t.compartment)}if(s.set(t,n),Array.isArray(t))for(let r of t)e(r,n);else if(t instanceof Q){if(o.has(t.compartment))throw RangeError("Duplicate use of compartment in extensions");let r=i.get(t.compartment)||t.inner;o.set(t.compartment,r),e(r,n)}else if(t instanceof X)e(t.inner,t.prec);else if(t instanceof G)a[n].push(t),t.provides&&e(t.provides,n);else if(t instanceof $)a[n].push(t),t.facet.extensions&&e(t.facet.extensions,2);else{let r=t.extension;if(!r)throw Error(`Unrecognized extension value in extension set (${t}).`);if(r==t)throw Error(`Unrecognized extension value in extension set (${t}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);e(r,n)}}(r,2),a.reduce((e,t)=>e.concat(t))))n instanceof G?l.push(n):(c[n.facet.id]||(c[n.facet.id]=[])).push(n);let h=Object.create(null),d=[],f=[];for(let e of l)h[e.id]=f.length<<1,f.push(t=>e.slot(t));let p=null==n?void 0:n.config.facets;for(let e in c){let t=c[e],r=t[0].facet,i=p&&p[e]||[];if(t.every(e=>0==e.type))if(h[r.id]=d.length<<1|1,W(i,t))d.push(n.facet(r));else{let e=r.combine(t.map(e=>e.value));d.push(n&&r.compare(e,n.facet(r))?n.facet(r):e)}else{for(let e of t)0==e.type?(h[e.id]=d.length<<1|1,d.push(e.value)):(h[e.id]=f.length<<1,f.push(t=>e.dynamicSlot(t)));h[r.id]=f.length<<1,f.push(e=>(function(e,t,n){let r=n.map(t=>e[t.id]),i=n.map(e=>e.type),o=r.filter(e=>!(1&e)),a=e[t.id]>>1;function s(e){let n=[];for(let t=0;t<r.length;t++){let o=en(e,r[t]);if(2==i[t])for(let e of o)n.push(e);else n.push(o)}return t.combine(n)}return{create(e){for(let t of r)et(e,t);return e.values[a]=s(e),1},update(e,n){if(!K(e,o))return 0;let r=s(e);return t.compare(r,e.values[a])?0:(e.values[a]=r,1)},reconfigure(e,i){let o=K(e,r),l=i.config.facets[t.id],c=i.facet(t);if(l&&!o&&W(n,l))return e.values[a]=c,0;let u=s(e);return t.compare(u,c)?(e.values[a]=c,0):(e.values[a]=u,1)}}})(e,r,t))}}return new ee(e,u,f.map(e=>e(h)),h,d,c)}}function et(e,t){if(1&t)return 2;let n=t>>1,r=e.status[n];if(4==r)throw Error("Cyclic dependency between fields and/or facets");if(2&r)return r;e.status[n]=4;let i=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|i}function en(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}let er=H.define(),ei=H.define({combine:e=>e.some(e=>e),static:!0}),eo=H.define({combine:e=>e.length?e[0]:void 0,static:!0}),ea=H.define(),es=H.define(),el=H.define(),ec=H.define({combine:e=>!!e.length&&e[0]});class eu{constructor(e,t){this.type=e,this.value=t}static define(){return new eh}}class eh{of(e){return new eu(this,e)}}class ed{constructor(e){this.map=e}of(e){return new ef(this,e)}}class ef{constructor(e,t){this.type=e,this.value=t}
2map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new ef(this.type,t)}is(e){return this.type==e}static define(e={}){return new ed(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let r of e){let e=r.map(t);e&&n.push(e)}return n}}ef.reconfigure=ef.define(),ef.appendConfig=ef.define();class ep{constructor(e,t,n,r,i,o){this.startState=e,this.changes=t,this.selection=n,this.effects=r,this.annotations=i,this.scrollIntoView=o,this._doc=null,this._state=null,n&&F(n,t.newLength),i.some(e=>e.type==ep.time)||(this.annotations=i.concat(ep.time.of(Date.now())))}static create(e,t,n,r,i,o){return new ep(e,t,n,r,i,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(ep.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}function em(e,t,n){var r;let i,o,a;return n?(i=t.changes,o=D.empty(t.changes.length),a=e.changes.compose(t.changes)):(i=t.changes.map(e.changes),o=e.changes.mapDesc(t.changes,!0),a=e.changes.compose(i)),{changes:a,selection:t.selection?t.selection.map(o):null==(r=e.selection)?void 0:r.map(i),effects:ef.mapEffects(e.effects,i).concat(ef.mapEffects(t.effects,o)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function eg(e,t,n){let r=t.selection,i=ey(t.annotations);return t.userEvent&&(i=i.concat(ep.userEvent.of(t.userEvent))),{changes:t.changes instanceof D?t.changes:D.of(t.changes||[],n,e.facet(eo)),selection:r&&(r instanceof B?r:B.single(r.anchor,r.head)),effects:ey(t.effects),annotations:i,scrollIntoView:!!t.scrollIntoView}}ep.time=eu.define(),ep.userEvent=eu.define(),ep.addToHistory=eu.define(),ep.remote=eu.define();let ev=[];function ey(e){return null==e?ev:Array.isArray(e)?e:[e]}var eb=((O=eb||(eb={}))[O.Word=0]="Word",O[O.Space=1]="Space",O[O.Other=2]="Other",O);let ex=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;try{r=RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(e){}class ew{constructor(e,t,n,r,i,o){this.config=e,this.doc=t,this.selection=n,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=i,o&&(o._state=this);for(let e=0;e<this.config.dynamicSlots.length;e++)et(this,e<<1);this.computeSlot=null}field(e,t=!0){let n=this.config.address[e.id];if(null==n){if(t)throw RangeError("Field is not present in this state");return}return et(this,n),en(this,n)}update(...e){return function e(t,n,r){let i=eg(t,n.length?n[0]:{},t.doc.length);n.length&&!1===n[0].filter&&(r=!1);for(let e=1;e<n.length;e++){!1===n[e].filter&&(r=!1);let o=!!n[e].sequential;i=em(i,eg(t,n[e],o?i.changes.newLength:t.doc.length),o)}let o=ep.create(t,i.changes,i.selection,i.effects,i.annotations,i.scrollIntoView);return function(e){let t=e.startState,n=t.facet(el),r=e;for(let i=n.length-1;i>=0;i--){let o=n[i](e);o&&Object.keys(o).length&&(r=em(r,eg(t,o,e.changes.newLength),!0))}return r==e?e:ep.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}(r?function(t){let n=t.startState,r=!0;for(let e of n.facet(ea)){let n=e(t);if(!1===n){r=!1;break}Array.isArray(n)&&(r=!0===r?n:function(e,t){let n=[];for(let r=0,i=0;;){let o,a;if(r<e.length&&(i==t.length||t[i]>=e[r]))o=e[r++],a=e[r++];else{if(!(i<t.length))return n;o=t[i++],a=t[i++]}!n.length||n[n.length-1]<o?n.push(o,a):n[n.length-1]<a&&(n[n.length-1]=a)}}(r,n))}if(!0!==r){let e,i;if(!1===r)i=t.changes.invertedDesc,e=D.empty(n.doc.length);else{let n=t.changes.filter(r);e=n.changes,i=n.filtered.mapDesc(n.changes).invertedDesc}t=ep.create(n,e,t.selection&&t.selection.map(i),ef.mapEffects(t.effects,i),t.annotations,t.scrollIntoView)}let i=n.facet(es);for(let r=i.length-1;r>=0;r--){let o=i[r](t);t=o instanceof ep?o:Array.isArray(o)&&1==o.length&&o[0]instanceof ep?o[0]:e(n,ey(o),!1)}return t}(o):o)}(this,e,!0)}applyTransaction(e){let t,n=this.config,{base:r,compartments:i}=n;for(let t of e.effects)t.is(J.reconfigure)?(n&&(i=new Map,n.compartments.forEac
vendor: 4,368 bytes, line 2
2h((e,t)=>i.set(t,e)),n=null),i.set(t.value.compartment,t.value.extension)):t.is(ef.reconfigure)?(n=null,r=t.value):t.is(ef.appendConfig)&&(n=null,r=ey(r).concat(t.value));t=n?e.startState.values.slice():new ew(n=ee.resolve(r,i,this),this.doc,this.selection,n.dynamicSlots.map(()=>null),(e,t)=>t.reconfigure(e,this),null).values;let o=e.startState.facet(ei)?e.newSelection:e.newSelection.asSingle();new ew(n,e.newDoc,o,t,(t,n)=>n.update(t,e),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:B.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),r=this.changes(n.changes),i=[n.range],o=ey(n.effects);for(let n=1;n<t.ranges.length;n++){let a=e(t.ranges[n]),s=this.changes(a.changes),l=s.map(r);for(let e=0;e<n;e++)i[e]=i[e].map(l);let c=r.mapDesc(s,!0);i.push(a.range.map(c)),r=r.compose(l),o=ef.mapEffects(o,l).concat(ef.mapEffects(ey(a.effects),c))}return{changes:r,selection:B.create(i,t.mainIndex),effects:o}}changes(e=[]){return e instanceof D?e:D.of(e,this.doc.length,this.facet(ew.lineSeparator))}toText(e){return f.of(e.split(this.facet(ew.lineSeparator)||E))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return null==t?e.default:(et(this,t),en(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let n in e){let r=e[n];r instanceof G&&null!=this.config.address[r.id]&&(t[n]=r.spec.toJSON(this.field(e[n]),this))}return t}static fromJSON(e,t={},n){if(!e||"string"!=typeof e.doc)throw RangeError("Invalid JSON representation for EditorState");let r=[];if(n){for(let t in n)if(Object.prototype.hasOwnProperty.call(e,t)){let i=n[t],o=e[t];r.push(i.init(e=>i.spec.fromJSON(o,e)))}}return ew.create({doc:e.doc,selection:B.fromJSON(e.selection),extensions:t.extensions?r.concat([t.extensions]):r})}static create(e={}){let t=ee.resolve(e.extensions||[],new Map),n=e.doc instanceof f?e.doc:f.of((e.doc||"").split(t.staticFacet(ew.lineSeparator)||E)),r=e.selection?e.selection instanceof B?e.selection:B.single(e.selection.anchor,e.selection.head):B.single(0);return F(r,n.length),t.staticFacet(ei)||(r=r.asSingle()),new ew(t,n,r,t.dynamicSlots.map(()=>null),(e,t)=>t.create(e),null)}get tabSize(){return this.facet(ew.tabSize)}get lineBreak(){return this.facet(ew.lineSeparator)||"\n"}get readOnly(){return this.facet(ec)}phrase(e,...t){for(let t of this.facet(ew.phrases))if(Object.prototype.hasOwnProperty.call(t,e)){e=t[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(e,n)=>{if("$"==n)return"$";let r=+(n||1);return!r||r>t.length?e:t[r-1]})),e}languageDataAt(e,t,n=-1){let r=[];for(let i of this.facet(er))for(let o of i(this,t,n))Object.prototype.hasOwnProperty.call(o,e)&&r.push(o[e]);return r}charCategorizer(e){var t;let n=this.languageDataAt("wordChars",e);return t=n.length?n[0]:"",e=>{if(!/\S/.test(e))return eb.Space;if(function(e){if(r)return r.test(e);for(let t=0;t<e.length;t++){let n=e[t];if(/\w/.test(n)||n>"\x80"&&(n.toUpperCase()!=n.toLowerCase()||ex.test(n)))return!0}return!1}(e))return eb.Word;for(let n=0;n<t.length;n++)if(e.indexOf(t[n])>-1)return eb.Word;return eb.Other}}wordAt(e){let{text:t,from:n,length:r}=this.doc.lineAt(e),i=this.charCategorizer(e),o=e-n,a=e-n;for(;o>0;){let e=k(t,o,!1);if(i(t.slice(e,o))!=eb.Word)break;o=e}for(;a<r;){let e=k(t,a);if(i(t.slice(a,e))!=eb.Word)break;a=e}return o==a?null:B.range(o+n,a+n)}}function ek(e,t,n={}){let r={};for(let t of e)for(let e of Object.keys(t)){let i=t[e],o=r[e];if(void 0===o)r[e]=i;else if(o===i||void 0===i);else if(Object.hasOwnProperty.call(n,e))r[e]=n[e](o,i);else throw Error("Config merge conflict for field "+e)}for(let e in t)void 0===r[e]&&(r[e]=t[e]);return r}ew.allowMultipleSelections=ei,ew.tabSize=H.define({combine:e=>e.length?e[0]:4}),ew.lineSeparator=eo,ew.readOnly=ec,ew.phrases=H.define({compare(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length==r.length&&n.every(n=>e[n]==t[n])}}),ew.languageData=er,ew.changeFilter=ea,ew.transactionFilter=es,ew.transactionExtender=el,J.reconfigure=ef.define();class eS{eq(e){return this==e}range(e,t=e){return eA.create(e,t,this)}}function eM(e,t){return e==t||e.constructor==t.constructor&&e.eq(t)}eS.prototype.startSide=eS.prototype.endSide=0,eS.prototype.point=!1,eS.prototype.mapM
vendor: 4,133 bytes, line 2
2ode=P.TrackDel;class eA{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(e,t,n){return new eA(e,t,n)}}function eE(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class eC{constructor(e,t,n,r){this.from=e,this.to=t,this.value=n,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,t,n,r=0){let i=n?this.to:this.from;for(let o=r,a=i.length;;){if(o==a)return o;let r=o+a>>1,s=i[r]-e||(n?this.value[r].endSide:this.value[r].startSide)-t;if(r==o)return s>=0?o:a;s>=0?a=r:o=r+1}}between(e,t,n,r){for(let i=this.findIndex(t,-1e9,!0),o=this.findIndex(n,1e9,!1,i);i<o;i++)if(!1===r(this.from[i]+e,this.to[i]+e,this.value[i]))return!1}map(e,t){let n=[],r=[],i=[],o=-1,a=-1;for(let s=0;s<this.value.length;s++){let l=this.value[s],c=this.from[s]+e,u=this.to[s]+e,h,d;if(c==u){let e=t.mapPos(c,l.startSide,l.mapMode);if(null==e||(h=d=e,l.startSide!=l.endSide&&(d=t.mapPos(c,l.endSide))<h))continue}else if((h=t.mapPos(c,l.startSide))>(d=t.mapPos(u,l.endSide))||h==d&&l.startSide>0&&l.endSide<=0)continue;0>(d-h||l.endSide-l.startSide)||(o<0&&(o=h),l.point&&(a=Math.max(a,d-h)),n.push(l),r.push(h-o),i.push(d-o))}return{mapped:n.length?new eC(r,i,n,a):null,pos:o}}}class eO{constructor(e,t,n,r){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=r}static create(e,t,n,r){return new eO(e,t,n,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:r=0,filterTo:i=this.length}=e,o=e.filter;if(0==t.length&&!o)return this;if(n&&(t=t.slice().sort(eE)),this.isEmpty)return t.length?eO.of(t):this;let a=new eD(this,null,-1).goto(0),s=0,l=[],c=new eP;for(;a.value||s<t.length;)if(s<t.length&&(a.from-t[s].from||a.startSide-t[s].value.startSide)>=0){let e=t[s++];c.addInner(e.from,e.to,e.value)||l.push(e)}else 1==a.rangeIndex&&a.chunkIndex<this.chunk.length&&(s==t.length||this.chunkEnd(a.chunkIndex)<t[s].from)&&(!o||r>this.chunkEnd(a.chunkIndex)||i<this.chunkPos[a.chunkIndex])&&c.addChunk(this.chunkPos[a.chunkIndex],this.chunk[a.chunkIndex])?a.nextChunk():((!o||r>a.to||i<a.from||o(a.from,a.to,a.value))&&!c.addInner(a.from,a.to,a.value)&&l.push(eA.create(a.from,a.to,a.value)),a.next());return c.finishInner(this.nextLayer.isEmpty&&!l.length?eO.empty:this.nextLayer.update({add:l,filter:o,filterFrom:r,filterTo:i}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],n=[],r=-1;for(let i=0;i<this.chunk.length;i++){let o=this.chunkPos[i],a=this.chunk[i],s=e.touchesRange(o,o+a.length);if(!1===s)r=Math.max(r,a.maxPoint),t.push(a),n.push(e.mapPos(o));else if(!0===s){let{mapped:i,pos:s}=a.map(o,e);i&&(r=Math.max(r,i.maxPoint),t.push(i),n.push(s))}}let i=this.nextLayer.map(e);return 0==t.length?i:new eO(n,t,i||eO.empty,r)}between(e,t,n){if(!this.isEmpty){for(let r=0;r<this.chunk.length;r++){let i=this.chunkPos[r],o=this.chunk[r];if(t>=i&&e<=i+o.length&&!1===o.between(i,e-i,t-i,n))return}this.nextLayer.between(e,t,n)}}iter(e=0){return eR.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return eR.from(e).goto(t)}static compare(e,t,n,r,i=-1){let o=e.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i),a=t.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i),s=eT(o,a,n),l=new eI(o,s,i),c=new eI(a,s,i);n.iterGaps((e,t,n)=>ez(l,e,c,t,n,r)),n.empty&&0==n.length&&ez(l,0,c,0,0,r)}static eq(e,t,n=0,r){null==r&&(r=0x3b9ac9ff);let i=e.filter(e=>!e.isEmpty&&0>t.indexOf(e)),o=t.filter(t=>!t.isEmpty&&0>e.indexOf(t));if(i.length!=o.length)return!1;if(!i.length)return!0;let a=eT(i,o),s=new eI(i,a,0).goto(n),l=new eI(o,a,0).goto(n);for(;;){if(s.to!=l.to||!e_(s.active,l.active)||s.point&&(!l.point||!eM(s.point,l.point)))return!1;if(s.to>r)return!0;s.next(),l.next()}}static spans(e,t,n,r,i=-1){let o=new eI(e,null,i).goto(t),a=t,s=o.openStart;for(;;){let e=Math.min(o.to,n);if(o.point){let n=o.activeForPoint(o.to),i=o.pointFrom<t?n.length+1:o.point.startSide<0?n.length:Math.min(n.length,s);
2r.point(a,e,o.point,n,i,o.pointRank),s=Math.min(o.openEnd(e),n.length)}else e>a&&(r.span(a,e,o.active,s),s=o.openEnd(e));if(o.to>n)return s+(o.point&&o.to>n?1:0);a=o.to,o.next()}}static of(e,t=!1){let n=new eP;for(let r of e instanceof eA?[e]:t?function(e){if(e.length>1)for(let t=e[0],n=1;n<e.length;n++){let r=e[n];if(eE(t,r)>0)return e.slice().sort(eE);t=r}return e}(e):e)n.add(r.from,r.to,r.value);return n.finish()}static join(e){if(!e.length)return eO.empty;let t=e[e.length-1];for(let n=e.length-2;n>=0;n--)for(let r=e[n];r!=eO.empty;r=r.nextLayer)t=new eO(r.chunkPos,r.chunk,t,Math.max(r.maxPoint,t.maxPoint));return t}}eO.empty=new eO([],[],null,-1),eO.empty.nextLayer=eO.empty;class eP{finishChunk(e){this.chunks.push(new eC(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,n){this.addInner(e,t,n)||(this.nextLayer||(this.nextLayer=new eP)).add(e,t,n)}addInner(e,t,n){let r=e-this.lastTo||n.startSide-this.last.endSide;if(r<=0&&0>(e-this.lastFrom||n.startSide-this.last.startSide))throw Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if(0>(e-this.lastTo||t.value[0].startSide-this.last.endSide))return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(eO.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=eO.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function eT(e,t,n){let r=new Map;for(let t of e)for(let e=0;e<t.chunk.length;e++)t.chunk[e].maxPoint<=0&&r.set(t.chunk[e],t.chunkPos[e]);let i=new Set;for(let e of t)for(let t=0;t<e.chunk.length;t++){let o=r.get(e.chunk[t]);null==o||(n?n.mapPos(o):o)!=e.chunkPos[t]||(null==n?void 0:n.touchesRange(o,o+e.chunk[t].length))||i.add(e.chunk[t])}return i}class eD{constructor(e,t,n,r=0){this.layer=e,this.skip=t,this.minPoint=n,this.rank=r}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,t=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}gotoInner(e,t,n){for(;this.chunkIndex<this.layer.chunk.length;){let t=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(t)||this.layer.chunkEnd(this.chunkIndex)<e||t.maxPoint<this.minPoint))break;this.chunkIndex++,n=!1}if(this.chunkIndex<this.layer.chunk.length){let r=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],t,!0);(!n||this.rangeIndex<r)&&this.setRangeIndex(r)}this.next()}forward(e,t){0>(this.to-e||this.endSide-t)&&this.gotoInner(e,t,!0)}next(){for(;;)if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}else{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],n=e+t.from[this.rangeIndex];if(this.from=n,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class eR{constructor(e){this.heap=e}static from(e,t=null,n=-1){let r=[];for(let i=0;i<e.length;i++)for(let o=e[i];!o.isEmpty;o=o.nextLayer)o.maxPoint>=n&&r.push(new eD(o,t,n,i));return 1==r.length?r[0]:new eR(r)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let n of this.heap)n.goto(e,t);for(let e=this.heap.length>>1;e>=0;e--)ej(this.heap,e);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let e=this.heap.length>>1;e>=0;e--)ej(this.heap,e);0>(this.to-e||this.value.endSide-t)&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),ej(this.heap,0)}}}function ej(e,t){for(let n=e[t];;){let r=(t<<1)+1;if(r>=e.length)break;let i=e[r];if(r+1<e.length&&i.compare(e[r+1])>=0&&(i=e[r+1],r++),0>n.compare(i))break;e[r]=n,e[t]=i,t=r}}class eI{constructor(e,t,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=eR.from(e,t,n)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&0>(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t);)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){eL(this.active,e),eL(this.activeTo,e),eL(this.activeRank,e),this.minActive=eB(this.active,this.activeTo)}
2addActive(e){let t=0,{value:n,to:r,rank:i}=this.cursor;for(;t<this.activeRank.length&&(i-this.activeRank[t]||r-this.activeTo[t])>0;)t++;eN(this.active,t,n),eN(this.activeTo,t,r),eN(this.activeRank,t,i),e&&eN(e,t,this.cursor.from),this.minActive=eB(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let n=this.openStart<0?[]:null;for(;;){let r=this.minActive;if(r>-1&&0>(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)){if(this.activeTo[r]>e){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),n&&eL(n,r)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let e=this.cursor.value;if(e.point)if(t&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=e,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=e.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}else this.addActive(n),this.cursor.next()}else{this.to=this.endSide=1e9;break}}if(n){this.openStart=0;for(let t=n.length-1;t>=0&&n[t]<e;t--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let t=[];for(let n=this.active.length-1;n>=0&&!(this.activeRank[n]<this.pointRank);n--)(this.activeTo[n]>e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}function ez(e,t,n,r,i,o){e.goto(t),n.goto(r);let a=r+i,s=r,l=r-t,c=!!o.boundChange;for(let t=!1;;){let r=e.to+l-n.to,i=r||e.endSide-n.endSide,u=i<0?e.to+l:n.to,h=Math.min(u,a);if(e.point||n.point?(e.point&&n.point&&eM(e.point,n.point)&&e_(e.activeForPoint(e.to),n.activeForPoint(n.to))||o.comparePoint(s,h,e.point,n.point),t=!1):(t&&o.boundChange(s),h>s&&!e_(e.active,n.active)&&o.compareRange(s,h,e.active,n.active),c&&h<a&&(r||e.openEnd(u)!=n.openEnd(u))&&(t=!0)),u>a)break;s=u,i<=0&&e.next(),i>=0&&n.next()}}function e_(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n]&&!eM(e[n],t[n]))return!1;return!0}function eL(e,t){for(let n=t,r=e.length-1;n<r;n++)e[n]=e[n+1];e.pop()}function eN(e,t,n){for(let n=e.length-1;n>=t;n--)e[n+1]=e[n];e[t]=n}function eB(e,t){let n=-1,r=1e9;for(let i=0;i<t.length;i++)0>(t[i]-r||e[i].endSide-e[n].endSide)&&(n=i,r=t[i]);return n}function eF(e,t,n=e.length){let r=0;for(let i=0;i<n&&i<e.length;)9==e.charCodeAt(i)?(r+=t-r%t,i++):(r++,i=k(e,i));return r}function eV(e,t,n,r){for(let r=0,i=0;;){if(i>=t)return r;if(r==e.length)break;i+=9==e.charCodeAt(r)?n-i%n:1,r=k(e,r)}return!0===r?-1:e.length}},2749(e,t,n){"use strict";let r;n.d(t,{$K:()=>r8,A:()=>n5,D4:()=>rd,DK:()=>rA,Eg:()=>rj,HJ:()=>rm,Lz:()=>nT,N$:()=>rn,NZ:()=>O,OP:()=>en,S7:()=>rF,Ux:()=>rD,VH:()=>nZ,Wu:()=>it,Z9:()=>ez,ab:()=>rR,cU:()=>rK,c_:()=>eD,dz:()=>ra,ld:()=>r_,qf:()=>ru,w4:()=>nN,wJ:()=>rV,xO:()=>E});var i,o,a,s=n(3708),l=n(22776),c=n(41563);let u="u">typeof navigator?navigator:{userAgent:"",vendor:"",platform:""},h="u">typeof document?document:{documentElement:{style:{}}},d=/Edge\/(\d+)/.exec(u.userAgent),f=/MSIE \d/.test(u.userAgent),p=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(u.userAgent),m=!!(f||p||d),g=!m&&/gecko\/(\d+)/i.test(u.userAgent),v=!m&&/Chrome\/(\d+)/.exec(u.userAgent),y="webkitFontSmoothing"in h.documentElement.style,b=!m&&/Apple Computer/.test(u.vendor),x=b&&(/Mobile\/\w+/.test(u.userAgent)||u.maxTouchPoints>2);var w={mac:x||/Mac/.test(u.platform),windows:/Win/.test(u.platform),linux:/Linux|X11/.test(u.platform),ie:m,ie_version:f?h.documentMode||6:p?+p[1]:d?+d[1]:0,gecko:g,gecko_version:g?+(/Firefox\/(\d+)/.exec(u.userAgent)||[0,0])[1]:0,chrome:!!v,chrome_version:v?+v[1]:0,ios:x,android:/Android\b/.test(u.userAgent),webkit:y,webkit_version:y?+(/\bAppleWebKit\/(\d+)/.exec(u.userAgent)||[0,0])[1]:0,safari:b,safari_version:b?+(/\bVersion\/(\d+(\.\d+)?)/.exec(u.userAgent)||[0,0])[1]:0,tabSize:null!=h.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};function k(e,t){for(let n in e)"class"==n&&t.class?t.class+=" "+e.class:"style"==n&&t.style?t.style+=";"+e.style:t[n]=e[n];return t}let S=Object.create(null);function M(e,t,n){if(e==t)return!0;e||(e=S),t||(t=S);let r=Object.keys(e),i=Object.keys(t);if(r.length-(n&&r.indexOf(n)>-1?1:0)!=i.length-(n&&i.indexOf(n)>-1?1:0))return!1;for(let o of r)if(o!=n&&(-1==i.indexOf(o)||e[o]!==t[o]))return!1;return!0}function A(e,t,n){let r=!1;if(t)for(let i in t)n&&i in n||(r=!0,"style"==i?e.style.cssText="":e.removeAttribute(i));if(n)for(let i in n)t&&t[i]==n[i]||(r=!0,"style"==i?e.style.cssText=n[i]:e.setAttribute(i,n[i]));return r}class E{eq(e){return!1}updateDOM(e,t,n){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return -1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,n){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var C=((i=C||(C={}))[i.Text=0]="Text",i[i.WidgetBefore=1]="WidgetBefore",i[i.WidgetAfter=2]="WidgetAfter",i[i.WidgetRange=3]="WidgetRange",i);class O extends s.FB{constructor(e,t,n,r){super(),this.startSide=e,this.endSide=t,this.widget=n,this.spec=r}get heightRelevant(){return!1}static mark(e){return new P(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),n=!!e.block;return t+=n&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new D(e,t,t,n,e.widget||null,!1)}static replace(e){let t=!!e.block,n,r;if(e.isBlockGap)n=-5e8,r=4e8;else{let{start:i,end:o}=R(e,t);n=(i?t?-3e8:-1:5e8)-1,r=(o?t?2e8:1:-6e8)+1}return new D(e,n,r,t,e.widget||null,!0)}static line(e){return new T(e)}static set(e,t=!1){return s.om.of(e,t)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}O.none=s.om.empty;class P extends O{constructor(e){let{start:t,end:n}=R(e);super(t?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||"span",this.attrs=e.class&&e.attributes?k(e.attributes,{class:e.class}):e.class?{class:e.class}:e.attributes||S}eq(e){return this==e||e instanceof P&&this.tagName==e.tagName&&M(this.attrs,e.attrs)}range(e,t=e){if(e>=t)throw RangeError("Mark decorations may not be empty");return super.range(e,t)}}P.prototype.point=!1;class T extends O{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof T&&this.spec.class==e.spec.class&&M(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}
2T.prototype.mapMode=s.iR.TrackBefore,T.prototype.point=!0;class D extends O{constructor(e,t,n,r,i,o){super(t,n,i,e),this.block=r,this.isReplace=o,this.mapMode=r?t<=0?s.iR.TrackBefore:s.iR.TrackAfter:s.iR.TrackDel}get type(){return this.startSide!=this.endSide?C.WidgetRange:this.startSide<=0?C.WidgetBefore:C.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){var t,n;return e instanceof D&&(t=this.widget,t==(n=e.widget)||!!(t&&n&&t.compare(n)))&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}function R(e,t=!1){let{inclusiveStart:n,inclusiveEnd:r}=e;return null==n&&(n=e.inclusive),null==r&&(r=e.inclusive),{start:null!=n?n:t,end:null!=r?r:t}}function j(e,t,n,r=0){let i=n.length-1;i>=0&&n[i]+r>=e?n[i]=Math.max(n[i],t):n.push(e,t)}D.prototype.point=!0;class I extends s.FB{constructor(e,t,n){super(),this.tagName=e,this.attributes=t,this.rank=n}eq(e){return e==this||e instanceof I&&this.tagName==e.tagName&&M(this.attributes,e.attributes)}static create(e){return new I(e.tagName,e.attributes||S,null==e.rank?50:Math.max(0,Math.min(e.rank,100)))}static set(e,t=!1){return s.om.of(e,t)}}function z(e){return(11==e.nodeType?e.getSelection?e:e.ownerDocument:e).getSelection()}function _(e,t){return!!t&&(e==t||e.contains(1!=t.nodeType?t.parentNode:t))}function L(e,t){if(!t.anchorNode)return!1;try{return _(e,t.anchorNode)}catch(e){return!1}}function N(e){return 3==e.nodeType?Y(e,0,e.nodeValue.length).getClientRects():1==e.nodeType?e.getClientRects():[]}function B(e,t,n,r){return!!n&&(H(e,t,n,r,-1)||H(e,t,n,r,1))}function F(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t}function V(e){return 1==e.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}function H(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:W(e))){if("DIV"==e.nodeName)return!1;let n=e.parentNode;if(!n||1!=n.nodeType)return!1;t=F(e)+(i<0?0:1),e=n}else{if(1!=e.nodeType||1==(e=e.childNodes[t+(i<0?-1:0)]).nodeType&&"false"==e.contentEditable)return!1;t=i<0?W(e):0}}}function W(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function $(e,t){let{left:n,right:r}=e;if(n==r)return e;let i=t?n:r;return{left:i,right:i,top:e.top,bottom:e.bottom}}function U(e,t){let n=t.width/e.offsetWidth,r=t.height/e.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||1>Math.abs(t.width-e.offsetWidth))&&(n=1),(r>.995&&r<1.005||!isFinite(r)||1>Math.abs(t.height-e.offsetHeight))&&(r=1),{scaleX:n,scaleY:r}}function K(e,t=!0){let n=e.ownerDocument,r=null,i=null;for(let o=e.parentNode;o;)if(o==n.body||(!t||r)&&i)break;else if(1==o.nodeType)!i&&o.scrollHeight>o.clientHeight&&(i=o),t&&!r&&o.scrollWidth>o.clientWidth&&(r=o),o=o.assignedSlot||o.parentNode;else if(11==o.nodeType)o=o.host;else break;return{x:r,y:i}}I.prototype.startSide=I.prototype.endSide=-1;class q{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:n}=e;this.set(t,Math.min(e.anchorOffset,t?W(t):0),n,Math.min(e.focusOffset,n?W(n):0))}set(e,t,n,r){this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=r}}let G=null;function Z(e){if(e.setActive)return e.setActive();if(G)return e.focus(G);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(null==G?{get preventScroll(){return G={preventScroll:!0},!0}}:void 0),!G){G=!1;for(let e=0;e<t.length;){let n=t[e++],r=t[e++],i=t[e++];n.scrollTop!=r&&(n.scrollTop=r),n.scrollLeft!=i&&(n.scrollLeft=i)}}}function Y(e,t,n=t){let i=r||(r=document.createRange());return i.setEnd(e,n),i.setStart(e,t),i}function X(e,t,n,r){let i={key:t,code:t,keyCode:n,which:n,cancelable:!0};r&&({altKey:i.altKey,ctrlKey:i.ctrlKey,shiftKey:i.shiftKey,metaKey:i.metaKey}=r);let o=new KeyboardEvent("keydown",i);o.synthetic=!0,e.dispatchEvent(o);let a=new KeyboardEvent("keyup",i);return a.synthetic=!0,e.dispatchEvent(a),o.defaultPrevented||a.defaultPrevented}function J(e){return e instanceof Window?e.pageYOffset>
2Math.max(0,e.document.documentElement.scrollHeight-e.innerHeight-4):e.scrollTop>Math.max(1,e.scrollHeight-e.clientHeight-4)}function Q(e,t){for(let n=e,r=t;;)if(3==n.nodeType&&r>0)return{node:n,offset:r};else if(1==n.nodeType&&r>0){if("false"==n.contentEditable)return null;r=W(n=n.childNodes[r-1])}else{if(!n.parentNode||V(n))return null;r=F(n),n=n.parentNode}}function ee(e,t){for(let n=e,r=t;;)if(3==n.nodeType&&r<n.nodeValue.length)return{node:n,offset:r};else if(1==n.nodeType&&r<n.childNodes.length){if("false"==n.contentEditable)return null;n=n.childNodes[r],r=0}else{if(!n.parentNode||V(n))return null;r=F(n)+1,n=n.parentNode}}w.safari&&w.safari_version>=26&&(G=!1);class et{constructor(e,t,n=!0){this.node=e,this.offset=t,this.precise=n}static before(e,t){return new et(e.parentNode,F(e),t)}static after(e,t){return new et(e.parentNode,F(e)+1,t)}}var en=((o=en||(en={}))[o.LTR=0]="LTR",o[o.RTL=1]="RTL",o);let er=en.LTR,ei=en.RTL;function eo(e){let t=[];for(let n=0;n<e.length;n++)t.push(1<<e[n]);return t}let ea=eo("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),es=eo("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),el=Object.create(null),ec=[];for(let e of["()","[]","{}"]){let t=e.charCodeAt(0),n=e.charCodeAt(1);el[t]=n,el[n]=-t}function eu(e){return e<=247?ea[e]:1424<=e&&e<=1524?2:1536<=e&&e<=1785?es[e-1536]:1774<=e&&e<=2220?4:8192<=e&&e<=8204?256:64336<=e&&e<=65023?4:1}let eh=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class ed{get dir(){return this.level%2?ei:er}constructor(e,t,n){this.from=e,this.to=t,this.level=n}side(e,t){return this.dir==t==e?this.to:this.from}forward(e,t){return e==(this.dir==t)}static find(e,t,n,r){let i=-1;for(let o=0;o<e.length;o++){let a=e[o];if(a.from<=t&&a.to>=t){if(a.level==n)return o;(i<0||(0!=r?r<0?a.from<t:a.to>t:e[i].level>a.level))&&(i=o)}}if(i<0)throw RangeError("Index out of range");return i}}let ef=[];function ep(e){return[new ed(0,e,0)]}let em="",eg=s.sj.define(),ev=s.sj.define(),ey=s.sj.define(),eb=s.sj.define(),ex=s.sj.define(),ew=s.sj.define(),ek=s.sj.define(),eS=s.sj.define(),eM=s.sj.define(),eA=s.sj.define({combine:e=>e.some(e=>e)}),eE=s.sj.define({combine:e=>e.some(e=>e)}),eC=s.sj.define();class eO{constructor(e,t,n,r,i,o=!1){this.range=e,this.y=t,this.x=n,this.yMargin=r,this.xMargin=i,this.isSnapshot=o}map(e){return e.empty?this:new eO(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new eO(s.OF.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}let eP=s.Pe.define({map:(e,t)=>e.map(t)}),eT=s.Pe.define();function eD(e,t,n){let r=e.facet(eb);r.length?r[0](t):window.onerror&&window.onerror(String(t),n,void 0,void 0,t)||(n?console.error(n+":",t):console.error(t))}let eR=s.sj.define({combine:e=>!e.length||e[0]}),ej=0,eI=s.sj.define({combine:e=>e.filter((t,n)=>{for(let r=0;r<n;r++)if(e[r].plugin==t.plugin)return!1;return!0})});class ez{constructor(e,t,n,r,i){this.id=e,this.create=t,this.domEventHandlers=n,this.domEventObservers=r,this.baseExtensions=i(this),this.extension=this.baseExtensions.concat(eI.of({plugin:this,arg:void 0}))}of(e){return this.baseExtensions.concat(eI.of({plugin:this,arg:e}))}static define(e,t){let{eventHandlers:n,eventObservers:r,provide:i,decorations:o}=t||{};return new ez(ej++,e,n,r,e=>{let t=[];return o&&t.push(eB.of(t=>{let n=t.plugin(e);return n?o(n):O.none})),i&&t.push(i(e)),t})}static fromClass(e,t){return ez.define((t,n)=>new e(t,n),t)}}class e_{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}get plugin(){return this.spec&&this.spec.plugin}update(e){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(t){if(eD(e.state,t,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(e){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.plugin.create(e,this.spec.arg)}catch(t){eD(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(null==(t=this.value)?void 0:t.destroy)try{this.value.destroy()}catch(t){eD(e.state,t,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}let eL=s.sj.define(),eN=s.sj.define(),eB=s.sj.define(),eF=s.sj.define(),eV=s.sj.define(),eH=s.sj.define(),eW=s.sj.define();function e$(e,t){let n=e.state.facet(eW);if(!n.length)return n;let r=n.map(t=>t instanceof Function?t(e):t),i=[];return s.om.spans(r,t.from,t.to,{point(){},span(e,n,r,o){let a=e-t.from,s=n-t.from,l=i;for(let e=r.length-1;e>=0;e--,o--){let n=r[e].spec.bidiIsolate,i;if(null==n&&(n=function(e,t,n){for(let r=t;r<n;r++){let t=eu(e.charCodeAt(r));if(1==t)break;
vendor: 8,780 bytes, line 2
2if(2==t||4==t)return ei}return er}(t.text,a,s)),o>0&&l.length&&(i=l[l.length-1]).to==a&&i.direction==n)i.to=s,l=i.inner;else{let e={from:a,to:s,direction:n,inner:[]};l.push(e),l=e.inner}}}}),i}let eU=s.sj.define();function eK(e){let t=0,n=0,r=0,i=0;for(let o of e.state.facet(eU)){let a=o(e);a&&(null!=a.left&&(t=Math.max(t,a.left)),null!=a.right&&(n=Math.max(n,a.right)),null!=a.top&&(r=Math.max(r,a.top)),null!=a.bottom&&(i=Math.max(i,a.bottom)))}return{left:t,right:n,top:r,bottom:i}}let eq=s.sj.define();class eG{constructor(e,t,n,r){this.fromA=e,this.toA=t,this.fromB=n,this.toB=r}join(e){return new eG(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,n=this;for(;t>0;t--){let r=e[t-1];if(!(r.fromA>n.toA)){if(r.toA<n.fromA)break;n=n.join(r),e.splice(t-1,1)}}return e.splice(t,0,n),e}static extendWithRanges(e,t){if(0==t.length)return e;let n=[];for(let r=0,i=0,o=0;;){let a=Math.min(r<e.length?e[r].fromB:1e9,i<t.length?t[i]:1e9);if(1e9==a)break;let s=a+o,l=a,c=s;for(;;)if(i<t.length&&t[i]<=l){let n=t[i+1];i+=2,l=Math.max(l,n);for(let t=r;t<e.length&&e[t].fromB<=l;t++)o=e[t].toA-e[t].toB;c=Math.max(c,n+o)}else if(r<e.length&&e[r].fromB<=l){let t=e[r++];l=Math.max(l,t.toB),c=Math.max(c,t.toA),o=t.toA-t.toB}else break;n.push(new eG(s,c,a,l))}return n}}class eZ{constructor(e,t,n){for(let r of(this.view=e,this.state=t,this.transactions=n,this.flags=0,this.startState=e.state,this.changes=s.VR.empty(this.startState.doc.length),n))this.changes=this.changes.compose(r.changes);let r=[];this.changes.iterChangedRanges((e,t,n,i)=>r.push(new eG(e,t,n,i))),this.changedRanges=r}static create(e,t,n){return new eZ(e,t,n)}get viewportChanged(){return(4&this.flags)>0}get viewportMoved(){return(8&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(18&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return 0==this.flags&&0==this.transactions.length}}let eY=[];class eX{constructor(e,t,n=0){this.dom=e,this.length=t,this.flags=n,this.parent=null,e.cmTile=this}get breakAfter(){return 1&this.flags}get children(){return eY}isWidget(){return!1}get isHidden(){return!1}isComposite(){return!1}isLine(){return!1}isText(){return!1}isBlock(){return!1}get domAttrs(){return null}sync(e){if(this.flags|=2,4&this.flags){this.flags&=-5;let e=this.domAttrs;e&&function(e,t){for(let n=e.attributes.length-1;n>=0;n--){let r=e.attributes[n].name;null==t[r]&&e.removeAttribute(r)}for(let n in t){let r=t[n];"style"==n?e.style.cssText=r:e.getAttribute(n)!=r&&e.setAttribute(n,r)}}(this.dom,e)}}toString(){return this.constructor.name+(this.children.length?`(${this.children})`:"")+(this.breakAfter?"#":"")}destroy(){this.parent=null}setDOM(e){this.dom=e,e.cmTile=this}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e,t=this.posAtStart){let n=t;for(let t of this.children){if(t==e)return n;n+=t.length+t.breakAfter}throw RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}covers(e){return!0}coordsIn(e,t,n){return null}domPosFor(e,t){let n=F(this.dom),r=this.length?e>0:t>0;return new et(this.parent.dom,n+ +!!r,0==e||e==this.length)}markDirty(e){this.flags&=-3,e&&(this.flags|=4),this.parent&&2&this.parent.flags&&this.parent.markDirty(!1)}get overrideDOMText(){return null}get root(){for(let e=this;e;e=e.parent)if(e instanceof e0)return e;return null}static get(e){return e.cmTile}}class eJ extends eX{constructor(e){super(e,0),this._children=[]}isComposite(){return!0}get children(){return this._children}get lastChild(){return this.children.length?this.children[this.children.length-1]:null}append(e){this.children.push(e),e.parent=this}sync(e){if(2&this.flags)return;super.sync(e);let t=this.dom,n=null,r,i=(null==e?void 0:e.node)==t?e:null,o=0;for(let a of this.children){if(a.sync(e),o+=a.length+a.breakAfter,r=n?n.nextSibling:t.firstChild,i&&r!=a.dom&&(i.written=!0),a.dom.parentNode==t)for(;r&&r!=a.dom;)r=eQ(r);else t.insertBefore(a.dom,r);n=a.dom}for(r=n?n.nextSibling:t.firstChild,i&&r&&(i.written=!0);r;)r=eQ(r);this.length=o}}function eQ(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class e0 extends eJ{constructor(e,t){super(t),this.view=e}owns(e){for(;e;e=e.parent)if(e==this)return!0;return!1}isBlock(){return!0}nearest(e){for(;;){if(!e)return null;let t=eX.get(e);if(t&&this.owns(t))return t;e=e.parentNode}}blockTiles(e){for(let t=[],n=this,r=0,i=0;;)if(r==n.children.length){if(!t.length)return;(n=n.parent).breakAfter&&i++,r=t.pop()}else{let o=n.children[r++];if(o instanceof e1)t.push(r),n=o,r=0;else{let t=i+o.length,n=e(o,i);if(void 0!==n)return n;i=t+o.breakAfter}}}resolveBlock(e,t){let n,r=-1,i,o=-1;if(this.blockTiles((a,s)=>{let l=s+a.length;if(e>=s&&e<=l){if(a.isWidget()&&t>=-1&&t<=1){if(32&a.flags)return!0;16&a.flags&&(n=void 0)}(s<e||e==l&&(t<-1?a.length:a.covers(1)))&&(!n||!a.isWidget()&&n.isWidget())&&(n=a,r=e-s),(l>e||e==s&&(t>1?a.length:a.covers(-1)))&&(!i||!a.isWidget()&&i.isWidget())&&(i=a,o=e-s)}}),!n&&!i)throw Error("No tile at position "+e);return n&&t<0||!i?{tile:n,offset:r}:{tile:i,offset:o}}}class e1 extends eJ{constructor(e,t){super(e),this.wrapper=t}isBlock(){return!0}covers(e){return!!this.children.length&&(e<0?this.children[0].covers(-1):this.lastChild.covers(1))}get domAttrs(){return this.wrapper.attributes}static of(e,t){let n=new e1(t||document.createElement(e.tagName),e);return t||(n.flags|=4),n}}class e2 extends eJ{constructor(e,t){super(e),this.attrs=t}isLine(){return!0}static start(e,t,n){let r=new e2(t||document.createElement("div"),e);return t&&n||(r.flags|=4),r}get domAttrs(){return this.attrs}resolveInline(e,t,n){let r=null,i=-1,o=null,a=-1;!function e(s,l){for(let c=0,u=0;c<s.children.length&&u<=l;c++){let h=s.children[c],d=u+h.length;d>=l&&(h.isComposite()?e(h,l-u):(!o||o.isHidden&&(t>0&&!(32&o.flags)||n&&function(e,t){let n=e.coordsIn(0,1),r=t.coordsIn(0,1);return n&&r&&r.top<n.bottom}(o,h)))&&(d>l||32&h.flags)?(o=h,a=l-u):(u<l||16&h.flags&&!h.isHidden)&&(r=h,i=l-u)),u=d}}(this,e);let s=(t<0?r:o)||r||o;return s?{tile:s,offset:s==r?i:a}:null}coordsIn(e,t,n){let r=this.resolveInline(e,t,!0);return r?r.tile.coordsIn(Math.max(0,r.offset),t,n):function(e){let t=e.dom.lastChild;if(!t)return e.dom.getBoundingClientRect();let n=N(t);return n[n.length-1]||null}(this)}domIn(e,t){let n=this.resolveInline(e,t);if(n){let{tile:e,offset:r}=n;if(this.dom.contains(e.dom))return e.isText()?new et(e.dom,Math.min(e.dom.nodeValue.length,r)):e.domPosFor(r,16&e.flags?1:32&e.flags?-1:t);let i=n.tile.parent,o=!1;for(let e of i.children){if(o)return new et(e.dom,0);e==n.tile&&(o=!0)}}return new et(this.dom,0)}}class e4 extends eJ{constructor(e,t){super(e),this.mark=t}get domAttrs(){return this.mark.attrs}static of(e,t){let n=new e4(t||document.createElement(e.tagName),e);return t||(n.flags|=4),n}}class e5 extends eX{constructor(e,t){super(e,t.length),this.text=t}sync(e){2&this.flags||(super.sync(e),this.dom.nodeValue!=this.text&&(e&&e.node==this.dom&&(e.written=!0),this.dom.nodeValue=this.text))}isText(){return!0}toString(){return JSON.stringify(this.text)}coordsIn(e,t,n){let r=this.dom.nodeValue.length;e>r&&(e=r);let i=e,o=e,a=0;0==e&&t<0||e==r&&t>=0?!(w.chrome||w.gecko)&&(e?(i--,a=1):o<r&&(o++,a=-1)):t<0?i--:o<r&&o++;let s=Y(this.dom,i,o).getClientRects();if(!s.length)return null;let l=s[(a?a<0:t>=0)?0:s.length-1];return w.safari&&!a&&0==l.width&&(l=Array.prototype.find.call(s,e=>e.width)||l),null==n?l:$(l,(a?a>0:t<0)==n)}static of(e,t){let n=new e5(t||document.createTextNode(e),e);return t||(n.flags|=2),n}}class e3 extends eX{constructor(e,t,n,r){super(e,t,r),this.widget=n}isWidget(){return!0}get isHidden(){return this.widget.isHidden}covers(e){return!(48&this.flags)&&(this.flags&(e<0?64:128))>0}coordsIn(e,t){return this.coordsInWidget(e,t,!1)}coordsInWidget(e,t,n){let r=this.widget.coordsAt(this.dom,e,t);if(r)return r;if(n)return $(this.dom.getBoundingClientRect(),this.length?0==e:t<=0);{let t=this.dom.getClientRects(),n=null;if(!t.length)return null;let r=!!(16&this.flags)||!(32&this.flags)&&e>0;for(let i=r?t.length-1:0;n=t[i],e>0?0!=i:i!=t.length-1&&!(n.top<n.bottom);i+=r?-1:1);return $(n,!r)}}get overrideDOMText(){if(!this.length)return s.EY.empty;let{root:e}=this;if(!e)return s.EY.empty;let t=this.posAtStart;return e.view.state.doc.slice(t,t+this.length)}destroy(){super.destroy(),this.widget.destroy(this.dom)}static of(e,t,n,r,i){return!i&&(i=e.toDOM(t),e.editable||(i.contentEditable="false")),new e3(i,n,e,r)}}class e6 extends eX{constructor(e){let t=document.createElement("img");
2t.className="cm-widgetBuffer",t.setAttribute("aria-hidden","true"),super(t,0,e)}get isHidden(){return!0}get overrideDOMText(){return s.EY.empty}coordsIn(e,t,n){let r=this.dom.getBoundingClientRect();return null==n?r:$(r,t>0==n)}}class e8{constructor(e){this.index=0,this.beforeBreak=!1,this.parents=[],this.tile=e}advance(e,t,n){let{tile:r,index:i,beforeBreak:o,parents:a}=this;for(;e||t>0;)if(r.isComposite())if(o){if(!e)break;n&&n.break(),e--,o=!1}else if(i==r.children.length){if(!e&&!a.length)break;n&&n.leave(r),o=!!r.breakAfter,({tile:r,index:i}=a.pop()),i++}else{let s=r.children[i],l=s.breakAfter;(t>0?s.length<=e:s.length<e)&&(!n||!1!==n.skip(s,0,s.length)||!s.isComposite)?(o=!!l,i++,e-=s.length):(a.push({tile:r,index:i}),r=s,i=0,n&&s.isComposite()&&n.enter(s))}else if(i==r.length)o=!!r.breakAfter,({tile:r,index:i}=a.pop()),i++;else if(e){let t=Math.min(e,r.length-i);n&&n.skip(r,i,i+t),e-=t,i+=t}else break;return this.tile=r,this.index=i,this.beforeBreak=o,this}get root(){return this.parents.length?this.parents[0].tile:this.tile}}class e9{constructor(e,t,n,r){this.from=e,this.to=t,this.wrapper=n,this.rank=r}}class e7{constructor(e,t,n){this.cache=e,this.root=t,this.blockWrappers=n,this.curLine=null,this.lastBlock=null,this.afterWidget=null,this.pos=0,this.wrappers=[],this.wrapperPos=0}addText(e,t,n,r){var i;this.flushBuffer();let o=this.ensureMarks(t,n),a=o.lastChild;a&&a.isText()&&!(8&a.flags)&&a.length+e.length<512?(this.cache.reused.set(a,2),(o.children[o.children.length-1]=new e5(a.dom,a.text+e)).parent=o):o.append(r||e5.of(e,null==(i=this.cache.find(e5))?void 0:i.dom)),this.pos+=e.length,this.afterWidget=null}addComposition(e,t){let n=this.curLine;n.dom!=t.line.dom&&(n.setDOM(this.cache.reused.has(t.line)?ta(t.line.dom):t.line.dom),this.cache.reused.set(t.line,2));let r=n;for(let e=t.marks.length-1;e>=0;e--){let n=t.marks[e],i=r.lastChild;if(i instanceof e4&&i.mark.eq(n.mark))i.dom!=n.dom&&i.setDOM(ta(n.dom)),r=i;else{if(this.cache.reused.get(n)){let e=eX.get(n.dom);e&&e.setDOM(ta(n.dom))}let e=e4.of(n.mark,n.dom);r.append(e),r=e}this.cache.reused.set(n,2)}let i=eX.get(e.text);i&&this.cache.reused.set(i,2);let o=new e5(e.text,e.text.nodeValue);o.flags|=8,this.pos=e.range.toB,r.append(o)}addInlineWidget(e,t,n){let r=this.afterWidget&&48&e.flags&&(48&this.afterWidget.flags)==(48&e.flags);r||this.flushBuffer();let i=this.ensureMarks(t,n);r||16&e.flags||i.append(this.getBuffer(1)),i.append(e),this.pos+=e.length,this.afterWidget=e}addMark(e,t,n){this.flushBuffer(),this.ensureMarks(t,n).append(e),this.pos+=e.length,this.afterWidget=null}addBlockWidget(e){this.getBlockPos().append(e),this.pos+=e.length,this.lastBlock=e,this.endLine()}continueWidget(e){let t=this.afterWidget||this.lastBlock;t.length+=e,this.pos+=e}addLineStart(e,t){var n;e||(e=to);let r=e2.start(e,t||(null==(n=this.cache.find(e2))?void 0:n.dom),!!t);this.getBlockPos().append(this.lastBlock=this.curLine=r)}addLine(e){this.getBlockPos().append(e),this.pos+=e.length,this.lastBlock=e,this.endLine()}addBreak(){this.lastBlock.flags|=1,this.endLine(),this.pos++}addLineStartIfNotCovered(e){this.blockPosCovered()||this.addLineStart(e)}ensureLine(e){this.curLine||this.addLineStart(e)}ensureMarks(e,t){var n;let r=this.curLine;for(let i=e.length-1;i>=0;i--){let o=e[i],a;if(t>0&&(a=r.lastChild)&&a instanceof e4&&a.mark.eq(o))r=a,t--;else{let e=e4.of(o,null==(n=this.cache.find(e4,e=>e.mark.eq(o)))?void 0:n.dom);r.append(e),r=e,t=0}}return r}endLine(){if(this.curLine){this.flushBuffer();let e=this.curLine.lastChild;(!e||!ti(this.curLine,!1)||"BR"!=e.dom.nodeName&&e.isWidget()&&!(w.ios&&ti(this.curLine,!0))
vendor: 5,064 bytes, line 2
2)&&this.curLine.append(this.cache.findWidget(tl,0,32)||new e3(tl.toDOM(),0,tl,32)),this.curLine=this.afterWidget=null}}updateBlockWrappers(){this.wrapperPos>this.pos+1e4&&(this.blockWrappers.goto(this.pos),this.wrappers.length=0);for(let e=this.wrappers.length-1;e>=0;e--)this.wrappers[e].to<this.pos&&this.wrappers.splice(e,1);for(let e=this.blockWrappers;e.value&&e.from<=this.pos;e.next())if(e.to>=this.pos){let t=102*e.rank+e.value.rank,n=new e9(e.from,e.to,e.value,t),r=this.wrappers.length;for(;r>0&&0>(this.wrappers[r-1].rank-n.rank||this.wrappers[r-1].to-n.to);)r--;this.wrappers.splice(r,0,n)}this.wrapperPos=this.pos}getBlockPos(){var e;this.updateBlockWrappers();let t=this.root;for(let n of this.wrappers){let r=t.lastChild;if(n.from<this.pos&&r instanceof e1&&r.wrapper.eq(n.wrapper))t=r;else{let r=e1.of(n.wrapper,null==(e=this.cache.find(e1,e=>e.wrapper.eq(n.wrapper)))?void 0:e.dom);t.append(r),t=r}}return t}blockPosCovered(){let e=this.lastBlock;return null!=e&&!e.breakAfter&&(!e.isWidget()||(160&e.flags)>0)}getBuffer(e){let t=2|(e<0?16:32),n=this.cache.find(e6,void 0,1);return n&&(n.flags=t),n||new e6(t)}flushBuffer(){this.afterWidget&&!(32&this.afterWidget.flags)&&(this.afterWidget.parent.append(this.getBuffer(-1)),this.afterWidget=null)}}class te{constructor(e){this.skipCount=0,this.text="",this.textOff=0,this.cursor=e.iter()}skip(e){this.textOff+e<=this.text.length?this.textOff+=e:(this.skipCount+=e-(this.text.length-this.textOff),this.text="",this.textOff=0)}next(e){if(this.textOff==this.text.length){let{value:t,lineBreak:n,done:r}=this.cursor.next(this.skipCount);if(this.skipCount=0,r)throw Error("Ran out of text content when drawing inline views");this.text=t;let i=this.textOff=Math.min(e,t.length);return n?null:t.slice(0,i)}let t=Math.min(this.text.length,this.textOff+e),n=this.text.slice(this.textOff,t);return this.textOff=t,n}}let tt=[e3,e2,e5,e4,e6,e1,e0];for(let e=0;e<tt.length;e++)tt[e].bucket=e;class tn{constructor(e){this.view=e,this.buckets=tt.map(()=>[]),this.index=tt.map(()=>0),this.reused=new Map}add(e){let t=e.constructor.bucket,n=this.buckets[t];n.length<6?n.push(e):n[this.index[t]=(this.index[t]+1)%6]=e}find(e,t,n=2){let r=e.bucket,i=this.buckets[r],o=this.index[r];for(let e=0;e<i.length;e++){let a=(e+o)%i.length,s=i[a];if((!t||t(s))&&!this.reused.has(s))return i.splice(a,1),a<o&&this.index[r]--,this.reused.set(s,n),s}return null}findWidget(e,t,n){let r=this.buckets[0];if(r.length)for(let i=0,o=0;;i++){if(i==r.length){if(o)return null;o=1,i=0}let a=r[i];if(!this.reused.has(a)&&(0==o?a.widget.compare(e):a.widget.constructor==e.constructor&&e.updateDOM(a.dom,this.view,a.widget))){if(r.splice(i,1),i<this.index[0]&&this.index[0]--,a.widget==e&&a.length==t&&(497&a.flags)==n)return this.reused.set(a,1),a;return this.reused.set(a,2),new e3(a.dom,t,e,-498&a.flags|n)}}}reuse(e){return this.reused.set(e,1),e}maybeReuse(e,t=2){if(!this.reused.has(e))return this.reused.set(e,t),e.dom}clear(){for(let e=0;e<this.buckets.length;e++)this.buckets[e].length=this.index[e]=0}}class tr{constructor(e,t,n,r,i){this.view=e,this.decorations=r,this.disallowBlockEffectsFor=i,this.openWidget=!1,this.openMarks=0,this.cache=new tn(e),this.text=new te(e.state.doc),this.builder=new e7(this.cache,new e0(e,e.contentDOM),s.om.iter(n)),this.cache.reused.set(t,2),this.old=new e8(t),this.reuseWalker={skip:(e,t,n)=>{if(this.cache.add(e),e.isComposite())return!1},enter:e=>this.cache.add(e),leave:()=>{},break:()=>{}}}run(e,t){let n=t&&this.getCompositionContext(t.text);for(let r=0,i=0,o=0;;){let a=o<e.length?e[o++]:null,s=a?a.fromA:this.old.root.length;if(s>r){let e=s-r;this.preserve(e,!o,!a),r=s,i+=e}if(!a)break;t&&a.fromA<=t.range.fromA&&a.toA>=t.range.toA?(this.forward(a.fromA,t.range.fromA,t.range.fromA<t.range.toA?1:-1),this.emit(i,t.range.fromB),this.builder.flushBuffer(),this.cache.clear(),this.builder.addComposition(t,n),this.text.skip(t.range.toB-t.range.fromB),this.forward(t.range.fromA,a.toA),this.emit(t.range.toB,a.toB)):(this.forward(a.fromA,a.toA),this.emit(i,a.toB)),i=a.toB,r=a.toA}return this.builder.curLine&&this.builder.endLine(),this.builder.root}preserve(e,t,n){let r=function(e){let t=[];for(let n=e.parents.length;n>1;n--){let r=n==e.parents.length?e.tile:e.parents[n].tile;r instanceof e4&&t.push(r.mark)}return t}(this.old),i=this.openMarks;this.old.advance(e,n?1:-1,{skip:(e,t,n)=>{if(e.isWidget())if(this.openWidget)this.builder.continueWidget(n-t);else{let o=n>0||t<e.length?e3.of(e.widget,this.view,n-t,496&e.flags,this.cache.maybeReuse(e)):this.cache.reuse(e);256&o.flags?(o.flags&=-2,this.builder.addBlockWidget(o)):(this.builder.ensureLine(null),this.builder.addInlineWidget(o,r,i),i=r.length)}else if(e.isText())this.builder.ensureLine(null),t||n!=e.length||this.cache.reused.has(e)?(this.cache.add(e),this.builder.addText(e.text.slice(t,n),r,i)):this.builder.addText(e.text,r,i,this.cache.reuse(e)),i=r.length;else if(e.isLine())e.flags&=-2,this.cache.reused.set(e,1),this.builder.addLine(e);else if(e instanceof e6)this.cache.add(e);else{if(!(e instanceof e4))return!1;
2this.builder.ensureLine(null),this.builder.addMark(e,r,i),this.cache.reused.set(e,1),i=r.length}this.openWidget=!1},enter:e=>{e.isLine()?this.builder.addLineStart(e.attrs,this.cache.maybeReuse(e)):(this.cache.add(e),e instanceof e4&&r.unshift(e.mark)),this.openWidget=!1},leave:e=>{e.isLine()?r.length&&(r.length=i=0):e instanceof e4&&(r.shift(),i=Math.min(i,r.length))},break:()=>{this.builder.addBreak(),this.openWidget=!1}}),this.text.skip(e)}emit(e,t){let n=null,r=this.builder,i=-1,o=s.om.spans(this.decorations,e,t,{point:(e,t,o,a,s,l)=>{var c,u,h;if(o instanceof D){if(this.disallowBlockEffectsFor[l]){if(o.block)throw RangeError("Block decorations may not be specified via plugins");if(t>this.view.state.doc.lineAt(e).to)throw RangeError("Decorations that replace line breaks may not be specified via plugins")}if(i=a.length,s>a.length)r.continueWidget(t-e);else{let i,l=o.widget||(o.block?ts.block:ts.inline),u=(i=(c=o).isReplace?64*(c.startSide<0)|128*(c.endSide>0):c.startSide>0?32:16,c.block&&(i|=256),i),h=this.cache.findWidget(l,t-e,u)||e3.of(l,this.view,t-e,u);o.block?(o.startSide>0&&r.addLineStartIfNotCovered(n),r.addBlockWidget(h)):(r.ensureLine(n),r.addInlineWidget(h,a,s))}n=null}else{let e,t;u=n,e=(h=o).spec.attributes,t=h.spec.class,(e||t)&&(u||(u={class:"cm-line"}),e&&k(e,u),t&&(u.class+=" "+t)),n=u}t>e&&this.text.skip(t-e)},span:(e,t,o,a)=>{for(let i=e;i<t;){let s=this.text.next(Math.min(512,t-i));null==s?(r.addLineStartIfNotCovered(n),r.addBreak(),i++):(r.ensureLine(n),r.addText(s,o,i==e?a:o.length),i+=s.length),n=null}i=o.length}});i>-1&&(this.openWidget=o>i),this.openWidget||r.addLineStartIfNotCovered(n),this.openMarks=o}forward(e,t,n=1){t-e<=10?this.old.advance(t-e,n,this.reuseWalker):(this.old.advance(5,-1,this.reuseWalker),this.old.advance(t-e-10,-1),this.old.advance(5,n,this.reuseWalker))}getCompositionContext(e){let t=[],n=null;for(let r=e.parentNode;;r=r.parentNode){let e=eX.get(r);if(r==this.view.contentDOM)break;e instanceof e4?t.push(e):(null==e?void 0:e.isLine())?n=e:e instanceof e1||("DIV"!=r.nodeName||n||r==this.view.contentDOM?n||t.push(e4.of(new P({tagName:r.nodeName.toLowerCase(),attributes:function(e){let t=Object.create(null);for(let n=0;n<e.attributes.length;n++){let r=e.attributes[n];t[r.name]=r.value}return t}(r)}),r)):n=new e2(r,to))}return{line:n,marks:t}}}function ti(e,t){let n=e=>{for(let r of e.children)if((t?r.isText():r.length)||n(r))return!0;return!1};return n(e)}let to={class:"cm-line"};function ta(e){let t=eX.get(e);return t&&t.setDOM(e.cloneNode()),e}class ts extends E{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}ts.inline=new ts("span"),ts.block=new ts("div");let tl=new class extends E{toDOM(){return document.createElement("br")}get isHidden(){return!0}get editable(){return!0}};class tc{constructor(e){this.view=e,this.decorations=[],this.blockWrappers=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.editContextFormatting=O.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.updateDeco(),this.tile=new e0(e,e.contentDOM),this.updateInner([new eG(0,0,0,e.state.doc.length)],null)}update(e){var t,n,r,i,o,a,l,c,u;let h,d,f,p=e.changedRanges;this.minWidth>0&&p.length&&(p.every(({fromA:e,toA:t})=>t<this.minWidthFrom||e>this.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let m=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&((null==(t=this.domChanged)?void 0:t.newSel)?m=this.domChanged.newSel.head:(n=e.changes,r=this.hasComposition,h=!1,r&&n.iterChangedRanges((e,t)=>{e<r.to&&t>r.from&&(h=!0)}),h||e.selectionSet||(m=e.state.selection.main.head)));let g=m>-1?function(e,t,n){let r=th(e,n);if(!r)return null;let{node:i,from:o,to:a}=r,s=i.nodeValue;if(/[\n\r]/.test(s)||e.state.doc.sliceString(r.from,r.to)!=s)return null;let l=t.invertedDesc;return{range:new eG(l.mapPos(o),l.mapPos(a),o,a),text:i}}(this.view,e.changes,m):null;if(this.domChanged=null,this.hasComposition){let{from:t,to:n}=this.hasComposition;p=new eG(t,n,e.changes.mapPos(t,-1),e.changes.mapPos(n,1)).addToSet(p.slice())}this.hasComposition=g?{from:g.range.fromB,to:g.range.toB}:null,(w.ie||w.chrome)&&!g&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let v=this.decorations,y=this.blockWrappers;this.updateDeco();let b=(i=v,o=this.decorations,a=e.changes,d=new td,s.om.compare(i,o,a,d),d.changes);b.length&&(p=eG.extendWithRanges(p,b));let x=(l=y,c=this.blockWrappers,u=e.changes,f=new tf,s.om.compare(l,c,u,f),f.changes);return x.length&&(p=eG.extendWithRanges(p,x)),g&&!p.some(e=>e.fromA<=g.range.fromA&&e.toA>=g.range.toA)&&(p=g.range.addToSet(p.slice())),(!(2&this.tile.flags)||0!=p.length)&&(this.updateInner(p,g),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t){this.view.viewState.mustMeasureContent=!0;let{observer:n}=this.view;n.ignore(()=>{if(t||e.length){let n=this.tile,r=new tr(this.view,n,this.blockWrappers,this.decorations,this.dynamicDecorationMap);t&&eX.get(t.text)&&r.cache.reused.set(eX.get(t.text),2),this.tile=r.run(e,t),tu(n,r.cache.reused)}this.tile.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.tile.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let r=w.chrome||w.ios?{node:n.selectionRange.focusNode,written:!1}:void 0;this.tile.sync(r),r&&(r.written||n.selectionRange.focusNode!=r.no
2de||!this.tile.dom.contains(r.node))&&(this.forceSelection=!0),this.tile.dom.style.height=""});let r=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let e of this.tile.children)e.isWidget()&&e.widget instanceof tp&&r.push(e.dom);n.updateGaps(r)}updateEditContextFormatting(e){for(let t of(this.editContextFormatting=this.editContextFormatting.map(e.changes),e.transactions))for(let e of t.effects)e.is(eT)&&(this.editContextFormatting=e.value)}updateSelection(e=!1,t=!1){var n;(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let{dom:r}=this.tile,i=this.view.root.activeElement,o=i==r,a=!o&&!(this.view.state.facet(eR)||r.tabIndex>-1)&&L(r,this.view.observer.selectionRange)&&!(i&&r.contains(i));if(!(o||t||a))return;let s=this.forceSelection;this.forceSelection=!1;let l=this.view.state.selection.main,c,u;if(l.empty?u=c=this.inlineDOMNearPos(l.anchor,l.assoc||1):(u=this.inlineDOMNearPos(l.head,l.head==l.from?1:-1),c=this.inlineDOMNearPos(l.anchor,l.anchor==l.from?1:-1)),w.gecko&&l.empty&&!this.hasComposition&&1==(n=c).node.nodeType&&n.node.firstChild&&(0==n.offset||"false"==n.node.childNodes[n.offset-1].contentEditable)&&(n.offset==n.node.childNodes.length||"false"==n.node.childNodes[n.offset].contentEditable)){let e=document.createTextNode("");this.view.observer.ignore(()=>c.node.insertBefore(e,c.node.childNodes[c.offset]||null)),c=u=new et(e,0),s=!0}let h=this.view.observer.selectionRange;!s&&h.focusNode&&(B(c.node,c.offset,h.anchorNode,h.anchorOffset)&&B(u.node,u.offset,h.focusNode,h.focusOffset)||this.suppressWidgetCursorChange(h,l))||(this.view.observer.ignore(()=>{w.android&&w.chrome&&r.contains(h.focusNode)&&function(e,t){for(let n=e;n&&n!=t;n=n.assignedSlot||n.parentNode)if(1==n.nodeType&&"false"==n.contentEditable)return!0;return!1}(h.focusNode,r)&&(r.blur(),r.focus({preventScroll:!0}));let e=z(this.view.root);if(e)if(l.empty){if(w.gecko){var t,n;let e=(t=c.node,n=c.offset,1!=t.nodeType?0:(n&&"false"==t.childNodes[n-1].contentEditable?1:0)|2*(n<t.childNodes.length&&"false"==t.childNodes[n].contentEditable));if(e&&3!=e){let t=(1==e?Q:ee)(c.node,c.offset);t&&(c=new et(t.node,t.offset))}}e.collapse(c.node,c.offset),null!=l.bidiLevel&&void 0!==e.caretBidiLevel&&(e.caretBidiLevel=l.bidiLevel)}else if(e.extend){e.collapse(c.node,c.offset);try{e.extend(u.node,u.offset)}catch(e){}}else{let t=document.createRange();l.anchor>l.head&&([c,u]=[u,c]),t.setEnd(u.node,u.offset),t.setStart(c.node,c.offset),e.removeAllRanges(),e.addRange(t)}
vendor: 4,371 bytes, line 2
2a&&this.view.root.activeElement==r&&(r.blur(),i&&i.focus())}),this.view.observer.setSelectionRange(c,u)),this.impreciseAnchor=c.precise?null:new et(h.anchorNode,h.anchorOffset),this.impreciseHead=u.precise?null:new et(h.focusNode,h.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&B(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,n=z(e.root),{anchorNode:r,anchorOffset:i}=e.observer.selectionRange;if(!n||!t.empty||!t.assoc||!n.modify)return;let o=this.lineAt(t.head,t.assoc);if(!o)return;let a=o.posAtStart;if(t.head==a||t.head==a+o.length)return;let s=this.coordsAt(t.head,-1),l=this.coordsAt(t.head,1);if(!s||!l||s.bottom>l.top)return;let c=this.domAtPos(t.head+t.assoc,t.assoc);n.collapse(c.node,c.offset),n.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let u=e.observer.selectionRange;e.docView.posFromDOM(u.anchorNode,u.anchorOffset)!=t.from&&n.collapse(r,i)}posFromDOM(e,t){let n=this.tile.nearest(e);if(!n)return 2&this.tile.dom.compareDocumentPosition(e)?0:this.view.state.doc.length;let r=n.posAtStart;if(n.isComposite()){let i;if(e==n.dom)i=n.dom.childNodes[t];else{let r=0==W(e)?0:0==t?-1:1;for(;;){let t=e.parentNode;if(t==n.dom)break;0==r&&t.firstChild!=t.lastChild&&(r=e==t.firstChild?-1:1),e=t}i=r<0?e:e.nextSibling}if(i==n.dom.firstChild)return r;for(;i&&!eX.get(i);)i=i.nextSibling;if(!i)return r+n.length;for(let e=0,t=r;;e++){let r=n.children[e];if(r.dom==i)return t;t+=r.length+r.breakAfter}}else if(n.isText())return e==n.dom?r+t:r+(t?n.length:0);else return r}domAtPos(e,t){let{tile:n,offset:r}=this.tile.resolveBlock(e,t);return n.isWidget()?n.domPosFor(r,t):n.domIn(r,t)}inlineDOMNearPos(e,t){let n,r=-1,i=!1,o,a=-1,s=!1;return(this.tile.blockTiles((t,l)=>{if(t.isWidget()){if(32&t.flags&&l>=e)return!0;16&t.flags&&(i=!0)}else{let c=l+t.length;if(l<=e&&(n=t,r=e-l,i=c<e),c>=e&&!o&&(o=t,a=e-l,s=l>e),l>e&&o)return!0}}),n||o)?(i&&o?n=null:s&&n&&(o=null),n&&t<0||!o?n.domIn(r,t):o.domIn(a,t)):this.domAtPos(e,t)}coordsAt(e,t,n){let{tile:r,offset:i}=this.tile.resolveBlock(e,t);return r.isWidget()?r.widget instanceof tp?null:r.coordsInWidget(i,t,!0):r.coordsIn(i,t,n)}lineAt(e,t){let{tile:n}=this.tile.resolveBlock(e,t);return n.isLine()?n:null}coordsForChar(e){let{tile:t,offset:n}=this.tile.resolveBlock(e,1);return t.isLine()?function e(t,n){if(t.isComposite())for(let r of t.children){if(r.length>=n){let t=e(r,n);if(t)return t}if((n-=r.length)<0)break}else if(t.isText()&&n<t.length){let e=(0,s.zK)(t.text,n);if(e==n)return null;let r=Y(t.dom,n,e).getClientRects();for(let e=0;e<r.length;e++){let t=r[e];if(e==r.length-1||t.top<t.bottom&&t.left<t.right)return t}}return null}(t,n):null}measureVisibleLineHeights(e){let t=[],{from:n,to:r}=e,i=this.view.contentDOM.clientWidth,o=i>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,a=-1,s=this.view.textDirection==en.LTR,l=0,c=(e,u,h)=>{for(let d=0;d<e.children.length&&!(u>r);d++){let r=e.children[d],f=u+r.length,p=r.dom.getBoundingClientRect(),{height:m}=p;if(h&&!d&&(l+=p.top-h.top),r instanceof e1)f>n&&c(r,u,p);else if(u>=n&&(l>0&&t.push(-l),t.push(m+l),l=0,o)){let e=r.dom.lastChild,t=e?N(e):[];if(t.length){let e=t[t.length-1],n=s?e.right-p.left:p.right-e.left;n>a&&(a=n,this.minWidth=i,this.minWidthFrom=u,this.minWidthTo=f)}}h&&d==e.children.length-1&&(l+=h.bottom-p.bottom),u=f+r.breakAfter}};return c(this.tile,0,null),t}textDirectionAt(e){let{tile:t}=this.tile.resolveBlock(e,1);return"rtl"==getComputedStyle(t.dom).direction?en.RTL:en.LTR}measureTextSize(){let e=this.tile.blockTiles(e=>{if(e.isLine()&&e.children.length&&e.length<=20){let t=0,n;for(let r of e.children){if(!r.isText()||/[^ -~]/.test(r.text))return;let e=N(r.dom);if(1!=e.length)return;t+=e[0].width,n=e[0].height}if(t)return{lineHeight:e.dom.getBoundingClientRect().height,charWidth:t/e.length,textHeight:n}}});if(e)return e;let t=document.createElement("div"),n,r,i;return t.className="cm-line",t.style.width="99999px",t.style.position="absolute",t.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.tile.dom.appendChild(t);let e=N(t.firstChild)[0];n=t.getBoundingClientRect().height,r=e&&e.width?e.width/27:7,i=e&&e.height?e.height:n,t.remove()}
2),{lineHeight:n,charWidth:r,textHeight:i}}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let n=0,r=0;;r++){let i=r==t.viewports.length?null:t.viewports[r],o=i?i.from-1:this.view.state.doc.length;if(o>n){let r=(t.lineBlockAt(o).bottom-t.lineBlockAt(n).top)/this.view.scaleY;e.push(O.replace({widget:new tp(r),block:!0,inclusive:!0,isBlockGap:!0}).range(n,o))}if(!i)break;n=i.to+1}return O.set(e)}updateDeco(){let e=1,t=this.view.state.facet(eB).map(t=>(this.dynamicDecorationMap[e++]="function"==typeof t)?t(this.view):t),n=!1,r=this.view.state.facet(eV).map((e,t)=>{let r="function"==typeof e;return r&&(n=!0),r?e(this.view):e});for(r.length&&(this.dynamicDecorationMap[e++]=n,t.push(s.om.join(r))),this.decorations=[this.editContextFormatting,...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];e<this.decorations.length;)this.dynamicDecorationMap[e++]=!1;this.blockWrappers=this.view.state.facet(eF).map(e=>"function"==typeof e?e(this.view):e)}scrollIntoView(e){if(e.isSnapshot){let t=this.view.viewState.lineBlockAt(e.range.head);this.view.scrollDOM.scrollTop=t.top-e.yMargin,this.view.scrollDOM.scrollLeft=e.xMargin;return}for(let t of this.view.state.facet(eC))try{if(t(this.view,e.range,e))return!0}catch(e){eD(this.view.state,e,"scroll handler")}let{range:t}=e,n=this.coordsAt(t.head,t.assoc||(t.head>t.anchor?-1:1)),r;if(!n)return;!t.empty&&(r=this.coordsAt(t.anchor,t.anchor>t.head?-1:1))&&(n={left:Math.min(n.left,r.left),top:Math.min(n.top,r.top),right:Math.max(n.right,r.right),bottom:Math.max(n.bottom,r.bottom)});let i=eK(this.view),o={left:n.left-i.left,top:n.top-i.top,right:n.right+i.right,bottom:n.bottom+i.bottom},{offsetWidth:a,offsetHeight:s}=this.view.scrollDOM;if(!function(e,t,n,r,i,o,a,s){let l=e.ownerDocument,c=l.defaultView||window;for(let u=e,h=!1;u&&!h;)if(1==u.nodeType){let e,d=u==l.body,f=1,p=1;if(d)e=function(e){let t=e.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}(c);else{if(/^(fixed|sticky)$/.test(getComputedStyle(u).position)&&(h=!0),u.scrollHeight<=u.clientHeight&&u.scrollWidth<=u.clientWidth){u=u.assignedSlot||u.parentNode;continue}let t=u.getBoundingClientRect();({scaleX:f,scaleY:p}=U(u,t)),e={left:t.left,right:t.left+u.clientWidth*f,top:t.top,bottom:t.top+u.clientHeight*p}}let m=0,g=0;if("nearest"==i)t.top<e.top+a?(g=t.top-(e.top+a),n>0&&t.bottom>e.bottom+g&&(g=t.bottom-e.bottom+a)):t.bottom>e.bottom-a&&(g=t.bottom-e.bottom+a,n<0&&t.top-g<e.top&&(g=t.top-(e.top+a)));else{let r=t.bottom-t.top,o=e.bottom-e.top;g=("center"==i&&r<=o?t.top+r/2-o/2:"start"==i||"center"==i&&n<0?t.top-a:t.bottom-o+a)-e.top}if("nearest"==r?t.left<e.left+o?(m=t.left-(e.left+o),n>0&&t.right>e.right+m&&(m=t.right-e.right+o)):t.right>e.right-o&&(m=t.right-e.right+o,n<0&&t.left<e.left+m&&(m=t.left-(e.left+o))):m=("center"==r?t.left+(t.right-t.left)/2-(e.right-e.left)/2:"start"==r==s?t.left-o:t.right-(e.right-e.left)+o)-e.left,m||g)if(d)c.scrollBy(m,g);else{let e=0,n=0;if(g){let e=u.scrollTop;u.scrollTop+=g/p,n=(u.scrollTop-e)*p}if(m){let t=u.scrollLeft;u.scrollLeft+=m/f,e=(u.scrollLeft-t)*f}t={left:t.left-e,top:t.top-n,right:t.right-e,bottom:t.bottom-n},e&&1>Math.abs(e-m)&&(r="nearest"),n&&1>Math.abs(n-g)&&(i="nearest")}if(d)break;(t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)&&(t={left:Math.max(t.left,e.left),right:Math.min(t.right,e.right),top:Math.max(t.top,e.top),bottom:Math.min(t.bottom,e.bottom)}),u=u.assignedSlot||u.parentNode}else if(11==u.nodeType)u=u.host;else break}(this.view.scrollDOM,o,t.head<t.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,a),-a),Math.max(Math.min(e.yMargin,s),-s),this.view.textDirection==en.LTR),window.visualViewport&&window.innerHeight-window.visualViewport.height>1&&(n.top>window.pageYOffset+window.visualViewport.offsetTop+window.visualViewport.height||n.bottom<window.pageYOffset+window.visualViewport.offsetTop)){let e=this.view.docView.lineAt(t.head,1);e&&e.dom.scrollIntoView({block:"nearest"})}}lineHasWidget(e){let t=e=>e.isWidget()||e.children.some(t);return t(this.tile.resolveBlock(e,1).tile)}destroy(){tu(this.tile)}}function tu(e,t){let n=null==t?void 0:t.get(e);if(1!=n)for(let r of(null==n&&e.destroy(),e.children))tu(r,t)}function th(e,t){let n=e.observer.selectionRange;if(!n.focusNode)return null;let r=Q(n.focusNode,n.focusOffset),i=ee(n.focusNode,n.focusOffset),o=r||i;
vendor: 6,557 bytes, line 2
2if(i&&r&&i.node!=r.node){let t=eX.get(i.node);if(!t||t.isText()&&t.text!=i.node.nodeValue)o=i;else if(e.docView.lastCompositionAfterCursor){let e=eX.get(r.node);!e||e.isText()&&e.text!=r.node.nodeValue||(o=i)}}if(e.docView.lastCompositionAfterCursor=o!=r,!o)return null;let a=t-o.offset;return{from:a,to:a+o.node.nodeValue.length,node:o.node}}let td=class{constructor(){this.changes=[]}compareRange(e,t){j(e,t,this.changes)}comparePoint(e,t){j(e,t,this.changes)}boundChange(e){j(e,e,this.changes)}};class tf{constructor(){this.changes=[]}compareRange(e,t){j(e,t,this.changes)}comparePoint(){}boundChange(e){j(e,e,this.changes)}}class tp extends E{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}function tm(e,t,n){let r=e.lineBlockAt(t);if(Array.isArray(r.type)){let e;for(let i of r.type){if(i.from>t)break;if(!(i.to<t)){if(i.from<t&&i.to>t)return i;(!e||i.type==C.Text&&(e.type!=i.type||(n<0?i.from<t:i.to>t)))&&(e=i)}}return e||r}return r}function tg(e,t,n,r){let i=e.state.doc.lineAt(t.head),o=e.bidiSpans(i),a=e.textDirectionAt(i.from);for(let l=t,c=null;;){let t=function(e,t,n,r,i){var o;let a=r.head-e.from,l=ed.find(t,a,null!=(o=r.bidiLevel)?o:-1,r.assoc),c=t[l],u=c.side(i,n);if(a==u){let e=l+=i?1:-1;if(e<0||e>=t.length)return null;a=(c=t[l=e]).side(!i,n),u=c.side(i,n)}let h=(0,s.zK)(e.text,a,c.forward(i,n));(h<c.from||h>c.to)&&(h=u),em=e.text.slice(Math.min(a,h),Math.max(a,h));let d=l==(i?t.length-1:0)?null:t[l+(i?1:-1)];return d&&h==u&&d.level+ +!i<c.level?s.OF.cursor(d.side(!i,n)+e.from,d.forward(i,n)?1:-1,d.level):s.OF.cursor(h+e.from,c.forward(i,n)?-1:1,c.level)}(i,o,a,l,n),u=em;if(!t){if(i.number==(n?e.state.doc.lines:1))return l;u="\n",i=e.state.doc.line(i.number+(n?1:-1)),o=e.bidiSpans(i),t=e.visualLineSide(i,!n)}if(c){if(!c(u))return l}else{if(!r)return t;c=r(u)}l=t}}function tv(e,t,n){for(;;){let r=0;for(let i of e)i.between(t-1,t+1,(e,i,o)=>{if(t>e&&t<i){let o=r||n||(t-e<i-t?-1:1);t=o<0?e:i,r=o}});if(!r)return t}}function ty(e,t){let n=null;for(let r=0;r<t.ranges.length;r++){let i=t.ranges[r],o=null;if(i.empty){let t=tv(e,i.from,0);t!=i.from&&(o=s.OF.cursor(t,-1))}else{let t=tv(e,i.from,-1),n=tv(e,i.to,1);(t!=i.from||n!=i.to)&&(o=i.undirectional?s.OF.undirectionalRange(i.from,i.to):s.OF.range(i.from==i.anchor?t:n,i.from==i.head?t:n))}o&&(n||(n=t.ranges.slice()),n[r]=o)}return n?s.OF.create(n,t.mainIndex):t}function tb(e,t,n){let r=tv(e.state.facet(eH).map(t=>t(e)),n.from,t.head>n.from?-1:1);return r==n.from?n:s.OF.cursor(r,r<n.from?1:-1)}class tx{constructor(e,t){this.pos=e,this.assoc=t}}function tw(e,t,n,r){let i=e.contentDOM.getBoundingClientRect(),o=i.top+e.viewState.paddingTop,{x:a,y:l}=t,c=l-o,u;for(;;){if(c<0)return new tx(0,1);if(c>e.viewState.docHeight)return new tx(e.state.doc.length,-1);if(u=e.elementAtHeight(c),null==r)break;if(u.type==C.Text){if(r<0?u.to<e.viewport.from:u.from>e.viewport.to)break;let t=e.docView.coordsAt(r<0?u.from:u.to,r>0?-1:1);if(t&&(r<0?t.top<=c+o:t.bottom>=c+o))break}let t=e.viewState.heightOracle.textHeight/2;c=r>0?u.bottom+t:u.top-t}if(e.viewport.from>=u.to||e.viewport.to<=u.from){if(n)return null;if(u.type==C.Text){let t=function(e,t,n,r,i){let o=Math.round((r-t.left)*e.defaultCharacterWidth);if(e.lineWrapping&&n.height>1.5*e.defaultLineHeight){let t=e.viewState.heightOracle.textHeight;o+=Math.floor((i-n.top-(e.defaultLineHeight-t)*.5)/t)*e.viewState.heightOracle.lineLength}let a=e.state.sliceDoc(n.from,n.to);return n.from+(0,s.kn)(a,o,e.state.tabSize)}(e,i,u,a,l);return new tx(t,t==u.from?1:-1)}}if(u.type!=C.Text)return c<(u.top+u.bottom)/2?new tx(u.from,1):new tx(u.to,-1);let h=e.docView.lineAt(u.from,2);return h&&h.length==u.length||(h=e.docView.lineAt(u.from,-2)),new tk(e,a,l,e.textDirectionAt(u.from)).scanTile(h,u.from)}class tk{constructor(e,t,n,r){this.view=e,this.x=t,this.y=n,this.baseDir=r,this.line=null,this.spans=null}bidiSpansAt(e){return(!this.line||this.line.from>e||this.line.to<e)&&(this.line=this.view.state.doc.lineAt(e),this.spans=this.view.bidiSpans(this.line)),this}baseDirAt(e,t){let{line:n,spans:r}=this.bidiSpansAt(e);return r[ed.find(r,e-n.from,-1,t)].level==this.baseDir}dirAt(e,t){let{line:n,spans:r}=this.bidiSpansAt(e);return r[ed.find(r,e-n.from,-1,t)].dir}bidiIn(e,t){let{spans:n,line:r}=this.bidiSpansAt(e);return n.length>1||n.length&&(n[0].level!=this.baseDir||n[0].to+r.from<t)}scan(e,t,n=!1){let r,i,o=0,a=e.length-1,s=new Set,l=this.bidiIn(e[0],e[a]),c=-1,u=1e9,h;for(;o<a;){let n=a-o,d=o+a>>1;r:if(s.has(d)){let e=o+Math.floor(Math.random()*n);for(let t=0;t<n;t++){if(!s.has(e)){d=e;break r}++e==a&&(e=o)}break}s.add(d);let f=t(d);if(f)for(let t=0;t<f.length;t++){let n=f[t],s=0;if(0!=n.width||!(f.length>1)){if(n.bottom<this.y)(!r||r.bottom<n.bottom)&&(r=n),s=1;else if(n.top>this.y)(!i||i.top>n.top)&&(i=n),s=-1;else{let e=n.left>this.x?this.x-n.left:n.right<this.x?this.x-n.right:0,t=Math.abs(e);t<u&&(c=d,u=t,h=n),e&&(s=e<0==(this.baseDir==en.LTR)?-1:1)}-1==s&&(!l||this.baseDirAt(e[d],1))?a=d:1==s&&(!l||this.baseDirAt(e[d+1],-1))&&(o=d+1)}}}if(!h){if(!i&&!r)return{i:e[0],after:!1};let n=r&&(!i||this.y-r.bottom<i.top-this.y)?r:i;return this.y=(n.top+n.bottom)/2,this.scan(e,t,!0)}if(u&&!n){let{top:n,bottom:o}=h;if(r&&r.bottom>(n+n+o)/3)return this.y=r.bottom-1,this.scan(e,t,!0);if(i&&i.top<(n+o+o)/3)return this.y=i.top+1,this.scan(e,t,!0)}let d=(l?this.dirAt(e[c],1):this.baseDir)==en.LTR;return{i:c,after:this.x>(h.left+h.right)/2==d}}scanText(e,t){let n=[];for(let r=0;r<e.length;r=(0,s.zK)(e.text,r))n.push(t+r);n.push(t+e.length);let r=this.scan(n,r=>{let i=n[r]-t,o=n[r+1]-t;return Y(e.dom,i,o).getClientRects()});return r.after?new tx(n[r.i+1],-1):new tx(n[r.i],1)}scanTile(e,t){if(!e.length)return new tx(t,1);if(1==e.children.length){let n=e.children[0];if(n.isText())return this.scanText(n,t);if(n.isComposite())return this.scanTile(n,t)}let n=[t];for(let r=0,i=t;r<e.children.length;r++)n.push(i+=e.children[r].length);let r=this.scan(n,t=>{let n=e.children[t];return 48&n.flags?null:(1==n.dom.nodeType?n.dom:Y(n.dom,0,n.length)).getClientRects()}),i=e.children[r.i],o=n[r.i];return i.isText()?this.scanText(i,o):i.isComposite()?this.scanTile(i,o):r.after?new tx(n[r.i+1],-1):new tx(o,1)}}class tS{constructor(e,t){this.points=e,this.view=t,this.text="",this.lineSeparator=t.state.facet(s.$t.lineSeparator)}append(e){this.text+=e}
2lineBreak(){this.text+="ï¿¿"}readRange(e,t){if(!e)return this;let n=e.parentNode;for(let r=e;;){this.findPointBefore(n,r);let e=this.text.length;this.readNode(r);let i=eX.get(r),o=r.nextSibling;if(o==t){(null==i?void 0:i.breakAfter)&&!o&&n!=this.view.contentDOM&&this.lineBreak();break}let a=eX.get(o);(i&&a?i.breakAfter:(i?i.breakAfter:V(r))||V(o)&&("BR"!=r.nodeName||(null==i?void 0:i.isWidget()))&&this.text.length>e)&&!function(e,t){let n;for(;e!=t&&e;e=e.nextSibling){let t=eX.get(e);if(!(null==t?void 0:t.isWidget()))return!1;t&&(n||(n=[])).push(t)}if(n)for(let e of n){let t=e.overrideDOMText;if(null==t?void 0:t.length)return!1}return!0}(o,t)&&this.lineBreak(),r=o}return this.findPointBefore(n,t),this}readTextNode(e){let t=e.nodeValue;for(let n of this.points)n.node==e&&(n.pos=this.text.length+Math.min(n.offset,t.length));for(let n=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let i=-1,o=1,a;if(this.lineSeparator?(i=t.indexOf(this.lineSeparator,n),o=this.lineSeparator.length):(a=r.exec(t))&&(i=a.index,o=a[0].length),this.append(t.slice(n,i<0?t.length:i)),i<0)break;if(this.lineBreak(),o>1)for(let t of this.points)t.node==e&&t.pos>this.text.length&&(t.pos-=o-1);n=i+o}}readNode(e){let t=eX.get(e),n=t&&t.overrideDOMText;if(null!=n){this.findPointInside(e,n.length);for(let e=n.iter();!e.next().done;)e.lineBreak?this.lineBreak():this.append(e.value)}else 3==e.nodeType?this.readTextNode(e):"BR"==e.nodeName?e.nextSibling&&this.lineBreak():1==e.nodeType&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let n of this.points)n.node==e&&e.childNodes[n.offset]==t&&(n.pos=this.text.length)}findPointInside(e,t){for(let n of this.points)(3==e.nodeType?n.node==e:e.contains(n.node))&&(n.pos=this.text.length+(!function(e,t,n){for(;;){if(!t||n<W(t))return!1;if(t==e)return!0;n=F(t)+1,t=t.parentNode}}(e,n.node,n.offset)?0:t))}}class tM{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}class tA{constructor(e,t,n,r){this.typeOver=r,this.bounds=null,this.text="",this.domChanged=t>-1;let{impreciseHead:i,impreciseAnchor:o}=e.docView,a=e.state.selection;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=function e(t,n,r,i){if(t.isComposite()){let o=-1,a=-1,s=-1,l=-1;for(let c=0,u=i,h=i;c<t.children.length;c++){let i=t.children[c],d=u+i.length;if(u<n&&d>r)return e(i,n,r,u);if(d>=n&&-1==o&&(o=c,a=u),u>r&&i.dom.parentNode==t.dom){s=c,l=h;break}h=d,u=d+i.breakAfter}return{from:a,to:l<0?i+t.length:l,startDOM:(o?t.children[o-1].dom.nextSibling:null)||t.dom.firstChild,endDOM:s<t.children.length&&s>=0?t.children[s].dom:null}}return t.isText()?{from:i,to:i+t.length,startDOM:t.dom,endDOM:t.dom.nextSibling}:null}(e.docView.tile,t,n,0))){let t=i||o?[]:function(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}=e.observer.selectionRange;return n&&(t.push(new tM(n,r)),(i!=n||o!=r)&&t.push(new tM(i,o))),t}(e),n=new tS(t,e);n.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=n.text,this.newSel=function(e,t){if(0==e.length)return null;let n=e[0].pos,r=2==e.length?e[1].pos:n;return n>-1&&r>-1?s.OF.single(n+t,r+t):null}(t,this.bounds.from)}else{let t=e.observer.selectionRange,n=i&&i.node==t.focusNode&&i.offset==t.focusOffset||!_(e.contentDOM,t.focusNode)?a.main.head:e.docView.posFromDOM(t.focusNode,t.focusOffset),r=o&&o.node==t.anchorNode&&o.offset==t.anchorOffset||!_(e.contentDOM,t.anchorNode)?a.main.anchor:e.docView.posFromDOM(t.anchorNode,t.anchorOffset),l=e.viewport;if((w.ios||w.chrome)&&n!=r&&Math.min(n,r)<=a.main.from&&Math.max(n,r)>=a.main.to&&(l.from>0||l.to<e.state.doc.length)){let t=Math.min(n,r),i=Math.max(n,r),o=l.from-t,a=l.to-i;(0==o||1==o||0==t)&&(0==a||-1==a||i==e.state.doc.length)&&(n=0,r=e.state.doc.length)}if(e.inputState.composing>-1&&a.ranges.length>1)this.newSel=a.replaceRange(s.OF.range(r,n));else if(e.lineWrapping&&r==n&&!(a.main.empty&&a.main.head==n)&&e.inputState.lastTouchTime>Date.now()-100){let t=e.coordsAtPos(n,-1),r=0;t&&(r=e.inputState.lastTouchY<=t.bottom?-1:1),this.newSel=s.OF.create([s.OF.cursor(n,r)])}else this.newSel=s.OF.single(r,n)}}}function tE(e,t){let n,{newSel:r}=t,{state:i}=e,o=i.selection.main,a=e.inputState.lastKeyTime>Date.now()-100?e.inputState.lastKeyCode:-1;
2if(t.bounds){let{from:e,to:r}=t.bounds,l=o.from,c=null;(8===a||w.android&&t.text.length<r-e)&&(l=o.to,c="end");let u=i.doc.sliceString(e,r,"ï¿¿"),h,d;!o.empty&&o.from>=e&&o.to<=r&&(t.typeOver||u!=t.text)&&u.slice(0,o.from-e)==t.text.slice(0,o.from-e)&&u.slice(o.to-e)==t.text.slice(h=t.text.length-(u.length-(o.to-e)))?n={from:o.from,to:o.to,insert:s.EY.of(t.text.slice(o.from-e,h).split("ï¿¿"))}:(d=tO(u,t.text,l-e,c))&&(w.chrome&&13==a&&d.toB==d.from+2&&"ï¿¿ï¿¿"==t.text.slice(d.from,d.toB)&&d.toB--,n={from:e+d.from,to:e+d.toA,insert:s.EY.of(t.text.slice(d.from,d.toB).split("ï¿¿"))})}else r&&(!e.hasFocus&&i.facet(eR)||tP(r,o))&&(r=null);if(!n&&!r)return!1;if((w.mac||w.android)&&n&&n.from==n.to&&n.from==o.head-1&&/^\. ?$/.test(n.insert.toString())&&"off"==e.contentDOM.getAttribute("autocorrect")?(r&&2==n.insert.length&&(r=s.OF.single(r.main.anchor-1,r.main.head-1)),n={from:n.from,to:n.to,insert:s.EY.of([n.insert.toString().replace("."," ")])}):i.doc.lineAt(o.from).to<o.to&&e.docView.lineHasWidget(o.to)&&e.inputState.insertingTextAt>Date.now()-50?n={from:o.from,to:o.to,insert:i.toText(e.inputState.insertingText)}:w.chrome&&n&&n.from==n.to&&n.from==o.head&&"\n "==n.insert.toString()&&e.lineWrapping&&(r&&(r=s.OF.single(r.main.anchor-1,r.main.head-1)),n={from:o.from,to:o.to,insert:s.EY.of([" "])}),n)return tC(e,n,r,a);if(!r||tP(r,o))return!1;{let t=!1,n="select";return e.inputState.lastSelectionTime>Date.now()-50&&("select"==e.inputState.lastSelectionOrigin&&(t=!0),"select.pointer"==(n=e.inputState.lastSelectionOrigin)&&(r=ty(i.facet(eH).map(t=>t(e)),r))),e.dispatch({selection:r,scrollIntoView:t,userEvent:n}),!0}}function tC(e,t,n,r=-1){let i;if(w.ios&&e.inputState.flushIOSKey(t))return!0;let o=e.state.selection.main;if(w.android&&(t.to==o.to&&(t.from==o.from||t.from==o.from-1&&" "==e.state.sliceDoc(t.from,o.from))&&1==t.insert.length&&2==t.insert.lines&&X(e.contentDOM,"Enter",13)||(t.from==o.from-1&&t.to==o.to&&0==t.insert.length||8==r&&t.insert.length<t.to-t.from&&t.to>o.head)&&X(e.contentDOM,"Backspace",8)||t.from==o.from&&t.to==o.to+1&&0==t.insert.length&&X(e.contentDOM,"Delete",46)))return!0;let a=t.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let l=()=>i||(i=function(e,t,n){let r,i=e.state,o=i.selection.main,a=-1;if(t.from==t.to&&t.from<o.from||t.from>o.to){let n=t.from<o.from?-1:1,r=n<0?o.from:o.to,s=tv(i.facet(eH).map(t=>t(e)),r,n);t.from==s&&(a=s)}if(a>-1)r={changes:t,selection:s.OF.cursor(t.from+t.insert.length,-1)};else if(t.from>=o.from&&t.to<=o.to&&t.to-t.from>=(o.to-o.from)/3&&(!n||n.main.empty&&n.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let n=o.from<t.from?i.sliceDoc(o.from,t.from):"",a=o.to>t.to?i.sliceDoc(t.to,o.to):"";r=i.replaceSelection(e.state.toText(n+t.insert.sliceString(0,void 0,e.state.lineBreak)+a))}else{let a=i.changes(t),l=n&&n.main.to<=a.newLength?n.main:void 0;if(i.selection.ranges.length>1&&(e.inputState.composing>=0||e.inputState.compositionPendingChange)&&t.to<=o.to+10&&t.to>=o.to-10){let c=e.state.sliceDoc(t.from,t.to),u,h=n&&th(e,n.main.head);if(h){let e=t.insert.length-(t.to-t.from);u={from:h.from,to:h.to-e}}else u=e.state.doc.lineAt(o.head);let d=o.to-t.to;r=i.changeByRange(n=>{if(n.from==o.from&&n.to==o.to)return{changes:a,range:l||n.map(a)};let r=n.to-d,h=r-c.length;if(e.state.sliceDoc(h,r)!=c||r>=u.from&&h<=u.to)return{range:n};let f=i.changes({from:h,to:r,insert:t.insert}),p=n.to-o.to;return{changes:f,range:l?s.OF.range(Math.max(0,l.anchor+p),Math.max(0,l.head+p)):n.map(f)}})}else r={changes:a,selection:l&&i.selection.replaceRange(l)}}let l="input.type";return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,l+=".compose",e.inputState.compositionFirstChange&&(l+=".start",e.inputState.compositionFirstChange=!1)),i.update(r,{userEvent:l,scrollIntoView:!0})}(e,t,n));return e.state.facet(ew).some(n=>n(e,t.from,t.to,a,l))||e.dispatch(l()),!0}function tO(e,t,n,r){let i=Math.min(e.length,t.length),o=0;for(;o<i&&e.charCodeAt(o)==t.charCodeAt(o);)o++;if(o==i&&e.length==t.length)return null;let a=e.length,s=t.length;for(;a>0&&s>0&&e.charCodeAt(a-1)==t.charCodeAt(s-1);)a--,s--;if("end"==r){let e=Math.max(0,o-Math.min(a,s));n-=a+e-o}if(a<o&&e.length<t.length){let e=n<=o&&n>=a?o-n:0;o-=e,s=o+(s-a),a=o}else if(s<o){let e=n<=o&&n>=s?o-n:0;o-=e,a=o+(a-s),s=o}return{from:o,toA:a,toB:s}}function tP(e,t){return t.head==e.main.head&&t.anchor==e.main.anchor}class tT{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.touchActive=!1,this.lastTouchTime=0,this.lastTouchX=0,this.lastTouchY=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.lastWheelEvent=0,this.pendingIOSKey=void 0,this.lastIOSMomentumScroll=0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.insertingText="",this.insertingTextAt=0,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,w.safari&&e.contentDOM.addEventListener("input",()=>null),w.gecko&&function(e){tQ.has(e)||(tQ.add(e),e.addEventListener("copy",()=>{}),e.addEventListener("cut",()=>{}))}(e.contentDOM.ownerDocument)}handleEvent(e){!function(e,t){if(!t.bubbles)return!0;
2if(t.defaultPrevented)return!1;for(let n=t.target,r;n!=e.contentDOM;n=n.parentNode)if(!n||11==n.nodeType||(r=eX.get(n))&&r.isWidget()&&!r.isHidden&&r.widget.ignoreEvent(t))return!1;return!0}(this.view,e)||this.ignoreDuringComposition(e)||"keydown"==e.type&&this.keydown(e)||(0!=this.view.updateState?Promise.resolve().then(()=>this.runHandlers(e.type,e)):this.runHandlers(e.type,e))}runHandlers(e,t){let n=this.handlers[e];if(n){for(let e of n.observers)e(this.view,t);for(let e of n.handlers){if(t.defaultPrevented)break;if(e(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=function(e){let t=Object.create(null);function n(e){return t[e]||(t[e]={observers:[],handlers:[]})}for(let t of e){let e=t.spec,r=e&&e.plugin.domEventHandlers,i=e&&e.plugin.domEventObservers;if(r)for(let e in r){let i=r[e];i&&n(e).handlers.push(tD(t.value,i))}if(i)for(let e in i){let r=i[e];r&&n(e).observers.push(tD(t.value,r))}}for(let e in tL)n(e).handlers.push(tL[e]);for(let e in tN)n(e).observers.push(tN[e]);return t}(e),n=this.handlers,r=this.view.contentDOM;for(let e in t)if("scroll"!=e){let i=!t[e].handlers.length,o=n[e];o&&!o.handlers.length!=i&&(r.removeEventListener(e,this.handleEvent),o=null),o||r.addEventListener(e,this.handleEvent,{passive:i})}for(let e in n)"scroll"==e||t[e]||r.removeEventListener(e,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),9==e.keyCode&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&27!=e.keyCode&&0>tI.indexOf(e.keyCode)&&(this.tabFocusMode=-1),w.android&&w.chrome&&!e.synthetic&&(13==e.keyCode||8==e.keyCode))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;if(w.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&(tR.some(t=>t.keyCode==e.keyCode)&&!e.ctrlKey||tj.indexOf(e.key)>-1&&e.ctrlKey)){var t;let n={ctrlKey:e.ctrlKey,altKey:e.altKey,metaKey:e.metaKey,shiftKey:e.shiftKey};return n.shiftKey&&w.ios&&!/^(off|none)$/.test(this.view.contentDOM.autocapitalize)&&(t=this.view.win).visualViewport&&t.visualViewport.height*t.visualViewport.scale/t.document.documentElement.clientHeight<.85&&(n.shiftKey=!1),this.pendingIOSKey={key:e.key,keyCode:e.keyCode,mods:n},setTimeout(()=>this.flushIOSKey(),250),!0}return 229!=e.keyCode&&this.view.observer.forceFlush(),!1}flushIOSKey(e){let t=this.pendingIOSKey;return!(!t||"Enter"==t.key&&e&&e.from<e.to&&/^\S+$/.test(e.insert.toString()))&&(this.pendingIOSKey=void 0,X(this.view.contentDOM,t.key,t.keyCode,t.mods))}ignoreDuringComposition(e){return!!/^key/.test(e.type)&&!e.synthetic&&(this.composing>0||!!(w.safari&&!w.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function tD(e,t){return(n,r)=>{try{return t.call(e,r,n)}catch(e){eD(n.state,e)}}}let tR=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],tj="dthko",tI=[16,17,18,20,91,92,224,225];function tz(e){return .7*Math.max(0,e)+8}class t_{constructor(e,t,n,r){this.view=e,this.startEvent=t,this.style=n,this.mustSelect=r,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParents=K(e.contentDOM),this.atoms=e.state.facet(eH).map(t=>t(e));let i=e.contentDOM.ownerDocument;i.addEventListener("mousemove",this.move=this.move.bind(this)),i.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(s.$t.allowMultipleSelections)&&function(e,t){let n=e.state.facet(eg);return n.length?n[0](t):w.mac?t.metaKey:t.ctrlKey}(e,t),this.dragging=!!function(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let r=z(e.root);if(!r||0==r.rangeCount)return!0;let i=r.getRangeAt(0).getClientRects();for(let e=0;e<i.length;e++){let n=i[e];if(n.left<=t.clientX&&n.right>=t.clientX&&n.top<=t.clientY&&n.bottom>=t.clientY)return!0}return!1}(e,t)&&1==tq(t)&&null}start(e){!1===this.dragging&&this.select(e)}move(e){var t;if(0==e.buttons)return this.destroy();if(this.dragging||null==this.dragging&&10>(t=this.startEvent,Math.max(Math.abs(t.clientX-e.clientX),Math.abs(t.clientY-e.clientY))))return;this.select(this.lastEvent=e);let n=0,r=0,i=0,o=0,a=this.view.win.innerWidth,s=this.view.win.innerHeight;this.scrollParents.x&&({left:i,right:a}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:o,bottom:s}=this.scrollParents.y.getBoundingClientRect());let l=eK(this.view);e.clientX-l.left<=i+6?n=-tz(i-e.clientX):e.clientX+l.right>=a-6&&(n=tz(e.clientX-a)),e.clientY-l.top<=o+6?r=-tz(o-e.clientY):e.clientY+l.bottom>=s-6&&(r=tz(e.clientY-s)),this.setScrollSpeed(n,r)}up(e){null==this.dragging&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:e,y:t}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),t&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=t,t=0),(e||t)&&this.view.win.scrollBy(e,t),!1===this.dragging&&this.select(this.lastEvent)}select(e){let{view:t}=this,n=ty(this.atoms,this.style.get(e,this.extend,this.multiple));(this.mustSelect||!n.eq(t.state.selection,!1===this.dragging))&&this.view.dispatch({selection:n,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.transactions.some(e=>e.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}let tL=Object.create(null),tN=Object.create(null),tB=w.ie&&w.ie_version<15||w.ios&&w.webkit_version<604;function tF(e,t,n){for(let r of e.facet(t))n=r(n,e);return n}
2function tV(e,t){t=tF(e.state,eS,t);let{state:n}=e,r,i=1,o=n.toText(t),a=o.lines==n.selection.ranges.length;if(null!=tZ&&n.selection.ranges.every(e=>e.empty)&&tZ==o.toString()){let e=-1;r=n.changeByRange(r=>{let l=n.doc.lineAt(r.from);if(l.from==e)return{range:r};e=l.from;let c=n.toText((a?o.line(i++).text:t)+n.lineBreak);return{changes:{from:l.from,insert:c},range:s.OF.cursor(r.from+c.length)}})}else r=a?n.changeByRange(e=>{let t=o.line(i++);return{changes:{from:e.from,to:e.to,insert:t.text},range:s.OF.cursor(e.from+t.length)}}):n.replaceSelection(o);e.dispatch(r,{userEvent:"input.paste",scrollIntoView:!0})}function tH(e,t,n,r){if(1==r)return s.OF.cursor(t,n);{if(2==r)return function(e,t,n=1){let r=e.charCategorizer(t),i=e.doc.lineAt(t),o=t-i.from;if(0==i.length)return s.OF.cursor(t);0==o?n=1:o==i.length&&(n=-1);let a=o,l=o;n<0?a=(0,s.zK)(i.text,o,!1):l=(0,s.zK)(i.text,o);let c=r(i.text.slice(a,l));for(;a>0;){let e=(0,s.zK)(i.text,a,!1);if(r(i.text.slice(e,a))!=c)break;a=e}for(;l<i.length;){let e=(0,s.zK)(i.text,l);if(r(i.text.slice(l,e))!=c)break;l=e}return s.OF.undirectionalRange(a+i.from,l+i.from)}(e.state,t,n);let i=e.docView.lineAt(t,n),o=e.state.doc.lineAt(i?i.posAtEnd:t),a=i?i.posAtStart:o.from,l=i?i.posAtEnd:o.to;return l<e.state.doc.length&&l==o.to&&l++,s.OF.undirectionalRange(a,l)}}tN.scroll=e=>{let t=e.inputState;t.lastScrollTop=e.scrollDOM.scrollTop,t.lastScrollLeft=e.scrollDOM.scrollLeft,w.ios&&!t.touchActive&&(t.lastIOSMomentumScroll=Date.now())},tN.wheel=tN.mousewheel=e=>{e.inputState.lastWheelEvent=Date.now()},tL.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),27==t.keyCode&&0!=e.inputState.tabFocusMode&&(e.inputState.tabFocusMode=Date.now()+2e3),!1),tN.touchstart=(e,t)=>{let n=e.inputState,r=t.targetTouches[0];n.touchActive=!0,n.lastTouchTime=Date.now(),r&&(n.lastTouchX=r.clientX,n.lastTouchY=r.clientY),n.setSelectionOrigin("select.pointer")},tN.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")},tN.touchend=(e,t)=>{e.inputState.touchActive=!1},tL.mousedown=(e,t)=>{var n,r;let i,o,a;if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return!1;let l=null;for(let n of e.state.facet(ey))if(l=n(e,t))break;if(l||0!=t.button||(n=e,r=t,i=n.posAndSideAtCoords({x:r.clientX,y:r.clientY},!1),o=tq(r),a=n.state.selection,l={update(e){e.docChanged&&(i.pos=e.changes.mapPos(i.pos),a=a.map(e.changes))},get(e,t,r){let l=n.posAndSideAtCoords({x:e.clientX,y:e.clientY},!1),c,u=tH(n,l.pos,l.assoc,o);if(i.pos!=l.pos&&!t){let e=tH(n,i.pos,i.assoc,o),t=Math.min(e.from,u.from),r=Math.max(e.to,u.to);u=t<u.from?s.OF.range(t,r,u.assoc):s.OF.range(r,t,u.assoc)}return t?a.replaceRange(a.main.extend(u.from,u.to,u.assoc)):r&&1==o&&a.ranges.length>1&&(c=function(e,t){for(let n=0;n<e.ranges.length;n++){let{from:r,to:i}=e.ranges[n];if(r<=t&&i>=t)return s.OF.create(e.ranges.slice(0,n).concat(e.ranges.slice(n+1)),e.mainIndex==n?0:e.mainIndex-(e.mainIndex>n))}return null}(a,l.pos))?c:r?a.addRange(u):s.OF.create([u])}}),l){let n=!e.hasFocus;e.inputState.startMouseSelection(new t_(e,t,l,n)),n&&e.observer.ignore(()=>{Z(e.contentDOM);let t=e.root.activeElement;t&&!t.contains(e.contentDOM)&&t.blur()});let r=e.inputState.mouseSelection;if(r)return r.start(t),!1===r.dragging}else e.inputState.setSelectionOrigin("select.pointer");return!1};let tW=w.ie&&w.ie_version<=11,t$=null,tU=0,tK=0;function tq(e){if(!tW)return e.detail;let t=t$,n=tK;return t$=e,tK=Date.now(),tU=!t||n>Date.now()-400&&2>Math.abs(t.clientX-e.clientX)&&2>Math.abs(t.clientY-e.clientY)?(tU+1)%3:1}function tG(e,t,n,r){let i;if(!(n=tF(e.state,eS,n)))return;let o=e.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:a}=e.inputState,s=r&&a&&((i=e.state.facet(ev)).length?i[0](t):w.mac?!t.altKey:!t.ctrlKey)?{from:a.from,to:a.to}:null,l={from:o,insert:n},c=e.state.changes(s?[s,l]:l);e.focus(),e.dispatch({changes:c,selection:{anchor:c.mapPos(o,-1),head:c.mapPos(o,1)},userEvent:s?"move.drop":"input.drop"}),e.inputState.draggedContent=null}tL.dragstart=(e,t)=>{let{selection:{main:n}}=e.state;if(t.target.draggable){let r=e.docView.tile.nearest(t.target);if(r&&r.isWidget()){let e=r.posAtStart,t=e+r.length;(e>=n.to||t<=n.from)&&(n=s.OF.undirectionalRange(e,t))}}let{inputState:r}=e;return r.mouseSelection&&(r.mouseSelection.dragging=!0),r.draggedContent=n,t.dataTransfer&&(t.dataTransfer.setData("Text",tF(e.state,eM,e.state.sliceDoc(n.from,n.to))
vendor: 5,438 bytes, line 2
2),t.dataTransfer.effectAllowed="copyMove"),!1},tL.dragend=e=>(e.inputState.draggedContent=null,!1),tL.drop=(e,t)=>{if(!t.dataTransfer)return!1;if(e.state.readOnly)return!0;let n=t.dataTransfer.files;if(n&&n.length){let r=Array(n.length),i=0,o=()=>{++i==n.length&&tG(e,t,r.filter(e=>null!=e).join(e.state.lineBreak),!1)};for(let e=0;e<n.length;e++){let t=new FileReader;t.onerror=o,t.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(t.result)||(r[e]=t.result),o()},t.readAsText(n[e])}return!0}{let n=t.dataTransfer.getData("Text");if(n)return tG(e,t,n,!0),!0}return!1},tL.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let n=tB?null:t.clipboardData;return n?(tV(e,n.getData("text/plain")||n.getData("text/uri-list")),!0):(!function(e){let t=e.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout(()=>{e.focus(),n.remove(),tV(e,n.value)},50)}(e),!1)};let tZ=null;tL.copy=tL.cut=(e,t)=>{if(!L(e.contentDOM,e.observer.selectionRange))return!1;let{text:n,ranges:r,linewise:i}=function(e){let t=[],n=[],r=!1;for(let r of e.selection.ranges)r.empty||(t.push(e.sliceDoc(r.from,r.to)),n.push(r));if(!t.length){let i=-1;for(let{from:r}of e.selection.ranges){let o=e.doc.lineAt(r);o.number>i&&(t.push(o.text),n.push({from:o.from,to:Math.min(e.doc.length,o.to+1)})),i=o.number}r=!0}return{text:tF(e,eM,t.join(e.lineBreak)),ranges:n,linewise:r}}(e.state);if(!n&&!i)return!1;tZ=i?n:null,"cut"!=t.type||e.state.readOnly||e.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let o=tB?null:t.clipboardData;return o?(o.clearData(),o.setData("text/plain",n),!0):(!function(e,t){let n=e.dom.parentNode;if(!n)return;let r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=t,r.focus(),r.selectionEnd=t.length,r.selectionStart=0,setTimeout(()=>{r.remove(),e.focus()},50)}(e,n),!1)};let tY=s.YH.define();function tX(e,t){let n=[];for(let r of e.facet(ek)){let i=r(e,t);i&&n.push(i)}return n.length?e.update({effects:n,annotations:tY.of(!0)}):null}function tJ(e){setTimeout(()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let n=tX(e.state,t);n?e.dispatch(n):e.update([])}},10)}tN.focus=e=>{e.inputState.lastFocusTime=Date.now(),!e.scrollDOM.scrollTop&&(e.inputState.lastScrollTop||e.inputState.lastScrollLeft)&&(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),tJ(e)},tN.blur=e=>{e.observer.clearSelectionRange(),tJ(e)},tN.compositionstart=tN.compositionupdate=e=>{!e.observer.editContext&&(null==e.inputState.compositionFirstChange&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0))},tN.compositionend=e=>{e.observer.editContext||(e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionPendingKey=!0,e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,e.inputState.compositionFirstChange=null,w.chrome&&w.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then(()=>e.observer.flush()):setTimeout(()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([])},50))},tN.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()},tL.beforeinput=(e,t)=>{var n,r;let i;if(("insertText"==t.inputType||"insertCompositionText"==t.inputType)&&(e.inputState.insertingText=t.data,e.inputState.insertingTextAt=Date.now()),"insertReplacementText"==t.inputType&&e.observer.editContext){let r=null==(n=t.dataTransfer)?void 0:n.getData("text/plain"),i=t.getTargetRanges();if(r&&i.length){let t=i[0],n=e.posAtDOM(t.startContainer,t.startOffset),o=e.posAtDOM(t.endContainer,t.endOffset);return tC(e,{from:n,to:o,insert:e.state.toText(r)},null),!0}}if(w.chrome&&w.android&&(i=tR.find(e=>e.inputType==t.inputType))&&(e.observer.delayAndroidKey(i.key,i.keyCode),"Backspace"==i.key||"Delete"==i.key)){let t=(null==(r=window.visualViewport)?void 0:r.height)||0;setTimeout(()=>{var n;((null==(n=window.visualViewport)?void 0:n.height)||0)>t+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())},100)}return w.ios&&"deleteContentForward"==t.inputType&&e.observer.flushSoon(),w.safari&&"insertText"==t.inputType&&e.inputState.composing>=0&&setTimeout(()=>tN.compositionend(e,t),20),!1};let tQ=new Set,t0=["pre-wrap","normal","pre-line","break-spaces"],t1=!1;class t2{constructor(e){this.lineWrapping=e,this.doc=s.EY.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,t){let n=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.max(0,Math.ceil((t-e-n*this.lineLength*.5)/this.lineLength))),this.lineHeight*n}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/Math.max(1,this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return t0.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let n=0;n<e.length;n++){let r=e[n];r<0?n++:this.heightSamples[Math.floor(10*r)]||(t=!0,this.heightSamples[Math.floor(10*r)]=!0)}return t}refresh(e,t,n,r,i,o){let a=t0.indexOf(e)>-1,s=Math.abs(t-this.lineHeight)>.3||this.lineWrapping!=a;if(this.lineWrapping=a,this.lineHeight=t,this.charWidth=n,this.textHeight=r,this.lineLength=i,s){this.heightSamples={};for(let e=0;e<o.length;
vendor: 11,777 bytes, line 2
2e++){let t=o[e];t<0?e++:this.heightSamples[Math.floor(10*t)]=!0}}return s}}class t4{constructor(e,t){this.from=e,this.heights=t,this.index=0}get more(){return this.index<this.heights.length}}class t5{constructor(e,t,n,r,i){this.from=e,this.length=t,this.top=n,this.height=r,this._content=i}get type(){return"number"==typeof this._content?C.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof D?this._content.widget:null}get widgetLineBreaks(){return"number"==typeof this._content?this._content:0}join(e){let t=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new t5(this.from,this.length+e.length,this.top,this.height+e.height,t)}}var t3=((a=t3||(t3={}))[a.ByPos=0]="ByPos",a[a.ByHeight=1]="ByHeight",a[a.ByPosNoHeight=2]="ByPosNoHeight",a);class t6{constructor(e,t,n=2){this.length=e,this.height=t,this.flags=n}get outdated(){return(2&this.flags)>0}set outdated(e){this.flags=2*!!e|-3&this.flags}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>.001&&(t1=!0),this.height=e)}replace(e,t,n){return t6.of(n)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,n,r){let i=this,o=n.doc;for(let a=r.length-1;a>=0;a--){let{fromA:s,toA:l,fromB:c,toB:u}=r[a],h=i.lineAt(s,t3.ByPosNoHeight,n.setDoc(t),0,0),d=h.to>=l?h:i.lineAt(l,t3.ByPosNoHeight,n,0,0);for(u+=d.to-l,l=d.to;a>0&&h.from<=r[a-1].toA;)s=r[a-1].fromA,c=r[a-1].fromB,a--,s<h.from&&(h=i.lineAt(s,t3.ByPosNoHeight,n,0,0));c+=h.from-s,s=h.from;let f=ni.build(n.setDoc(o),e,c,u);i=t8(i,i.replace(s,l,f))}return i.updateHeight(n,0)}static empty(){return new ne(0,0,0)}static of(e){if(1==e.length)return e[0];let t=0,n=e.length,r=0,i=0;for(;;)if(t==n)if(r>2*i){let i=e[t-1];i.break?e.splice(--t,1,i.left,null,i.right):e.splice(--t,1,i.left,i.right),n+=1+i.break,r-=i.size}else if(i>2*r){let t=e[n];t.break?e.splice(n,1,t.left,null,t.right):e.splice(n,1,t.left,t.right),n+=2+t.break,i-=t.size}else break;else if(r<i){let n=e[t++];n&&(r+=n.size)}else{let t=e[--n];t&&(i+=t.size)}let o=0;return null==e[t-1]?(o=1,t--):null==e[t]&&(o=1,n++),new nn(t6.of(e.slice(0,t)),o,t6.of(e.slice(n)))}}function t8(e,t){return e==t?e:(e.constructor!=t.constructor&&(t1=!0),t)}t6.prototype.size=1;let t9=O.replace({});class t7 extends t6{constructor(e,t,n){super(e,t),this.deco=n,this.spaceAbove=0}mainBlock(e,t){return new t5(t,this.length,e+this.spaceAbove,this.height-this.spaceAbove,this.deco||0)}blockAt(e,t,n,r){return this.spaceAbove&&e<n+this.spaceAbove?new t5(r,0,n,this.spaceAbove,t9):this.mainBlock(n,r)}lineAt(e,t,n,r,i){let o=this.mainBlock(r,i);return this.spaceAbove?this.blockAt(0,n,r,i).join(o):o}forEachLine(e,t,n,r,i,o){e<=i+this.length&&t>=i&&o(this.lineAt(0,t3.ByPos,n,r,i))}setMeasuredHeight(e){let t=e.heights[e.index++];t<0?(this.spaceAbove=-t,t=e.heights[e.index++]):this.spaceAbove=0,this.setHeight(t)}updateHeight(e,t=0,n=!1,r){return r&&r.from<=t&&r.more&&this.setMeasuredHeight(r),this.outdated=!1,this}toString(){return`block(${this.length})`}}class ne extends t7{constructor(e,t,n){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0,this.spaceAbove=n}mainBlock(e,t){return new t5(t,this.length,e+this.spaceAbove,this.height-this.spaceAbove,this.breaks)}replace(e,t,n){let r=n[0];return 1==n.length&&(r instanceof ne||r instanceof nt&&4&r.flags)&&10>Math.abs(this.length-r.length)?(r instanceof nt?r=new ne(r.length,this.height,this.spaceAbove):r.height=this.height,this.outdated||(r.outdated=!1),r):t6.of(n)}updateHeight(e,t=0,n=!1,r){return r&&r.from<=t&&r.more?this.setMeasuredHeight(r):(n||this.outdated)&&(this.spaceAbove=0,this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight)),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class nt extends t6{constructor(e){super(e,0)}heightMetrics(e,t){let n=e.doc.lineAt(t).number,r=e.doc.lineAt(t+this.length).number,i=r-n+1,o,a=0;if(e.lineWrapping){let t=Math.min(this.height,e.lineHeight*i);o=t/i,this.length>i+1&&(a=(this.height-t)/(this.length-i-1))}else o=this.height/i;return{firstLine:n,lastLine:r,perLine:o,perChar:a}}blockAt(e,t,n,r){let{firstLine:i,lastLine:o,perLine:a,perChar:s}=this.heightMetrics(t,r);if(t.lineWrapping){let i=r+(e<t.lineHeight?0:Math.round(Math.max(0,Math.min(1,(e-n)/this.height))*this.length)),o=t.doc.lineAt(i),l=a+o.length*s,c=Math.max(n,e-l/2);return new t5(o.from,o.length,c,l,0)}{let r=Math.max(0,Math.min(o-i,Math.floor((e-n)/a))),{from:s,length:l}=t.doc.line(i+r);return new t5(s,l,n+a*r,a,0)}}lineAt(e,t,n,r,i){if(t==t3.ByHeight)return this.blockAt(e,n,r,i);if(t==t3.ByPosNoHeight){let{from:t,to:r}=n.doc.lineAt(e);return new t5(t,r-t,0,0,0)}let{firstLine:o,perLine:a,perChar:s}=this.heightMetrics(n,i),l=n.doc.lineAt(e),c=a+l.length*s,u=l.number-o,h=r+a*u+s*(l.from-i-u);return new t5(l.from,l.length,Math.max(r,Math.min(h,r+this.height-c)),c,0)}forEachLine(e,t,n,r,i,o){e=Math.max(e,i),t=Math.min(t,i+this.length);let{firstLine:a,perLine:s,perChar:l}=this.heightMetrics(n,i);for(let c=e,u=r;c<=t;){let t=n.doc.lineAt(c);if(c==e){let n=t.number-a;u+=s*n+l*(e-i-n)}let r=s+l*t.length;o(new t5(t.from,t.length,u,r,0)),u+=r,c=t.to+1}}replace(e,t,n){let r=this.length-t;if(r>0){let e=n[n.length-1];e instanceof nt?n[n.length-1]=new nt(e.length+r):n.push(null,new nt(r-1))}if(e>0){let t=n[0];t instanceof nt?n[0]=new nt(e+t.length):n.unshift(new nt(e-1),null)}return t6.of(n)}decomposeLeft(e,t){t.push(new nt(e-1),null)}decomposeRight(e,t){t.push(null,new nt(this.length-e-1))}updateHeight(e,t=0,n=!1,r){let i=t+this.length;if(r&&r.from<=t+this.length&&r.more){let n=[],o=Math.max(t,r.from),a=-1;for(r.from>t&&n.push(new nt(r.from-t-1).updateHeight(e,t));o<=i&&r.more;){let t=e.doc.lineAt(o).length;n.length&&n.push(null);let i=r.heights[r.index++],s=0;i<0&&(s=-i,i=r.heights[r.index++]),-1==a?a=i:Math.abs(i-a)>=.001&&(a=-2);let l=new ne(t,i,s);l.outdated=!1,n.push(l),o+=t+1}o<=i&&n.push(null,new nt(i-o).updateHeight(e,o));let s=t6.of(n);return(a<0||Math.abs(s.height-this.height)>=.001||Math.abs(a-this.heightMetrics(e,t).perLine)>=.001)&&(t1=!0),t8(this,s)}return(n||this.outdated)&&(this.setHeight(e.heightForGap(t,t+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class nn extends t6{constructor(e,t,n){super(e.length+t+n.length,e.height+n.height,t|(e.outdated||n.outdated?2:0)),this.left=e,this.right=n,this.size=e.size+n.size}get break(){return 1&this.flags}blockAt(e,t,n,r){let i=n+this.left.height;return e<i?this.left.blockAt(e,t,n,r):this.right.blockAt(e,t,i,r+this.left.length+this.break)}lineAt(e,t,n,r,i){let o=r+this.left.height,a=i+this.left.length+this.break,s=t==t3.ByHeight?e<o:e<a,l=s?this.left.lineAt(e,t,n,r,i):this.right.lineAt(e,t,n,o,a);if(this.break||(s?l.to<a:l.from>a))return l;let c=t==t3.ByPosNoHeight?t3.ByPosNoHeight:t3.ByPos;return s?l.join(this.right.lineAt(a,c,n,o,a)):this.left.lineAt(a,c,n,r,i).join(l)}forEachLine(e,t,n,r,i,o){let a=r+this.left.height,s=i+this.left.length+this.break;if(this.break)e<s&&this.left.forEachLine(e,t,n,r,i,o),t>=s&&this.right.forEachLine(e,t,n,a,s,o);else{let l=this.lineAt(s,t3.ByPos,n,r,i);e<l.from&&this.left.forEachLine(e,l.from-1,n,r,i,o),l.to>=e&&l.from<=t&&o(l),t>l.to&&this.right.forEachLine(l.to+1,t,n,a,s,o)}}replace(e,t,n){let r=this.left.length+this.break;if(t<r)return this.balanced(this.left.replace(e,t,n),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-r,t-r,n));let i=[];e>0&&this.decomposeLeft(e,i);let o=i.length;for(let e of n)i.push(e);if(e>0&&nr(i,o-1),t<this.length){let e=i.length;this.decomposeRight(t,i),nr(i,e)}return t6.of(i)}decomposeLeft(e,t){let n=this.left.length;if(e<=n)return this.left.decomposeLeft(e,t);t.push(this.left),this.break&&e>=++n&&t.push(null),e>n&&this.right.decomposeLeft(e-n,t)}decomposeRight(e,t){let n=this.left.length,r=n+this.break;if(e>=r)return this.right.decomposeRight(e-r,t);e<n&&this.left.decomposeRight(e,t),this.break&&e<r&&t.push(null),t.push(this.right)}balanced(e,t){return e.size>2*t.size||t.size>2*e.size?t6.of(this.break?[e,null,t]:[e,t]):(this.left=t8(this.left,e),this.right=t8(this.right,t),this.setHeight(e.height+t.height),this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,n=!1,r){let{left:i,right:o}=this,a=t+i.length+this.break,s=null;return(r&&r.from<=t+i.length&&r.more?s=i=i.updateHeight(e,t,n,r):i.updateHeight(e,t,n),r&&r.from<=a+o.length&&r.more?s=o=o.updateHeight(e,a,n,r):o.updateHeight(e,a,n),s)?this.balanced(i,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function nr(e,t){let n,r;null==e[t]&&(n=e[t-1])instanceof nt&&(r=e[t+1])instanceof nt&&e.splice(t-1,3,new nt(n.length+1+r.length))}class ni{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let e=Math.min(t,this.lineEnd),n=this.nodes[this.nodes.length-1];n instanceof ne?n.length+=e-this.pos:(e>this.pos||!this.isCovered)&&this.nodes.push(new ne(e-this.pos,-1,0)),this.writtenTo=e,t>e&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,n){if(e<t||n.heightRelevant){let r=n.widget?n.widget.estimatedHeight:0,i=n.widget?n.widget.lineBreaks:0;r<0&&(r=this.oracle.lineHeight);let o=t-e;n.block?this.addBlock(new t7(o,r,n)):(o||i||r>=5)&&this.addLineDeco(r,i,o)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenTo<e&&((this.writtenTo<e-1||null==this.nodes[this.nodes.length-1])&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new ne(this.pos-e,-1,0)),this.writtenTo=this.pos}blankContent(e,t){let n=new nt(t-e);return this.oracle.doc.lineAt(e).to==t&&(n.flags|=4),n}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof ne)return e;let t=new ne(0,-1,0);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,n){let r=this.ensureLine();r.length+=n,r.collapsed+=n,r.widgetHeight=Math.max(r.widgetHeight,e),r.breaks+=t,this.writtenTo=this.pos=this.pos+n}finish(e){let t=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||t instanceof ne||this.isCovered?(this.writtenTo<this.pos||null==t)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos)):this.nodes.push(new ne(0,-1,0));let n=e;for(let e of this.nodes)e instanceof ne&&e.updateHeight(this.oracle,n),n+=e?e.length:1;return this.nodes}static build(e,t,n,r){let i=new ni(n,e);return s.om.spans(t,n,r,i,0),i.finish(n)}}class no{constructor(){this.changes=[]}compareRange(){}comparePoint(e,t,n,r){(e<t||n&&n.heightRelevant||r&&r.heightRelevant)&&j(e,t,this.changes,5)}}class na{constructor(e,t,n,r){this.from=e,this.to=t,this.size=n,this.displaySize=r}static same(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++){let r=e[n],i=t[n];if(r.from!=i.from||r.to!=i.to||r.size!=i.size)return!1}return!0}draw(e,t){return O.replace({widget:new ns(this.displaySize*(t?e.scaleY:e.scaleX),t)}
2).range(this.from,this.to)}}class ns extends E{constructor(e,t){super(),this.size=e,this.vertical=t}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class nl{constructor(e,t){this.view=e,this.state=t,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scaleX=1,this.scaleY=1,this.scrollOffset=0,this.scrolledToBottom=!1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=nd,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=en.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let n=t.facet(eN).some(e=>"function"!=typeof e&&"cm-lineWrapping"==e.class);this.heightOracle=new t2(n),this.stateDeco=nf(t),this.heightMap=t6.empty().applyChanges(this.stateDeco,s.EY.empty,this.heightOracle.setDoc(t.doc),[new eG(0,0,0,t.doc.length)]);for(let e=0;e<2&&(this.viewport=this.getViewport(0,null),this.updateForViewport());e++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=O.set(this.lineGaps.map(e=>e.draw(this,!1))),this.scrollParent=e.scrollDOM,this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let n=0;n<=1;n++){let r=n?t.head:t.anchor;if(!e.some(({from:e,to:t})=>r>=e&&r<=t)){let{from:t,to:n}=this.lineBlockAt(r);e.push(new nc(t,n))}}return this.viewports=e.sort((e,t)=>e.from-t.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?nd:new np(this.heightOracle,this.heightMap,this.viewports),2*!e.eq(this.scaler)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(nm(e,this.scaler))})}update(e,t=null){var n,r;let i;this.state=e.state;let o=this.stateDeco;this.stateDeco=nf(this.state);let a=e.changedRanges,l=eG.extendWithRanges(a,(n=this.stateDeco,r=e?e.changes:s.VR.empty(this.state.doc.length),i=new no,s.om.compare(o,n,r,i,0),i.changes)),c=this.heightMap.height,u=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollOffset);t1=!1,this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),l),(this.heightMap.height!=c||t1)&&(e.flags|=2),u?(this.scrollAnchorPos=e.changes.mapPos(u.from,-1),this.scrollAnchorHeight=u.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=c);let h=l.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.head<h.from||t.range.head>h.to)||!this.viewportIsAppropriate(h))&&(h=this.getViewport(0,t));let d=h.from!=this.viewport.from||h.to!=this.viewport.to;this.viewport=h,e.flags|=this.updateForViewport(),(d||!e.changes.empty||2&e.flags)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(e.changes),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&(e.selectionSet||e.focusChanged)&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(eE)&&(this.mustEnforceCursorAssoc=!0)}measure(){var e;let t,n,{view:r}=this,i=r.contentDOM,o=window.getComputedStyle(i),a=this.heightOracle,l=o.whiteSpace;this.defaultTextDirection="rtl"==o.direction?en.RTL:en.LTR;let c=this.heightOracle.mustRefreshForWrapping(l)||"refresh"===this.mustMeasureContent,u=i.getBoundingClientRect(),h=c||this.mustMeasureContent||this.contentDOMHeight!=u.height;this.contentDOMHeight=u.height,this.mustMeasureContent=!1;let d=0,f=0;if(u.width&&u.height){let{scaleX:e,scaleY:t}=U(i,u);(e>.005&&Math.abs(this.scaleX-e)>.005||t>.005&&Math.abs(this.scaleY-t)>.005)&&(this.scaleX=e,this.scaleY=t,d|=16,c=h=!0)}let p=(parseInt(o.paddingTop)||0)*this.scaleY,m=(parseInt(o.paddingBottom)||
20)*this.scaleY;(this.paddingTop!=p||this.paddingBottom!=m)&&(this.paddingTop=p,this.paddingBottom=m,d|=18),this.editorWidth!=r.scrollDOM.clientWidth&&(a.lineWrapping&&(h=!0),this.editorWidth=r.scrollDOM.clientWidth,d|=16);let g=K(this.view.contentDOM,!1).y;g!=this.scrollParent&&(this.scrollParent=g,this.scrollAnchorHeight=-1,this.scrollOffset=0);let v=this.getScrollOffset();this.scrollOffset!=v&&(this.scrollAnchorHeight=-1,this.scrollOffset=v),this.scrolledToBottom=J(this.scrollParent||r.win);let y=(this.printing?function(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}:function(e,t){let n=e.getBoundingClientRect(),r=e.ownerDocument,i=r.defaultView||window,o=Math.max(0,n.left),a=Math.min(i.innerWidth,n.right),s=Math.max(0,n.top),l=Math.min(i.innerHeight,n.bottom);for(let t=e.parentNode;t&&t!=r.body;)if(1==t.nodeType){let n=t,r=window.getComputedStyle(n);if((n.scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth)&&"visible"!=r.overflow){let r=n.getBoundingClientRect();o=Math.max(o,r.left),a=Math.min(a,r.right),s=Math.max(s,r.top),l=Math.min(t==e.parentNode?i.innerHeight:l,r.bottom)}t="absolute"==r.position||"fixed"==r.position?n.offsetParent:n.parentNode}else if(11==t.nodeType)t=t.host;else break;return{left:o-n.left,right:Math.max(o,a)-n.left,top:s-(n.top+t),bottom:Math.max(s,l)-(n.top+t)}})(i,this.paddingTop),b=y.top-this.pixelViewport.top,x=y.bottom-this.pixelViewport.bottom;this.pixelViewport=y;let w=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;
2if(w!=this.inView&&(this.inView=w,w&&(h=!0)),!this.inView&&!this.scrollTarget&&(t=(e=r.dom).getBoundingClientRect(),n=e.ownerDocument.defaultView||window,!(t.left<n.innerWidth)||!(t.right>0)||!(t.top<n.innerHeight)||!(t.bottom>0)))return 0;let k=u.width;if((this.contentDOMWidth!=k||this.editorHeight!=r.scrollDOM.clientHeight)&&(this.contentDOMWidth=u.width,this.editorHeight=r.scrollDOM.clientHeight,d|=16),h){let e=r.docView.measureVisibleLineHeights(this.viewport);if(a.mustRefreshForHeights(e)&&(c=!0),c||a.lineWrapping&&Math.abs(k-this.contentDOMWidth)>a.charWidth){let{lineHeight:t,charWidth:n,textHeight:i}=r.docView.measureTextSize();(c=t>0&&a.refresh(l,t,n,i,Math.max(5,k/n),e))&&(r.docView.minWidth=0,d|=16)}for(let t of(b>0&&x>0?f=Math.max(b,x):b<0&&x<0&&(f=Math.min(b,x)),t1=!1,this.viewports)){let n=t.from==this.viewport.from?e:r.docView.measureVisibleLineHeights(t);this.heightMap=(c?t6.empty().applyChanges(this.stateDeco,s.EY.empty,this.heightOracle,[new eG(0,0,0,r.state.doc.length)]):this.heightMap).updateHeight(a,0,c,new t4(t.from,n))}t1&&(d|=2)}let S=!this.viewportIsAppropriate(this.viewport,f)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return S&&(2&d&&(d|=this.updateScaler()),this.viewport=this.getViewport(f,this.scrollTarget),d|=this.updateForViewport()),(2&d||S)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(c?[]:this.lineGaps,r)),d|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,r.docView.enforceCursorAssoc()),d}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),r=this.heightMap,i=this.heightOracle,{visibleTop:o,visibleBottom:a}=this,s=new nc(r.lineAt(o-1e3*n,t3.ByHeight,i,0,0).from,r.lineAt(a+(1-n)*1e3,t3.ByHeight,i,0,0).to);if(t){let{head:e}=t.range;if(e<s.from||e>s.to){let n=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),o=r.lineAt(e,t3.ByPos,i,0,0),a;a="center"==t.y?(o.top+o.bottom)/2-n/2:"start"==t.y||"nearest"==t.y&&e<s.from?o.top:o.bottom-n,s=new nc(r.lineAt(a-500,t3.ByHeight,i,0,0).from,r.lineAt(a+n+500,t3.ByHeight,i,0,0).to)}}return s}mapViewport(e,t){let n=t.mapPos(e.from,-1),r=t.mapPos(e.to,1);return new nc(this.heightMap.lineAt(n,t3.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(r,t3.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:t},n=0){if(!this.inView)return!0;let{top:r}=this.heightMap.lineAt(e,t3.ByPos,this.heightOracle,0,0),{bottom:i}=this.heightMap.lineAt(t,t3.ByPos,this.heightOracle,0,0),{visibleTop:o,visibleBottom:a}=this;return(0==e||r<=o-Math.max(10,Math.min(-n,250)))&&(t==this.state.doc.length||i>=a+Math.max(10,Math.min(n,250)))&&r>o-2e3&&i<a+2e3}mapLineGaps(e,t){if(!e.length||t.empty)return e;let n=[];for(let r of e)t.touchesRange(r.from,r.to)||n.push(new na(t.mapPos(r.from),t.mapPos(r.to),r.size,r.displaySize));return n}ensureLineGaps(e,t){let n=this.heightOracle.lineWrapping,r=n?1e4:2e3,i=r>>1,o=r<<1;if(this.defaultTextDirection!=en.LTR&&!n)return[];let a=[],l=(r,o,c,u)=>{if(o-r<i)return;let h=this.state.selection.main,d=[h.from];for(let e of(h.empty||d.push(h.to),d))if(e>r&&e<o){l(r,e-10,c,u),l(e+10,o,c,u);return}let f=function(e,t){for(let n of e)if(t(n))return n}(e,e=>e.from>=c.from&&e.to<=c.to&&Math.abs(e.from-r)<i&&Math.abs(e.to-o)<i&&!d.some(t=>e.from<t&&e.to>t));if(!f){if(o<c.to&&t&&n&&t.visibleRanges.some(e=>e.from<=o&&e.to>=o)){let e=t.moveToLineBoundary(s.OF.cursor(o),!1,!0).head;e>r&&(o=e)}let e=this.gapSize(c,r,o,u),i=n||e<2e6?e:2e6;f=new na(r,o,e,i)}a.push(f)},c=t=>{var i,a,c;let u,h,d,f,p;if(t.length<o||t.type!=C.Text)return;let m=(i=t.from,a=t.to,c=this.stateDeco,d=[],f=i,p=0,s.om.spans(c,i,a,{span(){},point(e,t){e>f&&(d.push({from:f,to:e}),p+=e-f),f=t}},20),f<a&&(d.push({from:f,to:a}),p+=a-f),{total:p,ranges:d});if(m.total<o)return;let g=this.scrollTarget?this.scrollTarget.range.head:null;if(n){let e,n,i=r/this.heightOracle.lineLength*this.heightOracle.lineHeight;if(null!=g){let r=nh(m,g),o=((this.visibleBottom-this.visibleTop)/2+i)/t.height;e=r-o,n=r+o}else e=(this.visibleTop-t.top-i)/t.height,n=(this.visibleBottom-t.top+i)/t.height;u=nu(m,e),h=nu(m,n)}else{let n,i,o=m.total*this.heightOracle.charWidth,a=r*this.heightOracle.charWidth,s=0;if(o>2e6)for(let n of e)n.from>=t.from&&n.from<t.to&&n.size!=n.displaySize&&n.from*this.heightOracle.charWidth+s<this.pixelViewport.left&&(s=n.size-n.displaySize);let l=this.pixelViewport.left+s,c=this.pixelViewport.right+s;if(null!=g){let e=nh(m,g),t=((c-l)/2+a)/o;n=e-t,i=e+t}else n=(l-a)/o,i=(c+a)/o;u=nu(m,n),h=nu(m,i)}u>t.from&&l(t.from,u,t,m),h<t.to&&l(h,t.to,t,m)};for(let e of this.viewportLines)Array.isArray(e.type)?e.type.forEach(c):c(e);return a}gapSize(e,t,n,r){let i=nh(r,n)-nh(r,t);return this.heightOracle.lineWrapping?e.height*i:r.total*this.heightOracle.charWidth*i}updateLineGaps(e){na.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=O.set(e.map(e=>e.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(e){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let n=[];s.om.spans(t,this.viewport.from,this.viewport.to,{span(e,t){n.push({from:e,to:t})}
vendor: 4,381 bytes, line 2
2,point(){}},20);let r=0;if(n.length!=this.visibleRanges.length)r=12;else for(let t=0;t<n.length&&!(8&r);t++){let i=this.visibleRanges[t],o=n[t];(i.from!=o.from||i.to!=o.to)&&(r|=4,e&&e.mapPos(i.from,-1)==o.from&&e.mapPos(i.to,1)==o.to||(r|=8))}return this.visibleRanges=n,r}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||nm(this.heightMap.lineAt(e,t3.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(t=>t.top<=e&&t.bottom>=e)||nm(this.heightMap.lineAt(this.scaler.fromDOM(e),t3.ByHeight,this.heightOracle,0,0),this.scaler)}getScrollOffset(){return(this.scrollParent==this.view.scrollDOM?this.scrollParent.scrollTop:(this.scrollParent?this.scrollParent.getBoundingClientRect().top:0)-this.view.contentDOM.getBoundingClientRect().top)*this.scaleY}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return nm(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class nc{constructor(e,t){this.from=e,this.to=t}}function nu({total:e,ranges:t},n){if(n<=0)return t[0].from;if(n>=1)return t[t.length-1].to;let r=Math.floor(e*n);for(let e=0;;e++){let{from:n,to:i}=t[e],o=i-n;if(r<=o)return n+r;r-=o}}function nh(e,t){let n=0;for(let{from:r,to:i}of e.ranges){if(t<=i){n+=t-r;break}n+=i-r}return n/e.total}let nd={toDOM:e=>e,fromDOM:e=>e,scale:1,eq(e){return e==this}};function nf(e){let t=e.facet(eB).filter(e=>"function"!=typeof e),n=e.facet(eV).filter(e=>"function"!=typeof e);return n.length&&t.push(s.om.join(n)),t}class np{constructor(e,t,n){let r=0,i=0,o=0;for(let a of(this.viewports=n.map(({from:n,to:i})=>{let o=t.lineAt(n,t3.ByPos,e,0,0).top,a=t.lineAt(i,t3.ByPos,e,0,0).bottom;return r+=a-o,{from:n,to:i,top:o,bottom:a,domTop:0,domBottom:0}}),this.scale=(7e6-r)/(t.height-r),this.viewports))a.domTop=o+(a.top-i)*this.scale,o=a.domBottom=a.domTop+(a.bottom-a.top),i=a.bottom}toDOM(e){for(let t=0,n=0,r=0;;t++){let i=t<this.viewports.length?this.viewports[t]:null;if(!i||e<i.top)return r+(e-n)*this.scale;if(e<=i.bottom)return i.domTop+(e-i.top);n=i.bottom,r=i.domBottom}}fromDOM(e){for(let t=0,n=0,r=0;;t++){let i=t<this.viewports.length?this.viewports[t]:null;if(!i||e<i.domTop)return n+(e-r)/this.scale;if(e<=i.domBottom)return i.top+(e-i.domTop);n=i.bottom,r=i.domBottom}}eq(e){return e instanceof np&&this.scale==e.scale&&this.viewports.length==e.viewports.length&&this.viewports.every((t,n)=>t.from==e.viewports[n].from&&t.to==e.viewports[n].to)}}function nm(e,t){if(1==t.scale)return e;let n=t.toDOM(e.top),r=t.toDOM(e.bottom);return new t5(e.from,e.length,n,r-n,Array.isArray(e._content)?e._content.map(e=>nm(e,t)):e._content)}let ng=s.sj.define({combine:e=>e.join(" ")}),nv=s.sj.define({combine:e=>e.indexOf(!0)>-1}),ny=l.G.newName(),nb=l.G.newName(),nx=l.G.newName(),nw={"&light":"."+nb,"&dark":"."+nx};function nk(e,t,n){return new l.G(t,{finish:t=>/&/.test(t)?t.replace(/&\w*/,t=>{if("&"==t)return e;if(!n||!n[t])throw RangeError(`Unsupported selector: ${t}`);return n[t]}):e+" "+t})}let nS=nk("."+ny,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{userSelect:"none",position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}}
vendor: 5,024 bytes, line 2
2,"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-selectionHandle":{backgroundColor:"currentColor",width:"1.5px"},".cm-selectionHandle-start::before, .cm-selectionHandle-end::before":{content:'""',backgroundColor:"inherit",borderRadius:"50%",width:"8px",height:"8px",position:"absolute",left:"-3.25px"},".cm-selectionHandle-start::before":{top:"-8px"},".cm-selectionHandle-end::before":{bottom:"-8px"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",zIndex:200},".cm-gutters-before":{insetInlineStart:0},".cm-gutters-after":{insetInlineEnd:0},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",border:"0px solid #ddd","&.cm-gutters-before":{borderRightWidth:"1px"},"&.cm-gutters-after":{borderLeftWidth:"1px"}},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-dialog":{padding:"2px 19px 4px 6px",position:"relative","& label":{fontSize:"80%"}},".cm-dialog-close":{position:"absolute",top:"3px",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",fontSize:"14px",padding:"0"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top",userSelect:"none"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},nw),nM={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},nA=w.ie&&w.ie_version<=11;class nE{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new q,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let e of t)this.queue.push(e);(w.ie&&w.ie_version<=11||w.ios&&e.composing)&&t.some(e=>
2"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&w.android&&!1!==e.constructor.EDIT_CONTEXT&&!(w.chrome&&w.chrome_version<126)&&(this.editContext=new nP(e),e.state.facet(eR)&&(e.contentDOM.editContext=this.editContext.editContext)),nA&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver(()=>{var e;(null==(e=this.view.docView)?void 0:e.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),"function"==typeof IntersectionObserver&&(this.intersection=new IntersectionObserver(e=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){("change"!=e.type&&e.type||e.matches)&&(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,n)=>t!=e[n]))){for(let t of(this.gapIntersection.disconnect(),e))this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:n}=this,r=this.selectionRange;if(n.state.facet(eR)?n.root.activeElement!=this.dom:!L(this.dom,r))return;let i=r.anchorNode&&n.docView.tile.nearest(r.anchorNode);if(i&&i.isWidget()&&i.widget.ignoreEvent(e)){t||(this.selectionChanged=!1);return}(w.ie&&w.ie_version<=11||w.android&&w.chrome)&&!n.state.selection.main.empty&&r.focusNode&&B(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=z(e.root);if(!t)return!1;let n=w.safari&&11==e.root.nodeType&&e.root.activeElement==this.dom&&function(e,t){if(t.getComposedRanges){let n=t.getComposedRanges(e.root)[0];if(n)return nO(e,n)}let n=null;function r(e){e.preventDefault(),e.stopImmediatePropagation(),n=e.getTargetRanges()[0]}return e.contentDOM.addEventListener("beforeinput",r,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",r,!0),n?nO(e,n):null}(this.view,t)||t;if(!n||this.selectionRange.eq(n))return!1;let r=L(this.dom,n);return r&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&function(e,t){let n=t.focusNode,r=t.focusOffset;if(!n||t.anchorNode!=n||t.anchorOffset!=r)return!1;for(r=Math.min(r,W(n));;)if(r){if(1!=n.nodeType)return!1;let e=n.childNodes[r-1];"false"==e.contentEditable?r--:r=W(n=e)}else{if(n==e)return!0;r=F(n),n=n.parentNode}}(this.dom,n)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(n),r&&(this.selectionChanged=!0),!0)}setSelectionRange(e,t){this.selectionRange.set(e.node,e.offset,t.node,t.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,t=null;for(let n=this.dom;n;)if(1==n.nodeType)!t&&e<this.scrollTargets.length&&this.scrollTargets[e]==n?e++:t||(t=this.scrollTargets.slice(0,e)),t&&t.push(n),n=n.assignedSlot||n.parentNode;else if(11==n.nodeType)n=n.host;else break;if(e<this.scrollTargets.length&&!t&&(t=this.scrollTargets.slice(0,e)),t){for(let e of this.scrollTargets)e.removeEventListener("scroll",this.onScroll);for(let e of this.scrollTargets=t)e.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,nM),nA&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),nA&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,t){var n;if(!this.delayedAndroidKey){let e=()=>{let e=this.delayedAndroidKey;e&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=e.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&e.force&&X(this.dom,e.key,e.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(e)}this.delayedAndroidKey&&"Enter"!=e||(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange<Date.now()-50||!!(null==(n=this.delayedAndroidKey)?void 0:n.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,n=-1,r=!1;for(let i of e){let e=this.readMutation(i);e&&(e.typeOver&&(r=!0),-1==t?{from:t,to:n}=e:(t=Math.min(e.from,t),n=Math.max(e.to,n)))}return{from:t,to:n,typeOver:r}}readChange(){let{from:e,to:t,typeOver:n}=this.processRecords(),r=this.selectionChanged&&L(this.dom,this.selectionRange);
vendor: 9,159 bytes, line 2
2if(e<0&&!r)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let i=new tA(this.view,e,t,n);return this.view.docView.domChanged={newSel:i.newSel?i.newSel.main:null},i}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let n=this.view.state,r=tE(this.view,t);return this.view.state==n&&(t.domChanged||t.newSel&&!tP(this.view.state.selection,t.newSel.main))&&this.view.update([]),r}readMutation(e){let t=this.view.docView.tile.nearest(e.target);if(!t||t.isWidget())return null;if(t.markDirty("attributes"==e.type),"childList"==e.type){let n=nC(t,e.previousSibling||e.target.previousSibling,-1),r=nC(t,e.nextSibling||e.target.nextSibling,1);return{from:n?t.posAfter(n):t.posAtStart,to:r?t.posBefore(r):t.posAtEnd,typeOver:!1}}return"characterData"==e.type?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(eR)!=e.state.facet(eR)&&(e.view.contentDOM.editContext=e.state.facet(eR)?this.editContext.editContext:null))}destroy(){var e,t,n;for(let r of(this.stop(),null==(e=this.intersection)||e.disconnect(),null==(t=this.gapIntersection)||t.disconnect(),null==(n=this.resizeScroll)||n.disconnect(),this.scrollTargets))r.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function nC(e,t,n){for(;t;){let r=eX.get(t);if(r&&r.parent==e)return r;let i=t.parentNode;t=i!=e.dom?i:n>0?t.nextSibling:t.previousSibling}return null}function nO(e,t){let n=t.startContainer,r=t.startOffset,i=t.endContainer,o=t.endOffset,a=e.docView.domAtPos(e.state.selection.main.anchor,1);return B(a.node,a.offset,i,o)&&([n,r,i,o]=[i,o,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}}class nP{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(e.state);let t=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});for(let n in this.handlers.textupdate=n=>{let r=e.state.selection.main,{anchor:i,head:o}=r,a=this.toEditorPos(n.updateRangeStart),l=this.toEditorPos(n.updateRangeEnd);e.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:n.updateRangeStart,editorBase:a,drifted:!1});let c=l-a>n.text.length;a==this.from&&i<this.from?a=i:l==this.to&&i>this.to&&(l=i);let u=tO(e.state.sliceDoc(a,l),n.text,(c?r.from:r.to)-a,c?"end":null);if(!u){let t=s.OF.single(this.toEditorPos(n.selectionStart),this.toEditorPos(n.selectionEnd));tP(t,r)||e.dispatch({selection:t,userEvent:"select"});return}let h={from:u.from+a,to:u.toA+a,insert:s.EY.of(n.text.slice(u.from,u.toB).split("\n"))};if((w.mac||w.android)&&h.from==o-1&&/^\. ?$/.test(n.text)&&"off"==e.contentDOM.getAttribute("autocorrect")&&(h={from:a,to:l,insert:s.EY.of([n.text.replace("."," ")])}),this.pendingContextChange=h,!e.state.readOnly){let t=this.to-this.from+(h.to-h.from+h.insert.length);tC(e,h,s.OF.single(this.toEditorPos(n.selectionStart,t),this.toEditorPos(n.selectionEnd,t)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state)),h.from<h.to&&!h.insert.length&&e.inputState.composing>=0&&!/[\\p{Alphabetic}\\p{Number}_]/.test(t.text.slice(Math.max(0,n.updateRangeStart-1),Math.min(t.text.length,n.updateRangeStart+1)))&&this.handlers.compositionend(n)},this.handlers.characterboundsupdate=n=>{let r=[],i=null;for(let t=this.toEditorPos(n.rangeStart),o=this.toEditorPos(n.rangeEnd);t<o;t++){let n=e.coordsForChar(t);i=n&&new DOMRect(n.left,n.top,n.right-n.left,n.bottom-n.top)||i||new DOMRect,r.push(i)}t.updateCharacterBounds(n.rangeStart,r)},this.handlers.textformatupdate=t=>{let n=[];for(let e of t.getTextFormats()){let t=e.underlineStyle,r=e.underlineThickness;if(!/none/i.test(t)&&!/none/i.test(r)){let i=this.toEditorPos(e.rangeStart),o=this.toEditorPos(e.rangeEnd);if(i<o){let e=`text-decoration: underline ${/^[a-z]/.test(t)?t+" ":"Dashed"==t?"dashed ":"Squiggle"==t?"wavy ":""}${/thin/i.test(r)?1:2}px`;n.push(O.mark({attributes:{style:e}}).range(i,o))}}}e.dispatch({effects:eT.of(O.set(n))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:t}=this.composing;this.composing=null,t&&this.reset(e.state)}},this.handlers)t.addEventListener(n,this.handlers[n]);this.measureReq={read:e=>{let t=z(e.root);t&&t.rangeCount&&this.editContext.updateSelectionBounds(t.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,n=!1,r=this.pendingContextChange;return e.changes.iterChanges((i,o,a,s,l)=>{if(n)return;let c=l.length-(o-i);if(r&&o>=r.to)if(r.from==i&&r.to==o&&r.insert.eq(l)){r=this.pendingContextChange=null,t+=c,this.to+=c;return}else r=null,this.revertPending(e.state);if(i+=t,(o+=t)<=this.from)this.from+=c,this.to+=c;else if(i<this.to){if(i<this.from||o>this.to||this.to-this.from+l.length>3e4){n=!0;return}this.editContext.updateText(this.toContextPos(i),this.toContextPos(o),l.toString()),this.to+=c}t+=c}),r&&!n&&this.revertPending(e.state),!n}update(e){let t=this.pendingContextChange,n=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(n.from,n.to)&&e.transactions.some(e=>!e.isUserEvent("input.type")&&e.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):this.applyEdits(e)&&this.rangeIsValid(e.state)?(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state):(this.pendingContextChange=null,this.reset(e.state)),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,n=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),r=this.toContextPos(t.head);(this.editContext.selectionStart!=n||this.editContext.selectionEnd!=r)&&this.editContext.updateSelection(n,r)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to<e.doc.length&&this.to-t<500||this.to-this.from>3e4)}toEditorPos(e,t=this.to-this.from){e=Math.min(e,t);let n=this.composing;return n&&n.drifted?n.editorBase+(e-n.contextBase):e+this.from}toContextPos(e){let t=this.composing;return t&&t.drifted?t.contextBase+(e-t.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}}class nT{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var t;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="
2cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:n}=e;for(let t of(this.dispatchTransactions=e.dispatchTransactions||n&&(e=>e.forEach(e=>n(e,this)))||(e=>this.update(e)),this.dispatch=this.dispatch.bind(this),this._root=e.root||function(e){for(;e;){if(e&&(9==e.nodeType||11==e.nodeType&&e.host))return e;e=e.assignedSlot||e.parentNode}return null}(e.parent)||document,this.viewState=new nl(this,e.state||s.$t.create(e)),e.scrollTo&&e.scrollTo.is(eP)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(eI).map(e=>new e_(e)),this.plugins))t.update(this);this.observer=new nE(this),this.inputState=new tT(this),this.inputState.ensureHandlers(this.plugins),this.docView=new tc(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),(null==(t=document.fonts)?void 0:t.ready)&&document.fonts.ready.then(()=>{this.viewState.mustMeasureContent="refresh",this.requestMeasure()})}dispatch(...e){let t=1==e.length&&e[0]instanceof s.ZX?e:1==e.length&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(0!=this.updateState)throw Error("Calls to EditorView.update are not allowed while an update is in progress");let t=!1,n=!1,r,i=this.state;for(let t of e){if(t.startState!=i)throw RangeError("Trying to update state with a transaction that doesn't start from the previous state.");i=t.state}if(this.destroyed){this.viewState.state=i;return}let o=this.hasFocus,a=0,l=null;e.some(e=>e.annotation(tY))?(this.inputState.notifiedFocused=o,a=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,(l=tX(i,o))||(a=1));let c=this.observer.delayedAndroidKey,u=null;if(c?(this.observer.clearDelayedAndroidKey(),((u=this.observer.readChange())&&!this.state.doc.eq(i.doc)||!this.state.selection.eq(i.selection))&&(u=null)):this.observer.clear(),i.facet(s.$t.phrases)!=this.state.facet(s.$t.phrases))return this.setState(i);r=eZ.create(this,i,e),r.flags|=a;let h=this.viewState.scrollTarget;try{for(let t of(this.updateState=2,e)){if(h&&(h=h.map(t.changes)),t.scrollIntoView){let{main:e}=t.state.selection,{x:n,y:r}=this.state.facet(nT.cursorScrollMargin);h=new eO(e.empty?e:s.OF.cursor(e.head,e.head>e.anchor?-1:1),"nearest","nearest",r,n)}for(let e of t.effects)e.is(eP)&&(h=e.value.clip(this.state))}this.viewState.update(r,h),this.bidiCache=nj.update(this.bidiCache,r.changes),r.empty||(this.updatePlugins(r),this.inputState.update(r)),t=this.docView.update(r),this.state.facet(eq)!=this.styleModules&&this.mountStyles(),n=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(t,e.some(e=>e.isUserEvent("select.pointer")))}finally{this.updateState=0}if(r.startState.facet(ng)!=r.state.facet(ng)&&(this.viewState.mustMeasureContent=!0),(t||n||h||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),t&&this.docViewUpdate(),!r.empty)for(let e of this.state.facet(ex))try{e(r)}catch(e){eD(this.state,e,"update listener")}(l||u)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),u&&!tE(this,u)&&c.force&&X(this.contentDOM,c.key,c.keyCode)})}setState(e){if(0!=this.updateState)throw Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let t=this.hasFocus;try{for(let e of this.plugins)e.destroy(this);for(let t of(this.viewState=new nl(this,e),this.plugins=e.facet(eI).map(e=>new e_(e)),this.pluginMap.clear(),this.plugins))t.update(this);this.docView.destroy(),this.docView=new tc(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(eI),n=e.state.facet(eI);if(t!=n){let r=[];for(let i of n){let n=t.indexOf(i);if(n<0)r.push(new e_(i));else{let t=this.plugins[n];
2t.mustUpdate=e,r.push(t)}}for(let t of this.plugins)t.mustUpdate!=e&&t.destroy(this);this.plugins=r,this.pluginMap.clear()}else for(let t of this.plugins)t.mustUpdate=e;for(let e=0;e<this.plugins.length;e++)this.plugins[e].update(this);t!=n&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let e of this.plugins){let t=e.value;if(t&&t.docViewUpdate)try{t.docViewUpdate(this)}catch(e){eD(this.state,e,"doc view update listener")}}}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,n=this.viewState.scrollParent,r=this.viewState.getScrollOffset(),{scrollAnchorPos:i,scrollAnchorHeight:o}=this.viewState;Math.abs(r-this.viewState.scrollOffset)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let e=0;;e++){if(o<0)if(J(n||this.win))i=-1,o=this.viewState.heightMap.height;else{let e=this.viewState.scrollAnchorAt(r);i=e.from,o=e.top}this.updateState=1;let a=this.viewState.measure();if(!a&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(e>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let s=[];4&a||([this.measureRequests,s]=[s,this.measureRequests]);let l=s.map(e=>{try{return e.read(this)}catch(e){return eD(this.state,e),nR}}),c=eZ.create(this,this.state,[]),u=!1;c.flags|=a,t?t.flags|=a:t=c,this.updateState=2,!c.empty&&(this.updatePlugins(c),this.inputState.update(c),this.updateAttrs(),(u=this.docView.update(c))&&this.docViewUpdate());for(let e=0;e<s.length;e++)if(l[e]!=nR)try{let t=s[e];t.write&&t.write(l[e],this)}catch(e){eD(this.state,e)}if(u&&this.docView.updateSelection(!0),!c.viewportChanged&&0==this.measureRequests.length){if(this.viewState.editorHeight)if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,o=-1;continue}else{let e=((i<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(i).top)-o)/this.scaleY;if((e>1||e<-1)&&!(w.ios&&this.inputState.lastIOSMomentumScroll>Date.now()-100)&&(n==this.scrollDOM||this.hasFocus||Math.max(this.inputState.lastWheelEvent,this.inputState.lastTouchTime)>Date.now()-100)){r+=e,n?n.scrollTop+=e:this.win.scrollBy(0,e),o=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let e of this.state.facet(ex))e(t)}get themeClasses(){return ny+" "+(this.state.facet(nv)?nx:nb)+" "+this.state.facet(ng)}updateAttrs(){let e=nI(this,eL,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(eR)?"true":"false",class:"cm-content",style:`${w.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),nI(this,eN,t);let n=this.observer.ignore(()=>{let n=A(this.contentDOM,this.contentAttrs,t),r=A(this.dom,this.editorAttrs,e);return n||r});return this.editorAttrs=e,this.contentAttrs=t,n}showAnnouncements(e){let t=!0;for(let n of e)for(let e of n.effects)e.is(nT.announce)&&(t&&(this.announceDOM.textContent=""),t=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=e.value)}mountStyles(){this.styleModules=this.state.facet(eq);let e=this.state.facet(nT.cspNonce);l.G.mount(this.root,this.styleModules.concat(nS).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(2==this.updateState)throw Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if((this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e)&&!(this.measureRequests.indexOf(e)>-1)){if(null!=e.key){for(let t=0;t<this.measureRequests.length;t++)if(this.measureRequests[t].key===e.key){this.measureRequests[t]=e;return}}this.measureRequests.push(e)}}plugin(e){let t=this.pluginMap.get(e);return(void 0===t||t&&t.plugin!=e)&&this.pluginMap.set(e,t=this.plugins.find(t=>t.plugin==e)||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,n){return tb(this,e,tg(this,e,t,n))}moveByGroup(e,t){return tb(this,e,tg(this,e,t,t=>{var n;let r,i;return n=e.head,i=(r=this.state.charCategorizer(n))(t),e=>{let t=r(e);return i==s.Je.Space&&(i=t),i==t}}))}visualLineSide(e,t){let n=this.bidiSpans(e),r=this.textDirectionAt(e.from),i=n[t?n.length-1:0];return s.OF.cursor(i.side(t,r)+e.from,i.forward(!t,r)?1:-1)}moveToLineBoundary(e,t,n=!0){return function(e,t,n,r){let i=tm(e,t.head,t.assoc||-1),o=r&&i.type==C.Text&&(e.lineWrapping||i.widgetLineBreaks)?e.coordsAtPos(t.assoc<0&&t.head>i.from?t.head-1:t.head):null;if(o){let t=e.dom.getBoundingClientRect(),r=e.textDirectionAt(i.from),a=e.posAtCoords({x:n==(r==en.LTR)?t.right-1:t.left+1,y:(o.top+o.bottom)/2});if(null!=a)return s.OF.cursor(a,n?-1:1)}return s.OF.cursor(n?i.to:i.from,n?-1:1)}(this,e,t,n)}
2moveVertically(e,t,n){return tb(this,e,function(e,t,n,r){let i=t.head,o=n?1:-1;if(i==(n?e.state.doc.length:0))return s.OF.cursor(i,t.assoc);let a=t.goalColumn,l,c=e.contentDOM.getBoundingClientRect(),u=e.coordsAtPos(i,t.assoc||((t.empty?n:t.head==t.from)?1:-1)),h=e.documentTop;if(u)null==a&&(a=u.left-c.left),l=o<0?u.top:u.bottom;else{let t=e.viewState.lineBlockAt(i);null==a&&(a=Math.min(c.right-c.left,e.defaultCharacterWidth*(i-t.from))),l=(o<0?t.top:t.bottom)+h}let d=c.left+a,f=e.viewState.heightOracle.textHeight>>1,p=null!=r?r:f;for(let t=0;;t+=f){let r=l+(p+t)*o,i=tw(e,{x:d,y:r},!1,o);if(n?r>c.bottom:r<c.top)return s.OF.cursor(i.pos,i.assoc);let u=e.coordsAtPos(i.pos,i.assoc),h=u?(u.top+u.bottom)/2:0;if(!u||(n?h>l:h<l))return s.OF.cursor(i.pos,i.assoc,void 0,a)}}(this,e,t,n))}domAtPos(e,t=1){return this.docView.domAtPos(e,t)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){this.readMeasured();let n=tw(this,e,t);return n&&n.pos}posAndSideAtCoords(e,t=!0){return this.readMeasured(),tw(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let n=this.state.doc.lineAt(e),r=this.bidiSpans(n),i=r[ed.find(r,e-n.from,-1,t)];return this.docView.coordsAt(e,t,i.dir==en.RTL)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(eA)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>nD)return ep(e.length);let t=this.textDirectionAt(e.from),n;for(let r of this.bidiCache)if(r.from==e.from&&r.dir==t&&(r.fresh||function e(t,n){if(t.length!=n.length)return!1;for(let r=0;r<t.length;r++){let i=t[r],o=n[r];if(i.from!=o.from||i.to!=o.to||i.direction!=o.direction||!e(i.inner,o.inner))return!1}return!0}(r.isolates,n=e$(this,e))))return r.order;n||(n=e$(this,e));let r=function(e,t,n){if(!e)return[new ed(0,0,+(t==ei))];if(t==er&&!n.length&&!eh.test(e))return ep(e.length);if(n.length)for(;e.length>ef.length;)ef[ef.length]=256;let r=[],i=+(t!=er);return function e(t,n,r,i,o,a,s){let l=n%2?2:1;!function(e,t,n,r,i){for(let o=0;o<=r.length;o++){let a=o?r[o-1].to:t,s=o<r.length?r[o].from:n,l=o?256:i;for(let t=a,n=l,r=l;t<s;t++){let i=eu(e.charCodeAt(t));512==i?i=n:8==i&&4==r&&(i=16),ef[t]=4==i?2:i,7&i&&(r=i),n=i}for(let e=a,t=l,r=l;e<s;e++){let i=ef[e];if(128==i)e<s-1&&t==ef[e+1]&&24&t?i=ef[e]=t:ef[e]=256;else if(64==i){let i=e+1;for(;i<s&&64==ef[i];)i++;let o=e&&8==t||i<n&&8==ef[i]?1==r?1:8:256;for(let t=e;t<i;t++)ef[t]=o;e=i-1}else 8==i&&1==r&&(ef[e]=1);t=i,7&i&&(r=i)}}}(t,o,a,i,l),function(e,t,n,r,i){let o=1==i?2:1;for(let a=0,s=0,l=0;a<=r.length;a++){let c=a?r[a-1].to:t,u=a<r.length?r[a].from:n;for(let t=c,n,r,a;t<u;t++)if(r=el[n=e.charCodeAt(t)])if(r<0){for(let e=s-3;e>=0;e-=3)if(ec[e+1]==-r){let n=ec[e+2],r=2&n?i:4&n?1&n?o:i:0;r&&(ef[t]=ef[ec[e]]=r),s=e;break}}else if(189==ec.length)break;else ec[s++]=t,ec[s++]=n,ec[s++]=l;else if(2==(a=ef[t])||1==a){let e=a==i;l=+!e;for(let t=s-3;t>=0;t-=3){let n=ec[t+2];if(2&n)break;if(e)ec[t+2]|=2;else{if(4&n)break;ec[t+2]|=4}}}}}(t,o,a,i,l),function(e,t,n,r){for(let i=0,o=r;i<=n.length;i++){let a=i?n[i-1].to:e,s=i<n.length?n[i].from:t;for(let l=a;l<s;){let a=ef[l];if(256==a){let a=l+1;for(;;)if(a==s){if(i==n.length)break;a=n[i++].to,s=i<n.length?n[i].from:t}else if(256==ef[a])a++;else break;let c=1==o,u=c==((a<t?ef[a]:r)==1)?c?1:2:r;for(let t=a,r=i,o=r?n[r-1].to:e;t>l;)t==o&&(t=n[--r].from,o=r?n[r-1].to:e),ef[--t]=u;l=a}else o=a,l++}}}(o,a,i,l),function t(n,r,i,o,a,s,l){let c=o%2?2:1;if(o%2==a%2)for(let u=r,h=0;u<i;){let r=!0,d=!1;if(h==s.length||u<s[h].from){let e=ef[u];e!=c&&(r=!1,d=16==e)}let f=r||1!=c?null:[],p=r?o:o+1,m=u;i:for(;;)if(h<s.length&&m==s[h].from){if(d)break;let t=s[h];if(!r)for(let e=t.to,n=h+1;;){if(e==i)break i;if(n<s.length&&s[n].from==e)e=s[n++].to;else if(ef[e]==c)break i;else break}h++,f?f.push(t):(t.from>u&&l.push(new ed(u,t.from,p)),e(n,t.direction==er!=!(p%2)?o+1:o,a,t.inner,t.from,t.to,l),u=t.to),m=t.to}else if(m==i||(r?ef[m]!=c:ef[m]==c))break;else m++;f?t(n,u,m,o+1,a,f,l):u<m&&l.push(new ed(u,m,p)),u=m}else for(let u=i,h=s.length;u>r;){let i=!0,d=!1;if(!h||u>s[h-1].to){let e=ef[u-1];e!=c&&(i=!1,d=16==e)}let f=i||1!=c?null:[],p=i?o:o+1,m=u;i:for(;;)if(h&&m==s[h-1].to){if(d)break;let t=s[--h];if(!i)for(let e=t.from,n=h;;){if(e==r)break i;if(n&&s[n-1].to==e)e=s[--n].from;else if(ef[e-1]==c)break i;else break}f?f.push(t):(t.to<u&&l.push(new ed(t.to,u,p)),e(n,t.direction==er!=!(p%2)?o+1:o,a,t.inner,t.from,t.to,l),u=t.from),m=t.from}else if(m==r||(i?ef[m-1]!=c:ef[m-1]==c))break;else m--;f?t(n,m,u,o+1,a,f,l):m<u&&l.push(new ed(m,u,p)),u=m}}(t,o,a,n,r,i,s)}(e,i,i,n,0,e.length,r),r}(e.text,t,n);return this.bidiCache.push(new nj(e.from,e.to,t,n,!0,r)),r}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||w.safari&&(null==(e=this.inputState)?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{Z(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((9==e.nodeType?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of(this.root.activeElement==this.contentDOM&&this.contentDOM.blur(),this.plugins))e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){var n,r,i,o;return eP.of(new eO("number"==typeof e?s.OF.cursor(e):e,null!=(n=t.y)?n:"nearest",null!=(r=t.x)?r:"nearest",null!=(i=t.yMargin)?i:5,null!=(o=t.xMargin)?o:5))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,n=this.viewState.scrollAnchorAt(e);return eP.of(new eO(s.OF.cursor(n.from),"start","start",n.top-e,t,!0))}setTabFocusMode(e){null==e?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:"boolean"==typeof e?this.inputState.tabFocusMode=e?0:-1:0!=this.inputState.tabFocusMode&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return ez.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return ez.define(()=>({}),{eventObservers:e})}static theme(e,t){let n=l.G.newName(),r=[ng.of(n),eq.of(nk(`.${n}`,e))];return t&&t.dark&&r.push(nv.of(!0)),r}static baseTheme(e){return s.Nb.lowest(eq.of(nk("."+ny,e,nw)))}static findFromDOM(e){var t;let n=e.querySelector(".cm-content"),r=n&&eX.get(n)||eX.get(e);return(null==(t=null==r?void 0:r.root)?void 0:t.view)||null}}
2nT.styleModule=eq,nT.inputHandler=ew,nT.clipboardInputFilter=eS,nT.clipboardOutputFilter=eM,nT.scrollHandler=eC,nT.focusChangeEffect=ek,nT.perLineTextDirection=eA,nT.exceptionSink=eb,nT.updateListener=ex,nT.editable=eR,nT.mouseSelectionStyle=ey,nT.dragMovesSelection=ev,nT.clickAddsSelectionRange=eg,nT.decorations=eB,nT.blockWrappers=eF,nT.outerDecorations=eV,nT.atomicRanges=eH,nT.bidiIsolatedRanges=eW,nT.cursorScrollMargin=s.sj.define({combine:e=>{let t=5,n=5;for(let r of e)"number"==typeof r?t=n=r:{x:t,y:n}=r;return{x:t,y:n}}}),nT.scrollMargins=eU,nT.darkTheme=nv,nT.cspNonce=s.sj.define({combine:e=>e.length?e[0]:""}),nT.contentAttributes=eN,nT.editorAttributes=eL,nT.lineWrapping=nT.contentAttributes.of({class:"cm-lineWrapping"}),nT.announce=s.Pe.define();let nD=4096,nR={};class nj{constructor(e,t,n,r,i,o){this.from=e,this.to=t,this.dir=n,this.isolates=r,this.fresh=i,this.order=o}static update(e,t){if(t.empty&&!e.some(e=>e.fresh))return e;let n=[],r=e.length?e[e.length-1].dir:en.LTR;for(let i=Math.max(0,e.length-10);i<e.length;i++){let o=e[i];o.dir!=r||t.touchesRange(o.from,o.to)||n.push(new nj(t.mapPos(o.from,1),t.mapPos(o.to,-1),o.dir,o.isolates,!1,o.order))}return n}}function nI(e,t,n){for(let r=e.state.facet(t),i=r.length-1;i>=0;i--){let t=r[i],o="function"==typeof t?t(e):t;o&&k(o,n)}return n}let nz=w.mac?"mac":w.windows?"win":w.linux?"linux":"key";function n_(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==n&&t.shiftKey&&(e="Shift-"+e),e}let nL=s.Nb.default(nT.domEventHandlers({keydown:(e,t)=>{var n,r,i,o;let a,l,u,h,d,f,p,m,g,v,y,b,x,k;return n=(a=t.state.facet(nN),(l=nB.get(a))||nB.set(a,l=function(e,t=nz){let n=Object.create(null),r=Object.create(null),i=(e,t)=>{let n=r[e];if(null==n)r[e]=t;else if(n!=t)throw Error("Key binding "+e+" is used both as a regular binding and as a multi-stroke prefix")},o=(e,r,o,a,s)=>{var l,c;let u=n[e]||(n[e]=Object.create(null)),h=r.split(/ (?!$)/).map(e=>(function(e,t){let n,r,i,o,a=e.split(/-(?!$)/),s=a[a.length-1];"Space"==s&&(s=" ");for(let e=0;e<a.length-1;++e){let s=a[e];if(/^(cmd|meta|m)$/i.test(s))o=!0;else if(/^a(lt)?$/i.test(s))n=!0;else if(/^(c|ctrl|control)$/i.test(s))r=!0;else if(/^s(hift)?$/i.test(s))i=!0;else if(/^mod$/i.test(s))"mac"==t?o=!0:r=!0;else throw Error("Unrecognized modifier name: "+s)}return n&&(s="Alt-"+s),r&&(s="Ctrl-"+s),o&&(s="Meta-"+s),i&&(s="Shift-"+s),s})(e,t));for(let t=1;t<h.length;t++){let n=h.slice(0,t).join(" ");i(n,!0),u[n]||(u[n]={preventDefault:!0,stopPropagation:!1,run:[t=>{let r=nF={view:t,prefix:n,scope:e};return setTimeout(()=>{nF==r&&(nF=null)},4e3),!0}]})}let d=h.join(" ");i(d,!1);let f=u[d]||(u[d]={preventDefault:!1,stopPropagation:!1,run:(null==(c=null==(l=u._any)?void 0:l.run)?void 0:c.slice())||[]});o&&f.run.push(o),a&&(f.preventDefault=!0),s&&(f.stopPropagation=!0)};for(let r of e){let e=r.scope?r.scope.split(" "):["editor"];if(r.any)for(let t of e){let e=n[t]||(n[t]=Object.create(null));e._any||(e._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:i}=r;for(let t in e)e[t].run.push(e=>i(e,nV))}let i=r[t]||r.key;if(i)for(let t of e)o(t,i,r.run,r.preventDefault,r.stopPropagation),r.shift&&o(t,"Shift-"+i,r.shift,r.preventDefault,r.stopPropagation)}return n}(a.reduce((e,t)=>e.concat(t),[]))),l),r=e,i=t,o="editor",nV=r,u=(0,c.xT)(r),h=(0,s.vS)(u,0),d=(0,s.Fh)(h)==u.length&&" "!=u,f="",p=!1,m=!1,g=!1,nF&&nF.view==i&&nF.scope==o&&(f=nF.prefix+" ",0>tI.indexOf(r.keyCode)&&(m=!0,nF=null)),v=new Set,y=e=>{if(e){for(let t of e.run)if(!v.has(t)&&(v.add(t),t(i)))return e.stopPropagation&&(g=!0),!0;e.preventDefault&&(e.stopPropagation&&(g=!0),m=!0)}return!1},(b=n[o])&&(y(b[f+n_(u,r,!d)])?p=!0:d&&(r.altKey||r.metaKey||r.ctrlKey)&&!(w.windows&&r.ctrlKey&&r.altKey)&&!(w.mac&&r.altKey&&!(r.ctrlKey||r.metaKey))&&(x=c.E3[r.keyCode])&&x!=u?y(b[f+n_(x,r,!0)])?p=!0:r.shiftKey&&(k=c.BN[r.keyCode])!=u&&k!=x&&y(b[f+n_(k,r,!1)])&&(p=!0):d&&r.shiftKey&&y(b[f+n_(u,r,!0)])&&(p=!0),!p&&y(b._any)&&(p=!0)),m&&(p=!0),p&&g&&r.stopPropagation(),nV=null,p}})),nN=s.sj.define({enables:nL}),nB=new WeakMap,nF=null,nV=null;class nH{constructor(e,t,n,r,i){this.className=e,this.left=t,this.top=n,this.width=r,this.height=i}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,t){return t.className==this.className&&(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",null!=this.width&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,t,n){if(!n.empty)return function(e,t,n){if(n.to<=e.viewport.from||n.from>=e.viewport.to)return[];let r=Math.max(n.from,e.viewport.from),i=Math.min(n.to,e.viewport.to),o=e.textDirection==en.LTR,a=e.contentDOM,s=a.getBoundingClientRect(),l=nW(e),c=a.querySelector(".cm-line"),u=c&&window.getComputedStyle(c),h=s.left+(u?parseInt(u.paddingLeft)+Math.min(0,parseInt(u.textIndent)):0),d=s.right-(u?parseInt(u.paddingRight):0),f=tm(e,r,1),p=tm(e,i,-1),m=f.type==C.Text?f:null,g=p.type==C.Text?p:null;if(m&&(e.lineWrapping||f.widgetLineBreaks)&&(m=n$(e,r,1,m)),g&&(e.lineWrapping||p.widgetLineBreaks)&&(g=n$(e,i,-1,g)),m&&g&&m.from==g.from&&m.to==g.to)return y(b(n.from,n.to,m));{let t=m?b(n.from,null,m):x(f,!1),r=g?b(null,n.to,g):x(p,!0),i=[];return(m||f).to<(g||p).from-(m&&g?1:0)||f.widgetLineBreaks>1&&t.bottom+e.defaultLineHeight/2<r.top?i.push(v(h,t.bottom,d,r.top)):t.bottom<r.top&&e.elementAtHeight((t.bottom+r.top)/2).type==C.Text&&(t.bottom=r.to
2p=(t.bottom+r.top)/2),y(t).concat(i).concat(y(r))}function v(e,n,r,i){return new nH(t,e-l.left,n-l.top,Math.max(0,r-e),i-n)}function y({top:e,bottom:t,horizontal:n}){let r=[];for(let i=0;i<n.length;i+=2)r.push(v(n[i],e,n[i+1],t));return r}function b(t,n,r){let i=1e9,a=-1e9,s=[];function l(t,n,l,c,u){let f=e.coordsAtPos(t,t==r.to?-2:2),p=e.coordsAtPos(l,l==r.from?2:-2);f&&p&&(i=Math.min(f.top,p.top,i),a=Math.max(f.bottom,p.bottom,a),u==en.LTR?s.push(o&&n?h:f.left,o&&c?d:p.right):s.push(!o&&c?h:p.left,!o&&n?d:f.right))}let c=null!=t?t:r.from,u=null!=n?n:r.to;for(let r of e.visibleRanges)if(r.to>c&&r.from<u)for(let i=Math.max(r.from,c),o=Math.min(r.to,u);;){let r=e.state.doc.lineAt(i);for(let a of e.bidiSpans(r)){let e=a.from+r.from,s=a.to+r.from;if(e>=o)break;s>i&&l(Math.max(e,i),null==t&&e<=c,Math.min(s,o),null==n&&s>=u,a.dir)}if((i=r.to+1)>=o)break}return 0==s.length&&l(c,null==t,u,null==n,e.textDirection),{top:i,bottom:a,horizontal:s}}function x(e,t){let n=s.top+(t?e.top:e.bottom);return{top:n,bottom:n,horizontal:[]}}}(e,t,n);{let r=e.coordsAtPos(n.head,n.assoc||1);if(!r)return[];let i=nW(e);return[new nH(t,r.left-i.left,r.top-i.top,null,r.bottom-r.top)]}}}function nW(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==en.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}function n$(e,t,n,r){let i=e.coordsAtPos(t,2*n);if(!i)return r;let o=e.dom.getBoundingClientRect(),a=(i.top+i.bottom)/2,s=e.posAtCoords({x:o.left+1,y:a}),l=e.posAtCoords({x:o.right-1,y:a});return null==s||null==l?r:{from:Math.max(r.from,Math.min(s,l)),to:Math.min(r.to,Math.max(s,l))}}class nU{constructor(e,t){this.view=e,this.layer=t,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),t.above&&this.dom.classList.add("cm-layer-above"),t.class&&this.dom.classList.add(t.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),t.mount&&t.mount(this.dom,e)}update(e){e.startState.facet(nK)!=e.state.facet(nK)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}docViewUpdate(e){!1!==this.layer.updateOnDocViewUpdate&&e.requestMeasure(this.measureReq)}setOrder(e){let t=0,n=e.facet(nK);for(;t<n.length&&n[t]!=this.layer;)t++;this.dom.style.zIndex=String((this.layer.above?150:-1)-t)}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:e,scaleY:t}=this.view;(e!=this.scaleX||t!=this.scaleY)&&(this.scaleX=e,this.scaleY=t,this.dom.style.transform=`scale(${1/e}, ${1/t})`)}draw(e){if(e.length!=this.drawn.length||e.some((e,t)=>{var n;return n=this.drawn[t],!(e.constructor==n.constructor&&e.eq(n))})){let t=this.dom.firstChild,n=0;for(let r of e)r.update&&t&&r.constructor&&this.drawn[n].constructor&&r.update(t,this.drawn[n])?(t=t.nextSibling,n++):this.dom.insertBefore(r.draw(),t);for(;t;){let e=t.nextSibling;t.remove(),t=e}this.drawn=e,w.webkit&&(this.dom.style.display=this.dom.firstChild?"":"none")}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}let nK=s.sj.define();function nq(e){return[ez.define(t=>new nU(t,e)),nK.of(e)]}let nG=s.sj.define({combine:e=>(0,s.QR)(e,{cursorBlinkRate:1200,drawRangeCursor:!0,iosSelectionHandles:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})});function nZ(e={}){return[nG.of(e),nX,nQ,n0,eE.of(!0)]}function nY(e){return e.startState.facet(nG)!=e.state.facet(nG)}let nX=nq({above:!0,markers(e){let{state:t}=e,n=t.facet(nG),r=[];for(let i of t.selection.ranges){let o=i==t.selection.main;if(i.empty||n.drawRangeCursor&&!(o&&w.ios&&n.iosSelectionHandles)){let t=o?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",n=i.empty?i:s.OF.cursor(i.head,i.assoc);for(let i of nH.forRange(e,t,n))r.push(i)}}return r},update(e,t){e.transactions.some(e=>e.selection)&&(t.style.animationName="cm-blink"==t.style.animationName?"cm-blink2":"cm-blink");let n=nY(e);return n&&nJ(e.state,t),e.docChanged||e.selectionSet||n},mount(e,t){nJ(t.state,e)},class:"cm-cursorLayer"});function nJ(e,t){t.style.animationDuration=e.facet(nG).cursorBlinkRate+"ms"}let nQ=nq({above:!1,markers(e){let t=[],{main:n,ranges:r}=e.state.selection;for(let n of r)if(!n.empty)for(let r of nH.forRange(e,"cm-selectionBackgroun
2d",n))t.push(r);if(w.ios&&!n.empty&&e.state.facet(nG).iosSelectionHandles){for(let r of nH.forRange(e,"cm-selectionHandle cm-selectionHandle-start",s.OF.cursor(n.from,1)))t.push(r);for(let r of nH.forRange(e,"cm-selectionHandle cm-selectionHandle-end",s.OF.cursor(n.to,1)))t.push(r)}return t},update:(e,t)=>e.docChanged||e.selectionSet||e.viewportChanged||nY(e),class:"cm-selectionLayer"}),n0=s.Nb.highest(nT.theme({".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"},caretColor:"transparent !important"},".cm-content":{caretColor:"transparent !important","& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}})),n1=s.Pe.define({map:(e,t)=>null==e?null:t.mapPos(e)}),n2=s.sU.define({create:()=>null,update:(e,t)=>(null!=e&&(e=t.changes.mapPos(e)),t.effects.reduce((e,t)=>t.is(n1)?t.value:e,e))}),n4=ez.fromClass(class{constructor(e){this.view=e,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(e){var t;let n=e.state.field(n2);null==n?null!=this.cursor&&(null==(t=this.cursor)||t.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(e.startState.field(n2)!=n||e.docChanged||e.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:e}=this,t=e.state.field(n2),n=null!=t&&e.coordsAtPos(t);if(!n)return null;let r=e.scrollDOM.getBoundingClientRect();return{left:n.left-r.left+e.scrollDOM.scrollLeft*e.scaleX,top:n.top-r.top+e.scrollDOM.scrollTop*e.scaleY,height:n.bottom-n.top}}drawCursor(e){if(this.cursor){let{scaleX:t,scaleY:n}=this.view;e?(this.cursor.style.left=e.left/t+"px",this.cursor.style.top=e.top/n+"px",this.cursor.style.height=e.height/n+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(e){this.view.state.field(n2)!=e&&this.view.dispatch({effects:n1.of(e)})}},{eventObservers:{dragover(e){this.setDropPos(this.view.posAtCoords({x:e.clientX,y:e.clientY}))},dragleave(e){e.target!=this.view.contentDOM&&this.view.contentDOM.contains(e.relatedTarget)||this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function n5(){return[n2,n4]}function n3(e,t,n,r,i){t.lastIndex=0;for(let o=e.iterRange(n,r),a=n,s;!o.next().done;a+=o.value.length)if(!o.lineBreak)for(;s=t.exec(o.value);)i(a+s.index,s)}class n6{constructor(e){const{regexp:t,decoration:n,decorate:r,boundary:i,maxLength:o=1e3}=e;if(!t.global)throw RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,r)this.addMatch=(e,t,n,i)=>r(i,n,n+e[0].length,e,t);else if("function"==typeof n)this.addMatch=(e,t,r,i)=>{let o=n(e,t,r);o&&i(r,r+e[0].length,o)};else if(n)this.addMatch=(e,t,r,i)=>i(r,r+e[0].length,n);else throw RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=i,this.maxLength=o}createDeco(e){let t=new s.vB,n=t.add.bind(t);for(let{from:t,to:r}of function(e,t){let n=e.visibleRanges;if(1==n.length&&n[0].from==e.viewport.from&&n[0].to==e.viewport.to)return n;let r=[];for(let{from:i,to:o}of n)i=Math.max(e.state.doc.lineAt(i).from,i-t),o=Math.min(e.state.doc.lineAt(o).to,o+t),r.length&&r[r.length-1].to>=i?r[r.length-1].to=o:r.push({from:i,to:o});return r}(e,this.maxLength))n3(e.state.doc,this.regexp,t,r,(t,r)=>this.addMatch(r,e,t,n));return t.finish()}updateDeco(e,t){let n=1e9,r=-1;return(e.docChanged&&e.changes.iterChanges((t,i,o,a)=>{a>=e.view.viewport.from&&o<=e.view.viewport.to&&(n=Math.min(o,n),r=Math.max(a,r))}),e.viewportMoved||r-n>1e3)?this.createDeco(e.view):r>-1?this.updateRange(e.view,t.map(e.changes),n,r):t}updateRange(e,t,n,r){for(let i of e.visibleRanges){let o=Math.max(i.from,n),a=Math.min(i.to,r);if(a>=o){let n=e.state.doc.lineAt(o),r=n.to<a?e.state.doc.lineAt(a):n,s=Math.max(i.from,n.from),l=Math.min(i.to,r.to);if(this.boundary){for(;o>n.from;o--)if(this.boundary.test(n.text[o-1-n.from])){s=o;break}for(;a<r.to;a++)if(this.boundary.test(r.text[a-r.from])){l=a;break}}let c=[],u,h=(e,t,n)=>c.push(n.range(e,t));if(n==r)for(this.regexp.lastIndex=s-n.from;(u=this.regexp.exec(n.text))&&u.index<l-n.from;)this.addMatch(u,e,u.index+n.from,h);else n3(e.state.doc,this.regexp,s,l,(t,n)=>this.addMatch(n,e,t,h));t=t.update({filterFrom:s,filterTo:l,filter:(e,t)=>e<s||t>l,add:c})}}return t}}let n8=null!=/x/.unicode?"gu":"g",n9=RegExp("[\0-\b\n-\x1f\x7f-\x9f\xad؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]",n8),n7={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"},re=null,rt=s.sj.define({combine(e){let t=(0,s.QR)(e,{render:null,specialChars:n9,addSpecialChars:null});return(t.replaceTabs=!function(){var e;if(null==re&&"u">typeof document&&document.body){let t=document.body.style;re=(null!=(e=t.tabSize)?e:t.MozTabSize)!=null}return re||!1}())&&(t.specialChars=RegExp("	|"+t.specialChars.source,n8)),t.addSpecialChars&&(t.specialChars=RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,n8)),t}});function rn(e={}){return[rt.of(e),rr||(rr=ez.fromClass(class{constructor(e){this.view=e,this.decorations=O.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(rt)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new n6({regexp:e.specialChars,decoration:(t,n,r)=>{let{doc:i}=n.state,o=(0,s.vS)(t[0],0);if(9==o){let e=i.lineAt(r),t=n.state.tabSize,o=(0,s.y$)(e.text,t,r-e.from);return O.replace({widget:new ro((t-o%t)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[o]||(this.decorationCache[o]=O.replace({widget:new ri(e,o)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(rt);e.startState.facet(rt)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations}))]}let rr=null;
2class ri extends E{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){var t;let n=(t=this.code)>=32?"•":10==t?"␤":String.fromCharCode(9216+t),r=e.state.phrase("Control character")+" "+(n7[this.code]||"0x"+this.code.toString(16)),i=this.options.render&&this.options.render(this.code,r,n);if(i)return i;let o=document.createElement("span");return o.textContent=n,o.title=r,o.setAttribute("aria-label",r),o.className="cm-specialChar",o}ignoreEvent(){return!1}}class ro extends E{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent="	",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function ra(){return rl}let rs=O.line({class:"cm-activeLine"}),rl=ez.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.docChanged||e.selectionSet)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=-1,n=[];for(let r of e.state.selection.ranges){let i=e.lineBlockAt(r.head);i.from>t&&(n.push(rs.range(i.from)),t=i.from)}return O.set(n)}},{decorations:e=>e.decorations});class rc extends E{constructor(e){super(),this.content=e}toDOM(e){let t=document.createElement("span");return t.className="cm-placeholder",t.style.pointerEvents="none",t.appendChild("string"==typeof this.content?document.createTextNode(this.content):"function"==typeof this.content?this.content(e):this.content.cloneNode(!0)),t.setAttribute("aria-hidden","true"),t}coordsAt(e){let t=e.firstChild?N(e.firstChild):[];if(!t.length)return null;let n=window.getComputedStyle(e.parentNode),r=$(t[0],"rtl"!=n.direction),i=parseInt(n.lineHeight);return r.bottom-r.top>1.5*i?{left:r.left,right:r.right,top:r.top,bottom:r.top+i}:r}ignoreEvent(){return!1}}function ru(e){let t=ez.fromClass(class{constructor(t){this.view=t,this.placeholder=e?O.set([O.widget({widget:new rc(e),side:1}).range(0)]):O.none}get decorations(){return this.view.state.doc.length?O.none:this.placeholder}},{decorations:e=>e.decorations});return"string"==typeof e?[t,nT.contentAttributes.of({"aria-placeholder":e})]:t}function rh(e,t){var n;let r,i=e.posAtCoords({x:t.clientX,y:t.clientY},!1),o=e.state.doc.lineAt(i),a=i-o.from,l=a>2e3?-1:a==o.length?(n=t.clientX,(r=e.coordsAtPos(e.viewport.from))?Math.round(Math.abs((r.left-n)/e.defaultCharacterWidth)):-1):(0,s.y$)(o.text,e.state.tabSize,i-o.from);return{line:o.number,col:l,off:a}}function rd(e){let t=(null==e?void 0:e.eventFilter)||(e=>e.altKey&&0==e.button);return nT.mouseSelectionStyle.of((e,n)=>{let r,i;return t(n)?(r=rh(e,n),i=e.state.selection,r?{update(e){if(e.docChanged){let t=e.changes.mapPos(e.startState.doc.line(r.line).from),n=e.state.doc.lineAt(t);r={line:n.number,col:r.col,off:Math.min(r.off,n.length)},i=i.map(e.changes)}},get(t,n,o){let a=rh(e,t);if(!a)return i;let l=function(e,t,n){let r=Math.min(t.line,n.line),i=Math.max(t.line,n.line),o=[];if(t.off>2e3||n.off>2e3||t.col<0||n.col<0){let a=Math.min(t.off,n.off),l=Math.max(t.off,n.off);for(let t=r;t<=i;t++){let n=e.doc.line(t);n.length<=l&&o.push(s.OF.range(n.from+a,n.to+l))}}else{let a=Math.min(t.col,n.col),l=Math.max(t.col,n.col);for(let t=r;t<=i;t++){let n=e.doc.line(t),r=(0,s.kn)(n.text,a,e.tabSize,!0);if(r<0)o.push(s.OF.cursor(n.to));else{let t=(0,s.kn)(n.text,l,e.tabSize);o.push(s.OF.range(n.from+r,n.from+t))}}}return o}(e.state,r,a);return l.length?o?s.OF.create(l.concat(i.ranges)):s.OF.create(l):i}}:null):null})}let rf={Alt:[18,e=>!!e.altKey],Control:[17,e=>!!e.ctrlKey],Shift:[16,e=>!!e.shiftKey],Meta:[91,e=>!!e.metaKey]},rp={style:"cursor: crosshair"};function rm(e={}){let[t,n]=rf[e.key||"Alt"],r=ez.fromClass(class{constructor(e){this.view=e,this.isDown=!1}set(e){this.isDown!=e&&(this.isDown=e,this.view.update([]))}},{eventObservers:{keydown(e){this.set(e.keyCode==t||n(e))},keyup(e){e.keyCode!=t&&n(e)||this.set(!1)},mousemove(e){this.set(n(e))}}});return[r,nT.contentAttributes.of(e=>{var t;return(null==(t=e.plugin(r))?void 0:t.isDown)?rp:null})]}let rg="-10000px";class rv{constructor(e,t,n,r){this.facet=t,this.createTooltipView=n,this.removeTooltipView=r,this.input=e.state.facet(t),this.tooltips=this.input.filter(e=>e);let i=null;this.tooltipViews=this.tooltips.map(e=>i=n(e,i))}update(e,t){var n;let r=e.state.facet(this.facet),i=r.filter(e=>e);if(r===this.input){for(let t of this.tooltipViews)t.update&&t.update(e);return!1}let o=[],a=t?[]:null;for(let n=0;n<i.length;n++){let r=i[n],s=-1;if(r){for(let e=0;e<this.tooltips.length;e++){let t=this.tooltips[e];t&&t.create==r.create&&(s=e)}if(s<0)o[n]=this.createTooltipView(r,n?o[n-1]:null),a&&(a[n]=!!r.above);else{let r=o[n]=this.tooltipViews[s];a&&(a[n]=t[s]),r.update&&r.update(e)}}}for(let e of this.tooltipViews)0>o.indexOf(e)&&(this.removeTooltipView(e),null==(n=e.destroy)||n.call(e));
2return t&&(a.forEach((e,n)=>t[n]=e),t.length=a.length),this.input=r,this.tooltips=i,this.tooltipViews=o,!0}}function ry(e){let t=e.dom.ownerDocument.documentElement;return{top:0,left:0,bottom:t.clientHeight,right:t.clientWidth}}let rb=s.sj.define({combine:e=>{var t,n,r;return{position:w.ios?"absolute":(null==(t=e.find(e=>e.position))?void 0:t.position)||"fixed",parent:(null==(n=e.find(e=>e.parent))?void 0:n.parent)||null,tooltipSpace:(null==(r=e.find(e=>e.tooltipSpace))?void 0:r.tooltipSpace)||ry}}}),rx=new WeakMap,rw=ez.fromClass(class{constructor(e){this.view=e,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let t=e.state.facet(rb);this.position=t.position,this.parent=t.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver="function"==typeof ResizeObserver?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new rv(e,rA,(e,t)=>this.createTooltip(e,t),e=>{this.resizeObserver&&this.resizeObserver.unobserve(e.dom),e.dom.remove()}),this.above=this.manager.tooltips.map(e=>!!e.above),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver(e=>{Date.now()>this.lastTransaction-50&&e.length>0&&e[e.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),e.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver)for(let e of(this.intersectionObserver.disconnect(),this.manager.tooltipViews))this.intersectionObserver.observe(e.dom)}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e,this.above);t&&this.observeIntersection();let n=t||e.geometryChanged,r=e.state.facet(rb);if(r.position!=this.position&&!this.madeAbsolute){for(let e of(this.position=r.position,this.manager.tooltipViews))e.dom.style.position=this.position;n=!0}if(r.parent!=this.parent){for(let e of(this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer(),this.manager.tooltipViews))this.container.appendChild(e.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(e,t){let n=e.create(this.view),r=t?t.dom:null;if(n.dom.classList.add("cm-tooltip"),e.arrow&&!n.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let e=document.createElement("div");e.className="cm-tooltip-arrow",n.dom.appendChild(e)}return n.dom.style.position=this.position,n.dom.style.top=rg,n.dom.style.left="0px",this.container.insertBefore(n.dom,r),n.mount&&n.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(n.dom),n}destroy(){var e,t,n;for(let t of(this.view.win.removeEventListener("resize",this.measureSoon),this.manager.tooltipViews))t.dom.remove(),null==(e=t.destroy)||e.call(t);this.parent&&this.container.remove(),null==(t=this.resizeObserver)||t.disconnect(),null==(n=this.intersectionObserver)||n.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=1,t=1,n=!1;if("fixed"==this.position&&this.manager.tooltipViews.length){let{dom:e}=this.manager.tooltipViews[0];if(w.safari){let t=e.getBoundingClientRect();n=Math.abs(t.top+1e4)>1||Math.abs(t.left)>1}else n=!!e.offsetParent&&e.offsetParent!=this.container.ownerDocument.body}if(n||"absolute"==this.position)if(this.parent){let n=this.parent.getBoundingClientRect();n.width&&n.height&&(e=n.width/this.parent.offsetWidth,t=n.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:t}=this.view.viewState);let r=this.view.scrollDOM.getBoundingClientRect(),i=eK(this.view);return{visible:{left:r.left+i.left,top:r.top+i.top,right:r.right-i.right,bottom:r.bottom-i.bottom},parent:this.parent?this.container.getBoundingClientRect():this.view.dom.getBoundingClientRect(),pos:this.manager.tooltips.map((e,t)=>{let n=this.manager.tooltipViews[t];return n.getCoords?n.getCoords(e.pos):this.view.coordsAtPos(e.pos)}),size:this.manager.tooltipViews.map(({dom:e})=>e.getBoundingClientRect()),space:this.view.state.facet(rb).tooltipSpace(this.view),scaleX:e,scaleY:t,makeAbsolute:n}}writeMeasure(e){var t;if(e.makeAbsolute)for(let e of(this.madeAbsolute=!0,this.position="absolute",this.manager.tooltipViews))e.dom.style.position="absolute";let{visible:n,space:r,scaleX:i,scaleY:o}=e,a=[];for(let s=0;s<this.manager.tooltips.length;s++){let l=this.manager.tooltips[s],c=this.manager.tooltipViews[s],{dom:u}=c,h=e.pos[s],d=e.size[s];if(!h||!1!==l.clip&&(h.bottom<=Math.max(n.top,r.top)||h.top>=Math.min(n.bottom,r.bottom)||h.right<Math.max(n.left,r.left)-.1||h.left>Math.min(n.right,r.right)+.1)){u.style.top=rg;continue}let f=l.arrow?c.dom.querySelector(".cm-tooltip-arrow"):null,p=7*!!f,m=d.right-d.left,g=null!=(t=rx.get(c))?t:d.bottom-d.top,v=c.offset||rM,y=this.view.textDirection==en.LTR,b=d.width>r.right-r.left?y?r.left:r.right-d.width:y?Math.max(r.left,Math.min(h.left-14*!!f+v.x,r.right-m)):Math.min(Math.max(r.left,h.left-m+14*!!f-v.x),r.right-m),x=this.above[s];!l.strictSide&&(x?h.top-g-p-v.y<r.top:h.bottom+g+p+v.y>r.bottom)&&x==r.bottom-h.bottom>h.top-r.top&&(x=this.above[s]=!x);let w=(x?h.top-r.top:r.bottom-h.bottom)-p;if(w<g&&!1!==c.resize){if(w<this.view.defaultLineHeight){u.style.top=rg;continue}rx.set(c,g),u.style.height=(g=w)/o+"px"}else u.style.height&&(u.style.height="");let k=x?h.top-g-p-v.y:h.bottom+p+v.y,S=b+m;if(!0!==c.overlap)for(let e of a)e.left<S&&e.right>b&&e.top<k+g&&e.bottom>k&&(k=x?e.top-g-2-p:e.bottom+p+2);if("absolute"==this.position?(u.style.top=(k-e.parent.top)/o+"px",rk(u,(b-e.parent.left)/i)):(u.style.top=k/o+"px",rk(u,b/i)),f){let e=h.left+(y?v.x:-v.x)-(b+14-7);f.style.left=e/i+"px"}!0!==c.overlap&&a.push({left:b,top:k,right:S,bottom:k+g}),u.classList.toggle("cm-tooltip-above",x),u.classList.toggle("cm-tooltip-below",!x),c.positioned&&c.positioned(e.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView)&&(this.inView=this.view.inView,!this.inView))for(let e of this.manager.tooltipViews)e.dom.style.top=rg}},{eventObservers:{scroll(){this.maybeMeasure()}}});function rk(e,t){let n=parseInt(e.style.left,10);(isNaN(n)||Math.abs(t-n)>1)&&(e.style.left=t+"px")}let rS=nT.baseTheme({".cm-tooltip":{zIndex:500,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),rM={x:0,y:0},rA=s.sj.define({enables:[rw,rS]}),rE=s.sj.define({combine:e=>e.reduce((e,t)=>
2e.concat(t),[])});class rC{static create(e){return new rC(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new rv(e,rE,(e,t)=>this.createHostedView(e,t),e=>e.dom.remove())}createHostedView(e,t){let n=e.create(this.view);return n.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(n.dom,t?t.dom.nextSibling:this.dom.firstChild),this.mounted&&n.mount&&n.mount(this.view),n}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(e){for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let t of this.manager.tooltipViews)null==(e=t.destroy)||e.call(t)}passProp(e){let t;for(let n of this.manager.tooltipViews){let r=n[e];if(void 0!==r){if(void 0===t)t=r;else if(t!==r)return}}return t}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}let rO=rA.compute([rE],e=>{let t=e.facet(rE);return 0===t.length?null:{pos:Math.min(...t.map(e=>e.pos)),end:Math.max(...t.map(e=>{var t;return null!=(t=e.end)?t:e.pos})),create:rC.create,above:t[0].above,arrow:t.some(e=>e.arrow)}}),rP=s.sj.define();class rT{constructor(e,t,n,r,i,o){this.view=e,this.source=t,this.field=n,this.locked=r,this.setHover=i,this.hoverTime=o,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(e){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;e<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-e):this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{view:e,lastMove:t}=this,n=e.docView.tile.nearest(t.target);if(!n)return;let r,i=1;if(n.isWidget())r=n.posAtStart;else{if(null==(r=e.posAtCoords(t)))return;let n=e.coordsAtPos(r);if(!n||t.y<n.top||t.y>n.bottom||t.x<n.left-e.defaultCharacterWidth||t.x>n.right+e.defaultCharacterWidth)return;let o=e.bidiSpans(e.state.doc.lineAt(r)).find(e=>e.from<=r&&e.to>=r),a=o&&o.dir==en.RTL?-1:1;i=t.x<n.left?-a:a}this.activateHover(e,r,i)}activateHover(e,t,n,r){let i=this.source(e,t,n),o=t=>{if(t&&!(Array.isArray(t)&&!t.length)){let n=Array.isArray(t)?t:[t];r&&this.locked.set(n,r),e.dispatch({effects:this.setHover.of(n)})}};if(i&&"then"in i){let n=this.pending={pos:t};i.then(e=>{this.pending==n&&(this.pending=null,o(e))},t=>eD(e.state,t,"hover tooltip"))}else o(i)}get tooltip(){let e=this.view.plugin(rw),t=e?e.manager.tooltips.findIndex(e=>e.create==rC.create):-1;return t>-1?e.manager.tooltipViews[t]:null}mousemove(e){var t,n;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:r,tooltip:i}=this;if(r.length&&!this.locked.has(r)&&i&&!function(e,t){let{left:n,right:r,top:i,bottom:o}=e.getBoundingClientRect(),a;if(a=e.querySelector(".cm-tooltip-arrow")){let e=a.getBoundingClientRect();i=Math.min(e.top,i),o=Math.max(e.bottom,o)}return t.clientX>=n-4&&t.clientX<=r+4&&t.clientY>=i-4&&t.clientY<=o+4}(i.dom,e)||this.pending){let{pos:i}=r[0]||this.pending,o=null!=(n=null==(t=r[0])?void 0:t.end)?n:i;(i==o?this.view.posAtCoords(this.lastMove)!=i:!function(e,t,n,r,i){let o=e.scrollDOM.getBoundingClientRect(),a=e.documentTop+e.documentPadding.top+e.contentHeight;if(o.left>r||o.right<r||o.top>i||Math.min(o.bottom,a)<i)return!1;let s=e.posAtCoords({x:r,y:i},!1);return s>=t&&s<=n}(this.view,i,o,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:t}=this;if(t.length&&!this.locked.has(t)){let{tooltip:t}=this;t&&t.dom.contains(e.relatedTarget)?this.watchTooltipLeave(t.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let t=n=>{e.removeEventListener("mouseleave",t);let{active:r}=this;!r.length||this.locked.has(r)||this.view.dom.contains(n.relatedTarget)||this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",t)}destroy(){clearTimeout(this.hoverTimeout),clearTimeout(this.restartTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}function rD(e,t={}){let n=s.Pe.define(),r=new WeakMap,i=s.sU.define({create:()=>[],update(e,o){let a=r.get(e);if(e.length&&(t.hideOnChange&&(o.docChanged||o.selection)||a&&a(o)?e=[]:t.hideOn&&(e=e.filter(e=>!t.hideOn(o,e)))),o.docChanged&&e.length){let t=[];for(let n of e){let e=o.changes.mapPos(n.pos,-1,s.iR.TrackDel);if(null!=e){let r=Object.assign(Object.create(null),n);r.pos=e,null!=r.end&&(r.end=o.changes.mapPos(r.end)),t.push(r)}}e=t}for(let t of o.effects)t.is(n)&&(e=t.value,a=void 0),(t.is(rI)&&!t.value||t.value==i)&&(e=[]);return e.length&&a&&r.set(e,a),e},provide:e=>rE.from(e)}),o=ez.define(o=>new rT(o,e,i,r,n,t.hoverTime||300));return{active:i,extension:[i,o,rP.of(o),rO]}}function rR(e,t,n,r={}){var i;let o=e.state.facet(rP).map(t=>e.plugin(t)).filter(e=>!!e);if(r.tooltip&&r.tooltip.active){let e=o.find(e=>e.field==r.tooltip.active);e&&(o=[e])}for(let a of o)a.activateHover(e,t,n,null!=(i=r.until)?i:()=>!1)}function rj(e,t){let n=e.plugin(rw);if(!n)return null;let r=n.manager.tooltips.indexOf(t);return r<0?null:n.manager.tooltipViews[r]}let rI=s.Pe.define(),rz=s.sj.define({combine(e){let t,n;for(let r of e)t=t||r.topContainer,n=n||r.bottomContainer;return{topContainer:t,bottomContainer:n}}});function r_(e,t){let n=e.plugin(rL),r=n?n.specs.indexOf(t):-1;return r>-1?n.panels[r]:null}let rL=ez.fromClass(class{constructor(e){this.input=e.state.facet(rF),this.specs=this.input.filter(e=>e),this.panels=this.specs.map(t=>t(e));let t=e.state.facet(rz);for(let n of(this.top=new rN(e,!0,t.topContainer),this.bottom=new rN(e,!1,t.bottomContainer),this.top.sync(this.panels.filter(e=>e.top)),this.bottom.sync(this.panels.filter(e=>
2!e.top)),this.panels))n.dom.classList.add("cm-panel"),n.mount&&n.mount()}update(e){let t=e.state.facet(rz);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new rN(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new rN(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=e.state.facet(rF);if(n!=this.input){let t=n.filter(e=>e),r=[],i=[],o=[],a=[];for(let n of t){let t=this.specs.indexOf(n),s;t<0?(s=n(e.view),a.push(s)):(s=this.panels[t]).update&&s.update(e),r.push(s),(s.top?i:o).push(s)}for(let e of(this.specs=t,this.panels=r,this.top.sync(i),this.bottom.sync(o),a))e.dom.classList.add("cm-panel"),e.mount&&e.mount()}else for(let t of this.panels)t.update&&t.update(e)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:e=>nT.scrollMargins.of(t=>{let n=t.plugin(e);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})});class rN{constructor(e,t,n){this.view=e,this.top=t,this.container=n,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&0>e.indexOf(t)&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(0==this.panels.length){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let e=this.container||this.view.dom;e.insertBefore(this.dom,this.top?e.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=rB(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=rB(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function rB(e){let t=e.nextSibling;return e.remove(),t}let rF=s.sj.define({enables:rL});class rV extends s.FB{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}rV.prototype.elementClass="",rV.prototype.toDOM=void 0,rV.prototype.mapMode=s.iR.TrackBefore,rV.prototype.startSide=rV.prototype.endSide=-1,rV.prototype.point=!0;let rH=s.sj.define(),rW=s.sj.define(),r$={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>s.om.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{},side:"before"},rU=s.sj.define();function rK(e){return[rG(),rU.of({...r$,...e})]}let rq=s.sj.define({combine:e=>e.some(e=>e)});function rG(e){let t=[rZ];return e&&!1===e.fixed&&t.push(rq.of(!0)),t}let rZ=ez.fromClass(class{constructor(e){for(let t of(this.view=e,this.domAfter=null,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters cm-gutters-before",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=e.state.facet(rU).map(t=>new rQ(e,t)),this.fixed=!e.state.facet(rq),this.gutters))"after"==t.config.side?this.getDOMAfter().appendChild(t.dom):this.dom.appendChild(t.dom);this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}getDOMAfter(){return this.domAfter||(this.domAfter=document.createElement("div"),this.domAfter.className="cm-gutters cm-gutters-after",this.domAfter.setAttribute("aria-hidden","true"),this.domAfter.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.domAfter.style.position=this.fixed?"sticky":"",this.view.scrollDOM.appendChild(this.domAfter)),this.domAfter}update(e){if(this.updateGutters(e)){let t=this.prevViewport,n=e.view.viewport,r=Math.min(t.to,n.to)-Math.max(t.from,n.from);this.syncGutters(r<(n.to-n.from)*.8)}if(e.geometryChanged){let e=this.view.contentHeight/this.view.scaleY+"px";this.dom.style.minHeight=e,this.domAfter&&(this.domAfter.style.minHeight=e)}this.view.state.facet(rq)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":"",this.domAfter&&(this.domAfter.style.position=this.fixed?"sticky":"")),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&(this.dom.remove(),this.domAfter&&this.domAfter.remove());let n=s.om.iter(this.view.state.facet(rH),this.view.viewport.from),r=[],i=this.gutters.map(e=>new rJ(e,this.view.viewport,-this.view.documentPadding.top));for(let e of this.view.viewportLineBlocks)if(r.length&&(r=[]),Array.isArray(e.type)){let t=!0;for(let o of e.type)if(o.type==C.Text&&t){for(let e of(rX(n,r,o.from),i))e.line(this.view,o,r);t=!1}else if(o.widget)for(let e of i)e.widget(this.view,o)}else if(e.type==C.Text)for(let t of(rX(n,r,e.from),i))t.line(this.view,e,r);else if(e.widget)for(let t of i)t.widget(this.view,e);for(let e of i)e.finish();e&&(this.view.scrollDOM.insertBefore(this.dom,t),this.domAfter&&this.view.scrollDOM.appendChild(this.domAfter))}updateGutters(e){let t=e.startState.facet(rU),n=e.state.facet(rU),r
2=e.docChanged||e.heightChanged||e.viewportChanged||!s.om.eq(e.startState.facet(rH),e.state.facet(rH),e.view.viewport.from,e.view.viewport.to);if(t==n)for(let t of this.gutters)t.update(e)&&(r=!0);else{r=!0;let i=[];for(let r of n){let n=t.indexOf(r);n<0?i.push(new rQ(this.view,r)):(this.gutters[n].update(e),i.push(this.gutters[n]))}for(let e of this.gutters)e.dom.remove(),0>i.indexOf(e)&&e.destroy();for(let e of i)"after"==e.config.side?this.getDOMAfter().appendChild(e.dom):this.dom.appendChild(e.dom);this.gutters=i}return r}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove(),this.domAfter&&this.domAfter.remove()}},{provide:e=>nT.scrollMargins.of(t=>{let n=t.plugin(e);if(!n||0==n.gutters.length||!n.fixed)return null;let r=n.dom.offsetWidth*t.scaleX,i=n.domAfter?n.domAfter.offsetWidth*t.scaleX:0;return t.textDirection==en.LTR?{left:r,right:i}:{right:r,left:i}})});function rY(e){return Array.isArray(e)?e:[e]}function rX(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class rJ{constructor(e,t,n){this.gutter=e,this.height=n,this.i=0,this.cursor=s.om.iter(e.markers,t.from)}addElement(e,t,n){let{gutter:r}=this,i=(t.top-this.height)/e.scaleY,o=t.height/e.scaleY;if(this.i==r.elements.length){let t=new r0(e,o,i,n);r.elements.push(t),r.dom.appendChild(t.dom)}else r.elements[this.i].update(e,o,i,n);this.height=t.bottom,this.i++}line(e,t,n){let r=[];rX(this.cursor,r,t.from),n.length&&(r=r.concat(n));let i=this.gutter.config.lineMarker(e,t,r);i&&r.unshift(i);let o=this.gutter;(0!=r.length||o.config.renderEmptyElements)&&this.addElement(e,t,r)}widget(e,t){let n=this.gutter.config.widgetMarker(e,t.widget,t),r=n?[n]:null;for(let n of e.state.facet(rW)){let i=n(e,t.widget,t);i&&(r||(r=[])).push(i)}r&&this.addElement(e,t,r)}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class rQ{constructor(e,t){for(let n in this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:""),t.domEventHandlers)this.dom.addEventListener(n,r=>{let i=r.target,o;if(i!=this.dom&&this.dom.contains(i)){for(;i.parentNode!=this.dom;)i=i.parentNode;let e=i.getBoundingClientRect();o=(e.top+e.bottom)/2}else o=r.clientY;let a=e.lineBlockAtHeight(o-e.documentTop);t.domEventHandlers[n](e,a,r)&&r.preventDefault()});this.markers=rY(t.markers(e)),t.initialSpacer&&(this.spacer=new r0(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=rY(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let t=this.config.updateSpacer(this.spacer.markers[0],e);t!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[t])}let n=e.view.viewport;
2return!s.om.eq(this.markers,t,n.from,n.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(e)}destroy(){for(let e of this.elements)e.destroy()}}class r0{constructor(e,t,n,r){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,n,r)}update(e,t,n,r){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),!function(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].compare(t[n]))return!1;return!0}(this.markers,r)&&this.setMarkers(e,r)}setMarkers(e,t){let n="cm-gutterElement",r=this.dom.firstChild;for(let i=0,o=0;;){let a=o,s=i<t.length?t[i++]:null,l=!1;if(s){let e=s.elementClass;e&&(n+=" "+e);for(let e=o;e<this.markers.length;e++)if(this.markers[e].compare(s)){a=e,l=!0;break}}else a=this.markers.length;for(;o<a;){let e=this.markers[o++];if(e.toDOM){e.destroy(r);let t=r.nextSibling;r.remove(),r=t}}if(!s)break;s.toDOM&&(l?r=r.nextSibling:this.dom.insertBefore(s.toDOM(e),r)),l&&o++}this.dom.className=n,this.markers=t}destroy(){this.setMarkers(null,[])}}let r1=s.sj.define(),r2=s.sj.define(),r4=s.sj.define({combine:e=>(0,s.QR)(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let n=Object.assign({},e);for(let e in t){let r=n[e],i=t[e];n[e]=r?(e,t,n)=>r(e,t,n)||i(e,t,n):i}return n}})});class r5 extends rV{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function r3(e,t){return e.state.facet(r4).formatNumber(t,e.state)}let r6=rU.compute([r4],e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:e=>e.state.facet(r1),lineMarker:(e,t,n)=>n.some(e=>e.toDOM)?null:new r5(r3(e,e.state.doc.lineAt(t.from).number)),widgetMarker:(e,t,n)=>{for(let r of e.state.facet(r2)){let i=r(e,t,n);if(i)return i}return null},lineMarkerChange:e=>e.startState.facet(r4)!=e.state.facet(r4),initialSpacer:e=>new r5(r3(e,r9(e.state.doc.lines))),updateSpacer(e,t){let n=r3(t.view,r9(t.view.state.doc.lines));return n==e.number?e:new r5(n)},domEventHandlers:e.facet(r4).domEventHandlers,side:"before"}));function r8(e={}){return[r4.of(e),rG(),r6]}function r9(e){let t=9;for(;t<e;)t=10*t+9;return t}let r7=new class extends rV{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},ie=rH.compute(["selection"],e=>{let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.head).from;i>n&&(n=i,t.push(r7.range(i)))}return s.om.of(t)});function it(){return ie}},52979(e,t,n){"use strict";n.d(t,{u:()=>f});var r=n(82436);let i=(e,t,n)=>{if(e&&"reportValidity"in e){let i=(0,r.Jt)(n,t);e.setCustomValidity(i&&i.message||""),e.reportValidity()}},o=(e,t)=>{for(let n in t.fields){let r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?i(r.ref,n,e):r&&r.refs&&r.refs.forEach(t=>i(t,n,e))}},a=(e,t)=>{t.shouldUseNativeValidation&&o(e,t);let n={};for(let i in e){let o=(0,r.Jt)(t.fields,i),a=Object.assign(e[i]||{},{ref:o&&o.ref});if(s(t.names||Object.keys(e),i)){let e=Object.assign({},(0,r.Jt)(n,i));(0,r.hZ)(e,"root",a),(0,r.hZ)(n,i,e)}else(0,r.hZ)(n,i,a)}return n},s=(e,t)=>{let n=l(t).replace(/[.*+?^${}()|\\]/g,"\\$&");return e.some(e=>l(e).match(`^${n}\\.\\d+`))};function l(e){return e.replace(/[\[\]]/g,"")}var c=n(46614),u=n(46358);function h(){return(h=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)}function d(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}function f(e,t,n){if(void 0===n&&(n={}),"_def"in e&&"object"==typeof e._def&&"typeName"in e._def)return function(i,s,l){try{return Promise.resolve(d(function(){return Promise.resolve(e["sync"===n.mode?"parse":"parseAsync"](i,t)).then(function(e){return l.shouldUseNativeValidation&&o({},l),{errors:{},values:n.raw?Object.assign({},i):e}})},function(e){if(Array.isArray(null==e?void 0:e.issues))return{values:{},errors:a(function(e,t){for(var n={};e.length;){var i=e[0],o=i.code,a=i.message,s=i.path.join(".");
2if(!n[s])if("unionErrors"in i){var l=i.unionErrors[0].errors[0];n[s]={message:l.message,type:l.code}}else n[s]={message:a,type:o};if("unionErrors"in i&&i.unionErrors.forEach(function(t){return t.errors.forEach(function(t){return e.push(t)})}),t){var c=n[s].types,u=c&&c[i.code];n[s]=(0,r.Gb)(s,t,n,o,u?[].concat(u,i.message):i.message)}e.shift()}return n}(e.errors,!l.shouldUseNativeValidation&&"all"===l.criteriaMode),l)};throw e}))}catch(e){return Promise.reject(e)}};if("_zod"in e&&"object"==typeof e._zod)return function(i,s,l){try{return Promise.resolve(d(function(){return Promise.resolve(("sync"===n.mode?c.qg:c.EJ)(e,i,t)).then(function(e){return l.shouldUseNativeValidation&&o({},l),{errors:{},values:n.raw?Object.assign({},i):e}})},function(e){if(e instanceof u.a$)return{values:{},errors:a(function(e,t){for(var n={};e.length;)!function(){var i=e[0],o=i.code,a=i.message,s=i.path.join(".");if(!n[s])if("invalid_union"===i.code&&i.errors.length>0){var l=i.errors[0][0];n[s]={message:l.message,type:l.code}}else n[s]={message:a,type:o};if("invalid_union"===i.code&&i.errors.forEach(function(t){return t.forEach(function(t){return e.push(h({},t,{path:[].concat(i.path,t.path)}))})}),t){var c=n[s].types,u=c&&c[i.code];n[s]=(0,r.Gb)(s,t,n,o,u?[].concat(u,i.message):i.message)}e.shift()}();return n}(e.issues,!l.shouldUseNativeValidation&&"all"===l.criteriaMode),l)};throw e}))}catch(e){return Promise.reject(e)}};throw Error("Invalid input: not a Zod schema")}},52498(e,t,n){"use strict";var r,i;n.d(t,{PH:()=>p,Qj:()=>r,Z6:()=>u,fI:()=>h,iX:()=>j,rr:()=>R,uY:()=>s});let o=0;class a{constructor(e,t){this.from=e,this.to=t}}class s{constructor(e={}){this.id=o++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw Error("This node type doesn't define a deserialize function")}),this.combine=e.combine||null}add(e){if(this.perNode)throw RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=u.match(e)),t=>{let n=e(t);return void 0===n?null:[this,n]}}}s.closedBy=new s({deserialize:e=>e.split(" ")}),s.openedBy=new s({deserialize:e=>e.split(" ")}),s.group=new s({deserialize:e=>e.split(" ")}),s.isolate=new s({deserialize:e=>{if(e&&"rtl"!=e&&"ltr"!=e&&"auto"!=e)throw RangeError("Invalid value for isolate: "+e);return e||"auto"}}),s.contextHash=new s({perNode:!0}),s.lookAhead=new s({perNode:!0}),s.mounted=new s({perNode:!0});class l{constructor(e,t,n,r=!1){this.tree=e,this.overlay=t,this.parser=n,this.bracketed=r}static get(e){return e&&e.props&&e.props[s.mounted.id]}}let c=Object.create(null);class u{constructor(e,t,n,r=0){this.name=e,this.props=t,this.id=n,this.flags=r}static define(e){let t=e.props&&e.props.length?Object.create(null):c,n=!!e.top|2*!!e.skipped|4*!!e.error|8*(null==e.name),r=new u(e.name||"",t,e.id,n);if(e.props){for(let n of e.props)if(Array.isArray(n)||(n=n(r)),n){if(n[0].perNode)throw RangeError("Can't store a per-node prop on a node type");t[n[0].id]=n[1]}}return r}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(s.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let r of n.split(" "))t[r]=e[n];return e=>{for(let n=e.prop(s.group),r=-1;r<(n?n.length:0);r++){let i=t[r<0?e.name:n[r]];if(i)return i}}}}u.none=new u("",Object.create(null),0,8);class h{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let n of this.types){let r=null;for(let t of e){let e=t(n);if(e){r||(r=Object.assign({},n.props));let t=e[1],i=e[0];i.combine&&i.id in r&&(t=i.combine(r[i.id],t)),r[i.id]=t}}t.push(r?new u(n.name,r,n.id,n.flags):n)}return new h(t)}}let d=new WeakMap,f=new WeakMap;(i=r||(r={}))[i.ExcludeBuffers=1]="ExcludeBuffers",i[i.IncludeAnonymous=2]="IncludeAnonymous",i[i.IgnoreMounts=4]="IgnoreMounts",i[i.IgnoreOverlays=8]="IgnoreOverlays",i[i.EnterBracketed=16]="EnterBracketed";
2class p{constructor(e,t,n,r,i){if(this.type=e,this.children=t,this.positions=n,this.length=r,this.props=null,i&&i.length)for(let[e,t]of(this.props=Object.create(null),i))this.props["number"==typeof e?e:e.id]=t}toString(){let e=l.get(this);if(e&&!e.overlay)return e.tree.toString();let t="";for(let e of this.children){let n=e.toString();n&&(t&&(t+=","),t+=n)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new C(this.topNode,e)}cursorAt(e,t=0,n=0){let r=new C(d.get(this)||this.topNode);return r.moveTo(e,t),d.set(this,r._tree),r}get topNode(){return new x(this,0,0,null)}resolve(e,t=0){let n=y(d.get(this)||this.topNode,e,t,!1);return d.set(this,n),n}resolveInner(e,t=0){let n=y(f.get(this)||this.topNode,e,t,!0);return f.set(this,n),n}resolveStack(e,t=0){return function(e,t,n){let r=e.resolveInner(t,n),i=null;for(let e=r instanceof x?r:r.context.parent;e;e=e.parent)if(e.index<0){let o=e.parent;(i||(i=[r])).push(o.resolve(t,n)),e=o}else{let o=l.get(e.tree);if(o&&o.overlay&&o.overlay[0].from<=t&&o.overlay[o.overlay.length-1].to>=t){let a=new x(o.tree,o.overlay[0].from+e.from,-1,e);(i||(i=[r])).push(y(a,t,n,!1))}}return i?A(i):r}(this,e,t)}iterate(e){let{enter:t,leave:n,from:i=0,to:o=this.length}=e,a=e.mode||0,s=(a&r.IncludeAnonymous)>0;for(let e=this.cursor(a|r.IncludeAnonymous);;){let r=!1;if(e.from<=o&&e.to>=i&&(!s&&e.type.isAnonymous||!1!==t(e))){if(e.firstChild())continue;r=!0}for(;r&&n&&(s||!e.type.isAnonymous)&&n(e),!e.nextSibling();){if(!e.parent())return;r=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];
2if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:D(u.none,this.children,this.positions,0,this.children.length,0,this.length,(e,t,n)=>new p(this.type,e,t,n,this.propValues),e.makeTree||((e,t,n)=>new p(u.none,e,t,n)))}static build(e){return function(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:i=1024,reused:o=[],minRepeatType:a=r.types.length}=e,l=Array.isArray(n)?new m(n,n.length):n,c=r.types,u=0,h=0;function d(e,t,n,i,o,a,s,l,c){let u=[],h=[];for(;e.length>i;)u.push(e.pop()),h.push(t.pop()+n-o);e.push(f(r.types[s],u,h,a-o,l-a,c)),t.push(o-n)}function f(e,t,n,r,i,o,a){if(o){let e=[s.contextHash,o];a=a?[e].concat(a):[e]}if(i>25){let e=[s.lookAhead,i];a=a?[e].concat(a):[e]}return new p(e,t,n,r,a)}let v=[],y=[];for(;l.pos>0;)!function e(t,n,m,v,y,b){let{id:x,start:w,end:k,size:S}=l,M=h,A=u;if(S<0){if(l.next(),-1==S){let e=o[x];m.push(e),v.push(w-t);return}if(-3==S){u=x;return}if(-4==S){h=x;return}else throw RangeError(`Unrecognized record size: ${S}`)}let E=c[x],C,O,P=w-t;if(k-w<=i&&(O=function(e,t){let n=l.fork(),r=0,o=0,s=0,c=n.end-i,u={size:0,start:0,skip:0};o:for(let i=n.pos-e;n.pos>i;){let e=n.size;if(n.id==t&&e>=0){u.size=r,u.start=o,u.skip=s,s+=4,r+=4,n.next();continue}let l=n.pos-e;if(e<0||l<i||n.start<c)break;let h=4*(n.id>=a),d=n.start;for(n.next();n.pos>l;){if(n.size<0)if(-3==n.size||-4==n.size)h+=4;else break o;else n.id>=a&&(h+=4);n.next()}o=d,r+=e,s+=h}return(t<0||r==e)&&(u.size=r,u.start=o,u.skip=s),u.size>4?u:void 0}(l.pos-n,y))){let e=new Uint16Array(O.size-O.skip),n=l.pos-O.size,i=e.length;for(;l.pos>n;)i=function e(t,n,r){let{id:i,start:o,end:s,size:c}=l;if(l.next(),c>=0&&i<a){let a=r;if(c>4){let i=l.pos-(c-4);for(;l.pos>i;)r=e(t,n,r)}n[--r]=a,n[--r]=s-t,n[--r]=o-t,n[--r]=i}else -3==c?u=i:-4==c&&(h=i);return r}(O.start,e,i);C=new g(e,k-O.start,r),P=O.start-t}else{let t=l.pos-S;l.next();let n=[],o=[],c=x>=a?x:-1,u=0,h=k;for(;l.pos>t;)c>=0&&l.id==c&&l.size>=0?(l.end<=h-i&&(d(n,o,w,u,l.end,h,c,M,A),u=n.length,h=l.end),l.next()):b>2500?function(e,t,n,o){let a=[],s=0,c=-1;for(;l.pos>t;){let{id:e,start:t,end:n,size:r}=l;if(r>4)l.next();else if(c>-1&&t<c)break;
vendor: 6,502 bytes, line 2
2else c<0&&(c=n-i),a.push(e,t,n),s++,l.next()}if(s){let t=new Uint16Array(4*s),i=a[a.length-2];for(let e=a.length-3,n=0;e>=0;e-=3)t[n++]=a[e],t[n++]=a[e+1]-i,t[n++]=a[e+2]-i,t[n++]=n;n.push(new g(t,a[2]-i,r)),o.push(i-e)}}(w,t,n,o):e(w,t,n,o,c,b+1);if(c>=0&&u>0&&u<n.length&&d(n,o,w,u,w,h,c,M,A),n.reverse(),o.reverse(),c>-1&&u>0){let e=function(e,t){return(n,r,i)=>{let o=0,a=n.length-1,l,c;if(a>=0&&(l=n[a])instanceof p){if(!a&&l.type==e&&l.length==i)return l;(c=l.prop(s.lookAhead))&&(o=r[a]+l.length+c)}return f(e,n,r,i,o,t)}}(E,A);C=D(E,n,o,0,n.length,0,k-w,e,e)}else C=f(E,n,o,k-w,M-k,A)}m.push(C),v.push(P)}(e.start||0,e.bufferStart||0,v,y,-1,0);let b=null!=(t=e.length)?t:v.length?y[0]+v[0].length:0;return new p(c[e.topID],v.reverse(),y.reverse(),b)}(e)}}p.empty=new p(u.none,[],[],0);class m{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new m(this.buffer,this.index)}}class g{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return u.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],n=this.buffer[e+3],r=this.set.types[t],i=r.name;if(/\W/.test(i)&&!r.isError&&(i=JSON.stringify(i)),n==(e+=4))return i;let o=[];for(;e<n;)o.push(this.childString(e)),e=this.buffer[e+3];return i+"("+o.join(",")+")"}findChild(e,t,n,r,i){let{buffer:o}=this,a=-1;for(let s=e;s!=t&&(!v(i,r,o[s+1],o[s+2])||(a=s,!(n>0)));s=o[s+3]);return a}slice(e,t,n){let r=this.buffer,i=new Uint16Array(t-e),o=0;for(let a=e,s=0;a<t;){i[s++]=r[a++],i[s++]=r[a++]-n;let t=i[s++]=r[a++]-n;i[s++]=r[a++]-e,o=Math.max(o,t)}return new g(i,o,this.set)}}function v(e,t,n,r){switch(e){case -2:return n<t;case -1:return r>=t&&n<t;case 0:return n<t&&r>t;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function y(e,t,n,i){for(var o;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to<t);){let t=!i&&e instanceof x&&e.index<0?null:e.parent;if(!t)return e;e=t}let a=i?0:r.IgnoreOverlays;if(i)for(let r=e,i=r.parent;i;i=(r=i).parent)r instanceof x&&r.index<0&&(null==(o=i.enter(t,n,a))?void 0:o.from)!=r.from&&(e=i);for(;;){let r=e.enter(t,n,a);if(!r)return e;e=r}}class b{cursor(e=0){return new C(this,e)}getChild(e,t=null,n=null){let r=w(this,e,t,n);return r.length?r[0]:null}getChildren(e,t=null,n=null){return w(this,e,t,n)}resolve(e,t=0){return y(this,e,t,!1)}resolveInner(e,t=0){return y(this,e,t,!0)}matchContext(e){return k(this.parent,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),n=this;for(;t;){let e=t.lastChild;if(!e||e.to!=t.to)break;e.type.isError&&e.from==e.to?(n=t,t=e.prevSibling):t=e}return n}get node(){return this}get next(){return this.parent}}class x extends b{constructor(e,t,n,r){super(),this._tree=e,this.from=t,this.index=n,this._parent=r}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,n,i,o=0){for(let a=this;;){for(let{children:s,positions:c}=a._tree,u=t>0?s.length:-1;e!=u;e+=t){let u=s[e],h=c[e]+a.from,d;if(o&r.EnterBracketed&&u instanceof p&&(d=l.get(u))&&!d.overlay&&d.bracketed&&n>=h&&n<=h+u.length||v(i,n,h,h+u.length)){if(u instanceof g){if(o&r.ExcludeBuffers)continue;let s=u.findChild(0,u.buffer.length,t,n-h,i);if(s>-1)return new M(new S(a,u,e,h),null,s)}else if(o&r.IncludeAnonymous||!u.type.isAnonymous||O(u)){let s;if(!(o&r.IgnoreMounts)&&(s=l.get(u))&&!s.overlay)return new x(s.tree,h,e,a);let c=new x(u,h,e,a);return o&r.IncludeAnonymous||!c.type.isAnonymous?c:c.nextChild(t<0?u.children.length-1:0,t,n,i,o)}}}if(o&r.IncludeAnonymous||!a.type.isAnonymous||(e=a.index>=0?a.index+t:t<0?-1:a._parent._tree.children.length,!(a=a._parent)))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}prop(e){return this._tree.prop(e)}enter(e,t,n=0){let i;if(!(n&r.IgnoreOverlays)&&(i=l.get(this._tree))&&i.overlay){let o=e-this.from,a=n&r.EnterBracketed&&i.bracketed;for(let{from:e,to:n}of i.overlay)if((t>0||a?e<=o:e<o)&&(t<0||a?n>=o:n>o))return new x(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function w(e,t,n,r){let i=e.cursor(),o=[];if(!i.firstChild())return o;if(null!=n){for(let e=!1;!e;)if(e=i.type.is(n),!i.nextSibling())return o}for(;;){if(null!=r&&i.type.is(r))return o;if(i.type.is(t)&&o.push(i.node),!i.nextSibling())return null==r?o:[]}}function k(e,t,n=t.length-1){for(let r=e;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}class S{constructor(e,t,n,r){this.parent=e,this.buffer=t,this.index=n,this.start=r}}class M extends b{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,n){super(),this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,t,n){let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.context.start,n);return i<0?null:new M(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}prop(e){return this.type.prop(e)}enter(e,t,n=0){if(n&r.ExcludeBuffers)return null;let{buffer:i}=this.context,o=i.findChild(this.index+4,i.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return o<0?null:new M(this.context,this,o)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.
vendor: 7,656 bytes, line 2
2index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new M(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new M(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,r=this.index+4,i=n.buffer[this.index+3];if(i>r){let o=n.buffer[this.index+1];e.push(n.slice(r,i,o)),t.push(0)}return new p(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function A(e){if(!e.length)return null;let t=0,n=e[0];for(let r=1;r<e.length;r++){let i=e[r];(i.from>n.from||i.to<n.to)&&(n=i,t=r)}let r=n instanceof x&&n.index<0?null:n.parent,i=e.slice();return r?i[t]=r:i.splice(t,1),new E(i,n)}class E{constructor(e,t){this.heads=e,this.node=t}get next(){return A(this.heads)}}class C{get name(){return this.type.name}constructor(e,t=0){if(this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,this.mode=t&~r.EnterBracketed,e instanceof x)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return!!e&&(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0)}yieldBuf(e,t){this.index=e;let{start:n,buffer:r}=this.buffer;return this.type=t||r.set.types[r.buffer[e]],this.from=n+r.buffer[e+1],this.to=n+r.buffer[e+2],!0}yield(e){return!!e&&(e instanceof x?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,n,this.mode));let{buffer:r}=this.buffer,i=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.buffer.start,n);return!(i<0)&&(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,n=this.mode){return this.buffer?!(n&r.ExcludeBuffers)&&this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&r.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&r.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));let{buffer:t}=this.buffer,n=this.stack.length-1;if(e<0){let e=n<0?0:this.stack[n]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(e)}return n<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,n,{buffer:i}=this;if(i){if(e>0){if(this.index<i.buffer.buffer.length)return!1}else for(let e=0;e<this.index;e++)if(i.buffer.buffer[e+3]<this.index)return!1;({index:t,parent:n}=i)}else({index:t,_parent:n}=this._tree);for(;n;{index:t,_parent:n}=n)if(t>-1)for(let i=t+e,o=e<0?-1:n._tree.children.length;i!=o;i+=e){let e=n._tree.children[i];if(this.mode&r.IncludeAnonymous||e instanceof g||!e.type.isAnonymous||O(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,n=0;if(e&&e.context==this.buffer)o:for(let r=this.index,i=this.stack.length;i>=0;){for(let o=e;o;o=o._parent)if(o.index==r){if(r==this.index)return o;t=o,n=i+1;break o}r=this.stack[--i]}for(let e=n;e<this.stack.length;e++)t=new M(this.buffer,t,this.stack[e]);return this.bufferNode=new M(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let n=0;;){let r=!1;if(this.type.isAnonymous||!1!==e(this)){if(this.firstChild()){n++;continue}this.type.isAnonymous||(r=!0)}for(;;){if(r&&t&&t(this),r=this.type.isAnonymous,!n)return;if(this.nextSibling())break;this.parent(),n--,r=!0}}}matchContext(e){if(!this.buffer)return k(this.node.parent,e);let{buffer:t}=this.buffer,{types:n}=t.set;for(let r=e.length-1,i=this.stack.length-1;r>=0;i--){if(i<0)return k(this._tree,e,r);let o=n[t.buffer[this.stack[i]]];if(!o.isAnonymous){if(e[r]&&e[r]!=o.name)return!1;r--}}return!0}}function O(e){return e.children.some(e=>e instanceof g||!e.type.isAnonymous||O(e))}let P=new WeakMap;function T(e,t){if(!e.isAnonymous||t instanceof g||t.type!=e)return 1;let n=P.get(t);if(null==n){for(let r of(n=1,t.children)){if(r.type!=e||!(r instanceof p)){n=1;break}n+=T(e,r)}P.set(t,n)}return n}function D(e,t,n,r,i,o,a,s,l){let c=0;for(let n=r;n<i;n++)c+=T(e,t[n]);let u=Math.ceil(1.5*c/8),h=[],d=[];return!function t(n,r,i,a,s){for(let c=i;c<a;){let i=c,f=r[c],p=T(e,n[c]);for(c++;c<a;c++){let t=T(e,n[c]);if(p+t>=u)break;p+=t}if(c==i+1){if(p>u){let e=n[i];t(e.children,e.positions,0,e.children.length,r[i]+s);continue}h.push(n[i])}else{let t=r[c-1]+n[c-1].length-f;h.push(D(e,n,r,i,c,f,t,null,l))}d.push(f+s-o)}}(t,n,r,i,0),(s||l)(h,d,a)}class R{constructor(e,t,n,r,i=!1,o=!1){this.from=e,this.to=t,this.tree=n,this.offset=r,this.open=!!i|2*!!o}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],n=!1){let r=[new R(0,e.length,e,0,!1,n)];for(let n of t)n.to>e.length&&r.push(n);return r}static applyChanges(e,t,n=128){if(!t.length)return e;let r=[],i=1,o=e.length?e[0]:null;for(let a=0,s=0,l=0;;a++){let c=a<t.length?t[a]:null,u=c?c.fromA:1e9;if(u-s>=n)for(;o&&o.from<u;){let t=o;if(s>=t.from||u<=t.to||l){let e=Math.max(t.from,s)-l,n=Math.min(t.to,u)-l;t=e>=n?null:new R(e,n,t.tree,t.offset+l,a>0,!!c)}if(t&&r.push(t),o.to>u)break;o=i<e.length?e[i++]:null}if(!c)break;s=c.toA,l=c.toA-c.toB}return r}}class j{startParse(e,t,n){return"string"==typeof e&&(e=new I(e)),n=n?n.length?n.map(e=>new a(e.from,e.to)):[new a(0,0)]:[new a(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let r=this.startParse(e,t,n);for(;;){let e=r.advance();if(e)return e}}}class I{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}new s({perNode:!0})},5644(e,t,n){"use strict";n.d(t,{DM:()=>d,_A:()=>P,az:()=>h,pn:()=>l});var r=n(52498);let i=0;class o{constructor(e,t,n,r){this.name=e,this.set=t,this.base=n,this.modified=r,this.id=i++}toString(){let{name:e}=this;for(let t of this.modified)t.name&&(e=`${t.name}(${e})`);return e}static define(e,t){if(e instanceof o&&(t=e),null==t?void 0:t.base)throw Error("Can not derive from a modified tag");let n=new o("string"==typeof e?e:"?",[],null,[]);if(n.set.push(n),t)for(let e of t.set)n.set.push(e);return n}static defineModifier(e){let t=new s(e);return e=>e.modified.indexOf(t)>-1?e:s.get(e.base||e,e.modified.concat(t).sort((e,t)=>
2e.id-t.id))}}let a=0;class s{constructor(e){this.name=e,this.instances=[],this.id=a++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find(n=>{var r,i;return n.base==e&&(r=t,i=n.modified,r.length==i.length&&r.every((e,t)=>e==i[t]))});if(n)return n;let r=[],i=new o(e.name,r,e,t);for(let e of t)e.instances.push(i);let a=function(e){let t=[[]];for(let n=0;n<e.length;n++)for(let r=0,i=t.length;r<i;r++)t.push(t[r].concat(e[n]));return t.sort((e,t)=>t.length-e.length)}(t);for(let t of e.set)if(!t.modified.length)for(let e of a)r.push(s.get(t,e));return i}}function l(e){let t=Object.create(null);for(let n in e){let r=e[n];for(let e of(Array.isArray(r)||(r=[r]),n.split(" ")))if(e){let n=[],i=2,o=e;for(let t=0;;){if("..."==o&&t>0&&t+3==e.length){i=1;break}let r=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(o);if(!r)throw RangeError("Invalid path: "+e);if(n.push("*"==r[0]?"":'"'==r[0][0]?JSON.parse(r[0]):r[0]),(t+=r[0].length)==e.length)break;let a=e[t++];if(t==e.length&&"!"==a){i=0;break}if("/"!=a)throw RangeError("Invalid path: "+e);o=e.slice(t)}let a=n.length-1,s=n[a];if(!s)throw RangeError("Invalid path: "+e);let l=new u(r,i,a>0?n.slice(0,a):null);t[s]=l.sort(t[s])}}return c.add(t)}let c=new r.uY({combine(e,t){let n,r,i;for(;e||t;){if(!e||t&&e.depth>=t.depth?(i=t,t=t.next):(i=e,e=e.next),n&&n.mode==i.mode&&!i.context&&!n.context)continue;let o=new u(i.tags,i.mode,i.context);n?n.next=o:r=o,n=o}return r}});class u{constructor(e,t,n,r){this.tags=e,this.mode=t,this.context=n,this.next=r}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}function h(e,t){let n=Object.create(null);for(let t of e)if(Array.isArray(t.tag))for(let e of t.tag)n[e.id]=t.class;else n[t.tag.id]=t.class;let{scope:r,all:i=null}=t||{};return{style:e=>{let t=i;for(let r of e)for(let e of r.set){let r=n[e.id];if(r){t=t?t+" "+r:r;break}}return t},scope:r}}function d(e,t,n,r=0,i=e.length){let o=new f(r,Array.isArray(t)?t:[t],n);o.highlightRange(e.cursor(),r,i,"",o.highlighters),o.flush(i)}u.empty=new u([],2,null);class f{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,i,o){let{type:a,from:s,to:l}=e;if(s>=n||l<=t)return;a.isTop&&(o=this.highlighters.filter(e=>!e.scope||e.scope(a)));let h=i,d=function(e){let t=e.type.prop(c);for(;t&&t.context&&!e.matchContext(t.context);
2)t=t.next;return t||null}(e)||u.empty,f=function(e,t){let n=null;for(let r of e){let e=r.style(t);e&&(n=n?n+" "+e:e)}return n}(o,d.tags);if(f&&(h&&(h+=" "),h+=f,1==d.mode&&(i+=(i?" ":"")+f)),this.startSpan(Math.max(t,s),h),d.opaque)return;let p=e.tree&&e.tree.prop(r.uY.mounted);if(p&&p.overlay){let r=e.node.enter(p.overlay[0].from+s,1),a=this.highlighters.filter(e=>!e.scope||e.scope(p.tree.type)),c=e.firstChild();for(let u=0,d=s;;u++){let f=u<p.overlay.length?p.overlay[u]:null,m=f?f.from+s:l,g=Math.max(t,d),v=Math.min(n,m);if(g<v&&c)for(;e.from<v&&(this.highlightRange(e,g,v,i,o),this.startSpan(Math.min(v,e.to),h),!(e.to>=m)&&e.nextSibling()););if(!f||m>n)break;(d=f.to+s)>t&&(this.highlightRange(r.cursor(),Math.max(t,f.from+s),Math.min(n,d),"",a),this.startSpan(Math.min(n,d),h))}c&&e.parent()}else if(e.firstChild()){p&&(i="");do{if(e.to<=t)continue;if(e.from>=n)break;this.highlightRange(e,t,n,i,o),this.startSpan(Math.min(n,e.to),h)}while(e.nextSibling());e.parent()}}}let p=o.define,m=p(),g=p(),v=p(g),y=p(g),b=p(),x=p(b),w=p(b),k=p(),S=p(k),M=p(),A=p(),E=p(),C=p(E),O=p(),P={comment:m,lineComment:p(m),blockComment:p(m),docComment:p(m),name:g,variableName:p(g),typeName:v,tagName:p(v),propertyName:y,attributeName:p(y),className:p(g),labelName:p(g),namespace:p(g),macroName:p(g),literal:b,string:x,docString:p(x),character:p(x),attributeValue:p(x),number:w,integer:p(w),float:p(w),bool:p(b),regexp:p(b),escape:p(b),color:p(b),url:p(b),keyword:M,self:p(M),null:p(M),atom:p(M),unit:p(M),modifier:p(M),operatorKeyword:p(M),controlKeyword:p(M),definitionKeyword:p(M),moduleKeyword:p(M),operator:A,derefOperator:p(A),arithmeticOperator:p(A),logicOperator:p(A),bitwiseOperator:p(A),compareOperator:p(A),updateOperator:p(A),definitionOperator:p(A),typeOperator:p(A),controlOperator:p(A),punctuation:E,separator:p(E),bracket:C,angleBracket:p(C),squareBracket:p(C),paren:p(C),brace:p(C),content:k,heading:S,heading1:p(S),heading2:p(S),heading3:p(S),heading4:p(S),heading5:p(S),heading6:p(S),contentSeparator:p(k),list:p(k),quote:p(k),emphasis:p(k),strong:p(k),link:p(k),monospace:p(k),strikethrough:p(k),inserted:p(),deleted:p(),changed:p(),invalid:p(),meta:O,documentMeta:p(O),annotation:p(O),processingInstruction:p(O),definition:o.defineModifier("definition"),constant:o.defineModifier("constant"),function:o.defineModifier("function"),standard:o.defineModifier("standard"),local:o.defineModifier("local"),special:o.defineModifier("special")};for(let e in P){let t=P[e];t instanceof o&&(t.name=e)}h([{tag:P.link,class:"tok-link"},{tag:P.heading,class:"tok-heading"},{tag:P.emphasis,class:"tok-emphasis"},{tag:P.strong,class:"tok-strong"},{tag:P.keyword,class:"tok-keyword"},{tag:P.atom,class:"tok-atom"},{tag:P.bool,class:"tok-bool"},{tag:P.url,class:"tok-url"},{tag:P.labelName,class:"tok-labelName"},{tag:P.inserted,class:"tok-inserted"},{tag:P.deleted,class:"tok-deleted"},{tag:P.literal,class:"tok-literal"},{tag:P.string,class:"tok-string"},{tag:P.number,class:"tok-number"},{tag:[P.regexp,P.escape,P.special(P.string)],class:"tok-string2"},{tag:P.variableName,class:"tok-variableName"},{tag:P.local(P.variableName),class:"tok-variableName tok-local"},{tag:P.definition(P.variableName),class:"tok-variableName tok-definition"},{tag:P.special(P.variableName),class:"tok-variableName2"},{tag:P.definition(P.propertyName),class:"tok-propertyName tok-definition"},{tag:P.typeName,class:"tok-typeName"},{tag:P.namespace,class:"tok-namespace"},{tag:P.className,class:"tok-className"},{tag:P.macroName,class:"tok-macroName"},{tag:P.propertyName,class:"tok-propertyName"},{tag:P.operator,class:"tok-operator"},{tag:P.comment,class:"tok-comment"},{tag:P.meta,class:"tok-meta"},{tag:P.invalid,class:"tok-invalid"},{tag:P.punctuation,class:"tok-punctuation"}])},94385(e,t,n){"use strict";function r(e,[t,n]){return Math.min(n,Math.max(t,e))}n.d(t,{q:()=>r})},53377(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,{mK:()=>r}),"u">typeof window&&window.document&&window.document.createElement},5976(e,t,n){"use strict";n.d(t,{Y9:()=>ei,bL:()=>en,UC:()=>ea,l9:()=>eo,q7:()=>er});var r=n(50405),i=n(17062),o=n(25400),a=n(88111),s=n(53377),l=n(91654),c=n(26999),u=n(46838),h=n(84055),d=n(47120
2),f=n(49793),p="Collapsible",[m,g]=(0,i.A)(p),[v,y]=m(p),b=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:i,defaultOpen:o,disabled:a,onOpenChange:s,...u}=e,[h,m]=(0,l.i)({prop:i,defaultProp:o??!1,onChange:s,caller:p});return(0,f.jsx)(v,{scope:n,disabled:a,contentId:(0,d.B)(),open:h,onOpenToggle:r.useCallback(()=>m(e=>!e),[m]),children:(0,f.jsx)(c.sG.div,{"data-state":A(h),"data-disabled":a?"":void 0,...u,ref:t})})});b.displayName=p;var x="CollapsibleTrigger",w=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,i=y(x,n);return(0,f.jsx)(c.sG.button,{type:"button","aria-controls":i.open?i.contentId:void 0,"aria-expanded":i.open||!1,"data-state":A(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...r,ref:t,onClick:(0,s.mK)(e.onClick,i.onOpenToggle)})});w.displayName=x;var k="CollapsibleContent",S=r.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=y(k,e.__scopeCollapsible);return(0,f.jsx)(h.C,{present:n||i.open,children:({present:e})=>(0,f.jsx)(M,{...r,ref:t,present:e})})});S.displayName=k;var M=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:i,children:o,...s}=e,l=y(k,n),[h,d]=r.useState(i),p=r.useRef(null),m=(0,a.s)(t,p),g=r.useRef(0),v=g.current,b=r.useRef(0),x=b.current,w=l.open||h,S=r.useRef(w),M=r.useRef(void 0);return r.useEffect(()=>{let e=requestAnimationFrame(()=>S.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,u.N)(()=>{let e=p.current;if(e){M.current=M.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();g.current=t.height,b.current=t.width,S.current||(e.style.transitionDuration=M.current.transitionDuration,e.style.animationName=M.current.animationName),d(i)}},[l.open,i]),(0,f.jsx)(c.sG.div,{"data-state":A(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!w,...s,ref:m,style:{"--radix-collapsible-content-height":v?`${v}px`:void 0,"--radix-collapsible-content-width":x?`${x}px`:void 0,...e.style},children:w&&o})});function A(e){return e?"open":"closed"}var E=n(80944),C="Accordion",O=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[P,T,D]=(0,o.N)(C),[R,j]=(0,i.A)(C,[D,g]),I=g(),z=r.forwardRef((e,t)=>{let{type:n,...r}=e;return(0,f.jsx)(P.Provider,{scope:e.__scopeAccordion,children:"multiple"===n?(0,f.jsx)(V,{...r,ref:t}):(0,f.jsx)(F,{...r,ref:t})})});z.displayName=C;var[_,L]=R(C),[N,B]=R(C,{collapsible:!1}),F=r.forwardRef((e,t)=>{let{value:n,defaultValue:i,onValueChange:o=()=>{},collapsible:a=!1,...s}=e,[c,u]=(0,l.i)({prop:n,defaultProp:i??"",onChange:o,caller:C});return(0,f.jsx)(_,{scope:e.__scopeAccordion,value:r.useMemo(()=>c?[c]:[],[c]),onItemOpen:u,onItemClose:r.useCallback(()=>a&&u(""),[a,u]),children:(0,f.jsx)(N,{scope:e.__scopeAccordion,collapsible:a,children:(0,f.jsx)($,{...s,ref:t})})})}),V=r.forwardRef((e,t)=>{let{value:n,defaultValue:i,onValueChange:o=()=>{},...a}=e,[s,c]=(0,l.i)({prop:n,defaultProp:i??[],onChange:o,caller:C}),u=r.useCallback(e=>c((t=[])=>[...t,e]),[c]),h=r.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return(0,f.jsx)(_,{scope:e.__scopeAccordion,value:s,onItemOpen:u,onItemClose:h,children:(0,f.jsx)(N,{scope:e.__scopeAccordion,collapsible:!0,children:(0,f.jsx)($,{...a,ref:t})})})}),[H,W]=R(C),$=r.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:i,dir:o,orientation:l="vertical",...u}=e,h=r.useRef(null),d=(0,a.s)(h,t),p=T(n),m="ltr"===(0,E.jH)(o),g=(0,s.mK)(e.onKeyDown,e=>{if(!O.includes(e.key))return;let t=e.target,n=p().filter(e=>!e.ref.current?.disabled),r=n.findIndex(e=>e.ref.current===t),i=n.length;if(-1===r)return;e.preventDefault();let o=r,a=i-1,s=()=>{(o=r+1)>a&&(o=0)},c=()=>{(o=r-1)<0&&(o=a)};switch(e.key){case"Home":o=0;break;case"End":o=a;break;case"ArrowRight":"horizontal"===l&&(m?s():c());break;case"ArrowDown":"vertical"===l&&s();break;case"ArrowLeft":"horizontal"===l&&(m?c():s());break;case"ArrowUp":"vertical"===l&&c()}let u=o%i;n[u].ref.current?.focus()});return(0,f.jsx)(H,{scope:n,disabled:i,direction:o,orientation:l,children:(0,f.jsx)(P.Slot,{scope:n,children:(0,f.jsx)(c.sG.div,{...u,"data-orientation":l,ref:d,onKeyDown:i?void 0:g})})})}),U="AccordionItem",[K,q]=R(U),G=r.forwardRef((e,t)=>
2{let{__scopeAccordion:n,value:r,...i}=e,o=W(U,n),a=L(U,n),s=I(n),l=(0,d.B)(),c=r&&a.value.includes(r)||!1,u=o.disabled||e.disabled;return(0,f.jsx)(K,{scope:n,open:c,disabled:u,triggerId:l,children:(0,f.jsx)(b,{"data-orientation":o.orientation,"data-state":et(c),...s,...i,ref:t,disabled:u,open:c,onOpenChange:e=>{e?a.onItemOpen(r):a.onItemClose(r)}})})});G.displayName=U;var Z="AccordionHeader",Y=r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=W(C,n),o=q(Z,n);return(0,f.jsx)(c.sG.h3,{"data-orientation":i.orientation,"data-state":et(o.open),"data-disabled":o.disabled?"":void 0,...r,ref:t})});Y.displayName=Z;var X="AccordionTrigger",J=r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=W(C,n),o=q(X,n),a=B(X,n),s=I(n);return(0,f.jsx)(P.ItemSlot,{scope:n,children:(0,f.jsx)(w,{"aria-disabled":o.open&&!a.collapsible||void 0,"data-orientation":i.orientation,id:o.triggerId,...s,...r,ref:t})})});J.displayName=X;var Q="AccordionContent",ee=r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=W(C,n),o=q(Q,n),a=I(n);return(0,f.jsx)(S,{role:"region","aria-labelledby":o.triggerId,"data-orientation":i.orientation,...a,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function et(e){return e?"open":"closed"}ee.displayName=Q;var en=z,er=G,ei=Y,eo=J,ea=ee},10251(e,t,n){"use strict";n.d(t,{P7:()=>S,bL:()=>w});var r=n(50405),i=n(88111),o=n(17062),a=n(53377),s=n(91654),l=n(70480),c=n(58024),u=n(84055),h=n(26999),d=n(49793),f="Checkbox",[p,m]=(0,o.A)(f),[g,v]=p(f);function y(e){let{__scopeCheckbox:t,checked:n,children:i,defaultChecked:o,disabled:a,form:l,name:c,onCheckedChange:u,required:h,value:p="on",internal_do_not_use_render:m}=e,[v,y]=(0,s.i)({prop:n,defaultProp:o??!1,onChange:u,caller:f}),[b,x]=r.useState(null),[w,k]=r.useState(null),S=r.useRef(!1),M=!b||!!l||!!b.closest("form"),A={checked:v,disabled:a,setChecked:y,control:b,setControl:x,name:c,form:l,value:p,hasConsumerStoppedPropagationRef:S,required:h,defaultChecked:!E(o)&&o,isFormControl:M,bubbleInput:w,setBubbleInput:k};return(0,d.jsx)(g,{scope:t,...A,children:"function"==typeof m?m(A):i})}var b="CheckboxTrigger",x=r.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...o},s)=>{let{control:l,value:c,disabled:u,checked:f,required:p,setControl:m,setChecked:g,hasConsumerStoppedPropagationRef:y,isFormControl:x,bubbleInput:w}=v(b,e),k=(0,i.s)(s,m),S=r.useRef(f);return r.useEffect(()=>{let e=l?.form;if(e){let t=()=>g(S.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[l,g]),(0,d.jsx)(h.sG.button,{type:"button",role:"checkbox","aria-checked":E(f)?"mixed":f,"aria-required":p,"data-state":C(f),"data-disabled":u?"":void 0,disabled:u,value:c,...o,ref:k,onKeyDown:(0,a.mK)(t,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,a.mK)(n,e=>{g(e=>!!E(e)||!e),w&&x&&(y.current=e.isPropagationStopped(),y.current||e.stopPropagation())})})});x.displayName=b;var w=r.forwardRef((e,t)=>{let{__scopeCheckbox:n,name:r,checked:i,defaultChecked:o,required:a,disabled:s,value:l,onCheckedChange:c,form:u,...h}=e;return(0,d.jsx)(y,{__scopeCheckbox:n,checked:i,defaultChecked:o,disabled:s,required:a,onCheckedChange:c,name:r,form:u,value:l,internal_do_not_use_render:({isFormControl:e})=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(x,{...h,ref:t,__scopeCheckbox:n}),e&&(0,d.jsx)(A,{__scopeCheckbox:n})]})})});w.displayName=f;var k="CheckboxIndicator",S=r.forwardRef((e,t)=>{let{__scopeCheckbox:n,forceMount:r,...i}=e,o=v(k,n);return(0,d.jsx)(u.C,{present:r||E(o.checked)||!0===o.checked,children:(0,d.jsx)(h.sG.span,{"data-state":C(o.checked),"data-disabled":o.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});S.displayName=k;var M="CheckboxBubbleInput",A=r.forwardRef(({__scopeCheckbox:e,...t},n)=>{let{control:o,hasConsumerStoppedPropagationRef:a,checked:s,defaultChecked:u,required:f,disabled:p,name:m,value:g,form:y,bubbleInput:b,setBubbleInput:x}=v(M,e),w=(0,i.s)(n,x),k=(0,l.Z)(s),S=(0,c.X)(o);r.useEffect(()=>{if(!b)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=!a.current;if(k!==s&&e){let n=new Event("click",{bubbles:t});b.indeterminate=E(s),e.call(b,!E(s)&&s),b.dispatchEvent(n)}},[b,k,s,a]);let A=r.useRef(!E(s)&&s);return(0,d.jsx)(h.sG.input,{type:"checkbox","aria-hidden":!0,defaultChecked:u??A.current,required:f,disabled:p,name:m,value:g,form:y,...t,tabIndex:-1,ref:w,style:{...t.style,...S,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function E(e){return"indeterminate"===e}function C(e){return E(e)?"indeterminate":e?"checked":"unchecked"}A.displayName=M},25400(e,t,n){"use strict";n.d(t,{N:()=>l});var r=n(50405),i=n(17062),o=n(88111),a=n(61108),s=n(49793);function l(e){let t=e+"CollectionProvider",[n,l]=(0,i.A)(t),[c,u]=n(t,{collectionRef:{current:null},itemMap:new Map}),h=e=>{let{scope:t,children:n}=e,i=r.useRef(null),o=r.useRef(new Map).current;return(0,s.jsx)(c,{scope:t,itemMap:o,collectionRef:i,children:n})};h.displayName=t;let d=e+"CollectionSlot",f=(0,a.TL)(d),p=r.forwardRef((e,t)=>
2{let{scope:n,children:r}=e,i=u(d,n),a=(0,o.s)(t,i.collectionRef);return(0,s.jsx)(f,{ref:a,children:r})});p.displayName=d;let m=e+"CollectionItemSlot",g="data-radix-collection-item",v=(0,a.TL)(m),y=r.forwardRef((e,t)=>{let{scope:n,children:i,...a}=e,l=r.useRef(null),c=(0,o.s)(t,l),h=u(m,n);return r.useEffect(()=>(h.itemMap.set(l,{ref:l,...a}),()=>void h.itemMap.delete(l))),(0,s.jsx)(v,{...{[g]:""},ref:c,children:i})});return y.displayName=m,[{Provider:h,Slot:p,ItemSlot:y},function(t){let n=u(e+"CollectionConsumer",t);return r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${g}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},l]}},88111(e,t,n){"use strict";n.d(t,{s:()=>a,t:()=>o});var r=n(50405);function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function o(...e){return t=>{let n=!1,r=e.map(e=>{let r=i(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():i(e[t],null)}}}}function a(...e){return r.useCallback(o(...e),e)}},17062(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(50405),i=n(49793);function o(e,t=[]){let n=[],a=()=>{let t=n.map(e=>r.createContext(e));return function(n){let i=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return a.scopeName=e,[function(t,o){let a=r.createContext(o);a.displayName=t+"Context";let s=n.length;n=[...n,o];let l=t=>{let{scope:n,children:o,...l}=t,c=n?.[e]?.[s]||a,u=r.useMemo(()=>l,Object.values(l));return(0,i.jsx)(c.Provider,{value:u,children:o})};return l.displayName=t+"Provider",[l,function(n,i){let l=i?.[e]?.[s]||a,c=r.useContext(l);if(c)return c;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(a,...t)]}},95045(e,t,n){"use strict";n.d(t,{UC:()=>_,VY:()=>W,ZL:()=>T,bL:()=>M,bm:()=>U,hE:()=>V,hJ:()=>R,l9:()=>E});var r=n(50405),i=n(53377),o=n(88111),a=n(17062),s=n(47120),l=n(91654),c=n(40016),u=n(11744),h=n(14017),d=n(84055),f=n(26999),p=n(64714),m=n(20094),g=n(47661),v=n(61108),y=n(49793),b="Dialog",[x,w]=(0,a.A)(b),[k,S]=x(b),M=e=>{let{__scopeDialog:t,children:n,open:i,defaultOpen:o,onOpenChange:a,modal:c=!0}=e,u=r.useRef(null),h=r.useRef(null),[d,f]=(0,l.i)({prop:i,defaultProp:o??!1,onChange:a,caller:b});return(0,y.jsx)(k,{scope:t,triggerRef:u,contentRef:h,contentId:(0,s.B)(),titleId:(0,s.B)(),descriptionId:(0,s.B)(),open:d,onOpenChange:f,onOpenToggle:r.useCallback(()=>f(e=>!e),[f]),modal:c,children:n})};M.displayName=b;var A="DialogTrigger",E=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,a=S(A,n),s=(0,o.s)(t,a.triggerRef);return(0,y.jsx)(f.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":K(a.open),...r,ref:s,onClick:(0,i.mK)(e.onClick,a.onOpenToggle)})});E.displayName=A;var C="DialogPortal",[O,P]=x(C,{forceMount:void 0}),T=e=>{let{__scopeDialog:t,forceMount:n,children:i,container:o}=e,a=S(C,t);return(0,y.jsx)(O,{scope:t,forceMount:n,children:r.Children.map(i,e=>(0,y.jsx)(d.C,{present:n||a.open,children:(0,y.jsx)(h.Z,{asChild:!0,container:o,children:e})}))})};T.displayName=C;var D="DialogOverlay",R=r.forwardRef((e,t)=>{let n=P(D,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=S(D,e.__scopeDialog);return o.modal?(0,y.jsx)(d.C,{present:r||o.open,children:(0,y.jsx)(I,{...i,ref:t})}):null});R.displayName=D;var j=(0,v.TL)("DialogOverlay.RemoveScroll"),I=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=S(D,n),a=(0,c.e0)(),s=(0,o.s)(t,a);return(0,y.jsx)(m.A,{as:j,allowPinchZoom:!0,shards:[i.contentRef],children:(0,y.jsx)(f.sG.div,{"data-state":K(i.open),...r,ref:s,style:{pointerEvents:"auto",...r.style}})})}),z="DialogContent",_=r.forwardRef((e,t)=>
2{let n=P(z,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=S(z,e.__scopeDialog);return(0,y.jsx)(d.C,{present:r||o.open,children:o.modal?(0,y.jsx)(L,{...i,ref:t}):(0,y.jsx)(N,{...i,ref:t})})});_.displayName=z;var L=r.forwardRef((e,t)=>{let n=S(z,e.__scopeDialog),a=r.useRef(null),s=(0,o.s)(t,n.contentRef,a);return r.useEffect(()=>{let e=a.current;if(e)return(0,g.Eq)(e)},[]),(0,y.jsx)(B,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:(0,i.mK)(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:(0,i.mK)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,i.mK)(e.onFocusOutside,e=>e.preventDefault())})}),N=r.forwardRef((e,t)=>{let n=S(z,e.__scopeDialog),i=r.useRef(!1),o=r.useRef(!1);return(0,y.jsx)(B,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(i.current||n.triggerRef.current?.focus(),t.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let r=t.target;n.triggerRef.current?.contains(r)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),B=r.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...a}=e,s=S(z,n);return(0,p.Oh)(),(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(u.n,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:(0,y.jsx)(c.qW,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":K(s.open),...a,ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)})})})}),F="DialogTitle",V=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=S(F,n);return(0,y.jsx)(f.sG.h2,{id:i.titleId,...r,ref:t})});V.displayName=F;var H="DialogDescription",W=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=S(H,n);return(0,y.jsx)(f.sG.p,{id:i.descriptionId,...r,ref:t})});W.displayName=H;var $="DialogClose",U=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=S($,n);return(0,y.jsx)(f.sG.button,{type:"button",...r,ref:t,onClick:(0,i.mK)(e.onClick,()=>o.onOpenChange(!1))})});function K(e){return e?"open":"closed"}U.displayName=$},80944(e,t,n){"use strict";n.d(t,{jH:()=>o});var r=n(50405);n(49793);var i=r.createContext(void 0);function o(e){let t=r.useContext(i);return e||t||"ltr"}},40016(e,t,n){"use strict";n.d(t,{qW:()=>d,e0:()=>f});var r,i=n(50405),o=n(53377),a=n(26999),s=n(88111),l=n(13616),c=n(49793),u="dismissableLayer.update",h=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),d=i.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:d=!1,onEscapeKeyDown:f,onPointerDownOutside:g,onFocusOutside:v,onInteractOutside:y,onDismiss:b,...x}=e,w=i.useContext(h),[k,S]=i.useState(null),M=k?.ownerDocument??globalThis?.document,[,A]=i.useState({}),E=(0,s.s)(t,e=>S(e)),C=Array.from(w.layers),[O]=[...w.layersWithOutsidePointerEventsDisabled].slice(-1),P=C.indexOf(O),T=k?C.indexOf(k):-1,D=w.layersWithOutsidePointerEventsDisabled.size>0,R=T>=P,j=i.useRef(!1),I=function(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:a}=t,s=(0,l.c)(e),c=i.useRef(!1),u=i.useRef(!1),h=i.useRef(new Map),d=i.useRef(()=>{});return i.useEffect(()=>{function e(){u.current=!1,o.current=!1,h.current.clear()}function t(e){if(!u.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||h.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{u.current&&d.current()},0)}function i(e){u.current&&h.current.set(e.type,!1)}let l=t=>{if(t.target&&!c.current){let i=function(){n.removeEventListener("click",d.current);let t=Array.from(h.current.values()).some(Boolean);e(),t||m("dismissableLayer.pointerDownOutside",s,a,{discrete:!0})},a={originalEvent:t};u.current=!0,o.current=r&&0===t.button,h.current.clear(),r&&0===t.button?(n.removeEventListener("click",d.current),d.current=i,n.addEventListener("click",d.current,{once:!0})):i()}
2else n.removeEventListener("click",d.current),e();c.current=!1},f=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let e of f)n.addEventListener(e,t,!0),n.addEventListener(e,i);let p=window.setTimeout(()=>{n.addEventListener("pointerdown",l)},0);return()=>{for(let e of(window.clearTimeout(p),n.removeEventListener("pointerdown",l),n.removeEventListener("click",d.current),f))n.removeEventListener(e,t,!0),n.removeEventListener(e,i)}},[n,s,r,o,a]),{onPointerDownCapture:()=>c.current=!0}}(e=>{let t=e.target;if(!(t instanceof Node))return;let n=[...w.branches].some(e=>e.contains(t));R&&!n&&(g?.(e),y?.(e),e.defaultPrevented||b?.())},{ownerDocument:M,deferPointerDownOutside:d,isDeferredPointerDownOutsideRef:j,dismissableSurfaces:w.dismissableSurfaces}),z=function(e,t=globalThis?.document){let n=(0,l.c)(e),r=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!r.current&&m("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{if(d&&j.current)return;let t=e.target;![...w.branches].some(e=>e.contains(t))&&(v?.(e),y?.(e),e.defaultPrevented||b?.())},M);return!function(e,t=globalThis?.document){let n=(0,l.c)(e);i.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{T===w.layers.size-1&&(f?.(e),!e.defaultPrevented&&b&&(e.preventDefault(),b()))},M),i.useEffect(()=>{if(k)return n&&(0===w.layersWithOutsidePointerEventsDisabled.size&&(r=M.body.style.pointerEvents,M.body.style.pointerEvents="none"),w.layersWithOutsidePointerEventsDisabled.add(k)),w.layers.add(k),p(),()=>{n&&(w.layersWithOutsidePointerEventsDisabled.delete(k),0===w.layersWithOutsidePointerEventsDisabled.size&&(M.body.style.pointerEvents=r))}},[k,M,n,w]),i.useEffect(()=>()=>{k&&(w.layers.delete(k),w.layersWithOutsidePointerEventsDisabled.delete(k),p())},[k,w]),i.useEffect(()=>{let e=()=>A({});return document.addEventListener(u,e),()=>document.removeEventListener(u,e)},[]),(0,c.jsx)(a.sG.div,{...x,ref:E,style:{pointerEvents:D?R?"auto":"none":void 0,...e.style},onFocusCapture:(0,o.mK)(e.onFocusCapture,z.onFocusCapture),onBlurCapture:(0,o.mK)(e.onBlurCapture,z.onBlurCapture),onPointerDownCapture:(0,o.mK)(e.onPointerDownCapture,I.onPointerDownCapture)})});function f(){let e=i.useContext(h),[t,n]=i.useState(null);return i.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}function p(){let e=new CustomEvent(u);document.dispatchEvent(e)}function m(e,t,n,{discrete:r}){let i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?(0,a.hO)(i,o):i.dispatchEvent(o)}d.displayName="DismissableLayer",i.forwardRef((e,t)=>{let n=i.useContext(h),r=i.useRef(null),o=(0,s.s)(t,r);return i.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,c.jsx)(a.sG.div,{...e,ref:o})}).displayName="DismissableLayerBranch"},51400(e,t,n){"use strict";n.d(t,{JU:()=>e1,Pb:()=>e5,wv:()=>e4,UC:()=>eQ,G5:()=>e6,ZL:()=>eJ,q7:()=>e2,YJ:()=>e0,bL:()=>eY,ZP:()=>e3,l9:()=>eX});var r=n(50405),i=n(53377),o=n(88111),a=n(17062),s=n(91654),l=n(26999),c=n(25400),u=n(80944),h=n(40016),d=n(64714),f=n(11744),p=n(47120),m=n(14207),g=n(14017),v=n(84055),y=n(53308),b=n(61108),x=n(13616),w=n(47661),k=n(20094),S=n(49793),M=["Enter"," "],A=["ArrowUp","PageDown","End"],E=["ArrowDown","PageUp","Home",...A],C={ltr:[...M,"ArrowRight"],rtl:[...M,"ArrowLeft"]},O={ltr:["ArrowLeft"],rtl:["ArrowRight"]},P="Menu",[T,D,R]=(0,c.N)(P),[j,I]=(0,a.A)(P,[R,m.Bk,y.RG]),z=(0,m.Bk)(),_=(0,y.RG)(),[L,N]=j(P),[B,F]=j(P),V=e=>{let{__scopeMenu:t,open:n=!1,children:i,dir:o,onOpenChange:a,modal:s=!0}=e,l=z(t),[c,h]=r.useState(null),d=r.useRef(!1),f=(0,x.c)(a),p=(0,u.jH)(o);return r.useEffect(()=>{let e=()=>{d.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>d.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),r.useEffect(()=>{if(!n)return;let e=()=>f(!1);return window.addEventListener("blur",e),()=>window.removeEventListener("blur",e)},[n,f]),(0,S.jsx)(m.bL,{...l,children:(0,S.jsx)(L,{scope:t,open:n,onOpenChange:f,content:c,onContentChange:h,children:(0,S.jsx)(B,{scope:t,onClose:r.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:p,modal:s,children:i})})})};V.displayName=P;var H=r.forwardRef((e,t)=>
2{let{__scopeMenu:n,...r}=e,i=z(n);return(0,S.jsx)(m.Mz,{...i,...r,ref:t})});H.displayName="MenuAnchor";var W="MenuPortal",[$,U]=j(W,{forceMount:void 0}),K=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,o=N(W,t);return(0,S.jsx)($,{scope:t,forceMount:n,children:(0,S.jsx)(v.C,{present:n||o.open,children:(0,S.jsx)(g.Z,{asChild:!0,container:i,children:r})})})};K.displayName=W;var q="MenuContent",[G,Z]=j(q),Y=r.forwardRef((e,t)=>{let n=U(q,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=N(q,e.__scopeMenu),a=F(q,e.__scopeMenu);return(0,S.jsx)(T.Provider,{scope:e.__scopeMenu,children:(0,S.jsx)(v.C,{present:r||o.open,children:(0,S.jsx)(T.Slot,{scope:e.__scopeMenu,children:a.modal?(0,S.jsx)(X,{...i,ref:t}):(0,S.jsx)(J,{...i,ref:t})})})})}),X=r.forwardRef((e,t)=>{let n=N(q,e.__scopeMenu),a=r.useRef(null),s=(0,o.s)(t,a);return r.useEffect(()=>{let e=a.current;if(e)return(0,w.Eq)(e)},[]),(0,S.jsx)(ee,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,i.mK)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),J=r.forwardRef((e,t)=>{let n=N(q,e.__scopeMenu);return(0,S.jsx)(ee,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Q=(0,b.TL)("MenuContent.ScrollLock"),ee=r.forwardRef((e,t)=>{let{__scopeMenu:n,loop:a=!1,trapFocus:s,onOpenAutoFocus:l,onCloseAutoFocus:c,disableOutsidePointerEvents:u,onEntryFocus:p,onEscapeKeyDown:g,onPointerDownOutside:v,onFocusOutside:b,onInteractOutside:x,onDismiss:w,disableOutsideScroll:M,...C}=e,O=N(q,n),P=F(q,n),T=z(n),R=_(n),j=D(n),[I,L]=r.useState(null),B=r.useRef(null),V=(0,o.s)(t,B,O.onContentChange),H=r.useRef(0),W=r.useRef(""),$=r.useRef(0),U=r.useRef(null),K=r.useRef("right"),Z=r.useRef(0),Y=M?k.A:r.Fragment;r.useEffect(()=>()=>window.clearTimeout(H.current),[]),(0,d.Oh)();let X=r.useCallback(e=>{var t,n;return K.current===U.current?.side&&(t=e,!!(n=U.current?.area)&&function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){let a=t[e],s=t[o],l=a.x,c=a.y,u=s.x,h=s.y;c>r!=h>r&&n<(u-l)*(r-c)/(h-c)+l&&(i=!i)}return i}({x:t.clientX,y:t.clientY},n))},[]);return(0,S.jsx)(G,{scope:n,searchRef:W,onItemEnter:r.useCallback(e=>{X(e)&&e.preventDefault()},[X]),onItemLeave:r.useCallback(e=>{X(e)||(B.current?.focus(),L(null))},[X]),onTriggerLeave:r.useCallback(e=>{X(e)&&e.preventDefault()},[X]),pointerGraceTimerRef:$,onPointerGraceIntentChange:r.useCallback(e=>{U.current=e},[]),children:(0,S.jsx)(Y,{...M?{as:Q,allowPinchZoom:!0}:void 0,children:(0,S.jsx)(f.n,{asChild:!0,trapped:s,onMountAutoFocus:(0,i.mK)(l,e=>{e.preventDefault(),B.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:(0,S.jsx)(h.qW,{asChild:!0,disableOutsidePointerEvents:u,onEscapeKeyDown:g,onPointerDownOutside:v,onFocusOutside:b,onInteractOutside:x,onDismiss:w,children:(0,S.jsx)(y.bL,{asChild:!0,...R,dir:P.dir,orientation:"vertical",loop:a,currentTabStopId:I,onCurrentTabStopIdChange:L,onEntryFocus:(0,i.mK)(p,e=>{P.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,S.jsx)(m.UC,{role:"menu","aria-orientation":"vertical","data-state":eO(O.open),"data-radix-menu-content":"",dir:P.dir,...T,...C,ref:V,style:{outline:"none",...C.style},onKeyDown:(0,i.mK)(C.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;if(t){var i;let t,o,a,s,l,c;"Tab"===e.key&&e.preventDefault(),!n&&r&&(i=e.key,t=W.current+i,o=j().filter(e=>!e.disabled),a=document.activeElement,s=o.find(e=>e.ref.current===a)?.textValue,l=function(e,t,n){var r;let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=n?e.indexOf(n):-1,a=(r=Math.max(o,0),e.map((t,n)=>e[(r+n)%e.length]));1===i.length&&(a=a.filter(e=>e!==n));let s=a.find(e=>e.toLowerCase().startsWith(i.toLowerCase()));return s!==n?s:void 0}(o.map(e=>e.textValue),t,s),c=o.find(e=>e.textValue===l)?.ref.current,function e(t){W.current=t,window.clearTimeout(H.current),""!==t&&(H.current=window.setTimeout(()=>e(""),1e3))}(t),c&&setTimeout(()=>c.focus()))}let o=B.current;
2if(e.target!==o||!E.includes(e.key))return;e.preventDefault();let a=j().filter(e=>!e.disabled).map(e=>e.ref.current);A.includes(e.key)&&a.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(a)}),onBlur:(0,i.mK)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(H.current),W.current="")}),onPointerMove:(0,i.mK)(e.onPointerMove,eD(e=>{let t=e.target,n=Z.current!==e.clientX;e.currentTarget.contains(t)&&n&&(K.current=e.clientX>Z.current?"right":"left",Z.current=e.clientX)}))})})})})})})});Y.displayName=q;var et=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,S.jsx)(l.sG.div,{role:"group",...r,ref:t})});et.displayName="MenuGroup";var en=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,S.jsx)(l.sG.div,{...r,ref:t})});en.displayName="MenuLabel";var er="MenuItem",ei="menu.itemSelect",eo=r.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:a,...s}=e,c=r.useRef(null),u=F(er,e.__scopeMenu),h=Z(er,e.__scopeMenu),d=(0,o.s)(t,c),f=r.useRef(!1);return(0,S.jsx)(ea,{...s,ref:d,disabled:n,onClick:(0,i.mK)(e.onClick,()=>{let e=c.current;if(!n&&e){let t=new CustomEvent(ei,{bubbles:!0,cancelable:!0});e.addEventListener(ei,e=>a?.(e),{once:!0}),(0,l.hO)(e,t),t.defaultPrevented?f.current=!1:u.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),f.current=!0},onPointerUp:(0,i.mK)(e.onPointerUp,e=>{f.current||e.currentTarget?.click()}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{let t=""!==h.searchRef.current;n||t&&" "===e.key||M.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});eo.displayName=er;var ea=r.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:a=!1,textValue:s,...c}=e,u=Z(er,n),h=_(n),d=r.useRef(null),f=(0,o.s)(t,d),[p,m]=r.useState(!1),[g,v]=r.useState("");return r.useEffect(()=>{let e=d.current;e&&v((e.textContent??"").trim())},[c.children]),(0,S.jsx)(T.ItemSlot,{scope:n,disabled:a,textValue:s??g,children:(0,S.jsx)(y.q7,{asChild:!0,...h,focusable:!a,children:(0,S.jsx)(l.sG.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...c,ref:f,onPointerMove:(0,i.mK)(e.onPointerMove,eD(e=>{a?u.onItemLeave(e):(u.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,i.mK)(e.onPointerLeave,eD(e=>u.onItemLeave(e))),onFocus:(0,i.mK)(e.onFocus,()=>m(!0)),onBlur:(0,i.mK)(e.onBlur,()=>m(!1))})})})}),es=r.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...o}=e;return(0,S.jsx)(em,{scope:e.__scopeMenu,checked:n,children:(0,S.jsx)(eo,{role:"menuitemcheckbox","aria-checked":eP(n)?"mixed":n,...o,ref:t,"data-state":eT(n),onSelect:(0,i.mK)(o.onSelect,()=>r?.(!!eP(n)||!n),{checkForDefaultPrevented:!1})})})});es.displayName="MenuCheckboxItem";var el="MenuRadioGroup",[ec,eu]=j(el,{value:void 0,onValueChange:()=>{}}),eh=r.forwardRef((e,t)=>{let{value:n,onValueChange:r,...i}=e,o=(0,x.c)(r);return(0,S.jsx)(ec,{scope:e.__scopeMenu,value:n,onValueChange:o,children:(0,S.jsx)(et,{...i,ref:t})})});eh.displayName=el;var ed="MenuRadioItem",ef=r.forwardRef((e,t)=>{let{value:n,...r}=e,o=eu(ed,e.__scopeMenu),a=n===o.value;return(0,S.jsx)(em,{scope:e.__scopeMenu,checked:a,children:(0,S.jsx)(eo,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":eT(a),onSelect:(0,i.mK)(r.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});ef.displayName=ed;var ep="MenuItemIndicator",[em,eg]=j(ep,{checked:!1}),ev=r.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,o=eg(ep,n);return(0,S.jsx)(v.C,{present:r||eP(o.checked)||!0===o.checked,children:(0,S.jsx)(l.sG.span,{...i,ref:t,"data-state":eT(o.checked)})})});ev.displayName=ep;var ey=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,S.jsx)(l.sG.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});ey.displayName="MenuSeparator";var eb=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=z(n);return(0,S.jsx)(m.i3,{...i,...r,ref:t})});eb.displayName="MenuArrow";var ex="MenuSub",[ew,ek]=j(ex),eS=e=>{let{__scopeMenu:t,children:n,open:i=!1,onOpenChange:o}=e,a=N(ex,t),s=z(t),[l,c]=r.useState(null),[u,h]=r.useState(null),d=(0,x.c)(o);return r.useEffect(()=>(!1===a.open&&d(!1),()=>d(!1)),[a.open,d]),(0,S.jsx)(m.bL,{...s,children:(0,S.jsx)(L,{scope:t,open:i,onOpenChange:d,content:u,onContentChange:h,children:(0,S.jsx)(ew,{scope:t,contentId:(0,p.B)(),triggerId:(0,p.B)(),trigger:l,onTriggerChange:c,children:n})})})};eS.displayName=ex;var eM="MenuSubTrigger",eA=r.forwardRef((e,t)=>
2{let n=N(eM,e.__scopeMenu),a=F(eM,e.__scopeMenu),s=ek(eM,e.__scopeMenu),l=Z(eM,e.__scopeMenu),c=r.useRef(null),{pointerGraceTimerRef:u,onPointerGraceIntentChange:h}=l,d={__scopeMenu:e.__scopeMenu},f=r.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return r.useEffect(()=>f,[f]),r.useEffect(()=>{let e=u.current;return()=>{window.clearTimeout(e),h(null)}},[u,h]),(0,S.jsx)(H,{asChild:!0,...d,children:(0,S.jsx)(ea,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":n.open?s.contentId:void 0,"data-state":eO(n.open),...e,ref:(0,o.t)(t,s.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,i.mK)(e.onPointerMove,eD(t=>{l.onItemEnter(t),!t.defaultPrevented&&(e.disabled||n.open||c.current||(l.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100)))})),onPointerLeave:(0,i.mK)(e.onPointerLeave,eD(e=>{f();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,i="right"===r,o=t[i?"left":"right"],a=t[i?"right":"left"];l.onPointerGraceIntentChange({area:[{x:e.clientX+(i?-5:5),y:e.clientY},{x:o,y:t.top},{x:a,y:t.top},{x:a,y:t.bottom},{x:o,y:t.bottom}],side:r}),window.clearTimeout(u.current),u.current=window.setTimeout(()=>l.onPointerGraceIntentChange(null),300)}else{if(l.onTriggerLeave(e),e.defaultPrevented)return;l.onPointerGraceIntentChange(null)}})),onKeyDown:(0,i.mK)(e.onKeyDown,t=>{let r=""!==l.searchRef.current;e.disabled||r&&" "===t.key||C[a.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});eA.displayName=eM;var eE="MenuSubContent",eC=r.forwardRef((e,t)=>{let n=U(q,e.__scopeMenu),{forceMount:a=n.forceMount,align:s="start",...l}=e,c=N(q,e.__scopeMenu),u=F(q,e.__scopeMenu),h=ek(eE,e.__scopeMenu),d=r.useRef(null),f=(0,o.s)(t,d);return(0,S.jsx)(T.Provider,{scope:e.__scopeMenu,children:(0,S.jsx)(v.C,{present:a||c.open,children:(0,S.jsx)(T.Slot,{scope:e.__scopeMenu,children:(0,S.jsx)(ee,{id:h.contentId,"aria-labelledby":h.triggerId,...l,ref:f,align:s,side:"rtl"===u.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{u.isUsingKeyboardRef.current&&d.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,i.mK)(e.onFocusOutside,e=>{e.target!==h.trigger&&c.onOpenChange(!1)}),onEscapeKeyDown:(0,i.mK)(e.onEscapeKeyDown,e=>{u.onClose(),e.preventDefault()}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=O[u.dir].includes(e.key);t&&n&&(c.onOpenChange(!1),h.trigger?.focus(),e.preventDefault())})})})})})});function eO(e){return e?"open":"closed"}function eP(e){return"indeterminate"===e}function eT(e){return eP(e)?"indeterminate":e?"checked":"unchecked"}function eD(e){return t=>"mouse"===t.pointerType?e(t):void 0}eC.displayName=eE;var eR="DropdownMenu",[ej,eI]=(0,a.A)(eR,[I]),ez=I(),[e_,eL]=ej(eR),eN=e=>{let{__scopeDropdownMenu:t,children:n,dir:i,open:o,defaultOpen:a,onOpenChange:l,modal:c=!0}=e,u=ez(t),h=r.useRef(null),[d,f]=(0,s.i)({prop:o,defaultProp:a??!1,onChange:l,caller:eR});return(0,S.jsx)(e_,{scope:t,triggerId:(0,p.B)(),triggerRef:h,contentId:(0,p.B)(),open:d,onOpenChange:f,onOpenToggle:r.useCallback(()=>f(e=>!e),[f]),modal:c,children:(0,S.jsx)(V,{...u,open:d,onOpenChange:f,dir:i,modal:c,children:n})})};eN.displayName=eR;var eB="DropdownMenuTrigger",eF=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...a}=e,s=eL(eB,n),c=ez(n);return(0,S.jsx)(H,{asChild:!0,...c,children:(0,S.jsx)(l.sG.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...a,ref:(0,o.t)(t,s.triggerRef),onPointerDown:(0,i.mK)(e.onPointerDown,e=>{!r&&0===e.button&&!1===e.ctrlKey&&(s.onOpenToggle(),s.open||e.preventDefault())}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&s.onOpenToggle(),"ArrowDown"===e.key&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.ke
2y)&&e.preventDefault())})})})});eF.displayName=eB;var eV=e=>{let{__scopeDropdownMenu:t,...n}=e,r=ez(t);return(0,S.jsx)(K,{...r,...n})};eV.displayName="DropdownMenuPortal";var eH="DropdownMenuContent",eW=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...o}=e,a=eL(eH,n),s=ez(n),l=r.useRef(!1);return(0,S.jsx)(Y,{id:a.contentId,"aria-labelledby":a.triggerId,...s,...o,ref:t,onCloseAutoFocus:(0,i.mK)(e.onCloseAutoFocus,e=>{l.current||a.triggerRef.current?.focus(),l.current=!1,e.preventDefault()}),onInteractOutside:(0,i.mK)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!a.modal||r)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});eW.displayName=eH;var e$=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=ez(n);return(0,S.jsx)(et,{...i,...r,ref:t})});e$.displayName="DropdownMenuGroup";var eU=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=ez(n);return(0,S.jsx)(en,{...i,...r,ref:t})});eU.displayName="DropdownMenuLabel";var eK=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=ez(n);return(0,S.jsx)(eo,{...i,...r,ref:t})});eK.displayName="DropdownMenuItem",r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=ez(n);return(0,S.jsx)(es,{...i,...r,ref:t})}).displayName="DropdownMenuCheckboxItem",r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=ez(n);return(0,S.jsx)(eh,{...i,...r,ref:t})}).displayName="DropdownMenuRadioGroup",r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=ez(n);return(0,S.jsx)(ef,{...i,...r,ref:t})}).displayName="DropdownMenuRadioItem",r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=ez(n);return(0,S.jsx)(ev,{...i,...r,ref:t})}).displayName="DropdownMenuItemIndicator";var eq=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=ez(n);return(0,S.jsx)(ey,{...i,...r,ref:t})});eq.displayName="DropdownMenuSeparator",r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=ez(n);return(0,S.jsx)(eb,{...i,...r,ref:t})}).displayName="DropdownMenuArrow";var eG=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=ez(n);return(0,S.jsx)(eA,{...i,...r,ref:t})});eG.displayName="DropdownMenuSubTrigger";var eZ=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=ez(n);return(0,S.jsx)(eC,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});eZ.displayName="DropdownMenuSubContent";var eY=eN,eX=eF,eJ=eV,eQ=eW,e0=e$,e1=eU,e2=eK,e4=eq,e5=e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:i,defaultOpen:o}=e,a=ez(t),[l,c]=(0,s.i)({prop:r,defaultProp:o??!1,onChange:i,caller:"DropdownMenuSub"});return(0,S.jsx)(eS,{...a,open:l,onOpenChange:c,children:n})},e3=eG,e6=eZ},64714(e,t,n){"use strict";n.d(t,{Oh:()=>a});var r=n(50405),i=0,o=null;function a(){r.useEffect(()=>{o||(o={start:s(),end:s()});let{start:e,end:t}=o;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),i++,()=>{1===i&&(o?.start.remove(),o?.end.remove(),o=null),i=Math.max(0,i-1)}},[])}function s(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}},11744(e,t,n){"use strict";let r;n.d(t,{n:()=>d});var i=n(50405),o=n(88111),a=n(26999),s=n(13616),l=n(49793),c="focusScope.autoFocusOnMount",u="focusScope.autoFocusOnUnmount",h={bubbles:!1,cancelable:!0},d=i.forwardRef((e,t)=>
2{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:d,onUnmountAutoFocus:v,...y}=e,[b,x]=i.useState(null),w=(0,s.c)(d),k=(0,s.c)(v),S=i.useRef(null),M=(0,o.s)(t,e=>x(e)),A=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let e=function(e){if(A.paused||!b)return;let t=e.target;b.contains(t)?S.current=t:m(S.current,{select:!0})},t=function(e){if(A.paused||!b)return;let t=e.relatedTarget;null!==t&&(b.contains(t)||m(S.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&m(b)});return b&&n.observe(b,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,b,A.paused]),i.useEffect(()=>{if(b){g.add(A);let e=document.activeElement;if(!b.contains(e)){let t=new CustomEvent(c,h);b.addEventListener(c,w),b.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(m(r,{select:t}),document.activeElement!==n)return}(f(b).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&m(b))}return()=>{b.removeEventListener(c,w),setTimeout(()=>{let t=new CustomEvent(u,h);b.addEventListener(u,k),b.dispatchEvent(t),t.defaultPrevented||m(e??document.body,{select:!0}),b.removeEventListener(u,k),g.remove(A)},0)}}},[b,w,k,A]);let E=i.useCallback(e=>{if(!n&&!r||A.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){var o;let t,r=e.currentTarget,[a,s]=[p(t=f(o=r),o),p(t.reverse(),o)];a&&s?e.shiftKey||i!==s?e.shiftKey&&i===a&&(e.preventDefault(),n&&m(s,{select:!0})):(e.preventDefault(),n&&m(a,{select:!0})):i===r&&e.preventDefault()}},[n,r,A.paused]);return(0,l.jsx)(a.sG.div,{tabIndex:-1,...y,ref:M,onKeyDown:E})});function f(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function p(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function m(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}d.displayName="FocusScope";var g=(r=[],{add(e){let t=r[0];e!==t&&t?.pause(),(r=v(r,e)).unshift(e)},remove(e){r=v(r,e),r[0]?.resume()}});function v(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},32248(e,t,n){"use strict";n.d(t,{UC:()=>z,ZL:()=>I,bL:()=>R,l9:()=>j});var r,i=n(50405),o=n(53377),a=n(17062),s=n(91654),l=n(88111),c=n(14207),u=n(14017),h=n(84055),d=n(26999),f=n(40016),p=n(49793),m="HoverCard",[g,v]=(0,a.A)(m,[c.Bk]),y=(0,c.Bk)(),[b,x]=g(m),w=e=>{let{__scopeHoverCard:t,children:n,open:r,defaultOpen:o,onOpenChange:a,openDelay:l=700,closeDelay:u=300}=e,h=y(t),d=i.useRef(0),f=i.useRef(0),g=i.useRef(!1),v=i.useRef(!1),[x,w]=(0,s.i)({prop:r,defaultProp:o??!1,onChange:a,caller:m}),k=i.useCallback(()=>{clearTimeout(f.current),d.current=window.setTimeout(()=>w(!0),l)},[l,w]),S=i.useCallback(()=>{clearTimeout(d.current),g.current||v.current||(f.current=window.setTimeout(()=>w(!1),u))},[u,w]),M=i.useCallback(()=>w(!1),[w]);return i.useEffect(()=>()=>{clearTimeout(d.current),clearTimeout(f.current)},[]),(0,p.jsx)(b,{scope:t,open:x,onOpenChange:w,onOpen:k,onClose:S,onDismiss:M,hasSelectionRef:g,isPointerDownOnContentRef:v,children:(0,p.jsx)(c.bL,{...h,children:n})})};w.displayName=m;var k="HoverCardTrigger",S=i.forwardRef((e,t)=>{let{__scopeHoverCard:n,...r}=e,i=x(k,n),a=y(n);return(0,p.jsx)(c.Mz,{asChild:!0,...a,children:(0,p.jsx)(d.sG.a,{"data-state":i.open?"open":"closed",...r,ref:t,onPointerEnter:(0,o.mK)(e.onPointerEnter,D(i.onOpen)),onPointerLeave:(0,o.mK)(e.onPointerLeave,D(i.onClose)),onFocus:(0,o.mK)(e.onFocus,i.onOpen),onBlur:(0,o.mK)(e.onBlur,i.onClose),onTouchStart:(0,o.mK)(e.onTouchStart,e=>e.preventDefault())})})});S.displayName=k;var M="HoverCardPortal",[A,E]=g(M,{forceMount:void 0}),C=e=>{let{__scopeHoverCard:t,forceMount:n,children:r,container:i}=e,o=x(M,t);return(0,p.jsx)(A,{scope:t,forceMount:n,children:(0,p.jsx)(h.C,{present:n||o.open,children:(0,p.jsx)(u.Z,{asChild:!0,container:i,children:r})})})};C.displayName=M;var O="HoverCardContent",P=i.forwardRef((e,t)=>
2{let n=E(O,e.__scopeHoverCard),{forceMount:r=n.forceMount,...i}=e,a=x(O,e.__scopeHoverCard);return(0,p.jsx)(h.C,{present:r||a.open,children:(0,p.jsx)(T,{"data-state":a.open?"open":"closed",...i,onPointerEnter:(0,o.mK)(e.onPointerEnter,D(a.onOpen)),onPointerLeave:(0,o.mK)(e.onPointerLeave,D(a.onClose)),ref:t})})});P.displayName=O;var T=i.forwardRef((e,t)=>{let{__scopeHoverCard:n,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:u,onInteractOutside:h,...d}=e,m=x(O,n),g=y(n),v=i.useRef(null),b=(0,l.s)(t,v),[w,k]=i.useState(!1);return i.useEffect(()=>{if(w){let e=document.body;return r=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=r,e.style.webkitUserSelect=r}}},[w]),i.useEffect(()=>{if(v.current){let e=()=>{k(!1),m.isPointerDownOnContentRef.current=!1,setTimeout(()=>{document.getSelection()?.toString()!==""&&(m.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),m.hasSelectionRef.current=!1,m.isPointerDownOnContentRef.current=!1}}},[m.isPointerDownOnContentRef,m.hasSelectionRef]),i.useEffect(()=>{v.current&&(function(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t})(v.current).forEach(e=>e.setAttribute("tabindex","-1"))}),(0,p.jsx)(f.qW,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:h,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:(0,o.mK)(u,e=>{e.preventDefault()}),onDismiss:m.onDismiss,children:(0,p.jsx)(c.UC,{...g,...d,onPointerDown:(0,o.mK)(d.onPointerDown,e=>{e.currentTarget.contains(e.target)&&k(!0),m.hasSelectionRef.current=!1,m.isPointerDownOnContentRef.current=!0}),ref:b,style:{...d.style,userSelect:w?"text":void 0,WebkitUserSelect:w?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})});function D(e){return t=>"touch"===t.pointerType?void 0:e()}i.forwardRef((e,t)=>{let{__scopeHoverCard:n,...r}=e,i=y(n);return(0,p.jsx)(c.i3,{...i,...r,ref:t})}).displayName="HoverCardArrow";var R=w,j=S,I=C,z=P},47120(e,t,n){"use strict";n.d(t,{B:()=>l});var r,i=n(50405),o=n(46838),a=(r||(r=n.t(i,2)))[" useId ".trim().toString()]||(()=>void 0),s=0;function l(e){let[t,n]=i.useState(a());return(0,o.N)(()=>{e||n(e=>e??String(s++))},[e]),e||(t?`radix-${t}`:"")}},36603(e,t,n){"use strict";n.d(t,{pd:()=>C,bL:()=>A,lM:()=>P,In:()=>D});var r=n(50405),i=n.t(r,2),o=n(47868),a=n(53377),s=n(91654),l=n(26999),c=n(88111),u=n(47120),h=!1,d=i[" useSyncExternalStore ".trim().toString()];function f(){return()=>{}}var p="function"==typeof d?function(){return d(f,()=>!0,()=>!1)}:function(){let[e,t]=r.useState(h);return r.useEffect(()=>{h||(h=!0,t(!0))},[]),e},m=n(46838),g=i[" useEffectEvent ".trim().toString()],v=i[" useInsertionEffect ".trim().toString()],y=n(17062),b=n(49793),x="PasswordToggleField",[w]=(0,y.A)(x),[k,S]=w(x),M={clickTriggered:!1,selectionStart:null,selectionEnd:null},A=({__scopePasswordToggleField:e,...t})=>{let n=(0,u.B)(t.id),i=`${n}-input`,[o,a]=r.useState(i),l=o??i,c=r.useCallback(e=>a(null!=e?String(e):null),[]),{visible:h,defaultVisible:d,children:f}=t,p=t.onVisibilityChange,m=!1;!p&&"onVisiblityChange"in t&&"function"==typeof t.onVisiblityChange?(m=!0,p=t.onVisiblityChange):p=t.onVisibilityChange,r.useEffect(()=>{m&&console.warn("PasswordToggleField: The misspelled `onVisiblityChange` prop has been removed. Please use `onVisibilityChange` instead.")},[m]);let[g=!1,v]=(0,s.i)({caller:x,prop:h,defaultProp:d??!1,onChange:p}),y=r.useRef(null),w=r.useRef(M);return(0,b.jsx)(k,{scope:e,inputId:l,inputRef:y,setVisible:v,syncInputId:c,visible:g,focusState:w,children:f})};A.displayName=x;var E=x+"Input",C=r.forwardRef(({__scopePasswordToggleField:e,autoComplete:t="current-password",autoCapitalize:n="off",spellCheck:i=!1,id:o,...s},u)=>{let{visible:h,inputRef:d,inputId:f,syncInputId:p,setVisible:y,focusState:x}=S(E,e);r.useEffect(()=>{p(o)},[o,p]);let w=function(e){if("function"==typeof g)return g(e);let t=r.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof v?v(()=>{t.current=e}):(0,m.N)(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}(y);return r.useEffect(()=>{let e=d.current,t=e?.form;if(!t)return;let n=new AbortController;return t.addEventListener("reset",e=>{e.defaultPrevented||w(!1)},{signal:n.signal}),t.addEventListener("submit",()=>{w(!1)},{signal:n.signal}),()=>{n.abort()}},[d]),(0,b.jsx)(l.sG.input,{...s,id:o??f,autoCapitalize:n,autoComplete:t,ref:(0,c.s)(u,d),spellCheck:i,type:h?"text":"password",onBlur:(0,a.mK)(s.onBlur,e=>{let{selectionStart:t,selectionEnd:n}=e.currentTarget;x.current.selectionStart=t,x.current.selectionEnd=n})})});C.displayName=E;var O=x+"Toggle",P=r.forwardRef(({__scopePasswordToggleField:e,onClick:t,onPointerDown:n,onPointerCancel:i,onPointerUp:s,onFocus:u,children:h,"aria-label":d,"aria-controls":f,"aria-hidden":m,tabIndex:g,...v},y)=>
2{let{setVisible:x,visible:w,inputRef:k,inputId:A,focusState:E}=S(O,e),[C,P]=r.useState(void 0),T=r.useRef(null),D=(0,c.s)(y,T),R=p();r.useEffect(()=>{let e=T.current;if(!e||d)return void P(void 0);let t=w?"Hide password":"Show password";function n(e){P(e?void 0:t)}n(e.textContent);let r=new MutationObserver(t=>{let r;for(let n of t)"characterData"===n.type&&e.textContent&&(r=e.textContent);n(r)});return r.observe(e,{characterData:!0,subtree:!0}),()=>{r.disconnect()}},[w,d]);let j=d||C;return R?f??=A:(m??=!0,g??=-1),r.useEffect(()=>{let e=()=>{},t=T.current?.ownerDocument?.defaultView||window,n=()=>E.current.clickTriggered=!1,r=()=>e=function(e,t){if(e.requestIdleCallback){let n=e.requestIdleCallback(t,void 0);return()=>{e.cancelIdleCallback(n)}}let n=Date.now(),r=e.setTimeout(()=>{t({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-n))})},1);return()=>{e.clearTimeout(r)}}(t,n);return t.addEventListener("pointerup",r),()=>{e(),t.removeEventListener("pointerup",r)}},[E]),(0,b.jsx)(l.sG.button,{"aria-controls":f,"aria-hidden":m,"aria-label":j,ref:D,id:A,...v,onPointerDown:(0,a.mK)(n,()=>{E.current.clickTriggered=!0}),onPointerCancel:e=>{i?.(e),E.current=M},onClick:e=>{if(t?.(e),e.defaultPrevented){E.current=M;return}if((0,o.flushSync)(()=>{x(e=>!e)}),E.current.clickTriggered){let e=k.current;if(e){let{selectionStart:t,selectionEnd:n}=E.current;e.focus(),(null!==t||null!==n)&&requestAnimationFrame(()=>{e.ownerDocument.activeElement===e&&(e.selectionStart=t,e.selectionEnd=n)})}}E.current=M},onPointerUp:e=>{s?.(e),setTimeout(()=>{E.current=M},50)},type:"button",children:h})});P.displayName=O;var T=x+"Icon",D=r.forwardRef(({__scopePasswordToggleField:e,children:t,...n},r)=>{let{visible:i}=S(T,e),{visible:o,hidden:a,...s}=n;return(0,b.jsx)(l.sG.svg,{...s,ref:r,"aria-hidden":!0,asChild:!0,children:i?o:a})});D.displayName=T},98427(e,t,n){"use strict";n.d(t,{UC:()=>U,ZL:()=>$,bL:()=>H,l9:()=>W});var r=n(50405),i=n(53377),o=n(88111),a=n(17062),s=n(40016),l=n(64714),c=n(11744),u=n(47120),h=n(14207),d=n(14017),f=n(84055),p=n(26999),m=n(61108),g=n(91654),v=n(47661),y=n(20094),b=n(49793),x="Popover",[w,k]=(0,a.A)(x,[h.Bk]),S=(0,h.Bk)(),[M,A]=w(x),E=e=>{let{__scopePopover:t,children:n,open:i,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,l=S(t),c=r.useRef(null),[d,f]=r.useState(!1),[p,m]=(0,g.i)({prop:i,defaultProp:o??!1,onChange:a,caller:x});return(0,b.jsx)(h.bL,{...l,children:(0,b.jsx)(M,{scope:t,contentId:(0,u.B)(),triggerRef:c,open:p,onOpenChange:m,onOpenToggle:r.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:d,onCustomAnchorAdd:r.useCallback(()=>f(!0),[]),onCustomAnchorRemove:r.useCallback(()=>f(!1),[]),modal:s,children:n})})};E.displayName=x;var C="PopoverAnchor";r.forwardRef((e,t)=>{let{__scopePopover:n,...i}=e,o=A(C,n),a=S(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:l}=o;return r.useEffect(()=>(s(),()=>l()),[s,l]),(0,b.jsx)(h.Mz,{...a,...i,ref:t})}).displayName=C;var O="PopoverTrigger",P=r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,a=A(O,n),s=S(n),l=(0,o.s)(t,a.triggerRef),c=(0,b.jsx)(p.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":V(a.open),...r,ref:l,onClick:(0,i.mK)(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?c:(0,b.jsx)(h.Mz,{asChild:!0,...s,children:c})});P.displayName=O;var T="PopoverPortal",[D,R]=w(T,{forceMount:void 0}),j=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,o=A(T,t);return(0,b.jsx)(D,{scope:t,forceMount:n,children:(0,b.jsx)(f.C,{present:n||o.open,children:(0,b.jsx)(d.Z,{asChild:!0,container:i,children:r})})})};j.displayName=T;var I="PopoverContent",z=r.forwardRef((e,t)=>{let n=R(I,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,o=A(I,e.__scopePopover);return(0,b.jsx)(f.C,{present:r||o.open,children:o.modal?(0,b.jsx)(L,{...i,ref:t}):(0,b.jsx)(N,{...i,ref:t})})});z.displayName=I;var _=(0,m.TL)("PopoverContent.RemoveScroll"),L=r.forwardRef((e,t)=>{let n=A(I,e.__scopePopover),a=r.useRef(null),s=(0,o.s)(t,a),l=r.useRef(!1);return r.useEffect(()=>{let e=a.current;
2if(e)return(0,v.Eq)(e)},[]),(0,b.jsx)(y.A,{as:_,allowPinchZoom:!0,children:(0,b.jsx)(B,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.mK)(e.onCloseAutoFocus,e=>{e.preventDefault(),l.current||n.triggerRef.current?.focus()}),onPointerDownOutside:(0,i.mK)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;l.current=2===t.button||n},{checkForDefaultPrevented:!1}),onFocusOutside:(0,i.mK)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),N=r.forwardRef((e,t)=>{let n=A(I,e.__scopePopover),i=r.useRef(!1),o=r.useRef(!1);return(0,b.jsx)(B,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(i.current||n.triggerRef.current?.focus(),t.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let r=t.target;n.triggerRef.current?.contains(r)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),B=r.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:a,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,...m}=e,g=A(I,n),v=S(n);return(0,l.Oh)(),(0,b.jsx)(c.n,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:(0,b.jsx)(s.qW,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:p,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onDismiss:()=>g.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,b.jsx)(h.UC,{"data-state":V(g.open),role:"dialog",id:g.contentId,...v,...m,ref:t,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),F="PopoverClose";function V(e){return e?"open":"closed"}r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=A(F,n);return(0,b.jsx)(p.sG.button,{type:"button",...r,ref:t,onClick:(0,i.mK)(e.onClick,()=>o.onOpenChange(!1))})}).displayName=F,r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=S(n);return(0,b.jsx)(h.i3,{...i,...r,ref:t})}).displayName="PopoverArrow";var H=E,W=P,$=j,U=z},14207(e,t,n){"use strict";let r;n.d(t,{i3:()=>eX,Mz:()=>eZ,UC:()=>eY,bL:()=>eG,Bk:()=>eR});var i=n(50405);let o=["top","right","bottom","left"],a=Math.min,s=Math.max,l=Math.round,c=Math.floor,u=e=>({x:e,y:e}),h={left:"right",right:"left",bottom:"top",top:"bottom"};function d(e,t){return"function"==typeof e?e(t):e}function f(e){return e.split("-")[0]}function p(e){return e.split("-")[1]}function m(e){return"x"===e?"y":"x"}function g(e){return"y"===e?"height":"width"}function v(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function y(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let b=["left","right"],x=["right","left"],w=["top","bottom"],k=["bottom","top"];function S(e){let t=f(e);return h[t]+e.slice(t.length)}function M(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function A(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function E(e,t,n){let r,{reference:i,floating:o}=e,a=v(t),s=m(v(t)),l=g(s),c=f(t),u="y"===a,h=i.x+i.width/2-o.width/2,d=i.y+i.height/2-o.height/2,y=i[l]/2-o[l]/2;switch(c){case"top":r={x:h,y:i.y-o.height};break;case"bottom":r={x:h,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:d};break;case"left":r={x:i.x-o.width,y:d};break;default:r={x:i.x,y:i.y}}switch(p(t)){case"start":r[s]-=y*(n&&u?-1:1);break;case"end":r[s]+=y*(n&&u?-1:1)}return r}async function C(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:f=!1,padding:p=0}
2=d(t,e),m=M(p),g=s[f?"floating"===h?"reference":"floating":h],v=A(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===h?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,b=await (null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),x=await (null==o.isElement?void 0:o.isElement(b))&&await (null==o.getScale?void 0:o.getScale(b))||{x:1,y:1},w=A(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:l}):y);return{top:(v.top-w.top+m.top)/x.y,bottom:(w.bottom-v.bottom+m.bottom)/x.y,left:(v.left-w.left+m.left)/x.x,right:(w.right-v.right+m.right)/x.x}}let O=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=a.detectOverflow?a:{...a,detectOverflow:C},l=await (null==a.isRTL?void 0:a.isRTL(t)),c=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:h}=E(c,r,l),d=r,f=0,p={};for(let n=0;n<o.length;n++){let m=o[n];if(!m)continue;let{name:g,fn:v}=m,{x:y,y:b,data:x,reset:w}=await v({x:u,y:h,initialPlacement:r,placement:d,strategy:i,middlewareData:p,rects:c,platform:s,elements:{reference:e,floating:t}});u=null!=y?y:u,h=null!=b?b:h,p[g]={...p[g],...x},w&&f<50&&(f++,"object"==typeof w&&(w.placement&&(d=w.placement),w.rects&&(c=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:u,y:h}=E(c,d,l)),n=-1)}return{x:u,y:h,placement:d,strategy:i,middlewareData:p}};function P(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function T(e){return o.some(t=>e[t]>=0)}let D=new Set(["left","top"]);async function R(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),a=f(n),s=p(n),l="y"===v(n),c=D.has(a)?-1:1,u=o&&l?-1:1,h=d(t,e),{mainAxis:m,crossAxis:g,alignmentAxis:y}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return s&&"number"==typeof y&&(g="end"===s?-1*y:y),l?{x:g*u,y:m*c}:{x:m*c,y:g*u}}function j(){return"u">typeof window}function I(e){return L(e)?(e.nodeName||"").toLowerCase():"#document"}function z(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function _(e){var t;return null==(t=(L(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function L(e){return!!j()&&(e instanceof Node||e instanceof z(e).Node)}function N(e){return!!j()&&(e instanceof Element||e instanceof z(e).Element)}function B(e){return!!j()&&(e instanceof HTMLElement||e instanceof z(e).HTMLElement)}function F(e){return!(!j()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof z(e).ShadowRoot)}function V(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Z(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==i&&"contents"!==i}function H(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let W=/transform|translate|scale|rotate|perspective|filter/,$=/paint|layout|strict|content/,U=e=>!!e&&"none"!==e;function K(e){let t=N(e)?Z(e):e;return U(t.transform)||U(t.translate)||U(t.scale)||U(t.rotate)||U(t.perspective)||!q()&&(U(t.backdropFilter)||U(t.filter))||W.test(t.willChange||"")||$.test(t.contain||"")}function q(){return null==r&&(r="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function G(e){return/^(html|body|#document)$/.test(I(e))}function Z(e){return z(e).getComputedStyle(e)}function Y(e){return N(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function X(e){if("html"===I(e))return e;let t=e.assignedSlot||e.parentNode||F(e)&&e.host||_(e);return F(t)?t.host:t}function J(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=X(t);return G(n)?t.ownerDocument?t.ownerDocument.body:t.body:B(n)&&V(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=z(i);if(!o)return t.concat(i,J(i,[],n));{let e=Q(a);
2return t.concat(a,a.visualViewport||[],V(i)?i:[],e&&n?J(e):[])}}function Q(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ee(e){let t=Z(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=B(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=l(n)!==o||l(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function et(e){return N(e)?e:e.contextElement}function en(e){let t=et(e);if(!B(t))return u(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=ee(t),a=(o?l(n.width):n.width)/r,s=(o?l(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}let er=u(0);function ei(e){let t=z(e);return q()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:er}function eo(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),a=et(e),s=u(1);t&&(r?N(r)&&(s=en(r)):s=en(e));let l=(void 0===(i=n)&&(i=!1),r&&(!i||r===z(a))&&i)?ei(a):u(0),c=(o.left+l.x)/s.x,h=(o.top+l.y)/s.y,d=o.width/s.x,f=o.height/s.y;if(a){let e=z(a),t=r&&N(r)?z(r):r,n=e,i=Q(n);for(;i&&r&&t!==n;){let e=en(i),t=i.getBoundingClientRect(),r=Z(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,h*=e.y,d*=e.x,f*=e.y,c+=o,h+=a,i=Q(n=z(i))}}return A({width:d,height:f,x:c,y:h})}function ea(e,t){let n=Y(e).scrollLeft;return t?t.left+n:eo(_(e)).left+n}function es(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ea(e,n),y:n.top+t.scrollTop}}function el(e,t,n){var r;let i;if("viewport"===t)i=function(e,t){let n=z(e),r=_(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;let e=q();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}let c=ea(r);if(c<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(r.clientWidth-t.clientWidth-i);a<=25&&(o-=a)}else c<=25&&(o+=c);return{width:o,height:a,x:s,y:l}}(e,n);else if("document"===t){let t,n,o,a,l,c,u;r=_(e),t=_(r),n=Y(r),o=r.ownerDocument.body,a=s(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),l=s(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),c=-n.scrollLeft+ea(r),u=-n.scrollTop,"rtl"===Z(o).direction&&(c+=s(t.clientWidth,o.clientWidth)-a),i={width:a,height:l,x:c,y:u}}else if(N(t)){let e,r,o,a,s,l;r=(e=eo(t,!0,"fixed"===n)).top+t.clientTop,o=e.left+t.clientLeft,a=B(t)?en(t):u(1),s=t.clientWidth*a.x,l=t.clientHeight*a.y,i={width:s,height:l,x:o*a.x,y:r*a.y}}else{let n=ei(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return A(i)}function ec(e){return"static"===Z(e).position}function eu(e,t){if(!B(e)||"fixed"===Z(e).position)return null;if(t)return t(e);let n=e.offsetParent;return _(e)===n&&(n=n.ownerDocument.body),n}function eh(e,t){var n;let r=z(e);if(H(e))return r;if(!B(e)){let t=X(e);for(;t&&!G(t);){if(N(t)&&!ec(t))return t;t=X(t)}return r}let i=eu(e,t);for(;i&&(n=i,/^(table|td|th)$/.test(I(n)))&&ec(i);)i=eu(i,t);return i&&G(i)&&ec(i)&&!K(i)?r:i||function(e){let t=X(e);for(;B(t)&&!G(t);){if(K(t))return t;if(H(t))break;t=X(t)}return null}(e)||r}let ed=async function(e){let t=this.getOffsetParent||eh,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=B(t),i=_(t),o="fixed"===n,a=eo(e,!0,o,t),s={scrollLeft:0,scrollTop:0},l=u(0);if(r||!r&&!o)if(("body"!==I(t)||V(i))&&(s=Y(t)),r){let e=eo(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=ea(i));o&&!r&&i&&(l.x=ea(i));let c=!i||r||o?u(0):es(i,s);return{x:a.left+s.scrollLeft-l.x-c.x,y:a.top+s.scrollTop-l.y-c.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},ef={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,a=_(r),s=!!t&&H(t.floating);if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=u(1),h=u(0),d=B(r);if((d||!d&&!o)&&(("body"!==I(r)||V(a))&&(l=Y(r)),d)){let e=eo(r);c=en(r),h.x=e.x+r.clientLeft,h.y=e.y+r.clientTop}let f=!a||d||o?u(0):es(a,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+h.x+f.x,y:n.y*c.y-l.scrollTop*c.y+h.y+f.y}},getDocumentElement:_,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,o=[..."clippingAncestors"===n?H(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=J(e,[],!1).filter(e=>N(e)&&"body"!==I(e)),i=null,o="fixed"===Z(e).position,a=o?X(e):e;for(;N(a)&&!G(a);){let t=Z(a),n=K(a);n||"fixed"!==t.position||(i=null),(o?n||i:!(!n&&"static"===t.position&&i&&("absolute"===i.position||"fixed"===i.position)||V(a)&&!n&&function e(t,n){let r=X(t);return!(r===n||!N(r)||G(r))&&("fixed"===Z(r).position||e(r,n))}
2(e,a)))?i=t:r=r.filter(e=>e!==a),a=X(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=el(t,o[0],i),c=l.top,u=l.right,h=l.bottom,d=l.left;for(let e=1;e<o.length;e++){let n=el(t,o[e],i);c=s(n.top,c),u=a(n.right,u),h=a(n.bottom,h),d=s(n.left,d)}return{width:u-d,height:h-c,x:d,y:c}},getOffsetParent:eh,getElementRects:ed,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=ee(e);return{width:t,height:n}},getScale:en,isElement:N,isRTL:function(e){return"rtl"===Z(e).direction}};function ep(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let em=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:i,rects:o,platform:l,elements:c,middlewareData:u}=t,{element:h,padding:f=0}=d(e,t)||{};if(null==h)return{};let y=M(f),b={x:n,y:r},x=m(v(i)),w=g(x),k=await l.getDimensions(h),S="y"===x,A=S?"clientHeight":"clientWidth",E=o.reference[w]+o.reference[x]-b[x]-o.floating[w],C=b[x]-o.reference[x],O=await (null==l.getOffsetParent?void 0:l.getOffsetParent(h)),P=O?O[A]:0;P&&await (null==l.isElement?void 0:l.isElement(O))||(P=c.floating[A]||o.floating[w]);let T=P/2-k[w]/2-1,D=a(y[S?"top":"left"],T),R=a(y[S?"bottom":"right"],T),j=P-k[w]-R,I=P/2-k[w]/2+(E/2-C/2),z=s(D,a(I,j)),_=!u.arrow&&null!=p(i)&&I!==z&&o.reference[w]/2-(I<D?D:R)-k[w]/2<0,L=_?I<D?I-D:I-j:0;return{[x]:b[x]+L,data:{[x]:z,centerOffset:I-z-L,..._&&{alignmentOffset:L}},reset:_}}});var eg=n(47868),ev="u">typeof document?i.useLayoutEffect:function(){};function ey(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!ey(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!ey(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eb(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ex(e,t){let n=eb(e);return Math.round(t*n)/n}function ew(e){let t=i.useRef(e);return ev(()=>{t.current=e}),t}var ek=n(26999),eS=n(49793),eM=i.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,eS.jsx)(ek.sG.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,eS.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eM.displayName="Arrow";var eA=n(88111),eE=n(17062),eC=n(13616),eO=n(46838),eP=n(58024),eT="Popper",[eD,eR]=(0,eE.A)(eT),[ej,eI]=eD(eT),ez=e=>{let{__scopePopper:t,children:n}=e,[r,o]=i.useState(null),[a,s]=i.useState(void 0);return(0,eS.jsx)(ej,{scope:t,anchor:r,onAnchorChange:o,placementState:a,setPlacementState:s,children:n})};ez.displayName=eT;var e_="PopperAnchor",eL=i.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...o}=e,a=eI(e_,n),s=i.useRef(null),l=a.onAnchorChange,c=i.useCallback(e=>{s.current=e,e&&l(e)},[l]),u=(0,eA.s)(t,c),h=i.useRef(null);i.useEffect(()=>{if(!r)return;let e=h.current;h.current=r.current,e!==h.current&&l(h.current)});let d=a.placementState&&eq(a.placementState),f=d?.[0],p=d?.[1];return r?null:(0,eS.jsx)(ek.sG.div,{"data-radix-popper-side":f,"data-radix-popper-align":p,...o,ref:u})});eL.displayName=e_;var eN="PopperContent",[eB,eF]=eD(eN),eV=i.forwardRef((e,t)=>{var n,r,o,l,u,h,M,A,E,C,j,I,z,L,N,B,F,V,H,W,$;let U,K,q,G,Z,Y,{__scopePopper:X,side:Q="bottom",sideOffset:ee=0,align:en="center",alignOffset:er=0,arrowPadding:ei=0,avoidCollisions:ea=!0,collisionBoundary:es=[],collisionPadding:el=0,sticky:ec="partial",hideWhenDetached:eu=!1,updatePositionStrategy:eh="optimized",onPlaced:ed,...eM}=e,eE=eI(eN,X),[eT,eD]=i.useState(null),eR=(0,eA.s)(t,e=>eD(e)),[ej,ez]=i.useState(null),e_=(0,eP.X)(ej),eL=e_?.width??0,eF=e_?.height??0,eV="number"==typeof el?el:{top:0,right:0,bottom:0,left:0,...el},eH=Array.isArray(es)?es:[es],eW=eH.length>0,e$={padding:eV,boundary:eH.filter(eU),altBoundary:eW},{refs:eG,floatingStyles:eZ,placement:eY,isPositioned:eX,middlewareData:eJ}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[h,d]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=i.useState(r);ey(f,r)||p(r);let[m,g]=i.useState(null),[v,y]=i.useState(null),b=i.useCallback(e=>
2{e!==S.current&&(S.current=e,g(e))},[]),x=i.useCallback(e=>{e!==M.current&&(M.current=e,y(e))},[]),w=a||m,k=s||v,S=i.useRef(null),M=i.useRef(null),A=i.useRef(h),E=null!=c,C=ew(c),P=ew(o),T=ew(u),D=i.useCallback(()=>{var e,r;let i,o,a;if(!S.current||!M.current)return;let s={placement:t,strategy:n,middleware:f};P.current&&(s.platform=P.current),(e=S.current,r=M.current,i=new Map,a={...(o={platform:ef,...s}).platform,_c:i},O(e,r,{...o,platform:a})).then(e=>{let t={...e,isPositioned:!1!==T.current};R.current&&!ey(A.current,t)&&(A.current=t,eg.flushSync(()=>{d(t)}))})},[f,t,n,P,T]);ev(()=>{!1===u&&A.current.isPositioned&&(A.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[u]);let R=i.useRef(!1);ev(()=>(R.current=!0,()=>{R.current=!1}),[]),ev(()=>{if(w&&(S.current=w),k&&(M.current=k),w&&k){if(C.current)return C.current(w,k,D);D()}},[w,k,D,C,E]);let j=i.useMemo(()=>({reference:S,floating:M,setReference:b,setFloating:x}),[b,x]),I=i.useMemo(()=>({reference:w,floating:k}),[w,k]),z=i.useMemo(()=>{let e={position:n,left:0,top:0};if(!I.floating)return e;let t=ex(I.floating,h.x),r=ex(I.floating,h.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...eb(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,l,I.floating,h.x,h.y]);return i.useMemo(()=>({...h,update:D,refs:j,elements:I,floatingStyles:z}),[h,D,j,I,z])}({strategy:"fixed",placement:Q+("center"!==en?"-"+en:""),whileElementsMounted:(...e)=>(function(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:u="function"==typeof ResizeObserver,layoutShift:h="function"==typeof IntersectionObserver,animationFrame:d=!1}=r,f=et(e),p=o||l?[...f?J(f):[],...t?J(t):[]]:[];p.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)});let m=f&&h?function(e,t){let n,r=null,i=_(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function l(u,h){void 0===u&&(u=!1),void 0===h&&(h=1),o();let d=e.getBoundingClientRect(),{left:f,top:p,width:m,height:g}=d;if(u||t(),!m||!g)return;let v={rootMargin:-c(p)+"px "+-c(i.clientWidth-(f+m))+"px "+-c(i.clientHeight-(p+g))+"px "+-c(f)+"px",threshold:s(0,a(1,h))||1},y=!0;function b(t){let r=t[0].intersectionRatio;if(r!==h){if(!y)return l();r?l(!1,r):n=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==r||ep(d,e.getBoundingClientRect())||l(),y=!1}try{r=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(b,v)}r.observe(e)}(!0),o}(f,n):null,g=-1,v=null;u&&(v=new ResizeObserver(e=>{let[r]=e;r&&r.target===f&&v&&t&&(v.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),n()}),f&&!d&&v.observe(f),t&&v.observe(t));let y=d?eo(e):null;return d&&function t(){let r=eo(e);y&&!ep(y,r)&&n(),y=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach(e=>{o&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=v)||e.disconnect(),v=null,d&&cancelAnimationFrame(i)}})(...e,{animationFrame:"always"===eh}),elements:{reference:eE.anchor},middleware:[{name:(U={name:"offset",options:o=n={mainAxis:ee+eF,alignmentAxis:er},async fn(e){var t,n;let{x:r,y:i,placement:a,middlewareData:s}=e,l=await R(e,o);return a===(null==(t=s.offset)?void 0:t.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:a}}}}).name,fn:U.fn,options:[n,r]},ea&&{name:(K={name:"shift",options:E=M={mainAxis:!0,crossAxis:!1,limiter:"partial"===ec?{fn:(void 0===(h=l)&&(h={}),{options:h,fn(e){let{x:t,y:n,placement:r,rects:i,middlewareData:o}=e,{offset:a=0,mainAxis:s=!0,crossAxis:l=!0}=d(h,e),c={x:t,y:n},u=v(r),p=m(u),g=c[p],y=c[u],b=d(a,e),x="number"==typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(s){let e="y"===p?"height":"width",t=i.reference[p]-i.floating[e]+x.mainAxis,n=i.reference[p]+i.reference[e]-x.mainAxis;g<t?g=t:g>n&&(g=n)}if(l){var w,k;let e="y"===p?"width":"height",t=D.has(f(r)),n=i.reference[u]-i.floating[e]+(t&&(null==(w=o.offset)?void 0:w[u])||0)+(t?0:x.crossAxis),a=i.reference[u]+i.reference[e]+(t?0:(null==(k=o.offset)?void 0:k[u])||0)-(t?x.crossAxis:0);y<n?y=n:y>a&&(y=a)}return{[p]:g,[u]:y}}}).fn,options:[l,u]}:void 0,...e$},async fn(e){let{x:t,y:n,placement:r,platform:i}=e,{mainAxis:o=!0,crossAxis:l=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=d(E,e),h={x:t,y:n},p=await i.detectOverflow(e,u),g=v(f(r)),y=m(g),b=h[y],x=h[g];if(o){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=b+p[e],r=b-p[t];b=s(n,a(b,r))}if(l){let e="y"===g?"top":"left",t="y"===g?"bottom":"right",n=x+p[e],r=x-p[t];x=s(n,a(x,r))}let w=c.fn({...e,[y]:b,[g]:x});return{...w,data:{x:w.x-t,y:w.y-n,enabled:{[y]:o,[g]:l}}}}}).name,fn:K.fn,options:[M,A]},ea&&{name:(q={name:"flip",options:I=C={...e$},async fn(e){var t,n,r,i,o,a,s,l;let c,u,h,{placement:M,middlewareData:A,rects:E,initialPlacement:C,platform:O,elements:P}=e,{mainAxis:T=!0,crossAxis:D=!0,fallbackPlacements:R,fallbackStrategy:j="bestFit",fallbackAxisSideDirection:z="none",flipAlignment:_=!0,...L}=d(I,e);if(null!=(t=A.arrow)&&t.alignmentOffset)return{};let N=f(M),B=v(C),F=f(C)===C,V=await (null==O.isRTL?void 0:O.isRTL(P.floating)),H=R||(F||!_?[S(C)]:(c=S(C),[y(C),c,y(c)])
2),W="none"!==z;!R&&W&&H.push(...(u=p(C),h=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?x:b;return t?b:x;case"left":case"right":return t?w:k;default:return[]}}(f(C),"start"===z,V),u&&(h=h.map(e=>e+"-"+u),_&&(h=h.concat(h.map(y)))),h));let $=[C,...H],U=await O.detectOverflow(e,L),K=[],q=(null==(n=A.flip)?void 0:n.overflows)||[];if(T&&K.push(U[N]),D){let e,t,n,r,i=(a=M,s=E,void 0===(l=V)&&(l=!1),e=p(a),n=g(t=m(v(a))),r="x"===t?e===(l?"end":"start")?"right":"left":"start"===e?"bottom":"top",s.reference[n]>s.floating[n]&&(r=S(r)),[r,S(r)]);K.push(U[i[0]],U[i[1]])}if(q=[...q,{placement:M,overflows:K}],!K.every(e=>e<=0)){let e=((null==(r=A.flip)?void 0:r.index)||0)+1,t=$[e];if(t&&("alignment"!==D||B===v(t)||q.every(e=>v(e.placement)!==B||e.overflows[0]>0)))return{data:{index:e,overflows:q},reset:{placement:t}};let n=null==(i=q.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(j){case"bestFit":{let e=null==(o=q.filter(e=>{if(W){let t=v(e.placement);return t===B||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0];e&&(n=e);break}case"initialPlacement":n=C}if(M!==n)return{reset:{placement:n}}}return{}}}).name,fn:q.fn,options:[C,j]},{name:(G={name:"size",options:N=z={...e$,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:o}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${i}px`),a.setProperty("--radix-popper-anchor-height",`${o}px`)}},async fn(e){var t,n;let r,i,{placement:o,rects:l,platform:c,elements:u}=e,{apply:h=()=>{},...m}=d(N,e),g=await c.detectOverflow(e,m),y=f(o),b=p(o),x="y"===v(o),{width:w,height:k}=l.floating;"top"===y||"bottom"===y?(r=y,i=b===(await (null==c.isRTL?void 0:c.isRTL(u.floating))?"start":"end")?"left":"right"):(i=y,r="end"===b?"top":"bottom");let S=k-g.top-g.bottom,M=w-g.left-g.right,A=a(k-g[r],S),E=a(w-g[i],M),C=!e.middlewareData.shift,O=A,P=E;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(P=M),null!=(n=e.middlewareData.shift)&&n.enabled.y&&(O=S),C&&!b){let e=s(g.left,0),t=s(g.right,0),n=s(g.top,0),r=s(g.bottom,0);x?P=w-2*(0!==e||0!==t?e+t:s(g.left,g.right)):O=k-2*(0!==n||0!==r?n+r:s(g.top,g.bottom))}await h({...e,availableWidth:P,availableHeight:O});let T=await c.getDimensions(u.floating);return w!==T.width||k!==T.height?{reset:{rects:!0}}:{}}}).name,fn:G.fn,options:[z,L]},ej&&{name:(Z={name:"arrow",options:V=B={element:ej,padding:ei},fn(e){let{element:t,padding:n}="function"==typeof V?V(e):V;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?em({element:t.current,padding:n}).fn(e):{}:t?em({element:t,padding:n}).fn(e):{}}}).name,fn:Z.fn,options:[B,F]},eK({arrowWidth:eL,arrowHeight:eF}),eu&&{name:(Y={name:"hide",options:$=H={strategy:"referenceHidden",...e$,boundary:eW?e$.boundary:void 0},async fn(e){let{rects:t,platform:n}=e,{strategy:r="referenceHidden",...i}=d($,e);switch(r){case"referenceHidden":{let r=P(await n.detectOverflow(e,{...i,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:T(r)}}}case"escaped":{let r=P(await n.detectOverflow(e,{...i,altBoundary:!0}),t.floating);return{data:{escapedOffsets:r,escaped:T(r)}}}default:return{}}}}).name,fn:Y.fn,options:[H,W]}]}),eQ=eE.setPlacementState;(0,eO.N)(()=>(eQ(eY),()=>{eQ(void 0)}),[eY,eQ]);let[e0,e1]=eq(eY),e2=(0,eC.c)(ed);(0,eO.N)(()=>{eX&&e2?.()},[eX,e2]);let e4=eJ.arrow?.x,e5=eJ.arrow?.y,e3=eJ.arrow?.centerOffset!==0,[e6,e8]=i.useState();return(0,eO.N)(()=>{eT&&e8(window.getComputedStyle(eT).zIndex)},[eT]),(0,eS.jsx)("div",{ref:eG.setFloating,"data-radix-popper-content-wrapper":"",style:{...eZ,transform:eX?eZ.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:e6,"--radix-popper-transform-origin":[eJ.transformOrigin?.x,eJ.transformOrigin?.y].join(" "),...eJ.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eS.jsx)(eB,{scope:X,placedSide:e0,placedAlign:e1,onArrowChange:ez,arrowX:e4,arrowY:e5,shouldHideArrow:e3,children:(0,eS.jsx)(ek.sG.div,{"data-side":e0,"data-align":e1,...eM,ref:eR,style:{...eM.style,animation:eX?void 0:"none"}})})})});eV.displayName=eN;var eH="PopperArrow",eW={top:"bottom",right:"left",bottom:"top",left:"r
2ight"},e$=i.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=eF(eH,n),o=eW[i.placedSide];return(0,eS.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,eS.jsx)(eM,{...r,ref:t,style:{...r.style,display:"block"}})})});function eU(e){return null!==e}e$.displayName=eH;var eK=e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,o=i.arrow?.centerOffset!==0,a=o?0:e.arrowWidth,s=o?0:e.arrowHeight,[l,c]=eq(n),u={start:"0%",center:"50%",end:"100%"}[c],h=(i.arrow?.x??0)+a/2,d=(i.arrow?.y??0)+s/2,f="",p="";return"bottom"===l?(f=o?u:`${h}px`,p=`${-s}px`):"top"===l?(f=o?u:`${h}px`,p=`${r.floating.height+s}px`):"right"===l?(f=`${-s}px`,p=o?u:`${d}px`):"left"===l&&(f=`${r.floating.width+s}px`,p=o?u:`${d}px`),{data:{x:f,y:p}}}});function eq(e){let[t,n="center"]=e.split("-");return[t,n]}var eG=ez,eZ=eL,eY=eV,eX=e$},14017(e,t,n){"use strict";n.d(t,{Z:()=>l});var r=n(50405),i=n(47868),o=n(26999),a=n(46838),s=n(49793),l=r.forwardRef((e,t)=>{let{container:n,...l}=e,[c,u]=r.useState(!1);(0,a.N)(()=>u(!0),[]);let h=n||c&&globalThis?.document?.body;return h?i.createPortal((0,s.jsx)(o.sG.div,{...l,ref:t}),h):null});l.displayName="Portal"},84055(e,t,n){"use strict";n.d(t,{C:()=>o});var r=n(50405),i=n(46838),o=e=>{var t;let n,o,{present:l,children:c}=e,u=function(e){var t,n;let[o,a]=r.useState(),l=r.useRef(null),c=r.useRef(e),u=r.useRef("none"),[h,d]=(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=s(l.current);u.current="mounted"===h?e:"none"},[h]),(0,i.N)(()=>{let t=l.current,n=c.current;if(n!==e){let r=u.current,i=s(t);e?d("MOUNT"):"none"===i||t?.display==="none"?d("UNMOUNT"):n&&r!==i?d("ANIMATION_OUT"):d("UNMOUNT"),c.current=e}},[e,d]),(0,i.N)(()=>{if(o){let e,t=o.ownerDocument.defaultView??window,n=n=>{let r=s(l.current).includes(CSS.escape(n.animationName));if(n.target===o&&r&&(d("ANIMATION_END"),!c.current)){let n=o.style.animationFillMode;o.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=n)})}},r=e=>{e.target===o&&(u.current=s(l.current))};return o.addEventListener("animationstart",r),o.addEventListener("animationcancel",n),o.addEventListener("animationend",n),()=>{t.clearTimeout(e),o.removeEventListener("animationstart",r),o.removeEventListener("animationcancel",n),o.removeEventListener("animationend",n)}}d("ANIMATION_END")},[o,d]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:r.useCallback(e=>{l.current=e?getComputedStyle(e):null,a(e)},[])}}(l),h="function"==typeof c?c({present:u.isPresent}):r.Children.only(c),d=function(...e){let t=r.useRef(e);return t.current=e,r.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=a(t,e);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];"function"==typeof t?t():a(n[e],null)}}},[])}(u.ref,(t=h,(o=(n=Object.getOwnPropertyDescriptor(t.props,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning)?t.ref:(o=(n=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning)?t.props.ref:t.props.ref||t.ref));return"function"==typeof c||u.isPresent?r.cloneElement(h,{ref:d}):null};function a(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function s(e){return e?.animationName||"none"}o.displayName="Presence"},26999(e,t,n){"use strict";n.d(t,{hO:()=>l,sG:()=>s});var r=n(50405),i=n(47868),o=n(61108),a=n(49793),s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,o.TL)(`Primitive.${t}`),i=r.forwardRef((e,r)=>{let{asChild:i,...o}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(i?n:t,{...o,ref:r})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function l(e,t){e&&i.flushSync(()=>
2e.dispatchEvent(t))}},37403(e,t,n){"use strict";n.d(t,{C1:()=>H,bL:()=>_,q7:()=>F});var r=n(50405),i=n(53377),o=n(88111),a=n(17062),s=n(26999),l=n(53308),c=n(91654),u=n(80944),h=n(58024),d=n(70480),f=n(84055),p=n(49793),m="Radio",[g,v]=(0,a.A)(m),[y,b]=g(m);function x(e){let{__scopeRadio:t,checked:n=!1,children:i,disabled:o,form:a,name:s,onCheck:l,required:c,value:u="on",internal_do_not_use_render:h}=e,[d,f]=r.useState(null),[m,g]=r.useState(null),v=r.useRef(!1),b=!d||!!a||!!d.closest("form"),x={checked:n,disabled:o,required:c,name:s,form:a,value:u,control:d,setControl:f,hasConsumerStoppedPropagationRef:v,isFormControl:b,bubbleInput:m,setBubbleInput:g,onCheck:()=>l?.()};return(0,p.jsx)(y,{scope:t,...x,children:"function"==typeof h?h(x):i})}var w="RadioTrigger",k=r.forwardRef(({__scopeRadio:e,onClick:t,...n},r)=>{let{checked:a,disabled:l,value:c,setControl:u,onCheck:h,hasConsumerStoppedPropagationRef:d,isFormControl:f,bubbleInput:m}=b(w,e),g=(0,o.s)(r,u);return(0,p.jsx)(s.sG.button,{type:"button",role:"radio","aria-checked":a,"data-state":C(a),"data-disabled":l?"":void 0,disabled:l,value:c,...n,ref:g,onClick:(0,i.mK)(t,e=>{a||h(),m&&f&&(d.current=e.isPropagationStopped(),d.current||e.stopPropagation())})})});k.displayName=w,r.forwardRef((e,t)=>{let{__scopeRadio:n,name:r,checked:i,required:o,disabled:a,value:s,onCheck:l,form:c,...u}=e;return(0,p.jsx)(x,{__scopeRadio:n,checked:i,disabled:a,required:o,onCheck:l,name:r,form:c,value:s,internal_do_not_use_render:({isFormControl:e})=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(k,{...u,ref:t,__scopeRadio:n}),e&&(0,p.jsx)(E,{__scopeRadio:n})]})})}).displayName=m;var S="RadioIndicator",M=r.forwardRef((e,t)=>{let{__scopeRadio:n,forceMount:r,...i}=e,o=b(S,n);return(0,p.jsx)(f.C,{present:r||o.checked,children:(0,p.jsx)(s.sG.span,{"data-state":C(o.checked),"data-disabled":o.disabled?"":void 0,...i,ref:t})})});M.displayName=S;var A="RadioBubbleInput",E=r.forwardRef(({__scopeRadio:e,...t},n)=>{let{control:i,checked:a,required:l,disabled:c,name:u,value:f,form:m,bubbleInput:g,setBubbleInput:v,hasConsumerStoppedPropagationRef:y}=b(A,e),x=(0,o.s)(n,v),w=(0,d.Z)(a),k=(0,h.X)(i);r.useEffect(()=>{if(!g)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=!y.current;if(w!==a&&e){let n=new Event("click",{bubbles:t});e.call(g,a),g.dispatchEvent(n)}},[g,w,a,y]);let S=r.useRef(a);return(0,p.jsx)(s.sG.input,{type:"radio","aria-hidden":!0,defaultChecked:S.current,required:l,disabled:c,name:u,value:f,form:m,...t,tabIndex:-1,ref:x,style:{...t.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function C(e){return e?"checked":"unchecked"}E.displayName=A;var O=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],P="RadioGroup",[T,D]=(0,a.A)(P,[l.RG,v]),R=(0,l.RG)(),j=v(),[I,z]=T(P),_=r.forwardRef((e,t)=>{let{__scopeRadioGroup:n,name:r,defaultValue:i,value:o,required:a=!1,disabled:h=!1,orientation:d,dir:f,loop:m=!0,onValueChange:g,...v}=e,y=R(n),b=(0,u.jH)(f),[x,w]=(0,c.i)({prop:o,defaultProp:i??null,onChange:g,caller:P});return(0,p.jsx)(I,{scope:n,name:r,required:a,disabled:h,value:x,onValueChange:w,children:(0,p.jsx)(l.bL,{asChild:!0,...y,orientation:d,dir:b,loop:m,children:(0,p.jsx)(s.sG.div,{role:"radiogroup","aria-required":a,"aria-orientation":d,"data-disabled":h?"":void 0,dir:b,...v,ref:t})})})});_.displayName=P;var L="RadioGroupItemTrigger";function N(e){let{__scopeRadioGroup:t,value:n,disabled:r,children:i,internal_do_not_use_render:o}=e,a=z("RadioGroupItemProvider",t),s=j(t),l=a.disabled||r;return(0,p.jsx)(x,{...s,checked:a.value===n,disabled:l,required:a.required,name:a.name,value:n,onCheck:()=>a.onValueChange(n),internal_do_not_use_render:o,children:i})}var B=r.forwardRef((e,t)=>{let{__scopeRadioGroup:n,...a}=e,s=R(n),c=j(n),{checked:u,disabled:h}=b(L,c.__scopeRadio),d=r.useRef(null),f=(0,o.s)(t,d),m=r.useRef(!1);return r.useEffect(()=>{let e=e=>{O.includes(e.key)&&(m.current=!0)},t=()=>m.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,p.jsx)(l.q7,{asChild:!0,...s,focusable:!h,active:u,children:(0,p.jsx)(k,{...c,...a,ref:f,onKeyDown:(0,i.mK)(a.onKeyDown,e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:(0,i.mK)(a.onFocus,()=>{m.current&&d.current?.click()})})})});B.displayName=L;var F=r.forwardRef((e,t)=>
2{let{__scopeRadioGroup:n,value:r,disabled:i,...o}=e;return(0,p.jsx)(N,{__scopeRadioGroup:n,value:r,disabled:i,internal_do_not_use_render:({isFormControl:e})=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(B,{...o,ref:t,__scopeRadioGroup:n}),e&&(0,p.jsx)(V,{__scopeRadioGroup:n})]})})});F.displayName="RadioGroupItem";var V=r.forwardRef((e,t)=>{let{__scopeRadioGroup:n,...r}=e,i=j(n);return(0,p.jsx)(E,{...i,...r,ref:t})});V.displayName="RadioGroupItemBubbleInput";var H=r.forwardRef((e,t)=>{let{__scopeRadioGroup:n,...r}=e,i=j(n);return(0,p.jsx)(M,{...i,...r,ref:t})});H.displayName="RadioGroupIndicator"},53308(e,t,n){"use strict";n.d(t,{RG:()=>w,bL:()=>T,q7:()=>D});var r=n(50405),i=n(53377),o=n(25400),a=n(88111),s=n(17062),l=n(47120),c=n(26999),u=n(13616),h=n(91654),d=n(80944),f=n(49793),p="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},g="RovingFocusGroup",[v,y,b]=(0,o.N)(g),[x,w]=(0,s.A)(g,[b]),[k,S]=x(g),M=r.forwardRef((e,t)=>(0,f.jsx)(v.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(v.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(A,{...e,ref:t})})}));M.displayName=g;var A=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:o,loop:s=!1,dir:l,currentTabStopId:v,defaultCurrentTabStopId:b,onCurrentTabStopIdChange:x,onEntryFocus:w,preventScrollOnEntryFocus:S=!1,...M}=e,A=r.useRef(null),E=(0,a.s)(t,A),C=(0,d.jH)(l),[O,T]=(0,h.i)({prop:v,defaultProp:b??null,onChange:x,caller:g}),[D,R]=r.useState(!1),j=(0,u.c)(w),I=y(n),z=r.useRef(!1),[_,L]=r.useState(0);return r.useEffect(()=>{let e=A.current;if(e)return e.addEventListener(p,j),()=>e.removeEventListener(p,j)},[j]),(0,f.jsx)(k,{scope:n,orientation:o,dir:C,loop:s,currentTabStopId:O,onItemFocus:r.useCallback(e=>T(e),[T]),onItemShiftTab:r.useCallback(()=>R(!0),[]),onFocusableItemAdd:r.useCallback(()=>L(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>L(e=>e-1),[]),children:(0,f.jsx)(c.sG.div,{tabIndex:D||0===_?-1:0,"data-orientation":o,...M,ref:E,style:{outline:"none",...e.style},onMouseDown:(0,i.mK)(e.onMouseDown,()=>{z.current=!0}),onFocus:(0,i.mK)(e.onFocus,e=>{let t=!z.current;if(e.target===e.currentTarget&&t&&!D){let t=new CustomEvent(p,m);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=I().filter(e=>e.focusable);P([e.find(e=>e.active),e.find(e=>e.id===O),...e].filter(Boolean).map(e=>e.ref.current),S)}}z.current=!1}),onBlur:(0,i.mK)(e.onBlur,()=>R(!1))})})}),E="RovingFocusGroupItem",C=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:o=!0,active:a=!1,tabStopId:s,children:u,...h}=e,d=(0,l.B)(),p=s||d,m=S(E,n),g=m.currentTabStopId===p,b=y(n),{onFocusableItemAdd:x,onFocusableItemRemove:w,currentTabStopId:k}=m;return r.useEffect(()=>{if(o)return x(),()=>w()},[o,x,w]),(0,f.jsx)(v.ItemSlot,{scope:n,id:p,focusable:o,active:a,children:(0,f.jsx)(c.sG.span,{tabIndex:g?0:-1,"data-orientation":m.orientation,...h,ref:t,onMouseDown:(0,i.mK)(e.onMouseDown,e=>{o?m.onItemFocus(p):e.preventDefault()}),onFocus:(0,i.mK)(e.onFocus,()=>m.onItemFocus(p)),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void m.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let i=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return O[i]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let i=b().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)i.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&i.reverse();let o=i.indexOf(e.currentTarget);i=m.loop?(n=i,r=o+1,n.map((e,t)=>n[(r+t)%n.length])):i.slice(o+1)}setTimeout(()=>P(i))}}),children:"function"==typeof u?u({isCurrentTabStop:g,hasTabStop:null!=k}):u})})});C.displayName=E;var O={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 T=M,D=C},45748(e,t,n){"use strict";n.d(t,{In:()=>q,LM:()=>eu,PP:()=>eM,UC:()=>Q,VF:()=>ek,WT:()=>K,ZL:()=>X,bL:()=>H,l9:()=>$,p4:()=>ex,q7:()=>ey,wn:()=>eE});var r=n(50405),i=n(47868),o=n(94385),a=n(53377),s=n(25400),l=n(88111),c=n(17062),u=n(80944),h=n(40016),d=n(64714),f=n(11744),p=n(47120
2),m=n(14207),g=n(14017),v=n(84055),y=n(26999),b=n(61108),x=n(13616),w=n(91654),k=n(46838),S=n(70480),M=n(59484),A=n(47661),E=n(20094),C=n(49793),O=[" ","Enter","ArrowUp","ArrowDown"],P=[" ","Enter"],T="Select",[D,R,j]=(0,s.N)(T),[I,z]=(0,c.A)(T,[j,m.Bk]),_=(0,m.Bk)(),[L,N]=I(T),[B,F]=I(T);function V(e){let{__scopeSelect:t,children:n,open:i,defaultOpen:o,onOpenChange:a,value:s,defaultValue:l,onValueChange:c,dir:h,name:d,autoComplete:f,disabled:g,required:v,form:y,internal_do_not_use_render:b}=e,x=_(t),[k,S]=r.useState(null),[M,A]=r.useState(null),[E,O]=r.useState(!1),P=(0,u.jH)(h),[R,j]=(0,w.i)({prop:i,defaultProp:o??!1,onChange:a,caller:T}),[I,z]=(0,w.i)({prop:s,defaultProp:l,onChange:c,caller:T}),N=r.useRef(null),F=!k||!!y||!!k.closest("form"),[V,H]=r.useState(new Set),W=(0,p.B)(),$=Array.from(V).map(e=>e.props.value).join(";"),U=r.useCallback(e=>{H(t=>new Set(t).add(e))},[]),K=r.useCallback(e=>{H(t=>{let n=new Set(t);return n.delete(e),n})},[]),q={required:v,trigger:k,onTriggerChange:S,valueNode:M,onValueNodeChange:A,valueNodeHasChildren:E,onValueNodeHasChildrenChange:O,contentId:W,value:I,onValueChange:z,open:R,onOpenChange:j,dir:P,triggerPointerDownPosRef:N,disabled:g,name:d,autoComplete:f,form:y,nativeOptions:V,nativeSelectKey:$,isFormControl:F};return(0,C.jsx)(m.bL,{...x,children:(0,C.jsx)(L,{scope:t,...q,children:(0,C.jsx)(D.Provider,{scope:t,children:(0,C.jsx)(B,{scope:t,onNativeOptionAdd:U,onNativeOptionRemove:K,children:"function"==typeof b?b(q):n})})})})}V.displayName="SelectProvider";var H=e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,C.jsx)(V,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:e})=>(0,C.jsxs)(C.Fragment,{children:[n,e?(0,C.jsx)(eT,{__scopeSelect:t}):null]})})};H.displayName=T;var W="SelectTrigger",$=r.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:i=!1,...o}=e,s=_(n),c=N(W,n),u=c.disabled||i,h=(0,l.s)(t,c.onTriggerChange),d=R(n),f=r.useRef("touch"),[p,g,v]=eR(e=>{let t=d().filter(e=>!e.disabled),n=t.find(e=>e.value===c.value),r=ej(t,e,n);void 0!==r&&c.onValueChange(r.value)}),b=e=>{u||(c.onOpenChange(!0),v()),e&&(c.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,C.jsx)(m.Mz,{asChild:!0,...s,children:(0,C.jsx)(y.sG.button,{type:"button",role:"combobox","aria-controls":c.open?c.contentId:void 0,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":eD(c.value)?"":void 0,...o,ref:h,onClick:(0,a.mK)(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==f.current&&b(e)}),onPointerDown:(0,a.mK)(o.onPointerDown,e=>{f.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(b(e),e.preventDefault())}),onKeyDown:(0,a.mK)(o.onKeyDown,e=>{let t=""!==p.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||g(e.key),(!t||" "!==e.key)&&O.includes(e.key)&&(b(),e.preventDefault())})})})});$.displayName=W;var U="SelectValue",K=r.forwardRef((e,t)=>{let{__scopeSelect:n,className:i,style:o,children:a,placeholder:s="",...c}=e,u=N(U,n),{onValueNodeHasChildrenChange:h}=u,d=void 0!==a,f=(0,l.s)(t,u.onValueNodeChange);(0,k.N)(()=>{h(d)},[h,d]);let p=eD(u.value);return(0,C.jsx)(y.sG.span,{...c,asChild:!p&&c.asChild,ref:f,style:{pointerEvents:"none"},children:(0,C.jsx)(r.Fragment,{children:p?s:a},p?"placeholder":"value")})});K.displayName=U;var q=r.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...i}=e;return(0,C.jsx)(y.sG.span,{"aria-hidden":!0,...i,ref:t,children:r||"▼"})});q.displayName="SelectIcon";var G="SelectPortal",[Z,Y]=I(G,{forceMount:void 0}),X=e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,C.jsx)(Z,{scope:e.__scopeSelect,forceMount:n,children:(0,C.jsx)(g.Z,{asChild:!0,...r})})};X.displayName=G;var J="SelectContent",Q=r.forwardRef((e,t)=>{let n=Y(J,e.__scopeSelect),{forceMount:i=n.forceMount,...o}=e,a=N(J,e.__scopeSelect),[s,l]=r.useState();return(0,k.N)(()=>{l(new DocumentFragment)},[]),(0,C.jsx)(v.C,{present:i||a.open,children:({present:e})=>e?(0,C.jsx)(ei,{...o,ref:t}):(0,C.jsx)(ee,{...o,fragment:s})})});Q.displayName=J;var ee=r.forwardRef((e,t)=>
2{let{__scopeSelect:n,children:r,fragment:o}=e;return o?i.createPortal((0,C.jsx)(et,{scope:n,children:(0,C.jsx)(D.Slot,{scope:n,children:(0,C.jsx)("div",{ref:t,children:r})})}),o):null});ee.displayName="SelectContentFragment";var[et,en]=I(J),er=(0,b.TL)("SelectContent.RemoveScroll"),ei=r.forwardRef((e,t)=>{let{__scopeSelect:n}=e,{position:i="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:c,side:u,sideOffset:p,align:m,alignOffset:g,arrowPadding:v,collisionBoundary:y,collisionPadding:b,sticky:x,hideWhenDetached:w,avoidCollisions:k,...S}=e,M=N(J,n),[O,P]=r.useState(null),[T,D]=r.useState(null),j=(0,l.s)(t,e=>P(e)),[I,z]=r.useState(null),[_,L]=r.useState(null),B=R(n),[F,V]=r.useState(!1),H=r.useRef(!1);r.useEffect(()=>{if(O)return(0,A.Eq)(O)},[O]),(0,d.Oh)();let W=r.useCallback(e=>{let[t,...n]=B().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:"nearest"}),n===t&&T&&(T.scrollTop=0),n===r&&T&&(T.scrollTop=T.scrollHeight),n?.focus(),document.activeElement!==i))return},[B,T]),$=r.useCallback(()=>W([I,O]),[W,I,O]);r.useEffect(()=>{F&&$()},[F,$]);let{onOpenChange:U,triggerPointerDownPosRef:K}=M;r.useEffect(()=>{if(O){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(K.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(K.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(O)||U(!1),document.removeEventListener("pointermove",t),K.current=null};return null!==K.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[O,U,K]),r.useEffect(()=>{let e=()=>U(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[U]);let[q,G]=eR(e=>{let t=B().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=ej(t,e,n);r&&setTimeout(()=>r.ref.current?.focus())}),Z=r.useCallback((e,t,n)=>{let r=!H.current&&!n;(void 0!==M.value&&M.value===t||r)&&(z(e),r&&(H.current=!0))},[M.value]),Y=r.useCallback(()=>O?.focus(),[O]),X=r.useCallback((e,t,n)=>{let r=!H.current&&!n;(void 0!==M.value&&M.value===t||r)&&L(e)},[M.value]),Q="popper"===i?ea:eo,ee=Q===ea?{side:u,sideOffset:p,align:m,alignOffset:g,arrowPadding:v,collisionBoundary:y,collisionPadding:b,sticky:x,hideWhenDetached:w,avoidCollisions:k}:{};return(0,C.jsx)(et,{scope:n,content:O,viewport:T,onViewportChange:D,itemRefCallback:Z,selectedItem:I,onItemLeave:Y,itemTextRefCallback:X,focusSelectedItem:$,selectedItemText:_,position:i,isPositioned:F,searchRef:q,children:(0,C.jsx)(E.A,{as:er,allowPinchZoom:!0,children:(0,C.jsx)(f.n,{asChild:!0,trapped:M.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,a.mK)(o,e=>{M.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,C.jsx)(h.qW,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>M.onOpenChange(!1),children:(0,C.jsx)(Q,{role:"listbox",id:M.contentId,"data-state":M.open?"open":"closed",dir:M.dir,onContextMenu:e=>e.preventDefault(),...S,...ee,onPlaced:()=>V(!0),ref:j,style:{display:"flex",flexDirection:"column",outline:"none",...S.style},onKeyDown:(0,a.mK)(S.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||G(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=B().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>W(t)),e.preventDefault()}})})})})})})});ei.displayName="SelectContentImpl";var eo=r.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:i,...a}=e,s=N(J,n),c=en(J,n),[u,h]=r.useState(null),[d,f]=r.useState(null),p=(0,l.s)(t,e=>f(e)),m=R(n),g=r.useRef(!1),v=r.useRef(!0),{viewport:b,selectedItem:x,selectedItemText:w,focusSelectedItem:S}=c,M=r.useCallback(()=>
2{if(s.trigger&&s.valueNode&&u&&d&&b&&x&&w){let e=s.trigger.getBoundingClientRect(),t=d.getBoundingClientRect(),n=s.valueNode.getBoundingClientRect(),r=w.getBoundingClientRect();if("rtl"!==s.dir){let i=r.left-t.left,a=n.left-i,s=e.left-a,l=e.width+s,c=Math.max(l,t.width),h=window.innerWidth-10,d=(0,o.q)(a,[10,Math.max(10,h-c)]);u.style.minWidth=l+"px",u.style.left=d+"px"}else{let i=t.right-r.right,a=window.innerWidth-n.right-i,s=window.innerWidth-e.right-a,l=e.width+s,c=Math.max(l,t.width),h=window.innerWidth-10,d=(0,o.q)(a,[10,Math.max(10,h-c)]);u.style.minWidth=l+"px",u.style.right=d+"px"}let a=m(),l=window.innerHeight-20,c=b.scrollHeight,h=window.getComputedStyle(d),f=parseInt(h.borderTopWidth,10),p=parseInt(h.paddingTop,10),v=parseInt(h.borderBottomWidth,10),y=f+p+c+parseInt(h.paddingBottom,10)+v,k=Math.min(5*x.offsetHeight,y),S=window.getComputedStyle(b),M=parseInt(S.paddingTop,10),A=parseInt(S.paddingBottom,10),E=e.top+e.height/2-10,C=x.offsetHeight/2,O=f+p+(x.offsetTop+C);if(O<=E){let e=a.length>0&&x===a[a.length-1].ref.current;u.style.bottom="0px";let t=Math.max(l-E,C+(e?A:0)+(d.clientHeight-b.offsetTop-b.offsetHeight)+v);u.style.height=O+t+"px"}else{let e=a.length>0&&x===a[0].ref.current;u.style.top="0px";let t=Math.max(E,f+b.offsetTop+(e?M:0)+C);u.style.height=t+(y-O)+"px",b.scrollTop=O-E+b.offsetTop}u.style.margin="10px 0",u.style.minHeight=k+"px",u.style.maxHeight=l+"px",i?.(),requestAnimationFrame(()=>g.current=!0)}},[m,s.trigger,s.valueNode,u,d,b,x,w,s.dir,i]);(0,k.N)(()=>M(),[M]);let[A,E]=r.useState();(0,k.N)(()=>{d&&E(window.getComputedStyle(d).zIndex)},[d]);let O=r.useCallback(e=>{e&&!0===v.current&&(M(),S?.(),v.current=!1)},[M,S]);return(0,C.jsx)(es,{scope:n,contentWrapper:u,shouldExpandOnScrollRef:g,onScrollButtonChange:O,children:(0,C.jsx)("div",{ref:h,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:A},children:(0,C.jsx)(y.sG.div,{...a,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});eo.displayName="SelectItemAlignedPosition";var ea=r.forwardRef((e,t)=>{let{__scopeSelect:n,align:r="start",collisionPadding:i=10,...o}=e,a=_(n);return(0,C.jsx)(m.UC,{...a,...o,ref:t,align:r,collisionPadding:i,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});ea.displayName="SelectPopperPosition";var[es,el]=I(J,{}),ec="SelectViewport",eu=r.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:i,...o}=e,s=en(ec,n),c=el(ec,n),u=(0,l.s)(t,s.onViewportChange),h=r.useRef(0);return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),(0,C.jsx)(D.Slot,{scope:n,children:(0,C.jsx)(y.sG.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:(0,a.mK)(o.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=c;if(r?.current&&n){let e=Math.abs(h.current-t.scrollTop);if(e>0){let r=window.innerHeight-20,i=Math.max(parseFloat(n.style.minHeight),parseFloat(n.style.height));if(i<r){let o=i+e,a=Math.min(r,o),s=o-a;n.style.height=a+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}h.current=t.scrollTop})})})]})});eu.displayName=ec;var eh="SelectGroup",[ed,ef]=I(eh);r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=(0,p.B)();return(0,C.jsx)(ed,{scope:n,id:i,children:(0,C.jsx)(y.sG.div,{role:"group","aria-labelledby":i,...r,ref:t})})}).displayName=eh;var ep="SelectLabel";r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=ef(ep,n);return(0,C.jsx)(y.sG.div,{id:i.id,...r,ref:t})}).displayName=ep;var em="SelectItem",[eg,ev]=I(em),ey=r.forwardRef((e,t)=>
2{let{__scopeSelect:n,value:i,disabled:o=!1,textValue:s,...c}=e,u=N(em,n),h=en(em,n),d=u.value===i,[f,m]=r.useState(s??""),[g,v]=r.useState(!1),b=(0,l.s)(t,e=>h.itemRefCallback?.(e,i,o)),x=(0,p.B)(),w=r.useRef("touch"),k=()=>{o||(u.onValueChange(i),u.onOpenChange(!1))};return(0,C.jsx)(eg,{scope:n,value:i,disabled:o,textId:x,isSelected:d,onItemTextChange:r.useCallback(e=>{m(t=>t||(e?.textContent??"").trim())},[]),children:(0,C.jsx)(D.ItemSlot,{scope:n,value:i,disabled:o,textValue:f,children:(0,C.jsx)(y.sG.div,{role:"option","aria-labelledby":x,"data-highlighted":g?"":void 0,"aria-selected":d&&g,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...c,ref:b,onFocus:(0,a.mK)(c.onFocus,()=>v(!0)),onBlur:(0,a.mK)(c.onBlur,()=>v(!1)),onClick:(0,a.mK)(c.onClick,()=>{"mouse"!==w.current&&k()}),onPointerUp:(0,a.mK)(c.onPointerUp,()=>{"mouse"===w.current&&k()}),onPointerDown:(0,a.mK)(c.onPointerDown,e=>{w.current=e.pointerType}),onPointerMove:(0,a.mK)(c.onPointerMove,e=>{w.current=e.pointerType,o?h.onItemLeave?.():"mouse"===w.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,a.mK)(c.onPointerLeave,e=>{e.currentTarget===document.activeElement&&h.onItemLeave?.()}),onKeyDown:(0,a.mK)(c.onKeyDown,e=>{(h.searchRef?.current===""||" "!==e.key)&&(P.includes(e.key)&&k()," "===e.key&&e.preventDefault())})})})})});ey.displayName=em;var eb="SelectItemText",ex=r.forwardRef((e,t)=>{let{__scopeSelect:n,className:o,style:a,...s}=e,c=N(eb,n),u=en(eb,n),h=ev(eb,n),d=F(eb,n),[f,p]=r.useState(null),m=(0,l.s)(t,e=>p(e),h.onItemTextChange,e=>u.itemTextRefCallback?.(e,h.value,h.disabled)),g=f?.textContent,v=r.useMemo(()=>(0,C.jsx)("option",{value:h.value,disabled:h.disabled,children:g},h.value),[h.disabled,h.value,g]),{onNativeOptionAdd:b,onNativeOptionRemove:x}=d;return(0,k.N)(()=>(b(v),()=>x(v)),[b,x,v]),(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(y.sG.span,{id:h.textId,...s,ref:m}),h.isSelected&&c.valueNode&&!c.valueNodeHasChildren&&!eD(c.value)?i.createPortal(s.children,c.valueNode):null]})});ex.displayName=eb;var ew="SelectItemIndicator",ek=r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return ev(ew,n).isSelected?(0,C.jsx)(y.sG.span,{"aria-hidden":!0,...r,ref:t}):null});ek.displayName=ew;var eS="SelectScrollUpButton",eM=r.forwardRef((e,t)=>{let n=en(eS,e.__scopeSelect),i=el(eS,e.__scopeSelect),[o,a]=r.useState(!1),s=(0,l.s)(t,i.onScrollButtonChange);return(0,k.N)(()=>{if(n.viewport&&n.isPositioned){let e=function(){a(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,C.jsx)(eC,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});eM.displayName=eS;var eA="SelectScrollDownButton",eE=r.forwardRef((e,t)=>{let n=en(eA,e.__scopeSelect),i=el(eA,e.__scopeSelect),[o,a]=r.useState(!1),s=(0,l.s)(t,i.onScrollButtonChange);return(0,k.N)(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)<e)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,C.jsx)(eC,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});eE.displayName=eA;var eC=r.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:i,...o}=e,s=en("SelectScrollButton",n),l=r.useRef(null),c=R(n),u=r.useCallback(()=>{null!==l.current&&(window.clearInterval(l.current),l.current=null)},[]);return r.useEffect(()=>()=>u(),[u]),(0,k.N)(()=>{let e=c().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[c]),(0,C.jsx)(y.sG.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:(0,a.mK)(o.onPointerDown,()=>{null===l.current&&(l.current=window.setInterval(i,50))}),onPointerMove:(0,a.mK)(o.onPointerMove,()=>{s.onItemLeave?.(),null===l.current&&(l.current=window.setInterval(i,50))}),onPointerLeave:(0,a.mK)(o.onPointerLeave,()=>{u()})})});r.forwardRef((e,t)=>
2{let{__scopeSelect:n,...r}=e;return(0,C.jsx)(y.sG.div,{"aria-hidden":!0,...r,ref:t})}).displayName="SelectSeparator";var eO="SelectArrow";r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=_(n);return"popper"===en(eO,n).position?(0,C.jsx)(m.i3,{...i,...r,ref:t}):null}).displayName=eO;var eP="SelectBubbleInput",eT=r.forwardRef(({__scopeSelect:e,...t},n)=>{let i=N(eP,e),{value:o,onValueChange:a,required:s,disabled:c,name:u,autoComplete:h,form:d}=i,{nativeOptions:f,nativeSelectKey:p}=i,m=r.useRef(null),g=(0,l.s)(n,m),v=o??"",b=(0,S.Z)(v),x=Array.from(f).some(e=>(e.props.value??"")==="");return r.useEffect(()=>{let e=m.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(b!==v&&t){let n=new Event("change",{bubbles:!0});t.call(e,v),e.dispatchEvent(n)}},[b,v]),(0,C.jsxs)(y.sG.select,{"aria-hidden":!0,required:s,tabIndex:-1,name:u,autoComplete:h,disabled:c,form:d,onChange:e=>a(e.target.value),...t,style:{...M.Qg,...t.style},ref:g,defaultValue:v,children:[eD(o)&&!x?(0,C.jsx)("option",{value:""}):null,Array.from(f)]},p)});function eD(e){return""===e||void 0===e}function eR(e){let t=(0,x.c)(e),n=r.useRef(""),i=r.useRef(0),o=r.useCallback(e=>{let r=n.current+e;t(r),function e(t){n.current=t,window.clearTimeout(i.current),""!==t&&(i.current=window.setTimeout(()=>e(""),1e3))}(r)},[t]),a=r.useCallback(()=>{n.current="",window.clearTimeout(i.current)},[]);return r.useEffect(()=>()=>window.clearTimeout(i.current),[]),[n,o,a]}function ej(e,t,n){var r,i;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=n?e.indexOf(n):-1,s=(r=e,i=Math.max(a,0),r.map((e,t)=>r[(i+t)%r.length]));1===o.length&&(s=s.filter(e=>e!==n));let l=s.find(e=>e.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}eT.displayName=eP},70858(e,t,n){"use strict";n.d(t,{CC:()=>j,Q6:()=>z,bL:()=>E,zi:()=>W});var r=n(50405),i=n(94385),o=n(53377),a=n(88111),s=n(17062),l=n(91654),c=n(80944),u=n(70480),h=n(58024),d=n(26999),f=n(25400),p=n(49793),m=["PageUp","PageDown"],g=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],v={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},y="Slider",[b,x,w]=(0,f.N)(y),[k,S]=(0,s.A)(y,[w]),[M,A]=k(y),E=r.forwardRef((e,t)=>{let{name:n,min:a=0,max:s=100,step:c=1,orientation:u="horizontal",disabled:h=!1,minStepsBetweenThumbs:d=0,defaultValue:f=[a],value:v,onValueChange:y=()=>{},onValueCommit:x=()=>{},inverted:w=!1,form:k,...S}=e,A=r.useRef(new Set),E=r.useRef(0),C=r.useRef(!1),O="horizontal"===u,[D=[],R]=(0,l.i)({prop:v,defaultProp:f,onChange:e=>{let t=[...A.current];t[E.current]?.focus({preventScroll:!0,focusVisible:C.current}),C.current=!1,y(e)}}),j=r.useRef(D);function I(e,t,{commit:n}={commit:!1}){let r,o=function(e){if(!Number.isFinite(e))return 0;let t=e.toString();if(t.includes("e")){let[e,n]=t.split("e"),r=e.split(".")[1]||"",i=Number(n);return Math.max(0,r.length-i)}let n=t.split(".")[1];return n?n.length:0}(c),l=Math.round((Math.round((e-a)/c)*c+a)*(r=Math.pow(10,o)))/r,u=(0,i.q)(l,[a,s]);R((e=[])=>{let r=function(e=[],t,n){let r=[...e];return r[n]=t,r.sort((e,t)=>e-t)}(e,u,t);if(!function(e,t){if(t>0)return Math.min(...e.slice(0,-1).map((t,n)=>e[n+1]-t))>=t;return!0}(r,d*c))return e;{E.current=r.indexOf(u);let t=String(r)!==String(e);return t&&n&&x(r),t?r:e}})}return(0,p.jsx)(M,{scope:e.__scopeSlider,name:n,disabled:h,min:a,max:s,valueIndexToChangeRef:E,thumbs:A.current,values:D,orientation:u,form:k,children:(0,p.jsx)(b.Provider,{scope:e.__scopeSlider,children:(0,p.jsx)(b.Slot,{scope:e.__scopeSlider,children:(0,p.jsx)(O?P:T,{"aria-disabled":h,"data-disabled":h?"":void 0,...S,ref:t,onPointerDown:(0,o.mK)(S.onPointerDown,()=>{h||(j.current=D,C.current=!1)}),min:a,max:s,inverted:w,onSlideStart:h?void 0:function(e){let t=function(e,t){if(1===e.length)return 0;let n=e.map(e=>Math.abs(e-t)),r=Math.min(...n);return n.indexOf(r)}(D,e);I(e,t)},onSlideMove:h?void 0:function(e){I(e,E.current)},onSlideEnd:h?void 0:function(){let e=j.current[E.current];D[E.current]!==e&&x(D)},onHomeKeyDown:()=>{h||(C.current=!0,I(a,0,{commit:!0}))},onEndKeyDown:()=>{h||(C.current=!0,I(s,D.length-1,{commit:!0}))},onStepKeyDown:({event:e,direction:t})=>{if(!h){C.current=!0;
2let n=m.includes(e.key)||e.shiftKey&&g.includes(e.key),r=E.current;I(D[r]+c*(n?10:1)*t,r,{commit:!0})}}})})})})});E.displayName=y;var[C,O]=k(y,{startEdge:"left",endEdge:"right",size:"width",direction:1}),P=r.forwardRef((e,t)=>{let{min:n,max:i,dir:o,inverted:s,onSlideStart:l,onSlideMove:u,onSlideEnd:h,onStepKeyDown:d,...f}=e,[m,g]=r.useState(null),y=(0,a.s)(t,e=>g(e)),b=r.useRef(void 0),x=(0,c.jH)(o),w="ltr"===x,k=w&&!s||!w&&s;function S(e){let t=b.current||m.getBoundingClientRect(),r=q([0,t.width],k?[n,i]:[i,n]);return b.current=t,r(e-t.left)}return(0,p.jsx)(C,{scope:e.__scopeSlider,startEdge:k?"left":"right",endEdge:k?"right":"left",direction:k?1:-1,size:"width",children:(0,p.jsx)(D,{dir:x,"data-orientation":"horizontal",...f,ref:y,style:{...f.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{let t=S(e.clientX);l?.(t)},onSlideMove:e=>{let t=S(e.clientX);u?.(t)},onSlideEnd:()=>{b.current=void 0,h?.()},onStepKeyDown:e=>{let t=v[k?"from-left":"from-right"].includes(e.key);d?.({event:e,direction:t?-1:1})}})})}),T=r.forwardRef((e,t)=>{let{min:n,max:i,inverted:o,onSlideStart:s,onSlideMove:l,onSlideEnd:c,onStepKeyDown:u,...h}=e,d=r.useRef(null),f=(0,a.s)(t,d),m=r.useRef(void 0),g=!o;function y(e){let t=m.current||d.current.getBoundingClientRect(),r=q([0,t.height],g?[i,n]:[n,i]);return m.current=t,r(e-t.top)}return(0,p.jsx)(C,{scope:e.__scopeSlider,startEdge:g?"bottom":"top",endEdge:g?"top":"bottom",size:"height",direction:g?1:-1,children:(0,p.jsx)(D,{"data-orientation":"vertical",...h,ref:f,style:{...h.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{let t=y(e.clientY);s?.(t)},onSlideMove:e=>{let t=y(e.clientY);l?.(t)},onSlideEnd:()=>{m.current=void 0,c?.()},onStepKeyDown:e=>{let t=v[g?"from-bottom":"from-top"].includes(e.key);u?.({event:e,direction:t?-1:1})}})})}),D=r.forwardRef((e,t)=>{let{__scopeSlider:n,onSlideStart:r,onSlideMove:i,onSlideEnd:a,onHomeKeyDown:s,onEndKeyDown:l,onStepKeyDown:c,...u}=e,h=A(y,n);return(0,p.jsx)(d.sG.span,{...u,ref:t,onKeyDown:(0,o.mK)(e.onKeyDown,e=>{"Home"===e.key?(s(e),e.preventDefault()):"End"===e.key?(l(e),e.preventDefault()):m.concat(g).includes(e.key)&&(c(e),e.preventDefault())}),onPointerDown:(0,o.mK)(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),h.thumbs.has(t)?t.focus({preventScroll:!0,focusVisible:!1}):r(e)}),onPointerMove:(0,o.mK)(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&i(e)}),onPointerUp:(0,o.mK)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),a(e))})})}),R="SliderTrack",j=r.forwardRef((e,t)=>{let{__scopeSlider:n,...r}=e,i=A(R,n);return(0,p.jsx)(d.sG.span,{"data-disabled":i.disabled?"":void 0,"data-orientation":i.orientation,...r,ref:t})});j.displayName=R;var I="SliderRange",z=r.forwardRef((e,t)=>{let{__scopeSlider:n,...i}=e,o=A(I,n),s=O(I,n),l=r.useRef(null),c=(0,a.s)(t,l),u=o.values.length,h=o.values.map(e=>K(e,o.min,o.max)),f=u>1?Math.min(...h):0,m=100-Math.max(...h);return(0,p.jsx)(d.sG.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...i,ref:c,style:{...e.style,[s.startEdge]:f+"%",[s.endEdge]:m+"%"}})});z.displayName=I;var _="SliderThumb",[L,N]=k(_),B="SliderThumbProvider";function F(e){let{__scopeSlider:t,name:n,children:i,internal_do_not_use_render:o}=e,a=A(B,t),s=x(t),[l,c]=r.useState(null),u=r.useMemo(()=>l?s().findIndex(e=>e.ref.current===l):-1,[s,l]),d=(0,h.X)(l),f=!l||!!a.form||!!l.closest("form"),m=a.values[u],g=n??(a.name?a.name+(a.values.length>1?"[]":""):void 0),v=void 0===m?0:K(m,a.min,a.max);r.useEffect(()=>{if(l)return a.thumbs.add(l),()=>{a.thumbs.delete(l)}},[l,a.thumbs]);let y={value:m,name:g,form:a.form,isFormControl:f,index:u,thumb:l,onThumbChange:c,percent:v,size:d};return(0,p.jsx)(L,{scope:t,...y,children:"function"==typeof o?o(y):i})}F.displayName=B;var V="SliderThumbTrigger",H=r.forwardRef((e,t)=>{var n,r,i,s,l;let c,u,{__scopeSlider:h,...f}=e,m=A(V,h),g=O(V,h),{index:v,value:y,percent:x,size:w,onThumbChange:k}=N(V,h),S=(0,a.s)(t,e=>k(e)),M=(n=v,(r=m.values.length)>2?`Value ${n+1} of ${r}`:2===r?["Minimum","Maximum"][n]:void 0),E=w?.[g.size],C=E?(i=E,s=x,l=g.direction,u=q([0,50],[0,c=i/2]),(c-u(s)*l)*l):0;return(0,p.jsx)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[g.startEdge]:`calc(${x}% + ${C}px)`},children:(0,p.jsx)(b.ItemSlot,{scope:h,children:(0,p.jsx)(d.sG.span,{role:"slider","aria-label":e["aria-label"]||M,"aria-valuemin":m.min,"aria-valuenow":y,"aria-valuemax":m.max,"aria-orientation":m.orientation,"data-orientation":m.orientation,"data-disabled":m.disabled?"":void 0,tabIndex:m.disabled?void 0:0,...f,ref:S,style:void 0===y?{display:"none"}:e.style,onFocus:(0,o.mK)(e.onFocus,()=>{m.valueIndexToChangeRef.current=v})})})})});H.displayName=V;var W=r.forwardRef((e,t)=>
2{let{__scopeSlider:n,name:r,...i}=e;return(0,p.jsx)(F,{__scopeSlider:n,name:r,internal_do_not_use_render:({index:e,isFormControl:r})=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(H,{...i,ref:t,__scopeSlider:n}),r?(0,p.jsx)(U,{__scopeSlider:n},e):null]})})});W.displayName=_;var $="SliderBubbleInput",U=r.forwardRef(({__scopeSlider:e,...t},n)=>{let{value:i,name:o,form:s}=N($,e),l=r.useRef(null),c=(0,a.s)(l,n),h=(0,u.Z)(i);return r.useEffect(()=>{let e=l.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set;if(h!==i&&t){let n=new Event("input",{bubbles:!0});t.call(e,i),e.dispatchEvent(n)}},[h,i]),(0,p.jsx)(d.sG.input,{style:{display:"none"},name:o,form:s,...t,ref:c,defaultValue:i})});function K(e,t,n){return(0,i.q)(100/(n-t)*(e-t),[0,100])}function q(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}U.displayName=$},61108(e,t,n){"use strict";n.d(t,{Dc:()=>l,TL:()=>a});var r,i=n(50405),o=n(88111);function a(e){let t=i.forwardRef((t,n)=>{var r;let a,l,{children:u,...m}=t,g=null,v=!1,y=[];h(u)&&"function"==typeof p&&(u=p(u._payload)),i.Children.forEach(u,e=>{var t;if(t=e,i.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===s){v=!0;let t="child"in e.props?e.props.child:e.props.children;h(t)&&"function"==typeof p&&(t=p(t._payload)),g=c(e,t),y.push(g?.props?.children)}else y.push(e)}),g?g=i.cloneElement(g,void 0,y):!v&&1===i.Children.count(u)&&i.isValidElement(u)&&(g=u);let b=g?(r=g,(l=(a=Object.getOwnPropertyDescriptor(r.props,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?r.ref:(l=(a=Object.getOwnPropertyDescriptor(r,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?r.props.ref:r.props.ref||r.ref):void 0,x=(0,o.s)(n,b);if(!g){if(u||0===u)throw Error(v?f(e):d(e));return u}let w=function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(m,g.props??{});return g.type!==i.Fragment&&(w.ref=n?x:b),i.cloneElement(g,w)});return t.displayName=`${e}.Slot`,t}var s=Symbol.for("radix.slottable");function l(e){let t=e=>"child"in e?e.children(e.child):e.children;return t.displayName=`${e}.Slottable`,t.__radixId=s,t}var c=(e,t)=>{if("child"in e.props){let t=e.props.child;return i.isValidElement(t)?i.cloneElement(t,void 0,e.props.children(t.props.children)):null}return i.isValidElement(t)?t:null},u=Symbol.for("react.lazy");function h(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===u&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var d=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,f=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,p=(r||(r=n.t(i,2)))[" use ".trim().toString()]},49877(e,t,n){"use strict";n.d(t,{bL:()=>x,zi:()=>k});var r=n(50405),i=n(53377),o=n(88111),a=n(17062),s=n(91654),l=n(70480),c=n(58024),u=n(26999),h=n(49793),d="Switch",[f,p]=(0,a.A)(d),[m,g]=f(d);function v(e){let{__scopeSwitch:t,checked:n,children:i,defaultChecked:o,disabled:a,form:l,name:c,onCheckedChange:u,required:f,value:p="on",internal_do_not_use_render:g}=e,[v,y]=(0,s.i)({prop:n,defaultProp:o??!1,onChange:u,caller:d}),[b,x]=r.useState(null),[w,k]=r.useState(null),S=r.useRef(!1),M=!b||!!l||!!b.closest("form"),A={checked:v,setChecked:y,disabled:a,control:b,setControl:x,name:c,form:l,value:p,hasConsumerStoppedPropagationRef:S,required:f,defaultChecked:o,isFormControl:M,bubbleInput:w,setBubbleInput:k};return(0,h.jsx)(m,{scope:t,...A,children:"function"==typeof g?g(A):i})}var y="SwitchTrigger",b=r.forwardRef(({__scopeSwitch:e,onClick:t,...n},r)=>{let{value:a,disabled:s,checked:l,required:c,setControl:d,setChecked:f,hasConsumerStoppedPropagationRef:p,isFormControl:m,bubbleInput:v}=g(y,e),b=(0,o.s)(r,d);return(0,h.jsx)(u.sG.button,{type:"button",role:"switch","aria-checked":l,"aria-required":c,"data-state":A(l),"data-disabled":s?"":void 0,disabled:s,value:a,...n,ref:b,onClick:(0,i.mK)(t,e=>{f(e=>!e),v&&m&&(p.current=e.isPropagationStopped(),p.current||e.stopPropagation())})})});b.displayName=y;var x=r.forwardRef((e,t)=>
2{let{__scopeSwitch:n,name:r,checked:i,defaultChecked:o,required:a,disabled:s,value:l,onCheckedChange:c,form:u,...d}=e;return(0,h.jsx)(v,{__scopeSwitch:n,checked:i,defaultChecked:o,disabled:s,required:a,onCheckedChange:c,name:r,form:u,value:l,internal_do_not_use_render:({isFormControl:e})=>(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(b,{...d,ref:t,__scopeSwitch:n}),e&&(0,h.jsx)(M,{__scopeSwitch:n})]})})});x.displayName=d;var w="SwitchThumb",k=r.forwardRef((e,t)=>{let{__scopeSwitch:n,...r}=e,i=g(w,n);return(0,h.jsx)(u.sG.span,{"data-state":A(i.checked),"data-disabled":i.disabled?"":void 0,...r,ref:t})});k.displayName=w;var S="SwitchBubbleInput",M=r.forwardRef(({__scopeSwitch:e,...t},n)=>{let{control:i,hasConsumerStoppedPropagationRef:a,checked:s,defaultChecked:d,required:f,disabled:p,name:m,value:v,form:y,bubbleInput:b,setBubbleInput:x}=g(S,e),w=(0,o.s)(n,x),k=(0,l.Z)(s),M=(0,c.X)(i);r.useEffect(()=>{if(!b)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=!a.current;if(k!==s&&e){let n=new Event("click",{bubbles:t});e.call(b,s),b.dispatchEvent(n)}},[b,k,s,a]);let A=r.useRef(s);return(0,h.jsx)(u.sG.input,{type:"checkbox","aria-hidden":!0,defaultChecked:d??A.current,required:f,disabled:p,name:m,value:v,form:y,...t,tabIndex:-1,ref:w,style:{...t.style,...M,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function A(e){return e?"checked":"unchecked"}M.displayName=S},53366(e,t,n){"use strict";n.d(t,{B8:()=>P,UC:()=>D,bL:()=>O,l9:()=>T});var r=n(50405),i=n(53377),o=n(17062),a=n(53308),s=n(84055),l=n(26999),c=n(80944),u=n(91654),h=n(47120
2),d=n(49793),f="Tabs",[p,m]=(0,o.A)(f,[a.RG]),g=(0,a.RG)(),[v,y]=p(f),b=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:o,orientation:a="horizontal",dir:s,activationMode:p="automatic",...m}=e,g=(0,c.jH)(s),[y,b]=(0,u.i)({prop:r,onChange:i,defaultProp:o??"",caller:f});return(0,d.jsx)(v,{scope:n,baseId:(0,h.B)(),value:y,onValueChange:b,orientation:a,dir:g,activationMode:p,children:(0,d.jsx)(l.sG.div,{dir:g,"data-orientation":a,...m,ref:t})})});b.displayName=f;var x="TabsList",w=r.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...i}=e,o=y(x,n),s=g(n);return(0,d.jsx)(a.bL,{asChild:!0,...s,orientation:o.orientation,dir:o.dir,loop:r,children:(0,d.jsx)(l.sG.div,{role:"tablist","aria-orientation":o.orientation,...i,ref:t})})});w.displayName=x;var k="TabsTrigger",S=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:o=!1,...s}=e,c=y(k,n),u=g(n),h=E(c.baseId,r),f=C(c.baseId,r),p=r===c.value;return(0,d.jsx)(a.q7,{asChild:!0,...u,focusable:!o,active:p,children:(0,d.jsx)(l.sG.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":f,"data-state":p?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:h,...s,ref:t,onMouseDown:(0,i.mK)(e.onMouseDown,e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():c.onValueChange(r)}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&c.onValueChange(r)}),onFocus:(0,i.mK)(e.onFocus,()=>{let e="manual"!==c.activationMode;p||o||!e||c.onValueChange(r)})})})});S.displayName=k;var M="TabsContent",A=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:i,forceMount:o,children:a,...c}=e,u=y(M,n),h=E(u.baseId,i),f=C(u.baseId,i),p=i===u.value,m=r.useRef(p);return r.useEffect(()=>{let e=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,d.jsx)(s.C,{present:o||p,children:({present:n})=>(0,d.jsx)(l.sG.div,{"data-state":p?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":h,hidden:!n,id:f,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:n&&a})})});function E(e,t){return`${e}-trigger-${t}`}function C(e,t){return`${e}-content-${t}`}A.displayName=M;var O=b,P=w,T=S,D=A},15191(e,t,n){"use strict";n.d(t,{Kq:()=>W,UC:()=>q,ZL:()=>K,bL:()=>$,l9:()=>U});var r=n(50405),i=n(53377),o=n(88111),a=n(17062),s=n(40016),l=n(47120),c=n(14207),u=n(14017),h=n(84055),d=n(26999),f=n(61108),p=n(91654),m=n(59484),g=n(49793),[v,y]=(0,a.A)("Tooltip",[c.Bk]),b=(0,c.Bk)(),x="TooltipProvider",w="tooltip.open",[k,S]=v(x),M=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:i=300,disableHoverableContent:o=!1,children:a}=e,s=r.useRef(!0),l=r.useRef(!1),c=r.useRef(0);return r.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,g.jsx)(k,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:r.useCallback(()=>{i<=0||(window.clearTimeout(c.current),s.current=!1)},[i]),onClose:r.useCallback(()=>{i<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.current=!0,i))},[i]),isPointerInTransitRef:l,onPointerInTransitChange:r.useCallback(e=>{l.current=e},[]),disableHoverableContent:o,children:a})};M.displayName=x;var A="Tooltip",[E,C]=v(A),O=e=>{let{__scopeTooltip:t,children:n,open:i,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:u}=e,h=S(A,e.__scopeTooltip),d=b(t),[f,m]=r.useState(null),v=(0,l.B)(),y=r.useRef(0),x=s??h.disableHoverableContent,k=u??h.delayDuration,M=r.useRef(!1),[C,O]=(0,p.i)({prop:i,defaultProp:o??!1,onChange:e=>{e?(h.onOpen(),document.dispatchEvent(new CustomEvent(w))):h.onClose(),a?.(e)},caller:A}),P=r.useMemo(()=>C?M.current?"delayed-open":"instant-open":"closed",[C]),T=r.useCallback(()=>{window.clearTimeout(y.current),y.current=0,M.current=!1,O(!0)},[O]),D=r.useCallback(()=>{window.clearTimeout(y.current),y.current=0,O(!1)},[O]),R=r.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{M.current=!0,O(!0),y.current=0},k)},[k,O]);return r.useEffect(()=>()=>{y.current&&(window.clearTimeout(y.current),y.current=0)},[]),(0,g.jsx)(c.bL,{...d,children:(0,g.jsx)(E,{scope:t,contentId:v,open:C,stateAttribute:P,trigger:f,onTriggerChange:m,onTriggerEnter:r.useCallback(()=>{h.isOpenDelayedRef.current?R():T()},[h.isOpenDelayedRef,R,T]),onTriggerLeave:r.useCallback(()=>{x?D():(window.clearTimeout(y.current),y.current=0)},[D,x]),onOpen:T,onClose:D,disableHoverableContent:x,children:n})})};O.displayName=A;var P="TooltipTrigger",T=r.forwardRef((e,t)=>
2{let{__scopeTooltip:n,...a}=e,s=C(P,n),l=S(P,n),u=b(n),h=r.useRef(null),f=(0,o.s)(t,h,s.onTriggerChange),p=r.useRef(!1),m=r.useRef(!1),v=r.useCallback(()=>p.current=!1,[]);return r.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),(0,g.jsx)(c.Mz,{asChild:!0,...u,children:(0,g.jsx)(d.sG.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...a,ref:f,onPointerMove:(0,i.mK)(e.onPointerMove,e=>{"touch"!==e.pointerType&&(m.current||l.isPointerInTransitRef.current||(s.onTriggerEnter(),m.current=!0))}),onPointerLeave:(0,i.mK)(e.onPointerLeave,()=>{s.onTriggerLeave(),m.current=!1}),onPointerDown:(0,i.mK)(e.onPointerDown,()=>{s.open&&s.onClose(),p.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:(0,i.mK)(e.onFocus,()=>{p.current||s.onOpen()}),onBlur:(0,i.mK)(e.onBlur,s.onClose),onClick:(0,i.mK)(e.onClick,s.onClose)})})});T.displayName=P;var D="TooltipPortal",[R,j]=v(D,{forceMount:void 0}),I=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,o=C(D,t);return(0,g.jsx)(R,{scope:t,forceMount:n,children:(0,g.jsx)(h.C,{present:n||o.open,children:(0,g.jsx)(u.Z,{asChild:!0,container:i,children:r})})})};I.displayName=D;var z="TooltipContent",_=r.forwardRef((e,t)=>{let n=j(z,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=e,a=C(z,e.__scopeTooltip);return(0,g.jsx)(h.C,{present:r||a.open,children:a.disableHoverableContent?(0,g.jsx)(V,{side:i,...o,ref:t}):(0,g.jsx)(L,{side:i,...o,ref:t})})}),L=r.forwardRef((e,t)=>{let n=C(z,e.__scopeTooltip),i=S(z,e.__scopeTooltip),a=r.useRef(null),s=(0,o.s)(t,a),[l,c]=r.useState(null),{trigger:u,onClose:h}=n,d=a.current,{onPointerInTransitChange:f}=i,p=r.useCallback(()=>{c(null),f(!1)},[f]),m=r.useCallback((e,t)=>{let n,r=e.currentTarget,i={x:e.clientX,y:e.clientY},o=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw Error("unreachable")}}(i,r.getBoundingClientRect());c(((n=[...function(e,t,n=5){let r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(i,o),...function(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}(t.getBoundingClientRect())].slice()).sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:1*!!(e.y>t.y)),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(n))),f(!0)},[f]);return r.useEffect(()=>()=>p(),[p]),r.useEffect(()=>{if(u&&d){let e=e=>m(e,d),t=e=>m(e,u);return u.addEventListener("pointerleave",e),d.addEventListener("pointerleave",t),()=>{u.removeEventListener("pointerleave",e),d.removeEventListener("pointerleave",t)}}},[u,d,m,p]),r.useEffect(()=>{if(l){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=u?.contains(t)||d?.contains(t),i=!function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){let a=t[e],s=t[o],l=a.x,c=a.y,u=s.x,h=s.y;c>r!=h>r&&n<(u-l)*(r-c)/(h-c)+l&&(i=!i)}return i}(n,l);r?p():i&&(p(),h())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[u,d,l,h,p]),(0,g.jsx)(V,{...e,ref:s})}),[N,B]=v(A,{isInside:!1}),F=(0,f.Dc)("TooltipContent"),V=r.forwardRef((e,t)=>{let{__scopeTooltip:n,children:i,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:l,...u}=e,h=C(z,n),d=b(n),{onClose:f}=h;return r.useEffect(()=>(document.addEventListener(w,f),()=>document.removeEventListener(w,f)),[f]),r.useEffect(()=>{if(h.trigger){let e=e=>{e.target instanceof Node&&e.target.contains(h.trigger)&&f()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[h.trigger,f]),(0,g.jsx)(s.qW,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:f,children:(0,g.jsxs)(c.UC,{"data-state":h.stateAttribute,...d,...u,ref:t,style:{...u.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,g.jsx)(F,{children:i}),(0,g.jsx)(N,{scope:n,isInside:!0,children:(0,g.jsx)(m.bL,{id:h.contentId,role:"tooltip",children:o||i})})]})})});_.displayName=z;var H="TooltipArrow";r.forwardRef((e,t)=>
2{let{__scopeTooltip:n,...r}=e,i=b(n);return B(H,n).isInside?null:(0,g.jsx)(c.i3,{...i,...r,ref:t})}).displayName=H;var W=M,$=O,U=T,K=I,q=_},13616(e,t,n){"use strict";n.d(t,{c:()=>i});var r=n(50405);function i(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},91654(e,t,n){"use strict";n.d(t,{i:()=>s});var r,i=n(50405),o=n(46838),a=(r||(r=n.t(i,2)))[" useInsertionEffect ".trim().toString()]||o.N;function s({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[o,l,c]=function({defaultProp:e,onChange:t}){let[n,r]=i.useState(e),o=i.useRef(n),s=i.useRef(t);return a(()=>{s.current=t},[t]),i.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}({defaultProp:t,onChange:n}),u=void 0!==e,h=u?e:o;{let t=i.useRef(void 0!==e);i.useEffect(()=>{let e=t.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=u},[u,r])}return[h,i.useCallback(t=>{if(u){let n="function"==typeof t?t(e):t;n!==e&&c.current?.(n)}else l(t)},[u,e,l,c])]}Symbol("RADIX:SYNC_STATE")},46838(e,t,n){"use strict";n.d(t,{N:()=>i});var r=n(50405),i=globalThis?.document?r.useLayoutEffect:()=>{}},70480(e,t,n){"use strict";n.d(t,{Z:()=>i});var r=n(50405);function i(e){let t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},58024(e,t,n){"use strict";n.d(t,{X:()=>o});var r=n(50405),i=n(46838);function o(e){let[t,n]=r.useState(void 0);return(0,i.N)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}},59484(e,t,n){"use strict";n.d(t,{Qg:()=>a,bL:()=>l,s6:()=>s});var r=n(50405),i=n(26999),o=n(49793),a=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),s=r.forwardRef((e,t)=>(0,o.jsx)(i.sG.span,{...e,ref:t,style:{...a,...e.style}}));s.displayName="VisuallyHidden";var l=s},83867(e,t,n){"use strict";n.d(t,{U1:()=>g,VP:()=>l,Nc:()=>Y,Z0:()=>b,CF:()=>m,aA:()=>f});var r=n(436),i=n(90805);function o(e){return({dispatch:t,getState:n})=>r=>i=>"function"==typeof i?i(t,n,e):r(i)}var a=o(),s=(n(85409),"u">typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!=arguments.length)return"object"==typeof arguments[0]?i.Zz:i.Zz.apply(null,arguments)});function l(e,t){function n(...r){if(t){let n=t(...r);if(!n)throw Error(X(0));return{type:e,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>(0,i.ve)(t)&&t.type===e,n}"u">typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var c=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function u(e){return(0,r.a6)(e)?(0,r.jM)(e,()=>{}):e}function h(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}var d="RTK_autoBatch",f=()=>e=>({payload:e,meta:{[d]:!0}}),p=e=>t=>{setTimeout(t,e)},m=(e={type:"raf"})=>t=>(...n)=>{let r,i=t(...n),o=!0,a=!1,s=!1,l=new Set,c="tick"===e.type?queueMicrotask:"raf"===e.type?"u">typeof window&&window.requestAnimationFrame?(r=window.requestAnimationFrame,e=>{let t=!1,n=()=>{t||(t=!0,cancelAnimationFrame(i),clearTimeout(o),e())},i=r(n),o=setTimeout(n,100)}):p(10):"callback"===e.type?e.queueNotification:p(e.timeout),u=()=>
2{s=!1,a&&(a=!1,l.forEach(e=>e()))};return Object.assign({},i,{subscribe(e){let t=i.subscribe(()=>o&&e());return l.add(e),()=>{t(),l.delete(e)}},dispatch(e){try{return(a=!(o=!e?.meta?.[d]))&&!s&&(s=!0,c(u)),i.dispatch(e)}finally{o=!0}}})};function g(e){let t,n,r,l=function(e){let{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:i=!0}=e??{},s=new c;return t&&("boolean"==typeof t?s.push(a):s.push(o(t.extraArgument))),s},{reducer:u,middleware:h,devTools:d=!0,duplicateMiddlewareCheck:f=!0,preloadedState:p,enhancers:g}=e||{};if("function"==typeof u)t=u;else if((0,i.Qd)(u))t=(0,i.HY)(u);else throw Error(X(1));n="function"==typeof h?h(l):l();let v=i.Zz;d&&(v=s({trace:!1,..."object"==typeof d&&d}));let y=(r=(0,i.Tw)(...n),function(e){let{autoBatch:t=!0}=e??{},n=new c(r);return t&&n.push(m("object"==typeof t?t:void 0)),n}),b=v(..."function"==typeof g?g(y):y());return(0,i.y$)(t,p,b)}function v(e){let t,n={},r=[],i={addCase(e,t){let r="string"==typeof e?e:e.type;if(!r)throw Error(X(28));if(r in n)throw Error(X(29));return n[r]=t,i},addAsyncThunk:(e,t)=>(t.pending&&(n[e.pending.type]=t.pending),t.rejected&&(n[e.rejected.type]=t.rejected),t.fulfilled&&(n[e.fulfilled.type]=t.fulfilled),t.settled&&r.push({matcher:e.settled,reducer:t.settled}),i),addMatcher:(e,t)=>(r.push({matcher:e,reducer:t}),i),addDefaultCase:e=>(t=e,i)};return e(i),[n,r,t]}var y=Symbol.for("rtk-slice-createasyncthunk"),b=function({creators:e}={}){let t=e?.asyncThunk?.[y];return function(e){let n,{name:i,reducerPath:o=i}=e;if(!i)throw Error(X(11));let a=("function"==typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},s=Object.keys(a),c={},d={},f={},p=[],m={addCase(e,t){let n="string"==typeof e?e:e.type;if(!n)throw Error(X(12));if(n in d)throw Error(X(13));return d[n]=t,m},addMatcher:(e,t)=>(p.push({matcher:e,reducer:t}),m),exposeAction:(e,t)=>(f[e]=t,m),exposeCaseReducer:(e,t)=>(c[e]=t,m)};function g(){let[t={},n=[],i]="function"==typeof e.extraReducers?v(e.extraReducers):[e.extraReducers],o={...t,...d};return function(e,t){let n,[i,o,a]=v(t);if("function"==typeof e)n=()=>u(e());else{let t=u(e);n=()=>t}function s(e=n(),t){let l=[i[t.type],...o.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return 0===l.filter(e=>!!e).length&&(l=[a]),l.reduce((e,n)=>{if(n)if((0,r.Qx)(e)){let r=n(e,t);return void 0===r?e:r}else{if((0,r.a6)(e))return(0,r.jM)(e,e=>n(e,t));let i=n(e,t);if(void 0===i){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return i}return e},e)}return s.getInitialState=n,s}(e.initialState,e=>{for(let t in o)e.addCase(t,o[t]);for(let t of p)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);i&&e.addDefaultCase(i)})}s.forEach(n=>{let r=a[n],o={reducerName:n,type:`${i}/${n}`,createNotation:"function"==typeof e.reducers};"asyncThunk"===r._reducerDefinitionType?function({type:e,reducerName:t},n,r,i){if(!i)throw Error(X(18));let{payloadCreator:o,fulfilled:a,pending:s,rejected:l,settled:c,options:u}=n,h=i(e,o,u);r.exposeAction(t,h),a&&r.addCase(h.fulfilled,a),s&&r.addCase(h.pending,s),l&&r.addCase(h.rejected,l),c&&r.addMatcher(h.settled,c),r.exposeCaseReducer(t,{fulfilled:a||x,pending:s||x,rejected:l||x,settled:c||x})}(o,r,m,t):function({type:e,reducerName:t,createNotation:n},r,i){let o,a;if("reducer"in r){if(n&&"reducerWithPrepare"!==r._reducerDefinitionType)throw Error(X(17));o=r.reducer,a=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,a?l(e,a):l(e))}(o,r,m)});let y=e=>e,b=new Map,w=new WeakMap;function k(e,t){return n||(n=g()),n(e,t)}function S(){return n||(n=g()),n.getInitialState()}function M(t,n=!1){function r(e){let i=e[t];return void 0===i&&n&&(i=h(w,r,S)),i}function i(t=y){let r=h(b,n,()=>new WeakMap);return h(r,t,()=>{let r={};for(let[i,o]of Object.entries(e.selectors??{}))r[i]=function(e,t,n,r){function i(o,...a){let s=t(o);return void 0===s&&r&&(s=n()),e(s,...a)}return i.unwrapped=e,i}(o,t,()=>h(w,t,S),n);return r})}return{reducerPath:t,getSelectors:i,get selectors(){return i(r)},selectSlice:r}}let A={name:i,reducer:k,actions:f,caseReducers:c,getInitialState:S,...M(o),injectInto(e,{reducerPath:t,...n}={}){let r=t??o;return e.inject({reducerPath:r,reducer:k},n),{...A,...M(r,!0)}}};return A}}();function x(){}var w="listener",k="completed",S="cancelled",M=`task-${S}`,A=`task-${k}`,E=`${w}-${S}`,C=`${w}-${k}
2`,O=class{constructor(e){this.code=e,this.message=`task ${S} (reason: ${e})`}code;name="TaskAbortError";message},P=(e,t)=>{if("function"!=typeof e)throw TypeError(X(32))},T=()=>{},D=(e,t=T)=>(e.catch(t),e),R=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),j=e=>{if(e.aborted)throw new O(e.reason)};function I(e,t){let n=T;return new Promise((r,i)=>{let o=()=>i(new O(e.reason));e.aborted?o():(n=R(e,o),t.finally(()=>n()).then(r,i))}).finally(()=>{n=T})}var z=async(e,t)=>{try{await Promise.resolve();let t=await e();return{status:"ok",value:t}}catch(e){return{status:e instanceof O?"cancelled":"rejected",error:e}}finally{t?.()}},_=e=>t=>D(I(e,t).then(t=>(j(e),t))),L=e=>{let t=_(e);return e=>t(new Promise(t=>setTimeout(t,e)))},{assign:N}=Object,B={},F="listenerMiddleware",V=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:o}=e;if(t)i=l(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(i);else throw Error(X(21));return P(o,"options.listener"),{predicate:i,type:t,effect:o}},H=N(e=>{let{type:t,predicate:n,effect:r}=V(e);return{id:((e=21)=>{let t="",n=e;for(;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t})(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw Error(X(22))}}},{withTypes:()=>H}),W=(e,t)=>{let{type:n,effect:r,predicate:i}=V(t);return Array.from(e.values()).find(e=>("string"==typeof n?e.type===n:e.predicate===i)&&e.effect===r)},$=e=>{e.pending.forEach(e=>{e.abort(E)})},U=(e,t,n)=>{try{e(t,n)}catch(e){setTimeout(()=>{throw e},0)}},K=N(l(`${F}/add`),{withTypes:()=>K}),q=l(`${F}/removeAll`),G=N(l(`${F}/remove`),{withTypes:()=>G}),Z=(...e)=>{console.error(`${F}/error`,...e)},Y=(e={})=>{let t=new Map,n=new Map,{extra:r,onError:o=Z}=e;P(o,"onError");let a=e=>{var n;return(n=W(t,e)??H(e)).unsubscribe=()=>t.delete(n.id),t.set(n.id,n),e=>{n.unsubscribe(),e?.cancelActive&&$(n)}};N(a,{withTypes:()=>a});let s=e=>{let n=W(t,e);return n&&(n.unsubscribe(),e.cancelActive&&$(n)),!!n};N(s,{withTypes:()=>s});let l=async(e,i,s,l)=>{var c,u;let h,d=new AbortController,f=(c=d.signal,h=async(e,t)=>{j(c);let n=()=>{},r=[new Promise((t,r)=>{let i=a({predicate:e,effect:(e,n)=>{n.unsubscribe(),t([e,n.getState(),n.getOriginalState()])}});n=()=>{i(),r()}})];null!=t&&r.push(new Promise(e=>setTimeout(e,t,null)));try{let e=await I(c,Promise.race(r));return j(c),e}finally{n()}},(e,t)=>D(h(e,t))),p=[];try{let o;e.pending.add(d),o=n.get(e)??0,n.set(e,o+1),await Promise.resolve(e.effect(i,N({},s,{getOriginalState:l,condition:(e,t)=>f(e,t).then(Boolean),take:f,delay:L(d.signal),pause:_(d.signal),extra:r,signal:d.signal,fork:(u=d.signal,(e,t)=>{P(e,"taskExecutor");let n=new AbortController;R(u,()=>n.abort(u.reason));let r=z(async()=>{j(u),j(n.signal);let t=await e({pause:_(n.signal),delay:L(n.signal),signal:n.signal});return j(n.signal),t},()=>n.abort(A));return t?.autoJoin&&p.push(r.catch(T)),{result:_(u)(r),cancel(){n.abort(M)}}}),unsubscribe:e.unsubscribe,subscribe:()=>{t.set(e.id,e)},cancelActiveListeners:()=>{e.pending.forEach((e,t,n)=>{e!==d&&(e.abort(E),n.delete(e))})},cancel:()=>{d.abort(E),e.pending.delete(d)},throwIfCancelled:()=>{j(d.signal)}})))}catch(e){e instanceof O||U(o,e,{raisedBy:"effect"})}finally{let t;await Promise.all(p),d.abort(C),1===(t=n.get(e)??1)?n.delete(e):n.set(e,t-1),e.pending.delete(d)}},c=()=>{for(let e of n.keys())$(e);t.clear()};return{middleware:e=>n=>r=>{let u;if(!(0,i.ve)(r))return n(r);if(K.match(r))return a(r.payload);if(q.match(r))return void c();if(G.match(r))return s(r.payload);let h=e.getState(),d=()=>{if(h===B)throw Error(X(23));return h};try{if(u=n(r),t.size>0){let n=e.getState();for(let i of Array.from(t.values())){let t=!1;try{t=i.predicate(r,n,h)}catch(e){t=!1,U(o,e,{raisedBy:"predicate"})}t&&l(i,r,e,d)}}}finally{h=B}return u},startListening:a,stopListening:s,clearListeners:c}};function X(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}},57215(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{_:()=>r})},48565(e,t,n){"use strict";n.d(t,{$:()=>h});var r=n(93312),i=n(18411),o=n(99059),a=n(34695),s=n(54650),l=n(40780),c=n(11482),u=n(58561),h=class extends s.Q{constructor(e,t){super(),this.options=t,this.#e=e,this.#t=null,this.#n=(0,l.T)(),this.bindMethods(),this.setOptions(t)}#e;#r=void 0;#i=void 0;#o=void 0;#a;#s;#n;#t;#l;#c;#u;#h;#d;#f;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#r.addObserver(this),d(this.#r,this.options)?this.#m():this.updateResult(),this.#g())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return f(this.#r,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return f(this.#r,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#v(),this.#y(),this.#r.removeObserver(this)}setOptions(e){let t=this.options,n=this.#r;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,c.nU)(this.options.enabled,this.#r))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#b(),this.#r.setOptions(this.options),t._defaulted&&!(0,c.f8)(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#r,observer:this});let r=this.hasListeners();r&&p(this.#r,n,this.options,t)&&this.#m(),this.updateResult(),r&&(this.#r!==n||(0,c.nU)(this.options.enabled,this.#r)!==(0,c.nU)(t.enabled,this.#r)||(0,c.d2)(this.options.staleTime,this.#r)!==(0,c.d2)(t.staleTime,this.#r))&&this.#x();let i=this.#w();r&&(this.#r!==n||(0,c.nU)(this.options.enabled,this.#r)!==(0,c.nU)(t.enabled,this.#r)||i!==this.#f)&&this.#k(i)}getOptimisticResult(e){var t,n;let r=this.#e.getQueryCache().build(this.#e,e),i=this.createResult(r,e);return t=this,n=i,(0,c.f8)(t.getCurrentResult(),n)||(this.#o=i,this.#s=this.options,this.#a=this.#r.state),i}getCurrentResult(){return this.#o}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),"promise"===n&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#n.status||this.#n.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,n))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#r}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#m({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#o))}#m(e){this.#b();let t=this.#r.fetch(this.options,e);return e?.throwOnError||(t=t.catch(c.lQ)),t}#x(){this.#v();let e=(0,c.d2)(this.options.staleTime,this.#r);
2if(i.H.isServer()||this.#o.isStale||!(0,c.gn)(e))return;let t=(0,c.j3)(this.#o.dataUpdatedAt,e);this.#h=u.zs.setTimeout(()=>{this.#o.isStale||this.updateResult()},t+1)}#w(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#r):this.options.refetchInterval)??!1}#k(e){this.#y(),this.#f=e,!i.H.isServer()&&!1!==(0,c.nU)(this.options.enabled,this.#r)&&(0,c.gn)(this.#f)&&0!==this.#f&&(this.#d=u.zs.setInterval(()=>{(this.options.refetchIntervalInBackground||r.m.isFocused())&&this.#m()},this.#f))}#g(){this.#x(),this.#k(this.#w())}#v(){void 0!==this.#h&&(u.zs.clearTimeout(this.#h),this.#h=void 0)}#y(){void 0!==this.#d&&(u.zs.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){let n,r=this.#r,i=this.options,o=this.#o,s=this.#a,u=this.#s,h=e!==r?e.state:this.#i,{state:f}=e,g={...f},v=!1;if(t._optimisticResults){let n=this.hasListeners(),o=!n&&d(e,t),s=n&&p(e,r,t,i);(o||s)&&(g={...g,...(0,a.k)(f.data,e.options)}),"isRestoring"===t._optimisticResults&&(g.fetchStatus="idle")}let{error:y,errorUpdatedAt:b,status:x}=g;n=g.data;let w=!1;if(void 0!==t.placeholderData&&void 0===n&&"pending"===x){let e;o?.isPlaceholderData&&t.placeholderData===u?.placeholderData?(e=o.data,w=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,void 0!==e&&(x="success",n=(0,c.pl)(o?.data,e,t),v=!0)}if(t.select&&void 0!==n&&!w)if(o&&n===s?.data&&t.select===this.#l)n=this.#c;else try{this.#l=t.select,n=t.select(n),n=(0,c.pl)(o?.data,n,t),this.#c=n,this.#t=null}catch(e){this.#t=e}this.#t&&(y=this.#t,n=this.#c,b=Date.now(),x="error");let k="fetching"===g.fetchStatus,S="pending"===x,M="error"===x,A=S&&k,E=void 0!==n,C={status:x,fetchStatus:g.fetchStatus,isPending:S,isSuccess:"success"===x,isError:M,isInitialLoading:A,isLoading:A,data:n,dataUpdatedAt:g.dataUpdatedAt,error:y,errorUpdatedAt:b,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:g.dataUpdateCount>h.dataUpdateCount||g.errorUpdateCount>h.errorUpdateCount,isFetching:k,isRefetching:k&&!S,isLoadingError:M&&!E,isPaused:"paused"===g.fetchStatus,isPlaceholderData:v,isRefetchError:M&&E,isStale:m(e,t),refetch:this.refetch,promise:this.#n,isEnabled:!1!==(0,c.nU)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=void 0!==C.data,n="error"===C.status&&!t,i=e=>{n?e.reject(C.error):t&&e.resolve(C.data)},o=()=>{i(this.#n=C.promise=(0,l.T)())},a=this.#n;switch(a.status){case"pending":e.queryHash===r.queryHash&&i(a);break;case"fulfilled":(n||C.data!==a.value)&&o();break;case"rejected":n&&C.error===a.reason||o()}}return C}updateResult(){let e=this.#o,t=this.createResult(this.#r,this.options);if(this.#a=this.#r.state,this.#s=this.options,void 0!==this.#a.data&&(this.#u=this.#r),(0,c.f8)(t,e))return;this.#o=t;let n=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n="function"==typeof t?t():t;if("all"===n||!n&&!this.#p.size)return!0;let r=new Set(n??this.#p);return this.options.throwOnError&&r.add("error"),Object.keys(this.#o).some(t=>this.#o[t]!==e[t]&&r.has(t))};this.#S({listeners:n()})}#b(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#r)return;let t=this.#r;this.#r=e,this.#i=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#g()}#S(e){o.jG.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#o)}),this.#e.getQueryCache().notify({query:this.#r,type:"observerResultsUpdated"})})}};function d(e,t){return!1!==(0,c.nU)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==(0,c.nU)(t.retryOnMount,e))||void 0!==e.state.data&&f(e,t,t.refetchOnMount)}function f(e,t,n){if(!1!==(0,c.nU)(t.enabled,e)&&"static"!==(0,c.d2)(t.staleTime,e)){let r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&m(e,t)}return!1}function p(e,t,n,r){return(e!==t||!1===(0,c.nU)(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&m(e,n)}function m(e,t){return!1!==(0,c.nU)(t.enabled,e)&&e.isStaleByTime((0,c.d2)(t.staleTime,e))}},83620(e,t,n){"use strict";function r(e){return e}n.d(t,{j:()=>r})},73260(e,t,n){"use strict";let r;n.d(t,{t:()=>d});
2var i=n(50405),o=n(99059),a=n(11482),s=n(18411),l=n(51650);n(49793);var c=i.createContext((r=!1,{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r})),u=i.createContext(!1);u.Provider;var h=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function d(e,t,n){let r,d=i.useContext(u),f=i.useContext(c),p=(0,l.jE)(n),m=p.defaultQueryOptions(e);p.getDefaultOptions().queries?._experimental_beforeQuery?.(m);let g=p.getQueryCache().get(m.queryHash),v=!1!==e.subscribed;if(m._optimisticResults=d?"isRestoring":v?"optimistic":void 0,m.suspense){let e=e=>"static"===e?e:Math.max(e??1e3,1e3),t=m.staleTime;m.staleTime="function"==typeof t?(...n)=>e(t(...n)):e(t),"number"==typeof m.gcTime&&(m.gcTime=Math.max(m.gcTime,1e3))}r=g?.state.error&&"function"==typeof m.throwOnError?(0,a.GU)(m.throwOnError,[g.state.error,g]):m.throwOnError,(m.suspense||m.experimental_prefetchInRender||r)&&!f.isReset()&&(m.retryOnMount=!1),i.useEffect(()=>{f.clearReset()},[f]);let y=!p.getQueryCache().get(m.queryHash),[b]=i.useState(()=>new t(p,m)),x=b.getOptimisticResult(m),w=!d&&v;if(i.useSyncExternalStore(i.useCallback(e=>{let t=w?b.subscribe(o.jG.batchCalls(e)):a.lQ;return b.updateResult(),t},[b,w]),()=>b.getCurrentResult(),()=>b.getCurrentResult()),i.useEffect(()=>{b.setOptions(m)},[m,b]),m?.suspense&&x.isPending)throw h(m,b,f);if((({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&void 0===e.data||(0,a.GU)(n,[e.error,r])))({result:x,errorResetBoundary:f,throwOnError:m.throwOnError,query:g,suspense:m.suspense}))throw x.error;if(p.getDefaultOptions().queries?._experimental_afterQuery?.(m,x),m.experimental_prefetchInRender&&!s.H.isServer()&&x.isLoading&&x.isFetching&&!d){let e=y?h(m,b,f):g?.promise;e?.catch(a.lQ).finally(()=>{b.updateResult()})}return m.notifyOnChangeProps?x:b.trackResult(x)}},57145(e,t,n){"use strict";n.d(t,{q:()=>s});var r=n(48565),i=n(92269),o=class extends r.${constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type="infinite",super.setOptions(e)}getOptimisticResult(e){return e._type="infinite",super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){let{state:n}=e,r=super.createResult(e,t),{isFetching:o,isRefetching:a,isError:s,isRefetchError:l}=r,c=n.fetchMeta?.fetchMore?.direction,u=s&&"forward"===c,h=o&&"forward"===c,d=s&&"backward"===c,f=o&&"backward"===c;return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,i.rB)(t,n.data),hasPreviousPage:(0,i.RQ)(t,n.data),isFetchNextPageError:u,isFetchingNextPage:h,isFetchPreviousPageError:d,isFetchingPreviousPage:f,isRefetchError:l&&!u&&!d,isRefetching:a&&!h&&!f}}},a=n(73260);function s(e,t){return(0,a.t)(e,o,t)}},19217(e,t,n){"use strict";n.d(t,{n:()=>u});var r=n(50405),i=n(26368),o=n(99059),a=n(54650),s=n(11482),l=class extends a.Q{#e;#o=void 0;#M;#A;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#E()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),(0,s.f8)(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#M,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,s.EN)(t.mutationKey)!==(0,s.EN)(this.options.mutationKey)?this.reset():this.#M?.state.status==="pending"&&this.#M.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#M?.removeObserver(this)}onMutationUpdate(e){this.#E(),this.#S(e)}getCurrentResult(){return this.#o}reset(){this.#M?.removeObserver(this),this.#M=void 0,this.#E(),this.#S()}mutate(e,t){return this.#A=t,this.#M?.removeObserver(this),this.#M=this.#e.getMutationCache().build(this.#e,this.options),this.#M.addObserver(this),this.#M.execute(e)}#E(){let e=this.#M?.state??(0,i.$)();this.#o={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#S(e){o.jG.batch(()=>
2{if(this.#A&&this.hasListeners()){let t=this.#o.variables,n=this.#o.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#A.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#A.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type==="error"){try{this.#A.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#A.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#o)})})}},c=n(51650);function u(e,t){let n=(0,c.jE)(t),[i]=r.useState(()=>new l(n,e));r.useEffect(()=>{i.setOptions(e)},[i,e]);let a=r.useSyncExternalStore(r.useCallback(e=>i.subscribe(o.jG.batchCalls(e)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),u=r.useCallback((e,t)=>{i.mutate(e,t).catch(s.lQ)},[i]);if(a.error&&(0,s.GU)(i.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:u,mutateAsync:a.mutate}}},9503(e,t,n){"use strict";n.d(t,{I:()=>o});var r=n(48565),i=n(73260);function o(e,t){return(0,i.t)(e,r.$,t)}},43300(e,t,n){"use strict";n.d(t,{N_:()=>b});var r=n(25316),i=n(41888),o=n(64123),a=n(38167),s=n(14143),l=n(50405);n(49793);var c=n(71761),u=n(47868),h={},d={className:"active"},f={role:"link","aria-disabled":!0},p={"data-status":"active","aria-current":"page"},m={"data-transitioning":"transitioning"},g=new WeakMap,v={rootMargin:"100px"},y=e=>t=>{for(let n of e)if(n){if(t.defaultPrevented)return;n(t)}},b=l.forwardRef((e,t)=>{let{_asChild:n,...b}=e,{type:x,...w}=function(e,t){let n=(0,o.r)(),b=(0,r.N)(t),{activeProps:x,inactiveProps:w,activeOptions:k,to:S,preload:M,preloadDelay:A,preloadIntentProximity:E,hashScrollIntoView:C,replace:O,startTransition:P,resetScroll:T,viewTransition:D,children:R,target:j,disabled:I,style:z,className:_,onClick:L,onBlur:N,onFocus:B,onMouseEnter:F,onMouseLeave:V,onTouchStart:H,ignoreBlocker:W,params:$,search:U,hash:K,state:q,mask:G,reloadDocument:Z,unsafeRelative:Y,from:X,_fromLocation:J,...Q}=e,ee=(0,i.p)(),et=l.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),en=(0,c.P)(n.stores.location,e=>e,(e,t)=>e.href===t.href),er=l.useMemo(()=>{let e={_fromLocation:en,...et};return n.buildLocation(e)},[n,en,et]),ei=er.maskedLocation?er.maskedLocation.publicHref:er.publicHref,eo=er.maskedLocation?er.maskedLocation.external:er.external,ea=l.useMemo(()=>(function(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||"/",external:!1}})(ei,eo,n.history,I),[I,eo,ei,n.history]),es=l.useMemo(()=>{if(ea?.external)return(0,a.Rp)(ea.href,n.protocolAllowlist)?void 0:ea.href;if(!function(e){if("string"!=typeof e)return!1;let t=e.charCodeAt(0);return 47===t?47!==e.charCodeAt(1):46===t}(S)&&"string"==typeof S&&-1!==S.indexOf(":"))try{if(new URL(S),(0,a.Rp)(S,n.protocolAllowlist))return;return S}catch{}},[S,ea,n.protocolAllowlist]),el=l.useMemo(()=>{if(es)return!1;if(k?.exact){if(!(0,s.l$)(en.pathname,er.pathname,n.basepath))return!1}else{let e=(0,s.UC)(en.pathname,n.basepath),t=(0,s.UC)(er.pathname,n.basepath);if(!(e.startsWith(t)&&(e.length===t.length||"/"===e[t.length])))return!1}return(!(k?.includeSearch??!0)||!!(0,a.bD)(en.search,er.search,{partial:!k?.exact,ignoreUndefined:!k?.explicitUndefined}))&&(!k?.includeHash||ee&&en.hash===er.hash)},[k?.exact,k?.explicitUndefined,k?.includeHash,k?.includeSearch,en,es,ee,er.hash,er.pathname,er.search,n.basepath]),ec=el?(0,a.Zw)(x,{})??d:h,eu=el?h:(0,a.Zw)(w,{})??h,eh=[_,ec.className,eu.className].filter(Boolean).join(" "),ed=(z||ec.style||eu.style)&&{...z,...ec.style,...eu.style},[ef,ep]=l.useState(!1),em=l.useRef(!1),eg=!e.reloadDocument&&!es&&(M??n.options.defaultPreload),ev=A??n.options.defaultPreloadDelay??0,ey=l.useCallback(()=>{n.preloadRoute({...et,_builtLocation:er}).catch(e=>{console.warn(e),console.warn("Error preloading route! ☝️")})},[n,et,er]);if((0,r.BL)(b,l.useCallback(e=>{e?.isIntersecting&&ey()},[ey]),v,{disabled:!!I||"viewport"!==eg}),l.useEffect(()=>{!em.current&&(I||"render"!==eg||(ey(),em.current=!0))},[I,ey,eg]),es)return{...Q,ref:b,href:es,...R&&{children:R},...j&&{target:j},...I&&{disabled:I},...z&&{style:z},..._&&{className:_},...L&&{onClick:L},...N&&{onBlur:N},...B&&{onFocus:B},...F&&{onMouseEnter:F},...V&&{onMouseLeave:V},...H&&{onTouchStart:H}};let eb=e=>{if(I||"intent"!==eg)return;if(!ev)return void ey();let t=e.currentTarget;if(g.has(t))return;let n=setTimeout(()=>{g.delete(t),ey()},ev);g.set(t,n)},ex=e=>{if(I||!eg||!ev)return;let t=e.currentTarget,n=g.get(t);n&&(clearTimeout(n),g.delete(t))};return{...Q,...ec,...eu,href:ea?.href,ref:b,onClick:y([L,e=>{var t;let r=e.currentTarget.getAttribute("target"),i=void 0!==j?j:r;if(!I&&!((t=e).metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!e.defaultPrevented&&(!i||"_self"===i)&&0===e.button){e.preventDefault(),(0,u.flushSync)(()=>{ep(!0)});let t=n.subscribe("onResolved",()=>{t(),ep(!1)});n.navigate({...et,replace:O,resetScroll:T,hashScrollIntoView:C,startTransition:P,viewTransition:D,ignoreBlocker:W})}}]),onBlur:y([N,ex]),onFocus:y([B,eb]),onMouseEnter:y([F,eb]),onMouseLeave:y([V,ex]),onTouchStart:y([H,e=>{I||"intent"!==eg||ey()}]),disabled:!!I,target:j,...ed&&{style:ed},...eh&&{className:eh},...I&&f,...el&&p,...ee&&ef&&m}}(b,t),k="function"==typeof b.children?b.children({isActive:"active"===w["data-status"]}):b.children;if(!n){let{disabled:e,...t}=w;return l.createElement("a",t,k)}return l.createElement(n,w,k)})},81172(e,t,n){"use strict";n.d(t,{hy:()=>w,un:()=>x});var r=n(40745);function i(e){return(0,r.R)({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function o(e){let{select:t,...n}=e;return(0,r.R)({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function a(e){return(0,r.R)({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=!1===e.strict?t.params:t._strictParams;return e.select?e.select(n):n}})}var s=n(90730),l=n(84121);function c(e){return(0,r.R)({...e,select:t=>e.select?e.select(t.context):t.context})}var u=n(43300),h=n(46766),d=n(14143),f=n(63616),p=n(48348),m=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=f.n:this.parentRoute||(0,h.V)();let r=n?f.n:t?.path;r&&"/"!==r&&(r=(0,d.p1)(r));let i=t?.id||r,o=n?f.n:(0,d.HS)(["__root__"===this.parentRoute.id?"":this.parentRoute.id,i]);"__root__"===r&&(r="/"),"__root__"!==o&&(o=(0,d.HS)(["/",o]));let a="__root__"===o?"/":(0,d.HS)([this.parentRoute.fullPath,r]);this._path=r,this._id=o,this._fullPath=a,this._to=(0,d.gx)(a)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),"object"==typeof e&&null!==e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>(0,p.V2)({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error("Route cannot have both an 'id' and a 'path' option.")}},g=class extends m{constructor(e){super(e)}},v=n(50405),y=n(49793),b=class extends m{constructor(e){super(e),this.useMatch=e=>(0,r.R)({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>c({...e,from:this.id}),this.useSearch=e=>(0,s.S)({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>a({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>o({...e,from:this.id}),this.useLoaderData=e=>i({...e,from:this.id}),this.useNavigate=()=>(0,l.Z)({from:this.fullPath}),this.Link=v.forwardRef((e,t)=>
2(0,y.jsx)(u.N_,{ref:t,from:this.fullPath,...e}))}};function x(e){return new b(e)}function w(){return e=>new k(e)}var k=class extends g{constructor(e){super(e),this.useMatch=e=>(0,r.R)({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>c({...e,from:this.id}),this.useSearch=e=>(0,s.S)({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>a({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>o({...e,from:this.id}),this.useLoaderData=e=>i({...e,from:this.id}),this.useNavigate=()=>(0,l.Z)({from:this.fullPath}),this.Link=v.forwardRef((e,t)=>(0,y.jsx)(u.N_,{ref:t,from:this.fullPath,...e}))}}},31265(e,t,n){"use strict";n.d(t,{a:()=>a}),n(4818);var r=n(47481),i=e=>({createMutableStore:r.MN,createReadonlyStore:r.MN,batch:r.vA}),o=n(13946),a=e=>new s(e),s=class extends o.rm{constructor(e){super(e,i)}}},86505(e,t,n){"use strict";n.d(t,{z:()=>a});var r=n(64123),i=n(40745),o=n(71761);function a(e){let t=(0,r.r)();return(0,o.P)(t.stores.location,(0,i.X)(e,t))}},40745(e,t,n){"use strict";n.d(t,{R:()=>h,X:()=>u});var r=n(72765),i=n(64123),o=n(38167),a=n(46766),s=n(50405),l=n(71761),c={get(){},subscribe:()=>({unsubscribe(){}})};function u(e,t){let n=s.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=(0,o.BH)(n.current,i):i}}function h(e){let t=(0,i.r)(),n=s.useContext(e.from?r.n:r.$),o=e.from?t.stores.getRouteMatchStore(e.from):t.stores.matchStores.get(n),h=u(e,t),d=(0,l.P)(o??c,e=>e?h(e):c);if(d!==c)return d;(e.shouldThrow??!0)&&(0,a.V)()}},84121(e,t,n){"use strict";n.d(t,{Z:()=>o});var r=n(64123),i=n(50405);function o(e){let t=(0,r.r)();return i.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}},90730(e,t,n){"use strict";n.d(t,{S:()=>i});var r=n(40745);function i(e){return(0,r.R)({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}},79620(e,t,n){"use strict";let r;n.d(t,{T:()=>w});var i=n(50405),o=n(47868);function a(e,t,n){let r,i=n.initialDeps??[],o=!0;function a(){let a=e();return a.length!==i.length||a.some((e,t)=>i[t]!==e)?(i=a,r=t(...a),(null==n?void 0:n.onChange)&&!(o&&n.skipInitialOnChange)&&n.onChange(r),o=!1,r):r}return a.updateDeps=e=>{i=e},a}function s(e,t){if(void 0!==e)return e;throw Error(`Unexpected undefined${t?`: ${t}`:""}`)}let l=()=>{if(void 0!==r)return r;if("u"<typeof navigator)return r=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return r=!0;let e=navigator.maxTouchPoints;return r="MacIntel"===navigator.platform&&void 0!==e&&e>0},c=e=>{let{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},u=e=>e,h=e=>{let t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1)-t+1,r=Array(n);for(let e=0;e<n;e++)r[e]=t+e;return r},d=(e,t)=>{let n=e.scrollElement;if(!n)return;let r=e.targetWindow;if(!r)return;let i=e=>{let{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(i(c(n)),!r.ResizeObserver)return()=>{};let o=new r.ResizeObserver(t=>{let r=()=>{let e=t[0];if(null==e?void 0:e.borderBoxSize){let t=e.borderBoxSize[0];if(t)return void i({width:t.inlineSize,height:t.blockSize})}i(c(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()});return o.observe(n,{box:"border-box"}),()=>{o.unobserve(n)}},f={passive:!0},p="u"<typeof window||"onscrollend"in window,m=(e,t)=>
2((e,t,n)=>{var r,i;let o,a=e.scrollElement;if(!a)return;let s=e.targetWindow;if(!s)return;let l=e.options.useScrollendEvent&&p,c=0,u=l?null:(r=()=>t(c,!1),i=e.options.isScrollingResetDelay,function(...e){s.clearTimeout(o),o=s.setTimeout(()=>r.apply(this,e),i)}),h=e=>()=>{c=n(a),null==u||u(),t(c,e)},d=h(!0),m=h(!1);return a.addEventListener("scroll",d,f),l&&a.addEventListener("scrollend",m,f),()=>{a.removeEventListener("scroll",d),l&&a.removeEventListener("scrollend",m)}})(e,t,t=>{let{horizontal:n,isRtl:r}=e.options;return n?t.scrollLeft*(r&&-1||1):t.scrollTop}),g=(e,t,n)=>{if(n.options.useCachedMeasurements){let t=n.indexFromElement(e),r=n.options.getItemKey(t);return n.itemSizeCache.get(r)??n.options.estimateSize(t)}if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?"inlineSize":"blockSize"])}if(!t){let t=n.indexFromElement(e),r=n.options.getItemKey(t),i=n.itemSizeCache.get(r);if(void 0!==i)return i}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},v=(e,{adjustments:t=0,behavior:n},r)=>{var i,o;null==(o=null==(i=r.scrollElement)?void 0:i.scrollTo)||o.call(i,{[r.options.horizontal?"left":"top"]:e+t,behavior:n})};class y{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._flatMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._intendedScrollOffset=null,this.elementsCache=new Map,this.now=()=>{var e,t,n;return(null==(n=null==(t=null==(e=this.targetWindow)?void 0:e.performance)?void 0:t.now)?void 0:n.call(t))??Date.now()},this.observer=(()=>{let e=null,t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{let t=()=>{let t=e.target,n=this.indexFromElement(t);if(!t.isConnected){for(let[e,n]of(this.observer.unobserve(t),this.elementsCache))if(n===t){this.elementsCache.delete(e);break}return}this.shouldMeasureDuringScroll(n)&&this.resizeItem(n,this.options.measureElement(t,e,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}):null);return{disconnect:()=>{var n;null==(n=t())||n.disconnect(),e=null},observe:e=>{var n;return null==(n=t())?void 0:n.observe(e,{box:"border-box"})},unobserve:e=>{var n;return null==(n=t())?void 0:n.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{var t,n;let r={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:u,rangeExtractor:h,onChange:()=>{},measureElement:g,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,anchorTo:"start",followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate",useCachedMeasurements:!1};for(let t in e){let n=e[t];void 0!==n&&(r[t]=n)}let i=this.options,o=null,a=null,s=!1;if(void 0!==i&&i.enabled&&r.enabled&&"end"===r.anchorTo&&null!==this.scrollElement){let e=i.count,l=r.count,c=this.getMeasurements(),u=e>0?(null==(t=c[0])?void 0:t.key)??i.getItemKey(0):null,h=e>0?(null==(n=c[e-1])?void 0:n.key)??i.getItemKey(e-1):null;if(l!==e||e>0&&l>0&&(r.getItemKey(0)!==u||r.getItemKey(l-1)!==h)){s=!0;let t=e>0?this.getVirtualItemForOffset(this.getScrollOffset())??c[0]:null;t&&(o=[t.key,this.getScrollOffset()-t.start]);let n=!0===r.followOnAppend?"auto":r.followOnAppend||null;n&&l>e&&this.isAtEnd(i.scrollEndThreshold)&&(0===e||r.getItemKey(l-1)!==h)&&(a=n)}}this.options=r,s&&(this.pendingMin=0,this.itemSizeCacheVersion++);let l=!1,c=0;if(o&&null!==this.scrollOffset){let[e,t]=o,n=this.getMeasurements(),{count:r,getItemKey:i}=this.options,a=0;for(;a<r&&i(a)!==e;)a++;if(a<r){let e=n[a];if(e){let n=e.start+t;n!==this.scrollOffset&&(c=n-this.scrollOffset,this.scrollOffset=n,l=!0)}}}(l||a)&&(this.pendingScrollAnchor=[l?o[0]:null,l?o[1]:0,a,c])},this.notify=e=>{var t,n;null==(n=(t=this.options).onChange)||n.call(t,this,e)},this.maybeNotify=a(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>
2{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),null!=this.rafId&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;let t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.maybeNotify();if(this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{null!==this._intendedScrollOffset&&1.5>Math.abs(e-this._intendedScrollOffset)&&(e=this._intendedScrollOffset),this._intendedScrollOffset=null,this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this._flushIosDeferredIfReady(),this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),"addEventListener"in this.scrollElement){let e=this.scrollElement,t=()=>{this._iosTouching=!0,this._iosJustTouchEnded=!1,null!==this._iosTouchEndTimerId&&null!=this.targetWindow&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)},n=()=>{this._iosTouching=!1,l()&&null!=this.targetWindow&&(this._iosJustTouchEnded=!0,this._iosTouchEndTimerId=this.targetWindow.setTimeout(()=>{this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._flushIosDeferredIfReady()},150))};e.addEventListener("touchstart",t,f),e.addEventListener("touchend",n,f),this.unsubs.push(()=>{e.removeEventListener("touchstart",t),e.removeEventListener("touchend",n),null!==this._iosTouchEndTimerId&&null!=this.targetWindow&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)})}this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}let n=this.pendingScrollAnchor;if(this.pendingScrollAnchor=null,n&&this.scrollElement&&this.options.enabled){let[e,t,r,i]=n;null===e||r||(l()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?0!==i&&(this._iosDeferredAdjustment+=i):this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})),r&&this.scrollToEnd({behavior:r})}},this._flushIosDeferredIfReady=()=>{if(0===this._iosDeferredAdjustment||this.isScrolling||this._iosTouching||this._iosJustTouchEnded)return;let e=this.getScrollOffset(),t=this.getMaxScrollOffset();if(e<0||e>t)return;let n=this._iosDeferredAdjustment;this._iosDeferredAdjustment=0,this._scrollToOffset(e,{adjustments:this.scrollAdjustments+=n,behavior:void 0})},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{let n=new Map,r=new Map;for(let i=t-1;i>=0;i--){let t=e[i];if(n.has(t.lane))continue;let o=r.get(t.lane);if(null==o||t.end>o.end?r.set(t.lane,t):t.end<o.end&&n.set(t.lane,!0),n.size===this.options.lanes)break}return r.size===this.options.lanes?Array.from(r.values()).sort((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=a(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode],(e,t,n,r,i,o,a)=>(void 0!==this.prevLanes&&this.prevLanes!==o&&(this.lanesChangedFlag=!0),this.prevLanes=o,this.pendingMin=null,{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i,lanes:o,laneAssignmentMode:
2a}),{key:!1}),this.getMeasurements=a(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i,lanes:o,laneAssignmentMode:a},s)=>{let l=this.itemSizeCache;if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(let t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),0!==this.measurementsCache.length||this.lanesSettling||(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let c=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1),1===o){var u;let i,o=this.options.gap,a=2*e,s=this._flatMeasurements;if(!s||s.length<a){let e=new Float64Array(a);s&&c>0&&e.set(s.subarray(0,2*c)),s=e,this._flatMeasurements=s}if(0===c)i=t+n;else{let e=c-1;i=s[2*e]+s[2*e+1]+o}for(let t=c;t<e;t++){let e=r(t),n=l.get(e),a="number"==typeof n?n:this.options.estimateSize(t);s[2*t]=i,s[2*t+1]=a,i+=a+o}let h=(u=s,new Proxy(Array(e),{get(t,n,i){if("string"==typeof n){let i=n.charCodeAt(0);if(i>=48&&i<=57){let i=+n;if(Number.isInteger(i)&&i>=0&&i<e){let e=t[i];if(!e){let n=u[2*i];e=t[i]={index:i,key:r(i),start:n,size:u[2*i+1],end:n+u[2*i+1],lane:0}}return e}}if("length"===n)return e}return Reflect.get(t,n,i)}}));return this.measurementsCache=h,h}let h=this.measurementsCache.slice(0,c),d=Array(o).fill(void 0);for(let e=0;e<c;e++){let t=h[e];t&&(d[t.lane]=e)}for(let i=c;i<e;i++){let e,o,s=r(i),c=this.laneAssignments.get(i),u="estimate"===a||l.has(s);if(void 0!==c&&this.options.lanes>1){let r=d[e=c],i=void 0!==r?h[r]:void 0;o=i?i.end+this.options.gap:t+n}else{let r=1===this.options.lanes?h[i-1]:this.getFurthestMeasurement(h,i);o=r?r.end+this.options.gap:t+n,e=r?r.lane:i%this.options.lanes,this.options.lanes>1&&u&&this.laneAssignments.set(i,e)}let f=l.get(s),p="number"==typeof f?f:this.options.estimateSize(i),m=o+p;h[i]={index:i,start:o,size:p,end:m,key:s,lane:e},d[e]=i}return this.measurementsCache=h,h},{key:!1,debug:()=>this.options.debug}),this.calculateRange=a(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,r)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:n,lanes:r,flat:i}){let o=e.length-1,a=i?e=>i[2*e]:t=>e[t].start,s=i?e=>i[2*e]+i[2*e+1]:t=>e[t].end;if(e.length<=r)return{startIndex:0,endIndex:o};let l=b(0,o,a,n),c=l;if(1===r)for(;c<o&&s(c)<n+t;)c++;else if(r>1){let i=Array(r).fill(0);for(;c<o&&i.some(e=>e<n+t);){let t=e[c];i[t.lane]=t.end,c++}let a=Array(r).fill(n+t);for(;l>=0&&a.some(e=>e>=n);){let t=e[l];a[t.lane]=t.start,l--}l=Math.max(0,l-l%r),c=Math.min(o,c+(r-1-c%r))}return{startIndex:l,endIndex:c}}({measurements:e,outerSize:t,scrollOffset:n,lanes:r,flat:1===r&&null!=this._flatMeasurements?this._flatMeasurements:null}):null,{key:!1,debug:()=>this.options.debug}
2),this.getVirtualIndexes=a(()=>{let e=null,t=null,n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,n,r,i)=>null===r||null===i?[]:e({startIndex:r,endIndex:i,overscan:t,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=e=>{var t;if(!this.scrollState||"smooth"!==this.scrollState.behavior)return!0;let n=this.scrollState.index??(null==(t=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))?void 0:t.index);if(void 0!==n&&this.range){let t=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),r=Math.max(0,n-t),i=Math.min(this.options.count-1,n+t);return e>=r&&e<=i}return!0},this.measureElement=e=>{if(!e)return void this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});let t=this.indexFromElement(e),n=this.options.getItemKey(t),r=this.elementsCache.get(n);r!==e&&(r&&this.observer.unobserve(r),this.observer.observe(e),this.elementsCache.set(n,e)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(t)&&this.resizeItem(t,this.options.measureElement(e,void 0,this))},this.resizeItem=(e,t)=>{var n,r;let i,o,a;if(e<0||e>=this.options.count)return;let s=this._flatMeasurements;if(1===this.options.lanes&&null!==s)a=this.options.getItemKey(e),o=s[2*e],i=s[2*e+1];else{let t=this.measurementsCache[e];if(!t)return;a=t.key,o=t.start,i=t.size}let l=t-(this.itemSizeCache.get(a)??i);if(0!==l){let s="end"===this.options.anchorTo&&(null==(n=this.scrollState)?void 0:n.behavior)!=="smooth"&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,c=s?this.getTotalSize():0,u=(null==(r=this.scrollState)?void 0:r.behavior)!=="smooth"&&(void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[e]??{index:e,key:a,start:o,size:i,end:o+i,lane:0},l,this):o<this.getScrollOffset()+this.scrollAdjustments&&(!this.itemSizeCache.has(a)||"backward"!==this.scrollDirection));(null===this.pendingMin||e<this.pendingMin)&&(this.pendingMin=e),this.itemSizeCache.set(a,t),this.itemSizeCacheVersion++,s?this.applyScrollAdjustment(this.getTotalSize()-c):u&&this.applyScrollAdjustment(l),this.notify(!1)}},this.getVirtualItems=a(()=>
2[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{let n=[];for(let r=0,i=e.length;r<i;r++){let i=t[e[r]];n.push(i)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(0===t.length)return;let n=this._flatMeasurements,r=1===this.options.lanes&&null!=n,i=b(0,t.length-1,r?e=>n[2*e]:e=>s(t[e]).start,e);return s(t[i])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{let e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getVirtualDistanceFromEnd=()=>Math.max(this.getTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(e=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=e,this.getOffsetForAlignment=(e,t,n=0)=>
2{if(!this.scrollElement)return 0;let r=this.getSize(),i=this.getScrollOffset();return"auto"===t&&(t=e>=i+r?"end":"start"),"center"===t?e+=(n-r)/2:"end"===t&&(e-=r),Math.max(Math.min(this.getMaxScrollOffset(),e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.getSize(),r=this.getScrollOffset(),i=this.measurementsCache[e];if(!i)return;if("auto"===t)if(i.end>=r+n-this.options.scrollPaddingEnd)t="end";else{if(!(i.start<=r+this.options.scrollPaddingStart))return[r,t];t="start"}if("end"===t&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];let o="end"===t?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(o,t,i.size),t]},this.scrollToOffset=(e,{align:t="start",behavior:n="auto"}={})=>{let r=this.getOffsetForAlignment(e,t),i=this.now();this.scrollState={index:null,align:t,behavior:n,startedAt:i,lastTargetOffset:r,stableFrames:0},this._scrollToOffset(r,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollToIndex=(e,{align:t="auto",behavior:n="auto"}={})=>{e=Math.max(0,Math.min(e,this.options.count-1));let r=this.getOffsetForIndex(e,t);if(!r)return;let[i,o]=r,a=this.now();this.scrollState={index:e,align:o,behavior:n,startedAt:a,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollBy=(e,{behavior:t="auto"}={})=>{let n=this.getScrollOffset()+e,r=this.now();this.scrollState={index:null,align:"start",behavior:t,startedAt:r,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:t}),this.scheduleScrollReconcile()},this.scrollToEnd=({behavior:e="auto"}={})=>{this.options.count>0?this.scrollToIndex(this.options.count-1,{align:"end",behavior:e}):this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:e})},this.getTotalSize=()=>{var e;let t,n=this.getMeasurements();if(0===n.length)t=this.options.paddingStart;else if(1===this.options.lanes){let r=n.length-1,i=this._flatMeasurements;t=null!=i?i[2*r]+i[2*r+1]:(null==(e=n[r])?void 0:e.end)??0}else{let e=Array(this.options.lanes).fill(null),r=n.length-1;for(;r>=0&&e.some(e=>null===e);){let t=n[r];null===e[t.lane]&&(e[t.lane]=t.end),r--}t=Math.max(...e.filter(e=>null!==e))}return Math.max(t-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{let e=[];
2if(0===this.itemSizeCache.size)return e;for(let t of this.getMeasurements())t&&this.itemSizeCache.has(t.key)&&e.push({index:t.index,key:t.key,start:t.start,size:t.size,end:t.end,lane:t.lane});return e},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this._intendedScrollOffset=e+(t??0),this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(e)}applyScrollAdjustment(e,t){0!==e&&(l()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?this._iosDeferredAdjustment+=e:this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=e,behavior:t}))}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}null==this.rafId&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}let e=null!=this.scrollState.index?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,t=e?e[0]:this.scrollState.lastTargetOffset,n=t!==this.scrollState.lastTargetOffset;if(!n&&1.01>Math.abs(t-this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=1){this.getScrollOffset()!==t&&this._scrollToOffset(t,{adjustments:void 0,behavior:"auto"}),this.scrollState=null;return}}else if(this.scrollState.stableFrames=0,n){let e=this.getSize()||600,n=Math.abs(t-this.getScrollOffset()),r="smooth"===this.scrollState.behavior&&n>e;this.scrollState.lastTargetOffset=t,r||(this.scrollState.behavior="auto"),this._scrollToOffset(t,{adjustments:void 0,behavior:r?"smooth":"auto"})}this.scheduleScrollReconcile()}}let b=(e,t,n,r)=>{for(;e<=t;){let i=(e+t)/2|0,o=n(i);if(o<r)e=i+1;else{if(!(o>r))return i;t=i-1}}return e>0?e-1:0},x="u">typeof document?i.useLayoutEffect:i.useEffect;function w(e){return function({useFlushSync:e=!0,directDomUpdates:t=!1,directDomUpdatesMode:n="transform",...r}){let a=i.useReducer(e=>e+1,0)[1],s=i.useRef({enabled:t,mode:n,container:null,lastSize:null,lastPositions:new WeakMap,prevRange:null});s.current.enabled=t,s.current.mode=n;let l=e=>{let t=s.current;if(!t.enabled||!t.container)return;let n=e.getTotalSize();if(n!==t.lastSize){t.lastSize=n;let r=e.options.horizontal?"width":"height";t.container.style[r]=`${n}px`}let r=!!e.options.horizontal,i="transform"===t.mode,o=r?"left":"top",a=e.options.scrollMargin;for(let n of e.getVirtualItems()){let s=n.start-a,l=e.elementsCache.get(n.key);l&&t.lastPositions.get(l)!==s&&(t.lastPositions.set(l,s),i?l.style.transform=r?`translate3d(${s}px, 0, 0)`:`translate3d(0, ${s}px, 0)`:l.style[o]=`${s}px`)}},c={...r,onChange:(t,n)=>{var i;let c=s.current,u=!0;if(c.enabled){l(t);let e=t.range,n=c.prevRange;(u=!n||n.isScrolling!==t.isScrolling||n.startIndex!==(null==e?void 0:e.startIndex)||n.endIndex!==(null==e?void 0:e.endIndex))&&(c.prevRange=e?{startIndex:e.startIndex,endIndex:e.endIndex,isScrolling:t.isScrolling}:null)}u&&(e&&n?(0,o.flushSync)(a):a()),null==(i=r.onChange)||i.call(r,t,n)}},[u]=i.useState(()=>{let e=new y(c);return Object.assign(e,{containerRef:t=>{let n=s.current;if(n.container=t,n.lastSize=null,t&&n.enabled){let r=e.getTotalSize();n.lastSize=r;let i=e.options.horizontal?"width":"height";t.style[i]=`${r}px`}}})});return u.setOptions(c),x(()=>u._didMount(),[]),x(()=>u._willUpdate()),x(()=>{l(u)}),u}({observeElementRect:d,observeElementOffset:m,scrollToFn:v,...e})}},57806(e,t,n){"use strict";let r,i;function o(){return(o=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,{Ay:()=>a2,Lz:()=>f.Lz});var a,s,l,c,u,h=n(50405),d=n(3708),f=n(2749),p=n(31051),m=n(52498);function g(e,t){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let i=e(t,n);return!!i&&(r(n.update(i)),!0)}}let v=g(function(e,t,n=t.selection.ranges){let r=[],i=-1;a:for(let{from:e,to:o}of n){let n=r.length,a=1e9,s;for(let n=e;n<=o;){let l=t.doc.lineAt(n);if(void 0==s&&!(s=x(t,l.from).line))continue a;if(l.from>i&&(e==o||o>l.from)){i=l.from;let e=/^\s*/.exec(l.text)[0].length,t=e==l.length,n=l.text.slice(e,e+s.length)==s?e:-1;e<l.text.length&&e<a&&(a=e),r.push({line:l,comment:n,token:s,indent:e,empty:t,single:!1})}n=l.to+1}if(a<1e9)for(let e=n;e<r.length;e++)r[e].indent<r[e].line.text.length&&(r[e].indent=a);r.length==n+1&&(r[n].single=!0)}if(2!=e&&r.some(e=>e.comment<0&&(!e.empty||e.single))){let e=[];for(let{line:t,token:n,indent:i,empty:o,single:a}of r)(a||!o)&&e.push({from:t.from+i,insert:n+" "});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}if(1!=e&&r.some(e=>e.comment>=0)){let e=[];for(let{line:t,comment:n,token:i}of r)if(n>=0){let r=t.from+n,o=r+i.length;" "==t.text[o-t.from]&&o++,e.push({from:r,to:o})}return{changes:e}}return null},0),y=g(w,0),b=g((e,t)=>w(e,t,function(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),i=n.to<=r.to?r:e.doc.lineAt(n.to);i.from>r.from&&i.from==n.to&&(i=n.to==r.to+1?r:e.doc.lineAt(n.to-1));let o=t.length-1;o>=0&&t[o].to>r.from?t[o].to=i.to:t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return t}(t)),0);function x(e,t){let n=e.languageDataAt("commentTokens",t,1);return n.length?n[0]:{}}function w(e,t,n=t.selection.ranges){let r=n.map(e=>x(t,e.from).block);if(!r.every(e=>e))return null;let i=n.map((e,n)=>(function(e,{open:t,close:n},r,i){let o,a,s=e.sliceDoc(r-50,r),l=e.sliceDoc(i,i+50),c=/\s*$/.exec(s)[0].length,u=/^\s*/.exec(l)[0].length,h=s.length-c;if(s.slice(h-t.length,h)==t&&l.slice(u,u+n.length)==n)return{open:{pos:r-c,margin:c&&1},close:{pos:i+u,margin:u&&1}};i-r<=100?o=a=e.sliceDoc(r,i):(o=e.sliceDoc(r,r+50),a=e.sliceDoc(i-50,i));let d=/^\s*/.exec(o)[0].length,f=/\s*$/.exec(a)[0].length,p=a.length-f-n.length;return o.slice(d,d+t.length)==t&&a.slice(p,p+n.length)==n?{open:{pos:r+d+t.length,margin:+!!/\s/.test(o.charAt(d+t.length))},close:{pos:i-f-n.length,margin:+!!/\s/.test(a.charAt(p-1))}}:null})(t,r[n],e.from,e.to));if(2!=e&&!i.every(e=>e))return{changes:t.changes(n.map((e,t)=>i[t]?[]:[{from:e.from,insert:r[t].open+" "},{from:e.to,insert:" "+r[t].close}]))};if(1!=e&&i.some(e=>e)){let e=[];for(let t=0,n;t<i.length;t++)if(n=i[t]){let i=r[t],{open:o,close:a}=n;e.push({from:o.pos-i.open.length,to:o.pos+o.margin},{from:a.pos-a.margin,to:a.pos+i.close.length})}return{changes:e}}return null}let k=d.YH.define(),S=d.YH.define(),M=d.sj.define(),A=d.sj.define({combine:e=>(0,d.QR)(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>
2t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,r)=>e(n,r)||t(n,r)})}),E=d.sU.define({create:()=>B.empty,update(e,t){let n=t.state.facet(A),r=t.annotation(k);if(r){let i=R.fromTransaction(t,r.selection),o=r.side,a=0==o?e.undone:e.done;return a=i?j(a,a.length,n.minDepth,i):_(a,t.startState.selection),new B(0==o?r.rest:a,0==o?a:r.rest)}let i=t.annotation(S);if(("full"==i||"before"==i)&&(e=e.isolate()),!1===t.annotation(d.ZX.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let o=R.fromTransaction(t),a=t.annotation(d.ZX.time),s=t.annotation(d.ZX.userEvent);return o?e=e.addChanges(o,a,s,n,t):t.selection&&(e=e.addSelection(t.startState.selection,a,s,n.newGroupDelay)),("full"==i||"after"==i)&&(e=e.isolate()),e},toJSON:e=>({done:e.done.map(e=>e.toJSON()),undone:e.undone.map(e=>e.toJSON())}),fromJSON:e=>new B(e.done.map(R.fromJSON),e.undone.map(R.fromJSON))});function C(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let i=n.field(E,!1);if(!i)return!1;let o=i.pop(e,n,t);return!!o&&(r(o),!0)}}let O=C(0,!1),P=C(1,!1),T=C(0,!0),D=C(1,!0);class R{constructor(e,t,n,r,i){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=r,this.selectionsAfter=i}setSelAfter(e){return new R(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:null==(e=this.changes)?void 0:e.toJSON(),mapped:null==(t=this.mapped)?void 0:t.toJSON(),startSelection:null==(n=this.startSelection)?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map(e=>e.toJSON())}}static fromJSON(e){return new R(e.changes&&d.VR.fromJSON(e.changes),[],e.mapped&&d.Gu.fromJSON(e.mapped),e.startSelection&&d.OF.fromJSON(e.startSelection),e.selectionsAfter.map(d.OF.fromJSON))}static fromTransaction(e,t){let n=z;for(let t of e.startState.facet(M)){let r=t(e);r.length&&(n=n.concat(r))}return!n.length&&e.changes.empty?null:new R(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,z)}static selection(e){return new R(void 0,z,void 0,void 0,e)}}function j(e,t,n,r){let i=e.slice(t+1>n+20?t-n-1:0,t);return i.push(r),i}function I(e,t){return e.length?t.length?e.concat(t):e:t}let z=[];function _(e,t){if(!e.length)return[R.selection([t])];{let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-200));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),j(e,e.length-1,1e9,n.setSelAfter(r)))}}function L(e,t){if(!e.length)return e;let n=e.length,r=z;for(;n;){let i=function(e,t,n){let r=I(e.selectionsAfter.length?e.selectionsAfter.map(e=>e.map(t)):z,n);if(!e.changes)return R.selection(r);let i=e.changes.map(t),o=t.mapDesc(e.changes,!0),a=e.mapped?e.mapped.composeDesc(o):o;return new R(i,d.Pe.mapEffects(e.effects,t),a,e.startSelection.map(o),r)}(e[n-1],t,r);if(i.changes&&!i.changes.empty||i.effects.length){let t=e.slice(0,n);return t[n-1]=i,t}t=i.mapped,n--,r=i.selectionsAfter}return r.length?[R.selection(r)]:z}let N=/^(input\.type|delete)($|\.)/;class B{constructor(e,t,n=0,r){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new B(this.done,this.undone):this}addChanges(e,t,n,r,i){var o,a;let s,l,c=this.done,u=c[c.length-1];return new B(c=u&&u.changes&&!u.changes.empty&&e.changes&&(!n||N.test(n))&&(!u.selectionsAfter.length&&t-this.prevTime<r.newGroupDelay&&r.joinToEvent(i,(o=u.changes,a=e.changes,s=[],l=!1,o.iterChangedRanges((e,t)=>s.push(e,t)),a.iterChangedRanges((e,t,n,r)=>{for(let e=0;e<s.length;){let t=s[e++],i=s[e++];r>=t&&n<=i&&(l=!0)}}),l))||"input.type.compose"==n)?j(c,c.length-1,r.minDepth,new R(e.changes.compose(u.changes),I(d.Pe.mapEffects(e.effects,u.changes),u.effects),u.mapped,u.startSelection,z)):j(c,c.length,r.minDepth,e),z,t,n)}addSelection(e,t,n,r){var i;let o=this.done.length?this.done[this.done.length-1].selectionsAfter:z;return o.length>0&&t-this.prevTime<r&&n==this.prevUserEvent&&n&&/^select($|\.)/.test(n)&&(i=o[o.length-1],i.ranges.length==e.ranges.length&&0===i.ranges.filter((t,n)=>t.empty!=e.ranges[n].empty).length)?this:new B(_(this.done,e),this.undone,t,n)}addMapping(e){return new B(L(this.done,e),L(this.undone,e),this.prevTime,this.prevUserEvent)}
2pop(e,t,n){let r=0==e?this.done:this.undone;if(0==r.length)return null;let i=r[r.length-1],o=i.selectionsAfter[0]||(i.startSelection?i.startSelection.map(i.changes.invertedDesc,1):t.selection);if(n&&i.selectionsAfter.length){let n,a;return t.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:k.of({side:e,rest:(n=r[r.length-1],(a=r.slice())[r.length-1]=n.setSelAfter(n.selectionsAfter.slice(0,n.selectionsAfter.length-1)),a),selection:o}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0})}{if(!i.changes)return null;let n=1==r.length?z:r.slice(0,r.length-1);return i.mapped&&(n=L(n,i.mapped)),t.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:k.of({side:e,rest:n,selection:o}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}}}B.empty=new B(z,z);let F=[{key:"Mod-z",run:O,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:P,preventDefault:!0},{linux:"Ctrl-Shift-z",run:P,preventDefault:!0},{key:"Mod-u",run:T,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:D,preventDefault:!0}];function V(e,t){return d.OF.create(e.ranges.map(t),e.mainIndex)}function H(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function W({state:e,dispatch:t},n){let r=V(e.selection,n);return!r.eq(e.selection,!0)&&(t(H(e,r)),!0)}function $(e,t){return d.OF.cursor(t?e.to:e.from)}function U(e,t){return W(e,n=>n.empty?e.moveByChar(n,t):$(n,t))}function K(e){return e.textDirectionAt(e.state.selection.main.head)==f.OP.LTR}let q=e=>U(e,!K(e)),G=e=>U(e,K(e));function Z(e,t){return W(e,n=>n.empty?e.moveByGroup(n,t):$(n,t))}function Y(e,t,n){let r,i,o=(0,p.mv)(e).resolveInner(t.head),a=n?m.uY.closedBy:m.uY.openedBy;for(let r=t.head;;){let t=n?o.childAfter(r):o.childBefore(r);if(!t)break;!function(e,t,n){if(t.type.prop(n))return!0;let r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}(e,t,a)?r=n?t.to:t.from:o=t}return i=o.type.prop(a)&&(r=n?(0,p.jU)(e,o.from,1):(0,p.jU)(e,o.to,-1))&&r.matched?n?r.end.to:r.end.from:n?o.to:o.from,d.OF.cursor(i,n?-1:1)}function X(e,t){return W(e,n=>{if(!n.empty)return $(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)})}"u">typeof Intl&&Intl.Segmenter;let J=e=>X(e,!1),Q=e=>X(e,!0);function ee(e){let t=e.scrollDOM.clientHeight<e.scrollDOM.scrollHeight-2,n=0,r=0,i;if(t){for(let t of e.state.facet(f.Lz.scrollMargins)){let i=t(e);(null==i?void 0:i.top)&&(n=Math.max(null==i?void 0:i.top,n)),(null==i?void 0:i.bottom)&&(r=Math.max(null==i?void 0:i.bottom,r))}i=e.scrollDOM.clientHeight-n-r}else i=(e.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:n,marginBottom:r,selfScroll:t,height:Math.max(e.defaultLineHeight,i-5)}}function et(e,t){let n,r=ee(e),{state:i}=e,o=V(i.selection,n=>n.empty?e.moveVertically(n,t,r.height):$(n,t));if(o.eq(i.selection))return!1;if(r.selfScroll){let t=e.coordsAtPos(i.selection.main.head),a=e.scrollDOM.getBoundingClientRect(),s=a.top+r.marginTop,l=a.bottom-r.marginBottom;t&&t.top>s&&t.bottom<l&&(n=f.Lz.scrollIntoView(o.main.head,{y:"start",yMargin:t.top-s}))}return e.dispatch(H(i,o),{effects:n}),!0}let en=e=>et(e,!1),er=e=>et(e,!0);function ei(e,t,n){let r=e.lineBlockAt(t.head),i=e.moveToLineBoundary(t,n);if(i.head==t.head&&i.head!=(n?r.to:r.from)&&(i=e.moveToLineBoundary(t,n,!1)),!n&&i.head==r.from&&r.length){let n=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;n&&t.head!=r.from+n&&(i=d.OF.cursor(r.from+n))}return i}function eo(e,t,n){let r=V(e.state.selection,e=>{e.undirectional&&e.head>=e.anchor!=t&&(e=d.OF.range(e.head,e.anchor));let r=n(e);return d.OF.range(e.anchor,r.head,r.goalColumn,r.bidiLevel||void 0,r.assoc)});return!r.eq(e.state.selection)&&(e.dispatch(H(e.state,r)),!0)}function ea(e,t){return eo(e,t,n=>e.moveByChar(n,t))}let es=e=>ea(e,!K(e)),el=e=>ea(e,K(e));function ec(e,t){return eo(e,t,n=>e.moveByGroup(n,t))}function eu(e,t){return eo(e,t,n=>e.moveVertically(n,t))}let eh=e=>eu(e,!1),ed=e=>eu(e,!0);function ef(e,t){return eo(e,t,n=>e.moveVertically(n,t,ee(e).height))}let ep=e=>ef(e,!1),em=e=>ef(e,!0),eg=({state:e,dispatch:t})=>(t(H(e,{anchor:0})),!0),ev=({state:e,dispatch:t})=>(t(H(e,{anchor:e.doc.length})),!0),ey=({state:e,dispatch:t})=>(t(H(e,{anchor:e.selection.main.anchor,head:0})),!0),eb=({state:e,dispatch:t})=>(t(H(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0);function ex(e,t){let{state:n}=e,r=n.selection,i=n.selection.ranges.slice();for(let r of n.selection.ranges){let o=n.doc.lineAt(r.head);if(t?o.to<e.state.doc.length:o.from>0)for(let n=r;;){let r=e.moveVertically(n,t);if(r.head<o.from||r.head>o.to){i.some(e=>e.head==r.head)||i.push(r);break}if(r.head==n.head)break;n=r}}return i.length!=r.ranges.length&&(e.dispatch(H(n,d.OF.create(i,i.length-1))),!0)}function ew(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:r}=e,i=r.changeByRange(r=>{let{from:i,to:o}=r;if(i==o){let a=t(r);a<i?(n="delete.backward",a=ek(e,a,!1)):a>i&&(n="delete.forward",a=ek(e,a,!0)),i=Math.min(i,a),o=Math.max(o,a)}else i=ek(e,i,!1),o=ek(e,o,!0);return i==o?{range:r}:{changes:{from:i,to:o},range:d.OF.cursor(i,i<r.head?-1:1)}});return!i.changes.empty&&(e.dispatch(r.update(i,{scrollIntoView:!0,userEvent:n,effects:"delete.selection"==n?f.Lz.announce.of(r.phrase("Selection deleted")):void 0})),!0)}function ek(e,t,n){if(e instanceof f.Lz)for(let r of e.state.facet(f.Lz.atomicRanges).map(t=>t(e)))r.between(t,t,(e,r)=>{e<t&&r>t&&(t=n?r:e)});return t}let eS=(e,t,n)=>ew(e,r=>{let i=r.from,{state:o}=e,a=o.doc.lineAt(i),s,l;if(n&&!t&&i>a.from&&i<a.from+200&&!/[^ \t]/.test(s=a.text.slice(0,i-a.from))){if("	"==s[s.length-1])return i-1;let e=(0,d.y$)(s,o.tabSize)%(0,p.tp)(o)||(0,p.tp)(o);for(let t=0;t<e&&" "==s[s.length-1-t];t++)i--;l=i}else(l=(0,d.zK)(a.text,i-a.from,t,t)+a.from)==i&&a.number!=(t?o.doc.lines:1)?l+=t?1:-1:!t&&/[\ufe00-\ufe0f]/.test(a.text.slice(l-a.from,i-a.from))&&(l=(0,d.zK)(a.text,l-a.from,!1,!1)+a.from);return l}),eM=e=>eS(e,!1,!0),eA=e=>eS(e,!0,!1),eE=(e,t)=>ew(e,n=>{let r=n.head,{state:i}=e,o=i.doc.lineAt(r),a=i.charCategorizer(r);for(let e=null;;){if(r==(t?o.to:o.from)){r==n.head&&o.number!=(t?i.doc.lines:1)&&(r+=t?1:-1);break}let s=(0,d.zK)(o.text,r-o.from,t)+o.from,l=o.text.slice(Math.min(r,s)-o.from,Math.max(r,s)-o.from),c=a(l);if(null!=e&&c!=e)break;(" "!=l||r!=n.head)&&(e=c),r=s}return r}),eC=e=>eE(e,!1);function eO(e){let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.from),o=e.doc.lineAt(r.to);if(r.empty||r.to!=o.from||(o=e.doc.lineAt(r.to-1)),n>=i.number){let e=t[t.length-1];e.to=o.to,e.ranges.push(r)}else t.push({from:i.from,to:o.to,ranges:[r]});n=o.number+1}return t}function eP(e,t,n){if(e.readOnly)return!1;let r=[],i=[];for(let t of eO(e)){if(n?t.to==e.doc.length:0==t.from)continue;let o=e.doc.lineAt(n?t.to+1:t.from-1),a=o.length+1;if(n)for(let n of(r.push({from:t.to,to:o.to},{from:t.from,insert:o.text+e.lineBreak}),t.ranges))i.push(d.OF.range(Math.min(e.doc.length,n.anchor+a),Math.min(e.doc.length,n.head+a)));else for(let n of(r.push({from:o.from,to:t.from},{from:t.to,insert:e.lineBreak+o.text}),t.ranges))i.push(d.OF.range(n.anchor-a,n.head-a))}return!!r.length&&(t(e.update({changes:r,scrollIntoView:!0,selection:d.OF.create(i,e.selection.mainIndex),userEvent:"move.line"})),!0)}function eT(e,t,n){if(e.readOnly)return!1;let r=[];for(let t of eO(e))n?r.push({from:t.from,insert:e.doc.slice(t.from,t.to)+e.lineBreak}):r.push({from:t.to,insert:e.lineBreak+e.doc.slice(t.from,t.to)});let i=e.changes(r);return t(e.update({changes:i,selection:e.selection.map(i,n?1:-1),scrollIntoView:!0,userEvent:"input.copyline"})),!0}let eD=ej(!1),eR=ej(!0);function ej(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let r=t.changeByRange(n=>{let{from:r,to:i}=n,o=t.doc.lineAt(r),a=!e&&r==i&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n=(0,p.mv)(e).resolveInner(t),r=n.childBefore(t),i=n.childAfter(t),o;return r&&i&&r.to<=t&&i.from>=t&&(o=r.type.prop(m.uY.closedBy))&&o.indexOf(i.name)>-1&&e.doc.lineAt(r.to).from==e.doc.lineAt(i.from).from&&!/\S/.test(e.sliceDoc(r.to,i.from))?{from:r.to,to:i.from}:null}(t,r);e&&(r=i=(i<=o.to?o:t.doc.lineAt(i)).to);let s=new p.KB(t,{simulateBreak:r,simulateDoubleBreak:!!a}),l=(0,p._v)(s,r);for(null==l&&(l=(0,d.y$)(/^\s*/.exec(t.doc.lineAt(r).text)[0],t.tabSize));i<o.to&&/\s/.test(o.text[i-o.from]);)i++;a?{from:r,to:i}=a:r>o.from&&r<o.from+100&&!/\S/.test(o.text.slice(0,r))&&(r=o.from);let c=["",(0,p.EI)(t,l)];
2return a&&c.push((0,p.EI)(t,s.lineIndent(o.from,-1))),{changes:{from:r,to:i,insert:d.EY.of(c)},range:d.OF.cursor(r+1+c[1].length)}});return n(t.update(r,{scrollIntoView:!0,userEvent:"input"})),!0}}function eI(e,t){let n=-1;return e.changeByRange(r=>{let i=[];for(let o=r.from;o<=r.to;){let a=e.doc.lineAt(o);a.number>n&&(r.empty||r.to>a.from)&&(t(a,i,r),n=a.number),o=a.to+1}let o=e.changes(i);return{changes:i,range:d.OF.range(o.mapPos(r.anchor,1),o.mapPos(r.head,1))}})}let ez=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(eI(e,(t,n)=>{n.push({from:t.from,insert:e.facet(p.Xt)})}),{userEvent:"input.indent"})),!0),e_=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(eI(e,(t,n)=>{let r=/^\s*/.exec(t.text)[0];if(!r)return;let i=(0,d.y$)(r,e.tabSize),o=0,a=(0,p.EI)(e,Math.max(0,i-(0,p.tp)(e)));for(;o<r.length&&o<a.length&&r.charCodeAt(o)==a.charCodeAt(o);)o++;n.push({from:t.from+o,to:t.from+r.length,insert:a.slice(o)})}),{userEvent:"delete.dedent"})),!0),eL=[{key:"Ctrl-b",run:q,shift:es,preventDefault:!0},{key:"Ctrl-f",run:G,shift:el},{key:"Ctrl-p",run:J,shift:eh},{key:"Ctrl-n",run:Q,shift:ed},{key:"Ctrl-a",run:e=>W(e,t=>d.OF.cursor(e.lineBlockAt(t.head).from,1)),shift:e=>eo(e,!1,t=>d.OF.cursor(e.lineBlockAt(t.head).from))},{key:"Ctrl-e",run:e=>W(e,t=>d.OF.cursor(e.lineBlockAt(t.head).to,-1)),shift:e=>eo(e,!0,t=>d.OF.cursor(e.lineBlockAt(t.head).to))},{key:"Ctrl-d",run:eA},{key:"Ctrl-h",run:eM},{key:"Ctrl-k",run:e=>ew(e,t=>{let n=e.lineBlockAt(t.head).to;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)})},{key:"Ctrl-Alt-h",run:eC},{key:"Ctrl-o",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:d.EY.of(["",""])},range:d.OF.cursor(e.from)}));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(t=>{if(!t.empty||0==t.from||t.from==e.doc.length)return{range:t};let n=t.from,r=e.doc.lineAt(n),i=n==r.from?n-1:(0,d.zK)(r.text,n-r.from,!1)+r.from,o=n==r.to?n+1:(0,d.zK)(r.text,n-r.from,!0)+r.from;return{changes:{from:i,to:o,insert:e.doc.slice(n,o).append(e.doc.slice(i,n))},range:d.OF.cursor(o)}});return!n.changes.empty&&(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:er}],eN=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:e=>W(e,t=>Y(e.state,t,!K(e))),shift:e=>{let t=!K(e);return eo(e,t,n=>Y(e.state,n,t))}},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:e=>W(e,t=>Y(e.state,t,K(e))),shift:e=>{let t=K(e);return eo(e,t,n=>Y(e.state,n,t))}},{key:"Alt-ArrowUp",run:({state:e,dispatch:t})=>eP(e,t,!1)},{key:"Shift-Alt-ArrowUp",run:({state:e,dispatch:t})=>eT(e,t,!1)},{key:"Alt-ArrowDown",run:({state:e,dispatch:t})=>eP(e,t,!0)},{key:"Shift-Alt-ArrowDown",run:({state:e,dispatch:t})=>eT(e,t,!0)},{key:"Mod-Alt-ArrowUp",run:e=>ex(e,!1)},{key:"Mod-Alt-ArrowDown",run:e=>ex(e,!0)},{key:"Escape",run:({state:e,dispatch:t})=>{let n=e.selection,r=null;return n.ranges.length>1?r=d.OF.create([n.main]):n.main.empty||(r=d.OF.create([d.OF.cursor(n.main.head)])),!!r&&(t(H(e,r)),!0)}},{key:"Mod-Enter",run:eR},{key:"Alt-l",mac:"Ctrl-l",run:({state:e,dispatch:t})=>{let n=eO(e).map(({from:t,to:n})=>d.OF.range(t,Math.min(n+1,e.doc.length)));return t(e.update({selection:d.OF.create(n),userEvent:"select"})),!0}},{key:"Mod-i",run:({state:e,dispatch:t})=>{let n=V(e.selection,t=>{let n=(0,p.mv)(e),r=n.resolveStack(t.from,1);if(t.empty){let e=n.resolveStack(t.from,-1);e.node.from>=r.node.from&&e.node.to<=r.node.to&&(r=e)}for(let e=r;e;e=e.next){let{node:n}=e;if((n.from<t.from&&n.to>=t.to||n.to>t.to&&n.from<=t.from)&&e.next)return d.OF.range(n.to,n.from)}return t});return!n.eq(e.selection)&&(t(H(e,n)),!0)},preventDefault:!0},{key:"Mod-[",run:e_},{key:"Mod-]",run:ez},{key:"Mod-Alt-\\",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),r=new p.KB(e,{overrideIndentation:e=>{let t=n[e];return null==t?-1:t}}),i=eI(e,(t,i,o)=>{let a=(0,p._v)(r,t.from);if(null==a)return;/\S/.test(t.text)||(a=0);let s=/^\s*/.exec(t.text)[0],l=(0,p.EI)(e,a);(s!=l||o.from<t.from+s.length)&&(n[t.from]=a,i.push({from:t.from,to:t.from+s.length,insert:l}))});return i.changes.empty||t(e.update(i,{userEvent:"indent"})),!0}},{key:"Shift-Mod-k",run:e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(eO(t).map(({from:e,to:n})=>(e>0?e--:n<t.doc.length&&n++,{from:e,to:n}))),r=V(t.selection,t=>{let n;if(e.lineWrapping){let r=e.lineBlockAt(t.head),i=e.coordsAtPos(t.head,t.assoc||1);i&&(n=r.bottom+e.documentTop-i.bottom+e.defaultLineHeight/2)}return e.moveVertically(t,!0,n)}).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:({state:e,dispatch:t})=>{let n,r;return n=!1,r=V(e.selection,t=>{let r=(0,p.jU)(e,t.head,-1)||(0,p.jU)(e,t.head,1)||t.head>0&&(0,p.jU)(e,t.head-1,1)||t.head<e.doc.length&&(0,p.jU)(e,t.head+1,-1);if(!r||!r.end)return t;n=!0;let i=r.start.from==t.head?r.end.to:r.end.from;return d.OF.cursor(i)}),!!n&&(t(H(e,r)),!0)}},{key:"Mod-/",run:e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=x(e.state,n.from);return r.line?v(e):!!r.block&&b(e)}},{key:"Alt-A",run:y},{key:"Ctrl-m",mac:"Shift-Alt-m",run:e=>(e.setTabFocusMode(),!0)}].concat([{key:"ArrowLeft",run:q,shift:es,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:e=>Z(e,!K(e)),shift:e=>ec(e,!K(e)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:e=>W(e,t=>ei(e,t,!K(e))),shift:e=>{let t=!K(e);return eo(e,t,n=>ei(e,n,t))},preventDefault:!0},{key:"ArrowRight",run:G,shift:el,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:e=>Z(e,K(e)),shift:e=>ec(e,K(e)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:e=>W(e,t=>ei(e,t,K(e))),shift:e=>{let t=K(e);return eo(e,t,n=>ei(e,n,t))},preventDefault:!0},{key:"ArrowUp",run:J,shift:eh,preventDefault:!0},{mac:"Cmd-ArrowUp",run:eg,shift:ey},{mac:"Ctrl-ArrowUp",run:en,shift:ep},{key:"ArrowDown",run:Q,shift:ed,preventDefault:!0},{mac:"Cmd-ArrowDown",run:ev,shift:eb},{mac:"Ctrl-ArrowDown",run:er,shift:em},{key:"PageUp",run:en,shift:ep},{key:"PageDown",run:er,shift:em},{key:"Home",run:e=>W(e,t=>ei(e,t,!1)),shift:e=>eo(e,!1,t=>ei(e,t,!1)),preventDefault:!0},{key:"Mod-Home",run:eg,shift:ey},{key:"End",run:e=>W(e,t=>ei(e,t,!0)),shift:e=>eo(e,!0,t=>ei(e,t,!0)),preventDefault:!0},{key:"Mod-End",run:ev,shift:eb},{key:"Enter",run:eD,shift:eD},{key:"Mod-a",run:({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:eM,shift:eM,preventDefault:!0},{key:"Delete",run:eA,preventDefault:!0},{key:"Mod-Backspace",mac:"Alt-Backspace",run:eC,preventDefault:!0},{key:"Mod-Delete",mac:"Alt-Delete",run:e=>eE(e,!0),preventDefault:!0},{mac:"Mod-Backspace",run:e=>ew(e,t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}),preventDefault:!0},{mac:"Mod-Delete",run:e=>ew(e,t=>{let n=e.moveToLineBoundary(t,!0).head;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)}),preventDefault:!0}].concat(eL.map(e=>({mac:e.key,run:e.run,shift:e.shift})))),eB={key:"Tab",run:ez,shift:e_},eF=[],eV=[],eH="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,1n,9,16,o,,x,1i,3,,i,,7,a,2,t,3,1k,,,7,2,2,2,3,9,,a,2,q,,2,3,1k,,,5,4,2,2,3,3,,u,2,3,,b,3,1k,,,8,,3,,3,k,2,m,6,,3,1k,,,7,2,2,2,3,7,3,a,2,u,,1n,5,3,3,,4,9,,14,5,1j,,,7,,3,,4,7,2,b,2,t,3,1k,,,7,,3,,4,7,2,b,2,f,,c,4,1j,2,,7,,3,,4,9,,a,2,t,3,1y,,4,6,,,,8,i,2,1p,,,8,c,8,2q,,,a,b,7,21,2,r,,,,,,4,2,1d,k,,2,5,b,,10,9,,2u,b,,6,n,4,4,3,g,4,d,,,3,6,,f,,jj,3,qa,4,s,3,t,2,u,2,1s,w,9,,19,3,,,39,2,y,,3a,c,4,c,63,5,1l,a,,,,,2,o,2,,1c,1a,2,c,k,5,1b,h,12,9,c,3,u,d,1k,e,1c,k,48,3,,l,4,,6,,2,3,5i,1s,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,n,5,4,,2b,2,1e,i,q,i,d,,12,8,p,d,18,4,1b,e,10,,1v,e,c,,8,2,1a,,1f,,,3,2,2,5,2,,,15,5,5,2,6k,8,,2,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,1t,5,8t,2,25,6,1y,b,1d,4,3e,3,1h,f,15,,2,2,a,4,19,b,7,,1p,3,10,e,g,2,18,,c,3,1c,e,8,4,,2,2k,c,6,,2,,4d,c,l,4,1j,2,,7,2,2,2,3,9,,a,2,2,7,3,5,1v,9,,,2,,,4,,5,,,e,2,2a,i,n,,29,k,6j,7,2,9,r,2,2a,h,2y,d,2t,3,2,a,74,f,6t,6,,2,2,4,,,,2,3x,7,2,7,3,,s,a,14,7,,4,8,,9,b,1a,g,5i,8,5j,8,,8,2a,m,,e,3e,6,3,,,2,,7,,,1u,5,,2,,5,9n,4,9,2,,,1c,7,3,5,n,,44l,,6,f,8ug,i,1xc,5,1n,7,t4,,,1j,7,4,29,,b,2,f57,2,3mp,1a,2,n,f2,5,3,6,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,2s,,4g,7,af,,1p,4,e4,4,72,2,6r,,2,,7,2,5,,d6,7,31,7,240,5".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,t=0;e<eH.length;e++)(e%2?eV:eF).push(t+=eH[e]);function eW(e){return e>=127462&&e<=127487}function e$(e,t,n){if(t==e.length)return t;t&&eK(e.charCodeAt(t))&&eq(e.charCodeAt(t-1))&&t--;let r=eU(e,t);for(t+=eG(r);t<e.length;){let i=eU(e,t);if(8205==r||8205==i||n&&function(e){if(e<768)return!1;for(let t=0,n=eF.length;;){let r=t+n>>1;if(e<eF[r])n=r;else{if(!(e>=eV[r]))return!0;t=r+1}if(t==n)return!1}}(i))t+=eG(i),r=i;else if(eW(i)){let n=0,r=t-2;for(;r>=0&&eW(eU(e,r));)n++,r-=2;if(n%2==0)break;t+=2}else break}return t}function eU(e,t){let n=e.charCodeAt(t);if(!eq(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return eK(r)?(n-55296<<10)+(r-56320)+65536:n}function eK(e){return e>=56320&&e<57344}function eq(e){return e>=55296&&e<56320}function eG(e){return e<65536?1:2}class eZ{lineAt(e){if(e<0||e>this.length)throw RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){[e,t]=e4(this,e,t);let r=[];return this.decompose(0,e,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(t,this.length,r,1),eX.from(r,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=e4(this,e,t);let n=[];return this.decompose(e,t,n,0),eX.from(n,t-e)}eq(e){if(e==this)return!0;
vendor: 4,973 bytes, line 2
2if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),r=new eQ(this),i=new eQ(e);for(let e=t,o=t;;){if(r.next(e),i.next(e),e=0,r.lineBreak!=i.lineBreak||r.done!=i.done||r.value!=i.value)return!1;if(o+=r.value.length,r.done||o>=n)return!0}}iter(e=1){return new eQ(this,e)}iterRange(e,t=this.length){return new e0(this,e,t)}iterLines(e,t){let n;if(null==e)n=this.iter();else{null==t&&(t=this.lines+1);let r=this.line(e).from;n=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new e1(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}static of(e){if(0==e.length)throw RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new eY(e):eX.from(eY.split(e,[])):eZ.empty}}class eY extends eZ{constructor(e,t=function(e){let t=-1;for(let n of e)t+=n.length+1;return t}(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,r){for(let i=0;;i++){let o=this.text[i],a=r+o.length;if((t?n:a)>=e)return new e2(r,a,n,o);r=a+1,n++}}decompose(e,t,n,r){var i;let o=e<=0&&t>=this.length?this:new eY((i=this.text,eJ(i,[""],e,t)),Math.min(t,this.length)-Math.max(0,e));if(1&r){let e=n.pop(),t=eJ(o.text,e.text.slice(),0,o.length);if(t.length<=32)n.push(new eY(t,e.length+o.length));else{let e=t.length>>1;n.push(new eY(t.slice(0,e)),new eY(t.slice(e)))}}else n.push(o)}replace(e,t,n){var r;if(!(n instanceof eY))return super.replace(e,t,n);[e,t]=e4(this,e,t);let i=eJ(this.text,eJ(n.text,(r=this.text,eJ(r,[""],0,e))),t),o=this.length+n.length-(t-e);return i.length<=32?new eY(i,o):eX.from(eY.split(i,[]),o)}sliceString(e,t=this.length,n="\n"){[e,t]=e4(this,e,t);let r="";for(let i=0,o=0;i<=t&&o<this.text.length;o++){let a=this.text[o],s=i+a.length;i>e&&o&&(r+=n),e<s&&t>i&&(r+=a.slice(Math.max(0,e-i),t-i)),i=s+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],r=-1;for(let i of e)n.push(i),r+=i.length+1,32==n.length&&(t.push(new eY(n,r)),n=[],r=-1);return r>-1&&t.push(new eY(n,r)),t}}class eX extends eZ{constructor(e,t){for(let n of(super(),this.children=e,this.length=t,this.lines=0,e))this.lines+=n.lines}lineInner(e,t,n,r){for(let i=0;;i++){let o=this.children[i],a=r+o.length,s=n+o.lines-1;if((t?s:a)>=e)return o.lineInner(e,t,n,r);r=a+1,n=s+1}}decompose(e,t,n,r){for(let i=0,o=0;o<=t&&i<this.children.length;i++){let a=this.children[i],s=o+a.length;if(e<=s&&t>=o){let i=r&(o<=e|2*(s>=t));o>=e&&s<=t&&!i?n.push(a):a.decompose(e-o,t-o,n,i)}o=s+1}}replace(e,t,n){if([e,t]=e4(this,e,t),n.lines<this.lines)for(let r=0,i=0;r<this.children.length;r++){let o=this.children[r],a=i+o.length;if(e>=i&&t<=a){let s=o.replace(e-i,t-i,n),l=this.lines-o.lines+s.lines;if(s.lines<l>>4&&s.lines>l>>6){let i=this.children.slice();return i[r]=s,new eX(i,this.length-(t-e)+n.length)}return super.replace(i,a,s)}i=a+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n="\n"){[e,t]=e4(this,e,t);let r="";for(let i=0,o=0;i<this.children.length&&o<=t;i++){let a=this.children[i],s=o+a.length;o>e&&i&&(r+=n),e<s&&t>o&&(r+=a.sliceString(e-o,t-o,n)),o=s+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof eX))return 0;let n=0,[r,i,o,a]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=t,i+=t){if(r==o||i==a)return n;let s=this.children[r],l=e.children[i];if(s!=l)return n+s.scanIdentical(l,t);n+=s.length+1}}static from(e,t=e.reduce((e,t)=>e+t.length+1,-1)){let n=0;for(let t of e)n+=t.lines;if(n<32){let n=[];for(let t of e)t.flatten(n);return new eY(n,t)}let r=Math.max(32,n>>5),i=r<<1,o=r>>1,a=[],s=0,l=-1,c=[];function u(){0!=s&&(a.push(1==c.length?c[0]:eX.from(c,l)),l=-1,s=c.length=0)}for(let t of e)!function e(t){let n;if(t.lines>i&&t instanceof eX)for(let n of t.children)e(n);else t.lines>o&&(s>o||!s)?(u(),a.push(t)):t instanceof eY&&s&&(n=c[c.length-1])instanceof eY&&t.lines+n.lines<=32?(s+=t.lines,l+=t.length+1,c[c.length-1]=new eY(n.text.concat(t.text),n.length+1+t.length)):(s+t.lines>r&&u(),s+=t.lines,l+=t.length+1,c.push(t))}(t);return u(),1==a.length?a[0]:new eX(a,t)}}function eJ(e,t,n=0,r=1e9){for(let i=0,o=0,a=!0;o<e.length&&i<=r;o++){let s=e[o],l=i+s.length;l>=n&&(l>r&&(s=s.slice(0,r-i)),i<n&&(s=s.slice(n-i)),a?(t[t.length-1]+=s,a=!1):t.push(s)),i=l+1}return t}eZ.empty=new eY([""],0);class eQ{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof eY?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,r=this.nodes[n],i=this.offsets[n],o=i>>1,a=r instanceof eY?r.text.length:r.children.length;if(o==(t>0?a:0)){if(0==n)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&i)==(t>
20?0:1)){if(this.offsets[n]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(r instanceof eY){let i=r.text[o+(t<0?-1:0)];if(this.offsets[n]+=t,i.length>Math.max(0,e))return this.value=0==e?i:t>0?i.slice(e):i.slice(0,i.length-e),this;e-=i.length}else{let i=r.children[o+(t<0?-1:0)];e>i.length?(e-=i.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(i),this.offsets.push(t>0?1:(i instanceof eY?i.text.length:i.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class e0{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new eQ(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=n?r:t<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class e1{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:r}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}"u">typeof Symbol&&(eZ.prototype[Symbol.iterator]=function(){return this.iter()},eQ.prototype[Symbol.iterator]=e0.prototype[Symbol.iterator]=e1.prototype[Symbol.iterator]=function(){return this});class e2{constructor(e,t,n,r){this.from=e,this.to=t,this.number=n,this.text=r}get length(){return this.to-this.from}}function e4(e,t,n){return[t=Math.max(0,Math.min(e.length,t)),Math.max(t,Math.min(e.length,n))]}function e5(e,t,n=!0,r=!0){return function(e,t,n=!0,r=!0){return(n?e$:function(e,t,n){for(;t>1;){let r=e$(e,t-2,n);if(r<t)return r;t--}return 0})(e,t,r)}(e,t,n,r)}function e3(e,t){let n=e.charCodeAt(t);if(!(n>=55296&&n<56320)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return r>=56320&&r<57344?(n-55296<<10)+(r-56320)+65536:n}function e6(e){return e<65536?1:2}let e8=/\r\n?|\n/;var e9=((a=e9||(e9={}))[a.Simple=0]="Simple",a[a.TrackDel=1]="TrackDel",a[a.TrackBefore=2]="TrackBefore",a[a.TrackAfter=3]="TrackAfter",a);class e7{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t+1];e+=n<0?this.sections[t]:n}return e}get empty(){return 0==this.sections.length||2==this.sections.length&&this.sections[1]<0}iterGaps(e){for(let t=0,n=0,r=0;t<this.sections.length;){let i=this.sections[t++],o=this.sections[t++];o<0?(e(n,r,i),r+=i):r+=o,n+=i}}iterChangedRanges(e,t=!1){tr(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let n=this.sections[t++],r=this.sections[t++];r<0?e.push(n,r):e.push(r,n)}return new e7(e)}composeDesc(e){return this.empty?e:e.empty?this:to(this,e)}mapDesc(e,t=!1){return e.empty?this:ti(this,e,t)}mapPos(e,t=-1,n=e9.Simple){let r=0,i=0;for(let o=0;o<this.sections.length;){let a=this.sections[o++],s=this.sections[o++],l=r+a;if(s<0){if(l>e)return i+(e-r);i+=a}else{if(n!=e9.Simple&&l>=e&&(n==e9.TrackDel&&r<e&&l>e||n==e9.TrackBefore&&r<e||n==e9.TrackAfter&&l>e))return null;if(l>e||l==e&&t<0&&!a)return e==r||t<0?i:i+s;i+=s}r=l}if(e>r)throw RangeError(`Position ${e} is out of range for changeset of length ${r}`);return i}touchesRange(e,t=e){for(let n=0,r=0;n<this.sections.length&&r<=t;){let i=this.sections[n++],o=this.sections[n++],a=r+i;if(o>=0&&r<=t&&a>=e)return!(r<e)||!(a>t)||"cover";r=a}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let n=this.sections[t++],r=this.sections[t++];e+=(e?" ":"")+n+(r>=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(e=>"number"!=typeof e))throw RangeError("Invalid JSON representation of ChangeDesc");return new e7(e)}static create(e){return new e7(e)}}class te extends e7{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw RangeError("Applying change set to a document with the wrong length");return tr(this,(t,n,r,i,o)=>e=e.replace(r,r+(n-t),o),!1),e}
2mapDesc(e,t=!1){return ti(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let r=0,i=0;r<t.length;r+=2){let o=t[r],a=t[r+1];if(a>=0){t[r]=a,t[r+1]=o;let s=r>>1;for(;n.length<s;)n.push(eZ.empty);n.push(o?e.slice(i,i+o):eZ.empty)}i+=o}return new te(t,n)}compose(e){return this.empty?e:e.empty?this:to(this,e,!0)}map(e,t=!1){return e.empty?this:ti(this,e,t,!0)}iterChanges(e,t=!1){tr(this,e,t)}get desc(){return e7.create(this.sections)}filter(e){let t=[],n=[],r=[],i=new ta(this);n:for(let o=0,a=0;;){let s=o==e.length?1e9:e[o++];for(;a<s||a==s&&0==i.len;){if(i.done)break n;let e=Math.min(i.len,s-a);tt(r,e,-1);let o=-1==i.ins?-1:0==i.off?i.ins:0;tt(t,e,o),o>0&&tn(n,t,i.text),i.forward(e),a+=e}let l=e[o++];for(;a<l;){if(i.done)break n;let e=Math.min(i.len,l-a);tt(t,e,-1),tt(r,e,-1==i.ins?-1:0==i.off?i.ins:0),i.forward(e),a+=e}}return{changes:new te(t,n),filtered:e7.create(r)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t],r=this.sections[t+1];r<0?e.push(n):0==r?e.push([n]):e.push([n].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,n){let r=[],i=[],o=0,a=null;function s(e=!1){if(!e&&!r.length)return;o<t&&tt(r,t-o,-1);let n=new te(r,i);a=a?a.compose(n.map(a)):n,r=[],i=[],o=0}return!function e(l){if(Array.isArray(l))for(let t of l)e(t);else if(l instanceof te){if(l.length!=t)throw RangeError(`Mismatched change set length (got ${l.length}, expected ${t})`);s(),a=a?a.compose(l.map(a)):l}else{let{from:e,to:a=e,insert:c}=l;if(e>a||e<0||a>t)throw RangeError(`Invalid change range ${e} to ${a} (in doc of length ${t})`);let u=c?"string"==typeof c?eZ.of(c.split(n||e8)):c:eZ.empty,h=u.length;if(e==a&&0==h)return;e<o&&s(),e>o&&tt(r,e-o,-1),tt(r,a-e,h),tn(i,r,u),o=a}}(e),s(!a),a}static empty(e){return new te(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let r=0;r<e.length;r++){let i=e[r];if("number"==typeof i)t.push(i,-1);else if(!Array.isArray(i)||"number"!=typeof i[0]||i.some((e,t)=>t&&"string"!=typeof e))throw RangeError("Invalid JSON representation of ChangeSet");else if(1==i.length)t.push(i[0],0);else{for(;n.length<r;)n.push(eZ.empty);n[r]=eZ.of(i.slice(1)),t.push(i[0],n[r].length)}}return new te(t,n)}static createSet(e,t){return new te(e,t)}}function tt(e,t,n,r=!1){if(0==t&&n<=0)return;let i=e.length-2;i>=0&&n<=0&&n==e[i+1]?e[i]+=t:i>=0&&0==t&&0==e[i]?e[i+1]+=n:r?(e[i]+=t,e[i+1]+=n):e.push(t,n)}function tn(e,t,n){if(0==n.length)return;let r=t.length-2>>1;if(r<e.length)e[e.length-1]=e[e.length-1].append(n);else{for(;e.length<r;)e.push(eZ.empty);e.push(n)}}function tr(e,t,n){let r=e.inserted;for(let i=0,o=0,a=0;a<e.sections.length;){let s=e.sections[a++],l=e.sections[a++];if(l<0)i+=s,o+=s;else{let c=i,u=o,h=eZ.empty;for(;c+=s,u+=l,l&&r&&(h=h.append(r[a-2>>1])),!n&&a!=e.sections.length&&!(e.sections[a+1]<0);)s=e.sections[a++],l=e.sections[a++];t(i,c,o,u,h),i=c,o=u}}}function ti(e,t,n,r=!1){let i=[],o=r?[]:null,a=new ta(e),s=new ta(t);for(let e=-1;;)if(a.done&&s.len||s.done&&a.len)throw Error("Mismatched change set lengths");else if(-1==a.ins&&-1==s.ins){let e=Math.min(a.len,s.len);tt(i,e,-1),a.forward(e),s.forward(e)}else if(s.ins>=0&&(a.ins<0||e==a.i||0==a.off&&(s.len<a.len||s.len==a.len&&!n))){let t=s.len;for(tt(i,s.ins,-1);t;){let n=Math.min(a.len,t);a.ins>=0&&e<a.i&&a.len<=n&&(tt(i,0,a.ins),o&&tn(o,i,a.text),e=a.i),a.forward(n),t-=n}s.next()}else if(a.ins>=0){let t=0,n=a.len;for(;n;)if(-1==s.ins){let e=Math.min(n,s.len);t+=e,n-=e,s.forward(e)}else if(0==s.ins&&s.len<n)n-=s.len,s.next();else break;tt(i,t,e<a.i?a.ins:0),o&&e<a.i&&tn(o,i,a.text),e=a.i,a.forward(a.len-n)}else if(a.done&&s.done)return o?te.createSet(i,o):e7.create(i);else throw Error("Mismatched change set lengths")}function to(e,t,n=!1){let r=[],i=n?[]:null,o=new ta(e),a=new ta(t);for(let e=!1;;)if(o.done&&a.done)return i?te.createSet(r,i):e7.create(r);else if(0==o.ins)tt(r,o.len,0,e),o.next();else if(0!=a.len||a.done)if(o.done||a.done)throw Error("Mismatched change set lengths");else{let t=Math.min(o.len2,a.len),n=r.length;if(-1==o.ins){let n=-1==a.ins?-1:a.off?0:a.ins;tt(r,t,n,e),i&&n&&tn(i,r,a.text)}else -1==a.ins?(tt(r,o.off?0:o.len,t,e),i&&tn(i,r,o.textBit(t))):(tt(r,o.off?0:o.len,a.off?0:a.ins,e),i&&!a.off&&tn(i,r,a.text));e=(o.ins>t||a.ins>=0&&a.len>t)&&(e||r.length>n),o.forward2(t),a.forward(t)}else tt(r,0,a.ins,e),i&&tn(i,r,a.text),a.next()}class ta{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return -2==this.ins}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?eZ.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?eZ.empty:t[n].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}
vendor: 3,372 bytes, line 2
2forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class ts{constructor(e,t,n,r){this.from=e,this.to=t,this.flags=n,this.goalColumn=r}get anchor(){return 32&this.flags?this.to:this.from}get head(){return 32&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 8&this.flags?-1:16&this.flags?1:0}get undirectional(){return(64&this.flags)>0}get bidiLevel(){let e=7&this.flags;return 7==e?null:e}map(e,t=-1){let n,r;return this.empty?n=r=e.mapPos(this.from,t):(n=e.mapPos(this.from,1),r=e.mapPos(this.to,-1)),n==this.from&&r==this.to?this:new ts(n,r,this.flags,this.goalColumn)}extend(e,t=e,n=0){if(e<=this.anchor&&t>=this.anchor)return tl.range(e,t,void 0,void 0,n);let r=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return tl.range(this.anchor,r,void 0,void 0,n)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&this.goalColumn==e.goalColumn&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw RangeError("Invalid JSON representation for SelectionRange");return tl.range(e.anchor,e.head)}static create(e,t,n,r){return new ts(e,t,n,r)}}class tl{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:tl.create(this.ranges.map(n=>n.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let n=0;n<this.ranges.length;n++)if(!this.ranges[n].eq(e.ranges[n],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return 1==this.ranges.length?this:new tl([this.main],0)}addRange(e,t=!0){return tl.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let n=this.ranges.slice();return n[t]=e,tl.create(n,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw RangeError("Invalid JSON representation for EditorSelection");return new tl(e.ranges.map(e=>ts.fromJSON(e)),e.main)}static single(e,t=e){return new tl([tl.range(e,t)],0)}static create(e,t=0){if(0==e.length)throw RangeError("A selection needs at least one range");for(let n=0,r=0;r<e.length;r++){let i=e[r];if(i.empty?i.from<=n:i.from<n)return tl.normalized(e.slice(),t);n=i.to}return new tl(e,t)}static cursor(e,t=0,n,r){return ts.create(e,e,(0==t?0:t<0?8:16)|(null==n?7:Math.min(6,n)),r)}static range(e,t,n,r,i){let o=null==r?7:Math.min(6,r);return i||e==t||(i=t<e?1:-1),i&&(o|=i<0?8:16),t<e?ts.create(t,e,32|o,n):ts.create(e,t,o,n)}static undirectionalRange(e,t){return ts.create(e,t,64,void 0)}static normalized(e,t=0){let n=e[t];e.sort((e,t)=>e.from-t.from),t=e.indexOf(n);for(let n=1;n<e.length;n++){let r=e[n],i=e[n-1];if(r.empty?r.from<=i.to:r.from<i.to){let o=i.from,a=Math.max(r.to,i.to);n<=t&&t--,e.splice(--n,2,r.anchor>r.head?tl.range(a,o):tl.range(o,a))}}return new tl(e,t)}}function tc(e,t){for(let n of e.ranges)if(n.to>t)throw RangeError("Selection points outside of document")}let tu=0;class th{constructor(e,t,n,r,i){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=r,this.id=tu++,this.default=e([]),this.extensions="function"==typeof i?i(this):i}get reader(){return this}static define(e={}
2){return new th(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(!e.combine?td:(e,t)=>e===t),!!e.static,e.enables)}of(e){return new tf([],this,0,e)}compute(e,t){if(this.isStatic)throw Error("Can't compute a static facet");return new tf(e,this,1,t)}computeN(e,t){if(this.isStatic)throw Error("Can't compute a static facet");return new tf(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],n=>t(n.field(e)))}}function td(e,t){return e==t||e.length==t.length&&e.every((e,n)=>e===t[n])}class tf{constructor(e,t,n,r){this.dependencies=e,this.facet=t,this.type=n,this.value=r,this.id=tu++}dynamicSlot(e){var t;let n=this.value,r=this.facet.compareInput,i=this.id,o=e[i]>>1,a=2==this.type,s=!1,l=!1,c=[];for(let n of this.dependencies)"doc"==n?s=!0:"selection"==n?l=!0:((null!=(t=e[n.id])?t:1)&1)==0&&c.push(e[n.id]);return{create:e=>(e.values[o]=n(e),1),update(e,t){if(s&&t.docChanged||l&&(t.docChanged||t.selection)||tm(e,c)){let t=n(e);if(a?!tp(t,e.values[o],r):!r(t,e.values[o]))return e.values[o]=t,1}return 0},reconfigure:(e,t)=>{let s,l=t.config.address[i];if(null!=l){let i=tA(t,l);if(this.dependencies.every(n=>n instanceof th?t.facet(n)===e.facet(n):!(n instanceof tv)||t.field(n,!1)==e.field(n,!1))||(a?tp(s=n(e),i,r):r(s=n(e),i)))return e.values[o]=i,0}else s=n(e);return e.values[o]=s,1}}}get extension(){return this}}function tp(e,t,n){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function tm(e,t){let n=!1;for(let r of t)1&tM(e,r)&&(n=!0);return n}let tg=th.define({static:!0});class tv{constructor(e,t,n,r,i){this.id=e,this.createF=t,this.updateF=n,this.compareF=r,this.spec=i,this.provides=void 0}static define(e){let t=new tv(tu++,e.create,e.update,e.compare||((e,t)=>e===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(tg).find(e=>e.field==this);return((null==t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,n)=>{let r=e.values[t],i=this.updateF(r,n);return this.compareF(r,i)?0:(e.values[t]=i,1)},reconfigure:(e,n)=>{let r=e.facet(tg),i=n.facet(tg),o;return(o=r.find(e=>e.field==this))&&o!=i.find(e=>e.field==this)?(e.values[t]=o.create(e),1):null!=n.config.address[this.id]?(e.values[t]=n.field(this),0):(e.values[t]=this.create(e),1)}}}init(e){return[this,tg.of({field:this,create:e})]}get extension(){return this}}function ty(e){return t=>new tx(t,e)}let tb={highest:ty(0),high:ty(1),default:ty(2),low:ty(3),lowest:ty(4)};class tx{constructor(e,t){this.inner=e,this.prec=t}get extension(){return this}}class tw{of(e){return new tk(this,e)}reconfigure(e){return tw.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class tk{constructor(e,t){this.compartment=e,this.inner=t}get extension(){return this}}class tS{constructor(e,t,n,r,i,o){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=r,this.staticValues=i,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<n.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return null==t?e.default:this.staticValues[t>>1]}static resolve(e,t,n){var r,i,o;let a,s,l=[],c=Object.create(null),u=new Map;for(let n of(r=e,i=t,o=u,a=[[],[],[],[],[]],s=new Map,!function e(t,n){let r=s.get(t);if(null!=r){if(r<=n)return;let e=a[r].indexOf(t);e>-1&&a[r].splice(e,1),t instanceof tk&&o.delete(t.compartment)}if(s.set(t,n),Array.isArray(t))for(let r of t)e(r,n);else if(t instanceof tk){if(o.has(t.compartment))throw RangeError("Duplicate use of compartment in extensions");let r=i.get(t.compartment)||t.inner;o.set(t.compartment,r),e(r,n)}else if(t instanceof tx)e(t.inner,t.prec);else if(t instanceof tv)a[n].push(t),t.provides&&e(t.provides,n);else if(t instanceof tf)a[n].push(t),t.facet.extensions&&e(t.facet.extensions,2);else{let r=t.extension;if(!r)throw Error(`Unrecognized extension value in extension set (${t}).`);if(r==t)throw Error(`Unrecognized extension value in extension set (${t}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);e(r,n)}}(r,2),a.reduce((e,t)=>
vendor: 10,799 bytes, line 2
2e.concat(t))))n instanceof tv?l.push(n):(c[n.facet.id]||(c[n.facet.id]=[])).push(n);let h=Object.create(null),d=[],f=[];for(let e of l)h[e.id]=f.length<<1,f.push(t=>e.slot(t));let p=null==n?void 0:n.config.facets;for(let e in c){let t=c[e],r=t[0].facet,i=p&&p[e]||[];if(t.every(e=>0==e.type))if(h[r.id]=d.length<<1|1,td(i,t))d.push(n.facet(r));else{let e=r.combine(t.map(e=>e.value));d.push(n&&r.compare(e,n.facet(r))?n.facet(r):e)}else{for(let e of t)0==e.type?(h[e.id]=d.length<<1|1,d.push(e.value)):(h[e.id]=f.length<<1,f.push(t=>e.dynamicSlot(t)));h[r.id]=f.length<<1,f.push(e=>(function(e,t,n){let r=n.map(t=>e[t.id]),i=n.map(e=>e.type),o=r.filter(e=>!(1&e)),a=e[t.id]>>1;function s(e){let n=[];for(let t=0;t<r.length;t++){let o=tA(e,r[t]);if(2==i[t])for(let e of o)n.push(e);else n.push(o)}return t.combine(n)}return{create(e){for(let t of r)tM(e,t);return e.values[a]=s(e),1},update(e,n){if(!tm(e,o))return 0;let r=s(e);return t.compare(r,e.values[a])?0:(e.values[a]=r,1)},reconfigure(e,i){let o=tm(e,r),l=i.config.facets[t.id],c=i.facet(t);if(l&&!o&&td(n,l))return e.values[a]=c,0;let u=s(e);return t.compare(u,c)?(e.values[a]=c,0):(e.values[a]=u,1)}}})(e,r,t))}}return new tS(e,u,f.map(e=>e(h)),h,d,c)}}function tM(e,t){if(1&t)return 2;let n=t>>1,r=e.status[n];if(4==r)throw Error("Cyclic dependency between fields and/or facets");if(2&r)return r;e.status[n]=4;let i=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|i}function tA(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}let tE=th.define(),tC=th.define({combine:e=>e.some(e=>e),static:!0}),tO=th.define({combine:e=>e.length?e[0]:void 0,static:!0}),tP=th.define(),tT=th.define(),tD=th.define(),tR=th.define({combine:e=>!!e.length&&e[0]});class tj{constructor(e,t){this.type=e,this.value=t}static define(){return new tI}}class tI{of(e){return new tj(this,e)}}class tz{constructor(e){this.map=e}of(e){return new t_(this,e)}}class t_{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new t_(this.type,t)}is(e){return this.type==e}static define(e={}){return new tz(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let r of e){let e=r.map(t);e&&n.push(e)}return n}}t_.reconfigure=t_.define(),t_.appendConfig=t_.define();class tL{constructor(e,t,n,r,i,o){this.startState=e,this.changes=t,this.selection=n,this.effects=r,this.annotations=i,this.scrollIntoView=o,this._doc=null,this._state=null,n&&tc(n,t.newLength),i.some(e=>e.type==tL.time)||(this.annotations=i.concat(tL.time.of(Date.now())))}static create(e,t,n,r,i,o){return new tL(e,t,n,r,i,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(tL.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}function tN(e,t,n){var r;let i,o,a;return n?(i=t.changes,o=te.empty(t.changes.length),a=e.changes.compose(t.changes)):(i=t.changes.map(e.changes),o=e.changes.mapDesc(t.changes,!0),a=e.changes.compose(i)),{changes:a,selection:t.selection?t.selection.map(o):null==(r=e.selection)?void 0:r.map(i),effects:t_.mapEffects(e.effects,i).concat(t_.mapEffects(t.effects,o)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function tB(e,t,n){let r=t.selection,i=tV(t.annotations);return t.userEvent&&(i=i.concat(tL.userEvent.of(t.userEvent))),{changes:t.changes instanceof te?t.changes:te.of(t.changes||[],n,e.facet(tO)),selection:r&&(r instanceof tl?r:tl.single(r.anchor,r.head)),effects:tV(t.effects),annotations:i,scrollIntoView:!!t.scrollIntoView}}tL.time=tj.define(),tL.userEvent=tj.define(),tL.addToHistory=tj.define(),tL.remote=tj.define();let tF=[];function tV(e){return null==e?tF:Array.isArray(e)?e:[e]}var tH=((s=tH||(tH={}))[s.Word=0]="Word",s[s.Space=1]="Space",s[s.Other=2]="Other",s);let tW=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;try{r=RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(e){}class t${constructor(e,t,n,r,i,o){this.config=e,this.doc=t,this.selection=n,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=i,o&&(o._state=this);for(let e=0;e<this.config.dynamicSlots.length;e++)tM(this,e<<1);this.computeSlot=null}field(e,t=!0){let n=this.config.address[e.id];if(null==n){if(t)throw RangeError("Field is not present in this state");return}return tM(this,n),tA(this,n)}update(...e){return function e(t,n,r){let i=tB(t,n.length?n[0]:{},t.doc.length);n.length&&!1===n[0].filter&&(r=!1);for(let e=1;e<n.length;e++){!1===n[e].filter&&(r=!1);let o=!!n[e].sequential;i=tN(i,tB(t,n[e],o?i.changes.newLength:t.doc.length),o)}let o=tL.create(t,i.changes,i.selection,i.effects,i.annotations,i.scrollIntoView);return function(e){let t=e.startState,n=t.facet(tD),r=e;for(let i=n.length-1;i>=0;i--){let o=n[i](e);o&&Object.keys(o).length&&(r=tN(r,tB(t,o,e.changes.newLength),!0))}return r==e?e:tL.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}(r?function(t){let n=t.startState,r=!0;for(let e of n.facet(tP)){let n=e(t);if(!1===n){r=!1;break}Array.isArray(n)&&(r=!0===r?n:function(e,t){let n=[];for(let r=0,i=0;;){let o,a;if(r<e.length&&(i==t.length||t[i]>=e[r]))o=e[r++],a=e[r++];else{if(!(i<t.length))return n;o=t[i++],a=t[i++]}!n.length||n[n.length-1]<o?n.push(o,a):n[n.length-1]<a&&(n[n.length-1]=a)}}(r,n))}if(!0!==r){let e,i;if(!1===r)i=t.changes.invertedDesc,e=te.empty(n.doc.length);else{let n=t.changes.filter(r);e=n.changes,i=n.filtered.mapDesc(n.changes).invertedDesc}t=tL.create(n,e,t.selection&&t.selection.map(i),t_.mapEffects(t.effects,i),t.annotations,t.scrollIntoView)}let i=n.facet(tT);for(let r=i.length-1;r>=0;r--){let o=i[r](t);t=o instanceof tL?o:Array.isArray(o)&&1==o.length&&o[0]instanceof tL?o[0]:e(n,tV(o),!1)}return t}(o):o)}(this,e,!0)}applyTransaction(e){let t,n=this.config,{base:r,compartments:i}=n;for(let t of e.effects)t.is(tw.reconfigure)?(n&&(i=new Map,n.compartments.forEach((e,t)=>i.set(t,e)),n=null),i.set(t.value.compartment,t.value.extension)):t.is(t_.reconfigure)?(n=null,r=t.value):t.is(t_.appendConfig)&&(n=null,r=tV(r).concat(t.value));t=n?e.startState.values.slice():new t$(n=tS.resolve(r,i,this),this.doc,this.selection,n.dynamicSlots.map(()=>null),(e,t)=>t.reconfigure(e,this),null).values;let o=e.startState.facet(tC)?e.newSelection:e.newSelection.asSingle();new t$(n,e.newDoc,o,t,(t,n)=>n.update(t,e),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:tl.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),r=this.changes(n.changes),i=[n.range],o=tV(n.effects);for(let n=1;n<t.ranges.length;n++){let a=e(t.ranges[n]),s=this.changes(a.changes),l=s.map(r);for(let e=0;e<n;e++)i[e]=i[e].map(l);let c=r.mapDesc(s,!0);i.push(a.range.map(c)),r=r.compose(l),o=t_.mapEffects(o,l).concat(t_.mapEffects(tV(a.effects),c))}return{changes:r,selection:tl.create(i,t.mainIndex),effects:o}}changes(e=[]){return e instanceof te?e:te.of(e,this.doc.length,this.facet(t$.lineSeparator))}toText(e){return eZ.of(e.split(this.facet(t$.lineSeparator)||e8))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return null==t?e.default:(tM(this,t),tA(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let n in e){let r=e[n];r instanceof tv&&null!=this.config.address[r.id]&&(t[n]=r.spec.toJSON(this.field(e[n]),this))}return t}static fromJSON(e,t={},n){if(!e||"string"!=typeof e.doc)throw RangeError("Invalid JSON representation for EditorState");let r=[];if(n){for(let t in n)if(Object.prototype.hasOwnProperty.call(e,t)){let i=n[t],o=e[t];r.push(i.init(e=>i.spec.fromJSON(o,e)))}}return t$.create({doc:e.doc,selection:tl.fromJSON(e.selection),extensions:t.extensions?r.concat([t.extensions]):r})}static create(e={}){let t=tS.resolve(e.extensions||[],new Map),n=e.doc instanceof eZ?e.doc:eZ.of((e.doc||"").split(t.staticFacet(t$.lineSeparator)||e8)),r=e.selection?e.selection instanceof tl?e.selection:tl.single(e.selection.anchor,e.selection.head):tl.single(0);return tc(r,n.length),t.staticFacet(tC)||(r=r.asSingle()),new t$(t,n,r,t.dynamicSlots.map(()=>null),(e,t)=>t.create(e),null)}get tabSize(){return this.facet(t$.tabSize)}get lineBreak(){return this.facet(t$.lineSeparator)||"\n"}get readOnly(){return this.facet(tR)}phrase(e,...t){for(let t of this.facet(t$.phrases))if(Object.prototype.hasOwnProperty.call(t,e)){e=t[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(e,n)=>{if("$"==n)return"$";let r=+(n||1);return!r||r>t.length?e:t[r-1]})),e}languageDataAt(e,t,n=-1){let r=[];for(let i of this.facet(tE))for(let o of i(this,t,n))Object.prototype.hasOwnProperty.call(o,e)&&r.push(o[e]);return r}charCategorizer(e){var t;let n=this.languageDataAt("wordChars",e);return t=n.length?n[0]:"",e=>{if(!/\S/.test(e))return tH.Space;if(function(e){if(r)return r.test(e);for(let t=0;t<e.length;t++){let n=e[t];if(/\w/.test(n)||n>"\x80"&&(n.toUpperCase()!=n.toLowerCase()||tW.test(n)))return!0}return!1}(e))return tH.Word;for(let n=0;n<t.length;n++)if(e.indexOf(t[n])>-1)return tH.Word;return tH.Other}}wordAt(e){let{text:t,from:n,length:r}=this.doc.lineAt(e),i=this.charCategorizer(e),o=e-n,a=e-n;for(;o>0;){let e=e5(t,o,!1);if(i(t.slice(e,o))!=tH.Word)break;o=e}for(;a<r;){let e=e5(t,a);if(i(t.slice(a,e))!=tH.Word)break;a=e}return o==a?null:tl.range(o+n,a+n)}}function tU(e,t,n={}){let r={};for(let t of e)for(let e of Object.keys(t)){let i=t[e],o=r[e];if(void 0===o)r[e]=i;else if(o===i||void 0===i);else if(Object.hasOwnProperty.call(n,e))r[e]=n[e](o,i);else throw Error("Config merge conflict for field "+e)}for(let e in t)void 0===r[e]&&(r[e]=t[e]);return r}t$.allowMultipleSelections=tC,t$.tabSize=th.define({combine:e=>e.length?e[0]:4}),t$.lineSeparator=tO,t$.readOnly=tR,t$.phrases=th.define({compare(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length==r.length&&n.every(n=>e[n]==t[n])}}),t$.languageData=tE,t$.changeFilter=tP,t$.transactionFilter=tT,t$.transactionExtender=tD,tw.reconfigure=t_.define();class tK{eq(e){return this==e}range(e,t=e){return tG.create(e,t,this)}}function tq(e,t){return e==t||e.constructor==t.constructor&&e.eq(t)}tK.prototype.startSide=tK.prototype.endSide=0,tK.prototype.point=!1,tK.prototype.mapM
2ode=e9.TrackDel;class tG{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(e,t,n){return new tG(e,t,n)}}function tZ(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class tY{constructor(e,t,n,r){this.from=e,this.to=t,this.value=n,this.maxPoint=r}get length(){return tJ(this.to)}findIndex(e,t,n,r=0){let i=n?this.to:this.from;for(let o=r,a=i.length;;){if(o==a)return o;let r=o+a>>1,s=i[r]-e||(n?this.value[r].endSide:this.value[r].startSide)-t;if(r==o)return s>=0?o:a;s>=0?a=r:o=r+1}}between(e,t,n,r){for(let i=this.findIndex(t,-1e9,!0),o=this.findIndex(n,1e9,!1,i);i<o;i++)if(!1===r(this.from[i]+e,this.to[i]+e,this.value[i]))return!1}map(e,t,n,r,i){let o=[],a=[],s=[],l=-1,c=-1;s:for(let u=0;u<this.value.length;u++){let h=this.value[u],d=this.from[u]+e,f=this.to[u]+e,p,m;if(d==f){let e=t.mapPos(d,h.startSide,h.mapMode);if(null==e||(p=m=e,h.startSide!=h.endSide&&(m=t.mapPos(d,h.endSide))<p))continue}else if((p=t.mapPos(d,h.startSide))>(m=t.mapPos(f,h.endSide))||p==m&&h.startSide>0&&h.endSide<=0)continue;if(!(0>(m-p||h.endSide-h.startSide)))if(l<0&&(l=p),h.point&&(c=Math.max(c,m-p)),(p-n||h.startSide-r)>=0)o.push(h),a.push(p-l),s.push(m-l),n=m,r=h.endSide;else{if(p==m)for(let e=o.length;e>0;e--){if((p-(s[e-1]+l)||h.startSide-o[e-1].endSide)>=0){o.splice(e,0,h),a.splice(e,0,p-l),s.splice(e,0,m-l);continue s}if((p-(a[e-1]+l)||h.endSide-o[e-1].startSide)>0)break}i(p,m,h)}}return{mapped:o.length?new tY(a,s,o,c):null,pos:l}}}class tX{constructor(e,t,n,r){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=r}static create(e,t,n,r){return new tX(e,t,n,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:r=0,filterTo:i=this.length}=e,o=e.filter;if(0==t.length&&!o)return this;if(n&&(t=t.slice().sort(tZ)),this.isEmpty)return t.length?tX.of(t):this;let a=new t1(this,null,-1).goto(0),s=0,l=[],c=new tQ;for(;a.value||s<t.length;)if(s<t.length&&(a.from-t[s].from||a.startSide-t[s].value.startSide)>=0){let e=t[s++];c.addInner(e.from,e.to,e.value,!1)||l.push(e)}else 1==a.rangeIndex&&a.chunkIndex<this.chunk.length&&(s==t.length||this.chunkEnd(a.chunkIndex)<t[s].from)&&(!o||r>this.chunkEnd(a.chunkIndex)||i<this.chunkPos[a.chunkIndex])&&c.addChunk(this.chunkPos[a.chunkIndex],this.chunk[a.chunkIndex])?a.nextChunk():((!o||r>a.to||i<a.from||o(a.from,a.to,a.value))&&!c.addInner(a.from,a.to,a.value,!1)&&l.push(tG.create(a.from,a.to,a.value)),a.next());return c.finishInner(this.nextLayer.isEmpty&&!l.length?tX.empty:this.nextLayer.update({add:l,filter:o,filterFrom:r,filterTo:i}))}map(e){let t;if(e.empty||this.isEmpty)return this;let n=[],r=[],i=-1,o=(e,n,r)=>{t||(t=new tQ),t.addRange(e,n,r,!1)};for(let t=0;t<this.chunk.length;t++){let a=this.chunkPos[t],s=this.chunk[t],l=e.touchesRange(a,a+s.length);if(!1===l)i=Math.max(i,s.maxPoint),n.push(s),r.push(e.mapPos(a));else if(!0===l){let[t,l]=n.length?[tJ(r)+tJ(n).length,tJ(tJ(n).value).endSide]:[-1,-1],{mapped:c,pos:u}=s.map(a,e,t,l,o);c&&(i=Math.max(i,c.maxPoint),n.push(c),r.push(u))}}let a=this.nextLayer.map(e);return t&&(a=t.finishInner(a)),0==n.length?a:new tX(r,n,a||tX.empty,i)}between(e,t,n){if(!this.isEmpty){for(let r=0;r<this.chunk.length;r++){let i=this.chunkPos[r],o=this.chunk[r];if(t>=i&&e<=i+o.length&&!1===o.between(i,e-i,t-i,n))return}this.nextLayer.between(e,t,n)}}iter(e=0){return t2.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return t2.from(e).goto(t)}static compare(e,t,n,r,i=-1){let o=e.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i),a=t.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i),s=t0(o,a,n),l=new t5(o,s,i),c=new t5(a,s,i);n.iterGaps((e,t,n)=>t3(l,e,c,t,n,r)),n.empty&&0==n.length&&t3(l,0,c,0,0,r)}static eq(e,t,n=0,r){null==r&&(r=0x3b9ac9ff);let i=e.filter(e=>!e.isEmpty&&0>t.indexOf(e)),o=t.filter(t=>!t.isEmpty&&0>e.indexOf(t));if(i.length!=o.length)return!1;if(!i.length)return!0;let a=t0(i,o),s=new t5(i,a,0).goto(n),l=new t5(o,a,0).goto(n);for(;;){if(s.to!=l.to||!t6(s.active,l.active)||s.point&&(!l.point||!tq(s.point,l.point)))return!1;if(s.to>r)return!0;s.next(),l.next()}}static spans(e,t,n,r,i=-1){let o=new t5(e,null,i).goto(t),a=t,s=o.openStart;for(;;){let e=Math.min(o.to,n);if(o.point){let n=o.activeForPoint(o.to),i=o.pointFrom<t?n.length+1:o.point.startSide<0?n.length:Math.min(n.length,s);
2r.point(a,e,o.point,n,i,o.pointRank),s=Math.min(o.openEnd(e),n.length)}else e>a&&(r.span(a,e,o.active,s),s=o.openEnd(e));if(o.to>n)return s+(o.point&&o.to>n?1:0);a=o.to,o.next()}}static of(e,t=!1){let n=new tQ;for(let r of e instanceof tG?[e]:t?function(e){if(e.length>1)for(let t=e[0],n=1;n<e.length;n++){let r=e[n];if(tZ(t,r)>0)return e.slice().sort(tZ);t=r}return e}(e):e)n.add(r.from,r.to,r.value);return n.finish()}static join(e){if(!e.length)return tX.empty;let t=tJ(e);for(let n=e.length-2;n>=0;n--)for(let r=e[n];r!=tX.empty;r=r.nextLayer)t=new tX(r.chunkPos,r.chunk,t,Math.max(r.maxPoint,t.maxPoint));return t}}function tJ(e){return e[e.length-1]}tX.empty=new tX([],[],null,-1),tX.empty.nextLayer=tX.empty;class tQ{finishChunk(e){this.chunks.push(new tY(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,n){this.addRange(e,t,n,!0)}addRange(e,t,n,r){this.addInner(e,t,n,r)||(this.nextLayer||(this.nextLayer=new tQ)).addRange(e,t,n,r)}addInner(e,t,n,r){let i=e-this.lastTo||n.startSide-this.last.endSide;if(r&&i<=0&&0>(e-this.lastFrom||n.startSide-this.last.startSide))throw Error("Ranges must be added sorted by `from` position and `startSide`");return!(i<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if(0>(e-this.lastTo||t.value[0].startSide-this.last.endSide))return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(tX.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=tX.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function t0(e,t,n){let r=new Map;for(let t of e)for(let e=0;e<t.chunk.length;e++)t.chunk[e].maxPoint<=0&&r.set(t.chunk[e],t.chunkPos[e]);let i=new Set;for(let e of t)for(let t=0;t<e.chunk.length;t++){let o=r.get(e.chunk[t]);null==o||(n?n.mapPos(o):o)!=e.chunkPos[t]||(null==n?void 0:n.touchesRange(o,o+e.chunk[t].length))||i.add(e.chunk[t])}return i}class t1{constructor(e,t,n,r=0){this.layer=e,this.skip=t,this.minPoint=n,this.rank=r}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,t=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}gotoInner(e,t,n){for(;this.chunkIndex<this.layer.chunk.length;){let t=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(t)||this.layer.chunkEnd(this.chunkIndex)<e||t.maxPoint<this.minPoint))break;this.chunkIndex++,n=!1}if(this.chunkIndex<this.layer.chunk.length){let r=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],t,!0);(!n||this.rangeIndex<r)&&this.setRangeIndex(r)}this.next()}forward(e,t){0>(this.to-e||this.endSide-t)&&this.gotoInner(e,t,!0)}next(){for(;;)if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}else{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],n=e+t.from[this.rangeIndex];if(this.from=n,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class t2{constructor(e){this.heap=e}static from(e,t=null,n=-1){let r=[];for(let i=0;i<e.length;i++)for(let o=e[i];!o.isEmpty;o=o.nextLayer)o.maxPoint>=n&&r.push(new t1(o,t,n,i));return 1==r.length?r[0]:new t2(r)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let n of this.heap)n.goto(e,t);for(let e=this.heap.length>>1;e>=0;e--)t4(this.heap,e);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let e=this.heap.length>>1;e>=0;e--)t4(this.heap,e);0>(this.to-e||this.value.endSide-t)&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),t4(this.heap,0)}}}function t4(e,t){for(let n=e[t];;){let r=(t<<1)+1;if(r>=e.length)break;let i=e[r];if(r+1<e.length&&i.compare(e[r+1])>=0&&(i=e[r+1],r++),0>n.compare(i))break;e[r]=n,e[t]=i,t=r}}class t5{constructor(e,t,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=t2.from(e,t,n)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&0>(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t);)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){t8(this.active,e),t8(this.activeTo,e),t8(this.activeRank,e),this.minActive=t7(this.active,this.activeTo)}
2addActive(e){let t=0,{value:n,to:r,rank:i}=this.cursor;for(;t<this.activeRank.length&&(i-this.activeRank[t]||r-this.activeTo[t])>0;)t++;t9(this.active,t,n),t9(this.activeTo,t,r),t9(this.activeRank,t,i),e&&t9(e,t,this.cursor.from),this.minActive=t7(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let n=this.openStart<0?[]:null;for(;;){let r=this.minActive;if(r>-1&&0>(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)){if(this.activeTo[r]>e){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),n&&t8(n,r)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let e=this.cursor.value;if(e.point)if(t&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=e,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=e.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}else this.addActive(n),this.cursor.next()}else{this.to=this.endSide=1e9;break}}if(n){this.openStart=0;for(let t=n.length-1;t>=0&&n[t]<e;t--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let t=[];for(let n=this.active.length-1;n>=0&&!(this.activeRank[n]<this.pointRank);n--)(this.activeTo[n]>e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}function t3(e,t,n,r,i,o){e.goto(t),n.goto(r);let a=r+i,s=r,l=r-t,c=!!o.boundChange;for(let t=!1;;){let r=e.to+l-n.to,i=r||e.endSide-n.endSide,u=i<0?e.to+l:n.to,h=Math.min(u,a);if(e.point||n.point?(e.point&&n.point&&tq(e.point,n.point)&&t6(e.activeForPoint(e.to),n.activeForPoint(n.to))||o.comparePoint(s,h,e.point,n.point),t=!1):(t&&o.boundChange(s),h>s&&!t6(e.active,n.active)&&o.compareRange(s,h,e.active,n.active),c&&h<a&&(r||e.openEnd(u)!=n.openEnd(u))&&(t=!0)),u>a)break;s=u,i<=0&&e.next(),i>=0&&n.next()}}function t6(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n]&&!tq(e[n],t[n]))return!1;return!0}function t8(e,t){for(let n=t,r=e.length-1;n<r;n++)e[n]=e[n+1];e.pop()}function t9(e,t,n){for(let n=e.length-1;n>=t;n--)e[n+1]=e[n];e[t]=n}function t7(e,t){let n=-1,r=1e9;for(let i=0;i<t.length;i++)0>(t[i]-r||e[i].endSide-e[n].endSide)&&(n=i,r=t[i]);return n}var ne=n(22776),nt=n(41563),nn=n(61145);let nr="u">typeof navigator?navigator:{userAgent:"",vendor:"",platform:""},ni="u">typeof document?document:{documentElement:{style:{}}},no=/Edge\/(\d+)/.exec(nr.userAgent),na=/MSIE \d/.test(nr.userAgent),ns=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(nr.userAgent),nl=!!(na||ns||no),nc=!nl&&/gecko\/(\d+)/i.test(nr.userAgent),nu=!nl&&/Chrome\/(\d+)/.exec(nr.userAgent),nh="webkitFontSmoothing"in ni.documentElement.style,nd=!nl&&/Apple Computer/.test(nr.vendor),nf=nd&&(/Mobile\/\w+/.test(nr.userAgent)||nr.maxTouchPoints>2);var np={mac:nf||/Mac/.test(nr.platform),windows:/Win/.test(nr.platform),linux:/Linux|X11/.test(nr.platform),ie:nl,ie_version:na?ni.documentMode||6:ns?+ns[1]:no?+no[1]:0,gecko:nc,gecko_version:nc?+(/Firefox\/(\d+)/.exec(nr.userAgent)||[0,0])[1]:0,chrome:!!nu,chrome_version:nu?+nu[1]:0,ios:nf,android:/Android\b/.test(nr.userAgent),webkit:nh,webkit_version:nh?+(/\bAppleWebKit\/(\d+)/.exec(nr.userAgent)||[0,0])[1]:0,safari:nd,safari_version:nd?+(/\bVersion\/(\d+(\.\d+)?)/.exec(nr.userAgent)||[0,0])[1]:0,tabSize:null!=ni.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};function nm(e,t){for(let n in e)"class"==n&&t.class?t.class+=" "+e.class:"style"==n&&t.style?t.style+=";"+e.style:t[n]=e[n];return t}let ng=Object.create(null);function nv(e,t,n){if(e==t)return!0;e||(e=ng),t||(t=ng);let r=Object.keys(e),i=Object.keys(t);if(r.length-(n&&r.indexOf(n)>-1?1:0)!=i.length-(n&&i.indexOf(n)>-1?1:0))return!1;for(let o of r)if(o!=n&&(-1==i.indexOf(o)||e[o]!==t[o]))return!1;return!0}function ny(e,t,n){let r=!1;if(t)for(let i in t)n&&i in n||(r=!0,"style"==i?e.style.cssText="":e.removeAttribute(i));if(n)for(let i in n)t&&t[i]==n[i]||(r=!0,"style"==i?e.style.cssText=n[i]:e.setAttribute(i,n[i]));return r}class nb{eq(e){return!1}updateDOM(e,t,n){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return -1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,n){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var nx=((l=nx||(nx={}))[l.Text=0]="Text",l[l.WidgetBefore=1]="WidgetBefore",l[l.WidgetAfter=2]="WidgetAfter",l[l.WidgetRange=3]="WidgetRange",l);class nw extends tK{constructor(e,t,n,r){super(),this.startSide=e,this.endSide=t,this.widget=n,this.spec=r}get heightRelevant(){return!1}static mark(e){return new nk(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),n=!!e.block;return t+=n&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new nM(e,t,t,n,e.widget||null,!1)}static replace(e){let t=!!e.block,n,r;if(e.isBlockGap)n=-5e8,r=4e8;else{let{start:i,end:o}=nA(e,t);n=(i?t?-3e8:-1:5e8)-1,r=(o?t?2e8:1:-6e8)+1}return new nM(e,n,r,t,e.widget||null,!0)}static line(e){return new nS(e)}static set(e,t=!1){return tX.of(e,t)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}nw.none=tX.empty;
2class nk extends nw{constructor(e){let{start:t,end:n}=nA(e);super(t?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||"span",this.attrs=e.class&&e.attributes?nm(e.attributes,{class:e.class}):e.class?{class:e.class}:e.attributes||ng}eq(e){return this==e||e instanceof nk&&this.tagName==e.tagName&&nv(this.attrs,e.attrs)}range(e,t=e){if(e>=t)throw RangeError("Mark decorations may not be empty");return super.range(e,t)}}nk.prototype.point=!1;class nS extends nw{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof nS&&this.spec.class==e.spec.class&&nv(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}nS.prototype.mapMode=e9.TrackBefore,nS.prototype.point=!0;class nM extends nw{constructor(e,t,n,r,i,o){super(t,n,i,e),this.block=r,this.isReplace=o,this.mapMode=r?t<=0?e9.TrackBefore:e9.TrackAfter:e9.TrackDel}get type(){return this.startSide!=this.endSide?nx.WidgetRange:this.startSide<=0?nx.WidgetBefore:nx.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){var t,n;return e instanceof nM&&(t=this.widget,t==(n=e.widget)||!!(t&&n&&t.compare(n)))&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}function nA(e,t=!1){let{inclusiveStart:n,inclusiveEnd:r}=e;return null==n&&(n=e.inclusive),null==r&&(r=e.inclusive),{start:null!=n?n:t,end:null!=r?r:t}}function nE(e,t,n,r=0){let i=n.length-1;i>=0&&n[i]+r>=e?n[i]=Math.max(n[i],t):n.push(e,t)}nM.prototype.point=!0;class nC extends tK{constructor(e,t,n){super(),this.tagName=e,this.attributes=t,this.rank=n}eq(e){return e==this||e instanceof nC&&this.tagName==e.tagName&&nv(this.attributes,e.attributes)}static create(e){return new nC(e.tagName,e.attributes||ng,null==e.rank?50:Math.max(0,Math.min(e.rank,100)))}static set(e,t=!1){return tX.of(e,t)}}function nO(e){return(11==e.nodeType?e.getSelection?e:e.ownerDocument:e).getSelection()}function nP(e,t){return!!t&&(e==t||e.contains(1!=t.nodeType?t.parentNode:t))}function nT(e,t){if(!t.anchorNode)return!1;try{return nP(e,t.anchorNode)}catch(e){return!1}}function nD(e){return 3==e.nodeType?nU(e,0,e.nodeValue.length).getClientRects():1==e.nodeType?e.getClientRects():[]}function nR(e,t,n,r){return!!n&&(nz(e,t,n,r,-1)||nz(e,t,n,r,1))}function nj(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t}function nI(e){return 1==e.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}function nz(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:n_(e))){if("DIV"==e.nodeName)return!1;let n=e.parentNode;if(!n||1!=n.nodeType)return!1;t=nj(e)+(i<0?0:1),e=n}else{if(1!=e.nodeType||1==(e=e.childNodes[t+(i<0?-1:0)]).nodeType&&"false"==e.contentEditable)return!1;t=i<0?n_(e):0}}}function n_(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function nL(e,t){let{left:n,right:r}=e;if(n==r)return e;let i=t?n:r;return{left:i,right:i,top:e.top,bottom:e.bottom}}function nN(e,t){let n=t.width/e.offsetWidth,r=t.height/e.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||1>Math.abs(t.width-e.offsetWidth))&&(n=1),(r>.995&&r<1.005||!isFinite(r)||1>Math.abs(t.height-e.offsetHeight))&&(r=1),{scaleX:n,scaleY:r}}function nB(e,t=!0){let n=e.ownerDocument,r=null,i=null;for(let o=e.parentNode;o;)if(o==n.body||(!t||r)&&i)break;else if(1==o.nodeType)!i&&o.scrollHeight>o.clientHeight&&(i=o),t&&!r&&o.scrollWidth>o.clientWidth&&(r=o),o=o.assignedSlot||o.parentNode;else if(11==o.nodeType)o=o.host;else break;return{x:r,y:i}}nC.prototype.startSide=nC.prototype.endSide=-1;class nF{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:n}=e;this.set(t,Math.min(e.anchorOffset,t?n_(t):0),n,Math.min(e.focusOffset,n?n_(n):0))}set(e,t,n,r){this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=r}}function nV(e){let t=[];for(let n=e;n;n=11==n.nodeType?n.host:n.parentNode)1==n.nodeType&&t.push({node:n,left:n.scrollLeft,top:n.scrollTop});return t}function nH(e,t=!0){for(let{node:n,left:r,top:i}of e)t&&n.scrollTop!=i&&(n.scrollTop=i),n.scrollLeft!=r&&(n.scrollLeft=r)}let nW=null;function n$(e){if(e.setActive)return e.setActive();if(nW)return e.focus(nW);let t=nV(e);e.focus(null==nW?{get preventScroll(){return nW={preventScroll:!0},!0}}:void 0),nW||(nW=!1,nH(t))}function nU(e,t,n=t){let r=i||(i=document.createRange());return r.setEnd(e,n),r.setStart(e,t),r}function nK(e,t,n,r){let i={key:t,code:t,keyCode:n,which:n,cancelable:!0};r&&({altKey:i.altKey,ctrlKey:i.ctrlKey,shiftKey:i.shiftKey,metaKey:i.metaKey}=r);let o=new KeyboardEvent("keydown",i);o.synthetic=!0,e.dispatchEvent(o);let a=new KeyboardEvent("keyup",i);return a.synthetic=!0,e.dispatchEvent(a),o.defaultPrevented||a.defaultPrevented}function nq(e){return e instanceof Window?e.pageYOffset>
2Math.max(0,e.document.documentElement.scrollHeight-e.innerHeight-4):e.scrollTop>Math.max(1,e.scrollHeight-e.clientHeight-4)}function nG(e,t){for(let n=e,r=t;;)if(3==n.nodeType&&r>0)return{node:n,offset:r};else if(1==n.nodeType&&r>0){if("false"==n.contentEditable)return null;r=n_(n=n.childNodes[r-1])}else{if(!n.parentNode||nI(n))return null;r=nj(n),n=n.parentNode}}function nZ(e,t){for(let n=e,r=t;;)if(3==n.nodeType&&r<n.nodeValue.length)return{node:n,offset:r};else if(1==n.nodeType&&r<n.childNodes.length){if("false"==n.contentEditable)return null;n=n.childNodes[r],r=0}else{if(!n.parentNode||nI(n))return null;r=nj(n)+1,n=n.parentNode}}np.safari&&np.safari_version>=26&&(nW=!1);class nY{constructor(e,t,n=!0){this.node=e,this.offset=t,this.precise=n}static before(e,t){return new nY(e.parentNode,nj(e),t)}static after(e,t){return new nY(e.parentNode,nj(e)+1,t)}}var nX=((c=nX||(nX={}))[c.LTR=0]="LTR",c[c.RTL=1]="RTL",c);let nJ=nX.LTR,nQ=nX.RTL;function n0(e){let t=[];for(let n=0;n<e.length;n++)t.push(1<<e[n]);return t}let n1=n0("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),n2=n0("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),n4=Object.create(null),n5=[];for(let e of["()","[]","{}"]){let t=e.charCodeAt(0),n=e.charCodeAt(1);n4[t]=n,n4[n]=-t}function n3(e){return e<=247?n1[e]:1424<=e&&e<=1524?2:1536<=e&&e<=1785?n2[e-1536]:1774<=e&&e<=2220?4:8192<=e&&e<=8204?256:64336<=e&&e<=65023?4:1}let n6=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class n8{get dir(){return this.level%2?nQ:nJ}constructor(e,t,n){this.from=e,this.to=t,this.level=n}side(e,t){return this.dir==t==e?this.to:this.from}forward(e,t){return e==(this.dir==t)}static find(e,t,n,r){let i=-1;for(let o=0;o<e.length;o++){let a=e[o];if(a.from<=t&&a.to>=t){if(a.level==n)return o;(i<0||(0!=r?r<0?a.from<t:a.to>t:e[i].level>a.level))&&(i=o)}}if(i<0)throw RangeError("Index out of range");return i}}let n9=[];function n7(e){return[new n8(0,e,0)]}let re="",rt=th.define(),rn=th.define(),rr=th.define(),ri=th.define(),ro=th.define(),ra=th.define(),rs=th.define(),rl=th.define(),rc=th.define(),ru=th.define({combine:e=>e.some(e=>e)}),rh=th.define({combine:e=>e.some(e=>e)}),rd=th.define();class rf{constructor(e,t,n,r,i,o=!1){this.range=e,this.y=t,this.x=n,this.yMargin=r,this.xMargin=i,this.isSnapshot=o}map(e){return e.empty?this:new rf(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new rf(tl.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}let rp=t_.define({map:(e,t)=>e.map(t)}),rm=t_.define();function rg(e,t,n){let r=e.facet(ri);r.length?r[0](t):window.onerror&&window.onerror(String(t),n,void 0,void 0,t)||(n?console.error(n+":",t):console.error(t))}let rv=th.define({combine:e=>!e.length||e[0]}),ry=0,rb=th.define({combine:e=>e.filter((t,n)=>{for(let r=0;r<n;r++)if(e[r].plugin==t.plugin)return!1;return!0})});class rx{constructor(e,t,n,r,i){this.id=e,this.create=t,this.domEventHandlers=n,this.domEventObservers=r,this.baseExtensions=i(this),this.extension=this.baseExtensions.concat(rb.of({plugin:this,arg:void 0}))}of(e){return this.baseExtensions.concat(rb.of({plugin:this,arg:e}))}static define(e,t){let{eventHandlers:n,eventObservers:r,provide:i,decorations:o}=t||{};return new rx(ry++,e,n,r,e=>{let t=[];return o&&t.push(rM.of(t=>{let n=t.plugin(e);return n?o(n):nw.none})),i&&t.push(i(e)),t})}static fromClass(e,t){return rx.define((t,n)=>new e(t,n),t)}}class rw{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}get plugin(){return this.spec&&this.spec.plugin}update(e){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(t){if(rg(e.state,t,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(e){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.plugin.create(e,this.spec.arg)}catch(t){rg(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(null==(t=this.value)?void 0:t.destroy)try{this.value.destroy()}catch(t){rg(e.state,t,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}let rk=th.define(),rS=th.define(),rM=th.define(),rA=th.define(),rE=th.define(),rC=th.define(),rO=th.define();function rP(e,t){let n=e.state.facet(rO);if(!n.length)return n;let r=n.map(t=>t instanceof Function?t(e):t),i=[];return tX.spans(r,t.from,t.to,{point(){},span(e,n,r,o){let a=e-t.from,s=n-t.from,l=i;for(let e=r.length-1;e>=0;e--,o--){let n=r[e].spec.bidiIsolate,i;if(null==n&&(n=function(e,t,n){for(let r=t;r<n;r++){let t=n3(e.charCodeAt(r));if(1==t)break;
vendor: 8,792 bytes, line 2
2if(2==t||4==t)return nQ}return nJ}(t.text,a,s)),o>0&&l.length&&(i=l[l.length-1]).to==a&&i.direction==n)i.to=s,l=i.inner;else{let e={from:a,to:s,direction:n,inner:[]};l.push(e),l=e.inner}}}}),i}let rT=th.define();function rD(e){let t=0,n=0,r=0,i=0;for(let o of e.state.facet(rT)){let a=o(e);a&&(null!=a.left&&(t=Math.max(t,a.left)),null!=a.right&&(n=Math.max(n,a.right)),null!=a.top&&(r=Math.max(r,a.top)),null!=a.bottom&&(i=Math.max(i,a.bottom)))}return{left:t,right:n,top:r,bottom:i}}let rR=th.define();class rj{constructor(e,t,n,r){this.fromA=e,this.toA=t,this.fromB=n,this.toB=r}join(e){return new rj(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,n=this;for(;t>0;t--){let r=e[t-1];if(!(r.fromA>n.toA)){if(r.toA<n.fromA)break;n=n.join(r),e.splice(t-1,1)}}return e.splice(t,0,n),e}static extendWithRanges(e,t){if(0==t.length)return e;let n=[];for(let r=0,i=0,o=0;;){let a=Math.min(r<e.length?e[r].fromB:1e9,i<t.length?t[i]:1e9);if(1e9==a)break;let s=a+o,l=a,c=s;for(;;)if(i<t.length&&t[i]<=l){let n=t[i+1];i+=2,l=Math.max(l,n);for(let t=r;t<e.length&&e[t].fromB<=l;t++)o=e[t].toA-e[t].toB;c=Math.max(c,n+o)}else if(r<e.length&&e[r].fromB<=l){let t=e[r++];l=Math.max(l,t.toB),c=Math.max(c,t.toA),o=t.toA-t.toB}else break;n.push(new rj(s,c,a,l))}return n}}class rI{constructor(e,t,n){for(let r of(this.view=e,this.state=t,this.transactions=n,this.flags=0,this.startState=e.state,this.changes=te.empty(this.startState.doc.length),n))this.changes=this.changes.compose(r.changes);let r=[];this.changes.iterChangedRanges((e,t,n,i)=>r.push(new rj(e,t,n,i))),this.changedRanges=r}static create(e,t,n){return new rI(e,t,n)}get viewportChanged(){return(4&this.flags)>0}get viewportMoved(){return(8&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(18&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return 0==this.flags&&0==this.transactions.length}}let rz=[];class r_{constructor(e,t,n=0){this.dom=e,this.length=t,this.flags=n,this.parent=null,e.cmTile=this}get breakAfter(){return 1&this.flags}get children(){return rz}isWidget(){return!1}get isHidden(){return!1}isComposite(){return!1}isLine(){return!1}isText(){return!1}isBlock(){return!1}get domAttrs(){return null}sync(e){if(this.flags|=2,4&this.flags){this.flags&=-5;let e=this.domAttrs;e&&function(e,t){for(let n=e.attributes.length-1;n>=0;n--){let r=e.attributes[n].name;null==t[r]&&e.removeAttribute(r)}for(let n in t){let r=t[n];"style"==n?e.style.cssText=r:e.getAttribute(n)!=r&&e.setAttribute(n,r)}}(this.dom,e)}}toString(){return this.constructor.name+(this.children.length?`(${this.children})`:"")+(this.breakAfter?"#":"")}destroy(){this.parent=null}setDOM(e){this.dom=e,e.cmTile=this}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e,t=this.posAtStart){let n=t;for(let t of this.children){if(t==e)return n;n+=t.length+t.breakAfter}throw RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}covers(e){return!0}coordsIn(e,t,n){return null}domPosFor(e,t){let n=nj(this.dom),r=this.length?e>0:t>0;return new nY(this.parent.dom,n+ +!!r,0==e||e==this.length)}markDirty(e){this.flags&=-3,e&&(this.flags|=4),this.parent&&2&this.parent.flags&&this.parent.markDirty(!1)}get overrideDOMText(){return null}get root(){for(let e=this;e;e=e.parent)if(e instanceof rB)return e;return null}static get(e){return e.cmTile}}class rL extends r_{constructor(e){super(e,0),this._children=[]}isComposite(){return!0}get children(){return this._children}get lastChild(){return this.children.length?this.children[this.children.length-1]:null}append(e){this.children.push(e),e.parent=this}sync(e){if(2&this.flags)return;super.sync(e);let t=this.dom,n=null,r,i=(null==e?void 0:e.node)==t?e:null,o=0;for(let a of this.children){if(a.sync(e),o+=a.length+a.breakAfter,r=n?n.nextSibling:t.firstChild,i&&r!=a.dom&&(i.written=!0),a.dom.parentNode==t)for(;r&&r!=a.dom;)r=rN(r);else t.insertBefore(a.dom,r);n=a.dom}for(r=n?n.nextSibling:t.firstChild,i&&r&&(i.written=!0);r;)r=rN(r);this.length=o}}function rN(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class rB extends rL{constructor(e,t){super(t),this.view=e}owns(e){for(;e;e=e.parent)if(e==this)return!0;return!1}isBlock(){return!0}nearest(e){for(;;){if(!e)return null;let t=r_.get(e);if(t&&this.owns(t))return t;e=e.parentNode}}blockTiles(e){for(let t=[],n=this,r=0,i=0;;)if(r==n.children.length){if(!t.length)return;(n=n.parent).breakAfter&&i++,r=t.pop()}else{let o=n.children[r++];if(o instanceof rF)t.push(r),n=o,r=0;else{let t=i+o.length,n=e(o,i);if(void 0!==n)return n;i=t+o.breakAfter}}}resolveBlock(e,t){let n,r=-1,i,o=-1;if(this.blockTiles((a,s)=>{let l=s+a.length;if(e>=s&&e<=l){if(a.isWidget()&&t>=-1&&t<=1){if(32&a.flags)return!0;16&a.flags&&(n=void 0)}(s<e||e==l&&(t<-1?a.length:a.covers(1)))&&(!n||!a.isWidget()&&n.isWidget())&&(n=a,r=e-s),(l>e||e==s&&(t>1?a.length:a.covers(-1)))&&(!i||!a.isWidget()&&i.isWidget())&&(i=a,o=e-s)}}),!n&&!i)throw Error("No tile at position "+e);return n&&t<0||!i?{tile:n,offset:r}:{tile:i,offset:o}}}class rF extends rL{constructor(e,t){super(e),this.wrapper=t}isBlock(){return!0}covers(e){return!!this.children.length&&(e<0?this.children[0].covers(-1):this.lastChild.covers(1))}get domAttrs(){return this.wrapper.attributes}static of(e,t){let n=new rF(t||document.createElement(e.tagName),e);return t||(n.flags|=4),n}}class rV extends rL{constructor(e,t){super(e),this.attrs=t}isLine(){return!0}static start(e,t,n){let r=new rV(t||document.createElement("div"),e);return t&&n||(r.flags|=4),r}get domAttrs(){return this.attrs}resolveInline(e,t,n){let r=null,i=-1,o=null,a=-1;!function e(s,l){for(let c=0,u=0;c<s.children.length&&u<=l;c++){let h=s.children[c],d=u+h.length;d>=l&&(h.isComposite()?e(h,l-u):(!o||o.isHidden&&(t>0&&!(32&o.flags)||n&&function(e,t){let n=e.coordsIn(0,1),r=t.coordsIn(0,1);return n&&r&&r.top<n.bottom}(o,h)))&&(d>l||32&h.flags&&t<=1)?(o=h,a=l-u):(u<l||16&h.flags&&!h.isHidden&&t>=-1)&&(r=h,i=l-u)),u=d}}(this,e);let s=(t<0?r:o)||r||o;return s?{tile:s,offset:s==r?i:a}:null}coordsIn(e,t,n){let r=this.resolveInline(e,t,!0);return r?r.tile.coordsIn(Math.max(0,r.offset),t,n):function(e){let t=e.dom.lastChild;if(!t)return e.dom.getBoundingClientRect();let n=nD(t);return n[n.length-1]||null}(this)}domIn(e,t){let n=this.resolveInline(e,t);if(n){let{tile:e,offset:r}=n;if(this.dom.contains(e.dom))return e.isText()?new nY(e.dom,Math.min(e.dom.nodeValue.length,r)):e.domPosFor(r,16&e.flags?1:32&e.flags?-1:t);let i=n.tile.parent,o=!1;for(let e of i.children){if(o)return new nY(e.dom,0);e==n.tile&&(o=!0)}}return new nY(this.dom,0)}}class rH extends rL{constructor(e,t){super(e),this.mark=t}get domAttrs(){return this.mark.attrs}static of(e,t){let n=new rH(t||document.createElement(e.tagName),e);return t||(n.flags|=4),n}}class rW extends r_{constructor(e,t){super(e,t.length),this.text=t}sync(e){2&this.flags||(super.sync(e),this.dom.nodeValue!=this.text&&(e&&e.node==this.dom&&(e.written=!0),this.dom.nodeValue=this.text))}isText(){return!0}toString(){return JSON.stringify(this.text)}coordsIn(e,t,n){let r=this.dom.nodeValue.length;e>r&&(e=r);let i=e,o=e,a=0;0==e&&t<0||e==r&&t>=0?!(np.chrome||np.gecko)&&(e?(i--,a=1):o<r&&(o++,a=-1)):t<0?i--:o<r&&o++;let s=nU(this.dom,i,o).getClientRects();if(!s.length)return null;let l=s[(a?a<0:t>=0)?0:s.length-1];return np.safari&&!a&&0==l.width&&(l=Array.prototype.find.call(s,e=>e.width)||l),null==n?l:nL(l,(a?a>0:t<0)==n)}static of(e,t){let n=new rW(t||document.createTextNode(e),e);return t||(n.flags|=2),n}}class r$ extends r_{constructor(e,t,n,r){super(e,t,r),this.widget=n}isWidget(){return!0}get isHidden(){return this.widget.isHidden}covers(e){return!(48&this.flags)&&(this.flags&(e<0?64:128))>0}coordsIn(e,t){return this.coordsInWidget(e,t,!1)}coordsInWidget(e,t,n){let r=this.widget.coordsAt(this.dom,e,t);if(r)return r;if(n)return nL(this.dom.getBoundingClientRect(),this.length?0==e:t<=0);{let t=this.dom.getClientRects(),n=null;if(!t.length)return null;let r=!!(16&this.flags)||!(32&this.flags)&&e>0;for(let i=r?t.length-1:0;n=t[i],e>0?0!=i:i!=t.length-1&&!(n.top<n.bottom);i+=r?-1:1);return nL(n,!r)}}get overrideDOMText(){if(!this.length)return eZ.empty;let{root:e}=this;if(!e)return eZ.empty;let t=this.posAtStart;return e.view.state.doc.slice(t,t+this.length)}destroy(){super.destroy(),this.widget.destroy(this.dom)}static of(e,t,n,r,i){return!i&&(i=e.toDOM(t),e.editable||(i.contentEditable="false")),new r$(i,n,e,r)}}class rU extends r_{constructor(e){let t=document.createElement("img");
2t.className="cm-widgetBuffer",t.setAttribute("aria-hidden","true"),super(t,0,e)}get isHidden(){return!0}get overrideDOMText(){return eZ.empty}coordsIn(e,t,n){let r=this.dom.getBoundingClientRect();return null==n?r:nL(r,t>0==n)}}class rK{constructor(e){this.index=0,this.beforeBreak=!1,this.parents=[],this.tile=e}advance(e,t,n){let{tile:r,index:i,beforeBreak:o,parents:a}=this;for(;e||t>0;)if(r.isComposite())if(o){if(!e)break;n&&n.break(),e--,o=!1}else if(i==r.children.length){if(!e&&!a.length)break;n&&n.leave(r),o=!!r.breakAfter,({tile:r,index:i}=a.pop()),i++}else{let s=r.children[i],l=s.breakAfter;(t>0?s.length<=e:s.length<e)&&(!n||!1!==n.skip(s,0,s.length)||!s.isComposite)?(o=!!l,i++,e-=s.length):(a.push({tile:r,index:i}),r=s,i=0,n&&s.isComposite()&&n.enter(s))}else{let t=r.length;if(i<t&&e){let o=Math.min(e,t-i);n&&n.skip(r,i,i+o),e-=o,i+=o}if(i==t)o=!!r.breakAfter,({tile:r,index:i}=a.pop()),i++;else if(!e)break}return this.tile=r,this.index=i,this.beforeBreak=o,this}get root(){return this.parents.length?this.parents[0].tile:this.tile}}class rq{constructor(e,t,n,r){this.from=e,this.to=t,this.wrapper=n,this.rank=r}}class rG{constructor(e,t,n){this.cache=e,this.root=t,this.blockWrappers=n,this.curLine=null,this.lastBlock=null,this.afterWidget=null,this.pos=0,this.wrappers=[],this.wrapperPos=0}addText(e,t,n,r){var i;this.flushBuffer();let o=this.ensureMarks(t,n),a=o.lastChild;a&&a.isText()&&!(8&a.flags)&&a.length+e.length<512?(this.cache.reused.set(a,2),(o.children[o.children.length-1]=new rW(a.dom,a.text+e)).parent=o):o.append(r||rW.of(e,null==(i=this.cache.find(rW))?void 0:i.dom)),this.pos+=e.length,this.afterWidget=null}addComposition(e,t){let n=this.curLine;n.dom!=t.line.dom&&(n.setDOM(this.cache.reused.has(t.line)?r1(t.line.dom):t.line.dom),this.cache.reused.set(t.line,2));let r=n;for(let e=t.marks.length-1;e>=0;e--){let n=t.marks[e],i=r.lastChild;if(i instanceof rH&&i.mark.eq(n.mark))i.dom!=n.dom&&i.setDOM(r1(n.dom)),r=i;else{if(this.cache.reused.get(n)){let e=r_.get(n.dom);e&&e.setDOM(r1(n.dom))}let e=rH.of(n.mark,n.dom);r.append(e),r=e}this.cache.reused.set(n,2)}let i=r_.get(e.text);i&&this.cache.reused.set(i,2);let o=new rW(e.text,e.text.nodeValue);o.flags|=8,this.pos=e.range.toB,r.append(o)}addInlineWidget(e,t,n){let r=this.afterWidget&&48&e.flags&&(48&this.afterWidget.flags)==(48&e.flags);r||this.flushBuffer();let i=this.ensureMarks(t,n);r||16&e.flags||i.append(this.getBuffer(1)),i.append(e),this.pos+=e.length,this.afterWidget=e}addMark(e,t,n){this.flushBuffer(),this.ensureMarks(t,n).append(e),this.pos+=e.length,this.afterWidget=null}addBlockWidget(e){this.getBlockPos().append(e),this.pos+=e.length,this.lastBlock=e,this.endLine()}continueWidget(e){let t=this.afterWidget||this.lastBlock;t.length+=e,this.pos+=e}addLineStart(e,t){var n;e||(e=r0);let r=rV.start(e,t||(null==(n=this.cache.find(rV))?void 0:n.dom),!!t);this.getBlockPos().append(this.lastBlock=this.curLine=r)}addLine(e){this.getBlockPos().append(e),this.pos+=e.length,this.lastBlock=e,this.endLine()}addBreak(){this.lastBlock.flags|=1,this.endLine(),this.pos++}addLineStartIfNotCovered(e){this.blockPosCovered()||this.addLineStart(e)}ensureLine(e){this.curLine||this.addLineStart(e)}ensureMarks(e,t){var n;let r=this.curLine;for(let i=e.length-1;i>=0;i--){let o=e[i],a;if(t>0&&(a=r.lastChild)&&a instanceof rH&&a.mark.eq(o))r=a,t--;else{let e=rH.of(o,null==(n=this.cache.find(rH,e=>e.mark.eq(o)))?void 0:n.dom);r.append(e),r=e,t=0}}return r}endLine(){if(this.curLine){this.flushBuffer();let e=this.curLine.lastChild;(!e||!rQ(this.curLine,!1)||"BR"!=e.dom.nodeName&&e.isWidget()&&!(np.ios&&rQ(this.curLine,!0))
vendor: 5,062 bytes, line 2
2)&&this.curLine.append(this.cache.findWidget(r4,0,32)||new r$(r4.toDOM(),0,r4,32)),this.curLine=this.afterWidget=null}}updateBlockWrappers(){this.wrapperPos>this.pos+1e4&&(this.blockWrappers.goto(this.pos),this.wrappers.length=0);for(let e=this.wrappers.length-1;e>=0;e--)this.wrappers[e].to<this.pos&&this.wrappers.splice(e,1);for(let e=this.blockWrappers;e.value&&e.from<=this.pos;e.next())if(e.to>=this.pos){let t=102*e.rank+e.value.rank,n=new rq(e.from,e.to,e.value,t),r=this.wrappers.length;for(;r>0&&0>(this.wrappers[r-1].rank-n.rank||this.wrappers[r-1].to-n.to);)r--;this.wrappers.splice(r,0,n)}this.wrapperPos=this.pos}getBlockPos(){var e;this.updateBlockWrappers();let t=this.root;for(let n of this.wrappers){let r=t.lastChild;if(n.from<this.pos&&r instanceof rF&&r.wrapper.eq(n.wrapper))t=r;else{let r=rF.of(n.wrapper,null==(e=this.cache.find(rF,e=>e.wrapper.eq(n.wrapper)))?void 0:e.dom);t.append(r),t=r}}return t}blockPosCovered(){let e=this.lastBlock;return null!=e&&!e.breakAfter&&(!e.isWidget()||(160&e.flags)>0)}getBuffer(e){let t=2|(e<0?16:32),n=this.cache.find(rU,void 0,1);return n&&(n.flags=t),n||new rU(t)}flushBuffer(){this.afterWidget&&!(32&this.afterWidget.flags)&&(this.afterWidget.parent.append(this.getBuffer(-1)),this.afterWidget=null)}}class rZ{constructor(e){this.skipCount=0,this.text="",this.textOff=0,this.cursor=e.iter()}skip(e){this.textOff+e<=this.text.length?this.textOff+=e:(this.skipCount+=e-(this.text.length-this.textOff),this.text="",this.textOff=0)}next(e){if(this.textOff==this.text.length){let{value:t,lineBreak:n,done:r}=this.cursor.next(this.skipCount);if(this.skipCount=0,r)throw Error("Ran out of text content when drawing inline views");this.text=t;let i=this.textOff=Math.min(e,t.length);return n?null:t.slice(0,i)}let t=Math.min(this.text.length,this.textOff+e),n=this.text.slice(this.textOff,t);return this.textOff=t,n}}let rY=[r$,rV,rW,rH,rU,rF,rB];for(let e=0;e<rY.length;e++)rY[e].bucket=e;class rX{constructor(e){this.view=e,this.buckets=rY.map(()=>[]),this.index=rY.map(()=>0),this.reused=new Map}add(e){let t=e.constructor.bucket,n=this.buckets[t];n.length<6?n.push(e):n[this.index[t]=(this.index[t]+1)%6]=e}find(e,t,n=2){let r=e.bucket,i=this.buckets[r],o=this.index[r];for(let e=0;e<i.length;e++){let a=(e+o)%i.length,s=i[a];if((!t||t(s))&&!this.reused.has(s))return i.splice(a,1),a<o&&this.index[r]--,this.reused.set(s,n),s}return null}findWidget(e,t,n){let r=this.buckets[0];if(r.length)for(let i=0,o=0;;i++){if(i==r.length){if(o)return null;o=1,i=0}let a=r[i];if(!this.reused.has(a)&&(0==o?a.widget.compare(e):a.widget.constructor==e.constructor&&e.updateDOM(a.dom,this.view,a.widget))){if(r.splice(i,1),i<this.index[0]&&this.index[0]--,a.widget==e&&a.length==t&&(497&a.flags)==n)return this.reused.set(a,1),a;return this.reused.set(a,2),new r$(a.dom,t,e,-498&a.flags|n)}}}reuse(e){return this.reused.set(e,1),e}maybeReuse(e,t=2){if(!this.reused.has(e))return this.reused.set(e,t),e.dom}clear(){for(let e=0;e<this.buckets.length;e++)this.buckets[e].length=this.index[e]=0}}class rJ{constructor(e,t,n,r,i){this.view=e,this.decorations=r,this.disallowBlockEffectsFor=i,this.openWidget=!1,this.openMarks=0,this.cache=new rX(e),this.text=new rZ(e.state.doc),this.builder=new rG(this.cache,new rB(e,e.contentDOM),tX.iter(n)),this.cache.reused.set(t,2),this.old=new rK(t),this.reuseWalker={skip:(e,t,n)=>{if(this.cache.add(e),e.isComposite())return!1},enter:e=>this.cache.add(e),leave:()=>{},break:()=>{}}}run(e,t){let n=t&&this.getCompositionContext(t.text);for(let r=0,i=0,o=0;;){let a=o<e.length?e[o++]:null,s=a?a.fromA:this.old.root.length;if(s>r){let e=s-r;this.preserve(e,!o,!a),r=s,i+=e}if(!a)break;t&&a.fromA<=t.range.fromA&&a.toA>=t.range.toA?(this.forward(a.fromA,t.range.fromA,t.range.fromA<t.range.toA?1:-1),this.emit(i,t.range.fromB),this.builder.flushBuffer(),this.cache.clear(),this.builder.addComposition(t,n),this.text.skip(t.range.toB-t.range.fromB),this.forward(t.range.fromA,a.toA),this.emit(t.range.toB,a.toB)):(this.forward(a.fromA,a.toA),this.emit(i,a.toB)),i=a.toB,r=a.toA}return this.builder.curLine&&this.builder.endLine(),this.builder.root}preserve(e,t,n){let r=function(e){let t=[];for(let n=e.parents.length;n>1;n--){let r=n==e.parents.length?e.tile:e.parents[n].tile;r instanceof rH&&t.push(r.mark)}return t}(this.old),i=this.openMarks;this.old.advance(e,n?1:-1,{skip:(e,t,n)=>{if(e.isWidget())if(this.openWidget)this.builder.continueWidget(n-t);else{let o=n>0||t<e.length?r$.of(e.widget,this.view,n-t,496&e.flags,this.cache.maybeReuse(e)):this.cache.reuse(e);256&o.flags?(o.flags&=-2,this.builder.addBlockWidget(o)):(this.builder.ensureLine(null),this.builder.addInlineWidget(o,r,i),i=r.length)}else if(e.isText())this.builder.ensureLine(null),t||n!=e.length||this.cache.reused.has(e)?(this.cache.add(e),this.builder.addText(e.text.slice(t,n),r,i)):this.builder.addText(e.text,r,i,this.cache.reuse(e)),i=r.length;else if(e.isLine())e.flags&=-2,this.cache.reused.set(e,1),this.builder.addLine(e);else if(e instanceof rU)this.cache.add(e);else{if(!(e instanceof rH))return!1;
2this.builder.ensureLine(null),this.builder.addMark(e,r,i),this.cache.reused.set(e,1),i=r.length}this.openWidget=!1},enter:e=>{e.isLine()?this.builder.addLineStart(e.attrs,this.cache.maybeReuse(e)):(this.cache.add(e),e instanceof rH&&r.unshift(e.mark)),this.openWidget=!1},leave:e=>{e.isLine()?r.length&&(r.length=i=0):e instanceof rH&&(r.shift(),i=Math.min(i,r.length))},break:()=>{this.builder.addBreak(),this.openWidget=!1}}),this.text.skip(e)}emit(e,t){let n=null,r=this.builder,i=-1,o=tX.spans(this.decorations,e,t,{point:(e,t,o,a,s,l)=>{var c,u,h;if(o instanceof nM){if(this.disallowBlockEffectsFor[l]){if(o.block)throw RangeError("Block decorations may not be specified via plugins");if(t>this.view.state.doc.lineAt(e).to)throw RangeError("Decorations that replace line breaks may not be specified via plugins")}if(i=a.length,s>a.length)r.continueWidget(t-e);else{let i,l=o.widget||(o.block?r2.block:r2.inline),u=(i=(c=o).isReplace?64*(c.startSide<0)|128*(c.endSide>0):c.startSide>0?32:16,c.block&&(i|=256),i),h=this.cache.findWidget(l,t-e,u)||r$.of(l,this.view,t-e,u);o.block?(o.startSide>0&&r.addLineStartIfNotCovered(n),r.addBlockWidget(h)):(r.ensureLine(n),r.addInlineWidget(h,a,s))}n=null}else{let e,t;u=n,e=(h=o).spec.attributes,t=h.spec.class,(e||t)&&(u||(u={class:"cm-line"}),e&&nm(e,u),t&&(u.class+=" "+t)),n=u}t>e&&this.text.skip(t-e)},span:(e,t,o,a)=>{for(let i=e;i<t;){let s=this.text.next(Math.min(512,t-i));null==s?(r.addLineStartIfNotCovered(n),r.addBreak(),i++):(r.ensureLine(n),r.addText(s,o,i==e?a:o.length),i+=s.length),n=null}i=o.length}});i>-1&&(this.openWidget=o>i),this.openWidget||r.addLineStartIfNotCovered(n),this.openMarks=o}forward(e,t,n=1){t-e<=10?this.old.advance(t-e,n,this.reuseWalker):(this.old.advance(5,-1,this.reuseWalker),this.old.advance(t-e-10,-1),this.old.advance(5,n,this.reuseWalker))}getCompositionContext(e){let t=[],n=null;for(let r=e.parentNode;;r=r.parentNode){let e=r_.get(r);if(r==this.view.contentDOM)break;e instanceof rH?t.push(e):(null==e?void 0:e.isLine())?n=e:e instanceof rF||("DIV"!=r.nodeName||n||r==this.view.contentDOM?n||t.push(rH.of(new nk({tagName:r.nodeName.toLowerCase(),attributes:function(e){let t=Object.create(null);for(let n=0;n<e.attributes.length;n++){let r=e.attributes[n];t[r.name]=r.value}return t}(r)}),r)):n=new rV(r,r0))}return{line:n,marks:t}}}function rQ(e,t){let n=e=>{for(let r of e.children)if((t?r.isText():r.length)||n(r))return!0;return!1};return n(e)}let r0={class:"cm-line"};function r1(e){let t=r_.get(e);return t&&t.setDOM(e.cloneNode()),e}class r2 extends nb{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}r2.inline=new r2("span"),r2.block=new r2("div");let r4=new class extends nb{toDOM(){return document.createElement("br")}get isHidden(){return!0}get editable(){return!0}};class r5{constructor(e){this.view=e,this.decorations=[],this.blockWrappers=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.editContextFormatting=nw.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.updateDeco(),this.tile=new rB(e,e.contentDOM),this.updateInner([new rj(0,0,0,e.state.doc.length)],null)}update(e){var t,n,r,i,o,a,s,l,c;let u,h,d,f=e.changedRanges;this.minWidth>0&&f.length&&(f.every(({fromA:e,toA:t})=>t<this.minWidthFrom||e>this.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let p=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&((null==(t=this.domChanged)?void 0:t.newSel)?p=this.domChanged.newSel.head:(n=e.changes,r=this.hasComposition,u=!1,r&&n.iterChangedRanges((e,t)=>{e<r.to&&t>r.from&&(u=!0)}),u||e.selectionSet||(p=e.state.selection.main.head)));let m=p>-1?function(e,t,n){let r=r6(e,n);if(!r)return null;let{node:i,from:o,to:a}=r,s=i.nodeValue;if(/[\n\r]/.test(s)||e.state.doc.sliceString(r.from,r.to)!=s)return null;let l=t.invertedDesc;return{range:new rj(l.mapPos(o),l.mapPos(a),o,a),text:i}}(this.view,e.changes,p):null;if(this.domChanged=null,this.hasComposition){let{from:t,to:n}=this.hasComposition;f=new rj(t,n,e.changes.mapPos(t,-1),e.changes.mapPos(n,1)).addToSet(f.slice())}this.hasComposition=m?{from:m.range.fromB,to:m.range.toB}:null,(np.ie||np.chrome)&&!m&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let g=this.decorations,v=this.blockWrappers;this.updateDeco();let y=(i=g,o=this.decorations,a=e.changes,h=new r8,tX.compare(i,o,a,h),h.changes);y.length&&(f=rj.extendWithRanges(f,y));let b=(s=v,l=this.blockWrappers,c=e.changes,d=new r9,tX.compare(s,l,c,d),d.changes);return b.length&&(f=rj.extendWithRanges(f,b)),m&&!f.some(e=>e.fromA<=m.range.fromA&&e.toA>=m.range.toA)&&(f=m.range.addToSet(f.slice())),(!(2&this.tile.flags)||0!=f.length)&&(this.updateInner(f,m),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t){this.view.viewState.mustMeasureContent=!0;let{observer:n}=this.view;n.ignore(()=>{if(t||e.length){let n=this.tile,r=new rJ(this.view,n,this.blockWrappers,this.decorations,this.dynamicDecorationMap);t&&r_.get(t.text)&&r.cache.reused.set(r_.get(t.text),2),this.tile=r.run(e,t),r3(n,r.cache.reused)}this.tile.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.tile.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let r=np.chrome||np.ios?{node:n.selectionRange.focusNode,written:!1}:void 0;this.tile.sync(r),r&&(r.written||n.selectionRange.focusNode!=r.no
2de||!this.tile.dom.contains(r.node))&&(this.forceSelection=!0),this.tile.dom.style.height=""});let r=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let e of this.tile.children)e.isWidget()&&e.widget instanceof r7&&r.push(e.dom);n.updateGaps(r)}updateEditContextFormatting(e){for(let t of(this.editContextFormatting=this.editContextFormatting.map(e.changes),e.transactions))for(let e of t.effects)e.is(rm)&&(this.editContextFormatting=e.value)}updateSelection(e=!1,t=!1){var n;(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let{dom:r}=this.tile,i=this.view.root.activeElement,o=i==r,a=!o&&!(this.view.state.facet(rv)||r.tabIndex>-1)&&nT(r,this.view.observer.selectionRange)&&!(i&&r.contains(i));if(!(o||t||a))return;let s=this.forceSelection;this.forceSelection=!1;let l=this.view.state.selection.main,c,u;if(l.empty?u=c=this.inlineDOMNearPos(l.anchor,l.assoc||1):(u=this.inlineDOMNearPos(l.head,l.head==l.from?1:-1),c=this.inlineDOMNearPos(l.anchor,l.anchor==l.from?1:-1)),np.gecko&&l.empty&&!this.hasComposition&&1==(n=c).node.nodeType&&n.node.firstChild&&(0==n.offset||"false"==n.node.childNodes[n.offset-1].contentEditable)&&(n.offset==n.node.childNodes.length||"false"==n.node.childNodes[n.offset].contentEditable)){let e=document.createTextNode("");this.view.observer.ignore(()=>c.node.insertBefore(e,c.node.childNodes[c.offset]||null)),c=u=new nY(e,0),s=!0}let h=this.view.observer.selectionRange;!s&&h.focusNode&&(nR(c.node,c.offset,h.anchorNode,h.anchorOffset)&&nR(u.node,u.offset,h.focusNode,h.focusOffset)||this.suppressWidgetCursorChange(h,l))||(this.view.observer.ignore(()=>{np.android&&np.chrome&&r.contains(h.focusNode)&&function(e,t){for(let n=e;n&&n!=t;n=n.assignedSlot||n.parentNode)if(1==n.nodeType&&"false"==n.contentEditable)return!0;return!1}(h.focusNode,r)&&(r.blur(),r.focus({preventScroll:!0}));let e=nO(this.view.root);if(e)if(l.empty){if(np.gecko){var t,n;let e=(t=c.node,n=c.offset,1!=t.nodeType?0:(n&&"false"==t.childNodes[n-1].contentEditable?1:0)|2*(n<t.childNodes.length&&"false"==t.childNodes[n].contentEditable));if(e&&3!=e){let t=(1==e?nG:nZ)(c.node,c.offset);t&&(c=new nY(t.node,t.offset))}}e.collapse(c.node,c.offset),null!=l.bidiLevel&&void 0!==e.caretBidiLevel&&(e.caretBidiLevel=l.bidiLevel)}else if(e.extend){e.collapse(c.node,c.offset);try{e.extend(u.node,u.offset)}catch(e){}}else{let t=document.createRange();l.anchor>l.head&&([c,u]=[u,c]),t.setEnd(u.node,u.offset),t.setStart(c.node,c.offset),e.removeAllRanges(),e.addRange(t)}
vendor: 4,372 bytes, line 2
2a&&this.view.root.activeElement==r&&(r.blur(),i&&i.focus())}),this.view.observer.setSelectionRange(c,u)),this.impreciseAnchor=c.precise?null:new nY(h.anchorNode,h.anchorOffset),this.impreciseHead=u.precise?null:new nY(h.focusNode,h.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&nR(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,n=nO(e.root),{anchorNode:r,anchorOffset:i}=e.observer.selectionRange;if(!n||!t.empty||!t.assoc||!n.modify)return;let o=this.lineAt(t.head,t.assoc);if(!o)return;let a=o.posAtStart;if(t.head==a||t.head==a+o.length)return;let s=this.coordsAt(t.head,-1),l=this.coordsAt(t.head,1);if(!s||!l||s.bottom>l.top)return;let c=this.domAtPos(t.head+t.assoc,t.assoc);n.collapse(c.node,c.offset),n.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let u=e.observer.selectionRange;e.docView.posFromDOM(u.anchorNode,u.anchorOffset)!=t.from&&n.collapse(r,i)}posFromDOM(e,t){let n=this.tile.nearest(e);if(!n)return 2&this.tile.dom.compareDocumentPosition(e)?0:this.view.state.doc.length;let r=n.posAtStart;if(n.isComposite()){let i;if(e==n.dom)i=n.dom.childNodes[t];else{let r=0==n_(e)?0:0==t?-1:1;for(;;){let t=e.parentNode;if(t==n.dom)break;0==r&&t.firstChild!=t.lastChild&&(r=e==t.firstChild?-1:1),e=t}i=r<0?e:e.nextSibling}if(i==n.dom.firstChild)return r;for(;i&&!r_.get(i);)i=i.nextSibling;if(!i)return r+n.length;for(let e=0,t=r;;e++){let r=n.children[e];if(r.dom==i)return t;t+=r.length+r.breakAfter}}else if(n.isText())return e==n.dom?r+t:r+(t?n.length:0);else return r}domAtPos(e,t){let{tile:n,offset:r}=this.tile.resolveBlock(e,t);return n.isWidget()?n.domPosFor(r,t):n.domIn(r,t)}inlineDOMNearPos(e,t){let n,r=-1,i=!1,o,a=-1,s=!1;return(this.tile.blockTiles((t,l)=>{if(t.isWidget()){if(32&t.flags&&l>=e)return!0;16&t.flags&&(i=!0)}else{let c=l+t.length;if(l<=e&&(n=t,r=e-l,i=c<e),c>=e&&!o&&(o=t,a=e-l,s=l>e),l>e&&o)return!0}}),n||o)?(i&&o?n=null:s&&n&&(o=null),n&&t<0||!o?n.domIn(r,t):o.domIn(a,t)):this.domAtPos(e,t)}coordsAt(e,t,n){let{tile:r,offset:i}=this.tile.resolveBlock(e,t);return r.isWidget()?r.widget instanceof r7?null:r.coordsInWidget(i,t,!0):r.coordsIn(i,t,n)}lineAt(e,t){let{tile:n}=this.tile.resolveBlock(e,t);return n.isLine()?n:null}coordsForChar(e){let{tile:t,offset:n}=this.tile.resolveBlock(e,1);return t.isLine()?function e(t,n){if(t.isComposite())for(let r of t.children){if(r.length>=n){let t=e(r,n);if(t)return t}if((n-=r.length)<0)break}else if(t.isText()&&n<t.length){let e=e5(t.text,n);if(e==n)return null;let r=nU(t.dom,n,e).getClientRects();for(let e=0;e<r.length;e++){let t=r[e];if(e==r.length-1||t.top<t.bottom&&t.left<t.right)return t}}return null}(t,n):null}measureVisibleLineHeights(e){let t=[],{from:n,to:r}=e,i=this.view.contentDOM.clientWidth,o=i>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,a=-1,s=this.view.textDirection==nX.LTR,l=0,c=(e,u,h)=>{for(let d=0;d<e.children.length&&!(u>r);d++){let r=e.children[d],f=u+r.length,p=r.dom.getBoundingClientRect(),{height:m}=p;if(h&&!d&&(l+=p.top-h.top),r instanceof rF)f>n&&c(r,u,p);else if(u>=n&&(l>0&&t.push(-l),t.push(m+l),l=0,o)){let e=r.dom.lastChild,t=e?nD(e):[];if(t.length){let e=t[t.length-1],n=s?e.right-p.left:p.right-e.left;n>a&&(a=n,this.minWidth=i,this.minWidthFrom=u,this.minWidthTo=f)}}h&&d==e.children.length-1&&(l+=h.bottom-p.bottom),u=f+r.breakAfter}};return c(this.tile,0,null),t}textDirectionAt(e){let{tile:t}=this.tile.resolveBlock(e,1);return"rtl"==getComputedStyle(t.dom).direction?nX.RTL:nX.LTR}measureTextSize(){let e=this.tile.blockTiles(e=>{if(e.isLine()&&e.children.length&&e.length<=20){let t=0,n;for(let r of e.children){if(!r.isText()||/[^ -~]/.test(r.text))return;let e=nD(r.dom);if(1!=e.length)return;t+=e[0].width,n=e[0].height}if(t)return{lineHeight:e.dom.getBoundingClientRect().height,charWidth:t/e.length,textHeight:n}}});if(e)return e;let t=document.createElement("div"),n,r,i;return t.className="cm-line",t.style.width="99999px",t.style.position="absolute",t.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.tile.dom.appendChild(t);let e=nD(t.firstChild)[0];n=t.getBoundingClientRect().height,r=e&&e.width?e.width/27:7,i=e&&e.height?e.height:n,t.remove()}
2),{lineHeight:n,charWidth:r,textHeight:i}}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let n=0,r=0;;r++){let i=r==t.viewports.length?null:t.viewports[r],o=i?i.from-1:this.view.state.doc.length;if(o>n){let r=(t.lineBlockAt(o).bottom-t.lineBlockAt(n).top)/this.view.scaleY;e.push(nw.replace({widget:new r7(r),block:!0,inclusive:!0,isBlockGap:!0}).range(n,o))}if(!i)break;n=i.to+1}return nw.set(e)}updateDeco(){let e=1,t=this.view.state.facet(rM).map(t=>(this.dynamicDecorationMap[e++]="function"==typeof t)?t(this.view):t),n=!1,r=this.view.state.facet(rE).map((e,t)=>{let r="function"==typeof e;return r&&(n=!0),r?e(this.view):e});for(r.length&&(this.dynamicDecorationMap[e++]=n,t.push(tX.join(r))),this.decorations=[this.editContextFormatting,...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];e<this.decorations.length;)this.dynamicDecorationMap[e++]=!1;this.blockWrappers=this.view.state.facet(rA).map(e=>"function"==typeof e?e(this.view):e)}scrollIntoView(e){if(e.isSnapshot){let t=this.view.viewState.lineBlockAt(e.range.head);this.view.scrollDOM.scrollTop=t.top-e.yMargin,this.view.scrollDOM.scrollLeft=e.xMargin;return}for(let t of this.view.state.facet(rd))try{if(t(this.view,e.range,e))return!0}catch(e){rg(this.view.state,e,"scroll handler")}let{range:t}=e,n=this.coordsAt(t.head,t.assoc||(t.head>t.anchor?-1:1)),r;if(!n)return;!t.empty&&(r=this.coordsAt(t.anchor,t.anchor>t.head?-1:1))&&(n={left:Math.min(n.left,r.left),top:Math.min(n.top,r.top),right:Math.max(n.right,r.right),bottom:Math.max(n.bottom,r.bottom)});let i=rD(this.view),o={left:n.left-i.left,top:n.top-i.top,right:n.right+i.right,bottom:n.bottom+i.bottom},{offsetWidth:a,offsetHeight:s}=this.view.scrollDOM;if(!function(e,t,n,r,i,o,a,s){let l=e.ownerDocument,c=l.defaultView||window;for(let u=e,h=!1;u&&!h;)if(1==u.nodeType){let e,d=u==l.body,f=1,p=1;if(d)e=function(e){let t=e.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}(c);else{if(/^(fixed|sticky)$/.test(getComputedStyle(u).position)&&(h=!0),u.scrollHeight<=u.clientHeight&&u.scrollWidth<=u.clientWidth){u=u.assignedSlot||u.parentNode;continue}let t=u.getBoundingClientRect();({scaleX:f,scaleY:p}=nN(u,t)),e={left:t.left,right:t.left+u.clientWidth*f,top:t.top,bottom:t.top+u.clientHeight*p}}let m=0,g=0;if("nearest"==i)t.top<e.top+a?(g=t.top-(e.top+a),n>0&&t.bottom>e.bottom+g&&(g=t.bottom-e.bottom+a)):t.bottom>e.bottom-a&&(g=t.bottom-e.bottom+a,n<0&&t.top-g<e.top&&(g=t.top-(e.top+a)));else{let r=t.bottom-t.top,o=e.bottom-e.top;g=("center"==i&&r<=o?t.top+r/2-o/2:"start"==i||"center"==i&&n<0?t.top-a:t.bottom-o+a)-e.top}if("nearest"==r?t.left<e.left+o?(m=t.left-(e.left+o),n>0&&t.right>e.right+m&&(m=t.right-e.right+o)):t.right>e.right-o&&(m=t.right-e.right+o,n<0&&t.left<e.left+m&&(m=t.left-(e.left+o))):m=("center"==r?t.left+(t.right-t.left)/2-(e.right-e.left)/2:"start"==r==s?t.left-o:t.right-(e.right-e.left)+o)-e.left,m||g)if(d)c.scrollBy(m,g);else{let e=0,n=0;if(g){let e=u.scrollTop;u.scrollTop+=g/p,n=(u.scrollTop-e)*p}if(m){let t=u.scrollLeft;u.scrollLeft+=m/f,e=(u.scrollLeft-t)*f}t={left:t.left-e,top:t.top-n,right:t.right-e,bottom:t.bottom-n},e&&1>Math.abs(e-m)&&(r="nearest"),n&&1>Math.abs(n-g)&&(i="nearest")}if(d)break;(t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)&&(t={left:Math.max(t.left,e.left),right:Math.min(t.right,e.right),top:Math.max(t.top,e.top),bottom:Math.min(t.bottom,e.bottom)}),u=u.assignedSlot||u.parentNode}else if(11==u.nodeType)u=u.host;else break}(this.view.scrollDOM,o,t.head<t.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,a),-a),Math.max(Math.min(e.yMargin,s),-s),this.view.textDirection==nX.LTR),window.visualViewport&&window.innerHeight-window.visualViewport.height>1&&(n.top>window.visualViewport.offsetTop+window.visualViewport.height||n.bottom<window.visualViewport.offsetTop)){let e=this.view.docView.lineAt(t.head,1);if(e){let t=nV(e.dom);e.dom.scrollIntoView({block:"nearest"}),nH(t,!1)}}}lineHasWidget(e){let t=e=>e.isWidget()||e.children.some(t);return t(this.tile.resolveBlock(e,1).tile)}destroy(){r3(this.tile)}}function r3(e,t){let n=null==t?void 0:t.get(e);if(1!=n)for(let r of(null==n&&e.destroy(),e.children))r3(r,t)}function r6(e,t){let n=e.observer.selectionRange;if(!n.focusNode)return null;let r=nG(n.focusNode,n.focusOffset),i=nZ(n.focusNode,n.focusOffset),o=r||i;
2if(i&&r&&i.node!=r.node){let t=r_.get(i.node);if(!t||t.isText()&&t.text!=i.node.nodeValue)o=i;else if(e.docView.lastCompositionAfterCursor){let e=r_.get(r.node);!e||e.isText()&&e.text!=r.node.nodeValue||(o=i)}}if(e.docView.lastCompositionAfterCursor=o!=r,!o)return null;let a=t-o.offset;return{from:a,to:a+o.node.nodeValue.length,node:o.node}}let r8=class{constructor(){this.changes=[]}compareRange(e,t){nE(e,t,this.changes)}comparePoint(e,t){nE(e,t,this.changes)}boundChange(e){nE(e,e,this.changes)}};class r9{constructor(){this.changes=[]}compareRange(e,t){nE(e,t,this.changes)}comparePoint(){}boundChange(e){nE(e,e,this.changes)}}class r7 extends nb{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}function ie(e,t,n){let r=e.lineBlockAt(t);if(Array.isArray(r.type)){let e;for(let i of r.type){if(i.from>t)break;if(!(i.to<t)){if(i.from<t&&i.to>t)return i;(!e||i.type==nx.Text&&(e.type!=i.type||(n<0?i.from<t:i.to>t)))&&(e=i)}}return e||r}return r}function it(e,t,n,r){let i=e.state.doc.lineAt(t.head),o=e.bidiSpans(i),a=e.textDirectionAt(i.from);for(let s=t,l=null;;){let t=function(e,t,n,r,i){var o;let a=r.head-e.from,s=n8.find(t,a,null!=(o=r.bidiLevel)?o:-1,r.assoc),l=t[s],c=l.side(i,n);if(a==c){let e=s+=i?1:-1;if(e<0||e>=t.length)return null;a=(l=t[s=e]).side(!i,n),c=l.side(i,n)}let u=e5(e.text,a,l.forward(i,n));(u<l.from||u>l.to)&&(u=c),re=e.text.slice(Math.min(a,u),Math.max(a,u));let h=s==(i?t.length-1:0)?null:t[s+(i?1:-1)];return h&&u==c&&h.level+ +!i<l.level?tl.cursor(h.side(!i,n)+e.from,h.forward(i,n)?1:-1,h.level):tl.cursor(u+e.from,l.forward(i,n)?-1:1,l.level)}(i,o,a,s,n),c=re;if(!t){if(i.number==(n?e.state.doc.lines:1))return s;c="\n",i=e.state.doc.line(i.number+(n?1:-1)),o=e.bidiSpans(i),t=e.visualLineSide(i,!n)}if(l){if(!l(c))return s}else{if(!r)return t;l=r(c)}s=t}}function ir(e,t,n){for(;;){let r=0;for(let i of e)i.between(t-1,t+1,(e,i,o)=>{if(t>e&&t<i){let o=r||n||(t-e<i-t?-1:1);t=o<0?e:i,r=o}});if(!r)return t}}function ii(e,t){let n=null;for(let r=0;r<t.ranges.length;r++){let i=t.ranges[r],o=null;if(i.empty){let t=ir(e,i.from,0);t!=i.from&&(o=tl.cursor(t,-1))}else{let t=ir(e,i.from,-1),n=ir(e,i.to,1);(t!=i.from||n!=i.to)&&(o=i.undirectional?tl.undirectionalRange(i.from,i.to):tl.range(i.from==i.anchor?t:n,i.from==i.head?t:n))}o&&(n||(n=t.ranges.slice()),n[r]=o)}return n?tl.create(n,t.mainIndex):t}function io(e,t,n){let r=ir(e.state.facet(rC).map(t=>t(e)),n.from,t.head>n.from?-1:1);return r==n.from?n:tl.cursor(r,r<n.from?1:-1)}class ia{constructor(e,t){this.pos=e,this.assoc=t}}function is(e,t,n,r){let i=e.contentDOM.getBoundingClientRect(),o=i.top+e.viewState.paddingTop,{x:a,y:s}=t,l=s-o,c;for(;;){if(l<0)return new ia(0,1);if(l>e.viewState.docHeight)return new ia(e.state.doc.length,-1);if(c=e.elementAtHeight(l),null==r)break;if(c.type==nx.Text){if(r<0?c.to<e.viewport.from:c.from>e.viewport.to)break;let t=e.docView.coordsAt(r<0?c.from:c.to,r>0?-1:1);if(t&&(r<0?t.top<=l+o:t.bottom>=l+o))break}let t=e.viewState.heightOracle.textHeight/2;l=r>0?c.bottom+t:c.top-t}if(e.viewport.from>=c.to||e.viewport.to<=c.from){if(n)return null;if(c.type==nx.Text){let t=function(e,t,n,r,i){let o=Math.round((r-t.left)*e.defaultCharacterWidth);if(e.lineWrapping&&n.height>1.5*e.defaultLineHeight){let t=e.viewState.heightOracle.textHeight;o+=Math.floor((i-n.top-(e.defaultLineHeight-t)*.5)/t)*e.viewState.heightOracle.lineLength}let a=e.state.sliceDoc(n.from,n.to);return n.from+function(e,t,n){for(let r=0,i=0;;){if(i>=t)return r;if(r==e.length)break;i+=9==e.charCodeAt(r)?n-i%n:1,r=e5(e,r)}return e.length}(a,o,e.state.tabSize)}(e,i,c,a,s);return new ia(t,t==c.from?1:-1)}}if(c.type!=nx.Text)return l<(c.top+c.bottom)/2?new ia(c.from,1):new ia(c.to,-1);let u=e.docView.lineAt(c.from,2);return u&&u.length==c.length||(u=e.docView.lineAt(c.from,-2)),new il(e,a,s,e.textDirectionAt(c.from)).scanTile(u,c.from)}class il{constructor(e,t,n,r){this.view=e,this.x=t,this.y=n,this.baseDir=r,this.line=null,this.spans=null}bidiSpansAt(e){return(!this.line||this.line.from>e||this.line.to<e)&&(this.line=this.view.state.doc.lineAt(e),this.spans=this.view.bidiSpans(this.line)),this}baseDirAt(e,t){let{line:n,spans:r}=this.bidiSpansAt(e);return r[n8.find(r,e-n.from,-1,t)].level==this.baseDir}dirAt(e,t){let{line:n,spans:r}=this.bidiSpansAt(e);return r[n8.find(r,e-n.from,-1,t)].dir}bidiIn(e,t){let{spans:n,line:r}=this.bidiSpansAt(e);return n.length>1||n.length&&(n[0].level!=this.baseDir||n[0].to+r.from<t)}scan(e,t,n=!1){let r,i,o=0,a=e.length-1,s=new Set,l=this.bidiIn(e[0],e[a]),c=-1,u=1e9,h;for(;o<a;){let n=a-o,d=o+a>>1;r:if(s.has(d)){for(let e=1;e<n;e++){let t=d+e;if(t>=a&&(t-=n),!s.has(t)){d=t;break r}}break}s.add(d);let f=t(d),p=0;if(f)for(let e=0;e<f.length;e++){let t=f[e];if(0!=t.width||!(f.length>1))if(t.bottom<this.y)(!r||r.bottom<t.bottom)&&(r=t),p=1;else if(t.top>this.y)(!i||i.top>
2t.top)&&(i=t),p=-1;else{let e=t.left>this.x?this.x-t.left:t.right<this.x?this.x-t.right:0,n=Math.abs(e);n<u&&(c=d,u=n,h=t),e&&(p=e<0==(this.baseDir==nX.LTR)?-1:1)}}-1==p&&(!l||this.baseDirAt(e[d],1))?a=d:1==p&&(!l||this.baseDirAt(e[d+1],-1))&&(o=d+1)}if(!h){if(!i&&!r)return{i:0,after:!1};let n=r&&(!i||this.y-r.bottom<i.top-this.y)?r:i;return this.y=(n.top+n.bottom)/2,this.scan(e,t,!0)}if(u&&!n){let{top:n,bottom:o}=h;if(r&&r.bottom>(n+n+o)/3)return this.y=r.bottom-1,this.scan(e,t,!0);if(i&&i.top<(n+o+o)/3)return this.y=i.top+1,this.scan(e,t,!0)}let d=(l?this.dirAt(e[c],1):this.baseDir)==nX.LTR;return{i:c,after:this.x>(h.left+h.right)/2==d}}scanText(e,t){let n=[];for(let r=0;r<e.length;r=e5(e.text,r))n.push(t+r);n.push(t+e.length);let r=this.scan(n,r=>{let i=n[r]-t,o=n[r+1]-t;return nU(e.dom,i,o).getClientRects()});return r.after?new ia(n[r.i+1],-1):new ia(n[r.i],1)}scanTile(e,t){if(!e.length)return new ia(t,1);if(1==e.children.length){let n=e.children[0];if(n.isText())return this.scanText(n,t);if(n.isComposite())return this.scanTile(n,t)}let n=[t];for(let r=0,i=t;r<e.children.length;r++)n.push(i+=e.children[r].length);let r=this.scan(n,t=>{let n=e.children[t];return 48&n.flags?null:(1==n.dom.nodeType?n.dom:nU(n.dom,0,n.length)).getClientRects()}),i=e.children[r.i],o=n[r.i];return i.isText()?this.scanText(i,o):i.isComposite()?this.scanTile(i,o):r.after?new ia(n[r.i+1],-1):new ia(o,1)}}class ic{constructor(e,t){this.points=e,this.view=t,this.text="",this.lineSeparator=t.state.facet(t$.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+="ï¿¿"}readRange(e,t){if(!e)return this;let n=e.parentNode;for(let r=e;;){this.findPointBefore(n,r);let e=this.text.length;this.readNode(r);let i=r_.get(r),o=r.nextSibling;if(o==t){(null==i?void 0:i.breakAfter)&&!o&&n!=this.view.contentDOM&&this.lineBreak();break}let a=r_.get(o);(i&&a?i.breakAfter:(i?i.breakAfter:nI(r))||nI(o)&&("BR"!=r.nodeName||(null==i?void 0:i.isWidget()))&&this.text.length>e)&&!function(e,t){let n;for(;e!=t&&e;e=e.nextSibling){let t=r_.get(e);if(!(null==t?void 0:t.isWidget()))return!1;t&&(n||(n=[])).push(t)}if(n)for(let e of n){let t=e.overrideDOMText;if(null==t?void 0:t.length)return!1}return!0}(o,t)&&this.lineBreak(),r=o}return this.findPointBefore(n,t),this}readTextNode(e){let t=e.nodeValue;for(let n of this.points)n.node==e&&(n.pos=this.text.length+Math.min(n.offset,t.length));for(let n=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let i=-1,o=1,a;if(this.lineSeparator?(i=t.indexOf(this.lineSeparator,n),o=this.lineSeparator.length):(a=r.exec(t))&&(i=a.index,o=a[0].length),this.append(t.slice(n,i<0?t.length:i)),i<0)break;if(this.lineBreak(),o>1)for(let t of this.points)t.node==e&&t.pos>this.text.length&&(t.pos-=o-1);n=i+o}}readNode(e){let t=r_.get(e),n=t&&t.overrideDOMText;if(null!=n){this.findPointInside(e,n.length);for(let e=n.iter();!e.next().done;)e.lineBreak?this.lineBreak():this.append(e.value)}else 3==e.nodeType?this.readTextNode(e):"BR"==e.nodeName?e.nextSibling&&this.lineBreak():1==e.nodeType&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let n of this.points)n.node==e&&e.childNodes[n.offset]==t&&(n.pos=this.text.length)}findPointInside(e,t){for(let n of this.points)(3==e.nodeType?n.node==e:e.contains(n.node))&&(n.pos=this.text.length+(!function(e,t,n){for(;;){if(!t||n<n_(t))return!1;if(t==e)return!0;n=nj(t)+1,t=t.parentNode}}(e,n.node,n.offset)?0:t))}}class iu{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}class ih{constructor(e,t,n,r){this.typeOver=r,this.bounds=null,this.text="",this.domChanged=t>-1;let{impreciseHead:i,impreciseAnchor:o}=e.docView,a=e.state.selection;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=function e(t,n,r,i){if(t.isComposite()){let o=-1,a=-1,s=-1,l=-1;for(let c=0,u=i,h=i;c<t.children.length;c++){let i=t.children[c],d=u+i.length;if(u<n&&d>r)return e(i,n,r,u);if(d>=n&&-1==o&&(o=c,a=u),u>r&&i.dom.parentNode==t.dom){s=c,l=h;break}h=d,u=d+i.breakAfter}return{from:a,to:l<0?i+t.length:l,startDOM:(o?t.children[o-1].dom.nextSibling:null)||t.dom.firstChild,endDOM:s<t.children.length&&s>=0?t.children[s].dom:null}}return t.isText()?{from:i,to:i+t.length,startDOM:t.dom,endDOM:t.dom.nextSibling}:null}(e.docView.tile,t,n,0))){let t=i||o?[]:function(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}=e.observer.selectionRange;return n&&(t.push(new iu(n,r)),(i!=n||o!=r)&&t.push(new iu(i,o))),t}(e),n=new ic(t,e);n.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=n.text,this.newSel=function(e,t){if(0==e.length)return null;let n=e[0].pos,r=2==e.length?e[1].pos:n;return n>-1&&r>-1?tl.single(n+t,r+t):null}(t,this.bounds.from)}else{let t=e.observer.selectionRange,n=i&&i.node==t.focusNode&&i.offset==t.focusOffset||!nP(e.contentDOM,t.focu
2sNode)?a.main.head:e.docView.posFromDOM(t.focusNode,t.focusOffset),r=o&&o.node==t.anchorNode&&o.offset==t.anchorOffset||!nP(e.contentDOM,t.anchorNode)?a.main.anchor:e.docView.posFromDOM(t.anchorNode,t.anchorOffset),s=e.viewport;if((np.ios||np.chrome)&&n!=r&&Math.min(n,r)<=a.main.from&&Math.max(n,r)>=a.main.to&&(s.from>0||s.to<e.state.doc.length)){let t=Math.min(n,r),i=Math.max(n,r),o=s.from-t,a=s.to-i;(0==o||1==o||0==t)&&(0==a||-1==a||i==e.state.doc.length)&&(n=0,r=e.state.doc.length)}if(e.inputState.composing>-1&&a.ranges.length>1)this.newSel=a.replaceRange(tl.range(r,n));else if(e.lineWrapping&&r==n&&!(a.main.empty&&a.main.head==n)&&e.inputState.lastTouchTime>Date.now()-100){let t=e.coordsAtPos(n,-1),r=0;t&&(r=e.inputState.lastTouchY<=t.bottom?-1:1),this.newSel=tl.create([tl.cursor(n,r)])}else this.newSel=tl.single(r,n)}}}function id(e,t){let n,{newSel:r}=t,{state:i}=e,o=i.selection.main,a=e.inputState.lastKeyTime>Date.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:e,to:r}=t.bounds,s=o.from,l=null;(8===a||np.android&&t.text.length<r-e)&&(s=o.to,l="end");let c=i.doc.sliceString(e,r,"ï¿¿"),u,h;!o.empty&&o.from>=e&&o.to<=r&&(t.typeOver||c!=t.text)&&c.slice(0,o.from-e)==t.text.slice(0,o.from-e)&&c.slice(o.to-e)==t.text.slice(u=t.text.length-(c.length-(o.to-e)))?n={from:o.from,to:o.to,insert:eZ.of(t.text.slice(o.from-e,u).split("ï¿¿"))}:(h=im(c,t.text,s-e,l))&&(np.chrome&&13==a&&h.toB==h.from+2&&"ï¿¿ï¿¿"==t.text.slice(h.from,h.toB)&&h.toB--,n={from:e+h.from,to:e+h.toA,insert:eZ.of(t.text.slice(h.from,h.toB).split("ï¿¿"))})}else r&&(!e.hasFocus&&i.facet(rv)||ig(r,o))&&(r=null);if(!n&&!r)return!1;if((np.mac||np.android)&&n&&n.from==n.to&&n.from==o.head-1&&/^\. ?$/.test(n.insert.toString())&&"off"==e.contentDOM.getAttribute("autocorrect")?(r&&2==n.insert.length&&(r=tl.single(r.main.anchor-1,r.main.head-1)),n={from:n.from,to:n.to,insert:eZ.of([n.insert.toString().replace("."," ")])}):i.doc.lineAt(o.from).to<o.to&&e.docView.lineHasWidget(o.to)&&e.inputState.insertingTextAt>Date.now()-50?n={from:o.from,to:o.to,insert:i.toText(e.inputState.insertingText)}:np.chrome&&n&&n.from==n.to&&n.from==o.head&&"\n "==n.insert.toString()&&e.lineWrapping&&(r&&(r=tl.single(r.main.anchor-1,r.main.head-1)),n={from:o.from,to:o.to,insert:eZ.of([" "])}),n)return ip(e,n,r,a);if(!r||ig(r,o))return!1;{let t=!1,n="select";return e.inputState.lastSelectionTime>Date.now()-50&&("select"==e.inputState.lastSelectionOrigin&&(t=!0),"select.pointer"==(n=e.inputState.lastSelectionOrigin)&&(r=ii(i.facet(rC).map(t=>t(e)),r))),e.dispatch({selection:r,scrollIntoView:t,userEvent:n}),!0}}function ip(e,t,n,r=-1){let i;if(np.ios&&e.inputState.flushIOSKey(t))return!0;let o=e.state.selection.main;if(np.android&&(t.to==o.to&&(t.from==o.from||t.from==o.from-1&&" "==e.state.sliceDoc(t.from,o.from))&&1==t.insert.length&&2==t.insert.lines&&nK(e.contentDOM,"Enter",13)||(t.from==o.from-1&&t.to==o.to&&0==t.insert.length||8==r&&t.insert.length<t.to-t.from&&t.to>o.head)&&nK(e.contentDOM,"Backspace",8)||t.from==o.from&&t.to==o.to+1&&0==t.insert.length&&nK(e.contentDOM,"Delete",46)))return!0;let a=t.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let s=()=>i||(i=function(e,t,n){let r,i=e.state,o=i.selection.main,a=-1;if(t.from==t.to&&t.from<o.from||t.from>o.to){let n=t.from<o.from?-1:1,r=n<0?o.from:o.to,s=ir(i.facet(rC).map(t=>t(e)),r,n);t.from==s&&(a=s)}if(a>-1)r={changes:t,selection:tl.cursor(t.from+t.insert.length,-1)};else if(t.from>=o.from&&t.to<=o.to&&t.to-t.from>=(o.to-o.from)/3&&(!n||n.main.empty&&n.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let n=o.from<t.from?i.sliceDoc(o.from,t.from):"",a=o.to>t.to?i.sliceDoc(t.to,o.to):"";r=i.replaceSelection(e.state.toText(n+t.insert.sliceString(0,void 0,e.state.lineBreak)+a))}else{let a=i.changes(t),s=n&&n.main.to<=a.newLength?n.main:void 0;if(i.selection.ranges.length>1&&(e.inputState.composing>=0||e.inputState.compositionPendingChange)&&t.to<=o.to+10&&t.to>=o.to-10){let l=e.state.sliceDoc(t.from,t.to),c,u=n&&r6(e,n.main.head);if(u){let e=t.insert.length-(t.to-t.from);c={from:u.from,to:u.to-e}}else c=e.state.doc.lineAt(o.head);let h=o.to-t.to;r=i.changeByRange(n=>{if(n.from==o.from&&n.to==o.to)return{changes:a,range:s||n.map(a)};let r=n.to-h,u=r-l.length;if(e.state.sliceDoc(u,r)!=l||r>=c.from&&u<=c.to)return{range:n};let d=i.changes({from:u,to:r,insert:t.insert}),f=n.to-o.to;return{changes:d,range:s?tl.range(Math.max(0,s.anchor+f),Math.max(0,s.head+f)):n.map(d)}})}else r={changes:a,selection:s&&i.selection.replaceRange(s)}}let s="input.type";return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,s+=".compose",e.inputState.compositionFirstChange&&(s+=".start",e.inputState.compositionFirstChange=!1)),i.update(r,{userEvent:s,scrollIntoView:!0})}
2(e,t,n));return e.state.facet(ra).some(n=>n(e,t.from,t.to,a,s))||e.dispatch(s()),!0}function im(e,t,n,r){let i=Math.min(e.length,t.length),o=0;for(;o<i&&e.charCodeAt(o)==t.charCodeAt(o);)o++;if(o==i&&e.length==t.length)return null;let a=e.length,s=t.length;for(;a>0&&s>0&&e.charCodeAt(a-1)==t.charCodeAt(s-1);)a--,s--;if("end"==r){let e=Math.max(0,o-Math.min(a,s));n-=a+e-o}if(a<o&&e.length<t.length){let e=n<=o&&n>=a?o-n:0;o-=e,s=o+(s-a),a=o}else if(s<o){let e=n<=o&&n>=s?o-n:0;o-=e,a=o+(a-s),s=o}return{from:o,toA:a,toB:s}}function ig(e,t){return t.head==e.main.head&&t.anchor==e.main.anchor}class iv{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.touchActive=!1,this.lastTouchTime=0,this.lastTouchX=0,this.lastTouchY=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.lastWheelEvent=0,this.pendingIOSKey=void 0,this.lastIOSMomentumScroll=0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.insertingText="",this.insertingTextAt=0,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,np.safari&&e.contentDOM.addEventListener("input",()=>null),np.gecko&&function(e){iF.has(e)||(iF.add(e),e.addEventListener("copy",()=>{}),e.addEventListener("cut",()=>{}))}(e.contentDOM.ownerDocument)}handleEvent(e){!function(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target,r;n!=e.contentDOM;n=n.parentNode)if(!n||11==n.nodeType||(r=r_.get(n))&&r.isWidget()&&!r.isHidden&&r.widget.ignoreEvent(t))return!1;return!0}(this.view,e)||this.ignoreDuringComposition(e)||"keydown"==e.type&&this.keydown(e)||(0!=this.view.updateState?Promise.resolve().then(()=>this.runHandlers(e.type,e)):this.runHandlers(e.type,e))}runHandlers(e,t){let n=this.handlers[e];if(n){for(let e of n.observers)e(this.view,t);for(let e of n.handlers){if(t.defaultPrevented)break;if(e(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=function(e){let t=Object.create(null);function n(e){return t[e]||(t[e]={observers:[],handlers:[]})}for(let t of e){let e=t.spec,r=e&&e.plugin.domEventHandlers,i=e&&e.plugin.domEventObservers;if(r)for(let e in r){let i=r[e];i&&n(e).handlers.push(iy(t.value,i))}if(i)for(let e in i){let r=i[e];r&&n(e).observers.push(iy(t.value,r))}}for(let e in iM)n(e).handlers.push(iM[e]);for(let e in iA)n(e).observers.push(iA[e]);return t}(e),n=this.handlers,r=this.view.contentDOM;for(let e in t)if("scroll"!=e){let i=!t[e].handlers.length,o=n[e];o&&!o.handlers.length!=i&&(r.removeEventListener(e,this.handleEvent),o=null),o||r.addEventListener(e,this.handleEvent,{passive:i})}for(let e in n)"scroll"==e||t[e]||r.removeEventListener(e,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),9==e.keyCode&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&27!=e.keyCode&&0>iw.indexOf(e.keyCode)&&(this.tabFocusMode=-1),np.android&&np.chrome&&!e.synthetic&&(13==e.keyCode||8==e.keyCode))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;if(np.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&(ib.some(t=>t.keyCode==e.keyCode)&&!e.ctrlKey||ix.indexOf(e.key)>-1&&e.ctrlKey)){var t;let n={ctrlKey:e.ctrlKey,altKey:e.altKey,metaKey:e.metaKey,shiftKey:e.shiftKey};return n.shiftKey&&np.ios&&!/^(off|none)$/.test(this.view.contentDOM.autocapitalize)&&(t=this.view.win).visualViewport&&t.visualViewport.height*t.visualViewport.scale/t.document.documentElement.clientHeight<.85&&(n.shiftKey=!1),this.pendingIOSKey={key:e.key,keyCode:e.keyCode,mods:n},setTimeout(()=>this.flushIOSKey(),50),!0}return 229!=e.keyCode&&this.view.observer.forceFlush(),!1}flushIOSKey(e){let t=this.pendingIOSKey;return!(!t||this.view.observer.pendingRecords().length||"Enter"==t.key&&e&&e.from<e.to&&/^\S+$/.test(e.insert.toString()))&&(this.pendingIOSKey=void 0,nK(this.view.contentDOM,t.key,t.keyCode,t.mods))}ignoreDuringComposition(e){return!!/^key/.test(e.type)&&!e.synthetic&&(this.composing>0||!!(np.safari&&!np.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function iy(e,t){return(n,r)=>{try{return t.call(e,r,n)}catch(e){rg(n.state,e)}}}let ib=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"}
2,{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],ix="dthko",iw=[16,17,18,20,91,92,224,225];function ik(e){return .7*Math.max(0,e)+8}class iS{constructor(e,t,n,r){this.view=e,this.startEvent=t,this.style=n,this.mustSelect=r,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParents=nB(e.contentDOM),this.atoms=e.state.facet(rC).map(t=>t(e));let i=e.contentDOM.ownerDocument;i.addEventListener("mousemove",this.move=this.move.bind(this)),i.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(t$.allowMultipleSelections)&&function(e,t){let n=e.state.facet(rt);return n.length?n[0](t):np.mac?t.metaKey:t.ctrlKey}(e,t),this.dragging=!!function(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let r=nO(e.root);if(!r||0==r.rangeCount)return!0;let i=r.getRangeAt(0).getClientRects();for(let e=0;e<i.length;e++){let n=i[e];if(n.left<=t.clientX&&n.right>=t.clientX&&n.top<=t.clientY&&n.bottom>=t.clientY)return!0}return!1}(e,t)&&1==iI(t)&&null}start(e){!1===this.dragging&&this.select(e)}move(e){var t;if(0==e.buttons)return this.destroy();if(this.dragging||null==this.dragging&&10>(t=this.startEvent,Math.max(Math.abs(t.clientX-e.clientX),Math.abs(t.clientY-e.clientY))))return;this.select(this.lastEvent=e);let n=0,r=0,i=0,o=0,a=this.view.win.innerWidth,s=this.view.win.innerHeight;this.scrollParents.x&&({left:i,right:a}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:o,bottom:s}=this.scrollParents.y.getBoundingClientRect());let l=rD(this.view);e.clientX-l.left<=i+6?n=-ik(i-e.clientX):e.clientX+l.right>=a-6&&(n=ik(e.clientX-a)),e.clientY-l.top<=o+6?r=-ik(o-e.clientY):e.clientY+l.bottom>=s-6&&(r=ik(e.clientY-s)),this.setScrollSpeed(n,r)}up(e){null==this.dragging&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:e,y:t}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),t&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=t,t=0),(e||t)&&this.view.win.scrollBy(e,t),!1===this.dragging&&this.select(this.lastEvent)}select(e){let{view:t}=this,n=ii(this.atoms,this.style.get(e,this.extend,this.multiple));(this.mustSelect||!n.eq(t.state.selection,!1===this.dragging))&&this.view.dispatch({selection:n,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.transactions.some(e=>e.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}let iM=Object.create(null),iA=Object.create(null),iE=np.ie&&np.ie_version<15||np.ios&&np.webkit_version<604;function iC(e,t,n){for(let r of e.facet(t))n=r(n,e);return n}function iO(e,t){t=iC(e.state,rl,t);let{state:n}=e,r,i=1,o=n.toText(t),a=o.lines==n.selection.ranges.length;if(null!=i_&&n.selection.ranges.every(e=>e.empty)&&i_==o.toString()){let e=-1;r=n.changeByRange(r=>{let s=n.doc.lineAt(r.from);if(s.from==e)return{range:r};e=s.from;let l=n.toText((a?o.line(i++).text:t)+n.lineBreak);return{changes:{from:s.from,insert:l},range:tl.cursor(r.from+l.length)}})}else r=a?n.changeByRange(e=>{let t=o.line(i++);return{changes:{from:e.from,to:e.to,insert:t.text},range:tl.cursor(e.from+t.length)}}):n.replaceSelection(o);e.dispatch(r,{userEvent:"input.paste",scrollIntoView:!0})}function iP(e,t,n,r){if(1==r)return tl.cursor(t,n);{if(2==r)return function(e,t,n=1){let r=e.charCategorizer(t),i=e.doc.lineAt(t),o=t-i.from;if(0==i.length)return tl.cursor(t);0==o?n=1:o==i.length&&(n=-1);let a=o,s=o;n<0?a=e5(i.text,o,!1):s=e5(i.text,o);let l=r(i.text.slice(a,s));for(;a>0;){let e=e5(i.text,a,!1);if(r(i.text.slice(e,a))!=l)break;a=e}for(;s<i.length;){let e=e5(i.text,s);if(r(i.text.slice(s,e))!=l)break;s=e}return tl.undirectionalRange(a+i.from,s+i.from)}(e.state,t,n);let i=e.docView.lineAt(t,n),o=e.state.doc.lineAt(i?i.posAtEnd:t),a=i?i.posAtStart:o.from,s=i?i.posAtEnd:o.to;return s<e.state.doc.length&&s==o.to&&s++,tl.undirectionalRange(a,s)}}iA.scroll=e=>{let t=e.inputState;t.lastScrollTop=e.scrollDOM.scrollTop,t.lastScrollLeft=e.scrollDOM.scrollLeft,np.ios&&!t.touchActive&&(t.lastIOSMomentumScroll=Date.now())},iA.wheel=iA.mousewheel=e=>{e.inputState.lastWheelEvent=Date.now()},iM.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),27==t.keyCode&&0!=e.inputState.tabFocusMode&&(e.inputState.tabFocusMode=Date.now()+2e3),!1),iA.touchstart=(e,t)=>{let n=e.inputState,r=t.targetTouches[0];n.touchActive=!0,n.lastTouchTime=Date.now(),r&&(n.lastTouchX=r.clientX,n.lastTouchY=r.clientY),n.setSelectionOrigin("select.pointer")},iA.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")},iA.touchend=(e,t)=>{e.inputState.touchActive=!1},iM.mousedown=(e,t)=>{var n,r;let i,o,a;if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return!1;let s=null;for(let n of e.state.facet(rr))if(s=n(e,t))break;if(s||0!=t.button||(n=e,r=t,i=n.posAndSideAtCoords({x:r.clientX,y:r.clientY},!1),o=iI(r),a=n.state.selection,s={update(e){e.docChanged&&(i.pos=e.changes.mapPos(i.pos),a=a.map(e.changes))},get(e,t,r){let s=n.posAndSideAtCoords({x:e.clientX,y:e.clientY},!1),l,c=iP(n,s.pos,s.assoc,o);if(i.pos!=s.pos&&!t){let e=iP(n,i.pos,i.assoc,o),t=Math.min(e.from,c.from),r=Math.max(e.to,c.to);c=t<c.from?tl.range(t,r,c.assoc):tl.range(r,t,c.assoc)}return t?a.replaceRange(a.main.extend(c.from,c.to,c.assoc)):r&&1==o&&a.ranges.length>1&&(l=function(e,t){for(let n=0;n<e.ranges.length;n++){let{from:r,to:i}=e.ranges[n];if(r<=t&&i>=t)return tl.create(e.ranges.slice(0,n).concat(e.ranges.slice(n+1)),e.mainIndex==n?0:e.mainIndex-(e.mainIndex>n))}return null}(a,s.pos))?l:r?a.addRange(c):tl.create([c])}}),s){let n=!e.hasFocus;e.inputState.startMouseSelection(new iS(e,t,s,n)),n&&e.observer.ignore(()=>{n$(e.contentDOM);let t=e.root.activeElement;t&&!t.contains(e.contentDOM)&&t.blur()});let r=e.inputState.mouseSelection;if(r)return r.start(t),!1===r.dragging}else e.inputState.setSelectionOrigin("select.pointer");return!1};let iT=np.ie&&np.ie_version<=11,iD=null,iR=0,ij=0;function iI(e){if(!iT)return e.detail;let t=iD,n=ij;return iD=e,ij=Date.now(),iR=!t||n>Date.now()-400&&2>Math.abs(t.clientX-e.clientX)&&2>Math.abs(t.clientY-e.clientY)?(iR+1)%3:1}function iz(e,t,n,r){let i;if(!(n=iC(e.state,rl,n)))return;let o=e.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:a}=e.inputState,s=r&&a&&((i=e.state.facet(rn)).length?i[0](t):np.mac?!t.altKey:!t.ctrlKey)?{from:a.from,to:a.to}:null,l={from:o,insert:n},c=e.state.changes(s?[s,l]:l);e.focus(),e.dispatch({changes:c,selection:{anchor:c.mapPos(o,-1),head:c.mapPos(o,1)},userEvent:s?"move.drop":"input.drop"}),e.inputState.draggedContent=null}iM.dragstart=(e,t)=>{let{selection:{main:n}}=e.state;if(t.target.draggable){let r=e.docView.tile.nearest(t.target);if(r&&r.isWidget()){let e=r.posAtStart,t=e+r.length;(e>=n.to||t<=n.from)&&(n=tl.undirectionalRange(e,t))}}let{inputState:r}=e;return r.mouseSelection&&(r.mouseSelection.dragging=!0),r.draggedContent=n,t.dataTransfer&&(t.dataTransfer.setData("Text",iC(e.state,rc,e.state.sliceDoc(n.from,n.to))
vendor: 5,441 bytes, line 2
2),t.dataTransfer.effectAllowed="copyMove"),!1},iM.dragend=e=>(e.inputState.draggedContent=null,!1),iM.drop=(e,t)=>{if(!t.dataTransfer)return!1;if(e.state.readOnly)return!0;let n=t.dataTransfer.files;if(n&&n.length){let r=Array(n.length),i=0,o=()=>{++i==n.length&&iz(e,t,r.filter(e=>null!=e).join(e.state.lineBreak),!1)};for(let e=0;e<n.length;e++){let t=new FileReader;t.onerror=o,t.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(t.result)||(r[e]=t.result),o()},t.readAsText(n[e])}return!0}{let n=t.dataTransfer.getData("Text");if(n)return iz(e,t,n,!0),!0}return!1},iM.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let n=iE?null:t.clipboardData;return n?(iO(e,n.getData("text/plain")||n.getData("text/uri-list")),!0):(!function(e){let t=e.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout(()=>{e.focus(),n.remove(),iO(e,n.value)},50)}(e),!1)};let i_=null;iM.copy=iM.cut=(e,t)=>{if(!nT(e.contentDOM,e.observer.selectionRange))return!1;let{text:n,ranges:r,linewise:i}=function(e){let t=[],n=[],r=!1;for(let r of e.selection.ranges)r.empty||(t.push(e.sliceDoc(r.from,r.to)),n.push(r));if(!t.length){let i=-1;for(let{from:r}of e.selection.ranges){let o=e.doc.lineAt(r);o.number>i&&(t.push(o.text),n.push({from:o.from,to:Math.min(e.doc.length,o.to+1)})),i=o.number}r=!0}return{text:iC(e,rc,t.join(e.lineBreak)),ranges:n,linewise:r}}(e.state);if(!n&&!i)return!1;i_=i?n:null,"cut"!=t.type||e.state.readOnly||e.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let o=iE?null:t.clipboardData;return o?(o.clearData(),o.setData("text/plain",n),!0):(!function(e,t){let n=e.dom.parentNode;if(!n)return;let r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=t,r.focus(),r.selectionEnd=t.length,r.selectionStart=0,setTimeout(()=>{r.remove(),e.focus()},50)}(e,n),!1)};let iL=tj.define();function iN(e,t){let n=[];for(let r of e.facet(rs)){let i=r(e,t);i&&n.push(i)}return n.length?e.update({effects:n,annotations:iL.of(!0)}):null}function iB(e){setTimeout(()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let n=iN(e.state,t);n?e.dispatch(n):e.update([])}},10)}iA.focus=e=>{e.inputState.lastFocusTime=Date.now(),!e.scrollDOM.scrollTop&&(e.inputState.lastScrollTop||e.inputState.lastScrollLeft)&&(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),iB(e)},iA.blur=e=>{e.observer.clearSelectionRange(),iB(e)},iA.compositionstart=iA.compositionupdate=e=>{!e.observer.editContext&&(null==e.inputState.compositionFirstChange&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0))},iA.compositionend=e=>{e.observer.editContext||(e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionPendingKey=!0,e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,e.inputState.compositionFirstChange=null,np.chrome&&np.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then(()=>e.observer.flush()):setTimeout(()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([])},50))},iA.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()},iM.beforeinput=(e,t)=>{var n,r;let i;if(("insertText"==t.inputType||"insertCompositionText"==t.inputType)&&(e.inputState.insertingText=t.data,e.inputState.insertingTextAt=Date.now()),"insertReplacementText"==t.inputType&&e.observer.editContext){let r=null==(n=t.dataTransfer)?void 0:n.getData("text/plain"),i=t.getTargetRanges();if(r&&i.length){let t=i[0],n=e.posAtDOM(t.startContainer,t.startOffset),o=e.posAtDOM(t.endContainer,t.endOffset);return ip(e,{from:n,to:o,insert:e.state.toText(r)},null),!0}}if(np.chrome&&np.android&&(i=ib.find(e=>e.inputType==t.inputType))&&(e.observer.delayAndroidKey(i.key,i.keyCode),"Backspace"==i.key||"Delete"==i.key)){let t=(null==(r=window.visualViewport)?void 0:r.height)||0;setTimeout(()=>{var n;((null==(n=window.visualViewport)?void 0:n.height)||0)>t+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())},100)}return np.ios&&"deleteContentForward"==t.inputType&&e.observer.flushSoon(),np.safari&&"insertText"==t.inputType&&e.inputState.composing>=0&&setTimeout(()=>iA.compositionend(e,t),20),!1};let iF=new Set,iV=["pre-wrap","normal","pre-line","break-spaces"],iH=!1;class iW{constructor(e){this.lineWrapping=e,this.doc=eZ.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,t){let n=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.max(0,Math.ceil((t-e-n*this.lineLength*.5)/this.lineLength))),this.lineHeight*n}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/Math.max(1,this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return iV.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let n=0;n<e.length;n++){let r=e[n];r<0?n++:this.heightSamples[Math.floor(10*r)]||(t=!0,this.heightSamples[Math.floor(10*r)]=!0)}return t}refresh(e,t,n,r,i,o){let a=iV.indexOf(e)>-1,s=Math.abs(t-this.lineHeight)>.3||this.lineWrapping!=a;if(this.lineWrapping=a,this.lineHeight=t,this.charWidth=n,this.textHeight=r,this.lineLength=i,s){this.heightSamples={};for(let e=0;e<o.length;
vendor: 11,780 bytes, line 2
2e++){let t=o[e];t<0?e++:this.heightSamples[Math.floor(10*t)]=!0}}return s}}class i${constructor(e,t){this.from=e,this.heights=t,this.index=0}get more(){return this.index<this.heights.length}}class iU{constructor(e,t,n,r,i){this.from=e,this.length=t,this.top=n,this.height=r,this._content=i}get type(){return"number"==typeof this._content?nx.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof nM?this._content.widget:null}get widgetLineBreaks(){return"number"==typeof this._content?this._content:0}join(e){let t=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new iU(this.from,this.length+e.length,this.top,this.height+e.height,t)}}var iK=((u=iK||(iK={}))[u.ByPos=0]="ByPos",u[u.ByHeight=1]="ByHeight",u[u.ByPosNoHeight=2]="ByPosNoHeight",u);class iq{constructor(e,t,n=2){this.length=e,this.height=t,this.flags=n}get outdated(){return(2&this.flags)>0}set outdated(e){this.flags=2*!!e|-3&this.flags}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>.001&&(iH=!0),this.height=e)}replace(e,t,n){return iq.of(n)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,n,r){let i=this,o=n.doc;for(let a=r.length-1;a>=0;a--){let{fromA:s,toA:l,fromB:c,toB:u}=r[a],h=i.lineAt(s,iK.ByPosNoHeight,n.setDoc(t),0,0),d=h.to>=l?h:i.lineAt(l,iK.ByPosNoHeight,n,0,0);for(u+=d.to-l,l=d.to;a>0&&h.from<=r[a-1].toA;)s=r[a-1].fromA,c=r[a-1].fromB,a--,s<h.from&&(h=i.lineAt(s,iK.ByPosNoHeight,n,0,0));c+=h.from-s,s=h.from;let f=i1.build(n.setDoc(o),e,c,u);i=iG(i,i.replace(s,l,f))}return i.updateHeight(n,0)}static empty(){return new iX(0,0,0)}static of(e){if(1==e.length)return e[0];let t=0,n=e.length,r=0,i=0;for(;;)if(t==n)if(r>2*i){let i=e[t-1];i.break?e.splice(--t,1,i.left,null,i.right):e.splice(--t,1,i.left,i.right),n+=1+i.break,r-=i.size}else if(i>2*r){let t=e[n];t.break?e.splice(n,1,t.left,null,t.right):e.splice(n,1,t.left,t.right),n+=2+t.break,i-=t.size}else break;else if(r<i){let n=e[t++];n&&(r+=n.size)}else{let t=e[--n];t&&(i+=t.size)}let o=0;return null==e[t-1]?(o=1,t--):null==e[t]&&(o=1,n++),new iQ(iq.of(e.slice(0,t)),o,iq.of(e.slice(n)))}}function iG(e,t){return e==t?e:(e.constructor!=t.constructor&&(iH=!0),t)}iq.prototype.size=1;let iZ=nw.replace({});class iY extends iq{constructor(e,t,n){super(e,t),this.deco=n,this.spaceAbove=0}mainBlock(e,t){return new iU(t,this.length,e+this.spaceAbove,this.height-this.spaceAbove,this.deco||0)}blockAt(e,t,n,r){return this.spaceAbove&&e<n+this.spaceAbove?new iU(r,0,n,this.spaceAbove,iZ):this.mainBlock(n,r)}lineAt(e,t,n,r,i){let o=this.mainBlock(r,i);return this.spaceAbove?this.blockAt(0,n,r,i).join(o):o}forEachLine(e,t,n,r,i,o){e<=i+this.length&&t>=i&&o(this.lineAt(0,iK.ByPos,n,r,i))}setMeasuredHeight(e){let t=e.heights[e.index++];t<0?(this.spaceAbove=-t,t=e.heights[e.index++]):this.spaceAbove=0,this.setHeight(t)}updateHeight(e,t=0,n=!1,r){return r&&r.from<=t&&r.more&&this.setMeasuredHeight(r),this.outdated=!1,this}toString(){return`block(${this.length})`}}class iX extends iY{constructor(e,t,n){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0,this.spaceAbove=n}mainBlock(e,t){return new iU(t,this.length,e+this.spaceAbove,this.height-this.spaceAbove,this.breaks)}replace(e,t,n){let r=n[0];return 1==n.length&&(r instanceof iX||r instanceof iJ&&4&r.flags)&&10>Math.abs(this.length-r.length)?(r instanceof iJ?r=new iX(r.length,this.height,this.spaceAbove):r.height=this.height,this.outdated||(r.outdated=!1),r):iq.of(n)}updateHeight(e,t=0,n=!1,r){return r&&r.from<=t&&r.more?this.setMeasuredHeight(r):(n||this.outdated)&&(this.spaceAbove=0,this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight)),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class iJ extends iq{constructor(e){super(e,0)}heightMetrics(e,t){let n=e.doc.lineAt(t).number,r=e.doc.lineAt(t+this.length).number,i=r-n+1,o,a=0;if(e.lineWrapping){let t=Math.min(this.height,e.lineHeight*i);o=t/i,this.length>i+1&&(a=(this.height-t)/(this.length-i-1))}else o=this.height/i;return{firstLine:n,lastLine:r,perLine:o,perChar:a}}blockAt(e,t,n,r){let{firstLine:i,lastLine:o,perLine:a,perChar:s}=this.heightMetrics(t,r);if(t.lineWrapping){let i=r+(e<t.lineHeight?0:Math.round(Math.max(0,Math.min(1,(e-n)/this.height))*this.length)),o=t.doc.lineAt(i),l=a+o.length*s,c=Math.max(n,e-l/2);return new iU(o.from,o.length,c,l,0)}{let r=Math.max(0,Math.min(o-i,Math.floor((e-n)/a))),{from:s,length:l}=t.doc.line(i+r);return new iU(s,l,n+a*r,a,0)}}lineAt(e,t,n,r,i){if(t==iK.ByHeight)return this.blockAt(e,n,r,i);if(t==iK.ByPosNoHeight){let{from:t,to:r}=n.doc.lineAt(e);return new iU(t,r-t,0,0,0)}let{firstLine:o,perLine:a,perChar:s}=this.heightMetrics(n,i),l=n.doc.lineAt(e),c=a+l.length*s,u=l.number-o,h=r+a*u+s*(l.from-i-u);return new iU(l.from,l.length,Math.max(r,Math.min(h,r+this.height-c)),c,0)}forEachLine(e,t,n,r,i,o){e=Math.max(e,i),t=Math.min(t,i+this.length);let{firstLine:a,perLine:s,perChar:l}=this.heightMetrics(n,i);for(let c=e,u=r;c<=t;){let t=n.doc.lineAt(c);if(c==e){let n=t.number-a;u+=s*n+l*(e-i-n)}let r=s+l*t.length;o(new iU(t.from,t.length,u,r,0)),u+=r,c=t.to+1}}replace(e,t,n){let r=this.length-t;if(r>0){let e=n[n.length-1];e instanceof iJ?n[n.length-1]=new iJ(e.length+r):n.push(null,new iJ(r-1))}if(e>0){let t=n[0];t instanceof iJ?n[0]=new iJ(e+t.length):n.unshift(new iJ(e-1),null)}return iq.of(n)}decomposeLeft(e,t){t.push(new iJ(e-1),null)}decomposeRight(e,t){t.push(null,new iJ(this.length-e-1))}updateHeight(e,t=0,n=!1,r){let i=t+this.length;if(r&&r.from<=t+this.length&&r.more){let n=[],o=Math.max(t,r.from),a=-1;for(r.from>t&&n.push(new iJ(r.from-t-1).updateHeight(e,t));o<=i&&r.more;){let t=e.doc.lineAt(o).length;n.length&&n.push(null);let i=r.heights[r.index++],s=0;i<0&&(s=-i,i=r.heights[r.index++]),-1==a?a=i:Math.abs(i-a)>=.001&&(a=-2);let l=new iX(t,i,s);l.outdated=!1,n.push(l),o+=t+1}o<=i&&n.push(null,new iJ(i-o).updateHeight(e,o));let s=iq.of(n);return(a<0||Math.abs(s.height-this.height)>=.001||Math.abs(a-this.heightMetrics(e,t).perLine)>=.001)&&(iH=!0),iG(this,s)}return(n||this.outdated)&&(this.setHeight(e.heightForGap(t,t+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class iQ extends iq{constructor(e,t,n){super(e.length+t+n.length,e.height+n.height,t|(e.outdated||n.outdated?2:0)),this.left=e,this.right=n,this.size=e.size+n.size}get break(){return 1&this.flags}blockAt(e,t,n,r){let i=n+this.left.height;return e<i?this.left.blockAt(e,t,n,r):this.right.blockAt(e,t,i,r+this.left.length+this.break)}lineAt(e,t,n,r,i){let o=r+this.left.height,a=i+this.left.length+this.break,s=t==iK.ByHeight?e<o:e<a,l=s?this.left.lineAt(e,t,n,r,i):this.right.lineAt(e,t,n,o,a);if(this.break||(s?l.to<a:l.from>a))return l;let c=t==iK.ByPosNoHeight?iK.ByPosNoHeight:iK.ByPos;return s?l.join(this.right.lineAt(a,c,n,o,a)):this.left.lineAt(a,c,n,r,i).join(l)}forEachLine(e,t,n,r,i,o){let a=r+this.left.height,s=i+this.left.length+this.break;if(this.break)e<s&&this.left.forEachLine(e,t,n,r,i,o),t>=s&&this.right.forEachLine(e,t,n,a,s,o);else{let l=this.lineAt(s,iK.ByPos,n,r,i);e<l.from&&this.left.forEachLine(e,l.from-1,n,r,i,o),l.to>=e&&l.from<=t&&o(l),t>l.to&&this.right.forEachLine(l.to+1,t,n,a,s,o)}}replace(e,t,n){let r=this.left.length+this.break;if(t<r)return this.balanced(this.left.replace(e,t,n),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-r,t-r,n));let i=[];e>0&&this.decomposeLeft(e,i);let o=i.length;for(let e of n)i.push(e);if(e>0&&i0(i,o-1),t<this.length){let e=i.length;this.decomposeRight(t,i),i0(i,e)}return iq.of(i)}decomposeLeft(e,t){let n=this.left.length;if(e<=n)return this.left.decomposeLeft(e,t);t.push(this.left),this.break&&e>=++n&&t.push(null),e>n&&this.right.decomposeLeft(e-n,t)}decomposeRight(e,t){let n=this.left.length,r=n+this.break;if(e>=r)return this.right.decomposeRight(e-r,t);e<n&&this.left.decomposeRight(e,t),this.break&&e<r&&t.push(null),t.push(this.right)}balanced(e,t){return e.size>2*t.size||t.size>2*e.size?iq.of(this.break?[e,null,t]:[e,t]):(this.left=iG(this.left,e),this.right=iG(this.right,t),this.setHeight(e.height+t.height),this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,n=!1,r){let{left:i,right:o}=this,a=t+i.length+this.break,s=null;return(r&&r.from<=t+i.length&&r.more?s=i=i.updateHeight(e,t,n,r):i.updateHeight(e,t,n),r&&r.from<=a+o.length&&r.more?s=o=o.updateHeight(e,a,n,r):o.updateHeight(e,a,n),s)?this.balanced(i,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function i0(e,t){let n,r;null==e[t]&&(n=e[t-1])instanceof iJ&&(r=e[t+1])instanceof iJ&&e.splice(t-1,3,new iJ(n.length+1+r.length))}class i1{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let e=Math.min(t,this.lineEnd),n=this.nodes[this.nodes.length-1];n instanceof iX?n.length+=e-this.pos:(e>this.pos||!this.isCovered)&&this.nodes.push(new iX(e-this.pos,-1,0)),this.writtenTo=e,t>e&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,n){if(e<t||n.heightRelevant){let r=n.widget?n.widget.estimatedHeight:0,i=n.widget?n.widget.lineBreaks:0;r<0&&(r=this.oracle.lineHeight);let o=t-e;n.block?this.addBlock(new iY(o,r,n)):(o||i||r>=5)&&this.addLineDeco(r,i,o)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenTo<e&&((this.writtenTo<e-1||null==this.nodes[this.nodes.length-1])&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new iX(this.pos-e,-1,0)),this.writtenTo=this.pos}blankContent(e,t){let n=new iJ(t-e);return this.oracle.doc.lineAt(e).to==t&&(n.flags|=4),n}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof iX)return e;let t=new iX(0,-1,0);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,n){let r=this.ensureLine();r.length+=n,r.collapsed+=n,r.widgetHeight=Math.max(r.widgetHeight,e),r.breaks+=t,this.writtenTo=this.pos=this.pos+n}finish(e){let t=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||t instanceof iX||this.isCovered?(this.writtenTo<this.pos||null==t)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos)):this.nodes.push(new iX(0,-1,0));let n=e;for(let e of this.nodes)e instanceof iX&&e.updateHeight(this.oracle,n),n+=e?e.length:1;return this.nodes}static build(e,t,n,r){let i=new i1(n,e);return tX.spans(t,n,r,i,0),i.finish(n)}}class i2{constructor(){this.changes=[]}compareRange(){}comparePoint(e,t,n,r){(e<t||n&&n.heightRelevant||r&&r.heightRelevant)&&nE(e,t,this.changes,5)}}class i4{constructor(e,t,n,r){this.from=e,this.to=t,this.size=n,this.displaySize=r}static same(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++){let r=e[n],i=t[n];if(r.from!=i.from||r.to!=i.to||r.size!=i.size)return!1}return!0}draw(e,t){return nw.replace({widget:new i5(this.displaySize*(t?e.scaleY:e.scaleX),t)}
2).range(this.from,this.to)}}class i5 extends nb{constructor(e,t){super(),this.size=e,this.vertical=t}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class i3{constructor(e,t){this.view=e,this.state=t,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scaleX=1,this.scaleY=1,this.scrollOffset=0,this.scrolledToBottom=!1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=i7,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=nX.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let n=t.facet(rS).some(e=>"function"!=typeof e&&"cm-lineWrapping"==e.class);this.heightOracle=new iW(n),this.stateDeco=oe(t),this.heightMap=iq.empty().applyChanges(this.stateDeco,eZ.empty,this.heightOracle.setDoc(t.doc),[new rj(0,0,0,t.doc.length)]);for(let e=0;e<2&&(this.viewport=this.getViewport(0,null),this.updateForViewport());e++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=nw.set(this.lineGaps.map(e=>e.draw(this,!1))),this.scrollParent=e.scrollDOM,this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let n=0;n<=1;n++){let r=n?t.head:t.anchor;if(!e.some(({from:e,to:t})=>r>=e&&r<=t)){let{from:t,to:n}=this.lineBlockAt(r);e.push(new i6(t,n))}}return this.viewports=e.sort((e,t)=>e.from-t.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?i7:new ot(this.heightOracle,this.heightMap,this.viewports),2*!e.eq(this.scaler)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(on(e,this.scaler))})}update(e,t=null){var n,r;let i;this.state=e.state;let o=this.stateDeco;this.stateDeco=oe(this.state);let a=e.changedRanges,s=rj.extendWithRanges(a,(n=this.stateDeco,r=e?e.changes:te.empty(this.state.doc.length),i=new i2,tX.compare(o,n,r,i,0),i.changes)),l=this.heightMap.height,c=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollOffset);iH=!1,this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),s),(this.heightMap.height!=l||iH)&&(e.flags|=2),c?(this.scrollAnchorPos=e.changes.mapPos(c.from,-1),this.scrollAnchorHeight=c.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=l);let u=s.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.head<u.from||t.range.head>u.to)||!this.viewportIsAppropriate(u))&&(u=this.getViewport(0,t));let h=u.from!=this.viewport.from||u.to!=this.viewport.to;this.viewport=u,e.flags|=this.updateForViewport(),(h||!e.changes.empty||2&e.flags)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(e.changes),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&(e.selectionSet||e.focusChanged)&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(rh)&&(this.mustEnforceCursorAssoc=!0)}measure(){var e;let t,n,{view:r}=this,i=r.contentDOM,o=window.getComputedStyle(i),a=this.heightOracle,s=o.whiteSpace;this.defaultTextDirection="rtl"==o.direction?nX.RTL:nX.LTR;let l=this.heightOracle.mustRefreshForWrapping(s)||"refresh"===this.mustMeasureContent,c=i.getBoundingClientRect(),u=l||this.mustMeasureContent||this.contentDOMHeight!=c.height;this.contentDOMHeight=c.height,this.mustMeasureContent=!1;let h=0,d=0;if(c.width&&c.height){let{scaleX:e,scaleY:t}=nN(i,c);(e>.005&&Math.abs(this.scaleX-e)>.005||t>.005&&Math.abs(this.scaleY-t)>.005)&&(this.scaleX=e,this.scaleY=t,h|=16,l=u=!0)}let f=(parseInt(o.paddingTop)||0)*this.scaleY,p=(parseInt(o.paddingBottom)||
20)*this.scaleY;(this.paddingTop!=f||this.paddingBottom!=p)&&(this.paddingTop=f,this.paddingBottom=p,h|=18),this.editorWidth!=r.scrollDOM.clientWidth&&(a.lineWrapping&&(u=!0),this.editorWidth=r.scrollDOM.clientWidth,h|=16);let m=nB(this.view.contentDOM,!1).y;m!=this.scrollParent&&(this.scrollParent=m,this.scrollAnchorHeight=-1,this.scrollOffset=0);let g=this.getScrollOffset();this.scrollOffset!=g&&(this.scrollAnchorHeight=-1,this.scrollOffset=g),this.scrolledToBottom=nq(this.scrollParent||r.win);let v=(this.printing?function(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}:function(e,t){let n=e.getBoundingClientRect(),r=e.ownerDocument,i=r.defaultView||window,o=Math.max(0,n.left),a=Math.min(i.innerWidth,n.right),s=Math.max(0,n.top),l=Math.min(i.innerHeight,n.bottom);for(let t=e.parentNode;t&&t!=r.body;)if(1==t.nodeType){let n=t,r=window.getComputedStyle(n);if((n.scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth)&&"visible"!=r.overflow){let r=n.getBoundingClientRect();o=Math.max(o,r.left),a=Math.min(a,r.right),s=Math.max(s,r.top),l=Math.min(t==e.parentNode?i.innerHeight:l,r.bottom)}t="absolute"==r.position||"fixed"==r.position?n.offsetParent:n.parentNode}else if(11==t.nodeType)t=t.host;else break;return{left:o-n.left,right:Math.max(o,a)-n.left,top:s-(n.top+t),bottom:Math.max(s,l)-(n.top+t)}})(i,this.paddingTop),y=v.top-this.pixelViewport.top,b=v.bottom-this.pixelViewport.bottom;this.pixelViewport=v;let x=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;
2if(x!=this.inView&&(this.inView=x,x&&(u=!0)),!this.inView&&!this.scrollTarget&&(t=(e=r.dom).getBoundingClientRect(),n=e.ownerDocument.defaultView||window,!(t.left<n.innerWidth)||!(t.right>0)||!(t.top<n.innerHeight)||!(t.bottom>0)))return 0;let w=c.width;if((this.contentDOMWidth!=w||this.editorHeight!=r.scrollDOM.clientHeight)&&(this.contentDOMWidth=c.width,this.editorHeight=r.scrollDOM.clientHeight,h|=16),u){let e=r.docView.measureVisibleLineHeights(this.viewport);if(a.mustRefreshForHeights(e)&&(l=!0),l||a.lineWrapping&&Math.abs(w-this.contentDOMWidth)>a.charWidth){let{lineHeight:t,charWidth:n,textHeight:i}=r.docView.measureTextSize();(l=t>0&&a.refresh(s,t,n,i,Math.max(5,w/n),e))&&(r.docView.minWidth=0,h|=16)}for(let t of(y>0&&b>0?d=Math.max(y,b):y<0&&b<0&&(d=Math.min(y,b)),iH=!1,this.viewports)){let n=t.from==this.viewport.from?e:r.docView.measureVisibleLineHeights(t);this.heightMap=(l?iq.empty().applyChanges(this.stateDeco,eZ.empty,this.heightOracle,[new rj(0,0,0,r.state.doc.length)]):this.heightMap).updateHeight(a,0,l,new i$(t.from,n))}iH&&(h|=2)}let k=!this.viewportIsAppropriate(this.viewport,d)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return k&&(2&h&&(h|=this.updateScaler()),this.viewport=this.getViewport(d,this.scrollTarget),h|=this.updateForViewport()),(2&h||k)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(l?[]:this.lineGaps,r)),h|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,r.docView.enforceCursorAssoc()),h}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),r=this.heightMap,i=this.heightOracle,{visibleTop:o,visibleBottom:a}=this,s=new i6(r.lineAt(o-1e3*n,iK.ByHeight,i,0,0).from,r.lineAt(a+(1-n)*1e3,iK.ByHeight,i,0,0).to);if(t){let{head:e}=t.range;if(e<s.from||e>s.to){let n=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),o=r.lineAt(e,iK.ByPos,i,0,0),a;a="center"==t.y?(o.top+o.bottom)/2-n/2:"start"==t.y||"nearest"==t.y&&e<s.from?o.top:o.bottom-n,s=new i6(r.lineAt(a-500,iK.ByHeight,i,0,0).from,r.lineAt(a+n+500,iK.ByHeight,i,0,0).to)}}return s}mapViewport(e,t){let n=t.mapPos(e.from,-1),r=t.mapPos(e.to,1);return new i6(this.heightMap.lineAt(n,iK.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(r,iK.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:t},n=0){if(!this.inView)return!0;let{top:r}=this.heightMap.lineAt(e,iK.ByPos,this.heightOracle,0,0),{bottom:i}=this.heightMap.lineAt(t,iK.ByPos,this.heightOracle,0,0),{visibleTop:o,visibleBottom:a}=this;return(0==e||r<=o-Math.max(10,Math.min(-n,250)))&&(t==this.state.doc.length||i>=a+Math.max(10,Math.min(n,250)))&&r>o-2e3&&i<a+2e3}mapLineGaps(e,t){if(!e.length||t.empty)return e;let n=[];for(let r of e)t.touchesRange(r.from,r.to)||n.push(new i4(t.mapPos(r.from),t.mapPos(r.to),r.size,r.displaySize));return n}ensureLineGaps(e,t){let n=this.heightOracle.lineWrapping,r=n?1e4:2e3,i=r>>1,o=r<<1;if(this.defaultTextDirection!=nX.LTR&&!n)return[];let a=[],s=(r,o,l,c)=>{if(o-r<i)return;let u=this.state.selection.main,h=[u.from];for(let e of(u.empty||h.push(u.to),h))if(e>r&&e<o){s(r,e-10,l,c),s(e+10,o,l,c);return}let d=function(e,t){for(let n of e)if(t(n))return n}(e,e=>e.from>=l.from&&e.to<=l.to&&Math.abs(e.from-r)<i&&Math.abs(e.to-o)<i&&!h.some(t=>e.from<t&&e.to>t));if(!d){if(o<l.to&&t&&n&&t.visibleRanges.some(e=>e.from<=o&&e.to>=o)){let e=t.moveToLineBoundary(tl.cursor(o),!1,!0).head;e>r&&(o=e)}let e=this.gapSize(l,r,o,c),i=n||e<2e6?e:2e6;d=new i4(r,o,e,i)}a.push(d)},l=t=>{var i,a,l;let c,u,h,d,f;if(t.length<o||t.type!=nx.Text)return;let p=(i=t.from,a=t.to,l=this.stateDeco,h=[],d=i,f=0,tX.spans(l,i,a,{span(){},point(e,t){e>d&&(h.push({from:d,to:e}),f+=e-d),d=t}},20),d<a&&(h.push({from:d,to:a}),f+=a-d),{total:f,ranges:h});if(p.total<o)return;let m=this.scrollTarget?this.scrollTarget.range.head:null;if(n){let e,n,i=r/this.heightOracle.lineLength*this.heightOracle.lineHeight;if(null!=m){let r=i9(p,m),o=((this.visibleBottom-this.visibleTop)/2+i)/t.height;e=r-o,n=r+o}else e=(this.visibleTop-t.top-i)/t.height,n=(this.visibleBottom-t.top+i)/t.height;c=i8(p,e),u=i8(p,n)}else{let n,i,o=p.total*this.heightOracle.charWidth,a=r*this.heightOracle.charWidth,s=0;if(o>2e6)for(let n of e)n.from>=t.from&&n.from<t.to&&n.size!=n.displaySize&&n.from*this.heightOracle.charWidth+s<this.pixelViewport.left&&(s=n.size-n.displaySize);let l=this.pixelViewport.left+s,h=this.pixelViewport.right+s;if(null!=m){let e=i9(p,m),t=((h-l)/2+a)/o;n=e-t,i=e+t}else n=(l-a)/o,i=(h+a)/o;c=i8(p,n),u=i8(p,i)}c>t.from&&s(t.from,c,t,p),u<t.to&&s(u,t.to,t,p)};for(let e of this.viewportLines)Array.isArray(e.type)?e.type.forEach(l):l(e);return a}gapSize(e,t,n,r){let i=i9(r,n)-i9(r,t);return this.heightOracle.lineWrapping?e.height*i:r.total*this.heightOracle.charWidth*i}updateLineGaps(e){i4.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=nw.set(e.map(e=>e.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(e){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let n=[];tX.spans(t,this.viewport.from,this.viewport.to,{span(e,t){n.push({from:e,to:t})}
vendor: 4,378 bytes, line 2
2,point(){}},20);let r=0;if(n.length!=this.visibleRanges.length)r=12;else for(let t=0;t<n.length&&!(8&r);t++){let i=this.visibleRanges[t],o=n[t];(i.from!=o.from||i.to!=o.to)&&(r|=4,e&&e.mapPos(i.from,-1)==o.from&&e.mapPos(i.to,1)==o.to||(r|=8))}return this.visibleRanges=n,r}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||on(this.heightMap.lineAt(e,iK.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(t=>t.top<=e&&t.bottom>=e)||on(this.heightMap.lineAt(this.scaler.fromDOM(e),iK.ByHeight,this.heightOracle,0,0),this.scaler)}getScrollOffset(){return this.scrollParent==this.view.scrollDOM?this.scrollParent.scrollTop*this.scaleY:(this.scrollParent?this.scrollParent.getBoundingClientRect().top:0)-this.view.contentDOM.getBoundingClientRect().top}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return on(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class i6{constructor(e,t){this.from=e,this.to=t}}function i8({total:e,ranges:t},n){if(n<=0)return t[0].from;if(n>=1)return t[t.length-1].to;let r=Math.floor(e*n);for(let e=0;;e++){let{from:n,to:i}=t[e],o=i-n;if(r<=o)return n+r;r-=o}}function i9(e,t){let n=0;for(let{from:r,to:i}of e.ranges){if(t<=i){n+=t-r;break}n+=i-r}return n/e.total}let i7={toDOM:e=>e,fromDOM:e=>e,scale:1,eq(e){return e==this}};function oe(e){let t=e.facet(rM).filter(e=>"function"!=typeof e),n=e.facet(rE).filter(e=>"function"!=typeof e);return n.length&&t.push(tX.join(n)),t}class ot{constructor(e,t,n){let r=0,i=0,o=0;for(let a of(this.viewports=n.map(({from:n,to:i})=>{let o=t.lineAt(n,iK.ByPos,e,0,0).top,a=t.lineAt(i,iK.ByPos,e,0,0).bottom;return r+=a-o,{from:n,to:i,top:o,bottom:a,domTop:0,domBottom:0}}),this.scale=(7e6-r)/(t.height-r),this.viewports))a.domTop=o+(a.top-i)*this.scale,o=a.domBottom=a.domTop+(a.bottom-a.top),i=a.bottom}toDOM(e){for(let t=0,n=0,r=0;;t++){let i=t<this.viewports.length?this.viewports[t]:null;if(!i||e<i.top)return r+(e-n)*this.scale;if(e<=i.bottom)return i.domTop+(e-i.top);n=i.bottom,r=i.domBottom}}fromDOM(e){for(let t=0,n=0,r=0;;t++){let i=t<this.viewports.length?this.viewports[t]:null;if(!i||e<i.domTop)return n+(e-r)/this.scale;if(e<=i.domBottom)return i.top+(e-i.domTop);n=i.bottom,r=i.domBottom}}eq(e){return e instanceof ot&&this.scale==e.scale&&this.viewports.length==e.viewports.length&&this.viewports.every((t,n)=>t.from==e.viewports[n].from&&t.to==e.viewports[n].to)}}function on(e,t){if(1==t.scale)return e;let n=t.toDOM(e.top),r=t.toDOM(e.bottom);return new iU(e.from,e.length,n,r-n,Array.isArray(e._content)?e._content.map(e=>on(e,t)):e._content)}let or=th.define({combine:e=>e.join(" ")}),oi=th.define({combine:e=>e.indexOf(!0)>-1}),oo=ne.G.newName(),oa=ne.G.newName(),os=ne.G.newName(),ol={"&light":"."+oa,"&dark":"."+os};function oc(e,t,n){return new ne.G(t,{finish:t=>/&/.test(t)?t.replace(/&\w*/,t=>{if("&"==t)return e;if(!n||!n[t])throw RangeError(`Unsupported selector: ${t}`);return n[t]}):e+" "+t})}let ou=oc("."+oo,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{userSelect:"none",position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}}
vendor: 5,136 bytes, line 2
2,"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-selectionHandle":{backgroundColor:"currentColor",width:"1.5px"},".cm-selectionHandle-start::before, .cm-selectionHandle-end::before":{content:'""',backgroundColor:"inherit",borderRadius:"50%",width:"8px",height:"8px",position:"absolute",left:"-3.25px"},".cm-selectionHandle-start::before":{top:"-8px"},".cm-selectionHandle-end::before":{bottom:"-8px"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",zIndex:200},".cm-gutters-before":{insetInlineStart:0},".cm-gutters-after":{insetInlineEnd:0},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",border:"0px solid #ddd","&.cm-gutters-before":{borderRightWidth:"1px"},"&.cm-gutters-after":{borderLeftWidth:"1px"}},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},".cm-panels-top":{top:"0"},".cm-panels-bottom":{bottom:"0"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-dialog":{padding:"2px 19px 4px 6px",position:"relative","& label":{fontSize:"80%"}},".cm-dialog-close":{position:"absolute",top:"3px",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",fontSize:"14px",padding:"0"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top",userSelect:"none"},".cm-highlightSpace":{background:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 0) no-repeat",backgroundSize:".4em",backgroundPosition:"calc(min(50%, 0px)) center"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},ol),oh={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},od=np.ie&&np.ie_version<=11;class of{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new nF,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let e of t)this.queue.push(e);(np.ie&&np.ie_version<=11||np.ios&&e.composing)&&t.some(e=>
2"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&np.android&&!1!==e.constructor.EDIT_CONTEXT&&!(np.chrome&&np.chrome_version<126)&&(this.editContext=new og(e),e.state.facet(rv)&&(e.contentDOM.editContext=this.editContext.editContext)),od&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver(()=>{var e;(null==(e=this.view.docView)?void 0:e.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),"function"==typeof IntersectionObserver&&(this.intersection=new IntersectionObserver(e=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){("change"!=e.type&&e.type||e.matches)&&(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,n)=>t!=e[n]))){for(let t of(this.gapIntersection.disconnect(),e))this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:n}=this,r=this.selectionRange;if(n.state.facet(rv)?n.root.activeElement!=this.dom:!nT(this.dom,r))return;let i=r.anchorNode&&n.docView.tile.nearest(r.anchorNode);if(i&&i.isWidget()&&i.widget.ignoreEvent(e)){t||(this.selectionChanged=!1);return}(np.ie&&np.ie_version<=11||np.android&&np.chrome)&&!n.state.selection.main.empty&&r.focusNode&&nR(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=nO(e.root);if(!t)return!1;let n=np.safari&&11==e.root.nodeType&&e.root.activeElement==this.dom&&function(e,t){if(t.getComposedRanges){let n=t.getComposedRanges(e.root)[0];if(n)return om(e,n)}let n=null;function r(e){e.preventDefault(),e.stopImmediatePropagation(),n=e.getTargetRanges()[0]}return e.contentDOM.addEventListener("beforeinput",r,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",r,!0),n?om(e,n):null}(this.view,t)||t;if(!n||this.selectionRange.eq(n))return!1;let r=nT(this.dom,n);return r&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&function(e,t){let n=t.focusNode,r=t.focusOffset;if(!n||t.anchorNode!=n||t.anchorOffset!=r)return!1;for(r=Math.min(r,n_(n));;)if(r){if(1!=n.nodeType)return!1;let e=n.childNodes[r-1];"false"==e.contentEditable?r--:r=n_(n=e)}else{if(n==e)return!0;r=nj(n),n=n.parentNode}}(this.dom,n)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(n),r&&(this.selectionChanged=!0),!0)}setSelectionRange(e,t){this.selectionRange.set(e.node,e.offset,t.node,t.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,t=null;for(let n=this.dom;n;)if(1==n.nodeType)!t&&e<this.scrollTargets.length&&this.scrollTargets[e]==n?e++:t||(t=this.scrollTargets.slice(0,e)),t&&t.push(n),n=n.assignedSlot||n.parentNode;else if(11==n.nodeType)n=n.host;else break;if(e<this.scrollTargets.length&&!t&&(t=this.scrollTargets.slice(0,e)),t){for(let e of this.scrollTargets)e.removeEventListener("scroll",this.onScroll);for(let e of this.scrollTargets=t)e.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,oh),od&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),od&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,t){var n;if(!this.delayedAndroidKey){let e=()=>{let e=this.delayedAndroidKey;e&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=e.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&e.force&&nK(this.dom,e.key,e.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(e)}this.delayedAndroidKey&&"Enter"!=e||(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange<Date.now()-50||!!(null==(n=this.delayedAndroidKey)?void 0:n.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,n=-1,r=!1;for(let i of e){let e=this.readMutation(i);e&&(e.typeOver&&(r=!0),-1==t?{from:t,to:n}=e:(t=Math.min(e.from,t),n=Math.max(e.to,n)))}return{from:t,to:n,typeOver:r}}readChange(){let{from:e,to:t,typeOver:n}=this.processRecords(),r=this.selectionChanged&&nT(this.dom,this.selectionRange);
2if(e<0&&!r)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let i=new ih(this.view,e,t,n);return this.view.docView.domChanged={newSel:i.newSel?i.newSel.main:null},i}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let n=this.view.state,r=id(this.view,t);return this.view.state==n&&(t.domChanged||t.newSel&&!ig(this.view.state.selection,t.newSel.main))&&this.view.update([]),r}readMutation(e){let t=this.view.docView.tile.nearest(e.target);if(!t||t.isWidget())return null;if(t.markDirty("attributes"==e.type),"childList"==e.type){let n=op(t,e.previousSibling||e.target.previousSibling,-1),r=op(t,e.nextSibling||e.target.nextSibling,1);return{from:n?t.posAfter(n):t.posAtStart,to:r?t.posBefore(r):t.posAtEnd,typeOver:!1}}return"characterData"==e.type?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(rv)!=e.state.facet(rv)&&(e.view.contentDOM.editContext=e.state.facet(rv)?this.editContext.editContext:null))}destroy(){var e,t,n;for(let r of(this.stop(),null==(e=this.intersection)||e.disconnect(),null==(t=this.gapIntersection)||t.disconnect(),null==(n=this.resizeScroll)||n.disconnect(),this.scrollTargets))r.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function op(e,t,n){for(;t;){let r=r_.get(t);if(r&&r.parent==e)return r;let i=t.parentNode;t=i!=e.dom?i:n>0?t.nextSibling:t.previousSibling}return null}function om(e,t){let n=t.startContainer,r=t.startOffset,i=t.endContainer,o=t.endOffset,a=e.docView.domAtPos(e.state.selection.main.anchor,1);return nR(a.node,a.offset,i,o)&&([n,r,i,o]=[i,o,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}}class og{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(e.state);let t=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});for(let n in this.handlers.textupdate=n=>{let r=e.state.selection.main,{anchor:i,head:o}=r,a=this.toEditorPos(n.updateRangeStart),s=this.toEditorPos(n.updateRangeEnd);e.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:n.updateRangeStart,editorBase:a,drifted:!1});let l=s-a>n.text.length;a==this.from&&i<this.from?a=i:s==this.to&&i>this.to&&(s=i);let c=im(e.state.sliceDoc(a,s),n.text,(l?r.from:r.to)-a,l?"end":null);if(!c){let t=tl.single(this.toEditorPos(n.selectionStart),this.toEditorPos(n.selectionEnd));ig(t,r)||e.dispatch({selection:t,userEvent:"select"});return}let u={from:c.from+a,to:c.toA+a,insert:eZ.of(n.text.slice(c.from,c.toB).split("\n"))};
vendor: 5,060 bytes, line 2
2if((np.mac||np.android)&&u.from==o-1&&/^\. ?$/.test(n.text)&&"off"==e.contentDOM.getAttribute("autocorrect")&&(u={from:a,to:s,insert:eZ.of([n.text.replace("."," ")])}),this.pendingContextChange=u,!e.state.readOnly){let t=this.to-this.from+(u.to-u.from+u.insert.length);ip(e,u,tl.single(this.toEditorPos(n.selectionStart,t),this.toEditorPos(n.selectionEnd,t)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state)),u.from<u.to&&!u.insert.length&&e.inputState.composing>=0&&!/[\\p{Alphabetic}\\p{Number}_]/.test(t.text.slice(Math.max(0,n.updateRangeStart-1),Math.min(t.text.length,n.updateRangeStart+1)))&&this.handlers.compositionend(n)},this.handlers.characterboundsupdate=n=>{let r=[],i=null;for(let t=this.toEditorPos(n.rangeStart),o=this.toEditorPos(n.rangeEnd);t<o;t++){let n=e.coordsForChar(t);i=n&&new DOMRect(n.left,n.top,n.right-n.left,n.bottom-n.top)||i||new DOMRect,r.push(i)}t.updateCharacterBounds(n.rangeStart,r)},this.handlers.textformatupdate=t=>{let n=[];for(let e of t.getTextFormats()){let t=e.underlineStyle,r=e.underlineThickness;if(!/none/i.test(t)&&!/none/i.test(r)){let i=this.toEditorPos(e.rangeStart),o=this.toEditorPos(e.rangeEnd);if(i<o){let e=`text-decoration: underline ${/^[a-z]/.test(t)?t+" ":"Dashed"==t?"dashed ":"Squiggle"==t?"wavy ":""}${/thin/i.test(r)?1:2}px`;n.push(nw.mark({attributes:{style:e}}).range(i,o))}}}e.dispatch({effects:rm.of(nw.set(n))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:t}=this.composing;this.composing=null,t&&this.reset(e.state)}},this.handlers)t.addEventListener(n,this.handlers[n]);this.measureReq={read:e=>{let t=nO(e.root);t&&t.rangeCount&&this.editContext.updateSelectionBounds(t.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,n=!1,r=this.pendingContextChange;return e.changes.iterChanges((i,o,a,s,l)=>{if(n)return;let c=l.length-(o-i);if(r&&o>=r.to)if(r.from==i&&r.to==o&&r.insert.eq(l)){r=this.pendingContextChange=null,t+=c,this.to+=c;return}else r=null,this.revertPending(e.state);if(i+=t,(o+=t)<=this.from)this.from+=c,this.to+=c;else if(i<this.to){if(i<this.from||o>this.to||this.to-this.from+l.length>3e4){n=!0;return}this.editContext.updateText(this.toContextPos(i),this.toContextPos(o),l.toString()),this.to+=c}t+=c}),r&&!n&&this.revertPending(e.state),!n}update(e){let t=this.pendingContextChange,n=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(n.from,n.to)&&e.transactions.some(e=>!e.isUserEvent("input.type")&&e.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):this.applyEdits(e)&&this.rangeIsValid(e.state)?(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state):(this.pendingContextChange=null,this.reset(e.state)),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,n=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),r=this.toContextPos(t.head);(this.editContext.selectionStart!=n||this.editContext.selectionEnd!=r)&&this.editContext.updateSelection(n,r)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to<e.doc.length&&this.to-t<500||this.to-this.from>3e4)}toEditorPos(e,t=this.to-this.from){e=Math.min(e,t);let n=this.composing;return n&&n.drifted?n.editorBase+(e-n.contextBase):e+this.from}toContextPos(e){let t=this.composing;return t&&t.drifted?t.contextBase+(e-t.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}}class ov{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var t;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="
2cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:n}=e;for(let t of(this.dispatchTransactions=e.dispatchTransactions||n&&(e=>e.forEach(e=>n(e,this)))||(e=>this.update(e)),this.dispatch=this.dispatch.bind(this),this._root=e.root||function(e){for(;e;){if(e&&(9==e.nodeType||11==e.nodeType&&e.host))return e;e=e.assignedSlot||e.parentNode}return null}(e.parent)||document,this.viewState=new i3(this,e.state||t$.create(e)),e.scrollTo&&e.scrollTo.is(rp)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(rb).map(e=>new rw(e)),this.plugins))t.update(this);this.observer=new of(this),this.inputState=new iv(this),this.inputState.ensureHandlers(this.plugins),this.docView=new r5(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),(null==(t=document.fonts)?void 0:t.ready)&&document.fonts.ready.then(()=>{this.viewState.mustMeasureContent="refresh",this.requestMeasure()})}dispatch(...e){let t=1==e.length&&e[0]instanceof tL?e:1==e.length&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(0!=this.updateState)throw Error("Calls to EditorView.update are not allowed while an update is in progress");let t=!1,n=!1,r,i=this.state;for(let t of e){if(t.startState!=i)throw RangeError("Trying to update state with a transaction that doesn't start from the previous state.");i=t.state}if(this.destroyed){this.viewState.state=i;return}let o=this.hasFocus,a=0,s=null;e.some(e=>e.annotation(iL))?(this.inputState.notifiedFocused=o,a=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,(s=iN(i,o))||(a=1));let l=this.observer.delayedAndroidKey,c=null;if(l?(this.observer.clearDelayedAndroidKey(),((c=this.observer.readChange())&&!this.state.doc.eq(i.doc)||!this.state.selection.eq(i.selection))&&(c=null)):this.observer.clear(),i.facet(t$.phrases)!=this.state.facet(t$.phrases))return this.setState(i);r=rI.create(this,i,e),r.flags|=a;let u=this.viewState.scrollTarget;try{for(let t of(this.updateState=2,e)){if(u&&(u=u.map(t.changes)),t.scrollIntoView){let{main:e}=t.state.selection,{x:n,y:r}=this.state.facet(ov.cursorScrollMargin);u=new rf(e.empty?e:tl.cursor(e.head,e.head>e.anchor?-1:1),"nearest","nearest",r,n)}for(let e of t.effects)e.is(rp)&&(u=e.value.clip(this.state))}this.viewState.update(r,u),this.bidiCache=ox.update(this.bidiCache,r.changes),r.empty||(this.updatePlugins(r),this.inputState.update(r)),t=this.docView.update(r),this.state.facet(rR)!=this.styleModules&&this.mountStyles(),n=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(t,e.some(e=>e.isUserEvent("select.pointer")))}finally{this.updateState=0}if(r.startState.facet(or)!=r.state.facet(or)&&(this.viewState.mustMeasureContent=!0),(t||n||u||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),t&&this.docViewUpdate(),!r.empty)for(let e of this.state.facet(ro))try{e(r)}catch(e){rg(this.state,e,"update listener")}(s||c)&&Promise.resolve().then(()=>{s&&this.state==s.startState&&this.dispatch(s),c&&!id(this,c)&&l.force&&nK(this.contentDOM,l.key,l.keyCode)})}setState(e){if(0!=this.updateState)throw Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let t=this.hasFocus;try{for(let e of this.plugins)e.destroy(this);for(let t of(this.viewState=new i3(this,e),this.plugins=e.facet(rb).map(e=>new rw(e)),this.pluginMap.clear(),this.plugins))t.update(this);this.docView.destroy(),this.docView=new r5(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(rb),n=e.state.facet(rb);if(t!=n){let r=[];for(let i of n){let n=t.indexOf(i);if(n<0)r.push(new rw(i));else{let t=this.plugins[n];
2t.mustUpdate=e,r.push(t)}}for(let t of this.plugins)t.mustUpdate!=e&&t.destroy(this);this.plugins=r,this.pluginMap.clear()}else for(let t of this.plugins)t.mustUpdate=e;for(let e=0;e<this.plugins.length;e++)this.plugins[e].update(this);t!=n&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let e of this.plugins){let t=e.value;if(t&&t.docViewUpdate)try{t.docViewUpdate(this)}catch(e){rg(this.state,e,"doc view update listener")}}}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,n=this.viewState.scrollParent,r=this.viewState.getScrollOffset(),{scrollAnchorPos:i,scrollAnchorHeight:o,scaleY:a}=this.viewState;Math.abs(r-this.viewState.scrollOffset)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let e=0;;e++){if(o<0){if(nq(n||this.win))i=-1,o=this.viewState.heightMap.height/this.viewState.scaleY;else{let e=this.viewState.scrollAnchorAt(r);i=e.from,o=e.top}a=this.viewState.scaleY}this.updateState=1;let s=this.viewState.measure();if(!s&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(e>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let l=[];4&s||([this.measureRequests,l]=[l,this.measureRequests]);let c=l.map(e=>{try{return e.read(this)}catch(e){return rg(this.state,e),ob}}),u=rI.create(this,this.state,[]),h=!1;u.flags|=s,t?t.flags|=s:t=u,this.updateState=2,!u.empty&&(this.updatePlugins(u),this.inputState.update(u),this.updateAttrs(),(h=this.docView.update(u))&&this.docViewUpdate());for(let e=0;e<l.length;e++)if(c[e]!=ob)try{let t=l[e];t.write&&t.write(c[e],this)}catch(e){rg(this.state,e)}if(h&&this.docView.updateSelection(!0),!u.viewportChanged&&0==this.measureRequests.length){if(this.viewState.editorHeight)if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,o=-1;continue}else{let e=(i<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(i).top)/this.viewState.scaleY-o/a;if((e>1||e<-1)&&!(np.ios&&this.inputState.lastIOSMomentumScroll>Date.now()-100)&&(n==this.scrollDOM||this.hasFocus||Math.max(this.inputState.lastWheelEvent,this.inputState.lastTouchTime)>Date.now()-100)){r+=e,n?i<0?n.scrollTop=n.scrollHeight:n.scrollTop+=e:this.win.scrollBy(0,e),o=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let e of this.state.facet(ro))e(t)}get themeClasses(){return oo+" "+(this.state.facet(oi)?os:oa)+" "+this.state.facet(or)}updateAttrs(){let e=ow(this,rk,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(rv)?"true":"false",class:"cm-content",style:`${np.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),ow(this,rS,t);let n=this.observer.ignore(()=>{let n=ny(this.contentDOM,this.contentAttrs,t),r=ny(this.dom,this.editorAttrs,e);return n||r});return this.editorAttrs=e,this.contentAttrs=t,n}showAnnouncements(e){let t=!0;for(let n of e)for(let e of n.effects)e.is(ov.announce)&&(t&&(this.announceDOM.textContent=""),t=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=e.value)}mountStyles(){this.styleModules=this.state.facet(rR);let e=this.state.facet(ov.cspNonce);ne.G.mount(this.root,this.styleModules.concat(ou).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(2==this.updateState)throw Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if((this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e)&&!(this.measureRequests.indexOf(e)>-1)){if(null!=e.key){for(let t=0;t<this.measureRequests.length;t++)if(this.measureRequests[t].key===e.key){this.measureRequests[t]=e;return}}this.measureRequests.push(e)}}plugin(e){let t=this.pluginMap.get(e);return(void 0===t||t&&t.plugin!=e)&&this.pluginMap.set(e,t=this.plugins.find(t=>t.plugin==e)||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,n){return io(this,e,it(this,e,t,n))}moveByGroup(e,t){return io(this,e,it(this,e,t,t=>{var n;let r,i;return n=e.head,i=(r=this.state.charCategorizer(n))(t),e=>{let t=r(e);return i==tH.Space&&(i=t),i==t}}))}visualLineSide(e,t){let n=this.bidiSpans(e),r=this.textDirectionAt(e.from),i=n[t?n.length-1:0];return tl.cursor(i.side(t,r)+e.from,i.forward(!t,r)?1:-1)}moveToLineBoundary(e,t,n=!0){return function(e,t,n,r){let i=ie(e,t.head,t.assoc||-1),o=r&&i.type==nx.Text&&(e.lineWrapping||i.widgetLineBreaks)?e.coordsAtPos(t.assoc<0&&t.head>i.from?t.head-1:t.head):null;if(o){let t=e.dom.getBoundingClientRect(),r=e.textDirectionAt(i.from),a=e.posAtCoords({x:n==(r==nX.LTR)?t.right-1:t.left+1,y:(o.top+o.bottom)/2});if(null!=a)return tl.cursor(a,n?-1:1)}return tl.cursor(n?i.to:i.from,n?-1:1)}(this,e,t,n)}
2moveVertically(e,t,n){return io(this,e,function(e,t,n,r){let i=t.head,o=n?1:-1;if(i==(n?e.state.doc.length:0))return tl.cursor(i,t.assoc);let a=t.goalColumn,s,l=e.contentDOM.getBoundingClientRect(),c=e.coordsAtPos(i,t.assoc||((t.empty?n:t.head==t.from)?1:-1)),u=e.documentTop;if(c)null==a&&(a=c.left-l.left),s=o<0?c.top:c.bottom;else{let t=e.viewState.lineBlockAt(i);null==a&&(a=Math.min(l.right-l.left,e.defaultCharacterWidth*(i-t.from))),s=(o<0?t.top:t.bottom)+u}let h=l.left+a,d=e.viewState.heightOracle.textHeight>>1,f=null!=r?r:d;for(let t=0;;t+=d){let r=s+(f+t)*o,i=is(e,{x:h,y:r},!1,o);if(n?r>l.bottom:r<l.top)return tl.cursor(i.pos,i.assoc);let c=e.coordsAtPos(i.pos,i.assoc),u=c?(c.top+c.bottom)/2:0;if(!c||(n?u>s:u<s))return tl.cursor(i.pos,i.assoc,void 0,a)}}(this,e,t,n))}domAtPos(e,t=1){return this.docView.domAtPos(e,t)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){this.readMeasured();let n=is(this,e,t);return n&&n.pos}posAndSideAtCoords(e,t=!0){return this.readMeasured(),is(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let n=this.state.doc.lineAt(e),r=this.bidiSpans(n),i=r[n8.find(r,e-n.from,-1,t)];return this.docView.coordsAt(e,t,i.dir==nX.RTL)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(ru)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>oy)return n7(e.length);let t=this.textDirectionAt(e.from),n;for(let r of this.bidiCache)if(r.from==e.from&&r.dir==t&&(r.fresh||function e(t,n){if(t.length!=n.length)return!1;for(let r=0;r<t.length;r++){let i=t[r],o=n[r];if(i.from!=o.from||i.to!=o.to||i.direction!=o.direction||!e(i.inner,o.inner))return!1}return!0}(r.isolates,n=rP(this,e))))return r.order;n||(n=rP(this,e));let r=function(e,t,n){if(!e)return[new n8(0,0,+(t==nQ))];if(t==nJ&&!n.length&&!n6.test(e))return n7(e.length);if(n.length)for(;e.length>n9.length;)n9[n9.length]=256;let r=[],i=+(t!=nJ);return function e(t,n,r,i,o,a,s){let l=n%2?2:1;!function(e,t,n,r,i){for(let o=0;o<=r.length;o++){let a=o?r[o-1].to:t,s=o<r.length?r[o].from:n,l=o?256:i;for(let t=a,n=l,r=l;t<s;t++){let i=n3(e.charCodeAt(t));512==i?i=n:8==i&&4==r&&(i=16),n9[t]=4==i?2:i,7&i&&(r=i),n=i}for(let e=a,t=l,r=l;e<s;e++){let i=n9[e];if(128==i)e<s-1&&t==n9[e+1]&&24&t?i=n9[e]=t:n9[e]=256;else if(64==i){let i=e+1;for(;i<s&&64==n9[i];)i++;let o=e&&8==t||i<n&&8==n9[i]?1==r?1:8:256;for(let t=e;t<i;t++)n9[t]=o;e=i-1}else 8==i&&1==r&&(n9[e]=1);t=i,7&i&&(r=i)}}}(t,o,a,i,l),function(e,t,n,r,i){let o=1==i?2:1;for(let a=0,s=0,l=0;a<=r.length;a++){let c=a?r[a-1].to:t,u=a<r.length?r[a].from:n;for(let t=c,n,r,a;t<u;t++)if(r=n4[n=e.charCodeAt(t)])if(r<0){for(let e=s-3;e>=0;e-=3)if(n5[e+1]==-r){let n=n5[e+2],r=2&n?i:4&n?1&n?o:i:0;r&&(n9[t]=n9[n5[e]]=r),s=e;break}}else if(189==n5.length)break;else n5[s++]=t,n5[s++]=n,n5[s++]=l;else if(2==(a=n9[t])||1==a){let e=a==i;l=+!e;for(let t=s-3;t>=0;t-=3){let n=n5[t+2];if(2&n)break;if(e)n5[t+2]|=2;else{if(4&n)break;n5[t+2]|=4}}}}}(t,o,a,i,l),function(e,t,n,r){for(let i=0,o=r;i<=n.length;i++){let a=i?n[i-1].to:e,s=i<n.length?n[i].from:t;for(let l=a;l<s;){let a=n9[l];if(256==a){let a=l+1;for(;;)if(a==s){if(i==n.length)break;a=n[i++].to,s=i<n.length?n[i].from:t}else if(256==n9[a])a++;else break;let c=1==o,u=c==((a<t?n9[a]:r)==1)?c?1:2:r;for(let t=a,r=i,o=r?n[r-1].to:e;t>l;)t==o&&(t=n[--r].from,o=r?n[r-1].to:e),n9[--t]=u;l=a}else o=a,l++}}}(o,a,i,l),function t(n,r,i,o,a,s,l){let c=o%2?2:1;if(o%2==a%2)for(let u=r,h=0;u<i;){let r=!0,d=!1;if(h==s.length||u<s[h].from){let e=n9[u];e!=c&&(r=!1,d=16==e)}let f=r||1!=c?null:[],p=r?o:o+1,m=u;i:for(;;)if(h<s.length&&m==s[h].from){if(d)break;let t=s[h];if(!r)for(let e=t.to,n=h+1;;){if(e==i)break i;if(n<s.length&&s[n].from==e)e=s[n++].to;else if(n9[e]==c)break i;else break}h++,f?f.push(t):(t.from>u&&l.push(new n8(u,t.from,p)),e(n,t.direction==nJ!=!(p%2)?o+1:o,a,t.inner,t.from,t.to,l),u=t.to),m=t.to}else if(m==i||(r?n9[m]!=c:n9[m]==c))break;else m++;f?t(n,u,m,o+1,a,f,l):u<m&&l.push(new n8(u,m,p)),u=m}else for(let u=i,h=s.length;u>r;){let i=!0,d=!1;if(!h||u>s[h-1].to){let e=n9[u-1];e!=c&&(i=!1,d=16==e)}let f=i||1!=c?null:[],p=i?o:o+1,m=u;i:for(;;)if(h&&m==s[h-1].to){if(d)break;let t=s[--h];if(!i)for(let e=t.from,n=h;;){if(e==r)break i;if(n&&s[n-1].to==e)e=s[--n].from;else if(n9[e-1]==c)break i;else break}f?f.push(t):(t.to<u&&l.push(new n8(t.to,u,p)),e(n,t.direction==nJ!=!(p%2)?o+1:o,a,t.inner,t.from,t.to,l),u=t.from),m=t.from}else if(m==r||(i?n9[m-1]!=c:n9[m-1]==c))break;else m--;f?t(n,m,u,o+1,a,f,l):m<u&&l.push(new n8(m,u,p)),u=m}}(t,o,a,n,r,i,s)}(e,i,i,n,0,e.length,r),r}(e.text,t,n);return this.bidiCache.push(new ox(e.from,e.to,t,n,!0,r)),r}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||np.safari&&(null==(e=this.inputState)?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{n$(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((9==e.nodeType?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of(this.root.activeElement==this.contentDOM&&this.contentDOM.blur(),this.plugins))e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){var n,r,i,o;return rp.of(new rf("number"==typeof e?tl.cursor(e):e,null!=(n=t.y)?n:"nearest",null!=(r=t.x)?r:"nearest",null!=(i=t.yMargin)?i:5,null!=(o=t.xMargin)?o:5))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,n=this.viewState.scrollAnchorAt(e);return rp.of(new rf(tl.cursor(n.from),"start","start",n.top-e,t,!0))}setTabFocusMode(e){null==e?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:"boolean"==typeof e?this.inputState.tabFocusMode=e?0:-1:0!=this.inputState.tabFocusMode&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return rx.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return rx.define(()=>({}),{eventObservers:e})}static theme(e,t){let n=ne.G.newName(),r=[or.of(n),rR.of(oc(`.${n}`,e))];return t&&t.dark&&r.push(oi.of(!0)),r}static baseTheme(e){return tb.lowest(rR.of(oc("."+oo,e,ol)))}static findFromDOM(e){var t;let n=e.querySelector(".cm-content"),r=n&&r_.get(n)||r_.get(e);return(null==(t=null==r?void 0:r.root)?void 0:t.view)||null}}ov.styleModule=rR,ov.inputHandler=ra,ov.clipboardInputFilter=rl,ov.clipboardOutputFilter=rc,ov.scrollHandler=rd,ov.focusChangeEffect=rs,ov.perLineTextDirection=ru,ov.exceptionSink=ri,ov.updateListener=ro,ov.editable=rv,ov.mouseSelectionStyle=rr,ov.dragMovesSelection=rn,ov.clickAddsSelectionRange=rt,ov.decorations=rM,ov.blockWrappers=rA,ov.outerDecorations=rE,ov.atomicRanges=rC,ov.bidiIsolatedRanges=rO,ov.curs
2orScrollMargin=th.define({combine:e=>{let t=5,n=5;for(let r of e)"number"==typeof r?t=n=r:{x:t,y:n}=r;return{x:t,y:n}}}),ov.scrollMargins=rT,ov.darkTheme=oi,ov.cspNonce=th.define({combine:e=>e.length?e[0]:""}),ov.contentAttributes=rS,ov.editorAttributes=rk,ov.lineWrapping=ov.contentAttributes.of({class:"cm-lineWrapping"}),ov.announce=t_.define();let oy=4096,ob={};class ox{constructor(e,t,n,r,i,o){this.from=e,this.to=t,this.dir=n,this.isolates=r,this.fresh=i,this.order=o}static update(e,t){if(t.empty&&!e.some(e=>e.fresh))return e;let n=[],r=e.length?e[e.length-1].dir:nX.LTR;for(let i=Math.max(0,e.length-10);i<e.length;i++){let o=e[i];o.dir!=r||t.touchesRange(o.from,o.to)||n.push(new ox(t.mapPos(o.from,1),t.mapPos(o.to,-1),o.dir,o.isolates,!1,o.order))}return n}}function ow(e,t,n){for(let r=e.state.facet(t),i=r.length-1;i>=0;i--){let t=r[i],o="function"==typeof t?t(e):t;o&&nm(o,n)}return n}let ok=np.mac?"mac":np.windows?"win":np.linux?"linux":"key";function oS(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==n&&t.shiftKey&&(e="Shift-"+e),e}let oM=tb.default(ov.domEventHandlers({keydown:(e,t)=>oT(oC(t.state),e,t,"editor")})),oA=th.define({enables:oM}),oE=new WeakMap;function oC(e){let t=e.facet(oA),n=oE.get(t);return n||oE.set(t,n=function(e,t=ok){let n=Object.create(null),r=Object.create(null),i=(e,t)=>{let n=r[e];if(null==n)r[e]=t;else if(n!=t)throw Error("Key binding "+e+" is used both as a regular binding and as a multi-stroke prefix")},o=(e,r,o,a,s)=>{var l,c;let u=n[e]||(n[e]=Object.create(null)),h=r.split(/ (?!$)/).map(e=>(function(e,t){let n,r,i,o,a=e.split(/-(?!$)/),s=a[a.length-1];"Space"==s&&(s=" ");for(let e=0;e<a.length-1;++e){let s=a[e];if(/^(cmd|meta|m)$/i.test(s))o=!0;else if(/^a(lt)?$/i.test(s))n=!0;else if(/^(c|ctrl|control)$/i.test(s))r=!0;else if(/^s(hift)?$/i.test(s))i=!0;else if(/^mod$/i.test(s))"mac"==t?o=!0:r=!0;else throw Error("Unrecognized modifier name: "+s)}return n&&(s="Alt-"+s),r&&(s="Ctrl-"+s),o&&(s="Meta-"+s),i&&(s="Shift-"+s),s})(e,t));for(let t=1;t<h.length;t++){let n=h.slice(0,t).join(" ");i(n,!0),u[n]||(u[n]={preventDefault:!0,stopPropagation:!1,run:[t=>{let r=oO={view:t,prefix:n,scope:e};return setTimeout(()=>{oO==r&&(oO=null)},4e3),!0}]})}let d=h.join(" ");i(d,!1);let f=u[d]||(u[d]={preventDefault:!1,stopPropagation:!1,run:(null==(c=null==(l=u._any)?void 0:l.run)?void 0:c.slice())||[]});o&&f.run.push(o),a&&(f.preventDefault=!0),s&&(f.stopPropagation=!0)};for(let r of e){let e=r.scope?r.scope.split(" "):["editor"];if(r.any)for(let t of e){let e=n[t]||(n[t]=Object.create(null));e._any||(e._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:i}=r;for(let t in e)e[t].run.push(e=>i(e,oP))}let i=r[t]||r.key;if(i)for(let t of e)o(t,i,r.run,r.preventDefault,r.stopPropagation),r.shift&&o(t,"Shift-"+i,r.shift,r.preventDefault,r.stopPropagation)}return n}(t.reduce((e,t)=>e.concat(t),[]))),n}let oO=null,oP=null;function oT(e,t,n,r){oP=t;let i=(0,nt.xT)(t),o=e6(e3(i,0))==i.length&&" "!=i,a="",s=!1,l=!1,c=!1;oO&&oO.view==n&&oO.scope==r&&(a=oO.prefix+" ",0>iw.indexOf(t.keyCode)&&(l=!0,oO=null));let u=new Set,h=e=>{if(e){for(let t of e.run)if(!u.has(t)&&(u.add(t),t(n)))return e.stopPropagation&&(c=!0),!0;e.preventDefault&&(e.stopPropagation&&(c=!0),l=!0)}return!1},d=e[r],f,p;return d&&(h(d[a+oS(i,t,!o)])?s=!0:o&&(t.altKey||t.metaKey||t.ctrlKey)&&!(np.windows&&t.ctrlKey&&t.altKey)&&!(np.mac&&t.altKey&&!(t.ctrlKey||t.metaKey))&&(f=nt.E3[t.keyCode])&&f!=i?h(d[a+oS(f,t,!0)])?s=!0:t.shiftKey&&(p=nt.BN[t.keyCode])!=i&&p!=f&&h(d[a+oS(p,t,!1)])&&(s=!0):o&&t.shiftKey&&h(d[a+oS(i,t,!0)])&&(s=!0),!s&&h(d._any)&&(s=!0)),l&&(s=!0),s&&c&&t.stopPropagation(),oP=null,s}np.gecko&&np.gecko_version,/x/.unicode;let oD=th.define({combine(e){let t,n;for(let r of e)t=t||r.topContainer,n=n||r.bottomContainer;return{topContainer:t,bottomContainer:n}}});function oR(e,t){let n=e.plugin(oj),r=n?n.specs.indexOf(t):-1;return r>-1?n.panels[r]:null}let oj=rx.fromClass(class{constructor(e){this.input=e.state.facet(o_),this.specs=this.input.filter(e=>e),this.panels=this.specs.map(t=>t(e));let t=e.state.facet(oD);for(let n of(this.top=new oI(e,!0,t.topContainer),this.bottom=new oI(e,!1,t.bottomContainer),this.top.sync(this.panels.filter(e=>e.top)),this.bottom.sync(this.panels.filter(e=>
2!e.top)),this.panels))n.dom.classList.add("cm-panel"),n.mount&&n.mount()}update(e){let t=e.state.facet(oD);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new oI(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new oI(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=e.state.facet(o_);if(n!=this.input){let t=n.filter(e=>e),r=[],i=[],o=[],a=[];for(let n of t){let t=this.specs.indexOf(n),s;t<0?(s=n(e.view),a.push(s)):(s=this.panels[t]).update&&s.update(e),r.push(s),(s.top?i:o).push(s)}for(let e of(this.specs=t,this.panels=r,this.top.sync(i),this.bottom.sync(o),a))e.dom.classList.add("cm-panel"),e.mount&&e.mount()}else for(let t of this.panels)t.update&&t.update(e)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:e=>ov.scrollMargins.of(t=>{let n=t.plugin(e);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})});class oI{constructor(e,t,n){this.view=e,this.top=t,this.container=n,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&0>e.indexOf(t)&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(0==this.panels.length){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom";let e=this.container||this.view.dom;e.insertBefore(this.dom,this.top?e.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=oz(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=oz(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function oz(e){let t=e.nextSibling;return e.remove(),t}let o_=th.define({enables:oj}),oL=tv.define({create:()=>[],update(e,t){for(let n of t.effects)n.is(oN)?e=[n.value].concat(e):n.is(oB)&&(e=e.filter(e=>e!=n.value));return e},provide:e=>o_.computeN([e],t=>t.field(e))}),oN=t_.define(),oB=t_.define();class oF extends tK{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}oF.prototype.elementClass="",oF.prototype.toDOM=void 0,oF.prototype.mapMode=e9.TrackBefore,oF.prototype.startSide=oF.prototype.endSide=-1,oF.prototype.point=!0;let oV="function"==typeof String.prototype.normalize?e=>e.normalize("NFKD"):e=>e;class oH{constructor(e,t,n=0,r=e.length,i,o){this.test=o,this.value={from:0,to:0,precise:!1},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,r),this.bufferStart=n,this.normalize=i?e=>i(oV(e)):oV,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return -1;this.bufferPos=0,this.buffer=this.iter.value}return e3(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){var e;let t=this.peek();if(t<0)return this.done=!0,this;let n=(e=t)<=65535?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,(1023&e)+56320),r=this.bufferStart+this.bufferPos;this.bufferPos+=e6(t);let i=this.normalize(n);if(i.length)for(let e=0,t=r,o=!0;;e++){let r=i.charCodeAt(e),a=this.match(r,t,o,this.bufferPos+this.bufferStart,e==i.length-1);if(a)return this.value=a,this;if(e==i.length-1)break;o&&e<n.length&&n.charCodeAt(e)==r?t++:o=!1}}}match(e,t,n,r,i){let o=null;for(let t=0;t<this.matches.length;){let n=this.matches[t],a=!1;this.query.charCodeAt(n.index)==e&&(n.index==this.query.length-1?o={from:n.from,to:r,precise:i&&n.precise}:(n.index++,a=!0)),a?t++:this.matches.splice(t,1)}
2return this.query.charCodeAt(0)==e&&(1==this.query.length?o={from:t,to:r,precise:n&&i}:this.matches.push({from:t,index:1,precise:n})),o&&this.test&&!this.test(o.from,o.to,this.buffer,this.bufferStart)&&(o=null),o}}"u">typeof Symbol&&(oH.prototype[Symbol.iterator]=function(){return this});let oW={from:-1,to:-1,match:/.*/.exec(""),precise:!0},o$="gm"+(null==/x/.unicode?"":"u");class oU{constructor(e,t,n,r=0,i=e.length){if(this.text=e,this.to=i,this.curLine="",this.done=!1,this.value=oW,/\\[sWDnr]|\n|\r|\[\^/.test(t))return new oG(e,t,n,r,i);this.re=new RegExp(t,o$+((null==n?void 0:n.ignoreCase)?"i":"")),this.test=null==n?void 0:n.test,this.iter=e.iter();let o=e.lineAt(r);this.curLineStart=o.from,this.matchPos=oZ(e,r),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,r=n+t[0].length;if(this.matchPos=oZ(this.text,r+ +(n==r)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(n<r||n>this.value.to)&&(!this.test||this.test(n,r,t)))return this.value={from:n,to:r,precise:!0,match:t},this;e=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length<this.to))return this.done=!0,this;this.nextLine(),e=0}}}}let oK=new WeakMap;class oq{constructor(e,t){this.from=e,this.text=t}get to(){return this.from+this.text.length}static get(e,t,n){let r=oK.get(e);if(!r||r.from>=n||r.to<=t){let r=new oq(t,e.sliceString(t,n));return oK.set(e,r),r}if(r.from==t&&r.to==n)return r;let{text:i,from:o}=r;return o>t&&(i=e.sliceString(t,o)+i,o=t),r.to<n&&(i+=e.sliceString(r.to,n)),oK.set(e,new oq(o,i)),new oq(t,i.slice(t-o,n-o))}}class oG{constructor(e,t,n,r,i){this.text=e,this.to=i,this.done=!1,this.value=oW,this.matchPos=oZ(e,r),this.re=new RegExp(t,o$+((null==n?void 0:n.ignoreCase)?"i":"")),this.test=null==n?void 0:n.test,this.flat=oq.get(e,r,this.chunkEnd(r+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let e=this.flat.from+t.index,n=e+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(e,n,t)))return this.value={from:e,to:n,precise:!0,match:t},this.matchPos=oZ(this.text,n+ +(e==n)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=oq.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function oZ(e,t){if(t>=e.length)return t;let n=e.lineAt(t),r;for(;t<n.to&&(r=n.text.charCodeAt(t-n.from))>=56320&&r<57344;)t++;return t}"u">typeof Symbol&&(oU.prototype[Symbol.iterator]=oG.prototype[Symbol.iterator]=function(){return this});let oY={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},oX=th.define({combine:e=>tU(e,oY,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})}),oJ=nw.mark({class:"cm-selectionMatch"}),oQ=nw.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function o0(e,t,n,r){return(0==n||e(t.sliceDoc(n-1,n))!=tH.Word)&&(r==t.doc.length||e(t.sliceDoc(r,r+1))!=tH.Word)}let o1=rx.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(oX),{state:n}=e,r=n.selection;if(r.ranges.length>1)return nw.none;let i=r.main,o,a=null;if(i.empty){if(!t.highlightWordAroundCursor)return nw.none;let e=n.wordAt(i.head);if(!e)return nw.none;a=n.charCategorizer(i.head),o=n.sliceDoc(e.from,e.to)}else{let e=i.to-i.from;if(e<t.minSelectionLength||e>200)return nw.none;if(t.wholeWords){var s,l,c;if(o=n.sliceDoc(i.from,i.to),!(o0(a=n.charCategorizer(i.head),n,i.from,i.to)&&(s=a,l=i.from,c=i.to,s(n.sliceDoc(l,l+1))==tH.Word&&s(n.sliceDoc(c-1,c))==tH.Word)))return nw.none}
vendor: 9,204 bytes, line 2
2else if(!(o=n.sliceDoc(i.from,i.to)))return nw.none}let u=[];for(let r of e.visibleRanges){let e=new oH(n.doc,o,r.from,r.to);for(;!e.next().done;){let{from:r,to:o}=e.value;if((!a||o0(a,n,r,o))&&(i.empty&&r<=i.from&&o>=i.to?u.push(oQ.range(r,o)):(r>=i.to||o<=i.from)&&u.push(oJ.range(r,o)),u.length>t.maxMatches))return nw.none}}return nw.set(u)}},{decorations:e=>e.decorations}),o2=ov.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),o4=th.define({combine:e=>tU(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new ak(e),scrollToMatch:e=>ov.scrollIntoView(e)})});class o5{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,o$),!0}catch(e){return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord,this.test=e.test}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(e,t)=>"n"==t?"\n":"r"==t?"\r":"t"==t?"	":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord&&this.test==e.test}create(){return this.regexp?new at(this):new o8(this)}getCursor(e,t=0,n){let r=e.doc?e:t$.create({doc:e});return null==n&&(n=r.doc.length),this.regexp?o9(this,r,t,n):o6(this,r,t,n)}}class o3{constructor(e){this.spec=e}}function o6(e,t,n,r){var i,o,a,s;let l;return e.wholeWord&&(a=t.doc,s=t.charCategorizer(t.selection.main.head),l=(e,t,n,r)=>((r>e||r+n.length<t)&&(r=Math.max(0,e-2),n=a.sliceString(r,Math.min(a.length,t+2))),(s(o7(n,e-r))!=tH.Word||s(ae(n,e-r))!=tH.Word)&&(s(ae(n,t-r))!=tH.Word||s(o7(n,t-r))!=tH.Word))),e.test&&(i=e.test,o=l,l=(e,n,r,a)=>(!o||!!o(e,n,r,a))&&i(e>=a&&n<=a+r.length?r.slice(e-a,n-a):t.doc.sliceString(e,n),t,e,n)),new oH(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:e=>e.toLowerCase(),l)}class o8 extends o3{constructor(e){super(e)}nextMatch(e,t,n){let r=o6(this.spec,e,n,e.doc.length).nextOverlapping();if(r.done){let n=Math.min(e.doc.length,t+this.spec.unquoted.length);r=o6(this.spec,e,0,n).nextOverlapping()}return r.done||r.value.from==t&&r.value.to==n?null:r.value}prevMatchInRange(e,t,n){for(let r=n;;){let n=Math.max(t,r-1e4-this.spec.unquoted.length),i=o6(this.spec,e,n,r),o=null;for(;!i.nextOverlapping().done;)o=i.value;if(o)return o;if(n==t)return null;r-=1e4}}prevMatch(e,t,n){let r=this.prevMatchInRange(e,0,t);return r||(r=this.prevMatchInRange(e,Math.max(0,n-this.spec.unquoted.length),e.doc.length)),r&&(r.from!=t||r.to!=n)?r:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let n=o6(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=o6(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}}function o9(e,t,n,r){var i,o,a;let s;return e.wholeWord&&(a=t.charCategorizer(t.selection.main.head),s=(e,t,n)=>!n[0].length||(a(o7(n.input,n.index))!=tH.Word||a(ae(n.input,n.index))!=tH.Word)&&(a(ae(n.input,n.index+n[0].length))!=tH.Word||a(o7(n.input,n.index+n[0].length))!=tH.Word)),e.test&&(i=e.test,o=s,s=(e,n,r)=>(!o||o(e,n,r))&&i(r[0],t,e,n)),new oU(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:s},n,r)}function o7(e,t){return e.slice(e5(e,t,!1),t)}function ae(e,t){return e.slice(t,e5(e,t))}class at extends o3{nextMatch(e,t,n){let r=o9(this.spec,e,n,e.doc.length).next();return r.done&&(r=o9(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,n){for(let r=1;;r++){let i=Math.max(t,n-1e4*r),o=o9(this.spec,e,i,n),a=null;for(;!o.next().done;)a=o.value;if(a&&(i==t||a.from>i+10))return a;if(i==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,n)=>{if("&"==n)return e.match[0];if("$"==n)return"$";for(let t=n.length;t>0;t--){let r=+n.slice(0,t);if(r>0&&r<e.match.length)return e.match[r]+n.slice(t)}return t})}matchAll(e,t){let n=o9(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=o9(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}}let an=t_.define(),ar=t_.define(),ai=tv.define({create:e=>new ao(ag(e).create(),null),update(e,t){for(let n of t.effects)n.is(an)?e=new ao(n.value.create(),e.panel):n.is(ar)&&(e=new ao(e.query,n.value?am:null));return e},provide:e=>o_.from(e,e=>e.panel)});class ao{constructor(e,t){this.query=e,this.panel=t}}let aa=nw.mark({class:"cm-searchMatch"}),as=nw.mark({class:"cm-searchMatch cm-searchMatch-selected"}),al=rx.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(ai))}update(e){let t=e.state.field(ai);(t!=e.startState.field(ai)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return nw.none;let{view:n}=this,r=new tQ;for(let t=0,i=n.visibleRanges,o=i.length;t<o;t++){let{from:a,to:s}=i[t];for(;t<o-1&&s>i[t+1].from-500;)s=i[++t].to;e.highlight(n.state,a,s,(e,t)=>{let i=n.state.selection.ranges.some(n=>n.from==e&&n.to==t);r.add(e,t,i?as:aa)})}return r.finish()}},{decorations:e=>e.decorations});function ac(e){return t=>{let n=t.state.field(ai,!1);return n&&n.query.spec.valid?e(t,n):ab(t)}}let au=ac((e,{query:t})=>{let{to:n}=e.state.selection.main,r=t.nextMatch(e.state,n,n);if(!r)return!1;let i=tl.single(r.from,r.to),o=e.state.facet(o4);return e.dispatch({selection:i,effects:[aA(e,r),o.scrollToMatch(i.main,e)],userEvent:"select.search"}),ay(e),!0}),ah=ac((e,{query:t})=>{let{state:n}=e,{from:r}=n.selection.main,i=t.prevMatch(n,r,r);if(!i)return!1;let o=tl.single(i.from,i.to),a=e.state.facet(o4);return e.dispatch({selection:o,effects:[aA(e,i),a.scrollToMatch(o.main,e)],userEvent:"select.search"}),ay(e),!0}),ad=ac((e,{query:t})=>{let n=t.matchAll(e.state,1e3);return!!n&&!!n.length&&(e.dispatch({selection:tl.create(n.map(e=>tl.range(e.from,e.to))),userEvent:"select.search.matches"}),!0)}),af=ac((e,{query:t})=>{let{state:n}=e,{from:r,to:i}=n.selection.main;if(n.readOnly)return!1;let o=t.nextMatch(n,r,r);if(!o)return!1;let a=o,s=[],l,c,u=[];a.precise?a.from==r&&a.to==i&&(c=n.toText(t.getReplacement(a)),s.push({from:a.from,to:a.to,insert:c}),a=t.nextMatch(n,a.from,a.to),u.push(ov.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(r).number)+"."))):a=t.nextMatch(n,a.from,a.to);let h=e.state.changes(s);return a&&(l=tl.single(a.from,a.to).map(h),u.push(aA(e,a)),u.push(n.facet(o4).scrollToMatch(l.main,e))),e.dispatch({changes:h,selection:l,effects:u,userEvent:"input.replace"}),!0}),ap=ac((e,{query:t})=>{if(e.state.readOnly)return!1;let n=[];for(let r of t.matchAll(e.state,1e9)){let{from:e,to:i,precise:o}=r;o&&n.push({from:e,to:i,insert:t.getReplacement(r)})}if(!n.length)return!1;let r=e.state.phrase("replaced $ matches",n.length)+".";return e.dispatch({changes:n,effects:ov.announce.of(r),userEvent:"input.replace.all"}),!0});function am(e){return e.state.facet(o4).createPanel(e)}function ag(e,t){var n,r,i,o,a;let s=e.selection.main,l=s.empty||s.to>s.from+100?"":e.sliceDoc(s.from,s.to);if(t&&!l)return t;let c=e.facet(o4);return new o5({search:(null!=(n=null==t?void 0:t.literal)?n:c.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:null!=(r=null==t?void 0:t.caseSensitive)?r:c.caseSensitive,literal:null!=(i=null==t?void 0:t.literal)?i:c.literal,regexp:null!=(o=null==t?void 0:t.regexp)?o:c.regexp,wholeWord:null!=(a=null==t?void 0:t.wholeWord)?a:c.wholeWord})}function av(e){let t=oR(e,am);return t&&t.dom.querySelector("[main-field]")}function ay(e){let t=av(e);t&&t==e.root.activeElement&&t.select()}let ab=e=>{let t=e.state.field(ai,!1);if(t&&t.panel){let n=av(e);if(n&&n!=e.root.activeElement){let r=ag(e.state,t.query.spec);r.valid&&e.dispatch({effects:an.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[ar.of(!0),t?an.of(ag(e.state,t.query.spec)):t_.appendConfig.of(aC)]});return!0},ax=e=>{let t=e.state.field(ai,!1);if(!t||!t.panel)return!1;let n=oR(e,am);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:ar.of(!1)}),!0},aw=[{key:"Mod-f",run:ab,scope:"editor search-panel"},{key:"F3",run:au,shift:ah,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:au,shift:ah,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:ax,scope:"editor search-panel"},{key:"Mod-Shift-l",run:({state:e,dispatch:t})=>{let n=e.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:r,to:i}=n.main,o=[],a=0;for(let t=new oH(e.doc,e.sliceDoc(r,i));!t.next().done;){if(o.length>1e3)return!1;t.value.from==r&&(a=o.length),o.push(tl.range(t.value.from,t.value.to))}return t(e.update({selection:tl.create(o,a),userEvent:"select.search.matches"})),!0}},{key:"Mod-Alt-g",run:e=>{var t;let n,r,i,o,{state:a}=e,s=String(a.doc.lineAt(e.state.selection.main.head).number),{close
2:l,result:c}=(t={label:a.phrase("Go to line"),input:{type:"text",name:"line",value:s},focus:!0,submitLabel:a.phrase("go")},r=new Promise(e=>n=e),i=e=>(function(e,t,n){let r=t.content?t.content(e,()=>a(null)):null;if(!r){if(r=(0,nn.A)("form"),t.input){let e=(0,nn.A)("input",t.input);/^(text|password|number|email|tel|url)$/.test(e.type)&&e.classList.add("cm-textfield"),e.name||(e.name="input"),r.appendChild((0,nn.A)("label",(t.label||"")+": ",e))}else r.appendChild(document.createTextNode(t.label||""));r.appendChild(document.createTextNode(" ")),r.appendChild((0,nn.A)("button",{class:"cm-button",type:"submit"},t.submitLabel||"OK"))}let i="FORM"==r.nodeName?[r]:r.querySelectorAll("form");for(let e=0;e<i.length;e++){let t=i[e];t.addEventListener("keydown",e=>{27==e.keyCode?(e.preventDefault(),a(null)):13==e.keyCode&&(e.preventDefault(),a(t))}),t.addEventListener("submit",e=>{e.preventDefault(),a(t)})}let o=(0,nn.A)("div",r,(0,nn.A)("button",{onclick:()=>a(null),"aria-label":e.state.phrase("close"),class:"cm-dialog-close",type:"button"},["\xd7"]));function a(t){o.contains(o.ownerDocument.activeElement)&&e.focus(),n(t)}return t.class&&(o.className=t.class),o.classList.add("cm-dialog"),{dom:o,top:t.top,mount:()=>{if(t.focus){let e;(e="string"==typeof t.focus?r.querySelector(t.focus):r.querySelector("input")||r.querySelector("button"))&&"select"in e?e.select():e&&"focus"in e&&e.focus()}}}})(e,t,n),e.state.field(oL,!1)?e.dispatch({effects:oN.of(i)}):e.dispatch({effects:t_.appendConfig.of(oL.init(()=>[i]))}),{close:o=oB.of(i),result:r.then(t=>((e.win.queueMicrotask||(t=>e.win.setTimeout(t,10)))(()=>{e.state.field(oL).indexOf(i)>-1&&e.dispatch({effects:o})}),t))});return c.then(t=>{let n=t&&/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.elements.line.value);if(!n)return void e.dispatch({effects:l});let r=a.doc.lineAt(a.selection.main.head),[,i,o,s,c]=n,u=s?+s.slice(1):0,h=o?+o:r.number;if(o&&c){let e=h/100;i&&(e=e*("-"==i?-1:1)+r.number/a.doc.lines),h=Math.round(a.doc.lines*e)}else o&&i&&(h=h*("-"==i?-1:1)+r.number);let d=a.doc.line(Math.max(1,Math.min(a.doc.lines,h))),f=tl.cursor(d.from+Math.max(0,Math.min(u,d.length)));e.dispatch({effects:[l,ov.scrollIntoView(f.from,{y:"center"})],selection:f})}),!0}},{key:"Mod-d",run:({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some(e=>e.from===e.to))return(({state:e,dispatch:t})=>{let{selection:n}=e,r=tl.create(n.ranges.map(t=>e.wordAt(t.head)||tl.cursor(t.head)),n.mainIndex);return!r.eq(n)&&(t(e.update({selection:r})),!0)})({state:e,dispatch:t});let r=e.sliceDoc(n[0].from,n[0].to);if(e.selection.ranges.some(t=>e.sliceDoc(t.from,t.to)!=r))return!1;let i=function(e,t){let{main:n,ranges:r}=e.selection,i=e.wordAt(n.head),o=i&&i.from==n.from&&i.to==n.to;for(let n=!1,i=new oH(e.doc,t,r[r.length-1].to);;)if(i.next(),i.done){if(n)return null;i=new oH(e.doc,t,0,Math.max(0,r[r.length-1].from-1)),n=!0}else{if(n&&r.some(e=>e.from==i.value.from))continue;if(o){let t=e.wordAt(i.value.from);if(!t||t.from!=i.value.from||t.to!=i.value.to)continue}return i.value}}(e,r);return!!i&&(t(e.update({selection:e.selection.addRange(tl.range(i.from,i.to),!1),effects:ov.scrollIntoView(i.to)})),!0)},preventDefault:!0}];class ak{constructor(e){this.view=e;let t=this.query=e.state.field(ai).query.spec;function n(e,t,n){return(0,nn.A)("button",{class:"cm-button",name:e,onclick:t,type:"button"},n)}this.commit=this.commit.bind(this),this.searchField=(0,nn.A)("input",{value:t.search,placeholder:aS(e,"Find"),"aria-label":aS(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=(0,nn.A)("input",{value:t.replace,placeholder:aS(e,"Replace"),"aria-label":aS(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=(0,nn.A)("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=(0,nn.A)("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=(0,nn.A)("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit}),this.dom=(0,nn.A)("div",{onkeydown:e=>this.keydown(e),class:"cm-search"},[this.searchField,n("next",()=>au(e),[aS(e,"next")]),n("prev",()=>ah(e),[aS(e,"previous")]),n("select",()=>
2ad(e),[aS(e,"all")]),(0,nn.A)("label",null,[this.caseField,aS(e,"match case")]),(0,nn.A)("label",null,[this.reField,aS(e,"regexp")]),(0,nn.A)("label",null,[this.wordField,aS(e,"by word")]),...e.state.readOnly?[]:[(0,nn.A)("br"),this.replaceField,n("replace",()=>af(e),[aS(e,"replace")]),n("replaceAll",()=>ap(e),[aS(e,"replace all")])],(0,nn.A)("button",{name:"close",onclick:()=>ax(e),"aria-label":aS(e,"close"),type:"button"},["\xd7"])])}commit(){let e=new o5({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:an.of(e)}))}keydown(e){var t;(t=this.view,oT(oC(t.state),e,t,"search-panel"))?e.preventDefault():13==e.keyCode&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?ah:au)(this.view)):13==e.keyCode&&e.target==this.replaceField&&(e.preventDefault(),af(this.view))}update(e){for(let t of e.transactions)for(let e of t.effects)e.is(an)&&!e.value.eq(this.query)&&this.setQuery(e.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(o4).top}}function aS(e,t){return e.state.phrase(t)}let aM=/[\s\.,:;?!]/;function aA(e,{from:t,to:n}){let r=e.state.doc.lineAt(t),i=e.state.doc.lineAt(n).to,o=Math.max(r.from,t-30),a=Math.min(i,n+30),s=e.state.sliceDoc(o,a);if(o!=r.from){for(let e=0;e<30;e++)if(!aM.test(s[e+1])&&aM.test(s[e])){s=s.slice(e);break}}if(a!=i){for(let e=s.length-1;e>s.length-30;e--)if(!aM.test(s[e-1])&&aM.test(s[e])){s=s.slice(0,e);break}}return ov.announce.of(`${e.state.phrase("current match")}. ${s} ${e.state.phrase("on line")} ${r.number}.`)}let aE=ov.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),aC=[ai,tb.low(al),aE];var aO=n(15115),aP=n(80704),aT=function(e){void 0===e&&(e={});var t=e.crosshairCursor,n=[];!1!==e.closeBracketsKeymap&&(n=n.concat(aO.Bc)),!1!==e.defaultKeymap&&(n=n.concat(eN)),!1!==e.searchKeymap&&(n=n.concat(aw)),!1!==e.historyKeymap&&(n=n.concat(F)),!1!==e.foldKeymap&&(n=n.concat(p.f7)),!1!==e.completionKeymap&&(n=n.concat(aO.OO)),!1!==e.lintKeymap&&(n=n.concat(aP.$w));var r=[];return!1!==e.lineNumbers&&r.push((0,f.$K)()),!1!==e.highlightActiveLineGutter&&r.push((0,f.Wu)()),!1!==e.highlightSpecialChars&&r.push((0,f.N$)()),!1!==e.history&&r.push(function(e={}){return[E,A.of(e),f.Lz.domEventHandlers({beforeinput(e,t){let n="historyUndo"==e.inputType?O:"historyRedo"==e.inputType?P:null;return!!n&&(e.preventDefault(),n(t))}})]}()),!1!==e.foldGutter&&r.push((0,p.Lv)()),!1!==e.drawSelection&&r.push((0,f.VH)()),!1!==e.dropCursor&&r.push((0,f.A)()),!1!==e.allowMultipleSelections&&r.push(d.$t.allowMultipleSelections.of(!0)),!1!==e.indentOnInput&&r.push((0,p.WD)()),!1!==e.syntaxHighlighting&&r.push((0,p.y9)(p.Zt,{fallback:!0})),!1!==e.bracketMatching&&r.push((0,p.SG)()),!1!==e.closeBrackets&&r.push((0,aO.wm)()),!1!==e.autocompletion&&r.push((0,aO.yU)()),!1!==e.rectangularSelection&&r.push((0,f.D4)()),!1!==(void 0!==t&&t)&&r.push((0,f.HJ)()),!1!==e.highlightActiveLine&&r.push((0,f.dz)()),!1!==e.highlightSelectionMatches&&r.push([o2,o1]),e.tabSize&&"number"==typeof e.tabSize&&r.push(p.Xt.of(" ".repeat(e.tabSize))),r.concat([f.w4.of(n.flat())]).filter(Boolean)},aD=n(5644);let aR="#e06c75",aj="#abb2bf",aI="#7d8799",az="#d19a66",a_="#2c313a",aL="#282c34",aN="#353a42",aB="#528bff",aF=ov.theme({"&":{color:aj,backgroundColor:aL},".cm-content":{caretColor:aB},".cm-cursor, .cm-dropCursor":{borderLeftColor:aB},"&.cm-focused > .cm-scroller >
2 .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:"#3E4451"},".cm-panels":{backgroundColor:"#21252b",color:aj},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:aL,color:aI,border:"none"},".cm-activeLineGutter":{backgroundColor:a_},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:aN},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:aN,borderBottomColor:aN},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:a_,color:aj}}},{dark:!0}),aV=p.cr.define([{tag:aD._A.keyword,color:"#c678dd"},{tag:[aD._A.name,aD._A.deleted,aD._A.character,aD._A.propertyName,aD._A.macroName],color:aR},{tag:[aD._A.function(aD._A.variableName),aD._A.labelName],color:"#61afef"},{tag:[aD._A.color,aD._A.constant(aD._A.name),aD._A.standard(aD._A.name)],color:az},{tag:[aD._A.definition(aD._A.name),aD._A.separator],color:aj},{tag:[aD._A.typeName,aD._A.className,aD._A.number,aD._A.changed,aD._A.annotation,aD._A.modifier,aD._A.self,aD._A.namespace],color:"#e5c07b"},{tag:[aD._A.operator,aD._A.operatorKeyword,aD._A.url,aD._A.escape,aD._A.regexp,aD._A.link,aD._A.special(aD._A.string)],color:"#56b6c2"},{tag:[aD._A.meta,aD._A.comment],color:aI},{tag:aD._A.strong,fontWeight:"bold"},{tag:aD._A.emphasis,fontStyle:"italic"},{tag:aD._A.strikethrough,textDecoration:"line-through"},{tag:aD._A.link,color:aI,textDecoration:"underline"},{tag:aD._A.heading,fontWeight:"bold",color:aR},{tag:[aD._A.atom,aD._A.bool,aD._A.special(aD._A.variableName)],color:az},{tag:[aD._A.processingInstruction,aD._A.string,aD._A.inserted],color:"#98c379"},{tag:aD._A.invalid,color:"#ffffff"}]),aH=[aF,(0,p.y9)(aV)];var aW=f.Lz.theme({"&":{backgroundColor:"#fff"}},{dark:!1}),a$=function(e){void 0===e&&(e={});var t=e,n=t.indentWithTab,r=t.editable,i=t.readOnly,o=t.theme,a=void 0===o?"light":o,s=t.placeholder,l=void 0===s?"":s,c=t.basicSetup,u=void 0===c||c,h=[];switch((void 0===n||n)&&h.unshift(f.w4.of([eB])),u&&("boolean"==typeof u?h.unshift(aT()):h.unshift(aT(u))),l&&h.unshift((0,f.qf)(l)),a){case"light":h.push(aW);break;case"dark":h.push(aH);break;case"none":break;default:h.push(a)}return!1===(void 0===r||r)&&h.push(f.Lz.editable.of(!1)),void 0!==i&&i&&h.push(d.$t.readOnly.of(!0)),[...h]};class aU{constructor(e,t){this.timeLeftMS=void 0,this.timeoutMS=void 0,this.isCancelled=!1,this.isTimeExhausted=!1,this.callbacks=[],this.timeLeftMS=t,this.timeoutMS=t,this.callbacks.push(e)}tick(){if(!this.isCancelled&&!this.isTimeExhausted&&(this.timeLeftMS--,this.timeLeftMS<=0)){this.isTimeExhausted=!0;var e=this.callbacks.slice();this.callbacks.length=0,e.forEach(e=>{try{e()}catch(e){console.error("TimeoutLatch callback error:",e)}})}}cancel(){this.isCancelled=!0,this.callbacks.length=0}reset(){this.timeLeftMS=this.timeoutMS,this.isCancelled=!1,this.isTimeExhausted=!1}get isDone(){return this.isCancelled||this.isTimeExhausted}}class aK{constructor(){this.interval=null,this.latches=new Set}add(e){this.latches.add(e),this.start()}remove(e){this.latches.delete(e),0===this.latches.size&&this.stop()}start(){null===this.interval&&(this.interval=setInterval(()=>{this.latches.forEach(e=>{e.tick(),e.isDone&&this.remove(e)})},1))}stop(){null!==this.interval&&(clearInterval(this.interval),this.interval=null)}}var aq=null,aG=f.Lz.theme({"& .cm-scroller":{height:"100% !important"}}),aZ=null,aY=null,aX=d.YH.define(),aJ=[],aQ=n(49793),a0=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoF
2ocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],a1=(0,h.forwardRef)((e,t)=>{var n,r,i,a,s,l,c,u,p,m,g,v,y,b,x,w,k,S,M,A,E,C,O,P,T,D,R,j,I,z,_,L,N,B,F,V,H,W,$,U,K,q,G,Z,Y,X,J,Q,ee,et=e.className,en=e.value,er=void 0===en?"":en,ei=e.selection,eo=e.extensions,ea=e.onChange,es=e.onStatistics,el=e.onCreateEditor,ec=e.onUpdate,eu=e.autoFocus,eh=e.theme,ed=void 0===eh?"light":eh,ef=e.height,ep=e.minHeight,em=e.maxHeight,eg=e.width,ev=e.minWidth,ey=e.maxWidth,eb=e.basicSetup,ex=e.placeholder,ew=e.indentWithTab,ek=e.editable,eS=e.readOnly,eM=e.root,eA=e.initialState,eE=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,a0),eC=(0,h.useRef)(null),eO=(r=(n={root:eM,value:er,autoFocus:eu,theme:ed,height:ef,minHeight:ep,maxHeight:em,width:eg,minWidth:ev,maxWidth:ey,basicSetup:eb,placeholder:ex,indentWithTab:ew,editable:ek,readOnly:eS,selection:ei,onChange:ea,onStatistics:es,onCreateEditor:el,onUpdate:ec,extensions:void 0===eo?[]:eo,initialState:eA}).value,i=n.selection,a=n.onChange,s=n.onStatistics,l=n.onCreateEditor,c=n.onUpdate,p=void 0===(u=n.extensions)?aJ:u,m=n.autoFocus,v=void 0===(g=n.theme)?"light":g,b=void 0===(y=n.height)?null:y,w=void 0===(x=n.minHeight)?null:x,S=void 0===(k=n.maxHeight)?null:k,A=void 0===(M=n.width)?null:M,C=void 0===(E=n.minWidth)?null:E,P=void 0===(O=n.maxWidth)?null:O,D=void 0===(T=n.placeholder)?"":T,j=void 0===(R=n.editable)||R,z=void 0!==(I=n.readOnly)&&I,L=void 0===(_=n.indentWithTab)||_,B=void 0===(N=n.basicSetup)||N,F=n.root,V=n.initialState,W=(H=(0,h.useState)())[0],$=H[1],K=(U=(0,h.useState)())[0],q=U[1],Z=(G=(0,h.useState)())[0],Y=G[1],X=(0,h.useState)(()=>({current:null}))[0],J=(0,h.useState)(()=>({current:null}))[0],Q=function(e,t,n,r,i,o){if(!e&&!t&&!n&&!r&&!i&&!o)return null;var a=JSON.stringify({height:e,minHeight:t,maxHeight:n,width:r,minWidth:i,maxWidth:o});return a===aZ?aY:(aZ=a,aY=f.Lz.theme({"&":{height:e,minHeight:t,maxHeight:n,width:r,minWidth:i,maxWidth:o}}))}(b,w,S,A,C,P),ee=[f.Lz.updateListener.of(e=>{e.docChanged&&"function"==typeof a&&!e.transactions.some(e=>e.annotation(aX))&&(X.current?X.current.reset():(X.current=new aU(()=>{if(J.current){var e=J.current;J.current=null,e()}X.current=null},200),("u"<typeof window?new aK:(!aq&&(aq=new aK),aq)).add(X.current)),a(e.state.doc.toString(),e)),s&&s({line:e.state.doc.lineAt(e.state.selection.main.from),lineCount:e.state.doc.lines,lineBreak:e.state.lineBreak,length:e.state.doc.length,readOnly:e.state.readOnly,tabSize:e.state.tabSize,selection:e.state.selection,selectionAsSingle:e.state.selection.asSingle().main,ranges:e.state.selection.ranges,selectionCode:e.state.sliceDoc(e.state.selection.main.from,e.state.selection.main.to),selections:e.state.selection.ranges.map(t=>e.state.sliceDoc(t.from,t.to)),selectedText:e.state.selection.ranges.some(e=>!e.empty)})}),...Q?[Q]:[],aG,...a$({theme:v,editable:j,readOnly:z,placeholder:D,indentWithTab:L,basicSetup:B})],c&&"function"==typeof c&&ee.push(f.Lz.updateListener.of(c)),ee=ee.concat(p),(0,h.useLayoutEffect)(()=>{if(W&&!Z){var e={doc:r,selection:i,extensions:ee},t=V?d.$t.fromJSON(V.json,e,V.fields):d.$t.create(e);if(Y(t),!K){var n=new f.Lz({state:t,parent:W,root:F});q(n),l&&l(n,t)}}return()=>{K&&(Y(void 0),q(void 0))}},[W,Z]),(0,h.useEffect)(()=>{n.container&&$(n.container)},[n.container]),(0,h.useEffect)(()=>()=>{K&&(K.destroy(),q(void 0)),X.current&&(X.current.cancel(),X.current=null)},[K]),(0,h.useEffect)(()=>{m&&K&&K.focus()},[m,K]),(0,h.useEffect)(()=>{K&&K.dispatch({effects:d.Pe.reconfigure.of(ee)})},[v,p,b,w,S,A,C,P,D,j,z,L,B,a,c]),(0,h.useEffect)(()=>{if(void 0!==r){var e=K?K.state.doc.toString():"";if(K&&r!==e){var t=X.current&&!X.current.isDone,n=()=>{K&&r!==K.state.doc.toString()&&K.dispatch({changes:{from:0,to:K.state.doc.toString().length,insert:r||""},annotations:[aX.of(!0)]})};t?J.current=n:n()}}},[r,K]),{state:Z,setState:Y,view:K,setView:q,container:W,setContainer:$}),eP=eO.state,eT=eO.view,eD=eO.container,eR=eO.setContainer;(0,h.useImperativeHandle)(t,()=>({editor:eC.current,state:eP,view:eT}),[eC,eD,eP,eT]);var ej=(0,h.useCallback)(e=>{eC.current=e,eR(e)},[eR]);if("string"!=typeof er)throw Error("value must be typeof string but got "+typeof er);return(0,aQ.jsx)("div",o({ref:ej,className:("string"==typeof ed?"cm-theme-"+ed:"cm-theme")+(et?" "+et:"")},eE))});a1.displayName="CodeMirror";let a2=a1},69459(e,t,n){"use strict";var r,i;n.d(t,{OI:()=>eN});class o{constructor(){this.existMap=new Map,this._values=[]}append(e){return this.existMap.has(e)||(this.existMap.set(e,!0),this._values.push(e)),this}exists(e){return this.existMap.has(e)}get values(){return this._values}}let a="3g2|3gp|avi|flv|mkv|mk3d|mov|mp2|mp4|m4v|mpe|mpeg|mpg|mpv|webm|wmv|ogm|divx|ts|m2ts|iso|vob|sub|idx|ttxt|txt|smi|srt|ssa|ass|vtt|nfo|html",s="\\u3040-\\u309F\\u30A0-\\u30FF\\u4E00-\\u9FFF\\u0400-\\u04FF",l=RegExp(`(\\([^)]*[${s}][^)]*\\))$|(?:\\/.*?)(\\(.*\\))$`,"u"),c=RegExp(`[^/|(]*[${s}][^/|]*[/|]|[/|][^/|(]*[${s}][^/|]*`,"gu"),u=RegExp(`(?:[a-zA-Z][^${s}]+)([${s}].*[${s}])|([${s}].*[${s}])(?:[^${s}]+[a-zA-Z])`,"u"),h=RegExp(`^[^\\w${s}#[【★]+|[ \\-:/\\\\[|{(#$&^]+$`,"gu"),d=RegExp(`^[^\\w${s}#]+|[\\[\\]({} ]+$`,"gu"),f=/[[(]movie[)\]]/gi,p=/^[[【★].*[\]】★][ .]?(.+)/,m=/(.+)[ .]?[[【★].*[\]】★]$/,g=/^\[([^[\]]+)]/,v=/\D+/g,y=/\W+/g,b=/_+/g,x=/\s+/g,w=/[ \-:./\\]+$/,k=/[ .]+-[ .]*\d{1,4}[ .]*$/,S=[["{","}"],["[","]"],["(",")"]],M=/_/g,A=/(?<!\d)\.|\.(?!\d)/g,E=[[/\{/g,/\}/g],[/\[/g,/\]/g],[/\(/g,/\)/g]];function C(e,t){let n=0;for(let r=e.indexOf(t);-1!==r;r=e.indexOf(t,r+1))n++;return n}let O=RegExp(`[a-zA-Z${s}]`),P=/[^ .[\]() {}/\\|]+/y,T=RegExp(`^(${a})$`,"i"),D=RegExp("^(?:complete[sd]?|completas?|incomplete|final|multi|dual|integrale?|nordic|true?french|subs?|subbed|subtitles?|legendas?|legendad[oa]|subtitulad[oa]|vostfr|vosta|dubbed|dublado|doblado)$","i"),R=RegExp("^(?:french|fran(?:c|\xe7)ais|german|deutsch|spanish|espa(?:n|\xf1)ol|castellano|latino|italian|italiano|portuguese|portugu(?:e|\xea)s|brazilian|dutch|nederlands|english|ingles|swedish|svenska?|norwegian|norska?|danish|danska?|finnish|finska?|suomi|greek|polish|polski|czech|russian|japanese|korean|chinese|hindi|tamil|telugu|arabic|hebrew|turkish|thai)$","i"),j=RegExp("^(?:\\d{3,4}[pi]|[48]k|u?hd|dl|synced)$","i"),I=RegExp("^(?:ENG|ITA|GER|DEU|FRE|FRA|SPA|ESP|POR|RUS|JPN|JAP|KOR|CHI|DUT|NLD|SWE|NOR|DAN|FIN|POL|CZE|GRE|TUR|ARA|HEB|HIN|TAM|TEL|THA|VIE|HUN|UKR|BUL|HRV|SRP|SLO|RON|EST|LAV|LIT)$");function z(e){let t=e.replace(_,"");return D.test(t)||R.test(t)}let _=/^[^\p{L}\p{N}]+|[^\p{L}\p{N}]+$/gu,L=/[\p{L}\p{N}]/u;function N(e){return" "===e||"."===e}let B=String.raw`[^\s.\-\[\]()/\\]+`,F=RegExp(String.raw`(?:[. ][a-z]{2,3}(?:-[a-z]{2})?)?[. ](?:${a})$`,"i"),V=/[\s.\-]/,H=/\s?[\[(]([^\[\]()]*)[\])]$/,W=new RegExp(String.raw`-[\s.]?(${B})[\])]$`),$=new RegExp(String.raw`${B}$`),U=new RegExp(String.raw`(?:([\s.])-[\s.]|-)(${B})$`),K=/^(?:\d+|\d+[a-z]|\d+v\d+|\d+x\d+|s\d+\w*|ep?\d+\w*)$/i,q=["resolution","quality","codec","audio"];function G(e,t){let n=Array(2*e.length);n[0]=e.index,n[1]=e.index+e[0].length;for(let r=1;r<e.length;r++){let i=e[r];if(void 0!==i){let o=t.indexOf(i,e.index);n[2*r]=o,n[2*r+1]=o+i.length}else n[2*r]=-1,n[2*r+1]=-1}return n}let Z=392;function Y(e){return e>=65&&e<=90?e+32:e<128?e:127}
2function X(e,t,n){return 256+(Math.imul(e<<14|t<<7|n,0x9e3779b1)>>>18&8191)}function J(e,t){return 256+(Math.imul(2097152|e<<7|t,0x9e3779b1)>>>18&8191)}function Q(e,t,n){return 8448+(Math.imul(e<<14|t<<7|n,0x9e3779b1)>>>18&4095)}function ee(e,t){return 8448+(Math.imul(2097152|e<<7|t,0x9e3779b1)>>>18&4095)}function et(e){return e>=48&&e<=57?1:e}function en(e){for(let t=0;t<e.length;t++)if(e.charCodeAt(t)>=128)return[0];let t=e.toLowerCase(),n=t.length,r=Array(n),i=!1;for(let e=0;e<n;e++)r[e]=Y(t.charCodeAt(e)),1===r[e]&&(i=!0);if(0===n)return[];if(i){for(let e=0;e<n;e++)r[e]=et(r[e]);if(1===n)return[];if(2===n)return[ee(r[0],r[1])]}else{if(1===n)return[1+r[0]];if(2===n)return[J(r[0],r[1])]}let o=n-2,a=Math.min(3,o),s=[];for(let e=0;e<a;e++){let t=1===a?0:Math.round(e*(o-1)/(a-1)),n=i?Q(r[t],r[t+1],r[t+2]):X(r[t],r[t+1],r[t+2]);s.includes(n)||s.push(n)}return s}let er={t:"opaque"};function ei(e){for(let t=0;t<e.length;t++)if(e.charCodeAt(t)>=128)return!0;return!1}class eo{constructor(e){this.src=e,this.i=0}parse(){let e=this.parseAlternation();return this.i<this.src.length?er:e}parseAlternation(){let e=[this.parseSequence()];for(;"|"===this.src[this.i];)this.i++,e.push(this.parseSequence());if(1===e.length)return e[0];let t=[],n=!0;for(let r of e){if("lit"!==r.t||!r.exact){n=!1;break}for(let e of r.set)t.includes(e)||t.push(e)}return n&&t.length>0&&t.length<=16?{t:"lit",set:t,exact:!0}:{t:"alt",options:e}}parseSequence(){let e=[],t=!1,n=(n,r)=>{let i=e[e.length-1],o=t&&void 0!==i&&"lit"===i.t?function(e,t){if(e.length*t.length>16||e.some(ei)!==t.some(ei))return null;let n=[];for(let r of e)for(let e of t)n.push(r+e);return n}(i.set,n):null;null!==o&&void 0!==i&&"lit"===i.t?(i.set=o,i.exact=r):e.push({t:"lit",set:n,exact:r}),t=r};for(;this.i<this.src.length;){let r=this.src[this.i];if("|"===r||")"===r)break;let i=this.parseAtom(),o=this.parseQuantifier();if("lit"!==i.t){null===o||o.min>0?e.push(null===o?i:{t:"rep",min:1,node:i}):e.push(er),t=!1;continue}if(null===o)n(i.set,i.exact);else if(0===o.min)e.push(er),t=!1;else if(1===i.set.length&&i.exact){let e=Math.min(o.min,4);n([i.set[0].repeat(e)],o.max===o.min&&o.min<=4)}else n(i.set,!1)}return 0===e.length?er:1===e.length?e[0]:{t:"seq",items:e}}parseQuantifier(){let e,t,n=this.src[this.i];if("*"===n)e=0,t=1/0,this.i++;else if("+"===n)e=1,t=1/0,this.i++;else if("?"===n)e=0,t=1,this.i++;else{if("{"!==n)return null;let r=this.src.indexOf("}",this.i);if(-1===r)return null;let i=this.src.slice(this.i+1,r),o=/^(\d+)(?:,(\d*))?$/.exec(i);if(!o)return null;e=parseInt(o[1],10),t=void 0===o[2]?e:""===o[2]?1/0:parseInt(o[2],10),this.i=r+1}return"?"===this.src[this.i]&&this.i++,{min:e,max:t}}parseAtom(){let e=this.src[this.i];return"("===e?this.parseGroup():"["===e?this.parseCharClass():"."===e||"^"===e||"$"===e?(this.i++,er):"\\"===e?this.parseEscape():(this.i++,{t:"lit",set:[e],exact:!0})}parseGroup(){let e=this.src;this.i++;let t=null;if("?"===e[this.i]){let n=e.slice(this.i,this.i+2),r=e.slice(this.i,this.i+3);if("?<="===r)t=!0,this.i+=3;else if("?<!"===r)t=!1,this.i+=3;else if("?="===n)t=!0,this.i+=2;else if("?!"===n)t=!1,this.i+=2;else if("?:"===n)this.i+=2;else if("<"===e[this.i+1]){let t=e.indexOf(">",this.i);if(-1===t)return this.i=e.length,er;this.i=t+1}else{let t=e.indexOf(")",this.i);return this.i=-1===t?e.length:t+1,er}}let n=this.parseAlternation();return")"!==e[this.i]?(this.i=e.length,er):(this.i++,null===t)?n:{t:"look",positive:t,node:n}}parseCharClass(){let e=this.src,t=this.i;this.i++;let n="^"===e[this.i];n&&this.i++;let r=[],i=!n,o=!0;for(;this.i<e.length&&("]"!==e[this.i]||o);){o=!1;let t=this.readClassChar();if(null===t){i=!1;break}let n=t;if("-"===e[this.i]&&this.i+1<e.length&&"]"!==e[this.i+1]){this.i++;let e=this.readClassChar();if(null===e){i=!1;break}n=e}r.push([t,n])}for(this.i=t+1,"^"===e[this.i]&&this.i++,"]"===e[this.i]&&this.i++;this.i<e.length&&"]"!==e[this.i];)this.i+="\\"===e[this.i]?2:1;if(this.i++,!i||0===r.length)return er;if(r.every(([e])=>e>=128))return{t:"lit",set:["\x80"],exact:!1};let a=0;for(let[e,t]of r)a+=t-e+1;if(a>4&&r.every(([e,t])=>e>=48&&t<=57))return{t:"lit",set:["\x01"],exact:!0};if(a>12)return er;let s=[];for(let[e,t]of r)for(let n=e;n<=t;n++)s.push(String.fromCharCode(n));return{t:"lit",set:s,exact:!0}}readClassChar(){let e=this.src,t=e[this.i];if("\\"!==t)return this.i++,t.charCodeAt(0);let n=e[this.i+1];if(void 0===n||/[dDwWsSpPbB0-9]/.test(n))return null;if("x"===n||"u"===n){let t="x"===n?/^\\x([0-9a-fA-F]{2})/.exec(e.slice(this.i)):/^\\u\{?([0-9a-fA-F]{1,6})\}?/.exec(e.slice(this.i));return t?(this.i+=t[0].length,parseInt(t[1],16)):null}return this.i+=2,(({n:"\n",t:"	",r:"\r",f:"\f",v:"\v"}
2)[n]??n).charCodeAt(0)}parseEscape(){let e=this.src,t=e[this.i+1];if(void 0===t)return this.i++,er;if("d"===t)return this.i+=2,{t:"lit",set:["\x01"],exact:!0};if(/[bBDwWsSpP1-9kK]/.test(t))return this.i+=2,er;if("x"===t||"u"===t){let n="x"===t?/^\\x([0-9a-fA-F]{2})/.exec(e.slice(this.i)):/^\\u\{?([0-9a-fA-F]{1,6})\}?/.exec(e.slice(this.i));if(!n)return this.i+=2,er;this.i+=n[0].length;let r=parseInt(n[1],16);return{t:"lit",set:[r<128?String.fromCharCode(r):"\x80"],exact:r<128}}let n={n:"\n",t:"	",r:"\r",f:"\f",v:"\v",0:"\0"};return(this.i+=2,t in n)?{t:"lit",set:[n[t]],exact:!0}:{t:"lit",set:[t],exact:!0}}}function ea(e){return null!==e&&e.length>0&&e.length<=16&&e.every(e=>e.length>0)}function es(e){return 100*e.reduce((e,t)=>Math.min(e,function(e){let t=0;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(r>=128)return 4;1===r&&t++}return Math.min(e.length-.5*t,5)}(t)),99)-e.length}let el=new Map,ec=new WeakMap,eu=new class{constructor(){this.bits=new Uint32Array(Z),this.nonAscii=!1}reset(e){this.bits.fill(0),this.nonAscii=!1,this.addRange(e,0,e.length)}spliced(e,t){this.addRange(e,t-2,Math.min(t+2,e.length))}addRange(e,t,n){let r=e.length,i=t<0?0:t;if(i>=r)return;let o=-1,a=-1;i>=2&&(o=Y(e.charCodeAt(i-2))),i>=1&&(a=Y(e.charCodeAt(i-1)));let s=o<0?-1:et(o),l=a<0?-1:et(a),c=this.bits,u=this.nonAscii,h=n>r?r:n;for(let t=i;t<h;t++){let n=e.charCodeAt(t);n>=128&&(u=!0);let r=Y(n),i=et(r),h=1+r;if(c[h>>>5]|=1<<(31&h),a>=0){let e=J(a,r);c[e>>>5]|=1<<(31&e);let t=ee(l,i);if(c[t>>>5]|=1<<(31&t),o>=0){let e=X(o,a,r);c[e>>>5]|=1<<(31&e);let t=Q(s,l,i);c[t>>>5]|=1<<(31&t)}}o=a,a=r,s=l,l=i}u&&(c[0]|=1),this.nonAscii=u}},eh=/\s\s|[^\S ]/,ed=new Set(["audio","channels","editions","hdr","languages","releaseTypes"]),ef=/\p{L}/u,ep=new Map;function em(e){return(t,n)=>{n.value=e}}function eg(){return(e,t)=>{t.value=t.value.toLowerCase()}}function ev(){return(e,t)=>{t.value=t.value.toUpperCase()}}function ey(){return(e,t)=>{t.value=t.value.trim()}}function eb(){let e=/(\d+)(?:st|nd|rd|th)/g;return(t,n)=>{"string"==typeof n.value&&(n.value=n.value.replace(e,"$1"))}}function ex(){let e=/(?:feb(?:ruary)?|jan(?:uary)?|mar(?:ch)?|apr(?:il)?|may|june?|july?|aug(?:ust)?|sept?(?:ember)?|oct(?:ober)?|nov(?:ember)?|dec(?:ember)?)/gi;return(t,n)=>{"string"==typeof n.value&&(n.value=n.value.replace(e,e=>e.substring(0,3)))}}function ew(e){let t=/[.\-/\\]/g;return(n,r)=>{if("string"==typeof r.value){let n=function(e,t){try{if("20060102"===t&&8===e.length){let t=parseInt(e.substring(0,4)),n=parseInt(e.substring(4,6)),r=parseInt(e.substring(6,8));if(t&&n&&r){let e=new Date(Date.UTC(t,n-1,r));if(!isNaN(e.getTime()))return e.toISOString().split("T")[0]}return null}let n=e.trim().split(/\s+/),r=t.split(/\s+/),i=0,o=0,a=0;for(let e=0;e<r.length&&e<n.length;e++){let t=r[e],s=n[e];"2006"===t||"YYYY"===t?i=parseInt(s):"06"===t||"YY"===t?(i=2e3+parseInt(s))>2069&&(i-=100):"01"===t||"MM"===t?o=parseInt(s):"02"===t||"DD"===t||"_2"===t?a=parseInt(s):"Jan"===t||"MMM"===t?o=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"].indexOf(s.toLowerCase().substring(0,3))+1:"YYYYMMDD"===t&&(i=parseInt(s.substring(0,4)),o=parseInt(s.substring(4,6)),a=parseInt(s.substring(6,8)))}if(i&&o&&a){let e=new Date(Date.UTC(i,o-1,a));if(!isNaN(e.getTime()))return e.toISOString().split("T")[0]}return null}catch{return null}}(r.value.replace(t," "),e);r.value=n||""}}}function ek(){return(e,t)=>{if("string"!=typeof t.value){t.value="";return}let n=t.value.split(v).filter(e=>e);if(1===n.length){t.value=n[0];return}let r=n[0],i=parseInt(n[1]);if(isNaN(i)){t.value=r;return}let o=parseInt(r);if(isNaN(o)||(i<100&&(i=i+o-o%100),i<=o)){t.value="";return}t.value=`${o}-${i}`}}function eS(){return(e,t)=>{if("string"!=typeof t.value){t.value=null;return}let n=t.value.replace(v," ").trim().split(" ").filter(e=>e).map(e=>parseInt(e)).filter(e=>!isNaN(e));if(2===n.length&&n[0]<n[1]){let e=[];for(let t=n[0];t<=n[1];t++)e.push(t);t.value=e;return}for(let e=0;e<n.length-1;e++)if(n[e]+1!==n[e+1]){t.value=null;return}t.value=n}}function eM(e){return(t,n)=>{"string"==typeof n.value?n.value=n.value+e:n.value=""}}function eA(){return(e,t)=>{t.value=!0}}function eE(e){return(t,n)=>{n.value instanceof o&&n.value.append(e)}}function eC(e){return(t,n)=>{n.value instanceof o&&n.value.append(e(n.mValue))}}function eO(){return(e,t)=>{if("string"==typeof t.value){let e=parseInt(t.value);t.value=isNaN(e)?[]:[e]}else t.value=[]}}function eP(...e){return(t,n)=>e.some(e=>e(t,n))}function eT(...e){return(t,n)=>e.every(e=>e(t,n))}function eD(e,t,n){let r=RegExp(e+"$",t.toLowerCase().replace(/[^gimsuy]/g,""));return(e,t)=>{let i=e.substring(0,t[0]);return n?r.test(i):!r.test(i)}}function eR(e,t,n){let r=RegExp("^"+e,t.toLowerCase().replace(/[^gimsuy]/g,""));return(e,t)=>{let i=e.substring(t[1]);return n?r.test(i):!r.test(i)}}function ej(){return(e,t)=>0!==t[0]||!/\s$/.test(e.substring(t[0],t[1]))}function eI(e){return(t,n)=>{let r=t.substring(n[0],n[1]);return!e.test(r)}}function ez(...e){return(t,n)=>
2{let r=t.substring(n[2*e[0]],n[2*e[0]+1]);for(let i=1;i<e.length;i++){let o=e[i];if(t.substring(n[2*o],n[2*o+1])!==r)return!1}return!0}}function e_(e){return(t,n)=>("string"==typeof n.value&&""!==n.value&&(n.value=n.value.replace(e,"")),n)}let eL=[{field:"title",pattern:/360.Degrees.of.Vision.The.Byakugan'?s.Blind.Spot/i,remove:!0},{field:"title",pattern:/\b(?:INTERNAL|HFR)\b/i,remove:!0},{field:"title",pattern:/413 Days/i,remove:!0},{field:"ppv",pattern:/\bPPV(?:HD)?\b/i,transform:eA(),remove:!0,skipFromTitle:!0},{field:"ppv",pattern:/\b\W?Fight.?Nights?\W?\b/i,transform:eA(),skipFromTitle:!0},{field:"site",pattern:/^(www?[., ][\w-]+[. ][\w-]+(?:[. ][\w-]+)?)\s+-\s*/i,keepMatching:!0,skipFromTitle:!0,remove:!0},{field:"site",pattern:/\bwww[., ][\w-]+[., ](?:rodeo|hair)\b/i,remove:!0,skipFromTitle:!0},{field:"group",pattern:/\b(20-40)\b$/,transform:em("20-40"),remove:!0},{field:"episodeCode",pattern:/([\[(]([a-z0-9]{8}|[A-Z0-9]{8})[\])])(?:\.[a-zA-Z0-9]{1,5}$|$)/,transform:ev(),remove:!0,matchGroup:1,valueGroup:2},{field:"episodeCode",pattern:/\[([A-Z0-9]{8})]/,validateMatch:(r=/(?:[A-Z]+\d|\d+[A-Z])/,(e,t)=>{let n=e.substring(t[0],t[1]);return r.test(n)}),transform:ev(),remove:!0},{field:"resolution",pattern:/\b(?:4k|2160p|1080p|720p|480p)\b.+\b(4k|2160p|1080p|720p|480p)\b/i,transform:eg(),remove:!0,matchGroup:1},{field:"resolution",pattern:/\b[(\[]?4k[)\]]?\b/i,transform:em("4k"),remove:!0},{field:"resolution",pattern:/21600?[pi]/i,transform:em("4k"),remove:!0,keepMatching:!0},{field:"resolution",pattern:/[(\[]?3840x\d{4}[)\]]?/i,transform:em("4k"),remove:!0},{field:"resolution",pattern:/[(\[]?1920x\d{3,4}[)\]]?/i,transform:em("1080p"),remove:!0},{field:"resolution",pattern:/[(\[]?1280x\d{3}[)\]]?/i,transform:em("720p"),remove:!0},{field:"resolution",pattern:/[(\[]?\d{3,4}x(\d{3,4})[)\]]?/i,transform:eM("p"),remove:!0},{field:"resolution",pattern:/(480|720|1080)0[pi]/i,transform:eM("p"),remove:!0},{field:"resolution",pattern:/(?:BD|HD|M)(720|1080|2160)/i,transform:eM("p"),remove:!0},{field:"resolution",pattern:/(480|576|720|1080|2160)[pi]/i,transform:eM("p"),remove:!0},{field:"resolution",pattern:/(?<!\d)(\d{3,4})[pi]/i,transform:eM("p"),remove:!0},{field:"date",pattern:/(?:\W|^)([(\[]?((?:19[6-9]|20[012])[0-9]([. \-/\\])(?:0[1-9]|1[012])([. \-/\\])(?:0[1-9]|[12][0-9]|3[01]))[)\]]?)(?:\W|$)/,validateMatch:ez(3,4),transform:ew("2006 01 02"),remove:!0,valueGroup:2,matchGroup:1},{field:"date",pattern:/(?:\W|^)[(\[]?((?:0[1-9]|[12][0-9]|3[01])([. \-/\\])(?:0[1-9]|1[012])([. \-/\\])(?:19[6-9]|20[012])[0-9])[)\]]?(?:\W|$)/,validateMatch:ez(2,3),transform:ew("02 01 2006"),remove:!0},{field:"date",pattern:/(?:\W)[(\[]?((?:0[1-9]|1[012])([. \-/\\])(?:0[1-9]|[12][0-9]|3[01])([. \-/\\])(?:19[6-9]|20[012])[0-9])[)\]]?(?:\W|$)/,validateMatch:ez(2,3),transform:ew("01 02 2006"),remove:!0},{field:"date",pattern:/(?:\W)[(\[]?((?:0[1-9]|1[012])([. \-/\\])(?:0[1-9]|[12][0-9]|3[01])([. \-/\\])(?:[0][1-9]|[0126789][0-9]))[)\]]?(?:\W|$)/,validateMatch:ez(2,3),transform:ew("01 02 06"),remove:!0},{field:"date",pattern:/(?:\W)[(\[]?((?:0[1-9]|[12][0-9]|3[01])([. \-/\\])(?:0[1-9]|1[012])([. \-/\\])(?:[0][1-9]|[0126789][0-9]))[)\]]?(?:\W|$)/,validateMatch:ez(2,3),transform:ew("02 01 06"),matchGroup:1,remove:!0},{field:"date",pattern:/(?:\W|^)[(\[]?((?:0?[1-9]|[12][0-9]|3[01])[. ]?(?:st|nd|rd|th)?([. \-/\\])(?:feb(?:ruary)?|jan(?:uary)?|mar(?:ch)?|apr(?:il)?|may|june?|july?|aug(?:ust)?|sept?(?:ember)?|oct(?:ober)?|nov(?:ember)?|dec(?:ember)?)([. \-/\\])(?:19[7-9]|20[012])[0-9])[)\]]?(?:\W|$)/i,validateMatch:ez(2,3),transform:(e,t,n)=>{eb()(e,t,n),ex()(e,t,n),ew("_2 Jan 2006")(e,t,n)},remove:!0},{field:"date",pattern:/(?:\W|^)[(\[]?((?:0?[1-9]|[12][0-9]|3[01])[. ]?(?:st|nd|rd|th)?([. \-/\\])(?:feb(?:ruary)?|jan(?:uary)?|mar(?:ch)?|apr(?:il)?|may|june?|july?|aug(?:ust)?|sept?(?:ember)?|oct(?:ober)?|nov(?:ember)?|dec(?:ember)?)([. \-/\\])(?:0[1-9]|[0126789][0-9]))[)\]]?(?:\W|$)/i,validateMatch:ez(2,3),transform:(e,t,n)=>{eb()(e,t,n),ex()(e,t,n),ew("_2 Jan 06")(e,t,n)},remove:!0},{field:"date",pattern:/(?:\W|^)[(\[]?(20[012][0-9](?:0[1-9]|1[012])(?:0[1-9]|[12][0-9]|3[01]))[)\]]?(?:\W|$)/,transform:ew("20060102"),remove:!0},{field:"year",pattern:/[ .]?([(\[*]?((?:19\d|20[012])\d[ .]?-[ .]?(?:19\d|20[012])\d)[*)\]]?)[ .]?/,transform:(e,t,n
2)=>{ek()(e,t,n),!n.has("complete")&&"string"==typeof t.value&&t.value.includes("-")&&n.set("complete",{mIndex:t.mIndex,mValue:t.mValue,matched:[t.mValue],value:!0,remove:!1,processed:!1})},matchGroup:1,valueGroup:2,remove:!0},{field:"year",pattern:/[(\[*][ .]?((?:19\d|20[012])\d[ .]?-[ .]?\d{2})(?:\s?[*)\]])?/,transform:(e,t,n)=>{ek()(e,t,n),!n.has("complete")&&"string"==typeof t.value&&t.value.includes("-")&&n.set("complete",{mIndex:t.mIndex,mValue:t.mValue,matched:[t.mValue],value:!0,remove:!1,processed:!1})},remove:!0},{field:"year",pattern:/[(\[*]?\b(20[0-9]{2}|2100)[*\])]?/i,validateMatch:eR("(?:\\D*\\d{4}\\b)","",!1),transform:ek(),remove:!0},{field:"year",pattern:/(?:[(\[*]|.)((?:\d|[SE]|Cap[. ]?)?(?:19\d|20[012])\d(?:\d|kbps)?)[*)\]]?/i,validateMatch:(e,t)=>!(t[0]<2)&&4===e.substring(t[2],t[3]).length,transform:ek(),remove:!0,matchGroup:1},{field:"year",pattern:/^[(\[]?((?:19\d|20[012])\d)(?:\d|kbps)?[)\]]?/,validateMatch:(e,t)=>{let n=e.substring(t[0],t[1]);return 4===n.length?0!==t[0]:4===n.replace(/[()[\]]/g,"").length},transform:ek(),remove:!0},{field:"extended",pattern:/EXTENDED/,transform:eA()},{field:"extended",pattern:/- Extended/i,transform:eA()},{field:"editions",pattern:/\b\d{2,3}(?:th)?[\.\s\-\+_\/(),]Anniversary[\.\s\-\+_\/(),](?:Edition|Ed)?\b/i,transform:eE("Anniversary Edition"),keepMatching:!0,remove:!0,skipIfBefore:["year"]},{field:"editions",pattern:/\b(?:D(ragon)?[\.\s\-\+_\/(),]?Box)\b/i,transform:eE("Dragon Box"),keepMatching:!0,remove:!0},{field:"editions",pattern:/\bCC\b|\bcolou?r[.\s-]?corrected\b/i,transform:eE("Color Corrected"),keepMatching:!0,remove:!0},{field:"editions",pattern:/\bUltimate[\.\s\-\+_\/(),]Edition\b/i,transform:eE("Ultimate Edition"),keepMatching:!0,remove:!0},{field:"editions",pattern:/\bCriterion\.Collection\b/i,transform:eE("Criterion Collection"),keepMatching:!0,remove:!0},{field:"editions",pattern:/\bDirector\W?s.?Cut\b/i,transform:eE("Director's Cut"),keepMatching:!0,remove:!0},{field:"editions",pattern:/\bCollector\W?s\b/i,transform:eE("Collector's Edition"),keepMatching:!0,remove:!0},{field:"editions",pattern:/\bTheatrical\b/i,transform:eE("Theatrical"),keepMatching:!0,remove:!0},{field:"editions",pattern:/\buncut(?:.gems)?\b/i,validateMatch:eI(/(?:.gems)/i),transform:eE("Uncut"),keepMatching:!0,remove:!0},{field:"editions",pattern:/\bIMAX\b/i,transform:eE("IMAX"),keepMatching:!0,remove:!0,skipFromTitle:!0},{field:"editions",pattern:/\bDiamond[\s.]Edition\b/i,transform:eE("Diamond Edition"),keepMatching:!0,remove:!0},{field:"editions",pattern:/\b\.Diamond\.\b/i,transform:eE("Diamond Edition"),keepMatching:!0,remove:!0},{field:"editions",pattern:/\bRemaster(?:ed)?\b|\b[\[(]?REKONSTRUKCJA[\])]?\b/i,transform:eE("Remastered"),keepMatching:!0,remove:!0},{field:"editions",pattern:/\bDC\b/,transform:eE("Director's Cut"),keepMatching:!0,remove:!0,skipIfBefore:["year"]},{field:"releaseTypes",pattern:/\b((?:OAD|OAV|ODA|ONA|OVA)\b(?:[+&]\b(?:OAD|OAV|ODA|ONA|OVA)\b)?)/i,transform:(i=e=>{let t=[];for(let n of e.split(y))n&&t.push(n.toUpperCase());return t},(e,t)=>{if(t.value instanceof o)for(let e of i(t.mValue))t.value.append(e)}),remove:!0,matchGroup:1},{field:"releaseTypes",pattern:/\b(OAD|OAV|ODA|ONA|OVA)(?:[ .-]*\d{1,3})?(?:v\d)?\b/i,transform:eC(e=>e.toUpperCase()),remove:!0,matchGroup:1},{field:"releaseTypes",pattern:/\b(?:[Ww]ith[ .])?ASL\b/,transform:eE("ASL"),keepMatching:!0,remove:!0},{field:"releaseTypes",pattern:/\b(?:with[ .])?(?:Audio[ .]Description|Descriptive[ .]Audio)\b/i,transform:eE("Audio Description"),keepMatching:!0,remove:!0},{field:"regraded",pattern:/\bRegraded?\b/i,transform:eA(),remove:!0},{field:"upscaled",pattern:/\b(?:AI.?)?(Upscal(ed?|ing)|Enhanced?)\b/i,transform:eA()},{field:"upscaled",pattern:/\b(?:iris2|ups(?:uhd|fhd|hd|4k))\b/i,transform:eA()},{field:"upscaled",pattern:/\bups\b/i,transform:eA(),skipIfFirst:!0},{field:"upscaled",pattern:/\b\.AI\.\b/i,transform:eA()},{field:"convert",pattern:/\bCONVERT\b/,transform:eA(),remove:!0},{field:"hardcoded",pattern:/\b(?:HC|HARDCODED)\b/,transform:eA(),remove:!0},{field:"preair",pattern:/\bPRE[ .-]?AIR(?:ED)?\b/i,remove:!0},{field:"proper",pattern:/\b(?:REAL.)?PROPER\d?\b/i,transform:eA(),remove:!0},{field:"repack",pattern:/\b(?:REPACK|RERIP)\d?\b/i,transform:eA(),remove:!0},{field:"retail",pattern:/\bRetail\b/i,transform:eA()},{field:"documentary",pattern:/\bDOCU(?:menta?ry)?\b/i,transform:eA(),skipFromTitle:!0},{field:"unrated",pattern:/\bunrated\b/i,transform:eA(),remove:!0},{field:"uncensored",pattern:/\buncensored\b/i,transform:eA(),remove:!0},{field:"commentary",pattern:/\bcommentary\b/i,transform:eA(),remove:!0},{field:"region",pattern:/R\dJ?\b/,remove:!0,skipIfFirst:!0},{field:"region",pattern:/\b(PAL|NTSC|SECAM)\b/,transform:ev(),remove:!0},{field:"quality",pattern:/\b(?:H[DQ][ .-]*)?S[ .-]+print/i,transform:em("CAM"),remove:!0},{field:"quality",pattern:/\b(?:HD[ .-]*)?T(?:ELE)?S(?:YNC)?(?:Rip
2)?\b/i,transform:em("TeleSync"),remove:!0},{field:"quality",pattern:/\b(?:HD[ .-]*)?T(?:ELE)?C(?:INE)?(?:Rip)?\b/,transform:em("TeleCine"),remove:!0},{field:"quality",pattern:/\b(?:DVD?|BD|BR|HD)?[ .-]*Scr(?:eener)?\b/i,transform:em("SCR"),remove:!0},{field:"quality",pattern:/\bP(?:RE)?-?(HD|DVD)(?:Rip)?\b/i,transform:em("SCR"),remove:!0},{field:"quality",pattern:/\b(Blu[ .-]*Ray)\b(?:.*remux)/i,transform:em("BluRay REMUX"),remove:!0,matchGroup:1},{field:"quality",pattern:/(?:BD|BR|UHD)[- ]?remux/i,transform:em("BluRay REMUX"),remove:!0},{field:"quality",pattern:/(?:remux.*)\bBlu[ .-]*Ray\b/i,transform:em("BluRay REMUX"),remove:!0},{field:"quality",pattern:/\bremux\b/i,transform:em("REMUX"),remove:!0},{field:"quality",pattern:/\bBlu[ .-]*Ray\b(?:[ .-]*Rip)?/i,validateMatch:(e,t)=>!e.substring(t[0],t[1]).toLowerCase().endsWith("rip"),transform:em("BluRay"),remove:!0},{field:"quality",pattern:/\bUHD[ .-]*Rip\b/i,transform:em("UHDRip"),remove:!0},{field:"quality",pattern:/\bHD[ .-]*Rip\b/i,transform:em("HDRip"),remove:!0},{field:"quality",pattern:/\bMicro[ .-]*HD\b/i,transform:em("HDRip"),remove:!0},{field:"quality",pattern:/\b(?:BR|Blu[ .-]*Ray)[ .-]*Rip\b/i,transform:em("BRRip"),remove:!0},{field:"quality",pattern:/\bBD[ .-]*Rip\b|\bBDR\b|\bBD-RM\b|[\[(]BD[\]) .,-]/i,transform:em("BDRip"),remove:!0},{field:"quality",pattern:/\bVOD[ .-]*Rip\b/i,transform:em("VODR"),remove:!0},{field:"quality",pattern:/\b(?:HD[ .-]*)?DVD[ .-]*Rip\b/i,transform:em("DVDRip"),remove:!0},{field:"quality",pattern:/\bVHS[ .-]*Rip\b/i,transform:em("VHSRip"),remove:!0},{field:"quality",pattern:/\b(?:R\d?)?DVD(?:R\d?)?\b/i,transform:em("DVD"),remove:!0},{field:"quality",pattern:/\bVHS\b/i,transform:em("DVD"),remove:!0,skipIfFirst:!0},{field:"quality",pattern:/\bPPV[ .-]*HD\b/i,transform:em("PPV"),remove:!0},{field:"quality",pattern:/\bPPVRip\b/i,transform:em("PPVRip"),remove:!0},{field:"quality",pattern:/\bHD.?TV.?Rip\b/i,transform:em("HDTVRip"),remove:!0},{field:"quality",pattern:/\bDVB[ .-]*(?:Rip)?\b/i,transform:em("HDTV"),remove:!0},{field:"quality",pattern:/\bSAT[ .-]*Rips?\b/i,transform:em("SATRip"),remove:!0},{field:"quality",pattern:/\bTVRips?\b/i,transform:em("TVRip"),remove:!0},{field:"quality",pattern:/\bR5\b/i,transform:em("R5"),remove:!0},{field:"quality",pattern:/\bWEB[ .-]*Rip\b/i,transform:em("WEBRip"),remove:!0},{field:"quality",pattern:/\bWEB[ .-]?Cap\b/i,transform:em("WEBCap"),remove:!0},{field:"quality",pattern:/\bWEB[ .-]?DL[ .-]?Rip\b/i,transform:em("WEB-DLRip"),remove:!0},{field:"quality",pattern:/\bWEB[ .-]*(DL|.BDrip|.DLRIP)\b/i,transform:em("WEB-DL"),remove:!0},{field:"quality",pattern:/\bWEB[ .-]?HD\b/i,transform:em("WEB"),remove:!0},{field:"quality",pattern:/\b(?:DL|WEB|BD|BR)MUX\b/i,remove:!0},{field:"quality",pattern:/\b(W(?:ORK)P(?:RINT))\b/,transform:em("WORKPRINT"),remove:!0},{field:"quality",pattern:/\bPDTV\b/i,transform:em("PDTV"),remove:!0},{field:"quality",pattern:/\bHD(?:.?TV)?\b(?!-ELITE\.NET)/i,transform:em("HDTV"),remove:!0},{field:"quality",pattern:/\bSD(?:.?TV)?\b/i,transform:em("SDTV"),remove:!0},{field:"bitDepth",pattern:/(?:8|10|12)[-.]?bit\b/i,transform:eg(),remove:!0},{field:"bitDepth",pattern:/\bhevc\s?10\b/i,transform:em("10bit")},{field:"bitDepth",pattern:/\bhdr10(?:\+|plus)?\b/i,transform:em("10bit")},{field:"bitDepth",pattern:/\bhi10\b/i,transform:em("10bit")},{field:"bitDepth",process:e_(/[ -]/)},{field:"hdr",pattern:/\bDV\b|dolby.?vision|\bDoVi\b/i,transform:eE("DV"),remove:!0,keepMatching:!0},{field:"hdr",pattern:/HDR10(?:\+|plus)/i,transform:eE("HDR10+"),remove:!0,keepMatching:!0},{field:"hdr",pattern:/\bHDR(?:10)?\b/i,transform:eE("HDR"),remove:!0,keepMatching:!0},{field:"hdr",pattern:/\bSDR\b/i,transform:eE("SDR"),remove:!0,keepMatching:!0},{field:"threeD",pattern:/\b(3D)\b.*\b(Half-?SBS|H[-\\/]?SBS)\b/i,transform:em("3D HSBS")},{field:"threeD",pattern:/\bHalf.Side.?By.?Side\b/i,transform:em("3D HSBS")},{field:"threeD",pattern:/\b(3D)\b.*\b(Full-?SBS|SBS)\b/i,transform:em("3D SBS")},{field:"threeD",pattern:/\bSide.?By.?Side\b/i,transform:em("3D SBS")},{field:"threeD",pattern:/\b(3D)\b.*\b(Half-?OU|H[-\\/]?OU)\b/i,transform:em("3D HOU")},{field:"threeD",pattern:/\bHalf.?Over.?Under\b/i,transform:em("3D HOU")},{field:"threeD",pattern:/\b(3D)\b.*\b(OU)\b/i,transform:em("3D OU")},{field:"threeD",pattern:/\bOver.?Under\b/i,transform:em("3D OU")},{field:"threeD",pattern:/\b((?:BD)?3D)\b/i,transform:em("3D"),skipIfFirst:!0},{field:"codec",pattern:/\b[xh][-. ]?26[45]/i,transform:eg(),remove:!0},{field:"codec",pattern:/\bhevc(?:\s?10)?\b/i,transform:em("hevc"),remove:!0,keepMatching:!0},{field:"codec",pattern:/\b(?:dvix|mpeg2|divx|xvid|avc)\b/i,transform:eg(),remove:!0,keepMatching:!0},{field:"codec",pattern:/\bvp[89]\b/i,transform:eg(),remove:!0,keepMatching:!0},{field:"codec",pattern:/\bAV1\b/i,transform:em("av1"),remove:!0,keepMatching:!0},{field:"codec",process:e_(/[ .-]/)},{field:"channels",pattern:/\bDDP?(51)\b/i,transform:eE("5.1"),keepMatching:!0,remove:!0,matchGroup:1},{field:"channels",pattern:/5[.\s]1(?:ch|-S\d+)?\b/i,transform:eE("5.1"),keepMatching:!0,remove:!0},{field:"channels",pattern:/\b(?:x[2-4]|5[\W]1(?:x[2-4])?)\b/i,transform:eE("5.1"),keepMatching:!0,remove:!0},{field:"channels",pattern:/\b7[.\- ]1(?:.?ch(?:annel)?)?\b/i,transform:eE("7.1"),keepMatching:!0,remove:!0},{field:"channels",pattern:/(?:\b|AAC|DDP)\+?(2[.\s]0)(?:x[2-4])?\b/i,validateMatch:eR("[.\\s](?:19|20)\\d{2}\\b","i",!1),skipIfBefore:["year"],transform:eE("2.0"),keepMatching:!0,skipFromTitle:!0,matchGroup:1},{field:"channels",pattern:/\b2\.0\b/i,validateMatch:eR("[.\\s](?:19|20)\\d{2}\\b","i",!1),skipIfBefore:["year"],transform:eE("2.0"),keepMatching:!0,skipFromTitle:!0},{field:"channels",pattern:/\bstereo\b/i,transform:eE("stereo"),keepMatching:!0},{field:"channels",pattern:/\bmono\b/i,transform:eE("mono"),keepMatching:!0},{field:"audio",pattern:/\b(?:.+HR)?(?:DTS.?HD.?Ma(?:ster)?|DTS.?X)\b/i,validateMatch:eI(/(?:.
2+HR)/i),transform:eE("DTS Lossless"),remove:!0,keepMatching:!0},{field:"audio",pattern:/\bDTS(?:(?:.?HD.?Ma(?:ster)?|.X))?.?(?:HD.?HR|HD)?\b/i,validateMatch:eI(/DTS(?:.?HD.?Ma(?:ster)?|.X)/i),transform:eE("DTS Lossy"),remove:!0,keepMatching:!0},{field:"audio",pattern:/\b(?:Dolby.?)?Atmos\b/i,transform:eE("Atmos"),remove:!0,keepMatching:!0},{field:"audio",pattern:/\bTrue[ .-]?HD\b/i,transform:eE("TrueHD"),keepMatching:!0,remove:!0,skipFromTitle:!0},{field:"audio",pattern:/\bTRUE\b/,transform:eE("TrueHD"),keepMatching:!0,remove:!0,skipFromTitle:!0,skipIfBefore:["year","seasons","episodes"]},{field:"audio",pattern:/\bFLAC(?:\d\.\d)?(?:x\d+)?\b/i,transform:eE("FLAC"),keepMatching:!0,remove:!0},{field:"audio",pattern:/\bDD2?[+p]|DD Plus|Dolby Digital Plus|DDP5[ ._]1/i,transform:eE("DDP"),keepMatching:!0,remove:!0},{field:"audio",pattern:/E-?AC-?3(?:-S\d+)?/i,transform:eE("EAC3"),keepMatching:!0,remove:!0},{field:"audio",pattern:/\b(DD|Dolby.?Digital|DolbyD)\b/i,transform:eE("DD"),keepMatching:!0,remove:!0},{field:"audio",pattern:/\b(AC-?3D?(?:x2)?(?:-S\d+)?)\b/i,transform:eE("AC3"),keepMatching:!0,remove:!0},{field:"audio",pattern:/\bQ?AAC(?:[. ]?2[. ]0|x2)?\b/,transform:eE("AAC"),keepMatching:!0,remove:!0},{field:"audio",pattern:/\bL?PCM\b/i,transform:eE("PCM"),keepMatching:!0,remove:!0},{field:"audio",pattern:/\bOPUS(?:\b|\d)(?:.*[ ._-](?:\d{3,4}p))?/i,validateMatch:eI(/OPUS(?:\b|\d)(?:.*[ ._-](?:\d{3,4}p))/i),transform:eE("OPUS"),keepMatching:!0,remove:!0},{field:"audio",pattern:/\b(?:H[DQ])?.?(?:Clean.?Aud(?:io)?)\b/i,transform:eE("HQ"),remove:!0,keepMatching:!0},{field:"channels",pattern:/\[([257][.-][01])]/,transform:eC(e=>e.toLowerCase()),remove:!0,keepMatching:!0},{field:"size",pattern:/\b(\d+((\.|,)\d+)?[\s-]?(MB|GB|TB))\b/i,remove:!0},{field:"container",pattern:/\.?[\[(]?\b(MKV|AVI|MP4|WMV|MPG|MPEG)\b[\])]?/i,transform:eg()},{field:"volumes",pattern:/\bvol(?:s|umes?)?[. -]*(?:\d{1,3}[., +/\\&-]+)+\d{1,3}\b/i,transform:eS(),remove:!0},{field:"volumes",process:(e,t,n)=>{let r=0;n.has("year")&&(r=Math.min(n.get("year").mIndex,e.length));let i=e.substring(r).match(/\bvol(?:ume)?[. -]*(\d{1,3})/i);if(i&&i[1]){let e=parseInt(i[1],10);isNaN(e)||(t.mIndex=r+i.index,t.mValue=i[0],t.value=[e],t.remove=!0)}return t}},{field:"languages",pattern:/\b(temporadas?|completa)\b/i,transform:eE("es"),keepMatching:!0},{field:"languages",pattern:/\b(?:INT[EÉ]GRALE?)\b/i,transform:eE("fr"),keepMatching:!0},{field:"languages",pattern:/\b(?:Saison)\b/i,transform:eE("fr"),keepMatching:!0},{field:"complete",pattern:/\b(?:INTEGRALE?|INTÉGRALE?)\b/i,transform:eA(),keepMatching:!0,remove:!0},{field:"complete",pattern:/(?:\bthe\W)?(?:\bcomplete|collection|dvd)?\b[ .]?\bbox[ .-]?set\b/i,transform:eA()},{field:"complete",pattern:/(?:\bthe\W)?(?:\bcomplete|collection|dvd)?\b[ .]?\bmini[ .-]?series\b/i,transform:eA()},{field:"complete",pattern:/(?:\bthe\W)?(?:\bcomplete|full|\ball)\b.*\b(?:series|seasons|collection|episodes|set|pack|movies)\b/i,transform:eA()},{field:"complete",pattern:/\b(?:series|seasons|movies?)\b.*\b(?:complete|collection)\b/i,transform:eA()},{field:"complete",pattern:/(?:\bthe\W)?\bultimate\b[ .]\bcollection\b/i,transform:eA(),keepMatching:!0},{field:"complete",pattern:/\bcollection\b.*\b(?:set|pack|movies)\b/i,transform:eA()},{field:"complete",pattern:/\bcollection(?:(\s\[|\s\())/i,transform:eA(),remove:!0},{field:"complete",pattern:/\bkolekcja\b(?:\Wfilm(?:y|ów|ow)?)?/i,transform:eA(),remove:!0},{field:"complete",pattern:/duology|trilogy|quadr[oi]logy|tetralogy|pentalogy|hexalogy|heptalogy|anthology/i,transform:eA(),keepMatching:!0},{field:"complete",pattern:/\bcompleta\b/i,transform:eA(),remove:!0},{field:"complete",pattern:/\bsaga\b/i,transform:eA(),keepMatching:!0,skipFromTitle:!0},{field:"complete",pattern:/\b\[Complete\]\b/i,transform:eA(),remove:!0},{field:"complete",pattern:/(?:A.?|The.?)?\bComplete\b/i,validateMatch:eI(/(?:A.?|The.?)\bComplete/i),transform:eA(),remove:!0},{field:"complete",pattern:/\bCOMPLETE\b/,transform:eA(),remove:!0},{field:"seasons",pattern:/(?:complete\W|seasons?\W|\W|^)((?:s\d{1,2}[., +/\\&-]+)+s\d{1,2}\b)/i,transform:eS(),remove:!0},{field:"seasons",pattern:/(?:complete\W|seasons?\W|\W|^)[(\[]?(s\d{2,}-\d{2,}\b)[)\]]?/i,transform:eS(),remove:!0},{field:"seasons",pattern:/(?:complete\W|seasons?\W|\W|^)[(\[]?(s[1-9]-[2-9]\b)[)\]]?/i,transform:eS(),remove:!0},{field:"seasons",pattern:/\d+ª(?:.+)?(?:a.?)?\d+ª(?:(?:.+)?(?:temporadas?))/i,transform:eS(),remove:!0},{field:"seasons",pattern:/(?:(?:\bthe\W)?\bcomplete\W)?(?:seasons?|[Сс]езони?|sezon|temporadas?|stagioni)[. ]?[-:]?[. ]?[(\[]?((?:\d{1,2} ?(?:[,/\\&]+ ?)+)+\d{1,2}\b)[)\]]?/i,transform:eS()},{field:"seasons",pattern:/(?:(?:\bthe\W)?\bcomplete\W)?(?:seasons|[Сс]езони?|sezon|temporadas?|stagioni)[. ]?[-:]?[. ]?[(\[]?((?:\d{1,2}[. -]+)+0?[1-9]\d?\b)[)\]]?/i,transform:eS(),remove:!0},{field:"seasons",pattern:/(?:(?:\bthe\W)?\bcomplete\W)?season[. ]?[(\[]?((?:\d{1,2}[. -]+)+0?\d{1,2}\b)[)\]]?(?:.*\.\w{2,4}$)?/i,validateMatch:(e,t)=>{if(/(?:.*\.\w{2,4}$)/i.test(e))return!1;let n=e.substring(t[2],t[3]);return!(/\s{2,}/.test(n)||/^\[[^\]]+\]/.test(e)&&/^\d{1,2} - \d{2,4}$/.test(n))},transform:eS(),remove:!0},{field:"seasons",pattern:/(?:(?:\bthe\W)?\bcomplete\W)?\bseasons?\b[. -]?(\d{1,2}[. -]?(?:to|thru|and|\+|:)[. -]?\d{1,2})\b/i,transform:eS(),remove:!0},{field:"seasons",pattern:/\bseason\b[ .-]?(\d{1,2}[ .-]?(?:to|thru|and|\+)[ .-]?\bseason\b[ .-]?\d{1,2})/i,transform:eS()},{field:"seasons",pattern:/(\d{1,2})(?:-?й)?[. _]?(?:[Сс]езон|sez(?:on)?)(?:\P{L}?\D|$)/iu,transform:eO(),remove:!0},{field:"seasons",pattern:/(?:(?:\bthe\W)?\bcomplete\W)?(?:saison|seizoen|sezon(?:SO?)?|stagione|season|series|temp(?:orada)?):?[. ]?(\d{1,2})/i,transform:eO()},{field:"seasons",pattern:/[Сс]езон:?[. _]?№?(\d{1,2})(?:\d)?/i,validateMatch:eI(/\d{3}/i),transform:eO(),remove:!0},{field:"seasons",pattern:/(?:\D|^)(\d{1,2})Â?[°ºªa]?[. ]*temporada/i,transform:eO(),remove:!0},{field:"seasons",pattern:/\bcaa?p(?:itulo)?s?[. ]?(\d{1,2})\d{2}(?:[ _-]\d{1,4})?\b/i,transform:eO()},{field:"seasons",pattern:/\bt(\d{1,3})(?:[ex]+|$)/i,transform:eO(),remove:!0},{field:"seasons",pattern:/(?:(?:\bthe\W)?\bcomplete)?(?:\W|^)so?([01]?[0-5]?[1-9])(?:[\Wex]|\d{2}\b)/i,validateMatch:ej(),transform:eO(),keepMatching:!0},{field:"seasons",pattern:/(?:so?|t)(\d{1,4})[. ]?[xх-]?[. ]?(?:e|x|х|ep|-|\.)[. ]?\d{1,4}(?:[abc]|v0?[1-4]|\D|$)/i,transform:eO()},{field:"seasons",pattern:/(?:(?:\bthe\W)?\bcomplete\W)?(?:\W|^)(\d{1,2})[. ]?(?:st|nd|rd|th)[. ]*season/i,transform:eO()},{field:"seasons",pattern:/(?:\D|^)(\d{1,2})[Xxх]\d{1,3}(?:\D|$)/,validateMatch:(e,t)=>!("."===e[t[0]]&&t[0]>0&&/\d/.test(e[t[0]-1])),transform:eO()},{field:"seasons",pattern:/\bSn([1-9])(?:\D|$)/,transform:eO()},{field:"seasons",pattern:/[\[(](\d{1,2})\.\d{1,3}[)\]]/,transform:eO()},{field:"seasons",pattern:/-\s?(\d{1,2})\.\d{2,3}\s?-/,transform:eO()},{field:"seasons",pattern:/^(\d{1,2})\.\d{2,3} - /,transform:eO(),skipIfBefore:["year","source","resolution"]},{field:"seasons",pattern:/(?:^|\/)(?:20-20)?(\d{1,2})-\d{2}\b(?:-\d)?/,validateMatch:eI(/^(?:20-20)|(\d{1,2})-\d{2}\b(?:-\d)/),transform:eO()},{field:"seasons",pattern:/[^\w-](\d{1,2})-\d{2}(?:\.\w{2,4}$)/,transform:eO()},{field:"seasons",pattern:/(?:\bEp?(?:isode)? ?\d+\b.*)?\b(\d{2})[ ._]\d{2}(?:.F)?\.\w{2,4}$/,validateMatch:eI(/(?:\bEp?(?:isode)? ?\d+\b.*)/),transform:eO()},{field:"seasons",pattern:/\bEp(?:isode)?\W+(\d{1,2})\.\d{1,3}\b/i,transform:eO()},{field:"seasons",pattern:/(?:(?:\bthe\W)?\bcomplete)?(?:[a-z])?\bs(\d{1,3})(?:[\Wex]|\d{2}\b|$)/i,validateMatch:eT(eI(/(?:[a-z])\bs\d{1,3}/i),ej()),transform:eO(),keepMatching:!0},{field:"seasons",pattern:/\bSeasons?\b.*\b(\d{1,2}-\d{1,2})\b/i,transform:eS()},{field:"seasons",pattern:/(?:\W|^)(\d{1,2})(?:e|ep)\d{1,3}(?:\W|$)/i,transform:eO()},{field:"seasons",pattern:/[\[\(]ТВ-(\d{1,2})[\)\]]/i,transform:eO()},{field:"episodes",pattern:/(?:[\W\d]|^)e[ .]?[(\[]?(\d{1,3}(?:[à .-]*(?:[&+]|e){1,2}[ .]?\d{1,3})+)(?:\W|$)/i,transform:eS()},{field:"episodes",pattern:/(?:[\W\d]|^)ep[ .]?[(\[]?(\d{1,3}(?:[ .-]*(?:[&+]|ep){1,2}[ .]?\d{1,3})+)(?:\W|$)/i,transform:eS()},{field:"episodes",pattern:/(?:[\W\d]|^)\d+[xх][ .]?[(\[]?(\d{1,3}(?:[ .]?[xх][ .]?\d{1,3})+)(?:\W|$)/i,transform:eS()},{field:"episodes",pattern:/(?:[\W\d]|^)(?:episodes?|[Сс]ерии:?)[ .]?[(\[]?(\d{1,3}
2(?:[ .+]*[&+][ .]?\d{1,3})+)(?:\W|$)/i,transform:eS()},{field:"episodes",pattern:/[(\[]?(?:\D|^)(\d{1,3}[ .]?ao[ .]?\d{1,3})[)\]]?(?:\W|$)/i,transform:eS()},{field:"episodes",pattern:/(?:[\W\d]|^)(?:e|eps?|episodes?|[Сс]ерии:?|\d+[xх])[ .]*[(\[]?(\d{1,3}(?:-\d{1,3})+)(?:\W|$)/i,transform:eS()},{field:"episodes",pattern:/\bs\d{1,2}[ .]*-[ .]*\b(\d{1,3}(?:[ .]*~[ .]*\d{1,3})+)\b/i,transform:eS()},{field:"episodes",pattern:/(?:so?|t)\d{1,4}[. ]?[xх-]?[. ]?(?:e|x|х|ep)[. ]?(\d{1,4})(?:[abc]|v0?[1-4]|\D|$)/i,remove:!0,transform:eO()},{field:"episodes",pattern:/(?:so?|t)\d{1,2}\s?[-.]\s?(\d{1,4})(?:[abc]|v0?[1-4]|\D|$)/i,transform:eO()},{field:"episodes",pattern:/\b(?:so?|t)\d{2}(\d{2})\b/i,transform:eO()},{field:"episodes",pattern:/(?:\W|^)(\d{1,3}(?:[ .]*~[ .]*\d{1,3})+)(?:\W|$)/i,transform:eS()},{field:"episodes",pattern:/-\s(\d{1,3}[ .]*-[ .]*\d{1,3})(?:-\d*)?(?:\W|$)/i,validateMatch:eI(/-\s(\d{1,3}[ .]*-[ .]*\d{1,3})(?:-\d*)/i),transform:eS()},{field:"episodes",pattern:/s\d{1,2}\s?\((\d{1,3}[ .]*-[ .]*\d{1,3})\)/i,transform:eS()},{field:"episodes",pattern:/(?:^|\/)(?:20-20)?\d{1,2}-(\d{2})\b(?:-\d)?/,validateMatch:eI(/^(?:20-20)|\d{1,2}-(\d{2})\b(?:-\d)/),transform:eO()},{field:"episodes",pattern:/(?:\d-)?\b\d{1,2}-(\d{2})(?:\.\w{2,4}$)/,validateMatch:eI(/(?:\d-)\b\d{1,2}-(\d{2})/),transform:eO()},{field:"episodes",pattern:/(?:^\[.+].+)([. ]+-[. ]*(\d{1,4})[. ]+)(?:\W)/i,transform:eO(),valueGroup:2,matchGroup:1},{field:"episodes",pattern:/(?:(?:seasons?|[Сс]езони?)\P{L}*)?(?:[ .(\[-]|^)(\d{1,3}(?:[ .]?[,&+~][ .]?\d{1,3})+)(?:[ .)\]-]|$)/iu,validateMatch:eT(eI(/(?:(?:seasons?|[Сс]езони?)\P{L}*)/iu),(e,t)=>{let n=t[2],r=t[3];return!(n>=2&&/\d\./.test(e.substring(n-2,n))||/^\.\d/.test(e.substring(r,r+2)))}),transform:eS()},{field:"episodes",pattern:/(?:(?:seasons?|[Сс]езони?)\P{L}*)?(?:20-20)?(?:[ .(\[-]|^)(\d{1,4}(?:-\d{1,4})+)(?:[ .)(\]]|[+-]\D|$)/iu,validateMatch:eT(eI(/(?:seasons?|[Сс]езони?)\P{L}*|^(?:20-20)/iu),eP(eD("Tatsuki[\\s._-]Fujimoto","i",!1),eI(/\b17-26\b/))),transform:eS()},{field:"episodes",pattern:/\bseason[. ]?\d{1,2}[. ]?-[. ]?(\d{1,3})(?:\D|$)/i,transform:(e,t,n)=>{let r=n.get("seasons");if(r&&Array.isArray(r.value)&&r.value.length>1){t.value=null;return}eO()(e,t,n)}},{field:"episodes",pattern:/\bEp(?:isode)?\W+\d{1,2}\.(\d{1,3})\b/i,transform:eO()},{field:"episodes",pattern:/Ep.\d+.-.\d+/i,transform:eS(),remove:!0},{field:"episodes",pattern:/(\d{1,3})[. ]?(?:of|из|iz)[. ]?\d{1,3}/i,validateMatch:eT(eD("(?:\\D|^)","i",!0),eR("(?:\\D|$)","i",!0)),transform:(e,t)=>{if("string"!=typeof t.value){t.value=null;return}let n=t.value.replace(v," ").trim().split(" ").filter(e=>e);if(0===n.length){t.value=null;return}let r=parseInt(n[0]);if(!isNaN(r)){let e=[];for(let t=1;t<=r;t++)e.push(t);t.value=e;return}t.value=null}},{field:"episodes",pattern:/\bcaa?p(?:itulo)?s?[. ]?(\d{1,2})(\d{2})(?:[ _-](\d{1,2})(\d{2}))?\b/i,remove:!0,transform:(e,t,n)=>{let r=/(\d{1,2})(\d{2})(?:[ _-](\d{1,2})(\d{2}))?\b\s*$/.exec(t.mValue);if(!r){t.value=null;return}let i=parseInt(r[1],10),o=parseInt(r[2],10),a=void 0!==r[4]?parseInt(r[4],10):NaN,s=n.get("seasons"),l=s&&Array.isArray(s.value)&&1===s.value.length?s.value[0]:void 0;if(void 0!==l&&l!==i){let e=parseInt(r[1]+r[2],10),n=void 0!==r[3]?parseInt(r[3]+r[4],10):NaN;if(!isNaN(n)&&n>e){let r=[];for(let t=e;t<=n;t++)r.push(t);t.value=r}else t.value=[e];return}if(!isNaN(a)&&a>o){let e=[];for(let t=o;t<=a;t++)e.push(t);t.value=e}else t.value=[o]}},{field:"episodes",pattern:/(?:\b[ée]p?(?:isode)?|[Ээ]пизод|[Сс]ер(?:ии|ия|\.)?|caa?p(?:itulo)?|epis[oó]dio)[. ]?[-:#№]?[. ]?(\d{1,4})(?:[abc]|v0?[1-4]|\W|$)/i,transform:eO()},{field:"episodes",pattern:/\b(\d{1,3})(?:-?я)?[ ._-]*(?:ser(?:i?[iyj]a|\b)|[Сс]ер(?:ии|ия|\.)?)/i,transform:eO()},{field:"episodes",pattern:/(?:\D|^)\d{1,2}[. ]?[Xxх][. ]?(\d{1,3})(?:[abc]|v0?[1-4]|\D|$)/i,validateMatch:(e,t)=>!("."===e[t[0]]&&t[0]>0&&/\d/.test(e[t[0]-1])),transform:eO()},{field:"episodes",pattern:/[\[(]\d{1,2}\.(\d{1,3})[)\]]/i,transform:eO()},{field:"episodes",pattern:/\b[Ss](?:eason\W?)?\d{1,2}[ .](\d{1,2})\b/,transform:eO()},{field:"episodes",pattern:/-\s?\d{1,2}\.(\d{2,3})\s?-/i,transform:eO()},{field:"episodes",pattern:/^\d{1,2}\.(\d{2,3}) - /,skipIfBefore:["year","source","resolution"],transform:eO()},{field:"episodes",pattern:/\b\d{2}[ ._-](\d{2})(?:.F)?\.\w{2,4}$/i,transform:eO()},{field:"episodes",pattern:/(?:^)?\[(\d{2,3})](?:(?:\.\w{2,4})?$)?/i,validateMatch:eT((e,t)=>0!==t[0],(e,t)=>t[1]!==e.length,eI(/(?:720|1080)|\[(\d{2,3})](?:(?:\.\w{2,4})$)/i)),transform:eO()},{field:"episodes",pattern:/\bodc[. ]+(\d{1,3})\b/i,transform:eO()},{field:"episodes",pattern:/\b264\b|\b265\b/i,validateMatch:(e,t)=>!/\b[xh]\b/i.test(e.substring(0,t[0])),transform:eO(),remove:!0},{field:"episodes",pattern:/(?:\W|^)(?:\d+)?(?:e|ep)(\d{1,3})(?:\W|$)/i,transform:eO(),remove:!0},{field:"episodes",pattern:/\d+.-.\d+TV/i,transform:eS(),remove:!0},{field:"episodes",pattern:/season\s*\d{1,2}\s*(\d{1,4}\s*-\s*\d{1,4})/i,validateMatch:eI(/season\s*\d{1,2}\s*-/i),transform:eS()},{field:"episodes",process:(e,t,n)=>{if(null!==t.value&&void 0!==t.value)return t;let r=/\[(?:480|720|1080)\]/,i=0;for(let e of["year","seasons"])if(n.has(e)){let t=n.get(e);t.mIndex>0&&(0===i||t.mIndex<i)&&(i=t.mIndex)}let o=e.length;for(let e of["resolution","quality","codec","audio"])if(n.has(e)){let t=n.get(e);t.mIndex>0&&t.mIndex<o&&(o=t.mIndex)}let a=e.substring(0,o);i=Math.min(i,e.length);let s=e.substring(i,Math.max(o,i)),l=a.match(/(?:movie\W*|film\W*|^)?(?:[ .]+-[ .]+|[(\[][ .]*)(\d{1,4})(?:a|b|v\d|\.\d)?(?:\W|$)(?:movie|film|\d+)?/i),c="";if(l&&void 0!==l.index){c=l[0];let t=l.index+l[0].length>=a.length&&o<e.length&&/\w/.test(e[o]);0===l.index||/(?:movie\W*|film\W*)(?:[ .]+-[ .]+|[(\[][ .]*)(\d{1,4})/i.test(c)||/(?:movie|film)|(\d{1,4})(?:a|b|v\d|\.\d)(?:\W)(?:\d+)/i.test(c)||r.test(c)||/\d+(?:fps|帧率?)/i.test(c)||t?(l=null,c=""):l[1]&&(c=l[1])}if(!c&&o>0&&o<e.length){let t=e.substring(0,o).match(/[ ._](\d{2,3})(?:[ ._]?v\d)?[ ._(\[]*$/i);if(t&&void 0!==t.index&&t[1]){let e=t.index+t[0].indexOf(t[1]),r=n.get("seasons"),i=void 0!==r&&""!==r.mValue&&e>=r.mIndex&&e<r.mIndex+r.mValue.length,a=n.get("year"),s=void 0!==a&&a.mIndex>=e&&a.mIndex<=o;i||s||(c=t[1])}}if(!c&&(l=s.match(/^(?:[(\[-][ .]?)?(\d{1,4})(?:a|b|v\d)?(?:\Wmovie|\Wfilm|-\d)?(?:\W|$)/i))&&void 0!==l.index&&l[1]){let e=l[0].indexOf(l[1]),t=s.substring(l.index+e);/(\d{1,4})(?:a|b|v\d)?(?:\Wmovie|\Wfilm|-\d)/i.test(t)||r.test(c)?(l=null,c=""):c=l[1]}if(c){let r=parseInt(c=c.replace(/\D/g,""),10),i=n.get("year"),o=void 0!==i&&Str
2ing(i.value)===c;isNaN(r)||o||(t.mIndex=e.indexOf(c),t.mValue=c,t.value=[r])}return t}},{field:"quality",pattern:/\b(?:H[DQ][ .-]*)?CAM(?:H[DQ])?(?:[ .-]*Rip)?\b/i,transform:em("CAM"),skipIfFirst:!0,remove:!0,retryPastTitle:/^cam$/i},{field:"quality",pattern:/\b(?:\w.)?WEB\b|\bWEB(?:(?:[ \.\-\(\],]+\d))?\b/i,validateMatch:eI(/\b(?:\w.)WEB\b|\bWEB(?:(?:[ \.\-\(\],]+\d))\b/i),transform:em("WEB"),remove:!0,skipFromTitle:!0,retryPastTitle:/^web$/i},{field:"country",pattern:/\b(US|UK|AU|NZ)\b/,mustEndTitle:!0},{field:"editions",pattern:/\b(?:custom.?)?Extended(?:[\.\s\-\+_\/(),](?:Editions?|Cut))?\b/i,transform:eE("Extended Edition"),keepMatching:!0,remove:!0,mustEndTitle:!0},{field:"subbed",pattern:/\bSUB(?:FRENCH)\b|\b(?:DAN|E|FIN|PL|SLO|SWE)SUBS?\b/i,transform:eA()},{field:"languages",pattern:/\bmulti(?:ple)?[ .-]*(?:su?$|sub\w*|dub\w*)\b|msub/i,transform:eE("multi subs"),keepMatching:!0,remove:!0},{field:"languages",pattern:/\bmulti(?:ple)?[ .-]*(?:lang(?:uages?)?|audio|VF2)?\b/i,transform:eE("multi audio"),keepMatching:!0},{field:"languages",pattern:/\btri(?:ple)?[ .-]*(?:audio|dub\w*)\b/i,transform:eE("multi audio"),keepMatching:!0},{field:"languages",pattern:/\bdual[ .-]*(?:au?$|[aá]udio|line)\b/i,transform:eE("dual audio"),keepMatching:!0},{field:"languages",pattern:/\bdual\b(?:[ .-]*sub)?/i,validateMatch:eI(/(?:[ .-]*sub)/i),transform:eE("dual audio"),keepMatching:!0},{field:"languages",pattern:/\bengl?(?:sub[A-Z]*)?\b/i,transform:eE("en"),keepMatching:!0},{field:"languages",pattern:/\beng?sub[A-Z]*\b/i,transform:eE("en"),keepMatching:!0},{field:"languages",pattern:/\bing(?:l[eéê]s)?\b/i,transform:eE("en"),keepMatching:!0},{field:"languages",pattern:/\besub\b/i,transform:eE("en"),keepMatching:!0,remove:!0},{field:"languages",pattern:/\benglish\W+(?:subs?|sdh|hi)\b/i,transform:eE("en"),keepMatching:!0},{field:"languages",pattern:/\bEN\b/i,transform:eE("en"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/\benglish?\b/i,transform:eE("en"),keepMatching:!0,skipIfFirst:!0},{field:"languages",pattern:/\b(?:JP|JAP|JPN)\b/i,transform:eE("ja"),keepMatching:!0},{field:"languages",pattern:/(japanese|japon[eê]s)\b/i,transform:eE("ja"),keepMatching:!0,skipIfFirst:!0},{field:"languages",pattern:/\b(?:KOR|kor[ .-]?sub)\b/i,transform:eE("ko"),keepMatching:!0},{field:"languages",pattern:/(korean|coreano)\b/i,transform:eE("ko"),keepMatching:!0,skipIfFirst:!0},{field:"languages",pattern:/\b(?:traditional\W*chinese|chinese\W*traditional)(?:\Wchi)?\b/i,transform:eE("zh-tw"),keepMatching:!0,remove:!0},{field:"languages",pattern:/\bzh-hant\b/i,transform:eE("zh-tw"),keepMatching:!0},{field:"languages",pattern:/\b(?:mand[ae]rin|ch[sn])\b/i,transform:eE("zh"),keepMatching:!0},{field:"languages",pattern:/(?:shang-?)?\bCH(?:I|T)\b/i,validateMatch:eI(/shang-?/i),transform:eE("zh"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/\b(chinese|chin[eê]s)\b/i,transform:eE("zh"),keepMatching:!0,skipIfFirst:!0},{field:"languages",pattern:/\bzh-hans\b/i,transform:eE("zh"),keepMatching:!0},{field:"languages",pattern:/\bFR(?:a|e|anc[eê]s|VF[FQIB2]?)\b/i,transform:eE("fr"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/\b(?:TRUE|SUB).?FRENCH\b|\bFRENCH\b|\bFre?\b/,transform:eE("fr"),keepMatching:!0,remove:!0},{field:"languages",pattern:/\b\[?(?:VF[FQRIB2]?\]?\b|(?:VOST)?FR2?)\b/,transform:eE("fr"),keepMatching:!0,remove:!0},{field:"languages",pattern:/\bVOST(?:FR?|A)?\b/i,transform:eE("fr"),keepMatching:!0},{field:"languages",pattern:/\b(?:spanish\W?latin|american\W*(?:spa|esp?))\b/i,transform:eE("es-419"),keepMatching:!0,remove:!0,skipFromTitle:!0},{field:"languages",pattern:/\b(?:audio.)?lat(?:in?|ino)?\b/i,transform:eE("es-419"),keepMatching:!0},{field:"languages",pattern:/\b(?:audio.)?(?:ESP?|spa|(?:en[ .]+)?espa[nñ]ola?|castellano)\b/i,transform:eE("es"),keepMatching:!0},{field:"languages",pattern:/\bes(?:\.(?:ass|ssa|srt|sub|idx)$)/i,transform:eE("es"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/\bspanish\W+subs?\b/i,transform:eE("es"),keepMatching:!0},{field:"languages",pattern:/\b(spanish|espanhol)\b/i,transform:eE("es"),keepMatching:!0,skipIfFirst:!0},{field:"languages",pattern:/\bSP\b/i,validateMatch:eT(eD("(?:w{3}\\.\\w+\\.)","i",!1),eP(eR("(?:[ .,/-]+(?:[A-Z]{2}[ .,/-]+){2,})","i",!0),eD("(?:(?:[ .,/\\[-]+[A-Z]{2}){2,}[ .,/-]+)","i",!0),eT(eR("(?:[ .,/-]+[A-Z]{2}(?:[ .,/-]|$))","i",!0),eD("(?:[ .,/\\[-]+[A-Z]{2}[ .,/-]+)","i",!0)))),transform:eE("es"),keepMatching:!0,remove:!0},{field:"languages",pattern:/\b(?:p[rt]|en|port)[. (\\/-]*BR\b/i,transform:eE("pt"),keepMatching:!0,remove:!0},{field:"languages",pattern:/\bbr(?:a|azil|azilian)\W+(?:pt|por)\b/i,transform:eE("pt"),keepMatching:!0,remove:!0},{field:"languages",pattern:/\b(?:leg(?:endado|endas?)?|dub(?:lado)?|portugu[eèê]se?)[. -]*BR\b/i,transform:eE("pt"),keepMatching:!0},{field:"languages",pattern:/\bleg(?:endado|endas?)\b/i,transform:eE("pt"),keepMatching:!0},{field:"languages",pattern:/\bportugu[eèê]s[ea]?\b/i,transform:eE("pt"),keepMatching:!0},{field:"languages",pattern:/\bPT[. -]*(?:PT|ENG?|sub(?:s|titles?))\b/i,transform:eE("pt"),keepMatching:!0},{field:"languages",pattern:/\bpt(?:\.(?:ass|ssa|srt|sub|idx)$)/i,transform:eE("pt"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/\bpt\b/i,transform:eE("pt"),keepMatching:!0,remove:!0},{field:"languages",pattern:/\bpor\b/i,transform:eE("pt"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/\bITA\b/i,transform:eE("it"),keepMatching:!0},{field:"languages",pattern:/\bIT\b/i,validateMatch:eT(eD("(?:w{3}\\.\\w+\\.)","i",!1),eP(eR("(?:[ .,/-]+(?:[A-Z]{2}[ .,/-]+){2,})","i",!0),eD("(?:(?:[ .,/\\[-]+[A-Z]{2}){2,}[ .,/-]+)","i",!0))),transform:eE("it"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/\bit/i,validateMatch:eR("(?:\\.(?:ass|ssa|srt|sub|idx)$)","i",!0),transform:eE("it"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/\bitaliano?\b/i,transform:eE("it"),keepMatching:!0,skipIfFirst:!0},{field:"languages",pattern:/\bgreek[ .-]*(?:audio|lang(?:uage)?|subs?(?:titles?)?)?\b/i,transform:eE("el"),keepMatching:!0,skipIfFirst:!0},{field:"languages",pattern:/\b(?:GER|DEU)\b/i,transform:eE("de"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/\bde\b/i,validateMatch:eR("(?:[ .,/-]+(?:[A-Z]{2}[ .,/-]+){2,})","i",!0),transform:eE("de"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/\bde\b/i,transform:eE("de"),validateMatch:eD("(?:[ .,/-]+(?:[A-Z]{2}[ .,/-]+){2,})","i",!0),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/\bde\b/i,transform:eE("de"),validateMatch:eT(eD("(?:[ .,/-]+[A-Z]{2}[ .,/-]+)","i",!0),eR("(?:[ .,/-]+[A-Z]{2}[ .,/-]+)","i",!0)),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/\bde(?:\.(?:ass|ssa|srt|sub|idx)$)/i,transform:eE("de"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/\b(german|alem[aã]o)\b/i,transform:eE("de"),keepMatching:!0,skipIfFirst:!0},{field:"languages",pattern:/\bRUS?\b/i,transform:eE("ru"),keepMatching:!0},{field:"languages",pattern:/(russian|russo)\b/i,transform:eE("ru"),keepMatching:!0,skipIfFirst:!0},{field:"languages",pattern:/\bUKR\b/i,transform:eE("uk"),keepMatching:!0},{field:"languages",pattern:/\bukrainian\b/i,transform:eE("uk"),keepMatching:!0,skipIfFirst:!0},{field:"languages",pattern:/\bhin(?:di)?\b/i,transform:eE("hi"),keepMatching:!0},{field:"languages",pattern:/\b(?:(?:w{3}\.\w+\.)?tel(?:\W*aviv)?|telugu)\b/i,validateMatch:eI(/(?:(?:w{3}\.\w+\.)tel)|(?:tel(?:\W*aviv))/i),transform:eE("te"),keepMatching:!0},{field:"languages",pattern:/\bt[aâ]m(?:il)?\b/i,transform:eE("ta"),keepMatching:!0},{field:"languages",pattern:/\b(?:(?:w{3}\.\w+\.)?MAL(?:ay)?|malayalam)\b/i,validateMatch:eI(/\b(?:(?:w{3}\.\w+\.)MAL)\b/i),transform:eE("ml"),keepMatching:!0,remove:!0,skipIfFirst:!0},{field:"languages",pattern:/\b(?:(?:w{3}\.\w+\.)?KAN(?:nada)?|kannada)\b/i,validateMatch:eI(/\b(?:(?:w{3}\.\w+\.)KAN)\b/i),transform:eE("kn"),keepMatching:!0,remove:!0},{field:"languages",pattern:/\b(?:(?:w{3}\.\w+\.)?MAR(?:a(?:thi)?)?|marathi)\b/i,validateMatch:eI(/\b(?:(?:w{3}\.\w+\.)MAR)\b/i),transform:eE("mr"),keepMatching:!0},{field:"languages",pattern:/\b(?:(?:w{3}\.\w+\.)?GUJ(?:arati)?|gujarati)\b/i,validateMatch:eI(/\b(?:(?:w{3}\.\w+\.)GUJ)\b/i),transform:eE("gu"),keepMatching:!0},{field:"languages",pattern:/\b(?:(?:w{3}\.\w+\.)?PUN(?:jabi)?|punjabi)\b/i,validateMatch:eI(/\b(?:(?:w{3}\.\w+\.)PUN)\b/i),transform:eE("pa"),keepMatching:!0},{field:"languages",pattern:/\b(?:(?:w{3}\.\w+\.)?BEN(?:.\bThe|and|of\b)?(?:gali)?|bengali)\b/i,validateMatch:eI(/\b(?:(?:w{3}\.\w+\.)BEN)|(?:BEN)(?:.\bThe|and|of\b)\b/i),transform:eE("bn"),keepMatching:!0,skipIfFirst:!0}
2,{field:"languages",pattern:/\b(?:YTS\.)?LT\b/i,validateMatch:eI(/(?:YTS\.)/i),transform:eE("lt"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/\blithuanian\b/i,transform:eE("lt"),keepMatching:!0,skipIfFirst:!0},{field:"languages",pattern:/\blatvian\b/i,transform:eE("lv"),keepMatching:!0,skipIfFirst:!0},{field:"languages",pattern:/\bestonian\b/i,transform:eE("et"),keepMatching:!0,skipIfFirst:!0},{field:"languages",pattern:/\b(?:PLDUB|Dub(?:bing.?)?PL|Lek(?:tor.?)?PL|Film.Polski)\b/i,transform:eE("pl"),keepMatching:!0,remove:!0},{field:"languages",pattern:/\b(?:Napisy.PL|PLSUB(?:BED)?)\b/i,transform:eE("pl"),keepMatching:!0,remove:!0},{field:"languages",pattern:/\b(?:(?:w{3}\.\w+\.)?PL|pol)\b/i,validateMatch:eI(/(?:w{3}\.\w+\.)/i),transform:eE("pl"),keepMatching:!0},{field:"languages",pattern:/\b(polish|polon[eê]s|polaco)\b/i,transform:eE("pl"),keepMatching:!0,skipIfFirst:!0},{field:"languages",pattern:/\bCZ[EH]?\b/i,transform:eE("cs"),keepMatching:!0,skipIfFirst:!0},{field:"languages",pattern:/\bczech\b/i,transform:eE("cs"),keepMatching:!0,skipIfFirst:!0},{field:"languages",pattern:/\bslo(?:vak|vakian|subs|[\]_)]?\.\w{2,4}$)\b/i,transform:eE("sk"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/\bHU\b/i,transform:eE("hu"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/\bHUN(?:garian)?\b/i,transform:eE("hu"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/\bROM(?:anian)?\b/i,transform:eE("ro"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/\bRO(?:[ .,/-]*(?:[A-Z]{2}[ .,/-]+)*sub)/i,transform:eE("ro"),keepMatching:!0},{field:"languages",pattern:/\bbul(?:garian)?\b/i,transform:eE("bg"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/\bBGAUDIO\b/i,transform:eE("bg"),keepMatching:!0,remove:!0,skipFromTitle:!0},{field:"languages",pattern:/\b(?:srp|serbian)\b/i,transform:eE("sr"),keepMatching:!0},{field:"languages",pattern:/\b(?:HRV|croatian)\b/i,transform:eE("hr"),keepMatching:!0},{field:"languages",pattern:/\bHR(?:[ .,/-]*(?:[A-Z]{2}[ .,/-]+)*sub\w*)\b/i,transform:eE("hr"),keepMatching:!0},{field:"languages",pattern:/\bslovenian\b/i,transform:eE("sl"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/\b(?:(?:w{3}\.\w+\.)?NL|dut|holand[eê]s)\b/i,validateMatch:eI(/(?:w{3}\.\w+\.)NL/i),transform:eE("nl"),keepMatching:!0},{field:"languages",pattern:/\bdutch\b/i,transform:eE("nl"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/\bflemish\b/i,transform:eE("nl"),keepMatching:!0},{field:"languages",pattern:/\b(?:DK|danska|dansub|nordic)\b/i,transform:eE("da"),keepMatching:!0},{field:"languages",pattern:/\b(danish|dinamarqu[eê]s)\b/i,transform:eE("da"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/\bdan\b(?:.*\.(?:srt|vtt|ssa|ass|sub|idx)$)/i,transform:eE("da"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/\b(?:(?:w{3}\.\w+\.|Sci-)?FI|finsk|finsub|nordic)\b/i,validateMatch:eI(/(?:w{3}\.\w+\.|Sci-)FI/i),transform:eE("fi"),keepMatching:!0},{field:"languages",pattern:/\bfinnish\b/i,transform:eE("fi"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/\b(?:(?:w{3}\.\w+\.)?SE|swe|swesubs?|sv(?:ensk)?|nordic)\b/i,validateMatch:eI(/(?:w{3}\.\w+\.)SE/i),transform:eE("sv"),keepMatching:!0},{field:"languages",pattern:/\b(swedish|sueco)\b/i,transform:eE("sv"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/\b(?:NOR|norsk|norsub|nordic)\b/i,transform:eE("no"),keepMatching:!0},{field:"languages",pattern:/\b(norwegian|noruegu[eê]s|bokm[aå]l|nob|nor(?:[\]_)]?\.\w{2,4}$))\b/i,transform:eE("no"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/\b(?:arabic|[aá]rabe|ara)\b/i,transform:eE("ar"),keepMatching:!0,skipIfFirst:!0},{field:"languages",pattern:/\barab.*(?:audio|lang(?:uage)?|sub(?:s|titles?)?)\b/i,transform:eE("ar"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/\bar(?:\.(?:ass|ssa|srt|sub|idx)$)/i,transform:eE("ar"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/\b(?:turkish|tur(?:co)?)\b/i,transform:eE("tr"),keepMatching:!0,skipFromTitle:!0}
2,{field:"languages",pattern:/\b(TİVİBU|tivibu|bitturk(?:\.net)?|turktorrent)\b/i,transform:eE("tr"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/\bvietnamese\b|\bvie(?:[\]_)]?\.\w{2,4}$)/i,transform:eE("vi"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/\bind(?:onesian)?\b/i,transform:eE("id"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/\b(thai|tailand[eê]s)\b/i,transform:eE("th"),keepMatching:!0,skipIfFirst:!0},{field:"languages",pattern:/\b(THA|tha)\b/,transform:eE("th"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/\b(?:malay|may(?:[\]_)]?\.\w{2,4}$)|(?:subs?\([a-z,]+)may)\b/i,transform:eE("ms"),keepMatching:!0},{field:"languages",pattern:/\bheb(?:rew|raico)?\b/i,transform:eE("he"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/\b(persian|persa)\b/i,transform:eE("fa"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/[\u3040-\u30ff]+/i,transform:eE("ja"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/[\u3400-\u4dbf]+/i,transform:eE("zh"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/[\u4e00-\u9fff]+/i,transform:eE("zh"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/[\uf900-\ufaff]+/i,transform:eE("zh"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/[\uff66-\uff9f]+/i,transform:eE("ja"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/[\u0400-\u04ff]+/i,transform:eE("ru"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/[\u0600-\u06ff]+/i,transform:eE("ar"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/[\u0750-\u077f]+/i,transform:eE("ar"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/[\u0c80-\u0cff]+/i,transform:eE("kn"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/[\u0d00-\u0d7f]+/i,transform:eE("ml"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/[\u0e00-\u0e7f]+/i,transform:eE("th"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/[\u0900-\u097f]+/i,transform:eE("hi"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/[\u0980-\u09ff]+/i,transform:eE("bn"),keepMatching:!0,skipFromTitle:!0},{field:"languages",pattern:/[\u0a00-\u0a7f]+/i,transform:eE("gu"),keepMatching:!0,skipFromTitle:!0},{field:"languages",process:(e,t,n)=>{t.mIndex=0,t.mValue="";let r=t.value;if(r&&r.exists&&(r.exists("pt")||r.exists("es")))return t;let i=n.get("episodes");return(i&&i.mValue&&/capitulo|ao/i.test(i.mValue)||/dublado/i.test(e))&&(r&&r.append?t.value=r.append("pt"):t.value=new o().append("pt")),t}},{field:"subbed",pattern:/\b(?:DAN|E|FIN|PL|SLO|SWE|HEB|NOR|GER|ITA|SPA|POR|DUT|NL|CZE|GRE|TUR|ARA|RUS|HUN|HIN|ENG|KOR|JPN|CHI|VIE|THA)SUBS?\b/i,transform:eA(),keepMatching:!0,remove:!0,skipIfFirst:!0},{field:"subbed",pattern:/\b(?:Official.*?|Dual-?)?sub(?:s|bed)?\b/i,transform:eA(),remove:!0,skipIfFirst:!0},{field:"subbed",pattern:/\b(?:Official.*?|Dual-?)sub(?:s|bed)?\b/i,transform:eA(),remove:!0},{field:"subbed",process:(e,t,n)=>{let r=n.get("languages");if(!r)return t;let i=r.value;return i&&i.exists&&i.exists("multi subs")&&(t.value=!0),t}},{field:"dubbed",pattern:/\b(?:fan\s?dub)\b/i,transform:eA(),remove:!0,skipFromTitle:!0},{field:"dubbed",pattern:/\bMULTi\b/i,transform:eA(),remove:!0},{field:"dubbed",pattern:/\b(?:Fan.*)?(?:DUBBED|dublado|dubbing|DUBS?)\b/i,transform:eA(),remove:!0},{field:"dubbed",pattern:/\b(?:.*\bsub(?:s|bed)?\b)?(?:[ _\-\[(\.])?(dual|multi)(?:[ _\-\[(\.])?(?:audio)\b/i,validateMatch:eI(/\b(?:.*\bsub(s|bed)?\b)/i),transform:eA(),remove:!0},{field:"dubbed",pattern:/\b(?:DUBBED|dublado|dubbing|DUBS?)\b/i,transform:eA()},{field:"dubbed",process:(e,t,n)=>{let r=n.get("languages");if(!r)return t;let i=r.value;return i&&i.exists&&(i.exists("multi audio")||i.exists("dual audio"))&&(t.value=!0),t}},{field:"site",pattern:/\[eztv\]/i,transform:em("eztv.re"),remove:!0,skipFromTitle:!0},{field:"site",pattern:/\beztv\b/i,transform:em("eztv.re"),remove:!0,skipFromTitle:!0},{field:"site",pattern:/(\[([^\[\].]+\.[^\].]+)\])(?:\.\w{2,4}$|\s)/i,transform:ey(),remove:!0,matchGroup:1,valueGroup:2},{field:"site",pattern:/[\[{(](www.\w*.\w+)[)}\]]/i,remove:!0,skipFromTitle:!0},{field:"site",pattern:/[[(【].*?((?:www?.?)?(?:\w+-)?\w+(?:[.\s](?:com|org|net|ms|tv|mx|co|party|vip|nu|pics))\b).*?[\])】]/i,matchGroup:0,remove:!0,skipFromTitle:!0},{field:"site",pattern:/-(www\.[\w-]+\.[\w-]+(?:\.[\w-]+)*)\.(\w{2,4})$/i,transform:ey(),remove:!0,skipFromTitle:!0,matchGroup:1},{field:"site",pattern:/\[([^\[\].]+\.[^\].]+)\](?:\.\w{2,4})?(?:$|\s)/i,transform:ey(),remove:!0,skipFromTitle:!0,matchGroup:1},{field:"site",pattern:/[\[{(](www\.[\w-]+\.[\w-]+(?:\.[\w-]+)*)[)}\]]/i,transform:ey(),remove:!0,skipFromTitle:!0,matchGroup:1},{field:"network",pattern:/\b(?:ATVP?|APTV)\b|\bApple.?TV\+?/i,transform:em("Apple TV"),remove:!0},{field:"network",pattern:/\bAMZN\b|(?<=\W{2})\bAmazon(?:.?HD)?(?=\W{2})/i,transform:em("Prime Video"),remove:!0,skipIfFirst:!0},{field:"network",pattern:/\b(?:NF|Netflix)\b/i,transform:em("Netflix"),remove:!0},{field:"network",pattern:/\bNICK(?:elodeon)?\b/i,transform:em("Nickelodeon"),remove:!0,skipIfFirst:!0},{field:"network",pattern:/\bDSNY?P?\b|(?<=\W{2})\bDisney\+?(?=\W{2})/i,transform:em("Disney+"),remove:!0,skipIfFirst:!0},{field:"network",pattern:/\bSHO\b|(?<=\W{2}
2)\bSHOWTIME(?=\W{2})/i,transform:em("Showtime"),remove:!0,skipIfFirst:!0},{field:"network",pattern:/\b(?:SKST|SKYSHO(?:WTIME)?)\b/i,transform:em("SkyShowtime"),remove:!0},{field:"network",pattern:/\b(?:PMNT|PMTP)\b|\bParamount(?:\+|.?Plus)/i,transform:em("Paramount+"),remove:!0},{field:"network",pattern:/\bPCOK\b|(?<=\W{2})\bPeacock(?=\W{2})/i,transform:em("Peacock"),remove:!0,skipIfFirst:!0},{field:"network",pattern:/\bCRAV\b|(?<=\W{2})\bCRAVE(?=\W{2})/i,transform:em("Crave"),remove:!0,skipIfFirst:!0},{field:"network",pattern:/\bBCORE\b|(?<=\W{2})\bCORE(?=\W{2})/i,transform:em("Sony Pictures Core"),remove:!0,skipIfFirst:!0},{field:"network",pattern:/\b(HMAX|HBOM?(?:ax)?)\b/i,transform:em("HBO Max"),remove:!0},{field:"network",pattern:/(?<=\W{2})MAX\b/i,transform:em("HBO Max"),remove:!0,skipIfFirst:!0},{field:"network",pattern:/(?<=\W{2})STAN\b/i,transform:em("Stan"),remove:!0,skipIfFirst:!0},{field:"network",pattern:/\bitunes\b/i,transform:em("iTunes"),remove:!0},{field:"network",pattern:/\biT\b/,transform:em("iTunes"),remove:!0},{field:"network",pattern:/\bHULU\b/i,transform:em("Hulu"),remove:!0},{field:"network",pattern:/\bCBS\b/i,transform:em("CBS"),remove:!0},{field:"network",pattern:/\bNBC\b/i,transform:em("NBC"),remove:!0},{field:"network",pattern:/\bAMC\b/i,transform:em("AMC"),remove:!0},{field:"network",pattern:/\bPBS\b/i,transform:em("PBS"),remove:!0},{field:"network",pattern:/\b(Crunchyroll|CR)\b/i,transform:em("Crunchyroll"),remove:!0},{field:"network",pattern:/\bVICE\b/,transform:em("VICE"),remove:!0},{field:"network",pattern:/\bSony\b/i,transform:em("Sony"),remove:!0},{field:"network",pattern:/\bHallmark\b/i,transform:em("Hallmark"),remove:!0},{field:"network",pattern:/\bAdult.?Swim\b/i,transform:em("Adult Swim"),remove:!0},{field:"network",pattern:/\b(?:Animal.?Planet|ANPL)\b/i,transform:em("Animal Planet"),remove:!0},{field:"network",pattern:/\bCartoon.?Network(?:.TOONAMI.BROADCAST)?\b/i,transform:em("Cartoon Network"),remove:!0},{field:"network",pattern:/\bCRIT\b/i,transform:em("Criterion Channel"),remove:!0},{field:"network",pattern:/(?<=\W{2})\bG?PLAY(?=\W{2})/i,transform:em("Google TV"),remove:!0,skipIfFirst:!0},{field:"network",pattern:/(?<=\W{2})\b(?:MA|YKW)(?=\W{2})/i,transform:em("Movies Anywhere"),remove:!0,skipIfFirst:!0},{field:"network",pattern:/\bROKU\b/i,transform:em("The Roku Channel"),remove:!0},{field:"network",pattern:/\bDCU\b/i,transform:em("DC Universe"),remove:!0},{field:"network",pattern:/\bSYFY\b/i,transform:em("SYFY"),remove:!0},{field:"network",pattern:/(?<=\W{2})\b(?:MGM[P+]|EPIX)/i,transform:em("MGM+"),remove:!0,skipIfFirst:!0},{field:"group",pattern:/\b(\w+-raws)(?:\.com)?\b/i,remove:!0},{field:"group",process:(e,t,n)=>{if(t.value)return t;let r=function(e,t){let n=e=>{let n=e.toLowerCase();for(let[e,r]of t){if("group"===e)continue;let t=r.matched,i=t.length-1;for(let e=0;e<=t.length;e++){let o=e<=i?t[e]:r.mValue;if(e>i&&i>=0&&o===t[i])break;if(o.length>=n.length&&function(e,t){for(let n=e.indexOf(t);-1!==n;n=e.indexOf(t,n+1)){let r=n+t.length;if((0===n||!L.test(e[n-1]))&&(r===e.length||!L.test(e[r])))return!0}return!1}(o.toLowerCase(),n))return!0}}return!1},r=e=>!K.test(e)&&!n(e),i=(e,t)=>{let r=e.slice(0,t);if(/[\s.]$/.test(r))return!0;let i=$.exec(r);return null!==i&&n(i[0])},o=g.exec(e),a=null===o||/^[\s.\-_]|[\s.\-_]$|[\s.\-_]{2}/.test(o[1])?null:o[1],s=!1;for(let e of t.keys())if("group"!==e&&"container"!==e&&"extension"!==e){s=!0;break}let l=null===a&&q.some(e=>t.has(e)),c=e.replace(F,""),u=!1;for(;;){let e=c.length;for(;e>0&&V.test(c[e-1]);)e--;e<c.length&&(c=c.slice(0,e),u=!0);let t=H.exec(c);if(null===t)break;let n=l&&/[\s.]/.test(t[1])?W.exec(c):null;if(n&&i(c,n.index)&&r(n[1]))return{value:n[1],index:n.index+n[0].length-1-n[1].length};c=c.slice(0,t.index)}let h=s?U.exec(c):null;return h&&(void 0===h[1]?!u||i(c,h.index):l&&!u)&&r(h[2])?{value:h[2],index:h.index+h[0].length-h[2].length}:null===a?null:{value:a,index:0}}(e,n);return null===r?t.value=null:(t.value=r.value,t.mValue=r.value,t.mIndex=r.index),t}},{field:"extension",pattern:/\.(3g2|3gp|avi|flv|mkv|mk3d|mov|mp2|mp4|m4v|mpe|mpeg|mpg|mpv|webm|wmv|ogm|divx|ts|m2ts|iso|vob|sub|idx|ttxt|txt|smi|srt|ssa|ass|vtt|nfo|html)$/i,transform:eg()},{field:"audio",pattern:/\bMP3\b/i,transform:eE("MP3"),remove:!0,keepMatching:!0}];function eN(e){return function(e,t,n=!0){let r=new Map;eh.test(e)&&(e=e.replace(x," ")),-1!==e.indexOf("_")&&(e=e.replace(b," "));let i=e.length,a=-1,s=!1,{gram0:v,gram1:y,gram2:B,gateOff:F,gates:V,unicodeSensitive:H}=n?function(e){let t=ec.get(e);if(void 0!==t&&t.gram0.length===e.length)return t;let n=function(e){let t=e.length,n=new Int32Array(t).fill(-1),r=new Int32Array(t).fill(-1),i=new Int32Array(t).fill(-1),o=[n,r,i],a=new Int32Array(t).fill(-1),s=new Uint8Array(t),l=[],c=0;for(let n=0;n<t;n++){var u;let t=e[n];if(!t.pattern)continue;(u=t.pattern).flags.includes("u")&&u.flags.includes("i")&&(s[n]=1);let r=(function(e){let t=new eo(e.source).parse(),n=[];!function e(t,n){switch(t.t){case"seq":for(let r of t.items)e(r,n);break;case"rep":t.min>0&&e(t.node,n);break;case"look":t.positive&&e(t.node,n);break;default:n.push(function e(t){switch(t.t){case"lit":return t.set;case"rep":return t.min>
20?e(t.node):null;case"look":return t.positive?e(t.node):null;case"seq":{let n=null,r=-1/0;for(let i of t.items){let t=e(i);if(!ea(t))continue;let o=es(t);o>r&&(r=o,n=t)}return n}case"alt":{let n=[];for(let r of t.options){let t=e(r);if(null===t||(n.push(...t),n.length>16))return null}let r=[...new Set(n)];return r.length>0?r:null}default:return null}}(t))}}(t,n);let r=[],i=new Set;for(let e of n){if(!ea(e))continue;let t=[...new Set(e.map(e=>e.toLowerCase()))].sort(),n=t.join("");i.has(n)||(i.add(n),r.push(t))}return r.sort((e,t)=>es(t)-es(e)),r.slice(0,4)})(t.pattern).filter(e=>e.every(e=>en(e).length>0));if(0===r.length)continue;let i=[],h=[];for(let e of r)if(1===e.length&&i.length<3)for(let t of en(e[0]))i.length<3&&!i.includes(t)&&i.push(t);else h.push(e);if(0!==i.length||0!==h.length){c++;for(let e=0;e<i.length;e++)o[e][n]=i[e];if(0!==h.length)for(let e of(a[n]=l.length,l.push(h.length),h)){let t=l.length;for(let t of(l.push(0,e.length),e)){let e=en(t);l.push(e.length,...e)}l[t]=l.length-t}}}return{gram0:n,gram1:r,gram2:i,gateOff:a,gates:Int32Array.from(l),unicodeSensitive:s,gatedCount:c}}(e);return ec.set(e,n),n}(t):function(e){let t=el.get(e);if(void 0===t){let n=new Int32Array(e).fill(-1);t={gram0:n,gram1:n,gram2:n,gateOff:n,gates:new Int32Array(0),unicodeSensitive:new Uint8Array(e),gatedCount:0},el.set(e,t)}return t}(t.length);eu.reset(e);let W=eu.bits,$=eu.nonAscii;for(let n=0;n<t.length;n++){if(!($&&1===H[n])){let e=v[n];if(e>=0&&((W[e>>>5]&1<<(31&e))==0||(e=y[n])>=0&&((W[e>>>5]&1<<(31&e))==0||(e=B[n])>=0&&(W[e>>>5]&1<<(31&e))==0)))continue;let t=F[n];if(t>=0&&!function(e,t,n){let r=t,i=e[r++];for(let t=0;t<i;t++){let t=r,i=e[r],o=e[r+1],a=r+2,s=!1;for(let t=0;t<o;t++){let t=e[a++],r=!0;for(let i=0;i<t;i++){let t=e[a+i];if((n[t>>>5]&1<<(31&t))==0){r=!1;break}}if(a+=t,r){s=!0;break}}if(!s)return!1;r=t+i}return!0}(V,t,W))continue}let l=t[n],c=l.field,u=l.skipFromTitle??!1,h=r.get(c),d=void 0!==h;if(l.pattern){if(d&&!l.keepMatching)continue;let t=l.pattern.exec(e);if(null===t)continue;if(l.retryPastTitle&&t.index<i&&l.retryPastTitle.test(t[0])){let n=function(e){let t=ep.get(e);return t||(t=RegExp(e.source,e.flags+"g"),ep.set(e,t)),t}(l.pattern);n.lastIndex=0;let r=null;for(;null!==(r=n.exec(e))&&!(r.index>=i);)n.lastIndex===r.index&&n.lastIndex++;if(null===r)continue;t=r}let n=t.index,a=null;if(l.validateMatch&&(a=G(t,e),!l.validateMatch(e,a)))continue;let s=!1;if(l.skipIfFirst){let e=!1,t=!1;for(let[i,o]of r)if(i!==c&&o.mValue&&(e=!0,n>=o.mIndex)){t=!0;break}s=e&&!t}if(s)continue;if(l.skipIfBefore&&l.skipIfBefore.length>0){for(let e of l.skipIfBefore){let t=r.get(e);if(t&&n<t.mIndex){s=!0;break}}if(s)continue}if(l.mustEndTitle&&n+t[0].length<i-1)continue;let f=t[0],p=f;if(t.length>1&&(void 0===l.valueGroup||0===l.valueGroup?p=t[1]??"":t.length>l.valueGroup&&(p=t[l.valueGroup]??"")),91===e.charCodeAt(0)){let t=g.exec(e);t&&t[0].includes(f)&&(u=!0)}d||(h={mIndex:0,mValue:"",matched:[],value:ed.has(c)?new o:null,remove:!1,processed:!1},r.set(c,h)),h&&(h.mIndex=n,h.mValue=f,h.matched.push(f),ed.has(c)||(h.value=p),l.matchGroup&&(null===a&&(a=G(t,e)),h.mIndex=a[2*l.matchGroup],h.mValue=t[l.matchGroup]??""))}if(l.process)if(d&&h)h=l.process(e,h,r);else{let t={mIndex:0,mValue:"",matched:[],value:null,remove:!1,processed:!1};null!==(h=l.process(e,t,r)).value&&r.set(c,h)}if(!h)continue;if(null!==h.value&&l.transform&&l.transform(e,h,r),null===h.value){r.delete(c);continue}if(!r.has(c)||h.processed&&!l.keepMatching&&!ed.has(c))continue;let f="episodes"===c&&!s&&""!==h.mValue,p=!1;if(f){let t=91===e.charCodeAt(0)?g.exec(e):null,n=h.mIndex>0&&ef.test(e[h.mIndex-1])&&L.test(h.mValue[0]),r=null!==t&&h.mIndex<t[0].length;p=!n&&!r}let m=l.remove||h.remove;m&&(h.remove=!0,a>=0&&h.mIndex<a&&(a=h.mIndex+h.mValue.length<=a?a-h.mValue.length:h.mIndex),e=e.substring(0,h.mIndex)+e.substring(h.mIndex+h.mValue.length),eu.spliced(e,h.mIndex)),f&&(s=!0,p&&(a=m?h.mIndex:h.mIndex+h.mValue.length)),!u&&0!==h.mIndex&&h.mIndex<i&&(i=h.mIndex),h.remove&&(u||0===h.mIndex)&&h.mIndex<i&&(i-=h.mValue.length),h.remove=!1,h.processed=!0}let U={};for(let[e,t]of r){let n=t.value;if(n instanceof o){let t=n.values;"languages"===e&&t.includes("es-419")?U[e]=t.filter(e=>"es"!==e):U[e]=t}else U[e]=n}let K=Math.max(Math.min(i,e.length),0),q=e.substring(0,K);U.episodes&&U.episodes.length>0&&(q=q.replace(k,"")),U.title=function(e){let t=e.trim(),n=function(e){for(let t=0;t<e.length;t++)if(e.charCodeAt(t)>=128)return!0;return!1}(t);if(-1!==t.indexOf("_")&&(t=t.replace(M," ")),(-1!==t.indexOf("[")||-1!==t.indexOf("("))&&(t=t.replace(f,"")),t=t.replace(h,""),n||-1!==t.indexOf("/")){let e=t.match(l);if(e)for(let n=1;n<e.length;n++)e[n]&&(t=t.replace(e[n],""))}if(-1!=="[【★".indexOf(t[0])&&(t=t.replace(p,"$1")),-1!=="]】★".indexOf(t[t.length-1])&&(t=t.replace(m,"$1")),n){let e=(t=t.replace(c,"")).match(u);if(e){for(let n=1;n<e.length;n++)if(e[n]){t=t.replace(e[n],"");break}}}!(t=t.replace(d,"")).includes(" ")&&t.includes(".")&&(t=t.replace(A," "));for(let e=0;e<E.length;e++){let[n,r]=S[e];C(t,n)!==C(t,r)&&(t=t.replace(E[e][0],"").replace(E[e][1],""))}return(t=(t=t.replace(w,"")).replace(x," ")).trim()}(q);let Z=r.get("episodes");if(U.episodes&&U.episodes.length>0&&void 0!==Z&&/\D/.test(Z.mValue)&&!/\p{L}$/u.test(Z.mValue)&&a>0&&a<e.length){let t=function(e,t,n){var r,i;let o=0;for(let n=t-1;n>=0&&N(e[n]);n--)o++;0===o&&t>0&&"-"===(r=e)[i=t-1]&&i>0&&!N(r[i-1])&&i+1<r.length&&!N(r[i+1])&&(o=1);let a=0,s=t;for(;s<e.length&&N(e[s]);)a++,s++;if(Math.min(o,1)+a!==1||s>=e.length)return null;let l=[],c="";for(;s<e.length;){P.lastIndex=s;let t=P.exec(e);if(!t||t.index!==s){c=e[s];break}let n=t[0];if("&"===n||L.test(n))l.push(n);else if(l.length>0)break;if(N(e[s+=n.length])){if(N(e[s+1]))break;s++}}if(")"===c||"]"===c||"}"===c)return null;for(l.length>0&&(l[0]=l[0].replace(/^-+/,""),""===l[0]&&l.shift());l.length>0;){let e=l[l.length-1];if(n&&e.toLowerCase().endsWith("-"+n.toLowerCase())&&(e=e.slice(0,e.length-n.length-1),l[l.length-1]=e),""===e||T.test(e)||/^(?:v\d{1,2}|rs\d{1,2})$/i.test(e)||void 0!==n&&e.toLowerCase()===n.toLowerCase()||z(e)||function(e){let t=e.replace(_,"");return j.test(t)||I.test(t)}(e)){l.pop();continue}break}if(l.length>0&&(l[l.length-1]=l[l.length-1].replace(/-+$/,""),""===l[l.length-1]&&l.pop()),0===l.length||l.length>12)return null;let u=l[0].replace(_,"");if(D.test(u)||R.test(u)&&(l.length<=2||z(l[1])||!/\p{Ll}/u.test(l[1]))||/^(?:\d{3,4}[pi]|[48]k)$/i.test(u)||1===l.length&&(u.length<3||!/\p{Ll}/u.test(u)))return null;let h=l.join(" ");return!O.test(h)||/^(?:of|из|iz) \d+$/i.test(h)||/^ep(?:isode)?s?[ .]*\d{1,4}$/i.test(h)?null:h}(e,a,U.group);t&&(U.episodeTitle=t)}return U}(e,eL)}},38902(e,t,n){"use strict";n.d(t,{Aj:()=>l,Ds:()=>u,h2:()=>c,mj:()=>s,ph:()=>a});var r,i=n(77568),o=n(84992);function a(e,t,n){let r,o=[];return a=>{let s=e(a);return(s.length!==o.length||s.some((e,t)=>!(0,i.n4)(o[t],e)))&&(o=s,r=t(...s),n?.onChange?.(r)),r}}function s(){return{guards:{and:(...e)=>function(t){return e.every(e=>t.guard(e))},or:(...e)=>function(t){return e.some(e=>t.guard(e))},not:e=>function(t){return!t.guard(e)}},createMachine:e=>e,choose:e=>function({choose:t}){return t(e)?.actions}}}var l=((r=l||{}).NotStarted="Not Started",r.Started="Started",r.Stopped="Stopped",r),c="__init__";function u(e){let t=()=>e.getRootNode?.()??document,n=()=>(0,o.YE)(t()),r=()=>(0,o.bq)(t());return{...e,getRootNode:t,getDoc:n,getWin:()=>n().defaultView??window,getActiveElement:r,isActiveElement:e=>e===r(),getById:e=>t().getElementById(e)}}},84992(e,t,n){"use strict";n.d(t,{$S:()=>S,Ml:()=>m,TH:()=>x,U4:()=>k,VL:()=>g,YE:()=>c,bq:()=>h,er:()=>M,hx:()=>i,kn:()=>w,mx:()=>A,nr:()=>f,q_:()=>p,rq:()=>a,rs:()=>b,sE:()=>o,zk:()=>u,zn:()=>E});var r=e=>"object"==typeof e&&null!==e,i=0x7fffffff,o=e=>e?"":void 0,a=e=>e?"true":void 0,s=e=>r(e)&&1===e.nodeType&&"string"==typeof e.nodeName,l=e=>r(e)&&9===e.nodeType;function c(e){return l(e)?e:r(e)&&e===e.window?e.document:e?.ownerDocument??document}function u(e){return r(e)&&void 0!==e.nodeType&&11===e.nodeType&&"host"in e?u(e.host):l(e)?e.defaultView??window:s(e)?e.ownerDocument?.defaultView??window:window}function h(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var d=e=>{let t;return"u">typeof document&&e.test((t=navigator.userAgentData,t?.platform??navigator.platform))},f=()=>{let e;return(d(/^Mac/i)||d(/^iPhone/i)||d(/^iPad/i)||d(/^Mac/i)&&navigator.maxTouchPoints>1)&&(e=/apple/i,"u">typeof document&&e.test(navigator.vendor))};function p(e){var t;return((t=e).nativeEvent??t).isComposing||229===e.keyCode}var m=e=>0===e.button,g=e=>e.ctrlKey||e.altKey||e.metaKey,v=new Set(["PageUp","PageDown"]),y=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]);function b(e){return e.ctrlKey||e.metaKey?.1:v.has(e.key)||e.shiftKey&&y.has(e.key)?10:1}function x(e,t="client"){let n="touches"in e&&e.touches.length>0?e.touches[0]||e.changedTouches[0]:e;return{x:n[`${t}X`],y:n[`${t}Y`]}}var w=(e,t,n,r)=>{let i="function"==typeof e?e():e;return i?.addEventListener(t,n,r),()=>{i?.removeEventListener(t,n,r)}};function k(e,t,n="value"){if(!e)return;let r="input"===e.localName?"HTMLInputElement":"textarea"===e.localName?"HTMLTextAreaElement":"select"===e.localName?"HTMLSelectElement":void 0;if(r){let i=function(e,t){let{type:n="HTMLInputElement",property:r="value"}=t;return Object.getOwnPropertyDescriptor(u(e)[n].prototype,r)??{}}(e,{type:r,property:n});i.set?.call(e,t)}e.setAttribute(n,t)}function S(e,t){if(!e)return;let{onFieldsetDisabledChange:n,onFormReset:r}=t,i=[function(e,t){if(!e)return;let n=e.matches("textarea, input, select, button")?e.form:e.closest("form"),r=e=>{e.defaultPrevented||t()};return n?.addEventListener("reset",r,{passive:!0}),()=>n?.removeEventListener("reset",r)}(e,r),function(e,t){let n=e?.closest("fieldset");if(!n)return;t(n.disabled);let r=new(u(n)).MutationObserver(()=>t(n.disabled));return r.observe(n,{attributes:!0,attributeFilter:["disabled"]}),()=>r.disconnect()}(e,n)];return()=>
2i.forEach(e=>e?.())}function M(e){let t,n=globalThis.requestAnimationFrame(()=>{t=e()});return()=>{globalThis.cancelAnimationFrame(n),t?.()}}function A(e,t){let{defer:n}=t,r=[];return r.push((n?M:e=>e())(()=>{let n="function"==typeof e?e():e;r.push(function(e,t){if(!e)return;let{attributes:n,callback:r}=t,i=new(e.ownerDocument.defaultView||window).MutationObserver(e=>{for(let t of e)"attributes"===t.type&&t.attributeName&&n.includes(t.attributeName)&&r(t)});return i.observe(e,{attributes:!0,attributeFilter:n}),()=>i.disconnect()}(n,t))})),()=>{r.forEach(e=>e?.())}}function E(e,t){let n=e.body;if(!("pointerLockElement"in e||"mozPointerLockElement"in e))return;try{n.requestPointerLock()}catch{}let r=[w(e,"pointerlockchange",function(){t?.(!!e.pointerLockElement)},!1),w(e,"pointerlockerror",function(n){e.pointerLockElement&&t?.(!1),console.error("PointerLock error occurred:",n),e.exitPointerLock()},!1)];return()=>{r.forEach(e=>e()),e.exitPointerLock()}}},63121(e,t,n){"use strict";n.d(t,{Ng:()=>j,Aq:()=>V});var r=(e,t=[])=>({parts:(...n)=>{if(o(t))return r(e,n);throw Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...n)=>r(e,[...t,...n]),omit:(...n)=>r(e,t.filter(e=>!n.includes(e))),rename:e=>r(e,t),keys:()=>t,build:()=>[...new Set(t)].reduce((t,n)=>Object.assign(t,{[n]:{selector:`&[data-scope="${i(e)}"][data-part="${i(n)}"], & [data-scope="${i(e)}"][data-part="${i(n)}"]`,attrs:{"data-scope":i(e),"data-part":i(n)}}}),{})}),i=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),o=e=>0===e.length,a=n(84992),s=n(77568),l=n(38902);let c=new Map,u=!1;try{u="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch{}let h=!1;try{h="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch{}let d={degree:{narrow:{default:"\xb0","ja-JP":" 度","zh-TW":"度","sl-SI":" \xb0"}}};class f{format(e){let t="";if(t=u||null==this.options.signDisplay?this.numberFormatter.format(e):function(e,t,n){if("auto"===t)return e.format(n);{if("never"===t)return e.format(Math.abs(n));let r=!1;if("always"===t?r=n>0||Object.is(n,0):"exceptZero"===t&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),!r)return e.format(n);{let t=e.format(-n),r=e.format(n),i=t.replace(r,"").replace(/\u200e|\u061C/,"");return 1!=[...i].length&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),t.replace(r,"!!!").replace(i,"+").replace("!!!",r)}}}(this.numberFormatter,this.options.signDisplay,e),"unit"===this.options.style&&!h){var n;let{unit:e,unitDisplay:r="short",locale:i}=this.resolvedOptions();if(!e)return t;let o=null==(n=d[e])?void 0:n[r];t+=o[i]||o.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.numberFormatter.formatRange)return this.numberFormatter.formatRange(e,t);if(t<e)throw RangeError("End date must be >= start date");return`${this.format(e)} \u{2013} ${this.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.numberFormatter.formatRangeToParts)return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw RangeError("End date must be >= start date");let n=this.numberFormatter.formatToParts(e),r=this.numberFormatter.formatToParts(t);return[...n.map(e=>({...e,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...r.map(e=>({...e,source:"endRange"}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return u||null==this.options.signDisplay||(e={...e,signDisplay:this.options.signDisplay}),h||"unit"!==this.options.style||(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=function(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),"unit"===t.style&&!h){var r;let{unit:e,unitDisplay:n="short"}=t;if(!e)throw Error('unit option must be provided with style: "unit"');if(!(null==(r=d[e])?void 0:r[n]))throw Error(`Unsupported unit ${e} with unitDisplay = ${n}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((e,t)=>
2e[0]<t[0]?-1:1).join():"");if(c.has(i))return c.get(i);let o=new Intl.NumberFormat(e,t);return c.set(i,o),o}(e,t),this.options=t}}let p=RegExp("^.*\\(.*\\).*$"),m=["latn","arab","hanidec","deva","beng"];class g{parse(e){return y(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,n){return y(this.locale,this.options,e).isValidPartialNumber(e,t,n)}getNumberingSystem(e){return y(this.locale,this.options,e).options.numberingSystem}constructor(e,t={}){this.locale=e,this.options=t}}let v=new Map;function y(e,t,n){let r=b(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of m)if(i!==r.options.numberingSystem){let r=b(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(r.isValidPartialNumber(n))return r}}return r}function b(e,t){let n=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():""),r=v.get(n);return r||(r=new x(e,t),v.set(n,r)),r}class x{parse(e){let t=this.sanitize(e);if(this.symbols.group&&(t=S(t,this.symbols.group,"")),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(t=t.replace(this.symbols.minusSign,"-")),t=t.replace(this.symbols.numeral,this.symbols.index),"percent"===this.options.style){let e=t.indexOf("-"),n=(t=(t=t.replace("-","")).replace("+","")).indexOf(".");-1===n&&(n=t.length),t=t.replace(".",""),t=n-2==0?`0.${t}`:n-2==-1?`0.0${t}`:n-2==-2?"0.00":`${t.slice(0,n-2)}.${t.slice(n-2)}`,e>-1&&(t=`-${t}`)}let n=t?+t:NaN;if(isNaN(n))return NaN;if("percent"===this.options.style){var r,i;let e={...this.options,style:"decimal",minimumFractionDigits:Math.min((null!=(r=this.options.minimumFractionDigits)?r:0)+2,20),maximumFractionDigits:Math.min((null!=(i=this.options.maximumFractionDigits)?i:0)+2,20)};return new g(this.locale,e).parse(new f(this.locale,e).format(n))}return"accounting"===this.options.currencySign&&p.test(e)&&(n*=-1),n}sanitize(e){return e=e.replace(this.symbols.literals,""),this.symbols.minusSign&&(e=e.replace("-",this.symbols.minusSign)),"arab"===this.options.numberingSystem&&(this.symbols.decimal&&(e=(e=e.replace(",",this.symbols.decimal)).replace(String.fromCharCode(1548),this.symbols.decimal)),this.symbols.group&&(e=S(e,".",this.symbols.group))),"fr-FR"===this.options.locale&&this.symbols.group&&(e=S(e," ",this.symbols.group),e=S(e,/\u00A0/g,this.symbols.group)),e}isValidPartialNumber(e,t=-1/0,n=1/0){return e=this.sanitize(e),this.symbols.minusSign&&e.startsWith(this.symbols.minusSign)&&t<0?e=e.slice(this.symbols.minusSign.length):this.symbols.plusSign&&e.startsWith(this.symbols.plusSign)&&n>0&&(e=e.slice(this.symbols.plusSign.length)),!(this.symbols.group&&e.startsWith(this.symbols.group)||this.symbols.decimal&&e.indexOf(this.symbols.decimal)>-1&&0===this.options.maximumFractionDigits)&&(this.symbols.group&&(e=S(e,this.symbols.group,"")),e=e.replace(this.symbols.numeral,""),this.symbols.decimal&&(e=e.replace(this.symbols.decimal,"")),0===e.length)}constructor(e,t={}){var n,r;this.locale=e,1!==t.roundingIncrement&&null!=t.roundingIncrement&&(null==t.maximumFractionDigits&&null==t.minimumFractionDigits?(t.maximumFractionDigits=0,t.minimumFractionDigits=0):null==t.maximumFractionDigits?t.maximumFractionDigits=t.minimumFractionDigits:null==t.minimumFractionDigits&&(t.minimumFractionDigits=t.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(e,t),this.options=this.formatter.resolvedOptions(),this.symbols=function(e,t,n,r){var i,o,a,s,l;let c=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),u=c.formatToParts(-10000.111),h=c.formatToParts(10000.111),d=k.map(e=>c.formatToParts(e)),f=null!=(l=null==(i=u.find(e=>"minusSign"===e.type))?void 0:i.value)?l:"-",p=null==(o=h.find(e=>"plusSign"===e.type))?void 0:o.value;p||(null==r?void 0:r.signDisplay)!=="exceptZero"&&(null==r?void 0:r.signDisplay)!=="always"||(p="+");let m=null==(a=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(e=>"decimal"===e.type))?void 0:a.value,g=null==(s=u.find(e=>"group"===e.type))?void 0:s.value,v=[...new Set([...u.filter(e=>!w.has(e.type)).map(e=>M(e.value)),...d.flatMap(e=>e.filter(e=>!w.has(e.type)).map(e=>M(e.value)))])].sort((e,t)=>
2t.length-e.length),y=0===v.length?RegExp("[\\p{White_Space}]","gu"):RegExp(`${v.join("|")}|[\\p{White_Space}]`,"gu"),b=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(0x24cb016ea)].reverse(),x=new Map(b.map((e,t)=>[e,t]));return{minusSign:f,plusSign:p,decimal:m,group:g,literals:y,numeral:RegExp(`[${b.join("")}]`,"g"),index:e=>String(x.get(e))}}(e,this.formatter,this.options,t),"percent"===this.options.style&&((null!=(n=this.options.minimumFractionDigits)?n:0)>18||(null!=(r=this.options.maximumFractionDigits)?r:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}let w=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),k=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function S(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function M(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var A=n(67024),E=r("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber").build(),C=e=>e.ids?.input??`number-input:${e.id}:input`,O=e=>e.ids?.incrementTrigger??`number-input:${e.id}:inc`,P=e=>e.ids?.decrementTrigger??`number-input:${e.id}:dec`,T=e=>`number-input:${e.id}:cursor`,D=e=>e.getById(C(e)),R=e=>e.getDoc().getElementById(T(e));function j(e,t){let{state:n,send:r,prop:i,scope:o,computed:l}=e,c=n.hasTag("focus"),u=l("isDisabled"),h=i("readOnly"),d=l("isValueEmpty"),f=l("isOutOfRange")||!!i("invalid"),p=u||!l("canIncrement")||h,m=u||!l("canDecrement")||h,g=i("translations");return{focused:c,invalid:f,empty:d,value:l("formattedValue"),valueAsNumber:l("valueAsNumber"),setValue(e){r({type:"VALUE.SET",value:e})},clearValue(){r({type:"VALUE.CLEAR"})},increment(){r({type:"VALUE.INCREMENT"})},decrement(){r({type:"VALUE.DECREMENT"})},setToMax(){r({type:"VALUE.SET",value:i("max")})},setToMin(){r({type:"VALUE.SET",value:i("min")})},focus(){D(o)?.focus()},getRootProps:()=>t.element({id:o.ids?.root??`number-input:${o.id}`,...E.root.attrs,dir:i("dir"),"data-disabled":(0,a.sE)(u),"data-focus":(0,a.sE)(c),"data-invalid":(0,a.sE)(f)}),getLabelProps:()=>t.label({...E.label.attrs,dir:i("dir"),"data-disabled":(0,a.sE)(u),"data-focus":(0,a.sE)(c),"data-invalid":(0,a.sE)(f),id:o.ids?.label??`number-input:${o.id}:label`,htmlFor:C(o)}),getControlProps:()=>t.element({...E.control.attrs,dir:i("dir"),role:"group","aria-disabled":u,"data-focus":(0,a.sE)(c),"data-disabled":(0,a.sE)(u),"data-invalid":(0,a.sE)(f),"aria-invalid":(0,a.rq)(f)}),getValueTextProps:()=>t.element({...E.valueText.attrs,dir:i("dir"),"data-disabled":(0,a.sE)(u),"data-invalid":(0,a.sE)(f),"data-focus":(0,a.sE)(c)}),getInputProps:()=>t.input({...E.input.attrs,dir:i("dir"),name:i("name"),form:i("form"),id:C(o),role:"spinbutton",defaultValue:l("formattedValue"),pattern:i("pattern"),inputMode:i("inputMode"),"aria-invalid":(0,a.rq)(f),"data-invalid":(0,a.sE)(f),disabled:u,"data-disabled":(0,a.sE)(u),readOnly:h,required:i("required"),autoComplete:"off",autoCorrect:"off",spellCheck:"false",type:"text","aria-roledescription":"numberfield","aria-valuemin":i("min"),"aria-valuemax":i("max"),"aria-valuenow":Number.isNaN(l("valueAsNumber"))?void 0:l("valueAsNumber"),"aria-valuetext":l("valueText"),onFocus(){r({type:"INPUT.FOCUS"})},onBlur(){r({type:"INPUT.BLUR"})},onInput(e){r({type:"INPUT.CHANGE",target:e.currentTarget,hint:"set"})},onBeforeInput(e){try{let{selectionStart:t,selectionEnd:n,value:r}=e.currentTarget,i=r.slice(0,t)+(e.data??"")+r.slice(n);l("parser").isValidPartialNumber(i)||e.preventDefault()}catch{}},onKeyDown(e){if(e.defaultPrevented||h||(0,a.q_)(e))return;let t=(0,a.rs)(e)*i("step"),n={ArrowUp(){r({type:"INPUT.ARROW_UP",step:t}),e.preventDefault()},ArrowDown(){r({type:"INPUT.ARROW_DOWN",step:t}),e.preventDefault()},Home(){(0,a.VL)(e)||(r({type:"INPUT.HOME"}),e.preventDefault())},End(){(0,a.VL)(e)||(r({type:"INPUT.END"}),e.preventDefault())},Enter(){r({type:"INPUT.ENTER"})}}[e.key];n?.(e)}}),getDecrementTriggerProps:()=>t.button({...E.decrementTrigger.attrs,dir:i("dir"),id:P(o),disabled:m,"data-disabled":(0,a.sE)(m),"aria-label":g.decrementLabel,type:"button",tabIndex:-1,"aria-controls":C(o),onPointerDown(e){m||(0,a.Ml)(e)&&(r({type:"TRIGGER.PRESS_DOWN",hint:"decrement",pointerType:e.pointerType}),"mouse"===e.pointerType&&e.preventDefault(),"touch"===e.pointerType&&e.currentTarget?.focus({preventScroll:!0}))},onPointerUp(e){r({type:"TRIGGER.PRESS_UP",hint:"decrement",pointerType:e.pointerType})},onPointerLeave(){m||r({type:"TRIGGER.PRESS_UP",hint:"decrement"})}}),getIncrementTriggerProps:()=>t.button({...E.incrementTrigger.attrs,dir:i("dir"),id:O(o),disabled:p,"data-disabled":(0,a.sE)(p),"aria-label":g.incrementLabel,type:"button",tabIndex:-1,"aria-controls":C(o),onPointerDown(e){!p&&(0,a.Ml)(e)&&(r({type:"TRIGGER.PRESS_DOWN",hint:"increment",pointerType:e.pointerType}),"mouse"===e.pointerType&&e.preventDefault(),"touch"===e.pointerType&&e.currentTarget?.focus({preventScroll:!0}))},onPointerUp(e){r({type:"TRIGGER.PRESS_UP",hint:"increment",pointerType:e.pointerType})},onPointerLeave(e){r({type:"TRIGGER.PRESS_UP",hint:"increment",pointerType:e.pointerType})}}),getScrubberProps:()=>t.element({...E.scrubber.attrs,dir:i("dir"),"data-disabled":(0,a.sE)(u),id:o.ids?.scrubber??`number-input:${o.id}:scrubber`,role:"presentation",onMouseDown(e){if(u||!(0,a.Ml)(e))return;let t=(0,a.TH)(e),n=(0,a.zk)(e.currentTarget).devicePixelRatio;t.x=t.x-(0,s.Gy)(7.5,n),t.y=t.y-(0,s.Gy)(7.5,n),r({type:"SCRUBBER.PRESS_DOWN",point:t}),e.preventDefault()},style:{cursor:u?void 0:"ew-resize"}})}}var I=(e,t)=>{let{prop:n,computed:r}=t;return n("formatOptions")?r("parser").parse(String(e)):parseFloat(e)},z=(e,t)=>{let{prop:n,computed:r}=t;return Number.isNaN(e)?"":n("formatOptions")?r("formatter").format(e):e.toString()},{choose:_,guards:L,createMachine:N}=(0,l.mj)(),{not:B,and:F}=L,V=N({props({props:e}){var t,n;let r,i=(t=e.step,n=e.formatOptions,r=void 0===t||Number.isNaN(t)?1:t,n?.style==="percent"&&(void 0===t||Number.isNaN(t))&&(r=.01),r);return{dir:"ltr",locale:"en-US",focusInputOnChange:!0,clampValueOnBlur:!e.allowOverflow,allowOverflow:!1,inputMode:"decimal",pattern:"-?[0-9]*(.[0-9]+)?",defaultValue:"",step:i,min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,spinOnPress:!0,...e,translations:{incrementLabel:"increment value",decrementLabel:"decrease value",...e.translations}}},initialState:()=>"idle",context:({prop:e,bindable:t,getComputed:n})=>({value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(t){let r=I(t,{computed:n(),prop:e});e("onValueChange")?.({value:t,valueAsNumber:r})}})),hint:t(()=>({defaultValue:null})),scrubberCursorPoint:t(()=>({defaultValue:null,hash:e=>e?`x:${e.x}, y:${e.y}`:""})),fieldsetDisabled:t(()=>({defaultValue:!1}))}
2),computed:{isRtl:({prop:e})=>"rtl"===e("dir"),valueAsNumber:({context:e,computed:t,prop:n})=>I(e.get("value"),{computed:t,prop:n}),formattedValue:({computed:e,prop:t})=>z(e("valueAsNumber"),{computed:e,prop:t}),isAtMin:({computed:e,prop:t})=>(0,s.pY)(e("valueAsNumber"),t("min")),isAtMax:({computed:e,prop:t})=>(0,s.H_)(e("valueAsNumber"),t("max")),isOutOfRange:({computed:e,prop:t})=>!(0,s.s)(e("valueAsNumber"),t("min"),t("max")),isValueEmpty:({context:e})=>""===e.get("value"),isDisabled:({prop:e,context:t})=>!!e("disabled")||t.get("fieldsetDisabled"),canIncrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMax"),canDecrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMin"),valueText:({prop:e,context:t})=>e("translations").valueText?.(t.get("value")),formatter:(0,l.ph)(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>((e,t={})=>new Intl.NumberFormat(e,t))(e,t)),parser:(0,l.ph)(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>((e,t={})=>new g(e,t))(e,t))},watch({track:e,action:t,context:n,computed:r,prop:i}){e([()=>n.get("value"),()=>i("locale")],()=>{t(["syncInputElement"])}),e([()=>r("isOutOfRange")],()=>{t(["invokeOnInvalid"])}),e([()=>n.hash("scrubberCursorPoint")],()=>{t(["setVirtualCursorPosition"])})},effects:["trackFormControl"],on:{"VALUE.SET":{actions:["setRawValue"]},"VALUE.CLEAR":{actions:["clearValue"]},"VALUE.INCREMENT":{actions:["increment"]},"VALUE.DECREMENT":{actions:["decrement"]}},states:{idle:{on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","invokeOnFocus","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","invokeOnFocus","setHint","setCursorPoint"]},"INPUT.FOCUS":{target:"focused",actions:["focusInput","invokeOnFocus"]}}},focused:{tags:["focus"],effects:["attachWheelListener"],on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","setHint","setCursorPoint"]},"INPUT.ARROW_UP":{actions:["increment"]},"INPUT.ARROW_DOWN":{actions:["decrement"]},"INPUT.HOME":{actions:["decrementToMin"]},"INPUT.END":{actions:["incrementToMax"]},"INPUT.CHANGE":{actions:["setValue","setHint"]},"INPUT.BLUR":[{guard:F("clampValueOnBlur",B("isInRange")),target:"idle",actions:["setClampedValue","clearHint","invokeOnBlur"]},{guard:B("isInRange"),target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnInvalid"]},{target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur"]}],"INPUT.ENTER":{actions:["setFormattedValue","clearHint","invokeOnBlur"]}}},"before:spin":{tags:["focus"],effects:["trackButtonDisabled","waitForChangeDelay"],entry:_([{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}]),on:{CHANGE_DELAY:{target:"spinning",guard:F("isInRange","spinOnPress")},"TRIGGER.PRESS_UP":[{guard:"isTouchPointer",target:"focused",actions:["clearHint"]},{target:"focused",actions:["focusInput","clearHint"]}]}},spinning:{tags:["focus"],effects:["trackButtonDisabled","spinValue"],on:{SPIN:[{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}],"TRIGGER.PRESS_UP":{target:"focused",actions:["focusInput","clearHint"]}}},scrubbing:{tags:["focus"],effects:["activatePointerLock","trackMousemove","setupVirtualCursor","preventTextSelection"],on:{"SCRUBBER.POINTER_UP":{target:"focused",actions:["focusInput","clearCursorPoint"]},"SCRUBBER.POINTER_MOVE":[{guard:"isIncrementHint",actions:["increment","setCursorPoint"]},{guard:"isDecrementHint",actions:["decrement","setCursorPoint"]}]}}},implementations:{guards:{clampValueOnBlur:({prop:e})=>e("clampValueOnBlur"),spinOnPress:({prop:e})=>!!e("spinOnPress"),isInRange:({computed:e})=>!e("isOutOfRange"),isDecrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="decrement",isIncrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="increment",isTouchPointer:({event:e})=>"touch"===e.pointerType},effects:{waitForChangeDelay({send:e}){let t=setTimeout(()=>{e({type:"CHANGE_DELAY"})},300);return()=>clearTimeout(t)},spinValue({send:e}){let t=setInterval(()=>{e({type:"SPIN"})},50);return()=>clearInterval(t)},trackFormControl({context:e,scope:t}){let n=D(t);return(0,a.$S)(n,{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){e.set("value",e.initial("value"))}})}
2,setupVirtualCursor({context:e,scope:t}){var n,r;let i,o,s=e.get("scrubberCursorPoint");return(0,a.nr)()?void 0:(n=t,r=s,(o=(i=n.getDoc()).createElement("div")).className="scrubber--cursor",o.id=T(n),Object.assign(o.style,{width:"15px",height:"15px",position:"fixed",pointerEvents:"none",left:"0px",top:"0px",zIndex:a.hx,transform:r?`translate3d(${r.x}px, ${r.y}px, 0px)`:void 0,willChange:"transform"}),o.innerHTML=`
3      <svg width="46" height="15" style="left: -15.5px; position: absolute; top: 0; filter: drop-shadow(rgba(0, 0, 0, 0.4) 0px 1px 1.1px);">
4        <g transform="translate(2 3)">
5          <path fill-rule="evenodd" d="M 15 4.5L 15 2L 11.5 5.5L 15 9L 15 6.5L 31 6.5L 31 9L 34.5 5.5L 31 2L 31 4.5Z" style="stroke-width: 2px; stroke: white;"></path>
6          <path fill-rule="evenodd" d="M 15 4.5L 15 2L 11.5 5.5L 15 9L 15 6.5L 31 6.5L 31 9L 34.5 5.5L 31 2L 31 4.5Z"></path>
7        </g>
8      </svg>`,i.body.appendChild(o),()=>{R(t)?.remove()})},preventTextSelection:({scope:e})=>{let t,n,r;return n=(t=e.getDoc()).documentElement,(r=t.body).style.pointerEvents="none",n.style.userSelect="none",n.style.cursor="ew-resize",()=>{r.style.pointerEvents="",n.style.userSelect="",n.style.cursor="",n.style.length||n.removeAttribute("style"),r.style.length||r.removeAttribute("style")}},trackButtonDisabled({context:e,scope:t,send:n}){let r,i=e.get("hint"),o=(r=null,"increment"===i&&(r=t.getById(O(t))),"decrement"===i&&(r=t.getById(P(t))),r);return(0,a.mx)(o,{attributes:["disabled"],callback(){n({type:"TRIGGER.PRESS_UP",src:"attr"})}})},attachWheelListener({scope:e,send:t,prop:n}){let r=D(e);if(r&&e.isActiveElement(r)&&n("allowMouseWheel"))return(0,a.kn)(r,"wheel",function(e){e.preventDefault();let n=-1*Math.sign(e.deltaY);1===n?t({type:"VALUE.INCREMENT"}):-1===n&&t({type:"VALUE.DECREMENT"})},{passive:!1})},activatePointerLock({scope:e}){if(!(0,a.nr)())return(0,a.zn)(e.getDoc())},trackMousemove({scope:e,send:t,context:n,computed:r}){let i=e.getDoc();return(0,s.OK)((0,a.kn)(i,"mousemove",function(i){let o=((e,t)=>{let{point:n,isRtl:r,event:i}=t,o=e.getWin(),a=(0,s.Gy)(i.movementX,o.devicePixelRatio),l=(0,s.Gy)(i.movementY,o.devicePixelRatio),c=a>0?"increment":a<0?"decrement":null;r&&"increment"===c&&(c="decrement"),r&&"decrement"===c&&(c="increment");let u={x:n.x+a,y:n.y+l},h=o.innerWidth,d=(0,s.Gy)(7.5,o.devicePixelRatio);return u.x=(0,s.LV)(u.x+d,h)-d,{hint:c,point:u}})(e,{point:n.get("scrubberCursorPoint"),isRtl:r("isRtl"),event:i});o.hint&&t({type:"SCRUBBER.POINTER_MOVE",hint:o.hint,point:o.point})},!1),(0,a.kn)(i,"mouseup",function(){t({type:"SCRUBBER.POINTER_UP"})},!1))}},actions:{focusInput({scope:e,prop:t}){if(!t("focusInputOnChange"))return;let n=D(e);e.isActiveElement(n)||(0,a.er)(()=>n?.focus({preventScroll:!0}))},increment({context:e,event:t,prop:n,computed:r}){let i=(0,s.tp)(r("valueAsNumber"),t.step??n("step"));n("allowOverflow")||(i=(0,s.L3)(i,n("min"),n("max"))),e.set("value",z(i,{computed:r,prop:n}))},decrement({context:e,event:t,prop:n,computed:r}){let i=(0,s.VJ)(r("valueAsNumber"),t.step??n("step"));n("allowOverflow")||(i=(0,s.L3)(i,n("min"),n("max"))),e.set("value",z(i,{computed:r,prop:n}))},setClampedValue({context:e,prop:t,computed:n}){let r=(0,s.L3)(n("valueAsNumber"),t("min"),t("max"));e.set("value",z(r,{computed:n,prop:t}))},setRawValue({context:e,event:t,prop:n,computed:r}){let i=I(t.value,{computed:r,prop:n});n("allowOverflow")||(i=(0,s.L3)(i,n("min"),n("max"))),e.set("value",z(i,{computed:r,prop:n}))},setValue({context:e,event:t}){let n=t.target?.value??t.value;e.set("value",n)},clearValue({context:e}){e.set("value","")},incrementToMax({context:e,prop:t,computed:n}){let r=z(t("max"),{computed:n,prop:t});e.set("value",r)},decrementToMin({context:e,prop:t,computed:n}){let r=z(t("min"),{computed:n,prop:t});e.set("value",r)},setHint({context:e,event:t}){e.set("hint",t.hint)},clearHint({context:e}){e.set("hint",null)},invokeOnFocus({computed:e,prop:t}){t("onFocusChange")?.({focused:!0,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnBlur({computed:e,prop:t}){t("onFocusChange")?.({focused:!1,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnInvalid({computed:e,prop:t,event:n}){if("INPUT.CHANGE"===n.type)return;let r=e("valueAsNumber")>t("max")?"rangeOverflow":"rangeUnderflow";t("onValueInvalid")?.({reason:r,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},syncInputElement({context:e,event:t,computed:n,scope:r}){let i=t.type.endsWith("CHANGE")?e.get("value"):n("formattedValue"),o=D(r),s=function(e){if(e&&e.ownerDocument.activeElement===e)try{let{selectionStart:t,selectionEnd:n,value:r}=e,i=r.substring(0,t),o=r.substring(n);return{start:t,end:n,value:r,beforeTxt:i,afterTxt:o}}catch{}}(o);(0,a.er)(()=>{(0,a.U4)(o,i),function(e,t){if(e&&e.ownerDocument.activeElement===e){if(!t)return e.setSelectionRange(e.value.length,e.value.length);try{let{value:n}=e,{beforeTxt:r="",afterTxt:i="",start:o}=t,a=n.length;if(n.endsWith(i))a=n.length-i.length;else if(n.startsWith(r))a=r.length;else if(null!=o){let e=r[o-1],t=n.indexOf(e,o-1);-1!==t&&(a=t+1)}e.setSelectionRange(a,a)}catch{}}}(o,s)})},setFormattedValue({context:e,computed:t}
8){e.set("value",t("formattedValue"))},setCursorPoint({context:e,event:t}){e.set("scrubberCursorPoint",t.point)},clearCursorPoint({context:e}){e.set("scrubberCursorPoint",null)},setVirtualCursorPosition({context:e,scope:t}){let n=R(t),r=e.get("scrubberCursorPoint");n&&r&&(n.style.transform=`translate3d(${r.x}px, ${r.y}px, 0px)`)}}}}),H=(0,A.x)()(["allowMouseWheel","allowOverflow","clampValueOnBlur","dir","disabled","focusInputOnChange","form","formatOptions","getRootNode","id","ids","inputMode","invalid","locale","max","min","name","onFocusChange","onValueChange","onValueInvalid","pattern","required","readOnly","spinOnPress","step","translations","value","defaultValue"]);(0,s.PM)(H)},82523(e,t,n){"use strict";n.d(t,{_B:()=>p,zl:()=>h});var r=n(38902),i=n(77568),o=n(50405),a=n(47868),s=n(67024);n(49793);var l=void 0!==globalThis.document?o.useLayoutEffect:o.useEffect;function c(e){let t=e().value??e().defaultValue,n=e().isEqual??Object.is,[r]=(0,o.useState)(t),[s,c]=(0,o.useState)(r),u=void 0!==e().value,h=(0,o.useRef)(s);h.current=u?e().value:s;let d=(0,o.useRef)(h.current);return l(()=>{d.current=h.current},[s,e().value]),{initial:r,ref:h,get:function(){return u?e().value:s},set(t){(e().sync?a.flushSync:i.D_)(()=>{let r,o;return r=d.current,o=(0,i.Tn)(t)?t(r):t,void(e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:o,prev:r}),!u&&c(o),!n(o,r)&&e().onChange?.(o,r))})},invoke(t,n){e().onChange?.(t,n)},hash:t=>e().hash?.(t)??String(t)}}c.cleanup=e=>{(0,o.useEffect)(()=>e,[])},c.ref=e=>{let t=(0,o.useRef)(e);return{get:()=>t.current,set:e=>{t.current=e}}};var u=(e,t)=>{let n=(0,o.useRef)(!1),r=(0,o.useRef)(!1);(0,o.useEffect)(()=>{if(n.current&&r.current)return t();r.current=!0},[...(e??[]).map(e=>"function"==typeof e?e():e)]),(0,o.useEffect)(()=>(n.current=!0,()=>{n.current=!1}),[])};function h(e,t={}){var n;let s,p,m=(0,o.useMemo)(()=>{let{id:e,ids:n,getRootNode:i}=t;return(0,r.Ds)({id:e,ids:n,getRootNode:i})},[t]),g=(...t)=>{e.debug&&console.log(...t)},v=(s=d(e.props?.({props:(0,i.oE)(t),scope:m})??t),function(e){return s.current[e]}),y=d(e.context?.({prop:v,bindable:c,scope:m,flush:f,getContext:()=>b,getComputed:()=>R,getRefs:()=>E,getEvent:()=>M()})),b={get:e=>y.current?.[e].ref.current,set(e,t){y.current?.[e].set(t)},initial:e=>y.current?.[e].initial,hash(e){let t=y.current?.[e].get();return y.current?.[e].hash(t)}},x=(0,o.useRef)(new Map),w=(0,o.useRef)(null),k=(0,o.useRef)(null),S=(0,o.useRef)({type:""}),M=()=>({...S.current,current:()=>S.current,previous:()=>k.current}),A=()=>({...j,matches:(...e)=>e.includes(j.ref.current),hasTag:t=>!!e.states[j.ref.current]?.tags?.includes(t)}),E=(n=e.refs?.({prop:v,context:b})??{},p=(0,o.useRef)(n),{get:e=>p.current[e],set(e,t){p.current[e]=t}}),C=()=>({state:A(),context:b,event:M(),prop:v,send:_,action:O,guard:P,track:u,refs:E,computed:R,flush:f,scope:m,choose:D}),O=t=>{let n=(0,i.Tn)(t)?t(C()):t;if(n)for(let t of n.map(t=>{let n=e.implementations?.actions?.[t];return n||(0,i.R8)(`[zag-js] No implementation found for action "${JSON.stringify(t)}"`),n}))t?.(C())},P=t=>(0,i.Tn)(t)?t(C()):e.implementations?.guards?.[t](C()),T=t=>{let n=(0,i.Tn)(t)?t(C()):t;if(!n)return;let r=n.map(t=>{let n=e.implementations?.effects?.[t];return n||(0,i.R8)(`[zag-js] No implementation found for effect "${JSON.stringify(t)}"`),n}),o=[];for(let e of r){let t=e?.(C());t&&o.push(t)}return()=>o.forEach(e=>e?.())},D=e=>(0,i.$r)(e).find(e=>{let t=!e.guard;return(0,i.Kg)(e.guard)?t=!!P(e.guard):(0,i.Tn)(e.guard)&&(t=e.guard(C())),t}),R=t=>((0,i.D8)(e.computed,()=>"[zag-js] No computed object found on machine"),(0,e.computed[t])({context:b,event:M(),prop:v,refs:E,scope:m,computed:R})),j=c(()=>({defaultValue:e.initialState({prop:v}),onChange(t,n){if(n){let e=x.current.get(n);e?.(),x.current.delete(n)}n&&O(e.states[n]?.exit),O(w.current?.actions);let i=T(e.states[t]?.effects);if(i&&x.current.set(t,i),n===r.h2){O(e.entry);let t=T(e.effects);t&&x.current.set(r.h2,t)}O(e.states[t]?.entry)}})),I=(0,o.useRef)(void 0),z=(0,o.useRef)(r.Aj.NotStarted);l(()=>{queueMicrotask(()=>{let e=z.current===r.Aj.Started;z.current=r.Aj.Started,g(e?"rehydrating...":"initializing...");let t=I.current??j.initial;j.invoke(t,e?j.get():r.h2)});let t=x.current,n=j.ref.current;return()=>{g("unmounting..."),I.current=n,z.current=r.Aj.Stopped,t.forEach(e
8=>e?.()),x.current=new Map,w.current=null,queueMicrotask(()=>{O(e.exit)})}},[]);let _=t=>{queueMicrotask(()=>{if(z.current!==r.Aj.Started)return;k.current=S.current,S.current=t,g("send",t);let n="ref"in j?j.ref.current:j.get(),i=D(e.states[n].on?.[t.type]??e.on?.[t.type]);if(!i)return;w.current=i;let o=i.target??n;g("transition",i);let s=o!==n;s?(0,a.flushSync)(()=>j.set(o)):i.reenter&&!s?j.invoke(n,n):O(i.actions??[])})};return e.watch?.(C()),{state:A(),send:_,context:b,prop:v,scope:m,refs:E,computed:R,event:M(),getStatus:()=>z.current}}function d(e){let t=(0,o.useRef)(e);return t.current=e,t}function f(e){queueMicrotask(()=>{(0,a.flushSync)(()=>e())})}var p=(0,s._)(e=>e)},67024(e,t,n){"use strict";function r(e){return new Proxy({},{get:(t,n)=>"style"===n?t=>e({style:t}).style:e})}n.d(t,{_:()=>r,x:()=>i});var i=()=>e=>Array.from(new Set(e))},77568(e,t,n){"use strict";function r(e){return null==e?[]:Array.isArray(e)?e:[e]}n.d(t,{$r:()=>r,D8:()=>j,D_:()=>h,Gy:()=>E,H_:()=>k,Kg:()=>a,L3:()=>A,LV:()=>w,OK:()=>d,PM:()=>D,R8:()=>R,Tn:()=>s,VJ:()=>T,n4:()=>o,oE:()=>function e(t){if(!(e=>{if(null==e||"object"!=typeof e||"[object Object]"!=Object.prototype.toString.call(e)||u(e))return!1;let t=Object.getPrototypeOf(e);if(null===t)return!0;let n=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==c})(t)||void 0===t)return t;let n=Reflect.ownKeys(t).filter(e=>"string"==typeof e),r={};for(let i of n){let n=t[i];void 0!==n&&(r[i]=e(n))}return r},pY:()=>S,s:()=>M,tp:()=>P});var i=e=>e?.constructor.name==="Array",o=(e,t)=>{if(Object.is(e,t))return!0;if(null==e&&null!=t||null!=e&&null==t)return!1;if("function"==typeof e?.isEqual&&"function"==typeof t?.isEqual)return e.isEqual(t);if("function"==typeof e&&"function"==typeof t)return e.toString()===t.toString();if(i(e)&&i(t))return((e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!o(e[n],t[n]))return!1;return!0})(Array.from(e),Array.from(t));if("object"!=typeof e||"object"!=typeof t)return!1;let n=Object.keys(t??Object.create(null)),r=n.length;for(let t=0;t<r;t++)if(!Reflect.has(e,n[t]))return!1;for(let i=0;i<r;i++){let r=n[i];if(!o(e[r],t[r]))return!1}return!0},a=e=>"string"==typeof e,s=e=>"function"==typeof e,l=Function.prototype.toString,c=l.call(Object),u=e=>"object"==typeof e&&null!==e&&"$$typeof"in e&&"props"in e||"object"==typeof e&&null!==e&&"__v_isVNode"in e,h=e=>e(),d=(...e)=>(...t)=>{e.forEach(function(e){e?.(...t)})},{floor:f,abs:p,round:m,min:g,max:v,pow:y,sign:b}=Math,x=e=>Number.isNaN(e)?0:e,w=(e,t)=>(e%t+t)%t,k=(e,t)=>x(e)>=t,S=(e,t)=>x(e)<=t,M=(e,t,n)=>x(e)>=t&&x(e)<=n,A=(e,t,n)=>g(v(x(e),t),n),E=(e,t)=>"number"==typeof t?f(e*t+.5)/t:m(e),C=e=>{if(!Number.isFinite(e))return 0;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n+=1;return n},O=(e,t,n)=>{let r="+"===t?e+n:e-n;if(e%1!=0||n%1!=0){let i=10**Math.max(C(e),C(n));e=Math.round(e*i),n=Math.round(n*i),r=("+"===t?e+n:e-n)/i}return r},P=(e,t)=>O(x(e),"+",t),T=(e,t)=>
8O(x(e),"-",t),D=e=>function(t){let n={},r={},i=new Set(e);for(let e in t)i.has(e)?r[e]=t[e]:n[e]=t[e];return[r,n]};function R(...e){1===e.length?e[0]:e[1],2!==e.length||e[0]}function j(e,t){if(null==e)throw Error(t())}},15445(e,t,n){"use strict";n.d(t,{F:()=>a});var r=n(70851);let i=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,o=r.$,a=(e,t)=>n=>{var r;if((null==t?void 0:t.variants)==null)return o(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:a,defaultVariants:s}=t,l=Object.keys(a).map(e=>{let t=null==n?void 0:n[e],r=null==s?void 0:s[e];if(null===t)return null;let o=i(t)||i(r);return a[e][o]}),c=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return o(e,l,null==t||null==(r=t.compoundVariants)?void 0:r.reduce((e,t)=>{let{class:n,className:r,...i}=t;return Object.entries(i).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...s,...c}[t]):({...s,...c})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}},70851(e,t,n){"use strict";function r(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(n=0;n<o;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r);return i}(e))&&(r&&(r+=" "),r+=t);return r}n.d(t,{$:()=>r})},5838(e,t,n){"use strict";n.d(t,{uB:()=>en});var r=/[\\\/_+.#"@\[\(\{&]/,i=/[\\\/_+.#"@\[\(\{&]/g,o=/[\s-]/,a=/[\s-]/g;function s(e){return e.toLowerCase().replace(a," ")}var l=n(95045),c=n(50405),u=n.t(c,2),h=n(47868),d=Object.defineProperty,f=(e,t)=>d(e,"name",{value:t,configurable:!0});function p(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function m(...e){return t=>{let n=!1,r=e.map(e=>{let r=p(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():p(e[t],null)}}}}function g(...e){return c.useCallback(m(...e),e)}f(p,"setRef"),f(m,"composeRefs"),f(g,"useComposedRefs");var v=Object.defineProperty,y=(e,t)=>v(e,"name",{value:t,configurable:!0});function b(e){let t=c.forwardRef((t,n)=>{let{children:r,...i}=t,o=null,a=!1,s=[];E(r)&&"function"==typeof T&&(r=T(r._payload)),c.Children.forEach(r,e=>{if(M(e)){a=!0;let t="child"in e.props?e.props.child:e.props.children;E(t)&&"function"==typeof T&&(t=T(t._payload)),o=w(e,t),s.push(o?.props?.children)}else s.push(e)}),o?o=c.cloneElement(o,void 0,s):!a&&1===c.Children.count(r)&&c.isValidElement(r)&&(o=r);let l=o?S(o):void 0,u=g(n,l);if(!o){if(r||0===r)throw Error(a?P(e):O(e));return r}let h=k(i,o.props??{});return o.type!==c.Fragment&&(h.ref=n?u:l),c.cloneElement(o,h)});return t.displayName=`${e}.Slot`,t}y(b,"createSlot");var x=Symbol.for("radix.slottable");y(function(e){let t=y(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=x,t},"createSlottable");var w=y((e,t)=>{if("child"in e.props){let t=e.props.child;return c.isValidElement(t)?c.cloneElement(t,void 0,e.props.children(t.props.children)):null}return c.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function k(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function S(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}function M(e){return c.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===x}y(k,"mergeProps"),y(S,"getElementRef"),y(M,"isSlottable");var A=Symbol.for("react.lazy");function E(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===A&&"_payload"in e&&C(e._payload)}function C(e){return"object"==typeof e&&null!==e&&"then"in e}y(E,"isLazyComponent"),y(C,"isPromiseLike");var O=y(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),P=y(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),T=u[" use ".trim().toString()],D=n(49793),R=Object.defineProperty,j=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>
8{let n=b(`Primitive.${t}`),r=c.forwardRef((e,r)=>{let{asChild:i,...o}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,D.jsx)(i?n:t,{...o,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});R(function(e,t){e&&h.flushSync(()=>e.dispatchEvent(t))},"name",{value:"dispatchDiscreteCustomEvent",configurable:!0});var I=globalThis?.document?c.useLayoutEffect:()=>{},z=Object.defineProperty,_=u[" useId ".trim().toString()]||(()=>void 0),L=0;function N(e){let[t,n]=c.useState(_());return I(()=>{e||n(e=>e??String(L++))},[e]),e||(t?`radix-${t}`:"")}z(N,"name",{value:"useId",configurable:!0});var B='[cmdk-group=""]',F='[cmdk-group-items=""]',V='[cmdk-item=""]',H=`${V}:not([aria-disabled="true"])`,W="cmdk-item-select",$="data-value",U=(e,t,n)=>{var l;return l=e,function e(t,n,s,l,c,u,h){if(u===n.length)return c===t.length?1:.99;var d=`${c},${u}`;if(void 0!==h[d])return h[d];for(var f,p,m,g,v=l.charAt(u),y=s.indexOf(v,c),b=0;y>=0;)(f=e(t,n,s,l,y+1,u+1,h))>b&&(y===c?f*=1:r.test(t.charAt(y-1))?(f*=.8,(m=t.slice(c,y-1).match(i))&&c>0&&(f*=Math.pow(.999,m.length))):o.test(t.charAt(y-1))?(f*=.9,(g=t.slice(c,y-1).match(a))&&c>0&&(f*=Math.pow(.999,g.length))):(f*=.17,c>0&&(f*=Math.pow(.999,y-c))),t.charAt(y)!==n.charAt(u)&&(f*=.9999)),(f<.1&&s.charAt(y-1)===l.charAt(u+1)||l.charAt(u+1)===l.charAt(u)&&s.charAt(y-1)!==l.charAt(u))&&.1*(p=e(t,n,s,l,y+1,u+2,h))>f&&(f=.1*p),f>b&&(b=f),y=s.indexOf(v,y+1);return h[d]=b,b}(l=n&&n.length>0?`${l+" "+n.join(" ")}`:l,t,s(l),s(t),0,0,{})},K=c.createContext(void 0),q=c.createContext(void 0),G=c.createContext(void 0),Z=c.forwardRef((e,t)=>{let n=eo(()=>{var t,n;return{search:"",value:null!=(n=null!=(t=e.value)?t:e.defaultValue)?n:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=eo(()=>new Set),i=eo(()=>new Map),o=eo(()=>new Map),a=eo(()=>new Set),s=er(e),{label:l,children:u,value:h,onValueChange:d,filter:f,shouldFilter:p,loop:m,disablePointerSelection:g=!1,vimBindings:v=!0,...y}=e,b=N(),x=N(),w=N(),k=c.useRef(null),S=el();ei(()=>{if(void 0!==h){let e=h.trim();n.current.value=e,M.emit()}},[h]),ei(()=>{S(6,T)},[]);let M=c.useMemo(()=>({subscribe:e=>(a.current.add(e),()=>a.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var i,o,a,l;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)P(),C(),S(1,O);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(w);e?e.focus():null==(i=document.getElementById(b))||i.focus()}if(S(7,()=>{var e;n.current.selectedItemId=null==(e=D())?void 0:e.id,M.emit()}),r||S(5,T),(null==(o=s.current)?void 0:o.value)!==void 0){null==(l=(a=s.current).onValueChange)||l.call(a,null!=t?t:"");return}}M.emit()}},emit:()=>{a.current.forEach(e=>e())}}),[]),A=c.useMemo(()=>({value:(e,t,r)=>{var i;t!==(null==(i=o.current.get(e))?void 0:i.value)&&(o.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,E(t,r)),S(2,()=>{C(),M.emit()}))},item:(e,t)=>(r.current.add(e),t&&(i.current.has(t)?i.current.get(t).add(e):i.current.set(t,new Set([e]))),S(3,()=>{P(),C(),n.current.value||O(),M.emit()}),()=>{o.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);let t=D();S(4,()=>{P(),(null==t?void 0:t.getAttribute("id"))===e&&O(),M.emit()})}),group:e=>(i.current.has(e)||i.current.set(e,new Set),()=>{o.current.delete(e),i.current.delete(e)}),filter:()=>s.current.shouldFilter,label:l||e["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:b,inputId:w,labelId:x,listInnerRef:k}),[]);function E(e,t){var r,i;let o=null!=(i=null==(r=s.current)?void 0:r.filter)?i:U;return e?o(e,n.current.search,t):0}function C(){if(!n.current.search||!1===s.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach(n=>{let r=i.current.get(n),o=0;r.forEach(t=>{o=Math.max(e.get(t),o)}),t.push([n,o])});let r=k.current;R().sort((t,n)=>{var r,i;let o=t.getAttribute("id"),a=n.getAttribute("id");return(null!=(r=e.get(a))?r:0)-(null!=(i=e.get(o))?i:0)}).forEach(e=>{let t=e.closest(F);t?t.appendChild(e.parentElement===t?e:e.closest(`${F} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${F} > *`))}),t.sort((e,t)=>
8t[1]-e[1]).forEach(e=>{var t;let n=null==(t=k.current)?void 0:t.querySelector(`${B}[${$}="${encodeURIComponent(e[0])}"]`);null==n||n.parentElement.appendChild(n)})}function O(){let e=R().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute($);M.setState("value",t||void 0)}function P(){var e,t,a,l;if(!n.current.search||!1===s.current.shouldFilter){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let c=0;for(let i of r.current){let r=E(null!=(t=null==(e=o.current.get(i))?void 0:e.value)?t:"",null!=(l=null==(a=o.current.get(i))?void 0:a.keywords)?l:[]);n.current.filtered.items.set(i,r),r>0&&c++}for(let[e,t]of i.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=c}function T(){var e,t,n;let r=D();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(B))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function D(){var e;return null==(e=k.current)?void 0:e.querySelector(`${V}[aria-selected="true"]`)}function R(){var e;return Array.from((null==(e=k.current)?void 0:e.querySelectorAll(H))||[])}function I(e){let t=R()[e];t&&M.setState("value",t.getAttribute($))}function z(e){var t;let n=D(),r=R(),i=r.findIndex(e=>e===n),o=r[i+e];null!=(t=s.current)&&t.loop&&(o=i+e<0?r[r.length-1]:i+e===r.length?r[0]:r[i+e]),o&&M.setState("value",o.getAttribute($))}function _(e){let t=D(),n=null==t?void 0:t.closest(B),r;for(;n&&!r;)r=null==(n=e>0?function(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}(n,B):function(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}(n,B))?void 0:n.querySelector(H);r?M.setState("value",r.getAttribute($)):z(e)}let L=()=>I(R().length-1),G=e=>{e.preventDefault(),e.metaKey?L():e.altKey?_(1):z(1)},Z=e=>{e.preventDefault(),e.metaKey?I(0):e.altKey?_(-1):z(-1)};return c.createElement(j.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=y.onKeyDown)||t.call(y,e);let n=e.nativeEvent.isComposing||229===e.keyCode;if(!(e.defaultPrevented||n))switch(e.key){case"n":case"j":v&&e.ctrlKey&&G(e);break;case"ArrowDown":G(e);break;case"p":case"k":v&&e.ctrlKey&&Z(e);break;case"ArrowUp":Z(e);break;case"Home":e.preventDefault(),I(0);break;case"End":e.preventDefault(),L();break;case"Enter":{e.preventDefault();let t=D();if(t){let e=new Event(W);t.dispatchEvent(e)}}}}},c.createElement("label",{"cmdk-label":"",htmlFor:A.inputId,id:A.labelId,style:eu},l),ec(e,e=>c.createElement(q.Provider,{value:M},c.createElement(K.Provider,{value:A},e))))}),Y=c.forwardRef((e,t)=>{var n,r;let i=N(),o=c.useRef(null),a=c.useContext(G),s=c.useContext(K),l=er(e),u=null!=(r=null==(n=l.current)?void 0:n.forceMount)?r:null==a?void 0:a.forceMount;ei(()=>{if(!u)return s.item(i,null==a?void 0:a.id)},[u]);let h=es(i,o,[e.value,e.children,o],e.keywords),d=c.useContext(q),f=ea(e=>e.value&&e.value===h.current),p=ea(e=>!!u||!1===s.filter()||!e.search||e.filtered.items.get(i)>0);function g(){var e,t;v(),null==(t=(e=l.current).onSelect)||t.call(e,h.current)}function v(){d.setState("value",h.current,!0)}if(c.useEffect(()=>{let t=o.current;if(!(!t||e.disabled))return t.addEventListener(W,g),()=>t.removeEventListener(W,g)},[p,e.onSelect,e.disabled]),!p)return null;let{disabled:y,value:b,onSelect:x,forceMount:w,keywords:k,...S}=e;return c.createElement(j.div,{ref:m(o,t),...S,id:i,"cmdk-item":"",role:"option","aria-disabled":!!y,"aria-selected":!!f,"data-disabled":!!y,"data-selected":!!f,onPointerMove:y||s.getDisablePointerSelection()?void 0:v,onClick:y?void 0:g},e.children)}),X=c.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:i,...o}=e,a=N(),s=c.useRef(null),l=c.useRef(null),u=N(),h=c.useContext(K),d=ea(e=>!!i||!1===h.filter()||!e.search||e.filtered.groups.has(a));ei(()=>h.group(a),[]),es(a,s,[e.value,e.heading,l]);let f=c.useMemo(()=>({id:a,forceMount:i}),[i]);return c.createElement(j.div,{ref:m(s,t),...o,"cmdk-group":"",role:"presentation",hidden:!d||void 0},n&&c.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),ec(e,e=>c.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},c.createElement(G.Provider,{value:f},e))))}),J=c.forwardRef((e,t)=>
8{let{alwaysRender:n,...r}=e,i=c.useRef(null),o=ea(e=>!e.search);return n||o?c.createElement(j.div,{ref:m(i,t),...r,"cmdk-separator":"",role:"separator"}):null}),Q=c.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,i=null!=e.value,o=c.useContext(q),a=ea(e=>e.search),s=ea(e=>e.selectedItemId),l=c.useContext(K);return c.useEffect(()=>{null!=e.value&&o.setState("search",e.value)},[e.value]),c.createElement(j.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":s,id:l.inputId,type:"text",value:i?e.value:a,onChange:e=>{i||o.setState("search",e.target.value),null==n||n(e.target.value)}})}),ee=c.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...i}=e,o=c.useRef(null),a=c.useRef(null),s=ea(e=>e.selectedItemId),l=c.useContext(K);return c.useEffect(()=>{if(a.current&&o.current){let e=a.current,t=o.current,n,r=new ResizeObserver(()=>{n=requestAnimationFrame(()=>{let n=e.offsetHeight;t.style.setProperty("--cmdk-list-height",n.toFixed(1)+"px")})});return r.observe(e),()=>{cancelAnimationFrame(n),r.unobserve(e)}}},[]),c.createElement(j.div,{ref:m(o,t),...i,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":s,"aria-label":r,id:l.listId},ec(e,e=>c.createElement("div",{ref:m(a,l.listInnerRef),"cmdk-list-sizer":""},e)))}),et=c.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:i,contentClassName:o,container:a,...s}=e;return c.createElement(l.bL,{open:n,onOpenChange:r},c.createElement(l.ZL,{container:a},c.createElement(l.hJ,{"cmdk-overlay":"",className:i}),c.createElement(l.UC,{"aria-label":e.label,"cmdk-dialog":"",className:o},c.createElement(Z,{ref:t,...s}))))}),en=Object.assign(Z,{List:ee,Item:Y,Input:Q,Group:X,Separator:J,Dialog:et,Empty:c.forwardRef((e,t)=>ea(e=>0===e.filtered.count)?c.createElement(j.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:c.forwardRef((e,t)=>{let{progress:n,children:r,label:i="Loading...",...o}=e;return c.createElement(j.div,{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":i},ec(e,e=>c.createElement("div",{"aria-hidden":!0},e)))})});function er(e){let t=c.useRef(e);return ei(()=>{t.current=e}),t}var ei="u"<typeof window?c.useEffect:c.useLayoutEffect;function eo(e){let t=c.useRef();return void 0===t.current&&(t.current=e()),t}function ea(e){let t=c.useContext(q),n=()=>e(t.snapshot());return c.useSyncExternalStore(t.subscribe,n,n)}function es(e,t,n,r=[]){let i=c.useRef(),o=c.useContext(K);return ei(()=>{var a;let s=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():i.current}})(),l=r.map(e=>e.trim());o.value(e,s,l),null==(a=t.current)||a.setAttribute($,s),i.current=s}),i}var el=()=>{let[e,t]=c.useState(),n=eo(()=>new Map);return ei(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}};function ec({asChild:e,children:t},n){let r;return e&&c.isValidElement(t)?c.cloneElement("function"==typeof(r=t.type)?r(t.props):"render"in r?r.render(t.props):t,{ref:t.ref},n(t.props.children)):n(t)}var eu={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}},5070(e,t,n){"use strict";n.d(t,{Mj:()=>P});var r={grad:.9,turn:360,rad:360/(2*Math.PI)},i=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},o=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},a=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},s=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},l=function(e){return{r:a(e.r,0,255),g:a(e.g,0,255),b:a(e.b,0,255),a:a(e.a)}},c=function(e){return{r:o(e.r),g:o(e.g),b:o(e.b),a:o(e.a,3)}},u=/^#([0-9a-f]{3,8})$/i,h=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},d=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=Math.max(t,n,r),a=o-Math.min(t,n,r),s=a?o===t?(n-r)/a:o===n?2+(r-t)/a:4+(t-n)/a:0;return{h:60*(s<0?s+6:s),s:o?a/o*100:0,v:o/255*100,a:i}},f=function(e){var t=e.h,n=e.s,r=e.v,i=e.a;t=t/360*6,n/=100,r/=100;var o=Math.floor(t),a=r*(1-n),s=r*(1-(t-o)*n),l=r*(1-(1-t+o)*n),c=o%6;return{r:255*[r,s,a,a,l,r][c],g:255*[l,r,r,s,a,a][c],b:255*[a,a,l,r,r,s][c],a:i}},p=function(e){return{h:s(e.h),s:a(e.s,0,100),l:a(e.l,0,100),a:a(e.a)}},m=function(e){return{h:o(e.h),s:o(e.s),l:o(e.l),a:o(e.a,3)}},g=function(e){var t,n;return f((t=e.s,{h:e.h,s:(t*=((n=e.l)<50?n:100-n)/100)>0?2*t/(n+t)*100:0,v:n+t,a:e.a}))},v=function(e){var t,n,r,i;return{h:(t=d(e)).h,s:(i=(200-(n=t.s))*(r=t.v)/100)>0&&i<200?n*r/100/(i<=100?i:200-i)*100:0,l:i/2,a:t.a}},y=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,b=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,x=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\
8s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,w=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,k=[[function(e){var t=u.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?o(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?o(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=x.exec(e)||w.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:l({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t,n,i=y.exec(e)||b.exec(e);return i?g(p({h:(t=i[1],void 0===(n=i[2])&&(n="deg"),Number(t)*(r[n]||1)),s:Number(i[3]),l:Number(i[4]),a:void 0===i[5]?1:Number(i[5])/(i[6]?100:1)})):null},"hsl"]],S=[[function(e){var t=e.r,n=e.g,r=e.b,o=e.a;return i(t)&&i(n)&&i(r)?l({r:Number(t),g:Number(n),b:Number(r),a:Number(void 0===o?1:o)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,o=e.a;return i(t)&&i(n)&&i(r)?g(p({h:Number(t),s:Number(n),l:Number(r),a:Number(void 0===o?1:o)})):null},"hsl"],[function(e){var t,n=e.h,r=e.s,o=e.v,l=e.a;return i(n)&&i(r)&&i(o)?f({h:s((t={h:Number(n),s:Number(r),v:Number(o),a:Number(void 0===l?1:l)}).h),s:a(t.s,0,100),v:a(t.v,0,100),a:a(t.a)}):null},"hsv"]],M=function(e,t){for(var n=0;n<t.length;n++){var r=t[n][0](e);if(r)return[r,t[n][1]]}return[null,void 0]},A=function(e,t){var n=v(e);return{h:n.h,s:a(n.s+100*t,0,100),l:n.l,a:n.a}},E=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},C=function(e,t){var n=v(e);return{h:n.h,s:n.s,l:a(n.l+100*t,0,100),a:n.a}},O=function(){function e(e){this.parsed=("string"==typeof e?M(e.trim(),k):"object"==typeof e&&null!==e?M(e,S):[null,void 0])[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return o(E(this.rgba),2)},e.prototype.isDark=function(){return .5>E(this.rgba)},e.prototype.isLight=function(){return E(this.rgba)>=.5},e.prototype.toHex=function(){var e,t,n,r,i,a;return t=(e=c(this.rgba)).r,n=e.g,r=e.b,a=(i=e.a)<1?h(o(255*i)):"","#"+h(t)+h(n)+h(r)+a},e.prototype.toRgb=function(){return c(this.rgba)},e.prototype.toRgbString=function(){var e,t,n,r,i;return t=(e=c(this.rgba)).r,n=e.g,r=e.b,(i=e.a)<1?"rgba("+t+", "+n+", "+r+", "+i+")":"rgb("+t+", "+n+", "+r+")"},e.prototype.toHsl=function(){return m(v(this.rgba))},e.prototype.toHslString=function(){var e,t,n,r,i;return t=(e=m(v(this.rgba))).h,n=e.s,r=e.l,(i=e.a)<1?"hsla("+t+", "+n+"%, "+r+"%, "+i+")":"hsl("+t+", "+n+"%, "+r+"%)"},e.prototype.toHsv=function(){var e;return{h:o((e=d(this.rgba)).h),s:o(e.s),v:o(e.v),a:o(e.a,3)}},e.prototype.invert=function(){var e;return P({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a})},e.prototype.saturate=function(e){return void 0===e&&(e=.1),P(A(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),P(A(this.rgba,-e))},e.prototype.grayscale=function(){return P(A(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),P(C(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),P(C(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){var t;return"number"==typeof e?P({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):o(this.rgba.a,3)},e.prototype.hue=function(e){var t=v(this.rgba);return"number"==typeof e?P({h:e,s:t.s,l:t.l,a:t.a}):o(t.h)},e.prototype.isEqual=function(e){return this.toHex()===P(e).toHex()},e}(),P=function(e){return e instanceof O?e:new O(e)}},61145(e,t,n){"use strict";function r(){var e=arguments[0];"string"==typeof e&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&"object"==typeof n&&null==n.nodeType&&!Array.isArray(n)){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r];"string"==typeof i?e.setAttribute(r,i):null!=i&&(e[r]=i)}t++}for(;t<arguments.length;t++)!function e(t,n){if("string"==typeof n)t.appendChild(document.createTextNode(n));else if(null==n);else if(null!=n.nodeType)t.appendChild(n);else if(Array.isArray(n))for(var r=0;r<n.length;r++)e(t,n[r]);else throw RangeError("Unsupported child node: "+n)}(e,arguments[t]);return e}n.d(t,{A:()=>r})}
8,85780(e,t,n){"use strict";function r(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}n.d(t,{A:()=>r}),Array.prototype.slice},94977(e,t,n){"use strict";function r(e){return function(){return e}}n.d(t,{A:()=>r})},47569(e,t,n){"use strict";n.d(t,{i:()=>l});let r=Math.PI,i=2*r,o=i-1e-6;function a(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}class s{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?a:function(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return a;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,o){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+o}`}arcTo(e,t,n,i,o){if(e*=1,t*=1,n*=1,i*=1,(o*=1)<0)throw Error(`negative radius: ${o}`);let a=this._x1,s=this._y1,l=n-e,c=i-t,u=a-e,h=s-t,d=u*u+h*h;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(d>1e-6)if(Math.abs(h*l-c*u)>1e-6&&o){let f=n-a,p=i-s,m=l*l+c*c,g=Math.sqrt(m),v=Math.sqrt(d),y=o*Math.tan((r-Math.acos((m+d-(f*f+p*p))/(2*g*v)))/2),b=y/v,x=y/g;Math.abs(b-1)>1e-6&&this._append`L${e+b*u},${t+b*h}`,this._append`A${o},${o},0,0,${+(h*f>u*p)},${this._x1=e+x*l},${this._y1=t+x*c}`}else this._append`L${this._x1=e},${this._y1=t}`}arc(e,t,n,a,s,l){if(e*=1,t*=1,n*=1,l=!!l,n<0)throw Error(`negative radius: ${n}`);let c=n*Math.cos(a),u=n*Math.sin(a),h=e+c,d=t+u,f=1^l,p=l?a-s:s-a;null===this._x1?this._append`M${h},${d}`:(Math.abs(this._x1-h)>1e-6||Math.abs(this._y1-d)>1e-6)&&this._append`L${h},${d}`,n&&(p<0&&(p=p%i+i),p>o?this._append`A${n},${n},0,1,${f},${e-c},${t-u}A${n},${n},0,1,${f},${this._x1=h},${this._y1=d}`:p>1e-6&&this._append`A${n},${n},0,${+(p>=r)},${f},${this._x1=e+n*Math.cos(s)},${this._y1=t+n*Math.sin(s)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n*=1}v${+r}h${-n}Z`}toString(){return this._}}function l(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new s(t)}s.prototype},24715(e,t,n){"use strict";function r(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}n.d(t,{b:()=>r})},89525(e,t,n){"use strict";function r(e){switch(typeof e){case"number":case"symbol":return!1;case"string":return e.includes(".")||e.includes("[")||e.includes("]")}}n.d(t,{A:()=>r})},66078(e,t,n){"use strict";n.d(t,{n:()=>i});let r=/^(?:0|[1-9]\d*)$/;function i(e,t=Number.MAX_SAFE_INTEGER){switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e<t;case"symbol":return!1;case"string":return r.test(e)}}},83785(e,t,n){"use strict";n.d(t,{g:()=>s});var r=n(24715),i=n(25540),o=n(52610),a=n(66078);function s(e,t,n){return!!(0,o.G)(n)&&(!!("number"==typeof t&&(0,i.X)(n)&&(0,a.n)(t))&&t<n.length||"string"==typeof t&&t in n)&&(0,r.b)(n[t],e)}},21378(e,t,n){"use strict";function r(e){return"string"==typeof e||"symbol"==typeof e?e:Object.is(e?.valueOf?.(),-0)?"-0":String(e)}n.d(t,{f:()=>r})},70318(e,t,n){"use strict";n.d(t,{U:()=>u});var r=n(83785),i=n(15015);function o(e){return"symbol"==typeof e?1:null===e?2:void 0===e?3:4*(e!=e)}let a=(e,t,n)=>{if(e!==t){let r=o(e),i=o(t);if(r===i&&0===r){if(e<t)return"desc"===n?1:-1;if(e>t)return"desc"===n?-1:1}return"desc"===n?i-r:r-i}return 0};var s=n(74067);let l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/;function u(e,...t){let n=t.length;return n>1&&(0,r.g)(e,t[0],t[1])?t=[]:n>2&&(0,r.g)(t[0],t[1],t[2])&&(t=[t[0]]),function(e,t,n){if(null==e)return[];Array.isArray(e)||(e=Object.values(e)),Array.isArray(t)||(t=null==t?[null]:[t]),0===t.length&&(t=[null]),Array.isArray(n)||(n=null==n?[]:[n]),n=n.map(e=>String(e));let r=(e,t)=>{let n=e;for(let e=0;e<t.length&&null!=n;++e)n=n[t[e]];return n},o=t.map(e=>{var t;return(Array.isArray(e)&&1===e.length&&(e=e[0]),null==e||"function"==typeof e||Array.isArray(e)||!Array.isArray(t=e)&&("number"==typeof t||"boolean"==typeof t||null==t||(0,s.B)(t)||"string"==typeof t&&(c.test(t)||!l.test(t))||0))?e:{key:e,path:(0,i.b)(e)}});return e.map(e=>({original:e,criteria:o.map(t=>{var n,i;return n=t,null==(i=e)||null==n?i:"object"==typeof n&&"key"in n?Object.hasOwn(i,n.key)?i[n.key]:r(i,n.path):"function"==typeof n?n(i):Array.isArray(n)?r(i,n):"object"==typeof i?i[n]:i})})).slice().sort((e,t)=>
8{for(let r=0;r<o.length;r++){let i=a(e.criteria[r],t.criteria[r],n[r]);if(0!==i)return i}return 0}).map(e=>e.original)}(e,function(e,t=1){let n=[],r=Math.floor(t),i=(e,t)=>{for(let o=0;o<e.length;o++){let a=e[o];Array.isArray(a)&&t<r?i(a,t+1):n.push(a)}};return i(e,0),n}(t),["asc"])}},9600(e,t,n){"use strict";function r(e){return"__proto__"===e}n.d(t,{J:()=>function e(t,n,s){if(null==t)return s;switch(typeof n){case"string":{if(r(n))return s;let o=t[n];if(void 0===o)if((0,i.A)(n))return e(t,(0,a.b)(n),s);else return s;return o}case"number":case"symbol":{"number"==typeof n&&(n=(0,o.f)(n));let e=t[n];if(void 0===e)return s;return e}default:{if(Array.isArray(n)){var l=t,c=n,u=s;if(0===c.length)return u;let e=l;for(let t=0;t<c.length;t++){if(null==e||r(c[t]))return u;e=e[c[t]]}return void 0===e?u:e}if(r(n=Object.is(n?.valueOf(),-0)?"-0":String(n)))return s;let e=t[n];if(void 0===e)return s;return e}}}});var i=n(89525),o=n(21378),a=n(15015)},25540(e,t,n){"use strict";function r(e){var t;return null!=e&&"function"!=typeof e&&Number.isSafeInteger(t=e.length)&&t>=0}n.d(t,{X:()=>r})},52610(e,t,n){"use strict";function r(e){return null!==e&&("object"==typeof e||"function"==typeof e)}n.d(t,{G:()=>r})},74067(e,t,n){"use strict";function r(e){return"symbol"==typeof e||e instanceof Symbol}n.d(t,{B:()=>r})},15015(e,t,n){"use strict";n.d(t,{b:()=>i});var r=n(21378);function i(e){if(Array.isArray(e))return e.map(r.f);if("symbol"==typeof e)return[e];e=function e(t){if(null==t)return"";if("string"==typeof t)return t;if(Array.isArray(t))return t.map(e).join(",");let n=String(t);return"0"===n&&Object.is(Number(t),-0)?"-0":n}(e);let t=[],n=e.length;if(0===n)return t;let i=0,o="",a="",s=!1;for(46===e.charCodeAt(0)&&(t.push(""),i++);i<n;){let r=e[i];a?"\\"===r&&i+1<n?o+=e[++i]:r===a?a="":o+=r:s?'"'===r||"'"===r?a=r:"]"===r?(s=!1,t.push(o),o=""):o+=r:"["===r?(s=!0,o&&(t.push(o),o="")):"."===r?o&&(t.push(o),o=""):o+=r,i++}return o&&t.push(o),t}},40883(e,t,n){"use strict";n.d(t,{W:()=>W,i:()=>$});class r{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return i(this.animations,"duration")}get iterationDuration(){return i(this.animations,"iterationDuration")}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function i(e,t){let n=0;for(let r=0;r<e.length;r++){let i=e[r][t];null!==i&&i>n&&(n=i)}return n}class o extends r{then(e,t){return this.finished.finally(e).then(()=>{})}}var a=n(65968),s=n(49345),l=n(30898),c=n(49492),u=n(14215),h=n(79427),d=n(92950),f=n(31064),p=n(60259),m=n(26328),g=n(110),v=n(94903);function y(e,t){var n;let r;return(0,v.h)(e)?e[n=e.length,((t-0)%(r=n-0)+r)%r+0]:e}var b=n(58240),x=n(4069);function w(e){return"object"==typeof e&&!Array.isArray(e)}function k(e,t,n,r){return null==e?[]:"string"==typeof e&&w(t)?(0,x.K)(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>null!=e):[e]}function S(e,t,n,r){return"number"==typeof t?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):"<"===t?n:t.startsWith("<")?Math.max(0,n+parseFloat(t.slice(1))):r.get(t)??e}var M=n(64721);function A(e,t){return e.at!==t.at?e.at-t.at:null===e.value?1:null===t.value?-1:0}function E(e,t){return t.has(e)||t.set(e,{}),t.get(e)}function C(e,t){return t[e]||(t[e]=[]),t[e]}let O=e=>"number"==typeof e,P=e=>e.every(O);var T=n(68700),D=n(82451),R=n(42579),j=n(61041),I=n(97588),z=n(43422),_=n(30115),L=n(96810),N=n(71140);class B extends N.BX{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,t){if(t in e){let n=e[t];if("string"==typeof n||"number"==typeof n)return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return(0,L.ge)()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}}function F(e){let t={presenceContext:null,props:{}
8,visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=(0,j.x)(e)&&!(0,I.h)(e)?new z.l(t):new _.M(t);n.mount(e),D.C.set(e,n)}function V(e){let t=new B({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});t.mount(e),D.C.set(e,t)}function H(e,t,n,r){let i=[];if((0,f.S)(e)||"number"==typeof e||"string"==typeof e&&!w(t))i.push((0,T.z)(e,w(t)&&t.default||t,n&&n.default||n));else{if(null==e)return i;let o=k(e,t,r),a=o.length;(0,m.V)(!!a,"No valid elements provided.","no-valid-elements");for(let e=0;e<a;e++){let r=o[e],s=r instanceof Element?F:V;D.C.has(r)||s(r);let l=D.C.get(r),c={...n};"delay"in c&&"function"==typeof c.delay&&(c.delay=c.delay(e,a)),i.push(...(0,R.$)(l,{...t,transition:c},{}))}}return i}function W(e={}){let{scope:t,reduceMotion:n,skipAnimations:r}=e;return function(e,i,v){var x;let w,O=[],T={};if(void 0!==n&&(T.reduceMotion=n),void 0!==r&&(T.skipAnimations=r),Array.isArray(e)&&e.some(Array.isArray)){let n,{onComplete:r,...o}=i||{};"function"==typeof r&&(w=r),x={...T,...o},n=[],(function(e,{defaultTransition:t={},...n}={},r,i){let o=t.duration||.3,s=new Map,l=new Map,v={},x=new Map,w=0,O=0,T=0;for(let n=0;n<e.length;n++){let s=e[n];if("string"==typeof s){x.set(s,O);continue}if(!Array.isArray(s)){x.set(s.name,S(O,s.at,w,x));continue}let[b,A,j={}]=s;void 0!==j.at&&(O=S(O,j.at,w,x));let I=0,z=(e,n,r,s=0,l=0)=>{var f;let v=Array.isArray(f=e)?f:[f],{delay:b=0,times:x=(0,c.Z)(v),type:w=t.type||"keyframes",repeat:k,repeatType:S,repeatDelay:A=0,...E}=n,{ease:C=t.ease||"easeOut",duration:D}=n,R="function"==typeof b?b(s,l):b,j=v.length,z=(0,u.W)(w)?w:i?.[w||"keyframes"];if(j<=2&&z){let e=100;2===j&&P(v)&&(e=Math.abs(v[1]-v[0]));let n={...t,...E};void 0!==D&&(n.duration=(0,p.f)(D));let r=(0,h.X)(n,e,z);C=r.ease,D=r.duration}D??(D=o);let _=O+R;1===x.length&&0===x[0]&&(x[1]=1);let L=x.length-v.length;if(L>0&&(0,d.f)(x,L),1===v.length&&v.unshift(null),k&&(0,m.$)(k<20,`Sequence segments can't repeat ${k} times — ignoring repeat option. Use a value below 20 or apply repeat at the sequence level instead.`),k&&k<20){let e=D>0?A/D:0;D=D*(k+1)+A*k;let t=[...v],n=[...x],r=[...C=Array.isArray(C)?[...C]:[C]],i="reverse"===S||"mirror"===S,o=t,a=r;i&&(o=[...t].reverse(),"reverse"===S&&(a=[...r].reverse().map(e=>"function"==typeof e?(0,g.G)(e):e)));for(let s=0;s<k;s++){let l=i&&s%2==0,c=l?o:t,u=l?a:r,h=(s+1)*(1+e);e>0&&(v.push(v[v.length-1]),x.push(h),C.push("linear")),v.push(...c);for(let e=0;e<c.length;e++)x.push(n[e]+h),C.push(0===e?"linear":y(u,e-1))}!function(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}(x,k,e)}let N=_+D;!function(e,t,n,r,i,o){for(let t=0;t<e.length;t++){let n=e[t];n.at>i&&n.at<o&&((0,a.Ai)(e,n),t--)}for(let a=0;a<t.length;a++)e.push({value:t[a],at:(0,M.k)(i,o,r[a]),easing:y(n,a)})}(r,v,C,x,_,N),I=Math.max(R+D,I),T=Math.max(N,T)};if((0,f.S)(b))z(A,j,C("default",E(b,l)));else{let e=k(b,A,r,v),t=e.length;for(let n=0;n<t;n++){let r=E(e[n],l);for(let e in A){var D,R;z(A[e],(D=j,R=e,D&&D[R]?{...D,...D[R]}:{...D}),C(e,r),n,t)}}}w=O,O+=I}return l.forEach((e,r)=>{for(let i in e){let o=e[i];o.sort(A);let a=[],l=[],c=[];for(let e=0;e<o.length;e++){let{at:t,value:n,easing:r}=o[e];a.push(n),l.push((0,b.q)(0,T,t)),c.push(r||"easeOut")}0!==l[0]&&(l.unshift(0),a.unshift(a[0]),c.unshift("easeInOut")),1!==l[l.length-1]&&(l.push(1),a.push(null)),s.has(r)||s.set(r,{keyframes:{},transition:{}});let u=s.get(r);u.keyframes[i]=a;let{type:h,...d}=t;u.transition[i]={...d,duration:T,ease:c,times:l,...n}}}),s})(e.map(e=>{if(Array.isArray(e)&&"function"==typeof e[0]){let t=e[0],n=(0,s.OQ)(0);return(n.on("change",t),1===e.length)?[n,[0,1]]:2===e.length?[n,[0,1],e[1]]:[n,e[1],e[2]]}return e}),x,t,{spring:l.o}).forEach(({keyframes:e,transition:t},r)=>{n.push(...H(r,e,t))}),O=n}else{let{onComplete:n,...r}=v||{};"function"==typeof n&&(w=n),O=H(e,i,{...T,...r},t)}let D=new o(O);return w&&D.finished.then(w),t&&(t.animations.push(D),D.finished.then(()=>{(0,a.Ai)(t.animations,D)})),D}}let $=W()},72780(e,t,n){"use strict";n.d(t,{l:()=>l});var r=n(50405),i=n(29088),o=n(63697),a=n(33017),s=n(40883);function l(){var e;let t=(0,i.M)(()=>({current:null,animations:[]})),n=function(){let e=(0,a.I)(),{reducedMotion:t}=(0,r.useContext)(o.Q);return"never"!==t&&("always"===t||e)}()??void 0,{skipAnimations:l}=(0,r.useContext)(o.Q),c=(0,r.useMemo)(()=>(0,s.W)({scope:t,reduceMotion:n,skipAnimations:l}),[t,n,l]);return e=()=>
8{t.animations.forEach(e=>e.stop()),t.animations.length=0},(0,r.useEffect)(()=>()=>e(),[]),[t,c]}},15591(e,t,n){"use strict";n.d(t,{N:()=>b});var r=n(49793),i=n(50405),o=n(49936),a=n(29088),s=n(57326),l=n(77352),c=n(59216),u=n(63697);function h(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class d extends i.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if((0,c.s)(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,n=(0,c.s)(e)&&e.offsetWidth||0,r=(0,c.s)(e)&&e.offsetHeight||0,i=getComputedStyle(t),o=this.props.sizeRef.current;o.height=parseFloat(i.height),o.width=parseFloat(i.width),o.top=t.offsetTop,o.left=t.offsetLeft,o.right=n-o.width-o.left,o.bottom=r-o.height-o.top,o.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function f({children:e,isPresent:t,anchorX:n,anchorY:o,root:a,pop:s}){let l=(0,i.useId)(),c=(0,i.useRef)(null),p=(0,i.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:m}=(0,i.useContext)(u.Q),g=function(...e){return i.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=h(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():h(e[t],null)}}}}(...e),e)}(c,e.props?.ref??e?.ref);return(0,i.useInsertionEffect)(()=>{let{width:e,height:r,top:i,left:u,right:h,bottom:d,direction:f}=p.current;if(t||!1===s||!c.current||!e||!r)return;let g="rtl"===f,v="left"===n?g?`right: ${h}`:`left: ${u}`:g?`left: ${u}`:`right: ${h}`,y="bottom"===o?`bottom: ${d}`:`top: ${i}`;c.current.dataset.motionPopId=l;let b=document.createElement("style");m&&(b.nonce=m);let x=a??document.head;return x.appendChild(b),b.sheet&&b.sheet.insertRule(`
9          [data-motion-pop-id="${l}"] {
10            position: absolute !important;
11            width: ${e}px !important;
12            height: ${r}px !important;
13            ${v}px !important;
14            ${y}px !important;
15          }
16        `),()=>{c.current?.removeAttribute("data-motion-pop-id"),x.contains(b)&&x.removeChild(b)}},[t]),(0,r.jsx)(d,{isPresent:t,childRef:c,sizeRef:p,pop:s,children:!1===s?e:i.cloneElement(e,{ref:g})})}let p=({children:e,initial:t,isPresent:n,onExitComplete:o,custom:s,presenceAffectsLayout:c,mode:u,anchorX:h,anchorY:d,root:p})=>{let g=(0,a.M)(m),v=(0,i.useId)(),y=!0,b=(0,i.useMemo)(()=>(y=!1,{id:v,initial:t,isPresent:n,custom:s,onExitComplete:e=>{for(let t of(g.set(e,!0),g.values()))if(!t)return;o&&o()},register:e=>(g.set(e,!1),()=>g.delete(e))}),[n,g,o]);return c&&y&&(b={...b}),(0,i.useMemo)(()=>{g.forEach((e,t)=>g.set(t,!1))},[n]),i.useEffect(()=>{n||g.size||!o||o()},[n]),e=(0,r.jsx)(f,{pop:"popLayout"===u,isPresent:n,anchorX:h,anchorY:d,root:p,children:e}),(0,r.jsx)(l.t.Provider,{value:b,children:e})};function m(){return new Map}var g=n(50495);let v=e=>e.key||"";function y(e){let t=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&t.push(e)}),t}let b=({children:e,custom:t,initial:n=!0,onExitComplete:l,presenceAffectsLayout:c=!0,mode:u="sync",propagate:h=!1,anchorX:d="left",anchorY:f="top",root:m})=>{let[b,x]=(0,g.xQ)(h),w=(0,i.useMemo)(()=>y(e),[e]),k=h&&!b?[]:w.map(v),S=(0,i.useRef)(!0),M=(0,i.useRef)(w),A=(0,a.M)(()=>new Map),E=(0,i.useRef)(new Set),[C,O]=(0,i.useState)(w),[P,T]=(0,i.useState)(w);(0,s.E)(()=>{S.current=!1,M.current=w;for(let e=0;e<P.length;e++){let t=v(P[e]);k.includes(t)?(A.delete(t),E.current.delete(t)):!0!==A.get(t)&&A.set(t,!1)}},[P,k.length,k.join("-")]);let D=[];if(w!==C){let e=[...w];for(let t=0;t<P.length;t++){let n=P[t],r=v(n);k.includes(r)||(e.splice(t,0,n),D.push(n))}return"wait"===u&&D.length&&(e=D),T(y(e)),O(w),null}let{forceRender:R}=(0,i.useContext)(o.L);return(0,r.jsx)(r.Fragment,{children:P.map(e=>{let i=v(e),o=(!h||!!b)&&(w===P||k.includes(i));return(0,r.jsx)(p,{isPresent:o,initial:(!S.current||!!n)&&void 0,custom:t,presenceAffectsLayout:c,mode:u,root:m,onExitComplete:o?void 0:()=>{if(E.current.has(i)||!A.has(i))return;E.current.add(i),A.set(i,!0);let e=!0;A.forEach(t=>{t||(e=!1)}),e&&(R?.(),T(M.current),h&&x?.(),l&&l())},anchorX:d,anchorY:f,children:e},i)})})}},50495(e,t,n){"use strict";n.d(t,{xQ:()=>o});var r=n(50405),i=n(77352);function o(e=!0){let t=(0,r.useContext)(i.t);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:a,register:s}=t,l=(0,r.useId)();(0,r.useEffect)(()=>
16{if(e)return s(l)},[e]);let c=(0,r.useCallback)(()=>e&&a&&a(l),[l,a,e]);return!n&&a?[!1,c]:[!0]}},49936(e,t,n){"use strict";n.d(t,{L:()=>r});let r=(0,n(50405).createContext)({})},63697(e,t,n){"use strict";n.d(t,{Q:()=>r});let r=(0,n(50405).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},77352(e,t,n){"use strict";n.d(t,{t:()=>r});let r=(0,n(50405).createContext)(null)},68364(e,t,n){"use strict";let r,i;n.d(t,{P:()=>nP});var o,a=n(43422),s=n(30115),l=n(50405);let c=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function u(e){if("string"!=typeof e||e.includes("-"));else if(c.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}var h=n(49793),d=n(49936);let f=(0,l.createContext)({strict:!1});var p=n(63697);let m=(0,l.createContext)({});var g=n(2005),v=n(11511);function y(e){return Array.isArray(e)?e.join(" "):e}var b=n(31064),x=n(96071),w=n(31976);let k=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function S(e,t,n){for(let r in t)(0,b.S)(t[r])||(0,x.z)(r,n)||(e[r]=t[r])}var M=n(41),A=n(7465);let E=()=>({...k(),attrs:{}}),C=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function O(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||C.has(e)}let P=e=>!O(e);try{o=require("@emotion/is-prop-valid").default,"function"==typeof o&&(P=e=>e.startsWith("on")?!O(e):o(e))}catch{}var T=n(53534);function D(e){return(0,b.S)(e)?e.get():e}var R=n(40050),j=n(68197),I=n(77352),z=n(29088);let _=e=>(t,n)=>{let r=(0,l.useContext)(m),i=(0,l.useContext)(I.t),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:function(e,t,n,r){let i={},o=r(e,{});for(let e in o)i[e]=D(o[e]);let{initial:a,animate:s}=e,l=(0,g.e)(e),c=(0,g.O)(e);t&&c&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let u=!!n&&!1===n.initial,h=(u=u||!1===a)?s:a;if(h&&"boolean"!=typeof h&&!(0,R.N)(h)){let t=Array.isArray(h)?h:[h];for(let n=0;n<t.length;n++){let r=(0,j.a)(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}(n,r,i,e),renderState:t()}})(e,t,r,i);return n?o():(0,z.M)(o)},L=_({scrapeMotionValuesFromProps:T.x,createRenderState:k}),N=_({scrapeMotionValuesFromProps:n(7353).x,createRenderState:E});var B=n(71140);let F={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},V=!1;function H(){return!function(){if(V)return;let e={};for(let t in F)e[t]={isEnabled:e=>F[t].some(t=>!!e[t])};(0,B.lr)(e),V=!0}(),(0,B.vK)()}let W=Symbol.for("motionComponentSymbol");var $=n(34280);let U=(0,l.createContext)({});function K(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}var q=n(57326);function G(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&function(e){let t=H();for(let n in e)t[n]={...t[n],...e[n]};(0,B.lr)(t)}(r);let o=n?"svg"===n:u(e),a=o?N:L;function s(n,r){var s;let c,x,C,T={...(0,l.useContext)(p.Q),...n,layoutId:function({layoutId:e}){let t=(0,l.useContext)(d.L).id;return t&&void 0!==e?t+"-"+e:e}(n)},{isStatic:D}=T,R=function(e){let{initial:t,animate:n}=function(e,t){if((0,g.e)(e)){let{initial:t,animate:n}=e;return{initial:!1===t||(0,v.w)(t)?t:void 0,animate:(0,v.w)(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,l.useContext)(m));return(0,l.useMemo)(()=>({initial:t,animate:n}),[y(t),y(n)])}(n),j=a(n,D);if(!D&&"u">typeof window){(0,l.useContext)(f).strict;let t=function(e){let{drag:t,layout:n}=H();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}
16(T);c=t.MeasureLayout,R.visualElement=function(e,t,n,r,i,o){let{visualElement:a}=(0,l.useContext)(m),s=(0,l.useContext)(f),c=(0,l.useContext)(I.t),u=(0,l.useContext)(p.Q),h=u.reducedMotion,d=u.skipAnimations,g=(0,l.useRef)(null),v=(0,l.useRef)(!1);r=r||s.renderer,!g.current&&r&&(g.current=r(e,{visualState:t,parent:a,props:n,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:h,skipAnimations:d,isSVG:o}),v.current&&g.current&&(g.current.manuallyAnimateOnMount=!0));let y=g.current,b=(0,l.useContext)(U);y&&!y.projection&&i&&("html"===y.type||"svg"===y.type)&&function(e,t,n,r){let{layoutId:i,layout:o,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:c,layoutAnchor:u,layoutCrossfade:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||s&&K(s),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:r,crossfade:h,layoutScroll:l,layoutRoot:c,layoutAnchor:u})}(g.current,n,i,b);let x=(0,l.useRef)(!1);(0,l.useInsertionEffect)(()=>{y&&x.current&&y.update(n,c)});let w=n[$.n],k=(0,l.useRef)(!!w&&"u">typeof window&&!window.MotionHandoffIsComplete?.(w)&&window.MotionHasOptimisedAnimation?.(w));return(0,q.E)(()=>{v.current=!0,y&&(x.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),k.current&&y.animationState&&y.animationState.animateChanges())}),(0,l.useEffect)(()=>{y&&(!k.current&&y.animationState&&y.animationState.animateChanges(),k.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(w)}),k.current=!1),y.enteringChildren=void 0)}),y}(e,j,T,i,t.ProjectionNode,o)}return(0,h.jsxs)(m.Provider,{value:R,children:[c&&R.visualElement?(0,h.jsx)(c,{visualElement:R.visualElement,...T}):null,function(e,t,n,{latestValues:r},i,o=!1,a){let s=(a??u(e)?function(e,t,n,r){let i=(0,l.useMemo)(()=>{let n=E();return(0,M.B)(n,t,(0,A.n)(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};S(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t){let n,r,i={},o=(n=e.style||{},S(r={},n,e),Object.assign(r,function({transformTemplate:e},t){return(0,l.useMemo)(()=>{let n=k();return(0,w.O)(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),r);return e.drag&&!1!==e.dragListener&&(i.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(i.tabIndex=0),i.style=o,i})(t,r,i,e),c=function(e,t,n){let r={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&!(0,b.S)(e[i])&&(P(i)||!0===n&&O(i)||!t&&!O(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(t,"string"==typeof e,o),h=e!==l.Fragment?{...c,...s,ref:n}:{},{children:d}=t,f=(0,l.useMemo)(()=>(0,b.S)(d)?d.get():d,[d]);return(0,l.createElement)(e,{...h,children:f})}(e,n,(s=R.visualElement,x=(0,l.useRef)(r),(0,l.useInsertionEffect)(()=>{x.current=r}),C=(0,l.useRef)(null),(0,l.useCallback)(e=>{e&&j.onMount?.(e),s&&(e?s.mount(e):s.unmount());let t=x.current;if("function"==typeof t)if(e){let n=t(e);"function"==typeof n&&(C.current=n)}else C.current?(C.current(),C.current=null):t(e);else t&&(t.current=e)},[s])),j,D,t,o)]})}s.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let c=(0,l.forwardRef)(s);return c[W]=e,c}class Z{constructor(e){this.isMounted=!1,this.node=e}update(){}}var Y=n(40897),X=n(42579);function J(e,t,n,r=0,i=1){let o=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),a=e.size,s=(a-1)*r;return"function"==typeof n?n(o,a):1===i?o*r:s-o*r}function Q(e,t,n={}){let r=(0,Y.K)(e,t,"exit"===n.type?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let o=r?()=>Promise.all((0,X.$)(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:o=0,staggerChildren:a,staggerDirection:s}=i;return function(e,t,n=0,r=0,i=0,o=1,a){let s=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),s.push(Q(l,t,{...a,delay:n+("function"==typeof r?0:r)+J(e.variantChildren,l,r,i,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}(e,t,r,o,a,s,n)}:()=>Promise.resolve(),{when:s}=i;
16if(!s)return Promise.all([o(),a(n.delay)]);{let[e,t]="beforeChildren"===s?[o,a]:[a,o];return e().then(()=>t())}}var ee=n(71364);let et=ee._.length;var en=n(87280);function er(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}let ei=[...ee.U].reverse(),eo=ee.U.length;function ea(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function es(){return{animate:ea(!0),whileInView:ea(),whileHover:ea(),whileTap:ea(),whileDrag:ea(),whileFocus:ea(),exit:ea()}}let el=0;var ec=n(7309),eu=n(96810);let eh={x:!1,y:!1};function ed(e){return[e("x"),e("y")]}var ef=n(18741),ep=n(64721);function em(e){return e.max-e.min}function eg(e,t,n,r=.5){e.origin=r,e.originPoint=(0,ep.k)(t.min,t.max,e.origin),e.scale=em(n)/em(t),e.translate=(0,ep.k)(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function ev(e,t,n,r){eg(e.x,t.x,n.x,r?r.originX:void 0),eg(e.y,t.y,n.y,r?r.originY:void 0)}function ey(e,t,n,r=0){e.min=(r?(0,ep.k)(n.min,n.max,r):n.min)+t.min,e.max=e.min+em(t)}function eb(e,t,n,r=0){let i=r?(0,ep.k)(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+em(t)}function ex(e,t,n,r){eb(e.x,t.x,n.x,r?.x),eb(e.y,t.y,n.y,r?.y)}var ew=n(76040),ek=n(54023),eS=n(43141),eM=n(7520),eA=n(90009);let eE=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),eC=new Set(["INPUT","SELECT","TEXTAREA"]);function eO(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var eP=n(61041),eT=n(4069);let eD=new WeakMap,eR=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+"Size"]:(0,eP.x)(r)&&"getBBox"in r?r.getBBox()[t]:r[n],ej=eR("inline","width","offsetWidth"),eI=eR("block","height","offsetHeight");function ez({target:e,borderBoxSize:t}){eD.get(e)?.forEach(n=>{n(e,{get width(){return ej(e,t)},get height(){return eI(e,t)}})})}function e_(e){e.forEach(ez)}let eL=new Set;function eN(e,t){let n;return"function"==typeof e?(eL.add(e),i||(i=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};eL.forEach(t=>t(e))},window.addEventListener("resize",i)),()=>{eL.delete(e),eL.size||"function"!=typeof i||(window.removeEventListener("resize",i),i=void 0)}):(!r&&"u">typeof ResizeObserver&&(r=new ResizeObserver(e_)),(n=(0,eT.K)(e)).forEach(e=>{let n=eD.get(e);n||(n=new Set,eD.set(e,n)),n.add(t),r?.observe(e)}),()=>{n.forEach(e=>{let n=eD.get(e);n?.delete(t),n?.size||r?.unobserve(e)})})}var eB=n(26328);let eF=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function eV(e){return{point:{x:e.pageX,y:e.pageY}}}function eH(e,t,n,r){return eO(e,t,e=>eF(e)&&n(e,eV(e)),r)}let eW=({current:e})=>e?e.ownerDocument.defaultView:null;var e$=n(50177),eU=n(60259);let eK=(e,t)=>Math.abs(e-t),eq=new Set(["auto","scroll"]);class eG{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:o=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=eZ(this.lastRawMoveEventInfo,this.transformPagePoint));let n=eX(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,i=(e=n.offset,t={x:0,y:0},Math.sqrt(eK(e.x,t.x)**2+eK(e.y,t.y)**2)>=this.distanceThreshold);if(!r&&!i)return;let{point:o}=n,{timestamp:a}=ew.uv;this.history.push({...o,timestamp:a});let{onStart:s,onMove:l}=this.handlers;r||(s&&s(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,n)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=eZ(t,this.transformPagePoint),ew.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=eX("pointercancel"===e.type?this.lastMoveEventInfo:eZ(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!eF(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=r||window;const s=eZ(eV(e),this.transformPagePoint),{point:l}=s,{timestamp:c}=ew.uv;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=t;u&&u(e,eX(s,this.history)),this.removeListeners=(0,e$.F)(eH(this.contextWindow,"pointermove",this.handlePointerMove),eH(this.contextWindow,"pointerup",this.handlePointerUp),eH(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(eq.has(e.overflowX)||eq.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(0!==i.x||0!==i.y)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),ew.Gt.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),(0,ew.WG)(this.updatePoint)}}function eZ(e,t){return t?{point:t(e.point)}:e}function eY(e,t){return{x:e.x-t.x,y:e.y-t.y}}function eX({point:e},t){return{point:e,delta:eY(e,eJ(t)),offset:eY(e,t[0]),velocity:function(e){if(e.length<2)return{x:0,y:0};let t=e.length-1,n=null,r=eJ(e);for(;t>=0&&(n=e[t],!(r.timestamp-n.timestamp>(0,eU.f)(.1)));)t--;if(!n)return{x:0,y:0};n===e[0]&&e.length>2&&r.timestamp-n.timestamp>2*(0,eU.f)(.1)&&(n=e[1]);let i=(0,eU.X)(r.timestamp-n.timestamp);if(0===i)return{x:0,y:0};let o={x:(r.x-n.x)/i,y:(r.y-n.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(t)}}function eJ(e){return e[e.length-1]}var eQ=n(58240),e0=n(59110);function e1(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function e2(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function e4(e,t,n){return{min:e5(e,t),max:e5(e,n)}}function e5(e,t){return"number"==typeof e?e:e[t]||0}let e3=new WeakMap;class e6{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,eu.ge)(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let i=e=>{t&&this.snapToCursor(eV(e).point),this.stopAnimation()},o=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"
16y"===e)if(eh[e])return null;else return eh[e]=!0,()=>{eh[e]=!1};return eh.x||eh.y?null:(eh.x=eh.y=!0,()=>{eh.x=eh.y=!1})}(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ed(e=>{let t=this.getAxisMotionValue(e).get()||0;if(ef.KN.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=em(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&ew.Gt.update(()=>i(e,t),!1,!0),(0,ek.g)(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},a=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:a}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(a),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),o&&ew.Gt.update(()=>o(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();this.panSession=new eG(e,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:n,contextWindow:eW(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:o}=r;this.startAnimation(o);let{onDragEnd:a}=this.getProps();a&&ew.Gt.postRender(()=>a(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!e9(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?(0,ep.k)(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?(0,ep.k)(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&K(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:e1(e.x,n,i),y:e1(e.y,t,r)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:e4(e,"left","right"),y:e4(e,"top","bottom")}}(t),r!==this.constraints&&!K(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&ed(e=>{var t,r;let i;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=n.layoutBox[e],r=this.constraints[e],i={},void 0!==r.min&&(i.min=r.min-t.min),void 0!==r.max&&(i.max=r.max-t.min),i))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!K(t))return!1;let r=t.current;(0,eB.V)(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;i.root&&(i.root.scroll=void 0,i.root.updateScroll());let o=(0,eS.L)(r,i.root,this.visualElement.getTransformPagePoint()),a=(e=i.layout.layoutBox,{x:e2(e.x,o.x),y:e2(e.y,o.y)});if(n){let e=n((0,eM.pA)(a));this.hasMutatedConstraints=!!e,e&&(a=(0,eM.FY)(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{};return Promise.all(ed(a=>
16{if(!e9(a,t,this.currentDirection))return;let l=s&&s[a]||{};(!0===o||o===a)&&(l={min:0,max:0});let c={type:"inertia",velocity:n?e[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(a,c)})).then(a)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return(0,ek.g)(this.visualElement,e),n.start((0,eA.f)(e,n,0,t,this.visualElement,!1))}stopAnimation(){ed(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){ed(t=>{let{drag:n}=this.getProps();if(!e9(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:o}=r.layout.layoutBox[t],a=i.get()||0;i.set(e[t]-(0,ep.k)(n,o,.5)+a)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!K(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};ed(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var n,i;let o,a,s,l=t.get();r[e]=(n={min:l,max:l},i=this.constraints[e],o=.5,a=em(n),(s=em(i))>a?o=(0,eQ.q)(i.min,i.max-a,n.min):a>s&&(o=(0,eQ.q)(n.min,n.max-s,i.min)),(0,e0.q)(0,1,o))}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),ed(t=>{if(!e9(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];n.set((0,ep.k)(i,o,r[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;e3.set(this.visualElement,this);let t=this.visualElement.current,n=eH(t,"pointerdown",e=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=e.target,o=i!==t&&(eC.has(i.tagName)||!0===i.isContentEditable);n&&r&&!o&&this.start(e)}),r=()=>{var n,r,i;let o,a,{dragConstraints:s}=this.getProps();K(s)&&s.current&&(this.constraints=this.resolveRefConstraints(),e||(n=t,r=s.current,o=eN(n,e8(i=()=>this.scalePositionWithinConstraints())),a=eN(r,e8(i)),e=()=>{o(),a()}))},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),ew.Gt.read(r);let a=eO(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(ed(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),s&&s(),e&&e()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function e8(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function e9(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}let e7=e=>(t,n)=>{e&&ew.Gt.update(()=>e(t,n),!1,!0)},te={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var tt=n(45668),tn=n(50495);let tr=!1;class ti extends l.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),tr&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),te.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:o}=n;return o&&(o.isPresent=i,e.layoutDependency!==t&&o.setOptions({...o.options,layoutDependency:t}),tr=!0,r||e.layoutDependency!==t||void 0===t||e.isPresent!==i?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||ew.Gt.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),tt.k.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;tr=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function to(e){let[t,n]=(0,tn.xQ)(),r=(0,l.useContext)(d.L);return(0,h.jsx)(ti,{...e,layoutGroup:r,switchLayoutGroup:(0,l.useContext)(U),isPresent:t,safeToRemove:n})}var ta=n(16876),ts=n(68700),tl=n(27210),tc=n(60514),tu=n(22134),th=n(96264),td=n(90831),tf=n(32395),tp=n(97588),tm=n(49345),tg=n(21912);let tv=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],ty=tv.length,tb=e=>"string"==typeof e?parseFloat(e):e,tx=e=>"number"==typeof e||ef.px.test(e);function tw(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let tk=tM(0,.5,tg.yT),tS=tM(.5,.95,ec.l);function tM(e,t,n){return r=>r<e?0:r>t?1:n((0,eQ.q)(e,t,r))}function tA(e,t){e.min=t.min,e.max=t.max}function tE(e,t){tA(e.x,t.x),tA(e.y,t.y)}function tC(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var tO=n(86393);function tP(e,t,n,r,i){return e-=t,e=(0,tO.hq)(e,1/n,r),void 0!==i&&(e=(0,tO.hq)(e,1/i,r)),e}function tT(e,t,[n,r,i],o,a){!function(e,t=0,n=1,r=.5,i,o=e,a=e){if(ef.KN.test(t)&&(t=parseFloat(t),t=(0,ep.k)(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let s=(0,ep.k)(o.min,o.max,r);e===o&&(s-=t),e.min=tP(e.min,t,n,s,i),e.max=tP(e.max,t,n,s,i)}(e,t[n],t[r],t[i],t.scale,o,a)}let tD=["x","scaleX","originX"],tR=["y","scaleY","originY"];function tj(e,t,n,r){tT(e.x,t,tD,n?n.x:void 0,r?r.x:void 0),tT(e.y,t,tR,n?n.y:void 0,r?r.y:void 0)}function tI(e){return 0===e.translate&&1===e.scale}function tz(e){return tI(e.x)&&tI(e.y)}function t_(e,t){return e.min===t.min&&e.max===t.max}function tL(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function tN(e,t){return tL(e.x,t.x)&&tL(e.y,t.y)}function tB(e){return em(e.x)/em(e.y)}function tF(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var tV=n(65968);class tH{constructor(){this.members=[]}add(e){(0,tV.Kq)(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;r&&!1!==r.isConnected||n.snapshot||((0,tV.Ai)(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if((0,tV.Ai)(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(!1!==e.isPresent&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(void 0===r||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isU
16pdating&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let tW=(e,t)=>e.depth-t.depth;class t${constructor(){this.children=[],this.isDirty=!1}add(e){(0,tV.Kq)(this.children,e),this.isDirty=!0}remove(e){(0,tV.Ai)(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(tW),this.isDirty=!1,this.children.forEach(e)}}var tU=n(83118);let tK={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},tq=["","X","Y","Z"],tG=0;function tZ(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function tY({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=tG++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,tf.Q.value&&(tK.nodes=tK.calculatedTargetDeltas=tK.calculatedProjections=0),this.nodes.forEach(tQ),this.nodes.forEach(t9),this.nodes.forEach(t7),this.nodes.forEach(t0),tf.Q.addProjectionMetrics&&tf.Q.addProjectionMetrics(tK)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new t$)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new ta.v),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=(0,eP.x)(t)&&!(0,tp.h)(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;ew.Gt.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;if(e!==r){let t,o;r=e,this.root.updateBlockedByResize=!0,n&&n(),t=tu.k.now(),o=({timestamp:e})=>{let n=e-t;n>=250&&((0,ew.WG)(o),i(n-250))},ew.Gt.setup(o,!0),n=()=>(0,ew.WG)(o),te.hasAnimatedSinceResize&&(te.hasAnimatedSinceResize=!1,this.nodes.forEach(t8))}})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&i&&(n||r)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||i.getDefaultTransition()||no,{onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=i.getProps(),l=!this.targetLayout||!tN(this.targetLayout,r),c=!t&&n;if(this.options.layoutRoot||this.resumeFrom||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...(0,tc.r)(o,"layout"),onPlay:a,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,c,t.path)}else t||t8(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,ew.WG)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
16h(ne),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:n}=t.options;if(!n)return;let r=(0,tl.P)(n);if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",ew.Gt,!(e||n))}let{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&e(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,("string"==typeof t.latestValues.x||"string"==typeof t.latestValues.y)&&(t.isLayoutDirty=!0),t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(t4),this.nodes.forEach(t2);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(t5);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(t3),this.nodes.forEach(t6),this.nodes.forEach(tX),this.nodes.forEach(tJ)):this.nodes.forEach(t5),this.clearAllSnapshots();let e=tu.k.now();ew.uv.delta=(0,e0.q)(0,1e3/60,e-ew.uv.timestamp),ew.uv.timestamp=e,ew.uv.isProcessing=!0,ew.PP.update.process(ew.uv),ew.PP.preRender.process(ew.uv),ew.PP.render.process(ew.uv),ew.uv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tt.k.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(t1),this.sharedNodes.forEach(nt)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ew.Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ew.Gt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||em(this.snapshot.measuredBox.x)||em(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=(0,eu.ge)()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!tz(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||(0,tU.HD)(this.latestValues)||o)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),nl((t=r).x),nl(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return(0,eu.ge)();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(nu))){let{scroll:e}=this.root;e&&((0,tO.Ql)(t.x,e.offset.x),(0,tO.Ql)(t.y,e.offset.y))}return t}removeElementScroll(e){let t=(0,eu.ge)();if(tE(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:o}=r;r!==this.root&&i&&o.layoutScroll&&(i.wasRoot&&tE(t,e),(0,tO.Ql)(t.x,i.offset.x),(0,tO.Ql)(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||(0,eu.ge)();tE(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&((0,tO.Ql)(r.x,-n.scroll.offset.x),(0,tO.Ql)(r.y,-n.scroll.offset.y)),(0,tU.HD)(n.latestValues)&&(0,tO.Ww)(r,n.latestValues,n.layout?.layoutBox)}return(0,tU.HD)(this.latestValues)&&(0,tO.Ww)(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=(0,eu.ge)();tE(t,e);for(let e=0;e<this.path.length;e++){let n,r=this.path[e];(0,tU.HD)(r.latestValues)&&(r.instance&&((0,tU.vk)(r.latestValues)&&r.updateSnapshot(),tE(n=(0,eu.ge)(),r.measurePageBox())),tj(t,r.latestValues,r.snapshot?.layoutBox,n))}return(0,tU.HD)(this.latestValues)&&tj(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ew.uv.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.
16isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=ew.uv.timestamp;let o=this.getClosestProjectingParent();if(o&&this.linkedParentVersion!==o.layoutVersion&&!o.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&o&&o.layout?this.createRelativeTarget(o,this.layout.layoutBox,o.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=(0,eu.ge)(),this.targetWithTransforms=(0,eu.ge)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var a,s,l,c;this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,c=this.options.layoutAnchor||void 0,ey(a.x,s.x,l.x,c?.x),ey(a.y,s.y,l.y,c?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):tE(this.target,this.layout.layoutBox),(0,tO.o4)(this.target,this.targetDelta)):tE(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&o&&!!o.resumingFrom==!!this.resumingFrom&&!o.options.layoutScroll&&o.target&&1!==this.animationProgress?this.createRelativeTarget(o,this.target,o.target):this.relativeParent=this.relativeTarget=void 0),tf.Q.value&&tK.calculatedTargetDeltas++}}getClosestProjectingParent(){if(!(!this.parent||(0,tU.vk)(this.parent.latestValues)||(0,tU.vF)(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,eu.ge)(),this.relativeTargetOrigin=(0,eu.ge)(),ex(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),tE(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===ew.uv.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;tE(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;(0,tO.OU)(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=(0,eu.ge)());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(tC(this.prevProjectionDelta.x,this.projectionDelta.x),tC(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),ev(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&tF(this.projectionDelta.x,this.prevProjectionDelta.x)&&tF(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",s)),tf.Q.value&&tK.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,eu.xU)(),this.projectionDelta=(0,eu.xU)(),this.projectionDeltaWithTransform=(0,eu.xU)()}setAnimationOrigin(e,t=!1,n){let r,i=this.snapshot,o=i?i.latestValues:{},a={...this.latestValues},s=(0,eu.xU)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let l=(0,eu.ge)(),c=(i?i.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,d=!!(c&&!h&&!0===this.options.crossfade&&!this.path.some(ni));this.animationProgress=0;let f=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,i=f?.(n);if(i?(s.x.translate=i.x,s.x.scale=(0,ep.k)(e.x.scale,1,n),s.x.origin=e.x.origin,s.x.originPoint=e.x.originPoint,s.y.translate=i.y,s.y.scale=(0,ep.k)(e.y.scale,1,n),s.y.origin=e.y.origin,s.y.originPoint=e.y.originPoint):(nn(s.x,e.x,n),nn(s.y,e.y,n)),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,p,m,g,v,y;ex(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),m=this.relativeTarget,g=this.relativeTargetOrigin,v=l,y=n,nr(m.x,g.x,v.x,y),nr(m.y,g.y,v.y,y),r&&(u=this.relativeTarget,p=r,t_(u.x,p.x)&&t_(u.y,p.y))&&(this.isProjectionDirty=!1),r||(r=(0,eu.ge)()),tE(r,this.relativeTarget)}c&&(this.animationValues=a,function(e,t,n,r,i,o){i?(e.opacity=(0,ep.k)(0,n.opacity??1,tk(r)),e.opacityExit=(0,ep.k)(t.opacity??1,0,tS(r))):o&&(e.opacity=(0,ep.k)(t.opacity??1,n.opacity??1,r));for(let i=0;i<ty;i++){let o=tv[i],a=tw(t,o),s=tw(n,o);(void 0!==a||void 0!==s)&&(a||(a=0),s||(s=0),0===a||0===s||tx(a)===tx(s)?(e[o]=Math.max((0,ep.k)(tb(a),tb(s),r),0),(ef.KN.test(s)||ef.
16KN.test(a))&&(e[o]+="%")):e[o]=s)}(t.rotate||n.rotate)&&(e.rotate=(0,ep.k)(t.rotate||0,n.rotate||0,r))}(a,o,this.latestValues,n,d,h)),i&&void 0!==i.rotate&&(this.animationValues||(this.animationValues=a),this.animationValues.pathRotation=i.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,ew.WG)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ew.Gt.update(()=>{te.hasAnimatedSinceResize=!0,td.q.layout++,this.motionValue||(this.motionValue=(0,tm.OQ)(0)),this.motionValue.jump(0,!1),this.currentAnimation=(0,ts.z)(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{td.q.layout--},onComplete:()=>{td.q.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&nc(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||(0,eu.ge)();let t=em(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=em(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}tE(t,n),(0,tO.Ww)(t,i),ev(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new tH),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&tZ("z",e,r,this.animationValues);for(let t=0;t<tq.length;t++)tZ(`rotate${tq[t]}`,e,r,this.animationValues),tZ(`skew${tq[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=D(t?.pointerEvents)||"",e.transform=n?n(this.latestValues,""):"none";return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=D(t?.pointerEvents)||""),this.hasProjected&&!(0,tU.HD)(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1);return}e.visibility="";let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();
16let o=function(e,t,n){let r="",i=e.x.translate/t.x,o=e.y.translate/t.y,a=n?.z||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(1!==t.x||1!==t.y)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:o,rotateY:a,skewX:s,skewY:l}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),o&&(r+=`rotateX(${o}deg) `),a&&(r+=`rotateY(${a}deg) `),s&&(r+=`skewX(${s}deg) `),l&&(r+=`skewY(${l}deg) `)}let s=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==s||1!==l)&&(r+=`scale(${s}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,i);n&&(o=n(i,o)),e.transform=o;let{x:a,y:s}=this.projectionDelta;for(let t in e.transformOrigin=`${100*a.origin}% ${100*s.origin}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0,th.H){if(void 0===i[t])continue;let{correct:n,applyTo:a,isCSSVariable:s}=th.H[t],l="none"===o?i[t]:n(i[t],r);if(a){let t=a.length;for(let n=0;n<t;n++)e[a[n]]=l}else s?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=r===this?D(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(t2),this.root.sharedNodes.clear()}}}function tX(e){e.updateLayout()}function tJ(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,o=t.source!==e.layout.source;if("size"===i)ed(e=>{let r=o?t.measuredBox[e]:t.layoutBox[e],i=em(r);r.min=n[e].min,r.max=r.min+i});else if("x"===i||"y"===i){let e="x"===i?"y":"x";tA(o?t.measuredBox[e]:t.layoutBox[e],n[e])}else nc(i,t.layoutBox,n)&&ed(r=>{let i=o?t.measuredBox[r]:t.layoutBox[r],a=em(n[r]);i.max=i.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)});let a=(0,eu.xU)();ev(a,n,t.layoutBox);let s=(0,eu.xU)();o?ev(s,e.applyTransform(r,!0),t.measuredBox):ev(s,n,t.layoutBox);let l=!tz(a),c=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:o}=r;if(i&&o){let a=e.options.layoutAnchor||void 0,s=(0,eu.ge)();ex(s,t.layoutBox,i.layoutBox,a);let l=(0,eu.ge)();ex(l,n,o.layoutBox,a),tN(s,l)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function tQ(e){tf.Q.value&&tK.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function t0(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function t1(e){e.clearSnapshot()}function t2(e){e.clearMeasurements()}function t4(e){e.isLayoutDirty=!0,e.updateLayout()}function t5(e){e.isLayoutDirty=!1}function t3(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function t6(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function t8(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function t9(e){e.resolveTargetDelta()}function t7(e){e.calcProjection()}function ne(e){e.resetSkewAndRotation()}function nt(e){e.removeLeadSnapshot()}function nn(e,t,n){e.translate=(0,ep.k)(t.translate,0,n),e.scale=(0,ep.k)(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function nr(e,t,n,r){e.min=(0,ep.k)(t.min,n.min,r),e.max=(0,ep.k)(t.max,n.max,r)}function ni(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let no={duration:.45,ease:[.4,0,.1,1]},na=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ns=na("applewebkit/")&&!na("chrome/")?Math.round:ec.l;function nl(e){e.min=ns(e.min),e.max=ns(e.max)}function nc(e,t,n){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(tB(t)-tB(n)))}function nu(e){return e!==e.root&&e.scroll?.wasRoot}let nh=tY({attachResizeListener:(e,t)=>eO(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),nd={current:void 0},nf=tY({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!nd.current){let e=new nh({});e.mount(window),e.setOptions({layoutScroll:!0}),nd.current=e}return nd.current},resetTransform:(e,t)=>
16{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function np(e,t){let n=(0,eT.K)(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function nm(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);let i=r["onHover"+n];i&&ew.Gt.postRender(()=>i(t,eV(t)))}var ng=n(59216);let nv=(e,t)=>!!t&&(e===t||nv(e,t.parentElement)),ny=new WeakSet;function nb(e){return t=>{"Enter"===t.key&&e(t)}}function nx(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function nw(e){return eF(e)&&!(eh.x||eh.y)}let nk=new WeakSet;function nS(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);let i=r["onTap"+("End"===n?"":n)];i&&ew.Gt.postRender(()=>i(t,eV(t)))}let nM=new WeakMap,nA=new WeakMap,nE=e=>{let t=nM.get(e.target);t&&t(e)},nC=e=>{e.forEach(nE)},nO={some:0,all:1},nP=function(e,t){if("u"<typeof Proxy)return G;let n=new Map,r=(n,r)=>G(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,o)=>"create"===o?r:(n.has(o)||n.set(o,G(o,void 0,e,t)),n.get(o))})}({animation:{Feature:class extends Z{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>Q(e,t,n)));else if("string"==typeof t)r=Q(e,t,n);else{let i="function"==typeof t?(0,Y.K)(e,t,n.custom):t;r=Promise.all((0,X.$)(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})})(e,t,n))),n=es(),r=!0,i=!1,o=t=>(n,r)=>{let i=(0,Y.K)(e,r,"exit"===t?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function a(a){let{props:s}=e,l=function e(t){if(!t)return;if(!t.isControllingVariants){let n=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(n.initial=t.props.initial),n}let n={};for(let e=0;e<et;e++){let r=ee._[e],i=t.props[r];((0,v.w)(i)||!1===i)&&(n[r]=i)}return n}(e.parent)||{},c=[],u=new Set,h={},d=1/0;for(let t=0;t<eo;t++){var f,p;let m=ei[t],g=n[m],y=void 0!==s[m]?s[m]:l[m],b=(0,v.w)(y),x=m===a?g.isActive:null;!1===x&&(d=t);let w=y===l[m]&&y!==s[m]&&b;if(w&&(r||i)&&e.manuallyAnimateOnMount&&(w=!1),g.protectedKeys={...h},!g.isActive&&null===x||!y&&!g.prevProp||(0,R.N)(y)||"boolean"==typeof y)continue;if("exit"===m&&g.isActive&&!0!==x){g.prevResolvedValues&&(h={...h,...g.prevResolvedValues});continue}let k=(f=g.prevProp,"string"==typeof(p=y)?p!==f:!!Array.isArray(p)&&!er(p,f)),S=k||m===a&&g.isActive&&!w&&b||t>d&&b,M=!1,A=Array.isArray(y)?y:[y],E=A.reduce(o(m),{});!1===x&&(E={});let{prevResolvedValues:C={}}=g,O={...C,...E},P=t=>{S=!0,u.has(t)&&(M=!0,u.delete(t)),g.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in O){let t=E[e],n=C[e];if(!h.hasOwnProperty(e))((0,en.p)(t)&&(0,en.p)(n)?!er(t,n)||k:t!==n)?null!=t?P(e):u.add(e):void 0!==t&&u.has(e)?P(e):g.protectedKeys[e]=!0}g.prevProp=y,g.prevResolvedValues=E,g.isActive&&(h={...h,...E}),(r||i)&&e.blockInitialAnimation&&(S=!1);let T=w&&k,D=!T||M;S&&D&&c.push(...A.map(t=>{let n={type:m};if("string"==typeof t&&(r||i)&&!T&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=(0,Y.K)(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=J(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if("boolean"!=typeof s.initial){let n=(0,Y.K)(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),c.push({animation:t})}let m=!!c.length;return r&&(!1===s.initial||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,i=!1,m?t(c):Promise.resolve()}return{animateChanges:a,setActive:function(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=a(t);for(let e in n)n[e].protectedKeys={};return i},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=es(),i=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();(0,R.N)(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends Z{constructor(){super(...arguments),this.id=el++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&!1===n){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if("string"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)){let n=(0,Y.K)(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>
16{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends Z{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.stopObserver?.();let{viewport:n={}}=this.node.getProps(),{root:r,margin:i,amount:o="some",once:a}=n,s={root:r?r.current:void 0,rootMargin:i,threshold:"number"==typeof o?o:nO[o]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,a&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)};this.stopObserver=(e=this.node.current,t=function({root:e,...t}){let n=e||document;nA.has(n)||nA.set(n,{});let r=nA.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(nC,{root:e,...t})),r[i]}(s),nM.set(e,l),t.observe(e),()=>{nM.delete(e),t.unobserve(e)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends Z{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=function(e,t,n={}){let[r,i,o]=np(e,n),a=e=>{let r=e.currentTarget;if(!nw(e)||nk.has(e))return;ny.add(r),n.stopPropagation&&nk.add(e);let o=t(r,e),a=(e,t)=>{window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",l),ny.has(r)&&ny.delete(r),nw(e)&&"function"==typeof o&&o(e,{success:t})},s=e=>{a(e,r===window||r===document||n.useGlobalTarget||nv(r,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",s,i),window.addEventListener("pointercancel",l,i)};return r.forEach(e=>{((n.useGlobalTarget?window:e).addEventListener("pointerdown",a,i),(0,ng.s)(e))&&(e.addEventListener("focus",e=>((e,t)=>{let n=e.currentTarget;if(!n)return;let r=nb(()=>{if(ny.has(n))return;nx(n,"down");let e=nb(()=>{nx(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>nx(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)})(e,i)),eE.has(e.tagName)||!0===e.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),o}(e,(e,t)=>(nS(this.node,t,"Start"),(e,{success:t})=>nS(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}}},focus:{Feature:class extends Z{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,e$.F)(eO(this.node.current,"focus",()=>this.onFocus()),eO(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends Z{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[r,i,o]=np(e,n);return r.forEach(e=>{let n,r=!1,o=!1,a=t=>{n&&(n(t),n=void 0),e.removeEventListener("pointerleave",l)},s=e=>{r=!1,window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",s),o&&(o=!1,a(e))},l=e=>{if("touch"!==e.pointerType){if(r){o=!0;return}a(e)}};e.addEventListener("pointerenter",r=>{if("touch"===r.pointerType||eh.x||eh.y)return;o=!1;let a=t(e,r);"function"==typeof a&&(n=a,e.addEventListener("pointerleave",l,i))},i),e.addEventListener("pointerdown",()=>{r=!0,window.addEventListener("pointerup",s,i),window.addEventListener("pointercancel",s,i)},i)}),o}(e,(e,t)=>(nm(this.node,t,"Start"),e=>nm(this.node,e,"End"))))}unmount(){}}},pan:{Feature:class extends Z{constructor(){super(...arguments),this.removePointerDownListener=ec.l}onPointerDown(e){this.session=new eG(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:eW(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:e7(e),onStart:e7(t),onMove:e7(n),onEnd:(e,t)=>{delete this.session,r&&ew.Gt.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=eH(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Z{constructor(e){super(e),this.removeGroupControls=ec.l,this.removeListeners=ec.l,this.controls=new e6(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ec.l}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:nf,MeasureLayout:to},layout:{ProjectionNode:nf,MeasureLayout:to}},(e,t)=>t.isSVG??u(e)?new a.l(t):new s.M(t,{allowProjection:e!==l.Fragment}))},33017(e,t,n){"use strict";n.d(t,{I:()=>a});var r=n(30721),i=n(24338),o=n(50405);function a(){r.r.current||(0,i.U)();let[e]=(0,o.useState)(r.O.current);return e}},29088(e,t,n){"use strict";n.d(t,{M:()=>i});var r=n(50405);function i(e){let t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}}
16,57326(e,t,n){"use strict";n.d(t,{E:()=>i});var r=n(50405);let i="u">typeof window?r.useLayoutEffect:r.useEffect},64422(e,t,n){"use strict";n.d(t,{d:()=>s});var r=n(49345),i=n(50405),o=n(63697),a=n(29088);function s(e){let t=(0,a.M)(()=>(0,r.OQ)(e)),{isStatic:n}=(0,i.useContext)(o.Q);if(n){let[,n]=(0,i.useState)(e);(0,i.useEffect)(()=>t.on("change",n),[])}return t}},38390(e,t,n){"use strict";n.d(t,{G:()=>function e(t,n,o,a){if("function"==typeof t){let e;return c.bt.current=[],t(),e=l(c.bt.current,t),c.bt.current=void 0,e}if(void 0!==o&&!Array.isArray(o)&&"function"!=typeof n){var s=t,h=n,d=o,f=a;let r=(0,i.M)(()=>Object.keys(d)),l=(0,i.M)(()=>({}));for(let t of r)l[t]=e(s,h,d[t],f);return l}let p="function"==typeof n?n:function(...e){let t=!Array.isArray(e[0]),n=t?0:-1,i=e[0+n],o=e[1+n],a=e[2+n],s=e[3+n],l=(0,r.G)(o,a,s);return t?l(i):l}(n,o,a),m=Array.isArray(t)?u(t,p):u([t],([e])=>p(e)),g=Array.isArray(t)?void 0:t.accelerate;return g&&!g.isTransformed&&"function"!=typeof n&&Array.isArray(o)&&a?.clamp!==!1&&(m.accelerate={...g,times:n,keyframes:o,isTransformed:!0,...a?.ease?{ease:a.ease}:{}}),m}});var r=n(96380),i=n(29088),o=n(76040),a=n(57326),s=n(64422);function l(e,t){let n=(0,s.d)(t()),r=()=>n.set(t());return r(),(0,a.E)(()=>{let t=()=>o.Gt.preRender(r,!1,!0),n=e.map(e=>e.on("change",t));return()=>{n.forEach(e=>e()),(0,o.WG)(r)}}),n}var c=n(49345);function u(e,t){let n=(0,i.M)(()=>[]);return l(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}},36726(e,t,n){"use strict";n.d(t,{h4:()=>W});var r,i=Symbol.for("immer-nothing"),o=Symbol.for("immer-draftable"),a=Symbol.for("immer-state");function s(e){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var l=Object.getPrototypeOf;function c(e){return!!e&&!!e[a]}function u(e){return!!e&&(f(e)||Array.isArray(e)||!!e[o]||!!e.constructor?.[o]||y(e)||b(e))}var h=Object.prototype.constructor.toString(),d=new WeakMap;function f(e){if(!e||"object"!=typeof e)return!1;let t=Object.getPrototypeOf(e);if(null===t||t===Object.prototype)return!0;let n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(n===Object)return!0;if("function"!=typeof n)return!1;let r=d.get(n);return void 0===r&&(r=Function.toString.call(n),d.set(n,r)),r===h}function p(e,t,n=!0){0===m(e)?(n?Reflect.ownKeys(e):Object.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function m(e){let t=e[a];return t?t.type_:Array.isArray(e)?1:y(e)?2:3*!!b(e)}function g(e,t){return 2===m(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function v(e,t,n){let r=m(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function y(e){return e instanceof Map}function b(e){return e instanceof Set}function x(e){return e.copy_||e.base_}function w(e,t){if(y(e))return new Map(e);if(b(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);let n=f(e);if(!0!==t&&("class_only"!==t||n)){let t=l(e);return null!==t&&n?{...e}:Object.assign(Object.create(t),e)}{let t=Object.getOwnPropertyDescriptors(e);delete t[a];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(l(e),t)}}function k(e,t=!1){return M(e)||c(e)||!u(e)||(m(e)>1&&Object.defineProperties(e,{set:S,add:S,clear:S,delete:S}),Object.freeze(e),t&&Object.values(e).forEach(e=>k(e,!0))),e}var S={value:function(){s(2)}};function M(e){return null===e||"object"!=typeof e||Object.isFrozen(e)}var A={};function E(e){let t=A[e];return t||s(0,e),t}function C(e,t){t&&(E("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function O(e){P(e),e.drafts_.forEach(D),e.drafts_=null}function P(e){e===r&&(r=e.parent_)}function T(e){return r={drafts_:[],parent_:r,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function D(e){let t=e[a];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function R(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];return void 0!==e&&e!==n?(n[a].modified_&&(O(t),s(4)),u(e)&&(e=j(t,e),t.parent_||z(t,e)),t.patches_&&E("Patches").generateReplacementPatches_(n[a].base_,e,t.patches_,t.inversePatches_)):e=j(t,n,[]),O(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==i?e:void 0}function j(e,t,n){if(M(t))return t;let r=e.immer_.shouldUseStrictIteration(),i=t[a];if(!i)return p(t,(r,o)=>I(e,i,t,r,o,n),r),t;if(i.scope_!==e)return t;if(!i.modified_)return z(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;let t=i.copy_,o=t,a=!1;3===i.type_&&(o=new Set(t),t.clear(),a=!0),p(o,(r,o)=>I(e,i,t,r,o,n,a),r),z(e,t,!1),n&&e.patches_&&E("Patches").generatePatches_(i,n,e.patches_,e.inversePatches_)}return i.copy_}function I(e,t,n,r,i,o,a){if(null==i||"object"!=typeof i&&!a)return;let s=M(i);if(!s||a){if(c(i)){let a=j(e,i,o&&t&&3!==t.type_&&!g(t.assigned_,r)?o.concat(r):void 0);if(v(n,r,a),!c(a))return;e.canAutoFreeze_=!1}else a&&n.add(i);if(u(i)&&!s){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[r]===i&&s)return;j(e,i),(!t||!t.scope_.parent_)&&"symbol"!=typeof r&&(y(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))&&z(e,i)}}}function z(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&k(t,n)}var _={get(e,t){if(t===a)return e;let n=x(e);if(!g(n,t)){var r;let i;return r=e,(i=B(n,t))?"value"in i?i.value:i.get?.call(r.draft_):void 0}let i=n[t];return e.finalized_||!u(i)?i:i===N(e.base_,t)?(V(e),e.copy_[t]=H(i,e)):i},has:(e,t)=>t in x(e),ownKeys:e=>Reflect.ownKeys(x(e)),set(e,t,n){let r=B(x(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=N(x(e),t),i=r?.[a];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if((n===r?0!==n||1/n==1/r:n!=n&&r!=r)&&(void 0!==n||g(e.base_,t)))return!0;V(e),F(e)}return!!(e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t]))||
16(e.copy_[t]=n,e.assigned_[t]=!0,!0)},deleteProperty:(e,t)=>(void 0!==N(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,V(e),F(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){let n=x(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){s(11)},getPrototypeOf:e=>l(e.base_),setPrototypeOf(){s(12)}},L={};function N(e,t){let n=e[a];return(n?x(n):e)[t]}function B(e,t){if(!(t in e))return;let n=l(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=l(n)}}function F(e){!e.modified_&&(e.modified_=!0,e.parent_&&F(e.parent_))}function V(e){e.copy_||(e.copy_=w(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function H(e,t){let n=y(e)?E("MapSet").proxyMap_(e,t):b(e)?E("MapSet").proxySet_(e,t):function(e,t){let n=Array.isArray(e),i={type_:+!!n,scope_:t?t.scope_:r,modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1},o=i,a=_;n&&(o=[i],a=L);let{revoke:s,proxy:l}=Proxy.revocable(o,a);return i.draft_=l,i.revoke_=s,l}(e,t);return(t?t.scope_:r).drafts_.push(n),n}function W(e){return e}p(_,(e,t)=>{L[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),L.deleteProperty=function(e,t){return L.set.call(this,e,t,void 0)},L.set=function(e,t,n){return _.set.call(this,e[0],t,n,e[0])},new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(e,t,n)=>{let r;if("function"==typeof e&&"function"!=typeof t){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}if("function"!=typeof t&&s(6),void 0!==n&&"function"!=typeof n&&s(7),u(e)){let i=T(this),o=H(e,void 0),a=!0;try{r=t(o),a=!1}finally{a?O(i):P(i)}return C(i,n),R(r,i)}if(e&&"object"==typeof e)s(1,e);else{if(void 0===(r=t(e))&&(r=e),r===i&&(r=void 0),this.autoFreeze_&&k(r,!0),n){let t=[],i=[];E("Patches").generateReplacementPatches_(e,r,t,i),n(t,i)}return r}},this.produceWithPatches=(e,t)=>{let n,r;return"function"==typeof e?(t,...n)=>this.produceWithPatches(t,t=>e(t,...n)):[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),"boolean"==typeof e?.useStrictIteration&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){var t;u(e)||s(8),c(e)&&(c(t=e)||s(10,t),e=function e(t){let n;if(!u(t)||M(t))return t;let r=t[a],i=!0;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,n=w(t,r.scope_.immer_.useStrictShallowCopy_),i=r.scope_.immer_.shouldUseStrictIteration()}else n=w(t,!0);return p(n,(t,r)=>{v(n,t,e(r))},i),r&&(r.finalized_=!1),n}(t));let n=T(this),r=H(e,void 0);return r[a].isManual_=!0,P(n),r}finishDraft(e,t){let n=e&&e[a];n&&n.isManual_||s(9);let{scope_:r}=n;return C(r,t),R(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=E("Patches").applyPatches_;return c(e)?r(e,t):this.produce(e,e=>r(e,t))}}().produce},436(e,t,n){"use strict";n.d(t,{Qx:()=>g,a6:()=>v,jM:()=>ec,ss:()=>el});var r,i=Symbol.for("immer-nothing"),o=Symbol.for("immer-draftable"),a=Symbol.for("immer-state");function s(e){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var l=Object,c=l.getPrototypeOf,u="constructor",h="prototype",d="configurable",f="enumerable",p="writable",m="value",g=e=>!!e&&!!e[a];function v(e){return!!e&&(x(e)||E(e)||!!e[o]||!!e[u]?.[o]||C(e)||O(e))}var y=l[h][u].toString(),b=new WeakMap;function x(e){if(!e||!P(e))return!1;let t=c(e);if(null===t||t===l[h])return!0;let n=l.hasOwnProperty.call(t,u)&&t[u];if(n===Object)return!0;if(!T(n))return!1;let r=b.get(n);return void 0===r&&(r=Function.toString.call(n),b.set(n,r)),r===y}function w(e,t,n=!0){0===k(e)?(n?Reflect.ownKeys(e):l.keys(e)).forEac
16h(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function k(e){let t=e[a];return t?t.type_:E(e)?1:C(e)?2:3*!!O(e)}var S=(e,t,n=k(e))=>2===n?e.has(t):l[h].hasOwnProperty.call(e,t),M=(e,t,n=k(e))=>2===n?e.get(t):e[t],A=(e,t,n,r=k(e))=>{2===r?e.set(t,n):3===r?e.add(n):e[t]=n},E=Array.isArray,C=e=>e instanceof Map,O=e=>e instanceof Set,P=e=>"object"==typeof e,T=e=>"function"==typeof e,D=e=>e.modified_?e.copy_:e.base_;function R(e,t){if(C(e))return new Map(e);if(O(e))return new Set(e);if(E(e))return Array[h].slice.call(e);let n=x(e);if(!0!==t&&("class_only"!==t||n)){let t=c(e);if(null!==t&&n)return{...e};let r=l.create(t);return l.assign(r,e)}{let t=l.getOwnPropertyDescriptors(e);delete t[a];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],o=t[i];!1===o[p]&&(o[p]=!0,o[d]=!0),(o.get||o.set)&&(t[i]={[d]:!0,[p]:!0,[f]:o[f],[m]:e[i]})}return l.create(c(e),t)}}function j(e,t=!1){return z(e)||g(e)||!v(e)||(k(e)>1&&l.defineProperties(e,{set:I,add:I,clear:I,delete:I}),l.freeze(e),t&&w(e,(e,t)=>{j(t,!0)},!1)),e}var I={[m]:function(){s(2)}};function z(e){return!(null!==e&&P(e))||l.isFrozen(e)}var _="MapSet",L="Patches",N="ArrayMethods",B={};function F(e){let t=B[e];return t||s(0,e),t}var V=e=>!!B[e];function H(e,t){t&&(e.patchPlugin_=F(L),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function W(e){$(e),e.drafts_.forEach(K),e.drafts_=null}function $(e){e===r&&(r=e.parent_)}var U=e=>r={drafts_:[],parent_:r,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:V(_)?F(_):void 0,arrayMethodsPlugin_:V(N)?F(N):void 0};function K(e){let t=e[a];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function q(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(void 0!==e&&e!==n){n[a].modified_&&(W(t),s(4)),v(e)&&(e=G(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[a].base_,e,t)}else e=G(t,n);return function(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&j(t,n)}(t,e,!0),W(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==i?e:void 0}function G(e,t){if(z(t))return t;let n=t[a];if(!n)return ee(t,e.handledSet_,e);if(!Y(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){let{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);Q(n,e)}return n.copy_}function Z(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Y=(e,t)=>e.scope_===t,X=[];function J(e,t,n,r){let i=e.copy_||e.base_,o=e.type_;if(void 0!==r&&M(i,r,o)===t)return void A(i,r,n,o);if(!e.draftLocations_){let t=e.draftLocations_=new Map;w(i,(e,n)=>{if(g(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}for(let r of e.draftLocations_.get(t)??X)A(i,r,n,o)}function Q(e,t){if(e.modified_&&!e.finalized_&&(3===e.type_||1===e.type_&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let r=n.getPath(e);r&&n.generatePatches_(e,r,t)}Z(e)}}function ee(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||g(e)||t.has(e)||!v(e)||z(e)||(t.add(e),w(e,(r,i)=>{if(g(i)){let t=i[a];Y(t,n)&&(A(e,r,D(t),e.type_),Z(t))}else v(i)&&ee(i,t,n)})),e}var et={get(e,t){let n;if(t===a)return e;let r=e.scope_.arrayMethodsPlugin_,i=1===e.type_&&"string"==typeof t;if(i&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);let o=e.copy_||e.base_;if(!S(o,t,e.type_)){var s;let n;return s=e,(n=ei(o,t))?m in n?n[m]:n.get?.call(s.draft_):void 0}let l=o[t];if(e.finalized_||!v(l)||i&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&Number.isInteger(n=+t)&&String(n)===t)return l;if(l===er(e.base_,t)){ea(e);let n=1===e.type_?+t:t,r=es(e.scope_,l,e,n);return e.copy_[n]=r}return l},has:(e,t)=>t in(e.copy_||e.base_),ownKeys:e=>Reflect.ownKeys(e.copy_||e.base_),set(e,t,n){let r=ei(e.copy_||e.base_,t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=er(e.copy_||e.base_,t),i=r?.[a];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if((n===r?0!==n||1/n==1/r:n!=n&&r!=r)&&(void 0!==n||S(e.base_,t,e.type_)))return!0;ea(e),eo(e)}return!!(e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t]))||
16(e.copy_[t]=n,e.assigned_.set(t,!0),!function(e,t,n){let{scope_:r}=e;if(g(n)){let i=n[a];Y(i,r)&&i.callbacks_.push(function(){ea(e),J(e,n,D(i),t)})}else v(n)&&e.callbacks_.push(function(){let i=e.copy_||e.base_;3===e.type_?i.has(n)&&ee(n,r.handledSet_,r):M(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&ee(M(e.copy_,t,e.type_),r.handledSet_,r)})}(e,t,n),!0)},deleteProperty:(e,t)=>(ea(e),void 0!==er(e.base_,t)||t in e.base_?(e.assigned_.set(t,!1),eo(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){let n=e.copy_||e.base_,r=Reflect.getOwnPropertyDescriptor(n,t);return r?{[p]:!0,[d]:1!==e.type_||"length"!==t,[f]:r[f],[m]:n[t]}:r},defineProperty(){s(11)},getPrototypeOf:e=>c(e.base_),setPrototypeOf(){s(12)}},en={};for(let e in et){let t=et[e];en[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}function er(e,t){let n=e[a];return(n?n.copy_||n.base_:e)[t]}function ei(e,t){if(!(t in e))return;let n=c(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=c(n)}}function eo(e){!e.modified_&&(e.modified_=!0,e.parent_&&eo(e.parent_))}function ea(e){e.copy_||(e.assigned_=new Map,e.copy_=R(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function es(e,t,n,i){let[o,a]=C(t)?F(_).proxyMap_(t,n):O(t)?F(_).proxySet_(t,n):function(e,t){let n=E(e),i={type_:+!!n,scope_:t?t.scope_:r,modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},o=i,a=et;n&&(o=[i],a=en);let{revoke:s,proxy:l}=Proxy.revocable(o,a);return i.draft_=l,i.revoke_=s,[l,i]}(t,n);if((n?.scope_??r).drafts_.push(o),a.callbacks_=n?.callbacks_??[],a.key_=i,n&&void 0!==i)n.callbacks_.push(function(e){if(!a||!Y(a,e))return;e.mapSetPlugin_?.fixSetContents(a);let t=D(a);J(n,a.draft_??a,t,i),Q(a,e)});else a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)});return o}function el(e){return g(e)||s(10,e),function e(t){let n;if(!v(t)||z(t))return t;let r=t[a],i=!0;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,n=R(t,r.scope_.immer_.useStrictShallowCopy_),i=r.scope_.immer_.shouldUseStrictIteration()}else n=R(t,!0);return w(n,(t,r)=>{A(n,t,e(r))},i),r&&(r.finalized_=!1),n}(e)}en.deleteProperty=function(e,t){return en.set.call(this,e,t,void 0)},en.set=function(e,t,n){return et.set.call(this,e[0],t,n,e[0])};var ec=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{let r;if(T(e)&&!T(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}if(T(t)||s(6),void 0===n||T(n)||s(7),v(e)){let i=U(this),o=es(i,e,void 0),a=!0;try{r=t(o),a=!1}finally{a?W(i):$(i)}return H(i,n),q(r,i)}if(e&&P(e))s(1,e);else{if(void 0===(r=t(e))&&(r=e),r===i&&(r=void 0),this.autoFreeze_&&j(r,!0),n){let t=[],i=[];F(L).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}},this.produceWithPatches=(e,t)=>{let n,r;return T(e)?(t,...n)=>this.produceWithPatches(t,t=>e(t,...n)):[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},(e=>"boolean"==typeof e)(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),(e=>"boolean"==typeof e)(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),(e=>"boolean"==typeof e)(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){v(e)||s(8),g(e)&&(e=el(e));let t=U(this),n=es(t,e,void 0);return n[a].isManual_=!0,$(t),n}finishDraft(e,t){let n=e&&e[a];n&&n.isManual_||s(9);let{scope_:r}=n;return H(r,t),q(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=F(L).applyPatches_;return g(e)?r(e,t):this.produce(e,e=>r(e,t))}}().produce},78950(e,t,n){"use strict";n.d(t,{m:()=>w});var r=n(26328),i=n(60259),o=n(7309),a=n(44485),s=n(31091);let l={};function c(e,t){let n=(0,s.p)(e);return()=>l[t]??n()}let u=c(()=>void 0!==window.ScrollTimeline,"scrollTimeline");var h=n(40805),d=n(39425),f=n(90831),p=n(32395),m=n(53717);let g=c(()=>{try{document.createElement("div").animate({opacity:0}
16,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing");var v=n(4534);let y=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,b={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:y([0,.65,.55,1]),circOut:y([.55,0,1,.45]),backIn:y([.31,.01,.66,-.59]),backOut:y([.33,1.53,.69,.99])};var x=n(14215);class w extends d.q{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:n,keyframes:i,pseudoElement:o,allowFlatten:s=!1,finalKeyframe:l,onComplete:c}=e;this.isPseudoElement=!!o,this.allowFlatten=s,this.options=e,(0,r.V)("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const u=function({type:e,...t}){return(0,x.W)(e)&&g()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:s="easeOut",times:l}={},c){let u={[t]:n};l&&(u.offset=l);let h=function e(t,n){if(t)return"function"==typeof t?g()?(0,v.K)(t,n):"ease-out":(0,m.D)(t)?y(t):Array.isArray(t)?t.map(t=>e(t,n)||b.easeOut):b[t]}(s,i);Array.isArray(h)&&(u.easing=h),p.Q.value&&f.q.waapi++;let d={delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"};c&&(d.pseudoElement=c);let x=e.animate(u,d);return p.Q.value&&x.finished.finally(()=>{f.q.waapi--}),x}(t,n,i,u,o),!1===u.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){let e=(0,h.X)(i,this.options,l,this.speed);this.updateMotionValue&&this.updateMotionValue(e),(0,a.e)(t,n,e),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return(0,i.X)(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+(0,i.X)(e)}get time(){return(0,i.X)(Number(this.animation.currentTime)||0)}set time(e){let t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=(0,i.f)(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&u())?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),o.l):r(this)}}},68700(e,t,n){"use strict";n.d(t,{z:()=>a});var r=n(90009),i=n(49345),o=n(31064);function a(e,t,n){let a=(0,o.S)(e)?e:(0,i.OQ)(e);return a.start((0,r.f)("",a,t,n)),a.animation}},30898(e,t,n){"use strict";n.d(t,{o:()=>v});var r=n(26328),i=n(60259),o=n(59110),a=n(4534),s=n(96153),l=n(79427);let c=.01,u=2,h=.005,d=.5;function f(e,t){return e*Math.sqrt(1-t*t)}let p=["duration","bounce"],m=["stiffness","damping","mass"];function g(e,t){return t.some(t=>void 0!==e[t])}function v(e=.3,t=.3){let n,l,y,b,x,w,k="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:S,restDelta:M}=k,A=k.keyframes[0],E=k.keyframes[k.keyframes.length-1],C={done:!1,value:A},{stiffness:O,damping:P,mass:T,duration:D,velocity:R,isResolvedFromDuration:j}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!g(e,m)&&g(e,p))if(t.velocity=0,e.visualDuration){let n=2*Math.PI/(1.2*e.visualDuration),r=n*n,i=2*(0,o.q)(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:1,stiffness:r,damping:i}}else{let n=function({duration:e=800,bounce:t=.3,velocity:n=0,mass:a=1}
16){let s,l;(0,r.$)(e<=(0,i.f)(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let c=1-t;c=(0,o.q)(.05,1,c),e=(0,o.q)(.01,10,(0,i.X)(e)),c<1?(s=t=>{let r=t*c,i=r*e;return .001-(r-n)/f(t,c)*Math.exp(-i)},l=t=>{let r=t*c*e,i=Math.pow(c,2)*Math.pow(t,2)*e,o=Math.exp(-r),a=f(Math.pow(t,2),c);return(r*n+n-i)*o*(-s(t)+.001>0?-1:1)/a}):(s=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),l=t=>e*e*(n-t)*Math.exp(-t*e));let u=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(s,l,5/e);if(e=(0,i.f)(e),isNaN(u))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(u,2)*a;return{stiffness:t,damping:2*c*Math.sqrt(a*t),duration:e}}}({...e,velocity:0});(t={...t,...n,mass:1}).isResolvedFromDuration=!0}return t}({...k,velocity:-(0,i.X)(k.velocity||0)}),I=R||0,z=P/(2*Math.sqrt(O*T)),_=E-A,L=(0,i.X)(Math.sqrt(O/T)),N=5>Math.abs(_);if(S||(S=N?c:u),M||(M=N?h:d),z<1)y=f(L,z),b=(I+z*L*_)/y,n=e=>E-Math.exp(-z*L*e)*(b*Math.sin(y*e)+_*Math.cos(y*e)),x=z*L*b+_*y,w=z*L*_-b*y,l=e=>Math.exp(-z*L*e)*(x*Math.sin(y*e)+w*Math.cos(y*e));else if(1===z){n=e=>E-Math.exp(-L*e)*(_+(I+L*_)*e);let e=I+L*_;l=t=>Math.exp(-L*t)*(L*e*t-I)}else{let e=L*Math.sqrt(z*z-1);n=t=>{let n=Math.exp(-z*L*t),r=Math.min(e*t,300);return E-n*((I+z*L*_)*Math.sinh(r)+e*_*Math.cosh(r))/e};let t=(I+z*L*_)/e,r=z*L*t-_*e,i=z*L*_-t*e;l=t=>{let n=Math.exp(-z*L*t),o=Math.min(e*t,300);return n*(r*Math.sinh(o)+i*Math.cosh(o))}}let B={calculatedDuration:j&&D||null,velocity:e=>(0,i.f)(l(e)),next:e=>{if(!j&&z<1){let t=Math.exp(-z*L*e),n=Math.sin(y*e),r=Math.cos(y*e),o=E-t*(b*n+_*r);return C.done=Math.abs((0,i.f)(t*(x*n+w*r)))<=S&&Math.abs(E-o)<=M,C.value=C.done?E:o,C}let t=n(e);return j?C.done=e>=D:C.done=Math.abs((0,i.f)(l(e)))<=S&&Math.abs(E-t)<=M,C.value=C.done?E:t,C},toString:()=>{let e=Math.min((0,s.t)(B),2e4),t=(0,a.K)(t=>B.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return B}v.applyToOptions=e=>{let t=(0,l.X)(e,100,v);return e.ease=t.ease,e.duration=(0,i.f)(t.duration),e.type="keyframes",e}},96153(e,t,n){"use strict";function r(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}n.d(t,{t:()=>r})},79427(e,t,n){"use strict";n.d(t,{X:()=>o});var r=n(60259),i=n(96153);function o(e,t=100,n){let a=n({...e,keyframes:[0,t]}),s=Math.min((0,i.t)(a),2e4);return{type:"keyframes",ease:e=>a.next(s*e).value/t,duration:(0,r.X)(s)}}},14215(e,t,n){"use strict";function r(e){return"function"==typeof e&&"applyToOptions"in e}n.d(t,{W:()=>r})},90009(e,t,n){"use strict";n.d(t,{f:()=>et});var r=n(60259),i=n(29819),o=n(7309),a=n(22134),s=n(50177),l=n(59110),c=n(90831),u=n(8081),h=n(76040);let d=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>h.Gt.update(t,e),stop:()=>(0,h.WG)(t),now:()=>h.uv.isProcessing?h.uv.timestamp:a.k.now()}};var f=n(30898),p=n(51971);function m(e,t,n){let r=Math.max(t-5,0);return(0,p.f)(n-e(r),t-r)}function g({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){let h,d,p=e[0],v={done:!1,value:p},y=n*t,b=p+y,x=void 0===a?b:a(b);x!==b&&(y=x-p);let w=e=>-y*Math.exp(-e/r),k=e=>x+w(e),S=e=>{let t=w(e),n=k(e);v.done=Math.abs(t)<=c,v.value=v.done?x:n},M=e=>{let t;if(t=v.value,void 0!==s&&t<s||void 0!==l&&t>l){var n;h=e,d=(0,f.o)({keyframes:[v.value,(n=v.value,void 0===s?l:void 0===l||Math.abs(s-n)<Math.abs(l-n)?s:l)],velocity:m(k,e,v.value),damping:i,stiffness:o,restDelta:c,restSpeed:u})}};return M(0),{calculatedDuration:null,next:e=>{let t=!1;return(d||void 0!==h||(t=!0,S(e),M(e)),void 0!==h&&e>=h)?d.next(e-h):(t||S(e),v)}}}var v=n(17663),y=n(94903),b=n(43499),x=n(96380),w=n(49492);function k({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){var i;let o=(0,y.h)(r)?r.map(b.K):(0,b.K)(r),a={done:!1,value:t[0]},s=(i=n&&n.length===t.length?n:(0,w.Z)(t),i.map(t=>t*e)),l=(0,x.G)(s,t,{ease:Array.isArray(o)?o:t.map(()=>o||v.am).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(a.value=l(t),a.done=t>=e,a)}}var S=n(96153),M=n(40805);let A={decay:g,inertia:g,tween:k,keyframes:k,spring:f.o};function E(e){"string"==typeof e.type&&(e.type=A[e.type])}var C=n(39425);let O=e=>e/100;class P extends C.q{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==a.k.now()&&this.tick(a.k.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},c.q.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;E(e);let{type:t=k,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:o=0}=e,{keyframes:a}=e,l=t||k;l!==k&&"number"!=typeof a[0]&&(this.mixKeyframes=(0,s.F)(O,(0,u.j)(a[0],a[1])),a=[0,100]);let c=l({...e,keyframes:a});"mirror"===i&&(this.mirroredGenerator=l({...e,keyframes:[...a].reverse(),velocity:-o})),null===c.calculatedDuration&&(c.calculatedDuration=(0,S.t)(c));let{calculatedDuration:h}=c;this.calculatedDuration=h,this.resolvedDuration=h+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let n,{generator:r,totalDuration:i,mixKeyframes:o,mirroredGenerator:a,resolvedDuration:s,calculatedDuration:c}=this;if(null===this.startTime)return r.next(0);let{delay:u=0,keyframes:h,repeat:d,repeatType:f,repeatDelay:p,type:m,onUpdate:v,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let b=this.currentTime-u*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?b<0:b>i;this.currentTime=Math.max(b,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=i);let w=this.currentTime,k=r;if(d){let e=Math.min(this.currentTime,i)/s,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,d+1))%2&&("reverse"===f?(n=1-n,p&&(n-=p/s)):"mirror"===f&&(k=a)),w=(0,l.q)(0,1,n)*s}x?(this.delayState.value=h[0],n=this.delayState):n=k.next(w),o&&!x&&(n.value=o(n.value));let{done:S}=n;x||null===c||(S=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);let A=null===this.holdTime&&("finished"===this.state||"running"===this.state&&S);return A&&m!==g&&(n.value=(0,M.X)(h,this.options,y,this.speed)),v&&v(n.value),A&&this.finish(),n}then(e,t){return this.finished.then(e,t)}get duration(){return(0,r.X)(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+(0,r.X)(e)}get time(){return(0,r.X)(this.currentTime)}set time(e){e=(0,r.f)(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return m(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(a.k.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=(0,r.X)(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=d,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(a.k.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,c.q.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}var T=n(91256),D=n(44485),R=n(78950),j=n(85193),I=n(54004),z=n(21912);let _={anticipate:j.b,backInOut:I.ZZ,circInOut:z.tn};class L extends R.m{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in _&&(e.ease=_[e.ease])}(e),E(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...o}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let s=new P({...o,autoplay:!1}),c=Math.max(10,a.k.now()-this.startTime),u=(0,l.q)(0,10,c-10),h=s.sample(c).value,{name:d}=this.options;i&&d&&(0,D.e)(i,d,h),t.setWithVelocity(s.sample(Math.max(0,c-u)).value,h,u),s.stop()}}var N=n(26328),B=n(14215),F=n(45931);let V=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(F.f.test(e)||"0"===e)&&!e.startsWith("url("));function H(e){e.duration=0,e.type="keyframes"}var W=n(31091),$=n(87877);let U=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,K=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),q=(0,W.p)(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class G extends C.q{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:
16o="loop",keyframes:s,name:l,motionValue:c,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=a.k.now();const d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:o,name:l,motionValue:c,element:u,...h},f=u?.KeyframeResolver||T.h;this.keyframeResolver=new f(s,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),l,c,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){let s;this.keyframeResolver=void 0;let{name:l,type:c,velocity:u,delay:h,isHandoff:d,onUpdate:f}=n;this.resolvedAt=a.k.now();let p=!0;!function(e,t,n,r){let i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;let o=e[e.length-1],a=V(i,t),s=V(o,t);return(0,N.$)(a===s,`You are trying to animate ${t} from "${i}" to "${o}". "${a?o:i}" is not an animatable value.`,"value-not-animatable"),!!a&&!!s&&(function(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||(0,B.W)(n))&&r)}(e,l,c,u)&&(p=!1,(i.W.instantAnimations||!h)&&f?.((0,M.X)(e,n,t)),e[0]=e[e.length-1],H(n),n.repeat=0);let m={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},g=p&&!d&&function(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:a,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:c}=t.owner.getProps();return q()&&n&&($.M.has(n)||K.has(n)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&U.test(e[t]))return!0;return!1}(s))&&("transform"!==n||!c)&&!l&&!r&&"mirror"!==i&&0!==o&&"inertia"!==a}(m),v=m.motionValue?.owner?.current;if(g)try{s=new L({...m,element:v})}catch{s=new P(m)}else s=new P(m);s.finished.then(()=>{this.notifyFinished()}).catch(o.l),this.pendingTimeline&&(this.stopTimeline=s.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=s}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),(0,T.q)()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}var Z=n(60514),Y=n(27437);let X={type:"spring",stiffness:500,damping:25,restSpeed:10},J={type:"keyframes",duration:.8},Q={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ee=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),et=(e,t,n,o={},a,s)=>l=>{let c=(0,Z.r)(o,e)||{},u=c.delay||o.delay||0,{elapsed:d=0}=o;d-=(0,r.f)(u);let f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-d,onUpdate:e=>{t.set(e),c.onUpdate&&c.onUpdate(e)},onComplete:()=>{l(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:s?void 0:a};!function(e){for(let t in e)if(!ee.has(t))return!0;return!1}(c)&&Object.assign(f,((e,{keyframes:t})=>t.length>2?J:Y.f.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:X:Q)(e,f)),f.duration&&(f.duration=(0,r.f)(f.duration)),f.repeatDelay&&(f.repeatDelay=(0,r.f)(f.repeatDelay)),void 0!==f.from&&(f.keyframes[0]=f.from);let p=!1;if(!1!==f.type&&(0!==f.duration||f.repeatDelay)||(H(f),0===f.delay&&(p=!0)),(i.W.instantAnimations||i.W.skipAnimations||a?.shouldSkipAnimations||c.skipAnimations)&&(p=!0,H(f),f.delay=0),f.allowFlatten=!c.type&&!c.ease,p&&!s&&void 0!==t.get()){let e=(0,M.X)(f.keyframes,c);if(void 0!==e)return void h.Gt.update(()=>{f.onUpdate(e),f.onComplete()})}return c.isSync?new P(f):new G(f)}},42579(e,t,n){"use strict";n.d(t,{$:()=>f});var r=n(60514),i=n(72822),o=n(58346),a=n(49345),s=n(40897),l=n(87280),c=n(54023),u=n(27210),h=n(90009),d=n(76040);function f(e,t,{delay:n=0,transitionOverride:p,type:m}={}){let{transition:g,transitionEnd:v,...y}
16=t,b=e.getDefaultTransition();g=g?(0,i.K)(g,b):b;let x=g?.reduceMotion,w=g?.skipAnimations;p&&(g=p);let k=[],S=m&&e.animationState&&e.animationState.getState()[m],M=g?.path;for(let t in M&&M.animateVisualElement(e,y,g,n,k),y){let i=e.getValue(t,e.latestValues[t]??null),a=y[t];if(void 0===a||S&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(S,t))continue;let s={delay:n,...(0,r.r)(g||{},t)};w&&(s.skipAnimations=!0);let l=i.get();if(void 0!==l&&!i.isAnimating()&&!Array.isArray(a)&&a===l&&!s.velocity){d.Gt.update(()=>i.set(a));continue}let f=!1;if(window.MotionHandoffAnimation){let n=(0,u.P)(e);if(n){let e=window.MotionHandoffAnimation(n,t,d.Gt);null!==e&&(s.startTime=e,f=!0)}}(0,c.g)(e,t);let p=x??e.shouldReduceMotion;i.start((0,h.f)(t,i,a,p&&o.$.has(t)?{type:!1}:s,e,f));let m=i.animation;m&&k.push(m)}if(v){let t=()=>d.Gt.update(()=>{v&&function(e,t){let{transitionEnd:n={},transition:r={},...i}=(0,s.K)(e,t)||{};for(let t in i={...i,...n}){var o;let n=(o=i[t],(0,l.p)(o)?o[o.length-1]||0:o);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,(0,a.OQ)(n))}}(e,v)});k.length?Promise.all(k).then(t):t()}return k}},91256(e,t,n){"use strict";n.d(t,{q:()=>h,h:()=>d});var r=n(87787),i=n(76040);let o=new Set,a=!1,s=!1,l=!1;function c(){if(s){let e=Array.from(o).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=(0,r.W9)(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}s=!1,a=!1,o.forEach(e=>e.complete(l)),o.clear()}function u(){o.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(s=!0)})}function h(){l=!0,u(),c(),l=!1}class d{constructor(e,t,n,r,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(o.add(this),a||(a=!0,i.Gt.read(u),i.Gt.resolveKeyframes(c))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(null===e[0]){let i=r?.get(),o=e[e.length-1];if(void 0!==i)e[0]=i;else if(n&&t){let r=n.readValue(t,o);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=o),r&&void 0===i&&r.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),o.delete(this)}cancel(){"scheduled"===this.state&&(o.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}},40805(e,t,n){"use strict";n.d(t,{X:()=>i});let r=e=>null!==e;function i(e,{repeat:t,repeatType:n="loop"},o,a=1){let s=e.filter(r),l=a<0||t&&"loop"!==n&&t%2==1?0:s.length-1;return l&&void 0!==o?o:s[l]}},49492(e,t,n){"use strict";n.d(t,{Z:()=>i});var r=n(92950);function i(e){let t=[0];return(0,r.f)(t,e.length-1),t}},92950(e,t,n){"use strict";n.d(t,{f:()=>o});var r=n(58240),i=n(64721);function o(e,t){let n=e[e.length-1];for(let o=1;o<=t;o++){let a=(0,r.q)(0,t,o);e.push((0,i.k)(n,1,a))}}},87787(e,t,n){"use strict";n.d(t,{E4:()=>s,Hr:()=>h,W9:()=>u});var r=n(46735),i=n(27437),o=n(63344),a=n(18741);let s=e=>e===o.ai||e===a.px,l=new Set(["x","y","z"]),c=i.U.filter(e=>!l.has(e));function u(e){let t=[];return c.forEach(n=>{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(+!!n.startsWith("scale")))}),t}let h={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{let i=e.max-e.min;return"border-box"===r?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{let i=e.max-e.min;return"border-box"===r?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>(0,r.ry)(t,"x"),y:(e,{transform:t})=>(0,r.ry)(t,"y")};h.translateX=h.x,h.translateY=h.y},34280(e,t,n){"use strict";n.d(t,{n:()=>r});let r="data-"+(0,n(8590).I)("framerAppearId")},27210(e,t,n){"use strict";n.d(t,{P:()=>i});var r=n(34280);function i(e){return e.props[r.n]}},39425(e,t,n){"use strict";n.d(t,{q:()=>r});
16class r{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}},60514(e,t,n){"use strict";n.d(t,{r:()=>i});var r=n(72822);function i(e,t){let n=e?.[t]??e?.default??e;return n!==e?(0,r.K)(n,e):n}},43301(e,t,n){"use strict";n.d(t,{j4:()=>i,pG:()=>a,rm:()=>l});let r=e=>t=>"string"==typeof t&&t.startsWith(e),i=r("--"),o=r("var(--"),a=e=>!!o(e)&&s.test(e.split("/*")[0].trim()),s=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function l(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}},72822(e,t,n){"use strict";function r(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}n.d(t,{K:()=>r})},87877(e,t,n){"use strict";n.d(t,{M:()=>r});let r=new Set(["opacity","clipPath","filter","transform"])},4534(e,t,n){"use strict";n.d(t,{K:()=>r});let r=(e,t,n=10)=>{let r="",i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(1e4*e(t/(i-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`}},34602(e,t,n){"use strict";n.d(t,{I:()=>a});var r=n(29819);let i=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];var o=n(32395);function a(e,t){let n=!1,a=!0,s={delta:0,timestamp:0,isProcessing:!1},l=()=>n=!0,c=i.reduce((e,n)=>(e[n]=function(e,t){let n=new Set,r=new Set,i=!1,a=!1,s=new WeakSet,l={delta:0,timestamp:0,isProcessing:!1},c=0;function u(t){s.has(t)&&(h.schedule(t),e()),c++,t(l)}let h={schedule:(e,t=!1,o=!1)=>{let a=o&&i?n:r;return t&&s.add(e),a.add(e),e},cancel:e=>{r.delete(e),s.delete(e)},process:e=>{if(l=e,i){a=!0;return}i=!0;let s=n;n=r,r=s,n.forEach(u),t&&o.Q.value&&o.Q.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,h.process(e))}};return h}(l,t?n:void 0),e),{}),{setup:u,read:h,resolveKeyframes:d,preUpdate:f,update:p,preRender:m,render:g,postRender:v}=c,y=()=>{let i=r.W.useManualTiming,o=i?s.timestamp:performance.now();n=!1,i||(s.delta=a?1e3/60:Math.max(Math.min(o-s.timestamp,40),1)),s.timestamp=o,s.isProcessing=!0,u.process(s),h.process(s),d.process(s),f.process(s),p.process(s),m.process(s),g.process(s),v.process(s),s.isProcessing=!1,n&&t&&(a=!1,e(y))};return{schedule:i.reduce((t,r)=>{let i=c[r];return t[r]=(t,r=!1,o=!1)=>(!n&&(n=!0,a=!0,s.isProcessing||e(y)),i.schedule(t,r,o)),t},{}),cancel:e=>{for(let t=0;t<i.length;t++)c[i[t]].cancel(e)},state:s,steps:c}}},76040(e,t,n){"use strict";n.d(t,{Gt:()=>i,PP:()=>s,WG:()=>o,uv:()=>a});var r=n(7309);let{schedule:i,cancel:o,state:a,steps:s}=(0,n(34602).I)("u">typeof requestAnimationFrame?requestAnimationFrame:r.l,!0)},45668(e,t,n){"use strict";n.d(t,{k:()=>r});let{schedule:r}=(0,n(34602).I)(queueMicrotask,!1)},22134(e,t,n){"use strict";let r;n.d(t,{k:()=>s});var i=n(29819),o=n(76040);function a(){r=void 0}let s={now:()=>(void 0===r&&s.set(o.uv.isProcessing||i.W.useManualTiming?o.uv.timestamp:performance.now()),r),set:e=>{r=e,queueMicrotask(a)}}},7520(e,t,n){"use strict";function r({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function i({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function o(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}n.d(t,{FY:()=>r,bS:()=>o,pA:()=>i})},86393(e,t,n){"use strict";n.d(t,{OU:()=>c,Ql:()=>u,Ww:()=>f,hq:()=>o,o4:()=>l});var r=n(64721),i=n(83118);function o(e,t,n){return n+t*(e-n)}function a(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function s(e,t=0,n=1,r,i){e.min=a(e.min,t,n,r,i),e.max=a(e.max,t,n,r,i)}function l(e,{x:t,y:n}){s(e.x,t.translate,t.scale,t.originPoint),s(e.y,n.translate,n.scale,n.originPoint)}function c(e,t,n,r=!1){let o,a,s=n.length;if(s){t.x=t.y=1;for(let c=0;c<s;c++){a=(o=n[c]).projectionDelta;let{visualElement:s}=o.options;(!s||!s.props.style||"contents"!==s.props.style.display)&&(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&(u(e.x,-o.scroll.offset.x),u(e.y,-o.scroll.offset.y)),a&&(t.x*=a.x.scale,t.y*=a.y.scale,l(e,a)),r&&(0,i.HD)(o.latestValues)&&f(e,o.latestValues,o.layout?.layoutBox))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}function u(e,t){e.min+=t,e.max+=t}function h(e,t,n,i,o=.5){let a=(0,r.k)(e.min,e.max,o);s(e,t,n,a,i)}function d(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function f(e,t,n){let r=n??e;h(e.x,d(t.x,r.x),t.scaleX,t.scale,t.originX),h(e.y,d(t.y,r.y),t.scaleY,t.scale,t.originY)}},96810(e,t,n){"use strict";n.d(t,{ge:()=>a,xU:()=>i});let r=()=>({translate:0,scale:1,origin:0,originPoint:0}),i=()=>({x:r(),y:r()}),o=()=>({min:0,max:0}),a=()=>({x:o(),y:o()})},96264(e,t,n){"use strict";n.d(t,{H:()=>l});var r=n(18741);function i(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let o={correct:(e,t)=>
16{if(!t.target)return e;if("string"==typeof e)if(!r.px.test(e))return e;else e=parseFloat(e);let n=i(e,t.target.x),o=i(e,t.target.y);return`${n}% ${o}%`}};var a=n(45931),s=n(64721);let l={borderRadius:{...o,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:o,borderTopRightRadius:o,borderBottomLeftRadius:o,borderBottomRightRadius:o,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let r=a.f.parse(e);if(r.length>5)return e;let i=a.f.createTransformer(e),o=+("number"!=typeof r[0]),l=n.x.scale*t.x,c=n.y.scale*t.y;r[0+o]/=l,r[1+o]/=c;let u=(0,s.k)(l,c,.5);return"number"==typeof r[2+o]&&(r[2+o]/=u),"number"==typeof r[3+o]&&(r[3+o]/=u),i(r)}}}},83118(e,t,n){"use strict";function r(e){return void 0===e||1===e}function i({scale:e,scaleX:t,scaleY:n}){return!r(e)||!r(t)||!r(n)}function o(e){return i(e)||a(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function a(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}n.d(t,{HD:()=>o,vF:()=>a,vk:()=>i})},43141(e,t,n){"use strict";n.d(t,{L:()=>a,m:()=>o});var r=n(7520),i=n(86393);function o(e,t){return(0,r.FY)((0,r.bS)(e.getBoundingClientRect(),t))}function a(e,t,n){let r=o(e,n),{scroll:a}=t;return a&&((0,i.Ql)(r.x,a.offset.x),(0,i.Ql)(r.y,a.offset.y)),r}},71140(e,t,n){"use strict";n.d(t,{BX:()=>R,vK:()=>D,lr:()=>T});var r=n(60259),i=n(76862),o=n(75682),a=n(16876),s=n(91256),l=n(78950),c=n(87877),u=n(45668),h=n(22134),d=n(96810),f=n(49345),p=n(45931),m=n(71882),g=n(64363),v=n(81243),y=n(94517);let b=[...v.T,g.y,p.f];var x=n(31064),w=n(82451),k=n(2005),S=n(27437),M=n(24338),A=n(68197),E=n(30721),C=n(76040);let O=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],P={};function T(e){P=e}function D(){return P}class R{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:o,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=s.h,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=h.k.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,C.Gt.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=u,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=(0,k.e)(t),this.isVariantNode=(0,k.O)(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in f){const t=f[e];void 0!==c[e]&&(0,x.S)(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,w.C.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(E.r.current||(0,M.U)(),this.shouldReduceMotion=E.O.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let e in this.projection&&this.projection.unmount(),(0,C.WG)(this.notifyUpdate),(0,C.WG)(this.render),this.valueSubscriptions.forEach(e
16=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let n;if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&c.M.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:i,times:o,ease:a,duration:s}=t.accelerate,c=new l.m({element:this.current,name:e,keyframes:i,times:o,ease:a,duration:(0,r.f)(s)}),u=n(c);this.valueSubscriptions.set(e,()=>{u(),c.cancel()});return}let i=S.f.has(e);i&&this.onBindTransform&&this.onBindTransform();let o=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&C.Gt.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{o(),n&&n()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in P){let t=P[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,d.ge)()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<O.length;t++){let n=O[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(let r in t){let i=t[r],o=n[r];if((0,x.S)(i))e.addValue(r,i);else if((0,x.S)(o))e.addValue(r,(0,f.OQ)(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){let t=e.getValue(r);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,(0,f.OQ)(void 0!==t?t:i,{owner:e}))}}for(let r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=(0,f.OQ)(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];
16if(null!=n){if("string"==typeof n&&((0,i.i)(n)||(0,o.$)(n)))n=parseFloat(n);else{let r;r=n,!b.find((0,y.w)(r))&&p.f.test(t)&&(n=(0,m.J)(e,t))}this.setBaseTarget(e,(0,x.S)(n)?n.get():n)}return(0,x.S)(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=(0,A.a)(this.props,n,this.presenceContext?.custom);r&&(t=r[e])}if(n&&void 0!==t)return t;let r=this.getBaseTargetFromProps(this.props,e);return void 0===r||(0,x.S)(r)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new a.v),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){u.k.render(this.render)}}},63832(e,t,n){"use strict";n.d(t,{b:()=>y});var r=n(31064),i=n(58346),o=n(81243),a=n(26328),s=n(76862),l=n(43301);let c=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var u=n(91256),h=n(75682),d=n(45931),f=n(71882);let p=new Set(["auto","none","0"]);var m=n(87787);class g extends u.h{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&(r=r.trim(),(0,l.pG)(r))){let i=function e(t,n,r=1){(0,a.V)(r<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[i,o]=function(e){let t=c.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}(t);if(!i)return;let u=window.getComputedStyle(n).getPropertyValue(i);if(u){let e=u.trim();return(0,s.i)(e)?parseFloat(e):e}return(0,l.pG)(o)?e(o,n,r+1):o}(r,t.current);void 0!==i&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!i.$.has(n)||2!==e.length)return;let[r,u]=e,h=(0,o.n)(r),d=(0,o.n)(u);if((0,l.rm)(r)!==(0,l.rm)(u)&&m.Hr[n]){this.needsMeasurement=!0;return}if(h!==d)if((0,m.E4)(h)&&(0,m.E4)(d))for(let t=0;t<e.length;t++){let n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else m.Hr[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++){var r;(null===e[t]||("number"==typeof(r=e[t])?0===r:null===r||"none"===r||"0"===r||(0,h.$)(r)))&&n.push(t)}n.length&&function(e,t,n){let r,i=0;for(;i<e.length&&!r;){let t=e[i];"string"==typeof t&&!p.has(t)&&(0,d.V)(t).values.length&&(r=e[i]),i++}if(r&&n)for(let i of t)e[i]=(0,f.J)(n,r)}(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=m.Hr[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,o=n[i];n[i]=m.Hr[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEac
16h(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}var v=n(71140);class y extends v.BX{constructor(){super(...arguments),this.KeyframeResolver=g}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;(0,r.S)(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}},46735(e,t,n){"use strict";n.d(t,{Ib:()=>d,ry:()=>h,zs:()=>u});let r=e=>180*e/Math.PI,i=e=>a(r(Math.atan2(e[1],e[0]))),o={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:i,rotateZ:i,skewX:e=>r(Math.atan(e[1])),skewY:e=>r(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},a=e=>((e%=360)<0&&(e+=360),e),s=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),l=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),c={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:s,scaleY:l,scale:e=>(s(e)+l(e))/2,rotateX:e=>a(r(Math.atan2(e[6],e[5]))),rotateY:e=>a(r(Math.atan2(-e[2],e[0]))),rotateZ:i,rotate:i,skewX:e=>r(Math.atan(e[4])),skewY:e=>r(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function u(e){return+!!e.includes("scale")}function h(e,t){let n,r;if(!e||"none"===e)return u(t);let i=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(i)n=c,r=i;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=o,r=t}if(!r)return u(t);let a=n[t],s=r[1].split(",").map(f);return"function"==typeof a?a(s):s[a]}let d=(e,t)=>{let{transform:n="none"}=getComputedStyle(e);return h(n,t)};function f(e){return parseFloat(e.trim())}},44485(e,t,n){"use strict";function r(e,t,n){t.startsWith("--")?e.style.setProperty(t,n):e.style[t]=n}n.d(t,{e:()=>r})},8590(e,t,n){"use strict";function r(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}n.d(t,{I:()=>r})},30115(e,t,n){"use strict";n.d(t,{M:()=>h});var r=n(43301),i=n(27437),o=n(46735),a=n(43141),s=n(63832),l=n(31976),c=n(82572),u=n(53534);class h extends s.b{constructor(){super(...arguments),this.type="html",this.renderInstance=c.e}readValueFromInstance(e,t){if(i.f.has(t))return this.projection?.isProjecting?(0,o.zs)(t):(0,o.Ib)(e,t);{let n=window.getComputedStyle(e),i=((0,r.j4)(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof i?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:t}){return(0,a.m)(e,t)}build(e,t,n){(0,l.O)(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return(0,u.x)(e,t,n)}}},31976(e,t,n){"use strict";n.d(t,{O:()=>c});let r=(e,t)=>t&&"number"==typeof e?t.transform(e):e;var i=n(65915),o=n(27437),a=n(43301);let s={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},l=o.U.length;function c(e,t,n){let{style:c,vars:u,transformOrigin:h}=e,d=!1,f=!1;for(let e in t){let n=t[e];if(o.f.has(e)){d=!0;continue}if((0,a.j4)(e)){u[e]=n;continue}{let t=r(n,i.W[e]);e.startsWith("origin")?(f=!0,h[e]=t):c[e]=t}}if(!t.transform&&(d||n?c.transform=function(e,t,n){let a="",c=!0;for(let u=0;u<l;u++){let l=o.U[u],h=e[l];
16if(void 0===h)continue;let d=!0;if("number"==typeof h)d=h===+!!l.startsWith("scale");else{let e=parseFloat(h);d=l.startsWith("scale")?1===e:0===e}if(!d||n){let e=r(h,i.W[l]);if(!d){c=!1;let t=s[l]||l;a+=`${t}(${e}) `}n&&(t[l]=e)}}let u=e.pathRotation;return u&&(c=!1,a+=`rotate(${r(u,i.W.pathRotation)}) `),a=a.trim(),n?a=n(t,c?"":a):c&&(a="none"),a}(t,e.transform,n):c.transform&&(c.transform="none")),f){let{originX:e="50%",originY:t="50%",originZ:n=0}=h;c.transformOrigin=`${e} ${t} ${n}`}}},82572(e,t,n){"use strict";function r(e,{style:t,vars:n},i,o){let a,s=e.style;for(a in t)s[a]=t[a];for(a in o?.applyProjectionStyles(s,i),n)s.setProperty(a,n[a])}n.d(t,{e:()=>r})},53534(e,t,n){"use strict";n.d(t,{x:()=>o});var r=n(31064),i=n(96071);function o(e,t,n){let o=e.style,a=t?.style,s={};if(!o)return s;for(let t in o)((0,r.S)(o[t])||a&&(0,r.S)(a[t])||(0,i.z)(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(s[t]=o[t]);return s}},82451(e,t,n){"use strict";n.d(t,{C:()=>r});let r=new WeakMap},43422(e,t,n){"use strict";n.d(t,{l:()=>f});var r=n(27437),i=n(8669),o=n(96810),a=n(63832),s=n(8590),l=n(41);let c=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);var u=n(7465),h=n(82572),d=n(7353);class f extends a.b{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=o.ge}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(r.f.has(t)){let e=(0,i.D)(t);return e&&e.default||0}return t=c.has(t)?t:(0,s.I)(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return(0,d.x)(e,t,n)}
16build(e,t,n){(0,l.B)(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){for(let n in(0,h.e)(e,t,void 0,r),t.attrs)e.setAttribute(c.has(n)?n:(0,s.I)(n),t.attrs[n])}mount(e){this.isSVGTag=(0,u.n)(e.tagName),super.mount(e)}}},41(e,t,n){"use strict";n.d(t,{B:()=>s});var r=n(31976);let i={offset:"stroke-dashoffset",array:"stroke-dasharray"},o={offset:"strokeDashoffset",array:"strokeDasharray"},a=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function s(e,{attrX:t,attrY:n,attrScale:l,pathLength:c,pathSpacing:u=1,pathOffset:h=0,...d},f,p,m){if((0,r.O)(e,d,p),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:g,style:v}=e;for(let e of(g.transform&&(v.transform=g.transform,delete g.transform),(v.transform||g.transformOrigin)&&(v.transformOrigin=g.transformOrigin??"50% 50%",delete g.transformOrigin),v.transform&&(v.transformBox=m?.transformBox??"fill-box",delete g.transformBox),a))void 0!==g[e]&&(v[e]=g[e],delete g[e]);void 0!==t&&(g.x=t),void 0!==n&&(g.y=n),void 0!==l&&(g.scale=l),void 0!==c&&function(e,t,n=1,r=0,a=!0){e.pathLength=1;let s=a?i:o;e[s.offset]=`${-r}`,e[s.array]=`${t} ${n}`}(g,c,u,h,!1)}},7465(e,t,n){"use strict";n.d(t,{n:()=>r});let r=e=>"string"==typeof e&&"svg"===e.toLowerCase()},7353(e,t,n){"use strict";n.d(t,{x:()=>a});var r=n(31064),i=n(27437),o=n(53534);function a(e,t,n){let a=(0,o.x)(e,t,n);
16for(let n in e)((0,r.S)(e[n])||(0,r.S)(t[n]))&&(a[-1!==i.U.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return a}},40050(e,t,n){"use strict";function r(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}n.d(t,{N:()=>r})},2005(e,t,n){"use strict";n.d(t,{O:()=>s,e:()=>a});var r=n(40050),i=n(11511),o=n(71364);function a(e){return(0,r.N)(e.animate)||o._.some(t=>(0,i.w)(e[t]))}function s(e){return!!(a(e)||e.variants)}},96071(e,t,n){"use strict";n.d(t,{z:()=>o});var r=n(27437),i=n(96264);function o(e,{layout:t,layoutId:n}){return r.f.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!i.H[e]||"opacity"===e)}},87280(e,t,n){"use strict";n.d(t,{p:()=>r});let r=e=>Array.isArray(e)},11511(e,t,n){"use strict";function r(e){return"string"==typeof e||Array.isArray(e)}n.d(t,{w:()=>r})},58346(e,t,n){"use strict";n.d(t,{$:()=>r});let r=new Set(["width","height","top","left","right","bottom",...n(27437).U])},27437(e,t,n){"use strict";n.d(t,{U:()=>r,f:()=>i});let r=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],i=new Set([...r,"pathRotation"])},24338(e,t,n){"use strict";n.d(t,{U:()=>o});var r=n(30721);let i="u">typeof window;function o(){if(r.r.current=!0,i)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>r.O.current=e.matches;e.addEventListener("change",t),t()}else r.O.current=!1}},30721(e,t,n){"use strict";n.d(t,{O:()=>r,r:()=>i});let r={current:null},i={current:!1}},40897(e,t,n){"use strict";n.d(t,{K:()=>i});var r=n(68197);function i(e,t,n){let i=e.getProps();return(0,r.a)(i,t,void 0!==n?n:i.custom,e)}},68197(e,t,n){"use strict";function r(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function i(e,t,n,i){if("function"==typeof t){let[o,a]=r(i);t=t(void 0!==n?n:e.custom,o,a)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[o,a]=r(i);t=t(void 0!==n?n:e.custom,o,a)}return t}n.d(t,{a:()=>i})},71364(e,t,n){"use strict";n.d(t,{U:()=>r,_:()=>i});let r=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],i=["initial",...r]},90831(e,t,n){"use strict";n.d(t,{q:()=>r});let r={layout:0,mainThread:0,waapi:0}},32395(e,t,n){"use strict";n.d(t,{Q:()=>r});let r={value:null,addProjectionMetrics:null}},96380(e,t,n){"use strict";n.d(t,{G:()=>u});var r=n(29819),i=n(7309),o=n(50177),a=n(26328),s=n(58240),l=n(59110),c=n(8081);function u(e,t,{clamp:n=!0,ease:h,mixer:d}={}){let f=e.length;if((0,a.V)(f===t.length,"Both input and output ranges must be the same length","range-length"),1===f)return()=>t[0];if(2===f&&t[0]===t[1])return()=>t[1];let p=e[0]===e[1];e[0]>e[f-1]&&(e=[...e].reverse(),t=[...t].reverse());let m=function(e,t,n){let a=[],s=n||r.W.mix||c.j,l=e.length-1;for(let n=0;n<l;n++){let r=s(e[n],e[n+1]);if(t){let e=Array.isArray(t)?t[n]||i.l:t;r=(0,o.F)(e,r)}a.push(r)}return a}(t,h,d),g=m.length,v=n=>{if(p&&n<e[0])return t[0];let r=0;if(g>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=(0,s.q)(e[r],e[r+1],n);return m[r](i)};return n?t=>v((0,l.q)(e[0],e[f-1],t)):v}},59216(e,t,n){"use strict";n.d(t,{s:()=>i});var r=n(87663);function i(e){return(0,r.G)(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}},61041(e,t,n){"use strict";n.d(t,{x:()=>i});var r=n(87663);function i(e){return(0,r.G)(e)&&"ownerSVGElement"in e}},97588(e,t,n){"use strict";n.d(t,{h:()=>i});var r=n(61041);function i(e){return(0,r.x)(e)&&"svg"===e.tagName}},8081(e,t,n){"use strict";n.d(t,{j:()=>M});var r=n(50177),i=n(26328),o=n(43301),a=n(64363),s=n(45931),l=n(88084),c=n(97643);function u(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var h=n(16087);function d(e,t){return n=>n>0?t:e}var f=n(64721);let p=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},m=[l.u,h.B,c.V];function g(e){let t=m.find(t=>t.test(e));if((0,i.$)(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===c.V&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,a=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=u(s,r,e+1/3),o=u(s,r,e),a=u(s,r,e-1/3)}else i=o=a=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}(n)),n}let v=(e,t)=>
16{let n=g(e),r=g(t);if(!n||!r)return d(e,t);let i={...n};return e=>(i.red=p(n.red,r.red,e),i.green=p(n.green,r.green,e),i.blue=p(n.blue,r.blue,e),i.alpha=(0,f.k)(n.alpha,r.alpha,e),h.B.transform(i))},y=new Set(["none","hidden"]);function b(e,t){return n=>(0,f.k)(e,t,n)}function x(e){return"number"==typeof e?b:"string"==typeof e?(0,o.pG)(e)?d:a.y.test(e)?v:S:Array.isArray(e)?w:"object"==typeof e?a.y.test(e)?v:k:d}function w(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>x(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function k(e,t){let n={...e,...t},r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=x(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}let S=(e,t)=>{let n=s.f.createTransformer(t),o=(0,s.V)(e),a=(0,s.V)(t);if(!(o.indexes.var.length===a.indexes.var.length&&o.indexes.color.length===a.indexes.color.length&&o.indexes.number.length>=a.indexes.number.length))return(0,i.$)(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),d(e,t);if(y.has(e)&&!a.values.length||y.has(t)&&!o.values.length)return y.has(e)?n=>n<=0?e:t:n=>n>=1?t:e;return(0,r.F)(w(function(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let o=t.types[i],a=e.indexes[o][r[o]],s=e.values[a]??0;n[i]=s,r[o]++}return n}(o,a),a.values),n)};function M(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?(0,f.k)(e,t,n):x(e)(e,t)}},64721(e,t,n){"use strict";n.d(t,{k:()=>r});let r=(e,t,n)=>e+(t-e)*n},4069(e,t,n){"use strict";function r(e,t,n){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>null!=e)}n.d(t,{K:()=>r})},98188(e,t,n){"use strict";n.d(t,{y:()=>i});var r=n(43499);function i(e=.1,{startDelay:t=0,from:n=0,ease:o}={}){return(i,a)=>{let s=e*Math.abs(("number"==typeof n?n:function(e,t){if("first"===e)return 0;{let n=t-1;return"last"===e?n:n/2}}(n,a))-i);if(o){let t=a*e;s=(0,r.K)(o)(s/t)*t}return t+s}}},49345(e,t,n){"use strict";n.d(t,{OQ:()=>c,bt:()=>s});var r=n(16876),i=n(51971),o=n(22134),a=n(76040);let s={current:void 0};class l{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=o.k.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=o.k.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new r.v);let n=this.events[e].add(t);return"change"===e?()=>{n(),a.Gt.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return s.current&&s.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=o.k.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,i.f)(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function c(e,t){return new l(e,t)}},88084(e,t,n){"use strict";n.d(t,{u:()=>i});var r=n(16087);let i={test:(0,n(62213).$)("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alph
16a:i?parseInt(i,16)/255:1}},transform:r.B.transform}},97643(e,t,n){"use strict";n.d(t,{V:()=>s});var r=n(63344),i=n(18741),o=n(32910),a=n(62213);let s={test:(0,a.$)("hsl","hue"),parse:(0,a.q)("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:a=1})=>"hsla("+Math.round(e)+", "+i.KN.transform((0,o.a)(t))+", "+i.KN.transform((0,o.a)(n))+", "+(0,o.a)(r.X4.transform(a))+")"}},64363(e,t,n){"use strict";n.d(t,{y:()=>a});var r=n(88084),i=n(97643),o=n(16087);let a={test:e=>o.B.test(e)||r.u.test(e)||i.V.test(e),parse:e=>o.B.test(e)?o.B.parse(e):i.V.test(e)?i.V.parse(e):r.u.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?o.B.transform(e):i.V.transform(e),getAnimatableNone:e=>{let t=a.parse(e);return t.alpha=0,a.transform(t)}}},16087(e,t,n){"use strict";n.d(t,{B:()=>l});var r=n(59110),i=n(63344),o=n(32910),a=n(62213);let s={...i.ai,transform:e=>Math.round((0,r.q)(0,255,e))},l={test:(0,a.$)("rgb","red"),parse:(0,a.q)("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+s.transform(e)+", "+s.transform(t)+", "+s.transform(n)+", "+(0,o.a)(i.X4.transform(r))+")"}},62213(e,t,n){"use strict";n.d(t,{$:()=>o,q:()=>a});var r=n(89249);let i=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,o=(e,t)=>n=>!!("string"==typeof n&&i.test(n)&&n.startsWith(e)||t&&null!=n&&Object.prototype.hasOwnProperty.call(n,t)),a=(e,t,n)=>i=>{if("string"!=typeof i)return i;let[o,a,s,l]=i.match(r.S);return{[e]:parseFloat(o),[t]:parseFloat(a),[n]:parseFloat(s),alpha:void 0!==l?parseFloat(l):1}}},56908(e,t,n){"use strict";n.d(t,{p:()=>l});var r=n(45931),i=n(89249);let o=new Set(["brightness","contrast","saturate","opacity"]);function a(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(i.S)||[];if(!r)return e;let a=n.replace(r,""),s=+!!o.has(t);return r!==n&&(s*=100),t+"("+s+a+")"}let s=/\b([a-z-]*)\(.*?\)/gu,l={...r.f,getAnimatableNone:e=>{let t=e.match(s);return t?t.map(a).join(" "):e}}},45931(e,t,n){"use strict";n.d(t,{V:()=>u,f:()=>d});var r=n(64363);let i=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var o=n(89249),a=n(32910);let s="number",l="color",c=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function u(e){let t=e.toString(),n=[],i={color:[],number:[],var:[]},o=[],a=0,u=t.replace(c,e=>(r.y.test(e)?(i.color.push(a),o.push(l),n.push(r.y.parse(e))):e.startsWith("var(")?(i.var.push(a),o.push("var"),n.push(e)):(i.number.push(a),o.push(s),n.push(parseFloat(e))),++a,"${}")).split("${}");return{values:n,split:u,indexes:i,types:o}}function h({split:e,types:t}){let n=e.length;return i=>{let o="";for(let c=0;c<n;c++)if(o+=e[c],void 0!==i[c]){let e=t[c];e===s?o+=(0,a.a)(i[c]):e===l?o+=r.y.transform(i[c]):o+=i[c]}return o}}let d={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(o.S)?.length||0)+(e.match(i)?.length||0)>0},parse:function(e){return u(e).values},createTransformer:function(e){return h(u(e))},getAnimatableNone:function(e){let t=u(e);return h(t)(t.values.map((e,n)=>((e,t)=>"number"==typeof e?t?.trim().endsWith("/")?e:0:"number"==typeof e?0:r.y.test(e)?r.y.getAnimatableNone(e):e)(e,t.split[n])))}}},87306(e,t,n){"use strict";n.d(t,{d:()=>i});var r=n(45931);let i={...r.f,getAnimatableNone:e=>{let t=r.f.parse(e);return r.f.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}}},81243(e,t,n){"use strict";n.d(t,{n:()=>s,T:()=>a});var r=n(63344),i=n(18741),o=n(94517);let a=[r.ai,i.px,i.KN,i.uj,i.vw,i.vh,{test:e=>"auto"===e,parse:e=>e}],s=e=>a.find((0,o.w)(e))},8669(e,t,n){"use strict";n.d(t,{D:()=>s});var r=n(64363),i=n(56908),o=n(87306);let a={...n(65915).W,color:r.y,backgroundColor:r.y,outlineColor:r.y,fill:r.y,stroke:r.y,borderColor:r.y,borderTopColor:r.y,borderRightColor:r.y,borderBottomColor:r.y,borderLeftColor:r.y,filter:i.p,WebkitFilter:i.p,mask:o.d,WebkitMask:o.d},s=e=>a[e]}
16,65915(e,t,n){"use strict";n.d(t,{W:()=>s});var r=n(63344);let i={...r.ai,transform:Math.round};var o=n(18741);let a={rotate:o.uj,pathRotation:o.uj,rotateX:o.uj,rotateY:o.uj,rotateZ:o.uj,scale:r.hs,scaleX:r.hs,scaleY:r.hs,scaleZ:r.hs,skew:o.uj,skewX:o.uj,skewY:o.uj,distance:o.px,translateX:o.px,translateY:o.px,translateZ:o.px,x:o.px,y:o.px,z:o.px,perspective:o.px,transformPerspective:o.px,opacity:r.X4,originX:o.gQ,originY:o.gQ,originZ:o.px},s={borderWidth:o.px,borderTopWidth:o.px,borderRightWidth:o.px,borderBottomWidth:o.px,borderLeftWidth:o.px,borderRadius:o.px,borderTopLeftRadius:o.px,borderTopRightRadius:o.px,borderBottomRightRadius:o.px,borderBottomLeftRadius:o.px,width:o.px,maxWidth:o.px,height:o.px,maxHeight:o.px,top:o.px,right:o.px,bottom:o.px,left:o.px,inset:o.px,insetBlock:o.px,insetBlockStart:o.px,insetBlockEnd:o.px,insetInline:o.px,insetInlineStart:o.px,insetInlineEnd:o.px,padding:o.px,paddingTop:o.px,paddingRight:o.px,paddingBottom:o.px,paddingLeft:o.px,paddingBlock:o.px,paddingBlockStart:o.px,paddingBlockEnd:o.px,paddingInline:o.px,paddingInlineStart:o.px,paddingInlineEnd:o.px,margin:o.px,marginTop:o.px,marginRight:o.px,marginBottom:o.px,marginLeft:o.px,marginBlock:o.px,marginBlockStart:o.px,marginBlockEnd:o.px,marginInline:o.px,marginInlineStart:o.px,marginInlineEnd:o.px,fontSize:o.px,backgroundPositionX:o.px,backgroundPositionY:o.px,...a,zIndex:i,fillOpacity:r.X4,strokeOpacity:r.X4,numOctaves:i}},63344(e,t,n){"use strict";n.d(t,{X4:()=>o,ai:()=>i,hs:()=>a});var r=n(59110);let i={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},o={...i,transform:e=>(0,r.q)(0,1,e)},a={...i,default:1}},18741(e,t,n){"use strict";n.d(t,{KN:()=>o,gQ:()=>c,px:()=>a,uj:()=>i,vh:()=>s,vw:()=>l});let r=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),i=r("deg"),o=r("%"),a=r("px"),s=r("vh"),l=r("vw"),c={...o,parse:e=>o.parse(e)/100,transform:e=>o.transform(100*e)}},94517(e,t,n){"use strict";n.d(t,{w:()=>r});let r=e=>t=>t.test(e)},71882(e,t,n){"use strict";n.d(t,{J:()=>l});var r=n(45931),i=n(56908),o=n(87306),a=n(8669);let s=new Set([i.p,o.d]);function l(e,t){let n=(0,a.D)(e);return s.has(n)||(n=r.f),n.getAnimatableNone?n.getAnimatableNone(t):void 0}},89249(e,t,n){"use strict";n.d(t,{S:()=>r});let r=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},32910(e,t,n){"use strict";n.d(t,{a:()=>r});let r=e=>Math.round(1e5*e)/1e5},31064(e,t,n){"use strict";n.d(t,{S:()=>r});let r=e=>!!(e&&e.getVelocity)},54023(e,t,n){"use strict";n.d(t,{g:()=>o});var r=n(29819),i=n(31064);function o(e,t){let n=e.getValue("willChange");if((0,i.S)(n)&&n.add)return n.add(t);if(!n&&r.W.WillChange){let n=new r.W.WillChange("auto");e.addValue("willChange",n),n.add(t)}}},65968(e,t,n){"use strict";function r(e,t){-1===e.indexOf(t)&&e.push(t)}function i(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}n.d(t,{Ai:()=>i,Kq:()=>r})},59110(e,t,n){"use strict";n.d(t,{q:()=>r});let r=(e,t,n)=>n>t?t:n<e?e:n},85193(e,t,n){"use strict";n.d(t,{b:()=>i});var r=n(54004);let i=e=>e>=1?1:(e*=2)<1?.5*(0,r.dg)(e):.5*(2-Math.pow(2,-10*(e-1)))},54004(e,t,n){"use strict";n.d(t,{Sz:()=>a,ZZ:()=>l,dg:()=>s});var r=n(31759),i=n(87237),o=n(110);let a=(0,r.A)(.33,1.53,.69,.99),s=(0,o.G)(a),l=(0,i.V)(s)},21912(e,t,n){"use strict";n.d(t,{po:()=>o,tn:()=>s,yT:()=>a});var r=n(87237),i=n(110);let o=e=>1-Math.sin(Math.acos(e)),a=(0,i.G)(o),s=(0,r.V)(o)},31759(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(7309);let i=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function o(e,t,n,o){return e===t&&n===o?r.l:r=>0===r||1===r?r:i(function(e,t,n,r,o){let a,s,l=0;do(a=i(s=t+(n-t)/2,r,o)-e)>0?n=s:t=s;while(Math.abs(a)>1e-7&&++l<12);return s}(r,0,1,e,n),t,o)}},17663(e,t,n){"use strict";n.d(t,{a6:()=>i,am:()=>a,vT:()=>o});var r=n(31759);let i=(0,r.A)(.42,0,1,1),o=(0,r.A)(0,0,.58,1),a=(0,r.A)(.42,0,.58,1)},87237(e,t,n){"use strict";n.d(t,{V:()=>r});let r=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2},110(e,t,n){"use strict";n.d(t,{G:()=>r});let r=e=>t=>1-e(1-t)},53717(e,t,n){"use strict";n.d(t,{D:()=>r});let r=e=>Array.isArray(e)&&"number"==typeof e[0]},94903(e,t,n){"use strict";n.d(t,{h:()=>r});let r=e=>Array.isArray(e)&&"number"!=typeof e[0]},43499(e,t,n){"use strict";n.d(t,{K:()=>d});var r=n(26328),i=n(7309),o=n(85193),a=n(54004),s=n(21912),l=n(31759),c=n(17663),u=n(53717);let h={linear:i.l,easeIn:c.a6,easeInOut:c.am,easeOut:c.vT,circIn:s.po,circInOut:s.tn,circOut:s.yT,backIn:a.dg,backInOut:a.ZZ,backOut:a.Sz,anticipate:o.b},d=e=>{if((0,u.D)(e)){(0,r.V)(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,n,i,o]=e;return(0,l.A)(t,n,i,o)}return"string"==typeof e?((0,r.V)(void 0!==h[e],`Invalid easing type '${e}
16'`,"invalid-easing-type"),h[e]):e}},26328(e,t,n){"use strict";n.d(t,{$:()=>r,V:()=>i}),n(85409);let r=()=>{},i=()=>{}},29819(e,t,n){"use strict";n.d(t,{W:()=>r});let r={}},76862(e,t,n){"use strict";n.d(t,{i:()=>r});let r=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)},87663(e,t,n){"use strict";n.d(t,{G:()=>r});let r=e=>"object"==typeof e&&null!==e},75682(e,t,n){"use strict";n.d(t,{$:()=>r});let r=e=>/^0[^.\s]+$/u.test(e)},31091(e,t,n){"use strict";function r(e){let t;return()=>(void 0===t&&(t=e()),t)}n.d(t,{p:()=>r})},7309(e,t,n){"use strict";n.d(t,{l:()=>r});let r=e=>e},50177(e,t,n){"use strict";n.d(t,{F:()=>r});let r=(...e)=>e.reduce((e,t)=>n=>t(e(n)))},58240(e,t,n){"use strict";n.d(t,{q:()=>r});let r=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1}},16876(e,t,n){"use strict";n.d(t,{v:()=>i});var r=n(65968);class i{constructor(){this.subscriptions=[]}add(e){return(0,r.Kq)(this.subscriptions,e),()=>(0,r.Ai)(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},60259(e,t,n){"use strict";n.d(t,{X:()=>i,f:()=>r});let r=e=>1e3*e,i=e=>e/1e3},51971(e,t,n){"use strict";n.d(t,{f:()=>r});let r=(e,t)=>t?1e3/t*e:0},49342(e,t,n){"use strict";n.d(t,{N:()=>c});var r=n(50405),i=(e,t,n,r,i,o,a,s)=>{let l=document.documentElement,c=["light","dark"];function u(t){var n;(Array.isArray(e)?e:[e]).forEach(e=>{let n="class"===e,r=n&&o?i.map(e=>o[e]||e):i;n?(l.classList.remove(...r),l.classList.add(o&&o[t]?o[t]:t)):l.setAttribute(e,t)}),n=t,s&&c.includes(n)&&(l.style.colorScheme=n)}if(r)u(r);else try{let e=localStorage.getItem(t)||n,r=a&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;u(r)}catch(e){}},o=["light","dark"],a="(prefers-color-scheme: dark)",s="u"<typeof window,l=r.createContext(void 0),c=e=>r.useContext(l)?r.createElement(r.Fragment,null,e.children):r.createElement(h,{...e}),u=["light","dark"],h=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:i=!0,storageKey:s="theme",themes:c=u,defaultTheme:h=n?"system":"light",attribute:g="data-theme",value:v,children:y,nonce:b,scriptProps:x})=>{let[w,k]=r.useState(()=>f(s,h)),[S,M]=r.useState(()=>"system"===w?m():w),A=v?Object.values(v):c,E=r.useCallback(e=>{let r=e;if(!r)return;"system"===e&&n&&(r=m());let a=v?v[r]:r,s=t?p(b):null,l=document.documentElement,c=e=>{"class"===e?(l.classList.remove(...A),a&&l.classList.add(a)):e.startsWith("data-")&&(a?l.setAttribute(e,a):l.removeAttribute(e))};if(Array.isArray(g)?g.forEach(c):c(g),i){let e=o.includes(h)?h:null,t=o.includes(r)?r:e;l.style.colorScheme=t}null==s||s()},[b]),C=r.useCallback(e=>{let t="function"==typeof e?e(w):e;k(t);try{localStorage.setItem(s,t)}catch(e){}},[w]),O=r.useCallback(t=>{M(m(t)),"system"===w&&n&&!e&&E("system")},[w,e]);r.useEffect(()=>{let e=window.matchMedia(a);return e.addListener(O),O(e),()=>e.removeListener(O)},[O]),r.useEffect(()=>{let e=e=>{e.key===s&&(e.newValue?k(e.newValue):C(h))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[C]),r.useEffect(()=>{E(null!=e?e:w)},[e,w]);let P=r.useMemo(()=>({theme:w,setTheme:C,forcedTheme:e,resolvedTheme:"system"===w?S:w,themes:n?[...c,"system"]:c,systemTheme:n?S:void 0}),[w,C,e,S,n,c]);return r.createElement(l.Provider,{value:P},r.createElement(d,{forcedTheme:e,storageKey:s,attribute:g,enableSystem:n,enableColorScheme:i,defaultTheme:h,value:v,themes:c,nonce:b,scriptProps:x}),y)},d=r.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:o,enableColorScheme:a,defaultTheme:s,value:l,themes:c,nonce:u,scriptProps:h})=>{let d=JSON.stringify([n,t,s,e,c,l,o,a]).slice(1,-1);return r.createElement("script",{...h,suppressHydrationWarning:!0,nonce:"u"<typeof window?u:"",dangerouslySetInnerHTML:{__html:`(${i.toString()})(${d})`}})}),f=(e,t)=>{let n;if(!s){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},p=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},m=e=>
16(e||(e=window.matchMedia(a)),e.matches?"dark":"light")},27680(e,t,n){"use strict";n.d(t,{jI:()=>R});var r=n(50405);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)}function o(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}function a(e){var t=(0,r.useRef)(e),n=(0,r.useRef)(function(e){t.current&&t.current(e)});return t.current=e,n.current}var s,l=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e<t?t:e},c=function(e){return"touches"in e},u=function(e){return e&&e.ownerDocument.defaultView||self},h=function(e,t,n){var r=e.getBoundingClientRect(),i=c(t)?function(e,t){for(var n=0;n<e.length;n++)if(e[n].identifier===t)return e[n];return e[0]}(t.touches,n):t;return{left:l((i.pageX-(r.left+u(e).pageXOffset))/r.width),top:l((i.pageY-(r.top+u(e).pageYOffset))/r.height)}},d=function(e){c(e)||e.preventDefault()},f=r.memo(function(e){var t=e.onMove,n=e.onKey,s=e.onEnd,l=o(e,["onMove","onKey","onEnd"]),f=(0,r.useRef)(null),p=a(t),m=a(n),g=a(s),v=(0,r.useRef)(null),y=(0,r.useRef)(!1),b=(0,r.useMemo)(function(){var e=function(e){d(e),(c(e)?e.touches.length>0:e.buttons>0)&&f.current?p(h(f.current,e,v.current)):(n(!1),g())},t=function(){n(!1),g()};function n(n){var r=y.current,i=u(f.current),o=n?i.addEventListener:i.removeEventListener;o(r?"touchmove":"mousemove",e),o(r?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,r=f.current;if(r&&(d(t),(!y.current||c(t))&&r)){if(c(t)){y.current=!0;var i=t.changedTouches||[];i.length&&(v.current=i[0].identifier)}r.focus(),p(h(r,t,v.current)),n(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),m({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},function(e){var t=e.which||e.keyCode;t>=37&&t<=40&&g()},n]},[m,p,g]),x=b[0],w=b[1],k=b[2],S=b[3];return(0,r.useEffect)(function(){return S},[S]),r.createElement("div",i({},l,{onTouchStart:x,onMouseDown:x,className:"react-colorful__interactive",ref:f,onKeyDown:w,onKeyUp:k,tabIndex:0,role:"slider"}))}),p=function(e){return e.filter(Boolean).join(" ")},m=function(e){var t=e.color,n=e.left,i=e.top,o=p(["react-colorful__pointer",e.className]);return r.createElement("div",{className:o,style:{top:100*(void 0===i?.5:i)+"%",left:100*n+"%"}},r.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},g=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},v=function(e){return"#"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?g(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?g(parseInt(e.substring(6,8),16)/255,2):1}},y=function(e){var t=e.s,n=e.v,r=e.a,i=(200-t)*n/100;return{h:g(e.h),s:g(i>0&&i<200?t*n/100/(i<=100?i:200-i)*100:0),l:g(i/2),a:g(r,2)}},b=function(e){var t=y(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},x=function(e){var t=e.h,n=e.s,r=e.v,i=e.a;t=t/360*6,n/=100,r/=100;var o=Math.floor(t),a=r*(1-n),s=r*(1-(t-o)*n),l=r*(1-(1-t+o)*n),c=o%6;return{r:g(255*[r,s,a,a,l,r][c]),g:g(255*[l,r,r,s,a,a][c]),b:g(255*[a,a,l,r,r,s][c]),a:g(i,2)}},w=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},k=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=i<1?w(g(255*i)):"";return"#"+w(t)+w(n)+w(r)+o},S=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=Math.max(t,n,r),a=o-Math.min(t,n,r),s=a?o===t?(n-r)/a:o===n?2+(r-t)/a:4+(t-n)/a:0;return{h:g(60*(s<0?s+6:s)),s:g(o?a/o*100:0),v:g(o/255*100),a:i}},M=r.memo(function(e){var t=e.hue,n=e.onChange,i=e.onChangeEnd,o=p(["react-colorful__hue",e.className]);return r.createElement("div",{className:o},r.createElement(f,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:l(t+360*e.left,0,360)})},onEnd:i,"aria-label":"Hue","aria-valuenow":g(t),"aria-valuemax":"360","aria-valuemin":"0"},r.createElement(m,{className:"react-colorful__hue-pointer",left:t/360,color:b({h:t,s:100,v:100,a:1})}
16)))}),A=r.memo(function(e){var t=e.hsva,n=e.onChange,i=e.onChangeEnd,o={backgroundColor:b({h:t.h,s:100,v:100,a:1})};return r.createElement("div",{className:"react-colorful__saturation",style:o},r.createElement(f,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:l(t.s+100*e.left,0,100),v:l(t.v-100*e.top,0,100)})},onEnd:i,"aria-label":"Color","aria-valuetext":"Saturation "+g(t.s)+"%, Brightness "+g(t.v)+"%"},r.createElement(m,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:b(t)})))}),E=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},C="u">typeof window?r.useLayoutEffect:r.useEffect,O=new Map,P=function(e){C(function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!O.has(t)){var r=t.createElement("style");r.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',O.set(t,r);var i=s||n.nc;i&&r.setAttribute("nonce",i),t.head.appendChild(r)}},[])},T=function(e){var t,n,s,l,c,u,h,d=e.className,f=e.colorModel,m=e.color,g=void 0===m?f.defaultColor:m,v=e.onChange,y=e.onChangeEnd,b=o(e,["className","colorModel","color","onChange","onChangeEnd"]),x=(0,r.useRef)(null);P(x);var w=(t=a(v),n=a(y),l=(s=(0,r.useState)(function(){return f.toHsva(g)}))[0],c=s[1],u=(0,r.useRef)({color:g,hsva:l}),h=(0,r.useRef)(!1),(0,r.useEffect)(function(){if(!f.equal(g,u.current.color)){var e=f.toHsva(g);u.current={hsva:e,color:g},c(e),h.current=!1}},[g,f]),(0,r.useEffect)(function(){var e;E(l,u.current.hsva)||f.equal(e=f.fromHsva(l),u.current.color)||(u.current={hsva:l,color:e},t(e),h.current=!0)},[l,f,t]),[l,(0,r.useCallback)(function(e){c(function(t){return Object.assign({},t,e)})},[]),(0,r.useCallback)(function(){h.current&&(h.current=!1,n(u.current.color))},[n])]),k=w[0],S=w[1],C=w[2],O=p(["react-colorful",d]);return r.createElement("div",i({},b,{ref:x,className:O}),r.createElement(A,{hsva:k,onChange:S,onChangeEnd:C}),r.createElement(M,{hue:k.h,onChange:S,onChangeEnd:C,className:"react-colorful__last-control"}))},D={defaultColor:"000",toHsva:function(e){return S(v(e))},fromHsva:function(e){return k(x({h:e.h,s:e.s,v:e.v,a:1}))},equal:function(e,t){return e.toLowerCase()===t.toLowerCase()||E(v(e),v(t))}},R=function(e){return r.createElement(T,i({},e,{colorModel:D}))}},1628(e,t,n){"use strict";n.d(t,{VB:()=>ee});var r=n(50405),i=n(5821),o=n(65959);let a
vendor: 41,168 bytes, line 16
16=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function 
16s(e,t,n){let r=function(e){let{name:t}=e;if(t&&-1!==t.lastIndexOf(".")&&!e.type){let n=t.split(".").pop().toLowerCase(),r=a.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e),{webkitRelativePath:i}=e,o="string"==typeof t?t:"string"==typeof i&&i.length>0?i:`./${e.name}`;return"string"!=typeof r.path&&l(r,"path",o),void 0!==n&&Object.defineProperty(r,"handle",{value:n,writable:!1,configurable:!1,enumerable:!0}),l(r,"relativePath",o),r}function l(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}let c=[".DS_Store","Thumbs.db"];function u(e){return"object"==typeof e&&null!==e}function h(e){return e.filter(e=>-1===c.indexOf(e.name))}function d(e){if(null===e)return[];let t=[];for(let n=0;n<e.length;n++){let r=e[n];t.push(r)}return t}function f(e){if("function"!=typeof e.webkitGetAsEntry)return p(e);let t=e.webkitGetAsEntry();return t&&t.isDirectory?g(t):p(e,t)}function p(e,t){return(0,o.sH)(this,void 0,void 0,function*(){var n;if(globalThis.isSecureContext&&"function"==typeof e.getAsFileSystemHandle){let t=yield e.getAsFileSystemHandle();if(null===t)throw Error(`${e} is not a File`);if(void 0!==t){let e=yield t.getFile();return e.handle=t,s(e)}}let r=e.getAsFile();if(!r)throw Error(`${e} is not a File`);return s(r,null!=(n=null==t?void 0:t.fullPath)?n:void 0)})}function m(e){return(0,o.sH)(this,void 0,void 0,function*(){return e.isDirectory?g(e):function(e){return(0,o.sH)(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(n=>{t(s(n,e.fullPath))},e=>{n(e)})})})}(e)})}function g(e){let t=e.createReader();
16return new Promise((e,n)=>{let r=[];!function i(){t.readEntries(t=>(0,o.sH)(this,void 0,void 0,function*(){if(t.length){let e=Promise.all(t.map(m));r.push(e),i()}else try{let t=yield Promise.all(r);e(t)}catch(e){n(e)}}),e=>{n(e)})}()})}var v=n(28213);function y(e){return function(e){if(Array.isArray(e))return M(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||S(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach(function(t){w(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,s=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(s)throw r}}return o}}(e,t)||S(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){if(e){if("string"==typeof e)return M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M(e,t)}}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var A="function"==typeof v?v:v.default,E=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split(","),n=t.length>1?"one of ".concat(t.join(", ")):t[0];return{code:"file-invalid-type",message:"File type must be ".concat(n)}},C=function(e){return{code:"file-too-large",message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},O=function(e){return{code:"file-too-small",message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},P={code:"too-many-files",message:"Too many files"};function T(e,t){var n="application/x-moz-file"===e.type||A(e,t)||""===e.type&&"function"==typeof e.getAsFile;return[n,n?null:E(t)]}function D(e,t,n){if(R(e.size)){if(R(t)&&R(n)){if(e.size>n)return[!1,C(n)];if(e.size<t)return[!1,O(t)]}else if(R(t)&&e.size<t)return[!1,O(t)];else if(R(n)&&e.size>n)return[!1,C(n)]}return[!0,null]}function R(e){return null!=e}function j(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function I(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(e){return"Files"===e||"application/x-moz-file"===e}):!!e.target&&!!e.target.files}function z(e){e.preventDefault()}function _(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.some(function(t){return!j(e)&&t&&t.apply(void 0,[e].concat(r)),j(e)})}}function L(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||"application/*"===e||/\w+\/[-+.\w]+/g.test(e)}function N(e){return/^.*\.[\w]+$/.test(e)}var B=["children"],F=["open"],V=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],H=["refKey","onChange","onClick"];function W(e){return function(e){if(Array.isArray(e))return K(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||U(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,s=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(s)throw r}}return o}}(e,t)||U(e,t)||function(){throw TypeError("Invalid attempt to de
16structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function U(e,t){if(e){if("string"==typeof e)return K(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return K(e,t)}}function K(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach(function(t){Z(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var X=(0,r.forwardRef)(function(e,t){var n=e.children,i=ee(Y(e,B)),o=i.open,a=Y(i,F);return(0,r.useImperativeHandle)(t,function(){return{open:o}},[o]),r.createElement(r.Fragment,null,n(G(G({},a),{},{open:o})))});X.displayName="Dropzone";var J={disabled:!1,getFilesFromEvent:function(e){return(0,o.sH)(this,void 0,void 0,function*(){var t;if(u(e)&&u(e.dataTransfer))return function(e,t){return(0,o.sH)(this,void 0,void 0,function*(){if(e.items){let n=d(e.items).filter(e=>"file"===e.kind);return"drop"!==t?n:h(function e(t){return t.reduce((t,n)=>[...t,...Array.isArray(n)?e(n):[n]],[])}((yield Promise.all(n.map(f)))))}return h(d(e.files).map(e=>s(e)))})}(e.dataTransfer,e.type);if(u(t=e)&&u(t.target))return d(e.target.files).map(e=>s(e));return Array.isArray(e)&&e.every(e=>"getFile"in e&&"function"==typeof e.getFile)?function(e){return(0,o.sH)(this,void 0,void 0,function*(){return(yield Promise.all(e.map(e=>e.getFile()))).map(e=>s(e))})}(e):[]})},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};X.defaultProps=J,X.propTypes={children:i.func,accept:i.objectOf(i.arrayOf(i.string)),multiple:i.bool,preventDropOnDocument:i.bool,noClick:i.bool,noKeyboard:i.bool,noDrag:i.bool,noDragEventsBubbling:i.bool,minSize:i.number,maxSize:i.number,maxFiles:i.number,disabled:i.bool,getFilesFromEvent:i.func,onFileDialogCancel:i.func,onFileDialogOpen:i.func,useFsAccessApi:i.bool,autoFocus:i.bool,onDragEnter:i.func,onDragLeave:i.func,onDragOver:i.func,onDrop:i.func,onDropAccepted:i.func,onDropRejected:i.func,onError:i.func,validator:i.func};var Q={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,isDragGlobal:!1,acceptedFiles:[],fileRejections:[]};function ee(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=G(G({},J),e),n=t.accept,i=t.disabled,o=t.getFilesFromEvent,a=t.maxSize,s=t.minSize,l=t.multiple,c=t.maxFiles,u=t.onDragEnter,h=t.onDragLeave,d=t.onDragOver,f=t.onDrop,p=t.onDropAccepted,m=t.onDropRejected,g=t.onFileDialogCancel,v=t.onFileDialogOpen,b=t.useFsAccessApi,S=t.autoFocus,M=t.preventDropOnDocument,A=t.noClick,E=t.noKeyboard,C=t.noDrag,O=t.noDragEventsBubbling,B=t.onError,F=t.validator,U=(0,r.useMemo)(function(){return R(n)?Object.entries(n).reduce(function(e,t){var n=k(t,2),r=n[0],i=n[1];return[].concat(y(e),[r],y(i))},[]).filter(function(e){return L(e)||N(e)}).join(","):void 0},[n]),K=(0,r.useMemo)(function(){return R(n)?[{description:"Files",accept:Object.entries(n).filter(function(e){var t=k(e,2),n=t[0],r=t[1],i=!0;return L(n)||(console.warn('Skipped "'.concat(n,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),i=!1),Array.isArray(r)&&r.every(N)||(console.warn('Skipped "'.concat(n,'" because an invali
16d file extension was provided.')),i=!1),i}).reduce(function(e,t){var n=k(t,2),r=n[0],i=n[1];return x(x({},e),{},w({},r,i))},{})}]:n},[n]),q=(0,r.useMemo)(function(){return"function"==typeof v?v:en},[v]),X=(0,r.useMemo)(function(){return"function"==typeof g?g:en},[g]),ee=(0,r.useRef)(null),er=(0,r.useRef)(null),ei=$((0,r.useReducer)(et,Q),2),eo=ei[0],ea=ei[1],es=eo.isFocused,el=eo.isFileDialogActive,ec=(0,r.useRef)("u">typeof window&&window.isSecureContext&&b&&"showOpenFilePicker"in window),eu=function(){!ec.current&&el&&setTimeout(function(){er.current&&(er.current.files.length||(ea({type:"closeDialog"}),X()))},300)};(0,r.useEffect)(function(){return window.addEventListener("focus",eu,!1),function(){window.removeEventListener("focus",eu,!1)}},[er,el,X,ec]);var eh=(0,r.useRef)([]),ed=(0,r.useRef)([]),ef=function(e){ee.current&&ee.current.contains(e.target)||(e.preventDefault(),eh.current=[])};(0,r.useEffect)(function(){return M&&(document.addEventListener("dragover",z,!1),document.addEventListener("drop",ef,!1)),function(){M&&(document.removeEventListener("dragover",z),document.removeEventListener("drop",ef))}},[ee,M]),(0,r.useEffect)(function(){var e=function(e){ed.current=[].concat(W(ed.current),[e.target]),I(e)&&ea({isDragGlobal:!0,type:"setDragGlobal"})},t=function(e){ed.current=ed.current.filter(function(t){return t!==e.target&&null!==t}),ed.current.length>0||ea({isDragGlobal:!1,type:"setDragGlobal"})},n=function(){ed.current=[],ea({isDragGlobal:!1,type:"setDragGlobal"})},r=function(){ed.current=[],ea({isDragGlobal:!1,type:"setDragGlobal"})};return document.addEventListener("dragenter",e,!1),document.addEventListener("dragleave",t,!1),document.addEventListener("dragend",n,!1),document.addEventListener("drop",r,!1),function(){document.removeEventListener("dragenter",e),document.removeEventListener("dragleave",t),document.removeEventListener("dragend",n),document.removeEventListener("drop",r)}},[ee]),(0,r.useEffect)(function(){return!i&&S&&ee.current&&ee.current.focus(),function(){}},[ee,S,i]);var ep=(0,r.useCallback)(function(e){B?B(e):console.error(e)},[B]),em=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eO(e),eh.current=[].concat(W(eh.current),[e.target]),I(e)&&Promise.resolve(o(e)).then(function(t){if(!j(e)||O){var n,r,i,o,h,d,f,p,m=t.length,g=m>0&&(r=(n={files:t,accept:U,minSize:s,maxSize:a,multiple:l,maxFiles:c,validator:F}).files,i=n.accept,o=n.minSize,h=n.maxSize,d=n.multiple,f=n.maxFiles,p=n.validator,(!!d||!(r.length>1))&&(!d||!(f>=1)||!(r.length>f))&&r.every(function(e){var t=k(T(e,i),1)[0],n=k(D(e,o,h),1)[0],r=p?p(e):null;return t&&n&&!r}));ea({isDragAccept:g,isDragReject:m>0&&!g,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e)}}).catch(function(e){return ep(e)})},[o,u,ep,O,U,s,a,l,c,F]),eg=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eO(e);var t=I(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&d&&d(e),!1},[d,O]),ev=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eO(e);var t=eh.current.filter(function(e){return ee.current&&ee.current.contains(e)}),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),eh.current=t,!(t.length>0)&&(ea({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),I(e)&&h&&h(e))},[ee,h,O]),ey=(0,r.useCallback)(function(e,t){var n=[],r=[];e.forEach(function(e){var t=$(T(e,U),2),i=t[0],o=t[1],l=$(D(e,s,a),2),c=l[0],u=l[1],h=F?F(e):null;if(i&&c&&!h)n.push(e);else{var d=[o,u];h&&(d=d.concat(h)),r.push({file:e,errors:d.filter(function(e){return e})})}}),(!l&&n.length>1||l&&c>=1&&n.length>c)&&(n.forEach(function(e){r.push({file:e,errors:[P]})}),n.splice(0)),ea({acceptedFiles:n,fileRejections:r,type:"setFiles"}),f&&f(n,r,t),r.length>0&&m&&m(r,t),n.length>0&&p&&p(n,t)},[ea,l,U,s,a,c,f,p,m,F]),eb=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eO(e),eh.current=[],I(e)&&Promise.resolve(o(e)).then(function(t){(!j(e)||O)&&ey(t,e)}).catch(function(e){return ep(e)}),ea({type:"reset"})},[o,ey,ep,O]),ex=(0,r.useCallback)(function(){if(ec.current){ea({type:"openDialog"}),q(),window.showOpenFilePicker({multiple:l,types:K}).then(function(e){return o(e)}).then(function(e){ey(e,null),ea({type:"closeDialog"})}).catch(function(e){e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)?(X(e),ea({type:"closeDialog"})):e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)?(ec.current=!1,er.current?(er.current.value=null,er.current.click()):ep(Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):ep(e)});return}er.current&&(ea({type:"openDialog"}),q(),er.current.value=null,er.current.click())},[ea,q,X,b,ey,ep,K,l]),ew=(0,r.useCallback)(function(e){ee.current&&ee.current.isEqualNode(e.target)&&(" "===e.key||"Enter"===e.key||32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),ex())},[ee,ex]),ek=(0,r.useCallback)(function(){ea({type:"focus"})},[]),eS=(0,r.useCallback)(function(){ea({type:"blur"})},[]),eM=(0,r.useCallback)(function(){A||(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return -1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/")}()?setTimeout(ex,0):ex())},[A,ex]),eA=function(e){return i?null:e},eE=function(e){return E?null:eA(e)},eC=function(e){return C?null:eA(e)},eO=function(e){O&&e.stopPropagation()},eP=(0,r.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=e.role,r=e.onKeyDown,o=e.onFocus,a=e.onBlur,s=e.onClick,l=e.onDragEnter,c=e.onDragOver,u=e.onDragLeave,h=e.onDrop,d=Y(e,V);return G(G(Z({onKeyDown:eE(_(r,ew)),onFocus:eE(_(o,ek)),onBlur:eE(_(a,eS)),onClick:eA(_(s,eM)),onDragEnter:eC(_(l,em)),onDragOver:eC(_(c,eg)),onDragLeave:eC(_(u,ev)),onDrop:eC(_(h,eb)),role:"string"==typeof n&&""!==n?n:"presentation"},void 0===t?"ref":t,ee),i||E?{}:{tabIndex:0}),d)}},[ee,ew,ek,eS,eM,em,eg,ev,eb,E,C,i]),eT=(0,r.useCallback)(function(e){e.stopPropagation()},[]),eD=(0,r.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
16,t=e.refKey,n=e.onChange,r=e.onClick,i=Y(e,H);return G(G({},Z({accept:U,multiple:l,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:eA(_(n,eb)),onClick:eA(_(r,eT)),tabIndex:-1},void 0===t?"ref":t,er)),i)}},[er,n,l,eb,i]);return G(G({},eo),{},{isFocused:es&&!i,getRootProps:eP,getInputProps:eD,rootRef:ee,inputRef:er,open:eA(ex)})}function et(e,t){switch(t.type){case"focus":return G(G({},e),{},{isFocused:!0});case"blur":return G(G({},e),{},{isFocused:!1});case"openDialog":return G(G({},Q),{},{isFileDialogActive:!0});case"closeDialog":return G(G({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return G(G({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return G(G({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:!1});case"setDragGlobal":return G(G({},e),{},{isDragGlobal:t.isDragGlobal});case"reset":return G({},Q);default:return e}}function en(){}},82436(e,t,n){"use strict";n.d(t,{FH:()=>N,Gb:()=>$,Jt:()=>E,Op:()=>W,as:()=>B,hZ:()=>O,lN:()=>R,mN:()=>ew,xI:()=>F,xW:()=>H});var r=n(50405),i=e=>e instanceof Date,o=e=>null==e,a=e=>!o(e)&&!Array.isArray(e)&&"object"==typeof e&&!i(e),s=e=>a(e)&&e.target?"checkbox"===e.target.type?e.target.checked:e.target.value:e,l=(e,t)=>t.split(".").some((t,n,r)=>!isNaN(Number(t))&&e.has(r.slice(0,n).join("."))),c=e=>{let t=e.constructor&&e.constructor.prototype;return a(t)&&t.hasOwnProperty("isPrototypeOf")},u="u">typeof window&&void 0!==window.HTMLElement&&"u">typeof document;function h(e){if(e instanceof Date)return new Date(e);let t="u">typeof FileList&&e instanceof FileList;if(u&&(e instanceof Blob||t))return e;let n=Array.isArray(e);if(!n&&!(a(e)&&c(e)))return e;let r=n?[]:Object.create(Object.getPrototypeOf(e));for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=h(e[t]));return r}let d="blur",f="trigger",p="onChange",m="onSubmit",g="maxLength",v="minLength",y="pattern",b="required",x="validate",w="form",k="root",S=["__proto__","constructor","prototype"];var M=e=>void 0===e,A=e=>e.split(/[.[\]'"]/g).filter(Boolean),E=(e,t,n)=>{if(!t||!a(e))return n;let r=/^\w*$/.test(t)?[t]:A(t);if(r.some(e=>S.includes(e)))return n;let i=r.reduce((e,t)=>o(e)?void 0:e[t],e);return M(i)||i===e?M(e[t])?n:e[t]:i},C=e=>"function"==typeof e,O=(e,t,n)=>{let r=-1,i=/^\w*$/.test(t)?[t]:A(t),o=i.length,s=o-1;for(;++r<o;){let t=i[r],o=n;if(r!==s){let n=e[t];o=a(n)||Array.isArray(n)?n:isNaN(+i[r+1])?{}:[]}if(S.includes(t))return;e[t]=o,e=e[t]}};let P=r.createContext(null);P.displayName="HookFormControlContext";var T=(e,t,n,r=!0)=>{let i={};for(let o in e)Object.defineProperty(i,o,{get:()=>("all"!==t._proxyFormState[o]&&(t._proxyFormState[o]=!r||"all"),n&&(n[o]=!0),e[o])});return i};let D=u?r.useLayoutEffect:r.useEffect;function R(e){let t=r.useContext(P),{control:n=t,disabled:i,name:o,exact:a}=e||{},[s,l]=r.useState(()=>({...n._formState,defaultValues:n._defaultValues})),c=r.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return D(()=>n._subscribe({name:o,formState:c.current,exact:a,callback:e=>{i||l({...n._formState,...e,defaultValues:n._defaultValues})}}),[o,i,a]),r.useEffect(()=>{c.current.isValid&&n._setValid(!0)},[n]),r.useMemo(()=>T(s,n,c.current,!1),[s,n])}var j=e=>"string"==typeof e,I=(e,t,n,r,i)=>j(e)?(r&&t.watch.add(e),E(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),E(n,e))):(r&&(t.watchAll=!0),n),z=e=>o(e)||"object"!=typeof e;let _=(e,t)=>0===t.length&&!Array.isArray(e)&&!c(e);function L(e,t,n=new WeakMap){if(e===t)return!0;if(z(e)||z(t))return Object.is(e,t);if(i(e)&&i(t))return Object.is(e.getTime(),t.getTime());let r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;if(_(e,r)||_(t,o))return Object.is(e,t);let s=n.get(e);if(s&&s.has(t))return!0;for(let o of(s?s.add(t):n.set(e,new WeakSet([t])),r)){let r=e[o];if(!(o in t))return!1;if("ref"!==o){let e=t[o];if(i(r)&&i(e)||(a(r)||Array.isArray(r))&&(a(e)||Array.isArray(e))?!L(r,e,n):!Object.is(r,e))return!1}}return!0}function N(e){let t=r.useContext(P),{control:n=t,name:i,defaultValue:o,disabled:a,exact:s,compute:l}=e||{},c=r.useRef(o),u=r.useRef(l),h=r.useRef(void 0),d=r.useRef(n),f=r.useRef(i);u.current=l;let[p,m]=r.useState(()=>{let e=n._getWatch(i,c.current);return u.current?u.current(e):e}),g=r.useCallback(e=>{let t=I(i,n._names,e||n._formValues,!1,c.current);return u.current?u.current(t):t},[n._formValues,n._names,i]),v=r.useCallback(e=>{if(!a){let t=I(i,n._names,e||n._formValues,!1,c.current);if(u.current){let e=u.current(t);L(e,h.current)||(m(e),h.current=e)}else m(t)}
16},[n._formValues,n._names,a,i]);D(()=>(d.current===n&&L(f.current,i)||(d.current=n,f.current=i,v()),n._subscribe({name:i,formState:{values:!0},exact:s,callback:e=>{v(e.values)}})),[n,s,i,v]),r.useEffect(()=>n._removeUnmounted());let y=d.current!==n,b=f.current,x=r.useMemo(()=>{if(a)return null;let e=!y&&!L(b,i);return y||e?g():null},[a,y,i,b,g]);return null!==x?x:p}function B(e){let t=r.useContext(P),{name:n,disabled:i,control:o=t,shouldUnregister:a,defaultValue:c,exact:u=!0}=e,f=l(o._names.array,n),p=r.useMemo(()=>E(o._formValues,n,E(o._defaultValues,n,c)),[o,n,c]),m=N({control:o,name:n,defaultValue:p,exact:u}),g=R({control:o,name:n,exact:u}),v=r.useRef(e),y=r.useRef(null),b=r.useRef(o.register(n,{...e.rules,value:m,..."boolean"==typeof e.disabled?{disabled:e.disabled}:{}}));v.current=e;let x=r.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!E(g.errors,n)},isDirty:{enumerable:!0,get:()=>!!E(g.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!E(g.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!E(g.validatingFields,n)},error:{enumerable:!0,get:()=>E(g.errors,n)}}),[g,n]),w=r.useCallback(e=>{let t=s(e);return E(o._fields,n)||(b.current=o.register(n,{...v.current.rules,value:t})),b.current.onChange({target:{value:s(e),name:n},type:"change"})},[n,o]),k=r.useCallback(()=>b.current.onBlur({target:{value:E(o._formValues,n),name:n},type:d}),[n,o._formValues]),S=r.useCallback(e=>{e&&(y.current={focus:()=>C(e.focus)&&e.focus(),select:()=>C(e.select)&&e.select(),setCustomValidity:t=>C(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>C(e.reportValidity)&&e.reportValidity()});let t=E(o._fields,n);t&&t._f&&e&&(t._f.ref=y.current)},[o._fields,n]),A=r.useMemo(()=>({name:n,value:m,..."boolean"==typeof i||g.disabled?{disabled:g.disabled||i}:{},onChange:w,onBlur:k,ref:S}),[n,i,g.disabled,w,k,S,m]);return r.useEffect(()=>{let e=o._options.shouldUnregister||a;o.register(n,{...v.current.rules,..."boolean"==typeof v.current.disabled?{disabled:v.current.disabled}:{}});let t=(e,t)=>{let n=E(o._fields,e);n&&n._f&&(n._f.mount=t)};if(t(n,!0),e){let e=h(E(a?o._defaultValues:o._options.values||o._defaultValues,n,E(o._options.defaultValues,n,v.current.defaultValue)));O(o._defaultValues,n,e),M(E(o._formValues,n))&&O(o._formValues,n,e)}if(f||o.register(n),y.current){let e=E(o._fields,n);e&&e._f&&(e._f.ref=y.current)}return()=>{(f?e&&!o._state.action:e)?o.unregister(n):t(n,!1)}},[n,o,f,a]),r.useEffect(()=>{o._setDisabledField({disabled:i,name:n})},[i,n,o]),r.useMemo(()=>({field:A,formState:g,fieldState:x}),[A,g,x])}let F=e=>e.render(B(e)),V=r.createContext(null);V.displayName="HookFormContext";let H=()=>r.useContext(V),W=({children:e,watch:t,getValues:n,getFieldState:i,setError:o,clearErrors:a,setValue:s,setValues:l,trigger:c,formState:u,resetField:h,reset:d,handleSubmit:f,unregister:p,control:m,register:g,setFocus:v,subscribe:y})=>{let b=r.useMemo(()=>({watch:t,getValues:n,getFieldState:i,setError:o,clearErrors:a,setValue:s,setValues:l,trigger:c,formState:u,resetField:h,reset:d,handleSubmit:f,unregister:p,control:m,register:g,setFocus:v,subscribe:y}),[a,m,u,i,n,f,g,d,h,o,v,s,l,y,c,p,t]);return r.createElement(V.Provider,{value:b},r.createElement(P.Provider,{value:b.control},e))};var $=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},U=e=>Array.isArray(e)?e.filter(Boolean):[],K=e=>Array.isArray(e)?e:[e],q=()=>{let e=[];return{get observers(){return e},next:t=>{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}},G=e=>a(e)&&!Object.keys(e).length,Z=e=>{if(!u)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Y=e=>Z(e)&&e.isConnected;function X(e,t){if(j(t)&&Object.prototype.hasOwnProperty.call(e,t))return delete e[t],e;let n=Array.isArray(t)?t:/^\w*$/.test(t)?[t]:A(t),r=1===n.length?e:function(e,t){let n=t.slice(0,-1).length,r=0;for(;r<n;){if(o(e)){e=void 0;break}e=e[t[r]],r++}return e}(e,n),i=n.length-1,s=n[i];return r&&delete r[s],0!==i&&(a(r)&&G(r)||Array.isArray(r)&&function(e){for(let t in e)if(e.hasOwnProperty(t)&&!M(e[t]))return!1;return!0}(r))&&X(e,n.slice(0,-1)),e}function J(e){return Array.isArray(e)||a(e)&&!(e=>{for(let t in e)if(C(e[t]))return!0;return!1})(e)}function Q(e,t={}){for(let n in e){let r=e[n];J(r)?(t[n]=Array.isArray(r)?[]:{},Q(r,t[n])):M(r)||(t[n]=!0)}return t}function ee(e,t,n){for(let r in n||(n=Q(t)),e){let i=e[r];if(J(i))M(t)||z(n[r])?n[r]=Q(i,Array.isArray(i)?[]:{}):ee(i,o(t)?{}:t[r],n[r]);else{let e=t[r];n[r]=!L(i,e)}}return function e(t){if(!1!==t){if(!0===t)return!0;
16if(Array.isArray(t)){let n=t.map(t=>e(t));return n.some(e=>void 0!==e)?n:void 0}if(a(t)){let n={};for(let r in t){let i=e(t[r]);M(i)||(n[r]=i)}return Object.keys(n).length?n:void 0}}}(n)||{}}let et={value:!1,isValid:!1},en={value:!0,isValid:!0};var er=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!M(e[0].attributes.value)?M(e[0].value)||""===e[0].value?en:{value:e[0].value,isValid:!0}:en:et}return et},ei=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>M(e)?e:t?""===e?NaN:e?+e:e:n&&j(e)?new Date(e):r?r(e):e;let eo={isValid:!1,value:null};var ea=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,eo):eo;function es(e){let t=e.ref;return"file"===t.type?t.files:"radio"===t.type?ea(e.refs).value:"select-multiple"===t.type?[...t.selectedOptions].map(({value:e})=>e):"checkbox"===t.type?er(e.refs).value:ei(M(t.value)?e.ref.value:t.value,e)}var el=e=>M(e)?e:e instanceof RegExp?e.source:a(e)?e.value instanceof RegExp?e.value.source:e.value:e,ec=e=>({isOnSubmit:!e||e===m,isOnBlur:"onBlur"===e,isOnChange:e===p,isOnAll:"all"===e,isOnTouch:"onTouched"===e});let eu="AsyncFunction";var eh=e=>!!e&&!!e.validate&&!!(C(e.validate)&&e.validate.constructor.name===eu||a(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===eu)),ed=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(`${t}.`)));let ef=(e,t,n,r)=>{for(let i of n||Object.keys(e)){let n=E(e,i);if(n){let{_f:e,...o}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!r)return!0;else if(e.ref&&t(e.ref,e.name)&&!r)return!0;else if(ef(o,t))break}else if(a(o)&&ef(o,t))break}}};function ep(e,t,n){let r=E(e,n);if(r||/^\w*$/.test(n))return{error:r,name:n};let i=n.split(".");for(;i.length;){let r=i.join("."),o=E(t,r),a=E(e,r);if(o&&!Array.isArray(o)&&n!==r)break;if(a&&a.type)return{name:r,error:a};if(a&&a.root&&a.root.type)return{name:`${r}.root`,error:a.root};i.pop()}return{name:n}}var em=(e,t,n)=>{let r=E(e,n),i=Array.isArray(r)?r:[];return O(i,k,t[n]),O(e,n,i),e};function eg(e,t,n="validate"){if(j(e)||Array.isArray(e)&&e.every(j)||"boolean"==typeof e&&!e)return{type:n,message:j(e)?e:"",ref:t}}var ev=e=>!a(e)||e instanceof RegExp?{value:e,message:""}:e,ey=async(e,t,n,r,i,s)=>{let{ref:l,refs:c,required:u,maxLength:h,minLength:d,min:f,max:p,pattern:m,validate:w,name:k,valueAsNumber:S,mount:A}=e._f,O=E(n,k);if(!A||t.has(k))return{};let P=c?c[0]:l,T=e=>{if(i&&P.reportValidity){let t="boolean"==typeof e?"":e||"";c?c.forEach(e=>e.setCustomValidity(t)):P.setCustomValidity(t),P.reportValidity()}},D={},R="radio"===l.type,I="checkbox"===l.type,z=(S||"file"===l.type)&&M(l.value)&&M(O)||Z(l)&&""===l.value||""===O||Array.isArray(O)&&!O.length,_=$.bind(null,k,r,D),L=(e,t,n,r=g,i=v)=>{let o=e?t:n;D[k]={type:e?r:i,message:o,ref:l,..._(e?r:i,o)}};if(s?!Array.isArray(O)||!O.length:u&&(!(R||I)&&(z||o(O))||"boolean"==typeof O&&!O||I&&!er(c).isValid||R&&!ea(c).isValid)){let{value:e,message:t}=j(u)?{value:!!u,message:u}:ev(u);if(e&&(D[k]={type:b,message:t,ref:P,..._(b,t)},!r))return T(t),D}if(!z&&(!o(f)||!o(p))){let e,t,n=ev(p),i=ev(f);if(o(O)||isNaN(O)){let r=l.valueAsDate||new Date(O),o=e=>new Date(new Date().toDateString()+" "+e),a="time"==l.type,s="week"==l.type;j(n.value)&&O&&(e=a?o(O)>o(n.value):s?O>n.value:r>new Date(n.value)),j(i.value)&&O&&(t=a?o(O)<o(i.value):s?O<i.value:r<new Date(i.value))}else{let r=l.valueAsNumber||(O?+O:O);o(n.value)||(e=r>n.value),o(i.value)||(t=r<i.value)}if((e||t)&&(L(!!e,n.message,i.message,"max","min"),!r))return T(D[k].message),D}if((h||d)&&!z&&(j(O)||s&&Array.isArray(O))){let e=ev(h),t=ev(d),n=!o(e.value)&&O.length>+e.value,i=!o(t.value)&&O.length<+t.value;if((n||i)&&(L(n,e.message,t.message),!r))return T(D[k].message),D}if(m&&!z&&j(O)){let{value:e,message:t}=ev(m);if(e instanceof RegExp&&!O.match(e)&&(D[k]={type:y,message:t,ref:l,..._(y,t)},!r))return T(t),D}if(w){if(C(w)){let e=eg(await w(O,n),P);if(e&&(D[k]={...e,..._(x,e.message)},!r))return T(e.message),D}else if(a(w)){let e={};for(let t in w){if(!G(e)&&!r)break;let i=eg(await w[t](O,n),P,t);i&&(e={...i,..._(t,i.message)},T(i.message),r&&(D[k]=e))}if(!G(e)&&(D[k]={ref:P,...e},!r))return D}}return T(!0),D};let eb={mode:m,reValidateMode:p,shouldFocusError:!0},ex={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function ew(e={}){let t=r.useRef(void 0),n=r.useRef(void 0),c=r.useRef(e.formControl),[p,m]=r.useState(()=>({...h(ex),isLoading:C(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:C(e.defaultValues)?void 0:e.defaultValues}));if(!t.current||e.formControl&&c.current!==e.formControl)if(c.current=e.formControl,e.formControl)t.current={...e.formControl,formState:p},e.defaultValues&&!C(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{let{formControl:n,...r}=function(e={}){let t,n={...eb,...e},r={...h(ex),isLoading:C(n.defaultValues),errors:n.errors||{},disabled:n.disabled||!1},c={},p=(a(n.defaultValues)||a(n.values))&&h(n.defaultValues||n.values)||{},m=n.shouldUnregister?{}:h(p),g={action:!1,mount:!1,watch:!1,keepIsValid:!1},v={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},y=0,b={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},S={...b},P={...S},T={array:q(),state:q()},D="all"===n.criteriaMode,R=async e=>{if(!g.keepIsValid&&!n.disabled&&(S.isValid||P.isValid||e)){let e;n.resolver?(e=G((await F()).errors),z()):e=await W({fields:c,onlyCheckValid:!0,eventType:"valid"}),e!==r.isValid&&T.state.next({isValid:e})}},z=(e,t)=>{!n.disabled&&(S.isValidating||S.validatingFields||P.isValidating||P.validatingFields)&&((e||Array.from(v.mount)).forEac
16h(e=>{e&&(t?O(r.validatingFields,e,t):X(r.validatingFields,e))}),T.state.next({validatingFields:r.validatingFields,isValidating:!G(r.validatingFields)}))},_=()=>{r.dirtyFields=ee(p,m)},N=(t,n,i,a)=>{let s=E(c,t);if(s){if((e=>{let t=/^\w*$/.test(e)?[e]:A(e),n=m,r=p;for(let e=0;e<t.length-1;e++){let i=t[e];if(n=o(n)?n:n[i],r=o(r)?r:r[i],null===n&&null!==r)return!0}return!1})(t))return;let l=M(E(m,t)),c=E(m,t,M(i)?E(p,t):i);M(c)||a&&a.defaultChecked||n?O(m,t,n?c:es(s._f)):Q(t,c),g.mount&&!g.action&&(R(),l&&r.isDirty&&(S.isDirty||P.isDirty)&&($()||(r.isDirty=!1,T.state.next({...r}))),e.shouldUnregister&&l&&!M(E(m,t))&&ed(t,v)&&(g.watch=!0))}},B=(e,t,i,o,a)=>{let s=!1,l=!1,c={name:e};if(!n.disabled){if(!i||o){(S.isDirty||P.isDirty)&&(l=r.isDirty,r.isDirty=c.isDirty=$(),s=l!==c.isDirty);let n=L(E(p,e),t);l=!!E(r.dirtyFields,e),n!==r.isDirty?r.dirtyFields=ee(p,m):n?X(r.dirtyFields,e):O(r.dirtyFields,e,!0),c.dirtyFields=r.dirtyFields,s=s||(S.dirtyFields||P.dirtyFields)&&!n!==l}if(i){let t=E(r.touchedFields,e);t||(O(r.touchedFields,e,i),c.touchedFields=r.touchedFields,s=s||(S.touchedFields||P.touchedFields)&&t!==i)}s&&a&&T.state.next(c)}return s?c:{}},F=async e=>(z(e,!0),await n.resolver(m,n.context,((e,t,n,r)=>{let i={};for(let n of e){let e=E(t,n);e&&O(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}})(e||v.mount,c,n.criteriaMode,n.shouldUseNativeValidation))),V=async e=>{let{errors:t}=await F(e);if(z(e),e){for(let n of e){let e=E(t,n);e?v.array.has(n)&&a(e)&&!Object.keys(e).some(e=>!Number.isNaN(Number(e)))?em(r.errors,{[n]:e},n):O(r.errors,n,e):X(r.errors,n)}r.errors={...r.errors}}else r.errors=t;return t},H=async({name:t,eventType:n})=>{if(e.validate){let i=await e.validate({formValues:m,formState:r,name:t,eventType:n});if(a(i))for(let e in i){let t=i[e];t&&ek(`${w}.${e}`,{message:j(t.message)?t.message:"",type:t.type||x})}else j(i)||!i?ek(w,{message:i||"",type:x}):ew(w);return i}return!0},W=async({fields:t,onlyCheckValid:i,name:o,eventType:a,context:s={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(s.runRootValidation=!0,!await H({name:o,eventType:a}))&&(s.valid=!1,i))return s.valid;for(let o in t){let l=t[o];if(l){let{_f:t,...c}=l;if(t){let o=v.array.has(t.name),a=l._f&&eh(l._f),c=S.validatingFields||S.isValidating||P.validatingFields||P.isValidating;a&&c&&z([t.name],!0);let u=await ey(l,v.disabled,m,D,n.shouldUseNativeValidation&&!i,o);if(a&&c&&z([t.name]),u[t.name]&&(s.valid=!1,i)||(i||(E(u,t.name)?o?em(r.errors,u,t.name):O(r.errors,t.name,u[t.name]):X(r.errors,t.name)),e.shouldUseNativeValidation&&u[t.name]))break}G(c)||await W({context:s,onlyCheckValid:i,fields:c,name:o,eventType:a})}}return s.valid},$=(e,t)=>!n.disabled&&(e&&t&&O(m,e,t),!L(eg(),p)),J=(e,t,n)=>I(e,v,{...g.mount?m:M(t)?p:j(e)?{[e]:t}:t},n,t),Q=(e,t,n={},r=!1)=>{let i=E(c,e),a=t;if(i){let n=i._f;n&&(n.disabled||O(m,e,ei(t,n)),a=Z(n.ref)&&o(t)?"":t,"select-multiple"===n.ref.type?[...n.ref.options].forEach(e=>e.selected=a.includes(e.value)):n.refs?"checkbox"===n.ref.type?n.refs.forEach(e=>{e.defaultChecked&&e.disabled||(Array.isArray(a)?e.checked=!!a.find(t=>t===e.value):e.checked=a===e.value||!!a)}):n.refs.forEach(e=>e.checked=e.value===a):"file"===n.ref.type?n.ref.value="":(n.ref.value=a,n.ref.type||T.state.next({name:e,values:r?m:h(m)})))}(n.shouldDirty||n.shouldTouch)&&B(e,a,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&eu(e)},et=(e,t,n,r=!1)=>{for(let o in t){if(!t.hasOwnProperty(o))return;let s=t[o],l=e+"."+o,u=E(c,l);(v.array.has(e)||a(s)||u&&!u._f)&&!i(s)?et(l,s,n,r):Q(l,s,n,r)}},en=(e,t,n,i)=>{let a=E(c,e),s=v.array.has(e),l=i?t:h(t),u=L(E(m,e),l);if(u||O(m,e,l),s)T.array.next({name:e,values:i?m:h(m)}),(S.isDirty||S.dirtyFields||P.isDirty||P.dirtyFields)&&n.shouldDirty&&(_(),T.state.next({name:e,dirtyFields:r.dirtyFields,isDirty:$(e,l)}));else{let t=Array.isArray(l)&&!l.length||G(l);!a||a._f||o(l)||t?Q(e,l,n,i):et(e,l,n,i)}if(!u){let t=ed(e,v),n=i?m:h(m);T.state.next({...t&&r,name:g.mount||t?e:void 0,values:n})}},er=(e,t,n={})=>en(e,t,n,!1),eo=async o=>{g.mount=!0;let a=o.target,l=a.name,u=!0,f=E(c,l),p=e=>{u=Number.isNaN(e)||i(e)&&isNaN(e.getTime())||L(e,E(m,l,e))},b=ec(n.mode),x=ec(n.reValidateMode);if(f){var w,k,M,A,C;let i,g,N,V=a.type?es(f._f):s(o),$=o.type===d||"focusout"===o.type,U=!((N=f._f).mount&&(N.required||N.min||N.max||N.maxLength||N.minLength||N.pattern||N.validate))&&!e.validate&&!n.resolver&&!E(r.errors,l)&&!f._f.deps||(w=$,k=E(r.touchedFields,l),M=r.isSubmitted,A=x,!(C=b).isOnAll&&(!M&&C.isOnTouch?!(k||w):(M?A.isOnBlur:C.isOnBlur)?!w:(M?!A.isOnChange:!C.isOnChange)||w)),K=ed(l,v,$);O(m,l,V),$?a&&a.readOnly||(f._f.onBlur&&f._f.onBlur(o),t&&t(0)):f._f.onChange&&f._f.onChange(o);let q=B(l,V,$),Z=!G(q)||K;if($||T.state.next({name:l,type:o.type,values:h(m)}),U)return(S.isValid||P.isValid)&&("onBlur"===n.mode?$&&R():$||R()),Z&&T.state.next({name:l,...K?{}:q});if(!n.resolver&&e.validate&&await H({name:l,eventType:o.type}),!$&&K&&T.state.next({...r}),n.resolver){let{errors:e}=await F([l]);if(z([l]),p(V),!u){G(q)||T.state.next(q);return}let t=ep(r.errors,c,l),n=ep(e,c,t.name||l);i=n.error,l=n.name,g=G(e)}else z([l],!0),i=(await ey(f,v.disabled,m,D,n.shouldUseNativeValidation))[l],z([l]),p(V),u&&(i?g=!1:(S.isValid||P.isValid)&&(g=await W({fields:c,onlyCheckValid:!0,name:l,eventType:o.type})));if(u){f._f.deps&&(!Array.isArray(f._f.deps)||f._f.deps.length>0)&&eu(f._f.deps);var j=l,I=g,_=i;let e=E(r.errors,j),o=(S.isValid||P.isValid)&&"boolean"==typeof I&&r.isValid!==I;if(n.delayError&&_){let e;e=()=>{O(r.errors,j,_),r.errors={...r.errors},T.state.next({errors:r.errors})},(t=t=>{clearTimeout(y),y=setTimeout(e,t)})(n.delayError)}else clearTimeout(y),t=null,_?O(r.errors,j,_):X(r.errors,j),r.errors={...r.errors};if((_?!L(e,_):e)||!G(q)||o){let e={...q,...o&&"boolean"==typeof I?{isValid:I}:{},errors:r.errors,name:j};r={...r,...e},T.state.next(e)}}}},ea=(e,t)=>{if(E(r.errors,t)&&e.focus)return e.focus(),1},eu=async(e,t={})=>{let i,o,a=K(e);if(n.resolver){let t=await V(M(e)?e:a);i=G(t),o=e?!a.some(e=>E(t,e)):i}else e?((o=(await Promise.all(a.map(async e=>{let t=E(c,e);return await W({fields:t&&t._f?{[e]:t}:t,eventType:f})}))).every(Boolean))||r.isValid)&&R():o=i=await W({fields:c,name:e,eventType:f});
16return T.state.next({...!j(e)||(S.isValid||P.isValid)&&i!==r.isValid?{}:{name:e},...n.resolver||!e?{isValid:i}:{},errors:r.errors}),t.shouldFocus&&!o&&ef(c,ea,e?a:v.mount),o},eg=(e,t)=>{let n={...g.mount?m:p};return t&&(n=function e(t,n){let r={};for(let i in t)if(t.hasOwnProperty(i)){let o=t[i],s=n[i];if(o&&a(o)&&s){let t=e(o,s);a(t)&&(r[i]=t)}else t[i]&&(r[i]=s)}return r}(t.dirtyFields?r.dirtyFields:r.touchedFields,n)),M(e)?n:j(e)?E(n,e):e.map(e=>E(n,e))},ev=(e,t)=>({invalid:!!E((t||r).errors,e),isDirty:!!E((t||r).dirtyFields,e),error:E((t||r).errors,e),isValidating:!!E(r.validatingFields,e),isTouched:!!E((t||r).touchedFields,e)}),ew=e=>{let t=e?K(e):void 0;null==t||t.forEach(e=>X(r.errors,e)),t?t.forEach(e=>{T.state.next({name:e,errors:r.errors})}):T.state.next({errors:{}})},ek=(e,t,n)=>{let i=(E(c,e,{_f:{}})._f||{}).ref,{ref:o,message:a,type:s,...l}=E(r.errors,e)||{};O(r.errors,e,{...l,...t,ref:i}),T.state.next({name:e,errors:r.errors,isValid:!1}),n&&n.shouldFocus&&i&&i.focus&&i.focus()},eS=e=>T.state.subscribe({next:t=>{let n,i,o;if(n=e.name,i=t.name,o=e.exact,(!n||!i||n===i||K(n).some(e=>e&&(o?e===i:e.startsWith(i)||i.startsWith(e))))&&((e,t,n,r)=>{n(e);let{name:i,...o}=e;return G(o)||r&&Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(e=>t[e]===(!r||"all"))})(t,e.formState||S,eD,e.reRenderRoot)){let n={...m};e.callback({values:n,...r,...t,defaultValues:p})}}}).unsubscribe,eM=(e,t={})=>{for(let i of e?K(e):v.mount)v.mount.delete(i),v.array.delete(i),t.keepValue||(X(c,i),X(m,i)),t.keepError||X(r.errors,i),t.keepDirty||X(r.dirtyFields,i),t.keepTouched||X(r.touchedFields,i),t.keepIsValidating||X(r.validatingFields,i),n.shouldUnregister||t.keepDefaultValue||X(p,i);T.state.next({values:h(m)}),T.state.next({...r,...!t.keepDirty?{}:{isDirty:$()}}),t.keepIsValid||R()},eA=({disabled:e,name:t})=>{if("boolean"==typeof e&&g.mount||e||v.disabled.has(t)){let n=v.disabled.has(t);e?v.disabled.add(t):v.disabled.delete(t),!!e!==n&&g.mount&&!g.action&&R()}},eE=(e,t={})=>{let r=E(c,e),i="boolean"==typeof t.disabled||"boolean"==typeof n.disabled,o=!v.registerName.has(e)&&r&&r._f&&!r._f.mount;return(O(c,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),v.mount.add(e),r&&!o)?eA({disabled:"boolean"==typeof t.disabled?t.disabled:n.disabled,name:e}):N(e,!0,t.value),{...i?{disabled:t.disabled||n.disabled}:{},...n.progressive?{required:!!t.required,min:el(t.min),max:el(t.max),minLength:el(t.minLength),maxLength:el(t.maxLength),pattern:el(t.pattern)}:{},name:e,onChange:eo,onBlur:eo,ref:i=>{if(i){let n;v.registerName.add(e),eE(e,t),v.registerName.delete(e),r=E(c,e);let o=M(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,a="radio"===(n=o).type||"checkbox"===n.type,s=r._f.refs||[];(a?s.find(e=>e===o):o===r._f.ref)||(O(c,e,{_f:{...r._f,...a?{refs:[...s.filter(Y),o,...Array.isArray(E(p,e))?[{}]:[]],ref:{type:o.type,name:e}}:{ref:o}}}),N(e,!1,void 0,o))}else(r=E(c,e,{}))._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&!(l(v.array,e)&&g.action)&&v.unMount.add(e)}}},eC=()=>n.shouldFocusError&&!n.shouldUseNativeValidation&&ef(c,ea,v.mount),eO=(e,t)=>async i=>{let o;i&&(i.preventDefault&&i.preventDefault(),i.persist&&i.persist());let a=h(m);if(T.state.next({isSubmitting:!0}),n.resolver){let{errors:e,values:t}=await F();z(),r.errors=e,a=h(t)}else await W({fields:c,eventType:"submit"});if(v.disabled.size)for(let e of v.disabled)X(a,e);if(X(r.errors,k),G(r.errors)){T.state.next({errors:{}});try{await e(a,i)}catch(e){o=e}}else t&&await t({...r.errors},i),eC(),setTimeout(eC);if(T.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:G(r.errors)&&!o,submitCount:r.submitCount+1,errors:r.errors}),o)throw o},eP=(e,t={})=>{let i=e?h(e):p,o=h(i),a=G(e);if(t.keepDefaultValues||(p=i),!t.keepValues){if(t.keepDirtyValues)for(let e of Array.from(new Set([...v.mount,...Object.keys(ee(p,m))]))){let t=E(r.dirtyFields,e),n=E(m,e),i=E(o,e);t&&!M(n)?O(o,e,n):t||M(i)||er(e,i)}else{if(u&&M(e))for(let e of v.mount){let t=E(c,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(Z(e)){let t=e.closest("form");if(t){t.reset();break}}}}if(t.keepFieldsRef)for(let e of v.mount)er(e,E(o,e));else c={}}if(n.shouldUnregister){if(m=t.keepDefaultValues?h(p):{},t.keepFieldsRef)for(let e of v.mount)O(m,e,E(o,e))}else m=h(o);T.array.next({values:{...o}}),T.state.next({values:{...o}})}v={mount:t.keepDirtyValues?v.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},g.mount=!S.isValid||!!t.keepIsValid||!!t.keepDirtyValues||!n.shouldUnregister&&!G(o),g.watch=!!n.shouldUnregister,g.keepIsValid=!!t.keepIsValid,g.action=!1,t.keepErrors||(r.errors={}),T.state.next({submitCount:t.keepSubmitCount?r.submitCount:0,isDirty:!a&&(t.keepDirty?r.isDirty:t.keepValues?$():!!(t.keepDefaultValues&&!L(e,p))),isSubmitted:!!t.keepIsSubmitted&&r.isSubmitted,dirtyFields:a?{}:t.keepDirtyValues?t.keepDefaultValues&&m?ee(p,m):r.dirtyFields:t.keepDefaultValues&&e?ee(p,e):t.keepDirty?r.dirtyFields:{},touchedFields:t.keepTouched?r.touchedFields:{},errors:t.keepErrors?r.errors:{},isSubmitSuccessful:!!t.keepIsSubmitSuccessful&&r.isSubmitSuccessful,isSubmitting:!1,defaultValues:p})},eT=(e,t)=>
16eP(C(e)?e(m):e,{...n.resetOptions,...t}),eD=e=>{r={...r,...e}},eR={control:{register:eE,unregister:eM,getFieldState:ev,handleSubmit:eO,setError:ek,_subscribe:eS,_runSchema:F,_updateIsValidating:z,_focusError:eC,_getWatch:J,_getDirty:$,_setValid:R,_setFieldArray:(e,t=[],i,o,a=!0,s=!0)=>{if(o&&i&&!n.disabled){if(g.action=!0,s&&Array.isArray(E(c,e))){let t=i(E(c,e),o.argA,o.argB);a&&O(c,e,t)}if(s&&Array.isArray(E(r.errors,e))){let t,n=i(E(r.errors,e),o.argA,o.argB);a&&O(r.errors,e,n),U(E(t=r.errors,e)).length||X(t,e)}if((S.touchedFields||P.touchedFields)&&s&&Array.isArray(E(r.touchedFields,e))){let t=i(E(r.touchedFields,e),o.argA,o.argB);a&&O(r.touchedFields,e,t)}(S.dirtyFields||P.dirtyFields)&&_(),T.state.next({name:e,isDirty:$(e,t),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else O(m,e,t)},_setDisabledField:eA,_setErrors:e=>{r.errors=e,T.state.next({errors:r.errors,isValid:!1})},_getFieldArray:e=>U(E(g.mount?m:p,e,n.shouldUnregister?E(p,e,[]):[])),_reset:eP,_resetDefaultValues:()=>C(n.defaultValues)&&n.defaultValues().then(e=>{eT(e,n.resetOptions),T.state.next({isLoading:!1})}),_removeUnmounted:()=>{for(let e of v.unMount){let t=E(c,e);t&&(t._f.refs?t._f.refs.every(e=>!Y(e)):!Y(t._f.ref))&&eM(e)}v.unMount=new Set},_disableForm:e=>{"boolean"==typeof e&&(T.state.next({disabled:e}),ef(c,(t,n)=>{let r=E(c,n);r&&(t.disabled=r._f.disabled||e,Array.isArray(r._f.refs)&&r._f.refs.forEach(t=>{t.disabled=r._f.disabled||e}))},0,!1))},_subjects:T,_proxyFormState:S,get _fields(){return c},get _formValues(){return m},get _state(){return g},set _state(value){g=value},get _defaultValues(){return p},get _names(){return v},set _names(value){v=value},get _formState(){return r},get _options(){return n},set _options(value){n={...n,...value}}},subscribe:e=>(g.mount=!0,P={...P,...e.formState},eS({...e,formState:{...b,...e.formState}})),trigger:eu,register:eE,handleSubmit:eO,watch:(e,t)=>C(e)?T.state.subscribe({next:n=>"values"in n&&e(n.values||J(void 0,t),n)}):J(e,t,!0),setValue:er,setValues:(e,t={})=>{let n=C(e)?e(m):e;if(!L(m,n)){for(let e of(m={...m,...n},v.mount))en(e,E(n,e),t,!0);T.state.next({...r,name:void 0,type:void 0,values:m}),t.shouldValidate&&R()}},getValues:eg,reset:eT,resetField:(e,t={})=>{E(c,e)&&(M(t.defaultValue)?er(e,h(E(p,e))):(er(e,t.defaultValue),O(p,e,h(t.defaultValue))),t.keepTouched||X(r.touchedFields,e),t.keepDirty||(X(r.dirtyFields,e),r.isDirty=t.defaultValue?$(e,h(E(p,e))):$()),!t.keepError&&(X(r.errors,e),S.isValid&&R()),T.state.next({...r}))},resetDefaultValues:(e,t={})=>{if(p=h(e),!t.keepDirty){let e=ee(p,m);r.dirtyFields=e,r.isDirty=!G(e)}t.keepIsValid||R(),T.state.next({...r,defaultValues:p})},clearErrors:ew,unregister:eM,setError:ek,setFocus:(e,t={})=>{let n=E(c,e),r=n&&n._f;if(r){let e=r.refs?r.refs[0]:r.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&C(e.select)&&e.select()})}},getFieldState:ev};return{...eR,formControl:eR}}(e);t.current={...r,formState:p}}let g=t.current.control;return g._options=e,D(()=>{let e=g._subscribe({formState:g._proxyFormState,callback:()=>m({...g._formState,defaultValues:g._defaultValues}),reRenderRoot:!0});return m(e=>({...e,isReady:!0})),g._formState.isReady=!0,e},[g]),r.useEffect(()=>g._disableForm(e.disabled),[g,e.disabled]),r.useEffect(()=>{e.mode&&(g._options.mode=e.mode),e.reValidateMode&&(g._options.reValidateMode=e.reValidateMode)},[g,e.mode,e.reValidateMode]),r.useEffect(()=>{e.errors&&(g._setErrors(e.errors),g._focusError())},[g,e.errors]),r.useEffect(()=>{e.shouldUnregister&&g._subjects.state.next({values:g._getWatch()})},[g,e.shouldUnregister]),r.useEffect(()=>{if(g._proxyFormState.isDirty){let e=g._getDirty();e!==p.isDirty&&g._subjects.state.next({isDirty:e})}},[g,p.isDirty]),r.useEffect(()=>{var t;e.values&&!L(e.values,n.current)?(g._reset(e.values,{keepFieldsRef:!0,...g._options.resetOptions}),(null==(t=g._options.resetOptions)?void 0:t.keepIsValid)||g._setValid(),n.current=e.values,m(e=>({...e}))):g._resetDefaultValues()},[g,e.values]),r.useEffect(()=>{g._state.mount||(g._setValid(),g._state.mount=!0),g._state.watch&&(g._state.watch=!1,g._subjects.state.next({...g._formState})),g._removeUnmounted()}),t.current.formState=r.useMemo(()=>T(p,g),[g,p]),t.current}},85989(e,t,n){"use strict";n.d(t,{ExT:()=>i,fzZ:()=>o});var r=n(65979);function i(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"},child:[]},{tag:"path",attr:{d:"M464 688a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm24
16-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"},child:[]}]})(e)}function o(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 1024 1024",fill:"currentColor",fillRule:"evenodd"},child:[{tag:"path",attr:{d:"M340.992 0 316 3.008S203.872 15.264 121.984 81.024h-.96l-1.024.96c-18.368 16.896-26.368 37.664-39.008 68.032a982.08 982.08 0 0 0-37.984 112C19.264 347.872 0 451.872 0 547.008v8l4 8c29.632 52 82.24 85.12 131.008 108 48.736 22.88 90.88 35.008 120 36l19.008.992L284 691.008l35.008-62.016c37.12 8.384 79.872 14.016 128.992 14.016 49.12 0 91.872-5.632 128.992-14.016L612 691.008 622.016 708l18.976-.992c29.12-.992 71.264-13.12 120-36 48.768-22.88 101.376-56 131.008-108l4-8v-8c0-95.136-19.264-199.136-43.008-284.992a982.08 982.08 0 0 0-37.984-112c-12.64-30.4-20.64-51.136-39.008-68l-.992-1.024h-1.024C692.16 15.264 580 3.008 580 3.008L555.008 0l-9.024 23.008s-9.248 23.36-14.976 50.016A643.04 643.04 0 0 0 448 67.008c-17.12 0-46.72 1.12-83.008 6.016-5.76-26.656-15.008-50.016-15.008-50.016zm-44 73.024c1.376 4.48 2.752 8.352 4 12-41.376 10.24-85.504 25.856-125.984 50.976l33.984 54.016C292 138.496 411.232 131.008 448 131.008c36.736 0 156 7.488 239.008 59.008L720.992 136c-40.48-25.12-84.608-40.736-125.984-51.008 1.248-3.616 2.624-7.488 4-12 29.856 6.016 86.88 19.776 133.984 57.024-.256.128 12 18.624 23.008 44.992 11.264 27.136 23.744 63.264 35.008 104 21.632 78.112 38.624 173.248 40 256.992-20.16 30.752-57.504 58.496-97.024 77.024A311.808 311.808 0 0 1 656 637.984l-16-26.976c9.504-3.52 18.88-7.36 27.008-11.008 49.248-21.632 76-44.992 76-44.992l-42.016-48s-17.984 16.512-60 35.008C599.04 560.512 534.88 579.008 448 579.008s-151.008-18.496-192.992-36.992c-42.016-18.496-60-35.008-60-35.008l-42.016 48s26.752 23.36 76 44.992A424.473 424.473 0 0 0 256 611.008l-16 27.008a311.808 311.808 0 0 1-78.016-25.024c-39.488-18.496-76.864-46.24-96.96-76.992 1.344-83.744 18.336-178.88 40-256.992a917.216 917.216 0 0 1 34.976-104c11.008-26.368 23.264-44.864 23.008-44.992 47.104-37.248 104.128-51.008 133.984-56.992M336 291.008c-24.736 0-46.624 14.112-60 32-13.376 17.888-20 39.872-20 64s6.624 46.112 20 64c13.376 17.888 35.264 32 60 32 24.736 0 46.624-14.112 60-32 13.376-17.888 20-39.872 20-64s-6.624-46.112-20-64c-13.376-17.888-35.264-32-60-32m224 0c-24.736 0-46.624 14.112-60 32-13.376 17.888-20 39.872-20 64s6.624 46.112 20 64c13.376 17.888 35.264 32 60 32 24.736 0 46.624-14.112 60-32 13.376-17.888 20-39.872 20-64s-6.624-46.112-20-64c-13.376-17.888-35.264-32-60-32m-224 64c1.76 0 4 .64 8 6.016 4 5.344 8 14.72 8 25.984 0 11.264-4 20.64-8 26.016-4 5.344-6.24 5.984-8 5.984-1.76 0-4-.64-8-6.016a44.832 44.832 0 0 1-8-25.984c0-11.264 4-20.64 8-26.016 4-5.344 6.24-5.984 8-5.984m224 0c1.76 0 4 .64 8 6.016 4 5.344 8 14.72 8 25.984 0 11.264-4 20.64-8 26.016-4 5.344-6.24 5.984-8 5.984-1.76 0-4-.64-8-6.016a44.832 44.832 0 0 1-8-25.984c0-11.264 4-20.64 8-26.016 4-5.344 6.24-5.984 8-5.984",transform:"translate(64 158)"},child:[]}]})(e)}},28368(e,t,n){"use strict";n.d(t,{$_m:()=>Q,Ah9:()=>ey,Azn:()=>T,B_A:()=>eR,By1:()=>es,Ca6:()=>I,DNZ:()=>ez,DT2:()=>ef,E2M:()=>K,ES$:()=>j,EYW:()=>eO,FOv:()=>d,Gsv:()=>i,I2B:()=>g,IS1:()=>W,Jg2:()=>a,Jty:()=>Y,Jw7:()=>eu,K0Y:()=>eE,LUJ:()=>O,M8H:()=>eh,MFA:()=>y,MG2:()=>ed,MXC:()=>er,Nyy:()=>S,OLK:()=>eF,P$d:()=>J,PLI:()=>eN,Ruw:()=>P,U2S:()=>L,UIR:()=>_,UWw:()=>f,V0M:()=>eA,Wwx:()=>ek,Wyp:()=>w,X6x:()=>X,XWt:()=>eT,XfR:()=>q,Xpf:()=>eS,XzR:()=>U,Z_P:()=>eL,Zxy:()=>R,_5G:()=>F,_6i:()=>v,_U5:()=>eV,aJB:()=>ej,bZV:()=>m,bh6:()=>et,e7V:()=>M,eZR:()=>$,ekd:()=>E,eqh:()=>H,fSy:()=>B,fiy:()=>ea,gNt:()=>el,grf:()=>en,hQe:()=>eC,hTi:()=>eo,id1:()=>u,iyI:()=>C,jlq:()=>s,koG:()=>h,m4U:()=>p,mlL:()=>eP,mmP:()=>eI,nMM:()=>eM,nmg:()=>A,nwe:()=>eD,o9J:()=>G,oNA:()=>z,oVj:()=>eb,pFm:()=>V,qGT:()=>e_,rH8:()=>b,sED:()=>c,stI:()=>x,sxT:()=>eg,tAF:()=>l,u6n:()=>ev,uoR:()=>ei,uwC:()=>ec,voe:()=>ex,w4m:()=>ep,wew:()=>em,wfp:()=>ee,x8l:()=>o,xko:()=>ew,yWU:()=>eB,z$h:()=>N,z2t:()=>k,zOm:()=>D,zaF:()=>Z});var r=n(65979);function i(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m16.192 6.344-4.243 4.242-4.242-4.242-1.414 1.414L10.535 12l-4.242 4.242 1.414 1.414 4.242-4.242 4.243 4.242 1.414-1.414L13.364 12l4.242-4.242z"},child:[]}]})(e)}function o(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M5.122 21c.378.378.88.586 1.414.586S7.572 21.378 7.95 21l4.336-4.336a7.495 7.495 0 0 0 2.217.333 7.446 7.446 0 0 0 5.302-2.195 7.484 7.484 0 0 0 1.632-8.158l-.57-1.388-4.244 4.243-2.121-2.122 4.243-4.243-1.389-.571A7.478 7.478 0 0 0 14.499 2c-2.003 0-3.886.78-5.301 2.196a7.479 7.479 0 0 0-1.862 7.518L3 16.05a2.001 2.001 0 0 0 0 2.828L5.122 21zm4.548-8.791-.254-.616a5.486 5.486 0 0 1 1.196-5.983 5.46 5.46 0 0 1 4.413-1.585l-3.353 3.353 4.949 4.95 3.355-3.355a5.49 5.49 0 0 1-1.587 4.416c-1.55 1.55-3.964 2.027-5.984 1.196l-.615-.255-
165.254 5.256h.001l-.001 1v-1l-2.122-2.122 5.256-5.255z"},child:[]}]})(e)}function a(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m15.71 15.71 2.29-2.3 2.29 2.3 1.42-1.42-2.3-2.29 2.3-2.29-1.42-1.42-2.29 2.3-2.29-2.3-1.42 1.42L16.58 12l-2.29 2.29zM12 8a3.91 3.91 0 0 0-4-4 3.91 3.91 0 0 0-4 4 3.91 3.91 0 0 0 4 4 3.91 3.91 0 0 0 4-4zM6 8a1.91 1.91 0 0 1 2-2 1.91 1.91 0 0 1 2 2 1.91 1.91 0 0 1-2 2 1.91 1.91 0 0 1-2-2zM4 18a3 3 0 0 1 3-3h2a3 3 0 0 1 3 3v1h2v-1a5 5 0 0 0-5-5H7a5 5 0 0 0-5 5v1h2z"},child:[]}]})(e)}function s(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20.29 8.29 16 12.58l-1.3-1.29-1.41 1.42 2.7 2.7 5.72-5.7zM4 8a3.91 3.91 0 0 0 4 4 3.91 3.91 0 0 0 4-4 3.91 3.91 0 0 0-4-4 3.91 3.91 0 0 0-4 4zm6 0a1.91 1.91 0 0 1-2 2 1.91 1.91 0 0 1-2-2 1.91 1.91 0 0 1 2-2 1.91 1.91 0 0 1 2 2zM4 18a3 3 0 0 1 3-3h2a3 3 0 0 1 3 3v1h2v-1a5 5 0 0 0-5-5H7a5 5 0 0 0-5 5v1h2z"},child:[]}]})(e)}function l(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M11 15h2V9h3l-4-5-4 5h3z"},child:[]},{tag:"path",attr:{d:"M20 18H4v-7H2v7c0 1.103.897 2 2 2h16c1.103 0 2-.897 2-2v-7h-2v7z"},child:[]}]})(e)}function c(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20 6h-5.586l2.293-2.293-1.414-1.414L12 5.586 8.707 2.293 7.293 3.707 9.586 6H4c-1.103 0-2 .897-2 2v11c0 1.103.897 2 2 2h16c1.103 0 2-.897 2-2V8c0-1.103-.897-2-2-2zM4 19V8h16l.002 11H4z"},child:[]}]})(e)}function u(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M5 20a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8h2V6h-4V4a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v2H3v2h2zM9 4h6v2H9zM8 8h9v12H7V8z"},child:[]},{tag:"path",attr:{d:"M9 10h2v8H9zm4 0h2v8h-2z"},child:[]}]})(e)}function h(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M19.924 10.383a1 1 0 0 0-.217-1.09l-5-5-1.414 1.414L16.586 9H4v2h15a1 1 0 0 0 .924-.617zM4.076 13.617a1 1 0 0 0 .217 1.09l5 5 1.414-1.414L7.414 15H20v-2H5a.999.999 0 0 0-.924.617z"},child:[]}]})(e)}function d(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 2C6.486 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.514 2 12 2zm0 18c-4.411 0-8-3.589-8-8s3.589-8 8-8 8 3.589 8 8-3.589 8-8 8z"},child:[]},{tag:"path",attr:{d:"M13 7h-2v6h6v-2h-4z"},child:[]}]})(e)}function f(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m13.293 2.707.818.818L3.318 14.318C2.468 15.168 2 16.298 2 17.5s.468 2.332 1.318 3.183C4.169 21.532 5.299 22 6.5 22s2.331-.468 3.182-1.318L20.475 9.889l.818.818 1.414-1.414-8-8-1.414 1.414zm3.182 8.354-2.403-2.404-1.414 1.414 2.403 2.404-1.414 1.415-.99-.99-1.414 1.414.99.99-1.415 1.415-2.403-2.404L7 15.728l2.403 2.404-1.136 1.136c-.945.944-2.59.944-3.535 0C4.26 18.795 4 18.168 4 17.5s.26-1.295.732-1.768L15.525 4.939l3.535 3.535-2.585 2.587z"},child:[]}]})(e)}function p(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 14h6v2h-6zM6.293 9.707 8.586 12l-2.293 2.293 1.414 1.414L11.414 12 7.707 8.293z"},child:[]},{tag:"path",attr:{d:"M20 4H4c-1.103 0-2 .897-2 2v12c0 1.103.897 2 2 2h16c1.103 0 2-.897 2-2V6c0-1.103-.897-2-2-2zM4 18V6h16l.002 12H4z"},child:[]}]})(e)}function m(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M5 22h14c1.103 0 2-.897 2-2V5c0-1.103-.897-2-2-2h-2a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1H5c-1.103 0-2 .897-2 2v15c0 1.103.897 2 2 2zM5 5h2v2h10V5h2v15H5V5z"},child:[]},{tag:"path",attr:{d:"m11 13.586-1.793-1.793-1.414 1.414L11 16.414l5.207-5.207-1.414-1.414z"},child:[]}]})(e)}function g(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 4C6.486 4 2 8.486 2 14a9.89 9.89 0 0 0 1.051 4.445c.17.34.516.555.895.555h16.107c.379 0 .726-.215.896-.555A9.89 9.89 0 0 0 22 14c0-5.514-4.486-10-10-10zm7.41 13H4.59A7.875 7.875 0 0 1 4 14c0-4.411 3.589-8 8-8s8 3.589 8 8a7.875 7.875 0 0 1-.59 3z"},child:[]},{tag:"path",attr:{d:"M10.939 12.939a1.53 1.53 0 0 0 0 2.561 1.53 1.53 0 0 0 2.121-.44l3.962-6.038a.034.034 0 0 0 0-.035.033.033 0 0 0-.045-.01l-6.038 3.962z"},child:[]}]})(e)}function v(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 2C6.486 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.514 2 12 2zm0 18c-4.411 0-8-3.589-8-8s3.589-8 8-8 8 3.589 8 8-3.589 8-8 8z"},child:[]},{tag:"path",attr:{d:"M9 9h6v6H9z"},child:[]}]})(e)}function y(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M8 16H4l6 6V2H8zm6-11v17h2V8h4l-6-6z"},child:[]}]})(e)}function b(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M11 9h9v2h-9zm0 4h7v2h-7zm0-8h11v2H11zm0 12h5v2h-5zm-6 3h2V8h3L6 4 2 8h3z"},child:[]}]})(e)}function x(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m6 20 4-4H7V4H5v12H2zm5-12h9v2h-9zm0 4h7v2h-7zm0-8h11v2H11zm0 12h5v2h-5z"},child:[]}]})(e)}function w(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M7.5 14.5c-1.58 0-2.903 1.06-3.337 2.5H2v2h2.163c.434 1.44 1.757 2.5 3.337 2.5s2.903-1.06 3.337-2.5H22v-2H10.837c-.434-1.44-1.757-2.5-3.337-2.5zm0 5c-.827 0-1.5-.673-1.5-1.5s.673-1.5 1.5-1.5S9 17.173 9 18s-.673 1.5-1.5 1.5zm9-11c-1.58 0-2.903 1.06-3.337 2.5H2v2h11.163c.434 1.44 1.757 2.5 3.337 2.5s2.903-1.06 3.337-2.5H22v-2h-2.163c-.434-1.44-1.757-2.5-3.337-2.5zm0 5c-.827 0-1.5-.673-1.5-1.5s.673-1.5 1.5-1.5 1.5.673 1.5 1.5-.673 1.5-1.5 1.5z"},child:[]},{tag:"path",attr:{d:"M12.837 5C12.403 3.56 11.08 2.5 9.5 2.5S6.597 3.56 6.163 5H2v2h4.163C6.597 8.44 7.92 9.5 9.5 9.5s2.903-1.06 3.337-2.5h9.288V5h-9.288zM9.5 7.5C8.673 7.5 8 6.827 8 6s.673-1.5 1.5-1.5S11 5.173 11 6s-.673 1.5-1.5 1.5z"},child:[]}]})(e)}function k(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20 13.01h-7V10h1c1.103 0 2-.897 2-2V4c0-1.103-.897-2-2-2h-4c-1.103 0-2 .897-2 2v4c0 1.103.897 2 2 2h1v3.01H4V18H3v4h4v-4H6v-2.99h5V18h-1v4h4v-4h-1v-2.99h5V18h-1v4h4v-4h-1v-4.99zM10 8V4h4l.002 4H10z"},child:[]}]})(e)}function S(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 9a3.02 3.02 0 0 0-3 3c0 1.642 1.358 3 3 3 1.641 0 3-1.358 3-3 0-1.641-1.359-3-3-3z"},child:[]},{tag:"path",attr:{d:"M12 5c-7.633 0-9.927 6.617-9.948 6.684L1.946 12l.105.316C2.073 12.383 4.367 19 12 19s9.927-6.617 9.948-6.684l.106-.316-.105-.316C21.927 11.617 19.633 5 12 5zm0 12c-5.351 0-7.424-3.846-7.926-5C4.578 10.842 6.652 7 12 7c5.351 0 7.424 3.846 7.926 5-.504 1.158-2.578 5-7.926 5z"},child:[]}]})(e)}function M(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M5.5 15a3.51 3.51 0 0 0 2.36-.93l6.26 3.58a3.06 3.06 0 0 0-.12.85 3.53 3.53 0 1 0 1.14-2.57l-6.26-3.58a2.74 2.74 0 0 0 .12-.76l6.15-3.52A3.49 3.49 0 1 0 14 5.5a3.35 3.35 0 0 0 .12.85L8.43 9.6A3.5 3.5 0 1 0 5.5 15zm12 2a1.5 1.5 0 1 1-1.5 1.5 1.5 1.5 0 0 1 1.5-1.5zm0-13A1.5 1.5 0 1 1 16 5.5 1.5 1.5 0 0 1 17.5 4zm-12 6A1.5 1.5 0 1 1 4 11.5 1.5 1.5 0 0 1 5.5 10z"},child:[]}]})(e)}function A(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20 3H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2zM4 9V5h16v4zm16 4H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2zM4 19v-4h16v4z"},child:[]}
16,{tag:"path",attr:{d:"M17 6h2v2h-2zm-3 0h2v2h-2zm3 10h2v2h-2zm-3 0h2v2h-2z"},child:[]}]})(e)}function E(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20 2H8c-1.103 0-2 .897-2 2v12c0 1.103.897 2 2 2h12c1.103 0 2-.897 2-2V4c0-1.103-.897-2-2-2zM8 16V4h12l.002 12H8z"},child:[]},{tag:"path",attr:{d:"M4 8H2v12c0 1.103.897 2 2 2h12v-2H4V8zm8.933 3.519-1.726-1.726-1.414 1.414 3.274 3.274 5.702-6.84-1.538-1.282z"},child:[]}]})(e)}function C(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M10 18a7.952 7.952 0 0 0 4.897-1.688l4.396 4.396 1.414-1.414-4.396-4.396A7.952 7.952 0 0 0 18 10c0-4.411-3.589-8-8-8s-8 3.589-8 8 3.589 8 8 8zm0-14c3.309 0 6 2.691 6 6s-2.691 6-6 6-6-2.691-6-6 2.691-6 6-6z"},child:[]}]})(e)}function O(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M10 18a7.952 7.952 0 0 0 4.897-1.688l4.396 4.396 1.414-1.414-4.396-4.396A7.952 7.952 0 0 0 18 10c0-4.411-3.589-8-8-8s-8 3.589-8 8 3.589 8 8 8zm0-14c3.309 0 6 2.691 6 6s-2.691 6-6 6-6-2.691-6-6 2.691-6 6-6z"},child:[]},{tag:"path",attr:{d:"M11.412 8.586c.379.38.588.882.588 1.414h2a3.977 3.977 0 0 0-1.174-2.828c-1.514-1.512-4.139-1.512-5.652 0l1.412 1.416c.76-.758 2.07-.756 2.826-.002z"},child:[]}]})(e)}function P(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M5 21h14a2 2 0 0 0 2-2V8a1 1 0 0 0-.29-.71l-4-4A1 1 0 0 0 16 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2zm10-2H9v-5h6zM13 7h-2V5h2zM5 5h2v4h8V5h.59L19 8.41V19h-2v-5a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v5H5z"},child:[]}]})(e)}function T(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M19 20.001C19 11.729 12.271 5 4 5v2c7.168 0 13 5.832 13 13.001h2z"},child:[]},{tag:"path",attr:{d:"M12 20.001h2C14 14.486 9.514 10 4 10v2c4.411 0 8 3.589 8 8.001z"},child:[]},{tag:"circle",attr:{cx:"6",cy:"18",r:"2"},child:[]}]})(e)}function D(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 16c1.671 0 3-1.331 3-3s-1.329-3-3-3-3 1.331-3 3 1.329 3 3 3z"},child:[]},{tag:"path",attr:{d:"M20.817 11.186a8.94 8.94 0 0 0-1.355-3.219 9.053 9.053 0 0 0-2.43-2.43 8.95 8.95 0 0 0-3.219-1.355 9.028 9.028 0 0 0-1.838-.18V2L8 5l3.975 3V6.002c.484-.002.968.044 1.435.14a6.961 6.961 0 0 1 2.502 1.053 7.005 7.005 0 0 1 1.892 1.892A6.967 6.967 0 0 1 19 13a7.032 7.032 0 0 1-.55 2.725 7.11 7.11 0 0 1-.644 1.188 7.2 7.2 0 0 1-.858 1.039 7.028 7.028 0 0 1-3.536 1.907 7.13 7.13 0 0 1-2.822 0 6.961 6.961 0 0 1-2.503-1.054 7.002 7.002 0 0 1-1.89-1.89A6.996 6.996 0 0 1 5 13H3a9.02 9.02 0 0 0 1.539 5.034 9.096 9.096 0 0 0 2.428 2.428A8.95 8.95 0 0 0 12 22a9.09 9.09 0 0 0 1.814-.183 9.014 9.014 0 0 0 3.218-1.355 8.886 8.886 0 0 0 1.331-1.099 9.228 9.228 0 0 0 1.1-1.332A8.952 8.952 0 0 0 21 13a9.09 9.09 0 0 0-.183-1.814z"},child:[]}]})(e)}function R(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M10 11H7.101l.001-.009a4.956 4.956 0 0 1 .752-1.787 5.054 5.054 0 0 1 2.2-1.811c.302-.128.617-.226.938-.291a5.078 5.078 0 0 1 2.018 0 4.978 4.978 0 0 1 2.525 1.361l1.416-1.412a7.036 7.036 0 0 0-2.224-1.501 6.921 6.921 0 0 0-1.315-.408 7.079 7.079 0 0 0-2.819 0 6.94 6.94 0 0 0-1.316.409 7.04 7.04 0 0 0-3.08 2.534 6.978 6.978 0 0 0-1.054 2.505c-.028.135-.043.273-.063.41H2l4 4 4-4zm4 2h2.899l-.001.008a4.976 4.976 0 0 1-2.103 3.138 4.943 4.943 0 0 1-1.787.752 5.073 5.073 0 0 1-2.017 0 4.956 4.956 0 0 1-1.787-.752 5.072 5.072 0 0 1-.74-.61L7.05 16.95a7.032 7.032 0 0 0 2.225 1.5c.424.18.867.317 1.315.408a7.07 7.07 0 0 0 2.818 0 7.031 7.031 0 0 0 4.395-2.945 6.974 6.974 0 0 0 1.053-2.503c.027-.135.043-.273.063-.41H22l-4-4-4 4z"},child:[]}]})(e)}function j(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 21c4.411 0 8-3.589 8-8 0-3.35-2.072-6.221-5-7.411v2.223A6 6 0 0 1 18 13c0 3.309-2.691 6-6 6s-6-2.691-6-6a5.999 5.999 0 0 1 3-5.188V5.589C6.072 6.779 4 9.65 4 13c0 4.411 3.589 8 8 8z"},child:[]},{tag:"path",attr:{d:"M11 2h2v10h-2z"},child:[]}]})(e)}function I(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M19 11h-6V5h-2v6H5v2h6v6h2v-6h6z"},child:[]}]})(e)}function z(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M3 8h2v5c0 2.206 1.794 4 4 4h2v5h2v-5h2c2.206 0 4-1.794 4-4V8h2V6H3v2zm4 0h10v5c0 1.103-.897 2-2 2H9c-1.103 0-2-.897-2-2V8zm0-6h2v3H7zm8 0h2v3h-2z"},child:[]}]})(e)}function _(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M7 6v12l10-6z"},child:[]}]})(e)}function L(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 2C6.486 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.514 2 12 2zm0 18c-4.411 0-8-3.589-8-8s3.589-8 8-8 8 3.589 8 8-3.589 8-8 8z"},child:[]},{tag:"path",attr:{d:"m9 17 8-5-8-5z"},child:[]}]})(e)}function N(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M4 21a1 1 0 0 0 .24 0l4-1a1 1 0 0 0 .47-.26L21 7.41a2 2 0 0 0 0-2.82L19.42 3a2 2 0 0 0-2.83 0L4.3 15.29a1.06 1.06 0 0 0-.27.47l-1 4A1 1 0 0 0 3.76 21 1 1 0 0 0 4 21zM18 4.41 19.59 6 18 7.59 16.42 6zM5.91 16.51 15 7.41 16.59 9l-9.1 9.1-2.11.52z"},child:[]}]})(e)}function B(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M18.404 2.998c-.757-.754-2.077-.751-2.828.005l-1.784 1.791L11.586 7H7a.998.998 0 0 0-.939.658l-4 11c-.133.365-.042.774.232 1.049l2 2a.997.997 0 0 0 1.049.232l11-4A.998.998 0 0 0 17 17v-4.586l2.207-2.207v-.001h.001L21 8.409c.378-.378.586-.881.585-1.415 0-.535-.209-1.038-.588-1.415l-2.593-2.581zm-3.111 8.295A.996.996 0 0 0 15 12v4.3l-9.249 3.363 4.671-4.671c.026.001.052.008.078.008A1.5 1.5 0 1 0 9 13.5c0 .026.007.052.008.078l-4.671 4.671L7.7 9H12c.266 0 .52-.105.707-.293L14.5 6.914 17.086 9.5l-1.793 1.793zm3.206-3.208-2.586-2.586 1.079-1.084 2.593 2.581-1.086 1.089z"},child:[]}]})(e)}function F(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M8 7h3v10H8zm5 0h3v10h-3z"},child:[]}]})(e)}function V(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M13.4 2.096a10.08 10.08 0 0 0-8.937 3.331A10.054 10.054 0 0 0 2.096 13.4c.53 3.894 3.458 7.207 7.285 8.246a9.982 9.982 0 0 0 2.618.354l.142-.001a3.001 3.001 0 0 0 2.516-1.426 2.989 2.989 0 0 0 .153-2.879l-.199-.416a1.919 1.919 0 0 1 .094-1.912 2.004 2.004 0 0 1 2.576-.755l.412.197c.412.198.85.299 1.301.299A3.022 3.022 0 0 0 22 12.14a9.935 9.935 0 0 0-.353-2.76c-1.04-3.826-4.353-6.754-8.247-7.284zm5.158 10.909-.412-.197c-1.828-.878-4.07-.198-5.135 1.494-.738 1.176-.813 2.576-.204 3.842l.199.416a.983.983 0 0 1-.051.961.992.992 
160 0 1-.844.479h-.112a8.061 8.061 0 0 1-2.095-.283c-3.063-.831-5.403-3.479-5.826-6.586-.321-2.355.352-4.623 1.893-6.389a8.002 8.002 0 0 1 7.16-2.664c3.107.423 5.755 2.764 6.586 5.826.198.73.293 1.474.282 2.207-.012.807-.845 1.183-1.441.894z"},child:[]},{tag:"circle",attr:{cx:"7.5",cy:"14.5",r:"1.5"},child:[]},{tag:"circle",attr:{cx:"7.5",cy:"10.5",r:"1.5"},child:[]},{tag:"circle",attr:{cx:"10.5",cy:"7.5",r:"1.5"},child:[]},{tag:"circle",attr:{cx:"14.5",cy:"7.5",r:"1.5"},child:[]}]})(e)}function H(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M22 8a.76.76 0 0 0 0-.21v-.08a.77.77 0 0 0-.07-.16.35.35 0 0 0-.05-.08l-.1-.13-.08-.06-.12-.09-9-5a1 1 0 0 0-1 0l-9 5-.09.07-.11.08a.41.41 0 0 0-.07.11.39.39 0 0 0-.08.1.59.59 0 0 0-.06.14.3.3 0 0 0 0 .1A.76.76 0 0 0 2 8v8a1 1 0 0 0 .52.87l9 5a.75.75 0 0 0 .13.06h.1a1.06 1.06 0 0 0 .5 0h.1l.14-.06 9-5A1 1 0 0 0 22 16V8zm-10 3.87L5.06 8l2.76-1.52 6.83 3.9zm0-7.72L18.94 8 16.7 9.25 9.87 5.34zM4 9.7l7 3.92v5.68l-7-3.89zm9 9.6v-5.68l3-1.68V15l2-1v-3.18l2-1.11v5.7z"},child:[]}]})(e)}function W(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M19 3c-1.654 0-3 1.346-3 3 0 .502.136.968.354 1.385l-1.116 1.302A3.976 3.976 0 0 0 13 8c-.739 0-1.425.216-2.02.566L9.566 7.152A3.449 3.449 0 0 0 10 5.5C10 3.57 8.43 2 6.5 2S3 3.57 3 5.5 4.57 9 6.5 9c.601 0 1.158-.166 1.652-.434L9.566 9.98A3.972 3.972 0 0 0 9 12c0 .997.38 1.899.985 2.601l-1.692 1.692.025.025A2.962 2.962 0 0 0 7 16c-1.654 0-3 1.346-3 3s1.346 3 3 3 3-1.346 3-3c0-.476-.121-.919-.318-1.318l.025.025 1.954-1.954c.421.15.867.247 1.339.247 2.206 0 4-1.794 4-4a3.96 3.96 0 0 0-.439-1.785l1.253-1.462c.364.158.764.247 1.186.247 1.654 0 3-1.346 3-3s-1.346-3-3-3zM7 20a1 1 0 1 1 0-2 1 1 0 0 1 0 2zM5 5.5C5 4.673 5.673 4 6.5 4S8 4.673 8 5.5 7.327 7 6.5 7 5 6.327 5 5.5zm8 8.5c-1.103 0-2-.897-2-2s.897-2 2-2 2 .897 2 2-.897 2-2 2zm6-7a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"},child:[]}]})(e)}function $(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m2 12 5 4v-3h9v-2H7V8z"},child:[]},{tag:"path",attr:{d:"M13.001 2.999a8.938 8.938 0 0 0-6.364 2.637L8.051 7.05c1.322-1.322 3.08-2.051 4.95-2.051s3.628.729 4.95 2.051 2.051 3.08 2.051 4.95-.729 3.628-2.051 4.95-3.08 2.051-4.95 2.051-3.628-.729-4.95-2.051l-1.414 1.414c1.699 1.7 3.959 2.637 6.364 2.637s4.665-.937 6.364-2.637c1.7-1.699 2.637-3.959 2.637-6.364s-.937-4.665-2.637-6.364a8.938 8.938 0 0 0-6.364-2.637z"},child:[]}]})(e)}function U(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m10.998 16 5-4-5-4v3h-9v2h9z"},child:[]},{tag:"path",attr:{d:"M12.999 2.999a8.938 8.938 0 0 0-6.364 2.637L8.049 7.05c1.322-1.322 3.08-2.051 4.95-2.051s3.628.729 4.95 2.051S20 10.13 20 12s-.729 3.628-2.051 4.95-3.08 2.051-4.95 2.051-3.628-.729-4.95-2.051l-1.414 1.414c1.699 1.7 3.959 2.637 6.364 2.637s4.665-.937 6.364-2.637C21.063 16.665 22 14.405 22 12s-.937-4.665-2.637-6.364a8.938 8.938 0 0 0-6.364-2.637z"},child:[]}]})(e)}function K(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 2C9.243 2 7 4.243 7 7v3H6c-1.103 0-2 .897-2 2v8c0 1.103.897 2 2 2h12c1.103 0 2-.897 2-2v-8c0-1.103-.897-2-2-2h-1V7c0-2.757-2.243-5-5-5zm6 10 .002 8H6v-8h12zm-9-2V7c0-1.654 1.346-3 3-3s3 1.346 3 3v3H9z"},child:[]}]})(e)}function q(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M4 6h2v2H4zm0 5h2v2H4zm0 5h2v2H4zm16-8V6H8.023v2H18.8zM8 11h12v2H8zm0 5h12v2H8z"},child:[]}]})(e)}function G(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M8.465 11.293c1.133-1.133 3.109-1.133 4.242 0l.707.707 1.414-1.414-.707-.707c-.943-.944-2.199-1.465-3.535-1.465s-2.592.521-3.535 1.465L4.929 12a5.008 5.008 0 0 0 0 7.071 4.983 4.983 0 0 0 3.535 1.462A4.982 4.982 0 0 0 12 19.071l.707-.707-1.414-1.414-.707.707a3.007 3.007 0 0 1-4.243 0 3.005 3.005 0 0 1 0-4.243l2.122-2.121z"},child:[]},{tag:"path",attr:{d:"m12 4.929-.707.707 1.414 1.414.707-.707a3.007 3.007 0 0 1 4.243 0 3.005 3.005 0 0 1 0 4.243l-2.122 2.121c-1.133 1.133-3.109 1.133-4.242 0L10.586 12l-1.414 1.414.707.707c.943.944 2.199 1.465 3.535 1.465s2.592-.521 3.535-1.465L19.071 12a5.008 5.008 0 0 0 0-7.071 5.006 5.006 0 0 0-7.071 0z"},child:[]}]})(e)}function Z(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m13 3 3.293 3.293-7 7 1.414 1.414 7-7L21 11V3z"},child:[]},{tag:"path",attr:{d:"M19 19H5V5h7l-2-2H5c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2h14c1.103 0 2-.897 2-2v-5l-2-2v7z"},child:[]}]})(e)}function Y(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M4.222 19.778a4.983 4.983 0 0 0 3.535 1.462 4.986 4.986 0 0 0 3.536-1.462l2.828-2.829-1.414-1.414-2.828 2.829a3.007 3.007 0 0 1-4.243 0 3.005 3.005 0 0 1 0-4.243l2.829-2.828-1.414-1.414-2.829 2.828a5.006 5.006 0 0 0 0 7.071zm15.556-8.485a5.008 5.008 0 0 0 0-7.071 5.006 5.006 0 0 0-7.071 0L9.879 7.051l1.414 1.414 2.828-2.829a3.007 3.007 0 0 1 4.243 0 3.005 3.005 0 0 1 0 4.243l-2.829 2.828 1.414 1.414 2.829-2.828z"},child:[]},{tag:"path",attr:{d:"m8.464 16.95-1.415-1.414 8.487-8.486 1.414 1.415z"},child:[]}]})(e)}function X(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M7 3h2v18H7zM4 3h2v18H4zm6 0h2v18h-2zm9.062 17.792-6.223-16.89 1.877-.692 6.223 16.89z"},child:[]}]})(e)}function J(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M22 7.999a1 1 0 0 0-.516-.874l-9.022-5a1.003 1.003 0 0 0-.968 0l-8.978 4.96a1 1 0 0 0-.003 1.748l9.022 5.04a.995.995 0 0 0 .973.001l8.978-5A1 1 0 0 0 22 7.999zm-9.977 3.855L5.06 7.965l6.917-3.822 6.964 3.859-6.918 3.852z"},child:[]},{tag:"path",attr:{d:"M20.515 11.126 12 15.856l-8.515-4.73-.971 1.748 9 5a1 1 0 0 0 .971 0l9-5-.97-1.748z"},child:[]},{tag:"path",attr:{d:"M20.515 15.126 12 19.856l-8.515-4.73-.971 1.748 9 5a1 1 0 0 0 .971 0l9-5-.97-1.748z"},child:[]}]})(e)}function Q(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M7 17a5.007 5.007 0 0 0 4.898-4H14v2h2v-2h2v3h2v-3h1v-2h-9.102A5.007 5.007 0 0 0 7 7c-2.757 0-5 2.243-5 5s2.243 5 5 5zm0-8c1.654 0 3 1.346 3 3s-1.346 3-3 3-3-1.346-3-3 1.346-3 3-3z"}
16,child:[]}]})(e)}function ee(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 2C6.486 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.514 2 12 2zm0 18c-4.411 0-8-3.589-8-8s3.589-8 8-8 8 3.589 8 8-3.589 8-8 8z"},child:[]},{tag:"path",attr:{d:"M11 11h2v6h-2zm0-4h2v2h-2z"},child:[]}]})(e)}function et(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m12 18 4-5h-3V2h-2v11H8z"},child:[]},{tag:"path",attr:{d:"M19 9h-4v2h4v9H5v-9h4V9H5c-1.103 0-2 .897-2 2v9c0 1.103.897 2 2 2h14c1.103 0 2-.897 2-2v-9c0-1.103-.897-2-2-2z"},child:[]}]})(e)}function en(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 8v5h5v-2h-3V8z"},child:[]},{tag:"path",attr:{d:"M21.292 8.497a8.957 8.957 0 0 0-1.928-2.862 9.004 9.004 0 0 0-4.55-2.452 9.09 9.09 0 0 0-3.626 0 8.965 8.965 0 0 0-4.552 2.453 9.048 9.048 0 0 0-1.928 2.86A8.963 8.963 0 0 0 4 12l.001.025H2L5 16l3-3.975H6.001L6 12a6.957 6.957 0 0 1 1.195-3.913 7.066 7.066 0 0 1 1.891-1.892 7.034 7.034 0 0 1 2.503-1.054 7.003 7.003 0 0 1 8.269 5.445 7.117 7.117 0 0 1 0 2.824 6.936 6.936 0 0 1-1.054 2.503c-.25.371-.537.72-.854 1.036a7.058 7.058 0 0 1-2.225 1.501 6.98 6.98 0 0 1-1.313.408 7.117 7.117 0 0 1-2.823 0 6.957 6.957 0 0 1-2.501-1.053 7.066 7.066 0 0 1-1.037-.855l-1.414 1.414A8.985 8.985 0 0 0 13 21a9.05 9.05 0 0 0 3.503-.707 9.009 9.009 0 0 0 3.959-3.26A8.968 8.968 0 0 0 22 12a8.928 8.928 0 0 0-.708-3.503z"},child:[]}]})(e)}function er(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 19c.946 0 1.81-.103 2.598-.281l-1.757-1.757c-.273.021-.55.038-.841.038-5.351 0-7.424-3.846-7.926-5a8.642 8.642 0 0 1 1.508-2.297L4.184 8.305c-1.538 1.667-2.121 3.346-2.132 3.379a.994.994 0 0 0 0 .633C2.073 12.383 4.367 19 12 19zm0-14c-1.837 0-3.346.396-4.604.981L3.707 2.293 2.293 3.707l18 18 1.414-1.414-3.319-3.319c2.614-1.951 3.547-4.615 3.561-4.657a.994.994 0 0 0 0-.633C21.927 11.617 19.633 5 12 5zm4.972 10.558-2.28-2.28c.19-.39.308-.819.308-1.278 0-1.641-1.359-3-3-3-.459 0-.888.118-1.277.309L8.915 7.501A9.26 9.26 0 0 1 12 7c5.351 0 7.424 3.846 7.926 5-.302.692-1.166 2.342-2.954 3.558z"},child:[]}]})(e)}function ei(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 4.595a5.904 5.904 0 0 0-3.996-1.558 5.942 5.942 0 0 0-4.213 1.758c-2.353 2.363-2.352 6.059.002 8.412l7.332 7.332c.17.299.498.492.875.492a.99.99 0 0 0 .792-.409l7.415-7.415c2.354-2.354 2.354-6.049-.002-8.416a5.938 5.938 0 0 0-4.209-1.754A5.906 5.906 0 0 0 12 4.595zm6.791 1.61c1.563 1.571 1.564 4.025.002 5.588L12 18.586l-6.793-6.793c-1.562-1.563-1.561-4.017-.002-5.584.76-.756 1.754-1.172 2.799-1.172s2.035.416 2.789 1.17l.5.5a.999.999 0 0 0 1.414 0l.5-.5c1.512-1.509 4.074-1.505 5.584-.002z"},child:[]}]})(e)}function eo(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M16.604 11.048a5.67 5.67 0 0 0 .751-3.44c-.179-1.784-1.175-3.361-2.803-4.44l-1.105 1.666c1.119.742 1.8 1.799 1.918 2.974a3.693 3.693 0 0 1-1.072 2.986l-1.192 1.192 1.618.475C18.951 13.701 19 17.957 19 18h2c0-1.789-.956-5.285-4.396-6.952z"},child:[]},{tag:"path",attr:{d:"M9.5 12c2.206 0 4-1.794 4-4s-1.794-4-4-4-4 1.794-4 4 1.794 4 4 4zm0-6c1.103 0 2 .897 2 2s-.897 2-2 2-2-.897-2-2 .897-2 2-2zm1.5 7H8c-3.309 0-6 2.691-6 6v1h2v-1c0-2.206 1.794-4 4-4h3c2.206 0 4 1.794 4 4v1h2v-1c0-3.309-2.691-6-6-6z"},child:[]}]})(e)}function ea(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M10 3H4a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1zM9 9H5V5h4v4zm5 2h6a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1h-6a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1zm1-6h4v4h-4V5zM3 20a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v6zm2-5h4v4H5v-4zm8 5a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1h-6a1 1 0 0 0-1 1v6zm2-5h4v4h-4v-4z"},child:[]}]})(e)}function es(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 2C6.486 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.514 2 12 2zm7.931 9h-2.764a14.67 14.67 0 0 0-1.792-6.243A8.013 8.013 0 0 1 19.931 11zM12.53 4.027c1.035 1.364 2.427 3.78 2.627 6.973H9.03c.139-2.596.994-5.028 2.451-6.974.172-.01.344-.026.519-.026.179 0 .354.016.53.027zm-3.842.7C7.704 6.618 7.136 8.762 7.03 11H4.069a8.013 8.013 0 0 1 4.619-6.273zM4.069 13h2.974c.136 2.379.665 4.478 1.556 6.23A8.01 8.01 0 0 1 4.069 13zm7.381 6.973C10.049 18.275 9.222 15.896 9.041 13h6.113c-.208 2.773-1.117 5.196-2.603 6.972-.182.012-.364.028-.551.028-.186 0-.367-.016-.55-.027zm4.011-.772c.955-1.794 1.538-3.901 1.691-6.201h2.778a8.005 8.005 0 0 1-4.469 6.201z"},child:[]}]})(e)}function el(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20 5h-8.586L9.707 3.293A.997.997 0 0 0 9 3H4c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2h16c1.103 0 2-.897 2-2V7c0-1.103-.897-2-2-2zM4 19V7h16l.002 12H4z"},child:[]}]})(e)}function ec(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M2.165 19.551c.186.28.499.449.835.449h15c.4 0 .762-.238.919-.606l3-7A.998.998 0 0 0 21 11h-1V7c0-1.103-.897-2-2-2h-6.1L9.616 3.213A.997.997 0 0 0 9 3H4c-1.103 0-2 .897-2 2v14h.007a1 1 0 0 0 .158.551zM17.341 18H4.517l2.143-5h12.824l-2.143 5zM18 7v4H6c-.4 0-.762.238-.919.606L4 14.129V7h14z"},child:[]}]})(e)}function eu(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M21 3H5a1 1 0 0 0-1 1v2.59c0 .523.213 1.037.583 1.407L10 13.414V21a1.001 1.001 0 0 0 1.447.895l4-2c.339-.17.553-.516.553-.895v-5.586l5.417-5.417c.37-.37.583-.884.583-1.407V4a1 1 0 0 0-1-1zm-6.707 9.293A.996.996 0 0 0 14 13v5.382l-2 1V13a.996.996 0 0 0-.293-.707L6 6.59V5h14.001l.002 1.583-5.71 5.71z"},child:[]}]})(e)}function eh(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M19 3H5c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2h14c1.103 0 2-.897 2-2V5c0-1.103-.897-2-2-2zM9 11V5h6v6H9zm6 2v6H9v-6h6zM5 5h2v2H5V5zm0 4h2v2H5V9zm0 4h2v2H5v-2zm0 4h2v2H5v-2zm14.002 2H17v-2h2.002v2zm-.001-4H17v-2h2.001v2zm0-4H17V9h2.001v2zM17 7V5h2v2h-2z"},child:[]}]})(e)}function ed(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M19.903 8.586a.997.997 0 0 0-.196-.293l-6-6a.997.997 0 0 0-.293-.196c-.03-.014-.062-.022-.094-.033a.991.991 0 0 0-.259-.051C13.04 2.011 13.021 2 13 2H6c-1.103 0-2 .897-2 2v16c0 1.103.897 2 2 2h12c1.103 0 2-.897 2-2V9c0-.021-.011-.04-.013-.062a.952.952 0 0 0-.051-.259c-.01-.032-.019-.063-.033-.093zM16.586 8H14V5.414L16.586 8zM6 20V4h6v5a1 1 0 0 0 1 1h5l.002 10H6z"},child:[]},{tag:"path",attr:{d:"M8 12h8v2H8zm0 4h8v2H8zm0-8h2v2H8z"},child:[]}]})(e)}function ef(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M19 10V7c0-1.103-.897-2-2-2h-3c0-1.654-1.346-3-3-3S8 3.346 8 5H5c-1.103 0-2 .897-2 2v3.881l.659.239C4.461 11.41 5 12.166 5 13s-.539 1.59
16-1.341 1.88L3 15.119V19c0 1.103.897 2 2 2h3.881l.239-.659C9.41 19.539 10.166 19 11 19s1.59.539 1.88 1.341l.239.659H17c1.103 0 2-.897 2-2v-3c1.654 0 3-1.346 3-3s-1.346-3-3-3zm0 4h-2l-.003 5h-2.545c-.711-1.22-2.022-2-3.452-2s-2.741.78-3.452 2H5v-2.548C6.22 15.741 7 14.43 7 13s-.78-2.741-2-3.452V7h5V5a1 1 0 0 1 2 0v2h5v5h2a1 1 0 0 1 0 2z"},child:[]}]})(e)}function ep(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M11 16h2V7h3l-4-5-4 5h3z"},child:[]},{tag:"path",attr:{d:"M5 22h14c1.103 0 2-.897 2-2v-9c0-1.103-.897-2-2-2h-4v2h4v9H5v-9h4V9H5c-1.103 0-2 .897-2 2v9c0 1.103.897 2 2 2z"},child:[]}]})(e)}function em(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M11.953 2C6.465 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.493 2 11.953 2zM12 20c-4.411 0-8-3.589-8-8s3.567-8 7.953-8C16.391 4 20 7.589 20 12s-3.589 8-8 8z"},child:[]},{tag:"path",attr:{d:"M11 7h2v7h-2zm0 8h2v2h-2z"},child:[]}]})(e)}function eg(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m2.586 15.408 4.299 4.299a.996.996 0 0 0 .707.293h12.001v-2h-6.958l7.222-7.222c.78-.779.78-2.049 0-2.828L14.906 3a2.003 2.003 0 0 0-2.828 0l-4.75 4.749-4.754 4.843a2.007 2.007 0 0 0 .012 2.816zM13.492 4.414l4.95 4.95-2.586 2.586L10.906 7l2.586-2.586zM8.749 9.156l.743-.742 4.95 4.95-4.557 4.557a1.026 1.026 0 0 0-.069.079h-1.81l-4.005-4.007 4.748-4.837z"},child:[]}]})(e)}function ev(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m7 17.013 4.413-.015 9.632-9.54c.378-.378.586-.88.586-1.414s-.208-1.036-.586-1.414l-1.586-1.586c-.756-.756-2.075-.752-2.825-.003L7 12.583v4.43zM18.045 4.458l1.589 1.583-1.597 1.582-1.586-1.585 1.594-1.58zM9 13.417l6.03-5.973 1.586 1.586-6.029 5.971L9 15.006v-1.589z"},child:[]},{tag:"path",attr:{d:"M5 21h14c1.103 0 2-.897 2-2v-8.668l-2 2V19H8.158c-.026 0-.053.01-.079.01-.033 0-.066-.009-.1-.01H5V5h6.847l2-2H5c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2z"},child:[]}]})(e)}function ey(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m12 16 4-5h-3V4h-2v7H8z"},child:[]},{tag:"path",attr:{d:"M20 18H4v-7H2v7c0 1.103.897 2 2 2h16c1.103 0 2-.897 2-2v-7h-2v7z"},child:[]}]})(e)}function eb(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m18.707 12.707-1.414-1.414L13 15.586V6h-2v9.586l-4.293-4.293-1.414 1.414L12 19.414z"},child:[]}]})(e)}function ex(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 12c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"},child:[]}]})(e)}function ew(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M4 21h9.62a3.995 3.995 0 0 0 3.037-1.397l5.102-5.952a1 1 0 0 0-.442-1.6l-1.968-.656a3.043 3.043 0 0 0-2.823.503l-3.185 2.547-.617-1.235A3.98 3.98 0 0 0 9.146 11H4c-1.103 0-2 .897-2 2v6c0 1.103.897 2 2 2zm0-8h5.146c.763 0 1.448.423 1.789 1.105l.447.895H7v2h6.014a.996.996 0 0 0 .442-.11l.003-.001.004-.002h.003l.002-.001h.004l.001-.001c.009.003.003-.001.003-.001.01 0 .002-.001.002-.001h.001l.002-.001.003-.001.002-.001.002-.001.003-.001.002-.001c.003 0 .001-.001.002-.001l.003-.002.002-.001.002-.001.003-.001.002-.001h.001l.002-.001h.001l.002-.001.002-.001c.009-.001.003-.001.003-.001l.002-.001a.915.915 0 0 0 .11-.078l4.146-3.317c.262-.208.623-.273.94-.167l.557.186-4.133 4.823a2.029 2.029 0 0 1-1.52.688H4v-6zM16 2h-.017c-.163.002-1.006.039-1.983.705-.951-.648-1.774-.7-1.968-.704L12.002 2h-.004c-.801 0-1.555.313-2.119.878C9.313 3.445 9 4.198 9 5s.313 1.555.861 2.104l3.414 3.586a1.006 1.006 0 0 0 1.45-.001l3.396-3.568C18.688 6.555 19 5.802 19 5s-.313-1.555-.878-2.121A2.978 2.978 0 0 0 16.002 2H16zm1 3c0 .267-.104.518-.311.725L14 8.55l-2.707-2.843C11.104 5.518 11 5.267 11 5s.104-.518.294-.708A.977.977 0 0 1 11.979 4c.025.001.502.032 1.067.485.081.065.163.139.247.222l.707.707.707-.707c.084-.083.166-.157.247-.222.529-.425.976-.478 1.052-.484a.987.987 0 0 1 .701.292c.189.189.293.44.293.707z"},child:[]}]})(e)}function ek(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20 17V7c0-2.168-3.663-4-8-4S4 4.832 4 7v10c0 2.168 3.663 4 8 4s8-1.832 8-4zM12 5c3.691 0 5.931 1.507 6 1.994C17.931 7.493 15.691 9 12 9S6.069 7.493 6 7.006C6.069 6.507 8.309 5 12 5zM6 9.607C7.479 10.454 9.637 11 12 11s4.521-.546 6-1.393v2.387c-.069.499-2.309 2.006-6 2.006s-5.931-1.507-6-2V9.607zM6 17v-2.393C7.479 15.454 9.637 16 12 16s4.521-.546 6-1.393v2.387c-.069.499-2.309 2.006-6 2.006s-5.931-1.507-6-2z"},child:[]}]})(e)}function eS(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20 2H10c-1.103 0-2 .897-2 2v4H4c-1.103 0-2 .897-2 2v10c0 1.103.897 2 2 2h10c1.103 0 2-.897 2-2v-4h4c1.103 0 2-.897 2-2V4c0-1.103-.897-2-2-2zM4 20V10h10l.002 10H4zm16-6h-4v-4c0-1.103-.897-2-2-2h-4V4h10v10z"},child:[]}]})(e)}function eM(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 16c2.206 0 4-1.794 4-4s-1.794-4-4-4-4 1.794-4 4 1.794 4 4 4zm0-6c1.084 0 2 .916 2 2s-.916 2-2 2-2-.916-2-2 .916-2 2-2z"},child:[]},{tag:"path",attr:{d:"m2.845 16.136 1 1.73c.531.917 1.809 1.261 2.73.73l.529-.306A8.1 8.1 0 0 0 9 19.402V20c0 1.103.897 2 2 2h2c1.103 0 2-.897 2-2v-.598a8.132 8.132 0 0 0 1.896-1.111l.529.306c.923.53 2.198.188 2.731-.731l.999-1.729a2.001 2.001 0 0 0-.731-2.732l-.505-.292a7.718 7.718 0 0 0 0-2.224l.505-.292a2.002 2.002 0 0 0 .731-2.732l-.999-1.729c-.531-.92-1.808-1.265-2.731-.732l-.529.306A8.1 8.1 0 0 0 15 4.598V4c0-1.103-.897-2-2-2h-2c-1.103 0-2 .897-2 2v.598a8.132 8.132 0 0 0-1.896 1.111l-.529-.306c-.924-.531-2.2-.187-2.731.732l-.999 1.729a2.001 2.001 0 0 0 .731 2.732l.505.292a7.683 7.683 0 0 0 0 2.223l-.50
165.292a2.003 2.003 0 0 0-.731 2.733zm3.326-2.758A5.703 5.703 0 0 1 6 12c0-.462.058-.926.17-1.378a.999.999 0 0 0-.47-1.108l-1.123-.65.998-1.729 1.145.662a.997.997 0 0 0 1.188-.142 6.071 6.071 0 0 1 2.384-1.399A1 1 0 0 0 11 5.3V4h2v1.3a1 1 0 0 0 .708.956 6.083 6.083 0 0 1 2.384 1.399.999.999 0 0 0 1.188.142l1.144-.661 1 1.729-1.124.649a1 1 0 0 0-.47 1.108c.112.452.17.916.17 1.378 0 .461-.058.925-.171 1.378a1 1 0 0 0 .471 1.108l1.123.649-.998 1.729-1.145-.661a.996.996 0 0 0-1.188.142 6.071 6.071 0 0 1-2.384 1.399A1 1 0 0 0 13 18.7l.002 1.3H11v-1.3a1 1 0 0 0-.708-.956 6.083 6.083 0 0 1-2.384-1.399.992.992 0 0 0-1.188-.141l-1.144.662-1-1.729 1.124-.651a1 1 0 0 0 .471-1.108z"},child:[]}]})(e)}function eA(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M18.944 11.112C18.507 7.67 15.56 5 12 5 9.244 5 6.85 6.611 5.757 9.15 3.609 9.792 2 11.82 2 14c0 2.757 2.243 5 5 5h11c2.206 0 4-1.794 4-4a4.01 4.01 0 0 0-3.056-3.888zM18 17H7c-1.654 0-3-1.346-3-3 0-1.404 1.199-2.756 2.673-3.015l.581-.102.192-.558C8.149 8.274 9.895 7 12 7c2.757 0 5 2.243 5 5v1h1c1.103 0 2 .897 2 2s-.897 2-2 2z"},child:[]}]})(e)}function eE(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M13 19v-4h3l-4-5-4 5h3v4z"},child:[]},{tag:"path",attr:{d:"M7 19h2v-2H7c-1.654 0-3-1.346-3-3 0-1.404 1.199-2.756 2.673-3.015l.581-.102.192-.558C8.149 8.274 9.895 7 12 7c2.757 0 5 2.243 5 5v1h1c1.103 0 2 .897 2 2s-.897 2-2 2h-3v2h3c2.206 0 4-1.794 4-4a4.01 4.01 0 0 0-3.056-3.888C18.507 7.67 15.56 5 12 5 9.244 5 6.85 6.611 5.757 9.15 3.609 9.792 2 11.82 2 14c0 2.757 2.243 5 5 5z"},child:[]}]})(e)}function eC(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M18.948 11.112C18.511 7.67 15.563 5 12.004 5c-2.756 0-5.15 1.611-6.243 4.15-2.148.642-3.757 2.67-3.757 4.85 0 2.757 2.243 5 5 5h1v-2h-1c-1.654 0-3-1.346-3-3 0-1.404 1.199-2.757 2.673-3.016l.581-.102.192-.558C8.153 8.273 9.898 7 12.004 7c2.757 0 5 2.243 5 5v1h1c1.103 0 2 .897 2 2s-.897 2-2 2h-2v2h2c2.206 0 4-1.794 4-4a4.008 4.008 0 0 0-3.056-3.888z"},child:[]},{tag:"path",attr:{d:"M13.004 14v-4h-2v4h-3l4 5 4-5z"},child:[]}]})(e)}function eO(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M9 9h6v6H9z"},child:[]},{tag:"path",attr:{d:"M20 6c0-1.103-.897-2-2-2h-2V2h-2v2h-4V2H8v2H6c-1.103 0-2 .897-2 2v2H2v2h2v4H2v2h2v2c0 1.103.897 2 2 2h2v2h2v-2h4v2h2v-2h2c1.103 0 2-.897 2-2v-2h2v-2h-2v-4h2V8h-2V6zM6 18V6h12l.002 12H6z"},child:[]}]})(e)}function eP(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m6.293 13.293 1.414 1.414L12 10.414l4.293 4.293 1.414-1.414L12 7.586z"},child:[]}]})(e)}function eT(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M10.707 17.707 16.414 12l-5.707-5.707-1.414 1.414L13.586 12l-4.293 4.293z"},child:[]}]})(e)}function eD(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M16.293 9.293 12 13.586 7.707 9.293l-1.414 1.414L12 16.414l5.707-5.707z"},child:[]}]})(e)}function eR(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M7 5c-1.103 0-2 .897-2 2v10c0 1.103.897 2 2 2h10c1.103 0 2-.897 2-2V7c0-1.103-.897-2-2-2H7zm0 12V7h10l.002 10H7z"},child:[]}]})(e)}function ej(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M7 5c-1.103 0-2 .897-2 2v10c0 1.103.897 2 2 2h10c1.103 0 2-.897 2-2V7c0-1.103-.897-2-2-2H7zm0 12V7h10l.002 10H7z"},child:[]},{tag:"path",attr:{d:"M10.996 12.556 9.7 11.285l-1.4 1.43 2.704 2.647 4.699-4.651-1.406-1.422z"},child:[]}]})(e)}function eI(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m10 15.586-3.293-3.293-1.414 1.414L10 18.414l9.707-9.707-1.414-1.414z"},child:[]}]})(e)}function ez(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20.995 6.9a.998.998 0 0 0-.548-.795l-8-4a1 1 0 0 0-.895 0l-8 4a1.002 1.002 0 0 0-.547.795c-.011.107-.961 10.767 8.589 15.014a.987.987 0 0 0 .812 0c9.55-4.247 8.6-14.906 8.589-15.014zM12 19.897C5.231 16.625 4.911 9.642 4.966 7.635L12 4.118l7.029 3.515c.037 1.989-.328 9.018-7.029 12.264z"},child:[]},{tag:"path",attr:{d:"m11 12.586-2.293-2.293-1.414 1.414L11 15.414l5.707-5.707-1.414-1.414z"},child:[]}]})(e)}function e_(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 2C6.486 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.514 2 12 2zm0 18c-4.411 0-8-3.589-8-8s3.589-8 8-8 8 3.589 8 8-3.589 8-8 8z"},child:[]},{tag:"path",attr:{d:"M9.999 13.587 7.7 11.292l-1.412 1.416 3.713 3.705 6.706-6.706-1.414-1.414z"},child:[]}]})(e)}function eL(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20 3H4a2 2 0 0 0-2 2v2a2 2 0 0 0 1 1.72V19a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.72A2 2 0 0 0 22 7V5a2 2 0 0 0-2-2zM4 5h16v2H4zm1 14V9h14v10z"},child:[]},{tag:"path",attr:{d:"M8 11h8v2H8z"},child:[]}]})(e)}function eN(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 2C6.486 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.514 2 12 2zM4 12c0-1.846.634-3.542 1.688-4.897l11.209 11.209A7.946 7.946 0 0 1 12 20c-4.411 0-8-3.589-8-8zm14.312 4.897L7.103 5.688A7.948 7.948 0 0 1 12 4c4.411 0 8 3.589 8 8a7.954 7.954 0 0 1-1.688 4.897z"},child:[]}]})(e)}function eB(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20 7h-4V4c0-1.103-.897-2-2-2h-4c-1.103 0-2 .897-2 2v5H4c-1.103 0-2 .897-2 2v9a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1V9c0-1.103-.897-2-2-2zM4 11h4v8H4v-8zm6-1V4h4v15h-4v-9zm10 9h-4V9h4v10z"},child:[]}]})(e)}function eF(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M21 11H6.414l5.293-5.293-1.414-1.414L2.586 12l7.707 7.707 1.414-1.414L6.414 13H21z"},child:[]}]})(e)}function eV(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M18 11c0-.959-.68-1.761-1.581-1.954C16.779 8.445 17 7.75 17 7c0-2.206-1.794-4-4-4-1.516 0-2.822.857-3.5 2.104C8.822 3.857 7.516 3 6 3 3.794 3 2 4.794 2 7c0 .902.312 1.726.817 2.396A1.993 1.993 0 0 0 2 11v8c0 1.103.897 2 2 2h12c1.103 0 2-.897 2-2v-2.637l4 2v-7l-4 2V11zm-5-6c1.103 0 2 .897 2 2s-.897 2-2 2-2-.897-2-2 .897-2 2-2zM6 5c1.103 0 2 .897 2 2s-.897 2-2 2-2-.897-2-2 .897-2 2-2z"},child:[]}]})(e)}},74298(e,t,n){"use strict";n.d(t,{YkV:()=>i,zvj:()=>o});var r=n(65979);function i(e){return(0,r.k5)({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M9 4a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-2.5 6.5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0"},child:[]},{tag:"path",attr:{d:"M4 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zm6 4a2 2 0 1 1-4 0 2 2 
160 0 1 4 0M8 7a3.5 3.5 0 1 1 0 7 3.5 3.5 0 0 1 0-7"},child:[]}]})(e)}function o(e){return(0,r.k5)({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M3.05 3.05a7 7 0 0 0 0 9.9.5.5 0 0 1-.707.707 8 8 0 0 1 0-11.314.5.5 0 1 1 .707.707m9.9-.707a.5.5 0 0 1 .707 0 8 8 0 0 1 0 11.314.5.5 0 0 1-.707-.707 7 7 0 0 0 0-9.9.5.5 0 0 1 0-.707M6 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0m5-6.5a.5.5 0 0 0-1 0v2.117L8.257 5.57a.5.5 0 0 0-.514.858L9.528 7.5 7.743 8.571a.5.5 0 1 0 .514.858L10 8.383V10.5a.5.5 0 1 0 1 0V8.383l1.743 1.046a.5.5 0 0 0 .514-.858L11.472 7.5l1.785-1.071a.5.5 0 1 0-.514-.858L11 6.617z"},child:[]}]})(e)}},5524(e,t,n){"use strict";n.d(t,{$BV:()=>o,$TP:()=>S,AnD:()=>u,EEI:()=>i,H8h:()=>M,Mbn:()=>p,Ny1:()=>m,OiG:()=>s,PiR:()=>f,UUG:()=>d,Vr3:()=>x,VsL:()=>g,X6T:()=>b,gSK:()=>l,gqt:()=>h,jHd:()=>c,lHQ:()=>w,uCC:()=>k,uO9:()=>v,uoG:()=>a,w_X:()=>y,zU_:()=>A});var r=n(65979);function i(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M212.333 224.333H12c-6.627 0-12-5.373-12-12V12C0 5.373 5.373 0 12 0h48c6.627 0 12 5.373 12 12v78.112C117.773 39.279 184.26 7.47 258.175 8.007c136.906.994 246.448 111.623 246.157 248.532C504.041 393.258 393.12 504 256.333 504c-64.089 0-122.496-24.313-166.51-64.215-5.099-4.622-5.334-12.554-.467-17.42l33.967-33.967c4.474-4.474 11.662-4.717 16.401-.525C170.76 415.336 211.58 432 256.333 432c97.268 0 176-78.716 176-176 0-97.267-78.716-176-176-176-58.496 0-110.28 28.476-142.274 72.333h98.274c6.627 0 12 5.373 12 12v48c0 6.627-5.373 12-12 12z"},child:[]}]})(e)}function o(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M288 32C128.94 32 0 160.94 0 320c0 52.8 14.25 102.26 39.06 144.8 5.61 9.62 16.3 15.2 27.44 15.2h443c11.14 0 21.83-5.58 27.44-15.2C561.75 422.26 576 372.8 576 320c0-159.06-128.94-288-288-288zm0 64c14.71 0 26.58 10.13 30.32 23.65-1.11 2.26-2.64 4.23-3.45 6.67l-9.22 27.67c-5.13 3.49-10.97 6.01-17.64 6.01-17.67 0-32-14.33-32-32S270.33 96 288 96zM96 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm48-160c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm246.77-72.41l-61.33 184C343.13 347.33 352 364.54 352 384c0 11.72-3.38 22.55-8.88 32H232.88c-5.5-9.45-8.88-20.28-8.88-32 0-33.94 26.5-61.43 59.9-63.59l61.34-184.01c4.17-12.56 17.73-19.45 30.36-15.17 12.57 4.19 19.35 17.79 15.17 30.36zm14.66 57.2l15.52-46.55c3.47-1.29 7.13-2.23 11.05-2.23 17.67 0 32 14.33 32 32s-14.33 32-32 32c-11.38-.01-20.89-6.28-26.57-15.22zM480 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"},child:[]}]})(e)}function a(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M505.12019,19.09375c-1.18945-5.53125-6.65819-11-12.207-12.1875C460.716,0,435.507,0,410.40747,0,307.17523,0,245.26909,55.20312,199.05238,128H94.83772c-16.34763.01562-35.55658,11.875-42.88664,26.48438L2.51562,253.29688A28.4,28.4,0,0,0,0,264a24.00867,24.00867,0,0,0,24.00582,24H127.81618l-22.47457,22.46875c-11.36521,11.36133-12.99607,32.25781,0,45.25L156.24582,406.625c11.15623,11.1875,32.15619,13.15625,45.27726,0l22.47457-22.46875V488a24.00867,24.00867,0,0,0,24.00581,24,28.55934,28.55934,0,0,0,10.707-2.51562l98.72834-49.39063c14.62888-7.29687,26.50776-26.5,26.50776-42.85937V312.79688c72.59753-46.3125,128.03493-108.40626,128.03493-211.09376C512.07526,76.5,512.07526,51.29688,505.12019,19.09375ZM384.04033,168A40,40,0,1,1,424.05,128,40.02322,40.02322,0,0,1,384.04033,168Z"},child:[]}]})(e)}function s(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(e)}function l(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"},child:[]}]})(e)}function c(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 288 512"},child:[{tag:"path",attr:{d:"M112 316.94v156.69l22.02 33.02c4.75 7.12 15.22 7.12 19.97 0L176 473.63V316.94c-10.39 1.92-21.06 3.06-32 3.06s-21.61-1.14-32-3.06zM144 0C64.47 0 0 64.47 0 144s64.47 144 144 144 144-64.47 144-144S223.53 0 144 0zm0 76c-37.5 0-68 30.5-68 68 0 6.62-5.38 12-12 12s-12-5.38-12-12c0-50.73 41.28-92 92-92 6.62 0 12 5.38 12 12s-5.38 12-12 12z"},child:[]}]})(e)}function u(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.8
1606l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"},child:[]}]})(e)}function h(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M152.1 236.2c-3.5-12.1-7.8-33.2-7.8-33.2h-.5s-4.3 21.1-7.8 33.2l-11.1 37.5H163zM616 96H336v320h280c13.3 0 24-10.7 24-24V120c0-13.3-10.7-24-24-24zm-24 120c0 6.6-5.4 12-12 12h-11.4c-6.9 23.6-21.7 47.4-42.7 69.9 8.4 6.4 17.1 12.5 26.1 18 5.5 3.4 7.3 10.5 4.1 16.2l-7.9 13.9c-3.4 5.9-10.9 7.8-16.7 4.3-12.6-7.8-24.5-16.1-35.4-24.9-10.9 8.7-22.7 17.1-35.4 24.9-5.8 3.5-13.3 1.6-16.7-4.3l-7.9-13.9c-3.2-5.6-1.4-12.8 4.2-16.2 9.3-5.7 18-11.7 26.1-18-7.9-8.4-14.9-17-21-25.7-4-5.7-2.2-13.6 3.7-17.1l6.5-3.9 7.3-4.3c5.4-3.2 12.4-1.7 16 3.4 5 7 10.8 14 17.4 20.9 13.5-14.2 23.8-28.9 30-43.2H412c-6.6 0-12-5.4-12-12v-16c0-6.6 5.4-12 12-12h64v-16c0-6.6 5.4-12 12-12h16c6.6 0 12 5.4 12 12v16h64c6.6 0 12 5.4 12 12zM0 120v272c0 13.3 10.7 24 24 24h280V96H24c-13.3 0-24 10.7-24 24zm58.9 216.1L116.4 167c1.7-4.9 6.2-8.1 11.4-8.1h32.5c5.1 0 9.7 3.3 11.4 8.1l57.5 169.1c2.6 7.8-3.1 15.9-11.4 15.9h-22.9a12 12 0 0 1-11.5-8.6l-9.4-31.9h-60.2l-9.1 31.8c-1.5 5.1-6.2 8.7-11.5 8.7H70.3c-8.2 0-14-8.1-11.4-15.9z"},child:[]}]})(e)}function d(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M488 64h-8v20c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12V64H96v20c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12V64h-8C10.7 64 0 74.7 0 88v336c0 13.3 10.7 24 24 24h8v-20c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v20h320v-20c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v20h8c13.3 0 24-10.7 24-24V88c0-13.3-10.7-24-24-24zM96 372c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm272 208c0 6.6-5.4 12-12 12H156c-6.6 0-12-5.4-12-12v-96c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v96zm0-168c0 6.6-5.4 12-12 12H156c-6.6 0-12-5.4-12-12v-96c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v96zm112 152c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40z"},child:[]}]})(e)}function f(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M16 288c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h112v-64zm489-183L407.1 7c-4.5-4.5-10.6-7-17-7H384v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-153 31V0H152c-13.3 0-24 10.7-24 24v264h128v-65.2c0-14.3 17.3-21.4 27.4-11.3L379 308c6.6 6.7 6.6 17.4 0 24l-95.7 96.4c-10.1 10.1-27.4 3-27.4-11.3V352H128v136c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H376c-13.2 0-24-10.8-24-24z"},child:[]}]})(e)}function p(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M384 121.9c0-6.3-2.5-12.4-7-16.9L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128zM571 308l-95.7-96.4c-10.1-10.1-27.4-3-27.4 11.3V288h-64v64h64v65.2c0 14.3 17.3 21.4 27.4 11.3L571 332c6.6-6.6 6.6-17.4 0-24zm-379 28v-32c0-8.8 7.2-16 16-16h176V160H248c-13.2 0-24-10.8-24-24V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V352H208c-8.8 0-16-7.2-16-16z"},child:[]}]})(e)}function m(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z"},child:[]}]})(e)}function g(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 304H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32zm0-192H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(e)}function v(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 576 512"}
16,child:[{tag:"path",attr:{d:"M402.6 83.2l90.2 90.2c3.8 3.8 3.8 10 0 13.8L274.4 405.6l-92.8 10.3c-12.4 1.4-22.9-9.1-21.5-21.5l10.3-92.8L388.8 83.2c3.8-3.8 10-3.8 13.8 0zm162-22.9l-48.8-48.8c-15.2-15.2-39.9-15.2-55.2 0l-35.4 35.4c-3.8 3.8-3.8 10 0 13.8l90.2 90.2c3.8 3.8 10 3.8 13.8 0l35.4-35.4c15.2-15.3 15.2-40 0-55.2zM384 346.2V448H64V128h229.8c3.2 0 6.2-1.3 8.5-3.5l40-40c7.6-7.6 2.2-20.5-8.5-20.5H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V306.2c0-10.7-12.9-16-20.5-8.5l-40 40c-2.2 2.3-3.5 5.3-3.5 8.5z"},child:[]}]})(e)}function y(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256,8C119,8,8,119,8,256S119,504,256,504,504,393,504,256,393,8,256,8Zm92.49,313h0l-20,25a16,16,0,0,1-22.49,2.5h0l-67-49.72a40,40,0,0,1-15-31.23V112a16,16,0,0,1,16-16h32a16,16,0,0,1,16,16V256l58,42.5A16,16,0,0,1,348.49,321Z"},child:[]}]})(e)}function b(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"},child:[]}]})(e)}function x(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"},child:[]}]})(e)}function w(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M296 160H180.6l42.6-129.8C227.2 15 215.7 0 200 0H56C44 0 33.8 8.9 32.2 20.8l-32 240C-1.7 275.2 9.5 288 24 288h118.7L96.6 482.5c-3.6 15.2 8 29.5 23.3 29.5 8.4 0 16.4-4.4 20.8-12l176-304c9.3-15.9-2.2-36-20.7-36z"},child:[]}]})(e)}function k(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M34.9 289.5l-22.2-22.2c-9.4-9.4-9.4-24.6 0-33.9L207 39c9.4-9.4 24.6-9.4 33.9 0l194.3 194.3c9.4 9.4 9.4 24.6 0 33.9L413 289.4c-9.5 9.5-25 9.3-34.3-.4L264 168.6V456c0 13.3-10.7 24-24 24h-32c-13.3 0-24-10.7-24-24V168.6L69.2 289.1c-9.3 9.8-24.8 10-34.3.4z"},child:[]}]})(e)}function S(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M413.1 222.5l22.2 22.2c9.4 9.4 9.4 24.6 0 33.9L241 473c-9.4 9.4-24.6 9.4-33.9 0L12.7 278.6c-9.4-9.4-9.4-24.6 0-33.9l22.2-22.2c9.5-9.5 25-9.3 34.3.4L184 343.4V56c0-13.3 10.7-24 24-24h32c13.3 0 24 10.7 24 24v287.4l114.8-120.5c9.3-9.8 24.8-10 34.3-.4z"},child:[]}]})(e)}function M(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M268 416h24a12 12 0 0 0 12-12V188a12 12 0 0 0-12-12h-24a12 12 0 0 0-12 12v216a12 12 0 0 0 12 12zM432 80h-82.41l-34-56.7A48 48 0 0 0 274.41 0H173.59a48 48 0 0 0-41.16 23.3L98.41 80H16A16 16 0 0 0 0 96v16a16 16 0 0 0 16 16h16v336a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128h16a16 16 0 0 0 16-16V96a16 16 0 0 0-16-16zM171.84 50.91A6 6 0 0 1 177 48h94a6 6 0 0 1 5.15 2.91L293.61 80H154.39zM368 464H80V128h288zm-212-48h24a12 12 0 0 0 12-12V188a12 12 0 0 0-12-12h-24a12 12 0 0 0-12 12v216a12 12 0 0 0 12 12z"},child:[]}]})(e)}function A(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M433.941 65.941l-51.882-51.882A48 48 0 0 0 348.118 0H176c-26.51 0-48 21.49-48 48v48H48c-26.51 0-48 21.49-48 48v320c0 26.51 21.49 48 48 48h224c26.51 0 48-21.49 48-48v-48h80c26.51 0 48-21.49 48-48V99.882a48 48 0 0 0-14.059-33.941zM266 464H54a6 6 0 0 1-6-6V150a6 6 0 0 1 6-6h74v224c0 26.51 21.49 48 48 48h96v42a6 6 0 0 1-6 6zm128-96H182a6 6 0 0 1-6-6V54a6 6 0 0 1 6-6h106v88c0 13.255 10.745 24 24 24h88v202a6 6 0 0 1-6 6zm6-256h-64V48h9.632c1.591 0 3.117.632 4.243 1.757l48.368 48.368a6 6 0 0 1 1.757 4.243V112z"},child:[]}]})(e)}},98592(e,t,n){"use strict";n.d(t,{Com:()=>a,G02:()=>o,OiG:()=>c,QVr:()=>y,Ucs:()=>f,Vr3:()=>m,X6T:()=>p,XGb:()=>d,Z0P:()=>g,f35:()=>h,hk0:()=>i,j6T:()=>v,oWm:()=>b,pXu:()=>u,vwk:()=>l,xAZ:()=>s});var r=n(65979);function i(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M489.7 153.8c-.1-65.4-51-119-110.7-138.3C304.8-8.5 207-5 136.1 28.4C50.3 68.9 23.3 157.7 22.3 246.2C21.5 319 28.7 510.6 136.9 512c80.3 1 92.3-102.5 129.5-152.3c26.4-35.5 60.5-45.5 102.4-55.9c72-17.8 121.1-74.7 121-150z"},child:[]}]})(e)}function o(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M135.2 17.7C140.6 6.8 151.7 0 163.8 0L284.2 0c12.1 0 23.2 6.8 28.6 17.7L320 32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 96C14.3 96 0 81.7 0 64S14.3 32 32 32l96 0 7.2-14.3zM32 128l384 0 0 320c0 35.3-28.7 64-64 64L96 512c-35.3 0-64-28.7-64-64l0-320zm96 64c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-
167.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16z"},child:[]}]})(e)}function a(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L355.7 253.5 400.2 96 503 96 497 120.2c-4.3 17.1 6.1 34.5 23.3 38.8s34.5-6.1 38.8-23.3l11-44.1C577.6 61.3 554.7 32 523.5 32L376.1 32l-.3 0L204.5 32c-22 0-41.2 15-46.6 36.4l-6.3 25.2L38.8 5.1zm168 131.7c.1-.3 .2-.7 .3-1L217 96l116.7 0L301.3 210.8l-94.5-74.1zM243.3 416L192 416c-17.7 0-32 14.3-32 32s14.3 32 32 32l160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-42.2 0 17.6-62.1L272.9 311 243.3 416z"},child:[]}]})(e)}function s(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M403.8 34.4c12-5 25.7-2.2 34.9 6.9l64 64c6 6 9.4 14.1 9.4 22.6s-3.4 16.6-9.4 22.6l-64 64c-9.2 9.2-22.9 11.9-34.9 6.9s-19.8-16.6-19.8-29.6l0-32-32 0c-10.1 0-19.6 4.7-25.6 12.8L284 229.3 244 176l31.2-41.6C293.3 110.2 321.8 96 352 96l32 0 0-32c0-12.9 7.8-24.6 19.8-29.6zM164 282.7L204 336l-31.2 41.6C154.7 401.8 126.2 416 96 416l-64 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l64 0c10.1 0 19.6-4.7 25.6-12.8L164 282.7zm274.6 188c-9.2 9.2-22.9 11.9-34.9 6.9s-19.8-16.6-19.8-29.6l0-32-32 0c-30.2 0-58.7-14.2-76.8-38.4L121.6 172.8c-6-8.1-15.5-12.8-25.6-12.8l-64 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l64 0c30.2 0 58.7 14.2 76.8 38.4L326.4 339.2c6 8.1 15.5 12.8 25.6 12.8l32 0 0-32c0-12.9 7.8-24.6 19.8-29.6s25.7-2.2 34.9 6.9l64 64c6 6 9.4 14.1 9.4 22.6s-3.4 16.6-9.4 22.6l-64 64z"},child:[]}]})(e)}function l(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M64 32C28.7 32 0 60.7 0 96l0 64c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 32zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm48 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zM64 288c-35.3 0-64 28.7-64 64l0 64c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 288zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm56 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"},child:[]}]})(e)}function c(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"},child:[]}]})(e)}function u(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M336 352c97.2 0 176-78.8 176-176S433.2 0 336 0S160 78.8 160 176c0 18.7 2.9 36.8 8.3 53.7L7 391c-4.5 4.5-7 10.6-7 17l0 80c0 13.3 10.7 24 24 24l80 0c13.3 0 24-10.7 24-24l0-40 40 0c13.3 0 24-10.7 24-24l0-40 40 0c6.4 0 12.5-2.5 17-7l33.3-33.3c16.9 5.4 35 8.3 53.7 8.3zM376 96a40 40 0 1 1 0 80 40 40 0 1 1 0-80z"},child:[]}]})(e)}function h(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M352 256c0 22.2-1.2 43.6-3.3 64l-185.3 0c-2.2-20.4-3.3-41.8-3.3-64s1.2-43.6 3.3-64l185.3 0c2.2 20.4 3.3 41.8 3.3 64zm28.8-64l123.1 0c5.3 20.5 8.1 41.9 8.1 64s-2.8 43.5-8.1 64l-123.1 0c2.1-20.6 3.2-42 3.2-64s-1.1-43.4-3.2-64zm112.6-32l-116.7 0c-10-63.9-29.8-117.4-55.3-151.6c78.3 20.7 142 77.5 171.9 151.6zm-149.1 0l-176.6 0c6.1-36.4 15.5-68.6 27-94.7c10.5-23.6 22.2-40.7 33.5-51.5C239.4 3.2 248.7 0 256 0s16.6 3.2 27.8 13.8c11.3 10.8 23 27.9 33.5 51.5c11.6 26 20.9 58.2 27 94.7zm-209 0L18.6 160C48.6 85.9 112.2 29.1 190.6 8.4C165.1 42.6 145.3 96.1 135.3 160zM8.1 192l123.1 0c-2.1 20.6-3.2 42-3.2 64s1.1 43.4 3.2 64L8.1 320C2.8 299.5 0 278.1 0 256s2.8-43.5 8.1-64zM194.7 446.6c-11.6-26-20.9-58.2-27-94.6l176.6 0c-6.1 36.4-15.5 68.6-27 94.6c-10.5 23.6-22.2 40.7-33.5 51.5C272.6 508.8 263.3 512 256 512s-16.6-3.2-27.8-13.8c-11.3-10.8-23-27.9-33.5-51.5zM135.3 352c10 63.9 29.8 117.4 55.3 151.6C112.2 482.9 48.6 426.1 18.6 352l116.7 0zm358.1 0c-30 74.1-93.6 130.9-171.9 151.6c25.5-34.2 45.2-87.7 55.3-151.6l116.7 0z"},child:[]}]})(e)}function d(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M495.9 166.6c3.2 8.7 .5 18.4-6.4 24.6l-43.3 39.4c1.1 8.3 1.7 16.8 1.7 25.4s-.
166 17.1-1.7 25.4l43.3 39.4c6.9 6.2 9.6 15.9 6.4 24.6c-4.4 11.9-9.7 23.3-15.8 34.3l-4.7 8.1c-6.6 11-14 21.4-22.1 31.2c-5.9 7.2-15.7 9.6-24.5 6.8l-55.7-17.7c-13.4 10.3-28.2 18.9-44 25.4l-12.5 57.1c-2 9.1-9 16.3-18.2 17.8c-13.8 2.3-28 3.5-42.5 3.5s-28.7-1.2-42.5-3.5c-9.2-1.5-16.2-8.7-18.2-17.8l-12.5-57.1c-15.8-6.5-30.6-15.1-44-25.4L83.1 425.9c-8.8 2.8-18.6 .3-24.5-6.8c-8.1-9.8-15.5-20.2-22.1-31.2l-4.7-8.1c-6.1-11-11.4-22.4-15.8-34.3c-3.2-8.7-.5-18.4 6.4-24.6l43.3-39.4C64.6 273.1 64 264.6 64 256s.6-17.1 1.7-25.4L22.4 191.2c-6.9-6.2-9.6-15.9-6.4-24.6c4.4-11.9 9.7-23.3 15.8-34.3l4.7-8.1c6.6-11 14-21.4 22.1-31.2c5.9-7.2 15.7-9.6 24.5-6.8l55.7 17.7c13.4-10.3 28.2-18.9 44-25.4l12.5-57.1c2-9.1 9-16.3 18.2-17.8C227.3 1.2 241.5 0 256 0s28.7 1.2 42.5 3.5c9.2 1.5 16.2 8.7 18.2 17.8l12.5 57.1c15.8 6.5 30.6 15.1 44 25.4l55.7-17.7c8.8-2.8 18.6-.3 24.5 6.8c8.1 9.8 15.5 20.2 22.1 31.2l4.7 8.1c6.1 11 11.4 22.4 15.8 34.3zM256 336a80 80 0 1 0 0-160 80 80 0 1 0 0 160z"},child:[]}]})(e)}function f(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"},child:[]}]})(e)}function p(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"},child:[]}]})(e)}function m(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"},child:[]}]})(e)}function g(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"},child:[]}]})(e)}function v(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M502.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-128-128c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l370.7 0-73.4 73.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l128-128z"},child:[]}]})(e)}function y(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"},child:[]}]})(e)}function b(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 288 480 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-370.7 0 73.4-73.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-128 128z"},child:[]}]})(e)}},43356(e,t,n){"use strict";n.d(t,{BR8:()=>y,Bc_:()=>c,CKj:()=>l,Fv0:()=>m,GGD:()=>h,HaR:()=>x,Hbo:()=>k,IXo:()=>o,LIi:()=>s,S8s:()=>g,VSk:()=>a,Vap:()=>b,WXf:()=>w,YrT:()=>M,ayE:()=>f,aze:()=>d,cO3:()=>u,fZZ:()=>v,nxz:()=>S,s_k:()=>p,yGN:()=>i,z1n:()=>A});var r=n(65979);function i(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"18",y1:"6",x2:"6",y2:"18"},child:[]},{tag:"line",attr:{x1:"6",y1:"6",x2:"18",y2:"18"},child:[]}]})(e)}function o(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"3 6 5 6 21 6"},child:[]},{tag:"path",attr:{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"},child:[]},{tag:"line",attr:{x1:"10",y1:"11",x2:"10",y2:"17"},child:[]},{tag:"line",attr:{x1:"14",y1:"11",x2:"14",y2:"17"},child:[]}]})(e)}function a(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"3"},child:[]},{tag:"path",attr:{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 
160 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"},child:[]}]})(e)}function s(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"2",y:"2",width:"20",height:"8",rx:"2",ry:"2"},child:[]},{tag:"rect",attr:{x:"2",y:"14",width:"20",height:"8",rx:"2",ry:"2"},child:[]},{tag:"line",attr:{x1:"6",y1:"6",x2:"6.01",y2:"6"},child:[]},{tag:"line",attr:{x1:"6",y1:"18",x2:"6.01",y2:"18"},child:[]}]})(e)}function l(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"11",cy:"11",r:"8"},child:[]},{tag:"line",attr:{x1:"21",y1:"21",x2:"16.65",y2:"16.65"},child:[]}]})(e)}function c(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"},child:[]},{tag:"polyline",attr:{points:"17 21 17 13 7 13 7 21"},child:[]},{tag:"polyline",attr:{points:"7 3 7 8 15 8"},child:[]}]})(e)}function u(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"1 4 1 10 7 10"},child:[]},{tag:"path",attr:{d:"M3.51 15a9 9 0 1 0 2.13-9.36L1 10"},child:[]}]})(e)}function h(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"12",y1:"5",x2:"12",y2:"19"},child:[]},{tag:"line",attr:{x1:"5",y1:"12",x2:"19",y2:"12"},child:[]}]})(e)}function d(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"5 3 19 12 5 21 5 3"},child:[]}]})(e)}function f(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"},child:[]},{tag:"path",attr:{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"},child:[]}]})(e)}function p(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"12 2 2 7 12 12 22 7 12 2"},child:[]},{tag:"polyline",attr:{points:"2 17 12 22 22 17"},child:[]},{tag:"polyline",attr:{points:"2 12 12 17 22 12"},child:[]}]})(e)}function m(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4"},child:[]}]})(e)}function g(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"12",y1:"16",x2:"12",y2:"12"},child:[]},{tag:"line",attr:{x1:"12",y1:"8",x2:"12.01",y2:"8"},child:[]}]})(e)}function v(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"},child:[]},{tag:"circle",attr:{cx:"8.5",cy:"8.5",r:"1.5"},child:[]},{tag:"polyline",attr:{points:"21 15 16 10 5 21"},child:[]}]})(e)}function y(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"},child:[]}]})(e)}function b(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"},child:[]},{tag:"circle",attr:{cx:"12",cy:"12",r:"3"},child:[]}]})(e)}function x(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"},child:[]},{tag:"polyline",attr:{points:"15 3 21 3 21 9"},child:[]},{tag:"line",attr:{x1:"10",y1:"14",x2:"21",y2:"3"},child:[]}]})(e)}function w(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"},child:[]}]})(e)}function k(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"ellipse",attr:{cx:"12",cy:"5",rx:"9",ry:"3"},child:[]},{tag:"path",attr:{d:"M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"},child:[]},{tag:"path",attr:{d:"M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"},child:[]}]})(e)}function S(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"},child:[]},{tag:"path",attr:{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"},child:[]}]})(e)}function M(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"20 6 9 17 4 12"},child:[]}]})(e)}function A(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"22 12 18 12 15 21 9 3 6 12 2 12"},child:[]}]})(e)}},39733(e,t,n){"use strict";n.d(t,{GJ9:()=>s,KOA:()=>i,j2W:()=>o,mKD:()=>a});var r=n(65979);function i(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20.347 3.653a3.936 3.936 0 0 0-5.567 0l-1.75 1.75
16a.75.75 0 0 1-1.06-1.06l1.75-1.75a5.436 5.436 0 0 1 7.688 7.687l-1.564 1.564a.75.75 0 0 1-1.06-1.06l1.563-1.564a3.936 3.936 0 0 0 0-5.567ZM9.786 12.369a.75.75 0 0 1 1.053.125c.096.122.2.24.314.353 1.348 1.348 3.386 1.587 4.89.658l-3.922-2.858a.745.745 0 0 1-.057-.037c-1.419-1.013-3.454-.787-4.784.543L3.653 14.78a3.936 3.936 0 0 0 5.567 5.567l3-3a.75.75 0 1 1 1.06 1.06l-3 3a5.436 5.436 0 1 1-7.688-7.687l3.628-3.628a5.517 5.517 0 0 1 3.014-1.547l-7.05-5.136a.75.75 0 0 1 .883-1.213l20.25 14.75a.75.75 0 0 1-.884 1.213l-5.109-3.722c-2.155 1.709-5.278 1.425-7.232-.53a5.491 5.491 0 0 1-.431-.485.75.75 0 0 1 .125-1.053Z"},child:[]}]})(e)}function o(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M14.78 3.653a3.936 3.936 0 1 1 5.567 5.567l-3.627 3.627a3.936 3.936 0 0 1-5.88-.353.75.75 0 0 0-1.18.928 5.436 5.436 0 0 0 8.12.486l3.628-3.628a5.436 5.436 0 1 0-7.688-7.688l-3 3a.75.75 0 0 0 1.06 1.061l3-3Z"},child:[]},{tag:"path",attr:{d:"M7.28 11.153a3.936 3.936 0 0 1 5.88.353.75.75 0 0 0 1.18-.928 5.436 5.436 0 0 0-8.12-.486L2.592 13.72a5.436 5.436 0 1 0 7.688 7.688l3-3a.75.75 0 1 0-1.06-1.06l-3 3a3.936 3.936 0 0 1-5.567-5.568l3.627-3.627Z"},child:[]}]})(e)}function a(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M3 3a2 2 0 0 1 2-2h9.982a2 2 0 0 1 1.414.586l4.018 4.018A2 2 0 0 1 21 7.018V21a2 2 0 0 1-2 2H4.75a.75.75 0 0 1 0-1.5H19a.5.5 0 0 0 .5-.5V8.5h-4a2 2 0 0 1-2-2v-4H5a.5.5 0 0 0-.5.5v6.25a.75.75 0 0 1-1.5 0Zm12-.5v4a.5.5 0 0 0 .5.5h4a.5.5 0 0 0-.146-.336l-4.018-4.018A.5.5 0 0 0 15 2.5Z"},child:[]},{tag:"path",attr:{d:"M0 13.75C0 12.784.784 12 1.75 12h3c.966 0 1.75.784 1.75 1.75v4a1.75 1.75 0 0 1-1.75 1.75h-3A1.75 1.75 0 0 1 0 17.75Zm1.75-.25a.25.25 0 0 0-.25.25v4c0 .138.112.25.25.25h3a.25.25 0 0 0 .25-.25v-4a.25.25 0 0 0-.25-.25ZM9 12a.75.75 0 0 0 0 1.5h1.5V18H9a.75.75 0 0 0 0 1.5h4.5a.75.75 0 0 0 0-1.5H12v-5.25a.75.75 0 0 0-.75-.75H9Z"},child:[]}]})(e)}function s(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M13.152.682a2.251 2.251 0 0 1 2.269 0l.007.004 6.957 4.276a2.277 2.277 0 0 1 1.126 1.964v7.516c0 .81-.432 1.56-1.133 1.968l-.002.001-11.964 7.037-.004.003c-.706.41-1.578.41-2.284 0l-.026-.015-6.503-4.502a2.268 2.268 0 0 1-1.096-1.943V9.438c0-.392.1-.77.284-1.1l.003-.006.014-.026c.197-.342.48-.627.82-.827h.002L13.152.681Zm.757 1.295h-.001L2.648 8.616l6.248 4.247a.775.775 0 0 0 .758-.01h.001l11.633-6.804-6.629-4.074a.75.75 0 0 0-.75.003ZM8.517 14.33a2.286 2.286 0 0 1-.393-.18l-.023-.014-6.102-4.147v7.003c0 .275.145.528.379.664l.025.014 6.114 4.232V14.33ZM18 9.709l-3.25 1.9v7.548L18 17.245Zm-7.59 4.438-.002.002a2.296 2.296 0 0 1-.391.18v7.612l3.233-1.902v-7.552Zm9.09-5.316v7.532l2.124-1.25a.776.776 0 0 0 .387-.671V7.363Z"},child:[]}]})(e)}},70254(e,t,n){"use strict";n.d(t,{Yoo:()=>i});var r=n(65979);function i(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M345.14 480H274a18 18 0 0 1-18-18v-27.71a31.32 31.32 0 0 0-9.71-22.77c-7.78-7.59-19.08-11.8-30.89-11.51-21.36.5-39.4 19.3-39.4 41.06V462a18 18 0 0 1-18 18H87.62A55.62 55.62 0 0 1 32 424.38V354a18 18 0 0 1 18-18h27.71c9.16 0 18.07-3.92 25.09-11a42.06 42.06 0 0 0 12.2-29.92C114.7 273.89 97.26 256 76.91 256H50a18 18 0 0 1-18-18v-70.38A55.62 55.62 0 0 1 87.62 112h55.24a8 8 0 0 0 8-8v-6.48A65.53 65.53 0 0 1 217.54 32c35.49.62 64.36 30.38 64.36 66.33V104a8 8 0 0 0 8 8h55.24A54.86 54.86 0 0 1 400 166.86v55.24a8 8 0 0 0 8 8h5.66c36.58 0 66.34 29 66.34 64.64 0 36.61-29.39 66.4-65.52 66.4H408a8 8 0 0 0-8 8v56A54.86 54.86 0 0 1 345.14 480z"},child:[]}]})(e)}},65979(e,t,n){"use strict";n.d(t,{k5:()=>u});var r=n(50405),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},o=r.createContext&&r.createContext(i),a=["attr","size","title"];function s(){return(s=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)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
16t%2?l(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e){return t=>r.createElement(h,s({attr:c({},e.attr)},t),function e(t){return t&&t.map((t,n)=>r.createElement(t.tag,c({key:n},t.attr),e(t.child)))}(e.child))}function h(e){var t=t=>{var n,{attr:i,size:o,title:l}=e,u=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,a),h=o||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),r.createElement("svg",s({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,u,{className:n,style:c(c({color:e.color||t.color},t.style),e.style),height:h,width:h,xmlns:"http://www.w3.org/2000/svg"}),l&&r.createElement("title",null,l),e.children)};return void 0!==o?r.createElement(o.Consumer,null,e=>t(e)):t(i)}},34038(e,t,n){"use strict";n.d(t,{CBv:()=>P,Eyn:()=>b,Fnz:()=>k,GzK:()=>A,H6t:()=>g,JbZ:()=>d,KVh:()=>C,LG1:()=>x,Mst:()=>a,Oz0:()=>M,Pqg:()=>l,SXS:()=>i,TaX:()=>E,TdP:()=>S,Uth:()=>o,ZB5:()=>h,ZT8:()=>w,_rf:()=>m,czG:()=>p,dPp:()=>v,hpl:()=>c,kIN:()=>s,lXh:()=>f,sDI:()=>y,wwB:()=>T,xPd:()=>u,zrT:()=>O});var r=n(65979);function i(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 6 6 18"},child:[]},{tag:"path",attr:{d:"m6 6 12 12"},child:[]}]})(e)}function o(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M15 4V2"},child:[]},{tag:"path",attr:{d:"M15 16v-2"},child:[]},{tag:"path",attr:{d:"M8 9h2"},child:[]},{tag:"path",attr:{d:"M20 9h2"},child:[]},{tag:"path",attr:{d:"M17.8 11.8 19 13"},child:[]},{tag:"path",attr:{d:"M15 9h.01"},child:[]},{tag:"path",attr:{d:"M17.8 6.2 19 5"},child:[]},{tag:"path",attr:{d:"m3 21 9-9"},child:[]},{tag:"path",attr:{d:"M12.2 6.2 11 5"},child:[]}]})(e)}function a(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M3 6h18"},child:[]},{tag:"path",attr:{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"},child:[]},{tag:"path",attr:{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"},child:[]},{tag:"line",attr:{x1:"10",x2:"10",y1:"11",y2:"17"},child:[]},{tag:"line",attr:{x1:"14",x2:"14",y1:"11",y2:"17"},child:[]}]})(e)}function s(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z"},child:[]},{tag:"circle",attr:{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor"},child:[]}]})(e)}function l(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{width:"18",height:"18",x:"3",y:"3",rx:"2"},child:[]},{tag:"path",attr:{d:"M8 12h8"},child:[]}]})(e)}function c(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{width:"18",height:"18",x:"3",y:"3",rx:"2"},child:[]},{tag:"path",attr:{d:"m9 12 2 2 4-4"},child:[]}]})(e)}function u(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"},child:[]},{tag:"circle",attr:{cx:"12",cy:"12",r:"3"},child:[]}]})(e)}function h(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20 7h-9"},child:[]},{tag:"path",attr:{d:"M14 17H5"},child:[]},{tag:"circle",attr:{cx:"17",cy:"17",r:"3"},child:[]},{tag:"circle",attr:{cx:"7",cy:"7",r:"3"},child:[]}]})(e)}function d(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"},child:[]},{tag:"path",attr:{d:"M21 3v5h-5"},child:[]},{tag:"path",attr:{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"},child:[]},{tag:"path",attr:{d:"M8 16H3v5"},child:[]}]})(e)}function f(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 2v10"},child:[]},{tag:"path",attr:{d:"M18.4 6.6a9 9 0 1 1-12.77.04"},child:[]}]})(e)}function p(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18.36 6.64A9 9 0 0 1 20.77 15"},child:[]},{tag:"path",attr:{d:"M6.16 6.16a9 9 0 1 0 12.68 12.68"},child:[]},{tag:"path",attr:{d:"M12 2v4"},child:[]},{tag:"path",attr:{d:"m2 2 20 20"},child:[]}]})(e)}function m(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M5 12h14"},child:[]},{tag:"path",attr:{d:"M12 5v14"},child:[]}]})(e)}function g(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{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"},child:[]},{tag:"path",attr:{d:"m15 5 4 4"},child:[]}]})(e)}function v(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"m8 6 4-4 4 4"},child:[]},{tag:"path",attr:{d:"M12 2v10.3a4 4 0 0 1-1.172 2.872L4 22"},child:[]},{tag:"path",attr:{d:"m20 22-5-5"},child:[]}]})(e)}function y(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M9 17H7A5 5 0 0 1 7 7h2"},child:[]},{tag:"path",attr:{d:"M15 7h2a5 5 0 1 1 0 10h-2"},child:[]},{tag:"line",attr:{x1:"8",x2:"16",y1:"12",y2:"12"},child:[]}]})(e)}function b(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"},child:[]},{tag:"path",attr:{d:"M3 3v5h5"},child:[]},{tag:"path",attr:{d:"M12 7v5l4 2"},child:[]}]})(e)}function x(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"path",attr:{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"},child:[]},{tag:"path",attr:{d:"M2 12h20"},child:[]}]})(e)}function w(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"},child:[]},{tag:"circle",attr:{cx:"12",cy:"12",r:"3"},child:[]}]})(e)}function k(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"m15 18-.722-3.25"},child:[]},{tag:"path",attr:{d:"M2 8a10.645 10.645 0 0 0 20 0"},child:[]},{tag:"path",attr:{d:"m20 15-1.726-2.05"},child:[]},{tag:"path",attr:{d:"m4 15 1.726-2.05"},child:[]},{tag:"path",attr:{d:"m9 18 .722-3.25"},child:[]}]})(e)}function S(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M15 3h6v6"},child:[]},{tag:"path",attr:{d:"M10 14 21 3"},child:[]},{tag:"path",attr:{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"},child:[]}]})(e)}function M(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"},child:[]},{tag:"polyline",attr:{points:"7 10 12 15 17 10"},child:[]},{tag:"line",attr:{x1:"12",x2:"12",y1:"15",y2:"3"},child:[]}]})(e)}function A(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"path",attr:{d:"m9 12 2 2 4-4"},child:[]}]})(e)}function E(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"m17 11-5-5-5 5"},child:[]},{tag:"path",attr:{d:"m17 18-5-5-5 5"},child:[]}]})(e)}function C(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"m7 6 5 5 5-5"},child:[]},{tag:"path",attr:{d:"m7 13 5 5 5-5"},child:[]}]})(e)}function O(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"m6 9 6 6 6-6"},child:[]}]})(e)}function P(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"m21 16-4 4-4-4"},child:[]},{tag:"path",attr:{d:"M17 20V4"},child:[]},{tag:"path",attr:{d:"m3 8 4-4 4 4"},child:[]},{tag:"path",attr:{d:"M7 4v16"},child:[]}]})(e)}function T(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"m12 19-7-7 7-7"},child:[]},{tag:"path",attr:{d:"M19 12H5"},child:[]}]})(e)}}
16,10820(e,t,n){"use strict";n.d(t,{Gfv:()=>u,KBW:()=>l,LTk:()=>i,S$x:()=>m,TOn:()=>p,Xc1:()=>c,iDz:()=>h,joZ:()=>o,pCc:()=>d,xbI:()=>s,y2g:()=>a,zZ_:()=>f});var r=n(65979);function i(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"},child:[]}]})(e)}function o(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17.65 6.35A7.958 7.958 0 0 0 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},child:[]}]})(e)}function a(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m14.17 13.71 1.4-2.42c.09-.15.05-.34-.08-.45l-1.48-1.16c.03-.22.05-.45.05-.68s-.02-.46-.05-.69l1.48-1.16c.13-.11.17-.3.08-.45l-1.4-2.42c-.09-.15-.27-.21-.43-.15l-1.74.7c-.36-.28-.75-.51-1.18-.69l-.26-1.85a.364.364 0 0 0-.35-.29h-2.8c-.17 0-.32.13-.35.3L6.8 4.15c-.42.18-.82.41-1.18.69l-1.74-.7c-.16-.06-.34 0-.43.15l-1.4 2.42c-.09.15-.05.34.08.45l1.48 1.16c-.03.22-.05.45-.05.68s.02.46.05.69l-1.48 1.16c-.13.11-.17.3-.08.45l1.4 2.42c.09.15.27.21.43.15l1.74-.7c.36.28.75.51 1.18.69l.26 1.85c.03.16.18.29.35.29h2.8c.17 0 .32-.13.35-.3l.26-1.85c.42-.18.82-.41 1.18-.69l1.74.7c.16.06.34 0 .43-.15zM8.81 11c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM21.92 18.67l-.96-.74c.02-.14.04-.29.04-.44 0-.15-.01-.3-.04-.44l.95-.74c.08-.07.11-.19.05-.29l-.9-1.55c-.05-.1-.17-.13-.28-.1l-1.11.45c-.23-.18-.48-.33-.76-.44l-.17-1.18a.216.216 0 0 0-.21-.2h-1.79c-.11 0-.21.08-.22.19l-.17 1.18c-.27.12-.53.26-.76.44l-1.11-.45a.23.23 0 0 0-.28.1l-.9 1.55c-.05.1-.04.22.05.29l.95.74a3.145 3.145 0 0 0 0 .88l-.95.74c-.08.07-.11.19-.05.29l.9 1.55c.05.1.17.13.28.1l1.11-.45c.23.18.48.33.76.44l.17 1.18c.02.11.11.19.22.19h1.79c.11 0 .21-.08.22-.19l.17-1.18c.27-.12.53-.26.75-.44l1.12.45c.1.04.22 0 .28-.1l.9-1.55c.06-.09.03-.21-.05-.28zm-4.29.16a1.35 1.35 0 1 1 .001-2.701 1.35 1.35 0 0 1-.001 2.701z"},child:[]}]})(e)}function s(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16 11h-1V3c0-1.1-.9-2-2-2h-2c-1.1 0-2 .9-2 2v8H8c-2.76 0-5 2.24-5 5v7h18v-7c0-2.76-2.24-5-5-5zm3 10h-2v-3c0-.55-.45-1-1-1s-1 .45-1 1v3h-2v-3c0-.55-.45-1-1-1s-1 .45-1 1v3H9v-3c0-.55-.45-1-1-1s-1 .45-1 1v3H5v-5c0-1.65 1.35-3 3-3h8c1.65 0 3 1.35 3 3v5z"},child:[]}]})(e)}function l(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m18 4 2 3h-3l-2-3h-2l2 3h-3l-2-3H8l2 3H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4h-4zm-6.75 11.25L10 18l-1.25-2.75L6 14l2.75-1.25L10 10l1.25 2.75L14 14l-2.75 1.25zm5.69-3.31L16 14l-.94-2.06L13 11l2.06-.94L16 8l.94 2.06L19 11l-2.06.94z"},child:[]}]})(e)}function c(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M21 11.5v-1c0-.8-.7-1.5-1.5-1.5H16v6h1.5v-2h1.1l.9 2H21l-.9-2.1c.5-.3.9-.8.9-1.4zm-1.5 0h-2v-1h2v1zm-13-.5h-2V9H3v6h1.5v-2.5h2V15H8V9H6.5v2zM13 9H9.5v6H13c.8 0 1.5-.7 1.5-1.5v-3c0-.8-.7-1.5-1.5-1.5zm0 4.5h-2v-3h2v3z"},child:[]}]})(e)}function u(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M2.5 4v3h5v12h3V7h5V4h-13zm19 5h-9v3h3v7h3v-7h3V9z"},child:[]}]})(e)}function h(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8 12.5v-9l6 4.5-6 4.5z"},child:[]}]})(e)}function d(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM7.76 16.24l-1.41 1.41A7.909 7.909 0 0 1 4 12c0-2.05.78-4.1 2.34-5.66l1.41 1.41C6.59 8.93 6 10.46 6 12s.59 3.07 1.76 4.24zM12 16c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm5.66 1.66-1.41-1.41C17.41 15.07 18 13.54 18 12s-.59-3.07-1.76-4.24l1.41-1.41A7.909 7.909 0 0 1 20 12c0 2.05-.78 4.1-2.34 5.66zM12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"},child:[]}]})(e)}function f(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM4 12h4v2H4v-2zm10 6H4v-2h10v2zm6 0h-4v-2h4v2zm0-4H10v-2h10v2z"},child:[]}]})(e)}function p(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zm-2.17-1.5 2.14-1.53 2.14 1.53-.83-2.46 2.15-1.5h-2.62L9.47 6l-.84 2.54H6l2.14 1.49z"},child:[]}]})(e)}function m(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M7 13h4v4H7zM13 13h4v4h-4z"},child:[]},{tag:"path",attr:{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z"},child:[]},{tag:"path",attr:{d:"M7 7h4v4H7zM13 7h4v4h-4z"},child:[]}]})(e)}},92814(e,t,n){"use strict";n.d(t,{PYM:()=>i,h4A:()=>o});var r=n(65979);function i(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M234.29,114.85l-45,38.83L203,211.75a16.4,16.4,0,0,1-24.5,17.82L128,198.49,77.47,229.57A16.4,16.4,0,0,1,53,211.75l13.76-58.07-45-38.83A16.46,16.46,0,0,1,31.08,86l59-4.76,22.76-55.08a16.36,16.36,0,0,1,30.27,0l22.75,55.08,59,4.76a16.46,16.46,0,0,1,9.37,28.86Z"},child:[]}]})(e)}function o(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M243,96a20.33,20.33,0,0,0-17.74-14l-56.59-4.57L146.83,24.62a20.36,20.36,0,0,0-37.66,0L87.35,77.44,30.76,82A20.45,20.45,0,0,0,19.1,117.88l43.18,37.24-13.2,55.7A20.37,20.37,0,0,0,79.57,233L128,203.19,176.43,233a20.39,20.39,0,0,0,30.49-22.15l-13.2-55.7,43.18-37.24A20.43,20.43,0,0,0,243,96ZM172.53,141.7a12,12,0,0,0-3.84,11.86L181.58,208l-47.29-29.08a12,12,0,0,0-12.58,0L74.42,208l12.89-54.4a12,12,0,0,0-3.84-11.86L41.2,105.24l55.4-4.47a12,12,0,0,0,10.13-7.38L128,41.89l21.27,51.5a12,12,0,0,0,10.13,7.38l55.4,4.47Z"},child:[]}]})(e)}},55008(e,t,n){"use strict";n.d(t,{j$e:()=>i});var r=n(65979);function i(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"
16currentColor"},child:[{tag:"path",attr:{d:"M12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5ZM13 13V9H11V13H8L12 17L16 13H13Z"},child:[]}]})(e)}},62447(e,t,n){"use strict";n.d(t,{OnT:()=>i,Ylh:()=>a,Zak:()=>o});var r=n(65979);function i(e){return(0,r.k5)({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M11.351 2.715c-2.7 0-4.986.025-6.83.26C2.078 3.285 0 5.154 0 8.61c0 3.506.182 6.13 1.585 8.493 1.584 2.701 4.233 4.182 7.662 4.182h.83c4.209 0 6.494-2.234 7.637-4a9.5 9.5 0 0 0 1.091-2.338C21.792 14.688 24 12.22 24 9.208v-.415c0-3.247-2.13-5.507-5.792-5.87-1.558-.156-2.65-.208-6.857-.208m0 1.947c4.208 0 5.09.052 6.571.182 2.624.311 4.13 1.584 4.13 4v.39c0 2.156-1.792 3.844-3.87 3.844h-.935l-.156.649c-.208 1.013-.597 1.818-1.039 2.546-.909 1.428-2.545 3.064-5.922 3.064h-.805c-2.571 0-4.831-.883-6.078-3.195-1.09-2-1.298-4.155-1.298-7.506 0-2.181.857-3.402 3.012-3.714 1.533-.233 3.559-.26 6.39-.26m6.547 2.287c-.416 0-.65.234-.65.546v2.935c0 .311.234.545.65.545 1.324 0 2.051-.754 2.051-2s-.727-2.026-2.052-2.026m-10.39.182c-1.818 0-3.013 1.48-3.013 3.142 0 1.533.858 2.857 1.949 3.897.727.701 1.87 1.429 2.649 1.896a1.47 1.47 0 0 0 1.507 0c.78-.467 1.922-1.195 2.623-1.896 1.117-1.039 1.974-2.364 1.974-3.897 0-1.662-1.247-3.142-3.039-3.142-1.065 0-1.792.545-2.338 1.298-.493-.753-1.246-1.298-2.312-1.298"},child:[]}]})(e)}function o(e){return(0,r.k5)({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M17.625 1.499c-2.32 0-4.354 1.203-5.625 3.03-1.271-1.827-3.305-3.03-5.625-3.03C3.129 1.499 0 4.253 0 8.249c0 4.275 3.068 7.847 5.828 10.227a33.14 33.14 0 0 0 5.616 3.876l.028.017.008.003-.001.003c.163.085.342.126.521.125.179.001.358-.041.521-.125l-.001-.003.008-.003.028-.017a33.14 33.14 0 0 0 5.616-3.876C20.932 16.096 24 12.524 24 8.249c0-3.996-3.129-6.75-6.375-6.75zm-.919 15.275a30.766 30.766 0 0 1-4.703 3.316l-.004-.002-.004.002a30.955 30.955 0 0 1-4.703-3.316c-2.677-2.307-5.047-5.298-5.047-8.523 0-2.754 2.121-4.5 4.125-4.5 2.06 0 3.914 1.479 4.544 3.684.143.495.596.797 1.086.796.49.001.943-.302 1.085-.796.63-2.205 2.484-3.684 4.544-3.684 2.004 0 4.125 1.746 4.125 4.5 0 3.225-2.37 6.216-5.048 8.523z"},child:[]}]})(e)}function a(e){return(0,r.k5)({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20.216 6.415l-.132-.666c-.119-.598-.388-1.163-1.001-1.379-.197-.069-.42-.098-.57-.241-.152-.143-.196-.366-.231-.572-.065-.378-.125-.756-.192-1.133-.057-.325-.102-.69-.25-.987-.195-.4-.597-.634-.996-.788a5.723 5.723 0 00-.626-.194c-1-.263-2.05-.36-3.077-.416a25.834 25.834 0 00-3.7.062c-.915.083-1.88.184-2.75.5-.318.116-.646.256-.888.501-.297.302-.393.77-.177 1.146.154.267.415.456.692.58.36.162.737.284 1.123.366 1.075.238 2.189.331 3.287.37 1.218.05 2.437.01 3.65-.118.299-.033.598-.073.896-.119.352-.054.578-.513.474-.834-.124-.383-.457-.531-.834-.473-.466.074-.96.108-1.382.146-1.177.08-2.358.082-3.536.006a22.228 22.228 0 01-1.157-.107c-.086-.01-.18-.025-.258-.036-.243-.036-.484-.08-.724-.13-.111-.027-.111-.185 0-.212h.005c.277-.06.557-.108.838-.147h.002c.131-.009.263-.032.394-.048a25.076 25.076 0 013.426-.12c.674.019 1.347.067 2.017.144l.228.031c.267.04.533.088.798.145.392.085.895.113 1.07.542.055.137.08.288.111.431l.319 1.484a.237.237 0 01-.199.284h-.003c-.037.006-.075.01-.112.015a36.704 36.704 0 01-4.743.295 37.059 37.059 0 01-4.699-.304c-.14-.017-.293-.042-.417-.06-.326-.048-.649-.108-.973-.161-.393-.065-.768-.032-1.123.161-.29.16-.527.404-.675.701-.154.316-.199.66-.267 1-.069.34-.176.707-.135 1.056.087.753.613 1.365 1.37 1.502a39.69 39.69 0 0011.343.376.483.483 0 01.535.53l-.071.697-1.018 9.907c-.041.41-.047.832-.125 1.237-.122.637-.553 1.028-1.182 1.171-.577.131-1.165.2-1.756.205-.656.004-1.31-.025-1.966-.022-.699.004-1.556-.06-2.095-.58-.475-.458-.54-1.174-.605-1.793l-.731-7.013-.322-3.094c-.037-.351-.286-.695-.678-.678-.336.015-.718.3-.678.679l.228 2.185.949 9.112c.147 1.344 1.174 2.068 2.446 2.272.742.12 1.503.144 2.257.156.966.016 1.942.053 2.892-.122 1.408-.258 2.465-1.198 2.616-2.657.34-3.332.683-6.663 1.024-9.995l.215-2.087a.484.484 0 01.39-.426c.402-.078.787-.212 1.074-.518.455-.488.546-1.124.385-1.766zm-1.478.772c-.145.137-.363.201-.578.233-2.416.359-4.866.54-7.308.46-1.748-.06-3.477-.254-5.207-.498-.17-.024-.353-.055-.47-.18-.22-.236-.111-.71-.054-.995.052-.26.152-.609.463-.646.484-.057 1.046.148 1.526.22.577.088 1.156.159 1.737.212 2.48.226 5.002.19 7.472-.14.45-.06.899-.13 1.345-.21.399-.072.84-.206 1.08.206.166.281.188.657.162.974a.544.544 0 01-.169.364zm-6.159 3.9c-.862.37-1.84.788-3.109.788a5.884 5.884 0 01-1.569-.217l.877 9.004c.065.78.717 1.38 1.5 1.38 0 0 1.243.065 1.658.065.447 0 1.786-.065 1.786-.065.783 0 1.434-.6 1.499-1.38l.94-9.95a3.996 3.996 0 00-1.322-.238c-.826 0-1.491.284-2.26.613z"},child:[]}]})(e)}},97737(e,t,n){"use strict";n.d(t,{PuI:()=>a,QDx:()=>s,awR:()=>l,o$K:()=>o,tTb:()=>i});var r=n(65979);function i(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M19 8.71l-5.333 -4.148a2.666 2.666 0 0 0 -3.274 0l-5.334 4.148a2.665 2.665 0 0 0 -1.029 2.105v7.2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-7.2c0 -.823 -.38 -1.6 -1.03 -2.105"},child:[]},{tag:"path",attr:{d:"M16 15c-2.21 1.333 -5.792 1.333 -8 0"},child:[]}]})(e)}function o(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M7.097 7.125l-2.037 1.585a2.665 2.665 0 0 0 -1.029 2.105v7.2a2 2 0 0 0 2 2h12c.559 0 1.064 -.229 1.427 -.598m.572 -3.417v-5.185c0 -.823 -.38 -1.6 -1.03 -2.105l-5.333 -4.148a2.666 2.666 0 0 0 -3.274 0l-1.029 .8"},child:[]},{tag:"path",attr:{d:"M15.332 15.345c-2.213 .976 -5.335 .86 -7.332 -.345"},child:[]},{tag:"path",attr:{d:"M3 3l18 18"},child:[]}]})(e)}function a(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"},child:[]},{tag:"path",attr:{d:"M21 21l-6 -6"},child:[]}]})(e)}function s(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M5.039 5.062a7 7 0 0 0 9.91 9.89m1.584 -2.434a7 7 0 0 0 -9.038 -9.057"},child:[]},{tag:"path",attr:{d:"M3 3l18 18"},child:[]}]})(e)}function l(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11.19 20.27l-2.19 .73v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v1.5"},child:[]},{tag:"path",attr:{d:"M20 21l2 -2l-2 -2"},child:[]},{tag:"path",attr:{d:"M17 17l-2 2l2 2"},child:[]}]})(e)}},50496(e,t,n){"use strict";n.d(t,{oz:()=>nD});var r={};n.r(r),n.d(r,{boolean:()=>g,booleanish:()=>v,commaOrSpaceSeparated:()=>k,commaSeparated:()=>w,number:()=>b,overloadedBoolean:()=>y,spaceSeparated:()=>x});var i={};n.r(i),n.d(i,{attentionMarkers:()=>tC,contentInitial:()=>tw,disable:()=>tO,document:()=>tx,flow:()=>tS,flowInitial:()=>tk,insideSpan:()=>tE,string:()=>tM,text:()=>tA});let o=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,a=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,s={};function l(e,t){return((t||s).jsx?a:o).test(e)}let c=/[ \t\n\f\r]/g;function u(e){return""===e.replace(c,"")}class h{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function d(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new h(n,r,t)}function f(e){return e.toLowerCase()}h.prototype.normal={},h.prototype.property={},h.prototype.space=void 0;class p{constructor(e,t){this.attribute=t,this.property=e}}p.prototype.attribute="",p.prototype.booleanish=!1,p.prototype.boolean=!1,p.prototype.commaOrSpaceSeparated=!1,p.prototype.commaSeparated=!1,p.prototype.defined=!1,p.prototype.mustUseProperty=!1,p.prototype.number=!1,p.prototype.overloadedBoolean=!1,p.prototype.property="",p.prototype.spaceSeparated=!1,p.prototype.space=void 0;let m=0,g=S(),v=S(),y=S(),b=S(),x=S(),w=S(),k=S();function S(){return 2**++m}let M=Object.keys(r);class A extends p{constructor(e,t,n,i){let o=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",i),"number"==typeof n)for(;++o<M.length;){const e=M[o];!function(e,t,n){n&&(e[t]=n)}(this,M[o],(n&r[e])===r[e])}}}function E(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let o=new A(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[f(r)]=r,n[f(o.attribute)]=r}return new h(t,n,e.space)}A.prototype.defined=!0;let C=E({properties:{ariaActiveDescendant:null,ariaAtomic:v,ariaAutoComplete:null,ariaBusy:v,ariaChecked:v,ariaColCount:b,ariaColIndex:b,ariaColSpan:b,ariaControl
16s:x,ariaCurrent:null,ariaDescribedBy:x,ariaDetails:null,ariaDisabled:v,ariaDropEffect:x,ariaErrorMessage:null,ariaExpanded:v,ariaFlowTo:x,ariaGrabbed:v,ariaHasPopup:null,ariaHidden:v,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:x,ariaLevel:b,ariaLive:null,ariaModal:v,ariaMultiLine:v,ariaMultiSelectable:v,ariaOrientation:null,ariaOwns:x,ariaPlaceholder:null,ariaPosInSet:b,ariaPressed:v,ariaReadOnly:v,ariaRelevant:null,ariaRequired:v,ariaRoleDescription:x,ariaRowCount:b,ariaRowIndex:b,ariaRowSpan:b,ariaSelected:v,ariaSetSize:b,ariaSort:null,ariaValueMax:b,ariaValueMin:b,ariaValueNow:b,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function O(e,t){return t in e?e[t]:t}function P(e,t){return O(e,t.toLowerCase())}let T=E({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:w,acceptCharset:x,accessKey:x,action:null,allow:null,allowFullScreen:g,allowPaymentRequest:g,allowUserMedia:g,alpha:g,alt:null,as:null,async:g,autoCapitalize:null,autoComplete:x,autoFocus:g,autoPlay:g,blocking:x,capture:null,charSet:null,checked:g,cite:null,className:x,closedBy:null,colorSpace:null,cols:b,colSpan:b,command:null,commandFor:null,content:null,contentEditable:v,controls:g,controlsList:x,coords:b|w,crossOrigin:null,data:null,dateTime:null,decoding:null,default:g,defer:g,dir:null,dirName:null,disabled:g,download:y,draggable:v,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:g,formTarget:null,headers:x,height:b,hidden:y,high:b,href:null,hrefLang:null,htmlFor:x,httpEquiv:x,id:null,imageSizes:null,imageSrcSet:null,inert:g,inputMode:null,integrity:null,is:null,isMap:g,itemId:null,itemProp:x,itemRef:x,itemScope:g,itemType:x,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:g,low:b,manifest:null,max:null,maxLength:b,media:null,method:null,min:null,minLength:b,multiple:g,muted:g,name:null,nonce:null,noModule:g,noValidate:g,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:g,optimum:b,pattern:null,ping:x,placeholder:null,playsInline:g,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:g,referrerPolicy:null,rel:x,required:g,reversed:g,rows:b,rowSpan:b,sandbox:x,scope:null,scoped:g,seamless:g,selected:g,shadowRootClonable:g,shadowRootCustomElementRegistry:g,shadowRootDelegatesFocus:g,shadowRootMode:null,shadowRootSerializable:g,shape:null,size:b,sizes:null,slot:null,span:b,spellCheck:v,src:null,srcDoc:null,srcLang:null,srcSet:null,start:b,step:null,style:null,tabIndex:b,target:null,title:null,translate:null,type:null,typeMustMatch:g,useMap:null,value:v,width:b,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:x,axis:null,background:null,bgColor:null,border:b,borderColor:null,bottomMargin:b,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:g,declare:g,event:null,face:null,frame:null,frameBorder:null,hSpace:b,leftMargin:b,link:null,longDesc:null,lowSrc:null,marginHeight:b,marginWidth:b,noResize:g,noHref:g,noShade:g,noWrap:g,object:null,profile:null,prompt:null,rev:null,rightMargin:b,rules:null,scheme:null,scrolling:v,standby:null,summary:null,text:null,topMargin:b,valueType:null,version:null,vAlign:null,vLink:null,vSpace:b,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:g,disablePictureInPicture:g,disableRemotePlayback:g,exportParts:w,part:x,prefix:null,property:null,results:b,security:null,unselectable:null},space:"html",transform:P}),D=E({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRen
16dering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
16-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:k,accentHeight:b,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:b,amplitude:b,arabicForm:null,ascent:b,attributeName:null,attributeType:null,azimuth:b,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:b,by:null,calcMode:null,capHeight:b,className:x,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:b,diffuseConstant:b,direction:null,display:null,dur:null,divisor:b,dominantBaseline:null,download:g,dx:null,dy:null,edgeMode:null,editable:null,elevation:b,enableBackground:null,end:null,event:null,exponent:b,externalResourcesRequired:null,fill:null,fillOpacity:b,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:w,g2:w,glyphName:w,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:b,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:b,horizOriginX:b,horizOriginY:b,id:null,ideographic:b,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:b,k:b,k1:b,k2:b,k3:b,k4:b,kernelMatrix:k,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:b,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:b,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
vendor: 5,256 bytes, line 16
16Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:b,overlineThickness:b,paintOrder:null,panose1:null,path:null,pathLength:b,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:x,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:b,pointsAtY:b,pointsAtZ:b,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:k,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:k,rev:k,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:k,requiredFeatures:k,requiredFonts:k,requiredFormats:k,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:b,specularExponent:b,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:b,strikethroughThickness:b,string:null,stroke:null,strokeDashArray:k,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:b,strokeOpacity:b,strokeWidth:null,style:null,surfaceScale:b,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:k,tabIndex:b,tableValues:null,target:null,targetX:b,targetY:b,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:k,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:b,underlineThickness:b,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:b,values:null,vAlphabetic:b,vMathematical:b,vectorEffect:null,vHanging:b,vIdeographic:b,version:null,vertAdvY:b,vertOriginX:b,vertOriginY:b,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:b,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:O}),R=E({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),j=E({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:P}),I=E({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),z=d([C,T,R,j,I],"html"),_=d([C,D,R,j,I],"svg"),L=/[A-Z]/g,N=/-[a-z]/g,B=/^data[-\w.:]+$/i;function F(e){return"-"+e.toLowerCase()}function V(e){return e.charAt(1).toUpperCase()}let H={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var W=n(41832);let $=K("end"),U=K("start");function K(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function q(e){return e&&"object"==typeof e?"position"in e||"type"in e?Z(e.position):"start"in e||"end"in e?Z(e):"line"in e||"column"in e?G(e):"":""}function G(e){return Y(e&&e.line)+":"+Y(e&&e.column)}function Z(e){return G(e&&e.start)+"-"+G(e&&e.end)}function Y(e){return e&&"number"==typeof e?e:1}class X extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},o=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(o=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){const e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}const a=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=a?a.line:void 0,this.name=q(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}X.prototype.file="",X.prototype.name="",X.prototype.reason="",X.prototype.message="",X.prototype.stack="",X.prototype.column=void 0,X.prototype.line=void 0,X.prototype.ancestors=void 0,X.prototype.cause=void 0,X.prototype.fatal=void 0,X.prototype.place=void 0,X.prototype.ruleId=void 0,X.prototype.source=void 0;let J={}.hasOwnProperty,Q=new Map,ee=/[A-Z]/g,et=new Set(["table","tbody","thead","tfoot","tr"]),en=new Set(["td","th"]),er="https://github.com/syntax-tree/hast-util-to-jsx-runtime";
16function ei(e,t,n){var r,i,o,a,s,l,c,h,d;let m,g,v,y,b,x,w,k,S,M,E;return"element"===t.type?(r=e,i=t,o=n,g=m=r.schema,"svg"===i.tagName.toLowerCase()&&"html"===m.space&&(r.schema=_),r.ancestors.push(i),v=el(r,i.tagName,!1),y=function(e,t){let n,r,i={};for(r in t.properties)if("children"!==r&&J.call(t.properties,r)){let o=function(e,t,n){let r=function(e,t){let n=f(t),r=t,i=p;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&B.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(N,V);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!N.test(e)){let n=e.replace(L,F);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=A}return new i(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){var i;let t;if(Array.isArray(n)&&(n=r.commaSeparated?(t={},(""===(i=n)[i.length-1]?[...i,""]:i).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return W(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new X("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=er+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,n={};for(t in e)J.call(e,t)&&(n[function(e){let t=e.replace(ee,eu);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?H[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(o){let[r,a]=o;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof a&&en.has(t.tagName)?n=a:i[r]=a}}return n&&((i.style||(i.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),i}(r,i),b=es(r,i),et.has(i.tagName)&&(b=b.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&u(e.value):u(e))})),eo(r,y,v,i),ea(y,b),r.ancestors.pop(),r.schema=m,r.create(i,v,y,o)):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}ec(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?(a=e,s=t,l=n,w=x=a.schema,"svg"===s.name&&"html"===x.space&&(a.schema=_),a.ancestors.push(s),k=null===s.name?a.Fragment:el(a,s.name,!0),S=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let o=i.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else ec(e,t.position);else{let i,o=r.name;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,i=e.evaluater.evaluateExpression(t.expression)}else ec(e,t.position);else i=null===r.value||r.value;n[o]=i}return n}(a,s),M=es(a,s),eo(a,S,k,s),ea(S,M),a.ancestors.pop(),a.schema=x,a.create(s,k,S,l)):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ec(e,t.position)}(e,t):"root"===t.type?(c=e,h=t,d=n,ea(E={},es(c,h)),c.create(h,c.Fragment,E,d)):"text"===t.type?t.value:void 0}function eo(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function ea(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function es(e,t){let n=[],r=-1,i=e.passKeys?new Map:Q;for(;++r<t.children.length;){let o,a=t.children[r];if(e.passKeys){let e="element"===a.type?a.tagName:"mdxJsxFlowElement"===a.type||"mdxJsxTextElement"===a.type?a.name:void 0;if(e){let t=i.get(e)||0;o=e+"-"+t,i.set(e,t+1)}}let s=ei(e,a,o);void 0!==s&&n.push(s)}return n}function el(e,t,n){let r;if(n)if(t.includes(".")){let e,n=t.split("."),i=-1;for(;++i<n.length;){let t=l(n[i])?{type:"Identifier",name:n[i]}:{type:"Literal",value:n[i]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(i&&"Literal"===t.type),optional:!1}:t}r=e}else r=l(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){let t=r.value;return J.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);ec(e)}function ec(e,t){let n=new X("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=er+"#cannot-handle-mdx-estrees-without-createevaluater",n}function eu(e){return"-"+e.toLowerCase()}let eh={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var ed=n(49793);n(50405);let ef={};function ep(e,t,n){var r;if((r=e)&&"object"==typeof r){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return em(e.children,t,n)}return Array.isArray(e)?em(e,t,n):""}function em(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=ep(e[i],t,n);return r.join("")}function eg(e,t,n,r){let i,o=e.length,a=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);a<r.length;)(i=r.slice(a,a+1e4)).unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function ev(e,t){return e.length>0?(eg(e,e.length,0,t),e):t}class ey{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?1/0:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),1/0);return n&&eb(this.left,n),r.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),eb(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),eb(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(e<this.left.length){let t=this.left.splice(e,1/0);eb(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);eb(this.left,t.reverse())}}}function eb(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function ex(e){let t,n,r,i,o,a,s,l={},c=-1,u=new ey(e);for(;++c<u.length;){for(;c in l;)c=l[c];if(t=u.get(c),c&&"chunkFlow"===t[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&((r=0)<(a=t[1]._tokenizer.events).length&&"lineEndingBlank"===a[r][1].type&&(r+=2),r<a.length&&"content"===a[r][1].type))for(;++r<a.length&&"content"!==a[r][1].type;)"chunkText"===a[r][1].type&&(a[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(l,function(e,t){let n,r,i=e.get(t)[1],o=e.get(t)[2],a=t-1,s=[],l=i._tokenizer;!l&&(l=o.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));let c=l.events,u=[],h={},d=-1,f=i,p=0,m=0,g=[0];for(;f;){for(;e.get(++a)[1]!==f;);s.push(a),!f._tokenizer&&(n=o.sliceStream(f),f.next||n.push(null),r&&l.defineSki
16p(f.start),f._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(n),f._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),r=f,f=f.next}for(f=i;++d<c.length;)"exit"===c[d][0]&&"enter"===c[d-1][0]&&c[d][1].type===c[d-1][1].type&&c[d][1].start.line!==c[d][1].end.line&&(m=d+1,g.push(m),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(l.events=[],f?(f._tokenizer=void 0,f.previous=void 0):g.pop(),d=g.length;d--;){let t=c.slice(g[d],g[d+1]),n=s.pop();u.push([n,n+t.length-1]),e.splice(n,2,t)}for(u.reverse(),d=-1;++d<u.length;)h[p+u[d][0]]=p+u[d][1],p+=u[d][1]-u[d][0]-1;return h}(u,c)),c=l[c],s=!0);else if(t[1]._container){for(r=c,n=void 0;r--;)if("lineEnding"===(i=u.get(r))[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(n&&(u.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else if("linePrefix"===i[1].type||"listItemIndent"===i[1].type);else break;n&&(t[1].end={...u.get(n)[1].start},(o=u.slice(n,c)).unshift(t),u.splice(n,c-n+1,o))}}return eg(e,0,1/0,u.slice(0)),!s}let ew={}.hasOwnProperty,ek=eI(/[A-Za-z]/),eS=eI(/[\dA-Za-z]/),eM=eI(/[#-'*+\--9=?A-Z^-~]/);function eA(e){return null!==e&&(e<32||127===e)}let eE=eI(/\d/),eC=eI(/[\dA-Fa-f]/),eO=eI(/[!-/:-@[-`{-~]/);function eP(e){return null!==e&&e<-2}function eT(e){return null!==e&&(e<0||32===e)}function eD(e){return -2===e||-1===e||32===e}let eR=eI(/\p{P}|\p{S}/u),ej=eI(/\s/);function eI(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function ez(e,t,n,r){let i=r?r-1:1/0,o=0;return function(r){return eD(r)?(e.enter(n),function r(a){return eD(a)&&o++<i?(e.consume(a),r):(e.exit(n),t(a))}(r)):t(r)}}let e_={tokenize:function(e){let t,n=e.attempt(this.parser.constructs.contentInitial,function(t){return null===t?void e.consume(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ez(e,n,"linePrefix"))},function(n){return e.enter("paragraph"),function n(r){let i=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=i),t=i,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return eP(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},eL={tokenize:function(e){let t,n,r,i=this,o=[],a=0;return s;function s(t){if(a<o.length){let n=o[a];return i.containerState=n[1],e.attempt(n[0].continuation,l,c)(t)}return c(t)}function l(e){if(a++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&v();let r=i.events.length,o=r;for(;o--;)if("exit"===i.events[o][0]&&"chunkFlow"===i.events[o][1].type){n=i.events[o][1].end;break}g(a);let s=r;for(;s<i.events.length;)i.events[s][1].end={...n},s++;return eg(i.events,o+1,0,i.events.slice(r)),i.events.length=s,c(e)}return s(e)}function c(n){if(a===o.length){if(!t)return d(n);if(t.currentConstruct&&t.currentConstruct.concrete)return p(n);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(eN,u,h)(n)}function u(e){return t&&v(),g(a),d(e)}function h(e){return i.parser.lazy[i.now().line]=a!==o.length,r=i.now().offset,p(e)}function d(t){return i.containerState={},e.attempt(eN,f,p)(t)}function f(e){return a++,o.push([i.currentConstruct,i.containerState]),d(e)}function p(r){if(null===r){t&&v(),g(0),e.consume(r);return}return t=t||i.parser.flow(i.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:n}),function t(n){if(null===n){m(e.exit("chunkFlow"),!0),g(0),e.consume(n);return}return eP(n)?(e.consume(n),m(e.exit("chunkFlow")),a=0,i.interrupt=void 0,s):(e.consume(n),t)}(r)}function m(e,o){let s=i.sliceStream(e);if(o&&s.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(s),i.parser.lazy[e.start.line]){let e,n,o=t.events.length;for(;o--;)if(t.events[o][1].start.offset<r&&(!t.events[o][1].end||t.events[o][1].end.offset>r))return;let s=i.events.length,l=s;for(;l--;)if("exit"===i.events[l][0]&&"chunkFlow"===i.events[l][1].type){if(e){n=i.events[l][1].end;break}e=!0}for(g(a),o=s;o<i.events.length;)i.events[o][1].end={...n},o++;eg(i.events,l+1,0,i.events.slice(s)),i.events.length=o}}function g(t){let n=o.length;for(;n-- >t;){let t=o[n];i.containerState=t[1],t[0].exit.call(i,e)}o.length=t}function v(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},eN={tokenize:function(e,t,n){return ez(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},eB={partial:!0,tokenize:function(e,t,n){return function(t){return eD(t)?ez(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||eP(e)?t(e):n(e)}}},eF={resolve:function(e){return ex(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):eP(t)?e.check(eV,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},eV={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ez(e,i,"linePrefix")};function i(i){if(null===i||eP(i))return n(i);let o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}},eH={tokenize:function(e){let t=this,n=e.attempt(eB,function(r){return null===r?void e.consume(r):(e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,ez(e,e.attempt(this.parser.constructs.flow,r,e.attempt(eF,r)),"linePrefix")));return n;function r(r){return null===r?void e.consume(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n)}}},eW={resolveAll:eq()},e$=eK("string"),eU=eK("text");function eK(e){return{resolveAll:eq("text"===e?eG:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,o,a);return o;function o(e){return l(e)?i(e):a(e)}function a(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),s)}function s(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function eq(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function eG(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r,i=e[n-1][1],o=t.sliceStream(i),a=o.length,s=-1,l=0;for(;a--;){let e=o[a];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)r=!0,l++;else if(-1===e);else{a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){let o={type:n===e.length||r||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:i.start._bufferIndex+s,_index:i.start._index+a,line:i.end.line,column:i.end.column-l,offset:i.end.offset-l},end:{...i.end}};i.end={...o.start},i.start.offset===i.end.offset?Object.assign(i,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}let eZ={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(o){var a;return e.enter("thematicBreak"),r=a=o,function o(a){return a===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),eD(n)?ez(e,o,"whitespace")(n):o(n))}
16(a)):i>=3&&(null===a||eP(a))?(e.exit("thematicBreak"),t(a)):n(a)}(a)}}},eY={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(eB,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ez(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!eD(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(eJ,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,ez(e,e.attempt(eY,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,a=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:eE(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(eZ,n,s)(t):s(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return eE(i)&&++a<10?(e.consume(i),t):(!r.interrupt||a<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),s(i)):n(i)}(t)}return n(t)};function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(eB,r.interrupt?n:l,e.attempt(eX,u,c))}
16function l(e){return r.containerState.initialBlankLine=!0,o++,u(e)}function c(t){return eD(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),u):n(t)}function u(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},eX={partial:!0,tokenize:function(e,t,n){let r=this;return ez(e,function(e){let i=r.events[r.events.length-1];return!eD(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},eJ={partial:!0,tokenize:function(e,t,n){let r=this;return ez(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},eQ={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return eD(t)?ez(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(eQ,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return eD(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function e0(e,t,n,r,i,o,a,s,l){let c=l||1/0,u=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),h):null===t||32===t||41===t||eA(t)?n(t):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),p(t))};function h(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),d(n))}function d(t){return 62===t?(e.exit("chunkString"),e.exit(s),h(t)):null===t||60===t||eP(t)?n(t):(e.consume(t),92===t?f:d)}function f(t){return 60===t||62===t||92===t?(e.consume(t),d):d(t)}function p(i){return!u&&(null===i||41===i||eT(i))?(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(i)):u<c&&40===i?(e.consume(i),u++,p):41===i?(e.consume(i),u--,p):null===i||32===i||40===i||eA(i)?n(i):(e.consume(i),92===i?m:p)}function m(t){return 40===t||41===t||92===t?(e.consume(t),p):p(t)}}function e1(e,t,n,r,i,o){let a,s=this,l=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(o),c};function c(h){return l>999||null===h||91===h||93===h&&!a||94===h&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(h):93===h?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):eP(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(h))}function u(t){return null===t||91===t||93===t||eP(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),a||(a=!eD(t)),92===t?h:u)}function h(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function e2(e,t,n,r,i,o){let a;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),a=40===t?41:t,s):n(t)};function s(n){return n===a?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),l(n))}function l(t){return t===a?(e.exit(o),s(a)):null===t?n(t):eP(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ez(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===a||null===t||eP(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===a||92===t?(e.consume(t),c):c(t)}}function e4(e,t){let n;return function r(i){return eP(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):eD(i)?ez(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function e5(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let e3={partial:!0,tokenize:function(e,t,n){return function(t){return eT(t)?e4(e,r)(t):n(t)};function r(t){return e2(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return eD(t)?ez(e,o,"whitespace")(t):o(t)}function o(e){return null===e||eP(e)?t(e):n(e)}}},e6={name:"codeIndented",tokenize:function(e,t,n){let r=this;
16return function(t){return e.enter("codeIndented"),ez(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?o(n):eP(n)?e.attempt(e8,t,o)(n):(e.enter("codeFlowValue"),function n(r){return null===r||eP(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function o(n){return e.exit("codeIndented"),t(n)}}},e8={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):eP(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):ez(e,o,"linePrefix",5)(t)}function o(e){let o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):eP(e)?i(e):n(e)}}},e9={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);let a={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",a,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=a,e.push(["exit",a,t]),e},tokenize:function(e,t,n){let r,i=this;return function(t){var a;let s,l=i.events.length;for(;l--;)if("lineEnding"!==i.events[l][1].type&&"linePrefix"!==i.events[l][1].type&&"content"!==i.events[l][1].type){s="paragraph"===i.events[l][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||s)?(e.enter("setextHeadingLine"),r=t,a=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),eD(n)?ez(e,o,"lineSuffix")(n):o(n))}(a)):n(t)};function o(r){return null===r||eP(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},e7=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],te=["pre","script","style","textarea"],tt={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(eB,t,n)}}},tn={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return eP(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},tr={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},ti={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r,i=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a};function a(t){return e.enter("codeFencedFence"),eD(t)?ez(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(o++,e.consume(i),t):o>=s?(e.exit("codeFencedFenceSequence"),eD(i)?ez(e,c,"whitespace")(i):c(i)):n(i)}(t)):n(t)}function c(r){return null===r||eP(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},a=0,s=0;return function(t){var o;let c;return o=t,a=(c=i.events[i.events.length-1])&&"linePrefix"===c[1].type?c[2].sliceSerialize(c[1],!0).length:0,r=o,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(s++,e.consume(i),t):s<3?n(i):(e.exit("codeFencedFenceSequence"),eD(i)?ez(e,l,"whitespace")(i):l(i))}(o)};function l(o){return null===o||eP(o)?(e.exit("codeFencedFence"),i.interrupt?t(o):e.check(tr,u,p)(o)):(e.enter("co
16deFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||eP(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(i)):eD(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ez(e,c,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(o))}function c(t){return null===t||eP(t)?l(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||eP(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function u(t){return e.attempt(o,p,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d}function d(t){return a>0&&eD(t)?ez(e,f,"linePrefix",a+1)(t):f(t)}function f(t){return null===t||eP(t)?e.check(tr,u,p)(t):(e.enter("codeFlowValue"),function t(n){return null===n||eP(n)?(e.exit("codeFlowValue"),f(n)):(e.consume(n),t)}(t))}function p(n){return e.exit("codeFenced"),t(n)}}},to=document.createElement("i");function ta(e){let t="&"+e+";";to.innerHTML=t;let n=to.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let ts={name:"characterReference",tokenize:function(e,t,n){let r,i,o=this,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),r=31,i=eS,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=eC,c):(e.enter("characterReferenceValue"),r=7,i=eE,c(t))}function c(s){if(59===s&&a){let r=e.exit("characterReferenceValue");return i!==eS||ta(o.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return i(s)&&a++<r?(e.consume(s),c):n(s)}}},tl={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return eO(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},tc={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ez(e,t,"linePrefix")}}};function tu(e,t,n){let r=[],i=-1;for(;++i<e.length;){let o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}let th={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){let e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&eg(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,o,a=e.length,s=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(i=a);let l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},u={type:"labelText",start:{...e[r+s+2][1].end},end:{...e[i-2][1].start}};return o=ev(o=[["enter",l,t],["enter",c,t]],e.slice(r+1,r+s+3)),o=ev(o,[["enter",u,t]]),o=ev(o,tu(t.parser.constructs.insideSpan.null,e.slice(r+s+4,i-3),t)),o=ev(o,[["exit",u,t],e[i-2],e[i-1],["exit",c,t]]),o=ev(o,e.slice(i+1)),o=ev(o,[["exit",l,t]]),eg(e,r,e.length,o),e},tokenize:function(e,t,n){let r,i,o=this,a=o.events.length;for(;a--;)if(("labelImage"===o.events[a][1].type||"labelLink"===o.events[a][1].type)&&!o.events[a][1]._balanced){r=o.events[a][1];break}return function(t){return r?r._inactive?u(t):(i=o.parser.defined.includes(e5(o.sliceSerialize({start:r.end,end:o.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s):n(t)};function s(t){return 40===t?e.attempt(td,c,i?c:u)(t):91===t?e.attempt(tf,c,i?l:u)(t):i?c(t):u(t)}function l(t){return e.attempt(tp,c,u)(t)}function c(e){return t(e)}function u(e){return r._balanced=!0,n(e)}}},td={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return eT(t)?e4(e,i)(t):i(t)}function i(t){return 41===t?c(t):e0(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return eT(t)?e4(e,s)(t):c(t)}function a(e){return n(e)}function s(t){return 34===t||39===t||40===t?e2(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return eT(t)?e4(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},tf={tokenize:function(e,t,n){let r=this;return function(t){return e1.call(r,e,i,o,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(e5(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},tp={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},tm={name:"labelStartImage",resolveAll:th.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};function tg(e){return null===e||eT(e)||ej(e)?1:eR(e)?2:void 0}let tv={name:"attention",resolveAll:function(e,t){let n,r,i,o,a,s,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close){for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[
16n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;let h={...e[n][1].end},d={...e[u][1].start};ty(h,-s),ty(d,s),o={type:s>1?"strongSequence":"emphasisSequence",start:h,end:{...e[n][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:d},i={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:s>1?"strong":"emphasis",start:{...o.start},end:{...a.end}},e[n][1].end={...o.start},e[u][1].start={...a.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=ev(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=ev(l,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),l=ev(l,tu(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=ev(l,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=ev(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,eg(e,n-1,u-n+3,l),u=n+l.length-c-2;break}}for(u=-1;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){let n,r=this.parser.constructs.attentionMarkers.null,i=this.previous,o=tg(i);return function(a){return n=a,e.enter("attentionSequence"),function a(s){if(s===n)return e.consume(s),a;let l=e.exit("attentionSequence"),c=tg(s),u=!c||2===c&&o||r.includes(s),h=!o||2===o&&c||r.includes(i);return l._open=!!(42===n?u:u&&(o||!h)),l._close=!!(42===n?h:h&&(c||!u)),t(s)}(a)}}};function ty(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let tb={name:"labelStartLink",resolveAll:th.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},tx={42:eY,43:eY,45:eY,48:eY,49:eY,50:eY,51:eY,52:eY,53:eY,54:eY,55:eY,56:eY,57:eY,62:eQ},tw={91:{name:"definition",tokenize:function(e,t,n){let r,i=this;return function(t){var r;return e.enter("definition"),r=t,e1.call(i,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(r)};function o(t){return(r=e5(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return eT(t)?e4(e,s)(t):s(t)}function s(t){return e0(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(e3,c,c)(t)}function c(t){return eD(t)?ez(e,u,"whitespace")(t):u(t)}function u(o){return null===o||eP(o)?(e.exit("definition"),i.parser.defined.push(r),t(o)):n(o)}}}},tk={[-2]:e6,[-1]:e6,32:e6},tS={35:{name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,o=3;return"whitespace"===e[3][1].type&&(o+=2),i-2>o&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4),i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},eg(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(i){var o;return e.enter("atxHeading"),o=i,e.enter("atxHeadingSequence"),function i(o){return 35===o&&r++<6?(e.consume(o),i):null===o||eT(o)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||eP(r)?(e.exit("atxHeading"),t(r)):eD(r)?ez(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||eT(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(o)):n(o)}(o)}}},42:eZ,45:[e9,eZ],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){let r,i,o,a,s,l=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),c};function c(a){return 33===a?(e.consume(a),u):47===a?(e.consume(a),i=!0,f):63===a?(e.consume(a),r=3,l.interrupt?t:R):ek(a)?(e.consume(a),o=String.fromCharCode(a),p):n(a)}function u(i){return 45===i?(e.consume(i),r=2,h):91===i?(e.consume(i),r=5,a=0,d):ek(i)?(e.consume(i),r=4,l.interrupt?t:R):n(i)}function h(r){return 45===r?(e.consume(r),l.interrupt?t:R):n(r)}function d(r){let i="CDATA[";return r===i.charCodeAt(a++)?(e.consume(r),a===i.length)?l.interrupt?t:M:d:n(r)}function f(t){return ek(t)?(e.consume(t),o=String.fromCharCode(t),p):n(t)}
16function p(a){if(null===a||47===a||62===a||eT(a)){let s=47===a,c=o.toLowerCase();return!s&&!i&&te.includes(c)?(r=1,l.interrupt?t(a):M(a)):e7.includes(o.toLowerCase())?(r=6,s)?(e.consume(a),m):l.interrupt?t(a):M(a):(r=7,l.interrupt&&!l.parser.lazy[l.now().line]?n(a):i?function t(n){return eD(n)?(e.consume(n),t):k(n)}(a):g(a))}return 45===a||eS(a)?(e.consume(a),o+=String.fromCharCode(a),p):n(a)}function m(r){return 62===r?(e.consume(r),l.interrupt?t:M):n(r)}function g(t){return 47===t?(e.consume(t),k):58===t||95===t||ek(t)?(e.consume(t),v):eD(t)?(e.consume(t),g):k(t)}function v(t){return 45===t||46===t||58===t||95===t||eS(t)?(e.consume(t),v):y(t)}function y(t){return 61===t?(e.consume(t),b):eD(t)?(e.consume(t),y):g(t)}function b(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,x):eD(t)?(e.consume(t),b):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||eT(n)?y(n):(e.consume(n),t)}(t)}function x(t){return t===s?(e.consume(t),s=null,w):null===t||eP(t)?n(t):(e.consume(t),x)}function w(e){return 47===e||62===e||eD(e)?g(e):n(e)}function k(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||eP(t)?M(t):eD(t)?(e.consume(t),S):n(t)}function M(t){return 45===t&&2===r?(e.consume(t),O):60===t&&1===r?(e.consume(t),P):62===t&&4===r?(e.consume(t),j):63===t&&3===r?(e.consume(t),R):93===t&&5===r?(e.consume(t),D):eP(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(tt,I,A)(t)):null===t||eP(t)?(e.exit("htmlFlowData"),A(t)):(e.consume(t),M)}function A(t){return e.check(tn,E,I)(t)}function E(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),C}function C(t){return null===t||eP(t)?A(t):(e.enter("htmlFlowData"),M(t))}function O(t){return 45===t?(e.consume(t),R):M(t)}function P(t){return 47===t?(e.consume(t),o="",T):M(t)}function T(t){if(62===t){let n=o.toLowerCase();return te.includes(n)?(e.consume(t),j):M(t)}return ek(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),T):M(t)}function D(t){return 93===t?(e.consume(t),R):M(t)}function R(t){return 62===t?(e.consume(t),j):45===t&&2===r?(e.consume(t),R):M(t)}function j(t){return null===t||eP(t)?(e.exit("htmlFlowData"),I(t)):(e.consume(t),j)}function I(n){return e.exit("htmlFlow"),t(n)}}},61:e9,95:eZ,96:ti,126:ti},tM={38:ts,92:tl},tA={[-5]:tc,[-4]:tc,[-3]:tc,33:tm,38:ts,42:tv,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return ek(t)?(e.consume(t),o):64===t?n(t):s(t)}function o(t){return 43===t||45===t||46===t||eS(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,a):(43===n||45===n||46===n||eS(n))&&r++<32?(e.consume(n),t):(r=0,s(n))}(t)):s(t)}function a(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||eA(r)?n(r):(e.consume(r),a)}function s(t){return 64===t?(e.consume(t),l):eM(t)?(e.consume(t),s):n(t)}function l(i){return eS(i)?function i(o){return 46===o?(e.consume(o),r=0,l):62===o?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(o),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(o){if((45===o||eS(o)
16)&&r++<63){let n=45===o?t:i;return e.consume(o),n}return n(o)}(o)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,o,a=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),x):63===t?(e.consume(t),y):ek(t)?(e.consume(t),k):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,f):ek(t)?(e.consume(t),v):n(t)}function c(t){return 45===t?(e.consume(t),d):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),h):eP(t)?(o=u,T(t)):(e.consume(t),u)}function h(t){return 45===t?(e.consume(t),d):u(t)}function d(e){return 62===e?P(e):45===e?h(e):u(e)}function f(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?p:f):n(t)}function p(t){return null===t?n(t):93===t?(e.consume(t),m):eP(t)?(o=p,T(t)):(e.consume(t),p)}function m(t){return 93===t?(e.consume(t),g):p(t)}function g(t){return 62===t?P(t):93===t?(e.consume(t),g):p(t)}function v(t){return null===t||62===t?P(t):eP(t)?(o=v,T(t)):(e.consume(t),v)}function y(t){return null===t?n(t):63===t?(e.consume(t),b):eP(t)?(o=y,T(t)):(e.consume(t),y)}function b(e){return 62===e?P(e):y(e)}function x(t){return ek(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||eS(t)?(e.consume(t),w):function t(n){return eP(n)?(o=t,T(n)):eD(n)?(e.consume(n),t):P(n)}(t)}function k(t){return 45===t||eS(t)?(e.consume(t),k):47===t||62===t||eT(t)?S(t):n(t)}function S(t){return 47===t?(e.consume(t),P):58===t||95===t||ek(t)?(e.consume(t),M):eP(t)?(o=S,T(t)):eD(t)?(e.consume(t),S):P(t)}function M(t){return 45===t||46===t||58===t||95===t||eS(t)?(e.consume(t),M):function t(n){return 61===n?(e.consume(n),A):eP(n)?(o=t,T(n)):eD(n)?(e.consume(n),t):S(n)}(t)}function A(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,E):eP(t)?(o=A,T(t)):eD(t)?(e.consume(t),A):(e.consume(t),C)}function E(t){return t===r?(e.consume(t),r=void 0,O):null===t?n(t):eP(t)?(o=E,T(t)):(e.consume(t),E)}function C(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||eT(t)?S(t):(e.consume(t),C)}function O(e){return 47===e||62===e||eT(e)?S(e):n(e)}function P(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function T(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),D}function D(t){return eD(t)?ez(e,R,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):R(t)}function R(t){return e.enter("htmlTextData"),o(t)}}}],91:tb,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return eP(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},tl],93:th,95:tv,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),o++,t):(e.exit("codeTextSequence"),a(n))}(t)};function a(l){return null===l?n(l):32===l?(e.enter("space"),e.consume(l),e.exit("space"),a):96===l?(i=e.enter("codeTextSequence"),r=0,function n(a){return 96===a?(e.consume(a),r++,n):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(a)):(i.type="codeTextData",s(a))}(l)):eP(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a):(e.enter("codeTextData"),s(l))}function s(t){return null===t||32===t||96===t||eP(t)?(e.exit("codeTextData"),a(t)):(e.consume(t),s)}}}},tE={null:[tv,eW]},tC={null:[42,95]},tO={null:[]},tP=/[\0\t\n\r]/g;function tT(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let tD=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function tR(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;
16return tT(n.slice(t?2:1),t?16:10)}return ta(n)||e}let tj={}.hasOwnProperty;function tI(e){return{line:e.line,column:e.column,offset:e.offset}}function tz(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+q({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+q({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+q({start:t.start,end:t.end})+") is still open")}function t_(e){let t=this;t.parser=function(n){var r,o;let a,s,l,c;return"object"==typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(o=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(v),autolinkProtocol:c,autolinkEmail:c,atxHeading:r(p),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:c,characterReference:c,codeFenced:r(f),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(f,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:c,data:c,codeFlowValue:c,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(m),hardBreakTrailing:r(m),htmlFlow:r(g,i),htmlFlowData:c,htmlText:r(g,i),htmlTextData:c,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(v),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(y,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(y),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(p),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:a(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:a(),autolinkEmail:function(e){u.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){u.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:a(),characterEscapeValue:u,characterReferenceMarkerHexadecimal:d,characterReferenceMarkerNumeric:d,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=tT(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=ta(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=tI(e.end)},codeFenced:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:u,codeIndented:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:u,data:u,definition:a(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=e5(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:a(),hardBreakEscape:a(h),hardBreakTrailing:a(h),htmlFlow:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:u,htmlText:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:u,image:a(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(tD,tR),n.identifier=e5(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=tI(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.t
16ype)&&(c.call(this,e),u.call(this,e))},link:a(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=e5(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:a(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:a(),thematicBreak:a()}};!function e(t,n){let r=-1;for(;++r<n.length;){let i=n[r];Array.isArray(i)?e(t,i):function(e,t){let n;for(n in t)if(tj.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,i)}}(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},a={stack:[r],tokenStack:[],config:t,enter:o,exit:s,buffer:i,resume:l,data:n},c=[],u=-1;for(;++u<e.length;)("listOrdered"===e[u][1].type||"listUnordered"===e[u][1].type)&&("enter"===e[u][0]?c.push(u):u=function(e,t,n){let r,i,o,a,s=t-1,l=-1,c=!1;for(;++s<=n;){let t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,a=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||a||l||o||(o=s),a=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:a=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let a=s;for(i=void 0;a--;){let t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",i=a}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}o&&(!i||o<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){let i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(s,0,["enter",i,t[2]]),s++,n++,o=void 0,a=!0}}}return e[t][1]._spread=c,n}(e,c.pop(),u));for(u=-1;++u<e.length;){let n=t[e[u][0]];tj.call(n,e[u][1].type)&&n[e[u][1].type].call(Object.assign({sliceSerialize:e[u][2].sliceSerialize},a),e[u][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||tz).call(a,void 0,e[0])}for(r.position={start:tI(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:tI(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u<t.transforms.length;)r=t.transforms[u](r)||r;return r};function r(e,t){return function(n){o.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function o(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:tI(t.start),end:void 0}}function a(e){return function(t){e&&e.call(this,t),s.call(this,t)}}function s(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||tz).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+q({start:e.start,end:e.end})+"): it’s not open");n.position.end=tI(e.end)}function l(){var e;return e=this.stack.pop(),ep(e,"boolean"!=typeof ef.includeImageAlt||ef.includeImageAlt,"boolean"!=typeof ef.includeHtml||ef.includeHtml)}function c(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:tI(e.start),end:void 0},t.push(n)),this.stack.push(n)}function u(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=tI(e.end)}function h(){this.data.atHardBreak=!0}function d(e){this.data.characterReferenceType=e.type}function f(){return{type:"code",lang:null,meta:null,value:""}}function p(){return{type:"heading",depth:0,children:[]}}function m(){return{type:"break"}}function g(){return{type:"html",value:""}}function v(){return{type:"link",title:null,url:"",children:[]}}function y(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(o)(function(e){for(;!ex(e););return e}((function(e){let t={constructs:function(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let r,i=(ew.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];if(o)for(r in o){ew.call(i,r)||(i[r]=[]);let e=o[r];!function(e,t){let n=-1,r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);eg(e,0,0,r)}(i[r],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}([i,...(e||{}).extensions||[]]),content:n(e_),defined:[],document:n(eL),flow:n(eH),lazy:{},string:n(e$),text:n(eU)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,c
16olumn:n&&n.column||1,offset:n&&n.offset||0},i={},o=[],a=[],s=[],l={attempt:p(function(e,t){m(e,t.from)}),check:p(f),consume:function(e){eP(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,g()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=d(),c.events.push(["enter",n,c]),s.push(n),n},exit:function(e){let t=s.pop();return t.end=d(),c.events.push(["exit",t,c]),t},interrupt:p(f,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,g()},events:[],now:d,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,i=[];for(;++r<e.length;){let o,a=e[r];if("string"==typeof a)o=a;else switch(a){case -5:o="\r";break;case -4:o="\n";break;case -3:o="\r\n";break;case -2:o=t?" ":"	";break;case -1:if(!t&&n)continue;o=" ";break;default:o=String.fromCharCode(a)}n=-2===a,i.push(o)}return i.join("")}(h(e),t)},sliceStream:h,write:function(e){return(a=ev(a,e),function(){let e;for(;r._index<a.length;){let n=a[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),u=u(t)}else u=u(n)}}(),null!==a[a.length-1])?[]:(m(t,0),c.events=tu(o,c.events,c),c.events)}},u=t.tokenize.call(c,l);return t.resolveAll&&o.push(t),c;function h(e){return function(e,t){let n,r=t.start._index,i=t.start._bufferIndex,o=t.end._index,a=t.end._bufferIndex;if(r===o)n=[e[r].slice(i,a)];else{if(n=e.slice(r,o),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}a>0&&n.push(e[o].slice(0,a))}return n}(a,e)}function d(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:o}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:o}}function f(e,t){t.restore()}function p(e,t){return function(n,i,o){var a;let u,h,f,p;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):(a=n,function(e){let t=null!==e&&a[e],n=null!==e&&a.null;return m([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function m(e){return(u=e,h=0,0===e.length)?o:v(e[h])}function v(e){return function(n){let i,o,a,u,h;return(i=d(),o=c.previous,a=c.currentConstruct,u=c.events.length,h=Array.from(s),p={from:u,restore:function(){r=i,c.previous=o,c.currentConstruct=a,c.events.length=u,s=h,g()}},f=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name))?b(n):e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,y,b)(n)}}function y(t){return e(f,p),i}function b(e){return(p.restore(),++h<u.length)?v(u[h]):o}}}function m(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&eg(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function g(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}(t,e,n)}}})(o).document().write((s=1,l="",c=!0,function(e,t,n){let r,i,o,u,h,d=[];for(e=l+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),o=0,l="",c&&(65279===e.charCodeAt(0)&&o++,c=void 0);o<e.length;){if(tP.lastIndex=o,u=(r=tP.exec(e))&&void 0!==r.index?r.index:e.length,h=e.charCodeAt(u),!r){l=e.slice(o);break}if(10===h&&o===u&&a)d.push(-3),a=void 0;else switch(a&&(d.push(-5),a=void 0),o<u&&(d.push(e.slice(o,u)),s+=u-o),h){case 0:d.push(65533),s++;break;case 9:for(i=4*Math.ceil(s/4),d.push(-2);s++<i;)d.push(-1);break;case 10:d.push(-4),s=1;break;default:a=!0,s=1}o=u+1}return n&&(a&&d.push(-5),l&&d.push(l),d.push(null)),d})(n,r,!0))))}}let tL="object"==typeof self?self:globalThis,tN=(e,t)=>
16{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw TypeError("unable to deserialize "+e)}return new tL[e](t)},tB=e=>{var t;let n,r;return(t=new Map,n=(e,n)=>(t.set(n,e),e),r=i=>{if(t.has(i))return t.get(i);let[o,a]=e[i];switch(o){case 0:case -1:return n(a,i);case 1:{let e=n([],i);for(let t of a)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of a)e[r(t)]=r(n);return e}case 3:return n(new Date(a),i);case 4:{let{source:e,flags:t}=a;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of a)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of a)e.add(r(t));return e}case 7:{let{name:e,message:t}=a;return n(tN(e,t),i)}case 8:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{let{buffer:e}=new Uint8Array(a);return n(new DataView(e),a)}}return n(tN(o,a),i)})(0)},{toString:tF}={},{keys:tV}=Object,tH=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=tF.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},tW=([e,t])=>0===e&&("function"===t||"symbol"===t),t$=(e,{json:t,lossy:n}={})=>{var r,i,o;let a,s,l=[];return(r=!(t||n),i=!!t,o=new Map,a=(e,t)=>{let n=l.push(e)-1;return o.set(t,n),n},s=e=>{if(o.has(e))return o.get(e);let[t,n]=tH(e);switch(t){case 0:{let i=e;switch(n){case"bigint":t=8,i=e.toString();break;case"function":case"symbol":if(r)throw TypeError("unable to serialize "+n);i=null;break;case"undefined":return a([-1],e)}return a([t,i],e)}case 1:{if(n){let t=e;return"DataView"===n?t=new Uint8Array(e.buffer):"ArrayBuffer"===n&&(t=new Uint8Array(e)),a([n,[...t]],e)}let r=[],i=a([t,r],e);for(let t of e)r.push(s(t));return i}case 2:{if(n)switch(n){case"BigInt":return a([n,e.toString()],e);case"Boolean":case"Number":case"String":return a([n,e.valueOf()],e)}if(i&&"toJSON"in e)return s(e.toJSON());let o=[],l=a([t,o],e);for(let t of tV(e))(r||!tW(tH(e[t])))&&o.push([s(t),s(e[t])]);return l}case 3:return a([t,e.toISOString()],e);case 4:{let{source:n,flags:r}=e;return a([t,{source:n,flags:r}],e)}case 5:{let n=[],i=a([t,n],e);for(let[t,i]of e)(r||!(tW(tH(t))||tW(tH(i))))&&n.push([s(t),s(i)]);return i}case 6:{let n=[],i=a([t,n],e);for(let t of e)(r||!tW(tH(t)))&&n.push(s(t));return i}}let{message:l}=e;return a([t,{name:n,message:l}],e)})(e),l},tU="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?tB(t$(e,t)):structuredClone(e):(e,t)=>tB(t$(e,t));function tK(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let o=e.charCodeAt(n),a="";if(37===o&&eS(e.charCodeAt(n+1))&&eS(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){let t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(a=String.fromCharCode(o,t),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function tq(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function tG(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}let tZ=function(e){var t,n;if(null==e)return tX;if("function"==typeof e)return tY(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=tZ(e[n]);return tY(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):(t=e,tY(function(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}))}if("string"==typeof e){return n=e,tY(function(e){return e&&e.type===n})}throw Error("Expected function, string, or object as test")};function tY(e){return function(t,n,r){return!!(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function tX(){return!0}let tJ=[];function tQ(e,t,n,r){var i,o,a;let s,l,c,u,h,d;"function"==typeof t&&"function"!=typeof n?(l=void 0,c=t,s=n):(l=t,c=n,s=r),i=l,o=function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return c(e,r,n)},a=s,"function"==typeof i&&"function"!=typeof o?(a=o,o=i):u=i,h=tZ(u),d=a?-1:1,(function e(t,n,r){let s=t&&"object"==typeof t?t:{};if("string"==typeof s.type){let e="string"==typeof s.tagName?s.tagName:"string"==typeof s.name?s.name:void 0;Object.defineProperty(l,"name",{value:"node ("+t.type+(e?"<"+e+">":"")+")"})}return l;function l(){var s;let l,c,u,f=tJ;if((!i||h(t,n,r[r.length-1]||void 0))&&!1===(f=Array.isArray(s=o(t,r))?s:"number"==typeof s?[!0,s]:null==s?tJ:[s])[0])return f;if("children"in t&&t.children&&t.children&&"skip"!==f[0])for(c=(a?t.children.length:-1)+d,u=r.concat(t);c>-1&&c<t.children.length;){if(!1===(l=e(t.children[c],c,u)())[0])return l;c="number"==typeof l[1]?l[1]:c+d}return f}})(e,void 0,[])()}function t0(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let i=e.all(t),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift({type:"text",value:"["});let a=i[i.length-1];return a&&"text"===a.type?a.value+=r:i.push({type:"text",value:r}),i}function t1(e){let t=e.spread;return null==t?e.children.length>1:t}function t2(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let t4={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o={type:"element",tagName:"pre",properties:{},children:[o=e.applyData(t,o)]},e.patch(t,o),o},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}
16,footnoteReference:function(e,t){let n,r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),o=tK(i.toLowerCase()),a=e.footnoteOrder.indexOf(i),s=e.footnoteCounts.get(i);void 0===s?(s=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=a+1,s+=1,e.footnoteCounts.set(i,s);let l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,l);let c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return t0(e,t);let i={src:tK(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){let n={src:tK(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return t0(e,t);let i={href:tK(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){let n={href:tK(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=t1(n[r])}return t}(n):t1(t),o={},a=[];if("boolean"==typeof t.checked){let e,n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s<r.length;){let e=r[s];(i||0!==s||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?a.push(e):a.push(...e.children)}let l=r[r.length-1];l&&(i||"element"!==l.type||"p"!==l.tagName)&&a.push({type:"text",value:"\n"});let c={type:"element",tagName:"li",properties:o,children:a};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){let n={},r=e.all(t),i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){let e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=U(t.children[1]),a=$(t.children[t.children.length-1]);o&&a&&(r.position={start:o,end:a}),i.push(r)}let o={type:"element",tagName:"table",properties:{}
16,children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,a=o?o.length:t.children.length,s=-1,l=[];for(;++s<a;){let n=t.children[s],r={},a=o?o[s]:void 0;a&&(r.align=a);let c={type:"element",tagName:i,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),l.push(c)}let c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,o=[];for(;r;)o.push(t2(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(t2(t.slice(i),i>0,!1)),o.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:t5,yaml:t5,definition:t5,footnoteDefinition:t5};function t5(){}let t3={}.hasOwnProperty,t6={};function t8(e,t){e.position&&(t.position=function(e){let t=U(e),n=$(e);if(t&&n)return{start:t,end:n}}(e))}function t9(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,tU(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function t7(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function ne(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function nt(e,t){let n,r,i,o,a=(n=t||t6,r=new Map,i=new Map,o={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let i=o.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=ne(i.value)),!Array.isArray(i)&&"element"===i.type)){let e=i.children[0];e&&"text"===e.type&&(e.value=ne(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:t9,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...t4,...n.handlers},one:function(e,t){let n=e.type,r=o.handlers[n];if(t3.call(o.handlers,n)&&r)return r(o,e,t);if(o.options.passThrough&&o.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=tU(n);return r.children=o.all(e),r}return tU(e)}return(o.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(t3.call(n,"hProperties")||t3.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)})(o,e,t)},options:n,patch:t8,wrap:t7},tQ(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),o),s=a.one(e,void 0),l=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||tq,r=e.options.footnoteBackLabel||tG,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[],l=-1;for(;++l<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[l]);if(!i)continue;let o=e.all(i),a=String(i.identifier).toUpperCase(),c=tK(a.toLowerCase()),u=0,h=[],d=e.footnoteCounts.get(a);for(;void 0!==d&&++u<=d;){h.length>0&&h.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,u);"string"==typeof e&&(e={type:"text",value:e}),h.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let f=o[o.length-1];if(f&&"element"===f.type&&"p"===f.tagName){let e=f.children[f.children.length-1];e&&"text"===e.type?e.value+=" ":f.children.push({type:"text",value:" "}),f.children.push(...h)}else o.push(...h);let p={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(o,!0)};e.patch(i,p),s.push(p)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...tU(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)}
16,{type:"text",value:"\n"}]}}(a),c=Array.isArray(s)?{type:"root",children:s}:s||{type:"root",children:[]};return l&&c.children.push({type:"text",value:"\n"},l),c}function nn(e,t){return e&&"run"in e?async function(n,r){let i=nt(n,{file:r,...t});await e.run(i,r)}:function(n,r){return nt(n,{file:r,...e||t})}}function nr(e){if(e)throw e}var ni=n(49461);function no(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let na=function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');nu(e);let r=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let a=-1,s=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else a<0&&(n=!0,a=o+1),s>-1&&(e.codePointAt(o)===t.codePointAt(s--)?s<0&&(i=o):(s=-1,i=a));return r===i?i=a:i<0&&(i=e.length),e.slice(r,i)},ns=function(e){let t;if(nu(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},nl=function(e){let t;nu(e);let n=e.length,r=-1,i=0,o=-1,a=0;for(;n--;){let s=e.codePointAt(n);if(47===s){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===s?o<0?o=n:1!==a&&(a=1):o>-1&&(a=-1)}return o<0||r<0||0===a||1===a&&o===r-1&&o===i+1?"":e.slice(o,r)},nc=function(...e){var t;let n,r,i,o=-1;for(;++o<e.length;)nu(e[o]),e[o]&&(i=void 0===i?e[o]:i+"/"+e[o]);return void 0===i?".":(nu(t=i),n=47===t.codePointAt(0),0!==(r=function(e,t){let n,r,i="",o=0,a=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else if(47===n)break;else n=47;if(47===n){if(a===l-1||1===s);else if(a!==l-1&&2===s){if(i.length<2||2!==o||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2)){if(i.length>2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",o=0):o=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),a=l,s=0;continue}}else if(i.length>0){i="",o=0,a=l,s=0;continue}}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(a+1,l):i=e.slice(a+1,l),o=l-a-1;a=l,s=0}else 46===n&&s>-1?s++:s=-1}return i}(t,!n)).length||n||(r="."),r.length>0&&47===t.codePointAt(t.length-1)&&(r+="/"),n?"/"+r:r)};function nu(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function nh(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let nd=["history","path","basename","stem","extname","dirname"];class nf{constructor(e){let t,n;t=e?nh(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":"/",this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<nd.length;){const e=nd[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)nd.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?na(this.path):void 0}set basename(e){nm(e,"basename"),np(e,"basename"),this.path=nc(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?ns(this.path):void 0}set dirname(e){ng(this.basename,"dirname"),this.path=nc(e||"",this.basename)}get extname(){return"string"==typeof this.path?nl(this.path):void 0}set extname(e){if(np(e,"extname"),ng(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=nc(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){nh(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!nh(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),nm(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?na(this.path,this.extname):void 0}set stem(e){nm(e,"stem"),np(e,"stem"),this.path=nc(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}
16message(e,t,n){let r=new X(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function np(e,t){if(e&&e.includes("/"))throw Error("`"+t+"` cannot be a path: did not expect `/`")}function nm(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function ng(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let nv=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},ny={}.hasOwnProperty;class nb extends nv{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);!function i(o,...a){let s=e[++n],l=-1;if(o)return void r(o);for(;++l<t.length;)(null===a[l]||void 0===a[l])&&(a[l]=t[l]);t=a,s?(function(e,t){let n;return function(...t){let o,a=e.length>t.length;a&&t.push(r);try{o=e.apply(this,t)}catch(e){if(a&&n)throw e;return r(e)}a||(o&&o.then&&"function"==typeof o.then?o.then(i,r):o instanceof Error?r(o):i(o))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(s,i)(...a):r(null,...a)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new nb,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data(ni(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(nS("data",this.frozen),this.namespace[e]=t,this):ny.call(this.namespace,e)&&this.namespace[e]||void 0:e?(nS("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=nE(e),n=this.parser||this.Parser;return nw("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),nw("process",this.parser||this.Parser),nk("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let o=nE(e),a=n.parse(o);function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}n.run(a,o,function(e,t,r){var i,o;if(e||!t||!r)return s(e);let a=n.stringify(t,r);"string"==typeof(i=a)||(o=i)&&"object"==typeof o&&"byteLength"in o&&"byteOffset"in o?r.value=a:r.result=a,s(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),nw("processSync",this.parser||this.Parser),nk("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,nr(e),t=r}),nA("processSync","process",n),t}run(e,t,n){nM(e),this.freeze();let r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,o){let a=nE(t);r.run(e,a,function(t,r,a){let s=r||e;t?o(t):i?i(s):n(void 0,s,a)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){nr(e),n=t,r=!0}),nA("runSync","run",r),n}stringify(e,t){this.freeze();let n=nE(t),r=this.compiler||this.Compiler;return nk("stringify",r),nM(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(nS("use",this.frozen),null==e);else if("function"==typeof e)a(e,t);else if("object"==typeof e)Array.isArray(e)?o(e):i(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(!("plugins"in e)&&!("settings"in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=ni(!0,r.settings,e.settings))}function o(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;)!function(e){if("function"==typeof e)a(e,[]);else if("object"==typeof e)if(Array.isArray(e)){let[t,...n]=e;a(t,n)}else i(e);else throw TypeError("Expected usable value, not `"+e+"`")}(e[t]);else throw TypeError("Expected a list of plugins, not `"+e+"`")}function a(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...o]=t,a=n[i][1];no(a)&&no(r)&&(r=ni(!0,a,r)),n[i]=[e,r,...o]}}}}let nx=new nb().freeze();function nw(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function nk(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function nS(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function nM(e){if(!no(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function nA(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function nE(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new nf(e)}let nC=[],nO={allowDangerousHtml:!0},nP=/^(https?|ircs?|mailto|xmpp)$/i,nT=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function nD(e){var t;let n,r,i,o,a,s=(n=(t=e).rehypePlugins||nC,r=t.remarkPlugins||nC,i=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...nO}:nO,nx().use(t_).use(r).use(nn,i).use(n)),l=(o=e.children||"",a=new nf,"string"==typeof o&&(a.value=o),a);return function(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,a=t.skipHtml,s=t.unwrapDisallowed,l=t.urlTransform||nR;for(let e of nT)Object.hasOwn(t,e.from)&&(e.from,e.to&&e.to,e.id);return tQ(e,function(e,t,i){if("raw"===e.type&&i&&"number"==typeof t)return a?i.children.splice(t,1):i.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in eh)if(Object.hasOwn(eh,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=eh[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=l(String(n||""),t,e))}}if("element"===e.type){let a=n?!n.includes(e.tagName):!!o&&o.includes(e.tagName);if(!a&&r&&"number"==typeof t&&(a=!r(e,t,i)),a&&i&&"number"==typeof t)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}),function(e,t){var n,r,i,o;let a;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let s=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=s,r=t.jsxDEV,a=function(e,t,i,o){let a=Array.isArray(i.children),s=U(e);return r(t,i,o,a,{columnNumber:s?s.column-1:void 0,fileName:n,lineNumber:s?s.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");
16if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");i=t.jsx,o=t.jsxs,a=function(e,t,n,r){let a=Array.isArray(n.children)?o:i;return r?a(t,n,r):a(t,n)}}let l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:s,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?_:z,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},c=ei(l,e,void 0);return c&&"string"!=typeof c?c:l.create(e,l.Fragment,{children:c||void 0},void 0)}(e,{Fragment:ed.Fragment,components:i,ignoreInvalidStyle:!0,jsx:ed.jsx,jsxs:ed.jsxs,passKeys:!0,passNode:!0})}(s.runSync(s.parse(l),l),e)}function nR(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return -1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||nP.test(e.slice(0,t))?e:""}},65485(e,t,n){"use strict";n.d(t,{Kq:()=>f,bN:()=>c});var r=n(50405);n(38942);var i={notify(){},get:()=>[]},o="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement,a="u">typeof navigator&&"ReactNative"===navigator.product,s=o||a?r.useLayoutEffect:r.useEffect;function l(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function c(e,t){if(l(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!l(e[n[r]],t[n[r]]))return!1;return!0}var u=Symbol.for("react-redux-context"),h="u">typeof globalThis?globalThis:{},d=function(){if(!r.createContext)return{};let e=h[u]??=new Map,t=e.get(r.createContext);return t||(t=r.createContext(null),e.set(r.createContext,t)),t}(),f=function(e){let{children:t,context:n,serverState:o,store:a}=e,l=r.useMemo(()=>{let e=function(e){let t,n=i,r=0,o=!1;function a(){c.onStateChange&&c.onStateChange()}function s(){if(r++,!t){let r,i;t=e.subscribe(a),r=null,i=null,n={clear(){r=null,i=null},notify(){let e=r;for(;e;)e.callback(),e=e.next},get(){let e=[],t=r;for(;t;)e.push(t),t=t.next;return e},subscribe(e){let t=!0,n=i={callback:e,next:null,prev:i};return n.prev?n.prev.next=n:r=n,function(){t&&null!==r&&(t=!1,n.next?n.next.prev=n.prev:i=n.prev,n.prev?n.prev.next=n.next:r=n.next)}}}}}function l(){r--,t&&0===r&&(t(),t=void 0,n.clear(),n=i)}let c={addNestedSub:function(e){s();let t=n.subscribe(e),r=!1;return()=>{r||(r=!0,t(),l())}},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:a,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,s())},tryUnsubscribe:function(){o&&(o=!1,l())},getListeners:()=>n};return c}(a);return{store:a,subscription:e,getServerState:o?()=>o:void 0}},[a,o]),c=r.useMemo(()=>a.getState(),[a]);return s(()=>{let{subscription:e}=l;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),c!==a.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[l,c]),r.createElement((n||d).Provider,{value:l},t)}},90805(e,t,n){"use strict";function r(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}n.d(t,{HY:()=>c,Qd:()=>s,Tw:()=>h,Zz:()=>u,ve:()=>d,y$:()=>l});var i="function"==typeof Symbol&&Symbol.observable||"@@observable",o=()=>Math.random().toString(36).substring(7).split("").join("."),a={INIT:`@@redux/INIT${o()}`,REPLACE:`@@redux/REPLACE${o()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${o()}`};function s(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function l(e,t,n){if("function"!=typeof e)throw Error(r(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw Error(r(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){
16if("function"!=typeof n)throw Error(r(1));return n(l)(e,t)}let o=e,c=t,u=new Map,h=u,d=0,f=!1;function p(){h===u&&(h=new Map,u.forEach((e,t)=>{h.set(t,e)}))}function m(){if(f)throw Error(r(3));return c}function g(e){if("function"!=typeof e)throw Error(r(4));if(f)throw Error(r(5));let t=!0;p();let n=d++;return h.set(n,e),function(){if(t){if(f)throw Error(r(6));t=!1,p(),h.delete(n),u=null}}}function v(e){if(!s(e))throw Error(r(7));if(void 0===e.type)throw Error(r(8));if("string"!=typeof e.type)throw Error(r(17));if(f)throw Error(r(9));try{f=!0,c=o(c,e)}finally{f=!1}return(u=h).forEach(e=>{e()}),e}return v({type:a.INIT}),{dispatch:v,subscribe:g,getState:m,replaceReducer:function(e){if("function"!=typeof e)throw Error(r(10));o=e,v({type:a.REPLACE})},[i]:function(){return{subscribe(e){if("object"!=typeof e||null===e)throw Error(r(11));function t(){e.next&&e.next(m())}return t(),{unsubscribe:g(t)}},[i](){return this}}}}}function c(e){let t,n=Object.keys(e),i={};for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof e[r]&&(i[r]=e[r])}let o=Object.keys(i);
16try{Object.keys(i).forEach(e=>{let t=i[e];if(void 0===t(void 0,{type:a.INIT}))throw Error(r(12));if(void 0===t(void 0,{type:a.PROBE_UNKNOWN_ACTION()}))throw Error(r(13))})}catch(e){t=e}return function(e={},n){if(t)throw t;let a=!1,s={};for(let t=0;t<o.length;t++){let l=o[t],c=i[l],u=e[l],h=c(u,n);if(void 0===h)throw n&&n.type,Error(r(14));s[l]=h,a=a||h!==u}return(a=a||o.length!==Object.keys(e).length)?s:e}}function u(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function h(...e){return t=>(n,i)=>{let o=t(n,i),a=()=>{throw Error(r(15))},s={getState:o.getState,dispatch:(e,...t)=>a(e,...t)};return a=u(...e.map(e=>e(s)))(o.dispatch),{...o,dispatch:a}}}function d(e){return s(e)&&"type"in e&&"string"==typeof e.type}},82263(e,t,n){"use strict";n.d(t,{Mz:()=>s});var r=e=>Array.isArray(e)?e:[e];Symbol();Object.getPrototypeOf({});var i="u">typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function o(){return{s:0,v:void 0,o:null,p:null}}function a(e,t={}){let n,r=o(),{resultEqualityCheck:s}=t,l=0;function c(){let t,a=r,{length:c}=arguments;for(let e=0;e<c;e++){let t=arguments[e];if("function"==typeof t||"object"==typeof t&&null!==t){let e=a.o;null===e&&(a.o=e=new WeakMap);let n=e.get(t);void 0===n?(a=o(),e.set(t,a)):a=n}else{let e=a.p;null===e&&(a.p=e=new Map);let n=e.get(t);void 0===n?(a=o(),e.set(t,a)):a=n}}let u=a;if(1===a.s)t=a.v;else if(t=e.apply(null,arguments),l++,s){let e=n?.deref?.()??n;null!=e&&s(e,t)&&(t=e,0!==l&&l--),n="object"==typeof t&&null!==t||"function"==typeof t?new i(t):t}return u.s=1,u.v=t,t}return c.clearCache=()=>{r=o(),c.resetResultsCount()},c.resultsCount=()=>l,c.resetResultsCount=()=>{l=0},c}var s=function(e,...t){let n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,i=(...e)=>{let t,i,o=0,s=0,l={},c=e.pop();"object"==typeof c&&(l=c,c=e.pop()),function(e,t=`expected a function, instead received ${typeof e}`){if("function"!=typeof e)throw TypeError(t)}(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);let{memoize:u,memoizeOptions:h=[],argsMemoize:d=a,argsMemoizeOptions:f=[],devModeChecks:p={}}={...n,...l},m=r(h),g=r(f),v=(!function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(e=>"function"==typeof e)){let n=e.map(e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e).join(", ");throw TypeError(`${t}[${n}]`)}}(t=Array.isArray(e[0])?e[0]:e,"createSelector expects all input-selectors to be functions, but received the following types: "),t),y=u(function(){return o++,c.apply(null,arguments)},...m);return Object.assign(d(function(){s++;let e=function(e,t){let n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}(v,arguments);return i=y.apply(null,e)},...g),{resultFunc:c,memoizedResultFunc:y,dependencies:v,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>i,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:u,argsMemoize:d})};return Object.assign(i,{withTypes:()=>i}),i}(a),l=Object.assign((e,t=s)=>{!function(e,t=`expected an object, instead received ${typeof e}`){if("object"!=typeof e)throw TypeError(t)}(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);let n=Object.keys(e);return t(n.map(t=>e[t]),(...e)=>e.reduce((e,t,r)=>(e[n[r]]=t,e),{}))},{withTypes:()=>l})},31531(e,t,n){"use strict";n.d(t,{l$:()=>x,oR:()=>m});var r=n(50405),i=n(47868);let o=Array(12).fill(0),a=({visible:e,className:t})=>r.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},r.createElement("div",{className:"sonner-spinner"},o.map((e,t)=>r.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${t}`})))),s=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),l=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
16currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),c=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),u=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),h=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},r.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),r.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),d=1,f=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,i="number"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:d++,o=this.toasts.find(e=>e.id===i),a=void 0===e.dismissible||e.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),o?this.toasts=this.toasts.map(t=>t.id===i?(this.publish({...t,...e,id:i,title:n}),{...t,...e,id:i,dismissible:a,title:n}):t):this.addToast({title:n,...r,dismissible:a,id:i}),i},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
16this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{let n,i;if(!t)return;void 0!==t.loading&&(i=this.create({...t,promise:e,type:"loading",message:t.loading,description:"function"!=typeof t.description?t.description:void 0}));let o=Promise.resolve(e instanceof Function?e():e),a=void 0!==i,s=o.then(async e=>{if(n=["resolve",e],r.isValidElement(e))a=!1,this.create({id:i,type:"default",message:e});else if(p(e)&&!e.ok){a=!1;let n="function"==typeof t.error?await t.error(`HTTP error! status: ${e.status}`):t.error,o="function"==typeof t.description?await t.description(`HTTP error! status: ${e.status}`):t.description,s="object"!=typeof n||r.isValidElement(n)?{message:n}:n;this.create({id:i,type:"error",description:o,...s})}else if(e instanceof Error){a=!1;let n="function"==typeof t.error?await t.error(e):t.error,o="function"==typeof t.description?await t.description(e):t.description,s="object"!=typeof n||r.isValidElement(n)?{message:n}:n;this.create({id:i,type:"error",description:o,...s})}else if(void 0!==t.success){a=!1;let n="function"==typeof t.success?await t.success(e):t.success,o="function"==typeof t.description?await t.description(e):t.description,s="object"!=typeof n||r.isValidElement(n)?{message:n}:n;this.create({id:i,type:"success",description:o,...s})}}).catch(async e=>{if(n=["reject",e],void 0!==t.error){a=!1;let n="function"==typeof t.error?await t.error(e):t.error,o="function"==typeof t.description?await t.description(e):t.description,s="object"!=typeof n||r.isValidElement(n)?{message:n}:n;this.create({id:i,type:"error",description:o,...s})}}).finally(()=>{a&&(this.dismiss(i),i=void 0),null==t.finally||t.finally.call(t)}),l=()=>new Promise((e,t)=>s.then(()=>"reject"===n[0]?t(n[1]):e(n[1])).catch(t));return"string"!=typeof i&&"number"!=typeof i?{unwrap:l}:Object.assign(i,{unwrap:l})},this.custom=(e,t)=>{let n=(null==t?void 0:t.id)||d++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},p=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,m=Object.assign((e,t)=>{let n=(null==t?void 0:t.id)||d++;return f.addToast({title:e,...t,id:n}),n},{success:f.success,info:f.info,warning:f.warning,error:f.error,custom:f.custom,message:f.message,promise:f.promise,dismiss:f.dismiss,loading:f.loading},{getHistory:()=>f.toasts,getToasts:()=>f.getActiveToasts()});function g(e){return void 0!==e.label}function v(...e){return e.filter(Boolean).join(" ")}!function(e){if(!e||"u"<typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}
vendor: 14,864 bytes, line 16
16("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
vendor: 800 bytes, line 16
16let y=e=>{var t,n,i,o,d,f,p,m,y,b,x,w,k;let{invert:S,toast:M,unstyled:A,interacting:E,setHeights:C,visibleToasts:O,heights:P,index:T,toasts:D,expanded:R,removeToast:j,defaultRichColors:I,closeButton:z,style:_,cancelButtonStyle:L,actionButtonStyle:N,className:B="",descriptionClassName:F="",duration:V,position:H,gap:W,expandByDefault:$,classNames:U,icons:K,closeButtonAriaLabel:q="Close toast"}=e,[G,Z]=r.useState(null),[Y,X]=r.useState(null),[J,Q]=r.useState(!1),[ee,et]=r.useState(!1),[en,er]=r.useState(!1),[ei,eo]=r.useState(!1),[ea,es]=r.useState(!1),[el,ec]=r.useState(0),[eu,eh]=r.useState(0),ed=r.useRef(M.duration||V||4e3),ef=r.useRef(null),ep=r.useRef(null),em=0===T,eg=T+1<=O,ev=M.type,ey=!1!==M.dismissible,eb=M.className||"",ex=M.descriptionClassName||"",ew=r.useMemo(()=>P.findIndex(e=>
16e.toastId===M.id)||0,[P,M.id]),ek=r.useMemo(()=>{var e;return null!=(e=M.closeButton)?e:z},[M.closeButton,z]),eS=r.useMemo(()=>M.duration||V||4e3,[M.duration,V]),eM=r.useRef(0),eA=r.useRef(0),eE=r.useRef(0),eC=r.useRef(null),[eO,eP]=H.split("-"),eT=r.useMemo(()=>P.reduce((e,t,n)=>n>=ew?e:e+t.height,0),[P,ew]),eD=(()=>{let[e,t]=r.useState(document.hidden);return r.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",e),()=>window.removeEventListener("visibilitychange",e)},[]),e})(),eR=M.invert||S,ej="loading"===ev;eA.current=r.useMemo(()=>ew*W+eT,[ew,eT]),r.useEffect(()=>{ed.current=eS},[eS]),r.useEffect(()=>{Q(!0)},[]),r.useEffect(()=>{let e=ep.current;if(e){let t=e.getBoundingClientRect().height;return eh(t),C(e=>[{toastId:M.id,height:t,position:M.position},...e]),()=>C(e=>e.filter(e=>e.toastId!==M.id))}},[C,M.id]),r.useLayoutEffect(()=>{if(!J)return;let e=ep.current,t=e.style.height;e.style.height="auto";let n=e.getBoundingClientRect().height;e.style.height=t,eh(n),C(e=>e.find(e=>e.toastId===M.id)?e.map(e=>e.toastId===M.id?{...e,height:n}:e):[{toastId:M.id,height:n,position:M.position},...e])},[J,M.title,M.description,C,M.id,M.jsx,M.action,M.cancel]);let eI=r.useCallback(()=>{et(!0),ec(eA.current),C(e=>e.filter(e=>e.toastId!==M.id)),setTimeout(()=>{j(M)},200)},[M,j,C,eA]);r.useEffect(()=>{let e;if((!M.promise||"loading"!==ev)&&M.duration!==1/0&&"loading"!==M.type){if(R||E||eD){if(eE.current<eM.current){let e=new Date().getTime()-eM.current;ed.current=ed.current-e}eE.current=new Date().getTime()}else ed.current!==1/0&&(eM.current=new Date().getTime(),e=setTimeout(()=>{null==M.onAutoClose||M.onAutoClose.call(M,M),eI()},ed.current));return()=>clearTimeout(e)}},[R,E,M,ev,eD,eI]),r.useEffect(()=>{M.delete&&(eI(),null==M.onDismiss||M.onDismiss.call(M,M))},[eI,M.delete]);let ez=M.icon||(null==K?void 0:K[ev])||(e=>{switch(e){case"success":return s;case"info":return c;case"warning":return l;case"error":return u;default:return null}})(ev);return r.createElement("li",{tabIndex:0,ref:ep,className:v(B,eb,null==U?void 0:U.toast,null==M||null==(t=M.classNames)?void 0:t.toast,null==U?void 0:U.default,null==U?void 0:U[ev],null==M||null==(n=M.classNames)?void 0:n[ev]),"data-sonner-toast":"","data-rich-colors":null!=(b=M.richColors)?b:I,"data-styled":!(M.jsx||M.unstyled||A),"data-mounted":J,"data-promise":!!M.promise,"data-swiped":ea,"data-removed":ee,"data-visible":eg,"data-y-position":eO,"data-x-position":eP,"data-index":T,"data-front":em,"data-swiping":en,"data-dismissible":ey,"data-type":ev,"data-invert":eR,"data-swipe-out":ei,"data-swipe-direction":Y,"data-expanded":!!(R||$&&J),style:{"--index":T,"--toasts-before":T,"--z-index":D.length-T,"--offset":`${ee?el:eA.current}px`,"--initial-height":$?"auto":`${eu}px`,..._,...M.style},onDragEnd:()=>{er(!1),Z(null),eC.current=null},onPointerDown:e=>{ej||!ey||(ef.current=new Date,ec(eA.current),e.target.setPointerCapture(e.pointerId),"BUTTON"!==e.target.tagName&&(er(!0),eC.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{var e,t,n,r,i;if(ei||!ey)return;eC.current=null;let o=Number((null==(e=ep.current)?void 0:e.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),a=Number((null==(t=ep.current)?void 0:t.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),s=new Date().getTime()-(null==(n=ef.current)?void 0:n.getTime()),l="x"===G?o:a,c=Math.abs(l)/s;if(Math.abs(l)>=45||c>.11){ec(eA.current),null==M.onDismiss||M.onDismiss.call(M,M),"x"===G?X(o>0?"right":"left"):X(a>0?"down":"up"),eI(),eo(!0);return}null==(r=ep.current)||r.style.setProperty("--swipe-amount-x","0px"),null==(i=ep.current)||i.style.setProperty("--swipe-amount-y","0px"),es(!1),er(!1),Z(null)},onPointerMove:t=>{var n,r,i,o;if(!eC.current||!ey||(null==(n=window.getSelection())?void 0:n.toString().length)>0)return;let a=t.clientY-eC.current.y,s=t.clientX-eC.current.x,l=null!=(o=e.swipeDirections)?o:function(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}(H);!G&&(Math.abs(s)>1||Math.abs(a)>1)&&Z(Math.abs(s)>Math.abs(a)?"x":"y");let c={x:0,y:0},u=e=>1/(1.5+Math.abs(e)/20);if("y"===G){if(l.includes("top")||l.includes("bottom"))if(l.includes("top")&&a<0||l.includes("bottom")&&a>0)c.y=a;else{let e=a*u(a);c.y=Math.abs(e)<Math.abs(a)?e:a}}else if("x"===G&&(l.includes("left")||l.includes("right")))if(l.includes("left")&&s<0||l.includes("right")&&s>0)c.x=s;else{let e=s*u(s);c.x=Math.abs(e)<Math.abs(s)?e:s}(Math.abs(c.x)>0||Math.abs(c.y)>0)&&es(!0),null==(r=ep.current)||r.style.setProperty("--swipe-amount-x",`${c.x}
16px`),null==(i=ep.current)||i.style.setProperty("--swipe-amount-y",`${c.y}px`)}},ek&&!M.jsx&&"loading"!==ev?r.createElement("button",{"aria-label":q,"data-disabled":ej,"data-close-button":!0,onClick:ej||!ey?()=>{}:()=>{eI(),null==M.onDismiss||M.onDismiss.call(M,M)},className:v(null==U?void 0:U.closeButton,null==M||null==(i=M.classNames)?void 0:i.closeButton)},null!=(x=null==K?void 0:K.close)?x:h):null,(ev||M.icon||M.promise)&&null!==M.icon&&((null==K?void 0:K[ev])!==null||M.icon)?r.createElement("div",{"data-icon":"",className:v(null==U?void 0:U.icon,null==M||null==(o=M.classNames)?void 0:o.icon)},M.promise||"loading"===M.type&&!M.icon?M.icon||((null==K?void 0:K.loading)?r.createElement("div",{className:v(null==U?void 0:U.loader,null==M||null==(k=M.classNames)?void 0:k.loader,"sonner-loader"),"data-visible":"loading"===ev},K.loading):r.createElement(a,{className:v(null==U?void 0:U.loader,null==M||null==(w=M.classNames)?void 0:w.loader),visible:"loading"===ev})):null,"loading"!==M.type?ez:null):null,r.createElement("div",{"data-content":"",className:v(null==U?void 0:U.content,null==M||null==(d=M.classNames)?void 0:d.content)},r.createElement("div",{"data-title":"",className:v(null==U?void 0:U.title,null==M||null==(f=M.classNames)?void 0:f.title)},M.jsx?M.jsx:"function"==typeof M.title?M.title():M.title),M.description?r.createElement("div",{"data-description":"",className:v(F,ex,null==U?void 0:U.description,null==M||null==(p=M.classNames)?void 0:p.description)},"function"==typeof M.description?M.description():M.description):null),r.isValidElement(M.cancel)?M.cancel:M.cancel&&g(M.cancel)?r.createElement("button",{"data-button":!0,"data-cancel":!0,style:M.cancelButtonStyle||L,onClick:e=>{!g(M.cancel)||ey&&(null==M.cancel.onClick||M.cancel.onClick.call(M.cancel,e),eI())},className:v(null==U?void 0:U.cancelButton,null==M||null==(m=M.classNames)?void 0:m.cancelButton)},M.cancel.label):null,r.isValidElement(M.action)?M.action:M.action&&g(M.action)?r.createElement("button",{"data-button":!0,"data-action":!0,style:M.actionButtonStyle||N,onClick:e=>{!g(M.action)||(null==M.action.onClick||M.action.onClick.call(M.action,e),e.defaultPrevented||eI())},className:v(null==U?void 0:U.actionButton,null==M||null==(y=M.classNames)?void 0:y.actionButton)},M.action.label):null)};function b(){if("u"<typeof window||"u"<typeof document)return"ltr";let e=document.documentElement.getAttribute("dir");return"auto"!==e&&e?e:window.getComputedStyle(document.documentElement).direction}let x=r.forwardRef(function(e,t){let{invert:n,position:o="bottom-right",hotkey:a=["altKey","KeyT"],expand:s,closeButton:l,className:c,offset:u,mobileOffset:h,theme:d="light",richColors:p,duration:m,style:g,visibleToasts:v=3,toastOptions:x,dir:w=b(),gap:k=14,icons:S,containerAriaLabel:M="Notifications"}=e,[A,E]=r.useState([]),C=r.useMemo(()=>Array.from(new Set([o].concat(A.filter(e=>e.position).map(e=>e.position)))),[A,o]),[O,P]=r.useState([]),[T,D]=r.useState(!1),[R,j]=r.useState(!1),[I,z]=r.useState("system"!==d?d:"u">typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),_=r.useRef(null),L=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),N=r.useRef(null),B=r.useRef(!1),F=r.useCallback(e=>{E(t=>{var n;return(null==(n=t.find(t=>t.id===e.id))?void 0:n.delete)||f.dismiss(e.id),t.filter(({id:t})=>t!==e.id)})},[]);return r.useEffect(()=>f.subscribe(e=>{e.dismiss?requestAnimationFrame(()=>{E(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))}):setTimeout(()=>{i.flushSync(()=>{E(t=>{let n=t.findIndex(t=>t.id===e.id);return -1!==n?[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]:[e,...t]})})})}),[A]),r.useEffect(()=>{if("system"!==d)return void z(d);if("system"===d&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?z("dark"):z("light")),"u"<typeof window)return;let e=window.matchMedia("(prefers-color-scheme: dark)");try{e.addEventListener("change",({matches:e})=>{e?z("dark"):z("light")})}catch(t){e.addListener(({matches:e})=>{try{e?z("dark"):z("light")}catch(e){console.error(e)}})}},[d]),r.useEffect(()=>{A.length<=1&&D(!1)},[A]),r.useEffect(()=>{let e=e=>{var t,n;a.every(t=>e[t]||e.code===t)&&(D(!0),null==(n=_.current)||n.focus()),"Escape"===e.code&&(document.activeElement===_.current||(null==(t=_.current)?void 0:t.contains(document.activeElement)))&&D(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[a]),r.useEffect(()=>{if(_.current)return()=>{N.current&&(N.current.focus({preventScroll:!0}),N.current=null,B.current=!1)}},[_.current]),r.createElement("section",{ref:t,"aria-label":`${M} ${L}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},C.map((t,i)=>{var o;let a,[d,f]=t.split("-");return A.length?r.createElement("ol",{key:t,dir:"auto"===w?b():w,tabIndex:-1,ref:_,className:c,"data-sonner-toaster":!0,"data-sonner-theme":I,"data-y-position":d,"data-x-position":f,style:{"--front-toast-height":`${(null==(o=O[0])?void 0:o.height)||0}px`,"--width":"356px","--gap":`${k}
16px`,...g,...(a={},[u,h].forEach((e,t)=>{let n=1===t,r=n?"--mobile-offset":"--offset",i=n?"16px":"24px";function o(e){["top","right","bottom","left"].forEach(t=>{a[`${r}-${t}`]="number"==typeof e?`${e}px`:e})}"number"==typeof e||"string"==typeof e?o(e):"object"==typeof e?["top","right","bottom","left"].forEach(t=>{void 0===e[t]?a[`${r}-${t}`]=i:a[`${r}-${t}`]="number"==typeof e[t]?`${e[t]}px`:e[t]}):o(i)}),a)},onBlur:e=>{B.current&&!e.currentTarget.contains(e.relatedTarget)&&(B.current=!1,N.current&&(N.current.focus({preventScroll:!0}),N.current=null))},onFocus:e=>{!(e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible)&&(B.current||(B.current=!0,N.current=e.relatedTarget))},onMouseEnter:()=>D(!0),onMouseMove:()=>D(!0),onMouseLeave:()=>{R||D(!1)},onDragEnd:()=>D(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||j(!0)},onPointerUp:()=>j(!1)},A.filter(e=>!e.position&&0===i||e.position===t).map((i,o)=>{var a,c;return r.createElement(y,{key:i.id,icons:S,index:o,toast:i,defaultRichColors:p,duration:null!=(a=null==x?void 0:x.duration)?a:m,className:null==x?void 0:x.className,descriptionClassName:null==x?void 0:x.descriptionClassName,invert:n,visibleToasts:v,closeButton:null!=(c=null==x?void 0:x.closeButton)?c:l,interacting:R,position:t,style:null==x?void 0:x.style,unstyled:null==x?void 0:x.unstyled,classNames:null==x?void 0:x.classNames,cancelButtonStyle:null==x?void 0:x.cancelButtonStyle,actionButtonStyle:null==x?void 0:x.actionButtonStyle,closeButtonAriaLabel:null==x?void 0:x.closeButtonAriaLabel,removeToast:F,toasts:A.filter(e=>e.position==i.position),heights:O.filter(e=>e.position==i.position),setHeights:P,expandByDefault:s,gap:k,expanded:T,swipeDirections:e.swipeDirections})})):null}))})},22776(e,t,n){"use strict";n.d(t,{G:()=>a});let r="u"<typeof Symbol?"__ͼ":Symbol.for("ͼ"),i="u"<typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),o="u">typeof globalThis?globalThis:"u">typeof window?window:{};class a{constructor(e,t){this.rules=[];let{finish:n}=t||{};function r(e){return/^@/.test(e)?[e]:e.split(/,\s*/)}for(let t in e)!function e(t,i,o,a){let s=[],l=/^@(\w+)\b/.exec(t[0]),c=l&&"keyframes"==l[1];if(l&&null==i)return o.push(t[0]+";");for(let n in i){let a=i[n];if(/&/.test(n))e(n.split(/,\s*/).map(e=>t.map(t=>e.replace(/&/,t))).reduce((e,t)=>e.concat(t)),a,o);else if(a&&"object"==typeof a){if(!l)throw RangeError("The value of a property ("+n+") should be a primitive value.");e(r(n),a,s,c)}else null!=a&&s.push(n.replace(/_.*/,"").replace(/[A-Z]/g,e=>"-"+e.toLowerCase())+": "+a+";")}(s.length||c)&&o.push((n&&!l&&!a?t.map(n):t).join(", ")+" {"+s.join(" ")+"}")}(r(t),e[t],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=o[r]||1;return o[r]=e+1,"ͼ"+e.toString(36)}static mount(e,t,n){let r=e[i],o=n&&n.nonce;r?o&&r.setNonce(o):r=new l(e,o),r.mount(Array.isArray(t)?t:[t],e)}}let s=new Map;class l{constructor(e,t){let n=e.ownerDocument||e,r=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let t=s.get(n);if(t)return e[i]=t;this.sheet=new r.CSSStyleSheet,s.set(n,this)}else this.styleTag=n.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[i]=this}mount(e,t){let n=this.sheet,r=0,i=0;for(let t=0;t<e.length;t++){let o=e[t],a=this.modules.indexOf(o);if(a<i&&a>-1&&(this.modules.splice(a,1),i--,a=-1),-1==a){if(this.modules.splice(i++,0,o),n)for(let e=0;e<o.rules.length;e++)n.insertRule(o.rules[e],r++)}else{for(;i<a;)r+=this.modules[i++].rules.length;r+=o.rules.length,i++}}if(n)0>t.adoptedStyleSheets.indexOf(this.sheet)&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{let e="";for(let t=0;t<this.modules.length;t++)e+=this.modules[t].getRules()+"\n";this.styleTag.textContent=e;let n=t.head||t;this.styleTag.parentNode!=n&&n.insertBefore(this.styleTag,n.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}},83455(e,t,n){"use strict";n.d(t,{QP:()=>H});let r=(e,t)=>{if(0===e.length)return t.classGroupId;let n=e[0],i=t.nextPart.get(n),o=i?r(e.slice(1),i):void 0;if(o)return o;if(0===t.validators.length)return;let a=e.join("-");return t.validators.find(({validator:e})=>e(a))?.classGroupId},i=/^\[(.+)\]$/,o=(e,t,n,r)=>
16{e.forEach(e=>{if("string"==typeof e){(""===e?t:a(t,e)).classGroupId=n;return}"function"==typeof e?s(e)?o(e(r),t,n,r):t.validators.push({validator:e,classGroupId:n}):Object.entries(e).forEach(([e,i])=>{o(i,a(t,e),n,r)})})},a=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},s=e=>e.isThemeGetter,l=(e,t)=>t?e.map(([e,n])=>[e,n.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,n])=>[t+e,n])):e)]):e,c=e=>{if(e.length<=1)return e;let t=[],n=[];return e.forEach(e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)}),t.push(...n.sort()),t},u=/\s+/;function h(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=d(e))&&(r&&(r+=" "),r+=t);return r}let d=e=>{let t;if("string"==typeof e)return e;let n="";for(let r=0;r<e.length;r++)e[r]&&(t=d(e[r]))&&(n&&(n+=" "),n+=t);return n},f=e=>{let t=t=>t[e]||[];return t.isThemeGetter=!0,t},p=/^\[(?:([a-z-]+):)?(.+)\]$/i,m=/^\d+\/\d+$/,g=new Set(["px","full","screen"]),v=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,y=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,b=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,x=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,w=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,k=e=>M(e)||g.has(e)||m.test(e),S=e=>L(e,"length",N),M=e=>!!e&&!Number.isNaN(Number(e)),A=e=>L(e,"number",M),E=e=>!!e&&Number.isInteger(Number(e)),C=e=>e.endsWith("%")&&M(e.slice(0,-1)),O=e=>p.test(e),P=e=>v.test(e),T=new Set(["length","size","percentage"]),D=e=>L(e,T,B),R=e=>L(e,"position",B),j=new Set(["image","url"]),I=e=>L(e,j,V),z=e=>L(e,"",F),_=()=>!0,L=(e,t,n)=>{let r=p.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},N=e=>y.test(e)&&!b.test(e),B=()=>!1,F=e=>x.test(e),V=e=>w.test(e),H=function(e){let t,n,a,s=function(c){let u;return n=(t={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=new Map,r=new Map,i=(i,o)=>{n.set(i,o),++t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(i(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):i(e,t)}}})((u=[].reduce((e,t)=>t(e),e())).cacheSize),parseClassName:(e=>{let{separator:t,experimentalParseClassName:n}=e,r=1===t.length,i=t[0],o=t.length,a=e=>{let n,a=[],s=0,l=0;for(let c=0;c<e.length;c++){let u=e[c];if(0===s){if(u===i&&(r||e.slice(c,c+o)===t)){a.push(e.slice(l,c)),l=c+o;continue}if("/"===u){n=c;continue}}"["===u?s++:"]"===u&&s--}let c=0===a.length?e:e.substring(l),u=c.startsWith("!"),h=u?c.substring(1):c;return{modifiers:a,hasImportantModifier:u,baseClassName:h,maybePostfixModifierPosition:n&&n>l?n-l:void 0}};return n?e=>n({className:e,parseClassName:a}):a})(u),...(e=>{let t=(e=>{let{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return l(Object.entries(e.classGroups),n).forEach(([e,n])=>{o(n,r,e,t)}),r})(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:e=>{let n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),r(n,t)||(e=>{if(i.test(e)){let t=i.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}})(e)},getConflictingClassGroupIds:(e,t)=>{let r=n[e]||[];return t&&a[e]?[...r,...a[e]]:r}}})(u)}).cache.get,a=t.cache.set,s=d,d(c)};function d(e){let r=n(e);if(r)return r;let i=((e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,o=[],a=e.trim().split(u),s="";for(let e=a.length-1;e>=0;e-=1){let t=a[e],{modifiers:l,hasImportantModifier:u,baseClassName:h,maybePostfixModifierPosition:d}=n(t),f=!!d,p=r(f?h.substring(0,d):h);if(!p){if(!f||!(p=r(h))){s=t+(s.length>0?" "+s:s);continue}f=!1}let m=c(l).join(":"),g=u?m+"!":m,v=g+p;if(o.includes(v))continue;o.push(v);let y=i(p,f);for(let e=0;e<y.length;++e){let t=y[e];o.push(g+t)}s=t+(s.length>0?" "+s:s)}return s})(e,t);return a(e,i),i}return function(){return s(h.apply(null,arguments))}}(()=>{let e=f("colors"),t=f("spacing"),n=f("blur"),r=f("brightness"),i=f("borderColor"),o=f("borderRadius"),a=f("borderSpacing"),s=f("borderWidth"),l=f("contrast"),c=f("grayscale"),u=f("hueRotate"),h=f("invert"),d=f("gap"),p=f("gradientColorStops"),m=f("gradientColorStopPositions"),g=f("inset"),v=f("margin"),y=f("opacity"),b=f("padding"),x=f("saturate"),w=f("scale"),T=f("sepia"),j=f("skew"),L=f("space"),N=f("translate"),B=()=>["auto","contain","none"],F=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto",O,t],H=()=>[O,t],W=()=>["",k,S],$=()=>["auto",M,O],U=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],K=()=>["solid","dashed","dotted","double","none"],q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],G=()=>["start","end","center","between","around","evenly","stretch"],Z=()=>["","0",O],Y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],X=()=>[M,O];return{cacheSize:500,separator:":",theme:{colors:[_],spacing:[k,S],blur:["none","",P,O],brightness:X(),borderColor:[e],borderRadius:["n
16one","","full",P,O],borderSpacing:H(),borderWidth:W(),contrast:X(),grayscale:Z(),hueRotate:X(),invert:Z(),gap:H(),gradientColorStops:[e],gradientColorStopPositions:[C,S],inset:V(),margin:V(),opacity:X(),padding:H(),saturate:X(),scale:X(),sepia:Z(),skew:X(),space:H(),translate:H()},classGroups:{aspect:[{aspect:["auto","square","video",O]}],container:["container"],columns:[{columns:[P]}],"break-after":[{"break-after":Y()}],"break-before":[{"break-before":Y()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...U(),O]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",E,O]}],basis:[{basis:V()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",O]}],grow:[{grow:Z()}],shrink:[{shrink:Z()}],order:[{order:["first","last","none",E,O]}],"grid-cols":[{"grid-cols":[_]}],"col-start-end":[{col:["auto",{span:["full",E,O]},O]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[_]}],"row-start-end":[{row:["auto",{span:[E,O]},O]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",O]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",O]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...G()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...G(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...G(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[L]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[L]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",O,t]}],"min-w":[{"min-w":[O,t,"min","max","fit"]}],"max-w":[{"max-w":[O,t,"none","full","min","max","fit","prose",{screen:[P]},P]}],h:[{h:[O,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[O,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[O,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[O,t,"auto","min","max","fit"]}],"font-size":[{text:["base",P,S]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",A]}],"font-family":[{font:[_]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",O]}],"line-clamp":[{"line-clamp":["none",M,A]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",k,O]}],"list-image":[{"list-image":["none",O]}],"list-style-type":[{list:["none","disc","decimal",O]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...K(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",k,S]}],"underline-offset":[{"underline-offset":["auto",k,O]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",O]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",O]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...U(),R]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}
vendor: 5,808 bytes, line 16
16],"bg-size":[{bg:["auto","cover","contain",D]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},I]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...K(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:K()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...K()]}],"outline-offset":[{"outline-offset":[k,O]}],"outline-w":[{outline:[k,S]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[k,S]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",P,z]}],"shadow-color":[{shadow:[_]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...q(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":q()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",P,O]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[h]}],saturate:[{saturate:[x]}],sepia:[{sepia:[T]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[T]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",O]}],duration:[{duration:X()}],ease:[{ease:["linear","in","out","in-out",O]}],delay:[{delay:X()}],animate:[{animate:["none","spin","ping","pulse","bounce",O]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[E,O]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[j]}],"skew-y":[{"skew-y":[j]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",O]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",O]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",O]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[k,S,A]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","
16none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}})},65959(e,t,n){"use strict";n.d(t,{Cl:()=>r,Tt:()=>i,fX:()=>a,sH:()=>o});var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function i(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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function o(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}function a(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}},41563(e,t,n){"use strict";n.d(t,{BN:()=>i,E3:()=>r,xT:()=>c});for(var r={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},i={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},o="u">typeof navigator&&/Mac/.test(navigator.platform),a="u">typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),s=0;s<10;s++)r[48+s]=r[96+s]=String(s);for(var s=1;s<=24;s++)r[s+111]="F"+s;for(var s=65;s<=90;s++)r[s]=String.fromCharCode(s+32),i[s]=String.fromCharCode(s);for(var l in r)i.hasOwnProperty(l)||(i[l]=r[l]);function c(e){var t=!(o&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||a&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?i:r)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}},89623(e,t,n){"use strict";n.d(t,{EB:()=>tV,Ie:()=>nz,k5:()=>nx,bz:()=>ns,p6:()=>nd,Np:()=>t7,zM:()=>no,ai:()=>nt,Xi:()=>nC,YO:()=>np,Ik:()=>ng,Yj:()=>tF,OZ:()=>tK});var r,i=n(78646);let o=/^[cC][0-9a-z]{6,}
16$/,a=/^[0-9a-z]+$/,s=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,l=/^[0-9a-vA-V]{20}$/,c=/^[A-Za-z0-9]{27}$/,u=/^[a-zA-Z0-9_-]{21}$/,h=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,d=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,f=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,p=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,m=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,g=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,v=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,y=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,b=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,x=/^[A-Za-z0-9_-]*$/,w=/^https?$/,k=/^\+[1-9]\d{6,14}$/,S="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",M=RegExp(`^${S}$`);function A(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}let E=/^-?\d+$/,C=/^-?\d+(?:\.\d+)?$/,O=/^(?:true|false)$/i,P=/^[^A-Z]*$/,T=/^[^a-z]*$/;var D=n(94537);let R=i.xI("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),j={number:"number",bigint:"bigint",object:"date"},I=i.xI("$ZodCheckLessThan",(e,t)=>{R.init(e,t);let n=j[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:"object"==typeof t.value?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),z=i.xI("$ZodCheckGreaterThan",(e,t)=>{R.init(e,t);let n=j[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:"object"==typeof t.value?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),_=i.xI("$ZodCheckMultipleOf",(e,t)=>{R.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof n.value?n.value%t.value===BigInt(0):0===D.LG(n.value,t.value))||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),L=i.xI("$ZodCheckNumberFormat",(e,t)=>{R.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),r=n?"int":"number",[i,o]=D.zH[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=o,n&&(r.pattern=E)}),e._zod.check=a=>{let s=a.value;if(n){if(!Number.isInteger(s))return void a.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});if(!Number.isSafeInteger(s))return void(s>
160?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}))}s<i&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>o&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),N=i.xI("$ZodCheckMaxLength",(e,t)=>{var n;R.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!D.cl(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=D.Rc(r);n.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),B=i.xI("$ZodCheckMinLength",(e,t)=>{var n;R.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!D.cl(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=D.Rc(r);n.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),F=i.xI("$ZodCheckLengthEquals",(e,t)=>{var n;R.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!D.cl(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let o=D.Rc(r),a=i>t.length;n.issues.push({origin:o,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),V=i.xI("$ZodCheckStringFormat",(e,t)=>{var n,r;R.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??(n.patterns=new Set),n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,t.pattern.test(n.value)||n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),H=i.xI("$ZodCheckRegex",(e,t)=>{V.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,t.pattern.test(n.value)||n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),W=i.xI("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=P),V.init(e,t)}),$=i.xI("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=T),V.init(e,t)}),U=i.xI("$ZodCheckIncludes",(e,t)=>{R.init(e,t);let n=D.$f(t.includes),r=new RegExp("number"==typeof t.position?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),K=i.xI("$ZodCheckStartsWith",(e,t)=>{R.init(e,t);let n=RegExp(`^${D.$f(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),q=i.xI("$ZodCheckEndsWith",(e,t)=>{R.init(e,t);let n=RegExp(`.*${D.$f(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),G=i.xI("$ZodCheckOverwrite",(e,t)=>{R.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});class Z{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let t=e.split("\n").filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length));for(let e of t.map(e=>e.slice(n)).map(e=>" ".repeat(2*this.indent)+e))this.content.push(e)}compile(){return Function(...this?.args,[...(this?.content??[""]).map(e=>`  ${e}`)].join("\n"))}}
16var Y=n(46614);let X={major:4,minor:4,patch:3},J=i.xI("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=X;let r=[...e._zod.def.checks??[]];for(let t of(e._zod.traits.has("$ZodCheck")&&r.unshift(e),r))for(let n of t._zod.onattach)n(e);if(0===r.length)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r,o=D.QH(e);for(let a of t){if(a._zod.def.when){if(D.rL(e)||!a._zod.def.when(e))continue}else if(o)continue;let t=e.issues.length,s=a._zod.check(e);if(s instanceof Promise&&n?.async===!1)throw new i.GT;if(r||s instanceof Promise)r=(r??Promise.resolve()).then(async()=>{await s,e.issues.length!==t&&(o||(o=D.QH(e,t)))});else{if(e.issues.length===t)continue;o||(o=D.QH(e,t))}}return r?r.then(()=>e):e},n=(n,o,a)=>{if(D.QH(n))return n.aborted=!0,n;let s=t(o,r,a);if(s instanceof Promise){if(!1===a.async)throw new i.GT;return s.then(t=>e._zod.parse(t,a))}return e._zod.parse(s,a)};e._zod.run=(o,a)=>{if(a.skipChecks)return e._zod.parse(o,a);if("backward"===a.direction){let t=e._zod.parse({value:o.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,o,a)):n(t,o,a)}let s=e._zod.parse(o,a);if(s instanceof Promise){if(!1===a.async)throw new i.GT;return s.then(e=>t(e,r,a))}return t(s,r,a)}}D.gJ(e,"~standard",()=>({validate:t=>{try{let n=(0,Y.xL)(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch(n){return(0,Y.bp)(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:"zod",version:1}))}),Q=i.xI("$ZodString",(e,t)=>{var n;let r;J.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??(r=(n=e._zod.bag)?`[\\s\\S]{${n?.minimum??0},${n?.maximum??""}}`:"[\\s\\S]*",RegExp(`^${r}$`)),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch(e){}return"string"==typeof n.value||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),ee=i.xI("$ZodStringFormat",(e,t)=>{V.init(e,t),Q.init(e,t)}),et=i.xI("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=d),ee.init(e,t)}),en=i.xI("$ZodUUID",(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===e)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=f(e))}else t.pattern??(t.pattern=f());ee.init(e,t)}),er=i.xI("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=p),ee.init(e,t)}),ei=i.xI("$ZodURL",(e,t)=>{ee.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===w.source&&!/^https?:\/\//i.test(r))return void n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch(r){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),eo=i.xI("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),ee.init(e,t)}),ea=i.xI("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=u),ee.init(e,t)}),es=i.xI("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=o),ee.init(e,t)}),el=i.xI("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=a),ee.init(e,t)}),ec=i.xI("$ZodULID",(e,t)=>{t.pattern??(t.pattern=s),ee.init(e,t)}),eu=i.xI("$ZodXID",(e,t)=>{t.pattern??(t.pattern=l),ee.init(e,t)}),eh=i.xI("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=c),ee.init(e,t)}),ed=i.xI("$ZodISODateTime",(e,t)=>{let n,r,i;t.pattern??(n=A({precision:t.precision}),r=["Z"],t.local&&r.push(""),t.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)"),i=`${n}(?:${r.join("|")})`,t.pattern=RegExp(`^${S}T(?:${i})$`)),ee.init(e,t)}),ef=i.xI("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=M),ee.init(e,t)}),ep=i.xI("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=RegExp(`^${A(t)}$`)),ee.init(e,t)}),em=i.xI("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=h),ee.init(e,t)}),eg=i.xI("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=m),ee.init(e,t),e._zod.bag.format="ipv4"}),ev=i.xI("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=g),ee.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),ey=i.xI("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=v),ee.init(e,t)}),eb=i.xI("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=y),ee.init(e,t),e._zod.check=n=>{let r=n.value.split("/");try{if(2!==r.length)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function ex(e){if(""===e)return!0;
16if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}let ew=i.xI("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=b),ee.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{ex(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}}),ek=i.xI("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=x),ee.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{!function(e){if(!x.test(e))return!1;let t=e.replace(/[-_]/g,e=>"-"===e?"+":"/");return ex(t.padEnd(4*Math.ceil(t.length/4),"="))}(n.value)&&n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),eS=i.xI("$ZodE164",(e,t)=>{t.pattern??(t.pattern=k),ee.init(e,t)}),eM=i.xI("$ZodJWT",(e,t)=>{ee.init(e,t),e._zod.check=n=>{!function(e,t=null){try{let n=e.split(".");if(3!==n.length)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));if("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))return!1;return!0}catch{return!1}}(n.value,t.alg)&&n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),eA=i.xI("$ZodCustomStringFormat",(e,t)=>{ee.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort})}}),eE=i.xI("$ZodNumber",(e,t)=>{J.init(e,t),e._zod.pattern=e._zod.bag.pattern??C,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch(e){}let i=n.value;if("number"==typeof i&&!Number.isNaN(i)&&Number.isFinite(i))return n;let o="number"==typeof i?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...o?{received:o}:{}}),n}}),eC=i.xI("$ZodNumberFormat",(e,t)=>{L.init(e,t),eE.init(e,t)}),eO=i.xI("$ZodBoolean",(e,t)=>{J.init(e,t),e._zod.pattern=O,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch(e){}let i=n.value;return"boolean"==typeof i||n.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),n}}),eP=i.xI("$ZodAny",(e,t)=>{J.init(e,t),e._zod.parse=e=>e}),eT=i.xI("$ZodUnknown",(e,t)=>{J.init(e,t),e._zod.parse=e=>e}),eD=i.xI("$ZodNever",(e,t)=>{J.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)}),eR=i.xI("$ZodDate",(e,t)=>{J.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch(e){}let i=n.value,o=i instanceof Date;return o&&!Number.isNaN(i.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:i,...o?{received:"Invalid Date"}:{},inst:e}),n}});function ej(e,t,n){e.issues.length&&t.issues.push(...D.lQ(n,e.issues)),t.value[n]=e.value}let eI=i.xI("$ZodArray",(e,t)=>{J.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),n;n.value=Array(i.length);let o=[];for(let e=0;e<i.length;e++){let a=i[e],s=t.element._zod.run({value:a,issues:[]},r);s instanceof Promise?o.push(s.then(t=>ej(t,n,e))):ej(s,n,e)}return o.length?Promise.all(o).then(()=>n):n}});function ez(e,t,n,r,i,o){let a=n in r;if(e.issues.length){if(i&&o&&!a)return;t.issues.push(...D.lQ(n,e.issues))}if(!a&&!i){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}void 0===e.value?a&&(t.value[n]=void 0):t.value[n]=e.value}function e_(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=D.NM(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function eL(e,t,n,r,i,o){let a=[],s=i.keySet,l=i.catchall._zod,c=l.def.type,u="optional"===l.optin,h="optional"===l.optout;for(let i in t){if("__proto__"===i||s.has(i))continue;if("never"===c){a.push(i);continue}let o=l.run({value:t[i],issues:[]},r);o instanceof Promise?e.push(o.then(e=>ez(e,n,i,t,u,h))):ez(o,n,i,t,u,h)}return(a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:o}),e.length)?Promise.all(e).then(()=>n):n}let eN=i.xI("$ZodObject",(e,t)=>{let n;J.init(e,t);let r=Object.getOwnPropertyDescriptor(t,"shape");if(!r?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let n={...e};return Object.defineProperty(t,"shape",{value:n}),n}})}let i=D.PO(()=>e_(t));D.gJ(e._zod,"propValues",()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values)for(let e of(n[t]??(n[t]=new Set),r.values))n[t].add(e)}return n});let o=D.Gv,a=t.catchall;e._zod.parse=(t,r)=>{n??(n=i.value);let s=t.value;if(!o(s))return t.issues.push({expected:"object",code:"invalid_type",input:s,inst:e}),t;t.value={};let l=[],c=n.shape;for(let e of n.keys){let n=c[e],i="optional"===n._zod.optin,o="optional"===n._zod.optout,a=n._zod.run({value:s[e],issues:[]},r);a instanceof Promise?l.push(a.then(n=>ez(n,t,e,s,i,o))):ez(a,t,e,s,i,o)}return a?eL(l,s,t,r,i.value,e):l.length?Promise.all(l).then(()=>t):t}}),eB=i.xI("$ZodObjectJIT",(e,t)=>{let n,r;eN.init(e,t);let o=e._zod.parse,a=D.PO(()=>e_(t)),s=D.Gv,l=!i.cr.jitless,c=D.hI,u=l&&c.value,h=t.catchall;e._zod.parse=(i,c)=>{r??(r=a.value);let d=i.value;return s(d)?l&&u&&c?.async===!1&&!0!==c.jitless?(n||(n=(e=>{let t=new Z(["shape","payload","ctx"]),n=a.value,r=e=>{let t=D.UQ(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write("const input = payload.value;");let i=Object.create(null),o=0;for(let e of n.keys)i[e]=`key_${o++}`;for(let o of(t.write("const newResult = {};"),n.keys)){let n=i[o],a=D.UQ(o),s=e[o],l=s?._zod?.optin==="optional",c=s?._zod?.optout==="optional";t.write(`const ${n} = ${r(o)};`),l&&c?t.write(`
17        if (${n}.issues.length) {
18          if (${a} in input) {
19            payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
20              ...iss,
21              path: iss.path ? [${a}, ...iss.path] : [${a}]
22            })));
23          }
24        }
25        
26        if (${n}.value === undefined) {
27          if (${a} in input) {
28            newResult[${a}] = undefined;
29          }
30        } else {
31          newResult[${a}] = ${n}.value;
32        }
33        
34      `):l?t.write(`
35        if (${n}.issues.length) {
36          payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
37            ...iss,
38            path: iss.path ? [${a}, ...iss.path] : [${a}]
39          })));
40        }
41        
42        if (${n}.value === undefined) {
43          if (${a} in input) {
44            newResult[${a}] = undefined;
45          }
46        } else {
47          newResult[${a}] = ${n}.value;
48        }
49        
50      `):t.write(`
51        const ${n}_present = ${a} in input;
52        if (${n}.issues.length) {
53          payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
54            ...iss,
55            path: iss.path ? [${a}, ...iss.path] : [${a}]
56          })));
57        }
58        if (!${n}_present && !${n}.issues.length) {
59          payload.issues.push({
60            code: "invalid_type",
61            expected: "nonoptional",
62            input: undefined,
63            path: [${a}]
64          });
65        }
66
67        if (${n}_present) {
68          if (${n}.value === undefined) {
69            newResult[${a}] = undefined;
70          } else {
71            newResult[${a}] = ${n}.value;
72          }
73        }
74
75      `)}t.write("payload.value = newResult;"),t.write("return payload;");let s=t.compile();return(t,n)=>s(e,t,n)})(t.shape)),i=n(i,c),h)?eL([],d,i,c,r,e):i:o(i,c):(i.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),i)}});function eF(e,t,n,r){for(let n of e)if(0===n.issues.length)return t.value=n.value,t;let o=e.filter(e=>!D.QH(e));return 1===o.length?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>D.iR(e,r,i.$W())))}),t)}let eV=i.xI("$ZodUnion",(e,t)=>{J.init(e,t),D.gJ(e._zod,"optin",()=>t.options.some(e=>"optional"===e._zod.optin)?"optional":void 0),D.gJ(e._zod,"optout",()=>t.options.some(e=>"optional"===e._zod.optout)?"optional":void 0),D.gJ(e._zod,"values",()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),D.gJ(e._zod,"pattern",()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>D.p6(e.source)).join("|")})$`)}});let n=1===t.options.length?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let o=!1,a=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)a.push(t),o=!0;else{if(0===t.issues.length)return t;a.push(t)}}return o?Promise.all(a).then(t=>eF(t,r,e,i)):eF(a,r,e,i)}}),eH=i.xI("$ZodIntersection",(e,t)=>{J.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),o=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||o instanceof Promise?Promise.all([i,o]).then(([t,n])=>eW(e,t,n)):eW(e,i,o)}});function eW(e,t,n){let r,i=new Map;for(let n of t.issues)if("unrecognized_keys"===n.code)for(let e of(r??(r=n),n.keys))i.has(e)||i.set(e,{}),i.get(e).l=!0;else e.issues.push(n);for(let t of n.issues)if("unrecognized_keys"===t.code)for(let e of t.keys)i.has(e)||i.set(e,{}),i.get(e).r=!0;else e.issues.push(t);let o=[...i].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(o.length&&r&&e.issues.push({...r,keys:o}),D.QH(e))return e;let a=function e(t,n){if(t===n||t instanceof Date&&n instanceof Date&&+t==+n)return{valid:!0,data:t};if(D.Qd(t)&&D.Qd(n)){let r=Object.keys(n),i=Object.keys(t).filter(e=>-1!==r.indexOf(e)),o={...t,...n};for(let r of i){let i=e(t[r],n[r]);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};o[r]=i.data}return{valid:!0,data:o}}if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let i=0;i<t.length;i++){let o=e(t[i],n[i]);if(!o.valid)return{valid:!1,mergeErrorPath:[i,...o.mergeErrorPath]};r.push(o.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}(t.value,n.value);if(!a.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}let e$=i.xI("$ZodEnum",(e,t)=>{J.init(e,t);let n=D.w5(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>D.qQ.has(typeof e)).map(e=>"string"==typeof e?D.$f(e):e.toString()).join("|")})$`),e._zod.parse=(t,i)=>{let o=t.value;return r.has(o)||t.issues.push({code:"invalid_value",values:n,input:o,inst:e}),t}}),eU=i.xI("$ZodTransform",(e,t)=>{J.init(e,t),e._zod.optin="optional",e._zod.parse=(n,r)=>{if("backward"===r.direction)throw new i.cV(e.constructor.name);let o=t.transform(n.value,n);if(r.async)return(o instanceof Promise?o:Promise.resolve(o)).then(e=>(n.value=e,n.fallback=!0,n));if(o instanceof Promise)throw new i.GT;return n.value=o,n.fallback=!0,n}});function eK(e,t){return void 0===t&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}let eq=i.xI("$ZodOptional",(e,t)=>{J.init(e,t),e._zod.optin="optional",e._zod.optout="optional",D.gJ(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),D.gJ(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${D.p6(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if("optional"===t.innerType._zod.optin){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>eK(e,r)):eK(i,r)}return void 0===e.value?e:t.innerType._zod.run(e,n)}}),eG=i.xI("$ZodExactOptional",(e,t)=>{eq.init(e,t),D.gJ(e._zod,"values",()=>t.innerType._zod.values),D.gJ(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),eZ=i.xI("$ZodNullable",(e,t)=>{J.init(e,t),D.gJ(e._zod,"optin",()=>t.innerType._zod.optin),D.gJ(e._zod,"optout",()=>t.innerType._zod.optout),D.gJ(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${D.p6(e.source)}|null)$`):void 0}),D.gJ(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>null===e.value?e:t.innerType._zod.run(e,n)}),eY=i.xI("$ZodDefault",(e,t)=>{J.init(e,t),e._zod.optin="optional",D.gJ(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if("backward"===n.direction)return t.innerType._zod.run(e,n);if(void 0===e.value)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>eX(e,t)):eX(r,t)}});function eX(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}let eJ=i.xI("$ZodPrefault",(e,t)=>{J.init(e,t),e._zod.optin="optional",D.gJ(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,n)=>("backward"===n.direction||void 0===e.value&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),eQ=i.xI("$ZodNonOptional",(e,t)=>{J.init(e,t),D.gJ(e._zod,"values",()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>void 0!==e)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>e0(t,e)):e0(i,e)}});function e0(e,t){return e.issues.length||void 0!==e.value||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}let e1=i.xI("$ZodCatch",(e,t)=>{J.init(e,t),e._zod.optin="optional",D.gJ(e._zod,"optout",()=>t.innerType._zod.optout),D.gJ(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if("backward"===n.direction)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>D.iR(e,n,i.$W()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>D.iR(e,n,i.$W()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),e2=i.xI("$ZodPipe",(e,t)=>{J.init(e,t),D.gJ(e._zod,"values",()=>t.in._zod.values),D.gJ(e._zod,"optin",()=>t.in._zod.optin),D.gJ(e._zod,"optout",()=>t.out._zod.optout),D.gJ(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if("backward"===n.direction){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>e4(e,t.in,n)):e4(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>e4(e,t.out,n)):e4(r,t.out,n)}});function e4(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}let e5=i.xI("$ZodReadonly",(e,t)=>{J.init(e,t),D.gJ(e._zod,"propValues",()=>t.innerType._zod.propValues),D.gJ(e._zod,"values",()=>t.innerType._zod.values),D.gJ(e._zod,"optin",()=>t.innerType?._zod?.optin),D.gJ(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if("backward"===n.direction)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e3):e3(r)}});function e3(e){return e.value=Object.freeze(e.value),e}let e6=i.xI("$ZodCustom",(e,t)=>{R.init(e,t),J.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>e8(t,n,r,e));e8(i,n,r,e)}});function e8(e,t,n,r){if(!e){let e={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(D.sn(e))}}Symbol("ZodOutput"),Symbol("ZodInput");(r=globalThis).__zod_globalRegistry??(r.__zod_globalRegistry=new class e{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&"object"==typeof n&&"id"in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&"object"==typeof t&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}});let e9=globalThis.__zod_globalRegistry;function e7(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...D.A2(t)})}function te(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...D.A2(t)})}function tt(e,t){return new I({check:"less_than",...D.A2(t),value:e,inclusive:!1})}function tn(e,t){return new I({check:"less_than",...D.A2(t),value:e,inclusive:!0})}function tr(e,t){return new z({check:"greater_than",...D.A2(t),value:e,inclusive:!1})}function ti(e,t){return new z({check:"greater_than",...D.A2(t),value:e,inclusive:!0})}function to(e,t){return new _({check:"multiple_of",...D.A2(t),value:e})}function ta(e,t){return new N({check:"max_length",...D.A2(t),maximum:e})}function ts(e,t){return new B({check:"min_length",...D.A2(t),minimum:e})}function tl(e,t){return new F({check:"length_equals",...D.A2(t),length:e})}function tc(e){return new G({check:"overwrite",tx:e})}
75function tu(e){let t=e?.target??"draft-2020-12";return"draft-4"===t&&(t="draft-04"),"draft-7"===t&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??e9,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function th(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,o=t.seen.get(e);if(o)return o.count++,n.schemaPath.includes(e)&&(o.cycle=n.path),o.schema;let a={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,a);let s=e._zod.toJSONSchema?.();if(s)a.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,r);else{let n=a.schema,o=t.processors[i.type];if(!o)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);o(e,t,n,r)}let o=e._zod.parent;o&&(a.ref||(a.ref=o),th(o,t,r),t.seen.get(o).isParent=!0)}let l=t.metadataRegistry.get(e);return l&&Object.assign(a.schema,l),"input"===t.io&&function e(t,n){let r=n??{seen:new Set};if(r.seen.has(t))return!1;r.seen.add(t);let i=t._zod.def;if("transform"===i.type)return!0;if("array"===i.type)return e(i.element,r);if("set"===i.type)return e(i.valueType,r);if("lazy"===i.type)return e(i.getter(),r);if("promise"===i.type||"optional"===i.type||"nonoptional"===i.type||"nullable"===i.type||"readonly"===i.type||"default"===i.type||"prefault"===i.type)return e(i.innerType,r);if("intersection"===i.type)return e(i.left,r)||e(i.right,r);if("record"===i.type||"map"===i.type)return e(i.keyType,r)||e(i.valueType,r);if("pipe"===i.type)return!!t._zod.traits.has("$ZodCodec")||e(i.in,r)||e(i.out,r);if("object"===i.type){for(let t in i.shape)if(e(i.shape[t],r))return!0;return!1}if("union"===i.type){for(let t of i.options)if(e(t,r))return!0;return!1}if("tuple"===i.type){for(let t of i.items)if(e(t,r))return!0;if(i.rest&&e(i.rest,r))return!0}return!1}(e)&&(delete a.schema.examples,delete a.schema.default),"input"===t.io&&"_prefault"in a.schema&&((r=a.schema).default??(r.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function td(e,t){let n=e.seen.get(t);if(!n)throw Error("Unprocessed schema. This is a bug in Zod.");let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{if(t[1].schema.$ref)return;let r=t[1],{ref:i,defId:o}=(t=>{let r="draft-2020-12"===e.target?"$defs":"definitions";if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let o=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=o,{defId:o,ref:`${i("__shared")}#/${r}/${o}`}}if(t[1]===n)return{ref:"#"};let i=`#/${r}/`,o=t[1].schema.id??`__schema${e.counter++}`;return{defId:o,ref:i+o}})(t);r.def={...r.schema},o&&(r.defId=o);let a=r.schema;for(let e in a)delete a[e];a.$ref=i};if("throw"===e.cycles)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join("/")}/<root>
76
77Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){i(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){i(n);continue}}if(e.metadataRegistry.get(n[0])?.id||r.cycle||r.count>1&&"ref"===e.reused){i(n);continue}}}function tf(e,t){let n=e.seen.get(t);if(!n)throw Error("Unprocessed schema. This is a bug in Zod.");let r=t=>{let n=e.seen.get(t);if(null===n.ref)return;let i=n.def??n.schema,o={...i},a=n.ref;if(n.ref=null,a){r(a);let n=e.seen.get(a),s=n.schema;if(s.$ref&&("draft-07"===e.target||"draft-04"===e.target||"openapi-3.0"===e.target)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,o),t._zod.parent===a)for(let e in i)"$ref"!==e&&"allOf"!==e&&(e in o||delete i[e]);if(s.$ref&&n.def)for(let e in i)"$ref"!==e&&"allOf"!==e&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==a){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)"$ref"!==e&&"allOf"!==e&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};
77if("draft-2020-12"===e.target?i.$schema="https://json-schema.org/draft/2020-12/schema":"draft-07"===e.target?i.$schema="http://json-schema.org/draft-07/schema#":"draft-04"===e.target?i.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let o=e.metadataRegistry.get(t)?.id;void 0!==o&&i.id===o&&delete i.id;let a=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,a[e.defId]=e.def)}e.external||Object.keys(a).length>0&&("draft-2020-12"===e.target?i.$defs=a:i.definitions=a);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t["~standard"],jsonSchema:{input:tp(t,"input",e.processors),output:tp(t,"output",e.processors)}},enumerable:!1,writable:!1}),n}catch(e){throw Error("Error converting schema to JSON.")}}let tp=(e,t,n={})=>r=>{let{libraryOptions:i,target:o}=r??{},a=tu({...i??{},target:o,io:t,processors:n});return th(e,a),td(a,e),tf(a,e)},tm={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},tg=(e,t,n,r)=>{let i=e._zod.def;th(i.innerType,t,r),t.seen.get(e).ref=i.innerType},tv=i.xI("ZodISODateTime",(e,t)=>{ed.init(e,t),tV.init(e,t)}),ty=i.xI("ZodISODate",(e,t)=>{ef.init(e,t),tV.init(e,t)}),tb=i.xI("ZodISOTime",(e,t)=>{ep.init(e,t),tV.init(e,t)}),tx=i.xI("ZodISODuration",(e,t)=>{em.init(e,t),tV.init(e,t)});var tw=n(46358);let tk=i.xI("ZodError",(e,t)=>{tw.a$.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>tw.Wk(e,t)},flatten:{value:t=>tw.JM(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,D.k8,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,D.k8,2)}},isEmpty:{get:()=>0===e.issues.length}})},{Parent:Error}),tS=Y.Tj(tk),tM=Y.Rb(tk),tA=Y.Od(tk),tE=Y.wG(tk),tC=Y.Mv(tk),tO=Y.e2(tk),tP=Y.GW(tk),tT=Y.or(tk),tD=Y.rh(tk),tR=Y.VS(tk),tj=Y.v_(tk),tI=Y.R3(tk),tz=new WeakMap;function t_(e,t,n){let r=Object.getPrototypeOf(e),i=tz.get(r);if(i||(i=new Set,tz.set(r,i)),!i.has(t))for(let e in i.add(t),n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}let tL=i.xI("ZodType",(e,t)=>(J.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:tp(e,"input"),output:tp(e,"output")}}),e.toJSONSchema=((e,t={})=>n=>{let r=tu({...n,processors:t});return th(e,r),td(r,e),tf(r,e)})(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>tS(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>tA(e,t,n),e.parseAsync=async(t,n)=>tM(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>
77tE(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>tC(e,t,n),e.decode=(t,n)=>tO(e,t,n),e.encodeAsync=async(t,n)=>tP(e,t,n),e.decodeAsync=async(t,n)=>tT(e,t,n),e.safeEncode=(t,n)=>tD(e,t,n),e.safeDecode=(t,n)=>tR(e,t,n),e.safeEncodeAsync=async(t,n)=>tj(e,t,n),e.safeDecodeAsync=async(t,n)=>tI(e,t,n),t_(e,"ZodType",{check(...e){let t=this.def;return this.clone(D.zM(t,{checks:[...t.checks??[],...e.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return D.o8(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(function(e,t={}){return new nI({type:"custom",check:"custom",fn:e,...D.A2(t)})}(e,t))},superRefine(e,t){return this.check(function(e,t){var n,r;let i,o;return n=t=>(t.addIssue=e=>{"string"==typeof e?t.issues.push(D.sn(e,t.value,i._zod.def)):(e.fatal&&(e.continue=!1),e.code??(e.code="custom"),e.input??(e.input=t.value),e.inst??(e.inst=i),e.continue??(e.continue=!i._zod.def.abort),t.issues.push(D.sn(e)))},e(t.value,t)),r=t,(o=new R({check:"custom",...D.A2(r)}))._zod.check=n,i=o}(e,t))},overwrite(e){return this.check(tc(e))},optional(){return nS(this)},exactOptional(){var e;return e=this,new nM({type:"optional",innerType:e})},nullable(){return nE(this)},nullish(){return nS(nE(this))},nonoptional(e){var t,n;return t=this,n=e,new nP({type:"nonoptional",innerType:t,...D.A2(n)})},array(){return np(this)},or(e){return new nv({type:"union",options:[this,e],...D.A2(void 0)})},and(e){var t;return t=this,new ny({type:"intersection",left:t,right:e})},transform(e){return nR(this,new nw({type:"transform",transform:e}))},default(e){var t,n;return t=this,n=e,new nC({type:"default",innerType:t,get defaultValue(){return"function"==typeof n?n():D.yG(n)}})},prefault(e){var t,n;return t=this,n=e,new nO({type:"prefault",innerType:t,get defaultValue(){return"function"==typeof n?n():D.yG(n)}})},catch(e){var t,n;return t=this,new nT({type:"catch",innerType:t,catchValue:"function"==typeof(n=e)?n:()=>n})},pipe(e){return nR(this,e)},readonly(){var e;return e=this,new nj({type:"readonly",innerType:e})},describe(e){let t=this.clone();return e9.add(t,{description:e}),t},meta(...e){if(0===e.length)return e9.get(this);let t=this.clone();return e9.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get:()=>e9.get(e)?.description,configurable:!0}),e)),tN=i.xI("_ZodString",(e,t)=>{Q.init(e,t),tL.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{n.type="string";let{minimum:i,maximum:o,format:a,patterns:s,contentEncoding:l}=e._zod.bag;if("number"==typeof i&&(n.minLength=i),"number"==typeof o&&(n.maxLength=o),a&&(n.format=tm[a]??a,""===n.format&&delete n.format,"time"===a&&delete n.format),l&&(n.contentEncoding=l),s&&s.size>0){let e=[...s];1===e.length?n.pattern=e[0].source:e.length>1&&(n.allOf=[...e.map(e=>({..."draft-07"===t.target||"draft-04"===t.target||"openapi-3.0"===t.target?{type:"string"}:{},pattern:e.source}))])}})(e,t,n,0);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,t_(e,"_ZodString",{regex(...e){return this.check(function(e,t){return new H({check:"string_format",format:"regex",...D.A2(t),pattern:e})}(...e))},includes(...e){return this.check(function(e,t){return new U({check:"string_format",format:"includes",...D.A2(t),includes:e})}(...e))},startsWith(...e){return this.check(function(e,t){return new K({check:"string_format",format:"starts_with",...D.A2(t),prefix:e})}(...e))},endsWith(...e){return this.check(function(e,t){return new q({check:"string_format",format:"ends_with",...D.A2(t),suffix:e})}(...e))},min(...e){return this.check(ts(...e))},max(...e){return this.check(ta(...e))},length(...e){return this.check(tl(...e))},nonempty(...e){return this.check(ts(1,...e))},lowercase(e){return this.check(new W({check:"string_format",format:"lowercase",...D.A2(e)}))},uppercase(e){return this.check(new $({check:"string_format",format:"up
77percase",...D.A2(e)}))},trim(){return this.check(tc(e=>e.trim()))},normalize(...e){return this.check(function(e){return tc(t=>t.normalize(e))}(...e))},toLowerCase(){return this.check(tc(e=>e.toLowerCase()))},toUpperCase(){return this.check(tc(e=>e.toUpperCase()))},slugify(){return this.check(tc(e=>D.Yv(e)))}})}),tB=i.xI("ZodString",(e,t)=>{Q.init(e,t),tN.init(e,t),e.email=t=>e.check(new tH({type:"string",format:"email",check:"string_format",abort:!1,...D.A2(t)})),e.url=t=>e.check(te(tU,t)),e.jwt=t=>e.check(new t8({type:"string",format:"jwt",check:"string_format",abort:!1,...D.A2(t)})),e.emoji=t=>e.check(new tq({type:"string",format:"emoji",check:"string_format",abort:!1,...D.A2(t)})),e.guid=t=>e.check(e7(tW,t)),e.uuid=t=>e.check(new t$({type:"string",format:"uuid",check:"string_format",abort:!1,...D.A2(t)})),e.uuidv4=t=>e.check(new t$({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...D.A2(t)})),e.uuidv6=t=>e.check(new t$({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...D.A2(t)})),e.uuidv7=t=>e.check(new t$({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...D.A2(t)})),e.nanoid=t=>e.check(new tG({type:"string",format:"nanoid",check:"string_format",abort:!1,...D.A2(t)})),e.guid=t=>e.check(e7(tW,t)),e.cuid=t=>e.check(new tZ({type:"string",format:"cuid",check:"string_format",abort:!1,...D.A2(t)})),e.cuid2=t=>e.check(new tY({type:"string",format:"cuid2",check:"string_format",abort:!1,...D.A2(t)})),e.ulid=t=>e.check(new tX({type:"string",format:"ulid",check:"string_format",abort:!1,...D.A2(t)})),e.base64=t=>e.check(new t5({type:"string",format:"base64",check:"string_format",abort:!1,...D.A2(t)})),e.base64url=t=>e.check(new t3({type:"string",format:"base64url",check:"string_format",abort:!1,...D.A2(t)})),e.xid=t=>e.check(new tJ({type:"string",format:"xid",check:"string_format",abort:!1,...D.A2(t)})),e.ksuid=t=>e.check(new tQ({type:"string",format:"ksuid",check:"string_format",abort:!1,...D.A2(t)})),e.ipv4=t=>e.check(new t0({type:"string",format:"ipv4",check:"string_format",abort:!1,...D.A2(t)})),e.ipv6=t=>e.check(new t1({type:"string",format:"ipv6",check:"string_format",abort:!1,...D.A2(t)})),e.cidrv4=t=>e.check(new t2({type:"string",format:"cidrv4",check:"string_format",abort:!1,...D.A2(t)})),e.cidrv6=t=>e.check(new t4({type:"string",format:"cidrv6",check:"string_format",abort:!1,...D.A2(t)})),e.e164=t=>e.check(new t6({type:"string",format:"e164",check:"string_format",abort:!1,...D.A2(t)})),e.datetime=t=>e.check(new tv({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...D.A2(t)})),e.date=t=>e.check(new ty({type:"string",format:"date",check:"string_format",...D.A2(t)})),e.time=t=>e.check(new tb({type:"string",format:"time",check:"string_format",precision:null,...D.A2(t)})),e.duration=t=>e.check(new tx({type:"string",format:"duration",check:"string_format",...D.A2(t)}))});function tF(e){return new tB({type:"string",...D.A2(e)})}let tV=i.xI("ZodStringFormat",(e,t)=>{ee.init(e,t),tN.init(e,t)}),tH=i.xI("ZodEmail",(e,t)=>{er.init(e,t),tV.init(e,t)}),tW=i.xI("ZodGUID",(e,t)=>{et.init(e,t),tV.init(e,t)}),t$=i.xI("ZodUUID",(e,t)=>{en.init(e,t),tV.init(e,t)}),tU=i.xI("ZodURL",(e,t)=>{ei.init(e,t),tV.init(e,t)});function tK(e){return te(tU,e)}let tq=i.xI("ZodEmoji",(e,t)=>{eo.init(e,t),tV.init(e,t)}),tG=i.xI("ZodNanoID",(e,t)=>{ea.init(e,t),tV.init(e,t)}),tZ=i.xI("ZodCUID",(e,t)=>{es.init(e,t),tV.init(e,t)}),tY=i.xI("ZodCUID2",(e,t)=>{el.init(e,t),tV.init(e,t)}),tX=i.xI("ZodULID",(e,t)=>{ec.init(e,t),tV.init(e,t)}),tJ=i.xI("ZodXID",(e,t)=>{eu.init(e,t),tV.init(e,t)}),tQ=i.xI("ZodKSUID",(e,t)=>{eh.init(e,t),tV.init(e,t)}),t0=i.xI("ZodIPv4",(e,t)=>{eg.init(e,t),tV.init(e,t)}),t1=i.xI("ZodIPv6",(e,t)=>{ev.init(e,t),tV.init(e,t)}),t2=i.xI("ZodCIDRv4",(e,t)=>{ey.init(e,t),tV.init(e,t)}),t4=i.xI("ZodCIDRv6",(e,t)=>{eb.init(e,t),tV.init(e,t)}),t5=i.xI("ZodBase64",(e,t)=>{ew.init(e,t),tV.init(e,t)}),t3=i.xI("ZodBase64URL",(e,t)=>{ek.init(e,t),tV.init(e,t)}),t6=i.xI("ZodE164",(e,t)=>{eS.init(e,t),tV.init(e,t)}),t8=i.xI("ZodJWT",(e,t)=>{eM.init(e,t),tV.init(e,t)}),t9=i.xI("ZodCustomStringFormat",(e,t)=>{eA.init(e,t),tV.init(e,t)});function t7(e,t,n={}){return function(e,t,n,r={}){let i=D.A2(r),o={...D.A2(r),check:"string_format",type:"string",format:t,fn:"function"==typeof n?n:e=>n.test(e),...i};return n instanceof RegExp&&(o.pattern=n),new e(o)}(t9,e,t,n)}let ne=i.xI("ZodNumber",(e,t)=>{eE.init(e,t),tL.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{let{minimum:i,maximum:o,format:a,multipleOf:s,exclusiveMaximum:l,exclusiveMinimum:c}=e._zod.bag;"string"==typeof a&&a.includes("int")?n.type="integer":n.type="number";let u="number"==typeof c&&c>=(i??-1/0),h="number"==typeof l&&l<=(o??1/0),d="draft-04"===t.target||"openapi-3.0"===t.target;u?d?(n.minimum=c,n.exclusiveMinimum=!0):n.exclusiveMinimum=c:"number"==typeof i&&(n.minimum=i),h?d?(n.maximum=l,n.exclusiveMaximum=!0):n.exclusiveMaximum=l:"number"==typeof o&&(n.maximum=o),"number"==typeof s&&(n.multipleOf=s)})(e,t,n,0),t_(e,"ZodNumber",{gt(e,t){return this.check(tr(e,t))},gte(e,t){return this.check(ti(e,t))},min(e,t){return this.check(ti(e,t))},lt(e,t){return this.check(tt(e,t))},lte(e,t){return this.check(tn(e,t))},max(e,t){return this.check(tn(e,t))},int(e){return this.check(nr(e))},safe(e){return this.check(nr(e))},positive(e){return this.check(tr(0,e))},nonnegative(e){return this.check(ti(0,e))},negative(e){return this.check(tt(0,e))},nonpositive(e){return this.check(tn(0,e))},multipleOf(e,t){return this.check(to(e,t))},step(e,t){return this.check(to(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function nt(e){return new ne({type:"number",checks:[],...D.A2(e)})}let nn=i.xI("ZodNumberFormat",(e,t)=>{eC.init(e,t),ne.init(e,t)});function nr(e){return new nn({type:"number",check:"number_format",abort:!1,format:"safeint",...D.A2(e)})}let ni=i.xI("ZodBoolean",(e,t)=>{eO.init(e,t),tL.init(e,t),e._zod.processJSONSchema=(e,t,n)=>{t.type="boolean"}});function no(e){return new ni({type:"boolean",...D.A2(e)})}let na=i.xI("ZodAny",(e,t)=>{eP.init(e,t),tL.init(e,t),e._zod.processJSONSchema=(e,t,n)=>{}});function ns(){return new na({type:"any"})}let nl=i.xI("ZodUnknown",(e,t)=>{eT.init(e,t),tL.init(e,t),e._zod.processJSONSchema=(e,t,n)=>{}});function nc(){return new nl({type:"unknown"})}let nu=i.xI("ZodNever",(e,t)=>{eD.init(e,t),tL.init(e,t),e._zod.processJSONSchema=(e,t,n)=>{t.not={}}}),nh=i.xI("ZodDate",(e,t)=>{eR.init(e,t),tL.init(e,t),e._zod.processJSONSchema=(e,t,n)=>((e,t,n,r)=>{if("throw"===t.unrepresentable)throw Error("Date cannot be represented in JSON Schema")})(0,e,0,0),e.min=(t,n)=>e.check(ti(t,n)),e.max=(t,n)=>e.check(tn(t,n));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});
77function nd(e){return new nh({type:"date",...D.A2(e)})}let nf=i.xI("ZodArray",(e,t)=>{eI.init(e,t),tL.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{let i=e._zod.def,{minimum:o,maximum:a}=e._zod.bag;"number"==typeof o&&(n.minItems=o),"number"==typeof a&&(n.maxItems=a),n.type="array",n.items=th(i.element,t,{...r,path:[...r.path,"items"]})})(e,t,n,r),e.element=t.element,t_(e,"ZodArray",{min(e,t){return this.check(ts(e,t))},nonempty(e){return this.check(ts(1,e))},max(e,t){return this.check(ta(e,t))},length(e,t){return this.check(tl(e,t))},unwrap(){return this.element}})});function np(e,t){return new nf({type:"array",element:e,...D.A2(t)})}let nm=i.xI("ZodObject",(e,t)=>{eB.init(e,t),tL.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{let i=e._zod.def;n.type="object",n.properties={};let o=i.shape;for(let e in o)n.properties[e]=th(o[e],t,{...r,path:[...r.path,"properties",e]});let a=new Set([...new Set(Object.keys(o))].filter(e=>{let n=i.shape[e]._zod;return"input"===t.io?void 0===n.optin:void 0===n.optout}));a.size>0&&(n.required=Array.from(a)),i.catchall?._zod.def.type==="never"?n.additionalProperties=!1:i.catchall?i.catchall&&(n.additionalProperties=th(i.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):"output"===t.io&&(n.additionalProperties=!1)})(e,t,n,r),D.gJ(e,"shape",()=>t.shape),t_(e,"ZodObject",{keyof(){return nx(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:nc()})},loose(){return this.clone({...this._zod.def,catchall:nc()})},strict(){var e;return this.clone({...this._zod.def,catchall:(e=void 0,new nu({type:"never",...D.A2(e)}))})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return D.X$(this,e)},safeExtend(e){return D.W0(this,e)},merge(e){return D.h1(this,e)},pick(e){return D.Up(this,e)},omit(e){return D.cJ(this,e)},partial(...e){return D.OH(nk,this,e[0])},required(...e){return D.mw(nP,this,e[0])}})});function ng(e,t){return new nm({type:"object",shape:e??{},...D.A2(t)})}let nv=i.xI("ZodUnion",(e,t)=>{eV.init(e,t),tL.init(e,t),e._zod.processJSONSchema=(t,n,r)=>{let i,o,a;return o=!1===(i=e._zod.def).inclusive,a=i.options.map((e,n)=>th(e,t,{...r,path:[...r.path,o?"oneOf":"anyOf",n]})),void(o?n.oneOf=a:n.anyOf=a)},e.options=t.options}),ny=i.xI("ZodIntersection",(e,t)=>{eH.init(e,t),tL.init(e,t),e._zod.processJSONSchema=(t,n,r)=>{let i,o,a,s;return o=th((i=e._zod.def).left,t,{...r,path:[...r.path,"allOf",0]}),a=th(i.right,t,{...r,path:[...r.path,"allOf",1]}),void(n.allOf=[...(s=e=>"allOf"in e&&1===Object.keys(e).length)(o)?o.allOf:[o],...s(a)?a.allOf:[a]])}}),nb=i.xI("ZodEnum",(e,t)=>{e$.init(e,t),tL.init(e,t),e._zod.processJSONSchema=(t,n,r)=>{let i,o;return i=e._zod.def,void((o=(0,D.w5)(i.entries)).every(e=>"number"==typeof e)&&(n.type="number"),o.every(e=>"string"==typeof e)&&(n.type="string"),n.enum=o)},e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new nb({...t,checks:[],...D.A2(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new nb({...t,checks:[],...D.A2(r),entries:i})}});function nx(e,t){return new nb({type:"enum",entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...D.A2(t)})}let nw=i.xI("ZodTransform",(e,t)=>{eU.init(e,t),tL.init(e,t),e._zod.processJSONSchema=(e,t,n)=>((e,t,n,r)=>{if("throw"===t.unrepresentable)throw Error("Transforms cannot be represented in JSON Schema")})(0,e,0,0),e._zod.parse=(n,r)=>{if("backward"===r.direction)throw new i.cV(e.constructor.name);n.addIssue=r=>{"string"==typeof r?n.issues.push(D.sn(r,n.value,t)):(r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=n.value),r.inst??(r.inst=e),n.issues.push(D.sn(r)))};let o=t.transform(n.value,n);return o instanceof Promise?o.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=o,n.fallback=!0,n)}}),nk=i.xI("ZodOptional",(e,t)=>{eq.init(e,t),tL.init(e,t),e._zod.processJSONSchema=(t,n,r)=>tg(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function nS(e){return new nk({type:"optional",innerType:e})}let nM=i.xI("ZodExactOptional",(e,t)=>{eG.init(e,t),tL.init(e,t),e._zod.processJSONSchema=(t,n,r)=>tg(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),nA=i.xI("ZodNullable",(e,t)=>{eZ.init(e,t),tL.init(e,t),e._zod.processJSONSchema=(t,n,r)=>{let i,o,a;return o=th((i=e._zod.def).innerType,t,r),a=t.seen.get(e),void("openapi-3.0"===t.target?(a.ref=i.innerType,n.nullable=!0):n.anyOf=[o,{type:"null"}])},e.unwrap=()=>e._zod.def.innerType});function nE(e){return new nA({type:"nullable",innerType:e})}let nC=i.xI("ZodDefault",(e,t)=>{eY.init(e,t),tL.init(e,t),e._zod.processJSONSchema=(t,n,r)=>{let i;th((i=e._zod.def).innerType,t,r),t.seen.get(e).ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),nO=i.xI("ZodPrefault",(e,t)=>{eJ.init(e,t),tL.init(e,t),e._zod.processJSONSchema=(t,n,r)=>{let i;th((i=e._zod.def).innerType,t,r),t.seen.get(e).ref=i.innerType,"input"
77===t.io&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},e.unwrap=()=>e._zod.def.innerType}),nP=i.xI("ZodNonOptional",(e,t)=>{eQ.init(e,t),tL.init(e,t),e._zod.processJSONSchema=(t,n,r)=>{let i;th((i=e._zod.def).innerType,t,r),t.seen.get(e).ref=i.innerType},e.unwrap=()=>e._zod.def.innerType}),nT=i.xI("ZodCatch",(e,t)=>{e1.init(e,t),tL.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{let i,o=e._zod.def;th(o.innerType,t,r),t.seen.get(e).ref=o.innerType;try{i=o.catchValue(void 0)}catch{throw Error("Dynamic catch values are not supported in JSON Schema")}n.default=i})(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),nD=i.xI("ZodPipe",(e,t)=>{e2.init(e,t),tL.init(e,t),e._zod.processJSONSchema=(t,n,r)=>{let i,o,a;return o=(i=e._zod.def).in._zod.traits.has("$ZodTransform"),void(th(a="input"===t.io?o?i.out:i.in:i.out,t,r),t.seen.get(e).ref=a)},e.in=t.in,e.out=t.out});function nR(e,t){return new nD({type:"pipe",in:e,out:t})}let nj=i.xI("ZodReadonly",(e,t)=>{e5.init(e,t),tL.init(e,t),e._zod.processJSONSchema=(t,n,r)=>{let i;th((i=e._zod.def).innerType,t,r),t.seen.get(e).ref=i.innerType,n.readOnly=!0},e.unwrap=()=>e._zod.def.innerType}),nI=i.xI("ZodCustom",(e,t)=>{e6.init(e,t),tL.init(e,t),e._zod.processJSONSchema=(e,t,n)=>((e,t,n,r)=>{if("throw"===t.unrepresentable)throw Error("Custom types cannot be represented in JSON Schema")})(0,e,0,0)});function nz(e,t){var n;let r;return n=e??(()=>!0),(r=D.A2(t)).abort??(r.abort=!0),new nI({type:"custom",check:"custom",fn:n,...r})}},78646(e,t,n){"use strict";var r;function i(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:r,constr:a,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=a.prototype,o=Object.keys(i);for(let e=0;e<o.length;e++){let t=o[e];t in n||(n[t]=i[t].bind(n))}}let i=n?.Parent??Object;class o extends i{}function a(e){var t;let i=n?.Parent?new o:this;for(let n of(r(i,e),(t=i._zod).deferred??(t.deferred=[]),i._zod.deferred))n();return i}return Object.defineProperty(o,"name",{value:e}),Object.defineProperty(a,"init",{value:r}),Object.defineProperty(a,Symbol.hasInstance,{value:t=>!!n?.Parent&&t instanceof n.Parent||t?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}n.d(t,{$W:()=>l,GT:()=>o,cV:()=>a,cr:()=>s,xI:()=>i}),Symbol("zod_brand");class o extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class a extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}(r=globalThis).__zod_globalConfig??(r.__zod_globalConfig={});let s=globalThis.__zod_globalConfig;function l(e){return e&&Object.assign(s,e),s}},46358(e,t,n){"use strict";n.d(t,{JM:()=>l,Kd:()=>s,S1:()=>u,Wk:()=>c,a$:()=>a});var r=n(78646),i=n(94537);let o=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,i.k8,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},a=(0,r.xI)("$ZodError",o),s=(0,r.xI)("$ZodError",o,{Parent:Error});function l(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function c(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let o of e.issues)if("invalid_union"===o.code&&o.errors.length)o.errors.map(e=>r({issues:e},[...i,...o.path]));else if("invalid_key"===o.code)r({issues:o.issues},[...i,...o.path]);else if("invalid_element"===o.code)r({issues:o.issues},[...i,...o.path]);else{let e=[...i,...o.path];if(0===e.length)n._errors.push(t(o));else{let r=n,i=0;for(;i<e.length;){let n=e[i];i===e.length-1?(r[n]=r[n]||{_errors:[]},r[n]._errors.push(t(o))):r[n]=r[n]||{_errors:[]},r=r[n],i++}}}};return r(e),n}function u(e){let t=[];for(let n of[...e.issues].sort((e,t)=>(e.path??[]).length-(t.path??[]).length))t.push(`✖ ${n.message}`),n.path?.length&&t.push(`  → at ${function(e){let t=[];for(let n of e.map(e=>"object"==typeof e?e.key:e))"number"==typeof n?t.push(`[${n}]`):"symbol"==typeof n?t.push(`[${JSON.stringify(String(n))}]`):/[^\w$]/.test(n)?t.push(`[${JSON.stringify(n)}]`):(t.length&&t.push("."),t.push(n));return t.join("")}(n.path)}`);return t.join("\n")}},46614(e,t,n){"use strict";n.d(t,{EJ:()=>c,GW:()=>g,Mv:()=>p,Od:()=>u,R3:()=>w,Rb:()=>l,Tj:()=>a,VS:()=>b,bp:()=>f,e2:()=>m,or:()=>v,qg:()=>s,rh:()=>y,v_:()=>x,wG:()=>d,xL:()=>h});var r=n(78646),i=n(46358),o=n(94537);let a=e=>(t,n,i,a)=>{let s=i?{...i,async:!1}:{async:!1},l=t._zod.run({value:n,issues:[]},s);if(l instanceof Promise)throw new r.GT;if(l.issues.length){let t=new(a?.Err??e)(l.issues.map(e=>o.iR(e,s,r.$W())));throw o.gx(t,a?.callee),t}return l.value},s=a(i.Kd),l=e=>async(t,n,i,a)=>{let s=i?{...i,async:!0}:{async:!0},l=t._zod.run({value:n,issues:[]},s);if(l instanceof Promise&&(l=await l),l.issues.length){let t=new(a?.Err??e)(l.issues.map(e=>o.iR(e,s,r.$W())));throw o.gx(t,a?.callee),t}return l.value},c=l(i.Kd),u=e=>(t,n,a)=>{let s=a?{...a,async:!1}:{async:!1},l=t._zod.run({value:n,issues:[]},s);if(l instanceof Promise)throw new r.GT;return l.issues.length?{success:!1,error:new(e??i.a$)(l.issues.map(e=>o.iR(e,s,r.$W())))}:{success:!0,data:l.value}},h=u(i.Kd),d=e=>async(t,n,i)=>{let a=i?{...i,async:!0}:{async:!0},s=t._zod.run({value:n,issues:[]},a);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map(e=>o.iR(e,a,r.$W())))}:{success:!0,data:s.value}},f=d(i.Kd),p=e=>(t,n,r)=>{let i=r?{...r,direction:"backward"}:{direction:"backward"};return a(e)(t,n,i)};i.Kd;let m=e=>(t,n,r)=>a(e)(t,n,r);i.Kd;let g=e=>async(t,n,r)=>{let i=r?{...r,direction:"backward"}:{direction:"backward"};return l(e)(t,n,i)};i.Kd;let v=e=>async(t,n,r)=>l(e)(t,n,r);i.Kd;let y=e=>(t,n,r)=>{let i=r?{...r,direction:"backward"}:{direction:"backward"};return u(e)(t,n,i)};i.Kd;let b=e=>(t,n,r)=>u(e)(t,n,r);i.Kd;let x=e=>async(t,n,r)=>{let i=r?{...r,direction:"backward"}:{direction:"backward"};return d(e)(t,n,i)};i.Kd;let w=e=>async(t,n,r)=>d(e)(t,n,r);i.Kd},94537(e,t,n){"use strict";n.d(t,{$f:()=>k,A2:()=>M,Gv:()=>v,LG:()=>c,NM:()=>A,OH:()=>R,PO:()=>a,QH:()=>I,Qd:()=>b,Rc:()=>B,UQ:()=>p,Up:()=>C,W0:()=>T,X$:()=>P,Yv:()=>m,cJ:()=>O,cl:()=>s,gJ:()=>h,gx:()=>g,h1:()=>D,hI:()=>y,iR:()=>N,k8:()=>o,lQ:()=>_,mw:()=>j,o8:()=>S,p6:()=>l,qQ:()=>w,rL:()=>z,sn:()=>F,w5:()=>i,yG:()=>x,zH:()=>E,zM:()=>f});var r=n(78646);function i(e){let t=Object.values(e).filter(e=>"number"==typeof e);return Object.entries(e).filter(([e,n])=>-1===t.indexOf(+e)).map(([e,t])=>t)}
77function o(e,t){return"bigint"==typeof t?t.toString():t}function a(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function s(e){return null==e}function l(e){let t=+!!e.startsWith("^"),n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function c(e,t){let n=e/t,r=Math.round(n),i=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}let u=Symbol("evaluating");function h(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==u)return void 0===r&&(r=u,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function d(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function f(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}function p(e){return JSON.stringify(e)}function m(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}let g="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function v(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}let y=a(()=>{if(r.cr.jitless||"u">typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return Function(""),!0}catch(e){return!1}});function b(e){if(!1===v(e))return!1;let t=e.constructor;if(void 0===t||"function"!=typeof t)return!0;let n=t.prototype;return!1!==v(n)&&!1!==Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")}function x(e){return b(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}let w=new Set(["string","number","symbol"]);function k(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function S(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function M(e){if(!e)return{};if("string"==typeof e)return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");e.error=e.message}return(delete e.message,"string"==typeof e.error)?{...e,error:()=>e.error}:e}function A(e){return Object.keys(e).filter(t=>"optional"===e[t]._zod.optin&&"optional"===e[t]._zod.optout)}let E={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-0x80000000,0x7fffffff],uint32:[0,0xffffffff],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function C(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let i=f(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return d(this,"shape",e),e},checks:[]});return S(e,i)}function O(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let i=f(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return d(this,"shape",r),r},checks:[]});return S(e,i)}function P(e,t){if(!b(t))throw Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(void 0!==Object.getOwnPropertyDescriptor(n,e))throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let r=f(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return d(this,"shape",n),n}});return S(e,r)}function T(e,t){if(!b(t))throw Error("Invalid input to safeExtend: expected a plain object");let n=f(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return d(this,"shape",n),n}});return S(e,n)}function D(e,t){if(e._zod.def.checks?.length)throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let n=f(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return d(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return S(e,n)}function R(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(".partial() cannot be used on object schemas containing refinements");let i=f(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:"optional",innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:"optional",innerType:r[t]}):r[t];return d(this,"shape",i),i},checks:[]});return S(t,i)}function j(e,t,n){let r=f(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:"nonoptional",innerType:r[t]}))}else for(let t in r)i[t]=new e({type:"nonoptional",innerType:r[t]});return d(this,"shape",i),i}});return S(t,r)}function I(e,t=0){if(!0===e.aborted)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function z(e,t=0){if(!0===e.aborted)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function _(e,t){return t.map(t=>(t.path??(t.path=[]),t.path.unshift(e),t))}function L(e){return"string"==typeof e?e:e?.message}function N(e,t,n){let r=e.message?e.message:L(e.inst?._zod.def?.error?.(e))??L(t?.error?.(e))??L(n.customError?.(e))??L(n.localeError?.(e))??"Invalid input",{inst:i,continue:o,input
77:a,...s}=e;return s.path??(s.path=[]),s.message=r,t?.reportInput&&(s.input=a),s}function B(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function F(...e){let[t,n,r]=e;return"string"==typeof t?{message:t,code:"custom",input:n,inst:r}:{...t}}}}]);

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.