@ukpc-lib/react 0.3.19 → 0.3.21
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/components/index.cjs +2 -2
- package/dist/components/index.js +70 -70
- package/dist/{index.module-c91c4596.js → index.module-9cc5e50f.js} +5749 -5752
- package/dist/{index.module-af5a0d6e.cjs → index.module-cf6b1a78.cjs} +81 -81
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +1 -1
- package/package.json +1 -1
- package/web-components-bundle/access-denied/index.js +2 -2
- package/web-components-bundle/global-menu/index.js +2 -2
- package/web-components-bundle/global-topbar/index.cjs +1 -1
- package/web-components-bundle/global-topbar/index.js +4 -4
- package/web-components-bundle/has-permission/index.cjs +1 -1
- package/web-components-bundle/has-permission/index.js +4 -4
- package/web-components-bundle/{index-c8d9f7f1.cjs → index-346b9a8b.cjs} +58 -58
- package/web-components-bundle/{index-034800b1.js → index-8c13462b.js} +370 -371
- package/web-components-bundle/{index-1bcd1263.js → index-9cc15059.js} +1 -1
- package/web-components-bundle/{index-97e78f5f.js → index-a73a841e.js} +1 -1
- package/web-components-bundle/{react-to-web-component-642fb54e.js → react-to-web-component-469d91d4.js} +2 -2
|
@@ -158,7 +158,7 @@ __p += '`),He&&(Q+=`' +
|
|
|
158
158
|
function print() { __p += __j.call(arguments, '') }
|
|
159
159
|
`:`;
|
|
160
160
|
`)+Q+`return __p
|
|
161
|
-
}`;var Ie=Bp(function(){return he(w,ve+"return "+Q).apply(r,R)});if(Ie.source=Q,ef(Ie))throw Ie;return Ie}function R_(n){return et(n).toLowerCase()}function M_(n){return et(n).toUpperCase()}function A_(n,i,u){if(n=et(n),n&&(u||i===r))return Hn(n);if(!n||!(i=Rn(i)))return n;var p=sn(n),v=sn(i),w=Ve(p,v),R=Ji(p,v)+1;return Pi(p,w,R).join("")}function O_(n,i,u){if(n=et(n),n&&(u||i===r))return n.slice(0,zo(n)+1);if(!n||!(i=Rn(i)))return n;var p=sn(n),v=Ji(p,sn(i))+1;return Pi(p,0,v).join("")}function I_(n,i,u){if(n=et(n),n&&(u||i===r))return n.replace(zi,"");if(!n||!(i=Rn(i)))return n;var p=sn(n),v=Ve(p,sn(i));return Pi(p,v).join("")}function P_(n,i){var u=at,p=Ue;if(mt(i)){var v="separator"in i?i.separator:v;u="length"in i?Ae(i.length):u,p="omission"in i?Rn(i.omission):p}n=et(n);var w=n.length;if(yn(n)){var R=sn(n);w=R.length}if(u>=w)return n;var P=u-Tr(p);if(P<1)return p;var j=R?Pi(R,0,P).join(""):n.slice(0,P);if(v===r)return j+p;if(R&&(P+=j.length-P),tf(v)){if(n.slice(P).search(v)){var X,J=j;for(v.global||(v=Me(v.source,et(Co.exec(v))+"g")),v.lastIndex=0;X=v.exec(J);)var Q=X.index;j=j.slice(0,Q===r?P:Q)}}else if(n.indexOf(Rn(v),P)!=P){var ae=j.lastIndexOf(v);ae>-1&&(j=j.slice(0,ae))}return j+p}function N_(n){return n=et(n),n&&bo.test(n)?n.replace(zr,Ta):n}var L_=Ns(function(n,i,u){return n+(u?" ":"")+i.toUpperCase()}),sf=Hh("toUpperCase");function Wp(n,i,u){return n=et(n),i=u?r:i,i===r?Da(n)?N(n):je(n):n.match(i)||[]}var Bp=Ne(function(n,i){try{return x(n,r,i)}catch(u){return ef(u)?u:new Z(u)}}),j_=ti(function(n,i){return T(i,function(u){u=Ar(u),Qr(n,u,Jc(n[u],n))}),n});function $_(n){var i=n==null?0:n.length,u=_e();return n=i?ce(n,function(p){if(typeof p[1]!="function")throw new Pe(h);return[u(p[0]),p[1]]}):[],Ne(function(p){for(var v=-1;++v<i;){var w=n[v];if(x(w[0],this,p))return x(w[1],this,p)}})}function F_(n){return cv(qn(n,F))}function af(n){return function(){return n}}function Y_(n,i){return n==null||n!==n?i:n}var W_=qh(),B_=qh(!0);function _n(n){return n}function of(n){return _h(typeof n=="function"?n:qn(n,F))}function H_(n){return Sh(qn(n,F))}function U_(n,i){return kh(n,qn(i,F))}var q_=Ne(function(n,i){return function(u){return La(u,n,i)}}),z_=Ne(function(n,i){return function(u){return La(n,u,i)}});function uf(n,i,u){var p=Yt(i),v=ou(i,p);u==null&&!(mt(i)&&(v.length||!p.length))&&(u=i,i=n,n=this,v=ou(i,Yt(i)));var w=!(mt(u)&&"chain"in u)||!!u.chain,R=ri(n);return T(v,function(P){var j=i[P];n[P]=j,R&&(n.prototype[P]=function(){var X=this.__chain__;if(w||X){var J=n(this.__wrapped__),Q=J.__actions__=vn(this.__actions__);return Q.push({func:j,args:arguments,thisArg:n}),J.__chain__=X,J}return j.apply(n,Te([this.value()],arguments))})}),n}function V_(){return pt._===this&&(pt._=by),this}function lf(){}function G_(n){return n=Ae(n),Ne(function(i){return Ch(i,n)})}var K_=Fc(ce),Z_=Fc(z),X_=Fc(gt);function Hp(n){return zc(n)?Kr(Ar(n)):Ev(n)}function J_(n){return function(i){return n==null?r:rs(n,i)}}var Q_=Vh(),ew=Vh(!0);function cf(){return[]}function ff(){return!1}function tw(){return{}}function nw(){return""}function rw(){return!0}function iw(n,i){if(n=Ae(n),n<1||n>Fe)return[];var u=Nt,p=Jt(n,Nt);i=_e(i),n-=Nt;for(var v=Zi(p,i);++u<n;)i(u);return v}function sw(n){return Re(n)?ce(n,Ar):Mn(n)?[n]:vn(lp(et(n)))}function aw(n){var i=++yy;return et(n)+i}var ow=hu(function(n,i){return n+i},0),uw=Yc("ceil"),lw=hu(function(n,i){return n/i},1),cw=Yc("floor");function fw(n){return n&&n.length?au(n,_n,Cc):r}function dw(n,i){return n&&n.length?au(n,_e(i,2),Cc):r}function hw(n){return Dn(n,_n)}function pw(n,i){return Dn(n,_e(i,2))}function gw(n){return n&&n.length?au(n,_n,Rc):r}function mw(n,i){return n&&n.length?au(n,_e(i,2),Rc):r}var yw=hu(function(n,i){return n*i},1),vw=Yc("round"),bw=hu(function(n,i){return n-i},0);function xw(n){return n&&n.length?Xt(n,_n):0}function _w(n,i){return n&&n.length?Xt(n,_e(i,2)):0}return _.after=Hb,_.ary=xp,_.assign=Mx,_.assignIn=Pp,_.assignInWith=Du,_.assignWith=Ax,_.at=Ox,_.before=_p,_.bind=Jc,_.bindAll=j_,_.bindKey=wp,_.castArray=tx,_.chain=yp,_.chunk=c1,_.compact=f1,_.concat=d1,_.cond=$_,_.conforms=F_,_.constant=af,_.countBy=xb,_.create=Ix,_.curry=Sp,_.curryRight=kp,_.debounce=Cp,_.defaults=Px,_.defaultsDeep=Nx,_.defer=Ub,_.delay=qb,_.difference=h1,_.differenceBy=p1,_.differenceWith=g1,_.drop=m1,_.dropRight=y1,_.dropRightWhile=v1,_.dropWhile=b1,_.fill=x1,_.filter=wb,_.flatMap=Cb,_.flatMapDeep=Db,_.flatMapDepth=Eb,_.flatten=hp,_.flattenDeep=_1,_.flattenDepth=w1,_.flip=zb,_.flow=W_,_.flowRight=B_,_.fromPairs=S1,_.functions=Bx,_.functionsIn=Hx,_.groupBy=Tb,_.initial=C1,_.intersection=D1,_.intersectionBy=E1,_.intersectionWith=T1,_.invert=qx,_.invertBy=zx,_.invokeMap=Mb,_.iteratee=of,_.keyBy=Ab,_.keys=Yt,_.keysIn=xn,_.map=xu,_.mapKeys=Gx,_.mapValues=Kx,_.matches=H_,_.matchesProperty=U_,_.memoize=wu,_.merge=Zx,_.mergeWith=Np,_.method=q_,_.methodOf=z_,_.mixin=uf,_.negate=Su,_.nthArg=G_,_.omit=Xx,_.omitBy=Jx,_.once=Vb,_.orderBy=Ob,_.over=K_,_.overArgs=Gb,_.overEvery=Z_,_.overSome=X_,_.partial=Qc,_.partialRight=Dp,_.partition=Ib,_.pick=Qx,_.pickBy=Lp,_.property=Hp,_.propertyOf=J_,_.pull=O1,_.pullAll=gp,_.pullAllBy=I1,_.pullAllWith=P1,_.pullAt=N1,_.range=Q_,_.rangeRight=ew,_.rearg=Kb,_.reject=Lb,_.remove=L1,_.rest=Zb,_.reverse=Zc,_.sampleSize=$b,_.set=t_,_.setWith=n_,_.shuffle=Fb,_.slice=j1,_.sortBy=Bb,_.sortedUniq=U1,_.sortedUniqBy=q1,_.split=C_,_.spread=Xb,_.tail=z1,_.take=V1,_.takeRight=G1,_.takeRightWhile=K1,_.takeWhile=Z1,_.tap=fb,_.throttle=Jb,_.thru=bu,_.toArray=Ap,_.toPairs=jp,_.toPairsIn=$p,_.toPath=sw,_.toPlainObject=Ip,_.transform=r_,_.unary=Qb,_.union=X1,_.unionBy=J1,_.unionWith=Q1,_.uniq=eb,_.uniqBy=tb,_.uniqWith=nb,_.unset=i_,_.unzip=Xc,_.unzipWith=mp,_.update=s_,_.updateWith=a_,_.values=$s,_.valuesIn=o_,_.without=rb,_.words=Wp,_.wrap=ex,_.xor=ib,_.xorBy=sb,_.xorWith=ab,_.zip=ob,_.zipObject=ub,_.zipObjectDeep=lb,_.zipWith=cb,_.entries=jp,_.entriesIn=$p,_.extend=Pp,_.extendWith=Du,uf(_,_),_.add=ow,_.attempt=Bp,_.camelCase=f_,_.capitalize=Fp,_.ceil=uw,_.clamp=u_,_.clone=nx,_.cloneDeep=ix,_.cloneDeepWith=sx,_.cloneWith=rx,_.conformsTo=ax,_.deburr=Yp,_.defaultTo=Y_,_.divide=lw,_.endsWith=d_,_.eq=hr,_.escape=h_,_.escapeRegExp=p_,_.every=_b,_.find=Sb,_.findIndex=fp,_.findKey=Lx,_.findLast=kb,_.findLastIndex=dp,_.findLastKey=jx,_.floor=cw,_.forEach=vp,_.forEachRight=bp,_.forIn=$x,_.forInRight=Fx,_.forOwn=Yx,_.forOwnRight=Wx,_.get=nf,_.gt=ox,_.gte=ux,_.has=Ux,_.hasIn=rf,_.head=pp,_.identity=_n,_.includes=Rb,_.indexOf=k1,_.inRange=l_,_.invoke=Vx,_.isArguments=as,_.isArray=Re,_.isArrayBuffer=lx,_.isArrayLike=bn,_.isArrayLikeObject=wt,_.isBoolean=cx,_.isBuffer=Ni,_.isDate=fx,_.isElement=dx,_.isEmpty=hx,_.isEqual=px,_.isEqualWith=gx,_.isError=ef,_.isFinite=mx,_.isFunction=ri,_.isInteger=Ep,_.isLength=ku,_.isMap=Tp,_.isMatch=yx,_.isMatchWith=vx,_.isNaN=bx,_.isNative=xx,_.isNil=wx,_.isNull=_x,_.isNumber=Rp,_.isObject=mt,_.isObjectLike=yt,_.isPlainObject=Ba,_.isRegExp=tf,_.isSafeInteger=Sx,_.isSet=Mp,_.isString=Cu,_.isSymbol=Mn,_.isTypedArray=js,_.isUndefined=kx,_.isWeakMap=Cx,_.isWeakSet=Dx,_.join=R1,_.kebabCase=g_,_.last=Vn,_.lastIndexOf=M1,_.lowerCase=m_,_.lowerFirst=y_,_.lt=Ex,_.lte=Tx,_.max=fw,_.maxBy=dw,_.mean=hw,_.meanBy=pw,_.min=gw,_.minBy=mw,_.stubArray=cf,_.stubFalse=ff,_.stubObject=tw,_.stubString=nw,_.stubTrue=rw,_.multiply=yw,_.nth=A1,_.noConflict=V_,_.noop=lf,_.now=_u,_.pad=v_,_.padEnd=b_,_.padStart=x_,_.parseInt=__,_.random=c_,_.reduce=Pb,_.reduceRight=Nb,_.repeat=w_,_.replace=S_,_.result=e_,_.round=vw,_.runInContext=k,_.sample=jb,_.size=Yb,_.snakeCase=k_,_.some=Wb,_.sortedIndex=$1,_.sortedIndexBy=F1,_.sortedIndexOf=Y1,_.sortedLastIndex=W1,_.sortedLastIndexBy=B1,_.sortedLastIndexOf=H1,_.startCase=D_,_.startsWith=E_,_.subtract=bw,_.sum=xw,_.sumBy=_w,_.template=T_,_.times=iw,_.toFinite=ii,_.toInteger=Ae,_.toLength=Op,_.toLower=R_,_.toNumber=Gn,_.toSafeInteger=Rx,_.toString=et,_.toUpper=M_,_.trim=A_,_.trimEnd=O_,_.trimStart=I_,_.truncate=P_,_.unescape=N_,_.uniqueId=aw,_.upperCase=L_,_.upperFirst=sf,_.each=vp,_.eachRight=bp,_.first=pp,uf(_,function(){var n={};return Rr(_,function(i,u){De.call(_.prototype,u)||(n[u]=i)}),n}(),{chain:!1}),_.VERSION=s,T(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){_[n].placeholder=_}),T(["drop","take"],function(n,i){We.prototype[n]=function(u){u=u===r?1:It(Ae(u),0);var p=this.__filtered__&&!i?new We(this):this.clone();return p.__filtered__?p.__takeCount__=Jt(u,p.__takeCount__):p.__views__.push({size:Jt(u,Nt),type:n+(p.__dir__<0?"Right":"")}),p},We.prototype[n+"Right"]=function(u){return this.reverse()[n](u).reverse()}}),T(["filter","map","takeWhile"],function(n,i){var u=i+1,p=u==ot||u==Tt;We.prototype[n]=function(v){var w=this.clone();return w.__iteratees__.push({iteratee:_e(v,3),type:u}),w.__filtered__=w.__filtered__||p,w}}),T(["head","last"],function(n,i){var u="take"+(i?"Right":"");We.prototype[n]=function(){return this[u](1).value()[0]}}),T(["initial","tail"],function(n,i){var u="drop"+(i?"":"Right");We.prototype[n]=function(){return this.__filtered__?new We(this):this[u](1)}}),We.prototype.compact=function(){return this.filter(_n)},We.prototype.find=function(n){return this.filter(n).head()},We.prototype.findLast=function(n){return this.reverse().find(n)},We.prototype.invokeMap=Ne(function(n,i){return typeof n=="function"?new We(this):this.map(function(u){return La(u,n,i)})}),We.prototype.reject=function(n){return this.filter(Su(_e(n)))},We.prototype.slice=function(n,i){n=Ae(n);var u=this;return u.__filtered__&&(n>0||i<0)?new We(u):(n<0?u=u.takeRight(-n):n&&(u=u.drop(n)),i!==r&&(i=Ae(i),u=i<0?u.dropRight(-i):u.take(i-n)),u)},We.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},We.prototype.toArray=function(){return this.take(Nt)},Rr(We.prototype,function(n,i){var u=/^(?:filter|find|map|reject)|While$/.test(i),p=/^(?:head|last)$/.test(i),v=_[p?"take"+(i=="last"?"Right":""):i],w=p||/^find/.test(i);v&&(_.prototype[i]=function(){var R=this.__wrapped__,P=p?[1]:arguments,j=R instanceof We,X=P[0],J=j||Re(R),Q=function(Ye){var He=v.apply(_,Te([Ye],P));return p&&ae?He[0]:He};J&&u&&typeof X=="function"&&X.length!=1&&(j=J=!1);var ae=this.__chain__,ve=!!this.__actions__.length,Se=w&&!ae,Ie=j&&!ve;if(!w&&J){R=Ie?R:new We(this);var ke=n.apply(R,P);return ke.__actions__.push({func:bu,args:[Q],thisArg:r}),new Un(ke,ae)}return Se&&Ie?n.apply(this,P):(ke=this.thru(Q),Se?p?ke.value()[0]:ke.value():ke)})}),T(["pop","push","shift","sort","splice","unshift"],function(n){var i=At[n],u=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",p=/^(?:pop|shift)$/.test(n);_.prototype[n]=function(){var v=arguments;if(p&&!this.__chain__){var w=this.value();return i.apply(Re(w)?w:[],v)}return this[u](function(R){return i.apply(Re(R)?R:[],v)})}}),Rr(We.prototype,function(n,i){var u=_[i];if(u){var p=u.name+"";De.call(Os,p)||(Os[p]=[]),Os[p].push({name:i,func:u})}}),Os[du(r,Y).name]=[{name:"wrapper",func:r}],We.prototype.clone=Ny,We.prototype.reverse=Ly,We.prototype.value=jy,_.prototype.at=db,_.prototype.chain=hb,_.prototype.commit=pb,_.prototype.next=gb,_.prototype.plant=yb,_.prototype.reverse=vb,_.prototype.toJSON=_.prototype.valueOf=_.prototype.value=bb,_.prototype.first=_.prototype.head,Ra&&(_.prototype[Ra]=mb),_},q=W();ur?((ur.exports=q)._=q,Es._=q):pt._=q}).call(D.commonjsGlobal)})(Ku,Ku.exports);Ku.exports;function _M(e){var t=e.lastRenderedStartIndex,r=e.lastRenderedStopIndex,s=e.startIndex,o=e.stopIndex;return!(s>r||o<t)}function wM(e){for(var t=e.isItemLoaded,r=e.itemCount,s=e.minimumBatchSize,o=e.startIndex,c=e.stopIndex,h=[],b=null,S=null,E=o;E<=c;E++){var A=t(E);A?S!==null&&(h.push(b,S),b=S=null):(S=E,b===null&&(b=E))}if(S!==null){for(var F=Math.min(Math.max(S,b+s-1),r-1),H=S+1;H<=F&&!t(H);H++)S=H;h.push(b,S)}if(h.length)for(;h[1]-h[0]+1<s&&h[0]>0;){var K=h[0]-1;if(!t(K))h[0]=K;else break}return h}var SM=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},kM=function(){function e(t,r){for(var s=0;s<r.length;s++){var o=r[s];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,r,s){return r&&e(t.prototype,r),s&&e(t,s),t}}(),CM=function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},Dg=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e};(function(e){CM(t,e);function t(){var r,s,o,c;SM(this,t);for(var h=arguments.length,b=Array(h),S=0;S<h;S++)b[S]=arguments[S];return c=(s=(o=Dg(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(b))),o),o._lastRenderedStartIndex=-1,o._lastRenderedStopIndex=-1,o._memoizedUnloadedRanges=[],o._onItemsRendered=function(E){var A=E.visibleStartIndex,F=E.visibleStopIndex;o._lastRenderedStartIndex=A,o._lastRenderedStopIndex=F,o._ensureRowsLoaded(A,F)},o._setRef=function(E){o._listRef=E},s),Dg(o,c)}return kM(t,[{key:"resetloadMoreItemsCache",value:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this._memoizedUnloadedRanges=[],s&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var s=this.props.children;return s({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(s,o){var c=this.props,h=c.isItemLoaded,b=c.itemCount,S=c.minimumBatchSize,E=S===void 0?10:S,A=c.threshold,F=A===void 0?15:A,H=wM({isItemLoaded:h,itemCount:b,minimumBatchSize:E,startIndex:Math.max(0,s-F),stopIndex:Math.min(b-1,o+F)});(this._memoizedUnloadedRanges.length!==H.length||this._memoizedUnloadedRanges.some(function(K,U){return H[U]!==K}))&&(this._memoizedUnloadedRanges=H,this._loadUnloadedRanges(H))}},{key:"_loadUnloadedRanges",value:function(s){for(var o=this,c=this.props.loadMoreItems||this.props.loadMoreRows,h=function(E){var A=s[E],F=s[E+1],H=c(A,F);H!=null&&H.then(function(){if(_M({lastRenderedStartIndex:o._lastRenderedStartIndex,lastRenderedStopIndex:o._lastRenderedStopIndex,startIndex:A,stopIndex:F})){if(o._listRef==null)return;typeof o._listRef.resetAfterIndex=="function"?o._listRef.resetAfterIndex(A,!0):(typeof o._listRef._getItemStyleCache=="function"&&o._listRef._getItemStyleCache(-1),o._listRef.forceUpdate())}})},b=0;b<s.length;b+=2)h(b)}}]),t})(D.reactExports.PureComponent);var R0={exports:{}};/*!
|
|
161
|
+
}`;var Ie=Bp(function(){return he(w,ve+"return "+Q).apply(r,R)});if(Ie.source=Q,ef(Ie))throw Ie;return Ie}function R_(n){return et(n).toLowerCase()}function M_(n){return et(n).toUpperCase()}function A_(n,i,u){if(n=et(n),n&&(u||i===r))return Hn(n);if(!n||!(i=Rn(i)))return n;var p=sn(n),v=sn(i),w=Ve(p,v),R=Ji(p,v)+1;return Pi(p,w,R).join("")}function O_(n,i,u){if(n=et(n),n&&(u||i===r))return n.slice(0,zo(n)+1);if(!n||!(i=Rn(i)))return n;var p=sn(n),v=Ji(p,sn(i))+1;return Pi(p,0,v).join("")}function I_(n,i,u){if(n=et(n),n&&(u||i===r))return n.replace(zi,"");if(!n||!(i=Rn(i)))return n;var p=sn(n),v=Ve(p,sn(i));return Pi(p,v).join("")}function P_(n,i){var u=at,p=Ue;if(mt(i)){var v="separator"in i?i.separator:v;u="length"in i?Ae(i.length):u,p="omission"in i?Rn(i.omission):p}n=et(n);var w=n.length;if(yn(n)){var R=sn(n);w=R.length}if(u>=w)return n;var P=u-Tr(p);if(P<1)return p;var j=R?Pi(R,0,P).join(""):n.slice(0,P);if(v===r)return j+p;if(R&&(P+=j.length-P),tf(v)){if(n.slice(P).search(v)){var X,J=j;for(v.global||(v=Me(v.source,et(Co.exec(v))+"g")),v.lastIndex=0;X=v.exec(J);)var Q=X.index;j=j.slice(0,Q===r?P:Q)}}else if(n.indexOf(Rn(v),P)!=P){var ae=j.lastIndexOf(v);ae>-1&&(j=j.slice(0,ae))}return j+p}function N_(n){return n=et(n),n&&bo.test(n)?n.replace(zr,Ta):n}var L_=Ns(function(n,i,u){return n+(u?" ":"")+i.toUpperCase()}),sf=Hh("toUpperCase");function Wp(n,i,u){return n=et(n),i=u?r:i,i===r?Da(n)?N(n):je(n):n.match(i)||[]}var Bp=Ne(function(n,i){try{return x(n,r,i)}catch(u){return ef(u)?u:new Z(u)}}),j_=ti(function(n,i){return T(i,function(u){u=Ar(u),Qr(n,u,Jc(n[u],n))}),n});function $_(n){var i=n==null?0:n.length,u=_e();return n=i?ce(n,function(p){if(typeof p[1]!="function")throw new Pe(h);return[u(p[0]),p[1]]}):[],Ne(function(p){for(var v=-1;++v<i;){var w=n[v];if(x(w[0],this,p))return x(w[1],this,p)}})}function F_(n){return cv(qn(n,F))}function af(n){return function(){return n}}function Y_(n,i){return n==null||n!==n?i:n}var W_=qh(),B_=qh(!0);function _n(n){return n}function of(n){return _h(typeof n=="function"?n:qn(n,F))}function H_(n){return Sh(qn(n,F))}function U_(n,i){return kh(n,qn(i,F))}var q_=Ne(function(n,i){return function(u){return La(u,n,i)}}),z_=Ne(function(n,i){return function(u){return La(n,u,i)}});function uf(n,i,u){var p=Yt(i),v=ou(i,p);u==null&&!(mt(i)&&(v.length||!p.length))&&(u=i,i=n,n=this,v=ou(i,Yt(i)));var w=!(mt(u)&&"chain"in u)||!!u.chain,R=ri(n);return T(v,function(P){var j=i[P];n[P]=j,R&&(n.prototype[P]=function(){var X=this.__chain__;if(w||X){var J=n(this.__wrapped__),Q=J.__actions__=vn(this.__actions__);return Q.push({func:j,args:arguments,thisArg:n}),J.__chain__=X,J}return j.apply(n,Te([this.value()],arguments))})}),n}function V_(){return pt._===this&&(pt._=by),this}function lf(){}function G_(n){return n=Ae(n),Ne(function(i){return Ch(i,n)})}var K_=Fc(ce),Z_=Fc(z),X_=Fc(gt);function Hp(n){return zc(n)?Kr(Ar(n)):Ev(n)}function J_(n){return function(i){return n==null?r:rs(n,i)}}var Q_=Vh(),ew=Vh(!0);function cf(){return[]}function ff(){return!1}function tw(){return{}}function nw(){return""}function rw(){return!0}function iw(n,i){if(n=Ae(n),n<1||n>Fe)return[];var u=Nt,p=Jt(n,Nt);i=_e(i),n-=Nt;for(var v=Zi(p,i);++u<n;)i(u);return v}function sw(n){return Re(n)?ce(n,Ar):Mn(n)?[n]:vn(lp(et(n)))}function aw(n){var i=++yy;return et(n)+i}var ow=hu(function(n,i){return n+i},0),uw=Yc("ceil"),lw=hu(function(n,i){return n/i},1),cw=Yc("floor");function fw(n){return n&&n.length?au(n,_n,Cc):r}function dw(n,i){return n&&n.length?au(n,_e(i,2),Cc):r}function hw(n){return Dn(n,_n)}function pw(n,i){return Dn(n,_e(i,2))}function gw(n){return n&&n.length?au(n,_n,Rc):r}function mw(n,i){return n&&n.length?au(n,_e(i,2),Rc):r}var yw=hu(function(n,i){return n*i},1),vw=Yc("round"),bw=hu(function(n,i){return n-i},0);function xw(n){return n&&n.length?Xt(n,_n):0}function _w(n,i){return n&&n.length?Xt(n,_e(i,2)):0}return _.after=Hb,_.ary=xp,_.assign=Mx,_.assignIn=Pp,_.assignInWith=Du,_.assignWith=Ax,_.at=Ox,_.before=_p,_.bind=Jc,_.bindAll=j_,_.bindKey=wp,_.castArray=tx,_.chain=yp,_.chunk=c1,_.compact=f1,_.concat=d1,_.cond=$_,_.conforms=F_,_.constant=af,_.countBy=xb,_.create=Ix,_.curry=Sp,_.curryRight=kp,_.debounce=Cp,_.defaults=Px,_.defaultsDeep=Nx,_.defer=Ub,_.delay=qb,_.difference=h1,_.differenceBy=p1,_.differenceWith=g1,_.drop=m1,_.dropRight=y1,_.dropRightWhile=v1,_.dropWhile=b1,_.fill=x1,_.filter=wb,_.flatMap=Cb,_.flatMapDeep=Db,_.flatMapDepth=Eb,_.flatten=hp,_.flattenDeep=_1,_.flattenDepth=w1,_.flip=zb,_.flow=W_,_.flowRight=B_,_.fromPairs=S1,_.functions=Bx,_.functionsIn=Hx,_.groupBy=Tb,_.initial=C1,_.intersection=D1,_.intersectionBy=E1,_.intersectionWith=T1,_.invert=qx,_.invertBy=zx,_.invokeMap=Mb,_.iteratee=of,_.keyBy=Ab,_.keys=Yt,_.keysIn=xn,_.map=xu,_.mapKeys=Gx,_.mapValues=Kx,_.matches=H_,_.matchesProperty=U_,_.memoize=wu,_.merge=Zx,_.mergeWith=Np,_.method=q_,_.methodOf=z_,_.mixin=uf,_.negate=Su,_.nthArg=G_,_.omit=Xx,_.omitBy=Jx,_.once=Vb,_.orderBy=Ob,_.over=K_,_.overArgs=Gb,_.overEvery=Z_,_.overSome=X_,_.partial=Qc,_.partialRight=Dp,_.partition=Ib,_.pick=Qx,_.pickBy=Lp,_.property=Hp,_.propertyOf=J_,_.pull=O1,_.pullAll=gp,_.pullAllBy=I1,_.pullAllWith=P1,_.pullAt=N1,_.range=Q_,_.rangeRight=ew,_.rearg=Kb,_.reject=Lb,_.remove=L1,_.rest=Zb,_.reverse=Zc,_.sampleSize=$b,_.set=t_,_.setWith=n_,_.shuffle=Fb,_.slice=j1,_.sortBy=Bb,_.sortedUniq=U1,_.sortedUniqBy=q1,_.split=C_,_.spread=Xb,_.tail=z1,_.take=V1,_.takeRight=G1,_.takeRightWhile=K1,_.takeWhile=Z1,_.tap=fb,_.throttle=Jb,_.thru=bu,_.toArray=Ap,_.toPairs=jp,_.toPairsIn=$p,_.toPath=sw,_.toPlainObject=Ip,_.transform=r_,_.unary=Qb,_.union=X1,_.unionBy=J1,_.unionWith=Q1,_.uniq=eb,_.uniqBy=tb,_.uniqWith=nb,_.unset=i_,_.unzip=Xc,_.unzipWith=mp,_.update=s_,_.updateWith=a_,_.values=$s,_.valuesIn=o_,_.without=rb,_.words=Wp,_.wrap=ex,_.xor=ib,_.xorBy=sb,_.xorWith=ab,_.zip=ob,_.zipObject=ub,_.zipObjectDeep=lb,_.zipWith=cb,_.entries=jp,_.entriesIn=$p,_.extend=Pp,_.extendWith=Du,uf(_,_),_.add=ow,_.attempt=Bp,_.camelCase=f_,_.capitalize=Fp,_.ceil=uw,_.clamp=u_,_.clone=nx,_.cloneDeep=ix,_.cloneDeepWith=sx,_.cloneWith=rx,_.conformsTo=ax,_.deburr=Yp,_.defaultTo=Y_,_.divide=lw,_.endsWith=d_,_.eq=hr,_.escape=h_,_.escapeRegExp=p_,_.every=_b,_.find=Sb,_.findIndex=fp,_.findKey=Lx,_.findLast=kb,_.findLastIndex=dp,_.findLastKey=jx,_.floor=cw,_.forEach=vp,_.forEachRight=bp,_.forIn=$x,_.forInRight=Fx,_.forOwn=Yx,_.forOwnRight=Wx,_.get=nf,_.gt=ox,_.gte=ux,_.has=Ux,_.hasIn=rf,_.head=pp,_.identity=_n,_.includes=Rb,_.indexOf=k1,_.inRange=l_,_.invoke=Vx,_.isArguments=as,_.isArray=Re,_.isArrayBuffer=lx,_.isArrayLike=bn,_.isArrayLikeObject=wt,_.isBoolean=cx,_.isBuffer=Ni,_.isDate=fx,_.isElement=dx,_.isEmpty=hx,_.isEqual=px,_.isEqualWith=gx,_.isError=ef,_.isFinite=mx,_.isFunction=ri,_.isInteger=Ep,_.isLength=ku,_.isMap=Tp,_.isMatch=yx,_.isMatchWith=vx,_.isNaN=bx,_.isNative=xx,_.isNil=wx,_.isNull=_x,_.isNumber=Rp,_.isObject=mt,_.isObjectLike=yt,_.isPlainObject=Ba,_.isRegExp=tf,_.isSafeInteger=Sx,_.isSet=Mp,_.isString=Cu,_.isSymbol=Mn,_.isTypedArray=js,_.isUndefined=kx,_.isWeakMap=Cx,_.isWeakSet=Dx,_.join=R1,_.kebabCase=g_,_.last=Vn,_.lastIndexOf=M1,_.lowerCase=m_,_.lowerFirst=y_,_.lt=Ex,_.lte=Tx,_.max=fw,_.maxBy=dw,_.mean=hw,_.meanBy=pw,_.min=gw,_.minBy=mw,_.stubArray=cf,_.stubFalse=ff,_.stubObject=tw,_.stubString=nw,_.stubTrue=rw,_.multiply=yw,_.nth=A1,_.noConflict=V_,_.noop=lf,_.now=_u,_.pad=v_,_.padEnd=b_,_.padStart=x_,_.parseInt=__,_.random=c_,_.reduce=Pb,_.reduceRight=Nb,_.repeat=w_,_.replace=S_,_.result=e_,_.round=vw,_.runInContext=k,_.sample=jb,_.size=Yb,_.snakeCase=k_,_.some=Wb,_.sortedIndex=$1,_.sortedIndexBy=F1,_.sortedIndexOf=Y1,_.sortedLastIndex=W1,_.sortedLastIndexBy=B1,_.sortedLastIndexOf=H1,_.startCase=D_,_.startsWith=E_,_.subtract=bw,_.sum=xw,_.sumBy=_w,_.template=T_,_.times=iw,_.toFinite=ii,_.toInteger=Ae,_.toLength=Op,_.toLower=R_,_.toNumber=Gn,_.toSafeInteger=Rx,_.toString=et,_.toUpper=M_,_.trim=A_,_.trimEnd=O_,_.trimStart=I_,_.truncate=P_,_.unescape=N_,_.uniqueId=aw,_.upperCase=L_,_.upperFirst=sf,_.each=vp,_.eachRight=bp,_.first=pp,uf(_,function(){var n={};return Rr(_,function(i,u){De.call(_.prototype,u)||(n[u]=i)}),n}(),{chain:!1}),_.VERSION=s,T(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){_[n].placeholder=_}),T(["drop","take"],function(n,i){We.prototype[n]=function(u){u=u===r?1:It(Ae(u),0);var p=this.__filtered__&&!i?new We(this):this.clone();return p.__filtered__?p.__takeCount__=Jt(u,p.__takeCount__):p.__views__.push({size:Jt(u,Nt),type:n+(p.__dir__<0?"Right":"")}),p},We.prototype[n+"Right"]=function(u){return this.reverse()[n](u).reverse()}}),T(["filter","map","takeWhile"],function(n,i){var u=i+1,p=u==ot||u==Tt;We.prototype[n]=function(v){var w=this.clone();return w.__iteratees__.push({iteratee:_e(v,3),type:u}),w.__filtered__=w.__filtered__||p,w}}),T(["head","last"],function(n,i){var u="take"+(i?"Right":"");We.prototype[n]=function(){return this[u](1).value()[0]}}),T(["initial","tail"],function(n,i){var u="drop"+(i?"":"Right");We.prototype[n]=function(){return this.__filtered__?new We(this):this[u](1)}}),We.prototype.compact=function(){return this.filter(_n)},We.prototype.find=function(n){return this.filter(n).head()},We.prototype.findLast=function(n){return this.reverse().find(n)},We.prototype.invokeMap=Ne(function(n,i){return typeof n=="function"?new We(this):this.map(function(u){return La(u,n,i)})}),We.prototype.reject=function(n){return this.filter(Su(_e(n)))},We.prototype.slice=function(n,i){n=Ae(n);var u=this;return u.__filtered__&&(n>0||i<0)?new We(u):(n<0?u=u.takeRight(-n):n&&(u=u.drop(n)),i!==r&&(i=Ae(i),u=i<0?u.dropRight(-i):u.take(i-n)),u)},We.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},We.prototype.toArray=function(){return this.take(Nt)},Rr(We.prototype,function(n,i){var u=/^(?:filter|find|map|reject)|While$/.test(i),p=/^(?:head|last)$/.test(i),v=_[p?"take"+(i=="last"?"Right":""):i],w=p||/^find/.test(i);v&&(_.prototype[i]=function(){var R=this.__wrapped__,P=p?[1]:arguments,j=R instanceof We,X=P[0],J=j||Re(R),Q=function(Ye){var He=v.apply(_,Te([Ye],P));return p&&ae?He[0]:He};J&&u&&typeof X=="function"&&X.length!=1&&(j=J=!1);var ae=this.__chain__,ve=!!this.__actions__.length,Se=w&&!ae,Ie=j&&!ve;if(!w&&J){R=Ie?R:new We(this);var ke=n.apply(R,P);return ke.__actions__.push({func:bu,args:[Q],thisArg:r}),new Un(ke,ae)}return Se&&Ie?n.apply(this,P):(ke=this.thru(Q),Se?p?ke.value()[0]:ke.value():ke)})}),T(["pop","push","shift","sort","splice","unshift"],function(n){var i=At[n],u=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",p=/^(?:pop|shift)$/.test(n);_.prototype[n]=function(){var v=arguments;if(p&&!this.__chain__){var w=this.value();return i.apply(Re(w)?w:[],v)}return this[u](function(R){return i.apply(Re(R)?R:[],v)})}}),Rr(We.prototype,function(n,i){var u=_[i];if(u){var p=u.name+"";De.call(Os,p)||(Os[p]=[]),Os[p].push({name:i,func:u})}}),Os[du(r,Y).name]=[{name:"wrapper",func:r}],We.prototype.clone=Ny,We.prototype.reverse=Ly,We.prototype.value=jy,_.prototype.at=db,_.prototype.chain=hb,_.prototype.commit=pb,_.prototype.next=gb,_.prototype.plant=yb,_.prototype.reverse=vb,_.prototype.toJSON=_.prototype.valueOf=_.prototype.value=bb,_.prototype.first=_.prototype.head,Ra&&(_.prototype[Ra]=mb),_},q=W();ur?((ur.exports=q)._=q,Es._=q):pt._=q}).call(D.commonjsGlobal)})(Ku,Ku.exports);Ku.exports;function _M(e){var t=e.lastRenderedStartIndex,r=e.lastRenderedStopIndex,s=e.startIndex,o=e.stopIndex;return!(s>r||o<t)}function wM(e){for(var t=e.isItemLoaded,r=e.itemCount,s=e.minimumBatchSize,o=e.startIndex,c=e.stopIndex,h=[],b=null,S=null,E=o;E<=c;E++){var A=t(E);A?S!==null&&(h.push(b,S),b=S=null):(S=E,b===null&&(b=E))}if(S!==null){for(var F=Math.min(Math.max(S,b+s-1),r-1),H=S+1;H<=F&&!t(H);H++)S=H;h.push(b,S)}if(h.length)for(;h[1]-h[0]+1<s&&h[0]>0;){var K=h[0]-1;if(!t(K))h[0]=K;else break}return h}var SM=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},kM=function(){function e(t,r){for(var s=0;s<r.length;s++){var o=r[s];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,r,s){return r&&e(t.prototype,r),s&&e(t,s),t}}(),CM=function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},Dg=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e};(function(e){CM(t,e);function t(){var r,s,o,c;SM(this,t);for(var h=arguments.length,b=Array(h),S=0;S<h;S++)b[S]=arguments[S];return c=(s=(o=Dg(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(b))),o),o._lastRenderedStartIndex=-1,o._lastRenderedStopIndex=-1,o._memoizedUnloadedRanges=[],o._onItemsRendered=function(E){var A=E.visibleStartIndex,F=E.visibleStopIndex;o._lastRenderedStartIndex=A,o._lastRenderedStopIndex=F,o._ensureRowsLoaded(A,F)},o._setRef=function(E){o._listRef=E},s),Dg(o,c)}return kM(t,[{key:"resetloadMoreItemsCache",value:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this._memoizedUnloadedRanges=[],s&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var s=this.props.children;return s({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(s,o){var c=this.props,h=c.isItemLoaded,b=c.itemCount,S=c.minimumBatchSize,E=S===void 0?10:S,A=c.threshold,F=A===void 0?15:A,H=wM({isItemLoaded:h,itemCount:b,minimumBatchSize:E,startIndex:Math.max(0,s-F),stopIndex:Math.min(b-1,o+F)});(this._memoizedUnloadedRanges.length!==H.length||this._memoizedUnloadedRanges.some(function(K,U){return H[U]!==K}))&&(this._memoizedUnloadedRanges=H,this._loadUnloadedRanges(H))}},{key:"_loadUnloadedRanges",value:function(s){for(var o=this,c=this.props.loadMoreItems||this.props.loadMoreRows,h=function(E){var A=s[E],F=s[E+1],H=c(A,F);H!=null&&H.then(function(){if(_M({lastRenderedStartIndex:o._lastRenderedStartIndex,lastRenderedStopIndex:o._lastRenderedStopIndex,startIndex:A,stopIndex:F})){if(o._listRef==null)return;typeof o._listRef.resetAfterIndex=="function"?o._listRef.resetAfterIndex(A,!0):(typeof o._listRef._getItemStyleCache=="function"&&o._listRef._getItemStyleCache(-1),o._listRef.forceUpdate())}})},b=0;b<s.length;b+=2)h(b)}}]),t})(D.reactExports.PureComponent);function Eg(e){Promise.resolve().then(e).catch(function(t){return setTimeout(function(){throw t})})}var DM=function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(r){r()},this.batchNotifyFn=function(r){r()}}var t=e.prototype;return t.batch=function(s){var o;this.transactions++;try{o=s()}finally{this.transactions--,this.transactions||this.flush()}return o},t.schedule=function(s){var o=this;this.transactions?this.queue.push(s):Eg(function(){o.notifyFn(s)})},t.batchCalls=function(s){var o=this;return function(){for(var c=arguments.length,h=new Array(c),b=0;b<c;b++)h[b]=arguments[b];o.schedule(function(){s.apply(void 0,h)})}},t.flush=function(){var s=this,o=this.queue;this.queue=[],o.length&&Eg(function(){s.batchNotifyFn(function(){o.forEach(function(c){s.notifyFn(c)})})})},t.setNotifyFunction=function(s){this.notifyFn=s},t.setBatchNotifyFunction=function(s){this.batchNotifyFn=s},e}(),EM=new DM,TM=D.ReactDOM.unstable_batchedUpdates;EM.setBatchNotifyFunction(TM);D.reactExports.createContext({});var R0={exports:{}};/*!
|
|
162
162
|
* jQuery JavaScript Library v3.7.1
|
|
163
163
|
* https://jquery.com/
|
|
164
164
|
*
|
|
@@ -170,13 +170,13 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
170
170
|
*/(function(e){(function(t,r){e.exports=t.document?r(t,!0):function(s){if(!s.document)throw new Error("jQuery requires a window with a document");return r(s)}})(typeof window<"u"?window:D.commonjsGlobal,function(t,r){var s=[],o=Object.getPrototypeOf,c=s.slice,h=s.flat?function(a){return s.flat.call(a)}:function(a){return s.concat.apply([],a)},b=s.push,S=s.indexOf,E={},A=E.toString,F=E.hasOwnProperty,H=F.toString,K=H.call(Object),U={},$=function(l){return typeof l=="function"&&typeof l.nodeType!="number"&&typeof l.item!="function"},ee=function(l){return l!=null&&l===l.window},Y=t.document,le={type:!0,src:!0,nonce:!0,noModule:!0};function ge(a,l,f){f=f||Y;var g,m,y=f.createElement("script");if(y.text=a,l)for(g in le)m=l[g]||l.getAttribute&&l.getAttribute(g),m&&y.setAttribute(g,m);f.head.appendChild(y).parentNode.removeChild(y)}function ye(a){return a==null?a+"":typeof a=="object"||typeof a=="function"?E[A.call(a)]||"object":typeof a}var re="3.7.1",ie=/HTML$/i,d=function(a,l){return new d.fn.init(a,l)};d.fn=d.prototype={jquery:re,constructor:d,length:0,toArray:function(){return c.call(this)},get:function(a){return a==null?c.call(this):a<0?this[a+this.length]:this[a]},pushStack:function(a){var l=d.merge(this.constructor(),a);return l.prevObject=this,l},each:function(a){return d.each(this,a)},map:function(a){return this.pushStack(d.map(this,function(l,f){return a.call(l,f,l)}))},slice:function(){return this.pushStack(c.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(d.grep(this,function(a,l){return(l+1)%2}))},odd:function(){return this.pushStack(d.grep(this,function(a,l){return l%2}))},eq:function(a){var l=this.length,f=+a+(a<0?l:0);return this.pushStack(f>=0&&f<l?[this[f]]:[])},end:function(){return this.prevObject||this.constructor()},push:b,sort:s.sort,splice:s.splice},d.extend=d.fn.extend=function(){var a,l,f,g,m,y,x=arguments[0]||{},M=1,T=arguments.length,L=!1;for(typeof x=="boolean"&&(L=x,x=arguments[M]||{},M++),typeof x!="object"&&!$(x)&&(x={}),M===T&&(x=this,M--);M<T;M++)if((a=arguments[M])!=null)for(l in a)g=a[l],!(l==="__proto__"||x===g)&&(L&&g&&(d.isPlainObject(g)||(m=Array.isArray(g)))?(f=x[l],m&&!Array.isArray(f)?y=[]:!m&&!d.isPlainObject(f)?y={}:y=f,m=!1,x[l]=d.extend(L,y,g)):g!==void 0&&(x[l]=g));return x},d.extend({expando:"jQuery"+(re+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isPlainObject:function(a){var l,f;return!a||A.call(a)!=="[object Object]"?!1:(l=o(a),l?(f=F.call(l,"constructor")&&l.constructor,typeof f=="function"&&H.call(f)===K):!0)},isEmptyObject:function(a){var l;for(l in a)return!1;return!0},globalEval:function(a,l,f){ge(a,{nonce:l&&l.nonce},f)},each:function(a,l){var f,g=0;if(Le(a))for(f=a.length;g<f&&l.call(a[g],g,a[g])!==!1;g++);else for(g in a)if(l.call(a[g],g,a[g])===!1)break;return a},text:function(a){var l,f="",g=0,m=a.nodeType;if(!m)for(;l=a[g++];)f+=d.text(l);return m===1||m===11?a.textContent:m===9?a.documentElement.textContent:m===3||m===4?a.nodeValue:f},makeArray:function(a,l){var f=l||[];return a!=null&&(Le(Object(a))?d.merge(f,typeof a=="string"?[a]:a):b.call(f,a)),f},inArray:function(a,l,f){return l==null?-1:S.call(l,a,f)},isXMLDoc:function(a){var l=a&&a.namespaceURI,f=a&&(a.ownerDocument||a).documentElement;return!ie.test(l||f&&f.nodeName||"HTML")},merge:function(a,l){for(var f=+l.length,g=0,m=a.length;g<f;g++)a[m++]=l[g];return a.length=m,a},grep:function(a,l,f){for(var g,m=[],y=0,x=a.length,M=!f;y<x;y++)g=!l(a[y],y),g!==M&&m.push(a[y]);return m},map:function(a,l,f){var g,m,y=0,x=[];if(Le(a))for(g=a.length;y<g;y++)m=l(a[y],y,f),m!=null&&x.push(m);else for(y in a)m=l(a[y],y,f),m!=null&&x.push(m);return h(x)},guid:1,support:U}),typeof Symbol=="function"&&(d.fn[Symbol.iterator]=s[Symbol.iterator]),d.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,l){E["[object "+l+"]"]=l.toLowerCase()});function Le(a){var l=!!a&&"length"in a&&a.length,f=ye(a);return $(a)||ee(a)?!1:f==="array"||l===0||typeof l=="number"&&l>0&&l-1 in a}function fe(a,l){return a.nodeName&&a.nodeName.toLowerCase()===l.toLowerCase()}var at=s.pop,Ue=s.sort,Je=s.splice,we="[\\x20\\t\\r\\n\\f]",ot=new RegExp("^"+we+"+|((?:^|[^\\\\])(?:\\\\.)*)"+we+"+$","g");d.contains=function(a,l){var f=l&&l.parentNode;return a===f||!!(f&&f.nodeType===1&&(a.contains?a.contains(f):a.compareDocumentPosition&&a.compareDocumentPosition(f)&16))};var xt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function Tt(a,l){return l?a==="\0"?"�":a.slice(0,-1)+"\\"+a.charCodeAt(a.length-1).toString(16)+" ":"\\"+a}d.escapeSelector=function(a){return(a+"").replace(xt,Tt)};var ze=Y,Fe=b;(function(){var a,l,f,g,m,y=Fe,x,M,T,L,z,V=d.expando,B=0,te=0,ce=Ji(),Te=Ji(),Ee=Ji(),Mt=Ji(),gt=function(C,N){return C===N&&(m=!0),0},Wn="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Bn="(?:\\\\[\\da-fA-F]{1,6}"+we+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",je="\\["+we+"*("+Bn+")(?:"+we+"*([*^$|!~]?=)"+we+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Bn+"))|)"+we+"*\\]",Cr=":("+Bn+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+je+")*)|.*)\\)|)",$e=new RegExp(we+"+","g"),tt=new RegExp("^"+we+"*,"+we+"*"),Ki=new RegExp("^"+we+"*([>+~]|"+we+")"+we+"*"),Ts=new RegExp(we+"|>"),Dn=new RegExp(Cr),Kr=new RegExp("^"+Bn+"$"),mn={ID:new RegExp("^#("+Bn+")"),CLASS:new RegExp("^\\.("+Bn+")"),TAG:new RegExp("^("+Bn+"|[*])"),ATTR:new RegExp("^"+je),PSEUDO:new RegExp("^"+Cr),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+we+"*(even|odd|(([+-]|)(\\d*)n|)"+we+"*(?:([+-]|)"+we+"*(\\d+)|))"+we+"*\\)|)","i"),bool:new RegExp("^(?:"+Wn+")$","i"),needsContext:new RegExp("^"+we+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+we+"*((?:-\\d)?\\d*)"+we+"*\\)|)(?=[^-]|$)","i")},lr=/^(?:input|select|textarea|button)$/i,Dr=/^h\d$/i,Xt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Zi=/[+~]/,cr=new RegExp("\\\\[\\da-fA-F]{1,6}"+we+"?|\\\\([^\\r\\n\\f])","g"),Hn=function(C,N){var W="0x"+C.slice(1)-65536;return N||(W<0?String.fromCharCode(W+65536):String.fromCharCode(W>>10|55296,W&1023|56320))},rn=function(){Er()},Ca=Zr(function(C){return C.disabled===!0&&fe(C,"fieldset")},{dir:"parentNode",next:"legend"});function Xi(){try{return x.activeElement}catch{}}try{y.apply(s=c.call(ze.childNodes),ze.childNodes),s[ze.childNodes.length].nodeType}catch{y={apply:function(N,W){Fe.apply(N,c.call(W))},call:function(N){Fe.apply(N,c.call(arguments,1))}}}function Ve(C,N,W,q){var k,I,O,G,Z,he,pe,ue=N&&N.ownerDocument,Me=N?N.nodeType:9;if(W=W||[],typeof C!="string"||!C||Me!==1&&Me!==9&&Me!==11)return W;if(!q&&(Er(N),N=N||x,T)){if(Me!==11&&(Z=Xt.exec(C)))if(k=Z[1]){if(Me===9)if(O=N.getElementById(k)){if(O.id===k)return y.call(W,O),W}else return W;else if(ue&&(O=ue.getElementById(k))&&Ve.contains(N,O)&&O.id===k)return y.call(W,O),W}else{if(Z[2])return y.apply(W,N.getElementsByTagName(C)),W;if((k=Z[3])&&N.getElementsByClassName)return y.apply(W,N.getElementsByClassName(k)),W}if(!Mt[C+" "]&&(!L||!L.test(C))){if(pe=C,ue=N,Me===1&&(Ts.test(C)||Ki.test(C))){for(ue=Zi.test(C)&&Da(N.parentNode)||N,(ue!=N||!U.scope)&&((G=N.getAttribute("id"))?G=d.escapeSelector(G):N.setAttribute("id",G=V)),he=Ri(C),I=he.length;I--;)he[I]=(G?"#"+G:":scope")+" "+Tn(he[I]);pe=he.join(",")}try{return y.apply(W,ue.querySelectorAll(pe)),W}catch{Mt(C,!0)}finally{G===V&&N.removeAttribute("id")}}}return Vo(C.replace(ot,"$1"),N,W,q)}function Ji(){var C=[];function N(W,q){return C.push(W+" ")>l.cacheLength&&delete N[C.shift()],N[W+" "]=q}return N}function En(C){return C[V]=!0,C}function Ti(C){var N=x.createElement("fieldset");try{return!!C(N)}catch{return!1}finally{N.parentNode&&N.parentNode.removeChild(N),N=null}}function gc(C){return function(N){return fe(N,"input")&&N.type===C}}function mc(C){return function(N){return(fe(N,"input")||fe(N,"button"))&&N.type===C}}function qo(C){return function(N){return"form"in N?N.parentNode&&N.disabled===!1?"label"in N?"label"in N.parentNode?N.parentNode.disabled===C:N.disabled===C:N.isDisabled===C||N.isDisabled!==!C&&Ca(N)===C:N.disabled===C:"label"in N?N.disabled===C:!1}}function yn(C){return En(function(N){return N=+N,En(function(W,q){for(var k,I=C([],W.length,N),O=I.length;O--;)W[k=I[O]]&&(W[k]=!(q[k]=W[k]))})})}function Da(C){return C&&typeof C.getElementsByTagName<"u"&&C}function Er(C){var N,W=C?C.ownerDocument||C:ze;return W==x||W.nodeType!==9||!W.documentElement||(x=W,M=x.documentElement,T=!d.isXMLDoc(x),z=M.matches||M.webkitMatchesSelector||M.msMatchesSelector,M.msMatchesSelector&&ze!=x&&(N=x.defaultView)&&N.top!==N&&N.addEventListener("unload",rn),U.getById=Ti(function(q){return M.appendChild(q).id=d.expando,!x.getElementsByName||!x.getElementsByName(d.expando).length}),U.disconnectedMatch=Ti(function(q){return z.call(q,"*")}),U.scope=Ti(function(){return x.querySelectorAll(":scope")}),U.cssHas=Ti(function(){try{return x.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),U.getById?(l.filter.ID=function(q){var k=q.replace(cr,Hn);return function(I){return I.getAttribute("id")===k}},l.find.ID=function(q,k){if(typeof k.getElementById<"u"&&T){var I=k.getElementById(q);return I?[I]:[]}}):(l.filter.ID=function(q){var k=q.replace(cr,Hn);return function(I){var O=typeof I.getAttributeNode<"u"&&I.getAttributeNode("id");return O&&O.value===k}},l.find.ID=function(q,k){if(typeof k.getElementById<"u"&&T){var I,O,G,Z=k.getElementById(q);if(Z){if(I=Z.getAttributeNode("id"),I&&I.value===q)return[Z];for(G=k.getElementsByName(q),O=0;Z=G[O++];)if(I=Z.getAttributeNode("id"),I&&I.value===q)return[Z]}return[]}}),l.find.TAG=function(q,k){return typeof k.getElementsByTagName<"u"?k.getElementsByTagName(q):k.querySelectorAll(q)},l.find.CLASS=function(q,k){if(typeof k.getElementsByClassName<"u"&&T)return k.getElementsByClassName(q)},L=[],Ti(function(q){var k;M.appendChild(q).innerHTML="<a id='"+V+"' href='' disabled='disabled'></a><select id='"+V+"-\r\\' disabled='disabled'><option selected=''></option></select>",q.querySelectorAll("[selected]").length||L.push("\\["+we+"*(?:value|"+Wn+")"),q.querySelectorAll("[id~="+V+"-]").length||L.push("~="),q.querySelectorAll("a#"+V+"+*").length||L.push(".#.+[+~]"),q.querySelectorAll(":checked").length||L.push(":checked"),k=x.createElement("input"),k.setAttribute("type","hidden"),q.appendChild(k).setAttribute("name","D"),M.appendChild(q).disabled=!0,q.querySelectorAll(":disabled").length!==2&&L.push(":enabled",":disabled"),k=x.createElement("input"),k.setAttribute("name",""),q.appendChild(k),q.querySelectorAll("[name='']").length||L.push("\\["+we+"*name"+we+"*="+we+`*(?:''|"")`)}),U.cssHas||L.push(":has"),L=L.length&&new RegExp(L.join("|")),gt=function(q,k){if(q===k)return m=!0,0;var I=!q.compareDocumentPosition-!k.compareDocumentPosition;return I||(I=(q.ownerDocument||q)==(k.ownerDocument||k)?q.compareDocumentPosition(k):1,I&1||!U.sortDetached&&k.compareDocumentPosition(q)===I?q===x||q.ownerDocument==ze&&Ve.contains(ze,q)?-1:k===x||k.ownerDocument==ze&&Ve.contains(ze,k)?1:g?S.call(g,q)-S.call(g,k):0:I&4?-1:1)}),x}Ve.matches=function(C,N){return Ve(C,null,null,N)},Ve.matchesSelector=function(C,N){if(Er(C),T&&!Mt[N+" "]&&(!L||!L.test(N)))try{var W=z.call(C,N);if(W||U.disconnectedMatch||C.document&&C.document.nodeType!==11)return W}catch{Mt(N,!0)}return Ve(N,x,null,[C]).length>0},Ve.contains=function(C,N){return(C.ownerDocument||C)!=x&&Er(C),d.contains(C,N)},Ve.attr=function(C,N){(C.ownerDocument||C)!=x&&Er(C);var W=l.attrHandle[N.toLowerCase()],q=W&&F.call(l.attrHandle,N.toLowerCase())?W(C,N,!T):void 0;return q!==void 0?q:C.getAttribute(N)},Ve.error=function(C){throw new Error("Syntax error, unrecognized expression: "+C)},d.uniqueSort=function(C){var N,W=[],q=0,k=0;if(m=!U.sortStable,g=!U.sortStable&&c.call(C,0),Ue.call(C,gt),m){for(;N=C[k++];)N===C[k]&&(q=W.push(k));for(;q--;)Je.call(C,W[q],1)}return g=null,C},d.fn.uniqueSort=function(){return this.pushStack(d.uniqueSort(c.apply(this)))},l=d.expr={cacheLength:50,createPseudo:En,match:mn,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(C){return C[1]=C[1].replace(cr,Hn),C[3]=(C[3]||C[4]||C[5]||"").replace(cr,Hn),C[2]==="~="&&(C[3]=" "+C[3]+" "),C.slice(0,4)},CHILD:function(C){return C[1]=C[1].toLowerCase(),C[1].slice(0,3)==="nth"?(C[3]||Ve.error(C[0]),C[4]=+(C[4]?C[5]+(C[6]||1):2*(C[3]==="even"||C[3]==="odd")),C[5]=+(C[7]+C[8]||C[3]==="odd")):C[3]&&Ve.error(C[0]),C},PSEUDO:function(C){var N,W=!C[6]&&C[2];return mn.CHILD.test(C[0])?null:(C[3]?C[2]=C[4]||C[5]||"":W&&Dn.test(W)&&(N=Ri(W,!0))&&(N=W.indexOf(")",W.length-N)-W.length)&&(C[0]=C[0].slice(0,N),C[2]=W.slice(0,N)),C.slice(0,3))}},filter:{TAG:function(C){var N=C.replace(cr,Hn).toLowerCase();return C==="*"?function(){return!0}:function(W){return fe(W,N)}},CLASS:function(C){var N=ce[C+" "];return N||(N=new RegExp("(^|"+we+")"+C+"("+we+"|$)"))&&ce(C,function(W){return N.test(typeof W.className=="string"&&W.className||typeof W.getAttribute<"u"&&W.getAttribute("class")||"")})},ATTR:function(C,N,W){return function(q){var k=Ve.attr(q,C);return k==null?N==="!=":N?(k+="",N==="="?k===W:N==="!="?k!==W:N==="^="?W&&k.indexOf(W)===0:N==="*="?W&&k.indexOf(W)>-1:N==="$="?W&&k.slice(-W.length)===W:N==="~="?(" "+k.replace($e," ")+" ").indexOf(W)>-1:N==="|="?k===W||k.slice(0,W.length+1)===W+"-":!1):!0}},CHILD:function(C,N,W,q,k){var I=C.slice(0,3)!=="nth",O=C.slice(-4)!=="last",G=N==="of-type";return q===1&&k===0?function(Z){return!!Z.parentNode}:function(Z,he,pe){var ue,Me,xe,Pe,At,Ft=I!==O?"nextSibling":"previousSibling",Ot=Z.parentNode,an=G&&Z.nodeName.toLowerCase(),fr=!pe&&!G,De=!1;if(Ot){if(I){for(;Ft;){for(xe=Z;xe=xe[Ft];)if(G?fe(xe,an):xe.nodeType===1)return!1;At=Ft=C==="only"&&!At&&"nextSibling"}return!0}if(At=[O?Ot.firstChild:Ot.lastChild],O&&fr){for(Me=Ot[V]||(Ot[V]={}),ue=Me[C]||[],Pe=ue[0]===B&&ue[1],De=Pe&&ue[2],xe=Pe&&Ot.childNodes[Pe];xe=++Pe&&xe&&xe[Ft]||(De=Pe=0)||At.pop();)if(xe.nodeType===1&&++De&&xe===Z){Me[C]=[B,Pe,De];break}}else if(fr&&(Me=Z[V]||(Z[V]={}),ue=Me[C]||[],Pe=ue[0]===B&&ue[1],De=Pe),De===!1)for(;(xe=++Pe&&xe&&xe[Ft]||(De=Pe=0)||At.pop())&&!((G?fe(xe,an):xe.nodeType===1)&&++De&&(fr&&(Me=xe[V]||(xe[V]={}),Me[C]=[B,De]),xe===Z)););return De-=k,De===q||De%q===0&&De/q>=0}}},PSEUDO:function(C,N){var W,q=l.pseudos[C]||l.setFilters[C.toLowerCase()]||Ve.error("unsupported pseudo: "+C);return q[V]?q(N):q.length>1?(W=[C,C,"",N],l.setFilters.hasOwnProperty(C.toLowerCase())?En(function(k,I){for(var O,G=q(k,N),Z=G.length;Z--;)O=S.call(k,G[Z]),k[O]=!(I[O]=G[Z])}):function(k){return q(k,0,W)}):q}},pseudos:{not:En(function(C){var N=[],W=[],q=Ta(C.replace(ot,"$1"));return q[V]?En(function(k,I,O,G){for(var Z,he=q(k,null,G,[]),pe=k.length;pe--;)(Z=he[pe])&&(k[pe]=!(I[pe]=Z))}):function(k,I,O){return N[0]=k,q(N,null,O,W),N[0]=null,!W.pop()}}),has:En(function(C){return function(N){return Ve(C,N).length>0}}),contains:En(function(C){return C=C.replace(cr,Hn),function(N){return(N.textContent||d.text(N)).indexOf(C)>-1}}),lang:En(function(C){return Kr.test(C||"")||Ve.error("unsupported lang: "+C),C=C.replace(cr,Hn).toLowerCase(),function(N){var W;do if(W=T?N.lang:N.getAttribute("xml:lang")||N.getAttribute("lang"))return W=W.toLowerCase(),W===C||W.indexOf(C+"-")===0;while((N=N.parentNode)&&N.nodeType===1);return!1}}),target:function(C){var N=t.location&&t.location.hash;return N&&N.slice(1)===C.id},root:function(C){return C===M},focus:function(C){return C===Xi()&&x.hasFocus()&&!!(C.type||C.href||~C.tabIndex)},enabled:qo(!1),disabled:qo(!0),checked:function(C){return fe(C,"input")&&!!C.checked||fe(C,"option")&&!!C.selected},selected:function(C){return C.parentNode&&C.parentNode.selectedIndex,C.selected===!0},empty:function(C){for(C=C.firstChild;C;C=C.nextSibling)if(C.nodeType<6)return!1;return!0},parent:function(C){return!l.pseudos.empty(C)},header:function(C){return Dr.test(C.nodeName)},input:function(C){return lr.test(C.nodeName)},button:function(C){return fe(C,"input")&&C.type==="button"||fe(C,"button")},text:function(C){var N;return fe(C,"input")&&C.type==="text"&&((N=C.getAttribute("type"))==null||N.toLowerCase()==="text")},first:yn(function(){return[0]}),last:yn(function(C,N){return[N-1]}),eq:yn(function(C,N,W){return[W<0?W+N:W]}),even:yn(function(C,N){for(var W=0;W<N;W+=2)C.push(W);return C}),odd:yn(function(C,N){for(var W=1;W<N;W+=2)C.push(W);return C}),lt:yn(function(C,N,W){var q;for(W<0?q=W+N:W>N?q=N:q=W;--q>=0;)C.push(q);return C}),gt:yn(function(C,N,W){for(var q=W<0?W+N:W;++q<N;)C.push(q);return C})}},l.pseudos.nth=l.pseudos.eq;for(a in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})l.pseudos[a]=gc(a);for(a in{submit:!0,reset:!0})l.pseudos[a]=mc(a);function Rs(){}Rs.prototype=l.filters=l.pseudos,l.setFilters=new Rs;function Ri(C,N){var W,q,k,I,O,G,Z,he=Te[C+" "];if(he)return N?0:he.slice(0);for(O=C,G=[],Z=l.preFilter;O;){(!W||(q=tt.exec(O)))&&(q&&(O=O.slice(q[0].length)||O),G.push(k=[])),W=!1,(q=Ki.exec(O))&&(W=q.shift(),k.push({value:W,type:q[0].replace(ot," ")}),O=O.slice(W.length));for(I in l.filter)(q=mn[I].exec(O))&&(!Z[I]||(q=Z[I](q)))&&(W=q.shift(),k.push({value:W,type:I,matches:q}),O=O.slice(W.length));if(!W)break}return N?O.length:O?Ve.error(C):Te(C,G).slice(0)}function Tn(C){for(var N=0,W=C.length,q="";N<W;N++)q+=C[N].value;return q}function Zr(C,N,W){var q=N.dir,k=N.next,I=k||q,O=W&&I==="parentNode",G=te++;return N.first?function(Z,he,pe){for(;Z=Z[q];)if(Z.nodeType===1||O)return C(Z,he,pe);return!1}:function(Z,he,pe){var ue,Me,xe=[B,G];if(pe){for(;Z=Z[q];)if((Z.nodeType===1||O)&&C(Z,he,pe))return!0}else for(;Z=Z[q];)if(Z.nodeType===1||O)if(Me=Z[V]||(Z[V]={}),k&&fe(Z,k))Z=Z[q]||Z;else{if((ue=Me[I])&&ue[0]===B&&ue[1]===G)return xe[2]=ue[2];if(Me[I]=xe,xe[2]=C(Z,he,pe))return!0}return!1}}function Ea(C){return C.length>1?function(N,W,q){for(var k=C.length;k--;)if(!C[k](N,W,q))return!1;return!0}:C[0]}function yc(C,N,W){for(var q=0,k=N.length;q<k;q++)Ve(C,N[q],W);return W}function Ms(C,N,W,q,k){for(var I,O=[],G=0,Z=C.length,he=N!=null;G<Z;G++)(I=C[G])&&(!W||W(I,q,k))&&(O.push(I),he&&N.push(G));return O}function Tr(C,N,W,q,k,I){return q&&!q[V]&&(q=Tr(q)),k&&!k[V]&&(k=Tr(k,I)),En(function(O,G,Z,he){var pe,ue,Me,xe,Pe=[],At=[],Ft=G.length,Ot=O||yc(N||"*",Z.nodeType?[Z]:Z,[]),an=C&&(O||!N)?Ms(Ot,Pe,C,Z,he):Ot;if(W?(xe=k||(O?C:Ft||q)?[]:G,W(an,xe,Z,he)):xe=an,q)for(pe=Ms(xe,At),q(pe,[],Z,he),ue=pe.length;ue--;)(Me=pe[ue])&&(xe[At[ue]]=!(an[At[ue]]=Me));if(O){if(k||C){if(k){for(pe=[],ue=xe.length;ue--;)(Me=xe[ue])&&pe.push(an[ue]=Me);k(null,xe=[],pe,he)}for(ue=xe.length;ue--;)(Me=xe[ue])&&(pe=k?S.call(O,Me):Pe[ue])>-1&&(O[pe]=!(G[pe]=Me))}}else xe=Ms(xe===G?xe.splice(Ft,xe.length):xe),k?k(null,G,xe,he):y.apply(G,xe)})}function sn(C){for(var N,W,q,k=C.length,I=l.relative[C[0].type],O=I||l.relative[" "],G=I?1:0,Z=Zr(function(ue){return ue===N},O,!0),he=Zr(function(ue){return S.call(N,ue)>-1},O,!0),pe=[function(ue,Me,xe){var Pe=!I&&(xe||Me!=f)||((N=Me).nodeType?Z(ue,Me,xe):he(ue,Me,xe));return N=null,Pe}];G<k;G++)if(W=l.relative[C[G].type])pe=[Zr(Ea(pe),W)];else{if(W=l.filter[C[G].type].apply(null,C[G].matches),W[V]){for(q=++G;q<k&&!l.relative[C[q].type];q++);return Tr(G>1&&Ea(pe),G>1&&Tn(C.slice(0,G-1).concat({value:C[G-2].type===" "?"*":""})).replace(ot,"$1"),W,G<q&&sn(C.slice(G,q)),q<k&&sn(C=C.slice(q)),q<k&&Tn(C))}pe.push(W)}return Ea(pe)}function zo(C,N){var W=N.length>0,q=C.length>0,k=function(I,O,G,Z,he){var pe,ue,Me,xe=0,Pe="0",At=I&&[],Ft=[],Ot=f,an=I||q&&l.find.TAG("*",he),fr=B+=Ot==null?1:Math.random()||.1,De=an.length;for(he&&(f=O==x||O||he);Pe!==De&&(pe=an[Pe])!=null;Pe++){if(q&&pe){for(ue=0,!O&&pe.ownerDocument!=x&&(Er(pe),G=!T);Me=C[ue++];)if(Me(pe,O||x,G)){y.call(Z,pe);break}he&&(B=fr)}W&&((pe=!Me&&pe)&&xe--,I&&At.push(pe))}if(xe+=Pe,W&&Pe!==xe){for(ue=0;Me=N[ue++];)Me(At,Ft,O,G);if(I){if(xe>0)for(;Pe--;)At[Pe]||Ft[Pe]||(Ft[Pe]=at.call(Z));Ft=Ms(Ft)}y.apply(Z,Ft),he&&!I&&Ft.length>0&&xe+N.length>1&&d.uniqueSort(Z)}return he&&(B=fr,f=Ot),At};return W?En(k):k}function Ta(C,N){var W,q=[],k=[],I=Ee[C+" "];if(!I){for(N||(N=Ri(C)),W=N.length;W--;)I=sn(N[W]),I[V]?q.push(I):k.push(I);I=Ee(C,zo(k,q)),I.selector=C}return I}function Vo(C,N,W,q){var k,I,O,G,Z,he=typeof C=="function"&&C,pe=!q&&Ri(C=he.selector||C);if(W=W||[],pe.length===1){if(I=pe[0]=pe[0].slice(0),I.length>2&&(O=I[0]).type==="ID"&&N.nodeType===9&&T&&l.relative[I[1].type]){if(N=(l.find.ID(O.matches[0].replace(cr,Hn),N)||[])[0],N)he&&(N=N.parentNode);else return W;C=C.slice(I.shift().value.length)}for(k=mn.needsContext.test(C)?0:I.length;k--&&(O=I[k],!l.relative[G=O.type]);)if((Z=l.find[G])&&(q=Z(O.matches[0].replace(cr,Hn),Zi.test(I[0].type)&&Da(N.parentNode)||N))){if(I.splice(k,1),C=q.length&&Tn(I),!C)return y.apply(W,q),W;break}}return(he||Ta(C,pe))(q,N,!T,W,!N||Zi.test(C)&&Da(N.parentNode)||N),W}U.sortStable=V.split("").sort(gt).join("")===V,Er(),U.sortDetached=Ti(function(C){return C.compareDocumentPosition(x.createElement("fieldset"))&1}),d.find=Ve,d.expr[":"]=d.expr.pseudos,d.unique=d.uniqueSort,Ve.compile=Ta,Ve.select=Vo,Ve.setDocument=Er,Ve.tokenize=Ri,Ve.escape=d.escapeSelector,Ve.getText=d.text,Ve.isXML=d.isXMLDoc,Ve.selectors=d.expr,Ve.support=d.support,Ve.uniqueSort=d.uniqueSort})();var ft=function(a,l,f){for(var g=[],m=f!==void 0;(a=a[l])&&a.nodeType!==9;)if(a.nodeType===1){if(m&&d(a).is(f))break;g.push(a)}return g},Rt=function(a,l){for(var f=[];a;a=a.nextSibling)a.nodeType===1&&a!==l&&f.push(a);return f},Nt=d.expr.match.needsContext,_t=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function jn(a,l,f){return $(l)?d.grep(a,function(g,m){return!!l.call(g,m,g)!==f}):l.nodeType?d.grep(a,function(g){return g===l!==f}):typeof l!="string"?d.grep(a,function(g){return S.call(l,g)>-1!==f}):d.filter(l,a,f)}d.filter=function(a,l,f){var g=l[0];return f&&(a=":not("+a+")"),l.length===1&&g.nodeType===1?d.find.matchesSelector(g,a)?[g]:[]:d.find.matches(a,d.grep(l,function(m){return m.nodeType===1}))},d.fn.extend({find:function(a){var l,f,g=this.length,m=this;if(typeof a!="string")return this.pushStack(d(a).filter(function(){for(l=0;l<g;l++)if(d.contains(m[l],this))return!0}));for(f=this.pushStack([]),l=0;l<g;l++)d.find(a,m[l],f);return g>1?d.uniqueSort(f):f},filter:function(a){return this.pushStack(jn(this,a||[],!1))},not:function(a){return this.pushStack(jn(this,a||[],!0))},is:function(a){return!!jn(this,typeof a=="string"&&Nt.test(a)?d(a):a||[],!1).length}});var zt,Vt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,sr=d.fn.init=function(a,l,f){var g,m;if(!a)return this;if(f=f||zt,typeof a=="string")if(a[0]==="<"&&a[a.length-1]===">"&&a.length>=3?g=[null,a,null]:g=Vt.exec(a),g&&(g[1]||!l))if(g[1]){if(l=l instanceof d?l[0]:l,d.merge(this,d.parseHTML(g[1],l&&l.nodeType?l.ownerDocument||l:Y,!0)),_t.test(g[1])&&d.isPlainObject(l))for(g in l)$(this[g])?this[g](l[g]):this.attr(g,l[g]);return this}else return m=Y.getElementById(g[2]),m&&(this[0]=m,this.length=1),this;else return!l||l.jquery?(l||f).find(a):this.constructor(l).find(a);else{if(a.nodeType)return this[0]=a,this.length=1,this;if($(a))return f.ready!==void 0?f.ready(a):a(d)}return d.makeArray(a,this)};sr.prototype=d.fn,zt=d(Y);var Ui=/^(?:parents|prev(?:Until|All))/,Br={children:!0,contents:!0,next:!0,prev:!0};d.fn.extend({has:function(a){var l=d(a,this),f=l.length;return this.filter(function(){for(var g=0;g<f;g++)if(d.contains(this,l[g]))return!0})},closest:function(a,l){var f,g=0,m=this.length,y=[],x=typeof a!="string"&&d(a);if(!Nt.test(a)){for(;g<m;g++)for(f=this[g];f&&f!==l;f=f.parentNode)if(f.nodeType<11&&(x?x.index(f)>-1:f.nodeType===1&&d.find.matchesSelector(f,a))){y.push(f);break}}return this.pushStack(y.length>1?d.uniqueSort(y):y)},index:function(a){return a?typeof a=="string"?S.call(d(a),this[0]):S.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,l){return this.pushStack(d.uniqueSort(d.merge(this.get(),d(a,l))))},addBack:function(a){return this.add(a==null?this.prevObject:this.prevObject.filter(a))}});function Lt(a,l){for(;(a=a[l])&&a.nodeType!==1;);return a}d.each({parent:function(a){var l=a.parentNode;return l&&l.nodeType!==11?l:null},parents:function(a){return ft(a,"parentNode")},parentsUntil:function(a,l,f){return ft(a,"parentNode",f)},next:function(a){return Lt(a,"nextSibling")},prev:function(a){return Lt(a,"previousSibling")},nextAll:function(a){return ft(a,"nextSibling")},prevAll:function(a){return ft(a,"previousSibling")},nextUntil:function(a,l,f){return ft(a,"nextSibling",f)},prevUntil:function(a,l,f){return ft(a,"previousSibling",f)},siblings:function(a){return Rt((a.parentNode||{}).firstChild,a)},children:function(a){return Rt(a.firstChild)},contents:function(a){return a.contentDocument!=null&&o(a.contentDocument)?a.contentDocument:(fe(a,"template")&&(a=a.content||a),d.merge([],a.childNodes))}},function(a,l){d.fn[a]=function(f,g){var m=d.map(this,l,f);return a.slice(-5)!=="Until"&&(g=f),g&&typeof g=="string"&&(m=d.filter(g,m)),this.length>1&&(Br[a]||d.uniqueSort(m),Ui.test(a)&&m.reverse()),this.pushStack(m)}});var fn=/[^\x20\t\r\n\f]+/g;function vi(a){var l={};return d.each(a.match(fn)||[],function(f,g){l[g]=!0}),l}d.Callbacks=function(a){a=typeof a=="string"?vi(a):d.extend({},a);var l,f,g,m,y=[],x=[],M=-1,T=function(){for(m=m||a.once,g=l=!0;x.length;M=-1)for(f=x.shift();++M<y.length;)y[M].apply(f[0],f[1])===!1&&a.stopOnFalse&&(M=y.length,f=!1);a.memory||(f=!1),l=!1,m&&(f?y=[]:y="")},L={add:function(){return y&&(f&&!l&&(M=y.length-1,x.push(f)),function z(V){d.each(V,function(B,te){$(te)?(!a.unique||!L.has(te))&&y.push(te):te&&te.length&&ye(te)!=="string"&&z(te)})}(arguments),f&&!l&&T()),this},remove:function(){return d.each(arguments,function(z,V){for(var B;(B=d.inArray(V,y,B))>-1;)y.splice(B,1),B<=M&&M--}),this},has:function(z){return z?d.inArray(z,y)>-1:y.length>0},empty:function(){return y&&(y=[]),this},disable:function(){return m=x=[],y=f="",this},disabled:function(){return!y},lock:function(){return m=x=[],!f&&!l&&(y=f=""),this},locked:function(){return!!m},fireWith:function(z,V){return m||(V=V||[],V=[z,V.slice?V.slice():V],x.push(V),l||T()),this},fire:function(){return L.fireWith(this,arguments),this},fired:function(){return!!g}};return L};function kn(a){return a}function Hr(a){throw a}function Gt(a,l,f,g){var m;try{a&&$(m=a.promise)?m.call(a).done(l).fail(f):a&&$(m=a.then)?m.call(a,l,f):l.apply(void 0,[a].slice(g))}catch(y){f.apply(void 0,[y])}}d.extend({Deferred:function(a){var l=[["notify","progress",d.Callbacks("memory"),d.Callbacks("memory"),2],["resolve","done",d.Callbacks("once memory"),d.Callbacks("once memory"),0,"resolved"],["reject","fail",d.Callbacks("once memory"),d.Callbacks("once memory"),1,"rejected"]],f="pending",g={state:function(){return f},always:function(){return m.done(arguments).fail(arguments),this},catch:function(y){return g.then(null,y)},pipe:function(){var y=arguments;return d.Deferred(function(x){d.each(l,function(M,T){var L=$(y[T[4]])&&y[T[4]];m[T[1]](function(){var z=L&&L.apply(this,arguments);z&&$(z.promise)?z.promise().progress(x.notify).done(x.resolve).fail(x.reject):x[T[0]+"With"](this,L?[z]:arguments)})}),y=null}).promise()},then:function(y,x,M){var T=0;function L(z,V,B,te){return function(){var ce=this,Te=arguments,Ee=function(){var gt,Wn;if(!(z<T)){if(gt=B.apply(ce,Te),gt===V.promise())throw new TypeError("Thenable self-resolution");Wn=gt&&(typeof gt=="object"||typeof gt=="function")&>.then,$(Wn)?te?Wn.call(gt,L(T,V,kn,te),L(T,V,Hr,te)):(T++,Wn.call(gt,L(T,V,kn,te),L(T,V,Hr,te),L(T,V,kn,V.notifyWith))):(B!==kn&&(ce=void 0,Te=[gt]),(te||V.resolveWith)(ce,Te))}},Mt=te?Ee:function(){try{Ee()}catch(gt){d.Deferred.exceptionHook&&d.Deferred.exceptionHook(gt,Mt.error),z+1>=T&&(B!==Hr&&(ce=void 0,Te=[gt]),V.rejectWith(ce,Te))}};z?Mt():(d.Deferred.getErrorHook?Mt.error=d.Deferred.getErrorHook():d.Deferred.getStackHook&&(Mt.error=d.Deferred.getStackHook()),t.setTimeout(Mt))}}return d.Deferred(function(z){l[0][3].add(L(0,z,$(M)?M:kn,z.notifyWith)),l[1][3].add(L(0,z,$(y)?y:kn)),l[2][3].add(L(0,z,$(x)?x:Hr))}).promise()},promise:function(y){return y!=null?d.extend(y,g):g}},m={};return d.each(l,function(y,x){var M=x[2],T=x[5];g[x[1]]=M.add,T&&M.add(function(){f=T},l[3-y][2].disable,l[3-y][3].disable,l[0][2].lock,l[0][3].lock),M.add(x[3].fire),m[x[0]]=function(){return m[x[0]+"With"](this===m?void 0:this,arguments),this},m[x[0]+"With"]=M.fireWith}),g.promise(m),a&&a.call(m,m),m},when:function(a){var l=arguments.length,f=l,g=Array(f),m=c.call(arguments),y=d.Deferred(),x=function(M){return function(T){g[M]=this,m[M]=arguments.length>1?c.call(arguments):T,--l||y.resolveWith(g,m)}};if(l<=1&&(Gt(a,y.done(x(f)).resolve,y.reject,!l),y.state()==="pending"||$(m[f]&&m[f].then)))return y.then();for(;f--;)Gt(m[f],x(f),y.reject);return y.promise()}});var Ur=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;d.Deferred.exceptionHook=function(a,l){t.console&&t.console.warn&&a&&Ur.test(a.name)&&t.console.warn("jQuery.Deferred exception: "+a.message,a.stack,l)},d.readyException=function(a){t.setTimeout(function(){throw a})};var qi=d.Deferred();d.fn.ready=function(a){return qi.then(a).catch(function(l){d.readyException(l)}),this},d.extend({isReady:!1,readyWait:1,ready:function(a){(a===!0?--d.readyWait:d.isReady)||(d.isReady=!0,!(a!==!0&&--d.readyWait>0)&&qi.resolveWith(Y,[d]))}}),d.ready.then=qi.then;function Kt(){Y.removeEventListener("DOMContentLoaded",Kt),t.removeEventListener("load",Kt),d.ready()}Y.readyState==="complete"||Y.readyState!=="loading"&&!Y.documentElement.doScroll?t.setTimeout(d.ready):(Y.addEventListener("DOMContentLoaded",Kt),t.addEventListener("load",Kt));var dn=function(a,l,f,g,m,y,x){var M=0,T=a.length,L=f==null;if(ye(f)==="object"){m=!0;for(M in f)dn(a,l,M,f[M],!0,y,x)}else if(g!==void 0&&(m=!0,$(g)||(x=!0),L&&(x?(l.call(a,g),l=null):(L=l,l=function(z,V,B){return L.call(d(z),B)})),l))for(;M<T;M++)l(a[M],f,x?g:g.call(a[M],M,l(a[M],f)));return m?a:L?l.call(a):T?l(a[0],f):y},aa=/^-ms-/,ar=/-([a-z])/g;function Bt(a,l){return l.toUpperCase()}function jt(a){return a.replace(aa,"ms-").replace(ar,Bt)}var $n=function(a){return a.nodeType===1||a.nodeType===9||!+a.nodeType};function Fn(){this.expando=d.expando+Fn.uid++}Fn.uid=1,Fn.prototype={cache:function(a){var l=a[this.expando];return l||(l={},$n(a)&&(a.nodeType?a[this.expando]=l:Object.defineProperty(a,this.expando,{value:l,configurable:!0}))),l},set:function(a,l,f){var g,m=this.cache(a);if(typeof l=="string")m[jt(l)]=f;else for(g in l)m[jt(g)]=l[g];return m},get:function(a,l){return l===void 0?this.cache(a):a[this.expando]&&a[this.expando][jt(l)]},access:function(a,l,f){return l===void 0||l&&typeof l=="string"&&f===void 0?this.get(a,l):(this.set(a,l,f),f!==void 0?f:l)},remove:function(a,l){var f,g=a[this.expando];if(g!==void 0){if(l!==void 0)for(Array.isArray(l)?l=l.map(jt):(l=jt(l),l=l in g?[l]:l.match(fn)||[]),f=l.length;f--;)delete g[l[f]];(l===void 0||d.isEmptyObject(g))&&(a.nodeType?a[this.expando]=void 0:delete a[this.expando])}},hasData:function(a){var l=a[this.expando];return l!==void 0&&!d.isEmptyObject(l)}};var de=new Fn,$t=new Fn,br=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,xr=/[A-Z]/g;function Ce(a){return a==="true"?!0:a==="false"?!1:a==="null"?null:a===+a+""?+a:br.test(a)?JSON.parse(a):a}function qr(a,l,f){var g;if(f===void 0&&a.nodeType===1)if(g="data-"+l.replace(xr,"-$&").toLowerCase(),f=a.getAttribute(g),typeof f=="string"){try{f=Ce(f)}catch{}$t.set(a,l,f)}else f=void 0;return f}d.extend({hasData:function(a){return $t.hasData(a)||de.hasData(a)},data:function(a,l,f){return $t.access(a,l,f)},removeData:function(a,l){$t.remove(a,l)},_data:function(a,l,f){return de.access(a,l,f)},_removeData:function(a,l){de.remove(a,l)}}),d.fn.extend({data:function(a,l){var f,g,m,y=this[0],x=y&&y.attributes;if(a===void 0){if(this.length&&(m=$t.get(y),y.nodeType===1&&!de.get(y,"hasDataAttrs"))){for(f=x.length;f--;)x[f]&&(g=x[f].name,g.indexOf("data-")===0&&(g=jt(g.slice(5)),qr(y,g,m[g])));de.set(y,"hasDataAttrs",!0)}return m}return typeof a=="object"?this.each(function(){$t.set(this,a)}):dn(this,function(M){var T;if(y&&M===void 0)return T=$t.get(y,a),T!==void 0||(T=qr(y,a),T!==void 0)?T:void 0;this.each(function(){$t.set(this,a,M)})},null,l,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){$t.remove(this,a)})}}),d.extend({queue:function(a,l,f){var g;if(a)return l=(l||"fx")+"queue",g=de.get(a,l),f&&(!g||Array.isArray(f)?g=de.access(a,l,d.makeArray(f)):g.push(f)),g||[]},dequeue:function(a,l){l=l||"fx";var f=d.queue(a,l),g=f.length,m=f.shift(),y=d._queueHooks(a,l),x=function(){d.dequeue(a,l)};m==="inprogress"&&(m=f.shift(),g--),m&&(l==="fx"&&f.unshift("inprogress"),delete y.stop,m.call(a,x,y)),!g&&y&&y.empty.fire()},_queueHooks:function(a,l){var f=l+"queueHooks";return de.get(a,f)||de.access(a,f,{empty:d.Callbacks("once memory").add(function(){de.remove(a,[l+"queue",f])})})}}),d.fn.extend({queue:function(a,l){var f=2;return typeof a!="string"&&(l=a,a="fx",f--),arguments.length<f?d.queue(this[0],a):l===void 0?this:this.each(function(){var g=d.queue(this,a,l);d._queueHooks(this,a),a==="fx"&&g[0]!=="inprogress"&&d.dequeue(this,a)})},dequeue:function(a){return this.each(function(){d.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,l){var f,g=1,m=d.Deferred(),y=this,x=this.length,M=function(){--g||m.resolveWith(y,[y])};for(typeof a!="string"&&(l=a,a=void 0),a=a||"fx";x--;)f=de.get(y[x],a+"queueHooks"),f&&f.empty&&(g++,f.empty.add(M));return M(),m.promise(l)}});var bi=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Yn=new RegExp("^(?:([+-])=|)("+bi+")([a-z%]*)$","i"),hn=["Top","Right","Bottom","Left"],or=Y.documentElement,_r=function(a){return d.contains(a.ownerDocument,a)},oa={composed:!0};or.getRootNode&&(_r=function(a){return d.contains(a.ownerDocument,a)||a.getRootNode(oa)===a.ownerDocument});var xi=function(a,l){return a=l||a,a.style.display==="none"||a.style.display===""&&_r(a)&&d.css(a,"display")==="none"};function yo(a,l,f,g){var m,y,x=20,M=g?function(){return g.cur()}:function(){return d.css(a,l,"")},T=M(),L=f&&f[3]||(d.cssNumber[l]?"":"px"),z=a.nodeType&&(d.cssNumber[l]||L!=="px"&&+T)&&Yn.exec(d.css(a,l));if(z&&z[3]!==L){for(T=T/2,L=L||z[3],z=+T||1;x--;)d.style(a,l,z+L),(1-y)*(1-(y=M()/T||.5))<=0&&(x=0),z=z/y;z=z*2,d.style(a,l,z+L),f=f||[]}return f&&(z=+z||+T||0,m=f[1]?z+(f[1]+1)*f[2]:+f[2],g&&(g.unit=L,g.start=z,g.end=m)),m}var vo={};function Kl(a){var l,f=a.ownerDocument,g=a.nodeName,m=vo[g];return m||(l=f.body.appendChild(f.createElement(g)),m=d.css(l,"display"),l.parentNode.removeChild(l),m==="none"&&(m="block"),vo[g]=m,m)}function zr(a,l){for(var f,g,m=[],y=0,x=a.length;y<x;y++)g=a[y],g.style&&(f=g.style.display,l?(f==="none"&&(m[y]=de.get(g,"display")||null,m[y]||(g.style.display="")),g.style.display===""&&xi(g)&&(m[y]=Kl(g))):f!=="none"&&(m[y]="none",de.set(g,"display",f)));for(y=0;y<x;y++)m[y]!=null&&(a[y].style.display=m[y]);return a}d.fn.extend({show:function(){return zr(this,!0)},hide:function(){return zr(this)},toggle:function(a){return typeof a=="boolean"?a?this.show():this.hide():this.each(function(){xi(this)?d(this).show():d(this).hide()})}});var _i=/^(?:checkbox|radio)$/i,bo=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,xo=/^$|^module$|\/(?:java|ecma)script/i;(function(){var a=Y.createDocumentFragment(),l=a.appendChild(Y.createElement("div")),f=Y.createElement("input");f.setAttribute("type","radio"),f.setAttribute("checked","checked"),f.setAttribute("name","t"),l.appendChild(f),U.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,l.innerHTML="<textarea>x</textarea>",U.noCloneChecked=!!l.cloneNode(!0).lastChild.defaultValue,l.innerHTML="<option></option>",U.option=!!l.lastChild})();var pn={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};pn.tbody=pn.tfoot=pn.colgroup=pn.caption=pn.thead,pn.th=pn.td,U.option||(pn.optgroup=pn.option=[1,"<select multiple='multiple'>","</select>"]);function Zt(a,l){var f;return typeof a.getElementsByTagName<"u"?f=a.getElementsByTagName(l||"*"):typeof a.querySelectorAll<"u"?f=a.querySelectorAll(l||"*"):f=[],l===void 0||l&&fe(a,l)?d.merge([a],f):f}function xs(a,l){for(var f=0,g=a.length;f<g;f++)de.set(a[f],"globalEval",!l||de.get(l[f],"globalEval"))}var Zl=/<|&#?\w+;/;function _o(a,l,f,g,m){for(var y,x,M,T,L,z,V=l.createDocumentFragment(),B=[],te=0,ce=a.length;te<ce;te++)if(y=a[te],y||y===0)if(ye(y)==="object")d.merge(B,y.nodeType?[y]:y);else if(!Zl.test(y))B.push(l.createTextNode(y));else{for(x=x||V.appendChild(l.createElement("div")),M=(bo.exec(y)||["",""])[1].toLowerCase(),T=pn[M]||pn._default,x.innerHTML=T[1]+d.htmlPrefilter(y)+T[2],z=T[0];z--;)x=x.lastChild;d.merge(B,x.childNodes),x=V.firstChild,x.textContent=""}for(V.textContent="",te=0;y=B[te++];){if(g&&d.inArray(y,g)>-1){m&&m.push(y);continue}if(L=_r(y),x=Zt(V.appendChild(y),"script"),L&&xs(x),f)for(z=0;y=x[z++];)xo.test(y.type||"")&&f.push(y)}return V}var wo=/^([^.]*)(?:\.(.+)|)/;function wr(){return!0}function wi(){return!1}function zi(a,l,f,g,m,y){var x,M;if(typeof l=="object"){typeof f!="string"&&(g=g||f,f=void 0);for(M in l)zi(a,M,f,g,l[M],y);return a}if(g==null&&m==null?(m=f,g=f=void 0):m==null&&(typeof f=="string"?(m=g,g=void 0):(m=g,g=f,f=void 0)),m===!1)m=wi;else if(!m)return a;return y===1&&(x=m,m=function(T){return d().off(T),x.apply(this,arguments)},m.guid=x.guid||(x.guid=d.guid++)),a.each(function(){d.event.add(this,l,m,g,f)})}d.event={global:{},add:function(a,l,f,g,m){var y,x,M,T,L,z,V,B,te,ce,Te,Ee=de.get(a);if($n(a))for(f.handler&&(y=f,f=y.handler,m=y.selector),m&&d.find.matchesSelector(or,m),f.guid||(f.guid=d.guid++),(T=Ee.events)||(T=Ee.events=Object.create(null)),(x=Ee.handle)||(x=Ee.handle=function(Mt){return typeof d<"u"&&d.event.triggered!==Mt.type?d.event.dispatch.apply(a,arguments):void 0}),l=(l||"").match(fn)||[""],L=l.length;L--;)M=wo.exec(l[L])||[],te=Te=M[1],ce=(M[2]||"").split(".").sort(),te&&(V=d.event.special[te]||{},te=(m?V.delegateType:V.bindType)||te,V=d.event.special[te]||{},z=d.extend({type:te,origType:Te,data:g,handler:f,guid:f.guid,selector:m,needsContext:m&&d.expr.match.needsContext.test(m),namespace:ce.join(".")},y),(B=T[te])||(B=T[te]=[],B.delegateCount=0,(!V.setup||V.setup.call(a,g,ce,x)===!1)&&a.addEventListener&&a.addEventListener(te,x)),V.add&&(V.add.call(a,z),z.handler.guid||(z.handler.guid=f.guid)),m?B.splice(B.delegateCount++,0,z):B.push(z),d.event.global[te]=!0)},remove:function(a,l,f,g,m){var y,x,M,T,L,z,V,B,te,ce,Te,Ee=de.hasData(a)&&de.get(a);if(!(!Ee||!(T=Ee.events))){for(l=(l||"").match(fn)||[""],L=l.length;L--;){if(M=wo.exec(l[L])||[],te=Te=M[1],ce=(M[2]||"").split(".").sort(),!te){for(te in T)d.event.remove(a,te+l[L],f,g,!0);continue}for(V=d.event.special[te]||{},te=(g?V.delegateType:V.bindType)||te,B=T[te]||[],M=M[2]&&new RegExp("(^|\\.)"+ce.join("\\.(?:.*\\.|)")+"(\\.|$)"),x=y=B.length;y--;)z=B[y],(m||Te===z.origType)&&(!f||f.guid===z.guid)&&(!M||M.test(z.namespace))&&(!g||g===z.selector||g==="**"&&z.selector)&&(B.splice(y,1),z.selector&&B.delegateCount--,V.remove&&V.remove.call(a,z));x&&!B.length&&((!V.teardown||V.teardown.call(a,ce,Ee.handle)===!1)&&d.removeEvent(a,te,Ee.handle),delete T[te])}d.isEmptyObject(T)&&de.remove(a,"handle events")}},dispatch:function(a){var l,f,g,m,y,x,M=new Array(arguments.length),T=d.event.fix(a),L=(de.get(this,"events")||Object.create(null))[T.type]||[],z=d.event.special[T.type]||{};for(M[0]=T,l=1;l<arguments.length;l++)M[l]=arguments[l];if(T.delegateTarget=this,!(z.preDispatch&&z.preDispatch.call(this,T)===!1)){for(x=d.event.handlers.call(this,T,L),l=0;(m=x[l++])&&!T.isPropagationStopped();)for(T.currentTarget=m.elem,f=0;(y=m.handlers[f++])&&!T.isImmediatePropagationStopped();)(!T.rnamespace||y.namespace===!1||T.rnamespace.test(y.namespace))&&(T.handleObj=y,T.data=y.data,g=((d.event.special[y.origType]||{}).handle||y.handler).apply(m.elem,M),g!==void 0&&(T.result=g)===!1&&(T.preventDefault(),T.stopPropagation()));return z.postDispatch&&z.postDispatch.call(this,T),T.result}},handlers:function(a,l){var f,g,m,y,x,M=[],T=l.delegateCount,L=a.target;if(T&&L.nodeType&&!(a.type==="click"&&a.button>=1)){for(;L!==this;L=L.parentNode||this)if(L.nodeType===1&&!(a.type==="click"&&L.disabled===!0)){for(y=[],x={},f=0;f<T;f++)g=l[f],m=g.selector+" ",x[m]===void 0&&(x[m]=g.needsContext?d(m,this).index(L)>-1:d.find(m,this,null,[L]).length),x[m]&&y.push(g);y.length&&M.push({elem:L,handlers:y})}}return L=this,T<l.length&&M.push({elem:L,handlers:l.slice(T)}),M},addProp:function(a,l){Object.defineProperty(d.Event.prototype,a,{enumerable:!0,configurable:!0,get:$(l)?function(){if(this.originalEvent)return l(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[a]},set:function(f){Object.defineProperty(this,a,{enumerable:!0,configurable:!0,writable:!0,value:f})}})},fix:function(a){return a[d.expando]?a:new d.Event(a)},special:{load:{noBubble:!0},click:{setup:function(a){var l=this||a;return _i.test(l.type)&&l.click&&fe(l,"input")&&_s(l,"click",!0),!1},trigger:function(a){var l=this||a;return _i.test(l.type)&&l.click&&fe(l,"input")&&_s(l,"click"),!0},_default:function(a){var l=a.target;return _i.test(l.type)&&l.click&&fe(l,"input")&&de.get(l,"click")||fe(l,"a")}},beforeunload:{postDispatch:function(a){a.result!==void 0&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}}};function _s(a,l,f){if(!f){de.get(a,l)===void 0&&d.event.add(a,l,wr);return}de.set(a,l,!1),d.event.add(a,l,{namespace:!1,handler:function(g){var m,y=de.get(this,l);if(g.isTrigger&1&&this[l]){if(y)(d.event.special[l]||{}).delegateType&&g.stopPropagation();else if(y=c.call(arguments),de.set(this,l,y),this[l](),m=de.get(this,l),de.set(this,l,!1),y!==m)return g.stopImmediatePropagation(),g.preventDefault(),m}else y&&(de.set(this,l,d.event.trigger(y[0],y.slice(1),this)),g.stopPropagation(),g.isImmediatePropagationStopped=wr)}})}d.removeEvent=function(a,l,f){a.removeEventListener&&a.removeEventListener(l,f)},d.Event=function(a,l){if(!(this instanceof d.Event))return new d.Event(a,l);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.defaultPrevented===void 0&&a.returnValue===!1?wr:wi,this.target=a.target&&a.target.nodeType===3?a.target.parentNode:a.target,this.currentTarget=a.currentTarget,this.relatedTarget=a.relatedTarget):this.type=a,l&&d.extend(this,l),this.timeStamp=a&&a.timeStamp||Date.now(),this[d.expando]=!0},d.Event.prototype={constructor:d.Event,isDefaultPrevented:wi,isPropagationStopped:wi,isImmediatePropagationStopped:wi,isSimulated:!1,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=wr,a&&!this.isSimulated&&a.preventDefault()},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=wr,a&&!this.isSimulated&&a.stopPropagation()},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=wr,a&&!this.isSimulated&&a.stopImmediatePropagation(),this.stopPropagation()}},d.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},d.event.addProp),d.each({focus:"focusin",blur:"focusout"},function(a,l){function f(g){if(Y.documentMode){var m=de.get(this,"handle"),y=d.event.fix(g);y.type=g.type==="focusin"?"focus":"blur",y.isSimulated=!0,m(g),y.target===y.currentTarget&&m(y)}else d.event.simulate(l,g.target,d.event.fix(g))}d.event.special[a]={setup:function(){var g;if(_s(this,a,!0),Y.documentMode)g=de.get(this,l),g||this.addEventListener(l,f),de.set(this,l,(g||0)+1);else return!1},trigger:function(){return _s(this,a),!0},teardown:function(){var g;if(Y.documentMode)g=de.get(this,l)-1,g?de.set(this,l,g):(this.removeEventListener(l,f),de.remove(this,l));else return!1},_default:function(g){return de.get(g.target,a)},delegateType:l},d.event.special[l]={setup:function(){var g=this.ownerDocument||this.document||this,m=Y.documentMode?this:g,y=de.get(m,l);y||(Y.documentMode?this.addEventListener(l,f):g.addEventListener(a,f,!0)),de.set(m,l,(y||0)+1)},teardown:function(){var g=this.ownerDocument||this.document||this,m=Y.documentMode?this:g,y=de.get(m,l)-1;y?de.set(m,l,y):(Y.documentMode?this.removeEventListener(l,f):g.removeEventListener(a,f,!0),de.remove(m,l))}}}),d.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,l){d.event.special[a]={delegateType:l,bindType:l,handle:function(f){var g,m=this,y=f.relatedTarget,x=f.handleObj;return(!y||y!==m&&!d.contains(m,y))&&(f.type=x.origType,g=x.handler.apply(this,arguments),f.type=l),g}}}),d.fn.extend({on:function(a,l,f,g){return zi(this,a,l,f,g)},one:function(a,l,f,g){return zi(this,a,l,f,g,1)},off:function(a,l,f){var g,m;if(a&&a.preventDefault&&a.handleObj)return g=a.handleObj,d(a.delegateTarget).off(g.namespace?g.origType+"."+g.namespace:g.origType,g.selector,g.handler),this;if(typeof a=="object"){for(m in a)this.off(m,l,a[m]);return this}return(l===!1||typeof l=="function")&&(f=l,l=void 0),f===!1&&(f=wi),this.each(function(){d.event.remove(this,a,f,l)})}});var Xl=/<script|<style|<link/i,Jl=/checked\s*(?:[^=]|=\s*.checked.)/i,Ql=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function So(a,l){return fe(a,"table")&&fe(l.nodeType!==11?l:l.firstChild,"tr")&&d(a).children("tbody")[0]||a}function ec(a){return a.type=(a.getAttribute("type")!==null)+"/"+a.type,a}function tc(a){return(a.type||"").slice(0,5)==="true/"?a.type=a.type.slice(5):a.removeAttribute("type"),a}function ko(a,l){var f,g,m,y,x,M,T;if(l.nodeType===1){if(de.hasData(a)&&(y=de.get(a),T=y.events,T)){de.remove(l,"handle events");for(m in T)for(f=0,g=T[m].length;f<g;f++)d.event.add(l,m,T[m][f])}$t.hasData(a)&&(x=$t.access(a),M=d.extend({},x),$t.set(l,M))}}function Co(a,l){var f=l.nodeName.toLowerCase();f==="input"&&_i.test(a.type)?l.checked=a.checked:(f==="input"||f==="textarea")&&(l.defaultValue=a.defaultValue)}function Si(a,l,f,g){l=h(l);var m,y,x,M,T,L,z=0,V=a.length,B=V-1,te=l[0],ce=$(te);if(ce||V>1&&typeof te=="string"&&!U.checkClone&&Jl.test(te))return a.each(function(Te){var Ee=a.eq(Te);ce&&(l[0]=te.call(this,Te,Ee.html())),Si(Ee,l,f,g)});if(V&&(m=_o(l,a[0].ownerDocument,!1,a,g),y=m.firstChild,m.childNodes.length===1&&(m=y),y||g)){for(x=d.map(Zt(m,"script"),ec),M=x.length;z<V;z++)T=m,z!==B&&(T=d.clone(T,!0,!0),M&&d.merge(x,Zt(T,"script"))),f.call(a[z],T,z);if(M)for(L=x[x.length-1].ownerDocument,d.map(x,tc),z=0;z<M;z++)T=x[z],xo.test(T.type||"")&&!de.access(T,"globalEval")&&d.contains(L,T)&&(T.src&&(T.type||"").toLowerCase()!=="module"?d._evalUrl&&!T.noModule&&d._evalUrl(T.src,{nonce:T.nonce||T.getAttribute("nonce")},L):ge(T.textContent.replace(Ql,""),T,L))}return a}function Do(a,l,f){for(var g,m=l?d.filter(l,a):a,y=0;(g=m[y])!=null;y++)!f&&g.nodeType===1&&d.cleanData(Zt(g)),g.parentNode&&(f&&_r(g)&&xs(Zt(g,"script")),g.parentNode.removeChild(g));return a}d.extend({htmlPrefilter:function(a){return a},clone:function(a,l,f){var g,m,y,x,M=a.cloneNode(!0),T=_r(a);if(!U.noCloneChecked&&(a.nodeType===1||a.nodeType===11)&&!d.isXMLDoc(a))for(x=Zt(M),y=Zt(a),g=0,m=y.length;g<m;g++)Co(y[g],x[g]);if(l)if(f)for(y=y||Zt(a),x=x||Zt(M),g=0,m=y.length;g<m;g++)ko(y[g],x[g]);else ko(a,M);return x=Zt(M,"script"),x.length>0&&xs(x,!T&&Zt(a,"script")),M},cleanData:function(a){for(var l,f,g,m=d.event.special,y=0;(f=a[y])!==void 0;y++)if($n(f)){if(l=f[de.expando]){if(l.events)for(g in l.events)m[g]?d.event.remove(f,g):d.removeEvent(f,g,l.handle);f[de.expando]=void 0}f[$t.expando]&&(f[$t.expando]=void 0)}}}),d.fn.extend({detach:function(a){return Do(this,a,!0)},remove:function(a){return Do(this,a)},text:function(a){return dn(this,function(l){return l===void 0?d.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=l)})},null,a,arguments.length)},append:function(){return Si(this,arguments,function(a){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var l=So(this,a);l.appendChild(a)}})},prepend:function(){return Si(this,arguments,function(a){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var l=So(this,a);l.insertBefore(a,l.firstChild)}})},before:function(){return Si(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return Si(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,l=0;(a=this[l])!=null;l++)a.nodeType===1&&(d.cleanData(Zt(a,!1)),a.textContent="");return this},clone:function(a,l){return a=a??!1,l=l??a,this.map(function(){return d.clone(this,a,l)})},html:function(a){return dn(this,function(l){var f=this[0]||{},g=0,m=this.length;if(l===void 0&&f.nodeType===1)return f.innerHTML;if(typeof l=="string"&&!Xl.test(l)&&!pn[(bo.exec(l)||["",""])[1].toLowerCase()]){l=d.htmlPrefilter(l);try{for(;g<m;g++)f=this[g]||{},f.nodeType===1&&(d.cleanData(Zt(f,!1)),f.innerHTML=l);f=0}catch{}}f&&this.empty().append(l)},null,a,arguments.length)},replaceWith:function(){var a=[];return Si(this,arguments,function(l){var f=this.parentNode;d.inArray(this,a)<0&&(d.cleanData(Zt(this)),f&&f.replaceChild(l,this))},a)}}),d.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,l){d.fn[a]=function(f){for(var g,m=[],y=d(f),x=y.length-1,M=0;M<=x;M++)g=M===x?this:this.clone(!0),d(y[M])[l](g),b.apply(m,g.get());return this.pushStack(m)}});var ua=new RegExp("^("+bi+")(?!px)[a-z%]+$","i"),la=/^--/,ws=function(a){var l=a.ownerDocument.defaultView;return(!l||!l.opener)&&(l=t),l.getComputedStyle(a)},Eo=function(a,l,f){var g,m,y={};for(m in l)y[m]=a.style[m],a.style[m]=l[m];g=f.call(a);for(m in l)a.style[m]=y[m];return g},Ss=new RegExp(hn.join("|"),"i");(function(){function a(){if(L){T.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",L.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",or.appendChild(T).appendChild(L);var z=t.getComputedStyle(L);f=z.top!=="1%",M=l(z.marginLeft)===12,L.style.right="60%",y=l(z.right)===36,g=l(z.width)===36,L.style.position="absolute",m=l(L.offsetWidth/3)===12,or.removeChild(T),L=null}}function l(z){return Math.round(parseFloat(z))}var f,g,m,y,x,M,T=Y.createElement("div"),L=Y.createElement("div");L.style&&(L.style.backgroundClip="content-box",L.cloneNode(!0).style.backgroundClip="",U.clearCloneStyle=L.style.backgroundClip==="content-box",d.extend(U,{boxSizingReliable:function(){return a(),g},pixelBoxStyles:function(){return a(),y},pixelPosition:function(){return a(),f},reliableMarginLeft:function(){return a(),M},scrollboxSize:function(){return a(),m},reliableTrDimensions:function(){var z,V,B,te;return x==null&&(z=Y.createElement("table"),V=Y.createElement("tr"),B=Y.createElement("div"),z.style.cssText="position:absolute;left:-11111px;border-collapse:separate",V.style.cssText="box-sizing:content-box;border:1px solid",V.style.height="1px",B.style.height="9px",B.style.display="block",or.appendChild(z).appendChild(V).appendChild(B),te=t.getComputedStyle(V),x=parseInt(te.height,10)+parseInt(te.borderTopWidth,10)+parseInt(te.borderBottomWidth,10)===V.offsetHeight,or.removeChild(z)),x}}))})();function Vi(a,l,f){var g,m,y,x,M=la.test(l),T=a.style;return f=f||ws(a),f&&(x=f.getPropertyValue(l)||f[l],M&&x&&(x=x.replace(ot,"$1")||void 0),x===""&&!_r(a)&&(x=d.style(a,l)),!U.pixelBoxStyles()&&ua.test(x)&&Ss.test(l)&&(g=T.width,m=T.minWidth,y=T.maxWidth,T.minWidth=T.maxWidth=T.width=x,x=f.width,T.width=g,T.minWidth=m,T.maxWidth=y)),x!==void 0?x+"":x}function Gi(a,l){return{get:function(){if(a()){delete this.get;return}return(this.get=l).apply(this,arguments)}}}var To=["Webkit","Moz","ms"],Ro=Y.createElement("div").style,Mo={};function Ao(a){for(var l=a[0].toUpperCase()+a.slice(1),f=To.length;f--;)if(a=To[f]+l,a in Ro)return a}function ks(a){var l=d.cssProps[a]||Mo[a];return l||(a in Ro?a:Mo[a]=Ao(a)||a)}var Oo=/^(none|table(?!-c[ea]).+)/,nc={position:"absolute",visibility:"hidden",display:"block"},Io={letterSpacing:"0",fontWeight:"400"};function Po(a,l,f){var g=Yn.exec(l);return g?Math.max(0,g[2]-(f||0))+(g[3]||"px"):l}function ca(a,l,f,g,m,y){var x=l==="width"?1:0,M=0,T=0,L=0;if(f===(g?"border":"content"))return 0;for(;x<4;x+=2)f==="margin"&&(L+=d.css(a,f+hn[x],!0,m)),g?(f==="content"&&(T-=d.css(a,"padding"+hn[x],!0,m)),f!=="margin"&&(T-=d.css(a,"border"+hn[x]+"Width",!0,m))):(T+=d.css(a,"padding"+hn[x],!0,m),f!=="padding"?T+=d.css(a,"border"+hn[x]+"Width",!0,m):M+=d.css(a,"border"+hn[x]+"Width",!0,m));return!g&&y>=0&&(T+=Math.max(0,Math.ceil(a["offset"+l[0].toUpperCase()+l.slice(1)]-y-T-M-.5))||0),T+L}function fa(a,l,f){var g=ws(a),m=!U.boxSizingReliable()||f,y=m&&d.css(a,"boxSizing",!1,g)==="border-box",x=y,M=Vi(a,l,g),T="offset"+l[0].toUpperCase()+l.slice(1);if(ua.test(M)){if(!f)return M;M="auto"}return(!U.boxSizingReliable()&&y||!U.reliableTrDimensions()&&fe(a,"tr")||M==="auto"||!parseFloat(M)&&d.css(a,"display",!1,g)==="inline")&&a.getClientRects().length&&(y=d.css(a,"boxSizing",!1,g)==="border-box",x=T in a,x&&(M=a[T])),M=parseFloat(M)||0,M+ca(a,l,f||(y?"border":"content"),x,g,M)+"px"}d.extend({cssHooks:{opacity:{get:function(a,l){if(l){var f=Vi(a,"opacity");return f===""?"1":f}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(a,l,f,g){if(!(!a||a.nodeType===3||a.nodeType===8||!a.style)){var m,y,x,M=jt(l),T=la.test(l),L=a.style;if(T||(l=ks(M)),x=d.cssHooks[l]||d.cssHooks[M],f!==void 0){if(y=typeof f,y==="string"&&(m=Yn.exec(f))&&m[1]&&(f=yo(a,l,m),y="number"),f==null||f!==f)return;y==="number"&&!T&&(f+=m&&m[3]||(d.cssNumber[M]?"":"px")),!U.clearCloneStyle&&f===""&&l.indexOf("background")===0&&(L[l]="inherit"),(!x||!("set"in x)||(f=x.set(a,f,g))!==void 0)&&(T?L.setProperty(l,f):L[l]=f)}else return x&&"get"in x&&(m=x.get(a,!1,g))!==void 0?m:L[l]}},css:function(a,l,f,g){var m,y,x,M=jt(l),T=la.test(l);return T||(l=ks(M)),x=d.cssHooks[l]||d.cssHooks[M],x&&"get"in x&&(m=x.get(a,!0,f)),m===void 0&&(m=Vi(a,l,g)),m==="normal"&&l in Io&&(m=Io[l]),f===""||f?(y=parseFloat(m),f===!0||isFinite(y)?y||0:m):m}}),d.each(["height","width"],function(a,l){d.cssHooks[l]={get:function(f,g,m){if(g)return Oo.test(d.css(f,"display"))&&(!f.getClientRects().length||!f.getBoundingClientRect().width)?Eo(f,nc,function(){return fa(f,l,m)}):fa(f,l,m)},set:function(f,g,m){var y,x=ws(f),M=!U.scrollboxSize()&&x.position==="absolute",T=M||m,L=T&&d.css(f,"boxSizing",!1,x)==="border-box",z=m?ca(f,l,m,L,x):0;return L&&M&&(z-=Math.ceil(f["offset"+l[0].toUpperCase()+l.slice(1)]-parseFloat(x[l])-ca(f,l,"border",!1,x)-.5)),z&&(y=Yn.exec(g))&&(y[3]||"px")!=="px"&&(f.style[l]=g,g=d.css(f,l)),Po(f,g,z)}}}),d.cssHooks.marginLeft=Gi(U.reliableMarginLeft,function(a,l){if(l)return(parseFloat(Vi(a,"marginLeft"))||a.getBoundingClientRect().left-Eo(a,{marginLeft:0},function(){return a.getBoundingClientRect().left}))+"px"}),d.each({margin:"",padding:"",border:"Width"},function(a,l){d.cssHooks[a+l]={expand:function(f){for(var g=0,m={},y=typeof f=="string"?f.split(" "):[f];g<4;g++)m[a+hn[g]+l]=y[g]||y[g-2]||y[0];return m}},a!=="margin"&&(d.cssHooks[a+l].set=Po)}),d.fn.extend({css:function(a,l){return dn(this,function(f,g,m){var y,x,M={},T=0;if(Array.isArray(g)){for(y=ws(f),x=g.length;T<x;T++)M[g[T]]=d.css(f,g[T],!1,y);return M}return m!==void 0?d.style(f,g,m):d.css(f,g)},a,l,arguments.length>1)}});function Ht(a,l,f,g,m){return new Ht.prototype.init(a,l,f,g,m)}d.Tween=Ht,Ht.prototype={constructor:Ht,init:function(a,l,f,g,m,y){this.elem=a,this.prop=f,this.easing=m||d.easing._default,this.options=l,this.start=this.now=this.cur(),this.end=g,this.unit=y||(d.cssNumber[f]?"":"px")},cur:function(){var a=Ht.propHooks[this.prop];return a&&a.get?a.get(this):Ht.propHooks._default.get(this)},run:function(a){var l,f=Ht.propHooks[this.prop];return this.options.duration?this.pos=l=d.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=l=a,this.now=(this.end-this.start)*l+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),f&&f.set?f.set(this):Ht.propHooks._default.set(this),this}},Ht.prototype.init.prototype=Ht.prototype,Ht.propHooks={_default:{get:function(a){var l;return a.elem.nodeType!==1||a.elem[a.prop]!=null&&a.elem.style[a.prop]==null?a.elem[a.prop]:(l=d.css(a.elem,a.prop,""),!l||l==="auto"?0:l)},set:function(a){d.fx.step[a.prop]?d.fx.step[a.prop](a):a.elem.nodeType===1&&(d.cssHooks[a.prop]||a.elem.style[ks(a.prop)]!=null)?d.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},Ht.propHooks.scrollTop=Ht.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},d.easing={linear:function(a){return a},swing:function(a){return .5-Math.cos(a*Math.PI)/2},_default:"swing"},d.fx=Ht.prototype.init,d.fx.step={};var Vr,ki,rc=/^(?:toggle|show|hide)$/,No=/queueHooks$/;function Ci(){ki&&(Y.hidden===!1&&t.requestAnimationFrame?t.requestAnimationFrame(Ci):t.setTimeout(Ci,d.fx.interval),d.fx.tick())}function da(){return t.setTimeout(function(){Vr=void 0}),Vr=Date.now()}function Cs(a,l){var f,g=0,m={height:a};for(l=l?1:0;g<4;g+=2-l)f=hn[g],m["margin"+f]=m["padding"+f]=a;return l&&(m.opacity=m.width=a),m}function ha(a,l,f){for(var g,m=(Cn.tweeners[l]||[]).concat(Cn.tweeners["*"]),y=0,x=m.length;y<x;y++)if(g=m[y].call(f,l,a))return g}function Lo(a,l,f){var g,m,y,x,M,T,L,z,V="width"in l||"height"in l,B=this,te={},ce=a.style,Te=a.nodeType&&xi(a),Ee=de.get(a,"fxshow");f.queue||(x=d._queueHooks(a,"fx"),x.unqueued==null&&(x.unqueued=0,M=x.empty.fire,x.empty.fire=function(){x.unqueued||M()}),x.unqueued++,B.always(function(){B.always(function(){x.unqueued--,d.queue(a,"fx").length||x.empty.fire()})}));for(g in l)if(m=l[g],rc.test(m)){if(delete l[g],y=y||m==="toggle",m===(Te?"hide":"show"))if(m==="show"&&Ee&&Ee[g]!==void 0)Te=!0;else continue;te[g]=Ee&&Ee[g]||d.style(a,g)}if(T=!d.isEmptyObject(l),!(!T&&d.isEmptyObject(te))){V&&a.nodeType===1&&(f.overflow=[ce.overflow,ce.overflowX,ce.overflowY],L=Ee&&Ee.display,L==null&&(L=de.get(a,"display")),z=d.css(a,"display"),z==="none"&&(L?z=L:(zr([a],!0),L=a.style.display||L,z=d.css(a,"display"),zr([a]))),(z==="inline"||z==="inline-block"&&L!=null)&&d.css(a,"float")==="none"&&(T||(B.done(function(){ce.display=L}),L==null&&(z=ce.display,L=z==="none"?"":z)),ce.display="inline-block")),f.overflow&&(ce.overflow="hidden",B.always(function(){ce.overflow=f.overflow[0],ce.overflowX=f.overflow[1],ce.overflowY=f.overflow[2]})),T=!1;for(g in te)T||(Ee?"hidden"in Ee&&(Te=Ee.hidden):Ee=de.access(a,"fxshow",{display:L}),y&&(Ee.hidden=!Te),Te&&zr([a],!0),B.done(function(){Te||zr([a]),de.remove(a,"fxshow");for(g in te)d.style(a,g,te[g])})),T=ha(Te?Ee[g]:0,g,B),g in Ee||(Ee[g]=T.start,Te&&(T.end=T.start,T.start=0))}}function pa(a,l){var f,g,m,y,x;for(f in a)if(g=jt(f),m=l[g],y=a[f],Array.isArray(y)&&(m=y[1],y=a[f]=y[0]),f!==g&&(a[g]=y,delete a[f]),x=d.cssHooks[g],x&&"expand"in x){y=x.expand(y),delete a[g];for(f in y)f in a||(a[f]=y[f],l[f]=m)}else l[g]=m}function Cn(a,l,f){var g,m,y=0,x=Cn.prefilters.length,M=d.Deferred().always(function(){delete T.elem}),T=function(){if(m)return!1;for(var V=Vr||da(),B=Math.max(0,L.startTime+L.duration-V),te=B/L.duration||0,ce=1-te,Te=0,Ee=L.tweens.length;Te<Ee;Te++)L.tweens[Te].run(ce);return M.notifyWith(a,[L,ce,B]),ce<1&&Ee?B:(Ee||M.notifyWith(a,[L,1,0]),M.resolveWith(a,[L]),!1)},L=M.promise({elem:a,props:d.extend({},l),opts:d.extend(!0,{specialEasing:{},easing:d.easing._default},f),originalProperties:l,originalOptions:f,startTime:Vr||da(),duration:f.duration,tweens:[],createTween:function(V,B){var te=d.Tween(a,L.opts,V,B,L.opts.specialEasing[V]||L.opts.easing);return L.tweens.push(te),te},stop:function(V){var B=0,te=V?L.tweens.length:0;if(m)return this;for(m=!0;B<te;B++)L.tweens[B].run(1);return V?(M.notifyWith(a,[L,1,0]),M.resolveWith(a,[L,V])):M.rejectWith(a,[L,V]),this}}),z=L.props;for(pa(z,L.opts.specialEasing);y<x;y++)if(g=Cn.prefilters[y].call(L,a,z,L.opts),g)return $(g.stop)&&(d._queueHooks(L.elem,L.opts.queue).stop=g.stop.bind(g)),g;return d.map(z,ha,L),$(L.opts.start)&&L.opts.start.call(a,L),L.progress(L.opts.progress).done(L.opts.done,L.opts.complete).fail(L.opts.fail).always(L.opts.always),d.fx.timer(d.extend(T,{elem:a,anim:L,queue:L.opts.queue})),L}d.Animation=d.extend(Cn,{tweeners:{"*":[function(a,l){var f=this.createTween(a,l);return yo(f.elem,a,Yn.exec(l),f),f}]},tweener:function(a,l){$(a)?(l=a,a=["*"]):a=a.match(fn);for(var f,g=0,m=a.length;g<m;g++)f=a[g],Cn.tweeners[f]=Cn.tweeners[f]||[],Cn.tweeners[f].unshift(l)},prefilters:[Lo],prefilter:function(a,l){l?Cn.prefilters.unshift(a):Cn.prefilters.push(a)}}),d.speed=function(a,l,f){var g=a&&typeof a=="object"?d.extend({},a):{complete:f||!f&&l||$(a)&&a,duration:a,easing:f&&l||l&&!$(l)&&l};return d.fx.off?g.duration=0:typeof g.duration!="number"&&(g.duration in d.fx.speeds?g.duration=d.fx.speeds[g.duration]:g.duration=d.fx.speeds._default),(g.queue==null||g.queue===!0)&&(g.queue="fx"),g.old=g.complete,g.complete=function(){$(g.old)&&g.old.call(this),g.queue&&d.dequeue(this,g.queue)},g},d.fn.extend({fadeTo:function(a,l,f,g){return this.filter(xi).css("opacity",0).show().end().animate({opacity:l},a,f,g)},animate:function(a,l,f,g){var m=d.isEmptyObject(a),y=d.speed(l,f,g),x=function(){var M=Cn(this,d.extend({},a),y);(m||de.get(this,"finish"))&&M.stop(!0)};return x.finish=x,m||y.queue===!1?this.each(x):this.queue(y.queue,x)},stop:function(a,l,f){var g=function(m){var y=m.stop;delete m.stop,y(f)};return typeof a!="string"&&(f=l,l=a,a=void 0),l&&this.queue(a||"fx",[]),this.each(function(){var m=!0,y=a!=null&&a+"queueHooks",x=d.timers,M=de.get(this);if(y)M[y]&&M[y].stop&&g(M[y]);else for(y in M)M[y]&&M[y].stop&&No.test(y)&&g(M[y]);for(y=x.length;y--;)x[y].elem===this&&(a==null||x[y].queue===a)&&(x[y].anim.stop(f),m=!1,x.splice(y,1));(m||!f)&&d.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var l,f=de.get(this),g=f[a+"queue"],m=f[a+"queueHooks"],y=d.timers,x=g?g.length:0;for(f.finish=!0,d.queue(this,a,[]),m&&m.stop&&m.stop.call(this,!0),l=y.length;l--;)y[l].elem===this&&y[l].queue===a&&(y[l].anim.stop(!0),y.splice(l,1));for(l=0;l<x;l++)g[l]&&g[l].finish&&g[l].finish.call(this);delete f.finish})}}),d.each(["toggle","show","hide"],function(a,l){var f=d.fn[l];d.fn[l]=function(g,m,y){return g==null||typeof g=="boolean"?f.apply(this,arguments):this.animate(Cs(l,!0),g,m,y)}}),d.each({slideDown:Cs("show"),slideUp:Cs("hide"),slideToggle:Cs("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,l){d.fn[a]=function(f,g,m){return this.animate(l,f,g,m)}}),d.timers=[],d.fx.tick=function(){var a,l=0,f=d.timers;for(Vr=Date.now();l<f.length;l++)a=f[l],!a()&&f[l]===a&&f.splice(l--,1);f.length||d.fx.stop(),Vr=void 0},d.fx.timer=function(a){d.timers.push(a),d.fx.start()},d.fx.interval=13,d.fx.start=function(){ki||(ki=!0,Ci())},d.fx.stop=function(){ki=null},d.fx.speeds={slow:600,fast:200,_default:400},d.fn.delay=function(a,l){return a=d.fx&&d.fx.speeds[a]||a,l=l||"fx",this.queue(l,function(f,g){var m=t.setTimeout(f,a);g.stop=function(){t.clearTimeout(m)}})},function(){var a=Y.createElement("input"),l=Y.createElement("select"),f=l.appendChild(Y.createElement("option"));a.type="checkbox",U.checkOn=a.value!=="",U.optSelected=f.selected,a=Y.createElement("input"),a.value="t",a.type="radio",U.radioValue=a.value==="t"}();var ga,Gr=d.expr.attrHandle;d.fn.extend({attr:function(a,l){return dn(this,d.attr,a,l,arguments.length>1)},removeAttr:function(a){return this.each(function(){d.removeAttr(this,a)})}}),d.extend({attr:function(a,l,f){var g,m,y=a.nodeType;if(!(y===3||y===8||y===2)){if(typeof a.getAttribute>"u")return d.prop(a,l,f);if((y!==1||!d.isXMLDoc(a))&&(m=d.attrHooks[l.toLowerCase()]||(d.expr.match.bool.test(l)?ga:void 0)),f!==void 0){if(f===null){d.removeAttr(a,l);return}return m&&"set"in m&&(g=m.set(a,f,l))!==void 0?g:(a.setAttribute(l,f+""),f)}return m&&"get"in m&&(g=m.get(a,l))!==null?g:(g=d.find.attr(a,l),g??void 0)}},attrHooks:{type:{set:function(a,l){if(!U.radioValue&&l==="radio"&&fe(a,"input")){var f=a.value;return a.setAttribute("type",l),f&&(a.value=f),l}}}},removeAttr:function(a,l){var f,g=0,m=l&&l.match(fn);if(m&&a.nodeType===1)for(;f=m[g++];)a.removeAttribute(f)}}),ga={set:function(a,l,f){return l===!1?d.removeAttr(a,f):a.setAttribute(f,f),f}},d.each(d.expr.match.bool.source.match(/\w+/g),function(a,l){var f=Gr[l]||d.find.attr;Gr[l]=function(g,m,y){var x,M,T=m.toLowerCase();return y||(M=Gr[T],Gr[T]=x,x=f(g,m,y)!=null?T:null,Gr[T]=M),x}});var ma=/^(?:input|select|textarea|button)$/i,Di=/^(?:a|area)$/i;d.fn.extend({prop:function(a,l){return dn(this,d.prop,a,l,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[d.propFix[a]||a]})}}),d.extend({prop:function(a,l,f){var g,m,y=a.nodeType;if(!(y===3||y===8||y===2))return(y!==1||!d.isXMLDoc(a))&&(l=d.propFix[l]||l,m=d.propHooks[l]),f!==void 0?m&&"set"in m&&(g=m.set(a,f,l))!==void 0?g:a[l]=f:m&&"get"in m&&(g=m.get(a,l))!==null?g:a[l]},propHooks:{tabIndex:{get:function(a){var l=d.find.attr(a,"tabindex");return l?parseInt(l,10):ma.test(a.nodeName)||Di.test(a.nodeName)&&a.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),U.optSelected||(d.propHooks.selected={get:function(a){var l=a.parentNode;return l&&l.parentNode&&l.parentNode.selectedIndex,null},set:function(a){var l=a.parentNode;l&&(l.selectedIndex,l.parentNode&&l.parentNode.selectedIndex)}}),d.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){d.propFix[this.toLowerCase()]=this});function Sr(a){var l=a.match(fn)||[];return l.join(" ")}function kr(a){return a.getAttribute&&a.getAttribute("class")||""}function ya(a){return Array.isArray(a)?a:typeof a=="string"?a.match(fn)||[]:[]}d.fn.extend({addClass:function(a){var l,f,g,m,y,x;return $(a)?this.each(function(M){d(this).addClass(a.call(this,M,kr(this)))}):(l=ya(a),l.length?this.each(function(){if(g=kr(this),f=this.nodeType===1&&" "+Sr(g)+" ",f){for(y=0;y<l.length;y++)m=l[y],f.indexOf(" "+m+" ")<0&&(f+=m+" ");x=Sr(f),g!==x&&this.setAttribute("class",x)}}):this)},removeClass:function(a){var l,f,g,m,y,x;return $(a)?this.each(function(M){d(this).removeClass(a.call(this,M,kr(this)))}):arguments.length?(l=ya(a),l.length?this.each(function(){if(g=kr(this),f=this.nodeType===1&&" "+Sr(g)+" ",f){for(y=0;y<l.length;y++)for(m=l[y];f.indexOf(" "+m+" ")>-1;)f=f.replace(" "+m+" "," ");x=Sr(f),g!==x&&this.setAttribute("class",x)}}):this):this.attr("class","")},toggleClass:function(a,l){var f,g,m,y,x=typeof a,M=x==="string"||Array.isArray(a);return $(a)?this.each(function(T){d(this).toggleClass(a.call(this,T,kr(this),l),l)}):typeof l=="boolean"&&M?l?this.addClass(a):this.removeClass(a):(f=ya(a),this.each(function(){if(M)for(y=d(this),m=0;m<f.length;m++)g=f[m],y.hasClass(g)?y.removeClass(g):y.addClass(g);else(a===void 0||x==="boolean")&&(g=kr(this),g&&de.set(this,"__className__",g),this.setAttribute&&this.setAttribute("class",g||a===!1?"":de.get(this,"__className__")||""))}))},hasClass:function(a){var l,f,g=0;for(l=" "+a+" ";f=this[g++];)if(f.nodeType===1&&(" "+Sr(kr(f))+" ").indexOf(l)>-1)return!0;return!1}});var jo=/\r/g;d.fn.extend({val:function(a){var l,f,g,m=this[0];return arguments.length?(g=$(a),this.each(function(y){var x;this.nodeType===1&&(g?x=a.call(this,y,d(this).val()):x=a,x==null?x="":typeof x=="number"?x+="":Array.isArray(x)&&(x=d.map(x,function(M){return M==null?"":M+""})),l=d.valHooks[this.type]||d.valHooks[this.nodeName.toLowerCase()],(!l||!("set"in l)||l.set(this,x,"value")===void 0)&&(this.value=x))})):m?(l=d.valHooks[m.type]||d.valHooks[m.nodeName.toLowerCase()],l&&"get"in l&&(f=l.get(m,"value"))!==void 0?f:(f=m.value,typeof f=="string"?f.replace(jo,""):f??"")):void 0}}),d.extend({valHooks:{option:{get:function(a){var l=d.find.attr(a,"value");return l??Sr(d.text(a))}},select:{get:function(a){var l,f,g,m=a.options,y=a.selectedIndex,x=a.type==="select-one",M=x?null:[],T=x?y+1:m.length;for(y<0?g=T:g=x?y:0;g<T;g++)if(f=m[g],(f.selected||g===y)&&!f.disabled&&(!f.parentNode.disabled||!fe(f.parentNode,"optgroup"))){if(l=d(f).val(),x)return l;M.push(l)}return M},set:function(a,l){for(var f,g,m=a.options,y=d.makeArray(l),x=m.length;x--;)g=m[x],(g.selected=d.inArray(d.valHooks.option.get(g),y)>-1)&&(f=!0);return f||(a.selectedIndex=-1),y}}}}),d.each(["radio","checkbox"],function(){d.valHooks[this]={set:function(a,l){if(Array.isArray(l))return a.checked=d.inArray(d(a).val(),l)>-1}},U.checkOn||(d.valHooks[this].get=function(a){return a.getAttribute("value")===null?"on":a.value})});var Ei=t.location,va={guid:Date.now()},Ds=/\?/;d.parseXML=function(a){var l,f;if(!a||typeof a!="string")return null;try{l=new t.DOMParser().parseFromString(a,"text/xml")}catch{}return f=l&&l.getElementsByTagName("parsererror")[0],(!l||f)&&d.error("Invalid XML: "+(f?d.map(f.childNodes,function(g){return g.textContent}).join(`
|
|
171
171
|
`):a)),l};var $o=/^(?:focusinfocus|focusoutblur)$/,Fo=function(a){a.stopPropagation()};d.extend(d.event,{trigger:function(a,l,f,g){var m,y,x,M,T,L,z,V,B=[f||Y],te=F.call(a,"type")?a.type:a,ce=F.call(a,"namespace")?a.namespace.split("."):[];if(y=V=x=f=f||Y,!(f.nodeType===3||f.nodeType===8)&&!$o.test(te+d.event.triggered)&&(te.indexOf(".")>-1&&(ce=te.split("."),te=ce.shift(),ce.sort()),T=te.indexOf(":")<0&&"on"+te,a=a[d.expando]?a:new d.Event(te,typeof a=="object"&&a),a.isTrigger=g?2:3,a.namespace=ce.join("."),a.rnamespace=a.namespace?new RegExp("(^|\\.)"+ce.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,a.result=void 0,a.target||(a.target=f),l=l==null?[a]:d.makeArray(l,[a]),z=d.event.special[te]||{},!(!g&&z.trigger&&z.trigger.apply(f,l)===!1))){if(!g&&!z.noBubble&&!ee(f)){for(M=z.delegateType||te,$o.test(M+te)||(y=y.parentNode);y;y=y.parentNode)B.push(y),x=y;x===(f.ownerDocument||Y)&&B.push(x.defaultView||x.parentWindow||t)}for(m=0;(y=B[m++])&&!a.isPropagationStopped();)V=y,a.type=m>1?M:z.bindType||te,L=(de.get(y,"events")||Object.create(null))[a.type]&&de.get(y,"handle"),L&&L.apply(y,l),L=T&&y[T],L&&L.apply&&$n(y)&&(a.result=L.apply(y,l),a.result===!1&&a.preventDefault());return a.type=te,!g&&!a.isDefaultPrevented()&&(!z._default||z._default.apply(B.pop(),l)===!1)&&$n(f)&&T&&$(f[te])&&!ee(f)&&(x=f[T],x&&(f[T]=null),d.event.triggered=te,a.isPropagationStopped()&&V.addEventListener(te,Fo),f[te](),a.isPropagationStopped()&&V.removeEventListener(te,Fo),d.event.triggered=void 0,x&&(f[T]=x)),a.result}},simulate:function(a,l,f){var g=d.extend(new d.Event,f,{type:a,isSimulated:!0});d.event.trigger(g,null,l)}}),d.fn.extend({trigger:function(a,l){return this.each(function(){d.event.trigger(a,l,this)})},triggerHandler:function(a,l){var f=this[0];if(f)return d.event.trigger(a,l,f,!0)}});var ic=/\[\]$/,ba=/\r?\n/g,sc=/^(?:submit|button|image|reset|file)$/i,ac=/^(?:input|select|textarea|keygen)/i;function xa(a,l,f,g){var m;if(Array.isArray(l))d.each(l,function(y,x){f||ic.test(a)?g(a,x):xa(a+"["+(typeof x=="object"&&x!=null?y:"")+"]",x,f,g)});else if(!f&&ye(l)==="object")for(m in l)xa(a+"["+m+"]",l[m],f,g);else g(a,l)}d.param=function(a,l){var f,g=[],m=function(y,x){var M=$(x)?x():x;g[g.length]=encodeURIComponent(y)+"="+encodeURIComponent(M??"")};if(a==null)return"";if(Array.isArray(a)||a.jquery&&!d.isPlainObject(a))d.each(a,function(){m(this.name,this.value)});else for(f in a)xa(f,a[f],l,m);return g.join("&")},d.fn.extend({serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=d.prop(this,"elements");return a?d.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!d(this).is(":disabled")&&ac.test(this.nodeName)&&!sc.test(a)&&(this.checked||!_i.test(a))}).map(function(a,l){var f=d(this).val();return f==null?null:Array.isArray(f)?d.map(f,function(g){return{name:l.name,value:g.replace(ba,`\r
|
|
172
172
|
`)}}):{name:l.name,value:f.replace(ba,`\r
|
|
173
|
-
`)}}).get()}});var oc=/%20/g,_a=/#.*$/,uc=/([?&])_=[^&]*/,lc=/^(.*?):[ \t]*([^\r\n]*)$/mg,cc=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,fc=/^(?:GET|HEAD)$/,dc=/^\/\//,it={},Qe={},Yo="*/".concat("*"),wa=Y.createElement("a");wa.href=Ei.href;function Wo(a){return function(l,f){typeof l!="string"&&(f=l,l="*");var g,m=0,y=l.toLowerCase().match(fn)||[];if($(f))for(;g=y[m++];)g[0]==="+"?(g=g.slice(1)||"*",(a[g]=a[g]||[]).unshift(f)):(a[g]=a[g]||[]).push(f)}}function Bo(a,l,f,g){var m={},y=a===Qe;function x(M){var T;return m[M]=!0,d.each(a[M]||[],function(L,z){var V=z(l,f,g);if(typeof V=="string"&&!y&&!m[V])return l.dataTypes.unshift(V),x(V),!1;if(y)return!(T=V)}),T}return x(l.dataTypes[0])||!m["*"]&&x("*")}function Sa(a,l){var f,g,m=d.ajaxSettings.flatOptions||{};for(f in l)l[f]!==void 0&&((m[f]?a:g||(g={}))[f]=l[f]);return g&&d.extend(!0,a,g),a}function hc(a,l,f){for(var g,m,y,x,M=a.contents,T=a.dataTypes;T[0]==="*";)T.shift(),g===void 0&&(g=a.mimeType||l.getResponseHeader("Content-Type"));if(g){for(m in M)if(M[m]&&M[m].test(g)){T.unshift(m);break}}if(T[0]in f)y=T[0];else{for(m in f){if(!T[0]||a.converters[m+" "+T[0]]){y=m;break}x||(x=m)}y=y||x}if(y)return y!==T[0]&&T.unshift(y),f[y]}function Ho(a,l,f,g){var m,y,x,M,T,L={},z=a.dataTypes.slice();if(z[1])for(x in a.converters)L[x.toLowerCase()]=a.converters[x];for(y=z.shift();y;)if(a.responseFields[y]&&(f[a.responseFields[y]]=l),!T&&g&&a.dataFilter&&(l=a.dataFilter(l,a.dataType)),T=y,y=z.shift(),y){if(y==="*")y=T;else if(T!=="*"&&T!==y){if(x=L[T+" "+y]||L["* "+y],!x){for(m in L)if(M=m.split(" "),M[1]===y&&(x=L[T+" "+M[0]]||L["* "+M[0]],x)){x===!0?x=L[m]:L[m]!==!0&&(y=M[0],z.unshift(M[1]));break}}if(x!==!0)if(x&&a.throws)l=x(l);else try{l=x(l)}catch(V){return{state:"parsererror",error:x?V:"No conversion from "+T+" to "+y}}}}return{state:"success",data:l}}d.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ei.href,type:"GET",isLocal:cc.test(Ei.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Yo,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":d.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,l){return l?Sa(Sa(a,d.ajaxSettings),l):Sa(d.ajaxSettings,a)},ajaxPrefilter:Wo(it),ajaxTransport:Wo(Qe),ajax:function(a,l){typeof a=="object"&&(l=a,a=void 0),l=l||{};var f,g,m,y,x,M,T,L,z,V,B=d.ajaxSetup({},l),te=B.context||B,ce=B.context&&(te.nodeType||te.jquery)?d(te):d.event,Te=d.Deferred(),Ee=d.Callbacks("once memory"),Mt=B.statusCode||{},gt={},Wn={},Bn="canceled",je={readyState:0,getResponseHeader:function($e){var tt;if(T){if(!y)for(y={};tt=lc.exec(m);)y[tt[1].toLowerCase()+" "]=(y[tt[1].toLowerCase()+" "]||[]).concat(tt[2]);tt=y[$e.toLowerCase()+" "]}return tt==null?null:tt.join(", ")},getAllResponseHeaders:function(){return T?m:null},setRequestHeader:function($e,tt){return T==null&&($e=Wn[$e.toLowerCase()]=Wn[$e.toLowerCase()]||$e,gt[$e]=tt),this},overrideMimeType:function($e){return T==null&&(B.mimeType=$e),this},statusCode:function($e){var tt;if($e)if(T)je.always($e[je.status]);else for(tt in $e)Mt[tt]=[Mt[tt],$e[tt]];return this},abort:function($e){var tt=$e||Bn;return f&&f.abort(tt),Cr(0,tt),this}};if(Te.promise(je),B.url=((a||B.url||Ei.href)+"").replace(dc,Ei.protocol+"//"),B.type=l.method||l.type||B.method||B.type,B.dataTypes=(B.dataType||"*").toLowerCase().match(fn)||[""],B.crossDomain==null){M=Y.createElement("a");try{M.href=B.url,M.href=M.href,B.crossDomain=wa.protocol+"//"+wa.host!=M.protocol+"//"+M.host}catch{B.crossDomain=!0}}if(B.data&&B.processData&&typeof B.data!="string"&&(B.data=d.param(B.data,B.traditional)),Bo(it,B,l,je),T)return je;L=d.event&&B.global,L&&d.active++===0&&d.event.trigger("ajaxStart"),B.type=B.type.toUpperCase(),B.hasContent=!fc.test(B.type),g=B.url.replace(_a,""),B.hasContent?B.data&&B.processData&&(B.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(B.data=B.data.replace(oc,"+")):(V=B.url.slice(g.length),B.data&&(B.processData||typeof B.data=="string")&&(g+=(Ds.test(g)?"&":"?")+B.data,delete B.data),B.cache===!1&&(g=g.replace(uc,"$1"),V=(Ds.test(g)?"&":"?")+"_="+va.guid+++V),B.url=g+V),B.ifModified&&(d.lastModified[g]&&je.setRequestHeader("If-Modified-Since",d.lastModified[g]),d.etag[g]&&je.setRequestHeader("If-None-Match",d.etag[g])),(B.data&&B.hasContent&&B.contentType!==!1||l.contentType)&&je.setRequestHeader("Content-Type",B.contentType),je.setRequestHeader("Accept",B.dataTypes[0]&&B.accepts[B.dataTypes[0]]?B.accepts[B.dataTypes[0]]+(B.dataTypes[0]!=="*"?", "+Yo+"; q=0.01":""):B.accepts["*"]);for(z in B.headers)je.setRequestHeader(z,B.headers[z]);if(B.beforeSend&&(B.beforeSend.call(te,je,B)===!1||T))return je.abort();if(Bn="abort",Ee.add(B.complete),je.done(B.success),je.fail(B.error),f=Bo(Qe,B,l,je),!f)Cr(-1,"No Transport");else{if(je.readyState=1,L&&ce.trigger("ajaxSend",[je,B]),T)return je;B.async&&B.timeout>0&&(x=t.setTimeout(function(){je.abort("timeout")},B.timeout));try{T=!1,f.send(gt,Cr)}catch($e){if(T)throw $e;Cr(-1,$e)}}function Cr($e,tt,Ki,Ts){var Dn,Kr,mn,lr,Dr,Xt=tt;T||(T=!0,x&&t.clearTimeout(x),f=void 0,m=Ts||"",je.readyState=$e>0?4:0,Dn=$e>=200&&$e<300||$e===304,Ki&&(lr=hc(B,je,Ki)),!Dn&&d.inArray("script",B.dataTypes)>-1&&d.inArray("json",B.dataTypes)<0&&(B.converters["text script"]=function(){}),lr=Ho(B,lr,je,Dn),Dn?(B.ifModified&&(Dr=je.getResponseHeader("Last-Modified"),Dr&&(d.lastModified[g]=Dr),Dr=je.getResponseHeader("etag"),Dr&&(d.etag[g]=Dr)),$e===204||B.type==="HEAD"?Xt="nocontent":$e===304?Xt="notmodified":(Xt=lr.state,Kr=lr.data,mn=lr.error,Dn=!mn)):(mn=Xt,($e||!Xt)&&(Xt="error",$e<0&&($e=0))),je.status=$e,je.statusText=(tt||Xt)+"",Dn?Te.resolveWith(te,[Kr,Xt,je]):Te.rejectWith(te,[je,Xt,mn]),je.statusCode(Mt),Mt=void 0,L&&ce.trigger(Dn?"ajaxSuccess":"ajaxError",[je,B,Dn?Kr:mn]),Ee.fireWith(te,[je,Xt]),L&&(ce.trigger("ajaxComplete",[je,B]),--d.active||d.event.trigger("ajaxStop")))}return je},getJSON:function(a,l,f){return d.get(a,l,f,"json")},getScript:function(a,l){return d.get(a,void 0,l,"script")}}),d.each(["get","post"],function(a,l){d[l]=function(f,g,m,y){return $(g)&&(y=y||m,m=g,g=void 0),d.ajax(d.extend({url:f,type:l,dataType:y,data:g,success:m},d.isPlainObject(f)&&f))}}),d.ajaxPrefilter(function(a){var l;for(l in a.headers)l.toLowerCase()==="content-type"&&(a.contentType=a.headers[l]||"")}),d._evalUrl=function(a,l,f){return d.ajax({url:a,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(g){d.globalEval(g,l,f)}})},d.fn.extend({wrapAll:function(a){var l;return this[0]&&($(a)&&(a=a.call(this[0])),l=d(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&l.insertBefore(this[0]),l.map(function(){for(var f=this;f.firstElementChild;)f=f.firstElementChild;return f}).append(this)),this},wrapInner:function(a){return $(a)?this.each(function(l){d(this).wrapInner(a.call(this,l))}):this.each(function(){var l=d(this),f=l.contents();f.length?f.wrapAll(a):l.append(a)})},wrap:function(a){var l=$(a);return this.each(function(f){d(this).wrapAll(l?a.call(this,f):a)})},unwrap:function(a){return this.parent(a).not("body").each(function(){d(this).replaceWith(this.childNodes)}),this}}),d.expr.pseudos.hidden=function(a){return!d.expr.pseudos.visible(a)},d.expr.pseudos.visible=function(a){return!!(a.offsetWidth||a.offsetHeight||a.getClientRects().length)},d.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch{}};var pc={0:200,1223:204},pt=d.ajaxSettings.xhr();U.cors=!!pt&&"withCredentials"in pt,U.ajax=pt=!!pt,d.ajaxTransport(function(a){var l,f;if(U.cors||pt&&!a.crossDomain)return{send:function(g,m){var y,x=a.xhr();if(x.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(y in a.xhrFields)x[y]=a.xhrFields[y];a.mimeType&&x.overrideMimeType&&x.overrideMimeType(a.mimeType),!a.crossDomain&&!g["X-Requested-With"]&&(g["X-Requested-With"]="XMLHttpRequest");for(y in g)x.setRequestHeader(y,g[y]);l=function(M){return function(){l&&(l=f=x.onload=x.onerror=x.onabort=x.ontimeout=x.onreadystatechange=null,M==="abort"?x.abort():M==="error"?typeof x.status!="number"?m(0,"error"):m(x.status,x.statusText):m(pc[x.status]||x.status,x.statusText,(x.responseType||"text")!=="text"||typeof x.responseText!="string"?{binary:x.response}:{text:x.responseText},x.getAllResponseHeaders()))}},x.onload=l(),f=x.onerror=x.ontimeout=l("error"),x.onabort!==void 0?x.onabort=f:x.onreadystatechange=function(){x.readyState===4&&t.setTimeout(function(){l&&f()})},l=l("abort");try{x.send(a.hasContent&&a.data||null)}catch(M){if(l)throw M}},abort:function(){l&&l()}}}),d.ajaxPrefilter(function(a){a.crossDomain&&(a.contents.script=!1)}),d.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return d.globalEval(a),a}}}),d.ajaxPrefilter("script",function(a){a.cache===void 0&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),d.ajaxTransport("script",function(a){if(a.crossDomain||a.scriptAttrs){var l,f;return{send:function(g,m){l=d("<script>").attr(a.scriptAttrs||{}).prop({charset:a.scriptCharset,src:a.url}).on("load error",f=function(y){l.remove(),f=null,y&&m(y.type==="error"?404:200,y.type)}),Y.head.appendChild(l[0])},abort:function(){f&&f()}}}});var Es=[],ur=/(=)\?(?=&|$)|\?\?/;d.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Es.pop()||d.expando+"_"+va.guid++;return this[a]=!0,a}}),d.ajaxPrefilter("json jsonp",function(a,l,f){var g,m,y,x=a.jsonp!==!1&&(ur.test(a.url)?"url":typeof a.data=="string"&&(a.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&ur.test(a.data)&&"data");if(x||a.dataTypes[0]==="jsonp")return g=a.jsonpCallback=$(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback,x?a[x]=a[x].replace(ur,"$1"+g):a.jsonp!==!1&&(a.url+=(Ds.test(a.url)?"&":"?")+a.jsonp+"="+g),a.converters["script json"]=function(){return y||d.error(g+" was not called"),y[0]},a.dataTypes[0]="json",m=t[g],t[g]=function(){y=arguments},f.always(function(){m===void 0?d(t).removeProp(g):t[g]=m,a[g]&&(a.jsonpCallback=l.jsonpCallback,Es.push(g)),y&&$(m)&&m(y[0]),y=m=void 0}),"script"}),U.createHTMLDocument=function(){var a=Y.implementation.createHTMLDocument("").body;return a.innerHTML="<form></form><form></form>",a.childNodes.length===2}(),d.parseHTML=function(a,l,f){if(typeof a!="string")return[];typeof l=="boolean"&&(f=l,l=!1);var g,m,y;return l||(U.createHTMLDocument?(l=Y.implementation.createHTMLDocument(""),g=l.createElement("base"),g.href=Y.location.href,l.head.appendChild(g)):l=Y),m=_t.exec(a),y=!f&&[],m?[l.createElement(m[1])]:(m=_o([a],l,y),y&&y.length&&d(y).remove(),d.merge([],m.childNodes))},d.fn.load=function(a,l,f){var g,m,y,x=this,M=a.indexOf(" ");return M>-1&&(g=Sr(a.slice(M)),a=a.slice(0,M)),$(l)?(f=l,l=void 0):l&&typeof l=="object"&&(m="POST"),x.length>0&&d.ajax({url:a,type:m||"GET",dataType:"html",data:l}).done(function(T){y=arguments,x.html(g?d("<div>").append(d.parseHTML(T)).find(g):T)}).always(f&&function(T,L){x.each(function(){f.apply(this,y||[T.responseText,L,T])})}),this},d.expr.pseudos.animated=function(a){return d.grep(d.timers,function(l){return a===l.elem}).length},d.offset={setOffset:function(a,l,f){var g,m,y,x,M,T,L,z=d.css(a,"position"),V=d(a),B={};z==="static"&&(a.style.position="relative"),M=V.offset(),y=d.css(a,"top"),T=d.css(a,"left"),L=(z==="absolute"||z==="fixed")&&(y+T).indexOf("auto")>-1,L?(g=V.position(),x=g.top,m=g.left):(x=parseFloat(y)||0,m=parseFloat(T)||0),$(l)&&(l=l.call(a,f,d.extend({},M))),l.top!=null&&(B.top=l.top-M.top+x),l.left!=null&&(B.left=l.left-M.left+m),"using"in l?l.using.call(a,B):V.css(B)}},d.fn.extend({offset:function(a){if(arguments.length)return a===void 0?this:this.each(function(m){d.offset.setOffset(this,a,m)});var l,f,g=this[0];if(g)return g.getClientRects().length?(l=g.getBoundingClientRect(),f=g.ownerDocument.defaultView,{top:l.top+f.pageYOffset,left:l.left+f.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var a,l,f,g=this[0],m={top:0,left:0};if(d.css(g,"position")==="fixed")l=g.getBoundingClientRect();else{for(l=this.offset(),f=g.ownerDocument,a=g.offsetParent||f.documentElement;a&&(a===f.body||a===f.documentElement)&&d.css(a,"position")==="static";)a=a.parentNode;a&&a!==g&&a.nodeType===1&&(m=d(a).offset(),m.top+=d.css(a,"borderTopWidth",!0),m.left+=d.css(a,"borderLeftWidth",!0))}return{top:l.top-m.top-d.css(g,"marginTop",!0),left:l.left-m.left-d.css(g,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent;a&&d.css(a,"position")==="static";)a=a.offsetParent;return a||or})}}),d.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,l){var f=l==="pageYOffset";d.fn[a]=function(g){return dn(this,function(m,y,x){var M;if(ee(m)?M=m:m.nodeType===9&&(M=m.defaultView),x===void 0)return M?M[l]:m[y];M?M.scrollTo(f?M.pageXOffset:x,f?x:M.pageYOffset):m[y]=x},a,g,arguments.length)}}),d.each(["top","left"],function(a,l){d.cssHooks[l]=Gi(U.pixelPosition,function(f,g){if(g)return g=Vi(f,l),ua.test(g)?d(f).position()[l]+"px":g})}),d.each({Height:"height",Width:"width"},function(a,l){d.each({padding:"inner"+a,content:l,"":"outer"+a},function(f,g){d.fn[g]=function(m,y){var x=arguments.length&&(f||typeof m!="boolean"),M=f||(m===!0||y===!0?"margin":"border");return dn(this,function(T,L,z){var V;return ee(T)?g.indexOf("outer")===0?T["inner"+a]:T.document.documentElement["client"+a]:T.nodeType===9?(V=T.documentElement,Math.max(T.body["scroll"+a],V["scroll"+a],T.body["offset"+a],V["offset"+a],V["client"+a])):z===void 0?d.css(T,L,M):d.style(T,L,z,M)},l,x?m:void 0,x)}})}),d.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,l){d.fn[l]=function(f){return this.on(l,f)}}),d.fn.extend({bind:function(a,l,f){return this.on(a,null,l,f)},unbind:function(a,l){return this.off(a,null,l)},delegate:function(a,l,f,g){return this.on(l,a,f,g)},undelegate:function(a,l,f){return arguments.length===1?this.off(a,"**"):this.off(l,a||"**",f)},hover:function(a,l){return this.on("mouseenter",a).on("mouseleave",l||a)}}),d.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(a,l){d.fn[l]=function(f,g){return arguments.length>0?this.on(l,null,f,g):this.trigger(l)}});var Uo=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;d.proxy=function(a,l){var f,g,m;if(typeof l=="string"&&(f=a[l],l=a,a=f),!!$(a))return g=c.call(arguments,2),m=function(){return a.apply(l||this,g.concat(c.call(arguments)))},m.guid=a.guid=a.guid||d.guid++,m},d.holdReady=function(a){a?d.readyWait++:d.ready(!0)},d.isArray=Array.isArray,d.parseJSON=JSON.parse,d.nodeName=fe,d.isFunction=$,d.isWindow=ee,d.camelCase=jt,d.type=ye,d.now=Date.now,d.isNumeric=function(a){var l=d.type(a);return(l==="number"||l==="string")&&!isNaN(a-parseFloat(a))},d.trim=function(a){return a==null?"":(a+"").replace(Uo,"$1")};var ka=t.jQuery,gn=t.$;return d.noConflict=function(a){return t.$===d&&(t.$=gn),a&&t.jQuery===d&&(t.jQuery=ka),d},typeof r>"u"&&(t.jQuery=t.$=d),d})})(R0);var M0=R0.exports;const DM=D.getDefaultExportFromCjs(M0);var EM={exports:{}};const TM=D.getAugmentedNamespace(kD);/**
|
|
173
|
+
`)}}).get()}});var oc=/%20/g,_a=/#.*$/,uc=/([?&])_=[^&]*/,lc=/^(.*?):[ \t]*([^\r\n]*)$/mg,cc=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,fc=/^(?:GET|HEAD)$/,dc=/^\/\//,it={},Qe={},Yo="*/".concat("*"),wa=Y.createElement("a");wa.href=Ei.href;function Wo(a){return function(l,f){typeof l!="string"&&(f=l,l="*");var g,m=0,y=l.toLowerCase().match(fn)||[];if($(f))for(;g=y[m++];)g[0]==="+"?(g=g.slice(1)||"*",(a[g]=a[g]||[]).unshift(f)):(a[g]=a[g]||[]).push(f)}}function Bo(a,l,f,g){var m={},y=a===Qe;function x(M){var T;return m[M]=!0,d.each(a[M]||[],function(L,z){var V=z(l,f,g);if(typeof V=="string"&&!y&&!m[V])return l.dataTypes.unshift(V),x(V),!1;if(y)return!(T=V)}),T}return x(l.dataTypes[0])||!m["*"]&&x("*")}function Sa(a,l){var f,g,m=d.ajaxSettings.flatOptions||{};for(f in l)l[f]!==void 0&&((m[f]?a:g||(g={}))[f]=l[f]);return g&&d.extend(!0,a,g),a}function hc(a,l,f){for(var g,m,y,x,M=a.contents,T=a.dataTypes;T[0]==="*";)T.shift(),g===void 0&&(g=a.mimeType||l.getResponseHeader("Content-Type"));if(g){for(m in M)if(M[m]&&M[m].test(g)){T.unshift(m);break}}if(T[0]in f)y=T[0];else{for(m in f){if(!T[0]||a.converters[m+" "+T[0]]){y=m;break}x||(x=m)}y=y||x}if(y)return y!==T[0]&&T.unshift(y),f[y]}function Ho(a,l,f,g){var m,y,x,M,T,L={},z=a.dataTypes.slice();if(z[1])for(x in a.converters)L[x.toLowerCase()]=a.converters[x];for(y=z.shift();y;)if(a.responseFields[y]&&(f[a.responseFields[y]]=l),!T&&g&&a.dataFilter&&(l=a.dataFilter(l,a.dataType)),T=y,y=z.shift(),y){if(y==="*")y=T;else if(T!=="*"&&T!==y){if(x=L[T+" "+y]||L["* "+y],!x){for(m in L)if(M=m.split(" "),M[1]===y&&(x=L[T+" "+M[0]]||L["* "+M[0]],x)){x===!0?x=L[m]:L[m]!==!0&&(y=M[0],z.unshift(M[1]));break}}if(x!==!0)if(x&&a.throws)l=x(l);else try{l=x(l)}catch(V){return{state:"parsererror",error:x?V:"No conversion from "+T+" to "+y}}}}return{state:"success",data:l}}d.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ei.href,type:"GET",isLocal:cc.test(Ei.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Yo,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":d.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,l){return l?Sa(Sa(a,d.ajaxSettings),l):Sa(d.ajaxSettings,a)},ajaxPrefilter:Wo(it),ajaxTransport:Wo(Qe),ajax:function(a,l){typeof a=="object"&&(l=a,a=void 0),l=l||{};var f,g,m,y,x,M,T,L,z,V,B=d.ajaxSetup({},l),te=B.context||B,ce=B.context&&(te.nodeType||te.jquery)?d(te):d.event,Te=d.Deferred(),Ee=d.Callbacks("once memory"),Mt=B.statusCode||{},gt={},Wn={},Bn="canceled",je={readyState:0,getResponseHeader:function($e){var tt;if(T){if(!y)for(y={};tt=lc.exec(m);)y[tt[1].toLowerCase()+" "]=(y[tt[1].toLowerCase()+" "]||[]).concat(tt[2]);tt=y[$e.toLowerCase()+" "]}return tt==null?null:tt.join(", ")},getAllResponseHeaders:function(){return T?m:null},setRequestHeader:function($e,tt){return T==null&&($e=Wn[$e.toLowerCase()]=Wn[$e.toLowerCase()]||$e,gt[$e]=tt),this},overrideMimeType:function($e){return T==null&&(B.mimeType=$e),this},statusCode:function($e){var tt;if($e)if(T)je.always($e[je.status]);else for(tt in $e)Mt[tt]=[Mt[tt],$e[tt]];return this},abort:function($e){var tt=$e||Bn;return f&&f.abort(tt),Cr(0,tt),this}};if(Te.promise(je),B.url=((a||B.url||Ei.href)+"").replace(dc,Ei.protocol+"//"),B.type=l.method||l.type||B.method||B.type,B.dataTypes=(B.dataType||"*").toLowerCase().match(fn)||[""],B.crossDomain==null){M=Y.createElement("a");try{M.href=B.url,M.href=M.href,B.crossDomain=wa.protocol+"//"+wa.host!=M.protocol+"//"+M.host}catch{B.crossDomain=!0}}if(B.data&&B.processData&&typeof B.data!="string"&&(B.data=d.param(B.data,B.traditional)),Bo(it,B,l,je),T)return je;L=d.event&&B.global,L&&d.active++===0&&d.event.trigger("ajaxStart"),B.type=B.type.toUpperCase(),B.hasContent=!fc.test(B.type),g=B.url.replace(_a,""),B.hasContent?B.data&&B.processData&&(B.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(B.data=B.data.replace(oc,"+")):(V=B.url.slice(g.length),B.data&&(B.processData||typeof B.data=="string")&&(g+=(Ds.test(g)?"&":"?")+B.data,delete B.data),B.cache===!1&&(g=g.replace(uc,"$1"),V=(Ds.test(g)?"&":"?")+"_="+va.guid+++V),B.url=g+V),B.ifModified&&(d.lastModified[g]&&je.setRequestHeader("If-Modified-Since",d.lastModified[g]),d.etag[g]&&je.setRequestHeader("If-None-Match",d.etag[g])),(B.data&&B.hasContent&&B.contentType!==!1||l.contentType)&&je.setRequestHeader("Content-Type",B.contentType),je.setRequestHeader("Accept",B.dataTypes[0]&&B.accepts[B.dataTypes[0]]?B.accepts[B.dataTypes[0]]+(B.dataTypes[0]!=="*"?", "+Yo+"; q=0.01":""):B.accepts["*"]);for(z in B.headers)je.setRequestHeader(z,B.headers[z]);if(B.beforeSend&&(B.beforeSend.call(te,je,B)===!1||T))return je.abort();if(Bn="abort",Ee.add(B.complete),je.done(B.success),je.fail(B.error),f=Bo(Qe,B,l,je),!f)Cr(-1,"No Transport");else{if(je.readyState=1,L&&ce.trigger("ajaxSend",[je,B]),T)return je;B.async&&B.timeout>0&&(x=t.setTimeout(function(){je.abort("timeout")},B.timeout));try{T=!1,f.send(gt,Cr)}catch($e){if(T)throw $e;Cr(-1,$e)}}function Cr($e,tt,Ki,Ts){var Dn,Kr,mn,lr,Dr,Xt=tt;T||(T=!0,x&&t.clearTimeout(x),f=void 0,m=Ts||"",je.readyState=$e>0?4:0,Dn=$e>=200&&$e<300||$e===304,Ki&&(lr=hc(B,je,Ki)),!Dn&&d.inArray("script",B.dataTypes)>-1&&d.inArray("json",B.dataTypes)<0&&(B.converters["text script"]=function(){}),lr=Ho(B,lr,je,Dn),Dn?(B.ifModified&&(Dr=je.getResponseHeader("Last-Modified"),Dr&&(d.lastModified[g]=Dr),Dr=je.getResponseHeader("etag"),Dr&&(d.etag[g]=Dr)),$e===204||B.type==="HEAD"?Xt="nocontent":$e===304?Xt="notmodified":(Xt=lr.state,Kr=lr.data,mn=lr.error,Dn=!mn)):(mn=Xt,($e||!Xt)&&(Xt="error",$e<0&&($e=0))),je.status=$e,je.statusText=(tt||Xt)+"",Dn?Te.resolveWith(te,[Kr,Xt,je]):Te.rejectWith(te,[je,Xt,mn]),je.statusCode(Mt),Mt=void 0,L&&ce.trigger(Dn?"ajaxSuccess":"ajaxError",[je,B,Dn?Kr:mn]),Ee.fireWith(te,[je,Xt]),L&&(ce.trigger("ajaxComplete",[je,B]),--d.active||d.event.trigger("ajaxStop")))}return je},getJSON:function(a,l,f){return d.get(a,l,f,"json")},getScript:function(a,l){return d.get(a,void 0,l,"script")}}),d.each(["get","post"],function(a,l){d[l]=function(f,g,m,y){return $(g)&&(y=y||m,m=g,g=void 0),d.ajax(d.extend({url:f,type:l,dataType:y,data:g,success:m},d.isPlainObject(f)&&f))}}),d.ajaxPrefilter(function(a){var l;for(l in a.headers)l.toLowerCase()==="content-type"&&(a.contentType=a.headers[l]||"")}),d._evalUrl=function(a,l,f){return d.ajax({url:a,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(g){d.globalEval(g,l,f)}})},d.fn.extend({wrapAll:function(a){var l;return this[0]&&($(a)&&(a=a.call(this[0])),l=d(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&l.insertBefore(this[0]),l.map(function(){for(var f=this;f.firstElementChild;)f=f.firstElementChild;return f}).append(this)),this},wrapInner:function(a){return $(a)?this.each(function(l){d(this).wrapInner(a.call(this,l))}):this.each(function(){var l=d(this),f=l.contents();f.length?f.wrapAll(a):l.append(a)})},wrap:function(a){var l=$(a);return this.each(function(f){d(this).wrapAll(l?a.call(this,f):a)})},unwrap:function(a){return this.parent(a).not("body").each(function(){d(this).replaceWith(this.childNodes)}),this}}),d.expr.pseudos.hidden=function(a){return!d.expr.pseudos.visible(a)},d.expr.pseudos.visible=function(a){return!!(a.offsetWidth||a.offsetHeight||a.getClientRects().length)},d.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch{}};var pc={0:200,1223:204},pt=d.ajaxSettings.xhr();U.cors=!!pt&&"withCredentials"in pt,U.ajax=pt=!!pt,d.ajaxTransport(function(a){var l,f;if(U.cors||pt&&!a.crossDomain)return{send:function(g,m){var y,x=a.xhr();if(x.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(y in a.xhrFields)x[y]=a.xhrFields[y];a.mimeType&&x.overrideMimeType&&x.overrideMimeType(a.mimeType),!a.crossDomain&&!g["X-Requested-With"]&&(g["X-Requested-With"]="XMLHttpRequest");for(y in g)x.setRequestHeader(y,g[y]);l=function(M){return function(){l&&(l=f=x.onload=x.onerror=x.onabort=x.ontimeout=x.onreadystatechange=null,M==="abort"?x.abort():M==="error"?typeof x.status!="number"?m(0,"error"):m(x.status,x.statusText):m(pc[x.status]||x.status,x.statusText,(x.responseType||"text")!=="text"||typeof x.responseText!="string"?{binary:x.response}:{text:x.responseText},x.getAllResponseHeaders()))}},x.onload=l(),f=x.onerror=x.ontimeout=l("error"),x.onabort!==void 0?x.onabort=f:x.onreadystatechange=function(){x.readyState===4&&t.setTimeout(function(){l&&f()})},l=l("abort");try{x.send(a.hasContent&&a.data||null)}catch(M){if(l)throw M}},abort:function(){l&&l()}}}),d.ajaxPrefilter(function(a){a.crossDomain&&(a.contents.script=!1)}),d.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return d.globalEval(a),a}}}),d.ajaxPrefilter("script",function(a){a.cache===void 0&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),d.ajaxTransport("script",function(a){if(a.crossDomain||a.scriptAttrs){var l,f;return{send:function(g,m){l=d("<script>").attr(a.scriptAttrs||{}).prop({charset:a.scriptCharset,src:a.url}).on("load error",f=function(y){l.remove(),f=null,y&&m(y.type==="error"?404:200,y.type)}),Y.head.appendChild(l[0])},abort:function(){f&&f()}}}});var Es=[],ur=/(=)\?(?=&|$)|\?\?/;d.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Es.pop()||d.expando+"_"+va.guid++;return this[a]=!0,a}}),d.ajaxPrefilter("json jsonp",function(a,l,f){var g,m,y,x=a.jsonp!==!1&&(ur.test(a.url)?"url":typeof a.data=="string"&&(a.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&ur.test(a.data)&&"data");if(x||a.dataTypes[0]==="jsonp")return g=a.jsonpCallback=$(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback,x?a[x]=a[x].replace(ur,"$1"+g):a.jsonp!==!1&&(a.url+=(Ds.test(a.url)?"&":"?")+a.jsonp+"="+g),a.converters["script json"]=function(){return y||d.error(g+" was not called"),y[0]},a.dataTypes[0]="json",m=t[g],t[g]=function(){y=arguments},f.always(function(){m===void 0?d(t).removeProp(g):t[g]=m,a[g]&&(a.jsonpCallback=l.jsonpCallback,Es.push(g)),y&&$(m)&&m(y[0]),y=m=void 0}),"script"}),U.createHTMLDocument=function(){var a=Y.implementation.createHTMLDocument("").body;return a.innerHTML="<form></form><form></form>",a.childNodes.length===2}(),d.parseHTML=function(a,l,f){if(typeof a!="string")return[];typeof l=="boolean"&&(f=l,l=!1);var g,m,y;return l||(U.createHTMLDocument?(l=Y.implementation.createHTMLDocument(""),g=l.createElement("base"),g.href=Y.location.href,l.head.appendChild(g)):l=Y),m=_t.exec(a),y=!f&&[],m?[l.createElement(m[1])]:(m=_o([a],l,y),y&&y.length&&d(y).remove(),d.merge([],m.childNodes))},d.fn.load=function(a,l,f){var g,m,y,x=this,M=a.indexOf(" ");return M>-1&&(g=Sr(a.slice(M)),a=a.slice(0,M)),$(l)?(f=l,l=void 0):l&&typeof l=="object"&&(m="POST"),x.length>0&&d.ajax({url:a,type:m||"GET",dataType:"html",data:l}).done(function(T){y=arguments,x.html(g?d("<div>").append(d.parseHTML(T)).find(g):T)}).always(f&&function(T,L){x.each(function(){f.apply(this,y||[T.responseText,L,T])})}),this},d.expr.pseudos.animated=function(a){return d.grep(d.timers,function(l){return a===l.elem}).length},d.offset={setOffset:function(a,l,f){var g,m,y,x,M,T,L,z=d.css(a,"position"),V=d(a),B={};z==="static"&&(a.style.position="relative"),M=V.offset(),y=d.css(a,"top"),T=d.css(a,"left"),L=(z==="absolute"||z==="fixed")&&(y+T).indexOf("auto")>-1,L?(g=V.position(),x=g.top,m=g.left):(x=parseFloat(y)||0,m=parseFloat(T)||0),$(l)&&(l=l.call(a,f,d.extend({},M))),l.top!=null&&(B.top=l.top-M.top+x),l.left!=null&&(B.left=l.left-M.left+m),"using"in l?l.using.call(a,B):V.css(B)}},d.fn.extend({offset:function(a){if(arguments.length)return a===void 0?this:this.each(function(m){d.offset.setOffset(this,a,m)});var l,f,g=this[0];if(g)return g.getClientRects().length?(l=g.getBoundingClientRect(),f=g.ownerDocument.defaultView,{top:l.top+f.pageYOffset,left:l.left+f.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var a,l,f,g=this[0],m={top:0,left:0};if(d.css(g,"position")==="fixed")l=g.getBoundingClientRect();else{for(l=this.offset(),f=g.ownerDocument,a=g.offsetParent||f.documentElement;a&&(a===f.body||a===f.documentElement)&&d.css(a,"position")==="static";)a=a.parentNode;a&&a!==g&&a.nodeType===1&&(m=d(a).offset(),m.top+=d.css(a,"borderTopWidth",!0),m.left+=d.css(a,"borderLeftWidth",!0))}return{top:l.top-m.top-d.css(g,"marginTop",!0),left:l.left-m.left-d.css(g,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent;a&&d.css(a,"position")==="static";)a=a.offsetParent;return a||or})}}),d.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,l){var f=l==="pageYOffset";d.fn[a]=function(g){return dn(this,function(m,y,x){var M;if(ee(m)?M=m:m.nodeType===9&&(M=m.defaultView),x===void 0)return M?M[l]:m[y];M?M.scrollTo(f?M.pageXOffset:x,f?x:M.pageYOffset):m[y]=x},a,g,arguments.length)}}),d.each(["top","left"],function(a,l){d.cssHooks[l]=Gi(U.pixelPosition,function(f,g){if(g)return g=Vi(f,l),ua.test(g)?d(f).position()[l]+"px":g})}),d.each({Height:"height",Width:"width"},function(a,l){d.each({padding:"inner"+a,content:l,"":"outer"+a},function(f,g){d.fn[g]=function(m,y){var x=arguments.length&&(f||typeof m!="boolean"),M=f||(m===!0||y===!0?"margin":"border");return dn(this,function(T,L,z){var V;return ee(T)?g.indexOf("outer")===0?T["inner"+a]:T.document.documentElement["client"+a]:T.nodeType===9?(V=T.documentElement,Math.max(T.body["scroll"+a],V["scroll"+a],T.body["offset"+a],V["offset"+a],V["client"+a])):z===void 0?d.css(T,L,M):d.style(T,L,z,M)},l,x?m:void 0,x)}})}),d.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,l){d.fn[l]=function(f){return this.on(l,f)}}),d.fn.extend({bind:function(a,l,f){return this.on(a,null,l,f)},unbind:function(a,l){return this.off(a,null,l)},delegate:function(a,l,f,g){return this.on(l,a,f,g)},undelegate:function(a,l,f){return arguments.length===1?this.off(a,"**"):this.off(l,a||"**",f)},hover:function(a,l){return this.on("mouseenter",a).on("mouseleave",l||a)}}),d.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(a,l){d.fn[l]=function(f,g){return arguments.length>0?this.on(l,null,f,g):this.trigger(l)}});var Uo=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;d.proxy=function(a,l){var f,g,m;if(typeof l=="string"&&(f=a[l],l=a,a=f),!!$(a))return g=c.call(arguments,2),m=function(){return a.apply(l||this,g.concat(c.call(arguments)))},m.guid=a.guid=a.guid||d.guid++,m},d.holdReady=function(a){a?d.readyWait++:d.ready(!0)},d.isArray=Array.isArray,d.parseJSON=JSON.parse,d.nodeName=fe,d.isFunction=$,d.isWindow=ee,d.camelCase=jt,d.type=ye,d.now=Date.now,d.isNumeric=function(a){var l=d.type(a);return(l==="number"||l==="string")&&!isNaN(a-parseFloat(a))},d.trim=function(a){return a==null?"":(a+"").replace(Uo,"$1")};var ka=t.jQuery,gn=t.$;return d.noConflict=function(a){return t.$===d&&(t.$=gn),a&&t.jQuery===d&&(t.jQuery=ka),d},typeof r>"u"&&(t.jQuery=t.$=d),d})})(R0);var M0=R0.exports;const RM=D.getDefaultExportFromCjs(M0);var MM={exports:{}};const AM=D.getAugmentedNamespace(kD);/**
|
|
174
174
|
* @version: 3.1
|
|
175
175
|
* @author: Dan Grossman http://www.dangrossman.info/
|
|
176
176
|
* @copyright: Copyright (c) 2012-2019 Dan Grossman. All rights reserved.
|
|
177
177
|
* @license: Licensed under the MIT license. See http://www.opensource.org/licenses/mit-license.php
|
|
178
178
|
* @website: http://www.daterangepicker.com/
|
|
179
|
-
*/(function(e){(function(t,r){if(e.exports){var s=typeof window<"u"?window.jQuery:void 0;s||(s=M0,s.fn||(s.fn={}));var o=typeof window<"u"&&typeof window.moment<"u"?window.moment:TM;e.exports=r(o,s)}else t.daterangepicker=r(t.moment,t.jQuery)})(D.commonjsGlobal,function(t,r){var s=function(o,c,h){if(this.parentEl="body",this.element=r(o),this.startDate=t().startOf("day"),this.endDate=t().endOf("day"),this.minDate=!1,this.maxDate=!1,this.maxSpan=!1,this.autoApply=!1,this.singleDatePicker=!1,this.showDropdowns=!1,this.minYear=t().subtract(100,"year").format("YYYY"),this.maxYear=t().add(100,"year").format("YYYY"),this.showWeekNumbers=!1,this.showISOWeekNumbers=!1,this.showCustomRangeLabel=!0,this.timePicker=!1,this.timePicker24Hour=!1,this.timePickerIncrement=1,this.timePickerSeconds=!1,this.linkedCalendars=!0,this.autoUpdateInput=!0,this.alwaysShowCalendars=!1,this.ranges={},this.opens="right",this.element.hasClass("pull-right")&&(this.opens="left"),this.drops="down",this.element.hasClass("dropup")&&(this.drops="up"),this.buttonClasses="btn btn-sm",this.applyButtonClasses="btn-primary",this.cancelButtonClasses="btn-default",this.locale={direction:"ltr",format:t.localeData().longDateFormat("L"),separator:" - ",applyLabel:"Apply",cancelLabel:"Cancel",weekLabel:"W",customRangeLabel:"Custom Range",daysOfWeek:t.weekdaysMin(),monthNames:t.monthsShort(),firstDay:t.localeData().firstDayOfWeek()},this.callback=function(){},this.isShowing=!1,this.leftCalendar={},this.rightCalendar={},(typeof c!="object"||c===null)&&(c={}),c=r.extend(this.element.data(),c),typeof c.template!="string"&&!(c.template instanceof r)&&(c.template='<div class="daterangepicker"><div class="ranges"></div><div class="drp-calendar left"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-calendar right"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-buttons"><span class="drp-selected"></span><button class="cancelBtn" type="button"></button><button class="applyBtn" disabled="disabled" type="button"></button> </div></div>'),this.parentEl=c.parentEl&&r(c.parentEl).length?r(c.parentEl):r(this.parentEl),this.container=r(c.template).appendTo(this.parentEl),typeof c.locale=="object"&&(typeof c.locale.direction=="string"&&(this.locale.direction=c.locale.direction),typeof c.locale.format=="string"&&(this.locale.format=c.locale.format),typeof c.locale.separator=="string"&&(this.locale.separator=c.locale.separator),typeof c.locale.daysOfWeek=="object"&&(this.locale.daysOfWeek=c.locale.daysOfWeek.slice()),typeof c.locale.monthNames=="object"&&(this.locale.monthNames=c.locale.monthNames.slice()),typeof c.locale.firstDay=="number"&&(this.locale.firstDay=c.locale.firstDay),typeof c.locale.applyLabel=="string"&&(this.locale.applyLabel=c.locale.applyLabel),typeof c.locale.cancelLabel=="string"&&(this.locale.cancelLabel=c.locale.cancelLabel),typeof c.locale.weekLabel=="string"&&(this.locale.weekLabel=c.locale.weekLabel),typeof c.locale.customRangeLabel=="string")){var b=document.createElement("textarea");b.innerHTML=c.locale.customRangeLabel;var S=b.value;this.locale.customRangeLabel=S}if(this.container.addClass(this.locale.direction),typeof c.startDate=="string"&&(this.startDate=t(c.startDate,this.locale.format)),typeof c.endDate=="string"&&(this.endDate=t(c.endDate,this.locale.format)),typeof c.minDate=="string"&&(this.minDate=t(c.minDate,this.locale.format)),typeof c.maxDate=="string"&&(this.maxDate=t(c.maxDate,this.locale.format)),typeof c.startDate=="object"&&(this.startDate=t(c.startDate)),typeof c.endDate=="object"&&(this.endDate=t(c.endDate)),typeof c.minDate=="object"&&(this.minDate=t(c.minDate)),typeof c.maxDate=="object"&&(this.maxDate=t(c.maxDate)),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),typeof c.applyButtonClasses=="string"&&(this.applyButtonClasses=c.applyButtonClasses),typeof c.applyClass=="string"&&(this.applyButtonClasses=c.applyClass),typeof c.cancelButtonClasses=="string"&&(this.cancelButtonClasses=c.cancelButtonClasses),typeof c.cancelClass=="string"&&(this.cancelButtonClasses=c.cancelClass),typeof c.maxSpan=="object"&&(this.maxSpan=c.maxSpan),typeof c.dateLimit=="object"&&(this.maxSpan=c.dateLimit),typeof c.opens=="string"&&(this.opens=c.opens),typeof c.drops=="string"&&(this.drops=c.drops),typeof c.showWeekNumbers=="boolean"&&(this.showWeekNumbers=c.showWeekNumbers),typeof c.showISOWeekNumbers=="boolean"&&(this.showISOWeekNumbers=c.showISOWeekNumbers),typeof c.buttonClasses=="string"&&(this.buttonClasses=c.buttonClasses),typeof c.buttonClasses=="object"&&(this.buttonClasses=c.buttonClasses.join(" ")),typeof c.showDropdowns=="boolean"&&(this.showDropdowns=c.showDropdowns),typeof c.minYear=="number"&&(this.minYear=c.minYear),typeof c.maxYear=="number"&&(this.maxYear=c.maxYear),typeof c.showCustomRangeLabel=="boolean"&&(this.showCustomRangeLabel=c.showCustomRangeLabel),typeof c.singleDatePicker=="boolean"&&(this.singleDatePicker=c.singleDatePicker,this.singleDatePicker&&(this.endDate=this.startDate.clone())),typeof c.timePicker=="boolean"&&(this.timePicker=c.timePicker),typeof c.timePickerSeconds=="boolean"&&(this.timePickerSeconds=c.timePickerSeconds),typeof c.timePickerIncrement=="number"&&(this.timePickerIncrement=c.timePickerIncrement),typeof c.timePicker24Hour=="boolean"&&(this.timePicker24Hour=c.timePicker24Hour),typeof c.autoApply=="boolean"&&(this.autoApply=c.autoApply),typeof c.autoUpdateInput=="boolean"&&(this.autoUpdateInput=c.autoUpdateInput),typeof c.linkedCalendars=="boolean"&&(this.linkedCalendars=c.linkedCalendars),typeof c.isInvalidDate=="function"&&(this.isInvalidDate=c.isInvalidDate),typeof c.isCustomDate=="function"&&(this.isCustomDate=c.isCustomDate),typeof c.alwaysShowCalendars=="boolean"&&(this.alwaysShowCalendars=c.alwaysShowCalendars),this.locale.firstDay!=0)for(var E=this.locale.firstDay;E>0;)this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift()),E--;var A,F,H;if(typeof c.startDate>"u"&&typeof c.endDate>"u"&&r(this.element).is(":text")){var K=r(this.element).val(),U=K.split(this.locale.separator);A=F=null,U.length==2?(A=t(U[0],this.locale.format),F=t(U[1],this.locale.format)):this.singleDatePicker&&K!==""&&(A=t(K,this.locale.format),F=t(K,this.locale.format)),A!==null&&F!==null&&(this.setStartDate(A),this.setEndDate(F))}if(typeof c.ranges=="object"){for(H in c.ranges){typeof c.ranges[H][0]=="string"?A=t(c.ranges[H][0],this.locale.format):A=t(c.ranges[H][0]),typeof c.ranges[H][1]=="string"?F=t(c.ranges[H][1],this.locale.format):F=t(c.ranges[H][1]),this.minDate&&A.isBefore(this.minDate)&&(A=this.minDate.clone());var $=this.maxDate;if(this.maxSpan&&$&&A.clone().add(this.maxSpan).isAfter($)&&($=A.clone().add(this.maxSpan)),$&&F.isAfter($)&&(F=$.clone()),!(this.minDate&&F.isBefore(this.minDate,this.timepicker?"minute":"day")||$&&A.isAfter($,this.timepicker?"minute":"day"))){var b=document.createElement("textarea");b.innerHTML=H;var S=b.value;this.ranges[S]=[A,F]}}var ee="<ul>";for(H in this.ranges)ee+='<li data-range-key="'+H+'">'+H+"</li>";this.showCustomRangeLabel&&(ee+='<li data-range-key="'+this.locale.customRangeLabel+'">'+this.locale.customRangeLabel+"</li>"),ee+="</ul>",this.container.find(".ranges").prepend(ee)}typeof h=="function"&&(this.callback=h),this.timePicker||(this.startDate=this.startDate.startOf("day"),this.endDate=this.endDate.endOf("day"),this.container.find(".calendar-time").hide()),this.timePicker&&this.autoApply&&(this.autoApply=!1),this.autoApply&&this.container.addClass("auto-apply"),typeof c.ranges=="object"&&this.container.addClass("show-ranges"),this.singleDatePicker&&(this.container.addClass("single"),this.container.find(".drp-calendar.left").addClass("single"),this.container.find(".drp-calendar.left").show(),this.container.find(".drp-calendar.right").hide(),!this.timePicker&&this.autoApply&&this.container.addClass("auto-apply")),(typeof c.ranges>"u"&&!this.singleDatePicker||this.alwaysShowCalendars)&&this.container.addClass("show-calendar"),this.container.addClass("opens"+this.opens),this.container.find(".applyBtn, .cancelBtn").addClass(this.buttonClasses),this.applyButtonClasses.length&&this.container.find(".applyBtn").addClass(this.applyButtonClasses),this.cancelButtonClasses.length&&this.container.find(".cancelBtn").addClass(this.cancelButtonClasses),this.container.find(".applyBtn").html(this.locale.applyLabel),this.container.find(".cancelBtn").html(this.locale.cancelLabel),this.container.find(".drp-calendar").on("click.daterangepicker",".prev",r.proxy(this.clickPrev,this)).on("click.daterangepicker",".next",r.proxy(this.clickNext,this)).on("mousedown.daterangepicker","td.available",r.proxy(this.clickDate,this)).on("mouseenter.daterangepicker","td.available",r.proxy(this.hoverDate,this)).on("change.daterangepicker","select.yearselect",r.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.monthselect",r.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.hourselect,select.minuteselect,select.secondselect,select.ampmselect",r.proxy(this.timeChanged,this)),this.container.find(".ranges").on("click.daterangepicker","li",r.proxy(this.clickRange,this)),this.container.find(".drp-buttons").on("click.daterangepicker","button.applyBtn",r.proxy(this.clickApply,this)).on("click.daterangepicker","button.cancelBtn",r.proxy(this.clickCancel,this)),this.element.is("input")||this.element.is("button")?this.element.on({"click.daterangepicker":r.proxy(this.show,this),"focus.daterangepicker":r.proxy(this.show,this),"keyup.daterangepicker":r.proxy(this.elementChanged,this),"keydown.daterangepicker":r.proxy(this.keydown,this)}):(this.element.on("click.daterangepicker",r.proxy(this.toggle,this)),this.element.on("keydown.daterangepicker",r.proxy(this.toggle,this))),this.updateElement()};return s.prototype={constructor:s,setStartDate:function(o){typeof o=="string"&&(this.startDate=t(o,this.locale.format)),typeof o=="object"&&(this.startDate=t(o)),this.timePicker||(this.startDate=this.startDate.startOf("day")),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.maxDate&&this.startDate.isAfter(this.maxDate)&&(this.startDate=this.maxDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.floor(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.isShowing||this.updateElement(),this.updateMonthsInView()},setEndDate:function(o){typeof o=="string"&&(this.endDate=t(o,this.locale.format)),typeof o=="object"&&(this.endDate=t(o)),this.timePicker||(this.endDate=this.endDate.endOf("day")),this.timePicker&&this.timePickerIncrement&&this.endDate.minute(Math.round(this.endDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.endDate.isBefore(this.startDate)&&(this.endDate=this.startDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),this.maxSpan&&this.startDate.clone().add(this.maxSpan).isBefore(this.endDate)&&(this.endDate=this.startDate.clone().add(this.maxSpan)),this.previousRightTime=this.endDate.clone(),this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.isShowing||this.updateElement(),this.updateMonthsInView()},isInvalidDate:function(){return!1},isCustomDate:function(){return!1},updateView:function(){this.timePicker&&(this.renderTimePicker("left"),this.renderTimePicker("right"),this.endDate?this.container.find(".right .calendar-time select").prop("disabled",!1).removeClass("disabled"):this.container.find(".right .calendar-time select").prop("disabled",!0).addClass("disabled")),this.endDate&&this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.updateMonthsInView(),this.updateCalendars(),this.updateFormInputs()},updateMonthsInView:function(){if(this.endDate){if(!this.singleDatePicker&&this.leftCalendar.month&&this.rightCalendar.month&&(this.startDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.startDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM"))&&(this.endDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.endDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM")))return;this.leftCalendar.month=this.startDate.clone().date(2),!this.linkedCalendars&&(this.endDate.month()!=this.startDate.month()||this.endDate.year()!=this.startDate.year())?this.rightCalendar.month=this.endDate.clone().date(2):this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month")}else this.leftCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&this.rightCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&(this.leftCalendar.month=this.startDate.clone().date(2),this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month"));this.maxDate&&this.linkedCalendars&&!this.singleDatePicker&&this.rightCalendar.month>this.maxDate&&(this.rightCalendar.month=this.maxDate.clone().date(2),this.leftCalendar.month=this.maxDate.clone().date(2).subtract(1,"month"))},updateCalendars:function(){if(this.timePicker){var o,c,h;if(this.endDate){if(o=parseInt(this.container.find(".left .hourselect").val(),10),c=parseInt(this.container.find(".left .minuteselect").val(),10),isNaN(c)&&(c=parseInt(this.container.find(".left .minuteselect option:last").val(),10)),h=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0,!this.timePicker24Hour){var b=this.container.find(".left .ampmselect").val();b==="PM"&&o<12&&(o+=12),b==="AM"&&o===12&&(o=0)}}else if(o=parseInt(this.container.find(".right .hourselect").val(),10),c=parseInt(this.container.find(".right .minuteselect").val(),10),isNaN(c)&&(c=parseInt(this.container.find(".right .minuteselect option:last").val(),10)),h=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0,!this.timePicker24Hour){var b=this.container.find(".right .ampmselect").val();b==="PM"&&o<12&&(o+=12),b==="AM"&&o===12&&(o=0)}this.leftCalendar.month.hour(o).minute(c).second(h),this.rightCalendar.month.hour(o).minute(c).second(h)}this.renderCalendar("left"),this.renderCalendar("right"),this.container.find(".ranges li").removeClass("active"),this.endDate!=null&&this.calculateChosenLabel()},renderCalendar:function(o){var Y=o=="left"?this.leftCalendar:this.rightCalendar,c=Y.month.month(),h=Y.month.year(),b=Y.month.hour(),S=Y.month.minute(),E=Y.month.second(),A=t([h,c]).daysInMonth(),F=t([h,c,1]),H=t([h,c,A]),K=t(F).subtract(1,"month").month(),U=t(F).subtract(1,"month").year(),$=t([U,K]).daysInMonth(),ee=F.day(),Y=[];Y.firstDay=F,Y.lastDay=H;for(var le=0;le<6;le++)Y[le]=[];var ge=$-ee+this.locale.firstDay+1;ge>$&&(ge-=7),ee==this.locale.firstDay&&(ge=$-6);for(var ye=t([U,K,ge,12,S,E]),re,ie,le=0,re=0,ie=0;le<42;le++,re++,ye=t(ye).add(24,"hour"))le>0&&re%7===0&&(re=0,ie++),Y[ie][re]=ye.clone().hour(b).minute(S).second(E),ye.hour(12),this.minDate&&Y[ie][re].format("YYYY-MM-DD")==this.minDate.format("YYYY-MM-DD")&&Y[ie][re].isBefore(this.minDate)&&o=="left"&&(Y[ie][re]=this.minDate.clone()),this.maxDate&&Y[ie][re].format("YYYY-MM-DD")==this.maxDate.format("YYYY-MM-DD")&&Y[ie][re].isAfter(this.maxDate)&&o=="right"&&(Y[ie][re]=this.maxDate.clone());o=="left"?this.leftCalendar.calendar=Y:this.rightCalendar.calendar=Y;var d=o=="left"?this.minDate:this.startDate,Le=this.maxDate;o=="left"?this.startDate:this.endDate,this.locale.direction=="ltr";var fe='<table class="table-condensed">';fe+="<thead>",fe+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(fe+="<th></th>"),(!d||d.isBefore(Y.firstDay))&&(!this.linkedCalendars||o=="left")?fe+='<th class="prev available"><span></span></th>':fe+="<th></th>";var at=this.locale.monthNames[Y[1][1].month()]+Y[1][1].format(" YYYY");if(this.showDropdowns){for(var Ue=Y[1][1].month(),Je=Y[1][1].year(),we=Le&&Le.year()||this.maxYear,ot=d&&d.year()||this.minYear,xt=Je==ot,Tt=Je==we,ze='<select class="monthselect">',Fe=0;Fe<12;Fe++)(!xt||d&&Fe>=d.month())&&(!Tt||Le&&Fe<=Le.month())?ze+="<option value='"+Fe+"'"+(Fe===Ue?" selected='selected'":"")+">"+this.locale.monthNames[Fe]+"</option>":ze+="<option value='"+Fe+"'"+(Fe===Ue?" selected='selected'":"")+" disabled='disabled'>"+this.locale.monthNames[Fe]+"</option>";ze+="</select>";for(var ft='<select class="yearselect">',Rt=ot;Rt<=we;Rt++)ft+='<option value="'+Rt+'"'+(Rt===Je?' selected="selected"':"")+">"+Rt+"</option>";ft+="</select>",at=ze+ft}if(fe+='<th colspan="5" class="month">'+at+"</th>",(!Le||Le.isAfter(Y.lastDay))&&(!this.linkedCalendars||o=="right"||this.singleDatePicker)?fe+='<th class="next available"><span></span></th>':fe+="<th></th>",fe+="</tr>",fe+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(fe+='<th class="week">'+this.locale.weekLabel+"</th>"),r.each(this.locale.daysOfWeek,function(sr,Ui){fe+="<th>"+Ui+"</th>"}),fe+="</tr>",fe+="</thead>",fe+="<tbody>",this.endDate==null&&this.maxSpan){var Nt=this.startDate.clone().add(this.maxSpan).endOf("day");(!Le||Nt.isBefore(Le))&&(Le=Nt)}for(var ie=0;ie<6;ie++){fe+="<tr>",this.showWeekNumbers?fe+='<td class="week">'+Y[ie][0].week()+"</td>":this.showISOWeekNumbers&&(fe+='<td class="week">'+Y[ie][0].isoWeek()+"</td>");for(var re=0;re<7;re++){var _t=[];Y[ie][re].isSame(new Date,"day")&&_t.push("today"),Y[ie][re].isoWeekday()>5&&_t.push("weekend"),Y[ie][re].month()!=Y[1][1].month()&&_t.push("off","ends"),this.minDate&&Y[ie][re].isBefore(this.minDate,"day")&&_t.push("off","disabled"),Le&&Y[ie][re].isAfter(Le,"day")&&_t.push("off","disabled"),this.isInvalidDate(Y[ie][re])&&_t.push("off","disabled"),Y[ie][re].format("YYYY-MM-DD")==this.startDate.format("YYYY-MM-DD")&&_t.push("active","start-date"),this.endDate!=null&&Y[ie][re].format("YYYY-MM-DD")==this.endDate.format("YYYY-MM-DD")&&_t.push("active","end-date"),this.endDate!=null&&Y[ie][re]>this.startDate&&Y[ie][re]<this.endDate&&_t.push("in-range");var jn=this.isCustomDate(Y[ie][re]);jn!==!1&&(typeof jn=="string"?_t.push(jn):Array.prototype.push.apply(_t,jn));for(var zt="",Vt=!1,le=0;le<_t.length;le++)zt+=_t[le]+" ",_t[le]=="disabled"&&(Vt=!0);Vt||(zt+="available"),fe+='<td class="'+zt.replace(/^\s+|\s+$/g,"")+'" data-title="r'+ie+"c"+re+'">'+Y[ie][re].date()+"</td>"}fe+="</tr>"}fe+="</tbody>",fe+="</table>",this.container.find(".drp-calendar."+o+" .calendar-table").html(fe)},renderTimePicker:function(o){if(!(o=="right"&&!this.endDate)){var c,h,b,S=this.maxDate;if(this.maxSpan&&(!this.maxDate||this.startDate.clone().add(this.maxSpan).isBefore(this.maxDate))&&(S=this.startDate.clone().add(this.maxSpan)),o=="left")h=this.startDate.clone(),b=this.minDate;else if(o=="right"){h=this.endDate.clone(),b=this.startDate;var E=this.container.find(".drp-calendar.right .calendar-time");if(E.html()!=""&&(h.hour(isNaN(h.hour())?E.find(".hourselect option:selected").val():h.hour()),h.minute(isNaN(h.minute())?E.find(".minuteselect option:selected").val():h.minute()),h.second(isNaN(h.second())?E.find(".secondselect option:selected").val():h.second()),!this.timePicker24Hour)){var A=E.find(".ampmselect option:selected").val();A==="PM"&&h.hour()<12&&h.hour(h.hour()+12),A==="AM"&&h.hour()===12&&h.hour(0)}h.isBefore(this.startDate)&&(h=this.startDate.clone()),S&&h.isAfter(S)&&(h=S.clone())}c='<select class="hourselect">';for(var F=this.timePicker24Hour?0:1,H=this.timePicker24Hour?23:12,K=F;K<=H;K++){var U=K;this.timePicker24Hour||(U=h.hour()>=12?K==12?12:K+12:K==12?0:K);var $=h.clone().hour(U),ee=!1;b&&$.minute(59).isBefore(b)&&(ee=!0),S&&$.minute(0).isAfter(S)&&(ee=!0),U==h.hour()&&!ee?c+='<option value="'+K+'" selected="selected">'+K+"</option>":ee?c+='<option value="'+K+'" disabled="disabled" class="disabled">'+K+"</option>":c+='<option value="'+K+'">'+K+"</option>"}c+="</select> ",c+=': <select class="minuteselect">';for(var K=0;K<60;K+=this.timePickerIncrement){var Y=K<10?"0"+K:K,$=h.clone().minute(K),ee=!1;b&&$.second(59).isBefore(b)&&(ee=!0),S&&$.second(0).isAfter(S)&&(ee=!0),h.minute()==K&&!ee?c+='<option value="'+K+'" selected="selected">'+Y+"</option>":ee?c+='<option value="'+K+'" disabled="disabled" class="disabled">'+Y+"</option>":c+='<option value="'+K+'">'+Y+"</option>"}if(c+="</select> ",this.timePickerSeconds){c+=': <select class="secondselect">';for(var K=0;K<60;K++){var Y=K<10?"0"+K:K,$=h.clone().second(K),ee=!1;b&&$.isBefore(b)&&(ee=!0),S&&$.isAfter(S)&&(ee=!0),h.second()==K&&!ee?c+='<option value="'+K+'" selected="selected">'+Y+"</option>":ee?c+='<option value="'+K+'" disabled="disabled" class="disabled">'+Y+"</option>":c+='<option value="'+K+'">'+Y+"</option>"}c+="</select> "}if(!this.timePicker24Hour){c+='<select class="ampmselect">';var le="",ge="";b&&h.clone().hour(12).minute(0).second(0).isBefore(b)&&(le=' disabled="disabled" class="disabled"'),S&&h.clone().hour(0).minute(0).second(0).isAfter(S)&&(ge=' disabled="disabled" class="disabled"'),h.hour()>=12?c+='<option value="AM"'+le+'>AM</option><option value="PM" selected="selected"'+ge+">PM</option>":c+='<option value="AM" selected="selected"'+le+'>AM</option><option value="PM"'+ge+">PM</option>",c+="</select>"}this.container.find(".drp-calendar."+o+" .calendar-time").html(c)}},updateFormInputs:function(){this.singleDatePicker||this.endDate&&(this.startDate.isBefore(this.endDate)||this.startDate.isSame(this.endDate))?this.container.find("button.applyBtn").prop("disabled",!1):this.container.find("button.applyBtn").prop("disabled",!0)},move:function(){var o={top:0,left:0},c,h=this.drops,b=r(window).width();switch(this.parentEl.is("body")||(o={top:this.parentEl.offset().top-this.parentEl.scrollTop(),left:this.parentEl.offset().left-this.parentEl.scrollLeft()},b=this.parentEl[0].clientWidth+this.parentEl.offset().left),h){case"auto":c=this.element.offset().top+this.element.outerHeight()-o.top,c+this.container.outerHeight()>=this.parentEl[0].scrollHeight&&(c=this.element.offset().top-this.container.outerHeight()-o.top,h="up");break;case"up":c=this.element.offset().top-this.container.outerHeight()-o.top;break;default:c=this.element.offset().top+this.element.outerHeight()-o.top;break}this.container.css({top:0,left:0,right:"auto"});var S=this.container.outerWidth();if(this.container.toggleClass("drop-up",h=="up"),this.opens=="left"){var E=b-this.element.offset().left-this.element.outerWidth();S+E>r(window).width()?this.container.css({top:c,right:"auto",left:9}):this.container.css({top:c,right:E,left:"auto"})}else if(this.opens=="center"){var A=this.element.offset().left-o.left+this.element.outerWidth()/2-S/2;A<0?this.container.css({top:c,right:"auto",left:9}):A+S>r(window).width()?this.container.css({top:c,left:"auto",right:0}):this.container.css({top:c,left:A,right:"auto"})}else{var A=this.element.offset().left-o.left;A+S>r(window).width()?this.container.css({top:c,left:"auto",right:0}):this.container.css({top:c,left:A,right:"auto"})}},show:function(o){this.isShowing||(this._outsideClickProxy=r.proxy(function(c){this.outsideClick(c)},this),r(document).on("mousedown.daterangepicker",this._outsideClickProxy).on("touchend.daterangepicker",this._outsideClickProxy).on("click.daterangepicker","[data-toggle=dropdown]",this._outsideClickProxy).on("focusin.daterangepicker",this._outsideClickProxy),r(window).on("resize.daterangepicker",r.proxy(function(c){this.move(c)},this)),this.oldStartDate=this.startDate.clone(),this.oldEndDate=this.endDate.clone(),this.previousRightTime=this.endDate.clone(),this.updateView(),this.container.show(),this.move(),this.element.trigger("show.daterangepicker",this),this.isShowing=!0)},hide:function(o){this.isShowing&&(this.endDate||(this.startDate=this.oldStartDate.clone(),this.endDate=this.oldEndDate.clone()),(!this.startDate.isSame(this.oldStartDate)||!this.endDate.isSame(this.oldEndDate))&&this.callback(this.startDate.clone(),this.endDate.clone(),this.chosenLabel),this.updateElement(),r(document).off(".daterangepicker"),r(window).off(".daterangepicker"),this.container.hide(),this.element.trigger("hide.daterangepicker",this),this.isShowing=!1)},toggle:function(o){this.isShowing?this.hide():this.show()},outsideClick:function(o){var c=r(o.target);o.type=="focusin"||c.closest(this.element).length||c.closest(this.container).length||c.closest(".calendar-table").length||(this.hide(),this.element.trigger("outsideClick.daterangepicker",this))},showCalendars:function(){this.container.addClass("show-calendar"),this.move(),this.element.trigger("showCalendar.daterangepicker",this)},hideCalendars:function(){this.container.removeClass("show-calendar"),this.element.trigger("hideCalendar.daterangepicker",this)},clickRange:function(o){var c=o.target.getAttribute("data-range-key");if(this.chosenLabel=c,c==this.locale.customRangeLabel)this.showCalendars();else{var h=this.ranges[c];this.startDate=h[0],this.endDate=h[1],this.timePicker||(this.startDate.startOf("day"),this.endDate.endOf("day")),this.alwaysShowCalendars||this.hideCalendars(),this.clickApply()}},clickPrev:function(o){var c=r(o.target).parents(".drp-calendar");c.hasClass("left")?(this.leftCalendar.month.subtract(1,"month"),this.linkedCalendars&&this.rightCalendar.month.subtract(1,"month")):this.rightCalendar.month.subtract(1,"month"),this.updateCalendars()},clickNext:function(o){var c=r(o.target).parents(".drp-calendar");c.hasClass("left")?this.leftCalendar.month.add(1,"month"):(this.rightCalendar.month.add(1,"month"),this.linkedCalendars&&this.leftCalendar.month.add(1,"month")),this.updateCalendars()},hoverDate:function(o){if(r(o.target).hasClass("available")){var c=r(o.target).attr("data-title"),h=c.substr(1,1),b=c.substr(3,1),S=r(o.target).parents(".drp-calendar"),E=S.hasClass("left")?this.leftCalendar.calendar[h][b]:this.rightCalendar.calendar[h][b],A=this.leftCalendar,F=this.rightCalendar,H=this.startDate;this.endDate||this.container.find(".drp-calendar tbody td").each(function(K,U){if(!r(U).hasClass("week")){var $=r(U).attr("data-title"),ee=$.substr(1,1),Y=$.substr(3,1),le=r(U).parents(".drp-calendar"),ge=le.hasClass("left")?A.calendar[ee][Y]:F.calendar[ee][Y];ge.isAfter(H)&&ge.isBefore(E)||ge.isSame(E,"day")?r(U).addClass("in-range"):r(U).removeClass("in-range")}})}},clickDate:function(o){if(r(o.target).hasClass("available")){var c=r(o.target).attr("data-title"),h=c.substr(1,1),b=c.substr(3,1),S=r(o.target).parents(".drp-calendar"),E=S.hasClass("left")?this.leftCalendar.calendar[h][b]:this.rightCalendar.calendar[h][b];if(this.endDate||E.isBefore(this.startDate,"day")){if(this.timePicker){var A=parseInt(this.container.find(".left .hourselect").val(),10);if(!this.timePicker24Hour){var F=this.container.find(".left .ampmselect").val();F==="PM"&&A<12&&(A+=12),F==="AM"&&A===12&&(A=0)}var H=parseInt(this.container.find(".left .minuteselect").val(),10);isNaN(H)&&(H=parseInt(this.container.find(".left .minuteselect option:last").val(),10));var K=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0;E=E.clone().hour(A).minute(H).second(K)}this.endDate=null,this.setStartDate(E.clone())}else if(!this.endDate&&E.isBefore(this.startDate))this.setEndDate(this.startDate.clone());else{if(this.timePicker){var A=parseInt(this.container.find(".right .hourselect").val(),10);if(!this.timePicker24Hour){var F=this.container.find(".right .ampmselect").val();F==="PM"&&A<12&&(A+=12),F==="AM"&&A===12&&(A=0)}var H=parseInt(this.container.find(".right .minuteselect").val(),10);isNaN(H)&&(H=parseInt(this.container.find(".right .minuteselect option:last").val(),10));var K=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0;E=E.clone().hour(A).minute(H).second(K)}this.setEndDate(E.clone()),this.autoApply&&(this.calculateChosenLabel(),this.clickApply())}this.singleDatePicker&&(this.setEndDate(this.startDate),!this.timePicker&&this.autoApply&&this.clickApply()),this.updateView(),o.stopPropagation()}},calculateChosenLabel:function(){var o=!0,c=0;for(var h in this.ranges){if(this.timePicker){var b=this.timePickerSeconds?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD HH:mm";if(this.startDate.format(b)==this.ranges[h][0].format(b)&&this.endDate.format(b)==this.ranges[h][1].format(b)){o=!1,this.chosenLabel=this.container.find(".ranges li:eq("+c+")").addClass("active").attr("data-range-key");break}}else if(this.startDate.format("YYYY-MM-DD")==this.ranges[h][0].format("YYYY-MM-DD")&&this.endDate.format("YYYY-MM-DD")==this.ranges[h][1].format("YYYY-MM-DD")){o=!1,this.chosenLabel=this.container.find(".ranges li:eq("+c+")").addClass("active").attr("data-range-key");break}c++}o&&(this.showCustomRangeLabel?this.chosenLabel=this.container.find(".ranges li:last").addClass("active").attr("data-range-key"):this.chosenLabel=null,this.showCalendars())},clickApply:function(o){this.hide(),this.element.trigger("apply.daterangepicker",this)},clickCancel:function(o){this.startDate=this.oldStartDate,this.endDate=this.oldEndDate,this.hide(),this.element.trigger("cancel.daterangepicker",this)},monthOrYearChanged:function(o){var c=r(o.target).closest(".drp-calendar").hasClass("left"),h=c?"left":"right",b=this.container.find(".drp-calendar."+h),S=parseInt(b.find(".monthselect").val(),10),E=b.find(".yearselect").val();c||(E<this.startDate.year()||E==this.startDate.year()&&S<this.startDate.month())&&(S=this.startDate.month(),E=this.startDate.year()),this.minDate&&(E<this.minDate.year()||E==this.minDate.year()&&S<this.minDate.month())&&(S=this.minDate.month(),E=this.minDate.year()),this.maxDate&&(E>this.maxDate.year()||E==this.maxDate.year()&&S>this.maxDate.month())&&(S=this.maxDate.month(),E=this.maxDate.year()),c?(this.leftCalendar.month.month(S).year(E),this.linkedCalendars&&(this.rightCalendar.month=this.leftCalendar.month.clone().add(1,"month"))):(this.rightCalendar.month.month(S).year(E),this.linkedCalendars&&(this.leftCalendar.month=this.rightCalendar.month.clone().subtract(1,"month"))),this.updateCalendars()},timeChanged:function(o){var c=r(o.target).closest(".drp-calendar"),h=c.hasClass("left"),b=parseInt(c.find(".hourselect").val(),10),S=parseInt(c.find(".minuteselect").val(),10);isNaN(S)&&(S=parseInt(c.find(".minuteselect option:last").val(),10));var E=this.timePickerSeconds?parseInt(c.find(".secondselect").val(),10):0;if(!this.timePicker24Hour){var A=c.find(".ampmselect").val();A==="PM"&&b<12&&(b+=12),A==="AM"&&b===12&&(b=0)}if(h){var F=this.startDate.clone();F.hour(b),F.minute(S),F.second(E),this.setStartDate(F),this.singleDatePicker?this.endDate=this.startDate.clone():this.endDate&&this.endDate.format("YYYY-MM-DD")==F.format("YYYY-MM-DD")&&this.endDate.isBefore(F)&&this.setEndDate(F.clone())}else if(this.endDate){var H=this.endDate.clone();H.hour(b),H.minute(S),H.second(E),this.setEndDate(H)}this.updateCalendars(),this.updateFormInputs(),this.renderTimePicker("left"),this.renderTimePicker("right")},elementChanged:function(){if(this.element.is("input")&&this.element.val().length){var o=this.element.val().split(this.locale.separator),c=null,h=null;o.length===2&&(c=t(o[0],this.locale.format),h=t(o[1],this.locale.format)),(this.singleDatePicker||c===null||h===null)&&(c=t(this.element.val(),this.locale.format),h=c),!(!c.isValid()||!h.isValid())&&(this.setStartDate(c),this.setEndDate(h),this.updateView())}},keydown:function(o){(o.keyCode===9||o.keyCode===13)&&this.hide(),o.keyCode===27&&(o.preventDefault(),o.stopPropagation(),this.hide())},updateElement:function(){if(this.element.is("input")&&this.autoUpdateInput){var o=this.startDate.format(this.locale.format);this.singleDatePicker||(o+=this.locale.separator+this.endDate.format(this.locale.format)),o!==this.element.val()&&this.element.val(o).trigger("change")}},remove:function(){this.container.remove(),this.element.off(".daterangepicker"),this.element.removeData()}},r.fn.daterangepicker=function(o,c){var h=r.extend(!0,{},r.fn.daterangepicker.defaultOptions,o);return this.each(function(){var b=r(this);b.data("daterangepicker")&&b.data("daterangepicker").remove(),b.data("daterangepicker",new s(b,h,c))}),this},s})})(EM);var Hf=function(e,t){return Hf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(r[o]=s[o])},Hf(e,t)};function RM(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Hf(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}(function(e){RM(t,e);function t(r){var s=e.call(this,r)||this;return s.ref=null,s.$picker=null,s}return t.prototype.componentDidMount=function(){var r=this;this.$picker=DM(this.ref),this.$picker.daterangepicker(this.props.initialSettings,this.handleCallback.bind(this)),["Show","Hide","ShowCalendar","HideCalendar","Apply","Cancel"].forEach(function(s){var o,c=s.charAt(0).toLowerCase()+s.slice(1);(o=r.$picker)===null||o===void 0||o.on(c+".daterangepicker",r.makeEventHandler("on"+s))})},t.prototype.componentWillUnmount=function(){var r,s;(s=(r=this.$picker)===null||r===void 0?void 0:r.data("daterangepicker"))===null||s===void 0||s.remove()},t.prototype.handleCallback=function(){for(var r,s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];typeof this.props.onCallback=="function"&&(r=this.props).onCallback.apply(r,s)},t.prototype.makeEventHandler=function(r){var s=this,o=this.props.onEvent;return function(c,h){typeof o=="function"&&o(c,h),typeof s.props[r]=="function"&&s.props[r](c,h)}},t.prototype.setStartDate=function(r){var s,o;(o=(s=this.$picker)===null||s===void 0?void 0:s.data("daterangepicker"))===null||o===void 0||o.setStartDate(r)},t.prototype.setEndDate=function(r){var s,o;(o=(s=this.$picker)===null||s===void 0?void 0:s.data("daterangepicker"))===null||o===void 0||o.setEndDate(r)},t.prototype.render=function(){var r=this,s=D.reactExports.Children.only(this.props.children);return D.reactExports.cloneElement(s,{ref:function(o){return r.ref=o}})},t})(D.reactExports.Component);Wr(e=>D.jsxRuntimeExports.jsx(xM,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...e}))(({theme:e})=>({width:42,height:26,padding:0,"&.MuiSwitch-root":{margin:0,marginRight:8},"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:se.color.primary300,opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:e.palette.grey[100]},"&.Mui-disabled + .MuiSwitch-track":{opacity:.7}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:22,height:22},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:"#E9E9EA",opacity:1}}));/**
|
|
179
|
+
*/(function(e){(function(t,r){if(e.exports){var s=typeof window<"u"?window.jQuery:void 0;s||(s=M0,s.fn||(s.fn={}));var o=typeof window<"u"&&typeof window.moment<"u"?window.moment:AM;e.exports=r(o,s)}else t.daterangepicker=r(t.moment,t.jQuery)})(D.commonjsGlobal,function(t,r){var s=function(o,c,h){if(this.parentEl="body",this.element=r(o),this.startDate=t().startOf("day"),this.endDate=t().endOf("day"),this.minDate=!1,this.maxDate=!1,this.maxSpan=!1,this.autoApply=!1,this.singleDatePicker=!1,this.showDropdowns=!1,this.minYear=t().subtract(100,"year").format("YYYY"),this.maxYear=t().add(100,"year").format("YYYY"),this.showWeekNumbers=!1,this.showISOWeekNumbers=!1,this.showCustomRangeLabel=!0,this.timePicker=!1,this.timePicker24Hour=!1,this.timePickerIncrement=1,this.timePickerSeconds=!1,this.linkedCalendars=!0,this.autoUpdateInput=!0,this.alwaysShowCalendars=!1,this.ranges={},this.opens="right",this.element.hasClass("pull-right")&&(this.opens="left"),this.drops="down",this.element.hasClass("dropup")&&(this.drops="up"),this.buttonClasses="btn btn-sm",this.applyButtonClasses="btn-primary",this.cancelButtonClasses="btn-default",this.locale={direction:"ltr",format:t.localeData().longDateFormat("L"),separator:" - ",applyLabel:"Apply",cancelLabel:"Cancel",weekLabel:"W",customRangeLabel:"Custom Range",daysOfWeek:t.weekdaysMin(),monthNames:t.monthsShort(),firstDay:t.localeData().firstDayOfWeek()},this.callback=function(){},this.isShowing=!1,this.leftCalendar={},this.rightCalendar={},(typeof c!="object"||c===null)&&(c={}),c=r.extend(this.element.data(),c),typeof c.template!="string"&&!(c.template instanceof r)&&(c.template='<div class="daterangepicker"><div class="ranges"></div><div class="drp-calendar left"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-calendar right"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-buttons"><span class="drp-selected"></span><button class="cancelBtn" type="button"></button><button class="applyBtn" disabled="disabled" type="button"></button> </div></div>'),this.parentEl=c.parentEl&&r(c.parentEl).length?r(c.parentEl):r(this.parentEl),this.container=r(c.template).appendTo(this.parentEl),typeof c.locale=="object"&&(typeof c.locale.direction=="string"&&(this.locale.direction=c.locale.direction),typeof c.locale.format=="string"&&(this.locale.format=c.locale.format),typeof c.locale.separator=="string"&&(this.locale.separator=c.locale.separator),typeof c.locale.daysOfWeek=="object"&&(this.locale.daysOfWeek=c.locale.daysOfWeek.slice()),typeof c.locale.monthNames=="object"&&(this.locale.monthNames=c.locale.monthNames.slice()),typeof c.locale.firstDay=="number"&&(this.locale.firstDay=c.locale.firstDay),typeof c.locale.applyLabel=="string"&&(this.locale.applyLabel=c.locale.applyLabel),typeof c.locale.cancelLabel=="string"&&(this.locale.cancelLabel=c.locale.cancelLabel),typeof c.locale.weekLabel=="string"&&(this.locale.weekLabel=c.locale.weekLabel),typeof c.locale.customRangeLabel=="string")){var b=document.createElement("textarea");b.innerHTML=c.locale.customRangeLabel;var S=b.value;this.locale.customRangeLabel=S}if(this.container.addClass(this.locale.direction),typeof c.startDate=="string"&&(this.startDate=t(c.startDate,this.locale.format)),typeof c.endDate=="string"&&(this.endDate=t(c.endDate,this.locale.format)),typeof c.minDate=="string"&&(this.minDate=t(c.minDate,this.locale.format)),typeof c.maxDate=="string"&&(this.maxDate=t(c.maxDate,this.locale.format)),typeof c.startDate=="object"&&(this.startDate=t(c.startDate)),typeof c.endDate=="object"&&(this.endDate=t(c.endDate)),typeof c.minDate=="object"&&(this.minDate=t(c.minDate)),typeof c.maxDate=="object"&&(this.maxDate=t(c.maxDate)),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),typeof c.applyButtonClasses=="string"&&(this.applyButtonClasses=c.applyButtonClasses),typeof c.applyClass=="string"&&(this.applyButtonClasses=c.applyClass),typeof c.cancelButtonClasses=="string"&&(this.cancelButtonClasses=c.cancelButtonClasses),typeof c.cancelClass=="string"&&(this.cancelButtonClasses=c.cancelClass),typeof c.maxSpan=="object"&&(this.maxSpan=c.maxSpan),typeof c.dateLimit=="object"&&(this.maxSpan=c.dateLimit),typeof c.opens=="string"&&(this.opens=c.opens),typeof c.drops=="string"&&(this.drops=c.drops),typeof c.showWeekNumbers=="boolean"&&(this.showWeekNumbers=c.showWeekNumbers),typeof c.showISOWeekNumbers=="boolean"&&(this.showISOWeekNumbers=c.showISOWeekNumbers),typeof c.buttonClasses=="string"&&(this.buttonClasses=c.buttonClasses),typeof c.buttonClasses=="object"&&(this.buttonClasses=c.buttonClasses.join(" ")),typeof c.showDropdowns=="boolean"&&(this.showDropdowns=c.showDropdowns),typeof c.minYear=="number"&&(this.minYear=c.minYear),typeof c.maxYear=="number"&&(this.maxYear=c.maxYear),typeof c.showCustomRangeLabel=="boolean"&&(this.showCustomRangeLabel=c.showCustomRangeLabel),typeof c.singleDatePicker=="boolean"&&(this.singleDatePicker=c.singleDatePicker,this.singleDatePicker&&(this.endDate=this.startDate.clone())),typeof c.timePicker=="boolean"&&(this.timePicker=c.timePicker),typeof c.timePickerSeconds=="boolean"&&(this.timePickerSeconds=c.timePickerSeconds),typeof c.timePickerIncrement=="number"&&(this.timePickerIncrement=c.timePickerIncrement),typeof c.timePicker24Hour=="boolean"&&(this.timePicker24Hour=c.timePicker24Hour),typeof c.autoApply=="boolean"&&(this.autoApply=c.autoApply),typeof c.autoUpdateInput=="boolean"&&(this.autoUpdateInput=c.autoUpdateInput),typeof c.linkedCalendars=="boolean"&&(this.linkedCalendars=c.linkedCalendars),typeof c.isInvalidDate=="function"&&(this.isInvalidDate=c.isInvalidDate),typeof c.isCustomDate=="function"&&(this.isCustomDate=c.isCustomDate),typeof c.alwaysShowCalendars=="boolean"&&(this.alwaysShowCalendars=c.alwaysShowCalendars),this.locale.firstDay!=0)for(var E=this.locale.firstDay;E>0;)this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift()),E--;var A,F,H;if(typeof c.startDate>"u"&&typeof c.endDate>"u"&&r(this.element).is(":text")){var K=r(this.element).val(),U=K.split(this.locale.separator);A=F=null,U.length==2?(A=t(U[0],this.locale.format),F=t(U[1],this.locale.format)):this.singleDatePicker&&K!==""&&(A=t(K,this.locale.format),F=t(K,this.locale.format)),A!==null&&F!==null&&(this.setStartDate(A),this.setEndDate(F))}if(typeof c.ranges=="object"){for(H in c.ranges){typeof c.ranges[H][0]=="string"?A=t(c.ranges[H][0],this.locale.format):A=t(c.ranges[H][0]),typeof c.ranges[H][1]=="string"?F=t(c.ranges[H][1],this.locale.format):F=t(c.ranges[H][1]),this.minDate&&A.isBefore(this.minDate)&&(A=this.minDate.clone());var $=this.maxDate;if(this.maxSpan&&$&&A.clone().add(this.maxSpan).isAfter($)&&($=A.clone().add(this.maxSpan)),$&&F.isAfter($)&&(F=$.clone()),!(this.minDate&&F.isBefore(this.minDate,this.timepicker?"minute":"day")||$&&A.isAfter($,this.timepicker?"minute":"day"))){var b=document.createElement("textarea");b.innerHTML=H;var S=b.value;this.ranges[S]=[A,F]}}var ee="<ul>";for(H in this.ranges)ee+='<li data-range-key="'+H+'">'+H+"</li>";this.showCustomRangeLabel&&(ee+='<li data-range-key="'+this.locale.customRangeLabel+'">'+this.locale.customRangeLabel+"</li>"),ee+="</ul>",this.container.find(".ranges").prepend(ee)}typeof h=="function"&&(this.callback=h),this.timePicker||(this.startDate=this.startDate.startOf("day"),this.endDate=this.endDate.endOf("day"),this.container.find(".calendar-time").hide()),this.timePicker&&this.autoApply&&(this.autoApply=!1),this.autoApply&&this.container.addClass("auto-apply"),typeof c.ranges=="object"&&this.container.addClass("show-ranges"),this.singleDatePicker&&(this.container.addClass("single"),this.container.find(".drp-calendar.left").addClass("single"),this.container.find(".drp-calendar.left").show(),this.container.find(".drp-calendar.right").hide(),!this.timePicker&&this.autoApply&&this.container.addClass("auto-apply")),(typeof c.ranges>"u"&&!this.singleDatePicker||this.alwaysShowCalendars)&&this.container.addClass("show-calendar"),this.container.addClass("opens"+this.opens),this.container.find(".applyBtn, .cancelBtn").addClass(this.buttonClasses),this.applyButtonClasses.length&&this.container.find(".applyBtn").addClass(this.applyButtonClasses),this.cancelButtonClasses.length&&this.container.find(".cancelBtn").addClass(this.cancelButtonClasses),this.container.find(".applyBtn").html(this.locale.applyLabel),this.container.find(".cancelBtn").html(this.locale.cancelLabel),this.container.find(".drp-calendar").on("click.daterangepicker",".prev",r.proxy(this.clickPrev,this)).on("click.daterangepicker",".next",r.proxy(this.clickNext,this)).on("mousedown.daterangepicker","td.available",r.proxy(this.clickDate,this)).on("mouseenter.daterangepicker","td.available",r.proxy(this.hoverDate,this)).on("change.daterangepicker","select.yearselect",r.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.monthselect",r.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.hourselect,select.minuteselect,select.secondselect,select.ampmselect",r.proxy(this.timeChanged,this)),this.container.find(".ranges").on("click.daterangepicker","li",r.proxy(this.clickRange,this)),this.container.find(".drp-buttons").on("click.daterangepicker","button.applyBtn",r.proxy(this.clickApply,this)).on("click.daterangepicker","button.cancelBtn",r.proxy(this.clickCancel,this)),this.element.is("input")||this.element.is("button")?this.element.on({"click.daterangepicker":r.proxy(this.show,this),"focus.daterangepicker":r.proxy(this.show,this),"keyup.daterangepicker":r.proxy(this.elementChanged,this),"keydown.daterangepicker":r.proxy(this.keydown,this)}):(this.element.on("click.daterangepicker",r.proxy(this.toggle,this)),this.element.on("keydown.daterangepicker",r.proxy(this.toggle,this))),this.updateElement()};return s.prototype={constructor:s,setStartDate:function(o){typeof o=="string"&&(this.startDate=t(o,this.locale.format)),typeof o=="object"&&(this.startDate=t(o)),this.timePicker||(this.startDate=this.startDate.startOf("day")),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.maxDate&&this.startDate.isAfter(this.maxDate)&&(this.startDate=this.maxDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.floor(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.isShowing||this.updateElement(),this.updateMonthsInView()},setEndDate:function(o){typeof o=="string"&&(this.endDate=t(o,this.locale.format)),typeof o=="object"&&(this.endDate=t(o)),this.timePicker||(this.endDate=this.endDate.endOf("day")),this.timePicker&&this.timePickerIncrement&&this.endDate.minute(Math.round(this.endDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.endDate.isBefore(this.startDate)&&(this.endDate=this.startDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),this.maxSpan&&this.startDate.clone().add(this.maxSpan).isBefore(this.endDate)&&(this.endDate=this.startDate.clone().add(this.maxSpan)),this.previousRightTime=this.endDate.clone(),this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.isShowing||this.updateElement(),this.updateMonthsInView()},isInvalidDate:function(){return!1},isCustomDate:function(){return!1},updateView:function(){this.timePicker&&(this.renderTimePicker("left"),this.renderTimePicker("right"),this.endDate?this.container.find(".right .calendar-time select").prop("disabled",!1).removeClass("disabled"):this.container.find(".right .calendar-time select").prop("disabled",!0).addClass("disabled")),this.endDate&&this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.updateMonthsInView(),this.updateCalendars(),this.updateFormInputs()},updateMonthsInView:function(){if(this.endDate){if(!this.singleDatePicker&&this.leftCalendar.month&&this.rightCalendar.month&&(this.startDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.startDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM"))&&(this.endDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.endDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM")))return;this.leftCalendar.month=this.startDate.clone().date(2),!this.linkedCalendars&&(this.endDate.month()!=this.startDate.month()||this.endDate.year()!=this.startDate.year())?this.rightCalendar.month=this.endDate.clone().date(2):this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month")}else this.leftCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&this.rightCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&(this.leftCalendar.month=this.startDate.clone().date(2),this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month"));this.maxDate&&this.linkedCalendars&&!this.singleDatePicker&&this.rightCalendar.month>this.maxDate&&(this.rightCalendar.month=this.maxDate.clone().date(2),this.leftCalendar.month=this.maxDate.clone().date(2).subtract(1,"month"))},updateCalendars:function(){if(this.timePicker){var o,c,h;if(this.endDate){if(o=parseInt(this.container.find(".left .hourselect").val(),10),c=parseInt(this.container.find(".left .minuteselect").val(),10),isNaN(c)&&(c=parseInt(this.container.find(".left .minuteselect option:last").val(),10)),h=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0,!this.timePicker24Hour){var b=this.container.find(".left .ampmselect").val();b==="PM"&&o<12&&(o+=12),b==="AM"&&o===12&&(o=0)}}else if(o=parseInt(this.container.find(".right .hourselect").val(),10),c=parseInt(this.container.find(".right .minuteselect").val(),10),isNaN(c)&&(c=parseInt(this.container.find(".right .minuteselect option:last").val(),10)),h=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0,!this.timePicker24Hour){var b=this.container.find(".right .ampmselect").val();b==="PM"&&o<12&&(o+=12),b==="AM"&&o===12&&(o=0)}this.leftCalendar.month.hour(o).minute(c).second(h),this.rightCalendar.month.hour(o).minute(c).second(h)}this.renderCalendar("left"),this.renderCalendar("right"),this.container.find(".ranges li").removeClass("active"),this.endDate!=null&&this.calculateChosenLabel()},renderCalendar:function(o){var Y=o=="left"?this.leftCalendar:this.rightCalendar,c=Y.month.month(),h=Y.month.year(),b=Y.month.hour(),S=Y.month.minute(),E=Y.month.second(),A=t([h,c]).daysInMonth(),F=t([h,c,1]),H=t([h,c,A]),K=t(F).subtract(1,"month").month(),U=t(F).subtract(1,"month").year(),$=t([U,K]).daysInMonth(),ee=F.day(),Y=[];Y.firstDay=F,Y.lastDay=H;for(var le=0;le<6;le++)Y[le]=[];var ge=$-ee+this.locale.firstDay+1;ge>$&&(ge-=7),ee==this.locale.firstDay&&(ge=$-6);for(var ye=t([U,K,ge,12,S,E]),re,ie,le=0,re=0,ie=0;le<42;le++,re++,ye=t(ye).add(24,"hour"))le>0&&re%7===0&&(re=0,ie++),Y[ie][re]=ye.clone().hour(b).minute(S).second(E),ye.hour(12),this.minDate&&Y[ie][re].format("YYYY-MM-DD")==this.minDate.format("YYYY-MM-DD")&&Y[ie][re].isBefore(this.minDate)&&o=="left"&&(Y[ie][re]=this.minDate.clone()),this.maxDate&&Y[ie][re].format("YYYY-MM-DD")==this.maxDate.format("YYYY-MM-DD")&&Y[ie][re].isAfter(this.maxDate)&&o=="right"&&(Y[ie][re]=this.maxDate.clone());o=="left"?this.leftCalendar.calendar=Y:this.rightCalendar.calendar=Y;var d=o=="left"?this.minDate:this.startDate,Le=this.maxDate;o=="left"?this.startDate:this.endDate,this.locale.direction=="ltr";var fe='<table class="table-condensed">';fe+="<thead>",fe+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(fe+="<th></th>"),(!d||d.isBefore(Y.firstDay))&&(!this.linkedCalendars||o=="left")?fe+='<th class="prev available"><span></span></th>':fe+="<th></th>";var at=this.locale.monthNames[Y[1][1].month()]+Y[1][1].format(" YYYY");if(this.showDropdowns){for(var Ue=Y[1][1].month(),Je=Y[1][1].year(),we=Le&&Le.year()||this.maxYear,ot=d&&d.year()||this.minYear,xt=Je==ot,Tt=Je==we,ze='<select class="monthselect">',Fe=0;Fe<12;Fe++)(!xt||d&&Fe>=d.month())&&(!Tt||Le&&Fe<=Le.month())?ze+="<option value='"+Fe+"'"+(Fe===Ue?" selected='selected'":"")+">"+this.locale.monthNames[Fe]+"</option>":ze+="<option value='"+Fe+"'"+(Fe===Ue?" selected='selected'":"")+" disabled='disabled'>"+this.locale.monthNames[Fe]+"</option>";ze+="</select>";for(var ft='<select class="yearselect">',Rt=ot;Rt<=we;Rt++)ft+='<option value="'+Rt+'"'+(Rt===Je?' selected="selected"':"")+">"+Rt+"</option>";ft+="</select>",at=ze+ft}if(fe+='<th colspan="5" class="month">'+at+"</th>",(!Le||Le.isAfter(Y.lastDay))&&(!this.linkedCalendars||o=="right"||this.singleDatePicker)?fe+='<th class="next available"><span></span></th>':fe+="<th></th>",fe+="</tr>",fe+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(fe+='<th class="week">'+this.locale.weekLabel+"</th>"),r.each(this.locale.daysOfWeek,function(sr,Ui){fe+="<th>"+Ui+"</th>"}),fe+="</tr>",fe+="</thead>",fe+="<tbody>",this.endDate==null&&this.maxSpan){var Nt=this.startDate.clone().add(this.maxSpan).endOf("day");(!Le||Nt.isBefore(Le))&&(Le=Nt)}for(var ie=0;ie<6;ie++){fe+="<tr>",this.showWeekNumbers?fe+='<td class="week">'+Y[ie][0].week()+"</td>":this.showISOWeekNumbers&&(fe+='<td class="week">'+Y[ie][0].isoWeek()+"</td>");for(var re=0;re<7;re++){var _t=[];Y[ie][re].isSame(new Date,"day")&&_t.push("today"),Y[ie][re].isoWeekday()>5&&_t.push("weekend"),Y[ie][re].month()!=Y[1][1].month()&&_t.push("off","ends"),this.minDate&&Y[ie][re].isBefore(this.minDate,"day")&&_t.push("off","disabled"),Le&&Y[ie][re].isAfter(Le,"day")&&_t.push("off","disabled"),this.isInvalidDate(Y[ie][re])&&_t.push("off","disabled"),Y[ie][re].format("YYYY-MM-DD")==this.startDate.format("YYYY-MM-DD")&&_t.push("active","start-date"),this.endDate!=null&&Y[ie][re].format("YYYY-MM-DD")==this.endDate.format("YYYY-MM-DD")&&_t.push("active","end-date"),this.endDate!=null&&Y[ie][re]>this.startDate&&Y[ie][re]<this.endDate&&_t.push("in-range");var jn=this.isCustomDate(Y[ie][re]);jn!==!1&&(typeof jn=="string"?_t.push(jn):Array.prototype.push.apply(_t,jn));for(var zt="",Vt=!1,le=0;le<_t.length;le++)zt+=_t[le]+" ",_t[le]=="disabled"&&(Vt=!0);Vt||(zt+="available"),fe+='<td class="'+zt.replace(/^\s+|\s+$/g,"")+'" data-title="r'+ie+"c"+re+'">'+Y[ie][re].date()+"</td>"}fe+="</tr>"}fe+="</tbody>",fe+="</table>",this.container.find(".drp-calendar."+o+" .calendar-table").html(fe)},renderTimePicker:function(o){if(!(o=="right"&&!this.endDate)){var c,h,b,S=this.maxDate;if(this.maxSpan&&(!this.maxDate||this.startDate.clone().add(this.maxSpan).isBefore(this.maxDate))&&(S=this.startDate.clone().add(this.maxSpan)),o=="left")h=this.startDate.clone(),b=this.minDate;else if(o=="right"){h=this.endDate.clone(),b=this.startDate;var E=this.container.find(".drp-calendar.right .calendar-time");if(E.html()!=""&&(h.hour(isNaN(h.hour())?E.find(".hourselect option:selected").val():h.hour()),h.minute(isNaN(h.minute())?E.find(".minuteselect option:selected").val():h.minute()),h.second(isNaN(h.second())?E.find(".secondselect option:selected").val():h.second()),!this.timePicker24Hour)){var A=E.find(".ampmselect option:selected").val();A==="PM"&&h.hour()<12&&h.hour(h.hour()+12),A==="AM"&&h.hour()===12&&h.hour(0)}h.isBefore(this.startDate)&&(h=this.startDate.clone()),S&&h.isAfter(S)&&(h=S.clone())}c='<select class="hourselect">';for(var F=this.timePicker24Hour?0:1,H=this.timePicker24Hour?23:12,K=F;K<=H;K++){var U=K;this.timePicker24Hour||(U=h.hour()>=12?K==12?12:K+12:K==12?0:K);var $=h.clone().hour(U),ee=!1;b&&$.minute(59).isBefore(b)&&(ee=!0),S&&$.minute(0).isAfter(S)&&(ee=!0),U==h.hour()&&!ee?c+='<option value="'+K+'" selected="selected">'+K+"</option>":ee?c+='<option value="'+K+'" disabled="disabled" class="disabled">'+K+"</option>":c+='<option value="'+K+'">'+K+"</option>"}c+="</select> ",c+=': <select class="minuteselect">';for(var K=0;K<60;K+=this.timePickerIncrement){var Y=K<10?"0"+K:K,$=h.clone().minute(K),ee=!1;b&&$.second(59).isBefore(b)&&(ee=!0),S&&$.second(0).isAfter(S)&&(ee=!0),h.minute()==K&&!ee?c+='<option value="'+K+'" selected="selected">'+Y+"</option>":ee?c+='<option value="'+K+'" disabled="disabled" class="disabled">'+Y+"</option>":c+='<option value="'+K+'">'+Y+"</option>"}if(c+="</select> ",this.timePickerSeconds){c+=': <select class="secondselect">';for(var K=0;K<60;K++){var Y=K<10?"0"+K:K,$=h.clone().second(K),ee=!1;b&&$.isBefore(b)&&(ee=!0),S&&$.isAfter(S)&&(ee=!0),h.second()==K&&!ee?c+='<option value="'+K+'" selected="selected">'+Y+"</option>":ee?c+='<option value="'+K+'" disabled="disabled" class="disabled">'+Y+"</option>":c+='<option value="'+K+'">'+Y+"</option>"}c+="</select> "}if(!this.timePicker24Hour){c+='<select class="ampmselect">';var le="",ge="";b&&h.clone().hour(12).minute(0).second(0).isBefore(b)&&(le=' disabled="disabled" class="disabled"'),S&&h.clone().hour(0).minute(0).second(0).isAfter(S)&&(ge=' disabled="disabled" class="disabled"'),h.hour()>=12?c+='<option value="AM"'+le+'>AM</option><option value="PM" selected="selected"'+ge+">PM</option>":c+='<option value="AM" selected="selected"'+le+'>AM</option><option value="PM"'+ge+">PM</option>",c+="</select>"}this.container.find(".drp-calendar."+o+" .calendar-time").html(c)}},updateFormInputs:function(){this.singleDatePicker||this.endDate&&(this.startDate.isBefore(this.endDate)||this.startDate.isSame(this.endDate))?this.container.find("button.applyBtn").prop("disabled",!1):this.container.find("button.applyBtn").prop("disabled",!0)},move:function(){var o={top:0,left:0},c,h=this.drops,b=r(window).width();switch(this.parentEl.is("body")||(o={top:this.parentEl.offset().top-this.parentEl.scrollTop(),left:this.parentEl.offset().left-this.parentEl.scrollLeft()},b=this.parentEl[0].clientWidth+this.parentEl.offset().left),h){case"auto":c=this.element.offset().top+this.element.outerHeight()-o.top,c+this.container.outerHeight()>=this.parentEl[0].scrollHeight&&(c=this.element.offset().top-this.container.outerHeight()-o.top,h="up");break;case"up":c=this.element.offset().top-this.container.outerHeight()-o.top;break;default:c=this.element.offset().top+this.element.outerHeight()-o.top;break}this.container.css({top:0,left:0,right:"auto"});var S=this.container.outerWidth();if(this.container.toggleClass("drop-up",h=="up"),this.opens=="left"){var E=b-this.element.offset().left-this.element.outerWidth();S+E>r(window).width()?this.container.css({top:c,right:"auto",left:9}):this.container.css({top:c,right:E,left:"auto"})}else if(this.opens=="center"){var A=this.element.offset().left-o.left+this.element.outerWidth()/2-S/2;A<0?this.container.css({top:c,right:"auto",left:9}):A+S>r(window).width()?this.container.css({top:c,left:"auto",right:0}):this.container.css({top:c,left:A,right:"auto"})}else{var A=this.element.offset().left-o.left;A+S>r(window).width()?this.container.css({top:c,left:"auto",right:0}):this.container.css({top:c,left:A,right:"auto"})}},show:function(o){this.isShowing||(this._outsideClickProxy=r.proxy(function(c){this.outsideClick(c)},this),r(document).on("mousedown.daterangepicker",this._outsideClickProxy).on("touchend.daterangepicker",this._outsideClickProxy).on("click.daterangepicker","[data-toggle=dropdown]",this._outsideClickProxy).on("focusin.daterangepicker",this._outsideClickProxy),r(window).on("resize.daterangepicker",r.proxy(function(c){this.move(c)},this)),this.oldStartDate=this.startDate.clone(),this.oldEndDate=this.endDate.clone(),this.previousRightTime=this.endDate.clone(),this.updateView(),this.container.show(),this.move(),this.element.trigger("show.daterangepicker",this),this.isShowing=!0)},hide:function(o){this.isShowing&&(this.endDate||(this.startDate=this.oldStartDate.clone(),this.endDate=this.oldEndDate.clone()),(!this.startDate.isSame(this.oldStartDate)||!this.endDate.isSame(this.oldEndDate))&&this.callback(this.startDate.clone(),this.endDate.clone(),this.chosenLabel),this.updateElement(),r(document).off(".daterangepicker"),r(window).off(".daterangepicker"),this.container.hide(),this.element.trigger("hide.daterangepicker",this),this.isShowing=!1)},toggle:function(o){this.isShowing?this.hide():this.show()},outsideClick:function(o){var c=r(o.target);o.type=="focusin"||c.closest(this.element).length||c.closest(this.container).length||c.closest(".calendar-table").length||(this.hide(),this.element.trigger("outsideClick.daterangepicker",this))},showCalendars:function(){this.container.addClass("show-calendar"),this.move(),this.element.trigger("showCalendar.daterangepicker",this)},hideCalendars:function(){this.container.removeClass("show-calendar"),this.element.trigger("hideCalendar.daterangepicker",this)},clickRange:function(o){var c=o.target.getAttribute("data-range-key");if(this.chosenLabel=c,c==this.locale.customRangeLabel)this.showCalendars();else{var h=this.ranges[c];this.startDate=h[0],this.endDate=h[1],this.timePicker||(this.startDate.startOf("day"),this.endDate.endOf("day")),this.alwaysShowCalendars||this.hideCalendars(),this.clickApply()}},clickPrev:function(o){var c=r(o.target).parents(".drp-calendar");c.hasClass("left")?(this.leftCalendar.month.subtract(1,"month"),this.linkedCalendars&&this.rightCalendar.month.subtract(1,"month")):this.rightCalendar.month.subtract(1,"month"),this.updateCalendars()},clickNext:function(o){var c=r(o.target).parents(".drp-calendar");c.hasClass("left")?this.leftCalendar.month.add(1,"month"):(this.rightCalendar.month.add(1,"month"),this.linkedCalendars&&this.leftCalendar.month.add(1,"month")),this.updateCalendars()},hoverDate:function(o){if(r(o.target).hasClass("available")){var c=r(o.target).attr("data-title"),h=c.substr(1,1),b=c.substr(3,1),S=r(o.target).parents(".drp-calendar"),E=S.hasClass("left")?this.leftCalendar.calendar[h][b]:this.rightCalendar.calendar[h][b],A=this.leftCalendar,F=this.rightCalendar,H=this.startDate;this.endDate||this.container.find(".drp-calendar tbody td").each(function(K,U){if(!r(U).hasClass("week")){var $=r(U).attr("data-title"),ee=$.substr(1,1),Y=$.substr(3,1),le=r(U).parents(".drp-calendar"),ge=le.hasClass("left")?A.calendar[ee][Y]:F.calendar[ee][Y];ge.isAfter(H)&&ge.isBefore(E)||ge.isSame(E,"day")?r(U).addClass("in-range"):r(U).removeClass("in-range")}})}},clickDate:function(o){if(r(o.target).hasClass("available")){var c=r(o.target).attr("data-title"),h=c.substr(1,1),b=c.substr(3,1),S=r(o.target).parents(".drp-calendar"),E=S.hasClass("left")?this.leftCalendar.calendar[h][b]:this.rightCalendar.calendar[h][b];if(this.endDate||E.isBefore(this.startDate,"day")){if(this.timePicker){var A=parseInt(this.container.find(".left .hourselect").val(),10);if(!this.timePicker24Hour){var F=this.container.find(".left .ampmselect").val();F==="PM"&&A<12&&(A+=12),F==="AM"&&A===12&&(A=0)}var H=parseInt(this.container.find(".left .minuteselect").val(),10);isNaN(H)&&(H=parseInt(this.container.find(".left .minuteselect option:last").val(),10));var K=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0;E=E.clone().hour(A).minute(H).second(K)}this.endDate=null,this.setStartDate(E.clone())}else if(!this.endDate&&E.isBefore(this.startDate))this.setEndDate(this.startDate.clone());else{if(this.timePicker){var A=parseInt(this.container.find(".right .hourselect").val(),10);if(!this.timePicker24Hour){var F=this.container.find(".right .ampmselect").val();F==="PM"&&A<12&&(A+=12),F==="AM"&&A===12&&(A=0)}var H=parseInt(this.container.find(".right .minuteselect").val(),10);isNaN(H)&&(H=parseInt(this.container.find(".right .minuteselect option:last").val(),10));var K=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0;E=E.clone().hour(A).minute(H).second(K)}this.setEndDate(E.clone()),this.autoApply&&(this.calculateChosenLabel(),this.clickApply())}this.singleDatePicker&&(this.setEndDate(this.startDate),!this.timePicker&&this.autoApply&&this.clickApply()),this.updateView(),o.stopPropagation()}},calculateChosenLabel:function(){var o=!0,c=0;for(var h in this.ranges){if(this.timePicker){var b=this.timePickerSeconds?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD HH:mm";if(this.startDate.format(b)==this.ranges[h][0].format(b)&&this.endDate.format(b)==this.ranges[h][1].format(b)){o=!1,this.chosenLabel=this.container.find(".ranges li:eq("+c+")").addClass("active").attr("data-range-key");break}}else if(this.startDate.format("YYYY-MM-DD")==this.ranges[h][0].format("YYYY-MM-DD")&&this.endDate.format("YYYY-MM-DD")==this.ranges[h][1].format("YYYY-MM-DD")){o=!1,this.chosenLabel=this.container.find(".ranges li:eq("+c+")").addClass("active").attr("data-range-key");break}c++}o&&(this.showCustomRangeLabel?this.chosenLabel=this.container.find(".ranges li:last").addClass("active").attr("data-range-key"):this.chosenLabel=null,this.showCalendars())},clickApply:function(o){this.hide(),this.element.trigger("apply.daterangepicker",this)},clickCancel:function(o){this.startDate=this.oldStartDate,this.endDate=this.oldEndDate,this.hide(),this.element.trigger("cancel.daterangepicker",this)},monthOrYearChanged:function(o){var c=r(o.target).closest(".drp-calendar").hasClass("left"),h=c?"left":"right",b=this.container.find(".drp-calendar."+h),S=parseInt(b.find(".monthselect").val(),10),E=b.find(".yearselect").val();c||(E<this.startDate.year()||E==this.startDate.year()&&S<this.startDate.month())&&(S=this.startDate.month(),E=this.startDate.year()),this.minDate&&(E<this.minDate.year()||E==this.minDate.year()&&S<this.minDate.month())&&(S=this.minDate.month(),E=this.minDate.year()),this.maxDate&&(E>this.maxDate.year()||E==this.maxDate.year()&&S>this.maxDate.month())&&(S=this.maxDate.month(),E=this.maxDate.year()),c?(this.leftCalendar.month.month(S).year(E),this.linkedCalendars&&(this.rightCalendar.month=this.leftCalendar.month.clone().add(1,"month"))):(this.rightCalendar.month.month(S).year(E),this.linkedCalendars&&(this.leftCalendar.month=this.rightCalendar.month.clone().subtract(1,"month"))),this.updateCalendars()},timeChanged:function(o){var c=r(o.target).closest(".drp-calendar"),h=c.hasClass("left"),b=parseInt(c.find(".hourselect").val(),10),S=parseInt(c.find(".minuteselect").val(),10);isNaN(S)&&(S=parseInt(c.find(".minuteselect option:last").val(),10));var E=this.timePickerSeconds?parseInt(c.find(".secondselect").val(),10):0;if(!this.timePicker24Hour){var A=c.find(".ampmselect").val();A==="PM"&&b<12&&(b+=12),A==="AM"&&b===12&&(b=0)}if(h){var F=this.startDate.clone();F.hour(b),F.minute(S),F.second(E),this.setStartDate(F),this.singleDatePicker?this.endDate=this.startDate.clone():this.endDate&&this.endDate.format("YYYY-MM-DD")==F.format("YYYY-MM-DD")&&this.endDate.isBefore(F)&&this.setEndDate(F.clone())}else if(this.endDate){var H=this.endDate.clone();H.hour(b),H.minute(S),H.second(E),this.setEndDate(H)}this.updateCalendars(),this.updateFormInputs(),this.renderTimePicker("left"),this.renderTimePicker("right")},elementChanged:function(){if(this.element.is("input")&&this.element.val().length){var o=this.element.val().split(this.locale.separator),c=null,h=null;o.length===2&&(c=t(o[0],this.locale.format),h=t(o[1],this.locale.format)),(this.singleDatePicker||c===null||h===null)&&(c=t(this.element.val(),this.locale.format),h=c),!(!c.isValid()||!h.isValid())&&(this.setStartDate(c),this.setEndDate(h),this.updateView())}},keydown:function(o){(o.keyCode===9||o.keyCode===13)&&this.hide(),o.keyCode===27&&(o.preventDefault(),o.stopPropagation(),this.hide())},updateElement:function(){if(this.element.is("input")&&this.autoUpdateInput){var o=this.startDate.format(this.locale.format);this.singleDatePicker||(o+=this.locale.separator+this.endDate.format(this.locale.format)),o!==this.element.val()&&this.element.val(o).trigger("change")}},remove:function(){this.container.remove(),this.element.off(".daterangepicker"),this.element.removeData()}},r.fn.daterangepicker=function(o,c){var h=r.extend(!0,{},r.fn.daterangepicker.defaultOptions,o);return this.each(function(){var b=r(this);b.data("daterangepicker")&&b.data("daterangepicker").remove(),b.data("daterangepicker",new s(b,h,c))}),this},s})})(MM);var Hf=function(e,t){return Hf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(r[o]=s[o])},Hf(e,t)};function OM(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Hf(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}(function(e){OM(t,e);function t(r){var s=e.call(this,r)||this;return s.ref=null,s.$picker=null,s}return t.prototype.componentDidMount=function(){var r=this;this.$picker=RM(this.ref),this.$picker.daterangepicker(this.props.initialSettings,this.handleCallback.bind(this)),["Show","Hide","ShowCalendar","HideCalendar","Apply","Cancel"].forEach(function(s){var o,c=s.charAt(0).toLowerCase()+s.slice(1);(o=r.$picker)===null||o===void 0||o.on(c+".daterangepicker",r.makeEventHandler("on"+s))})},t.prototype.componentWillUnmount=function(){var r,s;(s=(r=this.$picker)===null||r===void 0?void 0:r.data("daterangepicker"))===null||s===void 0||s.remove()},t.prototype.handleCallback=function(){for(var r,s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];typeof this.props.onCallback=="function"&&(r=this.props).onCallback.apply(r,s)},t.prototype.makeEventHandler=function(r){var s=this,o=this.props.onEvent;return function(c,h){typeof o=="function"&&o(c,h),typeof s.props[r]=="function"&&s.props[r](c,h)}},t.prototype.setStartDate=function(r){var s,o;(o=(s=this.$picker)===null||s===void 0?void 0:s.data("daterangepicker"))===null||o===void 0||o.setStartDate(r)},t.prototype.setEndDate=function(r){var s,o;(o=(s=this.$picker)===null||s===void 0?void 0:s.data("daterangepicker"))===null||o===void 0||o.setEndDate(r)},t.prototype.render=function(){var r=this,s=D.reactExports.Children.only(this.props.children);return D.reactExports.cloneElement(s,{ref:function(o){return r.ref=o}})},t})(D.reactExports.Component);Wr(e=>D.jsxRuntimeExports.jsx(xM,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...e}))(({theme:e})=>({width:42,height:26,padding:0,"&.MuiSwitch-root":{margin:0,marginRight:8},"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:se.color.primary300,opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:e.palette.grey[100]},"&.Mui-disabled + .MuiSwitch-track":{opacity:.7}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:22,height:22},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:"#E9E9EA",opacity:1}}));/**
|
|
180
180
|
* @license
|
|
181
181
|
* Copyright 2017 Google LLC
|
|
182
182
|
*
|
|
@@ -206,7 +206,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
206
206
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
207
207
|
* See the License for the specific language governing permissions and
|
|
208
208
|
* limitations under the License.
|
|
209
|
-
*/const A0=function(e){const t=[];let r=0;for(let s=0;s<e.length;s++){let o=e.charCodeAt(s);o<128?t[r++]=o:o<2048?(t[r++]=o>>6|192,t[r++]=o&63|128):(o&64512)===55296&&s+1<e.length&&(e.charCodeAt(s+1)&64512)===56320?(o=65536+((o&1023)<<10)+(e.charCodeAt(++s)&1023),t[r++]=o>>18|240,t[r++]=o>>12&63|128,t[r++]=o>>6&63|128,t[r++]=o&63|128):(t[r++]=o>>12|224,t[r++]=o>>6&63|128,t[r++]=o&63|128)}return t},
|
|
209
|
+
*/const A0=function(e){const t=[];let r=0;for(let s=0;s<e.length;s++){let o=e.charCodeAt(s);o<128?t[r++]=o:o<2048?(t[r++]=o>>6|192,t[r++]=o&63|128):(o&64512)===55296&&s+1<e.length&&(e.charCodeAt(s+1)&64512)===56320?(o=65536+((o&1023)<<10)+(e.charCodeAt(++s)&1023),t[r++]=o>>18|240,t[r++]=o>>12&63|128,t[r++]=o>>6&63|128,t[r++]=o&63|128):(t[r++]=o>>12|224,t[r++]=o>>6&63|128,t[r++]=o&63|128)}return t},IM=function(e){const t=[];let r=0,s=0;for(;r<e.length;){const o=e[r++];if(o<128)t[s++]=String.fromCharCode(o);else if(o>191&&o<224){const c=e[r++];t[s++]=String.fromCharCode((o&31)<<6|c&63)}else if(o>239&&o<365){const c=e[r++],h=e[r++],b=e[r++],S=((o&7)<<18|(c&63)<<12|(h&63)<<6|b&63)-65536;t[s++]=String.fromCharCode(55296+(S>>10)),t[s++]=String.fromCharCode(56320+(S&1023))}else{const c=e[r++],h=e[r++];t[s++]=String.fromCharCode((o&15)<<12|(c&63)<<6|h&63)}}return t.join("")},O0={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const r=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,s=[];for(let o=0;o<e.length;o+=3){const c=e[o],h=o+1<e.length,b=h?e[o+1]:0,S=o+2<e.length,E=S?e[o+2]:0,A=c>>2,F=(c&3)<<4|b>>4;let H=(b&15)<<2|E>>6,K=E&63;S||(K=64,h||(H=64)),s.push(r[A],r[F],r[H],r[K])}return s.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(A0(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):IM(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const r=t?this.charToByteMapWebSafe_:this.charToByteMap_,s=[];for(let o=0;o<e.length;){const c=r[e.charAt(o++)],b=o<e.length?r[e.charAt(o)]:0;++o;const E=o<e.length?r[e.charAt(o)]:64;++o;const F=o<e.length?r[e.charAt(o)]:64;if(++o,c==null||b==null||E==null||F==null)throw new PM;const H=c<<2|b>>4;if(s.push(H),E!==64){const K=b<<4&240|E>>2;if(s.push(K),F!==64){const U=E<<6&192|F;s.push(U)}}}return s},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class PM extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const NM=function(e){const t=A0(e);return O0.encodeByteArray(t,!0)},I0=function(e){return NM(e).replace(/\./g,"")},LM=function(e){try{return O0.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};/**
|
|
210
210
|
* @license
|
|
211
211
|
* Copyright 2022 Google LLC
|
|
212
212
|
*
|
|
@@ -221,7 +221,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
221
221
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
222
222
|
* See the License for the specific language governing permissions and
|
|
223
223
|
* limitations under the License.
|
|
224
|
-
*/function
|
|
224
|
+
*/function jM(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}/**
|
|
225
225
|
* @license
|
|
226
226
|
* Copyright 2022 Google LLC
|
|
227
227
|
*
|
|
@@ -236,7 +236,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
236
236
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
237
237
|
* See the License for the specific language governing permissions and
|
|
238
238
|
* limitations under the License.
|
|
239
|
-
*/const
|
|
239
|
+
*/const $M=()=>jM().__FIREBASE_DEFAULTS__,FM=()=>{if(typeof process>"u"||typeof process.env>"u")return;const e=process.env.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},YM=()=>{if(typeof document>"u")return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const t=e&&LM(e[1]);return t&&JSON.parse(t)},WM=()=>{try{return $M()||FM()||YM()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},P0=()=>{var e;return(e=WM())===null||e===void 0?void 0:e.config};/**
|
|
240
240
|
* @license
|
|
241
241
|
* Copyright 2017 Google LLC
|
|
242
242
|
*
|
|
@@ -251,7 +251,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
251
251
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
252
252
|
* See the License for the specific language governing permissions and
|
|
253
253
|
* limitations under the License.
|
|
254
|
-
*/class
|
|
254
|
+
*/class BM{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((t,r)=>{this.resolve=t,this.reject=r})}wrapCallback(t){return(r,s)=>{r?this.reject(r):this.resolve(s),typeof t=="function"&&(this.promise.catch(()=>{}),t.length===1?t(r):t(r,s))}}}function N0(){try{return typeof indexedDB=="object"}catch{return!1}}function L0(){return new Promise((e,t)=>{try{let r=!0;const s="validate-browser-context-for-indexeddb-analytics-module",o=self.indexedDB.open(s);o.onsuccess=()=>{o.result.close(),r||self.indexedDB.deleteDatabase(s),e(!0)},o.onupgradeneeded=()=>{r=!1},o.onerror=()=>{var c;t(((c=o.error)===null||c===void 0?void 0:c.message)||"")}}catch(r){t(r)}})}function HM(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}/**
|
|
255
255
|
* @license
|
|
256
256
|
* Copyright 2017 Google LLC
|
|
257
257
|
*
|
|
@@ -266,7 +266,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
266
266
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
267
267
|
* See the License for the specific language governing permissions and
|
|
268
268
|
* limitations under the License.
|
|
269
|
-
*/const
|
|
269
|
+
*/const UM="FirebaseError";class sa extends Error{constructor(t,r,s){super(r),this.code=t,this.customData=s,this.name=UM,Object.setPrototypeOf(this,sa.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,ql.prototype.create)}}class ql{constructor(t,r,s){this.service=t,this.serviceName=r,this.errors=s}create(t,...r){const s=r[0]||{},o=`${this.service}/${t}`,c=this.errors[t],h=c?qM(c,s):"Error",b=`${this.serviceName}: ${h} (${o}).`;return new sa(o,b,s)}}function qM(e,t){return e.replace(zM,(r,s)=>{const o=t[s];return o!=null?String(o):`<${s}?>`})}const zM=/\{\$([^}]+)}/g;function Uf(e,t){if(e===t)return!0;const r=Object.keys(e),s=Object.keys(t);for(const o of r){if(!s.includes(o))return!1;const c=e[o],h=t[o];if(Tg(c)&&Tg(h)){if(!Uf(c,h))return!1}else if(c!==h)return!1}for(const o of s)if(!r.includes(o))return!1;return!0}function Tg(e){return e!==null&&typeof e=="object"}/**
|
|
270
270
|
* @license
|
|
271
271
|
* Copyright 2021 Google LLC
|
|
272
272
|
*
|
|
@@ -311,7 +311,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
311
311
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
312
312
|
* See the License for the specific language governing permissions and
|
|
313
313
|
* limitations under the License.
|
|
314
|
-
*/class
|
|
314
|
+
*/class VM{constructor(t,r){this.name=t,this.container=r,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(t){const r=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(r)){const s=new BM;if(this.instancesDeferred.set(r,s),this.isInitialized(r)||this.shouldAutoInitialize())try{const o=this.getOrInitializeService({instanceIdentifier:r});o&&s.resolve(o)}catch{}}return this.instancesDeferred.get(r).promise}getImmediate(t){var r;const s=this.normalizeInstanceIdentifier(t==null?void 0:t.identifier),o=(r=t==null?void 0:t.optional)!==null&&r!==void 0?r:!1;if(this.isInitialized(s)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:s})}catch(c){if(o)return null;throw c}else{if(o)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(t){if(t.name!==this.name)throw Error(`Mismatching Component ${t.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=t,!!this.shouldAutoInitialize()){if(KM(t))try{this.getOrInitializeService({instanceIdentifier:ls})}catch{}for(const[r,s]of this.instancesDeferred.entries()){const o=this.normalizeInstanceIdentifier(r);try{const c=this.getOrInitializeService({instanceIdentifier:o});s.resolve(c)}catch{}}}}clearInstance(t=ls){this.instancesDeferred.delete(t),this.instancesOptions.delete(t),this.instances.delete(t)}async delete(){const t=Array.from(this.instances.values());await Promise.all([...t.filter(r=>"INTERNAL"in r).map(r=>r.INTERNAL.delete()),...t.filter(r=>"_delete"in r).map(r=>r._delete())])}isComponentSet(){return this.component!=null}isInitialized(t=ls){return this.instances.has(t)}getOptions(t=ls){return this.instancesOptions.get(t)||{}}initialize(t={}){const{options:r={}}=t,s=this.normalizeInstanceIdentifier(t.instanceIdentifier);if(this.isInitialized(s))throw Error(`${this.name}(${s}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const o=this.getOrInitializeService({instanceIdentifier:s,options:r});for(const[c,h]of this.instancesDeferred.entries()){const b=this.normalizeInstanceIdentifier(c);s===b&&h.resolve(o)}return o}onInit(t,r){var s;const o=this.normalizeInstanceIdentifier(r),c=(s=this.onInitCallbacks.get(o))!==null&&s!==void 0?s:new Set;c.add(t),this.onInitCallbacks.set(o,c);const h=this.instances.get(o);return h&&t(h,o),()=>{c.delete(t)}}invokeOnInitCallbacks(t,r){const s=this.onInitCallbacks.get(r);if(s)for(const o of s)try{o(t,r)}catch{}}getOrInitializeService({instanceIdentifier:t,options:r={}}){let s=this.instances.get(t);if(!s&&this.component&&(s=this.component.instanceFactory(this.container,{instanceIdentifier:GM(t),options:r}),this.instances.set(t,s),this.instancesOptions.set(t,r),this.invokeOnInitCallbacks(s,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,s)}catch{}return s||null}normalizeInstanceIdentifier(t=ls){return this.component?this.component.multipleInstances?t:ls:t}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function GM(e){return e===ls?void 0:e}function KM(e){return e.instantiationMode==="EAGER"}/**
|
|
315
315
|
* @license
|
|
316
316
|
* Copyright 2019 Google LLC
|
|
317
317
|
*
|
|
@@ -326,7 +326,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
326
326
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
327
327
|
* See the License for the specific language governing permissions and
|
|
328
328
|
* limitations under the License.
|
|
329
|
-
*/class
|
|
329
|
+
*/class ZM{constructor(t){this.name=t,this.providers=new Map}addComponent(t){const r=this.getProvider(t.name);if(r.isComponentSet())throw new Error(`Component ${t.name} has already been registered with ${this.name}`);r.setComponent(t)}addOrOverwriteComponent(t){this.getProvider(t.name).isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)}getProvider(t){if(this.providers.has(t))return this.providers.get(t);const r=new VM(t,this);return this.providers.set(t,r),r}getProviders(){return Array.from(this.providers.values())}}/**
|
|
330
330
|
* @license
|
|
331
331
|
* Copyright 2017 Google LLC
|
|
332
332
|
*
|
|
@@ -341,7 +341,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
341
341
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
342
342
|
* See the License for the specific language governing permissions and
|
|
343
343
|
* limitations under the License.
|
|
344
|
-
*/var ut;(function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"})(ut||(ut={}));const
|
|
344
|
+
*/var ut;(function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"})(ut||(ut={}));const XM={debug:ut.DEBUG,verbose:ut.VERBOSE,info:ut.INFO,warn:ut.WARN,error:ut.ERROR,silent:ut.SILENT},JM=ut.INFO,QM={[ut.DEBUG]:"log",[ut.VERBOSE]:"log",[ut.INFO]:"info",[ut.WARN]:"warn",[ut.ERROR]:"error"},eA=(e,t,...r)=>{if(t<e.logLevel)return;const s=new Date().toISOString(),o=QM[t];if(o)console[o](`[${s}] ${e.name}:`,...r);else throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class tA{constructor(t){this.name=t,this._logLevel=JM,this._logHandler=eA,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(t){if(!(t in ut))throw new TypeError(`Invalid value "${t}" assigned to \`logLevel\``);this._logLevel=t}setLogLevel(t){this._logLevel=typeof t=="string"?XM[t]:t}get logHandler(){return this._logHandler}set logHandler(t){if(typeof t!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t}get userLogHandler(){return this._userLogHandler}set userLogHandler(t){this._userLogHandler=t}debug(...t){this._userLogHandler&&this._userLogHandler(this,ut.DEBUG,...t),this._logHandler(this,ut.DEBUG,...t)}log(...t){this._userLogHandler&&this._userLogHandler(this,ut.VERBOSE,...t),this._logHandler(this,ut.VERBOSE,...t)}info(...t){this._userLogHandler&&this._userLogHandler(this,ut.INFO,...t),this._logHandler(this,ut.INFO,...t)}warn(...t){this._userLogHandler&&this._userLogHandler(this,ut.WARN,...t),this._logHandler(this,ut.WARN,...t)}error(...t){this._userLogHandler&&this._userLogHandler(this,ut.ERROR,...t),this._logHandler(this,ut.ERROR,...t)}}const nA=(e,t)=>t.some(r=>e instanceof r);let Rg,Mg;function rA(){return Rg||(Rg=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function iA(){return Mg||(Mg=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const j0=new WeakMap,qf=new WeakMap,$0=new WeakMap,bf=new WeakMap,Bd=new WeakMap;function sA(e){const t=new Promise((r,s)=>{const o=()=>{e.removeEventListener("success",c),e.removeEventListener("error",h)},c=()=>{r(hi(e.result)),o()},h=()=>{s(e.error),o()};e.addEventListener("success",c),e.addEventListener("error",h)});return t.then(r=>{r instanceof IDBCursor&&j0.set(r,e)}).catch(()=>{}),Bd.set(t,e),t}function aA(e){if(qf.has(e))return;const t=new Promise((r,s)=>{const o=()=>{e.removeEventListener("complete",c),e.removeEventListener("error",h),e.removeEventListener("abort",h)},c=()=>{r(),o()},h=()=>{s(e.error||new DOMException("AbortError","AbortError")),o()};e.addEventListener("complete",c),e.addEventListener("error",h),e.addEventListener("abort",h)});qf.set(e,t)}let zf={get(e,t,r){if(e instanceof IDBTransaction){if(t==="done")return qf.get(e);if(t==="objectStoreNames")return e.objectStoreNames||$0.get(e);if(t==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return hi(e[t])},set(e,t,r){return e[t]=r,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function oA(e){zf=e(zf)}function uA(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...r){const s=e.call(xf(this),t,...r);return $0.set(s,t.sort?t.sort():[t]),hi(s)}:iA().includes(e)?function(...t){return e.apply(xf(this),t),hi(j0.get(this))}:function(...t){return hi(e.apply(xf(this),t))}}function lA(e){return typeof e=="function"?uA(e):(e instanceof IDBTransaction&&aA(e),nA(e,rA())?new Proxy(e,zf):e)}function hi(e){if(e instanceof IDBRequest)return sA(e);if(bf.has(e))return bf.get(e);const t=lA(e);return t!==e&&(bf.set(e,t),Bd.set(t,e)),t}const xf=e=>Bd.get(e);function zl(e,t,{blocked:r,upgrade:s,blocking:o,terminated:c}={}){const h=indexedDB.open(e,t),b=hi(h);return s&&h.addEventListener("upgradeneeded",S=>{s(hi(h.result),S.oldVersion,S.newVersion,hi(h.transaction),S)}),r&&h.addEventListener("blocked",S=>r(S.oldVersion,S.newVersion,S)),b.then(S=>{c&&S.addEventListener("close",()=>c()),o&&S.addEventListener("versionchange",E=>o(E.oldVersion,E.newVersion,E))}).catch(()=>{}),b}function _f(e,{blocked:t}={}){const r=indexedDB.deleteDatabase(e);return t&&r.addEventListener("blocked",s=>t(s.oldVersion,s)),hi(r).then(()=>{})}const cA=["get","getKey","getAll","getAllKeys","count"],fA=["put","add","delete","clear"],wf=new Map;function Ag(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(wf.get(t))return wf.get(t);const r=t.replace(/FromIndex$/,""),s=t!==r,o=fA.includes(r);if(!(r in(s?IDBIndex:IDBObjectStore).prototype)||!(o||cA.includes(r)))return;const c=async function(h,...b){const S=this.transaction(h,o?"readwrite":"readonly");let E=S.store;return s&&(E=E.index(b.shift())),(await Promise.all([E[r](...b),o&&S.done]))[0]};return wf.set(t,c),c}oA(e=>({...e,get:(t,r,s)=>Ag(t,r)||e.get(t,r,s),has:(t,r)=>!!Ag(t,r)||e.has(t,r)}));/**
|
|
345
345
|
* @license
|
|
346
346
|
* Copyright 2019 Google LLC
|
|
347
347
|
*
|
|
@@ -356,7 +356,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
356
356
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
357
357
|
* See the License for the specific language governing permissions and
|
|
358
358
|
* limitations under the License.
|
|
359
|
-
*/class
|
|
359
|
+
*/class dA{constructor(t){this.container=t}getPlatformInfoString(){return this.container.getProviders().map(r=>{if(hA(r)){const s=r.getImmediate();return`${s.library}/${s.version}`}else return null}).filter(r=>r).join(" ")}}function hA(e){const t=e.getComponent();return(t==null?void 0:t.type)==="VERSION"}const Vf="@firebase/app",Og="0.9.28";/**
|
|
360
360
|
* @license
|
|
361
361
|
* Copyright 2019 Google LLC
|
|
362
362
|
*
|
|
@@ -371,7 +371,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
371
371
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
372
372
|
* See the License for the specific language governing permissions and
|
|
373
373
|
* limitations under the License.
|
|
374
|
-
*/const ps=new
|
|
374
|
+
*/const ps=new tA("@firebase/app"),pA="@firebase/app-compat",gA="@firebase/analytics-compat",mA="@firebase/analytics",yA="@firebase/app-check-compat",vA="@firebase/app-check",bA="@firebase/auth",xA="@firebase/auth-compat",_A="@firebase/database",wA="@firebase/database-compat",SA="@firebase/functions",kA="@firebase/functions-compat",CA="@firebase/installations",DA="@firebase/installations-compat",EA="@firebase/messaging",TA="@firebase/messaging-compat",RA="@firebase/performance",MA="@firebase/performance-compat",AA="@firebase/remote-config",OA="@firebase/remote-config-compat",IA="@firebase/storage",PA="@firebase/storage-compat",NA="@firebase/firestore",LA="@firebase/firestore-compat",jA="firebase";/**
|
|
375
375
|
* @license
|
|
376
376
|
* Copyright 2019 Google LLC
|
|
377
377
|
*
|
|
@@ -386,7 +386,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
386
386
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
387
387
|
* See the License for the specific language governing permissions and
|
|
388
388
|
* limitations under the License.
|
|
389
|
-
*/const Gf="[DEFAULT]"
|
|
389
|
+
*/const Gf="[DEFAULT]",$A={[Vf]:"fire-core",[pA]:"fire-core-compat",[mA]:"fire-analytics",[gA]:"fire-analytics-compat",[vA]:"fire-app-check",[yA]:"fire-app-check-compat",[bA]:"fire-auth",[xA]:"fire-auth-compat",[_A]:"fire-rtdb",[wA]:"fire-rtdb-compat",[SA]:"fire-fn",[kA]:"fire-fn-compat",[CA]:"fire-iid",[DA]:"fire-iid-compat",[EA]:"fire-fcm",[TA]:"fire-fcm-compat",[RA]:"fire-perf",[MA]:"fire-perf-compat",[AA]:"fire-rc",[OA]:"fire-rc-compat",[IA]:"fire-gcs",[PA]:"fire-gcs-compat",[NA]:"fire-fst",[LA]:"fire-fst-compat","fire-js":"fire-js",[jA]:"fire-js-all"};/**
|
|
390
390
|
* @license
|
|
391
391
|
* Copyright 2019 Google LLC
|
|
392
392
|
*
|
|
@@ -401,7 +401,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
401
401
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
402
402
|
* See the License for the specific language governing permissions and
|
|
403
403
|
* limitations under the License.
|
|
404
|
-
*/const Zu=new Map,Kf=new Map;function
|
|
404
|
+
*/const Zu=new Map,Kf=new Map;function FA(e,t){try{e.container.addComponent(t)}catch(r){ps.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,r)}}function gs(e){const t=e.name;if(Kf.has(t))return ps.debug(`There were multiple attempts to register component ${t}.`),!1;Kf.set(t,e);for(const r of Zu.values())FA(r,e);return!0}function Hd(e,t){const r=e.container.getProvider("heartbeat").getImmediate({optional:!0});return r&&r.triggerHeartbeat(),e.container.getProvider(t)}/**
|
|
405
405
|
* @license
|
|
406
406
|
* Copyright 2019 Google LLC
|
|
407
407
|
*
|
|
@@ -416,7 +416,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
416
416
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
417
417
|
* See the License for the specific language governing permissions and
|
|
418
418
|
* limitations under the License.
|
|
419
|
-
*/const
|
|
419
|
+
*/const YA={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."},Yi=new ql("app","Firebase",YA);/**
|
|
420
420
|
* @license
|
|
421
421
|
* Copyright 2019 Google LLC
|
|
422
422
|
*
|
|
@@ -431,7 +431,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
431
431
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
432
432
|
* See the License for the specific language governing permissions and
|
|
433
433
|
* limitations under the License.
|
|
434
|
-
*/class
|
|
434
|
+
*/class WA{constructor(t,r,s){this._isDeleted=!1,this._options=Object.assign({},t),this._config=Object.assign({},r),this._name=r.name,this._automaticDataCollectionEnabled=r.automaticDataCollectionEnabled,this._container=s,this.container.addComponent(new Bi("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(t){this.checkDestroyed(),this._automaticDataCollectionEnabled=t}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(t){this._isDeleted=t}checkDestroyed(){if(this.isDeleted)throw Yi.create("app-deleted",{appName:this._name})}}function Ud(e,t={}){let r=e;typeof t!="object"&&(t={name:t});const s=Object.assign({name:Gf,automaticDataCollectionEnabled:!1},t),o=s.name;if(typeof o!="string"||!o)throw Yi.create("bad-app-name",{appName:String(o)});if(r||(r=P0()),!r)throw Yi.create("no-options");const c=Zu.get(o);if(c){if(Uf(r,c.options)&&Uf(s,c.config))return c;throw Yi.create("duplicate-app",{appName:o})}const h=new ZM(o);for(const S of Kf.values())h.addComponent(S);const b=new WA(r,s,h);return Zu.set(o,b),b}function BA(e=Gf){const t=Zu.get(e);if(!t&&e===Gf&&P0())return Ud();if(!t)throw Yi.create("no-app",{appName:e});return t}function Wi(e,t,r){var s;let o=(s=$A[e])!==null&&s!==void 0?s:e;r&&(o+=`-${r}`);const c=o.match(/\s|\//),h=t.match(/\s|\//);if(c||h){const b=[`Unable to register library "${o}" with version "${t}":`];c&&b.push(`library name "${o}" contains illegal characters (whitespace or "/")`),c&&h&&b.push("and"),h&&b.push(`version name "${t}" contains illegal characters (whitespace or "/")`),ps.warn(b.join(" "));return}gs(new Bi(`${o}-version`,()=>({library:o,version:t}),"VERSION"))}/**
|
|
435
435
|
* @license
|
|
436
436
|
* Copyright 2021 Google LLC
|
|
437
437
|
*
|
|
@@ -446,7 +446,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
446
446
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
447
447
|
* See the License for the specific language governing permissions and
|
|
448
448
|
* limitations under the License.
|
|
449
|
-
*/const
|
|
449
|
+
*/const HA="firebase-heartbeat-database",UA=1,so="firebase-heartbeat-store";let Sf=null;function F0(){return Sf||(Sf=zl(HA,UA,{upgrade:(e,t)=>{switch(t){case 0:try{e.createObjectStore(so)}catch(r){console.warn(r)}}}}).catch(e=>{throw Yi.create("idb-open",{originalErrorMessage:e.message})})),Sf}async function qA(e){try{const r=(await F0()).transaction(so),s=await r.objectStore(so).get(Y0(e));return await r.done,s}catch(t){if(t instanceof sa)ps.warn(t.message);else{const r=Yi.create("idb-get",{originalErrorMessage:t==null?void 0:t.message});ps.warn(r.message)}}}async function Ig(e,t){try{const s=(await F0()).transaction(so,"readwrite");await s.objectStore(so).put(t,Y0(e)),await s.done}catch(r){if(r instanceof sa)ps.warn(r.message);else{const s=Yi.create("idb-set",{originalErrorMessage:r==null?void 0:r.message});ps.warn(s.message)}}}function Y0(e){return`${e.name}!${e.options.appId}`}/**
|
|
450
450
|
* @license
|
|
451
451
|
* Copyright 2021 Google LLC
|
|
452
452
|
*
|
|
@@ -461,7 +461,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
461
461
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
462
462
|
* See the License for the specific language governing permissions and
|
|
463
463
|
* limitations under the License.
|
|
464
|
-
*/const
|
|
464
|
+
*/const zA=1024,VA=30*24*60*60*1e3;class GA{constructor(t){this.container=t,this._heartbeatsCache=null;const r=this.container.getProvider("app").getImmediate();this._storage=new ZA(r),this._heartbeatsCachePromise=this._storage.read().then(s=>(this._heartbeatsCache=s,s))}async triggerHeartbeat(){var t,r;const o=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),c=Pg();if(!(((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,((r=this._heartbeatsCache)===null||r===void 0?void 0:r.heartbeats)==null))&&!(this._heartbeatsCache.lastSentHeartbeatDate===c||this._heartbeatsCache.heartbeats.some(h=>h.date===c)))return this._heartbeatsCache.heartbeats.push({date:c,agent:o}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(h=>{const b=new Date(h.date).valueOf();return Date.now()-b<=VA}),this._storage.overwrite(this._heartbeatsCache)}async getHeartbeatsHeader(){var t;if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";const r=Pg(),{heartbeatsToSend:s,unsentEntries:o}=KA(this._heartbeatsCache.heartbeats),c=I0(JSON.stringify({version:2,heartbeats:s}));return this._heartbeatsCache.lastSentHeartbeatDate=r,o.length>0?(this._heartbeatsCache.heartbeats=o,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),c}}function Pg(){return new Date().toISOString().substring(0,10)}function KA(e,t=zA){const r=[];let s=e.slice();for(const o of e){const c=r.find(h=>h.agent===o.agent);if(c){if(c.dates.push(o.date),Ng(r)>t){c.dates.pop();break}}else if(r.push({agent:o.agent,dates:[o.date]}),Ng(r)>t){r.pop();break}s=s.slice(1)}return{heartbeatsToSend:r,unsentEntries:s}}class ZA{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return N0()?L0().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const r=await qA(this.app);return r!=null&&r.heartbeats?r:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(t){var r;if(await this._canUseIndexedDBPromise){const o=await this.read();return Ig(this.app,{lastSentHeartbeatDate:(r=t.lastSentHeartbeatDate)!==null&&r!==void 0?r:o.lastSentHeartbeatDate,heartbeats:t.heartbeats})}else return}async add(t){var r;if(await this._canUseIndexedDBPromise){const o=await this.read();return Ig(this.app,{lastSentHeartbeatDate:(r=t.lastSentHeartbeatDate)!==null&&r!==void 0?r:o.lastSentHeartbeatDate,heartbeats:[...o.heartbeats,...t.heartbeats]})}else return}}function Ng(e){return I0(JSON.stringify({version:2,heartbeats:e})).length}/**
|
|
465
465
|
* @license
|
|
466
466
|
* Copyright 2019 Google LLC
|
|
467
467
|
*
|
|
@@ -476,7 +476,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
476
476
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
477
477
|
* See the License for the specific language governing permissions and
|
|
478
478
|
* limitations under the License.
|
|
479
|
-
*/function
|
|
479
|
+
*/function XA(e){gs(new Bi("platform-logger",t=>new dA(t),"PRIVATE")),gs(new Bi("heartbeat",t=>new GA(t),"PRIVATE")),Wi(Vf,Og,e),Wi(Vf,Og,"esm2017"),Wi("fire-js","")}XA("");var JA="firebase",QA="10.8.1";/**
|
|
480
480
|
* @license
|
|
481
481
|
* Copyright 2020 Google LLC
|
|
482
482
|
*
|
|
@@ -491,7 +491,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
491
491
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
492
492
|
* See the License for the specific language governing permissions and
|
|
493
493
|
* limitations under the License.
|
|
494
|
-
*/Wi(
|
|
494
|
+
*/Wi(JA,QA,"app");const W0="@firebase/installations",qd="0.6.5";/**
|
|
495
495
|
* @license
|
|
496
496
|
* Copyright 2019 Google LLC
|
|
497
497
|
*
|
|
@@ -506,7 +506,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
506
506
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
507
507
|
* See the License for the specific language governing permissions and
|
|
508
508
|
* limitations under the License.
|
|
509
|
-
*/const B0=1e4,H0=`w:${qd}`,U0="FIS_v2",
|
|
509
|
+
*/const B0=1e4,H0=`w:${qd}`,U0="FIS_v2",eO="https://firebaseinstallations.googleapis.com/v1",tO=60*60*1e3,nO="installations",rO="Installations";/**
|
|
510
510
|
* @license
|
|
511
511
|
* Copyright 2019 Google LLC
|
|
512
512
|
*
|
|
@@ -521,7 +521,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
521
521
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
522
522
|
* See the License for the specific language governing permissions and
|
|
523
523
|
* limitations under the License.
|
|
524
|
-
*/const
|
|
524
|
+
*/const iO={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."},ms=new ql(nO,rO,iO);function q0(e){return e instanceof sa&&e.code.includes("request-failed")}/**
|
|
525
525
|
* @license
|
|
526
526
|
* Copyright 2019 Google LLC
|
|
527
527
|
*
|
|
@@ -536,7 +536,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
536
536
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
537
537
|
* See the License for the specific language governing permissions and
|
|
538
538
|
* limitations under the License.
|
|
539
|
-
*/function z0({projectId:e}){return`${
|
|
539
|
+
*/function z0({projectId:e}){return`${eO}/projects/${e}/installations`}function V0(e){return{token:e.token,requestStatus:2,expiresIn:aO(e.expiresIn),creationTime:Date.now()}}async function G0(e,t){const s=(await t.json()).error;return ms.create("request-failed",{requestName:e,serverCode:s.code,serverMessage:s.message,serverStatus:s.status})}function K0({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}function sO(e,{refreshToken:t}){const r=K0(e);return r.append("Authorization",oO(t)),r}async function Z0(e){const t=await e();return t.status>=500&&t.status<600?e():t}function aO(e){return Number(e.replace("s","000"))}function oO(e){return`${U0} ${e}`}/**
|
|
540
540
|
* @license
|
|
541
541
|
* Copyright 2019 Google LLC
|
|
542
542
|
*
|
|
@@ -551,7 +551,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
551
551
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
552
552
|
* See the License for the specific language governing permissions and
|
|
553
553
|
* limitations under the License.
|
|
554
|
-
*/async function
|
|
554
|
+
*/async function uO({appConfig:e,heartbeatServiceProvider:t},{fid:r}){const s=z0(e),o=K0(e),c=t.getImmediate({optional:!0});if(c){const E=await c.getHeartbeatsHeader();E&&o.append("x-firebase-client",E)}const h={fid:r,authVersion:U0,appId:e.appId,sdkVersion:H0},b={method:"POST",headers:o,body:JSON.stringify(h)},S=await Z0(()=>fetch(s,b));if(S.ok){const E=await S.json();return{fid:E.fid||r,registrationStatus:2,refreshToken:E.refreshToken,authToken:V0(E.authToken)}}else throw await G0("Create Installation",S)}/**
|
|
555
555
|
* @license
|
|
556
556
|
* Copyright 2019 Google LLC
|
|
557
557
|
*
|
|
@@ -581,7 +581,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
581
581
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
582
582
|
* See the License for the specific language governing permissions and
|
|
583
583
|
* limitations under the License.
|
|
584
|
-
*/function
|
|
584
|
+
*/function lO(e){return btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_")}/**
|
|
585
585
|
* @license
|
|
586
586
|
* Copyright 2019 Google LLC
|
|
587
587
|
*
|
|
@@ -596,7 +596,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
596
596
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
597
597
|
* See the License for the specific language governing permissions and
|
|
598
598
|
* limitations under the License.
|
|
599
|
-
*/const
|
|
599
|
+
*/const cO=/^[cdef][\w-]{21}$/,Zf="";function fO(){try{const e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;const r=dO(e);return cO.test(r)?r:Zf}catch{return Zf}}function dO(e){return lO(e).substr(0,22)}/**
|
|
600
600
|
* @license
|
|
601
601
|
* Copyright 2019 Google LLC
|
|
602
602
|
*
|
|
@@ -626,7 +626,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
626
626
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
627
627
|
* See the License for the specific language governing permissions and
|
|
628
628
|
* limitations under the License.
|
|
629
|
-
*/const J0=new Map;function Q0(e,t){const r=Vl(e);ey(r,t),
|
|
629
|
+
*/const J0=new Map;function Q0(e,t){const r=Vl(e);ey(r,t),hO(r,t)}function ey(e,t){const r=J0.get(e);if(r)for(const s of r)s(t)}function hO(e,t){const r=pO();r&&r.postMessage({key:e,fid:t}),gO()}let ds=null;function pO(){return!ds&&"BroadcastChannel"in self&&(ds=new BroadcastChannel("[Firebase] FID Change"),ds.onmessage=e=>{ey(e.data.key,e.data.fid)}),ds}function gO(){J0.size===0&&ds&&(ds.close(),ds=null)}/**
|
|
630
630
|
* @license
|
|
631
631
|
* Copyright 2019 Google LLC
|
|
632
632
|
*
|
|
@@ -641,7 +641,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
641
641
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
642
642
|
* See the License for the specific language governing permissions and
|
|
643
643
|
* limitations under the License.
|
|
644
|
-
*/const
|
|
644
|
+
*/const mO="firebase-installations-database",yO=1,ys="firebase-installations-store";let kf=null;function zd(){return kf||(kf=zl(mO,yO,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(ys)}}})),kf}async function Xu(e,t){const r=Vl(e),o=(await zd()).transaction(ys,"readwrite"),c=o.objectStore(ys),h=await c.get(r);return await c.put(t,r),await o.done,(!h||h.fid!==t.fid)&&Q0(e,t.fid),t}async function ty(e){const t=Vl(e),s=(await zd()).transaction(ys,"readwrite");await s.objectStore(ys).delete(t),await s.done}async function Gl(e,t){const r=Vl(e),o=(await zd()).transaction(ys,"readwrite"),c=o.objectStore(ys),h=await c.get(r),b=t(h);return b===void 0?await c.delete(r):await c.put(b,r),await o.done,b&&(!h||h.fid!==b.fid)&&Q0(e,b.fid),b}/**
|
|
645
645
|
* @license
|
|
646
646
|
* Copyright 2019 Google LLC
|
|
647
647
|
*
|
|
@@ -656,7 +656,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
656
656
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
657
657
|
* See the License for the specific language governing permissions and
|
|
658
658
|
* limitations under the License.
|
|
659
|
-
*/async function Vd(e){let t;const r=await Gl(e.appConfig,s=>{const o=
|
|
659
|
+
*/async function Vd(e){let t;const r=await Gl(e.appConfig,s=>{const o=vO(s),c=bO(e,o);return t=c.registrationPromise,c.installationEntry});return r.fid===Zf?{installationEntry:await t}:{installationEntry:r,registrationPromise:t}}function vO(e){const t=e||{fid:fO(),registrationStatus:0};return ny(t)}function bO(e,t){if(t.registrationStatus===0){if(!navigator.onLine){const o=Promise.reject(ms.create("app-offline"));return{installationEntry:t,registrationPromise:o}}const r={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},s=xO(e,r);return{installationEntry:r,registrationPromise:s}}else return t.registrationStatus===1?{installationEntry:t,registrationPromise:_O(e)}:{installationEntry:t}}async function xO(e,t){try{const r=await uO(e,t);return Xu(e.appConfig,r)}catch(r){throw q0(r)&&r.customData.serverCode===409?await ty(e.appConfig):await Xu(e.appConfig,{fid:t.fid,registrationStatus:0}),r}}async function _O(e){let t=await Lg(e.appConfig);for(;t.registrationStatus===1;)await X0(100),t=await Lg(e.appConfig);if(t.registrationStatus===0){const{installationEntry:r,registrationPromise:s}=await Vd(e);return s||r}return t}function Lg(e){return Gl(e,t=>{if(!t)throw ms.create("installation-not-found");return ny(t)})}function ny(e){return wO(e)?{fid:e.fid,registrationStatus:0}:e}function wO(e){return e.registrationStatus===1&&e.registrationTime+B0<Date.now()}/**
|
|
660
660
|
* @license
|
|
661
661
|
* Copyright 2019 Google LLC
|
|
662
662
|
*
|
|
@@ -671,7 +671,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
671
671
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
672
672
|
* See the License for the specific language governing permissions and
|
|
673
673
|
* limitations under the License.
|
|
674
|
-
*/async function
|
|
674
|
+
*/async function SO({appConfig:e,heartbeatServiceProvider:t},r){const s=kO(e,r),o=sO(e,r),c=t.getImmediate({optional:!0});if(c){const E=await c.getHeartbeatsHeader();E&&o.append("x-firebase-client",E)}const h={installation:{sdkVersion:H0,appId:e.appId}},b={method:"POST",headers:o,body:JSON.stringify(h)},S=await Z0(()=>fetch(s,b));if(S.ok){const E=await S.json();return V0(E)}else throw await G0("Generate Auth Token",S)}function kO(e,{fid:t}){return`${z0(e)}/${t}/authTokens:generate`}/**
|
|
675
675
|
* @license
|
|
676
676
|
* Copyright 2019 Google LLC
|
|
677
677
|
*
|
|
@@ -686,7 +686,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
686
686
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
687
687
|
* See the License for the specific language governing permissions and
|
|
688
688
|
* limitations under the License.
|
|
689
|
-
*/async function Gd(e,t=!1){let r;const s=await Gl(e.appConfig,c=>{if(!ry(c))throw ms.create("not-registered");const h=c.authToken;if(!t&&
|
|
689
|
+
*/async function Gd(e,t=!1){let r;const s=await Gl(e.appConfig,c=>{if(!ry(c))throw ms.create("not-registered");const h=c.authToken;if(!t&&EO(h))return c;if(h.requestStatus===1)return r=CO(e,t),c;{if(!navigator.onLine)throw ms.create("app-offline");const b=RO(c);return r=DO(e,b),b}});return r?await r:s.authToken}async function CO(e,t){let r=await jg(e.appConfig);for(;r.authToken.requestStatus===1;)await X0(100),r=await jg(e.appConfig);const s=r.authToken;return s.requestStatus===0?Gd(e,t):s}function jg(e){return Gl(e,t=>{if(!ry(t))throw ms.create("not-registered");const r=t.authToken;return MO(r)?Object.assign(Object.assign({},t),{authToken:{requestStatus:0}}):t})}async function DO(e,t){try{const r=await SO(e,t),s=Object.assign(Object.assign({},t),{authToken:r});return await Xu(e.appConfig,s),r}catch(r){if(q0(r)&&(r.customData.serverCode===401||r.customData.serverCode===404))await ty(e.appConfig);else{const s=Object.assign(Object.assign({},t),{authToken:{requestStatus:0}});await Xu(e.appConfig,s)}throw r}}function ry(e){return e!==void 0&&e.registrationStatus===2}function EO(e){return e.requestStatus===2&&!TO(e)}function TO(e){const t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+tO}function RO(e){const t={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},e),{authToken:t})}function MO(e){return e.requestStatus===1&&e.requestTime+B0<Date.now()}/**
|
|
690
690
|
* @license
|
|
691
691
|
* Copyright 2019 Google LLC
|
|
692
692
|
*
|
|
@@ -701,7 +701,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
701
701
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
702
702
|
* See the License for the specific language governing permissions and
|
|
703
703
|
* limitations under the License.
|
|
704
|
-
*/async function
|
|
704
|
+
*/async function AO(e){const t=e,{installationEntry:r,registrationPromise:s}=await Vd(t);return s?s.catch(console.error):Gd(t).catch(console.error),r.fid}/**
|
|
705
705
|
* @license
|
|
706
706
|
* Copyright 2019 Google LLC
|
|
707
707
|
*
|
|
@@ -716,7 +716,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
716
716
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
717
717
|
* See the License for the specific language governing permissions and
|
|
718
718
|
* limitations under the License.
|
|
719
|
-
*/async function
|
|
719
|
+
*/async function OO(e,t=!1){const r=e;return await IO(r),(await Gd(r,t)).token}async function IO(e){const{registrationPromise:t}=await Vd(e);t&&await t}/**
|
|
720
720
|
* @license
|
|
721
721
|
* Copyright 2019 Google LLC
|
|
722
722
|
*
|
|
@@ -731,7 +731,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
731
731
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
732
732
|
* See the License for the specific language governing permissions and
|
|
733
733
|
* limitations under the License.
|
|
734
|
-
*/function
|
|
734
|
+
*/function PO(e){if(!e||!e.options)throw Cf("App Configuration");if(!e.name)throw Cf("App Name");const t=["projectId","apiKey","appId"];for(const r of t)if(!e.options[r])throw Cf(r);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}function Cf(e){return ms.create("missing-app-config-values",{valueName:e})}/**
|
|
735
735
|
* @license
|
|
736
736
|
* Copyright 2020 Google LLC
|
|
737
737
|
*
|
|
@@ -746,7 +746,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
746
746
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
747
747
|
* See the License for the specific language governing permissions and
|
|
748
748
|
* limitations under the License.
|
|
749
|
-
*/const iy="installations",
|
|
749
|
+
*/const iy="installations",NO="installations-internal",LO=e=>{const t=e.getProvider("app").getImmediate(),r=PO(t),s=Hd(t,"heartbeat");return{app:t,appConfig:r,heartbeatServiceProvider:s,_delete:()=>Promise.resolve()}},jO=e=>{const t=e.getProvider("app").getImmediate(),r=Hd(t,iy).getImmediate();return{getId:()=>AO(r),getToken:o=>OO(r,o)}};function $O(){gs(new Bi(iy,LO,"PUBLIC")),gs(new Bi(NO,jO,"PRIVATE"))}$O();Wi(W0,qd);Wi(W0,qd,"esm2017");/**
|
|
750
750
|
* @license
|
|
751
751
|
* Copyright 2019 Google LLC
|
|
752
752
|
*
|
|
@@ -761,7 +761,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
761
761
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
762
762
|
* See the License for the specific language governing permissions and
|
|
763
763
|
* limitations under the License.
|
|
764
|
-
*/const
|
|
764
|
+
*/const FO="/firebase-messaging-sw.js",YO="/firebase-cloud-messaging-push-scope",sy="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",WO="https://fcmregistrations.googleapis.com/v1",ay="google.c.a.c_id",BO="google.c.a.c_l",HO="google.c.a.ts",UO="google.c.a.e";var $g;(function(e){e[e.DATA_MESSAGE=1]="DATA_MESSAGE",e[e.DISPLAY_NOTIFICATION=3]="DISPLAY_NOTIFICATION"})($g||($g={}));/**
|
|
765
765
|
* @license
|
|
766
766
|
* Copyright 2018 Google LLC
|
|
767
767
|
*
|
|
@@ -789,7 +789,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
789
789
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
790
790
|
* See the License for the specific language governing permissions and
|
|
791
791
|
* limitations under the License.
|
|
792
|
-
*/function ui(e){const t=new Uint8Array(e);return btoa(String.fromCharCode(...t)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function
|
|
792
|
+
*/function ui(e){const t=new Uint8Array(e);return btoa(String.fromCharCode(...t)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function qO(e){const t="=".repeat((4-e.length%4)%4),r=(e+t).replace(/\-/g,"+").replace(/_/g,"/"),s=atob(r),o=new Uint8Array(s.length);for(let c=0;c<s.length;++c)o[c]=s.charCodeAt(c);return o}/**
|
|
793
793
|
* @license
|
|
794
794
|
* Copyright 2019 Google LLC
|
|
795
795
|
*
|
|
@@ -804,7 +804,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
804
804
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
805
805
|
* See the License for the specific language governing permissions and
|
|
806
806
|
* limitations under the License.
|
|
807
|
-
*/const Df="fcm_token_details_db",
|
|
807
|
+
*/const Df="fcm_token_details_db",zO=5,Fg="fcm_token_object_Store";async function VO(e){if("databases"in indexedDB&&!(await indexedDB.databases()).map(c=>c.name).includes(Df))return null;let t=null;return(await zl(Df,zO,{upgrade:async(s,o,c,h)=>{var b;if(o<2||!s.objectStoreNames.contains(Fg))return;const S=h.objectStore(Fg),E=await S.index("fcmSenderId").get(e);if(await S.clear(),!!E){if(o===2){const A=E;if(!A.auth||!A.p256dh||!A.endpoint)return;t={token:A.fcmToken,createTime:(b=A.createTime)!==null&&b!==void 0?b:Date.now(),subscriptionOptions:{auth:A.auth,p256dh:A.p256dh,endpoint:A.endpoint,swScope:A.swScope,vapidKey:typeof A.vapidKey=="string"?A.vapidKey:ui(A.vapidKey)}}}else if(o===3){const A=E;t={token:A.fcmToken,createTime:A.createTime,subscriptionOptions:{auth:ui(A.auth),p256dh:ui(A.p256dh),endpoint:A.endpoint,swScope:A.swScope,vapidKey:ui(A.vapidKey)}}}else if(o===4){const A=E;t={token:A.fcmToken,createTime:A.createTime,subscriptionOptions:{auth:ui(A.auth),p256dh:ui(A.p256dh),endpoint:A.endpoint,swScope:A.swScope,vapidKey:ui(A.vapidKey)}}}}}})).close(),await _f(Df),await _f("fcm_vapid_details_db"),await _f("undefined"),GO(t)?t:null}function GO(e){if(!e||!e.subscriptionOptions)return!1;const{subscriptionOptions:t}=e;return typeof e.createTime=="number"&&e.createTime>0&&typeof e.token=="string"&&e.token.length>0&&typeof t.auth=="string"&&t.auth.length>0&&typeof t.p256dh=="string"&&t.p256dh.length>0&&typeof t.endpoint=="string"&&t.endpoint.length>0&&typeof t.swScope=="string"&&t.swScope.length>0&&typeof t.vapidKey=="string"&&t.vapidKey.length>0}/**
|
|
808
808
|
* @license
|
|
809
809
|
* Copyright 2019 Google LLC
|
|
810
810
|
*
|
|
@@ -819,7 +819,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
819
819
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
820
820
|
* See the License for the specific language governing permissions and
|
|
821
821
|
* limitations under the License.
|
|
822
|
-
*/const
|
|
822
|
+
*/const KO="firebase-messaging-database",ZO=1,vs="firebase-messaging-store";let Ef=null;function Kd(){return Ef||(Ef=zl(KO,ZO,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(vs)}}})),Ef}async function oy(e){const t=Xd(e),s=await(await Kd()).transaction(vs).objectStore(vs).get(t);if(s)return s;{const o=await VO(e.appConfig.senderId);if(o)return await Zd(e,o),o}}async function Zd(e,t){const r=Xd(e),o=(await Kd()).transaction(vs,"readwrite");return await o.objectStore(vs).put(t,r),await o.done,t}async function XO(e){const t=Xd(e),s=(await Kd()).transaction(vs,"readwrite");await s.objectStore(vs).delete(t),await s.done}function Xd({appConfig:e}){return e.appId}/**
|
|
823
823
|
* @license
|
|
824
824
|
* Copyright 2017 Google LLC
|
|
825
825
|
*
|
|
@@ -834,7 +834,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
834
834
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
835
835
|
* See the License for the specific language governing permissions and
|
|
836
836
|
* limitations under the License.
|
|
837
|
-
*/const
|
|
837
|
+
*/const JO={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"only-available-in-window":"This method is available in a Window context.","only-available-in-sw":"This method is available in a service worker context.","permission-default":"The notification permission was not granted and dismissed instead.","permission-blocked":"The notification permission was not granted and blocked instead.","unsupported-browser":"This browser doesn't support the API's required to use the Firebase SDK.","indexed-db-unsupported":"This browser doesn't support indexedDb.open() (ex. Safari iFrame, Firefox Private Browsing, etc)","failed-service-worker-registration":"We are unable to register the default service worker. {$browserErrorMessage}","token-subscribe-failed":"A problem occurred while subscribing the user to FCM: {$errorInfo}","token-subscribe-no-token":"FCM returned no token when subscribing the user to push.","token-unsubscribe-failed":"A problem occurred while unsubscribing the user from FCM: {$errorInfo}","token-update-failed":"A problem occurred while updating the user from FCM: {$errorInfo}","token-update-no-token":"FCM returned no token when updating the user to push.","use-sw-after-get-token":"The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.","invalid-sw-registration":"The input to useServiceWorker() must be a ServiceWorkerRegistration.","invalid-bg-handler":"The input to setBackgroundMessageHandler() must be a function.","invalid-vapid-key":"The public VAPID key must be a string.","use-vapid-key-after-get-token":"The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used."},nn=new ql("messaging","Messaging",JO);/**
|
|
838
838
|
* @license
|
|
839
839
|
* Copyright 2019 Google LLC
|
|
840
840
|
*
|
|
@@ -849,7 +849,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
849
849
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
850
850
|
* See the License for the specific language governing permissions and
|
|
851
851
|
* limitations under the License.
|
|
852
|
-
*/async function
|
|
852
|
+
*/async function QO(e,t){const r=await Qd(e),s=ly(t),o={method:"POST",headers:r,body:JSON.stringify(s)};let c;try{c=await(await fetch(Jd(e.appConfig),o)).json()}catch(h){throw nn.create("token-subscribe-failed",{errorInfo:h==null?void 0:h.toString()})}if(c.error){const h=c.error.message;throw nn.create("token-subscribe-failed",{errorInfo:h})}if(!c.token)throw nn.create("token-subscribe-no-token");return c.token}async function eI(e,t){const r=await Qd(e),s=ly(t.subscriptionOptions),o={method:"PATCH",headers:r,body:JSON.stringify(s)};let c;try{c=await(await fetch(`${Jd(e.appConfig)}/${t.token}`,o)).json()}catch(h){throw nn.create("token-update-failed",{errorInfo:h==null?void 0:h.toString()})}if(c.error){const h=c.error.message;throw nn.create("token-update-failed",{errorInfo:h})}if(!c.token)throw nn.create("token-update-no-token");return c.token}async function uy(e,t){const s={method:"DELETE",headers:await Qd(e)};try{const c=await(await fetch(`${Jd(e.appConfig)}/${t}`,s)).json();if(c.error){const h=c.error.message;throw nn.create("token-unsubscribe-failed",{errorInfo:h})}}catch(o){throw nn.create("token-unsubscribe-failed",{errorInfo:o==null?void 0:o.toString()})}}function Jd({projectId:e}){return`${WO}/projects/${e}/registrations`}async function Qd({appConfig:e,installations:t}){const r=await t.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e.apiKey,"x-goog-firebase-installations-auth":`FIS ${r}`})}function ly({p256dh:e,auth:t,endpoint:r,vapidKey:s}){const o={web:{endpoint:r,auth:t,p256dh:e}};return s!==sy&&(o.web.applicationPubKey=s),o}/**
|
|
853
853
|
* @license
|
|
854
854
|
* Copyright 2019 Google LLC
|
|
855
855
|
*
|
|
@@ -864,7 +864,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
864
864
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
865
865
|
* See the License for the specific language governing permissions and
|
|
866
866
|
* limitations under the License.
|
|
867
|
-
*/const
|
|
867
|
+
*/const tI=7*24*60*60*1e3;async function nI(e){const t=await sI(e.swRegistration,e.vapidKey),r={vapidKey:e.vapidKey,swScope:e.swRegistration.scope,endpoint:t.endpoint,auth:ui(t.getKey("auth")),p256dh:ui(t.getKey("p256dh"))},s=await oy(e.firebaseDependencies);if(s){if(aI(s.subscriptionOptions,r))return Date.now()>=s.createTime+tI?iI(e,{token:s.token,createTime:Date.now(),subscriptionOptions:r}):s.token;try{await uy(e.firebaseDependencies,s.token)}catch(o){console.warn(o)}return Yg(e.firebaseDependencies,r)}else return Yg(e.firebaseDependencies,r)}async function rI(e){const t=await oy(e.firebaseDependencies);t&&(await uy(e.firebaseDependencies,t.token),await XO(e.firebaseDependencies));const r=await e.swRegistration.pushManager.getSubscription();return r?r.unsubscribe():!0}async function iI(e,t){try{const r=await eI(e.firebaseDependencies,t),s=Object.assign(Object.assign({},t),{token:r,createTime:Date.now()});return await Zd(e.firebaseDependencies,s),r}catch(r){throw await rI(e),r}}async function Yg(e,t){const s={token:await QO(e,t),createTime:Date.now(),subscriptionOptions:t};return await Zd(e,s),s.token}async function sI(e,t){const r=await e.pushManager.getSubscription();return r||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:qO(t)})}function aI(e,t){const r=t.vapidKey===e.vapidKey,s=t.endpoint===e.endpoint,o=t.auth===e.auth,c=t.p256dh===e.p256dh;return r&&s&&o&&c}/**
|
|
868
868
|
* @license
|
|
869
869
|
* Copyright 2020 Google LLC
|
|
870
870
|
*
|
|
@@ -879,7 +879,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
879
879
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
880
880
|
* See the License for the specific language governing permissions and
|
|
881
881
|
* limitations under the License.
|
|
882
|
-
*/function
|
|
882
|
+
*/function Wg(e){const t={from:e.from,collapseKey:e.collapse_key,messageId:e.fcmMessageId};return oI(t,e),uI(t,e),lI(t,e),t}function oI(e,t){if(!t.notification)return;e.notification={};const r=t.notification.title;r&&(e.notification.title=r);const s=t.notification.body;s&&(e.notification.body=s);const o=t.notification.image;o&&(e.notification.image=o);const c=t.notification.icon;c&&(e.notification.icon=c)}function uI(e,t){t.data&&(e.data=t.data)}function lI(e,t){var r,s,o,c,h;if(!t.fcmOptions&&!(!((r=t.notification)===null||r===void 0)&&r.click_action))return;e.fcmOptions={};const b=(o=(s=t.fcmOptions)===null||s===void 0?void 0:s.link)!==null&&o!==void 0?o:(c=t.notification)===null||c===void 0?void 0:c.click_action;b&&(e.fcmOptions.link=b);const S=(h=t.fcmOptions)===null||h===void 0?void 0:h.analytics_label;S&&(e.fcmOptions.analyticsLabel=S)}/**
|
|
883
883
|
* @license
|
|
884
884
|
* Copyright 2019 Google LLC
|
|
885
885
|
*
|
|
@@ -894,7 +894,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
894
894
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
895
895
|
* See the License for the specific language governing permissions and
|
|
896
896
|
* limitations under the License.
|
|
897
|
-
*/function
|
|
897
|
+
*/function cI(e){return typeof e=="object"&&!!e&&ay in e}/**
|
|
898
898
|
* @license
|
|
899
899
|
* Copyright 2019 Google LLC
|
|
900
900
|
*
|
|
@@ -924,7 +924,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
924
924
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
925
925
|
* See the License for the specific language governing permissions and
|
|
926
926
|
* limitations under the License.
|
|
927
|
-
*/function
|
|
927
|
+
*/function fI(e){if(!e||!e.options)throw Tf("App Configuration Object");if(!e.name)throw Tf("App Name");const t=["projectId","apiKey","appId","messagingSenderId"],{options:r}=e;for(const s of t)if(!r[s])throw Tf(s);return{appName:e.name,projectId:r.projectId,apiKey:r.apiKey,appId:r.appId,senderId:r.messagingSenderId}}function Tf(e){return nn.create("missing-app-config-values",{valueName:e})}/**
|
|
928
928
|
* @license
|
|
929
929
|
* Copyright 2020 Google LLC
|
|
930
930
|
*
|
|
@@ -939,7 +939,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
939
939
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
940
940
|
* See the License for the specific language governing permissions and
|
|
941
941
|
* limitations under the License.
|
|
942
|
-
*/class
|
|
942
|
+
*/class dI{constructor(t,r,s){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const o=fI(t);this.firebaseDependencies={app:t,appConfig:o,installations:r,analyticsProvider:s}}_delete(){return Promise.resolve()}}/**
|
|
943
943
|
* @license
|
|
944
944
|
* Copyright 2020 Google LLC
|
|
945
945
|
*
|
|
@@ -954,7 +954,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
954
954
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
955
955
|
* See the License for the specific language governing permissions and
|
|
956
956
|
* limitations under the License.
|
|
957
|
-
*/async function
|
|
957
|
+
*/async function hI(e){try{e.swRegistration=await navigator.serviceWorker.register(FO,{scope:YO}),e.swRegistration.update().catch(()=>{})}catch(t){throw nn.create("failed-service-worker-registration",{browserErrorMessage:t==null?void 0:t.message})}}/**
|
|
958
958
|
* @license
|
|
959
959
|
* Copyright 2020 Google LLC
|
|
960
960
|
*
|
|
@@ -969,7 +969,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
969
969
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
970
970
|
* See the License for the specific language governing permissions and
|
|
971
971
|
* limitations under the License.
|
|
972
|
-
*/async function
|
|
972
|
+
*/async function pI(e,t){if(!t&&!e.swRegistration&&await hI(e),!(!t&&e.swRegistration)){if(!(t instanceof ServiceWorkerRegistration))throw nn.create("invalid-sw-registration");e.swRegistration=t}}/**
|
|
973
973
|
* @license
|
|
974
974
|
* Copyright 2020 Google LLC
|
|
975
975
|
*
|
|
@@ -984,7 +984,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
984
984
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
985
985
|
* See the License for the specific language governing permissions and
|
|
986
986
|
* limitations under the License.
|
|
987
|
-
*/async function
|
|
987
|
+
*/async function gI(e,t){t?e.vapidKey=t:e.vapidKey||(e.vapidKey=sy)}/**
|
|
988
988
|
* @license
|
|
989
989
|
* Copyright 2020 Google LLC
|
|
990
990
|
*
|
|
@@ -999,7 +999,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
999
999
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1000
1000
|
* See the License for the specific language governing permissions and
|
|
1001
1001
|
* limitations under the License.
|
|
1002
|
-
*/async function fy(e,t){if(!navigator)throw nn.create("only-available-in-window");if(Notification.permission==="default"&&await Notification.requestPermission(),Notification.permission!=="granted")throw nn.create("permission-blocked");return await
|
|
1002
|
+
*/async function fy(e,t){if(!navigator)throw nn.create("only-available-in-window");if(Notification.permission==="default"&&await Notification.requestPermission(),Notification.permission!=="granted")throw nn.create("permission-blocked");return await gI(e,t==null?void 0:t.vapidKey),await pI(e,t==null?void 0:t.serviceWorkerRegistration),nI(e)}/**
|
|
1003
1003
|
* @license
|
|
1004
1004
|
* Copyright 2019 Google LLC
|
|
1005
1005
|
*
|
|
@@ -1014,7 +1014,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1014
1014
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1015
1015
|
* See the License for the specific language governing permissions and
|
|
1016
1016
|
* limitations under the License.
|
|
1017
|
-
*/async function
|
|
1017
|
+
*/async function mI(e,t,r){const s=yI(t);(await e.firebaseDependencies.analyticsProvider.get()).logEvent(s,{message_id:r[ay],message_name:r[BO],message_time:r[HO],message_device_time:Math.floor(Date.now()/1e3)})}function yI(e){switch(e){case ao.NOTIFICATION_CLICKED:return"notification_open";case ao.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}/**
|
|
1018
1018
|
* @license
|
|
1019
1019
|
* Copyright 2017 Google LLC
|
|
1020
1020
|
*
|
|
@@ -1029,7 +1029,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1029
1029
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1030
1030
|
* See the License for the specific language governing permissions and
|
|
1031
1031
|
* limitations under the License.
|
|
1032
|
-
*/async function
|
|
1032
|
+
*/async function vI(e,t){const r=t.data;if(!r.isFirebaseMessaging)return;e.onMessageHandler&&r.messageType===ao.PUSH_RECEIVED&&(typeof e.onMessageHandler=="function"?e.onMessageHandler(Wg(r)):e.onMessageHandler.next(Wg(r)));const s=r.data;cI(s)&&s[UO]==="1"&&await mI(e,r.messageType,s)}const Bg="@firebase/messaging",Hg="0.12.6";/**
|
|
1033
1033
|
* @license
|
|
1034
1034
|
* Copyright 2020 Google LLC
|
|
1035
1035
|
*
|
|
@@ -1044,7 +1044,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1044
1044
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1045
1045
|
* See the License for the specific language governing permissions and
|
|
1046
1046
|
* limitations under the License.
|
|
1047
|
-
*/const
|
|
1047
|
+
*/const bI=e=>{const t=new dI(e.getProvider("app").getImmediate(),e.getProvider("installations-internal").getImmediate(),e.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",r=>vI(t,r)),t},xI=e=>{const t=e.getProvider("messaging").getImmediate();return{getToken:s=>fy(t,s)}};function _I(){gs(new Bi("messaging",bI,"PUBLIC")),gs(new Bi("messaging-internal",xI,"PRIVATE")),Wi(Bg,Hg),Wi(Bg,Hg,"esm2017")}/**
|
|
1048
1048
|
* @license
|
|
1049
1049
|
* Copyright 2020 Google LLC
|
|
1050
1050
|
*
|
|
@@ -1059,7 +1059,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1059
1059
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1060
1060
|
* See the License for the specific language governing permissions and
|
|
1061
1061
|
* limitations under the License.
|
|
1062
|
-
*/async function
|
|
1062
|
+
*/async function wI(){try{await L0()}catch{return!1}return typeof window<"u"&&N0()&&HM()&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}/**
|
|
1063
1063
|
* @license
|
|
1064
1064
|
* Copyright 2020 Google LLC
|
|
1065
1065
|
*
|
|
@@ -1074,7 +1074,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1074
1074
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1075
1075
|
* See the License for the specific language governing permissions and
|
|
1076
1076
|
* limitations under the License.
|
|
1077
|
-
*/function
|
|
1077
|
+
*/function SI(e,t){if(!navigator)throw nn.create("only-available-in-window");return e.onMessageHandler=t,()=>{e.onMessageHandler=null}}/**
|
|
1078
1078
|
* @license
|
|
1079
1079
|
* Copyright 2017 Google LLC
|
|
1080
1080
|
*
|
|
@@ -1089,8 +1089,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1089
1089
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1090
1090
|
* See the License for the specific language governing permissions and
|
|
1091
1091
|
* limitations under the License.
|
|
1092
|
-
*/function dy(e=FA()){return bI().then(t=>{if(!t)throw nn.create("unsupported-browser")},t=>{throw nn.create("indexed-db-unsupported")}),Hd(Wd(e),"messaging").getImmediate()}async function _I(e,t){return e=Wd(e),fy(e,t)}function wI(e,t){return e=Wd(e),xI(e,t)}vI();const hy=e=>{"serviceWorker"in navigator&&navigator.serviceWorker.register(e.path).then(function(t){console.log("Registration successful, scope is:",t.scope),console.log("initialize service worker props ",e);const r=dy(Ud({apiKey:e.apiKey,authDomain:e.authDomain,projectId:e.projectId,storageBucket:e.storageBucket,messagingSenderId:e.messagingSenderId,appId:e.appId,measurementId:e.measurementId}));_I(r,{serviceWorkerRegistration:t,vapidKey:e.vapidKey}).then(async s=>{var o,c;if(s){console.log("current token for client: ",s);try{const h="/notification-management/api/v1/notifications/registrations",b=e.baseUrl+h;await se.axios.post(b,{deviceToken:s},{withCredentials:!0})}catch(h){console.log(h),se.pushError(((c=(o=h.response)==null?void 0:o.data)==null?void 0:c.errorMessage)||"Have error when get notification list")}}else console.log("No registration token available. Request permission to generate one.")}).catch(s=>{console.log("An error occurred while retrieving token. ",s)})}).catch(function(t){console.log("Service worker registration failed, error:",t)})},SI=e=>{const t=new BroadcastChannel("my-channel");t.onmessage=r=>{console.log("Broadcast chanel message",r),r&&e(s=>({...s,unread:{...s.unread,total:s.unread.total+1}}))}},kI=e=>new Promise(t=>{const r=dy(Ud({apiKey:e.apiKey,authDomain:e.authDomain,projectId:e.projectId,storageBucket:e.storageBucket,messagingSenderId:e.messagingSenderId,appId:e.appId,measurementId:e.measurementId}));wI(r,s=>{console.log("payload",s),t(s)})}),us={"subscription-diaglog":"_subscription-diaglog_1gvmm_2","subscription-container":"_subscription-container_1gvmm_15","subscription-title":"_subscription-title_1gvmm_25","subscription-text":"_subscription-text_1gvmm_34","subscription-btn__container":"_subscription-btn__container_1gvmm_38","btn-success":"_btn-success_1gvmm_44","btn-cancel":"_btn-cancel_1gvmm_45"},CI=["granted","denied"],DI=e=>{const[t,r]=D.reactExports.useState(!1),s=()=>{Notification.requestPermission(function(c){c==="granted"&&hy(e),CI.includes(c)&&r(!0)})},o=()=>{r(!0)};return D.jsxRuntimeExports.jsx(D.jsxRuntimeExports.Fragment,{children:t?"":D.jsxRuntimeExports.jsx("div",{className:us["subscription-diaglog"],children:D.jsxRuntimeExports.jsxs("div",{className:us["subscription-container"],children:[D.jsxRuntimeExports.jsx("h4",{className:us["subscription-title"],children:"Notification"}),D.jsxRuntimeExports.jsx("p",{className:us["subscription-text"],children:"Choice to receive notifications for the most recent updates. You have the flexibility to disable them whenever you prefer."}),D.jsxRuntimeExports.jsxs("div",{className:us["subscription-btn__container"],children:[D.jsxRuntimeExports.jsx("button",{className:us["btn-cancel"],onClick:o,children:"Not now"}),D.jsxRuntimeExports.jsx("button",{className:us["btn-success"],onClick:s,children:"Turn on"})]})]})})})},Ou={"notification-massage_container":"_notification-massage_container_ql4az_1","notification-name":"_notification-name_ql4az_18","notification-message_service":"_notification-message_service_ql4az_23","notification-message_button-close":"_notification-message_button-close_ql4az_27"},Hi=D.reactExports.createContext({}),EI=({children:e})=>{const[t,r]=D.reactExports.useState(!0),[s,o]=D.reactExports.useState({all:{rows:[],total:0},unread:{rows:[],total:0}}),c=()=>{r(!t)},h=()=>{r(!0)};return D.jsxRuntimeExports.jsx(Hi.Provider,{value:{isOpen:t,toggleOpen:c,setShowModalFalse:h,notidata:s,setNotiData:o},children:e})},TI=e=>{const[t,r]=D.reactExports.useState({userName:"",message:"",context:""});console.log(t);const{setNotiData:s}=D.reactExports.useContext(Hi);function o(){return D.jsxRuntimeExports.jsx("div",{className:Ou["notification-massage_container"],children:D.jsxRuntimeExports.jsxs("div",{className:Ou["notification-massage_content"],children:[D.jsxRuntimeExports.jsx("h6",{className:Ou["notification-name"],children:t==null?void 0:t.userName}),D.jsxRuntimeExports.jsxs("div",{className:Ou["notification-message_service"],children:[D.jsxRuntimeExports.jsxs("span",{children:[`${t==null?void 0:t.message} `," "]}),D.jsxRuntimeExports.jsx("span",{children:t==null?void 0:t.context})]})]})})}return D.reactExports.useEffect(()=>{t&&Notification.permission==="granted"&&(t.userName||t.message||t.context)&&se.notify(D.jsxRuntimeExports.jsx(o,{}))},[t]),D.reactExports.useEffect(()=>{Notification.permission==="granted"&&hy(e)},[Notification.permission]),D.reactExports.useEffect(()=>{SI(s)},[]),kI(e).then(c=>{var h,b,S;console.log("aaa",c),r({userName:(h=c==null?void 0:c.data)==null?void 0:h.userName,message:(b=c==null?void 0:c.data)==null?void 0:b.message,context:(S=c==null?void 0:c.data)==null?void 0:S.context}),s(E=>{var A;return{...E,unread:{...E.unread,total:((A=E.unread)==null?void 0:A.total)+1}}})}).catch(c=>console.log("failed: ",c)),D.jsxRuntimeExports.jsx("div",{children:"Notification"in window&&Notification.permission==="default"?D.jsxRuntimeExports.jsx(DI,{...e}):""})};function RI({config:e,pushError:t=se.pushError}){const r=se.axios.create(e);r.interceptors.request.use(async o=>(o.headers={Accept:"application/json","Content-Type":"application/json"},o),o=>Promise.reject(o)),r.interceptors.response.use(o=>o,async o=>s(o));async function s(o){var S,E,A,F;console.error("Error 🚨:",o);const c=o.config,h=(E=(S=o.response)==null?void 0:S.data)==null?void 0:E.errorMessage,b=h===se.ERROR_MESSAGE.TOKEN_EXPIRED;return((A=o.response)==null?void 0:A.status)===401?b&&!c._retry?(c._retry=!0,r.post("/authentication/api/v1/auth/refresh-token").then(()=>r(c)).catch(()=>se.login(e.baseURL))):((!h||!b)&&se.login(e.baseURL),Promise.reject("Unauthorized! Please login again.")):(((F=o.response)==null?void 0:F.status)===403?t(Ka.t("errorMessage.403")):t(Ka.t(`${h}`)||"Something went wrong!"),Promise.reject(o.response.data))}return r}const MI=e=>{const[t,r]=D.reactExports.useState([]);return D.reactExports.useEffect(()=>{se.axios.get(`${e}/user-management/api/v1/users/my-account/permissions`,{withCredentials:!0}).then(s=>r(s.data)).catch(s=>{console.error("Getting user permission error:",s)})},[e]),t},py=e=>(t,r)=>{const s=MI(e);return r?t.every(o=>s==null?void 0:s.includes(o)):t.some(o=>s==null?void 0:s.includes(o))},gy=({baseUrl:e,accessWith:t,requireAll:r,children:s})=>py(e)(t,r)?D.jsxRuntimeExports.jsx(D.jsxRuntimeExports.Fragment,{children:s}):null;{const e=D.s(gy,{props:{baseUrl:"string",accessWith:"json",requireAll:"boolean",children:"json"},shadow:"open"});customElements.define("has-permission",e)}const AI=D.reactExports.createContext({}),OI=()=>D.reactExports.useContext(AI);function Hg(e){Promise.resolve().then(e).catch(function(t){return setTimeout(function(){throw t})})}var II=function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(r){r()},this.batchNotifyFn=function(r){r()}}var t=e.prototype;return t.batch=function(s){var o;this.transactions++;try{o=s()}finally{this.transactions--,this.transactions||this.flush()}return o},t.schedule=function(s){var o=this;this.transactions?this.queue.push(s):Hg(function(){o.notifyFn(s)})},t.batchCalls=function(s){var o=this;return function(){for(var c=arguments.length,h=new Array(c),b=0;b<c;b++)h[b]=arguments[b];o.schedule(function(){s.apply(void 0,h)})}},t.flush=function(){var s=this,o=this.queue;this.queue=[],o.length&&Hg(function(){s.batchNotifyFn(function(){o.forEach(function(c){s.notifyFn(c)})})})},t.setNotifyFunction=function(s){this.notifyFn=s},t.setBatchNotifyFunction=function(s){this.batchNotifyFn=s},e}(),PI=new II,NI=D.ReactDOM.unstable_batchedUpdates;PI.setBatchNotifyFunction(NI);D.reactExports.createContext({});const LI=RI({config:{withCredentials:!0}}),eh=({baseUrl:e,notiPath:t,setNotiData:r})=>async()=>{var E;const c=e+(t||"/notification-management/api/v1/notifications"),b=(E=(await LI.get(c,{params:{filter:{notificationFilterType:"all"}},withCredentials:!0})).data)==null?void 0:E.rows,S=b==null?void 0:b.filter(A=>A.isRead===!1);r({all:{rows:b??[],total:(b==null?void 0:b.length)??0},unread:{rows:S??[],total:(S==null?void 0:S.length)??0}})},jI=({notification:e,baseUrl:t,notiPath:r,markAllAsReadState:s,brandColors:o})=>{const[c,h]=D.reactExports.useState({id:e.id,isRead:e.isRead}),b=c.isRead===!1?"unread":"read",S={borderColor:c.isRead?"#c5c5c5":(o==null?void 0:o.primary500)||se.color.primary500,backgroundColor:c.isRead?"#c5c5c5":(o==null?void 0:o.primary500)||se.color.primary500},{setNotiData:E}=D.reactExports.useContext(Hi),A=eh({baseUrl:t,notiPath:r,setNotiData:E}),F=async(U,$)=>{var ee,Y;try{const le=r||`/notification-management/api/v1/notifications/${U}`,ge=t+le;await se.axios.put(ge,{isRead:$},{withCredentials:!0})}catch(le){h({id:e.id,isRead:e.isRead}),se.pushError(((Y=(ee=le.response)==null?void 0:ee.data)==null?void 0:Y.errorMessage)||"Have error when get notification list")}await A()},H=(U,$)=>{console.log("specificNotificationID",U);const ee=!$;h(Y=>({...Y,isRead:ee})),console.log("newIsReadState",ee),F(U,ee)};D.reactExports.useEffect(()=>{h(s?U=>({...U,isRead:!0}):{id:e.id,isRead:e.isRead})},[s,e.id,e.isRead]);const K=U=>{const $=oe(),ee=oe(U),Y=$.diff(ee,"days"),le=$.diff(ee,"minutes"),ge=$.diff(ee,"months"),ye=$.diff(ee,"years");if(console.log("diffInMonths",ge),le<1)return"Just now";if(Y===0){if(le<=60)return`${le} minute${le>1?"s":""} ago`;const re=Math.floor(le/60);return console.log("diffIhours",re),`${re} hour${re>1?"s":""} ago`}if(Y===1)return"Yesterday";if(Y>=2&&Y<7)return`${Y} days ago`;if(Y<30){const re=Math.floor(Y/7);return`${re} week${re>1?"s":""} ago`}return ge===0||ge===1?"1 month ago":ge<12?`${ge} months ago`:ye===0||ye===1?"1 year ago":"Over 1 year ago"};return D.jsxRuntimeExports.jsxs("div",{className:"notitification-item__container",onClick:()=>H(e.id,e.isRead),children:[D.jsxRuntimeExports.jsx("div",{className:"notification-item__image-container",children:D.jsxRuntimeExports.jsx("img",{src:e==null?void 0:e.userAvatarUrl,onError:({currentTarget:U})=>{U.onerror=null,U.src="https://ukpcsaprod.blob.core.windows.net/account/logo.png"},alt:e.userName})}),D.jsxRuntimeExports.jsxs("div",{className:"notification-item__content",children:[D.jsxRuntimeExports.jsx("p",{className:"notification-item__user-name",children:e.userName}),D.jsxRuntimeExports.jsxs("p",{children:[`${e.message} `,D.jsxRuntimeExports.jsx("span",{children:e==null?void 0:e.context})]})]}),D.jsxRuntimeExports.jsx("div",{className:"notification-item__time",children:D.jsxRuntimeExports.jsx("p",{children:K(e.createdAt)})}),D.jsxRuntimeExports.jsx("button",{className:`${b} notification-item__read-at`,"aria-label":"Mark as read",style:S})]})},Ug=({notidata:e,baseUrl:t,notiPath:r,brandColors:s})=>{const[o,c]=D.reactExports.useState(!1);console.log(o);const{setNotiData:h}=D.reactExports.useContext(Hi),b=eh({baseUrl:t,notiPath:r,setNotiData:h}),S=async()=>{var A,F;try{const K=t+(r||"/notification-management/api/v1/notifications");await se.axios.put(K,{withCredentials:!0})}catch(H){console.log(H),c(!1),se.pushError(((F=(A=H.response)==null?void 0:A.data)==null?void 0:F.errorMessage)||"Have error when get notification list")}await b(),c(!1)},E=()=>{c(!0),S()};return D.jsxRuntimeExports.jsxs("div",{children:[D.jsxRuntimeExports.jsx("div",{className:"mark-all-read",children:D.jsxRuntimeExports.jsx("button",{onClick:E,children:"Mark all as read"})}),D.jsxRuntimeExports.jsx("div",{className:"notification-items__wrapper",children:D.jsxRuntimeExports.jsx("div",{className:"notification-items__content",children:Object.values(e).map((A,F)=>D.jsxRuntimeExports.jsx(jI,{notification:A,baseUrl:t,notiPath:r,markAllAsReadState:o,brandColors:s},F))})})]})},$I=({baseUrl:e,notiPath:t,brandColors:r})=>{var S,E,A,F;const{setShowModalFalse:s}=D.reactExports.useContext(Hi),{notidata:o}=D.reactExports.useContext(Hi);console.log(o);const[c,h]=D.reactExports.useState("all"),b=[{id:"all",tabTitle:`All (${((S=o==null?void 0:o.all)==null?void 0:S.total)||0})`,children:D.jsxRuntimeExports.jsx(Ug,{notidata:((E=o==null?void 0:o.all)==null?void 0:E.rows)||[],baseUrl:e,notiPath:t,brandColors:r})},{id:"unread",tabTitle:`Unread (${((A=o==null?void 0:o.unread)==null?void 0:A.total)||0})`,children:D.jsxRuntimeExports.jsx(Ug,{notidata:((F=o==null?void 0:o.unread)==null?void 0:F.rows)||[],baseUrl:e,notiPath:t,brandColors:r})}];return D.jsxRuntimeExports.jsx(D.jsxRuntimeExports.Fragment,{children:D.jsxRuntimeExports.jsx("div",{style:{position:"absolute",backgroundColor:"#fff",width:"550px",height:"90vh",right:"100px",top:"100%",padding:"32px",boxShadow:"10px 0px 20px #999",borderRadius:"0 0 8px 8px",overflow:"hidden"},children:D.jsxRuntimeExports.jsxs("div",{className:"list-content",children:[D.jsxRuntimeExports.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[D.jsxRuntimeExports.jsx("h3",{style:{fontSize:"24px",fontWeight:"500"},className:"list-title",children:"Notifications"}),D.jsxRuntimeExports.jsx("button",{onClick:s,children:D.jsxRuntimeExports.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:D.jsxRuntimeExports.jsx("path",{d:"M7.05086 6.13616C6.66033 5.74563 6.02717 5.74563 5.63664 6.13616C5.24612 6.52668 5.24612 7.15984 5.63664 7.55037L10.5864 12.5001L5.63664 17.4499C5.24612 17.8404 5.24612 18.4736 5.63664 18.8641C6.02717 19.2546 6.66033 19.2546 7.05086 18.8641L12.0006 13.9143L16.9504 18.8641C17.3409 19.2546 17.974 19.2546 18.3646 18.8641C18.7551 18.4736 18.7551 17.8404 18.3646 17.4499L13.4148 12.5001L18.3646 7.55037C18.7551 7.15984 18.7551 6.52668 18.3646 6.13616C17.974 5.74563 17.3409 5.74563 16.9504 6.13616L12.0006 11.0859L7.05086 6.13616Z",fill:"#85858A"})})})]}),D.jsxRuntimeExports.jsx(Sw,{tabs:b,setCurrentTab:h,currentTab:c,brandColors:r})]})})})};function th({childrenClass:e,action:t,childrenOpenClass:r}){const s=document.querySelector("#topbar-wrapper"),o=s==null?void 0:s.shadowRoot,c=o==null?void 0:o.querySelector(`.${e}`),h=o==null?void 0:o.querySelector(`.${r}`),b=o==null?void 0:o.querySelector("nav"),S=E=>{b==null||b.addEventListener("click",function(A){if(r&&h&&h.contains(A.target)){if(c&&!c.contains(A.target))return}else c&&!c.contains(A.target)&&t()}),s&&!s.contains(E.target)&&t()};document.addEventListener("click",S,!0)}function FI({iconColor:e="#fff",baseUrl:t,notiPath:r,brandColors:s}){var F,H;const{isOpen:o,toggleOpen:c,setShowModalFalse:h}=D.reactExports.useContext(Hi),{notidata:b,setNotiData:S}=D.reactExports.useContext(Hi),E=eh({baseUrl:t,notiPath:r,setNotiData:S}),A=async()=>{var K,U;try{await E()}catch($){se.pushError(((U=(K=$.response)==null?void 0:K.data)==null?void 0:U.errorMessage)||"Have error when get notification list")}};return D.reactExports.useEffect(()=>{A()},[o]),D.reactExports.useEffect(()=>{th({childrenClass:"noti-container",childrenOpenClass:"noti-list-container",action(){h()}})}),D.jsxRuntimeExports.jsxs("div",{children:[D.jsxRuntimeExports.jsxs("div",{className:"noti-container",style:{position:"relative"},children:[D.jsxRuntimeExports.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:c,style:{cursor:"pointer",color:e},children:[D.jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.7968 17.4705C16.5901 17.4705 18.8076 16.8556 19.0218 14.3874C19.0218 11.921 17.4757 12.0796 17.4757 9.05334C17.4757 6.68952 15.2352 4 11.7968 4C8.35833 4 6.1178 6.68952 6.1178 9.05334C6.1178 12.0796 4.57178 11.921 4.57178 14.3874C4.78679 16.8649 7.00428 17.4705 11.7968 17.4705Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),D.jsxRuntimeExports.jsx("path",{d:"M13.8274 20.0286C12.6679 21.3161 10.8591 21.3313 9.68848 20.0286",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(b==null?void 0:b.unread)&&(b==null?void 0:b.unread.total)!=0&&D.jsxRuntimeExports.jsx("span",{style:{position:"absolute",top:"-9px",right:"-6px",background:`${se.color}`,width:"20px",height:"20px",border:"1px solid #fff",borderRadius:"50%",color:"#fff",fontSize:"12px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:se.color.danger},className:"notification-badge",children:((F=b==null?void 0:b.unread)==null?void 0:F.total)>9?"9+":`${(H=b==null?void 0:b.unread)==null?void 0:H.total}`})]}),D.jsxRuntimeExports.jsx("div",{className:"noti-list-container",children:!o&&D.jsxRuntimeExports.jsx($I,{baseUrl:t,notiPath:r,brandColors:s})})]})}const YI=`.avatar-dropdown-item{padding:.5rem;font-size:.875rem;line-height:1.25rem;cursor:pointer;border-radius:.25rem}.avartarDropdownMenu{background-color:#fff;padding:.5rem;width:13rem;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);position:absolute;left:-10rem;top:3.2rem}.avartarDropdownMenu ul{list-style:none;padding-inline-start:0;margin-block-end:0}.navbar{position:fixed;display:flex;z-index:30;background:#292929;top:0;width:100%;padding-left:2.5rem;height:64px}.navbar-container{display:flex;flex-direction:row;align-items:center;width:100%;justify-content:space-between}.logo-container{height:100%;display:flex;align-items:center}.right-side-container{display:flex;flex-direction:row;align-items:center;text-align:center;margin-right:2.5rem;gap:1rem}.userContainer{display:flex;align-items:center;gap:.5rem}.languageDropdown{height:100%;padding:0 8px;display:flex;flex-direction:row;gap:8px;border-radius:3px;align-items:center;justify-content:center;height:41px;background-color:#ffffff1a;cursor:pointer;transition:background-color .2s ease-in-out}.languageDropdown:hover{background-color:#fff3}.userFullName{color:#fff;font-weight:400;font-size:.875rem;line-height:1.25rem}.userAvatar{width:2.5rem;height:2.5rem;cursor:pointer;-o-object-fit:cover;object-fit:cover;border-radius:9999px;border:2px solid #FFFFFF}#userAvatarNull{width:2.5rem;height:2.5rem;background:#DDDDDD;border-radius:100%;color:#fff;font-size:20px;font-weight:400;display:flex;align-items:center;justify-content:center}.relative{position:relative}.cursor-pointer{cursor:pointer}
|
|
1092
|
+
*/function dy(e=BA()){return wI().then(t=>{if(!t)throw nn.create("unsupported-browser")},t=>{throw nn.create("indexed-db-unsupported")}),Hd(Wd(e),"messaging").getImmediate()}async function kI(e,t){return e=Wd(e),fy(e,t)}function CI(e,t){return e=Wd(e),SI(e,t)}_I();const hy=e=>{"serviceWorker"in navigator&&navigator.serviceWorker.register(e.path).then(function(t){console.log("Registration successful, scope is:",t.scope),console.log("initialize service worker props ",e);const r=dy(Ud({apiKey:e.apiKey,authDomain:e.authDomain,projectId:e.projectId,storageBucket:e.storageBucket,messagingSenderId:e.messagingSenderId,appId:e.appId,measurementId:e.measurementId}));kI(r,{serviceWorkerRegistration:t,vapidKey:e.vapidKey}).then(async s=>{var o,c;if(s){console.log("current token for client: ",s);try{const h="/notification-management/api/v1/notifications/registrations",b=e.baseUrl+h;await se.axios.post(b,{deviceToken:s},{withCredentials:!0})}catch(h){console.log(h),se.pushError(((c=(o=h.response)==null?void 0:o.data)==null?void 0:c.errorMessage)||"Have error when get notification list")}}else console.log("No registration token available. Request permission to generate one.")}).catch(s=>{console.log("An error occurred while retrieving token. ",s)})}).catch(function(t){console.log("Service worker registration failed, error:",t)})},DI=e=>{const t=new BroadcastChannel("my-channel");t.onmessage=r=>{console.log("Broadcast chanel message",r),r&&e(s=>({...s,unread:{...s.unread,total:s.unread.total+1}}))}},EI=e=>new Promise(t=>{const r=dy(Ud({apiKey:e.apiKey,authDomain:e.authDomain,projectId:e.projectId,storageBucket:e.storageBucket,messagingSenderId:e.messagingSenderId,appId:e.appId,measurementId:e.measurementId}));CI(r,s=>{console.log("payload",s),t(s)})}),us={"subscription-diaglog":"_subscription-diaglog_1gvmm_2","subscription-container":"_subscription-container_1gvmm_15","subscription-title":"_subscription-title_1gvmm_25","subscription-text":"_subscription-text_1gvmm_34","subscription-btn__container":"_subscription-btn__container_1gvmm_38","btn-success":"_btn-success_1gvmm_44","btn-cancel":"_btn-cancel_1gvmm_45"},TI=["granted","denied"],RI=e=>{const[t,r]=D.reactExports.useState(!1),s=()=>{Notification.requestPermission(function(c){c==="granted"&&hy(e),TI.includes(c)&&r(!0)})},o=()=>{r(!0)};return D.jsxRuntimeExports.jsx(D.jsxRuntimeExports.Fragment,{children:t?"":D.jsxRuntimeExports.jsx("div",{className:us["subscription-diaglog"],children:D.jsxRuntimeExports.jsxs("div",{className:us["subscription-container"],children:[D.jsxRuntimeExports.jsx("h4",{className:us["subscription-title"],children:"Notification"}),D.jsxRuntimeExports.jsx("p",{className:us["subscription-text"],children:"Choice to receive notifications for the most recent updates. You have the flexibility to disable them whenever you prefer."}),D.jsxRuntimeExports.jsxs("div",{className:us["subscription-btn__container"],children:[D.jsxRuntimeExports.jsx("button",{className:us["btn-cancel"],onClick:o,children:"Not now"}),D.jsxRuntimeExports.jsx("button",{className:us["btn-success"],onClick:s,children:"Turn on"})]})]})})})},Ou={"notification-massage_container":"_notification-massage_container_ql4az_1","notification-name":"_notification-name_ql4az_18","notification-message_service":"_notification-message_service_ql4az_23","notification-message_button-close":"_notification-message_button-close_ql4az_27"},Hi=D.reactExports.createContext({}),MI=({children:e})=>{const[t,r]=D.reactExports.useState(!0),[s,o]=D.reactExports.useState({all:{rows:[],total:0},unread:{rows:[],total:0}}),c=()=>{r(!t)},h=()=>{r(!0)};return D.jsxRuntimeExports.jsx(Hi.Provider,{value:{isOpen:t,toggleOpen:c,setShowModalFalse:h,notidata:s,setNotiData:o},children:e})},AI=e=>{const[t,r]=D.reactExports.useState({userName:"",message:"",context:""});console.log(t);const{setNotiData:s}=D.reactExports.useContext(Hi);function o(){return D.jsxRuntimeExports.jsx("div",{className:Ou["notification-massage_container"],children:D.jsxRuntimeExports.jsxs("div",{className:Ou["notification-massage_content"],children:[D.jsxRuntimeExports.jsx("h6",{className:Ou["notification-name"],children:t==null?void 0:t.userName}),D.jsxRuntimeExports.jsxs("div",{className:Ou["notification-message_service"],children:[D.jsxRuntimeExports.jsxs("span",{children:[`${t==null?void 0:t.message} `," "]}),D.jsxRuntimeExports.jsx("span",{children:t==null?void 0:t.context})]})]})})}return D.reactExports.useEffect(()=>{t&&Notification.permission==="granted"&&(t.userName||t.message||t.context)&&se.notify(D.jsxRuntimeExports.jsx(o,{}))},[t]),D.reactExports.useEffect(()=>{Notification.permission==="granted"&&hy(e)},[Notification.permission]),D.reactExports.useEffect(()=>{DI(s)},[]),EI(e).then(c=>{var h,b,S;console.log("aaa",c),r({userName:(h=c==null?void 0:c.data)==null?void 0:h.userName,message:(b=c==null?void 0:c.data)==null?void 0:b.message,context:(S=c==null?void 0:c.data)==null?void 0:S.context}),s(E=>{var A;return{...E,unread:{...E.unread,total:((A=E.unread)==null?void 0:A.total)+1}}})}).catch(c=>console.log("failed: ",c)),D.jsxRuntimeExports.jsx("div",{children:"Notification"in window&&Notification.permission==="default"?D.jsxRuntimeExports.jsx(RI,{...e}):""})};function OI({config:e,pushError:t=se.pushError}){const r=se.axios.create(e);r.interceptors.request.use(async o=>(o.headers={Accept:"application/json","Content-Type":"application/json"},o),o=>Promise.reject(o)),r.interceptors.response.use(o=>o,async o=>s(o));async function s(o){var S,E,A,F;console.error("Error 🚨:",o);const c=o.config,h=(E=(S=o.response)==null?void 0:S.data)==null?void 0:E.errorMessage,b=h===se.ERROR_MESSAGE.TOKEN_EXPIRED;return((A=o.response)==null?void 0:A.status)===401?b&&!c._retry?(c._retry=!0,r.post("/authentication/api/v1/auth/refresh-token").then(()=>r(c)).catch(()=>se.login(e.baseURL))):((!h||!b)&&se.login(e.baseURL),Promise.reject("Unauthorized! Please login again.")):(((F=o.response)==null?void 0:F.status)===403?t(Ka.t("errorMessage.403")):t(Ka.t(`${h}`)||"Something went wrong!"),Promise.reject(o.response.data))}return r}const II=e=>{const[t,r]=D.reactExports.useState([]);return D.reactExports.useEffect(()=>{se.axios.get(`${e}/user-management/api/v1/users/my-account/permissions`,{withCredentials:!0}).then(s=>r(s.data)).catch(s=>{console.error("Getting user permission error:",s)})},[e]),t},py=e=>(t,r)=>{const s=II(e);return r?t.every(o=>s==null?void 0:s.includes(o)):t.some(o=>s==null?void 0:s.includes(o))},gy=({baseUrl:e,accessWith:t,requireAll:r,children:s})=>py(e)(t,r)?D.jsxRuntimeExports.jsx(D.jsxRuntimeExports.Fragment,{children:s}):null;{const e=D.s(gy,{props:{baseUrl:"string",accessWith:"json",requireAll:"boolean",children:"json"},shadow:"open"});customElements.define("has-permission",e)}const PI=D.reactExports.createContext({}),NI=()=>D.reactExports.useContext(PI),LI=OI({config:{withCredentials:!0}}),eh=({baseUrl:e,notiPath:t,setNotiData:r})=>async()=>{var E;const c=e+(t||"/notification-management/api/v1/notifications"),b=(E=(await LI.get(c,{params:{filter:{notificationFilterType:"all"}},withCredentials:!0})).data)==null?void 0:E.rows,S=b==null?void 0:b.filter(A=>A.isRead===!1);r({all:{rows:b??[],total:(b==null?void 0:b.length)??0},unread:{rows:S??[],total:(S==null?void 0:S.length)??0}})},jI=({notification:e,baseUrl:t,notiPath:r,markAllAsReadState:s,brandColors:o})=>{const[c,h]=D.reactExports.useState({id:e.id,isRead:e.isRead}),b=c.isRead===!1?"unread":"read",S={borderColor:c.isRead?"#c5c5c5":(o==null?void 0:o.primary500)||se.color.primary500,backgroundColor:c.isRead?"#c5c5c5":(o==null?void 0:o.primary500)||se.color.primary500},{setNotiData:E}=D.reactExports.useContext(Hi),A=eh({baseUrl:t,notiPath:r,setNotiData:E}),F=async(U,$)=>{var ee,Y;try{const le=r||`/notification-management/api/v1/notifications/${U}`,ge=t+le;await se.axios.put(ge,{isRead:$},{withCredentials:!0})}catch(le){h({id:e.id,isRead:e.isRead}),se.pushError(((Y=(ee=le.response)==null?void 0:ee.data)==null?void 0:Y.errorMessage)||"Have error when get notification list")}await A()},H=(U,$)=>{console.log("specificNotificationID",U);const ee=!$;h(Y=>({...Y,isRead:ee})),console.log("newIsReadState",ee),F(U,ee)};D.reactExports.useEffect(()=>{h(s?U=>({...U,isRead:!0}):{id:e.id,isRead:e.isRead})},[s,e.id,e.isRead]);const K=U=>{const $=oe(),ee=oe(U),Y=$.diff(ee,"days"),le=$.diff(ee,"minutes"),ge=$.diff(ee,"months"),ye=$.diff(ee,"years");if(console.log("diffInMonths",ge),le<1)return"Just now";if(Y===0){if(le<=60)return`${le} minute${le>1?"s":""} ago`;const re=Math.floor(le/60);return console.log("diffIhours",re),`${re} hour${re>1?"s":""} ago`}if(Y===1)return"Yesterday";if(Y>=2&&Y<7)return`${Y} days ago`;if(Y<30){const re=Math.floor(Y/7);return`${re} week${re>1?"s":""} ago`}return ge===0||ge===1?"1 month ago":ge<12?`${ge} months ago`:ye===0||ye===1?"1 year ago":"Over 1 year ago"};return D.jsxRuntimeExports.jsxs("div",{className:"notitification-item__container",onClick:()=>H(e.id,e.isRead),children:[D.jsxRuntimeExports.jsx("div",{className:"notification-item__image-container",children:D.jsxRuntimeExports.jsx("img",{src:e==null?void 0:e.userAvatarUrl,onError:({currentTarget:U})=>{U.onerror=null,U.src="https://ukpcsaprod.blob.core.windows.net/account/logo.png"},alt:e.userName})}),D.jsxRuntimeExports.jsxs("div",{className:"notification-item__content",children:[D.jsxRuntimeExports.jsx("p",{className:"notification-item__user-name",children:e.userName}),D.jsxRuntimeExports.jsxs("p",{children:[`${e.message} `,D.jsxRuntimeExports.jsx("span",{children:e==null?void 0:e.context})]})]}),D.jsxRuntimeExports.jsx("div",{className:"notification-item__time",children:D.jsxRuntimeExports.jsx("p",{children:K(e.createdAt)})}),D.jsxRuntimeExports.jsx("button",{className:`${b} notification-item__read-at`,"aria-label":"Mark as read",style:S})]})},Ug=({notidata:e,baseUrl:t,notiPath:r,brandColors:s})=>{const[o,c]=D.reactExports.useState(!1);console.log(o);const{setNotiData:h}=D.reactExports.useContext(Hi),b=eh({baseUrl:t,notiPath:r,setNotiData:h}),S=async()=>{var A,F;try{const K=t+(r||"/notification-management/api/v1/notifications");await se.axios.put(K,{withCredentials:!0})}catch(H){console.log(H),c(!1),se.pushError(((F=(A=H.response)==null?void 0:A.data)==null?void 0:F.errorMessage)||"Have error when get notification list")}await b(),c(!1)},E=()=>{c(!0),S()};return D.jsxRuntimeExports.jsxs("div",{children:[D.jsxRuntimeExports.jsx("div",{className:"mark-all-read",children:D.jsxRuntimeExports.jsx("button",{onClick:E,children:"Mark all as read"})}),D.jsxRuntimeExports.jsx("div",{className:"notification-items__wrapper",children:D.jsxRuntimeExports.jsx("div",{className:"notification-items__content",children:Object.values(e).map((A,F)=>D.jsxRuntimeExports.jsx(jI,{notification:A,baseUrl:t,notiPath:r,markAllAsReadState:o,brandColors:s},F))})})]})},$I=({baseUrl:e,notiPath:t,brandColors:r})=>{var S,E,A,F;const{setShowModalFalse:s}=D.reactExports.useContext(Hi),{notidata:o}=D.reactExports.useContext(Hi);console.log(o);const[c,h]=D.reactExports.useState("all"),b=[{id:"all",tabTitle:`All (${((S=o==null?void 0:o.all)==null?void 0:S.total)||0})`,children:D.jsxRuntimeExports.jsx(Ug,{notidata:((E=o==null?void 0:o.all)==null?void 0:E.rows)||[],baseUrl:e,notiPath:t,brandColors:r})},{id:"unread",tabTitle:`Unread (${((A=o==null?void 0:o.unread)==null?void 0:A.total)||0})`,children:D.jsxRuntimeExports.jsx(Ug,{notidata:((F=o==null?void 0:o.unread)==null?void 0:F.rows)||[],baseUrl:e,notiPath:t,brandColors:r})}];return D.jsxRuntimeExports.jsx(D.jsxRuntimeExports.Fragment,{children:D.jsxRuntimeExports.jsx("div",{style:{position:"absolute",backgroundColor:"#fff",width:"550px",height:"90vh",right:"100px",top:"100%",padding:"32px",boxShadow:"10px 0px 20px #999",borderRadius:"0 0 8px 8px",overflow:"hidden"},children:D.jsxRuntimeExports.jsxs("div",{className:"list-content",children:[D.jsxRuntimeExports.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[D.jsxRuntimeExports.jsx("h3",{style:{fontSize:"24px",fontWeight:"500"},className:"list-title",children:"Notifications"}),D.jsxRuntimeExports.jsx("button",{onClick:s,children:D.jsxRuntimeExports.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:D.jsxRuntimeExports.jsx("path",{d:"M7.05086 6.13616C6.66033 5.74563 6.02717 5.74563 5.63664 6.13616C5.24612 6.52668 5.24612 7.15984 5.63664 7.55037L10.5864 12.5001L5.63664 17.4499C5.24612 17.8404 5.24612 18.4736 5.63664 18.8641C6.02717 19.2546 6.66033 19.2546 7.05086 18.8641L12.0006 13.9143L16.9504 18.8641C17.3409 19.2546 17.974 19.2546 18.3646 18.8641C18.7551 18.4736 18.7551 17.8404 18.3646 17.4499L13.4148 12.5001L18.3646 7.55037C18.7551 7.15984 18.7551 6.52668 18.3646 6.13616C17.974 5.74563 17.3409 5.74563 16.9504 6.13616L12.0006 11.0859L7.05086 6.13616Z",fill:"#85858A"})})})]}),D.jsxRuntimeExports.jsx(Sw,{tabs:b,setCurrentTab:h,currentTab:c,brandColors:r})]})})})};function th({childrenClass:e,action:t,childrenOpenClass:r}){const s=document.querySelector("#topbar-wrapper"),o=s==null?void 0:s.shadowRoot,c=o==null?void 0:o.querySelector(`.${e}`),h=o==null?void 0:o.querySelector(`.${r}`),b=o==null?void 0:o.querySelector("nav"),S=E=>{b==null||b.addEventListener("click",function(A){if(r&&h&&h.contains(A.target)){if(c&&!c.contains(A.target))return}else c&&!c.contains(A.target)&&t()}),s&&!s.contains(E.target)&&t()};document.addEventListener("click",S,!0)}function FI({iconColor:e="#fff",baseUrl:t,notiPath:r,brandColors:s}){var F,H;const{isOpen:o,toggleOpen:c,setShowModalFalse:h}=D.reactExports.useContext(Hi),{notidata:b,setNotiData:S}=D.reactExports.useContext(Hi),E=eh({baseUrl:t,notiPath:r,setNotiData:S}),A=async()=>{var K,U;try{await E()}catch($){se.pushError(((U=(K=$.response)==null?void 0:K.data)==null?void 0:U.errorMessage)||"Have error when get notification list")}};return D.reactExports.useEffect(()=>{A()},[o]),D.reactExports.useEffect(()=>{th({childrenClass:"noti-container",childrenOpenClass:"noti-list-container",action(){h()}})}),D.jsxRuntimeExports.jsxs("div",{children:[D.jsxRuntimeExports.jsxs("div",{className:"noti-container",style:{position:"relative"},children:[D.jsxRuntimeExports.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:c,style:{cursor:"pointer",color:e},children:[D.jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.7968 17.4705C16.5901 17.4705 18.8076 16.8556 19.0218 14.3874C19.0218 11.921 17.4757 12.0796 17.4757 9.05334C17.4757 6.68952 15.2352 4 11.7968 4C8.35833 4 6.1178 6.68952 6.1178 9.05334C6.1178 12.0796 4.57178 11.921 4.57178 14.3874C4.78679 16.8649 7.00428 17.4705 11.7968 17.4705Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),D.jsxRuntimeExports.jsx("path",{d:"M13.8274 20.0286C12.6679 21.3161 10.8591 21.3313 9.68848 20.0286",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(b==null?void 0:b.unread)&&(b==null?void 0:b.unread.total)!=0&&D.jsxRuntimeExports.jsx("span",{style:{position:"absolute",top:"-9px",right:"-6px",background:`${se.color}`,width:"20px",height:"20px",border:"1px solid #fff",borderRadius:"50%",color:"#fff",fontSize:"12px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:se.color.danger},className:"notification-badge",children:((F=b==null?void 0:b.unread)==null?void 0:F.total)>9?"9+":`${(H=b==null?void 0:b.unread)==null?void 0:H.total}`})]}),D.jsxRuntimeExports.jsx("div",{className:"noti-list-container",children:!o&&D.jsxRuntimeExports.jsx($I,{baseUrl:t,notiPath:r,brandColors:s})})]})}const YI=`.avatar-dropdown-item{padding:.5rem;font-size:.875rem;line-height:1.25rem;cursor:pointer;border-radius:.25rem}.avartarDropdownMenu{background-color:#fff;padding:.5rem;width:13rem;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);position:absolute;left:-10rem;top:3.2rem}.avartarDropdownMenu ul{list-style:none;padding-inline-start:0;margin-block-end:0}.navbar{position:fixed;display:flex;z-index:30;background:#292929;top:0;width:100%;padding-left:2.5rem;height:64px}.navbar-container{display:flex;flex-direction:row;align-items:center;width:100%;justify-content:space-between}.logo-container{height:100%;display:flex;align-items:center}.right-side-container{display:flex;flex-direction:row;align-items:center;text-align:center;margin-right:2.5rem;gap:1rem}.userContainer{display:flex;align-items:center;gap:.5rem}.languageDropdown{height:100%;padding:0 8px;display:flex;flex-direction:row;gap:8px;border-radius:3px;align-items:center;justify-content:center;height:41px;background-color:#ffffff1a;cursor:pointer;transition:background-color .2s ease-in-out}.languageDropdown:hover{background-color:#fff3}.userFullName{color:#fff;font-weight:400;font-size:.875rem;line-height:1.25rem}.userAvatar{width:2.5rem;height:2.5rem;cursor:pointer;-o-object-fit:cover;object-fit:cover;border-radius:9999px;border:2px solid #FFFFFF}#userAvatarNull{width:2.5rem;height:2.5rem;background:#DDDDDD;border-radius:100%;color:#fff;font-size:20px;font-weight:400;display:flex;align-items:center;justify-content:center}.relative{position:relative}.cursor-pointer{cursor:pointer}
|
|
1093
1093
|
`,WI=`:root{--textPrimary: #292929;--textWhite: #fff;--primary500: #2E7D32;--grey100: #FAFAFA;--gray200: #EEEEEE;--gray600: #85858A;--link: #007BFF }.list-content{overflow-y:auto;overflow-x:hidden}.mark-all-read{text-align:right;color:#007bff;margin-bottom:12px;font-size:12px}.notification-items__wrapper{overflow:hidden}.notification-items__content{height:calc(100vh - 275px);overflow-x:hidden;overflow-y:auto;color:#292929}.notitification-item__container{display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:#FAFAFA 1px solid;text-align:left;font-size:12px;position:relative;z-index:10;cursor:pointer;border-radius:4px;margin-bottom:8px}.notitification-item__container:hover{background-color:#fafafa}.notification-item__image-container{width:40px;height:40px;display:flex;justify-content:center;align-items:center;border-radius:50%;overflow:hidden;margin-right:16px}.notification-item__image-container img{width:100%;height:100%;text-align:center;-o-object-fit:cover;object-fit:cover;color:transparent;text-indent:10000px}.notification-item__context-link{color:#007bff}.notification-item__content{width:60%;padding-right:16px}.notification-item__user-name{margin-bottom:2px;font-size:14px}.notification-item__time{margin-right:15px;text-align:right}.notification-item__read-at{border-width:2px;border-style:solid;border-radius:50%;width:10px;height:10px;display:block;position:relative}.notification-item__read-at:before{position:absolute;top:-30px;right:0;width:91px;background-color:#85858a;color:#fff;border-radius:4px;font-size:10px;text-align:center;padding:4px;opacity:0;visibility:hidden;transition:all .3s cubic-bezier(.39,.575,.565,1)}.notification-item__read-at:hover:before{opacity:1;visibility:visible}.notification-item__read-at.read:before{content:"Mark as unread"}.notification-item__read-at.unread:before{content:"Mark as read"}.notification-item__read-at.read{border-color:#eee}.notification-item__read-at.unread{border-color:#2e7d32;background-color:#2e7d32}
|
|
1094
1094
|
`,BI=`._notification-massage_container_ql4az_1{background:#fff;padding:0 64px 0 84px;border-radius:8px;font-family:TT Firs Neue Trl,sans-serif}._notification-massage_container_ql4az_1:before{position:absolute;content:"";width:48px;height:48px;background:url(https://ukpcsaprod.blob.core.windows.net/saas/notification-icon.svg) no-repeat center/100%;top:12px;left:24px}._notification-name_ql4az_18{font-weight:500;font-size:14px}._notification-message_service_ql4az_23{font-size:12px}._notification-message_button-close_ql4az_27{position:absolute;top:12px;right:24px;width:24px;height:24px}
|
|
1095
1095
|
`,HI=`._subscription-diaglog_1gvmm_2{position:fixed;width:100vw;height:100vh;top:0;left:0;background-color:#0006;z-index:10000;display:flex;align-items:center;justify-content:center}._subscription-container_1gvmm_15{width:610px;height:222px;border-radius:8px;padding:32px 24px 40px;background:#fff;color:#292929}._subscription-title_1gvmm_25{font-size:20px;font-weight:500;text-align:center;color:#292929}._subscription-title_1gvmm_25,._subscription-text_1gvmm_34{margin-bottom:24px}._subscription-btn__container_1gvmm_38{display:flex;justify-content:space-between;align-items:center}._btn-success_1gvmm_44,._btn-cancel_1gvmm_45{width:150px;height:40px;display:flex;align-items:center;justify-content:center;padding:8px;color:#292929;border-radius:1px}._btn-cancel_1gvmm_45{background-color:#ddd}._btn-success_1gvmm_44{background-color:#93d500}
|
|
1096
|
-
`;function UI(e){return D.jsxRuntimeExports.jsxs("svg",{width:"34",height:"25",viewBox:"0 0 34 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[D.jsxRuntimeExports.jsxs("g",{"clip-path":"url(#clip0_16865_28134)",children:[D.jsxRuntimeExports.jsx("rect",{y:"0.5",width:"34",height:"24",rx:"3",fill:"#1A47B8"}),D.jsxRuntimeExports.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.61691 0.5H0V4.5L30.3635 24.5L34 24.5V20.5L3.61691 0.5Z",fill:"white"}),D.jsxRuntimeExports.jsx("path",{d:"M1.20635 0.5L34 22.1567V24.5H32.8219L0 2.82089V0.5H1.20635Z",fill:"#F93939"}),D.jsxRuntimeExports.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M30.7619 0.5H34V4.5C34 4.5 12.9683 17.8249 3.2381 24.5H0V20.5L30.7619 0.5Z",fill:"white"}),D.jsxRuntimeExports.jsx("path",{d:"M34 0.5H32.9019L0 22.1753V24.5H1.20635L34 2.83842V0.5Z",fill:"#F93939"}),D.jsxRuntimeExports.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.3648 0.5H21.6635V7.90291H34V17.0922H21.6635V24.5H12.3648V17.0922H0V7.90291H12.3648V0.5Z",fill:"white"}),D.jsxRuntimeExports.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.3158 0.5H19.6842V9.73077H34V15.2692H19.6842V24.5H14.3158V15.2692H0V9.73077H14.3158V0.5Z",fill:"#F93939"})]}),D.jsxRuntimeExports.jsx("defs",{children:D.jsxRuntimeExports.jsx("clipPath",{id:"clip0_16865_28134",children:D.jsxRuntimeExports.jsx("rect",{y:"0.5",width:"34",height:"24",rx:"3",fill:"white"})})})]})}function qI(e){return D.jsxRuntimeExports.jsxs("svg",{width:"34",height:"24",viewBox:"0 0 34 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[D.jsxRuntimeExports.jsxs("g",{"clip-path":"url(#clip0_16886_62505)",children:[D.jsxRuntimeExports.jsx("rect",{width:"34",height:"24",rx:"3",fill:"#F93939"}),D.jsxRuntimeExports.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 16H34V24H0V16Z",fill:"#FFDA2C"}),D.jsxRuntimeExports.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 0H34V8H0V0Z",fill:"#151515"})]}),D.jsxRuntimeExports.jsx("defs",{children:D.jsxRuntimeExports.jsx("clipPath",{id:"clip0_16886_62505",children:D.jsxRuntimeExports.jsx("rect",{width:"34",height:"24",rx:"3",fill:"white"})})})]})}function my({logo:e,user:t,baseUrl:r,notiPath:s,style:o,classNames:c="",customColors:h,notiprops:b}){const S=e||"/public/assets/icons/logo-header.png",E={...o,color:(h==null?void 0:h.headerTextColor)||"white",backgroundColor:(h==null?void 0:h.headerBgColor)||"black"},[A,F]=D.reactExports.useState(!1),H=()=>{window.location.href=`${r}/authentication/logout?callbackUrl=${window.location.href}`};return D.jsxRuntimeExports.jsxs(se.ShadowDomWrapper,{styles:[YI,WI,BI,HI],style:{zIndex:1202},id:"topbar-wrapper",children:[D.jsxRuntimeExports.jsx("nav",{className:`navbar ${c}`,style:h?E:o,children:D.jsxRuntimeExports.jsxs("div",{className:"navbar-container",children:[D.jsxRuntimeExports.jsx("div",{className:"logo-container",children:D.jsxRuntimeExports.jsx("img",{src:S,alt:"logo-header",style:{height:"40px"}})}),D.jsxRuntimeExports.jsxs("div",{className:"right-side-container",children:[D.jsxRuntimeExports.jsx("span",{children:D.jsxRuntimeExports.jsxs(
|
|
1096
|
+
`;function UI(e){return D.jsxRuntimeExports.jsxs("svg",{width:"34",height:"25",viewBox:"0 0 34 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[D.jsxRuntimeExports.jsxs("g",{"clip-path":"url(#clip0_16865_28134)",children:[D.jsxRuntimeExports.jsx("rect",{y:"0.5",width:"34",height:"24",rx:"3",fill:"#1A47B8"}),D.jsxRuntimeExports.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.61691 0.5H0V4.5L30.3635 24.5L34 24.5V20.5L3.61691 0.5Z",fill:"white"}),D.jsxRuntimeExports.jsx("path",{d:"M1.20635 0.5L34 22.1567V24.5H32.8219L0 2.82089V0.5H1.20635Z",fill:"#F93939"}),D.jsxRuntimeExports.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M30.7619 0.5H34V4.5C34 4.5 12.9683 17.8249 3.2381 24.5H0V20.5L30.7619 0.5Z",fill:"white"}),D.jsxRuntimeExports.jsx("path",{d:"M34 0.5H32.9019L0 22.1753V24.5H1.20635L34 2.83842V0.5Z",fill:"#F93939"}),D.jsxRuntimeExports.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.3648 0.5H21.6635V7.90291H34V17.0922H21.6635V24.5H12.3648V17.0922H0V7.90291H12.3648V0.5Z",fill:"white"}),D.jsxRuntimeExports.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.3158 0.5H19.6842V9.73077H34V15.2692H19.6842V24.5H14.3158V15.2692H0V9.73077H14.3158V0.5Z",fill:"#F93939"})]}),D.jsxRuntimeExports.jsx("defs",{children:D.jsxRuntimeExports.jsx("clipPath",{id:"clip0_16865_28134",children:D.jsxRuntimeExports.jsx("rect",{y:"0.5",width:"34",height:"24",rx:"3",fill:"white"})})})]})}function qI(e){return D.jsxRuntimeExports.jsxs("svg",{width:"34",height:"24",viewBox:"0 0 34 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[D.jsxRuntimeExports.jsxs("g",{"clip-path":"url(#clip0_16886_62505)",children:[D.jsxRuntimeExports.jsx("rect",{width:"34",height:"24",rx:"3",fill:"#F93939"}),D.jsxRuntimeExports.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 16H34V24H0V16Z",fill:"#FFDA2C"}),D.jsxRuntimeExports.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 0H34V8H0V0Z",fill:"#151515"})]}),D.jsxRuntimeExports.jsx("defs",{children:D.jsxRuntimeExports.jsx("clipPath",{id:"clip0_16886_62505",children:D.jsxRuntimeExports.jsx("rect",{width:"34",height:"24",rx:"3",fill:"white"})})})]})}function my({logo:e,user:t,baseUrl:r,notiPath:s,style:o,classNames:c="",customColors:h,notiprops:b}){const S=e||"/public/assets/icons/logo-header.png",E={...o,color:(h==null?void 0:h.headerTextColor)||"white",backgroundColor:(h==null?void 0:h.headerBgColor)||"black"},[A,F]=D.reactExports.useState(!1),H=()=>{window.location.href=`${r}/authentication/logout?callbackUrl=${window.location.href}`};return D.jsxRuntimeExports.jsxs(se.ShadowDomWrapper,{styles:[YI,WI,BI,HI],style:{zIndex:1202},id:"topbar-wrapper",children:[D.jsxRuntimeExports.jsx("nav",{className:`navbar ${c}`,style:h?E:o,children:D.jsxRuntimeExports.jsxs("div",{className:"navbar-container",children:[D.jsxRuntimeExports.jsx("div",{className:"logo-container",children:D.jsxRuntimeExports.jsx("img",{src:S,alt:"logo-header",style:{height:"40px"}})}),D.jsxRuntimeExports.jsxs("div",{className:"right-side-container",children:[D.jsxRuntimeExports.jsx("span",{children:D.jsxRuntimeExports.jsxs(MI,{children:[D.jsxRuntimeExports.jsx(AI,{baseUrl:b.baseUrl,path:b.path,apiKey:b.apiKey,authDomain:b.authDomain,projectId:b.projectId,storageBucket:b.storageBucket,messagingSenderId:b.messagingSenderId,appId:b.appId,measurementId:b.measurementId,vapidKey:b.vapidKey}),D.jsxRuntimeExports.jsx(FI,{iconColor:h==null?void 0:h.headerTextColor,baseUrl:r,notiPath:s,brandColors:h})]})}),D.jsxRuntimeExports.jsx("span",{className:"cursor-pointer",children:D.jsxRuntimeExports.jsx(ww,{color:(h==null?void 0:h.headerTextColor)||"#fff"})}),D.jsxRuntimeExports.jsx(zI,{}),D.jsxRuntimeExports.jsxs("div",{className:"userContainer",children:[D.jsxRuntimeExports.jsx(VI,{primaryColor:h==null?void 0:h.headerTextColor,avatarUrl:t==null?void 0:t.avatarUrl,userName:t==null?void 0:t.firstName,setShowConfirmModal:F}),D.jsxRuntimeExports.jsx("p",{className:"userFullName",style:{color:h==null?void 0:h.headerTextColor},children:`${(t==null?void 0:t.firstName)||"Unknown"} ${(t==null?void 0:t.lastName)||"User"}`})]})]})]})}),D.jsxRuntimeExports.jsx(se.LogoutConfirmModal,{isOpen:A,onClose:()=>F(!1),onConfirm:H})]})}function zI(){var h;const e=[{value:Ka.Language.en,element:D.jsxRuntimeExports.jsx(UI,{})},{value:Ka.Language.de,element:D.jsxRuntimeExports.jsx(qI,{})}],[t,r]=D.reactExports.useState(!1);D.reactExports.useState(new Array(e.length).fill(!1));const{language:s,setLanguage:o}=NI();D.reactExports.useEffect(()=>{th({childrenClass:"languageDropdown",action(){r(!1)}})},[]);const c=(h=e.find(b=>b.value==s))==null?void 0:h.element;return D.jsxRuntimeExports.jsx("div",{className:"languageDropdownContainer",style:{position:"relative"},children:D.jsxRuntimeExports.jsx("div",{className:"languageDropdown",onClick:()=>{r(!t)},children:c})})}function VI({avatarUrl:e,userName:t,setShowConfirmModal:r}){const[s,o]=D.reactExports.useState(!1),c=D.reactExports.useRef(null),h=D.reactExports.useRef(null),[b,S]=D.reactExports.useState(!1),[E,A]=D.reactExports.useState(!1),F={backgroundColor:b?"#919eab14":"transparent"},H={backgroundColor:E?"#919eab14":"transparent"};return D.reactExports.useEffect(()=>{th({childrenClass:"userAvatar",action(){o(!1)}})},[]),D.jsxRuntimeExports.jsx(D.jsxRuntimeExports.Fragment,{children:D.jsxRuntimeExports.jsxs("div",{style:{position:"relative"},children:[e?D.jsxRuntimeExports.jsx("img",{onClick:()=>o(!s),ref:c,alt:"user avatar",className:"userAvatar",src:e}):D.jsxRuntimeExports.jsx("div",{onClick:()=>o(!s),ref:c,className:"userAvatar",id:"userAvatarNull",children:(t==null?void 0:t.charAt(0))??""}),D.jsxRuntimeExports.jsx("div",{style:{display:s?"block":"none"},className:"avartarDropdownMenu",ref:h,children:D.jsxRuntimeExports.jsxs("ul",{style:{color:"initial"},children:[D.jsxRuntimeExports.jsx("li",{onMouseEnter:()=>A(!0),onMouseLeave:()=>A(!1),style:H,className:"avatar-dropdown-item",children:"Profile"}),D.jsxRuntimeExports.jsx("li",{onMouseEnter:()=>S(!0),onMouseLeave:()=>S(!1),style:F,onClick:()=>r(!0),className:"avatar-dropdown-item",children:"Logout"})]})})]})})}{const e=D.s(my,{props:{logo:"string",user:"json",baseUrl:"string",notiPath:"string",classNames:"string",style:"json",customColors:"json",notiprops:"json"},shadow:"open"});customElements.define("global-topbar",e)}exports.HasPermission=gy;exports.TopBar=my;exports.getUseHasPermission=py;
|