settings-vue-settings-admin-sharing.mjs 87 KB

12
  1. /*! third party licenses: dist/vendor.LICENSE.txt */
  2. import{a_ as Cu,G as co,bS as Nr,c6 as ee,aj as f0,ak as l0,al as h0,b_ as Su,a7 as p0,ai as g0,aV as v0}from"./core-common.mjs";import"./chunks/index-PaKKd09k.mjs";import{B as so,z as d0}from"./chunks/_plugin-vue2_normalizer-VrK6B12S-BQkexw0P.mjs";import{n as Au}from"./chunks/icons-TElqpmA8.mjs";const _0=Cu({name:"SelectSharingPermissions",components:{NcCheckboxRadioSwitch:co},props:{value:{type:Number,required:!0}},emits:{"update:value":s=>typeof s=="number"},data(){return{PERMISSION_UPDATE:2,PERMISSION_CREATE:4,PERMISSION_DELETE:8,PERMISSION_SHARE:16}},computed:{canCreate(){return(this.value&this.PERMISSION_CREATE)!==0},canUpdate(){return(this.value&this.PERMISSION_UPDATE)!==0},canDelete(){return(this.value&this.PERMISSION_DELETE)!==0},canShare(){return(this.value&this.PERMISSION_SHARE)!==0}},methods:{t:Nr,toggle(s){this.$emit("update:value",this.value^s)}}});var y0=function(){var s=this,y=s._self._c;return s._self._setupProxy,y("fieldset",{staticClass:"permissions-select"},[y("NcCheckboxRadioSwitch",{attrs:{checked:s.canCreate},on:{"update:checked":function(o){return s.toggle(s.PERMISSION_CREATE)}}},[s._v(" "+s._s(s.t("settings","Create"))+" ")]),y("NcCheckboxRadioSwitch",{attrs:{checked:s.canUpdate},on:{"update:checked":function(o){return s.toggle(s.PERMISSION_UPDATE)}}},[s._v(" "+s._s(s.t("settings","Change"))+" ")]),y("NcCheckboxRadioSwitch",{attrs:{checked:s.canDelete},on:{"update:checked":function(o){return s.toggle(s.PERMISSION_DELETE)}}},[s._v(" "+s._s(s.t("settings","Delete"))+" ")]),y("NcCheckboxRadioSwitch",{attrs:{checked:s.canShare},on:{"update:checked":function(o){return s.toggle(s.PERMISSION_SHARE)}}},[s._v(" "+s._s(s.t("settings","Reshare"))+" ")])],1)},m0=[],w0=Au(_0,y0,m0,!1,null,"e982ac6e");const b0=w0.exports;var Qe={exports:{}};Qe.exports,function(s,y){(function(){var o,Xe="4.17.21",jr=200,fo="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",ft="Expected a function",lo="Invalid `variable` option passed into `_.template`",tn="__lodash_hash_undefined__",ho=500,ne="__lodash_placeholder__",Mt=1,Ru=2,lr=4,hr=1,ue=2,lt=1,tr=2,Du=4,Ct=8,pr=16,At=32,gr=64,jt=128,Or=256,rn=512,po=30,go="...",vo=800,_o=16,Iu=1,yo=2,mo=3,rr=1/0,Tt=9007199254740991,wo=17976931348623157e292,ie=NaN,Rt=4294967295,bo=Rt-1,xo=Rt>>>1,ko=[["ary",jt],["bind",lt],["bindKey",tr],["curry",Ct],["curryRight",pr],["flip",rn],["partial",At],["partialRight",gr],["rearg",Or]],vr="[object Arguments]",ae="[object Array]",Eo="[object AsyncFunction]",Lr="[object Boolean]",Pr="[object Date]",So="[object DOMException]",oe="[object Error]",se="[object Function]",Nu="[object GeneratorFunction]",wt="[object Map]",Fr="[object Number]",Co="[object Null]",Ot="[object Object]",ju="[object Promise]",Ao="[object Proxy]",Gr="[object RegExp]",bt="[object Set]",$r="[object String]",ce="[object Symbol]",Ro="[object Undefined]",zr="[object WeakMap]",Do="[object WeakSet]",Ur="[object ArrayBuffer]",dr="[object DataView]",en="[object Float32Array]",nn="[object Float64Array]",un="[object Int8Array]",an="[object Int16Array]",on="[object Int32Array]",sn="[object Uint8Array]",cn="[object Uint8ClampedArray]",fn="[object Uint16Array]",ln="[object Uint32Array]",Io=/\b__p \+= '';/g,No=/\b(__p \+=) '' \+/g,jo=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ou=/&(?:amp|lt|gt|quot|#39);/g,Lu=/[&<>"']/g,Oo=RegExp(Ou.source),Lo=RegExp(Lu.source),Po=/<%-([\s\S]+?)%>/g,Fo=/<%([\s\S]+?)%>/g,Pu=/<%=([\s\S]+?)%>/g,Go=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$o=/^\w*$/,zo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hn=/[\\^$.*+?()[\]{}|]/g,Uo=RegExp(hn.source),pn=/^\s+/,Bo=/\s/,Wo=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Mo=/\{\n\/\* \[wrapped with (.+)\] \*/,To=/,? & /,qo=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Vo=/[()=,{}\[\]\/\s]/,Zo=/\\(\\)?/g,Ho=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Fu=/\w*$/,Ko=/^[-+]0x[0-9a-f]+$/i,Jo=/^0b[01]+$/i,Yo=/^\[object .+?Constructor\]$/,Qo=/^0o[0-7]+$/i,Xo=/^(?:0|[1-9]\d*)$/,ts=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,fe=/($^)/,rs=/['\n\r\u2028\u2029\\]/g,le="\\ud800-\\udfff",es="\\u0300-\\u036f",ns="\\ufe20-\\ufe2f",us="\\u20d0-\\u20ff",Gu=es+ns+us,$u="\\u2700-\\u27bf",zu="a-z\\xdf-\\xf6\\xf8-\\xff",is="\\xac\\xb1\\xd7\\xf7",as="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",os="\\u2000-\\u206f",ss=" \\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",Uu="A-Z\\xc0-\\xd6\\xd8-\\xde",Bu="\\ufe0e\\ufe0f",Wu=is+as+os+ss,gn="['’]",cs="["+le+"]",Mu="["+Wu+"]",he="["+Gu+"]",Tu="\\d+",fs="["+$u+"]",qu="["+zu+"]",Vu="[^"+le+Wu+Tu+$u+zu+Uu+"]",vn="\\ud83c[\\udffb-\\udfff]",ls="(?:"+he+"|"+vn+")",Zu="[^"+le+"]",dn="(?:\\ud83c[\\udde6-\\uddff]){2}",_n="[\\ud800-\\udbff][\\udc00-\\udfff]",_r="["+Uu+"]",Hu="\\u200d",Ku="(?:"+qu+"|"+Vu+")",hs="(?:"+_r+"|"+Vu+")",Ju="(?:"+gn+"(?:d|ll|m|re|s|t|ve))?",Yu="(?:"+gn+"(?:D|LL|M|RE|S|T|VE))?",Qu=ls+"?",Xu="["+Bu+"]?",ps="(?:"+Hu+"(?:"+[Zu,dn,_n].join("|")+")"+Xu+Qu+")*",gs="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",vs="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ti=Xu+Qu+ps,ds="(?:"+[fs,dn,_n].join("|")+")"+ti,_s="(?:"+[Zu+he+"?",he,dn,_n,cs].join("|")+")",ys=RegExp(gn,"g"),ms=RegExp(he,"g"),yn=RegExp(vn+"(?="+vn+")|"+_s+ti,"g"),ws=RegExp([_r+"?"+qu+"+"+Ju+"(?="+[Mu,_r,"$"].join("|")+")",hs+"+"+Yu+"(?="+[Mu,_r+Ku,"$"].join("|")+")",_r+"?"+Ku+"+"+Ju,_r+"+"+Yu,vs,gs,Tu,ds].join("|"),"g"),bs=RegExp("["+Hu+le+Gu+Bu+"]"),xs=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ks=["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"],Es=-1,$={};$[en]=$[nn]=$[un]=$[an]=$[on]=$[sn]=$[cn]=$[fn]=$[ln]=!0,$[vr]=$[ae]=$[Ur]=$[Lr]=$[dr]=$[Pr]=$[oe]=$[se]=$[wt]=$[Fr]=$[Ot]=$[Gr]=$[bt]=$[$r]=$[zr]=!1;var G={};G[vr]=G[ae]=G[Ur]=G[dr]=G[Lr]=G[Pr]=G[en]=G[nn]=G[un]=G[an]=G[on]=G[wt]=G[Fr]=G[Ot]=G[Gr]=G[bt]=G[$r]=G[ce]=G[sn]=G[cn]=G[fn]=G[ln]=!0,G[oe]=G[se]=G[zr]=!1;var Ss={À:"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"},Cs={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},As={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Rs={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ds=parseFloat,Is=parseInt,ri=typeof ee=="object"&&ee&&ee.Object===Object&&ee,Ns=typeof self=="object"&&self&&self.Object===Object&&self,Z=ri||Ns||Function("return this")(),mn=y&&!y.nodeType&&y,er=mn&&!0&&s&&!s.nodeType&&s,ei=er&&er.exports===mn,wn=ei&&ri.process,ht=function(){try{var l=er&&er.require&&er.require("util").types;return l||wn&&wn.binding&&wn.binding("util")}catch{}}(),ni=ht&&ht.isArrayBuffer,ui=ht&&ht.isDate,ii=ht&&ht.isMap,ai=ht&&ht.isRegExp,oi=ht&&ht.isSet,si=ht&&ht.isTypedArray;function ut(l,g,p){switch(p.length){case 0:return l.call(g);case 1:return l.call(g,p[0]);case 2:return l.call(g,p[0],p[1]);case 3:return l.call(g,p[0],p[1],p[2])}return l.apply(g,p)}function js(l,g,p,w){for(var S=-1,O=l==null?0:l.length;++S<O;){var T=l[S];g(w,T,p(T),l)}return w}function pt(l,g){for(var p=-1,w=l==null?0:l.length;++p<w&&g(l[p],p,l)!==!1;);return l}function Os(l,g){for(var p=l==null?0:l.length;p--&&g(l[p],p,l)!==!1;);return l}function ci(l,g){for(var p=-1,w=l==null?0:l.length;++p<w;)if(!g(l[p],p,l))return!1;return!0}function qt(l,g){for(var p=-1,w=l==null?0:l.length,S=0,O=[];++p<w;){var T=l[p];g(T,p,l)&&(O[S++]=T)}return O}function pe(l,g){var p=l==null?0:l.length;return!!p&&yr(l,g,0)>-1}function bn(l,g,p){for(var w=-1,S=l==null?0:l.length;++w<S;)if(p(g,l[w]))return!0;return!1}function z(l,g){for(var p=-1,w=l==null?0:l.length,S=Array(w);++p<w;)S[p]=g(l[p],p,l);return S}function Vt(l,g){for(var p=-1,w=g.length,S=l.length;++p<w;)l[S+p]=g[p];return l}function xn(l,g,p,w){var S=-1,O=l==null?0:l.length;for(w&&O&&(p=l[++S]);++S<O;)p=g(p,l[S],S,l);return p}function Ls(l,g,p,w){var S=l==null?0:l.length;for(w&&S&&(p=l[--S]);S--;)p=g(p,l[S],S,l);return p}function kn(l,g){for(var p=-1,w=l==null?0:l.length;++p<w;)if(g(l[p],p,l))return!0;return!1}var Ps=En("length");function Fs(l){return l.split("")}function Gs(l){return l.match(qo)||[]}function fi(l,g,p){var w;return p(l,function(S,O,T){if(g(S,O,T))return w=O,!1}),w}function ge(l,g,p,w){for(var S=l.length,O=p+(w?1:-1);w?O--:++O<S;)if(g(l[O],O,l))return O;return-1}function yr(l,g,p){return g===g?Ks(l,g,p):ge(l,li,p)}function $s(l,g,p,w){for(var S=p-1,O=l.length;++S<O;)if(w(l[S],g))return S;return-1}function li(l){return l!==l}function hi(l,g){var p=l==null?0:l.length;return p?Cn(l,g)/p:ie}function En(l){return function(g){return g==null?o:g[l]}}function Sn(l){return function(g){return l==null?o:l[g]}}function pi(l,g,p,w,S){return S(l,function(O,T,F){p=w?(w=!1,O):g(p,O,T,F)}),p}function zs(l,g){var p=l.length;for(l.sort(g);p--;)l[p]=l[p].value;return l}function Cn(l,g){for(var p,w=-1,S=l.length;++w<S;){var O=g(l[w]);O!==o&&(p=p===o?O:p+O)}return p}function An(l,g){for(var p=-1,w=Array(l);++p<l;)w[p]=g(p);return w}function Us(l,g){return z(g,function(p){return[p,l[p]]})}function gi(l){return l&&l.slice(0,yi(l)+1).replace(pn,"")}function it(l){return function(g){return l(g)}}function Rn(l,g){return z(g,function(p){return l[p]})}function Br(l,g){return l.has(g)}function vi(l,g){for(var p=-1,w=l.length;++p<w&&yr(g,l[p],0)>-1;);return p}function di(l,g){for(var p=l.length;p--&&yr(g,l[p],0)>-1;);return p}function Bs(l,g){for(var p=l.length,w=0;p--;)l[p]===g&&++w;return w}var Ws=Sn(Ss),Ms=Sn(Cs);function Ts(l){return"\\"+Rs[l]}function qs(l,g){return l==null?o:l[g]}function mr(l){return bs.test(l)}function Vs(l){return xs.test(l)}function Zs(l){for(var g,p=[];!(g=l.next()).done;)p.push(g.value);return p}function Dn(l){var g=-1,p=Array(l.size);return l.forEach(function(w,S){p[++g]=[S,w]}),p}function _i(l,g){return function(p){return l(g(p))}}function Zt(l,g){for(var p=-1,w=l.length,S=0,O=[];++p<w;){var T=l[p];(T===g||T===ne)&&(l[p]=ne,O[S++]=p)}return O}function ve(l){var g=-1,p=Array(l.size);return l.forEach(function(w){p[++g]=w}),p}function Hs(l){var g=-1,p=Array(l.size);return l.forEach(function(w){p[++g]=[w,w]}),p}function Ks(l,g,p){for(var w=p-1,S=l.length;++w<S;)if(l[w]===g)return w;return-1}function Js(l,g,p){for(var w=p+1;w--;)if(l[w]===g)return w;return w}function wr(l){return mr(l)?Qs(l):Ps(l)}function xt(l){return mr(l)?Xs(l):Fs(l)}function yi(l){for(var g=l.length;g--&&Bo.test(l.charAt(g)););return g}var Ys=Sn(As);function Qs(l){for(var g=yn.lastIndex=0;yn.test(l);)++g;return g}function Xs(l){return l.match(yn)||[]}function tc(l){return l.match(ws)||[]}var rc=function l(g){g=g==null?Z:br.defaults(Z.Object(),g,br.pick(Z,ks));var p=g.Array,w=g.Date,S=g.Error,O=g.Function,T=g.Math,F=g.Object,In=g.RegExp,ec=g.String,gt=g.TypeError,de=p.prototype,nc=O.prototype,xr=F.prototype,_e=g["__core-js_shared__"],ye=nc.toString,P=xr.hasOwnProperty,uc=0,mi=function(){var t=/[^.]+$/.exec(_e&&_e.keys&&_e.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),me=xr.toString,ic=ye.call(F),ac=Z._,oc=In("^"+ye.call(P).replace(hn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),we=ei?g.Buffer:o,Ht=g.Symbol,be=g.Uint8Array,wi=we?we.allocUnsafe:o,xe=_i(F.getPrototypeOf,F),bi=F.create,xi=xr.propertyIsEnumerable,ke=de.splice,ki=Ht?Ht.isConcatSpreadable:o,Wr=Ht?Ht.iterator:o,nr=Ht?Ht.toStringTag:o,Ee=function(){try{var t=sr(F,"defineProperty");return t({},"",{}),t}catch{}}(),sc=g.clearTimeout!==Z.clearTimeout&&g.clearTimeout,cc=w&&w.now!==Z.Date.now&&w.now,fc=g.setTimeout!==Z.setTimeout&&g.setTimeout,Se=T.ceil,Ce=T.floor,Nn=F.getOwnPropertySymbols,lc=we?we.isBuffer:o,Ei=g.isFinite,hc=de.join,pc=_i(F.keys,F),q=T.max,K=T.min,gc=w.now,vc=g.parseInt,Si=T.random,dc=de.reverse,jn=sr(g,"DataView"),Mr=sr(g,"Map"),On=sr(g,"Promise"),kr=sr(g,"Set"),Tr=sr(g,"WeakMap"),qr=sr(F,"create"),Ae=Tr&&new Tr,Er={},_c=cr(jn),yc=cr(Mr),mc=cr(On),wc=cr(kr),bc=cr(Tr),Re=Ht?Ht.prototype:o,Vr=Re?Re.valueOf:o,Ci=Re?Re.toString:o;function i(t){if(B(t)&&!C(t)&&!(t instanceof N)){if(t instanceof vt)return t;if(P.call(t,"__wrapped__"))return Aa(t)}return new vt(t)}var Sr=function(){function t(){}return function(r){if(!U(r))return{};if(bi)return bi(r);t.prototype=r;var e=new t;return t.prototype=o,e}}();function De(){}function vt(t,r){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!r,this.__index__=0,this.__values__=o}i.templateSettings={escape:Po,evaluate:Fo,interpolate:Pu,variable:"",imports:{_:i}},i.prototype=De.prototype,i.prototype.constructor=i,vt.prototype=Sr(De.prototype),vt.prototype.constructor=vt;function N(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Rt,this.__views__=[]}function xc(){var t=new N(this.__wrapped__);return t.__actions__=tt(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=tt(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=tt(this.__views__),t}function kc(){if(this.__filtered__){var t=new N(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function Ec(){var t=this.__wrapped__.value(),r=this.__dir__,e=C(t),n=r<0,u=e?t.length:0,a=Gf(0,u,this.__views__),c=a.start,f=a.end,h=f-c,v=n?f:c-1,d=this.__iteratees__,_=d.length,m=0,b=K(h,this.__takeCount__);if(!e||!n&&u==h&&b==h)return Ji(t,this.__actions__);var k=[];t:for(;h--&&m<b;){v+=r;for(var R=-1,E=t[v];++R<_;){var I=d[R],j=I.iteratee,st=I.type,X=j(E);if(st==yo)E=X;else if(!X){if(st==Iu)continue t;break t}}k[m++]=E}return k}N.prototype=Sr(De.prototype),N.prototype.constructor=N;function ur(t){var r=-1,e=t==null?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}function Sc(){this.__data__=qr?qr(null):{},this.size=0}function Cc(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}function Ac(t){var r=this.__data__;if(qr){var e=r[t];return e===tn?o:e}return P.call(r,t)?r[t]:o}function Rc(t){var r=this.__data__;return qr?r[t]!==o:P.call(r,t)}function Dc(t,r){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=qr&&r===o?tn:r,this}ur.prototype.clear=Sc,ur.prototype.delete=Cc,ur.prototype.get=Ac,ur.prototype.has=Rc,ur.prototype.set=Dc;function Lt(t){var r=-1,e=t==null?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}function Ic(){this.__data__=[],this.size=0}function Nc(t){var r=this.__data__,e=Ie(r,t);if(e<0)return!1;var n=r.length-1;return e==n?r.pop():ke.call(r,e,1),--this.size,!0}function jc(t){var r=this.__data__,e=Ie(r,t);return e<0?o:r[e][1]}function Oc(t){return Ie(this.__data__,t)>-1}function Lc(t,r){var e=this.__data__,n=Ie(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this}Lt.prototype.clear=Ic,Lt.prototype.delete=Nc,Lt.prototype.get=jc,Lt.prototype.has=Oc,Lt.prototype.set=Lc;function Pt(t){var r=-1,e=t==null?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}function Pc(){this.size=0,this.__data__={hash:new ur,map:new(Mr||Lt),string:new ur}}function Fc(t){var r=We(this,t).delete(t);return this.size-=r?1:0,r}function Gc(t){return We(this,t).get(t)}function $c(t){return We(this,t).has(t)}function zc(t,r){var e=We(this,t),n=e.size;return e.set(t,r),this.size+=e.size==n?0:1,this}Pt.prototype.clear=Pc,Pt.prototype.delete=Fc,Pt.prototype.get=Gc,Pt.prototype.has=$c,Pt.prototype.set=zc;function ir(t){var r=-1,e=t==null?0:t.length;for(this.__data__=new Pt;++r<e;)this.add(t[r])}function Uc(t){return this.__data__.set(t,tn),this}function Bc(t){return this.__data__.has(t)}ir.prototype.add=ir.prototype.push=Uc,ir.prototype.has=Bc;function kt(t){var r=this.__data__=new Lt(t);this.size=r.size}function Wc(){this.__data__=new Lt,this.size=0}function Mc(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e}function Tc(t){return this.__data__.get(t)}function qc(t){return this.__data__.has(t)}function Vc(t,r){var e=this.__data__;if(e instanceof Lt){var n=e.__data__;if(!Mr||n.length<jr-1)return n.push([t,r]),this.size=++e.size,this;e=this.__data__=new Pt(n)}return e.set(t,r),this.size=e.size,this}kt.prototype.clear=Wc,kt.prototype.delete=Mc,kt.prototype.get=Tc,kt.prototype.has=qc,kt.prototype.set=Vc;function Ai(t,r){var e=C(t),n=!e&&fr(t),u=!e&&!n&&Xt(t),a=!e&&!n&&!u&&Dr(t),c=e||n||u||a,f=c?An(t.length,ec):[],h=f.length;for(var v in t)(r||P.call(t,v))&&!(c&&(v=="length"||u&&(v=="offset"||v=="parent")||a&&(v=="buffer"||v=="byteLength"||v=="byteOffset")||zt(v,h)))&&f.push(v);return f}function Ri(t){var r=t.length;return r?t[Tn(0,r-1)]:o}function Zc(t,r){return Me(tt(t),ar(r,0,t.length))}function Hc(t){return Me(tt(t))}function Ln(t,r,e){(e!==o&&!Et(t[r],e)||e===o&&!(r in t))&&Ft(t,r,e)}function Zr(t,r,e){var n=t[r];(!(P.call(t,r)&&Et(n,e))||e===o&&!(r in t))&&Ft(t,r,e)}function Ie(t,r){for(var e=t.length;e--;)if(Et(t[e][0],r))return e;return-1}function Kc(t,r,e,n){return Kt(t,function(u,a,c){r(n,u,e(u),c)}),n}function Di(t,r){return t&&It(r,V(r),t)}function Jc(t,r){return t&&It(r,et(r),t)}function Ft(t,r,e){r=="__proto__"&&Ee?Ee(t,r,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[r]=e}function Pn(t,r){for(var e=-1,n=r.length,u=p(n),a=t==null;++e<n;)u[e]=a?o:vu(t,r[e]);return u}function ar(t,r,e){return t===t&&(e!==o&&(t=t<=e?t:e),r!==o&&(t=t>=r?t:r)),t}function dt(t,r,e,n,u,a){var c,f=r&Mt,h=r&Ru,v=r&lr;if(e&&(c=u?e(t,n,u,a):e(t)),c!==o)return c;if(!U(t))return t;var d=C(t);if(d){if(c=zf(t),!f)return tt(t,c)}else{var _=J(t),m=_==se||_==Nu;if(Xt(t))return Xi(t,f);if(_==Ot||_==vr||m&&!u){if(c=h||m?{}:ya(t),!f)return h?Rf(t,Jc(c,t)):Af(t,Di(c,t))}else{if(!G[_])return u?t:{};c=Uf(t,_,f)}}a||(a=new kt);var b=a.get(t);if(b)return b;a.set(t,c),Za(t)?t.forEach(function(E){c.add(dt(E,r,e,E,t,a))}):qa(t)&&t.forEach(function(E,I){c.set(I,dt(E,r,e,I,t,a))});var k=v?h?ru:tu:h?et:V,R=d?o:k(t);return pt(R||t,function(E,I){R&&(I=E,E=t[I]),Zr(c,I,dt(E,r,e,I,t,a))}),c}function Yc(t){var r=V(t);return function(e){return Ii(e,t,r)}}function Ii(t,r,e){var n=e.length;if(t==null)return!n;for(t=F(t);n--;){var u=e[n],a=r[u],c=t[u];if(c===o&&!(u in t)||!a(c))return!1}return!0}function Ni(t,r,e){if(typeof t!="function")throw new gt(ft);return te(function(){t.apply(o,e)},r)}function Hr(t,r,e,n){var u=-1,a=pe,c=!0,f=t.length,h=[],v=r.length;if(!f)return h;e&&(r=z(r,it(e))),n?(a=bn,c=!1):r.length>=jr&&(a=Br,c=!1,r=new ir(r));t:for(;++u<f;){var d=t[u],_=e==null?d:e(d);if(d=n||d!==0?d:0,c&&_===_){for(var m=v;m--;)if(r[m]===_)continue t;h.push(d)}else a(r,_,n)||h.push(d)}return h}var Kt=ua(Dt),ji=ua(Gn,!0);function Qc(t,r){var e=!0;return Kt(t,function(n,u,a){return e=!!r(n,u,a),e}),e}function Ne(t,r,e){for(var n=-1,u=t.length;++n<u;){var a=t[n],c=r(a);if(c!=null&&(f===o?c===c&&!ot(c):e(c,f)))var f=c,h=a}return h}function Xc(t,r,e,n){var u=t.length;for(e=A(e),e<0&&(e=-e>u?0:u+e),n=n===o||n>u?u:A(n),n<0&&(n+=u),n=e>n?0:Ka(n);e<n;)t[e++]=r;return t}function Oi(t,r){var e=[];return Kt(t,function(n,u,a){r(n,u,a)&&e.push(n)}),e}function H(t,r,e,n,u){var a=-1,c=t.length;for(e||(e=Wf),u||(u=[]);++a<c;){var f=t[a];r>0&&e(f)?r>1?H(f,r-1,e,n,u):Vt(u,f):n||(u[u.length]=f)}return u}var Fn=ia(),Li=ia(!0);function Dt(t,r){return t&&Fn(t,r,V)}function Gn(t,r){return t&&Li(t,r,V)}function je(t,r){return qt(r,function(e){return Ut(t[e])})}function or(t,r){r=Yt(r,t);for(var e=0,n=r.length;t!=null&&e<n;)t=t[Nt(r[e++])];return e&&e==n?t:o}function Pi(t,r,e){var n=r(t);return C(t)?n:Vt(n,e(t))}function Y(t){return t==null?t===o?Ro:Co:nr&&nr in F(t)?Ff(t):Kf(t)}function $n(t,r){return t>r}function tf(t,r){return t!=null&&P.call(t,r)}function rf(t,r){return t!=null&&r in F(t)}function ef(t,r,e){return t>=K(r,e)&&t<q(r,e)}function zn(t,r,e){for(var n=e?bn:pe,u=t[0].length,a=t.length,c=a,f=p(a),h=1/0,v=[];c--;){var d=t[c];c&&r&&(d=z(d,it(r))),h=K(d.length,h),f[c]=!e&&(r||u>=120&&d.length>=120)?new ir(c&&d):o}d=t[0];var _=-1,m=f[0];t:for(;++_<u&&v.length<h;){var b=d[_],k=r?r(b):b;if(b=e||b!==0?b:0,!(m?Br(m,k):n(v,k,e))){for(c=a;--c;){var R=f[c];if(!(R?Br(R,k):n(t[c],k,e)))continue t}m&&m.push(k),v.push(b)}}return v}function nf(t,r,e,n){return Dt(t,function(u,a,c){r(n,e(u),a,c)}),n}function Kr(t,r,e){r=Yt(r,t),t=xa(t,r);var n=t==null?t:t[Nt(yt(r))];return n==null?o:ut(n,t,e)}function Fi(t){return B(t)&&Y(t)==vr}function uf(t){return B(t)&&Y(t)==Ur}function af(t){return B(t)&&Y(t)==Pr}function Jr(t,r,e,n,u){return t===r?!0:t==null||r==null||!B(t)&&!B(r)?t!==t&&r!==r:of(t,r,e,n,Jr,u)}function of(t,r,e,n,u,a){var c=C(t),f=C(r),h=c?ae:J(t),v=f?ae:J(r);h=h==vr?Ot:h,v=v==vr?Ot:v;var d=h==Ot,_=v==Ot,m=h==v;if(m&&Xt(t)){if(!Xt(r))return!1;c=!0,d=!1}if(m&&!d)return a||(a=new kt),c||Dr(t)?va(t,r,e,n,u,a):Lf(t,r,h,e,n,u,a);if(!(e&hr)){var b=d&&P.call(t,"__wrapped__"),k=_&&P.call(r,"__wrapped__");if(b||k){var R=b?t.value():t,E=k?r.value():r;return a||(a=new kt),u(R,E,e,n,a)}}return m?(a||(a=new kt),Pf(t,r,e,n,u,a)):!1}function sf(t){return B(t)&&J(t)==wt}function Un(t,r,e,n){var u=e.length,a=u,c=!n;if(t==null)return!a;for(t=F(t);u--;){var f=e[u];if(c&&f[2]?f[1]!==t[f[0]]:!(f[0]in t))return!1}for(;++u<a;){f=e[u];var h=f[0],v=t[h],d=f[1];if(c&&f[2]){if(v===o&&!(h in t))return!1}else{var _=new kt;if(n)var m=n(v,d,h,t,r,_);if(!(m===o?Jr(d,v,hr|ue,n,_):m))return!1}}return!0}function Gi(t){if(!U(t)||Tf(t))return!1;var r=Ut(t)?oc:Yo;return r.test(cr(t))}function cf(t){return B(t)&&Y(t)==Gr}function ff(t){return B(t)&&J(t)==bt}function lf(t){return B(t)&&Ke(t.length)&&!!$[Y(t)]}function $i(t){return typeof t=="function"?t:t==null?nt:typeof t=="object"?C(t)?Bi(t[0],t[1]):Ui(t):ao(t)}function Bn(t){if(!Xr(t))return pc(t);var r=[];for(var e in F(t))P.call(t,e)&&e!="constructor"&&r.push(e);return r}function hf(t){if(!U(t))return Hf(t);var r=Xr(t),e=[];for(var n in t)n=="constructor"&&(r||!P.call(t,n))||e.push(n);return e}function Wn(t,r){return t<r}function zi(t,r){var e=-1,n=rt(t)?p(t.length):[];return Kt(t,function(u,a,c){n[++e]=r(u,a,c)}),n}function Ui(t){var r=nu(t);return r.length==1&&r[0][2]?wa(r[0][0],r[0][1]):function(e){return e===t||Un(e,t,r)}}function Bi(t,r){return iu(t)&&ma(r)?wa(Nt(t),r):function(e){var n=vu(e,t);return n===o&&n===r?du(e,t):Jr(r,n,hr|ue)}}function Oe(t,r,e,n,u){t!==r&&Fn(r,function(a,c){if(u||(u=new kt),U(a))pf(t,r,c,e,Oe,n,u);else{var f=n?n(ou(t,c),a,c+"",t,r,u):o;f===o&&(f=a),Ln(t,c,f)}},et)}function pf(t,r,e,n,u,a,c){var f=ou(t,e),h=ou(r,e),v=c.get(h);if(v){Ln(t,e,v);return}var d=a?a(f,h,e+"",t,r,c):o,_=d===o;if(_){var m=C(h),b=!m&&Xt(h),k=!m&&!b&&Dr(h);d=h,m||b||k?C(f)?d=f:W(f)?d=tt(f):b?(_=!1,d=Xi(h,!0)):k?(_=!1,d=ta(h,!0)):d=[]:re(h)||fr(h)?(d=f,fr(f)?d=Ja(f):(!U(f)||Ut(f))&&(d=ya(h))):_=!1}_&&(c.set(h,d),u(d,h,n,a,c),c.delete(h)),Ln(t,e,d)}function Wi(t,r){var e=t.length;if(e)return r+=r<0?e:0,zt(r,e)?t[r]:o}function Mi(t,r,e){r.length?r=z(r,function(a){return C(a)?function(c){return or(c,a.length===1?a[0]:a)}:a}):r=[nt];var n=-1;r=z(r,it(x()));var u=zi(t,function(a,c,f){var h=z(r,function(v){return v(a)});return{criteria:h,index:++n,value:a}});return zs(u,function(a,c){return Cf(a,c,e)})}function gf(t,r){return Ti(t,r,function(e,n){return du(t,n)})}function Ti(t,r,e){for(var n=-1,u=r.length,a={};++n<u;){var c=r[n],f=or(t,c);e(f,c)&&Yr(a,Yt(c,t),f)}return a}function vf(t){return function(r){return or(r,t)}}function Mn(t,r,e,n){var u=n?$s:yr,a=-1,c=r.length,f=t;for(t===r&&(r=tt(r)),e&&(f=z(t,it(e)));++a<c;)for(var h=0,v=r[a],d=e?e(v):v;(h=u(f,d,h,n))>-1;)f!==t&&ke.call(f,h,1),ke.call(t,h,1);return t}function qi(t,r){for(var e=t?r.length:0,n=e-1;e--;){var u=r[e];if(e==n||u!==a){var a=u;zt(u)?ke.call(t,u,1):Zn(t,u)}}return t}function Tn(t,r){return t+Ce(Si()*(r-t+1))}function df(t,r,e,n){for(var u=-1,a=q(Se((r-t)/(e||1)),0),c=p(a);a--;)c[n?a:++u]=t,t+=e;return c}function qn(t,r){var e="";if(!t||r<1||r>Tt)return e;do r%2&&(e+=t),r=Ce(r/2),r&&(t+=t);while(r);return e}function D(t,r){return su(ba(t,r,nt),t+"")}function _f(t){return Ri(Ir(t))}function yf(t,r){var e=Ir(t);return Me(e,ar(r,0,e.length))}function Yr(t,r,e,n){if(!U(t))return t;r=Yt(r,t);for(var u=-1,a=r.length,c=a-1,f=t;f!=null&&++u<a;){var h=Nt(r[u]),v=e;if(h==="__proto__"||h==="constructor"||h==="prototype")return t;if(u!=c){var d=f[h];v=n?n(d,h,f):o,v===o&&(v=U(d)?d:zt(r[u+1])?[]:{})}Zr(f,h,v),f=f[h]}return t}var Vi=Ae?function(t,r){return Ae.set(t,r),t}:nt,mf=Ee?function(t,r){return Ee(t,"toString",{configurable:!0,enumerable:!1,value:yu(r),writable:!0})}:nt;function wf(t){return Me(Ir(t))}function _t(t,r,e){var n=-1,u=t.length;r<0&&(r=-r>u?0:u+r),e=e>u?u:e,e<0&&(e+=u),u=r>e?0:e-r>>>0,r>>>=0;for(var a=p(u);++n<u;)a[n]=t[n+r];return a}function bf(t,r){var e;return Kt(t,function(n,u,a){return e=r(n,u,a),!e}),!!e}function Le(t,r,e){var n=0,u=t==null?n:t.length;if(typeof r=="number"&&r===r&&u<=xo){for(;n<u;){var a=n+u>>>1,c=t[a];c!==null&&!ot(c)&&(e?c<=r:c<r)?n=a+1:u=a}return u}return Vn(t,r,nt,e)}function Vn(t,r,e,n){var u=0,a=t==null?0:t.length;if(a===0)return 0;r=e(r);for(var c=r!==r,f=r===null,h=ot(r),v=r===o;u<a;){var d=Ce((u+a)/2),_=e(t[d]),m=_!==o,b=_===null,k=_===_,R=ot(_);if(c)var E=n||k;else v?E=k&&(n||m):f?E=k&&m&&(n||!b):h?E=k&&m&&!b&&(n||!R):b||R?E=!1:E=n?_<=r:_<r;E?u=d+1:a=d}return K(a,bo)}function Zi(t,r){for(var e=-1,n=t.length,u=0,a=[];++e<n;){var c=t[e],f=r?r(c):c;if(!e||!Et(f,h)){var h=f;a[u++]=c===0?0:c}}return a}function Hi(t){return typeof t=="number"?t:ot(t)?ie:+t}function at(t){if(typeof t=="string")return t;if(C(t))return z(t,at)+"";if(ot(t))return Ci?Ci.call(t):"";var r=t+"";return r=="0"&&1/t==-rr?"-0":r}function Jt(t,r,e){var n=-1,u=pe,a=t.length,c=!0,f=[],h=f;if(e)c=!1,u=bn;else if(a>=jr){var v=r?null:jf(t);if(v)return ve(v);c=!1,u=Br,h=new ir}else h=r?[]:f;t:for(;++n<a;){var d=t[n],_=r?r(d):d;if(d=e||d!==0?d:0,c&&_===_){for(var m=h.length;m--;)if(h[m]===_)continue t;r&&h.push(_),f.push(d)}else u(h,_,e)||(h!==f&&h.push(_),f.push(d))}return f}function Zn(t,r){return r=Yt(r,t),t=xa(t,r),t==null||delete t[Nt(yt(r))]}function Ki(t,r,e,n){return Yr(t,r,e(or(t,r)),n)}function Pe(t,r,e,n){for(var u=t.length,a=n?u:-1;(n?a--:++a<u)&&r(t[a],a,t););return e?_t(t,n?0:a,n?a+1:u):_t(t,n?a+1:0,n?u:a)}function Ji(t,r){var e=t;return e instanceof N&&(e=e.value()),xn(r,function(n,u){return u.func.apply(u.thisArg,Vt([n],u.args))},e)}function Hn(t,r,e){var n=t.length;if(n<2)return n?Jt(t[0]):[];for(var u=-1,a=p(n);++u<n;)for(var c=t[u],f=-1;++f<n;)f!=u&&(a[u]=Hr(a[u]||c,t[f],r,e));return Jt(H(a,1),r,e)}function Yi(t,r,e){for(var n=-1,u=t.length,a=r.length,c={};++n<u;){var f=n<a?r[n]:o;e(c,t[n],f)}return c}function Kn(t){return W(t)?t:[]}function Jn(t){return typeof t=="function"?t:nt}function Yt(t,r){return C(t)?t:iu(t,r)?[t]:Ca(L(t))}var xf=D;function Qt(t,r,e){var n=t.length;return e=e===o?n:e,!r&&e>=n?t:_t(t,r,e)}var Qi=sc||function(t){return Z.clearTimeout(t)};function Xi(t,r){if(r)return t.slice();var e=t.length,n=wi?wi(e):new t.constructor(e);return t.copy(n),n}function Yn(t){var r=new t.constructor(t.byteLength);return new be(r).set(new be(t)),r}function kf(t,r){var e=r?Yn(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}function Ef(t){var r=new t.constructor(t.source,Fu.exec(t));return r.lastIndex=t.lastIndex,r}function Sf(t){return Vr?F(Vr.call(t)):{}}function ta(t,r){var e=r?Yn(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}function ra(t,r){if(t!==r){var e=t!==o,n=t===null,u=t===t,a=ot(t),c=r!==o,f=r===null,h=r===r,v=ot(r);if(!f&&!v&&!a&&t>r||a&&c&&h&&!f&&!v||n&&c&&h||!e&&h||!u)return 1;if(!n&&!a&&!v&&t<r||v&&e&&u&&!n&&!a||f&&e&&u||!c&&u||!h)return-1}return 0}function Cf(t,r,e){for(var n=-1,u=t.criteria,a=r.criteria,c=u.length,f=e.length;++n<c;){var h=ra(u[n],a[n]);if(h){if(n>=f)return h;var v=e[n];return h*(v=="desc"?-1:1)}}return t.index-r.index}function ea(t,r,e,n){for(var u=-1,a=t.length,c=e.length,f=-1,h=r.length,v=q(a-c,0),d=p(h+v),_=!n;++f<h;)d[f]=r[f];for(;++u<c;)(_||u<a)&&(d[e[u]]=t[u]);for(;v--;)d[f++]=t[u++];return d}function na(t,r,e,n){for(var u=-1,a=t.length,c=-1,f=e.length,h=-1,v=r.length,d=q(a-f,0),_=p(d+v),m=!n;++u<d;)_[u]=t[u];for(var b=u;++h<v;)_[b+h]=r[h];for(;++c<f;)(m||u<a)&&(_[b+e[c]]=t[u++]);return _}function tt(t,r){var e=-1,n=t.length;for(r||(r=p(n));++e<n;)r[e]=t[e];return r}function It(t,r,e,n){var u=!e;e||(e={});for(var a=-1,c=r.length;++a<c;){var f=r[a],h=n?n(e[f],t[f],f,e,t):o;h===o&&(h=t[f]),u?Ft(e,f,h):Zr(e,f,h)}return e}function Af(t,r){return It(t,uu(t),r)}function Rf(t,r){return It(t,da(t),r)}function Fe(t,r){return function(e,n){var u=C(e)?js:Kc,a=r?r():{};return u(e,t,x(n,2),a)}}function Cr(t){return D(function(r,e){var n=-1,u=e.length,a=u>1?e[u-1]:o,c=u>2?e[2]:o;for(a=t.length>3&&typeof a=="function"?(u--,a):o,c&&Q(e[0],e[1],c)&&(a=u<3?o:a,u=1),r=F(r);++n<u;){var f=e[n];f&&t(r,f,n,a)}return r})}function ua(t,r){return function(e,n){if(e==null)return e;if(!rt(e))return t(e,n);for(var u=e.length,a=r?u:-1,c=F(e);(r?a--:++a<u)&&n(c[a],a,c)!==!1;);return e}}function ia(t){return function(r,e,n){for(var u=-1,a=F(r),c=n(r),f=c.length;f--;){var h=c[t?f:++u];if(e(a[h],h,a)===!1)break}return r}}function Df(t,r,e){var n=r&lt,u=Qr(t);function a(){var c=this&&this!==Z&&this instanceof a?u:t;return c.apply(n?e:this,arguments)}return a}function aa(t){return function(r){r=L(r);var e=mr(r)?xt(r):o,n=e?e[0]:r.charAt(0),u=e?Qt(e,1).join(""):r.slice(1);return n[t]()+u}}function Ar(t){return function(r){return xn(uo(no(r).replace(ys,"")),t,"")}}function Qr(t){return function(){var r=arguments;switch(r.length){case 0:return new t;case 1:return new t(r[0]);case 2:return new t(r[0],r[1]);case 3:return new t(r[0],r[1],r[2]);case 4:return new t(r[0],r[1],r[2],r[3]);case 5:return new t(r[0],r[1],r[2],r[3],r[4]);case 6:return new t(r[0],r[1],r[2],r[3],r[4],r[5]);case 7:return new t(r[0],r[1],r[2],r[3],r[4],r[5],r[6])}var e=Sr(t.prototype),n=t.apply(e,r);return U(n)?n:e}}function If(t,r,e){var n=Qr(t);function u(){for(var a=arguments.length,c=p(a),f=a,h=Rr(u);f--;)c[f]=arguments[f];var v=a<3&&c[0]!==h&&c[a-1]!==h?[]:Zt(c,h);if(a-=v.length,a<e)return la(t,r,Ge,u.placeholder,o,c,v,o,o,e-a);var d=this&&this!==Z&&this instanceof u?n:t;return ut(d,this,c)}return u}function oa(t){return function(r,e,n){var u=F(r);if(!rt(r)){var a=x(e,3);r=V(r),e=function(f){return a(u[f],f,u)}}var c=t(r,e,n);return c>-1?u[a?r[c]:c]:o}}function sa(t){return $t(function(r){var e=r.length,n=e,u=vt.prototype.thru;for(t&&r.reverse();n--;){var a=r[n];if(typeof a!="function")throw new gt(ft);if(u&&!c&&Be(a)=="wrapper")var c=new vt([],!0)}for(n=c?n:e;++n<e;){a=r[n];var f=Be(a),h=f=="wrapper"?eu(a):o;h&&au(h[0])&&h[1]==(jt|Ct|At|Or)&&!h[4].length&&h[9]==1?c=c[Be(h[0])].apply(c,h[3]):c=a.length==1&&au(a)?c[f]():c.thru(a)}return function(){var v=arguments,d=v[0];if(c&&v.length==1&&C(d))return c.plant(d).value();for(var _=0,m=e?r[_].apply(this,v):d;++_<e;)m=r[_].call(this,m);return m}})}function Ge(t,r,e,n,u,a,c,f,h,v){var d=r&jt,_=r&lt,m=r&tr,b=r&(Ct|pr),k=r&rn,R=m?o:Qr(t);function E(){for(var I=arguments.length,j=p(I),st=I;st--;)j[st]=arguments[st];if(b)var X=Rr(E),ct=Bs(j,X);if(n&&(j=ea(j,n,u,b)),a&&(j=na(j,a,c,b)),I-=ct,b&&I<v){var M=Zt(j,X);return la(t,r,Ge,E.placeholder,e,j,M,f,h,v-I)}var St=_?e:this,Wt=m?St[t]:t;return I=j.length,f?j=Jf(j,f):k&&I>1&&j.reverse(),d&&h<I&&(j.length=h),this&&this!==Z&&this instanceof E&&(Wt=R||Qr(Wt)),Wt.apply(St,j)}return E}function ca(t,r){return function(e,n){return nf(e,t,r(n),{})}}function $e(t,r){return function(e,n){var u;if(e===o&&n===o)return r;if(e!==o&&(u=e),n!==o){if(u===o)return n;typeof e=="string"||typeof n=="string"?(e=at(e),n=at(n)):(e=Hi(e),n=Hi(n)),u=t(e,n)}return u}}function Qn(t){return $t(function(r){return r=z(r,it(x())),D(function(e){var n=this;return t(r,function(u){return ut(u,n,e)})})})}function ze(t,r){r=r===o?" ":at(r);var e=r.length;if(e<2)return e?qn(r,t):r;var n=qn(r,Se(t/wr(r)));return mr(r)?Qt(xt(n),0,t).join(""):n.slice(0,t)}function Nf(t,r,e,n){var u=r&lt,a=Qr(t);function c(){for(var f=-1,h=arguments.length,v=-1,d=n.length,_=p(d+h),m=this&&this!==Z&&this instanceof c?a:t;++v<d;)_[v]=n[v];for(;h--;)_[v++]=arguments[++f];return ut(m,u?e:this,_)}return c}function fa(t){return function(r,e,n){return n&&typeof n!="number"&&Q(r,e,n)&&(e=n=o),r=Bt(r),e===o?(e=r,r=0):e=Bt(e),n=n===o?r<e?1:-1:Bt(n),df(r,e,n,t)}}function Ue(t){return function(r,e){return typeof r=="string"&&typeof e=="string"||(r=mt(r),e=mt(e)),t(r,e)}}function la(t,r,e,n,u,a,c,f,h,v){var d=r&Ct,_=d?c:o,m=d?o:c,b=d?a:o,k=d?o:a;r|=d?At:gr,r&=~(d?gr:At),r&Du||(r&=~(lt|tr));var R=[t,r,u,b,_,k,m,f,h,v],E=e.apply(o,R);return au(t)&&ka(E,R),E.placeholder=n,Ea(E,t,r)}function Xn(t){var r=T[t];return function(e,n){if(e=mt(e),n=n==null?0:K(A(n),292),n&&Ei(e)){var u=(L(e)+"e").split("e"),a=r(u[0]+"e"+(+u[1]+n));return u=(L(a)+"e").split("e"),+(u[0]+"e"+(+u[1]-n))}return r(e)}}var jf=kr&&1/ve(new kr([,-0]))[1]==rr?function(t){return new kr(t)}:bu;function ha(t){return function(r){var e=J(r);return e==wt?Dn(r):e==bt?Hs(r):Us(r,t(r))}}function Gt(t,r,e,n,u,a,c,f){var h=r&tr;if(!h&&typeof t!="function")throw new gt(ft);var v=n?n.length:0;if(v||(r&=~(At|gr),n=u=o),c=c===o?c:q(A(c),0),f=f===o?f:A(f),v-=u?u.length:0,r&gr){var d=n,_=u;n=u=o}var m=h?o:eu(t),b=[t,r,e,n,u,d,_,a,c,f];if(m&&Zf(b,m),t=b[0],r=b[1],e=b[2],n=b[3],u=b[4],f=b[9]=b[9]===o?h?0:t.length:q(b[9]-v,0),!f&&r&(Ct|pr)&&(r&=~(Ct|pr)),!r||r==lt)var k=Df(t,r,e);else r==Ct||r==pr?k=If(t,r,f):(r==At||r==(lt|At))&&!u.length?k=Nf(t,r,e,n):k=Ge.apply(o,b);var R=m?Vi:ka;return Ea(R(k,b),t,r)}function pa(t,r,e,n){return t===o||Et(t,xr[e])&&!P.call(n,e)?r:t}function ga(t,r,e,n,u,a){return U(t)&&U(r)&&(a.set(r,t),Oe(t,r,o,ga,a),a.delete(r)),t}function Of(t){return re(t)?o:t}function va(t,r,e,n,u,a){var c=e&hr,f=t.length,h=r.length;if(f!=h&&!(c&&h>f))return!1;var v=a.get(t),d=a.get(r);if(v&&d)return v==r&&d==t;var _=-1,m=!0,b=e&ue?new ir:o;for(a.set(t,r),a.set(r,t);++_<f;){var k=t[_],R=r[_];if(n)var E=c?n(R,k,_,r,t,a):n(k,R,_,t,r,a);if(E!==o){if(E)continue;m=!1;break}if(b){if(!kn(r,function(I,j){if(!Br(b,j)&&(k===I||u(k,I,e,n,a)))return b.push(j)})){m=!1;break}}else if(!(k===R||u(k,R,e,n,a))){m=!1;break}}return a.delete(t),a.delete(r),m}function Lf(t,r,e,n,u,a,c){switch(e){case dr:if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case Ur:return!(t.byteLength!=r.byteLength||!a(new be(t),new be(r)));case Lr:case Pr:case Fr:return Et(+t,+r);case oe:return t.name==r.name&&t.message==r.message;case Gr:case $r:return t==r+"";case wt:var f=Dn;case bt:var h=n&hr;if(f||(f=ve),t.size!=r.size&&!h)return!1;var v=c.get(t);if(v)return v==r;n|=ue,c.set(t,r);var d=va(f(t),f(r),n,u,a,c);return c.delete(t),d;case ce:if(Vr)return Vr.call(t)==Vr.call(r)}return!1}function Pf(t,r,e,n,u,a){var c=e&hr,f=tu(t),h=f.length,v=tu(r),d=v.length;if(h!=d&&!c)return!1;for(var _=h;_--;){var m=f[_];if(!(c?m in r:P.call(r,m)))return!1}var b=a.get(t),k=a.get(r);if(b&&k)return b==r&&k==t;var R=!0;a.set(t,r),a.set(r,t);for(var E=c;++_<h;){m=f[_];var I=t[m],j=r[m];if(n)var st=c?n(j,I,m,r,t,a):n(I,j,m,t,r,a);if(!(st===o?I===j||u(I,j,e,n,a):st)){R=!1;break}E||(E=m=="constructor")}if(R&&!E){var X=t.constructor,ct=r.constructor;X!=ct&&"constructor"in t&&"constructor"in r&&!(typeof X=="function"&&X instanceof X&&typeof ct=="function"&&ct instanceof ct)&&(R=!1)}return a.delete(t),a.delete(r),R}function $t(t){return su(ba(t,o,Ia),t+"")}function tu(t){return Pi(t,V,uu)}function ru(t){return Pi(t,et,da)}var eu=Ae?function(t){return Ae.get(t)}:bu;function Be(t){for(var r=t.name+"",e=Er[r],n=P.call(Er,r)?e.length:0;n--;){var u=e[n],a=u.func;if(a==null||a==t)return u.name}return r}function Rr(t){var r=P.call(i,"placeholder")?i:t;return r.placeholder}function x(){var t=i.iteratee||mu;return t=t===mu?$i:t,arguments.length?t(arguments[0],arguments[1]):t}function We(t,r){var e=t.__data__;return Mf(r)?e[typeof r=="string"?"string":"hash"]:e.map}function nu(t){for(var r=V(t),e=r.length;e--;){var n=r[e],u=t[n];r[e]=[n,u,ma(u)]}return r}function sr(t,r){var e=qs(t,r);return Gi(e)?e:o}function Ff(t){var r=P.call(t,nr),e=t[nr];try{t[nr]=o;var n=!0}catch{}var u=me.call(t);return n&&(r?t[nr]=e:delete t[nr]),u}var uu=Nn?function(t){return t==null?[]:(t=F(t),qt(Nn(t),function(r){return xi.call(t,r)}))}:xu,da=Nn?function(t){for(var r=[];t;)Vt(r,uu(t)),t=xe(t);return r}:xu,J=Y;(jn&&J(new jn(new ArrayBuffer(1)))!=dr||Mr&&J(new Mr)!=wt||On&&J(On.resolve())!=ju||kr&&J(new kr)!=bt||Tr&&J(new Tr)!=zr)&&(J=function(t){var r=Y(t),e=r==Ot?t.constructor:o,n=e?cr(e):"";if(n)switch(n){case _c:return dr;case yc:return wt;case mc:return ju;case wc:return bt;case bc:return zr}return r});function Gf(t,r,e){for(var n=-1,u=e.length;++n<u;){var a=e[n],c=a.size;switch(a.type){case"drop":t+=c;break;case"dropRight":r-=c;break;case"take":r=K(r,t+c);break;case"takeRight":t=q(t,r-c);break}}return{start:t,end:r}}function $f(t){var r=t.match(Mo);return r?r[1].split(To):[]}function _a(t,r,e){r=Yt(r,t);for(var n=-1,u=r.length,a=!1;++n<u;){var c=Nt(r[n]);if(!(a=t!=null&&e(t,c)))break;t=t[c]}return a||++n!=u?a:(u=t==null?0:t.length,!!u&&Ke(u)&&zt(c,u)&&(C(t)||fr(t)))}function zf(t){var r=t.length,e=new t.constructor(r);return r&&typeof t[0]=="string"&&P.call(t,"index")&&(e.index=t.index,e.input=t.input),e}function ya(t){return typeof t.constructor=="function"&&!Xr(t)?Sr(xe(t)):{}}function Uf(t,r,e){var n=t.constructor;switch(r){case Ur:return Yn(t);case Lr:case Pr:return new n(+t);case dr:return kf(t,e);case en:case nn:case un:case an:case on:case sn:case cn:case fn:case ln:return ta(t,e);case wt:return new n;case Fr:case $r:return new n(t);case Gr:return Ef(t);case bt:return new n;case ce:return Sf(t)}}function Bf(t,r){var e=r.length;if(!e)return t;var n=e-1;return r[n]=(e>1?"& ":"")+r[n],r=r.join(e>2?", ":" "),t.replace(Wo,"{\n/* [wrapped with "+r+"] */\n")}function Wf(t){return C(t)||fr(t)||!!(ki&&t&&t[ki])}function zt(t,r){var e=typeof t;return r=r!=null?r:Tt,!!r&&(e=="number"||e!="symbol"&&Xo.test(t))&&t>-1&&t%1==0&&t<r}function Q(t,r,e){if(!U(e))return!1;var n=typeof r;return(n=="number"?rt(e)&&zt(r,e.length):n=="string"&&r in e)?Et(e[r],t):!1}function iu(t,r){if(C(t))return!1;var e=typeof t;return e=="number"||e=="symbol"||e=="boolean"||t==null||ot(t)?!0:$o.test(t)||!Go.test(t)||r!=null&&t in F(r)}function Mf(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}function au(t){var r=Be(t),e=i[r];if(typeof e!="function"||!(r in N.prototype))return!1;if(t===e)return!0;var n=eu(e);return!!n&&t===n[0]}function Tf(t){return!!mi&&mi in t}var qf=_e?Ut:ku;function Xr(t){var r=t&&t.constructor,e=typeof r=="function"&&r.prototype||xr;return t===e}function ma(t){return t===t&&!U(t)}function wa(t,r){return function(e){return e==null?!1:e[t]===r&&(r!==o||t in F(e))}}function Vf(t){var r=Ze(t,function(n){return e.size===ho&&e.clear(),n}),e=r.cache;return r}function Zf(t,r){var e=t[1],n=r[1],u=e|n,a=u<(lt|tr|jt),c=n==jt&&e==Ct||n==jt&&e==Or&&t[7].length<=r[8]||n==(jt|Or)&&r[7].length<=r[8]&&e==Ct;if(!(a||c))return t;n&lt&&(t[2]=r[2],u|=e&lt?0:Du);var f=r[3];if(f){var h=t[3];t[3]=h?ea(h,f,r[4]):f,t[4]=h?Zt(t[3],ne):r[4]}return f=r[5],f&&(h=t[5],t[5]=h?na(h,f,r[6]):f,t[6]=h?Zt(t[5],ne):r[6]),f=r[7],f&&(t[7]=f),n&jt&&(t[8]=t[8]==null?r[8]:K(t[8],r[8])),t[9]==null&&(t[9]=r[9]),t[0]=r[0],t[1]=u,t}function Hf(t){var r=[];if(t!=null)for(var e in F(t))r.push(e);return r}function Kf(t){return me.call(t)}function ba(t,r,e){return r=q(r===o?t.length-1:r,0),function(){for(var n=arguments,u=-1,a=q(n.length-r,0),c=p(a);++u<a;)c[u]=n[r+u];u=-1;for(var f=p(r+1);++u<r;)f[u]=n[u];return f[r]=e(c),ut(t,this,f)}}function xa(t,r){return r.length<2?t:or(t,_t(r,0,-1))}function Jf(t,r){for(var e=t.length,n=K(r.length,e),u=tt(t);n--;){var a=r[n];t[n]=zt(a,e)?u[a]:o}return t}function ou(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}var ka=Sa(Vi),te=fc||function(t,r){return Z.setTimeout(t,r)},su=Sa(mf);function Ea(t,r,e){var n=r+"";return su(t,Bf(n,Yf($f(n),e)))}function Sa(t){var r=0,e=0;return function(){var n=gc(),u=_o-(n-e);if(e=n,u>0){if(++r>=vo)return arguments[0]}else r=0;return t.apply(o,arguments)}}function Me(t,r){var e=-1,n=t.length,u=n-1;for(r=r===o?n:r;++e<r;){var a=Tn(e,u),c=t[a];t[a]=t[e],t[e]=c}return t.length=r,t}var Ca=Vf(function(t){var r=[];return t.charCodeAt(0)===46&&r.push(""),t.replace(zo,function(e,n,u,a){r.push(u?a.replace(Zo,"$1"):n||e)}),r});function Nt(t){if(typeof t=="string"||ot(t))return t;var r=t+"";return r=="0"&&1/t==-rr?"-0":r}function cr(t){if(t!=null){try{return ye.call(t)}catch{}try{return t+""}catch{}}return""}function Yf(t,r){return pt(ko,function(e){var n="_."+e[0];r&e[1]&&!pe(t,n)&&t.push(n)}),t.sort()}function Aa(t){if(t instanceof N)return t.clone();var r=new vt(t.__wrapped__,t.__chain__);return r.__actions__=tt(t.__actions__),r.__index__=t.__index__,r.__values__=t.__values__,r}function Qf(t,r,e){(e?Q(t,r,e):r===o)?r=1:r=q(A(r),0);var n=t==null?0:t.length;if(!n||r<1)return[];for(var u=0,a=0,c=p(Se(n/r));u<n;)c[a++]=_t(t,u,u+=r);return c}function Xf(t){for(var r=-1,e=t==null?0:t.length,n=0,u=[];++r<e;){var a=t[r];a&&(u[n++]=a)}return u}function tl(){var t=arguments.length;if(!t)return[];for(var r=p(t-1),e=arguments[0],n=t;n--;)r[n-1]=arguments[n];return Vt(C(e)?tt(e):[e],H(r,1))}var rl=D(function(t,r){return W(t)?Hr(t,H(r,1,W,!0)):[]}),el=D(function(t,r){var e=yt(r);return W(e)&&(e=o),W(t)?Hr(t,H(r,1,W,!0),x(e,2)):[]}),nl=D(function(t,r){var e=yt(r);return W(e)&&(e=o),W(t)?Hr(t,H(r,1,W,!0),o,e):[]});function ul(t,r,e){var n=t==null?0:t.length;return n?(r=e||r===o?1:A(r),_t(t,r<0?0:r,n)):[]}function il(t,r,e){var n=t==null?0:t.length;return n?(r=e||r===o?1:A(r),r=n-r,_t(t,0,r<0?0:r)):[]}function al(t,r){return t&&t.length?Pe(t,x(r,3),!0,!0):[]}function ol(t,r){return t&&t.length?Pe(t,x(r,3),!0):[]}function sl(t,r,e,n){var u=t==null?0:t.length;return u?(e&&typeof e!="number"&&Q(t,r,e)&&(e=0,n=u),Xc(t,r,e,n)):[]}function Ra(t,r,e){var n=t==null?0:t.length;if(!n)return-1;var u=e==null?0:A(e);return u<0&&(u=q(n+u,0)),ge(t,x(r,3),u)}function Da(t,r,e){var n=t==null?0:t.length;if(!n)return-1;var u=n-1;return e!==o&&(u=A(e),u=e<0?q(n+u,0):K(u,n-1)),ge(t,x(r,3),u,!0)}function Ia(t){var r=t==null?0:t.length;return r?H(t,1):[]}function cl(t){var r=t==null?0:t.length;return r?H(t,rr):[]}function fl(t,r){var e=t==null?0:t.length;return e?(r=r===o?1:A(r),H(t,r)):[]}function ll(t){for(var r=-1,e=t==null?0:t.length,n={};++r<e;){var u=t[r];n[u[0]]=u[1]}return n}function Na(t){return t&&t.length?t[0]:o}function hl(t,r,e){var n=t==null?0:t.length;if(!n)return-1;var u=e==null?0:A(e);return u<0&&(u=q(n+u,0)),yr(t,r,u)}function pl(t){var r=t==null?0:t.length;return r?_t(t,0,-1):[]}var gl=D(function(t){var r=z(t,Kn);return r.length&&r[0]===t[0]?zn(r):[]}),vl=D(function(t){var r=yt(t),e=z(t,Kn);return r===yt(e)?r=o:e.pop(),e.length&&e[0]===t[0]?zn(e,x(r,2)):[]}),dl=D(function(t){var r=yt(t),e=z(t,Kn);return r=typeof r=="function"?r:o,r&&e.pop(),e.length&&e[0]===t[0]?zn(e,o,r):[]});function _l(t,r){return t==null?"":hc.call(t,r)}function yt(t){var r=t==null?0:t.length;return r?t[r-1]:o}function yl(t,r,e){var n=t==null?0:t.length;if(!n)return-1;var u=n;return e!==o&&(u=A(e),u=u<0?q(n+u,0):K(u,n-1)),r===r?Js(t,r,u):ge(t,li,u,!0)}function ml(t,r){return t&&t.length?Wi(t,A(r)):o}var wl=D(ja);function ja(t,r){return t&&t.length&&r&&r.length?Mn(t,r):t}function bl(t,r,e){return t&&t.length&&r&&r.length?Mn(t,r,x(e,2)):t}function xl(t,r,e){return t&&t.length&&r&&r.length?Mn(t,r,o,e):t}var kl=$t(function(t,r){var e=t==null?0:t.length,n=Pn(t,r);return qi(t,z(r,function(u){return zt(u,e)?+u:u}).sort(ra)),n});function El(t,r){var e=[];if(!(t&&t.length))return e;var n=-1,u=[],a=t.length;for(r=x(r,3);++n<a;){var c=t[n];r(c,n,t)&&(e.push(c),u.push(n))}return qi(t,u),e}function cu(t){return t==null?t:dc.call(t)}function Sl(t,r,e){var n=t==null?0:t.length;return n?(e&&typeof e!="number"&&Q(t,r,e)?(r=0,e=n):(r=r==null?0:A(r),e=e===o?n:A(e)),_t(t,r,e)):[]}function Cl(t,r){return Le(t,r)}function Al(t,r,e){return Vn(t,r,x(e,2))}function Rl(t,r){var e=t==null?0:t.length;if(e){var n=Le(t,r);if(n<e&&Et(t[n],r))return n}return-1}function Dl(t,r){return Le(t,r,!0)}function Il(t,r,e){return Vn(t,r,x(e,2),!0)}function Nl(t,r){var e=t==null?0:t.length;if(e){var n=Le(t,r,!0)-1;if(Et(t[n],r))return n}return-1}function jl(t){return t&&t.length?Zi(t):[]}function Ol(t,r){return t&&t.length?Zi(t,x(r,2)):[]}function Ll(t){var r=t==null?0:t.length;return r?_t(t,1,r):[]}function Pl(t,r,e){return t&&t.length?(r=e||r===o?1:A(r),_t(t,0,r<0?0:r)):[]}function Fl(t,r,e){var n=t==null?0:t.length;return n?(r=e||r===o?1:A(r),r=n-r,_t(t,r<0?0:r,n)):[]}function Gl(t,r){return t&&t.length?Pe(t,x(r,3),!1,!0):[]}function $l(t,r){return t&&t.length?Pe(t,x(r,3)):[]}var zl=D(function(t){return Jt(H(t,1,W,!0))}),Ul=D(function(t){var r=yt(t);return W(r)&&(r=o),Jt(H(t,1,W,!0),x(r,2))}),Bl=D(function(t){var r=yt(t);return r=typeof r=="function"?r:o,Jt(H(t,1,W,!0),o,r)});function Wl(t){return t&&t.length?Jt(t):[]}function Ml(t,r){return t&&t.length?Jt(t,x(r,2)):[]}function Tl(t,r){return r=typeof r=="function"?r:o,t&&t.length?Jt(t,o,r):[]}function fu(t){if(!(t&&t.length))return[];var r=0;return t=qt(t,function(e){if(W(e))return r=q(e.length,r),!0}),An(r,function(e){return z(t,En(e))})}function Oa(t,r){if(!(t&&t.length))return[];var e=fu(t);return r==null?e:z(e,function(n){return ut(r,o,n)})}var ql=D(function(t,r){return W(t)?Hr(t,r):[]}),Vl=D(function(t){return Hn(qt(t,W))}),Zl=D(function(t){var r=yt(t);return W(r)&&(r=o),Hn(qt(t,W),x(r,2))}),Hl=D(function(t){var r=yt(t);return r=typeof r=="function"?r:o,Hn(qt(t,W),o,r)}),Kl=D(fu);function Jl(t,r){return Yi(t||[],r||[],Zr)}function Yl(t,r){return Yi(t||[],r||[],Yr)}var Ql=D(function(t){var r=t.length,e=r>1?t[r-1]:o;return e=typeof e=="function"?(t.pop(),e):o,Oa(t,e)});function La(t){var r=i(t);return r.__chain__=!0,r}function Xl(t,r){return r(t),t}function Te(t,r){return r(t)}var th=$t(function(t){var r=t.length,e=r?t[0]:0,n=this.__wrapped__,u=function(a){return Pn(a,t)};return r>1||this.__actions__.length||!(n instanceof N)||!zt(e)?this.thru(u):(n=n.slice(e,+e+(r?1:0)),n.__actions__.push({func:Te,args:[u],thisArg:o}),new vt(n,this.__chain__).thru(function(a){return r&&!a.length&&a.push(o),a}))});function rh(){return La(this)}function eh(){return new vt(this.value(),this.__chain__)}function nh(){this.__values__===o&&(this.__values__=Ha(this.value()));var t=this.__index__>=this.__values__.length,r=t?o:this.__values__[this.__index__++];return{done:t,value:r}}function uh(){return this}function ih(t){for(var r,e=this;e instanceof De;){var n=Aa(e);n.__index__=0,n.__values__=o,r?u.__wrapped__=n:r=n;var u=n;e=e.__wrapped__}return u.__wrapped__=t,r}function ah(){var t=this.__wrapped__;if(t instanceof N){var r=t;return this.__actions__.length&&(r=new N(this)),r=r.reverse(),r.__actions__.push({func:Te,args:[cu],thisArg:o}),new vt(r,this.__chain__)}return this.thru(cu)}function oh(){return Ji(this.__wrapped__,this.__actions__)}var sh=Fe(function(t,r,e){P.call(t,e)?++t[e]:Ft(t,e,1)});function ch(t,r,e){var n=C(t)?ci:Qc;return e&&Q(t,r,e)&&(r=o),n(t,x(r,3))}function fh(t,r){var e=C(t)?qt:Oi;return e(t,x(r,3))}var lh=oa(Ra),hh=oa(Da);function ph(t,r){return H(qe(t,r),1)}function gh(t,r){return H(qe(t,r),rr)}function vh(t,r,e){return e=e===o?1:A(e),H(qe(t,r),e)}function Pa(t,r){var e=C(t)?pt:Kt;return e(t,x(r,3))}function Fa(t,r){var e=C(t)?Os:ji;return e(t,x(r,3))}var dh=Fe(function(t,r,e){P.call(t,e)?t[e].push(r):Ft(t,e,[r])});function _h(t,r,e,n){t=rt(t)?t:Ir(t),e=e&&!n?A(e):0;var u=t.length;return e<0&&(e=q(u+e,0)),Je(t)?e<=u&&t.indexOf(r,e)>-1:!!u&&yr(t,r,e)>-1}var yh=D(function(t,r,e){var n=-1,u=typeof r=="function",a=rt(t)?p(t.length):[];return Kt(t,function(c){a[++n]=u?ut(r,c,e):Kr(c,r,e)}),a}),mh=Fe(function(t,r,e){Ft(t,e,r)});function qe(t,r){var e=C(t)?z:zi;return e(t,x(r,3))}function wh(t,r,e,n){return t==null?[]:(C(r)||(r=r==null?[]:[r]),e=n?o:e,C(e)||(e=e==null?[]:[e]),Mi(t,r,e))}var bh=Fe(function(t,r,e){t[e?0:1].push(r)},function(){return[[],[]]});function xh(t,r,e){var n=C(t)?xn:pi,u=arguments.length<3;return n(t,x(r,4),e,u,Kt)}function kh(t,r,e){var n=C(t)?Ls:pi,u=arguments.length<3;return n(t,x(r,4),e,u,ji)}function Eh(t,r){var e=C(t)?qt:Oi;return e(t,He(x(r,3)))}function Sh(t){var r=C(t)?Ri:_f;return r(t)}function Ch(t,r,e){(e?Q(t,r,e):r===o)?r=1:r=A(r);var n=C(t)?Zc:yf;return n(t,r)}function Ah(t){var r=C(t)?Hc:wf;return r(t)}function Rh(t){if(t==null)return 0;if(rt(t))return Je(t)?wr(t):t.length;var r=J(t);return r==wt||r==bt?t.size:Bn(t).length}function Dh(t,r,e){var n=C(t)?kn:bf;return e&&Q(t,r,e)&&(r=o),n(t,x(r,3))}var Ih=D(function(t,r){if(t==null)return[];var e=r.length;return e>1&&Q(t,r[0],r[1])?r=[]:e>2&&Q(r[0],r[1],r[2])&&(r=[r[0]]),Mi(t,H(r,1),[])}),Ve=cc||function(){return Z.Date.now()};function Nh(t,r){if(typeof r!="function")throw new gt(ft);return t=A(t),function(){if(--t<1)return r.apply(this,arguments)}}function Ga(t,r,e){return r=e?o:r,r=t&&r==null?t.length:r,Gt(t,jt,o,o,o,o,r)}function $a(t,r){var e;if(typeof r!="function")throw new gt(ft);return t=A(t),function(){return--t>0&&(e=r.apply(this,arguments)),t<=1&&(r=o),e}}var lu=D(function(t,r,e){var n=lt;if(e.length){var u=Zt(e,Rr(lu));n|=At}return Gt(t,n,r,e,u)}),za=D(function(t,r,e){var n=lt|tr;if(e.length){var u=Zt(e,Rr(za));n|=At}return Gt(r,n,t,e,u)});function Ua(t,r,e){r=e?o:r;var n=Gt(t,Ct,o,o,o,o,o,r);return n.placeholder=Ua.placeholder,n}function Ba(t,r,e){r=e?o:r;var n=Gt(t,pr,o,o,o,o,o,r);return n.placeholder=Ba.placeholder,n}function Wa(t,r,e){var n,u,a,c,f,h,v=0,d=!1,_=!1,m=!0;if(typeof t!="function")throw new gt(ft);r=mt(r)||0,U(e)&&(d=!!e.leading,_="maxWait"in e,a=_?q(mt(e.maxWait)||0,r):a,m="trailing"in e?!!e.trailing:m);function b(M){var St=n,Wt=u;return n=u=o,v=M,c=t.apply(Wt,St),c}function k(M){return v=M,f=te(I,r),d?b(M):c}function R(M){var St=M-h,Wt=M-v,oo=r-St;return _?K(oo,a-Wt):oo}function E(M){var St=M-h,Wt=M-v;return h===o||St>=r||St<0||_&&Wt>=a}function I(){var M=Ve();if(E(M))return j(M);f=te(I,R(M))}function j(M){return f=o,m&&n?b(M):(n=u=o,c)}function st(){f!==o&&Qi(f),v=0,n=h=u=f=o}function X(){return f===o?c:j(Ve())}function ct(){var M=Ve(),St=E(M);if(n=arguments,u=this,h=M,St){if(f===o)return k(h);if(_)return Qi(f),f=te(I,r),b(h)}return f===o&&(f=te(I,r)),c}return ct.cancel=st,ct.flush=X,ct}var jh=D(function(t,r){return Ni(t,1,r)}),Oh=D(function(t,r,e){return Ni(t,mt(r)||0,e)});function Lh(t){return Gt(t,rn)}function Ze(t,r){if(typeof t!="function"||r!=null&&typeof r!="function")throw new gt(ft);var e=function(){var n=arguments,u=r?r.apply(this,n):n[0],a=e.cache;if(a.has(u))return a.get(u);var c=t.apply(this,n);return e.cache=a.set(u,c)||a,c};return e.cache=new(Ze.Cache||Pt),e}Ze.Cache=Pt;function He(t){if(typeof t!="function")throw new gt(ft);return function(){var r=arguments;switch(r.length){case 0:return!t.call(this);case 1:return!t.call(this,r[0]);case 2:return!t.call(this,r[0],r[1]);case 3:return!t.call(this,r[0],r[1],r[2])}return!t.apply(this,r)}}function Ph(t){return $a(2,t)}var Fh=xf(function(t,r){r=r.length==1&&C(r[0])?z(r[0],it(x())):z(H(r,1),it(x()));var e=r.length;return D(function(n){for(var u=-1,a=K(n.length,e);++u<a;)n[u]=r[u].call(this,n[u]);return ut(t,this,n)})}),hu=D(function(t,r){var e=Zt(r,Rr(hu));return Gt(t,At,o,r,e)}),Ma=D(function(t,r){var e=Zt(r,Rr(Ma));return Gt(t,gr,o,r,e)}),Gh=$t(function(t,r){return Gt(t,Or,o,o,o,r)});function $h(t,r){if(typeof t!="function")throw new gt(ft);return r=r===o?r:A(r),D(t,r)}function zh(t,r){if(typeof t!="function")throw new gt(ft);return r=r==null?0:q(A(r),0),D(function(e){var n=e[r],u=Qt(e,0,r);return n&&Vt(u,n),ut(t,this,u)})}function Uh(t,r,e){var n=!0,u=!0;if(typeof t!="function")throw new gt(ft);return U(e)&&(n="leading"in e?!!e.leading:n,u="trailing"in e?!!e.trailing:u),Wa(t,r,{leading:n,maxWait:r,trailing:u})}function Bh(t){return Ga(t,1)}function Wh(t,r){return hu(Jn(r),t)}function Mh(){if(!arguments.length)return[];var t=arguments[0];return C(t)?t:[t]}function Th(t){return dt(t,lr)}function qh(t,r){return r=typeof r=="function"?r:o,dt(t,lr,r)}function Vh(t){return dt(t,Mt|lr)}function Zh(t,r){return r=typeof r=="function"?r:o,dt(t,Mt|lr,r)}function Hh(t,r){return r==null||Ii(t,r,V(r))}function Et(t,r){return t===r||t!==t&&r!==r}var Kh=Ue($n),Jh=Ue(function(t,r){return t>=r}),fr=Fi(function(){return arguments}())?Fi:function(t){return B(t)&&P.call(t,"callee")&&!xi.call(t,"callee")},C=p.isArray,Yh=ni?it(ni):uf;function rt(t){return t!=null&&Ke(t.length)&&!Ut(t)}function W(t){return B(t)&&rt(t)}function Qh(t){return t===!0||t===!1||B(t)&&Y(t)==Lr}var Xt=lc||ku,Xh=ui?it(ui):af;function tp(t){return B(t)&&t.nodeType===1&&!re(t)}function rp(t){if(t==null)return!0;if(rt(t)&&(C(t)||typeof t=="string"||typeof t.splice=="function"||Xt(t)||Dr(t)||fr(t)))return!t.length;var r=J(t);if(r==wt||r==bt)return!t.size;if(Xr(t))return!Bn(t).length;for(var e in t)if(P.call(t,e))return!1;return!0}function ep(t,r){return Jr(t,r)}function np(t,r,e){e=typeof e=="function"?e:o;var n=e?e(t,r):o;return n===o?Jr(t,r,o,e):!!n}function pu(t){if(!B(t))return!1;var r=Y(t);return r==oe||r==So||typeof t.message=="string"&&typeof t.name=="string"&&!re(t)}function up(t){return typeof t=="number"&&Ei(t)}function Ut(t){if(!U(t))return!1;var r=Y(t);return r==se||r==Nu||r==Eo||r==Ao}function Ta(t){return typeof t=="number"&&t==A(t)}function Ke(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Tt}function U(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}function B(t){return t!=null&&typeof t=="object"}var qa=ii?it(ii):sf;function ip(t,r){return t===r||Un(t,r,nu(r))}function ap(t,r,e){return e=typeof e=="function"?e:o,Un(t,r,nu(r),e)}function op(t){return Va(t)&&t!=+t}function sp(t){if(qf(t))throw new S(fo);return Gi(t)}function cp(t){return t===null}function fp(t){return t==null}function Va(t){return typeof t=="number"||B(t)&&Y(t)==Fr}function re(t){if(!B(t)||Y(t)!=Ot)return!1;var r=xe(t);if(r===null)return!0;var e=P.call(r,"constructor")&&r.constructor;return typeof e=="function"&&e instanceof e&&ye.call(e)==ic}var gu=ai?it(ai):cf;function lp(t){return Ta(t)&&t>=-Tt&&t<=Tt}var Za=oi?it(oi):ff;function Je(t){return typeof t=="string"||!C(t)&&B(t)&&Y(t)==$r}function ot(t){return typeof t=="symbol"||B(t)&&Y(t)==ce}var Dr=si?it(si):lf;function hp(t){return t===o}function pp(t){return B(t)&&J(t)==zr}function gp(t){return B(t)&&Y(t)==Do}var vp=Ue(Wn),dp=Ue(function(t,r){return t<=r});function Ha(t){if(!t)return[];if(rt(t))return Je(t)?xt(t):tt(t);if(Wr&&t[Wr])return Zs(t[Wr]());var r=J(t),e=r==wt?Dn:r==bt?ve:Ir;return e(t)}function Bt(t){if(!t)return t===0?t:0;if(t=mt(t),t===rr||t===-rr){var r=t<0?-1:1;return r*wo}return t===t?t:0}function A(t){var r=Bt(t),e=r%1;return r===r?e?r-e:r:0}function Ka(t){return t?ar(A(t),0,Rt):0}function mt(t){if(typeof t=="number")return t;if(ot(t))return ie;if(U(t)){var r=typeof t.valueOf=="function"?t.valueOf():t;t=U(r)?r+"":r}if(typeof t!="string")return t===0?t:+t;t=gi(t);var e=Jo.test(t);return e||Qo.test(t)?Is(t.slice(2),e?2:8):Ko.test(t)?ie:+t}function Ja(t){return It(t,et(t))}function _p(t){return t?ar(A(t),-Tt,Tt):t===0?t:0}function L(t){return t==null?"":at(t)}var yp=Cr(function(t,r){if(Xr(r)||rt(r)){It(r,V(r),t);return}for(var e in r)P.call(r,e)&&Zr(t,e,r[e])}),Ya=Cr(function(t,r){It(r,et(r),t)}),Ye=Cr(function(t,r,e,n){It(r,et(r),t,n)}),mp=Cr(function(t,r,e,n){It(r,V(r),t,n)}),wp=$t(Pn);function bp(t,r){var e=Sr(t);return r==null?e:Di(e,r)}var xp=D(function(t,r){t=F(t);var e=-1,n=r.length,u=n>2?r[2]:o;for(u&&Q(r[0],r[1],u)&&(n=1);++e<n;)for(var a=r[e],c=et(a),f=-1,h=c.length;++f<h;){var v=c[f],d=t[v];(d===o||Et(d,xr[v])&&!P.call(t,v))&&(t[v]=a[v])}return t}),kp=D(function(t){return t.push(o,ga),ut(Qa,o,t)});function Ep(t,r){return fi(t,x(r,3),Dt)}function Sp(t,r){return fi(t,x(r,3),Gn)}function Cp(t,r){return t==null?t:Fn(t,x(r,3),et)}function Ap(t,r){return t==null?t:Li(t,x(r,3),et)}function Rp(t,r){return t&&Dt(t,x(r,3))}function Dp(t,r){return t&&Gn(t,x(r,3))}function Ip(t){return t==null?[]:je(t,V(t))}function Np(t){return t==null?[]:je(t,et(t))}function vu(t,r,e){var n=t==null?o:or(t,r);return n===o?e:n}function jp(t,r){return t!=null&&_a(t,r,tf)}function du(t,r){return t!=null&&_a(t,r,rf)}var Op=ca(function(t,r,e){r!=null&&typeof r.toString!="function"&&(r=me.call(r)),t[r]=e},yu(nt)),Lp=ca(function(t,r,e){r!=null&&typeof r.toString!="function"&&(r=me.call(r)),P.call(t,r)?t[r].push(e):t[r]=[e]},x),Pp=D(Kr);function V(t){return rt(t)?Ai(t):Bn(t)}function et(t){return rt(t)?Ai(t,!0):hf(t)}function Fp(t,r){var e={};return r=x(r,3),Dt(t,function(n,u,a){Ft(e,r(n,u,a),n)}),e}function Gp(t,r){var e={};return r=x(r,3),Dt(t,function(n,u,a){Ft(e,u,r(n,u,a))}),e}var $p=Cr(function(t,r,e){Oe(t,r,e)}),Qa=Cr(function(t,r,e,n){Oe(t,r,e,n)}),zp=$t(function(t,r){var e={};if(t==null)return e;var n=!1;r=z(r,function(a){return a=Yt(a,t),n||(n=a.length>1),a}),It(t,ru(t),e),n&&(e=dt(e,Mt|Ru|lr,Of));for(var u=r.length;u--;)Zn(e,r[u]);return e});function Up(t,r){return Xa(t,He(x(r)))}var Bp=$t(function(t,r){return t==null?{}:gf(t,r)});function Xa(t,r){if(t==null)return{};var e=z(ru(t),function(n){return[n]});return r=x(r),Ti(t,e,function(n,u){return r(n,u[0])})}function Wp(t,r,e){r=Yt(r,t);var n=-1,u=r.length;for(u||(u=1,t=o);++n<u;){var a=t==null?o:t[Nt(r[n])];a===o&&(n=u,a=e),t=Ut(a)?a.call(t):a}return t}function Mp(t,r,e){return t==null?t:Yr(t,r,e)}function Tp(t,r,e,n){return n=typeof n=="function"?n:o,t==null?t:Yr(t,r,e,n)}var to=ha(V),ro=ha(et);function qp(t,r,e){var n=C(t),u=n||Xt(t)||Dr(t);if(r=x(r,4),e==null){var a=t&&t.constructor;u?e=n?new a:[]:U(t)?e=Ut(a)?Sr(xe(t)):{}:e={}}return(u?pt:Dt)(t,function(c,f,h){return r(e,c,f,h)}),e}function Vp(t,r){return t==null?!0:Zn(t,r)}function Zp(t,r,e){return t==null?t:Ki(t,r,Jn(e))}function Hp(t,r,e,n){return n=typeof n=="function"?n:o,t==null?t:Ki(t,r,Jn(e),n)}function Ir(t){return t==null?[]:Rn(t,V(t))}function Kp(t){return t==null?[]:Rn(t,et(t))}function Jp(t,r,e){return e===o&&(e=r,r=o),e!==o&&(e=mt(e),e=e===e?e:0),r!==o&&(r=mt(r),r=r===r?r:0),ar(mt(t),r,e)}function Yp(t,r,e){return r=Bt(r),e===o?(e=r,r=0):e=Bt(e),t=mt(t),ef(t,r,e)}function Qp(t,r,e){if(e&&typeof e!="boolean"&&Q(t,r,e)&&(r=e=o),e===o&&(typeof r=="boolean"?(e=r,r=o):typeof t=="boolean"&&(e=t,t=o)),t===o&&r===o?(t=0,r=1):(t=Bt(t),r===o?(r=t,t=0):r=Bt(r)),t>r){var n=t;t=r,r=n}if(e||t%1||r%1){var u=Si();return K(t+u*(r-t+Ds("1e-"+((u+"").length-1))),r)}return Tn(t,r)}var Xp=Ar(function(t,r,e){return r=r.toLowerCase(),t+(e?eo(r):r)});function eo(t){return _u(L(t).toLowerCase())}function no(t){return t=L(t),t&&t.replace(ts,Ws).replace(ms,"")}function tg(t,r,e){t=L(t),r=at(r);var n=t.length;e=e===o?n:ar(A(e),0,n);var u=e;return e-=r.length,e>=0&&t.slice(e,u)==r}function rg(t){return t=L(t),t&&Lo.test(t)?t.replace(Lu,Ms):t}function eg(t){return t=L(t),t&&Uo.test(t)?t.replace(hn,"\\$&"):t}var ng=Ar(function(t,r,e){return t+(e?"-":"")+r.toLowerCase()}),ug=Ar(function(t,r,e){return t+(e?" ":"")+r.toLowerCase()}),ig=aa("toLowerCase");function ag(t,r,e){t=L(t),r=A(r);var n=r?wr(t):0;if(!r||n>=r)return t;var u=(r-n)/2;return ze(Ce(u),e)+t+ze(Se(u),e)}function og(t,r,e){t=L(t),r=A(r);var n=r?wr(t):0;return r&&n<r?t+ze(r-n,e):t}function sg(t,r,e){t=L(t),r=A(r);var n=r?wr(t):0;return r&&n<r?ze(r-n,e)+t:t}function cg(t,r,e){return e||r==null?r=0:r&&(r=+r),vc(L(t).replace(pn,""),r||0)}function fg(t,r,e){return(e?Q(t,r,e):r===o)?r=1:r=A(r),qn(L(t),r)}function lg(){var t=arguments,r=L(t[0]);return t.length<3?r:r.replace(t[1],t[2])}var hg=Ar(function(t,r,e){return t+(e?"_":"")+r.toLowerCase()});function pg(t,r,e){return e&&typeof e!="number"&&Q(t,r,e)&&(r=e=o),e=e===o?Rt:e>>>0,e?(t=L(t),t&&(typeof r=="string"||r!=null&&!gu(r))&&(r=at(r),!r&&mr(t))?Qt(xt(t),0,e):t.split(r,e)):[]}var gg=Ar(function(t,r,e){return t+(e?" ":"")+_u(r)});function vg(t,r,e){return t=L(t),e=e==null?0:ar(A(e),0,t.length),r=at(r),t.slice(e,e+r.length)==r}function dg(t,r,e){var n=i.templateSettings;e&&Q(t,r,e)&&(r=o),t=L(t),r=Ye({},r,n,pa);var u=Ye({},r.imports,n.imports,pa),a=V(u),c=Rn(u,a),f,h,v=0,d=r.interpolate||fe,_="__p += '",m=In((r.escape||fe).source+"|"+d.source+"|"+(d===Pu?Ho:fe).source+"|"+(r.evaluate||fe).source+"|$","g"),b="//# sourceURL="+(P.call(r,"sourceURL")?(r.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Es+"]")+"\n";t.replace(m,function(E,I,j,st,X,ct){return j||(j=st),_+=t.slice(v,ct).replace(rs,Ts),I&&(f=!0,_+="' +\n__e("+I+") +\n'"),X&&(h=!0,_+="';\n"+X+";\n__p += '"),j&&(_+="' +\n((__t = ("+j+")) == null ? '' : __t) +\n'"),v=ct+E.length,E}),_+="';\n";var k=P.call(r,"variable")&&r.variable;if(!k)_="with (obj) {\n"+_+"\n}\n";else if(Vo.test(k))throw new S(lo);_=(h?_.replace(Io,""):_).replace(No,"$1").replace(jo,"$1;"),_="function("+(k||"obj")+") {\n"+(k?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(f?", __e = _.escape":"")+(h?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+_+"return __p\n}";var R=io(function(){return O(a,b+"return "+_).apply(o,c)});if(R.source=_,pu(R))throw R;return R}function _g(t){return L(t).toLowerCase()}function yg(t){return L(t).toUpperCase()}function mg(t,r,e){if(t=L(t),t&&(e||r===o))return gi(t);if(!t||!(r=at(r)))return t;var n=xt(t),u=xt(r),a=vi(n,u),c=di(n,u)+1;return Qt(n,a,c).join("")}function wg(t,r,e){if(t=L(t),t&&(e||r===o))return t.slice(0,yi(t)+1);if(!t||!(r=at(r)))return t;var n=xt(t),u=di(n,xt(r))+1;return Qt(n,0,u).join("")}function bg(t,r,e){if(t=L(t),t&&(e||r===o))return t.replace(pn,"");if(!t||!(r=at(r)))return t;var n=xt(t),u=vi(n,xt(r));return Qt(n,u).join("")}function xg(t,r){var e=po,n=go;if(U(r)){var u="separator"in r?r.separator:u;e="length"in r?A(r.length):e,n="omission"in r?at(r.omission):n}t=L(t);var a=t.length;if(mr(t)){var c=xt(t);a=c.length}if(e>=a)return t;var f=e-wr(n);if(f<1)return n;var h=c?Qt(c,0,f).join(""):t.slice(0,f);if(u===o)return h+n;if(c&&(f+=h.length-f),gu(u)){if(t.slice(f).search(u)){var v,d=h;for(u.global||(u=In(u.source,L(Fu.exec(u))+"g")),u.lastIndex=0;v=u.exec(d);)var _=v.index;h=h.slice(0,_===o?f:_)}}else if(t.indexOf(at(u),f)!=f){var m=h.lastIndexOf(u);m>-1&&(h=h.slice(0,m))}return h+n}function kg(t){return t=L(t),t&&Oo.test(t)?t.replace(Ou,Ys):t}var Eg=Ar(function(t,r,e){return t+(e?" ":"")+r.toUpperCase()}),_u=aa("toUpperCase");function uo(t,r,e){return t=L(t),r=e?o:r,r===o?Vs(t)?tc(t):Gs(t):t.match(r)||[]}var io=D(function(t,r){try{return ut(t,o,r)}catch(e){return pu(e)?e:new S(e)}}),Sg=$t(function(t,r){return pt(r,function(e){e=Nt(e),Ft(t,e,lu(t[e],t))}),t});function Cg(t){var r=t==null?0:t.length,e=x();return t=r?z(t,function(n){if(typeof n[1]!="function")throw new gt(ft);return[e(n[0]),n[1]]}):[],D(function(n){for(var u=-1;++u<r;){var a=t[u];if(ut(a[0],this,n))return ut(a[1],this,n)}})}function Ag(t){return Yc(dt(t,Mt))}function yu(t){return function(){return t}}function Rg(t,r){return t==null||t!==t?r:t}var Dg=sa(),Ig=sa(!0);function nt(t){return t}function mu(t){return $i(typeof t=="function"?t:dt(t,Mt))}function Ng(t){return Ui(dt(t,Mt))}function jg(t,r){return Bi(t,dt(r,Mt))}var Og=D(function(t,r){return function(e){return Kr(e,t,r)}}),Lg=D(function(t,r){return function(e){return Kr(t,e,r)}});function wu(t,r,e){var n=V(r),u=je(r,n);e==null&&!(U(r)&&(u.length||!n.length))&&(e=r,r=t,t=this,u=je(r,V(r)));var a=!(U(e)&&"chain"in e)||!!e.chain,c=Ut(t);return pt(u,function(f){var h=r[f];t[f]=h,c&&(t.prototype[f]=function(){var v=this.__chain__;if(a||v){var d=t(this.__wrapped__),_=d.__actions__=tt(this.__actions__);return _.push({func:h,args:arguments,thisArg:t}),d.__chain__=v,d}return h.apply(t,Vt([this.value()],arguments))})}),t}function Pg(){return Z._===this&&(Z._=ac),this}function bu(){}function Fg(t){return t=A(t),D(function(r){return Wi(r,t)})}var Gg=Qn(z),$g=Qn(ci),zg=Qn(kn);function ao(t){return iu(t)?En(Nt(t)):vf(t)}function Ug(t){return function(r){return t==null?o:or(t,r)}}var Bg=fa(),Wg=fa(!0);function xu(){return[]}function ku(){return!1}function Mg(){return{}}function Tg(){return""}function qg(){return!0}function Vg(t,r){if(t=A(t),t<1||t>Tt)return[];var e=Rt,n=K(t,Rt);r=x(r),t-=Rt;for(var u=An(n,r);++e<t;)r(e);return u}function Zg(t){return C(t)?z(t,Nt):ot(t)?[t]:tt(Ca(L(t)))}function Hg(t){var r=++uc;return L(t)+r}var Kg=$e(function(t,r){return t+r},0),Jg=Xn("ceil"),Yg=$e(function(t,r){return t/r},1),Qg=Xn("floor");function Xg(t){return t&&t.length?Ne(t,nt,$n):o}function t0(t,r){return t&&t.length?Ne(t,x(r,2),$n):o}function r0(t){return hi(t,nt)}function e0(t,r){return hi(t,x(r,2))}function n0(t){return t&&t.length?Ne(t,nt,Wn):o}function u0(t,r){return t&&t.length?Ne(t,x(r,2),Wn):o}var i0=$e(function(t,r){return t*r},1),a0=Xn("round"),o0=$e(function(t,r){return t-r},0);function s0(t){return t&&t.length?Cn(t,nt):0}function c0(t,r){return t&&t.length?Cn(t,x(r,2)):0}return i.after=Nh,i.ary=Ga,i.assign=yp,i.assignIn=Ya,i.assignInWith=Ye,i.assignWith=mp,i.at=wp,i.before=$a,i.bind=lu,i.bindAll=Sg,i.bindKey=za,i.castArray=Mh,i.chain=La,i.chunk=Qf,i.compact=Xf,i.concat=tl,i.cond=Cg,i.conforms=Ag,i.constant=yu,i.countBy=sh,i.create=bp,i.curry=Ua,i.curryRight=Ba,i.debounce=Wa,i.defaults=xp,i.defaultsDeep=kp,i.defer=jh,i.delay=Oh,i.difference=rl,i.differenceBy=el,i.differenceWith=nl,i.drop=ul,i.dropRight=il,i.dropRightWhile=al,i.dropWhile=ol,i.fill=sl,i.filter=fh,i.flatMap=ph,i.flatMapDeep=gh,i.flatMapDepth=vh,i.flatten=Ia,i.flattenDeep=cl,i.flattenDepth=fl,i.flip=Lh,i.flow=Dg,i.flowRight=Ig,i.fromPairs=ll,i.functions=Ip,i.functionsIn=Np,i.groupBy=dh,i.initial=pl,i.intersection=gl,i.intersectionBy=vl,i.intersectionWith=dl,i.invert=Op,i.invertBy=Lp,i.invokeMap=yh,i.iteratee=mu,i.keyBy=mh,i.keys=V,i.keysIn=et,i.map=qe,i.mapKeys=Fp,i.mapValues=Gp,i.matches=Ng,i.matchesProperty=jg,i.memoize=Ze,i.merge=$p,i.mergeWith=Qa,i.method=Og,i.methodOf=Lg,i.mixin=wu,i.negate=He,i.nthArg=Fg,i.omit=zp,i.omitBy=Up,i.once=Ph,i.orderBy=wh,i.over=Gg,i.overArgs=Fh,i.overEvery=$g,i.overSome=zg,i.partial=hu,i.partialRight=Ma,i.partition=bh,i.pick=Bp,i.pickBy=Xa,i.property=ao,i.propertyOf=Ug,i.pull=wl,i.pullAll=ja,i.pullAllBy=bl,i.pullAllWith=xl,i.pullAt=kl,i.range=Bg,i.rangeRight=Wg,i.rearg=Gh,i.reject=Eh,i.remove=El,i.rest=$h,i.reverse=cu,i.sampleSize=Ch,i.set=Mp,i.setWith=Tp,i.shuffle=Ah,i.slice=Sl,i.sortBy=Ih,i.sortedUniq=jl,i.sortedUniqBy=Ol,i.split=pg,i.spread=zh,i.tail=Ll,i.take=Pl,i.takeRight=Fl,i.takeRightWhile=Gl,i.takeWhile=$l,i.tap=Xl,i.throttle=Uh,i.thru=Te,i.toArray=Ha,i.toPairs=to,i.toPairsIn=ro,i.toPath=Zg,i.toPlainObject=Ja,i.transform=qp,i.unary=Bh,i.union=zl,i.unionBy=Ul,i.unionWith=Bl,i.uniq=Wl,i.uniqBy=Ml,i.uniqWith=Tl,i.unset=Vp,i.unzip=fu,i.unzipWith=Oa,i.update=Zp,i.updateWith=Hp,i.values=Ir,i.valuesIn=Kp,i.without=ql,i.words=uo,i.wrap=Wh,i.xor=Vl,i.xorBy=Zl,i.xorWith=Hl,i.zip=Kl,i.zipObject=Jl,i.zipObjectDeep=Yl,i.zipWith=Ql,i.entries=to,i.entriesIn=ro,i.extend=Ya,i.extendWith=Ye,wu(i,i),i.add=Kg,i.attempt=io,i.camelCase=Xp,i.capitalize=eo,i.ceil=Jg,i.clamp=Jp,i.clone=Th,i.cloneDeep=Vh,i.cloneDeepWith=Zh,i.cloneWith=qh,i.conformsTo=Hh,i.deburr=no,i.defaultTo=Rg,i.divide=Yg,i.endsWith=tg,i.eq=Et,i.escape=rg,i.escapeRegExp=eg,i.every=ch,i.find=lh,i.findIndex=Ra,i.findKey=Ep,i.findLast=hh,i.findLastIndex=Da,i.findLastKey=Sp,i.floor=Qg,i.forEach=Pa,i.forEachRight=Fa,i.forIn=Cp,i.forInRight=Ap,i.forOwn=Rp,i.forOwnRight=Dp,i.get=vu,i.gt=Kh,i.gte=Jh,i.has=jp,i.hasIn=du,i.head=Na,i.identity=nt,i.includes=_h,i.indexOf=hl,i.inRange=Yp,i.invoke=Pp,i.isArguments=fr,i.isArray=C,i.isArrayBuffer=Yh,i.isArrayLike=rt,i.isArrayLikeObject=W,i.isBoolean=Qh,i.isBuffer=Xt,i.isDate=Xh,i.isElement=tp,i.isEmpty=rp,i.isEqual=ep,i.isEqualWith=np,i.isError=pu,i.isFinite=up,i.isFunction=Ut,i.isInteger=Ta,i.isLength=Ke,i.isMap=qa,i.isMatch=ip,i.isMatchWith=ap,i.isNaN=op,i.isNative=sp,i.isNil=fp,i.isNull=cp,i.isNumber=Va,i.isObject=U,i.isObjectLike=B,i.isPlainObject=re,i.isRegExp=gu,i.isSafeInteger=lp,i.isSet=Za,i.isString=Je,i.isSymbol=ot,i.isTypedArray=Dr,i.isUndefined=hp,i.isWeakMap=pp,i.isWeakSet=gp,i.join=_l,i.kebabCase=ng,i.last=yt,i.lastIndexOf=yl,i.lowerCase=ug,i.lowerFirst=ig,i.lt=vp,i.lte=dp,i.max=Xg,i.maxBy=t0,i.mean=r0,i.meanBy=e0,i.min=n0,i.minBy=u0,i.stubArray=xu,i.stubFalse=ku,i.stubObject=Mg,i.stubString=Tg,i.stubTrue=qg,i.multiply=i0,i.nth=ml,i.noConflict=Pg,i.noop=bu,i.now=Ve,i.pad=ag,i.padEnd=og,i.padStart=sg,i.parseInt=cg,i.random=Qp,i.reduce=xh,i.reduceRight=kh,i.repeat=fg,i.replace=lg,i.result=Wp,i.round=a0,i.runInContext=l,i.sample=Sh,i.size=Rh,i.snakeCase=hg,i.some=Dh,i.sortedIndex=Cl,i.sortedIndexBy=Al,i.sortedIndexOf=Rl,i.sortedLastIndex=Dl,i.sortedLastIndexBy=Il,i.sortedLastIndexOf=Nl,i.startCase=gg,i.startsWith=vg,i.subtract=o0,i.sum=s0,i.sumBy=c0,i.template=dg,i.times=Vg,i.toFinite=Bt,i.toInteger=A,i.toLength=Ka,i.toLower=_g,i.toNumber=mt,i.toSafeInteger=_p,i.toString=L,i.toUpper=yg,i.trim=mg,i.trimEnd=wg,i.trimStart=bg,i.truncate=xg,i.unescape=kg,i.uniqueId=Hg,i.upperCase=Eg,i.upperFirst=_u,i.each=Pa,i.eachRight=Fa,i.first=Na,wu(i,function(){var t={};return Dt(i,function(r,e){P.call(i.prototype,e)||(t[e]=r)}),t}(),{chain:!1}),i.VERSION=Xe,pt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){i[t].placeholder=i}),pt(["drop","take"],function(t,r){N.prototype[t]=function(e){e=e===o?1:q(A(e),0);var n=this.__filtered__&&!r?new N(this):this.clone();return n.__filtered__?n.__takeCount__=K(e,n.__takeCount__):n.__views__.push({size:K(e,Rt),type:t+(n.__dir__<0?"Right":"")}),n},N.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),pt(["filter","map","takeWhile"],function(t,r){var e=r+1,n=e==Iu||e==mo;N.prototype[t]=function(u){var a=this.clone();return a.__iteratees__.push({iteratee:x(u,3),type:e}),a.__filtered__=a.__filtered__||n,a}}),pt(["head","last"],function(t,r){var e="take"+(r?"Right":"");N.prototype[t]=function(){return this[e](1).value()[0]}}),pt(["initial","tail"],function(t,r){var e="drop"+(r?"":"Right");N.prototype[t]=function(){return this.__filtered__?new N(this):this[e](1)}}),N.prototype.compact=function(){return this.filter(nt)},N.prototype.find=function(t){return this.filter(t).head()},N.prototype.findLast=function(t){return this.reverse().find(t)},N.prototype.invokeMap=D(function(t,r){return typeof t=="function"?new N(this):this.map(function(e){return Kr(e,t,r)})}),N.prototype.reject=function(t){return this.filter(He(x(t)))},N.prototype.slice=function(t,r){t=A(t);var e=this;return e.__filtered__&&(t>0||r<0)?new N(e):(t<0?e=e.takeRight(-t):t&&(e=e.drop(t)),r!==o&&(r=A(r),e=r<0?e.dropRight(-r):e.take(r-t)),e)},N.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},N.prototype.toArray=function(){return this.take(Rt)},Dt(N.prototype,function(t,r){var e=/^(?:filter|find|map|reject)|While$/.test(r),n=/^(?:head|last)$/.test(r),u=i[n?"take"+(r=="last"?"Right":""):r],a=n||/^find/.test(r);u&&(i.prototype[r]=function(){var c=this.__wrapped__,f=n?[1]:arguments,h=c instanceof N,v=f[0],d=h||C(c),_=function(I){var j=u.apply(i,Vt([I],f));return n&&m?j[0]:j};d&&e&&typeof v=="function"&&v.length!=1&&(h=d=!1);var m=this.__chain__,b=!!this.__actions__.length,k=a&&!m,R=h&&!b;if(!a&&d){c=R?c:new N(this);var E=t.apply(c,f);return E.__actions__.push({func:Te,args:[_],thisArg:o}),new vt(E,m)}return k&&R?t.apply(this,f):(E=this.thru(_),k?n?E.value()[0]:E.value():E)})}),pt(["pop","push","shift","sort","splice","unshift"],function(t){var r=de[t],e=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",n=/^(?:pop|shift)$/.test(t);i.prototype[t]=function(){var u=arguments;if(n&&!this.__chain__){var a=this.value();return r.apply(C(a)?a:[],u)}return this[e](function(c){return r.apply(C(c)?c:[],u)})}}),Dt(N.prototype,function(t,r){var e=i[r];if(e){var n=e.name+"";P.call(Er,n)||(Er[n]=[]),Er[n].push({name:r,func:e})}}),Er[Ge(o,tr).name]=[{name:"wrapper",func:o}],N.prototype.clone=xc,N.prototype.reverse=kc,N.prototype.value=Ec,i.prototype.at=th,i.prototype.chain=rh,i.prototype.commit=eh,i.prototype.next=nh,i.prototype.plant=ih,i.prototype.reverse=ah,i.prototype.toJSON=i.prototype.valueOf=i.prototype.value=oh,i.prototype.first=i.prototype.head,Wr&&(i.prototype[Wr]=uh),i},br=rc();er?((er.exports=br)._=br,mn._=br):Z._=br}).call(ee)}(Qe,Qe.exports);var Eu=Qe.exports;const x0=Cu({name:"AdminSettingsSharingForm",components:{NcCheckboxRadioSwitch:co,NcSettingsSelectGroup:f0,NcTextArea:l0,NcTextField:h0,SelectSharingPermissions:b0},data(){return{settingsData:Su("settings","sharingSettings")}},computed:{settings(){return console.warn("new proxy"),new Proxy(this.settingsData,{get(s,y){return s[y]},set(s,y,o){const Xe="shareapi_".concat(Eu.snakeCase(y)),jr=typeof o=="boolean"?o?"yes":"no":typeof o=="string"?o:JSON.stringify(o);return window.OCP.AppConfig.setValue("core",Xe,jr),s[y]=o,!0}})},publicShareDisclaimerEnabled:{get(){return typeof this.settingsData.publicShareDisclaimerText=="string"},set(s){s?this.settingsData.publicShareDisclaimerText="":this.onUpdateDisclaimer()}}},methods:{t:Nr,onUpdateDisclaimer:Eu.debounce(function(s){const y={success(){s?so(Nr("settings","Changed disclaimer text")):so(Nr("settings","Deleted disclaimer text"))},error(){d0(Nr("settings","Could not set disclaimer text"))}};s?window.OCP.AppConfig.setValue("core","shareapi_public_link_disclaimertext",s,y):window.OCP.AppConfig.deleteKey("core","shareapi_public_link_disclaimertext",y),this.settingsData.publicShareDisclaimerText=s},500),onUpdateExcludeGroups:Eu.debounce(function(s){window.OCP.AppConfig.setValue("core","excludeGroups",s),this.settings.excludeGroups=s},500)}});var k0=function(){var s=this,y=s._self._c;return s._self._setupProxy,y("form",{staticClass:"sharing"},[y("NcCheckboxRadioSwitch",{attrs:{"aria-controls":"settings-sharing-api settings-sharing-api-settings settings-sharing-default-permissions settings-sharing-privary-related",type:"switch",checked:s.settings.enabled},on:{"update:checked":function(o){return s.$set(s.settings,"enabled",o)}}},[s._v(" "+s._s(s.t("settings","Allow apps to use the Share API"))+" ")]),y("div",{directives:[{name:"show",rawName:"v-show",value:s.settings.enabled,expression:"settings.enabled"}],staticClass:"sharing__sub-section",attrs:{id:"settings-sharing-api-settings"}},[y("NcCheckboxRadioSwitch",{attrs:{checked:s.settings.allowResharing},on:{"update:checked":function(o){return s.$set(s.settings,"allowResharing",o)}}},[s._v(" "+s._s(s.t("settings","Allow resharing"))+" ")]),y("NcCheckboxRadioSwitch",{attrs:{checked:s.settings.allowGroupSharing},on:{"update:checked":function(o){return s.$set(s.settings,"allowGroupSharing",o)}}},[s._v(" "+s._s(s.t("settings","Allow sharing with groups"))+" ")]),y("NcCheckboxRadioSwitch",{attrs:{checked:s.settings.onlyShareWithGroupMembers},on:{"update:checked":function(o){return s.$set(s.settings,"onlyShareWithGroupMembers",o)}}},[s._v(" "+s._s(s.t("settings","Restrict users to only share with users in their groups"))+" ")]),y("div",{directives:[{name:"show",rawName:"v-show",value:s.settings.onlyShareWithGroupMembers,expression:"settings.onlyShareWithGroupMembers"}],staticClass:"sharing__labeled-entry sharing__input",attrs:{id:"settings-sharing-api-excluded-groups"}},[y("label",{attrs:{for:"settings-sharing-only-group-members-excluded-groups"}},[s._v(s._s(s.t("settings","Ignore the following groups when checking group membership")))]),y("NcSettingsSelectGroup",{staticStyle:{width:"100%"},attrs:{id:"settings-sharing-only-group-members-excluded-groups",label:s.t("settings","Ignore the following groups when checking group membership")},model:{value:s.settings.onlyShareWithGroupMembersExcludeGroupList,callback:function(o){s.$set(s.settings,"onlyShareWithGroupMembersExcludeGroupList",o)},expression:"settings.onlyShareWithGroupMembersExcludeGroupList"}})],1)],1),y("div",{directives:[{name:"show",rawName:"v-show",value:s.settings.enabled,expression:"settings.enabled"}],staticClass:"sharing__section",attrs:{id:"settings-sharing-api"}},[y("NcCheckboxRadioSwitch",{attrs:{type:"switch","aria-controls":"settings-sharing-api-public-link",checked:s.settings.allowLinks},on:{"update:checked":function(o){return s.$set(s.settings,"allowLinks",o)}}},[s._v(" "+s._s(s.t("settings","Allow users to share via link and emails"))+" ")]),y("fieldset",{directives:[{name:"show",rawName:"v-show",value:s.settings.allowLinks,expression:"settings.allowLinks"}],staticClass:"sharing__sub-section",attrs:{id:"settings-sharing-api-public-link"}},[y("NcCheckboxRadioSwitch",{attrs:{checked:s.settings.allowPublicUpload},on:{"update:checked":function(o){return s.$set(s.settings,"allowPublicUpload",o)}}},[s._v(" "+s._s(s.t("settings","Allow public uploads"))+" ")]),y("NcCheckboxRadioSwitch",{attrs:{checked:s.settings.enableLinkPasswordByDefault},on:{"update:checked":function(o){return s.$set(s.settings,"enableLinkPasswordByDefault",o)}}},[s._v(" "+s._s(s.t("settings","Always ask for a password"))+" ")]),y("NcCheckboxRadioSwitch",{attrs:{checked:s.settings.enforceLinksPassword,disabled:!s.settings.enableLinkPasswordByDefault},on:{"update:checked":function(o){return s.$set(s.settings,"enforceLinksPassword",o)}}},[s._v(" "+s._s(s.t("settings","Enforce password protection"))+" ")]),s.settings.passwordExcludedGroupsFeatureEnabled?y("label",{staticClass:"sharing__labeled-entry sharing__input"},[y("span",[s._v(s._s(s.t("settings","Exclude groups from password requirements")))]),y("NcSettingsSelectGroup",{staticStyle:{width:"100%"},attrs:{disabled:!s.settings.enforceLinksPassword||!s.settings.enableLinkPasswordByDefault},model:{value:s.settings.passwordExcludedGroups,callback:function(o){s.$set(s.settings,"passwordExcludedGroups",o)},expression:"settings.passwordExcludedGroups"}})],1):s._e(),y("label",{staticClass:"sharing__labeled-entry sharing__input"},[y("span",[s._v(s._s(s.t("settings","Exclude groups from creating link shares")))]),y("NcSettingsSelectGroup",{staticStyle:{width:"100%"},attrs:{label:s.t("settings","Exclude groups from creating link shares")},model:{value:s.settings.allowLinksExcludeGroups,callback:function(o){s.$set(s.settings,"allowLinksExcludeGroups",o)},expression:"settings.allowLinksExcludeGroups"}})],1)],1),y("label",[s._v(s._s(s.t("settings","Limit sharing based on groups")))]),y("div",{staticClass:"sharing__sub-section"},[y("NcCheckboxRadioSwitch",{attrs:{checked:s.settings.excludeGroups,name:"excludeGroups",value:"no",type:"radio"},on:{"update:checked":[function(o){return s.$set(s.settings,"excludeGroups",o)},s.onUpdateExcludeGroups]}},[s._v(" "+s._s(s.t("settings","Allow sharing for everyone (default)"))+" ")]),y("NcCheckboxRadioSwitch",{attrs:{checked:s.settings.excludeGroups,name:"excludeGroups",value:"yes",type:"radio"},on:{"update:checked":[function(o){return s.$set(s.settings,"excludeGroups",o)},s.onUpdateExcludeGroups]}},[s._v(" "+s._s(s.t("settings","Exclude some groups from sharing"))+" ")]),y("NcCheckboxRadioSwitch",{attrs:{checked:s.settings.excludeGroups,name:"excludeGroups",value:"allow",type:"radio"},on:{"update:checked":[function(o){return s.$set(s.settings,"excludeGroups",o)},s.onUpdateExcludeGroups]}},[s._v(" "+s._s(s.t("settings","Limit sharing to some groups"))+" ")]),y("div",{directives:[{name:"show",rawName:"v-show",value:s.settings.excludeGroups!=="no",expression:"settings.excludeGroups !== 'no'"}],staticClass:"sharing__labeled-entry sharing__input"},[y("NcSettingsSelectGroup",{staticStyle:{width:"100%"},attrs:{id:"settings-sharing-excluded-groups","aria-describedby":"settings-sharing-excluded-groups-desc",label:s.settings.excludeGroups==="allow"?s.t("settings","Groups allowed to share"):s.t("settings","Groups excluded from sharing"),disabled:s.settings.excludeGroups==="no"},model:{value:s.settings.excludeGroupsList,callback:function(o){s.$set(s.settings,"excludeGroupsList",o)},expression:"settings.excludeGroupsList"}}),y("em",{attrs:{id:"settings-sharing-excluded-groups-desc"}},[s._v(s._s(s.t("settings","Not allowed groups will still be able to receive shares, but not to initiate them.")))])],1)],1),y("NcCheckboxRadioSwitch",{attrs:{type:"switch","aria-controls":"settings-sharing-api-expiration",checked:s.settings.defaultInternalExpireDate},on:{"update:checked":function(o){return s.$set(s.settings,"defaultInternalExpireDate",o)}}},[s._v(" "+s._s(s.t("settings","Set default expiration date for shares"))+" ")]),y("fieldset",{directives:[{name:"show",rawName:"v-show",value:s.settings.defaultInternalExpireDate,expression:"settings.defaultInternalExpireDate"}],staticClass:"sharing__sub-section",attrs:{id:"settings-sharing-api-expiration"}},[y("NcCheckboxRadioSwitch",{attrs:{checked:s.settings.enforceInternalExpireDate},on:{"update:checked":function(o){return s.$set(s.settings,"enforceInternalExpireDate",o)}}},[s._v(" "+s._s(s.t("settings","Enforce expiration date"))+" ")]),y("NcTextField",{staticClass:"sharing__input",attrs:{type:"number",label:s.t("settings","Default expiration time of new shares in days"),placeholder:s.t("settings","Expire shares after x days"),value:s.settings.internalExpireAfterNDays},on:{"update:value":function(o){return s.$set(s.settings,"internalExpireAfterNDays",o)}}})],1),y("NcCheckboxRadioSwitch",{attrs:{type:"switch","aria-controls":"settings-sharing-remote-api-expiration",checked:s.settings.defaultRemoteExpireDate},on:{"update:checked":function(o){return s.$set(s.settings,"defaultRemoteExpireDate",o)}}},[s._v(" "+s._s(s.t("settings","Set default expiration date for shares to other servers"))+" ")]),y("fieldset",{directives:[{name:"show",rawName:"v-show",value:s.settings.defaultRemoteExpireDate,expression:"settings.defaultRemoteExpireDate"}],staticClass:"sharing__sub-section",attrs:{id:"settings-sharing-remote-api-expiration"}},[y("NcCheckboxRadioSwitch",{attrs:{checked:s.settings.enforceRemoteExpireDate},on:{"update:checked":function(o){return s.$set(s.settings,"enforceRemoteExpireDate",o)}}},[s._v(" "+s._s(s.t("settings","Enforce expiration date for remote shares"))+" ")]),y("NcTextField",{staticClass:"sharing__input",attrs:{type:"number",label:s.t("settings","Default expiration time of remote shares in days"),placeholder:s.t("settings","Expire remote shares after x days"),value:s.settings.remoteExpireAfterNDays},on:{"update:value":function(o){return s.$set(s.settings,"remoteExpireAfterNDays",o)}}})],1),y("NcCheckboxRadioSwitch",{attrs:{type:"switch","aria-controls":"settings-sharing-api-api-expiration",checked:s.settings.defaultExpireDate,disabled:!s.settings.allowLinks},on:{"update:checked":function(o){return s.$set(s.settings,"defaultExpireDate",o)}}},[s._v(" "+s._s(s.t("settings","Set default expiration date for shares via link or mail"))+" ")]),y("fieldset",{directives:[{name:"show",rawName:"v-show",value:s.settings.allowLinks&&s.settings.defaultExpireDate,expression:"settings.allowLinks && settings.defaultExpireDate"}],staticClass:"sharing__sub-section",attrs:{id:"settings-sharing-api-api-expiration"}},[y("NcCheckboxRadioSwitch",{attrs:{checked:s.settings.enforceExpireDate},on:{"update:checked":function(o){return s.$set(s.settings,"enforceExpireDate",o)}}},[s._v(" "+s._s(s.t("settings","Enforce expiration date for remote shares"))+" ")]),y("NcTextField",{staticClass:"sharing__input",attrs:{type:"number",label:s.t("settings","Default expiration time of shares in days"),placeholder:s.t("settings","Expire shares after x days"),value:s.settings.expireAfterNDays},on:{"update:value":function(o){return s.$set(s.settings,"expireAfterNDays",o)}}})],1)],1),y("div",{directives:[{name:"show",rawName:"v-show",value:s.settings.enabled,expression:"settings.enabled"}],staticClass:"sharing__section",attrs:{id:"settings-sharing-privary-related"}},[y("h3",[s._v(s._s(s.t("settings","Privacy settings for sharing")))]),y("NcCheckboxRadioSwitch",{attrs:{type:"switch","aria-controls":"settings-sharing-privacy-user-enumeration",checked:s.settings.allowShareDialogUserEnumeration},on:{"update:checked":function(o){return s.$set(s.settings,"allowShareDialogUserEnumeration",o)}}},[s._v(" "+s._s(s.t("settings","Allow account name autocompletion in share dialog and allow access to the system address book"))+" ")]),y("fieldset",{directives:[{name:"show",rawName:"v-show",value:s.settings.allowShareDialogUserEnumeration,expression:"settings.allowShareDialogUserEnumeration"}],staticClass:"sharing__sub-section",attrs:{id:"settings-sharing-privacy-user-enumeration"}},[y("em",[s._v(" "+s._s(s.t("settings",'If autocompletion "same group" and "phone number integration" are enabled a match in either is enough to show the user.'))+" ")]),y("NcCheckboxRadioSwitch",{attrs:{checked:s.settings.restrictUserEnumerationToGroup},on:{"update:checked":function(o){return s.$set(s.settings,"restrictUserEnumerationToGroup",o)}}},[s._v(" "+s._s(s.t("settings","Allow account name autocompletion to users within the same groups and limit system address books to users in the same groups"))+" ")]),y("NcCheckboxRadioSwitch",{attrs:{checked:s.settings.restrictUserEnumerationToPhone},on:{"update:checked":function(o){return s.$set(s.settings,"restrictUserEnumerationToPhone",o)}}},[s._v(" "+s._s(s.t("settings","Allow account name autocompletion to users based on phone number integration"))+" ")])],1),y("NcCheckboxRadioSwitch",{attrs:{type:"switch",checked:s.settings.restrictUserEnumerationFullMatch},on:{"update:checked":function(o){return s.$set(s.settings,"restrictUserEnumerationFullMatch",o)}}},[s._v(" "+s._s(s.t("settings","Allow autocompletion when entering the full name or email address (ignoring missing phonebook match and being in the same group)"))+" ")]),y("NcCheckboxRadioSwitch",{attrs:{type:"switch",checked:s.publicShareDisclaimerEnabled},on:{"update:checked":function(o){s.publicShareDisclaimerEnabled=o}}},[s._v(" "+s._s(s.t("settings","Show disclaimer text on the public link upload page (only shown when the file list is hidden)"))+" ")]),typeof s.settings.publicShareDisclaimerText=="string"?y("div",{staticClass:"sharing__sub-section",attrs:{"aria-describedby":"settings-sharing-privary-related-disclaimer-hint"}},[y("NcTextArea",{staticClass:"sharing__input",attrs:{label:s.t("settings","Disclaimer text"),"aria-describedby":"settings-sharing-privary-related-disclaimer-hint",value:s.settings.publicShareDisclaimerText},on:{"update:value":s.onUpdateDisclaimer}}),y("em",{staticClass:"sharing__input",attrs:{id:"settings-sharing-privary-related-disclaimer-hint"}},[s._v(" "+s._s(s.t("settings","This text will be shown on the public link upload page when the file list is hidden."))+" ")])],1):s._e()],1),y("div",{staticClass:"sharing__section",attrs:{id:"settings-sharing-default-permissions"}},[y("h3",[s._v(s._s(s.t("settings","Default share permissions")))]),y("SelectSharingPermissions",{attrs:{value:s.settings.defaultPermissions},on:{"update:value":function(o){return s.$set(s.settings,"defaultPermissions",o)}}})],1)],1)},E0=[],S0=Au(x0,k0,E0,!1,null,"5b72d88f");const C0=S0.exports,A0=Cu({name:"AdminSettingsSharing",components:{AdminSettingsSharingForm:C0,NcNoteCard:p0,NcSettingsSection:g0},data(){return{documentationLink:Su("settings","sharingDocumentation",""),sharingAppEnabled:Su("settings","sharingAppEnabled",!1)}},methods:{t:Nr}});var R0=function(){var s=this,y=s._self._c;return s._self._setupProxy,y("NcSettingsSection",{attrs:{"data-cy-settings-sharing-section":"","limit-width":!0,"doc-url":s.documentationLink,name:s.t("settings","Sharing"),description:s.t("settings","As admin you can fine-tune the sharing behavior. Please see the documentation for more information.")}},[s.sharingAppEnabled?y("AdminSettingsSharingForm"):y("NcNoteCard",{attrs:{type:"warning"}},[s._v(" "+s._s(s.t("settings","You need to enable the File sharing App."))+" ")])],1)},D0=[],I0=Au(A0,R0,D0,!1,null,null);const N0=I0.exports,F0=new v0({name:"AdminSettingsSharingSection",el:"#vue-admin-settings-sharing",render:s=>s(N0)});export{F0 as default};