adminjs
Version:
Admin panel for apps written in node.js
5 lines • 692 kB
JavaScript
var AdminJS=function(le,O,W,K,G,m,u3,Z1){"use strict";function mn(e){return e&&e.__esModule?e:{default:e}}function Y6(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if(r!=="default"){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}function Q6(e,t){return t.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(n){if(n!=="default"&&!(n in e)){var o=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return r[n]}})}})}),Object.freeze(e)}var f=mn(O),e9=mn(W),gr=Y6(m),d3=mn(u3),hn=mn(Z1);function ce(e){"@babel/helpers - typeof";return ce=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ce(e)}function t9(e,t){if(ce(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ce(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function f3(e){var t=t9(e,"string");return ce(t)==="symbol"?t:String(t)}function Ee(e,t,r){return t=f3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r9(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function q1(e,t){if(e==null)return{};var r=r9(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var tt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Re(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function n9(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var o9={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},mr,a9=(mr=o9)&&typeof mr=="object"&&"default"in mr?mr.default:mr,i9=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function p3(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},r=e.match(/<\/?([^\s]+?)[/\s>]/);if(r&&(t.name=r[1],(a9[r[1]]||e.charAt(e.length-2)==="/")&&(t.voidElement=!0),t.name.startsWith("!--"))){var n=e.indexOf("-->");return{type:"comment",comment:n!==-1?e.slice(4,n):""}}for(var o=new RegExp(i9),a=null;(a=o.exec(e))!==null;)if(a[0].trim())if(a[1]){var i=a[1].trim(),s=[i,""];i.indexOf("=")>-1&&(s=i.split("=")),t.attrs[s[0]]=s[1],o.lastIndex--}else a[2]&&(t.attrs[a[2]]=a[3].trim().substring(1,a[3].length-1));return t}var s9=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,l9=/^\s*$/,c9=Object.create(null);function C3(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(r){var n=[];for(var o in r)n.push(o+'="'+r[o]+'"');return n.length?" "+n.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(C3,"")+"</"+t.name+">";case"comment":return e+"<!--"+t.comment+"-->"}}var u9={parse:function(e,t){t||(t={}),t.components||(t.components=c9);var r,n=[],o=[],a=-1,i=!1;if(e.indexOf("<")!==0){var s=e.indexOf("<");n.push({type:"text",content:s===-1?e:e.substring(0,s)})}return e.replace(s9,function(l,c){if(i){if(l!=="</"+r.name+">")return;i=!1}var d,u=l.charAt(1)!=="/",p=l.startsWith("<!--"),C=c+l.length,g=e.charAt(C);if(p){var h=p3(l);return a<0?(n.push(h),n):((d=o[a]).children.push(h),n)}if(u&&(a++,(r=p3(l)).type==="tag"&&t.components[r.name]&&(r.type="component",i=!0),r.voidElement||i||!g||g==="<"||r.children.push({type:"text",content:e.slice(C,e.indexOf("<",C))}),a===0&&n.push(r),(d=o[a-1])&&d.children.push(r),o[a]=r),(!u||r.voidElement)&&(a>-1&&(r.voidElement||r.name===l.slice(2,-1))&&(a--,r=a===-1?n:o[a]),!i&&g!=="<"&&g)){d=a===-1?n:o[a].children;var v=e.indexOf("<",C),b=e.slice(C,v===-1?void 0:v);l9.test(b)&&(b=" "),(v>-1&&a+d.length>=0||b!==" ")&&d.push({type:"text",content:b})}}),n},stringify:function(e){return e.reduce(function(t,r){return t+C3("",r)},"")}},d9=Re(u9);function vn(){if(console&&console.warn){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];typeof r[0]=="string"&&(r[0]="react-i18next:: ".concat(r[0])),(e=console).warn.apply(e,r)}}var g3={};function bn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];typeof t[0]=="string"&&g3[t[0]]||(typeof t[0]=="string"&&(g3[t[0]]=new Date),vn.apply(void 0,t))}function m3(e,t,r){e.loadNamespaces(t,function(){if(e.isInitialized)r();else{var n=function o(){setTimeout(function(){e.off("initialized",o)},0),r()};e.on("initialized",n)}})}function f9(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=t.languages[0],o=t.options?t.options.fallbackLng:!1,a=t.languages[t.languages.length-1];if(n.toLowerCase()==="cimode")return!0;var i=function(l,c){var d=t.services.backendConnector.state["".concat(l,"|").concat(c)];return d===-1||d===2};return r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!i(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(n,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||i(n,e)&&(!o||i(a,e)))}function p9(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!t.languages||!t.languages.length)return bn("i18n.languages were undefined or empty",t.languages),!0;var n=t.options.ignoreJSONStructure!==void 0;return n?t.hasLoadedNamespace(e,{precheck:function(a,i){if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!i(a.isLanguageChangingTo,e))return!1}}):f9(e,t,r)}var C9=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,g9={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xA9","©":"\xA9","®":"\xAE","®":"\xAE","…":"\u2026","…":"\u2026","/":"/","/":"/"},m9=function(t){return g9[t]},h9=function(t){return t.replace(C9,m9)};function h3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function v3(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?h3(Object(r),!0).forEach(function(n){Ee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var K1={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:h9};function v9(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};K1=v3(v3({},K1),e)}function b3(){return K1}var y3;function b9(e){y3=e}function J1(){return y3}var y9=["format"],w9=["children","count","parent","i18nKey","context","tOptions","values","defaults","components","ns","i18n","t","shouldUnescape"];function w3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function te(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?w3(Object(r),!0).forEach(function(n){Ee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function X1(e,t){if(!e)return!1;var r=e.props?e.props.children:e.children;return t?r.length>0:!!r}function Y1(e){return e?e.props?e.props.children:e.children:[]}function E9(e){return Object.prototype.toString.call(e)!=="[object Array]"?!1:e.every(function(t){return O.isValidElement(t)})}function hr(e){return Array.isArray(e)?e:[e]}function x9(e,t){var r=te({},t);return r.props=Object.assign(e.props,t.props),r}function E3(e,t){if(!e)return"";var r="",n=hr(e),o=t.transSupportBasicHtmlNodes&&t.transKeepBasicHtmlNodesFor?t.transKeepBasicHtmlNodesFor:[];return n.forEach(function(a,i){if(typeof a=="string")r+="".concat(a);else if(O.isValidElement(a)){var s=Object.keys(a.props).length,l=o.indexOf(a.type)>-1,c=a.props.children;if(!c&&l&&s===0)r+="<".concat(a.type,"/>");else if(!c&&(!l||s!==0))r+="<".concat(i,"></").concat(i,">");else if(a.props.i18nIsDynamicList)r+="<".concat(i,"></").concat(i,">");else if(l&&s===1&&typeof c=="string")r+="<".concat(a.type,">").concat(c,"</").concat(a.type,">");else{var d=E3(c,t);r+="<".concat(i,">").concat(d,"</").concat(i,">")}}else if(a===null)vn("Trans: the passed in value is invalid - seems you passed in a null child.");else if(ce(a)==="object"){var u=a.format,p=q1(a,y9),C=Object.keys(p);if(C.length===1){var g=u?"".concat(C[0],", ").concat(u):C[0];r+="{{".concat(g,"}}")}else vn("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",a)}else vn("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",a)}),r}function O9(e,t,r,n,o,a){if(t==="")return[];var i=n.transKeepBasicHtmlNodesFor||[],s=t&&new RegExp(i.join("|")).test(t);if(!e&&!s)return[t];var l={};function c(v){var b=hr(v);b.forEach(function(y){typeof y!="string"&&(X1(y)?c(Y1(y)):ce(y)==="object"&&!O.isValidElement(y)&&Object.assign(l,y))})}c(e);var d=d9.parse("<0>".concat(t,"</0>")),u=te(te({},l),o);function p(v,b,y){var E=Y1(v),x=g(E,b.children,y);return E9(E)&&x.length===0?E:x}function C(v,b,y,E,x){v.dummy&&(v.children=b),y.push(O.cloneElement(v,te(te({},v.props),{},{key:E}),x?void 0:b))}function g(v,b,y){var E=hr(v),x=hr(b);return x.reduce(function(A,S,I){var _=S.children&&S.children[0]&&S.children[0].content&&r.services.interpolator.interpolate(S.children[0].content,u,r.language);if(S.type==="tag"){var B=E[parseInt(S.name,10)];!B&&y.length===1&&y[0][S.name]&&(B=y[0][S.name]),B||(B={});var D=Object.keys(S.attrs).length!==0?x9({props:S.attrs},B):B,M=O.isValidElement(D),F=M&&X1(S,!0)&&!S.voidElement,X=s&&ce(D)==="object"&&D.dummy&&!M,w=ce(e)==="object"&&e!==null&&Object.hasOwnProperty.call(e,S.name);if(typeof D=="string"){var R=r.services.interpolator.interpolate(D,u,r.language);A.push(R)}else if(X1(D)||F){var k=p(D,S,y);C(D,k,A,I)}else if(X){var q=g(E,S.children,y);A.push(O.cloneElement(D,te(te({},D.props),{},{key:I}),q))}else if(Number.isNaN(parseFloat(S.name)))if(w){var Y=p(D,S,y);C(D,Y,A,I,S.voidElement)}else if(n.transSupportBasicHtmlNodes&&i.indexOf(S.name)>-1)if(S.voidElement)A.push(O.createElement(S.name,{key:"".concat(S.name,"-").concat(I)}));else{var H=g(E,S.children,y);A.push(O.createElement(S.name,{key:"".concat(S.name,"-").concat(I)},H))}else if(S.voidElement)A.push("<".concat(S.name," />"));else{var mt=g(E,S.children,y);A.push("<".concat(S.name,">").concat(mt,"</").concat(S.name,">"))}else if(ce(D)==="object"&&!M){var ve=S.children[0]?_:null;ve&&A.push(ve)}else S.children.length===1&&_?A.push(O.cloneElement(D,te(te({},D.props),{},{key:I}),_)):A.push(O.cloneElement(D,te(te({},D.props),{},{key:I})))}else if(S.type==="text"){var ht=n.transWrapTextNodes,V1=a?n.unescape(r.services.interpolator.interpolate(S.content,u,r.language)):r.services.interpolator.interpolate(S.content,u,r.language);ht?A.push(O.createElement(ht,{key:"".concat(S.name,"-").concat(I)},V1)):A.push(V1)}return A},[])}var h=g([{dummy:!0,children:e||[]}],d,hr(e||[]));return Y1(h[0])}function S9(e){var t=e.children,r=e.count,n=e.parent,o=e.i18nKey,a=e.context,i=e.tOptions,s=i===void 0?{}:i,l=e.values,c=e.defaults,d=e.components,u=e.ns,p=e.i18n,C=e.t,g=e.shouldUnescape,h=q1(e,w9),v=p||J1();if(!v)return bn("You will need to pass in an i18next instance by using i18nextReactModule"),t;var b=C||v.t.bind(v)||function(F){return F};a&&(s.context=a);var y=te(te({},b3()),v.options&&v.options.react),E=u||b.ns||v.options&&v.options.defaultNS;E=typeof E=="string"?[E]:E||["translation"];var x=c||E3(t,y)||y.transEmptyNodeValue||o,A=y.hashTransKey,S=o||(A?A(x):x),I=l?s.interpolation:{interpolation:te(te({},s.interpolation),{},{prefix:"#$?",suffix:"?$#"})},_=te(te(te(te({},s),{},{count:r},l),I),{},{defaultValue:x,ns:E}),B=S?b(S,_):x,D=O9(d||t,B,v,y,_,g),M=n!==void 0?n:y.defaultTransParent;return M?O.createElement(M,h,D):D}function xe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x3(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,f3(n.key),n)}}function Oe(e,t,r){return t&&x3(e.prototype,t),r&&x3(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var A9={type:"3rdParty",init:function(t){v9(t.options.react),b9(t)}},Q1=O.createContext(),L9=function(){function e(){xe(this,e),this.usedNamespaces={}}return Oe(e,[{key:"addUsedNamespaces",value:function(r){var n=this;r.forEach(function(o){n.usedNamespaces[o]||(n.usedNamespaces[o]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}(),I9=["children","count","parent","i18nKey","context","tOptions","values","defaults","components","ns","i18n","t","shouldUnescape"];function O3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function P9(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?O3(Object(r),!0).forEach(function(n){Ee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eo(e){var t=e.children,r=e.count,n=e.parent,o=e.i18nKey,a=e.context,i=e.tOptions,s=i===void 0?{}:i,l=e.values,c=e.defaults,d=e.components,u=e.ns,p=e.i18n,C=e.t,g=e.shouldUnescape,h=q1(e,I9),v=O.useContext(Q1)||{},b=v.i18n,y=v.defaultNS,E=p||b||J1(),x=C||E&&E.t.bind(E);return S9(P9({children:t,count:r,parent:n,i18nKey:o,context:a,tOptions:s,values:l,defaults:c,components:d,ns:u||x&&x.ns||y||E&&E.options&&E.options.defaultNS,i18n:E,t:C,shouldUnescape:g},h))}function S3(e){if(Array.isArray(e))return e}function _9(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(d){c=!0,o=d}finally{try{if(!l&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}function A3(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function L3(e,t){if(e){if(typeof e=="string")return A3(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return A3(e,t)}}function I3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function R9(e,t){return S3(e)||_9(e,t)||L3(e,t)||I3()}function P3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function to(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?P3(Object(r),!0).forEach(function(n){Ee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var T9=function(t,r){var n=O.useRef();return O.useEffect(function(){n.current=r?n.current:t},[t,r]),n.current};function N9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.i18n,n=O.useContext(Q1)||{},o=n.i18n,a=n.defaultNS,i=r||o||J1();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new L9),!i){bn("You will need to pass in an i18next instance by using initReactI18next");var s=function(B,D){return typeof D=="string"?D:D&&ce(D)==="object"&&typeof D.defaultValue=="string"?D.defaultValue:Array.isArray(B)?B[B.length-1]:B},l=[s,{},!1];return l.t=s,l.i18n={},l.ready=!1,l}i.options.react&&i.options.react.wait!==void 0&&bn("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var c=to(to(to({},b3()),i.options.react),t),d=c.useSuspense,u=c.keyPrefix,p=e||a||i.options&&i.options.defaultNS;p=typeof p=="string"?[p]:p||["translation"],i.reportNamespaces.addUsedNamespaces&&i.reportNamespaces.addUsedNamespaces(p);var C=(i.isInitialized||i.initializedStoreOnce)&&p.every(function(_){return p9(_,i,c)});function g(){return i.getFixedT(null,c.nsMode==="fallback"?p:p[0],u)}var h=O.useState(g),v=R9(h,2),b=v[0],y=v[1],E=p.join(),x=T9(E),A=O.useRef(!0);O.useEffect(function(){var _=c.bindI18n,B=c.bindI18nStore;A.current=!0,!C&&!d&&m3(i,p,function(){A.current&&y(g)}),C&&x&&x!==E&&A.current&&y(g);function D(){A.current&&y(g)}return _&&i&&i.on(_,D),B&&i&&i.store.on(B,D),function(){A.current=!1,_&&i&&_.split(" ").forEach(function(M){return i.off(M,D)}),B&&i&&B.split(" ").forEach(function(M){return i.store.off(M,D)})}},[i,E]);var S=O.useRef(!0);O.useEffect(function(){A.current&&!S.current&&y(g),S.current=!1},[i,u]);var I=[b,i,C];if(I.t=b,I.i18n=i,I.ready=C,C||!C&&!d)return I;throw new Promise(function(_){m3(i,p,function(){_()})})}function _3(e){var t=e.i18n,r=e.defaultNS,n=e.children,o=O.useMemo(function(){return{i18n:t,defaultNS:r}},[t,r]);return O.createElement(Q1.Provider,{value:o},n)}let yn={};try{yn=window}catch(e){if(!(e instanceof ReferenceError))throw e}finally{yn||(yn={})}const D9=new Date;class Te{constructor({options:t}={}){let r=Te.getPaths(t);r=r||{rootPath:"/admin"},this.options=r}static getPaths(t){return t||yn.REDUX_STATE?.paths}urlBuilder(t=[],r=""){const n="/",o=new RegExp(`${n}{1,}`,"g");let{rootPath:a}=this.options;return a.startsWith(n)||(a=`${n}${a}`),`${[a,...t].join(n).replace(o,n)}${r}`}loginUrl(){return this.options.loginPath}logoutUrl(){return this.options.logoutPath}dashboardUrl(){return this.options.rootPath}pageUrl(t){return this.urlBuilder(["pages",t])}editUrl(t,r,n){return this.recordActionUrl({resourceId:t,recordId:r,actionName:"edit",search:n})}showUrl(t,r,n){return this.recordActionUrl({resourceId:t,recordId:r,actionName:"show",search:n})}deleteUrl(t,r,n){return this.recordActionUrl({resourceId:t,recordId:r,actionName:"delete",search:n})}newUrl(t,r){return this.resourceActionUrl({resourceId:t,actionName:"new",search:r})}listUrl(t,r){return this.resourceActionUrl({resourceId:t,actionName:"list",search:r})}bulkDeleteUrl(t,r,n){return this.bulkActionUrl({resourceId:t,recordIds:r,actionName:"bulkDelete",search:n})}resourceActionUrl({resourceId:t,actionName:r,search:n}){return this.urlBuilder(["resources",t,"actions",r],n)}resourceUrl({resourceId:t,search:r}){return this.urlBuilder(["resources",t],r)}recordActionUrl({resourceId:t,recordId:r,actionName:n,search:o}){return this.urlBuilder(["resources",t,"records",r,n],o)}bulkActionUrl({resourceId:t,recordIds:r,actionName:n,search:o}){const a=this.urlBuilder(["resources",t,"bulk",n]);if(r&&r.length){const i=new URLSearchParams(o);return i.set("recordIds",r.join(",")),`${a}?${i.toString()}`}return`${a}${o||""}`}assetPath(t,r){if(this.options.assetsCDN){const n=r?.coreScripts?.[t]??t;return`${new URL(n,this.options.assetsCDN).href}?date=${D9.getTime()}`}return this.urlBuilder(["frontend","assets",t])}}var $9=vr;vr.flatten=vr,vr.unflatten=N3;function R3(e){return e&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function T3(e){return e}function vr(e,t){t=t||{};const r=t.delimiter||".",n=t.maxDepth,o=t.transformKey||T3,a={};function i(s,l,c){c=c||1,Object.keys(s).forEach(function(d){const u=s[d],p=t.safe&&Array.isArray(u),C=Object.prototype.toString.call(u),g=R3(u),h=C==="[object Object]"||C==="[object Array]",v=l?l+r+o(d):o(d);if(!p&&!g&&h&&Object.keys(u).length&&(!t.maxDepth||c<n))return i(u,v,c+1);a[v]=u})}return i(e),a}function N3(e,t){t=t||{};const r=t.delimiter||".",n=t.overwrite||!1,o=t.transformKey||T3,a={};if(R3(e)||Object.prototype.toString.call(e)!=="[object Object]")return e;function s(d){const u=Number(d);return isNaN(u)||d.indexOf(".")!==-1||t.object?d:u}function l(d,u,p){return Object.keys(p).reduce(function(C,g){return C[d+r+g]=p[g],C},u)}function c(d){const u=Object.prototype.toString.call(d),p=u==="[object Array]",C=u==="[object Object]";if(d){if(p)return!d.length;if(C)return!Object.keys(d).length}else return!0}return e=Object.keys(e).reduce(function(d,u){const p=Object.prototype.toString.call(e[u]);return!(p==="[object Object]"||p==="[object Array]")||c(e[u])?(d[u]=e[u],d):l(u,d,vr(e[u],t))},{}),Object.keys(e).forEach(function(d){const u=d.split(r).map(o);let p=s(u.shift()),C=s(u[0]),g=a;for(;C!==void 0;){if(p==="__proto__")return;const h=Object.prototype.toString.call(g[p]),v=h==="[object Object]"||h==="[object Array]";if(!n&&!v&&typeof g[p]<"u")return;(n&&!v||!n&&g[p]==null)&&(g[p]=typeof C=="number"&&!t.object?[]:{}),g=g[p],u.length>0&&(p=s(u.shift()),C=s(u[0]))}g[p]=N3(e[d],t)}),a}var Tt=Re($9);const Ne=".",wn=(e,t)=>{const r=new RegExp(`\\${Ne}`,"g"),n=`\\${Ne}`,o=`(${n}|${n}\\d+${n})`,a=t?.includeAllSiblings?e.replace(r,o):e.replace(r,n);return new RegExp(`^${a}($|${n})`,"")},D3=(e,t,r)=>(Array.isArray(t)?t:[t]).filter(a=>!!a).reduce((a,i)=>{const s=wn(i,r),l=Object.keys(e).filter(c=>c.match(s)).reduce((c,d)=>(c[d]=e[d],c),{});return{...a,...l}},{}),$3=(e,t)=>(Array.isArray(t)?t:[t]).filter(n=>!!n).reduce((n,o)=>{const a=wn(o);return Object.keys(n).filter(i=>!i.match(a)).reduce((i,s)=>(i[s]=e[s],i),{})},e),ro=(e,t={})=>{let r=e.split(".");return t.skipArrayIndexes&&(r=r.filter(n=>isNaN(+n))),r.reduce((n,o)=>n.length?[...n,[n[n.length-1],o].join(".")]:[o],[])},B9=e=>typeof File>"u"?typeof e=="object"&&e!==null:typeof e=="object"&&!(e instanceof File)&&e!==null,no=(e={},t,r)=>{const n=wn(t),o=Object.keys(e).filter(a=>!a.match(n)).reduce((a,i)=>(a[i]=e[i],a),{});if(typeof r<"u"){if(B9(r)&&!(r instanceof Date)){const i=Tt.flatten(r);Object.keys(i).length?Object.keys(i).forEach(s=>{o[`${t}${Ne}${s}`]=i[s]}):Array.isArray(r)?o[t]=[]:o[t]={}}else o[t]=r;const a=ro(t).slice(0,-1);if(a.length)return Object.keys(o).filter(i=>!a.includes(i)).reduce((i,s)=>(i[s]=o[s],i),{})}return o},En="TEMP_HOLDING_KEY",B3=(e={},t,r)=>{if(!t)return Tt.unflatten(e);if(Object.keys(e).find(i=>i===t))return e[t];const n=wn(t,r),o=D3(e,t,r),a=Object.keys(o).reduce((i,s,l)=>{let c=s.replace(n,`${En}${Ne}`);return r?.includeAllSiblings&&(c=c.replace(new RegExp(`${En}\\${Ne}(\\d*)`),`${En}${Ne}${l}`)),i[c]=o[s],i},{});if(Object.keys(a).length)return Tt.unflatten(a)[En]},M9=(e={},...t)=>{const r=Tt.flatten(e);return t.reverse().reduce((n,o)=>Object.keys(o).reduce((a,i)=>no(a,i,o[i]),n),r)},k9=(e,t)=>{let r=$3(e,t);const n=ro(t).reverse();return n.find((o,a)=>{const i=B3(e,o);if(Array.isArray(i)){const s=n[a-1].split(Ne),l=s[s.length-1];return i.splice(+l,1),r=no(e,o,i),!0}return!1}),r},re={flatten:Tt.flatten,unflatten:Tt.unflatten,set:no,get:B3,selectParams:D3,filterOutParams:$3,removePath:k9,DELIMITER:Ne,pathToParts:ro,merge:M9};var F9=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;t[r]=o;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var i=Object.getOwnPropertyDescriptor(t,r);if(i.value!==o||i.enumerable!==!0)return!1}return!0},M3=typeof Symbol<"u"&&Symbol,j9=F9,U9=function(){return typeof M3!="function"||typeof Symbol!="function"||typeof M3("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:j9()},z9="Function.prototype.bind called on incompatible ",oo=Array.prototype.slice,H9=Object.prototype.toString,G9="[object Function]",V9=function(t){var r=this;if(typeof r!="function"||H9.call(r)!==G9)throw new TypeError(z9+r);for(var n=oo.call(arguments,1),o,a=function(){if(this instanceof o){var d=r.apply(this,n.concat(oo.call(arguments)));return Object(d)===d?d:this}else return r.apply(t,n.concat(oo.call(arguments)))},i=Math.max(0,r.length-n.length),s=[],l=0;l<i;l++)s.push("$"+l);if(o=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var c=function(){};c.prototype=r.prototype,o.prototype=new c,c.prototype=null}return o},W9=V9,ao=Function.prototype.bind||W9,Z9=ao,q9=Z9.call(Function.call,Object.prototype.hasOwnProperty),j,Nt=SyntaxError,k3=Function,Dt=TypeError,io=function(e){try{return k3('"use strict"; return ('+e+").constructor;")()}catch{}},vt=Object.getOwnPropertyDescriptor;if(vt)try{vt({},"")}catch{vt=null}var so=function(){throw new Dt},K9=vt?function(){try{return arguments.callee,so}catch{try{return vt(arguments,"callee").get}catch{return so}}}():so,$t=U9(),Me=Object.getPrototypeOf||function(e){return e.__proto__},Bt={},J9=typeof Uint8Array>"u"?j:Me(Uint8Array),bt={"%AggregateError%":typeof AggregateError>"u"?j:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?j:ArrayBuffer,"%ArrayIteratorPrototype%":$t?Me([][Symbol.iterator]()):j,"%AsyncFromSyncIteratorPrototype%":j,"%AsyncFunction%":Bt,"%AsyncGenerator%":Bt,"%AsyncGeneratorFunction%":Bt,"%AsyncIteratorPrototype%":Bt,"%Atomics%":typeof Atomics>"u"?j:Atomics,"%BigInt%":typeof BigInt>"u"?j:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?j:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?j:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?j:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?j:Float32Array,"%Float64Array%":typeof Float64Array>"u"?j:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?j:FinalizationRegistry,"%Function%":k3,"%GeneratorFunction%":Bt,"%Int8Array%":typeof Int8Array>"u"?j:Int8Array,"%Int16Array%":typeof Int16Array>"u"?j:Int16Array,"%Int32Array%":typeof Int32Array>"u"?j:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":$t?Me(Me([][Symbol.iterator]())):j,"%JSON%":typeof JSON=="object"?JSON:j,"%Map%":typeof Map>"u"?j:Map,"%MapIteratorPrototype%":typeof Map>"u"||!$t?j:Me(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?j:Promise,"%Proxy%":typeof Proxy>"u"?j:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?j:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?j:Set,"%SetIteratorPrototype%":typeof Set>"u"||!$t?j:Me(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?j:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":$t?Me(""[Symbol.iterator]()):j,"%Symbol%":$t?Symbol:j,"%SyntaxError%":Nt,"%ThrowTypeError%":K9,"%TypedArray%":J9,"%TypeError%":Dt,"%Uint8Array%":typeof Uint8Array>"u"?j:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?j:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?j:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?j:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?j:WeakMap,"%WeakRef%":typeof WeakRef>"u"?j:WeakRef,"%WeakSet%":typeof WeakSet>"u"?j:WeakSet};try{null.error}catch(e){var X9=Me(Me(e));bt["%Error.prototype%"]=X9}var Y9=function e(t){var r;if(t==="%AsyncFunction%")r=io("async function () {}");else if(t==="%GeneratorFunction%")r=io("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=io("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&(r=Me(o.prototype))}return bt[t]=r,r},F3={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},br=ao,xn=q9,Q9=br.call(Function.call,Array.prototype.concat),e7=br.call(Function.apply,Array.prototype.splice),j3=br.call(Function.call,String.prototype.replace),On=br.call(Function.call,String.prototype.slice),t7=br.call(Function.call,RegExp.prototype.exec),r7=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,n7=/\\(\\)?/g,o7=function(t){var r=On(t,0,1),n=On(t,-1);if(r==="%"&&n!=="%")throw new Nt("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Nt("invalid intrinsic syntax, expected opening `%`");var o=[];return j3(t,r7,function(a,i,s,l){o[o.length]=s?j3(l,n7,"$1"):i||a}),o},a7=function(t,r){var n=t,o;if(xn(F3,n)&&(o=F3[n],n="%"+o[0]+"%"),xn(bt,n)){var a=bt[n];if(a===Bt&&(a=Y9(n)),typeof a>"u"&&!r)throw new Dt("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new Nt("intrinsic "+t+" does not exist!")},lo=function(t,r){if(typeof t!="string"||t.length===0)throw new Dt("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Dt('"allowMissing" argument must be a boolean');if(t7(/^%?[^%]*%?$/,t)===null)throw new Nt("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=o7(t),o=n.length>0?n[0]:"",a=a7("%"+o+"%",r),i=a.name,s=a.value,l=!1,c=a.alias;c&&(o=c[0],e7(n,Q9([0,1],c)));for(var d=1,u=!0;d<n.length;d+=1){var p=n[d],C=On(p,0,1),g=On(p,-1);if((C==='"'||C==="'"||C==="`"||g==='"'||g==="'"||g==="`")&&C!==g)throw new Nt("property names with quotes must have matching quotes");if((p==="constructor"||!u)&&(l=!0),o+="."+p,i="%"+o+"%",xn(bt,i))s=bt[i];else if(s!=null){if(!(p in s)){if(!r)throw new Dt("base intrinsic for "+t+" exists, but the property is not available.");return}if(vt&&d+1>=n.length){var h=vt(s,p);u=!!h,u&&"get"in h&&!("originalValue"in h.get)?s=h.get:s=s[p]}else u=xn(s,p),s=s[p];u&&!l&&(bt[i]=s)}}return s},U3={exports:{}};(function(e){var t=ao,r=lo,n=r("%Function.prototype.apply%"),o=r("%Function.prototype.call%"),a=r("%Reflect.apply%",!0)||t.call(o,n),i=r("%Object.getOwnPropertyDescriptor%",!0),s=r("%Object.defineProperty%",!0),l=r("%Math.max%");if(s)try{s({},"a",{value:1})}catch{s=null}e.exports=function(u){var p=a(t,o,arguments);if(i&&s){var C=i(p,"length");C.configurable&&s(p,"length",{value:1+l(0,u.length-(arguments.length-1))})}return p};var c=function(){return a(t,n,arguments)};s?s(e.exports,"apply",{value:c}):e.exports.apply=c})(U3);var i7=U3.exports,z3=lo,H3=i7,s7=H3(z3("String.prototype.indexOf")),l7=function(t,r){var n=z3(t,!!r);return typeof n=="function"&&s7(t,".prototype.")>-1?H3(n):n},c7={},u7=Object.freeze({__proto__:null,default:c7}),d7=n9(u7),co=typeof Map=="function"&&Map.prototype,uo=Object.getOwnPropertyDescriptor&&co?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Sn=co&&uo&&typeof uo.get=="function"?uo.get:null,G3=co&&Map.prototype.forEach,fo=typeof Set=="function"&&Set.prototype,po=Object.getOwnPropertyDescriptor&&fo?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,An=fo&&po&&typeof po.get=="function"?po.get:null,V3=fo&&Set.prototype.forEach,f7=typeof WeakMap=="function"&&WeakMap.prototype,yr=f7?WeakMap.prototype.has:null,p7=typeof WeakSet=="function"&&WeakSet.prototype,wr=p7?WeakSet.prototype.has:null,C7=typeof WeakRef=="function"&&WeakRef.prototype,W3=C7?WeakRef.prototype.deref:null,g7=Boolean.prototype.valueOf,m7=Object.prototype.toString,h7=Function.prototype.toString,v7=String.prototype.match,Co=String.prototype.slice,rt=String.prototype.replace,b7=String.prototype.toUpperCase,Z3=String.prototype.toLowerCase,q3=RegExp.prototype.test,K3=Array.prototype.concat,ke=Array.prototype.join,y7=Array.prototype.slice,J3=Math.floor,go=typeof BigInt=="function"?BigInt.prototype.valueOf:null,mo=Object.getOwnPropertySymbols,ho=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Mt=typeof Symbol=="function"&&typeof Symbol.iterator=="object",de=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Mt||!0)?Symbol.toStringTag:null,X3=Object.prototype.propertyIsEnumerable,Y3=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Q3(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||q3.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-J3(-e):J3(e);if(n!==e){var o=String(n),a=Co.call(t,o.length+1);return rt.call(o,r,"$&_")+"."+rt.call(rt.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return rt.call(t,r,"$&_")}var vo=d7,ei=vo.custom,ti=oi(ei)?ei:null,w7=function e(t,r,n,o){var a=r||{};if(nt(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(nt(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=nt(a,"customInspect")?a.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(nt(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(nt(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=a.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return ii(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return s?Q3(t,l):l}if(typeof t=="bigint"){var c=String(t)+"n";return s?Q3(t,c):c}var d=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=d&&d>0&&typeof t=="object")return bo(t)?"[Array]":"[Object]";var u=F7(a,n);if(typeof o>"u")o=[];else if(ai(o,t)>=0)return"[Circular]";function p(X,w,R){if(w&&(o=y7.call(o),o.push(w)),R){var k={depth:a.depth};return nt(a,"quoteStyle")&&(k.quoteStyle=a.quoteStyle),e(X,k,n+1,o)}return e(X,a,n+1,o)}if(typeof t=="function"&&!ni(t)){var C=_7(t),g=Ln(t,p);return"[Function"+(C?": "+C:" (anonymous)")+"]"+(g.length>0?" { "+ke.call(g,", ")+" }":"")}if(oi(t)){var h=Mt?rt.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):ho.call(t);return typeof t=="object"&&!Mt?Er(h):h}if(B7(t)){for(var v="<"+Z3.call(String(t.nodeName)),b=t.attributes||[],y=0;y<b.length;y++)v+=" "+b[y].name+"="+ri(E7(b[y].value),"double",a);return v+=">",t.childNodes&&t.childNodes.length&&(v+="..."),v+="</"+Z3.call(String(t.nodeName))+">",v}if(bo(t)){if(t.length===0)return"[]";var E=Ln(t,p);return u&&!k7(E)?"["+wo(E,u)+"]":"[ "+ke.call(E,", ")+" ]"}if(O7(t)){var x=Ln(t,p);return!("cause"in Error.prototype)&&"cause"in t&&!X3.call(t,"cause")?"{ ["+String(t)+"] "+ke.call(K3.call("[cause]: "+p(t.cause),x),", ")+" }":x.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+ke.call(x,", ")+" }"}if(typeof t=="object"&&i){if(ti&&typeof t[ti]=="function"&&vo)return vo(t,{depth:d-n});if(i!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(R7(t)){var A=[];return G3&&G3.call(t,function(X,w){A.push(p(w,t,!0)+" => "+p(X,t))}),si("Map",Sn.call(t),A,u)}if(D7(t)){var S=[];return V3&&V3.call(t,function(X){S.push(p(X,t))}),si("Set",An.call(t),S,u)}if(T7(t))return yo("WeakMap");if($7(t))return yo("WeakSet");if(N7(t))return yo("WeakRef");if(A7(t))return Er(p(Number(t)));if(I7(t))return Er(p(go.call(t)));if(L7(t))return Er(g7.call(t));if(S7(t))return Er(p(String(t)));if(!x7(t)&&!ni(t)){var I=Ln(t,p),_=Y3?Y3(t)===Object.prototype:t instanceof Object||t.constructor===Object,B=t instanceof Object?"":"null prototype",D=!_&&de&&Object(t)===t&&de in t?Co.call(ot(t),8,-1):B?"Object":"",M=_||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",F=M+(D||B?"["+ke.call(K3.call([],D||[],B||[]),": ")+"] ":"");return I.length===0?F+"{}":u?F+"{"+wo(I,u)+"}":F+"{ "+ke.call(I,", ")+" }"}return String(t)};function ri(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function E7(e){return rt.call(String(e),/"/g,""")}function bo(e){return ot(e)==="[object Array]"&&(!de||!(typeof e=="object"&&de in e))}function x7(e){return ot(e)==="[object Date]"&&(!de||!(typeof e=="object"&&de in e))}function ni(e){return ot(e)==="[object RegExp]"&&(!de||!(typeof e=="object"&&de in e))}function O7(e){return ot(e)==="[object Error]"&&(!de||!(typeof e=="object"&&de in e))}function S7(e){return ot(e)==="[object String]"&&(!de||!(typeof e=="object"&&de in e))}function A7(e){return ot(e)==="[object Number]"&&(!de||!(typeof e=="object"&&de in e))}function L7(e){return ot(e)==="[object Boolean]"&&(!de||!(typeof e=="object"&&de in e))}function oi(e){if(Mt)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!ho)return!1;try{return ho.call(e),!0}catch{}return!1}function I7(e){if(!e||typeof e!="object"||!go)return!1;try{return go.call(e),!0}catch{}return!1}var P7=Object.prototype.hasOwnProperty||function(e){return e in this};function nt(e,t){return P7.call(e,t)}function ot(e){return m7.call(e)}function _7(e){if(e.name)return e.name;var t=v7.call(h7.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function ai(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function R7(e){if(!Sn||!e||typeof e!="object")return!1;try{Sn.call(e);try{An.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function T7(e){if(!yr||!e||typeof e!="object")return!1;try{yr.call(e,yr);try{wr.call(e,wr)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function N7(e){if(!W3||!e||typeof e!="object")return!1;try{return W3.call(e),!0}catch{}return!1}function D7(e){if(!An||!e||typeof e!="object")return!1;try{An.call(e);try{Sn.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function $7(e){if(!wr||!e||typeof e!="object")return!1;try{wr.call(e,wr);try{yr.call(e,yr)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function B7(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function ii(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return ii(Co.call(e,0,t.maxStringLength),t)+n}var o=rt.call(rt.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,M7);return ri(o,"single",t)}function M7(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+b7.call(t.toString(16))}function Er(e){return"Object("+e+")"}function yo(e){return e+" { ? }"}function si(e,t,r,n){var o=n?wo(r,n):ke.call(r,", ");return e+" ("+t+") {"+o+"}"}function k7(e){for(var t=0;t<e.length;t++)if(ai(e[t],`
`)>=0)return!1;return!0}function F7(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=ke.call(Array(e.indent+1)," ");else return null;return{base:r,prev:ke.call(Array(t+1),r)}}function wo(e,t){if(e.length===0)return"";var r=`
`+t.prev+t.base;return r+ke.call(e,","+r)+`
`+t.prev}function Ln(e,t){var r=bo(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=nt(e,o)?t(e[o],e):""}var a=typeof mo=="function"?mo(e):[],i;if(Mt){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var l in e)nt(e,l)&&(r&&String(Number(l))===l&&l<e.length||Mt&&i["$"+l]instanceof Symbol||(q3.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e))));if(typeof mo=="function")for(var c=0;c<a.length;c++)X3.call(e,a[c])&&n.push("["+t(a[c])+"]: "+t(e[a[c]],e));return n}var Eo=lo,kt=l7,j7=w7,U7=Eo("%TypeError%"),In=Eo("%WeakMap%",!0),Pn=Eo("%Map%",!0),z7=kt("WeakMap.prototype.get",!0),H7=kt("WeakMap.prototype.set",!0),G7=kt("WeakMap.prototype.has",!0),V7=kt("Map.prototype.get",!0),W7=kt("Map.prototype.set",!0),Z7=kt("Map.prototype.has",!0),xo=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},q7=function(e,t){var r=xo(e,t);return r&&r.value},K7=function(e,t,r){var n=xo(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},J7=function(e,t){return!!xo(e,t)},X7=function(){var t,r,n,o={assert:function(a){if(!o.has(a))throw new U7("Side channel does not contain "+j7(a))},get:function(a){if(In&&a&&(typeof a=="object"||typeof a=="function")){if(t)return z7(t,a)}else if(Pn){if(r)return V7(r,a)}else if(n)return q7(n,a)},has:function(a){if(In&&a&&(typeof a=="object"||typeof a=="function")){if(t)return G7(t,a)}else if(Pn){if(r)return Z7(r,a)}else if(n)return J7(n,a);return!1},set:function(a,i){In&&a&&(typeof a=="object"||typeof a=="function")?(t||(t=new In),H7(t,a,i)):Pn?(r||(r=new Pn),W7(r,a,i)):(n||(n={key:{},next:null}),K7(n,a,i))}};return o},Y7=String.prototype.replace,Q7=/%20/g,Oo={RFC1738:"RFC1738",RFC3986:"RFC3986"},So={default:Oo.RFC3986,formatters:{RFC1738:function(e){return Y7.call(e,Q7,"+")},RFC3986:function(e){return String(e)}},RFC1738:Oo.RFC1738,RFC3986:Oo.RFC3986},eu=So,Ao=Object.prototype.hasOwnProperty,yt=Array.isArray,Fe=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),tu=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(yt(n)){for(var o=[],a=0;a<n.length;++a)typeof n[a]<"u"&&o.push(n[a]);r.obj[r.prop]=o}}},li=function(t,r){for(var n=r&&r.plainObjects?Object.create(null):{},o=0;o<t.length;++o)typeof t[o]<"u"&&(n[o]=t[o]);return n},ru=function e(t,r,n){if(!r)return t;if(typeof r!="object"){if(yt(t))t.push(r);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Ao.call(Object.prototype,r))&&(t[r]=!0);else return[t,r];return t}if(!t||typeof t!="object")return[t].concat(r);var o=t;return yt(t)&&!yt(r)&&(o=li(t,n)),yt(t)&&yt(r)?(r.forEach(function(a,i){if(Ao.call(t,i)){var s=t[i];s&&typeof s=="object"&&a&&typeof a=="object"?t[i]=e(s,a,n):t.push(a)}else t[i]=a}),t):Object.keys(r).reduce(function(a,i){var s=r[i];return Ao.call(a,i)?a[i]=e(a[i],s,n):a[i]=s,a},o)},nu=function(t,r){return Object.keys(r).reduce(function(n,o){return n[o]=r[o],n},t)},ou=function(e,t,r){var n=e.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},au=function(t,r,n,o,a){if(t.length===0)return t;var i=t;if(typeof t=="symbol"?i=Symbol.prototype.toString.call(t):typeof t!="string"&&(i=String(t)),n==="iso-8859-1")return escape(i).replace(/%u[0-9a-f]{4}/gi,function(d){return"%26%23"+parseInt(d.slice(2),16)+"%3B"});for(var s="",l=0;l<i.length;++l){var c=i.charCodeAt(l);if(c===45||c===46||c===95||c===126||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||a===eu.RFC1738&&(c===40||c===41)){s+=i.charAt(l);continue}if(c<128){s=s+Fe[c];continue}if(c<2048){s=s+(Fe[192|c>>6]+Fe[128|c&63]);continue}if(c<55296||c>=57344){s=s+(Fe[224|c>>12]+Fe[128|c>>6&63]+Fe[128|c&63]);continue}l+=1,c=65536+((c&1023)<<10|i.charCodeAt(l)&1023),s+=Fe[240|c>>18]+Fe[128|c>>12&63]+Fe[128|c>>6&63]+Fe[128|c&63]}return s},iu=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],o=0;o<r.length;++o)for(var a=r[o],i=a.obj[a.prop],s=Object.keys(i),l=0;l<s.length;++l){var c=s[l],d=i[c];typeof d=="object"&&d!==null&&n.indexOf(d)===-1&&(r.push({obj:i,prop:c}),n.push(d))}return tu(r),t},su=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},lu=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},cu=function(t,r){return[].concat(t,r)},uu=function(t,r){if(yt(t)){for(var n=[],o=0;o<t.length;o+=1)n.push(r(t[o]));return n}return r(t)},ci={arrayToObject:li,assign:nu,combine:cu,compact:iu,decode:ou,encode:au,isBuffer:lu,isRegExp:su,maybeMap:uu,merge:ru},ui=X7,_n=ci,xr=So,du=Object.prototype.hasOwnProperty,di={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},Ze=Array.isArray,fu=Array.prototype.push,fi=function(e,t){fu.apply(e,Ze(t)?t:[t])},pu=Date.prototype.toISOString,pi=xr.default,fe={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:_n.encode,encodeValuesOnly:!1,format:pi,formatter:xr.formatters[pi],indices:!1,serializeDate:function(t){return pu.call(t)},skipNulls:!1,strictNullHandling:!1},Cu=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Lo={},gu=function e(t,r,n,o,a,i,s,l,c,d,u,p,C,g,h,v){for(var b=t,y=v,E=0,x=!1;(y=y.get(Lo))!==void 0&&!x;){var A=y.get(t);if(E+=1,typeof A<"u"){if(A===E)throw new RangeError("Cyclic object value");x=!0}typeof y.get(Lo)>"u"&&(E=0)}if(typeof l=="function"?b=l(r,b):b instanceof Date?b=u(b):n==="comma"&&Ze(b)&&(b=_n.maybeMap(b,function(k){return k instanceof Date?u(k):k})),b===null){if(a)return s&&!g?s(r,fe.encoder,h,"key",p):r;b=""}if(Cu(b)||_n.isBuffer(b)){if(s){var S=g?r:s(r,fe.encoder,h,"key",p);return[C(S)+"="+C(s(b,fe.encoder,h,"value",p))]}return[C(r)+"="+C(String(b))]}var I=[];if(typeof b>"u")return I;var _;if(n==="comma"&&Ze(b))g&&s&&(b=_n.maybeMap(b,s)),_=[{value:b.length>0?b.join(",")||null:void 0}];else if(Ze(l))_=l;else{var B=Object.keys(b);_=c?B.sort(c):B}for(var D=o&&Ze(b)&&b.length===1?r+"[]":r,M=0;M<_.length;++M){var F=_[M],X=typeof F=="object"&&typeof F.value<"u"?F.value:b[F];if(!(i&&X===null)){var w=Ze(b)?typeof n=="function"?n(D,F):D:D+(d?"."+F:"["+F+"]");v.set(t,E);var R=ui();R.set(Lo,v),fi(I,e(X,w,n,o,a,i,n==="comma"&&g&&Ze(b)?null:s,l,c,d,u,p,C,g,h,R))}}return I},mu=function(t){if(!t)return fe;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeE