Files
docker-invoiceninja/docker/app/public/bundle.765bd839.js
2024-10-19 18:17:42 +00:00

14 lines
46 KiB
JavaScript

import{fm as Ve,p as Et,o as St}from"./bundle.31c6ea9c.js";const{createElement:xe,createContext:_t,createRef:nn,forwardRef:Ze,useCallback:re,useContext:qe,useEffect:ve,useImperativeHandle:et,useLayoutEffect:Pt,useMemo:wt,useRef:ne,useState:Pe}=Ve,Ue=Ve["useId".toString()],zt=Pt,Oe=_t(null);Oe.displayName="PanelGroupContext";const ye=zt,Ct=typeof Ue=="function"?Ue:()=>null;let Rt=0;function He(e=null){const t=Ct(),n=ne(e||t||null);return n.current===null&&(n.current=""+Rt++),e??n.current}function tt({children:e,className:t="",collapsedSize:n,collapsible:o,defaultSize:d,forwardedRef:i,id:h,maxSize:a,minSize:r,onCollapse:s,onExpand:E,onResize:p,order:c,style:u,tagName:l="div",...v}){const b=qe(Oe);if(b===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:f,expandPanel:m,getPanelSize:w,getPanelStyle:g,groupId:_,isPanelCollapsed:P,reevaluatePanelConstraints:O,registerPanel:U,resizePanel:S,unregisterPanel:D}=b,k=He(h),R=ne({callbacks:{onCollapse:s,onExpand:E,onResize:p},constraints:{collapsedSize:n,collapsible:o,defaultSize:d,maxSize:a,minSize:r},id:k,idIsFromProps:h!==void 0,order:c});ne({didLogMissingDefaultSizeWarning:!1}),ye(()=>{const{callbacks:J,constraints:B}=R.current,q={...B};R.current.id=k,R.current.idIsFromProps=h!==void 0,R.current.order=c,J.onCollapse=s,J.onExpand=E,J.onResize=p,B.collapsedSize=n,B.collapsible=o,B.defaultSize=d,B.maxSize=a,B.minSize=r,(q.collapsedSize!==B.collapsedSize||q.collapsible!==B.collapsible||q.maxSize!==B.maxSize||q.minSize!==B.minSize)&&O(R.current,q)}),ye(()=>{const J=R.current;return U(J),()=>{D(J)}},[c,k,U,D]),et(i,()=>({collapse:()=>{f(R.current)},expand:()=>{m(R.current)},getId(){return k},getSize(){return w(R.current)},isCollapsed(){return P(R.current)},isExpanded(){return!P(R.current)},resize:J=>{S(R.current,J)}}),[f,m,w,P,k,S]);const T=g(R.current,d);return xe(l,{...v,children:e,className:t,id:h,style:{...T,...u},"data-panel":"","data-panel-collapsible":o||void 0,"data-panel-group-id":_,"data-panel-id":k,"data-panel-size":parseFloat(""+T.flexGrow).toFixed(1)})}const Mt=Ze((e,t)=>xe(tt,{...e,forwardedRef:t}));tt.displayName="Panel";Mt.displayName="forwardRef(Panel)";let ke=null,pe=null;function Tt(e,t){if(t){const n=(t&it)!==0,o=(t&st)!==0,d=(t&ut)!==0,i=(t&lt)!==0;if(n)return d?"se-resize":i?"ne-resize":"e-resize";if(o)return d?"sw-resize":i?"nw-resize":"w-resize";if(d)return"s-resize";if(i)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function Ot(){pe!==null&&(document.head.removeChild(pe),ke=null,pe=null)}function De(e,t){const n=Tt(e,t);ke!==n&&(ke=n,pe===null&&(pe=document.createElement("style"),document.head.appendChild(pe)),pe.innerHTML=`*{cursor: ${n}!important;}`)}function nt(e){return e.type==="keydown"}function rt(e){return e.type.startsWith("mouse")}function ot(e){return e.type.startsWith("touch")}function Ie(e){if(rt(e))return{x:e.clientX,y:e.clientY};if(ot(e)){const t=e.touches[0];if(t&&t.clientX&&t.clientY)return{x:t.clientX,y:t.clientY}}return{x:1/0,y:1/0}}function It(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function Lt(e,t,n){return n?e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y:e.x<=t.x+t.width&&e.x+e.width>=t.x&&e.y<=t.y+t.height&&e.y+e.height>=t.y}function At(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:Fe(e),b:Fe(t)};let o;for(;n.a.at(-1)===n.b.at(-1);)e=n.a.pop(),t=n.b.pop(),o=e;F(o,"Stacking order can only be calculated for elements with a common ancestor");const d={a:Ge(Qe(n.a)),b:Ge(Qe(n.b))};if(d.a===d.b){const i=o.childNodes,h={a:n.a.at(-1),b:n.b.at(-1)};let a=i.length;for(;a--;){const r=i[a];if(r===h.a)return 1;if(r===h.b)return-1}}return Math.sign(d.a-d.b)}const jt=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Dt(e){const t=getComputedStyle(at(e)).display;return t==="flex"||t==="inline-flex"}function $t(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||Dt(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||jt.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function Qe(e){let t=e.length;for(;t--;){const n=e[t];if(F(n,"Missing node"),$t(n))return n}return null}function Ge(e){return e&&Number(getComputedStyle(e).zIndex)||0}function Fe(e){const t=[];for(;e;)t.push(e),e=at(e);return t}function at(e){var t;return((t=e.parentNode)===null||t===void 0?void 0:t.host)||e.parentNode}const it=1,st=2,ut=4,lt=8,kt=It()==="coarse";let fe=[],Le=!1,ce=new Map,Ae=new Map;const we=new Set;function Ht(e,t,n,o,d){var i;const{ownerDocument:h}=t,a={direction:n,element:t,hitAreaMargins:o,setResizeHandlerState:d},r=(i=ce.get(h))!==null&&i!==void 0?i:0;return ce.set(h,r+1),we.add(a),Te(),function(){var E;Ae.delete(e),we.delete(a);const p=(E=ce.get(h))!==null&&E!==void 0?E:1;ce.set(h,p-1),Te(),p===1&&ce.delete(h)}}function Re(e){const{target:t}=e,{x:n,y:o}=Ie(e);Le=!0,Ne({target:t,x:n,y:o}),Te(),fe.length>0&&(Ye("down",e),e.preventDefault())}function ue(e){const{x:t,y:n}=Ie(e);if(!Le){const{target:o}=e;Ne({target:o,x:t,y:n})}Ye("move",e),ct(),fe.length>0&&e.preventDefault()}function le(e){const{target:t}=e,{x:n,y:o}=Ie(e);Ae.clear(),Le=!1,fe.length>0&&e.preventDefault(),Ye("up",e),Ne({target:t,x:n,y:o}),ct(),Te()}function Ne({target:e,x:t,y:n}){fe.splice(0);let o=null;e instanceof HTMLElement&&(o=e),we.forEach(d=>{const{element:i,hitAreaMargins:h}=d,a=i.getBoundingClientRect(),{bottom:r,left:s,right:E,top:p}=a,c=kt?h.coarse:h.fine;if(t>=s-c&&t<=E+c&&n>=p-c&&n<=r+c){if(o!==null&&i!==o&&!i.contains(o)&&!o.contains(i)&&At(o,i)>0){let l=o,v=!1;for(;l&&!l.contains(i);){if(Lt(l.getBoundingClientRect(),a,!0)){v=!0;break}l=l.parentElement}if(v)return}fe.push(d)}})}function $e(e,t){Ae.set(e,t)}function ct(){let e=!1,t=!1;fe.forEach(o=>{const{direction:d}=o;d==="horizontal"?e=!0:t=!0});let n=0;Ae.forEach(o=>{n|=o}),e&&t?De("intersection",n):e?De("horizontal",n):t?De("vertical",n):Ot()}function Te(){ce.forEach((e,t)=>{const{body:n}=t;n.removeEventListener("contextmenu",le),n.removeEventListener("mousedown",Re),n.removeEventListener("mouseleave",ue),n.removeEventListener("mousemove",ue),n.removeEventListener("touchmove",ue),n.removeEventListener("touchstart",Re)}),window.removeEventListener("mouseup",le),window.removeEventListener("touchcancel",le),window.removeEventListener("touchend",le),we.size>0&&(Le?(fe.length>0&&ce.forEach((e,t)=>{const{body:n}=t;e>0&&(n.addEventListener("contextmenu",le),n.addEventListener("mouseleave",ue),n.addEventListener("mousemove",ue),n.addEventListener("touchmove",ue,{passive:!1}))}),window.addEventListener("mouseup",le),window.addEventListener("touchcancel",le),window.addEventListener("touchend",le)):ce.forEach((e,t)=>{const{body:n}=t;e>0&&(n.addEventListener("mousedown",Re),n.addEventListener("mousemove",ue),n.addEventListener("touchmove",ue,{passive:!1}),n.addEventListener("touchstart",Re))}))}function Ye(e,t){we.forEach(n=>{const{setResizeHandlerState:o}=n,d=fe.includes(n);o(e,d,t)})}function F(e,t){if(!e)throw console.error(t),Error(t)}const ft=10;function ze(e,t,n=ft){e=parseFloat(e.toFixed(n)),t=parseFloat(t.toFixed(n));const o=e-t;return o===0?0:o>0?1:-1}function oe(e,t,n){return ze(e,t,n)===0}function Nt(e,t,n){if(e.length!==t.length)return!1;for(let o=0;o<e.length;o++){const d=e[o],i=t[o];if(!oe(d,i,n))return!1}return!0}function be({panelConstraints:e,panelIndex:t,size:n}){const o=e[t];F(o!=null,`Panel constraints not found for index ${t}`);let{collapsedSize:d=0,collapsible:i,maxSize:h=100,minSize:a=0}=o;if(ze(n,a)<0)if(i){const r=(d+a)/2;ze(n,r)<0?n=d:n=a}else n=a;return n=Math.min(h,n),n=parseFloat(n.toFixed(ft)),n}function Se({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:o,prevLayout:d,trigger:i}){if(oe(e,0))return t;const h=[...t],[a,r]=o;F(a!=null,"Invalid first pivot index"),F(r!=null,"Invalid second pivot index");let s=0;if(i==="keyboard"){{const p=e<0?r:a,c=n[p];F(c,`Panel constraints not found for index ${p}`);const{collapsedSize:u=0,collapsible:l,minSize:v=0}=c;if(l){const b=t[p];if(F(b!=null,`Previous layout not found for panel index ${p}`),oe(b,u)){const f=v-b;ze(f,Math.abs(e))>0&&(e=e<0?0-f:f)}}}{const p=e<0?a:r,c=n[p];F(c,`No panel constraints found for index ${p}`);const{collapsedSize:u=0,collapsible:l,minSize:v=0}=c;if(l){const b=t[p];if(F(b!=null,`Previous layout not found for panel index ${p}`),oe(b,v)){const f=b-u;ze(f,Math.abs(e))>0&&(e=e<0?0-f:f)}}}}{const p=e<0?1:-1;let c=e<0?r:a,u=0;for(;;){const v=t[c];F(v!=null,`Previous layout not found for panel index ${c}`);const f=be({panelConstraints:n,panelIndex:c,size:100})-v;if(u+=f,c+=p,c<0||c>=n.length)break}const l=Math.min(Math.abs(e),Math.abs(u));e=e<0?0-l:l}{let c=e<0?a:r;for(;c>=0&&c<n.length;){const u=Math.abs(e)-Math.abs(s),l=t[c];F(l!=null,`Previous layout not found for panel index ${c}`);const v=l-u,b=be({panelConstraints:n,panelIndex:c,size:v});if(!oe(l,b)&&(s+=l-b,h[c]=b,s.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?c--:c++}}if(Nt(d,h))return d;{const p=e<0?r:a,c=t[p];F(c!=null,`Previous layout not found for panel index ${p}`);const u=c+s,l=be({panelConstraints:n,panelIndex:p,size:u});if(h[p]=l,!oe(l,u)){let v=u-l,f=e<0?r:a;for(;f>=0&&f<n.length;){const m=h[f];F(m!=null,`Previous layout not found for panel index ${f}`);const w=m+v,g=be({panelConstraints:n,panelIndex:f,size:w});if(oe(m,g)||(v-=g-m,h[f]=g),oe(v,0))break;e>0?f--:f++}}}const E=h.reduce((p,c)=>c+p,0);return oe(E,100)?h:d}function Yt({layout:e,panelsArray:t,pivotIndices:n}){let o=0,d=100,i=0,h=0;const a=n[0];F(a!=null,"No pivot index found"),t.forEach((p,c)=>{const{constraints:u}=p,{maxSize:l=100,minSize:v=0}=u;c===a?(o=v,d=l):(i+=v,h+=l)});const r=Math.min(d,100-i),s=Math.max(o,100-h),E=e[a];return{valueMax:r,valueMin:s,valueNow:E}}function Ce(e,t=document){return Array.from(t.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${e}"]`))}function dt(e,t,n=document){const d=Ce(e,n).findIndex(i=>i.getAttribute("data-panel-resize-handle-id")===t);return d??null}function pt(e,t,n){const o=dt(e,t,n);return o!=null?[o,o+1]:[-1,-1]}function vt(e,t=document){var n;if(t instanceof HTMLElement&&(t==null||(n=t.dataset)===null||n===void 0?void 0:n.panelGroupId)==e)return t;const o=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return o||null}function je(e,t=document){const n=t.querySelector(`[data-panel-resize-handle-id="${e}"]`);return n||null}function Wt(e,t,n,o=document){var d,i,h,a;const r=je(t,o),s=Ce(e,o),E=r?s.indexOf(r):-1,p=(d=(i=n[E])===null||i===void 0?void 0:i.id)!==null&&d!==void 0?d:null,c=(h=(a=n[E+1])===null||a===void 0?void 0:a.id)!==null&&h!==void 0?h:null;return[p,c]}function Ut({committedValuesRef:e,eagerValuesRef:t,groupId:n,layout:o,panelDataArray:d,panelGroupElement:i,setLayout:h}){ne({didWarnAboutMissingResizeHandle:!1}),ye(()=>{if(!i)return;const a=Ce(n,i);for(let r=0;r<d.length-1;r++){const{valueMax:s,valueMin:E,valueNow:p}=Yt({layout:o,panelsArray:d,pivotIndices:[r,r+1]}),c=a[r];if(c!=null){const u=d[r];F(u,`No panel data found for index "${r}"`),c.setAttribute("aria-controls",u.id),c.setAttribute("aria-valuemax",""+Math.round(s)),c.setAttribute("aria-valuemin",""+Math.round(E)),c.setAttribute("aria-valuenow",p!=null?""+Math.round(p):"")}}return()=>{a.forEach((r,s)=>{r.removeAttribute("aria-controls"),r.removeAttribute("aria-valuemax"),r.removeAttribute("aria-valuemin"),r.removeAttribute("aria-valuenow")})}},[n,o,d,i]),ve(()=>{if(!i)return;const a=t.current;F(a,"Eager values not found");const{panelDataArray:r}=a,s=vt(n,i);F(s!=null,`No group found for id "${n}"`);const E=Ce(n,i);F(E,`No resize handles found for group id "${n}"`);const p=E.map(c=>{const u=c.getAttribute("data-panel-resize-handle-id");F(u,"Resize handle element has no handle id attribute");const[l,v]=Wt(n,u,r,i);if(l==null||v==null)return()=>{};const b=f=>{if(!f.defaultPrevented)switch(f.key){case"Enter":{f.preventDefault();const m=r.findIndex(w=>w.id===l);if(m>=0){const w=r[m];F(w,`No panel data found for index ${m}`);const g=o[m],{collapsedSize:_=0,collapsible:P,minSize:O=0}=w.constraints;if(g!=null&&P){const U=Se({delta:oe(g,_)?O-_:_-g,initialLayout:o,panelConstraints:r.map(S=>S.constraints),pivotIndices:pt(n,u,i),prevLayout:o,trigger:"keyboard"});o!==U&&h(U)}}break}}};return c.addEventListener("keydown",b),()=>{c.removeEventListener("keydown",b)}});return()=>{p.forEach(c=>c())}},[i,e,t,n,o,d,h])}function Ke(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function yt(e,t){const n=e==="horizontal",{x:o,y:d}=Ie(t);return n?o:d}function Qt(e,t,n,o,d){const i=n==="horizontal",h=je(t,d);F(h,`No resize handle element found for id "${t}"`);const a=h.getAttribute("data-panel-group-id");F(a,"Resize handle element has no group id attribute");let{initialCursorPosition:r}=o;const s=yt(n,e),E=vt(a,d);F(E,`No group element found for id "${a}"`);const p=E.getBoundingClientRect(),c=i?p.width:p.height;return(s-r)/c*100}function Gt(e,t,n,o,d,i){if(nt(e)){const h=n==="horizontal";let a=0;e.shiftKey?a=100:d!=null?a=d:a=10;let r=0;switch(e.key){case"ArrowDown":r=h?0:a;break;case"ArrowLeft":r=h?-a:0;break;case"ArrowRight":r=h?a:0;break;case"ArrowUp":r=h?0:-a;break;case"End":r=100;break;case"Home":r=-100;break}return r}else return o==null?0:Qt(e,t,n,o,i)}function Ft({panelDataArray:e}){const t=Array(e.length),n=e.map(i=>i.constraints);let o=0,d=100;for(let i=0;i<e.length;i++){const h=n[i];F(h,`Panel constraints not found for index ${i}`);const{defaultSize:a}=h;a!=null&&(o++,t[i]=a,d-=a)}for(let i=0;i<e.length;i++){const h=n[i];F(h,`Panel constraints not found for index ${i}`);const{defaultSize:a}=h;if(a!=null)continue;const r=e.length-o,s=d/r;o++,t[i]=s,d-=s}return t}function me(e,t,n){t.forEach((o,d)=>{const i=e[d];F(i,`Panel data not found for index ${d}`);const{callbacks:h,constraints:a,id:r}=i,{collapsedSize:s=0,collapsible:E}=a,p=n[r];if(p==null||o!==p){n[r]=o;const{onCollapse:c,onExpand:u,onResize:l}=h;l&&l(o,p),E&&(c||u)&&(u&&(p==null||p===s)&&o!==s&&u(),c&&(p==null||p!==s)&&o===s&&c())}})}function Me(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function Kt({defaultSize:e,dragState:t,layout:n,panelData:o,panelIndex:d,precision:i=3}){const h=n[d];let a;return h==null?a=e!=null?e.toPrecision(i):"1":o.length===1?a="1":a=h.toPrecision(i),{flexBasis:0,flexGrow:a,flexShrink:1,overflow:"hidden",pointerEvents:t!==null?"none":void 0}}function Bt(e,t=10){let n=null;return(...d)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...d)},t)}}function Be(e){try{if(typeof localStorage<"u")e.getItem=t=>localStorage.getItem(t),e.setItem=(t,n)=>{localStorage.setItem(t,n)};else throw new Error("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function ht(e){return`react-resizable-panels:${e}`}function mt(e){return e.map(t=>{const{constraints:n,id:o,idIsFromProps:d,order:i}=t;return d?o:i?`${i}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((t,n)=>t.localeCompare(n)).join(",")}function gt(e,t){try{const n=ht(e),o=t.getItem(n);if(o){const d=JSON.parse(o);if(typeof d=="object"&&d!=null)return d}}catch{}return null}function Xt(e,t,n){var o,d;const i=(o=gt(e,n))!==null&&o!==void 0?o:{},h=mt(t);return(d=i[h])!==null&&d!==void 0?d:null}function Jt(e,t,n,o,d){var i;const h=ht(e),a=mt(t),r=(i=gt(e,d))!==null&&i!==void 0?i:{};r[a]={expandToSizes:Object.fromEntries(n.entries()),layout:o};try{d.setItem(h,JSON.stringify(r))}catch(s){console.error(s)}}function Xe({layout:e,panelConstraints:t}){const n=[...e],o=n.reduce((i,h)=>i+h,0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map(i=>`${i}%`).join(", ")}`);if(!oe(o,100))for(let i=0;i<t.length;i++){const h=n[i];F(h!=null,`No layout data found for index ${i}`);const a=100/o*h;n[i]=a}let d=0;for(let i=0;i<t.length;i++){const h=n[i];F(h!=null,`No layout data found for index ${i}`);const a=be({panelConstraints:t,panelIndex:i,size:h});h!=a&&(d+=h-a,n[i]=a)}if(!oe(d,0))for(let i=0;i<t.length;i++){const h=n[i];F(h!=null,`No layout data found for index ${i}`);const a=h+d,r=be({panelConstraints:t,panelIndex:i,size:a});if(h!==r&&(d-=r-h,n[i]=r,oe(d,0)))break}return n}const Vt=100,_e={getItem:e=>(Be(_e),_e.getItem(e)),setItem:(e,t)=>{Be(_e),_e.setItem(e,t)}},Je={};function bt({autoSaveId:e=null,children:t,className:n="",direction:o,forwardedRef:d,id:i=null,onLayout:h=null,keyboardResizeBy:a=null,storage:r=_e,style:s,tagName:E="div",...p}){const c=He(i),u=ne(null),[l,v]=Pe(null),[b,f]=Pe([]),m=ne({}),w=ne(new Map),g=ne(0),_=ne({autoSaveId:e,direction:o,dragState:l,id:c,keyboardResizeBy:a,onLayout:h,storage:r}),P=ne({layout:b,panelDataArray:[],panelDataArrayChanged:!1});ne({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),et(d,()=>({getId:()=>_.current.id,getLayout:()=>{const{layout:C}=P.current;return C},setLayout:C=>{const{onLayout:N}=_.current,{layout:I,panelDataArray:j}=P.current,L=Xe({layout:C,panelConstraints:j.map(Y=>Y.constraints)});Ke(I,L)||(f(L),P.current.layout=L,N&&N(L),me(j,L,m.current))}}),[]),ye(()=>{_.current.autoSaveId=e,_.current.direction=o,_.current.dragState=l,_.current.id=c,_.current.onLayout=h,_.current.storage=r}),Ut({committedValuesRef:_,eagerValuesRef:P,groupId:c,layout:b,panelDataArray:P.current.panelDataArray,setLayout:f,panelGroupElement:u.current}),ve(()=>{const{panelDataArray:C}=P.current;if(e){if(b.length===0||b.length!==C.length)return;let N=Je[e];N==null&&(N=Bt(Jt,Vt),Je[e]=N);const I=[...C],j=new Map(w.current);N(e,I,j,b,r)}},[e,b,r]),ve(()=>{});const O=re(C=>{const{onLayout:N}=_.current,{layout:I,panelDataArray:j}=P.current;if(C.constraints.collapsible){const L=j.map(y=>y.constraints),{collapsedSize:Y=0,panelSize:V,pivotIndices:Z}=de(j,C,I);if(F(V!=null,`Panel size not found for panel "${C.id}"`),V!==Y){w.current.set(C.id,V);const x=ge(j,C)===j.length-1?V-Y:Y-V,M=Se({delta:x,initialLayout:I,panelConstraints:L,pivotIndices:Z,prevLayout:I,trigger:"imperative-api"});Me(I,M)||(f(M),P.current.layout=M,N&&N(M),me(j,M,m.current))}}},[]),U=re(C=>{const{onLayout:N}=_.current,{layout:I,panelDataArray:j}=P.current;if(C.constraints.collapsible){const L=j.map(x=>x.constraints),{collapsedSize:Y=0,panelSize:V,minSize:Z=0,pivotIndices:y}=de(j,C,I);if(V===Y){const x=w.current.get(C.id),M=x!=null&&x>=Z?x:Z,$=ge(j,C)===j.length-1?V-M:M-V,A=Se({delta:$,initialLayout:I,panelConstraints:L,pivotIndices:y,prevLayout:I,trigger:"imperative-api"});Me(I,A)||(f(A),P.current.layout=A,N&&N(A),me(j,A,m.current))}}},[]),S=re(C=>{const{layout:N,panelDataArray:I}=P.current,{panelSize:j}=de(I,C,N);return F(j!=null,`Panel size not found for panel "${C.id}"`),j},[]),D=re((C,N)=>{const{panelDataArray:I}=P.current,j=ge(I,C);return Kt({defaultSize:N,dragState:l,layout:b,panelData:I,panelIndex:j})},[l,b]),k=re(C=>{const{layout:N,panelDataArray:I}=P.current,{collapsedSize:j=0,collapsible:L,panelSize:Y}=de(I,C,N);return L===!0&&Y===j},[]),R=re(C=>{const{layout:N,panelDataArray:I}=P.current,{collapsedSize:j=0,collapsible:L,panelSize:Y}=de(I,C,N);return F(Y!=null,`Panel size not found for panel "${C.id}"`),!L||Y>j},[]),T=re(C=>{const{panelDataArray:N}=P.current;N.push(C),N.sort((I,j)=>{const L=I.order,Y=j.order;return L==null&&Y==null?0:L==null?-1:Y==null?1:L-Y}),P.current.panelDataArrayChanged=!0},[]);ye(()=>{if(P.current.panelDataArrayChanged){P.current.panelDataArrayChanged=!1;const{autoSaveId:C,onLayout:N,storage:I}=_.current,{layout:j,panelDataArray:L}=P.current;let Y=null;if(C){const Z=Xt(C,L,I);Z&&(w.current=new Map(Object.entries(Z.expandToSizes)),Y=Z.layout)}Y==null&&(Y=Ft({panelDataArray:L}));const V=Xe({layout:Y,panelConstraints:L.map(Z=>Z.constraints)});Ke(j,V)||(f(V),P.current.layout=V,N&&N(V),me(L,V,m.current))}}),ye(()=>{const C=P.current;return()=>{C.layout=[]}},[]);const J=re(C=>function(I){I.preventDefault();const j=u.current;if(!j)return()=>null;const{direction:L,dragState:Y,id:V,keyboardResizeBy:Z,onLayout:y}=_.current,{layout:x,panelDataArray:M}=P.current,{initialLayout:H}=Y??{},$=pt(V,C,j);let A=Gt(I,C,L,Y,Z,j);if(A===0)return;const W=L==="horizontal";document.dir==="rtl"&&W&&(A=-A);const Q=M.map(K=>K.constraints),G=Se({delta:A,initialLayout:H??x,panelConstraints:Q,pivotIndices:$,prevLayout:x,trigger:nt(I)?"keyboard":"mouse-or-touch"}),X=!Me(x,G);(rt(I)||ot(I))&&g.current!=A&&(g.current=A,X?$e(C,0):W?$e(C,A<0?it:st):$e(C,A<0?ut:lt)),X&&(f(G),P.current.layout=G,y&&y(G),me(M,G,m.current))},[]),B=re((C,N)=>{const{onLayout:I}=_.current,{layout:j,panelDataArray:L}=P.current,Y=L.map(H=>H.constraints),{panelSize:V,pivotIndices:Z}=de(L,C,j);F(V!=null,`Panel size not found for panel "${C.id}"`);const x=ge(L,C)===L.length-1?V-N:N-V,M=Se({delta:x,initialLayout:j,panelConstraints:Y,pivotIndices:Z,prevLayout:j,trigger:"imperative-api"});Me(j,M)||(f(M),P.current.layout=M,I&&I(M),me(L,M,m.current))},[]),q=re((C,N)=>{const{layout:I,panelDataArray:j}=P.current,{collapsedSize:L=0,collapsible:Y}=N,{collapsedSize:V=0,collapsible:Z,maxSize:y=100,minSize:x=0}=C.constraints,{panelSize:M}=de(j,C,I);M!=null&&(Y&&Z&&M===L?L!==V&&B(C,V):M<x?B(C,x):M>y&&B(C,y))},[B]),se=re((C,N)=>{const{direction:I}=_.current,{layout:j}=P.current;if(!u.current)return;const L=je(C,u.current);F(L,`Drag handle element not found for id "${C}"`);const Y=yt(I,N);v({dragHandleId:C,dragHandleRect:L.getBoundingClientRect(),initialCursorPosition:Y,initialLayout:j})},[]),ie=re(()=>{v(null)},[]),te=re(C=>{const{panelDataArray:N}=P.current,I=ge(N,C);I>=0&&(N.splice(I,1),delete m.current[C.id],P.current.panelDataArrayChanged=!0)},[]),Ee=wt(()=>({collapsePanel:O,direction:o,dragState:l,expandPanel:U,getPanelSize:S,getPanelStyle:D,groupId:c,isPanelCollapsed:k,isPanelExpanded:R,reevaluatePanelConstraints:q,registerPanel:T,registerResizeHandle:J,resizePanel:B,startDragging:se,stopDragging:ie,unregisterPanel:te,panelGroupElement:u.current}),[O,l,o,U,S,D,c,k,R,q,T,J,B,se,ie,te]),he={display:"flex",flexDirection:o==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return xe(Oe.Provider,{value:Ee},xe(E,{...p,children:t,className:n,id:i,ref:u,style:{...he,...s},"data-panel-group":"","data-panel-group-direction":o,"data-panel-group-id":c}))}const Zt=Ze((e,t)=>xe(bt,{...e,forwardedRef:t}));bt.displayName="PanelGroup";Zt.displayName="forwardRef(PanelGroup)";function ge(e,t){return e.findIndex(n=>n===t||n.id===t.id)}function de(e,t,n){const o=ge(e,t),i=o===e.length-1?[o-1,o]:[o,o+1],h=n[o];return{...t.constraints,panelSize:h,pivotIndices:i}}function qt({disabled:e,handleId:t,resizeHandler:n,panelGroupElement:o}){ve(()=>{if(e||n==null||o==null)return;const d=je(t,o);if(d==null)return;const i=h=>{if(!h.defaultPrevented)switch(h.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{h.preventDefault(),n(h);break}case"F6":{h.preventDefault();const a=d.getAttribute("data-panel-group-id");F(a,`No group element found for id "${a}"`);const r=Ce(a,o),s=dt(a,t,o);F(s!==null,`No resize element found for id "${t}"`);const E=h.shiftKey?s>0?s-1:r.length-1:s+1<r.length?s+1:0;r[E].focus();break}}};return d.addEventListener("keydown",i),()=>{d.removeEventListener("keydown",i)}},[o,e,t,n])}function en({children:e=null,className:t="",disabled:n=!1,hitAreaMargins:o,id:d,onDragging:i,style:h={},tabIndex:a=0,tagName:r="div",...s}){const E=ne(null),p=ne({onDragging:i});ve(()=>{p.current.onDragging=i});const c=qe(Oe);if(c===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:u,groupId:l,registerResizeHandle:v,startDragging:b,stopDragging:f,panelGroupElement:m}=c,w=He(d),[g,_]=Pe("inactive"),[P,O]=Pe(!1),[U,S]=Pe(null),D=ne({state:g});return ye(()=>{D.current.state=g}),ve(()=>{if(n)S(null);else{const R=v(w);S(()=>R)}},[n,w,v]),ve(()=>{var R,T;if(n||U==null)return;const J=E.current;F(J,"Element ref not attached");const B=(q,se,ie)=>{if(se)switch(q){case"down":{_("drag"),b(w,ie);const{onDragging:te}=p.current;te&&te(!0);break}case"move":{const{state:te}=D.current;te!=="drag"&&_("hover"),U(ie);break}case"up":{_("hover"),f();const{onDragging:te}=p.current;te&&te(!1);break}}else _("inactive")};return Ht(w,J,u,{coarse:(R=o==null?void 0:o.coarse)!==null&&R!==void 0?R:15,fine:(T=o==null?void 0:o.fine)!==null&&T!==void 0?T:5},B)},[u,n,o,v,w,U,b,f]),qt({disabled:n,handleId:w,resizeHandler:U,panelGroupElement:m}),xe(r,{...s,children:e,className:t,id:d,onBlur:()=>O(!1),onFocus:()=>O(!0),ref:E,role:"separator",style:{...{touchAction:"none",userSelect:"none"},...h},tabIndex:a,"data-panel-group-direction":u,"data-panel-group-id":l,"data-resize-handle":"","data-resize-handle-active":g==="drag"?"pointer":P?"keyboard":void 0,"data-resize-handle-state":g,"data-panel-resize-handle-enabled":!n,"data-panel-resize-handle-id":w})}en.displayName="PanelResizeHandle";var xt={exports:{}};(function(e,t){(function(o,d){e.exports=d(Et)})(St,n=>(()=>{var o={"./node_modules/css-mediaquery/index.js":(a,r)=>{r.match=l,r.parse=v;var s=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,E=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,p=/^(?:(min|max)-)?(.+)/,c=/(em|rem|px|cm|mm|in|pt|pc)?$/,u=/(dpi|dpcm|dppx)?$/;function l(w,g){return v(w).some(function(_){var P=_.inverse,O=_.type==="all"||g.type===_.type;if(O&&P||!(O||P))return!1;var U=_.expressions.every(function(S){var D=S.feature,k=S.modifier,R=S.value,T=g[D];if(!T)return!1;switch(D){case"orientation":case"scan":return T.toLowerCase()===R.toLowerCase();case"width":case"height":case"device-width":case"device-height":R=m(R),T=m(T);break;case"resolution":R=f(R),T=f(T);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":R=b(R),T=b(T);break;case"grid":case"color":case"color-index":case"monochrome":R=parseInt(R,10)||1,T=parseInt(T,10)||0;break}switch(k){case"min":return T>=R;case"max":return T<=R;default:return T===R}});return U&&!P||!U&&P})}function v(w){return w.split(",").map(function(g){g=g.trim();var _=g.match(s),P=_[1],O=_[2],U=_[3]||"",S={};return S.inverse=!!P&&P.toLowerCase()==="not",S.type=O?O.toLowerCase():"all",U=U.match(/\([^\)]+\)/g)||[],S.expressions=U.map(function(D){var k=D.match(E),R=k[1].toLowerCase().match(p);return{modifier:R[1],feature:R[2],value:k[2]}}),S})}function b(w){var g=Number(w),_;return g||(_=w.match(/^(\d+)\s*\/\s*(\d+)$/),g=_[1]/_[2]),g}function f(w){var g=parseFloat(w),_=String(w).match(u)[1];switch(_){case"dpcm":return g/2.54;case"dppx":return g*96;default:return g}}function m(w){var g=parseFloat(w),_=String(w).match(c)[1];switch(_){case"em":return g*16;case"rem":return g*16;case"cm":return g*96/2.54;case"mm":return g*96/2.54/10;case"in":return g*96;case"pt":return g*72;case"pc":return g*72/12;default:return g}}},"./node_modules/hyphenate-style-name/index.js":(a,r,s)=>{s.r(r),s.d(r,{default:()=>v});var E=/[A-Z]/g,p=/^ms-/,c={};function u(b){return"-"+b.toLowerCase()}function l(b){if(c.hasOwnProperty(b))return c[b];var f=b.replace(E,u);return c[b]=p.test(f)?"-"+f:f}const v=l},"./node_modules/matchmediaquery/index.js":(a,r,s)=>{var E=s("./node_modules/css-mediaquery/index.js").match,p=typeof window<"u"?window.matchMedia:null;function c(l,v,b){var f=this;if(p&&!b){var m=p.call(window,l);this.matches=m.matches,this.media=m.media,m.addListener(_)}else this.matches=E(l,v),this.media=l;this.addListener=w,this.removeListener=g,this.dispose=P;function w(O){m&&m.addListener(O)}function g(O){m&&m.removeListener(O)}function _(O){f.matches=O.matches,f.media=O.media}function P(){m&&m.removeListener(_)}}function u(l,v,b){return new c(l,v,b)}a.exports=u},"./node_modules/object-assign/index.js":a=>{/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var r=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;function p(u){if(u==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(u)}function c(){try{if(!Object.assign)return!1;var u=new String("abc");if(u[5]="de",Object.getOwnPropertyNames(u)[0]==="5")return!1;for(var l={},v=0;v<10;v++)l["_"+String.fromCharCode(v)]=v;var b=Object.getOwnPropertyNames(l).map(function(m){return l[m]});if(b.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(m){f[m]=m}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}a.exports=c()?Object.assign:function(u,l){for(var v,b=p(u),f,m=1;m<arguments.length;m++){v=Object(arguments[m]);for(var w in v)s.call(v,w)&&(b[w]=v[w]);if(r){f=r(v);for(var g=0;g<f.length;g++)E.call(v,f[g])&&(b[f[g]]=v[f[g]])}}return b}},"./node_modules/prop-types/checkPropTypes.js":(a,r,s)=>{var E=function(){};{var p=s("./node_modules/prop-types/lib/ReactPropTypesSecret.js"),c={},u=s("./node_modules/prop-types/lib/has.js");E=function(v){var b="Warning: "+v;typeof console<"u"&&console.error(b);try{throw new Error(b)}catch{}}}function l(v,b,f,m,w){for(var g in v)if(u(v,g)){var _;try{if(typeof v[g]!="function"){var P=Error((m||"React class")+": "+f+" type `"+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof v[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw P.name="Invariant Violation",P}_=v[g](b,g,m,f,null,p)}catch(U){_=U}if(_&&!(_ instanceof Error)&&E((m||"React class")+": type specification of "+f+" `"+g+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof _+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),_ instanceof Error&&!(_.message in c)){c[_.message]=!0;var O=w?w():"";E("Failed "+f+" type: "+_.message+(O??""))}}}l.resetWarningCache=function(){c={}},a.exports=l},"./node_modules/prop-types/factoryWithTypeCheckers.js":(a,r,s)=>{var E=s("./node_modules/react-is/index.js"),p=s("./node_modules/object-assign/index.js"),c=s("./node_modules/prop-types/lib/ReactPropTypesSecret.js"),u=s("./node_modules/prop-types/lib/has.js"),l=s("./node_modules/prop-types/checkPropTypes.js"),v=function(){};v=function(f){var m="Warning: "+f;typeof console<"u"&&console.error(m);try{throw new Error(m)}catch{}};function b(){return null}a.exports=function(f,m){var w=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function _(y){var x=y&&(w&&y[w]||y[g]);if(typeof x=="function")return x}var P="<<anonymous>>",O={array:k("array"),bigint:k("bigint"),bool:k("boolean"),func:k("function"),number:k("number"),object:k("object"),string:k("string"),symbol:k("symbol"),any:R(),arrayOf:T,element:J(),elementType:B(),instanceOf:q,node:Ee(),objectOf:ie,oneOf:se,oneOfType:te,shape:C,exact:N};function U(y,x){return y===x?y!==0||1/y===1/x:y!==y&&x!==x}function S(y,x){this.message=y,this.data=x&&typeof x=="object"?x:{},this.stack=""}S.prototype=Error.prototype;function D(y){var x={},M=0;function H(A,W,Q,G,X,K,z){if(G=G||P,K=K||Q,z!==c){if(m){var ee=new 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 ee.name="Invariant Violation",ee}else if(typeof console<"u"){var ae=G+":"+Q;!x[ae]&&M<3&&(v("You are manually calling a React.PropTypes validation function for the `"+K+"` prop on `"+G+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),x[ae]=!0,M++)}}return W[Q]==null?A?W[Q]===null?new S("The "+X+" `"+K+"` is marked as required "+("in `"+G+"`, but its value is `null`.")):new S("The "+X+" `"+K+"` is marked as required in "+("`"+G+"`, but its value is `undefined`.")):null:y(W,Q,G,X,K)}var $=H.bind(null,!1);return $.isRequired=H.bind(null,!0),$}function k(y){function x(M,H,$,A,W,Q){var G=M[H],X=L(G);if(X!==y){var K=Y(G);return new S("Invalid "+A+" `"+W+"` of type "+("`"+K+"` supplied to `"+$+"`, expected ")+("`"+y+"`."),{expectedType:y})}return null}return D(x)}function R(){return D(b)}function T(y){function x(M,H,$,A,W){if(typeof y!="function")return new S("Property `"+W+"` of component `"+$+"` has invalid PropType notation inside arrayOf.");var Q=M[H];if(!Array.isArray(Q)){var G=L(Q);return new S("Invalid "+A+" `"+W+"` of type "+("`"+G+"` supplied to `"+$+"`, expected an array."))}for(var X=0;X<Q.length;X++){var K=y(Q,X,$,A,W+"["+X+"]",c);if(K instanceof Error)return K}return null}return D(x)}function J(){function y(x,M,H,$,A){var W=x[M];if(!f(W)){var Q=L(W);return new S("Invalid "+$+" `"+A+"` of type "+("`"+Q+"` supplied to `"+H+"`, expected a single ReactElement."))}return null}return D(y)}function B(){function y(x,M,H,$,A){var W=x[M];if(!E.isValidElementType(W)){var Q=L(W);return new S("Invalid "+$+" `"+A+"` of type "+("`"+Q+"` supplied to `"+H+"`, expected a single ReactElement type."))}return null}return D(y)}function q(y){function x(M,H,$,A,W){if(!(M[H]instanceof y)){var Q=y.name||P,G=Z(M[H]);return new S("Invalid "+A+" `"+W+"` of type "+("`"+G+"` supplied to `"+$+"`, expected ")+("instance of `"+Q+"`."))}return null}return D(x)}function se(y){if(!Array.isArray(y))return arguments.length>1?v("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):v("Invalid argument supplied to oneOf, expected an array."),b;function x(M,H,$,A,W){for(var Q=M[H],G=0;G<y.length;G++)if(U(Q,y[G]))return null;var X=JSON.stringify(y,function(z,ee){var ae=Y(ee);return ae==="symbol"?String(ee):ee});return new S("Invalid "+A+" `"+W+"` of value `"+String(Q)+"` "+("supplied to `"+$+"`, expected one of "+X+"."))}return D(x)}function ie(y){function x(M,H,$,A,W){if(typeof y!="function")return new S("Property `"+W+"` of component `"+$+"` has invalid PropType notation inside objectOf.");var Q=M[H],G=L(Q);if(G!=="object")return new S("Invalid "+A+" `"+W+"` of type "+("`"+G+"` supplied to `"+$+"`, expected an object."));for(var X in Q)if(u(Q,X)){var K=y(Q,X,$,A,W+"."+X,c);if(K instanceof Error)return K}return null}return D(x)}function te(y){if(!Array.isArray(y))return v("Invalid argument supplied to oneOfType, expected an instance of array."),b;for(var x=0;x<y.length;x++){var M=y[x];if(typeof M!="function")return v("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+V(M)+" at index "+x+"."),b}function H($,A,W,Q,G){for(var X=[],K=0;K<y.length;K++){var z=y[K],ee=z($,A,W,Q,G,c);if(ee==null)return null;ee.data&&u(ee.data,"expectedType")&&X.push(ee.data.expectedType)}var ae=X.length>0?", expected one of type ["+X.join(", ")+"]":"";return new S("Invalid "+Q+" `"+G+"` supplied to "+("`"+W+"`"+ae+"."))}return D(H)}function Ee(){function y(x,M,H,$,A){return I(x[M])?null:new S("Invalid "+$+" `"+A+"` supplied to "+("`"+H+"`, expected a ReactNode."))}return D(y)}function he(y,x,M,H,$){return new S((y||"React class")+": "+x+" type `"+M+"."+H+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+$+"`.")}function C(y){function x(M,H,$,A,W){var Q=M[H],G=L(Q);if(G!=="object")return new S("Invalid "+A+" `"+W+"` of type `"+G+"` "+("supplied to `"+$+"`, expected `object`."));for(var X in y){var K=y[X];if(typeof K!="function")return he($,A,W,X,Y(K));var z=K(Q,X,$,A,W+"."+X,c);if(z)return z}return null}return D(x)}function N(y){function x(M,H,$,A,W){var Q=M[H],G=L(Q);if(G!=="object")return new S("Invalid "+A+" `"+W+"` of type `"+G+"` "+("supplied to `"+$+"`, expected `object`."));var X=p({},M[H],y);for(var K in X){var z=y[K];if(u(y,K)&&typeof z!="function")return he($,A,W,K,Y(z));if(!z)return new S("Invalid "+A+" `"+W+"` key `"+K+"` supplied to `"+$+"`.\nBad object: "+JSON.stringify(M[H],null," ")+`
Valid keys: `+JSON.stringify(Object.keys(y),null," "));var ee=z(Q,K,$,A,W+"."+K,c);if(ee)return ee}return null}return D(x)}function I(y){switch(typeof y){case"number":case"string":case"undefined":return!0;case"boolean":return!y;case"object":if(Array.isArray(y))return y.every(I);if(y===null||f(y))return!0;var x=_(y);if(x){var M=x.call(y),H;if(x!==y.entries){for(;!(H=M.next()).done;)if(!I(H.value))return!1}else for(;!(H=M.next()).done;){var $=H.value;if($&&!I($[1]))return!1}}else return!1;return!0;default:return!1}}function j(y,x){return y==="symbol"?!0:x?x["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&x instanceof Symbol:!1}function L(y){var x=typeof y;return Array.isArray(y)?"array":y instanceof RegExp?"object":j(x,y)?"symbol":x}function Y(y){if(typeof y>"u"||y===null)return""+y;var x=L(y);if(x==="object"){if(y instanceof Date)return"date";if(y instanceof RegExp)return"regexp"}return x}function V(y){var x=Y(y);switch(x){case"array":case"object":return"an "+x;case"boolean":case"date":case"regexp":return"a "+x;default:return x}}function Z(y){return!y.constructor||!y.constructor.name?P:y.constructor.name}return O.checkPropTypes=l,O.resetWarningCache=l.resetWarningCache,O.PropTypes=O,O}},"./node_modules/prop-types/index.js":(a,r,s)=>{{var E=s("./node_modules/react-is/index.js"),p=!0;a.exports=s("./node_modules/prop-types/factoryWithTypeCheckers.js")(E.isElement,p)}},"./node_modules/prop-types/lib/ReactPropTypesSecret.js":a=>{var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";a.exports=r},"./node_modules/prop-types/lib/has.js":a=>{a.exports=Function.call.bind(Object.prototype.hasOwnProperty)},"./node_modules/react-is/cjs/react-is.development.js":(a,r)=>{/** @license React v16.13.1
* react-is.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(){var s=typeof Symbol=="function"&&Symbol.for,E=s?Symbol.for("react.element"):60103,p=s?Symbol.for("react.portal"):60106,c=s?Symbol.for("react.fragment"):60107,u=s?Symbol.for("react.strict_mode"):60108,l=s?Symbol.for("react.profiler"):60114,v=s?Symbol.for("react.provider"):60109,b=s?Symbol.for("react.context"):60110,f=s?Symbol.for("react.async_mode"):60111,m=s?Symbol.for("react.concurrent_mode"):60111,w=s?Symbol.for("react.forward_ref"):60112,g=s?Symbol.for("react.suspense"):60113,_=s?Symbol.for("react.suspense_list"):60120,P=s?Symbol.for("react.memo"):60115,O=s?Symbol.for("react.lazy"):60116,U=s?Symbol.for("react.block"):60121,S=s?Symbol.for("react.fundamental"):60117,D=s?Symbol.for("react.responder"):60118,k=s?Symbol.for("react.scope"):60119;function R(z){return typeof z=="string"||typeof z=="function"||z===c||z===m||z===l||z===u||z===g||z===_||typeof z=="object"&&z!==null&&(z.$$typeof===O||z.$$typeof===P||z.$$typeof===v||z.$$typeof===b||z.$$typeof===w||z.$$typeof===S||z.$$typeof===D||z.$$typeof===k||z.$$typeof===U)}function T(z){if(typeof z=="object"&&z!==null){var ee=z.$$typeof;switch(ee){case E:var ae=z.type;switch(ae){case f:case m:case c:case l:case u:case g:return ae;default:var We=ae&&ae.$$typeof;switch(We){case b:case w:case O:case P:case v:return We;default:return ee}}case p:return ee}}}var J=f,B=m,q=b,se=v,ie=E,te=w,Ee=c,he=O,C=P,N=p,I=l,j=u,L=g,Y=!1;function V(z){return Y||(Y=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Z(z)||T(z)===f}function Z(z){return T(z)===m}function y(z){return T(z)===b}function x(z){return T(z)===v}function M(z){return typeof z=="object"&&z!==null&&z.$$typeof===E}function H(z){return T(z)===w}function $(z){return T(z)===c}function A(z){return T(z)===O}function W(z){return T(z)===P}function Q(z){return T(z)===p}function G(z){return T(z)===l}function X(z){return T(z)===u}function K(z){return T(z)===g}r.AsyncMode=J,r.ConcurrentMode=B,r.ContextConsumer=q,r.ContextProvider=se,r.Element=ie,r.ForwardRef=te,r.Fragment=Ee,r.Lazy=he,r.Memo=C,r.Portal=N,r.Profiler=I,r.StrictMode=j,r.Suspense=L,r.isAsyncMode=V,r.isConcurrentMode=Z,r.isContextConsumer=y,r.isContextProvider=x,r.isElement=M,r.isForwardRef=H,r.isFragment=$,r.isLazy=A,r.isMemo=W,r.isPortal=Q,r.isProfiler=G,r.isStrictMode=X,r.isSuspense=K,r.isValidElementType=R,r.typeOf=T})()},"./node_modules/react-is/index.js":(a,r,s)=>{a.exports=s("./node_modules/react-is/cjs/react-is.development.js")},"./node_modules/shallow-equal/dist/index.esm.js":(a,r,s)=>{s.r(r),s.d(r,{shallowEqualArrays:()=>p,shallowEqualObjects:()=>E});function E(c,u){if(c===u)return!0;if(!c||!u)return!1;var l=Object.keys(c),v=Object.keys(u),b=l.length;if(v.length!==b)return!1;for(var f=0;f<b;f++){var m=l[f];if(c[m]!==u[m]||!Object.prototype.hasOwnProperty.call(u,m))return!1}return!0}function p(c,u){if(c===u)return!0;if(!c||!u)return!1;var l=c.length;if(u.length!==l)return!1;for(var v=0;v<l;v++)if(c[v]!==u[v])return!1;return!0}},"./src/Component.ts":function(a,r,s){var E=this&&this.__rest||function(l,v){var b={};for(var f in l)Object.prototype.hasOwnProperty.call(l,f)&&v.indexOf(f)<0&&(b[f]=l[f]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function")for(var m=0,f=Object.getOwnPropertySymbols(l);m<f.length;m++)v.indexOf(f[m])<0&&Object.prototype.propertyIsEnumerable.call(l,f[m])&&(b[f[m]]=l[f[m]]);return b},p=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(r,"__esModule",{value:!0});var c=p(s("./src/useMediaQuery.ts")),u=function(l){var v=l.children,b=l.device,f=l.onChange,m=E(l,["children","device","onChange"]),w=(0,c.default)(m,b,f);return typeof v=="function"?v(w):w?v:null};r.default=u},"./src/Context.ts":(a,r,s)=>{Object.defineProperty(r,"__esModule",{value:!0});var E=s("react"),p=(0,E.createContext)(void 0);r.default=p},"./src/index.ts":function(a,r,s){var E=this&&this.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(r,"__esModule",{value:!0}),r.Context=r.toQuery=r.useMediaQuery=r.default=void 0;var p=E(s("./src/useMediaQuery.ts"));r.useMediaQuery=p.default;var c=E(s("./src/Component.ts"));r.default=c.default;var u=E(s("./src/toQuery.ts"));r.toQuery=u.default;var l=E(s("./src/Context.ts"));r.Context=l.default},"./src/mediaQuery.ts":function(a,r,s){var E=this&&this.__assign||function(){return E=Object.assign||function(g){for(var _,P=1,O=arguments.length;P<O;P++){_=arguments[P];for(var U in _)Object.prototype.hasOwnProperty.call(_,U)&&(g[U]=_[U])}return g},E.apply(this,arguments)},p=this&&this.__rest||function(g,_){var P={};for(var O in g)Object.prototype.hasOwnProperty.call(g,O)&&_.indexOf(O)<0&&(P[O]=g[O]);if(g!=null&&typeof Object.getOwnPropertySymbols=="function")for(var U=0,O=Object.getOwnPropertySymbols(g);U<O.length;U++)_.indexOf(O[U])<0&&Object.prototype.propertyIsEnumerable.call(g,O[U])&&(P[O[U]]=g[O[U]]);return P},c=this&&this.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(r,"__esModule",{value:!0});var u=c(s("./node_modules/prop-types/index.js")),l=u.default.oneOfType([u.default.string,u.default.number]),v={all:u.default.bool,grid:u.default.bool,aural:u.default.bool,braille:u.default.bool,handheld:u.default.bool,print:u.default.bool,projection:u.default.bool,screen:u.default.bool,tty:u.default.bool,tv:u.default.bool,embossed:u.default.bool},b={orientation:u.default.oneOf(["portrait","landscape"]),scan:u.default.oneOf(["progressive","interlace"]),aspectRatio:u.default.string,deviceAspectRatio:u.default.string,height:l,deviceHeight:l,width:l,deviceWidth:l,color:u.default.bool,colorIndex:u.default.bool,monochrome:u.default.bool,resolution:l,type:Object.keys(v)};b.type;var f=p(b,["type"]),m=E({minAspectRatio:u.default.string,maxAspectRatio:u.default.string,minDeviceAspectRatio:u.default.string,maxDeviceAspectRatio:u.default.string,minHeight:l,maxHeight:l,minDeviceHeight:l,maxDeviceHeight:l,minWidth:l,maxWidth:l,minDeviceWidth:l,maxDeviceWidth:l,minColor:u.default.number,maxColor:u.default.number,minColorIndex:u.default.number,maxColorIndex:u.default.number,minMonochrome:u.default.number,maxMonochrome:u.default.number,minResolution:l,maxResolution:l},f),w=E(E({},v),m);r.default={all:w,types:v,matchers:b,features:m}},"./src/toQuery.ts":function(a,r,s){var E=this&&this.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(r,"__esModule",{value:!0});var p=E(s("./node_modules/hyphenate-style-name/index.js")),c=E(s("./src/mediaQuery.ts")),u=function(f){return"not ".concat(f)},l=function(f,m){var w=(0,p.default)(f);return typeof m=="number"&&(m="".concat(m,"px")),m===!0?w:m===!1?u(w):"(".concat(w,": ").concat(m,")")},v=function(f){return f.join(" and ")},b=function(f){var m=[];return Object.keys(c.default.all).forEach(function(w){var g=f[w];g!=null&&m.push(l(w,g))}),v(m)};r.default=b},"./src/useMediaQuery.ts":function(a,r,s){var E=this&&this.__importDefault||function(S){return S&&S.__esModule?S:{default:S}};Object.defineProperty(r,"__esModule",{value:!0});var p=s("react"),c=E(s("./node_modules/matchmediaquery/index.js")),u=E(s("./node_modules/hyphenate-style-name/index.js")),l=s("./node_modules/shallow-equal/dist/index.esm.js"),v=E(s("./src/toQuery.ts")),b=E(s("./src/Context.ts")),f=function(S){return S.query||(0,v.default)(S)},m=function(S){if(S){var D=Object.keys(S);return D.reduce(function(k,R){return k[(0,u.default)(R)]=S[R],k},{})}},w=function(){var S=(0,p.useRef)(!1);return(0,p.useEffect)(function(){S.current=!0},[]),S.current},g=function(S){var D=(0,p.useContext)(b.default),k=function(){return m(S)||m(D)},R=(0,p.useState)(k),T=R[0],J=R[1];return(0,p.useEffect)(function(){var B=k();(0,l.shallowEqualObjects)(T,B)||J(B)},[S,D]),T},_=function(S){var D=function(){return f(S)},k=(0,p.useState)(D),R=k[0],T=k[1];return(0,p.useEffect)(function(){var J=D();R!==J&&T(J)},[S]),R},P=function(S,D){var k=function(){return(0,c.default)(S,D||{},!!D)},R=(0,p.useState)(k),T=R[0],J=R[1],B=w();return(0,p.useEffect)(function(){if(B){var q=k();return J(q),function(){q&&q.dispose()}}},[S,D]),T},O=function(S){var D=(0,p.useState)(S.matches),k=D[0],R=D[1];return(0,p.useEffect)(function(){var T=function(J){R(J.matches)};return S.addListener(T),R(S.matches),function(){S.removeListener(T)}},[S]),k},U=function(S,D,k){var R=g(D),T=_(S);if(!T)throw new Error("Invalid or missing MediaQuery!");var J=P(T,R),B=O(J),q=w();return(0,p.useEffect)(function(){q&&k&&k(B)},[B]),(0,p.useEffect)(function(){return function(){J&&J.dispose()}},[]),B};r.default=U},react:a=>{a.exports=n}},d={};function i(a){var r=d[a];if(r!==void 0)return r.exports;var s=d[a]={exports:{}};return o[a].call(s.exports,s,s.exports,i),s.exports}i.d=(a,r)=>{for(var s in r)i.o(r,s)&&!i.o(a,s)&&Object.defineProperty(a,s,{enumerable:!0,get:r[s]})},i.o=(a,r)=>Object.prototype.hasOwnProperty.call(a,r),i.r=a=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})};var h=i("./src/index.ts");return h})())})(xt);var rn=xt.exports;export{Mt as P,Zt as a,en as b,rn as r};