PageSourceSearch

https://novacards.ai/_next/static/chunks/4113-f9929853bcf38cde.js

js novacards.ai collected 2026-10-05 12:20:28 UTC 84,719 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4113],{
vendor: 360 bytes, line 1
1"./node_modules/attr-accept/dist/es/index.js":function(e,t){t.Z=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return n.some(function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?i===t.replace(/\/.*$/,""):o===t})}return!0}},
vendor: 20,124 bytes, line 1
1"./node_modules/react-dropzone/dist/es/index.js":function(e,t,n){n.d(t,{ZP:function(){return Z}});var r=n("./node_modules/react/index.js"),o=n("./node_modules/prop-types/index.js"),i=n.n(o),l=n("./node_modules/tslib/tslib.es6.mjs"),a=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function u(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var 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);if("string"!=typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"==typeof t?t:"string"==typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var s=[".DS_Store","Thumbs.db"];function c(e){return"object"==typeof e&&null!==e}function d(e){return e.filter(function(e){return -1===s.indexOf(e.name)})}function f(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function p(e){if("function"!=typeof e.webkitGetAsEntry)return m(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?h(t):m(e)}function m(e){var t=e.getAsFile();return t?Promise.resolve(u(t)):Promise.reject("".concat(e," is not a File"))}function v(e){return(0,l.mG)(this,void 0,void 0,function(){return(0,l.Jh)(this,function(t){return[2,e.isDirectory?h(e):function(e){return(0,l.mG)(this,void 0,void 0,function(){return(0,l.Jh)(this,function(t){return[2,new Promise(function(t,n){e.file(function(n){t(u(n,e.fullPath))},function(e){n(e)})})]})})}(e)]})})}function h(e){var t=e.createReader();return new Promise(function(e,n){var r=[];!function o(){var i=this;t.readEntries(function(t){return(0,l.mG)(i,void 0,void 0,function(){var i;return(0,l.Jh)(this,function(l){switch(l.label){case 0:if(t.length)return[3,5];l.label=1;case 1:return l.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return e(l.sent()),[3,4];case 3:return n(l.sent()),[3,4];case 4:return[3,6];case 5:i=Promise.all(t.map(v)),r.push(i),o(),l.label=6;case 6:return[2]}})})},function(e){n(e)})}()})}var g=n("./node_modules/attr-accept/dist/es/index.js");function b(e){return function(e){if(Array.isArray(e))return C(e)}(e)||function(e){if("undefined"!=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 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 E(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){w(e,t,n[t])}):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 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 x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],l=!0,a=!1;try{for(o=o.call(e);!(l=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(a)throw r}}return i}}(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 C(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 C(e,t)}}function C(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 D=function(e){var t=Array.isArray(e=Array.isArray(e)&&1===e.length?e[0]:e)?"one of ".concat(e.join(", ")):e;return{code:"file-invalid-type",message:"File type must be ".concat(t)}},O=function(e){return{code:"file-too-large",message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},k=function(e){return{code:"file-too-small",message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},A={code:"too-many-files",message:"Too many files"};function P(e,t){var n="application/x-moz-file"===e.type||(0,g.Z)(e,t);return[n,n?null:D(t)]}function R(e,t,n){if(j(e.size)){if(j(t)&&j(n)){if(e.size>n)return[!1,O(n)];if(e.size<t)return[!1,k(t)]}else if(j(t)&&e.size<t)return[!1,k(t)];else if(j(n)&&e.size>n)return[!1,O(n)]}return[!0,null]}function j(e){return null!=e}function I(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function M(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 F(){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),o=1;o<n;o++)r[o-1]=arguments[o];return t.some(function(t){return!I(e)&&t&&t.apply(void 0,[e].concat(r)),I(e)})}}function L(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function N(e){return/^.*\.[\w]+$/.test(e)}var T=["children"],_=["open"],$=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],K=["refKey","onChange","onClick"];function B(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],l=!0,a=!1;try{for(o=o.call(e);!(l=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(a)throw r}}return i}}(e,t)||U(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 U(e,t){if(e){if("string"==typeof e)return W(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 W(e,t)}}function W(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){H(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 H(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Y=(0,r.forwardRef)(function(e,t){var n=e.children,o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=G(G({},J),e),n=t.accept,o=t.disabled,i=t.getFilesFromEvent,l=t.maxSize,a=t.minSize,u=t.multiple,s=t.maxFiles,c=t.onDragEnter,d=t.onDragLeave,f=t.onDragOver,p=t.onDrop,m=t.onDropAccepted,v=t.onDropRejected,h=t.onFileDialogCancel,g=t.onFileDialogOpen,y=t.useFsAccessApi,S=t.autoFocus,C=t.preventDropOnDocument,D=t.noClick,O=t.noKeyboard,k=t.noDrag,T=t.noDragEventsBubbling,_=t.onError,q=t.validator,Y=(0,r.useMemo)(function(){return function(e){if(j(e))return Object.entries(e).reduce(function(e,t){var n=x(t,2),r=n[0],o=n[1];return[].concat(b(e),[r],b(o))},[]).filter(function(e){return L(e)||N(e)}).join(",")}(n)},[n]),Z=(0,r.useMemo)(function(){return j(n)?[{description:"Files",accept:Object.entries(n).filter(function(e){var t=x(e,2),n=t[0],r=t[1],o=!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.')),o=!1),Array.isArray(r)&&r.every(N)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),o=!1),o}).reduce(function(e,t){var n=x(t,2),r=n[0],o=n[1];return E(E({},e),{},w({},r,o))},{})}]:n},[n]),et=(0,r.useMemo)(function(){return"function"==typeof g?g:ee},[g]),en=(0,r.useMemo)(function(){return"function"==typeof h?h:ee},[h]),er=(0,r.useRef)(null),eo=(0,r.useRef)(null),ei=B((0,r.useReducer)(Q,X),2),el=ei[0],ea=ei[1],eu=el.isFocused,es=el.isFileDialogActive,ec=(0,r.useRef)("undefined"!=typeof window&&window.isSecureContext&&y&&"showOpenFilePicker"in window),ed=function(){!ec.current&&es&&setTimeout(function(){eo.current&&!eo.current.files.length&&(ea({type:"closeDialog"}),en())},300)};(0,r.useEffect)(function(){return window.addEventListener("focus",ed,!1),function(){window.removeEventListener("focus",ed,!1)}},[eo,es,en,ec]);var ef=(0,r.useRef)([]),ep=function(e){er.current&&er.current.contains(e.target)||(e.preventDefault(),ef.current=[])};(0,r.useEffect)(function(){return C&&(document.addEventListener("dragover",z,!1),document.addEventListener("drop",ep,!1)),function(){C&&(document.removeEventListener("dragover",z),document.removeEventListener("drop",ep))}},[er,C]),(0,r.useEffect)(function(){return!o&&S&&er.current&&er.current.focus(),function(){}},[er,S,o]);var em=(0,r.useCallback)(function(e){_?_(e):console.error(e)},[_]),ev=(0,r.useCallback)(function(e){var t;e.preventDefault(),e.persist(),eA(e),ef.current=[].concat(function(e){if(Array.isArray(e))return W(e)}(t=ef.current)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||U(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[e.target]),M(e)&&Promise.resolve(i(e)).then(function(t){if(!I(e)||T){var n,r,o,i,d,f,p,m,v=t.length,h=v>0&&(r=(n={files:t,accept:Y,minSize:a,maxSize:l,multiple:u,maxFiles:s,validator:q}).files,o=n.accept,i=n.minSize,d=n.maxSize,f=n.multiple,p=n.maxFiles,m=n.validator,(!!f||!(r.length>1))&&(!f||!(p>=1)||!(r.length>p))&&r.every(function(e){var t=x(P(e,o),1)[0],n=x(R(e,i,d),1)[0],r=m?m(e):null;return t&&n&&!r}));ea({isDragAccept:h,isDragReject:v>0&&!h,isDragActive:!0,type:"setDraggedFiles"}),c&&c(e)}}).catch(function(e){return em(e)})},[i,c,em,T,Y,a,l,u,s,q]),eh=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eA(e);var t=M(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&f&&f(e),!1},[f,T]),eg=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eA(e);var t=ef.current.filter(function(e){return er.current&&er.current.contains(e)}),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),ef.current=t,!(t.length>0)&&(ea({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),M(e)&&d&&d(e))},[er,d,T]),eb=(0,r.useCallback)(function(e,t){var n=[],r=[];e.forEach(function(e){var t=B(P(e,Y),2),o=t[0],i=t[1],u=B(R(e,a,l),2),s=u[0],c=u[1],d=q?q(e):null;if(o&&s&&!d)n.push(e);else{var f=[i,c];d&&(f=f.concat(d)),r.push({file:e,errors:f.filter(function(e){return e})})}}),(!u&&n.length>1||u&&s>=1&&n.length>s)&&(n.forEach(function(e){r.push({file:e,errors:[A]})}),n.splice(0)),ea({acceptedFiles:n,fileRejections:r,type:"setFiles"}),p&&p(n,r,t),r.length>0&&v&&v(r,t),n.length>0&&m&&m(n,t)},[ea,u,Y,a,l,s,p,m,v,q]),ey=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eA(e),ef.current=[],M(e)&&Promise.resolve(i(e)).then(function(t){(!I(e)||T)&&eb(t,e)}).catch(function(e){return em(e)}),ea({type:"reset"})},[i,eb,em,T]),eE=(0,r.useCallback)(function(){if(ec.current){ea({type:"openDialog"}),et(),window.showOpenFilePicker({multiple:u,types:Z}).then(function(e){return i(e)}).then(function(e){eb(e,null),ea({type:"closeDialog"})}).catch(function(e){e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)?(en(e),ea({type:"closeDialog"})):e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)?(ec.current=!1,eo.current?(eo.current.value=null,eo.current.click()):em(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."))):em(e)});return}eo.current&&(ea({type:"openDialog"}),et(),eo.current.value=null,eo.current.click())},[ea,et,en,y,eb,em,Z,u]),ew=(0,r.useCallback)(function(e){er.current&&er.current.isEqualNode(e.target)&&(" "===e.key||"Enter"===e.key||32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),eE())},[er,eE]),ex=(0,r.useCallback)(function(){ea({type:"focus"})},[]),eS=(0,r.useCallback)(function(){ea({type:"blur"})},[]),eC=(0,r.useCallback)(function(){D||(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(eE,0):eE())},[D,eE]),eD=function(e){return o?null:e},eO=function(e){return O?null:eD(e)},ek=function(e){return k?null:eD(e)},eA=function(e){T&&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,i=e.onFocus,l=e.onBlur,a=e.onClick,u=e.onDragEnter,s=e.onDragOver,c=e.onDragLeave,d=e.onDrop,f=V(e,$);return G(G(H({onKeyDown:eO(F(r,ew)),onFocus:eO(F(i,ex)),onBlur:eO(F(l,eS)),onClick:eD(F(a,eC)),onDragEnter:ek(F(u,ev)),onDragOver:ek(F(s,eh)),onDragLeave:ek(F(c,eg)),onDrop:ek(F(d,ey)),role:"string"==typeof n&&""!==n?n:"presentation"},void 0===t?"ref":t,er),o||O?{}:{tabIndex:0}),f)}},[er,ew,ex,eS,eC,ev,eh,eg,ey,O,k,o]),eR=(0,r.useCallback)(function(e){e.stopPropagation()},[]),ej=(0,r.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=e.onChange,r=e.onClick,o=V(e,K);return G(G({},H({accept:Y,multiple:u,type:"file",style:{display:"none"},onChange:eD(F(n,ey)),onClick:eD(F(r,eR)),tabIndex:-1},void 0===t?"ref":t,eo)),o)}},[eo,n,u,ey,o]);return G(G({},el),{},{isFocused:eu&&!o,getRootProps:eP,getInputProps:ej,rootRef:er,inputRef:eo,open:eD(eE)})}(V(e,T)),i=o.open,l=V(o,_);return(0,r.useImperativeHandle)(t,function(){return{open:i}},[i]),r.createElement(r.Fragment,null,n(G(G({},l),{},{open:i})))});Y.displayName="Dropzone";var J={disabled:!1,getFilesFromEvent:function(e){return(0,l.mG)(this,void 0,void 0,function(){return(0,l.Jh)(this,function(t){return c(e)&&c(e.dataTransfer)?[2,function(e,t){return(0,l.mG)(this,void 0,void 0,function(){var n;return(0,l.Jh)(this,function(r){switch(r.label){case 0:if(!e.items)return[3,2];if(n=f(e.items).filter(function(e){return"file"===e.kind}),"drop"!==t)return[2,n];return[4,Promise.all(n.map(p))];case 1:return[2,d(function e(t){return t.reduce(function(t,n){return(0,l.ev)((0,l.ev)([],(0,l.CR)(t),!1),(0,l.CR)(Array.isArray(n)?e(n):[n]),!1)},[])}(r.sent()))];case 2:return[2,d(f(e.files).map(function(e){return u(e)}))]}})})}(e.dataTransfer,e.type)]:c(e)&&c(e.target)?[2,f(e.target.files).map(function(e){return u(e)})]:Array.isArray(e)&&e.every(function(e){return"getFile"in e&&"function"==typeof e.getFile})?[2,function(e){return(0,l.mG)(this,void 0,void 0,function(){return(0,l.Jh)(this,function(t){switch(t.label){case 0:return[4,Promise.all(e.map(function(e){return e.getFile()}))];case 1:return[2,t.sent().map(function(e){return u(e)})]}})})}(e)]:[2,[]]})})},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Y.defaultProps=J,Y.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 Z=Y,X={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Q(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({},X),{},{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});case"reset":return G({},X);default:return e}}function ee(){}},
vendor: 24,655 bytes, line 1
1"./node_modules/react-resizable-panels/dist/react-resizable-panels.browser.esm.js":function(e,t,n){let r;n.d(t,{OT:function(){return ek},eh:function(){return eC},s_:function(){return C}});var o,i=n("./node_modules/react/index.js");let{createElement:l,createContext:a,createRef:u,forwardRef:s,useCallback:c,useContext:d,useEffect:f,useImperativeHandle:p,useLayoutEffect:m,useMemo:v,useRef:h,useState:g}=o||(o=n.t(i,2)),b=(o||(o=n.t(i,2)))[`useId${Math.random()}`.slice(0,5)],y=a(null);y.displayName="PanelGroupContext";let E="function"==typeof b?b:()=>null,w=0;function x(e=null){let t=E(),n=h(e||t||null);return null===n.current&&(n.current=""+w++),null!=e?e:n.current}function S({children:e,className:t="",collapsedSize:n,collapsible:r,defaultSize:o,forwardedRef:i,id:a,maxSize:u,minSize:s,onCollapse:c,onExpand:f,onResize:v,order:g,style:b,tagName:E="div",...w}){let S=d(y);if(null===S)throw Error("Panel components must be rendered within a PanelGroup container");let{collapsePanel:C,expandPanel:D,getPanelSize:O,getPanelStyle:k,groupId:A,isPanelCollapsed:P,reevaluatePanelConstraints:R,registerPanel:j,resizePanel:I,unregisterPanel:M}=S,z=x(a),F=h({callbacks:{onCollapse:c,onExpand:f,onResize:v},constraints:{collapsedSize:n,collapsible:r,defaultSize:o,maxSize:u,minSize:s},id:z,idIsFromProps:void 0!==a,order:g});h({didLogMissingDefaultSizeWarning:!1}),m(()=>{let{callbacks:e,constraints:t}=F.current,i={...t};F.current.id=z,F.current.idIsFromProps=void 0!==a,F.current.order=g,e.onCollapse=c,e.onExpand=f,e.onResize=v,t.collapsedSize=n,t.collapsible=r,t.defaultSize=o,t.maxSize=u,t.minSize=s,(i.collapsedSize!==t.collapsedSize||i.collapsible!==t.collapsible||i.maxSize!==t.maxSize||i.minSize!==t.minSize)&&R(F.current,i)}),m(()=>{let e=F.current;return j(e),()=>{M(e)}},[g,z,j,M]),p(i,()=>({collapse:()=>{C(F.current)},expand:e=>{D(F.current,e)},getId:()=>z,getSize:()=>O(F.current),isCollapsed:()=>P(F.current),isExpanded:()=>!P(F.current),resize:e=>{I(F.current,e)}}),[C,D,O,P,z,I]);let L=k(F.current,o);return l(E,{...w,children:e,className:t,id:a,style:{...L,...b},"data-panel":"","data-panel-collapsible":r||void 0,"data-panel-group-id":A,"data-panel-id":z,"data-panel-size":parseFloat(""+L.flexGrow).toFixed(1)})}let C=s((e,t)=>l(S,{...e,forwardedRef:t}));S.displayName="Panel",C.displayName="forwardRef(Panel)";let D=null,O=null;function k(e,t){let n=function(e,t){if(t){let e=(t&N)!=0,n=(t&T)!=0,r=(t&_)!=0,o=(t&$)!=0;if(e)return r?"se-resize":o?"ne-resize":"e-resize";if(n)return r?"sw-resize":o?"nw-resize":"w-resize";if(r)return"s-resize";if(o)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}(e,t);D!==n&&(D=n,null===O&&(O=document.createElement("style"),r&&O.setAttribute("nonce",r),document.head.appendChild(O)),O.innerHTML=`*{cursor: ${n}!important;}`)}function A(e){return"keydown"===e.type}function P(e){return e.type.startsWith("pointer")}function R(e){return e.type.startsWith("mouse")}function j(e){if(P(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(R(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}let I=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function M(e){let t=e.length;for(;t--;){let n=e[t];if(ee(n,"Missing node"),function(e){let t=getComputedStyle(e);return!!("fixed"===t.position||"auto"!==t.zIndex&&("static"!==t.position||function(e){var t;let n=getComputedStyle(null!==(t=L(e))&&void 0!==t?t:e).display;return"flex"===n||"inline-flex"===n}(e))||1>+t.opacity||"transform"in t&&"none"!==t.transform||"webkitTransform"in t&&"none"!==t.webkitTransform||"mixBlendMode"in t&&"normal"!==t.mixBlendMode||"filter"in t&&"none"!==t.filter||"webkitFilter"in t&&"none"!==t.webkitFilter||"isolation"in t&&"isolate"===t.isolation||I.test(t.willChange))||"touch"===t.webkitOverflowScrolling}(n))return n}return null}function z(e){return e&&Number(getComputedStyle(e).zIndex)||0}function F(e){let t=[];for(;e;)t.push(e),e=L(e);return t}function L(e){let{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}let N=1,T=2,_=4,$=8,K="coarse"===function(){if("function"==typeof matchMedia)return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}(),B=[],U=!1,W=new Map,q=new Map,G=new Set;function H(e){let{target:t}=e,{x:n,y:r}=j(e);U=!0,J({target:t,x:n,y:r}),X(),B.length>0&&(Q("down",e),e.preventDefault(),e.stopPropagation())}function V(e){let{x:t,y:n}=j(e);if(U&&0===e.buttons&&(U=!1,Q("up",e)),!U){let{target:r}=e;J({target:r,x:t,y:n})}Q("move",e),Z(),B.length>0&&e.preventDefault()}function Y(e){let{target:t}=e,{x:n,y:r}=j(e);q.clear(),U=!1,B.length>0&&e.preventDefault(),Q("up",e),J({target:t,x:n,y:r}),Z(),X()}function J({target:e,x:t,y:n}){B.splice(0);let r=null;e instanceof HTMLElement&&(r=e),G.forEach(e=>{let{element:o,hitAreaMargins:i}=e,l=o.getBoundingClientRect(),{bottom:a,left:u,right:s,top:c}=l,d=K?i.coarse:i.fine;if(t>=u-d&&t<=s+d&&n>=c-d&&n<=a+d){if(null!==r&&o!==r&&!o.contains(r)&&!r.contains(o)&&function(e,t){let n;if(e===t)throw Error("Cannot compare node with itself");let r={a:F(e),b:F(t)};for(;r.a.at(-1)===r.b.at(-1);)e=r.a.pop(),t=r.b.pop(),n=e;ee(n,"Stacking order can only be calculated for elements with a common ancestor");let o={a:z(M(r.a)),b:z(M(r.b))};if(o.a===o.b){let e=n.childNodes,t={a:r.a.at(-1),b:r.b.at(-1)},o=e.length;for(;o--;){let n=e[o];if(n===t.a)return 1;if(n===t.b)return -1}}return Math.sign(o.a-o.b)}(r,o)>0){let e=r,t=!1;for(;e;){var f;if(e.contains(o))break;if((f=e.getBoundingClientRect()).x<l.x+l.width&&f.x+f.width>l.x&&f.y<l.y+l.height&&f.y+f.height>l.y){t=!0;break}e=e.parentElement}if(t)return}B.push(e)}})}function Z(){let e=!1,t=!1;B.forEach(n=>{let{direction:r}=n;"horizontal"===r?e=!0:t=!0});let n=0;q.forEach(e=>{n|=e}),e&&t?k("intersection",n):e?k("horizontal",n):t?k("vertical",n):null!==O&&(document.head.removeChild(O),D=null,O=null)}function X(){W.forEach((e,t)=>{let{body:n}=t;n.removeEventListener("contextmenu",Y),n.removeEventListener("pointerdown",H),n.removeEventListener("pointerleave",V),n.removeEventListener("pointermove",V)}),window.removeEventListener("pointerup",Y),window.removeEventListener("pointercancel",Y),G.size>0&&(U?(B.length>0&&W.forEach((e,t)=>{let{body:n}=t;e>0&&(n.addEventListener("contextmenu",Y),n.addEventListener("pointerleave",V),n.addEventListener("pointermove",V))}),window.addEventListener("pointerup",Y),window.addEventListener("pointercancel",Y)):W.forEach((e,t)=>{let{body:n}=t;e>0&&(n.addEventListener("pointerdown",H,{capture:!0}),n.addEventListener("pointermove",V))}))}function Q(e,t){G.forEach(n=>{let{setResizeHandlerState:r}=n;r(e,B.includes(n),t)})}function ee(e,t){if(!e)throw console.error(t),Error(t)}function et(e,t,n=10){return e.toFixed(n)===t.toFixed(n)?0:e>t?1:-1}function en(e,t,n=10){return 0===et(e,t,n)}function er(e,t,n){return 0===et(e,t,n)}function eo({panelConstraints:e,panelIndex:t,size:n}){let r=e[t];ee(null!=r,`Panel constraints not found for index ${t}`);let{collapsedSize:o=0,collapsible:i,maxSize:l=100,minSize:a=0}=r;return 0>et(n,a)&&(n=i&&0>et(n,(o+a)/2)?o:a),n=parseFloat((n=Math.min(l,n)).toFixed(10))}function ei({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:r,prevLayout:o,trigger:i}){if(er(e,0))return t;let l=[...t],[a,u]=r;ee(null!=a,"Invalid first pivot index"),ee(null!=u,"Invalid second pivot index");let s=0;if("keyboard"===i){{let r=e<0?u:a,o=n[r];ee(o,`Panel constraints not found for index ${r}`);let{collapsedSize:i=0,collapsible:l,minSize:s=0}=o;if(l){let n=t[r];if(ee(null!=n,`Previous layout not found for panel index ${r}`),er(n,i)){let t=s-n;et(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}{let r=e<0?a:u,o=n[r];ee(o,`No panel constraints found for index ${r}`);let{collapsedSize:i=0,collapsible:l,minSize:s=0}=o;if(l){let n=t[r];if(ee(null!=n,`Previous layout not found for panel index ${r}`),er(n,s)){let t=n-i;et(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}}{let r=e<0?1:-1,o=e<0?u:a,i=0;for(;;){let e=t[o];if(ee(null!=e,`Previous layout not found for panel index ${o}`),i+=eo({panelConstraints:n,panelIndex:o,size:100})-e,(o+=r)<0||o>=n.length)break}let l=Math.min(Math.abs(e),Math.abs(i));e=e<0?0-l:l}{let r=e<0?a:u;for(;r>=0&&r<n.length;){let o=Math.abs(e)-Math.abs(s),i=t[r];ee(null!=i,`Previous layout not found for panel index ${r}`);let a=eo({panelConstraints:n,panelIndex:r,size:i-o});if(!er(i,a)&&(s+=i-a,l[r]=a,s.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?r--:r++}}if(function(e,t,n){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!er(e[n],t[n],void 0))return!1;return!0}(o,l))return o;{let r=e<0?u:a,o=t[r];ee(null!=o,`Previous layout not found for panel index ${r}`);let i=o+s,c=eo({panelConstraints:n,panelIndex:r,size:i});if(l[r]=c,!er(c,i)){let t=i-c,r=e<0?u:a;for(;r>=0&&r<n.length;){let o=l[r];ee(null!=o,`Previous layout not found for panel index ${r}`);let i=eo({panelConstraints:n,panelIndex:r,size:o+t});if(er(o,i)||(t-=i-o,l[r]=i),er(t,0))break;e>0?r--:r++}}}return er(l.reduce((e,t)=>t+e,0),100)?l:o}function el(e,t=document){return Array.from(t.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${e}"]`))}function ea(e,t,n=document){let r=el(e,n).findIndex(e=>e.getAttribute("data-panel-resize-handle-id")===t);return null!=r?r:null}function eu(e,t,n){let r=ea(e,t,n);return null!=r?[r,r+1]:[-1,-1]}function es(e,t=document){var n;return t instanceof HTMLElement&&(null==t?void 0:null===(n=t.dataset)||void 0===n?void 0:n.panelGroupId)==e?t:t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`)||null}function ec(e,t=document){return t.querySelector(`[data-panel-resize-handle-id="${e}"]`)||null}function ed(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 ef(e,t){let{x:n,y:r}=j(t);return"horizontal"===e?n:r}function ep(e,t,n){t.forEach((t,r)=>{let o=e[r];ee(o,`Panel data not found for index ${r}`);let{callbacks:i,constraints:l,id:a}=o,{collapsedSize:u=0,collapsible:s}=l,c=n[a];if(null==c||t!==c){n[a]=t;let{onCollapse:e,onExpand:r,onResize:o}=i;o&&o(t,c),s&&(e||r)&&(r&&(null==c||en(c,u))&&!en(t,u)&&r(),e&&(null==c||!en(c,u))&&en(t,u)&&e())}})}function em(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 ev(e){try{if("undefined"!=typeof localStorage)e.getItem=e=>localStorage.getItem(e),e.setItem=(e,t)=>{localStorage.setItem(e,t)};else throw Error("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function eh(e){return`react-resizable-panels:${e}`}function eg(e){return e.map(e=>{let{constraints:t,id:n,idIsFromProps:r,order:o}=e;return r?n:o?`${o}:${JSON.stringify(t)}`:JSON.stringify(t)}).sort((e,t)=>e.localeCompare(t)).join(",")}function eb(e,t){try{let n=eh(e),r=t.getItem(n);if(r){let e=JSON.parse(r);if("object"==typeof e&&null!=e)return e}}catch(e){}return null}function ey(e,t,n,r,o){var i;let l=eh(e),a=eg(t),u=null!==(i=eb(e,o))&&void 0!==i?i:{};u[a]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{o.setItem(l,JSON.stringify(u))}catch(e){console.error(e)}}function eE({layout:e,panelConstraints:t}){let n=[...e],r=n.reduce((e,t)=>e+t,0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map(e=>`${e}%`).join(", ")}`);if(!er(r,100)&&n.length>0)for(let e=0;e<t.length;e++){let t=n[e];ee(null!=t,`No layout data found for index ${e}`);let o=100/r*t;n[e]=o}let o=0;for(let e=0;e<t.length;e++){let r=n[e];ee(null!=r,`No layout data found for index ${e}`);let i=eo({panelConstraints:t,panelIndex:e,size:r});r!=i&&(o+=r-i,n[e]=i)}if(!er(o,0))for(let e=0;e<t.length;e++){let r=n[e];ee(null!=r,`No layout data found for index ${e}`);let i=eo({panelConstraints:t,panelIndex:e,size:r+o});if(r!==i&&(o-=i-r,n[e]=i,er(o,0)))break}return n}let ew={getItem:e=>(ev(ew),ew.getItem(e)),setItem:(e,t)=>{ev(ew),ew.setItem(e,t)}},ex={};function eS({autoSaveId:e=null,children:t,className:n="",direction:r,forwardedRef:o,id:i=null,onLayout:a=null,keyboardResizeBy:u=null,storage:s=ew,style:d,tagName:b="div",...E}){let w=x(i),S=h(null),[C,D]=g(null),[O,k]=g([]),j=function(){let[e,t]=g(0);return c(()=>t(e=>e+1),[])}(),I=h({}),M=h(new Map),z=h(0),F=h({autoSaveId:e,direction:r,dragState:C,id:w,keyboardResizeBy:u,onLayout:a,storage:s}),L=h({layout:O,panelDataArray:[],panelDataArrayChanged:!1});h({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),p(o,()=>({getId:()=>F.current.id,getLayout:()=>{let{layout:e}=L.current;return e},setLayout:e=>{let{onLayout:t}=F.current,{layout:n,panelDataArray:r}=L.current,o=eE({layout:e,panelConstraints:r.map(e=>e.constraints)});ed(n,o)||(k(o),L.current.layout=o,t&&t(o),ep(r,o,I.current))}}),[]),m(()=>{F.current.autoSaveId=e,F.current.direction=r,F.current.dragState=C,F.current.id=w,F.current.onLayout=a,F.current.storage=s}),function({committedValuesRef:e,eagerValuesRef:t,groupId:n,layout:r,panelDataArray:o,panelGroupElement:i,setLayout:l}){h({didWarnAboutMissingResizeHandle:!1}),m(()=>{if(!i)return;let e=el(n,i);for(let t=0;t<o.length-1;t++){let{valueMax:n,valueMin:i,valueNow:l}=function({layout:e,panelsArray:t,pivotIndices:n}){let r=0,o=100,i=0,l=0,a=n[0];return ee(null!=a,"No pivot index found"),t.forEach((e,t)=>{let{constraints:n}=e,{maxSize:u=100,minSize:s=0}=n;t===a?(r=s,o=u):(i+=s,l+=u)}),{valueMax:Math.min(o,100-i),valueMin:Math.max(r,100-l),valueNow:e[a]}}({layout:r,panelsArray:o,pivotIndices:[t,t+1]}),a=e[t];if(null==a);else{let e=o[t];ee(e,`No panel data found for index "${t}"`),a.setAttribute("aria-controls",e.id),a.setAttribute("aria-valuemax",""+Math.round(n)),a.setAttribute("aria-valuemin",""+Math.round(i)),a.setAttribute("aria-valuenow",null!=l?""+Math.round(l):"")}}return()=>{e.forEach((e,t)=>{e.removeAttribute("aria-controls"),e.removeAttribute("aria-valuemax"),e.removeAttribute("aria-valuemin"),e.removeAttribute("aria-valuenow")})}},[n,r,o,i]),f(()=>{if(!i)return;let e=t.current;ee(e,"Eager values not found");let{panelDataArray:o}=e;ee(null!=es(n,i),`No group found for id "${n}"`);let a=el(n,i);ee(a,`No resize handles found for group id "${n}"`);let u=a.map(e=>{let t=e.getAttribute("data-panel-resize-handle-id");ee(t,"Resize handle element has no handle id attribute");let[a,u]=function(e,t,n,r=document){var o,i,l,a;let u=ec(t,r),s=el(e,r),c=u?s.indexOf(u):-1;return[null!==(o=null===(i=n[c])||void 0===i?void 0:i.id)&&void 0!==o?o:null,null!==(l=null===(a=n[c+1])||void 0===a?void 0:a.id)&&void 0!==l?l:null]}(n,t,o,i);if(null==a||null==u)return()=>{};let s=e=>{if(!e.defaultPrevented&&"Enter"===e.key){e.preventDefault();let u=o.findIndex(e=>e.id===a);if(u>=0){let e=o[u];ee(e,`No panel data found for index ${u}`);let a=r[u],{collapsedSize:s=0,collapsible:c,minSize:d=0}=e.constraints;if(null!=a&&c){let e=ei({delta:er(a,s)?d-s:s-a,initialLayout:r,panelConstraints:o.map(e=>e.constraints),pivotIndices:eu(n,t,i),prevLayout:r,trigger:"keyboard"});r!==e&&l(e)}}}};return e.addEventListener("keydown",s),()=>{e.removeEventListener("keydown",s)}});return()=>{u.forEach(e=>e())}},[i,e,t,n,r,o,l])}({committedValuesRef:F,eagerValuesRef:L,groupId:w,layout:O,panelDataArray:L.current.panelDataArray,setLayout:k,panelGroupElement:S.current}),f(()=>{let{panelDataArray:t}=L.current;if(e){if(0===O.length||O.length!==t.length)return;let n=ex[e];null==n&&(n=function(e,t=10){let n=null;return(...r)=>{null!==n&&clearTimeout(n),n=setTimeout(()=>{e(...r)},t)}}(ey,100),ex[e]=n),n(e,[...t],new Map(M.current),O,s)}},[e,O,s]),f(()=>{});let K=c(e=>{let{onLayout:t}=F.current,{layout:n,panelDataArray:r}=L.current;if(e.constraints.collapsible){let o=r.map(e=>e.constraints),{collapsedSize:i=0,panelSize:l,pivotIndices:a}=eO(r,e,n);if(ee(null!=l,`Panel size not found for panel "${e.id}"`),!en(l,i)){M.current.set(e.id,l);let u=ei({delta:eD(r,e)===r.length-1?l-i:i-l,initialLayout:n,panelConstraints:o,pivotIndices:a,prevLayout:n,trigger:"imperative-api"});em(n,u)||(k(u),L.current.layout=u,t&&t(u),ep(r,u,I.current))}}},[]),B=c((e,t)=>{let{onLayout:n}=F.current,{layout:r,panelDataArray:o}=L.current;if(e.constraints.collapsible){let i=o.map(e=>e.constraints),{collapsedSize:l=0,panelSize:a=0,minSize:u=0,pivotIndices:s}=eO(o,e,r),c=null!=t?t:u;if(en(a,l)){let t=M.current.get(e.id),l=null!=t&&t>=c?t:c,u=ei({delta:eD(o,e)===o.length-1?a-l:l-a,initialLayout:r,panelConstraints:i,pivotIndices:s,prevLayout:r,trigger:"imperative-api"});em(r,u)||(k(u),L.current.layout=u,n&&n(u),ep(o,u,I.current))}}},[]),U=c(e=>{let{layout:t,panelDataArray:n}=L.current,{panelSize:r}=eO(n,e,t);return ee(null!=r,`Panel size not found for panel "${e.id}"`),r},[]),W=c((e,t)=>{let{panelDataArray:n}=L.current,r=eD(n,e);return function({defaultSize:e,dragState:t,layout:n,panelData:r,panelIndex:o,precision:i=3}){let l=n[o];return{flexBasis:0,flexGrow:null==l?void 0!=e?e.toPrecision(i):"1":1===r.length?"1":l.toPrecision(i),flexShrink:1,overflow:"hidden",pointerEvents:null!==t?"none":void 0}}({defaultSize:t,dragState:C,layout:O,panelData:n,panelIndex:r})},[C,O]),G=c(e=>{let{layout:t,panelDataArray:n}=L.current,{collapsedSize:r=0,collapsible:o,panelSize:i}=eO(n,e,t);return ee(null!=i,`Panel size not found for panel "${e.id}"`),!0===o&&en(i,r)},[]),H=c(e=>{let{layout:t,panelDataArray:n}=L.current,{collapsedSize:r=0,collapsible:o,panelSize:i}=eO(n,e,t);return ee(null!=i,`Panel size not found for panel "${e.id}"`),!o||et(i,r)>0},[]),V=c(e=>{let{panelDataArray:t}=L.current;t.push(e),t.sort((e,t)=>{let n=e.order,r=t.order;return null==n&&null==r?0:null==n?-1:null==r?1:n-r}),L.current.panelDataArrayChanged=!0,j()},[j]);m(()=>{if(L.current.panelDataArrayChanged){L.current.panelDataArrayChanged=!1;let{autoSaveId:n,onLayout:r,storage:o}=F.current,{layout:i,panelDataArray:l}=L.current,a=null;if(n){var e,t;let r=null!==(t=(null!==(e=eb(n,o))&&void 0!==e?e:{})[eg(l)])&&void 0!==t?t:null;r&&(M.current=new Map(Object.entries(r.expandToSizes)),a=r.layout)}null==a&&(a=function({panelDataArray:e}){let t=Array(e.length),n=e.map(e=>e.constraints),r=0,o=100;for(let i=0;i<e.length;i++){let e=n[i];ee(e,`Panel constraints not found for index ${i}`);let{defaultSize:l}=e;null!=l&&(r++,t[i]=l,o-=l)}for(let i=0;i<e.length;i++){let l=n[i];ee(l,`Panel constraints not found for index ${i}`);let{defaultSize:a}=l;if(null!=a)continue;let u=o/(e.length-r);r++,t[i]=u,o-=u}return t}({panelDataArray:l}));let u=eE({layout:a,panelConstraints:l.map(e=>e.constraints)});ed(i,u)||(k(u),L.current.layout=u,r&&r(u),ep(l,u,I.current))}}),m(()=>{let e=L.current;return()=>{e.layout=[]}},[]);let Y=c(e=>function(t){t.preventDefault();let n=S.current;if(!n)return()=>null;let{direction:r,dragState:o,id:i,keyboardResizeBy:l,onLayout:a}=F.current,{layout:u,panelDataArray:s}=L.current,{initialLayout:c}=null!=o?o:{},d=eu(i,e,n),f=function(e,t,n,r,o,i){if(A(e)){let t="horizontal"===n,r=0;r=e.shiftKey?100:null!=o?o:10;let i=0;switch(e.key){case"ArrowDown":i=t?0:r;break;case"ArrowLeft":i=t?-r:0;break;case"ArrowRight":i=t?r:0;break;case"ArrowUp":i=t?0:-r;break;case"End":i=100;break;case"Home":i=-100}return i}return null==r?0:function(e,t,n,r,o){let i="horizontal"===n,l=ec(t,o);ee(l,`No resize handle element found for id "${t}"`);let a=l.getAttribute("data-panel-group-id");ee(a,"Resize handle element has no group id attribute");let{initialCursorPosition:u}=r,s=ef(n,e),c=es(a,o);ee(c,`No group element found for id "${a}"`);let d=c.getBoundingClientRect();return(s-u)/(i?d.width:d.height)*100}(e,t,n,r,i)}(t,e,r,o,l,n),p="horizontal"===r;"rtl"===document.dir&&p&&(f=-f);let m=ei({delta:f,initialLayout:null!=c?c:u,panelConstraints:s.map(e=>e.constraints),pivotIndices:d,prevLayout:u,trigger:A(t)?"keyboard":"mouse-or-touch"}),v=!em(u,m);if((P(t)||R(t))&&z.current!=f){var h,g;(z.current=f,v||0===f)?q.set(e,0):p?(h=f<0?N:T,q.set(e,h)):(g=f<0?_:$,q.set(e,g))}v&&(k(m),L.current.layout=m,a&&a(m),ep(s,m,I.current))},[]),J=c((e,t)=>{let{onLayout:n}=F.current,{layout:r,panelDataArray:o}=L.current,i=o.map(e=>e.constraints),{panelSize:l,pivotIndices:a}=eO(o,e,r);ee(null!=l,`Panel size not found for panel "${e.id}"`);let u=ei({delta:eD(o,e)===o.length-1?l-t:t-l,initialLayout:r,panelConstraints:i,pivotIndices:a,prevLayout:r,trigger:"imperative-api"});em(r,u)||(k(u),L.current.layout=u,n&&n(u),ep(o,u,I.current))},[]),Z=c((e,t)=>{let{layout:n,panelDataArray:r}=L.current,{collapsedSize:o=0,collapsible:i}=t,{collapsedSize:l=0,collapsible:a,maxSize:u=100,minSize:s=0}=e.constraints,{panelSize:c}=eO(r,e,n);null!=c&&(i&&a&&en(c,o)?en(o,l)||J(e,l):c<s?J(e,s):c>u&&J(e,u))},[J]),X=c((e,t)=>{let{direction:n}=F.current,{layout:r}=L.current;if(!S.current)return;let o=ec(e,S.current);ee(o,`Drag handle element not found for id "${e}"`);let i=ef(n,t);D({dragHandleId:e,dragHandleRect:o.getBoundingClientRect(),initialCursorPosition:i,initialLayout:r})},[]),Q=c(()=>{D(null)},[]),eo=c(e=>{let{panelDataArray:t}=L.current,n=eD(t,e);n>=0&&(t.splice(n,1),delete I.current[e.id],L.current.panelDataArrayChanged=!0,j())},[j]),ea=v(()=>({collapsePanel:K,direction:r,dragState:C,expandPanel:B,getPanelSize:U,getPanelStyle:W,groupId:w,isPanelCollapsed:G,isPanelExpanded:H,reevaluatePanelConstraints:Z,registerPanel:V,registerResizeHandle:Y,resizePanel:J,startDragging:X,stopDragging:Q,unregisterPanel:eo,panelGroupElement:S.current}),[K,C,r,B,U,W,w,G,H,Z,V,Y,J,X,Q,eo]);return l(y.Provider,{value:ea},l(b,{...E,children:t,className:n,id:i,ref:S,style:{display:"flex",flexDirection:"horizontal"===r?"row":"column",height:"100%",overflow:"hidden",width:"100%",...d},"data-panel-group":"","data-panel-group-direction":r,"data-panel-group-id":w}))}let eC=s((e,t)=>l(eS,{...e,forwardedRef:t}));function eD(e,t){return e.findIndex(e=>e===t||e.id===t.id)}function eO(e,t,n){let r=eD(e,t),o=r===e.length-1,i=n[r];return{...t.constraints,panelSize:i,pivotIndices:o?[r-1,r]:[r,r+1]}}function ek({children:e=null,className:t="",disabled:n=!1,hitAreaMargins:r,id:o,onBlur:i,onDragging:a,onFocus:u,style:s={},tabIndex:c=0,tagName:p="div",...v}){var b,E;let w=h(null),S=h({onDragging:a});f(()=>{S.current.onDragging=a});let C=d(y);if(null===C)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");let{direction:D,groupId:O,registerResizeHandle:k,startDragging:A,stopDragging:P,panelGroupElement:R}=C,j=x(o),[I,M]=g("inactive"),[z,F]=g(!1),[L,N]=g(null),T=h({state:I});m(()=>{T.current.state=I}),f(()=>{if(n)N(null);else{let e=k(j);N(()=>e)}},[n,j,k]);let _=null!==(b=null==r?void 0:r.coarse)&&void 0!==b?b:15,$=null!==(E=null==r?void 0:r.fine)&&void 0!==E?E:5;return f(()=>{if(n||null==L)return;let e=w.current;return ee(e,"Element ref not attached"),function(e,t,n,r,o){var i;let{ownerDocument:l}=t,a={direction:n,element:t,hitAreaMargins:r,setResizeHandlerState:o},u=null!==(i=W.get(l))&&void 0!==i?i:0;return W.set(l,u+1),G.add(a),X(),function(){var t;q.delete(e),G.delete(a);let n=null!==(t=W.get(l))&&void 0!==t?t:1;if(W.set(l,n-1),X(),1===n&&W.delete(l),B.includes(a)){let e=B.indexOf(a);e>=0&&B.splice(e,1),Z(),o("up",!0,null)}}}(j,e,D,{coarse:_,fine:$},(e,t,n)=>{if(t)switch(e){case"down":{M("drag"),ee(n,'Expected event to be defined for "down" action'),A(j,n);let{onDragging:e}=S.current;e&&e(!0);break}case"move":{let{state:e}=T.current;"drag"!==e&&M("hover"),ee(n,'Expected event to be defined for "move" action'),L(n);break}case"up":{M("hover"),P();let{onDragging:e}=S.current;e&&e(!1)}}else M("inactive")})},[_,D,n,$,k,j,L,A,P]),!function({disabled:e,handleId:t,resizeHandler:n,panelGroupElement:r}){f(()=>{if(e||null==n||null==r)return;let o=ec(t,r);if(null==o)return;let i=e=>{if(!e.defaultPrevented)switch(e.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":e.preventDefault(),n(e);break;case"F6":{e.preventDefault();let n=o.getAttribute("data-panel-group-id");ee(n,`No group element found for id "${n}"`);let i=el(n,r),l=ea(n,t,r);ee(null!==l,`No resize element found for id "${t}"`);let a=e.shiftKey?l>0?l-1:i.length-1:l+1<i.length?l+1:0;i[a].focus()}}};return o.addEventListener("keydown",i),()=>{o.removeEventListener("keydown",i)}},[r,e,t,n])}({disabled:n,handleId:j,resizeHandler:L,panelGroupElement:R}),l(p,{...v,children:e,className:t,id:o,onBlur:()=>{F(!1),null==i||i()},onFocus:()=>{F(!0),null==u||u()},ref:w,role:"separator",style:{touchAction:"none",userSelect:"none",...s},tabIndex:c,"data-panel-group-direction":D,"data-panel-group-id":O,"data-resize-handle":"","data-resize-handle-active":"drag"===I?"pointer":z?"keyboard":void 0,"data-resize-handle-state":I,"data-panel-resize-handle-enabled":!n,"data-panel-resize-handle-id":j})}eS.displayName="PanelGroup",eC.displayName="forwardRef(PanelGroup)",ek.displayName="PanelResizeHandle"},
vendor: 849 bytes, line 1
1"./node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js":function(e,t,n){var r=n("./node_modules/react/index.js"),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,l=r.useEffect,a=r.useLayoutEffect,u=r.useDebugValue;function s(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,c=r[1];return a(function(){o.value=n,o.getSnapshot=t,s(o)&&c({inst:o})},[e,n,t]),l(function(){return s(o)&&c({inst:o}),e(function(){s(o)&&c({inst:o})})},[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},
vendor: 951 bytes, line 1
1"./node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.js":function(e,t,n){var r=n("./node_modules/react/index.js"),o=n("./node_modules/use-sync-external-store/shim/index.js"),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},l=o.useSyncExternalStore,a=r.useRef,u=r.useEffect,s=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var p=l(e,(d=s(function(){function e(e){if(!u){if(u=!0,l=e,e=r(e),void 0!==o&&f.hasValue){var t=f.value;if(o(t,e))return a=t}return a=e}if(t=a,i(l,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(l=e,a=n)}var l,a,u=!1,s=void 0===n?null:n;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]},[t,n,r,o]))[0],d[1]);return u(function(){f.hasValue=!0,f.value=p},[p]),c(p),p}},
vendor: 177 bytes, line 1
1"./node_modules/use-sync-external-store/shim/index.js":function(e,t,n){e.exports=n("./node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js")},
vendor: 199 bytes, line 1
1"./node_modules/use-sync-external-store/shim/with-selector.js":function(e,t,n){e.exports=n("./node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.js")},
vendor: 2,486 bytes, line 1
1"./node_modules/@tanstack/react-query/build/modern/useMutation.js":function(e,t,n){n.d(t,{D:function(){return d}});var r=n("./node_modules/react/index.js"),o=n("./node_modules/@tanstack/query-core/build/modern/mutation.js"),i=n("./node_modules/@tanstack/query-core/build/modern/notifyManager.js"),l=n("./node_modules/@tanstack/query-core/build/modern/subscribable.js"),a=n("./node_modules/@tanstack/query-core/build/modern/utils.js"),u=class extends l.l{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#o()}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,a.VS)(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,a.Ym)(t.mutationKey)!==(0,a.Ym)(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#o(),this.#i(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#o(),this.#i()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#o(){let e=this.#n?.state??(0,o.R)();this.#t={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#i(e){i.V.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context;e?.type==="success"?(this.#r.onSuccess?.(e.data,t,n),this.#r.onSettled?.(e.data,null,t,n)):e?.type==="error"&&(this.#r.onError?.(e.error,t,n),this.#r.onSettled?.(void 0,e.error,t,n))}this.listeners.forEach(e=>{e(this.#t)})})}},s=n("./node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js"),c=n("./node_modules/@tanstack/react-query/build/modern/utils.js");function d(e,t){let n=(0,s.NL)(t),[o]=r.useState(()=>new u(n,e));r.useEffect(()=>{o.setOptions(e)},[o,e]);let l=r.useSyncExternalStore(r.useCallback(e=>o.subscribe(i.V.batchCalls(e)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),a=r.useCallback((e,t)=>{o.mutate(e,t).catch(c.Z)},[o]);if(l.error&&(0,c.L)(o.options.throwOnError,[l.error]))throw l.error;return{...l,mutate:a,mutateAsync:l.mutate}}},
vendor: 33,385 bytes, line 1
1"./node_modules/cmdk/dist/index.mjs":function(e,t,n){let r,o;n.d(t,{mY:function(){return e3}});var i=/[\\\/_+.#"@\[\(\{&]/,l=/[\\\/_+.#"@\[\(\{&]/g,a=/[\s-]/,u=/[\s-]/g;function s(e){return e.toLowerCase().replace(u," ")}function c(){return(c=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 d=n("./node_modules/react/index.js"),f=n.t(d,2);function p(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function m(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function v(...e){return(0,d.useCallback)(m(...e),e)}let h=(null==globalThis?void 0:globalThis.document)?d.useLayoutEffect:()=>{},g=f["useId".toString()]||(()=>void 0),b=0;function y(e){let[t,n]=d.useState(g());return h(()=>{e||n(e=>null!=e?e:String(b++))},[e]),e||(t?`radix-${t}`:"")}function E(e){let t=(0,d.useRef)(e);return(0,d.useEffect)(()=>{t.current=e}),(0,d.useMemo)(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}var w=n("./node_modules/react-dom/index.js");let x=(0,d.forwardRef)((e,t)=>{let{children:n,...r}=e,o=d.Children.toArray(n),i=o.find(D);if(i){let e=i.props.children,n=o.map(t=>t!==i?t:d.Children.count(e)>1?d.Children.only(null):(0,d.isValidElement)(e)?e.props.children:null);return(0,d.createElement)(S,c({},r,{ref:t}),(0,d.isValidElement)(e)?(0,d.cloneElement)(e,void 0,n):null)}return(0,d.createElement)(S,c({},r,{ref:t}),n)});x.displayName="Slot";let S=(0,d.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,d.isValidElement)(n)?(0,d.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:t?m(t,n.ref):n.ref}):d.Children.count(n)>1?d.Children.only(null):null});S.displayName="SlotClone";let C=({children:e})=>(0,d.createElement)(d.Fragment,null,e);function D(e){return(0,d.isValidElement)(e)&&e.type===C}let O=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,d.forwardRef)((e,n)=>{let{asChild:r,...o}=e,i=r?x:t;return(0,d.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,d.createElement)(i,c({},o,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),k="dismissableLayer.update",A=(0,d.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),P=(0,d.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:a,onInteractOutside:u,onDismiss:s,...f}=e,m=(0,d.useContext)(A),[h,g]=(0,d.useState)(null),b=null!==(n=null==h?void 0:h.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,y]=(0,d.useState)({}),w=v(t,e=>g(e)),x=Array.from(m.layers),[S]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),C=x.indexOf(S),D=h?x.indexOf(h):-1,P=m.layersWithOutsidePointerEventsDisabled.size>0,I=D>=C,M=function(e,t=null==globalThis?void 0:globalThis.document){let n=E(e),r=(0,d.useRef)(!1),o=(0,d.useRef)(()=>{});return(0,d.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function i(){j("dismissableLayer.pointerDownOutside",n,r,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=i,t.addEventListener("click",o.current,{once:!0})):i()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...m.branches].some(e=>e.contains(t));!I||n||(null==l||l(e),null==u||u(e),e.defaultPrevented||null==s||s())},b),z=function(e,t=null==globalThis?void 0:globalThis.document){let n=E(e),r=(0,d.useRef)(!1);return(0,d.useEffect)(()=>{let e=e=>{e.target&&!r.current&&j("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=>{let t=e.target;[...m.branches].some(e=>e.contains(t))||(null==a||a(e),null==u||u(e),e.defaultPrevented||null==s||s())},b);return!function(e,t=null==globalThis?void 0:globalThis.document){let n=E(e);(0,d.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{D!==m.layers.size-1||(null==i||i(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))},b),(0,d.useEffect)(()=>{if(h)return o&&(0===m.layersWithOutsidePointerEventsDisabled.size&&(r=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(h)),m.layers.add(h),R(),()=>{o&&1===m.layersWithOutsidePointerEventsDisabled.size&&(b.body.style.pointerEvents=r)}},[h,b,o,m]),(0,d.useEffect)(()=>()=>{h&&(m.layers.delete(h),m.layersWithOutsidePointerEventsDisabled.delete(h),R())},[h,m]),(0,d.useEffect)(()=>{let e=()=>y({});return document.addEventListener(k,e),()=>document.removeEventListener(k,e)},[]),(0,d.createElement)(O.div,c({},f,{ref:w,style:{pointerEvents:P?I?"auto":"none":void 0,...e.style},onFocusCapture:p(e.onFocusCapture,z.onFocusCapture),onBlurCapture:p(e.onBlurCapture,z.onBlurCapture),onPointerDownCapture:p(e.onPointerDownCapture,M.onPointerDownCapture)}))});function R(){let e=new CustomEvent(k);document.dispatchEvent(e)}function j(e,t,n,{discrete:r}){let o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});(t&&o.addEventListener(e,t,{once:!0}),r)?o&&(0,w.flushSync)(()=>o.dispatchEvent(i)):o.dispatchEvent(i)}let I="focusScope.autoFocusOnMount",M="focusScope.autoFocusOnUnmount",z={bubbles:!1,cancelable:!0},F=(0,d.forwardRef)((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...l}=e,[a,u]=(0,d.useState)(null),s=E(o),f=E(i),p=(0,d.useRef)(null),m=v(t,e=>u(e)),h=(0,d.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,d.useEffect)(()=>{if(r){function e(e){if(h.paused||!a)return;let t=e.target;a.contains(t)?p.current=t:T(p.current,{select:!0})}function t(e){if(h.paused||!a)return;let t=e.relatedTarget;null===t||a.contains(t)||T(p.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&&T(a)});return a&&n.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,a,h.paused]),(0,d.useEffect)(()=>{if(a){_.add(h);let e=document.activeElement;if(!a.contains(e)){let t=new CustomEvent(I,z);a.addEventListener(I,s),a.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(T(r,{select:t}),document.activeElement!==n)return}(L(a).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&T(a))}return()=>{a.removeEventListener(I,s),setTimeout(()=>{let t=new CustomEvent(M,z);a.addEventListener(M,f),a.dispatchEvent(t),t.defaultPrevented||T(null!=e?e:document.body,{select:!0}),a.removeEventListener(M,f),_.remove(h)},0)}}},[a,s,f,h]);let g=(0,d.useCallback)(e=>{if(!n&&!r||h.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,i]=function(e){let t=L(e);return[N(t,e),N(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&T(i,{select:!0})):(e.preventDefault(),n&&T(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,h.paused]);return(0,d.createElement)(O.div,c({tabIndex:-1},l,{ref:m,onKeyDown:g}))});function L(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 N(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 T(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()}}let _=(o=[],{add(e){let t=o[0];e!==t&&(null==t||t.pause()),(o=$(o,e)).unshift(e)},remove(e){var t;null===(t=(o=$(o,e))[0])||void 0===t||t.resume()}});function $(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}let K=(0,d.forwardRef)((e,t)=>{var n;let{container:r=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...o}=e;return r?w.createPortal((0,d.createElement)(O.div,c({},o,{ref:t})),r):null}),B=e=>{let{present:t,children:n}=e,r=function(e){var t,n;let[r,o]=(0,d.useState)(),i=(0,d.useRef)({}),l=(0,d.useRef)(e),a=(0,d.useRef)("none"),[u,s]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,d.useReducer)((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return(0,d.useEffect)(()=>{let e=U(i.current);a.current="mounted"===u?e:"none"},[u]),h(()=>{let t=i.current,n=l.current;if(n!==e){let r=a.current,o=U(t);e?s("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?s("UNMOUNT"):n&&r!==o?s("ANIMATION_OUT"):s("UNMOUNT"),l.current=e}},[e,s]),h(()=>{if(r){let e=e=>{let t=U(i.current).includes(e.animationName);e.target===r&&t&&(0,w.flushSync)(()=>s("ANIMATION_END"))},t=e=>{e.target===r&&(a.current=U(i.current))};return r.addEventListener("animationstart",t),r.addEventListener("animationcancel",e),r.addEventListener("animationend",e),()=>{r.removeEventListener("animationstart",t),r.removeEventListener("animationcancel",e),r.removeEventListener("animationend",e)}}s("ANIMATION_END")},[r,s]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:(0,d.useCallback)(e=>{e&&(i.current=getComputedStyle(e)),o(e)},[])}}(t),o="function"==typeof n?n({present:r.isPresent}):d.Children.only(n),i=v(r.ref,o.ref);return"function"==typeof n||r.isPresent?(0,d.cloneElement)(o,{ref:i}):null};function U(e){return(null==e?void 0:e.animationName)||"none"}B.displayName="Presence";let W=0;function q(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var G=n("./node_modules/tslib/tslib.es6.mjs"),H=n("./node_modules/react-remove-scroll-bar/dist/es2015/constants.js"),V=n("./node_modules/use-callback-ref/dist/es2015/useMergeRef.js"),Y=(0,n("./node_modules/use-sidecar/dist/es2015/medium.js")._)(),J=function(){},Z=d.forwardRef(function(e,t){var n=d.useRef(null),r=d.useState({onScrollCapture:J,onWheelCapture:J,onTouchMoveCapture:J}),o=r[0],i=r[1],l=e.forwardProps,a=e.children,u=e.className,s=e.removeScrollBar,c=e.enabled,f=e.shards,p=e.sideCar,m=e.noIsolation,v=e.inert,h=e.allowPinchZoom,g=e.as,b=(0,G._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),y=(0,V.q)([n,t]),E=(0,G.pi)((0,G.pi)({},b),o);return d.createElement(d.Fragment,null,c&&d.createElement(p,{sideCar:Y,removeScrollBar:s,shards:f,noIsolation:m,inert:v,setCallbacks:i,allowPinchZoom:!!h,lockRef:n}),l?d.cloneElement(d.Children.only(a),(0,G.pi)((0,G.pi)({},E),{ref:y})):d.createElement(void 0===g?"div":g,(0,G.pi)({},E,{className:u,ref:y}),a))});Z.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Z.classNames={fullWidth:H.zi,zeroRight:H.pF};var X=n("./node_modules/use-sidecar/dist/es2015/exports.js"),Q=n("./node_modules/react-remove-scroll-bar/dist/es2015/index.js"),ee=n("./node_modules/react-style-singleton/dist/es2015/index.js"),et=!1;if("undefined"!=typeof window)try{var en=Object.defineProperty({},"passive",{get:function(){return et=!0,!0}});window.addEventListener("test",en,en),window.removeEventListener("test",en,en)}catch(e){et=!1}var er=!!et&&{passive:!1},eo=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},ei=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),el(e,n)){var r=ea(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},el=function(e,t){return"v"===e?eo(t,"overflowY"):eo(t,"overflowX")},ea=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},eu=function(e,t,n,r,o){var i,l=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),a=l*r,u=n.target,s=t.contains(u),c=!1,d=a>0,f=0,p=0;do{var m=ea(e,u),v=m[0],h=m[1]-m[2]-l*v;(v||h)&&el(e,u)&&(f+=h,p+=v),u=u.parentNode}while(!s&&u!==document.body||s&&(t.contains(u)||t===u));return d&&(o&&0===f||!o&&a>f)?c=!0:!d&&(o&&0===p||!o&&-a>p)&&(c=!0),c},es=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ec=function(e){return[e.deltaX,e.deltaY]},ed=function(e){return e&&"current"in e?e.current:e},ef=0,ep=[],em=(0,X.L)(Y,function(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState(ef++)[0],i=d.useState(function(){return(0,ee.Ws)()})[0],l=d.useRef(e);d.useEffect(function(){l.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(0,G.ev)([e.lockRef.current],(e.shards||[]).map(ed),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=d.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!l.current.allowPinchZoom;var o,i=es(e),a=n.current,u="deltaX"in e?e.deltaX:a[0]-i[0],s="deltaY"in e?e.deltaY:a[1]-i[1],c=e.target,d=Math.abs(u)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=ei(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=ei(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||s)&&(r.current=o),!o)return!0;var p=r.current||o;return eu(p,t,e,"h"===p?u:s,!0)},[]),u=d.useCallback(function(e){if(ep.length&&ep[ep.length-1]===i){var n="deltaY"in e?ec(e):es(e),r=t.current.filter(function(t){var r;return t.name===e.type&&t.target===e.target&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(l.current.shards||[]).map(ed).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?a(e,o[0]):!l.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),s=d.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),c=d.useCallback(function(e){n.current=es(e),r.current=void 0},[]),f=d.useCallback(function(t){s(t.type,ec(t),t.target,a(t,e.lockRef.current))},[]),p=d.useCallback(function(t){s(t.type,es(t),t.target,a(t,e.lockRef.current))},[]);d.useEffect(function(){return ep.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,er),document.addEventListener("touchmove",u,er),document.addEventListener("touchstart",c,er),function(){ep=ep.filter(function(e){return e!==i}),document.removeEventListener("wheel",u,er),document.removeEventListener("touchmove",u,er),document.removeEventListener("touchstart",c,er)}},[]);var m=e.removeScrollBar,v=e.inert;return d.createElement(d.Fragment,null,v?d.createElement(i,{styles:"\n  .block-interactivity-".concat(o," {pointer-events: none;}\n  .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,m?d.createElement(Q.jp,{gapMode:"margin"}):null)}),ev=d.forwardRef(function(e,t){return d.createElement(Z,(0,G.pi)({},e,{ref:t,sideCar:em}))});ev.classNames=Z.classNames;var eh=n("./node_modules/aria-hidden/dist/es2015/index.js");let eg="Dialog",[eb,ey]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>(0,d.createContext)(e));return function(n){let r=(null==n?void 0:n[e])||t;return(0,d.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let o=(0,d.createContext)(r),i=n.length;function l(t){let{scope:n,children:r,...l}=t,a=(null==n?void 0:n[e][i])||o,u=(0,d.useMemo)(()=>l,Object.values(l));return(0,d.createElement)(a.Provider,{value:u},r)}return n=[...n,r],l.displayName=t+"Provider",[l,function(n,l){let a=(null==l?void 0:l[e][i])||o,u=(0,d.useContext)(a);if(u)return u;if(void 0!==r)return r;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 r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return(0,d.useMemo)(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(eg),[eE,ew]=eb(eg),ex="DialogPortal",[eS,eC]=eb(ex,{forceMount:void 0}),eD="DialogOverlay",eO=(0,d.forwardRef)((e,t)=>{let n=eC(eD,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=ew(eD,e.__scopeDialog);return i.modal?(0,d.createElement)(B,{present:r||i.open},(0,d.createElement)(ek,c({},o,{ref:t}))):null}),ek=(0,d.forwardRef)((e,t)=>{let{__scopeDialog:n,...r}=e,o=ew(eD,n);return(0,d.createElement)(ev,{as:x,allowPinchZoom:!0,shards:[o.contentRef]},(0,d.createElement)(O.div,c({"data-state":eM(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),eA="DialogContent",eP=(0,d.forwardRef)((e,t)=>{let n=eC(eA,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=ew(eA,e.__scopeDialog);return(0,d.createElement)(B,{present:r||i.open},i.modal?(0,d.createElement)(eR,c({},o,{ref:t})):(0,d.createElement)(ej,c({},o,{ref:t})))}),eR=(0,d.forwardRef)((e,t)=>{let n=ew(eA,e.__scopeDialog),r=(0,d.useRef)(null),o=v(t,n.contentRef,r);return(0,d.useEffect)(()=>{let e=r.current;if(e)return(0,eh.Ry)(e)},[]),(0,d.createElement)(eI,c({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:p(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:p(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:p(e.onFocusOutside,e=>e.preventDefault())}))}),ej=(0,d.forwardRef)((e,t)=>{let n=ew(eA,e.__scopeDialog),r=(0,d.useRef)(!1),o=(0,d.useRef)(!1);return(0,d.createElement)(eI,c({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,l;null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current||null===(l=n.triggerRef.current)||void 0===l||l.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{var i,l;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"!==t.detail.originalEvent.type||(o.current=!0));let a=t.target;(null===(l=n.triggerRef.current)||void 0===l?void 0:l.contains(a))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}}))}),eI=(0,d.forwardRef)((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...l}=e,a=ew(eA,n),u=v(t,(0,d.useRef)(null));return(0,d.useEffect)(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:q()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:q()),W++,()=>{1===W&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),W--}},[]),(0,d.createElement)(d.Fragment,null,(0,d.createElement)(F,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},(0,d.createElement)(P,c({role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":eM(a.open)},l,{ref:u,onDismiss:()=>a.onOpenChange(!1)}))),!1)});function eM(e){return e?"open":"closed"}let[ez,eF]=function(e,t){let n=(0,d.createContext)(t);function r(e){let{children:t,...r}=e,o=(0,d.useMemo)(()=>r,Object.values(r));return(0,d.createElement)(n.Provider,{value:o},t)}return r.displayName=e+"Provider",[r,function(r){let o=(0,d.useContext)(n);if(o)return o;if(void 0!==t)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}]}("DialogTitleWarning",{contentName:eA,titleName:"DialogTitle",docsSlug:"dialog"}),eL=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:l=!0}=e,a=(0,d.useRef)(null),u=(0,d.useRef)(null),[s=!1,c]=function({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,o]=function({defaultProp:e,onChange:t}){let n=(0,d.useState)(e),[r]=n,o=(0,d.useRef)(r),i=E(t);return(0,d.useEffect)(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}({defaultProp:t,onChange:n}),i=void 0!==e,l=i?e:r,a=E(n);return[l,(0,d.useCallback)(t=>{if(i){let n="function"==typeof t?t(e):t;n!==e&&a(n)}else o(t)},[i,e,o,a])]}({prop:r,defaultProp:o,onChange:i});return(0,d.createElement)(eE,{scope:t,triggerRef:a,contentRef:u,contentId:y(),titleId:y(),descriptionId:y(),open:s,onOpenChange:c,onOpenToggle:(0,d.useCallback)(()=>c(e=>!e),[c]),modal:l},n)},eN=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=ew(ex,t);return(0,d.createElement)(eS,{scope:t,forceMount:n},d.Children.map(r,e=>(0,d.createElement)(B,{present:n||i.open},(0,d.createElement)(K,{asChild:!0,container:o},e))))};var eT='[cmdk-group=""]',e_='[cmdk-group-items=""]',e$='[cmdk-item=""]',eK=`${e$}:not([aria-disabled="true"])`,eB="cmdk-item-select",eU="data-value",eW=(e,t,n)=>{var r;return r=e,function e(t,n,r,o,s,c,d){if(c===n.length)return s===t.length?1:.99;var f=`${s},${c}`;if(void 0!==d[f])return d[f];for(var p,m,v,h,g=o.charAt(c),b=r.indexOf(g,s),y=0;b>=0;)(p=e(t,n,r,o,b+1,c+1,d))>y&&(b===s?p*=1:i.test(t.charAt(b-1))?(p*=.8,(v=t.slice(s,b-1).match(l))&&s>0&&(p*=Math.pow(.999,v.length))):a.test(t.charAt(b-1))?(p*=.9,(h=t.slice(s,b-1).match(u))&&s>0&&(p*=Math.pow(.999,h.length))):(p*=.17,s>0&&(p*=Math.pow(.999,b-s))),t.charAt(b)!==n.charAt(c)&&(p*=.9999)),(p<.1&&r.charAt(b-1)===o.charAt(c+1)||o.charAt(c+1)===o.charAt(c)&&r.charAt(b-1)!==o.charAt(c))&&.1*(m=e(t,n,r,o,b+1,c+2,d))>p&&(p=.1*m),p>y&&(y=p),b=r.indexOf(g,b+1);return d[f]=y,y}(r=n&&n.length>0?`${r+" "+n.join(" ")}`:r,t,s(r),s(t),0,0,{})},eq=d.createContext(void 0),eG=()=>d.useContext(eq),eH=d.createContext(void 0),eV=()=>d.useContext(eH),eY=d.createContext(void 0),eJ=d.forwardRef((e,t)=>{let n=e4(()=>{var t,n;return{search:"",value:null!=(n=null!=(t=e.value)?t:e.defaultValue)?n:"",filtered:{count:0,items:new Map,groups:new Set}}}),r=e4(()=>new Set),o=e4(()=>new Map),i=e4(()=>new Map),l=e4(()=>new Set),a=e9(e),{label:u,children:s,value:c,onValueChange:f,filter:p,shouldFilter:m,loop:v,disablePointerSelection:h=!1,vimBindings:g=!0,...b}=e,y=d.useId(),E=d.useId(),w=d.useId(),x=d.useRef(null),S=te();e5(()=>{if(void 0!==c){let e=c.trim();n.current.value=e,C.emit()}},[c]),e5(()=>{S(6,j)},[]);let C=d.useMemo(()=>({subscribe:e=>(l.current.add(e),()=>l.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var o,i,l;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)R(),A(),S(1,P);else if("value"===e&&(r||S(5,j),(null==(o=a.current)?void 0:o.value)!==void 0)){null==(l=(i=a.current).onValueChange)||l.call(i,null!=t?t:"");return}C.emit()}},emit:()=>{l.current.forEach(e=>e())}}),[]),D=d.useMemo(()=>({value:(e,t,r)=>{var o;t!==(null==(o=i.current.get(e))?void 0:o.value)&&(i.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,k(t,r)),S(2,()=>{A(),C.emit()}))},item:(e,t)=>(r.current.add(e),t&&(o.current.has(t)?o.current.get(t).add(e):o.current.set(t,new Set([e]))),S(3,()=>{R(),A(),n.current.value||P(),C.emit()}),()=>{i.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);let t=I();S(4,()=>{R(),(null==t?void 0:t.getAttribute("id"))===e&&P(),C.emit()})}),group:e=>(o.current.has(e)||o.current.set(e,new Set),()=>{i.current.delete(e),o.current.delete(e)}),filter:()=>a.current.shouldFilter,label:u||e["aria-label"],disablePointerSelection:h,listId:y,inputId:w,labelId:E,listInnerRef:x}),[]);function k(e,t){var r,o;let i=null!=(o=null==(r=a.current)?void 0:r.filter)?o:eW;return e?i(e,n.current.search,t):0}function A(){if(!n.current.search||!1===a.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach(n=>{let r=o.current.get(n),i=0;r.forEach(t=>{i=Math.max(e.get(t),i)}),t.push([n,i])});let r=x.current;M().sort((t,n)=>{var r,o;let i=t.getAttribute("id"),l=n.getAttribute("id");return(null!=(r=e.get(l))?r:0)-(null!=(o=e.get(i))?o:0)}).forEach(e=>{let t=e.closest(e_);t?t.appendChild(e.parentElement===t?e:e.closest(`${e_} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${e_} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{let t=x.current.querySelector(`${eT}[${eU}="${encodeURIComponent(e[0])}"]`);null==t||t.parentElement.appendChild(t)})}function P(){let e=M().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(eU);C.setState("value",t||void 0)}function R(){var e,t,l,u;if(!n.current.search||!1===a.current.shouldFilter){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let s=0;for(let o of r.current){let r=k(null!=(t=null==(e=i.current.get(o))?void 0:e.value)?t:"",null!=(u=null==(l=i.current.get(o))?void 0:l.keywords)?u:[]);n.current.filtered.items.set(o,r),r>0&&s++}for(let[e,t]of o.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=s}function j(){var e,t,n;let r=I();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(eT))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function I(){var e;return null==(e=x.current)?void 0:e.querySelector(`${e$}[aria-selected="true"]`)}function M(){var e;return Array.from(null==(e=x.current)?void 0:e.querySelectorAll(eK))}function z(e){let t=M()[e];t&&C.setState("value",t.getAttribute(eU))}function F(e){var t;let n=I(),r=M(),o=r.findIndex(e=>e===n),i=r[o+e];null!=(t=a.current)&&t.loop&&(i=o+e<0?r[r.length-1]:o+e===r.length?r[0]:r[o+e]),i&&C.setState("value",i.getAttribute(eU))}function L(e){let t=I(),n=null==t?void 0:t.closest(eT),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,eT):function(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}(n,eT))?void 0:n.querySelector(eK);r?C.setState("value",r.getAttribute(eU)):F(e)}let N=()=>z(M().length-1),T=e=>{e.preventDefault(),e.metaKey?N():e.altKey?L(1):F(1)},_=e=>{e.preventDefault(),e.metaKey?z(0):e.altKey?L(-1):F(-1)};return d.createElement(O.div,{ref:t,tabIndex:-1,...b,"cmdk-root":"",onKeyDown:e=>{var t;if(null==(t=b.onKeyDown)||t.call(b,e),!e.defaultPrevented)switch(e.key){case"n":case"j":g&&e.ctrlKey&&T(e);break;case"ArrowDown":T(e);break;case"p":case"k":g&&e.ctrlKey&&_(e);break;case"ArrowUp":_(e);break;case"Home":e.preventDefault(),z(0);break;case"End":e.preventDefault(),N();break;case"Enter":if(!e.nativeEvent.isComposing&&229!==e.keyCode){e.preventDefault();let t=I();if(t){let e=new Event(eB);t.dispatchEvent(e)}}}}},d.createElement("label",{"cmdk-label":"",htmlFor:D.inputId,id:D.labelId,style:tn},u),tt(e,e=>d.createElement(eH.Provider,{value:C},d.createElement(eq.Provider,{value:D},e))))}),eZ=d.forwardRef((e,t)=>{var n,r;let o=d.useId(),i=d.useRef(null),l=d.useContext(eY),a=eG(),u=e9(e),s=null!=(r=null==(n=u.current)?void 0:n.forceMount)?r:null==l?void 0:l.forceMount;e5(()=>{if(!s)return a.item(o,null==l?void 0:l.id)},[s]);let c=e7(o,i,[e.value,e.children,i],e.keywords),f=eV(),p=e8(e=>e.value&&e.value===c.current),m=e8(e=>!!s||!1===a.filter()||!e.search||e.filtered.items.get(o)>0);function v(){var e,t;h(),null==(t=(e=u.current).onSelect)||t.call(e,c.current)}function h(){f.setState("value",c.current,!0)}if(d.useEffect(()=>{let t=i.current;if(!(!t||e.disabled))return t.addEventListener(eB,v),()=>t.removeEventListener(eB,v)},[m,e.onSelect,e.disabled]),!m)return null;let{disabled:g,value:b,onSelect:y,forceMount:E,keywords:w,...x}=e;return d.createElement(O.div,{ref:e6([i,t]),...x,id:o,"cmdk-item":"",role:"option","aria-disabled":!!g,"aria-selected":!!p,"data-disabled":!!g,"data-selected":!!p,onPointerMove:g||a.disablePointerSelection?void 0:h,onClick:g?void 0:v},e.children)}),eX=d.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...i}=e,l=d.useId(),a=d.useRef(null),u=d.useRef(null),s=d.useId(),c=eG(),f=e8(e=>!!o||!1===c.filter()||!e.search||e.filtered.groups.has(l));e5(()=>c.group(l),[]),e7(l,a,[e.value,e.heading,u]);let p=d.useMemo(()=>({id:l,forceMount:o}),[o]);return d.createElement(O.div,{ref:e6([a,t]),...i,"cmdk-group":"",role:"presentation",hidden:!f||void 0},n&&d.createElement("div",{ref:u,"cmdk-group-heading":"","aria-hidden":!0,id:s},n),tt(e,e=>d.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?s:void 0},d.createElement(eY.Provider,{value:p},e))))}),eQ=d.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=d.useRef(null),i=e8(e=>!e.search);return n||i?d.createElement(O.div,{ref:e6([o,t]),...r,"cmdk-separator":"",role:"separator"}):null}),e0=d.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=null!=e.value,i=eV(),l=e8(e=>e.search),a=e8(e=>e.value),u=eG(),s=d.useMemo(()=>{var e;let t=null==(e=u.listInnerRef.current)?void 0:e.querySelector(`${e$}[${eU}="${encodeURIComponent(a)}"]`);return null==t?void 0:t.getAttribute("id")},[]);return d.useEffect(()=>{null!=e.value&&i.setState("search",e.value)},[e.value]),d.createElement(O.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":u.listId,"aria-labelledby":u.labelId,"aria-activedescendant":s,id:u.inputId,type:"text",value:o?e.value:l,onChange:e=>{o||i.setState("search",e.target.value),null==n||n(e.target.value)}})}),e1=d.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,i=d.useRef(null),l=d.useRef(null),a=eG();return d.useEffect(()=>{if(l.current&&i.current){let e=l.current,t=i.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)}}},[]),d.createElement(O.div,{ref:e6([i,t]),...o,"cmdk-list":"",role:"listbox","aria-label":r,id:a.listId},tt(e,e=>d.createElement("div",{ref:e6([l,a.listInnerRef]),"cmdk-list-sizer":""},e)))}),e2=d.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:i,container:l,...a}=e;return d.createElement(eL,{open:n,onOpenChange:r},d.createElement(eN,{container:l},d.createElement(eO,{"cmdk-overlay":"",className:o}),d.createElement(eP,{"aria-label":e.label,"cmdk-dialog":"",className:i},d.createElement(eJ,{ref:t,...a}))))}),e3=Object.assign(eJ,{List:e1,Item:eZ,Input:e0,Group:eX,Separator:eQ,Dialog:e2,Empty:d.forwardRef((e,t)=>e8(e=>0===e.filtered.count)?d.createElement(O.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:d.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...i}=e;return d.createElement(O.div,{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},tt(e,e=>d.createElement("div",{"aria-hidden":!0},e)))})});function e9(e){let t=d.useRef(e);return e5(()=>{t.current=e}),t}var e5="undefined"==typeof window?d.useEffect:d.useLayoutEffect;function e4(e){let t=d.useRef();return void 0===t.current&&(t.current=e()),t}function e6(e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}function e8(e){let t=eV(),n=()=>e(t.snapshot());return d.useSyncExternalStore(t.subscribe,n,n)}function e7(e,t,n,r=[]){let o=d.useRef(),i=eG();return e5(()=>{var l;let a=(()=>{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():o.current}})(),u=r.map(e=>e.trim());i.value(e,a,u),null==(l=t.current)||l.setAttribute(eU,a),o.current=a}),o}var te=()=>{let[e,t]=d.useState(),n=e4(()=>new Map);return e5(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}};function tt({asChild:e,children:t},n){let r;return e&&d.isValidElement(t)?d.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 tn={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}},
vendor: 1,452 bytes, line 1
1"./node_modules/zustand/esm/index.mjs":function(e,t,n){n.d(t,{Ue:function(){return f}});let r=e=>{let t;let n=new Set,r=(e,r)=>{let o="function"==typeof e?e(t):e;if(!Object.is(o,t)){let e=t;t=(null!=r?r:"object"!=typeof o||null===o)?o:Object.assign({},t,o),n.forEach(n=>n(t,e))}},o=()=>t,i={setState:r,getState:o,getInitialState:()=>l,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},l=t=e(r,o,i);return i},o=e=>e?r(e):r;var i=n("./node_modules/react/index.js"),l=n("./node_modules/use-sync-external-store/shim/with-selector.js");let{useDebugValue:a}=i,{useSyncExternalStoreWithSelector:u}=l,s=!1,c=e=>e,d=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");let t="function"==typeof e?o(e):e,n=(e,n)=>(function(e,t=c,n){n&&!s&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),s=!0);let r=u(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return a(r),r})(t,e,n);return Object.assign(n,t),n},f=e=>e?d(e):d}
1}]);

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.