isdata-customer-sdk 0.2.78 → 0.2.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/portal.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/portal.js +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
* Released under MIT license <https://lodash.com/license>
|
|
7
7
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
8
8
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
9
|
-
*/!function(t,e){(function(){var n,i="Expected a function",o="__lodash_hash_undefined__",a="__lodash_placeholder__",s=16,u=32,c=64,l=128,f=256,p=1/0,d=9007199254740991,h=NaN,g=4294967295,v=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",s],["flip",512],["partial",u],["partialRight",c],["rearg",f]],w="[object Arguments]",y="[object Array]",_="[object Boolean]",m="[object Date]",b="[object Error]",I="[object Function]",x="[object GeneratorFunction]",A="[object Map]",D="[object Number]",T="[object Object]",M="[object Promise]",C="[object RegExp]",k="[object Set]",S="[object String]",N="[object Symbol]",E="[object WeakMap]",L="[object ArrayBuffer]",O="[object DataView]",P="[object Float32Array]",j="[object Float64Array]",$="[object Int8Array]",R="[object Int16Array]",B="[object Int32Array]",U="[object Uint8Array]",V="[object Uint8ClampedArray]",z="[object Uint16Array]",H="[object Uint32Array]",W=/\b__p \+= '';/g,F=/\b(__p \+=) '' \+/g,K=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,X=RegExp(G.source),J=RegExp(q.source),Z=/<%-([\s\S]+?)%>/g,Y=/<%([\s\S]+?)%>/g,Q=/<%=([\s\S]+?)%>/g,tt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,et=/^\w*$/,nt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rt=/[\\^$.*+?()[\]{}|]/g,it=RegExp(rt.source),ot=/^\s+/,at=/\s/,st=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ut=/\{\n\/\* \[wrapped with (.+)\] \*/,ct=/,? & /,lt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ft=/[()=,{}\[\]\/\s]/,pt=/\\(\\)?/g,dt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ht=/\w*$/,gt=/^[-+]0x[0-9a-f]+$/i,vt=/^0b[01]+$/i,wt=/^\[object .+?Constructor\]$/,yt=/^0o[0-7]+$/i,_t=/^(?:0|[1-9]\d*)$/,mt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bt=/($^)/,It=/['\n\r\u2028\u2029\\]/g,xt="\\ud800-\\udfff",At="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Dt="\\u2700-\\u27bf",Tt="a-z\\xdf-\\xf6\\xf8-\\xff",Mt="A-Z\\xc0-\\xd6\\xd8-\\xde",Ct="\\ufe0e\\ufe0f",kt="\\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",St="['’]",Nt="["+xt+"]",Et="["+kt+"]",Lt="["+At+"]",Ot="\\d+",Pt="["+Dt+"]",jt="["+Tt+"]",$t="[^"+xt+kt+Ot+Dt+Tt+Mt+"]",Rt="\\ud83c[\\udffb-\\udfff]",Bt="[^"+xt+"]",Ut="(?:\\ud83c[\\udde6-\\uddff]){2}",Vt="[\\ud800-\\udbff][\\udc00-\\udfff]",zt="["+Mt+"]",Ht="\\u200d",Wt="(?:"+jt+"|"+$t+")",Ft="(?:"+zt+"|"+$t+")",Kt="(?:['’](?:d|ll|m|re|s|t|ve))?",Gt="(?:['’](?:D|LL|M|RE|S|T|VE))?",qt="(?:"+Lt+"|"+Rt+")"+"?",Xt="["+Ct+"]?",Jt=Xt+qt+("(?:"+Ht+"(?:"+[Bt,Ut,Vt].join("|")+")"+Xt+qt+")*"),Zt="(?:"+[Pt,Ut,Vt].join("|")+")"+Jt,Yt="(?:"+[Bt+Lt+"?",Lt,Ut,Vt,Nt].join("|")+")",Qt=RegExp(St,"g"),te=RegExp(Lt,"g"),ee=RegExp(Rt+"(?="+Rt+")|"+Yt+Jt,"g"),ne=RegExp([zt+"?"+jt+"+"+Kt+"(?="+[Et,zt,"$"].join("|")+")",Ft+"+"+Gt+"(?="+[Et,zt+Wt,"$"].join("|")+")",zt+"?"+Wt+"+"+Kt,zt+"+"+Gt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ot,Zt].join("|"),"g"),re=RegExp("["+Ht+xt+At+Ct+"]"),ie=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,oe=["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"],ae=-1,se={};se[P]=se[j]=se[$]=se[R]=se[B]=se[U]=se[V]=se[z]=se[H]=!0,se[w]=se[y]=se[L]=se[_]=se[O]=se[m]=se[b]=se[I]=se[A]=se[D]=se[T]=se[C]=se[k]=se[S]=se[E]=!1;var ue={};ue[w]=ue[y]=ue[L]=ue[O]=ue[_]=ue[m]=ue[P]=ue[j]=ue[$]=ue[R]=ue[B]=ue[A]=ue[D]=ue[T]=ue[C]=ue[k]=ue[S]=ue[N]=ue[U]=ue[V]=ue[z]=ue[H]=!0,ue[b]=ue[I]=ue[E]=!1;var ce={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},le=parseFloat,fe=parseInt,pe="object"==typeof r&&r&&r.Object===Object&&r,de="object"==typeof self&&self&&self.Object===Object&&self,he=pe||de||Function("return this")(),ge=e&&!e.nodeType&&e,ve=ge&&t&&!t.nodeType&&t,we=ve&&ve.exports===ge,ye=we&&pe.process,_e=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||ye&&ye.binding&&ye.binding("util")}catch(t){}}(),me=_e&&_e.isArrayBuffer,be=_e&&_e.isDate,Ie=_e&&_e.isMap,xe=_e&&_e.isRegExp,Ae=_e&&_e.isSet,De=_e&&_e.isTypedArray;function Te(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Me(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];e(r,a,n(a),t)}return r}function Ce(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function ke(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Se(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function Ne(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}function Ee(t,e){return!!(null==t?0:t.length)&&ze(t,e,0)>-1}function Le(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function Oe(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function Pe(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function je(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function $e(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function Re(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var Be=Ke("length");function Ue(t,e,n){var r;return n(t,function(t,n,i){if(e(t,n,i))return r=n,!1}),r}function Ve(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function ze(t,e,n){return e==e?function(t,e,n){var r=n-1,i=t.length;for(;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):Ve(t,We,n)}function He(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}function We(t){return t!=t}function Fe(t,e){var n=null==t?0:t.length;return n?Xe(t,e)/n:h}function Ke(t){return function(e){return null==e?n:e[t]}}function Ge(t){return function(e){return null==t?n:t[e]}}function qe(t,e,n,r,i){return i(t,function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)}),n}function Xe(t,e){for(var r,i=-1,o=t.length;++i<o;){var a=e(t[i]);a!==n&&(r=r===n?a:r+a)}return r}function Je(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function Ze(t){return t?t.slice(0,gn(t)+1).replace(ot,""):t}function Ye(t){return function(e){return t(e)}}function Qe(t,e){return Oe(e,function(e){return t[e]})}function tn(t,e){return t.has(e)}function en(t,e){for(var n=-1,r=t.length;++n<r&&ze(e,t[n],0)>-1;);return n}function nn(t,e){for(var n=t.length;n--&&ze(e,t[n],0)>-1;);return n}var rn=Ge({"À":"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"}),on=Ge({"&":"&","<":"<",">":">",'"':""","'":"'"});function an(t){return"\\"+ce[t]}function sn(t){return re.test(t)}function un(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function cn(t,e){return function(n){return t(e(n))}}function ln(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var s=t[n];s!==e&&s!==a||(t[n]=a,o[i++]=n)}return o}function fn(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function pn(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=[t,t]}),n}function dn(t){return sn(t)?function(t){var e=ee.lastIndex=0;for(;ee.test(t);)++e;return e}(t):Be(t)}function hn(t){return sn(t)?function(t){return t.match(ee)||[]}(t):function(t){return t.split("")}(t)}function gn(t){for(var e=t.length;e--&&at.test(t.charAt(e)););return e}var vn=Ge({"&":"&","<":"<",">":">",""":'"',"'":"'"});var wn=function t(e){var r,at=(e=null==e?he:wn.defaults(he.Object(),e,wn.pick(he,oe))).Array,xt=e.Date,At=e.Error,Dt=e.Function,Tt=e.Math,Mt=e.Object,Ct=e.RegExp,kt=e.String,St=e.TypeError,Nt=at.prototype,Et=Dt.prototype,Lt=Mt.prototype,Ot=e["__core-js_shared__"],Pt=Et.toString,jt=Lt.hasOwnProperty,$t=0,Rt=(r=/[^.]+$/.exec(Ot&&Ot.keys&&Ot.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Bt=Lt.toString,Ut=Pt.call(Mt),Vt=he._,zt=Ct("^"+Pt.call(jt).replace(rt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ht=we?e.Buffer:n,Wt=e.Symbol,Ft=e.Uint8Array,Kt=Ht?Ht.allocUnsafe:n,Gt=cn(Mt.getPrototypeOf,Mt),qt=Mt.create,Xt=Lt.propertyIsEnumerable,Jt=Nt.splice,Zt=Wt?Wt.isConcatSpreadable:n,Yt=Wt?Wt.iterator:n,ee=Wt?Wt.toStringTag:n,re=function(){try{var t=po(Mt,"defineProperty");return t({},"",{}),t}catch(t){}}(),ce=e.clearTimeout!==he.clearTimeout&&e.clearTimeout,pe=xt&&xt.now!==he.Date.now&&xt.now,de=e.setTimeout!==he.setTimeout&&e.setTimeout,ge=Tt.ceil,ve=Tt.floor,ye=Mt.getOwnPropertySymbols,_e=Ht?Ht.isBuffer:n,Be=e.isFinite,Ge=Nt.join,yn=cn(Mt.keys,Mt),_n=Tt.max,mn=Tt.min,bn=xt.now,In=e.parseInt,xn=Tt.random,An=Nt.reverse,Dn=po(e,"DataView"),Tn=po(e,"Map"),Mn=po(e,"Promise"),Cn=po(e,"Set"),kn=po(e,"WeakMap"),Sn=po(Mt,"create"),Nn=kn&&new kn,En={},Ln=Bo(Dn),On=Bo(Tn),Pn=Bo(Mn),jn=Bo(Cn),$n=Bo(kn),Rn=Wt?Wt.prototype:n,Bn=Rn?Rn.valueOf:n,Un=Rn?Rn.toString:n;function Vn(t){if(ns(t)&&!Fa(t)&&!(t instanceof Fn)){if(t instanceof Wn)return t;if(jt.call(t,"__wrapped__"))return Uo(t)}return new Wn(t)}var zn=function(){function t(){}return function(e){if(!es(e))return{};if(qt)return qt(e);t.prototype=e;var r=new t;return t.prototype=n,r}}();function Hn(){}function Wn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=n}function Fn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Kn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Gn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function qn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Xn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new qn;++e<n;)this.add(t[e])}function Jn(t){var e=this.__data__=new Gn(t);this.size=e.size}function Zn(t,e){var n=Fa(t),r=!n&&Wa(t),i=!n&&!r&&Xa(t),o=!n&&!r&&!i&&ls(t),a=n||r||i||o,s=a?Je(t.length,kt):[],u=s.length;for(var c in t)!e&&!jt.call(t,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||mo(c,u))||s.push(c);return s}function Yn(t){var e=t.length;return e?t[Xr(0,e-1)]:n}function Qn(t,e){return jo(Si(t),ur(e,0,t.length))}function tr(t){return jo(Si(t))}function er(t,e,r){(r!==n&&!Va(t[e],r)||r===n&&!(e in t))&&ar(t,e,r)}function nr(t,e,r){var i=t[e];jt.call(t,e)&&Va(i,r)&&(r!==n||e in t)||ar(t,e,r)}function rr(t,e){for(var n=t.length;n--;)if(Va(t[n][0],e))return n;return-1}function ir(t,e,n,r){return dr(t,function(t,i,o){e(r,t,n(t),o)}),r}function or(t,e){return t&&Ni(e,Es(e),t)}function ar(t,e,n){"__proto__"==e&&re?re(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function sr(t,e){for(var r=-1,i=e.length,o=at(i),a=null==t;++r<i;)o[r]=a?n:Ms(t,e[r]);return o}function ur(t,e,r){return t==t&&(r!==n&&(t=t<=r?t:r),e!==n&&(t=t>=e?t:e)),t}function cr(t,e,r,i,o,a){var s,u=1&e,c=2&e,l=4&e;if(r&&(s=o?r(t,i,o,a):r(t)),s!==n)return s;if(!es(t))return t;var f=Fa(t);if(f){if(s=function(t){var e=t.length,n=new t.constructor(e);e&&"string"==typeof t[0]&&jt.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!u)return Si(t,s)}else{var p=vo(t),d=p==I||p==x;if(Xa(t))return Ai(t,u);if(p==T||p==w||d&&!o){if(s=c||d?{}:yo(t),!u)return c?function(t,e){return Ni(t,go(t),e)}(t,function(t,e){return t&&Ni(e,Ls(e),t)}(s,t)):function(t,e){return Ni(t,ho(t),e)}(t,or(s,t))}else{if(!ue[p])return o?t:{};s=function(t,e,n){var r=t.constructor;switch(e){case L:return Di(t);case _:case m:return new r(+t);case O:return function(t,e){var n=e?Di(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case P:case j:case $:case R:case B:case U:case V:case z:case H:return Ti(t,n);case A:return new r;case D:case S:return new r(t);case C:return function(t){var e=new t.constructor(t.source,ht.exec(t));return e.lastIndex=t.lastIndex,e}(t);case k:return new r;case N:return i=t,Bn?Mt(Bn.call(i)):{}}var i}(t,p,u)}}a||(a=new Jn);var h=a.get(t);if(h)return h;a.set(t,s),ss(t)?t.forEach(function(n){s.add(cr(n,e,r,n,t,a))}):rs(t)&&t.forEach(function(n,i){s.set(i,cr(n,e,r,i,t,a))});var g=f?n:(l?c?oo:io:c?Ls:Es)(t);return Ce(g||t,function(n,i){g&&(n=t[i=n]),nr(s,i,cr(n,e,r,i,t,a))}),s}function lr(t,e,r){var i=r.length;if(null==t)return!i;for(t=Mt(t);i--;){var o=r[i],a=e[o],s=t[o];if(s===n&&!(o in t)||!a(s))return!1}return!0}function fr(t,e,r){if("function"!=typeof t)throw new St(i);return Eo(function(){t.apply(n,r)},e)}function pr(t,e,n,r){var i=-1,o=Ee,a=!0,s=t.length,u=[],c=e.length;if(!s)return u;n&&(e=Oe(e,Ye(n))),r?(o=Le,a=!1):e.length>=200&&(o=tn,a=!1,e=new Xn(e));t:for(;++i<s;){var l=t[i],f=null==n?l:n(l);if(l=r||0!==l?l:0,a&&f==f){for(var p=c;p--;)if(e[p]===f)continue t;u.push(l)}else o(e,f,r)||u.push(l)}return u}Vn.templateSettings={escape:Z,evaluate:Y,interpolate:Q,variable:"",imports:{_:Vn}},Vn.prototype=Hn.prototype,Vn.prototype.constructor=Vn,Wn.prototype=zn(Hn.prototype),Wn.prototype.constructor=Wn,Fn.prototype=zn(Hn.prototype),Fn.prototype.constructor=Fn,Kn.prototype.clear=function(){this.__data__=Sn?Sn(null):{},this.size=0},Kn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Kn.prototype.get=function(t){var e=this.__data__;if(Sn){var r=e[t];return r===o?n:r}return jt.call(e,t)?e[t]:n},Kn.prototype.has=function(t){var e=this.__data__;return Sn?e[t]!==n:jt.call(e,t)},Kn.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Sn&&e===n?o:e,this},Gn.prototype.clear=function(){this.__data__=[],this.size=0},Gn.prototype.delete=function(t){var e=this.__data__,n=rr(e,t);return!(n<0)&&(n==e.length-1?e.pop():Jt.call(e,n,1),--this.size,!0)},Gn.prototype.get=function(t){var e=this.__data__,r=rr(e,t);return r<0?n:e[r][1]},Gn.prototype.has=function(t){return rr(this.__data__,t)>-1},Gn.prototype.set=function(t,e){var n=this.__data__,r=rr(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Kn,map:new(Tn||Gn),string:new Kn}},qn.prototype.delete=function(t){var e=lo(this,t).delete(t);return this.size-=e?1:0,e},qn.prototype.get=function(t){return lo(this,t).get(t)},qn.prototype.has=function(t){return lo(this,t).has(t)},qn.prototype.set=function(t,e){var n=lo(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Xn.prototype.add=Xn.prototype.push=function(t){return this.__data__.set(t,o),this},Xn.prototype.has=function(t){return this.__data__.has(t)},Jn.prototype.clear=function(){this.__data__=new Gn,this.size=0},Jn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Jn.prototype.get=function(t){return this.__data__.get(t)},Jn.prototype.has=function(t){return this.__data__.has(t)},Jn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Gn){var r=n.__data__;if(!Tn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new qn(r)}return n.set(t,e),this.size=n.size,this};var dr=Oi(br),hr=Oi(Ir,!0);function gr(t,e){var n=!0;return dr(t,function(t,r,i){return n=!!e(t,r,i)}),n}function vr(t,e,r){for(var i=-1,o=t.length;++i<o;){var a=t[i],s=e(a);if(null!=s&&(u===n?s==s&&!cs(s):r(s,u)))var u=s,c=a}return c}function wr(t,e){var n=[];return dr(t,function(t,r,i){e(t,r,i)&&n.push(t)}),n}function yr(t,e,n,r,i){var o=-1,a=t.length;for(n||(n=_o),i||(i=[]);++o<a;){var s=t[o];e>0&&n(s)?e>1?yr(s,e-1,n,r,i):Pe(i,s):r||(i[i.length]=s)}return i}var _r=Pi(),mr=Pi(!0);function br(t,e){return t&&_r(t,e,Es)}function Ir(t,e){return t&&mr(t,e,Es)}function xr(t,e){return Ne(e,function(e){return Ya(t[e])})}function Ar(t,e){for(var r=0,i=(e=mi(e,t)).length;null!=t&&r<i;)t=t[Ro(e[r++])];return r&&r==i?t:n}function Dr(t,e,n){var r=e(t);return Fa(t)?r:Pe(r,n(t))}function Tr(t){return null==t?t===n?"[object Undefined]":"[object Null]":ee&&ee in Mt(t)?function(t){var e=jt.call(t,ee),r=t[ee];try{t[ee]=n;var i=!0}catch(t){}var o=Bt.call(t);i&&(e?t[ee]=r:delete t[ee]);return o}(t):function(t){return Bt.call(t)}(t)}function Mr(t,e){return t>e}function Cr(t,e){return null!=t&&jt.call(t,e)}function kr(t,e){return null!=t&&e in Mt(t)}function Sr(t,e,r){for(var i=r?Le:Ee,o=t[0].length,a=t.length,s=a,u=at(a),c=1/0,l=[];s--;){var f=t[s];s&&e&&(f=Oe(f,Ye(e))),c=mn(f.length,c),u[s]=!r&&(e||o>=120&&f.length>=120)?new Xn(s&&f):n}f=t[0];var p=-1,d=u[0];t:for(;++p<o&&l.length<c;){var h=f[p],g=e?e(h):h;if(h=r||0!==h?h:0,!(d?tn(d,g):i(l,g,r))){for(s=a;--s;){var v=u[s];if(!(v?tn(v,g):i(t[s],g,r)))continue t}d&&d.push(g),l.push(h)}}return l}function Nr(t,e,r){var i=null==(t=ko(t,e=mi(e,t)))?t:t[Ro(Zo(e))];return null==i?n:Te(i,t,r)}function Er(t){return ns(t)&&Tr(t)==w}function Lr(t,e,r,i,o){return t===e||(null==t||null==e||!ns(t)&&!ns(e)?t!=t&&e!=e:function(t,e,r,i,o,a){var s=Fa(t),u=Fa(e),c=s?y:vo(t),l=u?y:vo(e),f=(c=c==w?T:c)==T,p=(l=l==w?T:l)==T,d=c==l;if(d&&Xa(t)){if(!Xa(e))return!1;s=!0,f=!1}if(d&&!f)return a||(a=new Jn),s||ls(t)?no(t,e,r,i,o,a):function(t,e,n,r,i,o,a){switch(n){case O:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case L:return!(t.byteLength!=e.byteLength||!o(new Ft(t),new Ft(e)));case _:case m:case D:return Va(+t,+e);case b:return t.name==e.name&&t.message==e.message;case C:case S:return t==e+"";case A:var s=un;case k:var u=1&r;if(s||(s=fn),t.size!=e.size&&!u)return!1;var c=a.get(t);if(c)return c==e;r|=2,a.set(t,e);var l=no(s(t),s(e),r,i,o,a);return a.delete(t),l;case N:if(Bn)return Bn.call(t)==Bn.call(e)}return!1}(t,e,c,r,i,o,a);if(!(1&r)){var h=f&&jt.call(t,"__wrapped__"),g=p&&jt.call(e,"__wrapped__");if(h||g){var v=h?t.value():t,I=g?e.value():e;return a||(a=new Jn),o(v,I,r,i,a)}}if(!d)return!1;return a||(a=new Jn),function(t,e,r,i,o,a){var s=1&r,u=io(t),c=u.length,l=io(e),f=l.length;if(c!=f&&!s)return!1;var p=c;for(;p--;){var d=u[p];if(!(s?d in e:jt.call(e,d)))return!1}var h=a.get(t),g=a.get(e);if(h&&g)return h==e&&g==t;var v=!0;a.set(t,e),a.set(e,t);var w=s;for(;++p<c;){var y=t[d=u[p]],_=e[d];if(i)var m=s?i(_,y,d,e,t,a):i(y,_,d,t,e,a);if(!(m===n?y===_||o(y,_,r,i,a):m)){v=!1;break}w||(w="constructor"==d)}if(v&&!w){var b=t.constructor,I=e.constructor;b==I||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof I&&I instanceof I||(v=!1)}return a.delete(t),a.delete(e),v}(t,e,r,i,o,a)}(t,e,r,i,Lr,o))}function Or(t,e,r,i){var o=r.length,a=o,s=!i;if(null==t)return!a;for(t=Mt(t);o--;){var u=r[o];if(s&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++o<a;){var c=(u=r[o])[0],l=t[c],f=u[1];if(s&&u[2]){if(l===n&&!(c in t))return!1}else{var p=new Jn;if(i)var d=i(l,f,c,t,e,p);if(!(d===n?Lr(f,l,3,i,p):d))return!1}}return!0}function Pr(t){return!(!es(t)||(e=t,Rt&&Rt in e))&&(Ya(t)?zt:wt).test(Bo(t));var e}function jr(t){return"function"==typeof t?t:null==t?iu:"object"==typeof t?Fa(t)?zr(t[0],t[1]):Vr(t):du(t)}function $r(t){if(!Do(t))return yn(t);var e=[];for(var n in Mt(t))jt.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Rr(t){if(!es(t))return function(t){var e=[];if(null!=t)for(var n in Mt(t))e.push(n);return e}(t);var e=Do(t),n=[];for(var r in t)("constructor"!=r||!e&&jt.call(t,r))&&n.push(r);return n}function Br(t,e){return t<e}function Ur(t,e){var n=-1,r=Ga(t)?at(t.length):[];return dr(t,function(t,i,o){r[++n]=e(t,i,o)}),r}function Vr(t){var e=fo(t);return 1==e.length&&e[0][2]?Mo(e[0][0],e[0][1]):function(n){return n===t||Or(n,t,e)}}function zr(t,e){return Io(t)&&To(e)?Mo(Ro(t),e):function(r){var i=Ms(r,t);return i===n&&i===e?Cs(r,t):Lr(e,i,3)}}function Hr(t,e,r,i,o){t!==e&&_r(e,function(a,s){if(o||(o=new Jn),es(a))!function(t,e,r,i,o,a,s){var u=So(t,r),c=So(e,r),l=s.get(c);if(l)return void er(t,r,l);var f=a?a(u,c,r+"",t,e,s):n,p=f===n;if(p){var d=Fa(c),h=!d&&Xa(c),g=!d&&!h&&ls(c);f=c,d||h||g?Fa(u)?f=u:qa(u)?f=Si(u):h?(p=!1,f=Ai(c,!0)):g?(p=!1,f=Ti(c,!0)):f=[]:os(c)||Wa(c)?(f=u,Wa(u)?f=ys(u):es(u)&&!Ya(u)||(f=yo(c))):p=!1}p&&(s.set(c,f),o(f,c,i,a,s),s.delete(c));er(t,r,f)}(t,e,s,r,Hr,i,o);else{var u=i?i(So(t,s),a,s+"",t,e,o):n;u===n&&(u=a),er(t,s,u)}},Ls)}function Wr(t,e){var r=t.length;if(r)return mo(e+=e<0?r:0,r)?t[e]:n}function Fr(t,e,n){e=e.length?Oe(e,function(t){return Fa(t)?function(e){return Ar(e,1===t.length?t[0]:t)}:t}):[iu];var r=-1;e=Oe(e,Ye(co()));var i=Ur(t,function(t,n,i){var o=Oe(e,function(e){return e(t)});return{criteria:o,index:++r,value:t}});return function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(i,function(t,e){return function(t,e,n){var r=-1,i=t.criteria,o=e.criteria,a=i.length,s=n.length;for(;++r<a;){var u=Mi(i[r],o[r]);if(u)return r>=s?u:u*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)})}function Kr(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var a=e[r],s=Ar(t,a);n(s,a)&&ti(o,mi(a,t),s)}return o}function Gr(t,e,n,r){var i=r?He:ze,o=-1,a=e.length,s=t;for(t===e&&(e=Si(e)),n&&(s=Oe(t,Ye(n)));++o<a;)for(var u=0,c=e[o],l=n?n(c):c;(u=i(s,l,u,r))>-1;)s!==t&&Jt.call(s,u,1),Jt.call(t,u,1);return t}function qr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;mo(i)?Jt.call(t,i,1):pi(t,i)}}return t}function Xr(t,e){return t+ve(xn()*(e-t+1))}function Jr(t,e){var n="";if(!t||e<1||e>d)return n;do{e%2&&(n+=t),(e=ve(e/2))&&(t+=t)}while(e);return n}function Zr(t,e){return Lo(Co(t,e,iu),t+"")}function Yr(t){return Yn(Vs(t))}function Qr(t,e){var n=Vs(t);return jo(n,ur(e,0,n.length))}function ti(t,e,r,i){if(!es(t))return t;for(var o=-1,a=(e=mi(e,t)).length,s=a-1,u=t;null!=u&&++o<a;){var c=Ro(e[o]),l=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(o!=s){var f=u[c];(l=i?i(f,c,u):n)===n&&(l=es(f)?f:mo(e[o+1])?[]:{})}nr(u,c,l),u=u[c]}return t}var ei=Nn?function(t,e){return Nn.set(t,e),t}:iu,ni=re?function(t,e){return re(t,"toString",{configurable:!0,enumerable:!1,value:eu(e),writable:!0})}:iu;function ri(t){return jo(Vs(t))}function ii(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=at(i);++r<i;)o[r]=t[r+e];return o}function oi(t,e){var n;return dr(t,function(t,r,i){return!(n=e(t,r,i))}),!!n}function ai(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e==e&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=t[o];null!==a&&!cs(a)&&(n?a<=e:a<e)?r=o+1:i=o}return i}return si(t,e,iu,n)}function si(t,e,r,i){var o=0,a=null==t?0:t.length;if(0===a)return 0;for(var s=(e=r(e))!=e,u=null===e,c=cs(e),l=e===n;o<a;){var f=ve((o+a)/2),p=r(t[f]),d=p!==n,h=null===p,g=p==p,v=cs(p);if(s)var w=i||g;else w=l?g&&(i||d):u?g&&d&&(i||!h):c?g&&d&&!h&&(i||!v):!h&&!v&&(i?p<=e:p<e);w?o=f+1:a=f}return mn(a,4294967294)}function ui(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n],s=e?e(a):a;if(!n||!Va(s,u)){var u=s;o[i++]=0===a?0:a}}return o}function ci(t){return"number"==typeof t?t:cs(t)?h:+t}function li(t){if("string"==typeof t)return t;if(Fa(t))return Oe(t,li)+"";if(cs(t))return Un?Un.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function fi(t,e,n){var r=-1,i=Ee,o=t.length,a=!0,s=[],u=s;if(n)a=!1,i=Le;else if(o>=200){var c=e?null:Ji(t);if(c)return fn(c);a=!1,i=tn,u=new Xn}else u=e?[]:s;t:for(;++r<o;){var l=t[r],f=e?e(l):l;if(l=n||0!==l?l:0,a&&f==f){for(var p=u.length;p--;)if(u[p]===f)continue t;e&&u.push(f),s.push(l)}else i(u,f,n)||(u!==s&&u.push(f),s.push(l))}return s}function pi(t,e){var n=-1,r=(e=mi(e,t)).length;if(!r)return!0;for(var i=null==t||"object"!=typeof t&&"function"!=typeof t;++n<r;){var o=e[n];if("string"==typeof o){if("__proto__"===o&&!jt.call(t,"__proto__"))return!1;if("constructor"===o&&n+1<r&&"string"==typeof e[n+1]&&"prototype"===e[n+1]){if(i&&0===n)continue;return!1}}}var a=ko(t,e);return null==a||delete a[Ro(Zo(e))]}function di(t,e,n,r){return ti(t,e,n(Ar(t,e)),r)}function hi(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?ii(t,r?0:o,r?o+1:i):ii(t,r?o+1:0,r?i:o)}function gi(t,e){var n=t;return n instanceof Fn&&(n=n.value()),je(e,function(t,e){return e.func.apply(e.thisArg,Pe([t],e.args))},n)}function vi(t,e,n){var r=t.length;if(r<2)return r?fi(t[0]):[];for(var i=-1,o=at(r);++i<r;)for(var a=t[i],s=-1;++s<r;)s!=i&&(o[i]=pr(o[i]||a,t[s],e,n));return fi(yr(o,1),e,n)}function wi(t,e,r){for(var i=-1,o=t.length,a=e.length,s={};++i<o;){var u=i<a?e[i]:n;r(s,t[i],u)}return s}function yi(t){return qa(t)?t:[]}function _i(t){return"function"==typeof t?t:iu}function mi(t,e){return Fa(t)?t:Io(t,e)?[t]:$o(_s(t))}var bi=Zr;function Ii(t,e,r){var i=t.length;return r=r===n?i:r,!e&&r>=i?t:ii(t,e,r)}var xi=ce||function(t){return he.clearTimeout(t)};function Ai(t,e){if(e)return t.slice();var n=t.length,r=Kt?Kt(n):new t.constructor(n);return t.copy(r),r}function Di(t){var e=new t.constructor(t.byteLength);return new Ft(e).set(new Ft(t)),e}function Ti(t,e){var n=e?Di(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Mi(t,e){if(t!==e){var r=t!==n,i=null===t,o=t==t,a=cs(t),s=e!==n,u=null===e,c=e==e,l=cs(e);if(!u&&!l&&!a&&t>e||a&&s&&c&&!u&&!l||i&&s&&c||!r&&c||!o)return 1;if(!i&&!a&&!l&&t<e||l&&r&&o&&!i&&!a||u&&r&&o||!s&&o||!c)return-1}return 0}function Ci(t,e,n,r){for(var i=-1,o=t.length,a=n.length,s=-1,u=e.length,c=_n(o-a,0),l=at(u+c),f=!r;++s<u;)l[s]=e[s];for(;++i<a;)(f||i<o)&&(l[n[i]]=t[i]);for(;c--;)l[s++]=t[i++];return l}function ki(t,e,n,r){for(var i=-1,o=t.length,a=-1,s=n.length,u=-1,c=e.length,l=_n(o-s,0),f=at(l+c),p=!r;++i<l;)f[i]=t[i];for(var d=i;++u<c;)f[d+u]=e[u];for(;++a<s;)(p||i<o)&&(f[d+n[a]]=t[i++]);return f}function Si(t,e){var n=-1,r=t.length;for(e||(e=at(r));++n<r;)e[n]=t[n];return e}function Ni(t,e,r,i){var o=!r;r||(r={});for(var a=-1,s=e.length;++a<s;){var u=e[a],c=i?i(r[u],t[u],u,r,t):n;c===n&&(c=t[u]),o?ar(r,u,c):nr(r,u,c)}return r}function Ei(t,e){return function(n,r){var i=Fa(n)?Me:ir,o=e?e():{};return i(n,t,co(r,2),o)}}function Li(t){return Zr(function(e,r){var i=-1,o=r.length,a=o>1?r[o-1]:n,s=o>2?r[2]:n;for(a=t.length>3&&"function"==typeof a?(o--,a):n,s&&bo(r[0],r[1],s)&&(a=o<3?n:a,o=1),e=Mt(e);++i<o;){var u=r[i];u&&t(e,u,i,a)}return e})}function Oi(t,e){return function(n,r){if(null==n)return n;if(!Ga(n))return t(n,r);for(var i=n.length,o=e?i:-1,a=Mt(n);(e?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Pi(t){return function(e,n,r){for(var i=-1,o=Mt(e),a=r(e),s=a.length;s--;){var u=a[t?s:++i];if(!1===n(o[u],u,o))break}return e}}function ji(t){return function(e){var r=sn(e=_s(e))?hn(e):n,i=r?r[0]:e.charAt(0),o=r?Ii(r,1).join(""):e.slice(1);return i[t]()+o}}function $i(t){return function(e){return je(Ys(Ws(e).replace(Qt,"")),t,"")}}function Ri(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=zn(t.prototype),r=t.apply(n,e);return es(r)?r:n}}function Bi(t){return function(e,r,i){var o=Mt(e);if(!Ga(e)){var a=co(r,3);e=Es(e),r=function(t){return a(o[t],t,o)}}var s=t(e,r,i);return s>-1?o[a?e[s]:s]:n}}function Ui(t){return ro(function(e){var r=e.length,o=r,a=Wn.prototype.thru;for(t&&e.reverse();o--;){var s=e[o];if("function"!=typeof s)throw new St(i);if(a&&!u&&"wrapper"==so(s))var u=new Wn([],!0)}for(o=u?o:r;++o<r;){var c=so(s=e[o]),l="wrapper"==c?ao(s):n;u=l&&xo(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[so(l[0])].apply(u,l[3]):1==s.length&&xo(s)?u[c]():u.thru(s)}return function(){var t=arguments,n=t[0];if(u&&1==t.length&&Fa(n))return u.plant(n).value();for(var i=0,o=r?e[i].apply(this,t):n;++i<r;)o=e[i].call(this,o);return o}})}function Vi(t,e,r,i,o,a,s,u,c,f){var p=e&l,d=1&e,h=2&e,g=24&e,v=512&e,w=h?n:Ri(t);return function l(){for(var y=arguments.length,_=at(y),m=y;m--;)_[m]=arguments[m];if(g)var b=uo(l),I=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}(_,b);if(i&&(_=Ci(_,i,o,g)),a&&(_=ki(_,a,s,g)),y-=I,g&&y<f){var x=ln(_,b);return qi(t,e,Vi,l.placeholder,r,_,x,u,c,f-y)}var A=d?r:this,D=h?A[t]:t;return y=_.length,u?_=function(t,e){var r=t.length,i=mn(e.length,r),o=Si(t);for(;i--;){var a=e[i];t[i]=mo(a,r)?o[a]:n}return t}(_,u):v&&y>1&&_.reverse(),p&&c<y&&(_.length=c),this&&this!==he&&this instanceof l&&(D=w||Ri(D)),D.apply(A,_)}}function zi(t,e){return function(n,r){return function(t,e,n,r){return br(t,function(t,i,o){e(r,n(t),i,o)}),r}(n,t,e(r),{})}}function Hi(t,e){return function(r,i){var o;if(r===n&&i===n)return e;if(r!==n&&(o=r),i!==n){if(o===n)return i;"string"==typeof r||"string"==typeof i?(r=li(r),i=li(i)):(r=ci(r),i=ci(i)),o=t(r,i)}return o}}function Wi(t){return ro(function(e){return e=Oe(e,Ye(co())),Zr(function(n){var r=this;return t(e,function(t){return Te(t,r,n)})})})}function Fi(t,e){var r=(e=e===n?" ":li(e)).length;if(r<2)return r?Jr(e,t):e;var i=Jr(e,ge(t/dn(e)));return sn(e)?Ii(hn(i),0,t).join(""):i.slice(0,t)}function Ki(t){return function(e,r,i){return i&&"number"!=typeof i&&bo(e,r,i)&&(r=i=n),e=hs(e),r===n?(r=e,e=0):r=hs(r),function(t,e,n,r){for(var i=-1,o=_n(ge((e-t)/(n||1)),0),a=at(o);o--;)a[r?o:++i]=t,t+=n;return a}(e,r,i=i===n?e<r?1:-1:hs(i),t)}}function Gi(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=ws(e),n=ws(n)),t(e,n)}}function qi(t,e,r,i,o,a,s,l,f,p){var d=8&e;e|=d?u:c,4&(e&=~(d?c:u))||(e&=-4);var h=[t,e,o,d?a:n,d?s:n,d?n:a,d?n:s,l,f,p],g=r.apply(n,h);return xo(t)&&No(g,h),g.placeholder=i,Oo(g,t,e)}function Xi(t){var e=Tt[t];return function(t,n){if(t=ws(t),(n=null==n?0:mn(gs(n),292))&&Be(t)){var r=(_s(t)+"e").split("e");return+((r=(_s(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var Ji=Cn&&1/fn(new Cn([,-0]))[1]==p?function(t){return new Cn(t)}:cu;function Zi(t){return function(e){var n=vo(e);return n==A?un(e):n==k?pn(e):function(t,e){return Oe(e,function(e){return[e,t[e]]})}(e,t(e))}}function Yi(t,e,r,o,p,d,h,g){var v=2&e;if(!v&&"function"!=typeof t)throw new St(i);var w=o?o.length:0;if(w||(e&=-97,o=p=n),h=h===n?h:_n(gs(h),0),g=g===n?g:gs(g),w-=p?p.length:0,e&c){var y=o,_=p;o=p=n}var m=v?n:ao(t),b=[t,e,r,o,p,y,_,d,h,g];if(m&&function(t,e){var n=t[1],r=e[1],i=n|r,o=i<131,s=r==l&&8==n||r==l&&n==f&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(!o&&!s)return t;1&r&&(t[2]=e[2],i|=1&n?0:4);var u=e[3];if(u){var c=t[3];t[3]=c?Ci(c,u,e[4]):u,t[4]=c?ln(t[3],a):e[4]}(u=e[5])&&(c=t[5],t[5]=c?ki(c,u,e[6]):u,t[6]=c?ln(t[5],a):e[6]);(u=e[7])&&(t[7]=u);r&l&&(t[8]=null==t[8]?e[8]:mn(t[8],e[8]));null==t[9]&&(t[9]=e[9]);t[0]=e[0],t[1]=i}(b,m),t=b[0],e=b[1],r=b[2],o=b[3],p=b[4],!(g=b[9]=b[9]===n?v?0:t.length:_n(b[9]-w,0))&&24&e&&(e&=-25),e&&1!=e)I=8==e||e==s?function(t,e,r){var i=Ri(t);return function o(){for(var a=arguments.length,s=at(a),u=a,c=uo(o);u--;)s[u]=arguments[u];var l=a<3&&s[0]!==c&&s[a-1]!==c?[]:ln(s,c);return(a-=l.length)<r?qi(t,e,Vi,o.placeholder,n,s,l,n,n,r-a):Te(this&&this!==he&&this instanceof o?i:t,this,s)}}(t,e,g):e!=u&&33!=e||p.length?Vi.apply(n,b):function(t,e,n,r){var i=1&e,o=Ri(t);return function e(){for(var a=-1,s=arguments.length,u=-1,c=r.length,l=at(c+s),f=this&&this!==he&&this instanceof e?o:t;++u<c;)l[u]=r[u];for(;s--;)l[u++]=arguments[++a];return Te(f,i?n:this,l)}}(t,e,r,o);else var I=function(t,e,n){var r=1&e,i=Ri(t);return function e(){return(this&&this!==he&&this instanceof e?i:t).apply(r?n:this,arguments)}}(t,e,r);return Oo((m?ei:No)(I,b),t,e)}function Qi(t,e,r,i){return t===n||Va(t,Lt[r])&&!jt.call(i,r)?e:t}function to(t,e,r,i,o,a){return es(t)&&es(e)&&(a.set(e,t),Hr(t,e,n,to,a),a.delete(e)),t}function eo(t){return os(t)?n:t}function no(t,e,r,i,o,a){var s=1&r,u=t.length,c=e.length;if(u!=c&&!(s&&c>u))return!1;var l=a.get(t),f=a.get(e);if(l&&f)return l==e&&f==t;var p=-1,d=!0,h=2&r?new Xn:n;for(a.set(t,e),a.set(e,t);++p<u;){var g=t[p],v=e[p];if(i)var w=s?i(v,g,p,e,t,a):i(g,v,p,t,e,a);if(w!==n){if(w)continue;d=!1;break}if(h){if(!Re(e,function(t,e){if(!tn(h,e)&&(g===t||o(g,t,r,i,a)))return h.push(e)})){d=!1;break}}else if(g!==v&&!o(g,v,r,i,a)){d=!1;break}}return a.delete(t),a.delete(e),d}function ro(t){return Lo(Co(t,n,Ko),t+"")}function io(t){return Dr(t,Es,ho)}function oo(t){return Dr(t,Ls,go)}var ao=Nn?function(t){return Nn.get(t)}:cu;function so(t){for(var e=t.name+"",n=En[e],r=jt.call(En,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function uo(t){return(jt.call(Vn,"placeholder")?Vn:t).placeholder}function co(){var t=Vn.iteratee||ou;return t=t===ou?jr:t,arguments.length?t(arguments[0],arguments[1]):t}function lo(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function fo(t){for(var e=Es(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,To(i)]}return e}function po(t,e){var r=function(t,e){return null==t?n:t[e]}(t,e);return Pr(r)?r:n}var ho=ye?function(t){return null==t?[]:(t=Mt(t),Ne(ye(t),function(e){return Xt.call(t,e)}))}:vu,go=ye?function(t){for(var e=[];t;)Pe(e,ho(t)),t=Gt(t);return e}:vu,vo=Tr;function wo(t,e,n){for(var r=-1,i=(e=mi(e,t)).length,o=!1;++r<i;){var a=Ro(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&ts(i)&&mo(a,i)&&(Fa(t)||Wa(t))}function yo(t){return"function"!=typeof t.constructor||Do(t)?{}:zn(Gt(t))}function _o(t){return Fa(t)||Wa(t)||!!(Zt&&t&&t[Zt])}function mo(t,e){var n=typeof t;return!!(e=null==e?d:e)&&("number"==n||"symbol"!=n&&_t.test(t))&&t>-1&&t%1==0&&t<e}function bo(t,e,n){if(!es(n))return!1;var r=typeof e;return!!("number"==r?Ga(n)&&mo(e,n.length):"string"==r&&e in n)&&Va(n[e],t)}function Io(t,e){if(Fa(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!cs(t))||(et.test(t)||!tt.test(t)||null!=e&&t in Mt(e))}function xo(t){var e=so(t),n=Vn[e];if("function"!=typeof n||!(e in Fn.prototype))return!1;if(t===n)return!0;var r=ao(n);return!!r&&t===r[0]}(Dn&&vo(new Dn(new ArrayBuffer(1)))!=O||Tn&&vo(new Tn)!=A||Mn&&vo(Mn.resolve())!=M||Cn&&vo(new Cn)!=k||kn&&vo(new kn)!=E)&&(vo=function(t){var e=Tr(t),r=e==T?t.constructor:n,i=r?Bo(r):"";if(i)switch(i){case Ln:return O;case On:return A;case Pn:return M;case jn:return k;case $n:return E}return e});var Ao=Ot?Ya:wu;function Do(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Lt)}function To(t){return t==t&&!es(t)}function Mo(t,e){return function(r){return null!=r&&(r[t]===e&&(e!==n||t in Mt(r)))}}function Co(t,e,r){return e=_n(e===n?t.length-1:e,0),function(){for(var n=arguments,i=-1,o=_n(n.length-e,0),a=at(o);++i<o;)a[i]=n[e+i];i=-1;for(var s=at(e+1);++i<e;)s[i]=n[i];return s[e]=r(a),Te(t,this,s)}}function ko(t,e){return e.length<2?t:Ar(t,ii(e,0,-1))}function So(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var No=Po(ei),Eo=de||function(t,e){return he.setTimeout(t,e)},Lo=Po(ni);function Oo(t,e,n){var r=e+"";return Lo(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(st,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Ce(v,function(n){var r="_."+n[0];e&n[1]&&!Ee(t,r)&&t.push(r)}),t.sort()}(function(t){var e=t.match(ut);return e?e[1].split(ct):[]}(r),n)))}function Po(t){var e=0,r=0;return function(){var i=bn(),o=16-(i-r);if(r=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(n,arguments)}}function jo(t,e){var r=-1,i=t.length,o=i-1;for(e=e===n?i:e;++r<e;){var a=Xr(r,o),s=t[a];t[a]=t[r],t[r]=s}return t.length=e,t}var $o=function(t){var e=Pa(t,function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(nt,function(t,n,r,i){e.push(r?i.replace(pt,"$1"):n||t)}),e});function Ro(t){if("string"==typeof t||cs(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Bo(t){if(null!=t){try{return Pt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Uo(t){if(t instanceof Fn)return t.clone();var e=new Wn(t.__wrapped__,t.__chain__);return e.__actions__=Si(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Vo=Zr(function(t,e){return qa(t)?pr(t,yr(e,1,qa,!0)):[]}),zo=Zr(function(t,e){var r=Zo(e);return qa(r)&&(r=n),qa(t)?pr(t,yr(e,1,qa,!0),co(r,2)):[]}),Ho=Zr(function(t,e){var r=Zo(e);return qa(r)&&(r=n),qa(t)?pr(t,yr(e,1,qa,!0),n,r):[]});function Wo(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:gs(n);return i<0&&(i=_n(r+i,0)),Ve(t,co(e,3),i)}function Fo(t,e,r){var i=null==t?0:t.length;if(!i)return-1;var o=i-1;return r!==n&&(o=gs(r),o=r<0?_n(i+o,0):mn(o,i-1)),Ve(t,co(e,3),o,!0)}function Ko(t){return(null==t?0:t.length)?yr(t,1):[]}function Go(t){return t&&t.length?t[0]:n}var qo=Zr(function(t){var e=Oe(t,yi);return e.length&&e[0]===t[0]?Sr(e):[]}),Xo=Zr(function(t){var e=Zo(t),r=Oe(t,yi);return e===Zo(r)?e=n:r.pop(),r.length&&r[0]===t[0]?Sr(r,co(e,2)):[]}),Jo=Zr(function(t){var e=Zo(t),r=Oe(t,yi);return(e="function"==typeof e?e:n)&&r.pop(),r.length&&r[0]===t[0]?Sr(r,n,e):[]});function Zo(t){var e=null==t?0:t.length;return e?t[e-1]:n}var Yo=Zr(Qo);function Qo(t,e){return t&&t.length&&e&&e.length?Gr(t,e):t}var ta=ro(function(t,e){var n=null==t?0:t.length,r=sr(t,e);return qr(t,Oe(e,function(t){return mo(t,n)?+t:t}).sort(Mi)),r});function ea(t){return null==t?t:An.call(t)}var na=Zr(function(t){return fi(yr(t,1,qa,!0))}),ra=Zr(function(t){var e=Zo(t);return qa(e)&&(e=n),fi(yr(t,1,qa,!0),co(e,2))}),ia=Zr(function(t){var e=Zo(t);return e="function"==typeof e?e:n,fi(yr(t,1,qa,!0),n,e)});function oa(t){if(!t||!t.length)return[];var e=0;return t=Ne(t,function(t){if(qa(t))return e=_n(t.length,e),!0}),Je(e,function(e){return Oe(t,Ke(e))})}function aa(t,e){if(!t||!t.length)return[];var r=oa(t);return null==e?r:Oe(r,function(t){return Te(e,n,t)})}var sa=Zr(function(t,e){return qa(t)?pr(t,e):[]}),ua=Zr(function(t){return vi(Ne(t,qa))}),ca=Zr(function(t){var e=Zo(t);return qa(e)&&(e=n),vi(Ne(t,qa),co(e,2))}),la=Zr(function(t){var e=Zo(t);return e="function"==typeof e?e:n,vi(Ne(t,qa),n,e)}),fa=Zr(oa);var pa=Zr(function(t){var e=t.length,r=e>1?t[e-1]:n;return r="function"==typeof r?(t.pop(),r):n,aa(t,r)});function da(t){var e=Vn(t);return e.__chain__=!0,e}function ha(t,e){return e(t)}var ga=ro(function(t){var e=t.length,r=e?t[0]:0,i=this.__wrapped__,o=function(e){return sr(e,t)};return!(e>1||this.__actions__.length)&&i instanceof Fn&&mo(r)?((i=i.slice(r,+r+(e?1:0))).__actions__.push({func:ha,args:[o],thisArg:n}),new Wn(i,this.__chain__).thru(function(t){return e&&!t.length&&t.push(n),t})):this.thru(o)});var va=Ei(function(t,e,n){jt.call(t,n)?++t[n]:ar(t,n,1)});var wa=Bi(Wo),ya=Bi(Fo);function _a(t,e){return(Fa(t)?Ce:dr)(t,co(e,3))}function ma(t,e){return(Fa(t)?ke:hr)(t,co(e,3))}var ba=Ei(function(t,e,n){jt.call(t,n)?t[n].push(e):ar(t,n,[e])});var Ia=Zr(function(t,e,n){var r=-1,i="function"==typeof e,o=Ga(t)?at(t.length):[];return dr(t,function(t){o[++r]=i?Te(e,t,n):Nr(t,e,n)}),o}),xa=Ei(function(t,e,n){ar(t,n,e)});function Aa(t,e){return(Fa(t)?Oe:Ur)(t,co(e,3))}var Da=Ei(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]});var Ta=Zr(function(t,e){if(null==t)return[];var n=e.length;return n>1&&bo(t,e[0],e[1])?e=[]:n>2&&bo(e[0],e[1],e[2])&&(e=[e[0]]),Fr(t,yr(e,1),[])}),Ma=pe||function(){return he.Date.now()};function Ca(t,e,r){return e=r?n:e,e=t&&null==e?t.length:e,Yi(t,l,n,n,n,n,e)}function ka(t,e){var r;if("function"!=typeof e)throw new St(i);return t=gs(t),function(){return--t>0&&(r=e.apply(this,arguments)),t<=1&&(e=n),r}}var Sa=Zr(function(t,e,n){var r=1;if(n.length){var i=ln(n,uo(Sa));r|=u}return Yi(t,r,e,n,i)}),Na=Zr(function(t,e,n){var r=3;if(n.length){var i=ln(n,uo(Na));r|=u}return Yi(e,r,t,n,i)});function Ea(t,e,r){var o,a,s,u,c,l,f=0,p=!1,d=!1,h=!0;if("function"!=typeof t)throw new St(i);function g(e){var r=o,i=a;return o=a=n,f=e,u=t.apply(i,r)}function v(t){var r=t-l;return l===n||r>=e||r<0||d&&t-f>=s}function w(){var t=Ma();if(v(t))return y(t);c=Eo(w,function(t){var n=e-(t-l);return d?mn(n,s-(t-f)):n}(t))}function y(t){return c=n,h&&o?g(t):(o=a=n,u)}function _(){var t=Ma(),r=v(t);if(o=arguments,a=this,l=t,r){if(c===n)return function(t){return f=t,c=Eo(w,e),p?g(t):u}(l);if(d)return xi(c),c=Eo(w,e),g(l)}return c===n&&(c=Eo(w,e)),u}return e=ws(e)||0,es(r)&&(p=!!r.leading,s=(d="maxWait"in r)?_n(ws(r.maxWait)||0,e):s,h="trailing"in r?!!r.trailing:h),_.cancel=function(){c!==n&&xi(c),f=0,o=l=a=c=n},_.flush=function(){return c===n?u:y(Ma())},_}var La=Zr(function(t,e){return fr(t,1,e)}),Oa=Zr(function(t,e,n){return fr(t,ws(e)||0,n)});function Pa(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new St(i);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Pa.Cache||qn),n}function ja(t){if("function"!=typeof t)throw new St(i);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Pa.Cache=qn;var $a=bi(function(t,e){var n=(e=1==e.length&&Fa(e[0])?Oe(e[0],Ye(co())):Oe(yr(e,1),Ye(co()))).length;return Zr(function(r){for(var i=-1,o=mn(r.length,n);++i<o;)r[i]=e[i].call(this,r[i]);return Te(t,this,r)})}),Ra=Zr(function(t,e){var r=ln(e,uo(Ra));return Yi(t,u,n,e,r)}),Ba=Zr(function(t,e){var r=ln(e,uo(Ba));return Yi(t,c,n,e,r)}),Ua=ro(function(t,e){return Yi(t,f,n,n,n,e)});function Va(t,e){return t===e||t!=t&&e!=e}var za=Gi(Mr),Ha=Gi(function(t,e){return t>=e}),Wa=Er(function(){return arguments}())?Er:function(t){return ns(t)&&jt.call(t,"callee")&&!Xt.call(t,"callee")},Fa=at.isArray,Ka=me?Ye(me):function(t){return ns(t)&&Tr(t)==L};function Ga(t){return null!=t&&ts(t.length)&&!Ya(t)}function qa(t){return ns(t)&&Ga(t)}var Xa=_e||wu,Ja=be?Ye(be):function(t){return ns(t)&&Tr(t)==m};function Za(t){if(!ns(t))return!1;var e=Tr(t);return e==b||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!os(t)}function Ya(t){if(!es(t))return!1;var e=Tr(t);return e==I||e==x||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Qa(t){return"number"==typeof t&&t==gs(t)}function ts(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=d}function es(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ns(t){return null!=t&&"object"==typeof t}var rs=Ie?Ye(Ie):function(t){return ns(t)&&vo(t)==A};function is(t){return"number"==typeof t||ns(t)&&Tr(t)==D}function os(t){if(!ns(t)||Tr(t)!=T)return!1;var e=Gt(t);if(null===e)return!0;var n=jt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Pt.call(n)==Ut}var as=xe?Ye(xe):function(t){return ns(t)&&Tr(t)==C};var ss=Ae?Ye(Ae):function(t){return ns(t)&&vo(t)==k};function us(t){return"string"==typeof t||!Fa(t)&&ns(t)&&Tr(t)==S}function cs(t){return"symbol"==typeof t||ns(t)&&Tr(t)==N}var ls=De?Ye(De):function(t){return ns(t)&&ts(t.length)&&!!se[Tr(t)]};var fs=Gi(Br),ps=Gi(function(t,e){return t<=e});function ds(t){if(!t)return[];if(Ga(t))return us(t)?hn(t):Si(t);if(Yt&&t[Yt])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Yt]());var e=vo(t);return(e==A?un:e==k?fn:Vs)(t)}function hs(t){return t?(t=ws(t))===p||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function gs(t){var e=hs(t),n=e%1;return e==e?n?e-n:e:0}function vs(t){return t?ur(gs(t),0,g):0}function ws(t){if("number"==typeof t)return t;if(cs(t))return h;if(es(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=es(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ze(t);var n=vt.test(t);return n||yt.test(t)?fe(t.slice(2),n?2:8):gt.test(t)?h:+t}function ys(t){return Ni(t,Ls(t))}function _s(t){return null==t?"":li(t)}var ms=Li(function(t,e){if(Do(e)||Ga(e))Ni(e,Es(e),t);else for(var n in e)jt.call(e,n)&&nr(t,n,e[n])}),bs=Li(function(t,e){Ni(e,Ls(e),t)}),Is=Li(function(t,e,n,r){Ni(e,Ls(e),t,r)}),xs=Li(function(t,e,n,r){Ni(e,Es(e),t,r)}),As=ro(sr);var Ds=Zr(function(t,e){t=Mt(t);var r=-1,i=e.length,o=i>2?e[2]:n;for(o&&bo(e[0],e[1],o)&&(i=1);++r<i;)for(var a=e[r],s=Ls(a),u=-1,c=s.length;++u<c;){var l=s[u],f=t[l];(f===n||Va(f,Lt[l])&&!jt.call(t,l))&&(t[l]=a[l])}return t}),Ts=Zr(function(t){return t.push(n,to),Te(Ps,n,t)});function Ms(t,e,r){var i=null==t?n:Ar(t,e);return i===n?r:i}function Cs(t,e){return null!=t&&wo(t,e,kr)}var ks=zi(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Bt.call(e)),t[e]=n},eu(iu)),Ss=zi(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Bt.call(e)),jt.call(t,e)?t[e].push(n):t[e]=[n]},co),Ns=Zr(Nr);function Es(t){return Ga(t)?Zn(t):$r(t)}function Ls(t){return Ga(t)?Zn(t,!0):Rr(t)}var Os=Li(function(t,e,n){Hr(t,e,n)}),Ps=Li(function(t,e,n,r){Hr(t,e,n,r)}),js=ro(function(t,e){var n={};if(null==t)return n;var r=!1;e=Oe(e,function(e){return e=mi(e,t),r||(r=e.length>1),e}),Ni(t,oo(t),n),r&&(n=cr(n,7,eo));for(var i=e.length;i--;)pi(n,e[i]);return n});var $s=ro(function(t,e){return null==t?{}:function(t,e){return Kr(t,e,function(e,n){return Cs(t,n)})}(t,e)});function Rs(t,e){if(null==t)return{};var n=Oe(oo(t),function(t){return[t]});return e=co(e),Kr(t,n,function(t,n){return e(t,n[0])})}var Bs=Zi(Es),Us=Zi(Ls);function Vs(t){return null==t?[]:Qe(t,Es(t))}var zs=$i(function(t,e,n){return e=e.toLowerCase(),t+(n?Hs(e):e)});function Hs(t){return Zs(_s(t).toLowerCase())}function Ws(t){return(t=_s(t))&&t.replace(mt,rn).replace(te,"")}var Fs=$i(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),Ks=$i(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),Gs=ji("toLowerCase");var qs=$i(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()});var Xs=$i(function(t,e,n){return t+(n?" ":"")+Zs(e)});var Js=$i(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),Zs=ji("toUpperCase");function Ys(t,e,r){return t=_s(t),(e=r?n:e)===n?function(t){return ie.test(t)}(t)?function(t){return t.match(ne)||[]}(t):function(t){return t.match(lt)||[]}(t):t.match(e)||[]}var Qs=Zr(function(t,e){try{return Te(t,n,e)}catch(t){return Za(t)?t:new At(t)}}),tu=ro(function(t,e){return Ce(e,function(e){e=Ro(e),ar(t,e,Sa(t[e],t))}),t});function eu(t){return function(){return t}}var nu=Ui(),ru=Ui(!0);function iu(t){return t}function ou(t){return jr("function"==typeof t?t:cr(t,1))}var au=Zr(function(t,e){return function(n){return Nr(n,t,e)}}),su=Zr(function(t,e){return function(n){return Nr(t,n,e)}});function uu(t,e,n){var r=Es(e),i=xr(e,r);null!=n||es(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=xr(e,Es(e)));var o=!(es(n)&&"chain"in n&&!n.chain),a=Ya(t);return Ce(i,function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__);return(n.__actions__=Si(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,Pe([this.value()],arguments))})}),t}function cu(){}var lu=Wi(Oe),fu=Wi(Se),pu=Wi(Re);function du(t){return Io(t)?Ke(Ro(t)):function(t){return function(e){return Ar(e,t)}}(t)}var hu=Ki(),gu=Ki(!0);function vu(){return[]}function wu(){return!1}var yu=Hi(function(t,e){return t+e},0),_u=Xi("ceil"),mu=Hi(function(t,e){return t/e},1),bu=Xi("floor");var Iu,xu=Hi(function(t,e){return t*e},1),Au=Xi("round"),Du=Hi(function(t,e){return t-e},0);return Vn.after=function(t,e){if("function"!=typeof e)throw new St(i);return t=gs(t),function(){if(--t<1)return e.apply(this,arguments)}},Vn.ary=Ca,Vn.assign=ms,Vn.assignIn=bs,Vn.assignInWith=Is,Vn.assignWith=xs,Vn.at=As,Vn.before=ka,Vn.bind=Sa,Vn.bindAll=tu,Vn.bindKey=Na,Vn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Fa(t)?t:[t]},Vn.chain=da,Vn.chunk=function(t,e,r){e=(r?bo(t,e,r):e===n)?1:_n(gs(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var o=0,a=0,s=at(ge(i/e));o<i;)s[a++]=ii(t,o,o+=e);return s},Vn.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i},Vn.concat=function(){var t=arguments.length;if(!t)return[];for(var e=at(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return Pe(Fa(n)?Si(n):[n],yr(e,1))},Vn.cond=function(t){var e=null==t?0:t.length,n=co();return t=e?Oe(t,function(t){if("function"!=typeof t[1])throw new St(i);return[n(t[0]),t[1]]}):[],Zr(function(n){for(var r=-1;++r<e;){var i=t[r];if(Te(i[0],this,n))return Te(i[1],this,n)}})},Vn.conforms=function(t){return function(t){var e=Es(t);return function(n){return lr(n,t,e)}}(cr(t,1))},Vn.constant=eu,Vn.countBy=va,Vn.create=function(t,e){var n=zn(t);return null==e?n:or(n,e)},Vn.curry=function t(e,r,i){var o=Yi(e,8,n,n,n,n,n,r=i?n:r);return o.placeholder=t.placeholder,o},Vn.curryRight=function t(e,r,i){var o=Yi(e,s,n,n,n,n,n,r=i?n:r);return o.placeholder=t.placeholder,o},Vn.debounce=Ea,Vn.defaults=Ds,Vn.defaultsDeep=Ts,Vn.defer=La,Vn.delay=Oa,Vn.difference=Vo,Vn.differenceBy=zo,Vn.differenceWith=Ho,Vn.drop=function(t,e,r){var i=null==t?0:t.length;return i?ii(t,(e=r||e===n?1:gs(e))<0?0:e,i):[]},Vn.dropRight=function(t,e,r){var i=null==t?0:t.length;return i?ii(t,0,(e=i-(e=r||e===n?1:gs(e)))<0?0:e):[]},Vn.dropRightWhile=function(t,e){return t&&t.length?hi(t,co(e,3),!0,!0):[]},Vn.dropWhile=function(t,e){return t&&t.length?hi(t,co(e,3),!0):[]},Vn.fill=function(t,e,r,i){var o=null==t?0:t.length;return o?(r&&"number"!=typeof r&&bo(t,e,r)&&(r=0,i=o),function(t,e,r,i){var o=t.length;for((r=gs(r))<0&&(r=-r>o?0:o+r),(i=i===n||i>o?o:gs(i))<0&&(i+=o),i=r>i?0:vs(i);r<i;)t[r++]=e;return t}(t,e,r,i)):[]},Vn.filter=function(t,e){return(Fa(t)?Ne:wr)(t,co(e,3))},Vn.flatMap=function(t,e){return yr(Aa(t,e),1)},Vn.flatMapDeep=function(t,e){return yr(Aa(t,e),p)},Vn.flatMapDepth=function(t,e,r){return r=r===n?1:gs(r),yr(Aa(t,e),r)},Vn.flatten=Ko,Vn.flattenDeep=function(t){return(null==t?0:t.length)?yr(t,p):[]},Vn.flattenDepth=function(t,e){return(null==t?0:t.length)?yr(t,e=e===n?1:gs(e)):[]},Vn.flip=function(t){return Yi(t,512)},Vn.flow=nu,Vn.flowRight=ru,Vn.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},Vn.functions=function(t){return null==t?[]:xr(t,Es(t))},Vn.functionsIn=function(t){return null==t?[]:xr(t,Ls(t))},Vn.groupBy=ba,Vn.initial=function(t){return(null==t?0:t.length)?ii(t,0,-1):[]},Vn.intersection=qo,Vn.intersectionBy=Xo,Vn.intersectionWith=Jo,Vn.invert=ks,Vn.invertBy=Ss,Vn.invokeMap=Ia,Vn.iteratee=ou,Vn.keyBy=xa,Vn.keys=Es,Vn.keysIn=Ls,Vn.map=Aa,Vn.mapKeys=function(t,e){var n={};return e=co(e,3),br(t,function(t,r,i){ar(n,e(t,r,i),t)}),n},Vn.mapValues=function(t,e){var n={};return e=co(e,3),br(t,function(t,r,i){ar(n,r,e(t,r,i))}),n},Vn.matches=function(t){return Vr(cr(t,1))},Vn.matchesProperty=function(t,e){return zr(t,cr(e,1))},Vn.memoize=Pa,Vn.merge=Os,Vn.mergeWith=Ps,Vn.method=au,Vn.methodOf=su,Vn.mixin=uu,Vn.negate=ja,Vn.nthArg=function(t){return t=gs(t),Zr(function(e){return Wr(e,t)})},Vn.omit=js,Vn.omitBy=function(t,e){return Rs(t,ja(co(e)))},Vn.once=function(t){return ka(2,t)},Vn.orderBy=function(t,e,r,i){return null==t?[]:(Fa(e)||(e=null==e?[]:[e]),Fa(r=i?n:r)||(r=null==r?[]:[r]),Fr(t,e,r))},Vn.over=lu,Vn.overArgs=$a,Vn.overEvery=fu,Vn.overSome=pu,Vn.partial=Ra,Vn.partialRight=Ba,Vn.partition=Da,Vn.pick=$s,Vn.pickBy=Rs,Vn.property=du,Vn.propertyOf=function(t){return function(e){return null==t?n:Ar(t,e)}},Vn.pull=Yo,Vn.pullAll=Qo,Vn.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Gr(t,e,co(n,2)):t},Vn.pullAllWith=function(t,e,r){return t&&t.length&&e&&e.length?Gr(t,e,n,r):t},Vn.pullAt=ta,Vn.range=hu,Vn.rangeRight=gu,Vn.rearg=Ua,Vn.reject=function(t,e){return(Fa(t)?Ne:wr)(t,ja(co(e,3)))},Vn.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=co(e,3);++r<o;){var a=t[r];e(a,r,t)&&(n.push(a),i.push(r))}return qr(t,i),n},Vn.rest=function(t,e){if("function"!=typeof t)throw new St(i);return Zr(t,e=e===n?e:gs(e))},Vn.reverse=ea,Vn.sampleSize=function(t,e,r){return e=(r?bo(t,e,r):e===n)?1:gs(e),(Fa(t)?Qn:Qr)(t,e)},Vn.set=function(t,e,n){return null==t?t:ti(t,e,n)},Vn.setWith=function(t,e,r,i){return i="function"==typeof i?i:n,null==t?t:ti(t,e,r,i)},Vn.shuffle=function(t){return(Fa(t)?tr:ri)(t)},Vn.slice=function(t,e,r){var i=null==t?0:t.length;return i?(r&&"number"!=typeof r&&bo(t,e,r)?(e=0,r=i):(e=null==e?0:gs(e),r=r===n?i:gs(r)),ii(t,e,r)):[]},Vn.sortBy=Ta,Vn.sortedUniq=function(t){return t&&t.length?ui(t):[]},Vn.sortedUniqBy=function(t,e){return t&&t.length?ui(t,co(e,2)):[]},Vn.split=function(t,e,r){return r&&"number"!=typeof r&&bo(t,e,r)&&(e=r=n),(r=r===n?g:r>>>0)?(t=_s(t))&&("string"==typeof e||null!=e&&!as(e))&&!(e=li(e))&&sn(t)?Ii(hn(t),0,r):t.split(e,r):[]},Vn.spread=function(t,e){if("function"!=typeof t)throw new St(i);return e=null==e?0:_n(gs(e),0),Zr(function(n){var r=n[e],i=Ii(n,0,e);return r&&Pe(i,r),Te(t,this,i)})},Vn.tail=function(t){var e=null==t?0:t.length;return e?ii(t,1,e):[]},Vn.take=function(t,e,r){return t&&t.length?ii(t,0,(e=r||e===n?1:gs(e))<0?0:e):[]},Vn.takeRight=function(t,e,r){var i=null==t?0:t.length;return i?ii(t,(e=i-(e=r||e===n?1:gs(e)))<0?0:e,i):[]},Vn.takeRightWhile=function(t,e){return t&&t.length?hi(t,co(e,3),!1,!0):[]},Vn.takeWhile=function(t,e){return t&&t.length?hi(t,co(e,3)):[]},Vn.tap=function(t,e){return e(t),t},Vn.throttle=function(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new St(i);return es(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ea(t,e,{leading:r,maxWait:e,trailing:o})},Vn.thru=ha,Vn.toArray=ds,Vn.toPairs=Bs,Vn.toPairsIn=Us,Vn.toPath=function(t){return Fa(t)?Oe(t,Ro):cs(t)?[t]:Si($o(_s(t)))},Vn.toPlainObject=ys,Vn.transform=function(t,e,n){var r=Fa(t),i=r||Xa(t)||ls(t);if(e=co(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:es(t)&&Ya(o)?zn(Gt(t)):{}}return(i?Ce:br)(t,function(t,r,i){return e(n,t,r,i)}),n},Vn.unary=function(t){return Ca(t,1)},Vn.union=na,Vn.unionBy=ra,Vn.unionWith=ia,Vn.uniq=function(t){return t&&t.length?fi(t):[]},Vn.uniqBy=function(t,e){return t&&t.length?fi(t,co(e,2)):[]},Vn.uniqWith=function(t,e){return e="function"==typeof e?e:n,t&&t.length?fi(t,n,e):[]},Vn.unset=function(t,e){return null==t||pi(t,e)},Vn.unzip=oa,Vn.unzipWith=aa,Vn.update=function(t,e,n){return null==t?t:di(t,e,_i(n))},Vn.updateWith=function(t,e,r,i){return i="function"==typeof i?i:n,null==t?t:di(t,e,_i(r),i)},Vn.values=Vs,Vn.valuesIn=function(t){return null==t?[]:Qe(t,Ls(t))},Vn.without=sa,Vn.words=Ys,Vn.wrap=function(t,e){return Ra(_i(e),t)},Vn.xor=ua,Vn.xorBy=ca,Vn.xorWith=la,Vn.zip=fa,Vn.zipObject=function(t,e){return wi(t||[],e||[],nr)},Vn.zipObjectDeep=function(t,e){return wi(t||[],e||[],ti)},Vn.zipWith=pa,Vn.entries=Bs,Vn.entriesIn=Us,Vn.extend=bs,Vn.extendWith=Is,uu(Vn,Vn),Vn.add=yu,Vn.attempt=Qs,Vn.camelCase=zs,Vn.capitalize=Hs,Vn.ceil=_u,Vn.clamp=function(t,e,r){return r===n&&(r=e,e=n),r!==n&&(r=(r=ws(r))==r?r:0),e!==n&&(e=(e=ws(e))==e?e:0),ur(ws(t),e,r)},Vn.clone=function(t){return cr(t,4)},Vn.cloneDeep=function(t){return cr(t,5)},Vn.cloneDeepWith=function(t,e){return cr(t,5,e="function"==typeof e?e:n)},Vn.cloneWith=function(t,e){return cr(t,4,e="function"==typeof e?e:n)},Vn.conformsTo=function(t,e){return null==e||lr(t,e,Es(e))},Vn.deburr=Ws,Vn.defaultTo=function(t,e){return null==t||t!=t?e:t},Vn.divide=mu,Vn.endsWith=function(t,e,r){t=_s(t),e=li(e);var i=t.length,o=r=r===n?i:ur(gs(r),0,i);return(r-=e.length)>=0&&t.slice(r,o)==e},Vn.eq=Va,Vn.escape=function(t){return(t=_s(t))&&J.test(t)?t.replace(q,on):t},Vn.escapeRegExp=function(t){return(t=_s(t))&&it.test(t)?t.replace(rt,"\\$&"):t},Vn.every=function(t,e,r){var i=Fa(t)?Se:gr;return r&&bo(t,e,r)&&(e=n),i(t,co(e,3))},Vn.find=wa,Vn.findIndex=Wo,Vn.findKey=function(t,e){return Ue(t,co(e,3),br)},Vn.findLast=ya,Vn.findLastIndex=Fo,Vn.findLastKey=function(t,e){return Ue(t,co(e,3),Ir)},Vn.floor=bu,Vn.forEach=_a,Vn.forEachRight=ma,Vn.forIn=function(t,e){return null==t?t:_r(t,co(e,3),Ls)},Vn.forInRight=function(t,e){return null==t?t:mr(t,co(e,3),Ls)},Vn.forOwn=function(t,e){return t&&br(t,co(e,3))},Vn.forOwnRight=function(t,e){return t&&Ir(t,co(e,3))},Vn.get=Ms,Vn.gt=za,Vn.gte=Ha,Vn.has=function(t,e){return null!=t&&wo(t,e,Cr)},Vn.hasIn=Cs,Vn.head=Go,Vn.identity=iu,Vn.includes=function(t,e,n,r){t=Ga(t)?t:Vs(t),n=n&&!r?gs(n):0;var i=t.length;return n<0&&(n=_n(i+n,0)),us(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&ze(t,e,n)>-1},Vn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:gs(n);return i<0&&(i=_n(r+i,0)),ze(t,e,i)},Vn.inRange=function(t,e,r){return e=hs(e),r===n?(r=e,e=0):r=hs(r),function(t,e,n){return t>=mn(e,n)&&t<_n(e,n)}(t=ws(t),e,r)},Vn.invoke=Ns,Vn.isArguments=Wa,Vn.isArray=Fa,Vn.isArrayBuffer=Ka,Vn.isArrayLike=Ga,Vn.isArrayLikeObject=qa,Vn.isBoolean=function(t){return!0===t||!1===t||ns(t)&&Tr(t)==_},Vn.isBuffer=Xa,Vn.isDate=Ja,Vn.isElement=function(t){return ns(t)&&1===t.nodeType&&!os(t)},Vn.isEmpty=function(t){if(null==t)return!0;if(Ga(t)&&(Fa(t)||"string"==typeof t||"function"==typeof t.splice||Xa(t)||ls(t)||Wa(t)))return!t.length;var e=vo(t);if(e==A||e==k)return!t.size;if(Do(t))return!$r(t).length;for(var n in t)if(jt.call(t,n))return!1;return!0},Vn.isEqual=function(t,e){return Lr(t,e)},Vn.isEqualWith=function(t,e,r){var i=(r="function"==typeof r?r:n)?r(t,e):n;return i===n?Lr(t,e,n,r):!!i},Vn.isError=Za,Vn.isFinite=function(t){return"number"==typeof t&&Be(t)},Vn.isFunction=Ya,Vn.isInteger=Qa,Vn.isLength=ts,Vn.isMap=rs,Vn.isMatch=function(t,e){return t===e||Or(t,e,fo(e))},Vn.isMatchWith=function(t,e,r){return r="function"==typeof r?r:n,Or(t,e,fo(e),r)},Vn.isNaN=function(t){return is(t)&&t!=+t},Vn.isNative=function(t){if(Ao(t))throw new At("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Pr(t)},Vn.isNil=function(t){return null==t},Vn.isNull=function(t){return null===t},Vn.isNumber=is,Vn.isObject=es,Vn.isObjectLike=ns,Vn.isPlainObject=os,Vn.isRegExp=as,Vn.isSafeInteger=function(t){return Qa(t)&&t>=-9007199254740991&&t<=d},Vn.isSet=ss,Vn.isString=us,Vn.isSymbol=cs,Vn.isTypedArray=ls,Vn.isUndefined=function(t){return t===n},Vn.isWeakMap=function(t){return ns(t)&&vo(t)==E},Vn.isWeakSet=function(t){return ns(t)&&"[object WeakSet]"==Tr(t)},Vn.join=function(t,e){return null==t?"":Ge.call(t,e)},Vn.kebabCase=Fs,Vn.last=Zo,Vn.lastIndexOf=function(t,e,r){var i=null==t?0:t.length;if(!i)return-1;var o=i;return r!==n&&(o=(o=gs(r))<0?_n(i+o,0):mn(o,i-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,o):Ve(t,We,o,!0)},Vn.lowerCase=Ks,Vn.lowerFirst=Gs,Vn.lt=fs,Vn.lte=ps,Vn.max=function(t){return t&&t.length?vr(t,iu,Mr):n},Vn.maxBy=function(t,e){return t&&t.length?vr(t,co(e,2),Mr):n},Vn.mean=function(t){return Fe(t,iu)},Vn.meanBy=function(t,e){return Fe(t,co(e,2))},Vn.min=function(t){return t&&t.length?vr(t,iu,Br):n},Vn.minBy=function(t,e){return t&&t.length?vr(t,co(e,2),Br):n},Vn.stubArray=vu,Vn.stubFalse=wu,Vn.stubObject=function(){return{}},Vn.stubString=function(){return""},Vn.stubTrue=function(){return!0},Vn.multiply=xu,Vn.nth=function(t,e){return t&&t.length?Wr(t,gs(e)):n},Vn.noConflict=function(){return he._===this&&(he._=Vt),this},Vn.noop=cu,Vn.now=Ma,Vn.pad=function(t,e,n){t=_s(t);var r=(e=gs(e))?dn(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Fi(ve(i),n)+t+Fi(ge(i),n)},Vn.padEnd=function(t,e,n){t=_s(t);var r=(e=gs(e))?dn(t):0;return e&&r<e?t+Fi(e-r,n):t},Vn.padStart=function(t,e,n){t=_s(t);var r=(e=gs(e))?dn(t):0;return e&&r<e?Fi(e-r,n)+t:t},Vn.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),In(_s(t).replace(ot,""),e||0)},Vn.random=function(t,e,r){if(r&&"boolean"!=typeof r&&bo(t,e,r)&&(e=r=n),r===n&&("boolean"==typeof e?(r=e,e=n):"boolean"==typeof t&&(r=t,t=n)),t===n&&e===n?(t=0,e=1):(t=hs(t),e===n?(e=t,t=0):e=hs(e)),t>e){var i=t;t=e,e=i}if(r||t%1||e%1){var o=xn();return mn(t+o*(e-t+le("1e-"+((o+"").length-1))),e)}return Xr(t,e)},Vn.reduce=function(t,e,n){var r=Fa(t)?je:qe,i=arguments.length<3;return r(t,co(e,4),n,i,dr)},Vn.reduceRight=function(t,e,n){var r=Fa(t)?$e:qe,i=arguments.length<3;return r(t,co(e,4),n,i,hr)},Vn.repeat=function(t,e,r){return e=(r?bo(t,e,r):e===n)?1:gs(e),Jr(_s(t),e)},Vn.replace=function(){var t=arguments,e=_s(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Vn.result=function(t,e,r){var i=-1,o=(e=mi(e,t)).length;for(o||(o=1,t=n);++i<o;){var a=null==t?n:t[Ro(e[i])];a===n&&(i=o,a=r),t=Ya(a)?a.call(t):a}return t},Vn.round=Au,Vn.runInContext=t,Vn.sample=function(t){return(Fa(t)?Yn:Yr)(t)},Vn.size=function(t){if(null==t)return 0;if(Ga(t))return us(t)?dn(t):t.length;var e=vo(t);return e==A||e==k?t.size:$r(t).length},Vn.snakeCase=qs,Vn.some=function(t,e,r){var i=Fa(t)?Re:oi;return r&&bo(t,e,r)&&(e=n),i(t,co(e,3))},Vn.sortedIndex=function(t,e){return ai(t,e)},Vn.sortedIndexBy=function(t,e,n){return si(t,e,co(n,2))},Vn.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=ai(t,e);if(r<n&&Va(t[r],e))return r}return-1},Vn.sortedLastIndex=function(t,e){return ai(t,e,!0)},Vn.sortedLastIndexBy=function(t,e,n){return si(t,e,co(n,2),!0)},Vn.sortedLastIndexOf=function(t,e){if(null==t?0:t.length){var n=ai(t,e,!0)-1;if(Va(t[n],e))return n}return-1},Vn.startCase=Xs,Vn.startsWith=function(t,e,n){return t=_s(t),n=null==n?0:ur(gs(n),0,t.length),e=li(e),t.slice(n,n+e.length)==e},Vn.subtract=Du,Vn.sum=function(t){return t&&t.length?Xe(t,iu):0},Vn.sumBy=function(t,e){return t&&t.length?Xe(t,co(e,2)):0},Vn.template=function(t,e,r){var i=Vn.templateSettings;r&&bo(t,e,r)&&(e=n),t=_s(t),e=Is({},e,i,Qi);var o,a,s=Is({},e.imports,i.imports,Qi),u=Es(s),c=Qe(s,u),l=0,f=e.interpolate||bt,p="__p += '",d=Ct((e.escape||bt).source+"|"+f.source+"|"+(f===Q?dt:bt).source+"|"+(e.evaluate||bt).source+"|$","g"),h="//# sourceURL="+(jt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ae+"]")+"\n";t.replace(d,function(e,n,r,i,s,u){return r||(r=i),p+=t.slice(l,u).replace(It,an),n&&(o=!0,p+="' +\n__e("+n+") +\n'"),s&&(a=!0,p+="';\n"+s+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+e.length,e}),p+="';\n";var g=jt.call(e,"variable")&&e.variable;if(g){if(ft.test(g))throw new At("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(W,""):p).replace(F,"$1").replace(K,"$1;"),p="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var v=Qs(function(){return Dt(u,h+"return "+p).apply(n,c)});if(v.source=p,Za(v))throw v;return v},Vn.times=function(t,e){if((t=gs(t))<1||t>d)return[];var n=g,r=mn(t,g);e=co(e),t-=g;for(var i=Je(r,e);++n<t;)e(n);return i},Vn.toFinite=hs,Vn.toInteger=gs,Vn.toLength=vs,Vn.toLower=function(t){return _s(t).toLowerCase()},Vn.toNumber=ws,Vn.toSafeInteger=function(t){return t?ur(gs(t),-9007199254740991,d):0===t?t:0},Vn.toString=_s,Vn.toUpper=function(t){return _s(t).toUpperCase()},Vn.trim=function(t,e,r){if((t=_s(t))&&(r||e===n))return Ze(t);if(!t||!(e=li(e)))return t;var i=hn(t),o=hn(e);return Ii(i,en(i,o),nn(i,o)+1).join("")},Vn.trimEnd=function(t,e,r){if((t=_s(t))&&(r||e===n))return t.slice(0,gn(t)+1);if(!t||!(e=li(e)))return t;var i=hn(t);return Ii(i,0,nn(i,hn(e))+1).join("")},Vn.trimStart=function(t,e,r){if((t=_s(t))&&(r||e===n))return t.replace(ot,"");if(!t||!(e=li(e)))return t;var i=hn(t);return Ii(i,en(i,hn(e))).join("")},Vn.truncate=function(t,e){var r=30,i="...";if(es(e)){var o="separator"in e?e.separator:o;r="length"in e?gs(e.length):r,i="omission"in e?li(e.omission):i}var a=(t=_s(t)).length;if(sn(t)){var s=hn(t);a=s.length}if(r>=a)return t;var u=r-dn(i);if(u<1)return i;var c=s?Ii(s,0,u).join(""):t.slice(0,u);if(o===n)return c+i;if(s&&(u+=c.length-u),as(o)){if(t.slice(u).search(o)){var l,f=c;for(o.global||(o=Ct(o.source,_s(ht.exec(o))+"g")),o.lastIndex=0;l=o.exec(f);)var p=l.index;c=c.slice(0,p===n?u:p)}}else if(t.indexOf(li(o),u)!=u){var d=c.lastIndexOf(o);d>-1&&(c=c.slice(0,d))}return c+i},Vn.unescape=function(t){return(t=_s(t))&&X.test(t)?t.replace(G,vn):t},Vn.uniqueId=function(t){var e=++$t;return _s(t)+e},Vn.upperCase=Js,Vn.upperFirst=Zs,Vn.each=_a,Vn.eachRight=ma,Vn.first=Go,uu(Vn,(Iu={},br(Vn,function(t,e){jt.call(Vn.prototype,e)||(Iu[e]=t)}),Iu),{chain:!1}),Vn.VERSION="4.17.23",Ce(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){Vn[t].placeholder=Vn}),Ce(["drop","take"],function(t,e){Fn.prototype[t]=function(r){r=r===n?1:_n(gs(r),0);var i=this.__filtered__&&!e?new Fn(this):this.clone();return i.__filtered__?i.__takeCount__=mn(r,i.__takeCount__):i.__views__.push({size:mn(r,g),type:t+(i.__dir__<0?"Right":"")}),i},Fn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),Ce(["filter","map","takeWhile"],function(t,e){var n=e+1,r=1==n||3==n;Fn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:co(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),Ce(["head","last"],function(t,e){var n="take"+(e?"Right":"");Fn.prototype[t]=function(){return this[n](1).value()[0]}}),Ce(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");Fn.prototype[t]=function(){return this.__filtered__?new Fn(this):this[n](1)}}),Fn.prototype.compact=function(){return this.filter(iu)},Fn.prototype.find=function(t){return this.filter(t).head()},Fn.prototype.findLast=function(t){return this.reverse().find(t)},Fn.prototype.invokeMap=Zr(function(t,e){return"function"==typeof t?new Fn(this):this.map(function(n){return Nr(n,t,e)})}),Fn.prototype.reject=function(t){return this.filter(ja(co(t)))},Fn.prototype.slice=function(t,e){t=gs(t);var r=this;return r.__filtered__&&(t>0||e<0)?new Fn(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),e!==n&&(r=(e=gs(e))<0?r.dropRight(-e):r.take(e-t)),r)},Fn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Fn.prototype.toArray=function(){return this.take(g)},br(Fn.prototype,function(t,e){var r=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),o=Vn[i?"take"+("last"==e?"Right":""):e],a=i||/^find/.test(e);o&&(Vn.prototype[e]=function(){var e=this.__wrapped__,s=i?[1]:arguments,u=e instanceof Fn,c=s[0],l=u||Fa(e),f=function(t){var e=o.apply(Vn,Pe([t],s));return i&&p?e[0]:e};l&&r&&"function"==typeof c&&1!=c.length&&(u=l=!1);var p=this.__chain__,d=!!this.__actions__.length,h=a&&!p,g=u&&!d;if(!a&&l){e=g?e:new Fn(this);var v=t.apply(e,s);return v.__actions__.push({func:ha,args:[f],thisArg:n}),new Wn(v,p)}return h&&g?t.apply(this,s):(v=this.thru(f),h?i?v.value()[0]:v.value():v)})}),Ce(["pop","push","shift","sort","splice","unshift"],function(t){var e=Nt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Vn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(Fa(i)?i:[],t)}return this[n](function(n){return e.apply(Fa(n)?n:[],t)})}}),br(Fn.prototype,function(t,e){var n=Vn[e];if(n){var r=n.name+"";jt.call(En,r)||(En[r]=[]),En[r].push({name:e,func:n})}}),En[Vi(n,2).name]=[{name:"wrapper",func:n}],Fn.prototype.clone=function(){var t=new Fn(this.__wrapped__);return t.__actions__=Si(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Si(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Si(this.__views__),t},Fn.prototype.reverse=function(){if(this.__filtered__){var t=new Fn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Fn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Fa(t),r=e<0,i=n?t.length:0,o=function(t,e,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=mn(e,t+a);break;case"takeRight":t=_n(t,e-a)}}return{start:t,end:e}}(0,i,this.__views__),a=o.start,s=o.end,u=s-a,c=r?s:a-1,l=this.__iteratees__,f=l.length,p=0,d=mn(u,this.__takeCount__);if(!n||!r&&i==u&&d==u)return gi(t,this.__actions__);var h=[];t:for(;u--&&p<d;){for(var g=-1,v=t[c+=e];++g<f;){var w=l[g],y=w.iteratee,_=w.type,m=y(v);if(2==_)v=m;else if(!m){if(1==_)continue t;break t}}h[p++]=v}return h},Vn.prototype.at=ga,Vn.prototype.chain=function(){return da(this)},Vn.prototype.commit=function(){return new Wn(this.value(),this.__chain__)},Vn.prototype.next=function(){this.__values__===n&&(this.__values__=ds(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?n:this.__values__[this.__index__++]}},Vn.prototype.plant=function(t){for(var e,r=this;r instanceof Hn;){var i=Uo(r);i.__index__=0,i.__values__=n,e?o.__wrapped__=i:e=i;var o=i;r=r.__wrapped__}return o.__wrapped__=t,e},Vn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Fn){var e=t;return this.__actions__.length&&(e=new Fn(this)),(e=e.reverse()).__actions__.push({func:ha,args:[ea],thisArg:n}),new Wn(e,this.__chain__)}return this.thru(ea)},Vn.prototype.toJSON=Vn.prototype.valueOf=Vn.prototype.value=function(){return gi(this.__wrapped__,this.__actions__)},Vn.prototype.first=Vn.prototype.head,Yt&&(Vn.prototype[Yt]=function(){return this}),Vn}();ve?((ve.exports=wn)._=wn,ge._=wn):he._=wn}).call(r)}(o,o.exports);var a=i(o.exports);var s=new class{constructor(){this.__listeners={}}register(...t){let e,n;3==t.length?(e=`${t[0]}-${t[1]}`,n=t[2]):(e=t[0],n=t[1]),this.__listeners[e]=this.__listeners[e]||[],this.__listeners[e].push({callback:n})}fireEvent(...t){let e,n;3==t.length?(e=`${t[0]}-${t[1]}`,n=t[2]):(e=t[0],n=t[1]);let r=this.__listeners[e]||[],i=!0;return a.forEach(r,t=>{if(!1===t.callback.call(null,n))return i=!1,!1}),i}unregister(...t){let e,n;3==t.length?(e=`${t[0]}-${t[1]}`,n=t[2]):(e=t[0],n=t[1]),a.isString(e)&&!a.isEmpty(this.__listeners[e])&&a.remove(this.__listeners[e],t=>t.callback===n||void 0===n)}hasListener(t){return a.isString(t)&&!a.isEmpty(this.__listeners[t])}clearAll(){this.__listeners={}}};const u=(t,e)=>{let n=window.rjEventCenter;n||(c(),n=window.rjEventCenter),n&&n.register&&n.register(t,e)},c=()=>{window.rjEventCenter?console.log(`事件中心已经初始化,不需要重新初始化:时间戳: ${(new Date).toLocaleString()}`):(console.log(`初始化事件中心:时间戳: ${(new Date).toLocaleString()}`),window.rjEventCenter=s)};var l={},f=Object.prototype.hasOwnProperty;function p(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(t){return null}}function d(t){try{return encodeURIComponent(t)}catch(t){return null}}l.stringify=function(t,e){e=e||"";var n,r,i=[];for(r in"string"!=typeof e&&(e="?"),t)if(f.call(t,r)){if((n=t[r])||null!=n&&!isNaN(n)||(n=""),r=d(r),n=d(n),null===r||null===n)continue;i.push(r+"="+n)}return i.length?e+i.join("&"):""},l.parse=function(t){for(var e,n=/([^=?#&]+)=?([^&]*)/g,r={};e=n.exec(t);){var i=p(e[1]),o=p(e[2]);null===i||null===o||i in r||(r[i]=o)}return r};var h=((e="")=>{e&&(e.startsWith("/")&&(e=e.slice(1,e.length)),e.endsWith("/")&&(e=e.slice(0,-1)));const n=t.create({baseURL:`/${e?e+"/":""}sdata/rest`,timeout:6e4,validateStatus:function(t){return t>=200&&t<300},headers:window.location.search&&l.parse(window.location.search).token||window.token?{token:l.parse(window.location.search).token||window.token}:{}});let r=n.post;return n.post=(t,e,i)=>{let o=window.VITE_SERVICE_BASE_URL||"";if(o){let a=o+t;return r.call(n,a,e,i)}return r.call(n,t,e,i)},n.defaults.headers.post["Content-Type"]="application/json",n.interceptors.response.use(t=>{let{data:e}=t;return"string"==typeof e&&(e=JSON.parse(e)),!e||200===e.status||e instanceof Blob?e instanceof Blob?(t.data=e,t):(t.data=e&&e.result,t):Promise.reject(t)},t=>{if(!t.response||401!==t.response.status)return Promise.reject(t.response)}),n})(window.prefixPath||"");const g=()=>{let t=window.sessionStorage.getItem("iportal_app_id");return t||(t=v()),t},v=()=>window.appSdk.getAppId()||window.localStorage.MobileAppId,w=async(t,e)=>{let n={param:{id:t}},r=await h.post("/dataservice/rest/orchestration/getMenuDatasByGroupID",n),i=r.data.resultDatas,o=r.data.menuTypes;r=await h.post("/dataservice/rest/orchestration/getPortalDefaultQuickMenus",{});let a=r.data.resultDatas,s=r.data.menuTypes,u=i.concat(a),c=o.concat(s),l=[],f=[],p={};for(const t of u){let e=t.id,n="1"==t.status;!p[e]&&n&&(l.push(t),p[e]=t)}let d={};for(const t of c){let e=t.id;d[e]||(f.push(t),d[e]=t)}if(e&&e.length>0){r=await y(e,t);let n=r.data.quickMenuMappingDatas||[],i={};for(const t of n){let e=t.menu_mapping_id,n=p[e];i[e]=n}return I(l,f,i)}return I(l,f,[])},y=async(t,e)=>{let n={param:{role_ids:t,group_id:e}};return await h.post("/dataservice/rest/orchestration/getQuckMenuMappingsByRoleIDs",n)},_=async(t,e,n)=>{let r={param:{user_id:t,app_id:e,group_id:n}};return(await h.post("/dataservice/rest/orchestration/getRoleIDsByUserAndGroupID",r)).data.portal_role_ids},m=async t=>{let e={param:{kb_doc_id:t}};return(await h.post("/dataservice/rest/orchestration/getPortalDocmentInfoByKBID",e)).data.docInfo},b=async(t,e)=>{let n={param:{role_ids:t,app_id:e}};return(await h.post("/dataservice/rest/orchestration/getPlatformMenuMappingsByRoleIDs",n)).data.mappingDatas},I=(t,e,n)=>{let r={},i={},o={};for(let t in n){let e=n[t];if(!e)continue;let r=e.parent_id;r&&(o[r]=!0)}for(const e of t){let t=e.id,i={id:t,index:e.menu_id,name:e.title,sort:e.sort,actionType:e.actionType,url:e.url,iconClass:e.image?e.image:"4"==e.type?"":"el-icon-menu",parent_id:e.parent_id,children:[],app_id:e.app_id,menu_id:e.menu_id,beyond_type:e.menu_type?e.menu_type:"RJVIEW-OTHERS",beyond_type_sort:e.menu_type_sort?e.menu_type_sort:999,type:"MenuItem",typeID:e.type};(n&&n[t]||"4"==e.type||o[t]||"1"==e.is_app_defalut)&&(r[t]=i)}for(const t of e){i[t.id]=t}for(const e of t){if("5"==e.type){let t=r[e.id];if(!t)continue;let n=e.parent_id,o=t.beyond_type,a=r[n];if(!a)continue;let s=a.children,u=s.find(t=>t.id==o);if(u){u.children.push(t),t.typeItem=u}else{let e=i[o],n=e?{id:o,index:o,name:e.title,children:[],sort:e.value,type:"MenuType"}:{id:o,index:o,name:"其他",children:[],sort:999,type:"MenuType"};n.children.push(t),s.push(n),t.typeItem=n}}}const a=[];for(const e of t){if("4"==e.type){let t=r[e.id];if(!t)continue;let i=t.children,o=0;for(const t of i){let e=t.children.length;if(o+=e,e>0)break}if("1"!=e.is_app_defalut&&n&&!n[e.id]&&0==o)continue;a.push(t);let s=t.children;s.sort((t,e)=>Number.isNaN(t.sort)?1:Number.isNaN(e.sort)?-1:t.sort-e.sort);for(let t of s){t.children.sort((t,e)=>Number.isNaN(t.sort)?1:Number.isNaN(e.sort)?-1:t.sort-e.sort)}}}return a.sort((t,e)=>Number.isNaN(t.sort)?1:Number.isNaN(e.sort)?-1:t.sort-e.sort),a},x=async(t,e)=>(await h.get(`/appAuth/getAccessToken?appKey=${t}&appSecret=${e}`)).data,A=async(t,e)=>(await h.get(`/systhirdapp/user/getUserByCode?code=${t}&access_token=${e}`)).data,D=async(t,e,n)=>{let r={param:{userID:t,im_type:e,group_id:n}};return(await h.post("/dataservice/rest/orchestration/getIMUserSigByID",r)).data.userSig},T=(t,e)=>{if(e&&e.length>0)for(let n=0;n<e.length;n++)if(e[n].name==t)return e[n].default_value;return""},M=async t=>{let e={param:{groupID:t}};return(await h.post("/dataservice/rest/orchestration/getAllUserInfosByGroupID",e)).data.resultDatas},C=async t=>{let e={param:{officeID:t}};return(await h.post("/dataservice/rest/orchestration/getChildrenOfficeInfosByID",e)).data.resultDatas},k=async(t,e)=>{let n={param:{userID:t,groupID:e}},r=await h.post("/dataservice/rest/orchestration/getPojectDptsByUserAndGroupID",n);return{dptDatas:r.data.officeDatas,userMappings:r.data.userMappings}},S=async(t,e,n,r)=>{let i={param:{data:{userID:t,im_type:e,group_id:n,userSig:r}}};return(await h.post("/dataservice/rest/orchestration/addIMMapping",i)).data},N=async(t,e)=>{let n={param:{userID:t,groupID:e}};return(await h.post("/dataservice/rest/orchestration/getAIRobotInfos",n)).data.robotInfos},E=async(t,e,n,r)=>{let i={param:{userID:t,im_type:e,groupID:n,userSig:r}};return(await h.post("/dataservice/rest/orchestration/updateIMMapping",i)).data},L=async t=>{let e={param:{appID:t}},n=(await h.post("/dataservice/rest/orchestration/getAppCustomData",e)).data.customData;return n=n?JSON.parse(n):{},n};var O,P="user-agent",j="",$="function",R="object",B="string",U="undefined",V="browser",z="cpu",H="device",W="engine",F="os",K="result",G="name",q="type",X="vendor",J="version",Z="architecture",Y="major",Q="model",tt="console",et="mobile",nt="tablet",rt="smarttv",it="wearable",ot="xr",at="embedded",st="inapp",ut="brands",ct="formFactors",lt="fullVersionList",ft="platform",pt="platformVersion",dt="bitness",ht="sec-ch-ua",gt=ht+"-full-version-list",vt=ht+"-arch",wt=ht+"-"+dt,yt=ht+"-form-factors",_t=ht+"-"+et,mt=ht+"-"+Q,bt=ht+"-"+ft,It=bt+"-version",xt=[ut,lt,et,Q,ft,pt,Z,ct,dt],At="Amazon",Dt="Apple",Tt="ASUS",Mt="BlackBerry",Ct="Google",kt="Huawei",St="Lenovo",Nt="Honor",Et="LG",Lt="Microsoft",Ot="Motorola",Pt="Nvidia",jt="OnePlus",$t="OPPO",Rt="Samsung",Bt="Sharp",Ut="Sony",Vt="Xiaomi",zt="Zebra",Ht="Chrome",Wt="Chromium",Ft="Chromecast",Kt="Edge",Gt="Firefox",qt="Opera",Xt="Facebook",Jt="Sogou",Zt="Mobile ",Yt=" Browser",Qt="Windows",te=typeof window!==U&&window.navigator?window.navigator:void 0,ee=te&&te.userAgentData?te.userAgentData:void 0,ne=function(t){for(var e={},n=0;n<t.length;n++)e[t[n].toUpperCase()]=t[n];return e},re=function(t,e){if(typeof t===R&&t.length>0){for(var n in t)if(se(e)==se(t[n]))return!0;return!1}return!!oe(t)&&se(e)==se(t)},ie=function(t,e){for(var n in t)return/^(browser|cpu|device|engine|os)$/.test(n)||!!e&&ie(t[n])},oe=function(t){return typeof t===B},ae=function(t){if(t){for(var e=[],n=le(/\\?\"/g,t).split(","),r=0;r<n.length;r++)if(n[r].indexOf(";")>-1){var i=pe(n[r]).split(";v=");e[r]={brand:i[0],version:i[1]}}else e[r]=pe(n[r]);return e}},se=function(t){return oe(t)?t.toLowerCase():t},ue=function(t){return oe(t)?le(/[^\d\.]/g,t).split(".")[0]:void 0},ce=function(t){for(var e in t)if(t.hasOwnProperty(e)){var n=t[e];typeof n==R&&2==n.length?this[n[0]]=n[1]:this[n]=void 0}return this},le=function(t,e){return oe(e)?e.replace(t,j):e},fe=function(t){return le(/\\?\"/g,t)},pe=function(t,e){return t=le(/^\s\s*/,String(t)),typeof e===U?t:t.substring(0,e)},de=function(t,e){if(t&&e)for(var n,r,i,o,a,s,u=0;u<e.length&&!a;){var c=e[u],l=e[u+1];for(n=r=0;n<c.length&&!a&&c[n];)if(a=c[n++].exec(t))for(i=0;i<l.length;i++)s=a[++r],typeof(o=l[i])===R&&o.length>0?2===o.length?typeof o[1]==$?this[o[0]]=o[1].call(this,s):this[o[0]]=o[1]:o.length>=3&&(typeof o[1]!==$||o[1].exec&&o[1].test?3==o.length?this[o[0]]=s?s.replace(o[1],o[2]):void 0:4==o.length?this[o[0]]=s?o[3].call(this,s.replace(o[1],o[2])):void 0:o.length>4&&(this[o[0]]=s?o[3].apply(this,[s.replace(o[1],o[2])].concat(o.slice(4))):void 0):o.length>3?this[o[0]]=s?o[1].apply(this,o.slice(2)):void 0:this[o[0]]=s?o[1].call(this,s,o[2]):void 0):this[o]=s||void 0;u+=2}},he=function(t,e){for(var n in e)if(typeof e[n]===R&&e[n].length>0){for(var r=0;r<e[n].length;r++)if(re(e[n][r],t))return"?"===n?void 0:n}else if(re(e[n],t))return"?"===n?void 0:n;return e.hasOwnProperty("*")?e["*"]:t},ge={ME:"4.90","NT 3.51":"3.51","NT 4.0":"4.0",2e3:["5.0","5.01"],XP:["5.1","5.2"],Vista:"6.0",7:"6.1",8:"6.2",8.1:"6.3",10:["6.4","10.0"],NT:""},ve={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},we={Chrome:"Google Chrome",Edge:"Microsoft Edge","Edge WebView2":"Microsoft Edge WebView2","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"},ye={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[J,[G,Zt+"Chrome"]],[/webview.+edge\/([\w\.]+)/i],[J,[G,Kt+" WebView"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[J,[G,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[G,J],[/opios[\/ ]+([\w\.]+)/i],[J,[G,qt+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[J,[G,qt+" GX"]],[/\bopr\/([\w\.]+)/i],[J,[G,qt]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[J,[G,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[J,[G,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(atlas|flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:hi|lg |ovi|qute)browser|palemoon)\/v?([-\w\.]+)/i,/(brave)(?: chrome)?\/([\d\.]+)/i,/(aloha|heytap|ovi|115|surf|qwant)browser\/([\d\.]+)/i,/(qwant)(?:ios|mobile)\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[G,J],[/quark(?:pc)?\/([-\w\.]+)/i],[J,[G,"Quark"]],[/\bddg\/([\w\.]+)/i],[J,[G,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[J,[G,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[J,[G,"WeChat"]],[/konqueror\/([\w\.]+)/i],[J,[G,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[J,[G,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[J,[G,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[J,[G,"Smart "+St+Yt]],[/(av(?:ast|g|ira))\/([\w\.]+)/i],[[G,/(.+)/,"$1 Secure"+Yt],J],[/norton\/([\w\.]+)/i],[J,[G,"Norton Private"+Yt]],[/\bfocus\/([\w\.]+)/i],[J,[G,Gt+" Focus"]],[/ mms\/([\w\.]+)$/i],[J,[G,qt+" Neon"]],[/ opt\/([\w\.]+)$/i],[J,[G,qt+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[J,[G,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[J,[G,"Dolphin"]],[/coast\/([\w\.]+)/i],[J,[G,qt+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[J,[G,"MIUI"+Yt]],[/fxios\/([\w\.-]+)/i],[J,[G,Zt+Gt]],[/\bqihoobrowser\/?([\w\.]*)/i],[J,[G,"360"]],[/\b(qq)\/([\w\.]+)/i],[[G,/(.+)/,"$1Browser"],J],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[G,/(.+)/,"$1"+Yt],J],[/samsungbrowser\/([\w\.]+)/i],[J,[G,Rt+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[J,[G,Jt+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[G,Jt+" Mobile"],J],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[G,J],[/(lbbrowser|luakit|rekonq|steam(?= (clie|tenf|gameo)))/i],[G],[/ome\/([\w\.]+).+(iron(?= saf)|360(?=[es]e$))/i],[J,G],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[G,Xt],J,[q,st]],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(bing)(?:web|sapphire)\/([\w\.]+)/i,/(instagram|snapchat|klarna)[\/ ]([-\w\.]+)/i],[G,J,[q,st]],[/\bgsa\/([\w\.]+) .*safari\//i],[J,[G,"GSA"],[q,st]],[/(?:musical_ly|trill)(?:.+app_?version\/|_)([\w\.]+)/i],[J,[G,"TikTok"],[q,st]],[/\[(linkedin)app\]/i],[G,[q,st]],[/(zalo(?:app)?)[\/\sa-z]*([\w\.-]+)/i],[[G,/(.+)/,"Zalo"],J,[q,st]],[/(chromium)[\/ ]([-\w\.]+)/i],[G,J],[/ome-(lighthouse)$/i],[G,[q,"fetcher"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[J,[G,Ht+" Headless"]],[/wv\).+chrome\/([\w\.]+).+edgw\//i],[J,[G,Kt+" WebView2"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[G,Ht+" WebView"],J],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[J,[G,"Android"+Yt]],[/chrome\/([\w\.]+) mobile/i],[J,[G,Zt+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[G,J],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[J,[G,Zt+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[G,Zt+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[J,G],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[G,[J,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[G,J],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[G,Zt+Gt],J],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[G,"Netscape"],J],[/(wolvic|librewolf)\/([\w\.]+)/i],[G,J],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[J,[G,Gt+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+(?= .+rv\:.+gecko\/\d+)|[0-4][\w\.]+(?!.+compatible))/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[G,[J,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[G,[J,/[^\d\.]+./,j]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[Z,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[Z,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[Z,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[Z,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[Z,"arm"]],[/ sun4\w[;\)]/i],[[Z,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i,/((ppc|powerpc)(64)?)( mac|;|\))/i,/(?:osf1|[freopnt]{3,4}bsd) (alpha)/i],[[Z,/ower/,j,se]],[/mc680.0/i],[[Z,"68k"]],[/winnt.+\[axp/i],[[Z,"alpha"]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[Q,[X,Rt],[q,nt]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr]|browser)[-\w]+)/i,/sec-(sgh\w+)/i],[Q,[X,Rt],[q,et]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)[\/\);]/i],[Q,[X,Dt],[q,et]],[/\b(?:ios|apple\w+)\/.+[\(\/](ipad)/i,/\b(ipad)[\d,]*[;\] ].+(mac |i(pad)?)os/i],[Q,[X,Dt],[q,nt]],[/(macintosh);/i],[Q,[X,Dt]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[Q,[X,Bt],[q,et]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[Q,[X,Nt],[q,nt]],[/honor([-\w ]+)[;\)]/i],[Q,[X,Nt],[q,et]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[Q,[X,kt],[q,nt]],[/(?:huawei) ?([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][\dc][adnt]?)\b(?!.+d\/s)/i],[Q,[X,kt],[q,et]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b(?:xiao)?((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[Q,/_/g," "],[X,Vt],[q,nt]],[/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/oid[^\)]+; (redmi[\-_ ]?(?:note|k)?[\w_ ]+|m?[12]\d[01]\d\w{3,6}|poco[\w ]+|(shark )?\w{3}-[ah]0|qin ?[1-3](s\+|ultra| pro)?)( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note|max|cc)?[_ ]?(?:\d{0,2}\w?)[_ ]?(?:plus|se|lite|pro)?( 5g|lte)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[Q,/_/g," "],[X,Vt],[q,et]],[/droid.+; (cph2[3-6]\d[13579]|((gm|hd)19|(ac|be|in|kb)20|(d[en]|eb|le|mt)21|ne22)[0-2]\d|p[g-l]\w[1m]10)\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[Q,[X,jt],[q,et]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[Q,[X,$t],[q,et]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[Q,[X,he,{OnePlus:["203","304","403","404","413","415"],"*":$t}],[q,nt]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[Q,[X,"BLU"],[q,et]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[Q,[X,"Vivo"],[q,et]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[Q,[X,"Realme"],[q,et]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[Q,[X,St],[q,nt]],[/lenovo[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i],[Q,[X,St],[q,et]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ]([\w\s]+)(\)| bui)/i,/((?:moto(?! 360)[-\w\(\) ]+|xt\d{3,4}[cgkosw\+]?[-\d]*|nexus 6)(?= bui|\)))/i],[Q,[X,Ot],[q,et]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[Q,[X,Ot],[q,nt]],[/\b(?:lg)?([vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[Q,[X,Et],[q,nt]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch|webos))(\w+)/i,/\blg-?([\d\w]+) bui/i],[Q,[X,Et],[q,et]],[/(nokia) (t[12][01])/i],[X,Q,[q,nt]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*?))( bui|\)|;|\/)/i],[[Q,/_/g," "],[q,et],[X,"Nokia"]],[/(pixel (c|tablet))\b/i],[Q,[X,Ct],[q,nt]],[/droid.+;(?: google)? (g(01[13]a|020[aem]|025[jn]|1b60|1f8f|2ybb|4s1m|576d|5nz6|8hhn|8vou|a02099|c15s|d1yq|e2ae|ec77|gh2x|kv4x|p4bc|pj41|r83y|tt9q|ur25|wvk6)|pixel[\d ]*a?( pro)?( xl)?( fold)?( \(5g\))?)( bui|\))/i],[Q,[X,Ct],[q,et]],[/(google) (pixelbook( go)?)/i],[X,Q],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-\w\w\d\d)(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[Q,[X,Ut],[q,et]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[Q,"Xperia Tablet"],[X,Ut],[q,nt]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[Q,[X,At],[q,nt]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[Q,/(.+)/g,"Fire Phone $1"],[X,At],[q,et]],[/(playbook);[-\w\),; ]+(rim)/i],[Q,X,[q,nt]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/(?:blackberry|\(bb10;) (\w+)/i],[Q,[X,Mt],[q,et]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[Q,[X,Tt],[q,nt]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[Q,[X,Tt],[q,et]],[/(nexus 9)/i],[Q,[X,"HTC"],[q,nt]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[X,[Q,/_/g," "],[q,et]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[Q,[X,"TCL"],[q,nt]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[Q,[X,"TCL"],[q,et]],[/(itel) ((\w+))/i],[[X,se],Q,[q,he,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[Q,[X,"Acer"],[q,nt]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[Q,[X,"Meizu"],[q,et]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[Q,[X,"Ulefone"],[q,et]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[Q,[X,"Energizer"],[q,et]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[Q,[X,"Cat"],[q,et]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[Q,[X,"Smartfren"],[q,et]],[/droid.+; (a(in)?(0(15|59|6[35])|142)p?)/i],[Q,[X,"Nothing"],[q,et]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[Q,[X,"Archos"],[q,nt]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[Q,[X,"Archos"],[q,et]],[/; (n159v)/i],[Q,[X,"HMD"],[q,et]],[/(imo) (tab \w+)/i,/(infinix|tecno) (x1101b?|p904|dp(7c|8d|10a)( pro)?|p70[1-3]a?|p904|t1101)/i],[X,Q,[q,nt]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|hmd|imo|infinix|lava|oneplus|tcl|wiko)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(oppo) ?([\w ]+) bui/i,/(hisense) ([ehv][\w ]+)\)/i,/droid[^;]+; (philips)[_ ]([sv-x][\d]{3,4}[xz]?)/i],[X,Q,[q,et]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[X,Q,[q,nt]],[/(surface duo)/i],[Q,[X,Lt],[q,nt]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[Q,[X,"Fairphone"],[q,et]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[Q,[X,Pt],[q,nt]],[/(sprint) (\w+)/i],[X,Q,[q,et]],[/(kin\.[onetw]{3})/i],[[Q,/\./g," "],[X,Lt],[q,et]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[Q,[X,zt],[q,nt]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[Q,[X,zt],[q,et]],[/(philips)[\w ]+tv/i,/smart-tv.+(samsung)/i],[X,[q,rt]],[/hbbtv.+maple;(\d+)/i],[[Q,/^/,"SmartTV"],[X,Rt],[q,rt]],[/(vizio)(?: |.+model\/)(\w+-\w+)/i,/tcast.+(lg)e?. ([-\w]+)/i],[X,Q,[q,rt]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[X,Et],[q,rt]],[/(apple) ?tv/i],[X,[Q,Dt+" TV"],[q,rt]],[/crkey.*devicetype\/chromecast/i],[[Q,Ft+" Third Generation"],[X,Ct],[q,rt]],[/crkey.*devicetype\/([^/]*)/i],[[Q,/^/,"Chromecast "],[X,Ct],[q,rt]],[/fuchsia.*crkey/i],[[Q,Ft+" Nest Hub"],[X,Ct],[q,rt]],[/crkey/i],[[Q,Ft],[X,Ct],[q,rt]],[/(portaltv)/i],[Q,[X,Xt],[q,rt]],[/droid.+aft(\w+)( bui|\))/i],[Q,[X,At],[q,rt]],[/(shield \w+ tv)/i],[Q,[X,Pt],[q,rt]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[Q,[X,Bt],[q,rt]],[/(bravia[\w ]+)( bui|\))/i],[Q,[X,Ut],[q,rt]],[/(mi(tv|box)-?\w+) bui/i],[Q,[X,Vt],[q,rt]],[/Hbbtv.*(technisat) (.*);/i],[X,Q,[q,rt]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[X,/.+\/(\w+)/,"$1",he,{LG:"lge"}],[Q,pe],[q,rt]],[/(playstation \w+)/i],[Q,[X,Ut],[q,tt]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[Q,[X,Lt],[q,tt]],[/(ouya)/i,/(nintendo) (\w+)/i,/(retroid) (pocket ([^\)]+))/i,/(valve).+(steam deck)/i,/droid.+; ((shield|rgcube|gr0006))( bui|\))/i],[[X,he,{Nvidia:"Shield",Anbernic:"RGCUBE",Logitech:"GR0006"}],Q,[q,tt]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[Q,[X,Rt],[q,it]],[/((pebble))app/i,/(asus|google|lg|oppo|xiaomi) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[X,Q,[q,it]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[Q,[X,$t],[q,it]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[Q,[X,Dt],[q,it]],[/(opwwe\d{3})/i],[Q,[X,jt],[q,it]],[/(moto 360)/i],[Q,[X,Ot],[q,it]],[/(smartwatch 3)/i],[Q,[X,Ut],[q,it]],[/(g watch r)/i],[Q,[X,Et],[q,it]],[/droid.+; (wt63?0{2,3})\)/i],[Q,[X,zt],[q,it]],[/droid.+; (glass) \d/i],[Q,[X,Ct],[q,ot]],[/(pico) ([\w ]+) os\d/i],[X,Q,[q,ot]],[/(quest( \d| pro)?s?).+vr/i],[Q,[X,Xt],[q,ot]],[/mobile vr; rv.+firefox/i],[[q,ot]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[X,[q,at]],[/(aeobc)\b/i],[Q,[X,At],[q,at]],[/(homepod).+mac os/i],[Q,[X,Dt],[q,at]],[/windows iot/i],[[q,at]],[/droid.+; ([\w- ]+) (4k|android|smart|google)[- ]?tv/i],[Q,[q,rt]],[/\b((4k|android|smart|opera)[- ]?tv|tv; rv:|large screen[\w ]+safari)\b/i],[[q,rt]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew|; hmsc).+?(mobile|vr|\d) safari/i],[Q,[q,he,{mobile:"Mobile",xr:"VR","*":nt}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[q,nt]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[q,et]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[Q,[X,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[J,[G,Kt+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[G,J],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[J,[G,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links|dillo)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[G,J],[/ladybird\//i],[[G,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[J,G]],os:[[/(windows nt) (6\.[23]); arm/i],[[G,/N/,"R"],[J,he,ge]],[/(windows (?:phone|mobile|iot))(?: os)?[\/ ]?([\d\.]*( se)?)/i,/(windows)[\/ ](1[01]|2000|3\.1|7|8(\.1)?|9[58]|me|server 20\d\d( r2)?|vista|xp)/i],[G,J],[/windows nt ?([\d\.\)]*)(?!.+xbox)/i,/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d\.;]*)/i],[[J,/(;|\))/g,"",he,ge],[G,Qt]],[/(windows ce)\/?([\d\.]*)/i],[G,J],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv|ios(?=.+ip(?:ad|hone)|.+apple ?tv)|ip(?:ad|hone)(?: |.+i(?:pad)?)os|apple ?tv.+ios)[\/ ]([\w\.]+)/i,/\btvos ?([\w\.]+)/i,/cfnetwork\/.+darwin/i],[[J,/_/g,"."],[G,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i],[[G,"macOS"],[J,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[J,[G,Ft+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[J,[G,Ft+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[J,[G,Ft+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[J,[G,Ft+" Linux"]],[/crkey\/([\d\.]+)/i],[J,[G,Ft]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[J,G],[/(ubuntu) ([\w\.]+) like android/i],[[G,/(.+)/,"$1 Touch"],J],[/(harmonyos)[\/ ]?([\d\.]*)/i,/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen)\w*[-\/\.; ]?([\d\.]*)/i],[G,J],[/\(bb(10);/i],[J,[G,Mt]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[J,[G,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile[;\w ]*|tablet|tv|[^\)]*(?:viera|lg(?:l25|-d300)|alcatel ?o.+|y300-f1)); rv:([\w\.]+)\).+gecko\//i],[J,[G,Gt+" OS"]],[/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i,/webos(?:[ \/]?|\.tv-20(?=2[2-9]))(\d[\d\.]*)/i],[J,[G,"webOS"]],[/web0s;.+?(?:chr[o0]me|safari)\/(\d+)/i],[[J,he,{25:"120",24:"108",23:"94",22:"87",6:"79",5:"68",4:"53",3:"38",2:"538",1:"537","*":"TV"}],[G,"webOS"]],[/watch(?: ?os[,\/ ]|\d,\d\/)([\d\.]+)/i],[J,[G,"watchOS"]],[/cros [\w]+(?:\)| ([\w\.]+)\b)/i],[J,[G,"Chrome OS"]],[/kepler ([\w\.]+); (aft|aeo)/i],[J,[G,"Vega OS"]],[/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/linux.+(mint)[\/\(\) ]?([\w\.]*)/i,/(mageia|vectorlinux|fuchsia|arcaos|arch(?= ?linux))[;l ]([\d\.]*)/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire|knoppix)(?: gnu[\/ ]linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/\b(aix)[; ]([1-9\.]{0,4})/i,/(hurd|linux|morphos)(?: (?:arm|x86|ppc)\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) ?(r\d)?/i],[G,J],[/(sunos) ?([\d\.]*)/i],[[G,"Solaris"],J],[/\b(beos|os\/2|amigaos|openvms|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[G,J]]},_e=(ce.call((O={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}}).init,[[V,[G,J,Y,q]],[z,[Z]],[H,[q,Q,X]],[W,[G,J]],[F,[G,J]]]),ce.call(O.isIgnore,[[V,[J,Y]],[W,[J]],[F,[J]]]),ce.call(O.isIgnoreRgx,[[V,/ ?browser$/i],[F,/ ?os$/i]]),ce.call(O.toString,[[V,[G,J]],[z,[Z]],[H,[X,Q]],[W,[G,J]],[F,[G,J]]]),O),me=function(t,e){var n=_e.init[e],r=_e.isIgnore[e]||0,i=_e.isIgnoreRgx[e]||0,o=_e.toString[e]||0;function a(){ce.call(this,n)}return a.prototype.getItem=function(){return t},a.prototype.withClientHints=function(){return ee?ee.getHighEntropyValues(xt).then(function(e){return t.setCH(new be(e,!1)).parseCH().get()}):t.parseCH().get()},a.prototype.withFeatureCheck=function(){return t.detectFeature().get()},e!=K&&(a.prototype.is=function(t){var e=!1;for(var n in this)if(this.hasOwnProperty(n)&&!re(r,n)&&se(i?le(i,this[n]):this[n])==se(i?le(i,t):t)){if(e=!0,t!=U)break}else if(t==U&&e){e=!e;break}return e},a.prototype.toString=function(){var t=j;for(var e in o)typeof this[o[e]]!==U&&(t+=(t?" ":j)+this[o[e]]);return t||U}),a.prototype.then=function(t){var e=this,n=function(){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])};n.prototype={is:a.prototype.is,toString:a.prototype.toString,withClientHints:a.prototype.withClientHints,withFeatureCheck:a.prototype.withFeatureCheck};var r=new n;return t(r),r},new a};function be(t,e){if(t=t||{},ce.call(this,xt),e)ce.call(this,[[ut,ae(t[ht])],[lt,ae(t[gt])],[et,/\?1/.test(t[_t])],[Q,fe(t[mt])],[ft,fe(t[bt])],[pt,fe(t[It])],[Z,fe(t[vt])],[ct,ae(t[yt])],[dt,fe(t[wt])]]);else for(var n in t)this.hasOwnProperty(n)&&typeof t[n]!==U&&(this[n]=t[n])}function Ie(t,e,n,r){return ce.call(this,[["itemType",t],["ua",e],["uaCH",r],["rgxMap",n],["data",me(this,t)]]),this}function xe(t,e,n){if(typeof t===R?(ie(t,!0)?(typeof e===R&&(n=e),e=t):(n=t,e=void 0),t=void 0):typeof t!==B||ie(e,!0)||(n=e,e=void 0),n)if(typeof n.append===$){var r={};n.forEach(function(t,e){r[String(e).toLowerCase()]=t}),n=r}else{var i={};for(var o in n)n.hasOwnProperty(o)&&(i[String(o).toLowerCase()]=n[o]);n=i}if(!(this instanceof xe))return new xe(t,e,n).getResult();var a=typeof t===B?t:n&&n[P]?n[P]:te&&te.userAgent?te.userAgent:j,s=new be(n,!0),u=e?function(t,e){var n={},r=e;if(!ie(e))for(var i in r={},e)for(var o in e[i])r[o]=e[i][o].concat(r[o]?r[o]:[]);for(var a in t)n[a]=r[a]&&r[a].length%2==0?r[a].concat(t[a]):t[a];return n}(ye,e):ye,c=function(t){return t==K?function(){return new Ie(t,a,u,s).set("ua",a).set(V,this.getBrowser()).set(z,this.getCPU()).set(H,this.getDevice()).set(W,this.getEngine()).set(F,this.getOS()).get()}:function(){return new Ie(t,a,u[t],s).parseUA().get()}};return ce.call(this,[["getBrowser",c(V)],["getCPU",c(z)],["getDevice",c(H)],["getEngine",c(W)],["getOS",c(F)],["getResult",c(K)],["getUA",function(){return a}],["setUA",function(t){return oe(t)&&(a=pe(t,500)),this}]]).setUA(a),this}Ie.prototype.get=function(t){return t?this.data.hasOwnProperty(t)?this.data[t]:void 0:this.data},Ie.prototype.set=function(t,e){return this.data[t]=e,this},Ie.prototype.setCH=function(t){return this.uaCH=t,this},Ie.prototype.detectFeature=function(){if(te&&te.userAgent==this.ua)switch(this.itemType){case V:te.brave&&typeof te.brave.isBrave==$&&this.set(G,"Brave");break;case H:!this.get(q)&&ee&&ee[et]&&this.set(q,et),"Macintosh"==this.get(Q)&&te&&typeof te.standalone!==U&&te.maxTouchPoints&&te.maxTouchPoints>2&&this.set(Q,"iPad").set(q,nt);break;case F:!this.get(G)&&ee&&ee[ft]&&this.set(G,ee[ft]);break;case K:var t=this.data,e=function(e){return t[e].getItem().detectFeature().get()};this.set(V,e(V)).set(z,e(z)).set(H,e(H)).set(W,e(W)).set(F,e(F))}return this},Ie.prototype.parseUA=function(){switch(this.itemType!=K&&de.call(this.data,this.ua,this.rgxMap),this.itemType){case V:this.set(Y,ue(this.get(J)));break;case F:if("iOS"==this.get(G)&&"18.6"==this.get(J)){var t=/\) Version\/([\d\.]+)/.exec(this.ua);t&&parseInt(t[1].substring(0,2),10)>=26&&this.set(J,t[1])}}return this},Ie.prototype.parseCH=function(){var t=this.uaCH,e=this.rgxMap;switch(this.itemType){case V:case W:var n,r=t[lt]||t[ut];if(r)for(var i=0;i<r.length;i++){var o=r[i].brand||r[i],a=r[i].version;this.itemType==V&&!/not.a.brand/i.test(o)&&(!n||/Chrom/.test(n)&&o!=Wt||n==Kt&&/WebView2/.test(o))&&(o=he(o,we),(n=this.get(G))&&!/Chrom/.test(n)&&/Chrom/.test(o)||this.set(G,o).set(J,a).set(Y,ue(a)),n=o),this.itemType==W&&o==Wt&&this.set(J,a)}break;case z:var s=t[Z];s&&(s&&"64"==t[dt]&&(s+="64"),de.call(this.data,s+";",e));break;case H:if(t[et]&&this.set(q,et),t[Q]&&(this.set(Q,t[Q]),!this.get(q)||!this.get(X))){var u={};de.call(u,"droid 9; "+t[Q]+")",e),!this.get(q)&&u.type&&this.set(q,u.type),!this.get(X)&&u.vendor&&this.set(X,u.vendor)}if(t[ct]){var c;if("string"!=typeof t[ct])for(var l=0;!c&&l<t[ct].length;)c=he(t[ct][l++],ve);else c=he(t[ct],ve);this.set(q,c)}break;case F:var f=t[ft];if(f){var p=t[pt];f==Qt&&(p=parseInt(ue(p),10)>=13?"11":"10"),this.set(G,f).set(J,p)}this.get(G)==Qt&&"Xbox"==t[Q]&&this.set(G,"Xbox").set(J,void 0);break;case K:var d=this.data,h=function(e){return d[e].getItem().setCH(t).parseCH().get()};this.set(V,h(V)).set(z,h(z)).set(H,h(H)).set(W,h(W)).set(F,h(F))}return this},xe.VERSION="2.0.9",xe.BROWSER=ne([G,J,Y,q]),xe.CPU=ne([Z]),xe.DEVICE=ne([Q,X,q,tt,et,rt,nt,it,at]),xe.ENGINE=xe.OS=ne([G,J]);const Ae=(t,e,n)=>window.customI18nObject?.get(`${e}-${t}-${n}`)||t;function De(t){if(!t)return null;const e=t.match(/\$L\{([^}]+)\}/);return e?{fullMatch:e[0],key:e[1]}:null}const Te=t=>{const e={result:!1,innerHTMLMatch:null},n=t.classList;if(!n)return e;if(n.contains("ant-table-cell")){let n=t.innerHTML;if(n.includes("序号")||n.includes("Serial No.")){let t={oldValue:"$L{序号}"};return e.result=!0,e.innerHTMLMatch=t,e}if("操作"==n){let t={oldValue:"$L{操作}"};return e.result=!0,e.innerHTMLMatch=t,e}}if(n.contains("export_menu")){let n=t.innerHTML;if(n.includes("导出进度")||n.includes("Export progress")){let t={oldValue:"$L{导出进度}"};return e.result=!0,e.innerHTMLMatch=t,e}}if(n.contains("total_pag_num")){let n=t.innerHTML;if(n.includes("共")&&n.includes("条")||n.includes("Total")&&n.includes("pieces")){let n={isScriptAction:!0,scriptFunction:(e,n)=>{let r=null;for(let e of t.childNodes)"SPAN"===e.tagName&&(r=e);let i=[{nodeType:Node.TEXT_NODE,key:"共"},{nodeType:"SCRIPTNODE",node:r},{nodeType:Node.TEXT_NODE,key:"条"}];for(let e=0;e<t.childNodes.length;e++){let n=t.childNodes[e];n.nodeType===Node.TEXT_NODE&&t.removeChild(n)}for(let r=0;r<i.length;r++){let o=i[r];if(o.nodeType===Node.TEXT_NODE){let r=document.createTextNode(Ae(o.key,e,n)||o.key);t.appendChild(r)}"SCRIPTNODE"===o.nodeType&&t.appendChild(o.node)}}};return e.result=!0,e.innerHTMLMatch=n,e}}if(n.contains("ant-pagination-options-quick-jumper")){let n=t.innerHTML;if(n.includes("跳至")&&n.includes("页")||n.includes("Go to")&&n.includes("Page")){let n={isScriptAction:!0,scriptFunction:(e,n)=>{let r=null;for(let e of t.childNodes)"INPUT"===e.tagName&&(r=e);let i=[{nodeType:Node.TEXT_NODE,key:"跳至"},{nodeType:"SCRIPTNODE",node:r},{nodeType:Node.TEXT_NODE,key:"页"}];for(let e=0;e<t.childNodes.length;e++){let n=t.childNodes[e];n.nodeType===Node.TEXT_NODE&&t.removeChild(n)}for(let r=0;r<i.length;r++){let o=i[r];if(o.nodeType===Node.TEXT_NODE){let r=document.createTextNode(Ae(o.key,e,n)||o.key);t.appendChild(r)}"SCRIPTNODE"===o.nodeType&&t.appendChild(o.node)}}};return e.result=!0,e.innerHTMLMatch=n,e}}if(n.contains("ant-select-selection-item")||n.contains("ant-select-item-option-content")){let n=t.innerHTML;if(n.includes("/")&&n.includes("page")||n.includes("/")&&n.includes("条")&&n.includes("页")){let r=t.innerHTML;n.includes("page")&&(r=r.replace("page","$L{页}")),n.includes("页")&&(r=r.replace("页","$L{页}")),n.includes("条")&&(r=r.replace("条","$L{条}"));let i={oldValue:r};return e.result=!0,e.innerHTMLMatch=i,e}}if(n.contains("ant-popover-message-title")){let n=t.innerHTML;if(n.includes("确认执行:")||n.includes("Confirm Execution:")){let t={oldValue:"$L{操作确认:删除?}"};return e.result=!0,e.innerHTMLMatch=t,e}}if(n.contains("ant-btn")&&!n.contains("saveBtn")){let n=t.innerHTML;if(n.includes("Cancel")||n.includes("取消")){let t={oldValue:"$L{取消}"};return e.result=!0,e.innerHTMLMatch=t,e}if(n.includes("确定")||n.includes("OK")){let t={oldValue:"$L{确定}"};return e.result=!0,e.innerHTMLMatch=t,e}}return e},Me=t=>{const e={result:!1,innerHTMLMatch:null},n=t.classList;if(!n)return e;let r=t.innerHTML,i=t.getAttribute("oldValue");if(i||(i=r),n.contains("catalog_name_content")){let n={oldValue:i,isScriptAction:!0,scriptFunction:(e,n)=>{for(let r=0;r<t.childNodes.length;r++){let i=t.childNodes[r];if(i.nodeType===Node.TEXT_NODE){let r=De(t.getAttribute("oldValue"));if(r){t.removeChild(i);let o=r.key,a=document.createTextNode(Ae(o,e,n)||o);t.appendChild(a)}else t.appendChild(i)}else t.appendChild(i)}}};return e.result=!0,e.innerHTMLMatch=n,e}if(n.contains("catalog-tree-search")){let n={oldValue:i,isScriptAction:!0,scriptFunction:(e,n)=>{for(let e=0;e<t.childNodes.length;e++){let n=t.childNodes[e];if("INPUT"===n.tagName){if(!n.getAttribute("oldplaceholderValue")){let t=n.getAttribute("placeholder");t&&(t=`$L{${t}}`),n.setAttribute("placeholder",t)}}}}};return e.result=!0,e.innerHTMLMatch=n,e}return e};function Ce(t,e){const n=document.createElement("div");n.innerHTML=t;return n.childNodes[e].textContent}const ke=t=>{const e={result:!1,innerHTMLMatch:null};if("BUTTON"===t.tagName||"P"===t.tagName){let n=t.innerHTML,r=t.getAttribute("oldValue");r||(r=n);let i=!!De(r),o=(e,n)=>{let r=[];for(let i=0;i<t.childNodes.length;i++){let o=t.childNodes[i];if(o.nodeType===Node.TEXT_NODE){let a=t.getAttribute("oldValue");const s=/\$L\{([^}]+)\}/g;if(De(a)){let t,o=Ce(a,i);for(;null!==(t=s.exec(a));){const r=t[0],i=t[1],a=Ae(i,e,n);o=o.replace(r,a)}let u=document.createTextNode(o);r.push(u)}else r.push(o)}else r.push(o)}t.innerHTML="",r.forEach(e=>{t.appendChild(e)})},a={oldValue:r,isScriptAction:!0,scriptFunction:o};return e.result=i,e.innerHTMLMatch=a,e}return e};function Se(t){const e=t.trim().toLowerCase(),n={mon:"周一",monday:"周一",mondays:"周一",tue:"周二",tues:"周二",tuesday:"周二",tuesdays:"周二",wed:"周三",wednesday:"周三",wednesdays:"周三",thu:"周四",thur:"周四",thurs:"周四",thursday:"周四",thursdays:"周四",fri:"周五",friday:"周五",fridays:"周五",sat:"周六",saturday:"周六",saturdays:"周六",sun:"周日",sunday:"周日",sundays:"周日"};if(!/^(mon(day)?s?\.?|tue(sday)?s?\.?|wed(nesday)?s?\.?|thu(r(sday)?)?s?\.?|fri(day)?s?\.?|sat(urday)?s?\.?|sun(day)?s?\.?)$/i.test(e))return"未知日期";const r=e.replace(/\./g,"").replace(/s$/,"");return n[r.startsWith("thu")?"thu":r.slice(0,3)]||n[r]||"未知日期"}function Ne(t){const e=/(?:(\b(0?[1-9]|[12]\d|3[01])\b)(?=日))|(\b(0?[1-9]|[12]\d|3[01])\b)/g,n=[];let r;for(;null!==(r=e.exec(t));){const t=r[2]||r[4];if(t){const e=parseInt(t,10);e>=1&&e<=31&&n.push(e)}}return n}function Ee(t){const e=[];return[/Other\s+(\d+)\s+pieces of data/gi,/其他\s+(\d+)\s+条记录/g].forEach(n=>{let r;for(;null!==(r=n.exec(t));){const t=parseInt(r[1],10);e.push({scenario:r[0],number:t,type:n.source.includes("Other")?"English":"Chinese"})}}),e}const Le=t=>{const e={result:!1,innerHTMLMatch:null},n=t.classList;if(!n)return e;if(n.contains("fc-toolbar-title")){let n=(e,n)=>{let r=function(t){const e=t.matchAll(/(\d{4})年(0?[1-9]|1[0-2])月/g),n=[];for(const t of e){const e=parseInt(t[1],10),r=parseInt(t[2],10);n.push({year:e,month:r})}return n}(t.getAttribute("oldValue"));if(r.length>0){let e=r[0],n=e.year,i=e.month,o=`${n}/${i}`;"zh-CN"===(window.localStorage.getItem("iportal_localID")||"zh-CN")&&(o=`${n}年${i}月`),t.innerHTML=o}},r=t.innerHTML;if(/^\d{4}年(0?[1-9]|1[0-2])月$/.test(r)){let t={oldValue:r,isScriptAction:!0,scriptFunction:n};return e.result=!0,e.innerHTMLMatch=t,e}}if(n.contains("fc-today-button")){let n=t.innerHTML;if(n.includes("今天")||n.includes("today")){let t={oldValue:"$L{今天}"};return e.result=!0,e.innerHTMLMatch=t,e}}if(n.contains("fullCalendar_title_value")){let n=t.innerHTML;const r=/周[一二三四五六日]/,i=/^(mon(day)?s?\.?|tue(sday)?s?\.?|wed(nesday)?s?\.?|thu(r(sday)?)?s?\.?|fri(day)?s?\.?|sat(urday)?s?\.?|sun(day)?s?\.?)$/i;let o=n.match(r);if(o){let t={oldValue:`$L{${o[0]}}`};return e.result=!0,e.innerHTMLMatch=t,e}if(o=n.match(i),o){let t={oldValue:`$L{${Se(o[0])}}`};return e.result=!0,e.innerHTMLMatch=t,e}}if(n.contains("fc-daygrid-day-number")){let n=(e,n)=>{let r=Ne(t.getAttribute("oldValue"));if(r&&r.length>0){let e=r[0],n=`${e}`;"zh-CN"===(window.localStorage.getItem("iportal_localID")||"zh-CN")&&(n=`${e}日`),t.innerHTML=n}},r=t.innerHTML;if(Ne(r).length>0){let t={oldValue:r,isScriptAction:!0,scriptFunction:n};return e.result=!0,e.innerHTMLMatch=t,e}}if(n.contains("fc-daygrid-more-link")){let n=(e,n)=>{let r=Ee(t.getAttribute("oldValue"));if(r&&r.length>0){let i=r[0].number,o="另外${X}条数据";o=Ae(o,e,n),o=o.replace("${X}",i),t.innerHTML=o}},r=t.innerHTML;if(Ee(r).length>0){let t={oldValue:r,isScriptAction:!0,scriptFunction:n};return e.result=!0,e.innerHTMLMatch=t,e}}if(n.contains("fc-popover-title")){const n=/(\d{4})年(\d{1,2})月(\d{1,2})日/g;let r=(e,r)=>{let i=t.getAttribute("oldValue");if(i.match(n)){const e=i.replace(n,function(t,e,n,r){const i=n.padStart(2,"0"),o=r.padStart(2,"0");let a=`${e}/${i}/${o}`;return"zh-CN"===(window.localStorage.getItem("iportal_localID")||"zh-CN")&&(a=`${e}年${i}月${o}日`),a});t.innerHTML=e}},i=t.innerHTML,o=i.match(n);if(o&&o.length>0){let t={oldValue:i,isScriptAction:!0,scriptFunction:r};return e.result=!0,e.innerHTMLMatch=t,e}}return e},Oe=t=>{const e={result:!1,innerHTMLMatch:null},n=t.classList;if(!n)return e;if(t.getAttribute("oldValue"),n.contains("ant-modal-title")){let n=t.innerHTML;if(n.includes("Select Data")||n.includes("选择数据")){let t={oldValue:"$L{选择数据}"};return e.result=!0,e.innerHTMLMatch=t,e}}return e},Pe=t=>{const e={result:!1},n=t.classList;if(!n)return e;if("DIV"===t.tagName&&n.contains("template-block")){let n=(e,n)=>{let r,i,o,a,s=t.parentNode;s&&"DIV"===s.tagName&&(r=s.parentNode,r&&"DIV"===r.tagName&&(i=r.parentNode,i&&"DIV"===i.tagName&&i.classList.contains("application-block")&&(o=i.parentNode,o&&"DIV"===o.tagName&&o.classList.contains("componentDiv")&&(a=o.parentNode,a&&"DIV"===a.tagName&&a.classList.contains("render-all-blocks")&&(a.style.height="100%",o.style.height="100%",i.style.height="100%",r.style.height="100%",s.style.height="100%",t.style.height="100%",t.setAttribute("viewDomID",`rjview_${Date.now()}`))))))};return e.result=!0,e.scriptFunction=n,e}return e};function je(t){let e=g(),n=window.localStorage.getItem("iportal_localID")||"zh-CN";return Ae(t,e,n)}function $e(t){return t&&t.children?.length>0}function Re(t){if(!t)return!1;if(t&&t.nodeType!==Node.ELEMENT_NODE)return!1;const e=$e(t);if(e){let e=t.children;for(let t=0;t<e.length;t++){let n=e[t];if(n.nodeType===Node.ELEMENT_NODE){let t=n.getAttribute("localDomID");t&&window.i18nElementsMap&&!window.i18nElementsMap.has(t)&&Be(n)}Re(e[t])}}let n=null;const r=(t=>{const e={result:!1,innerHTMLMatch:null};if(!t)return e;const n=["placeholder","title"];for(let r=0;r<n.length;r++){let i=n[r],o=t.getAttribute(i)||t[i];o&&De(o)&&(t.setAttribute(`old${i}Value`,o),e.result=!0)}return e.scriptFunction=(e,r)=>{for(let i=0;i<n.length;i++){let o=n[i];const a=t.getAttribute(`old${o}Value`);if(a){const n=/\$L\{([^}]+)\}/g;let i,s=a;for(;null!==(i=n.exec(a));){const t=i[0],n=i[1],o=Ae(n,e,r);s=s.replace(t,o)}t.setAttribute(o,s)}}},e})(t);r.result&&console.log("检查到属性匹配元素:",t);const i=function(t){let e=[Te,Me,Le,Oe,ke];for(let n=0;n<e.length;n++){let r=(0,e[n])(t);if(r.result)return r}return{result:!1,innerHTMLMatch:null}}(t);if(i.result)n=i.innerHTMLMatch,t.setAttribute("oldValue",n.oldValue);else if(!e){let e=t.innerHTML,r=De(e);r?n=r:(e=t.getAttribute("oldValue"),e||(e=t.innerHTML),n=De(e)),n&&t.setAttribute("oldValue",e)}if(!n&&!i.result&&!r.result)return!1;let o=t.getAttribute("localDomID");return!o&&(window.idCounter=window.idCounter||0,o=`i18n_${Date.now()}_${window.idCounter++}`,t.setAttribute("localDomID",o),window.i18nElementsMap||(window.i18nElementsMap=new Map),window.i18nElementsMap.set(o,{dom:t,id:o,isScriptAction:n&&n.isScriptAction||!1,scriptFunction:n&&n.scriptFunction||null,isAttibuteAction:r.result,attrFunction:r.scriptFunction||null}),Ue(t),!0)}function Be(t){if(t&&1!==t.nodeType)return;if($e(t)){let e=t.children;for(let t=0;t<e.length;t++)Be(e[t])}const e=t.getAttribute("localDomID");e&&t.removeAttribute("localDomID"),e&&window.i18nElementsMap.has(e)&&window.i18nElementsMap.delete(e)}const Ue=async t=>{if(!t.parentNode)return Be(t),void console.log("元素已无父节点,移除缓存");let e=window.localStorage.getItem("iportal_localID")||"zh-CN",r=g();const i=t.getAttribute("localDomID"),o=window.i18nElementsMap.get(i);if(o)if(o.isAttibuteAction&&o.attrFunction(r,e),o.isScriptAction)o.scriptFunction(r,e);else{const i=t.getAttribute("oldValue");if(i){const o=/\$L\{([^}]+)\}/g;let a,s=i;for(;null!==(a=o.exec(i));){const t=a[0],n=a[1],i=Ae(n,r,e);s=s.replace(t,i)}n.nextTick(()=>{t.innerHTML=s})}}};function Ve(t){if(!t)return!1;if(t&&t.nodeType!==Node.ELEMENT_NODE)return!1;if($e(t)){let e=t.children;for(let t=0;t<e.length;t++){Ve(e[t])}}if(t.getAttribute("viewDomID"))return!1;const e=Pe(t);return!!e.result&&(e.scriptFunction(),!0)}const ze=async t=>{let e=await h.get(`/system/authority/logout?isMobileLogout=${t}`),n=JSON.parse(e.request.response),r=n.code;return"10110020"==r?(window.sessionStorage.clear(),{code:r,message:je(n.message)}):{code:r,message:je(n.message)}},He=async t=>{let n=await Ke();return e.AES.decrypt(t,n).toString(e.enc.Utf8)},We=async t=>{let n=await Ke();return e.AES.encrypt(t,n).toString()},Fe=async(t,e)=>{let n=await We(t.password),r={param:{account_view:t.account_view,groupid:t.groupid,password:n,account:t.account,appid:e}},i=await h.post("/ext/loginAccount",JSON.stringify(r)),o=i.data.code,a=i.data.key_code,s=i.data.old_code,u=i.data.id,c=i.data.message;if(10110004==o){a=await He(a),a=window.appSdk.Encrypt(a),r.param.password=a,i=await h.post(`/system/authority/loginAccount4Application?authPicCode=${t.imageCode}&dataappId=${e}&mobileOrWeb=web`,r.param);let n=JSON.parse(i.request.response);if(o=n.code,c=n.message,10110004==o){let n=u;const r=(new xe).getBrowser();let i=(new Date).getTime(),a=r.name+"_"+r.version+"_"+i;return window.sessionStorage.setItem("iportal_login_user_id",n),window.sessionStorage.setItem("iportal_group_id",t.groupid),window.sessionStorage.setItem("iportal_login_user_key",s),window.sessionStorage.setItem("iportal_client_id",a),window.sessionStorage.setItem("iportal_app_id",e),{code:o,message:je(c)}}return{code:o,message:je(c)}}return{code:o,message:je(c)}},Ke=async()=>(await h.post("/dataservice/rest/orchestration/getViewKey",{param:{}})).data.key,Ge=t=>{try{return new URL(t).pathname.split("/").pop()||"downloaded_file"}catch(t){return"downloaded_file"}},qe=async t=>{try{const e=await fetch(t,{method:"GET",headers:{Range:"bytes=0-0"}});if(206!==e.status)throw new Error("不支持 Range 请求");const n=e.headers.get("Content-Range"),r=n?.match(/\/(\d+)$/)?.[1];return r?parseInt(r,10):-1}catch(t){return console.error("获取文件大小失败:",t),-1}},Xe=(t,e)=>{window.sdataEventActions||(window.sdataEventActions={}),window.sdataEventActions[t]=e},Je=async(t,e,n,r,i)=>{let o=`${n}_${(new Date).getTime()}_${Math.floor(1e4*Math.random())+1}`;Xe(o,i);let a={eventOperateKey:o,eventKey:n,data:r};t.postMessage(a,e)};exports.ChatClientMgr=class{constructor(t,e){this.handler=e,this.actionKey=t.actionKey,this.appSKID=t.appSKID,this.imType=t.imType,this.groupID=t.groupID,this.userID=t.userID,this.chatType=t.chatType||0,this.singleChatID=t.singleChatID||"",this.customParams=t.customParams||{},this.chartOrigin=t.chartOrigin}makeKey(t){return`${t}-${this.actionKey}`}async init(){this.handler.addChatListener(this.makeKey("sdata_get_access_token"),async t=>await this.handler.getPortalAccessToken(t)),this.handler.addChatListener(this.makeKey("sdata_get_portal_user_info"),async t=>await this.handler.getPortalUserInfo(t)),this.handler.addChatListener(this.makeKey("sdata_get_portal_user_sig"),async t=>{let e=t.userID,n=t.im_type,r=t.group_id;return await this.handler.getPortalUserSig(e,n,r)}),this.handler.addChatListener(this.makeKey("sdata_add_im_mapping"),async t=>{let e=t.userID,n=t.im_type,r=t.userSig;return await this.handler.addIMMapping(e,n,r,this.groupID)}),this.handler.addChatListener(this.makeKey("sdata_update_im_mapping"),async t=>await this.handler.updateIMMapping(t)),this.handler.addChatListener(this.makeKey("sdata_get_users_by_group_id"),async t=>await this.handler.getAllUserInfosByGroupID(t)),this.handler.addChatListener(this.makeKey("sdata_get_dpts_by_group_id"),async t=>await this.handler.getChildrenOfficeInfosByID(t)),this.handler.addChatListener(this.makeKey("sdata_get_project_dpts_by_user_group_id"),async t=>await this.handler.getPojectDptsByUserAndGroupID(t)),this.handler.addChatListener(this.makeKey("sdata_get_ai_robot_infos"),async t=>{let e=t.groupID,n=t.userID;return this.userID==n&&this.groupID==e?this.getAIRobotInfos():[]}),this.handler.addChatListener(this.makeKey("sdata_get_test_user_sig"),async t=>{let e=t.SDKAppID,n=t.userID;return(await this.handler.genTestUserSig({SDKAppID:e,userID:n})).userSig}),this.handler.addChatListener(this.makeKey("sdata_send_message_to_chat_server"),async(t,e)=>{let n=t.message,r=n.from;return await this.sendMessageToChatServer(r,n)}),this.handler.addChatListener(this.makeKey("sdata_close_frame_window"),async(t,e)=>this.handler.closeWindow()),this.handler.addChatListener(this.makeKey("sdata_get_portal_doc_info"),async(t,e)=>this.handler.getPortalDocmentInfo(t)),this.handler.addChatListener(this.makeKey("sdata_chat_aiAgent_event"),async(t,e)=>this.handler.onAIAgentEvent(t,e)),this.handler.addChatListener(this.makeKey("sdata_alllife_event_regist"),async(t,e)=>{console.log("recive chat regist event data:",t),this.appSKID=t.appid,this.imType=t.im_type,await this.initChatAIs();let n={type:this.getChatTypeKey(this.chatType),singleChatID:this.singleChatID,customParams:this.customParams};this.handler.fireEventToChatWindow(e,this.chartOrigin,this.makeKey("sdata_alllife_initChat"),n,t=>{t&&(console.log("chat init finished:",t),this.handler.onChatInitFinished())})})}getChatTypeKey(t){switch(t){case 0:default:return"IM_MULTIPLE_MODE";case 1:return"IM_SINGLE_MODE";case 2:return"IM_EMBED_MODE";case 3:return"IM_MOBILE_MULTIPLE_EMBED_MODE";case 4:return"IM_MOBILE_SINGLE_EMBED_MODE"}}async initChatAIs(){if(window.imClient)this.chatAIClient=window.imClient;else{let t=await this.handler.getChatClientClasses();const{TencentCloudChat:e,TIMUploadPlugin:n}=t;window.imClient=e.create({SDKAppID:this.appSKID,storage:{enable:!0}}),window.imClient.registerPlugin({"tim-upload-plugin":n}),window.imClient.on(e.EVENT.SDK_READY,this.onChatAIReady.bind(this)),window.imClient.charAIs={},this.chatAIClient=window.imClient}this.chatAIClient.charAIs||(this.chatAIClient.charAIs={});let t=await this.handler.getAIRobotInfos(this.userID,this.groupID);t&&t.length>0&&t.forEach(async t=>{let e=t.id;if(!this.chatAIClient.charAIs[e]){t.chatID=e;let n=await this.handler.getPortalUserSig(e,this.imType,this.groupID);n||(n=await this.generateUserSigAndAdd(e)),t.userSig=n,this.chatAIClient.charAIs[e]={robot:t,messageCache:[]}}})}async generateUserSigAndUpdate(t){let e=(await this.handler.genTestUserSig({SDKAppID:this.appSKID,userID:t})).userSig;if(e){await this.chatAIClient.login({userID:t,userSig:e}),await this.chatAIClient.logout();let n={userID:t,userSig:e,im_type:this.imType,group_id:this.groupID};await this.handler.updateIMMapping(n)}return e}async generateUserSigAndAdd(t){let e=(await this.handler.genTestUserSig({SDKAppID:this.appSKID,userID:t})).userSig;return e&&(await this.chatAIClient.login({userID:t,userSig:e}),await this.chatAIClient.logout(),await this.handler.addIMMapping(t,this.imType,e,this.groupID)),e}onChatAIReady(t){let e=this.chatAIClient.lastRobotID,n=this.getAIRobotInfoByID(e);if(console.log(`[AI chat] ${n.name}已经就绪:`,t),this.chatAIClient){let t=this.getAIRobotCacheMessagesByID(e);if(console.log(`[AI chat] ${n.name}就绪后查到的缓存信息:`,t),console.log(`[AI chat] ${n.name}所有信息仓:`,this.chatAIClient.charAIs),t&&t.length>0){const r=[...t];t.splice(0,t.length),r.forEach(t=>{console.log(`[AI chat] ${n.name}发送缓存消息:`,t),this.sendMessageToChatServer(e,t)})}}}getAIRobotInfos(){let t=[];for(let e in this.chatAIClient.charAIs)t.push(this.chatAIClient.charAIs[e].robot);return t}getAIRobotInfoByID(t){return this.chatAIClient.charAIs[t]?this.chatAIClient.charAIs[t].robot:null}getAIRobotCacheMessagesByID(t){return this.chatAIClient.charAIs[t]?this.chatAIClient.charAIs[t].messageCache:[]}async sendMessageToChatServer(t,e){let n=this.getAIRobotInfoByID(t);if(this.chatAIClient.lastRobotID!=t){console.log(`[AI chat]需要新机器人回答,切换到新机器人${n.name}`),this.chatAIClient.lastRobotID&&await this.chatAIClient.logout();try{await this.chatAIClient.login({userID:t,userSig:n.userSig})}catch(r){if(console.log(`[AI chat]${n.name}登录失败`,r),70001==r.code){console.log(`[AI chat]${n.name}UserSig过期,重新生成userSig`);let r=await this.generateUserSigAndUpdate(t);try{return await this.chatAIClient.login({userID:t,userSig:r}),void this.sendMessageToChatServer(t,e)}catch(t){return void console.log(`[AI chat]${n.name}重新登录失败`,t)}}}}if(this.chatAIClient.lastRobotID=t,this.chatAIClient&&this.chatAIClient.isReady()){let t=await this.chatAIClient.createTextMessage(e);this.chatAIClient.sendMessage(t).then(t=>{console.log(`[AI chat]${n.name}发送信息成功`,t)},t=>{console.log(`[AI chat]${n.name}发送失败`,t)})}else{let r=this.getAIRobotCacheMessagesByID(t);r.push(e),console.log(`[AI chat]${n.name}未就绪,缓存后消息:`,r)}}converToAIServerParams(t,e,n){let r="";if("TIMTextElem"===t.type)r=t.payload?.text||"";let i=(t.cloudCustomData||{}).conversation_id||"";return{prompt:r,params:n||{},robotKey:e.password,conversation_id:i||"",userID:t.from||""}}abort(){this.chatAIClient=null}},exports.addEventAction=Xe,exports.addIMMapping=S,exports.addObjTipMapping=(t,e,n)=>{let r={param:{sourceID:t,tipID:e,groupID:n}};return h.post("/dataservice/rest/orchestration/addObjTipMapping",r).data.operatorResult||{}},exports.addObjectUsedTimes=t=>{let e={param:{operateData:t}};return h.post("/dataservice/rest/orchestration/addObjectUsedTimes",e)},exports.addTipObject=t=>{let e={param:{tipInfo:t}};return h.post("/dataservice/rest/orchestration/addTipObject",e).data.operateResult||{}},exports.addWindowTrustedOrigin=t=>{let e=window.SDATA_WINDOW_TRUSTED_ORIGINS;e||(window.SDATA_WINDOW_TRUSTED_ORIGINS=[]),e.includes(t)||e.push(t)},exports.checkTextFormat=De,exports.createFileFromUrl=async(t,e)=>{try{const n=await fetch(t);if(!n.ok)throw new Error(`网络请求失败: ${n.status} ${n.statusText}`);const r=await n.blob(),i=e||Ge(t);return new File([r],i,{type:r.type,lastModified:Date.now()})}catch(t){throw console.error("创建 File 失败:",t),t}},exports.createRegistApply=async t=>{let e={param:{registInfo:t}};return(await h.post("/dataservice/rest/orchestration/createRegistApply",e)).data.operateResult},exports.destroyEventCenter=()=>{window.rjEventCenter&&(window.rjEventCenter.clearAll(),window.rjEventCenter=null,console.log(`事件中心已清理:时间戳: ${(new Date).toLocaleString()}`))},exports.doRestPost=async(t,e)=>await h.post(t,e),exports.extractFilenameFromUrl=Ge,exports.extractNewItems=(t,e)=>t.filter(t=>!e.includes(t)),exports.findClosestAncestorByClass=(t,e)=>{let n=t;for(;n;){if(n.classList&&n.classList.contains(e))return n;n=n.parentElement}return null},exports.fireEvent=(t,e)=>{let n=window.rjEventCenter;e.eventKey=t,n&&n.fireEvent&&n.fireEvent(t,e)},exports.getAIRobotInfos=N,exports.getAPPInfosByID=async t=>{let e={param:{id:t}};return(await h.post("/dataservice/rest/orchestration/getAPPInfosByID",e)).data.appInfo},exports.getAccountCountByName=async t=>{let e={param:{accountName:t}};return(await h.post("/dataservice/rest/orchestration/getAccountCountByName",e)).data.count},exports.getAllI18nTypes=async()=>(await h.post("/dataservice/rest/orchestration/getAllI18nTypes",{param:{}})).data.resultDatas,exports.getAllUserInfosByGroupID=M,exports.getAppCustomData=L,exports.getAppPortalMenuDatas=async(t,e,n,r)=>{let i=g(),o=await _(t,i,e),a=await w(e,o),s=window.appSdk.getAppId();return a.filter(t=>{if(n)return!0;if(t.app_id==i)return!0;{let e=t.children,n=!1;return e&&e.length>0&&e.forEach(t=>{let e=t.children;if(e&&e.length>0){let t=e.filter(t=>t.app_id===s);t&&t.length>0&&(n=!0)}}),n}})},exports.getAuthPic=()=>h.get("/system/authority/getAuthPic?module=loginPassword",{responseType:"arraybuffer"}),exports.getChildrenOfficeInfosByID=C,exports.getClientIp=async()=>{let t=await h.post("/ext/getClientIp"),e=t?.data?.clientIp;return e},exports.getCurrentAppID=v,exports.getCurrentUserPortalMapping=async t=>{let e={param:{userData:t}};return(await h.post("/dataservice/rest/orchestration/getPortalMappingInfo",e)).data.portal_info},exports.getCurrentUserPortalPageID=async t=>{let e={param:{userData:t}};return(await h.post("/dataservice/rest/orchestration/getPortalPageID",e)).data.portal_id},exports.getDifyFileType=t=>({DOCX:"document",TXT:"document",MD:"document",MARKDOWN:"document",MDX:"document",PDF:"document",HTML:"document",XLSX:"document",XLS:"document",VTT:"document",DOC:"document",CSV:"document",EML:"document",MSG:"document",PPTX:"document",PPT:"document",XML:"document",EPUB:"document",JPG:"image",JPEG:"image",PNG:"image",GIF:"image",WEBP:"image",MP3:"audio",M4A:"audio",WAV:"audio",WEBM:"audio",MPGA:"audio",MP4:"video",MOV:"video",MPEG:"video"}[t.toUpperCase()]||"custom"),exports.getFileSize=qe,exports.getGourpMappingsByPhoneNumber=async t=>{let e={param:{phone:t}};return(await h.post("/dataservice/rest/orchestration/getGourpMappingsByPhoneNumber",e)).data.resultGroups},exports.getGroupMappingsByAccount=async t=>{let e={param:{account:t}};return(await h.post("/dataservice/rest/orchestration/getGourpMappingsByAccountName",e)).data.resultGroups},exports.getI18nKey=t=>{let e=/\$L\{([^}]+)\}/g.exec(t);return e?e[1]:t},exports.getIMHanlder=t=>{let e={genTestUserSig:async t=>{},getChatClientClasses:async()=>[],getAIRobotInfos:async(t,e)=>N(t,e),getPortalUserSig:async(t,e,n)=>D(t,e,n),addIMMapping:async(t,e,n,r)=>S(t,e,r,n),updateIMMapping:async t=>{let e=t.userID,n=t.im_type,r=t.group_id,i=t.userSig;return E(e,n,r,i)},getPortalAccessToken:async t=>{let e=t.appKey,n=t.appSecret;return x(e,n)},getPortalUserInfo:async t=>{let e=t.code,n=t.access_token;return A(e,n)},getAllUserInfosByGroupID:async t=>{let e=t.groupID;return M(e)},getChildrenOfficeInfosByID:async t=>{let e=t.groupID;return C(e)},getPojectDptsByUserAndGroupID:async t=>{let e=t.groupID,n=t.userID;return k(n,e)},closeWindow:()=>!0,addChatListener:async(t,e)=>{await Xe(t,e)},fireEventToChatWindow:async(t,e,n,r,i)=>{await Je(t.source,e,n,r,i)},onChatInitFinished:async()=>{},onAIAgentEvent:async(t,e)=>{},getPortalDocmentInfo:async t=>{let e=t.kb_doc_id,n=await m(e),r=n?.summary;if(r){let t=JSON.parse(r);if(t){let e=t[0].url,r=`${window.smardaten_api_context_path}/storage_area/public${e}`,i=await qe(r);n.fileSize=i}}return n}};return e={...e,...t},e},exports.getIntegrateAppInfoByID=async t=>{let e={param:{appID:t}};return(await h.post("/dataservice/rest/orchestration/getIntegrateAppInfoByID",e)).data.appInfo},exports.getLanguages=async t=>{let e={param:{appID:t}};return(await h.post("/dataservice/rest/orchestration/getAppLanguages",e)).data.resultDatas||[]},exports.getLoginPageNotices=async t=>{let e={param:{id:"1005",groupID:t}};return(await h.post("/dataservice/rest/orchestration/getNoticeInfosByAppTypeID",e)).data.resultDatas},exports.getMappingAppInfoByID=async(t,e)=>{let n={param:{appID:t,groupID:e}};return(await h.post("/dataservice/rest/orchestration/getPortalMappingAppInfoByID",n)).data.appInfo},exports.getMenuDatasByGroupID=w,exports.getMenuMappingDatasByRoleIDs=y,exports.getObjectUseTimes=t=>{let e={param:{objectInfo:t}};return h.post("/dataservice/rest/orchestration/getObjectUseTimes",e)},exports.getOfficeInfosByIDs=async t=>{let e={param:{ids:t}};return(await h.post("/dataservice/rest/orchestration/getOfficeInfosByIDs",e)).data.officeInfos},exports.getPageIDByComponentID=async t=>{let e={param:{componentID:t}};return(await h.post("/dataservice/rest/orchestration/getPageIDByComponentID",e)).data.page_id},exports.getPhoneNumberByAccountName=async(t,e)=>{let n={param:{accountName:t,groupID:e}};return(await h.post("/dataservice/rest/orchestration/getPhoneNumberByAccountName",n)).data.phone},exports.getPlatformBortherMenusByMenuID=async(t,e,n)=>{let r={param:{menu_id:t}},i=(await h.post("/dataservice/rest/orchestration/getPlatformBortherMenusByMenuID",r)).data.menuDatas||[],o=await b(e,n),a={};for(const t of o){a[t.menu_id]=t}let s={};for(const t of i){let e=t.id;if((1!==t.leaf_flag||a[e])&&!s[e]){let n="el-icon-menu",r={id:t.id,index:t.id,name:t.name,isSys:!0,iconClass:n,actionType:t.action_type||"1",app_id:t.datapp_id,menu_id:t.id,url:t.url||"",children:t.children||[],sort:t.sort||0};s[e]=r}}for(const t of i){let e=t.parent_id;if(!e)continue;let n=s[e];if(n){let e=s[t.id];if(!e)continue;n.children.push(e)}}let u=[];for(const t in s){let e=s[t];if(e.children&&e.children.length>0){u.push(e),e.children.sort((t,e)=>Number.isNaN(t.sort)?1:Number.isNaN(e.sort)?-1:t.sort-e.sort)}}if(0==u.length)for(const t in s){let e=s[t];e&&u.push(e)}return u.sort((t,e)=>Number.isNaN(t.sort)?1:Number.isNaN(e.sort)?-1:t.sort-e.sort),u},exports.getPlatformMenuMappingsByRoleIDs=b,exports.getPojectDptsByUserAndGroupID=k,exports.getPoratlAppID=g,exports.getPortalAccessToken=x,exports.getPortalAppCustomConfig=async t=>{let e={param:{groupID:t}};return(await h.post("/dataservice/rest/orchestration/getPortalAppCustomConfig",e)).data.configInfo},exports.getPortalDocmentInfo=m,exports.getPortalInfosByID=async t=>{let e={param:{id:t}};return(await h.post("/dataservice/rest/orchestration/getPortalInfosByID",e)).data.portalInfo},exports.getPortalNotices=async t=>{let e={param:{id:t}};return await h.post("/dataservice/rest/orchestration/getNoticesInfosByGroupID",e)},exports.getPortalPageConfig=async t=>{let e={param:{id:t}};return(await h.post("/dataservice/rest/orchestration/getPortalPageConfig",e)).data.portal_page_config||"[]"},exports.getPortalPageMenuID=async(t,e)=>{let n={param:{id:t,appid:e}};return(await h.post("/dataservice/rest/orchestration/getPortalPageMenuID",n)).data.menu_id},exports.getPortalUserInfo=A,exports.getPortalUserMappingInfos=async t=>{let e={param:{operateData:t}};return(await h.post("/dataservice/rest/orchestration/getPortalUserMappingInfos",e)).data.portalMapping},exports.getPortalUserSig=D,exports.getRobotInfoByID=async(t,e)=>{let n={param:{id:t,groupID:e}};return(await h.post("/dataservice/rest/orchestration/getRobotInfoByID",n)).data.robotInfo},exports.getRoleIDsByUserAndGroupID=_,exports.getTenetInfoByName=async t=>{let e={param:{name:t}};return(await h.post("/dataservice/rest/orchestration/getTenetInfoByName",e)).data.resultDatas},exports.getThirdAppPathByKey=async(t,e,n)=>{let r={param:{appKey:t,appSecret:e,groupID:n}};return(await h.post("/dataservice/rest/orchestration/getThirdAppPathByKey",r)).data.path},exports.getUrlParamValue=(t,e)=>{try{const n=new URL(t).searchParams.get(e);return n&&-1!==n.indexOf("#")?n.split("#")[0]:n}catch(t){return console.error("URL 格式错误:",t),""}},exports.getUserAllMappngPortal=t=>{let e={param:{userData:t}};return h.post("/dataservice/rest/orchestration/getUserAllMappngPortal",e)},exports.getViewKey=Ke,exports.hasListener=t=>{let e=window.rjEventCenter;return!(!e||!e.hasListener)&&e.hasListener(t)},exports.hasUrlParams=t=>{try{return new URL(t,window.location.href).search.length>0}catch(t){return!1}},exports.i18n=Ae,exports.i18nText=je,exports.initDomNodeI18NObserver=()=>{window.i18nElementsMap?window.i18nElementsMap.clear():window.i18nElementsMap=new Map,u("IPORTAL_LANGUAGE_CHANGE_EVENT",async t=>{console.log("语言切换事件触发,更新已处理元素的翻译:",t);for(const[t,e]of window.i18nElementsMap.entries())Ue(e.dom)});const t=new MutationObserver(t=>{t.forEach(t=>{if("childList"===t.type){if(t.addedNodes.length>0)for(let e=0;e<t.addedNodes.length;e++){let n=t.addedNodes[e];n.nodeType===Node.TEXT_NODE&&(n=n.parentNode),Re(n)}if(t.removedNodes.length>0)for(let e=0;e<t.removedNodes.length;e++){Be(t.removedNodes[e])}}else if("characterData"===t.type){const e=t.oldValue,n=t.target,r=n.data;console.log(`文本修改: ${e} → ${r}`);const i=n.parentNode;if(i){i.getAttribute("localDomID")&&Be(i)}Re(i)}})}),e=document.body;Re(e),t.observe(e,{childList:!0,subtree:!0,attributes:!1,characterData:!0,characterDataOldValue:!0})},exports.initDomNodeViewObserver=()=>{const t=new MutationObserver(t=>{t.forEach(t=>{if("childList"===t.type&&t.addedNodes.length>0)for(let e=0;e<t.addedNodes.length;e++){Ve(t.addedNodes[e])}})}),e=document.body;Ve(e),t.observe(e,{childList:!0,subtree:!0,attributes:!1,characterData:!0,characterDataOldValue:!0})},exports.initEventCenter=c,exports.initFrameWindowListener=()=>{if(window.isFrameWindowInited)return;window.SDATA_WINDOW_TRUSTED_ORIGINS||(window.SDATA_WINDOW_TRUSTED_ORIGINS=[]),window.sdataEventActions||(window.sdataEventActions={}),window.addEventListener("message",async t=>{if(!window.SDATA_WINDOW_TRUSTED_ORIGINS.some(e=>t.origin===e||new RegExp(e).test(t.origin)))return void console.log("拒绝非可信源消息:",t.origin);let e=t.data?.eventKey;if(!e)return;let n=t.origin;if(console.log(`收到${n}页面消息:`,t.data),"sdata_alllife_event_response"===e){let e=t.data.eventOperateKey,n=window.sdataEventActions[e];delete window.sdataEventActions[e],n&&await n(t.data.data,t)}else{let r=window.sdataEventActions[e],i={eventKey:"sdata_alllife_event_response",eventOperateKey:t.data.eventOperateKey,data:{}};if(r){let e=await r(t.data.data,t);i.data=e}t.source.postMessage(i,n)}}),window.isFrameWindowInited=!0},exports.isSMSCodeValidate=async(t,e,n,r)=>{let i={param:{smsCode:t,sms_service_name_type:e,beyond_type_id:n,account_id:r}};return(await h.post("/ext/validateSMSCode",JSON.stringify(i))).data},exports.isSecurityAccount=async(t,e)=>{let n={param:{account_name:t,group_id:e}};return(await h.post("/dataservice/rest/orchestration/isSecurityAccount",n)).data.isSecurityAccount},exports.loadi18nTexts=async t=>{let e={param:{appID:t}},n=(await h.post("/dataservice/rest/orchestration/getAllTexts",e)).data.resultDatas||[];window.customI18nObject=new Map;for(let e of n)window.customI18nObject.set(`${t}-${e.key}-${e.lang}`,e.value)},exports.loginAccount=Fe,exports.logoutAccount=ze,exports.processElement=Re,exports.processViewElement=Ve,exports.queryAndStoreAppVariable=(t,e)=>{let n=window.sessionStorage.getItem("isdata_app_variable_"+t);return n||(n=T(t,e),n&&window.sessionStorage.setItem("isdata_app_variable_"+t,n)),n},exports.queryAppVariable=T,exports.queryAssetById=(t,e=200)=>h.post(`/asset/getAssetData?asset_id=${t}&count=${e}`,{filters:[]}),exports.queryGroupIDByOfficeId=async t=>{let e={param:{id:t}};return(await h.post("/dataservice/rest/orchestration/getGroupIDByDptID",e)).data.resultDptData.id},exports.queryGroupInfosByOfficeId=async t=>{let e={param:{id:t}};return(await h.post("/dataservice/rest/orchestration/getGroupIDByDptID",e)).data.resultDptData},exports.queryOfficeInfosById=async t=>{let e={param:{id:t}};return(await h.post("/dataservice/rest/orchestration/getOfficeInfosByID",e)).data.officeData},exports.registerEventListener=u,exports.removeEventAction=t=>{window.sdataEventActions||(window.sdataEventActions={}),delete window.sdataEventActions[t]},exports.removeEventListener=(t,e)=>{let n=window.rjEventCenter;n&&n.unregister&&n.unregister(t,e)},exports.removeWindowTrustedOrigin=t=>{let e=window.SDATA_WINDOW_TRUSTED_ORIGINS;e||(window.SDATA_WINDOW_TRUSTED_ORIGINS=[]);let n=e.indexOf(t);n>-1&&e.splice(n,1)},exports.savePortalI18nText=async(t,e,n,r,i)=>{let o={param:{key:t,value:e,appID:g(),lang:n,beyondID:r,i18nType:i}};return(await h.post("/dataservice/rest/orchestration/savePortalI18nText",o)).data.resultData},exports.sendPostToAIAgent=async(t,e,n)=>{let r=g(),i=await L(r),o=i?.aiAgentServerIP||"";if(!o)return console.error("没有配置AI Agent服务地址,请联系管理员"),void(n&&n("没有配置AI Agent服务地址,请联系管理员"));let a=`${o}/addAndCleanDocument`;h.post(a,JSON.stringify(t)).then(t=>{console.log("发送消息成功:",t),e&&e(t)}).catch(t=>{console.error("发送消息失败:",t),n&&n(t)})},exports.sendSms=async(t,e,n)=>{let r={param:t};h.post("/ext/sendSms",JSON.stringify(r)).then(t=>{console.log("发送消息成功:",t),e&&e(t)}).catch(t=>{console.error("发送消息失败:",t),n&&n(t)})},exports.sendWindowMessage=Je,exports.serverDecrypt=async t=>{let e={param:{decryptStr:t}};return t=(await h.post("/ext/serverDecrypt",JSON.stringify(e))).data.decryptStr},exports.serverEncrypt=async t=>{let e={param:{encryptStr:t}};return t=(await h.post("/ext/serverEncrypt",JSON.stringify(e))).data.encryptStr},exports.setPortalPageConfig=t=>{let e={param:t};return h.post("/dataservice/rest/orchestration/setPortalPageConfig",e)},exports.switchPortalLogin=async(t,e,n)=>{let r=window.sessionStorage.getItem("iportal_login_user_key");r=await He(r),t.password=r;let i=await ze(n),o=i.code,a=i.message;if("10110020"==o){return await Fe(t,e)}return{code:o,message:je(a)}},exports.transformPortalQuickMenuDatas=(t,e)=>{e=e||[];let n=(t=t||[]).concat(e),r={},i=[];for(const t of n){let e=t.id;r[e]||(r[e]=t,i.push(t))}let o={};for(const t of i){let e=t.id,n={id:e,label:t.title,sort:t.sort,children:[],parent_id:t.parent_id,type:t.type};o[e]=n}for(const t of i){let e=o[t.id];if("5"==e.type){let t=o[e.parent_id];if(t){t.children.push(e)}}}const a=[];for(const t of i){let e=o[t.id];if("4"==e.type){a.push(e),e.children.sort((t,e)=>Number.isNaN(t.sort)?1:Number.isNaN(e.sort)?-1:t.sort-e.sort)}}return a.sort((t,e)=>Number.isNaN(t.sort)?1:Number.isNaN(e.sort)?-1:t.sort-e.sort),a},exports.transformPortalSystemMenuDatas=t=>{let e={};for(const n of t){let t=n.id,r={id:t,label:n.name,sort:n.sort,icon:n.icon,children:[],app_id:n.datapp_id,parent_id:n.parent_id,leaf_flag:n.leaf_flag};e[t]=r}for(const n of t){if(1==n.leaf_flag){let t=e[n.id],r=e[n.parent_id];if(r){r.children.push(t)}}}const n=[];for(const r of t){if(0==r.leaf_flag){let t=e[r.id];n.push(t),t.children.sort((t,e)=>Number.isNaN(t.sort)?1:Number.isNaN(e.sort)?-1:t.sort-e.sort)}}return n.sort((t,e)=>Number.isNaN(t.sort)?1:Number.isNaN(e.sort)?-1:t.sort-e.sort),n},exports.updateI18nValue=(t,e,n,r)=>{let i=`${t}-${e}-${n}`;window.customI18nObject.set(i,r)},exports.updateIMMapping=E,exports.updateUserSelectPortal=t=>{let e={param:{portalMappingData:t}};return h.post("/dataservice/rest/orchestration/updateUserSelectPortal",e)},exports.validateSSOPageLoaded=async(t,e,n)=>{let r={param:{app_id:t,appSecret:e,returnUrl:n}};return(await h.post("/dataservice/rest/orchestration/validateSSOPageLoaded",r)).data.count},exports.viewDecrypt=He,exports.viewEncrypt=We;
|
|
9
|
+
*/!function(t,e){(function(){var n,i="Expected a function",o="__lodash_hash_undefined__",a="__lodash_placeholder__",s=16,u=32,c=64,l=128,f=256,p=1/0,d=9007199254740991,h=NaN,g=4294967295,v=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",s],["flip",512],["partial",u],["partialRight",c],["rearg",f]],w="[object Arguments]",y="[object Array]",_="[object Boolean]",m="[object Date]",b="[object Error]",I="[object Function]",x="[object GeneratorFunction]",A="[object Map]",D="[object Number]",T="[object Object]",C="[object Promise]",M="[object RegExp]",k="[object Set]",S="[object String]",N="[object Symbol]",E="[object WeakMap]",L="[object ArrayBuffer]",O="[object DataView]",P="[object Float32Array]",j="[object Float64Array]",$="[object Int8Array]",R="[object Int16Array]",B="[object Int32Array]",U="[object Uint8Array]",V="[object Uint8ClampedArray]",z="[object Uint16Array]",H="[object Uint32Array]",W=/\b__p \+= '';/g,F=/\b(__p \+=) '' \+/g,K=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,X=RegExp(G.source),J=RegExp(q.source),Z=/<%-([\s\S]+?)%>/g,Y=/<%([\s\S]+?)%>/g,Q=/<%=([\s\S]+?)%>/g,tt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,et=/^\w*$/,nt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rt=/[\\^$.*+?()[\]{}|]/g,it=RegExp(rt.source),ot=/^\s+/,at=/\s/,st=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ut=/\{\n\/\* \[wrapped with (.+)\] \*/,ct=/,? & /,lt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ft=/[()=,{}\[\]\/\s]/,pt=/\\(\\)?/g,dt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ht=/\w*$/,gt=/^[-+]0x[0-9a-f]+$/i,vt=/^0b[01]+$/i,wt=/^\[object .+?Constructor\]$/,yt=/^0o[0-7]+$/i,_t=/^(?:0|[1-9]\d*)$/,mt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bt=/($^)/,It=/['\n\r\u2028\u2029\\]/g,xt="\\ud800-\\udfff",At="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Dt="\\u2700-\\u27bf",Tt="a-z\\xdf-\\xf6\\xf8-\\xff",Ct="A-Z\\xc0-\\xd6\\xd8-\\xde",Mt="\\ufe0e\\ufe0f",kt="\\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",St="['’]",Nt="["+xt+"]",Et="["+kt+"]",Lt="["+At+"]",Ot="\\d+",Pt="["+Dt+"]",jt="["+Tt+"]",$t="[^"+xt+kt+Ot+Dt+Tt+Ct+"]",Rt="\\ud83c[\\udffb-\\udfff]",Bt="[^"+xt+"]",Ut="(?:\\ud83c[\\udde6-\\uddff]){2}",Vt="[\\ud800-\\udbff][\\udc00-\\udfff]",zt="["+Ct+"]",Ht="\\u200d",Wt="(?:"+jt+"|"+$t+")",Ft="(?:"+zt+"|"+$t+")",Kt="(?:['’](?:d|ll|m|re|s|t|ve))?",Gt="(?:['’](?:D|LL|M|RE|S|T|VE))?",qt="(?:"+Lt+"|"+Rt+")"+"?",Xt="["+Mt+"]?",Jt=Xt+qt+("(?:"+Ht+"(?:"+[Bt,Ut,Vt].join("|")+")"+Xt+qt+")*"),Zt="(?:"+[Pt,Ut,Vt].join("|")+")"+Jt,Yt="(?:"+[Bt+Lt+"?",Lt,Ut,Vt,Nt].join("|")+")",Qt=RegExp(St,"g"),te=RegExp(Lt,"g"),ee=RegExp(Rt+"(?="+Rt+")|"+Yt+Jt,"g"),ne=RegExp([zt+"?"+jt+"+"+Kt+"(?="+[Et,zt,"$"].join("|")+")",Ft+"+"+Gt+"(?="+[Et,zt+Wt,"$"].join("|")+")",zt+"?"+Wt+"+"+Kt,zt+"+"+Gt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ot,Zt].join("|"),"g"),re=RegExp("["+Ht+xt+At+Mt+"]"),ie=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,oe=["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"],ae=-1,se={};se[P]=se[j]=se[$]=se[R]=se[B]=se[U]=se[V]=se[z]=se[H]=!0,se[w]=se[y]=se[L]=se[_]=se[O]=se[m]=se[b]=se[I]=se[A]=se[D]=se[T]=se[M]=se[k]=se[S]=se[E]=!1;var ue={};ue[w]=ue[y]=ue[L]=ue[O]=ue[_]=ue[m]=ue[P]=ue[j]=ue[$]=ue[R]=ue[B]=ue[A]=ue[D]=ue[T]=ue[M]=ue[k]=ue[S]=ue[N]=ue[U]=ue[V]=ue[z]=ue[H]=!0,ue[b]=ue[I]=ue[E]=!1;var ce={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},le=parseFloat,fe=parseInt,pe="object"==typeof r&&r&&r.Object===Object&&r,de="object"==typeof self&&self&&self.Object===Object&&self,he=pe||de||Function("return this")(),ge=e&&!e.nodeType&&e,ve=ge&&t&&!t.nodeType&&t,we=ve&&ve.exports===ge,ye=we&&pe.process,_e=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||ye&&ye.binding&&ye.binding("util")}catch(t){}}(),me=_e&&_e.isArrayBuffer,be=_e&&_e.isDate,Ie=_e&&_e.isMap,xe=_e&&_e.isRegExp,Ae=_e&&_e.isSet,De=_e&&_e.isTypedArray;function Te(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Ce(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];e(r,a,n(a),t)}return r}function Me(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function ke(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Se(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function Ne(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}function Ee(t,e){return!!(null==t?0:t.length)&&ze(t,e,0)>-1}function Le(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function Oe(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function Pe(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function je(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function $e(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function Re(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var Be=Ke("length");function Ue(t,e,n){var r;return n(t,function(t,n,i){if(e(t,n,i))return r=n,!1}),r}function Ve(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function ze(t,e,n){return e==e?function(t,e,n){var r=n-1,i=t.length;for(;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):Ve(t,We,n)}function He(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}function We(t){return t!=t}function Fe(t,e){var n=null==t?0:t.length;return n?Xe(t,e)/n:h}function Ke(t){return function(e){return null==e?n:e[t]}}function Ge(t){return function(e){return null==t?n:t[e]}}function qe(t,e,n,r,i){return i(t,function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)}),n}function Xe(t,e){for(var r,i=-1,o=t.length;++i<o;){var a=e(t[i]);a!==n&&(r=r===n?a:r+a)}return r}function Je(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function Ze(t){return t?t.slice(0,gn(t)+1).replace(ot,""):t}function Ye(t){return function(e){return t(e)}}function Qe(t,e){return Oe(e,function(e){return t[e]})}function tn(t,e){return t.has(e)}function en(t,e){for(var n=-1,r=t.length;++n<r&&ze(e,t[n],0)>-1;);return n}function nn(t,e){for(var n=t.length;n--&&ze(e,t[n],0)>-1;);return n}var rn=Ge({"À":"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"}),on=Ge({"&":"&","<":"<",">":">",'"':""","'":"'"});function an(t){return"\\"+ce[t]}function sn(t){return re.test(t)}function un(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function cn(t,e){return function(n){return t(e(n))}}function ln(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var s=t[n];s!==e&&s!==a||(t[n]=a,o[i++]=n)}return o}function fn(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function pn(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=[t,t]}),n}function dn(t){return sn(t)?function(t){var e=ee.lastIndex=0;for(;ee.test(t);)++e;return e}(t):Be(t)}function hn(t){return sn(t)?function(t){return t.match(ee)||[]}(t):function(t){return t.split("")}(t)}function gn(t){for(var e=t.length;e--&&at.test(t.charAt(e)););return e}var vn=Ge({"&":"&","<":"<",">":">",""":'"',"'":"'"});var wn=function t(e){var r,at=(e=null==e?he:wn.defaults(he.Object(),e,wn.pick(he,oe))).Array,xt=e.Date,At=e.Error,Dt=e.Function,Tt=e.Math,Ct=e.Object,Mt=e.RegExp,kt=e.String,St=e.TypeError,Nt=at.prototype,Et=Dt.prototype,Lt=Ct.prototype,Ot=e["__core-js_shared__"],Pt=Et.toString,jt=Lt.hasOwnProperty,$t=0,Rt=(r=/[^.]+$/.exec(Ot&&Ot.keys&&Ot.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Bt=Lt.toString,Ut=Pt.call(Ct),Vt=he._,zt=Mt("^"+Pt.call(jt).replace(rt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ht=we?e.Buffer:n,Wt=e.Symbol,Ft=e.Uint8Array,Kt=Ht?Ht.allocUnsafe:n,Gt=cn(Ct.getPrototypeOf,Ct),qt=Ct.create,Xt=Lt.propertyIsEnumerable,Jt=Nt.splice,Zt=Wt?Wt.isConcatSpreadable:n,Yt=Wt?Wt.iterator:n,ee=Wt?Wt.toStringTag:n,re=function(){try{var t=po(Ct,"defineProperty");return t({},"",{}),t}catch(t){}}(),ce=e.clearTimeout!==he.clearTimeout&&e.clearTimeout,pe=xt&&xt.now!==he.Date.now&&xt.now,de=e.setTimeout!==he.setTimeout&&e.setTimeout,ge=Tt.ceil,ve=Tt.floor,ye=Ct.getOwnPropertySymbols,_e=Ht?Ht.isBuffer:n,Be=e.isFinite,Ge=Nt.join,yn=cn(Ct.keys,Ct),_n=Tt.max,mn=Tt.min,bn=xt.now,In=e.parseInt,xn=Tt.random,An=Nt.reverse,Dn=po(e,"DataView"),Tn=po(e,"Map"),Cn=po(e,"Promise"),Mn=po(e,"Set"),kn=po(e,"WeakMap"),Sn=po(Ct,"create"),Nn=kn&&new kn,En={},Ln=Bo(Dn),On=Bo(Tn),Pn=Bo(Cn),jn=Bo(Mn),$n=Bo(kn),Rn=Wt?Wt.prototype:n,Bn=Rn?Rn.valueOf:n,Un=Rn?Rn.toString:n;function Vn(t){if(ns(t)&&!Fa(t)&&!(t instanceof Fn)){if(t instanceof Wn)return t;if(jt.call(t,"__wrapped__"))return Uo(t)}return new Wn(t)}var zn=function(){function t(){}return function(e){if(!es(e))return{};if(qt)return qt(e);t.prototype=e;var r=new t;return t.prototype=n,r}}();function Hn(){}function Wn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=n}function Fn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Kn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Gn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function qn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Xn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new qn;++e<n;)this.add(t[e])}function Jn(t){var e=this.__data__=new Gn(t);this.size=e.size}function Zn(t,e){var n=Fa(t),r=!n&&Wa(t),i=!n&&!r&&Xa(t),o=!n&&!r&&!i&&ls(t),a=n||r||i||o,s=a?Je(t.length,kt):[],u=s.length;for(var c in t)!e&&!jt.call(t,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||mo(c,u))||s.push(c);return s}function Yn(t){var e=t.length;return e?t[Xr(0,e-1)]:n}function Qn(t,e){return jo(Si(t),ur(e,0,t.length))}function tr(t){return jo(Si(t))}function er(t,e,r){(r!==n&&!Va(t[e],r)||r===n&&!(e in t))&&ar(t,e,r)}function nr(t,e,r){var i=t[e];jt.call(t,e)&&Va(i,r)&&(r!==n||e in t)||ar(t,e,r)}function rr(t,e){for(var n=t.length;n--;)if(Va(t[n][0],e))return n;return-1}function ir(t,e,n,r){return dr(t,function(t,i,o){e(r,t,n(t),o)}),r}function or(t,e){return t&&Ni(e,Es(e),t)}function ar(t,e,n){"__proto__"==e&&re?re(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function sr(t,e){for(var r=-1,i=e.length,o=at(i),a=null==t;++r<i;)o[r]=a?n:Cs(t,e[r]);return o}function ur(t,e,r){return t==t&&(r!==n&&(t=t<=r?t:r),e!==n&&(t=t>=e?t:e)),t}function cr(t,e,r,i,o,a){var s,u=1&e,c=2&e,l=4&e;if(r&&(s=o?r(t,i,o,a):r(t)),s!==n)return s;if(!es(t))return t;var f=Fa(t);if(f){if(s=function(t){var e=t.length,n=new t.constructor(e);e&&"string"==typeof t[0]&&jt.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!u)return Si(t,s)}else{var p=vo(t),d=p==I||p==x;if(Xa(t))return Ai(t,u);if(p==T||p==w||d&&!o){if(s=c||d?{}:yo(t),!u)return c?function(t,e){return Ni(t,go(t),e)}(t,function(t,e){return t&&Ni(e,Ls(e),t)}(s,t)):function(t,e){return Ni(t,ho(t),e)}(t,or(s,t))}else{if(!ue[p])return o?t:{};s=function(t,e,n){var r=t.constructor;switch(e){case L:return Di(t);case _:case m:return new r(+t);case O:return function(t,e){var n=e?Di(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case P:case j:case $:case R:case B:case U:case V:case z:case H:return Ti(t,n);case A:return new r;case D:case S:return new r(t);case M:return function(t){var e=new t.constructor(t.source,ht.exec(t));return e.lastIndex=t.lastIndex,e}(t);case k:return new r;case N:return i=t,Bn?Ct(Bn.call(i)):{}}var i}(t,p,u)}}a||(a=new Jn);var h=a.get(t);if(h)return h;a.set(t,s),ss(t)?t.forEach(function(n){s.add(cr(n,e,r,n,t,a))}):rs(t)&&t.forEach(function(n,i){s.set(i,cr(n,e,r,i,t,a))});var g=f?n:(l?c?oo:io:c?Ls:Es)(t);return Me(g||t,function(n,i){g&&(n=t[i=n]),nr(s,i,cr(n,e,r,i,t,a))}),s}function lr(t,e,r){var i=r.length;if(null==t)return!i;for(t=Ct(t);i--;){var o=r[i],a=e[o],s=t[o];if(s===n&&!(o in t)||!a(s))return!1}return!0}function fr(t,e,r){if("function"!=typeof t)throw new St(i);return Eo(function(){t.apply(n,r)},e)}function pr(t,e,n,r){var i=-1,o=Ee,a=!0,s=t.length,u=[],c=e.length;if(!s)return u;n&&(e=Oe(e,Ye(n))),r?(o=Le,a=!1):e.length>=200&&(o=tn,a=!1,e=new Xn(e));t:for(;++i<s;){var l=t[i],f=null==n?l:n(l);if(l=r||0!==l?l:0,a&&f==f){for(var p=c;p--;)if(e[p]===f)continue t;u.push(l)}else o(e,f,r)||u.push(l)}return u}Vn.templateSettings={escape:Z,evaluate:Y,interpolate:Q,variable:"",imports:{_:Vn}},Vn.prototype=Hn.prototype,Vn.prototype.constructor=Vn,Wn.prototype=zn(Hn.prototype),Wn.prototype.constructor=Wn,Fn.prototype=zn(Hn.prototype),Fn.prototype.constructor=Fn,Kn.prototype.clear=function(){this.__data__=Sn?Sn(null):{},this.size=0},Kn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Kn.prototype.get=function(t){var e=this.__data__;if(Sn){var r=e[t];return r===o?n:r}return jt.call(e,t)?e[t]:n},Kn.prototype.has=function(t){var e=this.__data__;return Sn?e[t]!==n:jt.call(e,t)},Kn.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Sn&&e===n?o:e,this},Gn.prototype.clear=function(){this.__data__=[],this.size=0},Gn.prototype.delete=function(t){var e=this.__data__,n=rr(e,t);return!(n<0)&&(n==e.length-1?e.pop():Jt.call(e,n,1),--this.size,!0)},Gn.prototype.get=function(t){var e=this.__data__,r=rr(e,t);return r<0?n:e[r][1]},Gn.prototype.has=function(t){return rr(this.__data__,t)>-1},Gn.prototype.set=function(t,e){var n=this.__data__,r=rr(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Kn,map:new(Tn||Gn),string:new Kn}},qn.prototype.delete=function(t){var e=lo(this,t).delete(t);return this.size-=e?1:0,e},qn.prototype.get=function(t){return lo(this,t).get(t)},qn.prototype.has=function(t){return lo(this,t).has(t)},qn.prototype.set=function(t,e){var n=lo(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Xn.prototype.add=Xn.prototype.push=function(t){return this.__data__.set(t,o),this},Xn.prototype.has=function(t){return this.__data__.has(t)},Jn.prototype.clear=function(){this.__data__=new Gn,this.size=0},Jn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Jn.prototype.get=function(t){return this.__data__.get(t)},Jn.prototype.has=function(t){return this.__data__.has(t)},Jn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Gn){var r=n.__data__;if(!Tn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new qn(r)}return n.set(t,e),this.size=n.size,this};var dr=Oi(br),hr=Oi(Ir,!0);function gr(t,e){var n=!0;return dr(t,function(t,r,i){return n=!!e(t,r,i)}),n}function vr(t,e,r){for(var i=-1,o=t.length;++i<o;){var a=t[i],s=e(a);if(null!=s&&(u===n?s==s&&!cs(s):r(s,u)))var u=s,c=a}return c}function wr(t,e){var n=[];return dr(t,function(t,r,i){e(t,r,i)&&n.push(t)}),n}function yr(t,e,n,r,i){var o=-1,a=t.length;for(n||(n=_o),i||(i=[]);++o<a;){var s=t[o];e>0&&n(s)?e>1?yr(s,e-1,n,r,i):Pe(i,s):r||(i[i.length]=s)}return i}var _r=Pi(),mr=Pi(!0);function br(t,e){return t&&_r(t,e,Es)}function Ir(t,e){return t&&mr(t,e,Es)}function xr(t,e){return Ne(e,function(e){return Ya(t[e])})}function Ar(t,e){for(var r=0,i=(e=mi(e,t)).length;null!=t&&r<i;)t=t[Ro(e[r++])];return r&&r==i?t:n}function Dr(t,e,n){var r=e(t);return Fa(t)?r:Pe(r,n(t))}function Tr(t){return null==t?t===n?"[object Undefined]":"[object Null]":ee&&ee in Ct(t)?function(t){var e=jt.call(t,ee),r=t[ee];try{t[ee]=n;var i=!0}catch(t){}var o=Bt.call(t);i&&(e?t[ee]=r:delete t[ee]);return o}(t):function(t){return Bt.call(t)}(t)}function Cr(t,e){return t>e}function Mr(t,e){return null!=t&&jt.call(t,e)}function kr(t,e){return null!=t&&e in Ct(t)}function Sr(t,e,r){for(var i=r?Le:Ee,o=t[0].length,a=t.length,s=a,u=at(a),c=1/0,l=[];s--;){var f=t[s];s&&e&&(f=Oe(f,Ye(e))),c=mn(f.length,c),u[s]=!r&&(e||o>=120&&f.length>=120)?new Xn(s&&f):n}f=t[0];var p=-1,d=u[0];t:for(;++p<o&&l.length<c;){var h=f[p],g=e?e(h):h;if(h=r||0!==h?h:0,!(d?tn(d,g):i(l,g,r))){for(s=a;--s;){var v=u[s];if(!(v?tn(v,g):i(t[s],g,r)))continue t}d&&d.push(g),l.push(h)}}return l}function Nr(t,e,r){var i=null==(t=ko(t,e=mi(e,t)))?t:t[Ro(Zo(e))];return null==i?n:Te(i,t,r)}function Er(t){return ns(t)&&Tr(t)==w}function Lr(t,e,r,i,o){return t===e||(null==t||null==e||!ns(t)&&!ns(e)?t!=t&&e!=e:function(t,e,r,i,o,a){var s=Fa(t),u=Fa(e),c=s?y:vo(t),l=u?y:vo(e),f=(c=c==w?T:c)==T,p=(l=l==w?T:l)==T,d=c==l;if(d&&Xa(t)){if(!Xa(e))return!1;s=!0,f=!1}if(d&&!f)return a||(a=new Jn),s||ls(t)?no(t,e,r,i,o,a):function(t,e,n,r,i,o,a){switch(n){case O:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case L:return!(t.byteLength!=e.byteLength||!o(new Ft(t),new Ft(e)));case _:case m:case D:return Va(+t,+e);case b:return t.name==e.name&&t.message==e.message;case M:case S:return t==e+"";case A:var s=un;case k:var u=1&r;if(s||(s=fn),t.size!=e.size&&!u)return!1;var c=a.get(t);if(c)return c==e;r|=2,a.set(t,e);var l=no(s(t),s(e),r,i,o,a);return a.delete(t),l;case N:if(Bn)return Bn.call(t)==Bn.call(e)}return!1}(t,e,c,r,i,o,a);if(!(1&r)){var h=f&&jt.call(t,"__wrapped__"),g=p&&jt.call(e,"__wrapped__");if(h||g){var v=h?t.value():t,I=g?e.value():e;return a||(a=new Jn),o(v,I,r,i,a)}}if(!d)return!1;return a||(a=new Jn),function(t,e,r,i,o,a){var s=1&r,u=io(t),c=u.length,l=io(e),f=l.length;if(c!=f&&!s)return!1;var p=c;for(;p--;){var d=u[p];if(!(s?d in e:jt.call(e,d)))return!1}var h=a.get(t),g=a.get(e);if(h&&g)return h==e&&g==t;var v=!0;a.set(t,e),a.set(e,t);var w=s;for(;++p<c;){var y=t[d=u[p]],_=e[d];if(i)var m=s?i(_,y,d,e,t,a):i(y,_,d,t,e,a);if(!(m===n?y===_||o(y,_,r,i,a):m)){v=!1;break}w||(w="constructor"==d)}if(v&&!w){var b=t.constructor,I=e.constructor;b==I||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof I&&I instanceof I||(v=!1)}return a.delete(t),a.delete(e),v}(t,e,r,i,o,a)}(t,e,r,i,Lr,o))}function Or(t,e,r,i){var o=r.length,a=o,s=!i;if(null==t)return!a;for(t=Ct(t);o--;){var u=r[o];if(s&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++o<a;){var c=(u=r[o])[0],l=t[c],f=u[1];if(s&&u[2]){if(l===n&&!(c in t))return!1}else{var p=new Jn;if(i)var d=i(l,f,c,t,e,p);if(!(d===n?Lr(f,l,3,i,p):d))return!1}}return!0}function Pr(t){return!(!es(t)||(e=t,Rt&&Rt in e))&&(Ya(t)?zt:wt).test(Bo(t));var e}function jr(t){return"function"==typeof t?t:null==t?iu:"object"==typeof t?Fa(t)?zr(t[0],t[1]):Vr(t):du(t)}function $r(t){if(!Do(t))return yn(t);var e=[];for(var n in Ct(t))jt.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Rr(t){if(!es(t))return function(t){var e=[];if(null!=t)for(var n in Ct(t))e.push(n);return e}(t);var e=Do(t),n=[];for(var r in t)("constructor"!=r||!e&&jt.call(t,r))&&n.push(r);return n}function Br(t,e){return t<e}function Ur(t,e){var n=-1,r=Ga(t)?at(t.length):[];return dr(t,function(t,i,o){r[++n]=e(t,i,o)}),r}function Vr(t){var e=fo(t);return 1==e.length&&e[0][2]?Co(e[0][0],e[0][1]):function(n){return n===t||Or(n,t,e)}}function zr(t,e){return Io(t)&&To(e)?Co(Ro(t),e):function(r){var i=Cs(r,t);return i===n&&i===e?Ms(r,t):Lr(e,i,3)}}function Hr(t,e,r,i,o){t!==e&&_r(e,function(a,s){if(o||(o=new Jn),es(a))!function(t,e,r,i,o,a,s){var u=So(t,r),c=So(e,r),l=s.get(c);if(l)return void er(t,r,l);var f=a?a(u,c,r+"",t,e,s):n,p=f===n;if(p){var d=Fa(c),h=!d&&Xa(c),g=!d&&!h&&ls(c);f=c,d||h||g?Fa(u)?f=u:qa(u)?f=Si(u):h?(p=!1,f=Ai(c,!0)):g?(p=!1,f=Ti(c,!0)):f=[]:os(c)||Wa(c)?(f=u,Wa(u)?f=ys(u):es(u)&&!Ya(u)||(f=yo(c))):p=!1}p&&(s.set(c,f),o(f,c,i,a,s),s.delete(c));er(t,r,f)}(t,e,s,r,Hr,i,o);else{var u=i?i(So(t,s),a,s+"",t,e,o):n;u===n&&(u=a),er(t,s,u)}},Ls)}function Wr(t,e){var r=t.length;if(r)return mo(e+=e<0?r:0,r)?t[e]:n}function Fr(t,e,n){e=e.length?Oe(e,function(t){return Fa(t)?function(e){return Ar(e,1===t.length?t[0]:t)}:t}):[iu];var r=-1;e=Oe(e,Ye(co()));var i=Ur(t,function(t,n,i){var o=Oe(e,function(e){return e(t)});return{criteria:o,index:++r,value:t}});return function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(i,function(t,e){return function(t,e,n){var r=-1,i=t.criteria,o=e.criteria,a=i.length,s=n.length;for(;++r<a;){var u=Ci(i[r],o[r]);if(u)return r>=s?u:u*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)})}function Kr(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var a=e[r],s=Ar(t,a);n(s,a)&&ti(o,mi(a,t),s)}return o}function Gr(t,e,n,r){var i=r?He:ze,o=-1,a=e.length,s=t;for(t===e&&(e=Si(e)),n&&(s=Oe(t,Ye(n)));++o<a;)for(var u=0,c=e[o],l=n?n(c):c;(u=i(s,l,u,r))>-1;)s!==t&&Jt.call(s,u,1),Jt.call(t,u,1);return t}function qr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;mo(i)?Jt.call(t,i,1):pi(t,i)}}return t}function Xr(t,e){return t+ve(xn()*(e-t+1))}function Jr(t,e){var n="";if(!t||e<1||e>d)return n;do{e%2&&(n+=t),(e=ve(e/2))&&(t+=t)}while(e);return n}function Zr(t,e){return Lo(Mo(t,e,iu),t+"")}function Yr(t){return Yn(Vs(t))}function Qr(t,e){var n=Vs(t);return jo(n,ur(e,0,n.length))}function ti(t,e,r,i){if(!es(t))return t;for(var o=-1,a=(e=mi(e,t)).length,s=a-1,u=t;null!=u&&++o<a;){var c=Ro(e[o]),l=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(o!=s){var f=u[c];(l=i?i(f,c,u):n)===n&&(l=es(f)?f:mo(e[o+1])?[]:{})}nr(u,c,l),u=u[c]}return t}var ei=Nn?function(t,e){return Nn.set(t,e),t}:iu,ni=re?function(t,e){return re(t,"toString",{configurable:!0,enumerable:!1,value:eu(e),writable:!0})}:iu;function ri(t){return jo(Vs(t))}function ii(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=at(i);++r<i;)o[r]=t[r+e];return o}function oi(t,e){var n;return dr(t,function(t,r,i){return!(n=e(t,r,i))}),!!n}function ai(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e==e&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=t[o];null!==a&&!cs(a)&&(n?a<=e:a<e)?r=o+1:i=o}return i}return si(t,e,iu,n)}function si(t,e,r,i){var o=0,a=null==t?0:t.length;if(0===a)return 0;for(var s=(e=r(e))!=e,u=null===e,c=cs(e),l=e===n;o<a;){var f=ve((o+a)/2),p=r(t[f]),d=p!==n,h=null===p,g=p==p,v=cs(p);if(s)var w=i||g;else w=l?g&&(i||d):u?g&&d&&(i||!h):c?g&&d&&!h&&(i||!v):!h&&!v&&(i?p<=e:p<e);w?o=f+1:a=f}return mn(a,4294967294)}function ui(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n],s=e?e(a):a;if(!n||!Va(s,u)){var u=s;o[i++]=0===a?0:a}}return o}function ci(t){return"number"==typeof t?t:cs(t)?h:+t}function li(t){if("string"==typeof t)return t;if(Fa(t))return Oe(t,li)+"";if(cs(t))return Un?Un.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function fi(t,e,n){var r=-1,i=Ee,o=t.length,a=!0,s=[],u=s;if(n)a=!1,i=Le;else if(o>=200){var c=e?null:Ji(t);if(c)return fn(c);a=!1,i=tn,u=new Xn}else u=e?[]:s;t:for(;++r<o;){var l=t[r],f=e?e(l):l;if(l=n||0!==l?l:0,a&&f==f){for(var p=u.length;p--;)if(u[p]===f)continue t;e&&u.push(f),s.push(l)}else i(u,f,n)||(u!==s&&u.push(f),s.push(l))}return s}function pi(t,e){var n=-1,r=(e=mi(e,t)).length;if(!r)return!0;for(var i=null==t||"object"!=typeof t&&"function"!=typeof t;++n<r;){var o=e[n];if("string"==typeof o){if("__proto__"===o&&!jt.call(t,"__proto__"))return!1;if("constructor"===o&&n+1<r&&"string"==typeof e[n+1]&&"prototype"===e[n+1]){if(i&&0===n)continue;return!1}}}var a=ko(t,e);return null==a||delete a[Ro(Zo(e))]}function di(t,e,n,r){return ti(t,e,n(Ar(t,e)),r)}function hi(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?ii(t,r?0:o,r?o+1:i):ii(t,r?o+1:0,r?i:o)}function gi(t,e){var n=t;return n instanceof Fn&&(n=n.value()),je(e,function(t,e){return e.func.apply(e.thisArg,Pe([t],e.args))},n)}function vi(t,e,n){var r=t.length;if(r<2)return r?fi(t[0]):[];for(var i=-1,o=at(r);++i<r;)for(var a=t[i],s=-1;++s<r;)s!=i&&(o[i]=pr(o[i]||a,t[s],e,n));return fi(yr(o,1),e,n)}function wi(t,e,r){for(var i=-1,o=t.length,a=e.length,s={};++i<o;){var u=i<a?e[i]:n;r(s,t[i],u)}return s}function yi(t){return qa(t)?t:[]}function _i(t){return"function"==typeof t?t:iu}function mi(t,e){return Fa(t)?t:Io(t,e)?[t]:$o(_s(t))}var bi=Zr;function Ii(t,e,r){var i=t.length;return r=r===n?i:r,!e&&r>=i?t:ii(t,e,r)}var xi=ce||function(t){return he.clearTimeout(t)};function Ai(t,e){if(e)return t.slice();var n=t.length,r=Kt?Kt(n):new t.constructor(n);return t.copy(r),r}function Di(t){var e=new t.constructor(t.byteLength);return new Ft(e).set(new Ft(t)),e}function Ti(t,e){var n=e?Di(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Ci(t,e){if(t!==e){var r=t!==n,i=null===t,o=t==t,a=cs(t),s=e!==n,u=null===e,c=e==e,l=cs(e);if(!u&&!l&&!a&&t>e||a&&s&&c&&!u&&!l||i&&s&&c||!r&&c||!o)return 1;if(!i&&!a&&!l&&t<e||l&&r&&o&&!i&&!a||u&&r&&o||!s&&o||!c)return-1}return 0}function Mi(t,e,n,r){for(var i=-1,o=t.length,a=n.length,s=-1,u=e.length,c=_n(o-a,0),l=at(u+c),f=!r;++s<u;)l[s]=e[s];for(;++i<a;)(f||i<o)&&(l[n[i]]=t[i]);for(;c--;)l[s++]=t[i++];return l}function ki(t,e,n,r){for(var i=-1,o=t.length,a=-1,s=n.length,u=-1,c=e.length,l=_n(o-s,0),f=at(l+c),p=!r;++i<l;)f[i]=t[i];for(var d=i;++u<c;)f[d+u]=e[u];for(;++a<s;)(p||i<o)&&(f[d+n[a]]=t[i++]);return f}function Si(t,e){var n=-1,r=t.length;for(e||(e=at(r));++n<r;)e[n]=t[n];return e}function Ni(t,e,r,i){var o=!r;r||(r={});for(var a=-1,s=e.length;++a<s;){var u=e[a],c=i?i(r[u],t[u],u,r,t):n;c===n&&(c=t[u]),o?ar(r,u,c):nr(r,u,c)}return r}function Ei(t,e){return function(n,r){var i=Fa(n)?Ce:ir,o=e?e():{};return i(n,t,co(r,2),o)}}function Li(t){return Zr(function(e,r){var i=-1,o=r.length,a=o>1?r[o-1]:n,s=o>2?r[2]:n;for(a=t.length>3&&"function"==typeof a?(o--,a):n,s&&bo(r[0],r[1],s)&&(a=o<3?n:a,o=1),e=Ct(e);++i<o;){var u=r[i];u&&t(e,u,i,a)}return e})}function Oi(t,e){return function(n,r){if(null==n)return n;if(!Ga(n))return t(n,r);for(var i=n.length,o=e?i:-1,a=Ct(n);(e?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Pi(t){return function(e,n,r){for(var i=-1,o=Ct(e),a=r(e),s=a.length;s--;){var u=a[t?s:++i];if(!1===n(o[u],u,o))break}return e}}function ji(t){return function(e){var r=sn(e=_s(e))?hn(e):n,i=r?r[0]:e.charAt(0),o=r?Ii(r,1).join(""):e.slice(1);return i[t]()+o}}function $i(t){return function(e){return je(Ys(Ws(e).replace(Qt,"")),t,"")}}function Ri(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=zn(t.prototype),r=t.apply(n,e);return es(r)?r:n}}function Bi(t){return function(e,r,i){var o=Ct(e);if(!Ga(e)){var a=co(r,3);e=Es(e),r=function(t){return a(o[t],t,o)}}var s=t(e,r,i);return s>-1?o[a?e[s]:s]:n}}function Ui(t){return ro(function(e){var r=e.length,o=r,a=Wn.prototype.thru;for(t&&e.reverse();o--;){var s=e[o];if("function"!=typeof s)throw new St(i);if(a&&!u&&"wrapper"==so(s))var u=new Wn([],!0)}for(o=u?o:r;++o<r;){var c=so(s=e[o]),l="wrapper"==c?ao(s):n;u=l&&xo(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[so(l[0])].apply(u,l[3]):1==s.length&&xo(s)?u[c]():u.thru(s)}return function(){var t=arguments,n=t[0];if(u&&1==t.length&&Fa(n))return u.plant(n).value();for(var i=0,o=r?e[i].apply(this,t):n;++i<r;)o=e[i].call(this,o);return o}})}function Vi(t,e,r,i,o,a,s,u,c,f){var p=e&l,d=1&e,h=2&e,g=24&e,v=512&e,w=h?n:Ri(t);return function l(){for(var y=arguments.length,_=at(y),m=y;m--;)_[m]=arguments[m];if(g)var b=uo(l),I=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}(_,b);if(i&&(_=Mi(_,i,o,g)),a&&(_=ki(_,a,s,g)),y-=I,g&&y<f){var x=ln(_,b);return qi(t,e,Vi,l.placeholder,r,_,x,u,c,f-y)}var A=d?r:this,D=h?A[t]:t;return y=_.length,u?_=function(t,e){var r=t.length,i=mn(e.length,r),o=Si(t);for(;i--;){var a=e[i];t[i]=mo(a,r)?o[a]:n}return t}(_,u):v&&y>1&&_.reverse(),p&&c<y&&(_.length=c),this&&this!==he&&this instanceof l&&(D=w||Ri(D)),D.apply(A,_)}}function zi(t,e){return function(n,r){return function(t,e,n,r){return br(t,function(t,i,o){e(r,n(t),i,o)}),r}(n,t,e(r),{})}}function Hi(t,e){return function(r,i){var o;if(r===n&&i===n)return e;if(r!==n&&(o=r),i!==n){if(o===n)return i;"string"==typeof r||"string"==typeof i?(r=li(r),i=li(i)):(r=ci(r),i=ci(i)),o=t(r,i)}return o}}function Wi(t){return ro(function(e){return e=Oe(e,Ye(co())),Zr(function(n){var r=this;return t(e,function(t){return Te(t,r,n)})})})}function Fi(t,e){var r=(e=e===n?" ":li(e)).length;if(r<2)return r?Jr(e,t):e;var i=Jr(e,ge(t/dn(e)));return sn(e)?Ii(hn(i),0,t).join(""):i.slice(0,t)}function Ki(t){return function(e,r,i){return i&&"number"!=typeof i&&bo(e,r,i)&&(r=i=n),e=hs(e),r===n?(r=e,e=0):r=hs(r),function(t,e,n,r){for(var i=-1,o=_n(ge((e-t)/(n||1)),0),a=at(o);o--;)a[r?o:++i]=t,t+=n;return a}(e,r,i=i===n?e<r?1:-1:hs(i),t)}}function Gi(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=ws(e),n=ws(n)),t(e,n)}}function qi(t,e,r,i,o,a,s,l,f,p){var d=8&e;e|=d?u:c,4&(e&=~(d?c:u))||(e&=-4);var h=[t,e,o,d?a:n,d?s:n,d?n:a,d?n:s,l,f,p],g=r.apply(n,h);return xo(t)&&No(g,h),g.placeholder=i,Oo(g,t,e)}function Xi(t){var e=Tt[t];return function(t,n){if(t=ws(t),(n=null==n?0:mn(gs(n),292))&&Be(t)){var r=(_s(t)+"e").split("e");return+((r=(_s(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var Ji=Mn&&1/fn(new Mn([,-0]))[1]==p?function(t){return new Mn(t)}:cu;function Zi(t){return function(e){var n=vo(e);return n==A?un(e):n==k?pn(e):function(t,e){return Oe(e,function(e){return[e,t[e]]})}(e,t(e))}}function Yi(t,e,r,o,p,d,h,g){var v=2&e;if(!v&&"function"!=typeof t)throw new St(i);var w=o?o.length:0;if(w||(e&=-97,o=p=n),h=h===n?h:_n(gs(h),0),g=g===n?g:gs(g),w-=p?p.length:0,e&c){var y=o,_=p;o=p=n}var m=v?n:ao(t),b=[t,e,r,o,p,y,_,d,h,g];if(m&&function(t,e){var n=t[1],r=e[1],i=n|r,o=i<131,s=r==l&&8==n||r==l&&n==f&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(!o&&!s)return t;1&r&&(t[2]=e[2],i|=1&n?0:4);var u=e[3];if(u){var c=t[3];t[3]=c?Mi(c,u,e[4]):u,t[4]=c?ln(t[3],a):e[4]}(u=e[5])&&(c=t[5],t[5]=c?ki(c,u,e[6]):u,t[6]=c?ln(t[5],a):e[6]);(u=e[7])&&(t[7]=u);r&l&&(t[8]=null==t[8]?e[8]:mn(t[8],e[8]));null==t[9]&&(t[9]=e[9]);t[0]=e[0],t[1]=i}(b,m),t=b[0],e=b[1],r=b[2],o=b[3],p=b[4],!(g=b[9]=b[9]===n?v?0:t.length:_n(b[9]-w,0))&&24&e&&(e&=-25),e&&1!=e)I=8==e||e==s?function(t,e,r){var i=Ri(t);return function o(){for(var a=arguments.length,s=at(a),u=a,c=uo(o);u--;)s[u]=arguments[u];var l=a<3&&s[0]!==c&&s[a-1]!==c?[]:ln(s,c);return(a-=l.length)<r?qi(t,e,Vi,o.placeholder,n,s,l,n,n,r-a):Te(this&&this!==he&&this instanceof o?i:t,this,s)}}(t,e,g):e!=u&&33!=e||p.length?Vi.apply(n,b):function(t,e,n,r){var i=1&e,o=Ri(t);return function e(){for(var a=-1,s=arguments.length,u=-1,c=r.length,l=at(c+s),f=this&&this!==he&&this instanceof e?o:t;++u<c;)l[u]=r[u];for(;s--;)l[u++]=arguments[++a];return Te(f,i?n:this,l)}}(t,e,r,o);else var I=function(t,e,n){var r=1&e,i=Ri(t);return function e(){return(this&&this!==he&&this instanceof e?i:t).apply(r?n:this,arguments)}}(t,e,r);return Oo((m?ei:No)(I,b),t,e)}function Qi(t,e,r,i){return t===n||Va(t,Lt[r])&&!jt.call(i,r)?e:t}function to(t,e,r,i,o,a){return es(t)&&es(e)&&(a.set(e,t),Hr(t,e,n,to,a),a.delete(e)),t}function eo(t){return os(t)?n:t}function no(t,e,r,i,o,a){var s=1&r,u=t.length,c=e.length;if(u!=c&&!(s&&c>u))return!1;var l=a.get(t),f=a.get(e);if(l&&f)return l==e&&f==t;var p=-1,d=!0,h=2&r?new Xn:n;for(a.set(t,e),a.set(e,t);++p<u;){var g=t[p],v=e[p];if(i)var w=s?i(v,g,p,e,t,a):i(g,v,p,t,e,a);if(w!==n){if(w)continue;d=!1;break}if(h){if(!Re(e,function(t,e){if(!tn(h,e)&&(g===t||o(g,t,r,i,a)))return h.push(e)})){d=!1;break}}else if(g!==v&&!o(g,v,r,i,a)){d=!1;break}}return a.delete(t),a.delete(e),d}function ro(t){return Lo(Mo(t,n,Ko),t+"")}function io(t){return Dr(t,Es,ho)}function oo(t){return Dr(t,Ls,go)}var ao=Nn?function(t){return Nn.get(t)}:cu;function so(t){for(var e=t.name+"",n=En[e],r=jt.call(En,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function uo(t){return(jt.call(Vn,"placeholder")?Vn:t).placeholder}function co(){var t=Vn.iteratee||ou;return t=t===ou?jr:t,arguments.length?t(arguments[0],arguments[1]):t}function lo(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function fo(t){for(var e=Es(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,To(i)]}return e}function po(t,e){var r=function(t,e){return null==t?n:t[e]}(t,e);return Pr(r)?r:n}var ho=ye?function(t){return null==t?[]:(t=Ct(t),Ne(ye(t),function(e){return Xt.call(t,e)}))}:vu,go=ye?function(t){for(var e=[];t;)Pe(e,ho(t)),t=Gt(t);return e}:vu,vo=Tr;function wo(t,e,n){for(var r=-1,i=(e=mi(e,t)).length,o=!1;++r<i;){var a=Ro(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&ts(i)&&mo(a,i)&&(Fa(t)||Wa(t))}function yo(t){return"function"!=typeof t.constructor||Do(t)?{}:zn(Gt(t))}function _o(t){return Fa(t)||Wa(t)||!!(Zt&&t&&t[Zt])}function mo(t,e){var n=typeof t;return!!(e=null==e?d:e)&&("number"==n||"symbol"!=n&&_t.test(t))&&t>-1&&t%1==0&&t<e}function bo(t,e,n){if(!es(n))return!1;var r=typeof e;return!!("number"==r?Ga(n)&&mo(e,n.length):"string"==r&&e in n)&&Va(n[e],t)}function Io(t,e){if(Fa(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!cs(t))||(et.test(t)||!tt.test(t)||null!=e&&t in Ct(e))}function xo(t){var e=so(t),n=Vn[e];if("function"!=typeof n||!(e in Fn.prototype))return!1;if(t===n)return!0;var r=ao(n);return!!r&&t===r[0]}(Dn&&vo(new Dn(new ArrayBuffer(1)))!=O||Tn&&vo(new Tn)!=A||Cn&&vo(Cn.resolve())!=C||Mn&&vo(new Mn)!=k||kn&&vo(new kn)!=E)&&(vo=function(t){var e=Tr(t),r=e==T?t.constructor:n,i=r?Bo(r):"";if(i)switch(i){case Ln:return O;case On:return A;case Pn:return C;case jn:return k;case $n:return E}return e});var Ao=Ot?Ya:wu;function Do(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Lt)}function To(t){return t==t&&!es(t)}function Co(t,e){return function(r){return null!=r&&(r[t]===e&&(e!==n||t in Ct(r)))}}function Mo(t,e,r){return e=_n(e===n?t.length-1:e,0),function(){for(var n=arguments,i=-1,o=_n(n.length-e,0),a=at(o);++i<o;)a[i]=n[e+i];i=-1;for(var s=at(e+1);++i<e;)s[i]=n[i];return s[e]=r(a),Te(t,this,s)}}function ko(t,e){return e.length<2?t:Ar(t,ii(e,0,-1))}function So(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var No=Po(ei),Eo=de||function(t,e){return he.setTimeout(t,e)},Lo=Po(ni);function Oo(t,e,n){var r=e+"";return Lo(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(st,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Me(v,function(n){var r="_."+n[0];e&n[1]&&!Ee(t,r)&&t.push(r)}),t.sort()}(function(t){var e=t.match(ut);return e?e[1].split(ct):[]}(r),n)))}function Po(t){var e=0,r=0;return function(){var i=bn(),o=16-(i-r);if(r=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(n,arguments)}}function jo(t,e){var r=-1,i=t.length,o=i-1;for(e=e===n?i:e;++r<e;){var a=Xr(r,o),s=t[a];t[a]=t[r],t[r]=s}return t.length=e,t}var $o=function(t){var e=Pa(t,function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(nt,function(t,n,r,i){e.push(r?i.replace(pt,"$1"):n||t)}),e});function Ro(t){if("string"==typeof t||cs(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Bo(t){if(null!=t){try{return Pt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Uo(t){if(t instanceof Fn)return t.clone();var e=new Wn(t.__wrapped__,t.__chain__);return e.__actions__=Si(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Vo=Zr(function(t,e){return qa(t)?pr(t,yr(e,1,qa,!0)):[]}),zo=Zr(function(t,e){var r=Zo(e);return qa(r)&&(r=n),qa(t)?pr(t,yr(e,1,qa,!0),co(r,2)):[]}),Ho=Zr(function(t,e){var r=Zo(e);return qa(r)&&(r=n),qa(t)?pr(t,yr(e,1,qa,!0),n,r):[]});function Wo(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:gs(n);return i<0&&(i=_n(r+i,0)),Ve(t,co(e,3),i)}function Fo(t,e,r){var i=null==t?0:t.length;if(!i)return-1;var o=i-1;return r!==n&&(o=gs(r),o=r<0?_n(i+o,0):mn(o,i-1)),Ve(t,co(e,3),o,!0)}function Ko(t){return(null==t?0:t.length)?yr(t,1):[]}function Go(t){return t&&t.length?t[0]:n}var qo=Zr(function(t){var e=Oe(t,yi);return e.length&&e[0]===t[0]?Sr(e):[]}),Xo=Zr(function(t){var e=Zo(t),r=Oe(t,yi);return e===Zo(r)?e=n:r.pop(),r.length&&r[0]===t[0]?Sr(r,co(e,2)):[]}),Jo=Zr(function(t){var e=Zo(t),r=Oe(t,yi);return(e="function"==typeof e?e:n)&&r.pop(),r.length&&r[0]===t[0]?Sr(r,n,e):[]});function Zo(t){var e=null==t?0:t.length;return e?t[e-1]:n}var Yo=Zr(Qo);function Qo(t,e){return t&&t.length&&e&&e.length?Gr(t,e):t}var ta=ro(function(t,e){var n=null==t?0:t.length,r=sr(t,e);return qr(t,Oe(e,function(t){return mo(t,n)?+t:t}).sort(Ci)),r});function ea(t){return null==t?t:An.call(t)}var na=Zr(function(t){return fi(yr(t,1,qa,!0))}),ra=Zr(function(t){var e=Zo(t);return qa(e)&&(e=n),fi(yr(t,1,qa,!0),co(e,2))}),ia=Zr(function(t){var e=Zo(t);return e="function"==typeof e?e:n,fi(yr(t,1,qa,!0),n,e)});function oa(t){if(!t||!t.length)return[];var e=0;return t=Ne(t,function(t){if(qa(t))return e=_n(t.length,e),!0}),Je(e,function(e){return Oe(t,Ke(e))})}function aa(t,e){if(!t||!t.length)return[];var r=oa(t);return null==e?r:Oe(r,function(t){return Te(e,n,t)})}var sa=Zr(function(t,e){return qa(t)?pr(t,e):[]}),ua=Zr(function(t){return vi(Ne(t,qa))}),ca=Zr(function(t){var e=Zo(t);return qa(e)&&(e=n),vi(Ne(t,qa),co(e,2))}),la=Zr(function(t){var e=Zo(t);return e="function"==typeof e?e:n,vi(Ne(t,qa),n,e)}),fa=Zr(oa);var pa=Zr(function(t){var e=t.length,r=e>1?t[e-1]:n;return r="function"==typeof r?(t.pop(),r):n,aa(t,r)});function da(t){var e=Vn(t);return e.__chain__=!0,e}function ha(t,e){return e(t)}var ga=ro(function(t){var e=t.length,r=e?t[0]:0,i=this.__wrapped__,o=function(e){return sr(e,t)};return!(e>1||this.__actions__.length)&&i instanceof Fn&&mo(r)?((i=i.slice(r,+r+(e?1:0))).__actions__.push({func:ha,args:[o],thisArg:n}),new Wn(i,this.__chain__).thru(function(t){return e&&!t.length&&t.push(n),t})):this.thru(o)});var va=Ei(function(t,e,n){jt.call(t,n)?++t[n]:ar(t,n,1)});var wa=Bi(Wo),ya=Bi(Fo);function _a(t,e){return(Fa(t)?Me:dr)(t,co(e,3))}function ma(t,e){return(Fa(t)?ke:hr)(t,co(e,3))}var ba=Ei(function(t,e,n){jt.call(t,n)?t[n].push(e):ar(t,n,[e])});var Ia=Zr(function(t,e,n){var r=-1,i="function"==typeof e,o=Ga(t)?at(t.length):[];return dr(t,function(t){o[++r]=i?Te(e,t,n):Nr(t,e,n)}),o}),xa=Ei(function(t,e,n){ar(t,n,e)});function Aa(t,e){return(Fa(t)?Oe:Ur)(t,co(e,3))}var Da=Ei(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]});var Ta=Zr(function(t,e){if(null==t)return[];var n=e.length;return n>1&&bo(t,e[0],e[1])?e=[]:n>2&&bo(e[0],e[1],e[2])&&(e=[e[0]]),Fr(t,yr(e,1),[])}),Ca=pe||function(){return he.Date.now()};function Ma(t,e,r){return e=r?n:e,e=t&&null==e?t.length:e,Yi(t,l,n,n,n,n,e)}function ka(t,e){var r;if("function"!=typeof e)throw new St(i);return t=gs(t),function(){return--t>0&&(r=e.apply(this,arguments)),t<=1&&(e=n),r}}var Sa=Zr(function(t,e,n){var r=1;if(n.length){var i=ln(n,uo(Sa));r|=u}return Yi(t,r,e,n,i)}),Na=Zr(function(t,e,n){var r=3;if(n.length){var i=ln(n,uo(Na));r|=u}return Yi(e,r,t,n,i)});function Ea(t,e,r){var o,a,s,u,c,l,f=0,p=!1,d=!1,h=!0;if("function"!=typeof t)throw new St(i);function g(e){var r=o,i=a;return o=a=n,f=e,u=t.apply(i,r)}function v(t){var r=t-l;return l===n||r>=e||r<0||d&&t-f>=s}function w(){var t=Ca();if(v(t))return y(t);c=Eo(w,function(t){var n=e-(t-l);return d?mn(n,s-(t-f)):n}(t))}function y(t){return c=n,h&&o?g(t):(o=a=n,u)}function _(){var t=Ca(),r=v(t);if(o=arguments,a=this,l=t,r){if(c===n)return function(t){return f=t,c=Eo(w,e),p?g(t):u}(l);if(d)return xi(c),c=Eo(w,e),g(l)}return c===n&&(c=Eo(w,e)),u}return e=ws(e)||0,es(r)&&(p=!!r.leading,s=(d="maxWait"in r)?_n(ws(r.maxWait)||0,e):s,h="trailing"in r?!!r.trailing:h),_.cancel=function(){c!==n&&xi(c),f=0,o=l=a=c=n},_.flush=function(){return c===n?u:y(Ca())},_}var La=Zr(function(t,e){return fr(t,1,e)}),Oa=Zr(function(t,e,n){return fr(t,ws(e)||0,n)});function Pa(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new St(i);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Pa.Cache||qn),n}function ja(t){if("function"!=typeof t)throw new St(i);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Pa.Cache=qn;var $a=bi(function(t,e){var n=(e=1==e.length&&Fa(e[0])?Oe(e[0],Ye(co())):Oe(yr(e,1),Ye(co()))).length;return Zr(function(r){for(var i=-1,o=mn(r.length,n);++i<o;)r[i]=e[i].call(this,r[i]);return Te(t,this,r)})}),Ra=Zr(function(t,e){var r=ln(e,uo(Ra));return Yi(t,u,n,e,r)}),Ba=Zr(function(t,e){var r=ln(e,uo(Ba));return Yi(t,c,n,e,r)}),Ua=ro(function(t,e){return Yi(t,f,n,n,n,e)});function Va(t,e){return t===e||t!=t&&e!=e}var za=Gi(Cr),Ha=Gi(function(t,e){return t>=e}),Wa=Er(function(){return arguments}())?Er:function(t){return ns(t)&&jt.call(t,"callee")&&!Xt.call(t,"callee")},Fa=at.isArray,Ka=me?Ye(me):function(t){return ns(t)&&Tr(t)==L};function Ga(t){return null!=t&&ts(t.length)&&!Ya(t)}function qa(t){return ns(t)&&Ga(t)}var Xa=_e||wu,Ja=be?Ye(be):function(t){return ns(t)&&Tr(t)==m};function Za(t){if(!ns(t))return!1;var e=Tr(t);return e==b||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!os(t)}function Ya(t){if(!es(t))return!1;var e=Tr(t);return e==I||e==x||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Qa(t){return"number"==typeof t&&t==gs(t)}function ts(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=d}function es(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ns(t){return null!=t&&"object"==typeof t}var rs=Ie?Ye(Ie):function(t){return ns(t)&&vo(t)==A};function is(t){return"number"==typeof t||ns(t)&&Tr(t)==D}function os(t){if(!ns(t)||Tr(t)!=T)return!1;var e=Gt(t);if(null===e)return!0;var n=jt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Pt.call(n)==Ut}var as=xe?Ye(xe):function(t){return ns(t)&&Tr(t)==M};var ss=Ae?Ye(Ae):function(t){return ns(t)&&vo(t)==k};function us(t){return"string"==typeof t||!Fa(t)&&ns(t)&&Tr(t)==S}function cs(t){return"symbol"==typeof t||ns(t)&&Tr(t)==N}var ls=De?Ye(De):function(t){return ns(t)&&ts(t.length)&&!!se[Tr(t)]};var fs=Gi(Br),ps=Gi(function(t,e){return t<=e});function ds(t){if(!t)return[];if(Ga(t))return us(t)?hn(t):Si(t);if(Yt&&t[Yt])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Yt]());var e=vo(t);return(e==A?un:e==k?fn:Vs)(t)}function hs(t){return t?(t=ws(t))===p||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function gs(t){var e=hs(t),n=e%1;return e==e?n?e-n:e:0}function vs(t){return t?ur(gs(t),0,g):0}function ws(t){if("number"==typeof t)return t;if(cs(t))return h;if(es(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=es(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ze(t);var n=vt.test(t);return n||yt.test(t)?fe(t.slice(2),n?2:8):gt.test(t)?h:+t}function ys(t){return Ni(t,Ls(t))}function _s(t){return null==t?"":li(t)}var ms=Li(function(t,e){if(Do(e)||Ga(e))Ni(e,Es(e),t);else for(var n in e)jt.call(e,n)&&nr(t,n,e[n])}),bs=Li(function(t,e){Ni(e,Ls(e),t)}),Is=Li(function(t,e,n,r){Ni(e,Ls(e),t,r)}),xs=Li(function(t,e,n,r){Ni(e,Es(e),t,r)}),As=ro(sr);var Ds=Zr(function(t,e){t=Ct(t);var r=-1,i=e.length,o=i>2?e[2]:n;for(o&&bo(e[0],e[1],o)&&(i=1);++r<i;)for(var a=e[r],s=Ls(a),u=-1,c=s.length;++u<c;){var l=s[u],f=t[l];(f===n||Va(f,Lt[l])&&!jt.call(t,l))&&(t[l]=a[l])}return t}),Ts=Zr(function(t){return t.push(n,to),Te(Ps,n,t)});function Cs(t,e,r){var i=null==t?n:Ar(t,e);return i===n?r:i}function Ms(t,e){return null!=t&&wo(t,e,kr)}var ks=zi(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Bt.call(e)),t[e]=n},eu(iu)),Ss=zi(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Bt.call(e)),jt.call(t,e)?t[e].push(n):t[e]=[n]},co),Ns=Zr(Nr);function Es(t){return Ga(t)?Zn(t):$r(t)}function Ls(t){return Ga(t)?Zn(t,!0):Rr(t)}var Os=Li(function(t,e,n){Hr(t,e,n)}),Ps=Li(function(t,e,n,r){Hr(t,e,n,r)}),js=ro(function(t,e){var n={};if(null==t)return n;var r=!1;e=Oe(e,function(e){return e=mi(e,t),r||(r=e.length>1),e}),Ni(t,oo(t),n),r&&(n=cr(n,7,eo));for(var i=e.length;i--;)pi(n,e[i]);return n});var $s=ro(function(t,e){return null==t?{}:function(t,e){return Kr(t,e,function(e,n){return Ms(t,n)})}(t,e)});function Rs(t,e){if(null==t)return{};var n=Oe(oo(t),function(t){return[t]});return e=co(e),Kr(t,n,function(t,n){return e(t,n[0])})}var Bs=Zi(Es),Us=Zi(Ls);function Vs(t){return null==t?[]:Qe(t,Es(t))}var zs=$i(function(t,e,n){return e=e.toLowerCase(),t+(n?Hs(e):e)});function Hs(t){return Zs(_s(t).toLowerCase())}function Ws(t){return(t=_s(t))&&t.replace(mt,rn).replace(te,"")}var Fs=$i(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),Ks=$i(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),Gs=ji("toLowerCase");var qs=$i(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()});var Xs=$i(function(t,e,n){return t+(n?" ":"")+Zs(e)});var Js=$i(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),Zs=ji("toUpperCase");function Ys(t,e,r){return t=_s(t),(e=r?n:e)===n?function(t){return ie.test(t)}(t)?function(t){return t.match(ne)||[]}(t):function(t){return t.match(lt)||[]}(t):t.match(e)||[]}var Qs=Zr(function(t,e){try{return Te(t,n,e)}catch(t){return Za(t)?t:new At(t)}}),tu=ro(function(t,e){return Me(e,function(e){e=Ro(e),ar(t,e,Sa(t[e],t))}),t});function eu(t){return function(){return t}}var nu=Ui(),ru=Ui(!0);function iu(t){return t}function ou(t){return jr("function"==typeof t?t:cr(t,1))}var au=Zr(function(t,e){return function(n){return Nr(n,t,e)}}),su=Zr(function(t,e){return function(n){return Nr(t,n,e)}});function uu(t,e,n){var r=Es(e),i=xr(e,r);null!=n||es(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=xr(e,Es(e)));var o=!(es(n)&&"chain"in n&&!n.chain),a=Ya(t);return Me(i,function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__);return(n.__actions__=Si(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,Pe([this.value()],arguments))})}),t}function cu(){}var lu=Wi(Oe),fu=Wi(Se),pu=Wi(Re);function du(t){return Io(t)?Ke(Ro(t)):function(t){return function(e){return Ar(e,t)}}(t)}var hu=Ki(),gu=Ki(!0);function vu(){return[]}function wu(){return!1}var yu=Hi(function(t,e){return t+e},0),_u=Xi("ceil"),mu=Hi(function(t,e){return t/e},1),bu=Xi("floor");var Iu,xu=Hi(function(t,e){return t*e},1),Au=Xi("round"),Du=Hi(function(t,e){return t-e},0);return Vn.after=function(t,e){if("function"!=typeof e)throw new St(i);return t=gs(t),function(){if(--t<1)return e.apply(this,arguments)}},Vn.ary=Ma,Vn.assign=ms,Vn.assignIn=bs,Vn.assignInWith=Is,Vn.assignWith=xs,Vn.at=As,Vn.before=ka,Vn.bind=Sa,Vn.bindAll=tu,Vn.bindKey=Na,Vn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Fa(t)?t:[t]},Vn.chain=da,Vn.chunk=function(t,e,r){e=(r?bo(t,e,r):e===n)?1:_n(gs(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var o=0,a=0,s=at(ge(i/e));o<i;)s[a++]=ii(t,o,o+=e);return s},Vn.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i},Vn.concat=function(){var t=arguments.length;if(!t)return[];for(var e=at(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return Pe(Fa(n)?Si(n):[n],yr(e,1))},Vn.cond=function(t){var e=null==t?0:t.length,n=co();return t=e?Oe(t,function(t){if("function"!=typeof t[1])throw new St(i);return[n(t[0]),t[1]]}):[],Zr(function(n){for(var r=-1;++r<e;){var i=t[r];if(Te(i[0],this,n))return Te(i[1],this,n)}})},Vn.conforms=function(t){return function(t){var e=Es(t);return function(n){return lr(n,t,e)}}(cr(t,1))},Vn.constant=eu,Vn.countBy=va,Vn.create=function(t,e){var n=zn(t);return null==e?n:or(n,e)},Vn.curry=function t(e,r,i){var o=Yi(e,8,n,n,n,n,n,r=i?n:r);return o.placeholder=t.placeholder,o},Vn.curryRight=function t(e,r,i){var o=Yi(e,s,n,n,n,n,n,r=i?n:r);return o.placeholder=t.placeholder,o},Vn.debounce=Ea,Vn.defaults=Ds,Vn.defaultsDeep=Ts,Vn.defer=La,Vn.delay=Oa,Vn.difference=Vo,Vn.differenceBy=zo,Vn.differenceWith=Ho,Vn.drop=function(t,e,r){var i=null==t?0:t.length;return i?ii(t,(e=r||e===n?1:gs(e))<0?0:e,i):[]},Vn.dropRight=function(t,e,r){var i=null==t?0:t.length;return i?ii(t,0,(e=i-(e=r||e===n?1:gs(e)))<0?0:e):[]},Vn.dropRightWhile=function(t,e){return t&&t.length?hi(t,co(e,3),!0,!0):[]},Vn.dropWhile=function(t,e){return t&&t.length?hi(t,co(e,3),!0):[]},Vn.fill=function(t,e,r,i){var o=null==t?0:t.length;return o?(r&&"number"!=typeof r&&bo(t,e,r)&&(r=0,i=o),function(t,e,r,i){var o=t.length;for((r=gs(r))<0&&(r=-r>o?0:o+r),(i=i===n||i>o?o:gs(i))<0&&(i+=o),i=r>i?0:vs(i);r<i;)t[r++]=e;return t}(t,e,r,i)):[]},Vn.filter=function(t,e){return(Fa(t)?Ne:wr)(t,co(e,3))},Vn.flatMap=function(t,e){return yr(Aa(t,e),1)},Vn.flatMapDeep=function(t,e){return yr(Aa(t,e),p)},Vn.flatMapDepth=function(t,e,r){return r=r===n?1:gs(r),yr(Aa(t,e),r)},Vn.flatten=Ko,Vn.flattenDeep=function(t){return(null==t?0:t.length)?yr(t,p):[]},Vn.flattenDepth=function(t,e){return(null==t?0:t.length)?yr(t,e=e===n?1:gs(e)):[]},Vn.flip=function(t){return Yi(t,512)},Vn.flow=nu,Vn.flowRight=ru,Vn.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},Vn.functions=function(t){return null==t?[]:xr(t,Es(t))},Vn.functionsIn=function(t){return null==t?[]:xr(t,Ls(t))},Vn.groupBy=ba,Vn.initial=function(t){return(null==t?0:t.length)?ii(t,0,-1):[]},Vn.intersection=qo,Vn.intersectionBy=Xo,Vn.intersectionWith=Jo,Vn.invert=ks,Vn.invertBy=Ss,Vn.invokeMap=Ia,Vn.iteratee=ou,Vn.keyBy=xa,Vn.keys=Es,Vn.keysIn=Ls,Vn.map=Aa,Vn.mapKeys=function(t,e){var n={};return e=co(e,3),br(t,function(t,r,i){ar(n,e(t,r,i),t)}),n},Vn.mapValues=function(t,e){var n={};return e=co(e,3),br(t,function(t,r,i){ar(n,r,e(t,r,i))}),n},Vn.matches=function(t){return Vr(cr(t,1))},Vn.matchesProperty=function(t,e){return zr(t,cr(e,1))},Vn.memoize=Pa,Vn.merge=Os,Vn.mergeWith=Ps,Vn.method=au,Vn.methodOf=su,Vn.mixin=uu,Vn.negate=ja,Vn.nthArg=function(t){return t=gs(t),Zr(function(e){return Wr(e,t)})},Vn.omit=js,Vn.omitBy=function(t,e){return Rs(t,ja(co(e)))},Vn.once=function(t){return ka(2,t)},Vn.orderBy=function(t,e,r,i){return null==t?[]:(Fa(e)||(e=null==e?[]:[e]),Fa(r=i?n:r)||(r=null==r?[]:[r]),Fr(t,e,r))},Vn.over=lu,Vn.overArgs=$a,Vn.overEvery=fu,Vn.overSome=pu,Vn.partial=Ra,Vn.partialRight=Ba,Vn.partition=Da,Vn.pick=$s,Vn.pickBy=Rs,Vn.property=du,Vn.propertyOf=function(t){return function(e){return null==t?n:Ar(t,e)}},Vn.pull=Yo,Vn.pullAll=Qo,Vn.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Gr(t,e,co(n,2)):t},Vn.pullAllWith=function(t,e,r){return t&&t.length&&e&&e.length?Gr(t,e,n,r):t},Vn.pullAt=ta,Vn.range=hu,Vn.rangeRight=gu,Vn.rearg=Ua,Vn.reject=function(t,e){return(Fa(t)?Ne:wr)(t,ja(co(e,3)))},Vn.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=co(e,3);++r<o;){var a=t[r];e(a,r,t)&&(n.push(a),i.push(r))}return qr(t,i),n},Vn.rest=function(t,e){if("function"!=typeof t)throw new St(i);return Zr(t,e=e===n?e:gs(e))},Vn.reverse=ea,Vn.sampleSize=function(t,e,r){return e=(r?bo(t,e,r):e===n)?1:gs(e),(Fa(t)?Qn:Qr)(t,e)},Vn.set=function(t,e,n){return null==t?t:ti(t,e,n)},Vn.setWith=function(t,e,r,i){return i="function"==typeof i?i:n,null==t?t:ti(t,e,r,i)},Vn.shuffle=function(t){return(Fa(t)?tr:ri)(t)},Vn.slice=function(t,e,r){var i=null==t?0:t.length;return i?(r&&"number"!=typeof r&&bo(t,e,r)?(e=0,r=i):(e=null==e?0:gs(e),r=r===n?i:gs(r)),ii(t,e,r)):[]},Vn.sortBy=Ta,Vn.sortedUniq=function(t){return t&&t.length?ui(t):[]},Vn.sortedUniqBy=function(t,e){return t&&t.length?ui(t,co(e,2)):[]},Vn.split=function(t,e,r){return r&&"number"!=typeof r&&bo(t,e,r)&&(e=r=n),(r=r===n?g:r>>>0)?(t=_s(t))&&("string"==typeof e||null!=e&&!as(e))&&!(e=li(e))&&sn(t)?Ii(hn(t),0,r):t.split(e,r):[]},Vn.spread=function(t,e){if("function"!=typeof t)throw new St(i);return e=null==e?0:_n(gs(e),0),Zr(function(n){var r=n[e],i=Ii(n,0,e);return r&&Pe(i,r),Te(t,this,i)})},Vn.tail=function(t){var e=null==t?0:t.length;return e?ii(t,1,e):[]},Vn.take=function(t,e,r){return t&&t.length?ii(t,0,(e=r||e===n?1:gs(e))<0?0:e):[]},Vn.takeRight=function(t,e,r){var i=null==t?0:t.length;return i?ii(t,(e=i-(e=r||e===n?1:gs(e)))<0?0:e,i):[]},Vn.takeRightWhile=function(t,e){return t&&t.length?hi(t,co(e,3),!1,!0):[]},Vn.takeWhile=function(t,e){return t&&t.length?hi(t,co(e,3)):[]},Vn.tap=function(t,e){return e(t),t},Vn.throttle=function(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new St(i);return es(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ea(t,e,{leading:r,maxWait:e,trailing:o})},Vn.thru=ha,Vn.toArray=ds,Vn.toPairs=Bs,Vn.toPairsIn=Us,Vn.toPath=function(t){return Fa(t)?Oe(t,Ro):cs(t)?[t]:Si($o(_s(t)))},Vn.toPlainObject=ys,Vn.transform=function(t,e,n){var r=Fa(t),i=r||Xa(t)||ls(t);if(e=co(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:es(t)&&Ya(o)?zn(Gt(t)):{}}return(i?Me:br)(t,function(t,r,i){return e(n,t,r,i)}),n},Vn.unary=function(t){return Ma(t,1)},Vn.union=na,Vn.unionBy=ra,Vn.unionWith=ia,Vn.uniq=function(t){return t&&t.length?fi(t):[]},Vn.uniqBy=function(t,e){return t&&t.length?fi(t,co(e,2)):[]},Vn.uniqWith=function(t,e){return e="function"==typeof e?e:n,t&&t.length?fi(t,n,e):[]},Vn.unset=function(t,e){return null==t||pi(t,e)},Vn.unzip=oa,Vn.unzipWith=aa,Vn.update=function(t,e,n){return null==t?t:di(t,e,_i(n))},Vn.updateWith=function(t,e,r,i){return i="function"==typeof i?i:n,null==t?t:di(t,e,_i(r),i)},Vn.values=Vs,Vn.valuesIn=function(t){return null==t?[]:Qe(t,Ls(t))},Vn.without=sa,Vn.words=Ys,Vn.wrap=function(t,e){return Ra(_i(e),t)},Vn.xor=ua,Vn.xorBy=ca,Vn.xorWith=la,Vn.zip=fa,Vn.zipObject=function(t,e){return wi(t||[],e||[],nr)},Vn.zipObjectDeep=function(t,e){return wi(t||[],e||[],ti)},Vn.zipWith=pa,Vn.entries=Bs,Vn.entriesIn=Us,Vn.extend=bs,Vn.extendWith=Is,uu(Vn,Vn),Vn.add=yu,Vn.attempt=Qs,Vn.camelCase=zs,Vn.capitalize=Hs,Vn.ceil=_u,Vn.clamp=function(t,e,r){return r===n&&(r=e,e=n),r!==n&&(r=(r=ws(r))==r?r:0),e!==n&&(e=(e=ws(e))==e?e:0),ur(ws(t),e,r)},Vn.clone=function(t){return cr(t,4)},Vn.cloneDeep=function(t){return cr(t,5)},Vn.cloneDeepWith=function(t,e){return cr(t,5,e="function"==typeof e?e:n)},Vn.cloneWith=function(t,e){return cr(t,4,e="function"==typeof e?e:n)},Vn.conformsTo=function(t,e){return null==e||lr(t,e,Es(e))},Vn.deburr=Ws,Vn.defaultTo=function(t,e){return null==t||t!=t?e:t},Vn.divide=mu,Vn.endsWith=function(t,e,r){t=_s(t),e=li(e);var i=t.length,o=r=r===n?i:ur(gs(r),0,i);return(r-=e.length)>=0&&t.slice(r,o)==e},Vn.eq=Va,Vn.escape=function(t){return(t=_s(t))&&J.test(t)?t.replace(q,on):t},Vn.escapeRegExp=function(t){return(t=_s(t))&&it.test(t)?t.replace(rt,"\\$&"):t},Vn.every=function(t,e,r){var i=Fa(t)?Se:gr;return r&&bo(t,e,r)&&(e=n),i(t,co(e,3))},Vn.find=wa,Vn.findIndex=Wo,Vn.findKey=function(t,e){return Ue(t,co(e,3),br)},Vn.findLast=ya,Vn.findLastIndex=Fo,Vn.findLastKey=function(t,e){return Ue(t,co(e,3),Ir)},Vn.floor=bu,Vn.forEach=_a,Vn.forEachRight=ma,Vn.forIn=function(t,e){return null==t?t:_r(t,co(e,3),Ls)},Vn.forInRight=function(t,e){return null==t?t:mr(t,co(e,3),Ls)},Vn.forOwn=function(t,e){return t&&br(t,co(e,3))},Vn.forOwnRight=function(t,e){return t&&Ir(t,co(e,3))},Vn.get=Cs,Vn.gt=za,Vn.gte=Ha,Vn.has=function(t,e){return null!=t&&wo(t,e,Mr)},Vn.hasIn=Ms,Vn.head=Go,Vn.identity=iu,Vn.includes=function(t,e,n,r){t=Ga(t)?t:Vs(t),n=n&&!r?gs(n):0;var i=t.length;return n<0&&(n=_n(i+n,0)),us(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&ze(t,e,n)>-1},Vn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:gs(n);return i<0&&(i=_n(r+i,0)),ze(t,e,i)},Vn.inRange=function(t,e,r){return e=hs(e),r===n?(r=e,e=0):r=hs(r),function(t,e,n){return t>=mn(e,n)&&t<_n(e,n)}(t=ws(t),e,r)},Vn.invoke=Ns,Vn.isArguments=Wa,Vn.isArray=Fa,Vn.isArrayBuffer=Ka,Vn.isArrayLike=Ga,Vn.isArrayLikeObject=qa,Vn.isBoolean=function(t){return!0===t||!1===t||ns(t)&&Tr(t)==_},Vn.isBuffer=Xa,Vn.isDate=Ja,Vn.isElement=function(t){return ns(t)&&1===t.nodeType&&!os(t)},Vn.isEmpty=function(t){if(null==t)return!0;if(Ga(t)&&(Fa(t)||"string"==typeof t||"function"==typeof t.splice||Xa(t)||ls(t)||Wa(t)))return!t.length;var e=vo(t);if(e==A||e==k)return!t.size;if(Do(t))return!$r(t).length;for(var n in t)if(jt.call(t,n))return!1;return!0},Vn.isEqual=function(t,e){return Lr(t,e)},Vn.isEqualWith=function(t,e,r){var i=(r="function"==typeof r?r:n)?r(t,e):n;return i===n?Lr(t,e,n,r):!!i},Vn.isError=Za,Vn.isFinite=function(t){return"number"==typeof t&&Be(t)},Vn.isFunction=Ya,Vn.isInteger=Qa,Vn.isLength=ts,Vn.isMap=rs,Vn.isMatch=function(t,e){return t===e||Or(t,e,fo(e))},Vn.isMatchWith=function(t,e,r){return r="function"==typeof r?r:n,Or(t,e,fo(e),r)},Vn.isNaN=function(t){return is(t)&&t!=+t},Vn.isNative=function(t){if(Ao(t))throw new At("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Pr(t)},Vn.isNil=function(t){return null==t},Vn.isNull=function(t){return null===t},Vn.isNumber=is,Vn.isObject=es,Vn.isObjectLike=ns,Vn.isPlainObject=os,Vn.isRegExp=as,Vn.isSafeInteger=function(t){return Qa(t)&&t>=-9007199254740991&&t<=d},Vn.isSet=ss,Vn.isString=us,Vn.isSymbol=cs,Vn.isTypedArray=ls,Vn.isUndefined=function(t){return t===n},Vn.isWeakMap=function(t){return ns(t)&&vo(t)==E},Vn.isWeakSet=function(t){return ns(t)&&"[object WeakSet]"==Tr(t)},Vn.join=function(t,e){return null==t?"":Ge.call(t,e)},Vn.kebabCase=Fs,Vn.last=Zo,Vn.lastIndexOf=function(t,e,r){var i=null==t?0:t.length;if(!i)return-1;var o=i;return r!==n&&(o=(o=gs(r))<0?_n(i+o,0):mn(o,i-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,o):Ve(t,We,o,!0)},Vn.lowerCase=Ks,Vn.lowerFirst=Gs,Vn.lt=fs,Vn.lte=ps,Vn.max=function(t){return t&&t.length?vr(t,iu,Cr):n},Vn.maxBy=function(t,e){return t&&t.length?vr(t,co(e,2),Cr):n},Vn.mean=function(t){return Fe(t,iu)},Vn.meanBy=function(t,e){return Fe(t,co(e,2))},Vn.min=function(t){return t&&t.length?vr(t,iu,Br):n},Vn.minBy=function(t,e){return t&&t.length?vr(t,co(e,2),Br):n},Vn.stubArray=vu,Vn.stubFalse=wu,Vn.stubObject=function(){return{}},Vn.stubString=function(){return""},Vn.stubTrue=function(){return!0},Vn.multiply=xu,Vn.nth=function(t,e){return t&&t.length?Wr(t,gs(e)):n},Vn.noConflict=function(){return he._===this&&(he._=Vt),this},Vn.noop=cu,Vn.now=Ca,Vn.pad=function(t,e,n){t=_s(t);var r=(e=gs(e))?dn(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Fi(ve(i),n)+t+Fi(ge(i),n)},Vn.padEnd=function(t,e,n){t=_s(t);var r=(e=gs(e))?dn(t):0;return e&&r<e?t+Fi(e-r,n):t},Vn.padStart=function(t,e,n){t=_s(t);var r=(e=gs(e))?dn(t):0;return e&&r<e?Fi(e-r,n)+t:t},Vn.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),In(_s(t).replace(ot,""),e||0)},Vn.random=function(t,e,r){if(r&&"boolean"!=typeof r&&bo(t,e,r)&&(e=r=n),r===n&&("boolean"==typeof e?(r=e,e=n):"boolean"==typeof t&&(r=t,t=n)),t===n&&e===n?(t=0,e=1):(t=hs(t),e===n?(e=t,t=0):e=hs(e)),t>e){var i=t;t=e,e=i}if(r||t%1||e%1){var o=xn();return mn(t+o*(e-t+le("1e-"+((o+"").length-1))),e)}return Xr(t,e)},Vn.reduce=function(t,e,n){var r=Fa(t)?je:qe,i=arguments.length<3;return r(t,co(e,4),n,i,dr)},Vn.reduceRight=function(t,e,n){var r=Fa(t)?$e:qe,i=arguments.length<3;return r(t,co(e,4),n,i,hr)},Vn.repeat=function(t,e,r){return e=(r?bo(t,e,r):e===n)?1:gs(e),Jr(_s(t),e)},Vn.replace=function(){var t=arguments,e=_s(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Vn.result=function(t,e,r){var i=-1,o=(e=mi(e,t)).length;for(o||(o=1,t=n);++i<o;){var a=null==t?n:t[Ro(e[i])];a===n&&(i=o,a=r),t=Ya(a)?a.call(t):a}return t},Vn.round=Au,Vn.runInContext=t,Vn.sample=function(t){return(Fa(t)?Yn:Yr)(t)},Vn.size=function(t){if(null==t)return 0;if(Ga(t))return us(t)?dn(t):t.length;var e=vo(t);return e==A||e==k?t.size:$r(t).length},Vn.snakeCase=qs,Vn.some=function(t,e,r){var i=Fa(t)?Re:oi;return r&&bo(t,e,r)&&(e=n),i(t,co(e,3))},Vn.sortedIndex=function(t,e){return ai(t,e)},Vn.sortedIndexBy=function(t,e,n){return si(t,e,co(n,2))},Vn.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=ai(t,e);if(r<n&&Va(t[r],e))return r}return-1},Vn.sortedLastIndex=function(t,e){return ai(t,e,!0)},Vn.sortedLastIndexBy=function(t,e,n){return si(t,e,co(n,2),!0)},Vn.sortedLastIndexOf=function(t,e){if(null==t?0:t.length){var n=ai(t,e,!0)-1;if(Va(t[n],e))return n}return-1},Vn.startCase=Xs,Vn.startsWith=function(t,e,n){return t=_s(t),n=null==n?0:ur(gs(n),0,t.length),e=li(e),t.slice(n,n+e.length)==e},Vn.subtract=Du,Vn.sum=function(t){return t&&t.length?Xe(t,iu):0},Vn.sumBy=function(t,e){return t&&t.length?Xe(t,co(e,2)):0},Vn.template=function(t,e,r){var i=Vn.templateSettings;r&&bo(t,e,r)&&(e=n),t=_s(t),e=Is({},e,i,Qi);var o,a,s=Is({},e.imports,i.imports,Qi),u=Es(s),c=Qe(s,u),l=0,f=e.interpolate||bt,p="__p += '",d=Mt((e.escape||bt).source+"|"+f.source+"|"+(f===Q?dt:bt).source+"|"+(e.evaluate||bt).source+"|$","g"),h="//# sourceURL="+(jt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ae+"]")+"\n";t.replace(d,function(e,n,r,i,s,u){return r||(r=i),p+=t.slice(l,u).replace(It,an),n&&(o=!0,p+="' +\n__e("+n+") +\n'"),s&&(a=!0,p+="';\n"+s+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+e.length,e}),p+="';\n";var g=jt.call(e,"variable")&&e.variable;if(g){if(ft.test(g))throw new At("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(W,""):p).replace(F,"$1").replace(K,"$1;"),p="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var v=Qs(function(){return Dt(u,h+"return "+p).apply(n,c)});if(v.source=p,Za(v))throw v;return v},Vn.times=function(t,e){if((t=gs(t))<1||t>d)return[];var n=g,r=mn(t,g);e=co(e),t-=g;for(var i=Je(r,e);++n<t;)e(n);return i},Vn.toFinite=hs,Vn.toInteger=gs,Vn.toLength=vs,Vn.toLower=function(t){return _s(t).toLowerCase()},Vn.toNumber=ws,Vn.toSafeInteger=function(t){return t?ur(gs(t),-9007199254740991,d):0===t?t:0},Vn.toString=_s,Vn.toUpper=function(t){return _s(t).toUpperCase()},Vn.trim=function(t,e,r){if((t=_s(t))&&(r||e===n))return Ze(t);if(!t||!(e=li(e)))return t;var i=hn(t),o=hn(e);return Ii(i,en(i,o),nn(i,o)+1).join("")},Vn.trimEnd=function(t,e,r){if((t=_s(t))&&(r||e===n))return t.slice(0,gn(t)+1);if(!t||!(e=li(e)))return t;var i=hn(t);return Ii(i,0,nn(i,hn(e))+1).join("")},Vn.trimStart=function(t,e,r){if((t=_s(t))&&(r||e===n))return t.replace(ot,"");if(!t||!(e=li(e)))return t;var i=hn(t);return Ii(i,en(i,hn(e))).join("")},Vn.truncate=function(t,e){var r=30,i="...";if(es(e)){var o="separator"in e?e.separator:o;r="length"in e?gs(e.length):r,i="omission"in e?li(e.omission):i}var a=(t=_s(t)).length;if(sn(t)){var s=hn(t);a=s.length}if(r>=a)return t;var u=r-dn(i);if(u<1)return i;var c=s?Ii(s,0,u).join(""):t.slice(0,u);if(o===n)return c+i;if(s&&(u+=c.length-u),as(o)){if(t.slice(u).search(o)){var l,f=c;for(o.global||(o=Mt(o.source,_s(ht.exec(o))+"g")),o.lastIndex=0;l=o.exec(f);)var p=l.index;c=c.slice(0,p===n?u:p)}}else if(t.indexOf(li(o),u)!=u){var d=c.lastIndexOf(o);d>-1&&(c=c.slice(0,d))}return c+i},Vn.unescape=function(t){return(t=_s(t))&&X.test(t)?t.replace(G,vn):t},Vn.uniqueId=function(t){var e=++$t;return _s(t)+e},Vn.upperCase=Js,Vn.upperFirst=Zs,Vn.each=_a,Vn.eachRight=ma,Vn.first=Go,uu(Vn,(Iu={},br(Vn,function(t,e){jt.call(Vn.prototype,e)||(Iu[e]=t)}),Iu),{chain:!1}),Vn.VERSION="4.17.23",Me(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){Vn[t].placeholder=Vn}),Me(["drop","take"],function(t,e){Fn.prototype[t]=function(r){r=r===n?1:_n(gs(r),0);var i=this.__filtered__&&!e?new Fn(this):this.clone();return i.__filtered__?i.__takeCount__=mn(r,i.__takeCount__):i.__views__.push({size:mn(r,g),type:t+(i.__dir__<0?"Right":"")}),i},Fn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),Me(["filter","map","takeWhile"],function(t,e){var n=e+1,r=1==n||3==n;Fn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:co(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),Me(["head","last"],function(t,e){var n="take"+(e?"Right":"");Fn.prototype[t]=function(){return this[n](1).value()[0]}}),Me(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");Fn.prototype[t]=function(){return this.__filtered__?new Fn(this):this[n](1)}}),Fn.prototype.compact=function(){return this.filter(iu)},Fn.prototype.find=function(t){return this.filter(t).head()},Fn.prototype.findLast=function(t){return this.reverse().find(t)},Fn.prototype.invokeMap=Zr(function(t,e){return"function"==typeof t?new Fn(this):this.map(function(n){return Nr(n,t,e)})}),Fn.prototype.reject=function(t){return this.filter(ja(co(t)))},Fn.prototype.slice=function(t,e){t=gs(t);var r=this;return r.__filtered__&&(t>0||e<0)?new Fn(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),e!==n&&(r=(e=gs(e))<0?r.dropRight(-e):r.take(e-t)),r)},Fn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Fn.prototype.toArray=function(){return this.take(g)},br(Fn.prototype,function(t,e){var r=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),o=Vn[i?"take"+("last"==e?"Right":""):e],a=i||/^find/.test(e);o&&(Vn.prototype[e]=function(){var e=this.__wrapped__,s=i?[1]:arguments,u=e instanceof Fn,c=s[0],l=u||Fa(e),f=function(t){var e=o.apply(Vn,Pe([t],s));return i&&p?e[0]:e};l&&r&&"function"==typeof c&&1!=c.length&&(u=l=!1);var p=this.__chain__,d=!!this.__actions__.length,h=a&&!p,g=u&&!d;if(!a&&l){e=g?e:new Fn(this);var v=t.apply(e,s);return v.__actions__.push({func:ha,args:[f],thisArg:n}),new Wn(v,p)}return h&&g?t.apply(this,s):(v=this.thru(f),h?i?v.value()[0]:v.value():v)})}),Me(["pop","push","shift","sort","splice","unshift"],function(t){var e=Nt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Vn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(Fa(i)?i:[],t)}return this[n](function(n){return e.apply(Fa(n)?n:[],t)})}}),br(Fn.prototype,function(t,e){var n=Vn[e];if(n){var r=n.name+"";jt.call(En,r)||(En[r]=[]),En[r].push({name:e,func:n})}}),En[Vi(n,2).name]=[{name:"wrapper",func:n}],Fn.prototype.clone=function(){var t=new Fn(this.__wrapped__);return t.__actions__=Si(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Si(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Si(this.__views__),t},Fn.prototype.reverse=function(){if(this.__filtered__){var t=new Fn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Fn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Fa(t),r=e<0,i=n?t.length:0,o=function(t,e,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=mn(e,t+a);break;case"takeRight":t=_n(t,e-a)}}return{start:t,end:e}}(0,i,this.__views__),a=o.start,s=o.end,u=s-a,c=r?s:a-1,l=this.__iteratees__,f=l.length,p=0,d=mn(u,this.__takeCount__);if(!n||!r&&i==u&&d==u)return gi(t,this.__actions__);var h=[];t:for(;u--&&p<d;){for(var g=-1,v=t[c+=e];++g<f;){var w=l[g],y=w.iteratee,_=w.type,m=y(v);if(2==_)v=m;else if(!m){if(1==_)continue t;break t}}h[p++]=v}return h},Vn.prototype.at=ga,Vn.prototype.chain=function(){return da(this)},Vn.prototype.commit=function(){return new Wn(this.value(),this.__chain__)},Vn.prototype.next=function(){this.__values__===n&&(this.__values__=ds(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?n:this.__values__[this.__index__++]}},Vn.prototype.plant=function(t){for(var e,r=this;r instanceof Hn;){var i=Uo(r);i.__index__=0,i.__values__=n,e?o.__wrapped__=i:e=i;var o=i;r=r.__wrapped__}return o.__wrapped__=t,e},Vn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Fn){var e=t;return this.__actions__.length&&(e=new Fn(this)),(e=e.reverse()).__actions__.push({func:ha,args:[ea],thisArg:n}),new Wn(e,this.__chain__)}return this.thru(ea)},Vn.prototype.toJSON=Vn.prototype.valueOf=Vn.prototype.value=function(){return gi(this.__wrapped__,this.__actions__)},Vn.prototype.first=Vn.prototype.head,Yt&&(Vn.prototype[Yt]=function(){return this}),Vn}();ve?((ve.exports=wn)._=wn,ge._=wn):he._=wn}).call(r)}(o,o.exports);var a=i(o.exports);var s=new class{constructor(){this.__listeners={}}register(...t){let e,n;3==t.length?(e=`${t[0]}-${t[1]}`,n=t[2]):(e=t[0],n=t[1]),this.__listeners[e]=this.__listeners[e]||[],this.__listeners[e].push({callback:n})}fireEvent(...t){let e,n;3==t.length?(e=`${t[0]}-${t[1]}`,n=t[2]):(e=t[0],n=t[1]);let r=this.__listeners[e]||[],i=!0;return a.forEach(r,t=>{if(!1===t.callback.call(null,n))return i=!1,!1}),i}unregister(...t){let e,n;3==t.length?(e=`${t[0]}-${t[1]}`,n=t[2]):(e=t[0],n=t[1]),a.isString(e)&&!a.isEmpty(this.__listeners[e])&&a.remove(this.__listeners[e],t=>t.callback===n||void 0===n)}hasListener(t){return a.isString(t)&&!a.isEmpty(this.__listeners[t])}clearAll(){this.__listeners={}}};const u=(t,e)=>{let n=window.rjEventCenter;n||(c(),n=window.rjEventCenter),n&&n.register&&n.register(t,e)},c=()=>{window.rjEventCenter?console.log(`事件中心已经初始化,不需要重新初始化:时间戳: ${(new Date).toLocaleString()}`):(console.log(`初始化事件中心:时间戳: ${(new Date).toLocaleString()}`),window.rjEventCenter=s)};var l={},f=Object.prototype.hasOwnProperty;function p(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(t){return null}}function d(t){try{return encodeURIComponent(t)}catch(t){return null}}l.stringify=function(t,e){e=e||"";var n,r,i=[];for(r in"string"!=typeof e&&(e="?"),t)if(f.call(t,r)){if((n=t[r])||null!=n&&!isNaN(n)||(n=""),r=d(r),n=d(n),null===r||null===n)continue;i.push(r+"="+n)}return i.length?e+i.join("&"):""},l.parse=function(t){for(var e,n=/([^=?#&]+)=?([^&]*)/g,r={};e=n.exec(t);){var i=p(e[1]),o=p(e[2]);null===i||null===o||i in r||(r[i]=o)}return r};var h=((e="")=>{e&&(e.startsWith("/")&&(e=e.slice(1,e.length)),e.endsWith("/")&&(e=e.slice(0,-1)));const n=t.create({baseURL:`/${e?e+"/":""}sdata/rest`,timeout:6e4,validateStatus:function(t){return t>=200&&t<300},headers:window.location.search&&l.parse(window.location.search).token||window.token?{token:l.parse(window.location.search).token||window.token}:{}});let r=n.post;return n.post=(t,e,i)=>{let o=window.VITE_SERVICE_BASE_URL||"";if(o){let a=o+t;return r.call(n,a,e,i)}return r.call(n,t,e,i)},n.defaults.headers.post["Content-Type"]="application/json",n.interceptors.response.use(t=>{let{data:e}=t;return"string"==typeof e&&(e=JSON.parse(e)),!e||200===e.status||e instanceof Blob?e instanceof Blob?(t.data=e,t):(t.data=e&&e.result,t):Promise.reject(t)},t=>{if(!t.response||401!==t.response.status)return Promise.reject(t.response)}),n})(window.prefixPath||"");const g=()=>{let t=window.sessionStorage.getItem("iportal_app_id");return t||(t=v()),t},v=()=>window.appSdk.getAppId()||window.localStorage.MobileAppId,w=async(t,e)=>{let n={param:{id:t}},r=await h.post("/dataservice/rest/orchestration/getMenuDatasByGroupID",n),i=r.data.resultDatas,o=r.data.menuTypes;r=await h.post("/dataservice/rest/orchestration/getPortalDefaultQuickMenus",{});let a=r.data.resultDatas,s=r.data.menuTypes,u=i.concat(a),c=o.concat(s),l=[],f=[],p={};for(const t of u){let e=t.id,n="1"==t.status;!p[e]&&n&&(l.push(t),p[e]=t)}let d={};for(const t of c){let e=t.id;d[e]||(f.push(t),d[e]=t)}if(e&&e.length>0){r=await y(e,t);let n=r.data.quickMenuMappingDatas||[],i={};for(const t of n){let e=t.menu_mapping_id,n=p[e];i[e]=n}return I(l,f,i)}return I(l,f,[])},y=async(t,e)=>{let n={param:{role_ids:t,group_id:e}};return await h.post("/dataservice/rest/orchestration/getQuckMenuMappingsByRoleIDs",n)},_=async(t,e,n)=>{let r={param:{user_id:t,app_id:e,group_id:n}};return(await h.post("/dataservice/rest/orchestration/getRoleIDsByUserAndGroupID",r)).data.portal_role_ids},m=async t=>{let e={param:{kb_doc_id:t}};return(await h.post("/dataservice/rest/orchestration/getPortalDocmentInfoByKBID",e)).data.docInfo},b=async(t,e)=>{let n={param:{role_ids:t,app_id:e}};return(await h.post("/dataservice/rest/orchestration/getPlatformMenuMappingsByRoleIDs",n)).data.mappingDatas},I=(t,e,n)=>{let r={},i={},o={};for(let t in n){let e=n[t];if(!e)continue;let r=e.parent_id;r&&(o[r]=!0)}for(const e of t){let t=e.id,i={id:t,index:e.menu_id,name:e.title,sort:e.sort,actionType:e.actionType,url:e.url,iconClass:e.image?e.image:"4"==e.type?"":"el-icon-menu",parent_id:e.parent_id,children:[],app_id:e.app_id,menu_id:e.menu_id,beyond_type:e.menu_type?e.menu_type:"RJVIEW-OTHERS",beyond_type_sort:e.menu_type_sort?e.menu_type_sort:999,type:"MenuItem",typeID:e.type};(n&&n[t]||"4"==e.type||o[t]||"1"==e.is_app_defalut)&&(r[t]=i)}for(const t of e){i[t.id]=t}for(const e of t){if("5"==e.type){let t=r[e.id];if(!t)continue;let n=e.parent_id,o=t.beyond_type,a=r[n];if(!a)continue;let s=a.children,u=s.find(t=>t.id==o);if(u){u.children.push(t),t.typeItem=u}else{let e=i[o],n=e?{id:o,index:o,name:e.title,children:[],sort:e.value,type:"MenuType"}:{id:o,index:o,name:"其他",children:[],sort:999,type:"MenuType"};n.children.push(t),s.push(n),t.typeItem=n}}}const a=[];for(const e of t){if("4"==e.type){let t=r[e.id];if(!t)continue;let i=t.children,o=0;for(const t of i){let e=t.children.length;if(o+=e,e>0)break}if("1"!=e.is_app_defalut&&n&&!n[e.id]&&0==o)continue;a.push(t);let s=t.children;s.sort((t,e)=>Number.isNaN(t.sort)?1:Number.isNaN(e.sort)?-1:t.sort-e.sort);for(let t of s){t.children.sort((t,e)=>Number.isNaN(t.sort)?1:Number.isNaN(e.sort)?-1:t.sort-e.sort)}}}return a.sort((t,e)=>Number.isNaN(t.sort)?1:Number.isNaN(e.sort)?-1:t.sort-e.sort),a},x=async(t,e)=>(await h.get(`/appAuth/getAccessToken?appKey=${t}&appSecret=${e}`)).data,A=async(t,e)=>(await h.get(`/systhirdapp/user/getUserByCode?code=${t}&access_token=${e}`)).data,D=async(t,e,n)=>{let r={param:{userID:t,im_type:e,group_id:n}};return(await h.post("/dataservice/rest/orchestration/getIMUserSigByID",r)).data.userSig},T=(t,e)=>{if(e&&e.length>0)for(let n=0;n<e.length;n++)if(e[n].name==t)return e[n].default_value;return""},C=async t=>{let e={param:{groupID:t}};return(await h.post("/dataservice/rest/orchestration/getAllUserInfosByGroupID",e)).data.resultDatas},M=async t=>{let e={param:{officeID:t}};return(await h.post("/dataservice/rest/orchestration/getChildrenOfficeInfosByID",e)).data.resultDatas},k=async(t,e)=>{let n={param:{userID:t,groupID:e}},r=await h.post("/dataservice/rest/orchestration/getPojectDptsByUserAndGroupID",n);return{dptDatas:r.data.officeDatas,userMappings:r.data.userMappings}},S=async(t,e,n,r)=>{let i={param:{data:{userID:t,im_type:e,group_id:n,userSig:r}}};return(await h.post("/dataservice/rest/orchestration/addIMMapping",i)).data},N=async(t,e)=>{let n={param:{userID:t,groupID:e}};return(await h.post("/dataservice/rest/orchestration/getAIRobotInfos",n)).data.robotInfos},E=async(t,e,n,r)=>{let i={param:{userID:t,im_type:e,groupID:n,userSig:r}};return(await h.post("/dataservice/rest/orchestration/updateIMMapping",i)).data},L=async t=>{let e={param:{appID:t}},n=(await h.post("/dataservice/rest/orchestration/getAppCustomData",e)).data.customData;return n=n?JSON.parse(n):{},n};var O,P="user-agent",j="",$="function",R="object",B="string",U="undefined",V="browser",z="cpu",H="device",W="engine",F="os",K="result",G="name",q="type",X="vendor",J="version",Z="architecture",Y="major",Q="model",tt="console",et="mobile",nt="tablet",rt="smarttv",it="wearable",ot="xr",at="embedded",st="inapp",ut="brands",ct="formFactors",lt="fullVersionList",ft="platform",pt="platformVersion",dt="bitness",ht="sec-ch-ua",gt=ht+"-full-version-list",vt=ht+"-arch",wt=ht+"-"+dt,yt=ht+"-form-factors",_t=ht+"-"+et,mt=ht+"-"+Q,bt=ht+"-"+ft,It=bt+"-version",xt=[ut,lt,et,Q,ft,pt,Z,ct,dt],At="Amazon",Dt="Apple",Tt="ASUS",Ct="BlackBerry",Mt="Google",kt="Huawei",St="Lenovo",Nt="Honor",Et="LG",Lt="Microsoft",Ot="Motorola",Pt="Nvidia",jt="OnePlus",$t="OPPO",Rt="Samsung",Bt="Sharp",Ut="Sony",Vt="Xiaomi",zt="Zebra",Ht="Chrome",Wt="Chromium",Ft="Chromecast",Kt="Edge",Gt="Firefox",qt="Opera",Xt="Facebook",Jt="Sogou",Zt="Mobile ",Yt=" Browser",Qt="Windows",te=typeof window!==U&&window.navigator?window.navigator:void 0,ee=te&&te.userAgentData?te.userAgentData:void 0,ne=function(t){for(var e={},n=0;n<t.length;n++)e[t[n].toUpperCase()]=t[n];return e},re=function(t,e){if(typeof t===R&&t.length>0){for(var n in t)if(se(e)==se(t[n]))return!0;return!1}return!!oe(t)&&se(e)==se(t)},ie=function(t,e){for(var n in t)return/^(browser|cpu|device|engine|os)$/.test(n)||!!e&&ie(t[n])},oe=function(t){return typeof t===B},ae=function(t){if(t){for(var e=[],n=le(/\\?\"/g,t).split(","),r=0;r<n.length;r++)if(n[r].indexOf(";")>-1){var i=pe(n[r]).split(";v=");e[r]={brand:i[0],version:i[1]}}else e[r]=pe(n[r]);return e}},se=function(t){return oe(t)?t.toLowerCase():t},ue=function(t){return oe(t)?le(/[^\d\.]/g,t).split(".")[0]:void 0},ce=function(t){for(var e in t)if(t.hasOwnProperty(e)){var n=t[e];typeof n==R&&2==n.length?this[n[0]]=n[1]:this[n]=void 0}return this},le=function(t,e){return oe(e)?e.replace(t,j):e},fe=function(t){return le(/\\?\"/g,t)},pe=function(t,e){return t=le(/^\s\s*/,String(t)),typeof e===U?t:t.substring(0,e)},de=function(t,e){if(t&&e)for(var n,r,i,o,a,s,u=0;u<e.length&&!a;){var c=e[u],l=e[u+1];for(n=r=0;n<c.length&&!a&&c[n];)if(a=c[n++].exec(t))for(i=0;i<l.length;i++)s=a[++r],typeof(o=l[i])===R&&o.length>0?2===o.length?typeof o[1]==$?this[o[0]]=o[1].call(this,s):this[o[0]]=o[1]:o.length>=3&&(typeof o[1]!==$||o[1].exec&&o[1].test?3==o.length?this[o[0]]=s?s.replace(o[1],o[2]):void 0:4==o.length?this[o[0]]=s?o[3].call(this,s.replace(o[1],o[2])):void 0:o.length>4&&(this[o[0]]=s?o[3].apply(this,[s.replace(o[1],o[2])].concat(o.slice(4))):void 0):o.length>3?this[o[0]]=s?o[1].apply(this,o.slice(2)):void 0:this[o[0]]=s?o[1].call(this,s,o[2]):void 0):this[o]=s||void 0;u+=2}},he=function(t,e){for(var n in e)if(typeof e[n]===R&&e[n].length>0){for(var r=0;r<e[n].length;r++)if(re(e[n][r],t))return"?"===n?void 0:n}else if(re(e[n],t))return"?"===n?void 0:n;return e.hasOwnProperty("*")?e["*"]:t},ge={ME:"4.90","NT 3.51":"3.51","NT 4.0":"4.0",2e3:["5.0","5.01"],XP:["5.1","5.2"],Vista:"6.0",7:"6.1",8:"6.2",8.1:"6.3",10:["6.4","10.0"],NT:""},ve={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},we={Chrome:"Google Chrome",Edge:"Microsoft Edge","Edge WebView2":"Microsoft Edge WebView2","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"},ye={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[J,[G,Zt+"Chrome"]],[/webview.+edge\/([\w\.]+)/i],[J,[G,Kt+" WebView"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[J,[G,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[G,J],[/opios[\/ ]+([\w\.]+)/i],[J,[G,qt+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[J,[G,qt+" GX"]],[/\bopr\/([\w\.]+)/i],[J,[G,qt]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[J,[G,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[J,[G,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(atlas|flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:hi|lg |ovi|qute)browser|palemoon)\/v?([-\w\.]+)/i,/(brave)(?: chrome)?\/([\d\.]+)/i,/(aloha|heytap|ovi|115|surf|qwant)browser\/([\d\.]+)/i,/(qwant)(?:ios|mobile)\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[G,J],[/quark(?:pc)?\/([-\w\.]+)/i],[J,[G,"Quark"]],[/\bddg\/([\w\.]+)/i],[J,[G,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[J,[G,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[J,[G,"WeChat"]],[/konqueror\/([\w\.]+)/i],[J,[G,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[J,[G,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[J,[G,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[J,[G,"Smart "+St+Yt]],[/(av(?:ast|g|ira))\/([\w\.]+)/i],[[G,/(.+)/,"$1 Secure"+Yt],J],[/norton\/([\w\.]+)/i],[J,[G,"Norton Private"+Yt]],[/\bfocus\/([\w\.]+)/i],[J,[G,Gt+" Focus"]],[/ mms\/([\w\.]+)$/i],[J,[G,qt+" Neon"]],[/ opt\/([\w\.]+)$/i],[J,[G,qt+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[J,[G,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[J,[G,"Dolphin"]],[/coast\/([\w\.]+)/i],[J,[G,qt+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[J,[G,"MIUI"+Yt]],[/fxios\/([\w\.-]+)/i],[J,[G,Zt+Gt]],[/\bqihoobrowser\/?([\w\.]*)/i],[J,[G,"360"]],[/\b(qq)\/([\w\.]+)/i],[[G,/(.+)/,"$1Browser"],J],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[G,/(.+)/,"$1"+Yt],J],[/samsungbrowser\/([\w\.]+)/i],[J,[G,Rt+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[J,[G,Jt+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[G,Jt+" Mobile"],J],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[G,J],[/(lbbrowser|luakit|rekonq|steam(?= (clie|tenf|gameo)))/i],[G],[/ome\/([\w\.]+).+(iron(?= saf)|360(?=[es]e$))/i],[J,G],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[G,Xt],J,[q,st]],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(bing)(?:web|sapphire)\/([\w\.]+)/i,/(instagram|snapchat|klarna)[\/ ]([-\w\.]+)/i],[G,J,[q,st]],[/\bgsa\/([\w\.]+) .*safari\//i],[J,[G,"GSA"],[q,st]],[/(?:musical_ly|trill)(?:.+app_?version\/|_)([\w\.]+)/i],[J,[G,"TikTok"],[q,st]],[/\[(linkedin)app\]/i],[G,[q,st]],[/(zalo(?:app)?)[\/\sa-z]*([\w\.-]+)/i],[[G,/(.+)/,"Zalo"],J,[q,st]],[/(chromium)[\/ ]([-\w\.]+)/i],[G,J],[/ome-(lighthouse)$/i],[G,[q,"fetcher"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[J,[G,Ht+" Headless"]],[/wv\).+chrome\/([\w\.]+).+edgw\//i],[J,[G,Kt+" WebView2"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[G,Ht+" WebView"],J],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[J,[G,"Android"+Yt]],[/chrome\/([\w\.]+) mobile/i],[J,[G,Zt+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[G,J],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[J,[G,Zt+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[G,Zt+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[J,G],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[G,[J,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[G,J],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[G,Zt+Gt],J],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[G,"Netscape"],J],[/(wolvic|librewolf)\/([\w\.]+)/i],[G,J],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[J,[G,Gt+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+(?= .+rv\:.+gecko\/\d+)|[0-4][\w\.]+(?!.+compatible))/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[G,[J,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[G,[J,/[^\d\.]+./,j]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[Z,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[Z,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[Z,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[Z,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[Z,"arm"]],[/ sun4\w[;\)]/i],[[Z,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i,/((ppc|powerpc)(64)?)( mac|;|\))/i,/(?:osf1|[freopnt]{3,4}bsd) (alpha)/i],[[Z,/ower/,j,se]],[/mc680.0/i],[[Z,"68k"]],[/winnt.+\[axp/i],[[Z,"alpha"]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[Q,[X,Rt],[q,nt]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr]|browser)[-\w]+)/i,/sec-(sgh\w+)/i],[Q,[X,Rt],[q,et]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)[\/\);]/i],[Q,[X,Dt],[q,et]],[/\b(?:ios|apple\w+)\/.+[\(\/](ipad)/i,/\b(ipad)[\d,]*[;\] ].+(mac |i(pad)?)os/i],[Q,[X,Dt],[q,nt]],[/(macintosh);/i],[Q,[X,Dt]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[Q,[X,Bt],[q,et]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[Q,[X,Nt],[q,nt]],[/honor([-\w ]+)[;\)]/i],[Q,[X,Nt],[q,et]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[Q,[X,kt],[q,nt]],[/(?:huawei) ?([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][\dc][adnt]?)\b(?!.+d\/s)/i],[Q,[X,kt],[q,et]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b(?:xiao)?((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[Q,/_/g," "],[X,Vt],[q,nt]],[/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/oid[^\)]+; (redmi[\-_ ]?(?:note|k)?[\w_ ]+|m?[12]\d[01]\d\w{3,6}|poco[\w ]+|(shark )?\w{3}-[ah]0|qin ?[1-3](s\+|ultra| pro)?)( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note|max|cc)?[_ ]?(?:\d{0,2}\w?)[_ ]?(?:plus|se|lite|pro)?( 5g|lte)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[Q,/_/g," "],[X,Vt],[q,et]],[/droid.+; (cph2[3-6]\d[13579]|((gm|hd)19|(ac|be|in|kb)20|(d[en]|eb|le|mt)21|ne22)[0-2]\d|p[g-l]\w[1m]10)\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[Q,[X,jt],[q,et]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[Q,[X,$t],[q,et]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[Q,[X,he,{OnePlus:["203","304","403","404","413","415"],"*":$t}],[q,nt]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[Q,[X,"BLU"],[q,et]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[Q,[X,"Vivo"],[q,et]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[Q,[X,"Realme"],[q,et]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[Q,[X,St],[q,nt]],[/lenovo[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i],[Q,[X,St],[q,et]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ]([\w\s]+)(\)| bui)/i,/((?:moto(?! 360)[-\w\(\) ]+|xt\d{3,4}[cgkosw\+]?[-\d]*|nexus 6)(?= bui|\)))/i],[Q,[X,Ot],[q,et]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[Q,[X,Ot],[q,nt]],[/\b(?:lg)?([vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[Q,[X,Et],[q,nt]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch|webos))(\w+)/i,/\blg-?([\d\w]+) bui/i],[Q,[X,Et],[q,et]],[/(nokia) (t[12][01])/i],[X,Q,[q,nt]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*?))( bui|\)|;|\/)/i],[[Q,/_/g," "],[q,et],[X,"Nokia"]],[/(pixel (c|tablet))\b/i],[Q,[X,Mt],[q,nt]],[/droid.+;(?: google)? (g(01[13]a|020[aem]|025[jn]|1b60|1f8f|2ybb|4s1m|576d|5nz6|8hhn|8vou|a02099|c15s|d1yq|e2ae|ec77|gh2x|kv4x|p4bc|pj41|r83y|tt9q|ur25|wvk6)|pixel[\d ]*a?( pro)?( xl)?( fold)?( \(5g\))?)( bui|\))/i],[Q,[X,Mt],[q,et]],[/(google) (pixelbook( go)?)/i],[X,Q],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-\w\w\d\d)(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[Q,[X,Ut],[q,et]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[Q,"Xperia Tablet"],[X,Ut],[q,nt]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[Q,[X,At],[q,nt]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[Q,/(.+)/g,"Fire Phone $1"],[X,At],[q,et]],[/(playbook);[-\w\),; ]+(rim)/i],[Q,X,[q,nt]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/(?:blackberry|\(bb10;) (\w+)/i],[Q,[X,Ct],[q,et]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[Q,[X,Tt],[q,nt]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[Q,[X,Tt],[q,et]],[/(nexus 9)/i],[Q,[X,"HTC"],[q,nt]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[X,[Q,/_/g," "],[q,et]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[Q,[X,"TCL"],[q,nt]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[Q,[X,"TCL"],[q,et]],[/(itel) ((\w+))/i],[[X,se],Q,[q,he,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[Q,[X,"Acer"],[q,nt]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[Q,[X,"Meizu"],[q,et]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[Q,[X,"Ulefone"],[q,et]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[Q,[X,"Energizer"],[q,et]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[Q,[X,"Cat"],[q,et]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[Q,[X,"Smartfren"],[q,et]],[/droid.+; (a(in)?(0(15|59|6[35])|142)p?)/i],[Q,[X,"Nothing"],[q,et]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[Q,[X,"Archos"],[q,nt]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[Q,[X,"Archos"],[q,et]],[/; (n159v)/i],[Q,[X,"HMD"],[q,et]],[/(imo) (tab \w+)/i,/(infinix|tecno) (x1101b?|p904|dp(7c|8d|10a)( pro)?|p70[1-3]a?|p904|t1101)/i],[X,Q,[q,nt]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|hmd|imo|infinix|lava|oneplus|tcl|wiko)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(oppo) ?([\w ]+) bui/i,/(hisense) ([ehv][\w ]+)\)/i,/droid[^;]+; (philips)[_ ]([sv-x][\d]{3,4}[xz]?)/i],[X,Q,[q,et]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[X,Q,[q,nt]],[/(surface duo)/i],[Q,[X,Lt],[q,nt]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[Q,[X,"Fairphone"],[q,et]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[Q,[X,Pt],[q,nt]],[/(sprint) (\w+)/i],[X,Q,[q,et]],[/(kin\.[onetw]{3})/i],[[Q,/\./g," "],[X,Lt],[q,et]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[Q,[X,zt],[q,nt]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[Q,[X,zt],[q,et]],[/(philips)[\w ]+tv/i,/smart-tv.+(samsung)/i],[X,[q,rt]],[/hbbtv.+maple;(\d+)/i],[[Q,/^/,"SmartTV"],[X,Rt],[q,rt]],[/(vizio)(?: |.+model\/)(\w+-\w+)/i,/tcast.+(lg)e?. ([-\w]+)/i],[X,Q,[q,rt]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[X,Et],[q,rt]],[/(apple) ?tv/i],[X,[Q,Dt+" TV"],[q,rt]],[/crkey.*devicetype\/chromecast/i],[[Q,Ft+" Third Generation"],[X,Mt],[q,rt]],[/crkey.*devicetype\/([^/]*)/i],[[Q,/^/,"Chromecast "],[X,Mt],[q,rt]],[/fuchsia.*crkey/i],[[Q,Ft+" Nest Hub"],[X,Mt],[q,rt]],[/crkey/i],[[Q,Ft],[X,Mt],[q,rt]],[/(portaltv)/i],[Q,[X,Xt],[q,rt]],[/droid.+aft(\w+)( bui|\))/i],[Q,[X,At],[q,rt]],[/(shield \w+ tv)/i],[Q,[X,Pt],[q,rt]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[Q,[X,Bt],[q,rt]],[/(bravia[\w ]+)( bui|\))/i],[Q,[X,Ut],[q,rt]],[/(mi(tv|box)-?\w+) bui/i],[Q,[X,Vt],[q,rt]],[/Hbbtv.*(technisat) (.*);/i],[X,Q,[q,rt]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[X,/.+\/(\w+)/,"$1",he,{LG:"lge"}],[Q,pe],[q,rt]],[/(playstation \w+)/i],[Q,[X,Ut],[q,tt]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[Q,[X,Lt],[q,tt]],[/(ouya)/i,/(nintendo) (\w+)/i,/(retroid) (pocket ([^\)]+))/i,/(valve).+(steam deck)/i,/droid.+; ((shield|rgcube|gr0006))( bui|\))/i],[[X,he,{Nvidia:"Shield",Anbernic:"RGCUBE",Logitech:"GR0006"}],Q,[q,tt]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[Q,[X,Rt],[q,it]],[/((pebble))app/i,/(asus|google|lg|oppo|xiaomi) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[X,Q,[q,it]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[Q,[X,$t],[q,it]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[Q,[X,Dt],[q,it]],[/(opwwe\d{3})/i],[Q,[X,jt],[q,it]],[/(moto 360)/i],[Q,[X,Ot],[q,it]],[/(smartwatch 3)/i],[Q,[X,Ut],[q,it]],[/(g watch r)/i],[Q,[X,Et],[q,it]],[/droid.+; (wt63?0{2,3})\)/i],[Q,[X,zt],[q,it]],[/droid.+; (glass) \d/i],[Q,[X,Mt],[q,ot]],[/(pico) ([\w ]+) os\d/i],[X,Q,[q,ot]],[/(quest( \d| pro)?s?).+vr/i],[Q,[X,Xt],[q,ot]],[/mobile vr; rv.+firefox/i],[[q,ot]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[X,[q,at]],[/(aeobc)\b/i],[Q,[X,At],[q,at]],[/(homepod).+mac os/i],[Q,[X,Dt],[q,at]],[/windows iot/i],[[q,at]],[/droid.+; ([\w- ]+) (4k|android|smart|google)[- ]?tv/i],[Q,[q,rt]],[/\b((4k|android|smart|opera)[- ]?tv|tv; rv:|large screen[\w ]+safari)\b/i],[[q,rt]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew|; hmsc).+?(mobile|vr|\d) safari/i],[Q,[q,he,{mobile:"Mobile",xr:"VR","*":nt}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[q,nt]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[q,et]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[Q,[X,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[J,[G,Kt+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[G,J],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[J,[G,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links|dillo)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[G,J],[/ladybird\//i],[[G,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[J,G]],os:[[/(windows nt) (6\.[23]); arm/i],[[G,/N/,"R"],[J,he,ge]],[/(windows (?:phone|mobile|iot))(?: os)?[\/ ]?([\d\.]*( se)?)/i,/(windows)[\/ ](1[01]|2000|3\.1|7|8(\.1)?|9[58]|me|server 20\d\d( r2)?|vista|xp)/i],[G,J],[/windows nt ?([\d\.\)]*)(?!.+xbox)/i,/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d\.;]*)/i],[[J,/(;|\))/g,"",he,ge],[G,Qt]],[/(windows ce)\/?([\d\.]*)/i],[G,J],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv|ios(?=.+ip(?:ad|hone)|.+apple ?tv)|ip(?:ad|hone)(?: |.+i(?:pad)?)os|apple ?tv.+ios)[\/ ]([\w\.]+)/i,/\btvos ?([\w\.]+)/i,/cfnetwork\/.+darwin/i],[[J,/_/g,"."],[G,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i],[[G,"macOS"],[J,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[J,[G,Ft+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[J,[G,Ft+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[J,[G,Ft+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[J,[G,Ft+" Linux"]],[/crkey\/([\d\.]+)/i],[J,[G,Ft]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[J,G],[/(ubuntu) ([\w\.]+) like android/i],[[G,/(.+)/,"$1 Touch"],J],[/(harmonyos)[\/ ]?([\d\.]*)/i,/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen)\w*[-\/\.; ]?([\d\.]*)/i],[G,J],[/\(bb(10);/i],[J,[G,Ct]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[J,[G,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile[;\w ]*|tablet|tv|[^\)]*(?:viera|lg(?:l25|-d300)|alcatel ?o.+|y300-f1)); rv:([\w\.]+)\).+gecko\//i],[J,[G,Gt+" OS"]],[/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i,/webos(?:[ \/]?|\.tv-20(?=2[2-9]))(\d[\d\.]*)/i],[J,[G,"webOS"]],[/web0s;.+?(?:chr[o0]me|safari)\/(\d+)/i],[[J,he,{25:"120",24:"108",23:"94",22:"87",6:"79",5:"68",4:"53",3:"38",2:"538",1:"537","*":"TV"}],[G,"webOS"]],[/watch(?: ?os[,\/ ]|\d,\d\/)([\d\.]+)/i],[J,[G,"watchOS"]],[/cros [\w]+(?:\)| ([\w\.]+)\b)/i],[J,[G,"Chrome OS"]],[/kepler ([\w\.]+); (aft|aeo)/i],[J,[G,"Vega OS"]],[/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/linux.+(mint)[\/\(\) ]?([\w\.]*)/i,/(mageia|vectorlinux|fuchsia|arcaos|arch(?= ?linux))[;l ]([\d\.]*)/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire|knoppix)(?: gnu[\/ ]linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/\b(aix)[; ]([1-9\.]{0,4})/i,/(hurd|linux|morphos)(?: (?:arm|x86|ppc)\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) ?(r\d)?/i],[G,J],[/(sunos) ?([\d\.]*)/i],[[G,"Solaris"],J],[/\b(beos|os\/2|amigaos|openvms|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[G,J]]},_e=(ce.call((O={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}}).init,[[V,[G,J,Y,q]],[z,[Z]],[H,[q,Q,X]],[W,[G,J]],[F,[G,J]]]),ce.call(O.isIgnore,[[V,[J,Y]],[W,[J]],[F,[J]]]),ce.call(O.isIgnoreRgx,[[V,/ ?browser$/i],[F,/ ?os$/i]]),ce.call(O.toString,[[V,[G,J]],[z,[Z]],[H,[X,Q]],[W,[G,J]],[F,[G,J]]]),O),me=function(t,e){var n=_e.init[e],r=_e.isIgnore[e]||0,i=_e.isIgnoreRgx[e]||0,o=_e.toString[e]||0;function a(){ce.call(this,n)}return a.prototype.getItem=function(){return t},a.prototype.withClientHints=function(){return ee?ee.getHighEntropyValues(xt).then(function(e){return t.setCH(new be(e,!1)).parseCH().get()}):t.parseCH().get()},a.prototype.withFeatureCheck=function(){return t.detectFeature().get()},e!=K&&(a.prototype.is=function(t){var e=!1;for(var n in this)if(this.hasOwnProperty(n)&&!re(r,n)&&se(i?le(i,this[n]):this[n])==se(i?le(i,t):t)){if(e=!0,t!=U)break}else if(t==U&&e){e=!e;break}return e},a.prototype.toString=function(){var t=j;for(var e in o)typeof this[o[e]]!==U&&(t+=(t?" ":j)+this[o[e]]);return t||U}),a.prototype.then=function(t){var e=this,n=function(){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])};n.prototype={is:a.prototype.is,toString:a.prototype.toString,withClientHints:a.prototype.withClientHints,withFeatureCheck:a.prototype.withFeatureCheck};var r=new n;return t(r),r},new a};function be(t,e){if(t=t||{},ce.call(this,xt),e)ce.call(this,[[ut,ae(t[ht])],[lt,ae(t[gt])],[et,/\?1/.test(t[_t])],[Q,fe(t[mt])],[ft,fe(t[bt])],[pt,fe(t[It])],[Z,fe(t[vt])],[ct,ae(t[yt])],[dt,fe(t[wt])]]);else for(var n in t)this.hasOwnProperty(n)&&typeof t[n]!==U&&(this[n]=t[n])}function Ie(t,e,n,r){return ce.call(this,[["itemType",t],["ua",e],["uaCH",r],["rgxMap",n],["data",me(this,t)]]),this}function xe(t,e,n){if(typeof t===R?(ie(t,!0)?(typeof e===R&&(n=e),e=t):(n=t,e=void 0),t=void 0):typeof t!==B||ie(e,!0)||(n=e,e=void 0),n)if(typeof n.append===$){var r={};n.forEach(function(t,e){r[String(e).toLowerCase()]=t}),n=r}else{var i={};for(var o in n)n.hasOwnProperty(o)&&(i[String(o).toLowerCase()]=n[o]);n=i}if(!(this instanceof xe))return new xe(t,e,n).getResult();var a=typeof t===B?t:n&&n[P]?n[P]:te&&te.userAgent?te.userAgent:j,s=new be(n,!0),u=e?function(t,e){var n={},r=e;if(!ie(e))for(var i in r={},e)for(var o in e[i])r[o]=e[i][o].concat(r[o]?r[o]:[]);for(var a in t)n[a]=r[a]&&r[a].length%2==0?r[a].concat(t[a]):t[a];return n}(ye,e):ye,c=function(t){return t==K?function(){return new Ie(t,a,u,s).set("ua",a).set(V,this.getBrowser()).set(z,this.getCPU()).set(H,this.getDevice()).set(W,this.getEngine()).set(F,this.getOS()).get()}:function(){return new Ie(t,a,u[t],s).parseUA().get()}};return ce.call(this,[["getBrowser",c(V)],["getCPU",c(z)],["getDevice",c(H)],["getEngine",c(W)],["getOS",c(F)],["getResult",c(K)],["getUA",function(){return a}],["setUA",function(t){return oe(t)&&(a=pe(t,500)),this}]]).setUA(a),this}Ie.prototype.get=function(t){return t?this.data.hasOwnProperty(t)?this.data[t]:void 0:this.data},Ie.prototype.set=function(t,e){return this.data[t]=e,this},Ie.prototype.setCH=function(t){return this.uaCH=t,this},Ie.prototype.detectFeature=function(){if(te&&te.userAgent==this.ua)switch(this.itemType){case V:te.brave&&typeof te.brave.isBrave==$&&this.set(G,"Brave");break;case H:!this.get(q)&&ee&&ee[et]&&this.set(q,et),"Macintosh"==this.get(Q)&&te&&typeof te.standalone!==U&&te.maxTouchPoints&&te.maxTouchPoints>2&&this.set(Q,"iPad").set(q,nt);break;case F:!this.get(G)&&ee&&ee[ft]&&this.set(G,ee[ft]);break;case K:var t=this.data,e=function(e){return t[e].getItem().detectFeature().get()};this.set(V,e(V)).set(z,e(z)).set(H,e(H)).set(W,e(W)).set(F,e(F))}return this},Ie.prototype.parseUA=function(){switch(this.itemType!=K&&de.call(this.data,this.ua,this.rgxMap),this.itemType){case V:this.set(Y,ue(this.get(J)));break;case F:if("iOS"==this.get(G)&&"18.6"==this.get(J)){var t=/\) Version\/([\d\.]+)/.exec(this.ua);t&&parseInt(t[1].substring(0,2),10)>=26&&this.set(J,t[1])}}return this},Ie.prototype.parseCH=function(){var t=this.uaCH,e=this.rgxMap;switch(this.itemType){case V:case W:var n,r=t[lt]||t[ut];if(r)for(var i=0;i<r.length;i++){var o=r[i].brand||r[i],a=r[i].version;this.itemType==V&&!/not.a.brand/i.test(o)&&(!n||/Chrom/.test(n)&&o!=Wt||n==Kt&&/WebView2/.test(o))&&(o=he(o,we),(n=this.get(G))&&!/Chrom/.test(n)&&/Chrom/.test(o)||this.set(G,o).set(J,a).set(Y,ue(a)),n=o),this.itemType==W&&o==Wt&&this.set(J,a)}break;case z:var s=t[Z];s&&(s&&"64"==t[dt]&&(s+="64"),de.call(this.data,s+";",e));break;case H:if(t[et]&&this.set(q,et),t[Q]&&(this.set(Q,t[Q]),!this.get(q)||!this.get(X))){var u={};de.call(u,"droid 9; "+t[Q]+")",e),!this.get(q)&&u.type&&this.set(q,u.type),!this.get(X)&&u.vendor&&this.set(X,u.vendor)}if(t[ct]){var c;if("string"!=typeof t[ct])for(var l=0;!c&&l<t[ct].length;)c=he(t[ct][l++],ve);else c=he(t[ct],ve);this.set(q,c)}break;case F:var f=t[ft];if(f){var p=t[pt];f==Qt&&(p=parseInt(ue(p),10)>=13?"11":"10"),this.set(G,f).set(J,p)}this.get(G)==Qt&&"Xbox"==t[Q]&&this.set(G,"Xbox").set(J,void 0);break;case K:var d=this.data,h=function(e){return d[e].getItem().setCH(t).parseCH().get()};this.set(V,h(V)).set(z,h(z)).set(H,h(H)).set(W,h(W)).set(F,h(F))}return this},xe.VERSION="2.0.9",xe.BROWSER=ne([G,J,Y,q]),xe.CPU=ne([Z]),xe.DEVICE=ne([Q,X,q,tt,et,rt,nt,it,at]),xe.ENGINE=xe.OS=ne([G,J]);const Ae=(t,e,n)=>window.customI18nObject?.get(`${e}-${t}-${n}`)||t;function De(t){if(!t)return null;const e=t.match(/\$L\{([^}]+)\}/);return e?{fullMatch:e[0],key:e[1]}:null}const Te=t=>{const e={result:!1,innerHTMLMatch:null},n=t.classList;if(!n)return e;if(n.contains("ant-table-cell")){let n=t.innerHTML;if(n.includes("序号")||n.includes("Serial No.")){let t={oldValue:"$L{序号}"};return e.result=!0,e.innerHTMLMatch=t,e}if("操作"==n){let t={oldValue:"$L{操作}"};return e.result=!0,e.innerHTMLMatch=t,e}}if(n.contains("export_menu")){let n=t.innerHTML;if(n.includes("导出进度")||n.includes("Export progress")){let t={oldValue:"$L{导出进度}"};return e.result=!0,e.innerHTMLMatch=t,e}}if(n.contains("total_pag_num")){let n=t.innerHTML;if(n.includes("共")&&n.includes("条")||n.includes("Total")&&n.includes("pieces")){let n={isScriptAction:!0,scriptFunction:(e,n)=>{let r=null;for(let e of t.childNodes)"SPAN"===e.tagName&&(r=e);let i=[{nodeType:Node.TEXT_NODE,key:"共"},{nodeType:"SCRIPTNODE",node:r},{nodeType:Node.TEXT_NODE,key:"条"}];for(let e=0;e<t.childNodes.length;e++){let n=t.childNodes[e];n.nodeType===Node.TEXT_NODE&&t.removeChild(n)}for(let r=0;r<i.length;r++){let o=i[r];if(o.nodeType===Node.TEXT_NODE){let r=document.createTextNode(Ae(o.key,e,n)||o.key);t.appendChild(r)}"SCRIPTNODE"===o.nodeType&&t.appendChild(o.node)}}};return e.result=!0,e.innerHTMLMatch=n,e}}if(n.contains("ant-pagination-options-quick-jumper")){let n=t.innerHTML;if(n.includes("跳至")&&n.includes("页")||n.includes("Go to")&&n.includes("Page")){let n={isScriptAction:!0,scriptFunction:(e,n)=>{let r=null;for(let e of t.childNodes)"INPUT"===e.tagName&&(r=e);let i=[{nodeType:Node.TEXT_NODE,key:"跳至"},{nodeType:"SCRIPTNODE",node:r},{nodeType:Node.TEXT_NODE,key:"页"}];for(let e=0;e<t.childNodes.length;e++){let n=t.childNodes[e];n.nodeType===Node.TEXT_NODE&&t.removeChild(n)}for(let r=0;r<i.length;r++){let o=i[r];if(o.nodeType===Node.TEXT_NODE){let r=document.createTextNode(Ae(o.key,e,n)||o.key);t.appendChild(r)}"SCRIPTNODE"===o.nodeType&&t.appendChild(o.node)}}};return e.result=!0,e.innerHTMLMatch=n,e}}if(n.contains("ant-select-selection-item")||n.contains("ant-select-item-option-content")){let n=t.innerHTML;if(n.includes("/")&&n.includes("page")||n.includes("/")&&n.includes("条")&&n.includes("页")){let r=t.innerHTML;n.includes("page")&&(r=r.replace("page","$L{页}")),n.includes("页")&&(r=r.replace("页","$L{页}")),n.includes("条")&&(r=r.replace("条","$L{条}"));let i={oldValue:r};return e.result=!0,e.innerHTMLMatch=i,e}}if(n.contains("ant-popover-message-title")){let n=t.innerHTML;if(n.includes("确认执行:")||n.includes("Confirm Execution:")){let t={oldValue:"$L{操作确认:删除?}"};return e.result=!0,e.innerHTMLMatch=t,e}}if(n.contains("ant-btn")&&!n.contains("saveBtn")){let n=t.innerHTML;if(n.includes("Cancel")||n.includes("取消")){let t={oldValue:"$L{取消}"};return e.result=!0,e.innerHTMLMatch=t,e}if(n.includes("确定")||n.includes("OK")){let t={oldValue:"$L{确定}"};return e.result=!0,e.innerHTMLMatch=t,e}}return e},Ce=t=>{const e={result:!1,innerHTMLMatch:null},n=t.classList;if(!n)return e;let r=t.innerHTML,i=t.getAttribute("oldValue");if(i||(i=r),n.contains("catalog_name_content")){let n={oldValue:i,isScriptAction:!0,scriptFunction:(e,n)=>{for(let r=0;r<t.childNodes.length;r++){let i=t.childNodes[r];if(i.nodeType===Node.TEXT_NODE){let r=De(t.getAttribute("oldValue"));if(r){t.removeChild(i);let o=r.key,a=document.createTextNode(Ae(o,e,n)||o);t.appendChild(a)}else t.appendChild(i)}else t.appendChild(i)}}};return e.result=!0,e.innerHTMLMatch=n,e}if(n.contains("catalog-tree-search")){let n={oldValue:i,isScriptAction:!0,scriptFunction:(e,n)=>{for(let e=0;e<t.childNodes.length;e++){let n=t.childNodes[e];if("INPUT"===n.tagName){if(!n.getAttribute("oldplaceholderValue")){let t=n.getAttribute("placeholder");t&&(t=`$L{${t}}`),n.setAttribute("placeholder",t)}}}}};return e.result=!0,e.innerHTMLMatch=n,e}return e};function Me(t,e){const n=document.createElement("div");n.innerHTML=t;return n.childNodes[e].textContent}const ke=t=>{const e={result:!1,innerHTMLMatch:null};if("BUTTON"===t.tagName||"P"===t.tagName){let n=t.innerHTML,r=t.getAttribute("oldValue");r||(r=n);let i=!!De(r),o=(e,n)=>{let r=[];for(let i=0;i<t.childNodes.length;i++){let o=t.childNodes[i];if(o.nodeType===Node.TEXT_NODE){let a=t.getAttribute("oldValue");const s=/\$L\{([^}]+)\}/g;if(De(a)){let t,o=Me(a,i);for(;null!==(t=s.exec(a));){const r=t[0],i=t[1],a=Ae(i,e,n);o=o.replace(r,a)}let u=document.createTextNode(o);r.push(u)}else r.push(o)}else r.push(o)}t.innerHTML="",r.forEach(e=>{t.appendChild(e)})},a={oldValue:r,isScriptAction:!0,scriptFunction:o};return e.result=i,e.innerHTMLMatch=a,e}return e};function Se(t){const e=t.trim().toLowerCase(),n={mon:"周一",monday:"周一",mondays:"周一",tue:"周二",tues:"周二",tuesday:"周二",tuesdays:"周二",wed:"周三",wednesday:"周三",wednesdays:"周三",thu:"周四",thur:"周四",thurs:"周四",thursday:"周四",thursdays:"周四",fri:"周五",friday:"周五",fridays:"周五",sat:"周六",saturday:"周六",saturdays:"周六",sun:"周日",sunday:"周日",sundays:"周日"};if(!/^(mon(day)?s?\.?|tue(sday)?s?\.?|wed(nesday)?s?\.?|thu(r(sday)?)?s?\.?|fri(day)?s?\.?|sat(urday)?s?\.?|sun(day)?s?\.?)$/i.test(e))return"未知日期";const r=e.replace(/\./g,"").replace(/s$/,"");return n[r.startsWith("thu")?"thu":r.slice(0,3)]||n[r]||"未知日期"}function Ne(t){const e=/(?:(\b(0?[1-9]|[12]\d|3[01])\b)(?=日))|(\b(0?[1-9]|[12]\d|3[01])\b)/g,n=[];let r;for(;null!==(r=e.exec(t));){const t=r[2]||r[4];if(t){const e=parseInt(t,10);e>=1&&e<=31&&n.push(e)}}return n}function Ee(t){const e=[];return[/Other\s+(\d+)\s+pieces of data/gi,/其他\s+(\d+)\s+条记录/g].forEach(n=>{let r;for(;null!==(r=n.exec(t));){const t=parseInt(r[1],10);e.push({scenario:r[0],number:t,type:n.source.includes("Other")?"English":"Chinese"})}}),e}const Le=t=>{const e={result:!1,innerHTMLMatch:null},n=t.classList;if(!n)return e;if(n.contains("fc-toolbar-title")){let n=(e,n)=>{let r=function(t){const e=t.matchAll(/(\d{4})年(0?[1-9]|1[0-2])月/g),n=[];for(const t of e){const e=parseInt(t[1],10),r=parseInt(t[2],10);n.push({year:e,month:r})}return n}(t.getAttribute("oldValue"));if(r.length>0){let e=r[0],n=e.year,i=e.month,o=`${n}/${i}`;"zh-CN"===(window.localStorage.getItem("iportal_localID")||"zh-CN")&&(o=`${n}年${i}月`),t.innerHTML=o}},r=t.innerHTML;if(/^\d{4}年(0?[1-9]|1[0-2])月$/.test(r)){let t={oldValue:r,isScriptAction:!0,scriptFunction:n};return e.result=!0,e.innerHTMLMatch=t,e}}if(n.contains("fc-today-button")){let n=t.innerHTML;if(n.includes("今天")||n.includes("today")){let t={oldValue:"$L{今天}"};return e.result=!0,e.innerHTMLMatch=t,e}}if(n.contains("fullCalendar_title_value")){let n=t.innerHTML;const r=/周[一二三四五六日]/,i=/^(mon(day)?s?\.?|tue(sday)?s?\.?|wed(nesday)?s?\.?|thu(r(sday)?)?s?\.?|fri(day)?s?\.?|sat(urday)?s?\.?|sun(day)?s?\.?)$/i;let o=n.match(r);if(o){let t={oldValue:`$L{${o[0]}}`};return e.result=!0,e.innerHTMLMatch=t,e}if(o=n.match(i),o){let t={oldValue:`$L{${Se(o[0])}}`};return e.result=!0,e.innerHTMLMatch=t,e}}if(n.contains("fc-daygrid-day-number")){let n=(e,n)=>{let r=Ne(t.getAttribute("oldValue"));if(r&&r.length>0){let e=r[0],n=`${e}`;"zh-CN"===(window.localStorage.getItem("iportal_localID")||"zh-CN")&&(n=`${e}日`),t.innerHTML=n}},r=t.innerHTML;if(Ne(r).length>0){let t={oldValue:r,isScriptAction:!0,scriptFunction:n};return e.result=!0,e.innerHTMLMatch=t,e}}if(n.contains("fc-daygrid-more-link")){let n=(e,n)=>{let r=Ee(t.getAttribute("oldValue"));if(r&&r.length>0){let i=r[0].number,o="另外${X}条数据";o=Ae(o,e,n),o=o.replace("${X}",i),t.innerHTML=o}},r=t.innerHTML;if(Ee(r).length>0){let t={oldValue:r,isScriptAction:!0,scriptFunction:n};return e.result=!0,e.innerHTMLMatch=t,e}}if(n.contains("fc-popover-title")){const n=/(\d{4})年(\d{1,2})月(\d{1,2})日/g;let r=(e,r)=>{let i=t.getAttribute("oldValue");if(i.match(n)){const e=i.replace(n,function(t,e,n,r){const i=n.padStart(2,"0"),o=r.padStart(2,"0");let a=`${e}/${i}/${o}`;return"zh-CN"===(window.localStorage.getItem("iportal_localID")||"zh-CN")&&(a=`${e}年${i}月${o}日`),a});t.innerHTML=e}},i=t.innerHTML,o=i.match(n);if(o&&o.length>0){let t={oldValue:i,isScriptAction:!0,scriptFunction:r};return e.result=!0,e.innerHTMLMatch=t,e}}return e},Oe=t=>{const e={result:!1,innerHTMLMatch:null},n=t.classList;if(!n)return e;if(t.getAttribute("oldValue"),n.contains("ant-modal-title")){let n=t.innerHTML;if(n.includes("Select Data")||n.includes("选择数据")){let t={oldValue:"$L{选择数据}"};return e.result=!0,e.innerHTMLMatch=t,e}}return e},Pe=t=>{const e={result:!1},n=t.classList;if(!n)return e;if("DIV"===t.tagName&&n.contains("template-block")){let n=(e,n)=>{let r,i,o,a,s=t.parentNode;s&&"DIV"===s.tagName&&(r=s.parentNode,r&&"DIV"===r.tagName&&(i=r.parentNode,i&&"DIV"===i.tagName&&i.classList.contains("application-block")&&(o=i.parentNode,o&&"DIV"===o.tagName&&o.classList.contains("componentDiv")&&(a=o.parentNode,a&&"DIV"===a.tagName&&a.classList.contains("render-all-blocks")&&(a.style.height="100%",o.style.height="100%",i.style.height="100%",r.style.height="100%",s.style.height="100%",t.style.height="100%",t.setAttribute("viewDomID",`rjview_${Date.now()}`))))))};return e.result=!0,e.scriptFunction=n,e}return e};function je(t){let e=g(),n=window.localStorage.getItem("iportal_localID")||"zh-CN";return Ae(t,e,n)}function $e(t){return t&&t.children?.length>0}function Re(t){if(!t)return!1;if(t&&t.nodeType!==Node.ELEMENT_NODE)return!1;const e=$e(t);if(e){let e=t.children;for(let t=0;t<e.length;t++){let n=e[t];if(n.nodeType===Node.ELEMENT_NODE){let t=n.getAttribute("localDomID");t&&window.i18nElementsMap&&!window.i18nElementsMap.has(t)&&Be(n)}Re(e[t])}}let n=null;const r=(t=>{const e={result:!1,innerHTMLMatch:null};if(!t)return e;const n=["placeholder","title"];for(let r=0;r<n.length;r++){let i=n[r],o=t.getAttribute(i)||t[i];o&&De(o)&&(t.setAttribute(`old${i}Value`,o),e.result=!0)}return e.scriptFunction=(e,r)=>{for(let i=0;i<n.length;i++){let o=n[i];const a=t.getAttribute(`old${o}Value`);if(a){const n=/\$L\{([^}]+)\}/g;let i,s=a;for(;null!==(i=n.exec(a));){const t=i[0],n=i[1],o=Ae(n,e,r);s=s.replace(t,o)}t.setAttribute(o,s)}}},e})(t);r.result&&console.log("检查到属性匹配元素:",t);const i=function(t){let e=[Te,Ce,Le,Oe,ke];for(let n=0;n<e.length;n++){let r=(0,e[n])(t);if(r.result)return r}return{result:!1,innerHTMLMatch:null}}(t);if(i.result)n=i.innerHTMLMatch,t.setAttribute("oldValue",n.oldValue);else if(!e){let e=t.innerHTML,r=De(e);r?n=r:(e=t.getAttribute("oldValue"),e||(e=t.innerHTML),n=De(e)),n&&t.setAttribute("oldValue",e)}if(!n&&!i.result&&!r.result)return!1;let o=t.getAttribute("localDomID");return!o&&(window.idCounter=window.idCounter||0,o=`i18n_${Date.now()}_${window.idCounter++}`,t.setAttribute("localDomID",o),window.i18nElementsMap||(window.i18nElementsMap=new Map),window.i18nElementsMap.set(o,{dom:t,id:o,isScriptAction:n&&n.isScriptAction||!1,scriptFunction:n&&n.scriptFunction||null,isAttibuteAction:r.result,attrFunction:r.scriptFunction||null}),Ue(t),!0)}function Be(t){if(t&&1!==t.nodeType)return;if($e(t)){let e=t.children;for(let t=0;t<e.length;t++)Be(e[t])}const e=t.getAttribute("localDomID");e&&t.removeAttribute("localDomID"),e&&window.i18nElementsMap.has(e)&&window.i18nElementsMap.delete(e)}const Ue=async t=>{if(!t.parentNode)return Be(t),void console.log("元素已无父节点,移除缓存");let e=window.localStorage.getItem("iportal_localID")||"zh-CN",r=g();const i=t.getAttribute("localDomID"),o=window.i18nElementsMap.get(i);if(o)if(o.isAttibuteAction&&o.attrFunction(r,e),o.isScriptAction)o.scriptFunction(r,e);else{const i=t.getAttribute("oldValue");if(i){const o=/\$L\{([^}]+)\}/g;let a,s=i;for(;null!==(a=o.exec(i));){const t=a[0],n=a[1],i=Ae(n,r,e);s=s.replace(t,i)}n.nextTick(()=>{t.innerHTML=s})}}};function Ve(t){if(!t)return!1;if(t&&t.nodeType!==Node.ELEMENT_NODE)return!1;if($e(t)){let e=t.children;for(let t=0;t<e.length;t++){Ve(e[t])}}if(t.getAttribute("viewDomID"))return!1;const e=Pe(t);return!!e.result&&(e.scriptFunction(),!0)}const ze=async t=>{let e=await h.get(`/system/authority/logout?isMobileLogout=${t}`),n=JSON.parse(e.request.response),r=n.code;return"10110020"==r?(window.sessionStorage.clear(),{code:r,message:je(n.message)}):{code:r,message:je(n.message)}},He=async t=>{let n=await Ke();return e.AES.decrypt(t,n).toString(e.enc.Utf8)},We=async t=>{let n=await Ke();return e.AES.encrypt(t,n).toString()},Fe=async(t,e)=>{let n=await We(t.password),r={param:{account_view:t.account_view,groupid:t.groupid,password:n,account:t.account,appid:e}},i=await h.post("/ext/loginAccount",JSON.stringify(r)),o=i.data.code,a=i.data.key_code,s=i.data.old_code,u=i.data.id,c=i.data.message;if(10110004==o){a=await He(a),a=window.appSdk.Encrypt(a),r.param.password=a,i=await h.post(`/system/authority/loginAccount4Application?authPicCode=${t.imageCode}&dataappId=${e}&mobileOrWeb=web`,r.param);let n=JSON.parse(i.request.response);if(o=n.code,c=n.message,10110004==o){let n=u;const r=(new xe).getBrowser();let i=(new Date).getTime(),a=r.name+"_"+r.version+"_"+i;return window.sessionStorage.setItem("iportal_login_user_id",n),window.sessionStorage.setItem("iportal_group_id",t.groupid),window.sessionStorage.setItem("iportal_login_user_key",s),window.sessionStorage.setItem("iportal_client_id",a),window.sessionStorage.setItem("iportal_app_id",e),{code:o,message:je(c)}}return{code:o,message:je(c)}}return{code:o,message:je(c)}},Ke=async()=>(await h.post("/dataservice/rest/orchestration/getViewKey",{param:{}})).data.key,Ge=t=>{try{return new URL(t).pathname.split("/").pop()||"downloaded_file"}catch(t){return"downloaded_file"}},qe=async t=>{try{const e=await fetch(t,{method:"GET",headers:{Range:"bytes=0-0"}});if(206!==e.status)throw new Error("不支持 Range 请求");const n=e.headers.get("Content-Range"),r=n?.match(/\/(\d+)$/)?.[1];return r?parseInt(r,10):-1}catch(t){return console.error("获取文件大小失败:",t),-1}},Xe=(t,e)=>{window.sdataEventActions||(window.sdataEventActions={}),window.sdataEventActions[t]=e},Je=async(t,e,n,r,i)=>{let o=`${n}_${(new Date).getTime()}_${Math.floor(1e4*Math.random())+1}`;Xe(o,i);let a={eventOperateKey:o,eventKey:n,data:r};t.postMessage(a,e)};exports.ChatClientMgr=class{constructor(t,e){this.handler=e,this.actionKey=t.actionKey,this.appSKID=t.appSKID,this.imType=t.imType,this.groupID=t.groupID,this.userID=t.userID,this.chatType=t.chatType||0,this.singleChatID=t.singleChatID||"",this.customParams=t.customParams||{},this.chartOrigin=t.chartOrigin}makeKey(t){return`${t}-${this.actionKey}`}async init(){this.handler.addChatListener(this.makeKey("sdata_get_access_token"),async t=>await this.handler.getPortalAccessToken(t)),this.handler.addChatListener(this.makeKey("sdata_get_portal_user_info"),async t=>await this.handler.getPortalUserInfo(t)),this.handler.addChatListener(this.makeKey("sdata_get_portal_user_sig"),async t=>{let e=t.userID,n=t.im_type,r=t.group_id;return await this.handler.getPortalUserSig(e,n,r)}),this.handler.addChatListener(this.makeKey("sdata_add_im_mapping"),async t=>{let e=t.userID,n=t.im_type,r=t.userSig;return await this.handler.addIMMapping(e,n,r,this.groupID)}),this.handler.addChatListener(this.makeKey("sdata_update_im_mapping"),async t=>await this.handler.updateIMMapping(t)),this.handler.addChatListener(this.makeKey("sdata_get_users_by_group_id"),async t=>await this.handler.getAllUserInfosByGroupID(t)),this.handler.addChatListener(this.makeKey("sdata_get_dpts_by_group_id"),async t=>await this.handler.getChildrenOfficeInfosByID(t)),this.handler.addChatListener(this.makeKey("sdata_get_project_dpts_by_user_group_id"),async t=>await this.handler.getPojectDptsByUserAndGroupID(t)),this.handler.addChatListener(this.makeKey("sdata_get_ai_robot_infos"),async t=>{let e=t.groupID,n=t.userID;return this.userID==n&&this.groupID==e?this.getAIRobotInfos():[]}),this.handler.addChatListener(this.makeKey("sdata_get_test_user_sig"),async t=>{let e=t.SDKAppID,n=t.userID;return(await this.handler.genTestUserSig({SDKAppID:e,userID:n})).userSig}),this.handler.addChatListener(this.makeKey("sdata_send_message_to_chat_server"),async(t,e)=>{let n=t.message,r=n.from;return await this.sendMessageToChatServer(r,n)}),this.handler.addChatListener(this.makeKey("sdata_close_frame_window"),async(t,e)=>this.handler.closeWindow()),this.handler.addChatListener(this.makeKey("sdata_get_portal_doc_info"),async(t,e)=>this.handler.getPortalDocmentInfo(t)),this.handler.addChatListener(this.makeKey("sdata_chat_aiAgent_event"),async(t,e)=>this.handler.onAIAgentEvent(t,e)),this.handler.addChatListener(this.makeKey("sdata_alllife_event_regist"),async(t,e)=>{console.log("recive chat regist event data:",t),this.appSKID=t.appid,this.imType=t.im_type,await this.initChatAIs();let n={type:this.getChatTypeKey(this.chatType),singleChatID:this.singleChatID,customParams:this.customParams};this.handler.fireEventToChatWindow(e,this.chartOrigin,this.makeKey("sdata_alllife_initChat"),n,t=>{t&&(console.log("chat init finished:",t),this.handler.onChatInitFinished())})})}getChatTypeKey(t){switch(t){case 0:default:return"IM_MULTIPLE_MODE";case 1:return"IM_SINGLE_MODE";case 2:return"IM_EMBED_MODE";case 3:return"IM_MOBILE_MULTIPLE_EMBED_MODE";case 4:return"IM_MOBILE_SINGLE_EMBED_MODE"}}async initChatAIs(){if(window.imClient)this.chatAIClient=window.imClient;else{let t=await this.handler.getChatClientClasses();const{TencentCloudChat:e,TIMUploadPlugin:n}=t;window.imClient=e.create({SDKAppID:this.appSKID,storage:{enable:!0}}),window.imClient.registerPlugin({"tim-upload-plugin":n}),window.imClient.on(e.EVENT.SDK_READY,this.onChatAIReady.bind(this)),window.imClient.charAIs={},this.chatAIClient=window.imClient}this.chatAIClient.charAIs||(this.chatAIClient.charAIs={});let t=await this.handler.getAIRobotInfos(this.userID,this.groupID);t&&t.length>0&&t.forEach(async t=>{let e=t.id;if(!this.chatAIClient.charAIs[e]){t.chatID=e;let n=await this.handler.getPortalUserSig(e,this.imType,this.groupID);n||(n=await this.generateUserSigAndAdd(e)),t.userSig=n,this.chatAIClient.charAIs[e]={robot:t,messageCache:[]}}})}async generateUserSigAndUpdate(t){let e=(await this.handler.genTestUserSig({SDKAppID:this.appSKID,userID:t})).userSig;if(e){await this.chatAIClient.login({userID:t,userSig:e}),await this.chatAIClient.logout();let n={userID:t,userSig:e,im_type:this.imType,group_id:this.groupID};await this.handler.updateIMMapping(n)}return e}async generateUserSigAndAdd(t){let e=(await this.handler.genTestUserSig({SDKAppID:this.appSKID,userID:t})).userSig;return e&&(await this.chatAIClient.login({userID:t,userSig:e}),await this.chatAIClient.logout(),await this.handler.addIMMapping(t,this.imType,e,this.groupID)),e}onChatAIReady(t){let e=this.chatAIClient.lastRobotID,n=this.getAIRobotInfoByID(e);if(console.log(`[AI chat] ${n.name}已经就绪:`,t),this.chatAIClient){let t=this.getAIRobotCacheMessagesByID(e);if(console.log(`[AI chat] ${n.name}就绪后查到的缓存信息:`,t),console.log(`[AI chat] ${n.name}所有信息仓:`,this.chatAIClient.charAIs),t&&t.length>0){const r=[...t];t.splice(0,t.length),r.forEach(t=>{console.log(`[AI chat] ${n.name}发送缓存消息:`,t),this.sendMessageToChatServer(e,t)})}}}getAIRobotInfos(){let t=[];for(let e in this.chatAIClient.charAIs)t.push(this.chatAIClient.charAIs[e].robot);return t}getAIRobotInfoByID(t){return this.chatAIClient.charAIs[t]?this.chatAIClient.charAIs[t].robot:null}getAIRobotCacheMessagesByID(t){return this.chatAIClient.charAIs[t]?this.chatAIClient.charAIs[t].messageCache:[]}async sendMessageToChatServer(t,e){let n=this.getAIRobotInfoByID(t);if(this.chatAIClient.lastRobotID!=t){console.log(`[AI chat]需要新机器人回答,切换到新机器人${n.name}`),this.chatAIClient.lastRobotID&&await this.chatAIClient.logout();try{await this.chatAIClient.login({userID:t,userSig:n.userSig})}catch(r){if(console.log(`[AI chat]${n.name}登录失败`,r),70001==r.code){console.log(`[AI chat]${n.name}UserSig过期,重新生成userSig`);let r=await this.generateUserSigAndUpdate(t);try{return await this.chatAIClient.login({userID:t,userSig:r}),void this.sendMessageToChatServer(t,e)}catch(t){return void console.log(`[AI chat]${n.name}重新登录失败`,t)}}}}if(this.chatAIClient.lastRobotID=t,this.chatAIClient&&this.chatAIClient.isReady()){let t=await this.chatAIClient.createTextMessage(e);this.chatAIClient.sendMessage(t).then(t=>{console.log(`[AI chat]${n.name}发送信息成功`,t)},t=>{console.log(`[AI chat]${n.name}发送失败`,t)})}else{let r=this.getAIRobotCacheMessagesByID(t);r.push(e),console.log(`[AI chat]${n.name}未就绪,缓存后消息:`,r)}}converToAIServerParams(t,e,n){let r="";if("TIMTextElem"===t.type)r=t.payload?.text||"";let i=(t.cloudCustomData||{}).conversation_id||"";return{prompt:r,params:n||{},robotKey:e.password,conversation_id:i||"",userID:t.from||""}}abort(){this.chatAIClient=null}},exports.addEventAction=Xe,exports.addIMMapping=S,exports.addObjTipMapping=(t,e,n)=>{let r={param:{sourceID:t,tipID:e,groupID:n}};return h.post("/dataservice/rest/orchestration/addObjTipMapping",r).data.operatorResult||{}},exports.addObjectUsedTimes=t=>{let e={param:{operateData:t}};return h.post("/dataservice/rest/orchestration/addObjectUsedTimes",e)},exports.addTipObject=t=>{let e={param:{tipInfo:t}};return h.post("/dataservice/rest/orchestration/addTipObject",e).data.operateResult||{}},exports.addWindowTrustedOrigin=t=>{let e=window.SDATA_WINDOW_TRUSTED_ORIGINS;e||(window.SDATA_WINDOW_TRUSTED_ORIGINS=[]),e.includes(t)||e.push(t)},exports.checkTextFormat=De,exports.createFileFromUrl=async(t,e)=>{try{const n=await fetch(t);if(!n.ok)throw new Error(`网络请求失败: ${n.status} ${n.statusText}`);const r=await n.blob(),i=e||Ge(t);return new File([r],i,{type:r.type,lastModified:Date.now()})}catch(t){throw console.error("创建 File 失败:",t),t}},exports.createRegistApply=async t=>{let e={param:{registInfo:t}};return(await h.post("/dataservice/rest/orchestration/createRegistApply",e)).data.operateResult},exports.destroyEventCenter=()=>{window.rjEventCenter&&(window.rjEventCenter.clearAll(),window.rjEventCenter=null,console.log(`事件中心已清理:时间戳: ${(new Date).toLocaleString()}`))},exports.doRestPost=async(t,e)=>await h.post(t,e),exports.extractFilenameFromUrl=Ge,exports.extractNewItems=(t,e)=>t.filter(t=>!e.includes(t)),exports.findClosestAncestorByClass=(t,e)=>{let n=t;for(;n;){if(n.classList&&n.classList.contains(e))return n;n=n.parentElement}return null},exports.fireEvent=(t,e)=>{let n=window.rjEventCenter;e.eventKey=t,n&&n.fireEvent&&n.fireEvent(t,e)},exports.getAIRobotInfos=N,exports.getAPPInfosByID=async t=>{let e={param:{id:t}};return(await h.post("/dataservice/rest/orchestration/getAPPInfosByID",e)).data.appInfo},exports.getAccountCountByName=async t=>{let e={param:{accountName:t}};return(await h.post("/dataservice/rest/orchestration/getAccountCountByName",e)).data.count},exports.getAllI18nTypes=async()=>(await h.post("/dataservice/rest/orchestration/getAllI18nTypes",{param:{}})).data.resultDatas,exports.getAllUserInfosByGroupID=C,exports.getAppCustomData=L,exports.getAppPortalMenuDatas=async(t,e,n,r)=>{let i=g(),o=await _(t,i,e),a=await w(e,o),s=window.appSdk.getAppId();return a.filter(t=>{if(n)return!0;if(t.app_id==i)return!0;{let e=t.children,n=!1;return e&&e.length>0&&e.forEach(t=>{let e=t.children;if(e&&e.length>0){let t=e.filter(t=>t.app_id===s);t&&t.length>0&&(n=!0)}}),n}})},exports.getAuthPic=()=>h.get("/system/authority/getAuthPic?module=loginPassword",{responseType:"arraybuffer"}),exports.getChildrenOfficeInfosByID=M,exports.getClientIp=async()=>{let t=await h.post("/ext/getClientIp"),e=t?.data?.clientIp;return e},exports.getCurrentAppID=v,exports.getCurrentUserPortalMapping=async t=>{let e={param:{userData:t}};return(await h.post("/dataservice/rest/orchestration/getPortalMappingInfo",e)).data.portal_info},exports.getCurrentUserPortalPageID=async t=>{let e={param:{userData:t}};return(await h.post("/dataservice/rest/orchestration/getPortalPageID",e)).data.portal_id},exports.getDifyFileType=t=>({DOCX:"document",TXT:"document",MD:"document",MARKDOWN:"document",MDX:"document",PDF:"document",HTML:"document",XLSX:"document",XLS:"document",VTT:"document",DOC:"document",CSV:"document",EML:"document",MSG:"document",PPTX:"document",PPT:"document",XML:"document",EPUB:"document",JPG:"image",JPEG:"image",PNG:"image",GIF:"image",WEBP:"image",MP3:"audio",M4A:"audio",WAV:"audio",WEBM:"audio",MPGA:"audio",MP4:"video",MOV:"video",MPEG:"video"}[t.toUpperCase()]||"custom"),exports.getFileSize=qe,exports.getGourpMappingsByPhoneNumber=async t=>{let e={param:{phone:t}};return(await h.post("/dataservice/rest/orchestration/getGourpMappingsByPhoneNumber",e)).data.resultGroups},exports.getGroupMappingsByAccount=async t=>{let e={param:{account:t}};return(await h.post("/dataservice/rest/orchestration/getGourpMappingsByAccountName",e)).data.resultGroups},exports.getI18nKey=t=>{let e=/\$L\{([^}]+)\}/g.exec(t);return e?e[1]:t},exports.getIMHanlder=t=>{let e={genTestUserSig:async t=>{},getChatClientClasses:async()=>[],getAIRobotInfos:async(t,e)=>N(t,e),getPortalUserSig:async(t,e,n)=>D(t,e,n),addIMMapping:async(t,e,n,r)=>S(t,e,r,n),updateIMMapping:async t=>{let e=t.userID,n=t.im_type,r=t.group_id,i=t.userSig;return E(e,n,r,i)},getPortalAccessToken:async t=>{let e=t.appKey,n=t.appSecret;return x(e,n)},getPortalUserInfo:async t=>{let e=t.code,n=t.access_token;return A(e,n)},getAllUserInfosByGroupID:async t=>{let e=t.groupID;return C(e)},getChildrenOfficeInfosByID:async t=>{let e=t.groupID;return M(e)},getPojectDptsByUserAndGroupID:async t=>{let e=t.groupID,n=t.userID;return k(n,e)},closeWindow:()=>!0,addChatListener:async(t,e)=>{await Xe(t,e)},fireEventToChatWindow:async(t,e,n,r,i)=>{await Je(t.source,e,n,r,i)},onChatInitFinished:async()=>{},onAIAgentEvent:async(t,e)=>{},getPortalDocmentInfo:async t=>{let e=t.kb_doc_id,n=await m(e),r=n?.summary;if(r){let t=JSON.parse(r);if(t){let e=t[0].url,r=`${window.smardaten_api_context_path}/storage_area/public${e}`,i=await qe(r);n.fileSize=i}}return n}};return e={...e,...t},e},exports.getIntegrateAppInfoByID=async t=>{let e={param:{appID:t}};return(await h.post("/dataservice/rest/orchestration/getIntegrateAppInfoByID",e)).data.appInfo},exports.getLanguages=async t=>{let e={param:{appID:t}};return(await h.post("/dataservice/rest/orchestration/getAppLanguages",e)).data.resultDatas||[]},exports.getLoginPageNotices=async t=>{let e={param:{id:"1005",groupID:t}};return(await h.post("/dataservice/rest/orchestration/getNoticeInfosByAppTypeID",e)).data.resultDatas},exports.getMappingAppInfoByID=async(t,e)=>{let n={param:{appID:t,groupID:e}};return(await h.post("/dataservice/rest/orchestration/getPortalMappingAppInfoByID",n)).data.appInfo},exports.getMenuDatasByGroupID=w,exports.getMenuMappingDatasByRoleIDs=y,exports.getObjectUseTimes=t=>{let e={param:{objectInfo:t}};return h.post("/dataservice/rest/orchestration/getObjectUseTimes",e)},exports.getOfficeInfosByIDs=async t=>{let e={param:{ids:t}};return(await h.post("/dataservice/rest/orchestration/getOfficeInfosByIDs",e)).data.officeInfos},exports.getPageIDByComponentID=async t=>{let e={param:{componentID:t}};return(await h.post("/dataservice/rest/orchestration/getPageIDByComponentID",e)).data.page_id},exports.getPhoneNumberByAccountName=async(t,e)=>{let n={param:{accountName:t,groupID:e}};return(await h.post("/dataservice/rest/orchestration/getPhoneNumberByAccountName",n)).data.phone},exports.getPlatformBortherMenusByMenuID=async(t,e,n)=>{let r={param:{menu_id:t}},i=(await h.post("/dataservice/rest/orchestration/getPlatformBortherMenusByMenuID",r)).data.menuDatas||[],o=await b(e,n),a={};for(const t of o){a[t.menu_id]=t}let s={};for(const t of i){let e=t.id;if((1!==t.leaf_flag||a[e])&&!s[e]){let n="el-icon-menu",r={id:t.id,index:t.id,name:t.name,isSys:!0,iconClass:n,actionType:t.action_type||"1",app_id:t.datapp_id,menu_id:t.id,url:t.url||"",children:t.children||[],sort:t.sort||0};s[e]=r}}for(const t of i){let e=t.parent_id;if(!e)continue;let n=s[e];if(n){let e=s[t.id];if(!e)continue;n.children.push(e)}}let u=[];for(const t in s){let e=s[t];if(e.children&&e.children.length>0){u.push(e),e.children.sort((t,e)=>Number.isNaN(t.sort)?1:Number.isNaN(e.sort)?-1:t.sort-e.sort)}}if(0==u.length)for(const t in s){let e=s[t];e&&u.push(e)}return u.sort((t,e)=>Number.isNaN(t.sort)?1:Number.isNaN(e.sort)?-1:t.sort-e.sort),u},exports.getPlatformMenuMappingsByRoleIDs=b,exports.getPojectDptsByUserAndGroupID=k,exports.getPoratlAppID=g,exports.getPortalAccessToken=x,exports.getPortalAppCustomConfig=async t=>{let e={param:{groupID:t}};return(await h.post("/dataservice/rest/orchestration/getPortalAppCustomConfig",e)).data.configInfo},exports.getPortalAppCustomConfigs=async t=>{let e={param:{ids:t}};return(await h.post("/dataservice/rest/orchestration/getPortalAppCustomConfigs",e)).data.configInfos},exports.getPortalDocmentInfo=m,exports.getPortalInfosByID=async t=>{let e={param:{id:t}};return(await h.post("/dataservice/rest/orchestration/getPortalInfosByID",e)).data.portalInfo},exports.getPortalNotices=async t=>{let e={param:{id:t}};return await h.post("/dataservice/rest/orchestration/getNoticesInfosByGroupID",e)},exports.getPortalPageConfig=async t=>{let e={param:{id:t}};return(await h.post("/dataservice/rest/orchestration/getPortalPageConfig",e)).data.portal_page_config||"[]"},exports.getPortalPageMenuID=async(t,e)=>{let n={param:{id:t,appid:e}};return(await h.post("/dataservice/rest/orchestration/getPortalPageMenuID",n)).data.menu_id},exports.getPortalUserInfo=A,exports.getPortalUserMappingInfos=async t=>{let e={param:{operateData:t}};return(await h.post("/dataservice/rest/orchestration/getPortalUserMappingInfos",e)).data.portalMapping},exports.getPortalUserSig=D,exports.getRobotInfoByID=async(t,e)=>{let n={param:{id:t,groupID:e}};return(await h.post("/dataservice/rest/orchestration/getRobotInfoByID",n)).data.robotInfo},exports.getRoleIDsByUserAndGroupID=_,exports.getTenetInfoByName=async t=>{let e={param:{name:t}};return(await h.post("/dataservice/rest/orchestration/getTenetInfoByName",e)).data.resultDatas},exports.getThirdAppPathByKey=async(t,e,n)=>{let r={param:{appKey:t,appSecret:e,groupID:n}};return(await h.post("/dataservice/rest/orchestration/getThirdAppPathByKey",r)).data.path},exports.getUrlParamValue=(t,e)=>{try{const n=new URL(t).searchParams.get(e);return n&&-1!==n.indexOf("#")?n.split("#")[0]:n}catch(t){return console.error("URL 格式错误:",t),""}},exports.getUserAllMappngPortal=t=>{let e={param:{userData:t}};return h.post("/dataservice/rest/orchestration/getUserAllMappngPortal",e)},exports.getViewKey=Ke,exports.hasListener=t=>{let e=window.rjEventCenter;return!(!e||!e.hasListener)&&e.hasListener(t)},exports.hasUrlParams=t=>{try{return new URL(t,window.location.href).search.length>0}catch(t){return!1}},exports.i18n=Ae,exports.i18nText=je,exports.initDomNodeI18NObserver=()=>{window.i18nElementsMap?window.i18nElementsMap.clear():window.i18nElementsMap=new Map,u("IPORTAL_LANGUAGE_CHANGE_EVENT",async t=>{console.log("语言切换事件触发,更新已处理元素的翻译:",t);for(const[t,e]of window.i18nElementsMap.entries())Ue(e.dom)});const t=new MutationObserver(t=>{t.forEach(t=>{if("childList"===t.type){if(t.addedNodes.length>0)for(let e=0;e<t.addedNodes.length;e++){let n=t.addedNodes[e];n.nodeType===Node.TEXT_NODE&&(n=n.parentNode),Re(n)}if(t.removedNodes.length>0)for(let e=0;e<t.removedNodes.length;e++){Be(t.removedNodes[e])}}else if("characterData"===t.type){const e=t.oldValue,n=t.target,r=n.data;console.log(`文本修改: ${e} → ${r}`);const i=n.parentNode;if(i){i.getAttribute("localDomID")&&Be(i)}Re(i)}})}),e=document.body;Re(e),t.observe(e,{childList:!0,subtree:!0,attributes:!1,characterData:!0,characterDataOldValue:!0})},exports.initDomNodeViewObserver=()=>{const t=new MutationObserver(t=>{t.forEach(t=>{if("childList"===t.type&&t.addedNodes.length>0)for(let e=0;e<t.addedNodes.length;e++){Ve(t.addedNodes[e])}})}),e=document.body;Ve(e),t.observe(e,{childList:!0,subtree:!0,attributes:!1,characterData:!0,characterDataOldValue:!0})},exports.initEventCenter=c,exports.initFrameWindowListener=()=>{if(window.isFrameWindowInited)return;window.SDATA_WINDOW_TRUSTED_ORIGINS||(window.SDATA_WINDOW_TRUSTED_ORIGINS=[]),window.sdataEventActions||(window.sdataEventActions={}),window.addEventListener("message",async t=>{if(!window.SDATA_WINDOW_TRUSTED_ORIGINS.some(e=>t.origin===e||new RegExp(e).test(t.origin)))return void console.log("拒绝非可信源消息:",t.origin);let e=t.data?.eventKey;if(!e)return;let n=t.origin;if(console.log(`收到${n}页面消息:`,t.data),"sdata_alllife_event_response"===e){let e=t.data.eventOperateKey,n=window.sdataEventActions[e];delete window.sdataEventActions[e],n&&await n(t.data.data,t)}else{let r=window.sdataEventActions[e],i={eventKey:"sdata_alllife_event_response",eventOperateKey:t.data.eventOperateKey,data:{}};if(r){let e=await r(t.data.data,t);i.data=e}t.source.postMessage(i,n)}}),window.isFrameWindowInited=!0},exports.isSMSCodeValidate=async(t,e,n,r)=>{let i={param:{smsCode:t,sms_service_name_type:e,beyond_type_id:n,account_id:r}};return(await h.post("/ext/validateSMSCode",JSON.stringify(i))).data},exports.isSecurityAccount=async(t,e)=>{let n={param:{account_name:t,group_id:e}};return(await h.post("/dataservice/rest/orchestration/isSecurityAccount",n)).data.isSecurityAccount},exports.loadi18nTexts=async t=>{let e={param:{appID:t}},n=(await h.post("/dataservice/rest/orchestration/getAllTexts",e)).data.resultDatas||[];window.customI18nObject=new Map;for(let e of n)window.customI18nObject.set(`${t}-${e.key}-${e.lang}`,e.value)},exports.loginAccount=Fe,exports.logoutAccount=ze,exports.processElement=Re,exports.processViewElement=Ve,exports.queryAndStoreAppVariable=(t,e)=>{let n=window.sessionStorage.getItem("isdata_app_variable_"+t);return n||(n=T(t,e),n&&window.sessionStorage.setItem("isdata_app_variable_"+t,n)),n},exports.queryAppVariable=T,exports.queryAssetById=(t,e=200)=>h.post(`/asset/getAssetData?asset_id=${t}&count=${e}`,{filters:[]}),exports.queryGroupIDByOfficeId=async t=>{let e={param:{id:t}};return(await h.post("/dataservice/rest/orchestration/getGroupIDByDptID",e)).data.resultDptData.id},exports.queryGroupInfosByOfficeId=async t=>{let e={param:{id:t}};return(await h.post("/dataservice/rest/orchestration/getGroupIDByDptID",e)).data.resultDptData},exports.queryOfficeInfosById=async t=>{let e={param:{id:t}};return(await h.post("/dataservice/rest/orchestration/getOfficeInfosByID",e)).data.officeData},exports.registerEventListener=u,exports.removeEventAction=t=>{window.sdataEventActions||(window.sdataEventActions={}),delete window.sdataEventActions[t]},exports.removeEventListener=(t,e)=>{let n=window.rjEventCenter;n&&n.unregister&&n.unregister(t,e)},exports.removeWindowTrustedOrigin=t=>{let e=window.SDATA_WINDOW_TRUSTED_ORIGINS;e||(window.SDATA_WINDOW_TRUSTED_ORIGINS=[]);let n=e.indexOf(t);n>-1&&e.splice(n,1)},exports.savePortalI18nText=async(t,e,n,r,i)=>{let o={param:{key:t,value:e,appID:g(),lang:n,beyondID:r,i18nType:i}};return(await h.post("/dataservice/rest/orchestration/savePortalI18nText",o)).data.resultData},exports.sendPostToAIAgent=async(t,e,n)=>{let r=g(),i=await L(r),o=i?.aiAgentServerIP||"";if(!o)return console.error("没有配置AI Agent服务地址,请联系管理员"),void(n&&n("没有配置AI Agent服务地址,请联系管理员"));let a=`${o}/addAndCleanDocument`;h.post(a,JSON.stringify(t)).then(t=>{console.log("发送消息成功:",t),e&&e(t)}).catch(t=>{console.error("发送消息失败:",t),n&&n(t)})},exports.sendSms=async(t,e,n)=>{let r={param:t};h.post("/ext/sendSms",JSON.stringify(r)).then(t=>{console.log("发送消息成功:",t),e&&e(t)}).catch(t=>{console.error("发送消息失败:",t),n&&n(t)})},exports.sendWindowMessage=Je,exports.serverDecrypt=async t=>{let e={param:{decryptStr:t}};return t=(await h.post("/ext/serverDecrypt",JSON.stringify(e))).data.decryptStr},exports.serverEncrypt=async t=>{let e={param:{encryptStr:t}};return t=(await h.post("/ext/serverEncrypt",JSON.stringify(e))).data.encryptStr},exports.setPortalPageConfig=t=>{let e={param:t};return h.post("/dataservice/rest/orchestration/setPortalPageConfig",e)},exports.switchPortalLogin=async(t,e,n)=>{let r=window.sessionStorage.getItem("iportal_login_user_key");r=await He(r),t.password=r;let i=await ze(n),o=i.code,a=i.message;if("10110020"==o){return await Fe(t,e)}return{code:o,message:je(a)}},exports.transformPortalQuickMenuDatas=(t,e)=>{e=e||[];let n=(t=t||[]).concat(e),r={},i=[];for(const t of n){let e=t.id;r[e]||(r[e]=t,i.push(t))}let o={};for(const t of i){let e=t.id,n={id:e,label:t.title,sort:t.sort,children:[],parent_id:t.parent_id,type:t.type};o[e]=n}for(const t of i){let e=o[t.id];if("5"==e.type){let t=o[e.parent_id];if(t){t.children.push(e)}}}const a=[];for(const t of i){let e=o[t.id];if("4"==e.type){a.push(e),e.children.sort((t,e)=>Number.isNaN(t.sort)?1:Number.isNaN(e.sort)?-1:t.sort-e.sort)}}return a.sort((t,e)=>Number.isNaN(t.sort)?1:Number.isNaN(e.sort)?-1:t.sort-e.sort),a},exports.transformPortalSystemMenuDatas=t=>{let e={};for(const n of t){let t=n.id,r={id:t,label:n.name,sort:n.sort,icon:n.icon,children:[],app_id:n.datapp_id,parent_id:n.parent_id,leaf_flag:n.leaf_flag};e[t]=r}for(const n of t){if(1==n.leaf_flag){let t=e[n.id],r=e[n.parent_id];if(r){r.children.push(t)}}}const n=[];for(const r of t){if(0==r.leaf_flag){let t=e[r.id];n.push(t),t.children.sort((t,e)=>Number.isNaN(t.sort)?1:Number.isNaN(e.sort)?-1:t.sort-e.sort)}}return n.sort((t,e)=>Number.isNaN(t.sort)?1:Number.isNaN(e.sort)?-1:t.sort-e.sort),n},exports.updateI18nValue=(t,e,n,r)=>{let i=`${t}-${e}-${n}`;window.customI18nObject.set(i,r)},exports.updateIMMapping=E,exports.updateUserSelectPortal=t=>{let e={param:{portalMappingData:t}};return h.post("/dataservice/rest/orchestration/updateUserSelectPortal",e)},exports.validateSSOPageLoaded=async(t,e,n)=>{let r={param:{app_id:t,appSecret:e,returnUrl:n}};return(await h.post("/dataservice/rest/orchestration/validateSSOPageLoaded",r)).data.count},exports.viewDecrypt=He,exports.viewEncrypt=We;
|