Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sencha/reext

Package Overview
Dependencies
Maintainers
0
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sencha/reext - npm Package Compare versions

Comparing version 0.0.282 to 0.0.287

57

dist/reext.es.js
import { jsxs as E, jsx as f, Fragment as ie } from "react/jsx-runtime";
import _, { cloneElement as We, useState as K, useRef as X, useEffect as U } from "react";
import _, { cloneElement as We, useState as z, useRef as X, useEffect as U } from "react";
import { createPortal as q } from "react-dom";
const Je = "@sencha/reext", He = "0.0.282", ze = "React ReExt", Ne = "./dist/ReExt/types.d.ts", Ke = "./dist/reext.es.js", Le = {
const Je = "@sencha/reext", He = "0.0.287", Ne = "React ReExt", Ke = "./dist/ReExt/types.d.ts", ze = "./dist/reext.es.js", Le = {
b: "npm run buildclonedeep && npm run buildisequal && npm run buildfill && npm run buildgetconfig && npm run buildglobalprovider && npm run buildisevent && npm run builditeratechildren && npm run buildloadextjsfiles && npm run buildpropupdate && npm run buildresizeobserver && npm run builduntilextloaded && npm run buildwatermark",

@@ -23,3 +23,2 @@ buildclonedeep: "esbuild ./src/lib/modules/cloneDeep.jsx --format=esm --bundle --minify --outfile=./src/lib/cloneDeep.js",

postpublish: "node ./public/scripts/postpublish.js",
zip: "npm-build-zip --source=dist --destination=zip",
pack: "npm pack --pack-destination zip",

@@ -31,3 +30,4 @@ dev: "vite",

watch: "vitest",
coverage: "vitest run --coverage"
coverage: "vitest run --coverage",
lint: "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0"
}, Me = {

@@ -49,6 +49,3 @@ name: "Sencha, Inc.",

}, Ve = {
vite: "^5.4.0",
"npm-build-zip": "^1.0.4",
"@babel/generator": "^7.25.0",
"@babel/parser": "^7.25.3",
vite: "^5.4.1",
"@vitejs/plugin-react-swc": "^3.7.0",

@@ -62,5 +59,5 @@ eslint: "8.57.0",

version: He,
description: ze,
types: Ne,
module: Ke,
description: Ne,
types: Ke,
module: ze,
scripts: Le,

@@ -288,5 +285,5 @@ author: Me,

return;
const [r, i] = K(null), [n, a] = K(null), o = X(null);
const [r, i] = z(null), [n, a] = z(null), o = X(null);
o.current = n;
const s = () => o.current, [c, d] = K(null), u = X(null);
const s = () => o.current, [c, d] = z(null), u = X(null);
u.current = c;

@@ -334,9 +331,9 @@ const m = () => u.current, v = X(null);

const w = (P) => {
let D = [], Oe = JSON.stringify(P, function(wr, N) {
if (typeof N == "object" && N !== null) {
if (D.indexOf(N) !== -1)
let D = [], Oe = JSON.stringify(P, function(wr, K) {
if (typeof K == "object" && K !== null) {
if (D.indexOf(K) !== -1)
return;
D.push(N);
D.push(K);
}
return N;
return K;
});

@@ -381,4 +378,4 @@ return D = null, Oe;

e.style === void 0 || e.style.height === void 0 ? b = 1 : b = "none";
var z = "";
return e.className !== void 0 && (z = e.className), e.xtype === "window" ? null : /* @__PURE__ */ E(
var N = "";
return e.className !== void 0 && (N = e.className), e.xtype === "window" ? null : /* @__PURE__ */ E(
"div",

@@ -388,3 +385,3 @@ {

"data-rid": e.rid,
className: z + " fill",
className: N + " fill",
style: { ...e.style, flex: b, position: "relative", display: "flex", overflow: "hidden" },

@@ -818,3 +815,3 @@ ref: v,

}
async function zt(e, t, r) {
async function Nt(e, t, r) {
if (e instanceof Uint8Array && (e = B.decode(e)), typeof e != "string") throw new $("Compact JWS must be a string or Uint8Array");

@@ -826,4 +823,4 @@ let { 0: i, 1: n, 2: a, length: o } = e.split(".");

}
var Nt = (e) => Math.floor(e.getTime() / 1e3), Kt = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, me = (e) => {
let t = Kt.exec(e);
var Kt = (e) => Math.floor(e.getTime() / 1e3), zt = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, me = (e) => {
let t = zt.exec(e);
if (!t || t[4] && t[1]) throw new TypeError("Invalid time period format");

@@ -897,3 +894,3 @@ let r = parseFloat(t[2]), i = t[3].toLowerCase(), n;

}
let { currentDate: v } = r, p = Nt(v || /* @__PURE__ */ new Date());
let { currentDate: v } = r, p = Kt(v || /* @__PURE__ */ new Date());
if ((i.iat !== void 0 || d) && typeof i.iat != "number") throw new C('"iat" claim must be a number', i, "iat", "invalid");

@@ -917,3 +914,3 @@ if (i.nbf !== void 0) {

var a;
let i = await zt(e, t, r);
let i = await Nt(e, t, r);
if ((a = i.protectedHeader.crit) != null && a.includes("b64") && i.protectedHeader.b64 === !1) throw new T("JWTs MUST NOT use unencoded payload");

@@ -1271,4 +1268,4 @@ let n = { payload: Mt(i.protectedHeader, i.payload, r), protectedHeader: i.protectedHeader };

await r(`${b}/packages/charts/${n}/charts${s}.js`);
var z = !0;
(n === "modern" && a === "ios" && p === "7.0.0" || a === "gray") && (z = !1), z === !0 && (n === "classic" && a !== "material" ? await i(`${b}/packages/charts/${n}/${a}/resources/charts-all${s}.css`) : await i(`${b}/packages/charts/${n}/${n}-${a}/resources/charts-all${s}.css`));
var N = !0;
(n === "modern" && a === "ios" && p === "7.0.0" || a === "gray") && (N = !1), N === !0 && (n === "classic" && a !== "material" ? await i(`${b}/packages/charts/${n}/${a}/resources/charts-all${s}.css`) : await i(`${b}/packages/charts/${n}/${n}-${a}/resources/charts-all${s}.css`));
}

@@ -1305,3 +1302,3 @@ if (I === !0) {

return;
const [n, a] = K(!1);
const [n, a] = z(!1);
try {

@@ -1350,3 +1347,3 @@ if (U(() => {

return;
const [t, r] = K(e);
const [t, r] = z(e);
var i = X();

@@ -1353,0 +1350,0 @@ return i.current = t, [() => i.current, r];

@@ -1,1 +0,1 @@

(function(C,c){typeof exports=="object"&&typeof module<"u"?c(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],c):(C=typeof globalThis<"u"?globalThis:C||self,c(C.ReExt={},C.jsxRuntime,C.React,C.ReactDOM))})(this,function(C,c,m,U){"use strict";const ce={name:"@sencha/reext",version:"0.0.282",description:"React ReExt",types:"./dist/ReExt/types.d.ts",module:"./dist/reext.es.js",scripts:{b:"npm run buildclonedeep && npm run buildisequal && npm run buildfill && npm run buildgetconfig && npm run buildglobalprovider && npm run buildisevent && npm run builditeratechildren && npm run buildloadextjsfiles && npm run buildpropupdate && npm run buildresizeobserver && npm run builduntilextloaded && npm run buildwatermark",buildclonedeep:"esbuild ./src/lib/modules/cloneDeep.jsx --format=esm --bundle --minify --outfile=./src/lib/cloneDeep.js",buildisequal:"esbuild ./src/lib/modules/isEqual.jsx --format=esm --bundle --minify --outfile=./src/lib/isEqual.js",buildfill:"esbuild ./src/lib/modules/Fill.jsx --format=esm --bundle --minify --outfile=./src/lib/Fill.js",buildgetconfig:"esbuild ./src/lib/modules/getconfig.jsx --format=esm --bundle --minify --outfile=./src/lib/getconfig.js",buildglobalprovider:"esbuild ./src/lib/modules/GlobalProvider.jsx --format=esm --minify --outfile=./src/lib/GlobalProvider.js --inject:./src/lib/modules/react-shim.js",buildisevent:"esbuild ./src/lib/modules/isevent.jsx --format=esm --bundle --minify --outfile=./src/lib/isevent.js",builditeratechildren:"esbuild ./src/lib/modules/iteratechildren.jsx --format=esm --bundle --minify --outfile=./src/lib/iteratechildren.js --external:react --external:react-dom",buildloadextjsfiles:"esbuild ./src/lib/modules/loadextjsfiles.jsx --format=esm --bundle --minify --outfile=./src/lib/loadextjsfiles.js",buildpropupdate:"esbuild ./src/lib/modules/propupdate.jsx --format=esm --bundle --minify --outfile=./src/lib/propupdate.js",buildresizeobserver:"esbuild ./src/lib/modules/resizeobserver.jsx --format=esm --bundle --minify --outfile=./src/lib/resizeobserver.js",builduntilextloaded:"esbuild ./src/lib/modules/untilextloaded.jsx --format=esm --bundle --minify --outfile=./src/lib/untilextloaded.js",buildwatermark:"esbuild ./src/lib/modules/watermark.jsx --format=esm --bundle --minify --outfile=./src/lib/watermark.js",preinstall:"node ./dist/scripts/preinstall.js",postinstall:"node ./dist/scripts/postinstall.js",prepublishOnly:"node ./public/scripts/prepublish.js",postpack:"node ./public/scripts/postpack.js",postpublish:"node ./public/scripts/postpublish.js",zip:"npm-build-zip --source=dist --destination=zip",pack:"npm pack --pack-destination zip",dev:"vite",builddev:"vite build -m development",build:"vite build",test:"vitest run",watch:"vitest",coverage:"vitest run --coverage"},author:{name:"Sencha, Inc.",email:"marc.gusmano@sencha.com",url:"http://www.sencha.com"},homepage:"https://www.sencha.com/products/reext/",keywords:["React","NextJS","Sencha","ExtJS","Components","ReExt"],license:"MIT",exports:{".":{import:"./dist/reext.es.js"}},devDependencies:{vite:"^5.4.0","npm-build-zip":"^1.0.4","@babel/generator":"^7.25.0","@babel/parser":"^7.25.3","@vitejs/plugin-react-swc":"^3.7.0",eslint:"8.57.0","eslint-plugin-react":"^7.35.0","eslint-plugin-react-hooks":"^4.6.2","eslint-plugin-react-refresh":"^0.4.9"},dependencies:{}},Pe=(e,t)=>{for(var r in e)typeof e[r]=="function"&&function(i,a){var n=r;e[r]=function(){t===!0&&console.log("---"),console.log("globalState."+n+" payload:",arguments[0]),t===!0&&console.log(new Error().stack),t===!0&&console.log("---");var s=a.apply(this,arguments);return s}}(r,e[r])},_e=async(e,t,r)=>{console.log("dispatch:",e.type,e.payload),r.dispatchStack&&console.log(new Error().stack)},De=(e,t,r)=>{const[i,a]=m.useReducer(e,t),n=m.useRef(null);var s=r.middleware;s===void 0&&(s=[]);var o=r.middlewareafter;return o===void 0&&(o=[]),m.useEffect(()=>{o.map(d=>d(n.current,i))},[o,i]),[i,d=>{s.map(u=>u(d,i,r)),n.current=d,a(d)}]},de=m.createContext(),ue=()=>m.useContext(de),Ie=(e,t)=>{var r={...e};return r[t.type.toLowerCase()]=t.payload,window.vscodeapi!==void 0&&vscodeapi.setState(r),r},Oe=e=>{if(e===void 0)return;var t=e.types,r={};for(let o in t)t.hasOwnProperty(o)&&(r["set"+o]=d=>n({type:o,payload:d}));var i={};for(let o in t)t.hasOwnProperty(o)&&(i[o.toLowerCase()]=t[o].value);m.useEffect(()=>{e.dispatchTrace&&e.middleware.push(_e)},[e]),e.actionTrace&&Pe(r,e.actionStack);const[a,n]=De(Ie,i,e),s=(o,d)=>{var u={};for(const[f]of Object.entries(d))u[f]=o[f];return u};return m.createElement(de.Provider,{value:{...s(a,i),...r}},e.children)};function F(e){if(e===null||typeof e!="object")return e;if(e instanceof Date)return new Date(e);if(Array.isArray(e)){let t=[];for(let r=0;r<e.length;r++)t[r]=F(e[r]);return t}if(e instanceof Object){let t={};for(let r in e)e.hasOwnProperty(r)&&(t[r]=F(e[r]));return t}return e}function Z(e,t){if(e===t)return!0;if(e==null||t==null)return e===t;if(typeof e!=typeof t)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!Z(e[r],t[r]))return!1;return!0}if(e instanceof Object&&t instanceof Object){let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(let a of r)if(!t.hasOwnProperty(a)||!Z(e[a],t[a]))return!1;return!0}return!1}function We({reactversion:e,extver:t,extlocation:r,exttoolkit:i,exttheme:a,type:n,packageversion:s,style:o,flexdirection:d,...u}){return c.jsxs("div",{name:"ReExtRootLogo","data-rid":u.rid,style:{display:"flex",flexDirection:d,alignItems:"center",color:"black",padding:5,...o},children:[c.jsx("img",{style:{height:40,width:80},src:"../ReExt/ReExt.png"}),c.jsxs("div",{style:{margin:"0 0 0 3px"},children:[c.jsx("div",{style:{margin:"0 0 0 1px",fontSize:12,color:"black"},children:c.jsx("a",{style:u.style,target:"_blank",rel:"noreferrer",href:"https://www.npmjs.com/package/@sencha/reext",children:c.jsxs("i",{children:["React ReExt ",s]})})}),c.jsx("div",{style:{fontSize:"10px",margin:"2px 0 0 0"},children:c.jsx("span",{style:{margin:"0 0 0 0"},children:n})}),c.jsx("div",{style:{fontSize:"10px",margin:"2px 0 0 0"},children:c.jsxs("span",{style:{margin:"0 0 0 0"},children:["React: ",c.jsx("b",{children:e})]})}),c.jsx("div",{style:{fontSize:"10px",margin:"2px 0 0 0"},children:c.jsxs("span",{style:{margin:"0 0 0 0"},children:["ExtJS: ",c.jsxs("b",{children:[t," (",r,")"]})]})}),c.jsxs("div",{style:{fontSize:"10px",margin:"2px 0 0 0"},children:[c.jsxs("span",{style:{margin:"0 0 0 0"},children:["toolkit: ",c.jsx("b",{children:i})]}),c.jsxs("span",{style:{margin:"0 0 0 5px"},children:["theme: ",c.jsx("b",{children:a})]})]})]})]})}var Je=e=>{var t=null,r=e.slice(0,2);if(r==="on"){var i=e.charAt(2),a=e.charAt(2).toUpperCase();i===a&&(t=e.slice(2).toLowerCase())}return window.Ext.isClassic===!0&&t==="tap"&&(t="click"),t},He=(e,t,r,i)=>{if(!(typeof window===void 0||typeof window>"u")){var a={};if(a.xtype=e,t!==void 0)for(let[s,o]of Object.entries(t))a[s]=o;if(r.references===!0&&(a.controller=window.Ext.create("Ext.app.ViewController")),a.store!==void 0&&(a.store.listeners!==void 0?a.store.listeners.load===void 0&&(a.store.listeners.load=s=>{r.storeloaded!==void 0&&r.storeloaded(s,i())}):a.store.listeners={load:s=>{r.storeloaded!==void 0&&r.storeloaded(s,i())}}),a.listeners===void 0){a.listeners={};for(let[s,o]of Object.entries(r)){var n=Je(s);n!==null&&(a.listeners[n]=function(){o(...arguments)})}Object.keys(a.listeners).length===0&&delete a.listeners}return a}},ze=e=>{var t=null,r=e.slice(0,2);if(r==="on"){var i=e.charAt(2),a=e.charAt(2).toUpperCase();i===a&&(t=e.slice(2).toLowerCase())}return window.Ext.isClassic===!0&&t==="tap"&&(t="click"),t},fe=(e,t,r)=>{if(!(typeof window===void 0||typeof window>"u")){var i=[],a=[];if(e===void 0)return[];e.length===void 0?a.push(e):a=e;try{return a.map(n=>{var s,o;if(t.xtype==="tabpanel"){var d;window.Ext.ReExtTheme==="classic"?d="Ext.panel.Panel":d="Ext.Panel",s=window.Ext.create(d,{layout:"fit",title:n.props.title,cls:"ReExtTabChildRoot",items:[{xtype:"component",listeners:{boxready:w=>{o=U.createPortal(n,w.el.dom),i.push(o);var g=w.el.dom.parentNode;r.observe(g)}},style:{backgroundColor:"transparent",display:"flex",height:"100%",width:"100%"}}]}),t.add(s),window.Ext.isClassic===!0?u="Ext.container.Container":u="Ext.Container",window.Ext.isClassic!==!0&&(o=U.createPortal(n,s.items.items[0].el.dom),i.push(o))}else{var u;window.Ext.isClassic===!0?u="Ext.container.Container":u="Ext.Container",s=window.Ext.create(u,{cls:"ReExtWidgetRoot"}),t.add(s);var f=m.cloneElement(n,{ReExtParent:t});window.Ext.isClassic===!0?o=U.createPortal(f,s.el.dom):o=U.createPortal(f,s.innerElement.dom),i.push(o)}}),i}catch(n){return console.error("iteratechldren:",n.toString()),[]}}},Ne=(e,t,r)=>{if(!(typeof window===void 0||typeof window>"u")){var i=n=>{let s=n.charAt(0).toUpperCase(),o=n.slice(1);var d="set"+(s+o);return d},a;window.Ext.isClassic===!0?t==="items"?(e.removeAll(!0),e.add(r)):t!=="layout"&&(a=i(t),e[a]!==void 0?e[a](r):e[t]=r):(a=i(t),e[a]!==void 0&&e[a](r))}},Ke=()=>{var e;return typeof ResizeObserver<"u"?(e=new ResizeObserver(t=>{if(!(typeof window===void 0||typeof window>"u"))for(let o of t){var r=0,i=o.target.children.item(r);if(i!==null&&o.contentBoxSize){let d=o.contentBoxSize[0];var a=d.inlineSize,n=window.Ext.getCmp(i.id);if(n!==void 0)window.Ext.getCmp(i.id).setWidth(a),window.Ext.getCmp(i.id).setHeight(d.blockSize);else if(!i.classList.contains("wm")){console.log("child not found",i.id);var s=i.getAttribute("w");s!=="w"&&console.warn("child not resized",i)}}}}),e):null};async function Me(){return await new Promise(e=>{function t(){window.Ext!==void 0&&window.Ext.onReady(function(){return clearInterval(r),e(1)})}var r=setInterval(t,5)})}var Le=(e,t,r)=>{if(typeof window>"u")return;let i=document.createElement("div");i.classList.add("wm"),i.style.zIndex=2e4,i.style.position="absolute",i.style.bottom="0px",i.style.right="0px",i.style.color="white",i.style.fontSize="10px",i.style.fontWeight="bold",i.style.fontStyle="italic",i.style.background="#B87333",i.style.padding="1px 3px 1px 1px",i.style.border="1px solid lightgray",i.style.borderRadius="3px 3px 3px 3px",i.innerText="ReExt "+t,r!==null?r.appendChild(i):e.el!==void 0&&e.el.dom.appendChild(i)};function Ue(e){const t=ue();if(typeof window===void 0||typeof window>"u")return;const[r,i]=m.useState(null),[a,n]=m.useState(null),s=m.useRef(null);s.current=a;const o=()=>s.current,[d,u]=m.useState(null),f=m.useRef(null);f.current=d;const w=()=>f.current,g=m.useRef(null);var p=Ke();m.useEffect(()=>{var l,P="false";if(!(typeof window===void 0||typeof window>"u"))return(async()=>{if(await Me(),e.children!==void 0&&e.config.items===void 0&&(e.config.items=[]),P==="false"&&e.xtype!=="logo"){var E;w()==null?E=e.config:E=w();try{var h=He(e.xtype,E,e,o),$=Ext.ClassManager.getByAlias("widget."+h.xtype);if($===void 0){var k="ReExt "+h.xtype+" could not be created";h={xtype:"label",text:k,style:{color:"red",background:"lightgray"}}}if(h.height===void 0&&h.xtype!=="window"&&(window.Ext.isClassic===!0&&h.xtype==="grid"?h.height=0:h.height="100%"),h.width===void 0&&h.xtype!=="window"&&(window.Ext.isClassic===!0&&h.xtype==="grid"?h.width=0:h.width="100%"),window.Ext.isClassic===!0){const v=_=>{var D=_.el.dom.parentNode;p.observe(D)};h.listeners===void 0?h.listeners={boxready:v}:h.listeners.boxready=v}h.xtype!=="window"&&(h.renderTo=g.current),l=window.Ext.create(h),n(l),s.current=l,e.config!==void 0&&e.config.reference!==void 0&&e.ReExtParent!==void 0&&(e.ReExtParent.ReExtChildren===void 0&&(e.ReExtParent.ReExtChildren=[]),e.ReExtParent.ReExtChildren.push(l)),g.current===null?console.warn("ReExtRootRef.current,props",g.current,e):(g.current.style.background="transparent",g.current.firstChild.remove());var b=fe(e.children,l,p);i(b),t.type!==null&&t.type!=="production"&&Le(l,h.xtype,g.current),e.ready!==void 0&&e.ready(l)}catch(v){console.error(v)}}})(),()=>{P="true",!(typeof window===void 0||typeof window>"u")&&window.Ext!==void 0&&window.Ext.destroy!==void 0&&l!=null&&(n(null),window.Ext.destroy(l))}},[t.type]),m.useEffect(()=>{if(!(typeof window===void 0||typeof window>"u")&&e.config!==void 0){if(s.current!==null){e.children!==void 0&&e.config.items===void 0&&(e.config.items=[]);for(const[b]of Object.entries(f.current)){if(ze(b)!=null||b==="xtype")return;var l=F(f.current[b]),P=F(e.config[b]);l!=null&&delete l.listeners,P!==void 0&&l!==null&&delete P.listeners;const v=_=>{let D=[],ir=JSON.stringify(_,function(mr,L){if(typeof L=="object"&&L!==null){if(D.indexOf(L)!==-1)return;D.push(L)}return L});return D=null,ir};var E=v(l),h=v(P),$=Z(E,h);if(!$&&(Ne(s.current,b,P),b==="items")){var k=fe(e.children,s.current,p);i(k)}}}u(e.config),f.current=e.config}},[e.config]);var A="",y="",H="",Q="";if(!(typeof window===void 0||typeof window>"u")){if(window.Ext!==void 0&&window.Ext.versions!==null&&window.Ext.versions!==void 0){y=window.Ext.versions.core.version,Q=window.Ext.ReExtTheme,A=window.Ext.ReExtLocation;var le=window.Ext.isClassic;le===!0?H="classic":H="modern"}if(!(typeof window===void 0||typeof window>"u")){var I="";if(t.type==="production"||t.type===null?I="production":I=`${t.type} - ${t.daysleft} days left`,e.xtype==="logo")return c.jsx(We,{reactversion:m.version,extver:y,extlocation:A,exttoolkit:H,exttheme:Q,type:I,packageversion:ce.version,flexdirection:e.flexdirection,style:e.style});var x;e.style===void 0||e.style.height===void 0?x=1:x="none";var M="";return e.className!==void 0&&(M=e.className),e.xtype==="window"?null:c.jsxs("div",{name:"ReExtRoot-"+e.xtype,"data-rid":e.rid,className:M+" fill",style:{...e.style,flex:x,position:"relative",display:"flex",overflow:"hidden"},ref:g,children:[c.jsx("div",{style:{display:"flex",flex:1,alignItems:"center",justifyContent:"center"}}),r!==null&&r.map(l=>l)]})}}}async function Fe(){if(typeof window===void 0||typeof window>"u")return;function e(t){t.style.width="100%",t.style.height="100%",t.style.margin="0",t.style.padding="0",t.style.padding="0",t.style.boxSizing="border-box",t.style.overflow="hidden"}document.documentElement&&e(document.documentElement),document.body&&e(document.body),document.getElementById("root")&&e(document.getElementById("root"))}function Be(){if(!(typeof window===void 0||typeof window>"u"))return c.jsx("div",{className:"splash",style:{fontSize:"36px",border:"10px solid #0960a5",width:"100%",height:"100%",margin:0,padding:0,boxSizing:"border-box",overflow:"hidden",display:"flex",flexDirection:"column",flex:1,justifyContent:"center",alignItems:"center"},children:c.jsx("img",{style:{height:500,width:1e3},src:"../ReExt/ReExt.png"})})}var qe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ve=qe(()=>{}),ee=crypto,pe=e=>e instanceof CryptoKey,B=new TextEncoder,z=new TextDecoder;function Ge(...e){let t=e.reduce((a,{length:n})=>a+n,0),r=new Uint8Array(t),i=0;for(let a of e)r.set(a,i),i+=a.length;return r}var Xe=e=>{let t=atob(e),r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=t.charCodeAt(i);return r},N=e=>{let t=e;t instanceof Uint8Array&&(t=z.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return Xe(t)}catch{throw new TypeError("The input to be decoded is not correctly encoded.")}},O=class extends Error{static get code(){return"ERR_JOSE_GENERIC"}constructor(e){var t;super(e),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,(t=Error.captureStackTrace)==null||t.call(Error,this,this.constructor)}},j=class extends O{static get code(){return"ERR_JWT_CLAIM_VALIDATION_FAILED"}constructor(e,t,r="unspecified",i="unspecified"){super(e),this.code="ERR_JWT_CLAIM_VALIDATION_FAILED",this.claim=r,this.reason=i,this.payload=t}},ye=class extends O{static get code(){return"ERR_JWT_EXPIRED"}constructor(e,t,r="unspecified",i="unspecified"){super(e),this.code="ERR_JWT_EXPIRED",this.claim=r,this.reason=i,this.payload=t}},W=class extends O{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}static get code(){return"ERR_JOSE_NOT_SUPPORTED"}},S=class extends O{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}static get code(){return"ERR_JWS_INVALID"}},R=class extends O{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}static get code(){return"ERR_JWT_INVALID"}},Ye=class extends O{constructor(){super(...arguments),this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED",this.message="signature verification failed"}static get code(){return"ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}};function T(e,t="algorithm.name"){return new TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`)}function q(e,t){return e.name===t}function te(e){return parseInt(e.name.slice(4),10)}function Qe(e){switch(e){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw new Error("unreachable")}}function Ze(e,t){if(t.length&&!t.some(r=>e.usages.includes(r))){let r="CryptoKey does not support this operation, its usages must include ";if(t.length>2){let i=t.pop();r+=`one of ${t.join(", ")}, or ${i}.`}else t.length===2?r+=`one of ${t[0]} or ${t[1]}.`:r+=`${t[0]}.`;throw new TypeError(r)}}function et(e,t,...r){switch(t){case"HS256":case"HS384":case"HS512":{if(!q(e.algorithm,"HMAC"))throw T("HMAC");let i=parseInt(t.slice(2),10);if(te(e.algorithm.hash)!==i)throw T(`SHA-${i}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!q(e.algorithm,"RSASSA-PKCS1-v1_5"))throw T("RSASSA-PKCS1-v1_5");let i=parseInt(t.slice(2),10);if(te(e.algorithm.hash)!==i)throw T(`SHA-${i}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!q(e.algorithm,"RSA-PSS"))throw T("RSA-PSS");let i=parseInt(t.slice(2),10);if(te(e.algorithm.hash)!==i)throw T(`SHA-${i}`,"algorithm.hash");break}case"EdDSA":{if(e.algorithm.name!=="Ed25519"&&e.algorithm.name!=="Ed448")throw T("Ed25519 or Ed448");break}case"ES256":case"ES384":case"ES512":{if(!q(e.algorithm,"ECDSA"))throw T("ECDSA");let i=Qe(t);if(e.algorithm.namedCurve!==i)throw T(i,"algorithm.namedCurve");break}default:throw new TypeError("CryptoKey does not support this operation")}Ze(e,r)}function he(e,t,...r){var i;if(r.length>2){let a=r.pop();e+=`one of type ${r.join(", ")}, or ${a}.`}else r.length===2?e+=`one of type ${r[0]} or ${r[1]}.`:e+=`of type ${r[0]}.`;return t==null?e+=` Received ${t}`:typeof t=="function"&&t.name?e+=` Received function ${t.name}`:typeof t=="object"&&t!=null&&((i=t.constructor)!=null&&i.name)&&(e+=` Received an instance of ${t.constructor.name}`),e}var we=(e,...t)=>he("Key must be ",e,...t);function me(e,t,...r){return he(`Key for the ${e} algorithm must be `,t,...r)}var ve=e=>pe(e)?!0:(e==null?void 0:e[Symbol.toStringTag])==="KeyObject",V=["CryptoKey"],tt=(...e)=>{let t=e.filter(Boolean);if(t.length===0||t.length===1)return!0;let r;for(let i of t){let a=Object.keys(i);if(!r||r.size===0){r=new Set(a);continue}for(let n of a){if(r.has(n))return!1;r.add(n)}}return!0},rt=tt;function it(e){return typeof e=="object"&&e!==null}function G(e){if(!it(e)||Object.prototype.toString.call(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}var at=(e,t)=>{if(e.startsWith("RS")||e.startsWith("PS")){let{modulusLength:r}=t.algorithm;if(typeof r!="number"||r<2048)throw new TypeError(`${e} requires key modulusLength to be 2048 bits or larger`)}};function nt(e){let t,r;switch(e.kty){case"RSA":{switch(e.alg){case"PS256":case"PS384":case"PS512":t={name:"RSA-PSS",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":t={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":t={name:"RSA-OAEP",hash:`SHA-${parseInt(e.alg.slice(-3),10)||1}`},r=e.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new W('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}case"EC":{switch(e.alg){case"ES256":t={name:"ECDSA",namedCurve:"P-256"},r=e.d?["sign"]:["verify"];break;case"ES384":t={name:"ECDSA",namedCurve:"P-384"},r=e.d?["sign"]:["verify"];break;case"ES512":t={name:"ECDSA",namedCurve:"P-521"},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:"ECDH",namedCurve:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new W('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}case"OKP":{switch(e.alg){case"EdDSA":t={name:e.crv},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new W('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}default:throw new W('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:t,keyUsages:r}}var st=async e=>{if(!e.alg)throw new TypeError('"alg" argument is required when "jwk.alg" is not present');let{algorithm:t,keyUsages:r}=nt(e),i=[t,e.ext??!1,e.key_ops??r],a={...e};return delete a.alg,delete a.use,ee.subtle.importKey("jwk",a,...i)},ot=st,ge=e=>N(e),re,ie,be=e=>(e==null?void 0:e[Symbol.toStringTag])==="KeyObject",xe=async(e,t,r,i)=>{let a=e.get(t);if(a!=null&&a[i])return a[i];let n=await ot({...r,alg:i});return a?a[i]=n:e.set(t,{[i]:n}),n},lt=(e,t)=>{if(be(e)){let r=e.export({format:"jwk"});return delete r.d,delete r.dp,delete r.dq,delete r.p,delete r.q,delete r.qi,r.k?ge(r.k):(ie||(ie=new WeakMap),xe(ie,e,r,t))}return e},ct=(e,t)=>{if(be(e)){let r=e.export({format:"jwk"});return r.k?ge(r.k):(re||(re=new WeakMap),xe(re,e,r,t))}return e},dt={normalizePublicKey:lt,normalizePrivateKey:ct},J=e=>e==null?void 0:e[Symbol.toStringTag],ut=(e,t)=>{if(!(t instanceof Uint8Array)){if(!ve(t))throw new TypeError(me(e,t,...V,"Uint8Array"));if(t.type!=="secret")throw new TypeError(`${J(t)} instances for symmetric algorithms must be of type "secret"`)}},ft=(e,t,r)=>{if(!ve(t))throw new TypeError(me(e,t,...V));if(t.type==="secret")throw new TypeError(`${J(t)} instances for asymmetric algorithms must not be of type "secret"`);if(r==="sign"&&t.type==="public")throw new TypeError(`${J(t)} instances for asymmetric algorithm signing must be of type "private"`);if(r==="decrypt"&&t.type==="public")throw new TypeError(`${J(t)} instances for asymmetric algorithm decryption must be of type "private"`);if(t.algorithm&&r==="verify"&&t.type==="private")throw new TypeError(`${J(t)} instances for asymmetric algorithm verifying must be of type "public"`);if(t.algorithm&&r==="encrypt"&&t.type==="private")throw new TypeError(`${J(t)} instances for asymmetric algorithm encryption must be of type "public"`)},pt=(e,t,r)=>{e.startsWith("HS")||e==="dir"||e.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(e)?ut(e,t):ft(e,t,r)},yt=pt;function ht(e,t,r,i,a){if(a.crit!==void 0&&(i==null?void 0:i.crit)===void 0)throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');if(!i||i.crit===void 0)return new Set;if(!Array.isArray(i.crit)||i.crit.length===0||i.crit.some(s=>typeof s!="string"||s.length===0))throw new e('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');let n;r!==void 0?n=new Map([...Object.entries(r),...t.entries()]):n=t;for(let s of i.crit){if(!n.has(s))throw new W(`Extension Header Parameter "${s}" is not recognized`);if(a[s]===void 0)throw new e(`Extension Header Parameter "${s}" is missing`);if(n.get(s)&&i[s]===void 0)throw new e(`Extension Header Parameter "${s}" MUST be integrity protected`)}return new Set(i.crit)}var wt=ht;function mt(e,t){let r=`SHA-${e.slice(-3)}`;switch(e){case"HS256":case"HS384":case"HS512":return{hash:r,name:"HMAC"};case"PS256":case"PS384":case"PS512":return{hash:r,name:"RSA-PSS",saltLength:e.slice(-3)>>3};case"RS256":case"RS384":case"RS512":return{hash:r,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:r,name:"ECDSA",namedCurve:t.namedCurve};case"EdDSA":return{name:t.name};default:throw new W(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}async function vt(e,t,r){if(t=await dt.normalizePublicKey(t,e),pe(t))return et(t,e,r),t;if(t instanceof Uint8Array){if(!e.startsWith("HS"))throw new TypeError(we(t,...V));return ee.subtle.importKey("raw",t,{hash:`SHA-${e.slice(-3)}`,name:"HMAC"},!1,[r])}throw new TypeError(we(t,...V,"Uint8Array"))}var gt=async(e,t,r,i)=>{let a=await vt(e,t,"verify");at(e,a);let n=mt(e,a.algorithm);try{return await ee.subtle.verify(n,a,r,i)}catch{return!1}},bt=gt;async function xt(e,t,r){if(!G(e))throw new S("Flattened JWS must be an object");if(e.protected===void 0&&e.header===void 0)throw new S('Flattened JWS must have either of the "protected" or "header" members');if(e.protected!==void 0&&typeof e.protected!="string")throw new S("JWS Protected Header incorrect type");if(e.payload===void 0)throw new S("JWS Payload missing");if(typeof e.signature!="string")throw new S("JWS Signature missing or incorrect type");if(e.header!==void 0&&!G(e.header))throw new S("JWS Unprotected Header incorrect type");let i={};if(e.protected)try{let p=N(e.protected);i=JSON.parse(z.decode(p))}catch{throw new S("JWS Protected Header is invalid")}if(!rt(i,e.header))throw new S("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");let a={...i,...e.header},n=wt(S,new Map([["b64",!0]]),r==null?void 0:r.crit,i,a),s=!0;if(n.has("b64")&&(s=i.b64,typeof s!="boolean"))throw new S('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:o}=a;if(typeof o!="string"||!o)throw new S('JWS "alg" (Algorithm) Header Parameter missing or invalid');if(s){if(typeof e.payload!="string")throw new S("JWS Payload must be a string")}else if(typeof e.payload!="string"&&!(e.payload instanceof Uint8Array))throw new S("JWS Payload must be a string or an Uint8Array instance");let d=!1;typeof t=="function"&&(t=await t(i,e),d=!0),yt(o,t,"verify");let u=Ge(B.encode(e.protected??""),B.encode("."),typeof e.payload=="string"?B.encode(e.payload):e.payload),f;try{f=N(e.signature)}catch{throw new S("Failed to base64url decode the signature")}if(!await bt(o,t,f,u))throw new Ye;let w;if(s)try{w=N(e.payload)}catch{throw new S("Failed to base64url decode the payload")}else typeof e.payload=="string"?w=B.encode(e.payload):w=e.payload;let g={payload:w};return e.protected!==void 0&&(g.protectedHeader=i),e.header!==void 0&&(g.unprotectedHeader=e.header),d?{...g,key:t}:g}async function Et(e,t,r){if(e instanceof Uint8Array&&(e=z.decode(e)),typeof e!="string")throw new S("Compact JWS must be a string or Uint8Array");let{0:i,1:a,2:n,length:s}=e.split(".");if(s!==3)throw new S("Invalid Compact JWS");let o=await xt({payload:a,protected:i,signature:n},t,r),d={payload:o.payload,protectedHeader:o.protectedHeader};return typeof t=="function"?{...d,key:o.key}:d}var St=e=>Math.floor(e.getTime()/1e3),$t=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i,Ee=e=>{let t=$t.exec(e);if(!t||t[4]&&t[1])throw new TypeError("Invalid time period format");let r=parseFloat(t[2]),i=t[3].toLowerCase(),a;switch(i){case"sec":case"secs":case"second":case"seconds":case"s":a=Math.round(r);break;case"minute":case"minutes":case"min":case"mins":case"m":a=Math.round(r*60);break;case"hour":case"hours":case"hr":case"hrs":case"h":a=Math.round(r*3600);break;case"day":case"days":case"d":a=Math.round(r*86400);break;case"week":case"weeks":case"w":a=Math.round(r*604800);break;default:a=Math.round(r*31557600);break}return t[1]==="-"||t[4]==="ago"?-a:a},Se=e=>e.toLowerCase().replace(/^application\//,""),kt=(e,t)=>typeof e=="string"?t.includes(e):Array.isArray(e)?t.some(Set.prototype.has.bind(new Set(e))):!1,Ct=(e,t,r={})=>{let i;try{i=JSON.parse(z.decode(t))}catch{}if(!G(i))throw new R("JWT Claims Set must be a top-level JSON object");let{typ:a}=r;if(a&&(typeof e.typ!="string"||Se(e.typ)!==Se(a)))throw new j('unexpected "typ" JWT header value',i,"typ","check_failed");let{requiredClaims:n=[],issuer:s,subject:o,audience:d,maxTokenAge:u}=r,f=[...n];u!==void 0&&f.push("iat"),d!==void 0&&f.push("aud"),o!==void 0&&f.push("sub"),s!==void 0&&f.push("iss");for(let A of new Set(f.reverse()))if(!(A in i))throw new j(`missing required "${A}" claim`,i,A,"missing");if(s&&!(Array.isArray(s)?s:[s]).includes(i.iss))throw new j('unexpected "iss" claim value',i,"iss","check_failed");if(o&&i.sub!==o)throw new j('unexpected "sub" claim value',i,"sub","check_failed");if(d&&!kt(i.aud,typeof d=="string"?[d]:d))throw new j('unexpected "aud" claim value',i,"aud","check_failed");let w;switch(typeof r.clockTolerance){case"string":w=Ee(r.clockTolerance);break;case"number":w=r.clockTolerance;break;case"undefined":w=0;break;default:throw new TypeError("Invalid clockTolerance option type")}let{currentDate:g}=r,p=St(g||new Date);if((i.iat!==void 0||u)&&typeof i.iat!="number")throw new j('"iat" claim must be a number',i,"iat","invalid");if(i.nbf!==void 0){if(typeof i.nbf!="number")throw new j('"nbf" claim must be a number',i,"nbf","invalid");if(i.nbf>p+w)throw new j('"nbf" claim timestamp check failed',i,"nbf","check_failed")}if(i.exp!==void 0){if(typeof i.exp!="number")throw new j('"exp" claim must be a number',i,"exp","invalid");if(i.exp<=p-w)throw new ye('"exp" claim timestamp check failed',i,"exp","check_failed")}if(u){let A=p-i.iat,y=typeof u=="number"?u:Ee(u);if(A-w>y)throw new ye('"iat" claim timestamp check failed (too far in the past)',i,"iat","check_failed");if(A<0-w)throw new j('"iat" claim timestamp check failed (it should be in the past)',i,"iat","check_failed")}return i};async function At(e,t,r){var n;let i=await Et(e,t,r);if((n=i.protectedHeader.crit)!=null&&n.includes("b64")&&i.protectedHeader.b64===!1)throw new R("JWTs MUST NOT use unencoded payload");let a={payload:Ct(i.protectedHeader,i.payload,r),protectedHeader:i.protectedHeader};return typeof t=="function"?{...a,key:i.key}:a}var jt=N;function Rt(e){if(typeof e!="string")throw new R("JWTs must use Compact JWS serialization, JWT must be a string");let{1:t,length:r}=e.split(".");if(r===5)throw new R("Only JWTs using Compact JWS serialization can be decoded");if(r!==3)throw new R("Invalid JWT");if(!t)throw new R("JWTs must contain a payload");let i;try{i=jt(t)}catch{throw new R("Failed to base64url decode the payload")}let a;try{a=JSON.parse(z.decode(i))}catch{throw new R("Failed to parse the decoded payload as JSON")}if(!G(a))throw new R("Invalid JWT Claims Set");return a}function X(e){var t=new Error(e);return t.source="ulid",t}var ae="0123456789ABCDEFGHJKMNPQRSTVWXYZ",K=ae.length,$e=Math.pow(2,48)-1,Tt=10,Pt=16;function _t(e){var t=Math.floor(e()*K);return t===K&&(t=K-1),ae.charAt(t)}function Dt(e,t){if(isNaN(e))throw new Error(e+" must be a number");if(e>$e)throw X("cannot encode time greater than "+$e);if(e<0)throw X("time must be positive");if(Number.isInteger(e)===!1)throw X("time must be an integer");for(var r=void 0,i="";t>0;t--)r=e%K,i=ae.charAt(r)+i,e=(e-r)/K;return i}function It(e,t){for(var r="";e>0;e--)r=_t(t)+r;return r}function Ot(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=arguments[1];t||(t=typeof window<"u"?window:null);var r=t&&(t.crypto||t.msCrypto);if(r)return function(){var a=new Uint8Array(1);return r.getRandomValues(a),a[0]/255};try{var i=Ve();return function(){return i.randomBytes(1).readUInt8()/255}}catch{}if(e){try{console.error("secure crypto unusable, falling back to insecure Math.random()!")}catch{}return function(){return Math.random()}}throw X("secure crypto unusable, insecure Math.random not allowed")}function Wt(e){return e||(e=Ot()),function(t){return isNaN(t)&&(t=Date.now()),Dt(t,Tt)+It(Pt,e)}}Wt();var ne;function Jt(e){return ne==null?void 0:ne.get(e)}var se;function Ht(e){return se==null?void 0:se.get(e)}var oe;function zt(e,t){var r;return(r=oe==null?void 0:oe.get(e))==null?void 0:r.get(t)}function Nt(e){var r,i;let t=typeof e;return t==="string"?`"${e}"`:t==="number"||t==="bigint"||t==="boolean"?`${e}`:t==="object"||t==="function"?(e&&((i=(r=Object.getPrototypeOf(e))==null?void 0:r.constructor)==null?void 0:i.name))??"null":t}function Y(e,t,r,i,a){let n=a&&"input"in a?a.input:r.value,s=(a==null?void 0:a.expected)??e.expects??null,o=(a==null?void 0:a.received)??Nt(n),d={kind:e.kind,type:e.type,input:n,expected:s,received:o,message:`Invalid ${t}: ${s?`Expected ${s} but r`:"R"}eceived ${o}`,requirement:e.requirement,path:a==null?void 0:a.path,issues:a==null?void 0:a.issues,lang:i.lang,abortEarly:i.abortEarly,abortPipeEarly:i.abortPipeEarly},u=e.kind==="schema",f=(a==null?void 0:a.message)??e.message??zt(e.reference,d.lang)??(u?Ht(d.lang):null)??i.message??Jt(d.lang);f&&(d.message=typeof f=="function"?f(d):f),u&&(r.typed=!1),r.issues?r.issues.push(d):r.issues=[d]}function ke(e){return{kind:"transformation",type:"brand",reference:ke,async:!1,name:e,_run(t){return t}}}function Kt(e,t,r){return typeof e.default=="function"?e.default(t,r):e.default}function Ce(e){return{kind:"schema",type:"number",reference:Ce,expects:"number",async:!1,message:e,_run(t,r){return typeof t.value=="number"&&!isNaN(t.value)?t.typed=!0:Y(this,"type",t,r),t}}}function Ae(e,...t){let r={kind:"schema",type:"optional",reference:Ae,expects:`${e.expects} | undefined`,async:!1,wrapped:e,_run(i,a){return i.value===void 0&&("default"in this&&(i.value=Kt(this,i,a)),i.value===void 0)?(i.typed=!0,i):this.wrapped._run(i,a)}};return 0 in t&&(r.default=t[0]),r}function je(e,t){return{kind:"schema",type:"strict_object",reference:je,expects:"Object",async:!1,entries:e,message:t,_run(r,i){var n;let a=r.value;if(a&&typeof a=="object"){r.typed=!0,r.value={};for(let s in this.entries){let o=a[s],d=this.entries[s]._run({typed:!1,value:o},i);if(d.issues){let u={type:"object",origin:"value",input:a,key:s,value:o};for(let f of d.issues)f.path?f.path.unshift(u):f.path=[u],(n=r.issues)==null||n.push(f);if(r.issues||(r.issues=d.issues),i.abortEarly){r.typed=!1;break}}d.typed||(r.typed=!1),(d.value!==void 0||s in a)&&(r.value[s]=d.value)}if(!r.issues||!i.abortEarly){for(let s in a)if(!(s in this.entries)){let o=a[s];Y(this,"type",r,i,{input:o,expected:"never",path:[{type:"object",origin:"value",input:a,key:s,value:o}]});break}}}else Y(this,"type",r,i);return r}}}function Re(e){return{kind:"schema",type:"string",reference:Re,expects:"string",async:!1,message:e,_run(t,r){return typeof t.value=="string"?t.typed=!0:Y(this,"type",t,r),t}}}function Mt(...e){return{...e[0],pipe:e,_run(t,r){for(let i of e)if(i.kind!=="metadata"){if(t.issues&&(i.kind==="schema"||i.kind==="transformation")){t.typed=!1;break}(!t.issues||!r.abortEarly&&!r.abortPipeEarly)&&(t=i._run(t,r))}return t}}}var Lt=Mt(Re(),ke("lid"));je({id:Lt,ver:Ae(Ce())});var Ut=e=>()=>e*48271%2147483647/2147483647,Ft=e=>typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(typeof e=="string"?e:String.fromCharCode(...e)),Bt=e=>typeof Buffer<"u"?Buffer.from(e,"base64").toString():atob(e),qt=(e,t)=>{let r=Ut(t),i=new TextEncoder().encode(e).map(a=>a^Math.floor(r()*256));return Ft(i)},Vt=e=>e.split("").reverse().join(""),Gt=e=>typeof e=="object"&&!!e&&"sub"in e&&"exp"in e&&typeof e.sub=="string"&&typeof e.exp=="number",Xt=async e=>{let t=Vt(Bt(e));return{decoded:Rt(t),jwt:t}},Yt=async e=>{let{decoded:t,jwt:r}=await Xt(e);if(!Gt(t))throw new Error("Invalid license key");let{sub:i,exp:a}=t,n=new TextEncoder().encode(qt(i,a));return await At(r,n),t};function Qt({r:e,v:t,t:r}){const i=ue();if(m.useEffect(()=>{e!==void 0&&e.toLowerCase().includes("ehsug")?i.setType("production"):i.setType(r)},[]),m.useEffect(()=>{const a=async s=>{if(s===void 0)return{type:"nokey",daysleft:0};try{const o=await Yt(s),f=new Date(o.exp*1e3)-new Date,w=Math.floor(f/(1e3*60*60*24));return w>0?{type:"trial",daysleft:w}:{type:"expired",daysleft:0}}catch(o){return o.message.includes("claim timestamp check failed")?{type:"expired",daysleft:0}:{type:"invalidkey",daysleft:0}}},n=async()=>{var s=await a(e);switch(i.setType(s.type),i.setDaysLeft(s.daysleft),s.type){case"production":case"trial":i.setTrialDialog(!1);break;case"nokey":case"expired":case"invalidkey":default:i.setTrialDialog(!0);break}};i.type!==null&&i.type!=="production"&&n()},[i.type]),i.type!=="production"&&i.trialdialog===!0)return c.jsx("div",{style:{zIndex:2e5,fontSize:"22px",background:"rgb(211,211,211,.4)",color:"black",display:"flex",flexDirection:"column",position:"absolute",left:"50%",width:"100%",height:"100%",transform:"translateX(-50%)",padding:"10px 10px 10px 10px",border:"1px solid black"},children:c.jsxs("div",{style:{height:"100%",display:"flex",padding:"10px 10px 10px 10px",flexDirection:"column",margin:"40px",borderRadius:"5px",border:"1px solid gray",background:"white"},children:[c.jsxs("div",{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:[c.jsx("img",{style:{width:160},src:"../ReExt/ReExt.png"}),c.jsxs("div",{style:{margin:"0 0 0 20px"},children:["Welcome to the React ReExt v",t," Trial"]})]}),i.type==="trial"||i.type==="nokey"&&c.jsxs(c.Fragment,{children:[c.jsxs("div",{style:{margin:"10px 0 10px 0",fontSize:"18px"},children:["This is a 30 day trial version of React ReExt.",c.jsx("br",{}),"Without a valid trial key, this dialog will appear.",c.jsx("br",{}),c.jsx("br",{}),"To have a trial key emailed to you, fill in this form and click 'Get Trial Key'."]}),c.jsx("div",{style:{xwidth:"100%",flex:1,display:"flex",border:"0px solid red"},children:c.jsx("iframe",{style:{width:"100%",margin:"0 0 10px 0",flex:1,border:"1px solid lightgray"},src:"https://www.sencha.com/forms/reext/register-for-reext-trial.html"})}),c.jsxs("div",{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"flex-end"},children:[c.jsx("div",{style:{fontSize:"12px"},children:i.type}),c.jsx("button",{style:{fontSize:"18px",padding:"5px 5px 5px 5px"},onClick:()=>{i.setTrialDialog(!1)},children:"Close"})]})]}),i.type==="expired"&&c.jsx(c.Fragment,{children:c.jsxs("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",margin:"10px 0 10px 0",fontSize:"18px",height:"100%"},children:[c.jsx("div",{style:{margin:"0 0 20px 0",fontSize:"24px"},children:"Your React ReExt trial key has expired"}),c.jsx("div",{children:"Contact Sencha Sales"}),c.jsx("div",{children:c.jsx("a",{href:"https://www.sencha.com/company/contact/",target:"_blank",rel:"noopener noreferrer",children:"https://www.sencha.com/company/contact/"})})]})}),i.type==="invalidkey"&&c.jsx(c.Fragment,{children:c.jsxs("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",margin:"10px 0 10px 0",fontSize:"18px",height:"100%"},children:[c.jsx("div",{style:{margin:"0 0 20px 0",fontSize:"24px"},children:"Your React ReExt trial key is invalid"}),c.jsx("div",{children:"Contact Sencha Sales"}),c.jsx("div",{children:c.jsx("a",{href:"https://www.sencha.com/company/contact/",target:"_blank",rel:"noopener noreferrer",children:"https://www.sencha.com/company/contact/"})})]})})]})})}async function Zt(e){let t=async(E,h,$)=>await new Promise(k=>{window.Ext.onReady(function(){return window.Ext.ReExtLocation=$,window.Ext.ReExtTheme=E,window.Ext.ReExtLi=!0,k(1)})}),r=async E=>typeof window===void 0||typeof window>"u"?void 0:await new Promise((h,$)=>{let k=document.getElementsByTagName("HEAD")[0];var b=!1;for(let v=0;v<k.childNodes.length;v++)k.childNodes[v].src===E&&(b=!0);if(b===!1){let v=document.createElement("script");v.addEventListener("load",()=>h(1)),v.addEventListener("error",()=>{var _=`${E} (js) could not be loaded - copy the node_modules/@sencha/reext/ext folder to the project's public folder`;console.error(_),$(_)}),v.src=E,k.appendChild(v)}}),i=async E=>typeof window===void 0||typeof window>"u"?void 0:await new Promise((h,$)=>{let k=document.getElementsByTagName("HEAD")[0],b=document.createElement("link");b.rel="stylesheet",b.type="text/css",b.href=E,b.addEventListener("error",()=>{var v=`${E} (css) could not be loaded - copy the node_modules/@sencha/reext/ext folder to the project's public folder`;return console.error(v),$(v)}),b.addEventListener("load",()=>h(1)),k.appendChild(b)});var a=e.toolkit;(a==null||a==="")&&(a="modern");var n=e.theme;(n==null||n==="")&&(n="material");var s=e.packages;s===void 0&&(s={charts:!1,fontawesome:!1,ux:!1,calendar:!1,d3:!1,exporter:!1,pivot:!1,pivotd3:!1,pivotlocale:!1,froalaeditor:!1});var o=e.debug,d=e.license,u=e.urlbase,f=e.location;(f==="remote"||f===null)&&(u="https://cdn.sencha.com/reext/ext/");var w=e.rtl;w===!1||w===void 0?w="":w="-rtl";var g=e.locale;g===void 0&&(g="en");var p=e.sdkversion;switch(p){case"7.0.0":p=p+".156";break;case"7.1.0":p=p+".46";break;case"7.2.0":case"7.3.0":case"7.3.1":case"7.4.0":case"7.5.0":case"7.5.1":case"7.6.0":case"7.7.0":case"7.8.0":break;default:throw`SDK version ${p} is not valid`}var A=u+"ext-"+p,y=u+"ext-addons-"+p;o===!0?o="-debug":o="";var H="";a==="modern"&&(H="-modern");var Q=["ios","material","neptune","triton"];if(a==="modern"&&!Q.includes(n))throw`${n} theme is not in ${a} toolkit for SDK version ${p}`;var le=["classic","crisp","graphite","gray","material","neptune","triton"];a==="classic"&&!le.includes(n)&&console.warn(`${n} is a custom theme in ${a} toolkit for SDK version ${p}`);var I=!1;(s.calendar===!0||s.d3===!0||s.exporter===!0||s.pivot===!0||s.pivotd3===!0||s.pivotlocale===!0||s.froalaeditor===!0)&&(I=!0),e.debug===!0&&await r("node_modules/@sencha/reext/dist/ReExt/debug.js");var x=A+"/build";if(p.slice(-1)==="c"){await r(`${x}/ext-${p}-toolkit-${a}-sdk.js`),await i(`${x}/ext-${p}-theme-${n}-sdk.css`),I===!0&&(await r(`${A}/ext-${p}-toolkit-${a}-addons.js`),await i(`${A}/ext-${p}-theme-${n}-addons.css`)),await t(n,d,f);return}if(await r(`${x}/ext${H}-all${w}${o}.js`),await i(`${x}/${a}/theme-${n}/resources/theme-${n}-all${w}.css`),s.fontawesome===!0&&await i(`${x}/packages/font-awesome/resources/font-awesome-all${o}.css`),r(`${x}/${a}/locale/locale-${g}${o}.js`),s.ux===!0&&(await r(`${x}/packages/ux/${a}/ux${o}.js`),p==="7.0.0"&&a==="modern"&&n==="neptune"&&await i(`${x}/packages/ux/${a}/${a}-${n}/resources/ux-all${o}.css`),p==="7.0.0"&&a==="classic"&&await i(`${x}/packages/ux/${a}/${n}/resources/ux-all${o}.css`),p!=="7.0.0"&&a==="classic"&&n==="material"&&await i(`${x}/packages/ux/${a}/${a}-${n}/resources/ux-all${o}.css`),p!=="7.0.0"&&a==="classic"&&n!=="material"&&n!=="gray"&&await i(`${x}/packages/ux/${a}/${n}/resources/ux-all${o}.css`)),s.charts===!0){await r(`${x}/packages/charts/${a}/charts${o}.js`);var M=!0;(a==="modern"&&n==="ios"&&p==="7.0.0"||n==="gray")&&(M=!1),M===!0&&(a==="classic"&&n!=="material"?await i(`${x}/packages/charts/${a}/${n}/resources/charts-all${o}.css`):await i(`${x}/packages/charts/${a}/${a}-${n}/resources/charts-all${o}.css`))}if(I===!0){var l;y=y+"/packages",s.calendar===!0&&(l="calendar",await r(`${y}/${l}/build/${a}/${l}${o}.js`),a==="modern"&&n==="ios"||p==="7.0.0.156"?await i(`${y}/${l}/build/${a}/${n}/resources/${l}-all${o}.css`):n!=="gray"&&n!=="graphite"&&(a==="classic"&&n!=="material"?await i(`${y}/${l}/build/${a}/${n}/resources/${l}-all${o}.css`):await i(`${y}/${l}/build/${a}/${a}-${n}/resources/${l}-all${o}.css`))),s.d3===!0&&(l="d3",await r(`${y}/${l}/build/${a}/${l}${o}.js`),a==="modern"&&(n==="ios"||n==="material")?await i(`${y}/${l}/build/${a}/${n}/resources/${l}-all${o}.css`):n!=="gray"&&n!=="graphite"&&(a==="classic"&&n!=="material"?await i(`${y}/${l}/build/${a}/${n}/resources/${l}-all${o}.css`):await i(`${y}/${l}/build/${a}/${a}-${n}/resources/${l}-all${o}.css`))),s.exporter===!0&&(l="exporter",await r(`${y}/${l}/build/${a}/${l}${o}.js`),await i(`${y}/${l}/build/${a}/resources/${l}-all${o}.css`)),s.pivot===!0&&(l="pivot",await r(`${y}/${l}/build/${a}/${l}${o}.js`),a==="modern"&&(n==="ios"||n==="material")?await i(`${y}/${l}/build/${a}/${n}/resources/${l}-all${o}.css`):n!=="gray"&&n!=="graphite"&&(a==="classic"&&n!=="material"?await i(`${y}/${l}/build/${a}/${n}/resources/${l}-all${o}.css`):await i(`${y}/${l}/build/${a}/${a}-${n}/resources/${l}-all${o}.css`))),s.pivotd3===!0&&(l="pivot-d3",await r(`${y}/${l}/build/${a}/${l}${o}.js`),a==="modern"&&(n==="ios"||n==="material")?await i(`${y}/${l}/build/${a}/${n}/resources/${l}-all${o}.css`):n!=="gray"&&n!=="graphite"&&(a==="classic"&&n!=="material"?await i(`${y}/${l}/build/${a}/${n}/resources/${l}-all${o}.css`):await i(`${y}/${l}/build/${a}/${a}-${n}/resources/${l}-all${o}.css`))),s.froalaeditor===!0&&(l="froala-editor",await r(`${y}/${l}/build/${a}/${l}${o}.js`),await i(`${y}/${l}/build/${a}/${n}/resources/${l}-all${o}.css`),await r(`${y}/${l}/development/froalaeditor.pkgd.js`),await i(`${y}/${l}/development/froalaeditor.pkgd.css`)),s.pivotlocale}async function P(E){var h=E.location;if(h==="local"){var $=E.overrides;if($===void 0&&($=!1),$!==!0&&($=!1),$===!0){var k=`${E.urlbase}ext-${E.sdkversion}/${a}overrides.js`;console.log("overridefile",k);async function v(_){try{let D=await fetch(_,{method:"HEAD"});return D.status===404?(console.error("ReExtData.overrides is true but no overrides file exists"),!1):D.status===200}catch{return!1}}var b=await v(k);b&&await r(k)}}}await P(e),await t(n,d,f)}var Te="trial";function er({children:e,ReExtData:t,reextkey:r,splash:i}){if(typeof window===void 0||typeof window>"u")return;const[a,n]=m.useState(!1);try{if(m.useEffect(()=>{(async()=>{var d={sdkversion:"7.8.0",toolkit:"classic",theme:"classic",packages:{charts:!1,fontawesome:!1,ux:!1,calendar:!1,d3:!1,exporter:!1,pivot:!1,pivotd3:!1,pivotlocale:!1,froalaeditor:!1},rtl:!1,locale:"en",debug:!1,urlbase:"./",location:"remote",overrides:!1};t===void 0&&(t=d);try{await Zt(t),n(!0)}catch(u){console.error("fail",u)}})()},[]),!a)return i===!0||i==="true"?c.jsx(Be,{}):null;if(a){var s={TrialDialog:{value:null},Version:{value:"2024-08-15-a"},Type:{value:null},DaysLeft:{value:null}};return c.jsxs(Oe,{types:s,actionTrace:!1,actionStack:!1,dispatchTrace:!1,dispatchStack:!1,middleware:[],middlewareafter:[],children:[Te!=="production"&&c.jsx(Qt,{r,v:ce.version,t:Te}),e]})}}catch(o){return c.jsx("div",{children:o.toString()})}}const tr=e=>{if(typeof window===void 0||typeof window>"u")return;const[t,r]=m.useState(e);var i=m.useRef();return i.current=t,[()=>i.current,r]};function rr(e){if(!(typeof window===void 0||typeof window>"u")){for(var t,r=e.getController(),i=e;r===void 0;)r=e.parent.getController(),i=e.parent;if(t=r.getReferences(),t===null&&(t={}),i.ReExtChildren!==void 0)for(var a=0;a<i.ReExtChildren.length;a++)i.ReExtChildren[a].reference!==null&&(t[i.ReExtChildren[a].reference]=i.ReExtChildren[a]);return t}}C.Fill=Fe,C.ReExtProvider=er,C.ReExtReferences=rr,C.default=Ue,C.useReExtState=tr,Object.defineProperties(C,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
(function(C,c){typeof exports=="object"&&typeof module<"u"?c(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],c):(C=typeof globalThis<"u"?globalThis:C||self,c(C.ReExt={},C.jsxRuntime,C.React,C.ReactDOM))})(this,function(C,c,m,U){"use strict";const ce={name:"@sencha/reext",version:"0.0.287",description:"React ReExt",types:"./dist/ReExt/types.d.ts",module:"./dist/reext.es.js",scripts:{b:"npm run buildclonedeep && npm run buildisequal && npm run buildfill && npm run buildgetconfig && npm run buildglobalprovider && npm run buildisevent && npm run builditeratechildren && npm run buildloadextjsfiles && npm run buildpropupdate && npm run buildresizeobserver && npm run builduntilextloaded && npm run buildwatermark",buildclonedeep:"esbuild ./src/lib/modules/cloneDeep.jsx --format=esm --bundle --minify --outfile=./src/lib/cloneDeep.js",buildisequal:"esbuild ./src/lib/modules/isEqual.jsx --format=esm --bundle --minify --outfile=./src/lib/isEqual.js",buildfill:"esbuild ./src/lib/modules/Fill.jsx --format=esm --bundle --minify --outfile=./src/lib/Fill.js",buildgetconfig:"esbuild ./src/lib/modules/getconfig.jsx --format=esm --bundle --minify --outfile=./src/lib/getconfig.js",buildglobalprovider:"esbuild ./src/lib/modules/GlobalProvider.jsx --format=esm --minify --outfile=./src/lib/GlobalProvider.js --inject:./src/lib/modules/react-shim.js",buildisevent:"esbuild ./src/lib/modules/isevent.jsx --format=esm --bundle --minify --outfile=./src/lib/isevent.js",builditeratechildren:"esbuild ./src/lib/modules/iteratechildren.jsx --format=esm --bundle --minify --outfile=./src/lib/iteratechildren.js --external:react --external:react-dom",buildloadextjsfiles:"esbuild ./src/lib/modules/loadextjsfiles.jsx --format=esm --bundle --minify --outfile=./src/lib/loadextjsfiles.js",buildpropupdate:"esbuild ./src/lib/modules/propupdate.jsx --format=esm --bundle --minify --outfile=./src/lib/propupdate.js",buildresizeobserver:"esbuild ./src/lib/modules/resizeobserver.jsx --format=esm --bundle --minify --outfile=./src/lib/resizeobserver.js",builduntilextloaded:"esbuild ./src/lib/modules/untilextloaded.jsx --format=esm --bundle --minify --outfile=./src/lib/untilextloaded.js",buildwatermark:"esbuild ./src/lib/modules/watermark.jsx --format=esm --bundle --minify --outfile=./src/lib/watermark.js",preinstall:"node ./dist/scripts/preinstall.js",postinstall:"node ./dist/scripts/postinstall.js",prepublishOnly:"node ./public/scripts/prepublish.js",postpack:"node ./public/scripts/postpack.js",postpublish:"node ./public/scripts/postpublish.js",pack:"npm pack --pack-destination zip",dev:"vite",builddev:"vite build -m development",build:"vite build",test:"vitest run",watch:"vitest",coverage:"vitest run --coverage",lint:"eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0"},author:{name:"Sencha, Inc.",email:"marc.gusmano@sencha.com",url:"http://www.sencha.com"},homepage:"https://www.sencha.com/products/reext/",keywords:["React","NextJS","Sencha","ExtJS","Components","ReExt"],license:"MIT",exports:{".":{import:"./dist/reext.es.js"}},devDependencies:{vite:"^5.4.1","@vitejs/plugin-react-swc":"^3.7.0",eslint:"8.57.0","eslint-plugin-react":"^7.35.0","eslint-plugin-react-hooks":"^4.6.2","eslint-plugin-react-refresh":"^0.4.9"},dependencies:{}},Pe=(e,t)=>{for(var r in e)typeof e[r]=="function"&&function(i,a){var n=r;e[r]=function(){t===!0&&console.log("---"),console.log("globalState."+n+" payload:",arguments[0]),t===!0&&console.log(new Error().stack),t===!0&&console.log("---");var s=a.apply(this,arguments);return s}}(r,e[r])},_e=async(e,t,r)=>{console.log("dispatch:",e.type,e.payload),r.dispatchStack&&console.log(new Error().stack)},De=(e,t,r)=>{const[i,a]=m.useReducer(e,t),n=m.useRef(null);var s=r.middleware;s===void 0&&(s=[]);var o=r.middlewareafter;return o===void 0&&(o=[]),m.useEffect(()=>{o.map(d=>d(n.current,i))},[o,i]),[i,d=>{s.map(u=>u(d,i,r)),n.current=d,a(d)}]},de=m.createContext(),ue=()=>m.useContext(de),Ie=(e,t)=>{var r={...e};return r[t.type.toLowerCase()]=t.payload,window.vscodeapi!==void 0&&vscodeapi.setState(r),r},Oe=e=>{if(e===void 0)return;var t=e.types,r={};for(let o in t)t.hasOwnProperty(o)&&(r["set"+o]=d=>n({type:o,payload:d}));var i={};for(let o in t)t.hasOwnProperty(o)&&(i[o.toLowerCase()]=t[o].value);m.useEffect(()=>{e.dispatchTrace&&e.middleware.push(_e)},[e]),e.actionTrace&&Pe(r,e.actionStack);const[a,n]=De(Ie,i,e),s=(o,d)=>{var u={};for(const[f]of Object.entries(d))u[f]=o[f];return u};return m.createElement(de.Provider,{value:{...s(a,i),...r}},e.children)};function F(e){if(e===null||typeof e!="object")return e;if(e instanceof Date)return new Date(e);if(Array.isArray(e)){let t=[];for(let r=0;r<e.length;r++)t[r]=F(e[r]);return t}if(e instanceof Object){let t={};for(let r in e)e.hasOwnProperty(r)&&(t[r]=F(e[r]));return t}return e}function Z(e,t){if(e===t)return!0;if(e==null||t==null)return e===t;if(typeof e!=typeof t)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!Z(e[r],t[r]))return!1;return!0}if(e instanceof Object&&t instanceof Object){let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(let a of r)if(!t.hasOwnProperty(a)||!Z(e[a],t[a]))return!1;return!0}return!1}function We({reactversion:e,extver:t,extlocation:r,exttoolkit:i,exttheme:a,type:n,packageversion:s,style:o,flexdirection:d,...u}){return c.jsxs("div",{name:"ReExtRootLogo","data-rid":u.rid,style:{display:"flex",flexDirection:d,alignItems:"center",color:"black",padding:5,...o},children:[c.jsx("img",{style:{height:40,width:80},src:"../ReExt/ReExt.png"}),c.jsxs("div",{style:{margin:"0 0 0 3px"},children:[c.jsx("div",{style:{margin:"0 0 0 1px",fontSize:12,color:"black"},children:c.jsx("a",{style:u.style,target:"_blank",rel:"noreferrer",href:"https://www.npmjs.com/package/@sencha/reext",children:c.jsxs("i",{children:["React ReExt ",s]})})}),c.jsx("div",{style:{fontSize:"10px",margin:"2px 0 0 0"},children:c.jsx("span",{style:{margin:"0 0 0 0"},children:n})}),c.jsx("div",{style:{fontSize:"10px",margin:"2px 0 0 0"},children:c.jsxs("span",{style:{margin:"0 0 0 0"},children:["React: ",c.jsx("b",{children:e})]})}),c.jsx("div",{style:{fontSize:"10px",margin:"2px 0 0 0"},children:c.jsxs("span",{style:{margin:"0 0 0 0"},children:["ExtJS: ",c.jsxs("b",{children:[t," (",r,")"]})]})}),c.jsxs("div",{style:{fontSize:"10px",margin:"2px 0 0 0"},children:[c.jsxs("span",{style:{margin:"0 0 0 0"},children:["toolkit: ",c.jsx("b",{children:i})]}),c.jsxs("span",{style:{margin:"0 0 0 5px"},children:["theme: ",c.jsx("b",{children:a})]})]})]})]})}var Je=e=>{var t=null,r=e.slice(0,2);if(r==="on"){var i=e.charAt(2),a=e.charAt(2).toUpperCase();i===a&&(t=e.slice(2).toLowerCase())}return window.Ext.isClassic===!0&&t==="tap"&&(t="click"),t},He=(e,t,r,i)=>{if(!(typeof window===void 0||typeof window>"u")){var a={};if(a.xtype=e,t!==void 0)for(let[s,o]of Object.entries(t))a[s]=o;if(r.references===!0&&(a.controller=window.Ext.create("Ext.app.ViewController")),a.store!==void 0&&(a.store.listeners!==void 0?a.store.listeners.load===void 0&&(a.store.listeners.load=s=>{r.storeloaded!==void 0&&r.storeloaded(s,i())}):a.store.listeners={load:s=>{r.storeloaded!==void 0&&r.storeloaded(s,i())}}),a.listeners===void 0){a.listeners={};for(let[s,o]of Object.entries(r)){var n=Je(s);n!==null&&(a.listeners[n]=function(){o(...arguments)})}Object.keys(a.listeners).length===0&&delete a.listeners}return a}},Ne=e=>{var t=null,r=e.slice(0,2);if(r==="on"){var i=e.charAt(2),a=e.charAt(2).toUpperCase();i===a&&(t=e.slice(2).toLowerCase())}return window.Ext.isClassic===!0&&t==="tap"&&(t="click"),t},fe=(e,t,r)=>{if(!(typeof window===void 0||typeof window>"u")){var i=[],a=[];if(e===void 0)return[];e.length===void 0?a.push(e):a=e;try{return a.map(n=>{var s,o;if(t.xtype==="tabpanel"){var d;window.Ext.ReExtTheme==="classic"?d="Ext.panel.Panel":d="Ext.Panel",s=window.Ext.create(d,{layout:"fit",title:n.props.title,cls:"ReExtTabChildRoot",items:[{xtype:"component",listeners:{boxready:w=>{o=U.createPortal(n,w.el.dom),i.push(o);var g=w.el.dom.parentNode;r.observe(g)}},style:{backgroundColor:"transparent",display:"flex",height:"100%",width:"100%"}}]}),t.add(s),window.Ext.isClassic===!0?u="Ext.container.Container":u="Ext.Container",window.Ext.isClassic!==!0&&(o=U.createPortal(n,s.items.items[0].el.dom),i.push(o))}else{var u;window.Ext.isClassic===!0?u="Ext.container.Container":u="Ext.Container",s=window.Ext.create(u,{cls:"ReExtWidgetRoot"}),t.add(s);var f=m.cloneElement(n,{ReExtParent:t});window.Ext.isClassic===!0?o=U.createPortal(f,s.el.dom):o=U.createPortal(f,s.innerElement.dom),i.push(o)}}),i}catch(n){return console.error("iteratechldren:",n.toString()),[]}}},Ke=(e,t,r)=>{if(!(typeof window===void 0||typeof window>"u")){var i=n=>{let s=n.charAt(0).toUpperCase(),o=n.slice(1);var d="set"+(s+o);return d},a;window.Ext.isClassic===!0?t==="items"?(e.removeAll(!0),e.add(r)):t!=="layout"&&(a=i(t),e[a]!==void 0?e[a](r):e[t]=r):(a=i(t),e[a]!==void 0&&e[a](r))}},ze=()=>{var e;return typeof ResizeObserver<"u"?(e=new ResizeObserver(t=>{if(!(typeof window===void 0||typeof window>"u"))for(let o of t){var r=0,i=o.target.children.item(r);if(i!==null&&o.contentBoxSize){let d=o.contentBoxSize[0];var a=d.inlineSize,n=window.Ext.getCmp(i.id);if(n!==void 0)window.Ext.getCmp(i.id).setWidth(a),window.Ext.getCmp(i.id).setHeight(d.blockSize);else if(!i.classList.contains("wm")){console.log("child not found",i.id);var s=i.getAttribute("w");s!=="w"&&console.warn("child not resized",i)}}}}),e):null};async function Me(){return await new Promise(e=>{function t(){window.Ext!==void 0&&window.Ext.onReady(function(){return clearInterval(r),e(1)})}var r=setInterval(t,5)})}var Le=(e,t,r)=>{if(typeof window>"u")return;let i=document.createElement("div");i.classList.add("wm"),i.style.zIndex=2e4,i.style.position="absolute",i.style.bottom="0px",i.style.right="0px",i.style.color="white",i.style.fontSize="10px",i.style.fontWeight="bold",i.style.fontStyle="italic",i.style.background="#B87333",i.style.padding="1px 3px 1px 1px",i.style.border="1px solid lightgray",i.style.borderRadius="3px 3px 3px 3px",i.innerText="ReExt "+t,r!==null?r.appendChild(i):e.el!==void 0&&e.el.dom.appendChild(i)};function Ue(e){const t=ue();if(typeof window===void 0||typeof window>"u")return;const[r,i]=m.useState(null),[a,n]=m.useState(null),s=m.useRef(null);s.current=a;const o=()=>s.current,[d,u]=m.useState(null),f=m.useRef(null);f.current=d;const w=()=>f.current,g=m.useRef(null);var p=ze();m.useEffect(()=>{var l,P="false";if(!(typeof window===void 0||typeof window>"u"))return(async()=>{if(await Me(),e.children!==void 0&&e.config.items===void 0&&(e.config.items=[]),P==="false"&&e.xtype!=="logo"){var E;w()==null?E=e.config:E=w();try{var h=He(e.xtype,E,e,o),$=Ext.ClassManager.getByAlias("widget."+h.xtype);if($===void 0){var k="ReExt "+h.xtype+" could not be created";h={xtype:"label",text:k,style:{color:"red",background:"lightgray"}}}if(h.height===void 0&&h.xtype!=="window"&&(window.Ext.isClassic===!0&&h.xtype==="grid"?h.height=0:h.height="100%"),h.width===void 0&&h.xtype!=="window"&&(window.Ext.isClassic===!0&&h.xtype==="grid"?h.width=0:h.width="100%"),window.Ext.isClassic===!0){const v=_=>{var D=_.el.dom.parentNode;p.observe(D)};h.listeners===void 0?h.listeners={boxready:v}:h.listeners.boxready=v}h.xtype!=="window"&&(h.renderTo=g.current),l=window.Ext.create(h),n(l),s.current=l,e.config!==void 0&&e.config.reference!==void 0&&e.ReExtParent!==void 0&&(e.ReExtParent.ReExtChildren===void 0&&(e.ReExtParent.ReExtChildren=[]),e.ReExtParent.ReExtChildren.push(l)),g.current===null?console.warn("ReExtRootRef.current,props",g.current,e):(g.current.style.background="transparent",g.current.firstChild.remove());var b=fe(e.children,l,p);i(b),t.type!==null&&t.type!=="production"&&Le(l,h.xtype,g.current),e.ready!==void 0&&e.ready(l)}catch(v){console.error(v)}}})(),()=>{P="true",!(typeof window===void 0||typeof window>"u")&&window.Ext!==void 0&&window.Ext.destroy!==void 0&&l!=null&&(n(null),window.Ext.destroy(l))}},[t.type]),m.useEffect(()=>{if(!(typeof window===void 0||typeof window>"u")&&e.config!==void 0){if(s.current!==null){e.children!==void 0&&e.config.items===void 0&&(e.config.items=[]);for(const[b]of Object.entries(f.current)){if(Ne(b)!=null||b==="xtype")return;var l=F(f.current[b]),P=F(e.config[b]);l!=null&&delete l.listeners,P!==void 0&&l!==null&&delete P.listeners;const v=_=>{let D=[],ir=JSON.stringify(_,function(mr,L){if(typeof L=="object"&&L!==null){if(D.indexOf(L)!==-1)return;D.push(L)}return L});return D=null,ir};var E=v(l),h=v(P),$=Z(E,h);if(!$&&(Ke(s.current,b,P),b==="items")){var k=fe(e.children,s.current,p);i(k)}}}u(e.config),f.current=e.config}},[e.config]);var A="",y="",H="",Q="";if(!(typeof window===void 0||typeof window>"u")){if(window.Ext!==void 0&&window.Ext.versions!==null&&window.Ext.versions!==void 0){y=window.Ext.versions.core.version,Q=window.Ext.ReExtTheme,A=window.Ext.ReExtLocation;var le=window.Ext.isClassic;le===!0?H="classic":H="modern"}if(!(typeof window===void 0||typeof window>"u")){var I="";if(t.type==="production"||t.type===null?I="production":I=`${t.type} - ${t.daysleft} days left`,e.xtype==="logo")return c.jsx(We,{reactversion:m.version,extver:y,extlocation:A,exttoolkit:H,exttheme:Q,type:I,packageversion:ce.version,flexdirection:e.flexdirection,style:e.style});var x;e.style===void 0||e.style.height===void 0?x=1:x="none";var M="";return e.className!==void 0&&(M=e.className),e.xtype==="window"?null:c.jsxs("div",{name:"ReExtRoot-"+e.xtype,"data-rid":e.rid,className:M+" fill",style:{...e.style,flex:x,position:"relative",display:"flex",overflow:"hidden"},ref:g,children:[c.jsx("div",{style:{display:"flex",flex:1,alignItems:"center",justifyContent:"center"}}),r!==null&&r.map(l=>l)]})}}}async function Fe(){if(typeof window===void 0||typeof window>"u")return;function e(t){t.style.width="100%",t.style.height="100%",t.style.margin="0",t.style.padding="0",t.style.padding="0",t.style.boxSizing="border-box",t.style.overflow="hidden"}document.documentElement&&e(document.documentElement),document.body&&e(document.body),document.getElementById("root")&&e(document.getElementById("root"))}function Be(){if(!(typeof window===void 0||typeof window>"u"))return c.jsx("div",{className:"splash",style:{fontSize:"36px",border:"10px solid #0960a5",width:"100%",height:"100%",margin:0,padding:0,boxSizing:"border-box",overflow:"hidden",display:"flex",flexDirection:"column",flex:1,justifyContent:"center",alignItems:"center"},children:c.jsx("img",{style:{height:500,width:1e3},src:"../ReExt/ReExt.png"})})}var qe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ve=qe(()=>{}),ee=crypto,pe=e=>e instanceof CryptoKey,B=new TextEncoder,N=new TextDecoder;function Ge(...e){let t=e.reduce((a,{length:n})=>a+n,0),r=new Uint8Array(t),i=0;for(let a of e)r.set(a,i),i+=a.length;return r}var Xe=e=>{let t=atob(e),r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=t.charCodeAt(i);return r},K=e=>{let t=e;t instanceof Uint8Array&&(t=N.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return Xe(t)}catch{throw new TypeError("The input to be decoded is not correctly encoded.")}},O=class extends Error{static get code(){return"ERR_JOSE_GENERIC"}constructor(e){var t;super(e),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,(t=Error.captureStackTrace)==null||t.call(Error,this,this.constructor)}},j=class extends O{static get code(){return"ERR_JWT_CLAIM_VALIDATION_FAILED"}constructor(e,t,r="unspecified",i="unspecified"){super(e),this.code="ERR_JWT_CLAIM_VALIDATION_FAILED",this.claim=r,this.reason=i,this.payload=t}},ye=class extends O{static get code(){return"ERR_JWT_EXPIRED"}constructor(e,t,r="unspecified",i="unspecified"){super(e),this.code="ERR_JWT_EXPIRED",this.claim=r,this.reason=i,this.payload=t}},W=class extends O{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}static get code(){return"ERR_JOSE_NOT_SUPPORTED"}},S=class extends O{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}static get code(){return"ERR_JWS_INVALID"}},R=class extends O{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}static get code(){return"ERR_JWT_INVALID"}},Ye=class extends O{constructor(){super(...arguments),this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED",this.message="signature verification failed"}static get code(){return"ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}};function T(e,t="algorithm.name"){return new TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`)}function q(e,t){return e.name===t}function te(e){return parseInt(e.name.slice(4),10)}function Qe(e){switch(e){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw new Error("unreachable")}}function Ze(e,t){if(t.length&&!t.some(r=>e.usages.includes(r))){let r="CryptoKey does not support this operation, its usages must include ";if(t.length>2){let i=t.pop();r+=`one of ${t.join(", ")}, or ${i}.`}else t.length===2?r+=`one of ${t[0]} or ${t[1]}.`:r+=`${t[0]}.`;throw new TypeError(r)}}function et(e,t,...r){switch(t){case"HS256":case"HS384":case"HS512":{if(!q(e.algorithm,"HMAC"))throw T("HMAC");let i=parseInt(t.slice(2),10);if(te(e.algorithm.hash)!==i)throw T(`SHA-${i}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!q(e.algorithm,"RSASSA-PKCS1-v1_5"))throw T("RSASSA-PKCS1-v1_5");let i=parseInt(t.slice(2),10);if(te(e.algorithm.hash)!==i)throw T(`SHA-${i}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!q(e.algorithm,"RSA-PSS"))throw T("RSA-PSS");let i=parseInt(t.slice(2),10);if(te(e.algorithm.hash)!==i)throw T(`SHA-${i}`,"algorithm.hash");break}case"EdDSA":{if(e.algorithm.name!=="Ed25519"&&e.algorithm.name!=="Ed448")throw T("Ed25519 or Ed448");break}case"ES256":case"ES384":case"ES512":{if(!q(e.algorithm,"ECDSA"))throw T("ECDSA");let i=Qe(t);if(e.algorithm.namedCurve!==i)throw T(i,"algorithm.namedCurve");break}default:throw new TypeError("CryptoKey does not support this operation")}Ze(e,r)}function he(e,t,...r){var i;if(r.length>2){let a=r.pop();e+=`one of type ${r.join(", ")}, or ${a}.`}else r.length===2?e+=`one of type ${r[0]} or ${r[1]}.`:e+=`of type ${r[0]}.`;return t==null?e+=` Received ${t}`:typeof t=="function"&&t.name?e+=` Received function ${t.name}`:typeof t=="object"&&t!=null&&((i=t.constructor)!=null&&i.name)&&(e+=` Received an instance of ${t.constructor.name}`),e}var we=(e,...t)=>he("Key must be ",e,...t);function me(e,t,...r){return he(`Key for the ${e} algorithm must be `,t,...r)}var ve=e=>pe(e)?!0:(e==null?void 0:e[Symbol.toStringTag])==="KeyObject",V=["CryptoKey"],tt=(...e)=>{let t=e.filter(Boolean);if(t.length===0||t.length===1)return!0;let r;for(let i of t){let a=Object.keys(i);if(!r||r.size===0){r=new Set(a);continue}for(let n of a){if(r.has(n))return!1;r.add(n)}}return!0},rt=tt;function it(e){return typeof e=="object"&&e!==null}function G(e){if(!it(e)||Object.prototype.toString.call(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}var at=(e,t)=>{if(e.startsWith("RS")||e.startsWith("PS")){let{modulusLength:r}=t.algorithm;if(typeof r!="number"||r<2048)throw new TypeError(`${e} requires key modulusLength to be 2048 bits or larger`)}};function nt(e){let t,r;switch(e.kty){case"RSA":{switch(e.alg){case"PS256":case"PS384":case"PS512":t={name:"RSA-PSS",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":t={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":t={name:"RSA-OAEP",hash:`SHA-${parseInt(e.alg.slice(-3),10)||1}`},r=e.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new W('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}case"EC":{switch(e.alg){case"ES256":t={name:"ECDSA",namedCurve:"P-256"},r=e.d?["sign"]:["verify"];break;case"ES384":t={name:"ECDSA",namedCurve:"P-384"},r=e.d?["sign"]:["verify"];break;case"ES512":t={name:"ECDSA",namedCurve:"P-521"},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:"ECDH",namedCurve:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new W('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}case"OKP":{switch(e.alg){case"EdDSA":t={name:e.crv},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new W('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}default:throw new W('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:t,keyUsages:r}}var st=async e=>{if(!e.alg)throw new TypeError('"alg" argument is required when "jwk.alg" is not present');let{algorithm:t,keyUsages:r}=nt(e),i=[t,e.ext??!1,e.key_ops??r],a={...e};return delete a.alg,delete a.use,ee.subtle.importKey("jwk",a,...i)},ot=st,ge=e=>K(e),re,ie,be=e=>(e==null?void 0:e[Symbol.toStringTag])==="KeyObject",xe=async(e,t,r,i)=>{let a=e.get(t);if(a!=null&&a[i])return a[i];let n=await ot({...r,alg:i});return a?a[i]=n:e.set(t,{[i]:n}),n},lt=(e,t)=>{if(be(e)){let r=e.export({format:"jwk"});return delete r.d,delete r.dp,delete r.dq,delete r.p,delete r.q,delete r.qi,r.k?ge(r.k):(ie||(ie=new WeakMap),xe(ie,e,r,t))}return e},ct=(e,t)=>{if(be(e)){let r=e.export({format:"jwk"});return r.k?ge(r.k):(re||(re=new WeakMap),xe(re,e,r,t))}return e},dt={normalizePublicKey:lt,normalizePrivateKey:ct},J=e=>e==null?void 0:e[Symbol.toStringTag],ut=(e,t)=>{if(!(t instanceof Uint8Array)){if(!ve(t))throw new TypeError(me(e,t,...V,"Uint8Array"));if(t.type!=="secret")throw new TypeError(`${J(t)} instances for symmetric algorithms must be of type "secret"`)}},ft=(e,t,r)=>{if(!ve(t))throw new TypeError(me(e,t,...V));if(t.type==="secret")throw new TypeError(`${J(t)} instances for asymmetric algorithms must not be of type "secret"`);if(r==="sign"&&t.type==="public")throw new TypeError(`${J(t)} instances for asymmetric algorithm signing must be of type "private"`);if(r==="decrypt"&&t.type==="public")throw new TypeError(`${J(t)} instances for asymmetric algorithm decryption must be of type "private"`);if(t.algorithm&&r==="verify"&&t.type==="private")throw new TypeError(`${J(t)} instances for asymmetric algorithm verifying must be of type "public"`);if(t.algorithm&&r==="encrypt"&&t.type==="private")throw new TypeError(`${J(t)} instances for asymmetric algorithm encryption must be of type "public"`)},pt=(e,t,r)=>{e.startsWith("HS")||e==="dir"||e.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(e)?ut(e,t):ft(e,t,r)},yt=pt;function ht(e,t,r,i,a){if(a.crit!==void 0&&(i==null?void 0:i.crit)===void 0)throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');if(!i||i.crit===void 0)return new Set;if(!Array.isArray(i.crit)||i.crit.length===0||i.crit.some(s=>typeof s!="string"||s.length===0))throw new e('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');let n;r!==void 0?n=new Map([...Object.entries(r),...t.entries()]):n=t;for(let s of i.crit){if(!n.has(s))throw new W(`Extension Header Parameter "${s}" is not recognized`);if(a[s]===void 0)throw new e(`Extension Header Parameter "${s}" is missing`);if(n.get(s)&&i[s]===void 0)throw new e(`Extension Header Parameter "${s}" MUST be integrity protected`)}return new Set(i.crit)}var wt=ht;function mt(e,t){let r=`SHA-${e.slice(-3)}`;switch(e){case"HS256":case"HS384":case"HS512":return{hash:r,name:"HMAC"};case"PS256":case"PS384":case"PS512":return{hash:r,name:"RSA-PSS",saltLength:e.slice(-3)>>3};case"RS256":case"RS384":case"RS512":return{hash:r,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:r,name:"ECDSA",namedCurve:t.namedCurve};case"EdDSA":return{name:t.name};default:throw new W(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}async function vt(e,t,r){if(t=await dt.normalizePublicKey(t,e),pe(t))return et(t,e,r),t;if(t instanceof Uint8Array){if(!e.startsWith("HS"))throw new TypeError(we(t,...V));return ee.subtle.importKey("raw",t,{hash:`SHA-${e.slice(-3)}`,name:"HMAC"},!1,[r])}throw new TypeError(we(t,...V,"Uint8Array"))}var gt=async(e,t,r,i)=>{let a=await vt(e,t,"verify");at(e,a);let n=mt(e,a.algorithm);try{return await ee.subtle.verify(n,a,r,i)}catch{return!1}},bt=gt;async function xt(e,t,r){if(!G(e))throw new S("Flattened JWS must be an object");if(e.protected===void 0&&e.header===void 0)throw new S('Flattened JWS must have either of the "protected" or "header" members');if(e.protected!==void 0&&typeof e.protected!="string")throw new S("JWS Protected Header incorrect type");if(e.payload===void 0)throw new S("JWS Payload missing");if(typeof e.signature!="string")throw new S("JWS Signature missing or incorrect type");if(e.header!==void 0&&!G(e.header))throw new S("JWS Unprotected Header incorrect type");let i={};if(e.protected)try{let p=K(e.protected);i=JSON.parse(N.decode(p))}catch{throw new S("JWS Protected Header is invalid")}if(!rt(i,e.header))throw new S("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");let a={...i,...e.header},n=wt(S,new Map([["b64",!0]]),r==null?void 0:r.crit,i,a),s=!0;if(n.has("b64")&&(s=i.b64,typeof s!="boolean"))throw new S('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:o}=a;if(typeof o!="string"||!o)throw new S('JWS "alg" (Algorithm) Header Parameter missing or invalid');if(s){if(typeof e.payload!="string")throw new S("JWS Payload must be a string")}else if(typeof e.payload!="string"&&!(e.payload instanceof Uint8Array))throw new S("JWS Payload must be a string or an Uint8Array instance");let d=!1;typeof t=="function"&&(t=await t(i,e),d=!0),yt(o,t,"verify");let u=Ge(B.encode(e.protected??""),B.encode("."),typeof e.payload=="string"?B.encode(e.payload):e.payload),f;try{f=K(e.signature)}catch{throw new S("Failed to base64url decode the signature")}if(!await bt(o,t,f,u))throw new Ye;let w;if(s)try{w=K(e.payload)}catch{throw new S("Failed to base64url decode the payload")}else typeof e.payload=="string"?w=B.encode(e.payload):w=e.payload;let g={payload:w};return e.protected!==void 0&&(g.protectedHeader=i),e.header!==void 0&&(g.unprotectedHeader=e.header),d?{...g,key:t}:g}async function Et(e,t,r){if(e instanceof Uint8Array&&(e=N.decode(e)),typeof e!="string")throw new S("Compact JWS must be a string or Uint8Array");let{0:i,1:a,2:n,length:s}=e.split(".");if(s!==3)throw new S("Invalid Compact JWS");let o=await xt({payload:a,protected:i,signature:n},t,r),d={payload:o.payload,protectedHeader:o.protectedHeader};return typeof t=="function"?{...d,key:o.key}:d}var St=e=>Math.floor(e.getTime()/1e3),$t=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i,Ee=e=>{let t=$t.exec(e);if(!t||t[4]&&t[1])throw new TypeError("Invalid time period format");let r=parseFloat(t[2]),i=t[3].toLowerCase(),a;switch(i){case"sec":case"secs":case"second":case"seconds":case"s":a=Math.round(r);break;case"minute":case"minutes":case"min":case"mins":case"m":a=Math.round(r*60);break;case"hour":case"hours":case"hr":case"hrs":case"h":a=Math.round(r*3600);break;case"day":case"days":case"d":a=Math.round(r*86400);break;case"week":case"weeks":case"w":a=Math.round(r*604800);break;default:a=Math.round(r*31557600);break}return t[1]==="-"||t[4]==="ago"?-a:a},Se=e=>e.toLowerCase().replace(/^application\//,""),kt=(e,t)=>typeof e=="string"?t.includes(e):Array.isArray(e)?t.some(Set.prototype.has.bind(new Set(e))):!1,Ct=(e,t,r={})=>{let i;try{i=JSON.parse(N.decode(t))}catch{}if(!G(i))throw new R("JWT Claims Set must be a top-level JSON object");let{typ:a}=r;if(a&&(typeof e.typ!="string"||Se(e.typ)!==Se(a)))throw new j('unexpected "typ" JWT header value',i,"typ","check_failed");let{requiredClaims:n=[],issuer:s,subject:o,audience:d,maxTokenAge:u}=r,f=[...n];u!==void 0&&f.push("iat"),d!==void 0&&f.push("aud"),o!==void 0&&f.push("sub"),s!==void 0&&f.push("iss");for(let A of new Set(f.reverse()))if(!(A in i))throw new j(`missing required "${A}" claim`,i,A,"missing");if(s&&!(Array.isArray(s)?s:[s]).includes(i.iss))throw new j('unexpected "iss" claim value',i,"iss","check_failed");if(o&&i.sub!==o)throw new j('unexpected "sub" claim value',i,"sub","check_failed");if(d&&!kt(i.aud,typeof d=="string"?[d]:d))throw new j('unexpected "aud" claim value',i,"aud","check_failed");let w;switch(typeof r.clockTolerance){case"string":w=Ee(r.clockTolerance);break;case"number":w=r.clockTolerance;break;case"undefined":w=0;break;default:throw new TypeError("Invalid clockTolerance option type")}let{currentDate:g}=r,p=St(g||new Date);if((i.iat!==void 0||u)&&typeof i.iat!="number")throw new j('"iat" claim must be a number',i,"iat","invalid");if(i.nbf!==void 0){if(typeof i.nbf!="number")throw new j('"nbf" claim must be a number',i,"nbf","invalid");if(i.nbf>p+w)throw new j('"nbf" claim timestamp check failed',i,"nbf","check_failed")}if(i.exp!==void 0){if(typeof i.exp!="number")throw new j('"exp" claim must be a number',i,"exp","invalid");if(i.exp<=p-w)throw new ye('"exp" claim timestamp check failed',i,"exp","check_failed")}if(u){let A=p-i.iat,y=typeof u=="number"?u:Ee(u);if(A-w>y)throw new ye('"iat" claim timestamp check failed (too far in the past)',i,"iat","check_failed");if(A<0-w)throw new j('"iat" claim timestamp check failed (it should be in the past)',i,"iat","check_failed")}return i};async function At(e,t,r){var n;let i=await Et(e,t,r);if((n=i.protectedHeader.crit)!=null&&n.includes("b64")&&i.protectedHeader.b64===!1)throw new R("JWTs MUST NOT use unencoded payload");let a={payload:Ct(i.protectedHeader,i.payload,r),protectedHeader:i.protectedHeader};return typeof t=="function"?{...a,key:i.key}:a}var jt=K;function Rt(e){if(typeof e!="string")throw new R("JWTs must use Compact JWS serialization, JWT must be a string");let{1:t,length:r}=e.split(".");if(r===5)throw new R("Only JWTs using Compact JWS serialization can be decoded");if(r!==3)throw new R("Invalid JWT");if(!t)throw new R("JWTs must contain a payload");let i;try{i=jt(t)}catch{throw new R("Failed to base64url decode the payload")}let a;try{a=JSON.parse(N.decode(i))}catch{throw new R("Failed to parse the decoded payload as JSON")}if(!G(a))throw new R("Invalid JWT Claims Set");return a}function X(e){var t=new Error(e);return t.source="ulid",t}var ae="0123456789ABCDEFGHJKMNPQRSTVWXYZ",z=ae.length,$e=Math.pow(2,48)-1,Tt=10,Pt=16;function _t(e){var t=Math.floor(e()*z);return t===z&&(t=z-1),ae.charAt(t)}function Dt(e,t){if(isNaN(e))throw new Error(e+" must be a number");if(e>$e)throw X("cannot encode time greater than "+$e);if(e<0)throw X("time must be positive");if(Number.isInteger(e)===!1)throw X("time must be an integer");for(var r=void 0,i="";t>0;t--)r=e%z,i=ae.charAt(r)+i,e=(e-r)/z;return i}function It(e,t){for(var r="";e>0;e--)r=_t(t)+r;return r}function Ot(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=arguments[1];t||(t=typeof window<"u"?window:null);var r=t&&(t.crypto||t.msCrypto);if(r)return function(){var a=new Uint8Array(1);return r.getRandomValues(a),a[0]/255};try{var i=Ve();return function(){return i.randomBytes(1).readUInt8()/255}}catch{}if(e){try{console.error("secure crypto unusable, falling back to insecure Math.random()!")}catch{}return function(){return Math.random()}}throw X("secure crypto unusable, insecure Math.random not allowed")}function Wt(e){return e||(e=Ot()),function(t){return isNaN(t)&&(t=Date.now()),Dt(t,Tt)+It(Pt,e)}}Wt();var ne;function Jt(e){return ne==null?void 0:ne.get(e)}var se;function Ht(e){return se==null?void 0:se.get(e)}var oe;function Nt(e,t){var r;return(r=oe==null?void 0:oe.get(e))==null?void 0:r.get(t)}function Kt(e){var r,i;let t=typeof e;return t==="string"?`"${e}"`:t==="number"||t==="bigint"||t==="boolean"?`${e}`:t==="object"||t==="function"?(e&&((i=(r=Object.getPrototypeOf(e))==null?void 0:r.constructor)==null?void 0:i.name))??"null":t}function Y(e,t,r,i,a){let n=a&&"input"in a?a.input:r.value,s=(a==null?void 0:a.expected)??e.expects??null,o=(a==null?void 0:a.received)??Kt(n),d={kind:e.kind,type:e.type,input:n,expected:s,received:o,message:`Invalid ${t}: ${s?`Expected ${s} but r`:"R"}eceived ${o}`,requirement:e.requirement,path:a==null?void 0:a.path,issues:a==null?void 0:a.issues,lang:i.lang,abortEarly:i.abortEarly,abortPipeEarly:i.abortPipeEarly},u=e.kind==="schema",f=(a==null?void 0:a.message)??e.message??Nt(e.reference,d.lang)??(u?Ht(d.lang):null)??i.message??Jt(d.lang);f&&(d.message=typeof f=="function"?f(d):f),u&&(r.typed=!1),r.issues?r.issues.push(d):r.issues=[d]}function ke(e){return{kind:"transformation",type:"brand",reference:ke,async:!1,name:e,_run(t){return t}}}function zt(e,t,r){return typeof e.default=="function"?e.default(t,r):e.default}function Ce(e){return{kind:"schema",type:"number",reference:Ce,expects:"number",async:!1,message:e,_run(t,r){return typeof t.value=="number"&&!isNaN(t.value)?t.typed=!0:Y(this,"type",t,r),t}}}function Ae(e,...t){let r={kind:"schema",type:"optional",reference:Ae,expects:`${e.expects} | undefined`,async:!1,wrapped:e,_run(i,a){return i.value===void 0&&("default"in this&&(i.value=zt(this,i,a)),i.value===void 0)?(i.typed=!0,i):this.wrapped._run(i,a)}};return 0 in t&&(r.default=t[0]),r}function je(e,t){return{kind:"schema",type:"strict_object",reference:je,expects:"Object",async:!1,entries:e,message:t,_run(r,i){var n;let a=r.value;if(a&&typeof a=="object"){r.typed=!0,r.value={};for(let s in this.entries){let o=a[s],d=this.entries[s]._run({typed:!1,value:o},i);if(d.issues){let u={type:"object",origin:"value",input:a,key:s,value:o};for(let f of d.issues)f.path?f.path.unshift(u):f.path=[u],(n=r.issues)==null||n.push(f);if(r.issues||(r.issues=d.issues),i.abortEarly){r.typed=!1;break}}d.typed||(r.typed=!1),(d.value!==void 0||s in a)&&(r.value[s]=d.value)}if(!r.issues||!i.abortEarly){for(let s in a)if(!(s in this.entries)){let o=a[s];Y(this,"type",r,i,{input:o,expected:"never",path:[{type:"object",origin:"value",input:a,key:s,value:o}]});break}}}else Y(this,"type",r,i);return r}}}function Re(e){return{kind:"schema",type:"string",reference:Re,expects:"string",async:!1,message:e,_run(t,r){return typeof t.value=="string"?t.typed=!0:Y(this,"type",t,r),t}}}function Mt(...e){return{...e[0],pipe:e,_run(t,r){for(let i of e)if(i.kind!=="metadata"){if(t.issues&&(i.kind==="schema"||i.kind==="transformation")){t.typed=!1;break}(!t.issues||!r.abortEarly&&!r.abortPipeEarly)&&(t=i._run(t,r))}return t}}}var Lt=Mt(Re(),ke("lid"));je({id:Lt,ver:Ae(Ce())});var Ut=e=>()=>e*48271%2147483647/2147483647,Ft=e=>typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(typeof e=="string"?e:String.fromCharCode(...e)),Bt=e=>typeof Buffer<"u"?Buffer.from(e,"base64").toString():atob(e),qt=(e,t)=>{let r=Ut(t),i=new TextEncoder().encode(e).map(a=>a^Math.floor(r()*256));return Ft(i)},Vt=e=>e.split("").reverse().join(""),Gt=e=>typeof e=="object"&&!!e&&"sub"in e&&"exp"in e&&typeof e.sub=="string"&&typeof e.exp=="number",Xt=async e=>{let t=Vt(Bt(e));return{decoded:Rt(t),jwt:t}},Yt=async e=>{let{decoded:t,jwt:r}=await Xt(e);if(!Gt(t))throw new Error("Invalid license key");let{sub:i,exp:a}=t,n=new TextEncoder().encode(qt(i,a));return await At(r,n),t};function Qt({r:e,v:t,t:r}){const i=ue();if(m.useEffect(()=>{e!==void 0&&e.toLowerCase().includes("ehsug")?i.setType("production"):i.setType(r)},[]),m.useEffect(()=>{const a=async s=>{if(s===void 0)return{type:"nokey",daysleft:0};try{const o=await Yt(s),f=new Date(o.exp*1e3)-new Date,w=Math.floor(f/(1e3*60*60*24));return w>0?{type:"trial",daysleft:w}:{type:"expired",daysleft:0}}catch(o){return o.message.includes("claim timestamp check failed")?{type:"expired",daysleft:0}:{type:"invalidkey",daysleft:0}}},n=async()=>{var s=await a(e);switch(i.setType(s.type),i.setDaysLeft(s.daysleft),s.type){case"production":case"trial":i.setTrialDialog(!1);break;case"nokey":case"expired":case"invalidkey":default:i.setTrialDialog(!0);break}};i.type!==null&&i.type!=="production"&&n()},[i.type]),i.type!=="production"&&i.trialdialog===!0)return c.jsx("div",{style:{zIndex:2e5,fontSize:"22px",background:"rgb(211,211,211,.4)",color:"black",display:"flex",flexDirection:"column",position:"absolute",left:"50%",width:"100%",height:"100%",transform:"translateX(-50%)",padding:"10px 10px 10px 10px",border:"1px solid black"},children:c.jsxs("div",{style:{height:"100%",display:"flex",padding:"10px 10px 10px 10px",flexDirection:"column",margin:"40px",borderRadius:"5px",border:"1px solid gray",background:"white"},children:[c.jsxs("div",{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:[c.jsx("img",{style:{width:160},src:"../ReExt/ReExt.png"}),c.jsxs("div",{style:{margin:"0 0 0 20px"},children:["Welcome to the React ReExt v",t," Trial"]})]}),i.type==="trial"||i.type==="nokey"&&c.jsxs(c.Fragment,{children:[c.jsxs("div",{style:{margin:"10px 0 10px 0",fontSize:"18px"},children:["This is a 30 day trial version of React ReExt.",c.jsx("br",{}),"Without a valid trial key, this dialog will appear.",c.jsx("br",{}),c.jsx("br",{}),"To have a trial key emailed to you, fill in this form and click 'Get Trial Key'."]}),c.jsx("div",{style:{xwidth:"100%",flex:1,display:"flex",border:"0px solid red"},children:c.jsx("iframe",{style:{width:"100%",margin:"0 0 10px 0",flex:1,border:"1px solid lightgray"},src:"https://www.sencha.com/forms/reext/register-for-reext-trial.html"})}),c.jsxs("div",{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"flex-end"},children:[c.jsx("div",{style:{fontSize:"12px"},children:i.type}),c.jsx("button",{style:{fontSize:"18px",padding:"5px 5px 5px 5px"},onClick:()=>{i.setTrialDialog(!1)},children:"Close"})]})]}),i.type==="expired"&&c.jsx(c.Fragment,{children:c.jsxs("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",margin:"10px 0 10px 0",fontSize:"18px",height:"100%"},children:[c.jsx("div",{style:{margin:"0 0 20px 0",fontSize:"24px"},children:"Your React ReExt trial key has expired"}),c.jsx("div",{children:"Contact Sencha Sales"}),c.jsx("div",{children:c.jsx("a",{href:"https://www.sencha.com/company/contact/",target:"_blank",rel:"noopener noreferrer",children:"https://www.sencha.com/company/contact/"})})]})}),i.type==="invalidkey"&&c.jsx(c.Fragment,{children:c.jsxs("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",margin:"10px 0 10px 0",fontSize:"18px",height:"100%"},children:[c.jsx("div",{style:{margin:"0 0 20px 0",fontSize:"24px"},children:"Your React ReExt trial key is invalid"}),c.jsx("div",{children:"Contact Sencha Sales"}),c.jsx("div",{children:c.jsx("a",{href:"https://www.sencha.com/company/contact/",target:"_blank",rel:"noopener noreferrer",children:"https://www.sencha.com/company/contact/"})})]})})]})})}async function Zt(e){let t=async(E,h,$)=>await new Promise(k=>{window.Ext.onReady(function(){return window.Ext.ReExtLocation=$,window.Ext.ReExtTheme=E,window.Ext.ReExtLi=!0,k(1)})}),r=async E=>typeof window===void 0||typeof window>"u"?void 0:await new Promise((h,$)=>{let k=document.getElementsByTagName("HEAD")[0];var b=!1;for(let v=0;v<k.childNodes.length;v++)k.childNodes[v].src===E&&(b=!0);if(b===!1){let v=document.createElement("script");v.addEventListener("load",()=>h(1)),v.addEventListener("error",()=>{var _=`${E} (js) could not be loaded - copy the node_modules/@sencha/reext/ext folder to the project's public folder`;console.error(_),$(_)}),v.src=E,k.appendChild(v)}}),i=async E=>typeof window===void 0||typeof window>"u"?void 0:await new Promise((h,$)=>{let k=document.getElementsByTagName("HEAD")[0],b=document.createElement("link");b.rel="stylesheet",b.type="text/css",b.href=E,b.addEventListener("error",()=>{var v=`${E} (css) could not be loaded - copy the node_modules/@sencha/reext/ext folder to the project's public folder`;return console.error(v),$(v)}),b.addEventListener("load",()=>h(1)),k.appendChild(b)});var a=e.toolkit;(a==null||a==="")&&(a="modern");var n=e.theme;(n==null||n==="")&&(n="material");var s=e.packages;s===void 0&&(s={charts:!1,fontawesome:!1,ux:!1,calendar:!1,d3:!1,exporter:!1,pivot:!1,pivotd3:!1,pivotlocale:!1,froalaeditor:!1});var o=e.debug,d=e.license,u=e.urlbase,f=e.location;(f==="remote"||f===null)&&(u="https://cdn.sencha.com/reext/ext/");var w=e.rtl;w===!1||w===void 0?w="":w="-rtl";var g=e.locale;g===void 0&&(g="en");var p=e.sdkversion;switch(p){case"7.0.0":p=p+".156";break;case"7.1.0":p=p+".46";break;case"7.2.0":case"7.3.0":case"7.3.1":case"7.4.0":case"7.5.0":case"7.5.1":case"7.6.0":case"7.7.0":case"7.8.0":break;default:throw`SDK version ${p} is not valid`}var A=u+"ext-"+p,y=u+"ext-addons-"+p;o===!0?o="-debug":o="";var H="";a==="modern"&&(H="-modern");var Q=["ios","material","neptune","triton"];if(a==="modern"&&!Q.includes(n))throw`${n} theme is not in ${a} toolkit for SDK version ${p}`;var le=["classic","crisp","graphite","gray","material","neptune","triton"];a==="classic"&&!le.includes(n)&&console.warn(`${n} is a custom theme in ${a} toolkit for SDK version ${p}`);var I=!1;(s.calendar===!0||s.d3===!0||s.exporter===!0||s.pivot===!0||s.pivotd3===!0||s.pivotlocale===!0||s.froalaeditor===!0)&&(I=!0),e.debug===!0&&await r("node_modules/@sencha/reext/dist/ReExt/debug.js");var x=A+"/build";if(p.slice(-1)==="c"){await r(`${x}/ext-${p}-toolkit-${a}-sdk.js`),await i(`${x}/ext-${p}-theme-${n}-sdk.css`),I===!0&&(await r(`${A}/ext-${p}-toolkit-${a}-addons.js`),await i(`${A}/ext-${p}-theme-${n}-addons.css`)),await t(n,d,f);return}if(await r(`${x}/ext${H}-all${w}${o}.js`),await i(`${x}/${a}/theme-${n}/resources/theme-${n}-all${w}.css`),s.fontawesome===!0&&await i(`${x}/packages/font-awesome/resources/font-awesome-all${o}.css`),r(`${x}/${a}/locale/locale-${g}${o}.js`),s.ux===!0&&(await r(`${x}/packages/ux/${a}/ux${o}.js`),p==="7.0.0"&&a==="modern"&&n==="neptune"&&await i(`${x}/packages/ux/${a}/${a}-${n}/resources/ux-all${o}.css`),p==="7.0.0"&&a==="classic"&&await i(`${x}/packages/ux/${a}/${n}/resources/ux-all${o}.css`),p!=="7.0.0"&&a==="classic"&&n==="material"&&await i(`${x}/packages/ux/${a}/${a}-${n}/resources/ux-all${o}.css`),p!=="7.0.0"&&a==="classic"&&n!=="material"&&n!=="gray"&&await i(`${x}/packages/ux/${a}/${n}/resources/ux-all${o}.css`)),s.charts===!0){await r(`${x}/packages/charts/${a}/charts${o}.js`);var M=!0;(a==="modern"&&n==="ios"&&p==="7.0.0"||n==="gray")&&(M=!1),M===!0&&(a==="classic"&&n!=="material"?await i(`${x}/packages/charts/${a}/${n}/resources/charts-all${o}.css`):await i(`${x}/packages/charts/${a}/${a}-${n}/resources/charts-all${o}.css`))}if(I===!0){var l;y=y+"/packages",s.calendar===!0&&(l="calendar",await r(`${y}/${l}/build/${a}/${l}${o}.js`),a==="modern"&&n==="ios"||p==="7.0.0.156"?await i(`${y}/${l}/build/${a}/${n}/resources/${l}-all${o}.css`):n!=="gray"&&n!=="graphite"&&(a==="classic"&&n!=="material"?await i(`${y}/${l}/build/${a}/${n}/resources/${l}-all${o}.css`):await i(`${y}/${l}/build/${a}/${a}-${n}/resources/${l}-all${o}.css`))),s.d3===!0&&(l="d3",await r(`${y}/${l}/build/${a}/${l}${o}.js`),a==="modern"&&(n==="ios"||n==="material")?await i(`${y}/${l}/build/${a}/${n}/resources/${l}-all${o}.css`):n!=="gray"&&n!=="graphite"&&(a==="classic"&&n!=="material"?await i(`${y}/${l}/build/${a}/${n}/resources/${l}-all${o}.css`):await i(`${y}/${l}/build/${a}/${a}-${n}/resources/${l}-all${o}.css`))),s.exporter===!0&&(l="exporter",await r(`${y}/${l}/build/${a}/${l}${o}.js`),await i(`${y}/${l}/build/${a}/resources/${l}-all${o}.css`)),s.pivot===!0&&(l="pivot",await r(`${y}/${l}/build/${a}/${l}${o}.js`),a==="modern"&&(n==="ios"||n==="material")?await i(`${y}/${l}/build/${a}/${n}/resources/${l}-all${o}.css`):n!=="gray"&&n!=="graphite"&&(a==="classic"&&n!=="material"?await i(`${y}/${l}/build/${a}/${n}/resources/${l}-all${o}.css`):await i(`${y}/${l}/build/${a}/${a}-${n}/resources/${l}-all${o}.css`))),s.pivotd3===!0&&(l="pivot-d3",await r(`${y}/${l}/build/${a}/${l}${o}.js`),a==="modern"&&(n==="ios"||n==="material")?await i(`${y}/${l}/build/${a}/${n}/resources/${l}-all${o}.css`):n!=="gray"&&n!=="graphite"&&(a==="classic"&&n!=="material"?await i(`${y}/${l}/build/${a}/${n}/resources/${l}-all${o}.css`):await i(`${y}/${l}/build/${a}/${a}-${n}/resources/${l}-all${o}.css`))),s.froalaeditor===!0&&(l="froala-editor",await r(`${y}/${l}/build/${a}/${l}${o}.js`),await i(`${y}/${l}/build/${a}/${n}/resources/${l}-all${o}.css`),await r(`${y}/${l}/development/froalaeditor.pkgd.js`),await i(`${y}/${l}/development/froalaeditor.pkgd.css`)),s.pivotlocale}async function P(E){var h=E.location;if(h==="local"){var $=E.overrides;if($===void 0&&($=!1),$!==!0&&($=!1),$===!0){var k=`${E.urlbase}ext-${E.sdkversion}/${a}overrides.js`;console.log("overridefile",k);async function v(_){try{let D=await fetch(_,{method:"HEAD"});return D.status===404?(console.error("ReExtData.overrides is true but no overrides file exists"),!1):D.status===200}catch{return!1}}var b=await v(k);b&&await r(k)}}}await P(e),await t(n,d,f)}var Te="trial";function er({children:e,ReExtData:t,reextkey:r,splash:i}){if(typeof window===void 0||typeof window>"u")return;const[a,n]=m.useState(!1);try{if(m.useEffect(()=>{(async()=>{var d={sdkversion:"7.8.0",toolkit:"classic",theme:"classic",packages:{charts:!1,fontawesome:!1,ux:!1,calendar:!1,d3:!1,exporter:!1,pivot:!1,pivotd3:!1,pivotlocale:!1,froalaeditor:!1},rtl:!1,locale:"en",debug:!1,urlbase:"./",location:"remote",overrides:!1};t===void 0&&(t=d);try{await Zt(t),n(!0)}catch(u){console.error("fail",u)}})()},[]),!a)return i===!0||i==="true"?c.jsx(Be,{}):null;if(a){var s={TrialDialog:{value:null},Version:{value:"2024-08-15-a"},Type:{value:null},DaysLeft:{value:null}};return c.jsxs(Oe,{types:s,actionTrace:!1,actionStack:!1,dispatchTrace:!1,dispatchStack:!1,middleware:[],middlewareafter:[],children:[Te!=="production"&&c.jsx(Qt,{r,v:ce.version,t:Te}),e]})}}catch(o){return c.jsx("div",{children:o.toString()})}}const tr=e=>{if(typeof window===void 0||typeof window>"u")return;const[t,r]=m.useState(e);var i=m.useRef();return i.current=t,[()=>i.current,r]};function rr(e){if(!(typeof window===void 0||typeof window>"u")){for(var t,r=e.getController(),i=e;r===void 0;)r=e.parent.getController(),i=e.parent;if(t=r.getReferences(),t===null&&(t={}),i.ReExtChildren!==void 0)for(var a=0;a<i.ReExtChildren.length;a++)i.ReExtChildren[a].reference!==null&&(t[i.ReExtChildren[a].reference]=i.ReExtChildren[a]);return t}}C.Fill=Fe,C.ReExtProvider=er,C.ReExtReferences=rr,C.default=Ue,C.useReExtState=tr,Object.defineProperties(C,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});

@@ -6,3 +6,3 @@ const { chalk, log, getRegistryUrl } = require('./common');

const fs = require('fs');
await log('postpack.js for ' + process.env.npm_package_name + ' started...','green')
await log('postpack.js for ' + process.env.npm_package_name + ' started...', 'green')

@@ -13,10 +13,16 @@ const ORIG_PKG_PATH = path.resolve(__dirname, '../../package.json');

await log('packagetemp: ' + TEMP_PKG_PATH)
const tempPkgData = require(TEMP_PKG_PATH);
var tempPkgDataString = JSON.stringify(tempPkgData, null, 2)
fs.writeFileSync(ORIG_PKG_PATH, tempPkgDataString);
await log('package.json updated with packagetemp.json data...')
fs.unlinkSync(TEMP_PKG_PATH);
await log('packagetemp.json deleted...')
log('postpack.js for ' + process.env.npm_package_name + ' completed...\n','green')
const fileExists = fs.existsSync(TEMP_PKG_PATH);
if (fileExists) {
await log(`${TEMP_PKG_PATH} exists.`);
const tempPkgData = require(TEMP_PKG_PATH);
var tempPkgDataString = JSON.stringify(tempPkgData, null, 2)
fs.writeFileSync(ORIG_PKG_PATH, tempPkgDataString);
await log('package.json updated with packagetemp.json data...')
fs.unlinkSync(TEMP_PKG_PATH);
await log('packagetemp.json deleted...')
} else {
await log(`${TEMP_PKG_PATH} does not exist.`);
}
log('postpack.js for ' + process.env.npm_package_name + ' completed...\n', 'green')
}

@@ -23,0 +29,0 @@ catch (e) {

{
"name": "@sencha/reext",
"version": "0.0.282",
"version": "0.0.287",
"description": "React ReExt",

@@ -5,0 +5,0 @@ "types": "./dist/ReExt/types.d.ts",

@@ -20,3 +20,3 @@ # ReExt - ExtJS Components in React

<a download href="https://reextdemo.vercel.app/ReExt/reextdesigner-0.0.94.vsix">Download the ReExt Designer VS Code Extension (preview version)</a>
<a download href="https://reextdemo.vercel.app/ReExt/reextdesigner-0.0.102.vsix">Download the ReExt Designer VS Code Extension (preview version)</a>

@@ -23,0 +23,0 @@ To install the ReExt Designer Extension (preview version) in VS Code, click on the Extensions Activity Bar item, then click the '...' menu in the upper right corner of the Extensions View, and select 'Install from VSIX...'

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc