iobroker.admin 7.7.0 → 7.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/README.md +6 -8
  2. package/adminWww/assets/{AdapterUpdateDialog-n1ctcGKb.js → AdapterUpdateDialog-DHGhgEEq.js} +1 -1
  3. package/adminWww/assets/{Adapters-Byzq4dfE.js → Adapters-CgSIajcF.js} +2 -2
  4. package/adminWww/assets/{Config-BufFy_Z3.js → Config-BQSl4bfA.js} +1 -1
  5. package/adminWww/assets/{CustomModal-ASkCycZn.js → CustomModal-DNMTLv4y.js} +1 -1
  6. package/adminWww/assets/{CustomTab-D5ZlRfQA.js → CustomTab-Bl8S8QZW.js} +1 -1
  7. package/adminWww/assets/{DefaultPropsProvider-DxsXuIyE.js → DefaultPropsProvider-u5xB1Fxz.js} +1 -1
  8. package/adminWww/assets/{EasyMode-CTuK0TL7.js → EasyMode-xDbqrply.js} +1 -1
  9. package/adminWww/assets/{Enums-C5pau2hV.js → Enums-BSICIhWI.js} +1 -1
  10. package/adminWww/assets/{Fields-Cj6QGc97.js → Fields-C3JkTmfP.js} +1 -1
  11. package/adminWww/assets/{Files-DJmRnmH6.js → Files-DK85-COY.js} +2 -2
  12. package/adminWww/assets/{FilledInput-CKswrNd5.js → FilledInput-CysG4ax_.js} +1 -1
  13. package/adminWww/assets/{Hosts-B5BgwMoO.js → Hosts-qIsB4Gub.js} +2 -2
  14. package/adminWww/assets/Instances-BA_DCzs8.js +2 -0
  15. package/adminWww/assets/{Intro-Do7uao_1.js → Intro-00oh6SLw.js} +1 -1
  16. package/adminWww/assets/{Logs-DK0nfkio.js → Logs-Cvpgh-zN.js} +1 -1
  17. package/adminWww/assets/{Objects-9W6F_Gl6.js → Objects-Dp71iotS.js} +3 -3
  18. package/adminWww/assets/{State-CdKRELiQ.js → State-BqfD2ABf.js} +1 -1
  19. package/adminWww/assets/{Tabs-BJ1rL35Z.js → Tabs-sxfWgN0b.js} +2 -2
  20. package/adminWww/assets/{Users-7TI-QdQA.js → Users-CDcWqTfZ.js} +1 -1
  21. package/adminWww/assets/ace-BG5WYul1.js +985 -0
  22. package/adminWww/assets/{blueGrey-D-KQaGde.js → blueGrey-DYsiMDOn.js} +1 -1
  23. package/adminWww/assets/{bootstrap-BX2s0oWJ.js → bootstrap-BYQTdf9r.js} +10 -10
  24. package/adminWww/assets/{createSvgIcon-DuKI6CvW.js → createSvgIcon-Bh3KWtyp.js} +1 -1
  25. package/adminWww/assets/{emotion-react.browser.esm-DApPKwaj.js → emotion-react.browser.esm-BCDt9NrH.js} +1 -1
  26. package/adminWww/assets/{emotion-styled.browser.esm-Dc05hmeu.js → emotion-styled.browser.esm-CyFqGgyG.js} +1 -1
  27. package/adminWww/assets/{emotion-utils.browser.esm-DOjH6Olm.js → emotion-utils.browser.esm-pglN4_eI.js} +1 -1
  28. package/adminWww/assets/{geosearch.module-CWfRtxrN.js → geosearch.module-DH4NhiPj.js} +1 -1
  29. package/adminWww/assets/hostInit-fzxL8JAx.js +1 -1
  30. package/adminWww/assets/{iconBase-CgxZ5MMC.js → iconBase-C3vi24ZE.js} +1 -1
  31. package/adminWww/assets/{index-BmWdDCX_.js → index-B1ITPhEY.js} +2 -2
  32. package/adminWww/assets/{index-D7Rlw-5R.js → index-D--ojYan.js} +1 -1
  33. package/adminWww/assets/{index-nYRrWzRm.js → index-D3IAEXXP.js} +1 -1
  34. package/adminWww/assets/{index-HOidq_rM.js → index-DPDg2YA0.js} +1 -1
  35. package/adminWww/assets/{index-Bsv_DXxB.js → index-DTGUg51P.js} +1 -1
  36. package/adminWww/assets/{index-BP5kWU3L.js → index-Qa7Q_Dz5.js} +1 -1
  37. package/adminWww/assets/{index-4ywCzYtt.js → index-qcIeekse.js} +2 -2
  38. package/adminWww/assets/{index-gHyOgbGJ.js → index-rKfs-rCa.js} +1 -1
  39. package/adminWww/assets/{index-CL669NIb.js → index-wN1ZlPSW.js} +2 -2
  40. package/adminWww/assets/iobroker_admin__loadShare___mf_0_emotion_mf_1_react__loadShare__-BOKYvG_W.js +1 -0
  41. package/adminWww/assets/{iobroker_admin__loadShare__leaflet__loadShare__-B1OZ7tj-.js → iobroker_admin__loadShare__leaflet__loadShare__-h9SMNPLU.js} +1 -1
  42. package/adminWww/assets/iobroker_admin__loadShare__prop_mf_2_types__loadShare__-BnsS7SOQ.js +1 -0
  43. package/adminWww/assets/{iobroker_admin__loadShare__react__loadShare__-DtlEM_52.js → iobroker_admin__loadShare__react__loadShare__-Bis6NHgw.js} +1 -1
  44. package/adminWww/assets/iobroker_admin__mf_v__runtimeInit__mf_v__-CTkuGOOk.js +5 -0
  45. package/adminWww/assets/{sentry-CVjuw0L7.js → sentry-H_UdJ2zx.js} +1 -1
  46. package/adminWww/assets/{zh-cn-Dv2ND1_P.js → zh-cn-vvAC9zpl.js} +3 -3
  47. package/adminWww/index.html +2 -2
  48. package/adminWww/mf-manifest.json +1 -1
  49. package/adminWww/remoteEntry.js +2 -2
  50. package/io-package.json +27 -27
  51. package/package.json +9 -9
  52. package/adminWww/assets/Instances-W2t3Z5_r.js +0 -2
  53. package/adminWww/assets/ace-kRq1OCR-.js +0 -985
  54. package/adminWww/assets/iobroker_admin__loadShare___mf_0_emotion_mf_1_react__loadShare__-gw2iqPBS.js +0 -1
  55. package/adminWww/assets/iobroker_admin__loadShare__prop_mf_2_types__loadShare__-BGyJCibC.js +0 -1
  56. package/adminWww/assets/iobroker_admin__mf_v__runtimeInit__mf_v__-VDoBF19b.js +0 -10
