diff --git a/HMI_V5_10_2_PERSID_BDE_USERID_FIX.md b/HMI_V5_10_2_PERSID_BDE_USERID_FIX.md new file mode 100644 index 0000000..ecc9f73 --- /dev/null +++ b/HMI_V5_10_2_PERSID_BDE_USERID_FIX.md @@ -0,0 +1,30 @@ +# WidgetWorkbench V5.10.2 – PERS_ID und BDE_USERID + +- `BDE.PERS_STAMM.PERS_ID` ist `NUMERIC(19,0)`. Verwendung in JDBC: `setBigDecimal` und `getBigDecimal(...).toPlainString()`, keine Double-Konvertierung und keine numerischen `setString`-Parameter. +- `BDE.PERS_STAMM.BDE_USERID` ist der eindeutige IMSAPI-Anmeldename. Der Rollen-Dialog zeigt beide Felder; die Suche berücksichtigt BDE_USERID. +- Rollen- und Gruppenmitgliedschaften liegen unverändert in `CUST.HMI_APP_PERSON_ROLE` / `CUST.HMI_APP_PERSON_GROUP`, Schlüssel `PERS_ID` als normalisierter Text. **Keine Schemaänderung**. +- Nach erfolgreichem `regLogin` wird `BDE_USERID` über den Pool `dsMesMiiNJTA` auf die numerische `PERS_ID` aufgelöst und mit `CUST.HMI_APP_LOGIN_PERSON` verknüpft, sofern das HMI-Schema bereit ist. +- In der Admin-Rollenverwaltung erzeugt das Speichern einer Person die LOGIN_ID→PERS_ID-Verknüpfung ebenso automatisch, wenn BDE_USERID vorhanden ist. +- Die erstmalige `hmi-admin`-Zuweisung verlangt, dass der per IMSAPI angemeldete Benutzer mit `BDE_USERID` der ausgewählten `PERS_ID` übereinstimmt und dass der Einmal-Code gültig ist. +- Eine bestehende Verknüpfung zu einer *anderen* Personal-ID wird nicht still überschrieben. Bitte dann Admin-/Datenbank-Daten prüfen. + +## Suche über dsMesMiiNJTA + +```sql +SELECT NAME, VORNAME, PERS_ID, BDE_USERID +FROM BDE.PERS_STAMM +ORDER BY NAME, VORNAME; +``` + +Die CUST-Tabelle speichert `PERS_ID` weiterhin als Text zur Datenbankkompatibilität; nur die MES-Abfrage benötigt `BigDecimal`. + +## Prüfen + +1. IMSAPI-Login durchführen. +2. Im Admin-Dialog Personalstamm nach Name oder BDE_USERID suchen; beide IDs prüfen. +3. Rollen speichern; danach Eintrag in `CUST.HMI_APP_LOGIN_PERSON` und `CUST.HMI_APP_PERSON_ROLE` prüfen. +4. Abmelden und erneut anmelden, damit wirksame Rollen neu gelesen werden. + +## Build + +`./build-hmi.sh` – Maven-/Vite-Live-Build ist in dieser Umgebung nicht durchgelaufen. Rollenzugriffe müssen auf beiden DB-Varianten gegen den echten Server getestet werden. diff --git a/backend/src/main/java/com/workbenchclassic/hmi/HmiAuth.java b/backend/src/main/java/com/workbenchclassic/hmi/HmiAuth.java index 74bc651..2e36b9a 100644 --- a/backend/src/main/java/com/workbenchclassic/hmi/HmiAuth.java +++ b/backend/src/main/java/com/workbenchclassic/hmi/HmiAuth.java @@ -70,9 +70,9 @@ final class HmiAuth { ((String)expected).getBytes(StandardCharsets.UTF_8), given.getBytes(StandardCharsets.UTF_8)); } static String persId(Connection c, String login) throws SQLException { - try (PreparedStatement p = c.prepareStatement("SELECT PERS_ID FROM " + HmiDb.schemaPrefix() + "HMI_APP_LOGIN_PERSON WHERE LOGIN_ID=?")) { - p.setString(1, login); - try (ResultSet r = p.executeQuery()) { return r.next() ? r.getString(1) : null; } + try (PreparedStatement p = c.prepareStatement("SELECT PERS_ID FROM " + HmiDb.schemaPrefix() + "HMI_APP_LOGIN_PERSON WHERE UPPER(LOGIN_ID)=?")) { + p.setString(1, login.toUpperCase(Locale.ROOT)); + try (ResultSet r = p.executeQuery()) { return r.next() ? HmiPersonnel.normalizeId(r.getString(1)) : null; } } } static java.util.Set roles(HttpServletRequest request) { diff --git a/backend/src/main/java/com/workbenchclassic/hmi/HmiImsapiSecurityResource.java b/backend/src/main/java/com/workbenchclassic/hmi/HmiImsapiSecurityResource.java index 5f75b49..cb07630 100644 --- a/backend/src/main/java/com/workbenchclassic/hmi/HmiImsapiSecurityResource.java +++ b/backend/src/main/java/com/workbenchclassic/hmi/HmiImsapiSecurityResource.java @@ -69,6 +69,8 @@ public class HmiImsapiSecurityResource { session.setAttribute(HmiAuth.STATION,station); session.setAttribute(HmiAuth.CONTEXT,context.toString()); session.setAttribute(HmiAuth.TARGET,verifiedTarget); + // Resolve IMSAPI username via BDE.PERS_STAMM.BDE_USERID to numeric PERS_ID. + HmiPersonnel.bindAuthenticatedLogin(user); String csrf = HmiAuth.initCsrf(request); return json(200,new JSONObject().put("user",user).put("station",station) .put("csrf",csrf).put("designer",HmiAuth.designer(request)) diff --git a/backend/src/main/java/com/workbenchclassic/hmi/HmiInitialAdmin.java b/backend/src/main/java/com/workbenchclassic/hmi/HmiInitialAdmin.java index 850e963..a51b176 100644 --- a/backend/src/main/java/com/workbenchclassic/hmi/HmiInitialAdmin.java +++ b/backend/src/main/java/com/workbenchclassic/hmi/HmiInitialAdmin.java @@ -1,6 +1,5 @@ package com.workbenchclassic.hmi; -import com.workbenchclassic.DBService; import java.nio.charset.StandardCharsets; import java.security.MessageDigest; import java.security.SecureRandom; @@ -18,7 +17,6 @@ import java.util.logging.Logger; final class HmiInitialAdmin { private static final Logger LOG = Logger.getLogger(HmiInitialAdmin.class.getName()); private static final SecureRandom RANDOM = new SecureRandom(); - private static final DBService MES = new DBService("dsMesMiiNJTA"); private static volatile byte[] codeDigest; private HmiInitialAdmin() { } @@ -83,16 +81,11 @@ final class HmiInitialAdmin { if (!compare(code))throw new SecurityException("Ungültiger Einrichtungscode"); if(login==null || login.length()>120 || !login.matches("[A-Za-z0-9_.@-]+")) throw new IllegalArgumentException("Ungültiger IMSAPI-Benutzer"); - if(persId==null || !persId.matches("[A-Za-z0-9_.-]{1,120}")) - throw new IllegalArgumentException("Ungültige PERS_ID"); - // The requested personnel ID must really exist in the independent MES datasource. - try(Connection c=MES.getConnection();PreparedStatement ps=c.prepareStatement( - "SELECT PERS_ID FROM BDE.PERS_STAMM WHERE PERS_ID=?")) { - ps.setString(1,persId);ps.setMaxRows(1); - try(ResultSet rs=ps.executeQuery()) { - if(!rs.next())throw new IllegalArgumentException("PERS_ID nicht in BDE.PERS_STAMM vorhanden"); - } - } + // PERS_ID in the MES is NUMERIC(19,0). The supplied IMSAPI user must also + // match BDE_USERID of that exact person; otherwise first-run admin is denied. + HmiPersonnel.Person person = HmiPersonnel.byId(persId); + HmiPersonnel.requireMatchingLogin(person, login); + persId = person.id; String prefix=HmiDb.schemaPrefix(); try(Connection c=HmiDb.open()) { c.setAutoCommit(false); @@ -105,21 +98,7 @@ final class HmiInitialAdmin { if(!rs.next() || rs.getString(1)!=null || hasAdministrator(c)) throw new IllegalStateException("Administrator wurde bereits eingerichtet"); } - try(PreparedStatement ps=c.prepareStatement("SELECT PERS_ID FROM "+prefix+ - "HMI_APP_LOGIN_PERSON WHERE LOGIN_ID=?")) { - ps.setString(1,login); - try(ResultSet rs=ps.executeQuery()) { - if(rs.next()) { - if(!persId.equals(rs.getString(1))) - throw new IllegalStateException("Dieser Login ist bereits einer anderen PERS_ID zugeordnet"); - } else { - try(PreparedStatement ins=c.prepareStatement("INSERT INTO "+prefix+ - "HMI_APP_LOGIN_PERSON(LOGIN_ID,PERS_ID) VALUES (?,?)")) { - ins.setString(1,login);ins.setString(2,persId);ins.executeUpdate(); - } - } - } - } + HmiPersonnel.ensureMapping(c, person); try(PreparedStatement ps=c.prepareStatement("INSERT INTO "+prefix+ "HMI_APP_PERSON_ROLE(PERS_ID,ROLE_KEY) VALUES (?,'hmi-admin')")) { ps.setString(1,persId);ps.executeUpdate(); diff --git a/backend/src/main/java/com/workbenchclassic/hmi/HmiPersonnel.java b/backend/src/main/java/com/workbenchclassic/hmi/HmiPersonnel.java new file mode 100644 index 0000000..453ddb4 --- /dev/null +++ b/backend/src/main/java/com/workbenchclassic/hmi/HmiPersonnel.java @@ -0,0 +1,112 @@ +package com.workbenchclassic.hmi; + +import com.workbenchclassic.DBService; +import java.math.BigDecimal; +import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.util.Locale; +import java.util.logging.Level; +import java.util.logging.Logger; + +/** Resolve BDE.PERS_STAMM numeric PERS_ID and its authoritative BDE_USERID. */ +final class HmiPersonnel { + private static final Logger LOG = Logger.getLogger(HmiPersonnel.class.getName()); + private static final DBService MES = new DBService("dsMesMiiNJTA"); + + private HmiPersonnel() { } + + static String normalizeId(String supplied) { + if (supplied == null || !supplied.trim().matches("[0-9]{1,19}")) + throw new IllegalArgumentException("PERS_ID muss eine numerische ID mit maximal 19 Stellen sein"); + return new BigDecimal(supplied.trim()).toPlainString(); + } + + static final class Person { + final String id; + final String login; + Person(ResultSet rs) throws SQLException { + BigDecimal number = rs.getBigDecimal("PERS_ID"); + if (number == null) throw new SQLException("PERS_ID fehlt in BDE.PERS_STAMM"); + id = number.toPlainString(); + String raw = rs.getString("BDE_USERID"); + login = raw == null ? "" : raw.trim(); + } + } + + static Person byId(String supplied) throws SQLException { + String id = normalizeId(supplied); + try (Connection c = MES.getConnection(); PreparedStatement ps = c.prepareStatement( + "SELECT PERS_ID, BDE_USERID FROM BDE.PERS_STAMM WHERE PERS_ID=?")) { + ps.setBigDecimal(1, new BigDecimal(id)); + try (ResultSet rs = ps.executeQuery()) { + if (!rs.next()) throw new IllegalArgumentException("PERS_ID nicht in BDE.PERS_STAMM vorhanden"); + return new Person(rs); + } + } + } + + static Person byLogin(String login) throws SQLException { + if (login == null || !login.matches("[A-Za-z0-9_.@-]{1,120}")) return null; + try (Connection c = MES.getConnection(); PreparedStatement ps = c.prepareStatement( + "SELECT PERS_ID, BDE_USERID FROM BDE.PERS_STAMM WHERE UPPER(BDE_USERID)=?")) { + ps.setString(1, login.toUpperCase(Locale.ROOT)); + try (ResultSet rs = ps.executeQuery()) { + if (!rs.next()) return null; + Person person = new Person(rs); + if (rs.next()) throw new SQLException("BDE_USERID ist nicht eindeutig"); + return person; + } + } + } + + static void requireMatchingLogin(Person person, String login) { + if (person.login.isEmpty() || login == null || !person.login.equalsIgnoreCase(login)) + throw new IllegalArgumentException("IMSAPI-Login passt nicht zu BDE.PERS_STAMM.BDE_USERID"); + } + + /** Update/insert the mapping; never silently remap a login to a different person. */ + static void ensureMapping(Connection c, Person person) throws SQLException { + if (person.login.isEmpty()) return; + String prefix = HmiDb.schemaPrefix(); + try (PreparedStatement p = c.prepareStatement("SELECT PERS_ID FROM " + prefix + + "HMI_APP_LOGIN_PERSON WHERE UPPER(LOGIN_ID)=?")) { + p.setString(1, person.login.toUpperCase(Locale.ROOT)); + try (ResultSet rs = p.executeQuery()) { + if (rs.next()) { + if (!person.id.equals(normalizeId(rs.getString(1)))) + throw new SQLException("Bestehende Login-Zuordnung stimmt nicht mit BDE_USERID überein"); + return; + } + } + } + try (PreparedStatement p = c.prepareStatement("INSERT INTO " + prefix + + "HMI_APP_LOGIN_PERSON(LOGIN_ID,PERS_ID) VALUES (?,?)")) { + p.setString(1, person.login); + p.setString(2, person.id); + p.executeUpdate(); + } catch (SQLException concurrent) { + // Concurrent inserts are safe only if the winner stored the same PERS_ID. + try (PreparedStatement verify = c.prepareStatement("SELECT PERS_ID FROM " + prefix + + "HMI_APP_LOGIN_PERSON WHERE UPPER(LOGIN_ID)=?")) { + verify.setString(1, person.login.toUpperCase(Locale.ROOT)); + try (ResultSet rs = verify.executeQuery()) { + if (!rs.next() || !person.id.equals(normalizeId(rs.getString(1)))) throw concurrent; + } + } + } + } + + /** On a successful IMSAPI regLogin, automatically link the verified login to PERS_ID. */ + static void bindAuthenticatedLogin(String login) { + if (!HmiSchemaBootstrap.isReady()) return; + try { + Person person = byLogin(login); + if (person == null) return; + try (Connection c = HmiDb.open()) { ensureMapping(c, person); } + } catch (SQLException | IllegalArgumentException e) { + LOG.log(Level.WARNING, "HMI BDE_USERID / PERS_ID lookup failed (roles not elevated)", e); + } + } +} diff --git a/backend/src/main/java/com/workbenchclassic/hmi/HmiRolesResource.java b/backend/src/main/java/com/workbenchclassic/hmi/HmiRolesResource.java index 80552d9..e6aa168 100644 --- a/backend/src/main/java/com/workbenchclassic/hmi/HmiRolesResource.java +++ b/backend/src/main/java/com/workbenchclassic/hmi/HmiRolesResource.java @@ -1,6 +1,7 @@ package com.workbenchclassic.hmi; import com.workbenchclassic.DBService; +import java.math.BigDecimal; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; @@ -74,15 +75,21 @@ public class HmiRolesResource { Response r=verify(false);if(r!=null)return r; String term=q==null?"":q.trim();if(term.length()>100)return fail(400,"Suchbegriff zu lang"); JSONArray out=new JSONArray(); - boolean searchById=term.matches("[0-9]{1,60}"); - String query="SELECT NAME, VORNAME, PERS_ID FROM BDE.PERS_STAMM WHERE UPPER(NAME) LIKE ? OR UPPER(VORNAME) LIKE ?" + boolean searchById=term.matches("[0-9]{1,19}"); + String query="SELECT NAME, VORNAME, PERS_ID, BDE_USERID FROM BDE.PERS_STAMM " + +"WHERE UPPER(NAME) LIKE ? OR UPPER(VORNAME) LIKE ? OR UPPER(BDE_USERID) LIKE ?" +(searchById ? " OR PERS_ID=?" : "")+" ORDER BY NAME,VORNAME"; try(Connection c=MES.getConnection(); PreparedStatement p=c.prepareStatement(query)) { p.setMaxRows(60);String like="%"+term.toUpperCase(java.util.Locale.ROOT).replace("%", "").replace("_", "")+"%"; // Wildcards are removed, not interpolated into SQL. - p.setString(1,like);p.setString(2,like);if(searchById)p.setString(3,term); - try(ResultSet rs=p.executeQuery()){while(rs.next())out.put(new JSONObject().put("name",rs.getString(1)) - .put("vorname",rs.getString(2)).put("persId",rs.getString(3)));} + p.setString(1,like);p.setString(2,like);p.setString(3,like); + if(searchById)p.setBigDecimal(4,new BigDecimal(term)); + try(ResultSet rs=p.executeQuery()){while(rs.next()){ + BigDecimal id=rs.getBigDecimal("PERS_ID"); + if(id!=null)out.put(new JSONObject().put("name",rs.getString("NAME")) + .put("vorname",rs.getString("VORNAME")).put("persId",id.toPlainString()) + .put("bdeUserId",rs.getString("BDE_USERID"))); + }} return json(out); }catch(SQLException e){return error(e);} } @@ -144,6 +151,7 @@ public class HmiRolesResource { public Response personAssignments(@PathParam("id")String person) { Response r=verify(false);if(r!=null)return r; try(Connection c=HmiDb.open()) { + person = HmiPersonnel.normalizeId(person); JSONObject o=new JSONObject(); try(PreparedStatement p=c.prepareStatement("SELECT ROLE_KEY FROM "+pref()+"HMI_APP_PERSON_ROLE WHERE PERS_ID=?")) { p.setString(1,key(person));try(ResultSet rs=p.executeQuery()){o.put("roles",strings(rs));} @@ -161,10 +169,14 @@ public class HmiRolesResource { public Response savePersonAssignments(@PathParam("id")String person,String body) { Response r=verify(true);if(r!=null)return r; try{JSONObject v=new JSONObject(body);Set roles=inputArray(v,"roles"),groups=inputArray(v,"groups"); + // Resolve the authoritative MES person and its unique IMSAPI BDE_USERID. + HmiPersonnel.Person matched = HmiPersonnel.byId(person); try(Connection c=HmiDb.open()) { c.setAutoCommit(false); - try {replace(c,"HMI_APP_PERSON_ROLE","PERS_ID",key(person),roles); - replace(c,"HMI_APP_PERSON_GROUP","PERS_ID",person,groups);c.commit();} + try {replace(c,"HMI_APP_PERSON_ROLE","PERS_ID",matched.id,roles); + replace(c,"HMI_APP_PERSON_GROUP","PERS_ID",matched.id,groups); + HmiPersonnel.ensureMapping(c, matched); + c.commit();} catch(Exception e){c.rollback();throw e;} }return json(new JSONObject().put("ok",true)); }catch(Exception e){return error(e);} @@ -173,14 +185,10 @@ public class HmiRolesResource { public Response loginPerson(@PathParam("login")String login,String body) { Response r=verify(true);if(r!=null)return r; try{if(login==null || !login.matches("[A-Za-z0-9_.@-]{1,120}"))throw new IllegalArgumentException("Ungültiger IMSAPI-Loginname"); - String pers=key(new JSONObject(body).getString("persId")); + HmiPersonnel.Person matched = HmiPersonnel.byId(new JSONObject(body).getString("persId")); + HmiPersonnel.requireMatchingLogin(matched, login); try(Connection c=HmiDb.open()) { - try(PreparedStatement p=c.prepareStatement("UPDATE "+pref()+"HMI_APP_LOGIN_PERSON SET PERS_ID=? WHERE LOGIN_ID=?")) { - p.setString(1,pers);p.setString(2,login); - if(p.executeUpdate()==0)try(PreparedStatement add=c.prepareStatement("INSERT INTO "+pref()+"HMI_APP_LOGIN_PERSON(LOGIN_ID,PERS_ID) VALUES (?,?)")) { - add.setString(1,login);add.setString(2,pers);add.executeUpdate(); - } - } + HmiPersonnel.ensureMapping(c, matched); }return json(new JSONObject().put("ok",true)); }catch(Exception e){return error(e);} } diff --git a/backend/src/main/webapp/hmi/assets/index-jAFjyNhV.js b/backend/src/main/webapp/hmi/assets/index-CgaWxo89.js similarity index 80% rename from backend/src/main/webapp/hmi/assets/index-jAFjyNhV.js rename to backend/src/main/webapp/hmi/assets/index-CgaWxo89.js index f15b551..5d68db2 100644 --- a/backend/src/main/webapp/hmi/assets/index-jAFjyNhV.js +++ b/backend/src/main/webapp/hmi/assets/index-CgaWxo89.js @@ -1,8 +1,8 @@ -(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))s(n);new MutationObserver(n=>{for(const r of n)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function i(n){const r={};return n.integrity&&(r.integrity=n.integrity),n.referrerPolicy&&(r.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?r.credentials="include":n.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(n){if(n.ep)return;n.ep=!0;const r=i(n);fetch(n.href,r)}})();function wn(t){const e=Object.create(null);for(const i of t.split(","))e[i]=1;return i=>i in e}const Ne={},ai=[],Mt=()=>{},xr=()=>!1,Es=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),_s=t=>t.startsWith("onUpdate:"),je=Object.assign,En=(t,e)=>{const i=t.indexOf(e);i>-1&&t.splice(i,1)},ml=Object.prototype.hasOwnProperty,Re=(t,e)=>ml.call(t,e),ce=Array.isArray,Qt=t=>Vi(t)==="[object Map]",Vt=t=>Vi(t)==="[object Set]",Gn=t=>Vi(t)==="[object Date]",pe=t=>typeof t=="function",Ue=t=>typeof t=="string",Et=t=>typeof t=="symbol",Ce=t=>t!==null&&typeof t=="object",Pr=t=>(Ce(t)||pe(t))&&pe(t.then)&&pe(t.catch),Ir=Object.prototype.toString,Vi=t=>Ir.call(t),vl=t=>Vi(t).slice(8,-1),Lr=t=>Vi(t)==="[object Object]",_n=t=>Ue(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Ci=wn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ss=t=>{const e=Object.create(null);return(i=>e[i]||(e[i]=t(i)))},bl=/-\w/g,rt=Ss(t=>t.replace(bl,e=>e.slice(1).toUpperCase())),yl=/\B([A-Z])/g,di=Ss(t=>t.replace(yl,"-$1").toLowerCase()),Rs=Ss(t=>t.charAt(0).toUpperCase()+t.slice(1)),Ds=Ss(t=>t?`on${Rs(t)}`:""),Ct=(t,e)=>!Object.is(t,e),ss=(t,...e)=>{for(let i=0;i{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:s,value:i})},As=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let jn;const ks=()=>jn||(jn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function bt(t){if(ce(t)){const e={};for(let i=0;ii.startsWith("/*")?"":i).split(wl).forEach(i=>{if(i){const s=i.split(El);s.length>1&&(e[s[0].trim()]=s[1].trim())}}),e}function Me(t){let e="";if(Ue(t))e=t;else if(ce(t))for(let i=0;iKt(i,e))}const Fr=t=>!!(t&&t.__v_isRef===!0),w=t=>Ue(t)?t:t==null?"":ce(t)||Ce(t)&&(t.toString===Ir||!pe(t.toString))?Fr(t)?w(t.value):JSON.stringify(t,Br,2):String(t),Br=(t,e)=>Fr(e)?Br(t,e.value):Qt(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((i,[s,n],r)=>(i[Us(s,r)+" =>"]=n,i),{})}:Vt(e)?{[`Set(${e.size})`]:[...e.values()].map(i=>Us(i))}:Et(e)?Us(e):Ce(e)&&!ce(e)&&!Lr(e)?String(e):e,Us=(t,e="")=>{var i;return Et(t)?`Symbol(${(i=t.description)!=null?i:e})`:t};let Ve;class Cl{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&Ve&&(Ve.active?(this.parent=Ve,this.index=(Ve.scopes||(Ve.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,i;if(this.scopes){const s=this.scopes.slice();for(e=0,i=s.length;e0&&--this._on===0){if(Ve===this)Ve=this.prevScope;else{let e=Ve;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let i,s;for(i=0,s=this.effects.length;i0)return;if(Mi){let e=Mi;for(Mi=void 0;e;){const i=e.next;e.next=void 0,e.flags&=-9,e=i}}let t;for(;Ni;){let e=Ni;for(Ni=void 0;e;){const i=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(s){t||(t=s)}e=i}}if(t)throw t}function Wr(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function Vr(t){let e,i=t.depsTail,s=i;for(;s;){const n=s.prevDep;s.version===-1?(s===i&&(i=n),kn(s),Ml(s)):e=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=n}t.deps=e,t.depsTail=i}function Xs(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(Kr(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function Kr(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===Li)||(t.globalVersion=Li,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!Xs(t))))return;t.flags|=2;const e=t.dep,i=Ie,s=wt;Ie=t,wt=!0;try{Wr(t);const n=t.fn(t._value);(e.version===0||Ct(n,t._value))&&(t.flags|=128,t._value=n,e.version++)}catch(n){throw e.version++,n}finally{Ie=i,wt=s,Vr(t),t.flags&=-3}}function kn(t,e=!1){const{dep:i,prevSub:s,nextSub:n}=t;if(s&&(s.nextSub=n,t.prevSub=void 0),n&&(n.prevSub=s,t.nextSub=void 0),i.subs===t&&(i.subs=s,!s&&i.computed)){i.computed.flags&=-5;for(let r=i.computed.deps;r;r=r.nextDep)kn(r,!0)}!e&&!--i.sc&&i.map&&i.map.delete(i.key)}function Ml(t){const{prevDep:e,nextDep:i}=t;e&&(e.nextDep=i,t.prevDep=void 0),i&&(i.prevDep=e,t.nextDep=void 0)}let wt=!0;const Gr=[];function xt(){Gr.push(wt),wt=!1}function Pt(){const t=Gr.pop();wt=t===void 0?!0:t}function qn(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const i=Ie;Ie=void 0;try{e()}finally{Ie=i}}}let Li=0;class Ol{constructor(e,i){this.sub=e,this.dep=i,this.version=i.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Tn{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!Ie||!wt||Ie===this.computed)return;let i=this.activeLink;if(i===void 0||i.sub!==Ie)i=this.activeLink=new Ol(Ie,this),Ie.deps?(i.prevDep=Ie.depsTail,Ie.depsTail.nextDep=i,Ie.depsTail=i):Ie.deps=Ie.depsTail=i,jr(i);else if(i.version===-1&&(i.version=this.version,i.nextDep)){const s=i.nextDep;s.prevDep=i.prevDep,i.prevDep&&(i.prevDep.nextDep=s),i.prevDep=Ie.depsTail,i.nextDep=void 0,Ie.depsTail.nextDep=i,Ie.depsTail=i,Ie.deps===i&&(Ie.deps=s)}return i}trigger(e){this.version++,Li++,this.notify(e)}notify(e){Rn();try{for(let i=this.subs;i;i=i.prevSub)i.sub.notify()&&i.sub.dep.notify()}finally{An()}}}function jr(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let s=e.deps;s;s=s.nextDep)jr(s)}const i=t.dep.subs;i!==t&&(t.prevSub=i,i&&(i.nextSub=t)),t.dep.subs=t}}const Qs=new WeakMap,ui=Symbol(""),Zs=Symbol(""),Di=Symbol("");function qe(t,e,i){if(wt&&Ie){let s=Qs.get(t);s||Qs.set(t,s=new Map);let n=s.get(i);n||(s.set(i,n=new Tn),n.map=s,n.key=i),n.track()}}function zt(t,e,i,s,n,r){const o=Qs.get(t);if(!o){Li++;return}const l=u=>{u&&u.trigger()};if(Rn(),e==="clear")o.forEach(l);else{const u=ce(t),d=u&&_n(i);if(u&&i==="length"){const c=Number(s);o.forEach((f,y)=>{(y==="length"||y===Di||!Et(y)&&y>=c)&&l(f)})}else switch((i!==void 0||o.has(void 0))&&l(o.get(i)),d&&l(o.get(Di)),e){case"add":u?d&&l(o.get("length")):(l(o.get(ui)),Qt(t)&&l(o.get(Zs)));break;case"delete":u||(l(o.get(ui)),Qt(t)&&l(o.get(Zs)));break;case"set":Qt(t)&&l(o.get(ui));break}}An()}function fi(t){const e=Ae(t);return e===t||(qe(e,"iterate",Di),ht(t))?e:It(t)?Zt(t)?e.map(i=>ei(gt(i))):e.map(ei):e.map(gt)}function Ts(t){return qe(t=Ae(t),"iterate",Di),t}function At(t,e){return It(t)?ei(Zt(t)?gt(e):e):gt(e)}const xl={__proto__:null,[Symbol.iterator](){return Bs(this,Symbol.iterator,t=>At(this,t))},concat(...t){return fi(this).concat(...t.map(e=>ce(e)?fi(e):e))},entries(){return Bs(this,"entries",t=>(t[1]=At(this,t[1]),t))},every(t,e){return Ut(this,"every",t,e,void 0,arguments)},filter(t,e){return Ut(this,"filter",t,e,i=>i.map(s=>At(this,s)),arguments)},find(t,e){return Ut(this,"find",t,e,i=>At(this,i),arguments)},findIndex(t,e){return Ut(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return Ut(this,"findLast",t,e,i=>At(this,i),arguments)},findLastIndex(t,e){return Ut(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return Ut(this,"forEach",t,e,void 0,arguments)},includes(...t){return zs(this,"includes",t)},indexOf(...t){return zs(this,"indexOf",t)},join(t){return fi(this).join(t)},lastIndexOf(...t){return zs(this,"lastIndexOf",t)},map(t,e){return Ut(this,"map",t,e,void 0,arguments)},pop(){return _i(this,"pop")},push(...t){return _i(this,"push",t)},reduce(t,...e){return Qn(this,"reduce",t,e)},reduceRight(t,...e){return Qn(this,"reduceRight",t,e)},shift(){return _i(this,"shift")},some(t,e){return Ut(this,"some",t,e,void 0,arguments)},splice(...t){return _i(this,"splice",t)},toReversed(){return fi(this).toReversed()},toSorted(t){return fi(this).toSorted(t)},toSpliced(...t){return fi(this).toSpliced(...t)},unshift(...t){return _i(this,"unshift",t)},values(){return Bs(this,"values",t=>At(this,t))}};function Bs(t,e,i){const s=Ts(t),n=s[e],r=n.call(s);if(s!==t&&!ht(t)){if(r[Symbol.toStringTag]==="Array Iterator"){const o=Object.create(Object.getPrototypeOf(r));return o.next=()=>Xn(r.next(),i),n!==Jr[e]&&Object.defineProperties(o,{return:{get(){const l=r.return;return typeof l=="function"?l.bind(r):l}},throw:{get(){const l=r.throw;return typeof l=="function"?l.bind(r):l}}}),o}r._next=r.next,r.next=()=>Xn(r._next(),i)}return r}function Xn(t,e){return t.done||(t.value=e(t.value)),t}const Jr=Array.prototype;function Ut(t,e,i,s,n,r){const o=Ts(t),l=o!==t&&!ht(t),u=o[e];if(u!==Jr[e]){const f=u.apply(t,r);return l?gt(f):f}let d=i;o!==t&&(l?d=function(f,y){return i.call(this,At(t,f),y,t)}:i.length>2&&(d=function(f,y){return i.call(this,f,y,t)}));const c=u.call(o,d,s);return l&&n?n(c):c}function Qn(t,e,i,s){const n=Ts(t),r=n!==t&&!ht(t);let o=i,l=!1;n!==t&&(r?(l=s.length===0,o=function(d,c,f){return l&&(l=!1,d=At(t,d)),i.call(this,d,At(t,c),f,t)}):i.length>3&&(o=function(d,c,f){return i.call(this,d,c,f,t)}));const u=n[e](o,...s);return l?At(t,u):u}function zs(t,e,i){const s=Ae(t);qe(s,"iterate",Di);const n=s[e](...i);return(n===-1||n===!1)&&On(i[0])?(i[0]=Ae(i[0]),s[e](...i)):n}function _i(t,e,i=[]){xt(),Rn();const s=Ae(t)[e].apply(t,i);return An(),Pt(),s}const Pl=wn("__proto__,__v_isRef,__isVue"),Yr=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Et));function Il(t){Et(t)||(t=String(t));const e=Ae(this);return qe(e,"has",t),e.hasOwnProperty(t)}class qr{constructor(e=!1,i=!1){this._isReadonly=e,this._isShallow=i}get(e,i,s){if(i==="__v_skip")return e.__v_skip;const n=this._isReadonly,r=this._isShallow;if(i==="__v_isReactive")return!n;if(i==="__v_isReadonly")return n;if(i==="__v_isShallow")return r;if(i==="__v_raw")return s===(n?r?Vl:eo:r?Zr:Qr).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(s)?e:void 0;const o=ce(e);if(!n){let u;if(o&&(u=xl[i]))return u;if(i==="hasOwnProperty")return Il}const l=Reflect.get(e,i,Qe(e)?e:s);if((Et(i)?Yr.has(i):Pl(i))||(n||qe(e,"get",i),r))return l;if(Qe(l)){const u=o&&_n(i)?l:l.value;return n&&Ce(u)?tn(u):u}return Ce(l)?n?tn(l):Nn(l):l}}class Xr extends qr{constructor(e=!1){super(!1,e)}set(e,i,s,n){let r=e[i];const o=ce(e)&&_n(i);if(!this._isShallow){const d=It(r);if(!ht(s)&&!It(s)&&(r=Ae(r),s=Ae(s)),!o&&Qe(r)&&!Qe(s))return d||(r.value=s),!0}const l=o?Number(i)t,Xi=t=>Reflect.getPrototypeOf(t);function Bl(t,e,i){return function(...s){const n=this.__v_raw,r=Ae(n),o=Qt(r),l=t==="entries"||t===Symbol.iterator&&o,u=t==="keys"&&o,d=n[t](...s),c=i?en:e?ei:gt;return!e&&qe(r,"iterate",u?Zs:ui),je(Object.create(d),{next(){const{value:f,done:y}=d.next();return y?{value:f,done:y}:{value:l?[c(f[0]),c(f[1])]:c(f),done:y}}})}}function Qi(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function zl(t,e){const i={get(n){const r=this.__v_raw,o=Ae(r),l=Ae(n);t||(Ct(n,l)&&qe(o,"get",n),qe(o,"get",l));const{has:u}=Xi(o),d=e?en:t?ei:gt;if(u.call(o,n))return d(r.get(n));if(u.call(o,l))return d(r.get(l));r!==o&&r.get(n)},get size(){const n=this.__v_raw;return!t&&qe(Ae(n),"iterate",ui),n.size},has(n){const r=this.__v_raw,o=Ae(r),l=Ae(n);return t||(Ct(n,l)&&qe(o,"has",n),qe(o,"has",l)),n===l?r.has(n):r.has(n)||r.has(l)},forEach(n,r){const o=this,l=o.__v_raw,u=Ae(l),d=e?en:t?ei:gt;return!t&&qe(u,"iterate",ui),l.forEach((c,f)=>n.call(r,d(c),d(f),o))}};return je(i,t?{add:Qi("add"),set:Qi("set"),delete:Qi("delete"),clear:Qi("clear")}:{add(n){const r=Ae(this),o=Xi(r),l=Ae(n),u=!e&&!ht(n)&&!It(n)?l:n;return o.has.call(r,u)||Ct(n,u)&&o.has.call(r,n)||Ct(l,u)&&o.has.call(r,l)||(r.add(u),zt(r,"add",u,u)),this},set(n,r){!e&&!ht(r)&&!It(r)&&(r=Ae(r));const o=Ae(this),{has:l,get:u}=Xi(o);let d=l.call(o,n);d||(n=Ae(n),d=l.call(o,n));const c=u.call(o,n);return o.set(n,r),d?Ct(r,c)&&zt(o,"set",n,r):zt(o,"add",n,r),this},delete(n){const r=Ae(this),{has:o,get:l}=Xi(r);let u=o.call(r,n);u||(n=Ae(n),u=o.call(r,n)),l&&l.call(r,n);const d=r.delete(n);return u&&zt(r,"delete",n,void 0),d},clear(){const n=Ae(this),r=n.size!==0,o=n.clear();return r&&zt(n,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(n=>{i[n]=Bl(n,t,e)}),i}function Cn(t,e){const i=zl(t,e);return(s,n,r)=>n==="__v_isReactive"?!t:n==="__v_isReadonly"?t:n==="__v_isShallow"?e:n==="__v_raw"?s:Reflect.get(Re(i,n)&&n in s?i:s,n,r)}const $l={get:Cn(!1,!1)},Hl={get:Cn(!1,!0)},Wl={get:Cn(!0,!1)};const Qr=new WeakMap,Zr=new WeakMap,eo=new WeakMap,Vl=new WeakMap;function Kl(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Nn(t){return It(t)?t:Mn(t,!1,Dl,$l,Qr)}function Gl(t){return Mn(t,!1,Fl,Hl,Zr)}function tn(t){return Mn(t,!0,Ul,Wl,eo)}function Mn(t,e,i,s,n){if(!Ce(t)||t.__v_raw&&!(e&&t.__v_isReactive)||t.__v_skip||!Object.isExtensible(t))return t;const r=n.get(t);if(r)return r;const o=Kl(vl(t));if(o===0)return t;const l=new Proxy(t,o===2?s:i);return n.set(t,l),l}function Zt(t){return It(t)?Zt(t.__v_raw):!!(t&&t.__v_isReactive)}function It(t){return!!(t&&t.__v_isReadonly)}function ht(t){return!!(t&&t.__v_isShallow)}function On(t){return t?!!t.__v_raw:!1}function Ae(t){const e=t&&t.__v_raw;return e?Ae(e):t}function jl(t){return!Re(t,"__v_skip")&&Object.isExtensible(t)&&Dr(t,"__v_skip",!0),t}const gt=t=>Ce(t)?Nn(t):t,ei=t=>Ce(t)?tn(t):t;function Qe(t){return t?t.__v_isRef===!0:!1}function T(t){return Jl(t,!1)}function Jl(t,e){return Qe(t)?t:new Yl(t,e)}class Yl{constructor(e,i){this.dep=new Tn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=i?e:Ae(e),this._value=i?e:gt(e),this.__v_isShallow=i}get value(){return this.dep.track(),this._value}set value(e){const i=this._rawValue,s=this.__v_isShallow||ht(e)||It(e);e=s?e:Ae(e),Ct(e,i)&&(this._rawValue=e,this._value=s?e:gt(e),this.dep.trigger())}}function Ke(t){return Qe(t)?t.value:t}const ql={get:(t,e,i)=>e==="__v_raw"?t:Ke(Reflect.get(t,e,i)),set:(t,e,i,s)=>{const n=t[e];return Qe(n)&&!Qe(i)?(n.value=i,!0):Reflect.set(t,e,i,s)}};function to(t){return Zt(t)?t:new Proxy(t,ql)}class Xl{constructor(e,i,s){this.fn=e,this.setter=i,this._value=void 0,this.dep=new Tn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Li-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!i,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&Ie!==this)return Hr(this,!0),!0}get value(){const e=this.dep.track();return Kr(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function Ql(t,e,i=!1){let s,n;return pe(t)?s=t:(s=t.get,n=t.set),new Xl(s,n,i)}const Zi={},ls=new WeakMap;let oi;function Zl(t,e=!1,i=oi){if(i){let s=ls.get(i);s||ls.set(i,s=[]),s.push(t)}}function ea(t,e,i=Ne){const{immediate:s,deep:n,once:r,scheduler:o,augmentJob:l,call:u}=i,d=P=>n?P:ht(P)||n===!1||n===0?$t(P,1):$t(P);let c,f,y,S,A=!1,N=!1;if(Qe(t)?(f=()=>t.value,A=ht(t)):Zt(t)?(f=()=>d(t),A=!0):ce(t)?(N=!0,A=t.some(P=>Zt(P)||ht(P)),f=()=>t.map(P=>{if(Qe(P))return P.value;if(Zt(P))return d(P);if(pe(P))return u?u(P,2):P()})):pe(t)?e?f=u?()=>u(t,2):t:f=()=>{if(y){xt();try{y()}finally{Pt()}}const P=oi;oi=c;try{return u?u(t,3,[S]):t(S)}finally{oi=P}}:f=Mt,e&&n){const P=f,Z=n===!0?1/0:n;f=()=>$t(P(),Z)}const I=Nl(),B=()=>{c.stop(),I&&I.active&&En(I.effects,c)};if(r&&e){const P=e;e=(...Z)=>{try{return P(...Z)}finally{B()}}}let U=N?new Array(t.length).fill(Zi):Zi;const J=P=>{if(!(!(c.flags&1)||!c.dirty&&!P))if(e){const Z=c.run();if(P||n||A||(N?Z.some((j,Q)=>Ct(j,U[Q])):Ct(Z,U))){const j=oi;xt();try{y&&y(),oi=c;const Q=[Z,U===Zi?void 0:N&&U[0]===Zi?[]:U,S];U=Z,u?u(e,3,Q):e(...Q)}finally{oi=j,Pt()}}}else c.run()};return l&&l(J),c=new zr(f),c.scheduler=o?()=>o(J,!1):J,S=P=>Zl(P,!1,c),y=c.onStop=()=>{const P=ls.get(c);if(P){if(u)u(P,4);else for(const Z of P)Z();ls.delete(c)}},e?s?J(!0):U=c.run():o?o(J.bind(null,!0),!0):c.run(),B.pause=c.pause.bind(c),B.resume=c.resume.bind(c),B.stop=B,B}function $t(t,e=1/0,i){if(e<=0||!Ce(t)||t.__v_skip||(i=i||new Map,(i.get(t)||0)>=e))return t;if(i.set(t,e),e--,Qe(t))$t(t.value,e,i);else if(ce(t))for(let s=0;s{$t(s,e,i)});else if(Lr(t)){for(const s in t)$t(t[s],e,i);for(const s of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,s)&&$t(t[s],e,i)}return t}function Ki(t,e,i,s){try{return s?t(...s):t()}catch(n){Cs(n,e,i)}}function _t(t,e,i,s){if(pe(t)){const n=Ki(t,e,i,s);return n&&Pr(n)&&n.catch(r=>{Cs(r,e,i)}),n}if(ce(t)){const n=[];for(let r=0;r>>1,n=nt[s],r=Ui(n);r=Ui(i)?nt.push(t):nt.splice(ia(e),0,t),t.flags|=1,so()}}function so(){as||(as=io.then(oo))}function sa(t){if(!ce(t))Jt&&t.id===-1?Jt.splice(hi+1,0,t):t.flags&1||(kt.push(t),t.flags|=1);else for(let e=0;e=e))continue;nt.splice(s,1),s=t?s-1:vt,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function ro(t,e,i=0){if(kt.length){let s=kt,n=0;if(e){s=[];for(let o=0;oUi(o)-Ui(l));if(kt.length=n,Jt){for(let o=0;ot.id==null?t.flags&2?-1:1/0:t.id;function oo(t){try{for(vt=0;vt{s._d&&fr(-1);const r=us(e),o=Wt.length;let l;try{l=t(...n)}finally{for(let u=Wt.length;u>o;u--)Fn();us(r),s._d&&fr(1)}return l};return s._n=!0,s._c=!0,s._d=!0,s}function fe(t,e){if(Ge===null)return t;const i=Is(Ge),s=t.dirs||(t.dirs=[]);for(let n=0;n1)return i&&pe(e)?e.call(s&&s.proxy):e}}const oa=Symbol.for("v-scx"),la=()=>ns(oa);function Ze(t,e,i){return uo(t,e,i)}function uo(t,e,i=Ne){const{immediate:s,deep:n,flush:r,once:o}=i,l=je({},i),u=e&&s||!e&&r!=="post";let d;if(zi){if(r==="sync"){const S=la();d=S.__watcherHandles||(S.__watcherHandles=[])}else if(!u){const S=()=>{};return S.stop=Mt,S.resume=Mt,S.pause=Mt,S}}const c=Xe;l.call=(S,A,N)=>_t(S,c,A,N);let f=!1;r==="post"?l.scheduler=S=>{S.i=c,st(S,c&&c.suspense)}:r!=="sync"&&(f=!0,l.scheduler=(S,A)=>{A?S():Pn(S)}),l.augmentJob=S=>{e&&(S.flags|=4),f&&(S.flags|=2,c&&(S.id=c.uid,S.i=c))};const y=ea(t,e,l);return zi&&(d?d.push(y):u&&y()),y}function aa(t,e,i){const s=this.proxy,n=Ue(t)?t.includes(".")?co(s,t):()=>s[t]:t.bind(s,s);let r;pe(e)?r=e:(r=e.handler,i=e);const o=Gi(this),l=uo(n,r.bind(s),i);return o(),l}function co(t,e){const i=e.split(".");return()=>{let s=t;for(let n=0;nt.__isTeleport,li=t=>t&&(t.disabled||t.disabled===""),ua=t=>t&&(t.defer||t.defer===""),Zn=t=>typeof SVGElement<"u"&&t instanceof SVGElement,er=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,sn=(t,e)=>{const i=t&&t.to;return Ue(i)?e?e(i):null:i},ca={name:"Teleport",__isTeleport:!0,process(t,e,i,s,n,r,o,l,u,d){const{mc:c,pc:f,pbc:y,o:{insert:S,querySelector:A,createText:N,createComment:I,parentNode:B}}=d,U=li(e.props);let{dynamicChildren:J}=e;const P=(Q,se,he)=>{Q.shapeFlag&16&&c(Q.children,se,he,n,r,o,l,u)},Z=(Q=e)=>{const se=li(Q.props),he=Q.target=sn(Q.props,A),ne=nn(he,Q,N,S);he&&(o!=="svg"&&Zn(he)?o="svg":o!=="mathml"&&er(he)&&(o="mathml"),n&&n.isCE&&(n.ce._teleportTargets||(n.ce._teleportTargets=new Set)).add(he),se||(P(Q,he,ne),Ai(Q,!1)))},j=Q=>{const se=()=>{if(jt.get(Q)===se){if(jt.delete(Q),li(Q.props)){const he=B(Q.el)||i;P(Q,he,Q.anchor),Ai(Q,!0)}Z(Q)}};jt.set(Q,se),st(se,r)};if(t==null){const Q=e.el=N(""),se=e.anchor=N("");if(S(Q,i,s),S(se,i,s),ua(e.props)||r&&r.pendingBranch){j(e);return}U&&(P(e,i,se),Ai(e,!0)),Z()}else{e.el=t.el;const Q=e.anchor=t.anchor,se=jt.get(t);if(se){se.flags|=8,jt.delete(t),j(e);return}e.targetStart=t.targetStart;const he=e.target=t.target,ne=e.targetAnchor=t.targetAnchor,L=li(t.props),te=L?i:he,_e=L?Q:ne;if(o==="svg"||Zn(he)?o="svg":(o==="mathml"||er(he))&&(o="mathml"),J?(y(t.dynamicChildren,J,te,n,r,o,l),Un(t,e,!0)):u||f(t,e,te,_e,n,r,o,l,!1),U)L?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):es(e,i,Q,d,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const de=sn(e.props,A);de&&(e.target=de,es(e,de,null,d,0))}else L&&es(e,he,ne,d,1);Ai(e,U)}},remove(t,e,i,{um:s,o:{remove:n}},r){const{shapeFlag:o,children:l,anchor:u,targetStart:d,targetAnchor:c,target:f,props:y}=t,S=li(y),A=r||!S,N=jt.get(t);if(N&&(N.flags|=8,jt.delete(t)),f&&(n(d),n(c)),r&&n(u),!N&&(S||f)&&o&16)for(let I=0;I1){for(const i of t)if(i.type!==mt){e=i;break}}return e}function po(t){if(!In(t))return Ns(t.type)&&t.children?fa(t.children):t;if(t.component)return t.component.subTree;const{shapeFlag:e,children:i}=t;if(i){if(e&16)return i[0];if(e&32&&pe(i.default))return i.default()}}function cs(t,e){if(t.shapeFlag&6&&t.component){t.transition=e;const i=t.component.subTree;cs(Ns(i.type)&&po(i)||i,e)}else if(t.shapeFlag&128)t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback);else if(t.transition=e,t.type===K&&ce(t.children)){const i=Ro(t.children,!1);i&&cs(i,e)}}function rn(t){if(t.component)return rn(t.component.subTree);if(t.type===K){const e=ce(t.children)&&Ro(t.children,!1);return e?rn(e):void 0}if(t.type!==mt)return t}function He(t,e){return pe(t)?je({name:t.name},e,{setup:t}):t}function go(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function tr(t,e){let i;return!!((i=Object.getOwnPropertyDescriptor(t,e))&&!i.configurable)}const ds=new WeakMap;function Oi(t,e,i,s,n=!1){if(ce(t)){t.forEach((N,I)=>Oi(N,e&&(ce(e)?e[I]:e),i,s,n));return}if(mi(s)&&!n){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Oi(t,e,i,s.component.subTree);return}const r=s.shapeFlag&4?Is(s.component):s.el,o=n?null:r,{i:l,r:u}=t,d=e&&e.r,c=l.refs===Ne?l.refs={}:l.refs,f=l.setupState,y=Ae(f),S=f===Ne?xr:N=>tr(c,N)?!1:Re(y,N),A=(N,I)=>!(I&&tr(c,I));if(d!=null&&d!==u){if(ir(e),Ue(d))c[d]=null,S(d)&&(f[d]=null);else if(Qe(d)){const N=e;A(d,N.k)&&(d.value=null),N.k&&(c[N.k]=null)}}if(pe(u))Ki(u,l,12,[o,c]);else{const N=Ue(u),I=Qe(u);if(N||I){const B=()=>{if(t.f){const U=N?S(u)?f[u]:c[u]:A()||!t.k?u.value:c[t.k];if(n)ce(U)&&En(U,r);else if(ce(U))U.includes(r)||U.push(r);else if(N)c[u]=[r],S(u)&&(f[u]=c[u]);else{const J=[r];A(u,t.k)&&(u.value=J),t.k&&(c[t.k]=J)}}else N?(c[u]=o,S(u)&&(f[u]=o)):I&&(A(u,t.k)&&(u.value=o),t.k&&(c[t.k]=o))};if(o){const U=()=>{B(),ds.delete(t)};U.id=-1,ds.set(t,U),st(U,i)}else ir(t),B()}}}function ir(t){const e=ds.get(t);e&&(e.flags|=8,ds.delete(t))}ks().requestIdleCallback;ks().cancelIdleCallback;const mi=t=>!!t.type.__asyncLoader,In=t=>t.type.__isKeepAlive;function ha(t,e){mo(t,"a",e)}function pa(t,e){mo(t,"da",e)}function mo(t,e,i=Xe){const s=t.__wdc||(t.__wdc=()=>{let n=i;for(;n;){if(n.isDeactivated)return;n=n.parent}return t()});if(Ms(e,s,i),i){let n=i.parent;for(;n&&n.parent;)In(n.parent.vnode)&&ga(s,e,i,n),n=n.parent}}function ga(t,e,i,s){const n=Ms(e,t,s,!0);vo(()=>{En(s[e],n)},i)}function Ms(t,e,i=Xe,s=!1){if(i){const n=i[t]||(i[t]=[]),r=e.__weh||(e.__weh=(...o)=>{xt();const l=Gi(i),u=_t(e,i,t,o);return l(),Pt(),u});return s?n.unshift(r):n.push(r),r}}const Gt=t=>(e,i=Xe)=>{(!zi||t==="sp")&&Ms(t,(...s)=>e(...s),i)},ma=Gt("bm"),ii=Gt("m"),va=Gt("bu"),ba=Gt("u"),wi=Gt("bum"),vo=Gt("um"),ya=Gt("sp"),wa=Gt("rtg"),Ea=Gt("rtc");function _a(t,e=Xe){Ms("ec",t,e)}const Sa="components";function bo(t,e){return Aa(Sa,t,!0,e)||t}const Ra=Symbol.for("v-ndc");function Aa(t,e,i=!0,s=!1){const n=Ge||Xe;if(n){const r=n.type;{const l=cu(r,!1);if(l&&(l===e||l===rt(e)||l===Rs(rt(e))))return r}const o=sr(n[t]||r[t],e)||sr(n.appContext[t],e);return!o&&s?r:o}}function sr(t,e){return t&&(t[e]||t[rt(e)]||t[Rs(rt(e))])}function ge(t,e,i,s){let n;const r=i,o=ce(t);if(o||Ue(t)){const l=o&&Zt(t);let u=!1,d=!1;l&&(u=!ht(t),d=It(t),t=Ts(t)),n=new Array(t.length);for(let c=0,f=t.length;ce(l,u,void 0,r));else{const l=Object.keys(t);n=new Array(l.length);for(let u=0,d=l.length;u0;return g(),De(K,null,[pt("slot",d,s)],c?-2:64)}let o=t[e];o&&o._c&&(o._d=!1);const l=Wt.length;g();let u;try{const d=o&&yo(o(i)),c=i.key||r||d&&d.key;u=De(K,{key:(c&&!Et(c)?c:`_${e}`)+(!d&&s?"_fb":"")},d||(s?s():[]),d&&t._===1?64:-2)}catch(d){for(let c=Wt.length;c>l;c--)Fn();throw d}finally{o&&o._c&&(o._d=!0)}return u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),u}function yo(t){return t.some(e=>Ps(e)?!(e.type===mt||e.type===K&&!yo(e.children)):!0)?t:null}const on=t=>t?zo(t)?Is(t):on(t.parent):null,xi=je(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>on(t.parent),$root:t=>on(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>Eo(t),$forceUpdate:t=>t.f||(t.f=()=>{Pn(t.update)}),$nextTick:t=>t.n||(t.n=xn.bind(t.proxy)),$watch:t=>aa.bind(t)}),Ws=(t,e)=>t!==Ne&&!t.__isScriptSetup&&Re(t,e),Ta={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:i,setupState:s,data:n,props:r,accessCache:o,type:l,appContext:u}=t;if(e[0]!=="$"){const y=o[e];if(y!==void 0)switch(y){case 1:return s[e];case 2:return n[e];case 4:return i[e];case 3:return r[e]}else{if(Ws(s,e))return o[e]=1,s[e];if(n!==Ne&&Re(n,e))return o[e]=2,n[e];if(Re(r,e))return o[e]=3,r[e];if(i!==Ne&&Re(i,e))return o[e]=4,i[e];ln&&(o[e]=0)}}const d=xi[e];let c,f;if(d)return e==="$attrs"&&qe(t.attrs,"get",""),d(t);if((c=l.__cssModules)&&(c=c[e]))return c;if(i!==Ne&&Re(i,e))return o[e]=4,i[e];if(f=u.config.globalProperties,Re(f,e))return f[e]},set({_:t},e,i){const{data:s,setupState:n,ctx:r}=t;return Ws(n,e)?(n[e]=i,!0):s!==Ne&&Re(s,e)?(s[e]=i,!0):Re(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(r[e]=i,!0)},has({_:{data:t,setupState:e,accessCache:i,ctx:s,appContext:n,props:r,type:o}},l){let u;return!!(i[l]||t!==Ne&&l[0]!=="$"&&Re(t,l)||Ws(e,l)||Re(r,l)||Re(s,l)||Re(xi,l)||Re(n.config.globalProperties,l)||(u=o.__cssModules)&&u[l])},defineProperty(t,e,i){return i.get!=null?t._.accessCache[e]=0:Re(i,"value")&&this.set(t,e,i.value,null),Reflect.defineProperty(t,e,i)}};function nr(t){return ce(t)?t.reduce((e,i)=>(e[i]=null,e),{}):t}let ln=!0;function Ca(t){const e=Eo(t),i=t.proxy,s=t.ctx;ln=!1,e.beforeCreate&&rr(e.beforeCreate,t,"bc");const{data:n,computed:r,methods:o,watch:l,provide:u,inject:d,created:c,beforeMount:f,mounted:y,beforeUpdate:S,updated:A,activated:N,deactivated:I,beforeDestroy:B,beforeUnmount:U,destroyed:J,unmounted:P,render:Z,renderTracked:j,renderTriggered:Q,errorCaptured:se,serverPrefetch:he,expose:ne,inheritAttrs:L,components:te,directives:_e,filters:de}=e;if(d&&Na(d,s,null),o)for(const Ee in o){const be=o[Ee];pe(be)&&(s[Ee]=be.bind(i))}if(n){const Ee=n.call(i,i);Ce(Ee)&&(t.data=Nn(Ee))}if(ln=!0,r)for(const Ee in r){const be=r[Ee],We=pe(be)?be.bind(i,i):pe(be.get)?be.get.bind(i,i):Mt,Je=!pe(be)&&pe(be.set)?be.set.bind(i):Mt,q=re({get:We,set:Je});Object.defineProperty(s,Ee,{enumerable:!0,configurable:!0,get:()=>q.value,set:W=>q.value=W})}if(l)for(const Ee in l)wo(l[Ee],s,i,Ee);if(u){const Ee=pe(u)?u.call(i):u;Reflect.ownKeys(Ee).forEach(be=>{ra(be,Ee[be])})}c&&rr(c,t,"c");function Y(Ee,be){ce(be)?be.forEach(We=>Ee(We.bind(i))):be&&Ee(be.bind(i))}if(Y(ma,f),Y(ii,y),Y(va,S),Y(ba,A),Y(ha,N),Y(pa,I),Y(_a,se),Y(Ea,j),Y(wa,Q),Y(wi,U),Y(vo,P),Y(ya,he),ce(ne))if(ne.length){const Ee=t.exposed||(t.exposed={});ne.forEach(be=>{Object.defineProperty(Ee,be,{get:()=>i[be],set:We=>i[be]=We,enumerable:!0})})}else t.exposed||(t.exposed={});Z&&t.render===Mt&&(t.render=Z),L!=null&&(t.inheritAttrs=L),te&&(t.components=te),_e&&(t.directives=_e),he&&go(t)}function Na(t,e,i=Mt){ce(t)&&(t=an(t));for(const s in t){const n=t[s];let r;Ce(n)?"default"in n?r=ns(n.from||s,n.default,!0):r=ns(n.from||s):r=ns(n),Qe(r)?Object.defineProperty(e,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):e[s]=r}}function rr(t,e,i){_t(ce(t)?t.map(s=>s.bind(e.proxy)):t.bind(e.proxy),e,i)}function wo(t,e,i,s){let n=s.includes(".")?co(i,s):()=>i[s];if(Ue(t)){const r=e[t];pe(r)&&Ze(n,r)}else if(pe(t))Ze(n,t.bind(i));else if(Ce(t))if(ce(t))t.forEach(r=>wo(r,e,i,s));else{const r=pe(t.handler)?t.handler.bind(i):e[t.handler];pe(r)&&Ze(n,r,t)}}function Eo(t){const e=t.type,{mixins:i,extends:s}=e,{mixins:n,optionsCache:r,config:{optionMergeStrategies:o}}=t.appContext,l=r.get(e);let u;return l?u=l:!n.length&&!i&&!s?u=e:(u={},n.length&&n.forEach(d=>fs(u,d,o,!0)),fs(u,e,o)),Ce(e)&&r.set(e,u),u}function fs(t,e,i,s=!1){const{mixins:n,extends:r}=e;r&&fs(t,r,i,!0),n&&n.forEach(o=>fs(t,o,i,!0));for(const o in e)if(!(s&&o==="expose")){const l=Ma[o]||i&&i[o];t[o]=l?l(t[o],e[o]):e[o]}return t}const Ma={data:or,props:lr,emits:lr,methods:ki,computed:ki,beforeCreate:it,created:it,beforeMount:it,mounted:it,beforeUpdate:it,updated:it,beforeDestroy:it,beforeUnmount:it,destroyed:it,unmounted:it,activated:it,deactivated:it,errorCaptured:it,serverPrefetch:it,components:ki,directives:ki,watch:xa,provide:or,inject:Oa};function or(t,e){return e?t?function(){return je(pe(t)?t.call(this,this):t,pe(e)?e.call(this,this):e)}:e:t}function Oa(t,e){return ki(an(t),an(e))}function an(t){if(ce(t)){const e={};for(let i=0;ie==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${rt(e)}Modifiers`]||t[`${di(e)}Modifiers`];function Da(t,e,...i){if(t.isUnmounted)return;const s=t.vnode.props||Ne;let n=i;const r=e.startsWith("update:"),o=r&&La(s,e.slice(7));o&&(o.trim&&(n=i.map(c=>Ue(c)?c.trim():c)),o.number&&(n=n.map(As)));let l,u=s[l=Ds(e)]||s[l=Ds(rt(e))];!u&&r&&(u=s[l=Ds(di(e))]),u&&_t(u,t,6,n);const d=s[l+"Once"];if(d){if(!t.emitted)t.emitted={};else if(t.emitted[l])return;t.emitted[l]=!0,_t(d,t,6,n)}}const Ua=new WeakMap;function So(t,e,i=!1){const s=i?Ua:e.emitsCache,n=s.get(t);if(n!==void 0)return n;const r=t.emits;let o={},l=!1;if(!pe(t)){const u=d=>{const c=So(d,e,!0);c&&(l=!0,je(o,c))};!i&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}return!r&&!l?(Ce(t)&&s.set(t,null),null):(ce(r)?r.forEach(u=>o[u]=null):je(o,r),Ce(t)&&s.set(t,o),o)}function Os(t,e){return!t||!Es(e)?!1:(e=e.slice(2),e=e==="Once"?e:e.replace(/Once$/,""),Re(t,e[0].toLowerCase()+e.slice(1))||Re(t,di(e))||Re(t,e))}function ar(t){const{type:e,vnode:i,proxy:s,withProxy:n,propsOptions:[r],slots:o,attrs:l,emit:u,render:d,renderCache:c,props:f,data:y,setupState:S,ctx:A,inheritAttrs:N}=t,I=us(t);let B,U;try{if(i.shapeFlag&4){const P=n||s,Z=P;B=Tt(d.call(Z,P,c,f,S,y,A)),U=l}else{const P=e;B=Tt(P.length>1?P(f,{attrs:l,slots:o,emit:u}):P(f,null)),U=e.props?l:Fa(l)}}catch(P){Wt.length=0,Cs(P,t,1),B=pt(mt)}let J=B;if(U&&N!==!1){const P=Object.keys(U),{shapeFlag:Z}=J;P.length&&Z&7&&(r&&P.some(_s)&&(U=Ba(U,r)),J=bi(J,U,!1,!0))}if(i.dirs&&(J=bi(J,null,!1,!0),J.dirs=J.dirs?J.dirs.concat(i.dirs):i.dirs),i.transition){const P=Ns(J.type)&&po(J)||J;cs(P,i.transition)}return B=J,us(I),B}function Ro(t,e=!0){let i;for(let s=0;s{let e;for(const i in t)(i==="class"||i==="style"||Es(i))&&((e||(e={}))[i]=t[i]);return e},Ba=(t,e)=>{const i={};for(const s in t)(!_s(s)||!(s.slice(9)in e))&&(i[s]=t[s]);return i};function za(t,e,i){const{props:s,children:n,component:r}=t,{props:o,children:l,patchFlag:u}=e,d=r.emitsOptions;if(e.dirs||e.transition)return!0;if(i&&u>=0){if(u&1024)return!0;if(u&16)return s?ur(s,o,d):!!o;if(u&8){const c=e.dynamicProps;for(let f=0;fObject.create(ko),Co=t=>Object.getPrototypeOf(t)===ko;function Ha(t,e,i,s=!1){const n={},r=To();t.propsDefaults=Object.create(null),No(t,e,n,r);for(const o in t.propsOptions[0])o in n||(n[o]=void 0);i?t.props=s?n:Gl(n):t.type.props?t.props=n:t.props=r,t.attrs=r}function Wa(t,e,i,s){const{props:n,attrs:r,vnode:{patchFlag:o}}=t,l=Ae(n),[u]=t.propsOptions;let d=!1;if((s||o>0)&&!(o&16)){if(o&8){const c=t.vnode.dynamicProps;for(let f=0;f{u=!0;const[y,S]=Mo(f,e,!0);je(o,y),S&&l.push(...S)};!i&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}if(!r&&!u)return Ce(t)&&s.set(t,ai),ai;if(ce(r))for(let c=0;ct==="_"||t==="_ctx"||t==="$stable",Dn=t=>ce(t)?t.map(Tt):[Tt(t)],Ka=(t,e,i)=>{if(e._n)return e;const s=ao((...n)=>Dn(e(...n)),i);return s._c=!1,s},Oo=(t,e,i)=>{const s=t._ctx;for(const n in t){if(Ln(n))continue;const r=t[n];if(pe(r))e[n]=Ka(n,r,s);else if(r!=null){const o=Dn(r);e[n]=()=>o}}},xo=(t,e)=>{const i=Dn(e);t.slots.default=()=>i},Po=(t,e,i)=>{for(const s in e)(i||!Ln(s))&&(t[s]=e[s])},Ga=(t,e,i)=>{const s=t.slots=To();if(t.vnode.shapeFlag&32){const n=e._;n?(Po(s,e,i),i&&Dr(s,"_",n,!0)):Oo(e,s)}else e&&xo(t,e)},ja=(t,e,i)=>{const{vnode:s,slots:n}=t;let r=!0,o=Ne;if(s.shapeFlag&32){const l=e._;l?i&&l===1?r=!1:Po(n,e,i):(r=!e.$stable,Oo(e,n)),o=e}else e&&(xo(t,e),o={default:1});if(r)for(const l in n)!Ln(l)&&o[l]==null&&delete n[l]},st=Qa;function Ja(t){return Ya(t)}function Ya(t,e){const i=ks();i.__VUE__=!0;const{insert:s,remove:n,patchProp:r,createElement:o,createText:l,createComment:u,setText:d,setElementText:c,parentNode:f,nextSibling:y,setScopeId:S=Mt,insertStaticContent:A}=t,N=(p,b,C,F=null,x=null,D=null,H=void 0,$=null,k=!!b.dynamicChildren)=>{if(p===b)return;p&&!Si(p,b)&&(F=dt(p),W(p,x,D,!0),p=null),b.patchFlag===-2&&(k=!1,b.dynamicChildren=null),b.dynamicChildren&&p&&p.dynamicChildren&&p.dynamicChildren.hasOnce&&(b.dynamicChildren===ai&&(b.dynamicChildren=[]),b.dynamicChildren.hasOnce=!0);const{type:v,ref:R,shapeFlag:O}=b;switch(v){case xs:I(p,b,C,F);break;case mt:B(p,b,C,F);break;case rs:p==null&&U(b,C,F,H);break;case K:te(p,b,C,F,x,D,H,$,k);break;default:O&1?Z(p,b,C,F,x,D,H,$,k):O&6?_e(p,b,C,F,x,D,H,$,k):(O&64||O&128)&&v.process(p,b,C,F,x,D,H,$,k,ot)}R!=null&&x?Oi(R,p&&p.ref,D,b||p,!b):R==null&&p&&p.ref!=null&&Oi(p.ref,null,D,p,!0)},I=(p,b,C,F)=>{if(p==null)s(b.el=l(b.children),C,F);else{const x=b.el=p.el;b.children!==p.children&&d(x,b.children)}},B=(p,b,C,F)=>{p==null?s(b.el=u(b.children||""),C,F):b.el=p.el},U=(p,b,C,F)=>{[p.el,p.anchor]=A(p.children,b,C,F,p.el,p.anchor)},J=({el:p,anchor:b},C,F)=>{let x;for(;p&&p!==b;)x=y(p),s(p,C,F),p=x;s(b,C,F)},P=({el:p,anchor:b})=>{let C;for(;p&&p!==b;)C=y(p),n(p),p=C;n(b)},Z=(p,b,C,F,x,D,H,$,k)=>{if(b.type==="svg"?H="svg":b.type==="math"&&(H="mathml"),p==null)j(b,C,F,x,D,H,$,k);else{const v=p.el&&p.el._isVueCE?p.el:null;try{v&&v._beginPatch(),he(p,b,x,D,H,$,k)}finally{v&&v._endPatch()}}},j=(p,b,C,F,x,D,H,$)=>{let k,v;const{props:R,shapeFlag:O,transition:V,dirs:ae}=p;if(k=p.el=o(p.type,D,R&&R.is,R),O&8?c(k,p.children):O&16&&se(p.children,k,null,F,x,Vs(p,D),H,$),ae&&ni(p,null,F,"created"),Q(k,p,p.scopeId,H,F),R){for(const ve in R)ve!=="value"&&!Ci(ve)&&r(k,ve,null,R[ve],D,F);"value"in R&&r(k,"value",null,R.value,D),(v=R.onVnodeBeforeMount)&&Rt(v,F,p)}ae&&ni(p,null,F,"beforeMount");const me=qa(x,V);me&&V.beforeEnter(k),s(k,b,C),((v=R&&R.onVnodeMounted)||me||ae)&&st(()=>{v&&Rt(v,F,p),me&&V.enter(k),ae&&ni(p,null,F,"mounted")},x)},Q=(p,b,C,F,x)=>{if(C&&S(p,C),F)for(let D=0;D{for(let v=k;v{const $=b.el=p.el;let{patchFlag:k,dynamicChildren:v,dirs:R}=b;k|=p.patchFlag&16;const O=p.props||Ne,V=b.props||Ne;let ae;if(C&&ri(C,!1),(ae=V.onVnodeBeforeUpdate)&&Rt(ae,C,b,p),R&&ni(b,p,C,"beforeUpdate"),C&&ri(C,!0),v&&(!p.dynamicChildren||p.dynamicChildren.length!==v.length)&&(k=0,H=!1,v=null),(O.innerHTML&&V.innerHTML==null||O.textContent&&V.textContent==null)&&c($,""),v?ne(p.dynamicChildren,v,$,C,F,Vs(b,x),D):H||be(p,b,$,null,C,F,Vs(b,x),D,!1),k>0){if(k&16)L($,O,V,C,x);else if(k&2&&O.class!==V.class&&r($,"class",null,V.class,x),k&4&&r($,"style",O.style,V.style,x),k&8){const me=b.dynamicProps;for(let ve=0;ve{ae&&Rt(ae,C,b,p),R&&ni(b,p,C,"updated")},F)},ne=(p,b,C,F,x,D,H)=>{for(let $=0;${if(b!==C){if(b!==Ne)for(const D in b)!Ci(D)&&!(D in C)&&r(p,D,b[D],null,x,F);for(const D in C){if(Ci(D))continue;const H=C[D],$=b[D];H!==$&&D!=="value"&&r(p,D,$,H,x,F)}"value"in C&&r(p,"value",b.value,C.value,x)}},te=(p,b,C,F,x,D,H,$,k)=>{const v=b.el=p?p.el:l(""),R=b.anchor=p?p.anchor:l("");let{patchFlag:O,dynamicChildren:V,slotScopeIds:ae}=b;ae&&($=$?$.concat(ae):ae),p==null?(s(v,C,F),s(R,C,F),se(b.children||[],C,R,x,D,H,$,k)):O>0&&O&64&&V&&p.dynamicChildren&&p.dynamicChildren.length===V.length?(ne(p.dynamicChildren,V,C,x,D,H,$),(b.key!=null||x&&b===x.subTree)&&Un(p,b,!0)):be(p,b,C,R,x,D,H,$,k)},_e=(p,b,C,F,x,D,H,$,k)=>{b.slotScopeIds=$,p==null?b.shapeFlag&512?x.ctx.activate(b,C,F,H,k):de(b,C,F,x,D,H,k):ie(p,b,k)},de=(p,b,C,F,x,D,H)=>{const $=p.component=nu(p,F,x);if(In(p)&&($.ctx.renderer=ot),ou($,!1,H),$.asyncDep){if(x&&x.registerDep($,Y,H,D),!p.el){const k=$.subTree=pt(mt);B(null,k,b,C),p.placeholder=k.el}}else Y($,p,b,C,x,D,H)},ie=(p,b,C)=>{const F=b.component=p.component;if(za(p,b,C))if(F.asyncDep&&!F.asyncResolved){b.el=p.el,b.placeholder=p.placeholder,Ee(F,b,C);return}else F.next=b,F.update();else b.el=p.el,b.placeholder=p.placeholder,F.vnode=b},Y=(p,b,C,F,x,D,H)=>{const $=()=>{if(p.isMounted){let{next:O,bu:V,u:ae,parent:me,vnode:ve}=p;{const et=Io(p);if(et){O&&(O.el=ve.el,Ee(p,O,H)),et.asyncDep.then(()=>{st(()=>{p.isUnmounted||v()},x)});return}}let ye=O,ke;ri(p,!1),O?(O.el=ve.el,Ee(p,O,H)):O=ve,V&&ss(V),(ke=O.props&&O.props.onVnodeBeforeUpdate)&&Rt(ke,me,O,ve),ri(p,!0);const Le=ar(p),$e=p.subTree;p.subTree=Le,N($e,Le,f($e.el),dt($e),p,x,D),O.el=Le.el,ye===null&&$a(p,Le.el),ae&&st(ae,x),(ke=O.props&&O.props.onVnodeUpdated)&&st(()=>Rt(ke,me,O,ve),x)}else{let O;const{el:V,props:ae}=b,{bm:me,m:ve,parent:ye,root:ke,type:Le}=p,$e=mi(b);ri(p,!1),me&&ss(me),!$e&&(O=ae&&ae.onVnodeBeforeMount)&&Rt(O,ye,b),ri(p,!0);{ke.ce&&ke.ce._hasShadowRoot()&&ke.ce._injectChildStyle(Le,p.parent?p.parent.type:void 0);const et=p.subTree=ar(p);N(null,et,C,F,p,x,D),b.el=et.el}if(ve&&st(ve,x),!$e&&(O=ae&&ae.onVnodeMounted)){const et=b;st(()=>Rt(O,ye,et),x)}(b.shapeFlag&256||ye&&mi(ye.vnode)&&ye.vnode.shapeFlag&256)&&p.a&&st(p.a,x),p.isMounted=!0,b=C=F=null}};p.scope.on();const k=p.effect=new zr($);p.scope.off();const v=p.update=k.run.bind(k),R=p.job=k.runIfDirty.bind(k);R.i=p,R.id=p.uid,k.scheduler=()=>Pn(R),ri(p,!0),v()},Ee=(p,b,C)=>{b.component=p;const F=p.vnode.props;p.vnode=b,p.next=null,Wa(p,b.props,F,C),ja(p,b.children,C),xt(),no(p),Pt()},be=(p,b,C,F,x,D,H,$,k=!1)=>{const v=p&&p.children,R=p?p.shapeFlag:0,O=b.children,{patchFlag:V,shapeFlag:ae}=b;if(V>0){if(V&128){Je(v,O,C,F,x,D,H,$,k);return}else if(V&256){We(v,O,C,F,x,D,H,$,k);return}}ae&8?(R&16&&G(v,x,D),O!==v&&c(C,O)):R&16?ae&16?Je(v,O,C,F,x,D,H,$,k):G(v,x,D,!0):(R&8&&c(C,""),ae&16&&se(O,C,F,x,D,H,$,k))},We=(p,b,C,F,x,D,H,$,k)=>{p=p||ai,b=b||ai;const v=p.length,R=b.length,O=Math.min(v,R);let V;for(V=0;VR?G(p,x,D,!0,!1,O):se(b,C,F,x,D,H,$,k,O)},Je=(p,b,C,F,x,D,H,$,k)=>{let v=0;const R=b.length;let O=p.length-1,V=R-1;for(;v<=O&&v<=V;){const ae=p[v],me=b[v]=k?Bt(b[v]):Tt(b[v]);if(Si(ae,me))N(ae,me,C,null,x,D,H,$,k);else break;v++}for(;v<=O&&v<=V;){const ae=p[O],me=b[V]=k?Bt(b[V]):Tt(b[V]);if(Si(ae,me))N(ae,me,C,null,x,D,H,$,k);else break;O--,V--}if(v>O){if(v<=V){const ae=V+1,me=aeV)for(;v<=O;)W(p[v],x,D,!0),v++;else{const ae=v,me=v,ve=new Map;for(v=me;v<=V;v++){const xe=b[v]=k?Bt(b[v]):Tt(b[v]);xe.key!=null&&ve.set(xe.key,v)}let ye,ke=0;const Le=V-me+1;let $e=!1,et=0;const St=new Array(Le);for(v=0;v=Le){W(xe,x,D,!0);continue}let Be;if(xe.key!=null)Be=ve.get(xe.key);else for(ye=me;ye<=V;ye++)if(St[ye-me]===0&&Si(xe,b[ye])){Be=ye;break}Be===void 0?W(xe,x,D,!0):(St[Be-me]=v+1,Be>=et?et=Be:$e=!0,N(xe,b[Be],C,null,x,D,H,$,k),ke++)}const si=$e?Xa(St):ai;for(ye=si.length-1,v=Le-1;v>=0;v--){const xe=me+v,Be=b[xe],Ji=b[xe+1],Yi=xe+1{const{el:D,type:H,transition:$,children:k,shapeFlag:v}=p;if(v&6){q(p.component.subTree,b,C,F);return}if(v&128){p.suspense.move(b,C,F);return}if(v&64){H.move(p,b,C,ot);return}if(H===K){s(D,b,C);for(let O=0;O$.enter(D),x));else{const{leave:O,delayLeave:V,afterLeave:ae}=$,me=()=>{p.ctx.isUnmounted?n(D):s(D,b,C)},ve=()=>{const ye=D._isLeaving||!!D[Hs];D._isLeaving&&D[Hs](!0),$.persisted&&!ye?me():O(D,()=>{me(),ae&&ae()})};V?V(D,me,ve):ve()}else s(D,b,C)},W=(p,b,C,F=!1,x=!1)=>{const{type:D,props:H,ref:$,children:k,dynamicChildren:v,shapeFlag:R,patchFlag:O,dirs:V,cacheIndex:ae,memo:me}=p;if((O===-2||v&&v.hasOnce)&&(x=!1),$!=null&&(xt(),Oi($,null,C,p,!0),Pt()),ae!=null&&(!p.ctx||p.ctx===b)&&(b.renderCache[ae]=void 0),R&256){b.ctx.deactivate(p);return}const ve=R&1&&V,ye=!mi(p);let ke;if(ye&&(ke=H&&H.onVnodeBeforeUnmount)&&Rt(ke,b,p),R&6)Oe(p.component,C,F);else{if(R&128){p.suspense.unmount(C,F);return}ve&&ni(p,null,b,"beforeUnmount"),R&64?p.type.remove(p,b,C,ot,F):v&&!v.hasOnce&&(D!==K||O>0&&O&64)?G(v,b,C,!1,!0):(D===K&&O&384||!x&&R&16)&&G(k,b,C),F&&oe(p)}const Le=me!=null&&ae==null;(ye&&(ke=H&&H.onVnodeUnmounted)||ve||Le)&&st(()=>{ke&&Rt(ke,b,p),ve&&ni(p,null,b,"unmounted"),Le&&(p.el=null)},C)},oe=p=>{const{type:b,el:C,anchor:F,transition:x}=p,D=b===K;if(D&&!x){Fe(C,F);return}if(b===rs){P(p),x&&!x.persisted&&x.afterLeave&&x.afterLeave();return}const H=D?rn(p):p,$=()=>{D?f(C)&&Fe(C,F):n(C),x&&!x.persisted&&x.afterLeave&&x.afterLeave()};if(H&&H.shapeFlag&1&&x&&!x.persisted){const{leave:k,delayLeave:v}=x,R=H.el,O=()=>k(R,$);v?v(R,$,O):O()}else $()},Fe=(p,b)=>{let C;for(;p!==b;)C=y(p),n(p),p=C;n(b)},Oe=(p,b,C)=>{const{bum:F,scope:x,job:D,subTree:H,um:$,m:k,a:v}=p;dr(k),dr(v),F&&ss(F),x.stop(),D?(D.flags|=8,W(H,p,b,C)):p.vnode.el&&H&&(H.transition=p.vnode.transition,W(H,p,b,C)),$&&st($,b),st(()=>{p.isUnmounted=!0},b)},G=(p,b,C,F=!1,x=!1,D=0)=>{for(let H=D;H{if(p.shapeFlag&6)return dt(p.component.subTree);if(p.shapeFlag&128)return p.suspense.next();const b=y(p.anchor||p.el),C=b&&b[fo];return C?y(C):b},ze=(p,b,C)=>{const F=p&&b._vnode?void 0:p&&p.component?p.component.uid:su();na(()=>{p==null?b._vnode&&W(b._vnode,null,null,!0):N(b._vnode||null,p,b,null,null,null,C),b._vnode=p},F)},ot={p:N,um:W,m:q,r:oe,mt:de,mc:se,pc:be,pbc:ne,n:dt,o:t};return{render:ze,hydrate:void 0,createApp:Ia(ze)}}function Vs({type:t,props:e},i){return i==="svg"&&t==="foreignObject"||i==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:i}function ri({effect:t,job:e},i){i?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function qa(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function Un(t,e,i=!1){const s=t.children,n=e.children;if(ce(s)&&ce(n))for(let r=0;r>1,t[i[l]]0&&(e[s]=i[r-1]),i[r]=s)}}for(r=i.length,o=i[r-1];r-- >0;)i[r]=o,o=e[o];return i}function Io(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:Io(e)}function dr(t){if(t)for(let e=0;et.__isSuspense;function Qa(t,e){e&&e.pendingBranch?ce(t)?e.effects.push(...t):e.effects.push(t):sa(t)}const K=Symbol.for("v-fgt"),xs=Symbol.for("v-txt"),mt=Symbol.for("v-cmt"),rs=Symbol.for("v-stc"),Wt=[];let ut=null;function g(t=!1){Wt.push(ut=t?null:[])}function Fn(){Wt.pop(),ut=Wt[Wt.length-1]||null}let Fi=1;function fr(t,e=!1){Fi+=t,t<0&&ut&&e&&(ut.hasOnce=!0)}function Do(t){return t.dynamicChildren=Fi>0?ut||ai:null,Fn(),Fi>0&&ut&&ut.push(t),t}function m(t,e,i,s,n,r){return Do(a(t,e,i,s,n,r,!0))}function De(t,e,i,s,n){return Do(pt(t,e,i,s,n,!0))}function Ps(t){return t?t.__v_isVNode===!0:!1}function Si(t,e){return t.type===e.type&&t.key===e.key}const Uo=({key:t})=>t??null,os=({ref:t,ref_key:e,ref_for:i})=>(typeof t=="number"&&(t=""+t),t!=null?Ue(t)||Qe(t)||pe(t)?{i:Ge,r:t,k:e,f:!!i}:t:null);function a(t,e=null,i=null,s=0,n=null,r=t===K?0:1,o=!1,l=!1){const u={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Uo(e),ref:e&&os(e),scopeId:lo,slotScopeIds:null,children:i,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:Ge};return l?(hs(u,i),r&128&&t.normalize(u)):i&&(u.shapeFlag|=Ue(i)?8:16),Fi>0&&!o&&ut&&(u.patchFlag>0||r&6)&&u.patchFlag!==32&&ut.push(u),u}const pt=Za;function Za(t,e=null,i=null,s=0,n=null,r=!1){if((!t||t===Ra)&&(t=mt),Ps(t)){const l=bi(t,e,!0);return i&&hs(l,i),Fi>0&&!r&&ut&&(l.shapeFlag&6?ut[ut.indexOf(t)]=l:ut.push(l)),l.patchFlag=-2,l}if(du(t)&&(t=t.__vccOpts),e){e=eu(e);let{class:l,style:u}=e;l&&!Ue(l)&&(e.class=Me(l)),Ce(u)&&(On(u)&&!ce(u)&&(u=je({},u)),e.style=bt(u))}const o=Ue(t)?1:Lo(t)?128:Ns(t)?64:Ce(t)?4:pe(t)?2:0;return a(t,e,i,s,n,o,r,!0)}function eu(t){return t?On(t)||Co(t)?je({},t):t:null}function bi(t,e,i=!1,s=!1){const{props:n,ref:r,patchFlag:o,children:l,transition:u}=t,d=e?tu(n||{},e):n,c={__v_isVNode:!0,__v_skip:!0,type:t.type,props:d,key:d&&Uo(d),ref:e&&e.ref?i&&r?ce(r)?r.concat(os(e)):[r,os(e)]:os(e):r,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:l,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==K?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:u,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&bi(t.ssContent),ssFallback:t.ssFallback&&bi(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce,cacheIndex:t.cacheIndex};return u&&s&&cs(c,u.clone(c)),c}function X(t=" ",e=0){return pt(xs,null,t,e)}function Fo(t,e){const i=pt(rs,null,t);return i.staticCount=e,i}function z(t="",e=!1){return e?(g(),De(mt,null,t)):pt(mt,null,t)}function Tt(t){return t==null||typeof t=="boolean"?pt(mt):ce(t)?pt(K,null,t.slice()):Ps(t)?Bt(t):pt(xs,null,String(t))}function Bt(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:bi(t)}function hs(t,e){let i=0;const{shapeFlag:s}=t;if(e==null)e=null;else if(ce(e))i=16;else if(typeof e=="object")if(s&65){const n=e.default;n&&(n._c&&(n._d=!1),hs(t,n()),n._c&&(n._d=!0));return}else{i=32;const n=e._;!n&&!Co(e)?e._ctx=Ge:n===3&&Ge&&(Ge.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else if(pe(e)){if(s&65){hs(t,{default:e});return}e={default:e,_ctx:Ge},i=32}else e=String(e),s&64?(i=16,e=[X(e)]):i=8;t.children=e,t.shapeFlag|=i}function tu(...t){const e={};for(let i=0;iXe||Ge;let ps,Bi;{const t=ks(),e=(i,s)=>{let n;return(n=t[i])||(n=t[i]=[]),n.push(s),r=>{n.length>1?n.forEach(o=>o(r)):n[0](r)}};ps=e("__VUE_INSTANCE_SETTERS__",i=>Xe=i),Bi=e("__VUE_SSR_SETTERS__",i=>zi=i)}const Gi=t=>{const e=Xe;return ps(t),t.scope.on(),()=>{t.scope.off(),ps(e)}},hr=()=>{Xe&&Xe.scope.off(),ps(null)};function zo(t){return t.vnode.shapeFlag&4}let zi=!1;function ou(t,e=!1,i=!1){e&&Bi(e);const{props:s,children:n}=t.vnode,r=zo(t);Ha(t,s,r,e),Ga(t,n,i||e);const o=r?lu(t,e):void 0;return e&&Bi(!1),o}function lu(t,e){const i=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,Ta);const{setup:s}=i;if(s){xt();const n=t.setupContext=s.length>1?uu(t):null,r=Gi(t),o=Ki(s,t,0,[t.props,n]),l=Pr(o);if(Pt(),r(),(l||t.sp)&&!mi(t)&&go(t),l){if(o.then(hr,hr),e)return o.then(u=>{Bi(!0);try{pr(t,u,e)}finally{Bi(!1)}}).catch(u=>{Cs(u,t,0)});t.asyncDep=o}else pr(t,o)}else $o(t)}function pr(t,e,i){pe(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Ce(e)&&(t.setupState=to(e)),$o(t)}function $o(t,e,i){const s=t.type;t.render||(t.render=s.render||Mt);{const n=Gi(t);xt();try{Ca(t)}finally{Pt(),n()}}}const au={get(t,e){return qe(t,"get",""),t[e]}};function uu(t){const e=i=>{t.exposed=i||{}};return{attrs:new Proxy(t.attrs,au),slots:t.slots,emit:t.emit,expose:e}}function Is(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(to(jl(t.exposed)),{get(e,i){if(i in e)return e[i];if(i in xi)return xi[i](t)},has(e,i){return i in e||i in xi}})):t.proxy}function cu(t,e=!0){return pe(t)?t.displayName||t.name:t.name||e&&t.__name}function du(t){return pe(t)&&"__vccOpts"in t}const re=(t,e)=>Ql(t,e,zi),fu="3.5.44";let dn;const gr=typeof window<"u"&&window.trustedTypes;if(gr)try{dn=gr.createPolicy("vue",{createHTML:t=>t})}catch{}const Ho=dn?t=>dn.createHTML(t):t=>t,hu="http://www.w3.org/2000/svg",pu="http://www.w3.org/1998/Math/MathML",Ft=typeof document<"u"?document:null,mr=Ft&&Ft.createElement("template"),gu={insert:(t,e,i)=>{e.insertBefore(t,i||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,i,s)=>{const n=e==="svg"?Ft.createElementNS(hu,t):e==="mathml"?Ft.createElementNS(pu,t):i?Ft.createElement(t,{is:i}):Ft.createElement(t);return t==="select"&&s&&s.multiple!=null&&n.setAttribute("multiple",s.multiple),n},createText:t=>Ft.createTextNode(t),createComment:t=>Ft.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Ft.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,i,s,n,r){const o=i?i.previousSibling:e.lastChild;if(n&&(n===r||n.nextSibling))for(;e.insertBefore(n.cloneNode(!0),i),!(n===r||!(n=n.nextSibling)););else{mr.innerHTML=Ho(s==="svg"?`${t}`:s==="mathml"?`${t}`:t);const l=mr.content;if(s==="svg"||s==="mathml"){const u=l.firstChild;for(;u.firstChild;)l.appendChild(u.firstChild);l.removeChild(u)}e.insertBefore(l,i)}return[o?o.nextSibling:e.firstChild,i?i.previousSibling:e.lastChild]}},mu=Symbol("_vtc");function vu(t,e,i){const s=t[mu];s&&(e=(e?[e,...s]:[...s]).join(" ")),e==null?t.removeAttribute("class"):i?t.setAttribute("class",e):t.className=e}const gs=Symbol("_vod"),Wo=Symbol("_vsh"),bu={name:"show",beforeMount(t,{value:e},{transition:i}){t[gs]=t.style.display==="none"?"":t.style.display,i&&e?i.beforeEnter(t):Ri(t,e)},mounted(t,{value:e},{transition:i}){i&&e&&i.enter(t)},updated(t,{value:e,oldValue:i},{transition:s}){!e!=!i&&(s?e?(s.beforeEnter(t),Ri(t,!0),s.enter(t)):s.leave(t,()=>{Ri(t,!1)}):Ri(t,e))},beforeUnmount(t,{value:e}){Ri(t,e)}};function Ri(t,e){t.style.display=e?t[gs]:"none",t[Wo]=!e}const yu=Symbol(""),wu=/(?:^|;)\s*display\s*:/;function Eu(t,e,i){const s=t.style,n=Ue(i);let r=!1;if(i&&!n){if(e)if(Ue(e))for(const o of e.split(";")){const l=o.slice(0,o.indexOf(":")).trim();i[l]==null&&Ti(s,l,"")}else for(const o in e)i[o]==null&&Ti(s,o,"");for(const o in i){o==="display"&&(r=!0);const l=i[o];l!=null?Su(t,o,!Ue(e)&&e?e[o]:void 0,l)||Ti(s,o,l):Ti(s,o,"")}}else if(n){if(e!==i){const o=s[yu];o&&(i+=";"+o),s.cssText=i,r=wu.test(i)}}else e&&t.removeAttribute("style");gs in t&&((!n||e!==i)&&(t[gs]=r?s.display:""),t[Wo]&&(s.display="none"))}const ts=/\s*!important$/;function Ti(t,e,i){if(ce(i))i.forEach(s=>Ti(t,e,s));else if(i==null&&(i=""),e.startsWith("--"))ts.test(i)?t.setProperty(e,i.replace(ts,""),"important"):t.setProperty(e,i);else{const s=_u(t,e);ts.test(i)?t.setProperty(di(s),i.replace(ts,""),"important"):t[s]=i}}const vr=["Webkit","Moz","ms"],Ks={};function _u(t,e){const i=Ks[e];if(i)return i;let s=rt(e);if(s!=="filter"&&s in t)return Ks[e]=s;s=Rs(s);for(let n=0;nGs||(Nu.then(()=>Gs=0),Gs=Date.now());function Ou(t,e){const i=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=i.attached)return;const n=i.value;if(ce(n)){const r=s.stopImmediatePropagation;s.stopImmediatePropagation=()=>{r.call(s),s._stopped=!0};const o=n.slice(),l=[s];for(let u=0;ut.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,xu=(t,e,i,s,n,r)=>{const o=n==="svg";e==="class"?vu(t,s,o):e==="style"?Eu(t,i,s):Es(e)?_s(e)||Au(t,e,i,s,r):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):Pu(t,e,s,o))?(wr(t,e,s),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&yr(t,e,s,o,r,e!=="value")):t._isVueCE&&(Iu(t,e)||t._def.__asyncLoader&&(/[A-Z]/.test(e)||!Ue(s)))?wr(t,rt(e),s,r,e):(e==="true-value"?t._trueValue=s:e==="false-value"&&(t._falseValue=s),yr(t,e,s,o))};function Pu(t,e,i,s){if(s)return!!(e==="innerHTML"||e==="textContent"||e in t&&_r(e)&&pe(i));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="sandbox"&&t.tagName==="IFRAME"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const n=t.tagName;if(n==="IMG"||n==="VIDEO"||n==="CANVAS"||n==="SOURCE")return!1}return _r(e)&&Ue(i)?!1:e in t}function Iu(t,e){const i=t._def.props;if(!i)return!1;const s=rt(e);return Array.isArray(i)?i.some(n=>rt(n)===s):Object.keys(i).some(n=>rt(n)===s)}const yi=t=>{const e=t.props["onUpdate:modelValue"]||!1;return ce(e)?i=>ss(e,i):e};function Lu(t){t.target.composing=!0}function Sr(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Nt=Symbol("_assign"),is=Symbol("_initialValue");function js(t,e,i){return e&&(t=t.trim()),i&&(t=As(t)),t}const Se={created(t,{modifiers:{lazy:e,trim:i,number:s}},n){t.parentNode&&(t.type==="text"?t[is]=t.defaultValue.replace(/[\r\n]/g,""):t.type==="textarea"&&(t[is]=t.defaultValue.replace(/\r\n?/g,` -`))),t[Nt]=yi(n);const r=s||n.props&&n.props.type==="number";Yt(t,e?"change":"input",o=>{o.target.composing||t[Nt](js(t.value,i,r))}),(i||r)&&Yt(t,"change",()=>{t.value=js(t.value,i,r)}),e||(Yt(t,"compositionstart",Lu),Yt(t,"compositionend",Sr),Yt(t,"change",Sr))},mounted(t,{value:e,modifiers:{trim:i,number:s}}){const n=e??"",r=t[is];delete t[is],r!==void 0&&(t.type==="text"||t.type==="textarea")&&t.value!==r?t[Nt](js(t.value,i,s)):t.value=n},beforeUpdate(t,{value:e,oldValue:i,modifiers:{lazy:s,trim:n,number:r}},o){if(t[Nt]=yi(o),t.composing)return;const l=(r||t.type==="number")&&!/^0\d/.test(t.value)?As(t.value):t.value,u=e??"";if(l===u)return;const d=t.getRootNode();(d instanceof Document||d instanceof ShadowRoot)&&d.activeElement===t&&t.type!=="range"&&(s&&e===i||n&&t.value.trim()===u)||(t.value=u)}},qt={deep:!0,created(t,e,i){t[Nt]=yi(i),Yt(t,"change",()=>{const s=t._modelValue,n=$i(t),r=t.checked,o=t[Nt];if(ce(s)){const l=Sn(s,n),u=l!==-1;if(r&&!u)o(s.concat(n));else if(!r&&u){const d=[...s];d.splice(l,1),o(d)}}else if(Vt(s)){const l=new Set(s);r?l.add(n):l.delete(n),o(l)}else o(Vo(t,r))})},mounted:Rr,beforeUpdate(t,e,i){t[Nt]=yi(i),Rr(t,e,i)}};function Rr(t,{value:e,oldValue:i},s){t._modelValue=e;let n;if(ce(e))n=Sn(e,s.props.value)>-1;else if(Vt(e))n=e.has(s.props.value);else{if(e===i)return;n=Kt(e,Vo(t,!0))}t.checked!==n&&(t.checked=n)}const Ot={deep:!0,created(t,{value:e,modifiers:{number:i}},s){t._modelValue=e,Yt(t,"change",()=>{const n=Array.prototype.filter.call(t.options,u=>u.selected).map(u=>i?As($i(u)):$i(u)),r=t.multiple,o=r?Vt(t._modelValue)?new Set(n):n:n[0],l=t._pendingValue=[r,r?ce(o)?n.slice():n:o];try{t[Nt](o)}finally{xn(()=>{t._pendingValue===l&&(t._pendingValue=void 0)})}}),t[Nt]=yi(s)},mounted(t,{value:e}){Ar(t,e)},beforeUpdate(t,{value:e},i){t._modelValue=e,t[Nt]=yi(i)},updated(t,{value:e}){const i=t._pendingValue;t._pendingValue=void 0,(!i||i[0]!==t.multiple||!Du(e,i[1],i[0]))&&Ar(t,e)}};function Du(t,e,i){if(!i||ce(t))return Kt(t,e);if(Vt(t)){if(t.size!==e.length)return!1;for(const s of e)if(!t.has(s))return!1;return!0}return!1}function Ar(t,e){const i=t.multiple,s=ce(e);if(!(i&&!s&&!Vt(e))){for(let n=0,r=t.options.length;nString(d)===String(l)):o.selected=Sn(e,l)>-1}else o.selected=e.has(l);else if(Kt($i(o),e)){t.selectedIndex!==n&&(t.selectedIndex=n);return}}!i&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function $i(t){return"_value"in t?t._value:t.value}function Vo(t,e){const i=e?"_trueValue":"_falseValue";return i in t?t[i]:e}const Uu=["ctrl","shift","alt","meta"],Fu={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>Uu.some(i=>t[`${i}Key`]&&!e.includes(i))},ct=(t,e)=>{if(!t)return t;const i=t._withMods||(t._withMods={}),s=e.join(".");return i[s]||(i[s]=((n,...r)=>{for(let o=0;o{const e=zu().createApp(...t),{mount:i}=e;return e.mount=s=>{const n=Wu(s);if(!n)return;const r=e._component;!pe(r)&&!r.render&&!r.template&&(r.template=n.innerHTML),n.nodeType===1&&(n.textContent="");const o=i(n,!1,Hu(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),o},e});function Hu(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function Wu(t){return Ue(t)?document.querySelector(t):t}class M{static getElements(e,i=document){if(typeof e=="string"){const s="getElementById"in i?i:void 0;if(s&&!isNaN(+e[0])){const r=s.getElementById(e);return r?[r]:[]}let n=i.querySelectorAll(e);if(!n.length&&e[0]!=="."&&e[0]!=="#"&&(n=i.querySelectorAll("."+e),n.length||(n=i.querySelectorAll("#"+e)),!n.length)){const r=i.querySelector(`[gs-id="${e}"]`);return r?[r]:[]}return Array.from(n)}return[e]}static getElement(e,i=document){if(typeof e=="string"){const s="getElementById"in i?i:void 0;if(!e.length)return null;if(s&&e[0]==="#")return s.getElementById(e.substring(1));if(e[0]==="#"||e[0]==="."||e[0]==="[")return i.querySelector(e);if(s&&!isNaN(+e[0]))return s.getElementById(e);let n=i.querySelector(e);return s&&!n&&(n=s.getElementById(e)),n||(n=i.querySelector("."+e)),n}return e}static lazyLoad(e){return e.lazyLoad||e.grid?.opts?.lazyLoad&&e.lazyLoad!==!1}static createDiv(e,i){const s=document.createElement("div");return e.forEach(n=>{n&&s.classList.add(n)}),i?.appendChild(s),s}static shouldSizeToContent(e,i=!1){return e?.grid&&(i?e.sizeToContent===!0||e.grid.opts.sizeToContent===!0&&e.sizeToContent===void 0:!!e.sizeToContent||e.grid.opts.sizeToContent&&e.sizeToContent!==!1)}static isIntercepted(e,i){return!(e.y>=i.y+i.h||e.y+e.h<=i.y||e.x+e.w<=i.x||e.x>=i.x+i.w)}static isTouching(e,i){return M.isIntercepted(e,{x:i.x-.5,y:i.y-.5,w:i.w+1,h:i.h+1})}static areaIntercept(e,i){const s=e.x>i.x?e.x:i.x,n=e.x+e.wi.y?e.y:i.y,o=e.y+e.h{const o=i*((n.y??1e4)-(r.y??1e4));return o===0?i*((n.x??1e4)-(r.x??1e4)):o})}static find(e,i){return i?e.find(s=>s.id===i):void 0}static toBool(e){return typeof e=="boolean"?e:typeof e=="string"?(e=e.toLowerCase(),!(e===""||e==="no"||e==="false"||e==="0")):!!e}static toNumber(e){return e===null||e.length===0?void 0:Number(e)}static parseHeight(e){let i,s="px";if(typeof e=="string")if(e==="auto"||e==="")i=0;else{const n=e.match(/^(-[0-9]+\.[0-9]+|[0-9]*\.[0-9]+|-[0-9]+|[0-9]+)(px|em|rem|vh|vw|%|cm|mm)?$/);if(!n)throw new Error(`Invalid height val = ${e}`);s=n[2]||"px",i=parseFloat(n[1])}else i=e;return{h:i,unit:s}}static defaults(e,...i){return i.forEach(s=>{for(const n in s){if(!s.hasOwnProperty(n))return;e[n]===null||e[n]===void 0?e[n]=s[n]:typeof s[n]=="object"&&typeof e[n]=="object"&&M.defaults(e[n],s[n])}}),e}static same(e,i){if(typeof e!="object")return e==i;if(typeof e!=typeof i||Object.keys(e).length!==Object.keys(i).length)return!1;for(const s in e)if(e[s]!==i[s])return!1;return!0}static copyPos(e,i,s=!1){return i.x!==void 0&&(e.x=i.x),i.y!==void 0&&(e.y=i.y),i.w!==void 0&&(e.w=i.w),i.h!==void 0&&(e.h=i.h),s&&(i.minW&&(e.minW=i.minW),i.minH&&(e.minH=i.minH),i.maxW&&(e.maxW=i.maxW),i.maxH&&(e.maxH=i.maxH)),e}static samePos(e,i){return e&&i&&e.x===i.x&&e.y===i.y&&(e.w||1)===(i.w||1)&&(e.h||1)===(i.h||1)}static sanitizeMinMax(e){e.minW||delete e.minW,e.minH||delete e.minH,e.maxW||delete e.maxW,e.maxH||delete e.maxH}static removeInternalAndSame(e,i){if(!(typeof e!="object"||typeof i!="object")&&!(Array.isArray(e)||Array.isArray(i)))for(let s in e){const n=e[s],r=i[s];s[0]==="_"||n===r?delete e[s]:n&&typeof n=="object"&&r!==void 0&&(M.removeInternalAndSame(n,r),Object.keys(n).length||delete e[s])}}static removeInternalForSave(e,i=!0){for(let s in e)(s[0]==="_"||e[s]===null||e[s]===void 0)&&delete e[s];delete e.grid,i&&delete e.el,e.autoPosition||delete e.autoPosition,e.noResize||delete e.noResize,e.noMove||delete e.noMove,e.locked||delete e.locked,(e.w===1||e.w===e.minW)&&delete e.w,(e.h===1||e.h===e.minH)&&delete e.h}static throttle(e,i){let s=!1;return(...n)=>{s||(s=!0,setTimeout(()=>{e(...n),s=!1},i))}}static removePositioningStyles(e){const i=e.style;i.position&&i.removeProperty("position"),i.left&&i.removeProperty("left"),i.top&&i.removeProperty("top"),i.width&&i.removeProperty("width"),i.height&&i.removeProperty("height")}static getScrollElement(e){if(!e)return document.scrollingElement||document.documentElement;const i=getComputedStyle(e).overflowY;return(i==="auto"||i==="scroll")&&e.scrollHeight>e.clientHeight?e:M.getScrollElement(e.parentElement)}static updateScrollResize(e,i,s){const n=M.getScrollElement(i),r=n.clientHeight,o=n===M.getScrollElement()?0:n.getBoundingClientRect().top,l=e.clientY-o,u=lr-s;u?n.scrollBy({behavior:"smooth",top:l-s}):d&&n.scrollBy({behavior:"smooth",top:s-(r-l)})}static clone(e){return e==null||typeof e!="object"?e:e instanceof Array?[...e]:{...e}}static cloneDeep(e){const i=["parentGrid","el","grid","subGrid","engine"],s=M.clone(e);for(const n in s)s.hasOwnProperty(n)&&typeof s[n]=="object"&&n.substring(0,2)!=="__"&&!i.find(r=>r===n)&&(s[n]=M.cloneDeep(e[n]));return s}static cloneNode(e){const i=e.cloneNode(!0);return i.removeAttribute("id"),i}static appendTo(e,i){let s;typeof i=="string"?s=M.getElement(i):s=i,s&&s.appendChild(e)}static addElStyles(e,i){if(i instanceof Object)for(const s in i)i.hasOwnProperty(s)&&(Array.isArray(i[s])?i[s].forEach(n=>{e.style[s]=n}):e.style[s]=i[s])}static initEvent(e,i){const s={type:i.type},n={button:0,which:0,buttons:1,bubbles:!0,cancelable:!0,target:i.target?i.target:e.target};return["altKey","ctrlKey","metaKey","shiftKey"].forEach(r=>s[r]=e[r]),["pageX","pageY","clientX","clientY","screenX","screenY"].forEach(r=>s[r]=e[r]),{...s,...n}}static simulateMouseEvent(e,i,s){const n=e,r=new MouseEvent(i,{bubbles:!0,composed:!0,cancelable:!0,view:window,detail:1,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY,ctrlKey:n.ctrlKey??!1,altKey:n.altKey??!1,shiftKey:n.shiftKey??!1,metaKey:n.metaKey??!1,button:0,relatedTarget:e.target});(s||e.target).dispatchEvent(r)}static getValuesFromTransformedElement(e){const i=document.createElement("div");M.addElStyles(i,{opacity:"0",position:"fixed",top:"0px",left:"0px",width:"1px",height:"1px",zIndex:"-999999"}),e.appendChild(i);const s=i.getBoundingClientRect();return e.removeChild(i),i.remove(),{xScale:1/s.width,yScale:1/s.height,xOffset:s.left,yOffset:s.top}}static swap(e,i,s){if(!e)return;const n=e[i];e[i]=e[s],e[s]=n}static canBeRotated(e){return!(!e||e.w===e.h||e.locked||e.noResize||e.grid?.opts.disableResize||e.minW&&e.minW===e.maxW||e.minH&&e.minH===e.maxH)}}class Ht{constructor(e={}){this.addedNodes=[],this.removedNodes=[],this.defaultColumn=12,this.column=e.column||this.defaultColumn,this.column>this.defaultColumn&&(this.defaultColumn=this.column),this.maxRow=e.maxRow,this._float=e.float,this.nodes=e.nodes||[],this.onChange=e.onChange}batchUpdate(e=!0,i=!0){return!!this.batchMode===e?this:(this.batchMode=e,e?(this._prevFloat=this._float,this._float=!0,this.cleanNodes(),this.saveInitial()):(this._float=this._prevFloat,delete this._prevFloat,i&&this._packNodes(),this._notify()),this)}_useEntireRowArea(e,i){return(!this.float||this.batchMode&&!this._prevFloat)&&!this._hasLocked&&(!e._moving||e._skipDown||i.y<=e.y)}_fixCollisions(e,i=e,s,n={}){if(this.sortNodes(-1),s=s||this.collide(e,i),!s)return!1;if(e._moving&&!n.nested&&!this.float&&this.swap(e,s))return!0;let r=i;!this._loading&&this._useEntireRowArea(e,i)&&(r={x:0,w:this.column,y:i.y,h:i.h},s=this.collide(e,r,n.skip));let o=!1;const l={nested:!0,pack:!1};let u=0;for(;s=s||this.collide(e,r,n.skip);){if(u++>this.nodes.length*2)throw new Error("Infinite collide check");let d;if(s.locked||this._loading||e._moving&&!e._skipDown&&i.y>e.y&&!this.float&&(!this.collide(s,{...s,y:e.y},e)||!this.collide(s,{...s,y:i.y-s.h},e))){e._skipDown=e._skipDown||i.y>e.y;const c={...i,y:s.y+s.h,...l};d=this._loading&&M.samePos(e,c)?!0:this.moveNode(e,c),(s.locked||this._loading)&&d?M.copyPos(i,e):!s.locked&&d&&n.pack&&(this._packNodes(),i.y=s.y+s.h,M.copyPos(e,i)),o=o||d}else d=this.moveNode(s,{...s,y:i.y+i.h,skip:e,...l});if(!d)return o;s=void 0}return o}collide(e,i=e,s){const n=e._id,r=s?._id;return this.nodes.find(o=>o._id!==n&&o._id!==r&&M.isIntercepted(o,i))}collideAll(e,i=e,s){const n=e._id,r=s?._id;return this.nodes.filter(o=>o._id!==n&&o._id!==r&&M.isIntercepted(o,i))}directionCollideCoverage(e,i,s){if(!i.rect||!e._rect)return;const n=e._rect,r={...i.rect};r.y>n.y?(r.h+=r.y-n.y,r.y=n.y):r.h+=n.y-r.y,r.x>n.x?(r.w+=r.x-n.x,r.x=n.x):r.w+=n.x-r.x;let o,l=.5;for(let u of s){if(u.locked||!u._rect)break;const d=u._rect;let c=Number.MAX_VALUE,f=Number.MAX_VALUE;n.yd.y+d.h&&(c=(d.y+d.h-r.y)/d.h),n.xd.x+d.w&&(f=(d.x+d.w-r.x)/d.w);const y=Math.min(f,c);y>l&&(l=y,o=u)}return i.collide=o,o}cacheRects(e,i,s,n,r,o){return this.nodes.forEach(l=>l._rect={y:l.y*i+s,x:l.x*e+o,w:l.w*e-o-n,h:l.h*i-s-r}),this}swap(e,i){if(!i||i.locked||!e||e.locked)return!1;function s(){const r=i.x,o=i.y;return i.x=e.x,i.y=e.y,e.h!=i.h?(e.x=r,e.y=i.y+i.h):e.w!=i.w?(e.x=i.x+i.w,e.y=o):(e.x=r,e.y=o),e._dirty=i._dirty=!0,!0}let n;if(e.w===i.w&&e.h===i.h&&(e.x===i.x||e.y===i.y)&&(n=M.isTouching(e,i)))return s();if(n!==!1){if(e.w===i.w&&e.x===i.x&&(n||(n=M.isTouching(e,i)))){if(i.y{let d;o.locked||(o.autoPosition=!0,e==="list"&&l&&(d=u[l-1])),this.addNode(o,!1,d)}),n||delete this._inColumnResize,s||this.batchUpdate(!1),this}set float(e){this._float!==e&&(this._float=e||!1,e||this._packNodes()._notify())}get float(){return this._float||!1}sortNodes(e=1){return this.nodes=M.sort(this.nodes,e),this}_packNodes(){return this.batchMode?this:(this.sortNodes(),this.float?this.nodes.forEach(e=>{if(e._updating||e._orig===void 0||e.y===e._orig.y)return;let i=e.y;for(;i>e._orig.y;)--i,this.collide(e,{x:e.x,y:i,w:e.w,h:e.h})||(e._dirty=!0,e.y=i)}):this.nodes.forEach((e,i)=>{if(!e.locked)for(;e.y>0;){const s=i===0?0:e.y-1;if(!(i===0||!this.collide(e,{x:e.x,y:s,w:e.w,h:e.h})))break;e._dirty=e.y!==s,e.y=s}}),this)}prepareNode(e,i){e._id=e._id??Ht._idSeq++;const s=e.id;if(s){let r=1;for(;this.nodes.find(o=>o.id===e.id&&o!==e);)e.id=s+"_"+r++}(e.x===void 0||e.y===void 0||e.x===null||e.y===null)&&(e.autoPosition=!0);const n={x:0,y:0,w:1,h:1};return M.defaults(e,n),e.autoPosition||delete e.autoPosition,e.noResize||delete e.noResize,e.noMove||delete e.noMove,M.sanitizeMinMax(e),typeof e.x=="string"&&(e.x=Number(e.x)),typeof e.y=="string"&&(e.y=Number(e.y)),typeof e.w=="string"&&(e.w=Number(e.w)),typeof e.h=="string"&&(e.h=Number(e.h)),isNaN(e.x)&&(e.x=n.x,e.autoPosition=!0),isNaN(e.y)&&(e.y=n.y,e.autoPosition=!0),isNaN(e.w)&&(e.w=n.w),isNaN(e.h)&&(e.h=n.h),this.nodeBoundFix(e,i),e}nodeBoundFix(e,i){const s=e._orig||M.copyPos({},e);if(e.maxW&&(e.w=Math.min(e.w||1,e.maxW)),e.maxH&&(e.h=Math.min(e.h||1,e.maxH)),e.minW&&(e.w=Math.max(e.w||1,e.minW)),e.minH&&(e.h=Math.max(e.h||1,e.minH)),(e.x||0)+(e.w||1)>this.column&&this.columnthis.column?e.w=this.column:e.w<1&&(e.w=1),this.maxRow&&e.h>this.maxRow?e.h=this.maxRow:e.h<1&&(e.h=1),e.x<0&&(e.x=0),e.y<0&&(e.y=0),e.x+e.w>this.column&&(i?e.w=this.column-e.x:e.x=this.column-e.w),this.maxRow&&e.y+e.h>this.maxRow&&(i?e.h=this.maxRow-e.y:e.y=this.maxRow-e.h),M.samePos(e,s)||(e._dirty=!0),this}getDirtyNodes(e){return e?this.nodes.filter(i=>i._dirty&&!M.samePos(i,i._orig)):this.nodes.filter(i=>i._dirty)}_notify(e){if(this.batchMode||!this.onChange)return this;const i=(e||[]).concat(this.getDirtyNodes());return this.onChange(i),this}cleanNodes(){return this.batchMode?this:(this.nodes.forEach(e=>{delete e._dirty,delete e._lastTried}),this)}saveInitial(){return this.nodes.forEach(e=>{e._orig=M.copyPos({},e),delete e._dirty}),this._hasLocked=this.nodes.some(e=>e.locked),this}restoreInitial(){return this.nodes.forEach(e=>{!e._orig||M.samePos(e,e._orig)||(M.copyPos(e,e._orig),e._dirty=!0)}),this._notify(),this}findEmptyPosition(e,i=this.nodes,s=this.column,n){const r=n?n.y*s+(n.x+n.w):0;let o=!1;for(let l=r;!o;++l){const u=l%s,d=Math.floor(l/s);if(u+e.w>s)continue;const c={x:u,y:d,w:e.w,h:e.h};i.find(f=>M.isIntercepted(c,f))||((e.x!==u||e.y!==d)&&(e._dirty=!0),e.x=u,e.y=d,delete e.autoPosition,o=!0)}return o}addNode(e,i=!1,s){const n=this.nodes.find(o=>o._id===e._id);if(n)return n;this._inColumnResize?this.nodeBoundFix(e):this.prepareNode(e),delete e._temporaryRemoved,delete e._removeDOM;let r;return e.autoPosition&&this.findEmptyPosition(e,this.nodes,this.column,s)&&(delete e.autoPosition,r=!0),this.nodes.push(e),i&&this.addedNodes.push(e),r||this._fixCollisions(e),this.batchMode||this._packNodes()._notify(),e}removeNode(e,i=!0,s=!1){return this.nodes.find(n=>n._id===e._id)?(s&&this.removedNodes.push(e),i&&(e._removeDOM=!0),this.nodes=this.nodes.filter(n=>n._id!==e._id),e._isAboutToRemove||this._packNodes(),this._notify([e]),this):this}removeAll(e=!0,i=!0){if(delete this._layouts,!this.nodes.length)return this;e&&this.nodes.forEach(n=>n._removeDOM=!0);const s=this.nodes;return this.removedNodes=i?s:[],this.nodes=[],this._notify(s)}moveNodeCheck(e,i){if(!this.changedPosConstrain(e,i))return!1;if(i.pack=!0,!this.maxRow)return this.moveNode(e,i);let s;const n=new Ht({column:this.column,float:this.float,nodes:this.nodes.map(o=>o._id===e._id?(s={...o},s):{...o})});if(!s)return!1;const r=n.moveNode(s,i)&&n.getRow()<=Math.max(this.getRow(),this.maxRow);if(!r&&!i.resizing&&i.collide){const o=i.collide.el.gridstackNode;if(this.swap(e,o))return this._notify(),!0}return r?(n.nodes.filter(o=>o._dirty).forEach(o=>{const l=this.nodes.find(u=>u._id===o._id);l&&(M.copyPos(l,o),l._dirty=!0)}),this._notify(),!0):!1}willItFit(e){if(delete e._willFitPos,!this.maxRow)return!0;const i=new Ht({column:this.column,float:this.float,nodes:this.nodes.map(n=>({...n}))}),s={...e};return this.cleanupNode(s),delete s.el,delete s._id,delete s.content,delete s.grid,i.addNode(s),i.getRow()<=this.maxRow?(e._willFitPos=M.copyPos({},s),!0):!1}changedPosConstrain(e,i){return i.w=i.w||e.w,i.h=i.h||e.h,e.x!==i.x||e.y!==i.y?!0:(e.maxW&&(i.w=Math.min(i.w,e.maxW)),e.maxH&&(i.h=Math.min(i.h,e.maxH)),e.minW&&(i.w=Math.max(i.w,e.minW)),e.minH&&(i.h=Math.max(i.h,e.minH)),e.w!==i.w||e.h!==i.h)}moveNode(e,i){if(!e||!i)return!1;let s;i.pack===void 0&&!this.batchMode&&(s=i.pack=!0),typeof i.x!="number"&&(i.x=e.x),typeof i.y!="number"&&(i.y=e.y),typeof i.w!="number"&&(i.w=e.w),typeof i.h!="number"&&(i.h=e.h);const n=e.w!==i.w||e.h!==i.h,r=M.copyPos({},e,!0);if(M.copyPos(r,i),this.nodeBoundFix(r,n),M.copyPos(i,r),!i.forceCollide&&M.samePos(e,i))return!1;const o=M.copyPos({},e),l=this.collideAll(e,r,i.skip);let u=!0;if(l.length){const d=e._moving&&!i.nested;let c=d?this.directionCollideCoverage(e,i,l):l[0];if(d&&c&&e.grid?.opts?.subGridDynamic&&!e.grid._isTemp){const f=M.areaIntercept(i.rect,c._rect),y=M.area(i.rect),S=M.area(c._rect);f/(y.8&&(c.grid.makeSubGrid(c.el,void 0,e),c=void 0)}c?u=!this._fixCollisions(e,r,c,i):(u=!1,s&&delete i.pack)}return u&&!M.samePos(e,r)&&(e._dirty=!0,M.copyPos(e,r)),i.pack&&this._packNodes()._notify(),!M.samePos(e,o)}getRow(){return this.nodes.reduce((e,i)=>Math.max(e,i.y+i.h),0)}beginUpdate(e){return e._updating||(e._updating=!0,delete e._skipDown,this.batchMode||this.saveInitial()),this}endUpdate(){const e=this.nodes.find(i=>i._updating);return e&&(delete e._updating,delete e._skipDown),this}save(e=!0,i,s){const n=this._layouts?.length||0;let r;n&&(s?s!==this.column&&(r=this._layouts[s]):this.column!==n-1&&(r=this._layouts[n-1]));const o=[];return this.sortNodes(),this.nodes.forEach(l=>{const u=r?.find(c=>c._id===l._id),d={...l,...u||{}};M.removeInternalForSave(d,!e),i&&i(l,d),o.push(d)}),o}layoutsNodesChange(e){return!this._layouts||this._inColumnResize?this:(this._layouts.forEach((i,s)=>{if(!i||s===this.column)return this;if(s{if(!r._orig)return;const o=i.find(l=>l._id===r._id);o&&(o.y>=0&&r.y!==r._orig.y&&(o.y+=r.y-r._orig.y,o.y<0&&(o.y=0)),r.x!==r._orig.x&&(o.x=Math.round(r.x*n),o.x<0&&(o.x=0)),r.w!==r._orig.w&&(o.w=Math.round(r.w*n),o.w<1&&(o.w=1)))})}}),this)}columnChanged(e,i,s="moveScale"){if(!this.nodes.length||!i||e===i)return this;const n=s==="compact"||s==="list";n&&this.sortNodes(1),ie&&this._layouts){const l=this._layouts[i]||[],u=this._layouts.length-1;!l.length&&e!==u&&this._layouts[u]?.length&&(e=u,this._layouts[u].forEach(d=>{const c=o.find(f=>f._id===d._id);c&&(!n&&!d.autoPosition&&(c.x=d.x??c.x,c.y=d.y??c.y),c.w=d.w??c.w,(d.x==null||d.y===void 0)&&(c.autoPosition=!0))})),l.forEach(d=>{const c=o.findIndex(f=>f._id===d._id);if(c!==-1){const f=o[c];if(n){f.w=d.w;return}(d.autoPosition||isNaN(d.x)||isNaN(d.y))&&this.findEmptyPosition(d,r),d.autoPosition||(f.x=d.x??f.x,f.y=d.y??f.y,f.w=d.w??f.w,r.push(f)),o.splice(c,1)}})}if(n)this.compact(s,!1);else{if(o.length)if(typeof s=="function")s(i,e,r,o);else{const l=n||s==="none"?1:i/e,u=s==="move"||s==="moveScale",d=s==="scale"||s==="moveScale";o.forEach(c=>{c.x=i===1?0:u?Math.round(c.x*l):Math.min(c.x,i-1),c.w=i===1||e===1?1:d?Math.round(c.w*l)||1:Math.min(c.w,i),r.push(c)}),o=[]}r=M.sort(r,-1),this._inColumnResize=!0,this.nodes=[],r.forEach(l=>{this.addNode(l,!1),delete l._orig})}return this.nodes.forEach(l=>delete l._orig),this.batchUpdate(!1,!n),delete this._inColumnResize,this}cacheLayout(e,i,s=!1){const n=[];return e.forEach((r,o)=>{if(r._id===void 0){const l=r.id?this.nodes.find(u=>u.id===r.id):void 0;r._id=l?._id??Ht._idSeq++}n[o]={x:r.x,y:r.y,w:r.w,_id:r._id}}),this._layouts=s?[]:this._layouts||[],this._layouts[i]=n,this}cacheOneLayout(e,i){e._id=e._id??Ht._idSeq++;const s={x:e.x,y:e.y,w:e.w,_id:e._id};(e.autoPosition||e.x===void 0)&&(delete s.x,delete s.y,e.autoPosition&&(s.autoPosition=!0)),this._layouts=this._layouts||[],this._layouts[i]=this._layouts[i]||[];const n=this.findCacheLayout(e,i);return n===-1?this._layouts[i].push(s):this._layouts[i][n]=s,this}findCacheLayout(e,i){return this._layouts?.[i]?.findIndex(s=>s._id===e._id)??-1}removeNodeFromLayoutCache(e){if(this._layouts)for(let i=0;i0||navigator.msMaxTouchPoints>0);class at{}function ms(t,e){t.touches.length>1||(t.cancelable&&t.preventDefault(),M.simulateMouseEvent(t.changedTouches[0],e))}function Ko(t,e){t.cancelable&&t.preventDefault(),M.simulateMouseEvent(t,e)}function vs(t){at.touchHandled||(at.touchHandled=!0,ms(t,"mousedown"))}function bs(t){at.touchHandled&&ms(t,"mousemove")}function ys(t){if(!at.touchHandled)return;at.pointerLeaveTimeout&&(window.clearTimeout(at.pointerLeaveTimeout),delete at.pointerLeaveTimeout);const e=!!ue.dragElement;ms(t,"mouseup"),e||ms(t,"click"),at.touchHandled=!1}function ws(t){t.pointerType!=="mouse"&&t.target.releasePointerCapture(t.pointerId)}function Tr(t){ue.dragElement&&t.pointerType!=="mouse"&&Ko(t,"mouseenter")}function Cr(t){ue.dragElement&&t.pointerType!=="mouse"&&(at.pointerLeaveTimeout=window.setTimeout(()=>{delete at.pointerLeaveTimeout,Ko(t,"mouseleave")},10))}class Ls{constructor(e,i,s){this.host=e,this.dir=i,this.option=s,this.moving=!1,this._mouseDown=this._mouseDown.bind(this),this._mouseMove=this._mouseMove.bind(this),this._mouseUp=this._mouseUp.bind(this),this._keyEvent=this._keyEvent.bind(this),this._init()}_init(){if(this.option.element)try{this.el=this.option.element instanceof HTMLElement?this.option.element:this.host.querySelector(this.option.element)}catch(e){this.option.element=void 0,console.error("Query for resizeable handle failed, falling back",e)}return this.el||(this.el=document.createElement("div"),this.host.appendChild(this.el)),this.el.classList.add("ui-resizable-handle"),this.el.classList.add(`${Ls.prefix}${this.dir}`),this.el.style.zIndex="100",this.el.style.userSelect="none",this.el.addEventListener("mousedown",this._mouseDown),yt&&(this.el.addEventListener("touchstart",vs),this.el.addEventListener("pointerdown",ws)),this}destroy(){return this.moving&&this._mouseUp(this.mouseDownEvent),this.el.removeEventListener("mousedown",this._mouseDown),yt&&(this.el.removeEventListener("touchstart",vs),this.el.removeEventListener("pointerdown",ws)),this.option.element||this.host.removeChild(this.el),delete this.el,delete this.host,this}_mouseDown(e){this.mouseDownEvent=e,document.addEventListener("mousemove",this._mouseMove,{capture:!0,passive:!0}),document.addEventListener("mouseup",this._mouseUp,!0),yt&&(this.el.addEventListener("touchmove",bs),this.el.addEventListener("touchend",ys)),e.stopPropagation(),e.preventDefault()}_mouseMove(e){const i=this.mouseDownEvent;this.moving?this._triggerEvent("move",e):Math.abs(e.x-i.x)+Math.abs(e.y-i.y)>2&&(this.moving=!0,this._triggerEvent("start",this.mouseDownEvent),this._triggerEvent("move",e),document.addEventListener("keydown",this._keyEvent)),e.stopPropagation()}_mouseUp(e){this.moving&&(this._triggerEvent("stop",e),document.removeEventListener("keydown",this._keyEvent)),document.removeEventListener("mousemove",this._mouseMove,!0),document.removeEventListener("mouseup",this._mouseUp,!0),yt&&(this.el.removeEventListener("touchmove",bs),this.el.removeEventListener("touchend",ys)),delete this.moving,delete this.mouseDownEvent,e.stopPropagation(),e.preventDefault()}_keyEvent(e){e.key==="Escape"&&(this.host.gridstackNode?.grid?.engine.restoreInitial(),this._mouseUp(this.mouseDownEvent))}_triggerEvent(e,i){return this.option[e]&&this.option[e](i),this}}Ls.prefix="ui-resizable-";class Bn{constructor(){this._eventRegister={}}get disabled(){return this._disabled}on(e,i){this._eventRegister[e]=i}off(e){delete this._eventRegister[e]}enable(){this._disabled=!1}disable(){this._disabled=!0}destroy(){delete this._eventRegister}triggerEvent(e,i){if(!this.disabled&&this._eventRegister&&this._eventRegister[e])return this._eventRegister[e](i)}}class Hi extends Bn{constructor(e,i={}){super(),this.el=e,this.option=i,this.rectScale={x:1,y:1},this._ui=()=>{const n=this.el.parentElement.getBoundingClientRect(),r={width:this.originalRect.width,height:this.originalRect.height+this.scrolled,left:this.originalRect.left,right:this.originalRect.right,top:this.originalRect.top-this.scrolled},o=this.temporalRect||r;return{position:{left:this.option.rtl?(n.right-o.right)*this.rectScale.x:(o.left-n.left)*this.rectScale.x,top:(o.top-n.top)*this.rectScale.y},size:{width:o.width*this.rectScale.x,height:o.height*this.rectScale.y}}},this._mouseOver=this._mouseOver.bind(this),this._mouseOut=this._mouseOut.bind(this),this.enable(),this._setupAutoHide(this.option.autoHide),this._setupHandlers()}on(e,i){super.on(e,i)}off(e){super.off(e)}enable(){super.enable(),this.el.classList.remove("ui-resizable-disabled"),this._setupAutoHide(this.option.autoHide)}disable(){super.disable(),this.el.classList.add("ui-resizable-disabled"),this._setupAutoHide(!1)}destroy(){this._removeHandlers(),this._setupAutoHide(!1),delete this.el,super.destroy()}updateOption(e){const i=e.handles&&e.handles!==this.option.handles,s=e.autoHide&&e.autoHide!==this.option.autoHide;return Object.keys(e).forEach(n=>this.option[n]=e[n]),i&&(this._removeHandlers(),this._setupHandlers()),s&&this._setupAutoHide(this.option.autoHide),this}_setupAutoHide(e){return e?(this.el.classList.add("ui-resizable-autohide"),this.el.addEventListener("mouseover",this._mouseOver),this.el.addEventListener("mouseout",this._mouseOut)):(this.el.classList.remove("ui-resizable-autohide"),this.el.removeEventListener("mouseover",this._mouseOver),this.el.removeEventListener("mouseout",this._mouseOut),ue.overResizeElement===this&&delete ue.overResizeElement),this}_mouseOver(e){ue.overResizeElement||ue.dragElement||(ue.overResizeElement=this,this.el.classList.remove("ui-resizable-autohide"))}_mouseOut(e){ue.overResizeElement===this&&(delete ue.overResizeElement,this.el.classList.add("ui-resizable-autohide"))}_setupHandlers(){return this.handlers=this.option.handles.split(",").map(e=>e.trim()).map(e=>new Ls(this.el,e,{element:this.option.element,start:i=>this._resizeStart(i),stop:i=>this._resizeStop(i),move:i=>this._resizing(i,e)})),this}_resizeStart(e){this.sizeToContent=M.shouldSizeToContent(this.el.gridstackNode,!0),this.originalRect=this.el.getBoundingClientRect(),this.scrollEl=M.getScrollElement(this.el),this.scrollY=this.scrollEl.scrollTop,this.scrolled=0,this.startEvent=e,this._setupHelper(),this._applyChange();const i=M.initEvent(e,{type:"resizestart",target:this.el});return this.option.start&&this.option.start(i,this._ui()),this.el.classList.add("ui-resizable-resizing"),this.triggerEvent("resizestart",i),this}_resizing(e,i){this.scrolled=this.scrollEl.scrollTop-this.scrollY,this.temporalRect=this._getChange(e,i),this._applyChange();const s=M.initEvent(e,{type:"resize",target:this.el});return s.resizeDir=i,s.hasMovedX=this.option.rtl?i.includes("e"):i.includes("w"),s.hasMovedY=i.includes("n"),this.option.resize&&this.option.resize(s,this._ui()),this.triggerEvent("resize",s),this}_resizeStop(e){const i=M.initEvent(e,{type:"resizestop",target:this.el});return this._cleanHelper(),this.option.stop&&this.option.stop(i),this.el.classList.remove("ui-resizable-resizing"),this.triggerEvent("resizestop",i),delete this.startEvent,delete this.originalRect,delete this.temporalRect,delete this.scrollY,delete this.scrolled,this}_setupHelper(){this.elOriginStyleVal=Hi._originStyleProp.map(s=>this.el.style[s]),this.parentOriginStylePosition=this.el.parentElement.style.position;const e=this.el.parentElement,i=M.getValuesFromTransformedElement(e);return this.rectScale={x:i.xScale,y:i.yScale},getComputedStyle(this.el.parentElement).position.match(/static/)&&(this.el.parentElement.style.position="relative"),this.el.style.position="absolute",this.el.style.opacity="0.8",this}_cleanHelper(){return Hi._originStyleProp.forEach((e,i)=>{this.el.style[e]=this.elOriginStyleVal[i]||null}),this.el.parentElement.style.position=this.parentOriginStylePosition||null,this}_getChange(e,i){const s=this.startEvent,n={width:this.originalRect.width,height:this.originalRect.height+this.scrolled,left:this.originalRect.left,right:this.originalRect.right,top:this.originalRect.top-this.scrolled},r=e.clientX-s.clientX,o=this.sizeToContent?0:e.clientY-s.clientY;let l,u;const d=this.option.rtl;!d&&i.indexOf("e")>-1?n.width+=r:d&&i.indexOf("w")>-1?n.width-=r:!d&&i.indexOf("w")>-1?(n.width-=r,n.left+=r,l=!0):d&&i.indexOf("e")>-1&&(n.width+=r,n.right+=r,l=!0),i.indexOf("s")>-1?n.height+=o:i.indexOf("n")>-1&&(n.height-=o,n.top+=o,u=!0);const c=this._constrainSize(n.width,n.height,l,u);return Math.round(n.width)!==Math.round(c.width)&&(!d&&i.indexOf("w")>-1?n.left+=n.width-c.width:d&&i.indexOf("e")>-1&&(n.right-=n.width-c.width),n.width=c.width),Math.round(n.height)!==Math.round(c.height)&&(i.indexOf("n")>-1&&(n.top+=n.height-c.height),n.height=c.height),n}_constrainSize(e,i,s,n){const r=this.option,o=(s?r.maxWidthMoveLeft:r.maxWidth)||Number.MAX_SAFE_INTEGER,l=r.minWidth/this.rectScale.x||e,u=(n?r.maxHeightMoveUp:r.maxHeight)||Number.MAX_SAFE_INTEGER,d=r.minHeight/this.rectScale.y||i,c=Math.min(o,Math.max(l,e)),f=Math.min(u,Math.max(d,i));return{width:c,height:f}}_applyChange(){let e={left:0,right:0,top:0,width:0,height:0};if(this.el.style.position==="absolute"){const i=this.el.parentElement,{left:s,right:n,top:r}=i.getBoundingClientRect();e={left:s,right:n,top:r,width:0,height:0}}return this.temporalRect?(Object.entries(this.temporalRect).forEach(([i,s])=>{if(this.option.rtl?i==="left":i==="right")return;const n=i==="width"||i==="left"||i==="right"?this.rectScale.x:i==="height"||i==="top"?this.rectScale.y:1;let r;i==="right"?r=(e.right-s)*this.rectScale.x+"px":r=(s-e[i])*n+"px",this.el.style[i]=r}),this):this}_removeHandlers(){return this.handlers.forEach(e=>e.destroy()),delete this.handlers,this}}Hi._originStyleProp=["width","height","position","left","right","top","opacity","zIndex"];const Vu='input,textarea,button,select,option,[contenteditable="true"],.ui-resizable-handle';class Wi extends Bn{constructor(e,i={}){super(),this.el=e,this.option=i,this.dragTransform={xScale:1,yScale:1,xOffset:0,yOffset:0},this._autoScrollTick=()=>{const r=this.helper,o=this._autoScrollContainer;if(!r||!o){this._stopScrolling();return}const l=this._getClipping(r,o);if(l===0){this._stopScrolling();return}if(!this._autoScrollMaxSpeed){const y=window.innerHeight||document.documentElement.clientHeight;this._autoScrollMaxSpeed=Math.max(y/150,4)}const u=Math.abs(l),d=Math.min(u*.5,this._autoScrollMaxSpeed),c=l>0?d:-d,f=o.scrollTop;if(o.scrollTop+=c,o.scrollTop===f){this._stopScrolling();return}this.dragging&&this.lastDrag&&(this._dragFollow(this.lastDrag),this._callDrag(this.lastDrag)),this._autoScrollAnimId=requestAnimationFrame(this._autoScrollTick)};const s=i?.handle?.substring(1),n=e.gridstackNode;this.dragEls=!s||e.classList.contains(s)?[e]:n?.subGrid?[e.querySelector(i.handle)||e]:this.getAllHandles(),this.dragEls.length===0&&(this.dragEls=[e]),this._mouseDown=this._mouseDown.bind(this),this._mouseMove=this._mouseMove.bind(this),this._mouseUp=this._mouseUp.bind(this),this._keyEvent=this._keyEvent.bind(this),this.enable()}getAllHandles(){return Array.from(this.el.querySelectorAll(this.option.handle)).filter(e=>{if(!(e instanceof HTMLElement))return!1;const i=e.closest(".grid-stack-item");return i===this.el||!i})}on(e,i){super.on(e,i)}off(e){super.off(e)}enable(){this.disabled!==!1&&(super.enable(),this.dragEls.forEach(e=>{e.addEventListener("mousedown",this._mouseDown),yt&&(e.addEventListener("touchstart",vs),e.addEventListener("pointerdown",ws))}),this.el.classList.remove("ui-draggable-disabled"))}disable(e=!1){this.disabled!==!0&&(super.disable(),this.dragEls.forEach(i=>{i.removeEventListener("mousedown",this._mouseDown),yt&&(i.removeEventListener("touchstart",vs),i.removeEventListener("pointerdown",ws))}),e||this.el.classList.add("ui-draggable-disabled"))}destroy(){this.dragTimeout&&window.clearTimeout(this.dragTimeout),delete this.dragTimeout,this.mouseDownEvent&&this._mouseUp(this.mouseDownEvent),this.disable(!0),delete this.el,delete this.helper,delete this.option,super.destroy()}updateOption(e){return Object.keys(e).forEach(i=>this.option[i]=e[i]),this}_mouseDown(e){if(at.touchHandled&&e.isTrusted&&(at.touchHandled=!1),!ue.mouseHandled)return e.button!==0||!this.dragEls.find(i=>i===e.target)&&e.target.closest(Vu)||this.option.cancel&&e.target.closest(this.option.cancel)||(this.mouseDownEvent=e,delete this.dragging,delete ue.dragElement,delete ue.dropElement,delete this._autoScrollMaxSpeed,delete this._autoScrollContainer,document.addEventListener("mousemove",this._mouseMove,{capture:!0,passive:!0}),document.addEventListener("mouseup",this._mouseUp,!0),yt&&(e.currentTarget.addEventListener("touchmove",bs),e.currentTarget.addEventListener("touchend",ys)),e.preventDefault(),document.activeElement&&document.activeElement.blur(),ue.mouseHandled=!0),!0}_callDrag(e){if(!this.dragging)return;const i=M.initEvent(e,{target:this.el,type:"drag"});this.option.drag&&this.option.drag(i,this.ui()),this.triggerEvent("drag",i)}_mouseMove(e){const i=this.mouseDownEvent;if(this.lastDrag=e,this.dragging)if(this._dragFollow(e),ue.pauseDrag){const s=Number.isInteger(ue.pauseDrag)?ue.pauseDrag:100;this.dragTimeout&&window.clearTimeout(this.dragTimeout),this.dragTimeout=window.setTimeout(()=>this._callDrag(e),s)}else this._callDrag(e);else if(Math.abs(e.x-i.x)+Math.abs(e.y-i.y)>3){this.dragging=!0,ue.dragElement=this;const s=this.el.gridstackNode?.grid;s?ue.dropElement=s.el.ddElement.ddDroppable:delete ue.dropElement,this.helper=this._createHelper(),this._setupHelperContainmentStyle(),this.dragTransform=M.getValuesFromTransformedElement(this.helperContainment),this.dragOffset=this._getDragOffset(e,this.el,this.helperContainment),this._setupHelperStyle(e);const n=M.initEvent(e,{target:this.el,type:"dragstart"});this.option.start&&this.option.start(n,this.ui()),this.triggerEvent("dragstart",n),document.addEventListener("keydown",this._keyEvent)}return!0}_mouseUp(e){if(this._stopScrolling(),document.removeEventListener("mousemove",this._mouseMove,!0),document.removeEventListener("mouseup",this._mouseUp,!0),yt&&e.currentTarget&&(e.currentTarget.removeEventListener("touchmove",bs,!0),e.currentTarget.removeEventListener("touchend",ys,!0)),this.dragging){delete this.dragging,delete this.el.gridstackNode?._origRotate,document.removeEventListener("keydown",this._keyEvent),ue.dropElement?.el===this.el.parentElement&&delete ue.dropElement,this.helperContainment.style.position=this.parentOriginStylePosition||null,this.helper!==this.el&&this.helper.remove(),this._removeHelperStyle();const i=M.initEvent(e,{target:this.el,type:"dragstop"});this.option.stop&&this.option.stop(i),this.triggerEvent("dragstop",i),ue.dropElement&&ue.dropElement.drop(e)}delete this.helper,delete this.mouseDownEvent,delete ue.dragElement,delete ue.dropElement,delete ue.mouseHandled,e.preventDefault()}_keyEvent(e){const i=this.el.gridstackNode,s=i?.grid||ue.dropElement?.el?.gridstack;if(e.key==="Escape")i&&i._origRotate&&(i._orig=i._origRotate,delete i._origRotate),s?.cancelDrag(),this._mouseUp(this.mouseDownEvent);else if(i&&s&&(e.key==="r"||e.key==="R")){if(!M.canBeRotated(i))return;i._origRotate=i._origRotate||{...i._orig},delete i._moving,s.setAnimation(!1).rotate(i.el,{top:-this.dragOffset.offsetTop,left:-this.dragOffset.offsetX}).setAnimation(),i._moving=!0,this.dragOffset=this._getDragOffset(this.lastDrag,i.el,this.helperContainment),this.helper.style.width=this.dragOffset.width+"px",this.helper.style.height=this.dragOffset.height+"px",M.swap(i._orig,"w","h"),delete i._rect,this._mouseMove(this.lastDrag)}}_createHelper(){let e=this.el;return typeof this.option.helper=="function"?e=this.option.helper(this.el):this.option.helper==="clone"&&(e=M.cloneNode(this.el)),e.parentElement||M.appendTo(e,this.option.appendTo==="parent"?this.el.parentElement:this.option.appendTo),this.dragElementOriginStyle=Wi.originStyleProp.map(i=>this.el.style[i]),e}_setupHelperStyle(e){this.helper.classList.add("ui-draggable-dragging"),this.el.gridstackNode?.grid?.el.classList.add("grid-stack-dragging");const i=this.helper.style;return i.pointerEvents="none",i.width=this.dragOffset.width+"px",i.height=this.dragOffset.height+"px",i.willChange="left, right, top",i.position="fixed",this._dragFollow(e),i.transition="none",setTimeout(()=>{this.helper&&(i.transition=null)},0),this}_removeHelperStyle(){if(this.helper.classList.remove("ui-draggable-dragging"),this.el.gridstackNode?.grid?.el.classList.remove("grid-stack-dragging"),!this.helper?.gridstackNode?._isAboutToRemove&&this.dragElementOriginStyle){const i=this.helper,s=this.dragElementOriginStyle.transition||null;i.style.transition=this.dragElementOriginStyle.transition="none",Wi.originStyleProp.forEach(n=>i.style[n]=this.dragElementOriginStyle[n]||null),setTimeout(()=>i.style.transition=s,50)}return delete this.dragElementOriginStyle,this}_dragFollow(e){const i=this.helper.style,s=this.dragOffset;this.option.rtl?(i.right=(window.innerWidth-e.clientX+s.offsetX)*this.dragTransform.xScale+"px",i.left&&(i.left="")):(i.left=(e.clientX+s.offsetX)*this.dragTransform.xScale+"px",i.right&&(i.right="")),i.top=(e.clientY+s.offsetTop)*this.dragTransform.yScale+"px"}_setupHelperContainmentStyle(){return this.helperContainment=this.helper.parentElement,this.helper.style.position!=="fixed"&&(this.parentOriginStylePosition=this.helperContainment.style.position,getComputedStyle(this.helperContainment).position.match(/static/)&&(this.helperContainment.style.position="relative")),this}_getDragOffset(e,i,s){let n=0,r=0;s&&(n=this.dragTransform.xOffset,r=this.dragTransform.yOffset);const o=i.getBoundingClientRect();let l=this.option.rtl?o.right:o.left,u=this.option.rtl?e.clientX-o.right+n:-e.clientX+o.left-n;return{x:l,top:o.top,offsetX:u,offsetTop:-e.clientY+o.top-r,width:o.width*this.dragTransform.xScale,height:o.height*this.dragTransform.yScale}}updateScrollPosition(e){this._autoScrollContainer=M.getScrollElement(e),this._getClipping(this.helper,this._autoScrollContainer)===0?this._stopScrolling():this._autoScrollAnimId||(this._autoScrollAnimId=requestAnimationFrame(this._autoScrollTick))}_getClipping(e,i){const s=e.getBoundingClientRect(),n=i.getBoundingClientRect(),r=window.innerHeight||document.documentElement.clientHeight;if(s.bottomn.bottom)return 0;const o=s.bottom-Math.min(n.bottom,r),l=s.top-Math.max(n.top,0);return l<0?l:o>0?o:0}_stopScrolling(){this._autoScrollAnimId&&(cancelAnimationFrame(this._autoScrollAnimId),delete this._autoScrollAnimId)}ui(){const i=this.el.parentElement.getBoundingClientRect(),s=this.helper.getBoundingClientRect(),n=this.option.rtl?(i.right-s.right)*this.dragTransform.xScale:(s.left-i.left)*this.dragTransform.xScale;return{position:{top:(s.top-i.top)*this.dragTransform.yScale,left:n}}}}Wi.originStyleProp=["width","height","transform","transform-origin","transition","pointerEvents","position","left","right","top","minWidth","willChange"];class Ku extends Bn{constructor(e,i={}){super(),this.el=e,this.option=i,this._mouseEnter=this._mouseEnter.bind(this),this._mouseLeave=this._mouseLeave.bind(this),this.enable(),this._setupAccept()}on(e,i){super.on(e,i)}off(e){super.off(e)}enable(){this.disabled!==!1&&(super.enable(),this.el.classList.add("ui-droppable"),this.el.classList.remove("ui-droppable-disabled"),this.el.addEventListener("mouseenter",this._mouseEnter),this.el.addEventListener("mouseleave",this._mouseLeave),yt&&(this.el.addEventListener("pointerenter",Tr),this.el.addEventListener("pointerleave",Cr)))}disable(e=!1){this.disabled!==!0&&(super.disable(),this.el.classList.remove("ui-droppable"),e||this.el.classList.add("ui-droppable-disabled"),this.el.removeEventListener("mouseenter",this._mouseEnter),this.el.removeEventListener("mouseleave",this._mouseLeave),yt&&(this.el.removeEventListener("pointerenter",Tr),this.el.removeEventListener("pointerleave",Cr)))}destroy(){this.disable(!0),this.el.classList.remove("ui-droppable"),this.el.classList.remove("ui-droppable-disabled"),super.destroy()}updateOption(e){return Object.keys(e).forEach(i=>this.option[i]=e[i]),this._setupAccept(),this}_mouseEnter(e){if(!ue.dragElement||at.touchHandled&&e.isTrusted||!this._canDrop(ue.dragElement.el))return;e.preventDefault(),e.stopPropagation(),ue.dragElement._stopScrolling(),ue.dropElement&&ue.dropElement!==this&&ue.dropElement._mouseLeave(e,!0),ue.dropElement=this;const i=M.initEvent(e,{target:this.el,type:"dropover"});this.option.over&&this.option.over(i,this._ui(ue.dragElement)),this.triggerEvent("dropover",i),this.el.classList.add("ui-droppable-over")}_mouseLeave(e,i=!1){if(!ue.dragElement||ue.dropElement!==this)return;e.preventDefault(),e.stopPropagation(),i&&ue.dragElement._stopScrolling();const s=M.initEvent(e,{target:this.el,type:"dropout"});if(this.option.out&&this.option.out(s,this._ui(ue.dragElement)),this.triggerEvent("dropout",s),ue.dropElement===this&&(delete ue.dropElement,!i)){let n,r=this.el.parentElement;for(;!n&&r;)n=r.ddElement?.ddDroppable,r=r.parentElement;n&&n._mouseEnter(e)}}drop(e){e.preventDefault();const i=M.initEvent(e,{target:this.el,type:"drop"});this.option.drop&&this.option.drop(i,this._ui(ue.dragElement)),this.triggerEvent("drop",i)}_canDrop(e){return e&&(!this.accept||this.accept(e))}_setupAccept(){return this.option.accept?(typeof this.option.accept=="string"?this.accept=e=>e.classList.contains(this.option.accept)||e.matches(this.option.accept):this.accept=this.option.accept,this):this}_ui(e){return{draggable:e.el,...e.ui()}}}class zn{static init(e){return e.ddElement||(e.ddElement=new zn(e)),e.ddElement}constructor(e){this.el=e}on(e,i){return this.ddDraggable&&["drag","dragstart","dragstop"].indexOf(e)>-1?this.ddDraggable.on(e,i):this.ddDroppable&&["drop","dropover","dropout"].indexOf(e)>-1?this.ddDroppable.on(e,i):this.ddResizable&&["resizestart","resize","resizestop"].indexOf(e)>-1&&this.ddResizable.on(e,i),this}off(e){return this.ddDraggable&&["drag","dragstart","dragstop"].indexOf(e)>-1?this.ddDraggable.off(e):this.ddDroppable&&["drop","dropover","dropout"].indexOf(e)>-1?this.ddDroppable.off(e):this.ddResizable&&["resizestart","resize","resizestop"].indexOf(e)>-1&&this.ddResizable.off(e),this}setupDraggable(e){return this.ddDraggable?this.ddDraggable.updateOption(e):this.ddDraggable=new Wi(this.el,e),this}cleanDraggable(){return this.ddDraggable&&(this.ddDraggable.destroy(),delete this.ddDraggable),this}setupResizable(e){return this.ddResizable?this.ddResizable.updateOption(e):this.ddResizable=new Hi(this.el,e),this}cleanResizable(){return this.ddResizable&&(this.ddResizable.destroy(),delete this.ddResizable),this}setupDroppable(e){return this.ddDroppable?this.ddDroppable.updateOption(e):this.ddDroppable=new Ku(this.el,e),this}cleanDroppable(){return this.ddDroppable&&(this.ddDroppable.destroy(),delete this.ddDroppable),this}}class Gu{resizable(e,i,s,n){return this._getDDElements(e,i).forEach(r=>{if(i==="disable"||i==="enable")r.ddResizable&&r.ddResizable[i]();else if(i==="destroy")r.ddResizable&&r.cleanResizable();else if(i==="option")r.setupResizable({[s]:n});else{const l=r.el.gridstackNode.grid;let u=r.el.getAttribute("gs-resize-handles")||l.opts.resizable.handles||"e,s,se";u==="all"&&(u="n,e,s,w,se,sw,ne,nw");const d=!l.opts.alwaysShowResizeHandle;r.setupResizable({...l.opts.resizable,handles:u,autoHide:d,start:i.start,stop:i.stop,resize:i.resize,rtl:i.rtl})}}),this}draggable(e,i,s,n){return this._getDDElements(e,i).forEach(r=>{if(i==="disable"||i==="enable")r.ddDraggable&&r.ddDraggable[i]();else if(i==="destroy")r.ddDraggable&&r.cleanDraggable();else if(i==="option")r.setupDraggable({[s]:n});else{const o=r.el.gridstackNode.grid;r.setupDraggable({...o.opts.draggable,start:i.start,stop:i.stop,drag:i.drag,rtl:i.rtl})}}),this}dragIn(e,i){return this._getDDElements(e).forEach(s=>s.setupDraggable(i)),this}droppable(e,i,s,n){return typeof i.accept=="function"&&!i._accept&&(i._accept=i.accept,i.accept=r=>i._accept(r)),this._getDDElements(e,i).forEach(r=>{i==="disable"||i==="enable"?r.ddDroppable&&r.ddDroppable[i]():i==="destroy"?r.ddDroppable&&r.cleanDroppable():i==="option"?r.setupDroppable({[s]:n}):r.setupDroppable(i)}),this}isDroppable(e){return!!(e?.ddElement?.ddDroppable&&!e.ddElement.ddDroppable.disabled)}isDraggable(e){return!!(e?.ddElement?.ddDraggable&&!e.ddElement.ddDraggable.disabled)}isResizable(e){return!!(e?.ddElement?.ddResizable&&!e.ddElement.ddResizable.disabled)}on(e,i,s){return this._getDDElements(e).forEach(n=>n.on(i,r=>{s(r,ue.dragElement?ue.dragElement.el:r.target,ue.dragElement?ue.dragElement.helper:null)})),this}off(e,i){return this._getDDElements(e).forEach(s=>s.off(i)),this}_getDDElements(e,i){const s=e.gridstack||i!=="destroy"&&i!=="disable",n=M.getElements(e);return n.length?n.map(o=>o.ddElement||(s?zn.init(o):null)).filter(o=>o):[]}}const tt=new Gu;class le{static init(e={},i=".grid-stack"){if(typeof document>"u")return null;const s=le.getGridElement(i);return s?(s.gridstack||(s.gridstack=new le(s,M.cloneDeep(e))),s.gridstack):(console.error(typeof i=="string"?'GridStack.initAll() no grid was found with selector "'+i+`" - element missing or wrong selector ? +(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))s(n);new MutationObserver(n=>{for(const r of n)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function i(n){const r={};return n.integrity&&(r.integrity=n.integrity),n.referrerPolicy&&(r.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?r.credentials="include":n.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(n){if(n.ep)return;n.ep=!0;const r=i(n);fetch(n.href,r)}})();function En(t){const e=Object.create(null);for(const i of t.split(","))e[i]=1;return i=>i in e}const Ne={},ai=[],Mt=()=>{},xr=()=>!1,ws=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),_s=t=>t.startsWith("onUpdate:"),je=Object.assign,wn=(t,e)=>{const i=t.indexOf(e);i>-1&&t.splice(i,1)},ml=Object.prototype.hasOwnProperty,Re=(t,e)=>ml.call(t,e),de=Array.isArray,Qt=t=>Vi(t)==="[object Map]",Vt=t=>Vi(t)==="[object Set]",Gn=t=>Vi(t)==="[object Date]",pe=t=>typeof t=="function",Ue=t=>typeof t=="string",wt=t=>typeof t=="symbol",Ce=t=>t!==null&&typeof t=="object",Pr=t=>(Ce(t)||pe(t))&&pe(t.then)&&pe(t.catch),Ir=Object.prototype.toString,Vi=t=>Ir.call(t),vl=t=>Vi(t).slice(8,-1),Lr=t=>Vi(t)==="[object Object]",_n=t=>Ue(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Ci=En(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ss=t=>{const e=Object.create(null);return(i=>e[i]||(e[i]=t(i)))},bl=/-\w/g,rt=Ss(t=>t.replace(bl,e=>e.slice(1).toUpperCase())),yl=/\B([A-Z])/g,di=Ss(t=>t.replace(yl,"-$1").toLowerCase()),Rs=Ss(t=>t.charAt(0).toUpperCase()+t.slice(1)),Ds=Ss(t=>t?`on${Rs(t)}`:""),Ct=(t,e)=>!Object.is(t,e),ss=(t,...e)=>{for(let i=0;i{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:s,value:i})},As=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let jn;const ks=()=>jn||(jn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function bt(t){if(de(t)){const e={};for(let i=0;ii.startsWith("/*")?"":i).split(El).forEach(i=>{if(i){const s=i.split(wl);s.length>1&&(e[s[0].trim()]=s[1].trim())}}),e}function Me(t){let e="";if(Ue(t))e=t;else if(de(t))for(let i=0;iKt(i,e))}const Fr=t=>!!(t&&t.__v_isRef===!0),E=t=>Ue(t)?t:t==null?"":de(t)||Ce(t)&&(t.toString===Ir||!pe(t.toString))?Fr(t)?E(t.value):JSON.stringify(t,Br,2):String(t),Br=(t,e)=>Fr(e)?Br(t,e.value):Qt(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((i,[s,n],r)=>(i[Us(s,r)+" =>"]=n,i),{})}:Vt(e)?{[`Set(${e.size})`]:[...e.values()].map(i=>Us(i))}:wt(e)?Us(e):Ce(e)&&!de(e)&&!Lr(e)?String(e):e,Us=(t,e="")=>{var i;return wt(t)?`Symbol(${(i=t.description)!=null?i:e})`:t};let Ve;class Cl{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&Ve&&(Ve.active?(this.parent=Ve,this.index=(Ve.scopes||(Ve.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,i;if(this.scopes){const s=this.scopes.slice();for(e=0,i=s.length;e0&&--this._on===0){if(Ve===this)Ve=this.prevScope;else{let e=Ve;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let i,s;for(i=0,s=this.effects.length;i0)return;if(Mi){let e=Mi;for(Mi=void 0;e;){const i=e.next;e.next=void 0,e.flags&=-9,e=i}}let t;for(;Ni;){let e=Ni;for(Ni=void 0;e;){const i=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(s){t||(t=s)}e=i}}if(t)throw t}function Wr(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function Vr(t){let e,i=t.depsTail,s=i;for(;s;){const n=s.prevDep;s.version===-1?(s===i&&(i=n),kn(s),Ml(s)):e=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=n}t.deps=e,t.depsTail=i}function Xs(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(Kr(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function Kr(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===Li)||(t.globalVersion=Li,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!Xs(t))))return;t.flags|=2;const e=t.dep,i=Ie,s=Et;Ie=t,Et=!0;try{Wr(t);const n=t.fn(t._value);(e.version===0||Ct(n,t._value))&&(t.flags|=128,t._value=n,e.version++)}catch(n){throw e.version++,n}finally{Ie=i,Et=s,Vr(t),t.flags&=-3}}function kn(t,e=!1){const{dep:i,prevSub:s,nextSub:n}=t;if(s&&(s.nextSub=n,t.prevSub=void 0),n&&(n.prevSub=s,t.nextSub=void 0),i.subs===t&&(i.subs=s,!s&&i.computed)){i.computed.flags&=-5;for(let r=i.computed.deps;r;r=r.nextDep)kn(r,!0)}!e&&!--i.sc&&i.map&&i.map.delete(i.key)}function Ml(t){const{prevDep:e,nextDep:i}=t;e&&(e.nextDep=i,t.prevDep=void 0),i&&(i.prevDep=e,t.nextDep=void 0)}let Et=!0;const Gr=[];function xt(){Gr.push(Et),Et=!1}function Pt(){const t=Gr.pop();Et=t===void 0?!0:t}function qn(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const i=Ie;Ie=void 0;try{e()}finally{Ie=i}}}let Li=0;class Ol{constructor(e,i){this.sub=e,this.dep=i,this.version=i.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Tn{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!Ie||!Et||Ie===this.computed)return;let i=this.activeLink;if(i===void 0||i.sub!==Ie)i=this.activeLink=new Ol(Ie,this),Ie.deps?(i.prevDep=Ie.depsTail,Ie.depsTail.nextDep=i,Ie.depsTail=i):Ie.deps=Ie.depsTail=i,jr(i);else if(i.version===-1&&(i.version=this.version,i.nextDep)){const s=i.nextDep;s.prevDep=i.prevDep,i.prevDep&&(i.prevDep.nextDep=s),i.prevDep=Ie.depsTail,i.nextDep=void 0,Ie.depsTail.nextDep=i,Ie.depsTail=i,Ie.deps===i&&(Ie.deps=s)}return i}trigger(e){this.version++,Li++,this.notify(e)}notify(e){Rn();try{for(let i=this.subs;i;i=i.prevSub)i.sub.notify()&&i.sub.dep.notify()}finally{An()}}}function jr(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let s=e.deps;s;s=s.nextDep)jr(s)}const i=t.dep.subs;i!==t&&(t.prevSub=i,i&&(i.nextSub=t)),t.dep.subs=t}}const Qs=new WeakMap,ui=Symbol(""),Zs=Symbol(""),Di=Symbol("");function qe(t,e,i){if(Et&&Ie){let s=Qs.get(t);s||Qs.set(t,s=new Map);let n=s.get(i);n||(s.set(i,n=new Tn),n.map=s,n.key=i),n.track()}}function zt(t,e,i,s,n,r){const o=Qs.get(t);if(!o){Li++;return}const l=u=>{u&&u.trigger()};if(Rn(),e==="clear")o.forEach(l);else{const u=de(t),d=u&&_n(i);if(u&&i==="length"){const c=Number(s);o.forEach((f,y)=>{(y==="length"||y===Di||!wt(y)&&y>=c)&&l(f)})}else switch((i!==void 0||o.has(void 0))&&l(o.get(i)),d&&l(o.get(Di)),e){case"add":u?d&&l(o.get("length")):(l(o.get(ui)),Qt(t)&&l(o.get(Zs)));break;case"delete":u||(l(o.get(ui)),Qt(t)&&l(o.get(Zs)));break;case"set":Qt(t)&&l(o.get(ui));break}}An()}function fi(t){const e=Ae(t);return e===t||(qe(e,"iterate",Di),ht(t))?e:It(t)?Zt(t)?e.map(i=>ei(gt(i))):e.map(ei):e.map(gt)}function Ts(t){return qe(t=Ae(t),"iterate",Di),t}function At(t,e){return It(t)?ei(Zt(t)?gt(e):e):gt(e)}const xl={__proto__:null,[Symbol.iterator](){return Bs(this,Symbol.iterator,t=>At(this,t))},concat(...t){return fi(this).concat(...t.map(e=>de(e)?fi(e):e))},entries(){return Bs(this,"entries",t=>(t[1]=At(this,t[1]),t))},every(t,e){return Ut(this,"every",t,e,void 0,arguments)},filter(t,e){return Ut(this,"filter",t,e,i=>i.map(s=>At(this,s)),arguments)},find(t,e){return Ut(this,"find",t,e,i=>At(this,i),arguments)},findIndex(t,e){return Ut(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return Ut(this,"findLast",t,e,i=>At(this,i),arguments)},findLastIndex(t,e){return Ut(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return Ut(this,"forEach",t,e,void 0,arguments)},includes(...t){return zs(this,"includes",t)},indexOf(...t){return zs(this,"indexOf",t)},join(t){return fi(this).join(t)},lastIndexOf(...t){return zs(this,"lastIndexOf",t)},map(t,e){return Ut(this,"map",t,e,void 0,arguments)},pop(){return _i(this,"pop")},push(...t){return _i(this,"push",t)},reduce(t,...e){return Qn(this,"reduce",t,e)},reduceRight(t,...e){return Qn(this,"reduceRight",t,e)},shift(){return _i(this,"shift")},some(t,e){return Ut(this,"some",t,e,void 0,arguments)},splice(...t){return _i(this,"splice",t)},toReversed(){return fi(this).toReversed()},toSorted(t){return fi(this).toSorted(t)},toSpliced(...t){return fi(this).toSpliced(...t)},unshift(...t){return _i(this,"unshift",t)},values(){return Bs(this,"values",t=>At(this,t))}};function Bs(t,e,i){const s=Ts(t),n=s[e],r=n.call(s);if(s!==t&&!ht(t)){if(r[Symbol.toStringTag]==="Array Iterator"){const o=Object.create(Object.getPrototypeOf(r));return o.next=()=>Xn(r.next(),i),n!==Jr[e]&&Object.defineProperties(o,{return:{get(){const l=r.return;return typeof l=="function"?l.bind(r):l}},throw:{get(){const l=r.throw;return typeof l=="function"?l.bind(r):l}}}),o}r._next=r.next,r.next=()=>Xn(r._next(),i)}return r}function Xn(t,e){return t.done||(t.value=e(t.value)),t}const Jr=Array.prototype;function Ut(t,e,i,s,n,r){const o=Ts(t),l=o!==t&&!ht(t),u=o[e];if(u!==Jr[e]){const f=u.apply(t,r);return l?gt(f):f}let d=i;o!==t&&(l?d=function(f,y){return i.call(this,At(t,f),y,t)}:i.length>2&&(d=function(f,y){return i.call(this,f,y,t)}));const c=u.call(o,d,s);return l&&n?n(c):c}function Qn(t,e,i,s){const n=Ts(t),r=n!==t&&!ht(t);let o=i,l=!1;n!==t&&(r?(l=s.length===0,o=function(d,c,f){return l&&(l=!1,d=At(t,d)),i.call(this,d,At(t,c),f,t)}):i.length>3&&(o=function(d,c,f){return i.call(this,d,c,f,t)}));const u=n[e](o,...s);return l?At(t,u):u}function zs(t,e,i){const s=Ae(t);qe(s,"iterate",Di);const n=s[e](...i);return(n===-1||n===!1)&&On(i[0])?(i[0]=Ae(i[0]),s[e](...i)):n}function _i(t,e,i=[]){xt(),Rn();const s=Ae(t)[e].apply(t,i);return An(),Pt(),s}const Pl=En("__proto__,__v_isRef,__isVue"),Yr=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(wt));function Il(t){wt(t)||(t=String(t));const e=Ae(this);return qe(e,"has",t),e.hasOwnProperty(t)}class qr{constructor(e=!1,i=!1){this._isReadonly=e,this._isShallow=i}get(e,i,s){if(i==="__v_skip")return e.__v_skip;const n=this._isReadonly,r=this._isShallow;if(i==="__v_isReactive")return!n;if(i==="__v_isReadonly")return n;if(i==="__v_isShallow")return r;if(i==="__v_raw")return s===(n?r?Vl:eo:r?Zr:Qr).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(s)?e:void 0;const o=de(e);if(!n){let u;if(o&&(u=xl[i]))return u;if(i==="hasOwnProperty")return Il}const l=Reflect.get(e,i,Qe(e)?e:s);if((wt(i)?Yr.has(i):Pl(i))||(n||qe(e,"get",i),r))return l;if(Qe(l)){const u=o&&_n(i)?l:l.value;return n&&Ce(u)?tn(u):u}return Ce(l)?n?tn(l):Nn(l):l}}class Xr extends qr{constructor(e=!1){super(!1,e)}set(e,i,s,n){let r=e[i];const o=de(e)&&_n(i);if(!this._isShallow){const d=It(r);if(!ht(s)&&!It(s)&&(r=Ae(r),s=Ae(s)),!o&&Qe(r)&&!Qe(s))return d||(r.value=s),!0}const l=o?Number(i)t,Xi=t=>Reflect.getPrototypeOf(t);function Bl(t,e,i){return function(...s){const n=this.__v_raw,r=Ae(n),o=Qt(r),l=t==="entries"||t===Symbol.iterator&&o,u=t==="keys"&&o,d=n[t](...s),c=i?en:e?ei:gt;return!e&&qe(r,"iterate",u?Zs:ui),je(Object.create(d),{next(){const{value:f,done:y}=d.next();return y?{value:f,done:y}:{value:l?[c(f[0]),c(f[1])]:c(f),done:y}}})}}function Qi(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function zl(t,e){const i={get(n){const r=this.__v_raw,o=Ae(r),l=Ae(n);t||(Ct(n,l)&&qe(o,"get",n),qe(o,"get",l));const{has:u}=Xi(o),d=e?en:t?ei:gt;if(u.call(o,n))return d(r.get(n));if(u.call(o,l))return d(r.get(l));r!==o&&r.get(n)},get size(){const n=this.__v_raw;return!t&&qe(Ae(n),"iterate",ui),n.size},has(n){const r=this.__v_raw,o=Ae(r),l=Ae(n);return t||(Ct(n,l)&&qe(o,"has",n),qe(o,"has",l)),n===l?r.has(n):r.has(n)||r.has(l)},forEach(n,r){const o=this,l=o.__v_raw,u=Ae(l),d=e?en:t?ei:gt;return!t&&qe(u,"iterate",ui),l.forEach((c,f)=>n.call(r,d(c),d(f),o))}};return je(i,t?{add:Qi("add"),set:Qi("set"),delete:Qi("delete"),clear:Qi("clear")}:{add(n){const r=Ae(this),o=Xi(r),l=Ae(n),u=!e&&!ht(n)&&!It(n)?l:n;return o.has.call(r,u)||Ct(n,u)&&o.has.call(r,n)||Ct(l,u)&&o.has.call(r,l)||(r.add(u),zt(r,"add",u,u)),this},set(n,r){!e&&!ht(r)&&!It(r)&&(r=Ae(r));const o=Ae(this),{has:l,get:u}=Xi(o);let d=l.call(o,n);d||(n=Ae(n),d=l.call(o,n));const c=u.call(o,n);return o.set(n,r),d?Ct(r,c)&&zt(o,"set",n,r):zt(o,"add",n,r),this},delete(n){const r=Ae(this),{has:o,get:l}=Xi(r);let u=o.call(r,n);u||(n=Ae(n),u=o.call(r,n)),l&&l.call(r,n);const d=r.delete(n);return u&&zt(r,"delete",n,void 0),d},clear(){const n=Ae(this),r=n.size!==0,o=n.clear();return r&&zt(n,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(n=>{i[n]=Bl(n,t,e)}),i}function Cn(t,e){const i=zl(t,e);return(s,n,r)=>n==="__v_isReactive"?!t:n==="__v_isReadonly"?t:n==="__v_isShallow"?e:n==="__v_raw"?s:Reflect.get(Re(i,n)&&n in s?i:s,n,r)}const $l={get:Cn(!1,!1)},Hl={get:Cn(!1,!0)},Wl={get:Cn(!0,!1)};const Qr=new WeakMap,Zr=new WeakMap,eo=new WeakMap,Vl=new WeakMap;function Kl(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Nn(t){return It(t)?t:Mn(t,!1,Dl,$l,Qr)}function Gl(t){return Mn(t,!1,Fl,Hl,Zr)}function tn(t){return Mn(t,!0,Ul,Wl,eo)}function Mn(t,e,i,s,n){if(!Ce(t)||t.__v_raw&&!(e&&t.__v_isReactive)||t.__v_skip||!Object.isExtensible(t))return t;const r=n.get(t);if(r)return r;const o=Kl(vl(t));if(o===0)return t;const l=new Proxy(t,o===2?s:i);return n.set(t,l),l}function Zt(t){return It(t)?Zt(t.__v_raw):!!(t&&t.__v_isReactive)}function It(t){return!!(t&&t.__v_isReadonly)}function ht(t){return!!(t&&t.__v_isShallow)}function On(t){return t?!!t.__v_raw:!1}function Ae(t){const e=t&&t.__v_raw;return e?Ae(e):t}function jl(t){return!Re(t,"__v_skip")&&Object.isExtensible(t)&&Dr(t,"__v_skip",!0),t}const gt=t=>Ce(t)?Nn(t):t,ei=t=>Ce(t)?tn(t):t;function Qe(t){return t?t.__v_isRef===!0:!1}function T(t){return Jl(t,!1)}function Jl(t,e){return Qe(t)?t:new Yl(t,e)}class Yl{constructor(e,i){this.dep=new Tn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=i?e:Ae(e),this._value=i?e:gt(e),this.__v_isShallow=i}get value(){return this.dep.track(),this._value}set value(e){const i=this._rawValue,s=this.__v_isShallow||ht(e)||It(e);e=s?e:Ae(e),Ct(e,i)&&(this._rawValue=e,this._value=s?e:gt(e),this.dep.trigger())}}function Ke(t){return Qe(t)?t.value:t}const ql={get:(t,e,i)=>e==="__v_raw"?t:Ke(Reflect.get(t,e,i)),set:(t,e,i,s)=>{const n=t[e];return Qe(n)&&!Qe(i)?(n.value=i,!0):Reflect.set(t,e,i,s)}};function to(t){return Zt(t)?t:new Proxy(t,ql)}class Xl{constructor(e,i,s){this.fn=e,this.setter=i,this._value=void 0,this.dep=new Tn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Li-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!i,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&Ie!==this)return Hr(this,!0),!0}get value(){const e=this.dep.track();return Kr(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function Ql(t,e,i=!1){let s,n;return pe(t)?s=t:(s=t.get,n=t.set),new Xl(s,n,i)}const Zi={},ls=new WeakMap;let oi;function Zl(t,e=!1,i=oi){if(i){let s=ls.get(i);s||ls.set(i,s=[]),s.push(t)}}function ea(t,e,i=Ne){const{immediate:s,deep:n,once:r,scheduler:o,augmentJob:l,call:u}=i,d=P=>n?P:ht(P)||n===!1||n===0?$t(P,1):$t(P);let c,f,y,S,A=!1,N=!1;if(Qe(t)?(f=()=>t.value,A=ht(t)):Zt(t)?(f=()=>d(t),A=!0):de(t)?(N=!0,A=t.some(P=>Zt(P)||ht(P)),f=()=>t.map(P=>{if(Qe(P))return P.value;if(Zt(P))return d(P);if(pe(P))return u?u(P,2):P()})):pe(t)?e?f=u?()=>u(t,2):t:f=()=>{if(y){xt();try{y()}finally{Pt()}}const P=oi;oi=c;try{return u?u(t,3,[S]):t(S)}finally{oi=P}}:f=Mt,e&&n){const P=f,Z=n===!0?1/0:n;f=()=>$t(P(),Z)}const I=Nl(),B=()=>{c.stop(),I&&I.active&&wn(I.effects,c)};if(r&&e){const P=e;e=(...Z)=>{try{return P(...Z)}finally{B()}}}let U=N?new Array(t.length).fill(Zi):Zi;const Y=P=>{if(!(!(c.flags&1)||!c.dirty&&!P))if(e){const Z=c.run();if(P||n||A||(N?Z.some((G,Q)=>Ct(G,U[Q])):Ct(Z,U))){const G=oi;xt();try{y&&y(),oi=c;const Q=[Z,U===Zi?void 0:N&&U[0]===Zi?[]:U,S];U=Z,u?u(e,3,Q):e(...Q)}finally{oi=G,Pt()}}}else c.run()};return l&&l(Y),c=new zr(f),c.scheduler=o?()=>o(Y,!1):Y,S=P=>Zl(P,!1,c),y=c.onStop=()=>{const P=ls.get(c);if(P){if(u)u(P,4);else for(const Z of P)Z();ls.delete(c)}},e?s?Y(!0):U=c.run():o?o(Y.bind(null,!0),!0):c.run(),B.pause=c.pause.bind(c),B.resume=c.resume.bind(c),B.stop=B,B}function $t(t,e=1/0,i){if(e<=0||!Ce(t)||t.__v_skip||(i=i||new Map,(i.get(t)||0)>=e))return t;if(i.set(t,e),e--,Qe(t))$t(t.value,e,i);else if(de(t))for(let s=0;s{$t(s,e,i)});else if(Lr(t)){for(const s in t)$t(t[s],e,i);for(const s of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,s)&&$t(t[s],e,i)}return t}function Ki(t,e,i,s){try{return s?t(...s):t()}catch(n){Cs(n,e,i)}}function _t(t,e,i,s){if(pe(t)){const n=Ki(t,e,i,s);return n&&Pr(n)&&n.catch(r=>{Cs(r,e,i)}),n}if(de(t)){const n=[];for(let r=0;r>>1,n=nt[s],r=Ui(n);r=Ui(i)?nt.push(t):nt.splice(ia(e),0,t),t.flags|=1,so()}}function so(){as||(as=io.then(oo))}function sa(t){if(!de(t))Jt&&t.id===-1?Jt.splice(hi+1,0,t):t.flags&1||(kt.push(t),t.flags|=1);else for(let e=0;e=e))continue;nt.splice(s,1),s=t?s-1:vt,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function ro(t,e,i=0){if(kt.length){let s=kt,n=0;if(e){s=[];for(let o=0;oUi(o)-Ui(l));if(kt.length=n,Jt){for(let o=0;ot.id==null?t.flags&2?-1:1/0:t.id;function oo(t){try{for(vt=0;vt{s._d&&fr(-1);const r=us(e),o=Wt.length;let l;try{l=t(...n)}finally{for(let u=Wt.length;u>o;u--)Fn();us(r),s._d&&fr(1)}return l};return s._n=!0,s._c=!0,s._d=!0,s}function fe(t,e){if(Ge===null)return t;const i=Is(Ge),s=t.dirs||(t.dirs=[]);for(let n=0;n1)return i&&pe(e)?e.call(s&&s.proxy):e}}const oa=Symbol.for("v-scx"),la=()=>ns(oa);function Ze(t,e,i){return uo(t,e,i)}function uo(t,e,i=Ne){const{immediate:s,deep:n,flush:r,once:o}=i,l=je({},i),u=e&&s||!e&&r!=="post";let d;if(zi){if(r==="sync"){const S=la();d=S.__watcherHandles||(S.__watcherHandles=[])}else if(!u){const S=()=>{};return S.stop=Mt,S.resume=Mt,S.pause=Mt,S}}const c=Xe;l.call=(S,A,N)=>_t(S,c,A,N);let f=!1;r==="post"?l.scheduler=S=>{S.i=c,st(S,c&&c.suspense)}:r!=="sync"&&(f=!0,l.scheduler=(S,A)=>{A?S():Pn(S)}),l.augmentJob=S=>{e&&(S.flags|=4),f&&(S.flags|=2,c&&(S.id=c.uid,S.i=c))};const y=ea(t,e,l);return zi&&(d?d.push(y):u&&y()),y}function aa(t,e,i){const s=this.proxy,n=Ue(t)?t.includes(".")?co(s,t):()=>s[t]:t.bind(s,s);let r;pe(e)?r=e:(r=e.handler,i=e);const o=Gi(this),l=uo(n,r.bind(s),i);return o(),l}function co(t,e){const i=e.split(".");return()=>{let s=t;for(let n=0;nt.__isTeleport,li=t=>t&&(t.disabled||t.disabled===""),ua=t=>t&&(t.defer||t.defer===""),Zn=t=>typeof SVGElement<"u"&&t instanceof SVGElement,er=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,sn=(t,e)=>{const i=t&&t.to;return Ue(i)?e?e(i):null:i},ca={name:"Teleport",__isTeleport:!0,process(t,e,i,s,n,r,o,l,u,d){const{mc:c,pc:f,pbc:y,o:{insert:S,querySelector:A,createText:N,createComment:I,parentNode:B}}=d,U=li(e.props);let{dynamicChildren:Y}=e;const P=(Q,se,he)=>{Q.shapeFlag&16&&c(Q.children,se,he,n,r,o,l,u)},Z=(Q=e)=>{const se=li(Q.props),he=Q.target=sn(Q.props,A),ne=nn(he,Q,N,S);he&&(o!=="svg"&&Zn(he)?o="svg":o!=="mathml"&&er(he)&&(o="mathml"),n&&n.isCE&&(n.ce._teleportTargets||(n.ce._teleportTargets=new Set)).add(he),se||(P(Q,he,ne),Ai(Q,!1)))},G=Q=>{const se=()=>{if(jt.get(Q)===se){if(jt.delete(Q),li(Q.props)){const he=B(Q.el)||i;P(Q,he,Q.anchor),Ai(Q,!0)}Z(Q)}};jt.set(Q,se),st(se,r)};if(t==null){const Q=e.el=N(""),se=e.anchor=N("");if(S(Q,i,s),S(se,i,s),ua(e.props)||r&&r.pendingBranch){G(e);return}U&&(P(e,i,se),Ai(e,!0)),Z()}else{e.el=t.el;const Q=e.anchor=t.anchor,se=jt.get(t);if(se){se.flags|=8,jt.delete(t),G(e);return}e.targetStart=t.targetStart;const he=e.target=t.target,ne=e.targetAnchor=t.targetAnchor,L=li(t.props),te=L?i:he,_e=L?Q:ne;if(o==="svg"||Zn(he)?o="svg":(o==="mathml"||er(he))&&(o="mathml"),Y?(y(t.dynamicChildren,Y,te,n,r,o,l),Un(t,e,!0)):u||f(t,e,te,_e,n,r,o,l,!1),U)L?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):es(e,i,Q,d,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const ue=sn(e.props,A);ue&&(e.target=ue,es(e,ue,null,d,0))}else L&&es(e,he,ne,d,1);Ai(e,U)}},remove(t,e,i,{um:s,o:{remove:n}},r){const{shapeFlag:o,children:l,anchor:u,targetStart:d,targetAnchor:c,target:f,props:y}=t,S=li(y),A=r||!S,N=jt.get(t);if(N&&(N.flags|=8,jt.delete(t)),f&&(n(d),n(c)),r&&n(u),!N&&(S||f)&&o&16)for(let I=0;I1){for(const i of t)if(i.type!==mt){e=i;break}}return e}function po(t){if(!In(t))return Ns(t.type)&&t.children?fa(t.children):t;if(t.component)return t.component.subTree;const{shapeFlag:e,children:i}=t;if(i){if(e&16)return i[0];if(e&32&&pe(i.default))return i.default()}}function cs(t,e){if(t.shapeFlag&6&&t.component){t.transition=e;const i=t.component.subTree;cs(Ns(i.type)&&po(i)||i,e)}else if(t.shapeFlag&128)t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback);else if(t.transition=e,t.type===K&&de(t.children)){const i=Ro(t.children,!1);i&&cs(i,e)}}function rn(t){if(t.component)return rn(t.component.subTree);if(t.type===K){const e=de(t.children)&&Ro(t.children,!1);return e?rn(e):void 0}if(t.type!==mt)return t}function He(t,e){return pe(t)?je({name:t.name},e,{setup:t}):t}function go(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function tr(t,e){let i;return!!((i=Object.getOwnPropertyDescriptor(t,e))&&!i.configurable)}const ds=new WeakMap;function Oi(t,e,i,s,n=!1){if(de(t)){t.forEach((N,I)=>Oi(N,e&&(de(e)?e[I]:e),i,s,n));return}if(mi(s)&&!n){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Oi(t,e,i,s.component.subTree);return}const r=s.shapeFlag&4?Is(s.component):s.el,o=n?null:r,{i:l,r:u}=t,d=e&&e.r,c=l.refs===Ne?l.refs={}:l.refs,f=l.setupState,y=Ae(f),S=f===Ne?xr:N=>tr(c,N)?!1:Re(y,N),A=(N,I)=>!(I&&tr(c,I));if(d!=null&&d!==u){if(ir(e),Ue(d))c[d]=null,S(d)&&(f[d]=null);else if(Qe(d)){const N=e;A(d,N.k)&&(d.value=null),N.k&&(c[N.k]=null)}}if(pe(u))Ki(u,l,12,[o,c]);else{const N=Ue(u),I=Qe(u);if(N||I){const B=()=>{if(t.f){const U=N?S(u)?f[u]:c[u]:A()||!t.k?u.value:c[t.k];if(n)de(U)&&wn(U,r);else if(de(U))U.includes(r)||U.push(r);else if(N)c[u]=[r],S(u)&&(f[u]=c[u]);else{const Y=[r];A(u,t.k)&&(u.value=Y),t.k&&(c[t.k]=Y)}}else N?(c[u]=o,S(u)&&(f[u]=o)):I&&(A(u,t.k)&&(u.value=o),t.k&&(c[t.k]=o))};if(o){const U=()=>{B(),ds.delete(t)};U.id=-1,ds.set(t,U),st(U,i)}else ir(t),B()}}}function ir(t){const e=ds.get(t);e&&(e.flags|=8,ds.delete(t))}ks().requestIdleCallback;ks().cancelIdleCallback;const mi=t=>!!t.type.__asyncLoader,In=t=>t.type.__isKeepAlive;function ha(t,e){mo(t,"a",e)}function pa(t,e){mo(t,"da",e)}function mo(t,e,i=Xe){const s=t.__wdc||(t.__wdc=()=>{let n=i;for(;n;){if(n.isDeactivated)return;n=n.parent}return t()});if(Ms(e,s,i),i){let n=i.parent;for(;n&&n.parent;)In(n.parent.vnode)&&ga(s,e,i,n),n=n.parent}}function ga(t,e,i,s){const n=Ms(e,t,s,!0);vo(()=>{wn(s[e],n)},i)}function Ms(t,e,i=Xe,s=!1){if(i){const n=i[t]||(i[t]=[]),r=e.__weh||(e.__weh=(...o)=>{xt();const l=Gi(i),u=_t(e,i,t,o);return l(),Pt(),u});return s?n.unshift(r):n.push(r),r}}const Gt=t=>(e,i=Xe)=>{(!zi||t==="sp")&&Ms(t,(...s)=>e(...s),i)},ma=Gt("bm"),ii=Gt("m"),va=Gt("bu"),ba=Gt("u"),Ei=Gt("bum"),vo=Gt("um"),ya=Gt("sp"),Ea=Gt("rtg"),wa=Gt("rtc");function _a(t,e=Xe){Ms("ec",t,e)}const Sa="components";function bo(t,e){return Aa(Sa,t,!0,e)||t}const Ra=Symbol.for("v-ndc");function Aa(t,e,i=!0,s=!1){const n=Ge||Xe;if(n){const r=n.type;{const l=cu(r,!1);if(l&&(l===e||l===rt(e)||l===Rs(rt(e))))return r}const o=sr(n[t]||r[t],e)||sr(n.appContext[t],e);return!o&&s?r:o}}function sr(t,e){return t&&(t[e]||t[rt(e)]||t[Rs(rt(e))])}function ge(t,e,i,s){let n;const r=i,o=de(t);if(o||Ue(t)){const l=o&&Zt(t);let u=!1,d=!1;l&&(u=!ht(t),d=It(t),t=Ts(t)),n=new Array(t.length);for(let c=0,f=t.length;ce(l,u,void 0,r));else{const l=Object.keys(t);n=new Array(l.length);for(let u=0,d=l.length;u0;return g(),De(K,null,[pt("slot",d,s)],c?-2:64)}let o=t[e];o&&o._c&&(o._d=!1);const l=Wt.length;g();let u;try{const d=o&&yo(o(i)),c=i.key||r||d&&d.key;u=De(K,{key:(c&&!wt(c)?c:`_${e}`)+(!d&&s?"_fb":"")},d||(s?s():[]),d&&t._===1?64:-2)}catch(d){for(let c=Wt.length;c>l;c--)Fn();throw d}finally{o&&o._c&&(o._d=!0)}return u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),u}function yo(t){return t.some(e=>Ps(e)?!(e.type===mt||e.type===K&&!yo(e.children)):!0)?t:null}const on=t=>t?zo(t)?Is(t):on(t.parent):null,xi=je(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>on(t.parent),$root:t=>on(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>wo(t),$forceUpdate:t=>t.f||(t.f=()=>{Pn(t.update)}),$nextTick:t=>t.n||(t.n=xn.bind(t.proxy)),$watch:t=>aa.bind(t)}),Ws=(t,e)=>t!==Ne&&!t.__isScriptSetup&&Re(t,e),Ta={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:i,setupState:s,data:n,props:r,accessCache:o,type:l,appContext:u}=t;if(e[0]!=="$"){const y=o[e];if(y!==void 0)switch(y){case 1:return s[e];case 2:return n[e];case 4:return i[e];case 3:return r[e]}else{if(Ws(s,e))return o[e]=1,s[e];if(n!==Ne&&Re(n,e))return o[e]=2,n[e];if(Re(r,e))return o[e]=3,r[e];if(i!==Ne&&Re(i,e))return o[e]=4,i[e];ln&&(o[e]=0)}}const d=xi[e];let c,f;if(d)return e==="$attrs"&&qe(t.attrs,"get",""),d(t);if((c=l.__cssModules)&&(c=c[e]))return c;if(i!==Ne&&Re(i,e))return o[e]=4,i[e];if(f=u.config.globalProperties,Re(f,e))return f[e]},set({_:t},e,i){const{data:s,setupState:n,ctx:r}=t;return Ws(n,e)?(n[e]=i,!0):s!==Ne&&Re(s,e)?(s[e]=i,!0):Re(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(r[e]=i,!0)},has({_:{data:t,setupState:e,accessCache:i,ctx:s,appContext:n,props:r,type:o}},l){let u;return!!(i[l]||t!==Ne&&l[0]!=="$"&&Re(t,l)||Ws(e,l)||Re(r,l)||Re(s,l)||Re(xi,l)||Re(n.config.globalProperties,l)||(u=o.__cssModules)&&u[l])},defineProperty(t,e,i){return i.get!=null?t._.accessCache[e]=0:Re(i,"value")&&this.set(t,e,i.value,null),Reflect.defineProperty(t,e,i)}};function nr(t){return de(t)?t.reduce((e,i)=>(e[i]=null,e),{}):t}let ln=!0;function Ca(t){const e=wo(t),i=t.proxy,s=t.ctx;ln=!1,e.beforeCreate&&rr(e.beforeCreate,t,"bc");const{data:n,computed:r,methods:o,watch:l,provide:u,inject:d,created:c,beforeMount:f,mounted:y,beforeUpdate:S,updated:A,activated:N,deactivated:I,beforeDestroy:B,beforeUnmount:U,destroyed:Y,unmounted:P,render:Z,renderTracked:G,renderTriggered:Q,errorCaptured:se,serverPrefetch:he,expose:ne,inheritAttrs:L,components:te,directives:_e,filters:ue}=e;if(d&&Na(d,s,null),o)for(const we in o){const be=o[we];pe(be)&&(s[we]=be.bind(i))}if(n){const we=n.call(i,i);Ce(we)&&(t.data=Nn(we))}if(ln=!0,r)for(const we in r){const be=r[we],We=pe(be)?be.bind(i,i):pe(be.get)?be.get.bind(i,i):Mt,Je=!pe(be)&&pe(be.set)?be.set.bind(i):Mt,q=re({get:We,set:Je});Object.defineProperty(s,we,{enumerable:!0,configurable:!0,get:()=>q.value,set:W=>q.value=W})}if(l)for(const we in l)Eo(l[we],s,i,we);if(u){const we=pe(u)?u.call(i):u;Reflect.ownKeys(we).forEach(be=>{ra(be,we[be])})}c&&rr(c,t,"c");function J(we,be){de(be)?be.forEach(We=>we(We.bind(i))):be&&we(be.bind(i))}if(J(ma,f),J(ii,y),J(va,S),J(ba,A),J(ha,N),J(pa,I),J(_a,se),J(wa,G),J(Ea,Q),J(Ei,U),J(vo,P),J(ya,he),de(ne))if(ne.length){const we=t.exposed||(t.exposed={});ne.forEach(be=>{Object.defineProperty(we,be,{get:()=>i[be],set:We=>i[be]=We,enumerable:!0})})}else t.exposed||(t.exposed={});Z&&t.render===Mt&&(t.render=Z),L!=null&&(t.inheritAttrs=L),te&&(t.components=te),_e&&(t.directives=_e),he&&go(t)}function Na(t,e,i=Mt){de(t)&&(t=an(t));for(const s in t){const n=t[s];let r;Ce(n)?"default"in n?r=ns(n.from||s,n.default,!0):r=ns(n.from||s):r=ns(n),Qe(r)?Object.defineProperty(e,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):e[s]=r}}function rr(t,e,i){_t(de(t)?t.map(s=>s.bind(e.proxy)):t.bind(e.proxy),e,i)}function Eo(t,e,i,s){let n=s.includes(".")?co(i,s):()=>i[s];if(Ue(t)){const r=e[t];pe(r)&&Ze(n,r)}else if(pe(t))Ze(n,t.bind(i));else if(Ce(t))if(de(t))t.forEach(r=>Eo(r,e,i,s));else{const r=pe(t.handler)?t.handler.bind(i):e[t.handler];pe(r)&&Ze(n,r,t)}}function wo(t){const e=t.type,{mixins:i,extends:s}=e,{mixins:n,optionsCache:r,config:{optionMergeStrategies:o}}=t.appContext,l=r.get(e);let u;return l?u=l:!n.length&&!i&&!s?u=e:(u={},n.length&&n.forEach(d=>fs(u,d,o,!0)),fs(u,e,o)),Ce(e)&&r.set(e,u),u}function fs(t,e,i,s=!1){const{mixins:n,extends:r}=e;r&&fs(t,r,i,!0),n&&n.forEach(o=>fs(t,o,i,!0));for(const o in e)if(!(s&&o==="expose")){const l=Ma[o]||i&&i[o];t[o]=l?l(t[o],e[o]):e[o]}return t}const Ma={data:or,props:lr,emits:lr,methods:ki,computed:ki,beforeCreate:it,created:it,beforeMount:it,mounted:it,beforeUpdate:it,updated:it,beforeDestroy:it,beforeUnmount:it,destroyed:it,unmounted:it,activated:it,deactivated:it,errorCaptured:it,serverPrefetch:it,components:ki,directives:ki,watch:xa,provide:or,inject:Oa};function or(t,e){return e?t?function(){return je(pe(t)?t.call(this,this):t,pe(e)?e.call(this,this):e)}:e:t}function Oa(t,e){return ki(an(t),an(e))}function an(t){if(de(t)){const e={};for(let i=0;ie==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${rt(e)}Modifiers`]||t[`${di(e)}Modifiers`];function Da(t,e,...i){if(t.isUnmounted)return;const s=t.vnode.props||Ne;let n=i;const r=e.startsWith("update:"),o=r&&La(s,e.slice(7));o&&(o.trim&&(n=i.map(c=>Ue(c)?c.trim():c)),o.number&&(n=n.map(As)));let l,u=s[l=Ds(e)]||s[l=Ds(rt(e))];!u&&r&&(u=s[l=Ds(di(e))]),u&&_t(u,t,6,n);const d=s[l+"Once"];if(d){if(!t.emitted)t.emitted={};else if(t.emitted[l])return;t.emitted[l]=!0,_t(d,t,6,n)}}const Ua=new WeakMap;function So(t,e,i=!1){const s=i?Ua:e.emitsCache,n=s.get(t);if(n!==void 0)return n;const r=t.emits;let o={},l=!1;if(!pe(t)){const u=d=>{const c=So(d,e,!0);c&&(l=!0,je(o,c))};!i&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}return!r&&!l?(Ce(t)&&s.set(t,null),null):(de(r)?r.forEach(u=>o[u]=null):je(o,r),Ce(t)&&s.set(t,o),o)}function Os(t,e){return!t||!ws(e)?!1:(e=e.slice(2),e=e==="Once"?e:e.replace(/Once$/,""),Re(t,e[0].toLowerCase()+e.slice(1))||Re(t,di(e))||Re(t,e))}function ar(t){const{type:e,vnode:i,proxy:s,withProxy:n,propsOptions:[r],slots:o,attrs:l,emit:u,render:d,renderCache:c,props:f,data:y,setupState:S,ctx:A,inheritAttrs:N}=t,I=us(t);let B,U;try{if(i.shapeFlag&4){const P=n||s,Z=P;B=Tt(d.call(Z,P,c,f,S,y,A)),U=l}else{const P=e;B=Tt(P.length>1?P(f,{attrs:l,slots:o,emit:u}):P(f,null)),U=e.props?l:Fa(l)}}catch(P){Wt.length=0,Cs(P,t,1),B=pt(mt)}let Y=B;if(U&&N!==!1){const P=Object.keys(U),{shapeFlag:Z}=Y;P.length&&Z&7&&(r&&P.some(_s)&&(U=Ba(U,r)),Y=bi(Y,U,!1,!0))}if(i.dirs&&(Y=bi(Y,null,!1,!0),Y.dirs=Y.dirs?Y.dirs.concat(i.dirs):i.dirs),i.transition){const P=Ns(Y.type)&&po(Y)||Y;cs(P,i.transition)}return B=Y,us(I),B}function Ro(t,e=!0){let i;for(let s=0;s{let e;for(const i in t)(i==="class"||i==="style"||ws(i))&&((e||(e={}))[i]=t[i]);return e},Ba=(t,e)=>{const i={};for(const s in t)(!_s(s)||!(s.slice(9)in e))&&(i[s]=t[s]);return i};function za(t,e,i){const{props:s,children:n,component:r}=t,{props:o,children:l,patchFlag:u}=e,d=r.emitsOptions;if(e.dirs||e.transition)return!0;if(i&&u>=0){if(u&1024)return!0;if(u&16)return s?ur(s,o,d):!!o;if(u&8){const c=e.dynamicProps;for(let f=0;fObject.create(ko),Co=t=>Object.getPrototypeOf(t)===ko;function Ha(t,e,i,s=!1){const n={},r=To();t.propsDefaults=Object.create(null),No(t,e,n,r);for(const o in t.propsOptions[0])o in n||(n[o]=void 0);i?t.props=s?n:Gl(n):t.type.props?t.props=n:t.props=r,t.attrs=r}function Wa(t,e,i,s){const{props:n,attrs:r,vnode:{patchFlag:o}}=t,l=Ae(n),[u]=t.propsOptions;let d=!1;if((s||o>0)&&!(o&16)){if(o&8){const c=t.vnode.dynamicProps;for(let f=0;f{u=!0;const[y,S]=Mo(f,e,!0);je(o,y),S&&l.push(...S)};!i&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}if(!r&&!u)return Ce(t)&&s.set(t,ai),ai;if(de(r))for(let c=0;ct==="_"||t==="_ctx"||t==="$stable",Dn=t=>de(t)?t.map(Tt):[Tt(t)],Ka=(t,e,i)=>{if(e._n)return e;const s=ao((...n)=>Dn(e(...n)),i);return s._c=!1,s},Oo=(t,e,i)=>{const s=t._ctx;for(const n in t){if(Ln(n))continue;const r=t[n];if(pe(r))e[n]=Ka(n,r,s);else if(r!=null){const o=Dn(r);e[n]=()=>o}}},xo=(t,e)=>{const i=Dn(e);t.slots.default=()=>i},Po=(t,e,i)=>{for(const s in e)(i||!Ln(s))&&(t[s]=e[s])},Ga=(t,e,i)=>{const s=t.slots=To();if(t.vnode.shapeFlag&32){const n=e._;n?(Po(s,e,i),i&&Dr(s,"_",n,!0)):Oo(e,s)}else e&&xo(t,e)},ja=(t,e,i)=>{const{vnode:s,slots:n}=t;let r=!0,o=Ne;if(s.shapeFlag&32){const l=e._;l?i&&l===1?r=!1:Po(n,e,i):(r=!e.$stable,Oo(e,n)),o=e}else e&&(xo(t,e),o={default:1});if(r)for(const l in n)!Ln(l)&&o[l]==null&&delete n[l]},st=Qa;function Ja(t){return Ya(t)}function Ya(t,e){const i=ks();i.__VUE__=!0;const{insert:s,remove:n,patchProp:r,createElement:o,createText:l,createComment:u,setText:d,setElementText:c,parentNode:f,nextSibling:y,setScopeId:S=Mt,insertStaticContent:A}=t,N=(p,b,C,F=null,x=null,D=null,H=void 0,$=null,k=!!b.dynamicChildren)=>{if(p===b)return;p&&!Si(p,b)&&(F=dt(p),W(p,x,D,!0),p=null),b.patchFlag===-2&&(k=!1,b.dynamicChildren=null),b.dynamicChildren&&p&&p.dynamicChildren&&p.dynamicChildren.hasOnce&&(b.dynamicChildren===ai&&(b.dynamicChildren=[]),b.dynamicChildren.hasOnce=!0);const{type:v,ref:R,shapeFlag:O}=b;switch(v){case xs:I(p,b,C,F);break;case mt:B(p,b,C,F);break;case rs:p==null&&U(b,C,F,H);break;case K:te(p,b,C,F,x,D,H,$,k);break;default:O&1?Z(p,b,C,F,x,D,H,$,k):O&6?_e(p,b,C,F,x,D,H,$,k):(O&64||O&128)&&v.process(p,b,C,F,x,D,H,$,k,ot)}R!=null&&x?Oi(R,p&&p.ref,D,b||p,!b):R==null&&p&&p.ref!=null&&Oi(p.ref,null,D,p,!0)},I=(p,b,C,F)=>{if(p==null)s(b.el=l(b.children),C,F);else{const x=b.el=p.el;b.children!==p.children&&d(x,b.children)}},B=(p,b,C,F)=>{p==null?s(b.el=u(b.children||""),C,F):b.el=p.el},U=(p,b,C,F)=>{[p.el,p.anchor]=A(p.children,b,C,F,p.el,p.anchor)},Y=({el:p,anchor:b},C,F)=>{let x;for(;p&&p!==b;)x=y(p),s(p,C,F),p=x;s(b,C,F)},P=({el:p,anchor:b})=>{let C;for(;p&&p!==b;)C=y(p),n(p),p=C;n(b)},Z=(p,b,C,F,x,D,H,$,k)=>{if(b.type==="svg"?H="svg":b.type==="math"&&(H="mathml"),p==null)G(b,C,F,x,D,H,$,k);else{const v=p.el&&p.el._isVueCE?p.el:null;try{v&&v._beginPatch(),he(p,b,x,D,H,$,k)}finally{v&&v._endPatch()}}},G=(p,b,C,F,x,D,H,$)=>{let k,v;const{props:R,shapeFlag:O,transition:V,dirs:ae}=p;if(k=p.el=o(p.type,D,R&&R.is,R),O&8?c(k,p.children):O&16&&se(p.children,k,null,F,x,Vs(p,D),H,$),ae&&ni(p,null,F,"created"),Q(k,p,p.scopeId,H,F),R){for(const ve in R)ve!=="value"&&!Ci(ve)&&r(k,ve,null,R[ve],D,F);"value"in R&&r(k,"value",null,R.value,D),(v=R.onVnodeBeforeMount)&&Rt(v,F,p)}ae&&ni(p,null,F,"beforeMount");const me=qa(x,V);me&&V.beforeEnter(k),s(k,b,C),((v=R&&R.onVnodeMounted)||me||ae)&&st(()=>{v&&Rt(v,F,p),me&&V.enter(k),ae&&ni(p,null,F,"mounted")},x)},Q=(p,b,C,F,x)=>{if(C&&S(p,C),F)for(let D=0;D{for(let v=k;v{const $=b.el=p.el;let{patchFlag:k,dynamicChildren:v,dirs:R}=b;k|=p.patchFlag&16;const O=p.props||Ne,V=b.props||Ne;let ae;if(C&&ri(C,!1),(ae=V.onVnodeBeforeUpdate)&&Rt(ae,C,b,p),R&&ni(b,p,C,"beforeUpdate"),C&&ri(C,!0),v&&(!p.dynamicChildren||p.dynamicChildren.length!==v.length)&&(k=0,H=!1,v=null),(O.innerHTML&&V.innerHTML==null||O.textContent&&V.textContent==null)&&c($,""),v?ne(p.dynamicChildren,v,$,C,F,Vs(b,x),D):H||be(p,b,$,null,C,F,Vs(b,x),D,!1),k>0){if(k&16)L($,O,V,C,x);else if(k&2&&O.class!==V.class&&r($,"class",null,V.class,x),k&4&&r($,"style",O.style,V.style,x),k&8){const me=b.dynamicProps;for(let ve=0;ve{ae&&Rt(ae,C,b,p),R&&ni(b,p,C,"updated")},F)},ne=(p,b,C,F,x,D,H)=>{for(let $=0;${if(b!==C){if(b!==Ne)for(const D in b)!Ci(D)&&!(D in C)&&r(p,D,b[D],null,x,F);for(const D in C){if(Ci(D))continue;const H=C[D],$=b[D];H!==$&&D!=="value"&&r(p,D,$,H,x,F)}"value"in C&&r(p,"value",b.value,C.value,x)}},te=(p,b,C,F,x,D,H,$,k)=>{const v=b.el=p?p.el:l(""),R=b.anchor=p?p.anchor:l("");let{patchFlag:O,dynamicChildren:V,slotScopeIds:ae}=b;ae&&($=$?$.concat(ae):ae),p==null?(s(v,C,F),s(R,C,F),se(b.children||[],C,R,x,D,H,$,k)):O>0&&O&64&&V&&p.dynamicChildren&&p.dynamicChildren.length===V.length?(ne(p.dynamicChildren,V,C,x,D,H,$),(b.key!=null||x&&b===x.subTree)&&Un(p,b,!0)):be(p,b,C,R,x,D,H,$,k)},_e=(p,b,C,F,x,D,H,$,k)=>{b.slotScopeIds=$,p==null?b.shapeFlag&512?x.ctx.activate(b,C,F,H,k):ue(b,C,F,x,D,H,k):ie(p,b,k)},ue=(p,b,C,F,x,D,H)=>{const $=p.component=nu(p,F,x);if(In(p)&&($.ctx.renderer=ot),ou($,!1,H),$.asyncDep){if(x&&x.registerDep($,J,H,D),!p.el){const k=$.subTree=pt(mt);B(null,k,b,C),p.placeholder=k.el}}else J($,p,b,C,x,D,H)},ie=(p,b,C)=>{const F=b.component=p.component;if(za(p,b,C))if(F.asyncDep&&!F.asyncResolved){b.el=p.el,b.placeholder=p.placeholder,we(F,b,C);return}else F.next=b,F.update();else b.el=p.el,b.placeholder=p.placeholder,F.vnode=b},J=(p,b,C,F,x,D,H)=>{const $=()=>{if(p.isMounted){let{next:O,bu:V,u:ae,parent:me,vnode:ve}=p;{const et=Io(p);if(et){O&&(O.el=ve.el,we(p,O,H)),et.asyncDep.then(()=>{st(()=>{p.isUnmounted||v()},x)});return}}let ye=O,ke;ri(p,!1),O?(O.el=ve.el,we(p,O,H)):O=ve,V&&ss(V),(ke=O.props&&O.props.onVnodeBeforeUpdate)&&Rt(ke,me,O,ve),ri(p,!0);const Le=ar(p),$e=p.subTree;p.subTree=Le,N($e,Le,f($e.el),dt($e),p,x,D),O.el=Le.el,ye===null&&$a(p,Le.el),ae&&st(ae,x),(ke=O.props&&O.props.onVnodeUpdated)&&st(()=>Rt(ke,me,O,ve),x)}else{let O;const{el:V,props:ae}=b,{bm:me,m:ve,parent:ye,root:ke,type:Le}=p,$e=mi(b);ri(p,!1),me&&ss(me),!$e&&(O=ae&&ae.onVnodeBeforeMount)&&Rt(O,ye,b),ri(p,!0);{ke.ce&&ke.ce._hasShadowRoot()&&ke.ce._injectChildStyle(Le,p.parent?p.parent.type:void 0);const et=p.subTree=ar(p);N(null,et,C,F,p,x,D),b.el=et.el}if(ve&&st(ve,x),!$e&&(O=ae&&ae.onVnodeMounted)){const et=b;st(()=>Rt(O,ye,et),x)}(b.shapeFlag&256||ye&&mi(ye.vnode)&&ye.vnode.shapeFlag&256)&&p.a&&st(p.a,x),p.isMounted=!0,b=C=F=null}};p.scope.on();const k=p.effect=new zr($);p.scope.off();const v=p.update=k.run.bind(k),R=p.job=k.runIfDirty.bind(k);R.i=p,R.id=p.uid,k.scheduler=()=>Pn(R),ri(p,!0),v()},we=(p,b,C)=>{b.component=p;const F=p.vnode.props;p.vnode=b,p.next=null,Wa(p,b.props,F,C),ja(p,b.children,C),xt(),no(p),Pt()},be=(p,b,C,F,x,D,H,$,k=!1)=>{const v=p&&p.children,R=p?p.shapeFlag:0,O=b.children,{patchFlag:V,shapeFlag:ae}=b;if(V>0){if(V&128){Je(v,O,C,F,x,D,H,$,k);return}else if(V&256){We(v,O,C,F,x,D,H,$,k);return}}ae&8?(R&16&&j(v,x,D),O!==v&&c(C,O)):R&16?ae&16?Je(v,O,C,F,x,D,H,$,k):j(v,x,D,!0):(R&8&&c(C,""),ae&16&&se(O,C,F,x,D,H,$,k))},We=(p,b,C,F,x,D,H,$,k)=>{p=p||ai,b=b||ai;const v=p.length,R=b.length,O=Math.min(v,R);let V;for(V=0;VR?j(p,x,D,!0,!1,O):se(b,C,F,x,D,H,$,k,O)},Je=(p,b,C,F,x,D,H,$,k)=>{let v=0;const R=b.length;let O=p.length-1,V=R-1;for(;v<=O&&v<=V;){const ae=p[v],me=b[v]=k?Bt(b[v]):Tt(b[v]);if(Si(ae,me))N(ae,me,C,null,x,D,H,$,k);else break;v++}for(;v<=O&&v<=V;){const ae=p[O],me=b[V]=k?Bt(b[V]):Tt(b[V]);if(Si(ae,me))N(ae,me,C,null,x,D,H,$,k);else break;O--,V--}if(v>O){if(v<=V){const ae=V+1,me=aeV)for(;v<=O;)W(p[v],x,D,!0),v++;else{const ae=v,me=v,ve=new Map;for(v=me;v<=V;v++){const xe=b[v]=k?Bt(b[v]):Tt(b[v]);xe.key!=null&&ve.set(xe.key,v)}let ye,ke=0;const Le=V-me+1;let $e=!1,et=0;const St=new Array(Le);for(v=0;v=Le){W(xe,x,D,!0);continue}let Be;if(xe.key!=null)Be=ve.get(xe.key);else for(ye=me;ye<=V;ye++)if(St[ye-me]===0&&Si(xe,b[ye])){Be=ye;break}Be===void 0?W(xe,x,D,!0):(St[Be-me]=v+1,Be>=et?et=Be:$e=!0,N(xe,b[Be],C,null,x,D,H,$,k),ke++)}const si=$e?Xa(St):ai;for(ye=si.length-1,v=Le-1;v>=0;v--){const xe=me+v,Be=b[xe],Ji=b[xe+1],Yi=xe+1{const{el:D,type:H,transition:$,children:k,shapeFlag:v}=p;if(v&6){q(p.component.subTree,b,C,F);return}if(v&128){p.suspense.move(b,C,F);return}if(v&64){H.move(p,b,C,ot);return}if(H===K){s(D,b,C);for(let O=0;O$.enter(D),x));else{const{leave:O,delayLeave:V,afterLeave:ae}=$,me=()=>{p.ctx.isUnmounted?n(D):s(D,b,C)},ve=()=>{const ye=D._isLeaving||!!D[Hs];D._isLeaving&&D[Hs](!0),$.persisted&&!ye?me():O(D,()=>{me(),ae&&ae()})};V?V(D,me,ve):ve()}else s(D,b,C)},W=(p,b,C,F=!1,x=!1)=>{const{type:D,props:H,ref:$,children:k,dynamicChildren:v,shapeFlag:R,patchFlag:O,dirs:V,cacheIndex:ae,memo:me}=p;if((O===-2||v&&v.hasOnce)&&(x=!1),$!=null&&(xt(),Oi($,null,C,p,!0),Pt()),ae!=null&&(!p.ctx||p.ctx===b)&&(b.renderCache[ae]=void 0),R&256){b.ctx.deactivate(p);return}const ve=R&1&&V,ye=!mi(p);let ke;if(ye&&(ke=H&&H.onVnodeBeforeUnmount)&&Rt(ke,b,p),R&6)Oe(p.component,C,F);else{if(R&128){p.suspense.unmount(C,F);return}ve&&ni(p,null,b,"beforeUnmount"),R&64?p.type.remove(p,b,C,ot,F):v&&!v.hasOnce&&(D!==K||O>0&&O&64)?j(v,b,C,!1,!0):(D===K&&O&384||!x&&R&16)&&j(k,b,C),F&&oe(p)}const Le=me!=null&&ae==null;(ye&&(ke=H&&H.onVnodeUnmounted)||ve||Le)&&st(()=>{ke&&Rt(ke,b,p),ve&&ni(p,null,b,"unmounted"),Le&&(p.el=null)},C)},oe=p=>{const{type:b,el:C,anchor:F,transition:x}=p,D=b===K;if(D&&!x){Fe(C,F);return}if(b===rs){P(p),x&&!x.persisted&&x.afterLeave&&x.afterLeave();return}const H=D?rn(p):p,$=()=>{D?f(C)&&Fe(C,F):n(C),x&&!x.persisted&&x.afterLeave&&x.afterLeave()};if(H&&H.shapeFlag&1&&x&&!x.persisted){const{leave:k,delayLeave:v}=x,R=H.el,O=()=>k(R,$);v?v(R,$,O):O()}else $()},Fe=(p,b)=>{let C;for(;p!==b;)C=y(p),n(p),p=C;n(b)},Oe=(p,b,C)=>{const{bum:F,scope:x,job:D,subTree:H,um:$,m:k,a:v}=p;dr(k),dr(v),F&&ss(F),x.stop(),D?(D.flags|=8,W(H,p,b,C)):p.vnode.el&&H&&(H.transition=p.vnode.transition,W(H,p,b,C)),$&&st($,b),st(()=>{p.isUnmounted=!0},b)},j=(p,b,C,F=!1,x=!1,D=0)=>{for(let H=D;H{if(p.shapeFlag&6)return dt(p.component.subTree);if(p.shapeFlag&128)return p.suspense.next();const b=y(p.anchor||p.el),C=b&&b[fo];return C?y(C):b},ze=(p,b,C)=>{const F=p&&b._vnode?void 0:p&&p.component?p.component.uid:su();na(()=>{p==null?b._vnode&&W(b._vnode,null,null,!0):N(b._vnode||null,p,b,null,null,null,C),b._vnode=p},F)},ot={p:N,um:W,m:q,r:oe,mt:ue,mc:se,pc:be,pbc:ne,n:dt,o:t};return{render:ze,hydrate:void 0,createApp:Ia(ze)}}function Vs({type:t,props:e},i){return i==="svg"&&t==="foreignObject"||i==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:i}function ri({effect:t,job:e},i){i?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function qa(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function Un(t,e,i=!1){const s=t.children,n=e.children;if(de(s)&&de(n))for(let r=0;r>1,t[i[l]]0&&(e[s]=i[r-1]),i[r]=s)}}for(r=i.length,o=i[r-1];r-- >0;)i[r]=o,o=e[o];return i}function Io(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:Io(e)}function dr(t){if(t)for(let e=0;et.__isSuspense;function Qa(t,e){e&&e.pendingBranch?de(t)?e.effects.push(...t):e.effects.push(t):sa(t)}const K=Symbol.for("v-fgt"),xs=Symbol.for("v-txt"),mt=Symbol.for("v-cmt"),rs=Symbol.for("v-stc"),Wt=[];let ut=null;function g(t=!1){Wt.push(ut=t?null:[])}function Fn(){Wt.pop(),ut=Wt[Wt.length-1]||null}let Fi=1;function fr(t,e=!1){Fi+=t,t<0&&ut&&e&&(ut.hasOnce=!0)}function Do(t){return t.dynamicChildren=Fi>0?ut||ai:null,Fn(),Fi>0&&ut&&ut.push(t),t}function m(t,e,i,s,n,r){return Do(a(t,e,i,s,n,r,!0))}function De(t,e,i,s,n){return Do(pt(t,e,i,s,n,!0))}function Ps(t){return t?t.__v_isVNode===!0:!1}function Si(t,e){return t.type===e.type&&t.key===e.key}const Uo=({key:t})=>t??null,os=({ref:t,ref_key:e,ref_for:i})=>(typeof t=="number"&&(t=""+t),t!=null?Ue(t)||Qe(t)||pe(t)?{i:Ge,r:t,k:e,f:!!i}:t:null);function a(t,e=null,i=null,s=0,n=null,r=t===K?0:1,o=!1,l=!1){const u={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Uo(e),ref:e&&os(e),scopeId:lo,slotScopeIds:null,children:i,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:Ge};return l?(hs(u,i),r&128&&t.normalize(u)):i&&(u.shapeFlag|=Ue(i)?8:16),Fi>0&&!o&&ut&&(u.patchFlag>0||r&6)&&u.patchFlag!==32&&ut.push(u),u}const pt=Za;function Za(t,e=null,i=null,s=0,n=null,r=!1){if((!t||t===Ra)&&(t=mt),Ps(t)){const l=bi(t,e,!0);return i&&hs(l,i),Fi>0&&!r&&ut&&(l.shapeFlag&6?ut[ut.indexOf(t)]=l:ut.push(l)),l.patchFlag=-2,l}if(du(t)&&(t=t.__vccOpts),e){e=eu(e);let{class:l,style:u}=e;l&&!Ue(l)&&(e.class=Me(l)),Ce(u)&&(On(u)&&!de(u)&&(u=je({},u)),e.style=bt(u))}const o=Ue(t)?1:Lo(t)?128:Ns(t)?64:Ce(t)?4:pe(t)?2:0;return a(t,e,i,s,n,o,r,!0)}function eu(t){return t?On(t)||Co(t)?je({},t):t:null}function bi(t,e,i=!1,s=!1){const{props:n,ref:r,patchFlag:o,children:l,transition:u}=t,d=e?tu(n||{},e):n,c={__v_isVNode:!0,__v_skip:!0,type:t.type,props:d,key:d&&Uo(d),ref:e&&e.ref?i&&r?de(r)?r.concat(os(e)):[r,os(e)]:os(e):r,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:l,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==K?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:u,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&bi(t.ssContent),ssFallback:t.ssFallback&&bi(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce,cacheIndex:t.cacheIndex};return u&&s&&cs(c,u.clone(c)),c}function X(t=" ",e=0){return pt(xs,null,t,e)}function Fo(t,e){const i=pt(rs,null,t);return i.staticCount=e,i}function z(t="",e=!1){return e?(g(),De(mt,null,t)):pt(mt,null,t)}function Tt(t){return t==null||typeof t=="boolean"?pt(mt):de(t)?pt(K,null,t.slice()):Ps(t)?Bt(t):pt(xs,null,String(t))}function Bt(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:bi(t)}function hs(t,e){let i=0;const{shapeFlag:s}=t;if(e==null)e=null;else if(de(e))i=16;else if(typeof e=="object")if(s&65){const n=e.default;n&&(n._c&&(n._d=!1),hs(t,n()),n._c&&(n._d=!0));return}else{i=32;const n=e._;!n&&!Co(e)?e._ctx=Ge:n===3&&Ge&&(Ge.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else if(pe(e)){if(s&65){hs(t,{default:e});return}e={default:e,_ctx:Ge},i=32}else e=String(e),s&64?(i=16,e=[X(e)]):i=8;t.children=e,t.shapeFlag|=i}function tu(...t){const e={};for(let i=0;iXe||Ge;let ps,Bi;{const t=ks(),e=(i,s)=>{let n;return(n=t[i])||(n=t[i]=[]),n.push(s),r=>{n.length>1?n.forEach(o=>o(r)):n[0](r)}};ps=e("__VUE_INSTANCE_SETTERS__",i=>Xe=i),Bi=e("__VUE_SSR_SETTERS__",i=>zi=i)}const Gi=t=>{const e=Xe;return ps(t),t.scope.on(),()=>{t.scope.off(),ps(e)}},hr=()=>{Xe&&Xe.scope.off(),ps(null)};function zo(t){return t.vnode.shapeFlag&4}let zi=!1;function ou(t,e=!1,i=!1){e&&Bi(e);const{props:s,children:n}=t.vnode,r=zo(t);Ha(t,s,r,e),Ga(t,n,i||e);const o=r?lu(t,e):void 0;return e&&Bi(!1),o}function lu(t,e){const i=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,Ta);const{setup:s}=i;if(s){xt();const n=t.setupContext=s.length>1?uu(t):null,r=Gi(t),o=Ki(s,t,0,[t.props,n]),l=Pr(o);if(Pt(),r(),(l||t.sp)&&!mi(t)&&go(t),l){if(o.then(hr,hr),e)return o.then(u=>{Bi(!0);try{pr(t,u,e)}finally{Bi(!1)}}).catch(u=>{Cs(u,t,0)});t.asyncDep=o}else pr(t,o)}else $o(t)}function pr(t,e,i){pe(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Ce(e)&&(t.setupState=to(e)),$o(t)}function $o(t,e,i){const s=t.type;t.render||(t.render=s.render||Mt);{const n=Gi(t);xt();try{Ca(t)}finally{Pt(),n()}}}const au={get(t,e){return qe(t,"get",""),t[e]}};function uu(t){const e=i=>{t.exposed=i||{}};return{attrs:new Proxy(t.attrs,au),slots:t.slots,emit:t.emit,expose:e}}function Is(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(to(jl(t.exposed)),{get(e,i){if(i in e)return e[i];if(i in xi)return xi[i](t)},has(e,i){return i in e||i in xi}})):t.proxy}function cu(t,e=!0){return pe(t)?t.displayName||t.name:t.name||e&&t.__name}function du(t){return pe(t)&&"__vccOpts"in t}const re=(t,e)=>Ql(t,e,zi),fu="3.5.44";let dn;const gr=typeof window<"u"&&window.trustedTypes;if(gr)try{dn=gr.createPolicy("vue",{createHTML:t=>t})}catch{}const Ho=dn?t=>dn.createHTML(t):t=>t,hu="http://www.w3.org/2000/svg",pu="http://www.w3.org/1998/Math/MathML",Ft=typeof document<"u"?document:null,mr=Ft&&Ft.createElement("template"),gu={insert:(t,e,i)=>{e.insertBefore(t,i||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,i,s)=>{const n=e==="svg"?Ft.createElementNS(hu,t):e==="mathml"?Ft.createElementNS(pu,t):i?Ft.createElement(t,{is:i}):Ft.createElement(t);return t==="select"&&s&&s.multiple!=null&&n.setAttribute("multiple",s.multiple),n},createText:t=>Ft.createTextNode(t),createComment:t=>Ft.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Ft.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,i,s,n,r){const o=i?i.previousSibling:e.lastChild;if(n&&(n===r||n.nextSibling))for(;e.insertBefore(n.cloneNode(!0),i),!(n===r||!(n=n.nextSibling)););else{mr.innerHTML=Ho(s==="svg"?`${t}`:s==="mathml"?`${t}`:t);const l=mr.content;if(s==="svg"||s==="mathml"){const u=l.firstChild;for(;u.firstChild;)l.appendChild(u.firstChild);l.removeChild(u)}e.insertBefore(l,i)}return[o?o.nextSibling:e.firstChild,i?i.previousSibling:e.lastChild]}},mu=Symbol("_vtc");function vu(t,e,i){const s=t[mu];s&&(e=(e?[e,...s]:[...s]).join(" ")),e==null?t.removeAttribute("class"):i?t.setAttribute("class",e):t.className=e}const gs=Symbol("_vod"),Wo=Symbol("_vsh"),bu={name:"show",beforeMount(t,{value:e},{transition:i}){t[gs]=t.style.display==="none"?"":t.style.display,i&&e?i.beforeEnter(t):Ri(t,e)},mounted(t,{value:e},{transition:i}){i&&e&&i.enter(t)},updated(t,{value:e,oldValue:i},{transition:s}){!e!=!i&&(s?e?(s.beforeEnter(t),Ri(t,!0),s.enter(t)):s.leave(t,()=>{Ri(t,!1)}):Ri(t,e))},beforeUnmount(t,{value:e}){Ri(t,e)}};function Ri(t,e){t.style.display=e?t[gs]:"none",t[Wo]=!e}const yu=Symbol(""),Eu=/(?:^|;)\s*display\s*:/;function wu(t,e,i){const s=t.style,n=Ue(i);let r=!1;if(i&&!n){if(e)if(Ue(e))for(const o of e.split(";")){const l=o.slice(0,o.indexOf(":")).trim();i[l]==null&&Ti(s,l,"")}else for(const o in e)i[o]==null&&Ti(s,o,"");for(const o in i){o==="display"&&(r=!0);const l=i[o];l!=null?Su(t,o,!Ue(e)&&e?e[o]:void 0,l)||Ti(s,o,l):Ti(s,o,"")}}else if(n){if(e!==i){const o=s[yu];o&&(i+=";"+o),s.cssText=i,r=Eu.test(i)}}else e&&t.removeAttribute("style");gs in t&&((!n||e!==i)&&(t[gs]=r?s.display:""),t[Wo]&&(s.display="none"))}const ts=/\s*!important$/;function Ti(t,e,i){if(de(i))i.forEach(s=>Ti(t,e,s));else if(i==null&&(i=""),e.startsWith("--"))ts.test(i)?t.setProperty(e,i.replace(ts,""),"important"):t.setProperty(e,i);else{const s=_u(t,e);ts.test(i)?t.setProperty(di(s),i.replace(ts,""),"important"):t[s]=i}}const vr=["Webkit","Moz","ms"],Ks={};function _u(t,e){const i=Ks[e];if(i)return i;let s=rt(e);if(s!=="filter"&&s in t)return Ks[e]=s;s=Rs(s);for(let n=0;nGs||(Nu.then(()=>Gs=0),Gs=Date.now());function Ou(t,e){const i=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=i.attached)return;const n=i.value;if(de(n)){const r=s.stopImmediatePropagation;s.stopImmediatePropagation=()=>{r.call(s),s._stopped=!0};const o=n.slice(),l=[s];for(let u=0;ut.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,xu=(t,e,i,s,n,r)=>{const o=n==="svg";e==="class"?vu(t,s,o):e==="style"?wu(t,i,s):ws(e)?_s(e)||Au(t,e,i,s,r):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):Pu(t,e,s,o))?(Er(t,e,s),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&yr(t,e,s,o,r,e!=="value")):t._isVueCE&&(Iu(t,e)||t._def.__asyncLoader&&(/[A-Z]/.test(e)||!Ue(s)))?Er(t,rt(e),s,r,e):(e==="true-value"?t._trueValue=s:e==="false-value"&&(t._falseValue=s),yr(t,e,s,o))};function Pu(t,e,i,s){if(s)return!!(e==="innerHTML"||e==="textContent"||e in t&&_r(e)&&pe(i));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="sandbox"&&t.tagName==="IFRAME"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const n=t.tagName;if(n==="IMG"||n==="VIDEO"||n==="CANVAS"||n==="SOURCE")return!1}return _r(e)&&Ue(i)?!1:e in t}function Iu(t,e){const i=t._def.props;if(!i)return!1;const s=rt(e);return Array.isArray(i)?i.some(n=>rt(n)===s):Object.keys(i).some(n=>rt(n)===s)}const yi=t=>{const e=t.props["onUpdate:modelValue"]||!1;return de(e)?i=>ss(e,i):e};function Lu(t){t.target.composing=!0}function Sr(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Nt=Symbol("_assign"),is=Symbol("_initialValue");function js(t,e,i){return e&&(t=t.trim()),i&&(t=As(t)),t}const Se={created(t,{modifiers:{lazy:e,trim:i,number:s}},n){t.parentNode&&(t.type==="text"?t[is]=t.defaultValue.replace(/[\r\n]/g,""):t.type==="textarea"&&(t[is]=t.defaultValue.replace(/\r\n?/g,` +`))),t[Nt]=yi(n);const r=s||n.props&&n.props.type==="number";Yt(t,e?"change":"input",o=>{o.target.composing||t[Nt](js(t.value,i,r))}),(i||r)&&Yt(t,"change",()=>{t.value=js(t.value,i,r)}),e||(Yt(t,"compositionstart",Lu),Yt(t,"compositionend",Sr),Yt(t,"change",Sr))},mounted(t,{value:e,modifiers:{trim:i,number:s}}){const n=e??"",r=t[is];delete t[is],r!==void 0&&(t.type==="text"||t.type==="textarea")&&t.value!==r?t[Nt](js(t.value,i,s)):t.value=n},beforeUpdate(t,{value:e,oldValue:i,modifiers:{lazy:s,trim:n,number:r}},o){if(t[Nt]=yi(o),t.composing)return;const l=(r||t.type==="number")&&!/^0\d/.test(t.value)?As(t.value):t.value,u=e??"";if(l===u)return;const d=t.getRootNode();(d instanceof Document||d instanceof ShadowRoot)&&d.activeElement===t&&t.type!=="range"&&(s&&e===i||n&&t.value.trim()===u)||(t.value=u)}},qt={deep:!0,created(t,e,i){t[Nt]=yi(i),Yt(t,"change",()=>{const s=t._modelValue,n=$i(t),r=t.checked,o=t[Nt];if(de(s)){const l=Sn(s,n),u=l!==-1;if(r&&!u)o(s.concat(n));else if(!r&&u){const d=[...s];d.splice(l,1),o(d)}}else if(Vt(s)){const l=new Set(s);r?l.add(n):l.delete(n),o(l)}else o(Vo(t,r))})},mounted:Rr,beforeUpdate(t,e,i){t[Nt]=yi(i),Rr(t,e,i)}};function Rr(t,{value:e,oldValue:i},s){t._modelValue=e;let n;if(de(e))n=Sn(e,s.props.value)>-1;else if(Vt(e))n=e.has(s.props.value);else{if(e===i)return;n=Kt(e,Vo(t,!0))}t.checked!==n&&(t.checked=n)}const Ot={deep:!0,created(t,{value:e,modifiers:{number:i}},s){t._modelValue=e,Yt(t,"change",()=>{const n=Array.prototype.filter.call(t.options,u=>u.selected).map(u=>i?As($i(u)):$i(u)),r=t.multiple,o=r?Vt(t._modelValue)?new Set(n):n:n[0],l=t._pendingValue=[r,r?de(o)?n.slice():n:o];try{t[Nt](o)}finally{xn(()=>{t._pendingValue===l&&(t._pendingValue=void 0)})}}),t[Nt]=yi(s)},mounted(t,{value:e}){Ar(t,e)},beforeUpdate(t,{value:e},i){t._modelValue=e,t[Nt]=yi(i)},updated(t,{value:e}){const i=t._pendingValue;t._pendingValue=void 0,(!i||i[0]!==t.multiple||!Du(e,i[1],i[0]))&&Ar(t,e)}};function Du(t,e,i){if(!i||de(t))return Kt(t,e);if(Vt(t)){if(t.size!==e.length)return!1;for(const s of e)if(!t.has(s))return!1;return!0}return!1}function Ar(t,e){const i=t.multiple,s=de(e);if(!(i&&!s&&!Vt(e))){for(let n=0,r=t.options.length;nString(d)===String(l)):o.selected=Sn(e,l)>-1}else o.selected=e.has(l);else if(Kt($i(o),e)){t.selectedIndex!==n&&(t.selectedIndex=n);return}}!i&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function $i(t){return"_value"in t?t._value:t.value}function Vo(t,e){const i=e?"_trueValue":"_falseValue";return i in t?t[i]:e}const Uu=["ctrl","shift","alt","meta"],Fu={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>Uu.some(i=>t[`${i}Key`]&&!e.includes(i))},ct=(t,e)=>{if(!t)return t;const i=t._withMods||(t._withMods={}),s=e.join(".");return i[s]||(i[s]=((n,...r)=>{for(let o=0;o{const e=zu().createApp(...t),{mount:i}=e;return e.mount=s=>{const n=Wu(s);if(!n)return;const r=e._component;!pe(r)&&!r.render&&!r.template&&(r.template=n.innerHTML),n.nodeType===1&&(n.textContent="");const o=i(n,!1,Hu(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),o},e});function Hu(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function Wu(t){return Ue(t)?document.querySelector(t):t}class M{static getElements(e,i=document){if(typeof e=="string"){const s="getElementById"in i?i:void 0;if(s&&!isNaN(+e[0])){const r=s.getElementById(e);return r?[r]:[]}let n=i.querySelectorAll(e);if(!n.length&&e[0]!=="."&&e[0]!=="#"&&(n=i.querySelectorAll("."+e),n.length||(n=i.querySelectorAll("#"+e)),!n.length)){const r=i.querySelector(`[gs-id="${e}"]`);return r?[r]:[]}return Array.from(n)}return[e]}static getElement(e,i=document){if(typeof e=="string"){const s="getElementById"in i?i:void 0;if(!e.length)return null;if(s&&e[0]==="#")return s.getElementById(e.substring(1));if(e[0]==="#"||e[0]==="."||e[0]==="[")return i.querySelector(e);if(s&&!isNaN(+e[0]))return s.getElementById(e);let n=i.querySelector(e);return s&&!n&&(n=s.getElementById(e)),n||(n=i.querySelector("."+e)),n}return e}static lazyLoad(e){return e.lazyLoad||e.grid?.opts?.lazyLoad&&e.lazyLoad!==!1}static createDiv(e,i){const s=document.createElement("div");return e.forEach(n=>{n&&s.classList.add(n)}),i?.appendChild(s),s}static shouldSizeToContent(e,i=!1){return e?.grid&&(i?e.sizeToContent===!0||e.grid.opts.sizeToContent===!0&&e.sizeToContent===void 0:!!e.sizeToContent||e.grid.opts.sizeToContent&&e.sizeToContent!==!1)}static isIntercepted(e,i){return!(e.y>=i.y+i.h||e.y+e.h<=i.y||e.x+e.w<=i.x||e.x>=i.x+i.w)}static isTouching(e,i){return M.isIntercepted(e,{x:i.x-.5,y:i.y-.5,w:i.w+1,h:i.h+1})}static areaIntercept(e,i){const s=e.x>i.x?e.x:i.x,n=e.x+e.wi.y?e.y:i.y,o=e.y+e.h{const o=i*((n.y??1e4)-(r.y??1e4));return o===0?i*((n.x??1e4)-(r.x??1e4)):o})}static find(e,i){return i?e.find(s=>s.id===i):void 0}static toBool(e){return typeof e=="boolean"?e:typeof e=="string"?(e=e.toLowerCase(),!(e===""||e==="no"||e==="false"||e==="0")):!!e}static toNumber(e){return e===null||e.length===0?void 0:Number(e)}static parseHeight(e){let i,s="px";if(typeof e=="string")if(e==="auto"||e==="")i=0;else{const n=e.match(/^(-[0-9]+\.[0-9]+|[0-9]*\.[0-9]+|-[0-9]+|[0-9]+)(px|em|rem|vh|vw|%|cm|mm)?$/);if(!n)throw new Error(`Invalid height val = ${e}`);s=n[2]||"px",i=parseFloat(n[1])}else i=e;return{h:i,unit:s}}static defaults(e,...i){return i.forEach(s=>{for(const n in s){if(!s.hasOwnProperty(n))return;e[n]===null||e[n]===void 0?e[n]=s[n]:typeof s[n]=="object"&&typeof e[n]=="object"&&M.defaults(e[n],s[n])}}),e}static same(e,i){if(typeof e!="object")return e==i;if(typeof e!=typeof i||Object.keys(e).length!==Object.keys(i).length)return!1;for(const s in e)if(e[s]!==i[s])return!1;return!0}static copyPos(e,i,s=!1){return i.x!==void 0&&(e.x=i.x),i.y!==void 0&&(e.y=i.y),i.w!==void 0&&(e.w=i.w),i.h!==void 0&&(e.h=i.h),s&&(i.minW&&(e.minW=i.minW),i.minH&&(e.minH=i.minH),i.maxW&&(e.maxW=i.maxW),i.maxH&&(e.maxH=i.maxH)),e}static samePos(e,i){return e&&i&&e.x===i.x&&e.y===i.y&&(e.w||1)===(i.w||1)&&(e.h||1)===(i.h||1)}static sanitizeMinMax(e){e.minW||delete e.minW,e.minH||delete e.minH,e.maxW||delete e.maxW,e.maxH||delete e.maxH}static removeInternalAndSame(e,i){if(!(typeof e!="object"||typeof i!="object")&&!(Array.isArray(e)||Array.isArray(i)))for(let s in e){const n=e[s],r=i[s];s[0]==="_"||n===r?delete e[s]:n&&typeof n=="object"&&r!==void 0&&(M.removeInternalAndSame(n,r),Object.keys(n).length||delete e[s])}}static removeInternalForSave(e,i=!0){for(let s in e)(s[0]==="_"||e[s]===null||e[s]===void 0)&&delete e[s];delete e.grid,i&&delete e.el,e.autoPosition||delete e.autoPosition,e.noResize||delete e.noResize,e.noMove||delete e.noMove,e.locked||delete e.locked,(e.w===1||e.w===e.minW)&&delete e.w,(e.h===1||e.h===e.minH)&&delete e.h}static throttle(e,i){let s=!1;return(...n)=>{s||(s=!0,setTimeout(()=>{e(...n),s=!1},i))}}static removePositioningStyles(e){const i=e.style;i.position&&i.removeProperty("position"),i.left&&i.removeProperty("left"),i.top&&i.removeProperty("top"),i.width&&i.removeProperty("width"),i.height&&i.removeProperty("height")}static getScrollElement(e){if(!e)return document.scrollingElement||document.documentElement;const i=getComputedStyle(e).overflowY;return(i==="auto"||i==="scroll")&&e.scrollHeight>e.clientHeight?e:M.getScrollElement(e.parentElement)}static updateScrollResize(e,i,s){const n=M.getScrollElement(i),r=n.clientHeight,o=n===M.getScrollElement()?0:n.getBoundingClientRect().top,l=e.clientY-o,u=lr-s;u?n.scrollBy({behavior:"smooth",top:l-s}):d&&n.scrollBy({behavior:"smooth",top:s-(r-l)})}static clone(e){return e==null||typeof e!="object"?e:e instanceof Array?[...e]:{...e}}static cloneDeep(e){const i=["parentGrid","el","grid","subGrid","engine"],s=M.clone(e);for(const n in s)s.hasOwnProperty(n)&&typeof s[n]=="object"&&n.substring(0,2)!=="__"&&!i.find(r=>r===n)&&(s[n]=M.cloneDeep(e[n]));return s}static cloneNode(e){const i=e.cloneNode(!0);return i.removeAttribute("id"),i}static appendTo(e,i){let s;typeof i=="string"?s=M.getElement(i):s=i,s&&s.appendChild(e)}static addElStyles(e,i){if(i instanceof Object)for(const s in i)i.hasOwnProperty(s)&&(Array.isArray(i[s])?i[s].forEach(n=>{e.style[s]=n}):e.style[s]=i[s])}static initEvent(e,i){const s={type:i.type},n={button:0,which:0,buttons:1,bubbles:!0,cancelable:!0,target:i.target?i.target:e.target};return["altKey","ctrlKey","metaKey","shiftKey"].forEach(r=>s[r]=e[r]),["pageX","pageY","clientX","clientY","screenX","screenY"].forEach(r=>s[r]=e[r]),{...s,...n}}static simulateMouseEvent(e,i,s){const n=e,r=new MouseEvent(i,{bubbles:!0,composed:!0,cancelable:!0,view:window,detail:1,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY,ctrlKey:n.ctrlKey??!1,altKey:n.altKey??!1,shiftKey:n.shiftKey??!1,metaKey:n.metaKey??!1,button:0,relatedTarget:e.target});(s||e.target).dispatchEvent(r)}static getValuesFromTransformedElement(e){const i=document.createElement("div");M.addElStyles(i,{opacity:"0",position:"fixed",top:"0px",left:"0px",width:"1px",height:"1px",zIndex:"-999999"}),e.appendChild(i);const s=i.getBoundingClientRect();return e.removeChild(i),i.remove(),{xScale:1/s.width,yScale:1/s.height,xOffset:s.left,yOffset:s.top}}static swap(e,i,s){if(!e)return;const n=e[i];e[i]=e[s],e[s]=n}static canBeRotated(e){return!(!e||e.w===e.h||e.locked||e.noResize||e.grid?.opts.disableResize||e.minW&&e.minW===e.maxW||e.minH&&e.minH===e.maxH)}}class Ht{constructor(e={}){this.addedNodes=[],this.removedNodes=[],this.defaultColumn=12,this.column=e.column||this.defaultColumn,this.column>this.defaultColumn&&(this.defaultColumn=this.column),this.maxRow=e.maxRow,this._float=e.float,this.nodes=e.nodes||[],this.onChange=e.onChange}batchUpdate(e=!0,i=!0){return!!this.batchMode===e?this:(this.batchMode=e,e?(this._prevFloat=this._float,this._float=!0,this.cleanNodes(),this.saveInitial()):(this._float=this._prevFloat,delete this._prevFloat,i&&this._packNodes(),this._notify()),this)}_useEntireRowArea(e,i){return(!this.float||this.batchMode&&!this._prevFloat)&&!this._hasLocked&&(!e._moving||e._skipDown||i.y<=e.y)}_fixCollisions(e,i=e,s,n={}){if(this.sortNodes(-1),s=s||this.collide(e,i),!s)return!1;if(e._moving&&!n.nested&&!this.float&&this.swap(e,s))return!0;let r=i;!this._loading&&this._useEntireRowArea(e,i)&&(r={x:0,w:this.column,y:i.y,h:i.h},s=this.collide(e,r,n.skip));let o=!1;const l={nested:!0,pack:!1};let u=0;for(;s=s||this.collide(e,r,n.skip);){if(u++>this.nodes.length*2)throw new Error("Infinite collide check");let d;if(s.locked||this._loading||e._moving&&!e._skipDown&&i.y>e.y&&!this.float&&(!this.collide(s,{...s,y:e.y},e)||!this.collide(s,{...s,y:i.y-s.h},e))){e._skipDown=e._skipDown||i.y>e.y;const c={...i,y:s.y+s.h,...l};d=this._loading&&M.samePos(e,c)?!0:this.moveNode(e,c),(s.locked||this._loading)&&d?M.copyPos(i,e):!s.locked&&d&&n.pack&&(this._packNodes(),i.y=s.y+s.h,M.copyPos(e,i)),o=o||d}else d=this.moveNode(s,{...s,y:i.y+i.h,skip:e,...l});if(!d)return o;s=void 0}return o}collide(e,i=e,s){const n=e._id,r=s?._id;return this.nodes.find(o=>o._id!==n&&o._id!==r&&M.isIntercepted(o,i))}collideAll(e,i=e,s){const n=e._id,r=s?._id;return this.nodes.filter(o=>o._id!==n&&o._id!==r&&M.isIntercepted(o,i))}directionCollideCoverage(e,i,s){if(!i.rect||!e._rect)return;const n=e._rect,r={...i.rect};r.y>n.y?(r.h+=r.y-n.y,r.y=n.y):r.h+=n.y-r.y,r.x>n.x?(r.w+=r.x-n.x,r.x=n.x):r.w+=n.x-r.x;let o,l=.5;for(let u of s){if(u.locked||!u._rect)break;const d=u._rect;let c=Number.MAX_VALUE,f=Number.MAX_VALUE;n.yd.y+d.h&&(c=(d.y+d.h-r.y)/d.h),n.xd.x+d.w&&(f=(d.x+d.w-r.x)/d.w);const y=Math.min(f,c);y>l&&(l=y,o=u)}return i.collide=o,o}cacheRects(e,i,s,n,r,o){return this.nodes.forEach(l=>l._rect={y:l.y*i+s,x:l.x*e+o,w:l.w*e-o-n,h:l.h*i-s-r}),this}swap(e,i){if(!i||i.locked||!e||e.locked)return!1;function s(){const r=i.x,o=i.y;return i.x=e.x,i.y=e.y,e.h!=i.h?(e.x=r,e.y=i.y+i.h):e.w!=i.w?(e.x=i.x+i.w,e.y=o):(e.x=r,e.y=o),e._dirty=i._dirty=!0,!0}let n;if(e.w===i.w&&e.h===i.h&&(e.x===i.x||e.y===i.y)&&(n=M.isTouching(e,i)))return s();if(n!==!1){if(e.w===i.w&&e.x===i.x&&(n||(n=M.isTouching(e,i)))){if(i.y{let d;o.locked||(o.autoPosition=!0,e==="list"&&l&&(d=u[l-1])),this.addNode(o,!1,d)}),n||delete this._inColumnResize,s||this.batchUpdate(!1),this}set float(e){this._float!==e&&(this._float=e||!1,e||this._packNodes()._notify())}get float(){return this._float||!1}sortNodes(e=1){return this.nodes=M.sort(this.nodes,e),this}_packNodes(){return this.batchMode?this:(this.sortNodes(),this.float?this.nodes.forEach(e=>{if(e._updating||e._orig===void 0||e.y===e._orig.y)return;let i=e.y;for(;i>e._orig.y;)--i,this.collide(e,{x:e.x,y:i,w:e.w,h:e.h})||(e._dirty=!0,e.y=i)}):this.nodes.forEach((e,i)=>{if(!e.locked)for(;e.y>0;){const s=i===0?0:e.y-1;if(!(i===0||!this.collide(e,{x:e.x,y:s,w:e.w,h:e.h})))break;e._dirty=e.y!==s,e.y=s}}),this)}prepareNode(e,i){e._id=e._id??Ht._idSeq++;const s=e.id;if(s){let r=1;for(;this.nodes.find(o=>o.id===e.id&&o!==e);)e.id=s+"_"+r++}(e.x===void 0||e.y===void 0||e.x===null||e.y===null)&&(e.autoPosition=!0);const n={x:0,y:0,w:1,h:1};return M.defaults(e,n),e.autoPosition||delete e.autoPosition,e.noResize||delete e.noResize,e.noMove||delete e.noMove,M.sanitizeMinMax(e),typeof e.x=="string"&&(e.x=Number(e.x)),typeof e.y=="string"&&(e.y=Number(e.y)),typeof e.w=="string"&&(e.w=Number(e.w)),typeof e.h=="string"&&(e.h=Number(e.h)),isNaN(e.x)&&(e.x=n.x,e.autoPosition=!0),isNaN(e.y)&&(e.y=n.y,e.autoPosition=!0),isNaN(e.w)&&(e.w=n.w),isNaN(e.h)&&(e.h=n.h),this.nodeBoundFix(e,i),e}nodeBoundFix(e,i){const s=e._orig||M.copyPos({},e);if(e.maxW&&(e.w=Math.min(e.w||1,e.maxW)),e.maxH&&(e.h=Math.min(e.h||1,e.maxH)),e.minW&&(e.w=Math.max(e.w||1,e.minW)),e.minH&&(e.h=Math.max(e.h||1,e.minH)),(e.x||0)+(e.w||1)>this.column&&this.columnthis.column?e.w=this.column:e.w<1&&(e.w=1),this.maxRow&&e.h>this.maxRow?e.h=this.maxRow:e.h<1&&(e.h=1),e.x<0&&(e.x=0),e.y<0&&(e.y=0),e.x+e.w>this.column&&(i?e.w=this.column-e.x:e.x=this.column-e.w),this.maxRow&&e.y+e.h>this.maxRow&&(i?e.h=this.maxRow-e.y:e.y=this.maxRow-e.h),M.samePos(e,s)||(e._dirty=!0),this}getDirtyNodes(e){return e?this.nodes.filter(i=>i._dirty&&!M.samePos(i,i._orig)):this.nodes.filter(i=>i._dirty)}_notify(e){if(this.batchMode||!this.onChange)return this;const i=(e||[]).concat(this.getDirtyNodes());return this.onChange(i),this}cleanNodes(){return this.batchMode?this:(this.nodes.forEach(e=>{delete e._dirty,delete e._lastTried}),this)}saveInitial(){return this.nodes.forEach(e=>{e._orig=M.copyPos({},e),delete e._dirty}),this._hasLocked=this.nodes.some(e=>e.locked),this}restoreInitial(){return this.nodes.forEach(e=>{!e._orig||M.samePos(e,e._orig)||(M.copyPos(e,e._orig),e._dirty=!0)}),this._notify(),this}findEmptyPosition(e,i=this.nodes,s=this.column,n){const r=n?n.y*s+(n.x+n.w):0;let o=!1;for(let l=r;!o;++l){const u=l%s,d=Math.floor(l/s);if(u+e.w>s)continue;const c={x:u,y:d,w:e.w,h:e.h};i.find(f=>M.isIntercepted(c,f))||((e.x!==u||e.y!==d)&&(e._dirty=!0),e.x=u,e.y=d,delete e.autoPosition,o=!0)}return o}addNode(e,i=!1,s){const n=this.nodes.find(o=>o._id===e._id);if(n)return n;this._inColumnResize?this.nodeBoundFix(e):this.prepareNode(e),delete e._temporaryRemoved,delete e._removeDOM;let r;return e.autoPosition&&this.findEmptyPosition(e,this.nodes,this.column,s)&&(delete e.autoPosition,r=!0),this.nodes.push(e),i&&this.addedNodes.push(e),r||this._fixCollisions(e),this.batchMode||this._packNodes()._notify(),e}removeNode(e,i=!0,s=!1){return this.nodes.find(n=>n._id===e._id)?(s&&this.removedNodes.push(e),i&&(e._removeDOM=!0),this.nodes=this.nodes.filter(n=>n._id!==e._id),e._isAboutToRemove||this._packNodes(),this._notify([e]),this):this}removeAll(e=!0,i=!0){if(delete this._layouts,!this.nodes.length)return this;e&&this.nodes.forEach(n=>n._removeDOM=!0);const s=this.nodes;return this.removedNodes=i?s:[],this.nodes=[],this._notify(s)}moveNodeCheck(e,i){if(!this.changedPosConstrain(e,i))return!1;if(i.pack=!0,!this.maxRow)return this.moveNode(e,i);let s;const n=new Ht({column:this.column,float:this.float,nodes:this.nodes.map(o=>o._id===e._id?(s={...o},s):{...o})});if(!s)return!1;const r=n.moveNode(s,i)&&n.getRow()<=Math.max(this.getRow(),this.maxRow);if(!r&&!i.resizing&&i.collide){const o=i.collide.el.gridstackNode;if(this.swap(e,o))return this._notify(),!0}return r?(n.nodes.filter(o=>o._dirty).forEach(o=>{const l=this.nodes.find(u=>u._id===o._id);l&&(M.copyPos(l,o),l._dirty=!0)}),this._notify(),!0):!1}willItFit(e){if(delete e._willFitPos,!this.maxRow)return!0;const i=new Ht({column:this.column,float:this.float,nodes:this.nodes.map(n=>({...n}))}),s={...e};return this.cleanupNode(s),delete s.el,delete s._id,delete s.content,delete s.grid,i.addNode(s),i.getRow()<=this.maxRow?(e._willFitPos=M.copyPos({},s),!0):!1}changedPosConstrain(e,i){return i.w=i.w||e.w,i.h=i.h||e.h,e.x!==i.x||e.y!==i.y?!0:(e.maxW&&(i.w=Math.min(i.w,e.maxW)),e.maxH&&(i.h=Math.min(i.h,e.maxH)),e.minW&&(i.w=Math.max(i.w,e.minW)),e.minH&&(i.h=Math.max(i.h,e.minH)),e.w!==i.w||e.h!==i.h)}moveNode(e,i){if(!e||!i)return!1;let s;i.pack===void 0&&!this.batchMode&&(s=i.pack=!0),typeof i.x!="number"&&(i.x=e.x),typeof i.y!="number"&&(i.y=e.y),typeof i.w!="number"&&(i.w=e.w),typeof i.h!="number"&&(i.h=e.h);const n=e.w!==i.w||e.h!==i.h,r=M.copyPos({},e,!0);if(M.copyPos(r,i),this.nodeBoundFix(r,n),M.copyPos(i,r),!i.forceCollide&&M.samePos(e,i))return!1;const o=M.copyPos({},e),l=this.collideAll(e,r,i.skip);let u=!0;if(l.length){const d=e._moving&&!i.nested;let c=d?this.directionCollideCoverage(e,i,l):l[0];if(d&&c&&e.grid?.opts?.subGridDynamic&&!e.grid._isTemp){const f=M.areaIntercept(i.rect,c._rect),y=M.area(i.rect),S=M.area(c._rect);f/(y.8&&(c.grid.makeSubGrid(c.el,void 0,e),c=void 0)}c?u=!this._fixCollisions(e,r,c,i):(u=!1,s&&delete i.pack)}return u&&!M.samePos(e,r)&&(e._dirty=!0,M.copyPos(e,r)),i.pack&&this._packNodes()._notify(),!M.samePos(e,o)}getRow(){return this.nodes.reduce((e,i)=>Math.max(e,i.y+i.h),0)}beginUpdate(e){return e._updating||(e._updating=!0,delete e._skipDown,this.batchMode||this.saveInitial()),this}endUpdate(){const e=this.nodes.find(i=>i._updating);return e&&(delete e._updating,delete e._skipDown),this}save(e=!0,i,s){const n=this._layouts?.length||0;let r;n&&(s?s!==this.column&&(r=this._layouts[s]):this.column!==n-1&&(r=this._layouts[n-1]));const o=[];return this.sortNodes(),this.nodes.forEach(l=>{const u=r?.find(c=>c._id===l._id),d={...l,...u||{}};M.removeInternalForSave(d,!e),i&&i(l,d),o.push(d)}),o}layoutsNodesChange(e){return!this._layouts||this._inColumnResize?this:(this._layouts.forEach((i,s)=>{if(!i||s===this.column)return this;if(s{if(!r._orig)return;const o=i.find(l=>l._id===r._id);o&&(o.y>=0&&r.y!==r._orig.y&&(o.y+=r.y-r._orig.y,o.y<0&&(o.y=0)),r.x!==r._orig.x&&(o.x=Math.round(r.x*n),o.x<0&&(o.x=0)),r.w!==r._orig.w&&(o.w=Math.round(r.w*n),o.w<1&&(o.w=1)))})}}),this)}columnChanged(e,i,s="moveScale"){if(!this.nodes.length||!i||e===i)return this;const n=s==="compact"||s==="list";n&&this.sortNodes(1),ie&&this._layouts){const l=this._layouts[i]||[],u=this._layouts.length-1;!l.length&&e!==u&&this._layouts[u]?.length&&(e=u,this._layouts[u].forEach(d=>{const c=o.find(f=>f._id===d._id);c&&(!n&&!d.autoPosition&&(c.x=d.x??c.x,c.y=d.y??c.y),c.w=d.w??c.w,(d.x==null||d.y===void 0)&&(c.autoPosition=!0))})),l.forEach(d=>{const c=o.findIndex(f=>f._id===d._id);if(c!==-1){const f=o[c];if(n){f.w=d.w;return}(d.autoPosition||isNaN(d.x)||isNaN(d.y))&&this.findEmptyPosition(d,r),d.autoPosition||(f.x=d.x??f.x,f.y=d.y??f.y,f.w=d.w??f.w,r.push(f)),o.splice(c,1)}})}if(n)this.compact(s,!1);else{if(o.length)if(typeof s=="function")s(i,e,r,o);else{const l=n||s==="none"?1:i/e,u=s==="move"||s==="moveScale",d=s==="scale"||s==="moveScale";o.forEach(c=>{c.x=i===1?0:u?Math.round(c.x*l):Math.min(c.x,i-1),c.w=i===1||e===1?1:d?Math.round(c.w*l)||1:Math.min(c.w,i),r.push(c)}),o=[]}r=M.sort(r,-1),this._inColumnResize=!0,this.nodes=[],r.forEach(l=>{this.addNode(l,!1),delete l._orig})}return this.nodes.forEach(l=>delete l._orig),this.batchUpdate(!1,!n),delete this._inColumnResize,this}cacheLayout(e,i,s=!1){const n=[];return e.forEach((r,o)=>{if(r._id===void 0){const l=r.id?this.nodes.find(u=>u.id===r.id):void 0;r._id=l?._id??Ht._idSeq++}n[o]={x:r.x,y:r.y,w:r.w,_id:r._id}}),this._layouts=s?[]:this._layouts||[],this._layouts[i]=n,this}cacheOneLayout(e,i){e._id=e._id??Ht._idSeq++;const s={x:e.x,y:e.y,w:e.w,_id:e._id};(e.autoPosition||e.x===void 0)&&(delete s.x,delete s.y,e.autoPosition&&(s.autoPosition=!0)),this._layouts=this._layouts||[],this._layouts[i]=this._layouts[i]||[];const n=this.findCacheLayout(e,i);return n===-1?this._layouts[i].push(s):this._layouts[i][n]=s,this}findCacheLayout(e,i){return this._layouts?.[i]?.findIndex(s=>s._id===e._id)??-1}removeNodeFromLayoutCache(e){if(this._layouts)for(let i=0;i0||navigator.msMaxTouchPoints>0);class at{}function ms(t,e){t.touches.length>1||(t.cancelable&&t.preventDefault(),M.simulateMouseEvent(t.changedTouches[0],e))}function Ko(t,e){t.cancelable&&t.preventDefault(),M.simulateMouseEvent(t,e)}function vs(t){at.touchHandled||(at.touchHandled=!0,ms(t,"mousedown"))}function bs(t){at.touchHandled&&ms(t,"mousemove")}function ys(t){if(!at.touchHandled)return;at.pointerLeaveTimeout&&(window.clearTimeout(at.pointerLeaveTimeout),delete at.pointerLeaveTimeout);const e=!!ce.dragElement;ms(t,"mouseup"),e||ms(t,"click"),at.touchHandled=!1}function Es(t){t.pointerType!=="mouse"&&t.target.releasePointerCapture(t.pointerId)}function Tr(t){ce.dragElement&&t.pointerType!=="mouse"&&Ko(t,"mouseenter")}function Cr(t){ce.dragElement&&t.pointerType!=="mouse"&&(at.pointerLeaveTimeout=window.setTimeout(()=>{delete at.pointerLeaveTimeout,Ko(t,"mouseleave")},10))}class Ls{constructor(e,i,s){this.host=e,this.dir=i,this.option=s,this.moving=!1,this._mouseDown=this._mouseDown.bind(this),this._mouseMove=this._mouseMove.bind(this),this._mouseUp=this._mouseUp.bind(this),this._keyEvent=this._keyEvent.bind(this),this._init()}_init(){if(this.option.element)try{this.el=this.option.element instanceof HTMLElement?this.option.element:this.host.querySelector(this.option.element)}catch(e){this.option.element=void 0,console.error("Query for resizeable handle failed, falling back",e)}return this.el||(this.el=document.createElement("div"),this.host.appendChild(this.el)),this.el.classList.add("ui-resizable-handle"),this.el.classList.add(`${Ls.prefix}${this.dir}`),this.el.style.zIndex="100",this.el.style.userSelect="none",this.el.addEventListener("mousedown",this._mouseDown),yt&&(this.el.addEventListener("touchstart",vs),this.el.addEventListener("pointerdown",Es)),this}destroy(){return this.moving&&this._mouseUp(this.mouseDownEvent),this.el.removeEventListener("mousedown",this._mouseDown),yt&&(this.el.removeEventListener("touchstart",vs),this.el.removeEventListener("pointerdown",Es)),this.option.element||this.host.removeChild(this.el),delete this.el,delete this.host,this}_mouseDown(e){this.mouseDownEvent=e,document.addEventListener("mousemove",this._mouseMove,{capture:!0,passive:!0}),document.addEventListener("mouseup",this._mouseUp,!0),yt&&(this.el.addEventListener("touchmove",bs),this.el.addEventListener("touchend",ys)),e.stopPropagation(),e.preventDefault()}_mouseMove(e){const i=this.mouseDownEvent;this.moving?this._triggerEvent("move",e):Math.abs(e.x-i.x)+Math.abs(e.y-i.y)>2&&(this.moving=!0,this._triggerEvent("start",this.mouseDownEvent),this._triggerEvent("move",e),document.addEventListener("keydown",this._keyEvent)),e.stopPropagation()}_mouseUp(e){this.moving&&(this._triggerEvent("stop",e),document.removeEventListener("keydown",this._keyEvent)),document.removeEventListener("mousemove",this._mouseMove,!0),document.removeEventListener("mouseup",this._mouseUp,!0),yt&&(this.el.removeEventListener("touchmove",bs),this.el.removeEventListener("touchend",ys)),delete this.moving,delete this.mouseDownEvent,e.stopPropagation(),e.preventDefault()}_keyEvent(e){e.key==="Escape"&&(this.host.gridstackNode?.grid?.engine.restoreInitial(),this._mouseUp(this.mouseDownEvent))}_triggerEvent(e,i){return this.option[e]&&this.option[e](i),this}}Ls.prefix="ui-resizable-";class Bn{constructor(){this._eventRegister={}}get disabled(){return this._disabled}on(e,i){this._eventRegister[e]=i}off(e){delete this._eventRegister[e]}enable(){this._disabled=!1}disable(){this._disabled=!0}destroy(){delete this._eventRegister}triggerEvent(e,i){if(!this.disabled&&this._eventRegister&&this._eventRegister[e])return this._eventRegister[e](i)}}class Hi extends Bn{constructor(e,i={}){super(),this.el=e,this.option=i,this.rectScale={x:1,y:1},this._ui=()=>{const n=this.el.parentElement.getBoundingClientRect(),r={width:this.originalRect.width,height:this.originalRect.height+this.scrolled,left:this.originalRect.left,right:this.originalRect.right,top:this.originalRect.top-this.scrolled},o=this.temporalRect||r;return{position:{left:this.option.rtl?(n.right-o.right)*this.rectScale.x:(o.left-n.left)*this.rectScale.x,top:(o.top-n.top)*this.rectScale.y},size:{width:o.width*this.rectScale.x,height:o.height*this.rectScale.y}}},this._mouseOver=this._mouseOver.bind(this),this._mouseOut=this._mouseOut.bind(this),this.enable(),this._setupAutoHide(this.option.autoHide),this._setupHandlers()}on(e,i){super.on(e,i)}off(e){super.off(e)}enable(){super.enable(),this.el.classList.remove("ui-resizable-disabled"),this._setupAutoHide(this.option.autoHide)}disable(){super.disable(),this.el.classList.add("ui-resizable-disabled"),this._setupAutoHide(!1)}destroy(){this._removeHandlers(),this._setupAutoHide(!1),delete this.el,super.destroy()}updateOption(e){const i=e.handles&&e.handles!==this.option.handles,s=e.autoHide&&e.autoHide!==this.option.autoHide;return Object.keys(e).forEach(n=>this.option[n]=e[n]),i&&(this._removeHandlers(),this._setupHandlers()),s&&this._setupAutoHide(this.option.autoHide),this}_setupAutoHide(e){return e?(this.el.classList.add("ui-resizable-autohide"),this.el.addEventListener("mouseover",this._mouseOver),this.el.addEventListener("mouseout",this._mouseOut)):(this.el.classList.remove("ui-resizable-autohide"),this.el.removeEventListener("mouseover",this._mouseOver),this.el.removeEventListener("mouseout",this._mouseOut),ce.overResizeElement===this&&delete ce.overResizeElement),this}_mouseOver(e){ce.overResizeElement||ce.dragElement||(ce.overResizeElement=this,this.el.classList.remove("ui-resizable-autohide"))}_mouseOut(e){ce.overResizeElement===this&&(delete ce.overResizeElement,this.el.classList.add("ui-resizable-autohide"))}_setupHandlers(){return this.handlers=this.option.handles.split(",").map(e=>e.trim()).map(e=>new Ls(this.el,e,{element:this.option.element,start:i=>this._resizeStart(i),stop:i=>this._resizeStop(i),move:i=>this._resizing(i,e)})),this}_resizeStart(e){this.sizeToContent=M.shouldSizeToContent(this.el.gridstackNode,!0),this.originalRect=this.el.getBoundingClientRect(),this.scrollEl=M.getScrollElement(this.el),this.scrollY=this.scrollEl.scrollTop,this.scrolled=0,this.startEvent=e,this._setupHelper(),this._applyChange();const i=M.initEvent(e,{type:"resizestart",target:this.el});return this.option.start&&this.option.start(i,this._ui()),this.el.classList.add("ui-resizable-resizing"),this.triggerEvent("resizestart",i),this}_resizing(e,i){this.scrolled=this.scrollEl.scrollTop-this.scrollY,this.temporalRect=this._getChange(e,i),this._applyChange();const s=M.initEvent(e,{type:"resize",target:this.el});return s.resizeDir=i,s.hasMovedX=this.option.rtl?i.includes("e"):i.includes("w"),s.hasMovedY=i.includes("n"),this.option.resize&&this.option.resize(s,this._ui()),this.triggerEvent("resize",s),this}_resizeStop(e){const i=M.initEvent(e,{type:"resizestop",target:this.el});return this._cleanHelper(),this.option.stop&&this.option.stop(i),this.el.classList.remove("ui-resizable-resizing"),this.triggerEvent("resizestop",i),delete this.startEvent,delete this.originalRect,delete this.temporalRect,delete this.scrollY,delete this.scrolled,this}_setupHelper(){this.elOriginStyleVal=Hi._originStyleProp.map(s=>this.el.style[s]),this.parentOriginStylePosition=this.el.parentElement.style.position;const e=this.el.parentElement,i=M.getValuesFromTransformedElement(e);return this.rectScale={x:i.xScale,y:i.yScale},getComputedStyle(this.el.parentElement).position.match(/static/)&&(this.el.parentElement.style.position="relative"),this.el.style.position="absolute",this.el.style.opacity="0.8",this}_cleanHelper(){return Hi._originStyleProp.forEach((e,i)=>{this.el.style[e]=this.elOriginStyleVal[i]||null}),this.el.parentElement.style.position=this.parentOriginStylePosition||null,this}_getChange(e,i){const s=this.startEvent,n={width:this.originalRect.width,height:this.originalRect.height+this.scrolled,left:this.originalRect.left,right:this.originalRect.right,top:this.originalRect.top-this.scrolled},r=e.clientX-s.clientX,o=this.sizeToContent?0:e.clientY-s.clientY;let l,u;const d=this.option.rtl;!d&&i.indexOf("e")>-1?n.width+=r:d&&i.indexOf("w")>-1?n.width-=r:!d&&i.indexOf("w")>-1?(n.width-=r,n.left+=r,l=!0):d&&i.indexOf("e")>-1&&(n.width+=r,n.right+=r,l=!0),i.indexOf("s")>-1?n.height+=o:i.indexOf("n")>-1&&(n.height-=o,n.top+=o,u=!0);const c=this._constrainSize(n.width,n.height,l,u);return Math.round(n.width)!==Math.round(c.width)&&(!d&&i.indexOf("w")>-1?n.left+=n.width-c.width:d&&i.indexOf("e")>-1&&(n.right-=n.width-c.width),n.width=c.width),Math.round(n.height)!==Math.round(c.height)&&(i.indexOf("n")>-1&&(n.top+=n.height-c.height),n.height=c.height),n}_constrainSize(e,i,s,n){const r=this.option,o=(s?r.maxWidthMoveLeft:r.maxWidth)||Number.MAX_SAFE_INTEGER,l=r.minWidth/this.rectScale.x||e,u=(n?r.maxHeightMoveUp:r.maxHeight)||Number.MAX_SAFE_INTEGER,d=r.minHeight/this.rectScale.y||i,c=Math.min(o,Math.max(l,e)),f=Math.min(u,Math.max(d,i));return{width:c,height:f}}_applyChange(){let e={left:0,right:0,top:0,width:0,height:0};if(this.el.style.position==="absolute"){const i=this.el.parentElement,{left:s,right:n,top:r}=i.getBoundingClientRect();e={left:s,right:n,top:r,width:0,height:0}}return this.temporalRect?(Object.entries(this.temporalRect).forEach(([i,s])=>{if(this.option.rtl?i==="left":i==="right")return;const n=i==="width"||i==="left"||i==="right"?this.rectScale.x:i==="height"||i==="top"?this.rectScale.y:1;let r;i==="right"?r=(e.right-s)*this.rectScale.x+"px":r=(s-e[i])*n+"px",this.el.style[i]=r}),this):this}_removeHandlers(){return this.handlers.forEach(e=>e.destroy()),delete this.handlers,this}}Hi._originStyleProp=["width","height","position","left","right","top","opacity","zIndex"];const Vu='input,textarea,button,select,option,[contenteditable="true"],.ui-resizable-handle';class Wi extends Bn{constructor(e,i={}){super(),this.el=e,this.option=i,this.dragTransform={xScale:1,yScale:1,xOffset:0,yOffset:0},this._autoScrollTick=()=>{const r=this.helper,o=this._autoScrollContainer;if(!r||!o){this._stopScrolling();return}const l=this._getClipping(r,o);if(l===0){this._stopScrolling();return}if(!this._autoScrollMaxSpeed){const y=window.innerHeight||document.documentElement.clientHeight;this._autoScrollMaxSpeed=Math.max(y/150,4)}const u=Math.abs(l),d=Math.min(u*.5,this._autoScrollMaxSpeed),c=l>0?d:-d,f=o.scrollTop;if(o.scrollTop+=c,o.scrollTop===f){this._stopScrolling();return}this.dragging&&this.lastDrag&&(this._dragFollow(this.lastDrag),this._callDrag(this.lastDrag)),this._autoScrollAnimId=requestAnimationFrame(this._autoScrollTick)};const s=i?.handle?.substring(1),n=e.gridstackNode;this.dragEls=!s||e.classList.contains(s)?[e]:n?.subGrid?[e.querySelector(i.handle)||e]:this.getAllHandles(),this.dragEls.length===0&&(this.dragEls=[e]),this._mouseDown=this._mouseDown.bind(this),this._mouseMove=this._mouseMove.bind(this),this._mouseUp=this._mouseUp.bind(this),this._keyEvent=this._keyEvent.bind(this),this.enable()}getAllHandles(){return Array.from(this.el.querySelectorAll(this.option.handle)).filter(e=>{if(!(e instanceof HTMLElement))return!1;const i=e.closest(".grid-stack-item");return i===this.el||!i})}on(e,i){super.on(e,i)}off(e){super.off(e)}enable(){this.disabled!==!1&&(super.enable(),this.dragEls.forEach(e=>{e.addEventListener("mousedown",this._mouseDown),yt&&(e.addEventListener("touchstart",vs),e.addEventListener("pointerdown",Es))}),this.el.classList.remove("ui-draggable-disabled"))}disable(e=!1){this.disabled!==!0&&(super.disable(),this.dragEls.forEach(i=>{i.removeEventListener("mousedown",this._mouseDown),yt&&(i.removeEventListener("touchstart",vs),i.removeEventListener("pointerdown",Es))}),e||this.el.classList.add("ui-draggable-disabled"))}destroy(){this.dragTimeout&&window.clearTimeout(this.dragTimeout),delete this.dragTimeout,this.mouseDownEvent&&this._mouseUp(this.mouseDownEvent),this.disable(!0),delete this.el,delete this.helper,delete this.option,super.destroy()}updateOption(e){return Object.keys(e).forEach(i=>this.option[i]=e[i]),this}_mouseDown(e){if(at.touchHandled&&e.isTrusted&&(at.touchHandled=!1),!ce.mouseHandled)return e.button!==0||!this.dragEls.find(i=>i===e.target)&&e.target.closest(Vu)||this.option.cancel&&e.target.closest(this.option.cancel)||(this.mouseDownEvent=e,delete this.dragging,delete ce.dragElement,delete ce.dropElement,delete this._autoScrollMaxSpeed,delete this._autoScrollContainer,document.addEventListener("mousemove",this._mouseMove,{capture:!0,passive:!0}),document.addEventListener("mouseup",this._mouseUp,!0),yt&&(e.currentTarget.addEventListener("touchmove",bs),e.currentTarget.addEventListener("touchend",ys)),e.preventDefault(),document.activeElement&&document.activeElement.blur(),ce.mouseHandled=!0),!0}_callDrag(e){if(!this.dragging)return;const i=M.initEvent(e,{target:this.el,type:"drag"});this.option.drag&&this.option.drag(i,this.ui()),this.triggerEvent("drag",i)}_mouseMove(e){const i=this.mouseDownEvent;if(this.lastDrag=e,this.dragging)if(this._dragFollow(e),ce.pauseDrag){const s=Number.isInteger(ce.pauseDrag)?ce.pauseDrag:100;this.dragTimeout&&window.clearTimeout(this.dragTimeout),this.dragTimeout=window.setTimeout(()=>this._callDrag(e),s)}else this._callDrag(e);else if(Math.abs(e.x-i.x)+Math.abs(e.y-i.y)>3){this.dragging=!0,ce.dragElement=this;const s=this.el.gridstackNode?.grid;s?ce.dropElement=s.el.ddElement.ddDroppable:delete ce.dropElement,this.helper=this._createHelper(),this._setupHelperContainmentStyle(),this.dragTransform=M.getValuesFromTransformedElement(this.helperContainment),this.dragOffset=this._getDragOffset(e,this.el,this.helperContainment),this._setupHelperStyle(e);const n=M.initEvent(e,{target:this.el,type:"dragstart"});this.option.start&&this.option.start(n,this.ui()),this.triggerEvent("dragstart",n),document.addEventListener("keydown",this._keyEvent)}return!0}_mouseUp(e){if(this._stopScrolling(),document.removeEventListener("mousemove",this._mouseMove,!0),document.removeEventListener("mouseup",this._mouseUp,!0),yt&&e.currentTarget&&(e.currentTarget.removeEventListener("touchmove",bs,!0),e.currentTarget.removeEventListener("touchend",ys,!0)),this.dragging){delete this.dragging,delete this.el.gridstackNode?._origRotate,document.removeEventListener("keydown",this._keyEvent),ce.dropElement?.el===this.el.parentElement&&delete ce.dropElement,this.helperContainment.style.position=this.parentOriginStylePosition||null,this.helper!==this.el&&this.helper.remove(),this._removeHelperStyle();const i=M.initEvent(e,{target:this.el,type:"dragstop"});this.option.stop&&this.option.stop(i),this.triggerEvent("dragstop",i),ce.dropElement&&ce.dropElement.drop(e)}delete this.helper,delete this.mouseDownEvent,delete ce.dragElement,delete ce.dropElement,delete ce.mouseHandled,e.preventDefault()}_keyEvent(e){const i=this.el.gridstackNode,s=i?.grid||ce.dropElement?.el?.gridstack;if(e.key==="Escape")i&&i._origRotate&&(i._orig=i._origRotate,delete i._origRotate),s?.cancelDrag(),this._mouseUp(this.mouseDownEvent);else if(i&&s&&(e.key==="r"||e.key==="R")){if(!M.canBeRotated(i))return;i._origRotate=i._origRotate||{...i._orig},delete i._moving,s.setAnimation(!1).rotate(i.el,{top:-this.dragOffset.offsetTop,left:-this.dragOffset.offsetX}).setAnimation(),i._moving=!0,this.dragOffset=this._getDragOffset(this.lastDrag,i.el,this.helperContainment),this.helper.style.width=this.dragOffset.width+"px",this.helper.style.height=this.dragOffset.height+"px",M.swap(i._orig,"w","h"),delete i._rect,this._mouseMove(this.lastDrag)}}_createHelper(){let e=this.el;return typeof this.option.helper=="function"?e=this.option.helper(this.el):this.option.helper==="clone"&&(e=M.cloneNode(this.el)),e.parentElement||M.appendTo(e,this.option.appendTo==="parent"?this.el.parentElement:this.option.appendTo),this.dragElementOriginStyle=Wi.originStyleProp.map(i=>this.el.style[i]),e}_setupHelperStyle(e){this.helper.classList.add("ui-draggable-dragging"),this.el.gridstackNode?.grid?.el.classList.add("grid-stack-dragging");const i=this.helper.style;return i.pointerEvents="none",i.width=this.dragOffset.width+"px",i.height=this.dragOffset.height+"px",i.willChange="left, right, top",i.position="fixed",this._dragFollow(e),i.transition="none",setTimeout(()=>{this.helper&&(i.transition=null)},0),this}_removeHelperStyle(){if(this.helper.classList.remove("ui-draggable-dragging"),this.el.gridstackNode?.grid?.el.classList.remove("grid-stack-dragging"),!this.helper?.gridstackNode?._isAboutToRemove&&this.dragElementOriginStyle){const i=this.helper,s=this.dragElementOriginStyle.transition||null;i.style.transition=this.dragElementOriginStyle.transition="none",Wi.originStyleProp.forEach(n=>i.style[n]=this.dragElementOriginStyle[n]||null),setTimeout(()=>i.style.transition=s,50)}return delete this.dragElementOriginStyle,this}_dragFollow(e){const i=this.helper.style,s=this.dragOffset;this.option.rtl?(i.right=(window.innerWidth-e.clientX+s.offsetX)*this.dragTransform.xScale+"px",i.left&&(i.left="")):(i.left=(e.clientX+s.offsetX)*this.dragTransform.xScale+"px",i.right&&(i.right="")),i.top=(e.clientY+s.offsetTop)*this.dragTransform.yScale+"px"}_setupHelperContainmentStyle(){return this.helperContainment=this.helper.parentElement,this.helper.style.position!=="fixed"&&(this.parentOriginStylePosition=this.helperContainment.style.position,getComputedStyle(this.helperContainment).position.match(/static/)&&(this.helperContainment.style.position="relative")),this}_getDragOffset(e,i,s){let n=0,r=0;s&&(n=this.dragTransform.xOffset,r=this.dragTransform.yOffset);const o=i.getBoundingClientRect();let l=this.option.rtl?o.right:o.left,u=this.option.rtl?e.clientX-o.right+n:-e.clientX+o.left-n;return{x:l,top:o.top,offsetX:u,offsetTop:-e.clientY+o.top-r,width:o.width*this.dragTransform.xScale,height:o.height*this.dragTransform.yScale}}updateScrollPosition(e){this._autoScrollContainer=M.getScrollElement(e),this._getClipping(this.helper,this._autoScrollContainer)===0?this._stopScrolling():this._autoScrollAnimId||(this._autoScrollAnimId=requestAnimationFrame(this._autoScrollTick))}_getClipping(e,i){const s=e.getBoundingClientRect(),n=i.getBoundingClientRect(),r=window.innerHeight||document.documentElement.clientHeight;if(s.bottomn.bottom)return 0;const o=s.bottom-Math.min(n.bottom,r),l=s.top-Math.max(n.top,0);return l<0?l:o>0?o:0}_stopScrolling(){this._autoScrollAnimId&&(cancelAnimationFrame(this._autoScrollAnimId),delete this._autoScrollAnimId)}ui(){const i=this.el.parentElement.getBoundingClientRect(),s=this.helper.getBoundingClientRect(),n=this.option.rtl?(i.right-s.right)*this.dragTransform.xScale:(s.left-i.left)*this.dragTransform.xScale;return{position:{top:(s.top-i.top)*this.dragTransform.yScale,left:n}}}}Wi.originStyleProp=["width","height","transform","transform-origin","transition","pointerEvents","position","left","right","top","minWidth","willChange"];class Ku extends Bn{constructor(e,i={}){super(),this.el=e,this.option=i,this._mouseEnter=this._mouseEnter.bind(this),this._mouseLeave=this._mouseLeave.bind(this),this.enable(),this._setupAccept()}on(e,i){super.on(e,i)}off(e){super.off(e)}enable(){this.disabled!==!1&&(super.enable(),this.el.classList.add("ui-droppable"),this.el.classList.remove("ui-droppable-disabled"),this.el.addEventListener("mouseenter",this._mouseEnter),this.el.addEventListener("mouseleave",this._mouseLeave),yt&&(this.el.addEventListener("pointerenter",Tr),this.el.addEventListener("pointerleave",Cr)))}disable(e=!1){this.disabled!==!0&&(super.disable(),this.el.classList.remove("ui-droppable"),e||this.el.classList.add("ui-droppable-disabled"),this.el.removeEventListener("mouseenter",this._mouseEnter),this.el.removeEventListener("mouseleave",this._mouseLeave),yt&&(this.el.removeEventListener("pointerenter",Tr),this.el.removeEventListener("pointerleave",Cr)))}destroy(){this.disable(!0),this.el.classList.remove("ui-droppable"),this.el.classList.remove("ui-droppable-disabled"),super.destroy()}updateOption(e){return Object.keys(e).forEach(i=>this.option[i]=e[i]),this._setupAccept(),this}_mouseEnter(e){if(!ce.dragElement||at.touchHandled&&e.isTrusted||!this._canDrop(ce.dragElement.el))return;e.preventDefault(),e.stopPropagation(),ce.dragElement._stopScrolling(),ce.dropElement&&ce.dropElement!==this&&ce.dropElement._mouseLeave(e,!0),ce.dropElement=this;const i=M.initEvent(e,{target:this.el,type:"dropover"});this.option.over&&this.option.over(i,this._ui(ce.dragElement)),this.triggerEvent("dropover",i),this.el.classList.add("ui-droppable-over")}_mouseLeave(e,i=!1){if(!ce.dragElement||ce.dropElement!==this)return;e.preventDefault(),e.stopPropagation(),i&&ce.dragElement._stopScrolling();const s=M.initEvent(e,{target:this.el,type:"dropout"});if(this.option.out&&this.option.out(s,this._ui(ce.dragElement)),this.triggerEvent("dropout",s),ce.dropElement===this&&(delete ce.dropElement,!i)){let n,r=this.el.parentElement;for(;!n&&r;)n=r.ddElement?.ddDroppable,r=r.parentElement;n&&n._mouseEnter(e)}}drop(e){e.preventDefault();const i=M.initEvent(e,{target:this.el,type:"drop"});this.option.drop&&this.option.drop(i,this._ui(ce.dragElement)),this.triggerEvent("drop",i)}_canDrop(e){return e&&(!this.accept||this.accept(e))}_setupAccept(){return this.option.accept?(typeof this.option.accept=="string"?this.accept=e=>e.classList.contains(this.option.accept)||e.matches(this.option.accept):this.accept=this.option.accept,this):this}_ui(e){return{draggable:e.el,...e.ui()}}}class zn{static init(e){return e.ddElement||(e.ddElement=new zn(e)),e.ddElement}constructor(e){this.el=e}on(e,i){return this.ddDraggable&&["drag","dragstart","dragstop"].indexOf(e)>-1?this.ddDraggable.on(e,i):this.ddDroppable&&["drop","dropover","dropout"].indexOf(e)>-1?this.ddDroppable.on(e,i):this.ddResizable&&["resizestart","resize","resizestop"].indexOf(e)>-1&&this.ddResizable.on(e,i),this}off(e){return this.ddDraggable&&["drag","dragstart","dragstop"].indexOf(e)>-1?this.ddDraggable.off(e):this.ddDroppable&&["drop","dropover","dropout"].indexOf(e)>-1?this.ddDroppable.off(e):this.ddResizable&&["resizestart","resize","resizestop"].indexOf(e)>-1&&this.ddResizable.off(e),this}setupDraggable(e){return this.ddDraggable?this.ddDraggable.updateOption(e):this.ddDraggable=new Wi(this.el,e),this}cleanDraggable(){return this.ddDraggable&&(this.ddDraggable.destroy(),delete this.ddDraggable),this}setupResizable(e){return this.ddResizable?this.ddResizable.updateOption(e):this.ddResizable=new Hi(this.el,e),this}cleanResizable(){return this.ddResizable&&(this.ddResizable.destroy(),delete this.ddResizable),this}setupDroppable(e){return this.ddDroppable?this.ddDroppable.updateOption(e):this.ddDroppable=new Ku(this.el,e),this}cleanDroppable(){return this.ddDroppable&&(this.ddDroppable.destroy(),delete this.ddDroppable),this}}class Gu{resizable(e,i,s,n){return this._getDDElements(e,i).forEach(r=>{if(i==="disable"||i==="enable")r.ddResizable&&r.ddResizable[i]();else if(i==="destroy")r.ddResizable&&r.cleanResizable();else if(i==="option")r.setupResizable({[s]:n});else{const l=r.el.gridstackNode.grid;let u=r.el.getAttribute("gs-resize-handles")||l.opts.resizable.handles||"e,s,se";u==="all"&&(u="n,e,s,w,se,sw,ne,nw");const d=!l.opts.alwaysShowResizeHandle;r.setupResizable({...l.opts.resizable,handles:u,autoHide:d,start:i.start,stop:i.stop,resize:i.resize,rtl:i.rtl})}}),this}draggable(e,i,s,n){return this._getDDElements(e,i).forEach(r=>{if(i==="disable"||i==="enable")r.ddDraggable&&r.ddDraggable[i]();else if(i==="destroy")r.ddDraggable&&r.cleanDraggable();else if(i==="option")r.setupDraggable({[s]:n});else{const o=r.el.gridstackNode.grid;r.setupDraggable({...o.opts.draggable,start:i.start,stop:i.stop,drag:i.drag,rtl:i.rtl})}}),this}dragIn(e,i){return this._getDDElements(e).forEach(s=>s.setupDraggable(i)),this}droppable(e,i,s,n){return typeof i.accept=="function"&&!i._accept&&(i._accept=i.accept,i.accept=r=>i._accept(r)),this._getDDElements(e,i).forEach(r=>{i==="disable"||i==="enable"?r.ddDroppable&&r.ddDroppable[i]():i==="destroy"?r.ddDroppable&&r.cleanDroppable():i==="option"?r.setupDroppable({[s]:n}):r.setupDroppable(i)}),this}isDroppable(e){return!!(e?.ddElement?.ddDroppable&&!e.ddElement.ddDroppable.disabled)}isDraggable(e){return!!(e?.ddElement?.ddDraggable&&!e.ddElement.ddDraggable.disabled)}isResizable(e){return!!(e?.ddElement?.ddResizable&&!e.ddElement.ddResizable.disabled)}on(e,i,s){return this._getDDElements(e).forEach(n=>n.on(i,r=>{s(r,ce.dragElement?ce.dragElement.el:r.target,ce.dragElement?ce.dragElement.helper:null)})),this}off(e,i){return this._getDDElements(e).forEach(s=>s.off(i)),this}_getDDElements(e,i){const s=e.gridstack||i!=="destroy"&&i!=="disable",n=M.getElements(e);return n.length?n.map(o=>o.ddElement||(s?zn.init(o):null)).filter(o=>o):[]}}const tt=new Gu;class le{static init(e={},i=".grid-stack"){if(typeof document>"u")return null;const s=le.getGridElement(i);return s?(s.gridstack||(s.gridstack=new le(s,M.cloneDeep(e))),s.gridstack):(console.error(typeof i=="string"?'GridStack.initAll() no grid was found with selector "'+i+`" - element missing or wrong selector ? Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the default selector.`:"GridStack.init() no grid element was passed."),null)}static initAll(e={},i=".grid-stack"){const s=[];return typeof document>"u"||(le.getGridElements(i).forEach(n=>{n.gridstack||(n.gridstack=new le(n,M.cloneDeep(e))),s.push(n.gridstack)}),s.length===0&&console.error('GridStack.initAll() no grid was found with selector "'+i+`" - element missing or wrong selector ? -Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the default selector.`)),s}static addGrid(e,i={}){if(!e)return null;let s=e;if(s.gridstack){const o=s.gridstack;return i&&(o.opts={...o.opts,...i}),i.children!==void 0&&o.load(i.children),o}return(!e.classList.contains("grid-stack")||le.addRemoveCB)&&(le.addRemoveCB?s=le.addRemoveCB(e,i,!0,!0):s=M.createDiv(["grid-stack",i.class],e)),le.init(i,s)}static registerEngine(e){le.engineClass=e}get placeholder(){if(!this._placeholder){this._placeholder=M.createDiv([this.opts.placeholderClass,lt.itemClass,this.opts.itemClass]);const e=M.createDiv(["placeholder-content"],this._placeholder);this.opts.placeholderText&&(e.textContent=this.opts.placeholderText)}return this._placeholder}constructor(e,i={}){this.el=e,this.opts=i,this.animationDelay=310,this._gsEventHandler={},this._extraDragRow=0,this.dragTransform={xScale:1,yScale:1,xOffset:0,yOffset:0},e.gridstack=this,this.opts=i=i||{},e.classList.contains("grid-stack")||this.el.classList.add("grid-stack"),i.row&&(i.minRow=i.maxRow=i.row,delete i.row);const s=M.toNumber(e.getAttribute("gs-row"));i.column==="auto"&&delete i.column,i.alwaysShowResizeHandle!==void 0&&(i._alwaysShowResizeHandle=i.alwaysShowResizeHandle);const n=i.columnOpts;if(n){const d=n.breakpoints;!n.columnWidth&&!d?.length?delete i.columnOpts:(n.columnMax=n.columnMax||12,d?.length>1&&d.sort((c,f)=>(f.w||0)-(c.w||0)))}const r={...M.cloneDeep(lt),column:M.toNumber(e.getAttribute("gs-column"))||lt.column,minRow:s||M.toNumber(e.getAttribute("gs-min-row"))||lt.minRow,maxRow:s||M.toNumber(e.getAttribute("gs-max-row"))||lt.maxRow,staticGrid:M.toBool(e.getAttribute("gs-static"))||lt.staticGrid,sizeToContent:M.toBool(e.getAttribute("gs-size-to-content"))||void 0,draggable:{handle:(i.handleClass?"."+i.handleClass:i.handle?i.handle:"")||lt.draggable.handle},removableOptions:{accept:i.itemClass||lt.removableOptions.accept,decline:lt.removableOptions.decline}};e.getAttribute("gs-animate")&&(r.animate=M.toBool(e.getAttribute("gs-animate"))),i=M.defaults(i,r),this._initMargin(),this.checkDynamicColumn(),this._updateColumnVar(i),i.rtl==="auto"&&(i.rtl=e.style.direction==="rtl"),i.rtl&&this.el.classList.add("grid-stack-rtl");const l=this.el.closest("."+lt.itemClass)?.gridstackNode;if(l&&(l.subGrid=this,this.parentGridNode=l,this.el.classList.add("grid-stack-nested"),l.el.classList.add("grid-stack-sub-grid")),this._isAutoCellHeight=i.cellHeight==="auto",this._isAutoCellHeight||i.cellHeight==="initial")this.cellHeight(void 0);else{typeof i.cellHeight=="number"&&i.cellHeightUnit&&i.cellHeightUnit!==lt.cellHeightUnit&&(i.cellHeight=i.cellHeight+i.cellHeightUnit,delete i.cellHeightUnit);const d=i.cellHeight;delete i.cellHeight,this.cellHeight(d)}i.alwaysShowResizeHandle==="mobile"&&(i.alwaysShowResizeHandle=yt),this._setStaticClass();const u=i.engineClass||le.engineClass||Ht;if(this.engine=new u({column:this.getColumn(),float:i.float,maxRow:i.maxRow,onChange:d=>{d.forEach(c=>{const f=c.el;f&&(c._removeDOM?(f&&f.remove(),delete c._removeDOM):this._writePosAttr(f,c))}),this._updateContainerHeight()}}),i.auto&&(this.batchUpdate(),this.engine._loading=!0,this.getGridItems().forEach(d=>this._prepareElement(d)),delete this.engine._loading,this.batchUpdate(!1)),i.children){const d=i.children;delete i.children,d.length&&this.load(d)}this.setAnimation(),i.subGridDynamic&&!ue.pauseDrag&&(ue.pauseDrag=!0),i.draggable?.pause!==void 0&&(ue.pauseDrag=i.draggable.pause),this._setupRemoveDrop(),this._setupAcceptWidget(),this._updateResizeEvent()}_updateColumnVar(e=this.opts){this.el.classList.add("gs-"+e.column),typeof e.column=="number"&&this.el.style.setProperty("--gs-column-width",`${100/e.column}%`)}addWidget(e){if(!e)return;if(typeof e=="string"){console.error("V11: GridStack.addWidget() does not support string anymore. see #2736");return}if(e.ELEMENT_NODE)return console.error("V11: GridStack.addWidget() does not support HTMLElement anymore. use makeWidget()"),this.makeWidget(e);let i,s=e;if(s.grid=this,s.el?i=s.el:le.addRemoveCB?i=le.addRemoveCB(this.el,e,!0,!1):i=this.createWidgetDivs(s),!i)return;if(s=i.gridstackNode,s&&i.parentElement===this.el&&this.engine.nodes.find(r=>r._id===s._id))return i;const n=this._readAttr(i);return M.defaults(e,n),this.engine.prepareNode(e),this.el.appendChild(i),this.makeWidget(i,e),i}createWidgetDivs(e){const i=M.createDiv(["grid-stack-item",this.opts.itemClass]),s=M.createDiv(["grid-stack-item-content"],i);return M.lazyLoad(e)?e.visibleObservable||(e.visibleObservable=new IntersectionObserver(([n])=>{n.isIntersecting&&(e.visibleObservable?.disconnect(),delete e.visibleObservable,le.renderCB(s,e),e.grid?.prepareDragDrop(e.el))}),window.setTimeout(()=>e.visibleObservable?.observe(i))):le.renderCB(s,e),i}makeSubGrid(e,i,s,n=!0){let r=e.gridstackNode;if(r||(r=this.makeWidget(e).gridstackNode),r.subGrid?.el)return r.subGrid;let o,l=this;for(;l&&!o;)o=l.opts?.subGridOpts,l=l.parentGridNode?.grid;i=M.cloneDeep({...this.opts,id:void 0,children:void 0,column:"auto",columnOpts:void 0,layout:"list",subGridOpts:void 0,...o||{},...i||r.subGridOpts||{}}),r.subGridOpts=i;let u;i.column==="auto"&&(u=!0,i.column=Math.max(r.w||1,s?.w||1),delete i.columnOpts);let d=r.el.querySelector(".grid-stack-item-content"),c,f;if(n&&(this._removeDD(r.el),f={...r,x:0,y:0},M.removeInternalForSave(f),delete f.subGridOpts,r.content&&(f.content=r.content,delete r.content),le.addRemoveCB?c=le.addRemoveCB(this.el,f,!0,!1):(c=M.createDiv(["grid-stack-item"]),c.appendChild(d),d=M.createDiv(["grid-stack-item-content"],r.el)),this.prepareDragDrop(r.el)),s){const S=u?i.column:r.w,A=r.h+s.h,N=r.el.style;N.transition="none",this.update(r.el,{w:S,h:A}),setTimeout(()=>N.transition=null)}const y=r.subGrid=le.addGrid(d,i);return s?._moving&&(y._isTemp=!0),u&&(y._autoColumn=!0),n&&y.makeWidget(c,f),s&&(s._moving?window.setTimeout(()=>M.simulateMouseEvent(s._event,"mouseenter",y.el),0):y.makeWidget(r.el,r)),this.resizeToContentCheck(!1,r),y}removeAsSubGrid(e){const i=this.parentGridNode?.grid;i&&(i.batchUpdate(),i.removeWidget(this.parentGridNode.el,!0,!0),this.engine.nodes.forEach(s=>{s.x+=this.parentGridNode.x,s.y+=this.parentGridNode.y,i.makeWidget(s.el,s)}),i.batchUpdate(!1),this.parentGridNode&&delete this.parentGridNode.subGrid,delete this.parentGridNode,e&&window.setTimeout(()=>M.simulateMouseEvent(e._event,"mouseenter",i.el),0))}save(e=!0,i=!1,s=le.saveCB,n){const r=this.engine.save(e,s,n);if(r.forEach(o=>{if(e&&o.el&&!o.subGrid&&!s){const l=o.el.querySelector(".grid-stack-item-content");o.content=l?.innerHTML,o.content||delete o.content}else if(!e&&!s&&delete o.content,o.subGrid?.el){const l=o.w||o.subGrid.getColumn(),u=o.subGrid.save(e,i,s,l);o.subGridOpts=i?u:{children:u},delete o.subGrid}delete o.el}),i){const o=M.cloneDeep(this.opts);o.marginBottom===o.marginTop&&o.marginRight===o.marginLeft&&o.marginTop===o.marginRight&&(o.margin=o.marginTop,delete o.marginTop,delete o.marginRight,delete o.marginBottom,delete o.marginLeft),o.rtl===(this.el.style.direction==="rtl")&&(o.rtl="auto"),this._isAutoCellHeight&&(o.cellHeight="auto"),this._autoColumn&&(o.column="auto");const l=o._alwaysShowResizeHandle;return delete o._alwaysShowResizeHandle,l!==void 0?o.alwaysShowResizeHandle=l:delete o.alwaysShowResizeHandle,M.removeInternalAndSame(o,lt),o.children=r,o}return r}load(e,i=le.addRemoveCB||!0){e.forEach(c=>{c.w=c.w||c.minW||1,c.h=c.h||c.minH||1}),e=M.sort(e),this.engine.skipCacheUpdate=this._ignoreLayoutsNodeChange=!0;let s=0;e.forEach(c=>{s=Math.max(s,(c.x||0)+c.w)}),s>this.engine.defaultColumn&&(this.engine.defaultColumn=s);const n=this.getColumn();s>n&&(this.engine.nodes.length===0&&this.responseLayout?(this.engine.nodes=e,this.engine.columnChanged(s,n,this.responseLayout),e=this.engine.nodes,this.engine.nodes=[],delete this.responseLayout):this.engine.cacheLayout(e,s,!0));const r=le.addRemoveCB;typeof i=="function"&&(le.addRemoveCB=i);const o=[];this.batchUpdate();const l=!this.engine.nodes.length,u=l&&this.opts.animate;u&&this.setAnimation(!1),!l&&i&&[...this.engine.nodes].forEach(f=>{if(!f.id)return;M.find(e,f.id)||(le.addRemoveCB&&le.addRemoveCB(this.el,f,!1,!1),o.push(f),this.removeWidget(f.el,!0,!1))}),this.engine._loading=!0;const d=[];return this.engine.nodes=this.engine.nodes.filter(c=>M.find(e,c.id)?(d.push(c),!1):!0),e.forEach(c=>{const f=M.find(d,c.id);if(f){if(M.shouldSizeToContent(f)&&(c.h=f.h),this.engine.nodeBoundFix(c),(c.autoPosition||c.x===void 0||c.y===void 0)&&(c.w=c.w||f.w,c.h=c.h||f.h,this.engine.findEmptyPosition(c)),this.engine.nodes.push(f),M.samePos(f,c)&&this.engine.nodes.length>1&&(this.moveNode(f,{...c,forceCollide:!0}),M.copyPos(c,f)),this.update(f.el,c),c.subGridOpts?.children){const y=f.el.querySelector(".grid-stack");y&&y.gridstack&&y.gridstack.load(c.subGridOpts.children)}}else i&&this.addWidget(c)}),delete this.engine._loading,this.engine.removedNodes=o,this.batchUpdate(!1),delete this._ignoreLayoutsNodeChange,delete this.engine.skipCacheUpdate,r?le.addRemoveCB=r:delete le.addRemoveCB,u&&this.setAnimation(!0,!0),this}batchUpdate(e=!0){return this.engine.batchUpdate(e),e||(this._updateContainerHeight(),this._triggerRemoveEvent(),this._triggerAddEvent(),this._triggerChangeEvent()),this}getCellHeight(e=!1){if(this.opts.cellHeight&&this.opts.cellHeight!=="auto"&&(!e||!this.opts.cellHeightUnit||this.opts.cellHeightUnit==="px"))return this.opts.cellHeight;if(this.opts.cellHeightUnit==="rem")return this.opts.cellHeight*parseFloat(getComputedStyle(document.documentElement).fontSize);if(this.opts.cellHeightUnit==="em")return this.opts.cellHeight*parseFloat(getComputedStyle(this.el).fontSize);if(this.opts.cellHeightUnit==="cm")return this.opts.cellHeight*(96/2.54);if(this.opts.cellHeightUnit==="mm")return this.opts.cellHeight*(96/2.54)/10;const i=this.el.querySelector("."+this.opts.itemClass);if(i){const n=M.toNumber(i.getAttribute("gs-h"))||1;return Math.round(i.offsetHeight/n)}const s=parseInt(this.el.getAttribute("gs-current-row"));return s?Math.round(this.el.getBoundingClientRect().height/s):this.opts.cellHeight}cellHeight(e){if(e!==void 0&&this._isAutoCellHeight!==(e==="auto")&&(this._isAutoCellHeight=e==="auto",this._updateResizeEvent()),(e==="initial"||e==="auto")&&(e=void 0),e===void 0){const s=-this.opts.marginRight-this.opts.marginLeft+this.opts.marginTop+this.opts.marginBottom;e=this.cellWidth()+s}const i=M.parseHeight(e);return this.opts.cellHeightUnit===i.unit&&this.opts.cellHeight===i.h?this:(this.opts.cellHeightUnit=i.unit,this.opts.cellHeight=i.h,this.el.style.setProperty("--gs-cell-height",`${this.opts.cellHeight}${this.opts.cellHeightUnit}`),this._updateContainerHeight(),this.resizeToContentCheck(),this)}cellWidth(){return this._widthOrContainer()/this.getColumn()}_widthOrContainer(e=!1){return e&&this.opts.columnOpts?.breakpointForWindow?window.innerWidth:this.el.clientWidth||this.el.parentElement.clientWidth||window.innerWidth}checkDynamicColumn(){const e=this.opts.columnOpts;if(!e||!e.columnWidth&&!e.breakpoints?.length)return!1;const i=this.getColumn();let s=i;const n=this._widthOrContainer(!0);if(e.columnWidth)s=Math.min(Math.round(n/e.columnWidth)||1,e.columnMax);else{s=e.columnMax;let r=0;for(;ro.c===s);return this.column(s,r?.layout||e.layout),!0}return!1}compact(e="compact",i=!0){return this.engine.compact(e,i),this._triggerChangeEvent(),this}column(e,i="moveScale"){if(!e||e<1||this.opts.column===e)return this;const s=this.getColumn();return this.opts.column=e,this.engine?(this.engine.column=e,this.el.classList.remove("gs-"+s),this._updateColumnVar(),this.engine.columnChanged(s,e,i),this._isAutoCellHeight&&this.cellHeight(),this.resizeToContentCheck(!0),this._ignoreLayoutsNodeChange=!0,this._triggerChangeEvent(),delete this._ignoreLayoutsNodeChange,this):(this.responseLayout=i,this)}getColumn(){return this.opts.column}getGridItems(){return Array.from(this.el.children).filter(e=>e.matches("."+this.opts.itemClass)&&!e.matches("."+this.opts.placeholderClass))}isIgnoreChangeCB(){return this._ignoreLayoutsNodeChange}destroy(e=!0){if(this.el)return this.offAll(),this._updateResizeEvent(!0),this.setStatic(!0,!1),this.setAnimation(!1),e?this.el.parentNode.removeChild(this.el):(this.removeAll(e),this.el.removeAttribute("gs-current-row")),this.parentGridNode&&delete this.parentGridNode.subGrid,delete this.parentGridNode,delete this.opts,delete this._placeholder?.gridstackNode,delete this._placeholder,delete this.engine,delete this.el.gridstack,delete this.el,this}float(e){return this.opts.float!==e&&(this.opts.float=this.engine.float=e,this._triggerChangeEvent()),this}getFloat(){return this.engine.float}getCellFromPixel(e,i=!1){const s=this.el.getBoundingClientRect();let n;i?n={top:s.top+document.documentElement.scrollTop,left:s.left}:n={top:this.el.offsetTop,left:this.el.offsetLeft};const r=e.left-n.left,o=e.top-n.top,l=s.width/this.getColumn(),u=s.height/parseInt(this.el.getAttribute("gs-current-row"));return{x:Math.floor(r/l),y:Math.floor(o/u)}}getRow(){return Math.max(this.engine.getRow(),this.opts.minRow||0)}isAreaEmpty(e,i,s,n){return this.engine.isAreaEmpty(e,i,s,n)}makeWidget(e,i){const s=le.getElement(e);if(!s||s.gridstackNode)return s;s.parentElement||this.el.appendChild(s),this._prepareElement(s,!0,i);const n=s.gridstackNode;this._updateContainerHeight(),n.subGridOpts&&this.makeSubGrid(s,n.subGridOpts,void 0,!1);let r;return this.opts.column===1&&!this._ignoreLayoutsNodeChange&&(r=this._ignoreLayoutsNodeChange=!0),this._triggerAddEvent(),this._triggerChangeEvent(),r&&delete this._ignoreLayoutsNodeChange,s}on(e,i){return e.indexOf(" ")!==-1?(e.split(" ").forEach(n=>this.on(n,i)),this):(e==="change"||e==="added"||e==="removed"||e==="enable"||e==="disable"?(e==="enable"||e==="disable"?this._gsEventHandler[e]=n=>i(n):this._gsEventHandler[e]=n=>{n.detail&&i(n,n.detail)},this.el.addEventListener(e,this._gsEventHandler[e])):e==="drag"||e==="dragstart"||e==="dragstop"||e==="resizestart"||e==="resize"||e==="resizestop"||e==="dropped"||e==="resizecontent"?this._gsEventHandler[e]=i:console.error("GridStack.on("+e+") event not supported"),this)}off(e){return e.indexOf(" ")!==-1?(e.split(" ").forEach(s=>this.off(s)),this):((e==="change"||e==="added"||e==="removed"||e==="enable"||e==="disable")&&this._gsEventHandler[e]&&this.el.removeEventListener(e,this._gsEventHandler[e]),delete this._gsEventHandler[e],this)}offAll(){return Object.keys(this._gsEventHandler).forEach(e=>this.off(e)),this}removeWidget(e,i=!0,s=!0){return e?(le.getElements(e).forEach(n=>{if(n.parentElement&&n.parentElement!==this.el)return;let r=n.gridstackNode;r||(r=this.engine.nodes.find(o=>n===o.el)),r&&(i&&le.addRemoveCB&&le.addRemoveCB(this.el,r,!1,!1),delete n.gridstackNode,this._removeDD(n),this.engine.removeNode(r,i,s),i&&n.parentElement&&n.remove())}),s&&(this._triggerRemoveEvent(),this._triggerChangeEvent()),this):(console.error("Error: GridStack.removeWidget(undefined) called"),this)}removeAll(e=!0,i=!0){return this.engine.nodes.forEach(s=>{e&&le.addRemoveCB&&le.addRemoveCB(this.el,s,!1,!1),delete s.el.gridstackNode,this.opts.staticGrid||this._removeDD(s.el)}),this.engine.removeAll(e,i),i&&this._triggerRemoveEvent(),this}setAnimation(e=this.opts.animate,i){return i?setTimeout(()=>{this.opts&&this.setAnimation(e)}):e?this.el.classList.add("grid-stack-animate"):this.el.classList.remove("grid-stack-animate"),this.opts.animate=e,this}hasAnimationCSS(){return this.el.classList.contains("grid-stack-animate")}setStatic(e,i=!0,s=!0){return!!this.opts.staticGrid===e?this:(e?this.opts.staticGrid=!0:delete this.opts.staticGrid,this._setupRemoveDrop(),this._setupAcceptWidget(),this.engine.nodes.forEach(n=>{this.prepareDragDrop(n.el),n.subGrid&&s&&n.subGrid.setStatic(e,i,s)}),i&&this._setStaticClass(),this)}updateOptions(e){const i=this.opts;if(e===i)return this;if(e.acceptWidgets!==void 0&&(i.acceptWidgets=e.acceptWidgets,this._setupAcceptWidget()),e.animate!==void 0&&this.setAnimation(e.animate),e.cellHeight&&this.cellHeight(e.cellHeight),e.class!==void 0&&e.class!==i.class&&(i.class&&this.el.classList.remove(i.class),e.class&&this.el.classList.add(e.class)),e.columnOpts){const s=!!this.opts.columnOpts;this.opts.columnOpts=e.columnOpts,s!==!!this.opts.columnOpts&&this._updateResizeEvent(),this.checkDynamicColumn()}else e.columnOpts===null&&this.opts.columnOpts?(delete this.opts.columnOpts,this._updateResizeEvent()):typeof e.column=="number"&&this.column(e.column);return e.margin!==void 0&&this.margin(e.margin),e.staticGrid!==void 0&&this.setStatic(e.staticGrid),e.disableDrag!==void 0&&!e.staticGrid&&this.enableMove(!e.disableDrag),e.disableResize!==void 0&&!e.staticGrid&&this.enableResize(!e.disableResize),e.float!==void 0&&this.float(e.float),e.row!==void 0?(i.minRow=i.maxRow=i.row=e.row,this._updateContainerHeight()):(e.minRow!==void 0&&(i.minRow=e.minRow,this._updateContainerHeight()),e.maxRow!==void 0&&(i.maxRow=this.engine.maxRow=e.maxRow)),e.lazyLoad!==void 0&&(i.lazyLoad=e.lazyLoad),e.children?.length&&this.load(e.children),this}update(e,i){return le.getElements(e).forEach(s=>{const n=s?.gridstackNode;if(!n)return;const r={...M.copyPos({},n),...M.cloneDeep(i)};this.engine.nodeBoundFix(r),delete r.autoPosition;const o=["x","y","w","h"];let l;if(o.some(c=>r[c]!==void 0&&r[c]!==n[c])&&(l={},o.forEach(c=>{l[c]=r[c]!==void 0?r[c]:n[c],delete r[c]})),!l&&(r.minW||r.minH||r.maxW||r.maxH)&&(l={}),r.content!==void 0){const c=s.querySelector(".grid-stack-item-content");c&&c.textContent!==r.content&&(n.content=r.content,le.renderCB(c,r),n.subGrid?.el&&(c.appendChild(n.subGrid.el),n.subGrid._updateContainerHeight())),delete r.content}let u=!1,d=!1;for(const c in r)c[0]!=="_"&&n[c]!==r[c]&&(n[c]=r[c],u=!0,d=d||!this.opts.staticGrid&&(c==="noResize"||c==="noMove"||c==="locked"));if(M.sanitizeMinMax(n),l){const c=l.w!==void 0&&l.w!==n.w;this.moveNode(n,l),c&&n.subGrid?n.subGrid.onResize(this.hasAnimationCSS()?n.w:void 0):this.resizeToContentCheck(c,n),delete n._orig}(l||u)&&this._writeAttr(s,n),d&&this.prepareDragDrop(n.el),le.updateCB&&le.updateCB(n)}),this}moveNode(e,i){const s=e._updating;s||this.engine.cleanNodes().beginUpdate(e),this.engine.moveNode(e,i),this._updateContainerHeight(),s||(this._triggerChangeEvent(),this.engine.endUpdate())}resizeToContent(e){if(!e||(e.classList.remove("size-to-content-max"),!e.clientHeight))return;const i=e.gridstackNode;if(!i)return;const s=i.grid;if(!s||e.parentElement!==s.el)return;const n=s.getCellHeight(!0);if(!n)return;let r=i.h?i.h*n:e.clientHeight,o;if(i.resizeToContentParent&&(o=e.querySelector(i.resizeToContentParent)),o||(o=e.querySelector(le.resizeToContentParent)),!o)return;const l=e.clientHeight-o.clientHeight,u=i.h?i.h*n-l:o.clientHeight;let d;if(i.subGrid){d=i.subGrid.getRow()*i.subGrid.getCellHeight(!0);const y=i.subGrid.el.getBoundingClientRect(),S=e.getBoundingClientRect();d+=y.top-S.top}else{if(i.subGridOpts?.children?.length)return;{const y=o.firstElementChild;if(!y){console.error(`Error: GridStack.resizeToContent() widget id:${i.id} '${le.resizeToContentParent}'.firstElementChild is null, make sure to have a div like container. Skipping sizing.`);return}d=y.getBoundingClientRect().height||u}}if(u===d)return;r+=d-u;let c=Math.ceil(r/n);const f=Number.isInteger(i.sizeToContent)?i.sizeToContent:0;f&&c>f&&(c=f,e.classList.add("size-to-content-max")),i.minH&&ci.maxH&&(c=i.maxH),c!==i.h&&(s._ignoreLayoutsNodeChange=!0,s.moveNode(i,{h:c}),delete s._ignoreLayoutsNodeChange)}resizeToContentCBCheck(e){le.resizeToContentCB?le.resizeToContentCB(e):this.resizeToContent(e)}rotate(e,i){return le.getElements(e).forEach(s=>{const n=s.gridstackNode;if(!M.canBeRotated(n))return;const r={w:n.h,h:n.w,minH:n.minW,minW:n.minH,maxH:n.maxW,maxW:n.maxH};if(i){const l=i.left>0?Math.floor(i.left/this.cellWidth()):0,u=i.top>0?Math.floor(i.top/this.opts.cellHeight):0;r.x=n.x+l-(n.h-(u+1)),r.y=n.y+u-l}Object.keys(r).forEach(l=>{r[l]===void 0&&delete r[l]});const o=n._orig;this.update(s,r),n._orig=o}),this}margin(e){if(!(typeof e=="string"&&e.split(" ").length>1)){const s=M.parseHeight(e);if(this.opts.marginUnit===s.unit&&this.opts.margin===s.h)return}return this.opts.margin=e,this.opts.marginTop=this.opts.marginBottom=this.opts.marginLeft=this.opts.marginRight=void 0,this._initMargin(),this}getMargin(){return this.opts.margin}willItFit(e){return this.engine.willItFit(e)}_triggerChangeEvent(){if(this.engine.batchMode)return this;const e=this.engine.getDirtyNodes(!0);return e&&e.length&&(this._ignoreLayoutsNodeChange||this.engine.layoutsNodesChange(e),this._triggerEvent("change",e)),this.engine.saveInitial(),this}_triggerAddEvent(){if(this.engine.batchMode)return this;if(this.engine.addedNodes?.length){this._ignoreLayoutsNodeChange||this.engine.layoutsNodesChange(this.engine.addedNodes),this.engine.addedNodes.forEach(i=>{delete i._dirty});const e=[...this.engine.addedNodes];this.engine.addedNodes=[],this._triggerEvent("added",e)}return this}_triggerRemoveEvent(){if(this.engine.batchMode)return this;if(this.engine.removedNodes?.length){const e=[...this.engine.removedNodes];this.engine.removedNodes=[],this._triggerEvent("removed",e)}return this}_triggerEvent(e,i){const s=i?new CustomEvent(e,{bubbles:!1,detail:i}):new Event(e);let n=this;for(;n.parentGridNode;)n=n.parentGridNode.grid;return n.el.dispatchEvent(s),this}_updateContainerHeight(){if(!this.engine||this.engine.batchMode)return this;const e=this.parentGridNode;let i=this.getRow()+this._extraDragRow;const s=this.opts.cellHeight,n=this.opts.cellHeightUnit;if(!s)return this;if(!e&&!this.opts.minRow){const r=M.parseHeight(getComputedStyle(this.el).minHeight);if(r.h>0&&r.unit===n){const o=Math.floor(r.h/s);i1?`calc(${i.w} * var(--gs-column-width))`:null,e.style.height=i.h>1?`calc(${i.h} * var(--gs-cell-height))`:null}return e.setAttribute("gs-x",String(i.x)),e.setAttribute("gs-y",String(i.y)),i.w>1?e.setAttribute("gs-w",String(i.w)):e.removeAttribute("gs-w"),i.h>1?e.setAttribute("gs-h",String(i.h)):e.removeAttribute("gs-h"),this}_writeAttr(e,i){if(!i)return this;this._writePosAttr(e,i);const s={noResize:"gs-no-resize",noMove:"gs-no-move",locked:"gs-locked",id:"gs-id",sizeToContent:"gs-size-to-content"};for(const n in s)i[n]?e.setAttribute(s[n],String(i[n])):e.removeAttribute(s[n]);return this}_readAttr(e,i=!0){const s={};s.x=M.toNumber(e.getAttribute("gs-x")),s.y=M.toNumber(e.getAttribute("gs-y")),s.w=M.toNumber(e.getAttribute("gs-w")),s.h=M.toNumber(e.getAttribute("gs-h")),s.autoPosition=M.toBool(e.getAttribute("gs-auto-position")),s.noResize=M.toBool(e.getAttribute("gs-no-resize")),s.noMove=M.toBool(e.getAttribute("gs-no-move")),s.locked=M.toBool(e.getAttribute("gs-locked"));const n=e.getAttribute("gs-size-to-content");n&&(n==="true"||n==="false"?s.sizeToContent=M.toBool(n):s.sizeToContent=parseInt(n,10)),s.id=e.getAttribute("gs-id"),s.maxW=M.toNumber(e.getAttribute("gs-max-w")),s.minW=M.toNumber(e.getAttribute("gs-min-w")),s.maxH=M.toNumber(e.getAttribute("gs-max-h")),s.minH=M.toNumber(e.getAttribute("gs-min-h")),i&&(s.w===1&&e.removeAttribute("gs-w"),s.h===1&&e.removeAttribute("gs-h"),s.maxW&&e.removeAttribute("gs-max-w"),s.minW&&e.removeAttribute("gs-min-w"),s.maxH&&e.removeAttribute("gs-max-h"),s.minH&&e.removeAttribute("gs-min-h"));for(const r in s){if(!s.hasOwnProperty(r))return;!s[r]&&s[r]!==0&&r!=="sizeToContent"&&delete s[r]}return s}_setStaticClass(){const e=["grid-stack-static"];return this.opts.staticGrid?(this.el.classList.add(...e),this.el.setAttribute("gs-static","true")):(this.el.classList.remove(...e),this.el.removeAttribute("gs-static")),this}onResize(e=this.el?.clientWidth){if(!e||this.prevWidth===e)return;this.prevWidth=e,this.batchUpdate();let i=!1;return this._autoColumn&&this.parentGridNode?this.opts.column!==this.parentGridNode.w&&(this.column(this.parentGridNode.w,this.opts.layout||"list"),i=!0):i=this.checkDynamicColumn(),this._isAutoCellHeight&&this.cellHeight(),this.engine.nodes.forEach(s=>{s.subGrid&&s.subGrid.onResize()}),this._skipInitialResize||this.resizeToContentCheck(i),delete this._skipInitialResize,this.batchUpdate(!1),this}resizeToContentCheck(e=!1,i=void 0){if(this.engine){if(e&&this.hasAnimationCSS())return setTimeout(()=>this.resizeToContentCheck(!1,i),this.animationDelay);if(i)M.shouldSizeToContent(i)&&this.resizeToContentCBCheck(i.el);else if(this.engine.nodes.some(s=>M.shouldSizeToContent(s))){const s=[...this.engine.nodes];this.batchUpdate(),s.forEach(n=>{M.shouldSizeToContent(n)&&this.resizeToContentCBCheck(n.el)}),this._ignoreLayoutsNodeChange=!0,this.batchUpdate(!1),this._ignoreLayoutsNodeChange=!1}this._gsEventHandler.resizecontent&&this._gsEventHandler.resizecontent(null,i?[i]:this.engine.nodes)}}_updateResizeEvent(e=!1){const i=!this.parentGridNode&&(this._isAutoCellHeight||this.opts.sizeToContent||this.opts.columnOpts||this.engine.nodes.find(s=>s.sizeToContent));return!e&&i&&!this.resizeObserver?(this._sizeThrottle=M.throttle(()=>this.onResize(),this.opts.cellHeightThrottle),this.resizeObserver=new ResizeObserver(()=>this._sizeThrottle()),this.resizeObserver.observe(this.el),this._skipInitialResize=!0):(e||!i)&&this.resizeObserver&&(this.resizeObserver.disconnect(),delete this.resizeObserver,delete this._sizeThrottle),this}static getElement(e=".grid-stack-item"){return M.getElement(e)}static getElements(e=".grid-stack-item"){return M.getElements(e)}static getGridElement(e){return le.getElement(e)}static getGridElements(e){return M.getElements(e)}_initMargin(){let e,i=0,s=[];typeof this.opts.margin=="string"&&(s=this.opts.margin.split(" ")),s.length===2?(this.opts.marginTop=this.opts.marginBottom=s[0],this.opts.marginLeft=this.opts.marginRight=s[1]):s.length===4?(this.opts.marginTop=s[0],this.opts.marginRight=s[1],this.opts.marginBottom=s[2],this.opts.marginLeft=s[3]):(e=M.parseHeight(this.opts.margin),this.opts.marginUnit=e.unit,i=this.opts.margin=e.h),["marginTop","marginRight","marginBottom","marginLeft"].forEach(o=>{this.opts[o]===void 0?this.opts[o]=i:(e=M.parseHeight(this.opts[o]),this.opts[o]=e.h,delete this.opts.margin)}),this.opts.marginUnit=e.unit,this.opts.marginTop===this.opts.marginBottom&&this.opts.marginLeft===this.opts.marginRight&&this.opts.marginTop===this.opts.marginRight&&(this.opts.margin=this.opts.marginTop);const r=this.el.style;return r.setProperty("--gs-item-margin-top",`${this.opts.marginTop}${this.opts.marginUnit}`),r.setProperty("--gs-item-margin-bottom",`${this.opts.marginBottom}${this.opts.marginUnit}`),r.setProperty("--gs-item-margin-right",`${this.opts.marginRight}${this.opts.marginUnit}`),r.setProperty("--gs-item-margin-left",`${this.opts.marginLeft}${this.opts.marginUnit}`),this}static getDD(){return tt}static setupDragIn(e,i,s,n=document){i?.pause!==void 0&&(ue.pauseDrag=i.pause),i={appendTo:"body",helper:"clone",...i||{}},(typeof e=="string"?M.getElements(e,n):e).forEach((o,l)=>{tt.isDraggable(o)||tt.dragIn(o,i),s?.[l]&&(o.gridstackNode=s[l])})}movable(e,i){return this.opts.staticGrid?this:(le.getElements(e).forEach(s=>{const n=s.gridstackNode;n&&(i?delete n.noMove:n.noMove=!0,this.prepareDragDrop(n.el))}),this)}resizable(e,i){return this.opts.staticGrid?this:(le.getElements(e).forEach(s=>{const n=s.gridstackNode;n&&(i?delete n.noResize:n.noResize=!0,this.prepareDragDrop(n.el))}),this)}disable(e=!0){if(!this.opts.staticGrid)return this.enableMove(!1,e),this.enableResize(!1,e),this._triggerEvent("disable"),this}enable(e=!0){if(!this.opts.staticGrid)return this.enableMove(!0,e),this.enableResize(!0,e),this._triggerEvent("enable"),this}enableMove(e,i=!0){return this.opts.staticGrid?this:(e?delete this.opts.disableDrag:this.opts.disableDrag=!0,this.engine.nodes.forEach(s=>{this.prepareDragDrop(s.el),s.subGrid&&i&&s.subGrid.enableMove(e,i)}),this)}enableResize(e,i=!0){return this.opts.staticGrid?this:(e?delete this.opts.disableResize:this.opts.disableResize=!0,this.engine.nodes.forEach(s=>{this.prepareDragDrop(s.el),s.subGrid&&i&&s.subGrid.enableResize(e,i)}),this)}cancelDrag(){const e=this._placeholder?.gridstackNode;e&&(e._isExternal?(e._isAboutToRemove=!0,this.engine.removeNode(e)):e._isAboutToRemove&&le._itemRemoving(e.el,!1),this.engine.restoreInitial())}_removeDD(e){return tt.draggable(e,"destroy").resizable(e,"destroy"),e.gridstackNode&&delete e.gridstackNode._initDD,delete e.ddElement,this}_setupAcceptWidget(){if(this.opts.staticGrid||!this.opts.acceptWidgets&&!this.opts.removable)return tt.droppable(this.el,"destroy"),this;let e,i;const s=(n,r,o)=>{o=o||r;const l=o.gridstackNode;if(!l)return;if(!l.grid?.el){o.style.transform=`scale(${1/this.dragTransform.xScale},${1/this.dragTransform.yScale})`;const y=o.getBoundingClientRect();o.style.left=y.x+(this.dragTransform.xScale-1)*(n.clientX-y.x)/this.dragTransform.xScale+"px",o.style.top=y.y+(this.dragTransform.yScale-1)*(n.clientY-y.y)/this.dragTransform.yScale+"px",o.style.transformOrigin="0px 0px"}let{top:u,left:d}=o.getBoundingClientRect();const c=this.el.getBoundingClientRect();d-=c.left,u-=c.top;const f={position:{top:u*this.dragTransform.xScale,left:d*this.dragTransform.yScale}};if(l._temporaryRemoved){if(l.x=Math.max(0,Math.round(d/i)),l.y=Math.max(0,Math.round(u/e)),delete l.autoPosition,this.engine.nodeBoundFix(l),!this.engine.willItFit(l)){if(l.autoPosition=!0,!this.engine.willItFit(l)){tt.off(r,"drag");return}l._willFitPos&&(M.copyPos(l,l._willFitPos),delete l._willFitPos)}this._onStartMoving(o,n,f,l,i,e)}else this._dragOrResize(o,n,f,l,i,e)};return tt.droppable(this.el,{accept:n=>{const r=n.gridstackNode||this._readAttr(n,!1);if(r?.grid===this)return!0;if(!this.opts.acceptWidgets)return!1;let o=!0;if(typeof this.opts.acceptWidgets=="function")o=this.opts.acceptWidgets(n);else{const l=this.opts.acceptWidgets===!0?".grid-stack-item":this.opts.acceptWidgets;o=n.matches(l)}if(o&&r&&this.opts.maxRow){const l={w:r.w,h:r.h,minW:r.minW,minH:r.minH};o=this.engine.willItFit(l)}return o}}).on(this.el,"dropover",(n,r,o)=>{let l=o?.gridstackNode||r.gridstackNode;if(l?.grid===this&&!l._temporaryRemoved)return!1;if(l?._sidebarOrig&&(l.w=l._sidebarOrig.w,l.h=l._sidebarOrig.h),l?.grid&&l.grid!==this&&!l._temporaryRemoved&&l.grid._leave(r,o),o=o||r,i=this.cellWidth(),e=this.getCellHeight(!0),!l){const c=o.getAttribute("data-gs-widget")||o.getAttribute("gridstacknode");if(c){try{l=JSON.parse(c)}catch{console.error("Gridstack dropover: Bad JSON format: ",c)}o.removeAttribute("data-gs-widget"),o.removeAttribute("gridstacknode")}l||(l=this._readAttr(o)),l._sidebarOrig={w:l.w,h:l.h}}l.grid||(l.el||(l={...l}),l._isExternal=!0,o.gridstackNode=l);const u=l.w||Math.round(o.offsetWidth/i)||1,d=l.h||Math.round(o.offsetHeight/e)||1;return l.grid&&l.grid!==this?(r._gridstackNodeOrig||(r._gridstackNodeOrig=l),r.gridstackNode=l={...l,w:u,h:d,grid:this},delete l.x,delete l.y,this.engine.cleanupNode(l).nodeBoundFix(l),l._initDD=l._isExternal=l._temporaryRemoved=!0):(l.w=u,l.h=d,l._temporaryRemoved=!0),le._itemRemoving(l.el,!1),tt.on(r,"drag",s),s(n,r,o),!1}).on(this.el,"dropout",(n,r,o)=>{const l=o?.gridstackNode||r.gridstackNode;return l&&(!l.grid||l.grid===this)&&(this._leave(r,o),this._isTemp&&this.removeAsSubGrid(l)),!1}).on(this.el,"drop",(n,r,o)=>{const l=o?.gridstackNode||r.gridstackNode;if(l?.grid===this&&!l._isExternal)return!1;const u=!!this.placeholder.parentElement,d=r!==o;this.placeholder.remove(),delete this.placeholder.gridstackNode,u&&this.opts.animate&&(this.setAnimation(!1),this.setAnimation(!0,!0));const c=r._gridstackNodeOrig;if(delete r._gridstackNodeOrig,u&&c?.grid&&c.grid!==this){const y=c.grid;y.engine.removeNodeFromLayoutCache(c),y.engine.removedNodes.push(c),y._triggerRemoveEvent()._triggerChangeEvent(),y.parentGridNode&&!y.engine.nodes.length&&y.opts.subGridDynamic&&y.removeAsSubGrid()}if(!l||(u&&(this.engine.cleanupNode(l),l.grid=this),delete l.grid?._isTemp,tt.off(r,"drag"),o!==r?(o.remove(),r=o):r.remove(),this._removeDD(r),!u))return!1;const f=l.subGrid?.el?.gridstack;return M.copyPos(l,this._readAttr(this.placeholder)),M.removePositioningStyles(r),d&&(l.content||l.subGridOpts||le.addRemoveCB)?(delete l.el,r=this.addWidget(l)):(this._prepareElement(r,!0,l),this.el.appendChild(r),this.resizeToContentCheck(!1,l),f&&(f.parentGridNode=l),this._updateContainerHeight()),this.engine.addedNodes.push(l),this._triggerAddEvent(),this._triggerChangeEvent(),this.engine.endUpdate(),this._gsEventHandler.dropped&&this._gsEventHandler.dropped({...n,type:"dropped"},c&&c.grid?c:void 0,l),!1}),this}static _itemRemoving(e,i){if(!e)return;const s=e?e.gridstackNode:void 0;!s?.grid||e.classList.contains(s.grid.opts.removableOptions.decline)||(i?s._isAboutToRemove=!0:delete s._isAboutToRemove,i?e.classList.add("grid-stack-item-removing"):e.classList.remove("grid-stack-item-removing"))}_setupRemoveDrop(){if(typeof this.opts.removable!="string")return this;const e=document.querySelector(this.opts.removable);return e?(!this.opts.staticGrid&&!tt.isDroppable(e)&&tt.droppable(e,this.opts.removableOptions).on(e,"dropover",(i,s)=>le._itemRemoving(s,!0)).on(e,"dropout",(i,s)=>le._itemRemoving(s,!1)),this):this}prepareDragDrop(e,i=!1){const s=e?.gridstackNode;if(!s)return;const n=s.noMove||this.opts.disableDrag,r=s.noResize||this.opts.disableResize,o=this.opts.staticGrid||n&&r;if((i||o)&&(s._initDD&&(this._removeDD(e),delete s._initDD),o))return e.classList.add("ui-draggable-disabled","ui-resizable-disabled"),this;if(!s._initDD){let l,u;const d=(y,S)=>{this.triggerEvent(y,y.target),l=this.cellWidth(),u=this.getCellHeight(!0),this._onStartMoving(e,y,S,s,l,u)},c=(y,S)=>{this._dragOrResize(e,y,S,s,l,u)},f=y=>{this.placeholder.remove(),delete this.placeholder.gridstackNode,delete s._moving,delete s._resizing,delete s._event,delete s._lastTried;const S=s.w!==s._orig.w,A=y.target;if(!(!A.gridstackNode||A.gridstackNode.grid!==this)){if(s.el=A,s._isAboutToRemove){const N=e.gridstackNode.grid;N._gsEventHandler[y.type]&&N._gsEventHandler[y.type](y,A),N.engine.nodes.push(s),N.removeWidget(e,!0,!0)}else M.removePositioningStyles(A),s._temporaryRemoved?(this._writePosAttr(A,s),this.engine.addNode(s)):this._writePosAttr(A,s),this.triggerEvent(y,A);this._extraDragRow=0,this._updateContainerHeight(),this._triggerChangeEvent(),this.engine.endUpdate(),y.type==="resizestop"&&(Number.isInteger(s.sizeToContent)&&(s.sizeToContent=s.h),this.resizeToContentCheck(S,s))}};tt.draggable(e,{start:d,stop:f,drag:c,rtl:this.opts.rtl}).resizable(e,{start:d,stop:f,resize:c,rtl:this.opts.rtl}),s._initDD=!0}return tt.draggable(e,n?"disable":"enable").resizable(e,r?"disable":"enable"),this}_onStartMoving(e,i,s,n,r,o){if(this.engine.cleanNodes().beginUpdate(n),this._writePosAttr(this.placeholder,n),this.el.appendChild(this.placeholder),this.placeholder.gridstackNode=n,n.grid?.el)this.dragTransform=M.getValuesFromTransformedElement(e);else if(this.placeholder&&this.placeholder.closest(".grid-stack")){const l=this.placeholder.closest(".grid-stack");this.dragTransform=M.getValuesFromTransformedElement(l)}else this.dragTransform={xScale:1,xOffset:0,yScale:1,yOffset:0};if(n.el=this.placeholder,n._lastUiPosition=s.position,n._prevYPix=s.position.top,n._moving=i.type==="dragstart",n._resizing=i.type==="resizestart",delete n._lastTried,i.type==="dropover"&&n._temporaryRemoved&&(this.engine.addNode(n),n._moving=!0),this.engine.cacheRects(r,o,this.opts.marginTop,this.opts.marginRight,this.opts.marginBottom,this.opts.marginLeft),i.type==="resizestart"){const l=this.getColumn()-n.x,u=(this.opts.maxRow||Number.MAX_SAFE_INTEGER)-n.y;tt.resizable(e,"option","minWidth",r*Math.min(n.minW||1,l)).resizable(e,"option","minHeight",o*Math.min(n.minH||1,u)).resizable(e,"option","maxWidth",r*Math.min(n.maxW||Number.MAX_SAFE_INTEGER,l)).resizable(e,"option","maxWidthMoveLeft",r*Math.min(n.maxW||Number.MAX_SAFE_INTEGER,n.x+n.w)).resizable(e,"option","maxHeight",o*Math.min(n.maxH||Number.MAX_SAFE_INTEGER,u)).resizable(e,"option","maxHeightMoveUp",o*Math.min(n.maxH||Number.MAX_SAFE_INTEGER,n.y+n.h))}}_dragOrResize(e,i,s,n,r,o){const l={...n._orig};let u,d=this.opts.marginLeft,c=this.opts.marginRight,f=this.opts.marginTop,y=this.opts.marginBottom;const S=Math.round(o*.1),A=Math.round(r*.1);if(d=Math.min(d,A),c=Math.min(c,A),f=Math.min(f,S),y=Math.min(y,S),i.type==="drag"){if(n._temporaryRemoved)return;n._prevYPix=s.position.top,this.opts.draggable.scroll!==!1&&ue.dragElement?.updateScrollPosition(this.el);const I=s.position.left+(s.position.left>n._lastUiPosition.left?-c:d),B=s.position.top+(s.position.top>n._lastUiPosition.top?-y:f);l.x=Math.round(I/r),l.y=Math.round(B/o);const U=this._extraDragRow;if(this.engine.collide(n,l)){const J=this.getRow();let P=Math.max(0,l.y+n.h-J);this.opts.maxRow&&J+P>this.opts.maxRow&&(P=Math.max(0,this.opts.maxRow-J)),this._extraDragRow=P}else this._extraDragRow=0;if(this._extraDragRow!==U&&this._updateContainerHeight(),n.x===l.x&&n.y===l.y)return}else if(i.type==="resize"){if(l.x<0||(M.updateScrollResize(i,e,o),l.w=Math.round((s.size.width-d)/r),l.h=Math.round((s.size.height-f)/o),n.w===l.w&&n.h===l.h)||n._lastTried&&n._lastTried.w===l.w&&n._lastTried.h===l.h)return;if(i.hasMovedX){const I=s.position.left+d;l.x=Math.round(I/r)}if(i.hasMovedY){const I=s.position.top+f;l.y=Math.round(I/o)}u=!0}n._event=i,n._lastTried=l;const N={x:s.position.left+d,y:s.position.top+f,w:(s.size?s.size.width:n.w*r)-d-c,h:(s.size?s.size.height:n.h*o)-f-y};if(this.engine.moveNodeCheck(n,{...l,cellWidth:r,cellHeight:o,rect:N,resizing:u})){n._lastUiPosition=s.position,this.engine.cacheRects(r,o,f,c,y,d),delete n._skipDown,u&&n.subGrid&&n.subGrid.onResize(),this._extraDragRow=0,this._updateContainerHeight();const I=i.target;n._sidebarOrig||this._writePosAttr(I,n),this.triggerEvent(i,I)}}triggerEvent(e,i){let s=this;for(;s.parentGridNode;)s=s.parentGridNode.grid;s._gsEventHandler[e.type]&&s._gsEventHandler[e.type](e,i)}_leave(e,i){i=i||e;const s=i.gridstackNode;if(!s||(i.style.transform=i.style.transformOrigin=null,tt.off(e,"drag"),s._temporaryRemoved))return;s._temporaryRemoved=!0,this.engine.removeNode(s),s.el=s._isExternal&&i?i:e;const n=s._sidebarOrig;s._isExternal&&this.engine.cleanupNode(s),s._sidebarOrig=n,this.opts.removable===!0&&le._itemRemoving(e,!0),e._gridstackNodeOrig?(e.gridstackNode=e._gridstackNodeOrig,delete e._gridstackNodeOrig):s._isExternal&&this.engine.restoreInitial()}}le.renderCB=(t,e)=>{t&&e?.content&&(t.textContent=e.content)};le.resizeToContentParent=".grid-stack-item-content";le.Utils=M;le.Engine=Ht;le.GDRev="12.6.0";const ju="/backend/api/hmi/v1";class Go extends Error{constructor(e,i){super(i),this.status=e,this.name="HmiHttpError"}status}let ti=null;function jo(){return ti}async function Ju(t,e,i){return ti=await we("/security/login","POST",{username:t,password:e,station:i}),ti}async function Yu(){try{await we("/security/logout","POST",{})}finally{ti=null}}async function Nr(){return ti=await we("/security/csrf","GET"),ti}async function we(t,e="GET",i){const s={Accept:"application/json"};i!==void 0&&(s["Content-Type"]="application/json"),e!=="GET"&&e!=="HEAD"&&ti&&(s["X-CSRF-Token"]=ti.csrf);const n=await fetch(`${ju}${t}`,{method:e,headers:s,credentials:"same-origin",body:i===void 0?void 0:JSON.stringify(i)}),r=await n.text();let o;try{o=r?JSON.parse(r):{}}catch{o={error:r.slice(0,300)}}if(!n.ok){const l=n.status===401?"Keine IMSAPI-Anmeldung. Bitte Benutzer, Passwort und Station eingeben.":n.status===403?"HMI-Berechtigung fehlt oder CSRF ist ungültig (HTTP 403).":n.status===503?"Datenbank bzw. HMI-Schema nicht bereit (HTTP 503). Siehe Diagnose.":o?.error&&!String(o.error).trim().startsWith("<")?String(o.error)+(typeof o.imsapiReturnValue=="number"?" [IMSAPI "+o.imsapiReturnValue+"]":""):`${e} ${t}: HTTP ${n.status}`;throw new Go(n.status,l)}return o}const qu=[{id:"station-tree",type:"wb.station-tree",x:0,y:0,w:7,h:6,mandatory:!1,personalizable:!0,props:{title:"Fertigungsbaum"}},{id:"history",type:"wb.history",x:7,y:0,w:5,h:4,mandatory:!1,personalizable:!0,props:{title:"History & Booking",module:"history"}},{id:"workorder",type:"wb.workorders",x:7,y:4,w:5,h:3,mandatory:!1,personalizable:!0,props:{title:"Auftragsaktivierung",module:"workorder"}},{id:"config",type:"wb.station-config",x:0,y:6,w:7,h:6,mandatory:!1,personalizable:!0,props:{title:"Stationskonfiguration",source:"station-config"}},{id:"activities",type:"wb.activities",x:7,y:7,w:5,h:4,mandatory:!1,personalizable:!0,props:{title:"Manuelle Fertigung",module:"activities"}}],Js={layout:{widgets:qu},preferences:{fontScale:1,theme:"ios",contrast:"normal",accent:"#a40640"}},Xu={800:"SMS_MOBIL_PHONE_NR",1e3:"Flag PASS",1001:"Flag REWORK",1002:"Flag SCRAP",1010:"Failure record type",1011:"Channel number",1100:"Supplier type",1101:"Failure type category",1102:"Failure reason category",1103:"Keyboard type",1104:"State type",2e3:"Digitizer type",2001:"X-REF1",2002:"Y-REF1",2003:"X-REF2",2004:"Y-REF2",4001:"RETURN_RJOU_THRESHOLD",4010:"BDE THRESHOLD",4011:"Account TR-BDE conforming to shift(TRUE/FALSE)",4012:"Do TR to RM booking only when previous workstep has enough PASS(TRUE/FALSE)",4015:"Workorder time",4016:"QM-Analyses: Use RM-Good-Bookings (TRUE/FALSE) (Default: TR-bookings are used)",5001:"Password Scrap",6e3:"SCANNER-BARCODE",6001:"SCANNER-BOARD-SNR",7003:"UTILS_PART_DNC_SCHEMA",7004:"UTILS_PART_FILE_ID_SCHEMA",7005:"Target directory Schema",7006:"UTILS_PART_DNC_LAYOUT",7007:"UTILS_PART_FILE_ID_LAYOUT",7008:"Target directory Layout",7010:"Target directory CDB_DATA LAYOUT",7011:"PR Open 2nd view in Layouter(TRUE/FALSE)",7012:"PR File extension for 2nd viewer file",7013:"Paternoster active (TRUE/FALSE)",7020:"Source directory Layout",7021:"Source directory Viewer",7022:"Target directory Viewer",7023:"Call Layout",7024:"Call Viewer",7025:"Start Layouter automatically (TRUE/FALSE)",7026:"BOM Check in PR automatically (TRUE/FALSE)",7027:"BOM check with status (TRUE/FALSE)",7028:"BOM check with quantity (TRUE/FALSE)",7029:"SETUP Tear down locked reels automatically (TRUE/FALSE)",7033:"CopyViewerData (TRUE/FALSE) [TRUE]=Copy, [FALSE] do not copy",7100:"Layouter class",7101:"Layout active (TRUE/FALSE)",7102:"Viewer active (TRUE/FALSE)",7103:"Digitizer active (TRUE/FALSE)",7104:"OPMA_KAP active (TRUE/FALSE)",7105:"OPMA_MAGRP active (TRUE/FALSE)",7106:"Number of opm uploads the server should cache for station",7107:"Reset OPM-A Kap Cache on product change (TRUE/FALSE)",7108:"Reset OPM-A Kap Cache on workorder change (TRUE/FALSE)",7109:"Reset OPM-A Kap Cache on shift change (TRUE/FALSE)",7110:"Cycle time active (TRUE/FALSE)",7120:"(PR) Workstep query serial no (TRUE/FALSE)",7125:"PR Tester dialog always active (TRUE/FALSE)",7126:"PR Setup dialog always active (TRUE/FALSE)",7127:"Register active PR workorder (TRUE/FALSE)",7128:"PR Panel Flag N Snr Register single (TRUE/FALSE)",7129:"PR Check always serial number state (TRUE/FALSE)",7130:"PR Merge to next level (TRUE/FALSE)",7131:"PR Merge with equal serial no (TRUE/FALSE)",7132:"Activated only if BOM-Check ok (TRUE/FALSE)",7133:"Default Position Pattern",7134:"Check expiration (TRUE/FALSE)",7135:"Enable multiple positions for same part (TRUE/FALSE)",7136:"Enable create container in setup dialog (TRUE/FALSE)",7137:"Print label config file",7138:"Print label output",7139:"Maximum number of repairs",7140:"Repair counting for all uploads (TRUE/FALSE)",7141:"Exceeding repairs procedure (0, 1, 2)",7150:"Panel-related setup (TRUE/FALSE)",7160:"PR Setup Station Activate Work Order (TRUE/FALSE)",7200:"ICT Failure type",7201:"FailureCode for checkSerialUnitState book fail",7202:"TR Automatic upload state of previous work step (FALSE/L/W)",7203:"API Check all previous steps concerning uploaded state (TRUE/FALSE)",7204:"API Test Retry counter for CheckState (J/N/D)",7205:"API_GETSNRBYSNRREF_SINGLE_ERROR (TRUE/FALSE)",7206:"API_Check_merge_to_BOM (TRUE/FALSE) TRUE=check BOM Qty",7207:"API_UNMERGEPARTS deactivate (M)aster, (S)lave or (N)othing",7208:"API_IGNORE_SNR_UNIQUE_FOR_MERGE (TRUE/FALSE)",7209:"Loop counter only for active error codes (TRUE/FALSE)",7210:"CHECK_ANOMALY_FOR_RESULT_DATA (TRUE/FALSE)",7211:"CHECK_ANOMALY_ERROR_CODE (Errorcode for attributive error)",7212:"CHECK_ANOMALY_FAILCODE (Failcode for measurecode_wert)",7213:"CHECK_ANOMALY_RESET_TIME (ResetTime in sec)",7214:"CHECK_ANOMALIE_FOR_2ND_UPLOAD_INFLUENCE_code_wertS",7215:"CHECK_ANOMALIE_FOR_2ND_UPLOAD_CHANGE_MODEL",7216:"CHECK_ANOMALIE_PSEUDO_ERROR_CODE",7217:"Check the Batch Quantity in API-Call verifyMerge (TRUE/FALSE)",7218:"CODE_API_CHECK_MERGED_PARTS_COMPLETE (TRUE/FALSE)",7219:"API Check merge to BOM with client version (TRUE/FALSE) TRUE=check BOM Qty",7220:"Report Merge to ERP-System (TRUE/FALSE)",7221:"PR_UNMERGE_EXTENSION free Text(WO actual WorkOrder)",7222:"SWITCH_SERIALNO_AFTER_MERGE (TRUE/FALSE)",7223:"Enable check for consecutive fault (TRUE/FALSE)",7224:"Cancel Upload on station locked (TRUE/FALSE)",7225:"Add Time[min] for Messages :mdcUploadStationCondition endDate = (startDate + X)",7226:"Check code: 16000 to resolve the state of the serial number (TRUE/FALSE)",7227:"Tranfer MDC station conditions to ERP (TRUE/FALSE)",7228:"Max. quantity off registered batches at station",7230:"Correction factor for cycle time",7250:"SPA_FUNCTION_AVAILABLE",7251:"SPA_RESET_TIME (in seconds)",7252:"SPA_SET_REWORK_ON_CP_ERROR",7253:"SPA_REWORK_ON_CPK_ERROR",7254:"SPA_ASSIGN_CP_ERROR_CODE",7255:"SPA_ASSIGN_CP_PSEUDO_ERROR_CODE",7256:"SPA_ASSIGN_CPK_ERROR_CODE",7257:"SPA_ASSIGN_CPK_PSEUDO_ERROR_CODE",7258:"API_ANOMALY_CHECK_RETURN_ENABLED",7260:"CHECK_ORDER_NET_FOR_MERGE",7320:"Refer to Serial no (S), Position (P) or both (-)",7400:"upload->update single mat qty (FALSE, TRUE, KONSI)",7401:"upload->update mat qty for all bookings (FALSE, TRUE)",7402:"update mat qty: 0 = as 7401, 1 = first PASS, 2 = each PASS, 3 = first PASS/SCRAP, 4 = each PASS/SCRAP",7450:"default cost center number used for material booking",7510:"Serialnumber-Generation: Fix part for station",7666:"Derivation Manufacturing type",7777:"Product types of external charges",8e3:"Account state in config management (TRUE/FALSE)",8100:"Check recipes (0, 1, 10)",8101:"Check recipes for trUploadStationResult compatible to trUploadResultDataAndRecipe by configuration parameter 8100 (TRUE/FALSE)",8110:"Check Recipe of completeness (TRUE/FALSE)",8200:"Active Recipe necessary for upload result data (J/N)",8300:"Register user required for upload (TRUE/FALSE)",8310:"API processLayer is workplan Avo or Workstep (L/A/W)",8320:"Keep selected process layer in Shipping-Module (TRUE/FALSE)",8400:"Equipment-Bookings during API-Upload (TRUE/FALSE)",8401:"AssetEquipment-Bookings during API-Upload (TRUE/FALSE)",8402:"Cavity-Bookings during API-Upload (TRUE/FALSE)",8410:"Allow multiple equipment setup on same station (TRUE/FALSE)",8411:"Amount of multiple equipment setup on same station",8500:"Transfer completed batches to ERP",8510:"Transfer serials to ERP: 0 = all, 1 = first PASS, 2 = all PASS, 3 = first PASS/SCRAP, 4 = all PASS/SCRAP",8610:"API-getBinInfo LocationNo Mode (0=OLD, 1=ONLY NUMBER, 2=COMPLETE PATH)",9011:"API-getRecipeDataStrictObjectTypeValidation Mode (0=compatible mode, 1=strict mode)",1e4:"FAILDAT_Z1800",10001:"FAILDAT_Z8000",10002:"FAILDAT_SPEA",10003:"FAILDAT_GENRAD",11e3:"PSEUDO_COMPTYPE_FAILICT",12e3:"CONFIG_NO_COMPTYPE",13e3:"TESTSTEP_MODE (OBJECT_ID, OBJECT_ID&STK_VERS, LP_ID)",13010:"CHECK_ONLY_PREVIOUS_LOOP_COUNTER (TRUE/FALSE)",13011:"CHECK_OWN_STATUS_ON_FIRST_WS (TRUE/FALSE)",13020:"WO_CHECK_NEEDS_RECIPE",13021:"WO_CHECK_NEEDS_CUSTOMER",13100:"Skip BOM-Check (TRUE/FALSE)",13110:"Activate setup immediately (TRUE/FALSE)",13111:"SETUP_ACTIVATION_ON_LAST_USED_WORKORDER (TRUE/FALSE)",13120:"Line based setup activation (TRUE/FALSE)",13125:"Open msl package while setup on smt line automatically (false/activation/setup)",13130:"Refill only same parts at the same setup position (TRUE/FALSE)",13140:"Type for reading setup-data sequences: A = all, F = first, L = last",13145:"BOM Check with additional components (TRUE/FALSE)",13150:"BOM Check for all boards of multi panels (TRUE/FALSE)",13161:"SMT wait for bomCheck timeout in sec",13162:"SMT wait for bomCheck interval in ms",13163:"SMT wait for bomCheck mode(0=off, 1=all machines in one ws, 2=check previous ws)",13170:"SMT book omitted serials (TRUE/FALSE)",13200:"KAP_TYP_M reference",13300:"Always check actual production order (TRUE/FALSE)",13301:"enable ProductionOrder-State check (TRUE/FALSE)",13302:"Finish production order when qty reached (0-No, 1-all..., 2-last..., 3-first workstep)",13310:"Always check actual other orders than production order (TRUE/FALSE)",13311:"enable Order-State check for other orders than ProductionOrder (TRUE/FALSE)",13312:"Finish other orders than production order when qty reached (0-No, 1-all..., 2-last..., 3-first workstep)",13400:"Allow merge multipanel scrap (TRUE/FALSE)",13410:"Override scrap on same workstep (TRUE/FALSE)",13420:"Allow changing serialNumber state to OK (TRUE/FALSE)",13600:"API: attribGetAttributecode_werts -> enable complete check (TRUE/FALSE)",14e3:"Activate OpmMd (TRUE/FALSE)",15e3:"Limit Residual time share of Overhead Costs in Percent",15001:"Storage assignment barcode",15002:"Auto. shift to stock(15001) while setup (0=off, 1=to machine, 2=to machine and back to default)",15003:"Store in transaction type while setup",15004:"Store in transaction type while tear down",15100:"ONLY_MATLABEL_SETUP (TRUE/FALSE)",15200:"Create new failure type from measuring result (TRUE/FALSE)",15201:"Level of new failure type (0, 1, 2)",15210:"Use intervention limit from previous recipe(R), station(K) default code_werts(D)",15211:"Intervention limit Ok (in percent, 0 - 100)",15212:"Intervention limit scrap (in percent, >=100)",15220:"Update recipe-teststeps on upload if measurement-type changes (0 Dont compare measurement-type, 1 Only changes to DYNAMIC...,2 Any change)",15250:"generate pseudo errors for measure code_werts with these failcodes(sep. by [;] )",15260:"no OPM data for measure code_werts with these failcodes(sep. by [;] )",15270:"Size of the returned array size for api functions",15280:"Lock station exclusive (TRUE/FALSE)",15300:"API queryTestData: Fetch data uploaded with -1, (TRUE, FALSE(default)).",16e3:"Rep- or Diag place: Terminate workstep (TRUE/FALSE)",16001:"Ignore booking of repair/diag station when not allowed to close work step (Y/N/A)",16100:"Uploads from this station are Testplan-relevant and count for SampleCaches (TRUE/FALSE)",18e3:"ERP line number for confirmation",18200:"Allow bookings for SerialNumbers that are already set to scrap (off|check|checkAll|-1= Use PlantConfig 18200)",18500:"All Atribute get APIs will use equal(0) or like (1) in case of search condition",18510:"Attribute-Search: Treat empty string as wildcard (TRUE/FALSE)",2e4:"MDE Prod time calculation with station snr booking (0) or with condition (1)",20001:"MDE OEE calculation with Yield (0) or with FPY (1)",20002:"MDE NEE calculation with Yield (0) or with FPY (1)",20003:"MDE Placing performance calculation with component (0) or with unit (1)",20004:"MDE MTBF calculation with operational time (0) or with uptime (1)",20011:"Calculation method (0) overall performance (1) weighted average",20013:"MDE OEE calculation with total availability (0) or with organizatonal (1) or with technical (2) or with system-related (3)",20014:"Cycle time calculation with time range (0) or with productive time acc. to shift timetable (1)",21001:"SNR_MAT_ID of active shipping lot of this station",21002:"object_id of default Lot-Product for Lot in Lot",21003:"object_id of default Lot-Part for serial in Lot",21004:"Default Customer",21005:"SHIPPING: No automatic serial check for addSnrTOLot (TRUE/FALSE)",21010:"Suppress ERP-Feedback Sno <-> Lot (TX: 810,811) (TRUE/FALSE)",21012:"Suppress ERP-Feedback Lot <-> Lot (TX: 820,821,822,823) (TRUE/FALSE)",21016:"Suppress ERP-Feedback Lot Create/Complete/Reopen/Finish (TX: 830,831,832,833) (TRUE/FALSE)",21020:"Lock handling for shipping (I = ignore, F = forbidden, L = locked only)",22e3:"Automatic depaneling of multipanels (FALSE/TRUE)",25001:"Fix API mdataGetBomData: switch off processbased (FALSE/TRUE)",25002:"IMSAPI: trAssignSerialNumberMergeAndUploadState -> book scrap (FALSE/TRUE)",25003:"API: verifyMergeBySnrRef fix errorcode -2 when not finished (FALSE/TRUE)",25004:"API: Allow booking on merged(inactive) serial no (FALSE/TRUE)",25010:"EWAPI: getBomItems suppress BomItems with 0 Quantity in Grouped Mode:2 (TRUE/FALSE)",25020:"IMSAPI: Set mdataGetBomData() compatible to 8.52.00 changes (TRUE/FALSE)",25030:"IMSAPI: Correct trCheckSerialNumberState() in case of scrap and open work steps in multi panel (TRUE/FALSE)",25040:"IMSAPI: Set trGetSerialNumberUploadInfo() compatible to 8.50.01 (TRUE/FALSE)",25050:"Leave packaging information to manufacturing serial number when add to change order (TRUE/FALSE)",25100:"IMSAPI: Send new created material bin immediately to ERP (TRUE/FALSE)",26002:"PFDC booking : User authentication required",27e3:"Transfer Equipment usage for PFDC Booking to ERP",28001:"Publish and subscribe messages for workorders",28002:"Pub/Sub-Messaging for EQUIPMENT (TRUE/FALSE)",28003:"Pub/Sub-Messaging for MATERIAL SETUP (TRUE/FALSE)",28004:"Pub/Sub Messaging for STATION MEASUREMENT (TRUE/FALSE)",28005:"Pub/Sub Messaging for SERIAL NUMBER MEASUREMENT (TRUE/FALSE)",28006:"Pub/Sub Messaging for SERIAL NUMBER FAILURE (TRUE/FALSE)",28007:"Pub/Sub Messaging for STATION CONDITION (TRUE/FALSE)",3e4:"Line attribute"},Pi={contacts:{path:"/backend/api/getContact",title:"Kontakte",fields:["PARTNER_NR","NAME","STREET","CITY"]},"erp-groups":{path:"/backend/api/getERPGroups",title:"ERP-Gruppen",fields:["erp_grp_nr","erp_grp_bez","kap_nr"]},users:{path:"/backend/api/getUsers",title:"Benutzer",fields:["user_id","user_name","user_firstname","gender"]},"station-config":{path:"/backend/api/getStationConfig",title:"Konfiguration",fields:["code_nr","code_wert","timestamp","changedby"]},stations:{path:"/backend/api/getStationExport",title:"Stationen",fields:["kap_nr","kap_bez","ma_grp_nr","ma_grp_bez","line_nr","line_bez"]}};function Qu(t){return typeof t=="string"&&Object.prototype.hasOwnProperty.call(Pi,t)}function Jo(t){return/^[A-Za-z0-9_.-]{1,100}$/.test(t)}async function Yo(t,e,i){const s=Object.entries(Pi).find(([,o])=>o.path===t)?.[0]??(t==="/backend/api/getStations"?"station-tree":"");if(!s)throw new Error("Unbekannte API");if(!Jo(e))throw new Error("Bitte eine gültige Stationsnummer eingeben");const n=await fetch("/backend/api/hmi/v1/legacy/"+s+"?station="+encodeURIComponent(e),{method:"GET",credentials:"same-origin",headers:{Accept:"application/json"},signal:i,cache:"no-store"}),r=await n.json();if(!n.ok)throw new Error(r&&typeof r=="object"&&"error"in r?String(r.error):"HMI API "+n.status);return r}function Zu(t){return Array.isArray(t)?t.filter(e=>e!==null&&typeof e=="object"&&!Array.isArray(e)).map(e=>Object.fromEntries(Object.entries(e).map(([i,s])=>[i.toLowerCase(),s]))):[]}const $n={workorder:{path:"/backend/Workorder.html",heading:"Auftragsaktivierung",detail:"Auftrag und Prozesslage prüfen und aktivieren",action:"Zur Auftragsaktivierung"},history:{path:"/backend/HistoryBooking.html",heading:"History & Booking",detail:"Seriennummern prüfen, Statusumbuchungen und Buchungshistorie",action:"History & Booking öffnen"},activities:{path:"/backend/Activities_rest.html",heading:"Manuelle Fertigung",detail:"Activity-Buchungen, Fehlermeldungen, Messwerte und Setup",action:"Manuelle Fertigung öffnen"},"activity-designer":{path:"/backend/Activity_designer_rest.html",heading:"Activity Designer",detail:"Activities und Rezepte verwalten",action:"Activity Designer öffnen"},bom:{path:"/backend/BOMImport.html",heading:"Stückliste / BOM",detail:"Excel importieren und Stücklisten aktualisieren",action:"BOM-Verwaltung öffnen"},part:{path:"/backend/PARTImport.html",heading:"Material / PART",detail:"Teile und Materialstammdaten importieren",action:"Materialverwaltung öffnen"},station:{path:"/backend/Station.html",heading:"Stationsexport/-import",detail:"Stationsbaum und Excel-Import / Export",action:"Stationsverwaltung öffnen"},erp:{path:"/backend/ErpAdd.html",heading:"ERP-Gruppen",detail:"ERP-Gruppen importieren",action:"ERP-Gruppen öffnen"},contact:{path:"/backend/Contacts.html",heading:"Kontakte",detail:"Kontaktdaten und Excel-Dateien",action:"Kontaktverwaltung öffnen"},user:{path:"/backend/Useradd.html",heading:"Benutzerimport",detail:"Benutzerstammdaten importieren",action:"Benutzerimport öffnen"}};function ec(t){return typeof t=="string"&&Object.prototype.hasOwnProperty.call($n,t)}function Hn(t,e,i){if(e&&!Jo(e))throw new Error("Ungültige Stationsnummer");e&&sessionStorage.setItem("stationNumber",e),sessionStorage.setItem("url",window.location.origin),i&&/^[A-Za-z0-9_.:/-]{1,120}$/.test(i)&&sessionStorage.setItem("hmiLastSerial",i);const s=new URLSearchParams;t==="station"&&e&&s.set("station",e),i&&["history","activities"].includes(t)&&s.set("serial",i);const n=$n[t].path+(s.toString()?"?"+s.toString():""),r=window.open(n,"_blank");r?r.opener=null:window.location.assign(n)}function tc(t,e){if(!t.length)return;const i=[...new Set(t.flatMap(l=>Object.keys(l)))],s=l=>'"'+String(l??"").replace(/"/g,'""')+'"',n="\uFEFF"+[i.map(s).join(";"),...t.map(l=>i.map(u=>s(l[u])).join(";"))].join(`\r -`),r=URL.createObjectURL(new Blob([n],{type:"text/csv;charset=utf-8"})),o=document.createElement("a");o.href=r,o.download=e,o.click(),setTimeout(()=>URL.revokeObjectURL(r),1e3)}const ic={class:"wb-data-table"},sc={class:"wb-toolbar"},nc={class:"wb-meta"},rc={class:"wb-hint"},oc={class:"wb-inline-actions"},lc=["disabled"],ac={class:"wb-filter"},uc=["aria-label"],cc={key:0,class:"wb-alert",role:"alert"},dc={key:1,class:"wb-placeholder"},fc={key:2,class:"wb-table-scroll"},hc={class:"wb-table"},pc={key:0},gc=["colspan"],mc={class:"wb-footer"},vc={class:"wb-inline-actions"},bc=["disabled"],yc=["disabled"],wc=He({__name:"LegacyTableWidget",props:{widget:{},station:{},demo:{type:Boolean}},setup(t){const e=t,i=re(()=>Qu(e.widget.props.source)?e.widget.props.source:"contacts"),s=re(()=>String(e.station||e.widget.props.station||"")),n=T(""),r=T([]),o=T(!1),l=T(""),u=T(1);let d=null;const c=re(()=>Math.max(5,Math.min(100,Number(e.widget.props.limit)||20))),f=re(()=>{const P=r.value,Z=i.value==="station-config"?["code_nr","description","code_wert","changedby","timestamp"]:Pi[i.value].fields.map(Q=>Q.toLowerCase()),j=[...new Set(P.flatMap(Q=>Object.keys(Q)))];return[...Z.filter(Q=>j.includes(Q)),...j.filter(Q=>!Z.includes(Q))].slice(0,18)}),y=re(()=>r.value.filter(P=>Object.values(P).some(Z=>String(Z??"").toLocaleLowerCase("de").includes(n.value.toLocaleLowerCase("de"))))),S=re(()=>Math.max(1,Math.ceil(y.value.length/c.value))),A=re(()=>y.value.slice((u.value-1)*c.value,u.value*c.value)),N=P=>({description:"Beschreibung",contact_code:"Kontakt-Nr.",contact_name:"Kontakt",artikel:"Artikel",artbez:"Artikelbeschreibung",part_ext:"Teile-Nr.",art_bez_ext:"Teilebeschreibung",is_manufacturer:"Hersteller",is_customer:"Kunde",is_supplier:"Lieferant",code_nr:"Code",code_wert:"Wert",timestamp:"Geändert am",changedby:"Geändert von",user_id:"Benutzer-ID",user_name:"Nachname",user_firstname:"Vorname",gender:"Anrede",erp_grp_nr:"ERP-Gruppe",erp_grp_bez:"Bezeichnung",kap_nr:"Station",kap_bez:"Station Bezeichnung",line_nr:"Linie",line_bez:"Linie Bezeichnung",ma_grp_nr:"Maschinengruppe",ma_grp_bez:"Maschinengruppe Bezeichnung"})[P]||P.replace(/_/g," ");function I(P){return P==null||P===""?"—":typeof P=="object"?JSON.stringify(P):String(P)}async function B(){if(d?.abort(),r.value=[],l.value="",u.value=1,e.demo){r.value=[{code_nr:"1401",code_wert:"1",changedby:"Demo",timestamp:"2026-10-20"},{code_nr:"1402",code_wert:"0",changedby:"Demo",timestamp:"2026-10-20"}];return}if(!s.value){l.value="Stationsnummer im Kopfbereich eingeben";return}const P=new AbortController;d=P,o.value=!0;try{const Z=await Yo(Pi[i.value].path,s.value,P.signal);r.value=Zu(Z).map(j=>i.value==="station-config"?{...j,description:Xu[String(j.code_nr)]||"—"}:j)}catch(Z){P.signal.aborted||(l.value=String(Z instanceof Error?Z.message:Z))}finally{d===P&&(o.value=!1)}}Ze([i,s,()=>e.demo],B,{immediate:!0}),Ze(n,()=>u.value=1),wi(()=>d?.abort());const U=re(()=>i.value==="users"?"user":i.value==="contacts"?"contact":i.value==="erp-groups"?"erp":(i.value==="stations","station"));function J(){try{Hn(U.value,s.value)}catch(P){l.value=String(P)}}return(P,Z)=>(g(),m("section",ic,[a("div",sc,[a("div",nc,[a("span",{class:Me(["wb-live-dot",{inactive:!!l.value}])},null,2),a("b",null,w(y.value.length),1),Z[4]||(Z[4]=X(" Datensätze ",-1)),a("span",rc,"· "+w(s.value||"Keine Station"),1)]),a("div",oc,[a("button",{type:"button",class:"wb-btn wb-btn-icon",title:"Neu laden",onClick:B},"↻"),a("button",{type:"button",class:"wb-btn wb-btn-icon",disabled:!r.value.length,title:"CSV exportieren",onClick:Z[0]||(Z[0]=j=>Ke(tc)(y.value,"hmi-"+i.value+".csv"))},"⇩",8,lc)])]),a("div",ac,[Z[5]||(Z[5]=a("span",{class:"wb-search-icon"},"⌕",-1)),fe(a("input",{"onUpdate:modelValue":Z[1]||(Z[1]=j=>n.value=j),"aria-label":"Suche in "+Ke(Pi)[i.value].title,placeholder:"Suche in allen Spalten ..."},null,8,uc),[[Se,n.value]])]),l.value?(g(),m("div",cc,w(l.value),1)):o.value?(g(),m("div",dc,"Daten werden geladen …")):z("",!0),o.value?z("",!0):(g(),m("div",fc,[a("table",hc,[a("thead",null,[a("tr",null,[(g(!0),m(K,null,ge(f.value,j=>(g(),m("th",{key:j},w(N(j)),1))),128))])]),a("tbody",null,[(g(!0),m(K,null,ge(A.value,(j,Q)=>(g(),m("tr",{key:Q},[(g(!0),m(K,null,ge(f.value,se=>(g(),m("td",{key:se},[se==="code_wert"&&["TRUE","FALSE"].includes(String(j[se]).toUpperCase())?(g(),m("span",{key:0,class:Me(["wb-value-pill",String(j[se]).toUpperCase()==="TRUE"?"on":"off"])},w(String(j[se]).toUpperCase()==="TRUE"?"Ein":"Aus"),3)):(g(),m("span",{key:1,class:Me({"wb-mono":se.includes("nr")||se.includes("id")})},w(I(j[se])),3))]))),128))]))),128)),A.value.length===0?(g(),m("tr",pc,[a("td",{colspan:f.value.length||1,class:"wb-empty"},w(r.value.length?"Keine passenden Einträge":"Keine Daten vorhanden"),9,gc)])):z("",!0)])])])),a("div",mc,[a("span",null,"Seite "+w(u.value)+" / "+w(S.value),1),a("div",vc,[a("button",{class:"wb-btn wb-small",disabled:u.value===1,onClick:Z[2]||(Z[2]=j=>u.value--)},"‹",8,bc),a("button",{class:"wb-btn wb-small",disabled:u.value>=S.value,onClick:Z[3]||(Z[3]=j=>u.value++)},"›",8,yc),a("button",{class:"wb-btn wb-small",onClick:J},"Vollansicht ↗")])])]))}}),Ec=["open"],_c={class:"wb-tree-icon"},Sc={class:"wb-tree-name"},Rc={class:"wb-tree-count"},Ac={class:"wb-tree-children"},kc=He({__name:"StationTreeNode",props:{node:{},filter:{},level:{}},emits:["selected"],setup(t,{emit:e}){const i=e;function s(n,r){return!r||(n.id+" "+n.text).toLocaleLowerCase("de").includes(r.toLocaleLowerCase("de"))||(n.children||[]).some(o=>s(o,r))}return(n,r)=>{const o=bo("StationTreeNode",!0);return s(t.node,t.filter)?(g(),m(K,{key:0},[t.node.children?.length?(g(),m("details",{key:0,class:"wb-tree-group",open:t.filter?!0:void 0},[a("summary",null,[a("span",_c,w(t.level===0?"▦":"▤"),1),a("span",Sc,[a("b",null,w(t.node.id),1),a("span",null,w(t.node.text),1)]),a("span",Rc,w(t.node.children.length),1)]),a("div",Ac,[(g(!0),m(K,null,ge(t.node.children,l=>(g(),De(o,{key:l.id,node:l,filter:t.filter,level:(t.level||0)+1,onSelected:r[0]||(r[0]=u=>i("selected",u))},null,8,["node","filter","level"]))),128))])],8,Ec)):(g(),m("button",{key:1,type:"button",class:"wb-tree-leaf",onClick:r[1]||(r[1]=l=>i("selected",t.node.id))},[r[2]||(r[2]=a("span",{class:"wb-tree-icon"},"▣",-1)),a("span",null,[a("b",null,w(t.node.id),1),a("small",null,w(t.node.text),1)]),r[3]||(r[3]=a("span",{class:"wb-tree-arrow"},"›",-1))]))],64)):z("",!0)}}}),Tc={class:"wb-station-tree"},Cc={class:"wb-toolbar"},Nc={class:"wb-meta"},Mc={class:"wb-filter"},Oc={key:0,class:"wb-alert",role:"alert"},xc={key:1,class:"wb-placeholder"},Pc={key:2,class:"wb-tree-list"},Ic={key:0,class:"wb-placeholder"},Lc={class:"wb-footer"},Dc={key:0},Uc=He({__name:"StationTreeWidget",props:{widget:{},station:{},demo:{type:Boolean}},setup(t){const e=t,i=T([]),s=T(""),n=T(!1),r=T(""),o=T("");let l=null;const u=re(()=>String(e.station||e.widget.props.station||""));async function d(){if(l?.abort(),r.value="",i.value=[],e.demo){i.value=[{id:"100",text:"Linie Montage",children:[{id:"200",text:"Montagebereich",children:[{id:"J815513",text:"Lagern"},{id:"J816352",text:"Waschen"}]}]}];return}if(!u.value){r.value="Bitte Station auswählen";return}const y=new AbortController;l=y,n.value=!0;try{const S=await Yo("/backend/api/getStations",u.value,y.signal);if(!Array.isArray(S))throw Error("Ungültige Fertigungsbaum-Antwort");i.value=S}catch(S){y.signal.aborted||(r.value=String(S instanceof Error?S.message:S))}finally{l===y&&(n.value=!1)}}Ze([u,()=>e.demo],d,{immediate:!0}),wi(()=>l?.abort());function c(y){o.value=y,sessionStorage.setItem("selectedStation",y);const S="/backend/Config.html?station="+encodeURIComponent(y),A=window.open(S,"_blank");A?A.opener=null:window.location.assign(S)}function f(){try{Hn("station",u.value)}catch(y){r.value=String(y)}}return(y,S)=>(g(),m("div",Tc,[a("div",Cc,[a("span",Nc,[a("span",{class:Me(["wb-live-dot",{inactive:!!r.value}])},null,2),a("b",null,w(i.value.length),1),S[1]||(S[1]=X(" Fertigungslinien",-1))]),a("div",{class:"wb-inline-actions"},[a("button",{class:"wb-btn wb-btn-icon",onClick:d,title:"Aktualisieren"},"↻"),a("button",{class:"wb-btn wb-small",onClick:f},"Vollansicht ↗")])]),a("div",Mc,[S[2]||(S[2]=a("span",{class:"wb-search-icon"},"⌕",-1)),fe(a("input",{"onUpdate:modelValue":S[0]||(S[0]=A=>s.value=A),placeholder:"Station, Linie oder Gruppe suchen ...","aria-label":"Fertigungsbaum durchsuchen"},null,512),[[Se,s.value]])]),r.value?(g(),m("p",Oc,w(r.value),1)):n.value?(g(),m("p",xc,"Fertigungsbaum wird geladen …")):(g(),m("div",Pc,[(g(!0),m(K,null,ge(i.value,A=>(g(),De(kc,{key:A.id,node:A,filter:s.value,level:0,onSelected:c},null,8,["node","filter"]))),128)),i.value.length?z("",!0):(g(),m("p",Ic,"Keine Stationen gefunden"))])),a("div",Lc,[S[3]||(S[3]=a("span",null,"Fertigungsbereiche sind anfangs zugeklappt",-1)),o.value?(g(),m("span",Dc,"Station "+w(o.value)+" gewählt",1)):z("",!0)])]))}}),Fc={class:"wb-module"},Bc={class:"wb-module-row"},zc={class:"wb-module-logo","aria-hidden":"true"},$c={class:"wb-module-text"},Hc={key:0,class:"wb-field"},Wc={class:"wb-module-foot"},Vc={class:"wb-chip"},Kc={key:1,class:"wb-hint",role:"status"},Gc=He({__name:"LegacyModuleWidget",props:{widget:{},station:{},demo:{type:Boolean}},setup(t){const e=t,i=re(()=>ec(e.widget.props.module)?e.widget.props.module:"history"),s=re(()=>$n[i.value]),n=T(""),r=T("");function o(){if(e.demo){r.value="Vorschau: Live-Anwendungen werden im Demo-Modus nicht gestartet";return}try{Hn(i.value,e.station,n.value),r.value="Originalanwendung in neuem Tab geöffnet"}catch(l){r.value=String(l)}}return(l,u)=>(g(),m("section",Fc,[a("div",Bc,[a("div",zc,w(["history","activities","activity-designer"].includes(i.value)?"◈":i.value==="workorder"?"▣":"⇄"),1),a("div",$c,[a("h3",null,w(s.value.heading),1),a("p",null,w(s.value.detail),1)])]),i.value==="history"||i.value==="activities"?(g(),m("label",Hc,[u[1]||(u[1]=X("Seriennummer ",-1)),fe(a("input",{"onUpdate:modelValue":u[0]||(u[0]=d=>n.value=d),maxlength:120,placeholder:"Optional vormerken …",autocomplete:"off"},null,512),[[Se,n.value]])])):z("",!0),a("div",Wc,[a("span",Vc,w(e.station||"Station wählen"),1),a("button",{class:"wb-btn wb-primary",type:"button",onClick:o},w(s.value.action)+" ↗",1)]),r.value?(g(),m("p",Kc,w(r.value),1)):z("",!0),u[2]||(u[2]=a("p",{class:"wb-hint wb-module-note"},"Dieser Baustein öffnet die bestehende Workbench-Funktion. Die iTAC-MES-Sitzung muss dort angemeldet sein; Schreibaktionen werden im Widget nicht dupliziert.",-1))]))}}),fn=["SERIAL_NUMBER","SERIAL_NUMBER_POS","STATION_DESC","STATION_DIAG_NUMBER","STATION_NUMBER","WORKORDER_NUMBER","WORKSTEP_DESC","WORKSTEP_NUMBER","BOOK_DATE","BOOK_STATE","CYCLE_TIME","PROCESS_LAYER"],hn=["BOOK_REFERENCE","COMP_NAME","FAILURE_ACTION_CODE","FAILURE_ACTION_INFO","FAILURE_CAUSE_CODE","FAILURE_CAUSE_DESC","FAILURE_CAUSE_INFO","FAILURE_IMAGE_CODE","FAILURE_IMAGE_DESC","FAILURE_MEASURE_CODE","FAILURE_MEASURE_INFO","FAILURE_SEQUENCE_NUMBER","FAILURE_TYPE_CODE","FAILURE_TYPE_DESC","FAILURE_TYPE_INFO","INFO","INFO_TXT_REPAIR","MAJOR_FAILURE","PART_DESC","PART_NUMBER","REPAIRED","REPAIRED_DATE","SERIAL_NUMBER","SERIAL_NUMBER_POS","STATION_DIAG_NUMBER","STATION_NUMBER","STATION_REPAIR_DESC","WORKORDER_NUMBER"],pn=["BOOK_DATE","BOOK_REFERENCE","COMP_NAME","FAILURE_SLIP_REFERENCE","SEQUENCE_NUMBER","STATION_NUMBER","TEST_STEP_NAME","WORKORDER_NUMBER","WORKSTEP_NUMBER"],gn=["FUNCTION","FUNCTION_DESC","FUNCTION_STEP","LOWER_LIMIT","MEASURE_FAIL_CODE","MEASURE_NAME","MEASURE_TYPE","MEASURE_VALUE","NOMINAL","SEQUENCE_NUMBER","SERIAL_NUMBER","SERIAL_NUMBER_POS","STATION_DESC","STATION_NUMBER","TOLERANCE","UNIT","UPPER_LIMIT","WORKORDER_NUMBER","WORKSTEP_NUMBER"],mn=["SERIAL_NUMBER","SERIAL_NUMBER_POS","SERIAL_SLAVE_NUMBER","PART_NUMBER","PART_DESC","BOM_VERSION","BOM_VARIANT","STATION_NUMBER","WORKORDER_NUMBER"],vn=["COMP_NAME","PART_NUMBER","MATERIAL_BIN_NUMBER","BOOK_DATE","PART_PARENT_NUMBER","SETUP_COMP_NAME","SETUP_POSITION","WORKSTEP_NUMBER","STATION_NUMBER","STATION_DESC","WORKORDER_NUMBER"],Ys=[{id:"booking",title:"Buchungen",keys:fn},{id:"failure",title:"Fehler",keys:hn},{id:"slip",title:"Fehlerscheine",keys:pn},{id:"measure",title:"Messwerte",keys:gn},{id:"merge",title:"Merge Parts",keys:mn},{id:"setup",title:"Rüstung",keys:vn}],qo={SERIAL_NUMBER:"Seriennummer",STATION_NUMBER:"Station",WORKORDER_NUMBER:"Auftrag",WORKSTEP_NUMBER:"Schritt",WORKSTEP_AVO:"AVO",WORKSTEP_DESC:"Arbeitsgang",BOOK_DATE:"Datum",BOOK_STATE:"Status",PROCESS_LAYER:"Lage",PART_NUMBER:"Sachnummer",PART_DESC:"Beschreibung",MEASURE_NAME:"Messgröße",MEASURE_VALUE:"Messwert",FAILURE_TYPE_DESC:"Fehlerart",FAILURE_TYPE_CODE:"Fehlercode",MATERIAL_BIN_NUMBER:"MBK",SERIAL_SLAVE_NUMBER:"Verbundteil",COMP_NAME:"Komponente",ATTRIBUTE_CODE:"Attribut",ATTRIBUTE_VALUE:"Wert"};function Ye(t,e,i=e){if(t==null)return[];if(!Array.isArray(t))throw new Error("IMSAPI liefert kein Array");if(t.length&&typeof t[0]=="object"&&t[0]!==null)return t;if(!e.length||t.length%e.length!==0)throw new Error("IMSAPI Rückgabe passt nicht zu den Ergebnis-Keys");const s=[];for(let n=0;nr[o]=t[n+l]??null),s.push(r)}return s}function ft(t){const e=String(t??"").trim().toUpperCase();return{TOP:"0",BOT:"1",BOTTOM:"1",INDEP:"2","INDEP.":"2",INDEPENDENT:"2"}[e]||e}function pi(t){return{0:"TOP",1:"BOTTOM",2:"INDEPENDENT"}[ft(t)]||String(t??"—")}function bn(t,e=""){if(t==null||t==="")return"—";if(["BOOK_DATE","REPAIRED_DATE"].includes(e)){const i=Number(t);if(Number.isFinite(i)&&i>0)return new Date(i).toLocaleString("de-DE")}return e==="PROCESS_LAYER"?pi(t):String(t)}function ci(t){return/^[A-Za-z0-9_.-]{1,120}$/.test(t)}function Xt(t){return/^[A-Za-z0-9_.:/-]{1,120}$/.test(t)}function Xo(){return jo()?{sessionId:"server-managed"}:null}class Qo extends Error{constructor(e,i,s){super(e),this.action=i,this.code=s}action;code}async function Te(t,e,i=[0]){if(!/^[A-Za-z][A-Za-z0-9]+$/.test(t))throw new Error("Ungültige IMSAPI-Aktion");if(!jo())throw new Error("Bitte zuerst am HMI über IMSAPI anmelden");const n=(await we("/mes/actions/"+t,"POST",e))?.result;if(!n||n.return_value===void 0)throw new Error(t+": ungültige IMSAPI-Antwort");const r=Number(n.return_value);if(!i.includes(r))throw new Qo(t+" ("+r+"): "+(n.customErrorString||n.errorString||"MES-Fehler"),t,r);return n}async function Zo(t,e){if(!ci(t)||!Xt(e))throw new Error("Station oder Seriennummer ungültig");const i={stationNumber:t,serialNumber:e},s=await Te("trGetSerialNumberHistoryData",{...i,serialNumberPos:"-1",processLayer:"2",desolvingSerialNumber:"1",desolvingLevel:"0",bookingResultKeys:fn,failureDataResultKeys:hn,failureSlipDataResultKeys:pn,measureDataResultKeys:gn}),n={booking:Ye(s.bookingResultValues,fn),failure:Ye(s.failureDataResultValues,hn),slip:Ye(s.failureSlipDataResultValues,pn),measure:Ye(s.measureDataResultValues,gn),merge:[],setup:[]},r=await Promise.allSettled([Te("trGetMergeParts",{...i,serialNumberPos:"-1",resolveLevel:"2",resolveDirection:"0",mergePartsResultKeys:mn}),Te("setupGetSetupDataBySerialNumber",{...i,partNumber:"-1",location:"-1",level:"-1",setupResultKeys:vn})]),o=[];return r.forEach((l,u)=>{const d=u?"setup":"merge";l.status==="fulfilled"?n[d]=Ye(l.value[u?"setupResultValues":"mergePartsResultValues"],u?vn:mn):o.push(d+": "+String(l.reason))}),{result:s,sections:n,warnings:o}}async function qs(t){const e=["WORKORDER_NUMBER","PART_NUMBER","PART_DESC","PROCESS_LAYER","QUANTITY"],i=await Te("trGetStationSetting",{stationNumber:t,stationSettingResultKeys:e});return Ye(i.stationSettingResultValues,e)[0]||null}async function jc(t){const e=["WORKORDER_NUMBER","PART_NUMBER","PART_DESC","PROCESS_LAYER"],i=await Te("trGetWorkOrderForStation",{stationNumber:t,workorderFilter:[{key:"MAX_ROWS",value:"100"}],workorderResultKeys:e},[0,3]);return Ye(i.workorderResultValues,e)}async function Mr(t,e,i,s,n,r="1"){if(!ci(t)||!Xt(e)||!["0","1","2"].includes(String(s))||![0,1].includes(n))throw new Error("Ungültige Buchungsparameter");const o=["ERROR_CODE","SERIAL_NUMBER","SERIAL_NUMBER_STATE"],l=await Te("trUploadState",{stationNumber:t,processLayer:i,serialNumberRef:e,serialNumberRefPos:r,serialNumberState:String(s),duplicateSerialNumber:String(n),bookDate:"-1",cycleTime:"5",serialNumberUploadKeys:o,serialNumberUploadValues:[]});if(Ye(l.serialNumberUploadValues,o).some(d=>Number(d.ERROR_CODE)!==0))throw new Error("Statusbuchung meldet Fehler bei Seriennummer "+e);return l}const Jc={class:"wb-mes-client"},Yc={class:"wb-mes-strip"},qc={class:"wb-mes-pill"},Xc={class:"wb-mes-muted"},Qc=["disabled"],Zc=["disabled"],ed=["disabled"],td=["disabled"],id={key:0,class:"wb-mes-note"},sd={key:1,class:"wb-alert",role:"alert"},nd={key:2,class:"wb-mes-note",role:"status"},rd={key:3,class:"wb-mes-strip"},od={class:"wb-mes-tabs",role:"tablist"},ld=["aria-selected","onClick"],ad={class:"wb-table-scroll"},ud={class:"wb-table"},cd={key:0},dd={key:0},fd=["disabled","onClick"],hd=["title"],pd={key:0},gd=["colspan"],md={class:"wb-mes-dialog",role:"dialog","aria-modal":"true"},vd=["disabled"],bd=["disabled"],yd={class:"wb-mes-check"},wd=["disabled"],Ed={class:"wb-mes-orders"},_d=["onClick"],Sd={key:0},Rd=["value"],Ad=["disabled"],kd={key:3,class:"wb-alert"},Td=He({__name:"HistoryBookingWidget",props:{widget:{},station:{},demo:{type:Boolean}},setup(t){const e=t,i=T(e.station),s=T(""),n=T(!1),r=T(""),o=T(""),l=T("booking"),u=T({}),d=T({}),c=T(null),f=T([]),y=T(""),S=T("none"),A=T(null),N=T(""),I=T("2"),B=T(0),U=T(0),J=T(!0),P=T(!1),Z=re(()=>Ys.map(q=>({id:q.id,title:q.title,count:(u.value[q.id]||[]).length}))),j=re(()=>Ys.find(q=>q.id===l.value)||Ys[0]),Q=re(()=>u.value[l.value]||[]),se=re(()=>j.value.keys),he=re(()=>!e.demo&&!!Xo()&&ci(i.value));Ze(()=>e.station,q=>{i.value=q,c.value=null,u.value={}}),ii(()=>{he.value&&L();const q=new URLSearchParams(location.search).get("serial")||sessionStorage.getItem("hmiLastSerial")||"";Xt(q)&&(s.value=q)});function ne(){r.value="",o.value=""}async function L(){if(he.value)try{c.value=await qs(i.value)}catch(q){o.value="Aktiver Auftrag nicht verfügbar: "+String(q)}}async function te(){if(ne(),!he.value){r.value="Workbench-Anmeldung und Station erforderlich";return}if(!Xt(s.value)){r.value="Ungültige Seriennummer";return}n.value=!0,u.value={};try{const q=await Zo(i.value,s.value);u.value=q.sections,d.value=q.result,o.value=q.warnings.join(" · ")||"Seriennummer aktualisiert"}catch(q){q instanceof Qo&&q.code===-110?(S.value="assign",P.value=!1,await L(),o.value="Seriennummer nicht gefunden. Zuweisung zum aktiven Auftrag möglich."):r.value=String(q)}finally{n.value=!1}}async function _e(){ne(),n.value=!0;try{f.value=await jc(i.value),S.value="orders"}catch(q){r.value=String(q)}finally{n.value=!1}}const de=re(()=>{const q=new Map;for(const W of f.value){const oe=String(W.WORKORDER_NUMBER||"");if(!oe)continue;const Fe=q.get(oe)||{number:oe,part:String(W.PART_DESC||W.PART_NUMBER||""),layers:[]};Fe.layers.includes(ft(W.PROCESS_LAYER))||Fe.layers.push(ft(W.PROCESS_LAYER)),q.set(oe,Fe)}return[...q.values()].filter(W=>(W.number+" "+W.part).toLowerCase().includes(y.value.toLowerCase()))});async function ie(){if(he.value&&!(!N.value||!["0","1","2"].includes(I.value))){n.value=!0,ne();try{if(await Te("trActivateWorkOrder",{stationNumber:i.value,workOrderNumber:N.value,serialNumber:"-1",serialNumberPos:"-1",processLayer:I.value,flag:"1"}),await L(),String(c.value?.WORKORDER_NUMBER)!==N.value||ft(c.value?.PROCESS_LAYER)!==I.value)throw new Error("Aktivierung vom MES noch nicht bestätigt");S.value="none",o.value="Auftrag erfolgreich aktiviert"}catch(q){r.value=String(q)}finally{n.value=!1}}}function Y(q){if(!Xt(String(q.SERIAL_NUMBER||""))||!ci(String(q.STATION_NUMBER||""))||!["0","1","2"].includes(ft(q.PROCESS_LAYER))){r.value="Buchungszeile enthält keine gültige Station, Lage oder Seriennummer";return}A.value=q,B.value=0,U.value=0,S.value="rebook"}async function Ee(){if(!he.value||!A.value)return;const q=A.value;n.value=!0,ne();try{if(!confirm(`Status ${B.value} für ${q.SERIAL_NUMBER} an ${q.STATION_NUMBER} buchen?`))return;await Mr(String(q.STATION_NUMBER),String(q.SERIAL_NUMBER),ft(q.PROCESS_LAYER),B.value,U.value),S.value="none",o.value="Statusbuchung durch MES bestätigt",await te()}catch(W){r.value=String(W)}finally{n.value=!1}}async function be(){if(he.value){if(!c.value||!Xt(s.value)||!ci(i.value)){r.value="Aktiver Auftrag/Station/Seriennummer fehlen";return}n.value=!0,ne();try{const q=await qs(i.value);if(String(q?.WORKORDER_NUMBER)!==String(c.value.WORKORDER_NUMBER)||ft(q?.PROCESS_LAYER)!==ft(c.value.PROCESS_LAYER))throw Error("Auftrag oder Lage haben sich geändert");if(P.value||(await Te("trAssignSerialNumberForProductOrWorkOrder",{stationNumber:i.value,workOrderNumber:q?.WORKORDER_NUMBER,partNumber:"-1",bomVersion:"-2",serialNumberRef:s.value,serialNumberRefPos:"1",processLayer:ft(q?.PROCESS_LAYER),serialNumberArray:[],activateWorkOrder:"1"}),P.value=!0),J.value){const W=await qs(i.value);if(String(W?.WORKORDER_NUMBER)!==String(q?.WORKORDER_NUMBER)||ft(W?.PROCESS_LAYER)!==ft(q?.PROCESS_LAYER))throw Error("Auftrag während Zuweisung geändert");await Mr(i.value,s.value,ft(q?.PROCESS_LAYER),0,0)}S.value="none",o.value="Seriennummer zugewiesen"+(J.value?" und gebucht":""),await te()}catch(q){r.value=(P.value?"Seriennummer bereits zugewiesen. ":"")+String(q)}finally{n.value=!1}}}const We=re(()=>se.value.filter(q=>Q.value.some(W=>W[q]!==void 0))),Je=re(()=>We.value.length?We.value:se.value);return(q,W)=>(g(),m("div",Jc,[a("div",Yc,[a("span",qc,w(i.value||"Station fehlt"),1),a("span",Xc,[W[8]||(W[8]=X("Auftrag: ",-1)),a("b",null,w(c.value?.WORKORDER_NUMBER||"—"),1),X(" · "+w(Ke(pi)(c.value?.PROCESS_LAYER)),1)]),a("button",{class:"wb-btn wb-small",disabled:n.value||!he.value,onClick:_e},"Auftrag wählen",8,Qc),a("button",{class:"wb-btn wb-small",disabled:n.value||!he.value,onClick:L},"↻",8,Zc)]),a("form",{class:"wb-mes-form",onSubmit:ct(te,["prevent"])},[a("label",null,[W[9]||(W[9]=X("Seriennummer",-1)),fe(a("input",{"onUpdate:modelValue":W[0]||(W[0]=oe=>s.value=oe),autocomplete:"off",placeholder:"Seriennummer scannen",disabled:n.value},null,8,ed),[[Se,s.value,void 0,{trim:!0}]])]),a("button",{class:"wb-btn wb-primary",disabled:n.value||!he.value},w(n.value?"Lade…":"Daten abrufen"),9,td)],32),t.demo||!he.value?(g(),m("p",id,w(t.demo?"Designer-Demo – keine MES-Schreibzugriffe":"Bitte zuerst die Workbench-Station anmelden."),1)):z("",!0),r.value?(g(),m("p",sd,w(r.value),1)):z("",!0),o.value?(g(),m("p",nd,w(o.value),1)):z("",!0),d.value.partNumber||d.value.workOrderNumber?(g(),m("div",rd,[a("span",null,[W[10]||(W[10]=X("Sachnummer ",-1)),a("b",null,w(d.value.partNumber||"—"),1)]),a("span",null,w(d.value.partDesc),1),a("span",null,[W[11]||(W[11]=X("Auftrag ",-1)),a("b",null,w(d.value.workOrderNumber),1)])])):z("",!0),a("div",od,[(g(!0),m(K,null,ge(Z.value,oe=>(g(),m("button",{key:oe.id,class:Me(["wb-mes-tab",{selected:l.value===oe.id}]),"aria-selected":l.value===oe.id,role:"tab",onClick:Fe=>l.value=oe.id},[X(w(oe.title)+" ",1),a("small",null,w(oe.count),1)],10,ld))),128))]),a("div",ad,[a("table",ud,[a("thead",null,[a("tr",null,[l.value==="booking"?(g(),m("th",cd,"Aktion")):z("",!0),(g(!0),m(K,null,ge(Je.value,oe=>(g(),m("th",{key:oe},w(Ke(qo)[oe]||oe),1))),128))])]),a("tbody",null,[(g(!0),m(K,null,ge(Q.value,(oe,Fe)=>(g(),m("tr",{key:Fe},[l.value==="booking"?(g(),m("td",dd,[a("button",{class:"wb-btn wb-small",title:"Statusumbuchung",disabled:n.value||!he.value,onClick:Oe=>Y(oe)},"⚒ Umbuchen",8,fd)])):z("",!0),(g(!0),m(K,null,ge(Je.value,Oe=>(g(),m("td",{key:Oe,title:Ke(bn)(oe[Oe],Oe)},w(Ke(bn)(oe[Oe],Oe)),9,hd))),128))]))),128)),Q.value.length?z("",!0):(g(),m("tr",pd,[a("td",{colspan:Je.value.length+(l.value==="booking"?1:0),class:"wb-empty"},w(s.value?"Keine Einträge in dieser Ansicht":"Seriennummer scannen und abrufen"),9,gd)]))])])]),(g(),De(ho,{to:"body"},[S.value!=="none"?(g(),m("div",{key:0,class:"wb-mes-overlay",onClick:W[7]||(W[7]=ct(oe=>!n.value&&(S.value="none"),["self"]))},[a("section",md,[a("header",null,[a("strong",null,w(S.value==="rebook"?"Statusumbuchung":S.value==="assign"?"Seriennummer zuweisen":"Auftrag aktivieren"),1),a("button",{class:"wb-btn",disabled:n.value,onClick:W[1]||(W[1]=oe=>S.value="none")},"✕",8,vd)]),S.value==="rebook"?(g(),m(K,{key:0},[a("p",null,[W[12]||(W[12]=X("Seriennummer: ",-1)),a("b",null,w(A.value?.SERIAL_NUMBER),1),X(" · Lage: "+w(Ke(pi)(A.value?.PROCESS_LAYER))+" · Station: "+w(A.value?.STATION_NUMBER),1)]),a("label",null,[W[14]||(W[14]=X("Status",-1)),fe(a("select",{"onUpdate:modelValue":W[2]||(W[2]=oe=>B.value=oe)},[...W[13]||(W[13]=[a("option",{value:0},"0 – Gut",-1),a("option",{value:1},"1 – Nacharbeit",-1),a("option",{value:2},"2 – Ausschuss",-1)])],512),[[Ot,B.value,void 0,{number:!0}]])]),a("label",null,[W[16]||(W[16]=X("Nutzen",-1)),fe(a("select",{"onUpdate:modelValue":W[3]||(W[3]=oe=>U.value=oe)},[...W[15]||(W[15]=[a("option",{value:0},"0 – Einzelschaltung",-1),a("option",{value:1},"1 – Nutzen",-1)])],512),[[Ot,U.value,void 0,{number:!0}]])]),a("button",{class:"wb-btn wb-primary",disabled:n.value,onClick:Ee},"Status buchen",8,bd)],64)):S.value==="assign"?(g(),m(K,{key:1},[a("p",null,[W[17]||(W[17]=X("Seriennummer ",-1)),a("b",null,w(s.value),1),W[18]||(W[18]=X(" zum aktiven Auftrag ",-1)),a("b",null,w(c.value?.WORKORDER_NUMBER||"—"),1),W[19]||(W[19]=X(" zuweisen?",-1))]),a("p",null,"Prozesslage: "+w(Ke(pi)(c.value?.PROCESS_LAYER)),1),a("label",yd,[fe(a("input",{type:"checkbox","onUpdate:modelValue":W[4]||(W[4]=oe=>J.value=oe)},null,512),[[qt,J.value]]),W[20]||(W[20]=X(" Anschließend Status „Gut“ buchen",-1))]),a("button",{class:"wb-btn wb-primary",disabled:n.value||!c.value,onClick:be},w(P.value?"Zuweisung abschließen":"Zuweisen"),9,wd)],64)):(g(),m(K,{key:2},[fe(a("input",{"onUpdate:modelValue":W[5]||(W[5]=oe=>y.value=oe),placeholder:"Auftrag filtern"},null,512),[[Se,y.value]]),a("div",Ed,[(g(!0),m(K,null,ge(de.value,oe=>(g(),m("button",{key:oe.number,class:"wb-mes-order",onClick:Fe=>{N.value=oe.number,I.value=oe.layers[0]||"2"}},[a("b",null,w(oe.number),1),a("small",null,w(oe.part),1),a("span",null,w(oe.layers.map(Ke(pi)).join(" / ")),1)],8,_d))),128))]),N.value?(g(),m("div",Sd,[a("b",null,"Auftrag: "+w(N.value),1),a("label",null,[W[21]||(W[21]=X("Prozesslage",-1)),fe(a("select",{"onUpdate:modelValue":W[6]||(W[6]=oe=>I.value=oe)},[(g(!0),m(K,null,ge(de.value.find(oe=>oe.number===N.value)?.layers,oe=>(g(),m("option",{key:oe,value:oe},w(Ke(pi)(oe)),9,Rd))),128))],512),[[Ot,I.value]])]),a("button",{class:"wb-btn wb-primary",disabled:n.value,onClick:ie},"Aktivieren",8,Ad)])):z("",!0)],64)),r.value?(g(),m("p",kd,w(r.value),1)):z("",!0)])])):z("",!0)]))]))}}),Cd={class:"wb-mes-client"},Nd={class:"wb-mes-strip"},Md={class:"wb-mes-pill"},Od=["disabled"],xd={key:0,class:"wb-mes-note"},Pd={key:1,class:"wb-alert",role:"alert"},Id={key:2,class:"wb-mes-note",role:"status"},Ld={class:"wb-mes-tabs"},Dd=["onClick"],Ud={class:"wb-table-scroll"},Fd={class:"wb-table"},Bd={key:0},zd={key:0,class:"wb-mes-actions"},$d=["disabled","onClick"],Hd=["disabled","onClick"],Wd=["disabled","onClick"],Vd=["disabled","onClick"],Kd=["disabled","onClick"],Gd=["disabled","onClick"],jd={key:0},Jd=["colspan"],Yd={class:"wb-mes-dialog",role:"dialog","aria-modal":"true"},qd=["disabled"],Xd={key:0,class:"wb-alert"},Qd={class:"wb-mes-check"},Zd=["disabled"],ef={class:"wb-mes-orders"},tf=["onClick"],sf=["disabled"],nf=["disabled"],rf={class:"wb-mes-orders"},of=["value"],lf={class:"wb-mes-orders"},af=["value"],uf={class:"wb-mes-check"},cf=["disabled"],df={class:"wb-mes-actions"},ff=["disabled"],hf=["disabled"],pf=["disabled"],gf=["disabled"],mf={key:5,class:"wb-alert"},vf=He({__name:"ManualProductionWidget",props:{widget:{},station:{},demo:{type:Boolean}},setup(t){const e=t,i=T(e.station),s=T(""),n=T(!1),r=T(""),o=T(""),l=T([]),u=T([]),d=T({}),c=T([]),f=T([]),y=T([]),S=T([]),A=T(!1),N=T(""),I=T("plan"),B=T("none"),U=T(null),J=T(0),P=T(0),Z=T(-1),j=T(""),Q=T([]),se=T([]),he=T(""),ne=T(""),L=T(!1),te=T(""),_e=T("setup"),de=T(""),ie=T(""),Y=re(()=>!e.demo&&!!Xo()&&ci(i.value));Ze(()=>e.station,k=>{i.value=k,Ee()}),ii(()=>{const k=new URLSearchParams(location.search).get("serial")||sessionStorage.getItem("hmiLastSerial")||"";Xt(k)&&(s.value=k)});function Ee(){l.value=[],u.value=[],d.value={},c.value=[],f.value=[],y.value=[],N.value=""}function be(k){return Object.keys(k)}const We=re(()=>({booking:d.value.booking||[],failure:d.value.failure||[],slip:d.value.slip||[],measure:d.value.measure||[],setup:c.value,setupcheck:f.value,attributes:y.value,plan:l.value})[I.value]||[]),Je=re(()=>We.value.length?be(We.value[0]):[]);function q(k){r.value=k instanceof Error?k.message:String(k)}function W(){return Y.value?!0:(r.value="Buchungsaktionen sind nur im angemeldeten Werker-Modus erlaubt",!1)}function oe(k){return String(k.Arbeitsschritt??"")}function Fe(k){const v=oe(k);return[...d.value.booking||[]].filter(R=>String(R.WORKSTEP_NUMBER)===v).sort((R,O)=>Number(O.BOOK_DATE||0)-Number(R.BOOK_DATE||0))[0]}function Oe(k){const v=Fe(k);if(String(v?.BOOK_STATE)==="2")return{ok:!1,reason:"Arbeitsschritt ist Ausschuss"};const R=l.value.indexOf(k);if(R<=0)return{ok:!0,reason:""};const O=l.value[R-1];return String(Fe(O)?.BOOK_STATE)!=="0"?{ok:!1,reason:"Vorgänger "+oe(O)+" ist nicht mit Gut (0) gebucht"}:{ok:!0,reason:""}}function G(k){return String(A.value?k.AVO:k.Prozesslage??"2")}const dt=re(()=>U.value?u.value.filter(k=>String(k.MEASURE_NAME||"").startsWith(String(U.value?.AVO)+"|")):[]);async function ze(){if(r.value="",o.value="",!Y.value||!Xt(s.value)){r.value="Workbench-Anmeldung, Station und gültige Seriennummer erforderlich";return}n.value=!0,Ee();try{const k=await Zo(i.value,s.value);if(d.value=k.sections,N.value=String(k.result.workOrderNumber||k.sections.booking[0]?.WORKORDER_NUMBER||""),!N.value)throw new Error("Kein Auftrag zur Seriennummer gefunden");const v=[{key:"FUNC_MODE",value:"0"},{key:"WORKORDER_NUMBER",value:N.value},{key:"WORKSTEP_FLAG",value:"1"}];let R=["WORKSTEP_AVO","WORKSTEP_NUMBER","PROCESS_LAYER","WORKSTEP_DESC","OBLIGATORY_CONFIRM_FLAG","PART_NUMBER","SKILL_LEVEL"],O=["AVO","Arbeitsschritt","Prozesslage","Beschreibung","Rueckmeldepflichtig","Artikelnummer","Skill"],V;try{V=await Te("mdataGetWorkplanData",{stationNumber:i.value,workplanFilter:v,workplanDataResultKeys:R})}catch(xe){if(xe?.code!==-368)throw xe;R=R.slice(0,-1),O=O.slice(0,-1),V=await Te("mdataGetWorkplanData",{stationNumber:i.value,workplanFilter:v,workplanDataResultKeys:R})}l.value=Ye(V.workplanDataResultValues,R,O);const ae=["MEASURE_NAME","FUNCTION","FUNCTION_DESC","FUNCTION_STEP","FUNCTION_STEP_DESC","MIN_VALUE","MAX_VALUE","NOMINAL","UNIT"],me=["MEASURE_NAME","FUNCTION","FUNCTION_DESC","FUNCTION_STEP","FUNCTION_STEP_DESC","LOWER_LIMIT","UPPER_LIMIT","NOMINAL","UNIT"],ve=["COMP_NAME","PART_NUMBER","MATERIAL_BIN_NUMBER","BOOK_DATE","SETUP_POSITION","WORKSTEP_NUMBER","STATION_NUMBER","STATION_DESC","WORKORDER_NUMBER"],ye=["COMP_NAME","PART_NUMBER","PART_DESC","PROCESS_LAYER","QUANTITY","PRODUCT_FLAG","SETUP_FLAG","UNIT","WORKSTEP_NUMBER","SETUP_POSITION"],ke=["PART_NUMBER","MATERIAL_BIN_NUMBER","MATERIAL_BIN_QTY_ACTUAL","MATERIAL_BIN_STATE","EXPIRATION_DATE","SETUP_POSITION"],Le=await Promise.allSettled([Te("mdaGetRecipeData",{stationNumber:i.value,recipeVersionId:-1,function:"-1",functionStep:"-1",measurementName:"-1",sequentialNumber:-1,type:"-1",measurementType:"-1",objectType:1,recipeFilters:[{key:"PART_NUMBER",value:String(l.value[0]?.Artikelnummer||"-1")}],recipeResultKeys:ae},[0,-702]),Te("setupGetSetupDataBySerialNumber",{stationNumber:i.value,serialNumber:s.value,partNumber:"-1",location:"-1",level:"-1",setupResultKeys:ve}),Te("setupGetMaterialSetup",{stationNumber:i.value,processLayer:-1,setupFlag:0,setupStartDate:-1,setupEndDate:-1,setupResultKeys:ke,componentResultKeys:[]}),Te("mdataGetBomData",{stationNumber:i.value,bomDataFilter:[{key:"SERIAL_NUMBER",value:s.value}],bomDataResultKeys:ye}),Te("attribGetAttributeValues",{stationNumber:i.value,objectType:0,objectNumber:s.value,objectDetail:"-1",attributeCodeArray:[],allMergeLevel:1,attributeResultKeys:["ATTRIBUTE_CODE","ATTRIBUTE_VALUE","ERROR_CODE"]}),Te("mdataGetFailureDataForStation",{stationNumber:i.value,functionMode:0,failureDataResultKeys:["FAILURE_TYPE_CODE","FAILURE_TYPE_DESC"]}),Te("mdataGetStationConfiguration",{stationNumber:i.value,stationConfigFilter:[{key:"CODE_NUMBER",value:"8310"}],stationConfigCodeResultKeys:["CODE_VALUE","IS_USED"],stationParamResultKeys:[],stationLicenseResultKeys:[]})]),$e=xe=>{const Be=Le[xe];return Be.status==="fulfilled"?Be.value:{}};u.value=Ye($e(0).recipeResultValues,ae,me),c.value=Ye($e(1).setupResultValues,ve);const et=Ye($e(2).setupResultValues,ke);f.value=Ye($e(3).bomDataResultValues,ye).map(xe=>({...xe,MATERIAL_BIN_NUMBERS:et.filter(Be=>String(Be.PART_NUMBER)===String(xe.PART_NUMBER)).map(Be=>String(Be.MATERIAL_BIN_NUMBER)).join(", ")})),y.value=Ye($e(4).attributeResultValues,["ATTRIBUTE_CODE","ATTRIBUTE_VALUE","ERROR_CODE"]),S.value=Ye($e(5).failureDataResultValues,["FAILURE_TYPE_CODE","FAILURE_TYPE_DESC"]);const St=$e(6).stationConfigCodeResultValues||[];A.value=String(St[0]||"").toUpperCase()==="A"&&["1","TRUE"].includes(String(St[1]||"").toUpperCase());const si=Le.map((xe,Be)=>xe.status==="rejected"?`Datenquelle ${Be+1}: ${String(xe.reason)}`:"").filter(Boolean);o.value=si.length?"Teildaten geladen. "+si.join(" · "):`Arbeitsplan: ${l.value.length} Schritte · ${u.value.length} Rezeptwerte`}catch(k){q(k)}finally{n.value=!1}}function ot(k,v){r.value="",U.value=v,B.value=k,Z.value=-1,j.value="",Q.value=[],se.value=[],he.value="",ne.value="",J.value=0,P.value=0,L.value=!1}function Ei(k){Z.value=k,j.value=String(dt.value[k]?.MEASURE_VALUE??"")}function p(){const k=dt.value[Z.value];if(!k){r.value="Messgröße auswählen";return}k.MEASURE_VALUE=j.value,o.value="Messwert lokal vorgemerkt. MES-Buchung über Status-Dialog ausführen.",B.value="none"}function b(){const k=["MEASURE_NAME","FUNCTION","FUNCTION_DESC","FUNCTION_STEP","FUNCTION_STEP_DESC","LOWER_LIMIT","UPPER_LIMIT","MEASURE_VALUE","NOMINAL","UNIT","MEASURE_FAIL_CODE"],R=[...dt.value].sort((O,V)=>String(O.MEASURE_NAME||"").localeCompare(String(V.MEASURE_NAME||""),"de",{numeric:!0})).flatMap(O=>[String(O.MEASURE_NAME||"").split("|")[1]||"",O.FUNCTION||"",O.FUNCTION_DESC||"",O.FUNCTION_STEP||"",O.FUNCTION_STEP_DESC||"",O.LOWER_LIMIT||"",O.UPPER_LIMIT||"",O.MEASURE_VALUE||"",O.NOMINAL||"",O.UNIT||"",0]);return{keys:k,values:R}}async function C(){if(!W()||!U.value)return;const k=Oe(U.value);if(!k.ok){r.value=k.reason;return}const v=G(U.value);if(confirm(`Status ${J.value} an Schritt ${oe(U.value)} buchen?`)){n.value=!0,r.value="";try{const R=b();R.values.length?await Te("trUploadResultDataAndRecipe",{stationNumber:i.value,processLayer:v,recipeVersionId:-1,serialNumberRef:s.value,serialNumberRefPos:"-1",serialNumberState:J.value,duplicateSerialNumber:P.value,bookDate:-1,cycleTime:10,recipeVersionMode:0,resultUploadKeys:R.keys,resultUploadValues:R.values}):await Te("trUploadState",{stationNumber:i.value,processLayer:v,serialNumberRef:s.value,serialNumberRefPos:"-1",serialNumberState:J.value,duplicateSerialNumber:P.value,bookDate:-1,cycleTime:10,serialNumberUploadKeys:["SERIAL_NUMBER","SERIAL_NUMBER_STATE","ERROR_CODE"],serialNumberUploadValues:[]}),B.value="none",await ze(),o.value="Statusbuchung durch MES bestätigt"}catch(R){q(R)}finally{n.value=!1}}}async function F(){if(W()){if(!U.value||!Q.value.length){r.value="Fehlercode auswählen";return}if(confirm("Fehlerbuchung ausführen?")){n.value=!0,r.value="";try{const k=se.value.length?["COMP_NAME","ERROR_CODE","FAILURE_TYPE_CODE","REPAIRED"]:["ERROR_CODE","FAILURE_TYPE_CODE","REPAIRED"],v=(se.value.length?se.value:[""]).flatMap(R=>Q.value.flatMap(O=>se.value.length?[R,"0",O,L.value?"1":"0"]:["0",O,L.value?"1":"0"]));await Te("trUploadFailureAndResultData",{stationNumber:i.value,processLayer:G(U.value),serialNumberRef:s.value,serialNumberRefPos:"-1",...he.value?{serialNumberState:Number(he.value)}:{},duplicateSerialNumber:P.value,bookDate:-1,cycleTime:10,measureKeys:["ERROR_CODE","MEASURE_FAIL_CODE","MEASURE_NAME","MEASURE_VALUE"],measureValues:[],failureKeys:k,failureValues:v,failureSlipKeys:["ERROR_CODE","TESTSTEP_NAME"],failureSlipValues:ne.value.trim()?["0",ne.value.trim()]:[]}),B.value="none",await ze(),o.value="Fehlerbuchung erfolgreich"}catch(k){q(k)}finally{n.value=!1}}}}async function x(k){if(!(!W()||!U.value)&&confirm(`Rüstzustand ${k} für Station ${i.value} ändern?`)){n.value=!0,r.value="";try{const v=["PART_NUMBER","BOM_VERSION_ERP","PROCESS_LAYER","WORKORDER_NUMBER","QUANTITY"],R=await Te("trGetStationSetting",{stationNumber:i.value,stationSettingResultKeys:v}),O=Ye(R.stationSettingResultValues,v)[0];if(!O)throw new Error("Stationseinstellungen fehlen");await Te("setupStateChange",{stationNumber:i.value,processLayer:O.PROCESS_LAYER,workOrderNumber:O.WORKORDER_NUMBER,serialNumber:"-1",serialNumberPos:"-1",setupState:k}),B.value="none",await ze()}catch(v){q(v)}finally{n.value=!1}}}async function D(){if(W()){if(!te.value.trim()||!ci(i.value)){r.value="Materialbehälter fehlt";return}n.value=!0,r.value="";try{const k=te.value.trim();await Te("setupUpdateMaterialSetup",{stationNumber:i.value,materialBinNumber:-1,partNumber:"-1",location:"SMT",setupUploadKeys:["ERROR_CODE","MATERIAL_BIN_NUMBER","SETUP_POSITION","SETUP_STATE"],setupUploadValues:[0,k,k.slice(-6),_e.value==="setup"?0:1],resultKeys:["COMP_REFERENCE"],resultValues:[]}),B.value="none",await ze()}catch(k){q(k)}finally{n.value=!1}}}async function H(){if(W()){if(!de.value.trim()){r.value="Attributcode fehlt";return}n.value=!0,r.value="";try{const k={stationNumber:i.value,objectType:0,objectNumber:s.value,objectDetail:"-1",bookDate:-1,allowOverWrite:1,attributeUploadKeys:["ATTRIBUTE_CODE","ATTRIBUTE_VALUE","ERROR_CODE"],attributeUploadValues:[de.value,ie.value,0]};let v=!1;try{const O=(await Te("attribAppendAttributeValues",k,[0,5])).attributeResultValues;Array.isArray(O)&&O.some(V=>String(V)==="-901")&&(v=!0)}catch(R){if(R?.code!==-901)throw R;v=!0}v&&(await Te("attribCreateAttributeCode",{stationNumber:i.value,codeKeys:["ATTRIBUTE_CODE","DATA_TYPE","OBJECT_TYPE"],codeValues:[de.value,"STRING","0"]}),await Te("attribAppendAttributeValues",k)),B.value="none",await ze()}catch(k){q(k)}finally{n.value=!1}}}async function $(k){if(W()&&confirm("Auftrag für Arbeitsschritt "+oe(k)+" aktivieren?")){n.value=!0,r.value="";try{const v=["WORKORDER_NUMBER"],O=(await Te("trGetSerialNumberInfo",{stationNumber:i.value,serialNumber:s.value,serialNumberPos:"-1",serialNumberResultKeys:v})).serialNumberResultValues?.[0];if(!O)throw Error("Seriennummer hat keinen Auftrag");await Te("trActivateWorkOrder",{stationNumber:i.value,workOrderNumber:String(O),serialNumber:"-1",serialNumberPos:"-1",processLayer:G(k),flag:"1"}),o.value="Auftrag aktiviert"}catch(v){q(v)}finally{n.value=!1}}}return(k,v)=>(g(),m("div",Cd,[a("div",Nd,[a("span",Md,w(i.value||"Station fehlt"),1),a("span",null,[v[17]||(v[17]=X("Auftrag: ",-1)),a("b",null,w(N.value||"—"),1)]),a("span",null,w(A.value?"AVO-Steuerung":"Prozesslage"),1)]),a("form",{class:"wb-mes-form",onSubmit:ct(ze,["prevent"])},[a("label",null,[v[18]||(v[18]=X("Seriennummer",-1)),fe(a("input",{"onUpdate:modelValue":v[0]||(v[0]=R=>s.value=R),autocomplete:"off",placeholder:"Seriennummer scannen"},null,512),[[Se,s.value,void 0,{trim:!0}]])]),a("button",{class:"wb-btn wb-primary",disabled:n.value||!Y.value},w(n.value?"Lade…":"Arbeitsplan laden"),9,Od)],32),Y.value?z("",!0):(g(),m("p",xd,w(t.demo?"Demo – keine MES-Aktionen":"Zuerst die Workbench-Station anmelden."),1)),r.value?(g(),m("p",Pd,w(r.value),1)):z("",!0),o.value?(g(),m("p",Id,w(o.value),1)):z("",!0),a("div",Ld,[(g(),m(K,null,ge(["plan","booking","failure","slip","measure","setup","setupcheck","attributes"],R=>a("button",{key:R,class:Me(["wb-mes-tab",{selected:I.value===R}]),onClick:O=>I.value=R},w({plan:"Arbeitsplan",booking:"Buchungen",failure:"Fehler",slip:"Fehlerschein",measure:"Messwerte",setup:"Rüstung",setupcheck:"SetupCheck",attributes:"Attribute"}[R]),11,Dd)),64))]),a("div",Ud,[a("table",Fd,[a("thead",null,[a("tr",null,[I.value==="plan"?(g(),m("th",Bd,"Aktionen")):z("",!0),(g(!0),m(K,null,ge(Je.value,R=>(g(),m("th",{key:R},w(Ke(qo)[R]||R),1))),128))])]),a("tbody",null,[(g(!0),m(K,null,ge(We.value,(R,O)=>(g(),m("tr",{key:O},[I.value==="plan"?(g(),m("td",zd,[a("button",{class:"wb-btn wb-small",title:"Messwerte",disabled:n.value,onClick:V=>ot("measure",R)},"M",8,$d),a("button",{class:"wb-btn wb-small",title:"Fehler",disabled:n.value,onClick:V=>ot("failure",R)},"F",8,Hd),a("button",{class:"wb-btn wb-small",title:"Rüstung",disabled:n.value,onClick:V=>ot("setup",R)},"R",8,Wd),a("button",{class:"wb-btn wb-small",title:"Attribute",disabled:n.value,onClick:V=>ot("attribute",R)},"A",8,Vd),a("button",{class:"wb-btn wb-small",title:"Status buchen",disabled:n.value||!Y.value||!Oe(R).ok,onClick:V=>ot("status",R)},"✓",8,Kd),a("button",{class:"wb-btn wb-small",title:"Auftrag aktivieren",disabled:n.value||!Y.value,onClick:V=>$(R)},"↗",8,Gd)])):z("",!0),(g(!0),m(K,null,ge(Je.value,V=>(g(),m("td",{key:V},w(Ke(bn)(R[V],V)),1))),128))]))),128)),We.value.length?z("",!0):(g(),m("tr",jd,[a("td",{colspan:Je.value.length+(I.value==="plan"?1:0)||1,class:"wb-empty"},"Keine Daten geladen",8,Jd)]))])])]),(g(),De(ho,{to:"body"},[B.value!=="none"?(g(),m("div",{key:0,class:"wb-mes-overlay",onClick:v[16]||(v[16]=ct(R=>!n.value&&(B.value="none"),["self"]))},[a("section",Yd,[a("header",null,[a("strong",null,w({status:"Statusbuchung",measure:"Messwert erfassen",failure:"Fehler buchen",setup:"Rüstung",attribute:"Attribute",none:""}[B.value])+" · AVO "+w(U.value?.AVO),1),a("button",{class:"wb-btn",disabled:n.value,onClick:v[1]||(v[1]=R=>B.value="none")},"✕",8,qd)]),B.value==="status"?(g(),m(K,{key:0},[a("p",null,"Arbeitsschritt "+w(U.value?.Arbeitsschritt)+" · "+w(U.value?.Beschreibung),1),Oe(U.value).ok?z("",!0):(g(),m("p",Xd,w(Oe(U.value).reason),1)),a("label",null,[v[20]||(v[20]=X("Status",-1)),fe(a("select",{"onUpdate:modelValue":v[2]||(v[2]=R=>J.value=R)},[...v[19]||(v[19]=[a("option",{value:0},"Gut",-1),a("option",{value:1},"Nacharbeit",-1),a("option",{value:2},"Ausschuss",-1)])],512),[[Ot,J.value,void 0,{number:!0}]])]),a("label",Qd,[fe(a("input",{type:"checkbox","onUpdate:modelValue":v[3]||(v[3]=R=>P.value=R),"true-value":1,"false-value":0},null,512),[[qt,P.value]]),v[21]||(v[21]=X(" Nutzen",-1))]),a("p",null,w(dt.value.length)+" Messwerte werden mitgebucht.",1),a("button",{class:"wb-btn wb-primary",disabled:n.value||!Oe(U.value).ok,onClick:C},"Buchen",8,Zd)],64)):z("",!0),B.value==="measure"?(g(),m(K,{key:1},[a("div",ef,[(g(!0),m(K,null,ge(dt.value,(R,O)=>(g(),m("button",{key:O,class:Me(["wb-mes-order",{chosen:Z.value===O}]),onClick:V=>Ei(O)},w(R.MEASURE_NAME)+" · "+w(R.UNIT)+" ("+w(R.LOWER_LIMIT)+" … "+w(R.UPPER_LIMIT)+")",11,tf))),128))]),a("label",null,[v[22]||(v[22]=X("Messwert",-1)),fe(a("input",{"onUpdate:modelValue":v[4]||(v[4]=R=>j.value=R),disabled:Z.value<0},null,8,sf),[[Se,j.value]])]),a("button",{class:"wb-btn wb-primary",disabled:Z.value<0,onClick:p},"Übernehmen (lokal)",8,nf)],64)):z("",!0),B.value==="failure"?(g(),m(K,{key:2},[v[27]||(v[27]=a("p",null,"Fehlerart auswählen",-1)),a("div",rf,[(g(!0),m(K,null,ge(S.value,R=>(g(),m("label",{key:String(R.FAILURE_TYPE_CODE),class:"wb-mes-check"},[fe(a("input",{type:"checkbox",value:String(R.FAILURE_TYPE_CODE),"onUpdate:modelValue":v[5]||(v[5]=O=>Q.value=O)},null,8,of),[[qt,Q.value]]),X(" "+w(R.FAILURE_TYPE_CODE)+" – "+w(R.FAILURE_TYPE_DESC),1)]))),128))]),v[28]||(v[28]=a("p",null,"Komponenten (optional)",-1)),a("div",lf,[(g(!0),m(K,null,ge(f.value,R=>(g(),m("label",{key:String(R.COMP_NAME),class:"wb-mes-check"},[fe(a("input",{type:"checkbox",value:String(R.COMP_NAME),"onUpdate:modelValue":v[6]||(v[6]=O=>se.value=O)},null,8,af),[[qt,se.value]]),X(" "+w(R.COMP_NAME)+" · "+w(R.PART_NUMBER),1)]))),128))]),a("label",null,[v[23]||(v[23]=X("Fehlerscheintext",-1)),fe(a("input",{"onUpdate:modelValue":v[7]||(v[7]=R=>ne.value=R)},null,512),[[Se,ne.value]])]),a("label",null,[v[25]||(v[25]=X("Status",-1)),fe(a("select",{"onUpdate:modelValue":v[8]||(v[8]=R=>he.value=R)},[...v[24]||(v[24]=[a("option",{value:""},"Ohne Statusänderung",-1),a("option",{value:"0"},"Gut",-1),a("option",{value:"1"},"Nacharbeit",-1),a("option",{value:"2"},"Ausschuss",-1)])],512),[[Ot,he.value]])]),a("label",uf,[fe(a("input",{type:"checkbox","onUpdate:modelValue":v[9]||(v[9]=R=>L.value=R)},null,512),[[qt,L.value]]),v[26]||(v[26]=X(" Repariert",-1))]),a("button",{class:"wb-btn wb-primary",disabled:n.value||!Q.value.length,onClick:F},"Fehler buchen",8,cf)],64)):z("",!0),B.value==="setup"?(g(),m(K,{key:3},[a("p",null,"Rüstzustand und Materialbehälter an Station "+w(i.value),1),a("div",df,[a("button",{class:"wb-btn",disabled:n.value,onClick:v[10]||(v[10]=R=>x(0))},"Rüstung aktivieren",8,ff),a("button",{class:"wb-btn",disabled:n.value,onClick:v[11]||(v[11]=R=>x(2))},"Rüstung löschen",8,hf)]),a("label",null,[v[29]||(v[29]=X("Behälternummer",-1)),fe(a("input",{"onUpdate:modelValue":v[12]||(v[12]=R=>te.value=R)},null,512),[[Se,te.value,void 0,{trim:!0}]])]),a("label",null,[v[31]||(v[31]=X("Modus",-1)),fe(a("select",{"onUpdate:modelValue":v[13]||(v[13]=R=>_e.value=R)},[...v[30]||(v[30]=[a("option",{value:"setup"},"Einrüsten",-1),a("option",{value:"remove"},"Abrüsten",-1)])],512),[[Ot,_e.value]])]),a("button",{class:"wb-btn wb-primary",disabled:n.value,onClick:D},"Behälter übernehmen",8,pf)],64)):z("",!0),B.value==="attribute"?(g(),m(K,{key:4},[a("label",null,[v[32]||(v[32]=X("Attributcode",-1)),fe(a("input",{"onUpdate:modelValue":v[14]||(v[14]=R=>de.value=R)},null,512),[[Se,de.value,void 0,{trim:!0}]])]),a("label",null,[v[33]||(v[33]=X("Wert",-1)),fe(a("input",{"onUpdate:modelValue":v[15]||(v[15]=R=>ie.value=R)},null,512),[[Se,ie.value]])]),a("button",{class:"wb-btn wb-primary",disabled:n.value,onClick:H},"Attribut speichern",8,gf)],64)):z("",!0),r.value?(g(),m("p",mf,w(r.value),1)):z("",!0)])])):z("",!0)]))]))}}),bf={class:"hmi-script-widget"},yf=["disabled"],wf={key:0,class:"script-result"},Ef={key:1,class:"error"},_f=["srcdoc"],Sf=He({__name:"ScriptWidget",props:{widget:{},demo:{type:Boolean},station:{}},setup(t){const e=t,i=T(null),s=T(""),n=T(""),r=Math.random().toString(36).slice(2)+Date.now().toString(36),o=re(()=>{const c=String(e.widget.props.script||'return {info:"REST-Skript anpassen"};'),f=JSON.stringify(c).replace(/ - +Workbench HMI +
diff --git a/backend/target/backend-1.war b/backend/target/backend-1.war index 1d6a152..7b6c016 100644 Binary files a/backend/target/backend-1.war and b/backend/target/backend-1.war differ diff --git a/backend/target/backend-1/hmi/index.html b/backend/target/backend-1/hmi/index.html index d0b163e..31d7880 100644 --- a/backend/target/backend-1/hmi/index.html +++ b/backend/target/backend-1/hmi/index.html @@ -1,3 +1,3 @@ -Workbench HMI - +Workbench HMI +
diff --git a/backend/target/jacoco.exec b/backend/target/jacoco.exec index 7d23b86..4af9868 100644 Binary files a/backend/target/jacoco.exec and b/backend/target/jacoco.exec differ diff --git a/backend/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/backend/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst index d527a97..5c30a38 100644 --- a/backend/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst +++ b/backend/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst @@ -14,6 +14,7 @@ com/workbenchclassic/GetUsers.class com/workbenchclassic/hmi/HmiJvmOptions$1.class com/workbenchclassic/hmi/HmiLegacyWidgetResource.class com/workbenchclassic/UpdateStation.class +com/workbenchclassic/hmi/HmiPersonnel.class com/workbenchclassic/hmi/HmiSchemaBootstrap.class com/workbenchclassic/EventBus$Client.class com/workbenchclassic/hmi/HmiImsapiActionResource.class @@ -49,3 +50,4 @@ com/workbenchclassic/hmi/HmiHealthServlet.class com/workbenchclassic/hmi/HmiStyles.class com/workbenchclassic/hmi/HmiThemeServlet.class com/workbenchclassic/hmi/HmiImsapiSecurityResource.class +com/workbenchclassic/hmi/HmiPersonnel$Person.class diff --git a/backend/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/backend/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst index e5d168c..3f7db95 100644 --- a/backend/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst +++ b/backend/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -31,6 +31,7 @@ /home/chris/hmi/WidgetWorkbench/backend/src/main/java/com/workbenchclassic/hmi/HmiJvmOptions.java /home/chris/hmi/WidgetWorkbench/backend/src/main/java/com/workbenchclassic/hmi/HmiLegacyWidgetResource.java /home/chris/hmi/WidgetWorkbench/backend/src/main/java/com/workbenchclassic/hmi/HmiOriginFilter.java +/home/chris/hmi/WidgetWorkbench/backend/src/main/java/com/workbenchclassic/hmi/HmiPersonnel.java /home/chris/hmi/WidgetWorkbench/backend/src/main/java/com/workbenchclassic/hmi/HmiRolesResource.java /home/chris/hmi/WidgetWorkbench/backend/src/main/java/com/workbenchclassic/hmi/HmiSchemaBootstrap.java /home/chris/hmi/WidgetWorkbench/backend/src/main/java/com/workbenchclassic/hmi/HmiSchemaRecovery.java diff --git a/backend/target/site/jacoco/com.workbenchclassic.hmi/index.html b/backend/target/site/jacoco/com.workbenchclassic.hmi/index.html index 6becd64..6015b5f 100644 --- a/backend/target/site/jacoco/com.workbenchclassic.hmi/index.html +++ b/backend/target/site/jacoco/com.workbenchclassic.hmi/index.html @@ -1 +1 @@ -com.workbenchclassic.hmi

com.workbenchclassic.hmi

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total11.409 of 11.4090 %1.449 of 1.4490 %9629621.6061.6062342342424
HmiApiResource4.5220 %5730 %355355546546676711
HmiRolesResource9520 %860 %6565104104222211
HmiSchemaBootstrap7260 %800 %5858156156181811
HmiStyleResource6540 %560 %45455151171711
HmiImsapiGateway5280 %960 %535368685511
HmiAuth4820 %1000 %67677676171711
HmiImsapiSecurityResource4410 %480 %303073736611
HmiWorkplaceProxyResource4300 %600 %383883838811
HmiInitialAdmin4200 %680 %424276768811
HmiJvmOptions3720 %320 %242469698811
HmiAssetsResource3580 %600 %353537375511
HmiLegacyWidgetResource3540 %460 %323250507711
HmiSystemSettingsResource1970 %240 %181837376611
HmiBootstrapResource1570 %140 %111123234411
HmiImsapiActionResource1530 %200 %131322223311
HmiStyles1360 %280 %181821214411
HmiSchemaRecoveryResource1340 %160 %111117173311
HmiSchemaRecovery920 %140 %131322226611
HmiTransportPolicy880 %160 %131318185511
HmiHealthServlet700 %n/a2221212211
HmiJvmOptions.new Callable() {...}440 %0 %44882211
HmiThemeServlet430 %0 %4411112211
HmiOriginFilter0 %0 %5512124411
HmiDb0 %0 %66665511
\ No newline at end of file +com.workbenchclassic.hmi

com.workbenchclassic.hmi

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total11.633 of 11.6330 %1.487 of 1.4870 %9899891.6641.6642422422626
HmiApiResource4.5220 %5730 %355355546546676711
HmiRolesResource9530 %860 %6565111111222211
HmiSchemaBootstrap7260 %800 %5858156156181811
HmiStyleResource6540 %560 %45455151171711
HmiImsapiGateway5280 %960 %535368685511
HmiAuth4850 %1000 %67677676171711
HmiImsapiSecurityResource4430 %480 %303074746611
HmiWorkplaceProxyResource4300 %600 %383883838811
HmiJvmOptions3720 %320 %242469698811
HmiAssetsResource3580 %600 %353537375511
HmiLegacyWidgetResource3540 %460 %323250507711
HmiInitialAdmin3490 %580 %373765658811
HmiPersonnel2590 %440 %292954547711
HmiSystemSettingsResource1970 %240 %181837376611
HmiBootstrapResource1570 %140 %111123234411
HmiImsapiActionResource1530 %200 %131322223311
HmiStyles1360 %280 %181821214411
HmiSchemaRecoveryResource1340 %160 %111117173311
HmiSchemaRecovery920 %140 %131322226611
HmiTransportPolicy880 %160 %131318185511
HmiHealthServlet700 %n/a2221212211
HmiJvmOptions.new Callable() {...}440 %0 %44882211
HmiThemeServlet430 %0 %4411112211
HmiOriginFilter0 %0 %5512124411
HmiPersonnel.Person0 %0 %33771111
HmiDb0 %0 %66665511
\ No newline at end of file diff --git a/backend/target/site/jacoco/com.workbenchclassic.hmi/index.source.html b/backend/target/site/jacoco/com.workbenchclassic.hmi/index.source.html index 378a176..f6d9fe1 100644 --- a/backend/target/site/jacoco/com.workbenchclassic.hmi/index.source.html +++ b/backend/target/site/jacoco/com.workbenchclassic.hmi/index.source.html @@ -1 +1 @@ -com.workbenchclassic.hmi

com.workbenchclassic.hmi

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total11.409 of 11.4090 %1.449 of 1.4490 %9629621.6061.6062342342424
HmiApiResource.java4.5220 %5730 %355355546546676711
HmiRolesResource.java9520 %860 %6565104104222211
HmiSchemaBootstrap.java7260 %800 %5858156156181811
HmiStyleResource.java6540 %560 %45455151171711
HmiImsapiGateway.java5280 %960 %535368685511
HmiAuth.java4820 %1000 %67677676171711
HmiImsapiSecurityResource.java4410 %480 %303073736611
HmiWorkplaceProxyResource.java4300 %600 %383883838811
HmiInitialAdmin.java4200 %680 %424276768811
HmiJvmOptions.java4160 %360 %28287676101022
HmiAssetsResource.java3580 %600 %353537375511
HmiLegacyWidgetResource.java3540 %460 %323250507711
HmiSystemSettingsResource.java1970 %240 %181837376611
HmiBootstrapResource.java1570 %140 %111123234411
HmiImsapiActionResource.java1530 %200 %131322223311
HmiStyles.java1360 %280 %181821214411
HmiSchemaRecoveryResource.java1340 %160 %111117173311
HmiSchemaRecovery.java920 %140 %131322226611
HmiTransportPolicy.java880 %160 %131318185511
HmiHealthServlet.java700 %n/a2221212211
HmiThemeServlet.java430 %0 %4411112211
HmiOriginFilter.java0 %0 %5512124411
HmiDb.java0 %0 %66665511
\ No newline at end of file +com.workbenchclassic.hmi

com.workbenchclassic.hmi

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total11.633 of 11.6330 %1.487 of 1.4870 %9899891.6641.6642422422626
HmiApiResource.java4.5220 %5730 %355355546546676711
HmiRolesResource.java9530 %860 %6565111111222211
HmiSchemaBootstrap.java7260 %800 %5858156156181811
HmiStyleResource.java6540 %560 %45455151171711
HmiImsapiGateway.java5280 %960 %535368685511
HmiAuth.java4850 %1000 %67677676171711
HmiImsapiSecurityResource.java4430 %480 %303074746611
HmiWorkplaceProxyResource.java4300 %600 %383883838811
HmiJvmOptions.java4160 %360 %28287676101022
HmiAssetsResource.java3580 %600 %353537375511
HmiLegacyWidgetResource.java3540 %460 %323250507711
HmiInitialAdmin.java3490 %580 %373765658811
HmiPersonnel.java2890 %480 %323261618822
HmiSystemSettingsResource.java1970 %240 %181837376611
HmiBootstrapResource.java1570 %140 %111123234411
HmiImsapiActionResource.java1530 %200 %131322223311
HmiStyles.java1360 %280 %181821214411
HmiSchemaRecoveryResource.java1340 %160 %111117173311
HmiSchemaRecovery.java920 %140 %131322226611
HmiTransportPolicy.java880 %160 %131318185511
HmiHealthServlet.java700 %n/a2221212211
HmiThemeServlet.java430 %0 %4411112211
HmiOriginFilter.java0 %0 %5512124411
HmiDb.java0 %0 %66665511
\ No newline at end of file diff --git a/backend/target/site/jacoco/index.html b/backend/target/site/jacoco/index.html index beccbaa..bdb22af 100644 --- a/backend/target/site/jacoco/index.html +++ b/backend/target/site/jacoco/index.html @@ -1 +1 @@ -backend

backend

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total16.550 of 16.5500 %1.673 of 1.6730 %1.1891.1892.8072.8073493495151
com.workbenchclassic.hmi11.4090 %1.4490 %9629621.6061.6062342342424
com.workbenchclassic5.1410 %2240 %2272271.2011.2011151152727
\ No newline at end of file +backend

backend

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total16.774 of 16.7740 %1.711 of 1.7110 %1.2161.2162.8652.8653573575353
com.workbenchclassic.hmi11.6330 %1.4870 %9899891.6641.6642422422626
com.workbenchclassic5.1410 %2240 %2272271.2011.2011151152727
\ No newline at end of file diff --git a/backend/target/site/jacoco/jacoco-sessions.html b/backend/target/site/jacoco/jacoco-sessions.html index 6000d8d..ceab812 100644 --- a/backend/target/site/jacoco/jacoco-sessions.html +++ b/backend/target/site/jacoco/jacoco-sessions.html @@ -1 +1 @@ -Sessions

Sessions

This coverage report is based on execution data from the following sessions:

SessionStart TimeDump Time
kubernetes-898944db26.10.2026, 19:10:1126.10.2026, 19:10:11

Execution data for the following classes is considered in this report:

ClassId
com.workbenchclassic.AppTest7718c7447416258a
org.apache.maven.surefire.api.booter.BaseProviderFactory5bdb25554fb3d5df
org.apache.maven.surefire.api.booter.BiProperty9a2074ae999b3c8a
org.apache.maven.surefire.api.booter.Commandf31ca5085797c808
org.apache.maven.surefire.api.booter.DumpErrorSingletone3f1c75f159a9ac5
org.apache.maven.surefire.api.booter.ForkedProcessEventTypedc56c5dba14b9d58
org.apache.maven.surefire.api.booter.ForkingReporterFactorybcadcd63978e8dcf
org.apache.maven.surefire.api.booter.ForkingRunListener08c963875a23e517
org.apache.maven.surefire.api.booter.MasterProcessCommand90562129b4defd58
org.apache.maven.surefire.api.booter.Shutdownfab38023c4f1ded4
org.apache.maven.surefire.api.cli.CommandLineOption4401c2efb3702254
org.apache.maven.surefire.api.provider.AbstractProvidercf68f167cf236f7b
org.apache.maven.surefire.api.report.ConsoleOutputCaptureb8719a08fbb63e05
org.apache.maven.surefire.api.report.ConsoleOutputCapture.ForwardingPrintStream7c2392ea44674f2d
org.apache.maven.surefire.api.report.ConsoleOutputCapture.NullOutputStreamf7132188596462e2
org.apache.maven.surefire.api.report.ReporterConfiguration39591ad2c5816a79
org.apache.maven.surefire.api.report.RunModef02e60476bce4d8d
org.apache.maven.surefire.api.report.SimpleReportEntrye252cb5986c391cc
org.apache.maven.surefire.api.suite.RunResult8d97f6894fd90ced
org.apache.maven.surefire.api.testset.DirectoryScannerParametersc53ea59aeaf0b80a
org.apache.maven.surefire.api.testset.IncludedExcludedPatterns43b8f8de9b3a1945
org.apache.maven.surefire.api.testset.ResolvedTest7e73a65f1017294e
org.apache.maven.surefire.api.testset.ResolvedTest.ClassMatcher0f9c29dc1562afeb
org.apache.maven.surefire.api.testset.ResolvedTest.MethodMatcherfccae89ce7b4ee31
org.apache.maven.surefire.api.testset.ResolvedTest.Typebf93fc9765a2bd72
org.apache.maven.surefire.api.testset.RunOrderParameterscb70af248c260139
org.apache.maven.surefire.api.testset.TestArtifactInfoc68e923f629df613
org.apache.maven.surefire.api.testset.TestListResolver3dc896f10c8df96c
org.apache.maven.surefire.api.testset.TestRequest976405c051909d71
org.apache.maven.surefire.api.util.CloseableIteratorf2c0acf940ec6fbe
org.apache.maven.surefire.api.util.DefaultRunOrderCalculator1f50ae9e4b9717cd
org.apache.maven.surefire.api.util.DefaultScanResult46fdc84739146387
org.apache.maven.surefire.api.util.ReflectionUtils6079e135f863f220
org.apache.maven.surefire.api.util.RunOrder0ea36dbbf05327aa
org.apache.maven.surefire.api.util.TestsToRuncc3376426ef9c01c
org.apache.maven.surefire.api.util.TestsToRun.ClassesIteratorcd6601db7bc899db
org.apache.maven.surefire.api.util.internal.AbstractNoninterruptibleReadableChannel6abb59e4c94390af
org.apache.maven.surefire.api.util.internal.AbstractNoninterruptibleWritableChannel989f9bf3c66ab7be
org.apache.maven.surefire.api.util.internal.Channels95e459b596e3b873
org.apache.maven.surefire.api.util.internal.Channels.39770f03bd51e14f7
org.apache.maven.surefire.api.util.internal.Channels.4a0e3eaa91d355cc2
org.apache.maven.surefire.api.util.internal.DaemonThreadFactorya56bf84543725f3a
org.apache.maven.surefire.api.util.internal.DaemonThreadFactory.NamedThreadFactorycfeefeb0265a8a13
org.apache.maven.surefire.api.util.internal.DumpFileUtils9a7dbfdf3c2027c8
org.apache.maven.surefire.api.util.internal.ImmutableMapee11b540cdd4034e
org.apache.maven.surefire.api.util.internal.ImmutableMap.Node984f6258c6d6ac9c
org.apache.maven.surefire.api.util.internal.ObjectUtils8c788ffcde97fbb4
org.apache.maven.surefire.booter.AbstractPathConfiguration4839ca4be6e46906
org.apache.maven.surefire.booter.BooterDeserializer02dc12ed0aec9547
org.apache.maven.surefire.booter.ClassLoaderConfiguration462fdbd63f8ea8c8
org.apache.maven.surefire.booter.Classpath5c18bd381e88bcc8
org.apache.maven.surefire.booter.ClasspathConfiguration4c9fc97c565be4cc
org.apache.maven.surefire.booter.CommandReaderc29c2eca0cd24bfc
org.apache.maven.surefire.booter.CommandReader.1727226d97ed192cb
org.apache.maven.surefire.booter.CommandReader.CommandRunnable41ac58e8d85ca2bd
org.apache.maven.surefire.booter.ForkedBooter708bf5b29b088537
org.apache.maven.surefire.booter.ForkedBooter.17d062229af4458f7
org.apache.maven.surefire.booter.ForkedBooter.3093e1d6ec83caf1c
org.apache.maven.surefire.booter.ForkedBooter.488f2f3e42230f38d
org.apache.maven.surefire.booter.ForkedBooter.6a150022bee6cbd41
org.apache.maven.surefire.booter.ForkedBooter.77d0ab78a1157bb24
org.apache.maven.surefire.booter.ForkedBooter.801800b3929973273
org.apache.maven.surefire.booter.ForkedBooter.PingSchedulerfb97687ca93ecbd1
org.apache.maven.surefire.booter.PpidCheckercc99aab0e566c991
org.apache.maven.surefire.booter.ProcessCheckerType5e6688e4a6a909e6
org.apache.maven.surefire.booter.PropertiesWrapperf63d2b2f2fd9087a
org.apache.maven.surefire.booter.ProviderConfiguration146800cea9c5f6cc
org.apache.maven.surefire.booter.StartupConfiguration1cb50557cb9ebb0b
org.apache.maven.surefire.booter.SystemPropertyManager3a0459e270104889
org.apache.maven.surefire.booter.TypeEncodedValue25e613e357b4f737
org.apache.maven.surefire.booter.spi.LegacyMasterProcessChannelDecoder477264b3887a3b8b
org.apache.maven.surefire.booter.spi.LegacyMasterProcessChannelDecoder.FrameCompletion00319e897e4dfd77
org.apache.maven.surefire.booter.spi.LegacyMasterProcessChannelEncoderd52ce258d8e88d04
org.apache.maven.surefire.booter.spi.LegacyMasterProcessChannelProcessorFactory3e8e80dcadf11ad6
org.apache.maven.surefire.booter.spi.SurefireMasterProcessChannelProcessorFactory6bb9533ad5c08a49
org.apache.maven.surefire.junitplatform.JUnitPlatformProvider847b42ef97f97d2b
org.apache.maven.surefire.junitplatform.RunListenerAdapterd23fd29ada1102cb
org.apache.maven.surefire.junitplatform.RunListenerAdapter.155724259eef83afa
org.apache.maven.surefire.junitplatform.TestPlanScannerFiltera3ae2542fd30e874
org.apache.maven.surefire.shared.codec.binary.Base64cd6927ec7cf0569e
org.apache.maven.surefire.shared.codec.binary.BaseNCodecc8dd8163b58acfc1
org.apache.maven.surefire.shared.codec.binary.BaseNCodec.Context84b370e464e7008c
org.apache.maven.surefire.shared.lang3.JavaVersion590095a767529b48
org.apache.maven.surefire.shared.lang3.StringUtilsae3c2c379ffab6fd
org.apache.maven.surefire.shared.lang3.SystemUtilse4faf882077bc6c0
org.apache.maven.surefire.shared.lang3.math.NumberUtils505629194db735ed
org.apache.maven.surefire.shared.utils.StringUtils5ba1288622b5e22e
org.apache.maven.surefire.shared.utils.cli.ShutdownHookUtilsb7b46c5c1f482bd4
org.apiguardian.api.API.Status0341e8d99fc36573
org.junit.jupiter.api.AssertEquals6b16b14f06d2f13c
org.junit.jupiter.api.Assertions7406fdbebf83bc7a
org.junit.jupiter.api.DisplayNameGeneratorc813afbd86fd7cc8
org.junit.jupiter.api.DisplayNameGenerator.ReplaceUnderscores82e8bc7daaa8e1e0
org.junit.jupiter.api.DisplayNameGenerator.Standardf23772be1d9bb824
org.junit.jupiter.api.TestInstance.Lifecycle548dd47a98f9c8af
org.junit.jupiter.api.extension.ConditionEvaluationResult2f9dc9ea54b57975
org.junit.jupiter.api.extension.ExtensionContext1789eac1274261fc
org.junit.jupiter.api.extension.ExtensionContext.Namespace9ecb19f5d8d233f2
org.junit.jupiter.api.extension.InvocationInterceptor996f7741ba5ec355
org.junit.jupiter.engine.JupiterTestEngine42bfd69ac4ff9a31
org.junit.jupiter.engine.config.CachingJupiterConfiguratione0782b8c7a730030
org.junit.jupiter.engine.config.ClassNamePatternParameterConverterdb88e74320096433
org.junit.jupiter.engine.config.DefaultJupiterConfiguration9edf3c93edb9be05
org.junit.jupiter.engine.config.DisplayNameGeneratorParameterConverter10239f24d8c710ad
org.junit.jupiter.engine.config.EnumConfigurationParameterConverter339f5752af685066
org.junit.jupiter.engine.descriptor.AbstractExtensionContext9bf01323cf853683
org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor93da3ced5777b865
org.junit.jupiter.engine.descriptor.ClassExtensionContextda8d011f2fd97107
org.junit.jupiter.engine.descriptor.ClassTestDescriptorf5d10ac1d89bb01f
org.junit.jupiter.engine.descriptor.DisplayNameUtils5b062d6beb8f55b6
org.junit.jupiter.engine.descriptor.ExtensionUtils857bd7cde465ada0
org.junit.jupiter.engine.descriptor.JupiterEngineDescriptor8502a8ddd495080f
org.junit.jupiter.engine.descriptor.JupiterEngineExtensionContext37e3ac8bbe8deb47
org.junit.jupiter.engine.descriptor.JupiterTestDescriptoracf2905fc10efa75
org.junit.jupiter.engine.descriptor.LifecycleMethodUtils1162b59df6db6b33
org.junit.jupiter.engine.descriptor.MethodBasedTestDescriptor120c02c460cd1892
org.junit.jupiter.engine.descriptor.MethodExtensionContextafe114c2ffc920b7
org.junit.jupiter.engine.descriptor.TestInstanceLifecycleUtils8d8758db35676c1c
org.junit.jupiter.engine.descriptor.TestMethodTestDescriptorb9a613d54c81997c
org.junit.jupiter.engine.discovery.ClassSelectorResolvera62bf2e2a3da3cb2
org.junit.jupiter.engine.discovery.DiscoverySelectorResolver9913614fbfb4142b
org.junit.jupiter.engine.discovery.MethodFinder5ea468d2eb528361
org.junit.jupiter.engine.discovery.MethodOrderingVisitorbd9a3fc474bdccea
org.junit.jupiter.engine.discovery.MethodSelectorResolver9e004b1ce9842826
org.junit.jupiter.engine.discovery.MethodSelectorResolver.MethodType76d091417c997edb
org.junit.jupiter.engine.discovery.MethodSelectorResolver.MethodType.1098756f55a3f159b
org.junit.jupiter.engine.discovery.MethodSelectorResolver.MethodType.2b4451da4ca26c94f
org.junit.jupiter.engine.discovery.MethodSelectorResolver.MethodType.3a9cba48e54e36d6b
org.junit.jupiter.engine.discovery.predicates.IsInnerClassf7d9846d00228720
org.junit.jupiter.engine.discovery.predicates.IsNestedTestClasse47ff7cd33073803
org.junit.jupiter.engine.discovery.predicates.IsPotentialTestContainerfcb5565ad4483f6c
org.junit.jupiter.engine.discovery.predicates.IsTestClassWithTests2a6af63531e197a1
org.junit.jupiter.engine.discovery.predicates.IsTestFactoryMethoda2c68978bd6bfbc6
org.junit.jupiter.engine.discovery.predicates.IsTestMethod8b244977e441886e
org.junit.jupiter.engine.discovery.predicates.IsTestTemplateMethod0baf1066bf0cbad7
org.junit.jupiter.engine.discovery.predicates.IsTestableMethod59a0b58a40803fe2
org.junit.jupiter.engine.execution.ConditionEvaluatorc2ba33ab802578df
org.junit.jupiter.engine.execution.ConstructorInvocation4aef47e7c0afe594
org.junit.jupiter.engine.execution.DefaultTestInstances37fd85d961d60c98
org.junit.jupiter.engine.execution.ExecutableInvoker88626e54fda7c10e
org.junit.jupiter.engine.execution.ExecutableInvoker.ReflectiveInterceptorCall1e58a02ac712330c
org.junit.jupiter.engine.execution.ExtensionValuesStoreb7ff2e73f692c652
org.junit.jupiter.engine.execution.ExtensionValuesStore.CompositeKey24fed135af0eff32
org.junit.jupiter.engine.execution.ExtensionValuesStore.MemoizingSupplier5be22cd9e3599327
org.junit.jupiter.engine.execution.InvocationInterceptorChain008224a337018874
org.junit.jupiter.engine.execution.InvocationInterceptorChain.InterceptedInvocation62ff9a2338ce3045
org.junit.jupiter.engine.execution.InvocationInterceptorChain.ValidatingInvocation2434903e45fcd05c
org.junit.jupiter.engine.execution.JupiterEngineExecutionContext868921f800563654
org.junit.jupiter.engine.execution.JupiterEngineExecutionContext.Builderd23096bee4e10887
org.junit.jupiter.engine.execution.JupiterEngineExecutionContext.State0a606b935b0623c0
org.junit.jupiter.engine.execution.MethodInvocation6f894f3cd37e86c5
org.junit.jupiter.engine.execution.NamespaceAwareStore3ffe1c39d58eaf53
org.junit.jupiter.engine.execution.TestInstancesProviderbb5b676e93849b60
org.junit.jupiter.engine.extension.DisabledCondition23223b45668b6ef2
org.junit.jupiter.engine.extension.ExtensionRegistry7f89cc3238c43287
org.junit.jupiter.engine.extension.MutableExtensionRegistry094514ca9919cd68
org.junit.jupiter.engine.extension.RepeatedTestExtension1b7914cc8cf83732
org.junit.jupiter.engine.extension.TempDirectory3ed1c1e958835b3c
org.junit.jupiter.engine.extension.TestInfoParameterResolver1b5b370a56807cae
org.junit.jupiter.engine.extension.TestReporterParameterResolver60beaf7c80fe99cc
org.junit.jupiter.engine.extension.TimeoutConfigurationd1c949ce4363e069
org.junit.jupiter.engine.extension.TimeoutDurationParser47f3e400722ef57b
org.junit.jupiter.engine.extension.TimeoutExtensionf396c89f10d2bf92
org.junit.jupiter.engine.support.JupiterThrowableCollectorFactorybe8bb2befc643502
org.junit.jupiter.engine.support.OpenTest4JAndJUnit4AwareThrowableCollectorea5378eacfd98d84
org.junit.platform.commons.function.Tryed940444537e81c8
org.junit.platform.commons.function.Try.Failure11c2a90efd237384
org.junit.platform.commons.function.Try.Successc4950437cb3f8d07
org.junit.platform.commons.logging.LoggerFactory3ba683e3050bf0cd
org.junit.platform.commons.logging.LoggerFactory.DelegatingLoggerc601ec41368ffb23
org.junit.platform.commons.support.AnnotationSupport9943d504ff0c08cc
org.junit.platform.commons.support.ReflectionSupport534b5bde0100740f
org.junit.platform.commons.util.AnnotationUtilsf61f84cc85e2534a
org.junit.platform.commons.util.BlacklistedExceptionsbde618675b598c40
org.junit.platform.commons.util.ClassLoaderUtilsc4b37ecc9a1c73f1
org.junit.platform.commons.util.ClassUtils8883e6fc8a933271
org.junit.platform.commons.util.ClasspathScannerac8b6266e9b6789d
org.junit.platform.commons.util.CollectionUtilsa5cea6ca5e67470d
org.junit.platform.commons.util.Preconditions96db76b91278a526
org.junit.platform.commons.util.ReflectionUtils9fe1fac13e880dd6
org.junit.platform.commons.util.ReflectionUtils.HierarchyTraversalMode12b3937debd6b2c1
org.junit.platform.commons.util.StringUtilsae2f08e02cb55734
org.junit.platform.engine.CompositeFilterec8dc82249eeb7a9
org.junit.platform.engine.CompositeFilter.170825b5141694d2a
org.junit.platform.engine.EngineDiscoveryListener22998ffae2c92a7c
org.junit.platform.engine.EngineDiscoveryListener.1df3f3b5f98f0bac1
org.junit.platform.engine.ExecutionRequested3835cc21e5a048
org.junit.platform.engine.Filterf932423ccd3b54bf
org.junit.platform.engine.FilterResultcdaa92f4f6f79059
org.junit.platform.engine.SelectorResolutionResult84379bf9c19eb4b1
org.junit.platform.engine.SelectorResolutionResult.Status7127e7bcdd8dd16b
org.junit.platform.engine.TestDescriptor9fce516d5ec67d95
org.junit.platform.engine.TestDescriptor.Type3d400391a113f4d2
org.junit.platform.engine.TestExecutionResultfd67f84654a5aa1c
org.junit.platform.engine.TestExecutionResult.Status26685ff07ec05579
org.junit.platform.engine.UniqueIde031943c734b350e
org.junit.platform.engine.UniqueId.Segmente194895cf704d270
org.junit.platform.engine.UniqueIdFormatd5b6ae13b16471ae
org.junit.platform.engine.discovery.ClassSelector502567f08c42b0d4
org.junit.platform.engine.discovery.DiscoverySelectors82f61a948dbe4f5a
org.junit.platform.engine.discovery.MethodSelectora07d3186374af8d5
org.junit.platform.engine.support.descriptor.AbstractTestDescriptor2bfbf25c43491443
org.junit.platform.engine.support.descriptor.ClassSourceebe18bb735086cbe
org.junit.platform.engine.support.descriptor.EngineDescriptorb7dbf6dfb794516c
org.junit.platform.engine.support.descriptor.MethodSourceadbe9ff8c196551c
org.junit.platform.engine.support.discovery.ClassContainerSelectorResolver13e03d83db463757
org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolutionf23cc843ffd69e68
org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolution.DefaultContext1062edde7e863f79
org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolver96067c54823596a5
org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolver.Builder4536a37bf6e65b70
org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolver.DefaultInitializationContextf1925780e6c4e71e
org.junit.platform.engine.support.discovery.SelectorResolver80cba972b4f10568
org.junit.platform.engine.support.discovery.SelectorResolver.Matcha6c967fba828723c
org.junit.platform.engine.support.discovery.SelectorResolver.Match.Typeb37cc687ae9a3084
org.junit.platform.engine.support.discovery.SelectorResolver.Resolution6a587b13ca925431
org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine97ffbc145c7d4a83
org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor68a36544a3925ed3
org.junit.platform.engine.support.hierarchical.LockManager3b5f78863ff21738
org.junit.platform.engine.support.hierarchical.Nodeb49761977ceb7101
org.junit.platform.engine.support.hierarchical.Node.SkipResultbd08edf24f1dd4d9
org.junit.platform.engine.support.hierarchical.NodeExecutionAdvisore5cf54a3abfe8a32
org.junit.platform.engine.support.hierarchical.NodeTestTask2d78f1925dd4882a
org.junit.platform.engine.support.hierarchical.NodeTestTask.DefaultDynamicTestExecutorfdbc89e07549b13b
org.junit.platform.engine.support.hierarchical.NodeTestTaskContext844fff78e0efe7ef
org.junit.platform.engine.support.hierarchical.NodeTreeWalkerb0b50dbbc8c467a5
org.junit.platform.engine.support.hierarchical.NodeUtilsd602362461bcf308
org.junit.platform.engine.support.hierarchical.NodeUtils.1f707e15bc93748e1
org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService054c281153908bb9
org.junit.platform.engine.support.hierarchical.ThrowableCollector655e27ddc85aeb2a
org.junit.platform.launcher.EngineDiscoveryResult8a104796dc402ce9
org.junit.platform.launcher.EngineDiscoveryResult.Statusb30c4012c3e2f07e
org.junit.platform.launcher.LauncherDiscoveryListener456d3e735c22aa48
org.junit.platform.launcher.LauncherDiscoveryListener.1a120e75b9fe22bf4
org.junit.platform.launcher.TestIdentifier225bb434f8f223e2
org.junit.platform.launcher.TestPlan60578bb4f50b5157
org.junit.platform.launcher.core.DefaultDiscoveryRequestc69d8a6244047852
org.junit.platform.launcher.core.DefaultLauncherb535c0b0b3751eb8
org.junit.platform.launcher.core.DefaultLauncherConfiga355b55f1fea9e21
org.junit.platform.launcher.core.DelegatingEngineExecutionListener1e5487ee783deeca
org.junit.platform.launcher.core.EngineDiscoveryResultValidator93df7a3977833cf5
org.junit.platform.launcher.core.ExecutionListenerAdapterc5de7169f1a88932
org.junit.platform.launcher.core.InternalTestPlan4bd2d207c99632bd
org.junit.platform.launcher.core.LauncherConfigb3c713ac595fde03
org.junit.platform.launcher.core.LauncherConfig.Buildera17564c5b87448a3
org.junit.platform.launcher.core.LauncherConfigurationParameters461c933a6a874583
org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder718cd866fd0e3b49
org.junit.platform.launcher.core.LauncherFactoryd419bbcae8fd872b
org.junit.platform.launcher.core.OutcomeDelayingEngineExecutionListener72e79df7e2d97cc9
org.junit.platform.launcher.core.OutcomeDelayingEngineExecutionListener.Outcome4d8244bde278efbb
org.junit.platform.launcher.core.Root77042aab5235c2d8
org.junit.platform.launcher.core.ServiceLoaderTestEngineRegistry7c054c4cf76cb0f6
org.junit.platform.launcher.core.ServiceLoaderTestExecutionListenerRegistry2299bac1075a6bf3
org.junit.platform.launcher.core.StreamInterceptingTestExecutionListener3a1f3bd6b32f854b
org.junit.platform.launcher.core.TestExecutionListenerRegistryf61866dbd0e36091
org.junit.platform.launcher.core.TestExecutionListenerRegistry.CompositeTestExecutionListener583008686628ab79
org.junit.platform.launcher.listeners.discovery.AbortOnFailureLauncherDiscoveryListener267176035c858efc
org.junit.platform.launcher.listeners.discovery.LauncherDiscoveryListenersc83fb9349eaee2dc
\ No newline at end of file +Sessions

Sessions

This coverage report is based on execution data from the following sessions:

SessionStart TimeDump Time
kubernetes-747968a227.10.2026, 18:06:2627.10.2026, 18:06:26

Execution data for the following classes is considered in this report:

ClassId
com.workbenchclassic.AppTest7718c7447416258a
org.apache.maven.surefire.api.booter.BaseProviderFactory5bdb25554fb3d5df
org.apache.maven.surefire.api.booter.BiProperty9a2074ae999b3c8a
org.apache.maven.surefire.api.booter.Commandf31ca5085797c808
org.apache.maven.surefire.api.booter.DumpErrorSingletone3f1c75f159a9ac5
org.apache.maven.surefire.api.booter.ForkedProcessEventTypedc56c5dba14b9d58
org.apache.maven.surefire.api.booter.ForkingReporterFactorybcadcd63978e8dcf
org.apache.maven.surefire.api.booter.ForkingRunListener08c963875a23e517
org.apache.maven.surefire.api.booter.MasterProcessCommand90562129b4defd58
org.apache.maven.surefire.api.booter.Shutdownfab38023c4f1ded4
org.apache.maven.surefire.api.cli.CommandLineOption4401c2efb3702254
org.apache.maven.surefire.api.provider.AbstractProvidercf68f167cf236f7b
org.apache.maven.surefire.api.report.ConsoleOutputCaptureb8719a08fbb63e05
org.apache.maven.surefire.api.report.ConsoleOutputCapture.ForwardingPrintStream7c2392ea44674f2d
org.apache.maven.surefire.api.report.ConsoleOutputCapture.NullOutputStreamf7132188596462e2
org.apache.maven.surefire.api.report.ReporterConfiguration39591ad2c5816a79
org.apache.maven.surefire.api.report.RunModef02e60476bce4d8d
org.apache.maven.surefire.api.report.SimpleReportEntrye252cb5986c391cc
org.apache.maven.surefire.api.suite.RunResult8d97f6894fd90ced
org.apache.maven.surefire.api.testset.DirectoryScannerParametersc53ea59aeaf0b80a
org.apache.maven.surefire.api.testset.IncludedExcludedPatterns43b8f8de9b3a1945
org.apache.maven.surefire.api.testset.ResolvedTest7e73a65f1017294e
org.apache.maven.surefire.api.testset.ResolvedTest.ClassMatcher0f9c29dc1562afeb
org.apache.maven.surefire.api.testset.ResolvedTest.MethodMatcherfccae89ce7b4ee31
org.apache.maven.surefire.api.testset.ResolvedTest.Typebf93fc9765a2bd72
org.apache.maven.surefire.api.testset.RunOrderParameterscb70af248c260139
org.apache.maven.surefire.api.testset.TestArtifactInfoc68e923f629df613
org.apache.maven.surefire.api.testset.TestListResolver3dc896f10c8df96c
org.apache.maven.surefire.api.testset.TestRequest976405c051909d71
org.apache.maven.surefire.api.util.CloseableIteratorf2c0acf940ec6fbe
org.apache.maven.surefire.api.util.DefaultRunOrderCalculator1f50ae9e4b9717cd
org.apache.maven.surefire.api.util.DefaultScanResult46fdc84739146387
org.apache.maven.surefire.api.util.ReflectionUtils6079e135f863f220
org.apache.maven.surefire.api.util.RunOrder0ea36dbbf05327aa
org.apache.maven.surefire.api.util.TestsToRuncc3376426ef9c01c
org.apache.maven.surefire.api.util.TestsToRun.ClassesIteratorcd6601db7bc899db
org.apache.maven.surefire.api.util.internal.AbstractNoninterruptibleReadableChannel6abb59e4c94390af
org.apache.maven.surefire.api.util.internal.AbstractNoninterruptibleWritableChannel989f9bf3c66ab7be
org.apache.maven.surefire.api.util.internal.Channels95e459b596e3b873
org.apache.maven.surefire.api.util.internal.Channels.39770f03bd51e14f7
org.apache.maven.surefire.api.util.internal.Channels.4a0e3eaa91d355cc2
org.apache.maven.surefire.api.util.internal.DaemonThreadFactorya56bf84543725f3a
org.apache.maven.surefire.api.util.internal.DaemonThreadFactory.NamedThreadFactorycfeefeb0265a8a13
org.apache.maven.surefire.api.util.internal.DumpFileUtils9a7dbfdf3c2027c8
org.apache.maven.surefire.api.util.internal.ImmutableMapee11b540cdd4034e
org.apache.maven.surefire.api.util.internal.ImmutableMap.Node984f6258c6d6ac9c
org.apache.maven.surefire.api.util.internal.ObjectUtils8c788ffcde97fbb4
org.apache.maven.surefire.booter.AbstractPathConfiguration4839ca4be6e46906
org.apache.maven.surefire.booter.BooterDeserializer02dc12ed0aec9547
org.apache.maven.surefire.booter.ClassLoaderConfiguration462fdbd63f8ea8c8
org.apache.maven.surefire.booter.Classpath5c18bd381e88bcc8
org.apache.maven.surefire.booter.ClasspathConfiguration4c9fc97c565be4cc
org.apache.maven.surefire.booter.CommandReaderc29c2eca0cd24bfc
org.apache.maven.surefire.booter.CommandReader.1727226d97ed192cb
org.apache.maven.surefire.booter.CommandReader.CommandRunnable41ac58e8d85ca2bd
org.apache.maven.surefire.booter.ForkedBooter708bf5b29b088537
org.apache.maven.surefire.booter.ForkedBooter.17d062229af4458f7
org.apache.maven.surefire.booter.ForkedBooter.3093e1d6ec83caf1c
org.apache.maven.surefire.booter.ForkedBooter.488f2f3e42230f38d
org.apache.maven.surefire.booter.ForkedBooter.6a150022bee6cbd41
org.apache.maven.surefire.booter.ForkedBooter.77d0ab78a1157bb24
org.apache.maven.surefire.booter.ForkedBooter.801800b3929973273
org.apache.maven.surefire.booter.ForkedBooter.PingSchedulerfb97687ca93ecbd1
org.apache.maven.surefire.booter.PpidCheckercc99aab0e566c991
org.apache.maven.surefire.booter.ProcessCheckerType5e6688e4a6a909e6
org.apache.maven.surefire.booter.PropertiesWrapperf63d2b2f2fd9087a
org.apache.maven.surefire.booter.ProviderConfiguration146800cea9c5f6cc
org.apache.maven.surefire.booter.StartupConfiguration1cb50557cb9ebb0b
org.apache.maven.surefire.booter.SystemPropertyManager3a0459e270104889
org.apache.maven.surefire.booter.TypeEncodedValue25e613e357b4f737
org.apache.maven.surefire.booter.spi.LegacyMasterProcessChannelDecoder477264b3887a3b8b
org.apache.maven.surefire.booter.spi.LegacyMasterProcessChannelDecoder.FrameCompletion00319e897e4dfd77
org.apache.maven.surefire.booter.spi.LegacyMasterProcessChannelEncoderd52ce258d8e88d04
org.apache.maven.surefire.booter.spi.LegacyMasterProcessChannelProcessorFactory3e8e80dcadf11ad6
org.apache.maven.surefire.booter.spi.SurefireMasterProcessChannelProcessorFactory6bb9533ad5c08a49
org.apache.maven.surefire.junitplatform.JUnitPlatformProvider847b42ef97f97d2b
org.apache.maven.surefire.junitplatform.RunListenerAdapterd23fd29ada1102cb
org.apache.maven.surefire.junitplatform.RunListenerAdapter.155724259eef83afa
org.apache.maven.surefire.junitplatform.TestPlanScannerFiltera3ae2542fd30e874
org.apache.maven.surefire.shared.codec.binary.Base64cd6927ec7cf0569e
org.apache.maven.surefire.shared.codec.binary.BaseNCodecc8dd8163b58acfc1
org.apache.maven.surefire.shared.codec.binary.BaseNCodec.Context84b370e464e7008c
org.apache.maven.surefire.shared.lang3.JavaVersion590095a767529b48
org.apache.maven.surefire.shared.lang3.StringUtilsae3c2c379ffab6fd
org.apache.maven.surefire.shared.lang3.SystemUtilse4faf882077bc6c0
org.apache.maven.surefire.shared.lang3.math.NumberUtils505629194db735ed
org.apache.maven.surefire.shared.utils.StringUtils5ba1288622b5e22e
org.apache.maven.surefire.shared.utils.cli.ShutdownHookUtilsb7b46c5c1f482bd4
org.apiguardian.api.API.Status0341e8d99fc36573
org.junit.jupiter.api.AssertEquals6b16b14f06d2f13c
org.junit.jupiter.api.Assertions7406fdbebf83bc7a
org.junit.jupiter.api.DisplayNameGeneratorc813afbd86fd7cc8
org.junit.jupiter.api.DisplayNameGenerator.ReplaceUnderscores82e8bc7daaa8e1e0
org.junit.jupiter.api.DisplayNameGenerator.Standardf23772be1d9bb824
org.junit.jupiter.api.TestInstance.Lifecycle548dd47a98f9c8af
org.junit.jupiter.api.extension.ConditionEvaluationResult2f9dc9ea54b57975
org.junit.jupiter.api.extension.ExtensionContext1789eac1274261fc
org.junit.jupiter.api.extension.ExtensionContext.Namespace9ecb19f5d8d233f2
org.junit.jupiter.api.extension.InvocationInterceptor996f7741ba5ec355
org.junit.jupiter.engine.JupiterTestEngine42bfd69ac4ff9a31
org.junit.jupiter.engine.config.CachingJupiterConfiguratione0782b8c7a730030
org.junit.jupiter.engine.config.ClassNamePatternParameterConverterdb88e74320096433
org.junit.jupiter.engine.config.DefaultJupiterConfiguration9edf3c93edb9be05
org.junit.jupiter.engine.config.DisplayNameGeneratorParameterConverter10239f24d8c710ad
org.junit.jupiter.engine.config.EnumConfigurationParameterConverter339f5752af685066
org.junit.jupiter.engine.descriptor.AbstractExtensionContext9bf01323cf853683
org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor93da3ced5777b865
org.junit.jupiter.engine.descriptor.ClassExtensionContextda8d011f2fd97107
org.junit.jupiter.engine.descriptor.ClassTestDescriptorf5d10ac1d89bb01f
org.junit.jupiter.engine.descriptor.DisplayNameUtils5b062d6beb8f55b6
org.junit.jupiter.engine.descriptor.ExtensionUtils857bd7cde465ada0
org.junit.jupiter.engine.descriptor.JupiterEngineDescriptor8502a8ddd495080f
org.junit.jupiter.engine.descriptor.JupiterEngineExtensionContext37e3ac8bbe8deb47
org.junit.jupiter.engine.descriptor.JupiterTestDescriptoracf2905fc10efa75
org.junit.jupiter.engine.descriptor.LifecycleMethodUtils1162b59df6db6b33
org.junit.jupiter.engine.descriptor.MethodBasedTestDescriptor120c02c460cd1892
org.junit.jupiter.engine.descriptor.MethodExtensionContextafe114c2ffc920b7
org.junit.jupiter.engine.descriptor.TestInstanceLifecycleUtils8d8758db35676c1c
org.junit.jupiter.engine.descriptor.TestMethodTestDescriptorb9a613d54c81997c
org.junit.jupiter.engine.discovery.ClassSelectorResolvera62bf2e2a3da3cb2
org.junit.jupiter.engine.discovery.DiscoverySelectorResolver9913614fbfb4142b
org.junit.jupiter.engine.discovery.MethodFinder5ea468d2eb528361
org.junit.jupiter.engine.discovery.MethodOrderingVisitorbd9a3fc474bdccea
org.junit.jupiter.engine.discovery.MethodSelectorResolver9e004b1ce9842826
org.junit.jupiter.engine.discovery.MethodSelectorResolver.MethodType76d091417c997edb
org.junit.jupiter.engine.discovery.MethodSelectorResolver.MethodType.1098756f55a3f159b
org.junit.jupiter.engine.discovery.MethodSelectorResolver.MethodType.2b4451da4ca26c94f
org.junit.jupiter.engine.discovery.MethodSelectorResolver.MethodType.3a9cba48e54e36d6b
org.junit.jupiter.engine.discovery.predicates.IsInnerClassf7d9846d00228720
org.junit.jupiter.engine.discovery.predicates.IsNestedTestClasse47ff7cd33073803
org.junit.jupiter.engine.discovery.predicates.IsPotentialTestContainerfcb5565ad4483f6c
org.junit.jupiter.engine.discovery.predicates.IsTestClassWithTests2a6af63531e197a1
org.junit.jupiter.engine.discovery.predicates.IsTestFactoryMethoda2c68978bd6bfbc6
org.junit.jupiter.engine.discovery.predicates.IsTestMethod8b244977e441886e
org.junit.jupiter.engine.discovery.predicates.IsTestTemplateMethod0baf1066bf0cbad7
org.junit.jupiter.engine.discovery.predicates.IsTestableMethod59a0b58a40803fe2
org.junit.jupiter.engine.execution.ConditionEvaluatorc2ba33ab802578df
org.junit.jupiter.engine.execution.ConstructorInvocation4aef47e7c0afe594
org.junit.jupiter.engine.execution.DefaultTestInstances37fd85d961d60c98
org.junit.jupiter.engine.execution.ExecutableInvoker88626e54fda7c10e
org.junit.jupiter.engine.execution.ExecutableInvoker.ReflectiveInterceptorCall1e58a02ac712330c
org.junit.jupiter.engine.execution.ExtensionValuesStoreb7ff2e73f692c652
org.junit.jupiter.engine.execution.ExtensionValuesStore.CompositeKey24fed135af0eff32
org.junit.jupiter.engine.execution.ExtensionValuesStore.MemoizingSupplier5be22cd9e3599327
org.junit.jupiter.engine.execution.InvocationInterceptorChain008224a337018874
org.junit.jupiter.engine.execution.InvocationInterceptorChain.InterceptedInvocation62ff9a2338ce3045
org.junit.jupiter.engine.execution.InvocationInterceptorChain.ValidatingInvocation2434903e45fcd05c
org.junit.jupiter.engine.execution.JupiterEngineExecutionContext868921f800563654
org.junit.jupiter.engine.execution.JupiterEngineExecutionContext.Builderd23096bee4e10887
org.junit.jupiter.engine.execution.JupiterEngineExecutionContext.State0a606b935b0623c0
org.junit.jupiter.engine.execution.MethodInvocation6f894f3cd37e86c5
org.junit.jupiter.engine.execution.NamespaceAwareStore3ffe1c39d58eaf53
org.junit.jupiter.engine.execution.TestInstancesProviderbb5b676e93849b60
org.junit.jupiter.engine.extension.DisabledCondition23223b45668b6ef2
org.junit.jupiter.engine.extension.ExtensionRegistry7f89cc3238c43287
org.junit.jupiter.engine.extension.MutableExtensionRegistry094514ca9919cd68
org.junit.jupiter.engine.extension.RepeatedTestExtension1b7914cc8cf83732
org.junit.jupiter.engine.extension.TempDirectory3ed1c1e958835b3c
org.junit.jupiter.engine.extension.TestInfoParameterResolver1b5b370a56807cae
org.junit.jupiter.engine.extension.TestReporterParameterResolver60beaf7c80fe99cc
org.junit.jupiter.engine.extension.TimeoutConfigurationd1c949ce4363e069
org.junit.jupiter.engine.extension.TimeoutDurationParser47f3e400722ef57b
org.junit.jupiter.engine.extension.TimeoutExtensionf396c89f10d2bf92
org.junit.jupiter.engine.support.JupiterThrowableCollectorFactorybe8bb2befc643502
org.junit.jupiter.engine.support.OpenTest4JAndJUnit4AwareThrowableCollectorea5378eacfd98d84
org.junit.platform.commons.function.Tryed940444537e81c8
org.junit.platform.commons.function.Try.Failure11c2a90efd237384
org.junit.platform.commons.function.Try.Successc4950437cb3f8d07
org.junit.platform.commons.logging.LoggerFactory3ba683e3050bf0cd
org.junit.platform.commons.logging.LoggerFactory.DelegatingLoggerc601ec41368ffb23
org.junit.platform.commons.support.AnnotationSupport9943d504ff0c08cc
org.junit.platform.commons.support.ReflectionSupport534b5bde0100740f
org.junit.platform.commons.util.AnnotationUtilsf61f84cc85e2534a
org.junit.platform.commons.util.BlacklistedExceptionsbde618675b598c40
org.junit.platform.commons.util.ClassLoaderUtilsc4b37ecc9a1c73f1
org.junit.platform.commons.util.ClassUtils8883e6fc8a933271
org.junit.platform.commons.util.ClasspathScannerac8b6266e9b6789d
org.junit.platform.commons.util.CollectionUtilsa5cea6ca5e67470d
org.junit.platform.commons.util.Preconditions96db76b91278a526
org.junit.platform.commons.util.ReflectionUtils9fe1fac13e880dd6
org.junit.platform.commons.util.ReflectionUtils.HierarchyTraversalMode12b3937debd6b2c1
org.junit.platform.commons.util.StringUtilsae2f08e02cb55734
org.junit.platform.engine.CompositeFilterec8dc82249eeb7a9
org.junit.platform.engine.CompositeFilter.170825b5141694d2a
org.junit.platform.engine.EngineDiscoveryListener22998ffae2c92a7c
org.junit.platform.engine.EngineDiscoveryListener.1df3f3b5f98f0bac1
org.junit.platform.engine.ExecutionRequested3835cc21e5a048
org.junit.platform.engine.Filterf932423ccd3b54bf
org.junit.platform.engine.FilterResultcdaa92f4f6f79059
org.junit.platform.engine.SelectorResolutionResult84379bf9c19eb4b1
org.junit.platform.engine.SelectorResolutionResult.Status7127e7bcdd8dd16b
org.junit.platform.engine.TestDescriptor9fce516d5ec67d95
org.junit.platform.engine.TestDescriptor.Type3d400391a113f4d2
org.junit.platform.engine.TestExecutionResultfd67f84654a5aa1c
org.junit.platform.engine.TestExecutionResult.Status26685ff07ec05579
org.junit.platform.engine.UniqueIde031943c734b350e
org.junit.platform.engine.UniqueId.Segmente194895cf704d270
org.junit.platform.engine.UniqueIdFormatd5b6ae13b16471ae
org.junit.platform.engine.discovery.ClassSelector502567f08c42b0d4
org.junit.platform.engine.discovery.DiscoverySelectors82f61a948dbe4f5a
org.junit.platform.engine.discovery.MethodSelectora07d3186374af8d5
org.junit.platform.engine.support.descriptor.AbstractTestDescriptor2bfbf25c43491443
org.junit.platform.engine.support.descriptor.ClassSourceebe18bb735086cbe
org.junit.platform.engine.support.descriptor.EngineDescriptorb7dbf6dfb794516c
org.junit.platform.engine.support.descriptor.MethodSourceadbe9ff8c196551c
org.junit.platform.engine.support.discovery.ClassContainerSelectorResolver13e03d83db463757
org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolutionf23cc843ffd69e68
org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolution.DefaultContext1062edde7e863f79
org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolver96067c54823596a5
org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolver.Builder4536a37bf6e65b70
org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolver.DefaultInitializationContextf1925780e6c4e71e
org.junit.platform.engine.support.discovery.SelectorResolver80cba972b4f10568
org.junit.platform.engine.support.discovery.SelectorResolver.Matcha6c967fba828723c
org.junit.platform.engine.support.discovery.SelectorResolver.Match.Typeb37cc687ae9a3084
org.junit.platform.engine.support.discovery.SelectorResolver.Resolution6a587b13ca925431
org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine97ffbc145c7d4a83
org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor68a36544a3925ed3
org.junit.platform.engine.support.hierarchical.LockManager3b5f78863ff21738
org.junit.platform.engine.support.hierarchical.Nodeb49761977ceb7101
org.junit.platform.engine.support.hierarchical.Node.SkipResultbd08edf24f1dd4d9
org.junit.platform.engine.support.hierarchical.NodeExecutionAdvisore5cf54a3abfe8a32
org.junit.platform.engine.support.hierarchical.NodeTestTask2d78f1925dd4882a
org.junit.platform.engine.support.hierarchical.NodeTestTask.DefaultDynamicTestExecutorfdbc89e07549b13b
org.junit.platform.engine.support.hierarchical.NodeTestTaskContext844fff78e0efe7ef
org.junit.platform.engine.support.hierarchical.NodeTreeWalkerb0b50dbbc8c467a5
org.junit.platform.engine.support.hierarchical.NodeUtilsd602362461bcf308
org.junit.platform.engine.support.hierarchical.NodeUtils.1f707e15bc93748e1
org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService054c281153908bb9
org.junit.platform.engine.support.hierarchical.ThrowableCollector655e27ddc85aeb2a
org.junit.platform.launcher.EngineDiscoveryResult8a104796dc402ce9
org.junit.platform.launcher.EngineDiscoveryResult.Statusb30c4012c3e2f07e
org.junit.platform.launcher.LauncherDiscoveryListener456d3e735c22aa48
org.junit.platform.launcher.LauncherDiscoveryListener.1a120e75b9fe22bf4
org.junit.platform.launcher.TestIdentifier225bb434f8f223e2
org.junit.platform.launcher.TestPlan60578bb4f50b5157
org.junit.platform.launcher.core.DefaultDiscoveryRequestc69d8a6244047852
org.junit.platform.launcher.core.DefaultLauncherb535c0b0b3751eb8
org.junit.platform.launcher.core.DefaultLauncherConfiga355b55f1fea9e21
org.junit.platform.launcher.core.DelegatingEngineExecutionListener1e5487ee783deeca
org.junit.platform.launcher.core.EngineDiscoveryResultValidator93df7a3977833cf5
org.junit.platform.launcher.core.ExecutionListenerAdapterc5de7169f1a88932
org.junit.platform.launcher.core.InternalTestPlan4bd2d207c99632bd
org.junit.platform.launcher.core.LauncherConfigb3c713ac595fde03
org.junit.platform.launcher.core.LauncherConfig.Buildera17564c5b87448a3
org.junit.platform.launcher.core.LauncherConfigurationParameters461c933a6a874583
org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder718cd866fd0e3b49
org.junit.platform.launcher.core.LauncherFactoryd419bbcae8fd872b
org.junit.platform.launcher.core.OutcomeDelayingEngineExecutionListener72e79df7e2d97cc9
org.junit.platform.launcher.core.OutcomeDelayingEngineExecutionListener.Outcome4d8244bde278efbb
org.junit.platform.launcher.core.Root77042aab5235c2d8
org.junit.platform.launcher.core.ServiceLoaderTestEngineRegistry7c054c4cf76cb0f6
org.junit.platform.launcher.core.ServiceLoaderTestExecutionListenerRegistry2299bac1075a6bf3
org.junit.platform.launcher.core.StreamInterceptingTestExecutionListener3a1f3bd6b32f854b
org.junit.platform.launcher.core.TestExecutionListenerRegistryf61866dbd0e36091
org.junit.platform.launcher.core.TestExecutionListenerRegistry.CompositeTestExecutionListener583008686628ab79
org.junit.platform.launcher.listeners.discovery.AbortOnFailureLauncherDiscoveryListener267176035c858efc
org.junit.platform.launcher.listeners.discovery.LauncherDiscoveryListenersc83fb9349eaee2dc
\ No newline at end of file diff --git a/backend/target/site/jacoco/jacoco.csv b/backend/target/site/jacoco/jacoco.csv index b7c9e46..1580f27 100644 --- a/backend/target/site/jacoco/jacoco.csv +++ b/backend/target/site/jacoco/jacoco.csv @@ -2,17 +2,19 @@ GROUP,PACKAGE,CLASS,INSTRUCTION_MISSED,INSTRUCTION_COVERED,BRANCH_MISSED,BRANCH_ backend,com.workbenchclassic.hmi,HmiImsapiGateway,528,0,96,0,68,0,53,0,5,0 backend,com.workbenchclassic.hmi,HmiSchemaBootstrap,726,0,80,0,156,0,58,0,18,0 backend,com.workbenchclassic.hmi,HmiJvmOptions.new Callable() {...},44,0,4,0,8,0,4,0,2,0 -backend,com.workbenchclassic.hmi,HmiAuth,482,0,100,0,76,0,67,0,17,0 -backend,com.workbenchclassic.hmi,HmiImsapiSecurityResource,441,0,48,0,73,0,30,0,6,0 +backend,com.workbenchclassic.hmi,HmiAuth,485,0,100,0,76,0,67,0,17,0 +backend,com.workbenchclassic.hmi,HmiImsapiSecurityResource,443,0,48,0,74,0,30,0,6,0 +backend,com.workbenchclassic.hmi,HmiPersonnel.Person,30,0,4,0,7,0,3,0,1,0 backend,com.workbenchclassic.hmi,HmiLegacyWidgetResource,354,0,46,0,50,0,32,0,7,0 backend,com.workbenchclassic.hmi,HmiHealthServlet,70,0,0,0,21,0,2,0,2,0 backend,com.workbenchclassic.hmi,HmiThemeServlet,43,0,4,0,11,0,4,0,2,0 backend,com.workbenchclassic.hmi,HmiJvmOptions,372,0,32,0,69,0,24,0,8,0 backend,com.workbenchclassic.hmi,HmiImsapiActionResource,153,0,20,0,22,0,13,0,3,0 +backend,com.workbenchclassic.hmi,HmiPersonnel,259,0,44,0,54,0,29,0,7,0 backend,com.workbenchclassic.hmi,HmiStyleResource,654,0,56,0,51,0,45,0,17,0 backend,com.workbenchclassic.hmi,HmiTransportPolicy,88,0,16,0,18,0,13,0,5,0 backend,com.workbenchclassic.hmi,HmiSchemaRecovery,92,0,14,0,22,0,13,0,6,0 -backend,com.workbenchclassic.hmi,HmiRolesResource,952,0,86,0,104,0,65,0,22,0 +backend,com.workbenchclassic.hmi,HmiRolesResource,953,0,86,0,111,0,65,0,22,0 backend,com.workbenchclassic.hmi,HmiStyles,136,0,28,0,21,0,18,0,4,0 backend,com.workbenchclassic.hmi,HmiSchemaRecoveryResource,134,0,16,0,17,0,11,0,3,0 backend,com.workbenchclassic.hmi,HmiSystemSettingsResource,197,0,24,0,37,0,18,0,6,0 @@ -22,7 +24,7 @@ backend,com.workbenchclassic.hmi,HmiApiResource,4522,0,573,0,546,0,355,0,67,0 backend,com.workbenchclassic.hmi,HmiBootstrapResource,157,0,14,0,23,0,11,0,4,0 backend,com.workbenchclassic.hmi,HmiWorkplaceProxyResource,430,0,60,0,83,0,38,0,8,0 backend,com.workbenchclassic.hmi,HmiAssetsResource,358,0,60,0,37,0,35,0,5,0 -backend,com.workbenchclassic.hmi,HmiInitialAdmin,420,0,68,0,76,0,42,0,8,0 +backend,com.workbenchclassic.hmi,HmiInitialAdmin,349,0,58,0,65,0,37,0,8,0 backend,com.workbenchclassic,GetStationsApi.KapNode,15,0,0,0,6,0,3,0,3,0 backend,com.workbenchclassic,GetStationsApi.MaGrpNode,23,0,0,0,8,0,4,0,4,0 backend,com.workbenchclassic,GetStationsApi.LineNode,23,0,0,0,8,0,4,0,4,0 diff --git a/backend/target/site/jacoco/jacoco.xml b/backend/target/site/jacoco/jacoco.xml index 12996c8..e281bdf 100644 --- a/backend/target/site/jacoco/jacoco.xml +++ b/backend/target/site/jacoco/jacoco.xml @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/backend/target/surefire-reports/TEST-com.workbenchclassic.AppTest.xml b/backend/target/surefire-reports/TEST-com.workbenchclassic.AppTest.xml index 584a968..f9ce64f 100644 --- a/backend/target/surefire-reports/TEST-com.workbenchclassic.AppTest.xml +++ b/backend/target/surefire-reports/TEST-com.workbenchclassic.AppTest.xml @@ -1,5 +1,5 @@ - + @@ -12,7 +12,7 @@ - + @@ -27,7 +27,7 @@ - + @@ -54,5 +54,5 @@ - + \ No newline at end of file diff --git a/backend/target/surefire-reports/com.workbenchclassic.AppTest.txt b/backend/target/surefire-reports/com.workbenchclassic.AppTest.txt index e41ef82..7f797fa 100644 --- a/backend/target/surefire-reports/com.workbenchclassic.AppTest.txt +++ b/backend/target/surefire-reports/com.workbenchclassic.AppTest.txt @@ -1,4 +1,4 @@ ------------------------------------------------------------------------------- Test set: com.workbenchclassic.AppTest ------------------------------------------------------------------------------- -Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.048 s - in com.workbenchclassic.AppTest +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.051 s - in com.workbenchclassic.AppTest diff --git a/hmi-frontend/src/RoleAdmin.vue b/hmi-frontend/src/RoleAdmin.vue index f4c3f8b..1094abd 100644 --- a/hmi-frontend/src/RoleAdmin.vue +++ b/hmi-frontend/src/RoleAdmin.vue @@ -2,7 +2,7 @@ import {ref,onMounted,computed} from 'vue'; import {api} from './api'; interface Role {key:string;description:string} -interface Person {name:string;vorname:string;persId:string} +interface Person {name:string;vorname:string;persId:string;bdeUserId?:string} interface Assignments {roles:string[];groups:string[];logins:string[]} const emit=defineEmits<{close:[]}>(); const people=ref([]),search=ref(''), selected=ref(null); @@ -13,8 +13,8 @@ const error=ref(''),notice=ref(''),busy=ref(false); const name=computed(()=>selected.value?`${selected.value.vorname} ${selected.value.name} · ${selected.value.persId}`:'Keine Person ausgewählt'); async function reload(){roles.value=await api('/admin/roles');groups.value=await api('/admin/groups');} async function loadPeople(){try{people.value=await api('/admin/people?q='+encodeURIComponent(search.value));}catch(e){error.value=String(e);}} -async function selectPerson(p:Person){selected.value=p;login.value='';try{const result=await api('/admin/people/'+encodeURIComponent(p.persId)+'/assignments');assignedRoles.value=result.roles;assignedGroups.value=result.groups;logins.value=result.logins;}catch(e){error.value=String(e);}} -async function savePerson(){if(!selected.value)return;busy.value=true;try{await api('/admin/people/'+encodeURIComponent(selected.value.persId)+'/assignments','PUT',{roles:assignedRoles.value,groups:assignedGroups.value});notice.value='Zuweisung gespeichert';error.value='';}catch(e){error.value=String(e);}finally{busy.value=false;}} +async function selectPerson(p:Person){selected.value=p;login.value=p.bdeUserId||'';try{const result=await api('/admin/people/'+encodeURIComponent(p.persId)+'/assignments');assignedRoles.value=result.roles;assignedGroups.value=result.groups;logins.value=result.logins;}catch(e){error.value=String(e);}} +async function savePerson(){if(!selected.value)return;busy.value=true;try{await api('/admin/people/'+encodeURIComponent(selected.value.persId)+'/assignments','PUT',{roles:assignedRoles.value,groups:assignedGroups.value});notice.value='Zuweisung gespeichert; BDE_USERID zugeordnet';error.value='';await selectPerson(selected.value);}catch(e){error.value=String(e);}finally{busy.value=false;}} async function mapLogin(){if(!selected.value||!login.value.trim())return;try{await api('/admin/logins/'+encodeURIComponent(login.value.trim())+'/person','PUT',{persId:selected.value.persId});notice.value='IMSAPI-Login wurde mit PERS_ID verknüpft';await selectPerson(selected.value);}catch(e){error.value=String(e);}} async function addRole(){if(!newRole.value.trim())return;try{await api('/admin/roles','POST',{key:newRole.value.trim(),description:newRole.value.trim()});newRole.value='';await reload();}catch(e){error.value=String(e);}} async function addGroup(){if(!newGroup.value.trim())return;try{await api('/admin/groups','POST',{key:newGroup.value.trim(),description:newGroup.value.trim()});newGroup.value='';await reload();}catch(e){error.value=String(e);}} @@ -30,9 +30,9 @@ onMounted(async()=>{try{await reload();await loadPeople();}catch(e){error.value=

1. Personalstamm · dsMesMiiNJTA

- -
- Abfrage: SELECT NAME, VORNAME, PERS_ID FROM BDE.PERS_STAMM. Maximal 60 Treffer. + +
+ Abfrage: SELECT NAME, VORNAME, PERS_ID, BDE_USERID FROM BDE.PERS_STAMM. Maximal 60 Treffer.

2. Rollenzuordnung

{{name}}

@@ -40,7 +40,7 @@ onMounted(async()=>{try{await reload();await loadPeople();}catch(e){error.value=

Direkte Rollen

Gruppenmitgliedschaft

-

IMSAPI-Login zuordnen

Bekannte Logins: {{logins.join(', ')||'Keine'}}

+

IMSAPI-Login zuordnen

BDE_USERID aus Personalstamm: {{ selected.bdeUserId||'Nicht hinterlegt' }} (automatische Verknüpfung beim Speichern)

Bekannte Logins: {{logins.join(', ')||'Keine'}}

Person auswählen, um Rollen zuzuordnen.