iobroker.admin 7.7.2 → 7.7.3

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 (133) hide show
  1. package/README.md +42 -8
  2. package/admin/admin.png +0 -0
  3. package/admin/i18n/de.json +1 -1
  4. package/admin/i18n/es.json +1 -1
  5. package/admin/i18n/fr.json +1 -1
  6. package/admin/i18n/it.json +1 -1
  7. package/admin/i18n/nl.json +1 -1
  8. package/admin/i18n/pl.json +1 -1
  9. package/admin/i18n/pt.json +1 -1
  10. package/admin/i18n/ru.json +1 -1
  11. package/admin/i18n/uk.json +1 -1
  12. package/admin/i18n/zh-cn.json +1 -1
  13. package/admin/jsonConfig.json5 +1 -2
  14. package/adminWww/assets/{AdapterUpdateDialog-DHGhgEEq.js → AdapterUpdateDialog-BQUTMe7v.js} +1 -1
  15. package/adminWww/assets/Adapters-KuMqwfzU.js +9 -0
  16. package/adminWww/assets/Config-LH40Fzyp.js +1 -0
  17. package/adminWww/assets/CustomModal-UQ6ICKdg.js +1 -0
  18. package/adminWww/assets/CustomTab-CE2qvngn.js +1 -0
  19. package/adminWww/assets/DefaultPropsProvider-BxjOYH1h.js +30 -0
  20. package/adminWww/assets/EasyMode-XXQKZmWs.js +1 -0
  21. package/adminWww/assets/{Enums-BSICIhWI.js → Enums-Ddmi-fYo.js} +3 -3
  22. package/adminWww/assets/{Fields-C3JkTmfP.js → Fields-CQNdUYkd.js} +1 -1
  23. package/adminWww/assets/{Files-DK85-COY.js → Files-DgOiCRiN.js} +2 -2
  24. package/adminWww/assets/FilledInput-B9JSi0Ta.js +2 -0
  25. package/adminWww/assets/Hosts-BgDpLhdl.js +121 -0
  26. package/adminWww/assets/Instances-DikJwBl0.js +2 -0
  27. package/adminWww/assets/Intro-vxIHtYzr.js +2 -0
  28. package/adminWww/assets/Logs-DZUWTbJn.js +1 -0
  29. package/adminWww/assets/Objects-Dm1_4aGR.js +60 -0
  30. package/adminWww/assets/{State-BqfD2ABf.js → State-CrcWiBdx.js} +1 -1
  31. package/adminWww/assets/TextField-j-uewRwI.js +138 -0
  32. package/adminWww/assets/ThemeProvider-DHntAcOp.js +29 -0
  33. package/adminWww/assets/Users-GcWjwa7A.js +1 -0
  34. package/adminWww/assets/ace-1DqSbvTN.js +985 -0
  35. package/adminWww/assets/{bootstrap-BYQTdf9r.js → bootstrap-B3ZI_-0g.js} +112 -112
  36. package/adminWww/assets/{createSvgIcon-Bh3KWtyp.js → createSvgIcon-Ds12z7B3.js} +1 -1
  37. package/adminWww/assets/emotion-cache.browser.esm-BgJfNZJN.js +1 -0
  38. package/adminWww/assets/emotion-react.browser.esm-CBtpmfsG.js +8 -0
  39. package/adminWww/assets/emotion-serialize.esm-Q4o_CgeF.js +1 -0
  40. package/adminWww/assets/emotion-styled.browser.esm-BeD8nBzN.js +1 -0
  41. package/adminWww/assets/emotion-use-insertion-effect-with-fallbacks.browser.esm-BIy6Leuu.js +1 -0
  42. package/adminWww/assets/geosearch.module-B6h9BuIR.js +1 -0
  43. package/adminWww/assets/hostInit-fzxL8JAx.js +1 -1
  44. package/adminWww/assets/iconBase-BAOnvyiQ.js +1 -0
  45. package/adminWww/assets/{index-Qa7Q_Dz5.js → index-BOnh7es7.js} +1 -1
  46. package/adminWww/assets/{index-B1ITPhEY.js → index-BSfwmoAE.js} +3 -3
  47. package/adminWww/assets/{index-rKfs-rCa.js → index-BVgYaw7t.js} +1 -1
  48. package/adminWww/assets/{index-D--ojYan.js → index-C9i3HTsG.js} +1 -1
  49. package/adminWww/assets/{index-wN1ZlPSW.js → index-CELb-gCK.js} +2 -2
  50. package/adminWww/assets/{index-DPDg2YA0.js → index-CU6eZCem.js} +1 -1
  51. package/adminWww/assets/{index-DTGUg51P.js → index-DZ0MncEz.js} +2 -2
  52. package/adminWww/assets/index-Dg-s3k0-.js +10 -0
  53. package/adminWww/assets/index-tS5iCAF7.js +55 -0
  54. package/adminWww/assets/{iobroker_admin__loadShare___mf_0_emotion_mf_1_react__loadShare__-BOKYvG_W.js → iobroker_admin__loadShare___mf_0_emotion_mf_1_react__loadShare__-CXogaIXO.js} +1 -1
  55. package/adminWww/assets/{iobroker_admin__loadShare__leaflet__loadShare__-h9SMNPLU.js → iobroker_admin__loadShare__leaflet__loadShare__-DIpcqFbm.js} +1 -1
  56. package/adminWww/assets/{iobroker_admin__loadShare__prop_mf_2_types__loadShare__-BnsS7SOQ.js → iobroker_admin__loadShare__prop_mf_2_types__loadShare__-pDONiJUe.js} +1 -1
  57. package/adminWww/assets/{iobroker_admin__loadShare__react__loadShare__-Bis6NHgw.js → iobroker_admin__loadShare__react__loadShare__-CuzHmAOj.js} +1 -1
  58. package/adminWww/assets/iobroker_admin__mf_v__runtimeInit__mf_v__-CHE4rLsT.js +5 -0
  59. package/adminWww/assets/leaflet-src-BRBM-1HK.js +4 -0
  60. package/adminWww/assets/{sentry-H_UdJ2zx.js → sentry-B6yHtsbd.js} +1 -1
  61. package/adminWww/assets/{zh-cn-vvAC9zpl.js → zh-cn-heTcsLnU.js} +13 -13
  62. package/adminWww/img/admin.png +0 -0
  63. package/adminWww/index.html +2 -2
  64. package/adminWww/mf-manifest.json +1 -1
  65. package/adminWww/remoteEntry.js +2 -2
  66. package/build/i18n/de.json +18 -0
  67. package/build/i18n/es.json +18 -0
  68. package/build/i18n/fr.json +18 -0
  69. package/build/i18n/it.json +18 -0
  70. package/build/i18n/nl.json +18 -0
  71. package/build/i18n/pl.json +18 -0
  72. package/build/i18n/pt.json +18 -0
  73. package/build/i18n/ru.json +18 -0
  74. package/build/i18n/uk.json +18 -0
  75. package/build/i18n/zh-cn.json +18 -0
  76. package/build/lib/DockerManager.js +1315 -0
  77. package/build/lib/DockerManager.js.map +1 -0
  78. package/build/lib/dockerManager.types.js +3 -0
  79. package/build/lib/dockerManager.types.js.map +1 -0
  80. package/{build-backend → build}/lib/testPassword.js +1 -1
  81. package/{build-backend → build}/lib/testPassword.js.map +1 -1
  82. package/{build-backend → build}/lib/translations.js +16 -1
  83. package/build/lib/translations.js.map +1 -0
  84. package/{build-backend → build}/main.js +58 -5
  85. package/build/main.js.map +1 -0
  86. package/io-package.json +14 -14
  87. package/package.json +7 -7
  88. package/adminWww/assets/Adapters-CgSIajcF.js +0 -7
  89. package/adminWww/assets/Config-BQSl4bfA.js +0 -1
  90. package/adminWww/assets/CustomModal-DNMTLv4y.js +0 -1
  91. package/adminWww/assets/CustomTab-Bl8S8QZW.js +0 -1
  92. package/adminWww/assets/DefaultPropsProvider-u5xB1Fxz.js +0 -30
  93. package/adminWww/assets/EasyMode-xDbqrply.js +0 -1
  94. package/adminWww/assets/FilledInput-CysG4ax_.js +0 -2
  95. package/adminWww/assets/Hosts-qIsB4Gub.js +0 -121
  96. package/adminWww/assets/Instances-BA_DCzs8.js +0 -2
  97. package/adminWww/assets/Intro-00oh6SLw.js +0 -2
  98. package/adminWww/assets/Logs-Cvpgh-zN.js +0 -1
  99. package/adminWww/assets/Objects-Dp71iotS.js +0 -60
  100. package/adminWww/assets/Tabs-sxfWgN0b.js +0 -138
  101. package/adminWww/assets/Users-CDcWqTfZ.js +0 -1
  102. package/adminWww/assets/ace-BG5WYul1.js +0 -985
  103. package/adminWww/assets/blueGrey-DYsiMDOn.js +0 -29
  104. package/adminWww/assets/emotion-cache.browser.esm-B8BFze5o.js +0 -1
  105. package/adminWww/assets/emotion-react.browser.esm-BCDt9NrH.js +0 -8
  106. package/adminWww/assets/emotion-serialize.esm-BUa21YfQ.js +0 -1
  107. package/adminWww/assets/emotion-styled.browser.esm-CyFqGgyG.js +0 -1
  108. package/adminWww/assets/emotion-utils.browser.esm-pglN4_eI.js +0 -1
  109. package/adminWww/assets/geosearch.module-DH4NhiPj.js +0 -1
  110. package/adminWww/assets/iconBase-C3vi24ZE.js +0 -1
  111. package/adminWww/assets/index-D3IAEXXP.js +0 -10
  112. package/adminWww/assets/index-qcIeekse.js +0 -55
  113. package/adminWww/assets/iobroker_admin__mf_v__runtimeInit__mf_v__-CTkuGOOk.js +0 -5
  114. package/adminWww/assets/leaflet-src-A2ZHl6nF.js +0 -4
  115. package/build-backend/i18n/de.json +0 -18
  116. package/build-backend/i18n/es.json +0 -18
  117. package/build-backend/i18n/fr.json +0 -18
  118. package/build-backend/i18n/it.json +0 -18
  119. package/build-backend/i18n/nl.json +0 -18
  120. package/build-backend/i18n/pl.json +0 -18
  121. package/build-backend/i18n/pt.json +0 -18
  122. package/build-backend/i18n/ru.json +0 -18
  123. package/build-backend/i18n/uk.json +0 -18
  124. package/build-backend/i18n/zh-cn.json +0 -18
  125. package/build-backend/lib/translations.js.map +0 -1
  126. package/build-backend/main.js.map +0 -1
  127. /package/{build-backend → build}/i18n/en.json +0 -0
  128. /package/{build-backend → build}/lib/checkLinuxPass.js +0 -0
  129. /package/{build-backend → build}/lib/checkLinuxPass.js.map +0 -0
  130. /package/{build-backend → build}/lib/utils.js +0 -0
  131. /package/{build-backend → build}/lib/utils.js.map +0 -0
  132. /package/{build-backend → build}/lib/web.js +0 -0
  133. /package/{build-backend → build}/lib/web.js.map +0 -0