@@ -1,4 +1,4 @@
1
- import{j as r}from"./DefaultPropsProvider-DxsXuIyE.js";import{Z as Se,X as Oe,Y as je,f as M,U as H,b as J,a as C,i as p,a2 as Fe,a3 as $e,a4 as He,_ as Ge,a5 as Me,W as Je,a6 as Ue,a7 as Ke,$ as qe,a0 as Ze,a1 as Ye,h as Xe,T as Qe}from"./bootstrap-BX2s0oWJ.js";import{i as S,R as L}from"./iobroker_admin__loadShare__react__loadShare__-DtlEM_52.js";import{I as se,a as et,b as tt}from"./Fields-Cj6QGc97.js";import{g as Pe,h as Le}from"./index-HOidq_rM.js";import{_ as o}from"./preload-helper-Dp1pzeXC.js";import Te from"./list-C2A06nPE.js";import"./iobroker_admin__loadShare__prop_mf_2_types__loadShare__-BGyJCibC.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./iobroker_admin__mf_v__runtimeInit__mf_v__-VDoBF19b.js";import"./emotion-serialize.esm-BUa21YfQ.js";import"./iobroker_admin__loadShare___mf_0_emotion_mf_1_react__loadShare__-gw2iqPBS.js";import"./ace-kRq1OCR-.js";import"./FilledInput-CKswrNd5.js";import"./blueGrey-D-KQaGde.js";import"./emotion-cache.browser.esm-B8BFze5o.js";import"./iobroker_admin__loadShare__leaflet__loadShare__-B1OZ7tj-.js";import"./extends-CF3RwP-h.js";import"./iconBase-CgxZ5MMC.js";var Re={exports:{}},x={};/** @license React v17.0.2
1
+ import{j as r}from"./DefaultPropsProvider-u5xB1Fxz.js";import{Z as Se,X as Oe,Y as je,f as M,U as H,b as J,a as C,i as p,a2 as Fe,a3 as $e,a4 as He,_ as Ge,a5 as Me,W as Je,a6 as Ue,a7 as Ke,$ as qe,a0 as Ze,a1 as Ye,h as Xe,T as Qe}from"./bootstrap-BYQTdf9r.js";import{i as S,R as L}from"./iobroker_admin__loadShare__react__loadShare__-Bis6NHgw.js";import{I as se,a as et,b as tt}from"./Fields-C3JkTmfP.js";import{g as Pe,h as Le}from"./index-DPDg2YA0.js";import{_ as o}from"./preload-helper-Dp1pzeXC.js";import Te from"./list-C2A06nPE.js";import"./iobroker_admin__loadShare__prop_mf_2_types__loadShare__-BnsS7SOQ.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./iobroker_admin__mf_v__runtimeInit__mf_v__-CTkuGOOk.js";import"./emotion-serialize.esm-BUa21YfQ.js";import"./iobroker_admin__loadShare___mf_0_emotion_mf_1_react__loadShare__-BOKYvG_W.js";import"./ace-BG5WYul1.js";import"./FilledInput-CysG4ax_.js";import"./blueGrey-DYsiMDOn.js";import"./emotion-cache.browser.esm-B8BFze5o.js";import"./iobroker_admin__loadShare__leaflet__loadShare__-h9SMNPLU.js";import"./extends-CF3RwP-h.js";import"./iconBase-C3vi24ZE.js";var Re={exports:{}},x={};/** @license React v17.0.2
2
2
  * react-is.production.min.js
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -1 +1 @@
1
- import{i as u}from"./iobroker_admin__loadShare__react__loadShare__-DtlEM_52.js";import{j as a}from"./DefaultPropsProvider-DxsXuIyE.js";import{a8 as c,i as r,a as m,a9 as _}from"./bootstrap-BX2s0oWJ.js";u.createContext(void 0);var o=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),f=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),x=e=>{let t=e.getInitialClientOffset(),n=e.getInitialSourceClientOffset();return t===null||n===null?{x:0,y:0}:o(t,n)},y=(e,t)=>{switch(e){case"left":case"top-start":case"bottom-start":return 0;case"right":case"top-end":case"bottom-end":return t.width;default:return t.width/2}},g=(e,t)=>{switch(e){case"top":case"top-start":case"top-end":return 0;case"bottom":case"bottom-start":case"bottom-end":return t.height;default:return t.height/2}},h=(e,t,n="center",l={x:0,y:0})=>{let i=e.getClientOffset();if(i===null)return null;if(!t.current||!t.current.getBoundingClientRect)return o(i,x(e));let s=t.current.getBoundingClientRect(),d={x:y(n,s),y:g(n,s)};return f(o(i,d),l)},C=e=>{let t=`translate(${e.x.toFixed(1)}px, ${e.y.toFixed(1)}px)`;return{pointerEvents:"none",position:"fixed",top:0,left:0,transform:t,WebkitTransform:t}},j=e=>{let t=u.useRef(null),n=c(l=>({currentOffset:h(l,t,e==null?void 0:e.placement,e==null?void 0:e.padding),isDragging:l.isDragging(),itemType:l.getItemType(),item:l.getItem(),monitor:l}));return!n.isDragging||n.currentOffset===null?{display:!1}:{display:!0,itemType:n.itemType,item:n.item,style:C(n.currentOffset),monitor:n.monitor,ref:t}};function k(e){const t=e.icon;return a.jsxs("div",{style:e.styles.formContainer,children:[t?a.jsx(t,{style:e.styles.formIcon}):null,a.jsx(r.FormControl,{style:e.styles.formControl,variant:"standard",children:a.jsx(r.TextField,{variant:"standard",label:e.t(e.label),autoComplete:e.autoComplete,error:!!e.error,helperText:e.error||"",value:e.value,onChange:n=>e.onChange(n.target.value),disabled:e.disabled,type:e.type,slotProps:{inputLabel:{shrink:!0},input:{readOnly:!1,endAdornment:e.value?a.jsx(r.InputAdornment,{position:"end",children:a.jsx(r.IconButton,{tabIndex:-1,size:"small",onClick:()=>e.onChange(""),children:a.jsx(m.Close,{})})}):null}}})})]})}function O(e){const t=e.icon;return a.jsxs("div",{style:{width:"100%"},children:[t?a.jsx(t,{style:e.previewStyle||e.styles.formIcon}):null,a.jsx(_,{style:{...e.style||void 0,width:t?"calc(100% - 45px)":"100%",display:"inline-block",verticalAlign:"top"},label:e.t(e.label),onChange:e.onChange,value:e.value||""})]})}export{k as I,O as a,j as b};
1
+ import{i as u}from"./iobroker_admin__loadShare__react__loadShare__-Bis6NHgw.js";import{j as a}from"./DefaultPropsProvider-u5xB1Fxz.js";import{a8 as c,i as r,a as m,a9 as _}from"./bootstrap-BYQTdf9r.js";u.createContext(void 0);var o=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),f=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),x=e=>{let t=e.getInitialClientOffset(),n=e.getInitialSourceClientOffset();return t===null||n===null?{x:0,y:0}:o(t,n)},y=(e,t)=>{switch(e){case"left":case"top-start":case"bottom-start":return 0;case"right":case"top-end":case"bottom-end":return t.width;default:return t.width/2}},g=(e,t)=>{switch(e){case"top":case"top-start":case"top-end":return 0;case"bottom":case"bottom-start":case"bottom-end":return t.height;default:return t.height/2}},h=(e,t,n="center",l={x:0,y:0})=>{let i=e.getClientOffset();if(i===null)return null;if(!t.current||!t.current.getBoundingClientRect)return o(i,x(e));let s=t.current.getBoundingClientRect(),d={x:y(n,s),y:g(n,s)};return f(o(i,d),l)},C=e=>{let t=`translate(${e.x.toFixed(1)}px, ${e.y.toFixed(1)}px)`;return{pointerEvents:"none",position:"fixed",top:0,left:0,transform:t,WebkitTransform:t}},j=e=>{let t=u.useRef(null),n=c(l=>({currentOffset:h(l,t,e==null?void 0:e.placement,e==null?void 0:e.padding),isDragging:l.isDragging(),itemType:l.getItemType(),item:l.getItem(),monitor:l}));return!n.isDragging||n.currentOffset===null?{display:!1}:{display:!0,itemType:n.itemType,item:n.item,style:C(n.currentOffset),monitor:n.monitor,ref:t}};function k(e){const t=e.icon;return a.jsxs("div",{style:e.styles.formContainer,children:[t?a.jsx(t,{style:e.styles.formIcon}):null,a.jsx(r.FormControl,{style:e.styles.formControl,variant:"standard",children:a.jsx(r.TextField,{variant:"standard",label:e.t(e.label),autoComplete:e.autoComplete,error:!!e.error,helperText:e.error||"",value:e.value,onChange:n=>e.onChange(n.target.value),disabled:e.disabled,type:e.type,slotProps:{inputLabel:{shrink:!0},input:{readOnly:!1,endAdornment:e.value?a.jsx(r.InputAdornment,{position:"end",children:a.jsx(r.IconButton,{tabIndex:-1,size:"small",onClick:()=>e.onChange(""),children:a.jsx(m.Close,{})})}):null}}})})]})}function O(e){const t=e.icon;return a.jsxs("div",{style:{width:"100%"},children:[t?a.jsx(t,{style:e.previewStyle||e.styles.formIcon}):null,a.jsx(_,{style:{...e.style||void 0,width:t?"calc(100% - 45px)":"100%",display:"inline-block",verticalAlign:"top"},label:e.t(e.label),onChange:e.onChange,value:e.value||""})]})}export{k as I,O as a,j as b};
@@ -1,6 +1,6 @@
1
- import{j as B}from"./DefaultPropsProvider-DxsXuIyE.js";import{i as M}from"./iobroker_admin__loadShare__react__loadShare__-DtlEM_52.js";import{w as Ge,F as $e,E as ve,I as qe,i as ge,k as je,f as Ne,h as He,T as Ve,t as We}from"./bootstrap-BX2s0oWJ.js";import{a as be}from"./ace-kRq1OCR-.js";import{C as Je}from"./CustomModal-ASkCycZn.js";import"./iobroker_admin__loadShare__prop_mf_2_types__loadShare__-BGyJCibC.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./iobroker_admin__mf_v__runtimeInit__mf_v__-VDoBF19b.js";import"./emotion-serialize.esm-BUa21YfQ.js";import"./iobroker_admin__loadShare___mf_0_emotion_mf_1_react__loadShare__-gw2iqPBS.js";import"./FilledInput-CKswrNd5.js";import"./preload-helper-Dp1pzeXC.js";import"./blueGrey-D-KQaGde.js";import"./emotion-cache.browser.esm-B8BFze5o.js";import"./iobroker_admin__loadShare__leaflet__loadShare__-B1OZ7tj-.js";import"./extends-CF3RwP-h.js";var De={},Ie={};Ie.byteLength=Xe;Ie.toByteArray=Ke;Ie.fromByteArray=tt;var ee=[],K=[],ze=typeof Uint8Array<"u"?Uint8Array:Array,Te="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var de=0,Qe=Te.length;de<Qe;++de)ee[de]=Te[de],K[Te.charCodeAt(de)]=de;K[45]=62;K[95]=63;function Oe(f){var c=f.length;if(c%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var u=f.indexOf("=");u===-1&&(u=c);var d=u===c?0:4-u%4;return[u,d]}function Xe(f){var c=Oe(f),u=c[0],d=c[1];return(u+d)*3/4-d}function Ye(f,c,u){return(c+u)*3/4-u}function Ke(f){var c,u=Oe(f),d=u[0],a=u[1],h=new ze(Ye(f,d,a)),p=0,o=a>0?d-4:d,m;for(m=0;m<o;m+=4)c=K[f.charCodeAt(m)]<<18|K[f.charCodeAt(m+1)]<<12|K[f.charCodeAt(m+2)]<<6|K[f.charCodeAt(m+3)],h[p++]=c>>16&255,h[p++]=c>>8&255,h[p++]=c&255;return a===2&&(c=K[f.charCodeAt(m)]<<2|K[f.charCodeAt(m+1)]>>4,h[p++]=c&255),a===1&&(c=K[f.charCodeAt(m)]<<10|K[f.charCodeAt(m+1)]<<4|K[f.charCodeAt(m+2)]>>2,h[p++]=c>>8&255,h[p++]=c&255),h}function Ze(f){return ee[f>>18&63]+ee[f>>12&63]+ee[f>>6&63]+ee[f&63]}function et(f,c,u){for(var d,a=[],h=c;h<u;h+=3)d=(f[h]<<16&16711680)+(f[h+1]<<8&65280)+(f[h+2]&255),a.push(Ze(d));return a.join("")}function tt(f){for(var c,u=f.length,d=u%3,a=[],h=16383,p=0,o=u-d;p<o;p+=h)a.push(et(f,p,p+h>o?o:p+h));return d===1?(c=f[u-1],a.push(ee[c>>2]+ee[c<<4&63]+"==")):d===2&&(c=(f[u-2]<<8)+f[u-1],a.push(ee[c>>10]+ee[c>>4&63]+ee[c<<2&63]+"=")),a.join("")}var ke={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ke.read=function(f,c,u,d,a){var h,p,o=a*8-d-1,m=(1<<o)-1,S=m>>1,w=-7,g=u?a-1:0,E=u?-1:1,x=f[c+g];for(g+=E,h=x&(1<<-w)-1,x>>=-w,w+=o;w>0;h=h*256+f[c+g],g+=E,w-=8);for(p=h&(1<<-w)-1,h>>=-w,w+=d;w>0;p=p*256+f[c+g],g+=E,w-=8);if(h===0)h=1-S;else{if(h===m)return p?NaN:(x?-1:1)*(1/0);p=p+Math.pow(2,d),h=h-S}return(x?-1:1)*p*Math.pow(2,h-d)};ke.write=function(f,c,u,d,a,h){var p,o,m,S=h*8-a-1,w=(1<<S)-1,g=w>>1,E=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=d?0:h-1,k=d?1:-1,A=c<0||c===0&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(o=isNaN(c)?1:0,p=w):(p=Math.floor(Math.log(c)/Math.LN2),c*(m=Math.pow(2,-p))<1&&(p--,m*=2),p+g>=1?c+=E/m:c+=E*Math.pow(2,1-g),c*m>=2&&(p++,m/=2),p+g>=w?(o=0,p=w):p+g>=1?(o=(c*m-1)*Math.pow(2,a),p=p+g):(o=c*Math.pow(2,g-1)*Math.pow(2,a),p=0));a>=8;f[u+x]=o&255,x+=k,o/=256,a-=8);for(p=p<<a|o,S+=a;S>0;f[u+x]=p&255,x+=k,p/=256,S-=8);f[u+x-k]|=A*128};/*!
1
+ import{j as B}from"./DefaultPropsProvider-u5xB1Fxz.js";import{i as M}from"./iobroker_admin__loadShare__react__loadShare__-Bis6NHgw.js";import{w as Ge,F as $e,E as ve,I as qe,i as ge,k as je,f as Ne,h as He,T as Ve,t as We}from"./bootstrap-BYQTdf9r.js";import{a as be}from"./ace-BG5WYul1.js";import{C as Je}from"./CustomModal-DNMTLv4y.js";import"./iobroker_admin__loadShare__prop_mf_2_types__loadShare__-BnsS7SOQ.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./iobroker_admin__mf_v__runtimeInit__mf_v__-CTkuGOOk.js";import"./emotion-serialize.esm-BUa21YfQ.js";import"./iobroker_admin__loadShare___mf_0_emotion_mf_1_react__loadShare__-BOKYvG_W.js";import"./FilledInput-CysG4ax_.js";import"./preload-helper-Dp1pzeXC.js";import"./blueGrey-DYsiMDOn.js";import"./emotion-cache.browser.esm-B8BFze5o.js";import"./iobroker_admin__loadShare__leaflet__loadShare__-h9SMNPLU.js";import"./extends-CF3RwP-h.js";var De={},Ie={};Ie.byteLength=Xe;Ie.toByteArray=Ke;Ie.fromByteArray=tt;var ee=[],K=[],ze=typeof Uint8Array<"u"?Uint8Array:Array,Te="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var de=0,Qe=Te.length;de<Qe;++de)ee[de]=Te[de],K[Te.charCodeAt(de)]=de;K[45]=62;K[95]=63;function Oe(f){var c=f.length;if(c%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var u=f.indexOf("=");u===-1&&(u=c);var d=u===c?0:4-u%4;return[u,d]}function Xe(f){var c=Oe(f),u=c[0],d=c[1];return(u+d)*3/4-d}function Ye(f,c,u){return(c+u)*3/4-u}function Ke(f){var c,u=Oe(f),d=u[0],h=u[1],a=new ze(Ye(f,d,h)),p=0,o=h>0?d-4:d,m;for(m=0;m<o;m+=4)c=K[f.charCodeAt(m)]<<18|K[f.charCodeAt(m+1)]<<12|K[f.charCodeAt(m+2)]<<6|K[f.charCodeAt(m+3)],a[p++]=c>>16&255,a[p++]=c>>8&255,a[p++]=c&255;return h===2&&(c=K[f.charCodeAt(m)]<<2|K[f.charCodeAt(m+1)]>>4,a[p++]=c&255),h===1&&(c=K[f.charCodeAt(m)]<<10|K[f.charCodeAt(m+1)]<<4|K[f.charCodeAt(m+2)]>>2,a[p++]=c>>8&255,a[p++]=c&255),a}function Ze(f){return ee[f>>18&63]+ee[f>>12&63]+ee[f>>6&63]+ee[f&63]}function et(f,c,u){for(var d,h=[],a=c;a<u;a+=3)d=(f[a]<<16&16711680)+(f[a+1]<<8&65280)+(f[a+2]&255),h.push(Ze(d));return h.join("")}function tt(f){for(var c,u=f.length,d=u%3,h=[],a=16383,p=0,o=u-d;p<o;p+=a)h.push(et(f,p,p+a>o?o:p+a));return d===1?(c=f[u-1],h.push(ee[c>>2]+ee[c<<4&63]+"==")):d===2&&(c=(f[u-2]<<8)+f[u-1],h.push(ee[c>>10]+ee[c>>4&63]+ee[c<<2&63]+"=")),h.join("")}var ke={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ke.read=function(f,c,u,d,h){var a,p,o=h*8-d-1,m=(1<<o)-1,S=m>>1,w=-7,g=u?h-1:0,E=u?-1:1,x=f[c+g];for(g+=E,a=x&(1<<-w)-1,x>>=-w,w+=o;w>0;a=a*256+f[c+g],g+=E,w-=8);for(p=a&(1<<-w)-1,a>>=-w,w+=d;w>0;p=p*256+f[c+g],g+=E,w-=8);if(a===0)a=1-S;else{if(a===m)return p?NaN:(x?-1:1)*(1/0);p=p+Math.pow(2,d),a=a-S}return(x?-1:1)*p*Math.pow(2,a-d)};ke.write=function(f,c,u,d,h,a){var p,o,m,S=a*8-h-1,w=(1<<S)-1,g=w>>1,E=h===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=d?0:a-1,k=d?1:-1,A=c<0||c===0&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(o=isNaN(c)?1:0,p=w):(p=Math.floor(Math.log(c)/Math.LN2),c*(m=Math.pow(2,-p))<1&&(p--,m*=2),p+g>=1?c+=E/m:c+=E*Math.pow(2,1-g),c*m>=2&&(p++,m/=2),p+g>=w?(o=0,p=w):p+g>=1?(o=(c*m-1)*Math.pow(2,h),p=p+g):(o=c*Math.pow(2,g-1)*Math.pow(2,h),p=0));h>=8;f[u+x]=o&255,x+=k,o/=256,h-=8);for(p=p<<h|o,S+=h;S>0;f[u+x]=p&255,x+=k,p/=256,S-=8);f[u+x-k]|=A*128};/*!
2
2
  * The buffer module from node.js, for the browser.
3
3
  *
4
4
  * @author Feross Aboukhadijeh <https://feross.org>
5
5
  * @license MIT
6
- */(function(f){const c=Ie,u=ke,d=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;f.Buffer=o,f.SlowBuffer=se,f.INSPECT_MAX_BYTES=50;const a=2147483647;f.kMaxLength=a,o.TYPED_ARRAY_SUPPORT=h(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function h(){try{const r=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(r,e),r.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function p(r){if(r>a)throw new RangeError('The value "'+r+'" is invalid for option "size"');const e=new Uint8Array(r);return Object.setPrototypeOf(e,o.prototype),e}function o(r,e,t){if(typeof r=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return g(r)}return m(r,e,t)}o.poolSize=8192;function m(r,e,t){if(typeof r=="string")return E(r,e);if(ArrayBuffer.isView(r))return k(r);if(r==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(O(r,ArrayBuffer)||r&&O(r.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(O(r,SharedArrayBuffer)||r&&O(r.buffer,SharedArrayBuffer)))return A(r,e,t);if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const i=r.valueOf&&r.valueOf();if(i!=null&&i!==r)return o.from(i,e,t);const n=G(r);if(n)return n;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof r[Symbol.toPrimitive]=="function")return o.from(r[Symbol.toPrimitive]("string"),e,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}o.from=function(r,e,t){return m(r,e,t)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function S(r){if(typeof r!="number")throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}function w(r,e,t){return S(r),r<=0?p(r):e!==void 0?typeof t=="string"?p(r).fill(e,t):p(r).fill(e):p(r)}o.alloc=function(r,e,t){return w(r,e,t)};function g(r){return S(r),p(r<0?0:V(r)|0)}o.allocUnsafe=function(r){return g(r)},o.allocUnsafeSlow=function(r){return g(r)};function E(r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!o.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const t=q(r,e)|0;let i=p(t);const n=i.write(r,e);return n!==t&&(i=i.slice(0,n)),i}function x(r){const e=r.length<0?0:V(r.length)|0,t=p(e);for(let i=0;i<e;i+=1)t[i]=r[i]&255;return t}function k(r){if(O(r,Uint8Array)){const e=new Uint8Array(r);return A(e.buffer,e.byteOffset,e.byteLength)}return x(r)}function A(r,e,t){if(e<0||r.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(r.byteLength<e+(t||0))throw new RangeError('"length" is outside of buffer bounds');let i;return e===void 0&&t===void 0?i=new Uint8Array(r):t===void 0?i=new Uint8Array(r,e):i=new Uint8Array(r,e,t),Object.setPrototypeOf(i,o.prototype),i}function G(r){if(o.isBuffer(r)){const e=V(r.length)|0,t=p(e);return t.length===0||r.copy(t,0,0,e),t}if(r.length!==void 0)return typeof r.length!="number"||z(r.length)?p(0):x(r);if(r.type==="Buffer"&&Array.isArray(r.data))return x(r.data)}function V(r){if(r>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return r|0}function se(r){return+r!=r&&(r=0),o.alloc(+r)}o.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==o.prototype},o.compare=function(e,t){if(O(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),O(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(e)||!o.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let i=e.length,n=t.length;for(let s=0,l=Math.min(i,n);s<l;++s)if(e[s]!==t[s]){i=e[s],n=t[s];break}return i<n?-1:n<i?1:0},o.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return o.alloc(0);let i;if(t===void 0)for(t=0,i=0;i<e.length;++i)t+=e[i].length;const n=o.allocUnsafe(t);let s=0;for(i=0;i<e.length;++i){let l=e[i];if(O(l,Uint8Array))s+l.length>n.length?(o.isBuffer(l)||(l=o.from(l)),l.copy(n,s)):Uint8Array.prototype.set.call(n,l,s);else if(o.isBuffer(l))l.copy(n,s);else throw new TypeError('"list" argument must be an Array of Buffers');s+=l.length}return n};function q(r,e){if(o.isBuffer(r))return r.length;if(ArrayBuffer.isView(r)||O(r,ArrayBuffer))return r.byteLength;if(typeof r!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof r);const t=r.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&t===0)return 0;let n=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return ie(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return R(r).length;default:if(n)return i?-1:ie(r).length;e=(""+e).toLowerCase(),n=!0}}o.byteLength=q;function le(r,e,t){let i=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,e>>>=0,t<=e))return"";for(r||(r="utf8");;)switch(r){case"hex":return fe(this,e,t);case"utf8":case"utf-8":return we(this,e,t);case"ascii":return Ae(this,e,t);case"latin1":case"binary":return Ue(this,e,t);case"base64":return ae(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _e(this,e,t);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),i=!0}}o.prototype._isBuffer=!0;function N(r,e,t){const i=r[e];r[e]=r[t],r[t]=i}o.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)N(this,t,t+1);return this},o.prototype.swap32=function(){const e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)N(this,t,t+3),N(this,t+1,t+2);return this},o.prototype.swap64=function(){const e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)N(this,t,t+7),N(this,t+1,t+6),N(this,t+2,t+5),N(this,t+3,t+4);return this},o.prototype.toString=function(){const e=this.length;return e===0?"":arguments.length===0?we(this,0,e):le.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(e){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:o.compare(this,e)===0},o.prototype.inspect=function(){let e="";const t=f.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},d&&(o.prototype[d]=o.prototype.inspect),o.prototype.compare=function(e,t,i,n,s){if(O(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),i===void 0&&(i=e?e.length:0),n===void 0&&(n=0),s===void 0&&(s=this.length),t<0||i>e.length||n<0||s>this.length)throw new RangeError("out of range index");if(n>=s&&t>=i)return 0;if(n>=s)return-1;if(t>=i)return 1;if(t>>>=0,i>>>=0,n>>>=0,s>>>=0,this===e)return 0;let l=s-n,y=i-t;const U=Math.min(l,y),C=this.slice(n,s),_=e.slice(t,i);for(let F=0;F<U;++F)if(C[F]!==_[F]){l=C[F],y=_[F];break}return l<y?-1:y<l?1:0};function ce(r,e,t,i,n){if(r.length===0)return-1;if(typeof t=="string"?(i=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,z(t)&&(t=n?0:r.length-1),t<0&&(t=r.length+t),t>=r.length){if(n)return-1;t=r.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof e=="string"&&(e=o.from(e,i)),o.isBuffer(e))return e.length===0?-1:me(r,e,t,i,n);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(r,e,t):Uint8Array.prototype.lastIndexOf.call(r,e,t):me(r,[e],t,i,n);throw new TypeError("val must be string, number or Buffer")}function me(r,e,t,i,n){let s=1,l=r.length,y=e.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(r.length<2||e.length<2)return-1;s=2,l/=2,y/=2,t/=2}function U(_,F){return s===1?_[F]:_.readUInt16BE(F*s)}let C;if(n){let _=-1;for(C=t;C<l;C++)if(U(r,C)===U(e,_===-1?0:C-_)){if(_===-1&&(_=C),C-_+1===y)return _*s}else _!==-1&&(C-=C-_),_=-1}else for(t+y>l&&(t=l-y),C=t;C>=0;C--){let _=!0;for(let F=0;F<y;F++)if(U(r,C+F)!==U(e,F)){_=!1;break}if(_)return C}return-1}o.prototype.includes=function(e,t,i){return this.indexOf(e,t,i)!==-1},o.prototype.indexOf=function(e,t,i){return ce(this,e,t,i,!0)},o.prototype.lastIndexOf=function(e,t,i){return ce(this,e,t,i,!1)};function Se(r,e,t,i){t=Number(t)||0;const n=r.length-t;i?(i=Number(i),i>n&&(i=n)):i=n;const s=e.length;i>s/2&&(i=s/2);let l;for(l=0;l<i;++l){const y=parseInt(e.substr(l*2,2),16);if(z(y))return l;r[t+l]=y}return l}function te(r,e,t,i){return L(ie(e,r.length-t),r,t,i)}function Be(r,e,t,i){return L(he(e),r,t,i)}function ue(r,e,t,i){return L(R(e),r,t,i)}function Ee(r,e,t,i){return L(oe(e,r.length-t),r,t,i)}o.prototype.write=function(e,t,i,n){if(t===void 0)n="utf8",i=this.length,t=0;else if(i===void 0&&typeof t=="string")n=t,i=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(i)?(i=i>>>0,n===void 0&&(n="utf8")):(n=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const s=this.length-t;if((i===void 0||i>s)&&(i=s),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let l=!1;for(;;)switch(n){case"hex":return Se(this,e,t,i);case"utf8":case"utf-8":return te(this,e,t,i);case"ascii":case"latin1":case"binary":return Be(this,e,t,i);case"base64":return ue(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ee(this,e,t,i);default:if(l)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),l=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ae(r,e,t){return e===0&&t===r.length?c.fromByteArray(r):c.fromByteArray(r.slice(e,t))}function we(r,e,t){t=Math.min(r.length,t);const i=[];let n=e;for(;n<t;){const s=r[n];let l=null,y=s>239?4:s>223?3:s>191?2:1;if(n+y<=t){let U,C,_,F;switch(y){case 1:s<128&&(l=s);break;case 2:U=r[n+1],(U&192)===128&&(F=(s&31)<<6|U&63,F>127&&(l=F));break;case 3:U=r[n+1],C=r[n+2],(U&192)===128&&(C&192)===128&&(F=(s&15)<<12|(U&63)<<6|C&63,F>2047&&(F<55296||F>57343)&&(l=F));break;case 4:U=r[n+1],C=r[n+2],_=r[n+3],(U&192)===128&&(C&192)===128&&(_&192)===128&&(F=(s&15)<<18|(U&63)<<12|(C&63)<<6|_&63,F>65535&&F<1114112&&(l=F))}}l===null?(l=65533,y=1):l>65535&&(l-=65536,i.push(l>>>10&1023|55296),l=56320|l&1023),i.push(l),n+=y}return Ce(i)}const Fe=4096;function Ce(r){const e=r.length;if(e<=Fe)return String.fromCharCode.apply(String,r);let t="",i=0;for(;i<e;)t+=String.fromCharCode.apply(String,r.slice(i,i+=Fe));return t}function Ae(r,e,t){let i="";t=Math.min(r.length,t);for(let n=e;n<t;++n)i+=String.fromCharCode(r[n]&127);return i}function Ue(r,e,t){let i="";t=Math.min(r.length,t);for(let n=e;n<t;++n)i+=String.fromCharCode(r[n]);return i}function fe(r,e,t){const i=r.length;(!e||e<0)&&(e=0),(!t||t<0||t>i)&&(t=i);let n="";for(let s=e;s<t;++s)n+=Z[r[s]];return n}function _e(r,e,t){const i=r.slice(e,t);let n="";for(let s=0;s<i.length-1;s+=2)n+=String.fromCharCode(i[s]+i[s+1]*256);return n}o.prototype.slice=function(e,t){const i=this.length;e=~~e,t=t===void 0?i:~~t,e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),t<e&&(t=e);const n=this.subarray(e,t);return Object.setPrototypeOf(n,o.prototype),n};function b(r,e,t){if(r%1!==0||r<0)throw new RangeError("offset is not uint");if(r+e>t)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(e,t,i){e=e>>>0,t=t>>>0,i||b(e,t,this.length);let n=this[e],s=1,l=0;for(;++l<t&&(s*=256);)n+=this[e+l]*s;return n},o.prototype.readUintBE=o.prototype.readUIntBE=function(e,t,i){e=e>>>0,t=t>>>0,i||b(e,t,this.length);let n=this[e+--t],s=1;for(;t>0&&(s*=256);)n+=this[e+--t]*s;return n},o.prototype.readUint8=o.prototype.readUInt8=function(e,t){return e=e>>>0,t||b(e,1,this.length),this[e]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||b(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||b(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||b(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readBigUInt64LE=P(function(e){e=e>>>0,J(e,"offset");const t=this[e],i=this[e+7];(t===void 0||i===void 0)&&X(e,this.length-8);const n=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,s=this[++e]+this[++e]*2**8+this[++e]*2**16+i*2**24;return BigInt(n)+(BigInt(s)<<BigInt(32))}),o.prototype.readBigUInt64BE=P(function(e){e=e>>>0,J(e,"offset");const t=this[e],i=this[e+7];(t===void 0||i===void 0)&&X(e,this.length-8);const n=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],s=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+i;return(BigInt(n)<<BigInt(32))+BigInt(s)}),o.prototype.readIntLE=function(e,t,i){e=e>>>0,t=t>>>0,i||b(e,t,this.length);let n=this[e],s=1,l=0;for(;++l<t&&(s*=256);)n+=this[e+l]*s;return s*=128,n>=s&&(n-=Math.pow(2,8*t)),n},o.prototype.readIntBE=function(e,t,i){e=e>>>0,t=t>>>0,i||b(e,t,this.length);let n=t,s=1,l=this[e+--n];for(;n>0&&(s*=256);)l+=this[e+--n]*s;return s*=128,l>=s&&(l-=Math.pow(2,8*t)),l},o.prototype.readInt8=function(e,t){return e=e>>>0,t||b(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},o.prototype.readInt16LE=function(e,t){e=e>>>0,t||b(e,2,this.length);const i=this[e]|this[e+1]<<8;return i&32768?i|4294901760:i},o.prototype.readInt16BE=function(e,t){e=e>>>0,t||b(e,2,this.length);const i=this[e+1]|this[e]<<8;return i&32768?i|4294901760:i},o.prototype.readInt32LE=function(e,t){return e=e>>>0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return e=e>>>0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readBigInt64LE=P(function(e){e=e>>>0,J(e,"offset");const t=this[e],i=this[e+7];(t===void 0||i===void 0)&&X(e,this.length-8);const n=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(i<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)}),o.prototype.readBigInt64BE=P(function(e){e=e>>>0,J(e,"offset");const t=this[e],i=this[e+7];(t===void 0||i===void 0)&&X(e,this.length-8);const n=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+i)}),o.prototype.readFloatLE=function(e,t){return e=e>>>0,t||b(e,4,this.length),u.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return e=e>>>0,t||b(e,4,this.length),u.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||b(e,8,this.length),u.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||b(e,8,this.length),u.read(this,e,!1,52,8)};function T(r,e,t,i,n,s){if(!o.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>n||e<s)throw new RangeError('"value" argument is out of bounds');if(t+i>r.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(e,t,i,n){if(e=+e,t=t>>>0,i=i>>>0,!n){const y=Math.pow(2,8*i)-1;T(this,e,t,i,y,0)}let s=1,l=0;for(this[t]=e&255;++l<i&&(s*=256);)this[t+l]=e/s&255;return t+i},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(e,t,i,n){if(e=+e,t=t>>>0,i=i>>>0,!n){const y=Math.pow(2,8*i)-1;T(this,e,t,i,y,0)}let s=i-1,l=1;for(this[t+s]=e&255;--s>=0&&(l*=256);)this[t+s]=e/l&255;return t+i},o.prototype.writeUint8=o.prototype.writeUInt8=function(e,t,i){return e=+e,t=t>>>0,i||T(this,e,t,1,255,0),this[t]=e&255,t+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(e,t,i){return e=+e,t=t>>>0,i||T(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(e,t,i){return e=+e,t=t>>>0,i||T(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(e,t,i){return e=+e,t=t>>>0,i||T(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(e,t,i){return e=+e,t=t>>>0,i||T(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function re(r,e,t,i,n){v(e,i,n,r,t,7);let s=Number(e&BigInt(4294967295));r[t++]=s,s=s>>8,r[t++]=s,s=s>>8,r[t++]=s,s=s>>8,r[t++]=s;let l=Number(e>>BigInt(32)&BigInt(4294967295));return r[t++]=l,l=l>>8,r[t++]=l,l=l>>8,r[t++]=l,l=l>>8,r[t++]=l,t}function ye(r,e,t,i,n){v(e,i,n,r,t,7);let s=Number(e&BigInt(4294967295));r[t+7]=s,s=s>>8,r[t+6]=s,s=s>>8,r[t+5]=s,s=s>>8,r[t+4]=s;let l=Number(e>>BigInt(32)&BigInt(4294967295));return r[t+3]=l,l=l>>8,r[t+2]=l,l=l>>8,r[t+1]=l,l=l>>8,r[t]=l,t+8}o.prototype.writeBigUInt64LE=P(function(e,t=0){return re(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=P(function(e,t=0){return ye(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(e,t,i,n){if(e=+e,t=t>>>0,!n){const U=Math.pow(2,8*i-1);T(this,e,t,i,U-1,-U)}let s=0,l=1,y=0;for(this[t]=e&255;++s<i&&(l*=256);)e<0&&y===0&&this[t+s-1]!==0&&(y=1),this[t+s]=(e/l>>0)-y&255;return t+i},o.prototype.writeIntBE=function(e,t,i,n){if(e=+e,t=t>>>0,!n){const U=Math.pow(2,8*i-1);T(this,e,t,i,U-1,-U)}let s=i-1,l=1,y=0;for(this[t+s]=e&255;--s>=0&&(l*=256);)e<0&&y===0&&this[t+s+1]!==0&&(y=1),this[t+s]=(e/l>>0)-y&255;return t+i},o.prototype.writeInt8=function(e,t,i){return e=+e,t=t>>>0,i||T(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},o.prototype.writeInt16LE=function(e,t,i){return e=+e,t=t>>>0,i||T(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},o.prototype.writeInt16BE=function(e,t,i){return e=+e,t=t>>>0,i||T(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},o.prototype.writeInt32LE=function(e,t,i){return e=+e,t=t>>>0,i||T(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},o.prototype.writeInt32BE=function(e,t,i){return e=+e,t=t>>>0,i||T(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},o.prototype.writeBigInt64LE=P(function(e,t=0){return re(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=P(function(e,t=0){return ye(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function xe(r,e,t,i,n,s){if(t+i>r.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function I(r,e,t,i,n){return e=+e,t=t>>>0,n||xe(r,e,t,4),u.write(r,e,t,i,23,4),t+4}o.prototype.writeFloatLE=function(e,t,i){return I(this,e,t,!0,i)},o.prototype.writeFloatBE=function(e,t,i){return I(this,e,t,!1,i)};function Q(r,e,t,i,n){return e=+e,t=t>>>0,n||xe(r,e,t,8),u.write(r,e,t,i,52,8),t+8}o.prototype.writeDoubleLE=function(e,t,i){return Q(this,e,t,!0,i)},o.prototype.writeDoubleBE=function(e,t,i){return Q(this,e,t,!1,i)},o.prototype.copy=function(e,t,i,n){if(!o.isBuffer(e))throw new TypeError("argument should be a Buffer");if(i||(i=0),!n&&n!==0&&(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<i&&(n=i),n===i||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-i&&(n=e.length-t+i);const s=n-i;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,i,n):Uint8Array.prototype.set.call(e,this.subarray(i,n),t),s},o.prototype.fill=function(e,t,i,n){if(typeof e=="string"){if(typeof t=="string"?(n=t,t=0,i=this.length):typeof i=="string"&&(n=i,i=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!o.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(e.length===1){const l=e.charCodeAt(0);(n==="utf8"&&l<128||n==="latin1")&&(e=l)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;t=t>>>0,i=i===void 0?this.length:i>>>0,e||(e=0);let s;if(typeof e=="number")for(s=t;s<i;++s)this[s]=e;else{const l=o.isBuffer(e)?e:o.from(e,n),y=l.length;if(y===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(s=0;s<i-t;++s)this[s+t]=l[s%y]}return this};const D={};function W(r,e,t){D[r]=class extends t{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${r}]`,this.stack,delete this.name}get code(){return r}set code(n){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:n,writable:!0})}toString(){return`${this.name} [${r}]: ${this.message}`}}}W("ERR_BUFFER_OUT_OF_BOUNDS",function(r){return r?`${r} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),W("ERR_INVALID_ARG_TYPE",function(r,e){return`The "${r}" argument must be of type number. Received type ${typeof e}`},TypeError),W("ERR_OUT_OF_RANGE",function(r,e,t){let i=`The value of "${r}" is out of range.`,n=t;return Number.isInteger(t)&&Math.abs(t)>2**32?n=$(String(t)):typeof t=="bigint"&&(n=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(n=$(n)),n+="n"),i+=` It must be ${e}. Received ${n}`,i},RangeError);function $(r){let e="",t=r.length;const i=r[0]==="-"?1:0;for(;t>=i+4;t-=3)e=`_${r.slice(t-3,t)}${e}`;return`${r.slice(0,t)}${e}`}function H(r,e,t){J(e,"offset"),(r[e]===void 0||r[e+t]===void 0)&&X(e,r.length-(t+1))}function v(r,e,t,i,n,s){if(r>t||r<e){const l=typeof e=="bigint"?"n":"";let y;throw e===0||e===BigInt(0)?y=`>= 0${l} and < 2${l} ** ${(s+1)*8}${l}`:y=`>= -(2${l} ** ${(s+1)*8-1}${l}) and < 2 ** ${(s+1)*8-1}${l}`,new D.ERR_OUT_OF_RANGE("value",y,r)}H(i,n,s)}function J(r,e){if(typeof r!="number")throw new D.ERR_INVALID_ARG_TYPE(e,"number",r)}function X(r,e,t){throw Math.floor(r)!==r?(J(r,t),new D.ERR_OUT_OF_RANGE("offset","an integer",r)):e<0?new D.ERR_BUFFER_OUT_OF_BOUNDS:new D.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${e}`,r)}const ne=/[^+/0-9A-Za-z-_]/g;function pe(r){if(r=r.split("=")[0],r=r.trim().replace(ne,""),r.length<2)return"";for(;r.length%4!==0;)r=r+"=";return r}function ie(r,e){e=e||1/0;let t;const i=r.length;let n=null;const s=[];for(let l=0;l<i;++l){if(t=r.charCodeAt(l),t>55295&&t<57344){if(!n){if(t>56319){(e-=3)>-1&&s.push(239,191,189);continue}else if(l+1===i){(e-=3)>-1&&s.push(239,191,189);continue}n=t;continue}if(t<56320){(e-=3)>-1&&s.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(e-=3)>-1&&s.push(239,191,189);if(n=null,t<128){if((e-=1)<0)break;s.push(t)}else if(t<2048){if((e-=2)<0)break;s.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;s.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;s.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return s}function he(r){const e=[];for(let t=0;t<r.length;++t)e.push(r.charCodeAt(t)&255);return e}function oe(r,e){let t,i,n;const s=[];for(let l=0;l<r.length&&!((e-=2)<0);++l)t=r.charCodeAt(l),i=t>>8,n=t%256,s.push(n),s.push(i);return s}function R(r){return c.toByteArray(pe(r))}function L(r,e,t,i){let n;for(n=0;n<i&&!(n+t>=e.length||n>=r.length);++n)e[n+t]=r[n];return n}function O(r,e){return r instanceof e||r!=null&&r.constructor!=null&&r.constructor.name!=null&&r.constructor.name===e.name}function z(r){return r!==r}const Z=function(){const r="0123456789abcdef",e=new Array(256);for(let t=0;t<16;++t){const i=t*16;for(let n=0;n<16;++n)e[i+n]=r[t]+r[n]}return e}();function P(r){return typeof BigInt>"u"?j:r}function j(){throw new Error("BigInt not supported")}})(De);var rt={exports:{}};(function(f,c){ace.define("ace/ext/modelist",["require","exports","module"],function(u,d,a){var h=[];function p(G){for(var V=w.text,se=G.split(/[\/\\]/).pop(),q=0;q<h.length;q++)if(h[q].supportsFile(se)){V=h[q];break}return V}var o=function(){function G(V,se,q){this.name=V,this.caption=se,this.mode="ace/mode/"+V,this.extensions=q;var le;/\^/.test(q)?le=q.replace(/\|(\^)?/g,function(N,ce){return"$|"+(ce?"^":"^.*\\.")})+"$":le="\\.("+q+")$",this.extRe=new RegExp(le,"gi")}return G.prototype.supportsFile=function(V){return V.match(this.extRe)},G}(),m={ABAP:["abap"],ABC:["abc"],ActionScript:["as"],ADA:["ada|adb"],Alda:["alda"],Apache_Conf:["^htaccess|^htgroups|^htpasswd|^conf|htaccess|htgroups|htpasswd"],Apex:["apex|cls|trigger|tgr"],AQL:["aql"],AsciiDoc:["asciidoc|adoc"],ASL:["dsl|asl|asl.json"],Assembly_ARM32:["s"],Assembly_x86:["asm|a"],Astro:["astro"],AutoHotKey:["ahk"],BatchFile:["bat|cmd"],Basic:["bas|bak"],BibTeX:["bib"],C_Cpp:["cpp|c|cc|cxx|h|hh|hpp|ino"],C9Search:["c9search_results"],Cirru:["cirru|cr"],Clojure:["clj|cljs"],Cobol:["CBL|COB"],coffee:["coffee|cf|cson|^Cakefile"],ColdFusion:["cfm|cfc"],Crystal:["cr"],CSharp:["cs"],Csound_Document:["csd"],Csound_Orchestra:["orc"],Csound_Score:["sco"],CSS:["css"],CSV:["csv"],Curly:["curly"],Cuttlefish:["conf"],D:["d|di"],Dart:["dart"],Diff:["diff|patch"],Django:["djt|html.djt|dj.html|djhtml"],Dockerfile:["^Dockerfile"],Dot:["dot"],Drools:["drl"],Edifact:["edi"],Eiffel:["e|ge"],EJS:["ejs"],Elixir:["ex|exs"],Elm:["elm"],Erlang:["erl|hrl"],Flix:["flix"],Forth:["frt|fs|ldr|fth|4th"],Fortran:["f|f90"],FSharp:["fsi|fs|ml|mli|fsx|fsscript"],FSL:["fsl"],FTL:["ftl"],Gcode:["gcode"],Gherkin:["feature"],Gitignore:["^.gitignore"],Glsl:["glsl|frag|vert"],Gobstones:["gbs"],golang:["go"],GraphQLSchema:["gql"],Groovy:["groovy"],HAML:["haml"],Handlebars:["hbs|handlebars|tpl|mustache"],Haskell:["hs"],Haskell_Cabal:["cabal"],haXe:["hx"],Hjson:["hjson"],HTML:["html|htm|xhtml|we|wpy"],HTML_Elixir:["eex|html.eex"],HTML_Ruby:["erb|rhtml|html.erb"],INI:["ini|conf|cfg|prefs"],Io:["io"],Ion:["ion"],Jack:["jack"],Jade:["jade|pug"],Java:["java"],JavaScript:["js|jsm|cjs|mjs"],JEXL:["jexl"],JSON:["json"],JSON5:["json5"],JSONiq:["jq"],JSP:["jsp"],JSSM:["jssm|jssm_state"],JSX:["jsx"],Julia:["jl"],Kotlin:["kt|kts"],LaTeX:["tex|latex|ltx|bib"],Latte:["latte"],LESS:["less"],Liquid:["liquid"],Lisp:["lisp"],LiveScript:["ls"],Log:["log"],LogiQL:["logic|lql"],Logtalk:["lgt"],LSL:["lsl"],Lua:["lua"],LuaPage:["lp"],Lucene:["lucene"],Makefile:["^Makefile|^GNUmakefile|^makefile|^OCamlMakefile|make"],Markdown:["md|markdown"],Mask:["mask"],MATLAB:["matlab"],Maze:["mz"],MediaWiki:["wiki|mediawiki"],MEL:["mel"],MIPS:["s|asm"],MIXAL:["mixal"],MUSHCode:["mc|mush"],MySQL:["mysql"],Nasal:["nas"],Nginx:["nginx|conf"],Nim:["nim"],Nix:["nix"],NSIS:["nsi|nsh"],Nunjucks:["nunjucks|nunjs|nj|njk"],ObjectiveC:["m|mm"],OCaml:["ml|mli"],Odin:["odin"],PartiQL:["partiql|pql"],Pascal:["pas|p"],Perl:["pl|pm"],pgSQL:["pgsql"],PHP:["php|inc|phtml|shtml|php3|php4|php5|phps|phpt|aw|ctp|module"],PHP_Laravel_blade:["blade.php"],Pig:["pig"],PLSQL:["plsql"],Powershell:["ps1"],Praat:["praat|praatscript|psc|proc"],Prisma:["prisma"],Prolog:["plg|prolog"],Properties:["properties"],Protobuf:["proto"],PRQL:["prql"],Puppet:["epp|pp"],Python:["py"],QML:["qml"],R:["r"],Raku:["raku|rakumod|rakutest|p6|pl6|pm6"],Razor:["cshtml|asp"],RDoc:["Rd"],Red:["red|reds"],RHTML:["Rhtml"],Robot:["robot|resource"],RST:["rst"],Ruby:["rb|ru|gemspec|rake|^Guardfile|^Rakefile|^Gemfile"],Rust:["rs"],SaC:["sac"],SASS:["sass"],SCAD:["scad"],Scala:["scala|sbt"],Scheme:["scm|sm|rkt|oak|scheme"],Scrypt:["scrypt"],SCSS:["scss"],SH:["sh|bash|^.bashrc"],SJS:["sjs"],Slim:["slim|skim"],Smarty:["smarty|tpl"],Smithy:["smithy"],snippets:["snippets"],Soy_Template:["soy"],Space:["space"],SPARQL:["rq"],SQL:["sql"],SQLServer:["sqlserver"],Stylus:["styl|stylus"],SVG:["svg"],Swift:["swift"],Tcl:["tcl"],Terraform:["tf","tfvars","terragrunt"],Tex:["tex"],Text:["txt"],Textile:["textile"],Toml:["toml"],TSV:["tsv"],TSX:["tsx"],Turtle:["ttl"],Twig:["twig|swig"],Typescript:["ts|mts|cts|typescript|str"],Vala:["vala"],VBScript:["vbs|vb"],Velocity:["vm"],Verilog:["v|vh|sv|svh"],VHDL:["vhd|vhdl"],Visualforce:["vfp|component|page"],Vue:["vue"],Wollok:["wlk|wpgm|wtest"],XML:["xml|rdf|rss|wsdl|xslt|atom|mathml|mml|xul|xbl|xaml"],XQuery:["xq"],YAML:["yaml|yml"],Zeek:["zeek|bro"],Zig:["zig"]},S={ObjectiveC:"Objective-C",CSharp:"C#",golang:"Go",C_Cpp:"C and C++",Csound_Document:"Csound Document",Csound_Orchestra:"Csound",Csound_Score:"Csound Score",coffee:"CoffeeScript",HTML_Ruby:"HTML (Ruby)",HTML_Elixir:"HTML (Elixir)",FTL:"FreeMarker",PHP_Laravel_blade:"PHP (Blade Template)",Perl6:"Perl 6",AutoHotKey:"AutoHotkey / AutoIt"},w={};for(var g in m){var E=m[g],x=(S[g]||g).replace(/_/g," "),k=g.toLowerCase(),A=new o(k,x,E[0]);w[k]=A,h.push(A)}a.exports={getModeForPath:p,modes:h,modesByName:w}}),function(){ace.require(["ace/ext/modelist"],function(u){f&&(f.exports=u)})}()})(rt);const it=be.require?be.require("ace/ext/modelist"):be.acequire("ace/ext/modelist");class Re extends $e{constructor(c){super(c),Object.assign(this.state,{editing:!!this.props.formatEditFile||!1})}static getEditFile(c){switch(c){case"json":return"json";case"json5":return"json5";case"js":return"javascript";case"html":return"html";case"txt":return"html";default:return it.getModeForPath(`testFile.${c}`).mode.split("/").pop()}}writeFile64=()=>{const c=this.props.href.split("/"),u=this.state.editingValue;c.splice(0,2);const d=c[0],a=c.splice(1).join("/");this.props.socket.writeFile64(d,a,De.Buffer.from(u).toString("base64")).then(()=>this.props.onClose()).catch(h=>window.alert(`Cannot write file: ${h}`))};getEditorOrViewer(){return B.jsx(ve,{mode:Re.getEditFile(this.props.formatEditFile),themeType:this.props.themeType,value:this.state.editingValue||this.state.code||this.state.text,onChange:this.state.editing?c=>this.setState({editingValue:c,changed:!0}):void 0})}onSave(){this.writeFile64()}}const nt=Ge()(Re),ot=[{Owner:[{name:"read",valueNum:1024,title:"read owner"},{name:"write",valueNum:512,title:"write owner"}]},{Group:[{name:"read",valueNum:64,title:"read group"},{name:"write",valueNum:32,title:"write group"}]},{Everyone:[{name:"read",valueNum:4,title:"read everyone"},{name:"write",valueNum:2,title:"write everyone"}]}],Me=(f,c,u)=>(f|=c&u,f&=c|~u&65535,f),st=({value:f,setValue:c,t:u,differentValues:d,applyToChildren:a,mask:h,setMask:p,disabled:o})=>{M.useEffect(()=>{if(a){let S=0;for(let w=0;w<d.length;w++)S|=f^d[w];p(S)}else p(0)},[d,a,p,f]);let m=f;return B.jsx("div",{style:{display:"flex",width:"fit-content",margin:20,border:"1px solid",borderLeft:0},children:ot.map(S=>{const w=Object.keys(S)[0];return B.jsxs("div",{style:{width:150,height:150,display:"flex",flexDirection:"column",alignItems:"center",borderLeft:"1px solid"},children:[B.jsx("div",{style:{height:50,display:"flex",alignItems:"center",fontSize:18,borderBottom:"1px solid silver",width:"100%",justifyContent:"center"},children:u(w)}),B.jsx("div",{style:{display:"flex",width:"100%"},children:S[w].map((g,E)=>{let x=!1;const k=h&g.valueNum;return m-g.valueNum>=0&&(m-=g.valueNum,x=!0),B.jsxs("div",{style:{display:"flex",flexDirection:"column",flex:1,alignItems:"center",borderRight:E===0?"1px solid":0},children:[B.jsx("div",{style:{height:50,borderBottom:"1px solid",width:"100%",justifyContent:"center",display:"flex",alignItems:"center",color:"silver"},children:u(g.name)}),B.jsx("div",{style:{height:50,display:"flex"},children:B.jsx(ge.Checkbox,{disabled:o,checked:x,color:k?"primary":"secondary",indeterminate:!!k,style:k?{opacity:.5}:void 0,onChange:A=>{k&&(h&=~g.valueNum&65535,p(h));let G=f;A.target.checked?G|=g.valueNum:G&=~g.valueNum&65535,c(G)}})})]},g.valueNum)})})]},w)})})};async function Pe(f,c,u){let d=c[f];if(!d){const a=f.split("/"),h=a.length,p=a.shift()||null,o=a.join("/"),m=await u.readDir(p,o);c[f]=[];for(let S=0;S<m.length;S++){const w=m[S],g={id:`${f}/${w.file}`,ext:Ne.getFileExtension(w.file),folder:w.isDir,name:w.file,size:w.stats&&w.stats.size,modified:w.modifiedAt,acl:w.acl,level:h};c[f].push(g)}d=c[f]}for(let a=0;a<d.length;a++){const h=d[a];h.folder&&await Pe(h.id,c,u)}}function lt(f){const c={};return Object.keys(f).forEach(u=>{c[u]={folder:!0,id:u,level:0,name:u},f[u].forEach(d=>{c[d.id]=d})}),c}async function Le(f,c,u,d="",a="",h=0){if(typeof u=="string"&&(u=u.split("/"),h=0,d=u.shift()||"",a=""),!(u.length>=h))if(c[d+a]){if(u.length-1===h){const p=`${d+a}/${u[h]}`,o=c[d+a].find(m=>m.id===p);o&&o.folder&&await Pe(d+a,c,f);return}a+=`/${u[h]}`,await Le(f,c,u,d,a,h+1)}else{const p=await f.readDir(d||null,a);c[d+a]=[],p.forEach(o=>{const m={id:`${a}/${o.file}`,ext:Ne.getFileExtension(o.file),folder:o.isDir,name:o.file,size:o.stats&&o.stats.size,modified:o.modifiedAt,acl:o.acl,level:h};c[d+a].push(m)}),await Le(f,c,u,d,a,h+1)}}const Y="different",ct=({onClose:f,onApply:c,selected:u,applyChangesToObject:d,applyChangesToFile:a,objects:h,t:p,themeType:o,folders:m,socket:S,theme:w})=>{const g=u.substring(0,u.lastIndexOf("/"))||u,E=(u.split("/").length===1?m["/"].find(({id:I})=>I===u):m[g].find(({id:I})=>I===u))||{},[x,k]=M.useState(null),[A,G]=M.useState(null),[V,se]=M.useState([]),[q,le]=M.useState([]),[N,ce]=M.useState(!1),[me,Se]=M.useState(0),[te,Be]=M.useState(null),[ue,Ee]=M.useState(!1),[ae,we]=M.useState(!1),[Fe,Ce]=M.useState([]),[Ae,Ue]=M.useState(0),[fe,_e]=M.useState([]),[b,T]=M.useState(!0),[re,ye]=M.useState(!1),xe=qe.getLanguage();return M.useEffect(()=>{const I=[],Q=E.id;let D=!1,W=!1,$=null,H=null,v=null;const J=[];let X=0;Le(S,m,Q).then(()=>{const ne=lt(m),pe=`${Q}/`;Object.keys(ne).forEach(R=>{var L,O,z,Z,P,j,r,e,t;if(R!=="/"&&(R===Q||R.startsWith(pe))){if(!R.includes("/")&&h[R]){const i=h[R];X++,J.push(i),v===null&&((L=i.acl)==null?void 0:L.file)!==void 0&&(v=i.acl.file),$===null&&((O=i.acl)==null?void 0:O.owner)!==void 0&&($=i.acl.owner),H===null&&((z=i.acl)==null?void 0:z.ownerGroup)!==void 0&&(H=i.acl.ownerGroup),!ue&&$!==((Z=i.acl)==null?void 0:Z.owner)&&((P=i.acl)==null?void 0:P.owner)!==void 0&&(D=!0),!ae&&H!==((j=i.acl)==null?void 0:j.ownerGroup)&&((r=i.acl)==null?void 0:r.ownerGroup)!==void 0&&(W=!0),((e=i.acl)==null?void 0:e.file)!==void 0&&v!==((t=i.acl)==null?void 0:t.file)&&!I.includes(i.acl.file)&&I.push(i.acl.file)}else if(!ne[R].folder){X++;const i=ne[R];J.push(i),v===null&&i.acl.permissions!==void 0&&(v=i.acl.permissions),$===null&&i.acl.owner!==void 0&&($=i.acl.owner),H===null&&i.acl.ownerGroup!==void 0&&(H=i.acl.ownerGroup),!ue&&$!==i.acl.owner&&i.acl.owner!==void 0&&(D=!0),!ae&&H!==i.acl.ownerGroup&&i.acl.ownerGroup!==void 0&&(W=!0),i.acl.permissions!==void 0&&v!==i.acl.permissions&&!I.includes(i.acl.permissions)&&I.push(i.acl.permissions)}}});const ie=[],he=[];Object.keys(h).forEach(R=>{const L=h[R];R.startsWith("system.group.")&&(L==null?void 0:L.type)==="group"?he.push(L):R.startsWith("system.user.")&&(L==null?void 0:L.type)==="user"&&ie.push(L)});const oe=h["system.config"].common.defaultNewAcl;$=$||oe.owner,H=H||oe.ownerGroup,v=v||oe.file,Be(v),k($),G(H),Ee(D),we(W),se(ie),le(he),E!=null&&E.folder&&ce(!0),Se(X),Ce(I),_e(J)})},[h,u]),M.useEffect(()=>{var I,Q,D,W;N?(ue&&x!==Y&&k(Y),ae&&A!==Y&&G(Y)):(x&&x===Y&&k(((Q=(I=h[u])==null?void 0:I.acl)==null?void 0:Q.owner)||null),A&&A===Y&&G(((W=(D=h[u])==null?void 0:D.acl)==null?void 0:W.ownerGroup)||null)),console.log(`stateOwnerUser ${x}`)},[N,x,A,ue,ae]),fe.length?B.jsx(Je,{theme:w,titleButtonApply:"apply",overflowHidden:!0,disableApply:b,progress:re,onClose:f,onApply:()=>{ye(!0),setTimeout(async()=>{var Q,D,W,$,H,v,J,X,ne,pe,ie,he,oe,R,L,O;const I=((D=(Q=h["system.config"].common)==null?void 0:Q.defaultNewAcl)==null?void 0:D.file)||1636;if(N){const z=~Ae&65535;for(let Z=0;Z<fe.length;Z++){const P=fe[Z];let j=!1;const r=P,e=P;if(r._id){const t=Me(((ne=r.acl)==null?void 0:ne.file)||I,te,z);t!==((pe=r.acl)==null?void 0:pe.file)&&(r.acl=r.acl||{},r.acl.file=t,j=!0),x!==Y&&x!==((ie=r.acl)==null?void 0:ie.owner)&&(r.acl=r.acl||{},r.acl.owner=x,j=!0),A!==Y&&A!==((he=r.acl)==null?void 0:he.ownerGroup)&&(r.acl=r.acl||{},r.acl.ownerGroup=A,j=!0);try{j&&await d(r)}catch(i){console.error(i)}}else if(e&&!e.folder){const t={},i=Me(((oe=e.acl)==null?void 0:oe.permissions)||I,te,z);if(i!==((R=e.acl)==null?void 0:R.permissions)&&(t.permissions=i,j=!0),x!==Y&&x!==((L=e.acl)==null?void 0:L.owner)&&(t.owner=x,j=!0),A!==Y&&A!==((O=e.acl)==null?void 0:O.ownerGroup)&&(t.ownerGroup=A,j=!0),j){const n=e.id.split("/"),s=n.shift(),l=n.join("/");try{await a(s,l,t)}catch(y){console.error(y)}}}}}else{const z=E.id.split("/"),Z=z.shift(),P=z.join("/"),j={};let r=!1;if(!E.folder)((W=E.acl)==null?void 0:W.permissions)!==te&&(j.permissions=te,r=!0),(($=E.acl)==null?void 0:$.owner)!==x&&(j.owner=x,r=!0),((H=E.acl)==null?void 0:H.ownerGroup)!==A&&(j.ownerGroup=A,r=!0),r&&await a(Z,P,j);else if(!z.length&&h[E.id]){const e=h[E.id];((v=e.acl)==null?void 0:v.file)!==te&&(e.acl=e.acl||{},e.acl.file=te,r=!0),((J=e.acl)==null?void 0:J.owner)!==x&&(e.acl=e.acl||{},e.acl.owner=x,r=!0),((X=e.acl)==null?void 0:X.ownerGroup)!==A&&(e.acl=e.acl||{},e.acl.ownerGroup=A,r=!0),r&&await d(e)}}ye(!1),c()},200)},children:B.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[B.jsx("div",{style:{margin:10,fontSize:20},children:p("Access control list: %s",u)}),B.jsxs("div",{style:{display:"flex"},children:[B.jsx(je,{fullWidth:!0,style:{marginRight:10},label:p("Owner user"),lang:xe,list:V,t:p,disabled:re,value:x||void 0,themeType:o,different:ue?Y:!1,onChange:I=>{Ee(!1),k(I),T(!1)}}),B.jsx(je,{fullWidth:!0,label:p("Owner group"),lang:xe,list:q,t:p,disabled:re,value:A||void 0,themeType:o,different:ae?Y:!1,onChange:I=>{we(!1),G(I),T(!1)}})]}),B.jsxs("div",{style:{display:"flex",margin:10,alignItems:"center",fontSize:10,marginLeft:0,color:"silver"},children:[B.jsx("div",{style:!E.folder||!N?{color:"green"}:void 0,children:p("to apply one item")}),B.jsx(ge.Switch,{disabled:fe.length===1||re,checked:!h[E.id]&&!!E.folder||N,onChange:I=>{ce(I.target.checked),T(!1)},color:"primary"}),B.jsxs("div",{style:E.folder||N?{color:"green"}:void 0,children:[p("to apply with children")," ",E.folder||me>1?`(${me} ${p("object(s)")})`:""]})]}),re&&B.jsx(ge.LinearProgress,{}),B.jsx("div",{style:{overflowY:"auto"},children:B.jsxs("div",{children:[B.jsx("h2",{children:p("File rights")}),B.jsx(st,{disabled:re,mask:Ae,setMask:Ue,applyToChildren:N,differentValues:Fe,t:p,setValue:I=>{Be(I),T(!1)},value:te})]})})]})}):B.jsx(ge.LinearProgress,{})};class Ct extends M.Component{t;wordCache;objects;constructor(c){super(c),this.t=this.translate,this.wordCache={},this.objects={}}componentDidMount(){this.props.socket.getObjects(!0,!0).then(c=>this.objects=c)}translate=(c,u,d)=>u!==void 0?this.props.t(c,u,d):(this.wordCache[c]||(this.wordCache[c]=this.props.t(c)),this.wordCache[c]);renderAclDialog(c){return B.jsx(ct,{theme:this.props.theme,themeType:this.props.themeType,applyChangesToObject:async u=>{const d=await this.props.socket.getObject(u._id);d.acl=u.acl,await this.props.socket.setObject(d._id,d);const a=d;a!=null&&a.acl&&c.updateItemsAcl([{id:a._id,acl:a.acl,level:0,name:a._id,folder:!1}])},applyChangesToFile:async(u,d,a)=>{let h;if((a.owner||a.ownerGroup)&&a.permissions?(await this.props.socket.chownFile(u,d,{owner:a.owner,ownerGroup:a.ownerGroup}),h=await this.props.socket.chmodFile(u,d,{mode:a.permissions})):a.permissions?h=await this.props.socket.chmodFile(u,d,{mode:a.permissions}):(a.owner||a.ownerGroup)&&(h=await this.props.socket.chownFile(u,d,{owner:a.owner,ownerGroup:a.ownerGroup})),Array.isArray(h))for(let p=0;p<h.length;p++){const o=h[p];o&&o.file&&o.acl&&c.updateItemsAcl([{id:`${u}/${o.path?`${o.path}/`:""}${o.file}`,acl:o.acl,level:0,name:"",folder:!1}])}},selected:c.state.selected,folders:c.state.folders,objects:this.objects,socket:this.props.socket,t:this.t,onClose:()=>c.setState({modalEditOfAccess:!1}),onApply:()=>c.setState({modalEditOfAccess:!1})})}render(){return this.props.ready?B.jsx(He,{children:B.jsx(Ve,{overflow:"auto",children:B.jsx(We,{showViewTypeButton:!0,ready:this.props.ready,socket:this.props.socket,themeType:this.props.themeType,theme:this.props.theme,lang:this.props.lang,t:this.props.t,showToolbar:!0,allowUpload:!0,allowView:!0,allowDownload:!0,allowCreateFolder:!0,allowDelete:!0,expertMode:this.props.expertMode,modalEditOfAccessControl:c=>this.renderAclDialog(c),FileViewer:nt})})}):B.jsx(ge.LinearProgress,{})}}export{Ct as default};
6
+ */(function(f){const c=Ie,u=ke,d=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;f.Buffer=o,f.SlowBuffer=se,f.INSPECT_MAX_BYTES=50;const h=2147483647;f.kMaxLength=h,o.TYPED_ARRAY_SUPPORT=a(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{const r=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(r,e),r.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function p(r){if(r>h)throw new RangeError('The value "'+r+'" is invalid for option "size"');const e=new Uint8Array(r);return Object.setPrototypeOf(e,o.prototype),e}function o(r,e,t){if(typeof r=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return g(r)}return m(r,e,t)}o.poolSize=8192;function m(r,e,t){if(typeof r=="string")return E(r,e);if(ArrayBuffer.isView(r))return k(r);if(r==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(O(r,ArrayBuffer)||r&&O(r.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(O(r,SharedArrayBuffer)||r&&O(r.buffer,SharedArrayBuffer)))return A(r,e,t);if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const i=r.valueOf&&r.valueOf();if(i!=null&&i!==r)return o.from(i,e,t);const n=G(r);if(n)return n;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof r[Symbol.toPrimitive]=="function")return o.from(r[Symbol.toPrimitive]("string"),e,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}o.from=function(r,e,t){return m(r,e,t)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function S(r){if(typeof r!="number")throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}function w(r,e,t){return S(r),r<=0?p(r):e!==void 0?typeof t=="string"?p(r).fill(e,t):p(r).fill(e):p(r)}o.alloc=function(r,e,t){return w(r,e,t)};function g(r){return S(r),p(r<0?0:V(r)|0)}o.allocUnsafe=function(r){return g(r)},o.allocUnsafeSlow=function(r){return g(r)};function E(r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!o.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const t=q(r,e)|0;let i=p(t);const n=i.write(r,e);return n!==t&&(i=i.slice(0,n)),i}function x(r){const e=r.length<0?0:V(r.length)|0,t=p(e);for(let i=0;i<e;i+=1)t[i]=r[i]&255;return t}function k(r){if(O(r,Uint8Array)){const e=new Uint8Array(r);return A(e.buffer,e.byteOffset,e.byteLength)}return x(r)}function A(r,e,t){if(e<0||r.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(r.byteLength<e+(t||0))throw new RangeError('"length" is outside of buffer bounds');let i;return e===void 0&&t===void 0?i=new Uint8Array(r):t===void 0?i=new Uint8Array(r,e):i=new Uint8Array(r,e,t),Object.setPrototypeOf(i,o.prototype),i}function G(r){if(o.isBuffer(r)){const e=V(r.length)|0,t=p(e);return t.length===0||r.copy(t,0,0,e),t}if(r.length!==void 0)return typeof r.length!="number"||z(r.length)?p(0):x(r);if(r.type==="Buffer"&&Array.isArray(r.data))return x(r.data)}function V(r){if(r>=h)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h.toString(16)+" bytes");return r|0}function se(r){return+r!=r&&(r=0),o.alloc(+r)}o.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==o.prototype},o.compare=function(e,t){if(O(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),O(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(e)||!o.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let i=e.length,n=t.length;for(let s=0,l=Math.min(i,n);s<l;++s)if(e[s]!==t[s]){i=e[s],n=t[s];break}return i<n?-1:n<i?1:0},o.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return o.alloc(0);let i;if(t===void 0)for(t=0,i=0;i<e.length;++i)t+=e[i].length;const n=o.allocUnsafe(t);let s=0;for(i=0;i<e.length;++i){let l=e[i];if(O(l,Uint8Array))s+l.length>n.length?(o.isBuffer(l)||(l=o.from(l)),l.copy(n,s)):Uint8Array.prototype.set.call(n,l,s);else if(o.isBuffer(l))l.copy(n,s);else throw new TypeError('"list" argument must be an Array of Buffers');s+=l.length}return n};function q(r,e){if(o.isBuffer(r))return r.length;if(ArrayBuffer.isView(r)||O(r,ArrayBuffer))return r.byteLength;if(typeof r!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof r);const t=r.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&t===0)return 0;let n=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return ie(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return R(r).length;default:if(n)return i?-1:ie(r).length;e=(""+e).toLowerCase(),n=!0}}o.byteLength=q;function le(r,e,t){let i=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,e>>>=0,t<=e))return"";for(r||(r="utf8");;)switch(r){case"hex":return fe(this,e,t);case"utf8":case"utf-8":return we(this,e,t);case"ascii":return Ae(this,e,t);case"latin1":case"binary":return Ue(this,e,t);case"base64":return ae(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _e(this,e,t);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),i=!0}}o.prototype._isBuffer=!0;function N(r,e,t){const i=r[e];r[e]=r[t],r[t]=i}o.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)N(this,t,t+1);return this},o.prototype.swap32=function(){const e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)N(this,t,t+3),N(this,t+1,t+2);return this},o.prototype.swap64=function(){const e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)N(this,t,t+7),N(this,t+1,t+6),N(this,t+2,t+5),N(this,t+3,t+4);return this},o.prototype.toString=function(){const e=this.length;return e===0?"":arguments.length===0?we(this,0,e):le.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(e){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:o.compare(this,e)===0},o.prototype.inspect=function(){let e="";const t=f.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},d&&(o.prototype[d]=o.prototype.inspect),o.prototype.compare=function(e,t,i,n,s){if(O(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),i===void 0&&(i=e?e.length:0),n===void 0&&(n=0),s===void 0&&(s=this.length),t<0||i>e.length||n<0||s>this.length)throw new RangeError("out of range index");if(n>=s&&t>=i)return 0;if(n>=s)return-1;if(t>=i)return 1;if(t>>>=0,i>>>=0,n>>>=0,s>>>=0,this===e)return 0;let l=s-n,y=i-t;const U=Math.min(l,y),C=this.slice(n,s),_=e.slice(t,i);for(let F=0;F<U;++F)if(C[F]!==_[F]){l=C[F],y=_[F];break}return l<y?-1:y<l?1:0};function ce(r,e,t,i,n){if(r.length===0)return-1;if(typeof t=="string"?(i=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,z(t)&&(t=n?0:r.length-1),t<0&&(t=r.length+t),t>=r.length){if(n)return-1;t=r.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof e=="string"&&(e=o.from(e,i)),o.isBuffer(e))return e.length===0?-1:me(r,e,t,i,n);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(r,e,t):Uint8Array.prototype.lastIndexOf.call(r,e,t):me(r,[e],t,i,n);throw new TypeError("val must be string, number or Buffer")}function me(r,e,t,i,n){let s=1,l=r.length,y=e.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(r.length<2||e.length<2)return-1;s=2,l/=2,y/=2,t/=2}function U(_,F){return s===1?_[F]:_.readUInt16BE(F*s)}let C;if(n){let _=-1;for(C=t;C<l;C++)if(U(r,C)===U(e,_===-1?0:C-_)){if(_===-1&&(_=C),C-_+1===y)return _*s}else _!==-1&&(C-=C-_),_=-1}else for(t+y>l&&(t=l-y),C=t;C>=0;C--){let _=!0;for(let F=0;F<y;F++)if(U(r,C+F)!==U(e,F)){_=!1;break}if(_)return C}return-1}o.prototype.includes=function(e,t,i){return this.indexOf(e,t,i)!==-1},o.prototype.indexOf=function(e,t,i){return ce(this,e,t,i,!0)},o.prototype.lastIndexOf=function(e,t,i){return ce(this,e,t,i,!1)};function Se(r,e,t,i){t=Number(t)||0;const n=r.length-t;i?(i=Number(i),i>n&&(i=n)):i=n;const s=e.length;i>s/2&&(i=s/2);let l;for(l=0;l<i;++l){const y=parseInt(e.substr(l*2,2),16);if(z(y))return l;r[t+l]=y}return l}function te(r,e,t,i){return L(ie(e,r.length-t),r,t,i)}function Be(r,e,t,i){return L(he(e),r,t,i)}function ue(r,e,t,i){return L(R(e),r,t,i)}function Ee(r,e,t,i){return L(oe(e,r.length-t),r,t,i)}o.prototype.write=function(e,t,i,n){if(t===void 0)n="utf8",i=this.length,t=0;else if(i===void 0&&typeof t=="string")n=t,i=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(i)?(i=i>>>0,n===void 0&&(n="utf8")):(n=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const s=this.length-t;if((i===void 0||i>s)&&(i=s),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let l=!1;for(;;)switch(n){case"hex":return Se(this,e,t,i);case"utf8":case"utf-8":return te(this,e,t,i);case"ascii":case"latin1":case"binary":return Be(this,e,t,i);case"base64":return ue(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ee(this,e,t,i);default:if(l)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),l=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ae(r,e,t){return e===0&&t===r.length?c.fromByteArray(r):c.fromByteArray(r.slice(e,t))}function we(r,e,t){t=Math.min(r.length,t);const i=[];let n=e;for(;n<t;){const s=r[n];let l=null,y=s>239?4:s>223?3:s>191?2:1;if(n+y<=t){let U,C,_,F;switch(y){case 1:s<128&&(l=s);break;case 2:U=r[n+1],(U&192)===128&&(F=(s&31)<<6|U&63,F>127&&(l=F));break;case 3:U=r[n+1],C=r[n+2],(U&192)===128&&(C&192)===128&&(F=(s&15)<<12|(U&63)<<6|C&63,F>2047&&(F<55296||F>57343)&&(l=F));break;case 4:U=r[n+1],C=r[n+2],_=r[n+3],(U&192)===128&&(C&192)===128&&(_&192)===128&&(F=(s&15)<<18|(U&63)<<12|(C&63)<<6|_&63,F>65535&&F<1114112&&(l=F))}}l===null?(l=65533,y=1):l>65535&&(l-=65536,i.push(l>>>10&1023|55296),l=56320|l&1023),i.push(l),n+=y}return Ce(i)}const Fe=4096;function Ce(r){const e=r.length;if(e<=Fe)return String.fromCharCode.apply(String,r);let t="",i=0;for(;i<e;)t+=String.fromCharCode.apply(String,r.slice(i,i+=Fe));return t}function Ae(r,e,t){let i="";t=Math.min(r.length,t);for(let n=e;n<t;++n)i+=String.fromCharCode(r[n]&127);return i}function Ue(r,e,t){let i="";t=Math.min(r.length,t);for(let n=e;n<t;++n)i+=String.fromCharCode(r[n]);return i}function fe(r,e,t){const i=r.length;(!e||e<0)&&(e=0),(!t||t<0||t>i)&&(t=i);let n="";for(let s=e;s<t;++s)n+=Z[r[s]];return n}function _e(r,e,t){const i=r.slice(e,t);let n="";for(let s=0;s<i.length-1;s+=2)n+=String.fromCharCode(i[s]+i[s+1]*256);return n}o.prototype.slice=function(e,t){const i=this.length;e=~~e,t=t===void 0?i:~~t,e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),t<e&&(t=e);const n=this.subarray(e,t);return Object.setPrototypeOf(n,o.prototype),n};function b(r,e,t){if(r%1!==0||r<0)throw new RangeError("offset is not uint");if(r+e>t)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(e,t,i){e=e>>>0,t=t>>>0,i||b(e,t,this.length);let n=this[e],s=1,l=0;for(;++l<t&&(s*=256);)n+=this[e+l]*s;return n},o.prototype.readUintBE=o.prototype.readUIntBE=function(e,t,i){e=e>>>0,t=t>>>0,i||b(e,t,this.length);let n=this[e+--t],s=1;for(;t>0&&(s*=256);)n+=this[e+--t]*s;return n},o.prototype.readUint8=o.prototype.readUInt8=function(e,t){return e=e>>>0,t||b(e,1,this.length),this[e]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||b(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||b(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||b(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readBigUInt64LE=P(function(e){e=e>>>0,J(e,"offset");const t=this[e],i=this[e+7];(t===void 0||i===void 0)&&X(e,this.length-8);const n=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,s=this[++e]+this[++e]*2**8+this[++e]*2**16+i*2**24;return BigInt(n)+(BigInt(s)<<BigInt(32))}),o.prototype.readBigUInt64BE=P(function(e){e=e>>>0,J(e,"offset");const t=this[e],i=this[e+7];(t===void 0||i===void 0)&&X(e,this.length-8);const n=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],s=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+i;return(BigInt(n)<<BigInt(32))+BigInt(s)}),o.prototype.readIntLE=function(e,t,i){e=e>>>0,t=t>>>0,i||b(e,t,this.length);let n=this[e],s=1,l=0;for(;++l<t&&(s*=256);)n+=this[e+l]*s;return s*=128,n>=s&&(n-=Math.pow(2,8*t)),n},o.prototype.readIntBE=function(e,t,i){e=e>>>0,t=t>>>0,i||b(e,t,this.length);let n=t,s=1,l=this[e+--n];for(;n>0&&(s*=256);)l+=this[e+--n]*s;return s*=128,l>=s&&(l-=Math.pow(2,8*t)),l},o.prototype.readInt8=function(e,t){return e=e>>>0,t||b(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},o.prototype.readInt16LE=function(e,t){e=e>>>0,t||b(e,2,this.length);const i=this[e]|this[e+1]<<8;return i&32768?i|4294901760:i},o.prototype.readInt16BE=function(e,t){e=e>>>0,t||b(e,2,this.length);const i=this[e+1]|this[e]<<8;return i&32768?i|4294901760:i},o.prototype.readInt32LE=function(e,t){return e=e>>>0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return e=e>>>0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readBigInt64LE=P(function(e){e=e>>>0,J(e,"offset");const t=this[e],i=this[e+7];(t===void 0||i===void 0)&&X(e,this.length-8);const n=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(i<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)}),o.prototype.readBigInt64BE=P(function(e){e=e>>>0,J(e,"offset");const t=this[e],i=this[e+7];(t===void 0||i===void 0)&&X(e,this.length-8);const n=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+i)}),o.prototype.readFloatLE=function(e,t){return e=e>>>0,t||b(e,4,this.length),u.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return e=e>>>0,t||b(e,4,this.length),u.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||b(e,8,this.length),u.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||b(e,8,this.length),u.read(this,e,!1,52,8)};function T(r,e,t,i,n,s){if(!o.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>n||e<s)throw new RangeError('"value" argument is out of bounds');if(t+i>r.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(e,t,i,n){if(e=+e,t=t>>>0,i=i>>>0,!n){const y=Math.pow(2,8*i)-1;T(this,e,t,i,y,0)}let s=1,l=0;for(this[t]=e&255;++l<i&&(s*=256);)this[t+l]=e/s&255;return t+i},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(e,t,i,n){if(e=+e,t=t>>>0,i=i>>>0,!n){const y=Math.pow(2,8*i)-1;T(this,e,t,i,y,0)}let s=i-1,l=1;for(this[t+s]=e&255;--s>=0&&(l*=256);)this[t+s]=e/l&255;return t+i},o.prototype.writeUint8=o.prototype.writeUInt8=function(e,t,i){return e=+e,t=t>>>0,i||T(this,e,t,1,255,0),this[t]=e&255,t+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(e,t,i){return e=+e,t=t>>>0,i||T(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(e,t,i){return e=+e,t=t>>>0,i||T(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(e,t,i){return e=+e,t=t>>>0,i||T(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(e,t,i){return e=+e,t=t>>>0,i||T(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function re(r,e,t,i,n){v(e,i,n,r,t,7);let s=Number(e&BigInt(4294967295));r[t++]=s,s=s>>8,r[t++]=s,s=s>>8,r[t++]=s,s=s>>8,r[t++]=s;let l=Number(e>>BigInt(32)&BigInt(4294967295));return r[t++]=l,l=l>>8,r[t++]=l,l=l>>8,r[t++]=l,l=l>>8,r[t++]=l,t}function ye(r,e,t,i,n){v(e,i,n,r,t,7);let s=Number(e&BigInt(4294967295));r[t+7]=s,s=s>>8,r[t+6]=s,s=s>>8,r[t+5]=s,s=s>>8,r[t+4]=s;let l=Number(e>>BigInt(32)&BigInt(4294967295));return r[t+3]=l,l=l>>8,r[t+2]=l,l=l>>8,r[t+1]=l,l=l>>8,r[t]=l,t+8}o.prototype.writeBigUInt64LE=P(function(e,t=0){return re(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=P(function(e,t=0){return ye(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(e,t,i,n){if(e=+e,t=t>>>0,!n){const U=Math.pow(2,8*i-1);T(this,e,t,i,U-1,-U)}let s=0,l=1,y=0;for(this[t]=e&255;++s<i&&(l*=256);)e<0&&y===0&&this[t+s-1]!==0&&(y=1),this[t+s]=(e/l>>0)-y&255;return t+i},o.prototype.writeIntBE=function(e,t,i,n){if(e=+e,t=t>>>0,!n){const U=Math.pow(2,8*i-1);T(this,e,t,i,U-1,-U)}let s=i-1,l=1,y=0;for(this[t+s]=e&255;--s>=0&&(l*=256);)e<0&&y===0&&this[t+s+1]!==0&&(y=1),this[t+s]=(e/l>>0)-y&255;return t+i},o.prototype.writeInt8=function(e,t,i){return e=+e,t=t>>>0,i||T(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},o.prototype.writeInt16LE=function(e,t,i){return e=+e,t=t>>>0,i||T(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},o.prototype.writeInt16BE=function(e,t,i){return e=+e,t=t>>>0,i||T(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},o.prototype.writeInt32LE=function(e,t,i){return e=+e,t=t>>>0,i||T(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},o.prototype.writeInt32BE=function(e,t,i){return e=+e,t=t>>>0,i||T(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},o.prototype.writeBigInt64LE=P(function(e,t=0){return re(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=P(function(e,t=0){return ye(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function xe(r,e,t,i,n,s){if(t+i>r.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function I(r,e,t,i,n){return e=+e,t=t>>>0,n||xe(r,e,t,4),u.write(r,e,t,i,23,4),t+4}o.prototype.writeFloatLE=function(e,t,i){return I(this,e,t,!0,i)},o.prototype.writeFloatBE=function(e,t,i){return I(this,e,t,!1,i)};function Q(r,e,t,i,n){return e=+e,t=t>>>0,n||xe(r,e,t,8),u.write(r,e,t,i,52,8),t+8}o.prototype.writeDoubleLE=function(e,t,i){return Q(this,e,t,!0,i)},o.prototype.writeDoubleBE=function(e,t,i){return Q(this,e,t,!1,i)},o.prototype.copy=function(e,t,i,n){if(!o.isBuffer(e))throw new TypeError("argument should be a Buffer");if(i||(i=0),!n&&n!==0&&(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<i&&(n=i),n===i||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-i&&(n=e.length-t+i);const s=n-i;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,i,n):Uint8Array.prototype.set.call(e,this.subarray(i,n),t),s},o.prototype.fill=function(e,t,i,n){if(typeof e=="string"){if(typeof t=="string"?(n=t,t=0,i=this.length):typeof i=="string"&&(n=i,i=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!o.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(e.length===1){const l=e.charCodeAt(0);(n==="utf8"&&l<128||n==="latin1")&&(e=l)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;t=t>>>0,i=i===void 0?this.length:i>>>0,e||(e=0);let s;if(typeof e=="number")for(s=t;s<i;++s)this[s]=e;else{const l=o.isBuffer(e)?e:o.from(e,n),y=l.length;if(y===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(s=0;s<i-t;++s)this[s+t]=l[s%y]}return this};const D={};function W(r,e,t){D[r]=class extends t{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${r}]`,this.stack,delete this.name}get code(){return r}set code(n){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:n,writable:!0})}toString(){return`${this.name} [${r}]: ${this.message}`}}}W("ERR_BUFFER_OUT_OF_BOUNDS",function(r){return r?`${r} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),W("ERR_INVALID_ARG_TYPE",function(r,e){return`The "${r}" argument must be of type number. Received type ${typeof e}`},TypeError),W("ERR_OUT_OF_RANGE",function(r,e,t){let i=`The value of "${r}" is out of range.`,n=t;return Number.isInteger(t)&&Math.abs(t)>2**32?n=$(String(t)):typeof t=="bigint"&&(n=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(n=$(n)),n+="n"),i+=` It must be ${e}. Received ${n}`,i},RangeError);function $(r){let e="",t=r.length;const i=r[0]==="-"?1:0;for(;t>=i+4;t-=3)e=`_${r.slice(t-3,t)}${e}`;return`${r.slice(0,t)}${e}`}function H(r,e,t){J(e,"offset"),(r[e]===void 0||r[e+t]===void 0)&&X(e,r.length-(t+1))}function v(r,e,t,i,n,s){if(r>t||r<e){const l=typeof e=="bigint"?"n":"";let y;throw e===0||e===BigInt(0)?y=`>= 0${l} and < 2${l} ** ${(s+1)*8}${l}`:y=`>= -(2${l} ** ${(s+1)*8-1}${l}) and < 2 ** ${(s+1)*8-1}${l}`,new D.ERR_OUT_OF_RANGE("value",y,r)}H(i,n,s)}function J(r,e){if(typeof r!="number")throw new D.ERR_INVALID_ARG_TYPE(e,"number",r)}function X(r,e,t){throw Math.floor(r)!==r?(J(r,t),new D.ERR_OUT_OF_RANGE("offset","an integer",r)):e<0?new D.ERR_BUFFER_OUT_OF_BOUNDS:new D.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${e}`,r)}const ne=/[^+/0-9A-Za-z-_]/g;function pe(r){if(r=r.split("=")[0],r=r.trim().replace(ne,""),r.length<2)return"";for(;r.length%4!==0;)r=r+"=";return r}function ie(r,e){e=e||1/0;let t;const i=r.length;let n=null;const s=[];for(let l=0;l<i;++l){if(t=r.charCodeAt(l),t>55295&&t<57344){if(!n){if(t>56319){(e-=3)>-1&&s.push(239,191,189);continue}else if(l+1===i){(e-=3)>-1&&s.push(239,191,189);continue}n=t;continue}if(t<56320){(e-=3)>-1&&s.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(e-=3)>-1&&s.push(239,191,189);if(n=null,t<128){if((e-=1)<0)break;s.push(t)}else if(t<2048){if((e-=2)<0)break;s.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;s.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;s.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return s}function he(r){const e=[];for(let t=0;t<r.length;++t)e.push(r.charCodeAt(t)&255);return e}function oe(r,e){let t,i,n;const s=[];for(let l=0;l<r.length&&!((e-=2)<0);++l)t=r.charCodeAt(l),i=t>>8,n=t%256,s.push(n),s.push(i);return s}function R(r){return c.toByteArray(pe(r))}function L(r,e,t,i){let n;for(n=0;n<i&&!(n+t>=e.length||n>=r.length);++n)e[n+t]=r[n];return n}function O(r,e){return r instanceof e||r!=null&&r.constructor!=null&&r.constructor.name!=null&&r.constructor.name===e.name}function z(r){return r!==r}const Z=function(){const r="0123456789abcdef",e=new Array(256);for(let t=0;t<16;++t){const i=t*16;for(let n=0;n<16;++n)e[i+n]=r[t]+r[n]}return e}();function P(r){return typeof BigInt>"u"?j:r}function j(){throw new Error("BigInt not supported")}})(De);var rt={exports:{}};(function(f,c){ace.define("ace/ext/modelist",["require","exports","module"],function(u,d,h){var a=[];function p(G){for(var V=w.text,se=G.split(/[\/\\]/).pop(),q=0;q<a.length;q++)if(a[q].supportsFile(se)){V=a[q];break}return V}var o=function(){function G(V,se,q){this.name=V,this.caption=se,this.mode="ace/mode/"+V,this.extensions=q;var le;/\^/.test(q)?le=q.replace(/\|(\^)?/g,function(N,ce){return"$|"+(ce?"^":"^.*\\.")})+"$":le="\\.("+q+")$",this.extRe=new RegExp(le,"gi")}return G.prototype.supportsFile=function(V){return V.match(this.extRe)},G}(),m={ABAP:["abap"],ABC:["abc"],ActionScript:["as"],ADA:["ada|adb"],Alda:["alda"],Apache_Conf:["^htaccess|^htgroups|^htpasswd|^conf|htaccess|htgroups|htpasswd"],Apex:["apex|cls|trigger|tgr"],AQL:["aql"],AsciiDoc:["asciidoc|adoc"],ASL:["dsl|asl|asl.json"],Assembly_ARM32:["s"],Assembly_x86:["asm|a"],Astro:["astro"],AutoHotKey:["ahk"],Basic:["bas|bak"],BatchFile:["bat|cmd"],BibTeX:["bib"],C_Cpp:["cpp|c|cc|cxx|h|hh|hpp|ino"],C9Search:["c9search_results"],Cirru:["cirru|cr"],Clojure:["clj|cljs"],Clue:["clue"],Cobol:["CBL|COB"],coffee:["coffee|cf|cson|^Cakefile"],ColdFusion:["cfm|cfc"],Crystal:["cr"],CSharp:["cs"],Csound_Document:["csd"],Csound_Orchestra:["orc"],Csound_Score:["sco"],CSS:["css"],CSV:["csv"],Curly:["curly"],Cuttlefish:["conf"],D:["d|di"],Dart:["dart"],Diff:["diff|patch"],Django:["djt|html.djt|dj.html|djhtml"],Dockerfile:["^Dockerfile"],Dot:["dot"],Drools:["drl"],Edifact:["edi"],Eiffel:["e|ge"],EJS:["ejs"],Elixir:["ex|exs"],Elm:["elm"],Erlang:["erl|hrl"],Flix:["flix"],Forth:["frt|fs|ldr|fth|4th"],Fortran:["f|f90"],FSharp:["fsi|fs|ml|mli|fsx|fsscript"],FSL:["fsl"],FTL:["ftl"],Gcode:["gcode"],Gherkin:["feature"],Gitignore:["^.gitignore"],Glsl:["glsl|frag|vert"],Gobstones:["gbs"],golang:["go"],GraphQLSchema:["gql"],Groovy:["groovy"],HAML:["haml"],Handlebars:["hbs|handlebars|tpl|mustache"],Haskell:["hs"],Haskell_Cabal:["cabal"],haXe:["hx"],Hjson:["hjson"],HTML:["html|htm|xhtml|we|wpy"],HTML_Elixir:["eex|html.eex"],HTML_Ruby:["erb|rhtml|html.erb"],INI:["ini|conf|cfg|prefs"],Io:["io"],Ion:["ion"],Jack:["jack"],Jade:["jade|pug"],Java:["java"],JavaScript:["js|jsm|cjs|mjs"],JEXL:["jexl"],JSON:["json"],JSON5:["json5"],JSONiq:["jq"],JSP:["jsp"],JSSM:["jssm|jssm_state"],JSX:["jsx"],Julia:["jl"],Kotlin:["kt|kts"],LaTeX:["tex|latex|ltx|bib"],Latte:["latte"],LESS:["less"],Liquid:["liquid"],Lisp:["lisp"],LiveScript:["ls"],Log:["log"],LogiQL:["logic|lql"],Logtalk:["lgt"],LSL:["lsl"],Lua:["lua"],LuaPage:["lp"],Lucene:["lucene"],Makefile:["^Makefile|^GNUmakefile|^makefile|^OCamlMakefile|make"],Markdown:["md|markdown"],Mask:["mask"],MATLAB:["matlab"],Maze:["mz"],MediaWiki:["wiki|mediawiki"],MEL:["mel"],MIPS:["s|asm"],MIXAL:["mixal"],MUSHCode:["mc|mush"],MySQL:["mysql"],Nasal:["nas"],Nginx:["nginx|conf"],Nim:["nim"],Nix:["nix"],NSIS:["nsi|nsh"],Nunjucks:["nunjucks|nunjs|nj|njk"],ObjectiveC:["m|mm"],OCaml:["ml|mli"],Odin:["odin"],PartiQL:["partiql|pql"],Pascal:["pas|p"],Perl:["pl|pm"],pgSQL:["pgsql"],PHP:["php|inc|phtml|shtml|php3|php4|php5|phps|phpt|aw|ctp|module"],PHP_Laravel_blade:["blade.php"],Pig:["pig"],PLSQL:["plsql"],Powershell:["ps1"],Praat:["praat|praatscript|psc|proc"],Prisma:["prisma"],Prolog:["plg|prolog"],Properties:["properties"],Protobuf:["proto"],PRQL:["prql"],Puppet:["epp|pp"],Python:["py"],QML:["qml"],R:["r"],Raku:["raku|rakumod|rakutest|p6|pl6|pm6"],Razor:["cshtml|asp"],RDoc:["Rd"],Red:["red|reds"],RHTML:["Rhtml"],Robot:["robot|resource"],RST:["rst"],Ruby:["rb|ru|gemspec|rake|^Guardfile|^Rakefile|^Gemfile"],Rust:["rs"],SaC:["sac"],SASS:["sass"],SCAD:["scad"],Scala:["scala|sbt"],Scheme:["scm|sm|rkt|oak|scheme"],Scrypt:["scrypt"],SCSS:["scss"],SH:["sh|bash|^.bashrc"],SJS:["sjs"],Slim:["slim|skim"],Smarty:["smarty|tpl"],Smithy:["smithy"],snippets:["snippets"],Soy_Template:["soy"],Space:["space"],SPARQL:["rq"],SQL:["sql"],SQLServer:["sqlserver"],Stylus:["styl|stylus"],SVG:["svg"],Swift:["swift"],Tcl:["tcl"],Terraform:["tf","tfvars","terragrunt"],Tex:["tex"],Text:["txt"],Textile:["textile"],Toml:["toml"],TSV:["tsv"],TSX:["tsx"],Turtle:["ttl"],Twig:["twig|swig"],Typescript:["ts|mts|cts|typescript|str"],Vala:["vala"],VBScript:["vbs|vb"],Velocity:["vm"],Verilog:["v|vh|sv|svh"],VHDL:["vhd|vhdl"],Visualforce:["vfp|component|page"],Vue:["vue"],Wollok:["wlk|wpgm|wtest"],XML:["xml|rdf|rss|wsdl|xslt|atom|mathml|mml|xul|xbl|xaml"],XQuery:["xq"],YAML:["yaml|yml"],Zeek:["zeek|bro"],Zig:["zig"]},S={ObjectiveC:"Objective-C",CSharp:"C#",golang:"Go",C_Cpp:"C and C++",Csound_Document:"Csound Document",Csound_Orchestra:"Csound",Csound_Score:"Csound Score",coffee:"CoffeeScript",HTML_Ruby:"HTML (Ruby)",HTML_Elixir:"HTML (Elixir)",FTL:"FreeMarker",PHP_Laravel_blade:"PHP (Blade Template)",Perl6:"Perl 6",AutoHotKey:"AutoHotkey / AutoIt"},w={};for(var g in m){var E=m[g],x=(S[g]||g).replace(/_/g," "),k=g.toLowerCase(),A=new o(k,x,E[0]);w[k]=A,a.push(A)}d.getModeForPath=p,d.modes=a,d.modesByName=w}),function(){ace.require(["ace/ext/modelist"],function(u){f&&(f.exports=u)})}()})(rt);const it=be.require?be.require("ace/ext/modelist"):be.acequire("ace/ext/modelist");class Re extends $e{constructor(c){super(c),Object.assign(this.state,{editing:!!this.props.formatEditFile||!1})}static getEditFile(c){switch(c){case"json":return"json";case"json5":return"json5";case"js":return"javascript";case"html":return"html";case"txt":return"html";default:return it.getModeForPath(`testFile.${c}`).mode.split("/").pop()}}writeFile64=()=>{const c=this.props.href.split("/"),u=this.state.editingValue;c.splice(0,2);const d=c[0],h=c.splice(1).join("/");this.props.socket.writeFile64(d,h,De.Buffer.from(u).toString("base64")).then(()=>this.props.onClose()).catch(a=>window.alert(`Cannot write file: ${a}`))};getEditorOrViewer(){return B.jsx(ve,{mode:Re.getEditFile(this.props.formatEditFile),themeType:this.props.themeType,value:this.state.editingValue||this.state.code||this.state.text,onChange:this.state.editing?c=>this.setState({editingValue:c,changed:!0}):void 0})}onSave(){this.writeFile64()}}const nt=Ge()(Re),ot=[{Owner:[{name:"read",valueNum:1024,title:"read owner"},{name:"write",valueNum:512,title:"write owner"}]},{Group:[{name:"read",valueNum:64,title:"read group"},{name:"write",valueNum:32,title:"write group"}]},{Everyone:[{name:"read",valueNum:4,title:"read everyone"},{name:"write",valueNum:2,title:"write everyone"}]}],Me=(f,c,u)=>(f|=c&u,f&=c|~u&65535,f),st=({value:f,setValue:c,t:u,differentValues:d,applyToChildren:h,mask:a,setMask:p,disabled:o})=>{M.useEffect(()=>{if(h){let S=0;for(let w=0;w<d.length;w++)S|=f^d[w];p(S)}else p(0)},[d,h,p,f]);let m=f;return B.jsx("div",{style:{display:"flex",width:"fit-content",margin:20,border:"1px solid",borderLeft:0},children:ot.map(S=>{const w=Object.keys(S)[0];return B.jsxs("div",{style:{width:150,height:150,display:"flex",flexDirection:"column",alignItems:"center",borderLeft:"1px solid"},children:[B.jsx("div",{style:{height:50,display:"flex",alignItems:"center",fontSize:18,borderBottom:"1px solid silver",width:"100%",justifyContent:"center"},children:u(w)}),B.jsx("div",{style:{display:"flex",width:"100%"},children:S[w].map((g,E)=>{let x=!1;const k=a&g.valueNum;return m-g.valueNum>=0&&(m-=g.valueNum,x=!0),B.jsxs("div",{style:{display:"flex",flexDirection:"column",flex:1,alignItems:"center",borderRight:E===0?"1px solid":0},children:[B.jsx("div",{style:{height:50,borderBottom:"1px solid",width:"100%",justifyContent:"center",display:"flex",alignItems:"center",color:"silver"},children:u(g.name)}),B.jsx("div",{style:{height:50,display:"flex"},children:B.jsx(ge.Checkbox,{disabled:o,checked:x,color:k?"primary":"secondary",indeterminate:!!k,style:k?{opacity:.5}:void 0,onChange:A=>{k&&(a&=~g.valueNum&65535,p(a));let G=f;A.target.checked?G|=g.valueNum:G&=~g.valueNum&65535,c(G)}})})]},g.valueNum)})})]},w)})})};async function Pe(f,c,u){let d=c[f];if(!d){const h=f.split("/"),a=h.length,p=h.shift()||null,o=h.join("/"),m=await u.readDir(p,o);c[f]=[];for(let S=0;S<m.length;S++){const w=m[S],g={id:`${f}/${w.file}`,ext:Ne.getFileExtension(w.file),folder:w.isDir,name:w.file,size:w.stats&&w.stats.size,modified:w.modifiedAt,acl:w.acl,level:a};c[f].push(g)}d=c[f]}for(let h=0;h<d.length;h++){const a=d[h];a.folder&&await Pe(a.id,c,u)}}function lt(f){const c={};return Object.keys(f).forEach(u=>{c[u]={folder:!0,id:u,level:0,name:u},f[u].forEach(d=>{c[d.id]=d})}),c}async function Le(f,c,u,d="",h="",a=0){if(typeof u=="string"&&(u=u.split("/"),a=0,d=u.shift()||"",h=""),!(u.length>=a))if(c[d+h]){if(u.length-1===a){const p=`${d+h}/${u[a]}`,o=c[d+h].find(m=>m.id===p);o&&o.folder&&await Pe(d+h,c,f);return}h+=`/${u[a]}`,await Le(f,c,u,d,h,a+1)}else{const p=await f.readDir(d||null,h);c[d+h]=[],p.forEach(o=>{const m={id:`${h}/${o.file}`,ext:Ne.getFileExtension(o.file),folder:o.isDir,name:o.file,size:o.stats&&o.stats.size,modified:o.modifiedAt,acl:o.acl,level:a};c[d+h].push(m)}),await Le(f,c,u,d,h,a+1)}}const Y="different",ct=({onClose:f,onApply:c,selected:u,applyChangesToObject:d,applyChangesToFile:h,objects:a,t:p,themeType:o,folders:m,socket:S,theme:w})=>{const g=u.substring(0,u.lastIndexOf("/"))||u,E=(u.split("/").length===1?m["/"].find(({id:I})=>I===u):m[g].find(({id:I})=>I===u))||{},[x,k]=M.useState(null),[A,G]=M.useState(null),[V,se]=M.useState([]),[q,le]=M.useState([]),[N,ce]=M.useState(!1),[me,Se]=M.useState(0),[te,Be]=M.useState(null),[ue,Ee]=M.useState(!1),[ae,we]=M.useState(!1),[Fe,Ce]=M.useState([]),[Ae,Ue]=M.useState(0),[fe,_e]=M.useState([]),[b,T]=M.useState(!0),[re,ye]=M.useState(!1),xe=qe.getLanguage();return M.useEffect(()=>{const I=[],Q=E.id;let D=!1,W=!1,$=null,H=null,v=null;const J=[];let X=0;Le(S,m,Q).then(()=>{const ne=lt(m),pe=`${Q}/`;Object.keys(ne).forEach(R=>{var L,O,z,Z,P,j,r,e,t;if(R!=="/"&&(R===Q||R.startsWith(pe))){if(!R.includes("/")&&a[R]){const i=a[R];X++,J.push(i),v===null&&((L=i.acl)==null?void 0:L.file)!==void 0&&(v=i.acl.file),$===null&&((O=i.acl)==null?void 0:O.owner)!==void 0&&($=i.acl.owner),H===null&&((z=i.acl)==null?void 0:z.ownerGroup)!==void 0&&(H=i.acl.ownerGroup),!ue&&$!==((Z=i.acl)==null?void 0:Z.owner)&&((P=i.acl)==null?void 0:P.owner)!==void 0&&(D=!0),!ae&&H!==((j=i.acl)==null?void 0:j.ownerGroup)&&((r=i.acl)==null?void 0:r.ownerGroup)!==void 0&&(W=!0),((e=i.acl)==null?void 0:e.file)!==void 0&&v!==((t=i.acl)==null?void 0:t.file)&&!I.includes(i.acl.file)&&I.push(i.acl.file)}else if(!ne[R].folder){X++;const i=ne[R];J.push(i),v===null&&i.acl.permissions!==void 0&&(v=i.acl.permissions),$===null&&i.acl.owner!==void 0&&($=i.acl.owner),H===null&&i.acl.ownerGroup!==void 0&&(H=i.acl.ownerGroup),!ue&&$!==i.acl.owner&&i.acl.owner!==void 0&&(D=!0),!ae&&H!==i.acl.ownerGroup&&i.acl.ownerGroup!==void 0&&(W=!0),i.acl.permissions!==void 0&&v!==i.acl.permissions&&!I.includes(i.acl.permissions)&&I.push(i.acl.permissions)}}});const ie=[],he=[];Object.keys(a).forEach(R=>{const L=a[R];R.startsWith("system.group.")&&(L==null?void 0:L.type)==="group"?he.push(L):R.startsWith("system.user.")&&(L==null?void 0:L.type)==="user"&&ie.push(L)});const oe=a["system.config"].common.defaultNewAcl;$=$||oe.owner,H=H||oe.ownerGroup,v=v||oe.file,Be(v),k($),G(H),Ee(D),we(W),se(ie),le(he),E!=null&&E.folder&&ce(!0),Se(X),Ce(I),_e(J)})},[a,u]),M.useEffect(()=>{var I,Q,D,W;N?(ue&&x!==Y&&k(Y),ae&&A!==Y&&G(Y)):(x&&x===Y&&k(((Q=(I=a[u])==null?void 0:I.acl)==null?void 0:Q.owner)||null),A&&A===Y&&G(((W=(D=a[u])==null?void 0:D.acl)==null?void 0:W.ownerGroup)||null)),console.log(`stateOwnerUser ${x}`)},[N,x,A,ue,ae]),fe.length?B.jsx(Je,{theme:w,titleButtonApply:"apply",overflowHidden:!0,disableApply:b,progress:re,onClose:f,onApply:()=>{ye(!0),setTimeout(async()=>{var Q,D,W,$,H,v,J,X,ne,pe,ie,he,oe,R,L,O;const I=((D=(Q=a["system.config"].common)==null?void 0:Q.defaultNewAcl)==null?void 0:D.file)||1636;if(N){const z=~Ae&65535;for(let Z=0;Z<fe.length;Z++){const P=fe[Z];let j=!1;const r=P,e=P;if(r._id){const t=Me(((ne=r.acl)==null?void 0:ne.file)||I,te,z);t!==((pe=r.acl)==null?void 0:pe.file)&&(r.acl=r.acl||{},r.acl.file=t,j=!0),x!==Y&&x!==((ie=r.acl)==null?void 0:ie.owner)&&(r.acl=r.acl||{},r.acl.owner=x,j=!0),A!==Y&&A!==((he=r.acl)==null?void 0:he.ownerGroup)&&(r.acl=r.acl||{},r.acl.ownerGroup=A,j=!0);try{j&&await d(r)}catch(i){console.error(i)}}else if(e&&!e.folder){const t={},i=Me(((oe=e.acl)==null?void 0:oe.permissions)||I,te,z);if(i!==((R=e.acl)==null?void 0:R.permissions)&&(t.permissions=i,j=!0),x!==Y&&x!==((L=e.acl)==null?void 0:L.owner)&&(t.owner=x,j=!0),A!==Y&&A!==((O=e.acl)==null?void 0:O.ownerGroup)&&(t.ownerGroup=A,j=!0),j){const n=e.id.split("/"),s=n.shift(),l=n.join("/");try{await h(s,l,t)}catch(y){console.error(y)}}}}}else{const z=E.id.split("/"),Z=z.shift(),P=z.join("/"),j={};let r=!1;if(!E.folder)((W=E.acl)==null?void 0:W.permissions)!==te&&(j.permissions=te,r=!0),(($=E.acl)==null?void 0:$.owner)!==x&&(j.owner=x,r=!0),((H=E.acl)==null?void 0:H.ownerGroup)!==A&&(j.ownerGroup=A,r=!0),r&&await h(Z,P,j);else if(!z.length&&a[E.id]){const e=a[E.id];((v=e.acl)==null?void 0:v.file)!==te&&(e.acl=e.acl||{},e.acl.file=te,r=!0),((J=e.acl)==null?void 0:J.owner)!==x&&(e.acl=e.acl||{},e.acl.owner=x,r=!0),((X=e.acl)==null?void 0:X.ownerGroup)!==A&&(e.acl=e.acl||{},e.acl.ownerGroup=A,r=!0),r&&await d(e)}}ye(!1),c()},200)},children:B.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[B.jsx("div",{style:{margin:10,fontSize:20},children:p("Access control list: %s",u)}),B.jsxs("div",{style:{display:"flex"},children:[B.jsx(je,{fullWidth:!0,style:{marginRight:10},label:p("Owner user"),lang:xe,list:V,t:p,disabled:re,value:x||void 0,themeType:o,different:ue?Y:!1,onChange:I=>{Ee(!1),k(I),T(!1)}}),B.jsx(je,{fullWidth:!0,label:p("Owner group"),lang:xe,list:q,t:p,disabled:re,value:A||void 0,themeType:o,different:ae?Y:!1,onChange:I=>{we(!1),G(I),T(!1)}})]}),B.jsxs("div",{style:{display:"flex",margin:10,alignItems:"center",fontSize:10,marginLeft:0,color:"silver"},children:[B.jsx("div",{style:!E.folder||!N?{color:"green"}:void 0,children:p("to apply one item")}),B.jsx(ge.Switch,{disabled:fe.length===1||re,checked:!a[E.id]&&!!E.folder||N,onChange:I=>{ce(I.target.checked),T(!1)},color:"primary"}),B.jsxs("div",{style:E.folder||N?{color:"green"}:void 0,children:[p("to apply with children")," ",E.folder||me>1?`(${me} ${p("object(s)")})`:""]})]}),re&&B.jsx(ge.LinearProgress,{}),B.jsx("div",{style:{overflowY:"auto"},children:B.jsxs("div",{children:[B.jsx("h2",{children:p("File rights")}),B.jsx(st,{disabled:re,mask:Ae,setMask:Ue,applyToChildren:N,differentValues:Fe,t:p,setValue:I=>{Be(I),T(!1)},value:te})]})})]})}):B.jsx(ge.LinearProgress,{})};class Ct extends M.Component{t;wordCache;objects;constructor(c){super(c),this.t=this.translate,this.wordCache={},this.objects={}}componentDidMount(){this.props.socket.getObjects(!0,!0).then(c=>this.objects=c)}translate=(c,u,d)=>u!==void 0?this.props.t(c,u,d):(this.wordCache[c]||(this.wordCache[c]=this.props.t(c)),this.wordCache[c]);renderAclDialog(c){return B.jsx(ct,{theme:this.props.theme,themeType:this.props.themeType,applyChangesToObject:async u=>{const d=await this.props.socket.getObject(u._id);d.acl=u.acl,await this.props.socket.setObject(d._id,d);const h=d;h!=null&&h.acl&&c.updateItemsAcl([{id:h._id,acl:h.acl,level:0,name:h._id,folder:!1}])},applyChangesToFile:async(u,d,h)=>{let a;if((h.owner||h.ownerGroup)&&h.permissions?(await this.props.socket.chownFile(u,d,{owner:h.owner,ownerGroup:h.ownerGroup}),a=await this.props.socket.chmodFile(u,d,{mode:h.permissions})):h.permissions?a=await this.props.socket.chmodFile(u,d,{mode:h.permissions}):(h.owner||h.ownerGroup)&&(a=await this.props.socket.chownFile(u,d,{owner:h.owner,ownerGroup:h.ownerGroup})),Array.isArray(a))for(let p=0;p<a.length;p++){const o=a[p];o&&o.file&&o.acl&&c.updateItemsAcl([{id:`${u}/${o.path?`${o.path}/`:""}${o.file}`,acl:o.acl,level:0,name:"",folder:!1}])}},selected:c.state.selected,folders:c.state.folders,objects:this.objects,socket:this.props.socket,t:this.t,onClose:()=>c.setState({modalEditOfAccess:!1}),onApply:()=>c.setState({modalEditOfAccess:!1})})}render(){return this.props.ready?B.jsx(He,{children:B.jsx(Ve,{overflow:"auto",children:B.jsx(We,{showViewTypeButton:!0,ready:this.props.ready,socket:this.props.socket,themeType:this.props.themeType,theme:this.props.theme,lang:this.props.lang,t:this.props.t,showToolbar:!0,allowUpload:!0,allowView:!0,allowDownload:!0,allowCreateFolder:!0,allowDelete:!0,expertMode:this.props.expertMode,modalEditOfAccessControl:c=>this.renderAclDialog(c),FileViewer:nt})})}):B.jsx(ge.LinearProgress,{})}}export{Ct as default};
@@ -1,2 +1,2 @@
1
- import{i as s}from"./iobroker_admin__loadShare__react__loadShare__-DtlEM_52.js";import"./iobroker_admin__loadShare__prop_mf_2_types__loadShare__-BGyJCibC.js";import{j as g,k as Ge,a9 as qe,aa as Xe,T as ve,a7 as Se,a as Ce,g as Re,y as we,s as U,c as fe,e as j,b as ke,z as V,w as Ke,o as Ze,A as Je}from"./DefaultPropsProvider-DxsXuIyE.js";import{g as Qe}from"./_commonjsHelpers-D6-XlEtG.js";import{a as Ye,i as et}from"./iobroker_admin__mf_v__runtimeInit__mf_v__-VDoBF19b.js";import{i as _e}from"./iobroker_admin__loadShare___mf_0_emotion_mf_1_react__loadShare__-gw2iqPBS.js";function tt(e){return e==null||Object.keys(e).length===0}function nt(e){const{styles:t,defaultTheme:n={}}=e,o=typeof t=="function"?r=>t(tt(r)?n:r):t;return g.jsx(_e.Global,{styles:o})}function ot(e){return Object.keys(e).length===0}function rt(e=null){const t=s.useContext(_e.ThemeContext);return!t||ot(t)?e:t}const it=Ge();function Ie(e=it){return rt(e)}function at({styles:e,themeId:t,defaultTheme:n={}}){const o=Ie(n),r=typeof e=="function"?e(t&&o[t]||o):e;return g.jsx(nt,{styles:r})}const st=e=>{var o;const t={systemProps:{},otherProps:{}},n=((o=e==null?void 0:e.theme)==null?void 0:o.unstable_sxConfig)??Xe;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function lt(e){const{sx:t,...n}=e,{systemProps:o,otherProps:r}=st(n);let i;return Array.isArray(t)?i=[o,...t]:typeof t=="function"?i=(...a)=>{const d=t(...a);return qe(d)?{...o,...d}:o}:i={...o,...t},{...r,sx:i}}const D=typeof window<"u"?s.useLayoutEffect:s.useEffect;function ut(e,t=166){let n;function o(...r){const i=()=>{e.apply(this,r)};clearTimeout(n),n=setTimeout(i,t)}return o.clear=()=>{clearTimeout(n)},o}function dt(e){return e&&e.ownerDocument||document}function me(e){return dt(e).defaultView||window}function ct(e){const t=s.useRef(e);return D(()=>{t.current=e}),s.useRef((...n)=>(0,t.current)(...n)).current}function Te(...e){const t=s.useRef(void 0),n=s.useCallback(o=>{const r=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,d=a(o);return typeof d=="function"?d:()=>{a(null)}}return i.current=o,()=>{i.current=null}});return()=>{r.forEach(i=>i==null?void 0:i())}},e);return s.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=n(o))},e)}const Be=s.createContext();function Nt({value:e,...t}){return g.jsx(Be.Provider,{value:e??!0,...t})}const Ut=()=>s.useContext(Be)??!1;function Vt(){const e=Ie(Se);return e[ve]||e}function pt(e){return g.jsx(at,{...e,defaultTheme:Se,themeId:ve})}function ft(e){return function(n){return g.jsx(pt,{styles:typeof e=="function"?o=>e({theme:o,...n}):e})}}function Gt(){return lt}function mt(e){return typeof e.main=="string"}function bt(e,t=[]){if(!mt(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function gt(e=[]){return([,t])=>t&&bt(t,e)}const{loadShare:ht}=et,{initPromise:yt}=Ye,xt=yt.then(e=>ht("react-dom",{customShareInfo:{shareConfig:{singleton:!0,strictVersion:!1,requiredVersion:"*"}}})),vt=await xt.then(e=>e());var St=vt;const qt=Qe(St);function H(e){return parseInt(e,10)||0}const Ct={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Rt(e){for(const t in e)return!1;return!0}function be(e){return Rt(e)||e.outerHeightStyle===0&&!e.overflowing}const wt=s.forwardRef(function(t,n){const{onChange:o,maxRows:r,minRows:i=1,style:a,value:d,...B}=t,{current:h}=s.useRef(d!=null),f=s.useRef(null),R=Te(n,f),b=s.useRef(null),S=s.useRef(null),y=s.useCallback(()=>{const l=f.current,u=S.current;if(!l||!u)return;const m=me(l).getComputedStyle(l);if(m.width==="0px")return{outerHeightStyle:0,overflowing:!1};u.style.width=m.width,u.value=l.value||t.placeholder||"x",u.value.slice(-1)===`
1
+ import{i as s}from"./iobroker_admin__loadShare__react__loadShare__-Bis6NHgw.js";import"./iobroker_admin__loadShare__prop_mf_2_types__loadShare__-BnsS7SOQ.js";import{j as g,k as Ge,a9 as qe,aa as Xe,T as ve,a7 as Se,a as Ce,g as Re,y as we,s as U,c as fe,e as j,b as ke,z as V,w as Ke,o as Ze,A as Je}from"./DefaultPropsProvider-u5xB1Fxz.js";import{g as Qe}from"./_commonjsHelpers-D6-XlEtG.js";import{a as Ye,b as et}from"./iobroker_admin__mf_v__runtimeInit__mf_v__-CTkuGOOk.js";import{i as _e}from"./iobroker_admin__loadShare___mf_0_emotion_mf_1_react__loadShare__-BOKYvG_W.js";function tt(e){return e==null||Object.keys(e).length===0}function nt(e){const{styles:t,defaultTheme:n={}}=e,o=typeof t=="function"?r=>t(tt(r)?n:r):t;return g.jsx(_e.Global,{styles:o})}function ot(e){return Object.keys(e).length===0}function rt(e=null){const t=s.useContext(_e.ThemeContext);return!t||ot(t)?e:t}const it=Ge();function Ie(e=it){return rt(e)}function at({styles:e,themeId:t,defaultTheme:n={}}){const o=Ie(n),r=typeof e=="function"?e(t&&o[t]||o):e;return g.jsx(nt,{styles:r})}const st=e=>{var o;const t={systemProps:{},otherProps:{}},n=((o=e==null?void 0:e.theme)==null?void 0:o.unstable_sxConfig)??Xe;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function lt(e){const{sx:t,...n}=e,{systemProps:o,otherProps:r}=st(n);let i;return Array.isArray(t)?i=[o,...t]:typeof t=="function"?i=(...a)=>{const d=t(...a);return qe(d)?{...o,...d}:o}:i={...o,...t},{...r,sx:i}}const D=typeof window<"u"?s.useLayoutEffect:s.useEffect;function ut(e,t=166){let n;function o(...r){const i=()=>{e.apply(this,r)};clearTimeout(n),n=setTimeout(i,t)}return o.clear=()=>{clearTimeout(n)},o}function dt(e){return e&&e.ownerDocument||document}function me(e){return dt(e).defaultView||window}function ct(e){const t=s.useRef(e);return D(()=>{t.current=e}),s.useRef((...n)=>(0,t.current)(...n)).current}function Te(...e){const t=s.useRef(void 0),n=s.useCallback(o=>{const r=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,d=a(o);return typeof d=="function"?d:()=>{a(null)}}return i.current=o,()=>{i.current=null}});return()=>{r.forEach(i=>i==null?void 0:i())}},e);return s.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=n(o))},e)}const Be=s.createContext();function Nt({value:e,...t}){return g.jsx(Be.Provider,{value:e??!0,...t})}const Ut=()=>s.useContext(Be)??!1;function Vt(){const e=Ie(Se);return e[ve]||e}function pt(e){return g.jsx(at,{...e,defaultTheme:Se,themeId:ve})}function ft(e){return function(n){return g.jsx(pt,{styles:typeof e=="function"?o=>e({theme:o,...n}):e})}}function Gt(){return lt}function mt(e){return typeof e.main=="string"}function bt(e,t=[]){if(!mt(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function gt(e=[]){return([,t])=>t&&bt(t,e)}const{loadShare:ht}=et,{initPromise:yt}=Ye,xt=yt.then(e=>ht("react-dom",{customShareInfo:{shareConfig:{singleton:!0,strictVersion:!1,requiredVersion:"*"}}})),vt=await xt.then(e=>e());var St=vt;const qt=Qe(St);function H(e){return parseInt(e,10)||0}const Ct={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Rt(e){for(const t in e)return!1;return!0}function be(e){return Rt(e)||e.outerHeightStyle===0&&!e.overflowing}const wt=s.forwardRef(function(t,n){const{onChange:o,maxRows:r,minRows:i=1,style:a,value:d,...B}=t,{current:h}=s.useRef(d!=null),f=s.useRef(null),R=Te(n,f),b=s.useRef(null),S=s.useRef(null),y=s.useCallback(()=>{const l=f.current,u=S.current;if(!l||!u)return;const m=me(l).getComputedStyle(l);if(m.width==="0px")return{outerHeightStyle:0,overflowing:!1};u.style.width=m.width,u.value=l.value||t.placeholder||"x",u.value.slice(-1)===`
2
2
  `&&(u.value+=" ");const G=m.boxSizing,M=H(m.paddingBottom)+H(m.paddingTop),q=H(m.borderBottomWidth)+H(m.borderTopWidth),T=u.scrollHeight;u.value="x";const z=u.scrollHeight;let x=T;i&&(x=Math.max(Number(i)*z,x)),r&&(x=Math.min(Number(r)*z,x)),x=Math.max(x,z);const $=x+(G==="border-box"?M+q:0),X=Math.abs(x-T)<=1;return{outerHeightStyle:$,overflowing:X}},[r,i,t.placeholder]),_=ct(()=>{const l=f.current,u=y();if(!l||!u||be(u))return!1;const C=u.outerHeightStyle;return b.current!=null&&b.current!==C}),w=s.useCallback(()=>{const l=f.current,u=y();if(!l||!u||be(u))return;const C=u.outerHeightStyle;b.current!==C&&(b.current=C,l.style.height=`${C}px`),l.style.overflow=u.overflowing?"hidden":""},[y]),I=s.useRef(-1);D(()=>{const l=ut(w),u=f==null?void 0:f.current;if(!u)return;const C=me(u);C.addEventListener("resize",l);let m;return typeof ResizeObserver<"u"&&(m=new ResizeObserver(()=>{_()&&(m.unobserve(u),cancelAnimationFrame(I.current),w(),I.current=requestAnimationFrame(()=>{m.observe(u)}))}),m.observe(u)),()=>{l.clear(),cancelAnimationFrame(I.current),C.removeEventListener("resize",l),m&&m.disconnect()}},[y,w,_]),D(()=>{w()});const A=l=>{h||w(),o&&o(l)};return g.jsxs(s.Fragment,{children:[g.jsx("textarea",{value:d,onChange:A,ref:R,rows:i,style:a,...B}),g.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:S,tabIndex:-1,style:{...Ct.shadow,...a,paddingTop:0,paddingBottom:0}})]})});function ge(e){return typeof e=="string"}function kt({props:e,states:t,muiFormControl:n}){return t.reduce((o,r)=>(o[r]=e[r],n&&typeof e[r]>"u"&&(o[r]=n[r]),o),{})}const Fe=s.createContext(void 0);function _t(){return s.useContext(Fe)}function he(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function It(e,t=!1){return e&&(he(e.value)&&e.value!==""||t&&he(e.defaultValue)&&e.defaultValue!=="")}function Xt(e){return e.startAdornment}function Tt(e){return Re("MuiInputBase",e)}const N=Ce("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var ye;const ze=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${j(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Pe=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Bt=e=>{const{classes:t,color:n,disabled:o,error:r,endAdornment:i,focused:a,formControl:d,fullWidth:B,hiddenLabel:h,multiline:f,readOnly:R,size:b,startAdornment:S,type:y}=e,_={root:["root",`color${j(n)}`,o&&"disabled",r&&"error",B&&"fullWidth",a&&"focused",d&&"formControl",b&&b!=="medium"&&`size${j(b)}`,f&&"multiline",S&&"adornedStart",i&&"adornedEnd",h&&"hiddenLabel",R&&"readOnly"],input:["input",o&&"disabled",y==="search"&&"inputTypeSearch",f&&"inputMultiline",b==="small"&&"inputSizeSmall",h&&"inputHiddenLabel",S&&"inputAdornedStart",i&&"inputAdornedEnd",R&&"readOnly"]};return ke(_,Tt,t)},Ae=U("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ze})(V(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${N.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Ee=U("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Pe})(V(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},o={opacity:"0 !important"},r=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${N.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":r,"&:focus::-moz-placeholder":r,"&:focus::-ms-input-placeholder":r},[`&.${N.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:i})=>!i.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:i})=>i.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),xe=ft({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Ft=s.forwardRef(function(t,n){const o=we({props:t,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:i,autoFocus:a,className:d,color:B,components:h={},componentsProps:f={},defaultValue:R,disabled:b,disableInjectingGlobalStyles:S,endAdornment:y,error:_,fullWidth:w=!1,id:I,inputComponent:A="input",inputProps:l={},inputRef:u,margin:C,maxRows:m,minRows:G,multiline:M=!1,name:q,onBlur:T,onChange:z,onClick:x,onFocus:$,onKeyDown:X,onKeyUp:Le,placeholder:Me,readOnly:K,renderSuffix:re,rows:O,size:Mt,slotProps:ie={},slots:ae={},startAdornment:E,type:se="text",value:$e,...Oe}=o,W=l.value!=null?l.value:$e,{current:Z}=s.useRef(W!=null),P=s.useRef(),We=s.useCallback(c=>{},[]),He=Te(P,u,l.ref,We),[J,Q]=s.useState(!1),p=_t(),v=kt({props:o,muiFormControl:p,states:["color","disabled","error","hiddenLabel","size","required","filled"]});v.focused=p?p.focused:J,s.useEffect(()=>{!p&&b&&J&&(Q(!1),T&&T())},[p,b,J,T]);const Y=p&&p.onFilled,ee=p&&p.onEmpty,L=s.useCallback(c=>{It(c)?Y&&Y():ee&&ee()},[Y,ee]);D(()=>{Z&&L({value:W})},[W,L,Z]);const je=c=>{$&&$(c),l.onFocus&&l.onFocus(c),p&&p.onFocus?p.onFocus(c):Q(!0)},De=c=>{T&&T(c),l.onBlur&&l.onBlur(c),p&&p.onBlur?p.onBlur(c):Q(!1)},Ne=(c,...ce)=>{if(!Z){const pe=c.target||P.current;if(pe==null)throw new Error(Ke(1));L({value:pe.value})}l.onChange&&l.onChange(c,...ce),z&&z(c,...ce)};s.useEffect(()=>{L(P.current)},[]);const Ue=c=>{P.current&&c.currentTarget===c.target&&P.current.focus(),x&&x(c)};let te=A,k=l;M&&te==="input"&&(O?k={type:void 0,minRows:O,maxRows:O,...k}:k={type:void 0,maxRows:m,minRows:G,...k},te=wt);const Ve=c=>{L(c.animationName==="mui-auto-fill-cancel"?P.current:{value:"x"})};s.useEffect(()=>{p&&p.setAdornedStart(!!E)},[p,E]);const ne={...o,color:v.color||"primary",disabled:v.disabled,endAdornment:y,error:v.error,focused:v.focused,formControl:p,fullWidth:w,hiddenLabel:v.hiddenLabel,multiline:M,size:v.size,startAdornment:E,type:se},le=Bt(ne),ue=ae.root||h.Root||Ae,oe=ie.root||f.root||{},de=ae.input||h.Input||Ee;return k={...k,...ie.input??f.input},g.jsxs(s.Fragment,{children:[!S&&typeof xe=="function"&&(ye||(ye=g.jsx(xe,{}))),g.jsxs(ue,{...oe,ref:n,onClick:Ue,...Oe,...!ge(ue)&&{ownerState:{...ne,...oe.ownerState}},className:fe(le.root,oe.className,d,K&&"MuiInputBase-readOnly"),children:[E,g.jsx(Fe.Provider,{value:null,children:g.jsx(de,{"aria-invalid":v.error,"aria-describedby":r,autoComplete:i,autoFocus:a,defaultValue:R,disabled:v.disabled,id:I,onAnimationStart:Ve,name:q,placeholder:Me,readOnly:K,required:v.required,rows:O,value:W,onKeyDown:X,onKeyUp:Le,type:se,...k,...!ge(de)&&{as:te,ownerState:{...ne,...k.ownerState}},ref:He,className:fe(le.input,k.className,K&&"MuiInputBase-readOnly"),onBlur:De,onChange:Ne,onFocus:je})}),y,re?re({...v,startAdornment:E}):null]})]})});function zt(e){return Re("MuiFilledInput",e)}const F={...N,...Ce("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},Pt=e=>{const{classes:t,disableUnderline:n,startAdornment:o,endAdornment:r,size:i,hiddenLabel:a,multiline:d}=e,B={root:["root",!n&&"underline",o&&"adornedStart",r&&"adornedEnd",i==="small"&&`size${j(i)}`,a&&"hiddenLabel",d&&"multiline"],input:["input"]},h=ke(B,zt,t);return{...t,...h}},At=U(Ae,{shouldForwardProp:e=>Je(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ze(e,t),!n.disableUnderline&&t.underline]}})(V(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:r,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${F.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${F.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:a})=>!a.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${F.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${F.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${F.disabled}, .${F.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${F.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(gt()).map(([a])=>{var d;return{props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(d=(e.vars||e).palette[a])==null?void 0:d.main}`}}}}),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:d})=>a.multiline&&d==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),Et=U(Ee,{name:"MuiFilledInput",slot:"Input",overridesResolver:Pe})(V(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Lt=s.forwardRef(function(t,n){const o=we({props:t,name:"MuiFilledInput"}),{disableUnderline:r=!1,components:i={},componentsProps:a,fullWidth:d=!1,hiddenLabel:B,inputComponent:h="input",multiline:f=!1,slotProps:R,slots:b={},type:S="text",...y}=o,_={...o,disableUnderline:r,fullWidth:d,inputComponent:h,multiline:f,type:S},w=Pt(o),I={root:{ownerState:_},input:{ownerState:_}},A=R??a?Ze(I,R??a):I,l=b.root??i.Root??At,u=b.input??i.Input??Et;return g.jsx(Ft,{slots:{root:l,input:u},slotProps:A,fullWidth:d,inputComponent:h,multiline:f,ref:n,type:S,...y,classes:w})});Lt.muiName="Input";export{Xt as A,It as B,Fe as C,Nt as D,nt as E,Lt as F,pt as G,Ft as I,qt as R,wt as T,D as a,Te as b,_t as c,Vt as d,Ie as e,lt as f,gt as g,F as h,N as i,ft as j,ut as k,me as l,Ut as m,kt as n,dt as o,ge as p,St as q,zt as r,Tt as s,rt as t,ct as u,Gt as v,Ae as w,ze as x,Ee as y,Pe as z};