@ms-cloudpack/overlay 0.19.9 → 0.19.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser-esm/639.chunk.js +1 -1
- package/dist/browser-esm/639.chunk.js.map +1 -1
- package/dist/browser-esm/lib/index.js +1 -1
- package/dist/browser-esm/lib/index.js.map +1 -1
- package/lib/components/ErrorDialog/useErrorEvents.d.ts.map +1 -1
- package/lib/components/ErrorDialog/useErrorEvents.js +3 -2
- package/lib/components/ErrorDialog/useErrorEvents.js.map +1 -1
- package/lib/components/StatusDialog/TaskStatus.js +1 -1
- package/lib/components/StatusDialog/TaskStatus.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
-
export const __webpack_id__=293;export const __webpack_ids__=[250,293];export const __webpack_modules__={15:(e,t,n)=>{n.d(t,{CloudpackProvider:()=>i,useCloudpack:()=>u});var r=n(821),a=n(552),s=n(790);const o=(0,a.createContext)(null),i=e=>{const{client:t,children:n}=e;return(0,r.jsx)(o.Provider,{value:t,children:n})},u=()=>(0,s.useContext)(o)},25:e=>{e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),a="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),s="/*# ".concat(a," */");return[t].concat([s]).join("\n")}return[t].join("\n")}},91:(e,t,n)=>{n.d(t,{Button:()=>x});var r=n(821),a=n(104),s=n.n(a),o=n(606),i=n.n(o),u=n(607),c=n.n(u),l=n(437),d=n.n(l),p=n(750),f=n.n(p),h=n(994),m=n.n(h),_=n(415),g=n.n(_),v=n(784),y={};y.styleTagTransform=g(),y.setAttributes=f(),y.insert=d().bind(null,"head"),y.domAPI=c(),y.insertStyleElement=m(),i()(v.default,y);const A=v.default&&v.default.locals?v.default.locals:void 0,b=["default","primary","iconOnly"],x=e=>{const{variant:t="default",iconName:n,iconAlt:a,children:o,class:i,...u}=e,c=s()(A.root,b.includes(t)&&A.standard,A[t],("primary"===t||"default"===t)&&A.defaultPrimary,i),l="close"===n?"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIuMzk3MDUgMi41NTM3OUwyLjQ2OTY3IDIuNDY5NjdDMi43MzU5NCAyLjIwMzQgMy4xNTI2IDIuMTc5MiAzLjQ0NjIxIDIuMzk3MDVMMy41MzAzMyAyLjQ2OTY3TDggNi45MzlMMTIuNDY5NyAyLjQ2OTY3QzEyLjc2MjYgMi4xNzY3OCAxMy4yMzc0IDIuMTc2NzggMTMuNTMwMyAyLjQ2OTY3QzEzLjgyMzIgMi43NjI1NiAxMy44MjMyIDMuMjM3NDQgMTMuNTMwMyAzLjUzMDMzTDkuMDYxIDhMMTMuNTMwMyAxMi40Njk3QzEzLjc5NjYgMTIuNzM1OSAxMy44MjA4IDEzLjE1MjYgMTMuNjAyOSAxMy40NDYyTDEzLjUzMDMgMTMuNTMwM0MxMy4yNjQxIDEzLjc5NjYgMTIuODQ3NCAxMy44MjA4IDEyLjU1MzggMTMuNjAyOUwxMi40Njk3IDEzLjUzMDNMOCA5LjA2MUwzLjUzMDMzIDEzLjUzMDNDMy4yMzc0NCAxMy44MjMyIDIuNzYyNTYgMTMuODIzMiAyLjQ2OTY3IDEzLjUzMDNDMi4xNzY3OCAxMy4yMzc0IDIuMTc2NzggMTIuNzYyNiAyLjQ2OTY3IDEyLjQ2OTdMNi45MzkgOEwyLjQ2OTY3IDMuNTMwMzNDMi4yMDM0IDMuMjY0MDYgMi4xNzkyIDIuODQ3NCAyLjM5NzA1IDIuNTUzNzlMMi40Njk2NyAyLjQ2OTY3TDIuMzk3MDUgMi41NTM3OVoiIGZpbGw9IiMyMTIxMjEiLz4KPC9zdmc+Cg==":"refresh"===n?"primary"===t?"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgMTBDNCA2LjY4NjI5IDYuNjg2MjkgNCAxMCA0QzExLjUyMTMgNCAxMi45MTA3IDQuNTY1OTIgMTMuOTY4OSA1LjVIMTIuNzVDMTIuMzM1OCA1LjUgMTIgNS44MzU3OSAxMiA2LjI1QzEyIDYuNjY0MjEgMTIuMzM1OCA3IDEyLjc1IDdIMTUuNzVDMTYuMTY0MiA3IDE2LjUgNi42NjQyMSAxNi41IDYuMjVWMy4yNUMxNi41IDIuODM1NzkgMTYuMTY0MiAyLjUgMTUuNzUgMi41QzE1LjMzNTggMi41IDE1IDIuODM1NzkgMTUgMy4yNVY0LjQwOTg3QzEzLjY3MzYgMy4yMjI3NCAxMS45MjEzIDIuNSAxMCAyLjVDNS44NTc4NiAyLjUgMi41IDUuODU3ODYgMi41IDEwQzIuNSAxNC4xNDIxIDUuODU3ODYgMTcuNSAxMCAxNy41QzE0LjE0MjEgMTcuNSAxNy41IDE0LjE0MjEgMTcuNSAxMEMxNy41IDkuOTA3MTUgMTcuNDk4MyA5LjgxNDY3IDE3LjQ5NSA5LjcyMjU4QzE3LjQ3OTkgOS4zMDg2NCAxNy4xMzIxIDguOTg1MyAxNi43MTgxIDkuMDAwMzhDMTYuMzA0MiA5LjAxNTQ2IDE1Ljk4MDkgOS4zNjMyNCAxNS45OTU5IDkuNzc3MThDMTUuOTk4NiA5Ljg1MTA5IDE2IDkuOTI1MzcgMTYgMTBDMTYgMTMuMzEzNyAxMy4zMTM3IDE2IDEwIDE2QzYuNjg2MjkgMTYgNCAxMy4zMTM3IDQgMTBaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgMTBDNCA2LjY4NjI5IDYuNjg2MjkgNCAxMCA0QzExLjUyMTMgNCAxMi45MTA3IDQuNTY1OTIgMTMuOTY4OSA1LjVIMTIuNzVDMTIuMzM1OCA1LjUgMTIgNS44MzU3OSAxMiA2LjI1QzEyIDYuNjY0MjEgMTIuMzM1OCA3IDEyLjc1IDdIMTUuNzVDMTYuMTY0MiA3IDE2LjUgNi42NjQyMSAxNi41IDYuMjVWMy4yNUMxNi41IDIuODM1NzkgMTYuMTY0MiAyLjUgMTUuNzUgMi41QzE1LjMzNTggMi41IDE1IDIuODM1NzkgMTUgMy4yNVY0LjQwOTg3QzEzLjY3MzYgMy4yMjI3NCAxMS45MjEzIDIuNSAxMCAyLjVDNS44NTc4NiAyLjUgMi41IDUuODU3ODYgMi41IDEwQzIuNSAxNC4xNDIxIDUuODU3ODYgMTcuNSAxMCAxNy41QzE0LjE0MjEgMTcuNSAxNy41IDE0LjE0MjEgMTcuNSAxMEMxNy41IDkuOTA3MTUgMTcuNDk4MyA5LjgxNDY3IDE3LjQ5NSA5LjcyMjU4QzE3LjQ3OTkgOS4zMDg2NCAxNy4xMzIxIDguOTg1MyAxNi43MTgxIDkuMDAwMzhDMTYuMzA0MiA5LjAxNTQ2IDE1Ljk4MDkgOS4zNjMyNCAxNS45OTU5IDkuNzc3MThDMTUuOTk4NiA5Ljg1MTA5IDE2IDkuOTI1MzcgMTYgMTBDMTYgMTMuMzEzNyAxMy4zMTM3IDE2IDEwIDE2QzYuNjg2MjkgMTYgNCAxMy4zMTM3IDQgMTBaIiBmaWxsPSIjMjEyMTIxIi8+Cjwvc3ZnPgo=":void 0;return(0,r.jsxs)("button",{type:"button",...u,class:c,children:[l&&(0,r.jsx)("img",{src:l,alt:a||""}),!!n&&"iconOnly"!==t&&" ",o]})}},104:(e,t)=>{var n;!function(){var r={}.hasOwnProperty;function a(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=o(e,s(n)))}return e}function s(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return a.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=o(t,n));return t}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},116:(e,t,n)=>{n.d(t,{elementIds:()=>r});const r={root:"cloudpack-overlay-root",errorDialogRoot:"cloudpack-overlay-error-dialog",statusDialogRoot:"cloudpack-overlay-status-dialog",dialogTitle:"cloudpack-overlay-dialog-title",statusBadgeRoot:"cloudpack-overlay-status-badge"}},191:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,r,a,s){"string"==typeof e&&(e=[[null,e,void 0]]);var o={};if(r)for(var i=0;i<this.length;i++){var u=this[i][0];null!=u&&(o[u]=!0)}for(var c=0;c<e.length;c++){var l=[].concat(e[c]);r&&o[l[0]]||(void 0!==s&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=s),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),a&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=a):l[4]="".concat(a)),t.push(l))}},t}},206:(e,t,n)=>{n.d(t,{default:()=>i});var r=n(25),a=n.n(r),s=n(191),o=n.n(s)()(a());o.push([e.id,".gdQ8B3jDk05JWm9DGH1X {\n font-family:\n Inter,\n -apple-system,\n BlinkMacSystemFont,\n 'Segoe UI',\n Roboto,\n Oxygen,\n Ubuntu,\n Cantarell,\n 'Fira Sans',\n 'Droid Sans',\n 'Helvetica Neue',\n sans-serif;\n\n /* these are currently based on fluent v8 colors https://developer.microsoft.com/en-us/fluentui#/styles/web/colors/theme-slots */\n --cp-themePrimary: #0078d4;\n --cp-themeDarkAlt: #106ebe; /* button hover */\n --cp-themeDark: #005a9e; /* button active */\n --cp-themeDarker: #004578; /* link hover */\n --cp-neutralDark: #201f1e;\n --cp-neutralPrimary: #323130;\n --cp-neutralSecondary: #605e5c;\n --cp-neutralSecondaryAlt: #8a8886;\n --cp-neutralTertiaryAlt: #c8c6c4;\n --cp-neutralLight: #edebe9;\n --cp-neutralLighter: #f3f2f1;\n --cp-neutralLighterAlt: #faf9f8;\n\n /* most borders except accordion items */\n --cp-border: var(--cp-neutralSecondaryAlt);\n /* accordion item, dialog header/task list divider */\n --cp-borderSubtle: var(--cp-neutralTertiaryAlt);\n\n /* Status colors. (To edit the ramp while keeping the hue the same, the easiest way is to\n use the VS Code color picker to temporarily convert to HSL.) */\n --cp-errorDark: #a4262c; /* also hardcoded in error icon SVG */\n --cp-errorMed: #ffb8b8;\n --cp-errorLight: #ffebeb;\n --cp-errorTransparent: rgba(220, 0, 0, 0.2);\n --cp-warningDark: #b88700; /* also hardcoded in warning icon SVG */\n --cp-warningMed: #e6cd89;\n --cp-warningLight: #fffaeb;\n --cp-warningTransparent: rgba(255, 226, 148, 0.3);\n /* the success icon SVG dark green is #00aa00 */\n --cp-successMed: #7ad17a;\n --cp-successLight: #e9f9e9;\n\n --cp-outline: 2px solid black;\n\n --cp-zIndexDialog: 99999;\n --cp-zIndexBadge: 99998;\n\n /* default child styles */\n color: var(--cp-neutralPrimary);\n font-size: 14px;\n font-weight: 400;\n}\n","",{version:3,sources:["webpack://./src/components/ThemeProvider/ThemeProvider.module.css"],names:[],mappings:"AAAA;EACE;;;;;;;;;;;;cAYY;;EAEZ,gIAAgI;EAChI,0BAA0B;EAC1B,0BAA0B,EAAE,iBAAiB;EAC7C,uBAAuB,EAAE,kBAAkB;EAC3C,yBAAyB,EAAE,eAAe;EAC1C,yBAAyB;EACzB,4BAA4B;EAC5B,8BAA8B;EAC9B,iCAAiC;EACjC,gCAAgC;EAChC,0BAA0B;EAC1B,4BAA4B;EAC5B,+BAA+B;;EAE/B,wCAAwC;EACxC,0CAA0C;EAC1C,oDAAoD;EACpD,+CAA+C;;EAE/C;gEAC8D;EAC9D,uBAAuB,EAAE,qCAAqC;EAC9D,sBAAsB;EACtB,wBAAwB;EACxB,2CAA2C;EAC3C,yBAAyB,EAAE,uCAAuC;EAClE,wBAAwB;EACxB,0BAA0B;EAC1B,iDAAiD;EACjD,+CAA+C;EAC/C,wBAAwB;EACxB,0BAA0B;;EAE1B,6BAA6B;;EAE7B,wBAAwB;EACxB,uBAAuB;;EAEvB,yBAAyB;EACzB,+BAA+B;EAC/B,eAAe;EACf,gBAAgB;AAClB",sourcesContent:[".root {\n font-family:\n Inter,\n -apple-system,\n BlinkMacSystemFont,\n 'Segoe UI',\n Roboto,\n Oxygen,\n Ubuntu,\n Cantarell,\n 'Fira Sans',\n 'Droid Sans',\n 'Helvetica Neue',\n sans-serif;\n\n /* these are currently based on fluent v8 colors https://developer.microsoft.com/en-us/fluentui#/styles/web/colors/theme-slots */\n --cp-themePrimary: #0078d4;\n --cp-themeDarkAlt: #106ebe; /* button hover */\n --cp-themeDark: #005a9e; /* button active */\n --cp-themeDarker: #004578; /* link hover */\n --cp-neutralDark: #201f1e;\n --cp-neutralPrimary: #323130;\n --cp-neutralSecondary: #605e5c;\n --cp-neutralSecondaryAlt: #8a8886;\n --cp-neutralTertiaryAlt: #c8c6c4;\n --cp-neutralLight: #edebe9;\n --cp-neutralLighter: #f3f2f1;\n --cp-neutralLighterAlt: #faf9f8;\n\n /* most borders except accordion items */\n --cp-border: var(--cp-neutralSecondaryAlt);\n /* accordion item, dialog header/task list divider */\n --cp-borderSubtle: var(--cp-neutralTertiaryAlt);\n\n /* Status colors. (To edit the ramp while keeping the hue the same, the easiest way is to\n use the VS Code color picker to temporarily convert to HSL.) */\n --cp-errorDark: #a4262c; /* also hardcoded in error icon SVG */\n --cp-errorMed: #ffb8b8;\n --cp-errorLight: #ffebeb;\n --cp-errorTransparent: rgba(220, 0, 0, 0.2);\n --cp-warningDark: #b88700; /* also hardcoded in warning icon SVG */\n --cp-warningMed: #e6cd89;\n --cp-warningLight: #fffaeb;\n --cp-warningTransparent: rgba(255, 226, 148, 0.3);\n /* the success icon SVG dark green is #00aa00 */\n --cp-successMed: #7ad17a;\n --cp-successLight: #e9f9e9;\n\n --cp-outline: 2px solid black;\n\n --cp-zIndexDialog: 99999;\n --cp-zIndexBadge: 99998;\n\n /* default child styles */\n color: var(--cp-neutralPrimary);\n font-size: 14px;\n font-weight: 400;\n}\n"],sourceRoot:""}]),o.locals={root:"gdQ8B3jDk05JWm9DGH1X"};const i=o},307:(e,t,n)=>{n.d(t,{errorEntrySource:()=>nn,reloadCountSource:()=>Xt,taskListSource:()=>tn,taskStatsSource:()=>en});var r,a,s={};n.r(s),n.d(s,{BRAND:()=>ze,DIRTY:()=>A,EMPTY_PATH:()=>_,INVALID:()=>y,NEVER:()=>Nt,OK:()=>b,ParseStatus:()=>v,Schema:()=>S,ZodAny:()=>ce,ZodArray:()=>fe,ZodBigInt:()=>re,ZodBoolean:()=>ae,ZodBranded:()=>Ze,ZodCatch:()=>Pe,ZodDate:()=>se,ZodDefault:()=>Be,ZodDiscriminatedUnion:()=>ve,ZodEffects:()=>Oe,ZodEnum:()=>je,ZodError:()=>l,ZodFirstPartyTypeKind:()=>$e,ZodFunction:()=>we,ZodIntersection:()=>Ae,ZodIssueCode:()=>u,ZodLazy:()=>Ee,ZodLiteral:()=>Me,ZodMap:()=>ke,ZodNaN:()=>Le,ZodNativeEnum:()=>Se,ZodNever:()=>de,ZodNull:()=>ue,ZodNullable:()=>Ie,ZodNumber:()=>ne,ZodObject:()=>me,ZodOptional:()=>De,ZodParsedType:()=>o,ZodPipeline:()=>Re,ZodPromise:()=>Ne,ZodReadonly:()=>Ue,ZodRecord:()=>xe,ZodSchema:()=>S,ZodSet:()=>Ce,ZodString:()=>ee,ZodSymbol:()=>oe,ZodTransformer:()=>Oe,ZodTuple:()=>be,ZodType:()=>S,ZodUndefined:()=>ie,ZodUnion:()=>_e,ZodUnknown:()=>le,ZodVoid:()=>pe,addIssueToContext:()=>g,any:()=>nt,array:()=>ot,bigint:()=>Ge,boolean:()=>Ke,coerce:()=>St,custom:()=>Ye,date:()=>Je,datetimeRegex:()=>G,defaultErrorMap:()=>d,discriminatedUnion:()=>lt,effect:()=>xt,enum:()=>yt,function:()=>_t,getErrorMap:()=>h,getParsedType:()=>i,instanceof:()=>He,intersection:()=>dt,isAborted:()=>x,isAsync:()=>w,isDirty:()=>k,isValid:()=>C,late:()=>Fe,lazy:()=>gt,literal:()=>vt,makeIssue:()=>m,map:()=>ht,nan:()=>Qe,nativeEnum:()=>At,never:()=>at,null:()=>tt,nullable:()=>Ct,number:()=>We,object:()=>it,objectUtil:()=>a,oboolean:()=>jt,onumber:()=>Tt,optional:()=>kt,ostring:()=>Mt,pipeline:()=>Et,preprocess:()=>wt,promise:()=>bt,quotelessJson:()=>c,record:()=>ft,set:()=>mt,setErrorMap:()=>f,strictObject:()=>ut,string:()=>Ve,symbol:()=>Xe,transformer:()=>xt,tuple:()=>pt,undefined:()=>et,union:()=>ct,unknown:()=>rt,util:()=>r,void:()=>st}),function(e){e.assertEqual=e=>{},e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const n of e)t[n]=n;return t},e.getValidEnumValues=t=>{const n=e.objectKeys(t).filter(e=>"number"!=typeof t[t[e]]),r={};for(const e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(const n of e)if(t(n))return n},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(r||(r={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(a||(a={}));const o=r.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),i=e=>{switch(typeof e){case"undefined":return o.undefined;case"string":return o.string;case"number":return Number.isNaN(e)?o.nan:o.number;case"boolean":return o.boolean;case"function":return o.function;case"bigint":return o.bigint;case"symbol":return o.symbol;case"object":return Array.isArray(e)?o.array:null===e?o.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?o.promise:"undefined"!=typeof Map&&e instanceof Map?o.map:"undefined"!=typeof Set&&e instanceof Set?o.set:"undefined"!=typeof Date&&e instanceof Date?o.date:o.object;default:return o.unknown}},u=r.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),c=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class l extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){const t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(const a of e.issues)if("invalid_union"===a.code)a.unionErrors.map(r);else if("invalid_return_type"===a.code)r(a.returnTypeError);else if("invalid_arguments"===a.code)r(a.argumentsError);else if(0===a.path.length)n._errors.push(t(a));else{let e=n,r=0;for(;r<a.path.length;){const n=a.path[r];r===a.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(a))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}static assert(e){if(!(e instanceof l))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,r.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){const t={},n=[];for(const r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}l.create=e=>new l(e);const d=(e,t)=>{let n;switch(e.code){case u.invalid_type:n=e.received===o.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case u.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,r.jsonStringifyReplacer)}`;break;case u.unrecognized_keys:n=`Unrecognized key(s) in object: ${r.joinValues(e.keys,", ")}`;break;case u.invalid_union:n="Invalid input";break;case u.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${r.joinValues(e.options)}`;break;case u.invalid_enum_value:n=`Invalid enum value. Expected ${r.joinValues(e.options)}, received '${e.received}'`;break;case u.invalid_arguments:n="Invalid function arguments";break;case u.invalid_return_type:n="Invalid function return type";break;case u.invalid_date:n="Invalid date";break;case u.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:r.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case u.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case u.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case u.custom:n="Invalid input";break;case u.invalid_intersection_types:n="Intersection results could not be merged";break;case u.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case u.not_finite:n="Number must be finite";break;default:n=t.defaultError,r.assertNever(e)}return{message:n}};let p=d;function f(e){p=e}function h(){return p}const m=e=>{const{data:t,path:n,errorMaps:r,issueData:a}=e,s=[...n,...a.path||[]],o={...a,path:s};if(void 0!==a.message)return{...a,path:s,message:a.message};let i="";const u=r.filter(e=>!!e).slice().reverse();for(const e of u)i=e(o,{data:t,defaultError:i}).message;return{...a,path:s,message:i}},_=[];function g(e,t){const n=h(),r=m({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===d?void 0:d].filter(e=>!!e)});e.common.issues.push(r)}class v{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const n=[];for(const r of t){if("aborted"===r.status)return y;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){const n=[];for(const e of t){const t=await e.key,r=await e.value;n.push({key:t,value:r})}return v.mergeObjectSync(e,n)}static mergeObjectSync(e,t){const n={};for(const r of t){const{key:t,value:a}=r;if("aborted"===t.status)return y;if("aborted"===a.status)return y;"dirty"===t.status&&e.dirty(),"dirty"===a.status&&e.dirty(),"__proto__"===t.value||void 0===a.value&&!r.alwaysSet||(n[t.value]=a.value)}return{status:e.value,value:n}}}const y=Object.freeze({status:"aborted"}),A=e=>({status:"dirty",value:e}),b=e=>({status:"valid",value:e}),x=e=>"aborted"===e.status,k=e=>"dirty"===e.status,C=e=>"valid"===e.status,w=e=>"undefined"!=typeof Promise&&e instanceof Promise;var E;!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:e?.message}(E||(E={}));class M{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const T=(e,t)=>{if(C(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new l(e.common.issues);return this._error=t,this._error}}};function j(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:a}=e;if(t&&(n||r))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:a}:{errorMap:(t,a)=>{const{message:s}=e;return"invalid_enum_value"===t.code?{message:s??a.defaultError}:void 0===a.data?{message:s??r??a.defaultError}:"invalid_type"!==t.code?{message:a.defaultError}:{message:s??n??a.defaultError}},description:a}}class S{get description(){return this._def.description}_getType(e){return i(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:i(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new v,ctx:{common:e.parent.common,data:e.data,parsedType:i(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(w(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){const n={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:i(e)},r=this._parseSync({data:e,path:n.path,parent:n});return T(n,r)}"~validate"(e){const t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:i(e)};if(!this["~standard"].async)try{const n=this._parseSync({data:e,path:[],parent:t});return C(n)?{value:n.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>C(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){const n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:i(e)},r=this._parse({data:e,path:n.path,parent:n}),a=await(w(r)?r:Promise.resolve(r));return T(n,a)}refine(e,t){const n=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,r)=>{const a=e(t),s=()=>r.addIssue({code:u.custom,...n(t)});return"undefined"!=typeof Promise&&a instanceof Promise?a.then(e=>!!e||(s(),!1)):!!a||(s(),!1)})}refinement(e,t){return this._refinement((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1))}_refinement(e){return new Oe({schema:this,typeName:$e.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return De.create(this,this._def)}nullable(){return Ie.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return fe.create(this)}promise(){return Ne.create(this,this._def)}or(e){return _e.create([this,e],this._def)}and(e){return Ae.create(this,e,this._def)}transform(e){return new Oe({...j(this._def),schema:this,typeName:$e.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new Be({...j(this._def),innerType:this,defaultValue:t,typeName:$e.ZodDefault})}brand(){return new Ze({typeName:$e.ZodBranded,type:this,...j(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new Pe({...j(this._def),innerType:this,catchValue:t,typeName:$e.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return Re.create(this,e)}readonly(){return Ue.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const N=/^c[^\s-]{8,}$/i,O=/^[0-9a-z]+$/,D=/^[0-9A-HJKMNP-TV-Z]{26}$/i,I=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,B=/^[a-z0-9_-]{21}$/i,P=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,L=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,z=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let Z;const R=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,U=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,q=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Y=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,F=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,$=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,H="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",V=new RegExp(`^${H}$`);function W(e){let t="[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),`([01]\\d|2[0-3]):[0-5]\\d(:${t})${e.precision?"+":"?"}`}function Q(e){return new RegExp(`^${W(e)}$`)}function G(e){let t=`${H}T${W(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function K(e,t){return!("v4"!==t&&t||!R.test(e))||!("v6"!==t&&t||!q.test(e))}function J(e,t){if(!P.test(e))return!1;try{const[n]=e.split("."),r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),a=JSON.parse(atob(r));return!("object"!=typeof a||null===a||"typ"in a&&"JWT"!==a?.typ||!a.alg||t&&a.alg!==t)}catch{return!1}}function X(e,t){return!("v4"!==t&&t||!U.test(e))||!("v6"!==t&&t||!Y.test(e))}class ee extends S{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==o.string){const t=this._getOrReturnCtx(e);return g(t,{code:u.invalid_type,expected:o.string,received:t.parsedType}),y}const t=new v;let n;for(const a of this._def.checks)if("min"===a.kind)e.data.length<a.value&&(n=this._getOrReturnCtx(e,n),g(n,{code:u.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),t.dirty());else if("max"===a.kind)e.data.length>a.value&&(n=this._getOrReturnCtx(e,n),g(n,{code:u.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),t.dirty());else if("length"===a.kind){const r=e.data.length>a.value,s=e.data.length<a.value;(r||s)&&(n=this._getOrReturnCtx(e,n),r?g(n,{code:u.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):s&&g(n,{code:u.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),t.dirty())}else if("email"===a.kind)z.test(e.data)||(n=this._getOrReturnCtx(e,n),g(n,{validation:"email",code:u.invalid_string,message:a.message}),t.dirty());else if("emoji"===a.kind)Z||(Z=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),Z.test(e.data)||(n=this._getOrReturnCtx(e,n),g(n,{validation:"emoji",code:u.invalid_string,message:a.message}),t.dirty());else if("uuid"===a.kind)I.test(e.data)||(n=this._getOrReturnCtx(e,n),g(n,{validation:"uuid",code:u.invalid_string,message:a.message}),t.dirty());else if("nanoid"===a.kind)B.test(e.data)||(n=this._getOrReturnCtx(e,n),g(n,{validation:"nanoid",code:u.invalid_string,message:a.message}),t.dirty());else if("cuid"===a.kind)N.test(e.data)||(n=this._getOrReturnCtx(e,n),g(n,{validation:"cuid",code:u.invalid_string,message:a.message}),t.dirty());else if("cuid2"===a.kind)O.test(e.data)||(n=this._getOrReturnCtx(e,n),g(n,{validation:"cuid2",code:u.invalid_string,message:a.message}),t.dirty());else if("ulid"===a.kind)D.test(e.data)||(n=this._getOrReturnCtx(e,n),g(n,{validation:"ulid",code:u.invalid_string,message:a.message}),t.dirty());else if("url"===a.kind)try{new URL(e.data)}catch{n=this._getOrReturnCtx(e,n),g(n,{validation:"url",code:u.invalid_string,message:a.message}),t.dirty()}else"regex"===a.kind?(a.regex.lastIndex=0,a.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),g(n,{validation:"regex",code:u.invalid_string,message:a.message}),t.dirty())):"trim"===a.kind?e.data=e.data.trim():"includes"===a.kind?e.data.includes(a.value,a.position)||(n=this._getOrReturnCtx(e,n),g(n,{code:u.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),t.dirty()):"toLowerCase"===a.kind?e.data=e.data.toLowerCase():"toUpperCase"===a.kind?e.data=e.data.toUpperCase():"startsWith"===a.kind?e.data.startsWith(a.value)||(n=this._getOrReturnCtx(e,n),g(n,{code:u.invalid_string,validation:{startsWith:a.value},message:a.message}),t.dirty()):"endsWith"===a.kind?e.data.endsWith(a.value)||(n=this._getOrReturnCtx(e,n),g(n,{code:u.invalid_string,validation:{endsWith:a.value},message:a.message}),t.dirty()):"datetime"===a.kind?G(a).test(e.data)||(n=this._getOrReturnCtx(e,n),g(n,{code:u.invalid_string,validation:"datetime",message:a.message}),t.dirty()):"date"===a.kind?V.test(e.data)||(n=this._getOrReturnCtx(e,n),g(n,{code:u.invalid_string,validation:"date",message:a.message}),t.dirty()):"time"===a.kind?Q(a).test(e.data)||(n=this._getOrReturnCtx(e,n),g(n,{code:u.invalid_string,validation:"time",message:a.message}),t.dirty()):"duration"===a.kind?L.test(e.data)||(n=this._getOrReturnCtx(e,n),g(n,{validation:"duration",code:u.invalid_string,message:a.message}),t.dirty()):"ip"===a.kind?K(e.data,a.version)||(n=this._getOrReturnCtx(e,n),g(n,{validation:"ip",code:u.invalid_string,message:a.message}),t.dirty()):"jwt"===a.kind?J(e.data,a.alg)||(n=this._getOrReturnCtx(e,n),g(n,{validation:"jwt",code:u.invalid_string,message:a.message}),t.dirty()):"cidr"===a.kind?X(e.data,a.version)||(n=this._getOrReturnCtx(e,n),g(n,{validation:"cidr",code:u.invalid_string,message:a.message}),t.dirty()):"base64"===a.kind?F.test(e.data)||(n=this._getOrReturnCtx(e,n),g(n,{validation:"base64",code:u.invalid_string,message:a.message}),t.dirty()):"base64url"===a.kind?$.test(e.data)||(n=this._getOrReturnCtx(e,n),g(n,{validation:"base64url",code:u.invalid_string,message:a.message}),t.dirty()):r.assertNever(a);return{status:t.value,value:e.data}}_regex(e,t,n){return this.refinement(t=>e.test(t),{validation:t,code:u.invalid_string,...E.errToObj(n)})}_addCheck(e){return new ee({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...E.errToObj(e)})}url(e){return this._addCheck({kind:"url",...E.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...E.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...E.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...E.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...E.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...E.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...E.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...E.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...E.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...E.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...E.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...E.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...E.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...E.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...E.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...E.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...E.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...E.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...E.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...E.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...E.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...E.errToObj(t)})}nonempty(e){return this.min(1,E.errToObj(e))}trim(){return new ee({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ee({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ee({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function te(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,a=n>r?n:r;return Number.parseInt(e.toFixed(a).replace(".",""))%Number.parseInt(t.toFixed(a).replace(".",""))/10**a}ee.create=e=>new ee({checks:[],typeName:$e.ZodString,coerce:e?.coerce??!1,...j(e)});class ne extends S{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==o.number){const t=this._getOrReturnCtx(e);return g(t,{code:u.invalid_type,expected:o.number,received:t.parsedType}),y}let t;const n=new v;for(const a of this._def.checks)"int"===a.kind?r.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),g(t,{code:u.invalid_type,expected:"integer",received:"float",message:a.message}),n.dirty()):"min"===a.kind?(a.inclusive?e.data<a.value:e.data<=a.value)&&(t=this._getOrReturnCtx(e,t),g(t,{code:u.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),n.dirty()):"max"===a.kind?(a.inclusive?e.data>a.value:e.data>=a.value)&&(t=this._getOrReturnCtx(e,t),g(t,{code:u.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),n.dirty()):"multipleOf"===a.kind?0!==te(e.data,a.value)&&(t=this._getOrReturnCtx(e,t),g(t,{code:u.not_multiple_of,multipleOf:a.value,message:a.message}),n.dirty()):"finite"===a.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),g(t,{code:u.not_finite,message:a.message}),n.dirty()):r.assertNever(a);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,E.toString(t))}gt(e,t){return this.setLimit("min",e,!1,E.toString(t))}lte(e,t){return this.setLimit("max",e,!0,E.toString(t))}lt(e,t){return this.setLimit("max",e,!1,E.toString(t))}setLimit(e,t,n,r){return new ne({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:E.toString(r)}]})}_addCheck(e){return new ne({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:E.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:E.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:E.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:E.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:E.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:E.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:E.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:E.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:E.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&r.isInteger(e.value))}get isFinite(){let e=null,t=null;for(const n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}ne.create=e=>new ne({checks:[],typeName:$e.ZodNumber,coerce:e?.coerce||!1,...j(e)});class re extends S{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==o.bigint)return this._getInvalidInput(e);let t;const n=new v;for(const a of this._def.checks)"min"===a.kind?(a.inclusive?e.data<a.value:e.data<=a.value)&&(t=this._getOrReturnCtx(e,t),g(t,{code:u.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),n.dirty()):"max"===a.kind?(a.inclusive?e.data>a.value:e.data>=a.value)&&(t=this._getOrReturnCtx(e,t),g(t,{code:u.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),n.dirty()):"multipleOf"===a.kind?e.data%a.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),g(t,{code:u.not_multiple_of,multipleOf:a.value,message:a.message}),n.dirty()):r.assertNever(a);return{status:n.value,value:e.data}}_getInvalidInput(e){const t=this._getOrReturnCtx(e);return g(t,{code:u.invalid_type,expected:o.bigint,received:t.parsedType}),y}gte(e,t){return this.setLimit("min",e,!0,E.toString(t))}gt(e,t){return this.setLimit("min",e,!1,E.toString(t))}lte(e,t){return this.setLimit("max",e,!0,E.toString(t))}lt(e,t){return this.setLimit("max",e,!1,E.toString(t))}setLimit(e,t,n,r){return new re({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:E.toString(r)}]})}_addCheck(e){return new re({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:E.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:E.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:E.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:E.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:E.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}re.create=e=>new re({checks:[],typeName:$e.ZodBigInt,coerce:e?.coerce??!1,...j(e)});class ae extends S{_parse(e){if(this._def.coerce&&(e.data=Boolean(e.data)),this._getType(e)!==o.boolean){const t=this._getOrReturnCtx(e);return g(t,{code:u.invalid_type,expected:o.boolean,received:t.parsedType}),y}return b(e.data)}}ae.create=e=>new ae({typeName:$e.ZodBoolean,coerce:e?.coerce||!1,...j(e)});class se extends S{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==o.date){const t=this._getOrReturnCtx(e);return g(t,{code:u.invalid_type,expected:o.date,received:t.parsedType}),y}if(Number.isNaN(e.data.getTime()))return g(this._getOrReturnCtx(e),{code:u.invalid_date}),y;const t=new v;let n;for(const a of this._def.checks)"min"===a.kind?e.data.getTime()<a.value&&(n=this._getOrReturnCtx(e,n),g(n,{code:u.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),t.dirty()):"max"===a.kind?e.data.getTime()>a.value&&(n=this._getOrReturnCtx(e,n),g(n,{code:u.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),t.dirty()):r.assertNever(a);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new se({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:E.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:E.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}se.create=e=>new se({checks:[],coerce:e?.coerce||!1,typeName:$e.ZodDate,...j(e)});class oe extends S{_parse(e){if(this._getType(e)!==o.symbol){const t=this._getOrReturnCtx(e);return g(t,{code:u.invalid_type,expected:o.symbol,received:t.parsedType}),y}return b(e.data)}}oe.create=e=>new oe({typeName:$e.ZodSymbol,...j(e)});class ie extends S{_parse(e){if(this._getType(e)!==o.undefined){const t=this._getOrReturnCtx(e);return g(t,{code:u.invalid_type,expected:o.undefined,received:t.parsedType}),y}return b(e.data)}}ie.create=e=>new ie({typeName:$e.ZodUndefined,...j(e)});class ue extends S{_parse(e){if(this._getType(e)!==o.null){const t=this._getOrReturnCtx(e);return g(t,{code:u.invalid_type,expected:o.null,received:t.parsedType}),y}return b(e.data)}}ue.create=e=>new ue({typeName:$e.ZodNull,...j(e)});class ce extends S{constructor(){super(...arguments),this._any=!0}_parse(e){return b(e.data)}}ce.create=e=>new ce({typeName:$e.ZodAny,...j(e)});class le extends S{constructor(){super(...arguments),this._unknown=!0}_parse(e){return b(e.data)}}le.create=e=>new le({typeName:$e.ZodUnknown,...j(e)});class de extends S{_parse(e){const t=this._getOrReturnCtx(e);return g(t,{code:u.invalid_type,expected:o.never,received:t.parsedType}),y}}de.create=e=>new de({typeName:$e.ZodNever,...j(e)});class pe extends S{_parse(e){if(this._getType(e)!==o.undefined){const t=this._getOrReturnCtx(e);return g(t,{code:u.invalid_type,expected:o.void,received:t.parsedType}),y}return b(e.data)}}pe.create=e=>new pe({typeName:$e.ZodVoid,...j(e)});class fe extends S{_parse(e){const{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==o.array)return g(t,{code:u.invalid_type,expected:o.array,received:t.parsedType}),y;if(null!==r.exactLength){const e=t.data.length>r.exactLength.value,a=t.data.length<r.exactLength.value;(e||a)&&(g(t,{code:e?u.too_big:u.too_small,minimum:a?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&(g(t,{code:u.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&(g(t,{code:u.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new M(t,e,t.path,n)))).then(e=>v.mergeArray(n,e));const a=[...t.data].map((e,n)=>r.type._parseSync(new M(t,e,t.path,n)));return v.mergeArray(n,a)}get element(){return this._def.type}min(e,t){return new fe({...this._def,minLength:{value:e,message:E.toString(t)}})}max(e,t){return new fe({...this._def,maxLength:{value:e,message:E.toString(t)}})}length(e,t){return new fe({...this._def,exactLength:{value:e,message:E.toString(t)}})}nonempty(e){return this.min(1,e)}}function he(e){if(e instanceof me){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=De.create(he(r))}return new me({...e._def,shape:()=>t})}return e instanceof fe?new fe({...e._def,type:he(e.element)}):e instanceof De?De.create(he(e.unwrap())):e instanceof Ie?Ie.create(he(e.unwrap())):e instanceof be?be.create(e.items.map(e=>he(e))):e}fe.create=(e,t)=>new fe({type:e,minLength:null,maxLength:null,exactLength:null,typeName:$e.ZodArray,...j(t)});class me extends S{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=r.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==o.object){const t=this._getOrReturnCtx(e);return g(t,{code:u.invalid_type,expected:o.object,received:t.parsedType}),y}const{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:a}=this._getCached(),s=[];if(!(this._def.catchall instanceof de&&"strip"===this._def.unknownKeys))for(const e in n.data)a.includes(e)||s.push(e);const i=[];for(const e of a){const t=r[e],a=n.data[e];i.push({key:{status:"valid",value:e},value:t._parse(new M(n,a,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof de){const e=this._def.unknownKeys;if("passthrough"===e)for(const e of s)i.push({key:{status:"valid",value:e},value:{status:"valid",value:n.data[e]}});else if("strict"===e)s.length>0&&(g(n,{code:u.unrecognized_keys,keys:s}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of s){const r=n.data[t];i.push({key:{status:"valid",value:t},value:e._parse(new M(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{const e=[];for(const t of i){const n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e}).then(e=>v.mergeObjectSync(t,e)):v.mergeObjectSync(t,i)}get shape(){return this._def.shape()}strict(e){return E.errToObj,new me({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{const r=this._def.errorMap?.(t,n).message??n.defaultError;return"unrecognized_keys"===t.code?{message:E.errToObj(e).message??r}:{message:r}}}:{}})}strip(){return new me({...this._def,unknownKeys:"strip"})}passthrough(){return new me({...this._def,unknownKeys:"passthrough"})}extend(e){return new me({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new me({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:$e.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new me({...this._def,catchall:e})}pick(e){const t={};for(const n of r.objectKeys(e))e[n]&&this.shape[n]&&(t[n]=this.shape[n]);return new me({...this._def,shape:()=>t})}omit(e){const t={};for(const n of r.objectKeys(this.shape))e[n]||(t[n]=this.shape[n]);return new me({...this._def,shape:()=>t})}deepPartial(){return he(this)}partial(e){const t={};for(const n of r.objectKeys(this.shape)){const r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()}return new me({...this._def,shape:()=>t})}required(e){const t={};for(const n of r.objectKeys(this.shape))if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof De;)e=e._def.innerType;t[n]=e}return new me({...this._def,shape:()=>t})}keyof(){return Te(r.objectKeys(this.shape))}}me.create=(e,t)=>new me({shape:()=>e,unknownKeys:"strip",catchall:de.create(),typeName:$e.ZodObject,...j(t)}),me.strictCreate=(e,t)=>new me({shape:()=>e,unknownKeys:"strict",catchall:de.create(),typeName:$e.ZodObject,...j(t)}),me.lazycreate=(e,t)=>new me({shape:e,unknownKeys:"strip",catchall:de.create(),typeName:$e.ZodObject,...j(t)});class _e extends S{_parse(e){const{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map(async e=>{const n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;const n=e.map(e=>new l(e.ctx.common.issues));return g(t,{code:u.invalid_union,unionErrors:n}),y});{let e;const r=[];for(const a of n){const n={...t,common:{...t.common,issues:[]},parent:null},s=a._parseSync({data:t.data,path:t.path,parent:n});if("valid"===s.status)return s;"dirty"!==s.status||e||(e={result:s,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const a=r.map(e=>new l(e));return g(t,{code:u.invalid_union,unionErrors:a}),y}}get options(){return this._def.options}}_e.create=(e,t)=>new _e({options:e,typeName:$e.ZodUnion,...j(t)});const ge=e=>e instanceof Ee?ge(e.schema):e instanceof Oe?ge(e.innerType()):e instanceof Me?[e.value]:e instanceof je?e.options:e instanceof Se?r.objectValues(e.enum):e instanceof Be?ge(e._def.innerType):e instanceof ie?[void 0]:e instanceof ue?[null]:e instanceof De?[void 0,...ge(e.unwrap())]:e instanceof Ie?[null,...ge(e.unwrap())]:e instanceof Ze||e instanceof Ue?ge(e.unwrap()):e instanceof Pe?ge(e._def.innerType):[];class ve extends S{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==o.object)return g(t,{code:u.invalid_type,expected:o.object,received:t.parsedType}),y;const n=this.discriminator,r=t.data[n],a=this.optionsMap.get(r);return a?t.common.async?a._parseAsync({data:t.data,path:t.path,parent:t}):a._parseSync({data:t.data,path:t.path,parent:t}):(g(t,{code:u.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),y)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){const r=new Map;for(const n of t){const t=ge(n.shape[e]);if(!t.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const a of t){if(r.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);r.set(a,n)}}return new ve({typeName:$e.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...j(n)})}}function ye(e,t){const n=i(e),a=i(t);if(e===t)return{valid:!0,data:e};if(n===o.object&&a===o.object){const n=r.objectKeys(t),a=r.objectKeys(e).filter(e=>-1!==n.indexOf(e)),s={...e,...t};for(const n of a){const r=ye(e[n],t[n]);if(!r.valid)return{valid:!1};s[n]=r.data}return{valid:!0,data:s}}if(n===o.array&&a===o.array){if(e.length!==t.length)return{valid:!1};const n=[];for(let r=0;r<e.length;r++){const a=ye(e[r],t[r]);if(!a.valid)return{valid:!1};n.push(a.data)}return{valid:!0,data:n}}return n===o.date&&a===o.date&&+e===+t?{valid:!0,data:e}:{valid:!1}}class Ae extends S{_parse(e){const{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(x(e)||x(r))return y;const a=ye(e.value,r.value);return a.valid?((k(e)||k(r))&&t.dirty(),{status:t.value,value:a.data}):(g(n,{code:u.invalid_intersection_types}),y)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}Ae.create=(e,t,n)=>new Ae({left:e,right:t,typeName:$e.ZodIntersection,...j(n)});class be extends S{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==o.array)return g(n,{code:u.invalid_type,expected:o.array,received:n.parsedType}),y;if(n.data.length<this._def.items.length)return g(n,{code:u.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),y;!this._def.rest&&n.data.length>this._def.items.length&&(g(n,{code:u.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const r=[...n.data].map((e,t)=>{const r=this._def.items[t]||this._def.rest;return r?r._parse(new M(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(r).then(e=>v.mergeArray(t,e)):v.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new be({...this._def,rest:e})}}be.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new be({items:e,typeName:$e.ZodTuple,rest:null,...j(t)})};class xe extends S{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==o.object)return g(n,{code:u.invalid_type,expected:o.object,received:n.parsedType}),y;const r=[],a=this._def.keyType,s=this._def.valueType;for(const e in n.data)r.push({key:a._parse(new M(n,e,n.path,e)),value:s._parse(new M(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?v.mergeObjectAsync(t,r):v.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return new xe(t instanceof S?{keyType:e,valueType:t,typeName:$e.ZodRecord,...j(n)}:{keyType:ee.create(),valueType:e,typeName:$e.ZodRecord,...j(t)})}}class ke extends S{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==o.map)return g(n,{code:u.invalid_type,expected:o.map,received:n.parsedType}),y;const r=this._def.keyType,a=this._def.valueType,s=[...n.data.entries()].map(([e,t],s)=>({key:r._parse(new M(n,e,n.path,[s,"key"])),value:a._parse(new M(n,t,n.path,[s,"value"]))}));if(n.common.async){const e=new Map;return Promise.resolve().then(async()=>{for(const n of s){const r=await n.key,a=await n.value;if("aborted"===r.status||"aborted"===a.status)return y;"dirty"!==r.status&&"dirty"!==a.status||t.dirty(),e.set(r.value,a.value)}return{status:t.value,value:e}})}{const e=new Map;for(const n of s){const r=n.key,a=n.value;if("aborted"===r.status||"aborted"===a.status)return y;"dirty"!==r.status&&"dirty"!==a.status||t.dirty(),e.set(r.value,a.value)}return{status:t.value,value:e}}}}ke.create=(e,t,n)=>new ke({valueType:t,keyType:e,typeName:$e.ZodMap,...j(n)});class Ce extends S{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==o.set)return g(n,{code:u.invalid_type,expected:o.set,received:n.parsedType}),y;const r=this._def;null!==r.minSize&&n.data.size<r.minSize.value&&(g(n,{code:u.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&n.data.size>r.maxSize.value&&(g(n,{code:u.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());const a=this._def.valueType;function s(e){const n=new Set;for(const r of e){if("aborted"===r.status)return y;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}const i=[...n.data.values()].map((e,t)=>a._parse(new M(n,e,n.path,t)));return n.common.async?Promise.all(i).then(e=>s(e)):s(i)}min(e,t){return new Ce({...this._def,minSize:{value:e,message:E.toString(t)}})}max(e,t){return new Ce({...this._def,maxSize:{value:e,message:E.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}Ce.create=(e,t)=>new Ce({valueType:e,minSize:null,maxSize:null,typeName:$e.ZodSet,...j(t)});class we extends S{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==o.function)return g(t,{code:u.invalid_type,expected:o.function,received:t.parsedType}),y;function n(e,n){return m({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,h(),d].filter(e=>!!e),issueData:{code:u.invalid_arguments,argumentsError:n}})}function r(e,n){return m({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,h(),d].filter(e=>!!e),issueData:{code:u.invalid_return_type,returnTypeError:n}})}const a={errorMap:t.common.contextualErrorMap},s=t.data;if(this._def.returns instanceof Ne){const e=this;return b(async function(...t){const o=new l([]),i=await e._def.args.parseAsync(t,a).catch(e=>{throw o.addIssue(n(t,e)),o}),u=await Reflect.apply(s,this,i);return await e._def.returns._def.type.parseAsync(u,a).catch(e=>{throw o.addIssue(r(u,e)),o})})}{const e=this;return b(function(...t){const o=e._def.args.safeParse(t,a);if(!o.success)throw new l([n(t,o.error)]);const i=Reflect.apply(s,this,o.data),u=e._def.returns.safeParse(i,a);if(!u.success)throw new l([r(i,u.error)]);return u.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new we({...this._def,args:be.create(e).rest(le.create())})}returns(e){return new we({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new we({args:e||be.create([]).rest(le.create()),returns:t||le.create(),typeName:$e.ZodFunction,...j(n)})}}class Ee extends S{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}Ee.create=(e,t)=>new Ee({getter:e,typeName:$e.ZodLazy,...j(t)});class Me extends S{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return g(t,{received:t.data,code:u.invalid_literal,expected:this._def.value}),y}return{status:"valid",value:e.data}}get value(){return this._def.value}}function Te(e,t){return new je({values:e,typeName:$e.ZodEnum,...j(t)})}Me.create=(e,t)=>new Me({value:e,typeName:$e.ZodLiteral,...j(t)});class je extends S{_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e),n=this._def.values;return g(t,{expected:r.joinValues(n),received:t.parsedType,code:u.invalid_type}),y}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const t=this._getOrReturnCtx(e),n=this._def.values;return g(t,{received:t.data,code:u.invalid_enum_value,options:n}),y}return b(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return je.create(e,{...this._def,...t})}exclude(e,t=this._def){return je.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}je.create=Te;class Se extends S{_parse(e){const t=r.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==o.string&&n.parsedType!==o.number){const e=r.objectValues(t);return g(n,{expected:r.joinValues(e),received:n.parsedType,code:u.invalid_type}),y}if(this._cache||(this._cache=new Set(r.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const e=r.objectValues(t);return g(n,{received:n.data,code:u.invalid_enum_value,options:e}),y}return b(e.data)}get enum(){return this._def.values}}Se.create=(e,t)=>new Se({values:e,typeName:$e.ZodNativeEnum,...j(t)});class Ne extends S{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==o.promise&&!1===t.common.async)return g(t,{code:u.invalid_type,expected:o.promise,received:t.parsedType}),y;const n=t.parsedType===o.promise?t.data:Promise.resolve(t.data);return b(n.then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}Ne.create=(e,t)=>new Ne({type:e,typeName:$e.ZodPromise,...j(t)});class Oe extends S{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===$e.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:n}=this._processInputParams(e),a=this._def.effect||null,s={addIssue:e=>{g(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),"preprocess"===a.type){const e=a.transform(n.data,s);if(n.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return y;const r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return"aborted"===r.status?y:"dirty"===r.status||"dirty"===t.value?A(r.value):r});{if("aborted"===t.value)return y;const r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return"aborted"===r.status?y:"dirty"===r.status||"dirty"===t.value?A(r.value):r}}if("refinement"===a.type){const e=e=>{const t=a.refinement(e,s);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===n.common.async){const r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?y:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>"aborted"===n.status?y:("dirty"===n.status&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))))}if("transform"===a.type){if(!1===n.common.async){const e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!C(e))return y;const r=a.transform(e.value,s);if(r instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:r}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>C(e)?Promise.resolve(a.transform(e.value,s)).then(e=>({status:t.value,value:e})):y)}r.assertNever(a)}}Oe.create=(e,t,n)=>new Oe({schema:e,typeName:$e.ZodEffects,effect:t,...j(n)}),Oe.createWithPreprocess=(e,t,n)=>new Oe({schema:t,effect:{type:"preprocess",transform:e},typeName:$e.ZodEffects,...j(n)});class De extends S{_parse(e){return this._getType(e)===o.undefined?b(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}De.create=(e,t)=>new De({innerType:e,typeName:$e.ZodOptional,...j(t)});class Ie extends S{_parse(e){return this._getType(e)===o.null?b(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Ie.create=(e,t)=>new Ie({innerType:e,typeName:$e.ZodNullable,...j(t)});class Be extends S{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===o.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}Be.create=(e,t)=>new Be({innerType:e,typeName:$e.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...j(t)});class Pe extends S{_parse(e){const{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return w(r)?r.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new l(n.common.issues)},input:n.data})})):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new l(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}Pe.create=(e,t)=>new Pe({innerType:e,typeName:$e.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...j(t)});class Le extends S{_parse(e){if(this._getType(e)!==o.nan){const t=this._getOrReturnCtx(e);return g(t,{code:u.invalid_type,expected:o.nan,received:t.parsedType}),y}return{status:"valid",value:e.data}}}Le.create=e=>new Le({typeName:$e.ZodNaN,...j(e)});const ze=Symbol("zod_brand");class Ze extends S{_parse(e){const{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class Re extends S{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{const e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?y:"dirty"===e.status?(t.dirty(),A(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{const e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?y:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new Re({in:e,out:t,typeName:$e.ZodPipeline})}}class Ue extends S{_parse(e){const t=this._def.innerType._parse(e),n=e=>(C(e)&&(e.value=Object.freeze(e.value)),e);return w(t)?t.then(e=>n(e)):n(t)}unwrap(){return this._def.innerType}}function qe(e,t){const n="function"==typeof e?e(t):"string"==typeof e?{message:e}:e;return"string"==typeof n?{message:n}:n}function Ye(e,t={},n){return e?ce.create().superRefine((r,a)=>{const s=e(r);if(s instanceof Promise)return s.then(e=>{if(!e){const e=qe(t,r),s=e.fatal??n??!0;a.addIssue({code:"custom",...e,fatal:s})}});if(!s){const e=qe(t,r),s=e.fatal??n??!0;a.addIssue({code:"custom",...e,fatal:s})}}):ce.create()}Ue.create=(e,t)=>new Ue({innerType:e,typeName:$e.ZodReadonly,...j(t)});const Fe={object:me.lazycreate};var $e;!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}($e||($e={}));const He=(e,t={message:`Input not instance of ${e.name}`})=>Ye(t=>t instanceof e,t),Ve=ee.create,We=ne.create,Qe=Le.create,Ge=re.create,Ke=ae.create,Je=se.create,Xe=oe.create,et=ie.create,tt=ue.create,nt=ce.create,rt=le.create,at=de.create,st=pe.create,ot=fe.create,it=me.create,ut=me.strictCreate,ct=_e.create,lt=ve.create,dt=Ae.create,pt=be.create,ft=xe.create,ht=ke.create,mt=Ce.create,_t=we.create,gt=Ee.create,vt=Me.create,yt=je.create,At=Se.create,bt=Ne.create,xt=Oe.create,kt=De.create,Ct=Ie.create,wt=Oe.createWithPreprocess,Et=Re.create,Mt=()=>Ve().optional(),Tt=()=>We().optional(),jt=()=>Ke().optional(),St={string:e=>ee.create({...e,coerce:!0}),number:e=>ne.create({...e,coerce:!0}),boolean:e=>ae.create({...e,coerce:!0}),bigint:e=>re.create({...e,coerce:!0}),date:e=>se.create({...e,coerce:!0})},Nt=y,Ot=s,Dt=Ot.object({status:Ot.literal("idle").or(Ot.literal("pending").or(Ot.literal("unknown"))),remainingTasks:Ot.number(),totalTasks:Ot.number(),totalErrors:Ot.number(),totalWarnings:Ot.number()}),It=Ot.object({id:Ot.string(),name:Ot.string().optional(),inputPath:Ot.string().optional(),outputPath:Ot.string().optional()});function Bt(e){return it(e).strict()}const Pt=Bt({file:Ot.string(),line:Ot.number().optional(),column:Ot.number().optional()}),Lt=Bt({text:Ot.string(),location:Pt.optional()}),zt=Bt({text:Ot.string(),source:Ot.string(),location:Pt.optional(),notes:Ot.array(Lt).optional()}),Zt=Ot.object({id:Ot.string(),errors:Ot.array(zt).optional(),warnings:Ot.array(zt).optional()}),Rt=Ot.object({name:Ot.string(),start:Ot.number(),end:Ot.number().optional(),threwException:Ot.boolean().optional()}),Ut=Ot.object({status:Ot.literal("pending").or(Ot.literal("complete")).optional(),timings:Ot.array(Rt).optional(),startTime:Ot.number(),durationMilliseconds:Ot.number().optional(),lastUpdated:Ot.number().optional()}).extend(It.shape).extend(Zt.shape),qt=it({tasks:ot(Ut)}),Yt=gt(()=>Bt({name:Ve(),version:Ve(),path:Ve(),dependencies:ft(Ve()),requiredBy:ft(Ve()),isExternal:Ke().optional(),isLinked:Ke().optional(),scopedVersions:ft(gt(()=>Yt)).optional()})),Ft=ft(Ve(),Yt),$t=e=>ft(ct([e,et()])),Ht=it({browser:ft(Ve()),node:ft(Ve())}),Vt=ft(Ve(),ct([et(),Ve()])).optional(),Wt=it({name:Ve(),version:Ve(),exports:nt(),dependencies:Vt,peerDependencies:Vt}),Qt=Bt({path:Ve(),rootPath:Ve().optional(),includeAll:Ke().optional(),ignoredPackages:Ve().array().optional(),ignoreResolutions:Ke().optional(),resolveStrategy:yt(["dedupe","duplicate"]).optional(),remote:it({resolveMap:Ft,hostUrl:Ve(),packages:it({definitions:$t(it({})),transformedDefinitions:$t(Wt)}),packageHashes:it({hashesWithSource:Ht,hashesWithNoSource:Ht})}).optional()}),Gt=(it({linkedPath:Qt}),it({resolveMap:Ft,linkedPaths:ot(Qt)}),it({packagePath:Ve(),hash:Ve().optional(),definition:Wt.optional()}),it({name:Ve(),version:Ve().optional()})),Kt=ct([Ve(),Gt]),Jt=ct([Ve(),Gt.required()]),Xt=(Bt({packageSettings:ot(it({match:ct([Kt,ot(Kt)])}).passthrough()),generated:it({packageSettings:ot(it({match:Jt}).passthrough())}).passthrough()}).passthrough(),{path:["session","version"],type:Ot.number()}),en={path:["task","stats"],type:Dt},tn={path:["task","list"],type:qt},nn={path:["error","entry"],type:Ot.string()};Ot.object({reason:Ot.enum(["lost","unreachable"])})},339:(e,t,n)=>{var r=n(821),a=n(552),s=n(15),o=n(878),i=n(790),u=n(658),c=n(606),l=n.n(c),d=n(607),p=n.n(d),f=n(437),h=n.n(f),m=n(750),_=n.n(m),g=n(994),v=n.n(g),y=n(415),A=n.n(y),b=n(626),x={};x.styleTagTransform=A(),x.setAttributes=_(),x.insert=h().bind(null,"head"),x.domAPI=p(),x.insertStyleElement=v(),l()(b.default,x);const k=b.default&&b.default.locals?b.default.locals:void 0;var C=n(104),w=n.n(C),E=n(91),M=n(307);const T=()=>{const e=(0,s.useCloudpack)(),[t,n]=(0,i.useState)({status:"unknown",remainingTasks:0,totalTasks:0,totalErrors:0,totalWarnings:0});return(0,i.useEffect)(()=>{const t=e?.onDataChanged.subscribe(M.taskStatsSource,{onData:e=>{n(e)}});return()=>{t.unsubscribe()}},[e]),t};var j=n(116);const S="cloudpack.badgeStatus",N="(see details)",O="Show bundle result details",D=({onOpenDialog:e,pageLoadTimeReport:t})=>{const n=(0,i.useRef)(null),a=(0,i.useRef)(null),s=T(),[o,c]=(0,i.useState)(!!localStorage.getItem(S)),l="unknown"!==s.status,d=(0,i.useCallback)(()=>{c(e=>{const t=!e;return localStorage.setItem(S,t?"collapsed":""),t})},[]);if((0,u.useDraggable)({enabled:l,containerElementRef:n,dragElementRef:a}),!l)return null;const{buttonStatusText:p,statusClass:f,statsText:h}=function(e,t){const{status:n,totalTasks:r,remainingTasks:a,totalErrors:s,totalWarnings:o}=e;let i,u,c="";return"idle"===n&&r?[i,u]=s?[k.error,`errors ${N}`]:o?[k.warning,`warnings ${N}`]:[k.success,"success"]:u="pending"===n?"bundling...":"idle",r&&(c=[0===a?"completed":`${((r-a)/r*100).toFixed(1)}% completed`,s&&`${s} error${s>1?"s":""}`,o&&`${o} warning${o>1?"s":""}`].filter(Boolean).join(", ")+("success"===t.status?` in ${Math.round(t.pageLoadTime)??"??"}ms`:"")),{statusClass:i,buttonStatusText:u,statsText:c}}(s,t),m="Cloudpack: "+p,_=`${m.replace(N,"")}. ${O}`,g=o?"Expand Cloudpack badge":"Collapse",v=(0,r.jsxs)("div",{id:j.elementIds.statusBadgeRoot,ref:n,class:w()(k.badge,o&&k.collapsed,f),children:[(0,r.jsxs)("div",{ref:a,class:k.gripArea,"aria-hidden":!0,children:[(0,r.jsx)("div",{class:k.grip}),(0,r.jsx)("div",{class:k.grip})]}),(0,r.jsx)(E.Button,{variant:"custom",class:k.button,onClick:e,title:O,"aria-label":_,children:(0,r.jsx)("div",{class:k.buttonText,children:m})}),(0,r.jsx)("div",{children:h}),(0,r.jsx)(E.Button,{variant:"custom",class:w()(k.button,k.chevron),onClick:d,title:g,"aria-label":g,children:o?"«":"»"})]});return(0,r.jsx)("div",{class:k.fixedOverlay,children:(0,r.jsx)("div",{class:k.contentSurface,children:v})})};function I(e){if(!e||"."===e)return".";if(/^[a-zA-Z]:[\\/]/.test(e))throw new Error(`Received an absolute path where a relative path was expected: ${e}.\nThis indicates a bug in Cloudpack, likely due to calling path.relative() with two Windows paths on different drives (which returns an absolute path) and then assuming the result is relative.`);const t=e.replace(/\\/g,"/");return"/"===t[0]?"."+t:/^\.\.?\//.test(t)?t:`./${t}`}const B=e=>(e=>"object"==typeof e.reason&&!Array.isArray(e.reason)&&null!==e.reason)(e)&&"string"==typeof e.reason.message,P=(0,o.lazy)(()=>Promise.all([n.e(76),n.e(639)]).then(n.bind(n,639))),L=(0,o.lazy)(()=>Promise.all([n.e(76),n.e(240)]).then(n.bind(n,240))),z=()=>{const e=function(){const[e,t]=(0,i.useState)({status:"detecting"}),n=(0,s.useCloudpack)();return(0,i.useEffect)(()=>{!async function(){if(!window.__cloudpack)throw new Error("Cloudpack not found on window");const{getPageLoadTime:e,getBrowserCacheRatio:r,pageSessionContext:a}=window.__cloudpack;if(!e)throw new Error("getPageLoadTime not found on window.__cloudpack");if(!a)throw new Error("pageSessionContext not found on window.__cloudpack");if(!r)throw new Error("getBrowserCacheRatio not found on window.__cloudpack");const s=await e().then(e=>(t({pageLoadTime:e,status:"success"}),e)).catch(e=>(console.error("[Cloudpack] Failed to get page load time",e),t({status:"error"}),null)),o=r();await n.reportSpan.mutate({name:"PAGE_LOAD_TIME",startTime:0,endTime:s??0,attributes:{path:a.requestPath,browserCacheHitCount:o.hit,browserCacheTotalCount:o.total,browserCacheRatio:o.ratio}})}()},[n]),e}(),[t,n]=(0,i.useState)(!1),a=T(),u=(0,i.useRef)(),{unsupported:c}=(()=>{const[e,t]=(0,i.useState)({unsupported:[]}),n=(0,s.useCloudpack)(),r=window.__pageErrors;return(0,i.useEffect)(()=>{if(!r)return void console.error("[Cloudpack] window.__pageErrors not found (unable to handle unsupported imports)");const e=(e,r)=>{const a=e.match(/[Mm]odule specifier,? ['"](.*?)['"]/);if(!a)return;const s=function(e=""){if(/^\.\.?\//.test(e))return{packageName:".",version:"",importPath:e};const t=e.match(/^\/?((?:@[-\w.]+\/)?[-\w.:]+)(?:@([-\w.]+))?(\/[\w./$:-]*\/?)?/)||[];return{packageName:t[1]||".",version:t[2]||"",importPath:I(t[3])}}(a[1]),{packageName:o,importPath:i}=s;(async()=>{r&&r===location.href&&(r=void 0);const{fixable:e}=await n.validatePackageOverride.query({packageName:o,importPath:i,issuerUrl:r}),a=e||"."!==i&&(await n.validatePackageOverride.query({packageName:o,importPath:".",issuerUrl:r})).fixable;t(t=>({...t,unsupported:[...t.unsupported,{packageName:o,importPath:i,issuerUrl:r,fixable:e,isValidPackage:a}]}))})().catch(()=>{})},a=n.onDataChanged.subscribe(M.errorEntrySource,{onData:t=>{t&&(console.error(t),e(String(t)))}});r.unregister(),window.addEventListener("error",t=>{e(t.message,t.filename)});for(const t of r.uncaughtErrors)e(t.message,t.filename);window.addEventListener("unhandledrejection",t=>{B(t)&&e(t.reason.message)});for(const t of r.uncaughtRejections)B(t)&&e(t.reason.message);return()=>{a.unsubscribe()}},[n,r]),e})();(0,i.useEffect)(()=>{t||"idle"===u.current?.status||"idle"!==a.status||(u.current?.totalErrors||0)===(a.totalErrors||0)||n(!0),u.current=a},[a,t]);const l=c.length?(0,r.jsx)(L,{unsupported:c}):(0,r.jsxs)(r.Fragment,{children:[t&&(0,r.jsx)(P,{onClose:()=>n(!1)}),(0,r.jsx)(D,{onOpenDialog:()=>n(!0),pageLoadTimeReport:e})]});return(0,r.jsx)(o.Suspense,{fallback:null,children:l})};var Z=n(206),R={};R.styleTagTransform=A(),R.setAttributes=_(),R.insert=h().bind(null,"head"),R.domAPI=p(),R.insertStyleElement=v(),l()(Z.default,R);const U=Z.default&&Z.default.locals?Z.default.locals:void 0,q=({children:e})=>(0,r.jsx)("div",{class:U.root,children:e});var Y=Object.create,F=Object.defineProperty,$=Object.getOwnPropertyDescriptor,H=Object.getOwnPropertyNames,V=Object.getPrototypeOf,W=Object.prototype.hasOwnProperty,Q=(e,t)=>function(){return t||(0,e[H(e)[0]])((t={exports:{}}).exports,t),t.exports},G=(e,t,n)=>(n=null!=e?Y(V(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var a,s=H(t),o=0,i=s.length;o<i;o++)a=s[o],W.call(e,a)||undefined===a||F(e,a,{get:(e=>t[e]).bind(null,a),enumerable:!(r=$(t,a))||r.enumerable});return e})(!t&&e&&e.__esModule?n:F(n,"default",{value:e,enumerable:!0}),e)),K=Q({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(e){return t.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),J=Q({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=K().default;t.exports=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=n(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},t.exports.__esModule=!0,t.exports.default=t.exports}}),X=Q({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=K().default,r=J();t.exports=function(e){var t=r(e,"string");return"symbol"==n(t)?t:t+""},t.exports.__esModule=!0,t.exports.default=t.exports}}),ee=Q({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=X();t.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},t.exports.__esModule=!0,t.exports.default=t.exports}}),te=Q({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=ee();function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}t.exports=function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?r(Object(a),!0).forEach(function(t){n(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):r(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e},t.exports.__esModule=!0,t.exports.default=t.exports}});function ne(e){const t={subscribe(t){let n=null,r=!1,a=!1,s=!1;function o(){null!==n?a||(a=!0,"function"==typeof n?n():n&&n.unsubscribe()):s=!0}return n=e({next(e){var n;r||null===(n=t.next)||void 0===n||n.call(t,e)},error(e){var n;r||(r=!0,null===(n=t.error)||void 0===n||n.call(t,e),o())},complete(){var e;r||(r=!0,null===(e=t.complete)||void 0===e||e.call(t),o())}}),s&&o(),{unsubscribe:o}},pipe:(...e)=>e.reduce(re,t)};return t}function re(e,t){return t(e)}function ae(e){return ne(t=>function t(n=0,r=e.op){const a=e.links[n];if(!a)throw new Error("No more links to execute - did you forget to add an ending link?");return a({op:r,next:e=>t(n+1,e)})}().subscribe(t))}function se(e){return Array.isArray(e)?e:[e]}function oe(e){return!!e&&!Array.isArray(e)&&"object"==typeof e}"function"==typeof Symbol&&Symbol.asyncIterator;const ie=e=>e();function ue(e=0){return new Promise(t=>setTimeout(t,e))}var ce=G(ee(),1),le=G(te(),1),de=class e extends Error{constructor(t,n){var r,a;const s=null==n?void 0:n.cause;super(t,{cause:s}),(0,ce.default)(this,"cause",void 0),(0,ce.default)(this,"shape",void 0),(0,ce.default)(this,"data",void 0),(0,ce.default)(this,"meta",void 0),this.meta=null==n?void 0:n.meta,this.cause=s,this.shape=null==n||null===(r=n.result)||void 0===r?void 0:r.error,this.data=null==n||null===(a=n.result)||void 0===a?void 0:a.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,e.prototype)}static from(t,n={}){const r=t;return function(e){return e instanceof de}(r)?(n.meta&&(r.meta=(0,le.default)((0,le.default)({},r.meta),n.meta)),r):oe(a=r)&&oe(a.error)&&"number"==typeof a.error.code&&"string"==typeof a.error.message?new e(r.error.message,(0,le.default)((0,le.default)({},n),{},{result:r})):new e("string"==typeof(s=r)?s:oe(s)&&"string"==typeof s.message?s.message:"Unknown error",(0,le.default)((0,le.default)({},n),{},{cause:r}));var a,s}};function pe(e){return e?"input"in e?e:{input:e,output:e}:{input:{serialize:e=>e,deserialize:e=>e},output:{serialize:e=>e,deserialize:e=>e}}}const fe=e=>"function"==typeof e;var he=G(te(),1);const me={query:"GET",mutation:"POST",subscription:"PATCH"};function _e(e){return"input"in e?e.transformer.input.serialize(e.input):function(e){const t={};for(let n=0;n<e.length;n++){const r=e[n];t[n]=r}return t}(e.inputs.map(t=>e.transformer.input.serialize(t)))}const ge=e=>{const t=e.url.split("?");let n=t[0].replace(/\/$/,"")+"/"+e.path;const r=[];if(t[1]&&r.push(t[1]),"inputs"in e&&r.push("batch=1"),"query"===e.type||"subscription"===e.type){const t=_e(e);void 0!==t&&"POST"!==e.methodOverride&&r.push(`input=${encodeURIComponent(JSON.stringify(t))}`)}return r.length&&(n+="?"+r.join("&")),n},ve=e=>{if("query"===e.type&&"POST"!==e.methodOverride)return;const t=_e(e);return void 0!==t?JSON.stringify(t):void 0};var ye=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const Ae=e=>{var t;if(null==e?void 0:e.aborted){if(null===(t=e.throwIfAborted)||void 0===t||t.call(e),"undefined"!=typeof DOMException)throw new DOMException("AbortError","AbortError");throw new ye}};G(te(),1);var be=Object.create,xe=Object.defineProperty,ke=Object.getOwnPropertyDescriptor,Ce=Object.getOwnPropertyNames,we=Object.getPrototypeOf,Ee=Object.prototype.hasOwnProperty,Me=(e,t)=>function(){return t||(0,e[Ce(e)[0]])((t={exports:{}}).exports,t),t.exports},Te=(e,t,n)=>(n=null!=e?be(we(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var a,s=Ce(t),o=0,i=s.length;o<i;o++)a=s[o],Ee.call(e,a)||undefined===a||xe(e,a,{get:(e=>t[e]).bind(null,a),enumerable:!(r=ke(t,a))||r.enumerable});return e})(!t&&e&&e.__esModule?n:xe(n,"default",{value:e,enumerable:!0}),e));const je=()=>{},Se=e=>{Object.freeze&&Object.freeze(e)};function Ne(e,t,n){var r;const a=t.join(".");return null!==(r=n[a])&&void 0!==r||(n[a]=new Proxy(je,{get(r,a){if("string"==typeof a&&"then"!==a)return Ne(e,[...t,a],n)},apply(n,r,a){const s=t[t.length-1];let o={args:a,path:t};return"call"===s?o={args:a.length>=2?[a[1]]:[],path:t.slice(0,-1)}:"apply"===s&&(o={args:a.length>=2?a[1]:[],path:t.slice(0,-1)}),Se(o.args),Se(o.path),e(o)}})),n[a]}const Oe=e=>Ne(e,[],Object.create(null));var De=Me({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(e){return t.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Ie=Me({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=De().default;t.exports=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=n(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},t.exports.__esModule=!0,t.exports.default=t.exports}}),Be=Me({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=De().default,r=Ie();t.exports=function(e){var t=r(e,"string");return"symbol"==n(t)?t:t+""},t.exports.__esModule=!0,t.exports.default=t.exports}}),Pe=Me({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=Be();t.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},t.exports.__esModule=!0,t.exports.default=t.exports}}),Le=Me({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=Pe();function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}t.exports=function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?r(Object(a),!0).forEach(function(t){n(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):r(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e},t.exports.__esModule=!0,t.exports.default=t.exports}});Te(Le(),1);Te(Pe(),1),Error;Error;var ze=Te(Le(),1),Ze=class extends Error{constructor(){super("Unable to transform response from server")}};function Re(e,t){let n;try{n=function(e,t){if("error"in e){const n=t.deserialize(e.error);return{ok:!1,error:(0,ze.default)((0,ze.default)({},e),{},{error:n})}}return{ok:!0,result:(0,ze.default)((0,ze.default)({},e.result),(!e.result.type||"data"===e.result.type)&&{type:"data",data:t.deserialize(e.result.data)})}}(e,t)}catch(e){throw new Ze}if(!(n.ok||oe(n.error.error)&&"number"==typeof n.error.error.code))throw new Ze;if(n.ok&&!oe(n.result))throw new Ze;return n}Te(Le(),1),Symbol("lazy"),Symbol();const Ue=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function qe(e){let t=null,n=null;function r(){const r=function(t){const n=[[]];let r=0;for(;;){const o=t[r];if(!o)break;const i=n[n.length-1];var a,s;o.aborted?(null===(a=o.reject)||void 0===a||a.call(o,new Error("Aborted")),r++):e.validate(i.concat(o).map(e=>e.key))?(i.push(o),r++):0!==i.length?n.push([]):(null===(s=o.reject)||void 0===s||s.call(o,new Error("Input is too big for a single dispatch")),r++)}return n}(t);clearTimeout(n),n=null,t=null;for(const t of r){if(!t.length)continue;const n={items:t};for(const e of t)e.batch=n;e.fetch(n.items.map(e=>e.key)).then(async e=>{await Promise.all(e.map(async(e,t)=>{const r=n.items[t];try{var a;const t=await Promise.resolve(e);null===(a=r.resolve)||void 0===a||a.call(r,t)}catch(e){var s;null===(s=r.reject)||void 0===s||s.call(r,e)}r.batch=null,r.reject=null,r.resolve=null}));for(const e of n.items){var t;null===(t=e.reject)||void 0===t||t.call(e,new Error("Missing result")),e.batch=null}}).catch(e=>{for(const r of n.items){var t;null===(t=r.reject)||void 0===t||t.call(r,e),r.batch=null}})}}return{load:function(e){var a;const s={aborted:!1,key:e,batch:null,resolve:Ue,reject:Ue},o=new Promise((e,n)=>{var r;s.reject=n,s.resolve=e,null!==(r=t)&&void 0!==r||(t=[]),t.push(s)});return null!==(a=n)&&void 0!==a||(n=setTimeout(r)),o}}}var Ye=G(te(),1);function Fe(e){var t,n;const r=function(e){return{url:e.url.toString(),fetch:e.fetch,transformer:pe(e.transformer),methodOverride:e.methodOverride}}(e),a=null!==(t=e.maxURLLength)&&void 0!==t?t:1/0,s=null!==(n=e.maxItems)&&void 0!==n?n:1/0;return()=>{const t=t=>({validate(e){if(a===1/0&&s===1/0)return!0;if(e.length>s)return!1;const n=e.map(e=>e.path).join(","),o=e.map(e=>e.input);return ge((0,Ye.default)((0,Ye.default)({},r),{},{type:t,path:n,inputs:o,signal:null})).length<=a},async fetch(n){const a=n.map(e=>e.path).join(","),s=n.map(e=>e.input),o=function(...e){const t=new AbortController,n=e.length;let r=0;const a=()=>{++r===n&&t.abort()};for(const t of e)(null==t?void 0:t.aborted)?a():null==t||t.addEventListener("abort",a,{once:!0});return t.signal}(...n.map(e=>e.signal)),i=await(e=>async function(e){const t={},n=await async function(e){var t;Ae(e.signal);const n=e.getUrl(e),r=e.getBody(e),{type:a}=e,s=await(async()=>{const t=await e.headers();return Symbol.iterator in t?Object.fromEntries(t):t})(),o=(0,he.default)((0,he.default)((0,he.default)({},e.contentTypeHeader?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0),s);return function(e){if(e)return e;if("undefined"!=typeof window&&fe(window.fetch))return window.fetch;if("undefined"!=typeof globalThis&&fe(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}(e.fetch)(n,{method:null!==(t=e.methodOverride)&&void 0!==t?t:me[a],signal:e.signal,body:r,headers:o})}(e);t.response=n;const r=await n.json();return t.responseJSON=r,{json:r,meta:t}}((0,he.default)((0,he.default)({},e),{},{contentTypeHeader:"application/json",getUrl:ge,getBody:ve})))((0,Ye.default)((0,Ye.default)({},r),{},{path:a,inputs:s,type:t,headers:()=>e.headers?"function"==typeof e.headers?e.headers({opList:n}):e.headers:{},signal:o}));return(Array.isArray(i.json)?i.json:n.map(()=>i.json)).map(e=>({meta:i.meta,json:e}))}}),n={query:qe(t("query")),mutation:qe(t("mutation"))};return({op:e})=>ne(t=>{if("subscription"===e.type)throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");let a;return n[e.type].load(e).then(e=>{a=e;const n=Re(e.json,r.transformer.output);n.ok?(t.next({context:e.meta,result:n.result}),t.complete()):t.error(de.from(n.error,{meta:e.meta}))}).catch(e=>{t.error(de.from(e,{meta:null==a?void 0:a.meta}))}),()=>{}})}}function $e(e){let t=e;const n=[],r=ne(e=>((e=>{void 0!==t&&e.next(t),n.push(e)})(e),()=>{(e=>{n.splice(n.indexOf(e),1)})(e)}));return r.next=e=>{if(t!==e){t=e;for(const t of n)t.next(e)}},r.get=()=>t,r}G(te(),1),Symbol();const He={enabled:!1,closeMs:0},Ve={enabled:!1,pongTimeoutMs:1e3,intervalMs:5e3},We=e=>0===e?0:Math.min(1e3*2**e,3e4),Qe=(e,...t)=>"function"==typeof e?e(...t):e;var Ge=G(ee(),1),Ke=class e extends Error{constructor(t){super(t.message,{cause:t.cause}),this.name="TRPCWebSocketClosedError",Object.setPrototypeOf(this,e.prototype)}},Je=class{constructor(e,t){this.onTimeout=e,this.timeoutMs=t,(0,Ge.default)(this,"timeout",void 0)}reset(){this.timeout&&(clearTimeout(this.timeout),this.timeout=setTimeout(this.onTimeout,this.timeoutMs))}start(){clearTimeout(this.timeout),this.timeout=setTimeout(this.onTimeout,this.timeoutMs)}stop(){clearTimeout(this.timeout),this.timeout=void 0}};function Xe(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var et=G(ee(),1),tt=class{constructor(){(0,et.default)(this,"outgoingRequests",new Array),(0,et.default)(this,"pendingRequests",{})}register(e,t){const{promise:n,resolve:r}=Xe();return this.outgoingRequests.push({id:String(e.id),message:e,end:n,callbacks:{next:t.next,complete:()=>{t.complete(),r()},error:e=>{t.error(e),r()}}}),()=>{this.delete(e.id),t.complete(),r()}}delete(e){null!==e&&(this.outgoingRequests=this.outgoingRequests.filter(({id:t})=>t!==String(e)),delete this.pendingRequests[String(e)])}flush(){const e=this.outgoingRequests;this.outgoingRequests=[];for(const t of e)this.pendingRequests[t.id]=t;return e}getPendingRequests(){return Object.values(this.pendingRequests)}getPendingRequest(e){return null===e?null:this.pendingRequests[String(e)]}getOutgoingRequests(){return this.outgoingRequests}getRequests(){return[...this.getOutgoingRequests().map(e=>({state:"outgoing",message:e.message,end:e.end,callbacks:e.callbacks})),...this.getPendingRequests().map(e=>({state:"pending",message:e.message,end:e.end,callbacks:e.callbacks}))]}hasPendingRequests(){return this.getPendingRequests().length>0}hasPendingSubscriptions(){return this.getPendingRequests().some(e=>"subscription"===e.message.method)}hasOutgoingRequests(){return this.outgoingRequests.length>0}},nt=G(ee(),1);function rt(e,{intervalMs:t,pongTimeoutMs:n}){let r,a;function s(){r=setTimeout(()=>{e.send("PING"),a=setTimeout(()=>{e.close()},n)},t)}e.addEventListener("open",s),e.addEventListener("message",({data:e})=>{clearTimeout(r),s(),"PONG"===e&&(clearTimeout(a),clearTimeout(r),s())}),e.addEventListener("close",()=>{clearTimeout(r),clearTimeout(a)})}var at=class e{constructor(t){var n;if((0,nt.default)(this,"id",++e.connectCount),(0,nt.default)(this,"WebSocketPonyfill",void 0),(0,nt.default)(this,"urlOptions",void 0),(0,nt.default)(this,"keepAliveOpts",void 0),(0,nt.default)(this,"wsObservable",$e(null)),(0,nt.default)(this,"openPromise",null),this.WebSocketPonyfill=null!==(n=t.WebSocketPonyfill)&&void 0!==n?n:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=t.urlOptions,this.keepAliveOpts=t.keepAlive}get ws(){return this.wsObservable.get()}set ws(e){this.wsObservable.next(e)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var t=this;if(t.openPromise)return t.openPromise;t.id=++e.connectCount;const n=async function(e){const t=await Qe(e.url);if(!e.connectionParams)return t;const n=t.includes("?")?"&":"?";return t+`${n}connectionParams=1`}(t.urlOptions).then(e=>new t.WebSocketPonyfill(e));t.openPromise=n.then(async e=>{t.ws=e,e.addEventListener("message",function({data:e}){"PING"===e&&this.send("PONG")}),t.keepAliveOpts.enabled&&rt(e,t.keepAliveOpts),e.addEventListener("close",()=>{t.ws===e&&(t.ws=null)}),await function(e){const{promise:t,resolve:n,reject:r}=Xe();return e.addEventListener("open",()=>{e.removeEventListener("error",r),n()}),e.addEventListener("error",r),t}(e),t.urlOptions.connectionParams&&e.send(await async function(e){const t={method:"connectionParams",data:await Qe(e)};return JSON.stringify(t)}(t.urlOptions.connectionParams))});try{await t.openPromise}finally{t.openPromise=null}}async close(){try{await this.openPromise}finally{var e;null===(e=this.ws)||void 0===e||e.close()}}};(0,nt.default)(at,"connectCount",0);var st=G(ee(),1),ot=G(te(),1),it=class{constructor(e){var t;(0,st.default)(this,"connectionState",void 0),(0,st.default)(this,"allowReconnect",!1),(0,st.default)(this,"requestManager",new tt),(0,st.default)(this,"activeConnection",void 0),(0,st.default)(this,"reconnectRetryDelay",void 0),(0,st.default)(this,"inactivityTimeout",void 0),(0,st.default)(this,"callbacks",void 0),(0,st.default)(this,"lazyMode",void 0),(0,st.default)(this,"reconnecting",null),this.callbacks={onOpen:e.onOpen,onClose:e.onClose,onError:e.onError};const n=(0,ot.default)((0,ot.default)({},He),e.lazy);this.inactivityTimeout=new Je(()=>{this.requestManager.hasOutgoingRequests()||this.requestManager.hasPendingRequests()?this.inactivityTimeout.reset():this.close().catch(()=>null)},n.closeMs),this.activeConnection=new at({WebSocketPonyfill:e.WebSocket,urlOptions:e,keepAlive:(0,ot.default)((0,ot.default)({},Ve),e.keepAlive)}),this.activeConnection.wsObservable.subscribe({next:e=>{e&&this.setupWebSocketListeners(e)}}),this.reconnectRetryDelay=null!==(t=e.retryDelayMs)&&void 0!==t?t:We,this.lazyMode=n.enabled,this.connectionState=$e({type:"state",state:n.enabled?"idle":"connecting",error:null}),this.lazyMode||this.open().catch(()=>null)}async open(){var e=this;e.allowReconnect=!0,"connecting"!==e.connectionState.get().state&&e.connectionState.next({type:"state",state:"connecting",error:null});try{await e.activeConnection.open()}catch(t){return e.reconnect(new Ke({message:"Initialization error",cause:t})),e.reconnecting}}async close(){var e=this;e.allowReconnect=!1,e.inactivityTimeout.stop();const t=[];for(const n of e.requestManager.getRequests())"subscription"===n.message.method?n.callbacks.complete():"outgoing"===n.state?n.callbacks.error(de.from(new Ke({message:"Closed before connection was established"}))):t.push(n.end);await Promise.all(t).catch(()=>null),await e.activeConnection.close().catch(()=>null),e.connectionState.next({type:"state",state:"idle",error:null})}request({op:{id:e,type:t,path:n,input:r,signal:a},transformer:s,lastEventId:o}){return ne(i=>{const u=this.batchSend({id:e,method:t,params:{input:s.input.serialize(r),path:n,lastEventId:o}},(0,ot.default)((0,ot.default)({},i),{},{next(e){const t=Re(e,s.output);t.ok?i.next({result:t.result}):i.error(de.from(t.error))}}));return()=>{u(),"subscription"===t&&this.activeConnection.isOpen()&&this.send({id:e,method:"subscription.stop"}),null==a||a.removeEventListener("abort",u)}})}get connection(){return(e=this.activeConnection).isOpen()?{id:e.id,state:"open",ws:e.ws}:e.isClosed()?{id:e.id,state:"closed",ws:e.ws}:e.ws?{id:e.id,state:"connecting",ws:e.ws}:null;var e}reconnect(e){var t=this;if(this.connectionState.next({type:"state",state:"connecting",error:de.from(e)}),this.reconnecting)return;const n=async e=>{try{await ue(t.reconnectRetryDelay(e)),t.allowReconnect&&(await t.activeConnection.close(),await t.activeConnection.open(),t.requestManager.hasPendingRequests()&&t.send(t.requestManager.getPendingRequests().map(({message:e})=>e))),t.reconnecting=null}catch(t){await n(e+1)}};this.reconnecting=n(0)}setupWebSocketListeners(e){var t=this;const n=e=>{const t=this.requestManager.getPendingRequests();for(const{message:n,callbacks:r}of t)"subscription"!==n.method&&(r.error(de.from(null!=e?e:new Ke({message:"WebSocket closed",cause:e}))),this.requestManager.delete(n.id))};e.addEventListener("open",()=>{ie(async()=>{var e,n;t.lazyMode&&t.inactivityTimeout.start(),null===(e=(n=t.callbacks).onOpen)||void 0===e||e.call(n),t.connectionState.next({type:"state",state:"pending",error:null})}).catch(t=>{e.close(3e3),n(t)})}),e.addEventListener("message",({data:e})=>{if(this.inactivityTimeout.reset(),"string"!=typeof e||["PING","PONG"].includes(e))return;const t=JSON.parse(e);"method"in t?this.handleIncomingRequest(t):this.handleResponseMessage(t)}),e.addEventListener("close",e=>{var t,r;n(e),null===(t=(r=this.callbacks).onClose)||void 0===t||t.call(r,e),this.lazyMode&&!this.requestManager.hasPendingSubscriptions()||this.reconnect(new Ke({message:"WebSocket closed",cause:e}))}),e.addEventListener("error",e=>{var t,r;n(e),null===(t=(r=this.callbacks).onError)||void 0===t||t.call(r,e),this.reconnect(new Ke({message:"WebSocket closed",cause:e}))})}handleResponseMessage(e){const t=this.requestManager.getPendingRequest(e.id);if(!t)return;t.callbacks.next(e);let n=!0;"result"in e&&"subscription"===t.message.method&&("data"===e.result.type&&(t.message.params.lastEventId=e.result.id),"stopped"!==e.result.type&&(n=!1)),n&&(t.callbacks.complete(),this.requestManager.delete(e.id))}handleIncomingRequest(e){"reconnect"===e.method&&this.reconnect(new Ke({message:"Server requested reconnect"}))}send(e){if(!this.activeConnection.isOpen())throw new Error("Active connection is not open");const t=e instanceof Array?e:[e];this.activeConnection.ws.send(JSON.stringify(1===t.length?t[0]:t))}batchSend(e,t){var n=this;return this.inactivityTimeout.reset(),ie(async()=>{n.activeConnection.isOpen()||await n.open(),await ue(0),n.requestManager.hasOutgoingRequests()&&n.send(n.requestManager.flush().map(({message:e})=>e))}).catch(n=>{this.requestManager.delete(e.id),t.error(de.from(n))}),this.requestManager.register(e,t)}};function ut(e){const{client:t}=e,n=pe(e.transformer);return()=>({op:e})=>ne(r=>{const a="subscription"===e.type?t.connectionState.subscribe({next(t){r.next({result:t,context:e.context})}}):null,s=t.request({op:e,transformer:n}).subscribe(r);return()=>{s.unsubscribe(),null==a||a.unsubscribe()}})}var ct=G(ee(),1),lt=G(te(),1),dt=class{constructor(e){(0,ct.default)(this,"links",void 0),(0,ct.default)(this,"runtime",void 0),(0,ct.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(e=>e(this.runtime))}$request(e){var t;return ae({links:this.links,op:(0,lt.default)((0,lt.default)({},e),{},{context:null!==(t=e.context)&&void 0!==t?t:{},id:++this.requestId})}).pipe(e=>{let t=0,n=null;const r=[];return ne(a=>(t++,r.push(a),n||(n=e.subscribe({next(e){for(const n of r){var t;null===(t=n.next)||void 0===t||t.call(n,e)}},error(e){for(const n of r){var t;null===(t=n.error)||void 0===t||t.call(n,e)}},complete(){for(const t of r){var e;null===(e=t.complete)||void 0===e||e.call(t)}}})),{unsubscribe(){t--,function(){if(0===t&&n){const e=n;n=null,e.unsubscribe()}}();const e=r.findIndex(e=>e===a);e>-1&&r.splice(e,1)}}))})}async requestAsPromise(e){try{const t=this.$request(e);return(await function(e){const t=new AbortController;return new Promise((n,r)=>{let a=!1;function s(){a||(a=!0,o.unsubscribe())}t.signal.addEventListener("abort",()=>{r(t.signal.reason)});const o=e.subscribe({next(e){a=!0,n(e),s()},error(e){r(e)},complete(){t.abort(),s()}})})}(t)).result.data}catch(e){throw de.from(e)}}query(e,t,n){return this.requestAsPromise({type:"query",path:e,input:t,context:null==n?void 0:n.context,signal:null==n?void 0:n.signal})}mutation(e,t,n){return this.requestAsPromise({type:"mutation",path:e,input:t,context:null==n?void 0:n.context,signal:null==n?void 0:n.signal})}subscription(e,t,n){return this.$request({type:"subscription",path:e,input:t,context:n.context,signal:n.signal}).subscribe({next(e){switch(e.result.type){case"state":var t;null===(t=n.onConnectionStateChange)||void 0===t||t.call(n,e.result);break;case"started":var r;null===(r=n.onStarted)||void 0===r||r.call(n,{context:e.context});break;case"stopped":var a;null===(a=n.onStopped)||void 0===a||a.call(n);break;case"data":case void 0:var s;null===(s=n.onData)||void 0===s||s.call(n,e.result.data)}},error(e){var t;null===(t=n.onError)||void 0===t||t.call(n,e)},complete(){var e;null===(e=n.onComplete)||void 0===e||e.call(n)}})}};const pt=Symbol.for("trpc_untypedClient"),ft={query:"query",mutate:"mutation",subscribe:"subscription"};G(te(),1),G(te(),1),G(Q({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then(function(e){return{value:e,done:t}})}return(n=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new n(e)}t.exports=function(e){var t,r,a,s=2;for("undefined"!=typeof Symbol&&(r=Symbol.asyncIterator,a=Symbol.iterator);s--;){if(r&&null!=(t=e[r]))return t.call(e);if(a&&null!=(t=e[a]))return new n(t.call(e));r="@@asyncIterator",a="@@iterator"}throw new TypeError("Object is not async iterable")},t.exports.__esModule=!0,t.exports.default=t.exports}})(),1),G(te(),1);var ht=Q({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){t.exports=function(){var e="function"==typeof SuppressedError?SuppressedError:function(e,t){var n=Error();return n.name="SuppressedError",n.error=e,n.suppressed=t,n},t={},n=[];function r(e,t){if(null!=t){if(Object(t)!==t)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(e)var r=t[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(void 0===r&&(r=t[Symbol.dispose||Symbol.for("Symbol.dispose")],e))var a=r;if("function"!=typeof r)throw new TypeError("Object is not disposable.");a&&(r=function(){try{a.call(t)}catch(e){return Promise.reject(e)}}),n.push({v:t,d:r,a:e})}else e&&n.push({d:t,a:e});return t}return{e:t,u:r.bind(null,!1),a:r.bind(null,!0),d:function(){var r,a=this.e,s=0;function o(){for(;r=n.pop();)try{if(!r.a&&1===s)return s=0,n.push(r),Promise.resolve().then(o);if(r.d){var e=r.d.call(r.v);if(r.a)return s|=2,Promise.resolve(e).then(o,i)}else s|=1}catch(e){return i(e)}if(1===s)return a!==t?Promise.reject(a):Promise.resolve();if(a!==t)throw a}function i(n){return a=a!==t?new e(n,a):n,o()}return o()}}},t.exports.__esModule=!0,t.exports.default=t.exports}}),mt=Q({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){t.exports=function(e,t){this.v=e,this.k=t},t.exports.__esModule=!0,t.exports.default=t.exports}}),_t=Q({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var n=mt();t.exports=function(e){return new n(e,0)},t.exports.__esModule=!0,t.exports.default=t.exports}}),gt=Q({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var n=mt();function r(e){var t,r;function a(t,r){try{var o=e[t](r),i=o.value,u=i instanceof n;Promise.resolve(u?i.v:i).then(function(n){if(u){var r="return"===t?"return":"next";if(!i.k||n.done)return a(r,n);n=e[r](n).value}s(o.done?"return":"normal",n)},function(e){a("throw",e)})}catch(e){s("throw",e)}}function s(e,n){switch(e){case"return":t.resolve({value:n,done:!0});break;case"throw":t.reject(n);break;default:t.resolve({value:n,done:!1})}(t=t.next)?a(t.key,t.arg):r=null}this._invoke=function(e,n){return new Promise(function(s,o){var i={key:e,arg:n,resolve:s,reject:o,next:null};r?r=r.next=i:(t=r=i,a(e,n))})},"function"!=typeof e.return&&(this.return=void 0)}r.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},r.prototype.next=function(e){return this._invoke("next",e)},r.prototype.throw=function(e){return this._invoke("throw",e)},r.prototype.return=function(e){return this._invoke("return",e)},t.exports=function(e){return function(){return new r(e.apply(this,arguments))}},t.exports.__esModule=!0,t.exports.default=t.exports}});async function vt(e){await async function(){if("undefined"!=typeof global){const e=global;if(void 0===e.WebSocket){const{WebSocket:t}=await n.e(621).then(n.t.bind(n,621,19));e.WebSocket=t}}}(),function({reporter:e}){"undefined"!=typeof process&&(process.env.NODE_TLS_REJECT_UNAUTHORIZED="0",e?.ignoreLogMessage("Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable"))}({reporter:e.reporter});const t=new it(e),r=function(e,t){try{return new URL(e,t)}catch{throw new Error(`Invalid URL: "${e}", base: ""`)}}(e.url),a="wss:"===r.protocol;r.protocol=a?"https:":"http:";const s=r.toString().replace(/\/$/,""),o=function(e){return function(e){const t=Oe(({path:t,args:n})=>{const r=[...t],a=(s=r.pop(),ft[s]);var s;const o=r.join(".");return e[a](o,...n)});return n=n=>n===pt?e:t[n],new Proxy(je,{get(e,t){if("then"!==t)return n(t)}});var n}(new dt(e))}({links:[(i={condition:e=>"subscription"===e.type,true:ut({client:t}),false:Fe({url:s})},e=>{const t=se(i.true).map(t=>t(e)),n=se(i.false).map(t=>t(e));return e=>ne(r=>{const a=i.condition(e.op)?t:n;return ae({op:e.op,links:a}).subscribe(r)})})]});var i;return new Proxy({close:async()=>{await t.close()}},{get:(e,t)=>e.hasOwnProperty(t)?e[t]:o[t]})}G(ht(),1),G(_t(),1),G(gt(),1),G(te(),1),async function(){if(!window.__cloudpack)throw new Error("Cloudpack not found on window");const{pageSessionContext:e}=window.__cloudpack;if(!e)throw new Error("Session context not found on window.__cloudpack");const{apiUrl:t,currentSequence:n,sessionId:o}=e,i=await vt({url:t});o===await i.getSessionId.query()&&console.log("[Cloudpack] socket opened"),i.onDataChanged.subscribe(M.reloadCountSource,{onData:e=>{Number(e)>n&&window.location.reload()}});const u=document.createElement("div");u.id=j.elementIds.root,(0,a.render)((0,r.jsx)(q,{children:(0,r.jsx)(s.CloudpackProvider,{client:i,children:(0,r.jsx)(z,{})})}),u),document.body.appendChild(u)}()},415:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},437:e=>{var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},552:(e,t,n)=>{n.d(t,{Component:()=>w,Fragment:()=>C,cloneElement:()=>V,createContext:()=>W,createElement:()=>b,createRef:()=>k,hydrate:()=>H,options:()=>a,render:()=>$,toChildArray:()=>D});var r,a,s,o,i,u,c,l,d,p,f,h,m={},_=[],g=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,v=Array.isArray;function y(e,t){for(var n in t)e[n]=t[n];return e}function A(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function b(e,t,n){var a,s,o,i={};for(o in t)"key"==o?a=t[o]:"ref"==o?s=t[o]:i[o]=t[o];if(arguments.length>2&&(i.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===i[o]&&(i[o]=e.defaultProps[o]);return x(e,i,a,s,null)}function x(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++s:o,__i:-1,__u:0};return null==o&&null!=a.vnode&&a.vnode(i),i}function k(){return{current:null}}function C(e){return e.children}function w(e,t){this.props=e,this.context=t}function E(e,t){if(null==t)return e.__?E(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?E(e):null}function M(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return M(e)}}function T(e){(!e.__d&&(e.__d=!0)&&o.push(e)&&!j.__r++||i!=a.debounceRendering)&&((i=a.debounceRendering)||u)(j)}function j(){for(var e,t,n,r,s,i,u,l=1;o.length;)o.length>l&&o.sort(c),e=o.shift(),l=o.length,e.__d&&(n=void 0,s=(r=(t=e).__v).__e,i=[],u=[],t.__P&&((n=y({},r)).__v=r.__v+1,a.vnode&&a.vnode(n),z(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[s]:null,i,null==s?E(r):s,!!(32&r.__u),u),n.__v=r.__v,n.__.__k[n.__i]=n,Z(i,n,u),n.__e!=s&&M(n)));j.__r=0}function S(e,t,n,r,a,s,o,i,u,c,l){var d,p,f,h,g,v,y=r&&r.__k||_,A=t.length;for(u=N(n,t,y,u,A),d=0;d<A;d++)null!=(f=n.__k[d])&&(p=-1==f.__i?m:y[f.__i]||m,f.__i=d,v=z(e,f,p,a,s,o,i,u,c,l),h=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&q(p.ref,null,f),l.push(f.ref,f.__c||h,f)),null==g&&null!=h&&(g=h),4&f.__u||p.__k===f.__k?u=O(f,u,e):"function"==typeof f.type&&void 0!==v?u=v:h&&(u=h.nextSibling),f.__u&=-7);return n.__e=g,u}function N(e,t,n,r,a){var s,o,i,u,c,l=n.length,d=l,p=0;for(e.__k=new Array(a),s=0;s<a;s++)null!=(o=t[s])&&"boolean"!=typeof o&&"function"!=typeof o?(u=s+p,(o=e.__k[s]="string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?x(null,o,null,null,null):v(o)?x(C,{children:o},null,null,null):null==o.constructor&&o.__b>0?x(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,i=null,-1!=(c=o.__i=I(o,n,u,d))&&(d--,(i=n[c])&&(i.__u|=2)),null==i||null==i.__v?(-1==c&&(a>l?p--:a<l&&p++),"function"!=typeof o.type&&(o.__u|=4)):c!=u&&(c==u-1?p--:c==u+1?p++:(c>u?p--:p++,o.__u|=4))):e.__k[s]=null;if(d)for(s=0;s<l;s++)null!=(i=n[s])&&!(2&i.__u)&&(i.__e==r&&(r=E(i)),Y(i,i));return r}function O(e,t,n){var r,a;if("function"==typeof e.type){for(r=e.__k,a=0;r&&a<r.length;a++)r[a]&&(r[a].__=e,t=O(r[a],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=E(e)),n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8==t.nodeType);return t}function D(e,t){return t=t||[],null==e||"boolean"==typeof e||(v(e)?e.some(function(e){D(e,t)}):t.push(e)),t}function I(e,t,n,r){var a,s,o=e.key,i=e.type,u=t[n];if(null===u&&null==e.key||u&&o==u.key&&i==u.type&&!(2&u.__u))return n;if(r>(null==u||2&u.__u?0:1))for(a=n-1,s=n+1;a>=0||s<t.length;){if(a>=0){if((u=t[a])&&!(2&u.__u)&&o==u.key&&i==u.type)return a;a--}if(s<t.length){if((u=t[s])&&!(2&u.__u)&&o==u.key&&i==u.type)return s;s++}}return-1}function B(e,t,n){"-"==t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||g.test(t)?n:n+"px"}function P(e,t,n,r,a){var s,o;e:if("style"==t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||B(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||B(e.style,t,n[t])}else if("o"==t[0]&&"n"==t[1])s=t!=(t=t.replace(l,"$1")),o=t.toLowerCase(),t=o in e||"onFocusOut"==t||"onFocusIn"==t?o.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?r?n.u=r.u:(n.u=d,e.addEventListener(t,s?f:p,s)):e.removeEventListener(t,s?f:p,s);else{if("http://www.w3.org/2000/svg"==a)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function L(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=d++;else if(t.t<n.u)return;return n(a.event?a.event(t):t)}}}function z(e,t,n,r,s,o,i,u,c,l){var d,p,f,h,m,_,g,b,x,k,E,M,T,j,N,O,D,I=t.type;if(null!=t.constructor)return null;128&n.__u&&(c=!!(32&n.__u),o=[u=t.__e=n.__e]),(d=a.__b)&&d(t);e:if("function"==typeof I)try{if(b=t.props,x="prototype"in I&&I.prototype.render,k=(d=I.contextType)&&r[d.__c],E=d?k?k.props.value:d.__:r,n.__c?g=(p=t.__c=n.__c).__=p.__E:(x?t.__c=p=new I(b,E):(t.__c=p=new w(b,E),p.constructor=I,p.render=F),k&&k.sub(p),p.props=b,p.state||(p.state={}),p.context=E,p.__n=r,f=p.__d=!0,p.__h=[],p._sb=[]),x&&null==p.__s&&(p.__s=p.state),x&&null!=I.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=y({},p.__s)),y(p.__s,I.getDerivedStateFromProps(b,p.__s))),h=p.props,m=p.state,p.__v=t,f)x&&null==I.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),x&&null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(x&&null==I.getDerivedStateFromProps&&b!==h&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(b,E),!p.__e&&null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(b,p.__s,E)||t.__v==n.__v){for(t.__v!=n.__v&&(p.props=b,p.state=p.__s,p.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),M=0;M<p._sb.length;M++)p.__h.push(p._sb[M]);p._sb=[],p.__h.length&&i.push(p);break e}null!=p.componentWillUpdate&&p.componentWillUpdate(b,p.__s,E),x&&null!=p.componentDidUpdate&&p.__h.push(function(){p.componentDidUpdate(h,m,_)})}if(p.context=E,p.props=b,p.__P=e,p.__e=!1,T=a.__r,j=0,x){for(p.state=p.__s,p.__d=!1,T&&T(t),d=p.render(p.props,p.state,p.context),N=0;N<p._sb.length;N++)p.__h.push(p._sb[N]);p._sb=[]}else do{p.__d=!1,T&&T(t),d=p.render(p.props,p.state,p.context),p.state=p.__s}while(p.__d&&++j<25);p.state=p.__s,null!=p.getChildContext&&(r=y(y({},r),p.getChildContext())),x&&!f&&null!=p.getSnapshotBeforeUpdate&&(_=p.getSnapshotBeforeUpdate(h,m)),O=d,null!=d&&d.type===C&&null==d.key&&(O=R(d.props.children)),u=S(e,v(O)?O:[O],t,n,r,s,o,i,u,c,l),p.base=t.__e,t.__u&=-161,p.__h.length&&i.push(p),g&&(p.__E=p.__=null)}catch(e){if(t.__v=null,c||null!=o)if(e.then){for(t.__u|=c?160:128;u&&8==u.nodeType&&u.nextSibling;)u=u.nextSibling;o[o.indexOf(u)]=null,t.__e=u}else for(D=o.length;D--;)A(o[D]);else t.__e=n.__e,t.__k=n.__k;a.__e(e,t,n)}else null==o&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):u=t.__e=U(n.__e,t,n,r,s,o,i,c,l);return(d=a.diffed)&&d(t),128&t.__u?void 0:u}function Z(e,t,n){for(var r=0;r<n.length;r++)q(n[r],n[++r],n[++r]);a.__c&&a.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){a.__e(e,t.__v)}})}function R(e){return"object"!=typeof e||null==e||e.__b&&e.__b>0?e:v(e)?e.map(R):y({},e)}function U(e,t,n,s,o,i,u,c,l){var d,p,f,h,_,g,y,b=n.props,x=t.props,k=t.type;if("svg"==k?o="http://www.w3.org/2000/svg":"math"==k?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=i)for(d=0;d<i.length;d++)if((_=i[d])&&"setAttribute"in _==!!k&&(k?_.localName==k:3==_.nodeType)){e=_,i[d]=null;break}if(null==e){if(null==k)return document.createTextNode(x);e=document.createElementNS(o,k,x.is&&x),c&&(a.__m&&a.__m(t,i),c=!1),i=null}if(null==k)b===x||c&&e.data==x||(e.data=x);else{if(i=i&&r.call(e.childNodes),b=n.props||m,!c&&null!=i)for(b={},d=0;d<e.attributes.length;d++)b[(_=e.attributes[d]).name]=_.value;for(d in b)if(_=b[d],"children"==d);else if("dangerouslySetInnerHTML"==d)f=_;else if(!(d in x)){if("value"==d&&"defaultValue"in x||"checked"==d&&"defaultChecked"in x)continue;P(e,d,null,_,o)}for(d in x)_=x[d],"children"==d?h=_:"dangerouslySetInnerHTML"==d?p=_:"value"==d?g=_:"checked"==d?y=_:c&&"function"!=typeof _||b[d]===_||P(e,d,_,b[d],o);if(p)c||f&&(p.__html==f.__html||p.__html==e.innerHTML)||(e.innerHTML=p.__html),t.__k=[];else if(f&&(e.innerHTML=""),S("template"==t.type?e.content:e,v(h)?h:[h],t,n,s,"foreignObject"==k?"http://www.w3.org/1999/xhtml":o,i,u,i?i[0]:n.__k&&E(n,0),c,l),null!=i)for(d=i.length;d--;)A(i[d]);c||(d="value","progress"==k&&null==g?e.removeAttribute("value"):null!=g&&(g!==e[d]||"progress"==k&&!g||"option"==k&&g!=b[d])&&P(e,d,g,b[d],o),d="checked",null!=y&&y!=e[d]&&P(e,d,y,b[d],o))}return e}function q(e,t,n){try{if("function"==typeof e){var r="function"==typeof e.__u;r&&e.__u(),r&&null==t||(e.__u=e(t))}else e.current=t}catch(e){a.__e(e,n)}}function Y(e,t,n){var r,s;if(a.unmount&&a.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||q(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){a.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(s=0;s<r.length;s++)r[s]&&Y(r[s],t,n||"function"!=typeof e.type);n||A(e.__e),e.__c=e.__=e.__e=void 0}function F(e,t,n){return this.constructor(e,n)}function $(e,t,n){var s,o,i,u;t==document&&(t=document.documentElement),a.__&&a.__(e,t),o=(s="function"==typeof n)?null:n&&n.__k||t.__k,i=[],u=[],z(t,e=(!s&&n||t).__k=b(C,null,[e]),o||m,m,t.namespaceURI,!s&&n?[n]:o?null:t.firstChild?r.call(t.childNodes):null,i,!s&&n?n:o?o.__e:t.firstChild,s,u),Z(i,e,u)}function H(e,t){$(e,t,H)}function V(e,t,n){var a,s,o,i,u=y({},e.props);for(o in e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)"key"==o?a=t[o]:"ref"==o?s=t[o]:u[o]=void 0===t[o]&&null!=i?i[o]:t[o];return arguments.length>2&&(u.children=arguments.length>3?r.call(arguments,2):n),x(e.type,u,a||e.key,s||e.ref,null)}function W(e){function t(e){var n,r;return this.getChildContext||(n=new Set,(r={})[t.__c]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&n.forEach(function(e){e.__e=!0,T(e)})},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}return t.__c="__cC"+h++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t}r=_.slice,a={__e:function(e,t,n,r){for(var a,s,o;t=t.__;)if((a=t.__c)&&!a.__)try{if((s=a.constructor)&&null!=s.getDerivedStateFromError&&(a.setState(s.getDerivedStateFromError(e)),o=a.__d),null!=a.componentDidCatch&&(a.componentDidCatch(e,r||{}),o=a.__d),o)return a.__E=a}catch(t){e=t}throw e}},s=0,w.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=y({},this.state),"function"==typeof e&&(e=e(y({},n),this.props)),e&&y(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),T(this))},w.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),T(this))},w.prototype.render=C,o=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=function(e,t){return e.__v.__b-t.__v.__b},j.__r=0,l=/(PointerCapture)$|Capture$/i,d=0,p=L(!1),f=L(!0),h=0},606:e=>{var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var s={},o=[],i=0;i<e.length;i++){var u=e[i],c=r.base?u[0]+r.base:u[0],l=s[c]||0,d="".concat(c," ").concat(l);s[c]=l+1;var p=n(d),f={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==p)t[p].references++,t[p].updater(f);else{var h=a(f,r);r.byIndex=i,t.splice(i,0,{identifier:d,updater:h,references:1})}o.push(d)}return o}function a(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,a){var s=r(e=e||[],a=a||{});return function(e){e=e||[];for(var o=0;o<s.length;o++){var i=n(s[o]);t[i].references--}for(var u=r(e,a),c=0;c<s.length;c++){var l=n(s[c]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}s=u}}},607:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var a=void 0!==n.layer;a&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,a&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var s=n.sourceMap;s&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},626:(e,t,n)=>{n.d(t,{default:()=>i});var r=n(25),a=n.n(r),s=n(191),o=n.n(s)()(a());o.push([e.id,".keDW8Dp6M_PKogstIGlg {\n position: fixed;\n pointer-events: none;\n background: transparent;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n z-index: var(--cp-zIndexBadge);\n overflow: hidden;\n}\n\n.wiFl5y3aYfqknNzV2wkC {\n display: flex;\n gap: 2px;\n height: 100%;\n width: 12px;\n cursor: move;\n margin-right: -4px;\n}\n\n.L7TZ7XUzFVL4XtqrGq4V {\n width: 2px;\n height: 100%;\n background: rgba(0, 0, 0, 0.2);\n}\n\n.yPxOTtYEtk30suNyVT_f {\n pointer-events: auto;\n /* This makes the element's children behave as if they're direct children of the next element up */\n display: contents;\n}\n\n/* badge root */\n.g8vMw44BD035wMgB4fi5 {\n position: absolute;\n bottom: 4px;\n right: 4px;\n font-size: 12px;\n display: inline-flex;\n gap: 8px;\n background: var(--cp-neutralTertiaryAlt);\n box-shadow: 0 0 12px -6px rgba(0, 0, 0, 0.75);\n border: 1px solid var(--cp-border);\n border-radius: 4px;\n height: 28px;\n flex-shrink: 0;\n justify-content: center;\n align-items: center;\n box-sizing: border-box;\n padding: 3px;\n padding-right: 8px;\n transition: background-color 0.2s ease-in-out;\n}\n.g8vMw44BD035wMgB4fi5.zHoa7JHokcPrDo9fUK7t {\n background: var(--cp-successMed);\n}\n.g8vMw44BD035wMgB4fi5.Jl_ahBnxzwLzgquDusZ6 {\n background: var(--cp-warningMed);\n}\n.g8vMw44BD035wMgB4fi5.xrMdFjTpTTv1b_9S_5z6 {\n background: var(--cp-errorMed);\n}\n\n/* short status + expand button (also used for chevron button) */\n.sNDf4Vc57GDSrCocrEM4 {\n border: none;\n border-radius: 3px;\n display: flex;\n align-self: stretch;\n align-items: center;\n justify-content: center;\n padding: 0;\n margin: 0;\n font: inherit;\n}\n.sNDf4Vc57GDSrCocrEM4:hover {\n filter: invert(0.1);\n}\n\n.DI7dbo1rgbopYUd5O8HW {\n font-weight: 600;\n background: rgba(255, 255, 255, 0.4);\n box-shadow: 2px 2px 3px -1px rgba(0, 0, 0, 0.15) inset;\n padding: 2px 8px;\n border-radius: 3px;\n}\n\n.XuyZoKa6W1UP6CkhLaKw {\n overflow: hidden;\n padding: 0;\n}\n.XuyZoKa6W1UP6CkhLaKw *:not(.pkF2KaBbsrwg9OaLE3UJ) {\n display: none;\n}\n\n.pkF2KaBbsrwg9OaLE3UJ {\n padding: 0 3px;\n}\n","",{version:3,sources:["webpack://./src/components/StatusBadge/StatusBadge.module.css"],names:[],mappings:"AAAA;EACE,eAAe;EACf,oBAAoB;EACpB,uBAAuB;EACvB,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;EACR,8BAA8B;EAC9B,gBAAgB;AAClB;;AAEA;EACE,aAAa;EACb,QAAQ;EACR,YAAY;EACZ,WAAW;EACX,YAAY;EACZ,kBAAkB;AACpB;;AAEA;EACE,UAAU;EACV,YAAY;EACZ,8BAA8B;AAChC;;AAEA;EACE,oBAAoB;EACpB,kGAAkG;EAClG,iBAAiB;AACnB;;AAEA,eAAe;AACf;EACE,kBAAkB;EAClB,WAAW;EACX,UAAU;EACV,eAAe;EACf,oBAAoB;EACpB,QAAQ;EACR,wCAAwC;EACxC,6CAA6C;EAC7C,kCAAkC;EAClC,kBAAkB;EAClB,YAAY;EACZ,cAAc;EACd,uBAAuB;EACvB,mBAAmB;EACnB,sBAAsB;EACtB,YAAY;EACZ,kBAAkB;EAClB,6CAA6C;AAC/C;AACA;EACE,gCAAgC;AAClC;AACA;EACE,gCAAgC;AAClC;AACA;EACE,8BAA8B;AAChC;;AAEA,gEAAgE;AAChE;EACE,YAAY;EACZ,kBAAkB;EAClB,aAAa;EACb,mBAAmB;EACnB,mBAAmB;EACnB,uBAAuB;EACvB,UAAU;EACV,SAAS;EACT,aAAa;AACf;AACA;EACE,mBAAmB;AACrB;;AAEA;EACE,gBAAgB;EAChB,oCAAoC;EACpC,sDAAsD;EACtD,gBAAgB;EAChB,kBAAkB;AACpB;;AAEA;EACE,gBAAgB;EAChB,UAAU;AACZ;AACA;EACE,aAAa;AACf;;AAEA;EACE,cAAc;AAChB",sourcesContent:[".fixedOverlay {\n position: fixed;\n pointer-events: none;\n background: transparent;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n z-index: var(--cp-zIndexBadge);\n overflow: hidden;\n}\n\n.gripArea {\n display: flex;\n gap: 2px;\n height: 100%;\n width: 12px;\n cursor: move;\n margin-right: -4px;\n}\n\n.grip {\n width: 2px;\n height: 100%;\n background: rgba(0, 0, 0, 0.2);\n}\n\n.contentSurface {\n pointer-events: auto;\n /* This makes the element's children behave as if they're direct children of the next element up */\n display: contents;\n}\n\n/* badge root */\n.badge {\n position: absolute;\n bottom: 4px;\n right: 4px;\n font-size: 12px;\n display: inline-flex;\n gap: 8px;\n background: var(--cp-neutralTertiaryAlt);\n box-shadow: 0 0 12px -6px rgba(0, 0, 0, 0.75);\n border: 1px solid var(--cp-border);\n border-radius: 4px;\n height: 28px;\n flex-shrink: 0;\n justify-content: center;\n align-items: center;\n box-sizing: border-box;\n padding: 3px;\n padding-right: 8px;\n transition: background-color 0.2s ease-in-out;\n}\n.badge.success {\n background: var(--cp-successMed);\n}\n.badge.warning {\n background: var(--cp-warningMed);\n}\n.badge.error {\n background: var(--cp-errorMed);\n}\n\n/* short status + expand button (also used for chevron button) */\n.button {\n border: none;\n border-radius: 3px;\n display: flex;\n align-self: stretch;\n align-items: center;\n justify-content: center;\n padding: 0;\n margin: 0;\n font: inherit;\n}\n.button:hover {\n filter: invert(0.1);\n}\n\n.buttonText {\n font-weight: 600;\n background: rgba(255, 255, 255, 0.4);\n box-shadow: 2px 2px 3px -1px rgba(0, 0, 0, 0.15) inset;\n padding: 2px 8px;\n border-radius: 3px;\n}\n\n.collapsed {\n overflow: hidden;\n padding: 0;\n}\n.collapsed *:not(.chevron) {\n display: none;\n}\n\n.chevron {\n padding: 0 3px;\n}\n"],sourceRoot:""}]),o.locals={fixedOverlay:"keDW8Dp6M_PKogstIGlg",gripArea:"wiFl5y3aYfqknNzV2wkC",grip:"L7TZ7XUzFVL4XtqrGq4V",contentSurface:"yPxOTtYEtk30suNyVT_f",badge:"g8vMw44BD035wMgB4fi5",success:"zHoa7JHokcPrDo9fUK7t",warning:"Jl_ahBnxzwLzgquDusZ6",error:"xrMdFjTpTTv1b_9S_5z6",button:"sNDf4Vc57GDSrCocrEM4",buttonText:"DI7dbo1rgbopYUd5O8HW",collapsed:"XuyZoKa6W1UP6CkhLaKw",chevron:"pkF2KaBbsrwg9OaLE3UJ"};const i=o},658:(e,t,n)=>{n.d(t,{useDraggable:()=>a});var r=n(790);function a(e){const{enabled:t,containerElementRef:n,dragElementRef:a}=e,[s,o]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{const e=n?.current,r=a?.current;if(!t||!e||!r)return;let s=0,i=0,u={x:0,y:0};const c=t=>{e.style.transform=`translate(${u.x+t.clientX-s}px, ${u.y+t.clientY-i}px)`},l=e=>{o(!1),u={x:u.x+e.clientX-s,y:u.y+e.clientY-i},r.releasePointerCapture(e.pointerId),r.removeEventListener("pointerup",l),r.removeEventListener("pointermove",c),e.preventDefault()},d=e=>{o(!0),s=e.clientX,i=e.clientY,r.setPointerCapture(e.pointerId),r.addEventListener("pointerup",l),r.addEventListener("pointermove",c),e.preventDefault()};return r.addEventListener("pointerdown",d),()=>{r.removeEventListener("pointerdown",d),r.removeEventListener("pointermove",c),r.removeEventListener("pointerup",l)}},[t,n,a]),{isDragging:s}}},750:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},784:(e,t,n)=>{n.d(t,{default:()=>i});var r=n(25),a=n.n(r),s=n(191),o=n.n(s)()(a());o.push([e.id,"/* Styles for all button variants (including link and custom) */\n.JgX5GbR8awQUNvf0SpeO {\n outline: transparent;\n position: relative;\n font-family: inherit;\n box-sizing: border-box;\n cursor: pointer;\n /* default to transparent background, black-ish text */\n background-color: var(--cp-buttonBg, transparent);\n color: var(--cp-buttonText, var(--cp-neutralPrimary));\n}\n.JgX5GbR8awQUNvf0SpeO:focus-visible {\n /* keyboard focus outline for all button variants */\n outline: var(--cp-outline);\n}\n.JgX5GbR8awQUNvf0SpeO:hover {\n /* no BG change on hover/active by default, but is customized by variants */\n background-color: var(--cp-buttonBgHover, transparent);\n /* default to slightly darker text on hover/active */\n color: var(--cp-buttonTextHover, var(--cp-neutralDark));\n}\n.JgX5GbR8awQUNvf0SpeO:active {\n background-color: var(--cp-buttonBgActive, transparent);\n /* reuse the hover color for text */\n color: var(--cp-buttonTextHover, var(--cp-neutralDark));\n}\n\n/* Styles for buttons other than link and custom */\n.kNx_iOK2UGZihfvlj187 {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n user-select: none;\n white-space: nowrap;\n height: 32px;\n}\n\n/*\nStyles for default and primary buttons.\nAnything that conflicts with link or iconOnly styles should go here.\nVarying colors should be handled with CSS variables.\n*/\n.IfHcd_mlcyjQMKFHdEpV {\n font-size: 14px;\n font-weight: 600;\n border: 1px solid var(--cp-buttonBorder, var(--cp-border));\n margin: 0;\n padding: 0px 16px;\n border-radius: 2px;\n min-width: 80px;\n}\n\n.tiYzESHvbNNoSm4ASCHg {\n --cp-buttonBg: white;\n --cp-buttonBgHover: var(--cp-neutralLighter);\n --cp-buttonBgActive: var(--cp-neutralLight);\n}\n\n.cdc4_xoyu5lt350lFjqA {\n --cp-buttonBorder: var(--cp-themePrimary);\n --cp-buttonBg: var(--cp-themePrimary);\n --cp-buttonBgActive: var(--cp-themeDark);\n --cp-buttonBgHover: var(--cp-themeDarkAlt);\n --cp-buttonText: white;\n --cp-buttonTextHover: white;\n}\n.cdc4_xoyu5lt350lFjqA:active {\n border-color: var(--cp-buttonBgActive);\n}\n.cdc4_xoyu5lt350lFjqA:hover {\n border-color: var(--cp-buttonBgHover);\n}\n\n.eIL_UrsiGfYnQqwosX2v {\n --cp-buttonBgActive: rgba(0, 0, 0, 0.2);\n --cp-buttonBgHover: rgba(0, 0, 0, 0.1);\n border: none;\n border-radius: 4px;\n width: 32px; /* matches height */\n padding: 0;\n}\n\n.NZ7Sk5QxxabNggVr0JJY {\n /* blue text (needs to be slightly darker to work on light gray backgrounds) */\n --cp-buttonText: var(--cp-themeDarkAlt);\n --cp-buttonTextHover: var(--cp-themeDarker);\n /* allow text wrapping */\n display: inline;\n text-align: start;\n margin: 0;\n padding: 0;\n border: none;\n text-decoration: underline;\n font-size: inherit;\n font-weight: inherit;\n /* This is often used for long file paths, so adding space makes it more readable */\n text-underline-offset: 2px;\n}\n.NZ7Sk5QxxabNggVr0JJY:focus-visible {\n outline-offset: 2px;\n}\n","",{version:3,sources:["webpack://./src/components/Button/Button.module.css"],names:[],mappings:"AAAA,+DAA+D;AAC/D;EACE,oBAAoB;EACpB,kBAAkB;EAClB,oBAAoB;EACpB,sBAAsB;EACtB,eAAe;EACf,sDAAsD;EACtD,iDAAiD;EACjD,qDAAqD;AACvD;AACA;EACE,mDAAmD;EACnD,0BAA0B;AAC5B;AACA;EACE,2EAA2E;EAC3E,sDAAsD;EACtD,oDAAoD;EACpD,uDAAuD;AACzD;AACA;EACE,uDAAuD;EACvD,mCAAmC;EACnC,uDAAuD;AACzD;;AAEA,kDAAkD;AAClD;EACE,oBAAoB;EACpB,mBAAmB;EACnB,uBAAuB;EACvB,QAAQ;EACR,iBAAiB;EACjB,mBAAmB;EACnB,YAAY;AACd;;AAEA;;;;CAIC;AACD;EACE,eAAe;EACf,gBAAgB;EAChB,0DAA0D;EAC1D,SAAS;EACT,iBAAiB;EACjB,kBAAkB;EAClB,eAAe;AACjB;;AAEA;EACE,oBAAoB;EACpB,4CAA4C;EAC5C,2CAA2C;AAC7C;;AAEA;EACE,yCAAyC;EACzC,qCAAqC;EACrC,wCAAwC;EACxC,0CAA0C;EAC1C,sBAAsB;EACtB,2BAA2B;AAC7B;AACA;EACE,sCAAsC;AACxC;AACA;EACE,qCAAqC;AACvC;;AAEA;EACE,uCAAuC;EACvC,sCAAsC;EACtC,YAAY;EACZ,kBAAkB;EAClB,WAAW,EAAE,mBAAmB;EAChC,UAAU;AACZ;;AAEA;EACE,8EAA8E;EAC9E,uCAAuC;EACvC,2CAA2C;EAC3C,wBAAwB;EACxB,eAAe;EACf,iBAAiB;EACjB,SAAS;EACT,UAAU;EACV,YAAY;EACZ,0BAA0B;EAC1B,kBAAkB;EAClB,oBAAoB;EACpB,mFAAmF;EACnF,0BAA0B;AAC5B;AACA;EACE,mBAAmB;AACrB",sourcesContent:["/* Styles for all button variants (including link and custom) */\n.root {\n outline: transparent;\n position: relative;\n font-family: inherit;\n box-sizing: border-box;\n cursor: pointer;\n /* default to transparent background, black-ish text */\n background-color: var(--cp-buttonBg, transparent);\n color: var(--cp-buttonText, var(--cp-neutralPrimary));\n}\n.root:focus-visible {\n /* keyboard focus outline for all button variants */\n outline: var(--cp-outline);\n}\n.root:hover {\n /* no BG change on hover/active by default, but is customized by variants */\n background-color: var(--cp-buttonBgHover, transparent);\n /* default to slightly darker text on hover/active */\n color: var(--cp-buttonTextHover, var(--cp-neutralDark));\n}\n.root:active {\n background-color: var(--cp-buttonBgActive, transparent);\n /* reuse the hover color for text */\n color: var(--cp-buttonTextHover, var(--cp-neutralDark));\n}\n\n/* Styles for buttons other than link and custom */\n.standard {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n user-select: none;\n white-space: nowrap;\n height: 32px;\n}\n\n/*\nStyles for default and primary buttons.\nAnything that conflicts with link or iconOnly styles should go here.\nVarying colors should be handled with CSS variables.\n*/\n.defaultPrimary {\n font-size: 14px;\n font-weight: 600;\n border: 1px solid var(--cp-buttonBorder, var(--cp-border));\n margin: 0;\n padding: 0px 16px;\n border-radius: 2px;\n min-width: 80px;\n}\n\n.default {\n --cp-buttonBg: white;\n --cp-buttonBgHover: var(--cp-neutralLighter);\n --cp-buttonBgActive: var(--cp-neutralLight);\n}\n\n.primary {\n --cp-buttonBorder: var(--cp-themePrimary);\n --cp-buttonBg: var(--cp-themePrimary);\n --cp-buttonBgActive: var(--cp-themeDark);\n --cp-buttonBgHover: var(--cp-themeDarkAlt);\n --cp-buttonText: white;\n --cp-buttonTextHover: white;\n}\n.primary:active {\n border-color: var(--cp-buttonBgActive);\n}\n.primary:hover {\n border-color: var(--cp-buttonBgHover);\n}\n\n.iconOnly {\n --cp-buttonBgActive: rgba(0, 0, 0, 0.2);\n --cp-buttonBgHover: rgba(0, 0, 0, 0.1);\n border: none;\n border-radius: 4px;\n width: 32px; /* matches height */\n padding: 0;\n}\n\n.link {\n /* blue text (needs to be slightly darker to work on light gray backgrounds) */\n --cp-buttonText: var(--cp-themeDarkAlt);\n --cp-buttonTextHover: var(--cp-themeDarker);\n /* allow text wrapping */\n display: inline;\n text-align: start;\n margin: 0;\n padding: 0;\n border: none;\n text-decoration: underline;\n font-size: inherit;\n font-weight: inherit;\n /* This is often used for long file paths, so adding space makes it more readable */\n text-underline-offset: 2px;\n}\n.link:focus-visible {\n outline-offset: 2px;\n}\n"],sourceRoot:""}]),o.locals={root:"JgX5GbR8awQUNvf0SpeO",standard:"kNx_iOK2UGZihfvlj187",defaultPrimary:"IfHcd_mlcyjQMKFHdEpV",default:"tiYzESHvbNNoSm4ASCHg",primary:"cdc4_xoyu5lt350lFjqA",iconOnly:"eIL_UrsiGfYnQqwosX2v",link:"NZ7Sk5QxxabNggVr0JJY"};const i=o},790:(e,t,n)=>{n.d(t,{useCallback:()=>w,useContext:()=>E,useDebugValue:()=>M,useEffect:()=>A,useId:()=>T,useImperativeHandle:()=>k,useLayoutEffect:()=>b,useMemo:()=>C,useReducer:()=>y,useRef:()=>x,useState:()=>v});var r,a,s,o,i=n(552),u=0,c=[],l=i.options,d=l.__b,p=l.__r,f=l.diffed,h=l.__c,m=l.unmount,_=l.__;function g(e,t){l.__h&&l.__h(a,e,u||t),u=0;var n=a.__H||(a.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function v(e){return u=1,y(B,e)}function y(e,t,n){var s=g(r++,2);if(s.t=e,!s.__c&&(s.__=[n?n(t):B(void 0,t),function(e){var t=s.__N?s.__N[0]:s.__[0],n=s.t(t,e);t!==n&&(s.__N=[n,s.__[1]],s.__c.setState({}))}],s.__c=a,!a.__f)){var o=function(e,t,n){if(!s.__c.__H)return!0;var r=s.__c.__H.__.filter(function(e){return!!e.__c});if(r.every(function(e){return!e.__N}))return!i||i.call(this,e,t,n);var a=s.__c.props!==e;return r.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}}),i&&i.call(this,e,t,n)||a};a.__f=!0;var i=a.shouldComponentUpdate,u=a.componentWillUpdate;a.componentWillUpdate=function(e,t,n){if(this.__e){var r=i;i=void 0,o(e,t,n),i=r}u&&u.call(this,e,t,n)},a.shouldComponentUpdate=o}return s.__N||s.__}function A(e,t){var n=g(r++,3);!l.__s&&I(n.__H,t)&&(n.__=e,n.u=t,a.__H.__h.push(n))}function b(e,t){var n=g(r++,4);!l.__s&&I(n.__H,t)&&(n.__=e,n.u=t,a.__h.push(n))}function x(e){return u=5,C(function(){return{current:e}},[])}function k(e,t,n){u=6,b(function(){if("function"==typeof e){var n=e(t());return function(){e(null),n&&"function"==typeof n&&n()}}if(e)return e.current=t(),function(){return e.current=null}},null==n?n:n.concat(e))}function C(e,t){var n=g(r++,7);return I(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function w(e,t){return u=8,C(function(){return e},t)}function E(e){var t=a.context[e.__c],n=g(r++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(a)),t.props.value):e.__}function M(e,t){l.useDebugValue&&l.useDebugValue(t?t(e):e)}function T(){var e=g(r++,11);if(!e.__){for(var t=a.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function j(){for(var e;e=c.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(O),e.__H.__h.forEach(D),e.__H.__h=[]}catch(t){e.__H.__h=[],l.__e(t,e.__v)}}l.__b=function(e){a=null,d&&d(e)},l.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),_&&_(e,t)},l.__r=function(e){p&&p(e),r=0;var t=(a=e.__c).__H;t&&(s===a?(t.__h=[],a.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.forEach(O),t.__h.forEach(D),t.__h=[],r=0)),s=a},l.diffed=function(e){f&&f(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==c.push(t)&&o===l.requestAnimationFrame||((o=l.requestAnimationFrame)||N)(j)),t.__H.__.forEach(function(e){e.u&&(e.__H=e.u),e.u=void 0})),s=a=null},l.__c=function(e,t){t.some(function(e){try{e.__h.forEach(O),e.__h=e.__h.filter(function(e){return!e.__||D(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],l.__e(n,e.__v)}}),h&&h(e,t)},l.unmount=function(e){m&&m(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{O(e)}catch(e){t=e}}),n.__H=void 0,t&&l.__e(t,n.__v))};var S="function"==typeof requestAnimationFrame;function N(e){var t,n=function(){clearTimeout(r),S&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);S&&(t=requestAnimationFrame(n))}function O(e){var t=a,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),a=t}function D(e){var t=a;e.__c=e.__(),a=t}function I(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function B(e,t){return"function"==typeof t?t(e):t}},821:(e,t,n)=>{n.d(t,{Fragment:()=>r.Fragment,jsx:()=>s,jsxs:()=>s});var r=n(552),a=0;function s(e,t,n,s,o,i){t||(t={});var u,c,l=t;if("ref"in l)for(c in l={},t)"ref"==c?u=t[c]:l[c]=t[c];var d={type:e,props:l,key:n,ref:u,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--a,__i:-1,__u:0,__source:o,__self:i};if("function"==typeof e&&(u=e.defaultProps))for(c in u)void 0===l[c]&&(l[c]=u[c]);return r.options.vnode&&r.options.vnode(d),d}Array.isArray},878:(e,t,n)=>{n.d(t,{Children:()=>v,Fragment:()=>r.Fragment,PureComponent:()=>f,Suspense:()=>k,cloneElement:()=>V,createContext:()=>r.createContext,createElement:()=>r.createElement,default:()=>G,forwardRef:()=>_,lazy:()=>w,useCallback:()=>a.useCallback,useEffect:()=>a.useEffect,useLayoutEffect:()=>a.useLayoutEffect,useMemo:()=>a.useMemo,useRef:()=>a.useRef,useState:()=>a.useState});var r=n(552),a=n(790);function s(e,t){for(var n in t)e[n]=t[n];return e}function o(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function i(e,t){var n=t(),r=(0,a.useState)({t:{__:n,u:t}}),s=r[0].t,o=r[1];return(0,a.useLayoutEffect)(function(){s.__=n,s.u=t,u(s)&&o({t:s})},[e,n,t]),(0,a.useEffect)(function(){return u(s)&&o({t:s}),e(function(){u(s)&&o({t:s})})},[e]),n}function u(e){var t,n,r=e.u,a=e.__;try{var s=r();return!((t=a)===(n=s)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(e){return!0}}function c(e){e()}function l(e){return e}function d(){return[!1,c]}var p=a.useLayoutEffect;function f(e,t){this.props=e,this.context=t}(f.prototype=new r.Component).isPureReactComponent=!0,f.prototype.shouldComponentUpdate=function(e,t){return o(this.props,e)||o(this.state,t)};var h=r.options.__b;r.options.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),h&&h(e)};var m="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function _(e){function t(t){var n=s({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=m,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var g=function(e,t){return null==e?null:(0,r.toChildArray)((0,r.toChildArray)(e).map(t))},v={map:g,forEach:g,count:function(e){return e?(0,r.toChildArray)(e).length:0},only:function(e){var t=(0,r.toChildArray)(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:r.toChildArray},y=r.options.__e;r.options.__e=function(e,t,n,r){if(e.then)for(var a,s=t;s=s.__;)if((a=s.__c)&&a.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),a.__c(e,t);y(e,t,n,r)};var A=r.options.unmount;function b(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(e){"function"==typeof e.__c&&e.__c()}),e.__c.__H=null),null!=(e=s({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(e){return b(e,t,n)})),e}function x(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(e){return x(e,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function k(){this.__u=0,this.o=null,this.__b=null}function C(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function w(e){var t,n,a;function s(s){if(t||(t=e()).then(function(e){n=e.default||e},function(e){a=e}),a)throw a;if(!n)throw t;return(0,r.createElement)(n,s)}return s.displayName="Lazy",s.__f=!0,s}function E(){this.i=null,this.l=null}r.options.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),A&&A(e)},(k.prototype=new r.Component).__c=function(e,t){var n=t.__c,r=this;null==r.o&&(r.o=[]),r.o.push(n);var a=C(r.__v),s=!1,o=function(){s||(s=!0,n.__R=null,a?a(i):i())};n.__R=o;var i=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=x(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.o.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(o,o)},k.prototype.componentWillUnmount=function(){this.o=[]},k.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),a=this.__v.__k[0].__c;this.__v.__k[0]=b(this.__b,n,a.__O=a.__P)}this.__b=null}var s=t.__a&&(0,r.createElement)(r.Fragment,null,e.fallback);return s&&(s.__u&=-33),[(0,r.createElement)(r.Fragment,null,t.__a?null:e.children),s]};var M=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function T(e){return this.getChildContext=function(){return e.context},e.children}function j(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){(0,r.render)(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var a=t.__v;null!==a&&!a.__m&&null!==a.__;)a=a.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:a.__m},contains:function(){return!0},insertBefore:function(e,n){this.childNodes.push(e),t.h.insertBefore(e,n)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.h.removeChild(e)}}}(0,r.render)((0,r.createElement)(T,{context:t.context},e.__v),t.v)}(E.prototype=new r.Component).__a=function(e){var t=this,n=C(t.__v),r=t.l.get(e);return r[0]++,function(a){var s=function(){t.props.revealOrder?(r.push(a),M(t,e,r)):a()};n?n(s):s()}},E.prototype.render=function(e){this.i=null,this.l=new Map;var t=(0,r.toChildArray)(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},E.prototype.componentDidUpdate=E.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){M(e,n,t)})};var S="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,N=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,O=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,D=/[A-Z0-9]/g,I="undefined"!=typeof document,B=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};r.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(r.Component.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var P=r.options.event;function L(){}function z(){return this.cancelBubble}function Z(){return this.defaultPrevented}r.options.event=function(e){return P&&(e=P(e)),e.persist=L,e.isPropagationStopped=z,e.isDefaultPrevented=Z,e.nativeEvent=e};var R,U={enumerable:!1,configurable:!0,get:function(){return this.class}},q=r.options.vnode;r.options.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,a={},s=-1===n.indexOf("-");for(var o in t){var i=t[o];if(!("value"===o&&"defaultValue"in t&&null==i||I&&"children"===o&&"noscript"===n||"class"===o||"className"===o)){var u=o.toLowerCase();"defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===i?i="":"translate"===u&&"no"===i?i=!1:"o"===u[0]&&"n"===u[1]?"ondoubleclick"===u?o="ondblclick":"onchange"!==u||"input"!==n&&"textarea"!==n||B(t.type)?"onfocus"===u?o="onfocusin":"onblur"===u?o="onfocusout":O.test(o)&&(o=u):u=o="oninput":s&&N.test(o)?o=o.replace(D,"-$&").toLowerCase():null===i&&(i=void 0),"oninput"===u&&a[o=u]&&(o="oninputCapture"),a[o]=i}}"select"==n&&a.multiple&&Array.isArray(a.value)&&(a.value=(0,r.toChildArray)(t.children).forEach(function(e){e.props.selected=-1!=a.value.indexOf(e.props.value)})),"select"==n&&null!=a.defaultValue&&(a.value=(0,r.toChildArray)(t.children).forEach(function(e){e.props.selected=a.multiple?-1!=a.defaultValue.indexOf(e.props.value):a.defaultValue==e.props.value})),t.class&&!t.className?(a.class=t.class,Object.defineProperty(a,"className",U)):(t.className&&!t.class||t.class&&t.className)&&(a.class=a.className=t.className),e.props=a}(e),e.$$typeof=S,q&&q(e)};var Y=r.options.__r;r.options.__r=function(e){Y&&Y(e),R=e.__c};var F=r.options.diffed;r.options.diffed=function(e){F&&F(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),R=null};var $={ReactCurrentDispatcher:{current:{readContext:function(e){return R.__n[e.__c].props.value},useCallback:a.useCallback,useContext:a.useContext,useDebugValue:a.useDebugValue,useDeferredValue:l,useEffect:a.useEffect,useId:a.useId,useImperativeHandle:a.useImperativeHandle,useInsertionEffect:p,useLayoutEffect:a.useLayoutEffect,useMemo:a.useMemo,useReducer:a.useReducer,useRef:a.useRef,useState:a.useState,useSyncExternalStore:i,useTransition:d}}};function H(e){return!!e&&e.$$typeof===S}function V(e){return H(e)?r.cloneElement.apply(null,arguments):e}var W=r.Fragment,Q=H,G={useState:a.useState,useId:a.useId,useReducer:a.useReducer,useEffect:a.useEffect,useLayoutEffect:a.useLayoutEffect,useInsertionEffect:p,useTransition:d,useDeferredValue:l,useSyncExternalStore:i,startTransition:c,useRef:a.useRef,useImperativeHandle:a.useImperativeHandle,useMemo:a.useMemo,useCallback:a.useCallback,useContext:a.useContext,useDebugValue:a.useDebugValue,version:"18.3.1",Children:v,render:function(e,t,n){return null==t.__k&&(t.textContent=""),(0,r.render)(e,t),"function"==typeof n&&n(),e?e.__c:null},hydrate:function(e,t,n){return(0,r.hydrate)(e,t),"function"==typeof n&&n(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&((0,r.render)(null,e),!0)},createPortal:function(e,t){var n=(0,r.createElement)(j,{__v:e,h:t});return n.containerInfo=t,n},createElement:r.createElement,createContext:r.createContext,createFactory:function(e){return r.createElement.bind(null,e)},cloneElement:V,createRef:r.createRef,Fragment:r.Fragment,isValidElement:H,isElement:Q,isFragment:function(e){return H(e)&&e.type===r.Fragment},isMemo:function(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")},findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:r.Component,PureComponent:f,memo:function(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:o(this.props,e)}function a(t){return this.shouldComponentUpdate=n,(0,r.createElement)(e,t)}return a.displayName="Memo("+(e.displayName||e.name)+")",a.prototype.isReactComponent=!0,a.__f=!0,a},forwardRef:_,flushSync:function(e,t){return e(t)},unstable_batchedUpdates:function(e,t){return e(t)},StrictMode:W,Suspense:k,SuspenseList:E,lazy:w,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:$}},994:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}}};import e from"../runtime.js";import*as t from"./index.js";e.C(t),e(e.s=339);
|
|
2
|
+
export const __webpack_id__=293;export const __webpack_ids__=[250,293];export const __webpack_modules__={15:(e,t,n)=>{n.d(t,{CloudpackProvider:()=>a,useCloudpack:()=>u});var r=n(821),o=n(552),s=n(790);const i=(0,o.createContext)(null),a=e=>{const{client:t,children:n}=e;return(0,r.jsx)(i.Provider,{value:t,children:n})},u=()=>(0,s.useContext)(i)},25:e=>{e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),s="/*# ".concat(o," */");return[t].concat([s]).join("\n")}return[t].join("\n")}},91:(e,t,n)=>{n.d(t,{Button:()=>x});var r=n(821),o=n(104),s=n.n(o),i=n(606),a=n.n(i),u=n(607),c=n.n(u),l=n(437),p=n.n(l),d=n(750),f=n.n(d),_=n(994),h=n.n(_),v=n(415),m=n.n(v),g=n(784),y={};y.styleTagTransform=m(),y.setAttributes=f(),y.insert=p().bind(null,"head"),y.domAPI=c(),y.insertStyleElement=h(),a()(g.default,y);const A=g.default&&g.default.locals?g.default.locals:void 0,b=["default","primary","iconOnly"],x=e=>{const{variant:t="default",iconName:n,iconAlt:o,children:i,class:a,...u}=e,c=s()(A.root,b.includes(t)&&A.standard,A[t],("primary"===t||"default"===t)&&A.defaultPrimary,a),l="close"===n?"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIuMzk3MDUgMi41NTM3OUwyLjQ2OTY3IDIuNDY5NjdDMi43MzU5NCAyLjIwMzQgMy4xNTI2IDIuMTc5MiAzLjQ0NjIxIDIuMzk3MDVMMy41MzAzMyAyLjQ2OTY3TDggNi45MzlMMTIuNDY5NyAyLjQ2OTY3QzEyLjc2MjYgMi4xNzY3OCAxMy4yMzc0IDIuMTc2NzggMTMuNTMwMyAyLjQ2OTY3QzEzLjgyMzIgMi43NjI1NiAxMy44MjMyIDMuMjM3NDQgMTMuNTMwMyAzLjUzMDMzTDkuMDYxIDhMMTMuNTMwMyAxMi40Njk3QzEzLjc5NjYgMTIuNzM1OSAxMy44MjA4IDEzLjE1MjYgMTMuNjAyOSAxMy40NDYyTDEzLjUzMDMgMTMuNTMwM0MxMy4yNjQxIDEzLjc5NjYgMTIuODQ3NCAxMy44MjA4IDEyLjU1MzggMTMuNjAyOUwxMi40Njk3IDEzLjUzMDNMOCA5LjA2MUwzLjUzMDMzIDEzLjUzMDNDMy4yMzc0NCAxMy44MjMyIDIuNzYyNTYgMTMuODIzMiAyLjQ2OTY3IDEzLjUzMDNDMi4xNzY3OCAxMy4yMzc0IDIuMTc2NzggMTIuNzYyNiAyLjQ2OTY3IDEyLjQ2OTdMNi45MzkgOEwyLjQ2OTY3IDMuNTMwMzNDMi4yMDM0IDMuMjY0MDYgMi4xNzkyIDIuODQ3NCAyLjM5NzA1IDIuNTUzNzlMMi40Njk2NyAyLjQ2OTY3TDIuMzk3MDUgMi41NTM3OVoiIGZpbGw9IiMyMTIxMjEiLz4KPC9zdmc+Cg==":"refresh"===n?"primary"===t?"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgMTBDNCA2LjY4NjI5IDYuNjg2MjkgNCAxMCA0QzExLjUyMTMgNCAxMi45MTA3IDQuNTY1OTIgMTMuOTY4OSA1LjVIMTIuNzVDMTIuMzM1OCA1LjUgMTIgNS44MzU3OSAxMiA2LjI1QzEyIDYuNjY0MjEgMTIuMzM1OCA3IDEyLjc1IDdIMTUuNzVDMTYuMTY0MiA3IDE2LjUgNi42NjQyMSAxNi41IDYuMjVWMy4yNUMxNi41IDIuODM1NzkgMTYuMTY0MiAyLjUgMTUuNzUgMi41QzE1LjMzNTggMi41IDE1IDIuODM1NzkgMTUgMy4yNVY0LjQwOTg3QzEzLjY3MzYgMy4yMjI3NCAxMS45MjEzIDIuNSAxMCAyLjVDNS44NTc4NiAyLjUgMi41IDUuODU3ODYgMi41IDEwQzIuNSAxNC4xNDIxIDUuODU3ODYgMTcuNSAxMCAxNy41QzE0LjE0MjEgMTcuNSAxNy41IDE0LjE0MjEgMTcuNSAxMEMxNy41IDkuOTA3MTUgMTcuNDk4MyA5LjgxNDY3IDE3LjQ5NSA5LjcyMjU4QzE3LjQ3OTkgOS4zMDg2NCAxNy4xMzIxIDguOTg1MyAxNi43MTgxIDkuMDAwMzhDMTYuMzA0MiA5LjAxNTQ2IDE1Ljk4MDkgOS4zNjMyNCAxNS45OTU5IDkuNzc3MThDMTUuOTk4NiA5Ljg1MTA5IDE2IDkuOTI1MzcgMTYgMTBDMTYgMTMuMzEzNyAxMy4zMTM3IDE2IDEwIDE2QzYuNjg2MjkgMTYgNCAxMy4zMTM3IDQgMTBaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgMTBDNCA2LjY4NjI5IDYuNjg2MjkgNCAxMCA0QzExLjUyMTMgNCAxMi45MTA3IDQuNTY1OTIgMTMuOTY4OSA1LjVIMTIuNzVDMTIuMzM1OCA1LjUgMTIgNS44MzU3OSAxMiA2LjI1QzEyIDYuNjY0MjEgMTIuMzM1OCA3IDEyLjc1IDdIMTUuNzVDMTYuMTY0MiA3IDE2LjUgNi42NjQyMSAxNi41IDYuMjVWMy4yNUMxNi41IDIuODM1NzkgMTYuMTY0MiAyLjUgMTUuNzUgMi41QzE1LjMzNTggMi41IDE1IDIuODM1NzkgMTUgMy4yNVY0LjQwOTg3QzEzLjY3MzYgMy4yMjI3NCAxMS45MjEzIDIuNSAxMCAyLjVDNS44NTc4NiAyLjUgMi41IDUuODU3ODYgMi41IDEwQzIuNSAxNC4xNDIxIDUuODU3ODYgMTcuNSAxMCAxNy41QzE0LjE0MjEgMTcuNSAxNy41IDE0LjE0MjEgMTcuNSAxMEMxNy41IDkuOTA3MTUgMTcuNDk4MyA5LjgxNDY3IDE3LjQ5NSA5LjcyMjU4QzE3LjQ3OTkgOS4zMDg2NCAxNy4xMzIxIDguOTg1MyAxNi43MTgxIDkuMDAwMzhDMTYuMzA0MiA5LjAxNTQ2IDE1Ljk4MDkgOS4zNjMyNCAxNS45OTU5IDkuNzc3MThDMTUuOTk4NiA5Ljg1MTA5IDE2IDkuOTI1MzcgMTYgMTBDMTYgMTMuMzEzNyAxMy4zMTM3IDE2IDEwIDE2QzYuNjg2MjkgMTYgNCAxMy4zMTM3IDQgMTBaIiBmaWxsPSIjMjEyMTIxIi8+Cjwvc3ZnPgo=":void 0;return(0,r.jsxs)("button",{type:"button",...u,class:c,children:[l&&(0,r.jsx)("img",{src:l,alt:o||""}),!!n&&"iconOnly"!==t&&" ",i]})}},104:(e,t)=>{var n;!function(){var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,s(n)))}return e}function s(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=i(t,n));return t}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},116:(e,t,n)=>{n.d(t,{elementIds:()=>r});const r={root:"cloudpack-overlay-root",errorDialogRoot:"cloudpack-overlay-error-dialog",statusDialogRoot:"cloudpack-overlay-status-dialog",dialogTitle:"cloudpack-overlay-dialog-title",statusBadgeRoot:"cloudpack-overlay-status-badge"}},145:(e,t,n)=>{function r(e,t,n){function r(n,r){var o;Object.defineProperty(n,"_zod",{value:n._zod??{},enumerable:!1}),(o=n._zod).traits??(o.traits=new Set),n._zod.traits.add(e),t(n,r);for(const e in i.prototype)e in n||Object.defineProperty(n,e,{value:i.prototype[e].bind(n)});n._zod.constr=i,n._zod.def=r}const o=n?.Parent??Object;class s extends o{}function i(e){var t;const o=n?.Parent?new s:this;r(o,e),(t=o._zod).deferred??(t.deferred=[]);for(const e of o._zod.deferred)e();return o}return Object.defineProperty(s,"name",{value:e}),Object.defineProperty(i,"init",{value:r}),Object.defineProperty(i,Symbol.hasInstance,{value:t=>!!(n?.Parent&&t instanceof n.Parent)||t?._zod?.traits?.has(e)}),Object.defineProperty(i,"name",{value:e}),i}n.d(t,{errorEntrySource:()=>Ze,reloadCountSource:()=>qe,taskListSource:()=>$e,taskStatsSource:()=>He}),Symbol("zod_brand");class o extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const s={};function i(e){return e&&Object.assign(s,e),s}function a(e,t){return"bigint"==typeof t?t.toString():t}function u(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function c(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function l(e,t,n){Object.defineProperty(e,t,{get(){{const r=n();return e[t]=r,r}},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function p(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function d(e=10){let t="";for(let n=0;n<e;n++)t+="abcdefghijklmnopqrstuvwxyz"[Math.floor(26*Math.random())];return t}function f(e){return JSON.stringify(e)}const _=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function h(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}const v=u(()=>{if("undefined"!=typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(e){return!1}});function m(e,t,n){const r=new e._zod.constr(t??e._zod.def);return t&&!n?.parent||(r._zod.parent=e),r}function g(e){const t=e;if(!t)return{};if("string"==typeof t)return{error:()=>t};if(void 0!==t?.message){if(void 0!==t?.error)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,"string"==typeof t.error?{...t,error:()=>t.error}:t}function y(e,t=0){for(let n=t;n<e.issues.length;n++)if(!0!==e.issues[n].continue)return!0;return!1}function A(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function b(e){return"string"==typeof e?e:e?.message}function x(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const o=b(e.inst?._zod.def?.error?.(e))??b(t?.error?.(e))??b(n.customError?.(e))??b(n.localeError?.(e))??"Invalid input";r.message=o}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}new Set(["string","number","symbol"]),new Set(["string","number","bigint","boolean","symbol","undefined"]),Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,Number.MAX_VALUE,Number.MAX_VALUE;const C=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),Object.defineProperty(e,"message",{get:()=>JSON.stringify(t,a,2),enumerable:!0})},E=r("$ZodError",C),w=r("$ZodError",C,{Parent:Error}),M=e=>(t,n,r,s)=>{const a=r?Object.assign(r,{async:!1}):{async:!1},u=t._zod.run({value:n,issues:[]},a);if(u instanceof Promise)throw new o;if(u.issues.length){const t=new(s?.Err??e)(u.issues.map(e=>x(e,a,i())));throw _(t,s?.callee),t}return u.value},k=M(w),j=e=>async(t,n,r,o)=>{const s=r?Object.assign(r,{async:!0}):{async:!0};let a=t._zod.run({value:n,issues:[]},s);if(a instanceof Promise&&(a=await a),a.issues.length){const t=new(o?.Err??e)(a.issues.map(e=>x(e,s,i())));throw _(t,o?.callee),t}return a.value},S=j(w),T=e=>(t,n,r)=>{const s=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},s);if(a instanceof Promise)throw new o;return a.issues.length?{success:!1,error:new(e??E)(a.issues.map(e=>x(e,s,i())))}:{success:!0,data:a.value}},D=T(w),B=e=>async(t,n,r)=>{const o=r?Object.assign(r,{async:!0}):{async:!0};let s=t._zod.run({value:n,issues:[]},o);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map(e=>x(e,o,i())))}:{success:!0,data:s.value}},z=B(w),N=/^-?\d+(?:\.\d+)?/i,O=/true|false/i;class P{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e)return e(this,{execution:"sync"}),void e(this,{execution:"async"});const t=e.split("\n").filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>" ".repeat(2*this.indent)+e);for(const e of r)this.content.push(e)}compile(){const e=Function,t=this?.args;return new e(...t,[...(this?.content??[""]).map(e=>` ${e}`)].join("\n"))}}const I={major:4,minor:0,patch:0},L=r("$ZodType",(e,t)=>{var n;e??(e={}),l(e._zod,"id",()=>t.type+"_"+d(10)),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=I;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const t of r)for(const n of t._zod.onattach)n(e);if(0===r.length)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const t=(e,t,n)=>{let r,s=y(e);for(const i of t){if(i._zod.when){if(!i._zod.when(e))continue}else if(s)continue;const t=e.issues.length,a=i._zod.check(e);if(a instanceof Promise&&!1===n?.async)throw new o;if(r||a instanceof Promise)r=(r??Promise.resolve()).then(async()=>{await a,e.issues.length!==t&&(s||(s=y(e,t)))});else{if(e.issues.length===t)continue;s||(s=y(e,t))}}return r?r.then(()=>e):e};e._zod.run=(n,s)=>{const i=e._zod.parse(n,s);if(i instanceof Promise){if(!1===s.async)throw new o;return i.then(e=>t(e,r,s))}return t(i,r,s)}}e["~standard"]={validate:t=>{try{const n=D(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch(n){return z(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:"zod",version:1}}),U=r("$ZodString",(e,t)=>{var n;L.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??(n=e._zod.bag,new RegExp(`^${n?`[\\s\\S]{${n?.minimum??0},${n?.maximum??""}}`:"[\\s\\S]*"}$`)),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch(r){}return"string"==typeof n.value||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),R=r("$ZodNumber",(e,t)=>{L.init(e,t),e._zod.pattern=e._zod.bag.pattern??N,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch(e){}const o=n.value;if("number"==typeof o&&!Number.isNaN(o)&&Number.isFinite(o))return n;const s="number"==typeof o?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...s?{received:s}:{}}),n}}),Y=r("$ZodBoolean",(e,t)=>{L.init(e,t),e._zod.pattern=O,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Boolean(n.value)}catch(e){}const o=n.value;return"boolean"==typeof o||n.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),n}}),q=r("$ZodAny",(e,t)=>{L.init(e,t),e._zod.parse=e=>e}),H=r("$ZodUnknown",(e,t)=>{L.init(e,t),e._zod.parse=e=>e});function $(e,t,n){e.issues.length&&t.issues.push(...A(n,e.issues)),t.value[n]=e.value}const Z=r("$ZodArray",(e,t)=>{L.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!Array.isArray(o))return n.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),n;n.value=Array(o.length);const s=[];for(let e=0;e<o.length;e++){const i=o[e],a=t.element._zod.run({value:i,issues:[]},r);a instanceof Promise?s.push(a.then(t=>$(t,n,e))):$(a,n,e)}return s.length?Promise.all(s).then(()=>n):n}});function W(e,t,n){e.issues.length&&t.issues.push(...A(n,e.issues)),t.value[n]=e.value}function Q(e,t,n,r){e.issues.length?void 0===r[n]?t.value[n]=n in r?void 0:e.value:t.issues.push(...A(n,e.issues)):void 0===e.value?n in r&&(t.value[n]=void 0):t.value[n]=e.value}const V=r("$ZodObject",(e,t)=>{L.init(e,t);const n=u(()=>{const e=Object.keys(t.shape);for(const n of e)if(!(t.shape[n]instanceof L))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);const n=(r=t.shape,Object.keys(r).filter(e=>"optional"===r[e]._zod.optin&&"optional"===r[e]._zod.optout));var r;return{shape:t.shape,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(n)}});let r;l(e._zod,"propValues",()=>{const e=t.shape,n={};for(const t in e){const r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(const e of r.values)n[t].add(e)}}return n});const o=h,i=!s.jitless,a=i&&v.value,{catchall:c}=t;let p;e._zod.parse=(s,u)=>{p??(p=n.value);const l=s.value;if(!o(l))return s.issues.push({expected:"object",code:"invalid_type",input:l,inst:e}),s;const _=[];if(i&&a&&!1===u?.async&&!0!==u.jitless)r||(r=(e=>{const t=new P(["shape","payload","ctx"]),{keys:r,optionalKeys:o}=n.value,s=e=>{const t=f(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write("const input = payload.value;");const i=Object.create(null);for(const e of r)i[e]=d(15);t.write("const newResult = {}");for(const e of r)if(o.has(e)){const n=i[e];t.write(`const ${n} = ${s(e)};`);const r=f(e);t.write(`\n if (${n}.issues.length) {\n if (input[${r}] === undefined) {\n if (${r} in input) {\n newResult[${r}] = undefined;\n }\n } else {\n payload.issues = payload.issues.concat(\n ${n}.issues.map((iss) => ({\n ...iss,\n path: iss.path ? [${r}, ...iss.path] : [${r}],\n }))\n );\n }\n } else if (${n}.value === undefined) {\n if (${r} in input) newResult[${r}] = undefined;\n } else {\n newResult[${r}] = ${n}.value;\n }\n `)}else{const n=i[e];t.write(`const ${n} = ${s(e)};`),t.write(`\n if (${n}.issues.length) payload.issues = payload.issues.concat(${n}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${f(e)}, ...iss.path] : [${f(e)}]\n })));`),t.write(`newResult[${f(e)}] = ${n}.value`)}t.write("payload.value = newResult;"),t.write("return payload;");const a=t.compile();return(t,n)=>a(e,t,n)})(t.shape)),s=r(s,u);else{s.value={};const e=p.shape;for(const t of p.keys){const n=e[t],r=n._zod.run({value:l[t],issues:[]},u),o="optional"===n._zod.optin&&"optional"===n._zod.optout;r instanceof Promise?_.push(r.then(e=>o?Q(e,s,t,l):W(e,s,t))):o?Q(r,s,t,l):W(r,s,t)}}if(!c)return _.length?Promise.all(_).then(()=>s):s;const h=[],v=p.keySet,m=c._zod,g=m.def.type;for(const e of Object.keys(l)){if(v.has(e))continue;if("never"===g){h.push(e);continue}const t=m.run({value:l[e],issues:[]},u);t instanceof Promise?_.push(t.then(t=>W(t,s,e))):W(t,s,e)}return h.length&&s.issues.push({code:"unrecognized_keys",keys:h,input:l,inst:e}),_.length?Promise.all(_).then(()=>s):s}});function F(e,t,n,r){for(const n of e)if(0===n.issues.length)return t.value=n.value,t;return t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>x(e,r,i())))}),t}const G=r("$ZodUnion",(e,t)=>{L.init(e,t),l(e._zod,"values",()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),l(e._zod,"pattern",()=>{if(t.options.every(e=>e._zod.pattern)){const e=t.options.map(e=>e._zod.pattern);return new RegExp(`^(${e.map(e=>c(e.source)).join("|")})$`)}}),e._zod.parse=(n,r)=>{let o=!1;const s=[];for(const e of t.options){const t=e._zod.run({value:n.value,issues:[]},r);if(t instanceof Promise)s.push(t),o=!0;else{if(0===t.issues.length)return t;s.push(t)}}return o?Promise.all(s).then(t=>F(t,n,e,r)):F(s,n,e,r)}}),J=r("$ZodRecord",(e,t)=>{L.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!function(e){if(!1===h(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!1!==h(n)&&!1!==Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")}(o))return n.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),n;const s=[];if(t.keyType._zod.values){const i=t.keyType._zod.values;n.value={};for(const e of i)if("string"==typeof e||"number"==typeof e||"symbol"==typeof e){const i=t.valueType._zod.run({value:o[e],issues:[]},r);i instanceof Promise?s.push(i.then(t=>{t.issues.length&&n.issues.push(...A(e,t.issues)),n.value[e]=t.value})):(i.issues.length&&n.issues.push(...A(e,i.issues)),n.value[e]=i.value)}let a;for(const e in o)i.has(e)||(a=a??[],a.push(e));a&&a.length>0&&n.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:a})}else{n.value={};for(const a of Reflect.ownKeys(o)){if("__proto__"===a)continue;const u=t.keyType._zod.run({value:a,issues:[]},r);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(u.issues.length){n.issues.push({origin:"record",code:"invalid_key",issues:u.issues.map(e=>x(e,r,i())),input:a,path:[a],inst:e}),n.value[u.value]=u.value;continue}const c=t.valueType._zod.run({value:o[a],issues:[]},r);c instanceof Promise?s.push(c.then(e=>{e.issues.length&&n.issues.push(...A(a,e.issues)),n.value[u.value]=e.value})):(c.issues.length&&n.issues.push(...A(a,c.issues)),n.value[u.value]=c.value)}}return s.length?Promise.all(s).then(()=>n):n}}),K=r("$ZodLiteral",(e,t)=>{L.init(e,t),e._zod.values=new Set(t.values),e._zod.pattern=new RegExp(`^(${t.values.map(e=>"string"==typeof e?e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"):e?e.toString():String(e)).join("|")})$`),e._zod.parse=(n,r)=>{const o=n.value;return e._zod.values.has(o)||n.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),n}}),X=r("$ZodOptional",(e,t)=>{L.init(e,t),e._zod.optin="optional",e._zod.optout="optional",l(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),l(e._zod,"pattern",()=>{const e=t.innerType._zod.pattern;return e?new RegExp(`^(${c(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>void 0===e.value?e:t.innerType._zod.run(e,n)}),ee=r("$ZodNonOptional",(e,t)=>{L.init(e,t),l(e._zod,"values",()=>{const e=t.innerType._zod.values;return e?new Set([...e].filter(e=>void 0!==e)):void 0}),e._zod.parse=(n,r)=>{const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(t=>te(t,e)):te(o,e)}});function te(e,t){return e.issues.length||void 0!==e.value||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}Symbol("ZodOutput"),Symbol("ZodInput");const ne=r("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");L.init(e,t),e.def=t,e.parse=(t,n)=>k(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>D(e,t,n),e.parseAsync=async(t,n)=>S(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>z(e,t,n),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),e.clone=(t,n)=>m(e,t,n),e.brand=()=>e,e.register=(t,n)=>(t.add(e,n),e)}),re=r("ZodMiniString",(e,t)=>{U.init(e,t),ne.init(e,t)});function oe(e){return function(e,t){return new e({type:"string",...g(t)})}(re,e)}const se=r("ZodMiniNumber",(e,t)=>{R.init(e,t),ne.init(e,t)});function ie(e){return function(e,t){return new e({type:"number",checks:[],...g(t)})}(se,e)}const ae=r("ZodMiniBoolean",(e,t)=>{Y.init(e,t),ne.init(e,t)});function ue(e){return function(e,t){return new e({type:"boolean",...g(t)})}(ae,e)}const ce=r("ZodMiniAny",(e,t)=>{q.init(e,t),ne.init(e,t)});function le(){return new ce({type:"any"})}const pe=r("ZodMiniUnknown",(e,t)=>{H.init(e,t),ne.init(e,t)}),de=r("ZodMiniArray",(e,t)=>{Z.init(e,t),ne.init(e,t)});function fe(e,t){return new de({type:"array",element:e,...g(t)})}const _e=r("ZodMiniObject",(e,t)=>{V.init(e,t),ne.init(e,t),l(e,"shape",()=>t.shape)});function he(e,t){const n={type:"object",get shape(){return p(this,"shape",{...e}),this.shape},...g(t)};return new _e(n)}function ve(e,t){return new _e({type:"object",get shape(){return p(this,"shape",{...e}),this.shape},catchall:(n=pe,new n({type:"unknown"})),...g(t)});var n}const me=r("ZodMiniUnion",(e,t)=>{G.init(e,t),ne.init(e,t)});function ge(e,t){return new me({type:"union",options:e,...g(t)})}const ye=r("ZodMiniRecord",(e,t)=>{J.init(e,t),ne.init(e,t)});function Ae(e,t,n){return new ye({type:"record",keyType:e,valueType:t,...g(n)})}const be=r("ZodMiniLiteral",(e,t)=>{K.init(e,t),ne.init(e,t)});function xe(e,t){return new be({type:"literal",values:Array.isArray(e)?e:[e],...g(t)})}const Ce=r("ZodMiniOptional",(e,t)=>{X.init(e,t),ne.init(e,t)});function Ee(e){return new Ce({type:"optional",innerType:e})}const we=r("ZodMiniNonOptional",(e,t)=>{ee.init(e,t),ne.init(e,t)});function Me(e){return he(e)}function ke(e){return ve(e)}const je=Me({status:xe(["idle","pending"]),remainingTasks:ie(),totalTasks:ie(),totalErrors:ie(),totalWarnings:ie()}),Se=Me({name:oe(),start:ie(),end:Ee(ie()),threwException:Ee(ue())}),Te=Me({file:oe(),line:Ee(ie()),column:Ee(ie())}),De=Me({text:oe(),location:Ee(Te)}),Be=Me({text:oe(),source:oe(),location:Ee(Te),notes:Ee(fe(De))}),ze=Me({id:oe(),name:oe(),status:xe(["pending","complete"]),inputPath:oe(),outputPath:Ee(oe()),errors:Ee(fe(Be)),warnings:Ee(fe(Be)),startTime:ie(),duration:Ee(ie()),lastUpdated:Ee(ie()),timings:Ee(fe(Se))}),Ne=Me({tasks:fe(ze)}),Oe=ke({name:oe(),version:oe()}),Pe=(Me({packagePath:oe(),hash:Ee(oe()),definition:Ee(Oe)}),he({browser:Ae(oe(),oe()),node:Ae(oe(),oe())})),Ie=Me({path:oe(),rootPath:Ee(oe()),includeAll:Ee(ue()),ignoredPackages:Ee(fe(oe())),ignoreResolutions:Ee(ue()),resolveStrategy:Ee(xe(["dedupe","duplicate"])),remote:Ee(Me({hostUrl:oe(),resolveMap:Ae(oe(),le()),packages:he({definitions:Ae(oe(),le()),transformedDefinitions:Ae(oe(),le())}),packageHashes:he({hashesWithSource:Pe,hashesWithNoSource:Pe})}))}),Le=(Me({linkedPath:Ie}),Me({resolveMap:Ae(oe(),le()),linkedPaths:fe(Ie)}),Me({name:oe(),version:Ee(oe())})),Ue=ge([oe(),ve({...Le.shape})]),Re=ge([oe(),(Ye=Le,function(e,t){const n=t._zod.def.shape,r={...n};for(const t in n)r[t]=new e({type:"nonoptional",innerType:n[t]});return m(t,{...t._zod.def,shape:r,checks:[]})}(we,Ye))]);var Ye;ke({packageSettings:Ee(fe(ve({match:ge([Ue,fe(Ue)])}))),generated:ve({packageSettings:fe(ve({match:Re}))})});const qe={path:["session","version"],type:ie()},He={path:["task","stats"],type:je},$e={path:["task","list"],type:Ne},Ze={path:["error","entry"],type:oe()};he({reason:xe(["lost","unreachable"])})},191:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,r,o,s){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(r)for(var a=0;a<this.length;a++){var u=this[a][0];null!=u&&(i[u]=!0)}for(var c=0;c<e.length;c++){var l=[].concat(e[c]);r&&i[l[0]]||(void 0!==s&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=s),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),o&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=o):l[4]="".concat(o)),t.push(l))}},t}},206:(e,t,n)=>{n.d(t,{default:()=>a});var r=n(25),o=n.n(r),s=n(191),i=n.n(s)()(o());i.push([e.id,".gdQ8B3jDk05JWm9DGH1X {\n font-family:\n Inter,\n -apple-system,\n BlinkMacSystemFont,\n 'Segoe UI',\n Roboto,\n Oxygen,\n Ubuntu,\n Cantarell,\n 'Fira Sans',\n 'Droid Sans',\n 'Helvetica Neue',\n sans-serif;\n\n /* these are currently based on fluent v8 colors https://developer.microsoft.com/en-us/fluentui#/styles/web/colors/theme-slots */\n --cp-themePrimary: #0078d4;\n --cp-themeDarkAlt: #106ebe; /* button hover */\n --cp-themeDark: #005a9e; /* button active */\n --cp-themeDarker: #004578; /* link hover */\n --cp-neutralDark: #201f1e;\n --cp-neutralPrimary: #323130;\n --cp-neutralSecondary: #605e5c;\n --cp-neutralSecondaryAlt: #8a8886;\n --cp-neutralTertiaryAlt: #c8c6c4;\n --cp-neutralLight: #edebe9;\n --cp-neutralLighter: #f3f2f1;\n --cp-neutralLighterAlt: #faf9f8;\n\n /* most borders except accordion items */\n --cp-border: var(--cp-neutralSecondaryAlt);\n /* accordion item, dialog header/task list divider */\n --cp-borderSubtle: var(--cp-neutralTertiaryAlt);\n\n /* Status colors. (To edit the ramp while keeping the hue the same, the easiest way is to\n use the VS Code color picker to temporarily convert to HSL.) */\n --cp-errorDark: #a4262c; /* also hardcoded in error icon SVG */\n --cp-errorMed: #ffb8b8;\n --cp-errorLight: #ffebeb;\n --cp-errorTransparent: rgba(220, 0, 0, 0.2);\n --cp-warningDark: #b88700; /* also hardcoded in warning icon SVG */\n --cp-warningMed: #e6cd89;\n --cp-warningLight: #fffaeb;\n --cp-warningTransparent: rgba(255, 226, 148, 0.3);\n /* the success icon SVG dark green is #00aa00 */\n --cp-successMed: #7ad17a;\n --cp-successLight: #e9f9e9;\n\n --cp-outline: 2px solid black;\n\n --cp-zIndexDialog: 99999;\n --cp-zIndexBadge: 99998;\n\n /* default child styles */\n color: var(--cp-neutralPrimary);\n font-size: 14px;\n font-weight: 400;\n}\n","",{version:3,sources:["webpack://./src/components/ThemeProvider/ThemeProvider.module.css"],names:[],mappings:"AAAA;EACE;;;;;;;;;;;;cAYY;;EAEZ,gIAAgI;EAChI,0BAA0B;EAC1B,0BAA0B,EAAE,iBAAiB;EAC7C,uBAAuB,EAAE,kBAAkB;EAC3C,yBAAyB,EAAE,eAAe;EAC1C,yBAAyB;EACzB,4BAA4B;EAC5B,8BAA8B;EAC9B,iCAAiC;EACjC,gCAAgC;EAChC,0BAA0B;EAC1B,4BAA4B;EAC5B,+BAA+B;;EAE/B,wCAAwC;EACxC,0CAA0C;EAC1C,oDAAoD;EACpD,+CAA+C;;EAE/C;gEAC8D;EAC9D,uBAAuB,EAAE,qCAAqC;EAC9D,sBAAsB;EACtB,wBAAwB;EACxB,2CAA2C;EAC3C,yBAAyB,EAAE,uCAAuC;EAClE,wBAAwB;EACxB,0BAA0B;EAC1B,iDAAiD;EACjD,+CAA+C;EAC/C,wBAAwB;EACxB,0BAA0B;;EAE1B,6BAA6B;;EAE7B,wBAAwB;EACxB,uBAAuB;;EAEvB,yBAAyB;EACzB,+BAA+B;EAC/B,eAAe;EACf,gBAAgB;AAClB",sourcesContent:[".root {\n font-family:\n Inter,\n -apple-system,\n BlinkMacSystemFont,\n 'Segoe UI',\n Roboto,\n Oxygen,\n Ubuntu,\n Cantarell,\n 'Fira Sans',\n 'Droid Sans',\n 'Helvetica Neue',\n sans-serif;\n\n /* these are currently based on fluent v8 colors https://developer.microsoft.com/en-us/fluentui#/styles/web/colors/theme-slots */\n --cp-themePrimary: #0078d4;\n --cp-themeDarkAlt: #106ebe; /* button hover */\n --cp-themeDark: #005a9e; /* button active */\n --cp-themeDarker: #004578; /* link hover */\n --cp-neutralDark: #201f1e;\n --cp-neutralPrimary: #323130;\n --cp-neutralSecondary: #605e5c;\n --cp-neutralSecondaryAlt: #8a8886;\n --cp-neutralTertiaryAlt: #c8c6c4;\n --cp-neutralLight: #edebe9;\n --cp-neutralLighter: #f3f2f1;\n --cp-neutralLighterAlt: #faf9f8;\n\n /* most borders except accordion items */\n --cp-border: var(--cp-neutralSecondaryAlt);\n /* accordion item, dialog header/task list divider */\n --cp-borderSubtle: var(--cp-neutralTertiaryAlt);\n\n /* Status colors. (To edit the ramp while keeping the hue the same, the easiest way is to\n use the VS Code color picker to temporarily convert to HSL.) */\n --cp-errorDark: #a4262c; /* also hardcoded in error icon SVG */\n --cp-errorMed: #ffb8b8;\n --cp-errorLight: #ffebeb;\n --cp-errorTransparent: rgba(220, 0, 0, 0.2);\n --cp-warningDark: #b88700; /* also hardcoded in warning icon SVG */\n --cp-warningMed: #e6cd89;\n --cp-warningLight: #fffaeb;\n --cp-warningTransparent: rgba(255, 226, 148, 0.3);\n /* the success icon SVG dark green is #00aa00 */\n --cp-successMed: #7ad17a;\n --cp-successLight: #e9f9e9;\n\n --cp-outline: 2px solid black;\n\n --cp-zIndexDialog: 99999;\n --cp-zIndexBadge: 99998;\n\n /* default child styles */\n color: var(--cp-neutralPrimary);\n font-size: 14px;\n font-weight: 400;\n}\n"],sourceRoot:""}]),i.locals={root:"gdQ8B3jDk05JWm9DGH1X"};const a=i},339:(e,t,n)=>{var r=n(821),o=n(552),s=n(15),i=n(878),a=n(790),u=n(658),c=n(606),l=n.n(c),p=n(607),d=n.n(p),f=n(437),_=n.n(f),h=n(750),v=n.n(h),m=n(994),g=n.n(m),y=n(415),A=n.n(y),b=n(626),x={};x.styleTagTransform=A(),x.setAttributes=v(),x.insert=_().bind(null,"head"),x.domAPI=d(),x.insertStyleElement=g(),l()(b.default,x);const C=b.default&&b.default.locals?b.default.locals:void 0;var E=n(104),w=n.n(E),M=n(91),k=n(145);const j=()=>{const e=(0,s.useCloudpack)(),[t,n]=(0,a.useState)({status:"unknown",remainingTasks:0,totalTasks:0,totalErrors:0,totalWarnings:0});return(0,a.useEffect)(()=>{const t=e?.onDataChanged.subscribe(k.taskStatsSource,{onData:e=>{n(e)}});return()=>{t.unsubscribe()}},[e]),t};var S=n(116);const T="cloudpack.badgeStatus",D="(see details)",B="Show bundle result details",z=({onOpenDialog:e,pageLoadTimeReport:t})=>{const n=(0,a.useRef)(null),o=(0,a.useRef)(null),s=j(),[i,c]=(0,a.useState)(!!localStorage.getItem(T)),l="unknown"!==s.status,p=(0,a.useCallback)(()=>{c(e=>{const t=!e;return localStorage.setItem(T,t?"collapsed":""),t})},[]);if((0,u.useDraggable)({enabled:l,containerElementRef:n,dragElementRef:o}),!l)return null;const{buttonStatusText:d,statusClass:f,statsText:_}=function(e,t){const{status:n,totalTasks:r,remainingTasks:o,totalErrors:s,totalWarnings:i}=e;let a,u,c="";return"idle"===n&&r?[a,u]=s?[C.error,`errors ${D}`]:i?[C.warning,`warnings ${D}`]:[C.success,"success"]:u="pending"===n?"bundling...":"idle",r&&(c=[0===o?"completed":`${((r-o)/r*100).toFixed(1)}% completed`,s&&`${s} error${s>1?"s":""}`,i&&`${i} warning${i>1?"s":""}`].filter(Boolean).join(", ")+("success"===t.status?` in ${Math.round(t.pageLoadTime)??"??"}ms`:"")),{statusClass:a,buttonStatusText:u,statsText:c}}(s,t),h="Cloudpack: "+d,v=`${h.replace(D,"")}. ${B}`,m=i?"Expand Cloudpack badge":"Collapse",g=(0,r.jsxs)("div",{id:S.elementIds.statusBadgeRoot,ref:n,class:w()(C.badge,i&&C.collapsed,f),children:[(0,r.jsxs)("div",{ref:o,class:C.gripArea,"aria-hidden":!0,children:[(0,r.jsx)("div",{class:C.grip}),(0,r.jsx)("div",{class:C.grip})]}),(0,r.jsx)(M.Button,{variant:"custom",class:C.button,onClick:e,title:B,"aria-label":v,children:(0,r.jsx)("div",{class:C.buttonText,children:h})}),(0,r.jsx)("div",{children:_}),(0,r.jsx)(M.Button,{variant:"custom",class:w()(C.button,C.chevron),onClick:p,title:m,"aria-label":m,children:i?"«":"»"})]});return(0,r.jsx)("div",{class:C.fixedOverlay,children:(0,r.jsx)("div",{class:C.contentSurface,children:g})})};function N(e){if(!e||"."===e)return".";if(/^[a-zA-Z]:[\\/]/.test(e))throw new Error(`Received an absolute path where a relative path was expected: ${e}.\nThis indicates a bug in Cloudpack, likely due to calling path.relative() with two Windows paths on different drives (which returns an absolute path) and then assuming the result is relative.`);const t=e.replace(/\\/g,"/");return"/"===t[0]?"."+t:/^\.\.?\//.test(t)?t:`./${t}`}const O=e=>(e=>"object"==typeof e.reason&&!Array.isArray(e.reason)&&null!==e.reason)(e)&&"string"==typeof e.reason.message,P=(0,i.lazy)(()=>Promise.all([n.e(76),n.e(639)]).then(n.bind(n,639))),I=(0,i.lazy)(()=>Promise.all([n.e(76),n.e(240)]).then(n.bind(n,240))),L=()=>{const e=function(){const[e,t]=(0,a.useState)({status:"detecting"}),n=(0,s.useCloudpack)();return(0,a.useEffect)(()=>{!async function(){if(!window.__cloudpack)throw new Error("Cloudpack not found on window");const{getPageLoadTime:e,getBrowserCacheRatio:r,pageSessionContext:o}=window.__cloudpack;if(!e)throw new Error("getPageLoadTime not found on window.__cloudpack");if(!o)throw new Error("pageSessionContext not found on window.__cloudpack");if(!r)throw new Error("getBrowserCacheRatio not found on window.__cloudpack");const s=await e().then(e=>(t({pageLoadTime:e,status:"success"}),e)).catch(e=>(console.error("[Cloudpack] Failed to get page load time",e),t({status:"error"}),null)),i=r();await n.reportSpan.mutate({name:"PAGE_LOAD_TIME",startTime:0,endTime:s??0,attributes:{path:o.requestPath,browserCacheHitCount:i.hit,browserCacheTotalCount:i.total,browserCacheRatio:i.ratio}})}()},[n]),e}(),[t,n]=(0,a.useState)(!1),o=j(),u=(0,a.useRef)(),{unsupported:c}=(()=>{const[e,t]=(0,a.useState)({unsupported:[]}),n=(0,s.useCloudpack)(),r=window.__pageErrors;return(0,a.useEffect)(()=>{if(!r)return void console.error("[Cloudpack] window.__pageErrors not found (unable to handle unsupported imports)");const e=(e,r)=>{const o=e.match(/[Mm]odule specifier,? ['"](.*?)['"]/);if(!o)return;const s=function(e=""){if(/^\.\.?\//.test(e))return{packageName:".",version:"",importPath:e};const t=e.match(/^\/?((?:@[-\w.]+\/)?[-\w.:]+)(?:@([-\w.]+))?(\/[\w./$:-]*\/?)?/)||[];return{packageName:t[1]||".",version:t[2]||"",importPath:N(t[3])}}(o[1]),{packageName:i,importPath:a}=s;(async()=>{r&&r===location.href&&(r=void 0);const{fixable:e}=await n.validatePackageOverride.query({packageName:i,importPath:a,issuerUrl:r}),o=e||"."!==a&&(await n.validatePackageOverride.query({packageName:i,importPath:".",issuerUrl:r})).fixable;t(t=>({...t,unsupported:[...t.unsupported,{packageName:i,importPath:a,issuerUrl:r,fixable:e,isValidPackage:o}]}))})().catch(()=>{})},o=n.onDataChanged.subscribe(k.errorEntrySource,{onData:t=>{t&&"string"==typeof t&&(console.error(t),e(t))}});r.unregister(),window.addEventListener("error",t=>{e(t.message,t.filename)});for(const t of r.uncaughtErrors)e(t.message,t.filename);window.addEventListener("unhandledrejection",t=>{O(t)&&e(t.reason.message)});for(const t of r.uncaughtRejections)O(t)&&e(t.reason.message);return()=>{o.unsubscribe()}},[n,r]),e})();(0,a.useEffect)(()=>{t||"idle"===u.current?.status||"idle"!==o.status||(u.current?.totalErrors||0)===(o.totalErrors||0)||n(!0),u.current=o},[o,t]);const l=c.length?(0,r.jsx)(I,{unsupported:c}):(0,r.jsxs)(r.Fragment,{children:[t&&(0,r.jsx)(P,{onClose:()=>n(!1)}),(0,r.jsx)(z,{onOpenDialog:()=>n(!0),pageLoadTimeReport:e})]});return(0,r.jsx)(i.Suspense,{fallback:null,children:l})};var U=n(206),R={};R.styleTagTransform=A(),R.setAttributes=v(),R.insert=_().bind(null,"head"),R.domAPI=d(),R.insertStyleElement=g(),l()(U.default,R);const Y=U.default&&U.default.locals?U.default.locals:void 0,q=({children:e})=>(0,r.jsx)("div",{class:Y.root,children:e});var H=Object.create,$=Object.defineProperty,Z=Object.getOwnPropertyDescriptor,W=Object.getOwnPropertyNames,Q=Object.getPrototypeOf,V=Object.prototype.hasOwnProperty,F=(e,t)=>function(){return t||(0,e[W(e)[0]])((t={exports:{}}).exports,t),t.exports},G=(e,t,n)=>(n=null!=e?H(Q(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var o,s=W(t),i=0,a=s.length;i<a;i++)o=s[i],V.call(e,o)||undefined===o||$(e,o,{get:(e=>t[e]).bind(null,o),enumerable:!(r=Z(t,o))||r.enumerable});return e})(!t&&e&&e.__esModule?n:$(n,"default",{value:e,enumerable:!0}),e)),J=F({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(e){return t.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),K=F({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=J().default;t.exports=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},t.exports.__esModule=!0,t.exports.default=t.exports}}),X=F({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=J().default,r=K();t.exports=function(e){var t=r(e,"string");return"symbol"==n(t)?t:t+""},t.exports.__esModule=!0,t.exports.default=t.exports}}),ee=F({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=X();t.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},t.exports.__esModule=!0,t.exports.default=t.exports}}),te=F({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=ee();function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}t.exports=function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?r(Object(o),!0).forEach(function(t){n(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e},t.exports.__esModule=!0,t.exports.default=t.exports}});function ne(e){const t={subscribe(t){let n=null,r=!1,o=!1,s=!1;function i(){null!==n?o||(o=!0,"function"==typeof n?n():n&&n.unsubscribe()):s=!0}return n=e({next(e){var n;r||null===(n=t.next)||void 0===n||n.call(t,e)},error(e){var n;r||(r=!0,null===(n=t.error)||void 0===n||n.call(t,e),i())},complete(){var e;r||(r=!0,null===(e=t.complete)||void 0===e||e.call(t),i())}}),s&&i(),{unsubscribe:i}},pipe:(...e)=>e.reduce(re,t)};return t}function re(e,t){return t(e)}function oe(e){return ne(t=>function t(n=0,r=e.op){const o=e.links[n];if(!o)throw new Error("No more links to execute - did you forget to add an ending link?");return o({op:r,next:e=>t(n+1,e)})}().subscribe(t))}function se(e){return Array.isArray(e)?e:[e]}function ie(e){return!!e&&!Array.isArray(e)&&"object"==typeof e}"function"==typeof Symbol&&Symbol.asyncIterator;const ae=e=>e();function ue(e=0){return new Promise(t=>setTimeout(t,e))}var ce=G(ee(),1),le=G(te(),1),pe=class e extends Error{constructor(t,n){var r,o;const s=null==n?void 0:n.cause;super(t,{cause:s}),(0,ce.default)(this,"cause",void 0),(0,ce.default)(this,"shape",void 0),(0,ce.default)(this,"data",void 0),(0,ce.default)(this,"meta",void 0),this.meta=null==n?void 0:n.meta,this.cause=s,this.shape=null==n||null===(r=n.result)||void 0===r?void 0:r.error,this.data=null==n||null===(o=n.result)||void 0===o?void 0:o.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,e.prototype)}static from(t,n={}){const r=t;return function(e){return e instanceof pe}(r)?(n.meta&&(r.meta=(0,le.default)((0,le.default)({},r.meta),n.meta)),r):ie(o=r)&&ie(o.error)&&"number"==typeof o.error.code&&"string"==typeof o.error.message?new e(r.error.message,(0,le.default)((0,le.default)({},n),{},{result:r})):new e("string"==typeof(s=r)?s:ie(s)&&"string"==typeof s.message?s.message:"Unknown error",(0,le.default)((0,le.default)({},n),{},{cause:r}));var o,s}};function de(e){return e?"input"in e?e:{input:e,output:e}:{input:{serialize:e=>e,deserialize:e=>e},output:{serialize:e=>e,deserialize:e=>e}}}const fe=e=>"function"==typeof e;var _e=G(te(),1);const he={query:"GET",mutation:"POST",subscription:"PATCH"};function ve(e){return"input"in e?e.transformer.input.serialize(e.input):function(e){const t={};for(let n=0;n<e.length;n++){const r=e[n];t[n]=r}return t}(e.inputs.map(t=>e.transformer.input.serialize(t)))}const me=e=>{const t=e.url.split("?");let n=t[0].replace(/\/$/,"")+"/"+e.path;const r=[];if(t[1]&&r.push(t[1]),"inputs"in e&&r.push("batch=1"),"query"===e.type||"subscription"===e.type){const t=ve(e);void 0!==t&&"POST"!==e.methodOverride&&r.push(`input=${encodeURIComponent(JSON.stringify(t))}`)}return r.length&&(n+="?"+r.join("&")),n},ge=e=>{if("query"===e.type&&"POST"!==e.methodOverride)return;const t=ve(e);return void 0!==t?JSON.stringify(t):void 0};var ye=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const Ae=e=>{var t;if(null==e?void 0:e.aborted){if(null===(t=e.throwIfAborted)||void 0===t||t.call(e),"undefined"!=typeof DOMException)throw new DOMException("AbortError","AbortError");throw new ye}};G(te(),1);var be=Object.create,xe=Object.defineProperty,Ce=Object.getOwnPropertyDescriptor,Ee=Object.getOwnPropertyNames,we=Object.getPrototypeOf,Me=Object.prototype.hasOwnProperty,ke=(e,t)=>function(){return t||(0,e[Ee(e)[0]])((t={exports:{}}).exports,t),t.exports},je=(e,t,n)=>(n=null!=e?be(we(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var o,s=Ee(t),i=0,a=s.length;i<a;i++)o=s[i],Me.call(e,o)||undefined===o||xe(e,o,{get:(e=>t[e]).bind(null,o),enumerable:!(r=Ce(t,o))||r.enumerable});return e})(!t&&e&&e.__esModule?n:xe(n,"default",{value:e,enumerable:!0}),e));const Se=()=>{},Te=e=>{Object.freeze&&Object.freeze(e)};function De(e,t,n){var r;const o=t.join(".");return null!==(r=n[o])&&void 0!==r||(n[o]=new Proxy(Se,{get(r,o){if("string"==typeof o&&"then"!==o)return De(e,[...t,o],n)},apply(n,r,o){const s=t[t.length-1];let i={args:o,path:t};return"call"===s?i={args:o.length>=2?[o[1]]:[],path:t.slice(0,-1)}:"apply"===s&&(i={args:o.length>=2?o[1]:[],path:t.slice(0,-1)}),Te(i.args),Te(i.path),e(i)}})),n[o]}const Be=e=>De(e,[],Object.create(null));var ze=ke({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(e){return t.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Ne=ke({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=ze().default;t.exports=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},t.exports.__esModule=!0,t.exports.default=t.exports}}),Oe=ke({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=ze().default,r=Ne();t.exports=function(e){var t=r(e,"string");return"symbol"==n(t)?t:t+""},t.exports.__esModule=!0,t.exports.default=t.exports}}),Pe=ke({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=Oe();t.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},t.exports.__esModule=!0,t.exports.default=t.exports}}),Ie=ke({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=Pe();function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}t.exports=function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?r(Object(o),!0).forEach(function(t){n(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e},t.exports.__esModule=!0,t.exports.default=t.exports}});je(Ie(),1);je(Pe(),1),Error;Error;var Le=je(Ie(),1),Ue=class extends Error{constructor(){super("Unable to transform response from server")}};function Re(e,t){let n;try{n=function(e,t){if("error"in e){const n=t.deserialize(e.error);return{ok:!1,error:(0,Le.default)((0,Le.default)({},e),{},{error:n})}}return{ok:!0,result:(0,Le.default)((0,Le.default)({},e.result),(!e.result.type||"data"===e.result.type)&&{type:"data",data:t.deserialize(e.result.data)})}}(e,t)}catch(e){throw new Ue}if(!(n.ok||ie(n.error.error)&&"number"==typeof n.error.error.code))throw new Ue;if(n.ok&&!ie(n.result))throw new Ue;return n}je(Ie(),1),Symbol("lazy"),Symbol();const Ye=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function qe(e){let t=null,n=null;function r(){const r=function(t){const n=[[]];let r=0;for(;;){const i=t[r];if(!i)break;const a=n[n.length-1];var o,s;i.aborted?(null===(o=i.reject)||void 0===o||o.call(i,new Error("Aborted")),r++):e.validate(a.concat(i).map(e=>e.key))?(a.push(i),r++):0!==a.length?n.push([]):(null===(s=i.reject)||void 0===s||s.call(i,new Error("Input is too big for a single dispatch")),r++)}return n}(t);clearTimeout(n),n=null,t=null;for(const t of r){if(!t.length)continue;const n={items:t};for(const e of t)e.batch=n;e.fetch(n.items.map(e=>e.key)).then(async e=>{await Promise.all(e.map(async(e,t)=>{const r=n.items[t];try{var o;const t=await Promise.resolve(e);null===(o=r.resolve)||void 0===o||o.call(r,t)}catch(e){var s;null===(s=r.reject)||void 0===s||s.call(r,e)}r.batch=null,r.reject=null,r.resolve=null}));for(const e of n.items){var t;null===(t=e.reject)||void 0===t||t.call(e,new Error("Missing result")),e.batch=null}}).catch(e=>{for(const r of n.items){var t;null===(t=r.reject)||void 0===t||t.call(r,e),r.batch=null}})}}return{load:function(e){var o;const s={aborted:!1,key:e,batch:null,resolve:Ye,reject:Ye},i=new Promise((e,n)=>{var r;s.reject=n,s.resolve=e,null!==(r=t)&&void 0!==r||(t=[]),t.push(s)});return null!==(o=n)&&void 0!==o||(n=setTimeout(r)),i}}}var He=G(te(),1);function $e(e){var t,n;const r=function(e){return{url:e.url.toString(),fetch:e.fetch,transformer:de(e.transformer),methodOverride:e.methodOverride}}(e),o=null!==(t=e.maxURLLength)&&void 0!==t?t:1/0,s=null!==(n=e.maxItems)&&void 0!==n?n:1/0;return()=>{const t=t=>({validate(e){if(o===1/0&&s===1/0)return!0;if(e.length>s)return!1;const n=e.map(e=>e.path).join(","),i=e.map(e=>e.input);return me((0,He.default)((0,He.default)({},r),{},{type:t,path:n,inputs:i,signal:null})).length<=o},async fetch(n){const o=n.map(e=>e.path).join(","),s=n.map(e=>e.input),i=function(...e){const t=new AbortController,n=e.length;let r=0;const o=()=>{++r===n&&t.abort()};for(const t of e)(null==t?void 0:t.aborted)?o():null==t||t.addEventListener("abort",o,{once:!0});return t.signal}(...n.map(e=>e.signal)),a=await(e=>async function(e){const t={},n=await async function(e){var t;Ae(e.signal);const n=e.getUrl(e),r=e.getBody(e),{type:o}=e,s=await(async()=>{const t=await e.headers();return Symbol.iterator in t?Object.fromEntries(t):t})(),i=(0,_e.default)((0,_e.default)((0,_e.default)({},e.contentTypeHeader?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0),s);return function(e){if(e)return e;if("undefined"!=typeof window&&fe(window.fetch))return window.fetch;if("undefined"!=typeof globalThis&&fe(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}(e.fetch)(n,{method:null!==(t=e.methodOverride)&&void 0!==t?t:he[o],signal:e.signal,body:r,headers:i})}(e);t.response=n;const r=await n.json();return t.responseJSON=r,{json:r,meta:t}}((0,_e.default)((0,_e.default)({},e),{},{contentTypeHeader:"application/json",getUrl:me,getBody:ge})))((0,He.default)((0,He.default)({},r),{},{path:o,inputs:s,type:t,headers:()=>e.headers?"function"==typeof e.headers?e.headers({opList:n}):e.headers:{},signal:i}));return(Array.isArray(a.json)?a.json:n.map(()=>a.json)).map(e=>({meta:a.meta,json:e}))}}),n={query:qe(t("query")),mutation:qe(t("mutation"))};return({op:e})=>ne(t=>{if("subscription"===e.type)throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");let o;return n[e.type].load(e).then(e=>{o=e;const n=Re(e.json,r.transformer.output);n.ok?(t.next({context:e.meta,result:n.result}),t.complete()):t.error(pe.from(n.error,{meta:e.meta}))}).catch(e=>{t.error(pe.from(e,{meta:null==o?void 0:o.meta}))}),()=>{}})}}function Ze(e){let t=e;const n=[],r=ne(e=>((e=>{void 0!==t&&e.next(t),n.push(e)})(e),()=>{(e=>{n.splice(n.indexOf(e),1)})(e)}));return r.next=e=>{if(t!==e){t=e;for(const t of n)t.next(e)}},r.get=()=>t,r}G(te(),1),Symbol();const We={enabled:!1,closeMs:0},Qe={enabled:!1,pongTimeoutMs:1e3,intervalMs:5e3},Ve=e=>0===e?0:Math.min(1e3*2**e,3e4),Fe=(e,...t)=>"function"==typeof e?e(...t):e;var Ge=G(ee(),1),Je=class e extends Error{constructor(t){super(t.message,{cause:t.cause}),this.name="TRPCWebSocketClosedError",Object.setPrototypeOf(this,e.prototype)}},Ke=class{constructor(e,t){this.onTimeout=e,this.timeoutMs=t,(0,Ge.default)(this,"timeout",void 0)}reset(){this.timeout&&(clearTimeout(this.timeout),this.timeout=setTimeout(this.onTimeout,this.timeoutMs))}start(){clearTimeout(this.timeout),this.timeout=setTimeout(this.onTimeout,this.timeoutMs)}stop(){clearTimeout(this.timeout),this.timeout=void 0}};function Xe(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var et=G(ee(),1),tt=class{constructor(){(0,et.default)(this,"outgoingRequests",new Array),(0,et.default)(this,"pendingRequests",{})}register(e,t){const{promise:n,resolve:r}=Xe();return this.outgoingRequests.push({id:String(e.id),message:e,end:n,callbacks:{next:t.next,complete:()=>{t.complete(),r()},error:e=>{t.error(e),r()}}}),()=>{this.delete(e.id),t.complete(),r()}}delete(e){null!==e&&(this.outgoingRequests=this.outgoingRequests.filter(({id:t})=>t!==String(e)),delete this.pendingRequests[String(e)])}flush(){const e=this.outgoingRequests;this.outgoingRequests=[];for(const t of e)this.pendingRequests[t.id]=t;return e}getPendingRequests(){return Object.values(this.pendingRequests)}getPendingRequest(e){return null===e?null:this.pendingRequests[String(e)]}getOutgoingRequests(){return this.outgoingRequests}getRequests(){return[...this.getOutgoingRequests().map(e=>({state:"outgoing",message:e.message,end:e.end,callbacks:e.callbacks})),...this.getPendingRequests().map(e=>({state:"pending",message:e.message,end:e.end,callbacks:e.callbacks}))]}hasPendingRequests(){return this.getPendingRequests().length>0}hasPendingSubscriptions(){return this.getPendingRequests().some(e=>"subscription"===e.message.method)}hasOutgoingRequests(){return this.outgoingRequests.length>0}},nt=G(ee(),1);function rt(e,{intervalMs:t,pongTimeoutMs:n}){let r,o;function s(){r=setTimeout(()=>{e.send("PING"),o=setTimeout(()=>{e.close()},n)},t)}e.addEventListener("open",s),e.addEventListener("message",({data:e})=>{clearTimeout(r),s(),"PONG"===e&&(clearTimeout(o),clearTimeout(r),s())}),e.addEventListener("close",()=>{clearTimeout(r),clearTimeout(o)})}var ot=class e{constructor(t){var n;if((0,nt.default)(this,"id",++e.connectCount),(0,nt.default)(this,"WebSocketPonyfill",void 0),(0,nt.default)(this,"urlOptions",void 0),(0,nt.default)(this,"keepAliveOpts",void 0),(0,nt.default)(this,"wsObservable",Ze(null)),(0,nt.default)(this,"openPromise",null),this.WebSocketPonyfill=null!==(n=t.WebSocketPonyfill)&&void 0!==n?n:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=t.urlOptions,this.keepAliveOpts=t.keepAlive}get ws(){return this.wsObservable.get()}set ws(e){this.wsObservable.next(e)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var t=this;if(t.openPromise)return t.openPromise;t.id=++e.connectCount;const n=async function(e){const t=await Fe(e.url);if(!e.connectionParams)return t;const n=t.includes("?")?"&":"?";return t+`${n}connectionParams=1`}(t.urlOptions).then(e=>new t.WebSocketPonyfill(e));t.openPromise=n.then(async e=>{t.ws=e,e.addEventListener("message",function({data:e}){"PING"===e&&this.send("PONG")}),t.keepAliveOpts.enabled&&rt(e,t.keepAliveOpts),e.addEventListener("close",()=>{t.ws===e&&(t.ws=null)}),await function(e){const{promise:t,resolve:n,reject:r}=Xe();return e.addEventListener("open",()=>{e.removeEventListener("error",r),n()}),e.addEventListener("error",r),t}(e),t.urlOptions.connectionParams&&e.send(await async function(e){const t={method:"connectionParams",data:await Fe(e)};return JSON.stringify(t)}(t.urlOptions.connectionParams))});try{await t.openPromise}finally{t.openPromise=null}}async close(){try{await this.openPromise}finally{var e;null===(e=this.ws)||void 0===e||e.close()}}};(0,nt.default)(ot,"connectCount",0);var st=G(ee(),1),it=G(te(),1),at=class{constructor(e){var t;(0,st.default)(this,"connectionState",void 0),(0,st.default)(this,"allowReconnect",!1),(0,st.default)(this,"requestManager",new tt),(0,st.default)(this,"activeConnection",void 0),(0,st.default)(this,"reconnectRetryDelay",void 0),(0,st.default)(this,"inactivityTimeout",void 0),(0,st.default)(this,"callbacks",void 0),(0,st.default)(this,"lazyMode",void 0),(0,st.default)(this,"reconnecting",null),this.callbacks={onOpen:e.onOpen,onClose:e.onClose,onError:e.onError};const n=(0,it.default)((0,it.default)({},We),e.lazy);this.inactivityTimeout=new Ke(()=>{this.requestManager.hasOutgoingRequests()||this.requestManager.hasPendingRequests()?this.inactivityTimeout.reset():this.close().catch(()=>null)},n.closeMs),this.activeConnection=new ot({WebSocketPonyfill:e.WebSocket,urlOptions:e,keepAlive:(0,it.default)((0,it.default)({},Qe),e.keepAlive)}),this.activeConnection.wsObservable.subscribe({next:e=>{e&&this.setupWebSocketListeners(e)}}),this.reconnectRetryDelay=null!==(t=e.retryDelayMs)&&void 0!==t?t:Ve,this.lazyMode=n.enabled,this.connectionState=Ze({type:"state",state:n.enabled?"idle":"connecting",error:null}),this.lazyMode||this.open().catch(()=>null)}async open(){var e=this;e.allowReconnect=!0,"connecting"!==e.connectionState.get().state&&e.connectionState.next({type:"state",state:"connecting",error:null});try{await e.activeConnection.open()}catch(t){return e.reconnect(new Je({message:"Initialization error",cause:t})),e.reconnecting}}async close(){var e=this;e.allowReconnect=!1,e.inactivityTimeout.stop();const t=[];for(const n of e.requestManager.getRequests())"subscription"===n.message.method?n.callbacks.complete():"outgoing"===n.state?n.callbacks.error(pe.from(new Je({message:"Closed before connection was established"}))):t.push(n.end);await Promise.all(t).catch(()=>null),await e.activeConnection.close().catch(()=>null),e.connectionState.next({type:"state",state:"idle",error:null})}request({op:{id:e,type:t,path:n,input:r,signal:o},transformer:s,lastEventId:i}){return ne(a=>{const u=this.batchSend({id:e,method:t,params:{input:s.input.serialize(r),path:n,lastEventId:i}},(0,it.default)((0,it.default)({},a),{},{next(e){const t=Re(e,s.output);t.ok?a.next({result:t.result}):a.error(pe.from(t.error))}}));return()=>{u(),"subscription"===t&&this.activeConnection.isOpen()&&this.send({id:e,method:"subscription.stop"}),null==o||o.removeEventListener("abort",u)}})}get connection(){return(e=this.activeConnection).isOpen()?{id:e.id,state:"open",ws:e.ws}:e.isClosed()?{id:e.id,state:"closed",ws:e.ws}:e.ws?{id:e.id,state:"connecting",ws:e.ws}:null;var e}reconnect(e){var t=this;if(this.connectionState.next({type:"state",state:"connecting",error:pe.from(e)}),this.reconnecting)return;const n=async e=>{try{await ue(t.reconnectRetryDelay(e)),t.allowReconnect&&(await t.activeConnection.close(),await t.activeConnection.open(),t.requestManager.hasPendingRequests()&&t.send(t.requestManager.getPendingRequests().map(({message:e})=>e))),t.reconnecting=null}catch(t){await n(e+1)}};this.reconnecting=n(0)}setupWebSocketListeners(e){var t=this;const n=e=>{const t=this.requestManager.getPendingRequests();for(const{message:n,callbacks:r}of t)"subscription"!==n.method&&(r.error(pe.from(null!=e?e:new Je({message:"WebSocket closed",cause:e}))),this.requestManager.delete(n.id))};e.addEventListener("open",()=>{ae(async()=>{var e,n;t.lazyMode&&t.inactivityTimeout.start(),null===(e=(n=t.callbacks).onOpen)||void 0===e||e.call(n),t.connectionState.next({type:"state",state:"pending",error:null})}).catch(t=>{e.close(3e3),n(t)})}),e.addEventListener("message",({data:e})=>{if(this.inactivityTimeout.reset(),"string"!=typeof e||["PING","PONG"].includes(e))return;const t=JSON.parse(e);"method"in t?this.handleIncomingRequest(t):this.handleResponseMessage(t)}),e.addEventListener("close",e=>{var t,r;n(e),null===(t=(r=this.callbacks).onClose)||void 0===t||t.call(r,e),this.lazyMode&&!this.requestManager.hasPendingSubscriptions()||this.reconnect(new Je({message:"WebSocket closed",cause:e}))}),e.addEventListener("error",e=>{var t,r;n(e),null===(t=(r=this.callbacks).onError)||void 0===t||t.call(r,e),this.reconnect(new Je({message:"WebSocket closed",cause:e}))})}handleResponseMessage(e){const t=this.requestManager.getPendingRequest(e.id);if(!t)return;t.callbacks.next(e);let n=!0;"result"in e&&"subscription"===t.message.method&&("data"===e.result.type&&(t.message.params.lastEventId=e.result.id),"stopped"!==e.result.type&&(n=!1)),n&&(t.callbacks.complete(),this.requestManager.delete(e.id))}handleIncomingRequest(e){"reconnect"===e.method&&this.reconnect(new Je({message:"Server requested reconnect"}))}send(e){if(!this.activeConnection.isOpen())throw new Error("Active connection is not open");const t=e instanceof Array?e:[e];this.activeConnection.ws.send(JSON.stringify(1===t.length?t[0]:t))}batchSend(e,t){var n=this;return this.inactivityTimeout.reset(),ae(async()=>{n.activeConnection.isOpen()||await n.open(),await ue(0),n.requestManager.hasOutgoingRequests()&&n.send(n.requestManager.flush().map(({message:e})=>e))}).catch(n=>{this.requestManager.delete(e.id),t.error(pe.from(n))}),this.requestManager.register(e,t)}};function ut(e){const{client:t}=e,n=de(e.transformer);return()=>({op:e})=>ne(r=>{const o="subscription"===e.type?t.connectionState.subscribe({next(t){r.next({result:t,context:e.context})}}):null,s=t.request({op:e,transformer:n}).subscribe(r);return()=>{s.unsubscribe(),null==o||o.unsubscribe()}})}var ct=G(ee(),1),lt=G(te(),1),pt=class{constructor(e){(0,ct.default)(this,"links",void 0),(0,ct.default)(this,"runtime",void 0),(0,ct.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(e=>e(this.runtime))}$request(e){var t;return oe({links:this.links,op:(0,lt.default)((0,lt.default)({},e),{},{context:null!==(t=e.context)&&void 0!==t?t:{},id:++this.requestId})}).pipe(e=>{let t=0,n=null;const r=[];return ne(o=>(t++,r.push(o),n||(n=e.subscribe({next(e){for(const n of r){var t;null===(t=n.next)||void 0===t||t.call(n,e)}},error(e){for(const n of r){var t;null===(t=n.error)||void 0===t||t.call(n,e)}},complete(){for(const t of r){var e;null===(e=t.complete)||void 0===e||e.call(t)}}})),{unsubscribe(){t--,function(){if(0===t&&n){const e=n;n=null,e.unsubscribe()}}();const e=r.findIndex(e=>e===o);e>-1&&r.splice(e,1)}}))})}async requestAsPromise(e){try{const t=this.$request(e);return(await function(e){const t=new AbortController;return new Promise((n,r)=>{let o=!1;function s(){o||(o=!0,i.unsubscribe())}t.signal.addEventListener("abort",()=>{r(t.signal.reason)});const i=e.subscribe({next(e){o=!0,n(e),s()},error(e){r(e)},complete(){t.abort(),s()}})})}(t)).result.data}catch(e){throw pe.from(e)}}query(e,t,n){return this.requestAsPromise({type:"query",path:e,input:t,context:null==n?void 0:n.context,signal:null==n?void 0:n.signal})}mutation(e,t,n){return this.requestAsPromise({type:"mutation",path:e,input:t,context:null==n?void 0:n.context,signal:null==n?void 0:n.signal})}subscription(e,t,n){return this.$request({type:"subscription",path:e,input:t,context:n.context,signal:n.signal}).subscribe({next(e){switch(e.result.type){case"state":var t;null===(t=n.onConnectionStateChange)||void 0===t||t.call(n,e.result);break;case"started":var r;null===(r=n.onStarted)||void 0===r||r.call(n,{context:e.context});break;case"stopped":var o;null===(o=n.onStopped)||void 0===o||o.call(n);break;case"data":case void 0:var s;null===(s=n.onData)||void 0===s||s.call(n,e.result.data)}},error(e){var t;null===(t=n.onError)||void 0===t||t.call(n,e)},complete(){var e;null===(e=n.onComplete)||void 0===e||e.call(n)}})}};const dt=Symbol.for("trpc_untypedClient"),ft={query:"query",mutate:"mutation",subscribe:"subscription"};G(te(),1),G(te(),1),G(F({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then(function(e){return{value:e,done:t}})}return(n=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new n(e)}t.exports=function(e){var t,r,o,s=2;for("undefined"!=typeof Symbol&&(r=Symbol.asyncIterator,o=Symbol.iterator);s--;){if(r&&null!=(t=e[r]))return t.call(e);if(o&&null!=(t=e[o]))return new n(t.call(e));r="@@asyncIterator",o="@@iterator"}throw new TypeError("Object is not async iterable")},t.exports.__esModule=!0,t.exports.default=t.exports}})(),1),G(te(),1);var _t=F({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){t.exports=function(){var e="function"==typeof SuppressedError?SuppressedError:function(e,t){var n=Error();return n.name="SuppressedError",n.error=e,n.suppressed=t,n},t={},n=[];function r(e,t){if(null!=t){if(Object(t)!==t)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(e)var r=t[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(void 0===r&&(r=t[Symbol.dispose||Symbol.for("Symbol.dispose")],e))var o=r;if("function"!=typeof r)throw new TypeError("Object is not disposable.");o&&(r=function(){try{o.call(t)}catch(e){return Promise.reject(e)}}),n.push({v:t,d:r,a:e})}else e&&n.push({d:t,a:e});return t}return{e:t,u:r.bind(null,!1),a:r.bind(null,!0),d:function(){var r,o=this.e,s=0;function i(){for(;r=n.pop();)try{if(!r.a&&1===s)return s=0,n.push(r),Promise.resolve().then(i);if(r.d){var e=r.d.call(r.v);if(r.a)return s|=2,Promise.resolve(e).then(i,a)}else s|=1}catch(e){return a(e)}if(1===s)return o!==t?Promise.reject(o):Promise.resolve();if(o!==t)throw o}function a(n){return o=o!==t?new e(n,o):n,i()}return i()}}},t.exports.__esModule=!0,t.exports.default=t.exports}}),ht=F({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){t.exports=function(e,t){this.v=e,this.k=t},t.exports.__esModule=!0,t.exports.default=t.exports}}),vt=F({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var n=ht();t.exports=function(e){return new n(e,0)},t.exports.__esModule=!0,t.exports.default=t.exports}}),mt=F({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var n=ht();function r(e){var t,r;function o(t,r){try{var i=e[t](r),a=i.value,u=a instanceof n;Promise.resolve(u?a.v:a).then(function(n){if(u){var r="return"===t?"return":"next";if(!a.k||n.done)return o(r,n);n=e[r](n).value}s(i.done?"return":"normal",n)},function(e){o("throw",e)})}catch(e){s("throw",e)}}function s(e,n){switch(e){case"return":t.resolve({value:n,done:!0});break;case"throw":t.reject(n);break;default:t.resolve({value:n,done:!1})}(t=t.next)?o(t.key,t.arg):r=null}this._invoke=function(e,n){return new Promise(function(s,i){var a={key:e,arg:n,resolve:s,reject:i,next:null};r?r=r.next=a:(t=r=a,o(e,n))})},"function"!=typeof e.return&&(this.return=void 0)}r.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},r.prototype.next=function(e){return this._invoke("next",e)},r.prototype.throw=function(e){return this._invoke("throw",e)},r.prototype.return=function(e){return this._invoke("return",e)},t.exports=function(e){return function(){return new r(e.apply(this,arguments))}},t.exports.__esModule=!0,t.exports.default=t.exports}});async function gt(e){await async function(){if("undefined"!=typeof global){const e=global;if(void 0===e.WebSocket){const{WebSocket:t}=await n.e(621).then(n.t.bind(n,621,19));e.WebSocket=t}}}(),function({reporter:e}){"undefined"!=typeof process&&(process.env.NODE_TLS_REJECT_UNAUTHORIZED="0",e?.ignoreLogMessage("Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable"))}({reporter:e.reporter});const t=new at(e),r=function(e,t){try{return new URL(e,t)}catch{throw new Error(`Invalid URL: "${e}", base: ""`)}}(e.url),o="wss:"===r.protocol;r.protocol=o?"https:":"http:";const s=r.toString().replace(/\/$/,""),i=function(e){return function(e){const t=Be(({path:t,args:n})=>{const r=[...t],o=(s=r.pop(),ft[s]);var s;const i=r.join(".");return e[o](i,...n)});return n=n=>n===dt?e:t[n],new Proxy(Se,{get(e,t){if("then"!==t)return n(t)}});var n}(new pt(e))}({links:[(a={condition:e=>"subscription"===e.type,true:ut({client:t}),false:$e({url:s})},e=>{const t=se(a.true).map(t=>t(e)),n=se(a.false).map(t=>t(e));return e=>ne(r=>{const o=a.condition(e.op)?t:n;return oe({op:e.op,links:o}).subscribe(r)})})]});var a;return new Proxy({close:async()=>{await t.close()}},{get:(e,t)=>e.hasOwnProperty(t)?e[t]:i[t]})}G(_t(),1),G(vt(),1),G(mt(),1),G(te(),1),async function(){if(!window.__cloudpack)throw new Error("Cloudpack not found on window");const{pageSessionContext:e}=window.__cloudpack;if(!e)throw new Error("Session context not found on window.__cloudpack");const{apiUrl:t,currentSequence:n,sessionId:i}=e,a=await gt({url:t});i===await a.getSessionId.query()&&console.log("[Cloudpack] socket opened"),a.onDataChanged.subscribe(k.reloadCountSource,{onData:e=>{Number(e)>n&&window.location.reload()}});const u=document.createElement("div");u.id=S.elementIds.root,(0,o.render)((0,r.jsx)(q,{children:(0,r.jsx)(s.CloudpackProvider,{client:a,children:(0,r.jsx)(L,{})})}),u),document.body.appendChild(u)}()},415:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},437:e=>{var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},552:(e,t,n)=>{n.d(t,{Component:()=>w,Fragment:()=>E,cloneElement:()=>Q,createContext:()=>V,createElement:()=>b,createRef:()=>C,hydrate:()=>W,options:()=>o,render:()=>Z,toChildArray:()=>z});var r,o,s,i,a,u,c,l,p,d,f,_,h={},v=[],m=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,g=Array.isArray;function y(e,t){for(var n in t)e[n]=t[n];return e}function A(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function b(e,t,n){var o,s,i,a={};for(i in t)"key"==i?o=t[i]:"ref"==i?s=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return x(e,a,o,s,null)}function x(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==i?++s:i,__i:-1,__u:0};return null==i&&null!=o.vnode&&o.vnode(a),a}function C(){return{current:null}}function E(e){return e.children}function w(e,t){this.props=e,this.context=t}function M(e,t){if(null==t)return e.__?M(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?M(e):null}function k(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return k(e)}}function j(e){(!e.__d&&(e.__d=!0)&&i.push(e)&&!S.__r++||a!=o.debounceRendering)&&((a=o.debounceRendering)||u)(S)}function S(){for(var e,t,n,r,s,a,u,l=1;i.length;)i.length>l&&i.sort(c),e=i.shift(),l=i.length,e.__d&&(n=void 0,s=(r=(t=e).__v).__e,a=[],u=[],t.__P&&((n=y({},r)).__v=r.__v+1,o.vnode&&o.vnode(n),L(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[s]:null,a,null==s?M(r):s,!!(32&r.__u),u),n.__v=r.__v,n.__.__k[n.__i]=n,U(a,n,u),n.__e!=s&&k(n)));S.__r=0}function T(e,t,n,r,o,s,i,a,u,c,l){var p,d,f,_,m,g,y=r&&r.__k||v,A=t.length;for(u=D(n,t,y,u,A),p=0;p<A;p++)null!=(f=n.__k[p])&&(d=-1==f.__i?h:y[f.__i]||h,f.__i=p,g=L(e,f,d,o,s,i,a,u,c,l),_=f.__e,f.ref&&d.ref!=f.ref&&(d.ref&&q(d.ref,null,f),l.push(f.ref,f.__c||_,f)),null==m&&null!=_&&(m=_),4&f.__u||d.__k===f.__k?u=B(f,u,e):"function"==typeof f.type&&void 0!==g?u=g:_&&(u=_.nextSibling),f.__u&=-7);return n.__e=m,u}function D(e,t,n,r,o){var s,i,a,u,c,l=n.length,p=l,d=0;for(e.__k=new Array(o),s=0;s<o;s++)null!=(i=t[s])&&"boolean"!=typeof i&&"function"!=typeof i?(u=s+d,(i=e.__k[s]="string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?x(null,i,null,null,null):g(i)?x(E,{children:i},null,null,null):null==i.constructor&&i.__b>0?x(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=e,i.__b=e.__b+1,a=null,-1!=(c=i.__i=N(i,n,u,p))&&(p--,(a=n[c])&&(a.__u|=2)),null==a||null==a.__v?(-1==c&&(o>l?d--:o<l&&d++),"function"!=typeof i.type&&(i.__u|=4)):c!=u&&(c==u-1?d--:c==u+1?d++:(c>u?d--:d++,i.__u|=4))):e.__k[s]=null;if(p)for(s=0;s<l;s++)null!=(a=n[s])&&!(2&a.__u)&&(a.__e==r&&(r=M(a)),H(a,a));return r}function B(e,t,n){var r,o;if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=B(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=M(e)),n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8==t.nodeType);return t}function z(e,t){return t=t||[],null==e||"boolean"==typeof e||(g(e)?e.some(function(e){z(e,t)}):t.push(e)),t}function N(e,t,n,r){var o,s,i=e.key,a=e.type,u=t[n];if(null===u&&null==e.key||u&&i==u.key&&a==u.type&&!(2&u.__u))return n;if(r>(null==u||2&u.__u?0:1))for(o=n-1,s=n+1;o>=0||s<t.length;){if(o>=0){if((u=t[o])&&!(2&u.__u)&&i==u.key&&a==u.type)return o;o--}if(s<t.length){if((u=t[s])&&!(2&u.__u)&&i==u.key&&a==u.type)return s;s++}}return-1}function O(e,t,n){"-"==t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||m.test(t)?n:n+"px"}function P(e,t,n,r,o){var s,i;e:if("style"==t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||O(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||O(e.style,t,n[t])}else if("o"==t[0]&&"n"==t[1])s=t!=(t=t.replace(l,"$1")),i=t.toLowerCase(),t=i in e||"onFocusOut"==t||"onFocusIn"==t?i.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?r?n.u=r.u:(n.u=p,e.addEventListener(t,s?f:d,s)):e.removeEventListener(t,s?f:d,s);else{if("http://www.w3.org/2000/svg"==o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function I(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=p++;else if(t.t<n.u)return;return n(o.event?o.event(t):t)}}}function L(e,t,n,r,s,i,a,u,c,l){var p,d,f,_,h,v,m,b,x,C,M,k,j,S,D,B,z,N=t.type;if(null!=t.constructor)return null;128&n.__u&&(c=!!(32&n.__u),i=[u=t.__e=n.__e]),(p=o.__b)&&p(t);e:if("function"==typeof N)try{if(b=t.props,x="prototype"in N&&N.prototype.render,C=(p=N.contextType)&&r[p.__c],M=p?C?C.props.value:p.__:r,n.__c?m=(d=t.__c=n.__c).__=d.__E:(x?t.__c=d=new N(b,M):(t.__c=d=new w(b,M),d.constructor=N,d.render=$),C&&C.sub(d),d.props=b,d.state||(d.state={}),d.context=M,d.__n=r,f=d.__d=!0,d.__h=[],d._sb=[]),x&&null==d.__s&&(d.__s=d.state),x&&null!=N.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=y({},d.__s)),y(d.__s,N.getDerivedStateFromProps(b,d.__s))),_=d.props,h=d.state,d.__v=t,f)x&&null==N.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),x&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(x&&null==N.getDerivedStateFromProps&&b!==_&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(b,M),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(b,d.__s,M)||t.__v==n.__v){for(t.__v!=n.__v&&(d.props=b,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),k=0;k<d._sb.length;k++)d.__h.push(d._sb[k]);d._sb=[],d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(b,d.__s,M),x&&null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(_,h,v)})}if(d.context=M,d.props=b,d.__P=e,d.__e=!1,j=o.__r,S=0,x){for(d.state=d.__s,d.__d=!1,j&&j(t),p=d.render(d.props,d.state,d.context),D=0;D<d._sb.length;D++)d.__h.push(d._sb[D]);d._sb=[]}else do{d.__d=!1,j&&j(t),p=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++S<25);d.state=d.__s,null!=d.getChildContext&&(r=y(y({},r),d.getChildContext())),x&&!f&&null!=d.getSnapshotBeforeUpdate&&(v=d.getSnapshotBeforeUpdate(_,h)),B=p,null!=p&&p.type===E&&null==p.key&&(B=R(p.props.children)),u=T(e,g(B)?B:[B],t,n,r,s,i,a,u,c,l),d.base=t.__e,t.__u&=-161,d.__h.length&&a.push(d),m&&(d.__E=d.__=null)}catch(e){if(t.__v=null,c||null!=i)if(e.then){for(t.__u|=c?160:128;u&&8==u.nodeType&&u.nextSibling;)u=u.nextSibling;i[i.indexOf(u)]=null,t.__e=u}else for(z=i.length;z--;)A(i[z]);else t.__e=n.__e,t.__k=n.__k;o.__e(e,t,n)}else null==i&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):u=t.__e=Y(n.__e,t,n,r,s,i,a,c,l);return(p=o.diffed)&&p(t),128&t.__u?void 0:u}function U(e,t,n){for(var r=0;r<n.length;r++)q(n[r],n[++r],n[++r]);o.__c&&o.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){o.__e(e,t.__v)}})}function R(e){return"object"!=typeof e||null==e||e.__b&&e.__b>0?e:g(e)?e.map(R):y({},e)}function Y(e,t,n,s,i,a,u,c,l){var p,d,f,_,v,m,y,b=n.props,x=t.props,C=t.type;if("svg"==C?i="http://www.w3.org/2000/svg":"math"==C?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),null!=a)for(p=0;p<a.length;p++)if((v=a[p])&&"setAttribute"in v==!!C&&(C?v.localName==C:3==v.nodeType)){e=v,a[p]=null;break}if(null==e){if(null==C)return document.createTextNode(x);e=document.createElementNS(i,C,x.is&&x),c&&(o.__m&&o.__m(t,a),c=!1),a=null}if(null==C)b===x||c&&e.data==x||(e.data=x);else{if(a=a&&r.call(e.childNodes),b=n.props||h,!c&&null!=a)for(b={},p=0;p<e.attributes.length;p++)b[(v=e.attributes[p]).name]=v.value;for(p in b)if(v=b[p],"children"==p);else if("dangerouslySetInnerHTML"==p)f=v;else if(!(p in x)){if("value"==p&&"defaultValue"in x||"checked"==p&&"defaultChecked"in x)continue;P(e,p,null,v,i)}for(p in x)v=x[p],"children"==p?_=v:"dangerouslySetInnerHTML"==p?d=v:"value"==p?m=v:"checked"==p?y=v:c&&"function"!=typeof v||b[p]===v||P(e,p,v,b[p],i);if(d)c||f&&(d.__html==f.__html||d.__html==e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(f&&(e.innerHTML=""),T("template"==t.type?e.content:e,g(_)?_:[_],t,n,s,"foreignObject"==C?"http://www.w3.org/1999/xhtml":i,a,u,a?a[0]:n.__k&&M(n,0),c,l),null!=a)for(p=a.length;p--;)A(a[p]);c||(p="value","progress"==C&&null==m?e.removeAttribute("value"):null!=m&&(m!==e[p]||"progress"==C&&!m||"option"==C&&m!=b[p])&&P(e,p,m,b[p],i),p="checked",null!=y&&y!=e[p]&&P(e,p,y,b[p],i))}return e}function q(e,t,n){try{if("function"==typeof e){var r="function"==typeof e.__u;r&&e.__u(),r&&null==t||(e.__u=e(t))}else e.current=t}catch(e){o.__e(e,n)}}function H(e,t,n){var r,s;if(o.unmount&&o.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||q(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){o.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(s=0;s<r.length;s++)r[s]&&H(r[s],t,n||"function"!=typeof e.type);n||A(e.__e),e.__c=e.__=e.__e=void 0}function $(e,t,n){return this.constructor(e,n)}function Z(e,t,n){var s,i,a,u;t==document&&(t=document.documentElement),o.__&&o.__(e,t),i=(s="function"==typeof n)?null:n&&n.__k||t.__k,a=[],u=[],L(t,e=(!s&&n||t).__k=b(E,null,[e]),i||h,h,t.namespaceURI,!s&&n?[n]:i?null:t.firstChild?r.call(t.childNodes):null,a,!s&&n?n:i?i.__e:t.firstChild,s,u),U(a,e,u)}function W(e,t){Z(e,t,W)}function Q(e,t,n){var o,s,i,a,u=y({},e.props);for(i in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)"key"==i?o=t[i]:"ref"==i?s=t[i]:u[i]=void 0===t[i]&&null!=a?a[i]:t[i];return arguments.length>2&&(u.children=arguments.length>3?r.call(arguments,2):n),x(e.type,u,o||e.key,s||e.ref,null)}function V(e){function t(e){var n,r;return this.getChildContext||(n=new Set,(r={})[t.__c]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&n.forEach(function(e){e.__e=!0,j(e)})},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}return t.__c="__cC"+_++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t}r=v.slice,o={__e:function(e,t,n,r){for(var o,s,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((s=o.constructor)&&null!=s.getDerivedStateFromError&&(o.setState(s.getDerivedStateFromError(e)),i=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),i=o.__d),i)return o.__E=o}catch(t){e=t}throw e}},s=0,w.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=y({},this.state),"function"==typeof e&&(e=e(y({},n),this.props)),e&&y(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),j(this))},w.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),j(this))},w.prototype.render=E,i=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=function(e,t){return e.__v.__b-t.__v.__b},S.__r=0,l=/(PointerCapture)$|Capture$/i,p=0,d=I(!1),f=I(!0),_=0},606:e=>{var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var s={},i=[],a=0;a<e.length;a++){var u=e[a],c=r.base?u[0]+r.base:u[0],l=s[c]||0,p="".concat(c," ").concat(l);s[c]=l+1;var d=n(p),f={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==d)t[d].references++,t[d].updater(f);else{var _=o(f,r);r.byIndex=a,t.splice(a,0,{identifier:p,updater:_,references:1})}i.push(p)}return i}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var s=r(e=e||[],o=o||{});return function(e){e=e||[];for(var i=0;i<s.length;i++){var a=n(s[i]);t[a].references--}for(var u=r(e,o),c=0;c<s.length;c++){var l=n(s[c]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}s=u}}},607:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var s=n.sourceMap;s&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},626:(e,t,n)=>{n.d(t,{default:()=>a});var r=n(25),o=n.n(r),s=n(191),i=n.n(s)()(o());i.push([e.id,".keDW8Dp6M_PKogstIGlg {\n position: fixed;\n pointer-events: none;\n background: transparent;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n z-index: var(--cp-zIndexBadge);\n overflow: hidden;\n}\n\n.wiFl5y3aYfqknNzV2wkC {\n display: flex;\n gap: 2px;\n height: 100%;\n width: 12px;\n cursor: move;\n margin-right: -4px;\n}\n\n.L7TZ7XUzFVL4XtqrGq4V {\n width: 2px;\n height: 100%;\n background: rgba(0, 0, 0, 0.2);\n}\n\n.yPxOTtYEtk30suNyVT_f {\n pointer-events: auto;\n /* This makes the element's children behave as if they're direct children of the next element up */\n display: contents;\n}\n\n/* badge root */\n.g8vMw44BD035wMgB4fi5 {\n position: absolute;\n bottom: 4px;\n right: 4px;\n font-size: 12px;\n display: inline-flex;\n gap: 8px;\n background: var(--cp-neutralTertiaryAlt);\n box-shadow: 0 0 12px -6px rgba(0, 0, 0, 0.75);\n border: 1px solid var(--cp-border);\n border-radius: 4px;\n height: 28px;\n flex-shrink: 0;\n justify-content: center;\n align-items: center;\n box-sizing: border-box;\n padding: 3px;\n padding-right: 8px;\n transition: background-color 0.2s ease-in-out;\n}\n.g8vMw44BD035wMgB4fi5.zHoa7JHokcPrDo9fUK7t {\n background: var(--cp-successMed);\n}\n.g8vMw44BD035wMgB4fi5.Jl_ahBnxzwLzgquDusZ6 {\n background: var(--cp-warningMed);\n}\n.g8vMw44BD035wMgB4fi5.xrMdFjTpTTv1b_9S_5z6 {\n background: var(--cp-errorMed);\n}\n\n/* short status + expand button (also used for chevron button) */\n.sNDf4Vc57GDSrCocrEM4 {\n border: none;\n border-radius: 3px;\n display: flex;\n align-self: stretch;\n align-items: center;\n justify-content: center;\n padding: 0;\n margin: 0;\n font: inherit;\n}\n.sNDf4Vc57GDSrCocrEM4:hover {\n filter: invert(0.1);\n}\n\n.DI7dbo1rgbopYUd5O8HW {\n font-weight: 600;\n background: rgba(255, 255, 255, 0.4);\n box-shadow: 2px 2px 3px -1px rgba(0, 0, 0, 0.15) inset;\n padding: 2px 8px;\n border-radius: 3px;\n}\n\n.XuyZoKa6W1UP6CkhLaKw {\n overflow: hidden;\n padding: 0;\n}\n.XuyZoKa6W1UP6CkhLaKw *:not(.pkF2KaBbsrwg9OaLE3UJ) {\n display: none;\n}\n\n.pkF2KaBbsrwg9OaLE3UJ {\n padding: 0 3px;\n}\n","",{version:3,sources:["webpack://./src/components/StatusBadge/StatusBadge.module.css"],names:[],mappings:"AAAA;EACE,eAAe;EACf,oBAAoB;EACpB,uBAAuB;EACvB,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;EACR,8BAA8B;EAC9B,gBAAgB;AAClB;;AAEA;EACE,aAAa;EACb,QAAQ;EACR,YAAY;EACZ,WAAW;EACX,YAAY;EACZ,kBAAkB;AACpB;;AAEA;EACE,UAAU;EACV,YAAY;EACZ,8BAA8B;AAChC;;AAEA;EACE,oBAAoB;EACpB,kGAAkG;EAClG,iBAAiB;AACnB;;AAEA,eAAe;AACf;EACE,kBAAkB;EAClB,WAAW;EACX,UAAU;EACV,eAAe;EACf,oBAAoB;EACpB,QAAQ;EACR,wCAAwC;EACxC,6CAA6C;EAC7C,kCAAkC;EAClC,kBAAkB;EAClB,YAAY;EACZ,cAAc;EACd,uBAAuB;EACvB,mBAAmB;EACnB,sBAAsB;EACtB,YAAY;EACZ,kBAAkB;EAClB,6CAA6C;AAC/C;AACA;EACE,gCAAgC;AAClC;AACA;EACE,gCAAgC;AAClC;AACA;EACE,8BAA8B;AAChC;;AAEA,gEAAgE;AAChE;EACE,YAAY;EACZ,kBAAkB;EAClB,aAAa;EACb,mBAAmB;EACnB,mBAAmB;EACnB,uBAAuB;EACvB,UAAU;EACV,SAAS;EACT,aAAa;AACf;AACA;EACE,mBAAmB;AACrB;;AAEA;EACE,gBAAgB;EAChB,oCAAoC;EACpC,sDAAsD;EACtD,gBAAgB;EAChB,kBAAkB;AACpB;;AAEA;EACE,gBAAgB;EAChB,UAAU;AACZ;AACA;EACE,aAAa;AACf;;AAEA;EACE,cAAc;AAChB",sourcesContent:[".fixedOverlay {\n position: fixed;\n pointer-events: none;\n background: transparent;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n z-index: var(--cp-zIndexBadge);\n overflow: hidden;\n}\n\n.gripArea {\n display: flex;\n gap: 2px;\n height: 100%;\n width: 12px;\n cursor: move;\n margin-right: -4px;\n}\n\n.grip {\n width: 2px;\n height: 100%;\n background: rgba(0, 0, 0, 0.2);\n}\n\n.contentSurface {\n pointer-events: auto;\n /* This makes the element's children behave as if they're direct children of the next element up */\n display: contents;\n}\n\n/* badge root */\n.badge {\n position: absolute;\n bottom: 4px;\n right: 4px;\n font-size: 12px;\n display: inline-flex;\n gap: 8px;\n background: var(--cp-neutralTertiaryAlt);\n box-shadow: 0 0 12px -6px rgba(0, 0, 0, 0.75);\n border: 1px solid var(--cp-border);\n border-radius: 4px;\n height: 28px;\n flex-shrink: 0;\n justify-content: center;\n align-items: center;\n box-sizing: border-box;\n padding: 3px;\n padding-right: 8px;\n transition: background-color 0.2s ease-in-out;\n}\n.badge.success {\n background: var(--cp-successMed);\n}\n.badge.warning {\n background: var(--cp-warningMed);\n}\n.badge.error {\n background: var(--cp-errorMed);\n}\n\n/* short status + expand button (also used for chevron button) */\n.button {\n border: none;\n border-radius: 3px;\n display: flex;\n align-self: stretch;\n align-items: center;\n justify-content: center;\n padding: 0;\n margin: 0;\n font: inherit;\n}\n.button:hover {\n filter: invert(0.1);\n}\n\n.buttonText {\n font-weight: 600;\n background: rgba(255, 255, 255, 0.4);\n box-shadow: 2px 2px 3px -1px rgba(0, 0, 0, 0.15) inset;\n padding: 2px 8px;\n border-radius: 3px;\n}\n\n.collapsed {\n overflow: hidden;\n padding: 0;\n}\n.collapsed *:not(.chevron) {\n display: none;\n}\n\n.chevron {\n padding: 0 3px;\n}\n"],sourceRoot:""}]),i.locals={fixedOverlay:"keDW8Dp6M_PKogstIGlg",gripArea:"wiFl5y3aYfqknNzV2wkC",grip:"L7TZ7XUzFVL4XtqrGq4V",contentSurface:"yPxOTtYEtk30suNyVT_f",badge:"g8vMw44BD035wMgB4fi5",success:"zHoa7JHokcPrDo9fUK7t",warning:"Jl_ahBnxzwLzgquDusZ6",error:"xrMdFjTpTTv1b_9S_5z6",button:"sNDf4Vc57GDSrCocrEM4",buttonText:"DI7dbo1rgbopYUd5O8HW",collapsed:"XuyZoKa6W1UP6CkhLaKw",chevron:"pkF2KaBbsrwg9OaLE3UJ"};const a=i},658:(e,t,n)=>{n.d(t,{useDraggable:()=>o});var r=n(790);function o(e){const{enabled:t,containerElementRef:n,dragElementRef:o}=e,[s,i]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{const e=n?.current,r=o?.current;if(!t||!e||!r)return;let s=0,a=0,u={x:0,y:0};const c=t=>{e.style.transform=`translate(${u.x+t.clientX-s}px, ${u.y+t.clientY-a}px)`},l=e=>{i(!1),u={x:u.x+e.clientX-s,y:u.y+e.clientY-a},r.releasePointerCapture(e.pointerId),r.removeEventListener("pointerup",l),r.removeEventListener("pointermove",c),e.preventDefault()},p=e=>{i(!0),s=e.clientX,a=e.clientY,r.setPointerCapture(e.pointerId),r.addEventListener("pointerup",l),r.addEventListener("pointermove",c),e.preventDefault()};return r.addEventListener("pointerdown",p),()=>{r.removeEventListener("pointerdown",p),r.removeEventListener("pointermove",c),r.removeEventListener("pointerup",l)}},[t,n,o]),{isDragging:s}}},750:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},784:(e,t,n)=>{n.d(t,{default:()=>a});var r=n(25),o=n.n(r),s=n(191),i=n.n(s)()(o());i.push([e.id,"/* Styles for all button variants (including link and custom) */\n.JgX5GbR8awQUNvf0SpeO {\n outline: transparent;\n position: relative;\n font-family: inherit;\n box-sizing: border-box;\n cursor: pointer;\n /* default to transparent background, black-ish text */\n background-color: var(--cp-buttonBg, transparent);\n color: var(--cp-buttonText, var(--cp-neutralPrimary));\n}\n.JgX5GbR8awQUNvf0SpeO:focus-visible {\n /* keyboard focus outline for all button variants */\n outline: var(--cp-outline);\n}\n.JgX5GbR8awQUNvf0SpeO:hover {\n /* no BG change on hover/active by default, but is customized by variants */\n background-color: var(--cp-buttonBgHover, transparent);\n /* default to slightly darker text on hover/active */\n color: var(--cp-buttonTextHover, var(--cp-neutralDark));\n}\n.JgX5GbR8awQUNvf0SpeO:active {\n background-color: var(--cp-buttonBgActive, transparent);\n /* reuse the hover color for text */\n color: var(--cp-buttonTextHover, var(--cp-neutralDark));\n}\n\n/* Styles for buttons other than link and custom */\n.kNx_iOK2UGZihfvlj187 {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n user-select: none;\n white-space: nowrap;\n height: 32px;\n}\n\n/*\nStyles for default and primary buttons.\nAnything that conflicts with link or iconOnly styles should go here.\nVarying colors should be handled with CSS variables.\n*/\n.IfHcd_mlcyjQMKFHdEpV {\n font-size: 14px;\n font-weight: 600;\n border: 1px solid var(--cp-buttonBorder, var(--cp-border));\n margin: 0;\n padding: 0px 16px;\n border-radius: 2px;\n min-width: 80px;\n}\n\n.tiYzESHvbNNoSm4ASCHg {\n --cp-buttonBg: white;\n --cp-buttonBgHover: var(--cp-neutralLighter);\n --cp-buttonBgActive: var(--cp-neutralLight);\n}\n\n.cdc4_xoyu5lt350lFjqA {\n --cp-buttonBorder: var(--cp-themePrimary);\n --cp-buttonBg: var(--cp-themePrimary);\n --cp-buttonBgActive: var(--cp-themeDark);\n --cp-buttonBgHover: var(--cp-themeDarkAlt);\n --cp-buttonText: white;\n --cp-buttonTextHover: white;\n}\n.cdc4_xoyu5lt350lFjqA:active {\n border-color: var(--cp-buttonBgActive);\n}\n.cdc4_xoyu5lt350lFjqA:hover {\n border-color: var(--cp-buttonBgHover);\n}\n\n.eIL_UrsiGfYnQqwosX2v {\n --cp-buttonBgActive: rgba(0, 0, 0, 0.2);\n --cp-buttonBgHover: rgba(0, 0, 0, 0.1);\n border: none;\n border-radius: 4px;\n width: 32px; /* matches height */\n padding: 0;\n}\n\n.NZ7Sk5QxxabNggVr0JJY {\n /* blue text (needs to be slightly darker to work on light gray backgrounds) */\n --cp-buttonText: var(--cp-themeDarkAlt);\n --cp-buttonTextHover: var(--cp-themeDarker);\n /* allow text wrapping */\n display: inline;\n text-align: start;\n margin: 0;\n padding: 0;\n border: none;\n text-decoration: underline;\n font-size: inherit;\n font-weight: inherit;\n /* This is often used for long file paths, so adding space makes it more readable */\n text-underline-offset: 2px;\n}\n.NZ7Sk5QxxabNggVr0JJY:focus-visible {\n outline-offset: 2px;\n}\n","",{version:3,sources:["webpack://./src/components/Button/Button.module.css"],names:[],mappings:"AAAA,+DAA+D;AAC/D;EACE,oBAAoB;EACpB,kBAAkB;EAClB,oBAAoB;EACpB,sBAAsB;EACtB,eAAe;EACf,sDAAsD;EACtD,iDAAiD;EACjD,qDAAqD;AACvD;AACA;EACE,mDAAmD;EACnD,0BAA0B;AAC5B;AACA;EACE,2EAA2E;EAC3E,sDAAsD;EACtD,oDAAoD;EACpD,uDAAuD;AACzD;AACA;EACE,uDAAuD;EACvD,mCAAmC;EACnC,uDAAuD;AACzD;;AAEA,kDAAkD;AAClD;EACE,oBAAoB;EACpB,mBAAmB;EACnB,uBAAuB;EACvB,QAAQ;EACR,iBAAiB;EACjB,mBAAmB;EACnB,YAAY;AACd;;AAEA;;;;CAIC;AACD;EACE,eAAe;EACf,gBAAgB;EAChB,0DAA0D;EAC1D,SAAS;EACT,iBAAiB;EACjB,kBAAkB;EAClB,eAAe;AACjB;;AAEA;EACE,oBAAoB;EACpB,4CAA4C;EAC5C,2CAA2C;AAC7C;;AAEA;EACE,yCAAyC;EACzC,qCAAqC;EACrC,wCAAwC;EACxC,0CAA0C;EAC1C,sBAAsB;EACtB,2BAA2B;AAC7B;AACA;EACE,sCAAsC;AACxC;AACA;EACE,qCAAqC;AACvC;;AAEA;EACE,uCAAuC;EACvC,sCAAsC;EACtC,YAAY;EACZ,kBAAkB;EAClB,WAAW,EAAE,mBAAmB;EAChC,UAAU;AACZ;;AAEA;EACE,8EAA8E;EAC9E,uCAAuC;EACvC,2CAA2C;EAC3C,wBAAwB;EACxB,eAAe;EACf,iBAAiB;EACjB,SAAS;EACT,UAAU;EACV,YAAY;EACZ,0BAA0B;EAC1B,kBAAkB;EAClB,oBAAoB;EACpB,mFAAmF;EACnF,0BAA0B;AAC5B;AACA;EACE,mBAAmB;AACrB",sourcesContent:["/* Styles for all button variants (including link and custom) */\n.root {\n outline: transparent;\n position: relative;\n font-family: inherit;\n box-sizing: border-box;\n cursor: pointer;\n /* default to transparent background, black-ish text */\n background-color: var(--cp-buttonBg, transparent);\n color: var(--cp-buttonText, var(--cp-neutralPrimary));\n}\n.root:focus-visible {\n /* keyboard focus outline for all button variants */\n outline: var(--cp-outline);\n}\n.root:hover {\n /* no BG change on hover/active by default, but is customized by variants */\n background-color: var(--cp-buttonBgHover, transparent);\n /* default to slightly darker text on hover/active */\n color: var(--cp-buttonTextHover, var(--cp-neutralDark));\n}\n.root:active {\n background-color: var(--cp-buttonBgActive, transparent);\n /* reuse the hover color for text */\n color: var(--cp-buttonTextHover, var(--cp-neutralDark));\n}\n\n/* Styles for buttons other than link and custom */\n.standard {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n user-select: none;\n white-space: nowrap;\n height: 32px;\n}\n\n/*\nStyles for default and primary buttons.\nAnything that conflicts with link or iconOnly styles should go here.\nVarying colors should be handled with CSS variables.\n*/\n.defaultPrimary {\n font-size: 14px;\n font-weight: 600;\n border: 1px solid var(--cp-buttonBorder, var(--cp-border));\n margin: 0;\n padding: 0px 16px;\n border-radius: 2px;\n min-width: 80px;\n}\n\n.default {\n --cp-buttonBg: white;\n --cp-buttonBgHover: var(--cp-neutralLighter);\n --cp-buttonBgActive: var(--cp-neutralLight);\n}\n\n.primary {\n --cp-buttonBorder: var(--cp-themePrimary);\n --cp-buttonBg: var(--cp-themePrimary);\n --cp-buttonBgActive: var(--cp-themeDark);\n --cp-buttonBgHover: var(--cp-themeDarkAlt);\n --cp-buttonText: white;\n --cp-buttonTextHover: white;\n}\n.primary:active {\n border-color: var(--cp-buttonBgActive);\n}\n.primary:hover {\n border-color: var(--cp-buttonBgHover);\n}\n\n.iconOnly {\n --cp-buttonBgActive: rgba(0, 0, 0, 0.2);\n --cp-buttonBgHover: rgba(0, 0, 0, 0.1);\n border: none;\n border-radius: 4px;\n width: 32px; /* matches height */\n padding: 0;\n}\n\n.link {\n /* blue text (needs to be slightly darker to work on light gray backgrounds) */\n --cp-buttonText: var(--cp-themeDarkAlt);\n --cp-buttonTextHover: var(--cp-themeDarker);\n /* allow text wrapping */\n display: inline;\n text-align: start;\n margin: 0;\n padding: 0;\n border: none;\n text-decoration: underline;\n font-size: inherit;\n font-weight: inherit;\n /* This is often used for long file paths, so adding space makes it more readable */\n text-underline-offset: 2px;\n}\n.link:focus-visible {\n outline-offset: 2px;\n}\n"],sourceRoot:""}]),i.locals={root:"JgX5GbR8awQUNvf0SpeO",standard:"kNx_iOK2UGZihfvlj187",defaultPrimary:"IfHcd_mlcyjQMKFHdEpV",default:"tiYzESHvbNNoSm4ASCHg",primary:"cdc4_xoyu5lt350lFjqA",iconOnly:"eIL_UrsiGfYnQqwosX2v",link:"NZ7Sk5QxxabNggVr0JJY"};const a=i},790:(e,t,n)=>{n.d(t,{useCallback:()=>w,useContext:()=>M,useDebugValue:()=>k,useEffect:()=>A,useId:()=>j,useImperativeHandle:()=>C,useLayoutEffect:()=>b,useMemo:()=>E,useReducer:()=>y,useRef:()=>x,useState:()=>g});var r,o,s,i,a=n(552),u=0,c=[],l=a.options,p=l.__b,d=l.__r,f=l.diffed,_=l.__c,h=l.unmount,v=l.__;function m(e,t){l.__h&&l.__h(o,e,u||t),u=0;var n=o.__H||(o.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function g(e){return u=1,y(O,e)}function y(e,t,n){var s=m(r++,2);if(s.t=e,!s.__c&&(s.__=[n?n(t):O(void 0,t),function(e){var t=s.__N?s.__N[0]:s.__[0],n=s.t(t,e);t!==n&&(s.__N=[n,s.__[1]],s.__c.setState({}))}],s.__c=o,!o.__f)){var i=function(e,t,n){if(!s.__c.__H)return!0;var r=s.__c.__H.__.filter(function(e){return!!e.__c});if(r.every(function(e){return!e.__N}))return!a||a.call(this,e,t,n);var o=s.__c.props!==e;return r.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}}),a&&a.call(this,e,t,n)||o};o.__f=!0;var a=o.shouldComponentUpdate,u=o.componentWillUpdate;o.componentWillUpdate=function(e,t,n){if(this.__e){var r=a;a=void 0,i(e,t,n),a=r}u&&u.call(this,e,t,n)},o.shouldComponentUpdate=i}return s.__N||s.__}function A(e,t){var n=m(r++,3);!l.__s&&N(n.__H,t)&&(n.__=e,n.u=t,o.__H.__h.push(n))}function b(e,t){var n=m(r++,4);!l.__s&&N(n.__H,t)&&(n.__=e,n.u=t,o.__h.push(n))}function x(e){return u=5,E(function(){return{current:e}},[])}function C(e,t,n){u=6,b(function(){if("function"==typeof e){var n=e(t());return function(){e(null),n&&"function"==typeof n&&n()}}if(e)return e.current=t(),function(){return e.current=null}},null==n?n:n.concat(e))}function E(e,t){var n=m(r++,7);return N(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function w(e,t){return u=8,E(function(){return e},t)}function M(e){var t=o.context[e.__c],n=m(r++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(o)),t.props.value):e.__}function k(e,t){l.useDebugValue&&l.useDebugValue(t?t(e):e)}function j(){var e=m(r++,11);if(!e.__){for(var t=o.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function S(){for(var e;e=c.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(B),e.__H.__h.forEach(z),e.__H.__h=[]}catch(t){e.__H.__h=[],l.__e(t,e.__v)}}l.__b=function(e){o=null,p&&p(e)},l.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),v&&v(e,t)},l.__r=function(e){d&&d(e),r=0;var t=(o=e.__c).__H;t&&(s===o?(t.__h=[],o.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.forEach(B),t.__h.forEach(z),t.__h=[],r=0)),s=o},l.diffed=function(e){f&&f(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==c.push(t)&&i===l.requestAnimationFrame||((i=l.requestAnimationFrame)||D)(S)),t.__H.__.forEach(function(e){e.u&&(e.__H=e.u),e.u=void 0})),s=o=null},l.__c=function(e,t){t.some(function(e){try{e.__h.forEach(B),e.__h=e.__h.filter(function(e){return!e.__||z(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],l.__e(n,e.__v)}}),_&&_(e,t)},l.unmount=function(e){h&&h(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{B(e)}catch(e){t=e}}),n.__H=void 0,t&&l.__e(t,n.__v))};var T="function"==typeof requestAnimationFrame;function D(e){var t,n=function(){clearTimeout(r),T&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);T&&(t=requestAnimationFrame(n))}function B(e){var t=o,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),o=t}function z(e){var t=o;e.__c=e.__(),o=t}function N(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function O(e,t){return"function"==typeof t?t(e):t}},821:(e,t,n)=>{n.d(t,{Fragment:()=>r.Fragment,jsx:()=>s,jsxs:()=>s});var r=n(552),o=0;function s(e,t,n,s,i,a){t||(t={});var u,c,l=t;if("ref"in l)for(c in l={},t)"ref"==c?u=t[c]:l[c]=t[c];var p={type:e,props:l,key:n,ref:u,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--o,__i:-1,__u:0,__source:i,__self:a};if("function"==typeof e&&(u=e.defaultProps))for(c in u)void 0===l[c]&&(l[c]=u[c]);return r.options.vnode&&r.options.vnode(p),p}Array.isArray},878:(e,t,n)=>{n.d(t,{Children:()=>g,Fragment:()=>r.Fragment,PureComponent:()=>f,Suspense:()=>C,cloneElement:()=>Q,createContext:()=>r.createContext,createElement:()=>r.createElement,default:()=>G,forwardRef:()=>v,lazy:()=>w,useCallback:()=>o.useCallback,useEffect:()=>o.useEffect,useLayoutEffect:()=>o.useLayoutEffect,useMemo:()=>o.useMemo,useRef:()=>o.useRef,useState:()=>o.useState});var r=n(552),o=n(790);function s(e,t){for(var n in t)e[n]=t[n];return e}function i(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function a(e,t){var n=t(),r=(0,o.useState)({t:{__:n,u:t}}),s=r[0].t,i=r[1];return(0,o.useLayoutEffect)(function(){s.__=n,s.u=t,u(s)&&i({t:s})},[e,n,t]),(0,o.useEffect)(function(){return u(s)&&i({t:s}),e(function(){u(s)&&i({t:s})})},[e]),n}function u(e){var t,n,r=e.u,o=e.__;try{var s=r();return!((t=o)===(n=s)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(e){return!0}}function c(e){e()}function l(e){return e}function p(){return[!1,c]}var d=o.useLayoutEffect;function f(e,t){this.props=e,this.context=t}(f.prototype=new r.Component).isPureReactComponent=!0,f.prototype.shouldComponentUpdate=function(e,t){return i(this.props,e)||i(this.state,t)};var _=r.options.__b;r.options.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),_&&_(e)};var h="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function v(e){function t(t){var n=s({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=h,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var m=function(e,t){return null==e?null:(0,r.toChildArray)((0,r.toChildArray)(e).map(t))},g={map:m,forEach:m,count:function(e){return e?(0,r.toChildArray)(e).length:0},only:function(e){var t=(0,r.toChildArray)(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:r.toChildArray},y=r.options.__e;r.options.__e=function(e,t,n,r){if(e.then)for(var o,s=t;s=s.__;)if((o=s.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);y(e,t,n,r)};var A=r.options.unmount;function b(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(e){"function"==typeof e.__c&&e.__c()}),e.__c.__H=null),null!=(e=s({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(e){return b(e,t,n)})),e}function x(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(e){return x(e,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function C(){this.__u=0,this.o=null,this.__b=null}function E(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function w(e){var t,n,o;function s(s){if(t||(t=e()).then(function(e){n=e.default||e},function(e){o=e}),o)throw o;if(!n)throw t;return(0,r.createElement)(n,s)}return s.displayName="Lazy",s.__f=!0,s}function M(){this.i=null,this.l=null}r.options.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),A&&A(e)},(C.prototype=new r.Component).__c=function(e,t){var n=t.__c,r=this;null==r.o&&(r.o=[]),r.o.push(n);var o=E(r.__v),s=!1,i=function(){s||(s=!0,n.__R=null,o?o(a):a())};n.__R=i;var a=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=x(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.o.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(i,i)},C.prototype.componentWillUnmount=function(){this.o=[]},C.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=b(this.__b,n,o.__O=o.__P)}this.__b=null}var s=t.__a&&(0,r.createElement)(r.Fragment,null,e.fallback);return s&&(s.__u&=-33),[(0,r.createElement)(r.Fragment,null,t.__a?null:e.children),s]};var k=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function j(e){return this.getChildContext=function(){return e.context},e.children}function S(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){(0,r.render)(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var o=t.__v;null!==o&&!o.__m&&null!==o.__;)o=o.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:o.__m},contains:function(){return!0},insertBefore:function(e,n){this.childNodes.push(e),t.h.insertBefore(e,n)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.h.removeChild(e)}}}(0,r.render)((0,r.createElement)(j,{context:t.context},e.__v),t.v)}(M.prototype=new r.Component).__a=function(e){var t=this,n=E(t.__v),r=t.l.get(e);return r[0]++,function(o){var s=function(){t.props.revealOrder?(r.push(o),k(t,e,r)):o()};n?n(s):s()}},M.prototype.render=function(e){this.i=null,this.l=new Map;var t=(0,r.toChildArray)(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},M.prototype.componentDidUpdate=M.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){k(e,n,t)})};var T="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,D=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,B=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,z=/[A-Z0-9]/g,N="undefined"!=typeof document,O=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};r.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(r.Component.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var P=r.options.event;function I(){}function L(){return this.cancelBubble}function U(){return this.defaultPrevented}r.options.event=function(e){return P&&(e=P(e)),e.persist=I,e.isPropagationStopped=L,e.isDefaultPrevented=U,e.nativeEvent=e};var R,Y={enumerable:!1,configurable:!0,get:function(){return this.class}},q=r.options.vnode;r.options.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,o={},s=-1===n.indexOf("-");for(var i in t){var a=t[i];if(!("value"===i&&"defaultValue"in t&&null==a||N&&"children"===i&&"noscript"===n||"class"===i||"className"===i)){var u=i.toLowerCase();"defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===a?a="":"translate"===u&&"no"===a?a=!1:"o"===u[0]&&"n"===u[1]?"ondoubleclick"===u?i="ondblclick":"onchange"!==u||"input"!==n&&"textarea"!==n||O(t.type)?"onfocus"===u?i="onfocusin":"onblur"===u?i="onfocusout":B.test(i)&&(i=u):u=i="oninput":s&&D.test(i)?i=i.replace(z,"-$&").toLowerCase():null===a&&(a=void 0),"oninput"===u&&o[i=u]&&(i="oninputCapture"),o[i]=a}}"select"==n&&o.multiple&&Array.isArray(o.value)&&(o.value=(0,r.toChildArray)(t.children).forEach(function(e){e.props.selected=-1!=o.value.indexOf(e.props.value)})),"select"==n&&null!=o.defaultValue&&(o.value=(0,r.toChildArray)(t.children).forEach(function(e){e.props.selected=o.multiple?-1!=o.defaultValue.indexOf(e.props.value):o.defaultValue==e.props.value})),t.class&&!t.className?(o.class=t.class,Object.defineProperty(o,"className",Y)):(t.className&&!t.class||t.class&&t.className)&&(o.class=o.className=t.className),e.props=o}(e),e.$$typeof=T,q&&q(e)};var H=r.options.__r;r.options.__r=function(e){H&&H(e),R=e.__c};var $=r.options.diffed;r.options.diffed=function(e){$&&$(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),R=null};var Z={ReactCurrentDispatcher:{current:{readContext:function(e){return R.__n[e.__c].props.value},useCallback:o.useCallback,useContext:o.useContext,useDebugValue:o.useDebugValue,useDeferredValue:l,useEffect:o.useEffect,useId:o.useId,useImperativeHandle:o.useImperativeHandle,useInsertionEffect:d,useLayoutEffect:o.useLayoutEffect,useMemo:o.useMemo,useReducer:o.useReducer,useRef:o.useRef,useState:o.useState,useSyncExternalStore:a,useTransition:p}}};function W(e){return!!e&&e.$$typeof===T}function Q(e){return W(e)?r.cloneElement.apply(null,arguments):e}var V=r.Fragment,F=W,G={useState:o.useState,useId:o.useId,useReducer:o.useReducer,useEffect:o.useEffect,useLayoutEffect:o.useLayoutEffect,useInsertionEffect:d,useTransition:p,useDeferredValue:l,useSyncExternalStore:a,startTransition:c,useRef:o.useRef,useImperativeHandle:o.useImperativeHandle,useMemo:o.useMemo,useCallback:o.useCallback,useContext:o.useContext,useDebugValue:o.useDebugValue,version:"18.3.1",Children:g,render:function(e,t,n){return null==t.__k&&(t.textContent=""),(0,r.render)(e,t),"function"==typeof n&&n(),e?e.__c:null},hydrate:function(e,t,n){return(0,r.hydrate)(e,t),"function"==typeof n&&n(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&((0,r.render)(null,e),!0)},createPortal:function(e,t){var n=(0,r.createElement)(S,{__v:e,h:t});return n.containerInfo=t,n},createElement:r.createElement,createContext:r.createContext,createFactory:function(e){return r.createElement.bind(null,e)},cloneElement:Q,createRef:r.createRef,Fragment:r.Fragment,isValidElement:W,isElement:F,isFragment:function(e){return W(e)&&e.type===r.Fragment},isMemo:function(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")},findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:r.Component,PureComponent:f,memo:function(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:i(this.props,e)}function o(t){return this.shouldComponentUpdate=n,(0,r.createElement)(e,t)}return o.displayName="Memo("+(e.displayName||e.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o},forwardRef:v,flushSync:function(e,t){return e(t)},unstable_batchedUpdates:function(e,t){return e(t)},StrictMode:V,Suspense:C,SuspenseList:M,lazy:w,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Z}},994:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}}};import e from"../runtime.js";import*as t from"./index.js";e.C(t),e(e.s=339);
|
|
3
3
|
//# sourceMappingURL=index.js.map
|