@@ -1,29 +0,0 @@
1
- import{i as l}from"./iobroker_admin__loadShare__react__loadShare__-Bis6NHgw.js";import"./iobroker_admin__loadShare__prop_mf_2_types__loadShare__-BnsS7SOQ.js";import{i as xe}from"./iobroker_admin__loadShare___mf_0_emotion_mf_1_react__loadShare__-BOKYvG_W.js";import{c as De,S as Ve}from"./emotion-cache.browser.esm-B8BFze5o.js";import{j as g,a8 as Ke,T as V,v as Oe,a4 as Ne,h as Re}from"./DefaultPropsProvider-u5xB1Fxz.js";import{t as Ge,D as qe,a as He,E as Fe}from"./FilledInput-CysG4ax_.js";const X=new Map,Ue=(e,t)=>{const o=De(e);return o.sheet=new t({key:o.key,nonce:o.sheet.nonce,container:o.sheet.container,speedy:o.sheet.isSpeedy,prepend:o.sheet.prepend,insertionPoint:o.sheet.insertionPoint}),o};let j;if(typeof document=="object"&&(j=document.querySelector('[name="emotion-insertion-point"]'),!j)){j=document.createElement("meta"),j.setAttribute("name","emotion-insertion-point"),j.setAttribute("content","");const e=document.querySelector("head");e&&e.prepend(j)}function Ye(e,t){if(e||t){class o extends Ve{insert(i,r){return this.key&&this.key.endsWith("global")&&(this.before=j),super.insert(i,r)}}const n=Ue({key:"css",insertionPoint:e?j:void 0},o);if(t){const m=n.insert;n.insert=(...i)=>(i[1].styles.startsWith("@layer")||(i[1].styles=`@layer mui {${i[1].styles}}`),m(...i))}return n}}function ht(e){const{injectFirst:t,enableCssLayer:o,children:n}=e,m=l.useMemo(()=>{const i=`${t}-${o}`;if(X.has(i))return X.get(i);const r=Ye(t,o);return X.set(i,r),r},[t,o]);return m?g.jsx(xe.CacheProvider,{value:m,children:n}):n}const Ee=l.createContext(null);function ee(){return l.useContext(Ee)}const Be=typeof Symbol=="function"&&Symbol.for,ze=Be?Symbol.for("mui.nested"):"__THEME_NESTED__";function Qe(e,t){return typeof t=="function"?t(e):{...e,...t}}function Je(e){const{children:t,theme:o}=e,n=ee(),m=l.useMemo(()=>{const i=n===null?{...o}:Qe(n,o);return i!=null&&(i[ze]=n!==null),i},[o,n]);return g.jsx(Ee.Provider,{value:m,children:t})}const be={};function Me(e,t,o,n=!1){return l.useMemo(()=>{const m=e&&t[e]||t;if(typeof o=="function"){const i=o(m),r=e?{...t,[e]:i}:i;return n?()=>r:r}return e?{...t,[e]:o}:{...t,...o}},[e,t,o,n])}function Te(e){const{children:t,theme:o,themeId:n}=e,m=Ge(be),i=ee()||be,r=Me(n,m,o),h=Me(n,i,o,!0),p=(n?r[n]:r).direction==="rtl";return g.jsx(Je,{theme:h,children:g.jsx(xe.ThemeContext.Provider,{value:r,children:g.jsx(qe,{value:p,children:g.jsx(Ke,{value:n?r[n].components:r.components,children:t})})})})}const te="mode",oe="color-scheme",We="data-color-scheme";function Xe(e){const{defaultMode:t="system",defaultLightColorScheme:o="light",defaultDarkColorScheme:n="dark",modeStorageKey:m=te,colorSchemeStorageKey:i=oe,attribute:r=We,colorSchemeNode:h="document.documentElement",nonce:p}=e||{};let x="",y=r;if(r==="class"&&(y=".%s"),r==="data"&&(y="[data-%s]"),y.startsWith(".")){const f=y.substring(1);x+=`${h}.classList.remove('${f}'.replace('%s', light), '${f}'.replace('%s', dark));
2
- ${h}.classList.add('${f}'.replace('%s', colorScheme));`}const T=y.match(/\[([^\]]+)\]/);if(T){const[f,a]=T[1].split("=");a||(x+=`${h}.removeAttribute('${f}'.replace('%s', light));
3
- ${h}.removeAttribute('${f}'.replace('%s', dark));`),x+=`
4
- ${h}.setAttribute('${f}'.replace('%s', colorScheme), ${a?`${a}.replace('%s', colorScheme)`:'""'});`}else x+=`${h}.setAttribute('${y}', colorScheme);`;return g.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?p:"",dangerouslySetInnerHTML:{__html:`(function() {
5
- try {
6
- let colorScheme = '';
7
- const mode = localStorage.getItem('${m}') || '${t}';
8
- const dark = localStorage.getItem('${i}-dark') || '${n}';
9
- const light = localStorage.getItem('${i}-light') || '${o}';
10
- if (mode === 'system') {
11
- // handle system mode
12
- const mql = window.matchMedia('(prefers-color-scheme: dark)');
13
- if (mql.matches) {
14
- colorScheme = dark
15
- } else {
16
- colorScheme = light
17
- }
18
- }
19
- if (mode === 'light') {
20
- colorScheme = light;
21
- }
22
- if (mode === 'dark') {
23
- colorScheme = dark;
24
- }
25
- if (colorScheme) {
26
- ${x}
27
- }
28
- } catch(e){}})();`}},"mui-color-scheme-init")}function Ze(){}const et=({key:e,storageWindow:t})=>(!t&&typeof window<"u"&&(t=window),{get(o){if(typeof window>"u")return;if(!t)return o;let n;try{n=t.localStorage.getItem(e)}catch{}return n||o},set:o=>{if(t)try{t.localStorage.setItem(e,o)}catch{}},subscribe:o=>{if(!t)return Ze;const n=m=>{const i=m.newValue;m.key===e&&o(i)};return t.addEventListener("storage",n),()=>{t.removeEventListener("storage",n)}}});function Z(){}function ke(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function we(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function tt(e){return we(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function ot(e){const{defaultMode:t="light",defaultLightColorScheme:o,defaultDarkColorScheme:n,supportedColorSchemes:m=[],modeStorageKey:i=te,colorSchemeStorageKey:r=oe,storageWindow:h=typeof window>"u"?void 0:window,storageManager:p=et,noSsr:x=!1}=e,y=m.join(","),T=m.length>1,f=l.useMemo(()=>p==null?void 0:p({key:i,storageWindow:h}),[p,i,h]),a=l.useMemo(()=>p==null?void 0:p({key:`${r}-light`,storageWindow:h}),[p,r,h]),S=l.useMemo(()=>p==null?void 0:p({key:`${r}-dark`,storageWindow:h}),[p,r,h]),[v,P]=l.useState(()=>{const s=(f==null?void 0:f.get(t))||t,c=(a==null?void 0:a.get(o))||o,d=(S==null?void 0:S.get(n))||n;return{mode:s,systemMode:ke(s),lightColorScheme:c,darkColorScheme:d}}),[A,U]=l.useState(x||!T);l.useEffect(()=>{U(!0)},[]);const K=tt(v),O=l.useCallback(s=>{P(c=>{if(s===c.mode)return c;const d=s??t;return f==null||f.set(d),{...c,mode:d,systemMode:ke(d)}})},[f,t]),I=l.useCallback(s=>{s?typeof s=="string"?s&&!y.includes(s)?console.error(`\`${s}\` does not exist in \`theme.colorSchemes\`.`):P(c=>{const d={...c};return we(c,u=>{u==="light"&&(a==null||a.set(s),d.lightColorScheme=s),u==="dark"&&(S==null||S.set(s),d.darkColorScheme=s)}),d}):P(c=>{const d={...c},u=s.light===null?o:s.light,L=s.dark===null?n:s.dark;return u&&(y.includes(u)?(d.lightColorScheme=u,a==null||a.set(u)):console.error(`\`${u}\` does not exist in \`theme.colorSchemes\`.`)),L&&(y.includes(L)?(d.darkColorScheme=L,S==null||S.set(L)):console.error(`\`${L}\` does not exist in \`theme.colorSchemes\`.`)),d}):P(c=>(a==null||a.set(o),S==null||S.set(n),{...c,lightColorScheme:o,darkColorScheme:n}))},[y,a,S,o,n]),N=l.useCallback(s=>{v.mode==="system"&&P(c=>{const d=s!=null&&s.matches?"dark":"light";return c.systemMode===d?c:{...c,systemMode:d}})},[v.mode]),H=l.useRef(N);return H.current=N,l.useEffect(()=>{if(typeof window.matchMedia!="function"||!T)return;const s=(...d)=>H.current(...d),c=window.matchMedia("(prefers-color-scheme: dark)");return c.addListener(s),s(c),()=>{c.removeListener(s)}},[T]),l.useEffect(()=>{if(T){const s=(f==null?void 0:f.subscribe(u=>{(!u||["light","dark","system"].includes(u))&&O(u||t)}))||Z,c=(a==null?void 0:a.subscribe(u=>{(!u||y.match(u))&&I({light:u})}))||Z,d=(S==null?void 0:S.subscribe(u=>{(!u||y.match(u))&&I({dark:u})}))||Z;return()=>{s(),c(),d()}}},[I,O,y,t,h,T,f,a,S]),{...v,mode:A?v.mode:void 0,systemMode:A?v.systemMode:void 0,colorScheme:A?K:void 0,setMode:O,setColorScheme:I}}const nt="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function rt(e){const{themeId:t,theme:o={},modeStorageKey:n=te,colorSchemeStorageKey:m=oe,disableTransitionOnChange:i=!1,defaultColorScheme:r,resolveTheme:h}=e,p={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},x=l.createContext(void 0),y=()=>l.useContext(x)||p,T={},f={};function a(A){var pe,ye,Ce,ge;const{children:U,theme:K,modeStorageKey:O=n,colorSchemeStorageKey:I=m,disableTransitionOnChange:N=i,storageManager:H,storageWindow:s=typeof window>"u"?void 0:window,documentNode:c=typeof document>"u"?void 0:document,colorSchemeNode:d=typeof document>"u"?void 0:document.documentElement,disableNestedContext:u=!1,disableStyleSheetGeneration:L=!1,defaultMode:$e="system",noSsr:je}=A,Y=l.useRef(!1),B=ee(),z=l.useContext(x),Q=!!z&&!u,ne=l.useMemo(()=>K||(typeof o=="function"?o():o),[K]),re=ne[t],k=re||ne,{colorSchemes:$=T,components:se=f,cssVarPrefix:J}=k,ce=Object.keys($).filter(C=>!!$[C]).join(","),D=l.useMemo(()=>ce.split(","),[ce]),ie=typeof r=="string"?r:r.light,le=typeof r=="string"?r:r.dark,Ae=$[ie]&&$[le]?$e:((ye=(pe=$[k.defaultColorScheme])==null?void 0:pe.palette)==null?void 0:ye.mode)||((Ce=k.palette)==null?void 0:Ce.mode),{mode:Le,setMode:de,systemMode:ae,lightColorScheme:me,darkColorScheme:ue,colorScheme:Pe,setColorScheme:fe}=ot({supportedColorSchemes:D,defaultLightColorScheme:ie,defaultDarkColorScheme:le,modeStorageKey:O,colorSchemeStorageKey:I,defaultMode:Ae,storageManager:H,storageWindow:s,noSsr:je});let W=Le,_=Pe;Q&&(W=z.mode,_=z.colorScheme);const R=l.useMemo(()=>{var q;const C=_||k.defaultColorScheme,b=((q=k.generateThemeVars)==null?void 0:q.call(k))||k.vars,M={...k,components:se,colorSchemes:$,cssVarPrefix:J,vars:b};if(typeof M.generateSpacing=="function"&&(M.spacing=M.generateSpacing()),C){const E=$[C];E&&typeof E=="object"&&Object.keys(E).forEach(w=>{E[w]&&typeof E[w]=="object"?M[w]={...M[w],...E[w]}:M[w]=E[w]})}return h?h(M):M},[k,_,se,$,J]),G=k.colorSchemeSelector;He(()=>{if(_&&d&&G&&G!=="media"){const C=G;let b=G;if(C==="class"&&(b=".%s"),C==="data"&&(b="[data-%s]"),C!=null&&C.startsWith("data-")&&!C.includes("%s")&&(b=`[${C}="%s"]`),b.startsWith("."))d.classList.remove(...D.map(M=>b.substring(1).replace("%s",M))),d.classList.add(b.substring(1).replace("%s",_));else{const M=b.replace("%s",_).match(/\[([^\]]+)\]/);if(M){const[q,E]=M[1].split("=");E||D.forEach(w=>{d.removeAttribute(q.replace(_,w))}),d.setAttribute(q,E?E.replace(/"|'/g,""):"")}else d.setAttribute(b,_)}}},[_,G,d,D]),l.useEffect(()=>{let C;if(N&&Y.current&&c){const b=c.createElement("style");b.appendChild(c.createTextNode(nt)),c.head.appendChild(b),window.getComputedStyle(c.body),C=setTimeout(()=>{c.head.removeChild(b)},1)}return()=>{clearTimeout(C)}},[_,N,c]),l.useEffect(()=>(Y.current=!0,()=>{Y.current=!1}),[]);const Ie=l.useMemo(()=>({allColorSchemes:D,colorScheme:_,darkColorScheme:ue,lightColorScheme:me,mode:W,setColorScheme:fe,setMode:de,systemMode:ae}),[D,_,ue,me,W,fe,de,ae,R.colorSchemeSelector]);let he=!0;(L||k.cssVariables===!1||Q&&(B==null?void 0:B.cssVarPrefix)===J)&&(he=!1);const Se=g.jsxs(l.Fragment,{children:[g.jsx(Te,{themeId:re?t:void 0,theme:R,children:U}),he&&g.jsx(Fe,{styles:((ge=R.generateStyleSheets)==null?void 0:ge.call(R))||[]})]});return Q?Se:g.jsx(x.Provider,{value:Ie,children:Se})}const S=typeof r=="string"?r:r.light,v=typeof r=="string"?r:r.dark;return{CssVarsProvider:a,useColorScheme:y,getInitColorSchemeScript:A=>Xe({colorSchemeStorageKey:m,defaultLightColorScheme:S,defaultDarkColorScheme:v,modeStorageKey:n,...A})}}function st({theme:e,...t}){const o=V in e?e[V]:void 0;return g.jsx(Te,{...t,themeId:o?V:void 0,theme:o||e})}const F={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:ve,useColorScheme:St,getInitColorSchemeScript:ct}=rt({themeId:V,theme:()=>Oe({cssVariables:!0}),colorSchemeStorageKey:F.colorSchemeStorageKey,modeStorageKey:F.modeStorageKey,defaultColorScheme:{light:F.defaultLightColorScheme,dark:F.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:Ne(e.palette,e.typography)};return t.unstable_sx=function(n){return Re({sx:n,theme:this})},t}});function pt(e){return g.jsx(ve,{...e})}let _e=!1;const yt=e=>(_e||(console.warn(["MUI: The getInitColorSchemeScript function has been deprecated.","","You should use `import InitColorSchemeScript from '@mui/material/InitColorSchemeScript'`","and replace the function call with `<InitColorSchemeScript />` instead."].join(`
29
- `)),_e=!0),ct(e)),it=ve;function Ct({theme:e,...t}){const o=l.useMemo(()=>{if(typeof e=="function")return e;const n=V in e?e[V]:e;return"colorSchemes"in n?null:"vars"in n?e:{...e,vars:null}},[e]);return o?g.jsx(st,{theme:o,...t}):g.jsx(it,{theme:e,...t})}const gt={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",A100:"#ffe57f",A200:"#ffd740",A400:"#ffc400",A700:"#ffab00"},bt={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238",A100:"#cfd8dc",A200:"#b0bec5",A400:"#78909c",A700:"#455a64"};export{it as C,pt as E,ht as S,Ct as T,gt as a,bt as b,yt as g,St as u};
@@ -1 +0,0 @@
1
- function fr(r){if(r.sheet)return r.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===r)return document.styleSheets[e]}function ur(r){var e=document.createElement("style");return e.setAttribute("data-emotion",r.key),r.nonce!==void 0&&e.setAttribute("nonce",r.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var hr=function(){function r(n){var t=this;this._insertTag=function(c){var a;t.tags.length===0?t.insertionPoint?a=t.insertionPoint.nextSibling:t.prepend?a=t.container.firstChild:a=t.before:a=t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(c,a),t.tags.push(c)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=r.prototype;return e.hydrate=function(t){t.forEach(this._insertTag)},e.insert=function(t){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(ur(this));var c=this.tags[this.tags.length-1];if(this.isSpeedy){var a=fr(c);try{a.insertRule(t,a.cssRules.length)}catch{}}else c.appendChild(document.createTextNode(t));this.ctr++},e.flush=function(){this.tags.forEach(function(t){var c;return(c=t.parentNode)==null?void 0:c.removeChild(t)}),this.tags=[],this.ctr=0},r}(),k="-ms-",D="-moz-",s="-webkit-",tr="comm",J="rule",Q="decl",dr="@import",nr="@keyframes",pr="@layer",br=Math.abs,H=String.fromCharCode,gr=Object.assign;function wr(r,e){return b(r,0)^45?(((e<<2^b(r,0))<<2^b(r,1))<<2^b(r,2))<<2^b(r,3):0}function cr(r){return r.trim()}function yr(r,e){return(r=e.exec(r))?r[0]:r}function i(r,e,n){return r.replace(e,n)}function j(r,e){return r.indexOf(e)}function b(r,e){return r.charCodeAt(e)|0}function I(r,e,n){return r.slice(e,n)}function C(r){return r.length}function V(r){return r.length}function B(r,e){return e.push(r),r}function kr(r,e){return r.map(e).join("")}var U=1,O=1,ar=0,l=0,d=0,_="";function Z(r,e,n,t,c,a,p){return{value:r,root:e,parent:n,type:t,props:c,children:a,line:U,column:O,length:p,return:""}}function L(r,e){return gr(Z("",null,null,"",null,null,0),r,{length:-r.length},e)}function $r(){return d}function xr(){return d=l>0?b(_,--l):0,O--,d===10&&(O=1,U--),d}function m(){return d=l<ar?b(_,l++):0,O++,d===10&&(O=1,U++),d}function T(){return b(_,l)}function F(){return l}function z(r,e){return I(_,r,e)}function W(r){switch(r){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function sr(r){return U=O=1,ar=C(_=r),l=0,[]}function ir(r){return _="",r}function K(r){return cr(z(l-1,G(r===91?r+2:r===40?r+1:r)))}function lr(r){for(;(d=T())&&d<33;)m();return W(r)>2||W(d)>3?"":" "}function Sr(r,e){for(;--e&&m()&&!(d<48||d>102||d>57&&d<65||d>70&&d<97););return z(r,F()+(e<6&&T()==32&&m()==32))}function G(r){for(;m();)switch(d){case r:return l;case 34:case 39:r!==34&&r!==39&&G(d);break;case 40:r===41&&G(r);break;case 92:m();break}return l}function mr(r,e){for(;m()&&r+d!==57;)if(r+d===84&&T()===47)break;return"/*"+z(e,l-1)+"*"+H(r===47?r:m())}function vr(r){for(;!W(T());)m();return z(r,l)}function Ar(r){return ir(Y("",null,null,null,[""],r=sr(r),0,[0],r))}function Y(r,e,n,t,c,a,p,u,$){for(var v=0,g=0,w=p,P=0,R=0,S=0,f=1,x=1,h=1,y=0,A="",q=c,M=a,E=t,o=A;x;)switch(S=y,y=m()){case 40:if(S!=108&&b(o,w-1)==58){j(o+=i(K(y),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:o+=K(y);break;case 9:case 10:case 13:case 32:o+=lr(S);break;case 92:o+=Sr(F()-1,7);continue;case 47:switch(T()){case 42:case 47:B(Er(mr(m(),F()),e,n),$);break;default:o+="/"}break;case 123*f:u[v++]=C(o)*h;case 125*f:case 59:case 0:switch(y){case 0:case 125:x=0;case 59+g:h==-1&&(o=i(o,/\f/g,"")),R>0&&C(o)-w&&B(R>32?rr(o+";",t,n,w-1):rr(i(o," ","")+";",t,n,w-2),$);break;case 59:o+=";";default:if(B(E=X(o,e,n,v,g,c,u,A,q=[],M=[],w),a),y===123)if(g===0)Y(o,e,E,E,q,a,w,u,M);else switch(P===99&&b(o,3)===110?100:P){case 100:case 108:case 109:case 115:Y(r,E,E,t&&B(X(r,E,E,0,0,c,u,A,c,q=[],w),M),c,M,w,u,t?q:M);break;default:Y(o,E,E,E,[""],M,0,u,M)}}v=g=R=0,f=h=1,A=o="",w=p;break;case 58:w=1+C(o),R=S;default:if(f<1){if(y==123)--f;else if(y==125&&f++==0&&xr()==125)continue}switch(o+=H(y),y*f){case 38:h=g>0?1:(o+="\f",-1);break;case 44:u[v++]=(C(o)-1)*h,h=1;break;case 64:T()===45&&(o+=K(m())),P=T(),g=w=C(A=o+=vr(F())),y++;break;case 45:S===45&&C(o)==2&&(f=0)}}return a}function X(r,e,n,t,c,a,p,u,$,v,g){for(var w=c-1,P=c===0?a:[""],R=V(P),S=0,f=0,x=0;S<t;++S)for(var h=0,y=I(r,w+1,w=br(f=p[S])),A=r;h<R;++h)(A=cr(f>0?P[h]+" "+y:i(y,/&\f/g,P[h])))&&($[x++]=A);return Z(r,e,n,c===0?J:u,$,v,g)}function Er(r,e,n){return Z(r,e,n,tr,H($r()),I(r,2,-2),0)}function rr(r,e,n,t){return Z(r,e,n,Q,I(r,0,t),I(r,t+1,-1),t)}function N(r,e){for(var n="",t=V(r),c=0;c<t;c++)n+=e(r[c],c,r,e)||"";return n}function Cr(r,e,n,t){switch(r.type){case pr:if(r.children.length)break;case dr:case Q:return r.return=r.return||r.value;case tr:return"";case nr:return r.return=r.value+"{"+N(r.children,t)+"}";case J:r.value=r.props.join(",")}return C(n=N(r.children,t))?r.return=r.value+"{"+n+"}":""}function Tr(r){var e=V(r);return function(n,t,c,a){for(var p="",u=0;u<e;u++)p+=r[u](n,t,c,a)||"";return p}}function Pr(r){return function(e){e.root||(e=e.return)&&r(e)}}var Rr=function(e,n,t){for(var c=0,a=0;c=a,a=T(),c===38&&a===12&&(n[t]=1),!W(a);)m();return z(e,l)},Mr=function(e,n){var t=-1,c=44;do switch(W(c)){case 0:c===38&&T()===12&&(n[t]=1),e[t]+=Rr(l-1,n,t);break;case 2:e[t]+=K(c);break;case 4:if(c===44){e[++t]=T()===58?"&\f":"",n[t]=e[t].length;break}default:e[t]+=H(c)}while(c=m());return e},Nr=function(e,n){return ir(Mr(sr(e),n))},er=new WeakMap,Or=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,t=e.parent,c=e.column===t.column&&e.line===t.line;t.type!=="rule";)if(t=t.parent,!t)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!er.get(t))&&!c){er.set(e,!0);for(var a=[],p=Nr(n,a),u=t.props,$=0,v=0;$<p.length;$++)for(var g=0;g<u.length;g++,v++)e.props[v]=a[$]?p[$].replace(/&\f/g,u[g]):u[g]+" "+p[$]}}},_r=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function or(r,e){switch(wr(r,e)){case 5103:return s+"print-"+r+r;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return s+r+r;case 5349:case 4246:case 4810:case 6968:case 2756:return s+r+D+r+k+r+r;case 6828:case 4268:return s+r+k+r+r;case 6165:return s+r+k+"flex-"+r+r;case 5187:return s+r+i(r,/(\w+).+(:[^]+)/,s+"box-$1$2"+k+"flex-$1$2")+r;case 5443:return s+r+k+"flex-item-"+i(r,/flex-|-self/,"")+r;case 4675:return s+r+k+"flex-line-pack"+i(r,/align-content|flex-|-self/,"")+r;case 5548:return s+r+k+i(r,"shrink","negative")+r;case 5292:return s+r+k+i(r,"basis","preferred-size")+r;case 6060:return s+"box-"+i(r,"-grow","")+s+r+k+i(r,"grow","positive")+r;case 4554:return s+i(r,/([^-])(transform)/g,"$1"+s+"$2")+r;case 6187:return i(i(i(r,/(zoom-|grab)/,s+"$1"),/(image-set)/,s+"$1"),r,"")+r;case 5495:case 3959:return i(r,/(image-set\([^]*)/,s+"$1$`$1");case 4968:return i(i(r,/(.+:)(flex-)?(.*)/,s+"box-pack:$3"+k+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+s+r+r;case 4095:case 3583:case 4068:case 2532:return i(r,/(.+)-inline(.+)/,s+"$1$2")+r;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(C(r)-1-e>6)switch(b(r,e+1)){case 109:if(b(r,e+4)!==45)break;case 102:return i(r,/(.+:)(.+)-([^]+)/,"$1"+s+"$2-$3$1"+D+(b(r,e+3)==108?"$3":"$2-$3"))+r;case 115:return~j(r,"stretch")?or(i(r,"stretch","fill-available"),e)+r:r}break;case 4949:if(b(r,e+1)!==115)break;case 6444:switch(b(r,C(r)-3-(~j(r,"!important")&&10))){case 107:return i(r,":",":"+s)+r;case 101:return i(r,/(.+:)([^;!]+)(;|!.+)?/,"$1"+s+(b(r,14)===45?"inline-":"")+"box$3$1"+s+"$2$3$1"+k+"$2box$3")+r}break;case 5936:switch(b(r,e+11)){case 114:return s+r+k+i(r,/[svh]\w+-[tblr]{2}/,"tb")+r;case 108:return s+r+k+i(r,/[svh]\w+-[tblr]{2}/,"tb-rl")+r;case 45:return s+r+k+i(r,/[svh]\w+-[tblr]{2}/,"lr")+r}return s+r+k+r+r}return r}var Lr=function(e,n,t,c){if(e.length>-1&&!e.return)switch(e.type){case Q:e.return=or(e.value,e.length);break;case nr:return N([L(e,{value:i(e.value,"@","@"+s)})],c);case J:if(e.length)return kr(e.props,function(a){switch(yr(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return N([L(e,{props:[i(a,/:(read-\w+)/,":"+D+"$1")]})],c);case"::placeholder":return N([L(e,{props:[i(a,/:(plac\w+)/,":"+s+"input-$1")]}),L(e,{props:[i(a,/:(plac\w+)/,":"+D+"$1")]}),L(e,{props:[i(a,/:(plac\w+)/,k+"input-$1")]})],c)}return""})}},Ir=[Lr],Wr=function(e){var n=e.key;if(n==="css"){var t=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(t,function(f){var x=f.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var c=e.stylisPlugins||Ir,a={},p,u=[];p=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(f){for(var x=f.getAttribute("data-emotion").split(" "),h=1;h<x.length;h++)a[x[h]]=!0;u.push(f)});var $,v=[Or,_r];{var g,w=[Cr,Pr(function(f){g.insert(f)})],P=Tr(v.concat(c,w)),R=function(x){return N(Ar(x),P)};$=function(x,h,y,A){g=y,R(x?x+"{"+h.styles+"}":h.styles),A&&(S.inserted[h.name]=!0)}}var S={key:n,sheet:new hr({key:n,container:p,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:$};return S.sheet.hydrate(u),S};export{hr as S,Wr as c};
@@ -1,8 +0,0 @@
1
- import{i as u}from"./iobroker_admin__loadShare__react__loadShare__-Bis6NHgw.js";import{c as Z}from"./emotion-cache.browser.esm-B8BFze5o.js";import{_ as Y}from"./extends-CF3RwP-h.js";import{g as k}from"./_commonjsHelpers-D6-XlEtG.js";import{g as G,r as H,u as K,i as N,a as W}from"./emotion-utils.browser.esm-pglN4_eI.js";import{s as p}from"./emotion-serialize.esm-BUa21YfQ.js";import"./iobroker_admin__mf_v__runtimeInit__mf_v__-CTkuGOOk.js";var D=function(r){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var a=r(n);return t.set(n,a),a}},U={exports:{}},i={};/** @license React v16.13.1
2
- * react-is.production.min.js
3
- *
4
- * Copyright (c) Facebook, Inc. and its affiliates.
5
- *
6
- * This source code is licensed under the MIT license found in the
7
- * LICENSE file in the root directory of this source tree.
8
- */var c=typeof Symbol=="function"&&Symbol.for,_=c?Symbol.for("react.element"):60103,M=c?Symbol.for("react.portal"):60106,h=c?Symbol.for("react.fragment"):60107,g=c?Symbol.for("react.strict_mode"):60108,S=c?Symbol.for("react.profiler"):60114,b=c?Symbol.for("react.provider"):60109,E=c?Symbol.for("react.context"):60110,A=c?Symbol.for("react.async_mode"):60111,P=c?Symbol.for("react.concurrent_mode"):60111,x=c?Symbol.for("react.forward_ref"):60112,T=c?Symbol.for("react.suspense"):60113,ee=c?Symbol.for("react.suspense_list"):60120,$=c?Symbol.for("react.memo"):60115,w=c?Symbol.for("react.lazy"):60116,re=c?Symbol.for("react.block"):60121,te=c?Symbol.for("react.fundamental"):60117,ne=c?Symbol.for("react.responder"):60118,ae=c?Symbol.for("react.scope"):60119;function v(e){if(typeof e=="object"&&e!==null){var r=e.$$typeof;switch(r){case _:switch(e=e.type,e){case A:case P:case h:case S:case g:case T:return e;default:switch(e=e&&e.$$typeof,e){case E:case x:case w:case $:case b:return e;default:return r}}case M:return r}}}function V(e){return v(e)===P}i.AsyncMode=A;i.ConcurrentMode=P;i.ContextConsumer=E;i.ContextProvider=b;i.Element=_;i.ForwardRef=x;i.Fragment=h;i.Lazy=w;i.Memo=$;i.Portal=M;i.Profiler=S;i.StrictMode=g;i.Suspense=T;i.isAsyncMode=function(e){return V(e)||v(e)===A};i.isConcurrentMode=V;i.isContextConsumer=function(e){return v(e)===E};i.isContextProvider=function(e){return v(e)===b};i.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===_};i.isForwardRef=function(e){return v(e)===x};i.isFragment=function(e){return v(e)===h};i.isLazy=function(e){return v(e)===w};i.isMemo=function(e){return v(e)===$};i.isPortal=function(e){return v(e)===M};i.isProfiler=function(e){return v(e)===S};i.isStrictMode=function(e){return v(e)===g};i.isSuspense=function(e){return v(e)===T};i.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===h||e===P||e===S||e===g||e===T||e===ee||typeof e=="object"&&e!==null&&(e.$$typeof===w||e.$$typeof===$||e.$$typeof===b||e.$$typeof===E||e.$$typeof===x||e.$$typeof===te||e.$$typeof===ne||e.$$typeof===ae||e.$$typeof===re)};i.typeOf=v;U.exports=i;var oe=U.exports,z=oe,se={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ie={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ue={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},B={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},R={};R[z.ForwardRef]=ue;R[z.Memo]=B;function L(e){return z.isMemo(e)?B:R[e.$$typeof]||se}var fe=Object.defineProperty,ce=Object.getOwnPropertyNames,J=Object.getOwnPropertySymbols,le=Object.getOwnPropertyDescriptor,me=Object.getPrototypeOf,X=Object.prototype;function Q(e,r,t){if(typeof r!="string"){if(X){var n=me(r);n&&n!==X&&Q(e,n,t)}var a=ce(r);J&&(a=a.concat(J(r)));for(var s=L(e),o=L(r),l=0;l<a.length;++l){var f=a[l];if(!ie[f]&&!(t&&t[f])&&!(o&&o[f])&&!(s&&s[f])){var m=le(r,f);try{fe(e,f,m)}catch{}}}}return e}var ve=Q;const ye=k(ve);var de=function(e,r){return ye(e,r)},I=u.createContext(typeof HTMLElement<"u"?Z({key:"css"}):null),ze=I.Provider,Re=function(){return u.useContext(I)},j=function(r){return u.forwardRef(function(t,n){var a=u.useContext(I);return r(t,a,n)})},d=u.createContext({}),Ie=function(){return u.useContext(d)},pe=function(r,t){if(typeof t=="function"){var n=t(r);return n}return Y({},r,t)},he=D(function(e){return D(function(r){return pe(e,r)})}),je=function(r){var t=u.useContext(d);return r.theme!==t&&(t=he(t)(r.theme)),u.createElement(d.Provider,{value:t},r.children)};function Fe(e){var r=e.displayName||e.name||"Component",t=u.forwardRef(function(a,s){var o=u.useContext(d);return u.createElement(e,Y({theme:o,ref:s},a))});return t.displayName="WithTheme("+r+")",de(t,e)}var F={}.hasOwnProperty,O="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ge=function(r,t){var n={};for(var a in t)F.call(t,a)&&(n[a]=t[a]);return n[O]=r,n},Se=function(r){var t=r.cache,n=r.serialized,a=r.isStringTag;return H(t,n,a),K(function(){return N(t,n,a)}),null},be=j(function(e,r,t){var n=e.css;typeof n=="string"&&r.registered[n]!==void 0&&(n=r.registered[n]);var a=e[O],s=[n],o="";typeof e.className=="string"?o=G(r.registered,s,e.className):e.className!=null&&(o=e.className+" ");var l=p(s,void 0,u.useContext(d));o+=r.key+"-"+l.name;var f={};for(var m in e)F.call(e,m)&&m!=="css"&&m!==O&&(f[m]=e[m]);return f.className=o,t&&(f.ref=t),u.createElement(u.Fragment,null,u.createElement(Se,{cache:r,serialized:l,isStringTag:typeof a=="string"}),u.createElement(a,f))}),Ee=be,q=function(r,t){var n=arguments;if(t==null||!F.call(t,"css"))return u.createElement.apply(void 0,n);var a=n.length,s=new Array(a);s[0]=Ee,s[1]=ge(r,t);for(var o=2;o<a;o++)s[o]=n[o];return u.createElement.apply(null,s)};(function(e){var r;r||(r=e.JSX||(e.JSX={}))})(q||(q={}));var We=j(function(e,r){var t=e.styles,n=p([t],void 0,u.useContext(d)),a=u.useRef();return W(function(){var s=r.key+"-global",o=new r.sheet.constructor({key:s,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy}),l=!1,f=document.querySelector('style[data-emotion="'+s+" "+n.name+'"]');return r.sheet.tags.length&&(o.before=r.sheet.tags[0]),f!==null&&(l=!0,f.setAttribute("data-emotion",s),o.hydrate([f])),a.current=[o,l],function(){o.flush()}},[r]),W(function(){var s=a.current,o=s[0],l=s[1];if(l){s[1]=!1;return}if(n.next!==void 0&&N(r,n.next,!0),o.tags.length){var f=o.tags[o.tags.length-1].nextElementSibling;o.before=f,o.flush()}r.insert("",n,o,!1)},[r,n.name]),null});function Pe(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return p(r)}function De(){var e=Pe.apply(void 0,arguments),r="animation-"+e.name;return{name:r,styles:"@keyframes "+r+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var xe=function e(r){for(var t=r.length,n=0,a="";n<t;n++){var s=r[n];if(s!=null){var o=void 0;switch(typeof s){case"boolean":break;case"object":{if(Array.isArray(s))o=e(s);else{o="";for(var l in s)s[l]&&l&&(o&&(o+=" "),o+=l)}break}default:o=s}o&&(a&&(a+=" "),a+=o)}}return a};function Te(e,r,t){var n=[],a=G(e,n,t);return n.length<2?t:a+r(n)}var $e=function(r){var t=r.cache,n=r.serializedArr;return K(function(){for(var a=0;a<n.length;a++)N(t,n[a],!1)}),null},Le=j(function(e,r){var t=[],n=function(){for(var f=arguments.length,m=new Array(f),y=0;y<f;y++)m[y]=arguments[y];var C=p(m,r.registered);return t.push(C),H(r,C,!1),r.key+"-"+C.name},a=function(){for(var f=arguments.length,m=new Array(f),y=0;y<f;y++)m[y]=arguments[y];return Te(r.registered,n,xe(m))},s={css:n,cx:a,theme:u.useContext(d)},o=e.children(s);return u.createElement(u.Fragment,null,u.createElement($e,{cache:r,serializedArr:t}),o)});export{ze as CacheProvider,Le as ClassNames,We as Global,d as ThemeContext,je as ThemeProvider,Re as __unsafe_useEmotionCache,q as createElement,Pe as css,q as jsx,De as keyframes,Ie as useTheme,j as withEmotionCache,Fe as withTheme};
@@ -1 +0,0 @@
1
- function C(r){for(var e=0,n,t=0,a=r.length;a>=4;++t,a-=4)n=r.charCodeAt(t)&255|(r.charCodeAt(++t)&255)<<8|(r.charCodeAt(++t)&255)<<16|(r.charCodeAt(++t)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(a){case 3:e^=(r.charCodeAt(t+2)&255)<<16;case 2:e^=(r.charCodeAt(t+1)&255)<<8;case 1:e^=r.charCodeAt(t)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var y={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function w(r){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=r(n)),e[n]}}var A=/[A-Z]|^ms/g,S=/_EMO_([^_]+?)_([^]*?)_EMO_/g,p=function(e){return e.charCodeAt(1)===45},h=function(e){return e!=null&&typeof e!="boolean"},x=w(function(r){return p(r)?r:r.replace(A,"-$&").toLowerCase()}),v=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(S,function(t,a,f){return c={name:a,styles:f,next:c},a})}return y[e]!==1&&!p(e)&&typeof n=="number"&&n!==0?n+"px":n};function d(r,e,n){if(n==null)return"";var t=n;if(t.__emotion_styles!==void 0)return t;switch(typeof n){case"boolean":return"";case"object":{var a=n;if(a.anim===1)return c={name:a.name,styles:a.styles,next:c},a.name;var f=n;if(f.styles!==void 0){var o=f.next;if(o!==void 0)for(;o!==void 0;)c={name:o.name,styles:o.styles,next:c},o=o.next;var i=f.styles+";";return i}return O(r,e,n)}case"function":{if(r!==void 0){var u=c,l=n(r);return c=u,d(r,e,l)}break}}var s=n;if(e==null)return s;var m=e[s];return m!==void 0?m:s}function O(r,e,n){var t="";if(Array.isArray(n))for(var a=0;a<n.length;a++)t+=d(r,e,n[a])+";";else for(var f in n){var o=n[f];if(typeof o!="object"){var i=o;e!=null&&e[i]!==void 0?t+=f+"{"+e[i]+"}":h(i)&&(t+=x(f)+":"+v(f,i)+";")}else if(Array.isArray(o)&&typeof o[0]=="string"&&(e==null||e[o[0]]===void 0))for(var u=0;u<o.length;u++)h(o[u])&&(t+=x(f)+":"+v(f,o[u])+";");else{var l=d(r,e,o);switch(f){case"animation":case"animationName":{t+=x(f)+":"+l+";";break}default:t+=f+"{"+l+"}"}}}return t}var b=/label:\s*([^\s;{]+)\s*(;|$)/g,c;function R(r,e,n){if(r.length===1&&typeof r[0]=="object"&&r[0]!==null&&r[0].styles!==void 0)return r[0];var t=!0,a="";c=void 0;var f=r[0];if(f==null||f.raw===void 0)t=!1,a+=d(n,e,f);else{var o=f;a+=o[0]}for(var i=1;i<r.length;i++)if(a+=d(n,e,r[i]),t){var u=f;a+=u[i]}b.lastIndex=0;for(var l="",s;(s=b.exec(a))!==null;)l+="-"+s[1];var m=C(a)+l;return{name:m,styles:a,next:c}}export{w as m,R as s};
@@ -1 +0,0 @@
1
- import{_ as E}from"./extends-CF3RwP-h.js";import{i as T}from"./iobroker_admin__loadShare___mf_0_emotion_mf_1_react__loadShare__-BOKYvG_W.js";import{m as I,s as L}from"./emotion-serialize.esm-BUa21YfQ.js";import{g as M,r as H,u as N,i as U}from"./emotion-utils.browser.esm-pglN4_eI.js";import{i as p}from"./iobroker_admin__loadShare__react__loadShare__-Bis6NHgw.js";import"./iobroker_admin__mf_v__runtimeInit__mf_v__-CTkuGOOk.js";import"./_commonjsHelpers-D6-XlEtG.js";var D=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,q=I(function(a){return D.test(a)||a.charCodeAt(0)===111&&a.charCodeAt(1)===110&&a.charCodeAt(2)<91}),B=q,V=function(e){return e!=="theme"},A=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?B:V},R=function(e,i,l){var t;if(i){var o=i.shouldForwardProp;t=e.__emotion_forwardProp&&o?function(d){return e.__emotion_forwardProp(d)&&o(d)}:o}return typeof t!="function"&&l&&(t=e.__emotion_forwardProp),t},W=function(e){var i=e.cache,l=e.serialized,t=e.isStringTag;return H(i,l,t),N(function(){return U(i,l,t)}),null},X=function a(e,i){var l=e.__emotion_real===e,t=l&&e.__emotion_base||e,o,d;i!==void 0&&(o=i.label,d=i.target);var b=R(e,i,l),S=b||A(t),k=!S("as");return function(){var u=arguments,s=l&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(o!==void 0&&s.push("label:"+o+";"),u[0]==null||u[0].raw===void 0)s.push.apply(s,u);else{var x=u[0];s.push(x[0]);for(var F=u.length,f=1;f<F;f++)s.push(u[f],x[f])}var n=T.withEmotionCache(function(r,c,h){var _=k&&r.as||t,m="",P=[],g=r;if(r.theme==null){g={};for(var w in r)g[w]=r[w];g.theme=p.useContext(T.ThemeContext)}typeof r.className=="string"?m=M(c.registered,P,r.className):r.className!=null&&(m=r.className+" ");var C=L(s.concat(P),c.registered,g);m+=c.key+"-"+C.name,d!==void 0&&(m+=" "+d);var z=k&&b===void 0?A(_):S,y={};for(var v in r)k&&v==="as"||z(v)&&(y[v]=r[v]);return y.className=m,h&&(y.ref=h),p.createElement(p.Fragment,null,p.createElement(W,{cache:c,serialized:C,isStringTag:typeof _=="string"}),p.createElement(_,y))});return n.displayName=o!==void 0?o:"Styled("+(typeof t=="string"?t:t.displayName||t.name||"Component")+")",n.defaultProps=e.defaultProps,n.__emotion_real=n,n.__emotion_base=t,n.__emotion_styles=s,n.__emotion_forwardProp=b,Object.defineProperty(n,"toString",{value:function(){return"."+d}}),n.withComponent=function(r,c){var h=a(r,E({},i,c,{shouldForwardProp:R(n,c,!0)}));return h.apply(void 0,s)},n}},j=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],O=X.bind(null);j.forEach(function(a){O[a]=O(a)});export{O as default};
@@ -1 +0,0 @@
1
- import{a as f,i as o}from"./iobroker_admin__loadShare__react__loadShare__-Bis6NHgw.js";var u=function(e){return e()},i=f.useInsertionEffect?f.useInsertionEffect:!1,d=i||u,_=i||o.useLayoutEffect,l=!0;function S(a,e,t){var n="";return t.split(" ").forEach(function(s){a[s]!==void 0?e.push(a[s]+";"):s&&(n+=s+" ")}),n}var y=function(e,t,n){var s=e.key+"-"+t.name;(n===!1||l===!1)&&e.registered[s]===void 0&&(e.registered[s]=t.styles)},k=function(e,t,n){y(e,t,n);var s=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var r=t;do e.insert(t===r?"."+s:"",r,e.sheet,!0),r=r.next;while(r!==void 0)}};export{_ as a,S as g,k as i,y as r,d as u};
@@ -1 +0,0 @@
1
- import{t as K,i as d}from"./iobroker_admin__loadShare__leaflet__loadShare__-h9SMNPLU.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./iobroker_admin__mf_v__runtimeInit__mf_v__-CTkuGOOk.js";function g(){return g=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(n[t]=o[t])}return n},g.apply(this,arguments)}function c(n,r){n.prototype=Object.create(r.prototype),n.prototype.constructor=n,M(n,r)}function M(n,r){return M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,t){return o.__proto__=t,o},M(n,r)}function X(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function G(n,r,o){return G=X()?Reflect.construct.bind():function(t,e,s){var i=[null];i.push.apply(i,e);var a=new(Function.bind.apply(t,i));return s&&M(a,s.prototype),a},G.apply(null,arguments)}function m(n,r,o,t){r===void 0&&(r=""),t===void 0&&(t={});var e=document.createElement(n);return r&&(e.className=r),Object.keys(t).forEach(function(s){if(typeof t[s]=="function"){var i=s.indexOf("on")===0?s.substr(2).toLowerCase():s;e.addEventListener(i,t[s])}else s==="html"?e.innerHTML=t[s]:s==="text"?e.innerText=t[s]:e.setAttribute(s,t[s])}),o&&o.appendChild(e),e}function C(n){n.preventDefault(),n.stopPropagation()}var O=function(){return[].slice.call(arguments).filter(Boolean).join(" ").trim()};function x(n,r){n&&n.classList&&(Array.isArray(r)?r:[r]).forEach(function(o){n.classList.contains(o)||n.classList.add(o)})}function f(n,r){n&&n.classList&&(Array.isArray(r)?r:[r]).forEach(function(o){n.classList.contains(o)&&n.classList.remove(o)})}var y,_=13,T=40,V=38,Y=[_,27,T,V,37,39],ee=function(){function n(o){var t=this,e=o.handleSubmit,s=o.searchLabel,i=o.classNames,a=i===void 0?{}:i;this.container=void 0,this.form=void 0,this.input=void 0,this.handleSubmit=void 0,this.hasError=!1,this.container=m("div",O("geosearch",a.container)),this.form=m("form",["",a.form].join(" "),this.container,{autocomplete:"none",onClick:C,onDblClick:C,touchStart:C,touchEnd:C}),this.input=m("input",["glass",a.input].join(" "),this.form,{type:"text",placeholder:s||"search",onInput:this.onInput,onKeyUp:function(l){return t.onKeyUp(l)},onKeyPress:function(l){return t.onKeyPress(l)},onFocus:this.onFocus,onBlur:this.onBlur,onClick:function(){t.input.focus(),t.input.dispatchEvent(new Event("focus"))}}),this.handleSubmit=e}var r=n.prototype;return r.onFocus=function(){x(this.form,"active")},r.onBlur=function(){f(this.form,"active")},r.onSubmit=function(o){try{var t=this;return C(o),f(e=t.container,"error"),x(e,"pending"),Promise.resolve(t.handleSubmit({query:t.input.value})).then(function(){f(t.container,"pending")})}catch(s){return Promise.reject(s)}var e},r.onInput=function(){this.hasError&&(f(this.container,"error"),this.hasError=!1)},r.onKeyUp=function(o){o.keyCode===27&&(f(this.container,["pending","active"]),this.input.value="",document.body.focus(),document.body.blur())},r.onKeyPress=function(o){o.keyCode===_&&this.onSubmit(o)},r.setQuery=function(o){this.input.value=o},n}(),te=function(){function n(o){var t=this,e=o.handleClick,s=o.classNames,i=s===void 0?{}:s,a=o.notFoundMessage;this.handleClick=void 0,this.selected=-1,this.results=[],this.container=void 0,this.resultItem=void 0,this.notFoundMessage=void 0,this.onClick=function(l){if(typeof t.handleClick=="function"){var u=l.target;if(u&&t.container.contains(u)&&u.hasAttribute("data-key")){var h=Number(u.getAttribute("data-key"));t.handleClick({result:t.results[h]})}}},this.handleClick=e,this.notFoundMessage=a?m("div",O(i.notfound),void 0,{html:a}):void 0,this.container=m("div",O("results",i.resultlist)),this.container.addEventListener("click",this.onClick,!0),this.resultItem=m("div",O(i.item))}var r=n.prototype;return r.render=function(o,t){var e=this;o===void 0&&(o=[]),this.clear(),o.forEach(function(s,i){var a=e.resultItem.cloneNode(!0);a.setAttribute("data-key",""+i),a.innerHTML=t({result:s}),e.container.appendChild(a)}),o.length>0?(x(this.container.parentElement,"open"),x(this.container,"active")):this.notFoundMessage&&(this.container.appendChild(this.notFoundMessage),x(this.container.parentElement,"open")),this.results=o},r.select=function(o){return Array.from(this.container.children).forEach(function(t,e){return e===o?x(t,"active"):f(t,"active")}),this.selected=o,this.results[o]},r.count=function(){return this.results?this.results.length:0},r.clear=function(){for(this.selected=-1;this.container.lastChild;)this.container.removeChild(this.container.lastChild);f(this.container.parentElement,"open"),f(this.container,"active")},n}(),D={position:"topleft",style:"button",showMarker:!0,showPopup:!1,popupFormat:function(n){return""+n.result.label},resultFormat:function(n){return""+n.result.label},marker:{icon:K&&d.Icon?new d.Icon.Default:void 0,draggable:!1},maxMarkers:1,maxSuggestions:5,retainZoomLevel:!1,animateZoom:!0,searchLabel:"Enter address",clearSearchLabel:"Clear search",notFoundMessage:"",messageHideDelay:3e3,zoomLevel:18,classNames:{container:"leaflet-bar leaflet-control leaflet-control-geosearch",button:"leaflet-bar-part leaflet-bar-part-single",resetButton:"reset",msgbox:"leaflet-bar message",form:"",input:"",resultlist:"",item:"",notfound:"leaflet-bar-notfound"},autoComplete:!0,autoCompleteDelay:250,autoClose:!1,keepResult:!1,updateMap:!0,resetButton:"×"},J="Leaflet must be loaded before instantiating the GeoSearch control",re={options:g({},D),classNames:g({},D.classNames),initialize:function(n){var r,o,t,e,s=this;if(!K)throw new Error(J);if(!n.provider)throw new Error("Provider is missing from options");this.options=g({},D,n),this.classNames=g({},this.classNames,n.classNames),this.markers=new d.FeatureGroup,this.classNames.container+=" leaflet-geosearch-"+this.options.style,this.searchElement=new ee({searchLabel:this.options.searchLabel,classNames:{container:this.classNames.container,form:this.classNames.form,input:this.classNames.input},handleSubmit:function(i){return s.onSubmit(i)}}),this.button=m("a",this.classNames.button,this.searchElement.container,{title:this.options.searchLabel,href:"#",onClick:function(i){return s.onClick(i)}}),d.DomEvent.disableClickPropagation(this.button),this.resetButton=m("button",this.classNames.resetButton,this.searchElement.form,{text:this.options.resetButton,"aria-label":this.options.clearSearchLabel,onClick:function(){s.searchElement.input.value===""?s.close():s.clearResults(null,!0)}}),d.DomEvent.disableClickPropagation(this.resetButton),this.options.autoComplete&&(this.resultList=new te({handleClick:function(i){var a=i.result;s.searchElement.input.value=a.label,s.onSubmit({query:a.label,data:a})},classNames:{resultlist:this.classNames.resultlist,item:this.classNames.item,notfound:this.classNames.notfound},notFoundMessage:this.options.notFoundMessage}),this.searchElement.form.appendChild(this.resultList.container),this.searchElement.input.addEventListener("keyup",(r=function(i){return s.autoSearch(i)},(o=this.options.autoCompleteDelay)===void 0&&(o=250),t===void 0&&(t=!1),function(){var i=[].slice.call(arguments);e&&clearTimeout(e),e=setTimeout(function(){e=null,t||r.apply(void 0,i)},o),t&&!e&&r.apply(void 0,i)}),!0),this.searchElement.input.addEventListener("keydown",function(i){return s.selectResult(i)},!0),this.searchElement.input.addEventListener("keydown",function(i){return s.clearResults(i,!0)},!0)),this.searchElement.form.addEventListener("click",function(i){i.preventDefault()},!1)},onAdd:function(n){var r=this.options,o=r.showMarker,t=r.style;if(this.map=n,o&&this.markers.addTo(n),t==="bar"){var e=n.getContainer().querySelector(".leaflet-control-container");this.container=m("div","leaflet-control-geosearch leaflet-geosearch-bar"),this.container.appendChild(this.searchElement.form),e.appendChild(this.container)}return d.DomEvent.disableClickPropagation(this.searchElement.form),this.searchElement.container},onRemove:function(){var n;return(n=this.container)==null||n.remove(),this},open:function(){var n=this.searchElement,r=n.input;x(n.container,"active"),r.focus()},close:function(){f(this.searchElement.container,"active"),this.clearResults()},onClick:function(n){n.preventDefault(),n.stopPropagation(),this.searchElement.container.classList.contains("active")?this.close():this.open()},selectResult:function(n){if([_,T,V].indexOf(n.keyCode)!==-1)if(n.preventDefault(),n.keyCode!==_){var r=this.resultList.count()-1;if(!(r<0)){var o=this.resultList.selected,t=n.keyCode===T?o+1:o-1,e=this.resultList.select(t<0?r:t>r?0:t);this.searchElement.input.value=e.label}}else{var s=this.resultList.select(this.resultList.selected);this.onSubmit({query:this.searchElement.input.value,data:s})}},clearResults:function(n,r){if(r===void 0&&(r=!1),!n||n.keyCode===27){var o=this.options,t=o.autoComplete;!r&&o.keepResult||(this.searchElement.input.value="",this.markers.clearLayers()),t&&this.resultList.clear()}},autoSearch:function(n){try{var r=this;if(Y.indexOf(n.keyCode)>-1)return Promise.resolve();var o=n.target.value,t=r.options.provider,e=function(){if(o.length)return Promise.resolve(t.search({query:o})).then(function(s){s=s.slice(0,r.options.maxSuggestions),r.resultList.render(s,r.options.resultFormat)});r.resultList.clear()}();return Promise.resolve(e&&e.then?e.then(function(){}):void 0)}catch(s){return Promise.reject(s)}},onSubmit:function(n){try{var r=this;return r.resultList.clear(),Promise.resolve(r.options.provider.search(n)).then(function(o){o&&o.length>0&&r.showResult(o[0],n)})}catch(o){return Promise.reject(o)}},showResult:function(n,r){var o=this.options,t=o.autoClose,e=o.updateMap,s=this.markers.getLayers();s.length>=this.options.maxMarkers&&this.markers.removeLayer(s[0]);var i=this.addMarker(n,r);e&&this.centerMap(n),this.map.fireEvent("geosearch/showlocation",{location:n,marker:i}),t&&this.closeResults()},closeResults:function(){var n=this.searchElement.container;n.classList.contains("active")&&f(n,"active"),this.clearResults()},addMarker:function(n,r){var o=this,t=this.options,e=t.marker,s=t.showPopup,i=t.popupFormat,a=new d.Marker([n.y,n.x],e),l=n.label;return typeof i=="function"&&(l=i({query:r,result:n})),a.bindPopup(l),this.markers.addLayer(a),s&&a.openPopup(),e.draggable&&a.on("dragend",function(u){o.map.fireEvent("geosearch/marker/dragend",{location:a.getLatLng(),event:u})}),a},centerMap:function(n){var r=this.options,o=r.retainZoomLevel,t=r.animateZoom,e=n.bounds?new d.LatLngBounds(n.bounds):new d.LatLng(n.y,n.x).toBounds(10),s=e.isValid()?e:this.markers.getBounds();!o&&e.isValid()&&!n.bounds||o||!e.isValid()?this.map.setView(s.getCenter(),this.getZoom(),{animate:t}):this.map.fitBounds(s,{animate:t})},getZoom:function(){var n=this.options,r=n.zoomLevel;return n.retainZoomLevel?this.map.getZoom():r}};function ue(){if(!K)throw new Error(J);var n=d.Control.extend(re);return G(n,[].slice.call(arguments))}(function(n){n[n.SEARCH=0]="SEARCH",n[n.REVERSE=1]="REVERSE"})(y||(y={}));var p=function(){function n(o){o===void 0&&(o={}),this.options=void 0,this.options=o}var r=n.prototype;return r.getParamString=function(o){o===void 0&&(o={});var t=g({},this.options.params,o);return Object.keys(t).map(function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])}).join("&")},r.getUrl=function(o,t){return o+"?"+this.getParamString(t)},r.search=function(o){try{var t=this,e=t.endpoint({query:o.query,type:y.SEARCH});return Promise.resolve(fetch(e)).then(function(s){return Promise.resolve(s.json()).then(function(i){return t.parse({data:i})})})}catch(s){return Promise.reject(s)}},n}(),he=function(n){function r(){for(var t,e=arguments.length,s=new Array(e),i=0;i<e;i++)s[i]=arguments[i];return(t=n.call.apply(n,[this].concat(s))||this).searchUrl="https://restapi.amap.com/v3/geocode/geo",t}c(r,n);var o=r.prototype;return o.endpoint=function(t){var e=t.query,s=typeof e=="string"?{address:e}:e;return s.output="JSON",this.getUrl(this.searchUrl,s)},o.parse=function(t){var e;return((e=t.data.geocodes)!=null?e:[]).map(function(s){return{x:Number(s.location.substring(0,s.location.indexOf(","))),y:Number(s.location.substring(s.location.indexOf(",")+1)),label:s.formatted_address,bounds:null,raw:s}})},r}(p),pe=function(n){function r(){for(var t,e=arguments.length,s=new Array(e),i=0;i<e;i++)s[i]=arguments[i];return(t=n.call.apply(n,[this].concat(s))||this).searchUrl="https://dev.virtualearth.net/REST/v1/Locations",t}c(r,n);var o=r.prototype;return o.endpoint=function(t){var e=t.query,s=typeof e=="string"?{q:e}:e;return s.jsonp=t.jsonp,this.getUrl(this.searchUrl,s)},o.parse=function(t){return t.data.resourceSets.length===0?[]:t.data.resourceSets[0].resources.map(function(e){return{x:e.point.coordinates[1],y:e.point.coordinates[0],label:e.address.formattedAddress,bounds:[[e.bbox[0],e.bbox[1]],[e.bbox[2],e.bbox[3]]],raw:e}})},o.search=function(t){var e,s,i,a=t.query;try{var l=this,u="BING_JSONP_CB_"+Date.now();return Promise.resolve((e=l.endpoint({query:a,jsonp:u}),s=u,i=m("script",null,document.body),i.setAttribute("type","text/javascript"),new Promise(function(h){window[s]=function(b){i.remove(),delete window[s],h(b)},i.setAttribute("src",e)}))).then(function(h){return l.parse({data:h})})}catch(h){return Promise.reject(h)}},r}(p),de=function(n){function r(t){var e;t===void 0&&(t={}),(e=n.call(this,t)||this).searchUrl=void 0,e.reverseUrl=void 0;var s="https://civildefense.fit.vutbr.cz";return e.searchUrl=t.searchUrl||s+"/search",e.reverseUrl=t.reverseUrl||s+"/reverse",e}c(r,n);var o=r.prototype;return o.endpoint=function(t){var e=t.query,s=t.type,i=typeof e=="string"?{q:e}:e;return i.format="json",this.getUrl(s===y.REVERSE?this.reverseUrl:this.searchUrl,i)},o.parse=function(t){return(Array.isArray(t.data)?t.data:[t.data]).map(function(e){return{x:Number(e.lon),y:Number(e.lat),label:e.display_name,bounds:[[parseFloat(e.boundingbox[0]),parseFloat(e.boundingbox[2])],[parseFloat(e.boundingbox[1]),parseFloat(e.boundingbox[3])]],raw:e}})},r}(p),fe=function(n){function r(){for(var t,e=arguments.length,s=new Array(e),i=0;i<e;i++)s[i]=arguments[i];return(t=n.call.apply(n,[this].concat(s))||this).searchUrl="https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/find",t}c(r,n);var o=r.prototype;return o.endpoint=function(t){var e=t.query,s=typeof e=="string"?{text:e}:e;return s.f="json",this.getUrl(this.searchUrl,s)},o.parse=function(t){return t.data.locations.map(function(e){return{x:e.feature.geometry.x,y:e.feature.geometry.y,label:e.name,bounds:[[e.extent.ymin,e.extent.xmin],[e.extent.ymax,e.extent.xmax]],raw:e}})},r}(p),me=function(n){function r(t){var e;t===void 0&&(t={}),(e=n.call(this,t)||this).searchUrl=void 0,e.reverseUrl=void 0;var s="https://api-adresse.data.gouv.fr";return e.searchUrl=t.searchUrl||s+"/search",e.reverseUrl=t.reverseUrl||s+"/reverse",e}c(r,n);var o=r.prototype;return o.endpoint=function(t){var e=t.query;return this.getUrl(t.type===y.REVERSE?this.reverseUrl:this.searchUrl,typeof e=="string"?{q:e}:e)},o.parse=function(t){return t.data.features.map(function(e){return{x:e.geometry.coordinates[0],y:e.geometry.coordinates[1],label:e.properties.label,bounds:null,raw:e}})},r}(p),ve=function(n){function r(t){var e;t===void 0&&(t={}),(e=n.call(this,t)||this).searchUrl=void 0,e.reverseUrl=void 0;var s="https://api.geoapify.com/v1/geocode";return e.searchUrl=t.searchUrl||s+"/search",e.reverseUrl=t.reverseUrl||s+"/reverse",e}c(r,n);var o=r.prototype;return o.endpoint=function(t){var e=t.query,s=t.type,i=typeof e=="string"?{text:e}:e;return i.format="json",this.getUrl(s===y.REVERSE?this.reverseUrl:this.searchUrl,i)},o.parse=function(t){return(Array.isArray(t.data.results)?t.data.results:[t.data.results]).map(function(e){return{x:Number(e.lon),y:Number(e.lat),label:e.formatted,bounds:[[parseFloat(e.bbox.lat1),parseFloat(e.bbox.lon1)],[parseFloat(e.bbox.lat2),parseFloat(e.bbox.lon2)]],raw:e}})},r}(p),ne=function(n){function r(t){var e;return t===void 0&&(t={}),(e=n.call(this,t)||this).host=void 0,e.host=t.host||"http://localhost:4000",e}c(r,n);var o=r.prototype;return o.endpoint=function(t){var e=t.query;return t.type===y.REVERSE?this.getUrl(this.host+"/v1/reverse",typeof e=="string"?{}:e):this.getUrl(this.host+"/v1/autocomplete",typeof e=="string"?{text:e}:e)},o.parse=function(t){return t.data.features.map(function(e){var s={x:e.geometry.coordinates[0],y:e.geometry.coordinates[1],label:e.properties.label,bounds:null,raw:e};return Array.isArray(e.bbox)&&e.bbox.length===4&&(s.bounds=[[e.bbox[1],e.bbox[0]],[e.bbox[3],e.bbox[2]]]),s})},r}(p),ge=function(n){function r(o){return o===void 0&&(o={}),o.host="https://api.geocode.earth",n.call(this,o)||this}return c(r,n),r}(ne);function oe(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var k,se=oe(function n(r,o){if(r===o)return!0;if(r&&o&&typeof r=="object"&&typeof o=="object"){if(r.constructor!==o.constructor)return!1;var t,e,s;if(Array.isArray(r)){if((t=r.length)!=o.length)return!1;for(e=t;e--!=0;)if(!n(r[e],o[e]))return!1;return!0}if(r.constructor===RegExp)return r.source===o.source&&r.flags===o.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===o.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===o.toString();if((t=(s=Object.keys(r)).length)!==Object.keys(o).length)return!1;for(e=t;e--!=0;)if(!Object.prototype.hasOwnProperty.call(o,s[e]))return!1;for(e=t;e--!=0;){var i=s[e];if(!n(r[i],o[i]))return!1}return!0}return r!=r&&o!=o});(function(n){n[n.INITIALIZED=0]="INITIALIZED",n[n.LOADING=1]="LOADING",n[n.SUCCESS=2]="SUCCESS",n[n.FAILURE=3]="FAILURE"})(k||(k={}));class w{constructor({apiKey:r,authReferrerPolicy:o,channel:t,client:e,id:s="__googleMapsScriptId",language:i,libraries:a=[],mapIds:l,nonce:u,region:h,retries:b=3,url:R="https://maps.googleapis.com/maps/api/js",version:U}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=r,this.authReferrerPolicy=o,this.channel=t,this.client=e,this.id=s||"__googleMapsScriptId",this.language=i,this.libraries=a,this.mapIds=l,this.nonce=u,this.region=h,this.retries=b,this.url=R,this.version=U,w.instance){if(!se(this.options,w.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(w.instance.options)}`);return w.instance}w.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?k.FAILURE:this.done?k.SUCCESS:this.loading?k.LOADING:k.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let r=this.url;return r+="?callback=__googleMapsCallback&loading=async",this.apiKey&&(r+=`&key=${this.apiKey}`),this.channel&&(r+=`&channel=${this.channel}`),this.client&&(r+=`&client=${this.client}`),this.libraries.length>0&&(r+=`&libraries=${this.libraries.join(",")}`),this.language&&(r+=`&language=${this.language}`),this.region&&(r+=`&region=${this.region}`),this.version&&(r+=`&v=${this.version}`),this.mapIds&&(r+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(r+=`&auth_referrer_policy=${this.authReferrerPolicy}`),r}deleteScript(){const r=document.getElementById(this.id);r&&r.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((r,o)=>{this.loadCallback(t=>{t?o(t.error):r(window.google)})})}importLibrary(r){return this.execute(),google.maps.importLibrary(r)}loadCallback(r){this.callbacks.push(r),this.execute()}setScript(){var r,o;if(document.getElementById(this.id))return void this.callback();const t={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};Object.keys(t).forEach(s=>!t[s]&&delete t[s]),!((o=(r=window==null?void 0:window.google)===null||r===void 0?void 0:r.maps)===null||o===void 0)&&o.importLibrary||(s=>{let i,a,l,u="The Google Maps JavaScript API",h="google",b="importLibrary",R="__ib__",U=document,S=window;S=S[h]||(S[h]={});const A=S.maps||(S.maps={}),Z=new Set,I=new URLSearchParams,H=()=>i||(i=new Promise((j,q)=>{return $=this,P=function*(){var L;for(l in yield a=U.createElement("script"),a.id=this.id,I.set("libraries",[...Z]+""),s)I.set(l.replace(/[A-Z]/g,F=>"_"+F[0].toLowerCase()),s[l]);I.set("callback",h+".maps."+R),a.src=this.url+"?"+I,A[R]=j,a.onerror=()=>i=q(Error(u+" could not load.")),a.nonce=this.nonce||((L=U.querySelector("script[nonce]"))===null||L===void 0?void 0:L.nonce)||"",U.head.append(a)},new((N=void 0)||(N=Promise))(function(L,F){function z(E){try{B(P.next(E))}catch(v){F(v)}}function Q(E){try{B(P.throw(E))}catch(v){F(v)}}function B(E){var v;E.done?L(E.value):(v=E.value,v instanceof N?v:new N(function(W){W(v)})).then(z,Q)}B((P=P.apply($,[])).next())});var $,N,P}));A[b]?console.warn(u+" only loads once. Ignoring:",s):A[b]=(j,...q)=>Z.add(j)&&H().then(()=>A[b](j,...q))})(t);const e=this.libraries.map(s=>this.importLibrary(s));e.length||e.push(this.importLibrary("core")),Promise.all(e).then(()=>this.callback(),s=>{const i=new ErrorEvent("error",{error:s});this.loadErrorCallback(i)})}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(r){if(this.errors.push(r),this.errors.length<=this.retries){const o=this.errors.length*Math.pow(2,this.errors.length);console.error(`Failed to load Google Maps script, retrying in ${o} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},o)}else this.onerrorEvent=r,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(r=>{r(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version)return console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),void this.callback();this.loading||(this.loading=!0,this.setScript())}}}var ye=function(n){function r(t){var e;return(e=n.call(this,t)||this).loader=null,e.geocoder=null,typeof window<"u"&&(e.loader=new w(t).load().then(function(s){var i=new s.maps.Geocoder;return e.geocoder=i,i})),e}c(r,n);var o=r.prototype;return o.endpoint=function(t){throw new Error("Method not implemented.")},o.parse=function(t){return t.data.results.map(function(e){var s=e.geometry.location.toJSON(),i=s.lat,a=s.lng,l=e.geometry.viewport.toJSON();return{x:a,y:i,label:e.formatted_address,bounds:[[l.south,l.west],[l.north,l.east]],raw:e}})},o.search=function(t){try{var e=function(a){if(!a)throw new Error("GoogleMaps GeoCoder is not loaded. Are you trying to run this server side?");return Promise.resolve(a.geocode({address:t.query},function(l){return{results:l}}).catch(function(l){return l.code!=="ZERO_RESULTS"&&console.error(l.code+": "+l.message),{results:[]}})).then(function(l){return s.parse({data:l})})},s=this,i=s.geocoder;return Promise.resolve(i?e(i):Promise.resolve(s.loader).then(e))}catch(a){return Promise.reject(a)}},r}(p),be=function(n){function r(){for(var t,e=arguments.length,s=new Array(e),i=0;i<e;i++)s[i]=arguments[i];return(t=n.call.apply(n,[this].concat(s))||this).searchUrl="https://maps.googleapis.com/maps/api/geocode/json",t}c(r,n);var o=r.prototype;return o.endpoint=function(t){var e=t.query;return this.getUrl(this.searchUrl,typeof e=="string"?{address:e}:e)},o.parse=function(t){return t.data.results.map(function(e){return{x:e.geometry.location.lng,y:e.geometry.location.lat,label:e.formatted_address,bounds:[[e.geometry.viewport.southwest.lat,e.geometry.viewport.southwest.lng],[e.geometry.viewport.northeast.lat,e.geometry.viewport.northeast.lng]],raw:e}})},r}(p),Ee=function(n){function r(){for(var t,e=arguments.length,s=new Array(e),i=0;i<e;i++)s[i]=arguments[i];return(t=n.call.apply(n,[this].concat(s))||this).searchUrl="https://geocode.search.hereapi.com/v1/geocode",t}c(r,n);var o=r.prototype;return o.endpoint=function(t){var e=t.query;return this.getUrl(this.searchUrl,typeof e=="string"?{q:e}:e)},o.parse=function(t){return t.data.items.filter(function(e){return e.position!==void 0}).map(function(e){return{x:e.position.lng,y:e.position.lat,label:e.address.label,bounds:null,raw:e}})},r}(p),ie=function(n){function r(t){var e;t===void 0&&(t={}),(e=n.call(this,t)||this).searchUrl=void 0,e.reverseUrl=void 0;var s="https://nominatim.openstreetmap.org";return e.searchUrl=t.searchUrl||s+"/search",e.reverseUrl=t.reverseUrl||s+"/reverse",e}c(r,n);var o=r.prototype;return o.endpoint=function(t){var e=t.query,s=t.type,i=typeof e=="string"?{q:e}:e;return i.format="json",this.getUrl(s===y.REVERSE?this.reverseUrl:this.searchUrl,i)},o.parse=function(t){return(Array.isArray(t.data)?t.data:[t.data]).map(function(e){return{x:Number(e.lon),y:Number(e.lat),label:e.display_name,bounds:[[parseFloat(e.boundingbox[0]),parseFloat(e.boundingbox[2])],[parseFloat(e.boundingbox[1]),parseFloat(e.boundingbox[3])]],raw:e}})},r}(p),we=function(n){function r(o){return n.call(this,g({},o,{searchUrl:"https://locationiq.org/v1/search.php",reverseUrl:"https://locationiq.org/v1/reverse.php"}))||this}return c(r,n),r.prototype.parse=function(o){return o.data.error?[]:n.prototype.parse.call(this,o)},r}(ie),xe=function(n){function r(t){var e;return t===void 0&&(t={}),(e=n.call(this,t)||this).searchUrl=void 0,e.searchUrl=t.searchUrl||"https://a.tiles.mapbox.com/v4/geocode/mapbox.places/",e}c(r,n);var o=r.prototype;return o.endpoint=function(t){return this.getUrl(""+this.searchUrl+t.query+".json")},o.parse=function(t){return(Array.isArray(t.data.features)?t.data.features:[]).map(function(e){var s=null;return e.bbox&&(s=[[parseFloat(e.bbox[1]),parseFloat(e.bbox[0])],[parseFloat(e.bbox[3]),parseFloat(e.bbox[2])]]),{x:Number(e.center[0]),y:Number(e.center[1]),label:e.place_name?e.place_name:e.text,bounds:s,raw:e}})},r}(p),ke=function(n){function r(){for(var t,e=arguments.length,s=new Array(e),i=0;i<e;i++)s[i]=arguments[i];return(t=n.call.apply(n,[this].concat(s))||this).searchUrl="https://api.opencagedata.com/geocode/v1/json",t}c(r,n);var o=r.prototype;return o.endpoint=function(t){var e=t.query,s=typeof e=="string"?{q:e}:e;return s.format="json",this.getUrl(this.searchUrl,s)},o.parse=function(t){return t.data.results.map(function(e){var s=null;return e.bounds&&(s=[[e.bounds.southwest.lat,e.bounds.southwest.lng],[e.bounds.northeast.lat,e.bounds.northeast.lng]]),{x:e.geometry.lng,y:e.geometry.lat,label:e.formatted,bounds:s,raw:e}})},o.search=function(t){try{return Promise.resolve(t.query.length<2?[]:n.prototype.search.call(this,t))}catch(e){return Promise.reject(e)}},r}(p);export{he as AMapProvider,pe as BingProvider,de as CivilDefenseMapProvider,fe as EsriProvider,me as GeoApiFrProvider,ue as GeoSearchControl,ve as GeoapifyProvider,ge as GeocodeEarthProvider,ye as GoogleProvider,Ee as HereProvider,p as JsonProvider,be as LegacyGoogleProvider,we as LocationIQProvider,xe as MapBoxProvider,ke as OpenCageProvider,ie as OpenStreetMapProvider,ne as PeliasProvider,ue as SearchControl,ee as SearchElement};
@@ -1 +0,0 @@
1
- import{R as a}from"./iobroker_admin__loadShare__react__loadShare__-Bis6NHgw.js";var p={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},f=a.createContext&&a.createContext(p),O=["attr","size","title"];function g(e,t){if(e==null)return{};var r=y(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function y(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?m(Object(r),!0).forEach(function(n){d(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function d(e,t,r){return t=j(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j(e){var t=P(e,"string");return typeof t=="symbol"?t:t+""}function P(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function b(e){return e&&e.map((t,r)=>a.createElement(t.tag,u({key:r},t.attr),b(t.child)))}function E(e){return t=>a.createElement(h,c({attr:u({},e.attr)},t),b(e.child))}function h(e){var t=r=>{var{attr:n,size:i,title:o}=e,v=g(e,O),s=i||r.size||"1em",l;return r.className&&(l=r.className),e.className&&(l=(l?l+" ":"")+e.className),a.createElement("svg",c({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,v,{className:l,style:u(u({color:e.color||r.color},r.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),o&&a.createElement("title",null,o),e.children)};return f!==void 0?a.createElement(f.Consumer,null,r=>t(r)):t(p)}export{E as G};
@@ -1,10 +0,0 @@
1
- import{a as Be}from"./ace-BG5WYul1.js";import{i as it}from"./iobroker_admin__loadShare__prop_mf_2_types__loadShare__-BnsS7SOQ.js";import{i as ot}from"./iobroker_admin__loadShare__react__loadShare__-Bis6NHgw.js";import{c as q}from"./_commonjsHelpers-D6-XlEtG.js";function vn(c,r){for(var n=0;n<r.length;n++){const a=r[n];if(typeof a!="string"&&!Array.isArray(a)){for(const h in a)if(h!=="default"&&!(h in c)){const e=Object.getOwnPropertyDescriptor(a,h);e&&Object.defineProperty(c,h,e.get?e:{enumerable:!0,get:()=>a[h]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var ge={},de={},ke={exports:{}};ke.exports;(function(c,r){var n=200,a="__lodash_hash_undefined__",h=1,e=2,t=9007199254740991,s="[object Arguments]",f="[object Array]",u="[object AsyncFunction]",l="[object Boolean]",o="[object Date]",p="[object Error]",d="[object Function]",_="[object GeneratorFunction]",b="[object Map]",m="[object Number]",M="[object Null]",S="[object Object]",C="[object Promise]",T="[object Proxy]",R="[object RegExp]",A="[object Set]",L="[object String]",$="[object Symbol]",D="[object Undefined]",N="[object WeakMap]",I="[object ArrayBuffer]",y="[object DataView]",H="[object Float32Array]",U="[object Float64Array]",Te="[object Int8Array]",Ge="[object Int16Array]",Ke="[object Int32Array]",Se="[object Uint8Array]",se="[object Uint8ClampedArray]",be="[object Uint16Array]",er="[object Uint32Array]",tr=/[\\^$.*+?()[\]{}|]/g,rr=/^\[object .+?Constructor\]$/,nr=/^(?:0|[1-9]\d*)$/,F={};F[H]=F[U]=F[Te]=F[Ge]=F[Ke]=F[Se]=F[se]=F[be]=F[er]=!0,F[s]=F[f]=F[I]=F[l]=F[y]=F[o]=F[p]=F[d]=F[b]=F[m]=F[S]=F[R]=F[A]=F[L]=F[N]=!1;var ft=typeof q=="object"&&q&&q.Object===Object&&q,ir=typeof self=="object"&&self&&self.Object===Object&&self,x=ft||ir||Function("return this")(),ut=r&&!r.nodeType&&r,ct=ut&&!0&&c&&!c.nodeType&&c,pt=ct&&ct.exports===ut,Ve=pt&&ft.process,gt=function(){try{return Ve&&Ve.binding&&Ve.binding("util")}catch{}}(),dt=gt&&gt.isTypedArray;function or(i,g){for(var v=-1,w=i==null?0:i.length,j=0,P=[];++v<w;){var k=i[v];g(k,v,i)&&(P[j++]=k)}return P}function ar(i,g){for(var v=-1,w=g.length,j=i.length;++v<w;)i[j+v]=g[v];return i}function sr(i,g){for(var v=-1,w=i==null?0:i.length;++v<w;)if(g(i[v],v,i))return!0;return!1}function lr(i,g){for(var v=-1,w=Array(i);++v<i;)w[v]=g(v);return w}function hr(i){return function(g){return i(g)}}function fr(i,g){return i.has(g)}function ur(i,g){return i==null?void 0:i[g]}function cr(i){var g=-1,v=Array(i.size);return i.forEach(function(w,j){v[++g]=[j,w]}),v}function pr(i,g){return function(v){return i(g(v))}}function gr(i){var g=-1,v=Array(i.size);return i.forEach(function(w){v[++g]=w}),v}var dr=Array.prototype,vr=Function.prototype,De=Object.prototype,We=x["__core-js_shared__"],vt=vr.toString,Y=De.hasOwnProperty,_t=function(){var i=/[^.]+$/.exec(We&&We.keys&&We.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),bt=De.toString,_r=RegExp("^"+vt.call(Y).replace(tr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mt=pt?x.Buffer:void 0,Le=x.Symbol,yt=x.Uint8Array,wt=De.propertyIsEnumerable,br=dr.splice,le=Le?Le.toStringTag:void 0,St=Object.getOwnPropertySymbols,mr=mt?mt.isBuffer:void 0,yr=pr(Object.keys,Object),Je=me(x,"DataView"),Me=me(x,"Map"),Qe=me(x,"Promise"),Xe=me(x,"Set"),Ze=me(x,"WeakMap"),Ee=me(Object,"create"),wr=ue(Je),Sr=ue(Me),Mr=ue(Qe),Er=ue(Xe),Or=ue(Ze),Mt=Le?Le.prototype:void 0,Ye=Mt?Mt.valueOf:void 0;function he(i){var g=-1,v=i==null?0:i.length;for(this.clear();++g<v;){var w=i[g];this.set(w[0],w[1])}}function Cr(){this.__data__=Ee?Ee(null):{},this.size=0}function Pr(i){var g=this.has(i)&&delete this.__data__[i];return this.size-=g?1:0,g}function Ar(i){var g=this.__data__;if(Ee){var v=g[i];return v===a?void 0:v}return Y.call(g,i)?g[i]:void 0}function Tr(i){var g=this.__data__;return Ee?g[i]!==void 0:Y.call(g,i)}function Dr(i,g){var v=this.__data__;return this.size+=this.has(i)?0:1,v[i]=Ee&&g===void 0?a:g,this}he.prototype.clear=Cr,he.prototype.delete=Pr,he.prototype.get=Ar,he.prototype.has=Tr,he.prototype.set=Dr;function ee(i){var g=-1,v=i==null?0:i.length;for(this.clear();++g<v;){var w=i[g];this.set(w[0],w[1])}}function Lr(){this.__data__=[],this.size=0}function $r(i){var g=this.__data__,v=Ie(g,i);if(v<0)return!1;var w=g.length-1;return v==w?g.pop():br.call(g,v,1),--this.size,!0}function Ir(i){var g=this.__data__,v=Ie(g,i);return v<0?void 0:g[v][1]}function zr(i){return Ie(this.__data__,i)>-1}function Rr(i,g){var v=this.__data__,w=Ie(v,i);return w<0?(++this.size,v.push([i,g])):v[w][1]=g,this}ee.prototype.clear=Lr,ee.prototype.delete=$r,ee.prototype.get=Ir,ee.prototype.has=zr,ee.prototype.set=Rr;function fe(i){var g=-1,v=i==null?0:i.length;for(this.clear();++g<v;){var w=i[g];this.set(w[0],w[1])}}function Nr(){this.size=0,this.__data__={hash:new he,map:new(Me||ee),string:new he}}function Fr(i){var g=ze(this,i).delete(i);return this.size-=g?1:0,g}function jr(i){return ze(this,i).get(i)}function Br(i){return ze(this,i).has(i)}function kr(i,g){var v=ze(this,i),w=v.size;return v.set(i,g),this.size+=v.size==w?0:1,this}fe.prototype.clear=Nr,fe.prototype.delete=Fr,fe.prototype.get=jr,fe.prototype.has=Br,fe.prototype.set=kr;function $e(i){var g=-1,v=i==null?0:i.length;for(this.__data__=new fe;++g<v;)this.add(i[g])}function Hr(i){return this.__data__.set(i,a),this}function Ur(i){return this.__data__.has(i)}$e.prototype.add=$e.prototype.push=Hr,$e.prototype.has=Ur;function ne(i){var g=this.__data__=new ee(i);this.size=g.size}function Gr(){this.__data__=new ee,this.size=0}function Kr(i){var g=this.__data__,v=g.delete(i);return this.size=g.size,v}function Vr(i){return this.__data__.get(i)}function Wr(i){return this.__data__.has(i)}function Jr(i,g){var v=this.__data__;if(v instanceof ee){var w=v.__data__;if(!Me||w.length<n-1)return w.push([i,g]),this.size=++v.size,this;v=this.__data__=new fe(w)}return v.set(i,g),this.size=v.size,this}ne.prototype.clear=Gr,ne.prototype.delete=Kr,ne.prototype.get=Vr,ne.prototype.has=Wr,ne.prototype.set=Jr;function Qr(i,g){var v=Re(i),w=!v&&fn(i),j=!v&&!w&&qe(i),P=!v&&!w&&!j&&$t(i),k=v||w||j||P,G=k?lr(i.length,String):[],K=G.length;for(var B in i)Y.call(i,B)&&!(k&&(B=="length"||j&&(B=="offset"||B=="parent")||P&&(B=="buffer"||B=="byteLength"||B=="byteOffset")||on(B,K)))&&G.push(B);return G}function Ie(i,g){for(var v=i.length;v--;)if(At(i[v][0],g))return v;return-1}function Xr(i,g,v){var w=g(i);return Re(i)?w:ar(w,v(i))}function Oe(i){return i==null?i===void 0?D:M:le&&le in Object(i)?rn(i):hn(i)}function Et(i){return Ce(i)&&Oe(i)==s}function Ot(i,g,v,w,j){return i===g?!0:i==null||g==null||!Ce(i)&&!Ce(g)?i!==i&&g!==g:Zr(i,g,v,w,Ot,j)}function Zr(i,g,v,w,j,P){var k=Re(i),G=Re(g),K=k?f:ie(i),B=G?f:ie(g);K=K==s?S:K,B=B==s?S:B;var W=K==S,X=B==S,V=K==B;if(V&&qe(i)){if(!qe(g))return!1;k=!0,W=!1}if(V&&!W)return P||(P=new ne),k||$t(i)?Ct(i,g,v,w,j,P):en(i,g,K,v,w,j,P);if(!(v&h)){var J=W&&Y.call(i,"__wrapped__"),Q=X&&Y.call(g,"__wrapped__");if(J||Q){var oe=J?i.value():i,te=Q?g.value():g;return P||(P=new ne),j(oe,te,v,w,P)}}return V?(P||(P=new ne),tn(i,g,v,w,j,P)):!1}function Yr(i){if(!Lt(i)||sn(i))return!1;var g=Tt(i)?_r:rr;return g.test(ue(i))}function qr(i){return Ce(i)&&Dt(i.length)&&!!F[Oe(i)]}function xr(i){if(!ln(i))return yr(i);var g=[];for(var v in Object(i))Y.call(i,v)&&v!="constructor"&&g.push(v);return g}function Ct(i,g,v,w,j,P){var k=v&h,G=i.length,K=g.length;if(G!=K&&!(k&&K>G))return!1;var B=P.get(i);if(B&&P.get(g))return B==g;var W=-1,X=!0,V=v&e?new $e:void 0;for(P.set(i,g),P.set(g,i);++W<G;){var J=i[W],Q=g[W];if(w)var oe=k?w(Q,J,W,g,i,P):w(J,Q,W,i,g,P);if(oe!==void 0){if(oe)continue;X=!1;break}if(V){if(!sr(g,function(te,ce){if(!fr(V,ce)&&(J===te||j(J,te,v,w,P)))return V.push(ce)})){X=!1;break}}else if(!(J===Q||j(J,Q,v,w,P))){X=!1;break}}return P.delete(i),P.delete(g),X}function en(i,g,v,w,j,P,k){switch(v){case y:if(i.byteLength!=g.byteLength||i.byteOffset!=g.byteOffset)return!1;i=i.buffer,g=g.buffer;case I:return!(i.byteLength!=g.byteLength||!P(new yt(i),new yt(g)));case l:case o:case m:return At(+i,+g);case p:return i.name==g.name&&i.message==g.message;case R:case L:return i==g+"";case b:var G=cr;case A:var K=w&h;if(G||(G=gr),i.size!=g.size&&!K)return!1;var B=k.get(i);if(B)return B==g;w|=e,k.set(i,g);var W=Ct(G(i),G(g),w,j,P,k);return k.delete(i),W;case $:if(Ye)return Ye.call(i)==Ye.call(g)}return!1}function tn(i,g,v,w,j,P){var k=v&h,G=Pt(i),K=G.length,B=Pt(g),W=B.length;if(K!=W&&!k)return!1;for(var X=K;X--;){var V=G[X];if(!(k?V in g:Y.call(g,V)))return!1}var J=P.get(i);if(J&&P.get(g))return J==g;var Q=!0;P.set(i,g),P.set(g,i);for(var oe=k;++X<K;){V=G[X];var te=i[V],ce=g[V];if(w)var It=k?w(ce,te,V,g,i,P):w(te,ce,V,i,g,P);if(!(It===void 0?te===ce||j(te,ce,v,w,P):It)){Q=!1;break}oe||(oe=V=="constructor")}if(Q&&!oe){var Ne=i.constructor,Fe=g.constructor;Ne!=Fe&&"constructor"in i&&"constructor"in g&&!(typeof Ne=="function"&&Ne instanceof Ne&&typeof Fe=="function"&&Fe instanceof Fe)&&(Q=!1)}return P.delete(i),P.delete(g),Q}function Pt(i){return Xr(i,pn,nn)}function ze(i,g){var v=i.__data__;return an(g)?v[typeof g=="string"?"string":"hash"]:v.map}function me(i,g){var v=ur(i,g);return Yr(v)?v:void 0}function rn(i){var g=Y.call(i,le),v=i[le];try{i[le]=void 0;var w=!0}catch{}var j=bt.call(i);return w&&(g?i[le]=v:delete i[le]),j}var nn=St?function(i){return i==null?[]:(i=Object(i),or(St(i),function(g){return wt.call(i,g)}))}:gn,ie=Oe;(Je&&ie(new Je(new ArrayBuffer(1)))!=y||Me&&ie(new Me)!=b||Qe&&ie(Qe.resolve())!=C||Xe&&ie(new Xe)!=A||Ze&&ie(new Ze)!=N)&&(ie=function(i){var g=Oe(i),v=g==S?i.constructor:void 0,w=v?ue(v):"";if(w)switch(w){case wr:return y;case Sr:return b;case Mr:return C;case Er:return A;case Or:return N}return g});function on(i,g){return g=g??t,!!g&&(typeof i=="number"||nr.test(i))&&i>-1&&i%1==0&&i<g}function an(i){var g=typeof i;return g=="string"||g=="number"||g=="symbol"||g=="boolean"?i!=="__proto__":i===null}function sn(i){return!!_t&&_t in i}function ln(i){var g=i&&i.constructor,v=typeof g=="function"&&g.prototype||De;return i===v}function hn(i){return bt.call(i)}function ue(i){if(i!=null){try{return vt.call(i)}catch{}try{return i+""}catch{}}return""}function At(i,g){return i===g||i!==i&&g!==g}var fn=Et(function(){return arguments}())?Et:function(i){return Ce(i)&&Y.call(i,"callee")&&!wt.call(i,"callee")},Re=Array.isArray;function un(i){return i!=null&&Dt(i.length)&&!Tt(i)}var qe=mr||dn;function cn(i,g){return Ot(i,g)}function Tt(i){if(!Lt(i))return!1;var g=Oe(i);return g==d||g==_||g==u||g==T}function Dt(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=t}function Lt(i){var g=typeof i;return i!=null&&(g=="object"||g=="function")}function Ce(i){return i!=null&&typeof i=="object"}var $t=dt?hr(dt):qr;function pn(i){return un(i)?Qr(i):xr(i)}function gn(){return[]}function dn(){return!1}c.exports=cn})(ke,ke.exports);var Ut=ke.exports,Z={};Object.defineProperty(Z,"__esModule",{value:!0});Z.getAceInstance=Z.debounce=Z.editorEvents=Z.editorOptions=void 0;var _n=["minLines","maxLines","readOnly","highlightActiveLine","tabSize","enableBasicAutocompletion","enableLiveAutocompletion","enableSnippets"];Z.editorOptions=_n;var bn=["onChange","onFocus","onInput","onBlur","onCopy","onPaste","onSelectionChange","onCursorChange","onScroll","handleOptions","updateRef"];Z.editorEvents=bn;var mn=function(){var c;return typeof window>"u"?(q.window={},c=Be,delete q.window):window.ace?(c=window.ace,c.acequire=window.ace.require||window.ace.acequire):c=Be,c};Z.getAceInstance=mn;var yn=function(c,r){var n=null;return function(){var a=this,h=arguments;clearTimeout(n),n=setTimeout(function(){c.apply(a,h)},r)}};Z.debounce=yn;var wn=de&&de.__extends||function(){var c=function(r,n){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,h){a.__proto__=h}||function(a,h){for(var e in h)Object.prototype.hasOwnProperty.call(h,e)&&(a[e]=h[e])},c(r,n)};return function(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");c(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),rt=de&&de.__assign||function(){return rt=Object.assign||function(c){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var h in r)Object.prototype.hasOwnProperty.call(r,h)&&(c[h]=r[h])}return c},rt.apply(this,arguments)};Object.defineProperty(de,"__esModule",{value:!0});var Sn=Be,E=it,zt=ot,je=Ut,ye=Z,Rt=(0,ye.getAceInstance)(),Mn=function(c){wn(r,c);function r(n){var a=c.call(this,n)||this;return ye.editorEvents.forEach(function(h){a[h]=a[h].bind(a)}),a.debounce=ye.debounce,a}return r.prototype.isInShadow=function(n){for(var a=n&&n.parentNode;a;){if(a.toString()==="[object ShadowRoot]")return!0;a=a.parentNode}return!1},r.prototype.componentDidMount=function(){var n=this,a=this.props,h=a.className,e=a.onBeforeLoad,t=a.onValidate,s=a.mode,f=a.focus,u=a.theme,l=a.fontSize,o=a.lineHeight,p=a.value,d=a.defaultValue,_=a.showGutter,b=a.wrapEnabled,m=a.showPrintMargin,M=a.scrollMargin,S=M===void 0?[0,0,0,0]:M,C=a.keyboardHandler,T=a.onLoad,R=a.commands,A=a.annotations,L=a.markers,$=a.placeholder;this.editor=Rt.edit(this.refEditor),e&&e(Rt);for(var D=Object.keys(this.props.editorProps),N=0;N<D.length;N++)this.editor[D[N]]=this.props.editorProps[D[N]];this.props.debounceChangePeriod&&(this.onChange=this.debounce(this.onChange,this.props.debounceChangePeriod)),this.editor.renderer.setScrollMargin(S[0],S[1],S[2],S[3]),this.isInShadow(this.refEditor)&&this.editor.renderer.attachToShadowRoot(),this.editor.getSession().setMode(typeof s=="string"?"ace/mode/".concat(s):s),u&&u!==""&&this.editor.setTheme("ace/theme/".concat(u)),this.editor.setFontSize(typeof l=="number"?"".concat(l,"px"):l),o&&(this.editor.container.style.lineHeight=typeof o=="number"?"".concat(o,"px"):"".concat(o),this.editor.renderer.updateFontSize()),this.editor.getSession().setValue(d||p||""),this.props.navigateToFileEnd&&this.editor.navigateFileEnd(),this.editor.renderer.setShowGutter(_),this.editor.getSession().setUseWrapMode(b),this.editor.setShowPrintMargin(m),this.editor.on("focus",this.onFocus),this.editor.on("blur",this.onBlur),this.editor.on("copy",this.onCopy),this.editor.on("paste",this.onPaste),this.editor.on("change",this.onChange),this.editor.on("input",this.onInput),$&&this.updatePlaceholder(),this.editor.getSession().selection.on("changeSelection",this.onSelectionChange),this.editor.getSession().selection.on("changeCursor",this.onCursorChange),t&&this.editor.getSession().on("changeAnnotation",function(){var y=n.editor.getSession().getAnnotations();n.props.onValidate(y)}),this.editor.session.on("changeScrollTop",this.onScroll),this.editor.getSession().setAnnotations(A||[]),L&&L.length>0&&this.handleMarkers(L);var I=this.editor.$options;ye.editorOptions.forEach(function(y){I.hasOwnProperty(y)?n.editor.setOption(y,n.props[y]):n.props[y]&&console.warn("ReactAce: editor option ".concat(y," was activated but not found. Did you need to import a related tool or did you possibly mispell the option?"))}),this.handleOptions(this.props),Array.isArray(R)&&R.forEach(function(y){typeof y.exec=="string"?n.editor.commands.bindKey(y.bindKey,y.exec):n.editor.commands.addCommand(y)}),C&&this.editor.setKeyboardHandler("ace/keyboard/"+C),h&&(this.refEditor.className+=" "+h),T&&T(this.editor),this.editor.resize(),f&&this.editor.focus()},r.prototype.componentDidUpdate=function(n){for(var a=n,h=this.props,e=0;e<ye.editorOptions.length;e++){var t=ye.editorOptions[e];h[t]!==a[t]&&this.editor.setOption(t,h[t])}if(h.className!==a.className){var s=this.refEditor.className,f=s.trim().split(" "),u=a.className.trim().split(" ");u.forEach(function(p){var d=f.indexOf(p);f.splice(d,1)}),this.refEditor.className=" "+h.className+" "+f.join(" ")}var l=this.editor&&h.value!=null&&this.editor.getValue()!==h.value;if(l){this.silent=!0;var o=this.editor.session.selection.toJSON();this.editor.setValue(h.value,h.cursorStart),this.editor.session.selection.fromJSON(o),this.silent=!1}h.placeholder!==a.placeholder&&this.updatePlaceholder(),h.mode!==a.mode&&this.editor.getSession().setMode(typeof h.mode=="string"?"ace/mode/".concat(h.mode):h.mode),h.theme!==a.theme&&this.editor.setTheme("ace/theme/"+h.theme),h.keyboardHandler!==a.keyboardHandler&&(h.keyboardHandler?this.editor.setKeyboardHandler("ace/keyboard/"+h.keyboardHandler):this.editor.setKeyboardHandler(null)),h.fontSize!==a.fontSize&&this.editor.setFontSize(typeof h.fontSize=="number"?"".concat(h.fontSize,"px"):h.fontSize),h.lineHeight!==a.lineHeight&&(this.editor.container.style.lineHeight=typeof h.lineHeight=="number"?"".concat(h.lineHeight,"px"):h.lineHeight,this.editor.renderer.updateFontSize()),h.wrapEnabled!==a.wrapEnabled&&this.editor.getSession().setUseWrapMode(h.wrapEnabled),h.showPrintMargin!==a.showPrintMargin&&this.editor.setShowPrintMargin(h.showPrintMargin),h.showGutter!==a.showGutter&&this.editor.renderer.setShowGutter(h.showGutter),je(h.setOptions,a.setOptions)||this.handleOptions(h),(l||!je(h.annotations,a.annotations))&&this.editor.getSession().setAnnotations(h.annotations||[]),!je(h.markers,a.markers)&&Array.isArray(h.markers)&&this.handleMarkers(h.markers),je(h.scrollMargin,a.scrollMargin)||this.handleScrollMargins(h.scrollMargin),(n.height!==this.props.height||n.width!==this.props.width)&&this.editor.resize(),this.props.focus&&!n.focus&&this.editor.focus()},r.prototype.handleScrollMargins=function(n){n===void 0&&(n=[0,0,0,0]),this.editor.renderer.setScrollMargin(n[0],n[1],n[2],n[3])},r.prototype.componentWillUnmount=function(){this.editor&&(this.editor.destroy(),this.editor=null)},r.prototype.onChange=function(n){if(this.editor&&this.props.onChange&&!this.silent){var a=this.editor.getValue();this.props.onChange(a,n)}},r.prototype.onSelectionChange=function(n){if(this.props.onSelectionChange){var a=this.editor.getSelection();this.props.onSelectionChange(a,n)}},r.prototype.onCursorChange=function(n){if(this.props.onCursorChange){var a=this.editor.getSelection();this.props.onCursorChange(a,n)}},r.prototype.onInput=function(n){this.props.onInput&&this.props.onInput(n),this.props.placeholder&&this.updatePlaceholder()},r.prototype.onFocus=function(n){this.props.onFocus&&this.props.onFocus(n,this.editor)},r.prototype.onBlur=function(n){this.props.onBlur&&this.props.onBlur(n,this.editor)},r.prototype.onCopy=function(n){var a=n.text;this.props.onCopy&&this.props.onCopy(a)},r.prototype.onPaste=function(n){var a=n.text;this.props.onPaste&&this.props.onPaste(a)},r.prototype.onScroll=function(){this.props.onScroll&&this.props.onScroll(this.editor)},r.prototype.handleOptions=function(n){for(var a=Object.keys(n.setOptions),h=0;h<a.length;h++)this.editor.setOption(a[h],n.setOptions[a[h]])},r.prototype.handleMarkers=function(n){var a=this,h=this.editor.getSession().getMarkers(!0);for(var e in h)h.hasOwnProperty(e)&&this.editor.getSession().removeMarker(h[e].id);h=this.editor.getSession().getMarkers(!1);for(var e in h)h.hasOwnProperty(e)&&h[e].clazz!=="ace_active-line"&&h[e].clazz!=="ace_selected-word"&&this.editor.getSession().removeMarker(h[e].id);n.forEach(function(t){var s=t.startRow,f=t.startCol,u=t.endRow,l=t.endCol,o=t.className,p=t.type,d=t.inFront,_=d===void 0?!1:d,b=new Sn.Range(s,f,u,l);a.editor.getSession().addMarker(b,o,p,_)})},r.prototype.updatePlaceholder=function(){var n=this.editor,a=this.props.placeholder,h=!n.session.getValue().length,e=n.renderer.placeholderNode;!h&&e?(n.renderer.scroller.removeChild(n.renderer.placeholderNode),n.renderer.placeholderNode=null):h&&!e?(e=n.renderer.placeholderNode=document.createElement("div"),e.textContent=a||"",e.className="ace_comment ace_placeholder",e.style.padding="0 9px",e.style.position="absolute",e.style.zIndex="3",n.renderer.scroller.appendChild(e)):h&&e&&(e.textContent=a)},r.prototype.updateRef=function(n){this.refEditor=n},r.prototype.render=function(){var n=this.props,a=n.name,h=n.width,e=n.height,t=n.style,s=rt({width:h,height:e},t);return zt.createElement("div",{ref:this.updateRef,id:a,style:s})},r.propTypes={mode:E.oneOfType([E.string,E.object]),focus:E.bool,theme:E.string,name:E.string,className:E.string,height:E.string,width:E.string,fontSize:E.oneOfType([E.number,E.string]),lineHeight:E.oneOfType([E.number,E.string]),showGutter:E.bool,onChange:E.func,onCopy:E.func,onPaste:E.func,onFocus:E.func,onInput:E.func,onBlur:E.func,onScroll:E.func,value:E.string,defaultValue:E.string,onLoad:E.func,onSelectionChange:E.func,onCursorChange:E.func,onBeforeLoad:E.func,onValidate:E.func,minLines:E.number,maxLines:E.number,readOnly:E.bool,highlightActiveLine:E.bool,tabSize:E.number,showPrintMargin:E.bool,cursorStart:E.number,debounceChangePeriod:E.number,editorProps:E.object,setOptions:E.object,style:E.object,scrollMargin:E.array,annotations:E.array,markers:E.array,keyboardHandler:E.string,wrapEnabled:E.bool,enableSnippets:E.bool,enableBasicAutocompletion:E.oneOfType([E.bool,E.array]),enableLiveAutocompletion:E.oneOfType([E.bool,E.array]),navigateToFileEnd:E.bool,commands:E.array,placeholder:E.string},r.defaultProps={name:"ace-editor",focus:!1,mode:"",theme:"",height:"500px",width:"500px",fontSize:12,enableSnippets:!1,showGutter:!0,onChange:null,onPaste:null,onLoad:null,onScroll:null,minLines:null,maxLines:null,readOnly:!1,highlightActiveLine:!0,showPrintMargin:!0,tabSize:4,cursorStart:1,editorProps:{},style:{},scrollMargin:[0,0,0,0],setOptions:{},wrapEnabled:!1,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,placeholder:null,navigateToFileEnd:!0},r}(zt.Component);de.default=Mn;var Pe={},ae={},Gt={exports:{}};(function(c,r){ace.define("ace/split",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/editor","ace/virtual_renderer","ace/edit_session"],function(n,a,h){var e=n("./lib/oop");n("./lib/lang");var t=n("./lib/event_emitter").EventEmitter,s=n("./editor").Editor,f=n("./virtual_renderer").VirtualRenderer,u=n("./edit_session").EditSession,l;l=function(o,p,d){this.BELOW=1,this.BESIDE=0,this.$container=o,this.$theme=p,this.$splits=0,this.$editorCSS="",this.$editors=[],this.$orientation=this.BESIDE,this.setSplits(d||1),this.$cEditor=this.$editors[0],this.on("focus",function(_){this.$cEditor=_}.bind(this))},function(){e.implement(this,t),this.$createEditor=function(){var o=document.createElement("div");o.className=this.$editorCSS,o.style.cssText="position: absolute; top:0px; bottom:0px",this.$container.appendChild(o);var p=new s(new f(o,this.$theme));return p.on("focus",function(){this._emit("focus",p)}.bind(this)),this.$editors.push(p),p.setFontSize(this.$fontSize),p},this.setSplits=function(o){var p;if(o<1)throw"The number of splits have to be > 0!";if(o!=this.$splits){if(o>this.$splits){for(;this.$splits<this.$editors.length&&this.$splits<o;)p=this.$editors[this.$splits],this.$container.appendChild(p.container),p.setFontSize(this.$fontSize),this.$splits++;for(;this.$splits<o;)this.$createEditor(),this.$splits++}else for(;this.$splits>o;)p=this.$editors[this.$splits-1],this.$container.removeChild(p.container),this.$splits--;this.resize()}},this.getSplits=function(){return this.$splits},this.getEditor=function(o){return this.$editors[o]},this.getCurrentEditor=function(){return this.$cEditor},this.focus=function(){this.$cEditor.focus()},this.blur=function(){this.$cEditor.blur()},this.setTheme=function(o){this.$editors.forEach(function(p){p.setTheme(o)})},this.setKeyboardHandler=function(o){this.$editors.forEach(function(p){p.setKeyboardHandler(o)})},this.forEach=function(o,p){this.$editors.forEach(o,p)},this.$fontSize="",this.setFontSize=function(o){this.$fontSize=o,this.forEach(function(p){p.setFontSize(o)})},this.$cloneSession=function(o){var p=new u(o.getDocument(),o.getMode()),d=o.getUndoManager();return p.setUndoManager(d),p.setTabSize(o.getTabSize()),p.setUseSoftTabs(o.getUseSoftTabs()),p.setOverwrite(o.getOverwrite()),p.setBreakpoints(o.getBreakpoints()),p.setUseWrapMode(o.getUseWrapMode()),p.setUseWorker(o.getUseWorker()),p.setWrapLimitRange(o.$wrapLimitRange.min,o.$wrapLimitRange.max),p.$foldData=o.$cloneFoldData(),p},this.setSession=function(o,p){var d;p==null?d=this.$cEditor:d=this.$editors[p];var _=this.$editors.some(function(b){return b.session===o});return _&&(o=this.$cloneSession(o)),d.setSession(o),o},this.getOrientation=function(){return this.$orientation},this.setOrientation=function(o){this.$orientation!=o&&(this.$orientation=o,this.resize())},this.resize=function(){var o=this.$container.clientWidth,p=this.$container.clientHeight,d;if(this.$orientation==this.BESIDE)for(var _=o/this.$splits,b=0;b<this.$splits;b++)d=this.$editors[b],d.container.style.width=_+"px",d.container.style.top="0px",d.container.style.left=b*_+"px",d.container.style.height=p+"px",d.resize();else for(var m=p/this.$splits,b=0;b<this.$splits;b++)d=this.$editors[b],d.container.style.width=o+"px",d.container.style.top=b*m+"px",d.container.style.left="0px",d.container.style.height=m+"px",d.resize()}}.call(l.prototype),a.Split=l}),ace.define("ace/ext/split",["require","exports","module","ace/ext/split","ace/split"],function(n,a,h){h.exports=n("../split")}),function(){ace.require(["ace/ext/split"],function(n){c&&(c.exports=n)})}()})(Gt);var En=Gt.exports,On="Expected a function",Kt="__lodash_hash_undefined__",Cn="[object Function]",Pn="[object GeneratorFunction]",An="[object Symbol]",Tn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Dn=/^\w*$/,Ln=/^\./,$n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,In=/[\\^$.*+?()[\]{}|]/g,zn=/\\(\\)?/g,Rn=/^\[object .+?Constructor\]$/,Nn=typeof q=="object"&&q&&q.Object===Object&&q,Fn=typeof self=="object"&&self&&self.Object===Object&&self,at=Nn||Fn||Function("return this")();function jn(c,r){return c==null?void 0:c[r]}function Bn(c){var r=!1;if(c!=null&&typeof c.toString!="function")try{r=!!(c+"")}catch{}return r}var kn=Array.prototype,Hn=Function.prototype,Vt=Object.prototype,xe=at["__core-js_shared__"],Nt=function(){var c=/[^.]+$/.exec(xe&&xe.keys&&xe.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}(),Wt=Hn.toString,st=Vt.hasOwnProperty,Jt=Vt.toString,Un=RegExp("^"+Wt.call(st).replace(In,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ft=at.Symbol,Gn=kn.splice,Kn=Qt(at,"Map"),Ae=Qt(Object,"create"),jt=Ft?Ft.prototype:void 0,Bt=jt?jt.toString:void 0;function ve(c){var r=-1,n=c?c.length:0;for(this.clear();++r<n;){var a=c[r];this.set(a[0],a[1])}}function Vn(){this.__data__=Ae?Ae(null):{}}function Wn(c){return this.has(c)&&delete this.__data__[c]}function Jn(c){var r=this.__data__;if(Ae){var n=r[c];return n===Kt?void 0:n}return st.call(r,c)?r[c]:void 0}function Qn(c){var r=this.__data__;return Ae?r[c]!==void 0:st.call(r,c)}function Xn(c,r){var n=this.__data__;return n[c]=Ae&&r===void 0?Kt:r,this}ve.prototype.clear=Vn;ve.prototype.delete=Wn;ve.prototype.get=Jn;ve.prototype.has=Qn;ve.prototype.set=Xn;function we(c){var r=-1,n=c?c.length:0;for(this.clear();++r<n;){var a=c[r];this.set(a[0],a[1])}}function Zn(){this.__data__=[]}function Yn(c){var r=this.__data__,n=He(r,c);if(n<0)return!1;var a=r.length-1;return n==a?r.pop():Gn.call(r,n,1),!0}function qn(c){var r=this.__data__,n=He(r,c);return n<0?void 0:r[n][1]}function xn(c){return He(this.__data__,c)>-1}function ei(c,r){var n=this.__data__,a=He(n,c);return a<0?n.push([c,r]):n[a][1]=r,this}we.prototype.clear=Zn;we.prototype.delete=Yn;we.prototype.get=qn;we.prototype.has=xn;we.prototype.set=ei;function _e(c){var r=-1,n=c?c.length:0;for(this.clear();++r<n;){var a=c[r];this.set(a[0],a[1])}}function ti(){this.__data__={hash:new ve,map:new(Kn||we),string:new ve}}function ri(c){return Ue(this,c).delete(c)}function ni(c){return Ue(this,c).get(c)}function ii(c){return Ue(this,c).has(c)}function oi(c,r){return Ue(this,c).set(c,r),this}_e.prototype.clear=ti;_e.prototype.delete=ri;_e.prototype.get=ni;_e.prototype.has=ii;_e.prototype.set=oi;function He(c,r){for(var n=c.length;n--;)if(vi(c[n][0],r))return n;return-1}function ai(c,r){r=fi(r,c)?[r]:hi(r);for(var n=0,a=r.length;c!=null&&n<a;)c=c[gi(r[n++])];return n&&n==a?c:void 0}function si(c){if(!Zt(c)||ci(c))return!1;var r=_i(c)||Bn(c)?Un:Rn;return r.test(di(c))}function li(c){if(typeof c=="string")return c;if(ht(c))return Bt?Bt.call(c):"";var r=c+"";return r=="0"&&1/c==-1/0?"-0":r}function hi(c){return Xt(c)?c:pi(c)}function Ue(c,r){var n=c.__data__;return ui(r)?n[typeof r=="string"?"string":"hash"]:n.map}function Qt(c,r){var n=jn(c,r);return si(n)?n:void 0}function fi(c,r){if(Xt(c))return!1;var n=typeof c;return n=="number"||n=="symbol"||n=="boolean"||c==null||ht(c)?!0:Dn.test(c)||!Tn.test(c)||r!=null&&c in Object(r)}function ui(c){var r=typeof c;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?c!=="__proto__":c===null}function ci(c){return!!Nt&&Nt in c}var pi=lt(function(c){c=mi(c);var r=[];return Ln.test(c)&&r.push(""),c.replace($n,function(n,a,h,e){r.push(h?e.replace(zn,"$1"):a||n)}),r});function gi(c){if(typeof c=="string"||ht(c))return c;var r=c+"";return r=="0"&&1/c==-1/0?"-0":r}function di(c){if(c!=null){try{return Wt.call(c)}catch{}try{return c+""}catch{}}return""}function lt(c,r){if(typeof c!="function"||r&&typeof r!="function")throw new TypeError(On);var n=function(){var a=arguments,h=r?r.apply(this,a):a[0],e=n.cache;if(e.has(h))return e.get(h);var t=c.apply(this,a);return n.cache=e.set(h,t),t};return n.cache=new(lt.Cache||_e),n}lt.Cache=_e;function vi(c,r){return c===r||c!==c&&r!==r}var Xt=Array.isArray;function _i(c){var r=Zt(c)?Jt.call(c):"";return r==Cn||r==Pn}function Zt(c){var r=typeof c;return!!c&&(r=="object"||r=="function")}function bi(c){return!!c&&typeof c=="object"}function ht(c){return typeof c=="symbol"||bi(c)&&Jt.call(c)==An}function mi(c){return c==null?"":li(c)}function yi(c,r,n){var a=c==null?void 0:ai(c,r);return a===void 0?n:a}var wi=yi,Si=ae&&ae.__extends||function(){var c=function(r,n){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,h){a.__proto__=h}||function(a,h){for(var e in h)Object.prototype.hasOwnProperty.call(h,e)&&(a[e]=h[e])},c(r,n)};return function(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");c(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),nt=ae&&ae.__assign||function(){return nt=Object.assign||function(c){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var h in r)Object.prototype.hasOwnProperty.call(r,h)&&(c[h]=r[h])}return c},nt.apply(this,arguments)};Object.defineProperty(ae,"__esModule",{value:!0});var pe=Z,et=(0,pe.getAceInstance)(),Mi=Be,Ei=En,O=it,kt=ot,tt=Ut,re=wi,Oi=function(c){Si(r,c);function r(n){var a=c.call(this,n)||this;return pe.editorEvents.forEach(function(h){a[h]=a[h].bind(a)}),a.debounce=pe.debounce,a}return r.prototype.isInShadow=function(n){for(var a=n&&n.parentNode;a;){if(a.toString()==="[object ShadowRoot]")return!0;a=a.parentNode}return!1},r.prototype.componentDidMount=function(){var n=this,a=this.props,h=a.className,e=a.onBeforeLoad,t=a.mode,s=a.focus,f=a.theme,u=a.fontSize,l=a.value,o=a.defaultValue,p=a.cursorStart,d=a.showGutter,_=a.wrapEnabled,b=a.showPrintMargin,m=a.scrollMargin,M=m===void 0?[0,0,0,0]:m,S=a.keyboardHandler,C=a.onLoad,T=a.commands,R=a.annotations,A=a.markers,L=a.splits;this.editor=et.edit(this.refEditor),this.isInShadow(this.refEditor)&&this.editor.renderer.attachToShadowRoot(),this.editor.setTheme("ace/theme/".concat(f)),e&&e(et);var $=Object.keys(this.props.editorProps),D=new Ei.Split(this.editor.container,"ace/theme/".concat(f),L);this.editor.env.split=D,this.splitEditor=D.getEditor(0),this.split=D,this.editor.setShowPrintMargin(!1),this.editor.renderer.setShowGutter(!1);var N=this.splitEditor.$options;this.props.debounceChangePeriod&&(this.onChange=this.debounce(this.onChange,this.props.debounceChangePeriod)),D.forEach(function(y,H){for(var U=0;U<$.length;U++)y[$[U]]=n.props.editorProps[$[U]];var Te=re(o,H),Ge=re(l,H,"");y.session.setUndoManager(new et.UndoManager),y.setTheme("ace/theme/".concat(f)),y.renderer.setScrollMargin(M[0],M[1],M[2],M[3]),y.getSession().setMode("ace/mode/".concat(t)),y.setFontSize(u),y.renderer.setShowGutter(d),y.getSession().setUseWrapMode(_),y.setShowPrintMargin(b),y.on("focus",n.onFocus),y.on("blur",n.onBlur),y.on("input",n.onInput),y.on("copy",n.onCopy),y.on("paste",n.onPaste),y.on("change",n.onChange),y.getSession().selection.on("changeSelection",n.onSelectionChange),y.getSession().selection.on("changeCursor",n.onCursorChange),y.session.on("changeScrollTop",n.onScroll),y.setValue(Te===void 0?Ge:Te,p);var Ke=re(R,H,[]),Se=re(A,H,[]);y.getSession().setAnnotations(Ke),Se&&Se.length>0&&n.handleMarkers(Se,y);for(var U=0;U<pe.editorOptions.length;U++){var se=pe.editorOptions[U];N.hasOwnProperty(se)?y.setOption(se,n.props[se]):n.props[se]&&console.warn("ReaceAce: editor option ".concat(se," was activated but not found. Did you need to import a related tool or did you possibly mispell the option?"))}n.handleOptions(n.props,y),Array.isArray(T)&&T.forEach(function(be){typeof be.exec=="string"?y.commands.bindKey(be.bindKey,be.exec):y.commands.addCommand(be)}),S&&y.setKeyboardHandler("ace/keyboard/"+S)}),h&&(this.refEditor.className+=" "+h),s&&this.splitEditor.focus();var I=this.editor.env.split;I.setOrientation(this.props.orientation==="below"?I.BELOW:I.BESIDE),I.resize(!0),C&&C(I)},r.prototype.componentDidUpdate=function(n){var a=this,h=n,e=this.props,t=this.editor.env.split;if(e.splits!==h.splits&&t.setSplits(e.splits),e.orientation!==h.orientation&&t.setOrientation(e.orientation==="below"?t.BELOW:t.BESIDE),t.forEach(function(l,o){e.mode!==h.mode&&l.getSession().setMode("ace/mode/"+e.mode),e.keyboardHandler!==h.keyboardHandler&&(e.keyboardHandler?l.setKeyboardHandler("ace/keyboard/"+e.keyboardHandler):l.setKeyboardHandler(null)),e.fontSize!==h.fontSize&&l.setFontSize(e.fontSize),e.wrapEnabled!==h.wrapEnabled&&l.getSession().setUseWrapMode(e.wrapEnabled),e.showPrintMargin!==h.showPrintMargin&&l.setShowPrintMargin(e.showPrintMargin),e.showGutter!==h.showGutter&&l.renderer.setShowGutter(e.showGutter);for(var p=0;p<pe.editorOptions.length;p++){var d=pe.editorOptions[p];e[d]!==h[d]&&l.setOption(d,e[d])}tt(e.setOptions,h.setOptions)||a.handleOptions(e,l);var _=re(e.value,o,"");if(l.getValue()!==_){a.silent=!0;var b=l.session.selection.toJSON();l.setValue(_,e.cursorStart),l.session.selection.fromJSON(b),a.silent=!1}var m=re(e.annotations,o,[]),M=re(h.annotations,o,[]);tt(m,M)||l.getSession().setAnnotations(m);var S=re(e.markers,o,[]),C=re(h.markers,o,[]);!tt(S,C)&&Array.isArray(S)&&a.handleMarkers(S,l)}),e.className!==h.className){var s=this.refEditor.className,f=s.trim().split(" "),u=h.className.trim().split(" ");u.forEach(function(l){var o=f.indexOf(l);f.splice(o,1)}),this.refEditor.className=" "+e.className+" "+f.join(" ")}e.theme!==h.theme&&t.setTheme("ace/theme/"+e.theme),e.focus&&!h.focus&&this.splitEditor.focus(),(e.height!==this.props.height||e.width!==this.props.width)&&this.editor.resize()},r.prototype.componentWillUnmount=function(){this.editor.destroy(),this.editor=null},r.prototype.onChange=function(n){if(this.props.onChange&&!this.silent){var a=[];this.editor.env.split.forEach(function(h){a.push(h.getValue())}),this.props.onChange(a,n)}},r.prototype.onSelectionChange=function(n){if(this.props.onSelectionChange){var a=[];this.editor.env.split.forEach(function(h){a.push(h.getSelection())}),this.props.onSelectionChange(a,n)}},r.prototype.onCursorChange=function(n){if(this.props.onCursorChange){var a=[];this.editor.env.split.forEach(function(h){a.push(h.getSelection())}),this.props.onCursorChange(a,n)}},r.prototype.onFocus=function(n){this.props.onFocus&&this.props.onFocus(n)},r.prototype.onInput=function(n){this.props.onInput&&this.props.onInput(n)},r.prototype.onBlur=function(n){this.props.onBlur&&this.props.onBlur(n)},r.prototype.onCopy=function(n){this.props.onCopy&&this.props.onCopy(n)},r.prototype.onPaste=function(n){this.props.onPaste&&this.props.onPaste(n)},r.prototype.onScroll=function(){this.props.onScroll&&this.props.onScroll(this.editor)},r.prototype.handleOptions=function(n,a){for(var h=Object.keys(n.setOptions),e=0;e<h.length;e++)a.setOption(h[e],n.setOptions[h[e]])},r.prototype.handleMarkers=function(n,a){var h=a.getSession().getMarkers(!0);for(var e in h)h.hasOwnProperty(e)&&a.getSession().removeMarker(h[e].id);h=a.getSession().getMarkers(!1);for(var e in h)h.hasOwnProperty(e)&&a.getSession().removeMarker(h[e].id);n.forEach(function(t){var s=t.startRow,f=t.startCol,u=t.endRow,l=t.endCol,o=t.className,p=t.type,d=t.inFront,_=d===void 0?!1:d,b=new Mi.Range(s,f,u,l);a.getSession().addMarker(b,o,p,_)})},r.prototype.updateRef=function(n){this.refEditor=n},r.prototype.render=function(){var n=this.props,a=n.name,h=n.width,e=n.height,t=n.style,s=nt({width:h,height:e},t);return kt.createElement("div",{ref:this.updateRef,id:a,style:s})},r.propTypes={className:O.string,debounceChangePeriod:O.number,defaultValue:O.arrayOf(O.string),focus:O.bool,fontSize:O.oneOfType([O.number,O.string]),height:O.string,mode:O.string,name:O.string,onBlur:O.func,onChange:O.func,onCopy:O.func,onFocus:O.func,onInput:O.func,onLoad:O.func,onPaste:O.func,onScroll:O.func,orientation:O.string,showGutter:O.bool,splits:O.number,theme:O.string,value:O.arrayOf(O.string),width:O.string,onSelectionChange:O.func,onCursorChange:O.func,onBeforeLoad:O.func,minLines:O.number,maxLines:O.number,readOnly:O.bool,highlightActiveLine:O.bool,tabSize:O.number,showPrintMargin:O.bool,cursorStart:O.number,editorProps:O.object,setOptions:O.object,style:O.object,scrollMargin:O.array,annotations:O.array,markers:O.array,keyboardHandler:O.string,wrapEnabled:O.bool,enableBasicAutocompletion:O.oneOfType([O.bool,O.array]),enableLiveAutocompletion:O.oneOfType([O.bool,O.array]),commands:O.array},r.defaultProps={name:"ace-editor",focus:!1,orientation:"beside",splits:2,mode:"",theme:"",height:"500px",width:"500px",value:[],fontSize:12,showGutter:!0,onChange:null,onPaste:null,onLoad:null,onScroll:null,minLines:null,maxLines:null,readOnly:!1,highlightActiveLine:!0,showPrintMargin:!0,tabSize:4,cursorStart:1,editorProps:{},style:{},scrollMargin:[0,0,0,0],setOptions:{},wrapEnabled:!1,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1},r}(kt.Component);ae.default=Oi;var Yt={exports:{}};(function(c){var r=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},n=-1,a=1,h=0;r.Diff=function(e,t){return[e,t]},r.prototype.diff_main=function(e,t,s,f){typeof f>"u"&&(this.Diff_Timeout<=0?f=Number.MAX_VALUE:f=new Date().getTime()+this.Diff_Timeout*1e3);var u=f;if(e==null||t==null)throw new Error("Null input. (diff_main)");if(e==t)return e?[new r.Diff(h,e)]:[];typeof s>"u"&&(s=!0);var l=s,o=this.diff_commonPrefix(e,t),p=e.substring(0,o);e=e.substring(o),t=t.substring(o),o=this.diff_commonSuffix(e,t);var d=e.substring(e.length-o);e=e.substring(0,e.length-o),t=t.substring(0,t.length-o);var _=this.diff_compute_(e,t,l,u);return p&&_.unshift(new r.Diff(h,p)),d&&_.push(new r.Diff(h,d)),this.diff_cleanupMerge(_),_},r.prototype.diff_compute_=function(e,t,s,f){var u;if(!e)return[new r.Diff(a,t)];if(!t)return[new r.Diff(n,e)];var l=e.length>t.length?e:t,o=e.length>t.length?t:e,p=l.indexOf(o);if(p!=-1)return u=[new r.Diff(a,l.substring(0,p)),new r.Diff(h,o),new r.Diff(a,l.substring(p+o.length))],e.length>t.length&&(u[0][0]=u[2][0]=n),u;if(o.length==1)return[new r.Diff(n,e),new r.Diff(a,t)];var d=this.diff_halfMatch_(e,t);if(d){var _=d[0],b=d[1],m=d[2],M=d[3],S=d[4],C=this.diff_main(_,m,s,f),T=this.diff_main(b,M,s,f);return C.concat([new r.Diff(h,S)],T)}return s&&e.length>100&&t.length>100?this.diff_lineMode_(e,t,f):this.diff_bisect_(e,t,f)},r.prototype.diff_lineMode_=function(e,t,s){var f=this.diff_linesToChars_(e,t);e=f.chars1,t=f.chars2;var u=f.lineArray,l=this.diff_main(e,t,!1,s);this.diff_charsToLines_(l,u),this.diff_cleanupSemantic(l),l.push(new r.Diff(h,""));for(var o=0,p=0,d=0,_="",b="";o<l.length;){switch(l[o][0]){case a:d++,b+=l[o][1];break;case n:p++,_+=l[o][1];break;case h:if(p>=1&&d>=1){l.splice(o-p-d,p+d),o=o-p-d;for(var m=this.diff_main(_,b,!1,s),M=m.length-1;M>=0;M--)l.splice(o,0,m[M]);o=o+m.length}d=0,p=0,_="",b="";break}o++}return l.pop(),l},r.prototype.diff_bisect_=function(e,t,s){for(var f=e.length,u=t.length,l=Math.ceil((f+u)/2),o=l,p=2*l,d=new Array(p),_=new Array(p),b=0;b<p;b++)d[b]=-1,_[b]=-1;d[o+1]=0,_[o+1]=0;for(var m=f-u,M=m%2!=0,S=0,C=0,T=0,R=0,A=0;A<l&&!(new Date().getTime()>s);A++){for(var L=-A+S;L<=A-C;L+=2){var $=o+L,D;L==-A||L!=A&&d[$-1]<d[$+1]?D=d[$+1]:D=d[$-1]+1;for(var N=D-L;D<f&&N<u&&e.charAt(D)==t.charAt(N);)D++,N++;if(d[$]=D,D>f)C+=2;else if(N>u)S+=2;else if(M){var I=o+m-L;if(I>=0&&I<p&&_[I]!=-1){var y=f-_[I];if(D>=y)return this.diff_bisectSplit_(e,t,D,N,s)}}}for(var H=-A+T;H<=A-R;H+=2){var I=o+H,y;H==-A||H!=A&&_[I-1]<_[I+1]?y=_[I+1]:y=_[I-1]+1;for(var U=y-H;y<f&&U<u&&e.charAt(f-y-1)==t.charAt(u-U-1);)y++,U++;if(_[I]=y,y>f)R+=2;else if(U>u)T+=2;else if(!M){var $=o+m-H;if($>=0&&$<p&&d[$]!=-1){var D=d[$],N=o+D-$;if(y=f-y,D>=y)return this.diff_bisectSplit_(e,t,D,N,s)}}}}return[new r.Diff(n,e),new r.Diff(a,t)]},r.prototype.diff_bisectSplit_=function(e,t,s,f,u){var l=e.substring(0,s),o=t.substring(0,f),p=e.substring(s),d=t.substring(f),_=this.diff_main(l,o,!1,u),b=this.diff_main(p,d,!1,u);return _.concat(b)},r.prototype.diff_linesToChars_=function(e,t){var s=[],f={};s[0]="";function u(d){for(var _="",b=0,m=-1,M=s.length;m<d.length-1;){m=d.indexOf(`
2
- `,b),m==-1&&(m=d.length-1);var S=d.substring(b,m+1);(f.hasOwnProperty?f.hasOwnProperty(S):f[S]!==void 0)?_+=String.fromCharCode(f[S]):(M==l&&(S=d.substring(b),m=d.length),_+=String.fromCharCode(M),f[S]=M,s[M++]=S),b=m+1}return _}var l=4e4,o=u(e);l=65535;var p=u(t);return{chars1:o,chars2:p,lineArray:s}},r.prototype.diff_charsToLines_=function(e,t){for(var s=0;s<e.length;s++){for(var f=e[s][1],u=[],l=0;l<f.length;l++)u[l]=t[f.charCodeAt(l)];e[s][1]=u.join("")}},r.prototype.diff_commonPrefix=function(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var s=0,f=Math.min(e.length,t.length),u=f,l=0;s<u;)e.substring(l,u)==t.substring(l,u)?(s=u,l=s):f=u,u=Math.floor((f-s)/2+s);return u},r.prototype.diff_commonSuffix=function(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var s=0,f=Math.min(e.length,t.length),u=f,l=0;s<u;)e.substring(e.length-u,e.length-l)==t.substring(t.length-u,t.length-l)?(s=u,l=s):f=u,u=Math.floor((f-s)/2+s);return u},r.prototype.diff_commonOverlap_=function(e,t){var s=e.length,f=t.length;if(s==0||f==0)return 0;s>f?e=e.substring(s-f):s<f&&(t=t.substring(0,s));var u=Math.min(s,f);if(e==t)return u;for(var l=0,o=1;;){var p=e.substring(u-o),d=t.indexOf(p);if(d==-1)return l;o+=d,(d==0||e.substring(u-o)==t.substring(0,o))&&(l=o,o++)}},r.prototype.diff_halfMatch_=function(e,t){if(this.Diff_Timeout<=0)return null;var s=e.length>t.length?e:t,f=e.length>t.length?t:e;if(s.length<4||f.length*2<s.length)return null;var u=this;function l(C,T,R){for(var A=C.substring(R,R+Math.floor(C.length/4)),L=-1,$="",D,N,I,y;(L=T.indexOf(A,L+1))!=-1;){var H=u.diff_commonPrefix(C.substring(R),T.substring(L)),U=u.diff_commonSuffix(C.substring(0,R),T.substring(0,L));$.length<U+H&&($=T.substring(L-U,L)+T.substring(L,L+H),D=C.substring(0,R-U),N=C.substring(R+H),I=T.substring(0,L-U),y=T.substring(L+H))}return $.length*2>=C.length?[D,N,I,y,$]:null}var o=l(s,f,Math.ceil(s.length/4)),p=l(s,f,Math.ceil(s.length/2)),d;if(!o&&!p)return null;p?o?d=o[4].length>p[4].length?o:p:d=p:d=o;var _,b,m,M;e.length>t.length?(_=d[0],b=d[1],m=d[2],M=d[3]):(m=d[0],M=d[1],_=d[2],b=d[3]);var S=d[4];return[_,b,m,M,S]},r.prototype.diff_cleanupSemantic=function(e){for(var t=!1,s=[],f=0,u=null,l=0,o=0,p=0,d=0,_=0;l<e.length;)e[l][0]==h?(s[f++]=l,o=d,p=_,d=0,_=0,u=e[l][1]):(e[l][0]==a?d+=e[l][1].length:_+=e[l][1].length,u&&u.length<=Math.max(o,p)&&u.length<=Math.max(d,_)&&(e.splice(s[f-1],0,new r.Diff(n,u)),e[s[f-1]+1][0]=a,f--,f--,l=f>0?s[f-1]:-1,o=0,p=0,d=0,_=0,u=null,t=!0)),l++;for(t&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),l=1;l<e.length;){if(e[l-1][0]==n&&e[l][0]==a){var b=e[l-1][1],m=e[l][1],M=this.diff_commonOverlap_(b,m),S=this.diff_commonOverlap_(m,b);M>=S?(M>=b.length/2||M>=m.length/2)&&(e.splice(l,0,new r.Diff(h,m.substring(0,M))),e[l-1][1]=b.substring(0,b.length-M),e[l+1][1]=m.substring(M),l++):(S>=b.length/2||S>=m.length/2)&&(e.splice(l,0,new r.Diff(h,b.substring(0,S))),e[l-1][0]=a,e[l-1][1]=m.substring(0,m.length-S),e[l+1][0]=n,e[l+1][1]=b.substring(S),l++),l++}l++}},r.prototype.diff_cleanupSemanticLossless=function(e){function t(S,C){if(!S||!C)return 6;var T=S.charAt(S.length-1),R=C.charAt(0),A=T.match(r.nonAlphaNumericRegex_),L=R.match(r.nonAlphaNumericRegex_),$=A&&T.match(r.whitespaceRegex_),D=L&&R.match(r.whitespaceRegex_),N=$&&T.match(r.linebreakRegex_),I=D&&R.match(r.linebreakRegex_),y=N&&S.match(r.blanklineEndRegex_),H=I&&C.match(r.blanklineStartRegex_);return y||H?5:N||I?4:A&&!$&&D?3:$||D?2:A||L?1:0}for(var s=1;s<e.length-1;){if(e[s-1][0]==h&&e[s+1][0]==h){var f=e[s-1][1],u=e[s][1],l=e[s+1][1],o=this.diff_commonSuffix(f,u);if(o){var p=u.substring(u.length-o);f=f.substring(0,f.length-o),u=p+u.substring(0,u.length-o),l=p+l}for(var d=f,_=u,b=l,m=t(f,u)+t(u,l);u.charAt(0)===l.charAt(0);){f+=u.charAt(0),u=u.substring(1)+l.charAt(0),l=l.substring(1);var M=t(f,u)+t(u,l);M>=m&&(m=M,d=f,_=u,b=l)}e[s-1][1]!=d&&(d?e[s-1][1]=d:(e.splice(s-1,1),s--),e[s][1]=_,b?e[s+1][1]=b:(e.splice(s+1,1),s--))}s++}},r.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,r.whitespaceRegex_=/\s/,r.linebreakRegex_=/[\r\n]/,r.blanklineEndRegex_=/\n\r?\n$/,r.blanklineStartRegex_=/^\r?\n\r?\n/,r.prototype.diff_cleanupEfficiency=function(e){for(var t=!1,s=[],f=0,u=null,l=0,o=!1,p=!1,d=!1,_=!1;l<e.length;)e[l][0]==h?(e[l][1].length<this.Diff_EditCost&&(d||_)?(s[f++]=l,o=d,p=_,u=e[l][1]):(f=0,u=null),d=_=!1):(e[l][0]==n?_=!0:d=!0,u&&(o&&p&&d&&_||u.length<this.Diff_EditCost/2&&o+p+d+_==3)&&(e.splice(s[f-1],0,new r.Diff(n,u)),e[s[f-1]+1][0]=a,f--,u=null,o&&p?(d=_=!0,f=0):(f--,l=f>0?s[f-1]:-1,d=_=!1),t=!0)),l++;t&&this.diff_cleanupMerge(e)},r.prototype.diff_cleanupMerge=function(e){e.push(new r.Diff(h,""));for(var t=0,s=0,f=0,u="",l="",o;t<e.length;)switch(e[t][0]){case a:f++,l+=e[t][1],t++;break;case n:s++,u+=e[t][1],t++;break;case h:s+f>1?(s!==0&&f!==0&&(o=this.diff_commonPrefix(l,u),o!==0&&(t-s-f>0&&e[t-s-f-1][0]==h?e[t-s-f-1][1]+=l.substring(0,o):(e.splice(0,0,new r.Diff(h,l.substring(0,o))),t++),l=l.substring(o),u=u.substring(o)),o=this.diff_commonSuffix(l,u),o!==0&&(e[t][1]=l.substring(l.length-o)+e[t][1],l=l.substring(0,l.length-o),u=u.substring(0,u.length-o))),t-=s+f,e.splice(t,s+f),u.length&&(e.splice(t,0,new r.Diff(n,u)),t++),l.length&&(e.splice(t,0,new r.Diff(a,l)),t++),t++):t!==0&&e[t-1][0]==h?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,f=0,s=0,u="",l="";break}e[e.length-1][1]===""&&e.pop();var p=!1;for(t=1;t<e.length-1;)e[t-1][0]==h&&e[t+1][0]==h&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)==e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),p=!0):e[t][1].substring(0,e[t+1][1].length)==e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),p=!0)),t++;p&&this.diff_cleanupMerge(e)},r.prototype.diff_xIndex=function(e,t){var s=0,f=0,u=0,l=0,o;for(o=0;o<e.length&&(e[o][0]!==a&&(s+=e[o][1].length),e[o][0]!==n&&(f+=e[o][1].length),!(s>t));o++)u=s,l=f;return e.length!=o&&e[o][0]===n?l:l+(t-u)},r.prototype.diff_prettyHtml=function(e){for(var t=[],s=/&/g,f=/</g,u=/>/g,l=/\n/g,o=0;o<e.length;o++){var p=e[o][0],d=e[o][1],_=d.replace(s,"&amp;").replace(f,"&lt;").replace(u,"&gt;").replace(l,"&para;<br>");switch(p){case a:t[o]='<ins style="background:#e6ffe6;">'+_+"</ins>";break;case n:t[o]='<del style="background:#ffe6e6;">'+_+"</del>";break;case h:t[o]="<span>"+_+"</span>";break}}return t.join("")},r.prototype.diff_text1=function(e){for(var t=[],s=0;s<e.length;s++)e[s][0]!==a&&(t[s]=e[s][1]);return t.join("")},r.prototype.diff_text2=function(e){for(var t=[],s=0;s<e.length;s++)e[s][0]!==n&&(t[s]=e[s][1]);return t.join("")},r.prototype.diff_levenshtein=function(e){for(var t=0,s=0,f=0,u=0;u<e.length;u++){var l=e[u][0],o=e[u][1];switch(l){case a:s+=o.length;break;case n:f+=o.length;break;case h:t+=Math.max(s,f),s=0,f=0;break}}return t+=Math.max(s,f),t},r.prototype.diff_toDelta=function(e){for(var t=[],s=0;s<e.length;s++)switch(e[s][0]){case a:t[s]="+"+encodeURI(e[s][1]);break;case n:t[s]="-"+e[s][1].length;break;case h:t[s]="="+e[s][1].length;break}return t.join(" ").replace(/%20/g," ")},r.prototype.diff_fromDelta=function(e,t){for(var s=[],f=0,u=0,l=t.split(/\t/g),o=0;o<l.length;o++){var p=l[o].substring(1);switch(l[o].charAt(0)){case"+":try{s[f++]=new r.Diff(a,decodeURI(p))}catch{throw new Error("Illegal escape in diff_fromDelta: "+p)}break;case"-":case"=":var d=parseInt(p,10);if(isNaN(d)||d<0)throw new Error("Invalid number in diff_fromDelta: "+p);var _=e.substring(u,u+=d);l[o].charAt(0)=="="?s[f++]=new r.Diff(h,_):s[f++]=new r.Diff(n,_);break;default:if(l[o])throw new Error("Invalid diff operation in diff_fromDelta: "+l[o])}}if(u!=e.length)throw new Error("Delta length ("+u+") does not equal source text length ("+e.length+").");return s},r.prototype.match_main=function(e,t,s){if(e==null||t==null||s==null)throw new Error("Null input. (match_main)");return s=Math.max(0,Math.min(s,e.length)),e==t?0:e.length?e.substring(s,s+t.length)==t?s:this.match_bitap_(e,t,s):-1},r.prototype.match_bitap_=function(e,t,s){if(t.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var f=this.match_alphabet_(t),u=this;function l(D,N){var I=D/t.length,y=Math.abs(s-N);return u.Match_Distance?I+y/u.Match_Distance:y?1:I}var o=this.Match_Threshold,p=e.indexOf(t,s);p!=-1&&(o=Math.min(l(0,p),o),p=e.lastIndexOf(t,s+t.length),p!=-1&&(o=Math.min(l(0,p),o)));var d=1<<t.length-1;p=-1;for(var _,b,m=t.length+e.length,M,S=0;S<t.length;S++){for(_=0,b=m;_<b;)l(S,s+b)<=o?_=b:m=b,b=Math.floor((m-_)/2+_);m=b;var C=Math.max(1,s-b+1),T=Math.min(s+b,e.length)+t.length,R=Array(T+2);R[T+1]=(1<<S)-1;for(var A=T;A>=C;A--){var L=f[e.charAt(A-1)];if(S===0?R[A]=(R[A+1]<<1|1)&L:R[A]=(R[A+1]<<1|1)&L|((M[A+1]|M[A])<<1|1)|M[A+1],R[A]&d){var $=l(S,A-1);if($<=o)if(o=$,p=A-1,p>s)C=Math.max(1,2*s-p);else break}}if(l(S+1,s)>o)break;M=R}return p},r.prototype.match_alphabet_=function(e){for(var t={},s=0;s<e.length;s++)t[e.charAt(s)]=0;for(var s=0;s<e.length;s++)t[e.charAt(s)]|=1<<e.length-s-1;return t},r.prototype.patch_addContext_=function(e,t){if(t.length!=0){if(e.start2===null)throw Error("patch not initialized");for(var s=t.substring(e.start2,e.start2+e.length1),f=0;t.indexOf(s)!=t.lastIndexOf(s)&&s.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)f+=this.Patch_Margin,s=t.substring(e.start2-f,e.start2+e.length1+f);f+=this.Patch_Margin;var u=t.substring(e.start2-f,e.start2);u&&e.diffs.unshift(new r.Diff(h,u));var l=t.substring(e.start2+e.length1,e.start2+e.length1+f);l&&e.diffs.push(new r.Diff(h,l)),e.start1-=u.length,e.start2-=u.length,e.length1+=u.length+l.length,e.length2+=u.length+l.length}},r.prototype.patch_make=function(e,t,s){var f,u;if(typeof e=="string"&&typeof t=="string"&&typeof s>"u")f=e,u=this.diff_main(f,t,!0),u.length>2&&(this.diff_cleanupSemantic(u),this.diff_cleanupEfficiency(u));else if(e&&typeof e=="object"&&typeof t>"u"&&typeof s>"u")u=e,f=this.diff_text1(u);else if(typeof e=="string"&&t&&typeof t=="object"&&typeof s>"u")f=e,u=t;else if(typeof e=="string"&&typeof t=="string"&&s&&typeof s=="object")f=e,u=s;else throw new Error("Unknown call format to patch_make.");if(u.length===0)return[];for(var l=[],o=new r.patch_obj,p=0,d=0,_=0,b=f,m=f,M=0;M<u.length;M++){var S=u[M][0],C=u[M][1];switch(!p&&S!==h&&(o.start1=d,o.start2=_),S){case a:o.diffs[p++]=u[M],o.length2+=C.length,m=m.substring(0,_)+C+m.substring(_);break;case n:o.length1+=C.length,o.diffs[p++]=u[M],m=m.substring(0,_)+m.substring(_+C.length);break;case h:C.length<=2*this.Patch_Margin&&p&&u.length!=M+1?(o.diffs[p++]=u[M],o.length1+=C.length,o.length2+=C.length):C.length>=2*this.Patch_Margin&&p&&(this.patch_addContext_(o,b),l.push(o),o=new r.patch_obj,p=0,b=m,d=_);break}S!==a&&(d+=C.length),S!==n&&(_+=C.length)}return p&&(this.patch_addContext_(o,b),l.push(o)),l},r.prototype.patch_deepCopy=function(e){for(var t=[],s=0;s<e.length;s++){var f=e[s],u=new r.patch_obj;u.diffs=[];for(var l=0;l<f.diffs.length;l++)u.diffs[l]=new r.Diff(f.diffs[l][0],f.diffs[l][1]);u.start1=f.start1,u.start2=f.start2,u.length1=f.length1,u.length2=f.length2,t[s]=u}return t},r.prototype.patch_apply=function(e,t){if(e.length==0)return[t,[]];e=this.patch_deepCopy(e);var s=this.patch_addPadding(e);t=s+t+s,this.patch_splitMax(e);for(var f=0,u=[],l=0;l<e.length;l++){var o=e[l].start2+f,p=this.diff_text1(e[l].diffs),d,_=-1;if(p.length>this.Match_MaxBits?(d=this.match_main(t,p.substring(0,this.Match_MaxBits),o),d!=-1&&(_=this.match_main(t,p.substring(p.length-this.Match_MaxBits),o+p.length-this.Match_MaxBits),(_==-1||d>=_)&&(d=-1))):d=this.match_main(t,p,o),d==-1)u[l]=!1,f-=e[l].length2-e[l].length1;else{u[l]=!0,f=d-o;var b;if(_==-1?b=t.substring(d,d+p.length):b=t.substring(d,_+this.Match_MaxBits),p==b)t=t.substring(0,d)+this.diff_text2(e[l].diffs)+t.substring(d+p.length);else{var m=this.diff_main(p,b,!1);if(p.length>this.Match_MaxBits&&this.diff_levenshtein(m)/p.length>this.Patch_DeleteThreshold)u[l]=!1;else{this.diff_cleanupSemanticLossless(m);for(var M=0,S,C=0;C<e[l].diffs.length;C++){var T=e[l].diffs[C];T[0]!==h&&(S=this.diff_xIndex(m,M)),T[0]===a?t=t.substring(0,d+S)+T[1]+t.substring(d+S):T[0]===n&&(t=t.substring(0,d+S)+t.substring(d+this.diff_xIndex(m,M+T[1].length))),T[0]!==n&&(M+=T[1].length)}}}}}return t=t.substring(s.length,t.length-s.length),[t,u]},r.prototype.patch_addPadding=function(e){for(var t=this.Patch_Margin,s="",f=1;f<=t;f++)s+=String.fromCharCode(f);for(var f=0;f<e.length;f++)e[f].start1+=t,e[f].start2+=t;var u=e[0],l=u.diffs;if(l.length==0||l[0][0]!=h)l.unshift(new r.Diff(h,s)),u.start1-=t,u.start2-=t,u.length1+=t,u.length2+=t;else if(t>l[0][1].length){var o=t-l[0][1].length;l[0][1]=s.substring(l[0][1].length)+l[0][1],u.start1-=o,u.start2-=o,u.length1+=o,u.length2+=o}if(u=e[e.length-1],l=u.diffs,l.length==0||l[l.length-1][0]!=h)l.push(new r.Diff(h,s)),u.length1+=t,u.length2+=t;else if(t>l[l.length-1][1].length){var o=t-l[l.length-1][1].length;l[l.length-1][1]+=s.substring(0,o),u.length1+=o,u.length2+=o}return s},r.prototype.patch_splitMax=function(e){for(var t=this.Match_MaxBits,s=0;s<e.length;s++)if(!(e[s].length1<=t)){var f=e[s];e.splice(s--,1);for(var u=f.start1,l=f.start2,o="";f.diffs.length!==0;){var p=new r.patch_obj,d=!0;for(p.start1=u-o.length,p.start2=l-o.length,o!==""&&(p.length1=p.length2=o.length,p.diffs.push(new r.Diff(h,o)));f.diffs.length!==0&&p.length1<t-this.Patch_Margin;){var _=f.diffs[0][0],b=f.diffs[0][1];_===a?(p.length2+=b.length,l+=b.length,p.diffs.push(f.diffs.shift()),d=!1):_===n&&p.diffs.length==1&&p.diffs[0][0]==h&&b.length>2*t?(p.length1+=b.length,u+=b.length,d=!1,p.diffs.push(new r.Diff(_,b)),f.diffs.shift()):(b=b.substring(0,t-p.length1-this.Patch_Margin),p.length1+=b.length,u+=b.length,_===h?(p.length2+=b.length,l+=b.length):d=!1,p.diffs.push(new r.Diff(_,b)),b==f.diffs[0][1]?f.diffs.shift():f.diffs[0][1]=f.diffs[0][1].substring(b.length))}o=this.diff_text2(p.diffs),o=o.substring(o.length-this.Patch_Margin);var m=this.diff_text1(f.diffs).substring(0,this.Patch_Margin);m!==""&&(p.length1+=m.length,p.length2+=m.length,p.diffs.length!==0&&p.diffs[p.diffs.length-1][0]===h?p.diffs[p.diffs.length-1][1]+=m:p.diffs.push(new r.Diff(h,m))),d||e.splice(++s,0,p)}}},r.prototype.patch_toText=function(e){for(var t=[],s=0;s<e.length;s++)t[s]=e[s];return t.join("")},r.prototype.patch_fromText=function(e){var t=[];if(!e)return t;for(var s=e.split(`
3
- `),f=0,u=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;f<s.length;){var l=s[f].match(u);if(!l)throw new Error("Invalid patch string: "+s[f]);var o=new r.patch_obj;for(t.push(o),o.start1=parseInt(l[1],10),l[2]===""?(o.start1--,o.length1=1):l[2]=="0"?o.length1=0:(o.start1--,o.length1=parseInt(l[2],10)),o.start2=parseInt(l[3],10),l[4]===""?(o.start2--,o.length2=1):l[4]=="0"?o.length2=0:(o.start2--,o.length2=parseInt(l[4],10)),f++;f<s.length;){var p=s[f].charAt(0);try{var d=decodeURI(s[f].substring(1))}catch{throw new Error("Illegal escape in patch_fromText: "+d)}if(p=="-")o.diffs.push(new r.Diff(n,d));else if(p=="+")o.diffs.push(new r.Diff(a,d));else if(p==" ")o.diffs.push(new r.Diff(h,d));else{if(p=="@")break;if(p!=="")throw new Error('Invalid patch mode "'+p+'" in: '+d)}f++}}return t},r.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0},r.patch_obj.prototype.toString=function(){var e,t;this.length1===0?e=this.start1+",0":this.length1==1?e=this.start1+1:e=this.start1+1+","+this.length1,this.length2===0?t=this.start2+",0":this.length2==1?t=this.start2+1:t=this.start2+1+","+this.length2;for(var s=["@@ -"+e+" +"+t+` @@
4
- `],f,u=0;u<this.diffs.length;u++){switch(this.diffs[u][0]){case a:f="+";break;case n:f="-";break;case h:f=" ";break}s[u+1]=f+encodeURI(this.diffs[u][1])+`
5
- `}return s.join("").replace(/%20/g," ")},c.exports=r,c.exports.diff_match_patch=r,c.exports.DIFF_DELETE=n,c.exports.DIFF_INSERT=a,c.exports.DIFF_EQUAL=h})(Yt);var Ci=Yt.exports,Pi=Pe&&Pe.__extends||function(){var c=function(r,n){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,h){a.__proto__=h}||function(a,h){for(var e in h)Object.prototype.hasOwnProperty.call(h,e)&&(a[e]=h[e])},c(r,n)};return function(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");c(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}();Object.defineProperty(Pe,"__esModule",{value:!0});var z=it,Ht=ot,Ai=ae,Ti=Ci,Di=function(c){Pi(r,c);function r(n){var a=c.call(this,n)||this;return a.state={value:a.props.value},a.onChange=a.onChange.bind(a),a.diff=a.diff.bind(a),a}return r.prototype.componentDidUpdate=function(){var n=this.props.value;n!==this.state.value&&this.setState({value:n})},r.prototype.onChange=function(n){this.setState({value:n}),this.props.onChange&&this.props.onChange(n)},r.prototype.diff=function(){var n=new Ti,a=this.state.value[0],h=this.state.value[1];if(a.length===0&&h.length===0)return[];var e=n.diff_main(a,h);n.diff_cleanupSemantic(e);var t=this.generateDiffedLines(e),s=this.setCodeMarkers(t);return s},r.prototype.generateDiffedLines=function(n){var a={DIFF_EQUAL:0,DIFF_DELETE:-1,DIFF_INSERT:1},h={left:[],right:[]},e={left:1,right:1};return n.forEach(function(t){var s=t[0],f=t[1],u=f.split(`
6
- `).length-1;if(f.length!==0){var l=f[0],o=f[f.length-1],p=0;switch(s){case a.DIFF_EQUAL:e.left+=u,e.right+=u;break;case a.DIFF_DELETE:l===`
7
- `&&(e.left++,u--),p=u,p===0&&h.right.push({startLine:e.right,endLine:e.right}),o===`
8
- `&&(p-=1),h.left.push({startLine:e.left,endLine:e.left+p}),e.left+=u;break;case a.DIFF_INSERT:l===`
9
- `&&(e.right++,u--),p=u,p===0&&h.left.push({startLine:e.left,endLine:e.left}),o===`
10
- `&&(p-=1),h.right.push({startLine:e.right,endLine:e.right+p}),e.right+=u;break;default:throw new Error("Diff type was not defined.")}}}),h},r.prototype.setCodeMarkers=function(n){n===void 0&&(n={left:[],right:[]});for(var a=[],h={left:[],right:[]},e=0;e<n.left.length;e++){var t={startRow:n.left[e].startLine-1,endRow:n.left[e].endLine,type:"text",className:"codeMarker"};h.left.push(t)}for(var e=0;e<n.right.length;e++){var t={startRow:n.right[e].startLine-1,endRow:n.right[e].endLine,type:"text",className:"codeMarker"};h.right.push(t)}return a[0]=h.left,a[1]=h.right,a},r.prototype.render=function(){var n=this.diff();return Ht.createElement(Ai.default,{name:this.props.name,className:this.props.className,focus:this.props.focus,orientation:this.props.orientation,splits:this.props.splits,mode:this.props.mode,theme:this.props.theme,height:this.props.height,width:this.props.width,fontSize:this.props.fontSize,showGutter:this.props.showGutter,onChange:this.onChange,onPaste:this.props.onPaste,onLoad:this.props.onLoad,onScroll:this.props.onScroll,minLines:this.props.minLines,maxLines:this.props.maxLines,readOnly:this.props.readOnly,highlightActiveLine:this.props.highlightActiveLine,showPrintMargin:this.props.showPrintMargin,tabSize:this.props.tabSize,cursorStart:this.props.cursorStart,editorProps:this.props.editorProps,style:this.props.style,scrollMargin:this.props.scrollMargin,setOptions:this.props.setOptions,wrapEnabled:this.props.wrapEnabled,enableBasicAutocompletion:this.props.enableBasicAutocompletion,enableLiveAutocompletion:this.props.enableLiveAutocompletion,value:this.state.value,markers:n})},r.propTypes={cursorStart:z.number,editorProps:z.object,enableBasicAutocompletion:z.bool,enableLiveAutocompletion:z.bool,focus:z.bool,fontSize:z.number,height:z.string,highlightActiveLine:z.bool,maxLines:z.number,minLines:z.number,mode:z.string,name:z.string,className:z.string,onLoad:z.func,onPaste:z.func,onScroll:z.func,onChange:z.func,orientation:z.string,readOnly:z.bool,scrollMargin:z.array,setOptions:z.object,showGutter:z.bool,showPrintMargin:z.bool,splits:z.number,style:z.object,tabSize:z.number,theme:z.string,value:z.array,width:z.string,wrapEnabled:z.bool},r.defaultProps={cursorStart:1,editorProps:{},enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,focus:!1,fontSize:12,height:"500px",highlightActiveLine:!0,maxLines:null,minLines:null,mode:"",name:"ace-editor",onLoad:null,onScroll:null,onPaste:null,onChange:null,orientation:"beside",readOnly:!1,scrollMargin:[0,0,0,0],setOptions:{},showGutter:!0,showPrintMargin:!0,splits:2,style:{},tabSize:4,theme:"github",value:["",""],width:"500px",wrapEnabled:!0},r}(Ht.Component);Pe.default=Di;Object.defineProperty(ge,"__esModule",{value:!0});var qt=ge.diff=xt=ge.split=void 0,Li=de,$i=Pe;qt=ge.diff=$i.default;var Ii=ae,xt=ge.split=Ii.default,zi=ge.default=Li.default;const Bi=vn({__proto__:null,default:zi,get diff(){return qt},get split(){return xt}},[ge]);export{Bi as i};