iobroker.admin 7.6.2 → 7.6.4
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.
- package/README.md +12 -14
- package/admin/custom/assets/AdminComponentEasyAccessSet__loadShare___mf_0_iobroker_mf_1_adapter_mf_2_react_mf_2_v5__loadShare__-DnBKtZGU.js +1 -0
- package/admin/custom/assets/AdminComponentEasyAccessSet__loadShare__react__loadShare__-CEWlgS6L.js +1 -0
- package/admin/custom/assets/AdminComponentEasyAccessSet__loadShare__react_mf_2_dom__loadShare__-BaTCLP1q.js +1 -0
- package/admin/custom/assets/Components-BGVs6Dmn.js +1 -0
- package/admin/custom/assets/TextField-ChPwodvp.js +109 -0
- package/admin/custom/assets/_commonjsHelpers-D6-XlEtG.js +1 -0
- package/admin/custom/assets/bootstrap-CTERJrgr.js +1 -0
- package/admin/custom/assets/createSvgIcon-D2osie2l.js +7 -0
- package/admin/custom/assets/defaultTheme-CFicWEn0.js +16 -0
- package/admin/custom/assets/hostInit-DAQ2zgXM.js +1 -1
- package/admin/custom/assets/index-BqaC8TTV.js +1397 -0
- package/admin/custom/assets/index-BwCOsmBT.js +31 -0
- package/admin/custom/assets/index-C9L9KccV.js +779 -0
- package/admin/custom/assets/index-CGID5h1b.js +779 -0
- package/{adminWww/assets/index-Di7Jseht.js → admin/custom/assets/index-Co3YA5NW.js} +1 -1
- package/admin/custom/assets/index-DIVai5gZ.js +119 -0
- package/admin/custom/assets/index-DrWcIcrD.js +1 -0
- package/admin/custom/assets/index-IIKn7Ixx.js +1 -0
- package/admin/custom/assets/index-PIXQ0sh_.js +2 -0
- package/admin/custom/assets/index-eQxyhk2m.js +24 -0
- package/admin/custom/assets/jsx-runtime-Bhtgc1Ek.js +9 -0
- package/admin/custom/assets/useTheme-COyz47gO.js +1 -0
- package/admin/custom/assets/virtualExposes-BufY-8i6.js +2 -0
- package/admin/custom/customComponents.js +2 -2
- package/admin/i18n/{de/translations.json → de.json} +35 -34
- package/admin/i18n/{en/translations.json → en.json} +38 -37
- package/admin/i18n/{es/translations.json → es.json} +39 -38
- package/admin/i18n/{fr/translations.json → fr.json} +39 -38
- package/admin/i18n/{it/translations.json → it.json} +39 -38
- package/admin/i18n/{nl/translations.json → nl.json} +39 -38
- package/admin/i18n/{pl/translations.json → pl.json} +39 -38
- package/admin/i18n/{pt/translations.json → pt.json} +39 -38
- package/admin/i18n/{ru/translations.json → ru.json} +39 -38
- package/admin/i18n/{uk/translations.json → uk.json} +7 -6
- package/admin/i18n/{zh-cn/translations.json → zh-cn.json} +39 -38
- package/admin/jsonConfig.json5 +9 -0
- package/adminWww/assets/{AdapterUpdateDialog-CdDzwRjx.js → AdapterUpdateDialog-D5A35Ofn.js} +1 -1
- package/adminWww/assets/{Adapters-BtSoe3ny.js → Adapters-QfGvr9Xv.js} +1 -1
- package/adminWww/assets/{Config-DV-y10Fh.js → Config-J_9jPJSh.js} +1 -1
- package/adminWww/assets/{CustomModal-CYOPWjwy.js → CustomModal-_hsT1UfZ.js} +1 -1
- package/adminWww/assets/{CustomTab-cprIlE4B.js → CustomTab-k0r6if9B.js} +1 -1
- package/adminWww/assets/{DefaultPropsProvider-Beyggw1o.js → DefaultPropsProvider-BrbE0teb.js} +2 -2
- package/adminWww/assets/{EasyMode-Cd88-W7q.js → EasyMode-BR5t1u_s.js} +1 -1
- package/adminWww/assets/{Enums-nUibAZSg.js → Enums-DyPrfI2O.js} +1 -1
- package/adminWww/assets/{Fields-vrlzBhCD.js → Fields-Vpif7eQH.js} +1 -1
- package/adminWww/assets/{Files-DClcJEP9.js → Files-XKQDh_3j.js} +1 -1
- package/adminWww/assets/FilledInput-D-tz8rvg.js +2 -0
- package/adminWww/assets/{Hosts-DLnI_Hxs.js → Hosts-Dt3S3r7E.js} +1 -1
- package/adminWww/assets/Instances-Da-mNkXP.js +2 -0
- package/adminWww/assets/{Intro-wT4JOxpS.js → Intro-pr1AT7Gn.js} +1 -1
- package/adminWww/assets/{Logs-CSsFxtVG.js → Logs-CoAIXCkZ.js} +1 -1
- package/adminWww/assets/{Objects-Bbrov7BJ.js → Objects-CwBnoFN-.js} +1 -1
- package/adminWww/assets/{State-CmEur1zC.js → State-XZNqqv8y.js} +1 -1
- package/adminWww/assets/{Tabs-CmlBtpRi.js → Tabs-CFvfAcjP.js} +10 -10
- package/adminWww/assets/{Users-CPHL5ErP.js → Users-y0PgSeFL.js} +1 -1
- package/adminWww/assets/_commonjsHelpers-D6-XlEtG.js +1 -0
- package/adminWww/assets/ace-B1YQ8uqS.js +980 -0
- package/adminWww/assets/blueGrey-B0oIowPK.js +29 -0
- package/adminWww/assets/{bootstrap-CoF0Rq1_.js → bootstrap-FVlt-hkS.js} +94 -95
- package/adminWww/assets/{createSvgIcon-DHNqxcCi.js → createSvgIcon-DH-uXnd0.js} +1 -1
- package/adminWww/assets/{emotion-react.browser.esm-DHkeNZGw.js → emotion-react.browser.esm-DApPKwaj.js} +1 -1
- package/adminWww/assets/{emotion-styled.browser.esm-DkldMRyw.js → emotion-styled.browser.esm-Dc05hmeu.js} +1 -1
- package/adminWww/assets/{emotion-utils.browser.esm-CKteYtrd.js → emotion-utils.browser.esm-DOjH6Olm.js} +1 -1
- package/adminWww/assets/{geosearch.module-cgRkjHe4.js → geosearch.module-CWfRtxrN.js} +1 -1
- package/adminWww/assets/{iconBase-CxzgaDaB.js → iconBase-CgxZ5MMC.js} +1 -1
- package/adminWww/assets/{index-ChNtEgbM.js → index-BN8A2xkW.js} +1 -1
- package/adminWww/assets/{index-DO87nxhY.js → index-BXSb0Ud9.js} +2 -2
- package/adminWww/assets/index-Bj8P5tgE.js +55 -0
- package/adminWww/assets/{index-C3WYIc6x.js → index-Bsv_DXxB.js} +1 -1
- package/adminWww/assets/{index-SuMq84bM.js → index-C1TmeS7j.js} +1 -1
- package/adminWww/assets/{index-BMTRswnc.js → index-CJvbfjSs.js} +1 -1
- package/adminWww/assets/index-Cm4u8yKm.js +7 -0
- package/adminWww/assets/index-Co3YA5NW.js +9 -0
- package/adminWww/assets/{index-DgvYPGcD.js → index-D7Rlw-5R.js} +1 -1
- package/adminWww/assets/{index-BmaLPlND.js → index-DiMYzxTU.js} +1 -1
- package/adminWww/assets/{index-CFcKrkeG.js → index-HOidq_rM.js} +1 -1
- package/adminWww/assets/{index-Dhk9onlg.js → index-gHyOgbGJ.js} +1 -1
- package/adminWww/assets/{iobroker_admin__loadShare__leaflet__loadShare__-FMqZHPyC.js → iobroker_admin__loadShare__leaflet__loadShare__-B1OZ7tj-.js} +1 -1
- package/adminWww/assets/{iobroker_admin__loadShare__prop_mf_2_types__loadShare__-C8Lvs8Es.js → iobroker_admin__loadShare__prop_mf_2_types__loadShare__-BGyJCibC.js} +1 -1
- package/adminWww/assets/{iobroker_admin__loadShare__react__loadShare__-T96CJO0k.js → iobroker_admin__loadShare__react__loadShare__-DtlEM_52.js} +1 -1
- package/adminWww/assets/{leaflet-src-CnimXdd7.js → leaflet-src-A2ZHl6nF.js} +1 -1
- package/adminWww/assets/{sentry-Cc5WioqD.js → sentry-AXxoSb7Q.js} +1 -1
- package/adminWww/assets/{zh-cn-CzBq9Ifq.js → zh-cn-49uPQVT0.js} +1 -1
- package/adminWww/index.html +1 -1
- package/adminWww/mf-manifest.json +1 -1
- package/adminWww/remoteEntry.js +2 -2
- package/build-backend/lib/utils.js +10 -10
- package/build-backend/lib/utils.js.map +1 -1
- package/build-backend/lib/web.js +9 -2
- package/build-backend/lib/web.js.map +1 -1
- package/build-backend/main.js +4 -1
- package/build-backend/main.js.map +1 -1
- package/io-package.json +38 -27
- package/package.json +10 -11
- package/adminWww/assets/FilledInput-Bfz0Aef-.js +0 -2
- package/adminWww/assets/Instances-BaExCFtw.js +0 -2
- package/adminWww/assets/_commonjsHelpers-BosuxZz1.js +0 -1
- package/adminWww/assets/ace-BAuRYJjv.js +0 -978
- package/adminWww/assets/blueGrey-BKTirx-Z.js +0 -29
- package/adminWww/assets/index-BKyxHMBB.js +0 -55
- package/adminWww/assets/index-yI_g3hCZ.js +0 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as y}from"./iobroker_admin__loadShare__react__loadShare__-
|
|
1
|
+
import{i as y}from"./iobroker_admin__loadShare__react__loadShare__-DtlEM_52.js";import{a as I,g as C,y as R,j as h,s as _,c as b,e as z,b as w,z as j}from"./DefaultPropsProvider-BrbE0teb.js";import"./iobroker_admin__loadShare__prop_mf_2_types__loadShare__-BGyJCibC.js";function M(o){return C("MuiSvgIcon",o)}const k=I("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]),N=o=>{const{color:e,fontSize:t,classes:i}=o,r={root:["root",e!=="inherit"&&`color${z(e)}`,`fontSize${z(t)}`]};return w(r,M,i)},$=_("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:t}=o;return[e.root,t.color!=="inherit"&&e[`color${z(t.color)}`],e[`fontSize${z(t.fontSize)}`]]}})(j(({theme:o})=>{var e,t,i,r,l,m,n,u,c,S,a,f,v,p;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(r=(e=o.transitions)==null?void 0:e.create)==null?void 0:r.call(e,"fill",{duration:(i=(t=(o.vars??o).transitions)==null?void 0:t.duration)==null?void 0:i.shorter}),variants:[{props:s=>!s.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((m=(l=o.typography)==null?void 0:l.pxToRem)==null?void 0:m.call(l,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((u=(n=o.typography)==null?void 0:n.pxToRem)==null?void 0:u.call(n,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((S=(c=o.typography)==null?void 0:c.pxToRem)==null?void 0:S.call(c,35))||"2.1875rem"}},...Object.entries((o.vars??o).palette).filter(([,s])=>s&&s.main).map(([s])=>{var d,g;return{props:{color:s},style:{color:(g=(d=(o.vars??o).palette)==null?void 0:d[s])==null?void 0:g.main}}}),{props:{color:"action"},style:{color:(f=(a=(o.vars??o).palette)==null?void 0:a.action)==null?void 0:f.active}},{props:{color:"disabled"},style:{color:(p=(v=(o.vars??o).palette)==null?void 0:v.action)==null?void 0:p.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),x=y.forwardRef(function(e,t){const i=R({props:e,name:"MuiSvgIcon"}),{children:r,className:l,color:m="inherit",component:n="svg",fontSize:u="medium",htmlColor:c,inheritViewBox:S=!1,titleAccess:a,viewBox:f="0 0 24 24",...v}=i,p=y.isValidElement(r)&&r.type==="svg",s={...i,color:m,component:n,fontSize:u,instanceFontSize:e.fontSize,inheritViewBox:S,viewBox:f,hasSvgAsChild:p},d={};S||(d.viewBox=f);const g=N(s);return h.jsxs($,{as:n,className:b(g.root,l),focusable:"false",color:c,"aria-hidden":a?void 0:!0,role:a?"img":void 0,ref:t,...d,...v,...p&&r.props,ownerState:s,children:[p?r.props.children:r,a?h.jsx("title",{children:a}):null]})});x.muiName="SvgIcon";function B(o,e){function t(i,r){return h.jsx(x,{"data-testid":`${e}Icon`,ref:r,...i,children:o})}return t.muiName=x.muiName,y.memo(y.forwardRef(t))}export{x as S,B as c,M as g,k as s};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as u}from"./iobroker_admin__loadShare__react__loadShare__-
|
|
1
|
+
import{i as u}from"./iobroker_admin__loadShare__react__loadShare__-DtlEM_52.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-DOjH6Olm.js";import{s as p}from"./emotion-serialize.esm-BUa21YfQ.js";import"./iobroker_admin__mf_v__runtimeInit__mf_v__-VDoBF19b.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
2
|
* react-is.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as E}from"./extends-CF3RwP-h.js";import{i as T}from"./iobroker_admin__loadShare___mf_0_emotion_mf_1_react__loadShare__-gw2iqPBS.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-
|
|
1
|
+
import{_ as E}from"./extends-CF3RwP-h.js";import{i as T}from"./iobroker_admin__loadShare___mf_0_emotion_mf_1_react__loadShare__-gw2iqPBS.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-DOjH6Olm.js";import{i as p}from"./iobroker_admin__loadShare__react__loadShare__-DtlEM_52.js";import"./iobroker_admin__mf_v__runtimeInit__mf_v__-VDoBF19b.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 +1 @@
|
|
|
1
|
-
import{a as f,i as o}from"./iobroker_admin__loadShare__react__loadShare__-
|
|
1
|
+
import{a as f,i as o}from"./iobroker_admin__loadShare__react__loadShare__-DtlEM_52.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 +1 @@
|
|
|
1
|
-
import{t as K,i as d}from"./iobroker_admin__loadShare__leaflet__loadShare__-FMqZHPyC.js";import"./_commonjsHelpers-BosuxZz1.js";import"./iobroker_admin__mf_v__runtimeInit__mf_v__-VDoBF19b.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+=`®ion=${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
|
+
import{t as K,i as d}from"./iobroker_admin__loadShare__leaflet__loadShare__-B1OZ7tj-.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./iobroker_admin__mf_v__runtimeInit__mf_v__-VDoBF19b.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+=`®ion=${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 +1 @@
|
|
|
1
|
-
import{R as a}from"./iobroker_admin__loadShare__react__loadShare__-
|
|
1
|
+
import{R as a}from"./iobroker_admin__loadShare__react__loadShare__-DtlEM_52.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,4 +1,4 @@
|
|
|
1
|
-
import{a as Be}from"./ace-BAuRYJjv.js";import{i as it}from"./iobroker_admin__loadShare__prop_mf_2_types__loadShare__-C8Lvs8Es.js";import{i as ot}from"./iobroker_admin__loadShare__react__loadShare__-T96CJO0k.js";import{c as q}from"./_commonjsHelpers-BosuxZz1.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&>.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/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(`
|
|
1
|
+
import{a as Be}from"./ace-B1YQ8uqS.js";import{i as it}from"./iobroker_admin__loadShare__prop_mf_2_types__loadShare__-BGyJCibC.js";import{i as ot}from"./iobroker_admin__loadShare__react__loadShare__-DtlEM_52.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&>.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/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
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,"&").replace(f,"<").replace(u,">").replace(l,"¶<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
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
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])+`
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./bootstrap-
|
|
2
|
-
import{_ as c}from"./preload-helper-C1FmrZbK.js";import"./iobroker_admin__mf_v__runtimeInit__mf_v__-VDoBF19b.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))s(e);new MutationObserver(e=>{for(const r of e)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function n(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?r.credentials="include":e.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(e){if(e.ep)return;e.ep=!0;const r=n(e);fetch(e.href,r)}})();c(()=>import("./bootstrap-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./bootstrap-FVlt-hkS.js","./DefaultPropsProvider-BrbE0teb.js","./iobroker_admin__loadShare__react__loadShare__-DtlEM_52.js","./_commonjsHelpers-D6-XlEtG.js","./iobroker_admin__mf_v__runtimeInit__mf_v__-VDoBF19b.js","./iobroker_admin__loadShare__prop_mf_2_types__loadShare__-BGyJCibC.js","./emotion-serialize.esm-BUa21YfQ.js","./iobroker_admin__loadShare___mf_0_emotion_mf_1_react__loadShare__-gw2iqPBS.js","./ace-B1YQ8uqS.js","./FilledInput-D-tz8rvg.js","./preload-helper-C1FmrZbK.js","./blueGrey-B0oIowPK.js","./emotion-cache.browser.esm-B8BFze5o.js","./iobroker_admin__loadShare__leaflet__loadShare__-B1OZ7tj-.js","./extends-CF3RwP-h.js","./bootstrap-CrpeRPv0.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as c}from"./preload-helper-C1FmrZbK.js";import"./iobroker_admin__mf_v__runtimeInit__mf_v__-VDoBF19b.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))s(e);new MutationObserver(e=>{for(const r of e)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function n(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?r.credentials="include":e.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(e){if(e.ep)return;e.ep=!0;const r=n(e);fetch(e.href,r)}})();c(()=>import("./bootstrap-FVlt-hkS.js").then(i=>i.ag),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]),import.meta.url);
|