@fixefy/fixefy-ui-utils 0.0.8 → 0.0.10
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-cjs/index.js +39 -17
- package/dist-cjs/index.js.map +1 -0
- package/{dist-types → dist-cjs/types}/index.d.ts +0 -3
- package/{dist-types → dist-cjs/types}/types/index.d.ts +5 -5
- package/dist-es/index.js +39 -14
- package/dist-es/index.js.map +1 -0
- package/dist-es/types/auth/index.d.ts +2 -0
- package/dist-es/types/aws/data_models.d.ts +21 -0
- package/dist-es/types/commander/index.d.ts +33 -0
- package/dist-es/types/constants/index.d.ts +6 -0
- package/dist-es/types/files/index.d.ts +2 -0
- package/dist-es/types/graphql/index.d.ts +38 -0
- package/dist-es/types/headers/index.d.ts +12 -0
- package/dist-es/types/images/index.d.ts +4 -0
- package/dist-es/types/index.d.ts +11 -0
- package/dist-es/types/json/index.d.ts +7 -0
- package/dist-es/types/page_context/index.d.ts +248 -0
- package/dist-es/types/redirect/index.d.ts +2 -0
- package/dist-es/types/resolvers/index.d.ts +11 -0
- package/dist-es/types/transform/index.d.ts +2 -0
- package/dist-es/types/types/index.d.ts +39 -0
- package/dist-es/types/validate/index.d.ts +5 -0
- package/package.json +71 -64
- package/dist-cjs/auth/index.js +0 -13
- package/dist-cjs/aws/aws_lambda_helper.js +0 -49
- package/dist-cjs/aws/aws_s3_helper.js +0 -1
- package/dist-cjs/aws/data_models.js +0 -2
- package/dist-cjs/aws/index.js +0 -4
- package/dist-cjs/commander/index.jsx +0 -280
- package/dist-cjs/constants/index.js +0 -87
- package/dist-cjs/contents/index.jsx +0 -32
- package/dist-cjs/files/index.js +0 -27
- package/dist-cjs/graphql/index.js +0 -217
- package/dist-cjs/headers/index.js +0 -68
- package/dist-cjs/images/index.js +0 -13
- package/dist-cjs/json/index.js +0 -135
- package/dist-cjs/package.json +0 -3
- package/dist-cjs/page_context/index.js +0 -494
- package/dist-cjs/redirect/index.js +0 -15
- package/dist-cjs/renderer/index.jsx +0 -66
- package/dist-cjs/resolvers/index.js +0 -35
- package/dist-cjs/transform/index.js +0 -40
- package/dist-cjs/types/index.js +0 -2
- package/dist-cjs/validate/index.js +0 -48
- package/dist-es/auth/index.js +0 -11
- package/dist-es/aws/aws_lambda_helper.js +0 -41
- package/dist-es/aws/aws_s3_helper.js +0 -1
- package/dist-es/aws/data_models.js +0 -1
- package/dist-es/commander/index.jsx +0 -250
- package/dist-es/constants/index.js +0 -84
- package/dist-es/contents/index.jsx +0 -31
- package/dist-es/files/index.js +0 -22
- package/dist-es/graphql/index.js +0 -235
- package/dist-es/headers/index.js +0 -57
- package/dist-es/images/index.js +0 -9
- package/dist-es/json/index.js +0 -125
- package/dist-es/package.json +0 -3
- package/dist-es/page_context/index.js +0 -511
- package/dist-es/redirect/index.js +0 -12
- package/dist-es/renderer/index.jsx +0 -60
- package/dist-es/resolvers/index.js +0 -31
- package/dist-es/transform/index.js +0 -35
- package/dist-es/types/index.js +0 -1
- package/dist-es/validate/index.js +0 -40
- package/dist-types/aws/aws_lambda_helper.d.ts +0 -5
- package/dist-types/aws/aws_s3_helper.d.ts +0 -0
- package/dist-types/contents/index.d.ts +0 -3
- package/dist-types/renderer/index.d.ts +0 -9
- /package/{dist-types → dist-cjs/types}/auth/index.d.ts +0 -0
- /package/{dist-types → dist-cjs/types}/aws/data_models.d.ts +0 -0
- /package/{dist-types → dist-cjs/types}/aws/index.d.ts +0 -0
- /package/{dist-types → dist-cjs/types}/commander/index.d.ts +0 -0
- /package/{dist-types → dist-cjs/types}/constants/index.d.ts +0 -0
- /package/{dist-types → dist-cjs/types}/files/index.d.ts +0 -0
- /package/{dist-types → dist-cjs/types}/graphql/index.d.ts +0 -0
- /package/{dist-types → dist-cjs/types}/headers/index.d.ts +0 -0
- /package/{dist-types → dist-cjs/types}/images/index.d.ts +0 -0
- /package/{dist-types → dist-cjs/types}/json/index.d.ts +0 -0
- /package/{dist-types → dist-cjs/types}/page_context/index.d.ts +0 -0
- /package/{dist-types → dist-cjs/types}/redirect/index.d.ts +0 -0
- /package/{dist-types → dist-cjs/types}/resolvers/index.d.ts +0 -0
- /package/{dist-types → dist-cjs/types}/transform/index.d.ts +0 -0
- /package/{dist-types → dist-cjs/types}/validate/index.d.ts +0 -0
- /package/dist-es/{aws/index.js → types/aws/index.d.ts} +0 -0
package/dist-cjs/index.js
CHANGED
|
@@ -1,17 +1,39 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
tslib_1.__exportStar(require("./contents"), exports);
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
"use strict";var e=require("react"),t=require("react-dom"),r=require("fs"),n=require("stream"),o=require("zlib"),a=function(){return a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function s(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var u={},l={
|
|
2
|
+
/*!
|
|
3
|
+
* cookie
|
|
4
|
+
* Copyright(c) 2012-2014 Roman Shtylman
|
|
5
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
6
|
+
* MIT Licensed
|
|
7
|
+
*/
|
|
8
|
+
parse:function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var r={},n=t||{},o=e.split(";"),a=n.decode||c,i=0;i<o.length;i++){var s=o[i],u=s.indexOf("=");if(!(u<0)){var l=s.substring(0,u).trim();if(null==r[l]){var f=s.substring(u+1,s.length).trim();'"'===f[0]&&(f=f.slice(1,-1)),r[l]=p(f,a)}}}return r},serialize:function(e,t,r){var n=r||{},o=n.encode||f;if("function"!=typeof o)throw new TypeError("option encode is invalid");if(!d.test(e))throw new TypeError("argument name is invalid");var a=o(t);if(a&&!d.test(a))throw new TypeError("argument val is invalid");var i=e+"="+a;if(null!=n.maxAge){var s=n.maxAge-0;if(isNaN(s)||!isFinite(s))throw new TypeError("option maxAge is invalid");i+="; Max-Age="+Math.floor(s)}if(n.domain){if(!d.test(n.domain))throw new TypeError("option domain is invalid");i+="; Domain="+n.domain}if(n.path){if(!d.test(n.path))throw new TypeError("option path is invalid");i+="; Path="+n.path}if(n.expires){if("function"!=typeof n.expires.toUTCString)throw new TypeError("option expires is invalid");i+="; Expires="+n.expires.toUTCString()}n.httpOnly&&(i+="; HttpOnly");n.secure&&(i+="; Secure");if(n.sameSite){switch("string"==typeof n.sameSite?n.sameSite.toLowerCase():n.sameSite){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return i}},c=decodeURIComponent,f=encodeURIComponent,d=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function p(e,t){try{return t(e)}catch(t){return e}}var h={exports:{}},m={decodeValues:!0,map:!1,silent:!1};function g(e){return"string"==typeof e&&!!e.trim()}function y(e,t){var r=e.split(";").filter(g),n=function(e){var t="",r="",n=e.split("=");n.length>1?(t=n.shift(),r=n.join("=")):r=e;return{name:t,value:r}}(r.shift()),o=n.name,a=n.value;t=t?Object.assign({},m,t):m;try{a=t.decodeValues?decodeURIComponent(a):a}catch(e){console.error("set-cookie-parser encountered an error while decoding a cookie with value '"+a+"'. Set options.decodeValues to false to disable this feature.",e)}var i={name:o,value:a};return r.forEach((function(e){var t=e.split("="),r=t.shift().trimLeft().toLowerCase(),n=t.join("=");"expires"===r?i.expires=new Date(n):"max-age"===r?i.maxAge=parseInt(n,10):"secure"===r?i.secure=!0:"httponly"===r?i.httpOnly=!0:"samesite"===r?i.sameSite=n:i[r]=n})),i}function v(e,t){if(t=t?Object.assign({},m,t):m,!e)return t.map?{}:[];if(e.headers)if("function"==typeof e.headers.getSetCookie)e=e.headers.getSetCookie();else if(e.headers["set-cookie"])e=e.headers["set-cookie"];else{var r=e.headers[Object.keys(e.headers).find((function(e){return"set-cookie"===e.toLowerCase()}))];r||!e.headers.cookie||t.silent||console.warn("Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."),e=r}if(Array.isArray(e)||(e=[e]),(t=t?Object.assign({},m,t):m).map){return e.filter(g).reduce((function(e,r){var n=y(r,t);return e[n.name]=n,e}),{})}return e.filter(g).map((function(e){return y(e,t)}))}h.exports=v,h.exports.parse=v,h.exports.parseString=y,h.exports.splitCookiesString=function(e){if(Array.isArray(e))return e;if("string"!=typeof e)return[];var t,r,n,o,a,i=[],s=0;function u(){for(;s<e.length&&/\s/.test(e.charAt(s));)s+=1;return s<e.length}for(;s<e.length;){for(t=s,a=!1;u();)if(","===(r=e.charAt(s))){for(n=s,s+=1,u(),o=s;s<e.length&&"="!==(r=e.charAt(s))&&";"!==r&&","!==r;)s+=1;s<e.length&&"="===e.charAt(s)?(a=!0,s=o,i.push(e.substring(t,n)),t=s):s=n+1}else s+=1;(!a||s>=e.length)&&i.push(e.substring(t,e.length))}return i};var b=h.exports,w={},_=i&&i.__assign||function(){return _=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},_.apply(this,arguments)};function E(e,t){var r=Object.getOwnPropertyNames(e),n=Object.getOwnPropertyNames(t);if(r.length!==n.length)return!1;for(var o=0;o<r.length;o++){var a=r[o];if(e[a]!==t[a])return!1}return!0}Object.defineProperty(w,"__esModule",{value:!0}),w.areCookiesEqual=w.hasSameProperties=w.createCookie=w.isBrowser=void 0,w.isBrowser=function(){return"undefined"!=typeof window},w.createCookie=function(e,t,r){var n=r.sameSite;!0===n&&(n="strict"),void 0!==n&&!1!==n||(n="lax");var o=_(_({},r),{sameSite:n});return delete o.encode,_({name:e,value:t},o)},w.hasSameProperties=E,w.areCookiesEqual=function(e,t){var r=e.sameSite===t.sameSite;return"string"==typeof e.sameSite&&"string"==typeof t.sameSite&&(r=e.sameSite.toLowerCase()===t.sameSite.toLowerCase()),E(_(_({},e),{sameSite:void 0}),_(_({},t),{sameSite:void 0}))&&r};var x=i&&i.__assign||function(){return x=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},x.apply(this,arguments)};Object.defineProperty(u,"__esModule",{value:!0});var S=u.destroyCookie=R=u.setCookie=N=u.parseCookies=void 0,P=l,O=b,T=w;function C(e,t){var r,n;return(null===(n=null===(r=null==e?void 0:e.req)||void 0===r?void 0:r.headers)||void 0===n?void 0:n.cookie)?P.parse(e.req.headers.cookie,t):T.isBrowser()?P.parse(document.cookie,t):{}}var N=u.parseCookies=C;function k(e,t,r,n){var o,a;if(void 0===n&&(n={}),(null===(o=null==e?void 0:e.res)||void 0===o?void 0:o.getHeader)&&e.res.setHeader){if(null===(a=null==e?void 0:e.res)||void 0===a?void 0:a.finished)return console.warn('Not setting "'+t+'" cookie. Response has finished.'),console.warn("You should set cookie before res.send()"),{};var i=e.res.getHeader("Set-Cookie")||[];"string"==typeof i&&(i=[i]),"number"==typeof i&&(i=[]);var s=O.parse(i,{decodeValues:!1}),u=T.createCookie(t,r,n),l=[];s.forEach((function(e){if(!T.areCookiesEqual(e,u)){var t=P.serialize(e.name,e.value,x({encode:function(e){return e}},e));l.push(t)}})),l.push(P.serialize(t,r,n)),e.res.setHeader("Set-Cookie",l)}if(T.isBrowser()){if(n&&n.httpOnly)throw new Error("Can not set a httpOnly cookie in the browser.");document.cookie=P.serialize(t,r,n)}return{}}var R=u.setCookie=k;function A(e,t,r){return k(e,t,"",x(x({},r||{}),{maxAge:-1}))}S=u.destroyCookie=A,u.default={set:k,get:C,destroy:A};var j=function(e){return N(e).token};function I(e){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(e)}function M(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function D(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function L(e){D(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===I(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}var F={};function $(){return F}function U(e){if(D(1,arguments),!function(e){return D(1,arguments),e instanceof Date||"object"===I(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!=typeof e)return!1;var t=L(e);return!isNaN(Number(t))}function B(e,t){return D(2,arguments),function(e,t){D(2,arguments);var r=L(e).getTime(),n=M(t);return new Date(r+n)}(e,-M(t))}function W(e){D(1,arguments);var t=L(e),r=t.getUTCDay(),n=(r<1?7:0)+r-1;return t.setUTCDate(t.getUTCDate()-n),t.setUTCHours(0,0,0,0),t}function H(e){D(1,arguments);var t=L(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var o=W(n),a=new Date(0);a.setUTCFullYear(r,0,4),a.setUTCHours(0,0,0,0);var i=W(a);return t.getTime()>=o.getTime()?r+1:t.getTime()>=i.getTime()?r:r-1}function z(e){D(1,arguments);var t=L(e),r=W(t).getTime()-function(e){D(1,arguments);var t=H(e),r=new Date(0);return r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0),W(r)}(t).getTime();return Math.round(r/6048e5)+1}function q(e,t){var r,n,o,a,i,s,u,l;D(1,arguments);var c=$(),f=M(null!==(r=null!==(n=null!==(o=null!==(a=null==t?void 0:t.weekStartsOn)&&void 0!==a?a:null==t||null===(i=t.locale)||void 0===i||null===(s=i.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:c.weekStartsOn)&&void 0!==n?n:null===(u=c.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==r?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=L(e),p=d.getUTCDay(),h=(p<f?7:0)+p-f;return d.setUTCDate(d.getUTCDate()-h),d.setUTCHours(0,0,0,0),d}function V(e,t){var r,n,o,a,i,s,u,l;D(1,arguments);var c=L(e),f=c.getUTCFullYear(),d=$(),p=M(null!==(r=null!==(n=null!==(o=null!==(a=null==t?void 0:t.firstWeekContainsDate)&&void 0!==a?a:null==t||null===(i=t.locale)||void 0===i||null===(s=i.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:d.firstWeekContainsDate)&&void 0!==n?n:null===(u=d.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==r?r:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(f+1,0,p),h.setUTCHours(0,0,0,0);var m=q(h,t),g=new Date(0);g.setUTCFullYear(f,0,p),g.setUTCHours(0,0,0,0);var y=q(g,t);return c.getTime()>=m.getTime()?f+1:c.getTime()>=y.getTime()?f:f-1}function X(e,t){D(1,arguments);var r=L(e),n=q(r,t).getTime()-function(e,t){var r,n,o,a,i,s,u,l;D(1,arguments);var c=$(),f=M(null!==(r=null!==(n=null!==(o=null!==(a=null==t?void 0:t.firstWeekContainsDate)&&void 0!==a?a:null==t||null===(i=t.locale)||void 0===i||null===(s=i.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:c.firstWeekContainsDate)&&void 0!==n?n:null===(u=c.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==r?r:1),d=V(e,t),p=new Date(0);return p.setUTCFullYear(d,0,f),p.setUTCHours(0,0,0,0),q(p,t)}(r,t).getTime();return Math.round(n/6048e5)+1}function Y(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}var G={y:function(e,t){var r=e.getUTCFullYear(),n=r>0?r:1-r;return Y("yy"===t?n%100:n,t.length)},M:function(e,t){var r=e.getUTCMonth();return"M"===t?String(r+1):Y(r+1,2)},d:function(e,t){return Y(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:function(e,t){return Y(e.getUTCHours()%12||12,t.length)},H:function(e,t){return Y(e.getUTCHours(),t.length)},m:function(e,t){return Y(e.getUTCMinutes(),t.length)},s:function(e,t){return Y(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,n=e.getUTCMilliseconds();return Y(Math.floor(n*Math.pow(10,r-3)),t.length)}},K="midnight",J="noon",Q="morning",Z="afternoon",ee="evening",te="night",re={G:function(e,t,r){var n=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){var n=e.getUTCFullYear(),o=n>0?n:1-n;return r.ordinalNumber(o,{unit:"year"})}return G.y(e,t)},Y:function(e,t,r,n){var o=V(e,n),a=o>0?o:1-o;return"YY"===t?Y(a%100,2):"Yo"===t?r.ordinalNumber(a,{unit:"year"}):Y(a,t.length)},R:function(e,t){return Y(H(e),t.length)},u:function(e,t){return Y(e.getUTCFullYear(),t.length)},Q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return Y(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return Y(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){var n=e.getUTCMonth();switch(t){case"M":case"MM":return G.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return Y(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){var o=X(e,n);return"wo"===t?r.ordinalNumber(o,{unit:"week"}):Y(o,t.length)},I:function(e,t,r){var n=z(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):Y(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):G.d(e,t)},D:function(e,t,r){var n=function(e){D(1,arguments);var t=L(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=r-t.getTime();return Math.floor(n/864e5)+1}(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):Y(n,t.length)},E:function(e,t,r){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){var o=e.getUTCDay(),a=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Y(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){var o=e.getUTCDay(),a=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Y(a,t.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){var n=e.getUTCDay(),o=0===n?7:n;switch(t){case"i":return String(o);case"ii":return Y(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){var n,o=e.getUTCHours();switch(n=12===o?J:0===o?K:o/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){var n,o=e.getUTCHours();switch(n=o>=17?ee:o>=12?Z:o>=4?Q:te,t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){var n=e.getUTCHours()%12;return 0===n&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return G.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):G.H(e,t)},K:function(e,t,r){var n=e.getUTCHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):Y(n,t.length)},k:function(e,t,r){var n=e.getUTCHours();return 0===n&&(n=24),"ko"===t?r.ordinalNumber(n,{unit:"hour"}):Y(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):G.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):G.s(e,t)},S:function(e,t){return G.S(e,t)},X:function(e,t,r,n){var o=(n._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return oe(o);case"XXXX":case"XX":return ae(o);default:return ae(o,":")}},x:function(e,t,r,n){var o=(n._originalDate||e).getTimezoneOffset();switch(t){case"x":return oe(o);case"xxxx":case"xx":return ae(o);default:return ae(o,":")}},O:function(e,t,r,n){var o=(n._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ne(o,":");default:return"GMT"+ae(o,":")}},z:function(e,t,r,n){var o=(n._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ne(o,":");default:return"GMT"+ae(o,":")}},t:function(e,t,r,n){var o=n._originalDate||e;return Y(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,r,n){return Y((n._originalDate||e).getTime(),t.length)}};function ne(e,t){var r=e>0?"-":"+",n=Math.abs(e),o=Math.floor(n/60),a=n%60;if(0===a)return r+String(o);var i=t||"";return r+String(o)+i+Y(a,2)}function oe(e,t){return e%60==0?(e>0?"-":"+")+Y(Math.abs(e)/60,2):ae(e,t)}function ae(e,t){var r=t||"",n=e>0?"-":"+",o=Math.abs(e);return n+Y(Math.floor(o/60),2)+r+Y(o%60,2)}var ie=re,se=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},ue=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},le={p:ue,P:function(e,t){var r,n=e.match(/(P+)(p+)?/)||[],o=n[1],a=n[2];if(!a)return se(e,t);switch(o){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;default:r=t.dateTime({width:"full"})}return r.replace("{{date}}",se(o,t)).replace("{{time}}",ue(a,t))}},ce=le,fe=["D","DD"],de=["YY","YYYY"];function pe(e,t,r){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var he={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},me=function(e,t,r){var n,o=he[e];return n="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=r&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function ge(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var ye={date:ge({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:ge({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:ge({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ve={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function be(e){return function(t,r){var n;if("formatting"===(null!=r&&r.context?String(r.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=null!=r&&r.width?String(r.width):o;n=e.formattingValues[a]||e.formattingValues[o]}else{var i=e.defaultWidth,s=null!=r&&r.width?String(r.width):e.defaultWidth;n=e.values[s]||e.values[i]}return n[e.argumentCallback?e.argumentCallback(t):t]}}function we(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;var i,s=a[0],u=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(u)?function(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r;return}(u,(function(e){return e.test(s)})):function(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r;return}(u,(function(e){return e.test(s)}));return i=e.valueCallback?e.valueCallback(l):l,{value:i=r.valueCallback?r.valueCallback(i):i,rest:t.slice(s.length)}}}var _e,Ee={code:"en-US",formatDistance:me,formatLong:ye,formatRelative:function(e,t,r,n){return ve[e]},localize:{ordinalNumber:function(e,t){var r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:be({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:be({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:be({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:be({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:be({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(_e={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.match(_e.matchPattern);if(!r)return null;var n=r[0],o=e.match(_e.parsePattern);if(!o)return null;var a=_e.valueCallback?_e.valueCallback(o[0]):o[0];return{value:a=t.valueCallback?t.valueCallback(a):a,rest:e.slice(n.length)}}),era:we({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:we({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:we({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:we({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:we({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},xe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Se=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Pe=/^'([^]*?)'?$/,Oe=/''/g,Te=/[a-zA-Z]/;function Ce(e,t,r){var n,o,a,i,s,u,l,c,f,d,p,h,m,g,y,v,b,w;D(2,arguments);var _=String(t),E=$(),x=null!==(n=null!==(o=null==r?void 0:r.locale)&&void 0!==o?o:E.locale)&&void 0!==n?n:Ee,S=M(null!==(a=null!==(i=null!==(s=null!==(u=null==r?void 0:r.firstWeekContainsDate)&&void 0!==u?u:null==r||null===(l=r.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==s?s:E.firstWeekContainsDate)&&void 0!==i?i:null===(f=E.locale)||void 0===f||null===(d=f.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==a?a:1);if(!(S>=1&&S<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=M(null!==(p=null!==(h=null!==(m=null!==(g=null==r?void 0:r.weekStartsOn)&&void 0!==g?g:null==r||null===(y=r.locale)||void 0===y||null===(v=y.options)||void 0===v?void 0:v.weekStartsOn)&&void 0!==m?m:E.weekStartsOn)&&void 0!==h?h:null===(b=E.locale)||void 0===b||null===(w=b.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==p?p:0);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!x.localize)throw new RangeError("locale must contain localize property");if(!x.formatLong)throw new RangeError("locale must contain formatLong property");var O=L(e);if(!U(O))throw new RangeError("Invalid time value");var T=function(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}(O),C=B(O,T),N={firstWeekContainsDate:S,weekStartsOn:P,locale:x,_originalDate:O};return _.match(Se).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,ce[t])(e,x.formatLong):e})).join("").match(xe).map((function(n){if("''"===n)return"'";var o=n[0];if("'"===o)return function(e){var t=e.match(Pe);if(!t)return e;return t[1].replace(Oe,"'")}(n);var a,i=ie[o];if(i)return null!=r&&r.useAdditionalWeekYearTokens||(a=n,-1===de.indexOf(a))||pe(n,t,String(e)),null!=r&&r.useAdditionalDayOfYearTokens||!function(e){return-1!==fe.indexOf(e)}(n)||pe(n,t,String(e)),i(C,n,x.localize,N);if(o.match(Te))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return n})).join("")}const Ne={avg:e=>{if(0===e.length)return 0;return Ne.sum(e)/e.length},convertRange:(e,t,r)=>{e=e.filter((e=>e)).map((e=>null!=e&&0==isNaN(e)?e:0));const n=[],o=Math.min(...e.filter((e=>e))),a=Math.max(...e.filter((e=>e)));let i;for(const s of e)i=Ne.convertValue(s,o,a,t,r),n.push(i);return n},convertValue:(e,t,r,n,o)=>{const a=n||t,i=r-t;let s,u;return 0==i?u=a:(s=(o||r)-a,u=(e-t)*s/i+a),u},getOrdinal:(e,t,r,n)=>{const{data:{number:o}}=t;if(0===o)return"";const a=o%10,i=o%100;let s="th";return 1==a&&11!=i?s="st":2==a&&12!=i?s="nd":3==a&&13!=i&&(s="rd"),s},isInt:e=>Number(e)===e&&e%1==0,isFloat:e=>Number(e)===e&&e%1!=0,max:e=>Math.max(...e),mean:e=>Ne.avg(e),meanAbsoluteDeviation:e=>{const t=Ne.avg(e),r=e.map((e=>Math.abs(e-t)));return Ne.avg(r)},median:e=>{let t=0,r=e.length;return e.sort(),t=r%2==0?(e[r/2-1]+e[r/2])/2:e[(r-1)/2],t},midRange:e=>Ne.range(e)/2,min:e=>Math.min(...e),modes:e=>{if(!e.length)return[];const t={};let r=0,n=[];return e.forEach((function(e){t[e]?t[e]++:t[e]=1,t[e]>r?(n=[e],r=t[e]):t[e]===r&&(n.push(e),r=t[e])})),n},occurrences:e=>e.reduce(((e,t,r,n)=>{const o=e.find((e=>e.name===t));return o?++o.value:e.push({name:t,value:1}),e}),[]),random:(e=Number.MIN_SAFE_INTEGER,t=Number.MAX_SAFE_INTEGER)=>Math.round(Math.random()*(+t-+e))+ +e,range:e=>Ne.max(e)-Ne.min(e),round:(e=0,t=parseInt(process.env.NUMERIC_PRECISION||"3"))=>{t=t||3;const r=Math.pow(10,t);return Math.round(e*r)/r},standardDeviation:(e,t=null)=>{const r=e.length;if(!1===isNaN(r)||r>0)return 0;null==t&&(t=e.reduce(((e,t)=>e+t))/r);const n=Ne.variance(e);return Math.sqrt(n)},sum:e=>{if(0===e.length)return 0;return e.reduce(((e,t,r,n)=>e+t),0)},variance:(e,t=null)=>{t=null!=t?t:Ne.avg(e);const r=e.map((e=>Math.pow(e-(t||0),2)));return Ne.avg(r)},zScores:e=>{const t=Ne.avg(e),r=Ne.standardDeviation(e);return e.map((e=>(e-t)/r))}};function ke(e){if(e)return"string"==typeof e?e:String(e)}function Re(e){var t;switch(e.toLowerCase()){case Ue.User:t="username";break;case Ue.Pricing:t="value";break;case Ue.Metadata:t="title";break;case Ue.Transaction:case Ue.Transmission:t="readable_id";break;default:t="title"}return t}function Ae(e){return"number"==typeof e?e:"string"==typeof e?'"'.concat(e,'"'):e}var je=function(e){var t="string"==typeof e?parseInt(e):e,r=new Date(t).getTime();return Ne.isFloat(r)&&r.toString().length>=10};function Ie(e,t){for(var r="",n=0;n<e;n++)r+=" ";return t&&(r+=t+": "),r}function Me(e,t){var r=t||{},n=r.dateOnly,o=r.format,a="string"==typeof e?parseInt(e):e;return Ce(new Date(a),o||(n?"dd/MM/yyyy":"dd/MM/yyyy hh:mm"))}function De(e){return void 0===e&&(e=""),e&&Fe(e.toString(),!0)}function Le(e){for(var t,r="",n=0,o=null!==(t=null==e?void 0:e.length)&&void 0!==t?t:0;n<o;n++){var a=(null==e?void 0:e.at(n)).toLowerCase();0!=n&&(a=a.substr(0,1).toUpperCase()+a.substr(1)),r+=a}return r}function Fe(e,t){return void 0===t&&(t=!1),e&&e.replace(/(_[a-z])?(^[a-z])?(_|\s[a-z])?/g,(function(e){return e.toUpperCase().replace("_",t?" ":"")}))}function $e(e){return null==(e=ke(e))?void 0:e.match(/[A-Z\xC0-\xD6\xD8-\xDE]?[a-z\xDF-\xF6\xF8-\xFF]+|[A-Z\xC0-\xD6\xD8-\xDE]+(?![a-z\xDF-\xF6\xF8-\xFF])|\d+/g)}var Ue={Block:"block",Charge:"charge",Contract:"contract",Event:"event",Metadata:"metadata",Notification:"notification",Pricing:"pricing",Service:"service",Structure:"structure",Transaction:"transaction",Transmission:"transmission",User:"user",Workspace:"workspace"};var Be,We={exports:{}};Be=We,function(e,t){Be.exports=t()}(0,(function(){var e=[],t=[],r={},n={},o={};function a(e){return"string"==typeof e?new RegExp("^"+e+"$","i"):e}function i(e,t){return e===t?t:e===e.toLowerCase()?t.toLowerCase():e===e.toUpperCase()?t.toUpperCase():e[0]===e[0].toUpperCase()?t.charAt(0).toUpperCase()+t.substr(1).toLowerCase():t.toLowerCase()}function s(e,t){return e.replace(t[0],(function(r,n){var o=function(e,t){return e.replace(/\$(\d{1,2})/g,(function(e,r){return t[r]||""}))}(t[1],arguments);return i(""===r?e[n-1]:r,o)}))}function u(e,t,n){if(!e.length||r.hasOwnProperty(e))return t;for(var o=n.length;o--;){var a=n[o];if(a[0].test(t))return s(t,a)}return t}function l(e,t,r){return function(n){var o=n.toLowerCase();return t.hasOwnProperty(o)?i(n,o):e.hasOwnProperty(o)?i(n,e[o]):u(o,n,r)}}function c(e,t,r,n){return function(n){var o=n.toLowerCase();return!!t.hasOwnProperty(o)||!e.hasOwnProperty(o)&&u(o,o,r)===o}}function f(e,t,r){return(r?t+" ":"")+(1===t?f.singular(e):f.plural(e))}return f.plural=l(o,n,e),f.isPlural=c(o,n,e),f.singular=l(n,o,t),f.isSingular=c(n,o,t),f.addPluralRule=function(t,r){e.push([a(t),r])},f.addSingularRule=function(e,r){t.push([a(e),r])},f.addUncountableRule=function(e){"string"!=typeof e?(f.addPluralRule(e,"$0"),f.addSingularRule(e,"$0")):r[e.toLowerCase()]=!0},f.addIrregularRule=function(e,t){t=t.toLowerCase(),e=e.toLowerCase(),o[e]=t,n[t]=e},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach((function(e){return f.addIrregularRule(e[0],e[1])})),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach((function(e){return f.addPluralRule(e[0],e[1])})),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach((function(e){return f.addSingularRule(e[0],e[1])})),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(f.addUncountableRule),f}));var He,ze=s(We.exports);!function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(He||(He={}));var qe={MUTATIONS:{CREATE:"mutations.create",DELETE:"mutations.delete",UPDATE:"mutations.update",ACTION:"mutations.action"},QUERIES:"queries",SUBSCRIPTIONS:"subscriptions"},Ve=function(e){var t=e.arg;return t.type.getFields?t.type.getFields():t.type._nameLookup?t.type._nameLookup:t.type.ofType&&t.type.ofType.getFields?t.type.ofType.getFields():t.type.ofType&&t.type.ofType.ofType&&t.type.ofType.ofType.getFields?t.type.ofType.ofType.getFields():{}},Xe=function(e){var t=e.arg;return t.type.getFields?Object.keys(t.type.getFields()):t.type.getValues?Object.keys(t.type.getValues()):t.type.ofType&&t.type.ofType.getFields?Object.keys(t.type.ofType.getFields()):[]},Ye=function(e){return e&&e.astNode&&e.astNode.type&&e.astNode.type.kind?e.astNode.type.kind:e&&e.astNode&&e.astNode.kind?e.astNode.kind:void 0},Ge=function(e){return e&&e.type?e.type.ofType?e.type.ofType.name:e&&e.type.name&&e.type.name:e.astNode&&e.astNode.name},Ke=function(e){var t,r,n=e.operationName,o=e.schema,a=o.getQueryType().getFields(),i=o.getMutationType().getFields(),s=o.getSubscriptionType().getFields();return n in i?(t=Je({operationName:n}),r=i[n]):n in a?(t=qe.QUERIES,r=a[n]):n in s&&(t=qe.SUBSCRIPTIONS,r=s[n]),[r,t]},Je=function(e){var t=e.operationName;return t.includes("create")?qe.MUTATIONS.CREATE:t.includes("update")?qe.MUTATIONS.UPDATE:t.includes("delete")?qe.MUTATIONS.DELETE:qe.MUTATIONS.ACTION},Qe=function(e){var t,r=e.name,n=e.value;switch(r){case"Float":case"Int":t=n||0;break;case"ID":t=n||"000000000000000000000000";break;case"String":t=n||"";break;default:t=r.includes("many")?{connect:[{id:n||""}]}:{connect:{id:n||""}}}return t},Ze=function(e){var t=e.raw,r=e._variables,n=e.upper_key,o=e.key,a=e.action,i=e.value;t.args.forEach((function(e){if(n===e.name){var t=Xe({arg:e}),s=Ve({arg:e});if(!(t.length>0))throw"Schema Object/Action Does Not Have Any Fields";et({fields:t,fields_obj:s,_variables:r,upper_key:n,key:o,action:a,value:i})}}))},et=function(e){var t=e.fields,r=e.fields_obj,n=e.key,o=e._variables,a=e.upper_key,i=e.value,s=e.action,u=!1;if(t.forEach((function(e){var t=ze(n);if(!0===(e.includes(t.toLowerCase())||e.includes(n.toLowerCase()))){u=!0;var l=Ge(r[e]);"mutation"===s?tt({field:e,kind:l,_variables:o,upper_key:a,value:i}):rt({field:e,kind:l,_variables:o,upper_key:a,value:i})}})),!1===u)throw"Schema Object/Action Does Not Support - '".concat(n,"'")},tt=function(e){var t,r=e.field,n=e.kind,o=e._variables,i=e.upper_key,s=e.value;Array.isArray(o[i])?o[i]=o[i].map((function(e,t){var o;return a(a({},e),((o={})[r.toLowerCase()]=Qe({name:n,value:s}),o))})):o[i]=a(a({},o[i]),((t={})[r.toLowerCase()]=Qe({name:n,value:s}),t))},rt=function(e){var t,r,n=e.field;e.kind;var o=e._variables,i=e.upper_key,s=e.value;n.includes("some")?o[i]=a(a({},o[i]),((t={})[n]={id_in:[s]},t)):o[i]=a(a({},o[i]),((r={})[n]=s,r))},nt={"bundle-name":"",cur:{_id:"5e8c8dfdfca1360007d7b654",value:"5e8c8dfdfca1360007d7b654",code:"usd",namePlural:"us dollars",symbol:"$"},hl:"en","is-explain":!0,"last-activity":0},ot=function(e){},at=function(e){var t;return null!==(t=N(e).ws)&&void 0!==t?t:nt.ws},it=function(e){S(e,"ws",{path:"/"})},st=function(e,t){R(e,"cur",JSON.stringify(t),{maxAge:604800,path:"/"})},ut=function(e){var t,r=null!==(t=N(e).cur)&&void 0!==t?t:nt.cur;if(r)return"usd"!==r&&"eur"!==r||st(e,nt.cur),"string"==typeof r?JSON.parse(r):r},lt=function(e,t,r){if(null==e)return r;t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"");for(var n,o=!1,a=!1,i=t.split("."),s=!0,u=function(t,u){n=i[t],a=Qi(e),o=Ki(e),!0===a||!0===o?!0===a?e=JSON.parse(e):(e=e.reduce((function(e,n,o,a){var s=lt(n,i.slice(t).join("."),r);return Ki(s)?e.push.apply(e,s):e.push(s),e}),[]),s=!1):null!=e[n]&&n in e?e=e[n]:(e=r,s=!1)},l=0,c=i.length;s&&l<c;++l)u(l);return e},ct=function(e){var t;try{t=JSON.stringify(e)}catch(e){t=null}return!(!t||!1===Qi(t))&&(0===(null==t?void 0:t.indexOf("{"))&&(null==t?void 0:t.indexOf("}"))===(null==t?void 0:t.length)-1)};function ft(){return ft=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ft.apply(this,arguments)}function dt(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function pt(e){if(!dt(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=pt(e[r])})),t}function ht(e,t,r={clone:!0}){const n=r.clone?ft({},e):e;return dt(e)&&dt(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(dt(t[o])&&o in e&&dt(e[o])?n[o]=ht(e[o],t[o],r):r.clone?n[o]=dt(t[o])?pt(t[o]):t[o]:n[o]=t[o])})),n}var mt,gt={exports:{}},yt={exports:{}},vt={};var bt,wt,_t,Et,xt,St,Pt,Ot,Tt,Ct,Nt,kt,Rt,At,jt={};
|
|
9
|
+
/** @license React v16.13.1
|
|
10
|
+
* react-is.development.js
|
|
11
|
+
*
|
|
12
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the MIT license found in the
|
|
15
|
+
* LICENSE file in the root directory of this source tree.
|
|
16
|
+
*/function It(){return wt||(wt=1,"production"===process.env.NODE_ENV?yt.exports=function(){if(mt)return vt;mt=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var d=e.$$typeof;switch(d){case t:switch(e=e.type){case u:case l:case n:case a:case o:case f:return e;default:switch(e=e&&e.$$typeof){case s:case c:case h:case p:case i:return e;default:return d}}case r:return d}}}function w(e){return b(e)===l}return vt.AsyncMode=u,vt.ConcurrentMode=l,vt.ContextConsumer=s,vt.ContextProvider=i,vt.Element=t,vt.ForwardRef=c,vt.Fragment=n,vt.Lazy=h,vt.Memo=p,vt.Portal=r,vt.Profiler=a,vt.StrictMode=o,vt.Suspense=f,vt.isAsyncMode=function(e){return w(e)||b(e)===u},vt.isConcurrentMode=w,vt.isContextConsumer=function(e){return b(e)===s},vt.isContextProvider=function(e){return b(e)===i},vt.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},vt.isForwardRef=function(e){return b(e)===c},vt.isFragment=function(e){return b(e)===n},vt.isLazy=function(e){return b(e)===h},vt.isMemo=function(e){return b(e)===p},vt.isPortal=function(e){return b(e)===r},vt.isProfiler=function(e){return b(e)===a},vt.isStrictMode=function(e){return b(e)===o},vt.isSuspense=function(e){return b(e)===f},vt.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===l||e===a||e===o||e===f||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===i||e.$$typeof===s||e.$$typeof===c||e.$$typeof===g||e.$$typeof===y||e.$$typeof===v||e.$$typeof===m)},vt.typeOf=b,vt}():yt.exports=(bt||(bt=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var d=e.$$typeof;switch(d){case t:var m=e.type;switch(m){case u:case l:case n:case a:case o:case f:return m;default:var g=m&&m.$$typeof;switch(g){case s:case c:case h:case p:case i:return g;default:return d}}case r:return d}}}var w=u,_=l,E=s,x=i,S=t,P=c,O=n,T=h,C=p,N=r,k=a,R=o,A=f,j=!1;function I(e){return b(e)===l}jt.AsyncMode=w,jt.ConcurrentMode=_,jt.ContextConsumer=E,jt.ContextProvider=x,jt.Element=S,jt.ForwardRef=P,jt.Fragment=O,jt.Lazy=T,jt.Memo=C,jt.Portal=N,jt.Profiler=k,jt.StrictMode=R,jt.Suspense=A,jt.isAsyncMode=function(e){return j||(j=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),I(e)||b(e)===u},jt.isConcurrentMode=I,jt.isContextConsumer=function(e){return b(e)===s},jt.isContextProvider=function(e){return b(e)===i},jt.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},jt.isForwardRef=function(e){return b(e)===c},jt.isFragment=function(e){return b(e)===n},jt.isLazy=function(e){return b(e)===h},jt.isMemo=function(e){return b(e)===p},jt.isPortal=function(e){return b(e)===r},jt.isProfiler=function(e){return b(e)===a},jt.isStrictMode=function(e){return b(e)===o},jt.isSuspense=function(e){return b(e)===f},jt.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===l||e===a||e===o||e===f||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===i||e.$$typeof===s||e.$$typeof===c||e.$$typeof===g||e.$$typeof===y||e.$$typeof===v||e.$$typeof===m)},jt.typeOf=b}()),jt)),yt.exports}
|
|
17
|
+
/*
|
|
18
|
+
object-assign
|
|
19
|
+
(c) Sindre Sorhus
|
|
20
|
+
@license MIT
|
|
21
|
+
*/function Mt(){if(Et)return _t;Et=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;return _t=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(n,o){for(var a,i,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(n),u=1;u<arguments.length;u++){for(var l in a=Object(arguments[u]))t.call(a,l)&&(s[l]=a[l]);if(e){i=e(a);for(var c=0;c<i.length;c++)r.call(a,i[c])&&(s[i[c]]=a[i[c]])}}return s},_t}function Dt(){if(St)return xt;St=1;return xt="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Lt(){return Ot?Pt:(Ot=1,Pt=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var Ft=It();gt.exports=function(){if(kt)return Nt;kt=1;var e=It(),t=Mt(),r=Dt(),n=Lt(),o=function(){if(Ct)return Tt;Ct=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Dt(),r={},n=Lt();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,a,i,s,u){if("production"!==process.env.NODE_ENV)for(var l in o)if(n(o,l)){var c;try{if("function"!=typeof o[l]){var f=Error((s||"React class")+": "+i+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}c=o[l](a,l,s,i,null,t)}catch(e){c=e}if(!c||c instanceof Error||e((s||"React class")+": type specification of "+i+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof c+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),c instanceof Error&&!(c.message in r)){r[c.message]=!0;var d=u?u():"";e("Failed "+i+" type: "+c.message+(null!=d?d:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(r={})},Tt=o}(),a=function(){};function i(){return null}return"production"!==process.env.NODE_ENV&&(a=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),Nt=function(s,u){var l="function"==typeof Symbol&&Symbol.iterator,c="@@iterator",f="<<anonymous>>",d={array:g("array"),bigint:g("bigint"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:m(i),arrayOf:function(e){return m((function(t,n,o,a,i){if("function"!=typeof e)return new h("Property `"+i+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s))return new h("Invalid "+a+" `"+i+"` of type `"+b(s)+"` supplied to `"+o+"`, expected an array.");for(var u=0;u<s.length;u++){var l=e(s,u,o,a,i+"["+u+"]",r);if(l instanceof Error)return l}return null}))},element:m((function(e,t,r,n,o){var a=e[t];return s(a)?null:new h("Invalid "+n+" `"+o+"` of type `"+b(a)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:m((function(t,r,n,o,a){var i=t[r];return e.isValidElementType(i)?null:new h("Invalid "+o+" `"+a+"` of type `"+b(i)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(e){return m((function(t,r,n,o,a){if(!(t[r]instanceof e)){var i=e.name||f;return new h("Invalid "+o+" `"+a+"` of type `"+((s=t[r]).constructor&&s.constructor.name?s.constructor.name:f)+"` supplied to `"+n+"`, expected instance of `"+i+"`.")}var s;return null}))},node:m((function(e,t,r,n,o){return v(e[t])?null:new h("Invalid "+n+" `"+o+"` supplied to `"+r+"`, expected a ReactNode.")})),objectOf:function(e){return m((function(t,o,a,i,s){if("function"!=typeof e)return new h("Property `"+s+"` of component `"+a+"` has invalid PropType notation inside objectOf.");var u=t[o],l=b(u);if("object"!==l)return new h("Invalid "+i+" `"+s+"` of type `"+l+"` supplied to `"+a+"`, expected an object.");for(var c in u)if(n(u,c)){var f=e(u,c,a,i,s+"."+c,r);if(f instanceof Error)return f}return null}))},oneOf:function(e){return Array.isArray(e)?m((function(t,r,n,o,a){for(var i=t[r],s=0;s<e.length;s++)if(p(i,e[s]))return null;var u=JSON.stringify(e,(function(e,t){return"symbol"===w(t)?String(t):t}));return new h("Invalid "+o+" `"+a+"` of value `"+String(i)+"` supplied to `"+n+"`, expected one of "+u+".")})):("production"!==process.env.NODE_ENV&&a(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),i)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&a("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+_(o)+" at index "+t+"."),i}return m((function(t,o,a,i,s){for(var u=[],l=0;l<e.length;l++){var c=(0,e[l])(t,o,a,i,s,r);if(null==c)return null;c.data&&n(c.data,"expectedType")&&u.push(c.data.expectedType)}return new h("Invalid "+i+" `"+s+"` supplied to `"+a+"`"+(u.length>0?", expected one of type ["+u.join(", ")+"]":"")+".")}))},shape:function(e){return m((function(t,n,o,a,i){var s=t[n],u=b(s);if("object"!==u)return new h("Invalid "+a+" `"+i+"` of type `"+u+"` supplied to `"+o+"`, expected `object`.");for(var l in e){var c=e[l];if("function"!=typeof c)return y(o,a,i,l,w(c));var f=c(s,l,o,a,i+"."+l,r);if(f)return f}return null}))},exact:function(e){return m((function(o,a,i,s,u){var l=o[a],c=b(l);if("object"!==c)return new h("Invalid "+s+" `"+u+"` of type `"+c+"` supplied to `"+i+"`, expected `object`.");var f=t({},o[a],e);for(var d in f){var p=e[d];if(n(e,d)&&"function"!=typeof p)return y(i,s,u,d,w(p));if(!p)return new h("Invalid "+s+" `"+u+"` key `"+d+"` supplied to `"+i+"`.\nBad object: "+JSON.stringify(o[a],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=p(l,d,i,s,u+"."+d,r);if(m)return m}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function m(e){if("production"!==process.env.NODE_ENV)var t={},n=0;function o(o,i,s,l,c,d,p){if(l=l||f,d=d||s,p!==r){if(u){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var g=l+":"+s;!t[g]&&n<3&&(a("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+l+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[g]=!0,n++)}}return null==i[s]?o?null===i[s]?new h("The "+c+" `"+d+"` is marked as required in `"+l+"`, but its value is `null`."):new h("The "+c+" `"+d+"` is marked as required in `"+l+"`, but its value is `undefined`."):null:e(i,s,l,c,d)}var i=o.bind(null,!1);return i.isRequired=o.bind(null,!0),i}function g(e){return m((function(t,r,n,o,a,i){var s=t[r];return b(s)!==e?new h("Invalid "+o+" `"+a+"` of type `"+w(s)+"` supplied to `"+n+"`, expected `"+e+"`.",{expectedType:e}):null}))}function y(e,t,r,n,o){return new h((e||"React class")+": "+t+" type `"+r+"."+n+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function v(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(v);if(null===e||s(e))return!0;var t=function(e){var t=e&&(l&&e[l]||e[c]);if("function"==typeof t)return t}(e);if(!t)return!1;var r,n=t.call(e);if(t!==e.entries){for(;!(r=n.next()).done;)if(!v(r.value))return!1}else for(;!(r=n.next()).done;){var o=r.value;if(o&&!v(o[1]))return!1}return!0;default:return!1}}function b(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function w(e){if(null==e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function _(e){var t=w(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,d.checkPropTypes=o,d.resetWarningCache=o.resetWarningCache,d.PropTypes=d,d},Nt}()(Ft.isElement,!0)}else gt.exports=function(){if(At)return Rt;At=1;var e=Dt();function t(){}function r(){}return r.resetWarningCache=t,Rt=function(){function n(t,r,n,o,a,i){if(i!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function o(){return n}n.isRequired=n;var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a}}()();var $t=s(gt.exports);function Ut(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function Bt(e){if("string"!=typeof e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `capitalize(string)` expects a string argument.":Ut(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Wt=e=>e;var Ht=(()=>{let e=Wt;return{configure(t){e=t},generate:t=>e(t),reset(){e=Wt}}})();const zt={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function qt(e,t,r="Mui"){const n=zt[t];return n?`${r}-${n}`:`${Ht.generate(e)}-${t}`}function Vt(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}const Xt=["values","unit","step"],Yt=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>ft({},e,{[t.key]:t.val})),{})};var Gt={borderRadius:4};var Kt="production"!==process.env.NODE_ENV?$t.oneOfType([$t.number,$t.string,$t.object,$t.array]):{};function Jt(e,t){return t?ht(e,t,{clone:!1}):e}const Qt={xs:0,sm:600,md:900,lg:1200,xl:1536},Zt={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Qt[e]}px)`};function er(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||Zt;return t.reduce(((n,o,a)=>(n[e.up(e.keys[a])]=r(t[a]),n)),{})}if("object"==typeof t){const e=n.breakpoints||Zt;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||Qt).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function tr(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function rr(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:tr(e,r)||n,t&&(o=t(o,n,e)),o}function nr(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,a=e=>{if(null==e[t])return null;const a=e[t],i=tr(e.theme,n)||{};return er(e,a,(e=>{let n=rr(i,o,e);return e===n&&"string"==typeof e&&(n=rr(i,o,`${t}${"default"===e?"":Bt(e)}`,e)),!1===r?n:{[r]:n}}))};return a.propTypes="production"!==process.env.NODE_ENV?{[t]:Kt}:{},a.filterProps=[t],a}const or={m:"margin",p:"padding"},ar={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ir={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},sr=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!ir[e])return[e];e=ir[e]}const[t,r]=e.split(""),n=or[t],o=ar[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),ur=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],lr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],cr=[...ur,...lr];function fr(e,t,r,n){var o;const a=null!=(o=tr(e,t,!1))?o:r;return"number"==typeof a?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&"number"!=typeof e&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${e}.`),a*e):Array.isArray(a)?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&(Number.isInteger(e)?e>a.length-1&&console.error([`MUI: The value provided (${e}) overflows.`,`The supported values are: ${JSON.stringify(a)}.`,`${e} > ${a.length-1}, you need to add the missing values.`].join("\n")):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join("\n"))),a[e]):"function"==typeof a?a:("production"!==process.env.NODE_ENV&&console.error([`MUI: The \`theme.${t}\` value (${a}) is invalid.`,"It should be a number, an array or a function."].join("\n")),()=>{})}function dr(e){return fr(e,"spacing",8,"spacing")}function pr(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function hr(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=pr(t,r),e)),{})}(sr(r),n);return er(e,e[r],o)}function mr(e,t){const r=dr(e.theme);return Object.keys(e).map((n=>hr(e,t,n,r))).reduce(Jt,{})}function gr(e){return mr(e,ur)}function yr(e){return mr(e,lr)}function vr(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,n)=>t[n]?Jt(r,t[n](e)):r),{});return r.propTypes="production"!==process.env.NODE_ENV?e.reduce(((e,t)=>Object.assign(e,t.propTypes)),{}):{},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function br(e){return"number"!=typeof e?e:`${e}px solid`}gr.propTypes="production"!==process.env.NODE_ENV?ur.reduce(((e,t)=>(e[t]=Kt,e)),{}):{},gr.filterProps=ur,yr.propTypes="production"!==process.env.NODE_ENV?lr.reduce(((e,t)=>(e[t]=Kt,e)),{}):{},yr.filterProps=lr,"production"===process.env.NODE_ENV||cr.reduce(((e,t)=>(e[t]=Kt,e)),{});const wr=nr({prop:"border",themeKey:"borders",transform:br}),_r=nr({prop:"borderTop",themeKey:"borders",transform:br}),Er=nr({prop:"borderRight",themeKey:"borders",transform:br}),xr=nr({prop:"borderBottom",themeKey:"borders",transform:br}),Sr=nr({prop:"borderLeft",themeKey:"borders",transform:br}),Pr=nr({prop:"borderColor",themeKey:"palette"}),Or=nr({prop:"borderTopColor",themeKey:"palette"}),Tr=nr({prop:"borderRightColor",themeKey:"palette"}),Cr=nr({prop:"borderBottomColor",themeKey:"palette"}),Nr=nr({prop:"borderLeftColor",themeKey:"palette"}),kr=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=fr(e.theme,"shape.borderRadius",4,"borderRadius"),r=e=>({borderRadius:pr(t,e)});return er(e,e.borderRadius,r)}return null};kr.propTypes="production"!==process.env.NODE_ENV?{borderRadius:Kt}:{},kr.filterProps=["borderRadius"],vr(wr,_r,Er,xr,Sr,Pr,Or,Tr,Cr,Nr,kr);const Rr=e=>{if(void 0!==e.gap&&null!==e.gap){const t=fr(e.theme,"spacing",8,"gap"),r=e=>({gap:pr(t,e)});return er(e,e.gap,r)}return null};Rr.propTypes="production"!==process.env.NODE_ENV?{gap:Kt}:{},Rr.filterProps=["gap"];const Ar=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=fr(e.theme,"spacing",8,"columnGap"),r=e=>({columnGap:pr(t,e)});return er(e,e.columnGap,r)}return null};Ar.propTypes="production"!==process.env.NODE_ENV?{columnGap:Kt}:{},Ar.filterProps=["columnGap"];const jr=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=fr(e.theme,"spacing",8,"rowGap"),r=e=>({rowGap:pr(t,e)});return er(e,e.rowGap,r)}return null};jr.propTypes="production"!==process.env.NODE_ENV?{rowGap:Kt}:{},jr.filterProps=["rowGap"];function Ir(e,t){return"grey"===t?t:e}vr(Rr,Ar,jr,nr({prop:"gridColumn"}),nr({prop:"gridRow"}),nr({prop:"gridAutoFlow"}),nr({prop:"gridAutoColumns"}),nr({prop:"gridAutoRows"}),nr({prop:"gridTemplateColumns"}),nr({prop:"gridTemplateRows"}),nr({prop:"gridTemplateAreas"}),nr({prop:"gridArea"}));function Mr(e){return e<=1&&0!==e?100*e+"%":e}vr(nr({prop:"color",themeKey:"palette",transform:Ir}),nr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ir}),nr({prop:"backgroundColor",themeKey:"palette",transform:Ir}));const Dr=nr({prop:"width",transform:Mr}),Lr=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||Qt[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Mr(t)}};return er(e,e.maxWidth,t)}return null};Lr.filterProps=["maxWidth"];const Fr=nr({prop:"minWidth",transform:Mr}),$r=nr({prop:"height",transform:Mr}),Ur=nr({prop:"maxHeight",transform:Mr}),Br=nr({prop:"minHeight",transform:Mr});nr({prop:"size",cssProperty:"width",transform:Mr}),nr({prop:"size",cssProperty:"height",transform:Mr});vr(Dr,Lr,Fr,$r,Ur,Br,nr({prop:"boxSizing"}));var Wr={border:{themeKey:"borders",transform:br},borderTop:{themeKey:"borders",transform:br},borderRight:{themeKey:"borders",transform:br},borderBottom:{themeKey:"borders",transform:br},borderLeft:{themeKey:"borders",transform:br},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:kr},color:{themeKey:"palette",transform:Ir},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ir},backgroundColor:{themeKey:"palette",transform:Ir},p:{style:yr},pt:{style:yr},pr:{style:yr},pb:{style:yr},pl:{style:yr},px:{style:yr},py:{style:yr},padding:{style:yr},paddingTop:{style:yr},paddingRight:{style:yr},paddingBottom:{style:yr},paddingLeft:{style:yr},paddingX:{style:yr},paddingY:{style:yr},paddingInline:{style:yr},paddingInlineStart:{style:yr},paddingInlineEnd:{style:yr},paddingBlock:{style:yr},paddingBlockStart:{style:yr},paddingBlockEnd:{style:yr},m:{style:gr},mt:{style:gr},mr:{style:gr},mb:{style:gr},ml:{style:gr},mx:{style:gr},my:{style:gr},margin:{style:gr},marginTop:{style:gr},marginRight:{style:gr},marginBottom:{style:gr},marginLeft:{style:gr},marginX:{style:gr},marginY:{style:gr},marginInline:{style:gr},marginInlineStart:{style:gr},marginInlineEnd:{style:gr},marginBlock:{style:gr},marginBlockStart:{style:gr},marginBlockEnd:{style:gr},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Rr},rowGap:{style:jr},columnGap:{style:Ar},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Mr},maxWidth:{style:Lr},minWidth:{transform:Mr},height:{transform:Mr},maxHeight:{transform:Mr},minHeight:{transform:Mr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Hr=function(){function e(e,t,r,n){const o={[e]:t,theme:r},a=n[e];if(!a)return{[e]:t};const{cssProperty:i=e,themeKey:s,transform:u,style:l}=a;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=tr(r,s)||{};if(l)return l(o);return er(o,t,(t=>{let r=rr(c,u,t);return t===r&&"string"==typeof t&&(r=rr(c,u,`${e}${"default"===t?"":Bt(t)}`,t)),!1===i?r:{[i]:r}}))}return function t(r){var n;const{sx:o,theme:a={}}=r||{};if(!o)return null;const i=null!=(n=a.unstable_sxConfig)?n:Wr;function s(r){let n=r;if("function"==typeof r)n=r(a);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(a.breakpoints),s=Object.keys(o);let u=o;return Object.keys(n).forEach((r=>{const o=(s=n[r],l=a,"function"==typeof s?s(l):s);var s,l;if(null!=o)if("object"==typeof o)if(i[r])u=Jt(u,e(r,o,a,i));else{const e=er({theme:a},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?u=Jt(u,e):u[r]=t({sx:o,theme:a})}else u=Jt(u,e(r,o,a,i))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(s,u)}return Array.isArray(o)?o.map(s):s(o)}}();Hr.filterProps=["sx"];var zr=Hr;const qr=["breakpoints","palette","spacing","shape"];function Vr(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=Vt(e,qr),s=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Vt(e,Xt),a=Yt(t),i=Object.keys(a);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function u(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function l(e,o){const a=i.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==a&&"number"==typeof t[i[a]]?t[i[a]]:o)-n/100}${r})`}return ft({keys:i,values:a,up:s,down:u,between:l,only:function(e){return i.indexOf(e)+1<i.length?l(e,i[i.indexOf(e)+1]):s(e)},not:function(e){const t=i.indexOf(e);return 0===t?s(i[1]):t===i.length-1?u(i[t]):l(e,i[i.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}(r),u=function(e=8){if(e.mui)return e;const t=dr({spacing:e}),r=(...e)=>("production"!==process.env.NODE_ENV&&(e.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${e.length}`)),(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" "));return r.mui=!0,r}(o);let l=ht({breakpoints:s,direction:"ltr",components:{},palette:ft({mode:"light"},n),spacing:u,shape:ft({},Gt,a)},i);return l=t.reduce(((e,t)=>ht(e,t)),l),l.unstable_sxConfig=ft({},Wr,null==i?void 0:i.unstable_sxConfig),l.unstable_sx=function(e){return zr({sx:e,theme:this})},l}function Xr(e,t=0,r=1){return"production"!==process.env.NODE_ENV&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),Math.min(Math.max(t,e),r)}function Yr(e){if(e.type)return e;if("#"===e.charAt(0))return Yr(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error("production"!==process.env.NODE_ENV?`MUI: Unsupported \`${e}\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Ut(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error("production"!==process.env.NODE_ENV?`MUI: unsupported \`${n}\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Ut(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function Gr(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function Kr(e){let t="hsl"===(e=Yr(e)).type||"hsla"===e.type?Yr(function(e){e=Yr(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),i=(e,t=(e+r/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const u=[Math.round(255*i(0)),Math.round(255*i(8)),Math.round(255*i(4))];return"hsla"===e.type&&(s+="a",u.push(t[3])),Gr({type:s,values:u})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Jr(e,t){const r=Kr(e),n=Kr(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}var Qr={black:"#000",white:"#fff"};var Zr={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};var en={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var tn={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var rn={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var nn={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var on={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var an={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};const sn=["mode","contrastThreshold","tonalOffset"],un={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Qr.white,default:Qr.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},ln={text:{primary:Qr.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Qr.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function cn(e,t,r,n){const o=n.light||n,a=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=function(e,t){if(e=Yr(e),t=Xr(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Gr(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Yr(e),t=Xr(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Gr(e)}(e.main,a)))}function fn(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Vt(e,sn),a=e.primary||function(e="light"){return"dark"===e?{main:nn[200],light:nn[50],dark:nn[400]}:{main:nn[700],light:nn[400],dark:nn[800]}}(t),i=e.secondary||function(e="light"){return"dark"===e?{main:en[200],light:en[50],dark:en[400]}:{main:en[500],light:en[300],dark:en[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:tn[500],light:tn[300],dark:tn[700]}:{main:tn[700],light:tn[400],dark:tn[800]}}(t),u=e.info||function(e="light"){return"dark"===e?{main:on[400],light:on[300],dark:on[700]}:{main:on[700],light:on[500],dark:on[900]}}(t),l=e.success||function(e="light"){return"dark"===e?{main:an[400],light:an[300],dark:an[700]}:{main:an[800],light:an[500],dark:an[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:rn[400],light:rn[300],dark:rn[700]}:{main:"#ed6c02",light:rn[500],dark:rn[900]}}(t);function f(e){const t=Jr(e,ln.text.primary)>=r?ln.text.primary:un.text.primary;if("production"!==process.env.NODE_ENV){const r=Jr(e,t);r<3&&console.error([`MUI: The contrast ratio of ${r}:1 for ${t} on ${e}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join("\n"))}return t}const d=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:a=700})=>{if(!(e=ft({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\nThe color object needs to have a \`main\` property or a \`${r}\` property.`:Ut(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\n\`color.main\` should be a string, but \`${JSON.stringify(e.main)}\` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from "@mui/material/colors";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });`:Ut(12,t?` (${t})`:"",JSON.stringify(e.main)));return cn(e,"light",o,n),cn(e,"dark",a,n),e.contrastText||(e.contrastText=f(e.main)),e},p={dark:ln,light:un};"production"!==process.env.NODE_ENV&&(p[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`));return ht(ft({common:ft({},Qr),mode:t,primary:d({color:a,name:"primary"}),secondary:d({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:s,name:"error"}),warning:d({color:c,name:"warning"}),info:d({color:u,name:"info"}),success:d({color:l,name:"success"}),grey:Zr,contrastThreshold:r,getContrastText:f,augmentColor:d,tonalOffset:n},p[t]),o)}const dn=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const pn={textTransform:"uppercase"},hn='"Roboto", "Helvetica", "Arial", sans-serif';function mn(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=hn,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:u=700,htmlFontSize:l=16,allVariants:c,pxToRem:f}=r,d=Vt(r,dn);"production"!==process.env.NODE_ENV&&("number"!=typeof o&&console.error("MUI: `fontSize` is required to be a number."),"number"!=typeof l&&console.error("MUI: `htmlFontSize` is required to be a number."));const p=o/14,h=f||(e=>e/l*p+"rem"),m=(e,t,r,o,a)=>{return ft({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===hn?{letterSpacing:(i=o/t,Math.round(1e5*i)/1e5)+"em"}:{},a,c);var i},g={h1:m(a,96,1.167,-1.5),h2:m(a,60,1.2,-.5),h3:m(i,48,1.167,0),h4:m(i,34,1.235,.25),h5:m(i,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(i,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(i,16,1.5,.15),body2:m(i,14,1.43,.15),button:m(s,14,1.75,.4,pn),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,pn),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ht(ft({htmlFontSize:l,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:u},g),d,{clone:!1})}function gn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var yn=["none",gn(0,2,1,-1,0,1,1,0,0,1,3,0),gn(0,3,1,-2,0,2,2,0,0,1,5,0),gn(0,3,3,-2,0,3,4,0,0,1,8,0),gn(0,2,4,-1,0,4,5,0,0,1,10,0),gn(0,3,5,-1,0,5,8,0,0,1,14,0),gn(0,3,5,-1,0,6,10,0,0,1,18,0),gn(0,4,5,-2,0,7,10,1,0,2,16,1),gn(0,5,5,-3,0,8,10,1,0,3,14,2),gn(0,5,6,-3,0,9,12,1,0,3,16,2),gn(0,6,6,-3,0,10,14,1,0,4,18,3),gn(0,6,7,-4,0,11,15,1,0,4,20,3),gn(0,7,8,-4,0,12,17,2,0,5,22,4),gn(0,7,8,-4,0,13,19,2,0,5,24,4),gn(0,7,9,-4,0,14,21,2,0,5,26,4),gn(0,8,9,-5,0,15,22,2,0,6,28,5),gn(0,8,10,-5,0,16,24,2,0,6,30,5),gn(0,8,11,-5,0,17,26,2,0,6,32,5),gn(0,9,11,-5,0,18,28,2,0,7,34,6),gn(0,9,12,-6,0,19,29,2,0,7,36,6),gn(0,10,13,-6,0,20,31,3,0,8,38,7),gn(0,10,13,-6,0,21,33,3,0,8,40,7),gn(0,10,14,-6,0,22,35,3,0,8,42,7),gn(0,11,14,-7,0,23,36,3,0,9,44,8),gn(0,11,15,-7,0,24,38,3,0,9,46,8)];const vn=["duration","easing","delay"],bn={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},wn={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function _n(e){return`${Math.round(e)}ms`}function En(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function xn(e){const t=ft({},bn,e.easing),r=ft({},wn,e.duration);return ft({getAutoHeightDuration:En,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:a=t.easeInOut,delay:i=0}=n,s=Vt(n,vn);if("production"!==process.env.NODE_ENV){const t=e=>"string"==typeof e,r=e=>!isNaN(parseFloat(e));t(e)||Array.isArray(e)||console.error('MUI: Argument "props" must be a string or Array.'),r(o)||t(o)||console.error(`MUI: Argument "duration" must be a number or a string but found ${o}.`),t(a)||console.error('MUI: Argument "easing" must be a string.'),r(i)||t(i)||console.error('MUI: Argument "delay" must be a number or a string.'),"object"!=typeof n&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join("\n")),0!==Object.keys(s).length&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(s).join(",")}].`)}return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:_n(o)} ${a} ${"string"==typeof i?i:_n(i)}`)).join(",")}},e,{easing:t,duration:r})}var Sn={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const Pn=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function On(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:a={}}=e,i=Vt(e,Pn);if(e.vars)throw new Error("production"!==process.env.NODE_ENV?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Ut(18));const s=fn(n),u=Vr(e);let l=ht(u,{mixins:(c=u.breakpoints,f=r,ft({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},f)),palette:s,shadows:yn.slice(),typography:mn(s,a),transitions:xn(o),zIndex:ft({},Sn)});var c,f;if(l=ht(l,i),l=t.reduce(((e,t)=>ht(e,t)),l),"production"!==process.env.NODE_ENV){const e=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],t=(t,r)=>{let n;for(n in t){const o=t[n];if(-1!==e.indexOf(n)&&Object.keys(o).length>0){if("production"!==process.env.NODE_ENV){const e=qt("",n);console.error([`MUI: The \`${r}\` component increases the CSS specificity of the \`${n}\` internal state.`,"You can not override it like this: ",JSON.stringify(t,null,2),"",`Instead, you need to use the '&.${e}' syntax:`,JSON.stringify({root:{[`&.${e}`]:o}},null,2),"","https://mui.com/r/state-classes-guide"].join("\n"))}t[n]={}}}};Object.keys(l.components).forEach((e=>{const r=l.components[e].styleOverrides;r&&0===e.indexOf("Mui")&&t(r,e)}))}return l.unstable_sxConfig=ft({},Wr,null==i?void 0:i.unstable_sxConfig),l.unstable_sx=function(e){return zr({sx:e,theme:this})},l}var Tn=On({palette:{background:{paper:"#fff"},common:{black:"#323232",white:"#FFFFFF"},colors:{red:"#EB5757",lightRed:"#FEF6F6",orange:"#F2994A",lightOrange:"#FEF7F1",orangeHover:"#EC7A30",orangeFocused:"#E65C15",gold:"#C4A603",lightGold:"#FAF7E6",yellow:"#F2D74C",lightYellow:"#FEFCEE",yellowHover:"#ECC631",yellowFocused:"#E6B517",green1:"#88C00D",lightGreen1:"#F6FAEC",green2:"#27AE60",lightGreen2:"#EEF9F2",green2Hover:"#169242",green2Focused:"#067724",green3:"#6FCF97",blue:"#2D9CDB",lightBlue:"#F3F9FD",blueHover:"#2D9CDB",blueFocused:"#085FBC",blue1:"#56CCF2",lightBlue1:"#F1FBFE",blue1Hover:"#39B8EC",blue1Focused:"#1DA3E6",purple:"#BB6BD9",lightPurple:"#FBF6FD"},greyscale:{dark:"#636363",main:"#ababab",light:"#e2e2e2",contrastText:"#f7f7f7",500:"#5C6467",400:"#8B9092",300:"#C5C8C9",200:"#F0F0F0",100:"#F7F7F7"},redscale:{main:"#EB5757",500:"#EE6868",400:"#F08989",300:"#F4AAAA",200:"#F8CCCC",100:"#FEF6F6"},orangescale:{700:"#E65C15",600:"#EC7A30",main:"#F2994A",100:"#FEF7F1"},goldscale:{main:"#C4A603",100:"#FAF7E6"},yellowscale:{700:"#E6B517",600:"#ECC631",main:"#F2D74C",100:"#FEFCEE"},purplescale:{main:"#BB6BD9",100:"#FBF6FD"},green1scale:{main:"#88C00D",100:"#F6FAEC"},green2scale:{700:"#067724",600:"#169242",main:"#27AE60",100:"#EEF9F2"},green3scale:{main:"#6FCF97"},blue1scale:{700:"#1DA3E6",600:"#39B8EC",main:"#56CCF2",100:"#F1FBFE"},blue2scale:{700:"#085FBC",600:"#1A7ECC",main:"#2D9CDB",100:"#F3F9FD"},error:{main:"#f44336"},pending:{main:"#e7cc0e",dark:"#B09000"},primary:{main:"#365c65",100:"#C6DDE2",300:"#87ACB6",500:"#568793",700:"#3C636C",800:"#2F4F57"},priority:{critical:"#EB5757",high:"#F2994A",low:"#56CCF2",medium:"#88C00D"},typography:{title:"#172326",delete:"#EB5757"},statistics:{value:"#568793",label:"#8B9092"},success:{main:"#88c00d"},uploader:{processing:{border:"",bg:""},pause:{border:"",bg:""}},score:{excellent:"#27AE60",high:"#88C00D",medium:"#F2C94C",low:"#F2994A",bad:"#ED323B"},status:{active:{border:"#96B5BC",background:"#F7F9FA"},approve:{border:"#88C00D",background:"#F9FCF3"},challenge:{border:"#F7C08F",background:"#FEFAF6"},challenged:{border:"#F7C08F",background:"#FEFAF6"},declined:{border:"#F48085",background:"#FEF5F5"},discrepancy:{border:"#CEBA61",background:"#FBFAF2"},duplicate:{border:"#CEBA61",background:"#FBFAF2"},duplicated:{border:"#CEBA61",background:"#FBFAF2"},gold:{border:"#C4A603",background:"#FEFDF3"},in_progress:{border:"#56CCF2",background:"#F1FBFE"},in_review:{border:"#BB6BD9",background:"#FAF6FE"},no_pricing:{border:"#BBBBBB",background:"#FAFAFA"},pending:{border:"#ECC631",background:"#FEFDF3"}},invoiceState:{approved:{border:"#27AE60",background:"#27AE60"},created:{border:"#87ACB6",background:"#87ACB6"},declined:{border:"#EB5757",background:"#EB5757"},in_dispute:{border:"#56CCF2",background:"#56CCF2"},in_progress:{border:"#56CCF2",background:"#56CCF2"},paid:{border:"#BB6BD9",background:"#BB6BD9"},closed:{border:"#8B9092",background:"#8B9092"}},reconcilationState:{created:{border:"#87ACB6",background:"#87ACB6"},in_progress:{border:"#56CCF2",background:"#56CCF2"},approved:{border:"#27AE60",background:"#27AE60"},declined:{border:"#EB5757",background:"#EB5757"},refunded:{border:"#BB6BD9",background:"#BB6BD9"},closed:{border:"#8B9092",background:"#8B9092"}},trends:{positive:"#88C00D",negative:"#F2994A",critical:"#ED323B",percent:"#56CCF2",sum:"#BB6BD9"},invoiceAnalysis:{underCharges:"#87ACB6",overCharges:"#C6DDE2",matching:"#568793",invalid:"#EB5757"},snackbar:{info:{icon:"#56CCF2",border:"#56CCF2"},success:{icon:"#27AE60",border:"#27AE60"},error:{icon:"#ED323B",border:"#ED323B"},warn:{icon:"#F7DD8D",border:"#F2C94C"},critical:{icon:"#ED323B",border:"#ED323B"},silent:{icon:"#56CCF2",border:"#56CCF2"},alert:{icon:"#56CCF2",border:"#56CCF2"}},notificationStatus:{unread:"#F7F9FA"}},components:{MuiButton:{defaultProps:{disableRipple:!0},variants:[{props:{variant:"contained"},style:function(e){var t=e.theme;return{background:t.palette.primary[500],color:t.palette.common.white,boxShadow:"none","&:hover":{background:t.palette.primary[700],boxShadow:"none"},"&:focus":{background:t.palette.primary[800],boxShadow:"none"},"&:disabled":{background:t.palette.primary[500],color:t.palette.common.white}}}},{props:{variant:"contained:rounded"},style:function(e){var t=e.theme;return{borderRadius:100,background:t.palette.primary[500],color:t.palette.common.white,"&:hover":{background:t.palette.primary[700]},"&:focus":{background:t.palette.primary[800]},"&:disabled":{background:t.palette.primary[500],color:t.palette.common.white}}}},{props:{variant:"outlined"},style:function(e){var t=e.theme;return{borderRadius:100,color:t.palette.primary[500],borderColor:t.palette.primary[500],"&:hover":{color:t.palette.primary[700],borderColor:t.palette.primary[700],background:"transparent"},"&:focus":{color:t.palette.primary[800],borderColor:t.palette.primary[800],background:"transparent"},"&:disabled":{color:t.palette.primary[500],border:"1px solid ".concat(t.palette.primary[500])}}}},{props:{variant:"text"},style:function(e){var t=e.theme;return{color:t.palette.primary[500],"&:hover":{color:t.palette.primary[700],background:"transparent"},"&:focus":{color:t.palette.primary[800],borderColor:t.palette.primary[800],background:"transparent"},"&:disabled":{color:t.palette.primary[500]}}}}],styleOverrides:{root:{fontWeight:600,fontSize:12,lineHeight:"24px",letterSpacing:"0.5px",height:40}}},MuiInputBase:{styleOverrides:{root:function(e){var t=e.theme;return{background:t.palette.common.white,padding:t.spacing(1,2),height:40,boxSizing:"border-box",borderRadius:4,border:"1px solid transparent",transition:".2s","&:focus-within":{borderColor:t.palette.primary[100],"& input":{caretColor:t.palette.primary[500]}},"&.Mui-error":{borderColor:t.palette.redscale.main},"label + &":{marginTop:t.spacing(2.2),background:t.palette.common.white},"& input":{color:t.palette.typography.title,"&:placeholder":{color:t.palette.greyscale[400]}},"&.MuiInputBase-adornedStart":{"& input":{paddingLeft:t.spacing(2)}},"&.MuiInputBase-adornedEnd":{"& input":{paddingRight:t.spacing(2)}}}}}}},typography:{fontFamily:["Open Sans","OpenSans"].join(","),body1:{fontWeight:"normal",fontStyle:"normal",fontSize:14,lineHeight:"24px",letterSpacing:"0.15px"},button:{paddingLeft:24,paddingRight:24,color:"white",fontWeight:500,fontStyle:"normal",fontSize:14,lineHeight:"24px",letterSpacing:"0.5px"},table:{fontWeight:"normal",fontStyle:"normal",fontSize:12,lineHeight:"16px",letterSpacing:"0.1px"},table2:{fontWeight:900,fontStyle:"normal",fontSize:12,lineHeight:"16px",letterSpacing:"0.1px"},overLineCaption:{fontWeight:"normal",fontStyle:"normal",fontSize:11,lineHeight:"16px",letterSpacing:"0.1px"},link:{fontWeight:"normal",fontStyle:"italic",fontSize:12,lineHeight:"20px",letterSpacing:"0.15px"},h1:{fontWeight:300,fontStyle:"normal",fontSize:59,lineHeight:"80px",letterSpacing:"-0.5px"},h2:{fontWeight:"normal",fontStyle:"normal",fontSize:44,lineHeight:"64px",letterSpacing:"0px"},h3:{fontWeight:"normal",fontStyle:"normal",fontSize:33,lineHeight:"48px",letterSpacing:"0.25px"},h4:{fontWeight:"normal",fontStyle:"normal",fontSize:25,lineHeight:"40px",letterSpacing:"0px"},h5:{fontWeight:500,fontStyle:"normal",fontSize:19,lineHeight:"28px",letterSpacing:"0.15px"},subtitle1:{fontWeight:"normal",fontStyle:"normal",fontSize:16,lineHeight:"24px",letterSpacing:"0.15px"},subtitle2:{fontWeight:500,fontStyle:"normal",fontSize:14,lineHeight:"24px",letterSpacing:"0.1px"}},sizes:{sideMenu:{width:70,itemHeight:60,logoHeight:60,paddingTop:20,marginBottom:20},hex:80,hex_node:60,hex_event:60,hex_service:60,hex_structure:30,header:{iconTray:200,height:60}}});On(a(a({},Tn),{palette:a(a({},Tn.palette),{mode:"light",text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"#F0F0F0",background:{paper:"#fff",default:"#fafafa"}})})),On(a(a({},Tn),{palette:a(a({},Tn.palette),{mode:"dark",text:{primary:"#fff",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#323232",default:"#303030"}})}));var Cn={exports:{}},Nn={};Nn._=Nn._interop_require_default=function(e){return e&&e.__esModule?e:{default:e}};var kn,Rn={},An={};function jn(){if(kn)return An;function e(t){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(e=function(e){return e?n:r})(t)}return kn=1,An._=An._interop_require_wildcard=function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=e(r);if(n&&n.has(t))return n.get(t);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if("default"!==i&&Object.prototype.hasOwnProperty.call(t,i)){var s=a?Object.getOwnPropertyDescriptor(t,i):null;s&&(s.get||s.set)?Object.defineProperty(o,i,s):o[i]=t[i]}o.default=t,n&&n.set(t,o);return o},An}var In,Mn={};function Dn(){return In||(In=1,function(e){function t(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"removeTrailingSlash",{enumerable:!0,get:function(){return t}})}(Mn)),Mn}var Ln,Fn={exports:{}},$n={};var Un,Bn={exports:{}};function Wn(){return Un||(Un=1,function(e,t){let r;function n(e){var t,n;return(null==(void 0===r&&"undefined"!=typeof window&&(r=(null==(n=window.trustedTypes)?void 0:n.createPolicy("nextjs",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e}))||null),t=r)?void 0:t.createScriptURL(e))||e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"__unsafeCreateTrustedScriptURL",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Bn,Bn.exports)),Bn.exports}var Hn,zn,qn={exports:{}};function Vn(){return Hn||(Hn=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{requestIdleCallback:function(){return r},cancelIdleCallback:function(){return n}});const r="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout((function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})}),1)},n="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(qn,qn.exports)),qn.exports}function Xn(){return zn||(zn=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{markAssetError:function(){return u},isAssetError:function(){return l},getClientBuildManifest:function(){return m},createRouteLoader:function(){return y}});const r=Nn._((Ln||(Ln=1,function(e){function t(e,t){return void 0===t&&(t=""),("/"===e?"/index":/^\/index(\/|$)/.test(e)?"/index"+e:""+e)+t}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}})}($n)),$n)),n=Wn(),o=Vn(),a=3800;function i(e,t,r){let n,o=t.get(e);if(o)return"future"in o?o.future:Promise.resolve(o);const a=new Promise((e=>{n=e}));return t.set(e,o={resolve:n,future:a}),r?r().then((e=>(n(e),e))).catch((r=>{throw t.delete(e),r})):a}const s=Symbol("ASSET_LOAD_ERROR");function u(e){return Object.defineProperty(e,s,{})}function l(e){return e&&s in e}const c=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch(e){return!1}}(),f=()=>process.env.NEXT_DEPLOYMENT_ID?"?dpl="+process.env.NEXT_DEPLOYMENT_ID:"";function d(e,t){return new Promise(((r,n)=>{(t=document.createElement("script")).onload=r,t.onerror=()=>n(u(new Error("Failed to load script: "+e))),t.crossOrigin=process.env.__NEXT_CROSS_ORIGIN,t.src=e,document.body.appendChild(t)}))}let p;function h(e,t,r){return new Promise(((n,a)=>{let i=!1;e.then((e=>{i=!0,n(e)})).catch(a),"development"===process.env.NODE_ENV&&(p||Promise.resolve()).then((()=>{(0,o.requestIdleCallback)((()=>setTimeout((()=>{i||a(r)}),t)))})),"development"!==process.env.NODE_ENV&&(0,o.requestIdleCallback)((()=>setTimeout((()=>{i||a(r)}),t)))}))}function m(){if(self.__BUILD_MANIFEST)return Promise.resolve(self.__BUILD_MANIFEST);return h(new Promise((e=>{const t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}})),a,u(new Error("Failed to load client build manifest")))}function g(e,t){if("development"===process.env.NODE_ENV){const o=e+"/_next/static/chunks/pages"+encodeURI((0,r.default)(t,".js"))+f();return Promise.resolve({scripts:[(0,n.__unsafeCreateTrustedScriptURL)(o)],css:[]})}return m().then((r=>{if(!(t in r))throw u(new Error("Failed to lookup route: "+t));const o=r[t].map((t=>e+"/_next/"+encodeURI(t)));return{scripts:o.filter((e=>e.endsWith(".js"))).map((e=>(0,n.__unsafeCreateTrustedScriptURL)(e)+f())),css:o.filter((e=>e.endsWith(".css"))).map((e=>e+f()))}}))}function y(e){const t=new Map,r=new Map,n=new Map,s=new Map;function l(e){if("development"!==process.env.NODE_ENV){let t=r.get(e.toString());return t||(document.querySelector('script[src^="'+e+'"]')?Promise.resolve():(r.set(e.toString(),t=d(e)),t))}return d(e)}function f(e){let t=n.get(e);return t||(n.set(e,t=fetch(e).then((t=>{if(!t.ok)throw new Error("Failed to load stylesheet: "+e);return t.text().then((t=>({href:e,content:t})))})).catch((e=>{throw u(e)}))),t)}return{whenEntrypoint:e=>i(e,t),onEntrypoint(e,r){(r?Promise.resolve().then((()=>r())).then((e=>({component:e&&e.default||e,exports:e})),(e=>({error:e}))):Promise.resolve(void 0)).then((r=>{const n=t.get(e);n&&"resolve"in n?r&&(t.set(e,r),n.resolve(r)):(r?t.set(e,r):t.delete(e),s.delete(e))}))},loadRoute(r,n){return i(r,s,(()=>{let o;return"development"===process.env.NODE_ENV&&(p=new Promise((e=>{o=e}))),h(g(e,r).then((e=>{let{scripts:n,css:o}=e;return Promise.all([t.has(r)?[]:Promise.all(n.map(l)),Promise.all(o.map(f))])})).then((e=>this.whenEntrypoint(r).then((t=>({entrypoint:t,styles:e[1]}))))),a,u(new Error("Route did not complete loading: "+r))).then((e=>{let{entrypoint:t,styles:r}=e;const n=Object.assign({styles:r},t);return"error"in t?t:n})).catch((e=>{if(n)throw e;return{error:e}})).finally((()=>null==o?void 0:o()))}))},prefetch(t){let r;return(r=navigator.connection)&&(r.saveData||/2g/.test(r.effectiveType))?Promise.resolve():g(e,t).then((e=>Promise.all(c?e.scripts.map((e=>{return t=e.toString(),r="script",new Promise(((e,o)=>{const a='\n link[rel="prefetch"][href^="'+t+'"],\n link[rel="preload"][href^="'+t+'"],\n script[src^="'+t+'"]';if(document.querySelector(a))return e();n=document.createElement("link"),r&&(n.as=r),n.rel="prefetch",n.crossOrigin=process.env.__NEXT_CROSS_ORIGIN,n.onload=e,n.onerror=()=>o(u(new Error("Failed to prefetch: "+t))),n.href=t,document.head.appendChild(n)}));var t,r,n})):[]))).then((()=>{(0,o.requestIdleCallback)((()=>this.loadRoute(t,!0).catch((()=>{}))))})).catch((()=>{}))}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Fn,Fn.exports)),Fn.exports}var Yn,Gn={exports:{}},Kn={};var Jn,Qn,Zn={exports:{}};function eo(){return Qn||(Qn=1,function(r,n){Object.defineProperty(n,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(n,{handleClientScriptLoad:function(){return m},initScriptLoader:function(){return g},default:function(){return v}});const o=Nn,a=jn(),i=o._(t),s=a._(e),u=(Yn||(Yn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return r}});const r=Nn._(e).default.createContext({});"production"!==process.env.NODE_ENV&&(r.displayName="HeadManagerContext")}(Kn)),Kn),l=(Jn||(Jn=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DOMAttributeNames:function(){return r},isEqualNode:function(){return o},default:function(){return i}});const r={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function n(e){let{type:t,props:n}=e;const o=document.createElement(t);for(const e in n){if(!n.hasOwnProperty(e))continue;if("children"===e||"dangerouslySetInnerHTML"===e)continue;if(void 0===n[e])continue;const a=r[e]||e.toLowerCase();"script"!==t||"async"!==a&&"defer"!==a&&"noModule"!==a?o.setAttribute(a,n[e]):o[a]=!!n[e]}const{children:a,dangerouslySetInnerHTML:i}=n;return i?o.innerHTML=i.__html||"":a&&(o.textContent="string"==typeof a?a:Array.isArray(a)?a.join(""):""),o}function o(e,t){if(e instanceof HTMLElement&&t instanceof HTMLElement){const r=t.getAttribute("nonce");if(r&&!e.getAttribute("nonce")){const n=t.cloneNode(!0);return n.setAttribute("nonce",""),n.nonce=r,r===e.nonce&&e.isEqualNode(n)}}return e.isEqualNode(t)}let a;function i(){return{mountedInstances:new Set,updateHead:e=>{const t={};e.forEach((e=>{if("link"===e.type&&e.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+e.props["data-href"]+'"]'))return;e.props.href=e.props["data-href"],e.props["data-href"]=void 0}const r=t[e.type]||[];r.push(e),t[e.type]=r}));const r=t.title?t.title[0]:null;let n="";if(r){const{children:e}=r.props;n="string"==typeof e?e:Array.isArray(e)?e.join(""):""}n!==document.title&&(document.title=n),["meta","base","link","style","script"].forEach((e=>{a(e,t[e]||[])}))}}}a=process.env.__NEXT_STRICT_NEXT_HEAD?(e,t)=>{const r=document.querySelector("head");if(!r)return;const a=r.querySelectorAll('meta[name="next-head"]')||[],i=[];if("meta"===e){const e=r.querySelector("meta[charset]");e&&i.push(e)}for(let t=0;t<a.length;t++){var s;const r=a[t].nextSibling;(null==r||null==(s=r.tagName)?void 0:s.toLowerCase())===e&&i.push(r)}const u=t.map(n).filter((e=>{for(let t=0,r=i.length;t<r;t++)if(o(i[t],e))return i.splice(t,1),!1;return!0}));i.forEach((e=>{var t;const r=e.previousSibling;var n;r&&"next-head"===r.getAttribute("name")&&(null==(n=e.parentNode)||n.removeChild(r)),null==(t=e.parentNode)||t.removeChild(e)})),u.forEach((e=>{var t;const n=document.createElement("meta");n.name="next-head",n.content="1","meta"===(null==(t=e.tagName)?void 0:t.toLowerCase())&&e.getAttribute("charset")||r.appendChild(n),r.appendChild(e)}))}:(e,t)=>{const r=document.getElementsByTagName("head")[0],a=r.querySelector("meta[name=next-head-count]");if("production"!==process.env.NODE_ENV&&!a)return void console.error("Warning: next-head-count is missing. https://nextjs.org/docs/messages/next-head-count-missing");const i=Number(a.content),s=[];for(let t=0,r=a.previousElementSibling;t<i;t++,r=(null==r?void 0:r.previousElementSibling)||null){var u;(null==r||null==(u=r.tagName)?void 0:u.toLowerCase())===e&&s.push(r)}const l=t.map(n).filter((e=>{for(let t=0,r=s.length;t<r;t++)if(o(s[t],e))return s.splice(t,1),!1;return!0}));s.forEach((e=>{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),l.forEach((e=>r.insertBefore(e,a))),a.content=(i-s.length+l.length).toString()},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Zn,Zn.exports)),Zn.exports),c=Vn(),f=new Map,d=new Set,p=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],h=e=>{const{src:t,id:r,onLoad:n=(()=>{}),onReady:o=null,dangerouslySetInnerHTML:a,children:s="",strategy:u="afterInteractive",onError:c,stylesheets:h}=e,m=r||t;if(m&&d.has(m))return;if(f.has(t))return d.add(m),void f.get(t).then(n,c);const g=()=>{o&&o(),d.add(m)},y=document.createElement("script"),v=new Promise(((e,t)=>{y.addEventListener("load",(function(t){e(),n&&n.call(this,t),g()})),y.addEventListener("error",(function(e){t(e)}))})).catch((function(e){c&&c(e)}));a?(y.innerHTML=a.__html||"",g()):s?(y.textContent="string"==typeof s?s:Array.isArray(s)?s.join(""):"",g()):t&&(y.src=t,f.set(t,v));for(const[t,r]of Object.entries(e)){if(void 0===r||p.includes(t))continue;const e=l.DOMAttributeNames[t]||t.toLowerCase();y.setAttribute(e,r)}"worker"===u&&y.setAttribute("type","text/partytown"),y.setAttribute("data-nscript",u),h&&(e=>{if(i.default.preinit)e.forEach((e=>{i.default.preinit(e,{as:"style"})}));else if("undefined"!=typeof window){let t=document.head;e.forEach((e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)}))}})(h),document.body.appendChild(y)};function m(e){const{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",(()=>{(0,c.requestIdleCallback)((()=>h(e)))})):h(e)}function g(e){e.forEach(m),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach((e=>{const t=e.id||e.getAttribute("src");d.add(t)}))}function y(e){const{id:t,src:r="",onLoad:n=(()=>{}),onReady:o=null,strategy:a="afterInteractive",onError:l,stylesheets:f,...p}=e,{updateScripts:m,scripts:g,getIsSsr:y,appDir:v,nonce:b}=(0,s.useContext)(u.HeadManagerContext),w=(0,s.useRef)(!1);(0,s.useEffect)((()=>{const e=t||r;w.current||(o&&e&&d.has(e)&&o(),w.current=!0)}),[o,t,r]);const _=(0,s.useRef)(!1);if((0,s.useEffect)((()=>{_.current||("afterInteractive"===a?h(e):"lazyOnload"===a&&function(e){"complete"===document.readyState?(0,c.requestIdleCallback)((()=>h(e))):window.addEventListener("load",(()=>{(0,c.requestIdleCallback)((()=>h(e)))}))}(e),_.current=!0)}),[e,a]),"beforeInteractive"!==a&&"worker"!==a||(m?(g[a]=(g[a]||[]).concat([{id:t,src:r,onLoad:n,onReady:o,onError:l,...p}]),m(g)):y&&y()?d.add(t||r):y&&!y()&&h(e)),v){if(f&&f.forEach((e=>{i.default.preinit(e,{as:"style"})})),"beforeInteractive"===a)return r?(i.default.preload(r,p.integrity?{as:"script",integrity:p.integrity}:{as:"script"}),s.default.createElement("script",{nonce:b,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([r])+")"}})):(p.dangerouslySetInnerHTML&&(p.children=p.dangerouslySetInnerHTML.__html,delete p.dangerouslySetInnerHTML),s.default.createElement("script",{nonce:b,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...p}])+")"}}));"afterInteractive"===a&&r&&i.default.preload(r,p.integrity?{as:"script",integrity:p.integrity}:{as:"script"})}return null}Object.defineProperty(y,"__nextScript",{value:!0});const v=y;("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),r.exports=n.default)}(Gn,Gn.exports)),Gn.exports}var to,ro,no={},oo={};function ao(){return ro||(ro=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(e,{default:function(){return r},getProperError:function(){return n}});const t=(to||(to=1,function(e){function t(e){return Object.prototype.toString.call(e)}function r(e){if("[object Object]"!==t(e))return!1;const r=Object.getPrototypeOf(e);return null===r||r.hasOwnProperty("isPrototypeOf")}Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(e,{getObjectClassLabel:function(){return t},isPlainObject:function(){return r}})}(oo)),oo);function r(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}function n(e){if(r(e))return e;if("development"===process.env.NODE_ENV){if(void 0===e)return new Error("An undefined error was thrown, see here for more info: https://nextjs.org/docs/messages/threw-undefined");if(null===e)return new Error("A null error was thrown, see here for more info: https://nextjs.org/docs/messages/threw-undefined")}return new Error((0,t.isPlainObject)(e)?JSON.stringify(e):e+"")}}(no)),no}var io,so={},uo={},lo={};var co,fo,po={};function ho(){return co||(co=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isDynamicRoute",{enumerable:!0,get:function(){return r}});const t=/\/\[[^/]+?\](?=\/|$)/;function r(e){return t.test(e)}}(po)),po}function mo(){return fo||(fo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(e,{getSortedRoutes:function(){return t.getSortedRoutes},isDynamicRoute:function(){return r.isDynamicRoute}});const t=(io||(io=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class t{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");const t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);const r=t.map((t=>this.children.get(t)._smoosh(""+e+t+"/"))).reduce(((e,t)=>[...e,...t]),[]);if(null!==this.slugName&&r.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){const t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');r.unshift(t)}return null!==this.restSlugName&&r.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&r.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),r}_insert(e,r,n){if(0===e.length)return void(this.placeholder=!1);if(n)throw new Error("Catch-all must be the last part of the URL.");let o=e[0];if(o.startsWith("[")&&o.endsWith("]")){let a=o.slice(1,-1),i=!1;if(a.startsWith("[")&&a.endsWith("]")&&(a=a.slice(1,-1),i=!0),a.startsWith("...")&&(a=a.substring(3),n=!0),a.startsWith("[")||a.endsWith("]"))throw new Error("Segment names may not start or end with extra brackets ('"+a+"').");if(a.startsWith("."))throw new Error("Segment names may not start with erroneous periods ('"+a+"').");function s(e,t){if(null!==e&&e!==t)throw new Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+t+"').");r.forEach((e=>{if(e===t)throw new Error('You cannot have the same slug name "'+t+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===o.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+e+'" and "'+t+'" differ only by non-word symbols within a single dynamic path')})),r.push(t)}if(n)if(i){if(null!=this.restSlugName)throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');s(this.optionalRestSlugName,a),this.optionalRestSlugName=a,o="[[...]]"}else{if(null!=this.optionalRestSlugName)throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');s(this.restSlugName,a),this.restSlugName=a,o="[...]"}else{if(i)throw new Error('Optional route parameters are not yet supported ("'+e[0]+'").');s(this.slugName,a),this.slugName=a,o="[]"}}this.children.has(o)||this.children.set(o,new t),this.children.get(o)._insert(e.slice(1),r,n)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(e){const r=new t;return e.forEach((e=>r.insert(e))),r.smoosh()}}(lo)),lo),r=ho()}(uo)),uo}var go,yo,vo={};function bo(){return yo||(yo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"denormalizePagePath",{enumerable:!0,get:function(){return n}});const t=mo(),r=(go||(go=1,function(e){function t(e){return e.replace(/\\/g,"/")}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizePathSep",{enumerable:!0,get:function(){return t}})}(vo)),vo);function n(e){let n=(0,r.normalizePathSep)(e);return n.startsWith("/index/")&&!(0,t.isDynamicRoute)(n)?n.slice(6):"/index"!==n?n:"/"}}(so)),so}var wo,_o={};function Eo(){return wo||(wo=1,function(e){function t(e,t){let r;const n=e.split("/");return(t||[]).some((t=>!(!n[1]||n[1].toLowerCase()!==t.toLowerCase())&&(r=t,n.splice(1,1),e=n.join("/")||"/",!0))),{pathname:e,detectedLocale:r}}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return t}})}(_o)),_o}var xo,So={};var Po,Oo={};function To(){return Po||(Po=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(e,{WEB_VITALS:function(){return t},execOnce:function(){return r},isAbsoluteUrl:function(){return o},getLocationOrigin:function(){return a},getURL:function(){return i},getDisplayName:function(){return s},isResSent:function(){return u},normalizeRepeatedSlashes:function(){return l},loadGetInitialProps:function(){return c},SP:function(){return f},ST:function(){return d},DecodeError:function(){return p},NormalizeError:function(){return h},PageNotFoundError:function(){return m},MissingStaticPage:function(){return g},MiddlewareNotFoundError:function(){return y},stringifyError:function(){return v}});const t=["CLS","FCP","FID","INP","LCP","TTFB"];function r(e){let t,r=!1;return function(){for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return r||(r=!0,t=e(...o)),t}}const n=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,o=e=>n.test(e);function a(){const{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function i(){const{href:e}=window.location,t=a();return e.substring(t.length)}function s(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function u(e){return e.finished||e.headersSent}function l(e){const t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function c(e,t){var r;if("production"!==process.env.NODE_ENV&&(null==(r=e.prototype)?void 0:r.getInitialProps)){const t='"'+s(e)+'.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';throw new Error(t)}const n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await c(t.Component,t.ctx)}:{};const o=await e.getInitialProps(t);if(n&&u(n))return o;if(!o){const t='"'+s(e)+'.getInitialProps()" should resolve to an object. But found "'+o+'" instead.';throw new Error(t)}return"production"!==process.env.NODE_ENV&&(0!==Object.keys(o).length||t.ctx||console.warn(s(e)+" returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps")),o}const f="undefined"!=typeof performance,d=f&&["mark","measure","getEntriesByName"].every((e=>"function"==typeof performance[e]));class p extends Error{}class h extends Error{}class m extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class g extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class y extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function v(e){return JSON.stringify({message:e.message,stack:e.stack})}}(Oo)),Oo}var Co,No,ko={},Ro={};function Ao(){return Co||(Co=1,function(e){function t(e){const t={};return e.forEach(((e,r)=>{void 0===t[r]?t[r]=e:Array.isArray(t[r])?t[r].push(e):t[r]=[t[r],e]})),t}function r(e){return"string"==typeof e||"number"==typeof e&&!isNaN(e)||"boolean"==typeof e?String(e):""}function n(e){const t=new URLSearchParams;return Object.entries(e).forEach((e=>{let[n,o]=e;Array.isArray(o)?o.forEach((e=>t.append(n,r(e)))):t.set(n,r(o))})),t}function o(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.forEach((t=>{Array.from(t.keys()).forEach((t=>e.delete(t))),t.forEach(((t,r)=>e.append(r,t)))})),e}Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(e,{searchParamsToUrlQuery:function(){return t},urlQueryToSearchParams:function(){return n},assign:function(){return o}})}(Ro)),Ro}function jo(){return No||(No=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parseRelativeUrl",{enumerable:!0,get:function(){return n}});const t=To(),r=Ao();function n(e,n){const o=new URL("undefined"==typeof window?"http://n":(0,t.getLocationOrigin)()),a=n?new URL(n,o):e.startsWith(".")?new URL("undefined"==typeof window?"http://n":window.location.href):o,{pathname:i,searchParams:s,search:u,hash:l,href:c,origin:f}=new URL(e,a);if(f!==o.origin)throw new Error("invariant: invalid relative URL, router received "+e);return{pathname:i,query:(0,r.searchParamsToUrlQuery)(s),search:u,hash:l,href:c.slice(o.origin.length)}}}(ko)),ko}var Io,Mo,Do={},Lo={},Fo={};function $o(){if(Io)return Fo;function e(e,t){void 0===t&&(t={});for(var r=function(e){for(var t=[],r=0;r<e.length;){var n=e[r];if("*"!==n&&"+"!==n&&"?"!==n)if("\\"!==n)if("{"!==n)if("}"!==n)if(":"!==n)if("("!==n)t.push({type:"CHAR",index:r,value:e[r++]});else{var o=1,a="";if("?"===e[s=r+1])throw new TypeError('Pattern cannot start with "?" at '+s);for(;s<e.length;)if("\\"!==e[s]){if(")"===e[s]){if(0==--o){s++;break}}else if("("===e[s]&&(o++,"?"!==e[s+1]))throw new TypeError("Capturing groups are not allowed at "+s);a+=e[s++]}else a+=e[s++]+e[s++];if(o)throw new TypeError("Unbalanced pattern at "+r);if(!a)throw new TypeError("Missing pattern at "+r);t.push({type:"PATTERN",index:r,value:a}),r=s}else{for(var i="",s=r+1;s<e.length;){var u=e.charCodeAt(s);if(!(u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||95===u))break;i+=e[s++]}if(!i)throw new TypeError("Missing parameter name at "+r);t.push({type:"NAME",index:r,value:i}),r=s}else t.push({type:"CLOSE",index:r,value:e[r++]});else t.push({type:"OPEN",index:r,value:e[r++]});else t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});else t.push({type:"MODIFIER",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}(e),o=t.prefixes,a=void 0===o?"./":o,i="[^"+n(t.delimiter||"/#?")+"]+?",s=[],u=0,l=0,c="",f=function(e){if(l<r.length&&r[l].type===e)return r[l++].value},d=function(e){var t=f(e);if(void 0!==t)return t;var n=r[l],o=n.type,a=n.index;throw new TypeError("Unexpected "+o+" at "+a+", expected "+e)},p=function(){for(var e,t="";e=f("CHAR")||f("ESCAPED_CHAR");)t+=e;return t};l<r.length;){var h=f("CHAR"),m=f("NAME"),g=f("PATTERN");if(m||g){var y=h||"";-1===a.indexOf(y)&&(c+=y,y=""),c&&(s.push(c),c=""),s.push({name:m||u++,prefix:y,suffix:"",pattern:g||i,modifier:f("MODIFIER")||""})}else{var v=h||f("ESCAPED_CHAR");if(v)c+=v;else if(c&&(s.push(c),c=""),f("OPEN")){y=p();var b=f("NAME")||"",w=f("PATTERN")||"",_=p();d("CLOSE"),s.push({name:b||(w?u++:""),pattern:b&&!w?i:w,prefix:y,suffix:_,modifier:f("MODIFIER")||""})}else d("END")}}return s}function t(e,t){void 0===t&&(t={});var r=o(t),n=t.encode,a=void 0===n?function(e){return e}:n,i=t.validate,s=void 0===i||i,u=e.map((function(e){if("object"==typeof e)return new RegExp("^(?:"+e.pattern+")$",r)}));return function(t){for(var r="",n=0;n<e.length;n++){var o=e[n];if("string"!=typeof o){var i=t?t[o.name]:void 0,l="?"===o.modifier||"*"===o.modifier,c="*"===o.modifier||"+"===o.modifier;if(Array.isArray(i)){if(!c)throw new TypeError('Expected "'+o.name+'" to not repeat, but got an array');if(0===i.length){if(l)continue;throw new TypeError('Expected "'+o.name+'" to not be empty')}for(var f=0;f<i.length;f++){var d=a(i[f],o);if(s&&!u[n].test(d))throw new TypeError('Expected all "'+o.name+'" to match "'+o.pattern+'", but got "'+d+'"');r+=o.prefix+d+o.suffix}}else if("string"!=typeof i&&"number"!=typeof i){if(!l){var p=c?"an array":"a string";throw new TypeError('Expected "'+o.name+'" to be '+p)}}else{d=a(String(i),o);if(s&&!u[n].test(d))throw new TypeError('Expected "'+o.name+'" to match "'+o.pattern+'", but got "'+d+'"');r+=o.prefix+d+o.suffix}}else r+=o}return r}}function r(e,t,r){void 0===r&&(r={});var n=r.decode,o=void 0===n?function(e){return e}:n;return function(r){var n=e.exec(r);if(!n)return!1;for(var a=n[0],i=n.index,s=Object.create(null),u=function(e){if(void 0===n[e])return"continue";var r=t[e-1];"*"===r.modifier||"+"===r.modifier?s[r.name]=n[e].split(r.prefix+r.suffix).map((function(e){return o(e,r)})):s[r.name]=o(n[e],r)},l=1;l<n.length;l++)u(l);return{path:a,index:i,params:s}}}function n(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function o(e){return e&&e.sensitive?"":"i"}function a(e,t,r){void 0===r&&(r={});for(var a=r.strict,i=void 0!==a&&a,s=r.start,u=void 0===s||s,l=r.end,c=void 0===l||l,f=r.encode,d=void 0===f?function(e){return e}:f,p="["+n(r.endsWith||"")+"]|$",h="["+n(r.delimiter||"/#?")+"]",m=u?"^":"",g=0,y=e;g<y.length;g++){var v=y[g];if("string"==typeof v)m+=n(d(v));else{var b=n(d(v.prefix)),w=n(d(v.suffix));if(v.pattern)if(t&&t.push(v),b||w)if("+"===v.modifier||"*"===v.modifier){var _="*"===v.modifier?"?":"";m+="(?:"+b+"((?:"+v.pattern+")(?:"+w+b+"(?:"+v.pattern+"))*)"+w+")"+_}else m+="(?:"+b+"("+v.pattern+")"+w+")"+v.modifier;else m+="("+v.pattern+")"+v.modifier;else m+="(?:"+b+w+")"+v.modifier}}if(c)i||(m+=h+"?"),m+=r.endsWith?"(?="+p+")":"$";else{var E=e[e.length-1],x="string"==typeof E?h.indexOf(E[E.length-1])>-1:void 0===E;i||(m+="(?:"+h+"(?="+p+"))?"),x||(m+="(?="+h+"|"+p+")")}return new RegExp(m,o(r))}function i(t,r,n){return t instanceof RegExp?function(e,t){if(!t)return e;var r=e.source.match(/\((?!\?)/g);if(r)for(var n=0;n<r.length;n++)t.push({name:n,prefix:"",suffix:"",modifier:"",pattern:""});return e}(t,r):Array.isArray(t)?function(e,t,r){var n=e.map((function(e){return i(e,t,r).source}));return new RegExp("(?:"+n.join("|")+")",o(r))}(t,r,n):function(t,r,n){return a(e(t,n),r,n)}(t,r,n)}return Io=1,Object.defineProperty(Fo,"__esModule",{value:!0}),Fo.parse=e,Fo.compile=function(r,n){return t(e(r,n),n)},Fo.tokensToFunction=t,Fo.match=function(e,t){var n=[];return r(i(e,n,t),n,t)},Fo.regexpToFunction=r,Fo.tokensToRegexp=a,Fo.pathToRegexp=i,Fo}var Uo,Bo={},Wo={};function Ho(){return Uo||(Uo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"escapeStringRegexp",{enumerable:!0,get:function(){return n}});const t=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function n(e){return t.test(e)?e.replace(r,"\\$&"):e}}(Wo)),Wo}var zo,qo={};var Vo,Xo={},Yo={},Go={};var Ko,Jo,Qo,Zo={};function ea(){return Jo||(Jo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(e,{normalizeAppPath:function(){return n},normalizeRscPath:function(){return o}});const t=(Vo||(Vo=1,function(e){function t(e){return e.startsWith("/")?e:"/"+e}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ensureLeadingSlash",{enumerable:!0,get:function(){return t}})}(Go)),Go),r=(Ko||(Ko=1,function(e){function t(e){return"("===e[0]&&e.endsWith(")")}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isGroupSegment",{enumerable:!0,get:function(){return t}})}(Zo)),Zo);function n(e){return(0,t.ensureLeadingSlash)(e.split("/").reduce(((e,t,n,o)=>t?(0,r.isGroupSegment)(t)||"@"===t[0]?e:"page"!==t&&"route"!==t||n!==o.length-1?e+"/"+t:e:e),""))}function o(e,t){return t?e.replace(/\.rsc($|\?)/,"$1"):e}}(Yo)),Yo}function ta(){return Qo||(Qo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(e,{INTERCEPTION_ROUTE_MARKERS:function(){return r},isInterceptionRouteAppPath:function(){return n},extractInterceptionRouteInformation:function(){return o}});const t=ea(),r=["(..)(..)","(.)","(..)","(...)"];function n(e){return void 0!==e.split("/").find((e=>r.find((t=>e.startsWith(t)))))}function o(e){let n,o,a;for(const t of e.split("/"))if(o=r.find((e=>t.startsWith(e))),o){[n,a]=e.split(o,2);break}if(!n||!o||!a)throw new Error(`Invalid interception route: ${e}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(n=(0,t.normalizeAppPath)(n),o){case"(.)":a="/"===n?`/${a}`:n+"/"+a;break;case"(..)":if("/"===n)throw new Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`);a=n.split("/").slice(0,-1).concat(a).join("/");break;case"(...)":a="/"+a;break;case"(..)(..)":const t=n.split("/");if(t.length<=2)throw new Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`);a=t.slice(0,-2).concat(a).join("/");break;default:throw new Error("Invariant: unexpected marker")}return{interceptingRoute:n,interceptedRoute:a}}}(Xo)),Xo}var ra,na={exports:{}};var oa,aa,ia,sa={},ua={exports:{}};function la(){return oa||(oa=1,(()=>{"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab=__dirname+"/");var e={};(()=>{var t=e;
|
|
22
|
+
/*!
|
|
23
|
+
* cookie
|
|
24
|
+
* Copyright(c) 2012-2014 Roman Shtylman
|
|
25
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
26
|
+
* MIT Licensed
|
|
27
|
+
*/t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var n={},a=t||{},s=e.split(o),u=a.decode||r,l=0;l<s.length;l++){var c=s[l],f=c.indexOf("=");if(!(f<0)){var d=c.substr(0,f).trim(),p=c.substr(++f,c.length).trim();'"'==p[0]&&(p=p.slice(1,-1)),null==n[d]&&(n[d]=i(p,u))}}return n},t.serialize=function(e,t,r){var o=r||{},i=o.encode||n;if("function"!=typeof i)throw new TypeError("option encode is invalid");if(!a.test(e))throw new TypeError("argument name is invalid");var s=i(t);if(s&&!a.test(s))throw new TypeError("argument val is invalid");var u=e+"="+s;if(null!=o.maxAge){var l=o.maxAge-0;if(isNaN(l)||!isFinite(l))throw new TypeError("option maxAge is invalid");u+="; Max-Age="+Math.floor(l)}if(o.domain){if(!a.test(o.domain))throw new TypeError("option domain is invalid");u+="; Domain="+o.domain}if(o.path){if(!a.test(o.path))throw new TypeError("option path is invalid");u+="; Path="+o.path}if(o.expires){if("function"!=typeof o.expires.toUTCString)throw new TypeError("option expires is invalid");u+="; Expires="+o.expires.toUTCString()}o.httpOnly&&(u+="; HttpOnly");o.secure&&(u+="; Secure");if(o.sameSite){switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"strict":u+="; SameSite=Strict";break;case"none":u+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return u};var r=decodeURIComponent,n=encodeURIComponent,o=/; */,a=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function i(e,t){try{return t(e)}catch(t){return e}}})(),ua.exports=e})()),ua.exports}function ca(){return ia||(ia=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(e,{matchHas:function(){return u},compileNonPath:function(){return l},prepareDestination:function(){return c}});const t=$o(),r=Ho(),n=(zo||(zo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parseUrl",{enumerable:!0,get:function(){return n}});const t=Ao(),r=jo();function n(e){if(e.startsWith("/"))return(0,r.parseRelativeUrl)(e);const n=new URL(e);return{hash:n.hash,hostname:n.hostname,href:n.href,pathname:n.pathname,port:n.port,protocol:n.protocol,query:(0,t.searchParamsToUrlQuery)(n.searchParams),search:n.search}}}(qo)),qo),o=ta(),a=(ra||(ra=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RSC:function(){return r},ACTION:function(){return n},NEXT_ROUTER_STATE_TREE:function(){return o},NEXT_ROUTER_PREFETCH:function(){return a},NEXT_URL:function(){return i},RSC_CONTENT_TYPE_HEADER:function(){return s},RSC_VARY_HEADER:function(){return u},FLIGHT_PARAMETERS:function(){return l},NEXT_RSC_UNION_QUERY:function(){return c}});const r="RSC",n="Next-Action",o="Next-Router-State-Tree",a="Next-Router-Prefetch",i="Next-Url",s="text/x-component",u=r+", "+o+", "+a+", "+i,l=[[r],[o],[a]],c="_rsc";("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(na,na.exports)),na.exports),i=(aa||(aa=1,function(e){function t(e){return function(){const{cookie:t}=e;if(!t)return{};const{parse:r}=la();return r(Array.isArray(t)?t.join("; "):t)}}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getCookieParser",{enumerable:!0,get:function(){return t}})}(sa)),sa);function s(e){return e.replace(/__ESC_COLON_/gi,":")}function u(e,t,r,n){void 0===r&&(r=[]),void 0===n&&(n=[]);const o={},a=r=>{let n,a=r.key;switch(r.type){case"header":a=a.toLowerCase(),n=e.headers[a];break;case"cookie":if("cookies"in e)n=e.cookies[r.key];else{n=(0,i.getCookieParser)(e.headers)()[r.key]}break;case"query":n=t[a];break;case"host":{const{host:t}=(null==e?void 0:e.headers)||{};n=null==t?void 0:t.split(":")[0].toLowerCase();break}}if(!r.value&&n)return o[function(e){let t="";for(let r=0;r<e.length;r++){const n=e.charCodeAt(r);(n>64&&n<91||n>96&&n<123)&&(t+=e[r])}return t}(a)]=n,!0;if(n){const e=new RegExp("^"+r.value+"$"),t=Array.isArray(n)?n.slice(-1)[0].match(e):n.match(e);if(t)return Array.isArray(t)&&(t.groups?Object.keys(t.groups).forEach((e=>{o[e]=t.groups[e]})):"host"===r.type&&t[0]&&(o.host=t[0])),!0}return!1};return!(!r.every((e=>a(e)))||n.some((e=>a(e))))&&o}function l(e,r){if(!e.includes(":"))return e;for(const t of Object.keys(r))e.includes(":"+t)&&(e=e.replace(new RegExp(":"+t+"\\*","g"),":"+t+"--ESCAPED_PARAM_ASTERISKS").replace(new RegExp(":"+t+"\\?","g"),":"+t+"--ESCAPED_PARAM_QUESTION").replace(new RegExp(":"+t+"\\+","g"),":"+t+"--ESCAPED_PARAM_PLUS").replace(new RegExp(":"+t+"(?!\\w)","g"),"--ESCAPED_PARAM_COLON"+t));return e=e.replace(/(:|\*|\?|\+|\(|\)|\{|\})/g,"\\$1").replace(/--ESCAPED_PARAM_PLUS/g,"+").replace(/--ESCAPED_PARAM_COLON/g,":").replace(/--ESCAPED_PARAM_QUESTION/g,"?").replace(/--ESCAPED_PARAM_ASTERISKS/g,"*"),(0,t.compile)("/"+e,{validate:!1})(r).slice(1)}function c(e){const i=Object.assign({},e.query);delete i.__nextLocale,delete i.__nextDefaultLocale,delete i.__nextDataReq,delete i.__nextInferredLocaleFromDefault,delete i[a.NEXT_RSC_UNION_QUERY];let u=e.destination;for(const t of Object.keys({...e.params,...i}))c=t,u=u.replace(new RegExp(":"+(0,r.escapeStringRegexp)(c),"g"),"__ESC_COLON_"+c);var c;const f=(0,n.parseUrl)(u),d=f.query,p=s(""+f.pathname+(f.hash||"")),h=s(f.hostname||""),m=[],g=[];(0,t.pathToRegexp)(p,m),(0,t.pathToRegexp)(h,g);const y=[];m.forEach((e=>y.push(e.name))),g.forEach((e=>y.push(e.name)));const v=(0,t.compile)(p,{validate:!1}),b=(0,t.compile)(h,{validate:!1});for(const[t,r]of Object.entries(d))Array.isArray(r)?d[t]=r.map((t=>l(s(t),e.params))):"string"==typeof r&&(d[t]=l(s(r),e.params));let w,_=Object.keys(e.params).filter((e=>"nextInternalLocale"!==e));if(e.appendParamsToQuery&&!_.some((e=>y.includes(e))))for(const t of _)t in d||(d[t]=e.params[t]);if((0,o.isInterceptionRouteAppPath)(p))for(const t of p.split("/")){const r=o.INTERCEPTION_ROUTE_MARKERS.find((e=>t.startsWith(e)));if(r){e.params[0]=r;break}}try{w=v(e.params);const[t,r]=w.split("#");f.hostname=b(e.params),f.pathname=t,f.hash=(r?"#":"")+(r||""),delete f.search}catch(e){if(e.message.match(/Expected .*? to not repeat, but got an array/))throw new Error("To use a multi-match in the destination you must add `*` at the end of the param name to signify it should repeat. https://nextjs.org/docs/messages/invalid-multi-match");throw e}return f.query={...i,...f.query},{newUrl:w,destQuery:d,parsedDestination:f}}}(Bo)),Bo}var fa,da,pa,ha,ma,ga={exports:{}},ya={exports:{}},va={},ba={};function wa(){return fa||(fa=1,function(e){function t(e){const t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r<t);return n||t>-1?{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return t}})}(ba)),ba}function _a(){return da||(da=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const t=wa();function r(e,r){if("string"!=typeof e)return!1;const{pathname:n}=(0,t.parsePath)(e);return n===r||n.startsWith(r+"/")}}(va)),va}function Ea(){return pa||(pa=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});const r=_a(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function o(e){return(0,r.pathHasPrefix)(e,n)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(ya,ya.exports)),ya.exports}function xa(){return ha||(ha=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeBasePath",{enumerable:!0,get:function(){return o}});const r=Ea(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function o(e){return process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!(0,r.hasBasePath)(e)||0===n.length||(e=e.slice(n.length)).startsWith("/")||(e="/"+e),e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(ga,ga.exports)),ga.exports}function Sa(){return ma||(ma=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return s}});const t=(Mo||(Mo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getPathMatch",{enumerable:!0,get:function(){return r}});const t=$o();function r(e,r){const n=[],o=(0,t.pathToRegexp)(e,n,{delimiter:"/",sensitive:"boolean"==typeof(null==r?void 0:r.sensitive)&&r.sensitive,strict:null==r?void 0:r.strict}),a=(0,t.regexpToFunction)((null==r?void 0:r.regexModifier)?new RegExp(r.regexModifier(o.source),o.flags):o,n);return(e,t)=>{if("string"!=typeof e)return!1;const o=a(e);if(!o)return!1;if(null==r?void 0:r.removeUnnamedParams)for(const e of n)"number"==typeof e.name&&delete o.params[e.name];return{...t,...o.params}}}}(Lo)),Lo),r=ca(),n=Dn(),o=Eo(),a=xa(),i=jo();function s(e,s,u,l,c,f){let d,p=!1,h=!1,m=(0,i.parseRelativeUrl)(e),g=(0,n.removeTrailingSlash)((0,o.normalizeLocalePath)((0,a.removeBasePath)(m.pathname),f).pathname);const y=i=>{let u=(0,t.getPathMatch)(i.source+(process.env.__NEXT_TRAILING_SLASH?"(/)?":""),{removeUnnamedParams:!0,strict:!0})(m.pathname);if((i.has||i.missing)&&u){const e=(0,r.matchHas)({headers:{host:document.location.hostname,"user-agent":navigator.userAgent},cookies:document.cookie.split("; ").reduce(((e,t)=>{const[r,...n]=t.split("=");return e[r]=n.join("="),e}),{})},m.query,i.has,i.missing);e?Object.assign(u,e):u=!1}if(u){if(!i.destination)return h=!0,!0;const t=(0,r.prepareDestination)({appendParamsToQuery:!0,destination:i.destination,params:u,query:l});if(m=t.parsedDestination,e=t.newUrl,Object.assign(l,t.parsedDestination.query),g=(0,n.removeTrailingSlash)((0,o.normalizeLocalePath)((0,a.removeBasePath)(e),f).pathname),s.includes(g))return p=!0,d=g,!0;if(d=c(g),d!==e&&s.includes(d))return p=!0,!0}};let v=!1;for(let e=0;e<u.beforeFiles.length;e++)y(u.beforeFiles[e]);if(p=s.includes(g),!p){if(!v)for(let e=0;e<u.afterFiles.length;e++)if(y(u.afterFiles[e])){v=!0;break}if(v||(d=c(g),p=s.includes(d),v=p),!v)for(let e=0;e<u.fallback.length;e++)if(y(u.fallback[e])){v=!0;break}}return{asPath:e,parsedAs:m,matchedPage:p,resolvedHref:d,externalDest:h}}}(Do)),Do}var Pa,Oa={};function Ta(){return Pa||(Pa=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const t=To();function r(e){let{re:r,groups:n}=e;return e=>{const o=r.exec(e);if(!o)return!1;const a=e=>{try{return decodeURIComponent(e)}catch(e){throw new t.DecodeError("failed to decode param")}},i={};return Object.keys(n).forEach((e=>{const t=n[e],r=o[t.pos];void 0!==r&&(i[e]=~r.indexOf("/")?r.split("/").map((e=>a(e))):t.repeat?[a(r)]:a(r))})),i}}}(Oa)),Oa}var Ca,Na={};function ka(){return Ca||(Ca=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(e,{getRouteRegex:function(){return u},getNamedRouteRegex:function(){return f},getNamedMiddlewareRegex:function(){return d}});const t=ta(),r=Ho(),n=Dn(),o="nxtP",a="nxtI";function i(e){const t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));const r=e.startsWith("...");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}function s(e){const o=(0,n.removeTrailingSlash)(e).slice(1).split("/"),a={};let s=1;return{parameterizedRoute:o.map((e=>{const n=t.INTERCEPTION_ROUTE_MARKERS.find((t=>e.startsWith(t))),o=e.match(/\[((?:\[.*\])|.+)\]/);if(n&&o){const{key:e,optional:t,repeat:u}=i(o[1]);return a[e]={pos:s++,repeat:u,optional:t},"/"+(0,r.escapeStringRegexp)(n)+"([^/]+?)"}if(o){const{key:e,repeat:t,optional:r}=i(o[1]);return a[e]={pos:s++,repeat:t,optional:r},t?r?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}return"/"+(0,r.escapeStringRegexp)(e)})).join(""),groups:a}}function u(e){const{parameterizedRoute:t,groups:r}=s(e);return{re:new RegExp("^"+t+"(?:/)?$"),groups:r}}function l(e){let{getSafeRouteKey:t,segment:r,routeKeys:n,keyPrefix:o}=e;const{key:a,optional:s,repeat:u}=i(r);let l=a.replace(/\W/g,"");o&&(l=""+o+l);let c=!1;return(0===l.length||l.length>30)&&(c=!0),isNaN(parseInt(l.slice(0,1)))||(c=!0),c&&(l=t()),n[l]=o?""+o+a:""+a,u?s?"(?:/(?<"+l+">.+?))?":"/(?<"+l+">.+?)":"/(?<"+l+">[^/]+?)"}function c(e,i){const s=(0,n.removeTrailingSlash)(e).slice(1).split("/"),u=function(){let e=0;return()=>{let t="",r=++e;for(;r>0;)t+=String.fromCharCode(97+(r-1)%26),r=Math.floor((r-1)/26);return t}}(),c={};return{namedParameterizedRoute:s.map((e=>{const n=t.INTERCEPTION_ROUTE_MARKERS.some((t=>e.startsWith(t))),s=e.match(/\[((?:\[.*\])|.+)\]/);return n&&s?l({getSafeRouteKey:u,segment:s[1],routeKeys:c,keyPrefix:i?a:void 0}):s?l({getSafeRouteKey:u,segment:s[1],routeKeys:c,keyPrefix:i?o:void 0}):"/"+(0,r.escapeStringRegexp)(e)})).join(""),routeKeys:c}}function f(e,t){const r=c(e,t);return{...u(e),namedRegex:"^"+r.namedParameterizedRoute+"(?:/)?$",routeKeys:r.routeKeys}}function d(e,t){const{parameterizedRoute:r}=s(e),{catchAll:n=!0}=t;if("/"===r){return{namedRegex:"^/"+(n?".*":"")+"$"}}const{namedParameterizedRoute:o}=c(e,!1);return{namedRegex:"^"+o+(n?"(?:(/.*)?)":"")+"$"}}}(Na)),Na}var Ra,Aa={};function ja(){return Ra||(Ra=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(e,{formatUrl:function(){return n},urlObjectKeys:function(){return o},formatWithValidation:function(){return a}});const t=jn()._(Ao()),r=/https?|ftp|gopher|file/;function n(e){let{auth:n,hostname:o}=e,a=e.protocol||"",i=e.pathname||"",s=e.hash||"",u=e.query||"",l=!1;n=n?encodeURIComponent(n).replace(/%3A/i,":")+"@":"",e.host?l=n+e.host:o&&(l=n+(~o.indexOf(":")?"["+o+"]":o),e.port&&(l+=":"+e.port)),u&&"object"==typeof u&&(u=String(t.urlQueryToSearchParams(u)));let c=e.search||u&&"?"+u||"";return a&&!a.endsWith(":")&&(a+=":"),e.slashes||(!a||r.test(a))&&!1!==l?(l="//"+(l||""),i&&"/"!==i[0]&&(i="/"+i)):l||(l=""),s&&"#"!==s[0]&&(s="#"+s),c&&"?"!==c[0]&&(c="?"+c),i=i.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),""+a+l+i+c+s}const o=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function a(e){return"development"===process.env.NODE_ENV&&null!==e&&"object"==typeof e&&Object.keys(e).forEach((e=>{o.includes(e)||console.warn("Unknown key passed via urlObject into url.format: "+e)})),n(e)}}(Aa)),Aa}var Ia,Ma,Da={exports:{}},La={};function Fa(){return Ia||(Ia=1,function(e){function t(e,t,r){if(e){r&&(r=r.toLowerCase());for(const a of e){var n,o;if(t===(null==(n=a.domain)?void 0:n.split(":")[0].toLowerCase())||r===a.defaultLocale.toLowerCase()||(null==(o=a.locales)?void 0:o.some((e=>e.toLowerCase()===r))))return a}}}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}})}(La)),La}var $a,Ua={exports:{}},Ba={exports:{}};function Wa(){return $a||($a=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return o}});const r=Dn(),n=wa(),o=e=>{if(!e.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return e;const{pathname:t,query:o,hash:a}=(0,n.parsePath)(e);return process.env.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(t)?""+(0,r.removeTrailingSlash)(t)+o+a:t.endsWith("/")?""+t+o+a:t+"/"+o+a:""+(0,r.removeTrailingSlash)(t)+o+a};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Ba,Ba.exports)),Ba.exports}var Ha,za,qa,Va={},Xa={};function Ya(){return Ha||(Ha=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return r}});const t=wa();function r(e,r){if(!e.startsWith("/")||!r)return e;const{pathname:n,query:o,hash:a}=(0,t.parsePath)(e);return""+r+n+o+a}}(Xa)),Xa}function Ga(){return za||(za=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return n}});const t=Ya(),r=_a();function n(e,n,o,a){if(!n||n===o)return e;const i=e.toLowerCase();if(!a){if((0,r.pathHasPrefix)(i,"/api"))return e;if((0,r.pathHasPrefix)(i,"/"+n.toLowerCase()))return e}return(0,t.addPathPrefix)(e,"/"+n)}}(Va)),Va}var Ka,Ja={exports:{}};var Qa,Za={exports:{}};var ei,ti={exports:{}},ri={};function ni(){return ei||(ei=1,function(e){function t(e,t){const r={};return Object.keys(e).forEach((n=>{t.includes(n)||(r[n]=e[n])})),r}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return t}})}(ri)),ri}var oi,ai={};function ii(){return oi||(oi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return n}});const t=To(),r=Ea();function n(e){if(!(0,t.isAbsoluteUrl)(e))return!0;try{const n=(0,t.getLocationOrigin)(),o=new URL(e,n);return o.origin===n&&(0,r.hasBasePath)(o.pathname)}catch(e){return!1}}}(ai)),ai}var si,ui,li={};function ci(){return si||(si=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return n}});const t=Ta(),r=ka();function n(e,n,o){let a="";const i=(0,r.getRouteRegex)(e),s=i.groups,u=(n!==e?(0,t.getRouteMatcher)(i)(n):"")||o;a=e;const l=Object.keys(s);return l.every((e=>{let t=u[e]||"";const{repeat:r,optional:n}=s[e];let o="["+(r?"...":"")+e+"]";return n&&(o=(t?"":"/")+"["+o+"]"),r&&!Array.isArray(t)&&(t=[t]),(n||e in u)&&(a=a.replace(o,r?t.map((e=>encodeURIComponent(e))).join("/"):encodeURIComponent(t))||"/")}))||(a=""),{params:l,result:a}}}(li)),li}var fi,di={};var pi,hi,mi={},gi={};function yi(){return hi||(hi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getNextPathnameInfo",{enumerable:!0,get:function(){return o}});const t=Eo(),r=(pi||(pi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"removePathPrefix",{enumerable:!0,get:function(){return r}});const t=_a();function r(e,r){if(!(0,t.pathHasPrefix)(e,r))return e;const n=e.slice(r.length);return n.startsWith("/")?n:"/"+n}}(gi)),gi),n=_a();function o(e,o){var a;const{basePath:i,i18n:s,trailingSlash:u}=null!=(a=o.nextConfig)?a:{},l={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):u};i&&(0,n.pathHasPrefix)(l.pathname,i)&&(l.pathname=(0,r.removePathPrefix)(l.pathname,i),l.basePath=i);let c=l.pathname;if(l.pathname.startsWith("/_next/data/")&&l.pathname.endsWith(".json")){const e=l.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/"),t=e[0];l.buildId=t,c="index"!==e[1]?"/"+e.slice(1).join("/"):"/",!0===o.parseData&&(l.pathname=c)}if(s){let e=o.i18nProvider?o.i18nProvider.analyze(l.pathname):(0,t.normalizeLocalePath)(l.pathname,s.locales);var f;l.locale=e.detectedLocale,l.pathname=null!=(f=e.pathname)?f:l.pathname,!e.detectedLocale&&l.buildId&&(e=o.i18nProvider?o.i18nProvider.analyze(c):(0,t.normalizeLocalePath)(c,s.locales),e.detectedLocale&&(l.locale=e.detectedLocale))}return l}}(mi)),mi}var vi,bi,wi={},_i={};function Ei(){return bi||(bi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"formatNextPathnameInfo",{enumerable:!0,get:function(){return a}});const t=Dn(),r=Ya(),n=(vi||(vi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathSuffix",{enumerable:!0,get:function(){return r}});const t=wa();function r(e,r){if(!e.startsWith("/")||!r)return e;const{pathname:n,query:o,hash:a}=(0,t.parsePath)(e);return""+n+r+o+a}}(_i)),_i),o=Ga();function a(e){let a=(0,o.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return!e.buildId&&e.trailingSlash||(a=(0,t.removeTrailingSlash)(a)),e.buildId&&(a=(0,n.addPathSuffix)((0,r.addPathPrefix)(a,"/_next/data/"+e.buildId),"/"===e.pathname?"index.json":".json")),a=(0,r.addPathPrefix)(a,e.basePath),!e.buildId&&e.trailingSlash?a.endsWith("/")?a:(0,n.addPathSuffix)(a,"/"):(0,t.removeTrailingSlash)(a)}}(wi)),wi}var xi,Si={};var Pi,Oi={};var Ti,Ci={};var Ni,ki={exports:{}},Ri={};var Ai,ji,Ii={};
|
|
28
|
+
/**
|
|
29
|
+
* @license React
|
|
30
|
+
* react-is.development.js
|
|
31
|
+
*
|
|
32
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
33
|
+
*
|
|
34
|
+
* This source code is licensed under the MIT license found in the
|
|
35
|
+
* LICENSE file in the root directory of this source tree.
|
|
36
|
+
*/function Mi(){return ji||(ji=1,"production"===process.env.NODE_ENV?ki.exports=function(){if(Ni)return Ri;Ni=1;var e,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case n:case a:case o:case c:case f:return e;default:switch(e=e&&e.$$typeof){case u:case s:case l:case p:case d:case i:return e;default:return h}}case r:return h}}}return e=Symbol.for("react.module.reference"),Ri.ContextConsumer=s,Ri.ContextProvider=i,Ri.Element=t,Ri.ForwardRef=l,Ri.Fragment=n,Ri.Lazy=p,Ri.Memo=d,Ri.Portal=r,Ri.Profiler=a,Ri.StrictMode=o,Ri.Suspense=c,Ri.SuspenseList=f,Ri.isAsyncMode=function(){return!1},Ri.isConcurrentMode=function(){return!1},Ri.isContextConsumer=function(e){return m(e)===s},Ri.isContextProvider=function(e){return m(e)===i},Ri.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Ri.isForwardRef=function(e){return m(e)===l},Ri.isFragment=function(e){return m(e)===n},Ri.isLazy=function(e){return m(e)===p},Ri.isMemo=function(e){return m(e)===d},Ri.isPortal=function(e){return m(e)===r},Ri.isProfiler=function(e){return m(e)===a},Ri.isStrictMode=function(e){return m(e)===o},Ri.isSuspense=function(e){return m(e)===c},Ri.isSuspenseList=function(e){return m(e)===f},Ri.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===a||t===o||t===c||t===f||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===d||t.$$typeof===i||t.$$typeof===s||t.$$typeof===l||t.$$typeof===e||void 0!==t.getModuleId)},Ri.typeOf=m,Ri}():ki.exports=(Ai||(Ai=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:var m=e.type;switch(m){case n:case a:case o:case c:case f:return m;default:var g=m&&m.$$typeof;switch(g){case u:case s:case l:case p:case d:case i:return g;default:return h}}case r:return h}}}e=Symbol.for("react.module.reference");var g=s,y=i,v=t,b=l,w=n,_=p,E=d,x=r,S=a,P=o,O=c,T=f,C=!1,N=!1;Ii.ContextConsumer=g,Ii.ContextProvider=y,Ii.Element=v,Ii.ForwardRef=b,Ii.Fragment=w,Ii.Lazy=_,Ii.Memo=E,Ii.Portal=x,Ii.Profiler=S,Ii.StrictMode=P,Ii.Suspense=O,Ii.SuspenseList=T,Ii.isAsyncMode=function(e){return C||(C=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},Ii.isConcurrentMode=function(e){return N||(N=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},Ii.isContextConsumer=function(e){return m(e)===s},Ii.isContextProvider=function(e){return m(e)===i},Ii.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Ii.isForwardRef=function(e){return m(e)===l},Ii.isFragment=function(e){return m(e)===n},Ii.isLazy=function(e){return m(e)===p},Ii.isMemo=function(e){return m(e)===d},Ii.isPortal=function(e){return m(e)===r},Ii.isProfiler=function(e){return m(e)===a},Ii.isStrictMode=function(e){return m(e)===o},Ii.isSuspense=function(e){return m(e)===c},Ii.isSuspenseList=function(e){return m(e)===f},Ii.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===a||t===o||t===c||t===f||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===d||t.$$typeof===i||t.$$typeof===s||t.$$typeof===l||t.$$typeof===e||void 0!==t.getModuleId)},Ii.typeOf=m}()),Ii)),ki.exports}var Di,Li,Fi,$i={},Ui={exports:{}};function Bi(){return Di||(Di=1,(()=>{var e={154:(e,t,r)=>{var n=r(781),o=["write","end","destroy"],a=["resume","pause"],i=["data","close"],s=Array.prototype.slice;function u(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t(e[r],r)}e.exports=function(e,t){var r=new n,l=!1;return u(o,c),u(a,f),u(i,d),t.on("end",p),e.on("drain",(function(){r.emit("drain")})),e.on("error",h),t.on("error",h),r.writable=e.writable,r.readable=t.readable,r;function c(t){r[t]=function(){return e[t].apply(e,arguments)}}function f(e){r[e]=function(){r.emit(e);var n=t[e];if(n)return n.apply(t,arguments);t.emit(e)}}function d(e){t.on(e,(function(){var t=s.call(arguments);t.unshift(e),r.emit.apply(r,t)}))}function p(){if(!l){l=!0;var e=s.call(arguments);e.unshift("end"),r.emit.apply(r,e)}}function h(e){r.emit("error",e)}}},349:(e,t,r)=>{const n=r(147),o=r(781),a=r(796),i=r(154),s=r(530),u=e=>Object.assign({level:9},e);e.exports=(e,t)=>e?s(a.gzip)(e,u(t)).then((e=>e.length)).catch((e=>0)):Promise.resolve(0),e.exports.sync=(e,t)=>a.gzipSync(e,u(t)).length,e.exports.stream=e=>{const t=new o.PassThrough,r=new o.PassThrough,n=i(t,r);let s=0;const l=a.createGzip(u(e)).on("data",(e=>{s+=e.length})).on("error",(()=>{n.gzipSize=0})).on("end",(()=>{n.gzipSize=s,n.emit("gzip-size",s),r.end()}));return t.pipe(l),t.pipe(r,{end:!1}),n},e.exports.file=(t,r)=>new Promise(((o,a)=>{const i=n.createReadStream(t);i.on("error",a);const s=i.pipe(e.exports.stream(r));s.on("error",a),s.on("gzip-size",o)})),e.exports.fileSync=(t,r)=>e.exports.sync(n.readFileSync(t),r)},530:e=>{const t=(e,t)=>function(...r){return new(0,t.promiseModule)(((n,o)=>{t.multiArgs?r.push(((...e)=>{t.errorFirst?e[0]?o(e):(e.shift(),n(e)):n(e)})):t.errorFirst?r.push(((e,t)=>{e?o(e):n(t)})):r.push(n),e.apply(this,r)}))};e.exports=(e,r)=>{r=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},r);const n=typeof e;if(null===e||"object"!==n&&"function"!==n)throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${null===e?"null":n}\``);const o=e=>{const t=t=>"string"==typeof t?e===t:t.test(e);return r.include?r.include.some(t):!r.exclude.some(t)};let a;a="function"===n?function(...n){return r.excludeMain?e(...n):t(e,r).apply(this,n)}:Object.create(Object.getPrototypeOf(e));for(const n in e){const i=e[n];a[n]="function"==typeof i&&o(n)?t(i,r):i}return a}},147:e=>{e.exports=r},781:e=>{e.exports=n},796:e=>{e.exports=o}},t={};function a(r){var n=t[r];if(void 0!==n)return n.exports;var o=t[r]={exports:{}},i=!0;try{e[r](o,o.exports,a),i=!1}finally{i&&delete t[r]}return o.exports}void 0!==a&&(a.ab=__dirname+"/");var i=a(349);Ui.exports=i})()),Ui.exports}function Wi(){return Li||(Li=1,function(e){function t(e){let t=0;for(let r=0;r<e.length;r++){const n=e.charCodeAt(r);t=Math.imul(t^n,1540483477),t^=t>>>13,t=Math.imul(t,1540483477)}return t>>>0}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"BloomFilter",{enumerable:!0,get:function(){return r}});class r{static from(e,t){void 0===t&&(t=.01);const n=new r(e.length,t);for(const t of e)n.add(t);return n}export(){const e={numItems:this.numItems,errorRate:this.errorRate,numBits:this.numBits,numHashes:this.numHashes,bitArray:this.bitArray};if("undefined"==typeof window&&"edge"!==process.env.NEXT_RUNTIME&&this.errorRate<.01){const t=JSON.stringify(e),r=Bi().sync(t);r>1024&&console.warn("Creating filter with error rate less than 1% (0.01) can increase the size dramatically proceed with caution. Received error rate "+this.errorRate+" resulted in size "+t.length+" bytes, "+r+" bytes (gzip)")}return e}import(e){this.numItems=e.numItems,this.errorRate=e.errorRate,this.numBits=e.numBits,this.numHashes=e.numHashes,this.bitArray=e.bitArray}add(e){this.getHashValues(e).forEach((e=>{this.bitArray[e]=1}))}contains(e){return this.getHashValues(e).every((e=>this.bitArray[e]))}getHashValues(e){const r=[];for(let n=1;n<=this.numHashes;n++){const o=t(""+e+n)%this.numBits;r.push(o)}return r}constructor(e,t){this.numItems=e,this.errorRate=t,this.numBits=Math.ceil(-e*Math.log(t)/(Math.log(2)*Math.log(2))),this.numHashes=Math.ceil(this.numBits/e*Math.log(2)),this.bitArray=new Array(this.numBits).fill(0)}}}($i)),$i}function Hi(){return Fi||(Fi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(e,{default:function(){return Y},matchesMiddleware:function(){return M},createKey:function(){return q}});const t=Nn,r=jn(),n=Dn(),o=Xn(),a=eo(),i=r._(ao()),s=bo(),u=Eo(),l=t._((xo||(xo=1,function(e){function t(){const e=Object.create(null);return{on(t,r){(e[t]||(e[t]=[])).push(r)},off(t,r){e[t]&&e[t].splice(e[t].indexOf(r)>>>0,1)},emit(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];(e[t]||[]).slice().map((e=>{e(...n)}))}}}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}})}(So)),So)),c=To(),f=ho(),d=jo(),p=t._(Sa()),h=Ta(),m=ka(),g=ja(),y=(Ma||(Ma=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return r}});const r=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(process.env.__NEXT_I18N_SUPPORT)return Fa().detectDomainLocale(...t)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Da,Da.exports)),Da.exports),v=wa(),b=(qa||(qa=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const r=Wa(),n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return process.env.__NEXT_I18N_SUPPORT?(0,r.normalizePathTrailingSlash)(Ga().addLocale(e,...n)):e};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Ua,Ua.exports)),Ua.exports),w=(Ka||(Ka=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeLocale",{enumerable:!0,get:function(){return n}});const r=wa();function n(e,t){if(process.env.__NEXT_I18N_SUPPORT){const{pathname:n}=(0,r.parsePath)(e),o=n.toLowerCase(),a=null==t?void 0:t.toLowerCase();return t&&(o.startsWith("/"+a+"/")||o==="/"+a)?(n.length===t.length+1?"/":"")+e.slice(t.length+1):e}return e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Ja,Ja.exports)),Ja.exports),_=xa(),E=(Qa||(Qa=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return a}});const r=Ya(),n=Wa(),o=process.env.__NEXT_ROUTER_BASEPATH||"";function a(e,t){return(0,n.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!t?e:(0,r.addPathPrefix)(e,o))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Za,Za.exports)),Za.exports),x=Ea(),S=(ui||(ui=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return c}});const r=Ao(),n=ja(),o=ni(),a=To(),i=Wa(),s=ii(),u=mo(),l=ci();function c(e,t,c){let f,d="string"==typeof t?t:(0,n.formatWithValidation)(t);const p=d.match(/^[a-zA-Z]{1,}:\/\//),h=p?d.slice(p[0].length):d;if((h.split("?")[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+d+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const t=(0,a.normalizeRepeatedSlashes)(h);d=(p?p[0]:"")+t}if(!(0,s.isLocalURL)(d))return c?[d]:d;try{f=new URL(d.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){f=new URL("/","http://n")}try{const e=new URL(d,f);e.pathname=(0,i.normalizePathTrailingSlash)(e.pathname);let t="";if((0,u.isDynamicRoute)(e.pathname)&&e.searchParams&&c){const a=(0,r.searchParamsToUrlQuery)(e.searchParams),{result:i,params:s}=(0,l.interpolateAs)(e.pathname,e.pathname,a);i&&(t=(0,n.formatWithValidation)({pathname:i,hash:e.hash,query:(0,o.omit)(a,s)}))}const a=e.origin===f.origin?e.href.slice(e.origin.length):e.href;return c?[a,t||a]:a}catch(e){return c?[d]:d}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(ti,ti.exports)),ti.exports),P=(fi||(fi=1,function(e){function t(e){return"/api"===e||Boolean(null==e?void 0:e.startsWith("/api/"))}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isAPIRoute",{enumerable:!0,get:function(){return t}})}(di)),di),O=yi(),T=Ei(),C=(xi||(xi=1,function(e){function t(e,t){const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n=r.length;n--;){const o=r[n];if("query"===o){const r=Object.keys(e.query);if(r.length!==Object.keys(t.query).length)return!1;for(let n=r.length;n--;){const o=r[n];if(!t.query.hasOwnProperty(o)||e.query[o]!==t.query[o])return!1}}else if(!t.hasOwnProperty(o)||e[o]!==t[o])return!1}return!0}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"compareRouterStates",{enumerable:!0,get:function(){return t}})}(Si)),Si),N=ii(),k=(Pi||(Pi=1,function(e){function t(e){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(e)}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isBot",{enumerable:!0,get:function(){return t}})}(Oi)),Oi),R=ni(),A=ci(),j=(Ti||(Ti=1,function(e){function t(e,t){if(void 0===t&&(t={}),t.onlyHashChange)return void e();const r=document.documentElement,n=r.style.scrollBehavior;r.style.scrollBehavior="auto",t.dontForceLayout||r.getClientRects(),e(),r.style.scrollBehavior=n}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"handleSmoothScroll",{enumerable:!0,get:function(){return t}})}(Ci)),Ci);function I(){return Object.assign(new Error("Route Cancelled"),{cancelled:!0})}async function M(e){const t=await Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;const{pathname:r}=(0,v.parsePath)(e.asPath),n=(0,x.hasBasePath)(r)?(0,_.removeBasePath)(r):r,o=(0,E.addBasePath)((0,b.addLocale)(n,e.locale));return t.some((e=>new RegExp(e.regexp).test(o)))}function D(e){const t=(0,c.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function L(e,t,r){let[n,o]=(0,S.resolveHref)(e,t,!0);const a=(0,c.getLocationOrigin)(),i=n.startsWith(a),s=o&&o.startsWith(a);n=D(n),o=o?D(o):o;const u=i?n:(0,E.addBasePath)(n),l=r?D((0,S.resolveHref)(e,r)):o||n;return{url:u,as:s?l:(0,E.addBasePath)(l)}}function F(e,t){const r=(0,n.removeTrailingSlash)((0,s.denormalizePagePath)(e));return"/404"===r||"/_error"===r?e:(t.includes(r)||t.some((t=>{if((0,f.isDynamicRoute)(t)&&(0,m.getRouteRegex)(t).re.test(r))return e=t,!0})),(0,n.removeTrailingSlash)(e))}async function $(e){if(!await M(e)||!e.fetchData)return null;try{const t=await e.fetchData(),r=await function(e,t,r){const a={basePath:r.router.basePath,i18n:{locales:r.router.locales},trailingSlash:Boolean(process.env.__NEXT_TRAILING_SLASH)},i=t.headers.get("x-nextjs-rewrite");let s=i||t.headers.get("x-nextjs-matched-path");const l=t.headers.get("x-matched-path");if(!l||s||l.includes("__next_data_catchall")||l.includes("/_error")||l.includes("/404")||(s=l),s){if(s.startsWith("/")||process.env.__NEXT_EXTERNAL_MIDDLEWARE_REWRITE_RESOLVE){const t=(0,d.parseRelativeUrl)(s),l=(0,O.getNextPathnameInfo)(t.pathname,{nextConfig:a,parseData:!0});let c=(0,n.removeTrailingSlash)(l.pathname);return Promise.all([r.router.pageLoader.getPageList(),(0,o.getClientBuildManifest)()]).then((n=>{let[o,{__rewrites:s}]=n,g=(0,b.addLocale)(l.pathname,l.locale);if((0,f.isDynamicRoute)(g)||!i&&o.includes((0,u.normalizeLocalePath)((0,_.removeBasePath)(g),r.router.locales).pathname)){const r=(0,O.getNextPathnameInfo)((0,d.parseRelativeUrl)(e).pathname,{nextConfig:process.env.__NEXT_HAS_REWRITES?void 0:a,parseData:!0});g=(0,E.addBasePath)(r.pathname),t.pathname=g}if(process.env.__NEXT_HAS_REWRITES){const e=(0,p.default)(g,o,s,t.query,(e=>F(e,o)),r.router.locales);e.matchedPage&&(t.pathname=e.parsedAs.pathname,g=t.pathname,Object.assign(t.query,e.parsedAs.query))}else if(!o.includes(c)){const e=F(c,o);e!==c&&(c=e)}const y=o.includes(c)?c:F((0,u.normalizeLocalePath)((0,_.removeBasePath)(t.pathname),r.router.locales).pathname,o);if((0,f.isDynamicRoute)(y)){const e=(0,h.getRouteMatcher)((0,m.getRouteRegex)(y))(g);Object.assign(t.query,e||{})}return{type:"rewrite",parsedAs:t,resolvedHref:y}}))}const t=(0,v.parsePath)(e),l=(0,T.formatNextPathnameInfo)({...(0,O.getNextPathnameInfo)(t.pathname,{nextConfig:a,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-external",destination:""+l+t.query+t.hash})}const c=t.headers.get("x-nextjs-redirect");if(c){if(c.startsWith("/")){const e=(0,v.parsePath)(c),t=(0,T.formatNextPathnameInfo)({...(0,O.getNextPathnameInfo)(e.pathname,{nextConfig:a,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-internal",newAs:""+t+e.query+e.hash,newUrl:""+t+e.query+e.hash})}return Promise.resolve({type:"redirect-external",destination:c})}return Promise.resolve({type:"next"})}(t.dataHref,t.response,e);return{dataHref:t.dataHref,json:t.json,response:t.response,text:t.text,cacheKey:t.cacheKey,effect:r}}catch(e){return null}}const U=process.env.__NEXT_SCROLL_RESTORATION&&"undefined"!=typeof window&&"scrollRestoration"in window.history&&!!function(){try{let e="__next";return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch(e){}}(),B=Symbol("SSG_DATA_NOT_FOUND");function W(e,t,r){return fetch(e,{credentials:"same-origin",method:r.method||"GET",headers:Object.assign({},r.headers,{"x-nextjs-data":"1"})}).then((n=>!n.ok&&t>1&&n.status>=500?W(e,t-1,r):n))}function H(e){try{return JSON.parse(e)}catch(e){return null}}function z(e){let{dataHref:t,inflightCache:r,isPrefetch:n,hasMiddleware:a,isServerRender:i,parseJSON:s,persistCache:u,isBackground:l,unstable_skipClientCache:c}=e;const{href:f}=new URL(t,window.location.href);var d;const p=e=>W(t,i?3:1,{headers:Object.assign({},n?{purpose:"prefetch"}:{},n&&a?{"x-middleware-prefetch":"1"}:{}),method:null!=(d=null==e?void 0:e.method)?d:"GET"}).then((r=>r.ok&&"HEAD"===(null==e?void 0:e.method)?{dataHref:t,response:r,text:"",json:{},cacheKey:f}:r.text().then((e=>{if(!r.ok){if(a&&[301,302,307,308].includes(r.status))return{dataHref:t,response:r,text:e,json:{},cacheKey:f};var n;if(404===r.status)if(null==(n=H(e))?void 0:n.notFound)return{dataHref:t,json:{notFound:B},response:r,text:e,cacheKey:f};const s=new Error("Failed to load static props");throw i||(0,o.markAssetError)(s),s}return{dataHref:t,json:s?H(e):null,response:r,text:e,cacheKey:f}})))).then((e=>(u&&"production"===process.env.NODE_ENV&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete r[f],e))).catch((e=>{throw c||delete r[f],"Failed to fetch"!==e.message&&"NetworkError when attempting to fetch resource."!==e.message&&"Load failed"!==e.message||(0,o.markAssetError)(e),e}));return c&&u?p({}).then((e=>(r[f]=Promise.resolve(e),e))):void 0!==r[f]?r[f]:r[f]=p(l?{method:"HEAD"}:{})}function q(){return Math.random().toString(36).slice(2,10)}function V(e){let{url:t,router:r}=e;if(t===(0,E.addBasePath)((0,b.addLocale)(r.asPath,r.locale)))throw new Error("Invariant: attempted to hard navigate to the same URL "+t+" "+location.href);window.location.href=t}const X=e=>{let{route:t,router:r}=e,n=!1;const o=r.clc=()=>{n=!0};return()=>{if(n){const e=new Error('Abort fetching component for route: "'+t+'"');throw e.cancelled=!0,e}o===r.clc&&(r.clc=null)}};class Y{reload(){window.location.reload()}back(){window.history.back()}forward(){window.history.forward()}push(e,t,r){if(void 0===r&&(r={}),process.env.__NEXT_SCROLL_RESTORATION&&U)try{sessionStorage.setItem("__next_scroll_"+this._key,JSON.stringify({x:self.pageXOffset,y:self.pageYOffset}))}catch(e){}return({url:e,as:t}=L(this,e,t)),this.change("pushState",e,t,r)}replace(e,t,r){return void 0===r&&(r={}),({url:e,as:t}=L(this,e,t)),this.change("replaceState",e,t,r)}async _bfl(e,t,r,o){if(process.env.__NEXT_CLIENT_ROUTER_FILTER_ENABLED){let u=!1,l=!1;for(const c of[e,t])if(c){const t=(0,n.removeTrailingSlash)(new URL(c,"http://n").pathname),f=(0,E.addBasePath)((0,b.addLocale)(t,r||this.locale));if(t!==(0,n.removeTrailingSlash)(new URL(this.asPath,"http://n").pathname)){var a,i;u=u||!!(null==(a=this._bfl_s)?void 0:a.contains(t))||!!(null==(i=this._bfl_s)?void 0:i.contains(f));for(const e of[t,f]){const t=e.split("/");for(let e=0;!l&&e<t.length+1;e++){var s;const r=t.slice(0,e).join("/");if(r&&(null==(s=this._bfl_d)?void 0:s.contains(r))){l=!0;break}}}if(u||l)return!!o||(V({url:(0,E.addBasePath)((0,b.addLocale)(e,r||this.locale,this.defaultLocale)),router:this}),new Promise((()=>{})))}}}return!1}async change(e,t,r,s,l){var S;if(!(0,N.isLocalURL)(t))return V({url:t,router:this}),!1;const P=1===s._h;P||s.shallow||await this._bfl(r,void 0,s.locale);let O=P||s._shouldResolveHref||(0,v.parsePath)(t).pathname===(0,v.parsePath)(r).pathname;const T={...this.state},k=!0!==this.isReady;this.isReady=!0;const j=this.isSsr;if(P||(this.isSsr=!1),P&&this.clc)return!1;const D=T.locale;if(process.env.__NEXT_I18N_SUPPORT){T.locale=!1===s.locale?this.defaultLocale:s.locale||T.locale,void 0===s.locale&&(s.locale=T.locale);const e=(0,d.parseRelativeUrl)((0,x.hasBasePath)(r)?(0,_.removeBasePath)(r):r),n=(0,u.normalizeLocalePath)(e.pathname,this.locales);n.detectedLocale&&(T.locale=n.detectedLocale,e.pathname=(0,E.addBasePath)(e.pathname),r=(0,g.formatWithValidation)(e),t=(0,E.addBasePath)((0,u.normalizeLocalePath)((0,x.hasBasePath)(t)?(0,_.removeBasePath)(t):t,this.locales).pathname));let o=!1;var $;if(process.env.__NEXT_I18N_SUPPORT)(null==($=this.locales)?void 0:$.includes(T.locale))||(e.pathname=(0,b.addLocale)(e.pathname,T.locale),V({url:(0,g.formatWithValidation)(e),router:this}),o=!0);const a=(0,y.detectDomainLocale)(this.domainLocales,void 0,T.locale);if(process.env.__NEXT_I18N_SUPPORT&&!o&&a&&this.isLocaleDomain&&self.location.hostname!==a.domain){const e=(0,_.removeBasePath)(r);V({url:"http"+(a.http?"":"s")+"://"+a.domain+(0,E.addBasePath)((T.locale===a.defaultLocale?"":"/"+T.locale)+("/"===e?"":e)||"/"),router:this}),o=!0}if(o)return new Promise((()=>{}))}c.ST&&performance.mark("routeChange");const{shallow:U=!1,scroll:W=!0}=s,H={shallow:U};this._inFlightRoute&&this.clc&&(j||Y.events.emit("routeChangeError",I(),this._inFlightRoute,H),this.clc(),this.clc=null),r=(0,E.addBasePath)((0,b.addLocale)((0,x.hasBasePath)(r)?(0,_.removeBasePath)(r):r,s.locale,this.defaultLocale));const z=(0,w.removeLocale)((0,x.hasBasePath)(r)?(0,_.removeBasePath)(r):r,T.locale);this._inFlightRoute=r;const q=D!==T.locale;if(!P&&this.onlyAHashChange(z)&&!q){T.asPath=z,Y.events.emit("hashChangeStart",r,H),this.changeState(e,t,r,{...s,scroll:!1}),W&&this.scrollToHash(z);try{await this.set(T,this.components[T.route],null)}catch(e){throw(0,i.default)(e)&&e.cancelled&&Y.events.emit("routeChangeError",e,z,H),e}return Y.events.emit("hashChangeComplete",r,H),!0}let X,G,K=(0,d.parseRelativeUrl)(t),{pathname:J,query:Q}=K;if(null==(S=this.components[J])?void 0:S.__appRouter)return V({url:r,router:this}),new Promise((()=>{}));try{[X,{__rewrites:G}]=await Promise.all([this.pageLoader.getPageList(),(0,o.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch(e){return V({url:r,router:this}),!1}this.urlIsNew(z)||q||(e="replaceState");let Z=r;J=J?(0,n.removeTrailingSlash)((0,_.removeBasePath)(J)):J;let ee=(0,n.removeTrailingSlash)(J);const te=r.startsWith("/")&&(0,d.parseRelativeUrl)(r).pathname,re=!(!te||ee===te||(0,f.isDynamicRoute)(ee)&&(0,h.getRouteMatcher)((0,m.getRouteRegex)(ee))(te)),ne=!s.shallow&&await M({asPath:r,locale:T.locale,router:this});if(P&&ne&&(O=!1),O&&"/_error"!==J)if(s._shouldResolveHref=!0,process.env.__NEXT_HAS_REWRITES&&r.startsWith("/")){const e=(0,p.default)((0,E.addBasePath)((0,b.addLocale)(z,T.locale),!0),X,G,Q,(e=>F(e,X)),this.locales);if(e.externalDest)return V({url:r,router:this}),!0;ne||(Z=e.asPath),e.matchedPage&&e.resolvedHref&&(J=e.resolvedHref,K.pathname=(0,E.addBasePath)(J),ne||(t=(0,g.formatWithValidation)(K)))}else K.pathname=F(J,X),K.pathname!==J&&(J=K.pathname,K.pathname=(0,E.addBasePath)(J),ne||(t=(0,g.formatWithValidation)(K)));if(!(0,N.isLocalURL)(r)){if("production"!==process.env.NODE_ENV)throw new Error('Invalid href: "'+t+'" and as: "'+r+'", received relative href and external as\nSee more info: https://nextjs.org/docs/messages/invalid-relative-url-external-as');return V({url:r,router:this}),!1}Z=(0,w.removeLocale)((0,_.removeBasePath)(Z),T.locale),ee=(0,n.removeTrailingSlash)(J);let oe=!1;if((0,f.isDynamicRoute)(ee)){const e=(0,d.parseRelativeUrl)(Z),n=e.pathname,o=(0,m.getRouteRegex)(ee);oe=(0,h.getRouteMatcher)(o)(n);const a=ee===n,i=a?(0,A.interpolateAs)(ee,n,Q):{};if(!oe||a&&!i.result){const e=Object.keys(o.groups).filter((e=>!Q[e]&&!o.groups[e].optional));if(e.length>0&&!ne)throw"production"!==process.env.NODE_ENV&&console.warn((a?"Interpolating href":"Mismatching `as` and `href`")+" failed to manually provide the params: "+e.join(", ")+" in the `href`'s `query`"),new Error((a?"The provided `href` ("+t+") value is missing query values ("+e.join(", ")+") to be interpolated properly. ":"The provided `as` value ("+n+") is incompatible with the `href` value ("+ee+"). ")+"Read more: https://nextjs.org/docs/messages/"+(a?"href-interpolation-failed":"incompatible-href-as"))}else a?r=(0,g.formatWithValidation)(Object.assign({},e,{pathname:i.result,query:(0,R.omit)(Q,i.params)})):Object.assign(Q,oe)}P||Y.events.emit("routeChangeStart",r,H);const ae="/404"===this.pathname||"/_error"===this.pathname;try{var ie,se,ue;let n=await this.getRouteInfo({route:ee,pathname:J,query:Q,as:r,resolvedAs:Z,routeProps:H,locale:T.locale,isPreview:T.isPreview,hasMiddleware:ne,unstable_skipClientCache:s.unstable_skipClientCache,isQueryUpdating:P&&!this.isFallback,isMiddlewareRewrite:re});if(P||s.shallow||await this._bfl(r,"resolvedAs"in n?n.resolvedAs:void 0,T.locale),"route"in n&&ne){J=n.route||ee,ee=J,H.shallow||(Q=Object.assign({},n.query||{},Q));const e=(0,x.hasBasePath)(K.pathname)?(0,_.removeBasePath)(K.pathname):K.pathname;if(oe&&J!==e&&Object.keys(oe).forEach((e=>{oe&&Q[e]===oe[e]&&delete Q[e]})),(0,f.isDynamicRoute)(J)){let e=!H.shallow&&n.resolvedAs?n.resolvedAs:(0,E.addBasePath)((0,b.addLocale)(new URL(r,location.href).pathname,T.locale),!0);if((0,x.hasBasePath)(e)&&(e=(0,_.removeBasePath)(e)),process.env.__NEXT_I18N_SUPPORT){const t=(0,u.normalizeLocalePath)(e,this.locales);T.locale=t.detectedLocale||T.locale,e=t.pathname}const t=(0,m.getRouteRegex)(J),o=(0,h.getRouteMatcher)(t)(new URL(e,location.href).pathname);o&&Object.assign(Q,o)}}if("type"in n)return"redirect-internal"===n.type?this.change(e,n.newUrl,n.newAs,s):(V({url:n.destination,router:this}),new Promise((()=>{})));const o=n.Component;if(o&&o.unstable_scriptLoader){[].concat(o.unstable_scriptLoader()).forEach((e=>{(0,a.handleClientScriptLoad)(e.props)}))}if((n.__N_SSG||n.__N_SSP)&&n.props){if(n.props.pageProps&&n.props.pageProps.__N_REDIRECT){s.locale=!1;const t=n.props.pageProps.__N_REDIRECT;if(t.startsWith("/")&&!1!==n.props.pageProps.__N_REDIRECT_BASE_PATH){const r=(0,d.parseRelativeUrl)(t);r.pathname=F(r.pathname,X);const{url:n,as:o}=L(this,t,t);return this.change(e,n,o,s)}return V({url:t,router:this}),new Promise((()=>{}))}if(T.isPreview=!!n.props.__N_PREVIEW,n.props.notFound===B){let e;try{await this.fetchComponent("/404"),e="/404"}catch(t){e="/_error"}if(n=await this.getRouteInfo({route:e,pathname:e,query:Q,as:r,resolvedAs:Z,routeProps:{shallow:!1},locale:T.locale,isPreview:T.isPreview,isNotFound:!0}),"type"in n)throw new Error("Unexpected middleware effect on /404")}}var le;P&&"/_error"===this.pathname&&500===(null==(se=self.__NEXT_DATA__.props)||null==(ie=se.pageProps)?void 0:ie.statusCode)&&(null==(ue=n.props)?void 0:ue.pageProps)&&(n.props.pageProps.statusCode=500);const c=s.shallow&&T.route===(null!=(le=n.route)?le:ee);var ce;const p=null!=(ce=s.scroll)?ce:!P&&!c,g=null!=l?l:p?{x:0,y:0}:null,y={...T,route:ee,pathname:J,query:Q,asPath:z,isFallback:!1};if(P&&ae){var fe,de,pe;if(n=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:Q,as:r,resolvedAs:Z,routeProps:{shallow:!1},locale:T.locale,isPreview:T.isPreview,isQueryUpdating:P&&!this.isFallback}),"type"in n)throw new Error("Unexpected middleware effect on "+this.pathname);"/_error"===this.pathname&&500===(null==(de=self.__NEXT_DATA__.props)||null==(fe=de.pageProps)?void 0:fe.statusCode)&&(null==(pe=n.props)?void 0:pe.pageProps)&&(n.props.pageProps.statusCode=500);try{await this.set(y,n,g)}catch(e){throw(0,i.default)(e)&&e.cancelled&&Y.events.emit("routeChangeError",e,z,H),e}return!0}Y.events.emit("beforeHistoryChange",r,H),this.changeState(e,t,r,s);if(!(P&&!g&&!k&&!q&&(0,C.compareRouterStates)(y,this.state))){try{await this.set(y,n,g)}catch(e){if(!e.cancelled)throw e;n.error=n.error||e}if(n.error)throw P||Y.events.emit("routeChangeError",n.error,z,H),n.error;process.env.__NEXT_I18N_SUPPORT&&T.locale&&(document.documentElement.lang=T.locale),P||Y.events.emit("routeChangeComplete",r,H);p&&/#.+$/.test(r)&&this.scrollToHash(r)}return!0}catch(e){if((0,i.default)(e)&&e.cancelled)return!1;throw e}}changeState(e,t,r,n){if(void 0===n&&(n={}),"production"!==process.env.NODE_ENV){if(void 0===window.history)return void console.error("Warning: window.history is not available.");if(void 0===window.history[e])return void console.error("Warning: window.history."+e+" is not available")}"pushState"===e&&(0,c.getURL)()===r||(this._shallow=n.shallow,window.history[e]({url:t,as:r,options:n,__N:!0,key:this._key="pushState"!==e?this._key:q()},"",r))}async handleRouteInfoError(e,t,r,n,a,s){if(console.error(e),e.cancelled)throw e;if((0,o.isAssetError)(e)||s)throw Y.events.emit("routeChangeError",e,n,a),V({url:n,router:this}),I();try{let n;const{page:o,styleSheets:a}=await this.fetchComponent("/_error"),i={props:n,Component:o,styleSheets:a,err:e,error:e};if(!i.props)try{i.props=await this.getInitialProps(o,{err:e,pathname:t,query:r})}catch(e){console.error("Error in error page `getInitialProps`: ",e),i.props={}}return i}catch(e){return this.handleRouteInfoError((0,i.default)(e)?e:new Error(e+""),t,r,n,a,!0)}}async getRouteInfo(e){let{route:t,pathname:r,query:o,as:a,resolvedAs:s,routeProps:l,locale:c,hasMiddleware:f,isPreview:d,unstable_skipClientCache:p,isQueryUpdating:h,isMiddlewareRewrite:m,isNotFound:y}=e,v=t;try{var b,w,E,x;const e=X({route:v,router:this});let t=this.components[v];if(l.shallow&&t&&this.route===v)return t;f&&(t=void 0);let i=t&&!("initial"in t)&&"development"!==process.env.NODE_ENV?t:void 0;const S=h,O={dataHref:this.pageLoader.getDataHref({href:(0,g.formatWithValidation)({pathname:r,query:o}),skipInterpolation:!0,asPath:y?"/404":s,locale:c}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:S?this.sbc:this.sdc,persistCache:!d,isPrefetch:!1,unstable_skipClientCache:p,isBackground:S};let T=h&&!m?null:await $({fetchData:()=>z(O),asPath:y?"/404":s,locale:c,router:this}).catch((e=>{if(h)return null;throw e}));if(!T||"/_error"!==r&&"/404"!==r||(T.effect=void 0),h&&(T?T.json=self.__NEXT_DATA__.props:T={json:self.__NEXT_DATA__.props}),e(),"redirect-internal"===(null==T||null==(b=T.effect)?void 0:b.type)||"redirect-external"===(null==T||null==(w=T.effect)?void 0:w.type))return T.effect;if("rewrite"===(null==T||null==(E=T.effect)?void 0:E.type)){const e=(0,n.removeTrailingSlash)(T.effect.resolvedHref),a=await this.pageLoader.getPageList();if((!h||a.includes(e))&&(v=e,r=T.effect.resolvedHref,o={...o,...T.effect.parsedAs.query},s=(0,_.removeBasePath)((0,u.normalizeLocalePath)(T.effect.parsedAs.pathname,this.locales).pathname),t=this.components[v],l.shallow&&t&&this.route===v&&!f))return{...t,route:v}}if((0,P.isAPIRoute)(v))return V({url:a,router:this}),new Promise((()=>{}));const C=i||await this.fetchComponent(v).then((e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP})));if("production"!==process.env.NODE_ENV){const{isValidElementType:e}=Mi();if(!e(C.Component))throw new Error('The default export is not a React Component in page: "'+r+'"')}const N=null==T||null==(x=T.response)?void 0:x.headers.get("x-middleware-skip"),k=C.__N_SSG||C.__N_SSP;N&&(null==T?void 0:T.dataHref)&&delete this.sdc[T.dataHref];const{props:R,cacheKey:A}=await this._getData((async()=>{if(k){if((null==T?void 0:T.json)&&!N)return{cacheKey:T.cacheKey,props:T.json};const e=(null==T?void 0:T.dataHref)?T.dataHref:this.pageLoader.getDataHref({href:(0,g.formatWithValidation)({pathname:r,query:o}),asPath:s,locale:c}),t=await z({dataHref:e,isServerRender:this.isSsr,parseJSON:!0,inflightCache:N?{}:this.sdc,persistCache:!d,isPrefetch:!1,unstable_skipClientCache:p});return{cacheKey:t.cacheKey,props:t.json||{}}}return{headers:{},props:await this.getInitialProps(C.Component,{pathname:r,query:o,asPath:a,locale:c,locales:this.locales,defaultLocale:this.defaultLocale})}}));return C.__N_SSP&&O.dataHref&&A&&delete this.sdc[A],this.isPreview||!C.__N_SSG||"development"===process.env.NODE_ENV||h||z(Object.assign({},O,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch((()=>{})),R.pageProps=Object.assign({},R.pageProps),C.props=R,C.route=v,C.query=o,C.resolvedAs=s,this.components[v]=C,C}catch(e){return this.handleRouteInfoError((0,i.getProperError)(e),r,o,a,l)}}set(e,t,r){return this.state=e,this.sub(t,this.components["/_app"].Component,r)}beforePopState(e){this._bps=e}onlyAHashChange(e){if(!this.asPath)return!1;const[t,r]=this.asPath.split("#"),[n,o]=e.split("#");return!(!o||t!==n||r!==o)||t===n&&r!==o}scrollToHash(e){const[,t=""]=e.split("#");(0,j.handleSmoothScroll)((()=>{if(""===t||"top"===t)return void window.scrollTo(0,0);const e=decodeURIComponent(t),r=document.getElementById(e);if(r)return void r.scrollIntoView();const n=document.getElementsByName(e)[0];n&&n.scrollIntoView()}),{onlyHashChange:this.onlyAHashChange(e)})}urlIsNew(e){return this.asPath!==e}async prefetch(e,t,r){if(void 0===t&&(t=e),void 0===r&&(r={}),"production"!==process.env.NODE_ENV)return;if("undefined"!=typeof window&&(0,k.isBot)(window.navigator.userAgent))return;let a=(0,d.parseRelativeUrl)(e);const i=a.pathname;let{pathname:s,query:l}=a;const c=s;if(process.env.__NEXT_I18N_SUPPORT&&!1===r.locale){s=(0,u.normalizeLocalePath)(s,this.locales).pathname,a.pathname=s,e=(0,g.formatWithValidation)(a);let n=(0,d.parseRelativeUrl)(t);const o=(0,u.normalizeLocalePath)(n.pathname,this.locales);n.pathname=o.pathname,r.locale=o.detectedLocale||this.defaultLocale,t=(0,g.formatWithValidation)(n)}const y=await this.pageLoader.getPageList();let x=t;const S=void 0!==r.locale?r.locale||void 0:this.locale,P=await M({asPath:t,locale:S,router:this});if(process.env.__NEXT_HAS_REWRITES&&t.startsWith("/")){let r;({__rewrites:r}=await(0,o.getClientBuildManifest)());const n=(0,p.default)((0,E.addBasePath)((0,b.addLocale)(t,this.locale),!0),y,r,a.query,(e=>F(e,y)),this.locales);if(n.externalDest)return;P||(x=(0,w.removeLocale)((0,_.removeBasePath)(n.asPath),this.locale)),n.matchedPage&&n.resolvedHref&&(s=n.resolvedHref,a.pathname=s,P||(e=(0,g.formatWithValidation)(a)))}a.pathname=F(a.pathname,y),(0,f.isDynamicRoute)(a.pathname)&&(s=a.pathname,a.pathname=s,Object.assign(l,(0,h.getRouteMatcher)((0,m.getRouteRegex)(a.pathname))((0,v.parsePath)(t).pathname)||{}),P||(e=(0,g.formatWithValidation)(a)));const O="strict"===process.env.__NEXT_MIDDLEWARE_PREFETCH?null:await $({fetchData:()=>z({dataHref:this.pageLoader.getDataHref({href:(0,g.formatWithValidation)({pathname:c,query:l}),skipInterpolation:!0,asPath:x,locale:S}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0}),asPath:t,locale:S,router:this});if("rewrite"===(null==O?void 0:O.effect.type)&&(a.pathname=O.effect.resolvedHref,s=O.effect.resolvedHref,l={...l,...O.effect.parsedAs.query},x=O.effect.parsedAs.pathname,e=(0,g.formatWithValidation)(a)),"redirect-external"===(null==O?void 0:O.effect.type))return;const T=(0,n.removeTrailingSlash)(s);await this._bfl(t,x,r.locale,!0)&&(this.components[i]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(T).then((t=>!!t&&z({dataHref:(null==O?void 0:O.json)?null==O?void 0:O.dataHref:this.pageLoader.getDataHref({href:e,asPath:x,locale:S}),isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0,unstable_skipClientCache:r.unstable_skipClientCache||r.priority&&!!process.env.__NEXT_OPTIMISTIC_CLIENT_CACHE}).then((()=>!1)).catch((()=>!1)))),this.pageLoader[r.priority?"loadPage":"prefetch"](T)])}async fetchComponent(e){const t=X({route:e,router:this});try{const r=await this.pageLoader.loadPage(e);return t(),r}catch(e){throw t(),e}}_getData(e){let t=!1;const r=()=>{t=!0};return this.clc=r,e().then((e=>{if(r===this.clc&&(this.clc=null),t){const e=new Error("Loading initial props cancelled");throw e.cancelled=!0,e}return e}))}_getFlightData(e){return z({dataHref:e,isServerRender:!0,parseJSON:!1,inflightCache:this.sdc,persistCache:!1,isPrefetch:!1}).then((e=>{let{text:t}=e;return{data:t}}))}getInitialProps(e,t){const{Component:r}=this.components["/_app"],n=this._wrapApp(r);return t.AppTree=n,(0,c.loadGetInitialProps)(r,{AppTree:n,Component:e,router:this,ctx:t})}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}constructor(e,t,r,{initialProps:o,pageLoader:a,App:i,wrapApp:s,Component:u,err:l,subscription:p,isFallback:h,locale:m,locales:v,defaultLocale:b,domainLocales:w,isPreview:_}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=q(),this.onPopState=e=>{const{isFirstPopStateEvent:t}=this;this.isFirstPopStateEvent=!1;const r=e.state;if(!r){const{pathname:e,query:t}=this;return void this.changeState("replaceState",(0,g.formatWithValidation)({pathname:(0,E.addBasePath)(e),query:t}),(0,c.getURL)())}if(r.__NA)return void window.location.reload();if(!r.__N)return;if(t&&this.locale===r.options.locale&&r.as===this.asPath)return;let n;const{url:o,as:a,options:i,key:s}=r;if(process.env.__NEXT_SCROLL_RESTORATION&&U&&this._key!==s){try{sessionStorage.setItem("__next_scroll_"+this._key,JSON.stringify({x:self.pageXOffset,y:self.pageYOffset}))}catch(e){}try{const e=sessionStorage.getItem("__next_scroll_"+s);n=JSON.parse(e)}catch(e){n={x:0,y:0}}}this._key=s;const{pathname:u}=(0,d.parseRelativeUrl)(o);this.isSsr&&a===(0,E.addBasePath)(this.asPath)&&u===(0,E.addBasePath)(this.pathname)||this._bps&&!this._bps(r)||this.change("replaceState",o,a,Object.assign({},i,{shallow:i.shallow&&this._shallow,locale:i.locale||this.defaultLocale,_h:0}),n)};const x=(0,n.removeTrailingSlash)(e);if(this.components={},"/_error"!==e&&(this.components[x]={Component:u,initial:!0,props:o,err:l,__N_SSG:o&&o.__N_SSG,__N_SSP:o&&o.__N_SSP}),this.components["/_app"]={Component:i,styleSheets:[]},process.env.__NEXT_CLIENT_ROUTER_FILTER_ENABLED){const{BloomFilter:e}=Wi(),t=process.env.__NEXT_CLIENT_ROUTER_S_FILTER,r=process.env.__NEXT_CLIENT_ROUTER_D_FILTER;(null==t?void 0:t.numHashes)&&(this._bfl_s=new e(t.numItems,t.errorRate),this._bfl_s.import(t)),(null==r?void 0:r.numHashes)&&(this._bfl_d=new e(r.numItems,r.errorRate),this._bfl_d.import(r))}this.events=Y.events,this.pageLoader=a;const S=(0,f.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath=process.env.__NEXT_ROUTER_BASEPATH||"",this.sub=p,this.clc=null,this._wrapApp=s,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!(!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp)&&(S||self.location.search||process.env.__NEXT_HAS_REWRITES)),process.env.__NEXT_I18N_SUPPORT&&(this.locales=v,this.defaultLocale=b,this.domainLocales=w,this.isLocaleDomain=!!(0,y.detectDomainLocale)(w,self.location.hostname)),this.state={route:x,pathname:e,query:t,asPath:S?e:r,isPreview:!!_,locale:process.env.__NEXT_I18N_SUPPORT?m:void 0,isFallback:h},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),"undefined"!=typeof window){if(!r.startsWith("//")){const n={locale:m},o=(0,c.getURL)();this._initialMatchesMiddlewarePromise=M({router:this,locale:m,asPath:o}).then((a=>(n._shouldResolveHref=r!==e,this.changeState("replaceState",a?o:(0,g.formatWithValidation)({pathname:(0,E.addBasePath)(e),query:t}),o,n),a)))}window.addEventListener("popstate",this.onPopState),process.env.__NEXT_SCROLL_RESTORATION&&U&&(window.history.scrollRestoration="manual")}}}Y.events=(0,l.default)()}(Rn)),Rn}var zi,qi={};var Vi,Xi,Yi={exports:{}};function Gi(){return Xi||(Xi=1,function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(r,{Router:function(){return a.default},default:function(){return p},withRouter:function(){return u.default},useRouter:function(){return h},createRouter:function(){return m},makePublicRouterInstance:function(){return g}});const n=Nn,o=n._(e),a=n._(Hi()),i=(zi||(zi=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return r}});const r=Nn._(e).default.createContext(null);"production"!==process.env.NODE_ENV&&(r.displayName="RouterContext")}(qi)),qi),s=n._(ao()),u=n._((Vi||(Vi=1,function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return a}});const n=Nn._(e),o=Gi();function a(e){function t(t){return n.default.createElement(e,{router:(0,o.useRouter)(),...t})}if(t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,"production"!==process.env.NODE_ENV){const r=e.displayName||e.name||"Unknown";t.displayName="withRouter("+r+")"}return t}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)}(Yi,Yi.exports)),Yi.exports)),l={router:null,readyCallbacks:[],ready(e){if(this.router)return e();"undefined"!=typeof window&&this.readyCallbacks.push(e)}},c=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],f=["push","replace","reload","back","prefetch","beforePopState"];function d(){if(!l.router){throw new Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n')}return l.router}Object.defineProperty(l,"events",{get:()=>a.default.events}),c.forEach((e=>{Object.defineProperty(l,e,{get:()=>d()[e]})})),f.forEach((e=>{l[e]=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return d()[e](...r)}})),["routeChangeStart","beforeHistoryChange","routeChangeComplete","routeChangeError","hashChangeStart","hashChangeComplete"].forEach((e=>{l.ready((()=>{a.default.events.on(e,(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];const o="on"+e.charAt(0).toUpperCase()+e.substring(1),a=l;if(a[o])try{a[o](...r)}catch(e){console.error("Error when running the Router event: "+o),console.error((0,s.default)(e)?e.message+"\n"+e.stack:e+"")}}))}))}));const p=l;function h(){const e=o.default.useContext(i.RouterContext);if(!e)throw new Error("NextRouter was not mounted. https://nextjs.org/docs/messages/next-router-not-mounted");return e}function m(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l.router=new a.default(...t),l.readyCallbacks.forEach((e=>e())),l.readyCallbacks=[],l.router}function g(e){const t=e,r={};for(const e of c)"object"!=typeof t[e]?r[e]=t[e]:r[e]=Object.assign(Array.isArray(t[e])?[]:{},t[e]);return r.events=a.default.events,f.forEach((e=>{r[e]=function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t[e](...n)}})),r}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)}(Cn,Cn.exports)),Cn.exports}Gi();var Ki=function(e,t,r){void 0===t&&(t=1),void 0===r&&(r=0);var n="[object Array]"==Object.prototype.toString.call(e)&&Ji(e)&&e.length>=t;return r>0&&(n=n&&e.length<=r),n},Ji=function(e,t){void 0===t&&(t=!1);var r=null!=e;return t&&(r=r&&Object.keys(e).length>0),r},Qi=function(e,t,r,n){return void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n=!0),null!=e&&((!n||"string"==typeof e)&&(0!=e.toString().length&&(t&&!1===isNaN(t)&&t>0?e.toString().length>=t:!(r&&!1===isNaN(r)&&r>0)||e.toString().length<=r)))};exports.ColumnInputTypes={Array:"array",Avatar:"avatar",Country:"country",Currency:"currency",Date:"date",Done:"done",ID:"id",IncoTerm:"incoterm",Link:"link",Percentage:"percentage",Price:"price",Progress:"progress",Score:"score",Status:"status",String:"string",Measure:"measure"},exports.ComponentTypes={ActionTrey:"action_trey",AsyncDropdown:"async_dropdown",Chip:"chip",ClickableLabel:"clickable_label",CollapsableDropdown:"collapsable_dropdown",Container:"container",DateRange:"date_range",Dropdown:"dropdown",Label:"label",Modal:"modal",RangeSlider:"range_slider",TableColumn:"table_column",Textfield:"textfield",StaticDropdown:"static_dropdown",dropdownOptions:"dropdownOptions",clear:"clear"},exports.DataTypes={CSV:"csv",EDI:"edi",JSON:"json",PDF:"pdf",XLS:"xls",XML:"xml"},exports.EntityTypes=Ue,exports.FilterOperatorType={Contains:"contains",NotContains:"NotContains",Equals:"equals",EndsWith:"endsWith",IsAfter:"after",IsBefore:"before",Is:"is",IsNot:"not",In:"in",NotIn:"notIn",StartsWith:"startsWith",GreaterThan:">",GreaterThanEqual:">=",LessThan:"<",LessThanEqual:"<="},exports.InputTypes={Currency:"currency",Date:"date",Link:"link",Password:"password",Percent:"percent",Text:"text"},exports.attachAuth=function(e,t){var r=j(e);return a(a({},t),{authorization:"Bearer ".concat(r)})},exports.buildCode=function e(t,r,n){void 0===r&&(r=0);var o=[],a=Object.keys(t);return a.length<1?(o.push(Ie(r,n)+"{}"),o):(o.push(Ie(r,n)+"{"),a.forEach((function(n){if("__typename"!==n)if("object"==typeof t[n]&&null!==t[n])o.push.apply(o,e(t[n],r+1,n));else{var a=Ae(t[n]);o.push(Ie(r+1,n)+a)}})),o.push(Ie(r)+"}"),o)},exports.convertToString=ke,exports.copyToClipboard=function(e){if(null!=window){var t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="absolute",t.style.left="-9999px",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}},exports.defaultHeaders=nt,exports.determineIconByEvent=function(e){var t;if(e)switch(e.type){case"charged":t="../../static/images/transactions/billing.svg";break;case"packed":t="../../static/images/transactions/system.svg";break;default:t="../../static/images/transactions/user.svg"}return t},exports.draggableTypes={ACTION:"action",ENTITY:"entity",FRAGMENT:"fragment",VARIABLES:"variables"},exports.flushAll=function(e){it(e)},exports.flushLastActivity=function(e){},exports.flushWorkspace=it,exports.formatNumberWithCommas=function(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")},exports.getCurrency=ut,exports.getFields=Ve,exports.getFieldsStringified=Xe,exports.getHeaders=function(e,t){var r=N(e)["fixefy:headers"];return r=r&&"string"==typeof r?JSON.parse(r):"object"==typeof r?r:{},a(a({},nt),{ws:at(e),cur:ut(e)._id,"last-activity":ot()})},exports.getJPart=lt,exports.getJToken=function(e,t,r){if(!1===Ji(e))return r;var n,o=!0,a=(t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"")).split(".");try{for(var i=0,s=a.length;o&&i<s;++i)n=a[i],"string"==typeof e&&(e=JSON.parse(e)),n in e?e=e[n]:(e=r,o=!1)}catch(t){e="No Value Found"}return e},exports.getLastActivity=ot,exports.getNormalizationKeyForEntity=Re,exports.getOperationObjectFromSchema=Ke,exports.getOperationTypeForMutation=Je,exports.getScoreColor=function(e){return e<=20?"bad":e<=40?"low":e<=60?"medium":e<=80?"high":"excellent"},exports.getStringValueByValueType=function(e){var t,r=e.value,n=e.name;switch(typeof r){case"boolean":t=!0===r?"YES":"NO";break;case"number":if(je(r)){t=Me(r,!1);break}var o=Number(r)===r&&r%1==0?r:r.toFixed(2);"variance"===n?(o=(100*o).toFixed(1),t="".concat(o,"%")):t=o;break;case"object":if(Array.isArray(r))t=r.join(", ");else{var a=r&&r.__typename&&r.__typename.toLowerCase();t=De(r[Re(a)])}break;case"string":t=De(r)}return t},exports.getToken=j,exports.getTypeKind=Ye,exports.getTypeName=Ge,exports.getVal=Ae,exports.getVariablesKeys=function(e){var t=e.variables,r=e.operationType;if(t&&""!=t)switch(t=JSON.parse(t),r){case qe.QUERIES:var n=t&&t.where;return n&&"object"==typeof n?Object.keys(n):void 0;case qe.MUTATIONS.CREATE:var o=t&&t.data;return o&&Array.isArray(o)?Object.keys(o[0]):"object"==typeof o?Object.keys(o):void 0;default:var a=t&&t.data||t.where;return a&&Array.isArray(a)&&a.length>0?Object.keys(a[0]):"object"==typeof a?Object.keys(a):void 0}},exports.getWorkspace=at,exports.imageLoader=function(e){var t=e.src,r=e.root,n=t.split("/");n.splice(n.length-1,1,n[n.length-1].split(/(?=[A-Z])/).join("_").toLowerCase());var o=n.join("/");return"".concat(r).concat(o)},exports.insertNewVariable=function(e){var t=e.operationName,r=e.schema,n=e.key,o=e.value,a=e._variables,i=e.action;e.ctx;var s=Ke({operationName:t,schema:r}),u=s[0];s[1],Object.keys(a).forEach((function(e){if(!u)throw"No Schema Action - '".concat(t," - Go check the schema again'");Ze({raw:u,_variables:a,upper_key:e,key:n,action:i,value:o})}))},exports.isArgMandatory=function(e){return Ye(e)===He.NON_NULL_TYPE},exports.isArrayValid=Ki,exports.isDateValid=function(e){return!1},exports.isHasKey=function(e,t){for(var r=!1,n=!0,o=0;o<e.length&&n;++o)(Object.keys(e[o])||[]).indexOf(t)>-1&&(r=!0,n=!1);return r},exports.isInServer=function(){return"undefined"==typeof window},exports.isJson=ct,exports.isNested=function(e){return Object.keys(e).some((function(t){return e[t]&&"object"==typeof e[t]}))},exports.isObjectId=function(e){if(!1===Qi(e))return!1;var t=/^[0-9a-fA-F]{24}$/.exec(e);
|
|
37
|
+
//!* get the match *!/
|
|
38
|
+
return null!=t&&Ki(t)},exports.isObjectValid=Ji,exports.isResultValid=function(e){return!1!==Ji(e)&&!!lt(e,"ok",0)},exports.isStringValid=Qi,exports.isValidTimestamp=je,exports.lineString=Ie,exports.makeString=function(e){void 0===e&&(e=5);for(var t="",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=0;n<e;n++)t+=r.charAt(Math.floor(62*Math.random()));return t},exports.nest=function(e){var t=e.items,r=Object.create(null);t.forEach((function(e){return r[e.id]=a(a({},e),{children:[]})}));var n=[];return t.forEach((function(e){e&&(e.parent?r[e.parent]&&r[e.parent].children.push(r[e.id]):n.push(r[e.id]))})),n},exports.normalizeStringBodyRaw=function(e,t){return"string"!=typeof t[e]||"body"!==e&&"raw"!==e?t[e]:JSON.parse(t[e])},exports.normalizeTimestamp=Me,exports.operationTypes=qe,exports.parseInputDataToDataObject=function(e){var t,r,n,o,i,s,u,l,c=e.key,f=e.value,d=e.parent,p=e.method,h=e.list,m=e.state;!function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}}(e,["key","value","parent","method","list","state"]);var g=m;switch(typeof f){case"string":case"number":case"boolean":case"bigint":g=a(a({},g),d?((t={})[d]=a(a({},g[d]),((r={})[p]=a(a({},g[d][p]),((n={})[c]=f,n)),r)),t):((o={})[c]=f,o));break;case"object":g=d?((i={})[d]=a(a({},g[d]),((s={})[p]=a({},g[d][p]),s)),i):a(a({},g),((u={})[c]=((l={})[p]=h?f.map((function(e){return{id:e.id}})):{id:f.id},l),u))}return g},exports.setCurrency=st,exports.setHeaders=function(e,t){R(e,"fixefy:headers",a({},"string"==typeof t?JSON.parse(t):t),{maxAge:604800,path:"/"})},exports.setJToken=function(e,t){for(var r,n,o,a,i=0;i<t.length;++i)n=t[i].json_path,Qi(n)&&(a=n,o=n.split("."),Ki(o)&&(a=o[o.length-1],o=o.splice(0,Math.max(0,o.length-1)),Ki(o)&&(n=o.join("."))),r=lt(e,n,null),(Ji(r)||!1===ct(r))&&(r=e),r[a]=t[i].value)},exports.setLastActivity=function(e){},exports.setWorkspace=function(e,t){R(e,"ws",t,{maxAge:604800,path:"/"})},exports.titleCase=De,exports.toCamelCase=Le,exports.toCamelCaseString=function(e){return Le($e(e))},exports.toCurrency=function(e){return e?e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","):e},exports.toInitials=function(e){if(""===e)return e;var t=e.match(/\b(\w)/g);return null==t?void 0:t.join("").toUpperCase()},exports.toPascalCase=Fe,exports.toWords=$e,exports.trimRuleCode=function(e){var t="string"==typeof e?e:JSON.stringify(e),r=t.substring(t.indexOf("{")+1,t.lastIndexOf("}"));return r||""},exports.useStatePromisify=function(t){var r=e.useState(t),n=r[0],o=r[1],a=e.useRef(null);e.useEffect((function(){a.current&&(a.current(n),a.current=null)}),[a.current,n]);var i=e.useCallback((function(e){return o(e),new Promise((function(e){a.current=e}))}),[o]);return[n,i]};
|
|
39
|
+
//# sourceMappingURL=index.js.map
|