Files
developtools_ace-ets2bundle/compiler/codegen/codegen_ets.js
T
houhaoyu 3ce0f64e3b houhaoyu@huawei.com
update codegen

Signed-off-by: houhaoyu <houhaoyu@huawei.com>
Change-Id: I589f5cab1ec8a22f073cb37649bc772bd798607e
2022-05-27 18:51:03 +08:00

16 lines
186 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
(()=>{var e={486:function(e,t,r){var n;e=r.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",c=32,u=128,l=1/0,p=9007199254740991,f=NaN,d=4294967295,y=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",c],["partialRight",64],["rearg",256]],h="[object Arguments]",m="[object Array]",g="[object Boolean]",E="[object Date]",v="[object Error]",T="[object Function]",S="[object GeneratorFunction]",_="[object Map]",N="[object Number]",A="[object Object]",C="[object Promise]",w="[object RegExp]",b="[object Set]",R="[object String]",O="[object Symbol]",I="[object WeakMap]",M="[object ArrayBuffer]",P="[object DataView]",x="[object Float32Array]",L="[object Float64Array]",k="[object Int8Array]",F="[object Int16Array]",D="[object Int32Array]",U="[object Uint8Array]",B="[object Uint8ClampedArray]",G="[object Uint16Array]",z="[object Uint32Array]",j=/\b__p \+= '';/g,V=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,H=RegExp($.source),Y=RegExp(q.source),Q=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,J=/<%=([\s\S]+?)%>/g,K=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,re=RegExp(te.source),ne=/^\s+/,oe=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,le=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,fe=/\w*$/,de=/^[-+]0x[0-9a-f]+$/i,ye=/^0b[01]+$/i,he=/^\[object .+?Constructor\]$/,me=/^0o[0-7]+$/i,ge=/^(?:0|[1-9]\d*)$/,Ee=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ve=/($^)/,Te=/['\n\r\u2028\u2029\\]/g,Se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",_e="a-z\\xdf-\\xf6\\xf8-\\xff",Ne="A-Z\\xc0-\\xd6\\xd8-\\xde",Ae="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ce="["+Ae+"]",we="["+Se+"]",be="\\d+",Re="["+_e+"]",Oe="[^\\ud800-\\udfff"+Ae+be+"\\u2700-\\u27bf"+_e+Ne+"]",Ie="\\ud83c[\\udffb-\\udfff]",Me="[^\\ud800-\\udfff]",Pe="(?:\\ud83c[\\udde6-\\uddff]){2}",xe="[\\ud800-\\udbff][\\udc00-\\udfff]",Le="["+Ne+"]",ke="(?:"+Re+"|"+Oe+")",Fe="(?:"+Le+"|"+Oe+")",De="(?:['](?:d|ll|m|re|s|t|ve))?",Ue="(?:['](?:D|LL|M|RE|S|T|VE))?",Be="(?:"+we+"|"+Ie+")?",Ge="[\\ufe0e\\ufe0f]?",ze=Ge+Be+"(?:\\u200d(?:"+[Me,Pe,xe].join("|")+")"+Ge+Be+")*",je="(?:"+["[\\u2700-\\u27bf]",Pe,xe].join("|")+")"+ze,Ve="(?:"+[Me+we+"?",we,Pe,xe,"[\\ud800-\\udfff]"].join("|")+")",We=RegExp("[']","g"),$e=RegExp(we,"g"),qe=RegExp(Ie+"(?="+Ie+")|"+Ve+ze,"g"),He=RegExp([Le+"?"+Re+"+"+De+"(?="+[Ce,Le,"$"].join("|")+")",Fe+"+"+Ue+"(?="+[Ce,Le+ke,"$"].join("|")+")",Le+"?"+ke+"+"+De,Le+"+"+Ue,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",be,je].join("|"),"g"),Ye=RegExp("[\\u200d\\ud800-\\udfff"+Se+"\\ufe0e\\ufe0f]"),Qe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Xe=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Je=-1,Ke={};Ke[x]=Ke[L]=Ke[k]=Ke[F]=Ke[D]=Ke[U]=Ke[B]=Ke[G]=Ke[z]=!0,Ke[h]=Ke[m]=Ke[M]=Ke[g]=Ke[P]=Ke[E]=Ke[v]=Ke[T]=Ke[_]=Ke[N]=Ke[A]=Ke[w]=Ke[b]=Ke[R]=Ke[I]=!1;var Ze={};Ze[h]=Ze[m]=Ze[M]=Ze[P]=Ze[g]=Ze[E]=Ze[x]=Ze[L]=Ze[k]=Ze[F]=Ze[D]=Ze[_]=Ze[N]=Ze[A]=Ze[w]=Ze[b]=Ze[R]=Ze[O]=Ze[U]=Ze[B]=Ze[G]=Ze[z]=!0,Ze[v]=Ze[T]=Ze[I]=!1;var et={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tt=parseFloat,rt=parseInt,nt="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,ot="object"==typeof self&&self&&self.Object===Object&&self,it=nt||ot||Function("return this")(),at=t&&!t.nodeType&&t,st=at&&e&&!e.nodeType&&e,ct=st&&st.exports===at,ut=ct&&nt.process,lt=function(){try{return st&&st.require&&st.require("util").types||ut&&ut.binding&&ut.binding("util")}catch(e){}}(),pt=lt&&lt.isArrayBuffer,ft=lt&&lt.isDate,dt=lt&&lt.isMap,yt=lt&&lt.isRegExp,ht=lt&&lt.isSet,mt=lt&&lt.isTypedArray;function gt(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Et(e,t,r,n){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(n,a,r(a),e)}return n}function vt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function Tt(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}function St(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function _t(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}function Nt(e,t){return!(null==e||!e.length)&&xt(e,t,0)>-1}function At(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1}function Ct(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}function wt(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}function bt(e,t,r,n){var o=-1,i=null==e?0:e.length;for(n&&i&&(r=e[++o]);++o<i;)r=t(r,e[o],o,e);return r}function Rt(e,t,r,n){var o=null==e?0:e.length;for(n&&o&&(r=e[--o]);o--;)r=t(r,e[o],o,e);return r}function Ot(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var It=Dt("length");function Mt(e,t,r){var n;return r(e,(function(e,r,o){if(t(e,r,o))return n=r,!1})),n}function Pt(e,t,r,n){for(var o=e.length,i=r+(n?1:-1);n?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function xt(e,t,r){return t==t?function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1}(e,t,r):Pt(e,kt,r)}function Lt(e,t,r,n){for(var o=r-1,i=e.length;++o<i;)if(n(e[o],t))return o;return-1}function kt(e){return e!=e}function Ft(e,t){var r=null==e?0:e.length;return r?Gt(e,t)/r:f}function Dt(e){return function(t){return null==t?o:t[e]}}function Ut(e){return function(t){return null==e?o:e[t]}}function Bt(e,t,r,n,o){return o(e,(function(e,o,i){r=n?(n=!1,e):t(r,e,o,i)})),r}function Gt(e,t){for(var r,n=-1,i=e.length;++n<i;){var a=t(e[n]);a!==o&&(r=r===o?a:r+a)}return r}function zt(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function jt(e){return e?e.slice(0,ar(e)+1).replace(ne,""):e}function Vt(e){return function(t){return e(t)}}function Wt(e,t){return Ct(t,(function(t){return e[t]}))}function $t(e,t){return e.has(t)}function qt(e,t){for(var r=-1,n=e.length;++r<n&&xt(t,e[r],0)>-1;);return r}function Ht(e,t){for(var r=e.length;r--&&xt(t,e[r],0)>-1;);return r}function Yt(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}var Qt=Ut({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Xt=Ut({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Jt(e){return"\\"+et[e]}function Kt(e){return Ye.test(e)}function Zt(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function er(e,t){return function(r){return e(t(r))}}function tr(e,t){for(var r=-1,n=e.length,o=0,i=[];++r<n;){var a=e[r];a!==t&&a!==s||(e[r]=s,i[o++]=r)}return i}function rr(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}function nr(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=[e,e]})),r}function or(e){return Kt(e)?function(e){for(var t=qe.lastIndex=0;qe.test(e);)++t;return t}(e):It(e)}function ir(e){return Kt(e)?function(e){return e.match(qe)||[]}(e):function(e){return e.split("")}(e)}function ar(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var sr=Ut({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),cr=function e(t){var r,n=(t=null==t?it:cr.defaults(it.Object(),t,cr.pick(it,Xe))).Array,oe=t.Date,Se=t.Error,_e=t.Function,Ne=t.Math,Ae=t.Object,Ce=t.RegExp,we=t.String,be=t.TypeError,Re=n.prototype,Oe=_e.prototype,Ie=Ae.prototype,Me=t["__core-js_shared__"],Pe=Oe.toString,xe=Ie.hasOwnProperty,Le=0,ke=(r=/[^.]+$/.exec(Me&&Me.keys&&Me.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Fe=Ie.toString,De=Pe.call(Ae),Ue=it._,Be=Ce("^"+Pe.call(xe).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ge=ct?t.Buffer:o,ze=t.Symbol,je=t.Uint8Array,Ve=Ge?Ge.allocUnsafe:o,qe=er(Ae.getPrototypeOf,Ae),Ye=Ae.create,et=Ie.propertyIsEnumerable,nt=Re.splice,ot=ze?ze.isConcatSpreadable:o,at=ze?ze.iterator:o,st=ze?ze.toStringTag:o,ut=function(){try{var e=li(Ae,"defineProperty");return e({},"",{}),e}catch(e){}}(),lt=t.clearTimeout!==it.clearTimeout&&t.clearTimeout,It=oe&&oe.now!==it.Date.now&&oe.now,Ut=t.setTimeout!==it.setTimeout&&t.setTimeout,ur=Ne.ceil,lr=Ne.floor,pr=Ae.getOwnPropertySymbols,fr=Ge?Ge.isBuffer:o,dr=t.isFinite,yr=Re.join,hr=er(Ae.keys,Ae),mr=Ne.max,gr=Ne.min,Er=oe.now,vr=t.parseInt,Tr=Ne.random,Sr=Re.reverse,_r=li(t,"DataView"),Nr=li(t,"Map"),Ar=li(t,"Promise"),Cr=li(t,"Set"),wr=li(t,"WeakMap"),br=li(Ae,"create"),Rr=wr&&new wr,Or={},Ir=Bi(_r),Mr=Bi(Nr),Pr=Bi(Ar),xr=Bi(Cr),Lr=Bi(wr),kr=ze?ze.prototype:o,Fr=kr?kr.valueOf:o,Dr=kr?kr.toString:o;function Ur(e){if(rs(e)&&!$a(e)&&!(e instanceof jr)){if(e instanceof zr)return e;if(xe.call(e,"__wrapped__"))return Gi(e)}return new zr(e)}var Br=function(){function e(){}return function(t){if(!ts(t))return{};if(Ye)return Ye(t);e.prototype=t;var r=new e;return e.prototype=o,r}}();function Gr(){}function zr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function jr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function Vr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Wr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function $r(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function qr(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new $r;++t<r;)this.add(e[t])}function Hr(e){var t=this.__data__=new Wr(e);this.size=t.size}function Yr(e,t){var r=$a(e),n=!r&&Wa(e),o=!r&&!n&&Qa(e),i=!r&&!n&&!o&&ls(e),a=r||n||o||i,s=a?zt(e.length,we):[],c=s.length;for(var u in e)!t&&!xe.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||gi(u,c))||s.push(u);return s}function Qr(e){var t=e.length;return t?e[qn(0,t-1)]:o}function Xr(e,t){return Li(Ro(e),an(t,0,e.length))}function Jr(e){return Li(Ro(e))}function Kr(e,t,r){(r!==o&&!za(e[t],r)||r===o&&!(t in e))&&nn(e,t,r)}function Zr(e,t,r){var n=e[t];xe.call(e,t)&&za(n,r)&&(r!==o||t in e)||nn(e,t,r)}function en(e,t){for(var r=e.length;r--;)if(za(e[r][0],t))return r;return-1}function tn(e,t,r,n){return pn(e,(function(e,o,i){t(n,e,r(e),i)})),n}function rn(e,t){return e&&Oo(t,Ps(t),e)}function nn(e,t,r){"__proto__"==t&&ut?ut(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function on(e,t){for(var r=-1,i=t.length,a=n(i),s=null==e;++r<i;)a[r]=s?o:bs(e,t[r]);return a}function an(e,t,r){return e==e&&(r!==o&&(e=e<=r?e:r),t!==o&&(e=e>=t?e:t)),e}function sn(e,t,r,n,i,a){var s,c=1&t,u=2&t,l=4&t;if(r&&(s=i?r(e,n,i,a):r(e)),s!==o)return s;if(!ts(e))return e;var p=$a(e);if(p){if(s=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&xe.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!c)return Ro(e,s)}else{var f=di(e),d=f==T||f==S;if(Qa(e))return _o(e,c);if(f==A||f==h||d&&!i){if(s=u||d?{}:hi(e),!c)return u?function(e,t){return Oo(e,fi(e),t)}(e,function(e,t){return e&&Oo(t,xs(t),e)}(s,e)):function(e,t){return Oo(e,pi(e),t)}(e,rn(s,e))}else{if(!Ze[f])return i?e:{};s=function(e,t,r){var n,o=e.constructor;switch(t){case M:return No(e);case g:case E:return new o(+e);case P:return function(e,t){var r=t?No(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case x:case L:case k:case F:case D:case U:case B:case G:case z:return Ao(e,r);case _:return new o;case N:case R:return new o(e);case w:return function(e){var t=new e.constructor(e.source,fe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case b:return new o;case O:return n=e,Fr?Ae(Fr.call(n)):{}}}(e,f,c)}}a||(a=new Hr);var y=a.get(e);if(y)return y;a.set(e,s),ss(e)?e.forEach((function(n){s.add(sn(n,t,r,n,e,a))})):ns(e)&&e.forEach((function(n,o){s.set(o,sn(n,t,r,o,e,a))}));var m=p?o:(l?u?ni:ri:u?xs:Ps)(e);return vt(m||e,(function(n,o){m&&(n=e[o=n]),Zr(s,o,sn(n,t,r,o,e,a))})),s}function cn(e,t,r){var n=r.length;if(null==e)return!n;for(e=Ae(e);n--;){var i=r[n],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function un(e,t,r){if("function"!=typeof e)throw new be(i);return Ii((function(){e.apply(o,r)}),t)}function ln(e,t,r,n){var o=-1,i=Nt,a=!0,s=e.length,c=[],u=t.length;if(!s)return c;r&&(t=Ct(t,Vt(r))),n?(i=At,a=!1):t.length>=200&&(i=$t,a=!1,t=new qr(t));e:for(;++o<s;){var l=e[o],p=null==r?l:r(l);if(l=n||0!==l?l:0,a&&p==p){for(var f=u;f--;)if(t[f]===p)continue e;c.push(l)}else i(t,p,n)||c.push(l)}return c}Ur.templateSettings={escape:Q,evaluate:X,interpolate:J,variable:"",imports:{_:Ur}},Ur.prototype=Gr.prototype,Ur.prototype.constructor=Ur,zr.prototype=Br(Gr.prototype),zr.prototype.constructor=zr,jr.prototype=Br(Gr.prototype),jr.prototype.constructor=jr,Vr.prototype.clear=function(){this.__data__=br?br(null):{},this.size=0},Vr.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Vr.prototype.get=function(e){var t=this.__data__;if(br){var r=t[e];return r===a?o:r}return xe.call(t,e)?t[e]:o},Vr.prototype.has=function(e){var t=this.__data__;return br?t[e]!==o:xe.call(t,e)},Vr.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=br&&t===o?a:t,this},Wr.prototype.clear=function(){this.__data__=[],this.size=0},Wr.prototype.delete=function(e){var t=this.__data__,r=en(t,e);return!(r<0||(r==t.length-1?t.pop():nt.call(t,r,1),--this.size,0))},Wr.prototype.get=function(e){var t=this.__data__,r=en(t,e);return r<0?o:t[r][1]},Wr.prototype.has=function(e){return en(this.__data__,e)>-1},Wr.prototype.set=function(e,t){var r=this.__data__,n=en(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},$r.prototype.clear=function(){this.size=0,this.__data__={hash:new Vr,map:new(Nr||Wr),string:new Vr}},$r.prototype.delete=function(e){var t=ci(this,e).delete(e);return this.size-=t?1:0,t},$r.prototype.get=function(e){return ci(this,e).get(e)},$r.prototype.has=function(e){return ci(this,e).has(e)},$r.prototype.set=function(e,t){var r=ci(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},qr.prototype.add=qr.prototype.push=function(e){return this.__data__.set(e,a),this},qr.prototype.has=function(e){return this.__data__.has(e)},Hr.prototype.clear=function(){this.__data__=new Wr,this.size=0},Hr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Hr.prototype.get=function(e){return this.__data__.get(e)},Hr.prototype.has=function(e){return this.__data__.has(e)},Hr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Wr){var n=r.__data__;if(!Nr||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new $r(n)}return r.set(e,t),this.size=r.size,this};var pn=Po(vn),fn=Po(Tn,!0);function dn(e,t){var r=!0;return pn(e,(function(e,n,o){return r=!!t(e,n,o)})),r}function yn(e,t,r){for(var n=-1,i=e.length;++n<i;){var a=e[n],s=t(a);if(null!=s&&(c===o?s==s&&!us(s):r(s,c)))var c=s,u=a}return u}function hn(e,t){var r=[];return pn(e,(function(e,n,o){t(e,n,o)&&r.push(e)})),r}function mn(e,t,r,n,o){var i=-1,a=e.length;for(r||(r=mi),o||(o=[]);++i<a;){var s=e[i];t>0&&r(s)?t>1?mn(s,t-1,r,n,o):wt(o,s):n||(o[o.length]=s)}return o}var gn=xo(),En=xo(!0);function vn(e,t){return e&&gn(e,t,Ps)}function Tn(e,t){return e&&En(e,t,Ps)}function Sn(e,t){return _t(t,(function(t){return Ka(e[t])}))}function _n(e,t){for(var r=0,n=(t=Eo(t,e)).length;null!=e&&r<n;)e=e[Ui(t[r++])];return r&&r==n?e:o}function Nn(e,t,r){var n=t(e);return $a(e)?n:wt(n,r(e))}function An(e){return null==e?e===o?"[object Undefined]":"[object Null]":st&&st in Ae(e)?function(e){var t=xe.call(e,st),r=e[st];try{e[st]=o;var n=!0}catch(e){}var i=Fe.call(e);return n&&(t?e[st]=r:delete e[st]),i}(e):function(e){return Fe.call(e)}(e)}function Cn(e,t){return e>t}function wn(e,t){return null!=e&&xe.call(e,t)}function bn(e,t){return null!=e&&t in Ae(e)}function Rn(e,t,r){for(var i=r?At:Nt,a=e[0].length,s=e.length,c=s,u=n(s),l=1/0,p=[];c--;){var f=e[c];c&&t&&(f=Ct(f,Vt(t))),l=gr(f.length,l),u[c]=!r&&(t||a>=120&&f.length>=120)?new qr(c&&f):o}f=e[0];var d=-1,y=u[0];e:for(;++d<a&&p.length<l;){var h=f[d],m=t?t(h):h;if(h=r||0!==h?h:0,!(y?$t(y,m):i(p,m,r))){for(c=s;--c;){var g=u[c];if(!(g?$t(g,m):i(e[c],m,r)))continue e}y&&y.push(m),p.push(h)}}return p}function On(e,t,r){var n=null==(e=wi(e,t=Eo(t,e)))?e:e[Ui(Ji(t))];return null==n?o:gt(n,e,r)}function In(e){return rs(e)&&An(e)==h}function Mn(e,t,r,n,i){return e===t||(null==e||null==t||!rs(e)&&!rs(t)?e!=e&&t!=t:function(e,t,r,n,i,a){var s=$a(e),c=$a(t),u=s?m:di(e),l=c?m:di(t),p=(u=u==h?A:u)==A,f=(l=l==h?A:l)==A,d=u==l;if(d&&Qa(e)){if(!Qa(t))return!1;s=!0,p=!1}if(d&&!p)return a||(a=new Hr),s||ls(e)?ei(e,t,r,n,i,a):function(e,t,r,n,o,i,a){switch(r){case P:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case M:return!(e.byteLength!=t.byteLength||!i(new je(e),new je(t)));case g:case E:case N:return za(+e,+t);case v:return e.name==t.name&&e.message==t.message;case w:case R:return e==t+"";case _:var s=Zt;case b:var c=1&n;if(s||(s=rr),e.size!=t.size&&!c)return!1;var u=a.get(e);if(u)return u==t;n|=2,a.set(e,t);var l=ei(s(e),s(t),n,o,i,a);return a.delete(e),l;case O:if(Fr)return Fr.call(e)==Fr.call(t)}return!1}(e,t,u,r,n,i,a);if(!(1&r)){var y=p&&xe.call(e,"__wrapped__"),T=f&&xe.call(t,"__wrapped__");if(y||T){var S=y?e.value():e,C=T?t.value():t;return a||(a=new Hr),i(S,C,r,n,a)}}return!!d&&(a||(a=new Hr),function(e,t,r,n,i,a){var s=1&r,c=ri(e),u=c.length;if(u!=ri(t).length&&!s)return!1;for(var l=u;l--;){var p=c[l];if(!(s?p in t:xe.call(t,p)))return!1}var f=a.get(e),d=a.get(t);if(f&&d)return f==t&&d==e;var y=!0;a.set(e,t),a.set(t,e);for(var h=s;++l<u;){var m=e[p=c[l]],g=t[p];if(n)var E=s?n(g,m,p,t,e,a):n(m,g,p,e,t,a);if(!(E===o?m===g||i(m,g,r,n,a):E)){y=!1;break}h||(h="constructor"==p)}if(y&&!h){var v=e.constructor,T=t.constructor;v==T||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof T&&T instanceof T||(y=!1)}return a.delete(e),a.delete(t),y}(e,t,r,n,i,a))}(e,t,r,n,Mn,i))}function Pn(e,t,r,n){var i=r.length,a=i,s=!n;if(null==e)return!a;for(e=Ae(e);i--;){var c=r[i];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<a;){var u=(c=r[i])[0],l=e[u],p=c[1];if(s&&c[2]){if(l===o&&!(u in e))return!1}else{var f=new Hr;if(n)var d=n(l,p,u,e,t,f);if(!(d===o?Mn(p,l,3,n,f):d))return!1}}return!0}function xn(e){return!(!ts(e)||(t=e,ke&&ke in t))&&(Ka(e)?Be:he).test(Bi(e));var t}function Ln(e){return"function"==typeof e?e:null==e?oc:"object"==typeof e?$a(e)?Bn(e[0],e[1]):Un(e):dc(e)}function kn(e){if(!_i(e))return hr(e);var t=[];for(var r in Ae(e))xe.call(e,r)&&"constructor"!=r&&t.push(r);return t}function Fn(e,t){return e<t}function Dn(e,t){var r=-1,o=Ha(e)?n(e.length):[];return pn(e,(function(e,n,i){o[++r]=t(e,n,i)})),o}function Un(e){var t=ui(e);return 1==t.length&&t[0][2]?Ai(t[0][0],t[0][1]):function(r){return r===e||Pn(r,e,t)}}function Bn(e,t){return vi(e)&&Ni(t)?Ai(Ui(e),t):function(r){var n=bs(r,e);return n===o&&n===t?Rs(r,e):Mn(t,n,3)}}function Gn(e,t,r,n,i){e!==t&&gn(t,(function(a,s){if(i||(i=new Hr),ts(a))!function(e,t,r,n,i,a,s){var c=Ri(e,r),u=Ri(t,r),l=s.get(u);if(l)Kr(e,r,l);else{var p=a?a(c,u,r+"",e,t,s):o,f=p===o;if(f){var d=$a(u),y=!d&&Qa(u),h=!d&&!y&&ls(u);p=u,d||y||h?$a(c)?p=c:Ya(c)?p=Ro(c):y?(f=!1,p=_o(u,!0)):h?(f=!1,p=Ao(u,!0)):p=[]:is(u)||Wa(u)?(p=c,Wa(c)?p=Es(c):ts(c)&&!Ka(c)||(p=hi(u))):f=!1}f&&(s.set(u,p),i(p,u,n,a,s),s.delete(u)),Kr(e,r,p)}}(e,t,s,r,Gn,n,i);else{var c=n?n(Ri(e,s),a,s+"",e,t,i):o;c===o&&(c=a),Kr(e,s,c)}}),xs)}function zn(e,t){var r=e.length;if(r)return gi(t+=t<0?r:0,r)?e[t]:o}function jn(e,t,r){t=t.length?Ct(t,(function(e){return $a(e)?function(t){return _n(t,1===e.length?e[0]:e)}:e})):[oc];var n=-1;return t=Ct(t,Vt(si())),function(e,t){var n=e.length;for(e.sort((function(e,t){return function(e,t,r){for(var n=-1,o=e.criteria,i=t.criteria,a=o.length,s=r.length;++n<a;){var c=Co(o[n],i[n]);if(c)return n>=s?c:c*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)}));n--;)e[n]=e[n].value;return e}(Dn(e,(function(e,r,o){return{criteria:Ct(t,(function(t){return t(e)})),index:++n,value:e}})))}function Vn(e,t,r){for(var n=-1,o=t.length,i={};++n<o;){var a=t[n],s=_n(e,a);r(s,a)&&Jn(i,Eo(a,e),s)}return i}function Wn(e,t,r,n){var o=n?Lt:xt,i=-1,a=t.length,s=e;for(e===t&&(t=Ro(t)),r&&(s=Ct(e,Vt(r)));++i<a;)for(var c=0,u=t[i],l=r?r(u):u;(c=o(s,l,c,n))>-1;)s!==e&&nt.call(s,c,1),nt.call(e,c,1);return e}function $n(e,t){for(var r=e?t.length:0,n=r-1;r--;){var o=t[r];if(r==n||o!==i){var i=o;gi(o)?nt.call(e,o,1):uo(e,o)}}return e}function qn(e,t){return e+lr(Tr()*(t-e+1))}function Hn(e,t){var r="";if(!e||t<1||t>p)return r;do{t%2&&(r+=e),(t=lr(t/2))&&(e+=e)}while(t);return r}function Yn(e,t){return Mi(Ci(e,t,oc),e+"")}function Qn(e){return Qr(zs(e))}function Xn(e,t){var r=zs(e);return Li(r,an(t,0,r.length))}function Jn(e,t,r,n){if(!ts(e))return e;for(var i=-1,a=(t=Eo(t,e)).length,s=a-1,c=e;null!=c&&++i<a;){var u=Ui(t[i]),l=r;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(i!=s){var p=c[u];(l=n?n(p,u,c):o)===o&&(l=ts(p)?p:gi(t[i+1])?[]:{})}Zr(c,u,l),c=c[u]}return e}var Kn=Rr?function(e,t){return Rr.set(e,t),e}:oc,Zn=ut?function(e,t){return ut(e,"toString",{configurable:!0,enumerable:!1,value:tc(t),writable:!0})}:oc;function eo(e){return Li(zs(e))}function to(e,t,r){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=n(i);++o<i;)a[o]=e[o+t];return a}function ro(e,t){var r;return pn(e,(function(e,n,o){return!(r=t(e,n,o))})),!!r}function no(e,t,r){var n=0,o=null==e?n:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;n<o;){var i=n+o>>>1,a=e[i];null!==a&&!us(a)&&(r?a<=t:a<t)?n=i+1:o=i}return o}return oo(e,t,oc,r)}function oo(e,t,r,n){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=r(t))!=t,c=null===t,u=us(t),l=t===o;i<a;){var p=lr((i+a)/2),f=r(e[p]),d=f!==o,y=null===f,h=f==f,m=us(f);if(s)var g=n||h;else g=l?h&&(n||d):c?h&&d&&(n||!y):u?h&&d&&!y&&(n||!m):!y&&!m&&(n?f<=t:f<t);g?i=p+1:a=p}return gr(a,4294967294)}function io(e,t){for(var r=-1,n=e.length,o=0,i=[];++r<n;){var a=e[r],s=t?t(a):a;if(!r||!za(s,c)){var c=s;i[o++]=0===a?0:a}}return i}function ao(e){return"number"==typeof e?e:us(e)?f:+e}function so(e){if("string"==typeof e)return e;if($a(e))return Ct(e,so)+"";if(us(e))return Dr?Dr.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function co(e,t,r){var n=-1,o=Nt,i=e.length,a=!0,s=[],c=s;if(r)a=!1,o=At;else if(i>=200){var u=t?null:Yo(e);if(u)return rr(u);a=!1,o=$t,c=new qr}else c=t?[]:s;e:for(;++n<i;){var l=e[n],p=t?t(l):l;if(l=r||0!==l?l:0,a&&p==p){for(var f=c.length;f--;)if(c[f]===p)continue e;t&&c.push(p),s.push(l)}else o(c,p,r)||(c!==s&&c.push(p),s.push(l))}return s}function uo(e,t){return null==(e=wi(e,t=Eo(t,e)))||delete e[Ui(Ji(t))]}function lo(e,t,r,n){return Jn(e,t,r(_n(e,t)),n)}function po(e,t,r,n){for(var o=e.length,i=n?o:-1;(n?i--:++i<o)&&t(e[i],i,e););return r?to(e,n?0:i,n?i+1:o):to(e,n?i+1:0,n?o:i)}function fo(e,t){var r=e;return r instanceof jr&&(r=r.value()),bt(t,(function(e,t){return t.func.apply(t.thisArg,wt([e],t.args))}),r)}function yo(e,t,r){var o=e.length;if(o<2)return o?co(e[0]):[];for(var i=-1,a=n(o);++i<o;)for(var s=e[i],c=-1;++c<o;)c!=i&&(a[i]=ln(a[i]||s,e[c],t,r));return co(mn(a,1),t,r)}function ho(e,t,r){for(var n=-1,i=e.length,a=t.length,s={};++n<i;){var c=n<a?t[n]:o;r(s,e[n],c)}return s}function mo(e){return Ya(e)?e:[]}function go(e){return"function"==typeof e?e:oc}function Eo(e,t){return $a(e)?e:vi(e,t)?[e]:Di(vs(e))}var vo=Yn;function To(e,t,r){var n=e.length;return r=r===o?n:r,!t&&r>=n?e:to(e,t,r)}var So=lt||function(e){return it.clearTimeout(e)};function _o(e,t){if(t)return e.slice();var r=e.length,n=Ve?Ve(r):new e.constructor(r);return e.copy(n),n}function No(e){var t=new e.constructor(e.byteLength);return new je(t).set(new je(e)),t}function Ao(e,t){var r=t?No(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Co(e,t){if(e!==t){var r=e!==o,n=null===e,i=e==e,a=us(e),s=t!==o,c=null===t,u=t==t,l=us(t);if(!c&&!l&&!a&&e>t||a&&s&&u&&!c&&!l||n&&s&&u||!r&&u||!i)return 1;if(!n&&!a&&!l&&e<t||l&&r&&i&&!n&&!a||c&&r&&i||!s&&i||!u)return-1}return 0}function wo(e,t,r,o){for(var i=-1,a=e.length,s=r.length,c=-1,u=t.length,l=mr(a-s,0),p=n(u+l),f=!o;++c<u;)p[c]=t[c];for(;++i<s;)(f||i<a)&&(p[r[i]]=e[i]);for(;l--;)p[c++]=e[i++];return p}function bo(e,t,r,o){for(var i=-1,a=e.length,s=-1,c=r.length,u=-1,l=t.length,p=mr(a-c,0),f=n(p+l),d=!o;++i<p;)f[i]=e[i];for(var y=i;++u<l;)f[y+u]=t[u];for(;++s<c;)(d||i<a)&&(f[y+r[s]]=e[i++]);return f}function Ro(e,t){var r=-1,o=e.length;for(t||(t=n(o));++r<o;)t[r]=e[r];return t}function Oo(e,t,r,n){var i=!r;r||(r={});for(var a=-1,s=t.length;++a<s;){var c=t[a],u=n?n(r[c],e[c],c,r,e):o;u===o&&(u=e[c]),i?nn(r,c,u):Zr(r,c,u)}return r}function Io(e,t){return function(r,n){var o=$a(r)?Et:tn,i=t?t():{};return o(r,e,si(n,2),i)}}function Mo(e){return Yn((function(t,r){var n=-1,i=r.length,a=i>1?r[i-1]:o,s=i>2?r[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,s&&Ei(r[0],r[1],s)&&(a=i<3?o:a,i=1),t=Ae(t);++n<i;){var c=r[n];c&&e(t,c,n,a)}return t}))}function Po(e,t){return function(r,n){if(null==r)return r;if(!Ha(r))return e(r,n);for(var o=r.length,i=t?o:-1,a=Ae(r);(t?i--:++i<o)&&!1!==n(a[i],i,a););return r}}function xo(e){return function(t,r,n){for(var o=-1,i=Ae(t),a=n(t),s=a.length;s--;){var c=a[e?s:++o];if(!1===r(i[c],c,i))break}return t}}function Lo(e){return function(t){var r=Kt(t=vs(t))?ir(t):o,n=r?r[0]:t.charAt(0),i=r?To(r,1).join(""):t.slice(1);return n[e]()+i}}function ko(e){return function(t){return bt(Ks(Ws(t).replace(We,"")),e,"")}}function Fo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Br(e.prototype),n=e.apply(r,t);return ts(n)?n:r}}function Do(e){return function(t,r,n){var i=Ae(t);if(!Ha(t)){var a=si(r,3);t=Ps(t),r=function(e){return a(i[e],e,i)}}var s=e(t,r,n);return s>-1?i[a?t[s]:s]:o}}function Uo(e){return ti((function(t){var r=t.length,n=r,a=zr.prototype.thru;for(e&&t.reverse();n--;){var s=t[n];if("function"!=typeof s)throw new be(i);if(a&&!c&&"wrapper"==ii(s))var c=new zr([],!0)}for(n=c?n:r;++n<r;){var u=ii(s=t[n]),l="wrapper"==u?oi(s):o;c=l&&Ti(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?c[ii(l[0])].apply(c,l[3]):1==s.length&&Ti(s)?c[u]():c.thru(s)}return function(){var e=arguments,n=e[0];if(c&&1==e.length&&$a(n))return c.plant(n).value();for(var o=0,i=r?t[o].apply(this,e):n;++o<r;)i=t[o].call(this,i);return i}}))}function Bo(e,t,r,i,a,s,c,l,p,f){var d=t&u,y=1&t,h=2&t,m=24&t,g=512&t,E=h?o:Fo(e);return function o(){for(var u=arguments.length,v=n(u),T=u;T--;)v[T]=arguments[T];if(m)var S=ai(o),_=Yt(v,S);if(i&&(v=wo(v,i,a,m)),s&&(v=bo(v,s,c,m)),u-=_,m&&u<f){var N=tr(v,S);return qo(e,t,Bo,o.placeholder,r,v,N,l,p,f-u)}var A=y?r:this,C=h?A[e]:e;return u=v.length,l?v=bi(v,l):g&&u>1&&v.reverse(),d&&p<u&&(v.length=p),this&&this!==it&&this instanceof o&&(C=E||Fo(C)),C.apply(A,v)}}function Go(e,t){return function(r,n){return function(e,t,r,n){return vn(e,(function(e,o,i){t(n,r(e),o,i)})),n}(r,e,t(n),{})}}function zo(e,t){return function(r,n){var i;if(r===o&&n===o)return t;if(r!==o&&(i=r),n!==o){if(i===o)return n;"string"==typeof r||"string"==typeof n?(r=so(r),n=so(n)):(r=ao(r),n=ao(n)),i=e(r,n)}return i}}function jo(e){return ti((function(t){return t=Ct(t,Vt(si())),Yn((function(r){var n=this;return e(t,(function(e){return gt(e,n,r)}))}))}))}function Vo(e,t){var r=(t=t===o?" ":so(t)).length;if(r<2)return r?Hn(t,e):t;var n=Hn(t,ur(e/or(t)));return Kt(t)?To(ir(n),0,e).join(""):n.slice(0,e)}function Wo(e){return function(t,r,i){return i&&"number"!=typeof i&&Ei(t,r,i)&&(r=i=o),t=ys(t),r===o?(r=t,t=0):r=ys(r),function(e,t,r,o){for(var i=-1,a=mr(ur((t-e)/(r||1)),0),s=n(a);a--;)s[o?a:++i]=e,e+=r;return s}(t,r,i=i===o?t<r?1:-1:ys(i),e)}}function $o(e){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=gs(t),r=gs(r)),e(t,r)}}function qo(e,t,r,n,i,a,s,u,l,p){var f=8&t;t|=f?c:64,4&(t&=~(f?64:c))||(t&=-4);var d=[e,t,i,f?a:o,f?s:o,f?o:a,f?o:s,u,l,p],y=r.apply(o,d);return Ti(e)&&Oi(y,d),y.placeholder=n,Pi(y,e,t)}function Ho(e){var t=Ne[e];return function(e,r){if(e=gs(e),(r=null==r?0:gr(hs(r),292))&&dr(e)){var n=(vs(e)+"e").split("e");return+((n=(vs(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var Yo=Cr&&1/rr(new Cr([,-0]))[1]==l?function(e){return new Cr(e)}:uc;function Qo(e){return function(t){var r=di(t);return r==_?Zt(t):r==b?nr(t):function(e,t){return Ct(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Xo(e,t,r,a,l,p,f,d){var y=2&t;if(!y&&"function"!=typeof e)throw new be(i);var h=a?a.length:0;if(h||(t&=-97,a=l=o),f=f===o?f:mr(hs(f),0),d=d===o?d:hs(d),h-=l?l.length:0,64&t){var m=a,g=l;a=l=o}var E=y?o:oi(e),v=[e,t,r,a,l,m,g,p,f,d];if(E&&function(e,t){var r=e[1],n=t[1],o=r|n,i=o<131,a=n==u&&8==r||n==u&&256==r&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==r;if(!i&&!a)return e;1&n&&(e[2]=t[2],o|=1&r?0:4);var c=t[3];if(c){var l=e[3];e[3]=l?wo(l,c,t[4]):c,e[4]=l?tr(e[3],s):t[4]}(c=t[5])&&(l=e[5],e[5]=l?bo(l,c,t[6]):c,e[6]=l?tr(e[5],s):t[6]),(c=t[7])&&(e[7]=c),n&u&&(e[8]=null==e[8]?t[8]:gr(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(v,E),e=v[0],t=v[1],r=v[2],a=v[3],l=v[4],!(d=v[9]=v[9]===o?y?0:e.length:mr(v[9]-h,0))&&24&t&&(t&=-25),t&&1!=t)T=8==t||16==t?function(e,t,r){var i=Fo(e);return function a(){for(var s=arguments.length,c=n(s),u=s,l=ai(a);u--;)c[u]=arguments[u];var p=s<3&&c[0]!==l&&c[s-1]!==l?[]:tr(c,l);return(s-=p.length)<r?qo(e,t,Bo,a.placeholder,o,c,p,o,o,r-s):gt(this&&this!==it&&this instanceof a?i:e,this,c)}}(e,t,d):t!=c&&33!=t||l.length?Bo.apply(o,v):function(e,t,r,o){var i=1&t,a=Fo(e);return function t(){for(var s=-1,c=arguments.length,u=-1,l=o.length,p=n(l+c),f=this&&this!==it&&this instanceof t?a:e;++u<l;)p[u]=o[u];for(;c--;)p[u++]=arguments[++s];return gt(f,i?r:this,p)}}(e,t,r,a);else var T=function(e,t,r){var n=1&t,o=Fo(e);return function t(){return(this&&this!==it&&this instanceof t?o:e).apply(n?r:this,arguments)}}(e,t,r);return Pi((E?Kn:Oi)(T,v),e,t)}function Jo(e,t,r,n){return e===o||za(e,Ie[r])&&!xe.call(n,r)?t:e}function Ko(e,t,r,n,i,a){return ts(e)&&ts(t)&&(a.set(t,e),Gn(e,t,o,Ko,a),a.delete(t)),e}function Zo(e){return is(e)?o:e}function ei(e,t,r,n,i,a){var s=1&r,c=e.length,u=t.length;if(c!=u&&!(s&&u>c))return!1;var l=a.get(e),p=a.get(t);if(l&&p)return l==t&&p==e;var f=-1,d=!0,y=2&r?new qr:o;for(a.set(e,t),a.set(t,e);++f<c;){var h=e[f],m=t[f];if(n)var g=s?n(m,h,f,t,e,a):n(h,m,f,e,t,a);if(g!==o){if(g)continue;d=!1;break}if(y){if(!Ot(t,(function(e,t){if(!$t(y,t)&&(h===e||i(h,e,r,n,a)))return y.push(t)}))){d=!1;break}}else if(h!==m&&!i(h,m,r,n,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function ti(e){return Mi(Ci(e,o,qi),e+"")}function ri(e){return Nn(e,Ps,pi)}function ni(e){return Nn(e,xs,fi)}var oi=Rr?function(e){return Rr.get(e)}:uc;function ii(e){for(var t=e.name+"",r=Or[t],n=xe.call(Or,t)?r.length:0;n--;){var o=r[n],i=o.func;if(null==i||i==e)return o.name}return t}function ai(e){return(xe.call(Ur,"placeholder")?Ur:e).placeholder}function si(){var e=Ur.iteratee||ic;return e=e===ic?Ln:e,arguments.length?e(arguments[0],arguments[1]):e}function ci(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function ui(e){for(var t=Ps(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,Ni(o)]}return t}function li(e,t){var r=function(e,t){return null==e?o:e[t]}(e,t);return xn(r)?r:o}var pi=pr?function(e){return null==e?[]:(e=Ae(e),_t(pr(e),(function(t){return et.call(e,t)})))}:mc,fi=pr?function(e){for(var t=[];e;)wt(t,pi(e)),e=qe(e);return t}:mc,di=An;function yi(e,t,r){for(var n=-1,o=(t=Eo(t,e)).length,i=!1;++n<o;){var a=Ui(t[n]);if(!(i=null!=e&&r(e,a)))break;e=e[a]}return i||++n!=o?i:!!(o=null==e?0:e.length)&&es(o)&&gi(a,o)&&($a(e)||Wa(e))}function hi(e){return"function"!=typeof e.constructor||_i(e)?{}:Br(qe(e))}function mi(e){return $a(e)||Wa(e)||!!(ot&&e&&e[ot])}function gi(e,t){var r=typeof e;return!!(t=null==t?p:t)&&("number"==r||"symbol"!=r&&ge.test(e))&&e>-1&&e%1==0&&e<t}function Ei(e,t,r){if(!ts(r))return!1;var n=typeof t;return!!("number"==n?Ha(r)&&gi(t,r.length):"string"==n&&t in r)&&za(r[t],e)}function vi(e,t){if($a(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!us(e))||Z.test(e)||!K.test(e)||null!=t&&e in Ae(t)}function Ti(e){var t=ii(e),r=Ur[t];if("function"!=typeof r||!(t in jr.prototype))return!1;if(e===r)return!0;var n=oi(r);return!!n&&e===n[0]}(_r&&di(new _r(new ArrayBuffer(1)))!=P||Nr&&di(new Nr)!=_||Ar&&di(Ar.resolve())!=C||Cr&&di(new Cr)!=b||wr&&di(new wr)!=I)&&(di=function(e){var t=An(e),r=t==A?e.constructor:o,n=r?Bi(r):"";if(n)switch(n){case Ir:return P;case Mr:return _;case Pr:return C;case xr:return b;case Lr:return I}return t});var Si=Me?Ka:gc;function _i(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ie)}function Ni(e){return e==e&&!ts(e)}function Ai(e,t){return function(r){return null!=r&&r[e]===t&&(t!==o||e in Ae(r))}}function Ci(e,t,r){return t=mr(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=mr(o.length-t,0),s=n(a);++i<a;)s[i]=o[t+i];i=-1;for(var c=n(t+1);++i<t;)c[i]=o[i];return c[t]=r(s),gt(e,this,c)}}function wi(e,t){return t.length<2?e:_n(e,to(t,0,-1))}function bi(e,t){for(var r=e.length,n=gr(t.length,r),i=Ro(e);n--;){var a=t[n];e[n]=gi(a,r)?i[a]:o}return e}function Ri(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Oi=xi(Kn),Ii=Ut||function(e,t){return it.setTimeout(e,t)},Mi=xi(Zn);function Pi(e,t,r){var n=t+"";return Mi(e,function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return vt(y,(function(r){var n="_."+r[0];t&r[1]&&!Nt(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(n),r)))}function xi(e){var t=0,r=0;return function(){var n=Er(),i=16-(n-r);if(r=n,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Li(e,t){var r=-1,n=e.length,i=n-1;for(t=t===o?n:t;++r<t;){var a=qn(r,i),s=e[a];e[a]=e[r],e[r]=s}return e.length=t,e}var ki,Fi,Di=(ki=ka((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,r,n,o){t.push(n?o.replace(le,"$1"):r||e)})),t}),(function(e){return 500===Fi.size&&Fi.clear(),e})),Fi=ki.cache,ki);function Ui(e){if("string"==typeof e||us(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Bi(e){if(null!=e){try{return Pe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Gi(e){if(e instanceof jr)return e.clone();var t=new zr(e.__wrapped__,e.__chain__);return t.__actions__=Ro(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var zi=Yn((function(e,t){return Ya(e)?ln(e,mn(t,1,Ya,!0)):[]})),ji=Yn((function(e,t){var r=Ji(t);return Ya(r)&&(r=o),Ya(e)?ln(e,mn(t,1,Ya,!0),si(r,2)):[]})),Vi=Yn((function(e,t){var r=Ji(t);return Ya(r)&&(r=o),Ya(e)?ln(e,mn(t,1,Ya,!0),o,r):[]}));function Wi(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:hs(r);return o<0&&(o=mr(n+o,0)),Pt(e,si(t,3),o)}function $i(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=n-1;return r!==o&&(i=hs(r),i=r<0?mr(n+i,0):gr(i,n-1)),Pt(e,si(t,3),i,!0)}function qi(e){return null!=e&&e.length?mn(e,1):[]}function Hi(e){return e&&e.length?e[0]:o}var Yi=Yn((function(e){var t=Ct(e,mo);return t.length&&t[0]===e[0]?Rn(t):[]})),Qi=Yn((function(e){var t=Ji(e),r=Ct(e,mo);return t===Ji(r)?t=o:r.pop(),r.length&&r[0]===e[0]?Rn(r,si(t,2)):[]})),Xi=Yn((function(e){var t=Ji(e),r=Ct(e,mo);return(t="function"==typeof t?t:o)&&r.pop(),r.length&&r[0]===e[0]?Rn(r,o,t):[]}));function Ji(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Ki=Yn(Zi);function Zi(e,t){return e&&e.length&&t&&t.length?Wn(e,t):e}var ea=ti((function(e,t){var r=null==e?0:e.length,n=on(e,t);return $n(e,Ct(t,(function(e){return gi(e,r)?+e:e})).sort(Co)),n}));function ta(e){return null==e?e:Sr.call(e)}var ra=Yn((function(e){return co(mn(e,1,Ya,!0))})),na=Yn((function(e){var t=Ji(e);return Ya(t)&&(t=o),co(mn(e,1,Ya,!0),si(t,2))})),oa=Yn((function(e){var t=Ji(e);return t="function"==typeof t?t:o,co(mn(e,1,Ya,!0),o,t)}));function ia(e){if(!e||!e.length)return[];var t=0;return e=_t(e,(function(e){if(Ya(e))return t=mr(e.length,t),!0})),zt(t,(function(t){return Ct(e,Dt(t))}))}function aa(e,t){if(!e||!e.length)return[];var r=ia(e);return null==t?r:Ct(r,(function(e){return gt(t,o,e)}))}var sa=Yn((function(e,t){return Ya(e)?ln(e,t):[]})),ca=Yn((function(e){return yo(_t(e,Ya))})),ua=Yn((function(e){var t=Ji(e);return Ya(t)&&(t=o),yo(_t(e,Ya),si(t,2))})),la=Yn((function(e){var t=Ji(e);return t="function"==typeof t?t:o,yo(_t(e,Ya),o,t)})),pa=Yn(ia),fa=Yn((function(e){var t=e.length,r=t>1?e[t-1]:o;return r="function"==typeof r?(e.pop(),r):o,aa(e,r)}));function da(e){var t=Ur(e);return t.__chain__=!0,t}function ya(e,t){return t(e)}var ha=ti((function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,i=function(t){return on(t,e)};return!(t>1||this.__actions__.length)&&n instanceof jr&&gi(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:ya,args:[i],thisArg:o}),new zr(n,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)})),ma=Io((function(e,t,r){xe.call(e,r)?++e[r]:nn(e,r,1)})),ga=Do(Wi),Ea=Do($i);function va(e,t){return($a(e)?vt:pn)(e,si(t,3))}function Ta(e,t){return($a(e)?Tt:fn)(e,si(t,3))}var Sa=Io((function(e,t,r){xe.call(e,r)?e[r].push(t):nn(e,r,[t])})),_a=Yn((function(e,t,r){var o=-1,i="function"==typeof t,a=Ha(e)?n(e.length):[];return pn(e,(function(e){a[++o]=i?gt(t,e,r):On(e,t,r)})),a})),Na=Io((function(e,t,r){nn(e,r,t)}));function Aa(e,t){return($a(e)?Ct:Dn)(e,si(t,3))}var Ca=Io((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]})),wa=Yn((function(e,t){if(null==e)return[];var r=t.length;return r>1&&Ei(e,t[0],t[1])?t=[]:r>2&&Ei(t[0],t[1],t[2])&&(t=[t[0]]),jn(e,mn(t,1),[])})),ba=It||function(){return it.Date.now()};function Ra(e,t,r){return t=r?o:t,t=e&&null==t?e.length:t,Xo(e,u,o,o,o,o,t)}function Oa(e,t){var r;if("function"!=typeof t)throw new be(i);return e=hs(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=o),r}}var Ia=Yn((function(e,t,r){var n=1;if(r.length){var o=tr(r,ai(Ia));n|=c}return Xo(e,n,t,r,o)})),Ma=Yn((function(e,t,r){var n=3;if(r.length){var o=tr(r,ai(Ma));n|=c}return Xo(t,n,e,r,o)}));function Pa(e,t,r){var n,a,s,c,u,l,p=0,f=!1,d=!1,y=!0;if("function"!=typeof e)throw new be(i);function h(t){var r=n,i=a;return n=a=o,p=t,c=e.apply(i,r)}function m(e){return p=e,u=Ii(E,t),f?h(e):c}function g(e){var r=e-l;return l===o||r>=t||r<0||d&&e-p>=s}function E(){var e=ba();if(g(e))return v(e);u=Ii(E,function(e){var r=t-(e-l);return d?gr(r,s-(e-p)):r}(e))}function v(e){return u=o,y&&n?h(e):(n=a=o,c)}function T(){var e=ba(),r=g(e);if(n=arguments,a=this,l=e,r){if(u===o)return m(l);if(d)return So(u),u=Ii(E,t),h(l)}return u===o&&(u=Ii(E,t)),c}return t=gs(t)||0,ts(r)&&(f=!!r.leading,s=(d="maxWait"in r)?mr(gs(r.maxWait)||0,t):s,y="trailing"in r?!!r.trailing:y),T.cancel=function(){u!==o&&So(u),p=0,n=l=a=u=o},T.flush=function(){return u===o?c:v(ba())},T}var xa=Yn((function(e,t){return un(e,1,t)})),La=Yn((function(e,t,r){return un(e,gs(t)||0,r)}));function ka(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new be(i);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(ka.Cache||$r),r}function Fa(e){if("function"!=typeof e)throw new be(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ka.Cache=$r;var Da=vo((function(e,t){var r=(t=1==t.length&&$a(t[0])?Ct(t[0],Vt(si())):Ct(mn(t,1),Vt(si()))).length;return Yn((function(n){for(var o=-1,i=gr(n.length,r);++o<i;)n[o]=t[o].call(this,n[o]);return gt(e,this,n)}))})),Ua=Yn((function(e,t){var r=tr(t,ai(Ua));return Xo(e,c,o,t,r)})),Ba=Yn((function(e,t){var r=tr(t,ai(Ba));return Xo(e,64,o,t,r)})),Ga=ti((function(e,t){return Xo(e,256,o,o,o,t)}));function za(e,t){return e===t||e!=e&&t!=t}var ja=$o(Cn),Va=$o((function(e,t){return e>=t})),Wa=In(function(){return arguments}())?In:function(e){return rs(e)&&xe.call(e,"callee")&&!et.call(e,"callee")},$a=n.isArray,qa=pt?Vt(pt):function(e){return rs(e)&&An(e)==M};function Ha(e){return null!=e&&es(e.length)&&!Ka(e)}function Ya(e){return rs(e)&&Ha(e)}var Qa=fr||gc,Xa=ft?Vt(ft):function(e){return rs(e)&&An(e)==E};function Ja(e){if(!rs(e))return!1;var t=An(e);return t==v||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!is(e)}function Ka(e){if(!ts(e))return!1;var t=An(e);return t==T||t==S||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Za(e){return"number"==typeof e&&e==hs(e)}function es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function ts(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function rs(e){return null!=e&&"object"==typeof e}var ns=dt?Vt(dt):function(e){return rs(e)&&di(e)==_};function os(e){return"number"==typeof e||rs(e)&&An(e)==N}function is(e){if(!rs(e)||An(e)!=A)return!1;var t=qe(e);if(null===t)return!0;var r=xe.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Pe.call(r)==De}var as=yt?Vt(yt):function(e){return rs(e)&&An(e)==w},ss=ht?Vt(ht):function(e){return rs(e)&&di(e)==b};function cs(e){return"string"==typeof e||!$a(e)&&rs(e)&&An(e)==R}function us(e){return"symbol"==typeof e||rs(e)&&An(e)==O}var ls=mt?Vt(mt):function(e){return rs(e)&&es(e.length)&&!!Ke[An(e)]},ps=$o(Fn),fs=$o((function(e,t){return e<=t}));function ds(e){if(!e)return[];if(Ha(e))return cs(e)?ir(e):Ro(e);if(at&&e[at])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[at]());var t=di(e);return(t==_?Zt:t==b?rr:zs)(e)}function ys(e){return e?(e=gs(e))===l||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function hs(e){var t=ys(e),r=t%1;return t==t?r?t-r:t:0}function ms(e){return e?an(hs(e),0,d):0}function gs(e){if("number"==typeof e)return e;if(us(e))return f;if(ts(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ts(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=jt(e);var r=ye.test(e);return r||me.test(e)?rt(e.slice(2),r?2:8):de.test(e)?f:+e}function Es(e){return Oo(e,xs(e))}function vs(e){return null==e?"":so(e)}var Ts=Mo((function(e,t){if(_i(t)||Ha(t))Oo(t,Ps(t),e);else for(var r in t)xe.call(t,r)&&Zr(e,r,t[r])})),Ss=Mo((function(e,t){Oo(t,xs(t),e)})),_s=Mo((function(e,t,r,n){Oo(t,xs(t),e,n)})),Ns=Mo((function(e,t,r,n){Oo(t,Ps(t),e,n)})),As=ti(on),Cs=Yn((function(e,t){e=Ae(e);var r=-1,n=t.length,i=n>2?t[2]:o;for(i&&Ei(t[0],t[1],i)&&(n=1);++r<n;)for(var a=t[r],s=xs(a),c=-1,u=s.length;++c<u;){var l=s[c],p=e[l];(p===o||za(p,Ie[l])&&!xe.call(e,l))&&(e[l]=a[l])}return e})),ws=Yn((function(e){return e.push(o,Ko),gt(ks,o,e)}));function bs(e,t,r){var n=null==e?o:_n(e,t);return n===o?r:n}function Rs(e,t){return null!=e&&yi(e,t,bn)}var Os=Go((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),e[t]=r}),tc(oc)),Is=Go((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),xe.call(e,t)?e[t].push(r):e[t]=[r]}),si),Ms=Yn(On);function Ps(e){return Ha(e)?Yr(e):kn(e)}function xs(e){return Ha(e)?Yr(e,!0):function(e){if(!ts(e))return function(e){var t=[];if(null!=e)for(var r in Ae(e))t.push(r);return t}(e);var t=_i(e),r=[];for(var n in e)("constructor"!=n||!t&&xe.call(e,n))&&r.push(n);return r}(e)}var Ls=Mo((function(e,t,r){Gn(e,t,r)})),ks=Mo((function(e,t,r,n){Gn(e,t,r,n)})),Fs=ti((function(e,t){var r={};if(null==e)return r;var n=!1;t=Ct(t,(function(t){return t=Eo(t,e),n||(n=t.length>1),t})),Oo(e,ni(e),r),n&&(r=sn(r,7,Zo));for(var o=t.length;o--;)uo(r,t[o]);return r})),Ds=ti((function(e,t){return null==e?{}:function(e,t){return Vn(e,t,(function(t,r){return Rs(e,r)}))}(e,t)}));function Us(e,t){if(null==e)return{};var r=Ct(ni(e),(function(e){return[e]}));return t=si(t),Vn(e,r,(function(e,r){return t(e,r[0])}))}var Bs=Qo(Ps),Gs=Qo(xs);function zs(e){return null==e?[]:Wt(e,Ps(e))}var js=ko((function(e,t,r){return t=t.toLowerCase(),e+(r?Vs(t):t)}));function Vs(e){return Js(vs(e).toLowerCase())}function Ws(e){return(e=vs(e))&&e.replace(Ee,Qt).replace($e,"")}var $s=ko((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),qs=ko((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),Hs=Lo("toLowerCase"),Ys=ko((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()})),Qs=ko((function(e,t,r){return e+(r?" ":"")+Js(t)})),Xs=ko((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Js=Lo("toUpperCase");function Ks(e,t,r){return e=vs(e),(t=r?o:t)===o?function(e){return Qe.test(e)}(e)?function(e){return e.match(He)||[]}(e):function(e){return e.match(ce)||[]}(e):e.match(t)||[]}var Zs=Yn((function(e,t){try{return gt(e,o,t)}catch(e){return Ja(e)?e:new Se(e)}})),ec=ti((function(e,t){return vt(t,(function(t){t=Ui(t),nn(e,t,Ia(e[t],e))})),e}));function tc(e){return function(){return e}}var rc=Uo(),nc=Uo(!0);function oc(e){return e}function ic(e){return Ln("function"==typeof e?e:sn(e,1))}var ac=Yn((function(e,t){return function(r){return On(r,e,t)}})),sc=Yn((function(e,t){return function(r){return On(e,r,t)}}));function cc(e,t,r){var n=Ps(t),o=Sn(t,n);null!=r||ts(t)&&(o.length||!n.length)||(r=t,t=e,e=this,o=Sn(t,Ps(t)));var i=!(ts(r)&&"chain"in r&&!r.chain),a=Ka(e);return vt(o,(function(r){var n=t[r];e[r]=n,a&&(e.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=e(this.__wrapped__),o=r.__actions__=Ro(this.__actions__);return o.push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,wt([this.value()],arguments))})})),e}function uc(){}var lc=jo(Ct),pc=jo(St),fc=jo(Ot);function dc(e){return vi(e)?Dt(Ui(e)):function(e){return function(t){return _n(t,e)}}(e)}var yc=Wo(),hc=Wo(!0);function mc(){return[]}function gc(){return!1}var Ec,vc=zo((function(e,t){return e+t}),0),Tc=Ho("ceil"),Sc=zo((function(e,t){return e/t}),1),_c=Ho("floor"),Nc=zo((function(e,t){return e*t}),1),Ac=Ho("round"),Cc=zo((function(e,t){return e-t}),0);return Ur.after=function(e,t){if("function"!=typeof t)throw new be(i);return e=hs(e),function(){if(--e<1)return t.apply(this,arguments)}},Ur.ary=Ra,Ur.assign=Ts,Ur.assignIn=Ss,Ur.assignInWith=_s,Ur.assignWith=Ns,Ur.at=As,Ur.before=Oa,Ur.bind=Ia,Ur.bindAll=ec,Ur.bindKey=Ma,Ur.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return $a(e)?e:[e]},Ur.chain=da,Ur.chunk=function(e,t,r){t=(r?Ei(e,t,r):t===o)?1:mr(hs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,c=n(ur(i/t));a<i;)c[s++]=to(e,a,a+=t);return c},Ur.compact=function(e){for(var t=-1,r=null==e?0:e.length,n=0,o=[];++t<r;){var i=e[t];i&&(o[n++]=i)}return o},Ur.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),r=arguments[0],o=e;o--;)t[o-1]=arguments[o];return wt($a(r)?Ro(r):[r],mn(t,1))},Ur.cond=function(e){var t=null==e?0:e.length,r=si();return e=t?Ct(e,(function(e){if("function"!=typeof e[1])throw new be(i);return[r(e[0]),e[1]]})):[],Yn((function(r){for(var n=-1;++n<t;){var o=e[n];if(gt(o[0],this,r))return gt(o[1],this,r)}}))},Ur.conforms=function(e){return function(e){var t=Ps(e);return function(r){return cn(r,e,t)}}(sn(e,1))},Ur.constant=tc,Ur.countBy=ma,Ur.create=function(e,t){var r=Br(e);return null==t?r:rn(r,t)},Ur.curry=function e(t,r,n){var i=Xo(t,8,o,o,o,o,o,r=n?o:r);return i.placeholder=e.placeholder,i},Ur.curryRight=function e(t,r,n){var i=Xo(t,16,o,o,o,o,o,r=n?o:r);return i.placeholder=e.placeholder,i},Ur.debounce=Pa,Ur.defaults=Cs,Ur.defaultsDeep=ws,Ur.defer=xa,Ur.delay=La,Ur.difference=zi,Ur.differenceBy=ji,Ur.differenceWith=Vi,Ur.drop=function(e,t,r){var n=null==e?0:e.length;return n?to(e,(t=r||t===o?1:hs(t))<0?0:t,n):[]},Ur.dropRight=function(e,t,r){var n=null==e?0:e.length;return n?to(e,0,(t=n-(t=r||t===o?1:hs(t)))<0?0:t):[]},Ur.dropRightWhile=function(e,t){return e&&e.length?po(e,si(t,3),!0,!0):[]},Ur.dropWhile=function(e,t){return e&&e.length?po(e,si(t,3),!0):[]},Ur.fill=function(e,t,r,n){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&Ei(e,t,r)&&(r=0,n=i),function(e,t,r,n){var i=e.length;for((r=hs(r))<0&&(r=-r>i?0:i+r),(n=n===o||n>i?i:hs(n))<0&&(n+=i),n=r>n?0:ms(n);r<n;)e[r++]=t;return e}(e,t,r,n)):[]},Ur.filter=function(e,t){return($a(e)?_t:hn)(e,si(t,3))},Ur.flatMap=function(e,t){return mn(Aa(e,t),1)},Ur.flatMapDeep=function(e,t){return mn(Aa(e,t),l)},Ur.flatMapDepth=function(e,t,r){return r=r===o?1:hs(r),mn(Aa(e,t),r)},Ur.flatten=qi,Ur.flattenDeep=function(e){return null!=e&&e.length?mn(e,l):[]},Ur.flattenDepth=function(e,t){return null!=e&&e.length?mn(e,t=t===o?1:hs(t)):[]},Ur.flip=function(e){return Xo(e,512)},Ur.flow=rc,Ur.flowRight=nc,Ur.fromPairs=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var o=e[t];n[o[0]]=o[1]}return n},Ur.functions=function(e){return null==e?[]:Sn(e,Ps(e))},Ur.functionsIn=function(e){return null==e?[]:Sn(e,xs(e))},Ur.groupBy=Sa,Ur.initial=function(e){return null!=e&&e.length?to(e,0,-1):[]},Ur.intersection=Yi,Ur.intersectionBy=Qi,Ur.intersectionWith=Xi,Ur.invert=Os,Ur.invertBy=Is,Ur.invokeMap=_a,Ur.iteratee=ic,Ur.keyBy=Na,Ur.keys=Ps,Ur.keysIn=xs,Ur.map=Aa,Ur.mapKeys=function(e,t){var r={};return t=si(t,3),vn(e,(function(e,n,o){nn(r,t(e,n,o),e)})),r},Ur.mapValues=function(e,t){var r={};return t=si(t,3),vn(e,(function(e,n,o){nn(r,n,t(e,n,o))})),r},Ur.matches=function(e){return Un(sn(e,1))},Ur.matchesProperty=function(e,t){return Bn(e,sn(t,1))},Ur.memoize=ka,Ur.merge=Ls,Ur.mergeWith=ks,Ur.method=ac,Ur.methodOf=sc,Ur.mixin=cc,Ur.negate=Fa,Ur.nthArg=function(e){return e=hs(e),Yn((function(t){return zn(t,e)}))},Ur.omit=Fs,Ur.omitBy=function(e,t){return Us(e,Fa(si(t)))},Ur.once=function(e){return Oa(2,e)},Ur.orderBy=function(e,t,r,n){return null==e?[]:($a(t)||(t=null==t?[]:[t]),$a(r=n?o:r)||(r=null==r?[]:[r]),jn(e,t,r))},Ur.over=lc,Ur.overArgs=Da,Ur.overEvery=pc,Ur.overSome=fc,Ur.partial=Ua,Ur.partialRight=Ba,Ur.partition=Ca,Ur.pick=Ds,Ur.pickBy=Us,Ur.property=dc,Ur.propertyOf=function(e){return function(t){return null==e?o:_n(e,t)}},Ur.pull=Ki,Ur.pullAll=Zi,Ur.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?Wn(e,t,si(r,2)):e},Ur.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Wn(e,t,o,r):e},Ur.pullAt=ea,Ur.range=yc,Ur.rangeRight=hc,Ur.rearg=Ga,Ur.reject=function(e,t){return($a(e)?_t:hn)(e,Fa(si(t,3)))},Ur.remove=function(e,t){var r=[];if(!e||!e.length)return r;var n=-1,o=[],i=e.length;for(t=si(t,3);++n<i;){var a=e[n];t(a,n,e)&&(r.push(a),o.push(n))}return $n(e,o),r},Ur.rest=function(e,t){if("function"!=typeof e)throw new be(i);return Yn(e,t=t===o?t:hs(t))},Ur.reverse=ta,Ur.sampleSize=function(e,t,r){return t=(r?Ei(e,t,r):t===o)?1:hs(t),($a(e)?Xr:Xn)(e,t)},Ur.set=function(e,t,r){return null==e?e:Jn(e,t,r)},Ur.setWith=function(e,t,r,n){return n="function"==typeof n?n:o,null==e?e:Jn(e,t,r,n)},Ur.shuffle=function(e){return($a(e)?Jr:eo)(e)},Ur.slice=function(e,t,r){var n=null==e?0:e.length;return n?(r&&"number"!=typeof r&&Ei(e,t,r)?(t=0,r=n):(t=null==t?0:hs(t),r=r===o?n:hs(r)),to(e,t,r)):[]},Ur.sortBy=wa,Ur.sortedUniq=function(e){return e&&e.length?io(e):[]},Ur.sortedUniqBy=function(e,t){return e&&e.length?io(e,si(t,2)):[]},Ur.split=function(e,t,r){return r&&"number"!=typeof r&&Ei(e,t,r)&&(t=r=o),(r=r===o?d:r>>>0)?(e=vs(e))&&("string"==typeof t||null!=t&&!as(t))&&!(t=so(t))&&Kt(e)?To(ir(e),0,r):e.split(t,r):[]},Ur.spread=function(e,t){if("function"!=typeof e)throw new be(i);return t=null==t?0:mr(hs(t),0),Yn((function(r){var n=r[t],o=To(r,0,t);return n&&wt(o,n),gt(e,this,o)}))},Ur.tail=function(e){var t=null==e?0:e.length;return t?to(e,1,t):[]},Ur.take=function(e,t,r){return e&&e.length?to(e,0,(t=r||t===o?1:hs(t))<0?0:t):[]},Ur.takeRight=function(e,t,r){var n=null==e?0:e.length;return n?to(e,(t=n-(t=r||t===o?1:hs(t)))<0?0:t,n):[]},Ur.takeRightWhile=function(e,t){return e&&e.length?po(e,si(t,3),!1,!0):[]},Ur.takeWhile=function(e,t){return e&&e.length?po(e,si(t,3)):[]},Ur.tap=function(e,t){return t(e),e},Ur.throttle=function(e,t,r){var n=!0,o=!0;if("function"!=typeof e)throw new be(i);return ts(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),Pa(e,t,{leading:n,maxWait:t,trailing:o})},Ur.thru=ya,Ur.toArray=ds,Ur.toPairs=Bs,Ur.toPairsIn=Gs,Ur.toPath=function(e){return $a(e)?Ct(e,Ui):us(e)?[e]:Ro(Di(vs(e)))},Ur.toPlainObject=Es,Ur.transform=function(e,t,r){var n=$a(e),o=n||Qa(e)||ls(e);if(t=si(t,4),null==r){var i=e&&e.constructor;r=o?n?new i:[]:ts(e)&&Ka(i)?Br(qe(e)):{}}return(o?vt:vn)(e,(function(e,n,o){return t(r,e,n,o)})),r},Ur.unary=function(e){return Ra(e,1)},Ur.union=ra,Ur.unionBy=na,Ur.unionWith=oa,Ur.uniq=function(e){return e&&e.length?co(e):[]},Ur.uniqBy=function(e,t){return e&&e.length?co(e,si(t,2)):[]},Ur.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?co(e,o,t):[]},Ur.unset=function(e,t){return null==e||uo(e,t)},Ur.unzip=ia,Ur.unzipWith=aa,Ur.update=function(e,t,r){return null==e?e:lo(e,t,go(r))},Ur.updateWith=function(e,t,r,n){return n="function"==typeof n?n:o,null==e?e:lo(e,t,go(r),n)},Ur.values=zs,Ur.valuesIn=function(e){return null==e?[]:Wt(e,xs(e))},Ur.without=sa,Ur.words=Ks,Ur.wrap=function(e,t){return Ua(go(t),e)},Ur.xor=ca,Ur.xorBy=ua,Ur.xorWith=la,Ur.zip=pa,Ur.zipObject=function(e,t){return ho(e||[],t||[],Zr)},Ur.zipObjectDeep=function(e,t){return ho(e||[],t||[],Jn)},Ur.zipWith=fa,Ur.entries=Bs,Ur.entriesIn=Gs,Ur.extend=Ss,Ur.extendWith=_s,cc(Ur,Ur),Ur.add=vc,Ur.attempt=Zs,Ur.camelCase=js,Ur.capitalize=Vs,Ur.ceil=Tc,Ur.clamp=function(e,t,r){return r===o&&(r=t,t=o),r!==o&&(r=(r=gs(r))==r?r:0),t!==o&&(t=(t=gs(t))==t?t:0),an(gs(e),t,r)},Ur.clone=function(e){return sn(e,4)},Ur.cloneDeep=function(e){return sn(e,5)},Ur.cloneDeepWith=function(e,t){return sn(e,5,t="function"==typeof t?t:o)},Ur.cloneWith=function(e,t){return sn(e,4,t="function"==typeof t?t:o)},Ur.conformsTo=function(e,t){return null==t||cn(e,t,Ps(t))},Ur.deburr=Ws,Ur.defaultTo=function(e,t){return null==e||e!=e?t:e},Ur.divide=Sc,Ur.endsWith=function(e,t,r){e=vs(e),t=so(t);var n=e.length,i=r=r===o?n:an(hs(r),0,n);return(r-=t.length)>=0&&e.slice(r,i)==t},Ur.eq=za,Ur.escape=function(e){return(e=vs(e))&&Y.test(e)?e.replace(q,Xt):e},Ur.escapeRegExp=function(e){return(e=vs(e))&&re.test(e)?e.replace(te,"\\$&"):e},Ur.every=function(e,t,r){var n=$a(e)?St:dn;return r&&Ei(e,t,r)&&(t=o),n(e,si(t,3))},Ur.find=ga,Ur.findIndex=Wi,Ur.findKey=function(e,t){return Mt(e,si(t,3),vn)},Ur.findLast=Ea,Ur.findLastIndex=$i,Ur.findLastKey=function(e,t){return Mt(e,si(t,3),Tn)},Ur.floor=_c,Ur.forEach=va,Ur.forEachRight=Ta,Ur.forIn=function(e,t){return null==e?e:gn(e,si(t,3),xs)},Ur.forInRight=function(e,t){return null==e?e:En(e,si(t,3),xs)},Ur.forOwn=function(e,t){return e&&vn(e,si(t,3))},Ur.forOwnRight=function(e,t){return e&&Tn(e,si(t,3))},Ur.get=bs,Ur.gt=ja,Ur.gte=Va,Ur.has=function(e,t){return null!=e&&yi(e,t,wn)},Ur.hasIn=Rs,Ur.head=Hi,Ur.identity=oc,Ur.includes=function(e,t,r,n){e=Ha(e)?e:zs(e),r=r&&!n?hs(r):0;var o=e.length;return r<0&&(r=mr(o+r,0)),cs(e)?r<=o&&e.indexOf(t,r)>-1:!!o&&xt(e,t,r)>-1},Ur.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:hs(r);return o<0&&(o=mr(n+o,0)),xt(e,t,o)},Ur.inRange=function(e,t,r){return t=ys(t),r===o?(r=t,t=0):r=ys(r),function(e,t,r){return e>=gr(t,r)&&e<mr(t,r)}(e=gs(e),t,r)},Ur.invoke=Ms,Ur.isArguments=Wa,Ur.isArray=$a,Ur.isArrayBuffer=qa,Ur.isArrayLike=Ha,Ur.isArrayLikeObject=Ya,Ur.isBoolean=function(e){return!0===e||!1===e||rs(e)&&An(e)==g},Ur.isBuffer=Qa,Ur.isDate=Xa,Ur.isElement=function(e){return rs(e)&&1===e.nodeType&&!is(e)},Ur.isEmpty=function(e){if(null==e)return!0;if(Ha(e)&&($a(e)||"string"==typeof e||"function"==typeof e.splice||Qa(e)||ls(e)||Wa(e)))return!e.length;var t=di(e);if(t==_||t==b)return!e.size;if(_i(e))return!kn(e).length;for(var r in e)if(xe.call(e,r))return!1;return!0},Ur.isEqual=function(e,t){return Mn(e,t)},Ur.isEqualWith=function(e,t,r){var n=(r="function"==typeof r?r:o)?r(e,t):o;return n===o?Mn(e,t,o,r):!!n},Ur.isError=Ja,Ur.isFinite=function(e){return"number"==typeof e&&dr(e)},Ur.isFunction=Ka,Ur.isInteger=Za,Ur.isLength=es,Ur.isMap=ns,Ur.isMatch=function(e,t){return e===t||Pn(e,t,ui(t))},Ur.isMatchWith=function(e,t,r){return r="function"==typeof r?r:o,Pn(e,t,ui(t),r)},Ur.isNaN=function(e){return os(e)&&e!=+e},Ur.isNative=function(e){if(Si(e))throw new Se("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return xn(e)},Ur.isNil=function(e){return null==e},Ur.isNull=function(e){return null===e},Ur.isNumber=os,Ur.isObject=ts,Ur.isObjectLike=rs,Ur.isPlainObject=is,Ur.isRegExp=as,Ur.isSafeInteger=function(e){return Za(e)&&e>=-9007199254740991&&e<=p},Ur.isSet=ss,Ur.isString=cs,Ur.isSymbol=us,Ur.isTypedArray=ls,Ur.isUndefined=function(e){return e===o},Ur.isWeakMap=function(e){return rs(e)&&di(e)==I},Ur.isWeakSet=function(e){return rs(e)&&"[object WeakSet]"==An(e)},Ur.join=function(e,t){return null==e?"":yr.call(e,t)},Ur.kebabCase=$s,Ur.last=Ji,Ur.lastIndexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=n;return r!==o&&(i=(i=hs(r))<0?mr(n+i,0):gr(i,n-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,i):Pt(e,kt,i,!0)},Ur.lowerCase=qs,Ur.lowerFirst=Hs,Ur.lt=ps,Ur.lte=fs,Ur.max=function(e){return e&&e.length?yn(e,oc,Cn):o},Ur.maxBy=function(e,t){return e&&e.length?yn(e,si(t,2),Cn):o},Ur.mean=function(e){return Ft(e,oc)},Ur.meanBy=function(e,t){return Ft(e,si(t,2))},Ur.min=function(e){return e&&e.length?yn(e,oc,Fn):o},Ur.minBy=function(e,t){return e&&e.length?yn(e,si(t,2),Fn):o},Ur.stubArray=mc,Ur.stubFalse=gc,Ur.stubObject=function(){return{}},Ur.stubString=function(){return""},Ur.stubTrue=function(){return!0},Ur.multiply=Nc,Ur.nth=function(e,t){return e&&e.length?zn(e,hs(t)):o},Ur.noConflict=function(){return it._===this&&(it._=Ue),this},Ur.noop=uc,Ur.now=ba,Ur.pad=function(e,t,r){e=vs(e);var n=(t=hs(t))?or(e):0;if(!t||n>=t)return e;var o=(t-n)/2;return Vo(lr(o),r)+e+Vo(ur(o),r)},Ur.padEnd=function(e,t,r){e=vs(e);var n=(t=hs(t))?or(e):0;return t&&n<t?e+Vo(t-n,r):e},Ur.padStart=function(e,t,r){e=vs(e);var n=(t=hs(t))?or(e):0;return t&&n<t?Vo(t-n,r)+e:e},Ur.parseInt=function(e,t,r){return r||null==t?t=0:t&&(t=+t),vr(vs(e).replace(ne,""),t||0)},Ur.random=function(e,t,r){if(r&&"boolean"!=typeof r&&Ei(e,t,r)&&(t=r=o),r===o&&("boolean"==typeof t?(r=t,t=o):"boolean"==typeof e&&(r=e,e=o)),e===o&&t===o?(e=0,t=1):(e=ys(e),t===o?(t=e,e=0):t=ys(t)),e>t){var n=e;e=t,t=n}if(r||e%1||t%1){var i=Tr();return gr(e+i*(t-e+tt("1e-"+((i+"").length-1))),t)}return qn(e,t)},Ur.reduce=function(e,t,r){var n=$a(e)?bt:Bt,o=arguments.length<3;return n(e,si(t,4),r,o,pn)},Ur.reduceRight=function(e,t,r){var n=$a(e)?Rt:Bt,o=arguments.length<3;return n(e,si(t,4),r,o,fn)},Ur.repeat=function(e,t,r){return t=(r?Ei(e,t,r):t===o)?1:hs(t),Hn(vs(e),t)},Ur.replace=function(){var e=arguments,t=vs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Ur.result=function(e,t,r){var n=-1,i=(t=Eo(t,e)).length;for(i||(i=1,e=o);++n<i;){var a=null==e?o:e[Ui(t[n])];a===o&&(n=i,a=r),e=Ka(a)?a.call(e):a}return e},Ur.round=Ac,Ur.runInContext=e,Ur.sample=function(e){return($a(e)?Qr:Qn)(e)},Ur.size=function(e){if(null==e)return 0;if(Ha(e))return cs(e)?or(e):e.length;var t=di(e);return t==_||t==b?e.size:kn(e).length},Ur.snakeCase=Ys,Ur.some=function(e,t,r){var n=$a(e)?Ot:ro;return r&&Ei(e,t,r)&&(t=o),n(e,si(t,3))},Ur.sortedIndex=function(e,t){return no(e,t)},Ur.sortedIndexBy=function(e,t,r){return oo(e,t,si(r,2))},Ur.sortedIndexOf=function(e,t){var r=null==e?0:e.length;if(r){var n=no(e,t);if(n<r&&za(e[n],t))return n}return-1},Ur.sortedLastIndex=function(e,t){return no(e,t,!0)},Ur.sortedLastIndexBy=function(e,t,r){return oo(e,t,si(r,2),!0)},Ur.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var r=no(e,t,!0)-1;if(za(e[r],t))return r}return-1},Ur.startCase=Qs,Ur.startsWith=function(e,t,r){return e=vs(e),r=null==r?0:an(hs(r),0,e.length),t=so(t),e.slice(r,r+t.length)==t},Ur.subtract=Cc,Ur.sum=function(e){return e&&e.length?Gt(e,oc):0},Ur.sumBy=function(e,t){return e&&e.length?Gt(e,si(t,2)):0},Ur.template=function(e,t,r){var n=Ur.templateSettings;r&&Ei(e,t,r)&&(t=o),e=vs(e),t=_s({},t,n,Jo);var i,a,s=_s({},t.imports,n.imports,Jo),c=Ps(s),u=Wt(s,c),l=0,p=t.interpolate||ve,f="__p += '",d=Ce((t.escape||ve).source+"|"+p.source+"|"+(p===J?pe:ve).source+"|"+(t.evaluate||ve).source+"|$","g"),y="//# sourceURL="+(xe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Je+"]")+"\n";e.replace(d,(function(t,r,n,o,s,c){return n||(n=o),f+=e.slice(l,c).replace(Te,Jt),r&&(i=!0,f+="' +\n__e("+r+") +\n'"),s&&(a=!0,f+="';\n"+s+";\n__p += '"),n&&(f+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),l=c+t.length,t})),f+="';\n";var h=xe.call(t,"variable")&&t.variable;if(h){if(ue.test(h))throw new Se("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace(j,""):f).replace(V,"$1").replace(W,"$1;"),f="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var m=Zs((function(){return _e(c,y+"return "+f).apply(o,u)}));if(m.source=f,Ja(m))throw m;return m},Ur.times=function(e,t){if((e=hs(e))<1||e>p)return[];var r=d,n=gr(e,d);t=si(t),e-=d;for(var o=zt(n,t);++r<e;)t(r);return o},Ur.toFinite=ys,Ur.toInteger=hs,Ur.toLength=ms,Ur.toLower=function(e){return vs(e).toLowerCase()},Ur.toNumber=gs,Ur.toSafeInteger=function(e){return e?an(hs(e),-9007199254740991,p):0===e?e:0},Ur.toString=vs,Ur.toUpper=function(e){return vs(e).toUpperCase()},Ur.trim=function(e,t,r){if((e=vs(e))&&(r||t===o))return jt(e);if(!e||!(t=so(t)))return e;var n=ir(e),i=ir(t);return To(n,qt(n,i),Ht(n,i)+1).join("")},Ur.trimEnd=function(e,t,r){if((e=vs(e))&&(r||t===o))return e.slice(0,ar(e)+1);if(!e||!(t=so(t)))return e;var n=ir(e);return To(n,0,Ht(n,ir(t))+1).join("")},Ur.trimStart=function(e,t,r){if((e=vs(e))&&(r||t===o))return e.replace(ne,"");if(!e||!(t=so(t)))return e;var n=ir(e);return To(n,qt(n,ir(t))).join("")},Ur.truncate=function(e,t){var r=30,n="...";if(ts(t)){var i="separator"in t?t.separator:i;r="length"in t?hs(t.length):r,n="omission"in t?so(t.omission):n}var a=(e=vs(e)).length;if(Kt(e)){var s=ir(e);a=s.length}if(r>=a)return e;var c=r-or(n);if(c<1)return n;var u=s?To(s,0,c).join(""):e.slice(0,c);if(i===o)return u+n;if(s&&(c+=u.length-c),as(i)){if(e.slice(c).search(i)){var l,p=u;for(i.global||(i=Ce(i.source,vs(fe.exec(i))+"g")),i.lastIndex=0;l=i.exec(p);)var f=l.index;u=u.slice(0,f===o?c:f)}}else if(e.indexOf(so(i),c)!=c){var d=u.lastIndexOf(i);d>-1&&(u=u.slice(0,d))}return u+n},Ur.unescape=function(e){return(e=vs(e))&&H.test(e)?e.replace($,sr):e},Ur.uniqueId=function(e){var t=++Le;return vs(e)+t},Ur.upperCase=Xs,Ur.upperFirst=Js,Ur.each=va,Ur.eachRight=Ta,Ur.first=Hi,cc(Ur,(Ec={},vn(Ur,(function(e,t){xe.call(Ur.prototype,t)||(Ec[t]=e)})),Ec),{chain:!1}),Ur.VERSION="4.17.21",vt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Ur[e].placeholder=Ur})),vt(["drop","take"],(function(e,t){jr.prototype[e]=function(r){r=r===o?1:mr(hs(r),0);var n=this.__filtered__&&!t?new jr(this):this.clone();return n.__filtered__?n.__takeCount__=gr(r,n.__takeCount__):n.__views__.push({size:gr(r,d),type:e+(n.__dir__<0?"Right":"")}),n},jr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),vt(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=1==r||3==r;jr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:si(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}})),vt(["head","last"],(function(e,t){var r="take"+(t?"Right":"");jr.prototype[e]=function(){return this[r](1).value()[0]}})),vt(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");jr.prototype[e]=function(){return this.__filtered__?new jr(this):this[r](1)}})),jr.prototype.compact=function(){return this.filter(oc)},jr.prototype.find=function(e){return this.filter(e).head()},jr.prototype.findLast=function(e){return this.reverse().find(e)},jr.prototype.invokeMap=Yn((function(e,t){return"function"==typeof e?new jr(this):this.map((function(r){return On(r,e,t)}))})),jr.prototype.reject=function(e){return this.filter(Fa(si(e)))},jr.prototype.slice=function(e,t){e=hs(e);var r=this;return r.__filtered__&&(e>0||t<0)?new jr(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==o&&(r=(t=hs(t))<0?r.dropRight(-t):r.take(t-e)),r)},jr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},jr.prototype.toArray=function(){return this.take(d)},vn(jr.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),i=Ur[n?"take"+("last"==t?"Right":""):t],a=n||/^find/.test(t);i&&(Ur.prototype[t]=function(){var t=this.__wrapped__,s=n?[1]:arguments,c=t instanceof jr,u=s[0],l=c||$a(t),p=function(e){var t=i.apply(Ur,wt([e],s));return n&&f?t[0]:t};l&&r&&"function"==typeof u&&1!=u.length&&(c=l=!1);var f=this.__chain__,d=!!this.__actions__.length,y=a&&!f,h=c&&!d;if(!a&&l){t=h?t:new jr(this);var m=e.apply(t,s);return m.__actions__.push({func:ya,args:[p],thisArg:o}),new zr(m,f)}return y&&h?e.apply(this,s):(m=this.thru(p),y?n?m.value()[0]:m.value():m)})})),vt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Re[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Ur.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var o=this.value();return t.apply($a(o)?o:[],e)}return this[r]((function(r){return t.apply($a(r)?r:[],e)}))}})),vn(jr.prototype,(function(e,t){var r=Ur[t];if(r){var n=r.name+"";xe.call(Or,n)||(Or[n]=[]),Or[n].push({name:t,func:r})}})),Or[Bo(o,2).name]=[{name:"wrapper",func:o}],jr.prototype.clone=function(){var e=new jr(this.__wrapped__);return e.__actions__=Ro(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ro(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ro(this.__views__),e},jr.prototype.reverse=function(){if(this.__filtered__){var e=new jr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},jr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=$a(e),n=t<0,o=r?e.length:0,i=function(e,t,r){for(var n=-1,o=r.length;++n<o;){var i=r[n],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=gr(t,e+a);break;case"takeRight":e=mr(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,c=s-a,u=n?s:a-1,l=this.__iteratees__,p=l.length,f=0,d=gr(c,this.__takeCount__);if(!r||!n&&o==c&&d==c)return fo(e,this.__actions__);var y=[];e:for(;c--&&f<d;){for(var h=-1,m=e[u+=t];++h<p;){var g=l[h],E=g.iteratee,v=g.type,T=E(m);if(2==v)m=T;else if(!T){if(1==v)continue e;break e}}y[f++]=m}return y},Ur.prototype.at=ha,Ur.prototype.chain=function(){return da(this)},Ur.prototype.commit=function(){return new zr(this.value(),this.__chain__)},Ur.prototype.next=function(){this.__values__===o&&(this.__values__=ds(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Ur.prototype.plant=function(e){for(var t,r=this;r instanceof Gr;){var n=Gi(r);n.__index__=0,n.__values__=o,t?i.__wrapped__=n:t=n;var i=n;r=r.__wrapped__}return i.__wrapped__=e,t},Ur.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof jr){var t=e;return this.__actions__.length&&(t=new jr(this)),(t=t.reverse()).__actions__.push({func:ya,args:[ta],thisArg:o}),new zr(t,this.__chain__)}return this.thru(ta)},Ur.prototype.toJSON=Ur.prototype.valueOf=Ur.prototype.value=function(){return fo(this.__wrapped__,this.__actions__)},Ur.prototype.first=Ur.prototype.head,at&&(Ur.prototype[at]=function(){return this}),Ur}();it._=cr,(n=function(){return cr}.call(t,r,t,e))===o||(e.exports=n)}.call(this)},904:(e,t)=>{"use strict";var r;let n;Object.defineProperty(t,"__esModule",{value:!0}),t.setDomain=t.getDomain=t.Domain=void 0,function(e){e[e.FA=0]="FA",e[e.FORM=1]="FORM",e[e.ETS=2]="ETS"}(r||(r={})),t.Domain=r,t.setDomain=e=>{n=e},t.getDomain=()=>null!=n?n:r.FA},784:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.errorMap=void 0,t.errorMap=new Map([["fileError","Visual file is damaged"],["versionError","Version number of visual file does not match"],["modelError","Visual model in visual file is damaged"],["codegenError","Codegen visual file failed"]])},117:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ASTNode=void 0,t.ASTNode=class{accept(e){return e.visit(this)}}},862:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Cache=void 0,t.Cache=class{constructor(e,t=0){this.value="",this.indent=t,this.flag=!0,this.INDENT=e}indentOn(){this.flag=!0}indentOff(){this.flag=!1}incIndent(){this.indent++}decIndent(){this.indent--}checkIndent(){return this.indent<0}getIndents(){if(this.flag){let e="";for(let t=0;t<this.indent;t++)e+=this.INDENT;return e}return""}concat(...e){return this.value+=this.getIndents(),this.value=this.value.concat(...e),String(this.value)}toString(){return this.value}}},519:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Tag=void 0;const n=r(117);class o extends n.ASTNode{constructor(e,t,r,n,o){super(),this.defaultValue=new Map,this.mediaParams=new Map,this.mediaProperties=new Map,this.mediaKeyProperty=new Map,this.tagName=e,this.params=t,this.content=r,this.properties=n,this.forEachObj=o,this.ifBoolean=null}setMediaParams(e){this.mediaParams=e}setParams(e){this.params=e}setIfBoolean(e){this.ifBoolean=e}setTagName(e){this.tagName=e}setForEachObj(e){this.forEachObj=e}setMediaProperty(e,t){t.forEach(((t,r)=>{var n;this.mediaKeyProperty.has(r)||this.mediaKeyProperty.set(r,new Map),null===(n=this.mediaKeyProperty.get(r))||void 0===n||n.set(e,t)}))}setDefaultValue(e,t,r="undefined"){this.defaultValue.set(e,[r,t])}}t.Tag=o},623:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ASTNodeGenerator=void 0;const n=r(519),o=r(862),i=r(51),a=r(294);class s{constructor(e){this.cache=e,this.etsImport=new o.Cache(" ",1),this.etsVariable=new o.Cache(" ",1),this.etsFunction=new o.Cache(" ",1),this.aboutToAppear=new o.Cache(" ",2),this.needMediaQuery=!0}visit(e){e instanceof n.Tag&&(this.needMediaQuery&&this.genMediaQuery(e),this.genTag(e))}static getMethodGen(e){return void 0===s.instance?s.instance=new s(e):s.instance.setCache(e),s.instance}setCache(e){this.cache=e,this.etsImport=new o.Cache(" ",1),this.etsVariable=new o.Cache(" ",1),this.etsFunction=new o.Cache(" ",1),this.aboutToAppear=new o.Cache(" ",2),this.needMediaQuery=!0}genParams(e){if("string"==typeof e)this.cache.concat(e);else if(e.size>0){this.cache.concat(i.TokenClass.LBRA,i.TokenClass.SPACE);let t=0;e.forEach(((r,n)=>{this.cache.concat(n,i.TokenClass.COLON,i.TokenClass.SPACE,r),t++,t<e.size&&this.cache.concat(i.TokenClass.COMMA,i.TokenClass.SPACE)})),this.cache.concat(i.TokenClass.SPACE,i.TokenClass.RBRA)}}genObjectProperty(e){let t=0;this.cache.concat(i.TokenClass.LBRA,i.TokenClass.SPACE),e.forEach(((r,n)=>{this.cache.concat(n,i.TokenClass.COLON,i.TokenClass.SPACE,r),t++,t<e.size&&this.cache.concat(i.TokenClass.COMMA,i.TokenClass.SPACE)})),this.cache.concat(i.TokenClass.SPACE,i.TokenClass.RBRA,i.TokenClass.TAG_END)}genTag(e){this.genStart(e),this.cache.concat(e.tagName,i.TokenClass.TAG_START),this.cache.indentOff(),this.genParams(this.getParams(e)),this.cache.concat(i.TokenClass.TAG_END),null!==e.content&&(0!==e.content.length&&(this.cache.concat(i.TokenClass.SPACE,i.TokenClass.LBRA,i.TokenClass.NEW_LINE),this.cache.indentOn(),this.cache.incIndent(),e.content.forEach((e=>{e.accept(this),this.cache.indentOff(),this.cache.concat(i.TokenClass.NEW_LINE),this.cache.indentOn()})),this.cache.decIndent(),this.cache.indentOn()),this.cache.indentOn(),this.cache.concat(i.TokenClass.RBRA)),(null!==e.properties||null!==e.mediaProperties)&&(null!==e.content&&0!==e.content.length||this.cache.incIndent(),this.getProperties(e).forEach(((e,t)=>{this.cache.concat(i.TokenClass.NEW_LINE),this.cache.indentOn(),this.cache.concat(i.TokenClass.PROPERTY_START,t,i.TokenClass.TAG_START),this.cache.indentOff(),"string"==typeof e?this.cache.concat(e,i.TokenClass.TAG_END):this.genObjectProperty(e)})),null!==e.content&&0!==e.content.length||this.cache.decIndent()),this.genEnd(e)}genStart(e){this.genIfStart(e),this.genForTagStart(e)}genEnd(e){this.genForTagEnd(e),this.genIfEnd(e)}genForTagStart(e){var t;void 0!==(null===(t=e.forEachObj)||void 0===t?void 0:t.for)&&(this.cache.concat("ForEach",i.TokenClass.TAG_START,e.forEachObj.for.toString(),i.TokenClass.COMMA,i.TokenClass.NEW_LINE),this.cache.concat(i.TokenClass.TAG_START,e.forEachObj.item,i.TokenClass.COLON," any",i.TokenClass.COMMA," ",e.forEachObj.idx,i.TokenClass.COLON," number",i.TokenClass.TAG_END," => ",i.TokenClass.LBRA,i.TokenClass.NEW_LINE))}genForTagEnd(e){null!==e.forEachObj&&(this.cache.concat(i.TokenClass.RBRA),void 0!==e.forEachObj.key&&""!==e.forEachObj.key&&(this.cache.concat(i.TokenClass.COMMA,i.TokenClass.NEW_LINE),this.cache.indentOn(),this.cache.concat(i.TokenClass.TAG_START,e.forEachObj.item,i.TokenClass.COLON," any",i.TokenClass.COMMA," ",e.forEachObj.idx,i.TokenClass.COLON," number",i.TokenClass.TAG_END," => ",i.TokenClass.LBRA,i.TokenClass.NEW_LINE),this.cache.concat("return ",e.forEachObj.key.toString(),i.TokenClass.TAG_START,e.forEachObj.item,i.TokenClass.COMMA," ",e.forEachObj.idx,i.TokenClass.TAG_END,i.TokenClass.RBRA),this.cache.indentOff()),this.cache.concat(i.TokenClass.TAG_END))}genIfStart(e){null!==e.ifBoolean&&(this.cache.concat("if",i.TokenClass.SPACE,i.TokenClass.TAG_START,e.ifBoolean.toString(),i.TokenClass.TAG_END,i.TokenClass.SPACE,i.TokenClass.LBRA,i.TokenClass.NEW_LINE),this.cache.incIndent())}genIfEnd(e){null!==e.ifBoolean&&(this.cache.indentOn(),this.cache.decIndent(),this.cache.concat(i.TokenClass.NEW_LINE),this.cache.concat(i.TokenClass.RBRA),this.cache.indentOff())}genMediaQuery(e){const t=new Map,r=new Map;if(this.collectMediaQueryMap(e,t),this.collectDefaultValueMap(e,r),0===t.size&&0===r.size)return;const n=a.getUniqueName("mediaQuery"),s=a.getUniqueName("initForMediaQuery"),c=a.getUniqueName("mediaQueryCb"),u=a.getUniqueName("saveMediaQueryResult"),l=a.getUniqueName("updateForMediaQuery"),p=new o.Cache(i.TokenClass.INDENT,1),f=new o.Cache(i.TokenClass.INDENT,1),d=new o.Cache(i.TokenClass.INDENT,1),y=new o.Cache(i.TokenClass.INDENT,1),h=new o.Cache(i.TokenClass.INDENT,1),m=new o.Cache(i.TokenClass.INDENT,1),g=new o.Cache(i.TokenClass.INDENT,1),E=new o.Cache(i.TokenClass.INDENT,2);this.genVariableDeclare(r,p),this.genMediaQueryCb(c,f),this.genMediaQueryListener(t,d,y),this.genInitFuc(s,r,h),this.genMediaQueryCbFnc(u,l,t,m),this.genUpdateFnc(l,s,t,g),this.genAboutToAppear(c,u,t,E),this.etsImport.indentOff(),this.aboutToAppear.indentOff(),this.etsVariable.indentOff(),this.etsFunction.indentOff(),this.etsImport.indentOff(),this.etsImport.concat("import ",n," from '@ohos.mediaquery'"),this.aboutToAppear.concat(E.toString()),this.etsVariable.concat(p.toString(),f.toString(),d.toString(),y.toString()),this.etsFunction.concat(m.toString(),i.TokenClass.NEW_LINE,h.toString(),i.TokenClass.NEW_LINE,g.toString()),this.etsImport.indentOn(),this.aboutToAppear.indentOn(),this.etsVariable.indentOn(),this.etsFunction.indentOn(),this.needMediaQuery=!1}genVariableDeclare(e,t){e.forEach(((e,r)=>{t.concat(i.TokenClass.DECORATOR_STATE,i.TokenClass.SPACE,r.slice(5),i.TokenClass.COLON,i.TokenClass.SPACE,e[1],i.TokenClass.SPACE,i.TokenClass.ASSIGN,i.TokenClass.SPACE,i.TokenClass.UNDEFINED,i.TokenClass.NEW_LINE)}))}genMediaQueryCb(e,t){t.concat(e,i.TokenClass.SPACE,i.TokenClass.ASSIGN,i.TokenClass.SPACE,i.TokenClass.NULL,i.TokenClass.NEW_LINE)}genMediaQueryListener(e,t,r){const n=a.getUniqueName("mediaQuery");e.forEach(((e,o)=>{const s=a.getUniqueName(this.getMediaQueryVariableName(o));t.concat(s,i.TokenClass.COLON,i.TokenClass.SPACE,i.TokenClass.BOOLEAN,i.TokenClass.SPACE,i.TokenClass.ASSIGN,i.TokenClass.SPACE,i.TokenClass.FALSE,i.TokenClass.NEW_LINE),r.concat(`listener_${s}`,i.TokenClass.SPACE,i.TokenClass.ASSIGN,i.TokenClass.SPACE,n,i.TokenClass.PROPERTY_START,"matchMediaSync",i.TokenClass.TAG_START,`'${o}'`,i.TokenClass.TAG_END,i.TokenClass.NEW_LINE)}))}genInitFuc(e,t,r){r.concat(e,i.TokenClass.TAG_START,i.TokenClass.TAG_END,i.TokenClass.SPACE,i.TokenClass.LBRA,i.TokenClass.NEW_LINE),r.indentOn(),r.incIndent(),t.forEach(((e,t)=>{r.concat(t,i.TokenClass.SPACE,i.TokenClass.ASSIGN,i.TokenClass.SPACE,e[0],i.TokenClass.NEW_LINE)})),r.decIndent(),r.concat(i.TokenClass.RBRA,i.TokenClass.NEW_LINE)}genMediaQueryCbFnc(e,t,r,n){const o=Array.from(r.entries());n.concat(e,i.TokenClass.TAG_START,"mediaQueryResult",i.TokenClass.TAG_END,i.TokenClass.SPACE,i.TokenClass.LBRA,i.TokenClass.NEW_LINE),n.incIndent(),n.concat(i.TokenClass.SWITCH,i.TokenClass.SPACE,i.TokenClass.TAG_START,"mediaQueryResult.media",i.TokenClass.TAG_END,i.TokenClass.SPACE,i.TokenClass.LBRA,i.TokenClass.NEW_LINE),n.incIndent();for(let e=0;e<o.length;e++){const[t]=o[e],r=a.getUniqueName(this.getMediaQueryVariableName(t));n.concat(i.TokenClass.CASE,i.TokenClass.SPACE,`'${t}'`,i.TokenClass.COLON,i.TokenClass.NEW_LINE),n.incIndent(),n.concat(i.TokenClass.THIS,i.TokenClass.PROPERTY_START,r,i.TokenClass.SPACE,i.TokenClass.ASSIGN,i.TokenClass.SPACE,"mediaQueryResult.matches",i.TokenClass.NEW_LINE),n.concat(i.TokenClass.BREAK,i.TokenClass.NEW_LINE),n.decIndent()}n.concat(i.TokenClass.DEFAULT,i.TokenClass.COLON,i.TokenClass.NEW_LINE),n.incIndent(),n.concat(i.TokenClass.BREAK,i.TokenClass.NEW_LINE),n.decIndent(),n.decIndent(),n.concat(i.TokenClass.RBRA,i.TokenClass.NEW_LINE),n.concat(i.TokenClass.THIS,i.TokenClass.PROPERTY_START,t,i.TokenClass.TAG_START,i.TokenClass.TAG_END,i.TokenClass.NEW_LINE),n.decIndent(),n.concat(i.TokenClass.RBRA,i.TokenClass.NEW_LINE)}genUpdateFnc(e,t,r,n){n.concat(e,i.TokenClass.TAG_START,i.TokenClass.TAG_END,i.TokenClass.LBRA,i.TokenClass.NEW_LINE),n.incIndent(),n.concat(i.TokenClass.THIS,i.TokenClass.PROPERTY_START,t,i.TokenClass.TAG_START,i.TokenClass.TAG_END,i.TokenClass.NEW_LINE),r.forEach(((e,t)=>{const r=a.getUniqueName(this.getMediaQueryVariableName(t));n.concat(i.TokenClass.IF,i.TokenClass.SPACE,i.TokenClass.TAG_START,i.TokenClass.THIS,i.TokenClass.PROPERTY_START,r,i.TokenClass.TAG_END,i.TokenClass.SPACE,i.TokenClass.LBRA,i.TokenClass.NEW_LINE),n.incIndent(),e.forEach(((e,t)=>{n.concat(t,i.TokenClass.SPACE,i.TokenClass.ASSIGN,i.TokenClass.SPACE,e,i.TokenClass.NEW_LINE)})),n.decIndent(),n.concat(i.TokenClass.RBRA,i.TokenClass.NEW_LINE)})),n.decIndent(),n.concat(i.TokenClass.RBRA,i.TokenClass.NEW_LINE)}genAboutToAppear(e,t,r,n){let o=1;n.concat(i.TokenClass.THIS,i.TokenClass.PROPERTY_START,e,i.TokenClass.SPACE,i.TokenClass.ASSIGN,i.TokenClass.SPACE,i.TokenClass.THIS,i.TokenClass.PROPERTY_START,`${t}.bind(this)`,i.TokenClass.NEW_LINE),r.forEach(((t,s)=>{const c=`listener_${a.getUniqueName(this.getMediaQueryVariableName(s))}`;n.indentOn(),n.concat(i.TokenClass.THIS,i.TokenClass.PROPERTY_START,c,i.TokenClass.PROPERTY_START,`on('change', this.${e})`),o<r.size&&(n.indentOff(),n.concat(i.TokenClass.NEW_LINE),o++)}))}getParams(e){return"string"==typeof e.mediaParams||e.mediaParams.size>0?e.mediaParams:e.params}getProperties(e){const t=new Map;return e.properties.forEach(((e,r)=>{t.set(r,e)})),e.mediaProperties.forEach(((e,r)=>{t.set(r,e)})),t}collectDefaultValueMap(e,t){void 0!==e.defaultValue&&e.defaultValue.forEach(((e,r)=>{t.set(r,e)})),null!==e.content&&0!==e.content.length&&e.content.forEach((e=>{this.collectDefaultValueMap(e,t)}))}collectMediaQueryMap(e,t){void 0!==e.mediaKeyProperty&&e.mediaKeyProperty.forEach(((e,r)=>{var n;const o=null!==(n=t.get(r))&&void 0!==n?n:new Map;e.forEach(((e,t)=>{o.set(t,e)})),t.set(r,o)})),null!==e.content&&0!==e.content.length&&e.content.forEach((e=>{this.collectMediaQueryMap(e,t)}))}getMediaQueryVariableName(e){const t="device-type: ",r="orientation: ",n=e.substring(e.indexOf(t),e.length),o=n.substring(t.length,n.indexOf(")")),i=e.substring(e.indexOf(r),e.length),a=i.substring(r.length,i.indexOf(")"));return`${o}${a.slice(0,1).toUpperCase()+a.slice(1).toLowerCase()}`}}t.ASTNodeGenerator=s,s.instance=void 0},413:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ETSBridge=void 0;const n=r(519),o=r(973),i=r(497);t.ETSBridge=class{constructor(){this.errors=0}error(e){console.error("Code generating error: "+e),this.errors+=1}getErrorCount(){return this.errors}visit(e){const t=new Map;let r=null;const a=new Map,s=new n.Tag(e.type,t,r,a,null);if(o.parseVisualModel(e,s),i.parseMediaVisualModel(e,s),e.children.length>0){r=[];for(const t of e.children)r.push(t.accept(this))}return s.content=r,s}}},459:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.genETS=void 0;const n=r(623),o=r(862);t.genETS=function(e){const t=n.ASTNodeGenerator.getMethodGen(new o.Cache(" ",2));return e.accept(t),{build:t.cache.toString(),etsImport:t.etsImport.toString(),etsVariable:t.etsVariable.toString(),etsFunction:t.etsFunction.toString(),aboutToAppear:t.aboutToAppear.toString()}}},435:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringWriter=void 0;const n=r(459);t.StringWriter=class{genETS(e){return n.genETS(e)}}},51:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.TokenClass=void 0,(r=t.TokenClass||(t.TokenClass={}))[r.IDENTIFIER=0]="IDENTIFIER",r[r.STRING_LITERAL=1]="STRING_LITERAL",r[r.NUMBER=2]="NUMBER",r[r.CHARACTER=3]="CHARACTER",r[r.EOF=4]="EOF",r[r.INVALID=5]="INVALID",r.EMPTY_DATA="empty",r.ASSIGN="=",r.INDENT=" ",r.NEW_LINE="\n",r.CARRIAGE_RETURN="\r",r.SPACE=" ",r.LQUOTE="'",r.RQUOTE="'",r.TAG_START="(",r.TAG_END=")",r.EMPTY_TAG_END="/>",r.END_TAG_START="</",r.ID_STYLE_START="#",r.PROPERTY_START=".",r.LBRA="{",r.RBRA="}",r.SEMICOLON=";",r.COLON=":",r.COMMA=",",r.DECORATOR_STATE="@State",r.SWITCH="switch",r.CASE="case",r.BREAK="break",r.DEFAULT="default",r.THIS="this",r.BOOLEAN="boolean",r.FALSE="false",r.NULL="null",r.IF="if",r.UNDEFINED="undefined"},497:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isMediaProperty=t.parseMediaVisualModel=void 0;const n=r(294),o=r(973),i=r(290),a=o.curry(((e,t)=>t.hasMediaProperty(e))),s=o.curry(((e,t,r)=>r.type===e&&r.hasMediaProperty(t)));function c(e){const t=e+"-visual",r=i.etsPropertyList;let n="";for(const e of r)void 0!==e.propertySet.properties&&(n=u(t,e.propertySet.properties)),e.propertySet.property===t&&(n=e.propertySet.etsType);return function(e=""){const t=new Map([["ETSBoolean","boolean"],["ETSNumber","number"],["ETSString","string"],["Rfloat","Resource"],["Rstring","Resource"],["Rcolor","Resource"],["Rmedia","Resource"],["Rrawfile","Resource"],["ETSArray","any[]"]]),r=new Array;return e.split("|").forEach((e=>{const n=t.get(e);"Resource"!==n&&r.push(null!=n?n:e)})),r.join(" | ")}(n)}function u(e,t){for(const r of t)if(r.property===e)return r.etsType;return""}function l(e,t,r){const n=t.get(r);return void 0!==n&&n.has(e)}function p(e){return isNaN(Number(e))?o.getEtsEnumValue("FontWeight.",e):e}function f(e){let t=o.getEtsEnumValue("FlexAlign.",e);return"flex-start"===e?t="FlexAlign.Start":"flex-end"===e&&(t="FlexAlign.End"),t}function d(e){return"TextOverflow."+o.firstUpperCase(e)}function y(e,t,r){var n,i;const a=new Map,s=null!==(n=e.mediaProperty)&&void 0!==n?n:new Map,c=null!==(i=e.dynamicMediaProperty)&&void 0!==i?i:new Map;return s.forEach(((e,n)=>{let i=e.get(t);const s=e.get(r);o.isEmptyOrUndefined(i)&&o.isEmptyOrUndefined(s)||(i="0"===i||o.isEmptyOrUndefined(i)?"0":i.substring(0,i.length-2),a.set(n,i))})),c.forEach(((e,r)=>{const n=e.get(t);o.isEmptyOrUndefined(n)||a.set(r,n)})),a}function h(e,t,r){var n,i,a,s;const c=null!==(n=e.property.get("left"))&&void 0!==n?n:e.dynamicProperty.get("left"),u=null!==(i=e.property.get("top"))&&void 0!==i?i:e.dynamicProperty.get("top"),l=t.get("left"),p=t.get("top"),f=r.get("left"),d=r.get("top");let y="undefined",h="undefined";return o.isEmptyOrUndefined(l)&&o.isEmptyOrUndefined(p)||(y=o.quoteString(null!==(a=null!=l?l:c)&&void 0!==a?a:"0"),h=o.quoteString(null!==(s=null!=p?p:u)&&void 0!==s?s:"0")),o.isEmptyOrUndefined(f)&&o.isEmptyOrUndefined(d)||(y=null!=f?f:y,h=null!=d?d:h),{leftValue:y,topValue:h}}function m(e,t){e.forEach(((e,r)=>{"undefined"!==e&&t.set(r,"undefined")}))}function g(e,t){var r,n;const i=new Map,a=t.split("-")[0];return(null!==(r=e.mediaProperty)&&void 0!==r?r:new Map).forEach(((r,n)=>{var s,c,u,l;const p=r.get(a),f=null===(c=null===(s=e.dynamicMediaProperty)||void 0===s?void 0:s.get(n))||void 0===c?void 0:c.get(a),d=null!==(l=null!==(u=r.get(t))&&void 0!==u?u:f)&&void 0!==l?l:p;void 0!==d&&i.set(n,o.quoteString(d))})),(null!==(n=e.dynamicMediaProperty)&&void 0!==n?n:new Map).forEach(((e,r)=>{var n;const o=e.get(a),s=null!==(n=e.get(t))&&void 0!==n?n:o;void 0!==s&&i.set(r,s)})),i}function E(e,t,r){var n,i;const a=new Map;return(null!==(n=e.mediaProperty)&&void 0!==n?n:new Map).forEach(((e,n)=>{let i=e.get(t);o.isEmptyOrUndefined(i)||("function"==typeof r&&(i=r(i)),o.isEmptyOrUndefined(i)||a.set(n,i))})),(null!==(i=e.dynamicMediaProperty)&&void 0!==i?i:new Map).forEach(((e,r)=>{let n=e.get(t);void 0===n||"content"!==t&&"label"!==t||(n=o.getContentName(n)),o.isEmptyOrUndefined(n)||a.set(r,n)})),a}function v(e,t){const r=`this.${o.getEtsPropName(e)}${o.firstUpperCase(o.getEtsPropName(t))}`;return`${r}_${n.getUniqueId(r)}`}function T(e,t,r){var n;const i=e.property.get(t),a=e.dynamicProperty.get(t);let s=null!==(n=new Map([["if","true"],["auto-play","false"],["interval","3000"]]).get(t))&&void 0!==n?n:"undefined";return o.isEmptyOrUndefined(i)||(s="function"==typeof r?r(i):i,s=o.isEmptyOrUndefined(s)?"undefined":s),o.isEmptyOrUndefined(a)||(s=a),s}const S=o.curry(((e,t,r)=>{const n=E(t,e,o.quoteString);if(0===n.size)return;const i=T(t,e,o.quoteString),a=v(t.id,e);r.setDefaultValue(a,c(e),i),r.setMediaProperty(a,n),r.mediaProperties.set(o.getEtsPropName(e),a)})),_=o.curry(((e,t,r)=>{const n=E(t,e);if(0===n.size)return;const i=T(t,e),a=v(t.id,e);r.setDefaultValue(a,c(e),i),r.setMediaProperty(a,n),r.mediaProperties.set(o.getEtsPropName(e),a)})),N=o.curry(((e,t,r)=>{const n=E(t,e);if(0===n.size)return;const i=T(t,e),a=v(t.id,e);r.setDefaultValue(a,c(e),i),r.setMediaProperty(a,n),r.mediaProperties.set(o.getEtsPropName(e),a)})),A=o.curry(((e,t,r,n)=>{const i=E(r,e,o.curry(o.getEtsEnumValue)(t));if(0===i.size)return;const a=T(r,e,o.curry(o.getEtsEnumValue)(t)),s=v(r.id,e);n.setDefaultValue(s,c(e),a),n.setMediaProperty(s,i),n.mediaProperties.set(o.getEtsPropName(e),s)})),C=o.curry(((e,t,r)=>{const n=E(t,e,o.quoteString);if(!(r.mediaParams instanceof Map)||0===n.size)return;const i=T(t,e,o.quoteString),a=v(t.id,e);r.setDefaultValue(a,c(e),i),r.setMediaProperty(a,n),r.mediaParams.set(o.getEtsPropName(e),a)})),w=o.curry(((e,t,r)=>{const n=E(t,e);if(!(r.mediaParams instanceof Map)||0===n.size)return;const i=T(t,e),a=v(t.id,e);r.setDefaultValue(a,c(e),i),r.setMediaProperty(a,n),r.mediaParams.set(o.getEtsPropName(e),a)})),b=o.curry(((e,t,r,n)=>{const i=E(r,e,o.curry(o.getEtsEnumValue)(t));if(!(n.mediaParams instanceof Map)||0===i.size)return;const a=T(r,e,o.curry(o.getEtsEnumValue)(t)),s=v(r.id,e);n.setDefaultValue(s,c(e),a),n.setMediaProperty(s,i),n.mediaParams.set(o.getEtsPropName(e),s)})),R=o.curry(((e,t,r)=>{const n=E(t,e,o.dealWithColor);if(0===n.size)return;const i=T(t,e,o.dealWithColor),a=v(t.id,e);r.setDefaultValue(a,c(e),i),r.setMediaProperty(a,n),r.mediaProperties.set(o.getEtsPropName(e),a)}));function O(e,t,r,n=!1){o.isEmptyOrUndefined(t)||r.set(e,n?t:o.quoteString(t))}t.parseMediaVisualModel=function(e,t){!function(e,t){var r,n,o;const i=null!==(r=e.dynamicProperty.get("for"))&&void 0!==r?r:"[1]",a=null!==(n=e.property.get("item"))&&void 0!==n?n:"item",s=null!==(o=e.property.get("idx"))&&void 0!==o?o:"idx",u=e.dynamicProperty.get("keyGenerator"),l=E(e,"for");if(0===l.size)return;const p=v(e.id,"for"),f={for:p,key:u,item:a,idx:s};t.setDefaultValue(p,c("for"),i),t.setMediaProperty(p,l),t.setForEachObj(f)}(e,t),function(e,t){const r=E(e,"if");if(0===r.size)return;const n=T(e,"if"),o=v(e.id,"if");t.setDefaultValue(o,c("if"),n),t.setMediaProperty(o,r),t.setIfBoolean(o)}(e,t);for(const r of V)("boolean"==typeof r[0]||r[0](e))&&r[1](e,t)};const I=o.curry(((e,t,r)=>{const n=new Map,i=t.property.get(e),a=t.dynamicProperty.get(e),s=null!=a?a:i,u=["top","bottom","left","right"];let l=0;for(const i of u){const a=`${e}-${i}`,u=t.property.get(a),p=t.dynamicProperty.get(a),f=g(t,a);let d=o.isEmptyOrUndefined(s)?"undefined":o.quoteString(s);if(o.isEmptyOrUndefined(u)||(d=o.quoteString(u)),o.isEmptyOrUndefined(p)||(d=p),f.size>0){const e=v(t.id,a);r.setDefaultValue(e,c(a),d),r.setMediaProperty(e,f),O(i,e,n,!0),l++}else O(i,d,n,!0)}l>0&&r.mediaProperties.set(e,n)}));function M(e){return new Set(["Cover","Contain","Auto"]).has(e)?o.getEtsEnumValue("ImageSize.",e):"undefined"}function P(e){const t=e.match(/^ *((0|[1-9][0-9]*)(px|vp|lpx|%))( *$| +((0|[1-9][0-9]*)(px|vp|lpx|%)) *$)/);return null===t?"undefined":void 0!==t[5]?`{ width: ${o.quoteString(t[1])}, height: ${o.quoteString(t[5])} }`:`{ width: ${o.quoteString(t[1])} }`}function x(e,t){var r,n;const i=new Map,a=new Map,s=k(t),c=F(t);return(null!==(r=e.mediaProperty)&&void 0!==r?r:new Map).forEach(((e,r)=>{const n=e.get(t);o.isEmptyOrUndefined(n)||(i.set(r,s(n)),a.set(r,c(n)))})),(null!==(n=e.dynamicMediaProperty)&&void 0!==n?n:new Map).forEach(((e,r)=>{const n=e.get(t);o.isEmptyOrUndefined(n)||(i.set(r,n),a.set(r,"undefined"))})),{enumValueMap:i,objValueMap:a}}function L(e,t){const r=e.property.get(t),n=e.dynamicProperty.get(t),i=k(t),a=F(t);let s="undefined",c="undefined";return o.isEmptyOrUndefined(r)||(s=i(r),c=a(r)),o.isEmptyOrUndefined(n)||(s=n,c="undefined"),{enumDefault:s,objDefault:c}}function k(e){return new Map([["background-image-size",M],["background-image-position",D]]).get(e)}function F(e){return new Map([["background-image-size",P],["background-image-position",U]]).get(e)}function D(e){return new Set(["TopStart","Top","TopEnd","Start","Center","End","BottomStart","Bottom","BottomEnd"]).has(e)?"Alignment."+e:"undefined"}function U(e){const t=e.match(/^ *((0|[1-9][0-9]*)(px|vp|lpx|%)) +((0|[1-9][0-9]*)(px|vp|lpx|%)) *$/);return null===t?"undefined":`{ x: ${o.quoteString(t[1])}, y: ${o.quoteString(t[4])} }`}const B=o.curry(((e,t,r,n)=>{const o=E(r,e,f);if(!(n.mediaProperties instanceof Map)||0===o.size)return;const i=T(r,e,f),a=v(r.id,e);n.setDefaultValue(a,c(e),i),n.setMediaProperty(a,o),n.mediaProperties.set("justifyContent",a)})),G=o.curry(((e,t,r,n)=>{const i=E(r,e,f);if(!(n.mediaParams instanceof Map)||0===i.size)return;const a=T(r,e,f),s=v(r.id,e);n.setDefaultValue(s,c(e),a),n.setMediaProperty(s,i),n.mediaParams.set(o.getEtsPropName(e),s)})),z=o.curry(((e,t)=>t.type===e));t.isMediaProperty=function(e,t){return!l(e,j,"common")&&!l(e,j,t)&&!l(e,j,"events")};const j=new Map([["common",new Set(["keyGenerator","item","idx"])],["events",new Set([...o.events])]]),V=[[a("width"),S("width")],[a("height"),S("height")],[function(e){return e.hasMediaProperty("constraint-size-min-width")||e.hasMediaProperty("constraint-size-max-width")||e.hasMediaProperty("constraint-size-min-height")||e.hasMediaProperty("constraint-size-min-height")},function(e,t){const r=new Map,n=["min-width","max-width","min-height","max-height"];for(const i of n){const n=`constraint-size-${i}`,a=E(e,n,o.quoteString),s=T(e,n,o.quoteString);if(a.size>0){const u=v(e.id,n);t.setDefaultValue(u,c(n),s),t.setMediaProperty(u,a),O(o.getEtsPropName(i),u,r,!0)}}r.size>0&&t.mediaProperties.set("constraintSize",r)}],[a("align"),A("align","Alignment.")],[a("direction"),A("direction","Direction.")],[function(e){return e.hasMediaProperty("left")||e.hasMediaProperty("top")},function(e,t){var r;const n=null!==(r=e.property.get("position"))&&void 0!==r?r:"relative",{leftValue:o,topValue:i}=h(e,e.property,e.dynamicProperty),{mediaPositionLeft:a,mediaPositionTop:s,mediaOffsetLeft:u,mediaOffsetTop:l}=function(e){var t,r;const n=new Map,o=new Map,i=new Map,a=new Map,s=null!==(t=e.mediaProperty)&&void 0!==t?t:new Map,c=null!==(r=e.dynamicMediaProperty)&&void 0!==r?r:new Map,u=new Set;for(const[e]of s)u.add(e);for(const[e]of c)u.add(e);return u.forEach((t=>{var r,s,c,u;const l=null!==(s=null===(r=e.mediaProperty)||void 0===r?void 0:r.get(t))&&void 0!==s?s:new Map,p=null!==(u=null===(c=e.dynamicMediaProperty)||void 0===c?void 0:c.get(t))&&void 0!==u?u:new Map,f=l.get("position"),{leftValue:d,topValue:y}=h(e,l,p);"absolute"===f?("undefined"!==d&&n.set(t,d),"undefined"!==y&&o.set(t,y)):("undefined"!==d&&i.set(t,d),"undefined"!==y&&a.set(t,y))})),{mediaPositionLeft:n,mediaPositionTop:o,mediaOffsetLeft:i,mediaOffsetTop:a}}(e),p=a.size>0||s.size>0||"absolute"===n,f=u.size>0||l.size>0||"relative"===n,d=v(e.id,"positionLeft"),y=v(e.id,"positionTop"),g=v(e.id,"offsetLeft"),E=v(e.id,"offsetTop");if(0!==a.size||0!==s.size||0!==l.size||0!==u.size){if(p&&f&&(m(a,u),m(u,a),m(s,l),m(l,s)),p){const e="absolute"===n?o:"undefined",r="absolute"===n?i:"undefined";t.setDefaultValue(d,c("left"),e),t.setDefaultValue(y,c("top"),r),t.setMediaProperty(d,a),t.setMediaProperty(y,s),t.mediaProperties.set("position",new Map([["x",d],["y",y]]))}if(f){const e="relative"===n?o:"undefined",r="relative"===n?i:"undefined";t.setDefaultValue(g,c("left"),e),t.setDefaultValue(E,c("top"),r),t.setMediaProperty(g,u),t.setMediaProperty(E,l),t.mediaProperties.set("offset",new Map([["x",g],["y",E]]))}}}],[a("aspect-ratio"),_("aspect-ratio")],[a("display-priority"),_("display-priority")],[a("flex-basis"),S("flex-basis")],[a("flex-grow"),_("flex-grow")],[a("flex-shrink"),_("flex-shrink")],[a("align-self"),function(e,t){const r=E(e,"align-self",o.dealWithAlignSelf);if(0===r.size)return;const n=T(e,"align-self",o.dealWithAlignSelf),i=v(e.id,"align-self");t.setDefaultValue(i,c("align-self"),n),t.setMediaProperty(i,r),t.mediaProperties.set("alignSelf",i)}],[a("border-style"),A("border-style","BorderStyle.")],[a("border-width"),S("border-width")],[a("border-color"),R("border-color")],[a("border-radius"),S("border-radius")],[a("background-color"),R("background-color")],[function(e){return e.hasMediaProperty("background-image-src")||e.hasMediaProperty("background-image-repeat")},function(e,t){const r=e.property.get("background-image-src"),n=e.property.get("background-image-repeat"),i=e.dynamicProperty.get("background-image-src"),a=e.dynamicProperty.get("background-image-repeat"),s=E(e,"background-image-src",o.dealWithSrc),u=E(e,"background-image-repeat",o.dealWithBackgroundRepeat);if(0===s.size&&0===u.size)return;let l=o.dealWithSrc(null!=r?r:"");if(o.isEmptyOrUndefined(i)||(l=i),s.size>0){const r=v(e.id,"background-image-src");t.setDefaultValue(r,c("background-image-src"),l),t.setMediaProperty(r,s),l=r}let p="undefined";if(!o.isEmptyOrUndefined(n)){const e=o.dealWithBackgroundRepeat(n);null!=e&&""!==e&&(p=e)}if(o.isEmptyOrUndefined(a)||(p=a),u.size>0){const r=v(e.id,"background-image-repeat");t.setDefaultValue(r,c("background-image-repeat"),p),t.setMediaProperty(r,u),p=r}t.mediaProperties.set("backgroundImage",l+", "+p)}],[a("background-image-size"),function(e,t){const{enumValueMap:r,objValueMap:n}=x(e,"background-image-size");if(0===r.size&&0===n.size)return;const{enumDefault:o,objDefault:i}=L(e,"background-image-size"),a=v(e.id,"background-image-size-enum"),s=v(e.id,"background-image-size-obj");t.setDefaultValue(a,"ImageSize",o),t.setDefaultValue(s,"SizeOptions",i),t.setMediaProperty(a,r),t.setMediaProperty(s,n),t.mediaProperties.set("backgroundImageSize",`${a} !== undefined ? ${a} : ${s}`)}],[a("background-image-position"),function(e,t){const{enumValueMap:r,objValueMap:n}=x(e,"background-image-position");if(0===r.size&&0===n.size)return;const{enumDefault:o,objDefault:i}=L(e,"background-image-position"),a=v(e.id,"background-image-position-enum"),s=v(e.id,"background-image-position-obj");t.setDefaultValue(a,"Alignment",o),t.setDefaultValue(s,"Position",i),t.setMediaProperty(a,r),t.setMediaProperty(s,n),t.mediaProperties.set("backgroundImagePosition",`${a} !== undefined ? ${a} : ${s}`)}],[a("opacity"),_("opacity")],[a("visibility"),A("visibility","Visibility.")],[a("enabled"),N("enabled")],[a("font-color"),R("font-color")],[a("font-size"),S("font-size")],[a("font-style"),A("font-style","FontStyle.")],[a("font-weight"),function(e,t){const r=E(e,"font-weight",o.dealWithFontWeight);if(0===r.size)return;const n=T(e,"font-weight",o.dealWithFontWeight),i=v(e.id,"font-weight");t.setDefaultValue(i,c("font-weight"),n),t.setMediaProperty(i,r),t.mediaProperties.set("fontWeight",i)}],[a("font-family"),S("font-family")],[function(e){return e.hasMediaProperty("margin")||e.hasMediaProperty("margin-left")||e.hasMediaProperty("margin-top")||e.hasMediaProperty("margin-right")||e.hasMediaProperty("margin-bottom")},I("margin")],[function(e){return e.hasMediaProperty("padding")||e.hasMediaProperty("padding-left")||e.hasMediaProperty("padding-top")||e.hasMediaProperty("padding-right")||e.hasMediaProperty("padding-bottom")},I("padding")],[s("button","label"),function(e,t){const r=e.property.get("label"),n=e.dynamicProperty.get("label"),i=E(e,"label",o.quoteString);if(0===i.size)return;let a="''";o.isEmptyOrUndefined(r)||(a=o.quoteString(r)),o.isEmptyOrUndefined(n)||(a=o.getContentName(n));const s=v(e.id,"label");t.setDefaultValue(s,c("label"),a),t.setMediaProperty(s,i),t.setMediaParams(s)}],[s("button","type"),A("type","ButtonType.")],[s("button","state-effect"),N("state-effect")],[s("divider","vertical"),N("vertical")],[s("divider","color"),R("color")],[s("divider","stroke-width"),S("stroke-width")],[s("divider","line-cap"),A("line-cap","LineCapStyle.")],[z("image"),function(e,t){var r;const n=null!==(r=e.property.get("src"))&&void 0!==r?r:"",i=e.dynamicProperty.get("src"),a=E(e,"src",o.quoteString);if(0===a.size)return;let s=o.dealWithSrc(n);o.isEmptyOrUndefined(i)||(s=i);const u=v(e.id,"src");t.setDefaultValue(u,c("src"),s),t.setMediaProperty(u,a),t.setMediaParams(u)}],[s("image","alt"),S("alt")],[s("image","object-fit"),A("object-fit","ImageFit.")],[s("image","object-repeat"),A("object-repeat","ImageRepeat.")],[s("image","interpolation"),A("interpolation","ImageInterpolation.")],[s("image","render-mode"),A("render-mode","ImageRenderMode.")],[function(e){return e.hasMediaProperty("source-size-width")||e.hasMediaProperty("source-size-height")},function(e,t){let r=e.property.get("source-size-width"),n=e.property.get("source-size-height");const i=e.dynamicProperty.get("source-size-width"),a=e.dynamicProperty.get("source-size-height"),s=y(e,"source-size-width","source-size-height"),u=y(e,"source-size-height","source-size-width");if(0===s.size)return;r="0"===r||o.isEmptyOrUndefined(r)?"0":r.substring(0,r.length-2),n="0"===n||o.isEmptyOrUndefined(n)?"0":n.substring(0,n.length-2),o.isEmptyOrUndefined(i)||(r=i),o.isEmptyOrUndefined(a)||(n=a);const l=v(e.id,"source-size-width"),p=v(e.id,"source-size-height");t.setDefaultValue(l,c("source-size-width"),r),t.setDefaultValue(p,c("source-size-height"),n),t.setMediaProperty(l,s),t.setMediaProperty(p,u);const f=new Map([["width",l],["height",p]]);t.mediaProperties.set("sourceSize",f)}],[function(e){return"progress"===e.type&&(e.hasMediaProperty("value")||e.hasMediaProperty("total")||e.hasMediaProperty("style"))},function(e,t){const r=e.property.get("value"),n=e.dynamicProperty.get("value"),i=E(e,"value");if(!(t.mediaParams instanceof Map)||0===i.size)return;let a=null!=r?r:"0";o.isEmptyOrUndefined(n)||(a=n);const s=v(e.id,"value");t.setDefaultValue(s,c("value"),a),t.setMediaProperty(s,i),t.mediaParams.set("value",s)}],[s("progress","total"),w("total")],[s("progress","style"),b("style","ProgressStyle.")],[s("progress","color"),R("color")],[s("slider","value"),w("value")],[s("slider","min"),w("min")],[s("slider","max"),w("max")],[s("slider","step"),w("step")],[s("slider","style"),b("style","SliderStyle.")],[s("slider","block-color"),R("block-color")],[s("slider","track-color"),R("track-color")],[s("slider","selected-color"),R("selected-color")],[s("slider","show-steps"),N("show-steps")],[s("slider","show-tips"),N("show-tips")],[s("text","content"),function(e,t){const r=e.property.get("content"),n=e.dynamicProperty.get("content"),i=E(e,"content",o.quoteString);if(0===i.size)return;let a="''";o.isEmptyOrUndefined(r)||(a=o.quoteString(r)),o.isEmptyOrUndefined(n)||(a=o.getContentName(n));const s=v(e.id,"content");t.setDefaultValue(s,c("content"),a),t.setMediaProperty(s,i),t.setMediaParams(s)}],[s("text","text-align"),A("text-align","TextAlign.")],[s("text","text-overflow"),function(e,t){const r=E(e,"text-overflow",d);if(0===r.size)return;const n=T(e,"text-overflow",d),o=v(e.id,"text-overflow");t.setDefaultValue(o,c("text-overflow"),n),t.setMediaProperty(o,r),t.mediaProperties.set("textOverflow",new Map([["overflow",o]]))}],[s("text","max-lines"),_("max-lines")],[s("text","line-height"),S("line-height")],[function(e){return"text"===e.type&&(e.hasMediaProperty("decoration-type")||e.hasMediaProperty("decoration-color"))},function(e,t){const r=E(e,"decoration-type",o.curry(o.getEtsEnumValue)("TextDecorationType.")),n=E(e,"decoration-color",o.dealWithColor);if(0===r.size&&0===n.size)return;let i=T(e,"decoration-type",o.curry(o.getEtsEnumValue)("TextDecorationType.")),a=T(e,"decoration-color",o.dealWithColor);if(r.size>0){const n=v(e.id,"decoration-type");t.setDefaultValue(n,c("decoration-type"),i),t.setMediaProperty(n,r),i=n}if(n.size>0){const r=v(e.id,"decoration-color");t.setDefaultValue(r,c("decoration-color"),a),t.setMediaProperty(r,n),a=r}const s=new Map([["type",i]]);t.mediaProperties.set("decoration",s),"undefined"!==a&&s.set("color",a)}],[s("text","baseline-offset"),S("baseline-offset")],[s("text","text-case"),A("text-case","TextCase.")],[s("column","space"),C("space")],[s("column","align-items-column"),function(e,t){const r=E(e,"align-items-column",o.dealWithColumnAlignItems);if(0===r.size)return;const n=T(e,"align-items-column",o.dealWithColumnAlignItems),i=v(e.id,"align-items-column");t.setDefaultValue(i,c("align-items-column"),n),t.setMediaProperty(i,r),t.mediaProperties.set("alignItems",i)}],[s("column","justify-content-rc"),B("justify-content-rc","FlexAlign.")],[s("row","space"),C("space")],[s("row","align-items-row"),function(e,t){const r=E(e,"align-items-row",o.dealWithRowAlignItems);if(0===r.size)return;const n=T(e,"align-items-row",o.dealWithRowAlignItems),i=v(e.id,"align-items-row");t.setDefaultValue(i,c("align-items-row"),n),t.setMediaProperty(i,r),t.mediaProperties.set("alignItems",i)}],[s("row","justify-content-rc"),B("justify-content-rc","FlexAlign.")],[s("flex","flex-direction"),function(e,t){const r=E(e,"flex-direction",o.curry(o.getEtsEnumValue)("FlexDirection."));if(!(t.mediaParams instanceof Map)||0===r.size)return;const n=T(e,"flex-direction",o.curry(o.getEtsEnumValue)("FlexDirection.")),i=v(e.id,"flex-direction");t.setDefaultValue(i,c("flex-direction"),n),t.setMediaProperty(i,r),t.mediaParams.set("direction",i)}],[s("flex","wrap"),function(e,t){const r=E(e,"wrap",o.dealWithWrap);if(!(t.mediaParams instanceof Map)||0===r.size)return;const n=T(e,"wrap",o.dealWithWrap),i=v(e.id,"wrap");t.setDefaultValue(i,c("wrap"),n),t.setMediaProperty(i,r),t.mediaParams.set("wrap",i)}],[s("flex","justify-content"),G("justify-content","FlexAlign.")],[s("flex","align-items-flex"),function(e,t){const r=E(e,"align-items-flex",o.dealWithFlexAlignItems);if(!(t.mediaParams instanceof Map)||0===r.size)return;const n=T(e,"align-items-flex",o.dealWithFlexAlignItems),i=v(e.id,"align-items-flex");t.setDefaultValue(i,c("align-items-flex"),n),t.setMediaProperty(i,r),t.mediaParams.set("alignItems",i)}],[s("flex","align-content"),G("align-content","FlexAlign.")],[s("list","space-list"),function(e,t){const r=E(e,"space-list");if(!(t.mediaParams instanceof Map)||0===r.size)return;const n=T(e,"space-list"),o=v(e.id,"space-list");t.setDefaultValue(o,c("space-list"),n),t.setMediaProperty(o,r),t.mediaParams.set("space",o)}],[s("list","initial-index"),w("initial-index")],[s("list","list-direction"),A("list-direction","Axis.")],[function(e){return"list"===e.type&&(e.hasMediaProperty("divider-stroke-width")||e.hasMediaProperty("divider-color")||e.hasMediaProperty("divider-start-margin")||e.hasMediaProperty("divider-end-margin"))},function(e,t){const r=[["divider-stroke-width",o.quoteString],["divider-color",o.dealWithColor],["divider-start-margin",o.quoteString],["divider-end-margin",o.quoteString]];let n=0;const i=new Map;for(const[a,s]of r){const r=E(e,a,s),u=o.getEtsPropName(a.replace("divider-",""));let l=T(e,a,s);if("undefined"===l&&"divider-stroke-width"===a&&(l="0"),r.size>0){const o=v(e.id,a);t.setDefaultValue(o,c(a),l),t.setMediaProperty(o,r),l=o,n++}i.set(u,l)}n>0&&t.mediaProperties.set("divider",i)}],[s("list","edit-mode"),N("edit-mode")],[s("list","edge-effect"),A("edge-effect","EdgeEffect.")],[s("list","chain-animation"),N("chain-animation")],[s("list-item","sticky"),A("sticky","Sticky.")],[s("list-item","editable"),N("editable")],[s("swiper","index"),_("index")],[s("swiper","auto-play"),N("auto-play")],[s("swiper","interval"),_("interval")],[s("swiper","indicator"),N("indicator")],[s("swiper","loop"),N("loop")],[s("swiper","duration"),_("duration")],[s("swiper","vertical"),N("vertical")],[s("swiper","item-space"),S("item-space")],[s("swiper","cached-count"),_("cached-count")],[s("swiper","disable-swipe"),N("disable-swipe")],[s("text-input","placeholder"),C("placeholder")],[s("text-input","textInput-type"),function(e,t){const r=E(e,"textInput-type",o.curry(o.getEtsEnumValue)("InputType."));if(0===r.size)return;const n=T(e,"textInput-type",o.curry(o.getEtsEnumValue)("InputType.")),i=v(e.id,"textInput-type");t.setDefaultValue(i,c("textInput-type"),n),t.setMediaProperty(i,r),t.mediaProperties.set("type",i)}],[s("text-input","placeholderColor"),R("placeholderColor")],[function(e){return"text-input"===e.type&&(e.hasMediaProperty("placeholderFont-size")||e.hasMediaProperty("placeholderFont-weight")||e.hasMediaProperty("placeholderFont-family")||e.hasMediaProperty("placeholderFont-style"))},function(e,t){const r=[["size",o.quoteString],["weight",p],["family",o.quoteString],["style",o.curry(o.getEtsEnumValue)("FontStyle.")]];let n=0;const i=new Map;for(const[o,a]of r){const r=`placeholderFont-${o}`,s=E(e,r,a);let u=T(e,r,a);if(s.size>0){const o=v(e.id,r);t.setDefaultValue(o,c(r),u),t.setMediaProperty(o,s),u=o,n++}i.set(o,u)}n>0&&t.mediaProperties.set("placeholderFont",i)}],[s("text-input","enterKeyType"),A("enterKeyType","EnterKeyType.")],[s("text-input","caretColor"),R("caretColor")],[s("text-input","maxLength"),_("maxLength")]]},973:(e,t)=>{"use strict";function r(e){return(...t)=>t.length<e.length?r(e.bind(null,...t)):e(...t)}Object.defineProperty(t,"__esModule",{value:!0}),t.getContentName=t.dealWithBackgroundRepeat=t.dealWithBackgroundImageSize=t.dealWithBackgroundImagePosition=t.dealWithFontWeight=t.dealWithColumnAlignItems=t.dealWithRowAlignItems=t.dealWithWrap=t.dealWithFlexAlignItems=t.dealWithAlignSelf=t.dealWithSrc=t.dealWithColor=t.getEtsEnumValue=t.getEtsPropName=t.firstUpperCase=t.events=t.parseVisualModel=t.isEmptyOrUndefined=t.quoteString=t.curry=void 0,t.curry=r;const n=r(((e,t)=>t.property.has(e)||t.dynamicProperty.has(e))),o=r(((e,t,r)=>r.type===e&&(r.property.has(t)||r.dynamicProperty.has(t))));function i(e){return JSON.stringify(e)}function a(e,t,r){const n=t.dynamicProperty.get(e);return void 0!==n&&""!==n.trim()&&(r.properties.set(E(e),n),!0)}t.quoteString=i;const s=r(((e,t,r)=>{if(a(e,t,r))return;const n=t.property.get(e);void 0!==n&&r.properties.set(E(e),i(n))}));function c(e){return void 0===e||""===e}t.isEmptyOrUndefined=c;const u=r(((e,t,r)=>{if(a(e,t,r))return;const n=t.property.get(e);c(n)||r.properties.set(E(e),n)})),l=r(((e,t,r)=>{if(a(e,t,r))return;const n=t.property.get(e);c(n)||r.properties.set(E(e),n)})),p=r(((e,t,r,n)=>{if(a(e,r,n))return;const o=r.property.get(e);c(o)||n.properties.set(E(e),v(t,o))}));function f(e,t,r){const n=t.dynamicProperty.get(e);return void 0!==n&&""!==n.trim()&&r.params instanceof Map&&(r.params.set(E(e),n),!0)}const d=r(((e,t,r)=>{if(f(e,t,r))return;const n=t.property.get(e);void 0!==n&&r.params instanceof Map&&r.params.set(E(e),i(n))})),y=r(((e,t,r)=>{if(f(e,t,r))return;const n=t.property.get(e);!c(n)&&r.params instanceof Map&&r.params.set(E(e),n)})),h=r(((e,t,r,n)=>{if(f(e,r,n))return;const o=r.property.get(e);!c(o)&&n.params instanceof Map&&n.params.set(E(e),v(t,o))})),m=r(((e,t,r)=>{if(a(e,t,r))return;let n=t.property.get(e);c(n)||(n=T(n),r.properties.set(E(e),n))}));function g([e,...t]){return(null==e?void 0:e.toUpperCase())+t.join("")}function E(e){const t=e.split("-");let r=t[0];for(let e=1;e<t.length;e++)r+=g(t[e]);return r}function v(e,t){const r=t.split("-");let n="";for(const e of r)n+=g(e);return e+n}function T(e){let t=e;return e.startsWith("#")||e.startsWith("rgba")?t=i(e):e.startsWith("0x")||(t=v("Color.",e)),t}function S(e,t,r,n=!1){c(t)||r.set(e,n?t:i(t))}t.parseVisualModel=function(e,r){r.setTagName(e.type.split("-").map((e=>e[0].toUpperCase()+e.slice(1))).join(""));const n=function(e){var t,r;const n=e.dynamicProperty.get("for"),o=e.dynamicProperty.get("keyGenerator"),i=null!==(t=e.property.get("item"))&&void 0!==t?t:"item",a=null!==(r=e.property.get("idx"))&&void 0!==r?r:"idx";return void 0!==e.dynamicProperty.get("for")?{for:n,key:o,item:i,idx:a}:null}(e);r.setForEachObj(n);const o=void 0!==e.dynamicProperty.get("if")?e.dynamicProperty.get("if"):e.property.get("if");void 0===o?r.setIfBoolean(null):r.setIfBoolean(o);for(const t of L)("boolean"==typeof t[0]||t[0](e))&&t[1](e,r);!function(e,r){for(let n of t.events){const t=e.property.get(n);"onDisappear"===n&&(n="onDisAppear");const o=".bind(this)";void 0!==t&&""!==t&&("this"===t.split(".")[0]?r.properties.set(n,t+o):r.properties.set(n,t))}}(e,r)},t.events=["onClick","onTouch","onAppear","onDisappear","onKeyEvent","onAreaChange","onItemDelete","onScrollIndex","onItemDragEnter","onItemDragMove","onItemDragLeave","onItemDragStart","onItemDrop","onComplete","onError","onFinish","onChange","onSubmit","onEditChanged"],t.firstUpperCase=g,t.getEtsPropName=E,t.getEtsEnumValue=v,t.dealWithColor=T;const _=r(((e,t,r,n)=>{if(!(n.params instanceof Map))return;const o=r.dynamicProperty.get(e);if(!c(o))return void n.params.set(E(e),o);const i=r.property.get(e);if(c(i))return;let a=v(t,i);"flex-start"===i?a=t+"Start":"flex-end"===i&&(a=t+"End"),n.params.set(E(e),a)})),N=r(((e,t,r,n)=>{if(!(n.properties instanceof Map))return;const o=r.dynamicProperty.get(e);if(!c(o))return void n.properties.set("justifyContent",o);const i=r.property.get(e);if(c(i))return;let a=v(t,i);"flex-start"===i?a=t+"Start":"flex-end"===i&&(a=t+"End"),n.properties.set("justifyContent",a)})),A=r(((e,t)=>t.type===e));function C(e){return null===e.match(/\$(r|rawfile)\('(.*)'\)$/)?i(e):e}function w(e){let t=v("ItemAlign.",e);return"flex-start"===e?t="ItemAlign.Start":"flex-end"===e&&(t="ItemAlign.End"),t}function b(e){let t=v("ItemAlign.",e);return"flex-start"===e?t="ItemAlign.Start":"flex-end"===e&&(t="ItemAlign.End"),t}function R(e){let t=v("FlexWrap.",e);return"nowrap"===e&&(t="FlexWrap.NoWrap"),t}function O(e){let t=v("VerticalAlign.",e);return"flex-start"===e?t="VerticalAlign.Top":"flex-end"===e&&(t="VerticalAlign.Bottom"),t}function I(e){let t=v("HorizontalAlign.",e);return"flex-start"===e?t="HorizontalAlign.Start":"flex-end"===e&&(t="HorizontalAlign.End"),t}function M(e){return["lighter","normal","regular","medium","bold","bolder"].includes(e)?v("FontWeight.",e):e}function P(e){const t=new Map([["repeat-x","X"],["repeat-y","Y"],["repeat","XY"],["no-repeat","NoRepeat"]]).get(e);if(null!=t&&""!==t)return v("ImageRepeat.",t)}function x(e){return e.startsWith("$r(")?e:`\`\${${e}}\``}t.dealWithSrc=C,t.dealWithAlignSelf=w,t.dealWithFlexAlignItems=b,t.dealWithWrap=R,t.dealWithRowAlignItems=O,t.dealWithColumnAlignItems=I,t.dealWithFontWeight=M,t.dealWithBackgroundImagePosition=function(e){if(new Set(["TopStart","Top","TopEnd","Start","Center","End","BottomStart","Bottom","BottomEnd"]).has(e))return"Alignment."+e;const t=e.match(/^ *((0|[1-9][0-9]*)(px|vp|lpx|%)) +((0|[1-9][0-9]*)(px|vp|lpx|%)) *$/);return null!==t?`{ x: ${i(t[1])}, y: ${i(t[4])} }`:void 0},t.dealWithBackgroundImageSize=function(e){if(new Set(["Cover","Contain","Auto"]).has(e))return v("ImageSize.",e);const t=e.match(/^ *((0|[1-9][0-9]*)(px|vp|lpx|%))( *$| +((0|[1-9][0-9]*)(px|vp|lpx|%)) *$)/);return null!==t?void 0!==t[5]?`{ width: ${i(t[1])}, height: ${i(t[5])} }`:`{ width: ${i(t[1])} }`:void 0},t.dealWithBackgroundRepeat=P,t.getContentName=x;const L=[[n("width"),s("width")],[n("height"),s("height")],[function(e){return e.hasProperty("constraint-size-min-width")||e.hasProperty("constraint-size-max-width")||e.hasProperty("constraint-size-min-height")||e.hasProperty("constraint-size-max-height")},function(e,t){const r=new Map,n=e.getProperty("constraint-size-min-width"),o=e.getProperty("constraint-size-max-width"),i=e.getProperty("constraint-size-min-height"),a=e.getProperty("constraint-size-max-height");S("minWidth",n,r,e.dynamicProperty.has("constraint-size-min-width")),S("maxWidth",o,r,e.dynamicProperty.has("constraint-size-max-width")),S("minHeight",i,r,e.dynamicProperty.has("constraint-size-min-height")),S("maxHeight",a,r,e.dynamicProperty.has("constraint-size-max-height")),r.size>0&&t.properties.set("constraintSize",r)}],[n("align"),p("align","Alignment.")],[n("direction"),p("direction","Direction.")],[function(e){return e.hasProperty("left")||e.hasProperty("top")},function(e,t){const r="absolute"===e.property.get("position")?"position":"offset",n=e.property.get("left"),o=e.property.get("top"),a=e.dynamicProperty.get("left"),s=e.dynamicProperty.get("top");if(c(a)&&c(s)&&c(n)&&c(o))return;const u=new Map([["x",i(null!=n?n:"0")],["y",i(null!=o?o:"0")]]);c(a)||u.set("x",a),c(s)||u.set("y",s),t.properties.set(r,u)}],[n("aspect-ratio"),u("aspect-ratio")],[n("display-priority"),u("display-priority")],[n("flex-basis"),s("flex-basis")],[n("flex-grow"),u("flex-grow")],[n("flex-shrink"),u("flex-shrink")],[n("align-self"),function(e,t){const r=e.dynamicProperty.get("align-self");if(!c(r))return void t.properties.set("alignSelf",r);const n=e.property.get("align-self");if(c(n))return;const o=w(n);t.properties.set("alignSelf",o)}],[n("border-style"),p("border-style","BorderStyle.")],[n("border-width"),s("border-width")],[n("border-color"),m("border-color")],[n("border-radius"),s("border-radius")],[n("background-color"),m("background-color")],[function(e){return e.hasProperty("background-image-src")||e.hasProperty("background-image-repeat")},function(e,t){const r=e.property.get("background-image-src"),n=e.property.get("background-image-repeat"),o=e.dynamicProperty.get("background-image-src"),i=e.dynamicProperty.get("background-image-repeat");if(c(r)&&c(n)&&c(o)&&c(i))return;let a=C(null!=r?r:"");if(c(o)||(a=o),c(i)){if(!c(n)){const e=P(n);null!=e&&""!==e&&(a=a+", "+e)}}else a=a+", "+i;t.properties.set("backgroundImage",a)}],[n("background-image-size"),function(e,t){const r=e.dynamicProperty.get("background-image-size");if(!c(r))return void t.properties.set("backgroundImageSize",r);const n=e.property.get("background-image-size");if(c(n))return;if(new Set(["Cover","Contain","Auto"]).has(n))return void t.properties.set("backgroundImageSize",v("ImageSize.",n));const o=n.match(/^ *((0|[1-9][0-9]*)(px|vp|lpx|%))( *$| +((0|[1-9][0-9]*)(px|vp|lpx|%)) *$)/);null!==o&&(void 0!==o[5]?t.properties.set("backgroundImageSize",new Map([["width",i(o[1])],["height",i(o[5])]])):t.properties.set("backgroundImageSize",new Map([["width",i(o[1])]])))}],[n("background-image-position"),function(e,t){const r=e.dynamicProperty.get("background-image-position");if(!c(r))return void t.properties.set("backgroundImagePosition",r);const n=e.property.get("background-image-position");if(c(n))return;if(new Set(["TopStart","Top","TopEnd","Start","Center","End","BottomStart","Bottom","BottomEnd"]).has(n))return void t.properties.set("backgroundImagePosition","Alignment."+n);const o=n.match(/^ *((0|[1-9][0-9]*)(px|vp|lpx|%)) +((0|[1-9][0-9]*)(px|vp|lpx|%)) *$/);null!==o&&t.properties.set("backgroundImagePosition",new Map([["x",i(o[1])],["y",i(o[4])]]))}],[n("opacity"),u("opacity")],[n("visibility"),p("visibility","Visibility.")],[n("enabled"),l("enabled")],[n("font-color"),m("font-color")],[n("font-size"),s("font-size")],[n("font-style"),p("font-style","FontStyle.")],[n("font-weight"),function(e,t){const r=e.getProperty("font-weight");if(c(r))return;const n=M(r);t.properties.set("fontWeight",n)}],[n("font-family"),s("font-family")],[function(e){return e.hasProperty("margin")||e.hasProperty("margin-left")||e.hasProperty("margin-top")||e.hasProperty("margin-right")||e.hasProperty("margin-bottom")},function(e,t){var r,n,o,i;const a=new Map,s=e.getProperty("margin"),c=null!==(r=e.getProperty("margin-top"))&&void 0!==r?r:s,u=null!==(n=e.getProperty("margin-bottom"))&&void 0!==n?n:s,l=null!==(o=e.getProperty("margin-left"))&&void 0!==o?o:s,p=null!==(i=e.getProperty("margin-right"))&&void 0!==i?i:s,f=e.property.has("margin-top"),d=e.property.has("margin-bottom"),y=e.property.has("margin-left"),h=e.property.has("margin-right"),m=e.dynamicProperty.has("margin"),g=e.dynamicProperty.has("margin-top"),E=e.dynamicProperty.has("margin-bottom"),v=e.dynamicProperty.has("margin-left"),T=e.dynamicProperty.has("margin-right");S("top",c,a,g||!f&&m),S("bottom",u,a,E||!d&&m),S("left",l,a,v||!y&&m),S("right",p,a,T||!h&&m),a.size>0&&t.properties.set("margin",a)}],[function(e){return e.hasProperty("padding")||e.hasProperty("padding-left")||e.hasProperty("padding-top")||e.hasProperty("padding-right")||e.hasProperty("padding-bottom")},function(e,t){var r,n,o,i;const a=new Map,s=e.getProperty("padding"),c=null!==(r=e.getProperty("padding-top"))&&void 0!==r?r:s,u=null!==(n=e.getProperty("padding-bottom"))&&void 0!==n?n:s,l=null!==(o=e.getProperty("padding-left"))&&void 0!==o?o:s,p=null!==(i=e.getProperty("padding-right"))&&void 0!==i?i:s,f=e.property.has("padding-top"),d=e.property.has("padding-bottom"),y=e.property.has("padding-left"),h=e.property.has("padding-right"),m=e.dynamicProperty.has("padding"),g=e.dynamicProperty.has("padding-top"),E=e.dynamicProperty.has("padding-bottom"),v=e.dynamicProperty.has("padding-left"),T=e.dynamicProperty.has("padding-right");S("top",c,a,g||!f&&m),S("bottom",u,a,E||!d&&m),S("left",l,a,v||!y&&m),S("right",p,a,T||!h&&m),a.size>0&&t.properties.set("padding",a)}],[o("button","label"),function(e,t){const r=e.dynamicProperty.get("label");if(!c(r))return void t.setParams(x(r));const n=e.property.get("label");"string"==typeof n&&t.setParams(i(n))}],[o("button","type"),p("type","ButtonType.")],[o("button","state-effect"),l("state-effect")],[o("divider","vertical"),l("vertical")],[o("divider","color"),m("color")],[o("divider","stroke-width"),s("stroke-width")],[o("divider","line-cap"),p("line-cap","LineCapStyle.")],[A("image"),function(e,t){var r;const n=e.dynamicProperty.get("src");if(!c(n))return void t.setParams(n);const o=null!==(r=e.property.get("src"))&&void 0!==r?r:"";t.setParams(C(o))}],[o("image","alt"),s("alt")],[o("image","object-fit"),p("object-fit","ImageFit.")],[o("image","object-repeat"),p("object-repeat","ImageRepeat.")],[o("image","interpolation"),p("interpolation","ImageInterpolation.")],[o("image","render-mode"),p("render-mode","ImageRenderMode.")],[function(e){return e.hasProperty("source-size-width")||e.hasProperty("source-size-height")},function(e,t){let r=e.getProperty("source-size-width"),n=e.getProperty("source-size-height");if(c(r)&&c(n))return;const o=e.dynamicProperty.has("source-size-width"),i=e.dynamicProperty.has("source-size-height");r="0"===r||c(r)?"0":o?r:r.substring(0,r.length-2),n="0"===n||c(n)?"0":i?n:n.substring(0,n.length-2);const a=new Map([["width",r],["height",n]]);t.properties.set("sourceSize",a)}],[function(e){return"progress"===e.type&&(e.hasProperty("value")||e.hasProperty("total")||e.hasProperty("style"))},function(e,t){var r;f("value",e,t)||t.params instanceof Map&&t.params.set("value",null!==(r=e.getProperty("value"))&&void 0!==r?r:"0")}],[o("progress","total"),y("total")],[o("progress","style"),h("style","ProgressStyle.")],[o("progress","color"),m("color")],[o("slider","value"),y("value")],[o("slider","min"),y("min")],[o("slider","max"),y("max")],[o("slider","step"),y("step")],[o("slider","style"),h("style","SliderStyle.")],[o("slider","block-color"),m("block-color")],[o("slider","track-color"),m("track-color")],[o("slider","selected-color"),m("selected-color")],[o("slider","show-steps"),l("show-steps")],[o("slider","show-tips"),l("show-tips")],[o("text","content"),function(e,t){const r=e.property.get("content"),n=e.dynamicProperty.get("content");c(n)?"string"==typeof r&&t.setParams(i(r)):t.setParams(x(n))}],[o("text","text-align"),p("text-align","TextAlign.")],[o("text","text-overflow"),function(e,t){const r=e.dynamicProperty.get("text-overflow");if(!c(r))return void t.properties.set("textOverflow",new Map([["overflow",r]]));const n=e.property.get("text-overflow");c(n)||t.properties.set("textOverflow",new Map([["overflow","TextOverflow."+g(n)]]))}],[o("text","max-lines"),u("max-lines")],[o("text","line-height"),s("line-height")],[function(e){return"text"===e.type&&(e.hasProperty("decoration-type")||e.hasProperty("decoration-color"))},function(e,t){const r=e.property.get("decoration-type"),n=e.dynamicProperty.get("decoration-type"),o=e.property.get("decoration-color"),i=e.dynamicProperty.get("decoration-color");if(c(r)&&c(o)&&c(n)&&c(i))return;const a=new Map;c(n)?a.set("type",c(r)?"TextDecorationType.None":v("TextDecorationType.",r)):a.set("type",n),t.properties.set("decoration",a),c(i)?c(o)||a.set("color",T(o)):a.set("color",i)}],[o("text","baseline-offset"),s("baseline-offset")],[o("text","text-case"),p("text-case","TextCase.")],[o("column","space"),d("space")],[o("column","align-items-column"),function(e,t){const r=e.dynamicProperty.get("align-items-column");if(!c(r))return void t.properties.set("alignItems",r);const n=e.property.get("align-items-column");if(c(n))return;const o=I(n);t.properties.set("alignItems",o)}],[o("column","justify-content-rc"),N("justify-content-rc","FlexAlign.")],[o("row","space"),d("space")],[o("row","align-items-row"),function(e,t){const r=e.dynamicProperty.get("align-items-row");if(!c(r))return void t.properties.set("alignItems",r);const n=e.property.get("align-items-row");if(c(n))return;const o=O(n);t.properties.set("alignItems",o)}],[o("row","justify-content-rc"),N("justify-content-rc","FlexAlign.")],[o("flex","flex-direction"),function(e,t){if(!(t.params instanceof Map))return;const r=e.dynamicProperty.get("flex-direction");if(!c(r))return void t.params.set("direction",r);const n=e.property.get("flex-direction");c(n)||t.params.set("direction",v("FlexDirection.",n))}],[o("flex","wrap"),function(e,t){if(!(t.params instanceof Map))return;const r=e.dynamicProperty.get("wrap");if(!c(r))return void t.params.set("wrap",r);const n=e.property.get("wrap");if(c(n))return;const o=R(n);t.params.set("wrap",o)}],[o("flex","justify-content"),_("justify-content","FlexAlign.")],[o("flex","align-items-flex"),function(e,t){if(!(t.params instanceof Map))return;const r=e.dynamicProperty.get("align-items-flex");if(!c(r))return void t.params.set("alignItems",r);const n=e.property.get("align-items-flex");if(c(n))return;const o=b(n);t.params.set("alignItems",o)}],[o("flex","align-content"),_("align-content","FlexAlign.")],[o("list","space-list"),function(e,t){const r=e.dynamicProperty.get("space-list");if(void 0!==r&&""!==r.trim()&&t.params instanceof Map)return void t.params.set("space",r);const n=e.getProperty("space-list");!c(n)&&t.params instanceof Map&&t.params.set("space",n)}],[o("list","initial-index"),y("initial-index")],[o("list","list-direction"),p("list-direction","Axis.")],[function(e){return"list"===e.type&&(e.hasProperty("divider-stroke-width")||e.hasProperty("divider-color")||e.hasProperty("divider-start-margin")||e.hasProperty("divider-end-margin"))},function(e,t){const r=e.property.get("divider-stroke-width"),n=e.dynamicProperty.get("divider-stroke-width"),o=new Map([["strokeWidth",i(null!=r?r:"0")]]);c(n)||o.set("strokeWidth",n);const a=e.property.get("divider-color"),s=e.dynamicProperty.get("divider-color"),u=e.property.get("divider-start-margin"),l=e.dynamicProperty.get("divider-start-margin"),p=e.property.get("divider-end-margin"),f=e.dynamicProperty.get("divider-end-margin");c(s)?c(a)||o.set("color",T(a)):o.set("color",s),c(l)?c(u)||o.set("startMargin",i(u)):o.set("startMargin",l),c(f)?c(p)||o.set("endMargin",i(p)):o.set("endMargin",f),t.properties.set("divider",o)}],[o("list","edit-mode"),l("edit-mode")],[o("list","edge-effect"),p("edge-effect","EdgeEffect.")],[o("list","chain-animation"),l("chain-animation")],[o("list-item","sticky"),p("sticky","Sticky.")],[o("list-item","editable"),l("editable")],[o("swiper","index"),u("index")],[o("swiper","auto-play"),l("auto-play")],[o("swiper","interval"),u("interval")],[o("swiper","indicator"),l("indicator")],[o("swiper","loop"),l("loop")],[o("swiper","duration"),u("duration")],[o("swiper","vertical"),l("vertical")],[o("swiper","item-space"),s("item-space")],[o("swiper","cached-count"),u("cached-count")],[o("swiper","disable-swipe"),l("disable-swipe")],[o("text-input","placeholder"),d("placeholder")],[o("text-input","textInput-type"),function(e,t){const r=e.dynamicProperty.get("textInput-type");if(!c(r))return void t.properties.set("type",r);const n=e.property.get("textInput-type");c(n)||t.properties.set("type","InputType."+n)}],[o("text-input","placeholderColor"),m("placeholderColor")],[function(e){return"text-input"===e.type&&(e.hasProperty("placeholderFont-size")||e.hasProperty("placeholderFont-weight")||e.hasProperty("placeholderFont-family")||e.hasProperty("placeholderFont-style"))},function(e,t){const r=e.property.get("placeholderFont-size"),n=e.dynamicProperty.get("placeholderFont-size"),o=e.property.get("placeholderFont-weight"),a=e.dynamicProperty.get("placeholderFont-weight"),s=e.property.get("placeholderFont-family"),u=e.dynamicProperty.get("placeholderFont-family"),l=e.property.get("placeholderFont-style"),p=e.dynamicProperty.get("placeholderFont-style"),f=new Map;c(n)?c(r)||f.set("size",parseInt(r)):f.set("size",n),c(a)?c(o)||f.set("weight",isNaN(Number(o))?v("FontWeight.",o):o):f.set("weight",a),c(u)?c(s)||f.set("family",i(s)):f.set("family",u),c(p)?c(l)||f.set("style",v("FontStyle.",l)):f.set("style",p),t.properties.set("placeholderFont",f)}],[o("text-input","enterKeyType"),p("enterKeyType","EnterKeyType.")],[o("text-input","caretColor"),m("caretColor")],[o("text-input","maxLength"),u("maxLength")]]},243:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Style=t.Tag=void 0;const n=r(117);class o extends n.ASTNode{constructor(e,t,r){super(),this.tagName=e,this.attributes=t,this.content=r}}t.Tag=o;class i extends n.ASTNode{constructor(e,t,r,n){super(),this.mediaQuery=void 0,this.kind=e,this.name=t,this.content=r,this.mediaQuery=n}}t.Style=i},573:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ASTNodeGenerator=void 0;const n=r(243),o=r(334);class i{constructor(e){this.cache=e}visit(e){e instanceof n.Tag?this.genTag(e):e instanceof n.Style&&this.genStyle(e)}static getMethodGen(e){return void 0===i.instance?i.instance=new i(e):i.instance.setCache(e),i.instance}setCache(e){this.cache=e}genTag(e){if(this.cache.concat(o.TokenClass.TAG_START,e.tagName),this.cache.indentOff(),e.attributes.forEach(((e,t)=>{let r="";for(const t of e)r+='"'===t?"&quot;":"\n"===t?"&#10;":t;this.cache.concat(o.TokenClass.SPACE,t,o.TokenClass.ASSIGN,o.TokenClass.LQUOTE,r,o.TokenClass.RQUOTE)})),null===e.content)this.cache.concat(o.TokenClass.EMPTY_TAG_END);else{if(this.cache.concat(o.TokenClass.TAG_END),"string"==typeof e.content){let t="";for(const r of e.content)t+="<"===r?"&#60;":r;this.cache.concat(t)}else 0!==e.content.length&&(this.cache.concat(o.TokenClass.NEW_LINE),this.cache.indentOn(),this.cache.incIndent(),e.content.forEach((e=>{e.accept(this),this.cache.indentOff(),this.cache.concat(o.TokenClass.NEW_LINE),this.cache.indentOn()})),this.cache.decIndent(),this.cache.indentOn());this.cache.concat(o.TokenClass.END_TAG_START,e.tagName,o.TokenClass.TAG_END)}}genStyle(e){void 0!==e.mediaQuery&&(this.cache.concat("@media"),this.cache.indentOff(),this.cache.concat(o.TokenClass.SPACE,e.mediaQuery,o.TokenClass.SPACE,o.TokenClass.LBRA,o.TokenClass.NEW_LINE),this.cache.indentOn(),this.cache.incIndent()),"IDStyle"===e.kind&&(this.cache.concat(o.TokenClass.ID_STYLE_START),this.cache.indentOff()),this.cache.concat(e.name,o.TokenClass.SPACE,o.TokenClass.LBRA,o.TokenClass.NEW_LINE),this.cache.indentOn(),this.cache.incIndent(),e.content.forEach(((e,t)=>{this.cache.concat(t,o.TokenClass.COLON,o.TokenClass.SPACE,e,o.TokenClass.SEMICOLON,o.TokenClass.NEW_LINE)})),this.cache.decIndent(),this.cache.concat(o.TokenClass.RBRA,o.TokenClass.NEW_LINE),void 0!==e.mediaQuery&&(this.cache.decIndent(),this.cache.concat(o.TokenClass.RBRA,o.TokenClass.NEW_LINE)),this.cache.concat(o.TokenClass.NEW_LINE)}}t.ASTNodeGenerator=i,i.instance=void 0},844:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CSSBridge=t.HMLBridge=void 0;const n=r(243),o=r(571);t.HMLBridge=class{constructor(){this.errors=0}error(e){console.error("Code generating error: "+e),this.errors+=1}getErrorCount(){return this.errors}visit(e){const t=new Map([["id",e.id]]);let r="";for(let[n,i]of e.property)o.isAttribute(n,e.type)?("string"!=typeof i&&(i=JSON.stringify(i)),t.set(n,i)):o.isContent(n)&&(r=i);if(e.children.length>0){r=[];for(const t of e.children)r.push(t.accept(this))}const i=new n.Tag(e.type,t,r);return"wrapper"===t.get("id")?new n.Tag("div",new Map,[i]):i}},t.CSSBridge=class{constructor(){this.errors=0,this.styles=[]}error(e){console.error("Code generating error: "+e),this.errors+=1}getErrorCount(){return this.errors}genIDStyle(e){var t;const r=t=>{const r=new Map;for(const[n,i]of t)o.isStyle(n,e.type)&&r.set(n,i);return r},i=r(e.property);i.size>0&&this.styles.push(new n.Style("IDStyle",e.id,i)),(null!==(t=e.mediaProperty)&&void 0!==t?t:new Map).forEach(((t,o)=>{const i=r(t);i.size>0&&this.styles.push(new n.Style("IDStyle",e.id,i,o))}));for(const t of e.children)t.accept(this)}visit(e){return this.genIDStyle(e),this.styles}}},55:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.genFACSS=t.genFAHML=void 0;const n=r(573),o=r(862);t.genFAHML=function(e){const t=n.ASTNodeGenerator.getMethodGen(new o.Cache(" "));return e.accept(t),t.cache.toString()},t.genFACSS=function(e){const t=n.ASTNodeGenerator.getMethodGen(new o.Cache(" "));return e.forEach((e=>{e.accept(t)})),t.cache.toString()}},571:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEvent=t.isData=t.isUnknown=t.isContent=t.isAttribute=t.isStyle=t.styleMap=void 0;const n=r(904),o=["width","height","min-width","min-height","max-width","max-height","padding","padding-start","padding-end","padding-top","padding-right","padding-bottom","padding-left","margin","margin-start","margin-end","margin-top","margin-right","margin-bottom","margin-left","border-width","border-style","border-color","border-radius","border-top-width","border-top-style","border-top-color","border-top-left-radius","border-right-width","border-right-style","border-right-color","border-top-right-radius","border-bottom-width","border-bottom-style","border-bottom-color","border-bottom-right-radius","border-left-width","border-left-style","border-left-color","border-bottom-left-radius","background-color","background","background-image","background-size","background-position","background-repeat","display","opacity","visibility","flex","flex-grow","flex-shrink","flex-basis","position","display","top","right","bottom","left","display-index","flex-weight","aspect-ratio"],i=["font-size","font-family","font-style","font-weight"],a=["text-align","line-height","text-decoration","letter-spacing","max-lines","text-overflow","allow-scale","min-font-size","max-font-size","font-size-step","prefer-font-sizes","color",...i],s=["allow-scale","text-decoration","color",...i],c=["text-color","allow-scale","icon-width","icon-height","radius",...i],u=["texton-color","textoff-color","text-padding","allow-scale",...i],l=["column-height","text-color","allow-scale","letter-spacing","text-decoration","line-height","opacity",...i],p=["text-color","allow-scale","letter-spacing",...i];t.styleMap=new Map([["common",new Set([...o])],["div",new Set(["flex-direction","overflow","flex-wrap","justify-content","align-items","align-content","grid-template-columns","grid-template-rows","grid-row-start","grid-row-end","grid-column-start","grid-column-end","grid-gap","grid-columns-gap","grid-rows-gap"])],["text",new Set([...a])],["image",new Set(["object-fit","match-text-direction","fit-original-size"])],["span",new Set([...s])],["input",new Set(["font-size","font-family","font-weight","color","placeholder-color","allow-scale"])],["button",new Set([...c])],["switch",new Set([...u])],["refresh",new Set(["progress-color"])],["divider",new Set(["stroke-width","line-cap","color"])],["chart",new Set(["stroke-width","radius","start-angle","total-angle","center-x","center-y","colors","weights"])],["picker",new Set([...l])],["picker-view",new Set(["color","font-size","selected-color","selected-font-size","focus-color","focus-font-size","disappear-color","disappear-font-size","font-family"])],["slider",new Set(["color","selected-color","block-color"])],["swiper",new Set(["indicator-color","indicator-selected-color","indicator-size","indicator-top","indicator-right","indicator-bottom","indicator-left"])],["list",new Set(["flex-direction","columns","item-extent","fade-color"])],["list-item",new Set(["column-span"])],["progress",new Set(["color","stroke-width","background-color","secondary-color","scale-width","scale-number","start-angle","total-angle","center-x","center-y","radius"])],["select",new Set(["font-family"])],["menu",new Set([...p])],["option",new Set(["color","font-family","allow-scale","font-size","font-weight","text-decoration"])],["video",new Set(["object-fit"])],["clock",new Set(["font-family"])]]);const f=new Map([["common",new Set(["id","ref","disabled","focusable","data","if","for"])],["image",new Set(["src","alt"])],["button",new Set(["type","value","icon","waiting"])],["refresh",new Set(["offset","refreshing","type","lasttime","friction"])],["input",new Set(["type","checked","name","value","placeholder","maxlength","enterkeytype","headericon"])],["switch",new Set(["checked","showtext","texton","textoff"])],["option",new Set(["value","selected","icon"])],["chart",new Set(["type","percent","datasets","options"])],["picker",new Set(["type","range","selected","start","end","lunar","lunarSwitch","columns","hours","containSecond","value","vibrate"])],["picker-view",new Set(["type","range","selected","start","end","lunar","lunarSwitch","columns","hours","containSecond","indicatorprefix","indicatorsuffix","vibrate"])],["slider",new Set(["min","max","step","showtips","showsteps","mode","value"])],["divider",new Set(["vertical"])],["list",new Set(["scrollpage","cachedcount","scrollbar","scrolleffect","shapemode","indexer","itemscale","itemcenter","updateeffect","scrollvibrate","initialindex","initialoffset"])],["list-item",new Set(["type","primary","section","sticky","stickyradius","clickeffect"])],["swiper",new Set(["index","autoplay","interval","indicator","digital","indicatordisabled","loop","duration","vertical"])],["progress",new Set(["type","percent","secondarypercent","clockwise"])],["menu",new Set(["target","title","type"])],["clock",new Set(["clockconfig","showdigit","hourswest"])],["badge",new Set(["placement","count","visible","maxcount","config","label"])],["video",new Set(["muted","src","autoplay","poster","controls","loop","starttime","direction","speed"])],["tabs",new Set(["index","vertical"])],["tab-bar",new Set(["mode"])],["tab-content",new Set(["scrollable"])]]),d=new Map([["common",new Set(["ontouchstart","ontouchmove","ontouchcancel","ontouchend","onclick","onlongpress","onfocus","onblur","onkey","onswipe"])],["image",new Set(["oncomplete","onerror"])],["input",new Set(["onchange","onenterkeyclick"])],["select",new Set(["onchange"])],["refresh",new Set(["onrefresh","onpulldown"])],["swiper",new Set(["onchange","onrotation"])],["list",new Set(["onindexerchange","onscroll","onscrollbottom","onscrolltop","onscrollend","onscrolltouchup","onrequestitem"])],["list-item",new Set(["onsticky"])],["menu",new Set(["onselected","oncancel"])],["picker",new Set(["oncolumnchange","onchange","oncancel"])],["picker-view",new Set(["oncolumnchange","onchange"])],["video",new Set(["onprepared","onstart","onpause","onfinish","onerror","onseeking","onseeked","ontimeupdate","onfullscreenchange","onstop"])],["tabs",new Set(["onchange"])],["switch",new Set(["onchange"])],["dialog",new Set(["oncancel"])]]),y=new Map([["common",new Set(["onClick","onTouch","onAppear","onDisappear","onKeyEvent","onAreaChange"])],["image",new Set(["onComplete","onError","onFinish"])],["swiper",new Set(["onChange"])],["list",new Set(["onItemDelete","onScrollIndex","onItemDragEnter","onItemDragMove","onItemDragLeave","onItemDragStart","onItemDrop"])],["text-input",new Set(["onChange","onSubmit","onEditChanged"])]]);function h(e,t,r){const n=t.get(r);return void 0!==n&&n.has(e)}function m(e,r){return h(e,t.styleMap,"common")||h(e,t.styleMap,r)}function g(e,t){return n.getDomain()===n.Domain.ETS?h(e,y,"common")||h(e,y,t):E(e,t)||v(e,t)}function E(e,t){return h(e,f,"common")||h(e,f,t)}function v(e,t){return h(e,d,"common")||h(e,d,t)}t.isStyle=m,t.isAttribute=g,t.isContent=function(e){return"content"===e},t.isUnknown=function(e,t){return!m(e,t)&&!g(e,t)},t.isData=E,t.isEvent=v},334:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.TokenClass=void 0,(r=t.TokenClass||(t.TokenClass={}))[r.IDENTIFIER=0]="IDENTIFIER",r[r.STRING_LITERAL=1]="STRING_LITERAL",r[r.NUMBER=2]="NUMBER",r[r.CHARACTER=3]="CHARACTER",r[r.EOF=4]="EOF",r[r.INVALID=5]="INVALID",r.EMPTY_DATA="empty",r.ASSIGN="=",r.NEW_LINE="\n",r.CARRIAGE_RETURN="\r",r.INDENT=" ",r.SPACE=" ",r.LQUOTE='"',r.RQUOTE='"',r.TAG_START="<",r.TAG_END=">",r.EMPTY_TAG_END="/>",r.END_TAG_START="</",r.ID_STYLE_START="#",r.CLASS_STYLE_START=".",r.LBRA="{",r.RBRA="}",r.SEMICOLON=";",r.COLON=":"},290:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.etsPropertyList=void 0;const n=r(958),o=r(513),i=["vp","px","%","lpx"],a=[{propertySector:o.Sector.FEATURE,propertySet:{name:"FontSize",property:"font-size-visual",type:o.TypeName.INTEGER,etsType:o.EtsType.COMB_R_LENGTH,units:["fp","px","lpx"]}},{propertySector:o.Sector.FEATURE,propertySet:{name:"FontStyle",property:"font-style-visual",type:o.TypeName.SELECT,etsType:o.EtsType.FONT_STYLE,list:[o.CLEAN_VALUE_NODE,{name:"Normal",value:"normal"},{name:"Italic",value:"italic"}],defaults:"normal"}},{propertySector:o.Sector.FEATURE,propertySet:{name:"FontColor",property:"font-color-visual",type:o.TypeName.COLOR,etsType:o.EtsType.COMB_COLOR}},{propertySector:o.Sector.FEATURE,propertySet:{name:"FontWeight",property:"font-weight-visual",type:o.TypeName.SELECT,etsType:`${o.EtsType.FONT_WEIGHT}|${o.EtsType.NUMBER}`,list:[o.CLEAN_VALUE_NODE,{name:"Normal",value:"normal"},{name:"Lighter",value:"lighter"},{name:"Regular",value:"regular"},{name:"Medium",value:"medium"},{name:"Bold",value:"bold"},{name:"Bolder",value:"bolder"},{value:"100"},{value:"200"},{value:"300"},{value:"400"},{value:"500"},{value:"600"},{value:"700"},{value:"800"},{value:"900"}],defaults:"normal"}},{propertySector:o.Sector.FEATURE,propertySet:{name:"TextAlign",property:"text-align-visual",type:o.TypeName.SELECT,etsType:o.EtsType.TEXT_ALIGN,list:[o.CLEAN_VALUE_NODE,{name:"Start",value:"start"},{name:"Center",value:"center"},{name:"End",value:"end"}],defaults:"start"}},{propertySector:o.Sector.FEATURE,propertySet:{name:"LineHeight",property:"line-height-visual",type:o.TypeName.INTEGER,etsType:o.EtsType.COMB_R_LENGTH,units:["fp","px","lpx"]}},{propertySector:o.Sector.FEATURE,propertySet:{name:"TextOverflow",property:"text-overflow-visual",type:o.TypeName.SELECT,etsType:o.EtsType.TEXT_OVERFLOW,list:[o.CLEAN_VALUE_NODE,{name:"Clip",value:"clip"},{name:"Ellipsis",value:"ellipsis"},{name:"None",value:"none"}],defaults:"clip"}},{propertySector:o.Sector.FEATURE,propertySet:{name:"BaselineOffset",property:"baseline-offset-visual",type:o.TypeName.INTEGER,etsType:o.EtsType.COMB_R_LENGTH,units:["fp","px","lpx"]}},{propertySector:o.Sector.FEATURE,propertySet:{name:"DecorationType",property:"decoration-type-visual",type:o.TypeName.SELECT,etsType:o.EtsType.TEXT_DECORATION_TYPE,list:[o.CLEAN_VALUE_NODE,{name:"Underline",value:"underline"},{name:"LineThrough",value:"line-through"},{name:"Overline",value:"overline"},{name:"None",value:"none"}],defaults:"none"}},{propertySector:o.Sector.FEATURE,propertySet:{name:"DecorationColor",property:"decoration-color-visual",type:o.TypeName.COLOR,etsType:o.EtsType.COMB_COLOR}},{propertySector:o.Sector.FEATURE,propertySet:{name:"TextCase",property:"text-case-visual",type:o.TypeName.SELECT,etsType:o.EtsType.TEXT_CASE,list:[o.CLEAN_VALUE_NODE,{value:"Normal"},{value:"LowerCase"},{value:"UpperCase"}],defaults:"Normal"}},{propertySector:o.Sector.GENERAL,propertySet:{name:"ForEach",property:"for-visual",type:o.TypeName.BASE,etsType:o.EtsType.ARRAY,supportStaticProperty:!1,defaults:""}},{propertySector:o.Sector.GENERAL,propertySet:{name:"KeyGenerator",property:"keyGenerator-visual",type:o.TypeName.BASE,etsType:"Event",supportStaticProperty:!1,defaults:""}},{propertySector:o.Sector.GENERAL,propertySet:{name:"Item",property:"item-visual",type:o.TypeName.BASE,supportDynamicProperty:!1,info:"Variable Name for Item of ForEach Array"}},{propertySector:o.Sector.GENERAL,propertySet:{name:"Idx",property:"idx-visual",type:o.TypeName.BASE,supportDynamicProperty:!1,info:"Variable Name for Index of Corresponding Item In ForEach Array"}}],s=[{propertySector:o.Sector.FEATURE,propertySet:{name:"Placeholder",property:"placeholder-visual",type:o.TypeName.BASE,etsType:o.EtsType.COMB_CONTENT,defaults:""}},{propertySector:o.Sector.FEATURE,propertySet:{name:"Type",property:"textInput-type-visual",type:o.TypeName.SELECT,etsType:o.EtsType.INPUT_TYPE,list:[o.CLEAN_VALUE_NODE,{value:"Normal"},{value:"Password"},{value:"Email"},{value:"Number"}],defaults:"Normal"}},{propertySector:o.Sector.FEATURE,propertySet:{name:"PlaceholderColor",property:"placeholderColor-visual",type:o.TypeName.COLOR,etsType:o.EtsType.COMB_COLOR}},{propertySector:o.Sector.FEATURE,propertySet:{name:"PlaceholderFontSize",property:"placeholderFont-size-visual",type:o.TypeName.INTEGER,etsType:o.EtsType.COMB_LENGTH,units:["fp"]}},{propertySector:o.Sector.FEATURE,propertySet:{name:"PlaceholderFontWeight",property:"placeholderFont-weight-visual",type:o.TypeName.SELECT,etsType:`${o.EtsType.FONT_WEIGHT}|${o.EtsType.NUMBER}`,list:[o.CLEAN_VALUE_NODE,{value:"Normal"},{value:"Lighter"},{value:"Regular"},{value:"Medium"},{value:"Bold"},{value:"Bolder"},{value:"100"},{value:"200"},{value:"300"},{value:"400"},{value:"500"},{value:"600"},{value:"700"},{value:"800"},{value:"900"}],defaults:"400"}},{propertySector:o.Sector.FEATURE,propertySet:{name:"PlaceholderFontFamily",property:"placeholderFont-family-visual",type:o.TypeName.BASE,etsType:o.EtsType.COMB_CONTENT,defaults:""}},{propertySector:o.Sector.FEATURE,propertySet:{name:"PlaceholderFontStyle",property:"placeholderFont-style-visual",type:o.TypeName.SELECT,etsType:o.EtsType.FONT_STYLE,list:[o.CLEAN_VALUE_NODE,{value:"Normal"},{value:"Italic"}],defaults:"Normal"}},{propertySector:o.Sector.FEATURE,propertySet:{name:"EnterKeyType",property:"enterKeyType-visual",type:o.TypeName.SELECT,etsType:o.EtsType.ENTER_KEY_TYPE,list:[o.CLEAN_VALUE_NODE,{value:"Go"},{value:"Search"},{value:"Send"},{value:"Next"},{value:"Done"}],defaults:"Done"}},{propertySector:o.Sector.FEATURE,propertySet:{name:"CaretColor",property:"caretColor-visual",type:o.TypeName.COLOR,etsType:o.EtsType.COMB_COLOR}},{propertySector:o.Sector.FEATURE,propertySet:{name:"MaxLength",property:"maxLength-visual",type:o.TypeName.INTEGER,etsType:o.EtsType.NUMBER}}],c={type:o.TypeName.INTEGER,etsType:o.EtsType.COMB_R_LENGTH,units:["vp","px","lpx"],placeholder:"0"},u=[{propertySector:o.Sector.GENERAL,propertySet:{name:"Width",property:"width-visual",type:o.TypeName.INTEGER,etsType:o.EtsType.COMB_R_LENGTH,units:i}},{propertySector:o.Sector.GENERAL,propertySet:{name:"Height",property:"height-visual",type:o.TypeName.INTEGER,etsType:o.EtsType.COMB_R_LENGTH,units:i}},{propertySector:o.Sector.GENERAL,propertySet:{name:"MinWidth",property:"constraint-size-min-width-visual",type:o.TypeName.INTEGER,etsType:o.EtsType.COMB_R_LENGTH,units:i}},{propertySector:o.Sector.GENERAL,propertySet:{name:"MinHeight",property:"constraint-size-min-height-visual",type:o.TypeName.INTEGER,etsType:o.EtsType.COMB_R_LENGTH,units:i}},{propertySector:o.Sector.GENERAL,propertySet:{name:"MaxWidth",property:"constraint-size-max-width-visual",type:o.TypeName.INTEGER,etsType:o.EtsType.COMB_R_LENGTH,units:i}},{propertySector:o.Sector.GENERAL,propertySet:{name:"MaxHeight",property:"constraint-size-max-height-visual",type:o.TypeName.INTEGER,etsType:o.EtsType.COMB_R_LENGTH,units:i}},{propertySector:o.Sector.DIMENSION,propertySet:Object.assign({name:"Margin",property:"margin-visual"},c)},{propertySector:o.Sector.DIMENSION,propertySet:Object.assign({name:"Padding",property:"padding-visual"},c)},{propertySector:o.Sector.DIMENSION,propertySet:Object.assign({name:"MarginTop",property:"margin-top-visual"},c)},{propertySector:o.Sector.DIMENSION,propertySet:Object.assign({name:"MarginRight",property:"margin-right-visual"},c)},{propertySector:o.Sector.DIMENSION,propertySet:Object.assign({name:"MarginBottom",property:"margin-bottom-visual"},c)},{propertySector:o.Sector.DIMENSION,propertySet:Object.assign({name:"MarginLeft",property:"margin-left-visual"},c)},{propertySector:o.Sector.DIMENSION,propertySet:Object.assign({name:"PaddingTop",property:"padding-top-visual"},c)},{propertySector:o.Sector.DIMENSION,propertySet:Object.assign({name:"PaddingRight",property:"padding-right-visual"},c)},{propertySector:o.Sector.DIMENSION,propertySet:Object.assign({name:"PaddingBottom",property:"padding-bottom-visual"},c)},{propertySector:o.Sector.DIMENSION,propertySet:Object.assign({name:"PaddingLeft",property:"padding-left-visual"},c)}],l={type:o.TypeName.INTEGER,etsType:o.EtsType.COMB_R_LENGTH,units:i},p={type:o.TypeName.INTEGER,etsType:o.EtsType.COMB_R_LENGTH,units:i},f=[{propertySector:o.Sector.DIMENSION,propertySet:{name:"Border",property:"border-visual",type:o.TypeName.COMPOSITE,detached:1,properties:[Object.assign({name:"Width",property:"border-width-visual"},l),Object.assign({name:"Style",property:"border-style-visual"},o.commonParamsForBorder),{name:"Color",property:"border-color-visual",type:o.TypeName.COLOR,etsType:o.EtsType.COMB_COLOR},Object.assign({name:"Radius",property:"border-radius-visual"},p)]}}],d=[{propertySector:o.Sector.FEATURE,propertySet:Object.assign({name:"Vertical",property:"vertical-visual"},o.commonParamsForJudge)},{propertySector:o.Sector.FEATURE,propertySet:{name:"LineCap",property:"line-cap-visual",type:o.TypeName.SELECT,etsType:o.EtsType.LINE_CAP_STYLE,defaults:"butt",list:[o.CLEAN_VALUE_NODE,{name:"Butt",value:"butt"},{name:"Round",value:"round"},{name:"Square",value:"square"}]}},{propertySector:o.Sector.FEATURE,propertySet:{name:"StrokeWidth",property:"stroke-width-visual",type:o.TypeName.INTEGER,etsType:o.EtsType.COMB_LENGTH,units:i}}],y=[{propertySector:o.Sector.FEATURE,propertySet:{name:"InitialIndex",property:"initial-index-visual",type:o.TypeName.INTEGER,etsType:o.EtsType.NUMBER}},{propertySector:o.Sector.FEATURE,propertySet:{name:"ListDirection",property:"list-direction-visual",type:o.TypeName.SELECT,etsType:o.EtsType.AXIS,list:[o.CLEAN_VALUE_NODE,{name:"Vertical",value:"vertical"},{name:"Horizontal",value:"horizontal"}],defaults:"vertical"}},{propertySector:o.Sector.FEATURE,propertySet:{name:"Color",property:"divider-color-visual",type:o.TypeName.COLOR,etsType:o.EtsType.COMB_COLOR}},{propertySector:o.Sector.FEATURE,propertySet:{name:"StrokeWidth",property:"divider-stroke-width-visual",type:o.TypeName.INTEGER,etsType:o.EtsType.COMB_LENGTH,units:i}},{propertySector:o.Sector.FEATURE,propertySet:{name:"StartMargin",property:"divider-start-margin-visual",type:o.TypeName.INTEGER,etsType:o.EtsType.COMB_R_LENGTH,units:i}},{propertySector:o.Sector.FEATURE,propertySet:{name:"EndMargin",property:"divider-end-margin-visual",type:o.TypeName.INTEGER,etsType:o.EtsType.COMB_R_LENGTH,units:i}},{propertySector:o.Sector.FEATURE,propertySet:{name:"EditMode",property:"edit-mode-visual",type:o.TypeName.SELECT,etsType:o.EtsType.BOOLEAN,list:[o.CLEAN_VALUE_NODE,{name:"true",value:"true"},{name:"false",value:"false"}],defaults:"false"}},{propertySector:o.Sector.FEATURE,propertySet:{name:"EdgeEffect",property:"edge-effect-visual",type:o.TypeName.SELECT,etsType:o.EtsType.EDGE_EFFECT,list:[o.CLEAN_VALUE_NODE,{name:"Spring",value:"spring"},{name:"None",value:"none"}],defaults:"spring"}},{propertySector:o.Sector.FEATURE,propertySet:{name:"ChainAnimation",property:"chain-animation-visual",type:o.TypeName.SELECT,etsType:o.EtsType.BOOLEAN,list:[o.CLEAN_VALUE_NODE,{name:"true",value:"true"},{name:"false",value:"false"}],defaults:"false"}}],h=[{propertySector:o.Sector.FEATURE,propertySet:{name:"Sticky",property:"sticky-visual",type:o.TypeName.SELECT,etsType:o.EtsType.STICKY,list:[o.CLEAN_VALUE_NODE,{name:"None",value:"none"},{name:"Normal",value:"normal"}],defaults:"none"}},{propertySector:o.Sector.FEATURE,propertySet:{name:"Editable",property:"editable-visual",type:o.TypeName.SELECT,etsType:o.EtsType.BOOLEAN,list:[o.CLEAN_VALUE_NODE,{name:"true",value:"true"},{name:"false",value:"false"}],defaults:"false"}}],m=[{propertySector:o.Sector.GENERAL,propertySet:{name:"BackgroundImageSrc",property:"background-image-src-visual",type:o.TypeName.BASE,etsType:o.EtsType.STRING}},{propertySector:o.Sector.GENERAL,propertySet:{name:"BackgroundImageRepeat",property:"background-image-repeat-visual",type:o.TypeName.SELECT,etsType:o.EtsType.IMAGE_REPERT,list:[o.CLEAN_VALUE_NODE,{name:"X",value:"repeat-x"},{name:"Y",value:"repeat-y"},{name:"XY",value:"repeat"},{name:"NoRepeat",value:"no-repeat"}]}},{propertySector:o.Sector.GENERAL,propertySet:{name:"BackgroundImageSize",property:"background-image-size-visual",type:o.TypeName.DATA_SELECT_INPUT,etsType:`${o.EtsType.IMAGE_SIZE}|${o.EtsType.STRING}`,list:[o.CLEAN_VALUE_NODE,{name:"Cover",value:"cover"},{name:"Contain",value:"contain"},{name:"Auto",value:"auto"}],defaults:"Auto"}},{propertySector:o.Sector.GENERAL,propertySet:{name:"BackgroundImagePosition",property:"background-image-position-visual",type:o.TypeName.DATA_SELECT_INPUT,etsType:`${o.EtsType.ALIGNMENT}|${o.EtsType.STRING}`,list:[o.CLEAN_VALUE_NODE,{name:"TopStart",value:"top left"},{name:"Top",value:"top center"},{name:"TopEnd",value:"top right"},{name:"Start",value:"center left"},{name:"Center",value:"center center"},{name:"End",value:"center right"},{name:"BottomStart",value:"bottom left"},{name:"Bottom",value:"bottom center"},{name:"BottomEnd",value:"bottom right"}],defaults:"0 0"}}],g=[{propertySector:o.Sector.GENERAL,propertySet:{name:"Location",property:"position-visual",type:o.TypeName.SELECT,defaults:"offset",supportDynamicProperty:!1,list:[o.CLEAN_VALUE_NODE,{name:"offset",value:"relative"},{name:"position",value:"absolute"}]}},{propertySector:o.Sector.GENERAL,propertySet:{name:"X",property:"left-visual",type:o.TypeName.INTEGER,etsType:o.EtsType.COMB_R_LENGTH,defaults:0,units:["vp","px","lpx"]}},{propertySector:o.Sector.GENERAL,propertySet:{name:"Y",property:"top-visual",type:o.TypeName.INTEGER,etsType:o.EtsType.COMB_R_LENGTH,defaults:0,units:["vp","px","lpx"]}}],E=[{propertySector:o.Sector.FLEX,propertySet:{name:"FlexBasis",property:"flex-basis-visual",type:o.TypeName.INTEGER,etsType:o.EtsType.COMB_LENGTH,units:i,defaults:"auto",fixedValues:["auto"],info:"The initial main size of a flex item. It sets the size of the content box otherwise set with box-sizing."}},{propertySector:o.Sector.FLEX,propertySet:{name:"AlignSelf",property:"align-self-visual",type:o.TypeName.SELECT,etsType:o.EtsType.ITEM_ALIGN,defaults:"auto",list:[o.CLEAN_VALUE_NODE,{name:"Auto",value:"auto"},{name:"Start",value:"flex-start"},{name:"Center",value:"center"},{name:"End",value:"flex-end"},{name:"Stretch",value:"stretch"},{name:"Baseline",value:"baseline"}],info:"The alignment of items on the Cross Axis."}},{propertySector:o.Sector.FLEX,propertySet:{name:"Direction",property:"flex-direction-visual",type:o.TypeName.SELECT,etsType:o.EtsType.FLEX_DIRECTION,defaults:"row",list:[o.CLEAN_VALUE_NODE,{name:"Row",value:"row"},{name:"RowReverse",value:"row-reverse"},{name:"Column",value:"column"},{name:"ColumnReverse",value:"column-reverse"}],info:"The direction of flex."}},{propertySector:o.Sector.FLEX,propertySet:{name:"Wrap",property:"wrap-visual",type:o.TypeName.SELECT,etsType:o.EtsType.FLEX_WRAP,defaults:"nowrap",list:[o.CLEAN_VALUE_NODE,{name:"NoWrap",value:"nowrap"},{name:"Wrap",value:"wrap"},{name:"WrapReverse",value:"wrap-reverse"}],info:"Whether flex items are forced onto one line or multiple lines."}},{propertySector:o.Sector.FLEX,propertySet:{name:"JustifyContent",property:"justify-content-visual",type:o.TypeName.SELECT,etsType:o.EtsType.FLEX_ALIGN,defaults:"flex-start",list:[o.CLEAN_VALUE_NODE,{name:"Start",value:"flex-start"},{name:"Center",value:"center"},{name:"End",value:"flex-end"},{name:"SpaceBetween",value:"space-between"},{name:"SpaceAround",value:"space-around"},{name:"SpaceEvenly",value:"space-evenly"}],info:"Allocate the space between and around the elements along the main axis of the flexible container"}},{propertySector:o.Sector.FEATURE,propertySet:{name:"JustifyContent",property:"justify-content-rc-visual",type:o.TypeName.SELECT,etsType:o.EtsType.FLEX_ALIGN,defaults:"flex-start",list:[o.CLEAN_VALUE_NODE,{name:"Start",value:"flex-start"},{name:"Center",value:"center"},{name:"End",value:"flex-end"},{name:"SpaceBetween",value:"space-between"},{name:"SpaceAround",value:"space-around"},{name:"SpaceEvenly",value:"space-evenly"}],info:"Allocate the space between and around the elements along the main axis of the flexible container"}},{propertySector:o.Sector.FLEX,propertySet:{name:"AlignItems",property:"align-items-flex-visual",type:o.TypeName.SELECT,etsType:o.EtsType.ITEM_ALIGN,defaults:"stretch",list:[o.CLEAN_VALUE_NODE,{name:"Auto",value:"auto"},{name:"Start",value:"flex-start"},{name:"Center",value:"center"},{name:"End",value:"flex-end"},{name:"Stretch",value:"stretch"},{name:"Baseline",value:"baseline"}],info:"The alignment of items on the Cross Axis."}},{propertySector:o.Sector.FLEX,propertySet:{name:"AlignContent",property:"align-content-visual",type:o.TypeName.SELECT,etsType:o.EtsType.FLEX_ALIGN,defaults:"flex-start",list:[o.CLEAN_VALUE_NODE,{name:"Start",value:"flex-start"},{name:"Center",value:"center"},{name:"End",value:"flex-end"},{name:"SpaceBetween",value:"space-between"},{name:"SpaceAround",value:"space-around"},{name:"SpaceEvenly",value:"space-evenly"}],info:"Set the distribution of space between and around content items along a flexbox's cross-axis or a grid's block axis."}}],v=[{propertySector:o.Sector.FEATURE,propertySet:Object.assign({name:"AutoPlay",property:"auto-play-visual"},o.commonParamsForJudge)},{propertySector:o.Sector.FEATURE,propertySet:{name:"Interval",property:"interval-visual",type:o.TypeName.BASE,etsType:o.EtsType.NUMBER,defaults:3e3}},{propertySector:o.Sector.FEATURE,propertySet:Object.assign(Object.assign({name:"Loop",property:"loop-visual"},o.commonParamsForJudge),{defaults:!0})},{propertySector:o.Sector.FEATURE,propertySet:{name:"Duration",property:"duration-visual",type:o.TypeName.BASE,etsType:o.EtsType.NUMBER,defaults:400}},{propertySector:o.Sector.FEATURE,propertySet:{name:"ItemSpace",property:"item-space-visual",type:o.TypeName.BASE,etsType:o.EtsType.COMB_LENGTH,defaults:"0"}},{propertySector:o.Sector.FEATURE,propertySet:{name:"CachedCount",property:"cached-count-visual",type:o.TypeName.BASE,etsType:o.EtsType.NUMBER,defaults:1}},{propertySector:o.Sector.FEATURE,propertySet:Object.assign({name:"DisableSwipe",property:"disable-swipe-visual"},o.commonParamsForJudge)},{propertySector:o.Sector.FEATURE,propertySet:{name:"Index",property:"index-visual",type:o.TypeName.BASE,etsType:o.EtsType.NUMBER,defaults:0}},{propertySector:o.Sector.FEATURE,propertySet:Object.assign(Object.assign({name:"Indicator",property:"indicator-visual"},o.commonParamsForJudge),{defaults:!0})}];t.etsPropertyList=[...f,...u,...a,...s,...d,...g,...y,...h,...E,...v,...n.commonPropertyList,...m,{propertySector:o.Sector.ATOMIC,propertySet:{name:"DisplayPriority",property:"display-priority-visual",type:o.TypeName.INTEGER,etsType:o.EtsType.NUMBER}},{propertySector:o.Sector.GENERAL,propertySet:{name:"Visibility",property:"visibility-visual",type:o.TypeName.SELECT,etsType:o.EtsType.VISIBILITY,defaults:"visible",list:[o.CLEAN_VALUE_NODE,{name:"Visible",value:"visible"},{name:"Hidden",value:"hidden"},{name:"None",value:"none"}]}},{propertySector:o.Sector.GENERAL,propertySet:{name:"Enabled",property:"enabled-visual",type:o.TypeName.SELECT,etsType:o.EtsType.BOOLEAN,defaults:"true",list:[{value:"true"},{value:"false"}]}},{propertySector:o.Sector.GENERAL,propertySet:{name:"Align",property:"align-visual",type:o.TypeName.SELECT,etsType:o.EtsType.ALIGNMENT,defaults:"center",list:[o.CLEAN_VALUE_NODE,{name:"TopStart",value:"top-start"},{name:"Top",value:"top"},{name:"TopEnd",value:"top-end"},{name:"Start",value:"start"},{name:"Center",value:"center"},{name:"End",value:"end"},{name:"BottomStart",value:"bottom-start"},{name:"Bottom",value:"bottom"},{name:"BottomEnd",value:"bottom-end"}]}},{propertySector:o.Sector.GENERAL,propertySet:{name:"If",property:"if-visual",type:o.TypeName.SELECT,etsType:o.EtsType.BOOLEAN,defaults:"",list:[{name:"true",value:"true"},{name:"false",value:"false"}]}},{propertySector:o.Sector.FEATURE,propertySet:{name:"Space",property:"space-visual",type:o.TypeName.INTEGER,etsType:o.EtsType.COMB_LENGTH,units:["vp","px","lpx"],requires:{"display-visual":["flex","cleanValue"]},info:"Space between any two adjacent child components."}},{propertySector:o.Sector.FEATURE,propertySet:{name:"Space",property:"space-list-visual",type:o.TypeName.INTEGER,etsType:o.EtsType.NUMBER,requires:{"display-visual":["flex","cleanValue"]},info:"Space between any two adjacent child components."}},{propertySector:o.Sector.FEATURE,propertySet:{name:"AlignItems",property:"align-items-row-visual",type:o.TypeName.SELECT,etsType:o.EtsType.VERTICAL_ALIGN,defaults:"center",requires:{"display-visual":["flex","cleanValue"]},list:[o.CLEAN_VALUE_NODE,{value:"flex-start",name:"top",etsEnumValue:"Top"},{value:"flex-end",name:"bottom",etsEnumValue:"Bottom"},{value:"center",name:"center",etsEnumValue:"Center"}],info:"Alignment mode of child components in the vertical direction."}},{propertySector:o.Sector.FEATURE,propertySet:{name:"AlignItems",property:"align-items-column-visual",type:o.TypeName.SELECT,etsType:o.EtsType.HORIZONTAL_ALIGN,defaults:"center",requires:{"display-visual":["flex","cleanValue"]},list:[o.CLEAN_VALUE_NODE,{value:"flex-start",name:"start",etsEnumValue:"Start"},{value:"flex-end",name:"end",etsEnumValue:"End"},{value:"center",name:"center",etsEnumValue:"Center"}],info:"Alignment mode of child components in the horizontal direction."}},{propertySector:o.Sector.FEATURE,propertySet:{name:"Src",property:"src-visual",type:o.TypeName.BASE,etsType:o.EtsType.COMB_SRC}},{propertySector:o.Sector.FEATURE,propertySet:{name:"Alt",property:"alt-visual",type:o.TypeName.BASE,etsType:o.EtsType.COMB_CONTENT}},{propertySector:o.Sector.FEATURE,propertySet:{name:"RenderMode",property:"render-mode-visual",type:o.TypeName.SELECT,etsType:o.EtsType.IMAGE_RENDER_MODE,defaults:"original",list:[o.CLEAN_VALUE_NODE,{name:"Original",value:"original"},{name:"Template",value:"template"}]}},{propertySector:o.Sector.FEATURE,propertySet:{name:"ObjectRepeat",property:"object-repeat-visual",type:o.TypeName.SELECT,etsType:o.EtsType.IMAGE_REPERT,defaults:"no-repeat",list:[o.CLEAN_VALUE_NODE,{name:"X",value:"X"},{name:"Y",value:"Y"},{name:"XY",value:"XY"},{name:"NoRepeat",value:"no-repeat"}]}},{propertySector:o.Sector.FEATURE,propertySet:{name:"ObjectFit",property:"object-fit-visual",type:o.TypeName.SELECT,etsType:o.EtsType.IMAGE_FIT,defaults:"cover",list:[o.CLEAN_VALUE_NODE,{name:"Cover",value:"cover"},{name:"Contain",value:"contain"},{name:"Fill",value:"fill"},{name:"None",value:"none"},{name:"ScaleDown",value:"scale-down"}]}},{propertySector:o.Sector.FEATURE,propertySet:{name:"InterPolation",property:"interpolation-visual",type:o.TypeName.SELECT,etsType:o.EtsType.IMAGE_INTERPOLATION,defaults:"none",list:[o.CLEAN_VALUE_NODE,{name:"None",value:"none"},{name:"High",value:"high"},{name:"Medium",value:"medium"},{name:"Low",value:"low"}]}},{propertySector:o.Sector.FEATURE,propertySet:{name:"SourceSizeWidth",property:"source-size-width-visual",type:o.TypeName.INTEGER,etsType:o.EtsType.NUMBER,units:["px"]}},{propertySector:o.Sector.FEATURE,propertySet:{name:"SourceSizeHeight",property:"source-size-height-visual",type:o.TypeName.INTEGER,etsType:o.EtsType.NUMBER,units:["px"]}},{propertySector:o.Sector.FEATURE,propertySet:{name:"Type",property:"type-visual",type:o.TypeName.SELECT,etsType:o.EtsType.BUTTON_TYPE,defaults:"capsule",list:[{name:"Normal",value:"normal"},{name:"Capsule",value:"capsule"},{name:"Circle",value:"circle"}]}},{propertySector:o.Sector.FEATURE,propertySet:{name:"StateEffect",property:"state-effect-visual",type:o.TypeName.SELECT,etsType:o.EtsType.BOOLEAN,defaults:"true",list:[{name:"true",value:"true"},{name:"false",value:"false"}]}},{propertySector:o.Sector.FEATURE,propertySet:{name:"Content",property:"content-visual",type:o.TypeName.ADJUSTABLE,etsType:o.EtsType.COMB_CONTENT}},{propertySector:o.Sector.FEATURE,propertySet:{name:"Label",property:"label-visual",type:o.TypeName.ADJUSTABLE,etsType:o.EtsType.COMB_CONTENT}}]},958:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.commonPropertyList=void 0;const n=r(513);t.commonPropertyList=[{propertySector:n.Sector.GENERAL,propertySet:{name:"BackgroundColor",property:"background-color-visual",type:n.TypeName.COLOR,etsType:n.EtsType.COMB_COLOR}},{propertySector:n.Sector.GENERAL,propertySet:{name:"Display",property:"display-visual",type:n.TypeName.SELECT,defaults:"flex",list:[n.CLEAN_VALUE_NODE,{value:"flex"},{value:"none"}]}},{propertySector:n.Sector.GENERAL,propertySet:{name:"Opacity",property:"opacity-visual",type:n.TypeName.SLIDER,etsType:n.EtsType.COMB_R_NUMBER,defaults:"1",step:.01,max:1,min:0}},{propertySector:n.Sector.GENERAL,propertySet:{name:"Overflow",property:"overflow-visual",type:n.TypeName.SELECT,defaults:"visible",list:[n.CLEAN_VALUE_NODE,{value:"visible"},{value:"hidden"},{value:"scroll"}]}},{propertySector:n.Sector.FLEX,propertySet:{name:"FlexGrow",property:"flex-grow-visual",type:n.TypeName.INTEGER,etsType:n.EtsType.NUMBER,defaults:"0",requiresParent:{display:["flex","cleanValue"]},info:"The flex grow factor of a flex item's main size"}},{propertySector:n.Sector.FLEX,propertySet:{name:"FlexShrink",property:"flex-shrink-visual",type:n.TypeName.INTEGER,etsType:n.EtsType.NUMBER,defaults:"1",requiresParent:{display:["flex","cleanValue"]},info:"The flex shrink factor of a flex item. If the size of all flex items is larger than the flex container, items will shrink"}},{propertySector:n.Sector.FLEX,propertySet:{name:"Columns",property:"columns-visual",type:n.TypeName.INTEGER,etsType:n.EtsType.NUMBER,defaults:1,info:"The column number of flex."}},{propertySector:n.Sector.GENERAL,propertySet:{name:"Header Logo",property:"headerLogo-visual",type:n.TypeName.BASE,defaults:""}},{propertySector:n.Sector.GENERAL,propertySet:{name:"Title",property:"title-visual",type:n.TypeName.BASE,defaults:""}},{propertySector:n.Sector.GENERAL,propertySet:{name:"Status",property:"status-visual",type:n.TypeName.BASE,defaults:""}},{propertySector:n.Sector.GENERAL,propertySet:{name:"Logo",property:"logo-visual",type:n.TypeName.BASE,defaults:""}},{propertySector:n.Sector.FEATURE,propertySet:{name:"Color",property:"color-visual",type:n.TypeName.COLOR,etsType:n.EtsType.COMB_COLOR}},{propertySector:n.Sector.FEATURE,propertySet:{name:"FontFamily",property:"font-family-visual",type:n.TypeName.BASE,etsType:n.EtsType.COMB_CONTENT,defaults:"sans-serif"}},{propertySector:n.Sector.FEATURE,propertySet:{name:"MaxLines",property:"max-lines-visual",type:n.TypeName.INTEGER,etsType:n.EtsType.NUMBER}},{propertySector:n.Sector.FEATURE,propertySet:{name:"TextColor",property:"text-color-visual",type:n.TypeName.COLOR,defaults:"rgba(0,0,0,0.9)"}},{propertySector:n.Sector.FEATURE,propertySet:{name:"FocusColor",property:"focus-color-visual",type:n.TypeName.COLOR}},{propertySector:n.Sector.FEATURE,propertySet:{name:"DisappearColor",property:"disappear-color-visual",type:n.TypeName.COLOR}},{propertySector:n.Sector.FEATURE,propertySet:{name:"IndicatorColor",property:"indicator-color-visual",type:n.TypeName.COLOR}},{propertySector:n.Sector.FEATURE,propertySet:{name:"IndicatorSelectedColor",property:"indicator-selected-color-visual",type:n.TypeName.COLOR,defaults:"#ff007dff"}},{propertySector:n.Sector.FEATURE,propertySet:{name:"IndicatorSize",property:"indicator-size-visual",type:n.TypeName.INTEGER,units:["px"]}},{propertySector:n.Sector.FEATURE,propertySet:Object.assign({name:"IndicatorTop",property:"indicator-top-visual"},n.commonParamsForIndicator)},{propertySector:n.Sector.FEATURE,propertySet:Object.assign({name:"IndicatorRight",property:"indicator-right-visual"},n.commonParamsForIndicator)},{propertySector:n.Sector.FEATURE,propertySet:Object.assign({name:"IndicatorBottom",property:"indicator-bottom-visual"},n.commonParamsForIndicator)},{propertySector:n.Sector.FEATURE,propertySet:Object.assign({name:"IndicatorLeft",property:"indicator-left-visual"},n.commonParamsForIndicator)},{propertySector:n.Sector.FEATURE,propertySet:{name:"AllowScale",property:"allow-scale-visual",type:n.TypeName.SELECT,defaults:"true",list:[n.CLEAN_VALUE_NODE,{value:"true"},{value:"false"}]}},{propertySector:n.Sector.GRID,propertySet:{name:"GridRowStart",property:"grid-row-start-visual",type:n.TypeName.INTEGER,requiresParent:{display:["grid"]},info:"The start position of its row in the grid area."}},{propertySector:n.Sector.GRID,propertySet:{name:"GridColumnStart",property:"grid-column-start-visual",type:n.TypeName.INTEGER,requiresParent:{display:["grid"]},info:"The start position of its column in the grid area."}},{propertySector:n.Sector.GRID,propertySet:{name:"GridRowEnd",property:"grid-row-end-visual",type:n.TypeName.INTEGER,requiresParent:{display:["grid"]},info:"The end position of its row in the grid area."}},{propertySector:n.Sector.GRID,propertySet:{name:"GridColumnEnd",property:"grid-column-end-visual",type:n.TypeName.INTEGER,requiresParent:{display:["grid"]},info:"The end position of its column in the grid area."}},{propertySector:n.Sector.GRID,propertySet:{name:"GridTemplateRows",property:"grid-template-rows-visual",type:n.TypeName.BASE,defaults:"1fr",requires:{"display-visual":["grid"]},info:"The number of items in the grid rows."}},{propertySector:n.Sector.GRID,propertySet:{name:"GridTemplateColumns",property:"grid-template-columns-visual",type:n.TypeName.BASE,defaults:"1fr",requires:{"display-visual":["grid"]},info:"The number of items in the grid columns."}},{propertySector:n.Sector.GRID,propertySet:{name:"GridRowsGap",property:"grid-rows-gap-visual",type:n.TypeName.INTEGER,defaults:"0px",units:["px"],requires:{"display-visual":["grid"]},info:"The size of the gap between an element's grid rows."}},{propertySector:n.Sector.GRID,propertySet:{name:"GridColumnsGap",property:"grid-columns-gap-visual",type:n.TypeName.INTEGER,defaults:"0px",units:["px"],requires:{"display-visual":["grid"]},info:"The size of the gap between an element's columns."}},{propertySector:n.Sector.GRID,propertySet:{name:"GridGap",property:"grid-gap-visual",type:n.TypeName.INTEGER,units:["px"],requires:{"display-visual":["grid"]},info:"The gaps between rows and columns. It is a shorthand for row-gap and column-gap."}},{propertySector:n.Sector.FEATURE,propertySet:Object.assign({name:"MatchTextDirection",property:"match-text-direction-visual"},n.commonParamsForJudge)},{propertySector:n.Sector.FEATURE,propertySet:Object.assign({name:"FitOriginalSize",property:"fit-original-size-visual"},n.commonParamsForJudge)},{propertySector:n.Sector.FEATURE,propertySet:{name:"IconWidth",property:"icon-width-visual",type:n.TypeName.INTEGER,units:["px"]}},{propertySector:n.Sector.FEATURE,propertySet:{name:"IconHeight",property:"icon-height-visual",type:n.TypeName.INTEGER,units:["px"]}},{propertySector:n.Sector.FEATURE,propertySet:{name:"TextonColor",property:"texton-color-visual",type:n.TypeName.COLOR,defaults:"#000000"}},{propertySector:n.Sector.FEATURE,propertySet:{name:"TextoffColor",property:"textoff-color-visual",type:n.TypeName.COLOR,defaults:"#000000"}},{propertySector:n.Sector.FEATURE,propertySet:{name:"TextPadding",property:"text-padding-visual",type:n.TypeName.INTEGER,defaults:0,units:["px"]}},{propertySector:n.Sector.FEATURE,propertySet:{name:"SelectedColor",property:"selected-color-visual",type:n.TypeName.COLOR,defaults:"rgba(0,125,255,1)"}},{propertySector:n.Sector.FEATURE,propertySet:{name:"BlockColor",property:"block-color-visual",type:n.TypeName.COLOR,defaults:"#ffffff"}},{propertySector:n.Sector.FEATURE,propertySet:{name:"Radius",property:"radius-visual",type:n.TypeName.INTEGER,units:["px"]}},{propertySector:n.Sector.FEATURE,propertySet:{name:"StartAngle",property:"start-angle-visual",type:n.TypeName.INTEGER,defaults:240}},{propertySector:n.Sector.FEATURE,propertySet:{name:"TotalAngle",property:"total-angle-visual",type:n.TypeName.INTEGER,defaults:240}},{propertySector:n.Sector.FEATURE,propertySet:{name:"CenterX",property:"center-x-visual",type:n.TypeName.INTEGER}},{propertySector:n.Sector.FEATURE,propertySet:{name:"CenterY",property:"center-y-visual",type:n.TypeName.INTEGER}},{propertySector:n.Sector.FEATURE,propertySet:{name:"Colors",property:"colors-visual",type:n.TypeName.BASE}},{propertySector:n.Sector.FEATURE,propertySet:{name:"Weights",property:"weights-visual",type:n.TypeName.BASE}},{propertySector:n.Sector.FEATURE,propertySet:{name:"PlaceHolderColor",property:"placeholder-color-visual",type:n.TypeName.COLOR,defaults:"gray"}},{propertySector:n.Sector.FEATURE,propertySet:{name:"ProgressColor",property:"progress-color-visual",type:n.TypeName.COLOR,etsType:n.EtsType.COMB_COLOR,defaults:"black"}},{propertySector:n.Sector.FEATURE,propertySet:{name:"ItemExtent",property:"item-extent-visual",type:n.TypeName.INTEGER,units:["px","%"]}},{propertySector:n.Sector.FEATURE,propertySet:{name:"FadeColor",property:"fade-color-visual",type:n.TypeName.COLOR,defaults:"grey"}},{propertySector:n.Sector.FLEX,propertySet:{name:"ColumnSpan",property:"column-span-visual",type:n.TypeName.INTEGER,defaults:1,min:1,info:"The number of span."}},{propertySector:n.Sector.ATOMIC,propertySet:{name:"FlexWeight",property:"flex-weight-visual",type:n.TypeName.INTEGER}},{propertySector:n.Sector.ATOMIC,propertySet:{name:"AspectRatio",property:"aspect-ratio-visual",type:n.TypeName.INTEGER,etsType:n.EtsType.NUMBER}},{propertySector:n.Sector.FEATURE,propertySet:{name:"SecondaryColor",property:"secondary-color-visual",type:n.TypeName.COLOR,requires:{type:["horizontal","ring","scale-ring"]}}},{propertySector:n.Sector.FEATURE,propertySet:{name:"ScaleWidth",property:"scale-width-visual",type:n.TypeName.INTEGER,requires:{type:["ring","scale-ring"]}}},{propertySector:n.Sector.FEATURE,propertySet:{name:"ScaleNumber",property:"scale-number-visual",type:n.TypeName.INTEGER,defaults:120,requires:{type:["ring","scale-ring"]}}},{propertySector:n.Sector.FEATURE,propertySet:{name:"Value",property:"value-visual",type:n.TypeName.INTEGER,etsType:n.EtsType.NUMBER,defaults:0}},{propertySector:n.Sector.FEATURE,propertySet:{name:"Total",property:"total-visual",type:n.TypeName.INTEGER,etsType:n.EtsType.NUMBER,defaults:100}},{propertySector:n.Sector.FEATURE,propertySet:{name:"Style",property:"style-visual",type:n.TypeName.SELECT,etsType:n.EtsType.PROGRESS_STYLE,defaults:"Linear",list:[{value:"Linear"}]}}]},513:(e,t)=>{"use strict";var r,n,o;Object.defineProperty(t,"__esModule",{value:!0}),t.EtsType=t.commonParamsForBorderRadius=t.commonParamsForIndicator=t.commonParamsForInteger=t.commonParamsForJudge=t.commonParamsForBorder=t.CLEAN_VALUE_NODE=t.TypeName=t.Sector=void 0,function(e){e.GENERAL="general",e.DIMENSION="dimension",e.FEATURE="feature",e.FLEX="flex",e.GRID="grid",e.ATOMIC="atomic"}(r||(r={})),t.Sector=r,function(e){e.BASE="base",e.INTEGER="integer",e.SELECT="select",e.COLOR="color",e.COMPOSITE="composite",e.SLIDER="slider",e.DATA_SELECT_INPUT="dataSelectInput",e.ADJUSTABLE="adjustable"}(n||(n={})),t.TypeName=n,function(e){e.ARRAY="ETSArray",e.BOOLEAN="ETSBoolean",e.NUMBER="ETSNumber",e.OBJECT="ETSObject",e.STRING="ETSString",e.R_FLOAT="Rfloat",e.R_STRING="Rstring",e.R_COLOR="Rcolor",e.R_MEDIA="Rmedia",e.R_RAWFILE="Rrawfile",e.ALIGNMENT="Alignment",e.AXIS="Axis",e.BORDER_STYLE="BorderStyle",e.BUTTON_TYPE="ButtonType",e.COLOR="Color",e.DIRECTION="Direction",e.EDGE_EFFECT="EdgeEffect",e.ENTER_KEY_TYPE="EnterKeyType",e.FLEX_ALIGN="FlexAlign",e.FLEX_DIRECTION="FlexDirection",e.FLEX_WRAP="FlexWrap",e.FONT_STYLE="FontStyle",e.FONT_WEIGHT="FontWeight",e.HORIZONTAL_ALIGN="HorizontalAlign",e.IMAGE_FIT="ImageFit",e.IMAGE_INTERPOLATION="ImageInterpolation",e.IMAGE_RENDER_MODE="ImageRenderMode",e.IMAGE_REPERT="ImageRepeat",e.IMAGE_SIZE="ImageSize",e.INPUT_TYPE="InputType",e.ITEM_ALIGN="ItemAlign",e.LINE_CAP_STYLE="LineCapStyle",e.PROGRESS_STYLE="ProgressStyle",e.STICKY="Sticky",e.TEXT_ALIGN="TextAlign",e.TEXT_OVERFLOW="TextOverflow",e.TEXT_DECORATION_TYPE="TextDecorationType",e.TEXT_CASE="TextCase",e.VERTICAL_ALIGN="VerticalAlign",e.VISIBILITY="Visibility",e.COMB_COLOR="ETSString|ETSNumber|Color|Rcolor",e.COMB_LENGTH="ETSString|ETSNumber",e.COMB_R_NUMBER="ETSNumber|Rfloat",e.COMB_R_LENGTH="ETSString|ETSNumber|Rfloat",e.COMB_CONTENT="ETSString|Rstring",e.COMB_SRC="ETSString|Rmedia|Rrawfile"}(o||(o={})),t.EtsType=o;const i={value:"cleanValue",name:"---Clean Value---"};t.CLEAN_VALUE_NODE=i;const a={type:n.SELECT,etsType:o.BORDER_STYLE,list:[i,{value:"dotted",etsEnumValue:"Dotted"},{value:"dashed",etsEnumValue:"Dashed"},{value:"solid",etsEnumValue:"Solid"}]};t.commonParamsForBorder=a;const s={type:n.SELECT,etsType:o.BOOLEAN,defaults:"false",list:[i,{value:"true"},{value:"false"}]};t.commonParamsForJudge=s;const c={type:n.INTEGER,units:["px"],placeholder:"0px"};t.commonParamsForInteger=c;const u={type:n.INTEGER,units:["px","%"]};t.commonParamsForIndicator=u;const l={type:n.INTEGER,units:["px"]};t.commonParamsForBorderRadius=l},282:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TagTypeMap=void 0,t.TagTypeMap=new Map([["button","TextContent"],["span","TextContent"],["divider","TextContent"],["picker","TextContent"],["option","TextContent"],["clock","TextContent"],["image","Base"],["input","Base"],["chart","Base"],["slider","Base"],["progress","Base"],["text","Text"],["div","Container"],["list","Container"],["list-item","Container"],["list-item-group","Container"],["refresh","Container"],["dialog","Container"],["stack","Container"],["menu","Container"],["select","Container"],["tabs","Container"],["tab-bar","Container"],["tab-content","Container"]])},294:(e,t)=>{"use strict";function r(e){let t=function(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");let r="";for(let t=0;t<e.length;t++){const n=e.charCodeAt(t).toString(2);r+=new Array(9-n.length).join("0")+n}let n="";const o=r.length%6,i=r.substr(0,r.length-o);let a=r.substr(r.length-o,o);for(let e=0;e<i.length;e+=6)n+=t[parseInt(i.substr(e,6),2)];return a+=new Array(7-o).join("0"),0!==o&&(n+=t[parseInt(a,2)],n+=new Array((6-o)/2+1).join("=")),n}(e).replace(/[/=+]/g,"");return t.length>=4&&(t=t.substr(t.length/2-2,4)),t}Object.defineProperty(t,"__esModule",{value:!0}),t.getUniqueName=t.getUniqueId=t.removeFromArray=t.getDataName=void 0,t.getDataName=function(e){if("string"==typeof e&&e.startsWith("{{")&&e.endsWith("}}"))return e.substring(2,e.length-2)},t.removeFromArray=function(e,t){const r=[...e];return t.forEach((e=>{const t=r.indexOf(e);-1!==t&&r.splice(t,1)})),r},t.getUniqueId=r,t.getUniqueName=function(e){return`${e}_${r(e)}`}},207:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formManager=void 0;const n=r(891),o=r(945);t.formManager={removeData(e){this.getFormModel().data.delete(e)},addData(e){e instanceof Map?e.forEach(((e,t)=>{this.getFormModel().data.set(t,e)})):Object.keys(e).forEach((t=>{this.getFormModel().data.set(t,e[t])}))},updateAllData(e){this.getFormModel().data.clear(),this.addData(e)},addAction(e,t,r,n){const i=new Map;void 0!==r&&Object.keys(r).forEach((e=>{i.set(e,r[e])}));const a=new Map;void 0!==n&&Object.keys(n).forEach((e=>{a.set(e,n[e])})),this.getFormModel().actions.set(e,new o.FormAction(t,i,a))},updateAllActions(e){this.getFormModel().actions.clear(),e.forEach(((e,t)=>{const r=void 0===e.params?e.params:this.objectToMap(e.params),n=void 0===e.want?e.want:this.objectToMap(e.want),i=new o.FormAction(e.actionType,r,n);this.getFormModel().actions.set(t,i)}))},removeAction(e){this.getFormModel().actions.delete(e)},addActionParams(e,t){var r,n;const i=null!==(r=this.getFormModel().actions.get(e))&&void 0!==r?r:new o.FormAction(e),a=null!==(n=i.params)&&void 0!==n?n:new Map;Object.keys(t).forEach((e=>{a.set(e,t[e])})),i.params=a},removeActionParam(e,t){var r;const n=this.getFormModel().actions.get(e);null===(r=null==n?void 0:n.params)||void 0===r||r.delete(t)},getFormModel:()=>n.getInstance().formData,codegenToJson:function(){const e=n.getInstance().formData,t=this.mapToObject(e.data),r={actions:{},data:{}};return r.data=t,e.actions.forEach(((e,t)=>{r.actions[t]={},r.actions[t].action=e.action,e.params instanceof Map&&e.params.size>0&&(r.actions[t].params=this.mapToObject(e.params)),e.want instanceof Map&&e.want.size>0&&(r.actions[t].want=this.mapToObject(e.want))})),JSON.stringify(r,null,4)},clear(){n.getInstance().formData.data.clear(),n.getInstance().formData.actions.clear()},mapToObject:e=>void 0===e?{}:Array.from(e.entries()).reduce(((e,[t,r])=>Object.assign(Object.assign({},e),{[t]:r})),{}),objectToMap(e){const t=new Map;return Object.keys(e).forEach(((r,n)=>{t.set(r,e[r])})),t}}},945:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FormAction=t.FormModel=void 0,t.FormModel=class{constructor(){this.data=new Map,this.actions=new Map}},t.FormAction=class{constructor(e,t,r){this.action=e,this.params=t,this.want=r}}},509:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deserializeForVersion1=t.rootToVisualContent=t.visualToRootContent=t.serializeForVersion1=void 0;const n=r(891),o=r(933),i=r(571),a=r(282),s=r(945),c=r(977),u=new Map;function l(e){u.set("textMap",new Map);const t=p(null!=e?e:n.getInstance().visualModel);return JSON.stringify({VisualVersion:"1",content:JSON.stringify(t),extraData:JSON.stringify(y(u))})}function p(e){const t=Array.from(e.property).filter((t=>i.isAttribute(t[0],e.type)));t.push(["id",e.id]);const r=Array.from(e.property).filter((t=>i.isStyle(t[0],e.type)));let n=a.TagTypeMap.get(e.type);void 0===n&&(n="Base");let o=e.property.has("content")?e.property.get("content"):[];if(e.children.length>0){if("string"==typeof o){const t=u.get("textMap");t instanceof Map&&t.set(e.id,o)}o=e.children.map((e=>p(e)))}return{id:e.id,tagName:e.type,attributes:t,idStyle:r,type:n,content:o}}function f(e,t){let r;if(t instanceof Map){const n=t.get("textMap");n instanceof Map&&(r=n.get(e.id))}const n=new o.VisualModel({id:e.id,type:e.tagName,property:new Map([...e.attributes,...e.idStyle])});return"string"==typeof r&&n.property.set("content",r),n.property.delete("id"),"string"==typeof e.content&&n.property.set("content",e.content),Array.isArray(e.content)&&(n.children=e.content.map((e=>f(e,t)))),n}function d(e){if(e instanceof Array&&e.length>0&&"$$map"===e[0]){e.shift();const t=new Map;for(const[r,n]of e)t.set(r,d(n));return t}return e}function y(e){if(e instanceof Map){const t=["$$map"];for(const[r,n]of e)t.push([r,y(n)]);return t}return e}t.serializeForVersion1=l,t.visualToRootContent=function(e){try{return l(JSON.parse(e,c.reviver).visualModel)}catch(e){console.error("convert visual model to root model failed")}return e},t.rootToVisualContent=function(e){const t=JSON.parse(e),r=JSON.parse(t.content);let n='["$$map",["textMap",["$$map"]]]';"string"==typeof t.extraData&&(n=JSON.parse(t.extraData));const o=f(r,d(n));return o.property.has("flex-direction")||o.property.set("flex-direction","column"),JSON.stringify({document:{VisualVersion:"12",type:"FA"},visualModel:o,formData:new s.FormModel},c.replacer)},t.deserializeForVersion1=function(e){try{const t=JSON.parse(e),r=JSON.parse(t.content);let o='["$$map",["textMap",["$$map"]]]';"string"==typeof t.extraData&&(o=JSON.parse(t.extraData)),n.getInstance().visualModel=f(r,d(o)),n.getInstance().visualModel.property.has("flex-direction")||n.getInstance().visualModel.property.set("flex-direction","column")}catch(e){console.error("convert error")}}},891:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setInstance=t.getInstance=void 0;const n=r(933),o=r(945),i=r(904),a={document:{VisualVersion:"12",type:"FA"},visualModel:new n.VisualModel({type:"div",id:"wrapper"}),formData:new o.FormModel};t.getInstance=function(){return a},t.setInstance=function(e){for(const t in a)Object.prototype.hasOwnProperty.call(e,t)&&(a[t]=e[t]);const t=a.document.type;i.setDomain("ETS"===t?i.Domain.ETS:"FORM"===t?i.Domain.FORM:i.Domain.FA)}},977:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reviver=t.replacer=t.deserialize=t.serialize=void 0;const n=r(933),o=r(891),i=r(509);function a(e,t){if(t instanceof Map)return{dataType:"Map",value:Object.fromEntries(t.entries())};if(t instanceof Set)return{dataType:"Set",value:Array.from(t.entries())};if(t instanceof n.VisualModel){const e=new n.VisualModel({type:"none"}),r={};for(const n in e)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return{dataType:"VisualModel",value:r}}return t}function s(e,t){if("object"==typeof t&&null!=t){if("Map"===t.dataType)return new Map(Object.entries(t.value));if("Set"===t.dataType)return new Set(t.value);if("VisualModel"===t.dataType){const e=new n.VisualModel({type:""});Object.assign(e,t.value),t=e}}return t}t.serialize=function(e,t){return 1===e?i.serializeForVersion1(t):JSON.stringify(null!=t?t:o.getInstance(),a,4)},t.deserialize=function(e){if("1"===JSON.parse(e).VisualVersion)return i.deserializeForVersion1(e);const t=JSON.parse(e,s);o.setInstance(t)},t.replacer=a,t.reviver=s},933:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VisualModel=void 0;const r="-visual";t.VisualModel=class{constructor(e){if(this.propertyStorage=void 0,this.dynamicPropertyStorage=void 0,this.mediaProperty=void 0,this.dynamicMediaProperty=void 0,this.mediaPropertyStorage=void 0,this.dynamicMediaPropertyStorage=void 0,this.property=void 0!==e.property?e.property:new Map,this.dynamicProperty=void 0!==e.dynamicProperty?e.dynamicProperty:new Map,this.children=void 0!==e.children?e.children:[],"wrapper"===e.type)return this.id="wrapper",void(this.type="div");e.type.endsWith(r)&&(e.type=e.type.substring(0,e.type.length-r.length)),this.id=void 0!==e.id?e.id:"",this.type=e.type}getProperty(e){const t=this.dynamicProperty.get(e);return void 0!==t&&""!==t?t:this.property.get(e)}hasMediaProperty(e){if(void 0!==this.mediaProperty)for(const[,t]of this.mediaProperty)if(null==t?void 0:t.has(e))return!0;if(void 0!==this.dynamicMediaProperty)for(const[,t]of this.dynamicMediaProperty)if(null==t?void 0:t.has(e))return!0;return!1}hasProperty(e){return this.dynamicProperty.has(e)||this.property.has(e)}accept(e){return e.visit(this)}}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};(()=>{"use strict";var e=n;Object.defineProperty(e,"__esModule",{value:!0});const t=r(784),o=r(891),i=r(977),a=r(844),s=r(55),c=r(207),u=r(413),l=r(435),p=r(486),f={build:"",etsImport:"",etsVariable:"",etsFunction:"",aboutToAppear:""};function d(e,r){var n;try{i.deserialize(e);const t=o.getInstance().document.VisualVersion,n=/^([1-9]+[0-9]*)$/;if(void 0===t)r.errorType="versionError";else{const e=t.match(n);(null===e||parseInt(e[1])>12)&&(r.errorType="versionError")}}catch(e){r.errorType="fileError"}""!==r.errorType&&(r.errorMessage=null!==(n=t.errorMap.get(r.errorType))&&void 0!==n?n:"Codegen visual file failed")}e.genHmlAndCss=function(e){const r={hmlCss:{hml:"",css:"",json:""},errorType:"",errorMessage:""};if(d(e,r),""!==r.errorType)return r.hmlCss.hml="",r.hmlCss.css="",r;try{const e=function(e){const t={hml:"",css:"",json:""},r=new a.HMLBridge,n=e.accept(r),o=s.genFAHML(n);t.hml=r.getErrorCount()>0?"error":o;const i=new a.CSSBridge,c=e.accept(i),u=s.genFACSS(c);return t.css=i.getErrorCount()>0?"error":u,t}(o.getInstance().visualModel);"error"!==e.hml&&"error"!==e.css||(r.errorType="codegenError"),r.hmlCss=e,"FORM"===o.getInstance().document.type&&(r.hmlCss.json=c.formManager.codegenToJson())}catch(e){r.errorType="modelError"}return""!==r.errorType&&(r.errorMessage=t.errorMap.get(r.errorType),r.hmlCss.hml="",r.hmlCss.css=""),r},e.genETS=function(e){var r;const n={ets:p.cloneDeep(f),errorType:"",errorMessage:""};if(d(e,n),""!==n.errorType)return n.ets=p.cloneDeep(f),n;try{const e=function(e){const t=new u.ETSBridge,r=e.accept(t),n=(new l.StringWriter).genETS(r);return t.getErrorCount()>0?"error":n}(o.getInstance().visualModel);"error"===e&&(n.errorType="codegenError"),n.ets=e}catch(e){n.errorType="modelError"}return""!==n.errorType&&(n.errorMessage=null!==(r=t.errorMap.get(n.errorType))&&void 0!==r?r:"Codegen visual file failed",n.ets=p.cloneDeep(f)),n}})();var o=exports;for(var i in n)o[i]=n[i];n.__esModule&&Object.defineProperty(o,"__esModule",{value:!0})})();